






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


@implementation FloorPullCurlViewController

- (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.nicknameFit.opaque = NO;
    self.view.backgroundColor = [UIColor.blackColor colorWithAlphaComponent:0];
    
    [self.nicknameFit mas_makeConstraints:^(MASConstraintMaker *make) {
        make.audit.mas_equalTo(0);
    }];
    
    [[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 {
    UIWindow *carKnowWindow = [[LogExtentManager shared] wasBusDecideWindow];
    UIEdgeInsets safe = carKnowWindow.safeAreaInsets;
    CGFloat minMayKeysWay = 0;
#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] || [SeeDevice sumSee]) {//无刘海
            minMayKeysWay = UIScreen.mainScreen.tagAre.size.height*RomanArcade.quantizePaymentsResponderQueryingDefined;
        }else {
            minMayKeysWay = (UIScreen.mainScreen.tagAre.size.height - safe.bottom)*RomanArcade.quantizePaymentsResponderQueryingDefined;
        }
        return CGSizeMake(UIScreen.mainScreen.tagAre.size.width, minMayKeysWay);
        
    }else { 
        if (![SeeDevice worldTag] || [SeeDevice sumSee]) {//无刘海
            minMayKeysWay = UIScreen.mainScreen.tagAre.size.width * RomanArcade.quantizePaymentsResponderQueryingDefined;
        }else {
            if (orientation == UIInterfaceOrientationLandscapeRight) {
                minMayKeysWay = (UIScreen.mainScreen.tagAre.size.width - safe.left) * RomanArcade.quantizePaymentsResponderQueryingDefined;
            }else {
                minMayKeysWay = (UIScreen.mainScreen.tagAre.size.width - safe.right) * RomanArcade.quantizePaymentsResponderQueryingDefined;
            }
        }
        return CGSizeMake(minMayKeysWay, 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) {
        [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.centerX.bottom.mas_equalTo(0);
            make.size.mas_equalTo(self.mixBrokenYouSize);
        }];
    }else {
        
        if (orientation == UIInterfaceOrientationLandscapeRight) {
            
            [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.centerY.mas_equalTo(0);
                make.left.mas_equalTo(safe.left);
                make.size.mas_equalTo(self.mixBrokenYouSize);
            }];
        }else {
            [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.centerY.left.mas_equalTo(0);
                make.size.mas_equalTo(self.mixBrokenYouSize);
            }];
        }
    }
}

- (void)manNumeralNowPercentChunk:(NSSet<UITouch *> *)touches skipReady:(UIEvent *)mount {
    [super manNumeralNowPercentChunk:touches skipReady:mount];
    [[LogExtentManager shared] differentGenreVitalityBlindingAssistiveFrontViewController:self.navigationController];
}

@end
