






#import "CiphersInviteeQuitWasEstonianJobViewController.h"
#import "NSString+EasyStorm.h"

@implementation XXGSelectMobileAccountModel

@end

@interface CiphersInviteeQuitWasEstonianJobViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *sharpenAge;
@property (nonatomic, strong) UITableView *thiaminTwoView;
@property (nonatomic, assign) NSInteger movieAreaPolar;
@property (nonatomic, strong) UIButton *rebusIcyFatButton;
@property (nonatomic, strong) UIButton *bezelFeedPubButton;

@end

@implementation CiphersInviteeQuitWasEstonianJobViewController

- (XXGSelectMobileAccountModel *)sharpenAge {
    return self.sexDeclined;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.blobLogKinButton.hidden = YES;
    self.vowelMostButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = FixMaterial.dryMicroCapTag.ageTenHardArmpitReport;
    titleLabel.textColor = [FixMaterial beforeArtColor];
    titleLabel.font = [UIFont systemFontOfSize:FixMaterial.capsLoopsAge.helperCanBut];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(FixMaterial.capsLoopsAge.bloodZipOld);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(FixMaterial.capsLoopsAge.subgroupCall);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = FixMaterial.capsLoopsAge.headsetView;

    
    UIView *binCatView = [[UIView alloc] init];
    binCatView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:binCatView];
    [binCatView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(FixMaterial.capsLoopsAge.primariesWin);
    }];

    
    _rebusIcyFatButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_rebusIcyFatButton setTitle:FixMaterial.dryMicroCapTag.seeExtraHis forState:UIControlStateNormal];
    [_rebusIcyFatButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_rebusIcyFatButton setBackgroundColor:UIColor.systemGray5Color];
    _rebusIcyFatButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_rebusIcyFatButton addTarget:self action:@selector(afterResponseBloodCaptionContainedAction:) forControlEvents:UIControlEventTouchUpInside];
    [binCatView addSubview:_rebusIcyFatButton];
    [_rebusIcyFatButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(binCatView);
        make.width.equalTo(binCatView).multipliedBy(0.5);
    }];

    
    _bezelFeedPubButton = [FixMaterial rangeSeeHectaresImproperLowercaseColor:FixMaterial.dryMicroCapTag.working];
    [_bezelFeedPubButton addTarget:self action:@selector(fatalDeliveryBalanceTopMonthAction:) forControlEvents:UIControlEventTouchUpInside];
    [binCatView addSubview:_bezelFeedPubButton];
    [_bezelFeedPubButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(binCatView);
        make.width.equalTo(binCatView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_thiaminTwoView];
    [_thiaminTwoView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(FixMaterial.capsLoopsAge.eachFontJob);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(binCatView.mas_top);
    }];

    
    if (self.sharpenAge.minimizeScope.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_thiaminTwoView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _movieAreaPolar = 0;
    }
}



- (void)afterResponseBloodCaptionContainedAction:(UIButton *)sender {
    [[NextBeganManager shared] bedAreWidgetWindow];
    if (self.falloffBorder && [self.falloffBorder respondsToSelector:@selector(typeTerahertzReloadDismissalOverCenterWidgetMask)]) {
        [self.falloffBorder typeTerahertzReloadDismissalOverCenterWidgetMask];
    }
}

- (void)fatalDeliveryBalanceTopMonthAction:(UIButton *)sender {
    [[NextBeganManager shared] bedAreWidgetWindow];
    if (self.falloffBorder && [self.falloffBorder respondsToSelector:@selector(kinMagicSlopeLateArbiterAllowableStartingSoccerModel:producesAccount:)]) {
        NSString *producesAccount = self.sharpenAge.minimizeScope[self.movieAreaPolar];
        [self.falloffBorder kinMagicSlopeLateArbiterAllowableStartingSoccerModel:self.sharpenAge producesAccount:producesAccount];
    }
}



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

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

    
    if (indexPath.row == self.movieAreaPolar) {
        plan.accessoryType = UITableViewCellAccessoryCheckmark;
        plan.tintColor = [FixMaterial beforeArtColor];
    } else {
        plan.accessoryType = UITableViewCellAccessoryNone;
    }

    return plan;
}



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

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

@end
