






#import "EmptyProducesViewController.h"
#import "FormThirdManager.h"
#import "SaturateView.h"
#import "UIColor+BedColor.h"
#import "UIDevice+DidDevice.h"
#import "UIImage+SumImage.h"
#import "DiskKeyIllConfig.h"


@implementation EmptyProducesViewController

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

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = MapSheFocus.exposeSuspendedAcquireGrantingLongerRecursive ? [UIColor quoteIncorrectKindUpsideCatEditorial:MapSheFocus.exposeSuspendedAcquireGrantingLongerRecursive]:UIColor.whiteColor;

    self.unitManLoop = self.assertCross;
    [SaturateView eachFloor];
    

    self.helloRunOdd.opaque = NO;
    self.view.backgroundColor = [UIColor.blackColor colorWithAlphaComponent:0];
    
    [self.helloRunOdd mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(0);
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(getMenLarger) name:MapSheFocus.ownerQuality.quarterPrepareLoopLongitudeGracefulGet object:nil];
}

- (void)getMenLarger {
    [self.helloRunOdd reload];
}


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

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


//}

-(void)viewWillDisappear:(BOOL)animated {
    if ([MapSheFocus masterFaceOfferBriefCorrectedName] && DiskKeyIllConfig.shared.toolHiddenPluralInviteeConstant.eyeEntitled.rowFunkCaps) {
        [SaturateView paceCubic];
    }
    [super viewWillDisappear:animated];
    
}

- (CGSize)utteranceArtSize {
    UIWindow *tooWaitWindow = [[FormThirdManager shared] partlyVisualWindow];
    UIEdgeInsets safe = tooWaitWindow.safeAreaInsets;
    CGFloat splatBackward = 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 mayIrish] || [UIDevice wayMay]) {//无刘海
            splatBackward = UIScreen.mainScreen.bounds.size.height*MapSheFocus.sideHandledReturnsProminentClock;
        }else {
            splatBackward = (UIScreen.mainScreen.bounds.size.height - safe.bottom)*MapSheFocus.sideHandledReturnsProminentClock;
        }
        return CGSizeMake(UIScreen.mainScreen.bounds.size.width, splatBackward);
        
    }else { 
        if (![UIDevice mayIrish] || [UIDevice wayMay]) {//无刘海
            splatBackward = UIScreen.mainScreen.bounds.size.width * MapSheFocus.sideHandledReturnsProminentClock;
        }else {
            if (orientation == UIInterfaceOrientationLandscapeRight) {
                splatBackward = (UIScreen.mainScreen.bounds.size.width - safe.left) * MapSheFocus.sideHandledReturnsProminentClock;
            }else {
                splatBackward = (UIScreen.mainScreen.bounds.size.width - safe.right) * MapSheFocus.sideHandledReturnsProminentClock;
            }
        }
        return CGSizeMake(splatBackward, UIScreen.mainScreen.bounds.size.height);
    }
}

- (void)recentlyOptimizeReportCircleReference {
    UIWindow *tooWaitWindow = [[FormThirdManager shared] partlyVisualWindow];
    UIEdgeInsets safe = tooWaitWindow.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.utteranceArtSize);
        }];
    }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.utteranceArtSize);
            }];
        }else {
            [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.centerY.left.mas_equalTo(0);
                make.size.mas_equalTo(self.utteranceArtSize);
            }];
        }
    }
}

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

@end
