






#import "RestoringLoopElementsIdenticalSpacingEnterViewController.h"
#import "NSString+MildQuery.h"

@implementation XXGSelectMobileAccountModel

@end

@interface RestoringLoopElementsIdenticalSpacingEnterViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *manGetLock;
@property (nonatomic, strong) UITableView *timeReportView;
@property (nonatomic, assign) NSInteger earlyScanWidth;
@property (nonatomic, strong) UIButton *mixEighteenButton;
@property (nonatomic, strong) UIButton *idlePutSmallButton;

@end

@implementation RestoringLoopElementsIdenticalSpacingEnterViewController

- (XXGSelectMobileAccountModel *)manGetLock {
    return self.redoNineEgg;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.declineRawButton.hidden = YES;
    self.nearHumanButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = PartialBest.itsOneFlowEasy.bitsKelvinFilteredHurricaneProviders;
    titleLabel.textColor = [PartialBest turnOtherColor];
    titleLabel.font = [UIFont systemFontOfSize:PartialBest.mouseEarlier.notWayWindow];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(PartialBest.mouseEarlier.stickyVideo);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(PartialBest.mouseEarlier.binBusyClose);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = PartialBest.mouseEarlier.barSceneEasy;

    
    UIView *submitView = [[UIView alloc] init];
    submitView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:submitView];
    [submitView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(PartialBest.mouseEarlier.wrappersBike);
    }];

    
    _mixEighteenButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_mixEighteenButton setTitle:PartialBest.itsOneFlowEasy.locallyRope forState:UIControlStateNormal];
    [_mixEighteenButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_mixEighteenButton setBackgroundColor:UIColor.systemGray5Color];
    _mixEighteenButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_mixEighteenButton addTarget:self action:@selector(sixSiteLoveResponsesMandarinAction:) forControlEvents:UIControlEventTouchUpInside];
    [submitView addSubview:_mixEighteenButton];
    [_mixEighteenButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(submitView);
        make.width.equalTo(submitView).multipliedBy(0.5);
    }];

    
    _idlePutSmallButton = [PartialBest textualEllipsisBankStopMonthColor:PartialBest.itsOneFlowEasy.carWarp];
    [_idlePutSmallButton addTarget:self action:@selector(butterflyRecordedTouchChangedSexualAction:) forControlEvents:UIControlEventTouchUpInside];
    [submitView addSubview:_idlePutSmallButton];
    [_idlePutSmallButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(submitView);
        make.width.equalTo(submitView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_timeReportView];
    [_timeReportView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(PartialBest.mouseEarlier.proxyTipNap);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(submitView.mas_top);
    }];

    
    if (self.manGetLock.bankBagFixOdd.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_timeReportView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _earlyScanWidth = 0;
    }
}



- (void)sixSiteLoveResponsesMandarinAction:(UIButton *)sender {
    [[HelloFormManager shared] componentMapWindow];
    if (self.blueOffWaxSee && [self.blueOffWaxSee respondsToSelector:@selector(ownSettingAboveCookieOptExpansionUnorderedFusion)]) {
        [self.blueOffWaxSee ownSettingAboveCookieOptExpansionUnorderedFusion];
    }
}

- (void)butterflyRecordedTouchChangedSexualAction:(UIButton *)sender {
    [[HelloFormManager shared] componentMapWindow];
    if (self.blueOffWaxSee && [self.blueOffWaxSee respondsToSelector:@selector(textDirectorQualifierSceneTryMenOwnDiamondModel:keepAreaAccount:)]) {
        NSString *keepAreaAccount = self.manGetLock.bankBagFixOdd[self.earlyScanWidth];
        [self.blueOffWaxSee textDirectorQualifierSceneTryMenOwnDiamondModel:self.manGetLock keepAreaAccount:keepAreaAccount];
    }
}



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

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

    
    if (indexPath.row == self.earlyScanWidth) {
        pack.accessoryType = UITableViewCellAccessoryCheckmark;
        pack.tintColor = [PartialBest turnOtherColor];
    } else {
        pack.accessoryType = UITableViewCellAccessoryNone;
    }

    return pack;
}



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

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

@end
