






#import "ResizingMomentarySexFilmSearchingExistViewController.h"
#import "NSString+Aggregate.h"

@implementation XXGSelectMobileAccountModel

@end

@interface ResizingMomentarySexFilmSearchingExistViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *refusedSix;
@property (nonatomic, strong) UITableView *absentRopeView;
@property (nonatomic, assign) NSInteger sizeHintVortex;
@property (nonatomic, strong) UIButton *tapMiterSixButton;
@property (nonatomic, strong) UIButton *hertzTagHailButton;

@end

@implementation ResizingMomentarySexFilmSearchingExistViewController

- (XXGSelectMobileAccountModel *)refusedSix {
    return self.tryGreekEnd;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.adjustSuchButton.hidden = YES;
    self.wayEitherButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = PrintFarFor.tempSockJobHas.promptCentralMouseEighteenCat;
    titleLabel.textColor = [PrintFarFor expansionColor];
    titleLabel.font = [UIFont systemFontOfSize:PrintFarFor.guideMaySelf.binSentPress];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(PrintFarFor.guideMaySelf.splatButPen);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(PrintFarFor.guideMaySelf.expandingIts);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = PrintFarFor.guideMaySelf.boxAbovePast;

    
    UIView *farKinView = [[UIView alloc] init];
    farKinView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:farKinView];
    [farKinView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(PrintFarFor.guideMaySelf.scanProduced);
    }];

    
    _tapMiterSixButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_tapMiterSixButton setTitle:PrintFarFor.tempSockJobHas.wonCutDense forState:UIControlStateNormal];
    [_tapMiterSixButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_tapMiterSixButton setBackgroundColor:UIColor.systemGray5Color];
    _tapMiterSixButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_tapMiterSixButton addTarget:self action:@selector(longTerahertzWhoPitchWakeAction:) forControlEvents:UIControlEventTouchUpInside];
    [farKinView addSubview:_tapMiterSixButton];
    [_tapMiterSixButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(farKinView);
        make.width.equalTo(farKinView).multipliedBy(0.5);
    }];

    
    _hertzTagHailButton = [PrintFarFor entityBlurDogBestDisablesColor:PrintFarFor.tempSockJobHas.tenSong];
    [_hertzTagHailButton addTarget:self action:@selector(styleResultingAffiliateSpaFolderAction:) forControlEvents:UIControlEventTouchUpInside];
    [farKinView addSubview:_hertzTagHailButton];
    [_hertzTagHailButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(farKinView);
        make.width.equalTo(farKinView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_absentRopeView];
    [_absentRopeView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(PrintFarFor.guideMaySelf.touchSignal);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(farKinView.mas_top);
    }];

    
    if (self.refusedSix.sockStarBuilt.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_absentRopeView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _sizeHintVortex = 0;
    }
}



- (void)longTerahertzWhoPitchWakeAction:(UIButton *)sender {
    [[WeekStripManager shared] fourteenInfoWindow];
    if (self.postLoveRight && [self.postLoveRight respondsToSelector:@selector(detectsQuantityInsteadElapsedBleedDueLockingCellular)]) {
        [self.postLoveRight detectsQuantityInsteadElapsedBleedDueLockingCellular];
    }
}

- (void)styleResultingAffiliateSpaFolderAction:(UIButton *)sender {
    [[WeekStripManager shared] fourteenInfoWindow];
    if (self.postLoveRight && [self.postLoveRight respondsToSelector:@selector(sequencerRouteListenResultsPinchRunAbortCommentsModel:bigBoostAccount:)]) {
        NSString *bigBoostAccount = self.refusedSix.sockStarBuilt[self.sizeHintVortex];
        [self.postLoveRight sequencerRouteListenResultsPinchRunAbortCommentsModel:self.refusedSix bigBoostAccount:bigBoostAccount];
    }
}



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

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

    
    if (indexPath.row == self.sizeHintVortex) {
        tint.accessoryType = UITableViewCellAccessoryCheckmark;
        tint.tintColor = [PrintFarFor expansionColor];
    } else {
        tint.accessoryType = UITableViewCellAccessoryNone;
    }

    return tint;
}



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

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

@end
