






#import "ReasonHasViewController.h"
#import "PickWayEdgaButton.h"
#import "PutToast.h"
#import "YellowBagTextField.h"
#import "NSString+LayerPair.h"

@interface ReasonHasViewController ()

@property (nonatomic, strong) YellowBagTextField *anchorsHighTextField;
@property (nonatomic, strong) UITextField *minderNotTextField;
@property (nonatomic, strong) UITextField *inactiveNonceTextField;
@property (nonatomic, strong) PickWayEdgaButton *integrateButton;
@end

@implementation ReasonHasViewController

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

- (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.tightDueAdd);
        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.tensionHyphenRowIndicesPeriod 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];
    
    
    self.inactiveNonceTextField = [CityPublish transposeAnchorsReferenceReceivedDesignPassword:YES];
    [self.view addSubview:self.inactiveNonceTextField];
    [self.inactiveNonceTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.minderNotTextField.mas_bottom).offset(CityPublish.halfInferCan.tightDueAdd);
        make.left.mas_equalTo(CityPublish.halfInferCan.shortRearTen);
        make.right.mas_equalTo(-CityPublish.halfInferCan.shortRearTen);
        make.height.mas_equalTo(CityPublish.halfInferCan.instancesAre);
    }];
    UIButton *consumedButton = self.inactiveNonceTextField.rightView.subviews.firstObject;
    [consumedButton addTarget:self action:@selector(particlePintScreenTwelveIncludesViewHandler:) forControlEvents:(UIControlEventTouchUpInside)];
    
    
    UIButton *busAskFloatButton = [CityPublish segmentGeometricTripleOldestZoomColor:CityPublish.throughHosting.cupFatCacheKey];
    [busAskFloatButton addTarget:self action:@selector(conflictsScrolledFilteredCanFetchAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:busAskFloatButton];
    [busAskFloatButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.inactiveNonceTextField.mas_bottom).offset(CityPublish.halfInferCan.tightDueAdd);
        make.left.mas_equalTo(CityPublish.halfInferCan.shortRearTen);
        make.right.mas_equalTo(-CityPublish.halfInferCan.shortRearTen);
        make.height.mas_equalTo(CityPublish.halfInferCan.hiddenPlural);
    }];
}
- (void)particlePintScreenTwelveIncludesViewHandler:(UIButton *)sender {
    sender.selected = !sender.isSelected;
    self.inactiveNonceTextField.secureTextEntry = !self.inactiveNonceTextField.isSecureTextEntry;
}

- (void)conflictsScrolledFilteredCanFetchAction:(id)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;
    }
    if (self.inactiveNonceTextField.text.length < CityPublish.halfInferCan.redCampaign) {
        [KeyAlertView dropProduceChineseEraInvertedTruncated:CityPublish.throughHosting.establish message:CityPublish.throughHosting.blueLetterFourComputerLowMinimum completion:nil];
        return;
    }
    NSString *tallEveryCode = self.anchorsHighTextField.startedCorrupt;
    NSString *patternsTen = self.anchorsHighTextField.socketStorylineLineHeadIrish;
    if ([self.pushDeviation respondsToSelector:@selector(nowZipSliceSunOptimizeBinEntry:code:stayCode:areKey:completion:)]) {
        [AreSnapCatView theNowFixToneWindow];
        [self.pushDeviation nowZipSliceSunOptimizeBinEntry:patternsTen code:self.minderNotTextField.text stayCode:tallEveryCode areKey:self.inactiveNonceTextField.text completion:^(id object) {
            [AreSnapCatView peakCalculateAllowableRepliesQuitWindow];
            [PutToast roleExpert:CityPublish.throughHosting.qualifiedEditorWasFaeroeseDelivery];
            if (object) {
                [self.fixCapGlyphDelegate readNiacinExpectsWaxHangWithName:object airActivatePassword:self.inactiveNonceTextField.text];
                [self nibblesParentalPathSubIntervalsAction:nil];
            }
        }];
    }
}

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