






#import "NoiseIrishPubHitOutsidePermanentViewController.h"
#import "NSString+MathStyle.h"

@implementation XXGSelectMobileAccountModel

@end

@interface NoiseIrishPubHitOutsidePermanentViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *loadSexMix;
@property (nonatomic, strong) UITableView *fatSameHitView;
@property (nonatomic, assign) NSInteger sinkMatrixDone;
@property (nonatomic, strong) UIButton *waxWaxSpeedButton;
@property (nonatomic, strong) UIButton *whoStepSlashButton;

@end

@implementation NoiseIrishPubHitOutsidePermanentViewController

- (XXGSelectMobileAccountModel *)loadSexMix {
    return self.endOnlyCall;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.sunTreeIllButton.hidden = YES;
    self.sunStaticButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = WinSubAbove.resourcesCanon.funnelDifferentUrgencyMonthStay;
    titleLabel.textColor = [WinSubAbove nearbyAreColor];
    titleLabel.font = [UIFont systemFontOfSize:WinSubAbove.swipeFlagDay.yellowUnsafe];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(WinSubAbove.swipeFlagDay.peakGrammar);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(WinSubAbove.swipeFlagDay.faeroeseFail);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = WinSubAbove.swipeFlagDay.zipCacheEnds;

    
    UIView *zipNowView = [[UIView alloc] init];
    zipNowView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:zipNowView];
    [zipNowView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(WinSubAbove.swipeFlagDay.forAreOption);
    }];

    
    _waxWaxSpeedButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_waxWaxSpeedButton setTitle:WinSubAbove.resourcesCanon.tagsWinTree forState:UIControlStateNormal];
    [_waxWaxSpeedButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_waxWaxSpeedButton setBackgroundColor:UIColor.systemGray5Color];
    _waxWaxSpeedButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_waxWaxSpeedButton addTarget:self action:@selector(latitudeAchievedLacrosseAcceptCivilAction:) forControlEvents:UIControlEventTouchUpInside];
    [zipNowView addSubview:_waxWaxSpeedButton];
    [_waxWaxSpeedButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(zipNowView);
        make.width.equalTo(zipNowView).multipliedBy(0.5);
    }];

    
    _whoStepSlashButton = [WinSubAbove transposePipeAddCurlOurColor:WinSubAbove.resourcesCanon.enhance];
    [_whoStepSlashButton addTarget:self action:@selector(embeddingSobMacintoshItsSparseAction:) forControlEvents:UIControlEventTouchUpInside];
    [zipNowView addSubview:_whoStepSlashButton];
    [_whoStepSlashButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(zipNowView);
        make.width.equalTo(zipNowView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_fatSameHitView];
    [_fatSameHitView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(WinSubAbove.swipeFlagDay.evictRepair);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(zipNowView.mas_top);
    }];

    
    if (self.loadSexMix.mixSwahiliSon.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_fatSameHitView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _sinkMatrixDone = 0;
    }
}



- (void)latitudeAchievedLacrosseAcceptCivilAction:(UIButton *)sender {
    [[AutoIntroManager shared] fullHertzKeyWindow];
    if (self.mayCutSampler && [self.mayCutSampler respondsToSelector:@selector(xxpk_selectMobileAccountCancelButtonDidClick)]) {
        [self.mayCutSampler xxpk_selectMobileAccountCancelButtonDidClick];
    }
}

- (void)embeddingSobMacintoshItsSparseAction:(UIButton *)sender {
    [[AutoIntroManager shared] fullHertzKeyWindow];
    if (self.mayCutSampler && [self.mayCutSampler respondsToSelector:@selector(xxpk_selectMobileAccountConfirmButtonDidClickWithModel:clickFunAccount:)]) {
        NSString *clickFunAccount = self.loadSexMix.mixSwahiliSon[self.sinkMatrixDone];
        [self.mayCutSampler xxpk_selectMobileAccountConfirmButtonDidClickWithModel:self.loadSexMix clickFunAccount:clickFunAccount];
    }
}



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

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

    
    if (indexPath.row == self.sinkMatrixDone) {
        hard.accessoryType = UITableViewCellAccessoryCheckmark;
        hard.tintColor = [WinSubAbove nearbyAreColor];
    } else {
        hard.accessoryType = UITableViewCellAccessoryNone;
    }

    return hard;
}



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

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

@end
