






#import "FilmPlaceViewController.h"
#import "PurposeMenuButton.h"
#import "FixToast.h"
#import "HostWriteTextField.h"
#import "NSString+FunDecode.h"

@interface FilmPlaceViewController ()

@property (nonatomic, strong) HostWriteTextField *anchorsMoreTextField;
@property (nonatomic, strong) UITextField *masterPanTextField;
@property (nonatomic, strong) UITextField *aloneInferBinTextField;
@property (nonatomic, strong) PurposeMenuButton *darkSevenButton;
@end

@implementation FilmPlaceViewController

- (PurposeMenuButton *)darkSevenButton {
    if (!_darkSevenButton) {
        _darkSevenButton = [[PurposeMenuButton alloc] init];
    }
    return _darkSevenButton;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.anchorsMoreTextField = [[HostWriteTextField alloc] initWithController:self];
    [self.view addSubview:self.anchorsMoreTextField];
    [self.anchorsMoreTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(MenuCluster.thirteenHand.eggPanQuotes);
        make.left.mas_equalTo(MenuCluster.thirteenHand.twoHitAdverb);
        make.right.mas_equalTo(-MenuCluster.thirteenHand.twoHitAdverb);
        make.height.mas_equalTo(MenuCluster.thirteenHand.hisCursorWho);
    }];
    
    
    self.masterPanTextField = [MenuCluster nearestOffBlobGenericsPendingPreventedCode];
    [self.view addSubview:self.masterPanTextField];
    [self.masterPanTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.anchorsMoreTextField.mas_bottom).offset(MenuCluster.thirteenHand.chunkyMolar);
        make.left.mas_equalTo(MenuCluster.thirteenHand.twoHitAdverb);
        make.height.mas_equalTo(MenuCluster.thirteenHand.hisCursorWho);
    }];
    
    delayed(self);
    self.darkSevenButton.exactDayEightAction = ^{
        different(self);
        
        NSString *unwrapMayCode = self.anchorsMoreTextField.magicPreferred;
        NSString *foundHitDog = self.anchorsMoreTextField.enhanceBigAddIncorrectInside;
        if (self.anchorsMoreTextField.anchorsMoreTextField.text.easyTopIndex) {
            [self.darkSevenButton masterSentenceTriggersUnsafeSub];
            [EarAlertView execAbsentSequencerLaterHourlyFlag:MenuCluster.hallFloorExist.inviteYet message:MenuCluster.hallFloorExist.friendSecurelyStartupFamilySpanishPart completion:nil];
            return;
        }
        if ([self.bagCheckLeast respondsToSelector:@selector(performedHaveMayPageWeeklyProminentNetscapeType:acuteDuplex:noteCode:completion:)]) {
            [PopTipHomeView panPrinterBarWindow];
            [self.bagCheckLeast performedHaveMayPageWeeklyProminentNetscapeType:MenuCluster.thirteenHand.hertzSayTransposeFeatPublic acuteDuplex:foundHitDog noteCode:unwrapMayCode completion:^(id object) {
                [PopTipHomeView flipMindfulCanMutationsAuthorWindow];
                if ([object boolValue]) {
                    [FixToast jobCenters:MenuCluster.hallFloorExist.zoomingArgumentsPrintedSwapAlignCubeCode];
                }else {
                    [self.darkSevenButton masterSentenceTriggersUnsafeSub];
                }
            }];
        }
    };
    [self.view addSubview:self.darkSevenButton];
    [self.darkSevenButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.masterPanTextField);
        make.height.equalTo(self.masterPanTextField);
        make.left.equalTo(self.masterPanTextField.mas_right).offset(MenuCluster.thirteenHand.italicsDrain);
        make.right.equalTo(self.anchorsMoreTextField);
    }];
    
    
    [self.darkSevenButton setContentHuggingPriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
    
    
    self.aloneInferBinTextField = [MenuCluster temporalForceWeightedInitiallySoundPassword:YES];
    [self.view addSubview:self.aloneInferBinTextField];
    [self.aloneInferBinTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.masterPanTextField.mas_bottom).offset(MenuCluster.thirteenHand.chunkyMolar);
        make.left.mas_equalTo(MenuCluster.thirteenHand.twoHitAdverb);
        make.right.mas_equalTo(-MenuCluster.thirteenHand.twoHitAdverb);
        make.height.mas_equalTo(MenuCluster.thirteenHand.hisCursorWho);
    }];
    UIButton *tiedRuleButton = self.aloneInferBinTextField.rightView.subviews.firstObject;
    [tiedRuleButton addTarget:self action:@selector(factorSupplyElderColleagueSentEvictionHandler:) forControlEvents:(UIControlEventTouchUpInside)];
    
    
    UIButton *pagerWinSumButton = [MenuCluster systolicFlagSwitchSlovakDenyColor:MenuCluster.hallFloorExist.showHelpGetKey];
    [pagerWinSumButton addTarget:self action:@selector(editorSubfamilyMalayalamBayerTopAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:pagerWinSumButton];
    [pagerWinSumButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.aloneInferBinTextField.mas_bottom).offset(MenuCluster.thirteenHand.chunkyMolar);
        make.left.mas_equalTo(MenuCluster.thirteenHand.twoHitAdverb);
        make.right.mas_equalTo(-MenuCluster.thirteenHand.twoHitAdverb);
        make.height.mas_equalTo(MenuCluster.thirteenHand.armMinAuthor);
    }];
}
- (void)factorSupplyElderColleagueSentEvictionHandler:(UIButton *)sender {
    sender.selected = !sender.isSelected;
    self.aloneInferBinTextField.secureTextEntry = !self.aloneInferBinTextField.isSecureTextEntry;
}

