






#import "SmoothingRecentDingbatsHostLowBarViewController.h"
#import "NSString+Precision.h"

@implementation XXGSelectMobileAccountModel

@end

@interface SmoothingRecentDingbatsHostLowBarViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *easySyntax;
@property (nonatomic, strong) UITableView *wayRunFunkView;
@property (nonatomic, assign) NSInteger itsSiteZeroNap;
@property (nonatomic, strong) UIButton *liftSeeNearButton;
@property (nonatomic, strong) UIButton *findRevisionButton;

@end

@implementation SmoothingRecentDingbatsHostLowBarViewController

- (XXGSelectMobileAccountModel *)easySyntax {
    return self.retBlurTime;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.warpFitWonButton.hidden = YES;
    self.diskGenreButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = SobIllWelsh.notHeapPeerRed.cyrillicLiterDelayDevicesPlane;
    titleLabel.textColor = [SobIllWelsh itemQuickColor];
    titleLabel.font = [UIFont systemFontOfSize:SobIllWelsh.followBigKit.topFirstShot];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(SobIllWelsh.followBigKit.tintDryYear);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(SobIllWelsh.followBigKit.hasPhaseBlue);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = SobIllWelsh.followBigKit.hintFilters;

    
    UIView *weightView = [[UIView alloc] init];
    weightView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:weightView];
    [weightView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(SobIllWelsh.followBigKit.outputsTrash);
    }];

    
    _liftSeeNearButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_liftSeeNearButton setTitle:SobIllWelsh.notHeapPeerRed.sumDistinct forState:UIControlStateNormal];
    [_liftSeeNearButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_liftSeeNearButton setBackgroundColor:UIColor.systemGray5Color];
    _liftSeeNearButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_liftSeeNearButton addTarget:self action:@selector(contrastCalciumMovieSliceTheAction:) forControlEvents:UIControlEventTouchUpInside];
    [weightView addSubview:_liftSeeNearButton];
    [_liftSeeNearButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(weightView);
        make.width.equalTo(weightView).multipliedBy(0.5);
    }];

    
    _findRevisionButton = [SobIllWelsh allExistExecutionCreditsJumpColor:SobIllWelsh.notHeapPeerRed.foodBad];
    [_findRevisionButton addTarget:self action:@selector(purplePrinterHintAreRelativeAction:) forControlEvents:UIControlEventTouchUpInside];
    [weightView addSubview:_findRevisionButton];
    [_findRevisionButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(weightView);
        make.width.equalTo(weightView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_wayRunFunkView];
    [_wayRunFunkView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(SobIllWelsh.followBigKit.cocoaGather);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(weightView.mas_top);
    }];

    
    if (self.easySyntax.capFailingEar.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_wayRunFunkView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _itsSiteZeroNap = 0;
    }
}



- (void)contrastCalciumMovieSliceTheAction:(UIButton *)sender {
    [[SleepPairManager shared] lossContainsWindow];
    if (self.alienHoldEdit && [self.alienHoldEdit respondsToSelector:@selector(xxpk_selectMobileAccountCancelButtonDidClick)]) {
        [self.alienHoldEdit xxpk_selectMobileAccountCancelButtonDidClick];
    }
}

- (void)purplePrinterHintAreRelativeAction:(UIButton *)sender {
    [[SleepPairManager shared] lossContainsWindow];
    if (self.alienHoldEdit && [self.alienHoldEdit respondsToSelector:@selector(xxpk_selectMobileAccountConfirmButtonDidClickWithModel:meanBoldAccount:)]) {
        NSString *meanBoldAccount = self.easySyntax.capFailingEar[self.itsSiteZeroNap];
        [self.alienHoldEdit xxpk_selectMobileAccountConfirmButtonDidClickWithModel:self.easySyntax meanBoldAccount:meanBoldAccount];
    }
}



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

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

    
    if (indexPath.row == self.itsSiteZeroNap) {
        more.accessoryType = UITableViewCellAccessoryCheckmark;
        more.tintColor = [SobIllWelsh itemQuickColor];
    } else {
        more.accessoryType = UITableViewCellAccessoryNone;
    }

    return more;
}



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

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

@end
