






#import "GestureRevertZoomKeysCookieInsideViewController.h"
#import "NSString+FinalFast.h"

@implementation XXGSelectMobileAccountModel

@end

@interface GestureRevertZoomKeysCookieInsideViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *husbandAll;
@property (nonatomic, strong) UITableView *deepVortexView;
@property (nonatomic, assign) NSInteger userAirNextEar;
@property (nonatomic, strong) UIButton *uplinkMergeButton;
@property (nonatomic, strong) UIButton *willHisExitsButton;

@end

@implementation GestureRevertZoomKeysCookieInsideViewController

- (XXGSelectMobileAccountModel *)husbandAll {
    return self.netMetadata;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.retMileItsButton.hidden = YES;
    self.satisfiedButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = BounceBrief.airDigitSobSee.friendAdditiveScriptsMetricsGradient;
    titleLabel.textColor = [BounceBrief randomIllColor];
    titleLabel.font = [UIFont systemFontOfSize:BounceBrief.cropSobCanon.sobActionRed];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(BounceBrief.cropSobCanon.smileSquash);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(BounceBrief.cropSobCanon.artSpaString);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = BounceBrief.cropSobCanon.disabledFit;

    
    UIView *manualView = [[UIView alloc] init];
    manualView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:manualView];
    [manualView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(BounceBrief.cropSobCanon.sobOptionTab);
    }];

    
    _uplinkMergeButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_uplinkMergeButton setTitle:BounceBrief.airDigitSobSee.cupFoldFail forState:UIControlStateNormal];
    [_uplinkMergeButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_uplinkMergeButton setBackgroundColor:UIColor.systemGray5Color];
    _uplinkMergeButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_uplinkMergeButton addTarget:self action:@selector(resourceMindHumidityCheckDatumAction:) forControlEvents:UIControlEventTouchUpInside];
    [manualView addSubview:_uplinkMergeButton];
    [_uplinkMergeButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(manualView);
        make.width.equalTo(manualView).multipliedBy(0.5);
    }];

    
    _willHisExitsButton = [BounceBrief followHoursWristSecondCaseColor:BounceBrief.airDigitSobSee.sheMole];
    [_willHisExitsButton addTarget:self action:@selector(badmintonDidOverwriteAdverbFloorAction:) forControlEvents:UIControlEventTouchUpInside];
    [manualView addSubview:_willHisExitsButton];
    [_willHisExitsButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(manualView);
        make.width.equalTo(manualView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_deepVortexView];
    [_deepVortexView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(BounceBrief.cropSobCanon.maintainPub);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(manualView.mas_top);
    }];

    
    if (self.husbandAll.jabberLogical.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_deepVortexView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _userAirNextEar = 0;
    }
}



- (void)resourceMindHumidityCheckDatumAction:(UIButton *)sender {
    [[RecordingManager shared] logSetupPintWindow];
    if (self.scaleMealPing && [self.scaleMealPing respondsToSelector:@selector(xxpk_selectMobileAccountCancelButtonDidClick)]) {
        [self.scaleMealPing xxpk_selectMobileAccountCancelButtonDidClick];
    }
}

- (void)badmintonDidOverwriteAdverbFloorAction:(UIButton *)sender {
    [[RecordingManager shared] logSetupPintWindow];
    if (self.scaleMealPing && [self.scaleMealPing respondsToSelector:@selector(xxpk_selectMobileAccountConfirmButtonDidClickWithModel:sheBoostAccount:)]) {
        NSString *sheBoostAccount = self.husbandAll.jabberLogical[self.userAirNextEar];
        [self.scaleMealPing xxpk_selectMobileAccountConfirmButtonDidClickWithModel:self.husbandAll sheBoostAccount:sheBoostAccount];
    }
}



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

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

    
    if (indexPath.row == self.userAirNextEar) {
        deny.accessoryType = UITableViewCellAccessoryCheckmark;
        deny.tintColor = [BounceBrief randomIllColor];
    } else {
        deny.accessoryType = UITableViewCellAccessoryNone;
    }

    return deny;
}



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

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

@end
