






#import "OutputsMenViewController.h"
#import "SeparatedManager.h"
#import "MileLikeView.h"
#import "UIColor+EggColor.h"
#import "UIDevice+CarDevice.h"
#import "UIImage+TagImage.h"
#import "RestWhoEarConfig.h"

@interface OutputsMenViewController ()

@property (nonatomic, strong) UIView * butJobView;
@property (nonatomic, strong) UIImageView * carView;

@end

@implementation OutputsMenViewController

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

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = RaceRateYou.snapBorderedLockToolAlgorithmPrecision ? [UIColor reuseOriginsArgumentsActivityUtteranceGigabytes:RaceRateYou.snapBorderedLockToolAlgorithmPrecision]:UIColor.whiteColor;

    self.hashRecycle = self.discreteTry;
    [MileLikeView unifyBase];
    
    self.butJobView = [UIView new];
    self.butJobView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:self.butJobView];
    
    self.carView = [[UIImageView alloc] initWithImage:[UIImage dependingLigatureDimensionBuildEdgaName:RaceRateYou.wristBoldNot.overhangLargeCellularBetweenDropContain]];;
    [self.view addSubview:self.carView];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(allLegalBond) name:RaceRateYou.wristBoldNot.chamberTimeAssemblySobWaxInternal object:nil];
}

- (void)allLegalBond {
    [self.videoSender reload];
}

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

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


//}

-(void)viewWillDisappear:(BOOL)animated {
    if ([RaceRateYou servicesShowersProvidesAudiogramMediaName] && RestWhoEarConfig.shared.provisionMapCostProviderEgg.busyClamped.skipCleared) {
        [MileLikeView mediumPut];
    }
    [super viewWillDisappear:animated];
    
}

- (CGSize)waySpokenWasSize {
    if ([UIDevice tagger]) {
        return CGSizeMake(RaceRateYou.mergeBoxSolutionsDingbatsFor, RaceRateYou.mergeBoxSolutionsDingbatsFor);
    }
    UIWindow *seedMidWindow = [[SeparatedManager shared] nordicBecomeWindow];
    UIEdgeInsets safe = seedMidWindow.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 retryZip]) {
            return CGSizeMake(UIScreen.mainScreen.bounds.size.width, RaceRateYou.mergeBoxSolutionsDingbatsFor);
        }
        return CGSizeMake(UIScreen.mainScreen.bounds.size.width, RaceRateYou.mergeBoxSolutionsDingbatsFor + safe.bottom);
    }else {
        if (![UIDevice retryZip]) {
            return CGSizeMake(RaceRateYou.mergeBoxSolutionsDingbatsFor,UIScreen.mainScreen.bounds.size.height);
        }
        if (orientation == UIInterfaceOrientationLandscapeRight) {
            return CGSizeMake(RaceRateYou.mergeBoxSolutionsDingbatsFor + safe.left,UIScreen.mainScreen.bounds.size.height);
        }else {
            return CGSizeMake(RaceRateYou.mergeBoxSolutionsDingbatsFor + 5,UIScreen.mainScreen.bounds.size.height);
        }
    }
}

- (void)europeanCollisionPartialSonAlignment {
    UIWindow *seedMidWindow = [[SeparatedManager shared] nordicBecomeWindow];
    UIEdgeInsets safe = seedMidWindow.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 tagger]) {
            self.butJobView.layer.cornerRadius = 5.f;
            self.butJobView.layer.maskedCorners = kCALayerMinXMinYCorner | kCALayerMaxXMinYCorner;
        }
        [self.butJobView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.bottom.equalTo(self.view.mas_top);
            make.left.right.equalTo(self.view);
            make.height.mas_equalTo(RaceRateYou.wristBoldNot.fingerKitPop);
        }];
        [self.carView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.bottom.equalTo(self.butJobView.mas_top);
            make.centerX.equalTo(self.view);
            make.size.mas_equalTo(CGSizeMake(RaceRateYou.wristBoldNot.portalRename, RaceRateYou.wristBoldNot.findGlobally));
        }];
        [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.centerX.bottom.mas_equalTo(0);
            make.size.mas_equalTo(self.waySpokenWasSize);
        }];
        [self.videoSender mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.left.right.mas_equalTo(0);
            make.height.mas_equalTo(RaceRateYou.mergeBoxSolutionsDingbatsFor);
        }];
        self.view.transform = CGAffineTransformMakeTranslation(0, self.waySpokenWasSize.height);
    }else {
        
        if ([UIDevice tagger]) {
            self.butJobView.layer.cornerRadius = 5.f;
            self.butJobView.layer.maskedCorners = kCALayerMaxXMaxYCorner | kCALayerMaxXMinYCorner;
        }
        [self.butJobView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.view.mas_right);
            make.top.bottom.equalTo(self.view);
            make.width.mas_equalTo(RaceRateYou.wristBoldNot.fingerKitPop);
        }];
        UIImage *rankTaskImage = [UIImage dependingLigatureDimensionBuildEdgaName:RaceRateYou.wristBoldNot.overhangLargeCellularBetweenDropContain];
        UIImage *waitFixImage = [UIImage imageWithCGImage:rankTaskImage.CGImage
                                                    scale:rankTaskImage.scale
                                              orientation:UIImageOrientationRight]; 
        self.carView.image = waitFixImage;
        [self.carView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.butJobView.mas_right);
            make.centerY.equalTo(self.view);
            make.size.mas_equalTo(CGSizeMake(RaceRateYou.wristBoldNot.findGlobally, RaceRateYou.wristBoldNot.portalRename));
        }];
        [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.centerY.left.mas_equalTo(0);
            make.size.mas_equalTo(self.waySpokenWasSize);
        }];
        [self.videoSender mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.bottom.right.mas_equalTo(0);
            make.width.mas_equalTo(RaceRateYou.mergeBoxSolutionsDingbatsFor);
        }];
        self.view.transform = CGAffineTransformMakeTranslation(-self.waySpokenWasSize.width, 0);
    }
    [UIView animateWithDuration:0.3 animations:^{
        self.view.transform = CGAffineTransformIdentity;
    }];
}

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

@end
