






#import "EncodeIllViewController.h"
#import "CertEggEachButton.h"
#import "KitToast.h"
#import "BeatCaretTextField.h"
#import "NSString+EvictFile.h"

@interface EncodeIllViewController ()

@property (nonatomic, strong) BeatCaretTextField *charHisHangTextField;
@property (nonatomic, strong) UITextField *theRepairTextField;
@property (nonatomic, strong) UITextField *waistOptAlbumTextField;
@property (nonatomic, strong) CertEggEachButton *tenShrinkButton;
@end

@implementation EncodeIllViewController

- (CertEggEachButton *)tenShrinkButton {
    if (!_tenShrinkButton) {
        _tenShrinkButton = [[CertEggEachButton alloc] init];
    }
    return _tenShrinkButton;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.charHisHangTextField = [[BeatCaretTextField alloc] initWithController:self];
    [self.view addSubview:self.charHisHangTextField];
    [self.charHisHangTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(OutTapPlain.parentMixMay.markReleased);
        make.left.mas_equalTo(OutTapPlain.parentMixMay.takeWhiteArm);
        make.right.mas_equalTo(-OutTapPlain.parentMixMay.takeWhiteArm);
        make.height.mas_equalTo(OutTapPlain.parentMixMay.thirteenHigh);
    }];
    
    
    self.theRepairTextField = [OutTapPlain oldSmoothInstantEncodingCreateIcyCode];
    [self.view addSubview:self.theRepairTextField];
    [self.theRepairTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.charHisHangTextField.mas_bottom).offset(OutTapPlain.parentMixMay.boundIndian);
        make.left.mas_equalTo(OutTapPlain.parentMixMay.takeWhiteArm);
        make.height.mas_equalTo(OutTapPlain.parentMixMay.thirteenHigh);
    }];
    
    spaBike(self);
    self.tenShrinkButton.truncatedLastAction = ^{
        parserWin(self);
        
        NSString *tildeChatCode = self.charHisHangTextField.recentUsedLine;
        NSString *startupHelp = self.charHisHangTextField.globalPhoneUnsignedPassSide;
        if (self.charHisHangTextField.charHisHangTextField.text.twoWonBypass) {
            [self.tenShrinkButton lazyGigabytesBirthdayLargestSlash];
            [SixAlertView eventPutJapaneseMoodEraAlarm:OutTapPlain.loudMeterMount.scrolling message:OutTapPlain.loudMeterMount.axialShelfUniqueHeadsetContainedThree completion:nil];
            return;
        }
        if ([self.imageChatFilm respondsToSelector:@selector(generatorAboutCoalescedNodeMoireArmourMapType:sexEntities:failCode:completion:)]) {
            [ManButThinView instantSubmitWindow];
            [self.imageChatFilm generatorAboutCoalescedNodeMoireArmourMapType:OutTapPlain.parentMixMay.collectorTagIgnoredInterlacePointer sexEntities:startupHelp failCode:tildeChatCode completion:^(id object) {
                [ManButThinView discardedEsperantoExternalAnimationPluralWindow];
                if ([object boolValue]) {
                    [KitToast sexFaxHeap:OutTapPlain.loudMeterMount.textButFocusingMaxRouteNowCode];
                }else {
                    [self.tenShrinkButton lazyGigabytesBirthdayLargestSlash];
                }
            }];
        }
    };
    [self.view addSubview:self.tenShrinkButton];
    [self.tenShrinkButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.theRepairTextField);
        make.height.equalTo(self.theRepairTextField);
        make.right.equalTo(self.charHisHangTextField);
        
        make.width.mas_equalTo(self.tenShrinkButton.titleLabel.intrinsicContentSize.width + OutTapPlain.parentMixMay.sandboxTamil);
    }];
    
    [self.theRepairTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self.tenShrinkButton.mas_left).offset(-OutTapPlain.parentMixMay.gaussianOver);
    }];
    
    
    self.waistOptAlbumTextField = [OutTapPlain cursorTokenWrittenSphericalAxialPassword:YES];
    [self.view addSubview:self.waistOptAlbumTextField];
    [self.waistOptAlbumTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.theRepairTextField.mas_bottom).offset(OutTapPlain.parentMixMay.boundIndian);
        make.left.mas_equalTo(OutTapPlain.parentMixMay.takeWhiteArm);
        make.right.mas_equalTo(-OutTapPlain.parentMixMay.takeWhiteArm);
        make.height.mas_equalTo(OutTapPlain.parentMixMay.thirteenHigh);
    }];
    UIButton *roundSumButton = self.waistOptAlbumTextField.rightView.subviews.firstObject;
    [roundSumButton addTarget:self action:@selector(drivenRoundOperateFinalizeDifferentPromptHandler:) forControlEvents:(UIControlEventTouchUpInside)];
    
    
    UIButton *opaqueAlongButton = [OutTapPlain busIndoorTableDrizzleAwayColor:OutTapPlain.loudMeterMount.pushFreeWetKey];
    [opaqueAlongButton addTarget:self action:@selector(burstSpeedOneAppendJobAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:opaqueAlongButton];
    [opaqueAlongButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.waistOptAlbumTextField.mas_bottom).offset(OutTapPlain.parentMixMay.boundIndian);
        make.left.mas_equalTo(OutTapPlain.parentMixMay.takeWhiteArm);
        make.right.mas_equalTo(-OutTapPlain.parentMixMay.takeWhiteArm);
        make.height.mas_equalTo(OutTapPlain.parentMixMay.tooTabMetric);
    }];
}
- (void)drivenRoundOperateFinalizeDifferentPromptHandler:(UIButton *)sender {
    sender.selected = !sender.isSelected;
    self.waistOptAlbumTextField.secureTextEntry = !self.waistOptAlbumTextField.isSecureTextEntry;
}

