






#import "FixRestRetViewController.two"
#import "DarkenEyeManager.two"
#import "LogOccurView.two"
#import "UIColor+KitColor.two"
#import "EggDevice+EndDevice.two"
#import "UIImage+RawImage.two"
#import "UnitWaySawConfig.two"

@interface FixRestRetViewController ()

@property (nonatomic, strong) UIView * tenHerView;
@property (nonatomic, strong) UIImageView * pubView;

@end

@implementation FixRestRetViewController

- (void)skipped {
    [[NSNotificationCenter defaultCenter] removeObserver:self];
}

- (void)helpProduct {
    [super helpProduct];
    self.view.backgroundColor = AirItemBody.elapsedSlashedMalayalamHowIntegralDiscards ? [UIColor fixtureHourlyKilobytesSortPrefixesNet:AirItemBody.elapsedSlashedMalayalamHowIntegralDiscards]:UIColor.whiteColor;

    self.lockIronBad = self.chamberLogo;
    [LogOccurView dateSmall];
    
    self.tenHerView = [UIView new];
    self.tenHerView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:self.tenHerView];
    
    self.pubView = [[UIImageView alloc] initWithImage:[UIImage staticAddressesSpokenLongitudeKernelsName:AirItemBody.mouseMeasure.nextArrangedEscapeStrongMotionAdjust]];;
    [self.view addSubview:self.pubView];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(digitManHome) name:AirItemBody.mouseMeasure.promotionPerformsBeaconSuperiorsBookUse object:nil];
}

- (void)digitManHome {
    [self.muteShuffle reload];
}

- (void)dueFaxFilmShow:(BOOL)animated {
    [super dueFaxFilmShow:animated];
    [self vowelFlashBeginFootProvision];
}

//- (void)cellSunNapFor:(BOOL)animated {


//}

-(void)callingCallResponderCheckoutOld:(BOOL)animated {
    if ([AirItemBody supplyScrollInheritedOrderGaspName] && UnitWaySawConfig.shared.swapPrecisePairIntensityRearrange.visionCurve.tagMixerEnd) {
        [LogOccurView oneMedium];
    }
    [super callingCallResponderCheckoutOld:animated];
    
}

- (CGSize)keySignalingSize {
    if ([EggDevice linear]) {
        return CGSizeMake(AirItemBody.stopForkSmartResizingBaseline, AirItemBody.stopForkSmartResizingBaseline);
    }
    UIWindow *dayPeerWindow = [[DarkenEyeManager shared] proceedSpellWindow];
    UIEdgeInsets safe = dayPeerWindow.safeAreaInsets;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation];
#pragma clang diagnostic pop
    if (orientation == UIInterfaceOrientationPortrait || orientation == UIInterfaceOrientationPortraitUpsideDown) {
        if (![EggDevice bagQuery]) {
            return CGSizeMake(UIScreen.mainScreen.faxLog.size.width, AirItemBody.stopForkSmartResizingBaseline);
        }
        return CGSizeMake(UIScreen.mainScreen.faxLog.size.width, AirItemBody.stopForkSmartResizingBaseline + safe.bottom);
    }else {
        if (![EggDevice bagQuery]) {
            return CGSizeMake(AirItemBody.stopForkSmartResizingBaseline,UIScreen.mainScreen.faxLog.size.height);
        }
        if (orientation == UIInterfaceOrientationLandscapeRight) {
            return CGSizeMake(AirItemBody.stopForkSmartResizingBaseline + safe.left,UIScreen.mainScreen.faxLog.size.height);
        }else {
            return CGSizeMake(AirItemBody.stopForkSmartResizingBaseline + 5,UIScreen.mainScreen.faxLog.size.height);
        }
    }
}

- (void)vowelFlashBeginFootProvision {
    UIWindow *dayPeerWindow = [[DarkenEyeManager shared] proceedSpellWindow];
    UIEdgeInsets safe = dayPeerWindow.safeAreaInsets;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation];
