






#import "PressTakeCollapsesLoveStaySupportsViewController.h"
#import "NSString+GooglePut.h"

@implementation XXGSelectMobileAccountModel

@end

@interface PressTakeCollapsesLoveStaySupportsViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *limitDecay;
@property (nonatomic, strong) UITableView *buttonWideView;
@property (nonatomic, assign) NSInteger allSixTextPint;
@property (nonatomic, strong) UIButton *tryRedMusicButton;
@property (nonatomic, strong) UIButton *meterOldPackButton;

@end

@implementation PressTakeCollapsesLoveStaySupportsViewController

- (XXGSelectMobileAccountModel *)limitDecay {
    return self.inferOddCut;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.genreFinalButton.hidden = YES;
    self.reversingButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = CutEightLow.mailRetDropSee.artCaretCupEuropeanContainer;
    titleLabel.textColor = [CutEightLow megabytesColor];
    titleLabel.font = [UIFont systemFontOfSize:CutEightLow.licenseSmart.earNapRadial];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(CutEightLow.licenseSmart.buddyTarget);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(CutEightLow.licenseSmart.addressMiles);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = CutEightLow.licenseSmart.fragmentBus;

    
    UIView *rowBigView = [[UIView alloc] init];
    rowBigView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:rowBigView];
    [rowBigView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(CutEightLow.licenseSmart.jobTakeCache);
    }];

    
    _tryRedMusicButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_tryRedMusicButton setTitle:CutEightLow.mailRetDropSee.redItemStop forState:UIControlStateNormal];
    [_tryRedMusicButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_tryRedMusicButton setBackgroundColor:UIColor.systemGray5Color];
    _tryRedMusicButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_tryRedMusicButton addTarget:self action:@selector(lawIterativeCubeWatchNotAction:) forControlEvents:UIControlEventTouchUpInside];
    [rowBigView addSubview:_tryRedMusicButton];
    [_tryRedMusicButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(rowBigView);
        make.width.equalTo(rowBigView).multipliedBy(0.5);
    }];

    
    _meterOldPackButton = [CutEightLow deliveredSecurelyCanClampCenterColor:CutEightLow.mailRetDropSee.fatSize];
    [_meterOldPackButton addTarget:self action:@selector(deviationHellmanBasicRealmSecretAction:) forControlEvents:UIControlEventTouchUpInside];
    [rowBigView addSubview:_meterOldPackButton];
    [_meterOldPackButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(rowBigView);
        make.width.equalTo(rowBigView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_buttonWideView];
    [_buttonWideView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(CutEightLow.licenseSmart.sigmaBinMap);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(rowBigView.mas_top);
    }];

    
    if (self.limitDecay.andWalkCutWas.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_buttonWideView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _allSixTextPint = 0;
    }
}



- (void)lawIterativeCubeWatchNotAction:(UIButton *)sender {
    [[UplinkDryManager shared] forkVolatileWindow];
    if (self.cubeFoodLemma && [self.cubeFoodLemma respondsToSelector:@selector(xxpk_selectMobileAccountCancelButtonDidClick)]) {
        [self.cubeFoodLemma xxpk_selectMobileAccountCancelButtonDidClick];
    }
}

- (void)deviationHellmanBasicRealmSecretAction:(UIButton *)sender {
    [[UplinkDryManager shared] forkVolatileWindow];
    if (self.cubeFoodLemma && [self.cubeFoodLemma respondsToSelector:@selector(xxpk_selectMobileAccountConfirmButtonDidClickWithModel:primeAirAccount:)]) {
        NSString *primeAirAccount = self.limitDecay.andWalkCutWas[self.allSixTextPint];
        [self.cubeFoodLemma xxpk_selectMobileAccountConfirmButtonDidClickWithModel:self.limitDecay primeAirAccount:primeAirAccount];
    }
}



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

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

    
    if (indexPath.row == self.allSixTextPint) {
        lazy.accessoryType = UITableViewCellAccessoryCheckmark;
        lazy.tintColor = [CutEightLow megabytesColor];
    } else {
        lazy.accessoryType = UITableViewCellAccessoryNone;
    }

    return lazy;
}



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

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

@end
