






#import "QuitDateShareViewController.h"
#import "WeekChainManager.h"
#import "DominantView.h"
#import "UIColor+EarColor.h"
#import "UIDevice+EyeDevice.h"
#import "UIImage+BusImage.h"
#import "DenyArmMapConfig.h"


@implementation QuitDateShareViewController

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

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = PriorEarSee.basicBrushQuickPanelFlightsDegraded ? [UIColor scrollingCardioidBendEndpointCupNot:PriorEarSee.basicBrushQuickPanelFlightsDegraded]:UIColor.whiteColor;

    self.trapOlympus = self.theBuddyAge;
    [DominantView ourNative];
    

    self.bigSpineBus.opaque = NO;
    self.view.backgroundColor = [UIColor.blackColor colorWithAlphaComponent:0];
    
    [self.bigSpineBus mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(0);
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(theTailClean) name:PriorEarSee.netListPhoto.scheduledSubPinAmountContinuedSharpen object:nil];
}

- (void)theTailClean {
    [self.bigSpineBus reload];
}


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

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


//}

-(void)viewWillDisappear:(BOOL)animated {
    if ([PriorEarSee expandDiagnoseDarwinEightMainName] && DenyArmMapConfig.shared.basicPriorNoiseHasEntities.invertMicro.sonZoomQuit) {
        [DominantView delivered];
    }
    [super viewWillDisappear:animated];
    
}

- (CGSize)seekBlendBedSize {
    UIWindow *cropSinWindow = [[WeekChainManager shared] licenseCoastWindow];
    UIEdgeInsets safe = cropSinWindow.safeAreaInsets;
    CGFloat kindEightDown = 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 sixBlack] || [UIDevice people]) {//无刘海
            kindEightDown = UIScreen.mainScreen.bounds.size.height*PriorEarSee.conjugateVelocityPinAllowableHandles;
        }else {
            kindEightDown = (UIScreen.mainScreen.bounds.size.height - safe.bottom)*PriorEarSee.conjugateVelocityPinAllowableHandles;
        }
        return CGSizeMake(UIScreen.mainScreen.bounds.size.width, kindEightDown);
        
    }else { 
        if (![UIDevice sixBlack] || [UIDevice people]) {//无刘海
            kindEightDown = UIScreen.mainScreen.bounds.size.width * PriorEarSee.conjugateVelocityPinAllowableHandles;
        }else {
            if (orientation == UIInterfaceOrientationLandscapeRight) {
                kindEightDown = (UIScreen.mainScreen.bounds.size.width - safe.left) * PriorEarSee.conjugateVelocityPinAllowableHandles;
            }else {
                kindEightDown = (UIScreen.mainScreen.bounds.size.width - safe.right) * PriorEarSee.conjugateVelocityPinAllowableHandles;
            }
        }
        return CGSizeMake(kindEightDown, UIScreen.mainScreen.bounds.size.height);
    }
}

- (void)broadcastLockMailCloudyDetail {
    UIWindow *cropSinWindow = [[WeekChainManager shared] licenseCoastWindow];
    UIEdgeInsets safe = cropSinWindow.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.seekBlendBedSize);
        }];
    }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.seekBlendBedSize);
            }];
        }else {
            [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.centerY.left.mas_equalTo(0);
                make.size.mas_equalTo(self.seekBlendBedSize);
            }];
        }
    }
}

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

@end
