






#import "FocalLeapViewController.h"
#import "TurnRedLeftButton.h"
#import "AutoInferPasteViewController.h"
#import "CatToast.h"
#import "LoseLeadFatLabel.h"
#import "GenderTapTextField.h"
#import "NSString+PintDatum.h"

@interface FocalLeapViewController ()

@property (nonatomic, strong) GenderTapTextField *quoteOutBadTextField;
@property (nonatomic, strong) UITextField *flashLoopTextField;
@property (nonatomic, strong) TurnRedLeftButton *poloLayerButton;
@property (nonatomic,strong) LoseLeadFatLabel *justOptEmailLabel;

@end

@implementation FocalLeapViewController

- (TurnRedLeftButton *)poloLayerButton {
    if (!_poloLayerButton) {
        _poloLayerButton = [[TurnRedLeftButton alloc] init];
    }
    return _poloLayerButton;
}

- (LoseLeadFatLabel *)justOptEmailLabel {
    if (!_justOptEmailLabel) {
        _justOptEmailLabel = [LoseLeadFatLabel overDueOurPutLabel:NO];
    }
    return _justOptEmailLabel;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.quoteOutBadTextField = [[GenderTapTextField alloc] initWithController:self];
    [self.view addSubview:self.quoteOutBadTextField];
    [self.quoteOutBadTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(SkinEchoMen.pauseKirghiz.overallShelf);
        make.left.mas_equalTo(SkinEchoMen.pauseKirghiz.mightSeeLook);
        make.right.mas_equalTo(-SkinEchoMen.pauseKirghiz.mightSeeLook);
        make.height.mas_equalTo(SkinEchoMen.pauseKirghiz.zipPageQuiet);
    }];
    
    
    self.flashLoopTextField = [SkinEchoMen nameSiteAngleDiscountsHelpAttachedCode];
    [self.view addSubview:self.flashLoopTextField];
    [self.flashLoopTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.quoteOutBadTextField.mas_bottom).offset(SkinEchoMen.pauseKirghiz.mainEarLater);
        make.left.mas_equalTo(SkinEchoMen.pauseKirghiz.mightSeeLook);
        make.height.mas_equalTo(SkinEchoMen.pauseKirghiz.zipPageQuiet);
    }];
    
    turnOne(self);
    self.poloLayerButton.spaEarKinQuitAction = ^{
        answerSaw(self);
        NSString *hexAuthorCode = self.quoteOutBadTextField.likeJoinTapCut;
        NSString *fullSignBed = self.quoteOutBadTextField.millionSafeLessOpaqueLocale;
        if (self.quoteOutBadTextField.quoteOutBadTextField.text.decibelPitch) {
            [self.poloLayerButton dashMenuNoteEraserUnique];
            [FunAlertView thirdExecFunnelNapFrenchPeriodic:SkinEchoMen.cubePrimeToken.initiated message:SkinEchoMen.cubePrimeToken.translateRotateFaxReturningCaseNext completion:nil];
            return;
        }
        if ([self.constantBirth respondsToSelector:@selector(lostYoungestFlowDeliveredCenterPotentialRatioType:arePlaceTip:poolCode:completion:)]) {
            [ContainWinView ourLawRemovesWindow];
            [self.constantBirth lostYoungestFlowDeliveredCenterPotentialRatioType:SkinEchoMen.pauseKirghiz.waitOptimizedPinchSucceedSum arePlaceTip:fullSignBed poolCode:hexAuthorCode completion:^(id object) {
                [ContainWinView adverbCostClampingFooterLawWindow];
                if ([object boolValue]) {
                    [CatToast beaconFace:SkinEchoMen.cubePrimeToken.newsstandFixRoundPipeCutRemembersCode];
                }else {
                    [self.poloLayerButton dashMenuNoteEraserUnique];
                }
            }];
        }
    };
    [self.view addSubview:self.poloLayerButton];
    [self.poloLayerButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.flashLoopTextField);
        make.height.equalTo(self.flashLoopTextField);
        make.right.equalTo(self.quoteOutBadTextField);
        
        make.width.mas_equalTo(self.poloLayerButton.titleLabel.intrinsicContentSize.width + SkinEchoMen.pauseKirghiz.songReplySpa);
    }];
    
    [self.flashLoopTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self.poloLayerButton.mas_left).offset(-SkinEchoMen.pauseKirghiz.slovakFunDog);
    }];
    
    
    UIButton *yetFarMartialButton = [SkinEchoMen anchorsBaselineManNextMediumColor:SkinEchoMen.cubePrimeToken.stillRemovableFeaturedFixOrangeRank];
    [yetFarMartialButton addTarget:self action:@selector(requestedNeedReplacedElevationEarAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:yetFarMartialButton];
    [yetFarMartialButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.flashLoopTextField.mas_bottom).offset(SkinEchoMen.pauseKirghiz.mainEarLater);
        make.left.mas_equalTo(SkinEchoMen.pauseKirghiz.mightSeeLook);
        make.right.mas_equalTo(-SkinEchoMen.pauseKirghiz.mightSeeLook);
        make.height.mas_equalTo(SkinEchoMen.pauseKirghiz.selfBlendCap);
    }];
    
    [self.view addSubview:self.justOptEmailLabel];
    [self.justOptEmailLabel setRefinedRopeExactExportingDanishSpine:^{
        answerSaw(self);
        [self jobPullSecureOverrideConvergedWrapperAction];
    }];
    [self.justOptEmailLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(-SkinEchoMen.pauseKirghiz.pathMaxBrand);
        make.left.mas_equalTo(SkinEchoMen.pauseKirghiz.downBinVital);
        make.right.mas_equalTo(-SkinEchoMen.pauseKirghiz.downBinVital);
    }];
}

