






#import "DisparityViewController.h"
#import "OnlineColorButton.h"
#import "BagPasteKeySonViewController.h"
#import "CatToast.h"
#import "WorkflowSexLabel.h"
#import "HeartSaltTextField.h"
#import "NSString+BitUpload.h"

@interface DisparityViewController ()

@property (nonatomic, strong) HeartSaltTextField *hostInitialTextField;
@property (nonatomic, strong) UITextField *indoorKeyTextField;
@property (nonatomic, strong) OnlineColorButton *manualSayButton;
@property (nonatomic,strong) WorkflowSexLabel *modalBadGolfLabel;

@end

@implementation DisparityViewController

- (OnlineColorButton *)manualSayButton {
    if (!_manualSayButton) {
        _manualSayButton = [[OnlineColorButton alloc] init];
    }
    return _manualSayButton;
}

- (WorkflowSexLabel *)modalBadGolfLabel {
    if (!_modalBadGolfLabel) {
        _modalBadGolfLabel = [WorkflowSexLabel veryOddOddBusLabel:NO];
    }
    return _modalBadGolfLabel;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.hostInitialTextField = [[HeartSaltTextField alloc] initWithController:self];
    [self.view addSubview:self.hostInitialTextField];
    [self.hostInitialTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(FeedSunTied.rootIntegral.legalDecimal);
        make.left.mas_equalTo(FeedSunTied.rootIntegral.causeLongYou);
        make.right.mas_equalTo(-FeedSunTied.rootIntegral.causeLongYou);
        make.height.mas_equalTo(FeedSunTied.rootIntegral.logoPriceAdd);
    }];
    
    
    self.indoorKeyTextField = [FeedSunTied pushShowLogicalHexRouteDegradedCode];
    [self.view addSubview:self.indoorKeyTextField];
    [self.indoorKeyTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.hostInitialTextField.mas_bottom).offset(FeedSunTied.rootIntegral.shortOurPint);
        make.left.mas_equalTo(FeedSunTied.rootIntegral.causeLongYou);
        make.height.mas_equalTo(FeedSunTied.rootIntegral.logoPriceAdd);
    }];
    
    vitamin(self);
    self.manualSayButton.warnMovieTeamAction = ^{
        peakSlice(self);
        NSString *fatFactorCode = self.hostInitialTextField.emailBedSonSin;
        NSString *bookManyFat = self.hostInitialTextField.planStorylineReportedAddressPortion;
        if (self.hostInitialTextField.hostInitialTextField.text.diphthongEye) {
            [self.manualSayButton mergeNepaliFadeOptPascal];
            [AllAlertView reportingPhotosMileHandTelephotoCoast:FeedSunTied.switchEnvelope.slavicLog message:FeedSunTied.switchEnvelope.seePhotoExclusiveFaceAbsentVisitor completion:nil];
            return;
        }
        if ([self.subIcyWaxFree respondsToSelector:@selector(cornerFunkMaskFiveSortingDiscreteSheType:funLookMust:tintCode:completion:)]) {
            [CutSubjectView suchAlignRoomWindow];
            [self.subIcyWaxFree cornerFunkMaskFiveSortingDiscreteSheType:FeedSunTied.rootIntegral.resourcesAppearCommonYardAzimuth funLookMust:bookManyFat tintCode:fatFactorCode completion:^(id object) {
                [CutSubjectView blueMenuThirteenVariablesOddWindow];
                if ([object boolValue]) {
                    [CatToast leapNowSix:FeedSunTied.switchEnvelope.applyPhoneticGeneratePivotTakeEventCode];
                }else {
                    [self.manualSayButton mergeNepaliFadeOptPascal];
                }
            }];
        }
    };
    [self.view addSubview:self.manualSayButton];
    [self.manualSayButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.indoorKeyTextField);
        make.height.equalTo(self.indoorKeyTextField);
        make.left.equalTo(self.indoorKeyTextField.mas_right).offset(FeedSunTied.rootIntegral.lateSmallAir);
        make.right.equalTo(self.hostInitialTextField);
    }];
    
    
    [self.manualSayButton setContentHuggingPriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
    
    
    UIButton *iconKitTwoYouButton = [FeedSunTied edgeSlideMidDeciliterIndentColor:FeedSunTied.switchEnvelope.textAliveRhythmSwapAskCube];
    [iconKitTwoYouButton addTarget:self action:@selector(lastNapThiaminCaretListAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:iconKitTwoYouButton];
    [iconKitTwoYouButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.indoorKeyTextField.mas_bottom).offset(FeedSunTied.rootIntegral.shortOurPint);
        make.left.mas_equalTo(FeedSunTied.rootIntegral.causeLongYou);
        make.right.mas_equalTo(-FeedSunTied.rootIntegral.causeLongYou);
        make.height.mas_equalTo(FeedSunTied.rootIntegral.strictlyRank);
    }];
    
    [self.view addSubview:self.modalBadGolfLabel];
    [self.modalBadGolfLabel setActionChinaPlayingLoudNoticeDry:^{
        peakSlice(self);
        [self personCityScaleCupBannerMapAction];
    }];
    [self.modalBadGolfLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(-FeedSunTied.rootIntegral.inviteeBezel);
        make.left.mas_equalTo(FeedSunTied.rootIntegral.siteBridging);
        make.right.mas_equalTo(-FeedSunTied.rootIntegral.siteBridging);
    }];
}

- (void)lastNapThiaminCaretListAction:(UIButton *)sender {
    if (self.hostInitialTextField.hostInitialTextField.text.diphthongEye) {
        [AllAlertView reportingPhotosMileHandTelephotoCoast:FeedSunTied.switchEnvelope.slavicLog message:FeedSunTied.switchEnvelope.seePhotoExclusiveFaceAbsentVisitor completion:nil];
        return;
    }
    if (self.indoorKeyTextField.text.diphthongEye) {
        [AllAlertView reportingPhotosMileHandTelephotoCoast:FeedSunTied.switchEnvelope.slavicLog message:FeedSunTied.switchEnvelope.reductionButtonsSlavicAloneExec completion:nil];
        return;
    }
    NSString *fatFactorCode = self.hostInitialTextField.emailBedSonSin;
    NSString *bookManyFat = self.hostInitialTextField.planStorylineReportedAddressPortion;
    if ([self.subIcyWaxFree respondsToSelector:@selector(desktopRotateContainDenySubGoalDebuggerGasp:code:tintCode:completion:)]) {
        [CutSubjectView suchAlignRoomWindow];
        [self.subIcyWaxFree desktopRotateContainDenySubGoalDebuggerGasp:bookManyFat code:self.indoorKeyTextField.text tintCode:fatFactorCode completion:^(id object) {
            [CutSubjectView blueMenuThirteenVariablesOddWindow];
        }];
    }
}


- (void)personCityScaleCupBannerMapAction {
    BagPasteKeySonViewController *kilowattNear = [BagPasteKeySonViewController new];
    kilowattNear.feedFairArm = @(YES);
    kilowattNear.subIcyWaxFree = self.subIcyWaxFree;
    [kilowattNear setSourcesLiftPrimaryPushPub:^(BOOL result) {
        self.modalBadGolfLabel.putSpaMilePolo = result;
    }];
    [self.navigationController pushViewController:kilowattNear animated:NO];
}

- (void)dealloc {
    [self.manualSayButton mergeNepaliFadeOptPascal];
}
@end
