






#import "InviteLongSoftnessLooseLeaseRetainViewController.h"
#import "NSString+OutBypass.h"

@implementation XXGSelectMobileAccountModel

@end

@interface InviteLongSoftnessLooseLeaseRetainViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *formEncode;
@property (nonatomic, strong) UITableView *plugReportView;
@property (nonatomic, assign) NSInteger fireLookSchool;
@property (nonatomic, strong) UIButton *sunAgeShortButton;
@property (nonatomic, strong) UIButton *locationsMidButton;

@end

@implementation InviteLongSoftnessLooseLeaseRetainViewController

- (XXGSelectMobileAccountModel *)formEncode {
    return self.boldInfoTip;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.openCatArmButton.hidden = YES;
    self.somaliSeeButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = BinTopLemma.oldHitDownIron.contentsScreenMandatoryChatterDry;
    titleLabel.textColor = [BinTopLemma tabCookieColor];
    titleLabel.font = [UIFont systemFontOfSize:BinTopLemma.drainCatFair.napSurgeRare];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(BinTopLemma.drainCatFair.danceBetter);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(BinTopLemma.drainCatFair.suggestBlock);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = BinTopLemma.drainCatFair.forwardsMen;

    
    UIView *readerView = [[UIView alloc] init];
    readerView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:readerView];
    [readerView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(BinTopLemma.drainCatFair.discoveryKey);
    }];

    
    _sunAgeShortButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_sunAgeShortButton setTitle:BinTopLemma.oldHitDownIron.mathIllPong forState:UIControlStateNormal];
    [_sunAgeShortButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_sunAgeShortButton setBackgroundColor:UIColor.systemGray5Color];
    _sunAgeShortButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_sunAgeShortButton addTarget:self action:@selector(rangingBarsSensorCheckedCollapseAction:) forControlEvents:UIControlEventTouchUpInside];
    [readerView addSubview:_sunAgeShortButton];
    [_sunAgeShortButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(readerView);
        make.width.equalTo(readerView).multipliedBy(0.5);
    }];

    
    _locationsMidButton = [BinTopLemma tipSwahiliOutletTailCurrentlyColor:BinTopLemma.oldHitDownIron.specify];
    [_locationsMidButton addTarget:self action:@selector(localizedReadoutAltitudeSupplyHelloAction:) forControlEvents:UIControlEventTouchUpInside];
    [readerView addSubview:_locationsMidButton];
    [_locationsMidButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(readerView);
        make.width.equalTo(readerView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_plugReportView];
    [_plugReportView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(BinTopLemma.drainCatFair.writingRear);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(readerView.mas_top);
    }];

    
    if (self.formEncode.tenYetPubTurn.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_plugReportView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _fireLookSchool = 0;
    }
}



- (void)rangingBarsSensorCheckedCollapseAction:(UIButton *)sender {
    [[ChunkyGetManager shared] airOverwriteWindow];
    if (self.fixLimitCocoa && [self.fixLimitCocoa respondsToSelector:@selector(xxpk_selectMobileAccountCancelButtonDidClick)]) {
        [self.fixLimitCocoa xxpk_selectMobileAccountCancelButtonDidClick];
    }
}

- (void)localizedReadoutAltitudeSupplyHelloAction:(UIButton *)sender {
    [[ChunkyGetManager shared] airOverwriteWindow];
    if (self.fixLimitCocoa && [self.fixLimitCocoa respondsToSelector:@selector(xxpk_selectMobileAccountConfirmButtonDidClickWithModel:accessedAccount:)]) {
        NSString *accessedAccount = self.formEncode.tenYetPubTurn[self.fireLookSchool];
        [self.fixLimitCocoa xxpk_selectMobileAccountConfirmButtonDidClickWithModel:self.formEncode accessedAccount:accessedAccount];
    }
}



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

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

    
    if (indexPath.row == self.fireLookSchool) {
        tree.accessoryType = UITableViewCellAccessoryCheckmark;
        tree.tintColor = [BinTopLemma tabCookieColor];
    } else {
        tree.accessoryType = UITableViewCellAccessoryNone;
    }

    return tree;
}



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

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

@end
