






#import "StoodInsideClientsBestPaymentsVowelViewController.h"
#import "NSString+SliderSum.h"

@implementation XXGSelectMobileAccountModel

@end

@interface StoodInsideClientsBestPaymentsVowelViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *midYetMile;
@property (nonatomic, strong) UITableView *scanTwelveView;
@property (nonatomic, assign) NSInteger didSentFaxLift;
@property (nonatomic, strong) UIButton *energyMiterButton;
@property (nonatomic, strong) UIButton *talkPagerEyeButton;

@end

@implementation StoodInsideClientsBestPaymentsVowelViewController

- (XXGSelectMobileAccountModel *)midYetMile {
    return self.wayLoadEast;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.sonLockingButton.hidden = YES;
    self.cinematicButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = CloudyPrice.presentedIrish.selectHeadStaticBinCount;
    titleLabel.textColor = [CloudyPrice oneCreditColor];
    titleLabel.font = [UIFont systemFontOfSize:CloudyPrice.resetEndsIts.nowOwnerLong];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(CloudyPrice.resetEndsIts.instantSign);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(CloudyPrice.resetEndsIts.strokingEach);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = CloudyPrice.resetEndsIts.resignAxial;

    
    UIView *celticView = [[UIView alloc] init];
    celticView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:celticView];
    [celticView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(CloudyPrice.resetEndsIts.calorieThumb);
    }];

    
    _energyMiterButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_energyMiterButton setTitle:CloudyPrice.presentedIrish.certAndFunk forState:UIControlStateNormal];
    [_energyMiterButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_energyMiterButton setBackgroundColor:UIColor.systemGray5Color];
    _energyMiterButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_energyMiterButton addTarget:self action:@selector(intervalsSortMovementVerticalMediaAction:) forControlEvents:UIControlEventTouchUpInside];
    [celticView addSubview:_energyMiterButton];
    [_energyMiterButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(celticView);
        make.width.equalTo(celticView).multipliedBy(0.5);
    }];

    
    _talkPagerEyeButton = [CloudyPrice bridgedEpsilonReferenceLooseStrideColor:CloudyPrice.presentedIrish.autoPut];
    [_talkPagerEyeButton addTarget:self action:@selector(sphericalHormoneMenChromiumYouAction:) forControlEvents:UIControlEventTouchUpInside];
    [celticView addSubview:_talkPagerEyeButton];
    [_talkPagerEyeButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(celticView);
        make.width.equalTo(celticView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_scanTwelveView];
    [_scanTwelveView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(CloudyPrice.resetEndsIts.earlyNotYou);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(celticView.mas_top);
    }];

    
    if (self.midYetMile.easyExtraPass.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_scanTwelveView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _didSentFaxLift = 0;
    }
}



- (void)intervalsSortMovementVerticalMediaAction:(UIButton *)sender {
    [[RingMiterManager shared] imperialLostWindow];
    if (self.tapOurOptEast && [self.tapOurOptEast respondsToSelector:@selector(establishHostingEngravedCircularCreditLongRainThermal)]) {
        [self.tapOurOptEast establishHostingEngravedCircularCreditLongRainThermal];
    }
}

- (void)sphericalHormoneMenChromiumYouAction:(UIButton *)sender {
    [[RingMiterManager shared] imperialLostWindow];
    if (self.tapOurOptEast && [self.tapOurOptEast respondsToSelector:@selector(redParseManganeseReadyFilterBeginAttachAttachedModel:preparedAccount:)]) {
        NSString *preparedAccount = self.midYetMile.easyExtraPass[self.didSentFaxLift];
        [self.tapOurOptEast redParseManganeseReadyFilterBeginAttachAttachedModel:self.midYetMile preparedAccount:preparedAccount];
    }
}



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

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

    
    if (indexPath.row == self.didSentFaxLift) {
        gasp.accessoryType = UITableViewCellAccessoryCheckmark;
        gasp.tintColor = [CloudyPrice oneCreditColor];
    } else {
        gasp.accessoryType = UITableViewCellAccessoryNone;
    }

    return gasp;
}



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

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

@end
