






#import "ProgressExpandingConstantReloadTenPreviousViewController.h"
#import "NSString+OrderReal.h"

@implementation XXGSelectMobileAccountModel

@end

@interface ProgressExpandingConstantReloadTenPreviousViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *priceAlbum;
@property (nonatomic, strong) UITableView *atomBannerView;
@property (nonatomic, assign) NSInteger trashWarpSerif;
@property (nonatomic, strong) UIButton *tagsFacePinButton;
@property (nonatomic, strong) UIButton *heapScrolledButton;

@end

@implementation ProgressExpandingConstantReloadTenPreviousViewController

- (XXGSelectMobileAccountModel *)priceAlbum {
    return self.weeklySpeed;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.dueLexiconButton.hidden = YES;
    self.whileSkinButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = DueIcyFetch.catBaseSinFill.denseClaimReturnPubUndone;
    titleLabel.textColor = [DueIcyFetch outPostalColor];
    titleLabel.font = [UIFont systemFontOfSize:DueIcyFetch.itsPosterIcy.midGradeFile];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(DueIcyFetch.itsPosterIcy.nowWeekForm);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(DueIcyFetch.itsPosterIcy.appearTooKit);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = DueIcyFetch.itsPosterIcy.thirdWasPop;

    
    UIView *appendView = [[UIView alloc] init];
    appendView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:appendView];
    [appendView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(DueIcyFetch.itsPosterIcy.predicateTop);
    }];

    
    _tagsFacePinButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_tagsFacePinButton setTitle:DueIcyFetch.catBaseSinFill.glucoseSlow forState:UIControlStateNormal];
    [_tagsFacePinButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_tagsFacePinButton setBackgroundColor:UIColor.systemGray5Color];
    _tagsFacePinButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_tagsFacePinButton addTarget:self action:@selector(followSexLineRemotelyDecideAction:) forControlEvents:UIControlEventTouchUpInside];
    [appendView addSubview:_tagsFacePinButton];
    [_tagsFacePinButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(appendView);
        make.width.equalTo(appendView).multipliedBy(0.5);
    }];

    
    _heapScrolledButton = [DueIcyFetch expertNetBitsSplatHeaderColor:DueIcyFetch.catBaseSinFill.fixSong];
    [_heapScrolledButton addTarget:self action:@selector(filteringMinimumCarFaceExchangesAction:) forControlEvents:UIControlEventTouchUpInside];
    [appendView addSubview:_heapScrolledButton];
    [_heapScrolledButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(appendView);
        make.width.equalTo(appendView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_atomBannerView];
    [_atomBannerView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(DueIcyFetch.itsPosterIcy.fisheyeTemp);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(appendView.mas_top);
    }];

    
    if (self.priceAlbum.forRingSpaSex.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_atomBannerView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _trashWarpSerif = 0;
    }
}



- (void)followSexLineRemotelyDecideAction:(UIButton *)sender {
    [[TalkArrayManager shared] whileRearBigWindow];
    if (self.sinHyphensOpt && [self.sinHyphensOpt respondsToSelector:@selector(xxpk_selectMobileAccountCancelButtonDidClick)]) {
        [self.sinHyphensOpt xxpk_selectMobileAccountCancelButtonDidClick];
    }
}

- (void)filteringMinimumCarFaceExchangesAction:(UIButton *)sender {
    [[TalkArrayManager shared] whileRearBigWindow];
    if (self.sinHyphensOpt && [self.sinHyphensOpt respondsToSelector:@selector(xxpk_selectMobileAccountConfirmButtonDidClickWithModel:hectaresAccount:)]) {
        NSString *hectaresAccount = self.priceAlbum.forRingSpaSex[self.trashWarpSerif];
        [self.sinHyphensOpt xxpk_selectMobileAccountConfirmButtonDidClickWithModel:self.priceAlbum hectaresAccount:hectaresAccount];
    }
}



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

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

    
    if (indexPath.row == self.trashWarpSerif) {
        bike.accessoryType = UITableViewCellAccessoryCheckmark;
        bike.tintColor = [DueIcyFetch outPostalColor];
    } else {
        bike.accessoryType = UITableViewCellAccessoryNone;
    }

    return bike;
}



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

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

@end
