






#import "PrimariesViewController.h"
#import "HexWonLossyButton.h"
#import "SharingCombineViewController.h"
#import "TryToast.h"
#import "RotateTowerLabel.h"
#import "FailBuddyTextField.h"
#import "NSString+MayRename.h"

@interface PrimariesViewController ()

@property (nonatomic, strong) FailBuddyTextField *pivotBagItsTextField;
@property (nonatomic, strong) UITextField *collisionTextField;
@property (nonatomic, strong) HexWonLossyButton *localizedButton;
@property (nonatomic,strong) RotateTowerLabel *teamTwoPasteLabel;

@end

@implementation PrimariesViewController

- (HexWonLossyButton *)localizedButton {
    if (!_localizedButton) {
        _localizedButton = [[HexWonLossyButton alloc] init];
    }
    return _localizedButton;
}

- (RotateTowerLabel *)teamTwoPasteLabel {
    if (!_teamTwoPasteLabel) {
        _teamTwoPasteLabel = [RotateTowerLabel threeImperialLabel:NO];
    }
    return _teamTwoPasteLabel;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.pivotBagItsTextField = [[FailBuddyTextField alloc] initWithController:self];
    [self.view addSubview:self.pivotBagItsTextField];
    [self.pivotBagItsTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(SafeTradEar.smallestMany.fiberViewLaw);
        make.left.mas_equalTo(SafeTradEar.smallestMany.farFormPivot);
        make.right.mas_equalTo(-SafeTradEar.smallestMany.farFormPivot);
        make.height.mas_equalTo(SafeTradEar.smallestMany.swipeMaxTool);
    }];
    
    
    self.collisionTextField = [SafeTradEar meanCoalescedDenseAnnotatedPenHurricaneCode];
    [self.view addSubview:self.collisionTextField];
    [self.collisionTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.pivotBagItsTextField.mas_bottom).offset(SafeTradEar.smallestMany.paddleOutlet);
        make.left.mas_equalTo(SafeTradEar.smallestMany.farFormPivot);
        make.height.mas_equalTo(SafeTradEar.smallestMany.swipeMaxTool);
    }];
    
    allDeny(self);
    self.localizedButton.waxHashYouMinAction = ^{
        incorrect(self);
        NSString *moireFaceCode = self.pivotBagItsTextField.sixBookEyeWide;
        NSString *infoSession = self.pivotBagItsTextField.lingerAirBuddyBridgingMoment;
        if (self.pivotBagItsTextField.pivotBagItsTextField.text.followHelper) {
            [self.localizedButton redirectsRenameInfoRenderedInvoke];
            [NetAlertView itsBlendEarlierPlusAssameseHas:SafeTradEar.bankRowTapsAsk.armHebrew message:SafeTradEar.bankRowTapsAsk.interlaceBehaviorCoalescedBitMagnesiumAsset completion:nil];
            return;
        }
        if ([self.putAddEggLoop respondsToSelector:@selector(ownTipSliderSupportLeapBlobIndexingType:blackVendor:deepCode:completion:)]) {
            [OfferAngleView inuitFailJoinWindow];
            [self.putAddEggLoop ownTipSliderSupportLeapBlobIndexingType:SafeTradEar.smallestMany.pushFetchInsideInternalForward blackVendor:infoSession deepCode:moireFaceCode completion:^(id object) {
                [OfferAngleView excludedHeadEditorsSoloistOriginWindow];
                if ([object boolValue]) {
                    [TryToast forkMapOur:SafeTradEar.bankRowTapsAsk.blockScoreSecondRopeAngleResourceCode];
                }else {
                    [self.localizedButton redirectsRenameInfoRenderedInvoke];
                }
            }];
        }
    };
    [self.view addSubview:self.localizedButton];
    [self.localizedButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.collisionTextField);
        make.height.equalTo(self.collisionTextField);
        make.left.equalTo(self.collisionTextField.mas_right).offset(SafeTradEar.smallestMany.gigabytesYet);
        make.right.equalTo(self.pivotBagItsTextField);
    }];
    
    
    [self.localizedButton setContentHuggingPriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
    
    
    UIButton *eightShiftArmButton = [SafeTradEar endRedImageAccessingGrandauntColor:SafeTradEar.bankRowTapsAsk.meanBeaconsPrepareImproperFairInserted];
    [eightShiftArmButton addTarget:self action:@selector(adoptKinMilesArbiterInuitAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:eightShiftArmButton];
    [eightShiftArmButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.collisionTextField.mas_bottom).offset(SafeTradEar.smallestMany.paddleOutlet);
        make.left.mas_equalTo(SafeTradEar.smallestMany.farFormPivot);
        make.right.mas_equalTo(-SafeTradEar.smallestMany.farFormPivot);
        make.height.mas_equalTo(SafeTradEar.smallestMany.fixTransient);
    }];
    
    [self.view addSubview:self.teamTwoPasteLabel];
    [self.teamTwoPasteLabel setHighlightCatMileDesignBrowsePashto:^{
        incorrect(self);
        [self quietEraSpeakingLoadExtendsSafariAction];
    }];
    [self.teamTwoPasteLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(-SafeTradEar.smallestMany.cupSignalSaw);
        make.left.mas_equalTo(SafeTradEar.smallestMany.popTryArtery);
        make.right.mas_equalTo(-SafeTradEar.smallestMany.popTryArtery);
    }];
}

- (void)adoptKinMilesArbiterInuitAction:(UIButton *)sender {
    if (self.pivotBagItsTextField.pivotBagItsTextField.text.followHelper) {
        [NetAlertView itsBlendEarlierPlusAssameseHas:SafeTradEar.bankRowTapsAsk.armHebrew message:SafeTradEar.bankRowTapsAsk.interlaceBehaviorCoalescedBitMagnesiumAsset completion:nil];
        return;
    }
    if (self.collisionTextField.text.followHelper) {
        [NetAlertView itsBlendEarlierPlusAssameseHas:SafeTradEar.bankRowTapsAsk.armHebrew message:SafeTradEar.bankRowTapsAsk.streetSessionsNoneShortMost completion:nil];
        return;
    }
    NSString *moireFaceCode = self.pivotBagItsTextField.sixBookEyeWide;
    NSString *infoSession = self.pivotBagItsTextField.lingerAirBuddyBridgingMoment;
    if ([self.putAddEggLoop respondsToSelector:@selector(resultingUkrainianMidCenterExposeAdvancePrecisionStep:code:deepCode:completion:)]) {
        [OfferAngleView inuitFailJoinWindow];
        [self.putAddEggLoop resultingUkrainianMidCenterExposeAdvancePrecisionStep:infoSession code:self.collisionTextField.text deepCode:moireFaceCode completion:^(id object) {
            [OfferAngleView excludedHeadEditorsSoloistOriginWindow];
        }];
    }
}


- (void)quietEraSpeakingLoadExtendsSafariAction {
    SharingCombineViewController *hexArrayHair = [SharingCombineViewController new];
    hexArrayHair.cupDropHour = @(YES);
    hexArrayHair.putAddEggLoop = self.putAddEggLoop;
    [hexArrayHair setFastLingerRunSymbolBalance:^(BOOL result) {
        self.teamTwoPasteLabel.ironTryMinFast = result;
    }];
    [self.navigationController pushViewController:hexArrayHair animated:NO];
}

- (void)dealloc {
    [self.localizedButton redirectsRenameInfoRenderedInvoke];
}
@end
