






#import "TabFixingViewController.h"
#import "TabForFrameButton.h"
#import "BusToast.h"
#import "KnowEmailTextField.h"
#import "NSString+BoostTone.h"

@interface TabFixingViewController ()

@property (nonatomic, strong) KnowEmailTextField *flippedRainTextField;
@property (nonatomic, strong) UITextField *bufferingTextField;
@property (nonatomic, strong) UITextField *winHighHerNowTextField;
@property (nonatomic, strong) TabForFrameButton *anchoringButton;
@end

@implementation TabFixingViewController

- (TabForFrameButton *)anchoringButton {
    if (!_anchoringButton) {
        _anchoringButton = [[TabForFrameButton alloc] init];
    }
    return _anchoringButton;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.flippedRainTextField = [[KnowEmailTextField alloc] initWithController:self];
    [self.view addSubview:self.flippedRainTextField];
    [self.flippedRainTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(SumWorkTrad.fastAgeWidth.funLoudGiven);
        make.left.mas_equalTo(SumWorkTrad.fastAgeWidth.mixSwipeArea);
        make.right.mas_equalTo(-SumWorkTrad.fastAgeWidth.mixSwipeArea);
        make.height.mas_equalTo(SumWorkTrad.fastAgeWidth.lookDidUnion);
    }];
    
    
    self.bufferingTextField = [SumWorkTrad displayedMinimumVolumesMidCleanExpansionCode];
    [self.view addSubview:self.bufferingTextField];
    [self.bufferingTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.flippedRainTextField.mas_bottom).offset(SumWorkTrad.fastAgeWidth.allLosePage);
        make.left.mas_equalTo(SumWorkTrad.fastAgeWidth.mixSwipeArea);
        make.height.mas_equalTo(SumWorkTrad.fastAgeWidth.lookDidUnion);
    }];
    
    newtons(self);
    self.anchoringButton.lazyKinBarAgeAction = ^{
        illExtras(self);
        
        NSString *hurricaneCode = self.flippedRainTextField.minWireEastUse;
        NSString *windowBevel = self.flippedRainTextField.dropHeavyCupRepeatsUrgent;
        if (self.flippedRainTextField.flippedRainTextField.text.seeBecomeThe) {
            [self.anchoringButton goalGrandauntArtTelephotoKirghiz];
            [PanAlertView mobileDiscardMouthPriceDescendDistance:SumWorkTrad.arrayLawAllTop.infoEmpty message:SumWorkTrad.arrayLawAllTop.observedTransferSurgePurpleDisplayedPortion completion:nil];
            return;
        }
        if ([self.molarEvictMap respondsToSelector:@selector(lightenRootFixAreaPinUtteranceYouType:busFrontFix:feedCode:completion:)]) {
            [TurkmenOddView carUnifiedFaxWindow];
            [self.molarEvictMap lightenRootFixAreaPinUtteranceYouType:SumWorkTrad.fastAgeWidth.provideLeaseZoneSnapshotMay busFrontFix:windowBevel feedCode:hurricaneCode completion:^(id object) {
                [TurkmenOddView zipTagsChamberDateDetailWindow];
                if ([object boolValue]) {
                    [BusToast linkLowTip:SumWorkTrad.arrayLawAllTop.eraQuerySetupTintSpaConnectedCode];
                }else {
                    [self.anchoringButton goalGrandauntArtTelephotoKirghiz];
                }
            }];
        }
    };
    [self.view addSubview:self.anchoringButton];
    [self.anchoringButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.bufferingTextField);
        make.height.equalTo(self.bufferingTextField);
        make.left.equalTo(self.bufferingTextField.mas_right).offset(SumWorkTrad.fastAgeWidth.databasesBus);
        make.right.equalTo(self.flippedRainTextField);
    }];
    
    
    [self.anchoringButton setContentHuggingPriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
    
    
    self.winHighHerNowTextField = [SumWorkTrad notPermuteGatheringExistIndirectPassword:YES];
    [self.view addSubview:self.winHighHerNowTextField];
    [self.winHighHerNowTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.bufferingTextField.mas_bottom).offset(SumWorkTrad.fastAgeWidth.allLosePage);
        make.left.mas_equalTo(SumWorkTrad.fastAgeWidth.mixSwipeArea);
        make.right.mas_equalTo(-SumWorkTrad.fastAgeWidth.mixSwipeArea);
        make.height.mas_equalTo(SumWorkTrad.fastAgeWidth.lookDidUnion);
    }];
    UIButton *responseButton = self.winHighHerNowTextField.rightView.subviews.firstObject;
    [responseButton addTarget:self action:@selector(senseBagContainsSubtractSayEndHandler:) forControlEvents:(UIControlEventTouchUpInside)];
    
    
    UIButton *expandDriveButton = [SumWorkTrad mandatoryTakeNonceSearchUniqueColor:SumWorkTrad.arrayLawAllTop.jumpProgramKey];
    [expandDriveButton addTarget:self action:@selector(unchangedRemoteErrorElementsProjectAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:expandDriveButton];
    [expandDriveButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.winHighHerNowTextField.mas_bottom).offset(SumWorkTrad.fastAgeWidth.allLosePage);
        make.left.mas_equalTo(SumWorkTrad.fastAgeWidth.mixSwipeArea);
        make.right.mas_equalTo(-SumWorkTrad.fastAgeWidth.mixSwipeArea);
        make.height.mas_equalTo(SumWorkTrad.fastAgeWidth.clientBitHit);
    }];
}
- (void)senseBagContainsSubtractSayEndHandler:(UIButton *)sender {
    sender.selected = !sender.isSelected;
    self.winHighHerNowTextField.secureTextEntry = !self.winHighHerNowTextField.isSecureTextEntry;
}

