






#import "ParameterMinimizeAffiliateSlantIrishFeaturedViewController.h"
#import "NSString+LessSeven.h"

@implementation XXGSelectMobileAccountModel

@end

@interface ParameterMinimizeAffiliateSlantIrishFeaturedViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *hisArtNine;
@property (nonatomic, strong) UITableView *solidAloneView;
@property (nonatomic, assign) NSInteger selectorsMiter;
@property (nonatomic, strong) UIButton *greaterPassButton;
@property (nonatomic, strong) UIButton *fitnessShelfButton;

@end

@implementation ParameterMinimizeAffiliateSlantIrishFeaturedViewController

- (XXGSelectMobileAccountModel *)hisArtNine {
    return self.lawBoldSeed;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.fairTargetButton.hidden = YES;
    self.returnOptButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = AreStateWon.miterTabBitKin.earlyOneReversesCaffeineLarge;
    titleLabel.textColor = [AreStateWon spanFloatColor];
    titleLabel.font = [UIFont systemFontOfSize:AreStateWon.twoHoverHard.fiveRotorThe];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(AreStateWon.twoHoverHard.agePoloBoth);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(AreStateWon.twoHoverHard.sinWireNoise);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = AreStateWon.twoHoverHard.symbolTilde;

    
    UIView *armOldView = [[UIView alloc] init];
    armOldView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:armOldView];
    [armOldView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(AreStateWon.twoHoverHard.rangingCloud);
    }];

    
    _greaterPassButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_greaterPassButton setTitle:AreStateWon.miterTabBitKin.alertPutWho forState:UIControlStateNormal];
    [_greaterPassButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_greaterPassButton setBackgroundColor:UIColor.systemGray5Color];
    _greaterPassButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_greaterPassButton addTarget:self action:@selector(neutralOrdinalsBeatRadioActionsAction:) forControlEvents:UIControlEventTouchUpInside];
    [armOldView addSubview:_greaterPassButton];
    [_greaterPassButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(armOldView);
        make.width.equalTo(armOldView).multipliedBy(0.5);
    }];

    
    _fitnessShelfButton = [AreStateWon safePromisedRequiringAdjustsIrishColor:AreStateWon.miterTabBitKin.playFat];
    [_fitnessShelfButton addTarget:self action:@selector(stairReloadYouResignSpokenAction:) forControlEvents:UIControlEventTouchUpInside];
    [armOldView addSubview:_fitnessShelfButton];
    [_fitnessShelfButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(armOldView);
        make.width.equalTo(armOldView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_solidAloneView];
    [_solidAloneView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(AreStateWon.twoHoverHard.netFoodShot);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(armOldView.mas_top);
    }];

    
    if (self.hisArtNine.attributeZone.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_solidAloneView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _selectorsMiter = 0;
    }
}



- (void)neutralOrdinalsBeatRadioActionsAction:(UIButton *)sender {
    [[LocationsManager shared] hisLargerOptWindow];
    if (self.tabOldStopped && [self.tabOldStopped respondsToSelector:@selector(xxpk_selectMobileAccountCancelButtonDidClick)]) {
        [self.tabOldStopped xxpk_selectMobileAccountCancelButtonDidClick];
    }
}

- (void)stairReloadYouResignSpokenAction:(UIButton *)sender {
    [[LocationsManager shared] hisLargerOptWindow];
    if (self.tabOldStopped && [self.tabOldStopped respondsToSelector:@selector(xxpk_selectMobileAccountConfirmButtonDidClickWithModel:badGreatAccount:)]) {
        NSString *badGreatAccount = self.hisArtNine.attributeZone[self.selectorsMiter];
        [self.tabOldStopped xxpk_selectMobileAccountConfirmButtonDidClickWithModel:self.hisArtNine badGreatAccount:badGreatAccount];
    }
}



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

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

    
    if (indexPath.row == self.selectorsMiter) {
        fact.accessoryType = UITableViewCellAccessoryCheckmark;
        fact.tintColor = [AreStateWon spanFloatColor];
    } else {
        fact.accessoryType = UITableViewCellAccessoryNone;
    }

    return fact;
}



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

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

@end
