






#import "SpokenCanViewController.h"
#import "PickWayEdgaButton.h"
#import "MenTrustSawAnyViewController.h"
#import "PutToast.h"
#import "OldestAssetLabel.h"
#import "YellowBagTextField.h"
#import "NSString+LayerPair.h"

@interface SpokenCanViewController ()

@property (nonatomic, strong) YellowBagTextField *anchorsHighTextField;
@property (nonatomic, strong) UITextField *minderNotTextField;
@property (nonatomic, strong) PickWayEdgaButton *integrateButton;
@property (nonatomic,strong) OldestAssetLabel *beatTriangleLabel;

@end

@implementation SpokenCanViewController

- (PickWayEdgaButton *)integrateButton {
    if (!_integrateButton) {
        _integrateButton = [[PickWayEdgaButton alloc] init];
    }
    return _integrateButton;
}

- (OldestAssetLabel *)beatTriangleLabel {
    if (!_beatTriangleLabel) {
        _beatTriangleLabel = [OldestAssetLabel staleRestoresLabel:NO];
    }
    return _beatTriangleLabel;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.anchorsHighTextField = [[YellowBagTextField alloc] initWithController:self];
    [self.view addSubview:self.anchorsHighTextField];
    [self.anchorsHighTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(CityPublish.halfInferCan.privacyTitle);
        make.left.mas_equalTo(CityPublish.halfInferCan.shortRearTen);
        make.right.mas_equalTo(-CityPublish.halfInferCan.shortRearTen);
        make.height.mas_equalTo(CityPublish.halfInferCan.instancesAre);
    }];
    
    
    self.minderNotTextField = [CityPublish sawControlTreeDecayKeyUnderCode];
    [self.view addSubview:self.minderNotTextField];
    [self.minderNotTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.anchorsHighTextField.mas_bottom).offset(CityPublish.halfInferCan.aloneCreator);
        make.left.mas_equalTo(CityPublish.halfInferCan.shortRearTen);
        make.height.mas_equalTo(CityPublish.halfInferCan.instancesAre);
    }];
    
    archery(self);
    self.integrateButton.faceGetKinMayAction = ^{
        leapHover(self);
        NSString *tallEveryCode = self.anchorsHighTextField.startedCorrupt;
        NSString *patternsTen = self.anchorsHighTextField.socketStorylineLineHeadIrish;
        if (self.anchorsHighTextField.anchorsHighTextField.text.multipleUses) {
            [self.integrateButton sequencesArtDetectorAgreementNorth];
            [KeyAlertView dropProduceChineseEraInvertedTruncated:CityPublish.throughHosting.establish message:CityPublish.throughHosting.pointerPotentialSessionLayerUnlikelyOur completion:nil];
            return;
        }
        if ([self.pushDeviation respondsToSelector:@selector(artMinRearrangeBracketDarkerNearUighurType:invertModal:stayCode:completion:)]) {
            [AreSnapCatView theNowFixToneWindow];
            [self.pushDeviation artMinRearrangeBracketDarkerNearUighurType:CityPublish.halfInferCan.selectMalteseDisorderDarkenIndian invertModal:patternsTen stayCode:tallEveryCode completion:^(id object) {
                [AreSnapCatView peakCalculateAllowableRepliesQuitWindow];
                if ([object boolValue]) {
                    [PutToast roleExpert:CityPublish.throughHosting.canonChatClickedDayTrackWhoCode];
                }else {
                    [self.integrateButton sequencesArtDetectorAgreementNorth];
                }
            }];
        }
    };
    [self.view addSubview:self.integrateButton];
    [self.integrateButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.minderNotTextField);
        make.height.equalTo(self.minderNotTextField);
        make.left.equalTo(self.minderNotTextField.mas_right).offset(CityPublish.halfInferCan.minSynthetic);
        make.right.equalTo(self.anchorsHighTextField);
    }];
    
    
    [self.integrateButton setContentHuggingPriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
    
    
    UIButton *rareIllDayKeyButton = [CityPublish segmentGeometricTripleOldestZoomColor:CityPublish.throughHosting.samplerMenuPanForkProcessedActivated];
    [rareIllDayKeyButton addTarget:self action:@selector(summaryScheduledOptionalFunkDefinesAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:rareIllDayKeyButton];
    [rareIllDayKeyButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.minderNotTextField.mas_bottom).offset(CityPublish.halfInferCan.aloneCreator);
        make.left.mas_equalTo(CityPublish.halfInferCan.shortRearTen);
        make.right.mas_equalTo(-CityPublish.halfInferCan.shortRearTen);
        make.height.mas_equalTo(CityPublish.halfInferCan.hiddenPlural);
    }];
    
    [self.view addSubview:self.beatTriangleLabel];
    [self.beatTriangleLabel setPromptShapeMemberBagLoadSiblings:^{
        leapHover(self);
        [self tooEditSoloPopCurrentlyProvidedAction];
    }];
    [self.beatTriangleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(-CityPublish.halfInferCan.notIntegrate);
        make.left.mas_equalTo(CityPublish.halfInferCan.standardDeny);
        make.right.mas_equalTo(-CityPublish.halfInferCan.standardDeny);
    }];
}

- (void)summaryScheduledOptionalFunkDefinesAction:(UIButton *)sender {
    if (self.anchorsHighTextField.anchorsHighTextField.text.multipleUses) {
        [KeyAlertView dropProduceChineseEraInvertedTruncated:CityPublish.throughHosting.establish message:CityPublish.throughHosting.pointerPotentialSessionLayerUnlikelyOur completion:nil];
        return;
    }
    if (self.minderNotTextField.text.multipleUses) {
        [KeyAlertView dropProduceChineseEraInvertedTruncated:CityPublish.throughHosting.establish message:CityPublish.throughHosting.committedSoloistReaderEasyColumns completion:nil];
        return;
    }
    NSString *tallEveryCode = self.anchorsHighTextField.startedCorrupt;
    NSString *patternsTen = self.anchorsHighTextField.socketStorylineLineHeadIrish;
    if ([self.pushDeviation respondsToSelector:@selector(coalescedFocusesHigherMinBitDiscardsBeaconWhite:code:stayCode:completion:)]) {
        [AreSnapCatView theNowFixToneWindow];
        [self.pushDeviation coalescedFocusesHigherMinBitDiscardsBeaconWhite:patternsTen code:self.minderNotTextField.text stayCode:tallEveryCode completion:^(id object) {
            [AreSnapCatView peakCalculateAllowableRepliesQuitWindow];
        }];
    }
}


- (void)tooEditSoloPopCurrentlyProvidedAction {
    MenTrustSawAnyViewController *maskArmGrade = [MenTrustSawAnyViewController new];
    maskArmGrade.arrowSunSex = @(YES);
    maskArmGrade.pushDeviation = self.pushDeviation;
    [maskArmGrade setReviewVolumeListenProtectedOunces:^(BOOL result) {
        self.beatTriangleLabel.saltCurvePress = result;
    }];
    [self.navigationController pushViewController:maskArmGrade animated:NO];
}

- (void)dealloc {
    [self.integrateButton sequencesArtDetectorAgreementNorth];
}
@end
