






#import "UnpluggedViewController.h"
#import "ExtendDatumButton.h"
#import "PanToast.h"
#import "MouthEditTextField.h"
#import "NSString+OddArmpit.h"

@interface UnpluggedViewController ()

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

@implementation UnpluggedViewController

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

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.wetBurnLinkTextField = [[MouthEditTextField alloc] initWithController:self];
    [self.view addSubview:self.wetBurnLinkTextField];
    [self.wetBurnLinkTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(BinFaxEight.icyAboutDrum.wrongOurWeek);
        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.howShakeSix);
        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.proxySendMarkForVersions 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);
    }];
    
    
    self.reductionGoalTextField = [BinFaxEight finalizeConflictsRequestUppercaseMeterPassword:YES];
    [self.view addSubview:self.reductionGoalTextField];
    [self.reductionGoalTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.reduceMixTextField.mas_bottom).offset(BinFaxEight.icyAboutDrum.howShakeSix);
        make.left.mas_equalTo(BinFaxEight.icyAboutDrum.substringSaw);
        make.right.mas_equalTo(-BinFaxEight.icyAboutDrum.substringSaw);
        make.height.mas_equalTo(BinFaxEight.icyAboutDrum.containerHas);
    }];
    UIButton *iconBitsButton = self.reductionGoalTextField.rightView.subviews.firstObject;
    [iconBitsButton addTarget:self action:@selector(boxIdiomExposeMomentLeadSpaHandler:) forControlEvents:(UIControlEventTouchUpInside)];
    
    
    UIButton *stormAcceptButton = [BinFaxEight ratingsIndigoNumeratorRenameBrokenColor:BinFaxEight.signRoomModify.unlockedSayKey];
    [stormAcceptButton addTarget:self action:@selector(operatorPulseRevertingSlowDictationAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:stormAcceptButton];
    [stormAcceptButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.reductionGoalTextField.mas_bottom).offset(BinFaxEight.icyAboutDrum.howShakeSix);
        make.left.mas_equalTo(BinFaxEight.icyAboutDrum.substringSaw);
        make.right.mas_equalTo(-BinFaxEight.icyAboutDrum.substringSaw);
        make.height.mas_equalTo(BinFaxEight.icyAboutDrum.barsMightBig);
    }];
}
- (void)boxIdiomExposeMomentLeadSpaHandler:(UIButton *)sender {
    sender.selected = !sender.isSelected;
    self.reductionGoalTextField.secureTextEntry = !self.reductionGoalTextField.isSecureTextEntry;
}

- (void)operatorPulseRevertingSlowDictationAction:(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;
    }
    if (self.reductionGoalTextField.text.length < BinFaxEight.icyAboutDrum.phaseAirPop) {
        [WonAlertView terminalRetryCopperBookmarksRemainingIdle:BinFaxEight.signRoomModify.capAppend message:BinFaxEight.signRoomModify.slashIncrementHitThreadViewLate completion:nil];
        return;
    }
    NSString *redoneArmCode = self.wetBurnLinkTextField.errorTagOldIcy;
    NSString *tallNamePop = self.wetBurnLinkTextField.speakerBlueNotBarNegotiate;
    if ([self.draftPieceAre respondsToSelector:@selector(doubleCropHuePortPageSixteenAdobe:code:textCode:putKey:completion:)]) {
        [DoneBasqueView makeNeedBreakWindow];
        [self.draftPieceAre doubleCropHuePortPageSixteenAdobe:tallNamePop code:self.reduceMixTextField.text textCode:redoneArmCode putKey:self.reductionGoalTextField.text completion:^(id object) {
            [DoneBasqueView literSpanSamplerMeasuredPackWindow];
            [PanToast ownOurTake:BinFaxEight.signRoomModify.useSummaryInterlaceValueYard];
            if (object) {
                [self.loopDisposeDelegate dayEndpointsRestExchangesBreakWithName:object editRatingsPassword:self.reductionGoalTextField.text];
                [self telephotoImperialSubgroupsShortcutsArtsAction:nil];
            }
        }];
    }
}

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