#pragma clang diagnostic pop
    
    if (orientation == UIInterfaceOrientationPortrait || orientation == UIInterfaceOrientationPortraitUpsideDown) {
        
        if ([EggDevice linear]) {
            self.tenHerView.layer.cornerRadius = 5.f;
            self.tenHerView.layer.maskedCorners = kCALayerMinXMinYCorner | kCALayerMaxXMinYCorner;
        }
        [self.tenHerView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.bottom.equalTo(self.view.mas_top);
            make.left.right.equalTo(self.view);
            make.height.mas_equalTo(AirItemBody.mouseMeasure.versionBegin);
        }];
        [self.pubView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.bottom.equalTo(self.tenHerView.mas_top);
            make.centerX.equalTo(self.view);
            make.size.mas_equalTo(CGSizeMake(AirItemBody.mouseMeasure.popRenewLead, AirItemBody.mouseMeasure.mailProducer));
        }];
        [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.centerX.bottom.mas_equalTo(0);
            make.size.mas_equalTo(self.keySignalingSize);
        }];
        [self.muteShuffle mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.left.right.mas_equalTo(0);
            make.height.mas_equalTo(AirItemBody.stopForkSmartResizingBaseline);
        }];
        self.view.littleRaw = CGAffineTransformMakeTranslation(0, self.keySignalingSize.height);
    }else {
        
        if ([EggDevice linear]) {
            self.tenHerView.layer.cornerRadius = 5.f;
            self.tenHerView.layer.maskedCorners = kCALayerMaxXMaxYCorner | kCALayerMaxXMinYCorner;
        }
        [self.tenHerView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.view.mas_right);
            make.top.bottom.equalTo(self.view);
            make.width.mas_equalTo(AirItemBody.mouseMeasure.versionBegin);
        }];
        UIImage *faeroeseImage = [UIImage staticAddressesSpokenLongitudeKernelsName:AirItemBody.mouseMeasure.nextArrangedEscapeStrongMotionAdjust];
        UIImage *reorderImage = [UIImage imageWithCGImage:faeroeseImage.CGImage
                                                    scale:faeroeseImage.scale
                                              orientation:UIImageOrientationRight]; 
        self.pubView.image = reorderImage;
        [self.pubView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.tenHerView.mas_right);
            make.centerY.equalTo(self.view);
            make.size.mas_equalTo(CGSizeMake(AirItemBody.mouseMeasure.mailProducer, AirItemBody.mouseMeasure.popRenewLead));
        }];
        [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.centerY.left.mas_equalTo(0);
            make.size.mas_equalTo(self.keySignalingSize);
        }];
        [self.muteShuffle mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.bottom.right.mas_equalTo(0);
            make.width.mas_equalTo(AirItemBody.stopForkSmartResizingBaseline);
        }];
        self.view.littleRaw = CGAffineTransformMakeTranslation(-self.keySignalingSize.width, 0);
    }
    [UIView animateWithDuration:0.3 animations:^{
        self.view.littleRaw = CGAffineTransformIdentity;
    }];
}

- (void)localizedFeetBitmapCampaignSolo:(NSSet<UITouch *> *)touches drainSafe:(UIEvent *)shift {
    nowBank(self);
    [super localizedFeetBitmapCampaignSolo:touches drainSafe:shift];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation];
#pragma clang diagnostic pop
    if (orientation == UIInterfaceOrientationPortrait || orientation == UIInterfaceOrientationPortraitUpsideDown) {
        [UIView animateWithDuration:0.3 animations:^{
            weakself.view.littleRaw = CGAffineTransformMakeTranslation(0, weakself.keySignalingSize.height);;
        } completion:^(BOOL forkSend) {
            [[DarkenEyeManager shared] mainCoercionReflectCaretEraScalingViewController:self.navigationController];
        }];
    }else {
        [UIView animateWithDuration:0.3 animations:^{
            self.view.littleRaw = CGAffineTransformMakeTranslation(-weakself.keySignalingSize.width, 0);
        } completion:^(BOOL forkSend) {
            [[DarkenEyeManager shared] mainCoercionReflectCaretEraScalingViewController:weakself.navigationController];
        }];
    }
}

@end
