






#import "MoireRopeViewController.h"
#import "InstantFailButton.h"
#import "EggToast.h"
#import "FoodSleetTextField.h"
#import "NSString+DublinZip.h"

@interface MoireRopeViewController ()

@property (nonatomic, strong) FoodSleetTextField *lowOldClangTextField;
@property (nonatomic, strong) UITextField *emailThinTextField;
@property (nonatomic, strong) UITextField *enablePatternTextField;
@property (nonatomic, strong) InstantFailButton *idleWhileButton;
@end

@implementation MoireRopeViewController

- (InstantFailButton *)idleWhileButton {
    if (!_idleWhileButton) {
        _idleWhileButton = [[InstantFailButton alloc] init];
    }
    return _idleWhileButton;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.lowOldClangTextField = [[FoodSleetTextField alloc] initWithController:self];
    [self.view addSubview:self.lowOldClangTextField];
    [self.lowOldClangTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(MillLiftIll.hintLegalHue.faxEggScheme);
        make.left.mas_equalTo(MillLiftIll.hintLegalHue.putMakerTree);
        make.right.mas_equalTo(-MillLiftIll.hintLegalHue.putMakerTree);
        make.height.mas_equalTo(MillLiftIll.hintLegalHue.bitSolidMask);
    }];
    
    
    self.emailThinTextField = [MillLiftIll millRouterInputCreateScheduledKilohertzCode];
    [self.view addSubview:self.emailThinTextField];
    [self.emailThinTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.lowOldClangTextField.mas_bottom).offset(MillLiftIll.hintLegalHue.fixLastPick);
        make.left.mas_equalTo(MillLiftIll.hintLegalHue.putMakerTree);
        make.height.mas_equalTo(MillLiftIll.hintLegalHue.bitSolidMask);
    }];
    
    capTask(self);
    self.idleWhileButton.scaleCarQuietAction = ^{
        awakeHold(self);
        
        NSString *microFileCode = self.lowOldClangTextField.pageShareThumb;
        NSString *hangHusband = self.lowOldClangTextField.yearsNotifyCancelsGaussianObscures;
        if (self.lowOldClangTextField.lowOldClangTextField.text.eulerHintOwn) {
            [self.idleWhileButton producerGermanCatPeopleStrong];
            [NotAlertView stackSpeedDesktopNoteTheBusy:MillLiftIll.cutHoldDateSix.areStable message:MillLiftIll.cutHoldDateSix.coachedServicesNeedCapBoxDisable completion:nil];
            return;
        }
        if ([self.moodItemSetup respondsToSelector:@selector(discardsGestureOneSecondFactoriesResolvedThroughType:spineAllWin:pushCode:completion:)]) {
            [TradFaxAgeView partnerArteryWindow];
            [self.moodItemSetup discardsGestureOneSecondFactoriesResolvedThroughType:MillLiftIll.hintLegalHue.declineNotationAcrossKilometerTrial spineAllWin:hangHusband pushCode:microFileCode completion:^(id object) {
                [TradFaxAgeView colorCollationIntegrityTaggerProgressWindow];
                if ([object boolValue]) {
                    [EggToast recentRest:MillLiftIll.cutHoldDateSix.stepsonJouleHitSortSwedishAscendingCode];
                }else {
                    [self.idleWhileButton producerGermanCatPeopleStrong];
                }
            }];
        }
    };
    [self.view addSubview:self.idleWhileButton];
    [self.idleWhileButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.emailThinTextField);
        make.height.equalTo(self.emailThinTextField);
        make.left.equalTo(self.emailThinTextField.mas_right).offset(MillLiftIll.hintLegalHue.darkenHockey);
        make.right.equalTo(self.lowOldClangTextField);
    }];
    
    
    [self.idleWhileButton setContentHuggingPriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
    
    
    self.enablePatternTextField = [MillLiftIll englishQuietZoomTryTintPassword:YES];
    [self.view addSubview:self.enablePatternTextField];
    [self.enablePatternTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.emailThinTextField.mas_bottom).offset(MillLiftIll.hintLegalHue.fixLastPick);
        make.left.mas_equalTo(MillLiftIll.hintLegalHue.putMakerTree);
        make.right.mas_equalTo(-MillLiftIll.hintLegalHue.putMakerTree);
        make.height.mas_equalTo(MillLiftIll.hintLegalHue.bitSolidMask);
    }];
    UIButton *findSiteButton = self.enablePatternTextField.rightView.subviews.firstObject;
    [findSiteButton addTarget:self action:@selector(sinBadgeVendorFunctionsPutBeginHandler:) forControlEvents:(UIControlEventTouchUpInside)];
    
    
    UIButton *walkCityWayButton = [MillLiftIll balticUnderageGetFinishedBaselineColor:MillLiftIll.cutHoldDateSix.parentalEndKey];
    [walkCityWayButton addTarget:self action:@selector(relationIcyFontRestMutationAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:walkCityWayButton];
    [walkCityWayButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.enablePatternTextField.mas_bottom).offset(MillLiftIll.hintLegalHue.fixLastPick);
        make.left.mas_equalTo(MillLiftIll.hintLegalHue.putMakerTree);
        make.right.mas_equalTo(-MillLiftIll.hintLegalHue.putMakerTree);
        make.height.mas_equalTo(MillLiftIll.hintLegalHue.tremorRemove);
    }];
}
- (void)sinBadgeVendorFunctionsPutBeginHandler:(UIButton *)sender {
    sender.selected = !sender.isSelected;
    self.enablePatternTextField.secureTextEntry = !self.enablePatternTextField.isSecureTextEntry;
}

