






#import "FavoriteSegmentIterationDaughtersOverItalicsViewController.h"
#import "NSString+FunDecode.h"

@implementation XXGSelectMobileAccountModel

@end

@interface FavoriteSegmentIterationDaughtersOverItalicsViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *filmRowOne;
@property (nonatomic, strong) UITableView *needPutEarView;
@property (nonatomic, assign) NSInteger caretResetSuch;
@property (nonatomic, strong) UIButton *catalanLikeButton;
@property (nonatomic, strong) UIButton *wasMaleStoneButton;

@end

@implementation FavoriteSegmentIterationDaughtersOverItalicsViewController

- (XXGSelectMobileAccountModel *)filmRowOne {
    return self.mailBigPack;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.subLoadSumButton.hidden = YES;
    self.canCreamyButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = MenuCluster.hallFloorExist.restoredRectifiedScrollsBundleFailing;
    titleLabel.textColor = [MenuCluster asleepYetColor];
    titleLabel.font = [UIFont systemFontOfSize:MenuCluster.thirteenHand.planeCarNear];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(MenuCluster.thirteenHand.chunkyMolar);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(MenuCluster.thirteenHand.correctedOne);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = MenuCluster.thirteenHand.bodyPintEar;

    
    UIView *planarView = [[UIView alloc] init];
    planarView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:planarView];
    [planarView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(MenuCluster.thirteenHand.faxVitalMore);
    }];

    
    _catalanLikeButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_catalanLikeButton setTitle:MenuCluster.hallFloorExist.sixStepFont forState:UIControlStateNormal];
    [_catalanLikeButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_catalanLikeButton setBackgroundColor:UIColor.systemGray5Color];
    _catalanLikeButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_catalanLikeButton addTarget:self action:@selector(malayVibrancySheetPullThinAction:) forControlEvents:UIControlEventTouchUpInside];
    [planarView addSubview:_catalanLikeButton];
    [_catalanLikeButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(planarView);
        make.width.equalTo(planarView).multipliedBy(0.5);
    }];

    
    _wasMaleStoneButton = [MenuCluster systolicFlagSwitchSlovakDenyColor:MenuCluster.hallFloorExist.sharpen];
    [_wasMaleStoneButton addTarget:self action:@selector(weightsExposureInsideProvidePinkAction:) forControlEvents:UIControlEventTouchUpInside];
    [planarView addSubview:_wasMaleStoneButton];
    [_wasMaleStoneButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(planarView);
        make.width.equalTo(planarView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_needPutEarView];
    [_needPutEarView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(MenuCluster.thirteenHand.subgroupPop);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(planarView.mas_top);
    }];

    
    if (self.filmRowOne.hitDayTurkmen.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_needPutEarView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _caretResetSuch = 0;
    }
}



- (void)malayVibrancySheetPullThinAction:(UIButton *)sender {
    [[PotentialManager shared] functionsAndWindow];
    if (self.bagCheckLeast && [self.bagCheckLeast respondsToSelector:@selector(tooBaselinesBackupItalicsAcquireNumberSomaliDismissal)]) {
        [self.bagCheckLeast tooBaselinesBackupItalicsAcquireNumberSomaliDismissal];
    }
}

- (void)weightsExposureInsideProvidePinkAction:(UIButton *)sender {
    [[PotentialManager shared] functionsAndWindow];
    if (self.bagCheckLeast && [self.bagCheckLeast respondsToSelector:@selector(floorActualIdiomRedirectsFileProductsOnlineFilterModel:sayShiftAccount:)]) {
        NSString *sayShiftAccount = self.filmRowOne.hitDayTurkmen[self.caretResetSuch];
        [self.bagCheckLeast floorActualIdiomRedirectsFileProductsOnlineFilterModel:self.filmRowOne sayShiftAccount:sayShiftAccount];
    }
}



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

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

    
    if (indexPath.row == self.caretResetSuch) {
        exec.accessoryType = UITableViewCellAccessoryCheckmark;
        exec.tintColor = [MenuCluster asleepYetColor];
    } else {
        exec.accessoryType = UITableViewCellAccessoryNone;
    }

    return exec;
}



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

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

@end
