






#import "ExtrasEraViewController.h"
#import "GetGradeCarButton.h"
#import "ItsToast.h"
#import "PinRemoveTextField.h"
#import "NSString+SaltRenew.h"

@interface ExtrasEraViewController ()

@property (nonatomic, strong) PinRemoveTextField *invokeAwakeTextField;
@property (nonatomic, strong) UITextField *sequencesTextField;
@property (nonatomic, strong) UITextField *breakWaxPieceTextField;
@property (nonatomic, strong) GetGradeCarButton *keysInsetButton;
@end

@implementation ExtrasEraViewController

- (GetGradeCarButton *)keysInsetButton {
    if (!_keysInsetButton) {
        _keysInsetButton = [[GetGradeCarButton alloc] init];
    }
    return _keysInsetButton;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.invokeAwakeTextField = [[PinRemoveTextField alloc] initWithController:self];
    [self.view addSubview:self.invokeAwakeTextField];
    [self.invokeAwakeTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(SafariFloor.wakeTrustDay.childrenHigh);
        make.left.mas_equalTo(SafariFloor.wakeTrustDay.eastSobOrder);
        make.right.mas_equalTo(-SafariFloor.wakeTrustDay.eastSobOrder);
        make.height.mas_equalTo(SafariFloor.wakeTrustDay.biotinRecord);
    }];
    
    
    self.sequencesTextField = [SafariFloor suddenStationAllPlacementCalendarStreamsCode];
    [self.view addSubview:self.sequencesTextField];
    [self.sequencesTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.invokeAwakeTextField.mas_bottom).offset(SafariFloor.wakeTrustDay.queryOutArt);
        make.left.mas_equalTo(SafariFloor.wakeTrustDay.eastSobOrder);
        make.height.mas_equalTo(SafariFloor.wakeTrustDay.biotinRecord);
    }];
    
    hexLove(self);
    self.keysInsetButton.standPlateGetAction = ^{
        mayAnchor(self);
        
        NSString *chunkyArmCode = self.invokeAwakeTextField.clampingAppend;
        NSString *dogNonceFat = self.invokeAwakeTextField.serverBaseballGreatRepliesPrecise;
        if (self.invokeAwakeTextField.invokeAwakeTextField.text.dateLeaveYet) {
            [self.keysInsetButton visualConcertSlashedConvertCutoff];
            [HerAlertView highestTopOutletPeakGetOdd:SafariFloor.issueExecSlide.indoorTip message:SafariFloor.issueExecSlide.storylineAcceptBuildAttachCanStrip completion:nil];
            return;
        }
        if ([self.exactnessBody respondsToSelector:@selector(hurricanePanelInitialColumnsMixCloudDiscardsType:optUseAbove:tagsCode:completion:)]) {
            [VitalRomanView eyeBagCardYetWindow];
            [self.exactnessBody hurricanePanelInitialColumnsMixCloudDiscardsType:SafariFloor.wakeTrustDay.prematureArcherySecretInheritedSplit optUseAbove:dogNonceFat tagsCode:chunkyArmCode completion:^(id object) {
                [VitalRomanView calculateDarkerModeBuddyLambdaWindow];
                if ([object boolValue]) {
                    [ItsToast detailSize:SafariFloor.issueExecSlide.abnormalProcessorHexSyntaxClangContainerCode];
                }else {
                    [self.keysInsetButton visualConcertSlashedConvertCutoff];
                }
            }];
        }
    };
    [self.view addSubview:self.keysInsetButton];
    [self.keysInsetButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.sequencesTextField);
        make.height.equalTo(self.sequencesTextField);
        make.left.equalTo(self.sequencesTextField.mas_right).offset(SafariFloor.wakeTrustDay.restEuropean);
        make.right.equalTo(self.invokeAwakeTextField);
    }];
    
    
    [self.keysInsetButton setContentHuggingPriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
    
    
    self.breakWaxPieceTextField = [SafariFloor superiorsTenTruncatedFrontNecessaryPassword:YES];
    [self.view addSubview:self.breakWaxPieceTextField];
    [self.breakWaxPieceTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.sequencesTextField.mas_bottom).offset(SafariFloor.wakeTrustDay.queryOutArt);
        make.left.mas_equalTo(SafariFloor.wakeTrustDay.eastSobOrder);
        make.right.mas_equalTo(-SafariFloor.wakeTrustDay.eastSobOrder);
        make.height.mas_equalTo(SafariFloor.wakeTrustDay.biotinRecord);
    }];
    UIButton *skinLoseButton = self.breakWaxPieceTextField.rightView.subviews.firstObject;
    [skinLoseButton addTarget:self action:@selector(sinButCubicObserveBirthAnyHandler:) forControlEvents:(UIControlEventTouchUpInside)];
    
    
    UIButton *hasTrySlashButton = [SafariFloor spatialVerticalTaskMidTradColor:SafariFloor.issueExecSlide.peerSpecialKey];
    [hasTrySlashButton addTarget:self action:@selector(databasesCornerSimpleMolarTapAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:hasTrySlashButton];
    [hasTrySlashButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.breakWaxPieceTextField.mas_bottom).offset(SafariFloor.wakeTrustDay.queryOutArt);
        make.left.mas_equalTo(SafariFloor.wakeTrustDay.eastSobOrder);
        make.right.mas_equalTo(-SafariFloor.wakeTrustDay.eastSobOrder);
        make.height.mas_equalTo(SafariFloor.wakeTrustDay.emailAnchors);
    }];
}
- (void)sinButCubicObserveBirthAnyHandler:(UIButton *)sender {
    sender.selected = !sender.isSelected;
    self.breakWaxPieceTextField.secureTextEntry = !self.breakWaxPieceTextField.isSecureTextEntry;
}

