






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

@interface TapShowDryViewController ()

@property (nonatomic, strong) UIView * sphereView;
@property (nonatomic, strong) UIImageView * bagView;

@end

@implementation TapShowDryViewController

- (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.sphereView = [UIView new];
    self.sphereView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:self.sphereView];
    
    self.bagView = [[UIImageView alloc] initWithImage:[UIImage rainClosureAbortCollectStarName:SheTintAuto.linerIndexed.barrierAlienCacheVolatileContinuedThin]];;
    [self.view addSubview:self.bagView];
    
    [[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 {
    if ([UIDevice dogIll]) {
        return CGSizeMake(SheTintAuto.badEngineerInheritedWayStamp, SheTintAuto.badEngineerInheritedWayStamp);
    }
    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) {
        if (![UIDevice runSolid]) {
            return CGSizeMake(UIScreen.mainScreen.bounds.size.width, SheTintAuto.badEngineerInheritedWayStamp);
        }
        return CGSizeMake(UIScreen.mainScreen.bounds.size.width, SheTintAuto.badEngineerInheritedWayStamp + safe.bottom);
    }else {
        if (![UIDevice runSolid]) {
            return CGSizeMake(SheTintAuto.badEngineerInheritedWayStamp,UIScreen.mainScreen.bounds.size.height);
        }
        if (orientation == UIInterfaceOrientationLandscapeRight) {
            return CGSizeMake(SheTintAuto.badEngineerInheritedWayStamp + safe.left,UIScreen.mainScreen.bounds.size.height);
        }else {
            return CGSizeMake(SheTintAuto.badEngineerInheritedWayStamp + 5,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) {
        
        if ([UIDevice dogIll]) {
            self.sphereView.layer.cornerRadius = 5.f;
            self.sphereView.layer.maskedCorners = kCALayerMinXMinYCorner | kCALayerMaxXMinYCorner;
        }
        [self.sphereView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.bottom.equalTo(self.view.mas_top);
            make.left.right.equalTo(self.view);
            make.height.mas_equalTo(SheTintAuto.linerIndexed.drawBehavior);
        }];
        [self.bagView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.bottom.equalTo(self.sphereView.mas_top);
            make.centerX.equalTo(self.view);
            make.size.mas_equalTo(CGSizeMake(SheTintAuto.linerIndexed.wasNetWeekly, SheTintAuto.linerIndexed.airVoiceZero));
        }];
        [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.centerX.bottom.mas_equalTo(0);
            make.size.mas_equalTo(self.wayRollMusicSize);
        }];
        [self.execStarted mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.left.right.mas_equalTo(0);
            make.height.mas_equalTo(SheTintAuto.badEngineerInheritedWayStamp);
        }];
        self.view.transform = CGAffineTransformMakeTranslation(0, self.wayRollMusicSize.height);
    }else {
        
        if ([UIDevice dogIll]) {
            self.sphereView.layer.cornerRadius = 5.f;
            self.sphereView.layer.maskedCorners = kCALayerMaxXMaxYCorner | kCALayerMaxXMinYCorner;
        }
        [self.sphereView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.view.mas_right);
            make.top.bottom.equalTo(self.view);
            make.width.mas_equalTo(SheTintAuto.linerIndexed.drawBehavior);
        }];
        UIImage *watchOurImage = [UIImage rainClosureAbortCollectStarName:SheTintAuto.linerIndexed.barrierAlienCacheVolatileContinuedThin];
        UIImage *gaspDidImage = [UIImage imageWithCGImage:watchOurImage.CGImage
                                                    scale:watchOurImage.scale
                                              orientation:UIImageOrientationRight]; 
        self.bagView.image = gaspDidImage;
        [self.bagView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.sphereView.mas_right);
            make.centerY.equalTo(self.view);
            make.size.mas_equalTo(CGSizeMake(SheTintAuto.linerIndexed.airVoiceZero, SheTintAuto.linerIndexed.wasNetWeekly));
        }];
        [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.centerY.left.mas_equalTo(0);
            make.size.mas_equalTo(self.wayRollMusicSize);
        }];
        [self.execStarted mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.bottom.right.mas_equalTo(0);
            make.width.mas_equalTo(SheTintAuto.badEngineerInheritedWayStamp);
        }];
        self.view.transform = CGAffineTransformMakeTranslation(-self.wayRollMusicSize.width, 0);
    }
    [UIView animateWithDuration:0.3 animations:^{
        self.view.transform = CGAffineTransformIdentity;
    }];
}

- (void)supportedZipSinIndicesRadial:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    spouses(self);
    [super supportedZipSinIndicesRadial:touches withEvent:event];
#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.transform = CGAffineTransformMakeTranslation(0, weakself.wayRollMusicSize.height);;
        } completion:^(BOOL finished) {
            [[RotorWaitManager shared] receiverInvisibleSoloEjectRatingsModerateViewController:self.navigationController];
        }];
    }else {
        [UIView animateWithDuration:0.3 animations:^{
            self.view.transform = CGAffineTransformMakeTranslation(-weakself.wayRollMusicSize.width, 0);
        } completion:^(BOOL finished) {
            [[RotorWaitManager shared] receiverInvisibleSoloEjectRatingsModerateViewController:weakself.navigationController];
        }];
    }
}

@end
