






#import "CollectorViewController.h"
#import "AdoptRedRedButton.h"
#import "JobToast.h"
#import "SonFriendTextField.h"
#import "NSString+Magnesium.h"

@interface CollectorViewController ()

@property (nonatomic, strong) SonFriendTextField *tabDryDeltaTextField;
@property (nonatomic, strong) UITextField *toggleAskTextField;
@property (nonatomic, strong) UITextField *fixTooSquaredTextField;
@property (nonatomic, strong) AdoptRedRedButton *fileParseButton;
@end

@implementation CollectorViewController

- (AdoptRedRedButton *)fileParseButton {
    if (!_fileParseButton) {
        _fileParseButton = [[AdoptRedRedButton alloc] init];
    }
    return _fileParseButton;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.tabDryDeltaTextField = [[SonFriendTextField alloc] initWithController:self];
    [self.view addSubview:self.tabDryDeltaTextField];
    [self.tabDryDeltaTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(RowGivenOut.mathProxyKin.saySnowRound);
        make.left.mas_equalTo(RowGivenOut.mathProxyKin.clipPivotAll);
        make.right.mas_equalTo(-RowGivenOut.mathProxyKin.clipPivotAll);
        make.height.mas_equalTo(RowGivenOut.mathProxyKin.spaGaspScore);
    }];
    
    
    self.toggleAskTextField = [RowGivenOut siblingsPublisherMetricToneGenderCreatorCode];
    [self.view addSubview:self.toggleAskTextField];
    [self.toggleAskTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.tabDryDeltaTextField.mas_bottom).offset(RowGivenOut.mathProxyKin.theSumThick);
        make.left.mas_equalTo(RowGivenOut.mathProxyKin.clipPivotAll);
        make.height.mas_equalTo(RowGivenOut.mathProxyKin.spaGaspScore);
    }];
    
    moveDay(self);
    self.fileParseButton.bitTextJobHexAction = ^{
        tapsAlong(self);
        
        NSString *funNotifyCode = self.tabDryDeltaTextField.moveAllHitMild;
        NSString *touchesMake = self.tabDryDeltaTextField.cyclingBridgeFixingActivatedSuffix;
        if (self.tabDryDeltaTextField.tabDryDeltaTextField.text.hindiDecimal) {
            [self.fileParseButton skippedLaterExposuresLifetimeNever];
            [AreAlertView internalTemporalAlignZipLayeringNatural:RowGivenOut.nineHisSoloTen.mediumOld message:RowGivenOut.nineHisSoloTen.headerNetPlayScrollThickRectified completion:nil];
            return;
        }
        if ([self.splatBrowsing respondsToSelector:@selector(onlineEveryEstimatedLinearlyProvidersChoosePerformsType:soundSearch:pickCode:completion:)]) {
            [OutWetFactView faxCarAgeMillWindow];
            [self.splatBrowsing onlineEveryEstimatedLinearlyProvidersChoosePerformsType:RowGivenOut.mathProxyKin.endsBarriersBlackApplierBits soundSearch:touchesMake pickCode:funNotifyCode completion:^(id object) {
                [OutWetFactView digestCanWrappedAcutePanoramaWindow];
                if ([object boolValue]) {
                    [JobToast wayMaxEdga:RowGivenOut.nineHisSoloTen.gradeIncreasePolarPositionPerfusionTremorCode];
                }else {
                    [self.fileParseButton skippedLaterExposuresLifetimeNever];
                }
            }];
        }
    };
    [self.view addSubview:self.fileParseButton];
    [self.fileParseButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.toggleAskTextField);
        make.height.equalTo(self.toggleAskTextField);
        make.right.equalTo(self.tabDryDeltaTextField);
        
        make.width.mas_equalTo(self.fileParseButton.titleLabel.intrinsicContentSize.width + RowGivenOut.mathProxyKin.anyHalfMagic);
    }];
    
    [self.toggleAskTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self.fileParseButton.mas_left).offset(-RowGivenOut.mathProxyKin.climbingMode);
    }];
    
    
    self.fixTooSquaredTextField = [RowGivenOut contactRecordedObtainOffMaskPassword:YES];
    [self.view addSubview:self.fixTooSquaredTextField];
    [self.fixTooSquaredTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.toggleAskTextField.mas_bottom).offset(RowGivenOut.mathProxyKin.theSumThick);
        make.left.mas_equalTo(RowGivenOut.mathProxyKin.clipPivotAll);
        make.right.mas_equalTo(-RowGivenOut.mathProxyKin.clipPivotAll);
        make.height.mas_equalTo(RowGivenOut.mathProxyKin.spaGaspScore);
    }];
    UIButton *positionButton = self.fixTooSquaredTextField.rightView.subviews.firstObject;
    [positionButton addTarget:self action:@selector(returningTorqueVelocityFreestyleMovieGoogleHandler:) forControlEvents:(UIControlEventTouchUpInside)];
    
    
    UIButton *photoPaddleButton = [RowGivenOut moreCutoffGuestSecondRedefinedColor:RowGivenOut.nineHisSoloTen.ensureCycleKey];
    [photoPaddleButton addTarget:self action:@selector(localCardBringCarriageCoulombsAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:photoPaddleButton];
    [photoPaddleButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.fixTooSquaredTextField.mas_bottom).offset(RowGivenOut.mathProxyKin.theSumThick);
        make.left.mas_equalTo(RowGivenOut.mathProxyKin.clipPivotAll);
        make.right.mas_equalTo(-RowGivenOut.mathProxyKin.clipPivotAll);
        make.height.mas_equalTo(RowGivenOut.mathProxyKin.rotateEarUse);
    }];
}
- (void)returningTorqueVelocityFreestyleMovieGoogleHandler:(UIButton *)sender {
    sender.selected = !sender.isSelected;
    self.fixTooSquaredTextField.secureTextEntry = !self.fixTooSquaredTextField.isSecureTextEntry;
}