- (void)editorSubfamilyMalayalamBayerTopAction:(id)sender {
    if (self.anchorsMoreTextField.anchorsMoreTextField.text.easyTopIndex) {
        [EarAlertView execAbsentSequencerLaterHourlyFlag:MenuCluster.hallFloorExist.inviteYet message:MenuCluster.hallFloorExist.friendSecurelyStartupFamilySpanishPart completion:nil];
        return;
    }
    if (self.masterPanTextField.text.easyTopIndex) {
        [EarAlertView execAbsentSequencerLaterHourlyFlag:MenuCluster.hallFloorExist.inviteYet message:MenuCluster.hallFloorExist.smoothingPrimaryDueUpscaleParse completion:nil];
        return;
    }
    if (self.aloneInferBinTextField.text.length < MenuCluster.thirteenHand.repairOccur) {
        [EarAlertView execAbsentSequencerLaterHourlyFlag:MenuCluster.hallFloorExist.inviteYet message:MenuCluster.hallFloorExist.saltDensityNineInsertedFixYard completion:nil];
        return;
    }
    NSString *unwrapMayCode = self.anchorsMoreTextField.magicPreferred;
    NSString *foundHitDog = self.anchorsMoreTextField.enhanceBigAddIncorrectInside;
    if ([self.bagCheckLeast respondsToSelector:@selector(roleEmptyNapDiscardsUseObservingSpa:code:noteCode:anyKey:completion:)]) {
        [PopTipHomeView panPrinterBarWindow];
        [self.bagCheckLeast roleEmptyNapDiscardsUseObservingSpa:foundHitDog code:self.masterPanTextField.text noteCode:unwrapMayCode anyKey:self.aloneInferBinTextField.text completion:^(id object) {
            [PopTipHomeView flipMindfulCanMutationsAuthorWindow];
            [FixToast jobCenters:MenuCluster.hallFloorExist.queryPaceThinOffRow];
            if (object) {
                [self.flagSameCutDelegate optionalDevicesInheritedClosureGrowWithName:object impactNoisePassword:self.aloneInferBinTextField.text];
                [self yearsProducedRenamingLeakyExportedAction:nil];
            }
        }];
    }
}

- (void)dealloc {
    [self.darkSevenButton masterSentenceTriggersUnsafeSub];
}
@end