- (void)burstSpeedOneAppendJobAction:(id)sender {
    if (self.charHisHangTextField.charHisHangTextField.text.twoWonBypass) {
        [SixAlertView eventPutJapaneseMoodEraAlarm:OutTapPlain.loudMeterMount.scrolling message:OutTapPlain.loudMeterMount.axialShelfUniqueHeadsetContainedThree completion:nil];
        return;
    }
    if (self.theRepairTextField.text.twoWonBypass) {
        [SixAlertView eventPutJapaneseMoodEraAlarm:OutTapPlain.loudMeterMount.scrolling message:OutTapPlain.loudMeterMount.compoundBecomeViabilityAutomaticPrice completion:nil];
        return;
    }
    if (self.waistOptAlbumTextField.text.length < OutTapPlain.parentMixMay.numeralMood) {
        [SixAlertView eventPutJapaneseMoodEraAlarm:OutTapPlain.loudMeterMount.scrolling message:OutTapPlain.loudMeterMount.measureTurkmenAllExporterWeekdayMembers completion:nil];
        return;
    }
    NSString *tildeChatCode = self.charHisHangTextField.recentUsedLine;
    NSString *startupHelp = self.charHisHangTextField.globalPhoneUnsignedPassSide;
    if ([self.imageChatFilm respondsToSelector:@selector(rareAddCommandsLineDiskTrustLoop:code:failCode:retKey:completion:)]) {
        [ManButThinView instantSubmitWindow];
        [self.imageChatFilm rareAddCommandsLineDiskTrustLoop:startupHelp code:self.theRepairTextField.text failCode:tildeChatCode retKey:self.waistOptAlbumTextField.text completion:^(id object) {
            [ManButThinView discardedEsperantoExternalAnimationPluralWindow];
            [KitToast sexFaxHeap:OutTapPlain.loudMeterMount.armenianWideAssameseAnchoringSerialize];
            if (object) {
                [self.menuOffDrumDelegate statementTemporalStructureIconShrinkWithName:object suffixSmilePassword:self.waistOptAlbumTextField.text];
                [self groupKitFisheyeBordersIdentityAction:nil];
            }
        }];
    }
}

- (void)dealloc {
    [self.tenShrinkButton lazyGigabytesBirthdayLargestSlash];
}
@end
