






#import "EnsureArmViewController.h"
#import "MinimalTeamButton.h"
#import "DryToast.h"
#import "GuestDoneTextField.h"
#import "NSString+ExpandNot.h"

@interface EnsureArmViewController ()

@property (nonatomic, strong) GuestDoneTextField *thatAdapterTextField;
@property (nonatomic, strong) UITextField *goalArrowTextField;
@property (nonatomic, strong) UITextField *pickTipSheButTextField;
@property (nonatomic, strong) MinimalTeamButton *carbonEndButton;
@end

@implementation EnsureArmViewController

- (MinimalTeamButton *)carbonEndButton {
    if (!_carbonEndButton) {
        _carbonEndButton = [[MinimalTeamButton alloc] init];
    }
    return _carbonEndButton;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.thatAdapterTextField = [[GuestDoneTextField alloc] initWithController:self];
    [self.view addSubview:self.thatAdapterTextField];
    [self.thatAdapterTextField 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.goalArrowTextField = [AlbumBoxSex parserLeastWarpBengaliBondReleaseCode];
    [self.view addSubview:self.goalArrowTextField];
    [self.goalArrowTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.thatAdapterTextField.mas_bottom).offset(AlbumBoxSex.catalanHertz.hitProduces);
        make.left.mas_equalTo(AlbumBoxSex.catalanHertz.editorForHex);
        make.height.mas_equalTo(AlbumBoxSex.catalanHertz.revisionRain);
    }];
    
    visited(self);
    self.carbonEndButton.producedEventAction = ^{
        bitsLeast(self);
        
        NSString *refreshedCode = self.thatAdapterTextField.controlsOutput;
        NSString *sobSpaceKit = self.thatAdapterTextField.coloredFindBlindingSedentaryCert;
        if (self.thatAdapterTextField.thatAdapterTextField.text.pageLiterHow) {
            [self.carbonEndButton hardSubfamilyFactorUniqueEvaluated];
            [MaxAlertView pastLawRevisionsProceedSpectralOcean:AlbumBoxSex.topWaxTreeRole.unlimited message:AlbumBoxSex.topWaxTreeRole.tremorSilencedEarlyAppendingIndigoPressure completion:nil];
            return;
        }
        if ([self.becomeBankers respondsToSelector:@selector(malformedFullLaterKelvinStoneColumnsDescribeType:lawLikeDone:grayCode:completion:)]) {
            [InsulinJobView footersSignerWindow];
            [self.becomeBankers malformedFullLaterKelvinStoneColumnsDescribeType:AlbumBoxSex.catalanHertz.surgePromisedLiftScopeProject lawLikeDone:sobSpaceKit grayCode:refreshedCode completion:^(id object) {
                [InsulinJobView preventedSmileBedRunMusicWindow];
                if ([object boolValue]) {
                    [DryToast longUptime:AlbumBoxSex.topWaxTreeRole.zeroActionBezelLogicalAffectingAchievedCode];
                }else {
                    [self.carbonEndButton hardSubfamilyFactorUniqueEvaluated];
                }
            }];
        }
    };
    [self.view addSubview:self.carbonEndButton];
    [self.carbonEndButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.goalArrowTextField);
        make.height.equalTo(self.goalArrowTextField);
        make.left.equalTo(self.goalArrowTextField.mas_right).offset(AlbumBoxSex.catalanHertz.subBypassFix);
        make.right.equalTo(self.thatAdapterTextField);
    }];
    
    
    [self.carbonEndButton setContentHuggingPriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
    
    
    self.pickTipSheButTextField = [AlbumBoxSex givenDidRatingsFeedbackNodePassword:YES];
    [self.view addSubview:self.pickTipSheButTextField];
    [self.pickTipSheButTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.goalArrowTextField.mas_bottom).offset(AlbumBoxSex.catalanHertz.hitProduces);
        make.left.mas_equalTo(AlbumBoxSex.catalanHertz.editorForHex);
        make.right.mas_equalTo(-AlbumBoxSex.catalanHertz.editorForHex);
        make.height.mas_equalTo(AlbumBoxSex.catalanHertz.revisionRain);
    }];
    UIButton *coulombsButton = self.pickTipSheButTextField.rightView.subviews.firstObject;
    [coulombsButton addTarget:self action:@selector(boundArtistLenientHandleIntentFillHandler:) forControlEvents:(UIControlEventTouchUpInside)];
    
    
    UIButton *hasWelshEarButton = [AlbumBoxSex managerResultsExistingAscendingDefinedColor:AlbumBoxSex.topWaxTreeRole.pubEncodingKey];
    [hasWelshEarButton addTarget:self action:@selector(renameUkrainianAnimateGallonNiacinAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:hasWelshEarButton];
    [hasWelshEarButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.pickTipSheButTextField.mas_bottom).offset(AlbumBoxSex.catalanHertz.hitProduces);
        make.left.mas_equalTo(AlbumBoxSex.catalanHertz.editorForHex);
        make.right.mas_equalTo(-AlbumBoxSex.catalanHertz.editorForHex);
        make.height.mas_equalTo(AlbumBoxSex.catalanHertz.haveThemeAre);
    }];
}
- (void)boundArtistLenientHandleIntentFillHandler:(UIButton *)sender {
    sender.selected = !sender.isSelected;
    self.pickTipSheButTextField.secureTextEntry = !self.pickTipSheButTextField.isSecureTextEntry;
}

