






#import "HelperFitViewController.h"
#import "SerifMinSheButton.h"
#import "PanToast.h"
#import "FourthFarTextField.h"
#import "NSString+NotWindow.h"

@interface HelperFitViewController ()

@property (nonatomic, strong) FourthFarTextField *appearAloneTextField;
@property (nonatomic, strong) UITextField *duplexFitTextField;
@property (nonatomic, strong) UITextField *diagnoseBurstTextField;
@property (nonatomic, strong) SerifMinSheButton *renewRareButton;
@end

@implementation HelperFitViewController

- (SerifMinSheButton *)renewRareButton {
    if (!_renewRareButton) {
        _renewRareButton = [[SerifMinSheButton alloc] init];
    }
    return _renewRareButton;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.appearAloneTextField = [[FourthFarTextField alloc] initWithController:self];
    [self.view addSubview:self.appearAloneTextField];
    [self.appearAloneTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(FrictionShe.headphoneMay.armPriceGray);
        make.left.mas_equalTo(FrictionShe.headphoneMay.identifyMill);
        make.right.mas_equalTo(-FrictionShe.headphoneMay.identifyMill);
        make.height.mas_equalTo(FrictionShe.headphoneMay.wetDolbySeed);
    }];
    
    
    self.duplexFitTextField = [FrictionShe repliesPairWordDemandUnknownLongestCode];
    [self.view addSubview:self.duplexFitTextField];
    [self.duplexFitTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.appearAloneTextField.mas_bottom).offset(FrictionShe.headphoneMay.chainAccept);
        make.left.mas_equalTo(FrictionShe.headphoneMay.identifyMill);
        make.height.mas_equalTo(FrictionShe.headphoneMay.wetDolbySeed);
    }];
    
    canRace(self);
    self.renewRareButton.offLeftZipDidAction = ^{
        bayerMake(self);
        
        NSString *arbitraryCode = self.appearAloneTextField.pintCostIllMid;
        NSString *pickBagThat = self.appearAloneTextField.vitaminProvideDecimalCapNumbers;
        if (self.appearAloneTextField.appearAloneTextField.text.dogPipeSense) {
            [self.renewRareButton somaliJobPartialMissingPreset];
            [ItsAlertView hellmanPrefixedLongBetterNormalTied:FrictionShe.saltBurstFinal.bitWatery message:FrictionShe.saltBurstFinal.icelandicDustInvokeUsesDefinedPort completion:nil];
            return;
        }
        if ([self.buddhistAgent respondsToSelector:@selector(cadenceBendInheritedDogLeaseSenseDarwinType:popStrategy:dateCode:completion:)]) {
            [BaseLookupView mergeMoleFeetWindow];
            [self.buddhistAgent cadenceBendInheritedDogLeaseSenseDarwinType:FrictionShe.headphoneMay.showersTomorrowRejectionCollationLeftover popStrategy:pickBagThat dateCode:arbitraryCode completion:^(id object) {
                [BaseLookupView adoptPickSlantResolvedEntityWindow];
                if ([object boolValue]) {
                    [PanToast warnVerify:FrictionShe.saltBurstFinal.sunPenMixExclusionCommonThumbCode];
                }else {
                    [self.renewRareButton somaliJobPartialMissingPreset];
                }
            }];
        }
    };
    [self.view addSubview:self.renewRareButton];
    [self.renewRareButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.duplexFitTextField);
        make.height.equalTo(self.duplexFitTextField);
        make.left.equalTo(self.duplexFitTextField.mas_right).offset(FrictionShe.headphoneMay.widthDateBox);
        make.right.equalTo(self.appearAloneTextField);
    }];
    
    
    [self.renewRareButton setContentHuggingPriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
    
    
    self.diagnoseBurstTextField = [FrictionShe constantsMapImproperImpactControlPassword:YES];
    [self.view addSubview:self.diagnoseBurstTextField];
    [self.diagnoseBurstTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.duplexFitTextField.mas_bottom).offset(FrictionShe.headphoneMay.chainAccept);
        make.left.mas_equalTo(FrictionShe.headphoneMay.identifyMill);
        make.right.mas_equalTo(-FrictionShe.headphoneMay.identifyMill);
        make.height.mas_equalTo(FrictionShe.headphoneMay.wetDolbySeed);
    }];
    UIButton *bigScopeButton = self.diagnoseBurstTextField.rightView.subviews.firstObject;
    [bigScopeButton addTarget:self action:@selector(clientsInventoryRemotelyPostPanCacheHandler:) forControlEvents:(UIControlEventTouchUpInside)];
    
    
    UIButton *rowsCityFatButton = [FrictionShe icyThiaminFarsiReadoutRetColor:FrictionShe.saltBurstFinal.objectDeltaKey];
    [rowsCityFatButton addTarget:self action:@selector(deletingFlushSixSafetyPedometerAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:rowsCityFatButton];
    [rowsCityFatButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.diagnoseBurstTextField.mas_bottom).offset(FrictionShe.headphoneMay.chainAccept);
        make.left.mas_equalTo(FrictionShe.headphoneMay.identifyMill);
        make.right.mas_equalTo(-FrictionShe.headphoneMay.identifyMill);
        make.height.mas_equalTo(FrictionShe.headphoneMay.beatTouchMap);
    }];
}
- (void)clientsInventoryRemotelyPostPanCacheHandler:(UIButton *)sender {
    sender.selected = !sender.isSelected;
    self.diagnoseBurstTextField.secureTextEntry = !self.diagnoseBurstTextField.isSecureTextEntry;
}

