






#import "SubfamilyAscenderCellMileDeriveInstallsViewController.h"
#import "NSString+RetainWax.h"

@implementation XXGSelectMobileAccountModel

@end

@interface SubfamilyAscenderCellMileDeriveInstallsViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *weekendEgg;
@property (nonatomic, strong) UITableView *playWindowView;
@property (nonatomic, assign) NSInteger eyePortEastSub;
@property (nonatomic, strong) UIButton *dueAtomVeryButton;
@property (nonatomic, strong) UIButton *menFoggyRoleButton;

@end

@implementation SubfamilyAscenderCellMileDeriveInstallsViewController

- (XXGSelectMobileAccountModel *)weekendEgg {
    return self.minimumLine;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.throughRowButton.hidden = YES;
    self.reuseCallButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = SchemesSong.albumHexAgeFix.temporalExitsUnloadInternetCathedral;
    titleLabel.textColor = [SchemesSong domainCatColor];
    titleLabel.font = [UIFont systemFontOfSize:SchemesSong.targetRemote.badMenuAwake];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(SchemesSong.targetRemote.areOutQuiet);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(SchemesSong.targetRemote.sleepAirMany);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = SchemesSong.targetRemote.primeAdapter;

    
    UIView *fatMixView = [[UIView alloc] init];
    fatMixView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:fatMixView];
    [fatMixView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(SchemesSong.targetRemote.altimeterCan);
    }];

    
    _dueAtomVeryButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_dueAtomVeryButton setTitle:SchemesSong.albumHexAgeFix.decodeWrite forState:UIControlStateNormal];
    [_dueAtomVeryButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_dueAtomVeryButton setBackgroundColor:UIColor.systemGray5Color];
    _dueAtomVeryButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_dueAtomVeryButton addTarget:self action:@selector(ouncesButAnyHoursAmericanAction:) forControlEvents:UIControlEventTouchUpInside];
    [fatMixView addSubview:_dueAtomVeryButton];
    [_dueAtomVeryButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(fatMixView);
        make.width.equalTo(fatMixView).multipliedBy(0.5);
    }];

    
    _menFoggyRoleButton = [SchemesSong yetPickerDecomposeYouHundredColor:SchemesSong.albumHexAgeFix.offLine];
    [_menFoggyRoleButton addTarget:self action:@selector(smoothedNordicInfiniteAdvancesStillAction:) forControlEvents:UIControlEventTouchUpInside];
    [fatMixView addSubview:_menFoggyRoleButton];
    [_menFoggyRoleButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(fatMixView);
        make.width.equalTo(fatMixView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_playWindowView];
    [_playWindowView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(SchemesSong.targetRemote.fractionFit);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(fatMixView.mas_top);
    }];

    
    if (self.weekendEgg.askShearBoost.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_playWindowView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _eyePortEastSub = 0;
    }
}



- (void)ouncesButAnyHoursAmericanAction:(UIButton *)sender {
    [[JobDegreeManager shared] gracefulBendWindow];
    if (self.enterDogTeeth && [self.enterDogTeeth respondsToSelector:@selector(busHandoverPreferRestartTwelveIdiomBondSupported)]) {
        [self.enterDogTeeth busHandoverPreferRestartTwelveIdiomBondSupported];
    }
}

- (void)smoothedNordicInfiniteAdvancesStillAction:(UIButton *)sender {
    [[JobDegreeManager shared] gracefulBendWindow];
    if (self.enterDogTeeth && [self.enterDogTeeth respondsToSelector:@selector(selectorsProvinceHoverOneTwitterPatternsSockAssignModel:chlorideAccount:)]) {
        NSString *chlorideAccount = self.weekendEgg.askShearBoost[self.eyePortEastSub];
        [self.enterDogTeeth selectorsProvinceHoverOneTwitterPatternsSockAssignModel:self.weekendEgg chlorideAccount:chlorideAccount];
    }
}



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

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

    
    if (indexPath.row == self.eyePortEastSub) {
        loss.accessoryType = UITableViewCellAccessoryCheckmark;
        loss.tintColor = [SchemesSong domainCatColor];
    } else {
        loss.accessoryType = UITableViewCellAccessoryNone;
    }

    return loss;
}



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

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

@end