- (void)renameUkrainianAnimateGallonNiacinAction:(id)sender {
    if (self.thatAdapterTextField.thatAdapterTextField.text.pageLiterHow) {
        [MaxAlertView pastLawRevisionsProceedSpectralOcean:AlbumBoxSex.topWaxTreeRole.unlimited message:AlbumBoxSex.topWaxTreeRole.tremorSilencedEarlyAppendingIndigoPressure completion:nil];
        return;
    }
    if (self.goalArrowTextField.text.pageLiterHow) {
        [MaxAlertView pastLawRevisionsProceedSpectralOcean:AlbumBoxSex.topWaxTreeRole.unlimited message:AlbumBoxSex.topWaxTreeRole.undoReminderNowFrameParental completion:nil];
        return;
    }
    if (self.pickTipSheButTextField.text.length < AlbumBoxSex.catalanHertz.soloGrouped) {
        [MaxAlertView pastLawRevisionsProceedSpectralOcean:AlbumBoxSex.topWaxTreeRole.unlimited message:AlbumBoxSex.topWaxTreeRole.pivotHueDeviceUseAffiliateAdjusting completion:nil];
        return;
    }
    NSString *refreshedCode = self.thatAdapterTextField.controlsOutput;
    NSString *sobSpaceKit = self.thatAdapterTextField.coloredFindBlindingSedentaryCert;
    if ([self.becomeBankers respondsToSelector:@selector(alignmentInferiorsProfilesRetExtraClipStart:code:grayCode:tabKey:completion:)]) {
        [InsulinJobView footersSignerWindow];
        [self.becomeBankers alignmentInferiorsProfilesRetExtraClipStart:sobSpaceKit code:self.goalArrowTextField.text grayCode:refreshedCode tabKey:self.pickTipSheButTextField.text completion:^(id object) {
            [InsulinJobView preventedSmileBedRunMusicWindow];
            [DryToast longUptime:AlbumBoxSex.topWaxTreeRole.caretZipLastLambdaCaptures];
            if (object) {
                [self.outAlignArmDelegate abortLogoClampingCroatianBikeWithName:object laotianWrapPassword:self.pickTipSheButTextField.text];
                [self quitWhileConstantsWaxHeartAction:nil];
            }
        }];
    }
}

- (void)dealloc {
    [self.carbonEndButton hardSubfamilyFactorUniqueEvaluated];
}
@end
