






#import "OldSentMidViewController.h"
#import "TalkArrayManager.h"
#import "BlackWasView.h"
#import "UIColor+WinColor.h"
#import "UIDevice+CanDevice.h"
#import "UIImage+IllImage.h"
#import "OptTextSeeConfig.h"

@interface OldSentMidViewController ()

@property (nonatomic, strong) UIView * putJobView;
@property (nonatomic, strong) UIImageView * outView;

@end

@implementation OldSentMidViewController

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

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = DueIcyFetch.entryDetectsCutoffArrowDispenseAlphabet ? [UIColor phoneticAlignmentLabelSortUnsavedLeave:DueIcyFetch.entryDetectsCutoffArrowDispenseAlphabet]:UIColor.whiteColor;

    self.bankViewSex = self.weeklySpeed;
    [BlackWasView ringClick];
    
    self.putJobView = [UIView new];
    self.putJobView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:self.putJobView];
    
    self.outView = [[UIImageView alloc] initWithImage:[UIImage consoleMinKilowattsBaselinesEnablingName:DueIcyFetch.itsPosterIcy.blurRejectSegmentedCounterSpatialMonotonic]];;
    [self.view addSubview:self.outView];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(ownNetEncode) name:DueIcyFetch.itsPosterIcy.panExportActivityThreadPongDecline object:nil];
}

- (void)ownNetEncode {
    [self.whoEraPause reload];
}

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

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


//}

-(void)viewWillDisappear:(BOOL)animated {
    if ([DueIcyFetch personalMatrixManganeseLookMustName] && OptTextSeeConfig.shared.coachedBypassAlienCandidateArt.responseBar.wayLeaseWet) {
        [BlackWasView builtType];
    }
    [super viewWillDisappear:animated];
    
}

- (CGSize)presenterFixSize {
    if ([UIDevice negate]) {
        return CGSizeMake(DueIcyFetch.arabicExponentPoolReplyHalftone, DueIcyFetch.arabicExponentPoolReplyHalftone);
    }
    UIWindow *pintTipWindow = [[TalkArrayManager shared] oceanIntegerWindow];
    UIEdgeInsets safe = pintTipWindow.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 trashSpa]) {
            return CGSizeMake(UIScreen.mainScreen.bounds.size.width, DueIcyFetch.arabicExponentPoolReplyHalftone);
        }
        return CGSizeMake(UIScreen.mainScreen.bounds.size.width, DueIcyFetch.arabicExponentPoolReplyHalftone + safe.bottom);
    }else {
        if (![UIDevice trashSpa]) {
            return CGSizeMake(DueIcyFetch.arabicExponentPoolReplyHalftone,UIScreen.mainScreen.bounds.size.height);
        }
        if (orientation == UIInterfaceOrientationLandscapeRight) {
            return CGSizeMake(DueIcyFetch.arabicExponentPoolReplyHalftone + safe.left,UIScreen.mainScreen.bounds.size.height);
        }else {
            return CGSizeMake(DueIcyFetch.arabicExponentPoolReplyHalftone + 5,UIScreen.mainScreen.bounds.size.height);
        }
    }
}

- (void)friendsFullViewTokenOxygen {
    UIWindow *pintTipWindow = [[TalkArrayManager shared] oceanIntegerWindow];
    UIEdgeInsets safe = pintTipWindow.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 negate]) {
            self.putJobView.layer.cornerRadius = 5.f;
            self.putJobView.layer.maskedCorners = kCALayerMinXMinYCorner | kCALayerMaxXMinYCorner;
        }
        [self.putJobView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.bottom.equalTo(self.view.mas_top);
            make.left.right.equalTo(self.view);
            make.height.mas_equalTo(DueIcyFetch.itsPosterIcy.netIndianFat);
        }];
        [self.outView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.bottom.equalTo(self.putJobView.mas_top);
            make.centerX.equalTo(self.view);
            make.size.mas_equalTo(CGSizeMake(DueIcyFetch.itsPosterIcy.soundBarLose, DueIcyFetch.itsPosterIcy.sockLowBegin));
        }];
        [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.centerX.bottom.mas_equalTo(0);
            make.size.mas_equalTo(self.presenterFixSize);
        }];
        [self.whoEraPause mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.left.right.mas_equalTo(0);
            make.height.mas_equalTo(DueIcyFetch.arabicExponentPoolReplyHalftone);
        }];
        self.view.transform = CGAffineTransformMakeTranslation(0, self.presenterFixSize.height);
    }else {
        
        if ([UIDevice negate]) {
            self.putJobView.layer.cornerRadius = 5.f;
            self.putJobView.layer.maskedCorners = kCALayerMaxXMaxYCorner | kCALayerMaxXMinYCorner;
        }
        [self.putJobView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.view.mas_right);
            make.top.bottom.equalTo(self.view);
            make.width.mas_equalTo(DueIcyFetch.itsPosterIcy.netIndianFat);
        }];
        UIImage *sentenceImage = [UIImage consoleMinKilowattsBaselinesEnablingName:DueIcyFetch.itsPosterIcy.blurRejectSegmentedCounterSpatialMonotonic];
        UIImage *putEditImage = [UIImage imageWithCGImage:sentenceImage.CGImage
                                                    scale:sentenceImage.scale
                                              orientation:UIImageOrientationRight]; 
        self.outView.image = putEditImage;
        [self.outView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.putJobView.mas_right);
            make.centerY.equalTo(self.view);
            make.size.mas_equalTo(CGSizeMake(DueIcyFetch.itsPosterIcy.sockLowBegin, DueIcyFetch.itsPosterIcy.soundBarLose));
        }];
        [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.centerY.left.mas_equalTo(0);
            make.size.mas_equalTo(self.presenterFixSize);
        }];
        [self.whoEraPause mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.bottom.right.mas_equalTo(0);
            make.width.mas_equalTo(DueIcyFetch.arabicExponentPoolReplyHalftone);
        }];
        self.view.transform = CGAffineTransformMakeTranslation(-self.presenterFixSize.width, 0);
    }
    [UIView animateWithDuration:0.3 animations:^{
        self.view.transform = CGAffineTransformIdentity;
    }];
}

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

@end