- (void)unchangedRemoteErrorElementsProjectAction:(id)sender {
    if (self.flippedRainTextField.flippedRainTextField.text.seeBecomeThe) {
        [PanAlertView mobileDiscardMouthPriceDescendDistance:SumWorkTrad.arrayLawAllTop.infoEmpty message:SumWorkTrad.arrayLawAllTop.observedTransferSurgePurpleDisplayedPortion completion:nil];
        return;
    }
    if (self.bufferingTextField.text.seeBecomeThe) {
        [PanAlertView mobileDiscardMouthPriceDescendDistance:SumWorkTrad.arrayLawAllTop.infoEmpty message:SumWorkTrad.arrayLawAllTop.coverageDroppedShortcutsOldestStopped completion:nil];
        return;
    }
    if (self.winHighHerNowTextField.text.length < SumWorkTrad.fastAgeWidth.boxSpeakers) {
        [PanAlertView mobileDiscardMouthPriceDescendDistance:SumWorkTrad.arrayLawAllTop.infoEmpty message:SumWorkTrad.arrayLawAllTop.highDegreeWireButtonDeliveredWindow completion:nil];
        return;
    }
    NSString *hurricaneCode = self.flippedRainTextField.minWireEastUse;
    NSString *windowBevel = self.flippedRainTextField.dropHeavyCupRepeatsUrgent;
    if ([self.molarEvictMap respondsToSelector:@selector(soundEraserStopWrappingAllocatorPutGet:code:feedCode:kitKey:completion:)]) {
        [TurkmenOddView carUnifiedFaxWindow];
        [self.molarEvictMap soundEraserStopWrappingAllocatorPutGet:windowBevel code:self.bufferingTextField.text feedCode:hurricaneCode kitKey:self.winHighHerNowTextField.text completion:^(id object) {
            [TurkmenOddView zipTagsChamberDateDetailWindow];
            [BusToast linkLowTip:SumWorkTrad.arrayLawAllTop.deliverLaunchedEntitiesDeveloperSex];
            if (object) {
                [self.safeBestSumDelegate busWhoLoadViewPromisedWithName:object sugarTryHitPassword:self.winHighHerNowTextField.text];
                [self alpineOperateOrdinalsSeeBasicAction:nil];
            }
        }];
    }
}

- (void)dealloc {
    [self.anchoringButton goalGrandauntArtTelephotoKirghiz];
}
@end
