






#import "SubscriptViewController.h"
#import "MealRetYardLabel.h"
#import "CapsYouLowHaveViewController.h"

@interface SubscriptViewController ()

@property (nonatomic, strong) UITextField *qualifiedEggTextField;
@property (nonatomic, strong) UITextField *waistOptAlbumTextField;
@property (nonatomic,strong) MealRetYardLabel *brownLoadFarLabel;
@end



@implementation SubscriptViewController

- (MealRetYardLabel *)brownLoadFarLabel {
    if (!_brownLoadFarLabel) {
        _brownLoadFarLabel = [MealRetYardLabel lawFaxJumpOwnLabel:NO];
    }
    return _brownLoadFarLabel;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.qualifiedEggTextField = [OutTapPlain hintQuickColleagueOperationBridgeAccount];
    [self.view addSubview:self.qualifiedEggTextField];
    [self.qualifiedEggTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(OutTapPlain.parentMixMay.markReleased);
        make.left.mas_equalTo(OutTapPlain.parentMixMay.takeWhiteArm);
        make.right.mas_equalTo(-OutTapPlain.parentMixMay.takeWhiteArm);
        make.height.mas_equalTo(OutTapPlain.parentMixMay.thirteenHigh);
    }];
    
    
    self.waistOptAlbumTextField = [OutTapPlain cursorTokenWrittenSphericalAxialPassword:NO];
    [self.view addSubview:self.waistOptAlbumTextField];
    [self.waistOptAlbumTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.qualifiedEggTextField.mas_bottom).offset(OutTapPlain.parentMixMay.hasWasHigher);
        make.left.right.equalTo(self.qualifiedEggTextField);
        make.height.mas_equalTo(OutTapPlain.parentMixMay.thirteenHigh);
    }];
    UIButton *rightButton = self.waistOptAlbumTextField.rightView.subviews.firstObject;
    [rightButton addTarget:self action:@selector(drivenRoundOperateFinalizeDifferentPromptHandler:) forControlEvents:(UIControlEventTouchUpInside)];

    
    UIButton *curveTempBoldButton = [OutTapPlain busIndoorTableDrizzleAwayColor:OutTapPlain.loudMeterMount.offRunLastSaw];
    [curveTempBoldButton addTarget:self action:@selector(halfUnorderedModuleAlertNoiseAuditAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:curveTempBoldButton];
    [curveTempBoldButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.waistOptAlbumTextField.mas_bottom).offset(OutTapPlain.parentMixMay.hasWasHigher);
        make.left.right.equalTo(self.waistOptAlbumTextField);
        make.height.mas_equalTo(OutTapPlain.parentMixMay.tooTabMetric);
    }];
    
    [self.view addSubview:self.brownLoadFarLabel];
    spaBike(self);
    [self.brownLoadFarLabel setAllAnimatedHerTapPageAnimate:^{
        parserWin(self);
        [self dueHangUrgentCustomTamilUpperAction];
    }];
    [self.brownLoadFarLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(-OutTapPlain.parentMixMay.realSonTotal);
        make.left.mas_equalTo(OutTapPlain.parentMixMay.transformFit);
        make.right.mas_equalTo(-OutTapPlain.parentMixMay.transformFit);
    }];
}

- (void)drivenRoundOperateFinalizeDifferentPromptHandler:(UIButton *)sender {
    sender.selected = !sender.isSelected;
    self.waistOptAlbumTextField.secureTextEntry = !self.waistOptAlbumTextField.isSecureTextEntry;
}

- (void)halfUnorderedModuleAlertNoiseAuditAction:(UIButton *)sender {
    if (self.qualifiedEggTextField.text.length < OutTapPlain.parentMixMay.numeralMood) {
        [SixAlertView eventPutJapaneseMoodEraAlarm:OutTapPlain.loudMeterMount.scrolling message:OutTapPlain.loudMeterMount.nativeSizeNowExtrinsicGlobalStopped completion:nil];
        return;
    }
    if (self.waistOptAlbumTextField.text.length < OutTapPlain.parentMixMay.numeralMood) {
        [SixAlertView eventPutJapaneseMoodEraAlarm:OutTapPlain.loudMeterMount.scrolling message:OutTapPlain.loudMeterMount.measureTurkmenAllExporterWeekdayMembers completion:nil];
        return;
    }
    if ([self.imageChatFilm respondsToSelector:@selector(gravityMarathiKitInstantPlateElderStrokeName:airKey:completion:)]) {
        [ManButThinView instantSubmitWindow];
        [self.imageChatFilm gravityMarathiKitInstantPlateElderStrokeName:self.qualifiedEggTextField.text airKey:self.waistOptAlbumTextField.text completion:^(id object) {
            [ManButThinView discardedEsperantoExternalAnimationPluralWindow];
        }];
    }
}


- (void)dueHangUrgentCustomTamilUpperAction {
    CapsYouLowHaveViewController *thatAperture = [CapsYouLowHaveViewController new];
    thatAperture.runServices = @(YES);
    thatAperture.imageChatFilm = self.imageChatFilm;
    [thatAperture setEchoPrefixedKitInitialPencil:^(BOOL result) {
        self.brownLoadFarLabel.statePassDelay = result;
    }];
    [self.navigationController pushViewController:thatAperture animated:NO];
}

@end
