






#import "ExtendSpaViewController.h"
#import "SideForMailButton.h"
#import "EraSawExitsBoxViewController.h"
#import "BigToast.h"
#import "ExpireSegueLabel.h"
#import "RevertCupTextField.h"
#import "NSString+TalkBound.h"

@interface ExtendSpaViewController ()

@property (nonatomic, strong) RevertCupTextField *exceededWhoTextField;
@property (nonatomic, strong) UITextField *eyeAuthorTextField;
@property (nonatomic, strong) SideForMailButton *automaticButton;
@property (nonatomic,strong) ExpireSegueLabel *portPinModalLabel;

@end

@implementation ExtendSpaViewController

- (SideForMailButton *)automaticButton {
    if (!_automaticButton) {
        _automaticButton = [[SideForMailButton alloc] init];
    }
    return _automaticButton;
}

- (ExpireSegueLabel *)portPinModalLabel {
    if (!_portPinModalLabel) {
        _portPinModalLabel = [ExpireSegueLabel wayThreadsHisLabel:NO];
    }
    return _portPinModalLabel;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.exceededWhoTextField = [[RevertCupTextField alloc] initWithController:self];
    [self.view addSubview:self.exceededWhoTextField];
    [self.exceededWhoTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(WinNeedHang.chargePenSin.accountsBack);
        make.left.mas_equalTo(WinNeedHang.chargePenSin.pullShutdown);
        make.right.mas_equalTo(-WinNeedHang.chargePenSin.pullShutdown);
        make.height.mas_equalTo(WinNeedHang.chargePenSin.splatSkipped);
    }];
    
    
    self.eyeAuthorTextField = [WinNeedHang rawCommentExecuteYouLexiconSilentCode];
    [self.view addSubview:self.eyeAuthorTextField];
    [self.eyeAuthorTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.exceededWhoTextField.mas_bottom).offset(WinNeedHang.chargePenSin.sixteenReady);
        make.left.mas_equalTo(WinNeedHang.chargePenSin.pullShutdown);
        make.height.mas_equalTo(WinNeedHang.chargePenSin.splatSkipped);
    }];
    
    expires(self);
    self.automaticButton.waxSawCookiesAction = ^{
        milePrior(self);
        NSString *passivelyCode = self.exceededWhoTextField.spaBoxGenreHex;
        NSString *askInfoSign = self.exceededWhoTextField.hungarianDaysButShowingMedium;
        if (self.exceededWhoTextField.exceededWhoTextField.text.consumesCase) {
            [self.automaticButton utilitiesButCadenceWonRelevance];
            [KeyAlertView hallPreparedWaxSucceedCocoaDomains:WinNeedHang.mapSonInputIll.danishYet message:WinNeedHang.mapSonInputIll.gatheringCapsNumeralBuddyFeetArgument completion:nil];
            return;
        }
        if ([self.unitRatioPlug respondsToSelector:@selector(sevenProteinDesktopDetectorPieceDidSettlingType:bigMostUsed:mildCode:completion:)]) {
            [BeaconsEggView fixNonceTowerWindow];
            [self.unitRatioPlug sevenProteinDesktopDetectorPieceDidSettlingType:WinNeedHang.chargePenSin.errorSixMustDeclinedLinkage bigMostUsed:askInfoSign mildCode:passivelyCode completion:^(id object) {
                [BeaconsEggView menPostRelationsClipDisallowWindow];
                if ([object boolValue]) {
                    [BigToast farRespond:WinNeedHang.mapSonInputIll.ellipsisAmericanNearHitExponentsDescribeCode];
                }else {
                    [self.automaticButton utilitiesButCadenceWonRelevance];
                }
            }];
        }
    };
    [self.view addSubview:self.automaticButton];
    [self.automaticButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.eyeAuthorTextField);
        make.height.equalTo(self.eyeAuthorTextField);
        make.left.equalTo(self.eyeAuthorTextField.mas_right).offset(WinNeedHang.chargePenSin.littleTabAre);
        make.right.equalTo(self.exceededWhoTextField);
    }];
    
    
    [self.automaticButton setContentHuggingPriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
    
    
    UIButton *spaQuickShiftButton = [WinNeedHang slidingUrgencyLocalizesLandmarkInventoryColor:WinNeedHang.mapSonInputIll.unsafeTripleBikeSenderMarginCocoa];
    [spaQuickShiftButton addTarget:self action:@selector(ageEraModuleMinderSeeAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:spaQuickShiftButton];
    [spaQuickShiftButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.eyeAuthorTextField.mas_bottom).offset(WinNeedHang.chargePenSin.sixteenReady);
        make.left.mas_equalTo(WinNeedHang.chargePenSin.pullShutdown);
        make.right.mas_equalTo(-WinNeedHang.chargePenSin.pullShutdown);
        make.height.mas_equalTo(WinNeedHang.chargePenSin.arrangerHead);
    }];
    
    [self.view addSubview:self.portPinModalLabel];
    [self.portPinModalLabel setCheckingLegalPrefixSpeechPeakReplies:^{
        milePrior(self);
        [self torchFocusAudiencesTightSaveStartingAction];
    }];
    [self.portPinModalLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(-WinNeedHang.chargePenSin.fairExponent);
        make.left.mas_equalTo(WinNeedHang.chargePenSin.chromeWeekly);
        make.right.mas_equalTo(-WinNeedHang.chargePenSin.chromeWeekly);
    }];
}

- (void)ageEraModuleMinderSeeAction:(UIButton *)sender {
    if (self.exceededWhoTextField.exceededWhoTextField.text.consumesCase) {
        [KeyAlertView hallPreparedWaxSucceedCocoaDomains:WinNeedHang.mapSonInputIll.danishYet message:WinNeedHang.mapSonInputIll.gatheringCapsNumeralBuddyFeetArgument completion:nil];
        return;
    }
    if (self.eyeAuthorTextField.text.consumesCase) {
        [KeyAlertView hallPreparedWaxSucceedCocoaDomains:WinNeedHang.mapSonInputIll.danishYet message:WinNeedHang.mapSonInputIll.prefixesStiffnessSpecifierPathTelephoto completion:nil];
        return;
    }
    NSString *passivelyCode = self.exceededWhoTextField.spaBoxGenreHex;
    NSString *askInfoSign = self.exceededWhoTextField.hungarianDaysButShowingMedium;
    if ([self.unitRatioPlug respondsToSelector:@selector(stableCheckRankHomeTrashNarrativeRetAdopt:code:mildCode:completion:)]) {
        [BeaconsEggView fixNonceTowerWindow];
        [self.unitRatioPlug stableCheckRankHomeTrashNarrativeRetAdopt:askInfoSign code:self.eyeAuthorTextField.text mildCode:passivelyCode completion:^(id object) {
            [BeaconsEggView menPostRelationsClipDisallowWindow];
        }];
    }
}


- (void)torchFocusAudiencesTightSaveStartingAction {
    EraSawExitsBoxViewController *twoBuildTime = [EraSawExitsBoxViewController new];
    twoBuildTime.workflowWay = @(YES);
    twoBuildTime.unitRatioPlug = self.unitRatioPlug;
    [twoBuildTime setTrustedIconAssignAlpineGlobally:^(BOOL result) {
        self.portPinModalLabel.nameHowKitDeny = result;
    }];
    [self.navigationController pushViewController:twoBuildTime animated:NO];
}

- (void)dealloc {
    [self.automaticButton utilitiesButCadenceWonRelevance];
}
@end
