






#import "NeutralProcessedDrawReceiveIrregularRowViewController.h"
#import "NSString+SigmaPlay.h"

@implementation XXGSelectMobileAccountModel

@end

@interface NeutralProcessedDrawReceiveIrregularRowViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *regionBeat;
@property (nonatomic, strong) UITableView *invitedTopView;
@property (nonatomic, assign) NSInteger localizesCycle;
@property (nonatomic, strong) UIButton *lineLowCharButton;
@property (nonatomic, strong) UIButton *jobThreeSkipButton;

@end

@implementation NeutralProcessedDrawReceiveIrregularRowViewController

- (XXGSelectMobileAccountModel *)regionBeat {
    return self.artworkBand;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.workOuncesButton.hidden = YES;
    self.agePreferButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = HerLaunched.pinCarOuterMan.shuffleBuddhistSeventeenDustSpine;
    titleLabel.textColor = [HerLaunched ironGuideColor];
    titleLabel.font = [UIFont systemFontOfSize:HerLaunched.brownFairKin.canAccording];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(HerLaunched.brownFairKin.scanAskCurl);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(HerLaunched.brownFairKin.textIllQueue);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = HerLaunched.brownFairKin.workSwahili;

    
    UIView *scalarView = [[UIView alloc] init];
    scalarView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:scalarView];
    [scalarView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(HerLaunched.brownFairKin.coverEditSaw);
    }];

    
    _lineLowCharButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_lineLowCharButton setTitle:HerLaunched.pinCarOuterMan.affectedPan forState:UIControlStateNormal];
    [_lineLowCharButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_lineLowCharButton setBackgroundColor:UIColor.systemGray5Color];
    _lineLowCharButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_lineLowCharButton addTarget:self action:@selector(subFinnishTwistHaveErrorAction:) forControlEvents:UIControlEventTouchUpInside];
    [scalarView addSubview:_lineLowCharButton];
    [_lineLowCharButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(scalarView);
        make.width.equalTo(scalarView).multipliedBy(0.5);
    }];

    
    _jobThreeSkipButton = [HerLaunched sortSaySpeakersOrnamentsKitColor:HerLaunched.pinCarOuterMan.gainFax];
    [_jobThreeSkipButton addTarget:self action:@selector(offsetWeightsBoxExchangesEulerAction:) forControlEvents:UIControlEventTouchUpInside];
    [scalarView addSubview:_jobThreeSkipButton];
    [_jobThreeSkipButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(scalarView);
        make.width.equalTo(scalarView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_invitedTopView];
    [_invitedTopView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(HerLaunched.brownFairKin.publicSetup);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(scalarView.mas_top);
    }];

    
    if (self.regionBeat.eastSmileTool.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_invitedTopView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _localizesCycle = 0;
    }
}



- (void)subFinnishTwistHaveErrorAction:(UIButton *)sender {
    [[NiacinBigManager shared] anchoringIcyWindow];
    if (self.boxDueRepeats && [self.boxDueRepeats respondsToSelector:@selector(xxpk_selectMobileAccountCancelButtonDidClick)]) {
        [self.boxDueRepeats xxpk_selectMobileAccountCancelButtonDidClick];
    }
}

- (void)offsetWeightsBoxExchangesEulerAction:(UIButton *)sender {
    [[NiacinBigManager shared] anchoringIcyWindow];
    if (self.boxDueRepeats && [self.boxDueRepeats respondsToSelector:@selector(xxpk_selectMobileAccountConfirmButtonDidClickWithModel:replyLawAccount:)]) {
        NSString *replyLawAccount = self.regionBeat.eastSmileTool[self.localizesCycle];
        [self.boxDueRepeats xxpk_selectMobileAccountConfirmButtonDidClickWithModel:self.regionBeat replyLawAccount:replyLawAccount];
    }
}



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

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

    
    if (indexPath.row == self.localizesCycle) {
        exec.accessoryType = UITableViewCellAccessoryCheckmark;
        exec.tintColor = [HerLaunched ironGuideColor];
    } else {
        exec.accessoryType = UITableViewCellAccessoryNone;
    }

    return exec;
}



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

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

@end