- (void)databasesCornerSimpleMolarTapAction:(id)sender {
    if (self.invokeAwakeTextField.invokeAwakeTextField.text.dateLeaveYet) {
        [HerAlertView highestTopOutletPeakGetOdd:SafariFloor.issueExecSlide.indoorTip message:SafariFloor.issueExecSlide.storylineAcceptBuildAttachCanStrip completion:nil];
        return;
    }
    if (self.sequencesTextField.text.dateLeaveYet) {
        [HerAlertView highestTopOutletPeakGetOdd:SafariFloor.issueExecSlide.indoorTip message:SafariFloor.issueExecSlide.pageGradeYearsJapaneseBecome completion:nil];
        return;
    }
    if (self.breakWaxPieceTextField.text.length < SafariFloor.wakeTrustDay.oceanEyeFat) {
        [HerAlertView highestTopOutletPeakGetOdd:SafariFloor.issueExecSlide.indoorTip message:SafariFloor.issueExecSlide.eraKeyboardSourceDarkSpeedChina completion:nil];
        return;
    }
    NSString *chunkyArmCode = self.invokeAwakeTextField.clampingAppend;
    NSString *dogNonceFat = self.invokeAwakeTextField.serverBaseballGreatRepliesPrecise;
    if ([self.exactnessBody respondsToSelector:@selector(lettishContrastGaelicWonMostlyFarthestLaw:code:tagsCode:catKey:completion:)]) {
        [VitalRomanView eyeBagCardYetWindow];
        [self.exactnessBody lettishContrastGaelicWonMostlyFarthestLaw:dogNonceFat code:self.sequencesTextField.text tagsCode:chunkyArmCode catKey:self.breakWaxPieceTextField.text completion:^(id object) {
            [VitalRomanView calculateDarkerModeBuddyLambdaWindow];
            [ItsToast detailSize:SafariFloor.issueExecSlide.darkEggRadialPacketsPreviews];
            if (object) {
                [self.seeDidLeaseDelegate republicProviderDictationInlandKurdishWithName:object stepGetFastPassword:self.breakWaxPieceTextField.text];
                [self poloTrainingPrimeCarNarrativeAction:nil];
            }
        }];
    }
}

- (void)dealloc {
    [self.keysInsetButton visualConcertSlashedConvertCutoff];
}
@end
