






#import "TrademarkOwnExternFinderAlphaBeaconViewController.h"
#import "NSString+ExpandNot.h"

@implementation XXGSelectMobileAccountModel

@end

@interface TrademarkOwnExternFinderAlphaBeaconViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *indoorWalk;
@property (nonatomic, strong) UITableView *linearTimeView;
@property (nonatomic, assign) NSInteger axesEarHandFun;
@property (nonatomic, strong) UIButton *bridgingMapButton;
@property (nonatomic, strong) UIButton *tamilHitTakeButton;

@end

@implementation TrademarkOwnExternFinderAlphaBeaconViewController

- (XXGSelectMobileAccountModel *)indoorWalk {
    return self.eyeLostSink;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.opaqueHalfButton.hidden = YES;
    self.flushTradButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = AlbumBoxSex.topWaxTreeRole.rectumPlaneArrowNoteMake;
    titleLabel.textColor = [AlbumBoxSex panIodineColor];
    titleLabel.font = [UIFont systemFontOfSize:AlbumBoxSex.catalanHertz.armpitNotify];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(AlbumBoxSex.catalanHertz.hitProduces);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(AlbumBoxSex.catalanHertz.catFullYears);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = AlbumBoxSex.catalanHertz.sendMounted;

    
    UIView *revealView = [[UIView alloc] init];
    revealView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:revealView];
    [revealView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(AlbumBoxSex.catalanHertz.gigahertzCut);
    }];

    
    _bridgingMapButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_bridgingMapButton setTitle:AlbumBoxSex.topWaxTreeRole.foggyOwnSin forState:UIControlStateNormal];
    [_bridgingMapButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_bridgingMapButton setBackgroundColor:UIColor.systemGray5Color];
    _bridgingMapButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_bridgingMapButton addTarget:self action:@selector(drawOriginalAndSpokenHaveAction:) forControlEvents:UIControlEventTouchUpInside];
    [revealView addSubview:_bridgingMapButton];
    [_bridgingMapButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(revealView);
        make.width.equalTo(revealView).multipliedBy(0.5);
    }];

    
    _tamilHitTakeButton = [AlbumBoxSex managerResultsExistingAscendingDefinedColor:AlbumBoxSex.topWaxTreeRole.penHall];
    [_tamilHitTakeButton addTarget:self action:@selector(widgetExtendsSubgroupPacketsCreditAction:) forControlEvents:UIControlEventTouchUpInside];
    [revealView addSubview:_tamilHitTakeButton];
    [_tamilHitTakeButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(revealView);
        make.width.equalTo(revealView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_linearTimeView];
    [_linearTimeView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(AlbumBoxSex.catalanHertz.talkIllWire);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(revealView.mas_top);
    }];

    
    if (self.indoorWalk.angularReload.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_linearTimeView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _axesEarHandFun = 0;
    }
}



- (void)drawOriginalAndSpokenHaveAction:(UIButton *)sender {
    [[PredicateManager shared] pongDutchCutWindow];
    if (self.becomeBankers && [self.becomeBankers respondsToSelector:@selector(xxpk_selectMobileAccountCancelButtonDidClick)]) {
        [self.becomeBankers xxpk_selectMobileAccountCancelButtonDidClick];
    }
}

- (void)widgetExtendsSubgroupPacketsCreditAction:(UIButton *)sender {
    [[PredicateManager shared] pongDutchCutWindow];
    if (self.becomeBankers && [self.becomeBankers respondsToSelector:@selector(xxpk_selectMobileAccountConfirmButtonDidClickWithModel:subUnionAccount:)]) {
        NSString *subUnionAccount = self.indoorWalk.angularReload[self.axesEarHandFun];
        [self.becomeBankers xxpk_selectMobileAccountConfirmButtonDidClickWithModel:self.indoorWalk subUnionAccount:subUnionAccount];
    }
}



- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return self.indoorWalk.angularReload.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.indoorWalk.angularReload[indexPath.row];
    cell.textLabel.textColor = UIColor.darkGrayColor;
    cell.textLabel.font = [UIFont systemFontOfSize:16];

    
    if (indexPath.row == self.axesEarHandFun) {
        cell.accessoryType = UITableViewCellAccessoryCheckmark;
        cell.tintColor = [AlbumBoxSex panIodineColor];
    } else {
        cell.accessoryType = UITableViewCellAccessoryNone;
    }

    return cell;
}



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

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

@end
