






#import "IdiomLossViewController.h"
#import "BirthMidAddLabel.h"
#import "WaitAgeMenuTooViewController.h"

@interface IdiomLossViewController ()

@property (nonatomic, strong) UITextField *deltaTenBendTextField;
@property (nonatomic, strong) UITextField *utilitiesPaceTextField;
@property (nonatomic,strong) BirthMidAddLabel *hasYearForceLabel;
@end



@implementation IdiomLossViewController

- (BirthMidAddLabel *)hasYearForceLabel {
    if (!_hasYearForceLabel) {
        _hasYearForceLabel = [BirthMidAddLabel fitTextFarManLabel:NO];
    }
    return _hasYearForceLabel;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.deltaTenBendTextField = [HexDiscrete overhangChinaExternWrappersCathedralAccount];
    [self.view addSubview:self.deltaTenBendTextField];
    [self.deltaTenBendTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(HexDiscrete.shelfTenSide.userClamping);
        make.left.mas_equalTo(HexDiscrete.shelfTenSide.leaseArtsBar);
        make.right.mas_equalTo(-HexDiscrete.shelfTenSide.leaseArtsBar);
        make.height.mas_equalTo(HexDiscrete.shelfTenSide.mealFirstUse);
    }];
    
    
    self.utilitiesPaceTextField = [HexDiscrete photoScannerSpokenEndIntensityPassword:NO];
    [self.view addSubview:self.utilitiesPaceTextField];
    [self.utilitiesPaceTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.deltaTenBendTextField.mas_bottom).offset(HexDiscrete.shelfTenSide.disposeBevel);
        make.left.right.equalTo(self.deltaTenBendTextField);
        make.height.mas_equalTo(HexDiscrete.shelfTenSide.mealFirstUse);
    }];
    UIButton *rightButton = self.utilitiesPaceTextField.rightView.subviews.firstObject;
    [rightButton addTarget:self action:@selector(currencyWriteUpdatingBitUtilityOutHandler:) forControlEvents:(UIControlEventTouchUpInside)];

    
    UIButton *dragGetButAgeButton = [HexDiscrete markupFlightWasMasterChildColor:HexDiscrete.twistSheWasWin.duplexBurmese];
    [dragGetButAgeButton addTarget:self action:@selector(sugarSpecialSeleniumUndoProducerPressedAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:dragGetButAgeButton];
    [dragGetButAgeButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.utilitiesPaceTextField.mas_bottom).offset(HexDiscrete.shelfTenSide.disposeBevel);
        make.left.right.equalTo(self.utilitiesPaceTextField);
        make.height.mas_equalTo(HexDiscrete.shelfTenSide.wakeEnterToo);
    }];
    
    [self.view addSubview:self.hasYearForceLabel];
    lazyFax(self);
    [self.hasYearForceLabel setYouMinorRowMenuProgressJust:^{
        extendCat(self);
        [self greatInfoAlcoholAboveChooseHueAction];
    }];
    [self.hasYearForceLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(-HexDiscrete.shelfTenSide.fitRecovered);
        make.left.mas_equalTo(HexDiscrete.shelfTenSide.dueMetalLink);
        make.right.mas_equalTo(-HexDiscrete.shelfTenSide.dueMetalLink);
    }];
}

- (void)currencyWriteUpdatingBitUtilityOutHandler:(UIButton *)sender {
    sender.selected = !sender.isSelected;
    self.utilitiesPaceTextField.secureTextEntry = !self.utilitiesPaceTextField.isSecureTextEntry;
}

- (void)sugarSpecialSeleniumUndoProducerPressedAction:(UIButton *)sender {
    if (self.deltaTenBendTextField.text.length < HexDiscrete.shelfTenSide.fitTailSwap) {
        [BadAlertView oddDepthCanUseTipWaist:HexDiscrete.twistSheWasWin.principal message:HexDiscrete.twistSheWasWin.queryingDomainStrokingSmallHisCompare completion:nil];
        return;
    }
    if (self.utilitiesPaceTextField.text.length < HexDiscrete.shelfTenSide.fitTailSwap) {
        [BadAlertView oddDepthCanUseTipWaist:HexDiscrete.twistSheWasWin.principal message:HexDiscrete.twistSheWasWin.coercionMenuMessagingParsecsFractionStop completion:nil];
        return;
    }
    if ([self.tipSlidingWin respondsToSelector:@selector(petiteSocketCiphersAndObservedSingularPhoneName:midKey:completion:)]) {
        [OnceStickyView mayAgeSpacingWindow];
        [self.tipSlidingWin petiteSocketCiphersAndObservedSingularPhoneName:self.deltaTenBendTextField.text midKey:self.utilitiesPaceTextField.text completion:^(id object) {
            [OnceStickyView kinResponseDayInstallBondWindow];
        }];
    }
}


- (void)greatInfoAlcoholAboveChooseHueAction {
    WaitAgeMenuTooViewController *topNanograms = [WaitAgeMenuTooViewController new];
    topNanograms.reliableWay = @(YES);
    topNanograms.tipSlidingWin = self.tipSlidingWin;
    [topNanograms setRegisterCancelsBlockGenericsPrep:^(BOOL result) {
        self.hasYearForceLabel.snapStairGiven = result;
    }];
    [self.navigationController pushViewController:topNanograms animated:NO];
}

@end
