






#import "SavePitchViewController.h"
#import "OutlinePipeButton.h"
#import "KeyToast.h"
#import "WithDrainTextField.h"
#import "NSString+Strongest.h"

@interface SavePitchViewController ()

@property (nonatomic, strong) WithDrainTextField *muteInstantTextField;
@property (nonatomic, strong) UITextField *folderAnyTextField;
@property (nonatomic, strong) UITextField *oddHangAddYouTextField;
@property (nonatomic, strong) OutlinePipeButton *easyPhotoButton;
@end

@implementation SavePitchViewController

- (OutlinePipeButton *)easyPhotoButton {
    if (!_easyPhotoButton) {
        _easyPhotoButton = [[OutlinePipeButton alloc] init];
    }
    return _easyPhotoButton;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.muteInstantTextField = [[WithDrainTextField alloc] initWithController:self];
    [self.view addSubview:self.muteInstantTextField];
    [self.muteInstantTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(ClaimMaxBig.applierPatch.oldFormInset);
        make.left.mas_equalTo(ClaimMaxBig.applierPatch.plugRunClaim);
        make.right.mas_equalTo(-ClaimMaxBig.applierPatch.plugRunClaim);
        make.height.mas_equalTo(ClaimMaxBig.applierPatch.immediateYou);
    }];
    
    
    self.folderAnyTextField = [ClaimMaxBig updatesArtworkHeaderExecuteTabEmailCode];
    [self.view addSubview:self.folderAnyTextField];
    [self.folderAnyTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.muteInstantTextField.mas_bottom).offset(ClaimMaxBig.applierPatch.providesKey);
        make.left.mas_equalTo(ClaimMaxBig.applierPatch.plugRunClaim);
        make.height.mas_equalTo(ClaimMaxBig.applierPatch.immediateYou);
    }];
    
    feature(self);
    self.easyPhotoButton.blockerEffortAction = ^{
        rowAttach(self);
        
        NSString *bestEjectCode = self.muteInstantTextField.bagBackTabTrad;
        NSString *sonChildSun = self.muteInstantTextField.constantSegueFinishedDiskBig;
        if (self.muteInstantTextField.muteInstantTextField.text.hexStandBand) {
            [self.easyPhotoButton clustersReceivedDrainShelfIdentical];
            [TwoAlertView oldDomainsDesignerSeeThreeAccurate:ClaimMaxBig.allFeedEarGolf.incorrect message:ClaimMaxBig.allFeedEarGolf.extentUnionUploadingShotKernelsInitial completion:nil];
            return;
        }
        if ([self.foreverStrong respondsToSelector:@selector(sessionsPortraitsClangStairWaistBankNeverType:tallZipMole:markCode:completion:)]) {
            [TopAgeDrumView zipHelpersPubWindow];
            [self.foreverStrong sessionsPortraitsClangStairWaistBankNeverType:ClaimMaxBig.applierPatch.gramSubjectOldFootnotePrepared tallZipMole:sonChildSun markCode:bestEjectCode completion:^(id object) {
                [TopAgeDrumView punjabiTargetParsingWakeTelephotoWindow];
                if ([object boolValue]) {
                    [KeyToast andArePace:ClaimMaxBig.allFeedEarGolf.respondsEventualSelectedCreditsTabTeluguCode];
                }else {
                    [self.easyPhotoButton clustersReceivedDrainShelfIdentical];
                }
            }];
        }
    };
    [self.view addSubview:self.easyPhotoButton];
    [self.easyPhotoButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.folderAnyTextField);
        make.height.equalTo(self.folderAnyTextField);
        make.left.equalTo(self.folderAnyTextField.mas_right).offset(ClaimMaxBig.applierPatch.turnHeadline);
        make.right.equalTo(self.muteInstantTextField);
    }];
    
    
    [self.easyPhotoButton setContentHuggingPriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
    
    
    self.oddHangAddYouTextField = [ClaimMaxBig restartShadowFlashGallonsOptPassword:YES];
    [self.view addSubview:self.oddHangAddYouTextField];
    [self.oddHangAddYouTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.folderAnyTextField.mas_bottom).offset(ClaimMaxBig.applierPatch.providesKey);
        make.left.mas_equalTo(ClaimMaxBig.applierPatch.plugRunClaim);
        make.right.mas_equalTo(-ClaimMaxBig.applierPatch.plugRunClaim);
        make.height.mas_equalTo(ClaimMaxBig.applierPatch.immediateYou);
    }];
    UIButton *shiftLawButton = self.oddHangAddYouTextField.rightView.subviews.firstObject;
    [shiftLawButton addTarget:self action:@selector(proxyResourcesPaperApplierCityFlowHandler:) forControlEvents:(UIControlEventTouchUpInside)];
    
    
    UIButton *appliesNoneButton = [ClaimMaxBig reportingOptionalNonceEquallyBreakingColor:ClaimMaxBig.allFeedEarGolf.dogAndWorldKey];
    [appliesNoneButton addTarget:self action:@selector(schoolMaxSegmentYesterdayRequestedAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:appliesNoneButton];
    [appliesNoneButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.oddHangAddYouTextField.mas_bottom).offset(ClaimMaxBig.applierPatch.providesKey);
        make.left.mas_equalTo(ClaimMaxBig.applierPatch.plugRunClaim);
        make.right.mas_equalTo(-ClaimMaxBig.applierPatch.plugRunClaim);
        make.height.mas_equalTo(ClaimMaxBig.applierPatch.cloudPutSign);
    }];
}
- (void)proxyResourcesPaperApplierCityFlowHandler:(UIButton *)sender {
    sender.selected = !sender.isSelected;
    self.oddHangAddYouTextField.secureTextEntry = !self.oddHangAddYouTextField.isSecureTextEntry;
}

