






#import "GeometryStillOccurDeviceDefinedEitherViewController.h"
#import "NSString+RoleBreak.h"

@implementation XXGSelectMobileAccountModel

@end

@interface GeometryStillOccurDeviceDefinedEitherViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *maskFourth;
@property (nonatomic, strong) UITableView *heapStrongView;
@property (nonatomic, assign) NSInteger insetTransient;
@property (nonatomic, strong) UIButton *bitSameCurlButton;
@property (nonatomic, strong) UIButton *decreaseDeepButton;

@end

@implementation GeometryStillOccurDeviceDefinedEitherViewController

- (XXGSelectMobileAccountModel *)maskFourth {
    return self.reliableWay;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.bitSlashesButton.hidden = YES;
    self.locationsButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = HexDiscrete.twistSheWasWin.purposeRainSampleChargingDash;
    titleLabel.textColor = [HexDiscrete prominentColor];
    titleLabel.font = [UIFont systemFontOfSize:HexDiscrete.shelfTenSide.sevenEraRule];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(HexDiscrete.shelfTenSide.subLiterFix);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(HexDiscrete.shelfTenSide.movementEnds);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = HexDiscrete.shelfTenSide.dueMetalLink;

    
    UIView *mixSixView = [[UIView alloc] init];
    mixSixView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:mixSixView];
    [mixSixView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(HexDiscrete.shelfTenSide.personHisDry);
    }];

    
    _bitSameCurlButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_bitSameCurlButton setTitle:HexDiscrete.twistSheWasWin.blobBagCity forState:UIControlStateNormal];
    [_bitSameCurlButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_bitSameCurlButton setBackgroundColor:UIColor.systemGray5Color];
    _bitSameCurlButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_bitSameCurlButton addTarget:self action:@selector(slideContainMaleSuggestedNameAction:) forControlEvents:UIControlEventTouchUpInside];
    [mixSixView addSubview:_bitSameCurlButton];
    [_bitSameCurlButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(mixSixView);
        make.width.equalTo(mixSixView).multipliedBy(0.5);
    }];

    
    _decreaseDeepButton = [HexDiscrete markupFlightWasMasterChildColor:HexDiscrete.twistSheWasWin.tipPlug];
    [_decreaseDeepButton addTarget:self action:@selector(transmitSlovenianArmSaltRejectAction:) forControlEvents:UIControlEventTouchUpInside];
    [mixSixView addSubview:_decreaseDeepButton];
    [_decreaseDeepButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(mixSixView);
        make.width.equalTo(mixSixView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_heapStrongView];
    [_heapStrongView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(HexDiscrete.shelfTenSide.backBalance);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(mixSixView.mas_top);
    }];

    
    if (self.maskFourth.redPanJumpBin.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_heapStrongView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _insetTransient = 0;
    }
}



- (void)slideContainMaleSuggestedNameAction:(UIButton *)sender {
    [[SoloSlantManager shared] handshakeSpaWindow];
    if (self.tipSlidingWin && [self.tipSlidingWin respondsToSelector:@selector(givenAboutDecodingPersistGrantingAsteriskCityBig)]) {
        [self.tipSlidingWin givenAboutDecodingPersistGrantingAsteriskCityBig];
    }
}

- (void)transmitSlovenianArmSaltRejectAction:(UIButton *)sender {
    [[SoloSlantManager shared] handshakeSpaWindow];
    if (self.tipSlidingWin && [self.tipSlidingWin respondsToSelector:@selector(buddyMillAdoptChromeRespondFootOpacityHisModel:americanAccount:)]) {
        NSString *americanAccount = self.maskFourth.redPanJumpBin[self.insetTransient];
        [self.tipSlidingWin buddyMillAdoptChromeRespondFootOpacityHisModel:self.maskFourth americanAccount:americanAccount];
    }
}



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

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

    
    if (indexPath.row == self.insetTransient) {
        cell.accessoryType = UITableViewCellAccessoryCheckmark;
        cell.tintColor = [HexDiscrete prominentColor];
    } else {
        cell.accessoryType = UITableViewCellAccessoryNone;
    }

    return cell;
}



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

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

@end
