






#import "AffineIcyViewController.h"
#import "BandWrapperButton.h"
#import "KeyToast.h"
#import "IntersectTextField.h"
#import "NSString+TenIndoor.h"

@interface AffineIcyViewController ()

@property (nonatomic, strong) IntersectTextField *walkHandlesTextField;
@property (nonatomic, strong) UITextField *audiencesTextField;
@property (nonatomic, strong) UITextField *thinMakeEnterTextField;
@property (nonatomic, strong) BandWrapperButton *compositeButton;
@end

@implementation AffineIcyViewController

- (BandWrapperButton *)compositeButton {
    if (!_compositeButton) {
        _compositeButton = [[BandWrapperButton alloc] init];
    }
    return _compositeButton;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.walkHandlesTextField = [[IntersectTextField alloc] initWithController:self];
    [self.view addSubview:self.walkHandlesTextField];
    [self.walkHandlesTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(MouthOunces.logTwelveEnd.expiresMouth);
        make.left.mas_equalTo(MouthOunces.logTwelveEnd.privacyNorth);
        make.right.mas_equalTo(-MouthOunces.logTwelveEnd.privacyNorth);
        make.height.mas_equalTo(MouthOunces.logTwelveEnd.leftSmallTop);
    }];
    
    
    self.audiencesTextField = [MouthOunces diagnoseHisChatLooperFourthSmileCode];
    [self.view addSubview:self.audiencesTextField];
    [self.audiencesTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.walkHandlesTextField.mas_bottom).offset(MouthOunces.logTwelveEnd.assignTrash);
        make.left.mas_equalTo(MouthOunces.logTwelveEnd.privacyNorth);
        make.height.mas_equalTo(MouthOunces.logTwelveEnd.leftSmallTop);
    }];
    
    tagBody(self);
    self.compositeButton.foldOfferHalfAction = ^{
        dueInvite(self);
        
        NSString *dirtyListCode = self.walkHandlesTextField.schoolManySize;
        NSString *pongScripts = self.walkHandlesTextField.duplicateDescendYouBannerFathoms;
        if (self.walkHandlesTextField.walkHandlesTextField.text.prologNapPen) {
            [self.compositeButton amharicStereoBeganDeferringCivil];
            [GetAlertView refreshedResponsesGatheringRemainingSystemTriggers:MouthOunces.chatRingCharge.panMetric message:MouthOunces.chatRingCharge.sunIndicatorReceiptSharingClampNarrative completion:nil];
            return;
        }
        if ([self.exerciseThumb respondsToSelector:@selector(moderateDoubleArtBandwidthRedTallSupplyType:lawSaturate:highCode:completion:)]) {
            [OneCatalanView rowsArmAgeAskWindow];
            [self.exerciseThumb moderateDoubleArtBandwidthRedTallSupplyType:MouthOunces.logTwelveEnd.brownRemotelyBeginArmenianNet lawSaturate:pongScripts highCode:dirtyListCode completion:^(id object) {
                [OneCatalanView balticDecimalPublishEightArtWindow];
                if ([object boolValue]) {
                    [KeyToast zipFitDown:MouthOunces.chatRingCharge.mildGenericLettishOptimizeBoundarySpatialCode];
                }else {
                    [self.compositeButton amharicStereoBeganDeferringCivil];
                }
            }];
        }
    };
    [self.view addSubview:self.compositeButton];
    [self.compositeButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.audiencesTextField);
        make.height.equalTo(self.audiencesTextField);
        make.right.equalTo(self.walkHandlesTextField);
        
        make.width.mas_equalTo(self.compositeButton.titleLabel.intrinsicContentSize.width + MouthOunces.logTwelveEnd.soloistRaise);
    }];
    
    [self.audiencesTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self.compositeButton.mas_left).offset(-MouthOunces.logTwelveEnd.oldBandUnify);
    }];
    
    
    self.thinMakeEnterTextField = [MouthOunces hurricaneRelationPostalPreventsBreakPassword:YES];
    [self.view addSubview:self.thinMakeEnterTextField];
    [self.thinMakeEnterTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.audiencesTextField.mas_bottom).offset(MouthOunces.logTwelveEnd.assignTrash);
        make.left.mas_equalTo(MouthOunces.logTwelveEnd.privacyNorth);
        make.right.mas_equalTo(-MouthOunces.logTwelveEnd.privacyNorth);
        make.height.mas_equalTo(MouthOunces.logTwelveEnd.leftSmallTop);
    }];
    UIButton *picturesButton = self.thinMakeEnterTextField.rightView.subviews.firstObject;
    [picturesButton addTarget:self action:@selector(iconExpansionSwahiliTypeMountPacketHandler:) forControlEvents:(UIControlEventTouchUpInside)];
    
    
    UIButton *menLikeBurnButton = [MouthOunces scaleFaxEstonianLogChamberColor:MouthOunces.chatRingCharge.menWarnLikeKey];
    [menLikeBurnButton addTarget:self action:@selector(givenRedRawFeatRhythmAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:menLikeBurnButton];
    [menLikeBurnButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.thinMakeEnterTextField.mas_bottom).offset(MouthOunces.logTwelveEnd.assignTrash);
        make.left.mas_equalTo(MouthOunces.logTwelveEnd.privacyNorth);
        make.right.mas_equalTo(-MouthOunces.logTwelveEnd.privacyNorth);
        make.height.mas_equalTo(MouthOunces.logTwelveEnd.kilowattsArt);
    }];
}
- (void)iconExpansionSwahiliTypeMountPacketHandler:(UIButton *)sender {
    sender.selected = !sender.isSelected;
    self.thinMakeEnterTextField.secureTextEntry = !self.thinMakeEnterTextField.isSecureTextEntry;
}

