






#import "LeadHertzViewController.h"
#import "HueFunAlphaButton.h"
#import "OffToast.h"
#import "UpsideMaxTextField.h"
#import "NSString+SlowReset.h"

@interface LeadHertzViewController ()

@property (nonatomic, strong) UpsideMaxTextField *spaEggColorTextField;
@property (nonatomic, strong) UITextField *kinSodiumTextField;
@property (nonatomic, strong) UITextField *cutMetricsRawTextField;
@property (nonatomic, strong) HueFunAlphaButton *mathReadyButton;
@end

@implementation LeadHertzViewController

- (HueFunAlphaButton *)mathReadyButton {
    if (!_mathReadyButton) {
        _mathReadyButton = [[HueFunAlphaButton alloc] init];
    }
    return _mathReadyButton;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.spaEggColorTextField = [[UpsideMaxTextField alloc] initWithController:self];
    [self.view addSubview:self.spaEggColorTextField];
    [self.spaEggColorTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(InvertPinch.didThousands.lambdaCourse);
        make.left.mas_equalTo(InvertPinch.didThousands.redoAddition);
        make.right.mas_equalTo(-InvertPinch.didThousands.redoAddition);
        make.height.mas_equalTo(InvertPinch.didThousands.wordMagicBag);
    }];
    
    
    self.kinSodiumTextField = [InvertPinch kilowattCopperBypassHintMoreOwnCode];
    [self.view addSubview:self.kinSodiumTextField];
    [self.kinSodiumTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.spaEggColorTextField.mas_bottom).offset(InvertPinch.didThousands.repairPower);
        make.left.mas_equalTo(InvertPinch.didThousands.redoAddition);
        make.height.mas_equalTo(InvertPinch.didThousands.wordMagicBag);
    }];
    
    itsBeen(self);
    self.mathReadyButton.greenFatalSawAction = ^{
        leastMail(self);
        
        NSString *cellphoneCode = self.spaEggColorTextField.suchTaskAspect;
        NSString *produceDark = self.spaEggColorTextField.pongPlaneBurstRegularSlab;
        if (self.spaEggColorTextField.spaEggColorTextField.text.theSiteBuilt) {
            [self.mathReadyButton previewsPresenterCupLaunchingDecrement];
            [BigAlertView clickPatternsRegionUnloadPopSemantic:InvertPinch.knowSunTalkHas.pasteWide message:InvertPinch.knowSunTalkHas.drumPendingResolvedEscapeOpenOld completion:nil];
            return;
        }
        if ([self.swipeShutdown respondsToSelector:@selector(eulerBinaryRomanAuditedEastExclusionSubmittedType:boxGeorgian:leftCode:completion:)]) {
            [YouMetricsView smartNotPieceWindow];
            [self.swipeShutdown eulerBinaryRomanAuditedEastExclusionSubmittedType:InvertPinch.didThousands.toolGivenAlongFlatnessBlood boxGeorgian:produceDark leftCode:cellphoneCode completion:^(id object) {
                [YouMetricsView beaconsRunningWasPastePutWindow];
                if ([object boolValue]) {
                    [OffToast malteseSon:InvertPinch.knowSunTalkHas.paragraphEndManagersExclusiveBevelPromisedCode];
                }else {
                    [self.mathReadyButton previewsPresenterCupLaunchingDecrement];
                }
            }];
        }
    };
    [self.view addSubview:self.mathReadyButton];
    [self.mathReadyButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.kinSodiumTextField);
        make.height.equalTo(self.kinSodiumTextField);
        make.left.equalTo(self.kinSodiumTextField.mas_right).offset(InvertPinch.didThousands.stereoPartly);
        make.right.equalTo(self.spaEggColorTextField);
    }];
    
    
    [self.mathReadyButton setContentHuggingPriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
    
    
    self.cutMetricsRawTextField = [InvertPinch pictureRedoneResponderAccessingRedPassword:YES];
    [self.view addSubview:self.cutMetricsRawTextField];
    [self.cutMetricsRawTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.kinSodiumTextField.mas_bottom).offset(InvertPinch.didThousands.repairPower);
        make.left.mas_equalTo(InvertPinch.didThousands.redoAddition);
        make.right.mas_equalTo(-InvertPinch.didThousands.redoAddition);
        make.height.mas_equalTo(InvertPinch.didThousands.wordMagicBag);
    }];
    UIButton *endUpperButton = self.cutMetricsRawTextField.rightView.subviews.firstObject;
    [endUpperButton addTarget:self action:@selector(tipRelationsThinSuddenRedirectsProvidingHandler:) forControlEvents:(UIControlEventTouchUpInside)];
    
    
    UIButton *orderEldestButton = [InvertPinch greekSampleAffineEpisodeDownColor:InvertPinch.knowSunTalkHas.redNineWeekKey];
    [orderEldestButton addTarget:self action:@selector(easyHourInfiniteSerialPlanarAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:orderEldestButton];
    [orderEldestButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.cutMetricsRawTextField.mas_bottom).offset(InvertPinch.didThousands.repairPower);
        make.left.mas_equalTo(InvertPinch.didThousands.redoAddition);
        make.right.mas_equalTo(-InvertPinch.didThousands.redoAddition);
        make.height.mas_equalTo(InvertPinch.didThousands.jouleIterate);
    }];
}
- (void)tipRelationsThinSuddenRedirectsProvidingHandler:(UIButton *)sender {
    sender.selected = !sender.isSelected;
    self.cutMetricsRawTextField.secureTextEntry = !self.cutMetricsRawTextField.isSecureTextEntry;
}

