






#import "CarGoogleViewController.h"
#import "WaxLabelSayButton.h"
#import "BusToast.h"
#import "InferiorsTextField.h"
#import "NSString+PrettyHex.h"

@interface CarGoogleViewController ()

@property (nonatomic, strong) InferiorsTextField *parallelSobTextField;
@property (nonatomic, strong) UITextField *todayMoreTextField;
@property (nonatomic, strong) UITextField *pubPlanBoxHasTextField;
@property (nonatomic, strong) WaxLabelSayButton *mountFourButton;
@end

@implementation CarGoogleViewController

- (WaxLabelSayButton *)mountFourButton {
    if (!_mountFourButton) {
        _mountFourButton = [[WaxLabelSayButton alloc] init];
    }
    return _mountFourButton;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.parallelSobTextField = [[InferiorsTextField alloc] initWithController:self];
    [self.view addSubview:self.parallelSobTextField];
    [self.parallelSobTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(PinMovement.cupFormatSun.availLogoMin);
        make.left.mas_equalTo(PinMovement.cupFormatSun.mandatoryTen);
        make.right.mas_equalTo(-PinMovement.cupFormatSun.mandatoryTen);
        make.height.mas_equalTo(PinMovement.cupFormatSun.ratioBengali);
    }];
    
    
    self.todayMoreTextField = [PinMovement onePartialInstallsGreekNoneKeyCode];
    [self.view addSubview:self.todayMoreTextField];
    [self.todayMoreTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.parallelSobTextField.mas_bottom).offset(PinMovement.cupFormatSun.foundTipCar);
        make.left.mas_equalTo(PinMovement.cupFormatSun.mandatoryTen);
        make.height.mas_equalTo(PinMovement.cupFormatSun.ratioBengali);
    }];
    
    fetched(self);
    self.mountFourButton.busyBringDrawAction = ^{
        stereoSay(self);
        
        NSString *winDecodeCode = self.parallelSobTextField.raceBikeHerNet;
        NSString *renderedNet = self.parallelSobTextField.penWaitingTheDanishHeap;
        if (self.parallelSobTextField.parallelSobTextField.text.typeUnderWax) {
            [self.mountFourButton farSoundTrackingSheetRedefined];
            [CarAlertView referencePopPassivelyScannerOfferComposite:PinMovement.otherPhasePlug.hoursBlob message:PinMovement.otherPhasePlug.genderReadAssetHelpOccurHas completion:nil];
            return;
        }
        if ([self.flagTrapMixer respondsToSelector:@selector(hitRolePublisherHueJobEncodingDiastolicType:freeWorking:hintCode:completion:)]) {
            [ClickInnerView waxBlackTwistWindow];
            [self.flagTrapMixer hitRolePublisherHueJobEncodingDiastolicType:PinMovement.cupFormatSun.farCombinePrefixedCornersDisabling freeWorking:renderedNet hintCode:winDecodeCode completion:^(id object) {
                [ClickInnerView wakeOrnamentRespectsConsumedRemovalWindow];
                if ([object boolValue]) {
                    [BusToast numberVery:PinMovement.otherPhasePlug.restDetailAnimatingOverlapGeorgianMidCode];
                }else {
                    [self.mountFourButton farSoundTrackingSheetRedefined];
                }
            }];
        }
    };
    [self.view addSubview:self.mountFourButton];
    [self.mountFourButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.todayMoreTextField);
        make.height.equalTo(self.todayMoreTextField);
        make.left.equalTo(self.todayMoreTextField.mas_right).offset(PinMovement.cupFormatSun.leaseZoneOld);
        make.right.equalTo(self.parallelSobTextField);
    }];
    
    
    [self.mountFourButton setContentHuggingPriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
    
    
    self.pubPlanBoxHasTextField = [PinMovement rawColumnsRedirectsEstablishCrossPassword:YES];
    [self.view addSubview:self.pubPlanBoxHasTextField];
    [self.pubPlanBoxHasTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.todayMoreTextField.mas_bottom).offset(PinMovement.cupFormatSun.foundTipCar);
        make.left.mas_equalTo(PinMovement.cupFormatSun.mandatoryTen);
        make.right.mas_equalTo(-PinMovement.cupFormatSun.mandatoryTen);
        make.height.mas_equalTo(PinMovement.cupFormatSun.ratioBengali);
    }];
    UIButton *greekRetButton = self.pubPlanBoxHasTextField.rightView.subviews.firstObject;
    [greekRetButton addTarget:self action:@selector(growSkipWeightRopeEighteenAgeHandler:) forControlEvents:(UIControlEventTouchUpInside)];
    
    
    UIButton *occurOriginButton = [PinMovement narrativeForbidAlignedAcuteGrayColor:PinMovement.otherPhasePlug.torchHeightKey];
    [occurOriginButton addTarget:self action:@selector(shrinkResizingParseBypassNodeAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:occurOriginButton];
    [occurOriginButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.pubPlanBoxHasTextField.mas_bottom).offset(PinMovement.cupFormatSun.foundTipCar);
        make.left.mas_equalTo(PinMovement.cupFormatSun.mandatoryTen);
        make.right.mas_equalTo(-PinMovement.cupFormatSun.mandatoryTen);
        make.height.mas_equalTo(PinMovement.cupFormatSun.bigSongPhoto);
    }];
}
- (void)growSkipWeightRopeEighteenAgeHandler:(UIButton *)sender {
    sender.selected = !sender.isSelected;
    self.pubPlanBoxHasTextField.secureTextEntry = !self.pubPlanBoxHasTextField.isSecureTextEntry;
}

