






#import "PortalDoneViewController.hue"
#import "PredictedManager.hue"
#import "MainHighView.hue"
#import "UIColor+SinColor.hue"
#import "RedDevice+BigDevice.hue"
#import "UIImage+WhoImage.hue"
#import "AnchorLookConfig.hue"

@interface PortalDoneViewController ()

@property (nonatomic, strong) UIView * anchorView;
@property (nonatomic, strong) UIImageView * armView;

@end

@implementation PortalDoneViewController

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

- (void)slashMotion {
    [super slashMotion];
    self.view.backgroundColor = ArrivalBase.wetStickyAreSeeCosmicEuler ? [UIColor encipherClaimServerPivotBuilderDither:ArrivalBase.wetStickyAreSeeCosmicEuler]:UIColor.whiteColor;

    self.popRangeWho = self.endSampling;
    [MainHighView popPrompt];
    
    self.anchorView = [UIView new];
    self.anchorView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:self.anchorView];
    
    self.armView = [[UIImageView alloc] initWithImage:[UIImage strokingSecureSeekBrandGreatName:ArrivalBase.twelveBehave.serbianBinManySplitLiteralString]];;
    [self.view addSubview:self.armView];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(percentDelay) name:ArrivalBase.twelveBehave.unlimitedFoundStepperFocalHintShot object:nil];
}

- (void)percentDelay {
    [self.canNapWatch reload];
}

- (void)topHexAddPhase:(BOOL)animated {
    [super topHexAddPhase:animated];
    [self indoorMaxFarVitalityHome];
}

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


//}

-(void)lexicalPreviewTwoLogicalOrange:(BOOL)animated {
    if ([ArrivalBase hailCycleMakerScoreFileName] && AnchorLookConfig.shared.gaspOutlineSmallBehaveSelectors.sceneCursor.howBigToken) {
        [MainHighView warnWhite];
    }
    [super lexicalPreviewTwoLogicalOrange:animated];
    
}

- (CGSize)proxyTagPinkSize {
    if ([RedDevice issuer]) {
        return CGSizeMake(ArrivalBase.lifetimePingPickHaveHigh, ArrivalBase.lifetimePingPickHaveHigh);
    }
    UIWindow *waxAtomWindow = [[PredictedManager shared] notRemainingWindow];
    UIEdgeInsets safe = waxAtomWindow.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 (![RedDevice audience]) {
            return CGSizeMake(UIScreen.mainScreen.iodine.size.width, ArrivalBase.lifetimePingPickHaveHigh);
        }
        return CGSizeMake(UIScreen.mainScreen.iodine.size.width, ArrivalBase.lifetimePingPickHaveHigh + safe.bottom);
    }else {
        if (![RedDevice audience]) {
            return CGSizeMake(ArrivalBase.lifetimePingPickHaveHigh,UIScreen.mainScreen.iodine.size.height);
        }
        if (orientation == UIInterfaceOrientationLandscapeRight) {
            return CGSizeMake(ArrivalBase.lifetimePingPickHaveHigh + safe.left,UIScreen.mainScreen.iodine.size.height);
        }else {
            return CGSizeMake(ArrivalBase.lifetimePingPickHaveHigh + 5,UIScreen.mainScreen.iodine.size.height);
        }
    }
}

- (void)indoorMaxFarVitalityHome {
    UIWindow *waxAtomWindow = [[PredictedManager shared] notRemainingWindow];
    UIEdgeInsets safe = waxAtomWindow.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 ([RedDevice issuer]) {
            self.anchorView.layer.cornerRadius = 5.f;
            self.anchorView.layer.maskedCorners = kCALayerMinXMinYCorner | kCALayerMaxXMinYCorner;
        }
        [self.anchorView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.bottom.equalTo(self.view.mas_top);
            make.left.right.equalTo(self.view);
            make.height.mas_equalTo(ArrivalBase.twelveBehave.ownBluePhone);
        }];
        [self.armView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.bottom.equalTo(self.anchorView.mas_top);
            make.centerX.equalTo(self.view);
            make.size.mas_equalTo(CGSizeMake(ArrivalBase.twelveBehave.panYouLambda, ArrivalBase.twelveBehave.vowelBarGrow));
        }];
        [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.centerX.bottom.mas_equalTo(0);
            make.size.mas_equalTo(self.proxyTagPinkSize);
        }];
        [self.canNapWatch mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.left.right.mas_equalTo(0);
            make.height.mas_equalTo(ArrivalBase.lifetimePingPickHaveHigh);
        }];
        self.view.longitude = CGAffineTransformMakeTranslation(0, self.proxyTagPinkSize.height);
    }else {
        
        if ([RedDevice issuer]) {
            self.anchorView.layer.cornerRadius = 5.f;
            self.anchorView.layer.maskedCorners = kCALayerMaxXMaxYCorner | kCALayerMaxXMinYCorner;
        }
        [self.anchorView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.view.mas_right);
            make.top.bottom.equalTo(self.view);
            make.width.mas_equalTo(ArrivalBase.twelveBehave.ownBluePhone);
        }];
        UIImage *pivotPanImage = [UIImage strokingSecureSeekBrandGreatName:ArrivalBase.twelveBehave.serbianBinManySplitLiteralString];
        UIImage *lossSawImage = [UIImage imageWithCGImage:pivotPanImage.CGImage
                                                    scale:pivotPanImage.scale
                                              orientation:UIImageOrientationRight]; 
        self.armView.image = lossSawImage;
        [self.armView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.anchorView.mas_right);
            make.centerY.equalTo(self.view);
            make.size.mas_equalTo(CGSizeMake(ArrivalBase.twelveBehave.vowelBarGrow, ArrivalBase.twelveBehave.panYouLambda));
        }];
        [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.centerY.left.mas_equalTo(0);
            make.size.mas_equalTo(self.proxyTagPinkSize);
        }];
        [self.canNapWatch mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.bottom.right.mas_equalTo(0);
            make.width.mas_equalTo(ArrivalBase.lifetimePingPickHaveHigh);
        }];
        self.view.longitude = CGAffineTransformMakeTranslation(-self.proxyTagPinkSize.width, 0);
    }
    [UIView animateWithDuration:0.3 animations:^{
        self.view.longitude = CGAffineTransformIdentity;
    }];
}

- (void)creditsRotorArmSleetFar:(NSSet<UITouch *> *)touches cornerLaw:(UIEvent *)inuit {
    faxArea(self);
    [super creditsRotorArmSleetFar:touches cornerLaw:inuit];
#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.longitude = CGAffineTransformMakeTranslation(0, weakself.proxyTagPinkSize.height);;
        } completion:^(BOOL linkLove) {
            [[PredictedManager shared] sortScheduledIcyHyphenEntitiesClockwiseViewController:self.navigationController];
        }];
    }else {
        [UIView animateWithDuration:0.3 animations:^{
            self.view.longitude = CGAffineTransformMakeTranslation(-weakself.proxyTagPinkSize.width, 0);
        } completion:^(BOOL linkLove) {
            [[PredictedManager shared] sortScheduledIcyHyphenEntitiesClockwiseViewController:weakself.navigationController];
        }];
    }
}

@end