- (void)easyHourInfiniteSerialPlanarAction:(id)sender {
    if (self.spaEggColorTextField.spaEggColorTextField.text.theSiteBuilt) {
        [BigAlertView clickPatternsRegionUnloadPopSemantic:InvertPinch.knowSunTalkHas.pasteWide message:InvertPinch.knowSunTalkHas.drumPendingResolvedEscapeOpenOld completion:nil];
        return;
    }
    if (self.kinSodiumTextField.text.theSiteBuilt) {
        [BigAlertView clickPatternsRegionUnloadPopSemantic:InvertPinch.knowSunTalkHas.pasteWide message:InvertPinch.knowSunTalkHas.postalCutSquaresRevertFork completion:nil];
        return;
    }
    if (self.cutMetricsRawTextField.text.length < InvertPinch.didThousands.eraMeanThin) {
        [BigAlertView clickPatternsRegionUnloadPopSemantic:InvertPinch.knowSunTalkHas.pasteWide message:InvertPinch.knowSunTalkHas.componentCopticNapIntentsRemoveWait completion:nil];
        return;
    }
    NSString *cellphoneCode = self.spaEggColorTextField.suchTaskAspect;
    NSString *produceDark = self.spaEggColorTextField.pongPlaneBurstRegularSlab;
    if ([self.swipeShutdown respondsToSelector:@selector(hiddenIntensityUndoneWordStairExposureDry:code:leftCode:funKey:completion:)]) {
        [YouMetricsView smartNotPieceWindow];
        [self.swipeShutdown hiddenIntensityUndoneWordStairExposureDry:produceDark code:self.kinSodiumTextField.text leftCode:cellphoneCode funKey:self.cutMetricsRawTextField.text completion:^(id object) {
            [YouMetricsView beaconsRunningWasPastePutWindow];
            [OffToast malteseSon:InvertPinch.knowSunTalkHas.drivenAppendingPurchasedEjectTeam];
            if (object) {
                [self.thumbBedSexDelegate wakeLossyInsideStoreDaughterWithName:object tiedPastCapPassword:self.cutMetricsRawTextField.text];
                [self birthSymmetricArrayOverallFatalAction:nil];
            }
        }];
    }
}

- (void)dealloc {
    [self.mathReadyButton previewsPresenterCupLaunchingDecrement];
}
@end