- (void)givenRedRawFeatRhythmAction:(id)sender {
    if (self.walkHandlesTextField.walkHandlesTextField.text.prologNapPen) {
        [GetAlertView refreshedResponsesGatheringRemainingSystemTriggers:MouthOunces.chatRingCharge.panMetric message:MouthOunces.chatRingCharge.sunIndicatorReceiptSharingClampNarrative completion:nil];
        return;
    }
    if (self.audiencesTextField.text.prologNapPen) {
        [GetAlertView refreshedResponsesGatheringRemainingSystemTriggers:MouthOunces.chatRingCharge.panMetric message:MouthOunces.chatRingCharge.warnCupImportantConnectedLayout completion:nil];
        return;
    }
    if (self.thinMakeEnterTextField.text.length < MouthOunces.logTwelveEnd.pinkEyeKeys) {
        [GetAlertView refreshedResponsesGatheringRemainingSystemTriggers:MouthOunces.chatRingCharge.panMetric message:MouthOunces.chatRingCharge.metabolicSixSleepSaturatedWorkBlur completion:nil];
        return;
    }
    NSString *dirtyListCode = self.walkHandlesTextField.schoolManySize;
    NSString *pongScripts = self.walkHandlesTextField.duplicateDescendYouBannerFathoms;
    if ([self.exerciseThumb respondsToSelector:@selector(toggleSaturatedIslamicPlacementWideFormRedo:code:highCode:howKey:completion:)]) {
        [OneCatalanView rowsArmAgeAskWindow];
        [self.exerciseThumb toggleSaturatedIslamicPlacementWideFormRedo:pongScripts code:self.audiencesTextField.text highCode:dirtyListCode howKey:self.thinMakeEnterTextField.text completion:^(id object) {
            [OneCatalanView balticDecimalPublishEightArtWindow];
            [KeyToast zipFitDown:MouthOunces.chatRingCharge.overflowHexBadOppositeUser];
            if (object) {
                [self.entryFarAndDelegate cadenceEarlyComparedDescribeMixWithName:object forkSameAndPassword:self.thinMakeEnterTextField.text];
                [self ligatureNordicBeaconSortIcyAction:nil];
            }
        }];
    }
}

- (void)dealloc {
    [self.compositeButton amharicStereoBeganDeferringCivil];
}
@end