- (void)schoolMaxSegmentYesterdayRequestedAction:(id)sender {
    if (self.muteInstantTextField.muteInstantTextField.text.hexStandBand) {
        [TwoAlertView oldDomainsDesignerSeeThreeAccurate:ClaimMaxBig.allFeedEarGolf.incorrect message:ClaimMaxBig.allFeedEarGolf.extentUnionUploadingShotKernelsInitial completion:nil];
        return;
    }
    if (self.folderAnyTextField.text.hexStandBand) {
        [TwoAlertView oldDomainsDesignerSeeThreeAccurate:ClaimMaxBig.allFeedEarGolf.incorrect message:ClaimMaxBig.allFeedEarGolf.discoveryDisplayedBiometryIgnoringProcesses completion:nil];
        return;
    }
    if (self.oddHangAddYouTextField.text.length < ClaimMaxBig.applierPatch.overlapIcon) {
        [TwoAlertView oldDomainsDesignerSeeThreeAccurate:ClaimMaxBig.allFeedEarGolf.incorrect message:ClaimMaxBig.allFeedEarGolf.caffeineVersionsSumWaitingDegradedSon completion:nil];
        return;
    }
    NSString *bestEjectCode = self.muteInstantTextField.bagBackTabTrad;
    NSString *sonChildSun = self.muteInstantTextField.constantSegueFinishedDiskBig;
    if ([self.foreverStrong respondsToSelector:@selector(autoDownloadJustifiedMarkStrideDictationLabel:code:markCode:ageKey:completion:)]) {
        [TopAgeDrumView zipHelpersPubWindow];
        [self.foreverStrong autoDownloadJustifiedMarkStrideDictationLabel:sonChildSun code:self.folderAnyTextField.text markCode:bestEjectCode ageKey:self.oddHangAddYouTextField.text completion:^(id object) {
            [TopAgeDrumView punjabiTargetParsingWakeTelephotoWindow];
            [KeyToast andArePace:ClaimMaxBig.allFeedEarGolf.geometryArtLacrosseEastThumb];
            if (object) {
                [self.awayLostJobDelegate appendedGlucoseWasButKilogramWithName:object auditStridePassword:self.oddHangAddYouTextField.text];
                [self uploadJouleSindhiGlobalSelectorAction:nil];
            }
        }];
    }
}

- (void)dealloc {
    [self.easyPhotoButton clustersReceivedDrainShelfIdentical];
}
@end
