






#import "PressDrawViewController.h"
#import "SayHertzZipButton.h"
#import "ZipToast.h"
#import "ArmpitSinTextField.h"
#import "NSString+OrderReal.h"

@interface PressDrawViewController ()

@property (nonatomic, strong) ArmpitSinTextField *dogCountingTextField;
@property (nonatomic, strong) UITextField *scanPlaneTextField;
@property (nonatomic, strong) UITextField *subtractOceanTextField;
@property (nonatomic, strong) SayHertzZipButton *otherTiedButton;
@end

@implementation PressDrawViewController

- (SayHertzZipButton *)otherTiedButton {
    if (!_otherTiedButton) {
        _otherTiedButton = [[SayHertzZipButton alloc] init];
    }
    return _otherTiedButton;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.dogCountingTextField = [[ArmpitSinTextField alloc] initWithController:self];
    [self.view addSubview:self.dogCountingTextField];
    [self.dogCountingTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(DueIcyFetch.itsPosterIcy.pingMouseSum);
        make.left.mas_equalTo(DueIcyFetch.itsPosterIcy.flowStrategy);
        make.right.mas_equalTo(-DueIcyFetch.itsPosterIcy.flowStrategy);
        make.height.mas_equalTo(DueIcyFetch.itsPosterIcy.operandPiece);
    }];
    
    
    self.scanPlaneTextField = [DueIcyFetch bitmapHueDelayedLazySuchEmptyCode];
    [self.view addSubview:self.scanPlaneTextField];
    [self.scanPlaneTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.dogCountingTextField.mas_bottom).offset(DueIcyFetch.itsPosterIcy.nowWeekForm);
        make.left.mas_equalTo(DueIcyFetch.itsPosterIcy.flowStrategy);
        make.height.mas_equalTo(DueIcyFetch.itsPosterIcy.operandPiece);
    }];
    
    glucose(self);
    self.otherTiedButton.logItsInvitedAction = ^{
        mixTriple(self);
        
        NSString *secretFarCode = self.dogCountingTextField.popMayWinBuild;
        NSString *longerIdiom = self.dogCountingTextField.lacrosseEnteredDomainsJustHyphens;
        if (self.dogCountingTextField.dogCountingTextField.text.icyAreDigest) {
            [self.otherTiedButton desktopLeapAnalysisCatalogElement];
            [SinAlertView pubPromisedSmartWaySettlingDecrypted:DueIcyFetch.catBaseSinFill.systemHex message:DueIcyFetch.catBaseSinFill.boundListenersGraphicsHybridAwakeShow completion:nil];
            return;
        }
        if ([self.sinHyphensOpt respondsToSelector:@selector(flatBandwidthClampDiscardedStepTrustLiveType:earCycleMin:thatCode:completion:)]) {
            [BinaryBankView napSumMixNextWindow];
            [self.sinHyphensOpt flatBandwidthClampDiscardedStepTrustLiveType:DueIcyFetch.itsPosterIcy.dictationUrgentMacintoshFilteredOrder earCycleMin:longerIdiom thatCode:secretFarCode completion:^(id object) {
                [BinaryBankView lessNoteGlucoseProminentBufferWindow];
                if ([object boolValue]) {
                    [ZipToast dryFaxOnce:DueIcyFetch.catBaseSinFill.millChannelsOceanArmAllowableBuilderCode];
                }else {
                    [self.otherTiedButton desktopLeapAnalysisCatalogElement];
                }
            }];
        }
    };
    [self.view addSubview:self.otherTiedButton];
    [self.otherTiedButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.scanPlaneTextField);
        make.height.equalTo(self.scanPlaneTextField);
        make.left.equalTo(self.scanPlaneTextField.mas_right).offset(DueIcyFetch.itsPosterIcy.netIndianFat);
        make.right.equalTo(self.dogCountingTextField);
    }];
    
    
    [self.otherTiedButton setContentHuggingPriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
    
    
    self.subtractOceanTextField = [DueIcyFetch fireFlightsIdenticalAreaOfferPassword:YES];
    [self.view addSubview:self.subtractOceanTextField];
    [self.subtractOceanTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.scanPlaneTextField.mas_bottom).offset(DueIcyFetch.itsPosterIcy.nowWeekForm);
        make.left.mas_equalTo(DueIcyFetch.itsPosterIcy.flowStrategy);
        make.right.mas_equalTo(-DueIcyFetch.itsPosterIcy.flowStrategy);
        make.height.mas_equalTo(DueIcyFetch.itsPosterIcy.operandPiece);
    }];
    UIButton *retrieveButton = self.subtractOceanTextField.rightView.subviews.firstObject;
    [retrieveButton addTarget:self action:@selector(flagLandscapeMonitoredShoulderFatalOrnamentHandler:) forControlEvents:(UIControlEventTouchUpInside)];
    
    
    UIButton *wayReusableButton = [DueIcyFetch expertNetBitsSplatHeaderColor:DueIcyFetch.catBaseSinFill.illClickTipKey];
    [wayReusableButton addTarget:self action:@selector(cutoffOfferIterationFragmentMathAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:wayReusableButton];
    [wayReusableButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.subtractOceanTextField.mas_bottom).offset(DueIcyFetch.itsPosterIcy.nowWeekForm);
        make.left.mas_equalTo(DueIcyFetch.itsPosterIcy.flowStrategy);
        make.right.mas_equalTo(-DueIcyFetch.itsPosterIcy.flowStrategy);
        make.height.mas_equalTo(DueIcyFetch.itsPosterIcy.pascalTipTab);
    }];
}
- (void)flagLandscapeMonitoredShoulderFatalOrnamentHandler:(UIButton *)sender {
    sender.selected = !sender.isSelected;
    self.subtractOceanTextField.secureTextEntry = !self.subtractOceanTextField.isSecureTextEntry;
}

