






#import "NoticeMolarExpansionRelayClampedShakeViewController.h"
#import "NSString+FolderHit.h"

@implementation XXGSelectMobileAccountModel

@end

@interface NoticeMolarExpansionRelayClampedShakeViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *outSkipped;
@property (nonatomic, strong) UITableView *externAutoView;
@property (nonatomic, assign) NSInteger torqueTrailing;
@property (nonatomic, strong) UIButton *bedQueryLawButton;
@property (nonatomic, strong) UIButton *uploadNowSpaButton;

@end

@implementation NoticeMolarExpansionRelayClampedShakeViewController

- (XXGSelectMobileAccountModel *)outSkipped {
    return self.threadsMail;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.sinDefinedButton.hidden = YES;
    self.extrasIcyButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = LeftHosting.carMapKeepPick.playbackBitsFlattenSharpenExecutor;
    titleLabel.textColor = [LeftHosting rankCycleColor];
    titleLabel.font = [UIFont systemFontOfSize:LeftHosting.busJobRemote.periodicPort];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(LeftHosting.busJobRemote.airborneNet);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(LeftHosting.busJobRemote.exposuresSaw);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = LeftHosting.busJobRemote.peakApplier;

    
    UIView *howMaxView = [[UIView alloc] init];
    howMaxView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:howMaxView];
    [howMaxView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(LeftHosting.busJobRemote.versionsIron);
    }];

    
    _bedQueryLawButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_bedQueryLawButton setTitle:LeftHosting.carMapKeepPick.lacrosseAdd forState:UIControlStateNormal];
    [_bedQueryLawButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_bedQueryLawButton setBackgroundColor:UIColor.systemGray5Color];
    _bedQueryLawButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_bedQueryLawButton addTarget:self action:@selector(extendingSeeWordArabicReduceAction:) forControlEvents:UIControlEventTouchUpInside];
    [howMaxView addSubview:_bedQueryLawButton];
    [_bedQueryLawButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(howMaxView);
        make.width.equalTo(howMaxView).multipliedBy(0.5);
    }];

    
    _uploadNowSpaButton = [LeftHosting wakeMalaySpeechSuffixSinColor:LeftHosting.carMapKeepPick.zoomLow];
    [_uploadNowSpaButton addTarget:self action:@selector(badmintonTheSparseYardSixAction:) forControlEvents:UIControlEventTouchUpInside];
    [howMaxView addSubview:_uploadNowSpaButton];
    [_uploadNowSpaButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(howMaxView);
        make.width.equalTo(howMaxView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_externAutoView];
    [_externAutoView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(LeftHosting.busJobRemote.runSeeBirth);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(howMaxView.mas_top);
    }];

    
    if (self.outSkipped.jobKitCanText.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_externAutoView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _torqueTrailing = 0;
    }
}



- (void)extendingSeeWordArabicReduceAction:(UIButton *)sender {
    [[AspectTapManager shared] levelCreatorWindow];
    if (self.stoneCellular && [self.stoneCellular respondsToSelector:@selector(xxpk_selectMobileAccountCancelButtonDidClick)]) {
        [self.stoneCellular xxpk_selectMobileAccountCancelButtonDidClick];
    }
}

- (void)badmintonTheSparseYardSixAction:(UIButton *)sender {
    [[AspectTapManager shared] levelCreatorWindow];
    if (self.stoneCellular && [self.stoneCellular respondsToSelector:@selector(xxpk_selectMobileAccountConfirmButtonDidClickWithModel:mixEarlyAccount:)]) {
        NSString *mixEarlyAccount = self.outSkipped.jobKitCanText[self.torqueTrailing];
        [self.stoneCellular xxpk_selectMobileAccountConfirmButtonDidClickWithModel:self.outSkipped mixEarlyAccount:mixEarlyAccount];
    }
}



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

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

    
    if (indexPath.row == self.torqueTrailing) {
        jump.accessoryType = UITableViewCellAccessoryCheckmark;
        jump.tintColor = [LeftHosting rankCycleColor];
    } else {
        jump.accessoryType = UITableViewCellAccessoryNone;
    }

    return jump;
}



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

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

@end
