






#import "SurgeChlorideFlushedStrokePopoverRenewViewController.h"
#import "NSString+TowerNeed.h"

@implementation XXGSelectMobileAccountModel

@end

@interface SurgeChlorideFlushedStrokePopoverRenewViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *desiredAre;
@property (nonatomic, strong) UITableView *symbolsSexView;
@property (nonatomic, assign) NSInteger serialHangShow;
@property (nonatomic, strong) UIButton *putPinkUnitButton;
@property (nonatomic, strong) UIButton *nowMillCanonButton;

@end

@implementation SurgeChlorideFlushedStrokePopoverRenewViewController

- (XXGSelectMobileAccountModel *)desiredAre {
    return self.burmeseFive;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.redPanSlowButton.hidden = YES;
    self.ornamentsButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = BadMeanSame.bikeVeryIcyOne.pashtoTransientInfiniteTraitRoot;
    titleLabel.textColor = [BadMeanSame currentlyColor];
    titleLabel.font = [UIFont systemFontOfSize:BadMeanSame.clockwiseSun.goalShipment];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(BadMeanSame.clockwiseSun.forkSinSent);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(BadMeanSame.clockwiseSun.starThirdHue);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = BadMeanSame.clockwiseSun.formatAgent;

    
    UIView *airHitView = [[UIView alloc] init];
    airHitView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:airHitView];
    [airHitView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(BadMeanSame.clockwiseSun.russianMiles);
    }];

    
    _putPinkUnitButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_putPinkUnitButton setTitle:BadMeanSame.bikeVeryIcyOne.nowBitArray forState:UIControlStateNormal];
    [_putPinkUnitButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_putPinkUnitButton setBackgroundColor:UIColor.systemGray5Color];
    _putPinkUnitButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_putPinkUnitButton addTarget:self action:@selector(clientDueEnablingNecessaryActivateAction:) forControlEvents:UIControlEventTouchUpInside];
    [airHitView addSubview:_putPinkUnitButton];
    [_putPinkUnitButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(airHitView);
        make.width.equalTo(airHitView).multipliedBy(0.5);
    }];

    
    _nowMillCanonButton = [BadMeanSame torqueBadRenewButtonFilenameColor:BadMeanSame.bikeVeryIcyOne.kinLook];
    [_nowMillCanonButton addTarget:self action:@selector(hoursTeluguUsabilityBadmintonMixerAction:) forControlEvents:UIControlEventTouchUpInside];
    [airHitView addSubview:_nowMillCanonButton];
    [_nowMillCanonButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(airHitView);
        make.width.equalTo(airHitView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_symbolsSexView];
    [_symbolsSexView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(BadMeanSame.clockwiseSun.hueAreLoose);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(airHitView.mas_top);
    }];

    
    if (self.desiredAre.kitAdvisedOwn.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_symbolsSexView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _serialHangShow = 0;
    }
}



- (void)clientDueEnablingNecessaryActivateAction:(UIButton *)sender {
    [[WeekLayerManager shared] stoneLateFatWindow];
    if (self.textFixSumMin && [self.textFixSumMin respondsToSelector:@selector(waySuccessEffectWakeForJustifiedPrintedScheme)]) {
        [self.textFixSumMin waySuccessEffectWakeForJustifiedPrintedScheme];
    }
}

- (void)hoursTeluguUsabilityBadmintonMixerAction:(UIButton *)sender {
    [[WeekLayerManager shared] stoneLateFatWindow];
    if (self.textFixSumMin && [self.textFixSumMin respondsToSelector:@selector(transposeAcquireEvaluatedDigitizedPreventsRankReceiptRuleModel:ignoringAccount:)]) {
        NSString *ignoringAccount = self.desiredAre.kitAdvisedOwn[self.serialHangShow];
        [self.textFixSumMin transposeAcquireEvaluatedDigitizedPreventsRankReceiptRuleModel:self.desiredAre ignoringAccount:ignoringAccount];
    }
}



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

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

    
    if (indexPath.row == self.serialHangShow) {
        site.accessoryType = UITableViewCellAccessoryCheckmark;
        site.tintColor = [BadMeanSame currentlyColor];
    } else {
        site.accessoryType = UITableViewCellAccessoryNone;
    }

    return site;
}



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

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

@end
