






#import "OverwriteViewController.h"
#import "SpaAlienOldButton.h"
#import "TenToast.h"
#import "WhileMeanTextField.h"
#import "NSString+ArtBeacon.h"

@interface OverwriteViewController ()

@property (nonatomic, strong) WhileMeanTextField *mealDomainsTextField;
@property (nonatomic, strong) UITextField *repairMapTextField;
@property (nonatomic, strong) UITextField *placeAirShelfTextField;
@property (nonatomic, strong) SpaAlienOldButton *draftSnapButton;
@end

@implementation OverwriteViewController

- (SpaAlienOldButton *)draftSnapButton {
    if (!_draftSnapButton) {
        _draftSnapButton = [[SpaAlienOldButton alloc] init];
    }
    return _draftSnapButton;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.mealDomainsTextField = [[WhileMeanTextField alloc] initWithController:self];
    [self.view addSubview:self.mealDomainsTextField];
    [self.mealDomainsTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(BadgeSunIcy.greekBlueArt.effortHexTap);
        make.left.mas_equalTo(BadgeSunIcy.greekBlueArt.restoresCity);
        make.right.mas_equalTo(-BadgeSunIcy.greekBlueArt.restoresCity);
        make.height.mas_equalTo(BadgeSunIcy.greekBlueArt.muteEmailTab);
    }];
    
    
    self.repairMapTextField = [BadgeSunIcy exceedsExplicitKitSegmentedAdvisedEnhanceCode];
    [self.view addSubview:self.repairMapTextField];
    [self.repairMapTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.mealDomainsTextField.mas_bottom).offset(BadgeSunIcy.greekBlueArt.introAnyOut);
        make.left.mas_equalTo(BadgeSunIcy.greekBlueArt.restoresCity);
        make.height.mas_equalTo(BadgeSunIcy.greekBlueArt.muteEmailTab);
    }];
    
    spaPlan(self);
    self.draftSnapButton.firstIdiomNowAction = ^{
        distorted(self);
        
        NSString *slabClickCode = self.mealDomainsTextField.fullStoneImage;
        NSString *symptomDate = self.mealDomainsTextField.parameterReuseEngravedKinContained;
        if (self.mealDomainsTextField.mealDomainsTextField.text.chainPoolTop) {
            [self.draftSnapButton fiberSubscriptArbiterHundredsParagraph];
            [TagAlertView schoolSerbianIllInstallsMagentaToo:BadgeSunIcy.lastCaretReply.renameEra message:BadgeSunIcy.lastCaretReply.farWhoManLongCutoffEra completion:nil];
            return;
        }
        if ([self.youInsulinHis respondsToSelector:@selector(unwindingFutureOxygenRadixReservedTomorrowObservingType:bitHeadAuto:barsCode:completion:)]) {
            [DarwinThatView putAreTextualWindow];
            [self.youInsulinHis unwindingFutureOxygenRadixReservedTomorrowObservingType:BadgeSunIcy.greekBlueArt.fairConsumedThousandsAffineMeasure bitHeadAuto:symptomDate barsCode:slabClickCode completion:^(id object) {
                [DarwinThatView unboundTamilMobilePhaseAdditionWindow];
                if ([object boolValue]) {
                    [TenToast sparseFlag:BadgeSunIcy.lastCaretReply.croppingExtentsStreamedSilencedFirstThiaminCode];
                }else {
                    [self.draftSnapButton fiberSubscriptArbiterHundredsParagraph];
                }
            }];
        }
    };
    [self.view addSubview:self.draftSnapButton];
    [self.draftSnapButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.repairMapTextField);
        make.height.equalTo(self.repairMapTextField);
        make.right.equalTo(self.mealDomainsTextField);
        
        make.width.mas_equalTo(self.draftSnapButton.titleLabel.intrinsicContentSize.width + BadgeSunIcy.greekBlueArt.echoSobAxial);
    }];
    
    [self.repairMapTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self.draftSnapButton.mas_left).offset(-BadgeSunIcy.greekBlueArt.ornamentShow);
    }];
    
    
    self.placeAirShelfTextField = [BadgeSunIcy clearedFootLessAvailChinesePassword:YES];
    [self.view addSubview:self.placeAirShelfTextField];
    [self.placeAirShelfTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.repairMapTextField.mas_bottom).offset(BadgeSunIcy.greekBlueArt.introAnyOut);
        make.left.mas_equalTo(BadgeSunIcy.greekBlueArt.restoresCity);
        make.right.mas_equalTo(-BadgeSunIcy.greekBlueArt.restoresCity);
        make.height.mas_equalTo(BadgeSunIcy.greekBlueArt.muteEmailTab);
    }];
    UIButton *plainIllButton = self.placeAirShelfTextField.rightView.subviews.firstObject;
    [plainIllButton addTarget:self action:@selector(operatePlaySmallHaveResourcesUtilitiesHandler:) forControlEvents:(UIControlEventTouchUpInside)];
    
    
    UIButton *transferSinButton = [BadgeSunIcy birthConductorWeekendDirectoryExtensionColor:BadgeSunIcy.lastCaretReply.conflictCanKey];
    [transferSinButton addTarget:self action:@selector(caretToleranceRightTeluguPostalAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:transferSinButton];
    [transferSinButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.placeAirShelfTextField.mas_bottom).offset(BadgeSunIcy.greekBlueArt.introAnyOut);
        make.left.mas_equalTo(BadgeSunIcy.greekBlueArt.restoresCity);
        make.right.mas_equalTo(-BadgeSunIcy.greekBlueArt.restoresCity);
        make.height.mas_equalTo(BadgeSunIcy.greekBlueArt.pintBitError);
    }];
}
- (void)operatePlaySmallHaveResourcesUtilitiesHandler:(UIButton *)sender {
    sender.selected = !sender.isSelected;
    self.placeAirShelfTextField.secureTextEntry = !self.placeAirShelfTextField.isSecureTextEntry;
}

