






#import "HisSinBurnViewController.h"
#import "DigitSongManager.h"
#import "LiterAreView.h"
#import "UIColor+GetColor.h"
#import "UIDevice+TabDevice.h"
#import "UIImage+SumImage.h"
#import "FitAzimuthConfig.h"

@interface HisSinBurnViewController ()

@property (nonatomic, strong) UIView * sheFatView;
@property (nonatomic, strong) UIImageView * notView;

@end

@implementation HisSinBurnViewController

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

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = ZipRestThat.sixInsteadExecutorUnwindingRegionsBoyfriend ? [UIColor nearbyZipBayerMonthLowDrum:ZipRestThat.sixInsteadExecutorUnwindingRegionsBoyfriend]:UIColor.whiteColor;

    self.busyEpsilon = self.groupedSink;
    [LiterAreView labelLike];
    
    self.sheFatView = [UIView new];
    self.sheFatView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:self.sheFatView];
    
    self.notView = [[UIImageView alloc] initWithImage:[UIImage prefixMinEuropeanPrefixesFamilyName:ZipRestThat.heartHowLead.panCanSonWideReachedWatery]];;
    [self.view addSubview:self.notView];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(theScoreAtom) name:ZipRestThat.heartHowLead.criteriaEachDoubleIncludingYetAudience object:nil];
}

- (void)theScoreAtom {
    [self.supplyModel reload];
}

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

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


//}

-(void)viewWillDisappear:(BOOL)animated {
    if ([ZipRestThat selectedIndicatedDetectsLookupCookiesName] && FitAzimuthConfig.shared.motionPauseVoiceScanAnchored.skipDisplay.rateButTurn) {
        [LiterAreView retExpose];
    }
    [super viewWillDisappear:animated];
    
}

- (CGSize)plainFourOptSize {
    if ([UIDevice askWax]) {
        return CGSizeMake(ZipRestThat.affectingMildVendorGlobalKilohertz, ZipRestThat.affectingMildVendorGlobalKilohertz);
    }
    UIWindow *farFeatWindow = [[DigitSongManager shared] irregularHerWindow];
    UIEdgeInsets safe = farFeatWindow.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 analysis]) {
            return CGSizeMake(UIScreen.mainScreen.bounds.size.width, ZipRestThat.affectingMildVendorGlobalKilohertz);
        }
        return CGSizeMake(UIScreen.mainScreen.bounds.size.width, ZipRestThat.affectingMildVendorGlobalKilohertz + safe.bottom);
    }else {
        if (![UIDevice analysis]) {
            return CGSizeMake(ZipRestThat.affectingMildVendorGlobalKilohertz,UIScreen.mainScreen.bounds.size.height);
        }
        if (orientation == UIInterfaceOrientationLandscapeRight) {
            return CGSizeMake(ZipRestThat.affectingMildVendorGlobalKilohertz + safe.left,UIScreen.mainScreen.bounds.size.height);
        }else {
            return CGSizeMake(ZipRestThat.affectingMildVendorGlobalKilohertz + 5,UIScreen.mainScreen.bounds.size.height);
        }
    }
}

- (void)airSpaGrowNarrativeUptime {
    UIWindow *farFeatWindow = [[DigitSongManager shared] irregularHerWindow];
    UIEdgeInsets safe = farFeatWindow.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 askWax]) {
            self.sheFatView.layer.cornerRadius = 5.f;
            self.sheFatView.layer.maskedCorners = kCALayerMinXMinYCorner | kCALayerMaxXMinYCorner;
        }
        [self.sheFatView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.bottom.equalTo(self.view.mas_top);
            make.left.right.equalTo(self.view);
            make.height.mas_equalTo(ZipRestThat.heartHowLead.brandMasters);
        }];
        [self.notView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.bottom.equalTo(self.sheFatView.mas_top);
            make.centerX.equalTo(self.view);
            make.size.mas_equalTo(CGSizeMake(ZipRestThat.heartHowLead.zipIntroCurl, ZipRestThat.heartHowLead.perfusionAsk));
        }];
        [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.centerX.bottom.mas_equalTo(0);
            make.size.mas_equalTo(self.plainFourOptSize);
        }];
        [self.supplyModel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.left.right.mas_equalTo(0);
            make.height.mas_equalTo(ZipRestThat.affectingMildVendorGlobalKilohertz);
        }];
        self.view.transform = CGAffineTransformMakeTranslation(0, self.plainFourOptSize.height);
    }else {
        
        if ([UIDevice askWax]) {
            self.sheFatView.layer.cornerRadius = 5.f;
            self.sheFatView.layer.maskedCorners = kCALayerMaxXMaxYCorner | kCALayerMaxXMinYCorner;
        }
        [self.sheFatView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.view.mas_right);
            make.top.bottom.equalTo(self.view);
            make.width.mas_equalTo(ZipRestThat.heartHowLead.brandMasters);
        }];
        UIImage *bagInterImage = [UIImage prefixMinEuropeanPrefixesFamilyName:ZipRestThat.heartHowLead.panCanSonWideReachedWatery];
        UIImage *oneThatImage = [UIImage imageWithCGImage:bagInterImage.CGImage
                                                    scale:bagInterImage.scale
                                              orientation:UIImageOrientationRight]; 
        self.notView.image = oneThatImage;
        [self.notView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.sheFatView.mas_right);
            make.centerY.equalTo(self.view);
            make.size.mas_equalTo(CGSizeMake(ZipRestThat.heartHowLead.perfusionAsk, ZipRestThat.heartHowLead.zipIntroCurl));
        }];
        [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.centerY.left.mas_equalTo(0);
            make.size.mas_equalTo(self.plainFourOptSize);
        }];
        [self.supplyModel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.bottom.right.mas_equalTo(0);
            make.width.mas_equalTo(ZipRestThat.affectingMildVendorGlobalKilohertz);
        }];
        self.view.transform = CGAffineTransformMakeTranslation(-self.plainFourOptSize.width, 0);
    }
    [UIView animateWithDuration:0.3 animations:^{
        self.view.transform = CGAffineTransformIdentity;
    }];
}

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

@end
