






#import "AffiliateViewController.h"
#import "NearestWaitLabel.h"
#import "FormEyeHexSameViewController.h"

@interface AffiliateViewController ()

@property (nonatomic, strong) UITextField *ruleDispenseTextField;
@property (nonatomic, strong) UITextField *pickTipSheButTextField;
@property (nonatomic,strong) NearestWaitLabel *oldMediumFixLabel;
@end



@implementation AffiliateViewController

- (NearestWaitLabel *)oldMediumFixLabel {
    if (!_oldMediumFixLabel) {
        _oldMediumFixLabel = [NearestWaitLabel maxRearOwnDueLabel:NO];
    }
    return _oldMediumFixLabel;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.ruleDispenseTextField = [AlbumBoxSex workflowSlideNumbersExceedsThreadedAccount];
    [self.view addSubview:self.ruleDispenseTextField];
    [self.ruleDispenseTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(AlbumBoxSex.catalanHertz.howBufferHer);
        make.left.mas_equalTo(AlbumBoxSex.catalanHertz.editorForHex);
        make.right.mas_equalTo(-AlbumBoxSex.catalanHertz.editorForHex);
        make.height.mas_equalTo(AlbumBoxSex.catalanHertz.revisionRain);
    }];
    
    
    self.pickTipSheButTextField = [AlbumBoxSex givenDidRatingsFeedbackNodePassword:NO];
    [self.view addSubview:self.pickTipSheButTextField];
    [self.pickTipSheButTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.ruleDispenseTextField.mas_bottom).offset(AlbumBoxSex.catalanHertz.workVoiceOff);
        make.left.right.equalTo(self.ruleDispenseTextField);
        make.height.mas_equalTo(AlbumBoxSex.catalanHertz.revisionRain);
    }];
    UIButton *rightButton = self.pickTipSheButTextField.rightView.subviews.firstObject;
    [rightButton addTarget:self action:@selector(boundArtistLenientHandleIntentFillHandler:) forControlEvents:(UIControlEventTouchUpInside)];

    
    UIButton *sobBeginStateButton = [AlbumBoxSex managerResultsExistingAscendingDefinedColor:AlbumBoxSex.topWaxTreeRole.blockWasSplat];
    [sobBeginStateButton addTarget:self action:@selector(areaDrumVolumesFourthIntervalUkrainianAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:sobBeginStateButton];
    [sobBeginStateButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.pickTipSheButTextField.mas_bottom).offset(AlbumBoxSex.catalanHertz.workVoiceOff);
        make.left.right.equalTo(self.pickTipSheButTextField);
        make.height.mas_equalTo(AlbumBoxSex.catalanHertz.haveThemeAre);
    }];
    
    [self.view addSubview:self.oldMediumFixLabel];
    visited(self);
    [self.oldMediumFixLabel setNowRelationsMixSubsetAchievedSob:^{
        bitsLeast(self);
        [self touchNewtonsResponderHitCleanupBaselineAction];
    }];
    [self.oldMediumFixLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(-AlbumBoxSex.catalanHertz.leftBedBatch);
        make.left.mas_equalTo(AlbumBoxSex.catalanHertz.thatFollower);
        make.right.mas_equalTo(-AlbumBoxSex.catalanHertz.thatFollower);
    }];
}

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

- (void)areaDrumVolumesFourthIntervalUkrainianAction:(UIButton *)sender {
    if (self.ruleDispenseTextField.text.length < AlbumBoxSex.catalanHertz.soloGrouped) {
        [MaxAlertView pastLawRevisionsProceedSpectralOcean:AlbumBoxSex.topWaxTreeRole.unlimited message:AlbumBoxSex.topWaxTreeRole.spokenAdjectiveAuditedPlusAttributeEarlier completion:nil];
        return;
    }
    if (self.pickTipSheButTextField.text.length < AlbumBoxSex.catalanHertz.soloGrouped) {
        [MaxAlertView pastLawRevisionsProceedSpectralOcean:AlbumBoxSex.topWaxTreeRole.unlimited message:AlbumBoxSex.topWaxTreeRole.pivotHueDeviceUseAffiliateAdjusting completion:nil];
        return;
    }
    if ([self.becomeBankers respondsToSelector:@selector(tallBadAssemblyAdditionsSpectralInsertAlienName:mapKey:completion:)]) {
        [InsulinJobView footersSignerWindow];
        [self.becomeBankers tallBadAssemblyAdditionsSpectralInsertAlienName:self.ruleDispenseTextField.text mapKey:self.pickTipSheButTextField.text completion:^(id object) {
            [InsulinJobView preventedSmileBedRunMusicWindow];
        }];
    }
}


- (void)touchNewtonsResponderHitCleanupBaselineAction {
    FormEyeHexSameViewController *wetGatherTop = [FormEyeHexSameViewController new];
    wetGatherTop.eyeLostSink = @(YES);
    wetGatherTop.becomeBankers = self.becomeBankers;
    [wetGatherTop setParserTaggerSupportExistRaw:^(BOOL result) {
        self.oldMediumFixLabel.sixShowBinSlab = result;
    }];
    [self.navigationController pushViewController:wetGatherTop animated:NO];
}

@end
