






#import "PopBannerViewController.h"
#import "FinalizeOutButton.h"
#import "CutToast.h"
#import "DryOutletTextField.h"
#import "NSString+OutBypass.h"

@interface PopBannerViewController ()

@property (nonatomic, strong) DryOutletTextField *curlBalanceTextField;
@property (nonatomic, strong) UITextField *bondClockTextField;
@property (nonatomic, strong) UITextField *clangSlabBikeTextField;
@property (nonatomic, strong) FinalizeOutButton *nowButtonButton;
@end

@implementation PopBannerViewController

- (FinalizeOutButton *)nowButtonButton {
    if (!_nowButtonButton) {
        _nowButtonButton = [[FinalizeOutButton alloc] init];
    }
    return _nowButtonButton;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.curlBalanceTextField = [[DryOutletTextField alloc] initWithController:self];
    [self.view addSubview:self.curlBalanceTextField];
    [self.curlBalanceTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(BinTopLemma.drainCatFair.redLocalized);
        make.left.mas_equalTo(BinTopLemma.drainCatFair.ownPedometer);
        make.right.mas_equalTo(-BinTopLemma.drainCatFair.ownPedometer);
        make.height.mas_equalTo(BinTopLemma.drainCatFair.outerMaximum);
    }];
    
    
    self.bondClockTextField = [BinTopLemma electricTargetWritePreventedTaskColumnCode];
    [self.view addSubview:self.bondClockTextField];
    [self.bondClockTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.curlBalanceTextField.mas_bottom).offset(BinTopLemma.drainCatFair.danceBetter);
        make.left.mas_equalTo(BinTopLemma.drainCatFair.ownPedometer);
        make.height.mas_equalTo(BinTopLemma.drainCatFair.outerMaximum);
    }];
    
    rawTurn(self);
    self.nowButtonButton.pairNominallyAction = ^{
        exactWarn(self);
        
        NSString *sayParserCode = self.curlBalanceTextField.foodMaleDublin;
        NSString *clockBridge = self.curlBalanceTextField.fatGigabitsFlashMoodRotor;
        if (self.curlBalanceTextField.curlBalanceTextField.text.faxNoteRetry) {
            [self.nowButtonButton allPublicSeeMinorHead];
            [NowAlertView prominentGoldenProfilesTropicalPivotViolation:BinTopLemma.oldHitDownIron.penHigher message:BinTopLemma.oldHitDownIron.likeSpokenImmediateEstonianCatalanGenerics completion:nil];
            return;
        }
        if ([self.fixLimitCocoa respondsToSelector:@selector(sequencesPopFoggyTwitterTotalEyeHoursType:authorsJust:yearCode:completion:)]) {
            [NextIllKeyView italianFormatWindow];
            [self.fixLimitCocoa sequencesPopFoggyTwitterTotalEyeHoursType:BinTopLemma.drainCatFair.applierAxialMenstrualLegacySent authorsJust:clockBridge yearCode:sayParserCode completion:^(id object) {
                [NextIllKeyView legibleSecondaryResponseDelayMediaWindow];
                if ([object boolValue]) {
                    [CutToast browseCrop:BinTopLemma.oldHitDownIron.wasNextDebuggerAmbiguityPeriodSquaredCode];
                }else {
                    [self.nowButtonButton allPublicSeeMinorHead];
                }
            }];
        }
    };
    [self.view addSubview:self.nowButtonButton];
    [self.nowButtonButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.bondClockTextField);
        make.height.equalTo(self.bondClockTextField);
        make.left.equalTo(self.bondClockTextField.mas_right).offset(BinTopLemma.drainCatFair.closeUserNot);
        make.right.equalTo(self.curlBalanceTextField);
    }];
    
    
    [self.nowButtonButton setContentHuggingPriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
    
    
    self.clangSlabBikeTextField = [BinTopLemma fractionsZipMetadataExecutingDetailPassword:YES];
    [self.view addSubview:self.clangSlabBikeTextField];
    [self.clangSlabBikeTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.bondClockTextField.mas_bottom).offset(BinTopLemma.drainCatFair.danceBetter);
        make.left.mas_equalTo(BinTopLemma.drainCatFair.ownPedometer);
        make.right.mas_equalTo(-BinTopLemma.drainCatFair.ownPedometer);
        make.height.mas_equalTo(BinTopLemma.drainCatFair.outerMaximum);
    }];
    UIButton *tomorrowButton = self.clangSlabBikeTextField.rightView.subviews.firstObject;
    [tomorrowButton addTarget:self action:@selector(affinityCoverageAudienceFactRestingPairHandler:) forControlEvents:(UIControlEventTouchUpInside)];
    
    
    UIButton *seekUseKindButton = [BinTopLemma tipSwahiliOutletTailCurrentlyColor:BinTopLemma.oldHitDownIron.icyKeyGreenKey];
    [seekUseKindButton addTarget:self action:@selector(agreementPhonogramSedentaryProteinYellowAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:seekUseKindButton];
    [seekUseKindButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.clangSlabBikeTextField.mas_bottom).offset(BinTopLemma.drainCatFair.danceBetter);
        make.left.mas_equalTo(BinTopLemma.drainCatFair.ownPedometer);
        make.right.mas_equalTo(-BinTopLemma.drainCatFair.ownPedometer);
        make.height.mas_equalTo(BinTopLemma.drainCatFair.clipSeeBegin);
    }];
}
- (void)affinityCoverageAudienceFactRestingPairHandler:(UIButton *)sender {
    sender.selected = !sender.isSelected;
    self.clangSlabBikeTextField.secureTextEntry = !self.clangSlabBikeTextField.isSecureTextEntry;
}

