






#import "FunMirroringDenyBlinkExceptionCountingViewController.h"
#import "NSString+ExitsText.h"

@implementation XXGSelectMobileAccountModel

@end

@interface FunMirroringDenyBlinkExceptionCountingViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *speakSpeak;
@property (nonatomic, strong) UITableView *coastDelayView;
@property (nonatomic, assign) NSInteger dashStableSkin;
@property (nonatomic, strong) UIButton *funClaimManButton;
@property (nonatomic, strong) UIButton *guidePinOnceButton;

@end

@implementation FunMirroringDenyBlinkExceptionCountingViewController

- (XXGSelectMobileAccountModel *)speakSpeak {
    return self.mixFatOffer;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.nonceFlashButton.hidden = YES;
    self.lengthLawButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = SkinMeanYet.faxHoldTakePin.detachingEnableCapKeepCoercion;
    titleLabel.textColor = [SkinMeanYet configureColor];
    titleLabel.font = [UIFont systemFontOfSize:SkinMeanYet.reloadRawDay.netRawNotify];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(SkinMeanYet.reloadRawDay.sonFollower);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(SkinMeanYet.reloadRawDay.dialogKitOwn);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = SkinMeanYet.reloadRawDay.youngestHit;

    
    UIView *wonAllView = [[UIView alloc] init];
    wonAllView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:wonAllView];
    [wonAllView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(SkinMeanYet.reloadRawDay.localeResult);
    }];

    
    _funClaimManButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_funClaimManButton setTitle:SkinMeanYet.faxHoldTakePin.everyStroke forState:UIControlStateNormal];
    [_funClaimManButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_funClaimManButton setBackgroundColor:UIColor.systemGray5Color];
    _funClaimManButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_funClaimManButton addTarget:self action:@selector(idleVarianceSubBigLabeledAction:) forControlEvents:UIControlEventTouchUpInside];
    [wonAllView addSubview:_funClaimManButton];
    [_funClaimManButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(wonAllView);
        make.width.equalTo(wonAllView).multipliedBy(0.5);
    }];

    
    _guidePinOnceButton = [SkinMeanYet floaterJobAggregateImpactMattingColor:SkinMeanYet.faxHoldTakePin.seeFact];
    [_guidePinOnceButton addTarget:self action:@selector(photoMultipleContainerDiscoveryShareAction:) forControlEvents:UIControlEventTouchUpInside];
    [wonAllView addSubview:_guidePinOnceButton];
    [_guidePinOnceButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(wonAllView);
        make.width.equalTo(wonAllView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_coastDelayView];
    [_coastDelayView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(SkinMeanYet.reloadRawDay.teamNumeric);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(wonAllView.mas_top);
    }];

    
    if (self.speakSpeak.badBinLeftBar.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_coastDelayView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _dashStableSkin = 0;
    }
}



- (void)idleVarianceSubBigLabeledAction:(UIButton *)sender {
    [[TeaspoonsManager shared] cupMainStoreWindow];
    if (self.shearAddApply && [self.shearAddApply respondsToSelector:@selector(xxpk_selectMobileAccountCancelButtonDidClick)]) {
        [self.shearAddApply xxpk_selectMobileAccountCancelButtonDidClick];
    }
}

- (void)photoMultipleContainerDiscoveryShareAction:(UIButton *)sender {
    [[TeaspoonsManager shared] cupMainStoreWindow];
    if (self.shearAddApply && [self.shearAddApply respondsToSelector:@selector(xxpk_selectMobileAccountConfirmButtonDidClickWithModel:plainSunAccount:)]) {
        NSString *plainSunAccount = self.speakSpeak.badBinLeftBar[self.dashStableSkin];
        [self.shearAddApply xxpk_selectMobileAccountConfirmButtonDidClickWithModel:self.speakSpeak plainSunAccount:plainSunAccount];
    }
}



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

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

    
    if (indexPath.row == self.dashStableSkin) {
        beat.accessoryType = UITableViewCellAccessoryCheckmark;
        beat.tintColor = [SkinMeanYet configureColor];
    } else {
        beat.accessoryType = UITableViewCellAccessoryNone;
    }

    return beat;
}



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

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

@end
