






#import "ExemplarYoungerAlphabetTallDateBodyViewController.h"
#import "NSString+AdoptPeer.h"

@implementation XXGSelectMobileAccountModel

@end

@interface ExemplarYoungerAlphabetTallDateBodyViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *eggCadence;
@property (nonatomic, strong) UITableView *ownLineGetView;
@property (nonatomic, assign) NSInteger delayMustCanon;
@property (nonatomic, strong) UIButton *otherTapKeyButton;
@property (nonatomic, strong) UIButton *hexDeepMolarButton;

@end

@implementation ExemplarYoungerAlphabetTallDateBodyViewController

- (XXGSelectMobileAccountModel *)eggCadence {
    return self.lookPairKey;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.endTaggingButton.hidden = YES;
    self.valueRingButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = MusicLowPen.mailCanSkinMid.unknownVerifySonSentinelWarn;
    titleLabel.textColor = [MusicLowPen markupOddColor];
    titleLabel.font = [UIFont systemFontOfSize:MusicLowPen.artBehaveMay.sixTooThread];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(MusicLowPen.artBehaveMay.memoryShape);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(MusicLowPen.artBehaveMay.topUnitQuick);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = MusicLowPen.artBehaveMay.widgetHeavy;

    
    UIView *remoteView = [[UIView alloc] init];
    remoteView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:remoteView];
    [remoteView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(MusicLowPen.artBehaveMay.revertingSaw);
    }];

    
    _otherTapKeyButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_otherTapKeyButton setTitle:MusicLowPen.mailCanSkinMid.tooTenTwist forState:UIControlStateNormal];
    [_otherTapKeyButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_otherTapKeyButton setBackgroundColor:UIColor.systemGray5Color];
    _otherTapKeyButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_otherTapKeyButton addTarget:self action:@selector(noticeBalticFaceLocallyBoxAction:) forControlEvents:UIControlEventTouchUpInside];
    [remoteView addSubview:_otherTapKeyButton];
    [_otherTapKeyButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(remoteView);
        make.width.equalTo(remoteView).multipliedBy(0.5);
    }];

    
    _hexDeepMolarButton = [MusicLowPen filenameNoteTelephotoLanguagesNegativeColor:MusicLowPen.mailCanSkinMid.dryTail];
    [_hexDeepMolarButton addTarget:self action:@selector(vectorDefineBecomeLeaveHighestAction:) forControlEvents:UIControlEventTouchUpInside];
    [remoteView addSubview:_hexDeepMolarButton];
    [_hexDeepMolarButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(remoteView);
        make.width.equalTo(remoteView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_ownLineGetView];
    [_ownLineGetView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(MusicLowPen.artBehaveMay.leadIslamic);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(remoteView.mas_top);
    }];

    
    if (self.eggCadence.statementCube.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_ownLineGetView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _delayMustCanon = 0;
    }
}



- (void)noticeBalticFaceLocallyBoxAction:(UIButton *)sender {
    [[BigCustomManager shared] waxNativeYetWindow];
    if (self.finalStillAsk && [self.finalStillAsk respondsToSelector:@selector(xxpk_selectMobileAccountCancelButtonDidClick)]) {
        [self.finalStillAsk xxpk_selectMobileAccountCancelButtonDidClick];
    }
}

- (void)vectorDefineBecomeLeaveHighestAction:(UIButton *)sender {
    [[BigCustomManager shared] waxNativeYetWindow];
    if (self.finalStillAsk && [self.finalStillAsk respondsToSelector:@selector(xxpk_selectMobileAccountConfirmButtonDidClickWithModel:eachDrawAccount:)]) {
        NSString *eachDrawAccount = self.eggCadence.statementCube[self.delayMustCanon];
        [self.finalStillAsk xxpk_selectMobileAccountConfirmButtonDidClickWithModel:self.eggCadence eachDrawAccount:eachDrawAccount];
    }
}



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

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

    
    if (indexPath.row == self.delayMustCanon) {
        fair.accessoryType = UITableViewCellAccessoryCheckmark;
        fair.tintColor = [MusicLowPen markupOddColor];
    } else {
        fair.accessoryType = UITableViewCellAccessoryNone;
    }

    return fair;
}



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

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

@end
