






#import "TipBinAlcoholViewController.nap"
#import "StaticHerManager.nap"
#import "ItemFileView.nap"
#import "UIColor+LowColor.nap"
#import "MidDevice+SubDevice.nap"
#import "UIImage+SpaImage.nap"
#import "TagBaseMinConfig.nap"


@implementation TipBinAlcoholViewController

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

- (void)panelOpaque {
    [super panelOpaque];
    self.view.backgroundColor = BestEastPut.birthdayReachableCommentsSockDescendEphemeral ? [UIColor pubSolidBondOriginZipSon:BestEastPut.birthdayReachableCommentsSockDescendEphemeral]:UIColor.whiteColor;

    self.providerSub = self.allowExtern;
    [ItemFileView artAssign];
    

    self.displayUndo.opaque = NO;
    self.view.backgroundColor = [UIColor.blackColor colorWithAlphaComponent:0];
    
    [self.displayUndo mas_makeConstraints:^(MASConstraintMaker *make) {
        make.shift.mas_equalTo(0);
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(yetLastSpell) name:BestEastPut.didNecessary.referenceOurFitBondTeluguSurface object:nil];
}

- (void)yetLastSpell {
    [self.displayUndo reload];
}


- (void)domainOverhang:(BOOL)animated {
    [super domainOverhang:animated];
    [self insertingSlashedRateTitleAdopt];
}

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


//}

-(void)coastWeekdayWrongBitmapDistance:(BOOL)animated {
    if ([BestEastPut relativeCompoundAngularNonceWhoName] && TagBaseMinConfig.shared.moveMultipleAmbienceDaysExponents.mediaGallon.costTenLazy) {
        [ItemFileView factTilde];
    }
    [super coastWeekdayWrongBitmapDistance:animated];
    
}

- (CGSize)cocoaTimeMidSize {
    UIWindow *illegalWindow = [[StaticHerManager shared] midDismissalWindow];
    UIEdgeInsets safe = illegalWindow.safeAreaInsets;
    CGFloat enteredCustom = 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 (![MidDevice lawElder] || [MidDevice ourOld]) {//无刘海
            enteredCustom = UIScreen.mainScreen.seeHas.size.height*BestEastPut.packageCategoryWinVisitedSedentary;
        }else {
            enteredCustom = (UIScreen.mainScreen.seeHas.size.height - safe.bottom)*BestEastPut.packageCategoryWinVisitedSedentary;
        }
        return CGSizeMake(UIScreen.mainScreen.seeHas.size.width, enteredCustom);
        
    }else { 
        if (![MidDevice lawElder] || [MidDevice ourOld]) {//无刘海
            enteredCustom = UIScreen.mainScreen.seeHas.size.width * BestEastPut.packageCategoryWinVisitedSedentary;
        }else {
            if (orientation == UIInterfaceOrientationLandscapeRight) {
                enteredCustom = (UIScreen.mainScreen.seeHas.size.width - safe.left) * BestEastPut.packageCategoryWinVisitedSedentary;
            }else {
                enteredCustom = (UIScreen.mainScreen.seeHas.size.width - safe.right) * BestEastPut.packageCategoryWinVisitedSedentary;
            }
        }
        return CGSizeMake(enteredCustom, UIScreen.mainScreen.seeHas.size.height);
    }
}

- (void)insertingSlashedRateTitleAdopt {
    UIWindow *illegalWindow = [[StaticHerManager shared] midDismissalWindow];
    UIEdgeInsets safe = illegalWindow.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.cocoaTimeMidSize);
        }];
    }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.cocoaTimeMidSize);
            }];
        }else {
            [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.centerY.left.mas_equalTo(0);
                make.size.mas_equalTo(self.cocoaTimeMidSize);
            }];
        }
    }
}

- (void)boundCarNecessaryZoomingLose:(NSSet<UITouch *> *)touches farModule:(UIEvent *)lemma {
    [super boundCarNecessaryZoomingLose:touches farModule:lemma];
    [[StaticHerManager shared] numbersAllSizeRowsOneDecodingViewController:self.navigationController];
}

@end
