






#import "OfferTextViewController.h"
#import "BottomLegalLabel.h"
#import "OldWeekNoteSunViewController.h"

@interface OfferTextViewController ()

@property (nonatomic, strong) UITextField *firstRunArtsTextField;
@property (nonatomic, strong) UITextField *telephonyCallTextField;
@property (nonatomic,strong) BottomLegalLabel *takeTheBreakLabel;
@end



@implementation OfferTextViewController

- (BottomLegalLabel *)takeTheBreakLabel {
    if (!_takeTheBreakLabel) {
        _takeTheBreakLabel = [BottomLegalLabel awakeTamilHerLabel:NO];
    }
    return _takeTheBreakLabel;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.firstRunArtsTextField = [HourEllipse includesAssumeEveryCadenceListenAccount];
    [self.view addSubview:self.firstRunArtsTextField];
    [self.firstRunArtsTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(HourEllipse.howSignaling.appearsRebus);
        make.left.mas_equalTo(HourEllipse.howSignaling.socialSindhi);
        make.right.mas_equalTo(-HourEllipse.howSignaling.socialSindhi);
        make.height.mas_equalTo(HourEllipse.howSignaling.quitErrorBig);
    }];
    
    
    self.telephonyCallTextField = [HourEllipse mercuryWrestlingArmpitWaterQualifierPassword:NO];
    [self.view addSubview:self.telephonyCallTextField];
    [self.telephonyCallTextField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.firstRunArtsTextField.mas_bottom).offset(HourEllipse.howSignaling.briefBookMay);
        make.left.right.equalTo(self.firstRunArtsTextField);
        make.height.mas_equalTo(HourEllipse.howSignaling.quitErrorBig);
    }];
    UIButton *rightButton = self.telephonyCallTextField.rightView.subviews.firstObject;
    [rightButton addTarget:self action:@selector(orderingSheObtainMismatchMixerDismissHandler:) forControlEvents:(UIControlEventTouchUpInside)];

    
    UIButton *hisOddSpacingButton = [HourEllipse boldfaceNapPhonogramComplexBordersColor:HourEllipse.alienSemaphore.pastAboveFoot];
    [hisOddSpacingButton addTarget:self action:@selector(lossRowImperialEpisodePedometerSequencesAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:hisOddSpacingButton];
    [hisOddSpacingButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.telephonyCallTextField.mas_bottom).offset(HourEllipse.howSignaling.briefBookMay);
        make.left.right.equalTo(self.telephonyCallTextField);
        make.height.mas_equalTo(HourEllipse.howSignaling.chinaRankTab);
    }];
    
    [self.view addSubview:self.takeTheBreakLabel];
    moreToo(self);
    [self.takeTheBreakLabel setTrimmingWithRealmComponentDecigramsSoft:^{
        cursorPen(self);
        [self kinWhoPossiblePreventsDueMathAction];
    }];
    [self.takeTheBreakLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(-HourEllipse.howSignaling.bufferManMin);
        make.left.mas_equalTo(HourEllipse.howSignaling.midMidRemote);
        make.right.mas_equalTo(-HourEllipse.howSignaling.midMidRemote);
    }];
}

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

- (void)lossRowImperialEpisodePedometerSequencesAction:(UIButton *)sender {
    if (self.firstRunArtsTextField.text.length < HourEllipse.howSignaling.anchorShare) {
        [AddAlertView millionCorrectedPromiseOverageHardNow:HourEllipse.alienSemaphore.thousands message:HourEllipse.alienSemaphore.homepageShotDisableStackTheInland completion:nil];
        return;
    }
    if (self.telephonyCallTextField.text.length < HourEllipse.howSignaling.anchorShare) {
        [AddAlertView millionCorrectedPromiseOverageHardNow:HourEllipse.alienSemaphore.thousands message:HourEllipse.alienSemaphore.seasonInspiredDecreaseSmoothingRevealDistinct completion:nil];
        return;
    }
    if ([self.netResultsCup respondsToSelector:@selector(sixUnboundedSoftBeaconShortcutRelationsModifiersName:sonKey:completion:)]) {
        [LogicalSonView fitRatioRomanWindow];
        [self.netResultsCup sixUnboundedSoftBeaconShortcutRelationsModifiersName:self.firstRunArtsTextField.text sonKey:self.telephonyCallTextField.text completion:^(id object) {
            [LogicalSonView secretSeventeenTopUighurVitalityWindow];
        }];
    }
}


- (void)kinWhoPossiblePreventsDueMathAction {
    OldWeekNoteSunViewController *setupHowMean = [OldWeekNoteSunViewController new];
    setupHowMean.packFlagLaw = @(YES);
    setupHowMean.netResultsCup = self.netResultsCup;
    [setupHowMean setSelectorsRequestFarLeadHang:^(BOOL result) {
        self.takeTheBreakLabel.minimizeSource = result;
    }];
    [self.navigationController pushViewController:setupHowMean animated:NO];
}

@end
