






#import "SunSquashViewController.h"
#import "DescentRainButton.h"
#import "AreaPatchReadyViewController.h"
#import "AndToast.h"
#import "EarlyIcyDryLabel.h"
#import "InlandTheTextField.h"
#import "NSString+Receiving.h"

@interface SunSquashViewController ()

@property (nonatomic, strong) InlandTheTextField *winHuePlainTextField;
@property (nonatomic, strong) UITextField *execTrustTextField;
@property (nonatomic, strong) DescentRainButton *cathedralButton;
@property (nonatomic,strong) EarlyIcyDryLabel *youTurnBloodLabel;

@end

@implementation SunSquashViewController

- (DescentRainButton *)cathedralButton {
    if (!_cathedralButton) {
        _cathedralButton = [[DescentRainButton alloc] init];
    }
    return _cathedralButton;
}

- (EarlyIcyDryLabel *)youTurnBloodLabel {
    if (!_youTurnBloodLabel) {
        _youTurnBloodLabel = [EarlyIcyDryLabel rearTrashRearLabel:NO];
    }
    return _youTurnBloodLabel;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.winHuePlainTextField = [[InlandTheTextField alloc] initWithController:self];
    [self.view addSubview:self.winHuePlainTextField];
    [self.winHuePlainTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(LambdaPatch.faxChildBend.ouncesUpdate);
        make.left.mas_equalTo(LambdaPatch.faxChildBend.mixFatExtent);
        make.right.mas_equalTo(-LambdaPatch.faxChildBend.mixFatExtent);
        make.height.mas_equalTo(LambdaPatch.faxChildBend.armPrintable);
    }];
    
    
    self.execTrustTextField = [LambdaPatch seeHandleTripleWalkingBecomePhonogramCode];
    [self.view addSubview:self.execTrustTextField];
    [self.execTrustTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.winHuePlainTextField.mas_bottom).offset(LambdaPatch.faxChildBend.maxCropRetry);
        make.left.mas_equalTo(LambdaPatch.faxChildBend.mixFatExtent);
        make.height.mas_equalTo(LambdaPatch.faxChildBend.armPrintable);
    }];
    
    seekJob(self);
    self.cathedralButton.jobTagBookEggAction = ^{
        tiedMouse(self);
        NSString *publicAgeCode = self.winHuePlainTextField.noiseTailToday;
        NSString *tagBeganSun = self.winHuePlainTextField.declinedNumberMillTalkRet;
        if (self.winHuePlainTextField.winHuePlainTextField.text.whoPopManual) {
            [self.cathedralButton cancelledBleedTitleFocusingExclusive];
            [GetAlertView collapsesButterflyCapturesKernelsPairInvite:LambdaPatch.returnThatMode.alertUsed message:LambdaPatch.returnThatMode.unlockedIndentSmallElderExclusiveUkrainian completion:nil];
            return;
        }
        if ([self.loudPipeEmail respondsToSelector:@selector(scannedInvisibleRedRecordingBufferedOriginsRefusedType:lessFarHall:loveCode:completion:)]) {
            [HalfTapOddView kinAdobeEntryWindow];
            [self.loudPipeEmail scannedInvisibleRedRecordingBufferedOriginsRefusedType:LambdaPatch.faxChildBend.revealPreventSeleniumTotalExported lessFarHall:tagBeganSun loveCode:publicAgeCode completion:^(id object) {
                [HalfTapOddView badTremorTabChangingFailureWindow];
                if ([object boolValue]) {
                    [AndToast poloTarget:LambdaPatch.returnThatMode.midMinGaelicFetchedCompoundCarbonCode];
                }else {
                    [self.cathedralButton cancelledBleedTitleFocusingExclusive];
                }
            }];
        }
    };
    [self.view addSubview:self.cathedralButton];
    [self.cathedralButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.execTrustTextField);
        make.height.equalTo(self.execTrustTextField);
        make.right.equalTo(self.winHuePlainTextField);
        
        make.width.mas_equalTo(self.cathedralButton.titleLabel.intrinsicContentSize.width + LambdaPatch.faxChildBend.formScoreKey);
    }];
    
    [self.execTrustTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self.cathedralButton.mas_left).offset(-LambdaPatch.faxChildBend.netDigestAre);
    }];
    
    
    UIButton *manyEdgaCubicButton = [LambdaPatch keyOwnVowelFatFootColor:LambdaPatch.returnThatMode.minorMousePrinterTryLossPlate];
    [manyEdgaCubicButton addTarget:self action:@selector(flipDisappearBoxTransitSignatureAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:manyEdgaCubicButton];
    [manyEdgaCubicButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.execTrustTextField.mas_bottom).offset(LambdaPatch.faxChildBend.maxCropRetry);
        make.left.mas_equalTo(LambdaPatch.faxChildBend.mixFatExtent);
        make.right.mas_equalTo(-LambdaPatch.faxChildBend.mixFatExtent);
        make.height.mas_equalTo(LambdaPatch.faxChildBend.extendsDelay);
    }];
    
    [self.view addSubview:self.youTurnBloodLabel];
    [self.youTurnBloodLabel setSortKirghizUsedTrustedBitWith:^{
        tiedMouse(self);
        [self gopherChecksumAggregateFallbackNewsstandUsesAction];
    }];
    [self.youTurnBloodLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(-LambdaPatch.faxChildBend.notCloudSnow);
        make.left.mas_equalTo(LambdaPatch.faxChildBend.likeBeganFit);
        make.right.mas_equalTo(-LambdaPatch.faxChildBend.likeBeganFit);
    }];
}

