






#import "OffsetsMutationSupportedFitAddTripleViewController.h"
#import "NSString+NeverRank.h"

@implementation XXGSelectMobileAccountModel

@end

@interface OffsetsMutationSupportedFitAddTripleViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *penCounted;
@property (nonatomic, strong) UITableView *tenWaitOneView;
@property (nonatomic, assign) NSInteger kinFinalEndAll;
@property (nonatomic, strong) UIButton *posterBatchButton;
@property (nonatomic, strong) UIButton *cornerMemoryButton;

@end

@implementation OffsetsMutationSupportedFitAddTripleViewController

- (XXGSelectMobileAccountModel *)penCounted {
    return self.boxInfinity;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.autoCarSexButton.hidden = YES;
    self.execBrownButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = RowAirFloor.iconYellowCube.typeBannerDefinedIntrinsicSlab;
    titleLabel.textColor = [RowAirFloor genderTooColor];
    titleLabel.font = [UIFont systemFontOfSize:RowAirFloor.loveHitOrder.putAllocated];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(RowAirFloor.loveHitOrder.reactorSelf);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(RowAirFloor.loveHitOrder.sinUtilities);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = RowAirFloor.loveHitOrder.timeCreation;

    
    UIView *hexPanView = [[UIView alloc] init];
    hexPanView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:hexPanView];
    [hexPanView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(RowAirFloor.loveHitOrder.inviteeRange);
    }];

    
    _posterBatchButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_posterBatchButton setTitle:RowAirFloor.iconYellowCube.stakeExpect forState:UIControlStateNormal];
    [_posterBatchButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_posterBatchButton setBackgroundColor:UIColor.systemGray5Color];
    _posterBatchButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_posterBatchButton addTarget:self action:@selector(tenZoomingJapaneseCancelsDesignAction:) forControlEvents:UIControlEventTouchUpInside];
    [hexPanView addSubview:_posterBatchButton];
    [_posterBatchButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(hexPanView);
        make.width.equalTo(hexPanView).multipliedBy(0.5);
    }];

    
    _cornerMemoryButton = [RowAirFloor eitherPlanarUtilitiesDegreesManganeseColor:RowAirFloor.iconYellowCube.soloTip];
    [_cornerMemoryButton addTarget:self action:@selector(errorEmptyMasterWarpBuddyAction:) forControlEvents:UIControlEventTouchUpInside];
    [hexPanView addSubview:_cornerMemoryButton];
    [_cornerMemoryButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(hexPanView);
        make.width.equalTo(hexPanView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_tenWaitOneView];
    [_tenWaitOneView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(RowAirFloor.loveHitOrder.oneModalOpt);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(hexPanView.mas_top);
    }];

    
    if (self.penCounted.flagEulerMenu.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_tenWaitOneView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _kinFinalEndAll = 0;
    }
}



- (void)tenZoomingJapaneseCancelsDesignAction:(UIButton *)sender {
    [[HangOrderManager shared] waxMustGreenWindow];
    if (self.withinDecline && [self.withinDecline respondsToSelector:@selector(stormPullBoundCautionPlanarShotParsingConflicts)]) {
        [self.withinDecline stormPullBoundCautionPlanarShotParsingConflicts];
    }
}

- (void)errorEmptyMasterWarpBuddyAction:(UIButton *)sender {
    [[HangOrderManager shared] waxMustGreenWindow];
    if (self.withinDecline && [self.withinDecline respondsToSelector:@selector(soloCallbackCapsFormattedSpellCaretDryConsumesModel:tipSliceAccount:)]) {
        NSString *tipSliceAccount = self.penCounted.flagEulerMenu[self.kinFinalEndAll];
        [self.withinDecline soloCallbackCapsFormattedSpellCaretDryConsumesModel:self.penCounted tipSliceAccount:tipSliceAccount];
    }
}



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

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

    
    if (indexPath.row == self.kinFinalEndAll) {
        word.accessoryType = UITableViewCellAccessoryCheckmark;
        word.tintColor = [RowAirFloor genderTooColor];
    } else {
        word.accessoryType = UITableViewCellAccessoryNone;
    }

    return word;
}



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

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

@end
