






#import "PromotionViewController.h"
#import "SlideCutOwnLabel.h"
#import "MidCostNameAgeViewController.h"

@interface PromotionViewController ()

@property (nonatomic, strong) UITextField *beginYardAskTextField;
@property (nonatomic, strong) UITextField *pullPenTapWinTextField;
@property (nonatomic,strong) SlideCutOwnLabel *slopeLockingLabel;
@end



@implementation PromotionViewController

- (SlideCutOwnLabel *)slopeLockingLabel {
    if (!_slopeLockingLabel) {
        _slopeLockingLabel = [SlideCutOwnLabel blobPresenterLabel:NO];
    }
    return _slopeLockingLabel;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.beginYardAskTextField = [RedFlexible violationTryPubGrantedWasAccount];
    [self.view addSubview:self.beginYardAskTextField];
    [self.beginYardAskTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(RedFlexible.capContinued.trapKinOrder);
        make.left.mas_equalTo(RedFlexible.capContinued.gallonAmpere);
        make.right.mas_equalTo(-RedFlexible.capContinued.gallonAmpere);
        make.height.mas_equalTo(RedFlexible.capContinued.busyDenseMap);
    }];
    
    
    self.pullPenTapWinTextField = [RedFlexible secureImmediatePauseCounterCollapsesPassword:NO];
    [self.view addSubview:self.pullPenTapWinTextField];
    [self.pullPenTapWinTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.beginYardAskTextField.mas_bottom).offset(RedFlexible.capContinued.languageHalf);
        make.left.right.equalTo(self.beginYardAskTextField);
        make.height.mas_equalTo(RedFlexible.capContinued.busyDenseMap);
    }];
    UIButton *rightButton = self.pullPenTapWinTextField.rightView.subviews.firstObject;
    [rightButton addTarget:self action:@selector(checkingSaturateFrequencyAllowableHasTrapHandler:) forControlEvents:(UIControlEventTouchUpInside)];

    
    UIButton *retYearPubYetButton = [RedFlexible authorNumeralPivotRecipientPluralColor:RedFlexible.daySentFaxWill.askKeyChecked];
    [retYearPubYetButton addTarget:self action:@selector(toolAbsentDiscardsTabStepchildClockAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:retYearPubYetButton];
    [retYearPubYetButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.pullPenTapWinTextField.mas_bottom).offset(RedFlexible.capContinued.languageHalf);
        make.left.right.equalTo(self.pullPenTapWinTextField);
        make.height.mas_equalTo(RedFlexible.capContinued.duplexCorner);
    }];
    
    [self.view addSubview:self.slopeLockingLabel];
    noneBar(self);
    [self.slopeLockingLabel setLevelLexiconInvalidArrangedFixtureSecurity:^{
        foundRoom(self);
        [self ownMayHoverLicenseUniqueChallengeAction];
    }];
    [self.slopeLockingLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(-RedFlexible.capContinued.fatSinhalese);
        make.left.mas_equalTo(RedFlexible.capContinued.pinchExtract);
        make.right.mas_equalTo(-RedFlexible.capContinued.pinchExtract);
    }];
}

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

- (void)toolAbsentDiscardsTabStepchildClockAction:(UIButton *)sender {
    if (self.beginYardAskTextField.text.length < RedFlexible.capContinued.eyeRainHand) {
        [EndAlertView silenceMountedOverhangThousandTextureCurrency:RedFlexible.daySentFaxWill.intersect message:RedFlexible.daySentFaxWill.centerHertzHomeTheCurveCut completion:nil];
        return;
    }
    if (self.pullPenTapWinTextField.text.length < RedFlexible.capContinued.eyeRainHand) {
        [EndAlertView silenceMountedOverhangThousandTextureCurrency:RedFlexible.daySentFaxWill.intersect message:RedFlexible.daySentFaxWill.chargeFireStandardSuddenReturnsNot completion:nil];
        return;
    }
    if ([self.wonHoldDogRaw respondsToSelector:@selector(availSelfProvisionEntitiesTapShakeExtendsName:midKey:completion:)]) {
        [StepsonRedView ambiguousPlayWindow];
        [self.wonHoldDogRaw availSelfProvisionEntitiesTapShakeExtendsName:self.beginYardAskTextField.text midKey:self.pullPenTapWinTextField.text completion:^(id object) {
            [StepsonRedView storeAlbumObservingWalkingSayWindow];
        }];
    }
}


- (void)ownMayHoverLicenseUniqueChallengeAction {
    MidCostNameAgeViewController *badFarNearby = [MidCostNameAgeViewController new];
    badFarNearby.manyLeadOur = @(YES);
    badFarNearby.wonHoldDogRaw = self.wonHoldDogRaw;
    [badFarNearby setLogObsoleteWrappingHisCoast:^(BOOL result) {
        self.slopeLockingLabel.oneDidTurnList = result;
    }];
    [self.navigationController pushViewController:badFarNearby animated:NO];
}

@end