- (void)localCardBringCarriageCoulombsAction:(id)sender {
    if (self.tabDryDeltaTextField.tabDryDeltaTextField.text.hindiDecimal) {
        [AreAlertView internalTemporalAlignZipLayeringNatural:RowGivenOut.nineHisSoloTen.mediumOld message:RowGivenOut.nineHisSoloTen.headerNetPlayScrollThickRectified completion:nil];
        return;
    }
    if (self.toggleAskTextField.text.hindiDecimal) {
        [AreAlertView internalTemporalAlignZipLayeringNatural:RowGivenOut.nineHisSoloTen.mediumOld message:RowGivenOut.nineHisSoloTen.binaryIrishInfiniteContainedRedone completion:nil];
        return;
    }
    if (self.fixTooSquaredTextField.text.length < RowGivenOut.mathProxyKin.plusCreator) {
        [AreAlertView internalTemporalAlignZipLayeringNatural:RowGivenOut.nineHisSoloTen.mediumOld message:RowGivenOut.nineHisSoloTen.metabolicFunctionEraserTrapSignClient completion:nil];
        return;
    }
    NSString *funNotifyCode = self.tabDryDeltaTextField.moveAllHitMild;
    NSString *touchesMake = self.tabDryDeltaTextField.cyclingBridgeFixingActivatedSuffix;
    if ([self.splatBrowsing respondsToSelector:@selector(powerSquaresDecibelRefinedRepairDroppedEnd:code:pickCode:useKey:completion:)]) {
        [OutWetFactView faxCarAgeMillWindow];
        [self.splatBrowsing powerSquaresDecibelRefinedRepairDroppedEnd:touchesMake code:self.toggleAskTextField.text pickCode:funNotifyCode useKey:self.fixTooSquaredTextField.text completion:^(id object) {
            [OutWetFactView digestCanWrappedAcutePanoramaWindow];
            [JobToast wayMaxEdga:RowGivenOut.nineHisSoloTen.subCellSchemeOpticalAssistive];
            if (object) {
                [self.cubicArmpitDelegate mileSeekRebusWinOrdinaryWithName:object metalMinWonPassword:self.fixTooSquaredTextField.text];
                [self publishAbovePrefersIdleFetchAction:nil];
            }
        }];
    }
}

- (void)dealloc {
    [self.fileParseButton skippedLaterExposuresLifetimeNever];
}
@end
