






#import "AutoTiedChainViewController.h"
#import "RotorWaitManager.h"
#import "BlindingView.h"
#import "UIColor+CutColor.h"
#import "UIDevice+PenDevice.h"
#import "UIImage+ManImage.h"
#import "ItemOneMenConfig.h"


@implementation AutoTiedChainViewController

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

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = SheTintAuto.descendTrashPressureDependingProtocolsLegible ? [UIColor capExistFilmDiphthongWaxMostly:SheTintAuto.descendTrashPressureDependingProtocolsLegible]:UIColor.whiteColor;

    self.circleLoops = self.membersPool;
    [BlindingView sinkGroup];
    

    self.execStarted.opaque = NO;
    self.view.backgroundColor = [UIColor.blackColor colorWithAlphaComponent:0];
    
    [self.execStarted mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(0);
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(moveComments) name:SheTintAuto.linerIndexed.samplerPubMergeToggleSafariFact object:nil];
}

- (void)moveComments {
    [self.execStarted reload];
}


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

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


//}

-(void)viewWillDisappear:(BOOL)animated {
    if ([SheTintAuto gramPlaceTrackingDatabasesAppliesName] && ItemOneMenConfig.shared.hindiSignerDeferringTeamProvince.pubGreenBit.sawRunTwist) {
        [BlindingView wayResign];
    }
    [super viewWillDisappear:animated];
    
}

- (CGSize)wayRollMusicSize {
    UIWindow *skipHitWindow = [[RotorWaitManager shared] terminateRowWindow];
    UIEdgeInsets safe = skipHitWindow.safeAreaInsets;
    CGFloat lessGenreTall = 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 runSolid] || [UIDevice dogIll]) {//无刘海
            lessGenreTall = UIScreen.mainScreen.bounds.size.height*SheTintAuto.handleProjectsPresentWhitePremature;
        }else {
            lessGenreTall = (UIScreen.mainScreen.bounds.size.height - safe.bottom)*SheTintAuto.handleProjectsPresentWhitePremature;
        }
        return CGSizeMake(UIScreen.mainScreen.bounds.size.width, lessGenreTall);
        
    }else { 
        if (![UIDevice runSolid] || [UIDevice dogIll]) {//无刘海
            lessGenreTall = UIScreen.mainScreen.bounds.size.width * SheTintAuto.handleProjectsPresentWhitePremature;
        }else {
            if (orientation == UIInterfaceOrientationLandscapeRight) {
                lessGenreTall = (UIScreen.mainScreen.bounds.size.width - safe.left) * SheTintAuto.handleProjectsPresentWhitePremature;
            }else {
                lessGenreTall = (UIScreen.mainScreen.bounds.size.width - safe.right) * SheTintAuto.handleProjectsPresentWhitePremature;
            }
        }
        return CGSizeMake(lessGenreTall, UIScreen.mainScreen.bounds.size.height);
    }
}

- (void)collationCalendarZonePanoramasType {
    UIWindow *skipHitWindow = [[RotorWaitManager shared] terminateRowWindow];
    UIEdgeInsets safe = skipHitWindow.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.wayRollMusicSize);
        }];
    }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.wayRollMusicSize);
            }];
        }else {
            [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.centerY.left.mas_equalTo(0);
                make.size.mas_equalTo(self.wayRollMusicSize);
            }];
        }
    }
}

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

@end
