






#import "RankPasteViewController.h"
#import "HueFunAlphaButton.h"
#import "FunkFitTapWorkViewController.h"
#import "OffToast.h"
#import "DryPairKnowLabel.h"
#import "UpsideMaxTextField.h"
#import "NSString+SlowReset.h"

@interface RankPasteViewController ()

@property (nonatomic, strong) UpsideMaxTextField *spaEggColorTextField;
@property (nonatomic, strong) UITextField *kinSodiumTextField;
@property (nonatomic, strong) HueFunAlphaButton *mathReadyButton;
@property (nonatomic,strong) DryPairKnowLabel *acrossFormatLabel;

@end

@implementation RankPasteViewController

- (HueFunAlphaButton *)mathReadyButton {
    if (!_mathReadyButton) {
        _mathReadyButton = [[HueFunAlphaButton alloc] init];
    }
    return _mathReadyButton;
}

- (DryPairKnowLabel *)acrossFormatLabel {
    if (!_acrossFormatLabel) {
        _acrossFormatLabel = [DryPairKnowLabel storeSpaExitsLabel:NO];
    }
    return _acrossFormatLabel;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.spaEggColorTextField = [[UpsideMaxTextField alloc] initWithController:self];
    [self.view addSubview:self.spaEggColorTextField];
    [self.spaEggColorTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(InvertPinch.didThousands.lambdaCourse);
        make.left.mas_equalTo(InvertPinch.didThousands.redoAddition);
        make.right.mas_equalTo(-InvertPinch.didThousands.redoAddition);
        make.height.mas_equalTo(InvertPinch.didThousands.wordMagicBag);
    }];
    
    
    self.kinSodiumTextField = [InvertPinch kilowattCopperBypassHintMoreOwnCode];
    [self.view addSubview:self.kinSodiumTextField];
    [self.kinSodiumTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.spaEggColorTextField.mas_bottom).offset(InvertPinch.didThousands.lexiconTilde);
        make.left.mas_equalTo(InvertPinch.didThousands.redoAddition);
        make.height.mas_equalTo(InvertPinch.didThousands.wordMagicBag);
    }];
    
    itsBeen(self);
    self.mathReadyButton.greenFatalSawAction = ^{
        leastMail(self);
        NSString *cellphoneCode = self.spaEggColorTextField.suchTaskAspect;
        NSString *produceDark = self.spaEggColorTextField.pongPlaneBurstRegularSlab;
        if (self.spaEggColorTextField.spaEggColorTextField.text.theSiteBuilt) {
            [self.mathReadyButton previewsPresenterCupLaunchingDecrement];
            [BigAlertView clickPatternsRegionUnloadPopSemantic:InvertPinch.knowSunTalkHas.pasteWide message:InvertPinch.knowSunTalkHas.drumPendingResolvedEscapeOpenOld completion:nil];
            return;
        }
        if ([self.swipeShutdown respondsToSelector:@selector(eulerBinaryRomanAuditedEastExclusionSubmittedType:boxGeorgian:leftCode:completion:)]) {
            [YouMetricsView smartNotPieceWindow];
            [self.swipeShutdown eulerBinaryRomanAuditedEastExclusionSubmittedType:InvertPinch.didThousands.authorityChinaMasteringYetOdd boxGeorgian:produceDark leftCode:cellphoneCode completion:^(id object) {
                [YouMetricsView beaconsRunningWasPastePutWindow];
                if ([object boolValue]) {
                    [OffToast malteseSon:InvertPinch.knowSunTalkHas.paragraphEndManagersExclusiveBevelPromisedCode];
                }else {
                    [self.mathReadyButton previewsPresenterCupLaunchingDecrement];
                }
            }];
        }
    };
    [self.view addSubview:self.mathReadyButton];
    [self.mathReadyButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.kinSodiumTextField);
        make.height.equalTo(self.kinSodiumTextField);
        make.left.equalTo(self.kinSodiumTextField.mas_right).offset(InvertPinch.didThousands.stereoPartly);
        make.right.equalTo(self.spaEggColorTextField);
    }];
    
    
    [self.mathReadyButton setContentHuggingPriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
    
    
    UIButton *sinParseBreakButton = [InvertPinch greekSampleAffineEpisodeDownColor:InvertPinch.knowSunTalkHas.mouseOwnLookTurkmenWaxAligned];
    [sinParseBreakButton addTarget:self action:@selector(armRespondsShearTrustFoundAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:sinParseBreakButton];
    [sinParseBreakButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.kinSodiumTextField.mas_bottom).offset(InvertPinch.didThousands.lexiconTilde);
        make.left.mas_equalTo(InvertPinch.didThousands.redoAddition);
        make.right.mas_equalTo(-InvertPinch.didThousands.redoAddition);
        make.height.mas_equalTo(InvertPinch.didThousands.jouleIterate);
    }];
    
    [self.view addSubview:self.acrossFormatLabel];
    [self.acrossFormatLabel setPeakSeeAloneEncodeShowReal:^{
        leastMail(self);
        [self whoAdoptPinHoursYahooLeastAction];
    }];
    [self.acrossFormatLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(-InvertPinch.didThousands.topIcyOption);
        make.left.mas_equalTo(InvertPinch.didThousands.penDiacritic);
        make.right.mas_equalTo(-InvertPinch.didThousands.penDiacritic);
    }];
}

- (void)armRespondsShearTrustFoundAction:(UIButton *)sender {
    if (self.spaEggColorTextField.spaEggColorTextField.text.theSiteBuilt) {
        [BigAlertView clickPatternsRegionUnloadPopSemantic:InvertPinch.knowSunTalkHas.pasteWide message:InvertPinch.knowSunTalkHas.drumPendingResolvedEscapeOpenOld completion:nil];
        return;
    }
    if (self.kinSodiumTextField.text.theSiteBuilt) {
        [BigAlertView clickPatternsRegionUnloadPopSemantic:InvertPinch.knowSunTalkHas.pasteWide message:InvertPinch.knowSunTalkHas.postalCutSquaresRevertFork completion:nil];
        return;
    }
    NSString *cellphoneCode = self.spaEggColorTextField.suchTaskAspect;
    NSString *produceDark = self.spaEggColorTextField.pongPlaneBurstRegularSlab;
    if ([self.swipeShutdown respondsToSelector:@selector(otherValuePashtoVolumeLockGaussianClinicalTake:code:leftCode:completion:)]) {
        [YouMetricsView smartNotPieceWindow];
        [self.swipeShutdown otherValuePashtoVolumeLockGaussianClinicalTake:produceDark code:self.kinSodiumTextField.text leftCode:cellphoneCode completion:^(id object) {
            [YouMetricsView beaconsRunningWasPastePutWindow];
        }];
    }
}


- (void)whoAdoptPinHoursYahooLeastAction {
    FunkFitTapWorkViewController *superiorsLog = [FunkFitTapWorkViewController new];
    superiorsLog.ownAutoGolf = @(YES);
    superiorsLog.swipeShutdown = self.swipeShutdown;
    [superiorsLog setDismissalCurlAdvisoryDuplicateIndex:^(BOOL result) {
        self.acrossFormatLabel.twoPanStoneTap = result;
    }];
    [self.navigationController pushViewController:superiorsLog animated:NO];
}

- (void)dealloc {
    [self.mathReadyButton previewsPresenterCupLaunchingDecrement];
}
@end
