






#import "ButPeriodViewController.h"
#import "NotThousandButton.h"
#import "MidCostNameAgeViewController.h"
#import "IllToast.h"
#import "SlideCutOwnLabel.h"
#import "DigitModeTextField.h"
#import "NSString+AffineDog.h"

@interface ButPeriodViewController ()

@property (nonatomic, strong) DigitModeTextField *discoverMapTextField;
@property (nonatomic, strong) UITextField *removableTextField;
@property (nonatomic, strong) NotThousandButton *assumeBadButton;
@property (nonatomic,strong) SlideCutOwnLabel *slopeLockingLabel;

@end

@implementation ButPeriodViewController

- (NotThousandButton *)assumeBadButton {
    if (!_assumeBadButton) {
        _assumeBadButton = [[NotThousandButton alloc] init];
    }
    return _assumeBadButton;
}

- (SlideCutOwnLabel *)slopeLockingLabel {
    if (!_slopeLockingLabel) {
        _slopeLockingLabel = [SlideCutOwnLabel blobPresenterLabel:NO];
    }
    return _slopeLockingLabel;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.discoverMapTextField = [[DigitModeTextField alloc] initWithController:self];
    [self.view addSubview:self.discoverMapTextField];
    [self.discoverMapTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(RedFlexible.capContinued.trapKinOrder);
        make.left.mas_equalTo(RedFlexible.capContinued.gallonAmpere);
        make.right.mas_equalTo(-RedFlexible.capContinued.gallonAmpere);
        make.height.mas_equalTo(RedFlexible.capContinued.busyDenseMap);
    }];
    
    
    self.removableTextField = [RedFlexible redirectDecodingOperandSnowBuilderModelCode];
    [self.view addSubview:self.removableTextField];
    [self.removableTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.discoverMapTextField.mas_bottom).offset(RedFlexible.capContinued.languageHalf);
        make.left.mas_equalTo(RedFlexible.capContinued.gallonAmpere);
        make.height.mas_equalTo(RedFlexible.capContinued.busyDenseMap);
    }];
    
    noneBar(self);
    self.assumeBadButton.hisSunNowLiftAction = ^{
        foundRoom(self);
        NSString *primariesCode = self.discoverMapTextField.plugSpaHangBus;
        NSString *eventAskBag = self.discoverMapTextField.maxFourthReadyPreferInserted;
        if (self.discoverMapTextField.discoverMapTextField.text.positionRain) {
            [self.assumeBadButton forContentContainPositiveSymmetric];
            [EndAlertView silenceMountedOverhangThousandTextureCurrency:RedFlexible.daySentFaxWill.intersect message:RedFlexible.daySentFaxWill.issuerBadHitHowBackwardsFocal completion:nil];
            return;
        }
        if ([self.wonHoldDogRaw respondsToSelector:@selector(engravedCoachedPermutePeriodicFatalFastDigitizedType:bandFeetYou:gainCode:completion:)]) {
            [StepsonRedView ambiguousPlayWindow];
            [self.wonHoldDogRaw engravedCoachedPermutePeriodicFatalFastDigitizedType:RedFlexible.capContinued.supportsLinearBeatPoolColleague bandFeetYou:eventAskBag gainCode:primariesCode completion:^(id object) {
                [StepsonRedView storeAlbumObservingWalkingSayWindow];
                if ([object boolValue]) {
                    [IllToast subOurTags:RedFlexible.daySentFaxWill.moreReaderNecessaryFingerCorrectedBeganCode];
                }else {
                    [self.assumeBadButton forContentContainPositiveSymmetric];
                }
            }];
        }
    };
    [self.view addSubview:self.assumeBadButton];
    [self.assumeBadButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.removableTextField);
        make.height.equalTo(self.removableTextField);
        make.right.equalTo(self.discoverMapTextField);
        
        make.width.mas_equalTo(self.assumeBadButton.titleLabel.intrinsicContentSize.width + RedFlexible.capContinued.alarmNetLoud);
    }];
    
    [self.removableTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self.assumeBadButton.mas_left).offset(-RedFlexible.capContinued.rowDeleteMan);
    }];
    
    
    UIButton *retYearPubYetButton = [RedFlexible authorNumeralPivotRecipientPluralColor:RedFlexible.daySentFaxWill.prepareLeastModalCyrillicTopFriction];
    [retYearPubYetButton addTarget:self action:@selector(packetNotGracefulRollGeometricAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:retYearPubYetButton];
    [retYearPubYetButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.removableTextField.mas_bottom).offset(RedFlexible.capContinued.languageHalf);
        make.left.mas_equalTo(RedFlexible.capContinued.gallonAmpere);
        make.right.mas_equalTo(-RedFlexible.capContinued.gallonAmpere);
        make.height.mas_equalTo(RedFlexible.capContinued.duplexCorner);
    }];
    
    [self.view addSubview:self.slopeLockingLabel];
    [self.slopeLockingLabel setLevelLexiconInvalidArrangedFixtureSecurity:^{
        foundRoom(self);
        [self ownMayHoverLicenseUniqueChallengeAction];
    }];
    [self.slopeLockingLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(-RedFlexible.capContinued.fatSinhalese);
        make.left.mas_equalTo(RedFlexible.capContinued.pinchExtract);
        make.right.mas_equalTo(-RedFlexible.capContinued.pinchExtract);
    }];
}

- (void)packetNotGracefulRollGeometricAction:(UIButton *)sender {
    if (self.discoverMapTextField.discoverMapTextField.text.positionRain) {
        [EndAlertView silenceMountedOverhangThousandTextureCurrency:RedFlexible.daySentFaxWill.intersect message:RedFlexible.daySentFaxWill.issuerBadHitHowBackwardsFocal completion:nil];
        return;
    }
    if (self.removableTextField.text.positionRain) {
        [EndAlertView silenceMountedOverhangThousandTextureCurrency:RedFlexible.daySentFaxWill.intersect message:RedFlexible.daySentFaxWill.courseMemoryOneDismissIodine completion:nil];
        return;
    }
    NSString *primariesCode = self.discoverMapTextField.plugSpaHangBus;
    NSString *eventAskBag = self.discoverMapTextField.maxFourthReadyPreferInserted;
    if ([self.wonHoldDogRaw respondsToSelector:@selector(flippedMidCutCatPopScanEnableDestroy:code:gainCode:completion:)]) {
        [StepsonRedView ambiguousPlayWindow];
        [self.wonHoldDogRaw flippedMidCutCatPopScanEnableDestroy:eventAskBag code:self.removableTextField.text gainCode:primariesCode completion:^(id object) {
            [StepsonRedView storeAlbumObservingWalkingSayWindow];
        }];
    }
}


- (void)ownMayHoverLicenseUniqueChallengeAction {
    MidCostNameAgeViewController *badFarNearby = [MidCostNameAgeViewController new];
    badFarNearby.manyLeadOur = @(YES);
    badFarNearby.wonHoldDogRaw = self.wonHoldDogRaw;
    [badFarNearby setLogObsoleteWrappingHisCoast:^(BOOL result) {
        self.slopeLockingLabel.oneDidTurnList = result;
    }];
    [self.navigationController pushViewController:badFarNearby animated:NO];
}

- (void)dealloc {
    [self.assumeBadButton forContentContainPositiveSymmetric];
}
@end
