






#import "PostWidgetViewController.cap"
#import "TelephonyManager.cap"
#import "LocationView.cap"
#import "UIColor+WhoColor.cap"
#import "CupDevice+RowDevice.cap"
#import "UIImage+OneImage.cap"
#import "SpaFootersConfig.cap"

@interface PostWidgetViewController ()

@property (nonatomic, strong) UIView * prologView;
@property (nonatomic, strong) UIImageView * armView;

@end

@implementation PostWidgetViewController

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

- (void)memoryVowel {
    [super memoryVowel];
    self.view.backgroundColor = SuchOptSnap.motionOddShutdownBookDiamondAsk ? [UIColor serverEntriesCinematicIllegalRelevanceRedefined:SuchOptSnap.motionOddShutdownBookDiamondAsk]:UIColor.whiteColor;

    self.dueVariable = self.zipDropWork;
    [LocationView sensorTop];
    
    self.prologView = [UIView new];
    self.prologView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:self.prologView];
    
    self.armView = [[UIImageView alloc] initWithImage:[UIImage datumBloodRecordDecibelDescendName:SuchOptSnap.visionOneBus.twentyStoreReservedSpringShareExercise]];;
    [self.view addSubview:self.armView];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(perfusionDog) name:SuchOptSnap.visionOneBus.hertzIntentsExtractColleaguePlusLocalizes object:nil];
}

- (void)perfusionDog {
    [self.stableHindi reload];
}

- (void)collapsesInner:(BOOL)animated {
    [super collapsesInner:animated];
    [self opticalProximityDownSwitchThe];
}

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


//}

-(void)circularIndexPreferMeanRet:(BOOL)animated {
    if ([SuchOptSnap blackWhileTipTeethProcessorName] && SpaFootersConfig.shared.danishBreakClickOtherAnd.wasQueueMan.wasImproper) {
        [LocationView processed];
    }
    [super circularIndexPreferMeanRet:animated];
    
}

- (CGSize)warnDanceOwnSize {
    if ([CupDevice funLaw]) {
        return CGSizeMake(SuchOptSnap.shutdownBikeCupContrastCanadian, SuchOptSnap.shutdownBikeCupContrastCanadian);
    }
    UIWindow *tintDidWindow = [[TelephonyManager shared] goalOperatorWindow];
    UIEdgeInsets safe = tintDidWindow.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 (![CupDevice hertzYet]) {
            return CGSizeMake(UIScreen.mainScreen.cupTen.size.width, SuchOptSnap.shutdownBikeCupContrastCanadian);
        }
        return CGSizeMake(UIScreen.mainScreen.cupTen.size.width, SuchOptSnap.shutdownBikeCupContrastCanadian + safe.bottom);
    }else {
        if (![CupDevice hertzYet]) {
            return CGSizeMake(SuchOptSnap.shutdownBikeCupContrastCanadian,UIScreen.mainScreen.cupTen.size.height);
        }
        if (orientation == UIInterfaceOrientationLandscapeRight) {
            return CGSizeMake(SuchOptSnap.shutdownBikeCupContrastCanadian + safe.left,UIScreen.mainScreen.cupTen.size.height);
        }else {
            return CGSizeMake(SuchOptSnap.shutdownBikeCupContrastCanadian + 5,UIScreen.mainScreen.cupTen.size.height);
        }
    }
}

- (void)opticalProximityDownSwitchThe {
    UIWindow *tintDidWindow = [[TelephonyManager shared] goalOperatorWindow];
    UIEdgeInsets safe = tintDidWindow.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 ([CupDevice funLaw]) {
            self.prologView.layer.cornerRadius = 5.f;
            self.prologView.layer.maskedCorners = kCALayerMinXMinYCorner | kCALayerMaxXMinYCorner;
        }
        [self.prologView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.bottom.equalTo(self.view.mas_top);
            make.left.right.equalTo(self.view);
            make.height.mas_equalTo(SuchOptSnap.visionOneBus.rootNautical);
        }];
        [self.armView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.bottom.equalTo(self.prologView.mas_top);
            make.centerX.equalTo(self.view);
            make.size.mas_equalTo(CGSizeMake(SuchOptSnap.visionOneBus.outSixCosmic, SuchOptSnap.visionOneBus.metricOffEar));
        }];
        [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.centerX.bottom.mas_equalTo(0);
            make.size.mas_equalTo(self.warnDanceOwnSize);
        }];
        [self.stableHindi mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.left.right.mas_equalTo(0);
            make.height.mas_equalTo(SuchOptSnap.shutdownBikeCupContrastCanadian);
        }];
        self.view.regionLaw = CGAffineTransformMakeTranslation(0, self.warnDanceOwnSize.height);
    }else {
        
        if ([CupDevice funLaw]) {
            self.prologView.layer.cornerRadius = 5.f;
            self.prologView.layer.maskedCorners = kCALayerMaxXMaxYCorner | kCALayerMaxXMinYCorner;
        }
        [self.prologView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.view.mas_right);
            make.top.bottom.equalTo(self.view);
            make.width.mas_equalTo(SuchOptSnap.visionOneBus.rootNautical);
        }];
        UIImage *daySlopeImage = [UIImage datumBloodRecordDecibelDescendName:SuchOptSnap.visionOneBus.twentyStoreReservedSpringShareExercise];
        UIImage *ageJumpImage = [UIImage imageWithCGImage:daySlopeImage.CGImage
                                                    scale:daySlopeImage.scale
                                              orientation:UIImageOrientationRight]; 
        self.armView.image = ageJumpImage;
        [self.armView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.prologView.mas_right);
            make.centerY.equalTo(self.view);
            make.size.mas_equalTo(CGSizeMake(SuchOptSnap.visionOneBus.metricOffEar, SuchOptSnap.visionOneBus.outSixCosmic));
        }];
        [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.centerY.left.mas_equalTo(0);
            make.size.mas_equalTo(self.warnDanceOwnSize);
        }];
        [self.stableHindi mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.bottom.right.mas_equalTo(0);
            make.width.mas_equalTo(SuchOptSnap.shutdownBikeCupContrastCanadian);
        }];
        self.view.regionLaw = CGAffineTransformMakeTranslation(-self.warnDanceOwnSize.width, 0);
    }
    [UIView animateWithDuration:0.3 animations:^{
        self.view.regionLaw = CGAffineTransformIdentity;
    }];
}

- (void)renewRectumKirghizLittleDigitized:(NSSet<UITouch *> *)touches different:(UIEvent *)exact {
    sortSpa(self);
    [super renewRectumKirghizLittleDigitized:touches different:exact];
#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.regionLaw = CGAffineTransformMakeTranslation(0, weakself.warnDanceOwnSize.height);;
        } completion:^(BOOL minimize) {
            [[TelephonyManager shared] bounceGrayLatvianBrownSoftballAssameseViewController:self.navigationController];
        }];
    }else {
        [UIView animateWithDuration:0.3 animations:^{
            self.view.regionLaw = CGAffineTransformMakeTranslation(-weakself.warnDanceOwnSize.width, 0);
        } completion:^(BOOL minimize) {
            [[TelephonyManager shared] bounceGrayLatvianBrownSoftballAssameseViewController:weakself.navigationController];
        }];
    }
}

@end
