






#import "PersistUnlockRedoneEstimatedZoneDegreesViewController.h"
#import "NSString+Connected.h"

@implementation XXGSelectMobileAccountModel

@end

@interface PersistUnlockRedoneEstimatedZoneDegreesViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *valueQuick;
@property (nonatomic, strong) UITableView *hertzDirtyView;
@property (nonatomic, assign) NSInteger growDogPopWarn;
@property (nonatomic, strong) UIButton *curlFiveOurButton;
@property (nonatomic, strong) UIButton *criticalCharButton;

@end

@implementation PersistUnlockRedoneEstimatedZoneDegreesViewController

- (XXGSelectMobileAccountModel *)valueQuick {
    return self.fullDustPan;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.waistAfterButton.hidden = YES;
    self.formatIllButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = TopMergeNap.turnFoggyPivot.pagerTorchFatStoodSpecified;
    titleLabel.textColor = [TopMergeNap variationColor];
    titleLabel.font = [UIFont systemFontOfSize:TopMergeNap.yetChromaUse.flattenShift];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(TopMergeNap.yetChromaUse.blurMapMale);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(TopMergeNap.yetChromaUse.everyContain);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = TopMergeNap.yetChromaUse.knowSayChat;

    
    UIView *quotesView = [[UIView alloc] init];
    quotesView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:quotesView];
    [quotesView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(TopMergeNap.yetChromaUse.colorRaceArm);
    }];

    
    _curlFiveOurButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_curlFiveOurButton setTitle:TopMergeNap.turnFoggyPivot.eachMaskSin forState:UIControlStateNormal];
    [_curlFiveOurButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_curlFiveOurButton setBackgroundColor:UIColor.systemGray5Color];
    _curlFiveOurButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_curlFiveOurButton addTarget:self action:@selector(transformJumpHoursBeatArrayAction:) forControlEvents:UIControlEventTouchUpInside];
    [quotesView addSubview:_curlFiveOurButton];
    [_curlFiveOurButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(quotesView);
        make.width.equalTo(quotesView).multipliedBy(0.5);
    }];

    
    _criticalCharButton = [TopMergeNap shutterFarsiSeparatorMolarFactColor:TopMergeNap.turnFoggyPivot.husband];
    [_criticalCharButton addTarget:self action:@selector(yiddishProtocolKeyDisposeBorderedAction:) forControlEvents:UIControlEventTouchUpInside];
    [quotesView addSubview:_criticalCharButton];
    [_criticalCharButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(quotesView);
        make.width.equalTo(quotesView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_hertzDirtyView];
    [_hertzDirtyView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(TopMergeNap.yetChromaUse.decideShape);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(quotesView.mas_top);
    }];

    
    if (self.valueQuick.anyUseNetChat.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_hertzDirtyView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _growDogPopWarn = 0;
    }
}



- (void)transformJumpHoursBeatArrayAction:(UIButton *)sender {
    [[ExtendingManager shared] caretPanAreaWindow];
    if (self.slashesCredit && [self.slashesCredit respondsToSelector:@selector(xxpk_selectMobileAccountCancelButtonDidClick)]) {
        [self.slashesCredit xxpk_selectMobileAccountCancelButtonDidClick];
    }
}

- (void)yiddishProtocolKeyDisposeBorderedAction:(UIButton *)sender {
    [[ExtendingManager shared] caretPanAreaWindow];
    if (self.slashesCredit && [self.slashesCredit respondsToSelector:@selector(xxpk_selectMobileAccountConfirmButtonDidClickWithModel:hourPlusAccount:)]) {
        NSString *hourPlusAccount = self.valueQuick.anyUseNetChat[self.growDogPopWarn];
        [self.slashesCredit xxpk_selectMobileAccountConfirmButtonDidClickWithModel:self.valueQuick hourPlusAccount:hourPlusAccount];
    }
}



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

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

    
    if (indexPath.row == self.growDogPopWarn) {
        cell.accessoryType = UITableViewCellAccessoryCheckmark;
        cell.tintColor = [TopMergeNap variationColor];
    } else {
        cell.accessoryType = UITableViewCellAccessoryNone;
    }

    return cell;
}



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

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

@end
