






#import "CelsiusInvertViewController.h"
#import "HueFunAlphaButton.h"
#import "OffToast.h"
#import "UpsideMaxTextField.h"
#import "NSString+SlowReset.h"
@import WebKit;

@interface CelsiusInvertViewController ()

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

@end

@implementation CelsiusInvertViewController


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

- (void)viewDidLoad {
    [super viewDidLoad];
    self.maskHeaderButton.hidden = [self.ownAutoGolf[0] boolValue];
    
    UILabel *artLabel = [InvertPinch contactsFarUnsavedAxesTrial:InvertPinch.knowSunTalkHas.levelStylisticInferExpansionItalicsRepeat];
    artLabel.numberOfLines = 0;
    [self.view addSubview:artLabel];
    [artLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(InvertPinch.didThousands.illBitNepali);
        make.left.mas_equalTo(InvertPinch.didThousands.illBitNepali);
        make.right.mas_equalTo(-InvertPinch.didThousands.illBitNepali);
    }];
    
    
    self.spaEggColorTextField = [[UpsideMaxTextField alloc] initWithController:self];
    [self.view addSubview:self.spaEggColorTextField];
    [self.spaEggColorTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(artLabel.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.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.icyMergeHash);
        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.artsMarkSubCar 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 *radioCubeButton = [InvertPinch greekSampleAffineEpisodeDownColor:InvertPinch.knowSunTalkHas.textReadSafariReceivedHigher];
    [radioCubeButton addTarget:self action:@selector(audioLexiconPullAssameseHandleAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:radioCubeButton];
    [radioCubeButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.kinSodiumTextField.mas_bottom).offset(InvertPinch.didThousands.icyMergeHash);
        make.left.mas_equalTo(InvertPinch.didThousands.redoAddition);
        make.right.mas_equalTo(-InvertPinch.didThousands.redoAddition);
        make.height.mas_equalTo(InvertPinch.didThousands.jouleIterate);
    }];
}

- (void)audioLexiconPullAssameseHandleAction:(id)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(slashesUploadedAndCapacityOpaqueDrizzleCoercion:code:leftCode:completion:)]) {
        [YouMetricsView smartNotPieceWindow];
        [self.swipeShutdown slashesUploadedAndCapacityOpaqueDrizzleCoercion:produceDark code:self.kinSodiumTextField.text leftCode:cellphoneCode completion:^(id object) {
            [YouMetricsView beaconsRunningWasPastePutWindow];
            if ([object boolValue]) {
                [[UploadWhoManager shared] fastHueArteryDriveReversesCarriageViewController:self.navigationController];
                [OffToast malteseSon:InvertPinch.knowSunTalkHas.inviteYearRevealedStarNorthAlbanian];
                if ([self.ownAutoGolf[1] isKindOfClass:[WKWebView class]]) {
                    WKWebView *rowTagsLoad = (WKWebView *)self.ownAutoGolf[1];
                    [rowTagsLoad reload];
                }
            }
        }];
    }
}

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

@end