- (void)shrinkResizingParseBypassNodeAction:(id)sender {
    if (self.parallelSobTextField.parallelSobTextField.text.typeUnderWax) {
        [CarAlertView referencePopPassivelyScannerOfferComposite:PinMovement.otherPhasePlug.hoursBlob message:PinMovement.otherPhasePlug.genderReadAssetHelpOccurHas completion:nil];
        return;
    }
    if (self.todayMoreTextField.text.typeUnderWax) {
        [CarAlertView referencePopPassivelyScannerOfferComposite:PinMovement.otherPhasePlug.hoursBlob message:PinMovement.otherPhasePlug.binaryUserSayFrameDistinct completion:nil];
        return;
    }
    if (self.pubPlanBoxHasTextField.text.length < PinMovement.cupFormatSun.moireSixWay) {
        [CarAlertView referencePopPassivelyScannerOfferComposite:PinMovement.otherPhasePlug.hoursBlob message:PinMovement.otherPhasePlug.sinhaleseReadNanogramsOnceLimitAny completion:nil];
        return;
    }
    NSString *winDecodeCode = self.parallelSobTextField.raceBikeHerNet;
    NSString *renderedNet = self.parallelSobTextField.penWaitingTheDanishHeap;
    if ([self.flagTrapMixer respondsToSelector:@selector(bufferRegionPanelDueSlowDecodeMole:code:hintCode:funKey:completion:)]) {
        [ClickInnerView waxBlackTwistWindow];
        [self.flagTrapMixer bufferRegionPanelDueSlowDecodeMole:renderedNet code:self.todayMoreTextField.text hintCode:winDecodeCode funKey:self.pubPlanBoxHasTextField.text completion:^(id object) {
            [ClickInnerView wakeOrnamentRespectsConsumedRemovalWindow];
            [BusToast numberVery:PinMovement.otherPhasePlug.earlierSubjectCentersNearbyOpacity];
            if (object) {
                [self.lateGramTwoDelegate marginTwistShapeMakeFullWithName:object factoredSayPassword:self.pubPlanBoxHasTextField.text];
                [self spaceBehaviorsBeforeScrollEnclosingAction:nil];
            }
        }];
    }
}

- (void)dealloc {
    [self.mountFourButton farSoundTrackingSheetRedefined];
}
@end
