






#import "UpperAxesViewController.h"
#import "PlanePubSpaButton.h"
#import "RedOneMillBestViewController.h"
#import "NowToast.h"
#import "ScoreHisRawLabel.h"
#import "FocalPlayTextField.h"
#import "NSString+SeeSupply.h"

@interface UpperAxesViewController ()

@property (nonatomic, strong) FocalPlayTextField *frenchAlongTextField;
@property (nonatomic, strong) UITextField *trapEvictTextField;
@property (nonatomic, strong) PlanePubSpaButton *bookmarksButton;
@property (nonatomic,strong) ScoreHisRawLabel *pongBrandHitLabel;

@end

@implementation UpperAxesViewController

- (PlanePubSpaButton *)bookmarksButton {
    if (!_bookmarksButton) {
        _bookmarksButton = [[PlanePubSpaButton alloc] init];
    }
    return _bookmarksButton;
}

- (ScoreHisRawLabel *)pongBrandHitLabel {
    if (!_pongBrandHitLabel) {
        _pongBrandHitLabel = [ScoreHisRawLabel listTrackHairLabel:NO];
    }
    return _pongBrandHitLabel;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.frenchAlongTextField = [[FocalPlayTextField alloc] initWithController:self];
    [self.view addSubview:self.frenchAlongTextField];
    [self.frenchAlongTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(BestSharpen.didNapCoptic.spaEmptySafe);
        make.left.mas_equalTo(BestSharpen.didNapCoptic.polarBothSub);
        make.right.mas_equalTo(-BestSharpen.didNapCoptic.polarBothSub);
        make.height.mas_equalTo(BestSharpen.didNapCoptic.extendsHours);
    }];
    
    
    self.trapEvictTextField = [BestSharpen designTabEqualUndoManProducingCode];
    [self.view addSubview:self.trapEvictTextField];
    [self.trapEvictTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.frenchAlongTextField.mas_bottom).offset(BestSharpen.didNapCoptic.kitShapeBits);
        make.left.mas_equalTo(BestSharpen.didNapCoptic.polarBothSub);
        make.height.mas_equalTo(BestSharpen.didNapCoptic.extendsHours);
    }];
    
    idleToo(self);
    self.bookmarksButton.truncatesRankAction = ^{
        bigCursor(self);
        NSString *humanLateCode = self.frenchAlongTextField.hardWarpIllRet;
        NSString *bloodKinKey = self.frenchAlongTextField.prefixRejectLeastCoachedEvaluated;
        if (self.frenchAlongTextField.frenchAlongTextField.text.badUptimeSon) {
            [self.bookmarksButton argumentPartialOneGuideBevel];
            [SheAlertView affectingSurrogateGrandauntPrioritySlantAnnotated:BestSharpen.hangFillerPick.cutHebrew message:BestSharpen.hangFillerPick.endpointListenerRegularBayerSiteManual completion:nil];
            return;
        }
        if ([self.thinEchoState respondsToSelector:@selector(resetDegradedAddHierarchyBoundingNanogramsEditType:tradCasePan:lookCode:completion:)]) {
            [CheckFloorView toggleOutsideWindow];
            [self.thinEchoState resetDegradedAddHierarchyBoundingNanogramsEditType:BestSharpen.didNapCoptic.filmImmutableFinnishSixDownload tradCasePan:bloodKinKey lookCode:humanLateCode completion:^(id object) {
                [CheckFloorView solidCapSobTightSupportedWindow];
                if ([object boolValue]) {
                    [NowToast uptimeSpan:BestSharpen.hangFillerPick.autoGreenAllowHerPrefixHowCode];
                }else {
                    [self.bookmarksButton argumentPartialOneGuideBevel];
                }
            }];
        }
    };
    [self.view addSubview:self.bookmarksButton];
    [self.bookmarksButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.trapEvictTextField);
        make.height.equalTo(self.trapEvictTextField);
        make.right.equalTo(self.frenchAlongTextField);
        
        make.width.mas_equalTo(self.bookmarksButton.titleLabel.intrinsicContentSize.width + BestSharpen.didNapCoptic.breakSobKeys);
    }];
    
    [self.trapEvictTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self.bookmarksButton.mas_left).offset(-BestSharpen.didNapCoptic.tryPromptWet);
    }];
    
    
    UIButton *itsDogTintFarButton = [BestSharpen idiomBikeNineRebusEmailColor:BestSharpen.hangFillerPick.netCommandsCheckedSaveUrgentBoost];
    [itsDogTintFarButton addTarget:self action:@selector(wonWorkWrapperCutClientAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:itsDogTintFarButton];
    [itsDogTintFarButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.trapEvictTextField.mas_bottom).offset(BestSharpen.didNapCoptic.kitShapeBits);
        make.left.mas_equalTo(BestSharpen.didNapCoptic.polarBothSub);
        make.right.mas_equalTo(-BestSharpen.didNapCoptic.polarBothSub);
        make.height.mas_equalTo(BestSharpen.didNapCoptic.oldTextPrint);
    }];
    
    [self.view addSubview:self.pongBrandHitLabel];
    [self.pongBrandHitLabel setCapacityUnitRespondFarsiOpenIncrement:^{
        bigCursor(self);
        [self precisionRegularCyclingFloorAdaptorSerifAction];
    }];
    [self.pongBrandHitLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(-BestSharpen.didNapCoptic.maintainKeep);
        make.left.mas_equalTo(BestSharpen.didNapCoptic.obscuredSame);
        make.right.mas_equalTo(-BestSharpen.didNapCoptic.obscuredSame);
    }];
}

- (void)wonWorkWrapperCutClientAction:(UIButton *)sender {
    if (self.frenchAlongTextField.frenchAlongTextField.text.badUptimeSon) {
        [SheAlertView affectingSurrogateGrandauntPrioritySlantAnnotated:BestSharpen.hangFillerPick.cutHebrew message:BestSharpen.hangFillerPick.endpointListenerRegularBayerSiteManual completion:nil];
        return;
    }
    if (self.trapEvictTextField.text.badUptimeSon) {
        [SheAlertView affectingSurrogateGrandauntPrioritySlantAnnotated:BestSharpen.hangFillerPick.cutHebrew message:BestSharpen.hangFillerPick.delayAskLeaveCyrillicInterrupt completion:nil];
        return;
    }
    NSString *humanLateCode = self.frenchAlongTextField.hardWarpIllRet;
    NSString *bloodKinKey = self.frenchAlongTextField.prefixRejectLeastCoachedEvaluated;
    if ([self.thinEchoState respondsToSelector:@selector(stormDisparityNanogramsDescentPartialFarFullyGeorgian:code:lookCode:completion:)]) {
        [CheckFloorView toggleOutsideWindow];
        [self.thinEchoState stormDisparityNanogramsDescentPartialFarFullyGeorgian:bloodKinKey code:self.trapEvictTextField.text lookCode:humanLateCode completion:^(id object) {
            [CheckFloorView solidCapSobTightSupportedWindow];
        }];
    }
}


- (void)precisionRegularCyclingFloorAdaptorSerifAction {
    RedOneMillBestViewController *managedStore = [RedOneMillBestViewController new];
    managedStore.tenHitError = @(YES);
    managedStore.thinEchoState = self.thinEchoState;
    [managedStore setTicketsArtDateDeferringBook:^(BOOL result) {
        self.pongBrandHitLabel.shadowReferent = result;
    }];
    [self.navigationController pushViewController:managedStore animated:NO];
}

- (void)dealloc {
    [self.bookmarksButton argumentPartialOneGuideBevel];
}
@end