- (void)caretToleranceRightTeluguPostalAction:(id)sender {
    if (self.mealDomainsTextField.mealDomainsTextField.text.chainPoolTop) {
        [TagAlertView schoolSerbianIllInstallsMagentaToo:BadgeSunIcy.lastCaretReply.renameEra message:BadgeSunIcy.lastCaretReply.farWhoManLongCutoffEra completion:nil];
        return;
    }
    if (self.repairMapTextField.text.chainPoolTop) {
        [TagAlertView schoolSerbianIllInstallsMagentaToo:BadgeSunIcy.lastCaretReply.renameEra message:BadgeSunIcy.lastCaretReply.interruptArchiveBackwardsSpanArcade completion:nil];
        return;
    }
    if (self.placeAirShelfTextField.text.length < BadgeSunIcy.greekBlueArt.existingShe) {
        [TagAlertView schoolSerbianIllInstallsMagentaToo:BadgeSunIcy.lastCaretReply.renameEra message:BadgeSunIcy.lastCaretReply.grandsonWillImperialSupportedHeaderSay completion:nil];
        return;
    }
    NSString *slabClickCode = self.mealDomainsTextField.fullStoneImage;
    NSString *symptomDate = self.mealDomainsTextField.parameterReuseEngravedKinContained;
    if ([self.youInsulinHis respondsToSelector:@selector(pubWrongDeltaAmbientCircleChecksumProducing:code:barsCode:armKey:completion:)]) {
        [DarwinThatView putAreTextualWindow];
        [self.youInsulinHis pubWrongDeltaAmbientCircleChecksumProducing:symptomDate code:self.repairMapTextField.text barsCode:slabClickCode armKey:self.placeAirShelfTextField.text completion:^(id object) {
            [DarwinThatView unboundTamilMobilePhaseAdditionWindow];
            [TenToast sparseFlag:BadgeSunIcy.lastCaretReply.halftoneAzimuthHairInsulinIntensity];
            if (object) {
                [self.dueCarBloodDelegate cleanDrumRemovableCroppingThumbWithName:object queryDevicePassword:self.placeAirShelfTextField.text];
                [self earQueryKilogramsNormalVolumeAction:nil];
            }
        }];
    }
}

- (void)dealloc {
    [self.draftSnapButton fiberSubscriptArbiterHundredsParagraph];
}
@end
