






#import "TouchAutoViewController.h"
#import "SpaAlienOldButton.h"
#import "ChatBinPutCertViewController.h"
#import "TenToast.h"
#import "SheBurnPlanLabel.h"
#import "WhileMeanTextField.h"
#import "NSString+ArtBeacon.h"

@interface TouchAutoViewController ()

@property (nonatomic, strong) WhileMeanTextField *mealDomainsTextField;
@property (nonatomic, strong) UITextField *repairMapTextField;
@property (nonatomic, strong) SpaAlienOldButton *draftSnapButton;
@property (nonatomic,strong) SheBurnPlanLabel *itsRoleWatchLabel;

@end

@implementation TouchAutoViewController

- (SpaAlienOldButton *)draftSnapButton {
    if (!_draftSnapButton) {
        _draftSnapButton = [[SpaAlienOldButton alloc] init];
    }
    return _draftSnapButton;
}

- (SheBurnPlanLabel *)itsRoleWatchLabel {
    if (!_itsRoleWatchLabel) {
        _itsRoleWatchLabel = [SheBurnPlanLabel concertRandomLabel:NO];
    }
    return _itsRoleWatchLabel;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.mealDomainsTextField = [[WhileMeanTextField alloc] initWithController:self];
    [self.view addSubview:self.mealDomainsTextField];
    [self.mealDomainsTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(BadgeSunIcy.greekBlueArt.effortHexTap);
        make.left.mas_equalTo(BadgeSunIcy.greekBlueArt.restoresCity);
        make.right.mas_equalTo(-BadgeSunIcy.greekBlueArt.restoresCity);
        make.height.mas_equalTo(BadgeSunIcy.greekBlueArt.muteEmailTab);
    }];
    
    
    self.repairMapTextField = [BadgeSunIcy exceedsExplicitKitSegmentedAdvisedEnhanceCode];
    [self.view addSubview:self.repairMapTextField];
    [self.repairMapTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.mealDomainsTextField.mas_bottom).offset(BadgeSunIcy.greekBlueArt.groupedMolar);
        make.left.mas_equalTo(BadgeSunIcy.greekBlueArt.restoresCity);
        make.height.mas_equalTo(BadgeSunIcy.greekBlueArt.muteEmailTab);
    }];
    
    spaPlan(self);
    self.draftSnapButton.firstIdiomNowAction = ^{
        distorted(self);
        NSString *slabClickCode = self.mealDomainsTextField.fullStoneImage;
        NSString *symptomDate = self.mealDomainsTextField.parameterReuseEngravedKinContained;
        if (self.mealDomainsTextField.mealDomainsTextField.text.chainPoolTop) {
            [self.draftSnapButton fiberSubscriptArbiterHundredsParagraph];
            [TagAlertView schoolSerbianIllInstallsMagentaToo:BadgeSunIcy.lastCaretReply.renameEra message:BadgeSunIcy.lastCaretReply.farWhoManLongCutoffEra completion:nil];
            return;
        }
        if ([self.youInsulinHis respondsToSelector:@selector(unwindingFutureOxygenRadixReservedTomorrowObservingType:bitHeadAuto:barsCode:completion:)]) {
            [DarwinThatView putAreTextualWindow];
            [self.youInsulinHis unwindingFutureOxygenRadixReservedTomorrowObservingType:BadgeSunIcy.greekBlueArt.filterRadioBengaliBitmapHash bitHeadAuto:symptomDate barsCode:slabClickCode completion:^(id object) {
                [DarwinThatView unboundTamilMobilePhaseAdditionWindow];
                if ([object boolValue]) {
                    [TenToast sparseFlag:BadgeSunIcy.lastCaretReply.croppingExtentsStreamedSilencedFirstThiaminCode];
                }else {
                    [self.draftSnapButton fiberSubscriptArbiterHundredsParagraph];
                }
            }];
        }
    };
    [self.view addSubview:self.draftSnapButton];
    [self.draftSnapButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.repairMapTextField);
        make.height.equalTo(self.repairMapTextField);
        make.right.equalTo(self.mealDomainsTextField);
        
        make.width.mas_equalTo(self.draftSnapButton.titleLabel.intrinsicContentSize.width + BadgeSunIcy.greekBlueArt.echoSobAxial);
    }];
    
    [self.repairMapTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self.draftSnapButton.mas_left).offset(-BadgeSunIcy.greekBlueArt.ornamentShow);
    }];
    
    
    UIButton *expandingTreeButton = [BadgeSunIcy birthConductorWeekendDirectoryExtensionColor:BadgeSunIcy.lastCaretReply.detachDarkPacePreparingAuthorsMain];
    [expandingTreeButton addTarget:self action:@selector(visitEyeMindfulAssertDismissedAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:expandingTreeButton];
    [expandingTreeButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.repairMapTextField.mas_bottom).offset(BadgeSunIcy.greekBlueArt.groupedMolar);
        make.left.mas_equalTo(BadgeSunIcy.greekBlueArt.restoresCity);
        make.right.mas_equalTo(-BadgeSunIcy.greekBlueArt.restoresCity);
        make.height.mas_equalTo(BadgeSunIcy.greekBlueArt.pintBitError);
    }];
    
    [self.view addSubview:self.itsRoleWatchLabel];
    [self.itsRoleWatchLabel setSoftballDividerRearrangeCelsiusCollapsedHurricane:^{
        distorted(self);
        [self insertionLastAudiblePasswordDispatchReversedAction];
    }];
    [self.itsRoleWatchLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(-BadgeSunIcy.greekBlueArt.tintBlinkPan);
        make.left.mas_equalTo(BadgeSunIcy.greekBlueArt.talkCountSub);
        make.right.mas_equalTo(-BadgeSunIcy.greekBlueArt.talkCountSub);
    }];
}

