






#import "MemberMenViewController.h"
#import "NotThousandButton.h"
#import "IllToast.h"
#import "DigitModeTextField.h"
#import "NSString+AffineDog.h"

@interface MemberMenViewController ()

@property (nonatomic, strong) DigitModeTextField *discoverMapTextField;
@property (nonatomic, strong) UITextField *removableTextField;
@property (nonatomic, strong) UITextField *pullPenTapWinTextField;
@property (nonatomic, strong) NotThousandButton *assumeBadButton;
@end

@implementation MemberMenViewController

- (NotThousandButton *)assumeBadButton {
    if (!_assumeBadButton) {
        _assumeBadButton = [[NotThousandButton alloc] init];
    }
    return _assumeBadButton;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.discoverMapTextField = [[DigitModeTextField alloc] initWithController:self];
    [self.view addSubview:self.discoverMapTextField];
    [self.discoverMapTextField 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.removableTextField = [RedFlexible redirectDecodingOperandSnowBuilderModelCode];
    [self.view addSubview:self.removableTextField];
    [self.removableTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.discoverMapTextField.mas_bottom).offset(RedFlexible.capContinued.composeDone);
        make.left.mas_equalTo(RedFlexible.capContinued.gallonAmpere);
        make.height.mas_equalTo(RedFlexible.capContinued.busyDenseMap);
    }];
    
    noneBar(self);
    self.assumeBadButton.hisSunNowLiftAction = ^{
        foundRoom(self);
        
        NSString *primariesCode = self.discoverMapTextField.plugSpaHangBus;
        NSString *eventAskBag = self.discoverMapTextField.maxFourthReadyPreferInserted;
        if (self.discoverMapTextField.discoverMapTextField.text.positionRain) {
            [self.assumeBadButton forContentContainPositiveSymmetric];
            [EndAlertView silenceMountedOverhangThousandTextureCurrency:RedFlexible.daySentFaxWill.intersect message:RedFlexible.daySentFaxWill.issuerBadHitHowBackwardsFocal completion:nil];
            return;
        }
        if ([self.wonHoldDogRaw respondsToSelector:@selector(engravedCoachedPermutePeriodicFatalFastDigitizedType:bandFeetYou:gainCode:completion:)]) {
            [StepsonRedView ambiguousPlayWindow];
            [self.wonHoldDogRaw engravedCoachedPermutePeriodicFatalFastDigitizedType:RedFlexible.capContinued.searchTryNordicAdjectiveFactored bandFeetYou:eventAskBag gainCode:primariesCode completion:^(id object) {
                [StepsonRedView storeAlbumObservingWalkingSayWindow];
                if ([object boolValue]) {
                    [IllToast subOurTags:RedFlexible.daySentFaxWill.moreReaderNecessaryFingerCorrectedBeganCode];
                }else {
                    [self.assumeBadButton forContentContainPositiveSymmetric];
                }
            }];
        }
    };
    [self.view addSubview:self.assumeBadButton];
    [self.assumeBadButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.removableTextField);
        make.height.equalTo(self.removableTextField);
        make.right.equalTo(self.discoverMapTextField);
        
        make.width.mas_equalTo(self.assumeBadButton.titleLabel.intrinsicContentSize.width + RedFlexible.capContinued.alarmNetLoud);
    }];
    
    [self.removableTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self.assumeBadButton.mas_left).offset(-RedFlexible.capContinued.rowDeleteMan);
    }];
    
    
    self.pullPenTapWinTextField = [RedFlexible secureImmediatePauseCounterCollapsesPassword:YES];
    [self.view addSubview:self.pullPenTapWinTextField];
    [self.pullPenTapWinTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.removableTextField.mas_bottom).offset(RedFlexible.capContinued.composeDone);
        make.left.mas_equalTo(RedFlexible.capContinued.gallonAmpere);
        make.right.mas_equalTo(-RedFlexible.capContinued.gallonAmpere);
        make.height.mas_equalTo(RedFlexible.capContinued.busyDenseMap);
    }];
    UIButton *mildPlusButton = self.pullPenTapWinTextField.rightView.subviews.firstObject;
    [mildPlusButton addTarget:self action:@selector(checkingSaturateFrequencyAllowableHasTrapHandler:) forControlEvents:(UIControlEventTouchUpInside)];
    
    
    UIButton *engineQuickButton = [RedFlexible authorNumeralPivotRecipientPluralColor:RedFlexible.daySentFaxWill.yetDominantKey];
    [engineQuickButton addTarget:self action:@selector(wayKazakhSquareDryCanonicalAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:engineQuickButton];
    [engineQuickButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.pullPenTapWinTextField.mas_bottom).offset(RedFlexible.capContinued.composeDone);
        make.left.mas_equalTo(RedFlexible.capContinued.gallonAmpere);
        make.right.mas_equalTo(-RedFlexible.capContinued.gallonAmpere);
        make.height.mas_equalTo(RedFlexible.capContinued.duplexCorner);
    }];
}
- (void)checkingSaturateFrequencyAllowableHasTrapHandler:(UIButton *)sender {
    sender.selected = !sender.isSelected;
    self.pullPenTapWinTextField.secureTextEntry = !self.pullPenTapWinTextField.isSecureTextEntry;
}

- (void)wayKazakhSquareDryCanonicalAction:(id)sender {
    if (self.discoverMapTextField.discoverMapTextField.text.positionRain) {
        [EndAlertView silenceMountedOverhangThousandTextureCurrency:RedFlexible.daySentFaxWill.intersect message:RedFlexible.daySentFaxWill.issuerBadHitHowBackwardsFocal completion:nil];
        return;
    }
    if (self.removableTextField.text.positionRain) {
        [EndAlertView silenceMountedOverhangThousandTextureCurrency:RedFlexible.daySentFaxWill.intersect message:RedFlexible.daySentFaxWill.courseMemoryOneDismissIodine completion:nil];
        return;
    }
    if (self.pullPenTapWinTextField.text.length < RedFlexible.capContinued.eyeRainHand) {
        [EndAlertView silenceMountedOverhangThousandTextureCurrency:RedFlexible.daySentFaxWill.intersect message:RedFlexible.daySentFaxWill.chargeFireStandardSuddenReturnsNot completion:nil];
        return;
    }
    NSString *primariesCode = self.discoverMapTextField.plugSpaHangBus;
    NSString *eventAskBag = self.discoverMapTextField.maxFourthReadyPreferInserted;
    if ([self.wonHoldDogRaw respondsToSelector:@selector(defineLockingOutcomeBuddhistOperationExtractAccounts:code:gainCode:bitKey:completion:)]) {
        [StepsonRedView ambiguousPlayWindow];
        [self.wonHoldDogRaw defineLockingOutcomeBuddhistOperationExtractAccounts:eventAskBag code:self.removableTextField.text gainCode:primariesCode bitKey:self.pullPenTapWinTextField.text completion:^(id object) {
            [StepsonRedView storeAlbumObservingWalkingSayWindow];
            [IllToast subOurTags:RedFlexible.daySentFaxWill.switchDitherGradeChestSpacing];
            if (object) {
                [self.caseSixLookDelegate withinUsePrefersClinicalLogoWithName:object achievedBusPassword:self.pullPenTapWinTextField.text];
                [self deepScaleIdenticalRawPrematureAction:nil];
            }
        }];
    }
}

- (void)dealloc {
    [self.assumeBadButton forContentContainPositiveSymmetric];
}
@end
