






#import "InferSnapViewController.h"
#import "MantissaWasButton.h"
#import "GainClipPinCanViewController.h"
#import "OptToast.h"
#import "InfiniteMixLabel.h"
#import "SubscriptTextField.h"
#import "NSString+ExitsText.h"

@interface InferSnapViewController ()

@property (nonatomic, strong) SubscriptTextField *arrayDeviceTextField;
@property (nonatomic, strong) UITextField *saveBeginTextField;
@property (nonatomic, strong) MantissaWasButton *nonceMakeButton;
@property (nonatomic,strong) InfiniteMixLabel *carLinearOddLabel;

@end

@implementation InferSnapViewController

- (MantissaWasButton *)nonceMakeButton {
    if (!_nonceMakeButton) {
        _nonceMakeButton = [[MantissaWasButton alloc] init];
    }
    return _nonceMakeButton;
}

- (InfiniteMixLabel *)carLinearOddLabel {
    if (!_carLinearOddLabel) {
        _carLinearOddLabel = [InfiniteMixLabel hueDayFactHowLabel:NO];
    }
    return _carLinearOddLabel;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.arrayDeviceTextField = [[SubscriptTextField alloc] initWithController:self];
    [self.view addSubview:self.arrayDeviceTextField];
    [self.arrayDeviceTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(SkinMeanYet.reloadRawDay.wetRatioWait);
        make.left.mas_equalTo(SkinMeanYet.reloadRawDay.appearsEvent);
        make.right.mas_equalTo(-SkinMeanYet.reloadRawDay.appearsEvent);
        make.height.mas_equalTo(SkinMeanYet.reloadRawDay.alphabetCert);
    }];
    
    
    self.saveBeginTextField = [SkinMeanYet oddMaterialReviewExtensionExtrasTrademarkCode];
    [self.view addSubview:self.saveBeginTextField];
    [self.saveBeginTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.arrayDeviceTextField.mas_bottom).offset(SkinMeanYet.reloadRawDay.bigIncluding);
        make.left.mas_equalTo(SkinMeanYet.reloadRawDay.appearsEvent);
        make.height.mas_equalTo(SkinMeanYet.reloadRawDay.alphabetCert);
    }];
    
    bondIcy(self);
    self.nonceMakeButton.afterTapDutchAction = ^{
        askArtery(self);
        NSString *noiseTreeCode = self.arrayDeviceTextField.clickSnapTrial;
        NSString *mileCleared = self.arrayDeviceTextField.intentInfinityChapterMovieFound;
        if (self.arrayDeviceTextField.arrayDeviceTextField.text.fourApplyMax) {
            [self.nonceMakeButton elevationAdvisoryShortcutsTradRemainder];
            [CapAlertView farMetabolicStrictlyThresholdEraEither:SkinMeanYet.faxHoldTakePin.mainSurge message:SkinMeanYet.faxHoldTakePin.unloadImplicitAnimatedLimitedFeedbackUtilities completion:nil];
            return;
        }
        if ([self.shearAddApply respondsToSelector:@selector(waxAbsentTooInternetCookieDuplicateSubtitleType:makerRunIts:sentCode:completion:)]) {
            [AmpereWalkView heartAlertIcyWindow];
            [self.shearAddApply waxAbsentTooInternetCookieDuplicateSubtitleType:SkinMeanYet.reloadRawDay.previousConstructSingleWaxEntropy makerRunIts:mileCleared sentCode:noiseTreeCode completion:^(id object) {
                [AmpereWalkView sharpenFiveHelpersSubtractKeyWindow];
                if ([object boolValue]) {
                    [OptToast lexicalThe:SkinMeanYet.faxHoldTakePin.performsSpeakAlbumPhaseKilowattsMaxCode];
                }else {
                    [self.nonceMakeButton elevationAdvisoryShortcutsTradRemainder];
                }
            }];
        }
    };
    [self.view addSubview:self.nonceMakeButton];
    [self.nonceMakeButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.saveBeginTextField);
        make.height.equalTo(self.saveBeginTextField);
        make.left.equalTo(self.saveBeginTextField.mas_right).offset(SkinMeanYet.reloadRawDay.replacedMain);
        make.right.equalTo(self.arrayDeviceTextField);
    }];
    
    
    [self.nonceMakeButton setContentHuggingPriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
    
    
    UIButton *wonSpaCaseArtButton = [SkinMeanYet floaterJobAggregateImpactMattingColor:SkinMeanYet.faxHoldTakePin.topArbitraryClangTrackRestoringSelectors];
    [wonSpaCaseArtButton addTarget:self action:@selector(wrongControlsSymptomRenewForAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:wonSpaCaseArtButton];
    [wonSpaCaseArtButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.saveBeginTextField.mas_bottom).offset(SkinMeanYet.reloadRawDay.bigIncluding);
        make.left.mas_equalTo(SkinMeanYet.reloadRawDay.appearsEvent);
        make.right.mas_equalTo(-SkinMeanYet.reloadRawDay.appearsEvent);
        make.height.mas_equalTo(SkinMeanYet.reloadRawDay.getPatchFull);
    }];
    
    [self.view addSubview:self.carLinearOddLabel];
    [self.carLinearOddLabel setNotePinLetterKoreanLambdaCenter:^{
        askArtery(self);
        [self mandarinDownloadSignalChatRecognizeInsetAction];
    }];
    [self.carLinearOddLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(-SkinMeanYet.reloadRawDay.capsHexMiter);
        make.left.mas_equalTo(SkinMeanYet.reloadRawDay.takeSumBlock);
        make.right.mas_equalTo(-SkinMeanYet.reloadRawDay.takeSumBlock);
    }];
}

