






#import "NetRebusNeverViewController.h"
#import "ExportKitManager.h"
#import "NotAlphaView.h"
#import "UIColor+RowColor.h"
#import "UIDevice+OurDevice.h"
#import "UIImage+WasImage.h"
#import "CertPenSheConfig.h"


@implementation NetRebusNeverViewController

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

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = MenTintSave.guideSunHormoneSentencesCenteredRectangle ? [UIColor hailHandStylusKelvinPitchReminder:MenTintSave.guideSunHormoneSentencesCenteredRectangle]:UIColor.whiteColor;

    self.textBeenTag = self.exceededAdd;
    [NotAlphaView carActual];
    

    self.anyReadHelp.opaque = NO;
    self.view.backgroundColor = [UIColor.blackColor colorWithAlphaComponent:0];
    
    [self.anyReadHelp mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(0);
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(daysStandKit) name:MenTintSave.ironRouteMix.brokenLongitudeMediaMetadataChestFixture object:nil];
}

- (void)daysStandKit {
    [self.anyReadHelp reload];
}


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

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


//}

-(void)viewWillDisappear:(BOOL)animated {
    if ([MenTintSave portraitsCommitHandledSettlingYouName] && CertPenSheConfig.shared.infinityRangingInputSunNumerator.platformTop.nothingWill) {
        [NotAlphaView rejection];
    }
    [super viewWillDisappear:animated];
    
}

- (CGSize)penStriationSize {
    UIWindow *requireWindow = [[ExportKitManager shared] outButtonFarWindow];
    UIEdgeInsets safe = requireWindow.safeAreaInsets;
    CGFloat popEndNoteCap = 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 pingMask] || [UIDevice getGet]) {//无刘海
            popEndNoteCap = UIScreen.mainScreen.bounds.size.height*MenTintSave.provinceObservingVoiceOutPotential;
        }else {
            popEndNoteCap = (UIScreen.mainScreen.bounds.size.height - safe.bottom)*MenTintSave.provinceObservingVoiceOutPotential;
        }
        return CGSizeMake(UIScreen.mainScreen.bounds.size.width, popEndNoteCap);
        
    }else { 
        if (![UIDevice pingMask] || [UIDevice getGet]) {//无刘海
            popEndNoteCap = UIScreen.mainScreen.bounds.size.width * MenTintSave.provinceObservingVoiceOutPotential;
        }else {
            if (orientation == UIInterfaceOrientationLandscapeRight) {
                popEndNoteCap = (UIScreen.mainScreen.bounds.size.width - safe.left) * MenTintSave.provinceObservingVoiceOutPotential;
            }else {
                popEndNoteCap = (UIScreen.mainScreen.bounds.size.width - safe.right) * MenTintSave.provinceObservingVoiceOutPotential;
            }
        }
        return CGSizeMake(popEndNoteCap, UIScreen.mainScreen.bounds.size.height);
    }
}

- (void)recentlyTransitOptFrameFour {
    UIWindow *requireWindow = [[ExportKitManager shared] outButtonFarWindow];
    UIEdgeInsets safe = requireWindow.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.penStriationSize);
        }];
    }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.penStriationSize);
            }];
        }else {
            [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.centerY.left.mas_equalTo(0);
                make.size.mas_equalTo(self.penStriationSize);
            }];
        }
    }
}

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

@end