- (void)deletingFlushSixSafetyPedometerAction:(id)sender {
    if (self.appearAloneTextField.appearAloneTextField.text.dogPipeSense) {
        [ItsAlertView hellmanPrefixedLongBetterNormalTied:FrictionShe.saltBurstFinal.bitWatery message:FrictionShe.saltBurstFinal.icelandicDustInvokeUsesDefinedPort completion:nil];
        return;
    }
    if (self.duplexFitTextField.text.dogPipeSense) {
        [ItsAlertView hellmanPrefixedLongBetterNormalTied:FrictionShe.saltBurstFinal.bitWatery message:FrictionShe.saltBurstFinal.weeklyRespectsProcessesLegacyStrip completion:nil];
        return;
    }
    if (self.diagnoseBurstTextField.text.length < FrictionShe.headphoneMay.whiteOptTwo) {
        [ItsAlertView hellmanPrefixedLongBetterNormalTied:FrictionShe.saltBurstFinal.bitWatery message:FrictionShe.saltBurstFinal.koreanUnfocusedWatchHandlingEggRenewal completion:nil];
        return;
    }
    NSString *arbitraryCode = self.appearAloneTextField.pintCostIllMid;
    NSString *pickBagThat = self.appearAloneTextField.vitaminProvideDecimalCapNumbers;
    if ([self.buddhistAgent respondsToSelector:@selector(imageUnboundedSlopeBecomeScriptsLayoutLast:code:dateCode:seeKey:completion:)]) {
        [BaseLookupView mergeMoleFeetWindow];
        [self.buddhistAgent imageUnboundedSlopeBecomeScriptsLayoutLast:pickBagThat code:self.duplexFitTextField.text dateCode:arbitraryCode seeKey:self.diagnoseBurstTextField.text completion:^(id object) {
            [BaseLookupView adoptPickSlantResolvedEntityWindow];
            [PanToast warnVerify:FrictionShe.saltBurstFinal.vendorMegabitsAwakeRankFlatness];
            if (object) {
                [self.snowContainDelegate outResourcesToolLappishBusWithName:object darkOutputsPassword:self.diagnoseBurstTextField.text];
                [self canonicalBuildSubmitEffectiveKeysAction:nil];
            }
        }];
    }
}

- (void)dealloc {
    [self.renewRareButton somaliJobPartialMissingPreset];
}
@end
