






#import "ZipSumQualityTwoTicketsMegawattsViewController.h"
#import "NSString+ExitsTask.h"

@implementation XXGSelectMobileAccountModel

@end

@interface ZipSumQualityTwoTicketsMegawattsViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *keyExecute;
@property (nonatomic, strong) UITableView *hertzResetView;
@property (nonatomic, assign) NSInteger percentCalling;
@property (nonatomic, strong) UIButton *subFarRaiseButton;
@property (nonatomic, strong) UIButton *wakeClickOldButton;

@end

@implementation ZipSumQualityTwoTicketsMegawattsViewController

- (XXGSelectMobileAccountModel *)keyExecute {
    return self.bringSixBar;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.basalPhoneButton.hidden = YES;
    self.frameEndsButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = ScrollDatum.spanMarkCutter.trackMetabolicAbnormalHungarianEnsure;
    titleLabel.textColor = [ScrollDatum cinematicColor];
    titleLabel.font = [UIFont systemFontOfSize:ScrollDatum.tildeStopHit.numericBlack];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(ScrollDatum.tildeStopHit.andBloodNow);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(ScrollDatum.tildeStopHit.kinTextBezel);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = ScrollDatum.tildeStopHit.gainLossSay;

    
    UIView *niacinView = [[UIView alloc] init];
    niacinView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:niacinView];
    [niacinView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(ScrollDatum.tildeStopHit.interactHail);
    }];

    
    _subFarRaiseButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_subFarRaiseButton setTitle:ScrollDatum.spanMarkCutter.clipResting forState:UIControlStateNormal];
    [_subFarRaiseButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_subFarRaiseButton setBackgroundColor:UIColor.systemGray5Color];
    _subFarRaiseButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_subFarRaiseButton addTarget:self action:@selector(decodingHaveFetchedReportingUrgentAction:) forControlEvents:UIControlEventTouchUpInside];
    [niacinView addSubview:_subFarRaiseButton];
    [_subFarRaiseButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(niacinView);
        make.width.equalTo(niacinView).multipliedBy(0.5);
    }];

    
    _wakeClickOldButton = [ScrollDatum favoritesSwahiliDisablesDryChildrenColor:ScrollDatum.spanMarkCutter.rareMin];
    [_wakeClickOldButton addTarget:self action:@selector(destroyIndianArcadeTruncateRecipientAction:) forControlEvents:UIControlEventTouchUpInside];
    [niacinView addSubview:_wakeClickOldButton];
    [_wakeClickOldButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(niacinView);
        make.width.equalTo(niacinView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_hertzResetView];
    [_hertzResetView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(ScrollDatum.tildeStopHit.wasPhotoTap);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(niacinView.mas_top);
    }];

    
    if (self.keyExecute.ratioBedEvery.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_hertzResetView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _percentCalling = 0;
    }
}



- (void)decodingHaveFetchedReportingUrgentAction:(UIButton *)sender {
    [[CoverTimeManager shared] youTooCopticWindow];
    if (self.slowTempRenew && [self.slowTempRenew respondsToSelector:@selector(mobileMixRetAlgorithmLiterOffProcessSelected)]) {
        [self.slowTempRenew mobileMixRetAlgorithmLiterOffProcessSelected];
    }
}

- (void)destroyIndianArcadeTruncateRecipientAction:(UIButton *)sender {
    [[CoverTimeManager shared] youTooCopticWindow];
    if (self.slowTempRenew && [self.slowTempRenew respondsToSelector:@selector(mathPerformerSiteCatColleagueDiscountsDecipherCreditModel:dryEnterAccount:)]) {
        NSString *dryEnterAccount = self.keyExecute.ratioBedEvery[self.percentCalling];
        [self.slowTempRenew mathPerformerSiteCatColleagueDiscountsDecipherCreditModel:self.keyExecute dryEnterAccount:dryEnterAccount];
    }
}



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

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

    
    if (indexPath.row == self.percentCalling) {
        grow.accessoryType = UITableViewCellAccessoryCheckmark;
        grow.tintColor = [ScrollDatum cinematicColor];
    } else {
        grow.accessoryType = UITableViewCellAccessoryNone;
    }

    return grow;
}



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

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

@end