- (void)visitEyeMindfulAssertDismissedAction:(UIButton *)sender {
    if (self.mealDomainsTextField.mealDomainsTextField.text.chainPoolTop) {
        [TagAlertView schoolSerbianIllInstallsMagentaToo:BadgeSunIcy.lastCaretReply.renameEra message:BadgeSunIcy.lastCaretReply.farWhoManLongCutoffEra completion:nil];
        return;
    }
    if (self.repairMapTextField.text.chainPoolTop) {
        [TagAlertView schoolSerbianIllInstallsMagentaToo:BadgeSunIcy.lastCaretReply.renameEra message:BadgeSunIcy.lastCaretReply.interruptArchiveBackwardsSpanArcade completion:nil];
        return;
    }
    NSString *slabClickCode = self.mealDomainsTextField.fullStoneImage;
    NSString *symptomDate = self.mealDomainsTextField.parameterReuseEngravedKinContained;
    if ([self.youInsulinHis respondsToSelector:@selector(whoHyphenSunPresenceExtentsRareExpectingDocuments:code:barsCode:completion:)]) {
        [DarwinThatView putAreTextualWindow];
        [self.youInsulinHis whoHyphenSunPresenceExtentsRareExpectingDocuments:symptomDate code:self.repairMapTextField.text barsCode:slabClickCode completion:^(id object) {
            [DarwinThatView unboundTamilMobilePhaseAdditionWindow];
        }];
    }
}


- (void)insertionLastAudiblePasswordDispatchReversedAction {
    ChatBinPutCertViewController *icyUrgentBit = [ChatBinPutCertViewController new];
    icyUrgentBit.barsPubLink = @(YES);
    icyUrgentBit.youInsulinHis = self.youInsulinHis;
    [icyUrgentBit setRawSubmitFinalizeNativeSafety:^(BOOL result) {
        self.itsRoleWatchLabel.jobBadPopBrief = result;
    }];
    [self.navigationController pushViewController:icyUrgentBit animated:NO];
}

- (void)dealloc {
    [self.draftSnapButton fiberSubscriptArbiterHundredsParagraph];
}
@end
