






#import "ScannedQuotationPashtoPeopleLowHundredViewController.h"
#import "NSString+OddArmpit.h"

@implementation XXGSelectMobileAccountModel

@end

@interface ScannedQuotationPashtoPeopleLowHundredViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *farLossPin;
@property (nonatomic, strong) UITableView *mapEchoSunView;
@property (nonatomic, assign) NSInteger shrinkMustPlay;
@property (nonatomic, strong) UIButton *unlearnRateButton;
@property (nonatomic, strong) UIButton *encryptedUseButton;

@end

@implementation ScannedQuotationPashtoPeopleLowHundredViewController

- (XXGSelectMobileAccountModel *)farLossPin {
    return self.givenBarRet;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.coverStandButton.hidden = YES;
    self.eggSignerButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = BinFaxEight.signRoomModify.unlikelyDitherProducerMusicalBecome;
    titleLabel.textColor = [BinFaxEight indentJobColor];
    titleLabel.font = [UIFont systemFontOfSize:BinFaxEight.icyAboutDrum.ownEmbedding];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(BinFaxEight.icyAboutDrum.howShakeSix);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(BinFaxEight.icyAboutDrum.recycleToken);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = BinFaxEight.icyAboutDrum.canTagEleven;

    
    UIView *zipSawView = [[UIView alloc] init];
    zipSawView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:zipSawView];
    [zipSawView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(BinFaxEight.icyAboutDrum.getForDecide);
    }];

    
    _unlearnRateButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_unlearnRateButton setTitle:BinFaxEight.signRoomModify.shuffleTrad forState:UIControlStateNormal];
    [_unlearnRateButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_unlearnRateButton setBackgroundColor:UIColor.systemGray5Color];
    _unlearnRateButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_unlearnRateButton addTarget:self action:@selector(buttonVectorOldestFutureSynthesisAction:) forControlEvents:UIControlEventTouchUpInside];
    [zipSawView addSubview:_unlearnRateButton];
    [_unlearnRateButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(zipSawView);
        make.width.equalTo(zipSawView).multipliedBy(0.5);
    }];

    
    _encryptedUseButton = [BinFaxEight ratingsIndigoNumeratorRenameBrokenColor:BinFaxEight.signRoomModify.slowOdd];
    [_encryptedUseButton addTarget:self action:@selector(processAliveStairLargerDifferentAction:) forControlEvents:UIControlEventTouchUpInside];
    [zipSawView addSubview:_encryptedUseButton];
    [_encryptedUseButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(zipSawView);
        make.width.equalTo(zipSawView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_mapEchoSunView];
    [_mapEchoSunView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(BinFaxEight.icyAboutDrum.carReceives);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(zipSawView.mas_top);
    }];

    
    if (self.farLossPin.adobeArtFinal.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_mapEchoSunView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _shrinkMustPlay = 0;
    }
}



- (void)buttonVectorOldestFutureSynthesisAction:(UIButton *)sender {
    [[BalticFixManager shared] capturingOddWindow];
    if (self.draftPieceAre && [self.draftPieceAre respondsToSelector:@selector(xxpk_selectMobileAccountCancelButtonDidClick)]) {
        [self.draftPieceAre xxpk_selectMobileAccountCancelButtonDidClick];
    }
}

- (void)processAliveStairLargerDifferentAction:(UIButton *)sender {
    [[BalticFixManager shared] capturingOddWindow];
    if (self.draftPieceAre && [self.draftPieceAre respondsToSelector:@selector(xxpk_selectMobileAccountConfirmButtonDidClickWithModel:thirteenAccount:)]) {
        NSString *thirteenAccount = self.farLossPin.adobeArtFinal[self.shrinkMustPlay];
        [self.draftPieceAre xxpk_selectMobileAccountConfirmButtonDidClickWithModel:self.farLossPin thirteenAccount:thirteenAccount];
    }
}



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

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

    
    if (indexPath.row == self.shrinkMustPlay) {
        pool.accessoryType = UITableViewCellAccessoryCheckmark;
        pool.tintColor = [BinFaxEight indentJobColor];
    } else {
        pool.accessoryType = UITableViewCellAccessoryNone;
    }

    return pool;
}



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

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

@end
