






#import "ButtonsAtomicViewController.h"
#import "OnlineColorButton.h"
#import "CatToast.h"
#import "HeartSaltTextField.h"
#import "NSString+BitUpload.h"
@import WebKit;

@interface ButtonsAtomicViewController ()

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

@end

@implementation ButtonsAtomicViewController


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

- (void)viewDidLoad {
    [super viewDidLoad];
    self.nowEquallyButton.hidden = [self.feedFairArm[0] boolValue];
    
    UILabel *butLabel = [FeedSunTied originalEndMenuWasRaw:FeedSunTied.switchEnvelope.stopInsertedLeftStepRoleRecovered];
    butLabel.numberOfLines = 0;
    [self.view addSubview:butLabel];
    [butLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(FeedSunTied.rootIntegral.encryptEmail);
        make.left.mas_equalTo(FeedSunTied.rootIntegral.encryptEmail);
        make.right.mas_equalTo(-FeedSunTied.rootIntegral.encryptEmail);
    }];
    
    
    self.hostInitialTextField = [[HeartSaltTextField alloc] initWithController:self];
    [self.view addSubview:self.hostInitialTextField];
    [self.hostInitialTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(butLabel.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.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.howSixAppend);
        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.dueInterWayWas 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 *tildeHashButton = [FeedSunTied edgeSlideMidDeciliterIndentColor:FeedSunTied.switchEnvelope.routeCosmicDivideRandomMaximum];
    [tildeHashButton addTarget:self action:@selector(tryNapFocalSceneSelectedAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:tildeHashButton];
    [tildeHashButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.indoorKeyTextField.mas_bottom).offset(FeedSunTied.rootIntegral.howSixAppend);
        make.left.mas_equalTo(FeedSunTied.rootIntegral.causeLongYou);
        make.right.mas_equalTo(-FeedSunTied.rootIntegral.causeLongYou);
        make.height.mas_equalTo(FeedSunTied.rootIntegral.strictlyRank);
    }];
}

- (void)tryNapFocalSceneSelectedAction:(id)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(roundCertForeverSolveAnchoringFactoryCinematic:code:tintCode:completion:)]) {
        [CutSubjectView suchAlignRoomWindow];
        [self.subIcyWaxFree roundCertForeverSolveAnchoringFactoryCinematic:bookManyFat code:self.indoorKeyTextField.text tintCode:fatFactorCode completion:^(id object) {
            [CutSubjectView blueMenuThirteenVariablesOddWindow];
            if ([object boolValue]) {
                [[TimeClaimManager shared] frontIconTrashAnchoringRestoreIntegralViewController:self.navigationController];
                [CatToast leapNowSix:FeedSunTied.switchEnvelope.mantissaPassClipNearChatterFat];
                if ([self.feedFairArm[1] isKindOfClass:[WKWebView class]]) {
                    WKWebView *fixZeroMake = (WKWebView *)self.feedFairArm[1];
                    [fixZeroMake reload];
                }
            }
        }];
    }
}

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

@end
