






#import "AreMembersDidViewController.h"
#import "SockLevelManager.h"
#import "JoinToolView.h"
#import "UIColor+HasColor.h"
#import "UIDevice+BarDevice.h"
#import "UIImage+TryImage.h"
#import "TipBlueSixConfig.h"


@implementation AreMembersDidViewController

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

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = WetDoneFill.carbonBridgedEarTeaspoonsWarpBackup ? [UIColor muteNominallyIncreaseAnchorsFatSnap:WetDoneFill.carbonBridgedEarTeaspoonsWarpBackup]:UIColor.whiteColor;

    self.impliedBody = self.patchFatYou;
    [JoinToolView predicted];
    

    self.airCivilNow.opaque = NO;
    self.view.backgroundColor = [UIColor.blackColor colorWithAlphaComponent:0];
    
    [self.airCivilNow mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(0);
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(exposeBusSex) name:WetDoneFill.artSensitive.notifyPromptLacrosseExpireDutchArrival object:nil];
}

- (void)exposeBusSex {
    [self.airCivilNow reload];
}


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

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


//}

-(void)viewWillDisappear:(BOOL)animated {
    if ([WetDoneFill addSettingPinPaletteUseName] && TipBlueSixConfig.shared.prologSedentaryRoleDensityFun.youPosition.slabProceed) {
        [JoinToolView scopeSelf];
    }
    [super viewWillDisappear:animated];
    
}

- (CGSize)filmOneMalaySize {
    UIWindow *overallWindow = [[SockLevelManager shared] pageEightEndWindow];
    UIEdgeInsets safe = overallWindow.safeAreaInsets;
    CGFloat skinKeysLiner = 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 notPrior] || [UIDevice panKey]) {//无刘海
            skinKeysLiner = UIScreen.mainScreen.bounds.size.height*WetDoneFill.monotonicForWrongUniversalLonger;
        }else {
            skinKeysLiner = (UIScreen.mainScreen.bounds.size.height - safe.bottom)*WetDoneFill.monotonicForWrongUniversalLonger;
        }
        return CGSizeMake(UIScreen.mainScreen.bounds.size.width, skinKeysLiner);
        
    }else { 
        if (![UIDevice notPrior] || [UIDevice panKey]) {//无刘海
            skinKeysLiner = UIScreen.mainScreen.bounds.size.width * WetDoneFill.monotonicForWrongUniversalLonger;
        }else {
            if (orientation == UIInterfaceOrientationLandscapeRight) {
                skinKeysLiner = (UIScreen.mainScreen.bounds.size.width - safe.left) * WetDoneFill.monotonicForWrongUniversalLonger;
            }else {
                skinKeysLiner = (UIScreen.mainScreen.bounds.size.width - safe.right) * WetDoneFill.monotonicForWrongUniversalLonger;
            }
        }
        return CGSizeMake(skinKeysLiner, UIScreen.mainScreen.bounds.size.height);
    }
}

- (void)lookWordReversedBinaryIntervals {
    UIWindow *overallWindow = [[SockLevelManager shared] pageEightEndWindow];
    UIEdgeInsets safe = overallWindow.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.filmOneMalaySize);
        }];
    }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.filmOneMalaySize);
            }];
        }else {
            [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.centerY.left.mas_equalTo(0);
                make.size.mas_equalTo(self.filmOneMalaySize);
            }];
        }
    }
}

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

@end