- (void)requestedNeedReplacedElevationEarAction:(UIButton *)sender {
    if (self.quoteOutBadTextField.quoteOutBadTextField.text.decibelPitch) {
        [FunAlertView thirdExecFunnelNapFrenchPeriodic:SkinEchoMen.cubePrimeToken.initiated message:SkinEchoMen.cubePrimeToken.translateRotateFaxReturningCaseNext completion:nil];
        return;
    }
    if (self.flashLoopTextField.text.decibelPitch) {
        [FunAlertView thirdExecFunnelNapFrenchPeriodic:SkinEchoMen.cubePrimeToken.initiated message:SkinEchoMen.cubePrimeToken.friendsEnsureObjectStickyBarrier completion:nil];
        return;
    }
    NSString *hexAuthorCode = self.quoteOutBadTextField.likeJoinTapCut;
    NSString *fullSignBed = self.quoteOutBadTextField.millionSafeLessOpaqueLocale;
    if ([self.constantBirth respondsToSelector:@selector(planeFlushModeSensorProcessPanelTwentyPhone:code:poolCode:completion:)]) {
        [ContainWinView ourLawRemovesWindow];
        [self.constantBirth planeFlushModeSensorProcessPanelTwentyPhone:fullSignBed code:self.flashLoopTextField.text poolCode:hexAuthorCode completion:^(id object) {
            [ContainWinView adverbCostClampingFooterLawWindow];
        }];
    }
}


- (void)jobPullSecureOverrideConvergedWrapperAction {
    AutoInferPasteViewController *mixSexShadow = [AutoInferPasteViewController new];
    mixSexShadow.downhillHer = @(YES);
    mixSexShadow.constantBirth = self.constantBirth;
    [mixSexShadow setPrimeForDensityExhaustedEar:^(BOOL result) {
        self.justOptEmailLabel.ownTrackLawCup = result;
    }];
    [self.navigationController pushViewController:mixSexShadow animated:NO];
}

- (void)dealloc {
    [self.poloLayerButton dashMenuNoteEraserUnique];
}
@end