- (void)relationIcyFontRestMutationAction:(id)sender {
    if (self.lowOldClangTextField.lowOldClangTextField.text.eulerHintOwn) {
        [NotAlertView stackSpeedDesktopNoteTheBusy:MillLiftIll.cutHoldDateSix.areStable message:MillLiftIll.cutHoldDateSix.coachedServicesNeedCapBoxDisable completion:nil];
        return;
    }
    if (self.emailThinTextField.text.eulerHintOwn) {
        [NotAlertView stackSpeedDesktopNoteTheBusy:MillLiftIll.cutHoldDateSix.areStable message:MillLiftIll.cutHoldDateSix.previewCurrentlyOvulationPinchFeed completion:nil];
        return;
    }
    if (self.enablePatternTextField.text.length < MillLiftIll.hintLegalHue.nowHostSong) {
        [NotAlertView stackSpeedDesktopNoteTheBusy:MillLiftIll.cutHoldDateSix.areStable message:MillLiftIll.cutHoldDateSix.lastTradObjectWrapperBehaveAny completion:nil];
        return;
    }
    NSString *microFileCode = self.lowOldClangTextField.pageShareThumb;
    NSString *hangHusband = self.lowOldClangTextField.yearsNotifyCancelsGaussianObscures;
    if ([self.moodItemSetup respondsToSelector:@selector(wasRenamingReplySkippedSubtitlesShutterIndices:code:pushCode:busKey:completion:)]) {
        [TradFaxAgeView partnerArteryWindow];
        [self.moodItemSetup wasRenamingReplySkippedSubtitlesShutterIndices:hangHusband code:self.emailThinTextField.text pushCode:microFileCode busKey:self.enablePatternTextField.text completion:^(id object) {
            [TradFaxAgeView colorCollationIntegrityTaggerProgressWindow];
            [EggToast recentRest:MillLiftIll.cutHoldDateSix.collectorInlandSeekingHisStore];
            if (object) {
                [self.anyChestCutDelegate favoriteProceedImperialDitherSwipeWithName:object butKitRealmPassword:self.enablePatternTextField.text];
                [self ticketsHeightPageOldestDayAction:nil];
            }
        }];
    }
}

- (void)dealloc {
    [self.idleWhileButton producerGermanCatPeopleStrong];
}
@end
