






#import "ClimbingResonantLeastStylusPageWorkflowViewController.h"
#import "NSString+WorldHold.h"

@implementation XXGSelectMobileAccountModel

@end

@interface ClimbingResonantLeastStylusPageWorkflowViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *startLarge;
@property (nonatomic, strong) UITableView *moreRedNetView;
@property (nonatomic, assign) NSInteger splitTopSixLaw;
@property (nonatomic, strong) UIButton *improperAgeButton;
@property (nonatomic, strong) UIButton *sayKeysSolidButton;

@end

@implementation ClimbingResonantLeastStylusPageWorkflowViewController

- (XXGSelectMobileAccountModel *)startLarge {
    return self.chunkySmall;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.napEyeCityButton.hidden = YES;
    self.stayPaperButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = IndicesBest.linerSharpness.shiftHectaresHexQueryingArbitrary;
    titleLabel.textColor = [IndicesBest sexExtrasColor];
    titleLabel.font = [UIFont systemFontOfSize:IndicesBest.trustMainArm.hybridSunWay];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(IndicesBest.trustMainArm.bodyThermal);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(IndicesBest.trustMainArm.modalHeapWon);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = IndicesBest.trustMainArm.notHexIndigo;

    
    UIView *offWinView = [[UIView alloc] init];
    offWinView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:offWinView];
    [offWinView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(IndicesBest.trustMainArm.sinValidates);
    }];

    
    _improperAgeButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_improperAgeButton setTitle:IndicesBest.linerSharpness.costRequest forState:UIControlStateNormal];
    [_improperAgeButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_improperAgeButton setBackgroundColor:UIColor.systemGray5Color];
    _improperAgeButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_improperAgeButton addTarget:self action:@selector(sawReclaimSupplyUtteranceNowAction:) forControlEvents:UIControlEventTouchUpInside];
    [offWinView addSubview:_improperAgeButton];
    [_improperAgeButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(offWinView);
        make.width.equalTo(offWinView).multipliedBy(0.5);
    }];

    
    _sayKeysSolidButton = [IndicesBest faxDraftDialogEarCutterColor:IndicesBest.linerSharpness.sawClip];
    [_sayKeysSolidButton addTarget:self action:@selector(execMajorExtentDemandParameterAction:) forControlEvents:UIControlEventTouchUpInside];
    [offWinView addSubview:_sayKeysSolidButton];
    [_sayKeysSolidButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(offWinView);
        make.width.equalTo(offWinView).multipliedBy(0.5);
    }];

    
    _moreRedNetView = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStylePlain];
    _moreRedNetView.backgroundColor = UIColor.systemGray6Color;
    _moreRedNetView.contentInset = UIEdgeInsetsMake(0, 0, 10, 0);
    _moreRedNetView.separatorStyle = UITableViewCellSeparatorStyleNone;
    _moreRedNetView.rowHeight = IndicesBest.trustMainArm.gaussianRope;
    _moreRedNetView.delegate = self;
    _moreRedNetView.dataSource = self;
    [_moreRedNetView registerClass:[UITableViewCell class] forCellReuseIdentifier:@"XXGSelectMobileAccountCell"];

    [self.view addSubview:_moreRedNetView];
    [_moreRedNetView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(IndicesBest.trustMainArm.theDidFound);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(offWinView.mas_top);
    }];

    
    if (self.startLarge.andMostWetBox.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_moreRedNetView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _splitTopSixLaw = 0;
    }
}



- (void)sawReclaimSupplyUtteranceNowAction:(UIButton *)sender {
    [[AssumeNotManager shared] eraFoodSlideWindow];
    if (self.audiencesPolo && [self.audiencesPolo respondsToSelector:@selector(focusSandboxControlLeadBitViabilityPassivelyHello)]) {
        [self.audiencesPolo focusSandboxControlLeadBitViabilityPassivelyHello];
    }
}

- (void)execMajorExtentDemandParameterAction:(UIButton *)sender {
    [[AssumeNotManager shared] eraFoodSlideWindow];
    if (self.audiencesPolo && [self.audiencesPolo respondsToSelector:@selector(postRenewEitherCursiveScannedHoursQuickConsoleModel:locationAccount:)]) {
        NSString *locationAccount = self.startLarge.andMostWetBox[self.splitTopSixLaw];
        [self.audiencesPolo postRenewEitherCursiveScannedHoursQuickConsoleModel:self.startLarge locationAccount:locationAccount];
    }
}



- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return self.startLarge.andMostWetBox.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    UITableViewCell *past = [tableView dequeueReusableCellWithIdentifier:@"XXGSelectMobileAccountCell" forIndexPath:indexPath];
    past.backgroundColor = UIColor.whiteColor;
    past.selectionStyle = UITableViewCellSelectionStyleNone;
    past.textLabel.text = self.startLarge.andMostWetBox[indexPath.row];
    past.textLabel.textColor = UIColor.darkGrayColor;
    past.textLabel.font = [UIFont systemFontOfSize:16];

    
    if (indexPath.row == self.splitTopSixLaw) {
        past.accessoryType = UITableViewCellAccessoryCheckmark;
        past.tintColor = [IndicesBest sexExtrasColor];
    } else {
        past.accessoryType = UITableViewCellAccessoryNone;
    }

    return past;
}



- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    NSInteger airborneOwn = self.splitTopSixLaw;
    self.splitTopSixLaw = indexPath.row;

    
    NSMutableArray *popSuitable = [NSMutableArray array];
    [popSuitable addObject:[NSIndexPath indexPathForRow:airborneOwn inSection:0]];
    if (airborneOwn != indexPath.row) {
        [popSuitable addObject:indexPath];
    }
    [tableView reloadRowsAtIndexPaths:popSuitable withRowAnimation:UITableViewRowAnimationNone];
}

@end
