






#import "NewtonsSubmitViewController.h"
#import "AdoptRedRedButton.h"
#import "JobToast.h"
#import "SonFriendTextField.h"
#import "NSString+Magnesium.h"
@import WebKit;

@interface NewtonsSubmitViewController ()

@property (nonatomic, strong) SonFriendTextField *tabDryDeltaTextField;
@property (nonatomic, strong) UITextField *toggleAskTextField;
@property (nonatomic, strong) AdoptRedRedButton *fileParseButton;

@end

@implementation NewtonsSubmitViewController


- (AdoptRedRedButton *)fileParseButton {
    if (!_fileParseButton) {
        _fileParseButton = [[AdoptRedRedButton alloc] init];
    }
    return _fileParseButton;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.golfRawSumButton.hidden = [self.schoolUnify[0] boolValue];
    
    UILabel *theLabel = [RowGivenOut sockComputerMonotonicSerbianLaw:RowGivenOut.nineHisSoloTen.leapLocalesZeroCollisionResponsesWax];
    theLabel.numberOfLines = 0;
    [self.view addSubview:theLabel];
    [theLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(RowGivenOut.mathProxyKin.anyHalfMagic);
        make.left.mas_equalTo(RowGivenOut.mathProxyKin.anyHalfMagic);
        make.right.mas_equalTo(-RowGivenOut.mathProxyKin.anyHalfMagic);
    }];
    
    
    self.tabDryDeltaTextField = [[SonFriendTextField alloc] initWithController:self];
    [self.view addSubview:self.tabDryDeltaTextField];
    [self.tabDryDeltaTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(theLabel.mas_bottom).offset(RowGivenOut.mathProxyKin.eyeOneSingle);
        make.left.mas_equalTo(RowGivenOut.mathProxyKin.clipPivotAll);
        make.right.mas_equalTo(-RowGivenOut.mathProxyKin.clipPivotAll);
        make.height.mas_equalTo(RowGivenOut.mathProxyKin.spaGaspScore);
    }];
    
    
    self.toggleAskTextField = [RowGivenOut siblingsPublisherMetricToneGenderCreatorCode];
    [self.view addSubview:self.toggleAskTextField];
    [self.toggleAskTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.tabDryDeltaTextField.mas_bottom).offset(RowGivenOut.mathProxyKin.beganSoloist);
        make.left.mas_equalTo(RowGivenOut.mathProxyKin.clipPivotAll);
        make.height.mas_equalTo(RowGivenOut.mathProxyKin.spaGaspScore);
    }];
    
    moveDay(self);
    self.fileParseButton.bitTextJobHexAction = ^{
        tapsAlong(self);
        NSString *funNotifyCode = self.tabDryDeltaTextField.moveAllHitMild;
        NSString *touchesMake = self.tabDryDeltaTextField.cyclingBridgeFixingActivatedSuffix;
        if (self.tabDryDeltaTextField.tabDryDeltaTextField.text.hindiDecimal) {
            [self.fileParseButton skippedLaterExposuresLifetimeNever];
            [AreAlertView internalTemporalAlignZipLayeringNatural:RowGivenOut.nineHisSoloTen.mediumOld message:RowGivenOut.nineHisSoloTen.headerNetPlayScrollThickRectified completion:nil];
            return;
        }
        if ([self.splatBrowsing respondsToSelector:@selector(onlineEveryEstimatedLinearlyProvidersChoosePerformsType:soundSearch:pickCode:completion:)]) {
            [OutWetFactView faxCarAgeMillWindow];
            [self.splatBrowsing onlineEveryEstimatedLinearlyProvidersChoosePerformsType:RowGivenOut.mathProxyKin.issuerSubtitle soundSearch:touchesMake pickCode:funNotifyCode completion:^(id object) {
                [OutWetFactView digestCanWrappedAcutePanoramaWindow];
                if ([object boolValue]) {
                    [JobToast wayMaxEdga:RowGivenOut.nineHisSoloTen.gradeIncreasePolarPositionPerfusionTremorCode];
                }else {
                    [self.fileParseButton skippedLaterExposuresLifetimeNever];
                }
            }];
        }
    };
    [self.view addSubview:self.fileParseButton];
    [self.fileParseButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.toggleAskTextField);
        make.height.equalTo(self.toggleAskTextField);
        make.right.equalTo(self.tabDryDeltaTextField);
        
        make.width.mas_equalTo(self.fileParseButton.titleLabel.intrinsicContentSize.width + RowGivenOut.mathProxyKin.anyHalfMagic);
    }];
    
    [self.toggleAskTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self.fileParseButton.mas_left).offset(-RowGivenOut.mathProxyKin.climbingMode);
    }];
    
    
    UIButton *pairWidthButton = [RowGivenOut moreCutoffGuestSecondRedefinedColor:RowGivenOut.nineHisSoloTen.mixReceivingHalfDueCut];
    [pairWidthButton addTarget:self action:@selector(appearingOutArmourBodyFreezingAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:pairWidthButton];
    [pairWidthButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.toggleAskTextField.mas_bottom).offset(RowGivenOut.mathProxyKin.beganSoloist);
        make.left.mas_equalTo(RowGivenOut.mathProxyKin.clipPivotAll);
        make.right.mas_equalTo(-RowGivenOut.mathProxyKin.clipPivotAll);
        make.height.mas_equalTo(RowGivenOut.mathProxyKin.rotateEarUse);
    }];
}

- (void)appearingOutArmourBodyFreezingAction:(id)sender {
    if (self.tabDryDeltaTextField.tabDryDeltaTextField.text.hindiDecimal) {
        [AreAlertView internalTemporalAlignZipLayeringNatural:RowGivenOut.nineHisSoloTen.mediumOld message:RowGivenOut.nineHisSoloTen.headerNetPlayScrollThickRectified completion:nil];
        return;
    }
    if (self.toggleAskTextField.text.hindiDecimal) {
        [AreAlertView internalTemporalAlignZipLayeringNatural:RowGivenOut.nineHisSoloTen.mediumOld message:RowGivenOut.nineHisSoloTen.binaryIrishInfiniteContainedRedone completion:nil];
        return;
    }
    NSString *funNotifyCode = self.tabDryDeltaTextField.moveAllHitMild;
    NSString *touchesMake = self.tabDryDeltaTextField.cyclingBridgeFixingActivatedSuffix;
    if ([self.splatBrowsing respondsToSelector:@selector(sizeYetTapsChatSeeMinderSpell:code:pickCode:completion:)]) {
        [OutWetFactView faxCarAgeMillWindow];
        [self.splatBrowsing sizeYetTapsChatSeeMinderSpell:touchesMake code:self.toggleAskTextField.text pickCode:funNotifyCode completion:^(id object) {
            [OutWetFactView digestCanWrappedAcutePanoramaWindow];
            if ([object boolValue]) {
                [[CapUniqueManager shared] returnUnsignedPeriodicCaffeineAdjustingWaxViewController:self.navigationController];
                [JobToast wayMaxEdga:RowGivenOut.nineHisSoloTen.subtitleFreestyleDecimalBoldfaceThreadTab];
                if ([self.schoolUnify[1] isKindOfClass:[WKWebView class]]) {
                    WKWebView *blockAdverb = (WKWebView *)self.schoolUnify[1];
                    [blockAdverb reload];
                }
            }
        }];
    }
}

- (void)dealloc {
    [self.fileParseButton skippedLaterExposuresLifetimeNever];
}

@end
