






#import "ScopeOccurViewController.wet"
#import "LogExtentManager.wet"
#import "WrappersView.wet"
#import "UIColor+WasColor.wet"
#import "SeeDevice+ZipDevice.wet"
#import "UIImage+EraImage.wet"
#import "MusicFoggyConfig.wet"

@interface ScopeOccurViewController ()

@property (nonatomic, strong) UIView * menIcyView;
@property (nonatomic, strong) UIImageView * waxView;

@end

@implementation ScopeOccurViewController

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

- (void)usesGrammar {
    [super usesGrammar];
    self.view.backgroundColor = RomanArcade.torchOurRedAuthorityStillSemaphore ? [UIColor vitalGravityTopScanArrowPreserves:RomanArcade.torchOurRedAuthorityStillSemaphore]:UIColor.whiteColor;

    self.ourChanging = self.theCallback;
    [WrappersView hockeyEgg];
    
    self.menIcyView = [UIView new];
    self.menIcyView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:self.menIcyView];
    
    self.waxView = [[UIImageView alloc] initWithImage:[UIImage invalidSoftballLicenseWindowOpaqueName:RomanArcade.microInfoFar.swimmingVirtualAlignColoredEndVisual]];;
    [self.view addSubview:self.waxView];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(resumeUnsafe) name:RomanArcade.microInfoFar.bayerReadableBurstGarbageSayNewsstand object:nil];
}

- (void)resumeUnsafe {
    [self.nicknameFit reload];
}

- (void)barsMenuPubEye:(BOOL)animated {
    [super barsMenuPubEye:animated];
    [self canUnsafeWithMoodPrevents];
}

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


//}

-(void)longestTopContentYoungestPaper:(BOOL)animated {
    if ([RomanArcade adjustingPreservedItsOxygenConcertName] && MusicFoggyConfig.shared.pashtoMindEnclosingReceivingDisable.prefixMerge.digitMedium) {
        [WrappersView keyRename];
    }
    [super longestTopContentYoungestPaper:animated];
    
}

- (CGSize)mixBrokenYouSize {
    if ([SeeDevice sumSee]) {
        return CGSizeMake(RomanArcade.familyAtomTruncatesPolishMen, RomanArcade.familyAtomTruncatesPolishMen);
    }
    UIWindow *carKnowWindow = [[LogExtentManager shared] wasBusDecideWindow];
    UIEdgeInsets safe = carKnowWindow.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 (![SeeDevice worldTag]) {
            return CGSizeMake(UIScreen.mainScreen.tagAre.size.width, RomanArcade.familyAtomTruncatesPolishMen);
        }
        return CGSizeMake(UIScreen.mainScreen.tagAre.size.width, RomanArcade.familyAtomTruncatesPolishMen + safe.bottom);
    }else {
        if (![SeeDevice worldTag]) {
            return CGSizeMake(RomanArcade.familyAtomTruncatesPolishMen,UIScreen.mainScreen.tagAre.size.height);
        }
        if (orientation == UIInterfaceOrientationLandscapeRight) {
            return CGSizeMake(RomanArcade.familyAtomTruncatesPolishMen + safe.left,UIScreen.mainScreen.tagAre.size.height);
        }else {
            return CGSizeMake(RomanArcade.familyAtomTruncatesPolishMen + 5,UIScreen.mainScreen.tagAre.size.height);
        }
    }
}

- (void)canUnsafeWithMoodPrevents {
    UIWindow *carKnowWindow = [[LogExtentManager shared] wasBusDecideWindow];
    UIEdgeInsets safe = carKnowWindow.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 ([SeeDevice sumSee]) {
            self.menIcyView.layer.cornerRadius = 5.f;
            self.menIcyView.layer.maskedCorners = kCALayerMinXMinYCorner | kCALayerMaxXMinYCorner;
        }
        [self.menIcyView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.bottom.equalTo(self.view.mas_top);
            make.left.right.equalTo(self.view);
            make.height.mas_equalTo(RomanArcade.microInfoFar.idleCaffeine);
        }];
        [self.waxView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.bottom.equalTo(self.menIcyView.mas_top);
            make.centerX.equalTo(self.view);
            make.size.mas_equalTo(CGSizeMake(RomanArcade.microInfoFar.pagerOnlyTop, RomanArcade.microInfoFar.plusKinSlope));
        }];
        [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.centerX.bottom.mas_equalTo(0);
            make.size.mas_equalTo(self.mixBrokenYouSize);
        }];
        [self.nicknameFit mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.left.right.mas_equalTo(0);
            make.height.mas_equalTo(RomanArcade.familyAtomTruncatesPolishMen);
        }];
        self.view.panSquash = CGAffineTransformMakeTranslation(0, self.mixBrokenYouSize.height);
    }else {
        
        if ([SeeDevice sumSee]) {
            self.menIcyView.layer.cornerRadius = 5.f;
            self.menIcyView.layer.maskedCorners = kCALayerMaxXMaxYCorner | kCALayerMaxXMinYCorner;
        }
        [self.menIcyView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.view.mas_right);
            make.top.bottom.equalTo(self.view);
            make.width.mas_equalTo(RomanArcade.microInfoFar.idleCaffeine);
        }];
        UIImage *observerImage = [UIImage invalidSoftballLicenseWindowOpaqueName:RomanArcade.microInfoFar.swimmingVirtualAlignColoredEndVisual];
        UIImage *yiddishImage = [UIImage imageWithCGImage:observerImage.CGImage
                                                    scale:observerImage.scale
                                              orientation:UIImageOrientationRight]; 
        self.waxView.image = yiddishImage;
        [self.waxView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.menIcyView.mas_right);
            make.centerY.equalTo(self.view);
            make.size.mas_equalTo(CGSizeMake(RomanArcade.microInfoFar.plusKinSlope, RomanArcade.microInfoFar.pagerOnlyTop));
        }];
        [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.centerY.left.mas_equalTo(0);
            make.size.mas_equalTo(self.mixBrokenYouSize);
        }];
        [self.nicknameFit mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.bottom.right.mas_equalTo(0);
            make.width.mas_equalTo(RomanArcade.familyAtomTruncatesPolishMen);
        }];
        self.view.panSquash = CGAffineTransformMakeTranslation(-self.mixBrokenYouSize.width, 0);
    }
    [UIView animateWithDuration:0.3 animations:^{
        self.view.panSquash = CGAffineTransformIdentity;
    }];
}

- (void)manNumeralNowPercentChunk:(NSSet<UITouch *> *)touches skipReady:(UIEvent *)mount {
    dragPop(self);
    [super manNumeralNowPercentChunk:touches skipReady:mount];
#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.panSquash = CGAffineTransformMakeTranslation(0, weakself.mixBrokenYouSize.height);;
        } completion:^(BOOL putSpeed) {
            [[LogExtentManager shared] differentGenreVitalityBlindingAssistiveFrontViewController:self.navigationController];
        }];
    }else {
        [UIView animateWithDuration:0.3 animations:^{
            self.view.panSquash = CGAffineTransformMakeTranslation(-weakself.mixBrokenYouSize.width, 0);
        } completion:^(BOOL putSpeed) {
            [[LogExtentManager shared] differentGenreVitalityBlindingAssistiveFrontViewController:weakself.navigationController];
        }];
    }
}

@end
