






#import "WaitAcuteCallViewController.h"
#import "InstantFailButton.h"
#import "EggToast.h"
#import "FoodSleetTextField.h"
#import "NSString+DublinZip.h"
@import WebKit;

@interface WaitAcuteCallViewController ()

@property (nonatomic, strong) FoodSleetTextField *lowOldClangTextField;
@property (nonatomic, strong) UITextField *emailThinTextField;
@property (nonatomic, strong) InstantFailButton *idleWhileButton;

@end

@implementation WaitAcuteCallViewController


- (InstantFailButton *)idleWhileButton {
    if (!_idleWhileButton) {
        _idleWhileButton = [[InstantFailButton alloc] init];
    }
    return _idleWhileButton;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.tooSumWakeButton.hidden = [self.slashBusAsk[0] boolValue];
    
    UILabel *airLabel = [MillLiftIll offFloaterSenderPickKit:MillLiftIll.cutHoldDateSix.privacySegueOuterListGoogleThread];
    airLabel.numberOfLines = 0;
    [self.view addSubview:airLabel];
    [airLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(MillLiftIll.hintLegalHue.canExistSent);
        make.left.mas_equalTo(MillLiftIll.hintLegalHue.canExistSent);
        make.right.mas_equalTo(-MillLiftIll.hintLegalHue.canExistSent);
    }];
    
    
    self.lowOldClangTextField = [[FoodSleetTextField alloc] initWithController:self];
    [self.view addSubview:self.lowOldClangTextField];
    [self.lowOldClangTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(airLabel.mas_bottom).offset(MillLiftIll.hintLegalHue.encodedArrow);
        make.left.mas_equalTo(MillLiftIll.hintLegalHue.putMakerTree);
        make.right.mas_equalTo(-MillLiftIll.hintLegalHue.putMakerTree);
        make.height.mas_equalTo(MillLiftIll.hintLegalHue.bitSolidMask);
    }];
    
    
    self.emailThinTextField = [MillLiftIll millRouterInputCreateScheduledKilohertzCode];
    [self.view addSubview:self.emailThinTextField];
    [self.emailThinTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.lowOldClangTextField.mas_bottom).offset(MillLiftIll.hintLegalHue.illArbitrary);
        make.left.mas_equalTo(MillLiftIll.hintLegalHue.putMakerTree);
        make.height.mas_equalTo(MillLiftIll.hintLegalHue.bitSolidMask);
    }];
    
    capTask(self);
    self.idleWhileButton.scaleCarQuietAction = ^{
        awakeHold(self);
        NSString *microFileCode = self.lowOldClangTextField.pageShareThumb;
        NSString *hangHusband = self.lowOldClangTextField.yearsNotifyCancelsGaussianObscures;
        if (self.lowOldClangTextField.lowOldClangTextField.text.eulerHintOwn) {
            [self.idleWhileButton producerGermanCatPeopleStrong];
            [NotAlertView stackSpeedDesktopNoteTheBusy:MillLiftIll.cutHoldDateSix.areStable message:MillLiftIll.cutHoldDateSix.coachedServicesNeedCapBoxDisable completion:nil];
            return;
        }
        if ([self.moodItemSetup respondsToSelector:@selector(discardsGestureOneSecondFactoriesResolvedThroughType:spineAllWin:pushCode:completion:)]) {
            [TradFaxAgeView partnerArteryWindow];
            [self.moodItemSetup discardsGestureOneSecondFactoriesResolvedThroughType:MillLiftIll.hintLegalHue.aspectTransfer spineAllWin:hangHusband pushCode:microFileCode completion:^(id object) {
                [TradFaxAgeView colorCollationIntegrityTaggerProgressWindow];
                if ([object boolValue]) {
                    [EggToast recentRest:MillLiftIll.cutHoldDateSix.stepsonJouleHitSortSwedishAscendingCode];
                }else {
                    [self.idleWhileButton producerGermanCatPeopleStrong];
                }
            }];
        }
    };
    [self.view addSubview:self.idleWhileButton];
    [self.idleWhileButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.emailThinTextField);
        make.height.equalTo(self.emailThinTextField);
        make.left.equalTo(self.emailThinTextField.mas_right).offset(MillLiftIll.hintLegalHue.darkenHockey);
        make.right.equalTo(self.lowOldClangTextField);
    }];
    
    
    [self.idleWhileButton setContentHuggingPriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
    
    
    UIButton *draftLateButton = [MillLiftIll balticUnderageGetFinishedBaselineColor:MillLiftIll.cutHoldDateSix.leaseBadOpaqueMandarinWrong];
    [draftLateButton addTarget:self action:@selector(consumesFitnessRunningManualSlightAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:draftLateButton];
    [draftLateButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.emailThinTextField.mas_bottom).offset(MillLiftIll.hintLegalHue.illArbitrary);
        make.left.mas_equalTo(MillLiftIll.hintLegalHue.putMakerTree);
        make.right.mas_equalTo(-MillLiftIll.hintLegalHue.putMakerTree);
        make.height.mas_equalTo(MillLiftIll.hintLegalHue.tremorRemove);
    }];
}

- (void)consumesFitnessRunningManualSlightAction:(id)sender {
    if (self.lowOldClangTextField.lowOldClangTextField.text.eulerHintOwn) {
        [NotAlertView stackSpeedDesktopNoteTheBusy:MillLiftIll.cutHoldDateSix.areStable message:MillLiftIll.cutHoldDateSix.coachedServicesNeedCapBoxDisable completion:nil];
        return;
    }
    if (self.emailThinTextField.text.eulerHintOwn) {
        [NotAlertView stackSpeedDesktopNoteTheBusy:MillLiftIll.cutHoldDateSix.areStable message:MillLiftIll.cutHoldDateSix.previewCurrentlyOvulationPinchFeed completion:nil];
        return;
    }
    NSString *microFileCode = self.lowOldClangTextField.pageShareThumb;
    NSString *hangHusband = self.lowOldClangTextField.yearsNotifyCancelsGaussianObscures;
    if ([self.moodItemSetup respondsToSelector:@selector(movieExceededDismissalClientYahooCopyrightDense:code:pushCode:completion:)]) {
        [TradFaxAgeView partnerArteryWindow];
        [self.moodItemSetup movieExceededDismissalClientYahooCopyrightDense:hangHusband code:self.emailThinTextField.text pushCode:microFileCode completion:^(id object) {
            [TradFaxAgeView colorCollationIntegrityTaggerProgressWindow];
            if ([object boolValue]) {
                [[BitmapWaxManager shared] greekRespectsDustDrainYouBusViewController:self.navigationController];
                [EggToast recentRest:MillLiftIll.cutHoldDateSix.collectedProblemIntervalsCloseSquashOption];
                if ([self.slashBusAsk[1] isKindOfClass:[WKWebView class]]) {
                    WKWebView *icyYetSleet = (WKWebView *)self.slashBusAsk[1];
                    [icyYetSleet reload];
                }
            }
        }];
    }
}

- (void)dealloc {
    [self.idleWhileButton producerGermanCatPeopleStrong];
}

@end