- (void)wrongControlsSymptomRenewForAction:(UIButton *)sender {
    if (self.arrayDeviceTextField.arrayDeviceTextField.text.fourApplyMax) {
        [CapAlertView farMetabolicStrictlyThresholdEraEither:SkinMeanYet.faxHoldTakePin.mainSurge message:SkinMeanYet.faxHoldTakePin.unloadImplicitAnimatedLimitedFeedbackUtilities completion:nil];
        return;
    }
    if (self.saveBeginTextField.text.fourApplyMax) {
        [CapAlertView farMetabolicStrictlyThresholdEraEither:SkinMeanYet.faxHoldTakePin.mainSurge message:SkinMeanYet.faxHoldTakePin.retryCandidateLookMonthTransient completion:nil];
        return;
    }
    NSString *noiseTreeCode = self.arrayDeviceTextField.clickSnapTrial;
    NSString *mileCleared = self.arrayDeviceTextField.intentInfinityChapterMovieFound;
    if ([self.shearAddApply respondsToSelector:@selector(submittedExpectingAccessingCampaignDescendedFarSerialObserving:code:sentCode:completion:)]) {
        [AmpereWalkView heartAlertIcyWindow];
        [self.shearAddApply submittedExpectingAccessingCampaignDescendedFarSerialObserving:mileCleared code:self.saveBeginTextField.text sentCode:noiseTreeCode completion:^(id object) {
            [AmpereWalkView sharpenFiveHelpersSubtractKeyWindow];
        }];
    }
}


- (void)mandarinDownloadSignalChatRecognizeInsetAction {
    GainClipPinCanViewController *resultsWatch = [GainClipPinCanViewController new];
    resultsWatch.mixFatOffer = @(YES);
    resultsWatch.shearAddApply = self.shearAddApply;
    [resultsWatch setSubgroupsClimbingGujaratiCancelsSun:^(BOOL result) {
        self.carLinearOddLabel.eraRightUseOne = result;
    }];
    [self.navigationController pushViewController:resultsWatch animated:NO];
}

- (void)dealloc {
    [self.nonceMakeButton elevationAdvisoryShortcutsTradRemainder];
}
@end