- (void)cutoffOfferIterationFragmentMathAction:(id)sender {
    if (self.dogCountingTextField.dogCountingTextField.text.icyAreDigest) {
        [SinAlertView pubPromisedSmartWaySettlingDecrypted:DueIcyFetch.catBaseSinFill.systemHex message:DueIcyFetch.catBaseSinFill.boundListenersGraphicsHybridAwakeShow completion:nil];
        return;
    }
    if (self.scanPlaneTextField.text.icyAreDigest) {
        [SinAlertView pubPromisedSmartWaySettlingDecrypted:DueIcyFetch.catBaseSinFill.systemHex message:DueIcyFetch.catBaseSinFill.sortSerbianOlympusClimbedPan completion:nil];
        return;
    }
    if (self.subtractOceanTextField.text.length < DueIcyFetch.itsPosterIcy.longerPrice) {
        [SinAlertView pubPromisedSmartWaySettlingDecrypted:DueIcyFetch.catBaseSinFill.systemHex message:DueIcyFetch.catBaseSinFill.rawLandscapeFailMetalDimensionCancels completion:nil];
        return;
    }
    NSString *secretFarCode = self.dogCountingTextField.popMayWinBuild;
    NSString *longerIdiom = self.dogCountingTextField.lacrosseEnteredDomainsJustHyphens;
    if ([self.sinHyphensOpt respondsToSelector:@selector(traverseBrokenContainedResumeAxesRestoreForm:code:thatCode:maxKey:completion:)]) {
        [BinaryBankView napSumMixNextWindow];
        [self.sinHyphensOpt traverseBrokenContainedResumeAxesRestoreForm:longerIdiom code:self.scanPlaneTextField.text thatCode:secretFarCode maxKey:self.subtractOceanTextField.text completion:^(id object) {
            [BinaryBankView lessNoteGlucoseProminentBufferWindow];
            [ZipToast dryFaxOnce:DueIcyFetch.catBaseSinFill.farsiRedoParticleBlockGranted];
            if (object) {
                [self.runningMealDelegate offSpeakerSelfPieceGenderWithName:object membersSidePassword:self.subtractOceanTextField.text];
                [self shiftFinnishSumPenLiftAction:nil];
            }
        }];
    }
}

- (void)dealloc {
    [self.otherTiedButton desktopLeapAnalysisCatalogElement];
}
@end
