






#import "BurnAbortedViewController.h"
#import "SDWebImageManager.h"
#import "CatToast.h"
#import "NSString+BitUpload.h"

@interface BurnAbortedViewController ()

@property (nonatomic, strong) UIImageView *trapNibblesImageView;
@property (nonatomic, strong) UITextField *netPrefixTextField;
@property (nonatomic, strong) UITextField *nineHowSongTextField;

@end

@implementation BurnAbortedViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.nowEquallyButton.hidden = [self.feedFairArm[0] boolValue];
    
    CGFloat flashReleaseOutputDroppedTrainer = FeedSunTied.rootIntegral.shortOurPint;
    
    UILabel *butLabel = [FeedSunTied originalEndMenuWasRaw:FeedSunTied.switchEnvelope.unifiedGreatBroadcastFrontCellphone];
    butLabel.numberOfLines = 0;
    [self.view addSubview:butLabel];
    [butLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(FeedSunTied.rootIntegral.escapeStatic);
        make.left.mas_equalTo(FeedSunTied.rootIntegral.encryptEmail);
        make.right.mas_equalTo(-FeedSunTied.rootIntegral.encryptEmail);
    }];
    
    
    self.netPrefixTextField = [FeedSunTied brandOurTwoField:FeedSunTied.switchEnvelope.coverBankRaceDiphthongScaleSubtitle isSecure:NO];
    [self.view addSubview:self.netPrefixTextField];
    [self.netPrefixTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(butLabel.mas_bottom).offset(flashReleaseOutputDroppedTrainer);
        make.left.mas_equalTo(FeedSunTied.rootIntegral.causeLongYou);
        make.right.mas_equalTo(-FeedSunTied.rootIntegral.causeLongYou);
        make.height.mas_equalTo(FeedSunTied.rootIntegral.logoPriceAdd);
    }];
    
    
    self.nineHowSongTextField = [FeedSunTied brandOurTwoField:FeedSunTied.switchEnvelope.pathFalloffRecordedDrawingDeleteRace isSecure:NO];;
    [self.view addSubview:self.nineHowSongTextField];
    [self.nineHowSongTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.netPrefixTextField.mas_bottom).offset(flashReleaseOutputDroppedTrainer);
        make.left.right.equalTo(self.netPrefixTextField);
        make.height.mas_equalTo(FeedSunTied.rootIntegral.logoPriceAdd);
    }];
    
    
    UIImageView *illFatImageView = nil;
    if ([self.feedFairArm[1] length] > 0) {
        
        illFatImageView = [[UIImageView alloc] init];
        illFatImageView.backgroundColor = UIColor.lightGrayColor;
        illFatImageView.contentMode = UIViewContentModeScaleAspectFit;
        [self.view addSubview:illFatImageView];
        [illFatImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.nineHowSongTextField.mas_bottom).offset(flashReleaseOutputDroppedTrainer);
            make.width.mas_equalTo(self.nineHowSongTextField);
            make.centerX.mas_equalTo(0);
        }];
        self.trapNibblesImageView = illFatImageView;
        
        [[SDWebImageManager sharedManager] loadImageWithURL:[NSURL URLWithString:self.feedFairArm[1]] options:0 progress:nil completed:^(UIImage * _Nullable image2, NSData * _Nullable data, NSError * _Nullable error, SDImageCacheType cacheType, BOOL finished, NSURL * _Nullable imageURL) {
            dispatch_async(dispatch_get_main_queue(), ^{
                illFatImageView.image = image2;
                CGFloat tamil = image2.size.height / image2.size.width;
                [illFatImageView mas_updateConstraints:^(MASConstraintMaker *make) {
                    make.height.mas_equalTo((FeedSunTied.rootIntegral.addAccessingSilentEachAggregateWidth -FeedSunTied.rootIntegral.causeLongYou*2)*tamil);
                }];
                [self.view layoutIfNeeded];
                
                [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                    make.center.mas_equalTo(0);
                    CGFloat height = self.trapNibblesImageView ? self.trapNibblesImageView.frame.size.height + FeedSunTied.rootIntegral.shortOurPint +FeedSunTied.rootIntegral.circularInverseChangingOuncesPascalLoops : FeedSunTied.rootIntegral.circularInverseChangingOuncesPascalLoops;
                    
                    make.size.mas_equalTo(CGSizeMake(FeedSunTied.rootIntegral.addAccessingSilentEachAggregateWidth, MIN(height, UIScreen.mainScreen.bounds.size.height)));
                    if (height > UIScreen.mainScreen.bounds.size.height) {
                        [self.trapNibblesImageView mas_updateConstraints:^(MASConstraintMaker *make) {
                            make.height.mas_equalTo(self.trapNibblesImageView.frame.size.height-(height-UIScreen.mainScreen.bounds.size.height));
                        }];
                    }
                }];
            });
        }];
    }
    
    
    UIButton *bezelLeadButton = [FeedSunTied edgeSlideMidDeciliterIndentColor:FeedSunTied.switchEnvelope.becomeMusicUndoBodyRoot];
    [bezelLeadButton addTarget:self action:@selector(problemGallonStickyChildrenCoastPermitted:) forControlEvents:(UIControlEventTouchUpInside)];
    [self.view addSubview:bezelLeadButton];
    [bezelLeadButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(-FeedSunTied.rootIntegral.howSixAppend);
        make.left.right.equalTo(self.netPrefixTextField);
        make.height.mas_equalTo(FeedSunTied.rootIntegral.strictlyRank);
    }];
    
}

- (void)problemGallonStickyChildrenCoastPermitted:(id)sender {
if (self.netPrefixTextField.text.diphthongEye || self.nineHowSongTextField.text.diphthongEye) {
        [AllAlertView reportingPhotosMileHandTelephotoCoast:FeedSunTied.switchEnvelope.slavicLog message:FeedSunTied.switchEnvelope.suggestSinLocationsFocusesStrokedLeave completion:nil];
        return;
    }
    if ([self.subIcyWaxFree respondsToSelector:@selector(intentArePeriodDegreePinkPossibleWithName:hueEra:completion:)]) {
        [CutSubjectView suchAlignRoomWindow];
        [self.subIcyWaxFree intentArePeriodDegreePinkPossibleWithName:self.netPrefixTextField.text hueEra:self.nineHowSongTextField.text completion:^(id object) {
            [CutSubjectView blueMenuThirteenVariablesOddWindow];
            if ([object boolValue]) {
                [[TimeClaimManager shared] dryTabPacketWindow];
                [CatToast leapNowSix:FeedSunTied.switchEnvelope.genderSawGrandauntAssistiveEligibleDelayed];
            }
        }];
    }
}

@end
