






#import "ExchangesEncipherSubReceivingKeyboardOverageViewController.h"
#import "NSString+SubBiotin.h"

@implementation XXGSelectMobileAccountModel

@end

@interface ExchangesEncipherSubReceivingKeyboardOverageViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *volumeTemp;
@property (nonatomic, strong) UITableView *pinYetWorkView;
@property (nonatomic, assign) NSInteger signalContexts;
@property (nonatomic, strong) UIButton *certSuchFatButton;
@property (nonatomic, strong) UIButton *estimatedKitButton;

@end

@implementation ExchangesEncipherSubReceivingKeyboardOverageViewController

- (XXGSelectMobileAccountModel *)volumeTemp {
    return self.purpleNonce;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.volumesIllButton.hidden = YES;
    self.waterWarpButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = DiscardsOld.forceParameter.attachWorkoutsPurpleSubtitlesBlue;
    titleLabel.textColor = [DiscardsOld celticBusColor];
    titleLabel.font = [UIFont systemFontOfSize:DiscardsOld.dogPongRoman.beaconAnswer];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(DiscardsOld.dogPongRoman.filterSlope);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(DiscardsOld.dogPongRoman.strongAspect);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = DiscardsOld.dogPongRoman.rowsUnderage;

    
    UIView *eldestView = [[UIView alloc] init];
    eldestView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:eldestView];
    [eldestView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(DiscardsOld.dogPongRoman.recipientTwo);
    }];

    
    _certSuchFatButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_certSuchFatButton setTitle:DiscardsOld.forceParameter.subEditBurn forState:UIControlStateNormal];
    [_certSuchFatButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_certSuchFatButton setBackgroundColor:UIColor.systemGray5Color];
    _certSuchFatButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_certSuchFatButton addTarget:self action:@selector(slideMethodFactReceiverTagAction:) forControlEvents:UIControlEventTouchUpInside];
    [eldestView addSubview:_certSuchFatButton];
    [_certSuchFatButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(eldestView);
        make.width.equalTo(eldestView).multipliedBy(0.5);
    }];

    
    _estimatedKitButton = [DiscardsOld separateYahooSlideCompositeIllColor:DiscardsOld.forceParameter.edgaUse];
    [_estimatedKitButton addTarget:self action:@selector(nowDeclinedVisitorSmallestEpisodeAction:) forControlEvents:UIControlEventTouchUpInside];
    [eldestView addSubview:_estimatedKitButton];
    [_estimatedKitButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(eldestView);
        make.width.equalTo(eldestView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_pinYetWorkView];
    [_pinYetWorkView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(DiscardsOld.dogPongRoman.bigWarpPipe);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(eldestView.mas_top);
    }];

    
    if (self.volumeTemp.paddleReceive.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_pinYetWorkView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _signalContexts = 0;
    }
}



- (void)slideMethodFactReceiverTagAction:(UIButton *)sender {
    [[SpecifierManager shared] axesDueDeltaWindow];
    if (self.lowPushWinBox && [self.lowPushWinBox respondsToSelector:@selector(tornadoGrayExitsRelationsRadiansAskQuantizeNewtons)]) {
        [self.lowPushWinBox tornadoGrayExitsRelationsRadiansAskQuantizeNewtons];
    }
}

- (void)nowDeclinedVisitorSmallestEpisodeAction:(UIButton *)sender {
    [[SpecifierManager shared] axesDueDeltaWindow];
    if (self.lowPushWinBox && [self.lowPushWinBox respondsToSelector:@selector(alarmExtendingCroppingLimitedLinerTryStoreThicknessModel:willIronAccount:)]) {
        NSString *willIronAccount = self.volumeTemp.paddleReceive[self.signalContexts];
        [self.lowPushWinBox alarmExtendingCroppingLimitedLinerTryStoreThicknessModel:self.volumeTemp willIronAccount:willIronAccount];
    }
}



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

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

    
    if (indexPath.row == self.signalContexts) {
        foot.accessoryType = UITableViewCellAccessoryCheckmark;
        foot.tintColor = [DiscardsOld celticBusColor];
    } else {
        foot.accessoryType = UITableViewCellAccessoryNone;
    }

    return foot;
}



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

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

@end
