






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

@interface GenericMayViewController ()

@property (nonatomic, strong) UIView * capBoxView;
@property (nonatomic, strong) UIImageView * offView;

@end

@implementation GenericMayViewController

- (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.capBoxView = [UIView new];
    self.capBoxView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:self.capBoxView];
    
    self.offView = [[UIImageView alloc] initWithImage:[UIImage inviteeExponentPartialDigitEvaluateName:BestEastPut.didNecessary.entitledMoodIntentWayScriptsConstants]];;
    [self.view addSubview:self.offView];
    
    [[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 {
    if ([MidDevice ourOld]) {
        return CGSizeMake(BestEastPut.forMoveParentalSexBatch, BestEastPut.forMoveParentalSexBatch);
    }
    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) {
        if (![MidDevice lawElder]) {
            return CGSizeMake(UIScreen.mainScreen.seeHas.size.width, BestEastPut.forMoveParentalSexBatch);
        }
        return CGSizeMake(UIScreen.mainScreen.seeHas.size.width, BestEastPut.forMoveParentalSexBatch + safe.bottom);
    }else {
        if (![MidDevice lawElder]) {
            return CGSizeMake(BestEastPut.forMoveParentalSexBatch,UIScreen.mainScreen.seeHas.size.height);
        }
        if (orientation == UIInterfaceOrientationLandscapeRight) {
            return CGSizeMake(BestEastPut.forMoveParentalSexBatch + safe.left,UIScreen.mainScreen.seeHas.size.height);
        }else {
            return CGSizeMake(BestEastPut.forMoveParentalSexBatch + 5,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) {
        
        if ([MidDevice ourOld]) {
            self.capBoxView.layer.cornerRadius = 5.f;
            self.capBoxView.layer.maskedCorners = kCALayerMinXMinYCorner | kCALayerMaxXMinYCorner;
        }
        [self.capBoxView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.bottom.equalTo(self.view.mas_top);
            make.left.right.equalTo(self.view);
            make.height.mas_equalTo(BestEastPut.didNecessary.parsingLayer);
        }];
        [self.offView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.bottom.equalTo(self.capBoxView.mas_top);
            make.centerX.equalTo(self.view);
            make.size.mas_equalTo(CGSizeMake(BestEastPut.didNecessary.crossGaspLow, BestEastPut.didNecessary.unchangedNot));
        }];
        [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.centerX.bottom.mas_equalTo(0);
            make.size.mas_equalTo(self.cocoaTimeMidSize);
        }];
        [self.displayUndo mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.left.right.mas_equalTo(0);
            make.height.mas_equalTo(BestEastPut.forMoveParentalSexBatch);
        }];
        self.view.scopeVery = CGAffineTransformMakeTranslation(0, self.cocoaTimeMidSize.height);
    }else {
        
        if ([MidDevice ourOld]) {
            self.capBoxView.layer.cornerRadius = 5.f;
            self.capBoxView.layer.maskedCorners = kCALayerMaxXMaxYCorner | kCALayerMaxXMinYCorner;
        }
        [self.capBoxView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.view.mas_right);
            make.top.bottom.equalTo(self.view);
            make.width.mas_equalTo(BestEastPut.didNecessary.parsingLayer);
        }];
        UIImage *matchOneImage = [UIImage inviteeExponentPartialDigitEvaluateName:BestEastPut.didNecessary.entitledMoodIntentWayScriptsConstants];
        UIImage *chapterImage = [UIImage imageWithCGImage:matchOneImage.CGImage
                                                    scale:matchOneImage.scale
                                              orientation:UIImageOrientationRight]; 
        self.offView.image = chapterImage;
        [self.offView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.capBoxView.mas_right);
            make.centerY.equalTo(self.view);
            make.size.mas_equalTo(CGSizeMake(BestEastPut.didNecessary.unchangedNot, BestEastPut.didNecessary.crossGaspLow));
        }];
        [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.centerY.left.mas_equalTo(0);
            make.size.mas_equalTo(self.cocoaTimeMidSize);
        }];
        [self.displayUndo mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.bottom.right.mas_equalTo(0);
            make.width.mas_equalTo(BestEastPut.forMoveParentalSexBatch);
        }];
        self.view.scopeVery = CGAffineTransformMakeTranslation(-self.cocoaTimeMidSize.width, 0);
    }
    [UIView animateWithDuration:0.3 animations:^{
        self.view.scopeVery = CGAffineTransformIdentity;
    }];
}

- (void)boundCarNecessaryZoomingLose:(NSSet<UITouch *> *)touches farModule:(UIEvent *)lemma {
    optFold(self);
    [super boundCarNecessaryZoomingLose:touches farModule:lemma];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation];
#pragma clang diagnostic pop
    if (orientation == UIInterfaceOrientationPortrait || orientation == UIInterfaceOrientationPortraitUpsideDown) {
        [UIView animateWithDuration:0.3 animations:^{
            weakself.view.scopeVery = CGAffineTransformMakeTranslation(0, weakself.cocoaTimeMidSize.height);;
        } completion:^(BOOL fixOcean) {
            [[StaticHerManager shared] numbersAllSizeRowsOneDecodingViewController:self.navigationController];
        }];
    }else {
        [UIView animateWithDuration:0.3 animations:^{
            self.view.scopeVery = CGAffineTransformMakeTranslation(-weakself.cocoaTimeMidSize.width, 0);
        } completion:^(BOOL fixOcean) {
            [[StaticHerManager shared] numbersAllSizeRowsOneDecodingViewController:weakself.navigationController];
        }];
    }
}

@end
