






#import "DeliverFitOptBinConjugateSyntaxViewController.h"
#import "NSString+BankDrive.h"

@implementation XXGSelectMobileAccountModel

@end

@interface DeliverFitOptBinConjugateSyntaxViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *subDegrees;
@property (nonatomic, strong) UITableView *opaqueEchoView;
@property (nonatomic, assign) NSInteger mayHangSawWire;
@property (nonatomic, strong) UIButton *nonceHowYouButton;
@property (nonatomic, strong) UIButton *torchMarginsButton;

@end

@implementation DeliverFitOptBinConjugateSyntaxViewController

- (XXGSelectMobileAccountModel *)subDegrees {
    return self.setupHowAdd;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.optYouLinkButton.hidden = YES;
    self.valueStopButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = HisTwoEject.nineEchoArmpit.busExtentFamilyMegabytesSum;
    titleLabel.textColor = [HisTwoEject darkMinorColor];
    titleLabel.font = [UIFont systemFontOfSize:HisTwoEject.mildVitalEar.mirroredMail];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(HisTwoEject.mildVitalEar.disablesDid);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(HisTwoEject.mildVitalEar.strokedEight);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = HisTwoEject.mildVitalEar.eldestBring;

    
    UIView *sexHisView = [[UIView alloc] init];
    sexHisView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:sexHisView];
    [sexHisView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(HisTwoEject.mildVitalEar.draftRedJoin);
    }];

    
    _nonceHowYouButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_nonceHowYouButton setTitle:HisTwoEject.nineEchoArmpit.kinOldFloat forState:UIControlStateNormal];
    [_nonceHowYouButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_nonceHowYouButton setBackgroundColor:UIColor.systemGray5Color];
    _nonceHowYouButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_nonceHowYouButton addTarget:self action:@selector(bookmarksPartlyReservedGenericsFillerAction:) forControlEvents:UIControlEventTouchUpInside];
    [sexHisView addSubview:_nonceHowYouButton];
    [_nonceHowYouButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(sexHisView);
        make.width.equalTo(sexHisView).multipliedBy(0.5);
    }];

    
    _torchMarginsButton = [HisTwoEject mapPreservedCutContainCapturingColor:HisTwoEject.nineEchoArmpit.wasMute];
    [_torchMarginsButton addTarget:self action:@selector(overrideCursiveEraAnimatorLandmarkAction:) forControlEvents:UIControlEventTouchUpInside];
    [sexHisView addSubview:_torchMarginsButton];
    [_torchMarginsButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(sexHisView);
        make.width.equalTo(sexHisView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_opaqueEchoView];
    [_opaqueEchoView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(HisTwoEject.mildVitalEar.monthFolder);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(sexHisView.mas_top);
    }];

    
    if (self.subDegrees.flashCellular.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_opaqueEchoView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _mayHangSawWire = 0;
    }
}



- (void)bookmarksPartlyReservedGenericsFillerAction:(UIButton *)sender {
    [[VolumeAddManager shared] areAreAbsentWindow];
    if (self.chineseBundle && [self.chineseBundle respondsToSelector:@selector(xxpk_selectMobileAccountCancelButtonDidClick)]) {
        [self.chineseBundle xxpk_selectMobileAccountCancelButtonDidClick];
    }
}

- (void)overrideCursiveEraAnimatorLandmarkAction:(UIButton *)sender {
    [[VolumeAddManager shared] areAreAbsentWindow];
    if (self.chineseBundle && [self.chineseBundle respondsToSelector:@selector(xxpk_selectMobileAccountConfirmButtonDidClickWithModel:trapRedoAccount:)]) {
        NSString *trapRedoAccount = self.subDegrees.flashCellular[self.mayHangSawWire];
        [self.chineseBundle xxpk_selectMobileAccountConfirmButtonDidClickWithModel:self.subDegrees trapRedoAccount:trapRedoAccount];
    }
}



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

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

    
    if (indexPath.row == self.mayHangSawWire) {
        echo.accessoryType = UITableViewCellAccessoryCheckmark;
        echo.tintColor = [HisTwoEject darkMinorColor];
    } else {
        echo.accessoryType = UITableViewCellAccessoryNone;
    }

    return echo;
}



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

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

@end
