






#import "HumanCarExitsViewController.h"
#import "EyeButTrustButton.h"
#import "ZipToast.h"
#import "WasItalicTextField.h"
#import "NSString+MoreAlien.h"
@import WebKit;

@interface HumanCarExitsViewController ()

@property (nonatomic, strong) WasItalicTextField *ellipseDaysTextField;
@property (nonatomic, strong) UITextField *satisfiedTextField;
@property (nonatomic, strong) EyeButTrustButton *submittedButton;

@end

@implementation HumanCarExitsViewController


- (EyeButTrustButton *)submittedButton {
    if (!_submittedButton) {
        _submittedButton = [[EyeButTrustButton alloc] init];
    }
    return _submittedButton;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.impactZoneButton.hidden = [self.primaryMile[0] boolValue];
    
    UILabel *notLabel = [BigAddition usedClientWayProducingFade:BigAddition.lateTapLineAll.indoorFlippedZeroHallAlignmentWire];
    notLabel.numberOfLines = 0;
    [self.view addSubview:notLabel];
    [notLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(BigAddition.noiseFactMen.farsiInfoZip);
        make.left.mas_equalTo(BigAddition.noiseFactMen.farsiInfoZip);
        make.right.mas_equalTo(-BigAddition.noiseFactMen.farsiInfoZip);
    }];
    
    
    self.ellipseDaysTextField = [[WasItalicTextField alloc] initWithController:self];
    [self.view addSubview:self.ellipseDaysTextField];
    [self.ellipseDaysTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(notLabel.mas_bottom).offset(BigAddition.noiseFactMen.pubMetalFade);
        make.left.mas_equalTo(BigAddition.noiseFactMen.anonymousAll);
        make.right.mas_equalTo(-BigAddition.noiseFactMen.anonymousAll);
        make.height.mas_equalTo(BigAddition.noiseFactMen.fourSugarSob);
    }];
    
    
    self.satisfiedTextField = [BigAddition ciphersSortSignerFathomsVisitSpaCode];
    [self.view addSubview:self.satisfiedTextField];
    [self.satisfiedTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.ellipseDaysTextField.mas_bottom).offset(BigAddition.noiseFactMen.lookHelloArt);
        make.left.mas_equalTo(BigAddition.noiseFactMen.anonymousAll);
        make.height.mas_equalTo(BigAddition.noiseFactMen.fourSugarSob);
    }];
    
    mustYet(self);
    self.submittedButton.mousePaceBarsAction = ^{
        birthPipe(self);
        NSString *heapUnionCode = self.ellipseDaysTextField.mayGreenOffZip;
        NSString *kitAlienOwn = self.ellipseDaysTextField.catalanSupportsJobEldestAsk;
        if (self.ellipseDaysTextField.ellipseDaysTextField.text.tradFetchShe) {
            [self.submittedButton regularOriginOffRenewingModal];
            [PopAlertView headlineRedirectPlusDietaryCursorsCorner:BigAddition.lateTapLineAll.needMixer message:BigAddition.lateTapLineAll.twentyFunSymbolicOptimizedVolatileMaker completion:nil];
            return;
        }
        if ([self.pitchRecorder respondsToSelector:@selector(yetPutTapsLatvianAnonymousLossBroadcastType:relatedMole:sinkCode:completion:)]) {
            [AllSunLoopView yetBusNowForkWindow];
            [self.pitchRecorder yetPutTapsLatvianAnonymousLossBroadcastType:BigAddition.noiseFactMen.feetGivenRadix relatedMole:kitAlienOwn sinkCode:heapUnionCode completion:^(id object) {
                [AllSunLoopView largeCanReportsNetworkNeutralWindow];
                if ([object boolValue]) {
                    [ZipToast nearParent:BigAddition.lateTapLineAll.checkingQuantizeProtectedDissolveTwoUnableCode];
                }else {
                    [self.submittedButton regularOriginOffRenewingModal];
                }
            }];
        }
    };
    [self.view addSubview:self.submittedButton];
    [self.submittedButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.satisfiedTextField);
        make.height.equalTo(self.satisfiedTextField);
        make.left.equalTo(self.satisfiedTextField.mas_right).offset(BigAddition.noiseFactMen.lossArranged);
        make.right.equalTo(self.ellipseDaysTextField);
    }];
    
    
    [self.submittedButton setContentHuggingPriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
    
    
    UIButton *minderSonButton = [BigAddition jabberMenLowWhoCleanupColor:BigAddition.lateTapLineAll.bengaliPolarPreventEnteredFinish];
    [minderSonButton addTarget:self action:@selector(sinkObservedEitherCounterChestAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:minderSonButton];
    [minderSonButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.satisfiedTextField.mas_bottom).offset(BigAddition.noiseFactMen.lookHelloArt);
        make.left.mas_equalTo(BigAddition.noiseFactMen.anonymousAll);
        make.right.mas_equalTo(-BigAddition.noiseFactMen.anonymousAll);
        make.height.mas_equalTo(BigAddition.noiseFactMen.visitedSugar);
    }];
}

- (void)sinkObservedEitherCounterChestAction:(id)sender {
    if (self.ellipseDaysTextField.ellipseDaysTextField.text.tradFetchShe) {
        [PopAlertView headlineRedirectPlusDietaryCursorsCorner:BigAddition.lateTapLineAll.needMixer message:BigAddition.lateTapLineAll.twentyFunSymbolicOptimizedVolatileMaker completion:nil];
        return;
    }
    if (self.satisfiedTextField.text.tradFetchShe) {
        [PopAlertView headlineRedirectPlusDietaryCursorsCorner:BigAddition.lateTapLineAll.needMixer message:BigAddition.lateTapLineAll.retryModeratePrintableKeyArabic completion:nil];
        return;
    }
    NSString *heapUnionCode = self.ellipseDaysTextField.mayGreenOffZip;
    NSString *kitAlienOwn = self.ellipseDaysTextField.catalanSupportsJobEldestAsk;
    if ([self.pitchRecorder respondsToSelector:@selector(boldNauticalOrdinaryFunSuggestedExcludedGigahertz:code:sinkCode:completion:)]) {
        [AllSunLoopView yetBusNowForkWindow];
        [self.pitchRecorder boldNauticalOrdinaryFunSuggestedExcludedGigahertz:kitAlienOwn code:self.satisfiedTextField.text sinkCode:heapUnionCode completion:^(id object) {
            [AllSunLoopView largeCanReportsNetworkNeutralWindow];
            if ([object boolValue]) {
                [[ThickFlagManager shared] hitExcludedLossyFarPreferRelativeViewController:self.navigationController];
                [ZipToast nearParent:BigAddition.lateTapLineAll.abortFrontCoachedRequestedNorthRare];
                if ([self.primaryMile[1] isKindOfClass:[WKWebView class]]) {
                    WKWebView *tenPulseBad = (WKWebView *)self.primaryMile[1];
                    [tenPulseBad reload];
                }
            }
        }];
    }
}

- (void)dealloc {
    [self.submittedButton regularOriginOffRenewingModal];
}

@end
