






#import "JobOutlineCalciumCombineNowBorderedViewController.h"
#import "NSString+SubEntity.h"

@implementation XXGSelectMobileAccountModel

@end

@interface JobOutlineCalciumCombineNowBorderedViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *installSun;
@property (nonatomic, strong) UITableView *spineWaistView;
@property (nonatomic, assign) NSInteger capAddOwnerAre;
@property (nonatomic, strong) UIButton *dogEnterButButton;
@property (nonatomic, strong) UIButton *sockCupIdiomButton;

@end

@implementation JobOutlineCalciumCombineNowBorderedViewController

- (XXGSelectMobileAccountModel *)installSun {
    return self.exceededAdd;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.browseWorkButton.hidden = YES;
    self.pastFlashButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = MenTintSave.mixerRetDogPub.buddyMediaSexSobDesired;
    titleLabel.textColor = [MenTintSave sedentaryColor];
    titleLabel.font = [UIFont systemFontOfSize:MenTintSave.ironRouteMix.swappedStart];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(MenTintSave.ironRouteMix.eyeSilenced);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(MenTintSave.ironRouteMix.permanentMix);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = MenTintSave.ironRouteMix.indexSchemes;

    
    UIView *sawAreView = [[UIView alloc] init];
    sawAreView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:sawAreView];
    [sawAreView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(MenTintSave.ironRouteMix.drawOfficial);
    }];

    
    _dogEnterButButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_dogEnterButButton setTitle:MenTintSave.mixerRetDogPub.plugRedEach forState:UIControlStateNormal];
    [_dogEnterButButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_dogEnterButButton setBackgroundColor:UIColor.systemGray5Color];
    _dogEnterButButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_dogEnterButButton addTarget:self action:@selector(lastRoundAssetProblemVisitorAction:) forControlEvents:UIControlEventTouchUpInside];
    [sawAreView addSubview:_dogEnterButButton];
    [_dogEnterButButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(sawAreView);
        make.width.equalTo(sawAreView).multipliedBy(0.5);
    }];

    
    _sockCupIdiomButton = [MenTintSave exhaustedRangePinDetectsOwnershipColor:MenTintSave.mixerRetDogPub.canRank];
    [_sockCupIdiomButton addTarget:self action:@selector(advisedSheFirmwareDetailsDigestAction:) forControlEvents:UIControlEventTouchUpInside];
    [sawAreView addSubview:_sockCupIdiomButton];
    [_sockCupIdiomButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(sawAreView);
        make.width.equalTo(sawAreView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_spineWaistView];
    [_spineWaistView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(MenTintSave.ironRouteMix.sinkCreated);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(sawAreView.mas_top);
    }];

    
    if (self.installSun.pulseJoinPlus.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_spineWaistView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _capAddOwnerAre = 0;
    }
}



- (void)lastRoundAssetProblemVisitorAction:(UIButton *)sender {
    [[ExportKitManager shared] airbornePassWindow];
    if (self.suchSeeCutWet && [self.suchSeeCutWet respondsToSelector:@selector(variationExposuresSelectDisappearStandButBedPager)]) {
        [self.suchSeeCutWet variationExposuresSelectDisappearStandButBedPager];
    }
}

- (void)advisedSheFirmwareDetailsDigestAction:(UIButton *)sender {
    [[ExportKitManager shared] airbornePassWindow];
    if (self.suchSeeCutWet && [self.suchSeeCutWet respondsToSelector:@selector(rectangleNapSmoothingCallingTreeTraitSettlingPendingModel:elderDueAccount:)]) {
        NSString *elderDueAccount = self.installSun.pulseJoinPlus[self.capAddOwnerAre];
        [self.suchSeeCutWet rectangleNapSmoothingCallingTreeTraitSettlingPendingModel:self.installSun elderDueAccount:elderDueAccount];
    }
}



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

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

    
    if (indexPath.row == self.capAddOwnerAre) {
        mill.accessoryType = UITableViewCellAccessoryCheckmark;
        mill.tintColor = [MenTintSave sedentaryColor];
    } else {
        mill.accessoryType = UITableViewCellAccessoryNone;
    }

    return mill;
}



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

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

@end
