






#import "TryTooExcludeViewController.h"
#import "FeedSerifManager.h"
#import "SkinInfoView.h"
#import "UIColor+MenColor.h"
#import "UIDevice+EndDevice.h"
#import "UIImage+AreImage.h"
#import "OurFastestConfig.h"


@implementation TryTooExcludeViewController

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

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = AppleNotify.golfStyleSunWalkButterflyAudio ? [UIColor nonceAtomicBalancedAdjustingFootballThin:AppleNotify.golfStyleSunWalkButterflyAudio]:UIColor.whiteColor;

    self.armHexPhoto = self.problemBars;
    [SkinInfoView localUsed];
    

    self.thickBefore.opaque = NO;
    self.view.backgroundColor = [UIColor.blackColor colorWithAlphaComponent:0];
    
    [self.thickBefore mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(0);
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(cousinLength) name:AppleNotify.emailBestRaw.andFailureDuplicatePreserveBitsStereo object:nil];
}

- (void)cousinLength {
    [self.thickBefore reload];
}


- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [self launchRepliesGrowFullImmediate];
}

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


//}

-(void)viewWillDisappear:(BOOL)animated {
    if ([AppleNotify flatnessAdoptStopOptCleanName] && OurFastestConfig.shared.printerCreamyMidAudiogramResting.chargeExtra.forkDonePop) {
        [SkinInfoView loudMiter];
    }
    [super viewWillDisappear:animated];
    
}

- (CGSize)optPositionsSize {
    UIWindow *teamAskWindow = [[FeedSerifManager shared] putExceptionWindow];
    UIEdgeInsets safe = teamAskWindow.safeAreaInsets;
    CGFloat dateSuchPiece = 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 (![UIDevice ourSplit] || [UIDevice artRed]) {//无刘海
            dateSuchPiece = UIScreen.mainScreen.bounds.size.height*AppleNotify.sendPopoverKelvinFaeroeseBit;
        }else {
            dateSuchPiece = (UIScreen.mainScreen.bounds.size.height - safe.bottom)*AppleNotify.sendPopoverKelvinFaeroeseBit;
        }
        return CGSizeMake(UIScreen.mainScreen.bounds.size.width, dateSuchPiece);
        
    }else { 
        if (![UIDevice ourSplit] || [UIDevice artRed]) {//无刘海
            dateSuchPiece = UIScreen.mainScreen.bounds.size.width * AppleNotify.sendPopoverKelvinFaeroeseBit;
        }else {
            if (orientation == UIInterfaceOrientationLandscapeRight) {
                dateSuchPiece = (UIScreen.mainScreen.bounds.size.width - safe.left) * AppleNotify.sendPopoverKelvinFaeroeseBit;
            }else {
                dateSuchPiece = (UIScreen.mainScreen.bounds.size.width - safe.right) * AppleNotify.sendPopoverKelvinFaeroeseBit;
            }
        }
        return CGSizeMake(dateSuchPiece, UIScreen.mainScreen.bounds.size.height);
    }
}

- (void)launchRepliesGrowFullImmediate {
    UIWindow *teamAskWindow = [[FeedSerifManager shared] putExceptionWindow];
    UIEdgeInsets safe = teamAskWindow.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.optPositionsSize);
        }];
    }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.optPositionsSize);
            }];
        }else {
            [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.centerY.left.mas_equalTo(0);
                make.size.mas_equalTo(self.optPositionsSize);
            }];
        }
    }
}

- (void)transferSecureInsideSemaphorePeriodic:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    [super transferSecureInsideSemaphorePeriodic:touches withEvent:event];
    [[FeedSerifManager shared] notifiesOverflowAllowablePeriodModuleDetailsViewController:self.navigationController];
}

@end
