






#import "MinderSandboxViewController.h"
#import "ExtendDatumButton.h"
#import "PanToast.h"
#import "MouthEditTextField.h"
#import "NSString+OddArmpit.h"
@import WebKit;

@interface MinderSandboxViewController ()

@property (nonatomic, strong) MouthEditTextField *wetBurnLinkTextField;
@property (nonatomic, strong) UITextField *reduceMixTextField;
@property (nonatomic, strong) ExtendDatumButton *boxSenderButton;

@end

@implementation MinderSandboxViewController


- (ExtendDatumButton *)boxSenderButton {
    if (!_boxSenderButton) {
        _boxSenderButton = [[ExtendDatumButton alloc] init];
    }
    return _boxSenderButton;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.coverStandButton.hidden = [self.givenBarRet[0] boolValue];
    
    UILabel *jobLabel = [BinFaxEight uploadedConditionStaleCityBig:BinFaxEight.signRoomModify.starBackwardSoccerSlabPrimeCentering];
    jobLabel.numberOfLines = 0;
    [self.view addSubview:jobLabel];
    [jobLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(BinFaxEight.icyAboutDrum.croppingHand);
        make.left.mas_equalTo(BinFaxEight.icyAboutDrum.croppingHand);
        make.right.mas_equalTo(-BinFaxEight.icyAboutDrum.croppingHand);
    }];
    
    
    self.wetBurnLinkTextField = [[MouthEditTextField alloc] initWithController:self];
    [self.view addSubview:self.wetBurnLinkTextField];
    [self.wetBurnLinkTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(jobLabel.mas_bottom).offset(BinFaxEight.icyAboutDrum.masterMinCap);
        make.left.mas_equalTo(BinFaxEight.icyAboutDrum.substringSaw);
        make.right.mas_equalTo(-BinFaxEight.icyAboutDrum.substringSaw);
        make.height.mas_equalTo(BinFaxEight.icyAboutDrum.containerHas);
    }];
    
    
    self.reduceMixTextField = [BinFaxEight paymentsSolvePicturesEnglishExactSessionCode];
    [self.view addSubview:self.reduceMixTextField];
    [self.reduceMixTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.wetBurnLinkTextField.mas_bottom).offset(BinFaxEight.icyAboutDrum.ownEmbedding);
        make.left.mas_equalTo(BinFaxEight.icyAboutDrum.substringSaw);
        make.height.mas_equalTo(BinFaxEight.icyAboutDrum.containerHas);
    }];
    
    formRow(self);
    self.boxSenderButton.canonBagBrownAction = ^{
        restExits(self);
        NSString *redoneArmCode = self.wetBurnLinkTextField.errorTagOldIcy;
        NSString *tallNamePop = self.wetBurnLinkTextField.speakerBlueNotBarNegotiate;
        if (self.wetBurnLinkTextField.wetBurnLinkTextField.text.funExclusive) {
            [self.boxSenderButton manAirPartialLoopsViability];
            [WonAlertView terminalRetryCopperBookmarksRemainingIdle:BinFaxEight.signRoomModify.capAppend message:BinFaxEight.signRoomModify.designerYoungestSplatParticlePresentedBecome completion:nil];
            return;
        }
        if ([self.draftPieceAre respondsToSelector:@selector(pauseReasonHoursFilterTwentyExistThirdType:capTextured:textCode:completion:)]) {
            [DoneBasqueView makeNeedBreakWindow];
            [self.draftPieceAre pauseReasonHoursFilterTwentyExistThirdType:BinFaxEight.icyAboutDrum.wayPutRetThird capTextured:tallNamePop textCode:redoneArmCode completion:^(id object) {
                [DoneBasqueView literSpanSamplerMeasuredPackWindow];
                if ([object boolValue]) {
                    [PanToast ownOurTake:BinFaxEight.signRoomModify.addressCloseQueryingCurlBezelFocusCode];
                }else {
                    [self.boxSenderButton manAirPartialLoopsViability];
                }
            }];
        }
    };
    [self.view addSubview:self.boxSenderButton];
    [self.boxSenderButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.reduceMixTextField);
        make.height.equalTo(self.reduceMixTextField);
        make.right.equalTo(self.wetBurnLinkTextField);
        
        make.width.mas_equalTo(self.boxSenderButton.titleLabel.intrinsicContentSize.width + BinFaxEight.icyAboutDrum.croppingHand);
    }];
    
    [self.reduceMixTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self.boxSenderButton.mas_left).offset(-BinFaxEight.icyAboutDrum.pubAlignBeat);
    }];
    
    
    UIButton *cupAttachButton = [BinFaxEight ratingsIndigoNumeratorRenameBrokenColor:BinFaxEight.signRoomModify.maxArmourHasHostMay];
    [cupAttachButton addTarget:self action:@selector(pubPopPhaseMastersIncludingAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:cupAttachButton];
    [cupAttachButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.reduceMixTextField.mas_bottom).offset(BinFaxEight.icyAboutDrum.ownEmbedding);
        make.left.mas_equalTo(BinFaxEight.icyAboutDrum.substringSaw);
        make.right.mas_equalTo(-BinFaxEight.icyAboutDrum.substringSaw);
        make.height.mas_equalTo(BinFaxEight.icyAboutDrum.barsMightBig);
    }];
}

- (void)pubPopPhaseMastersIncludingAction:(id)sender {
    if (self.wetBurnLinkTextField.wetBurnLinkTextField.text.funExclusive) {
        [WonAlertView terminalRetryCopperBookmarksRemainingIdle:BinFaxEight.signRoomModify.capAppend message:BinFaxEight.signRoomModify.designerYoungestSplatParticlePresentedBecome completion:nil];
        return;
    }
    if (self.reduceMixTextField.text.funExclusive) {
        [WonAlertView terminalRetryCopperBookmarksRemainingIdle:BinFaxEight.signRoomModify.capAppend message:BinFaxEight.signRoomModify.laterConverterPenChooseTags completion:nil];
        return;
    }
    NSString *redoneArmCode = self.wetBurnLinkTextField.errorTagOldIcy;
    NSString *tallNamePop = self.wetBurnLinkTextField.speakerBlueNotBarNegotiate;
    if ([self.draftPieceAre respondsToSelector:@selector(calciumSquaredQuechuaCarrierDomainFrameSun:code:textCode:completion:)]) {
        [DoneBasqueView makeNeedBreakWindow];
        [self.draftPieceAre calciumSquaredQuechuaCarrierDomainFrameSun:tallNamePop code:self.reduceMixTextField.text textCode:redoneArmCode completion:^(id object) {
            [DoneBasqueView literSpanSamplerMeasuredPackWindow];
            if ([object boolValue]) {
                [[BalticFixManager shared] eyeScaleGeometryBrownStableForceViewController:self.navigationController];
                [PanToast ownOurTake:BinFaxEight.signRoomModify.additionFeatureEntryArabicRevertingReserved];
                if ([self.givenBarRet[1] isKindOfClass:[WKWebView class]]) {
                    WKWebView *encodingAdd = (WKWebView *)self.givenBarRet[1];
                    [encodingAdd reload];
                }
            }
        }];
    }
}

- (void)dealloc {
    [self.boxSenderButton manAirPartialLoopsViability];
}

@end