- (void)flipDisappearBoxTransitSignatureAction:(UIButton *)sender {
    if (self.winHuePlainTextField.winHuePlainTextField.text.whoPopManual) {
        [GetAlertView collapsesButterflyCapturesKernelsPairInvite:LambdaPatch.returnThatMode.alertUsed message:LambdaPatch.returnThatMode.unlockedIndentSmallElderExclusiveUkrainian completion:nil];
        return;
    }
    if (self.execTrustTextField.text.whoPopManual) {
        [GetAlertView collapsesButterflyCapturesKernelsPairInvite:LambdaPatch.returnThatMode.alertUsed message:LambdaPatch.returnThatMode.resizeSlashesCornersUpscaleLocations completion:nil];
        return;
    }
    NSString *publicAgeCode = self.winHuePlainTextField.noiseTailToday;
    NSString *tagBeganSun = self.winHuePlainTextField.declinedNumberMillTalkRet;
    if ([self.loudPipeEmail respondsToSelector:@selector(cutCreatorInvisibleFourteenDeletingReaderOrangeSaw:code:loveCode:completion:)]) {
        [HalfTapOddView kinAdobeEntryWindow];
        [self.loudPipeEmail cutCreatorInvisibleFourteenDeletingReaderOrangeSaw:tagBeganSun code:self.execTrustTextField.text loveCode:publicAgeCode completion:^(id object) {
            [HalfTapOddView badTremorTabChangingFailureWindow];
        }];
    }
}


- (void)gopherChecksumAggregateFallbackNewsstandUsesAction {
    AreaPatchReadyViewController *maxGuestOnly = [AreaPatchReadyViewController new];
    maxGuestOnly.mostTipRest = @(YES);
    maxGuestOnly.loudPipeEmail = self.loudPipeEmail;
    [maxGuestOnly setFootnoteTransportCombineYouNotify:^(BOOL result) {
        self.youTurnBloodLabel.dateCurlDuplex = result;
    }];
    [self.navigationController pushViewController:maxGuestOnly animated:NO];
}

- (void)dealloc {
    [self.cathedralButton cancelledBleedTitleFocusingExclusive];
}
@end
