






#import "UserMenConductorHandShelfApplyViewController.h"
#import "NSString+Violation.h"

@implementation XXGSelectMobileAccountModel

@end

@interface UserMenConductorHandShelfApplyViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *locatorRed;
@property (nonatomic, strong) UITableView *resizeLoopView;
@property (nonatomic, assign) NSInteger sceneBrownRest;
@property (nonatomic, strong) UIButton *eulerUnlockButton;
@property (nonatomic, strong) UIButton *publicOldMenButton;

@end

@implementation UserMenConductorHandShelfApplyViewController

- (XXGSelectMobileAccountModel *)locatorRed {
    return self.tiedDecibel;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.crossClampButton.hidden = YES;
    self.areShadowButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = ButPhonetic.snowTabWhoDrum.basalDirectionShiftFeaturesImage;
    titleLabel.textColor = [ButPhonetic sonLegacyColor];
    titleLabel.font = [UIFont systemFontOfSize:ButPhonetic.ditheredFast.barrierStair];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(ButPhonetic.ditheredFast.alarmCancel);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(ButPhonetic.ditheredFast.carBeginWrap);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = ButPhonetic.ditheredFast.localPacket;

    
    UIView *logDueView = [[UIView alloc] init];
    logDueView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:logDueView];
    [logDueView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(ButPhonetic.ditheredFast.tooHexRename);
    }];

    
    _eulerUnlockButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_eulerUnlockButton setTitle:ButPhonetic.snowTabWhoDrum.menChunkSon forState:UIControlStateNormal];
    [_eulerUnlockButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_eulerUnlockButton setBackgroundColor:UIColor.systemGray5Color];
    _eulerUnlockButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_eulerUnlockButton addTarget:self action:@selector(itsPedometerCutoffSucceededPassAction:) forControlEvents:UIControlEventTouchUpInside];
    [logDueView addSubview:_eulerUnlockButton];
    [_eulerUnlockButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(logDueView);
        make.width.equalTo(logDueView).multipliedBy(0.5);
    }];

    
    _publicOldMenButton = [ButPhonetic maximumYearsVoiceEscapePrecisionColor:ButPhonetic.snowTabWhoDrum.floater];
    [_publicOldMenButton addTarget:self action:@selector(ditherGopherStoreAttachedSawAction:) forControlEvents:UIControlEventTouchUpInside];
    [logDueView addSubview:_publicOldMenButton];
    [_publicOldMenButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(logDueView);
        make.width.equalTo(logDueView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_resizeLoopView];
    [_resizeLoopView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(ButPhonetic.ditheredFast.capsWaxShot);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(logDueView.mas_top);
    }];

    
    if (self.locatorRed.reliableHover.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_resizeLoopView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _sceneBrownRest = 0;
    }
}



- (void)itsPedometerCutoffSucceededPassAction:(UIButton *)sender {
    [[WasFillerManager shared] saltTrailingWindow];
    if (self.lowWinWarpBut && [self.lowWinWarpBut respondsToSelector:@selector(xxpk_selectMobileAccountCancelButtonDidClick)]) {
        [self.lowWinWarpBut xxpk_selectMobileAccountCancelButtonDidClick];
    }
}

- (void)ditherGopherStoreAttachedSawAction:(UIButton *)sender {
    [[WasFillerManager shared] saltTrailingWindow];
    if (self.lowWinWarpBut && [self.lowWinWarpBut respondsToSelector:@selector(xxpk_selectMobileAccountConfirmButtonDidClickWithModel:clipDashAccount:)]) {
        NSString *clipDashAccount = self.locatorRed.reliableHover[self.sceneBrownRest];
        [self.lowWinWarpBut xxpk_selectMobileAccountConfirmButtonDidClickWithModel:self.locatorRed clipDashAccount:clipDashAccount];
    }
}



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

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

    
    if (indexPath.row == self.sceneBrownRest) {
        rest.accessoryType = UITableViewCellAccessoryCheckmark;
        rest.tintColor = [ButPhonetic sonLegacyColor];
    } else {
        rest.accessoryType = UITableViewCellAccessoryNone;
    }

    return rest;
}



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

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

@end
