






#import "ArmBaselineUptimeRollbackPostcardAffectingViewController.h"
#import "NSString+MayRename.h"

@implementation XXGSelectMobileAccountModel

@end

@interface ArmBaselineUptimeRollbackPostcardAffectingViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *processBus;
@property (nonatomic, strong) UITableView *optTryWideView;
@property (nonatomic, assign) NSInteger askBookFatTree;
@property (nonatomic, strong) UIButton *tintRuleSeeButton;
@property (nonatomic, strong) UIButton *eyeSinFamilyButton;

@end

@implementation ArmBaselineUptimeRollbackPostcardAffectingViewController

- (XXGSelectMobileAccountModel *)processBus {
    return self.cupDropHour;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.drawingMidButton.hidden = YES;
    self.modelBoldButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = SafeTradEar.bankRowTapsAsk.audiencesFrequencyEffectiveTamilMaterial;
    titleLabel.textColor = [SafeTradEar dueScreenColor];
    titleLabel.font = [UIFont systemFontOfSize:SafeTradEar.smallestMany.tooProtocols];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(SafeTradEar.smallestMany.tensionBody);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(SafeTradEar.smallestMany.tenSonStream);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = SafeTradEar.smallestMany.pongPongNap;

    
    UIView *reduceView = [[UIView alloc] init];
    reduceView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:reduceView];
    [reduceView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(SafeTradEar.smallestMany.scrollsPitch);
    }];

    
    _tintRuleSeeButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_tintRuleSeeButton setTitle:SafeTradEar.bankRowTapsAsk.panRenewMay forState:UIControlStateNormal];
    [_tintRuleSeeButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_tintRuleSeeButton setBackgroundColor:UIColor.systemGray5Color];
    _tintRuleSeeButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_tintRuleSeeButton addTarget:self action:@selector(birthFigureWaxAwayAssertionAction:) forControlEvents:UIControlEventTouchUpInside];
    [reduceView addSubview:_tintRuleSeeButton];
    [_tintRuleSeeButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(reduceView);
        make.width.equalTo(reduceView).multipliedBy(0.5);
    }];

    
    _eyeSinFamilyButton = [SafeTradEar endRedImageAccessingGrandauntColor:SafeTradEar.bankRowTapsAsk.lettish];
    [_eyeSinFamilyButton addTarget:self action:@selector(downloadsWrapRedirectOutsideCurlAction:) forControlEvents:UIControlEventTouchUpInside];
    [reduceView addSubview:_eyeSinFamilyButton];
    [_eyeSinFamilyButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(reduceView);
        make.width.equalTo(reduceView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_optTryWideView];
    [_optTryWideView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(SafeTradEar.smallestMany.wakeManChar);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(reduceView.mas_top);
    }];

    
    if (self.processBus.hisLostRunMid.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_optTryWideView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _askBookFatTree = 0;
    }
}



- (void)birthFigureWaxAwayAssertionAction:(UIButton *)sender {
    [[EnergySixManager shared] thumbUsesLowWindow];
    if (self.putAddEggLoop && [self.putAddEggLoop respondsToSelector:@selector(updatesOwnPersonalFrameBroadcastSegmentStrategyShe)]) {
        [self.putAddEggLoop updatesOwnPersonalFrameBroadcastSegmentStrategyShe];
    }
}

- (void)downloadsWrapRedirectOutsideCurlAction:(UIButton *)sender {
    [[EnergySixManager shared] thumbUsesLowWindow];
    if (self.putAddEggLoop && [self.putAddEggLoop respondsToSelector:@selector(olympusSpecificRenewedYahooFixHebrewPanBoxModel:helpSoloAccount:)]) {
        NSString *helpSoloAccount = self.processBus.hisLostRunMid[self.askBookFatTree];
        [self.putAddEggLoop olympusSpecificRenewedYahooFixHebrewPanBoxModel:self.processBus helpSoloAccount:helpSoloAccount];
    }
}



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

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

    
    if (indexPath.row == self.askBookFatTree) {
        near.accessoryType = UITableViewCellAccessoryCheckmark;
        near.tintColor = [SafeTradEar dueScreenColor];
    } else {
        near.accessoryType = UITableViewCellAccessoryNone;
    }

    return near;
}



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

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

@end
