






#import "PivotIssueTryViewController.h"
#import "RelevanceManager.h"
#import "BleedAgeView.h"
#import "UIColor+DryColor.h"
#import "UIDevice+FixDevice.h"
#import "UIImage+MenImage.h"
#import "StillWatchConfig.h"


@implementation PivotIssueTryViewController

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

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = FixChunkBad.mindfulTintBordersRangeFurlongsMetering ? [UIColor formattedParameterBlockEmailEstablishAnonymous:FixChunkBad.mindfulTintBordersRangeFurlongsMetering]:UIColor.whiteColor;

    self.youSheSpell = self.cellularKin;
    [BleedAgeView sleepHigh];
    

    self.illPortPlus.opaque = NO;
    self.view.backgroundColor = [UIColor.blackColor colorWithAlphaComponent:0];
    
    [self.illPortPlus mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(0);
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(dublinHelper) name:FixChunkBad.swedishTwist.tertiaryDecodeParameterSymbolicParagraphCut object:nil];
}

- (void)dublinHelper {
    [self.illPortPlus reload];
}


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

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


//}

-(void)viewWillDisappear:(BOOL)animated {
    if ([FixChunkBad hebrewExponentsTwelveCircularBottomName] && StillWatchConfig.shared.soloSexLockGolfStill.highTradRow.paperHerYet) {
        [BleedAgeView teamCover];
    }
    [super viewWillDisappear:animated];
    
}

- (CGSize)minDecryptedSize {
    UIWindow *wrapDayWindow = [[RelevanceManager shared] ropeAnimatorWindow];
    UIEdgeInsets safe = wrapDayWindow.safeAreaInsets;
    CGFloat wonLawTakeMap = 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 wayFirst] || [UIDevice binDid]) {//无刘海
            wonLawTakeMap = UIScreen.mainScreen.bounds.size.height*FixChunkBad.burnTagsBestSexualVersion;
        }else {
            wonLawTakeMap = (UIScreen.mainScreen.bounds.size.height - safe.bottom)*FixChunkBad.burnTagsBestSexualVersion;
        }
        return CGSizeMake(UIScreen.mainScreen.bounds.size.width, wonLawTakeMap);
        
    }else { 
        if (![UIDevice wayFirst] || [UIDevice binDid]) {//无刘海
            wonLawTakeMap = UIScreen.mainScreen.bounds.size.width * FixChunkBad.burnTagsBestSexualVersion;
        }else {
            if (orientation == UIInterfaceOrientationLandscapeRight) {
                wonLawTakeMap = (UIScreen.mainScreen.bounds.size.width - safe.left) * FixChunkBad.burnTagsBestSexualVersion;
            }else {
                wonLawTakeMap = (UIScreen.mainScreen.bounds.size.width - safe.right) * FixChunkBad.burnTagsBestSexualVersion;
            }
        }
        return CGSizeMake(wonLawTakeMap, UIScreen.mainScreen.bounds.size.height);
    }
}

- (void)nativePairMinderNibblesUpload {
    UIWindow *wrapDayWindow = [[RelevanceManager shared] ropeAnimatorWindow];
    UIEdgeInsets safe = wrapDayWindow.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.minDecryptedSize);
        }];
    }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.minDecryptedSize);
            }];
        }else {
            [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.centerY.left.mas_equalTo(0);
                make.size.mas_equalTo(self.minDecryptedSize);
            }];
        }
    }
}

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

@end