- (void)agreementPhonogramSedentaryProteinYellowAction:(id)sender {
    if (self.curlBalanceTextField.curlBalanceTextField.text.faxNoteRetry) {
        [NowAlertView prominentGoldenProfilesTropicalPivotViolation:BinTopLemma.oldHitDownIron.penHigher message:BinTopLemma.oldHitDownIron.likeSpokenImmediateEstonianCatalanGenerics completion:nil];
        return;
    }
    if (self.bondClockTextField.text.faxNoteRetry) {
        [NowAlertView prominentGoldenProfilesTropicalPivotViolation:BinTopLemma.oldHitDownIron.penHigher message:BinTopLemma.oldHitDownIron.butTrainingFooterExclusiveTwitter completion:nil];
        return;
    }
    if (self.clangSlabBikeTextField.text.length < BinTopLemma.drainCatFair.learnSpouse) {
        [NowAlertView prominentGoldenProfilesTropicalPivotViolation:BinTopLemma.oldHitDownIron.penHigher message:BinTopLemma.oldHitDownIron.driveLeakyForceDryAffectingUploading completion:nil];
        return;
    }
    NSString *sayParserCode = self.curlBalanceTextField.foodMaleDublin;
    NSString *clockBridge = self.curlBalanceTextField.fatGigabitsFlashMoodRotor;
    if ([self.fixLimitCocoa respondsToSelector:@selector(cutterTriggeredManagedSignalingDiskPrepPrime:code:yearCode:catKey:completion:)]) {
        [NextIllKeyView italianFormatWindow];
        [self.fixLimitCocoa cutterTriggeredManagedSignalingDiskPrepPrime:clockBridge code:self.bondClockTextField.text yearCode:sayParserCode catKey:self.clangSlabBikeTextField.text completion:^(id object) {
            [NextIllKeyView legibleSecondaryResponseDelayMediaWindow];
            [CutToast browseCrop:BinTopLemma.oldHitDownIron.reversePriceGeneratorSequencerScan];
            if (object) {
                [self.liveFetchedDelegate clinicalSwedishGreatFetchDistortedWithName:object eraCanadianPassword:self.clangSlabBikeTextField.text];
                [self sumOddPresentedMathQuotationAction:nil];
            }
        }];
    }
}

- (void)dealloc {
    [self.nowButtonButton allPublicSeeMinorHead];
}
@end
