






#import "ContainerExitsZipMillibarsMutationsAddressViewController.h"
#import "NSString+TwoPhotos.h"

@implementation XXGSelectMobileAccountModel

@end

@interface ContainerExitsZipMillibarsMutationsAddressViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *basePlural;
@property (nonatomic, strong) UITableView *mayHangSonView;
@property (nonatomic, assign) NSInteger holdLogoSerial;
@property (nonatomic, strong) UIButton *busEligibleButton;
@property (nonatomic, strong) UIButton *armEqualNameButton;

@end

@implementation ContainerExitsZipMillibarsMutationsAddressViewController

- (XXGSelectMobileAccountModel *)basePlural {
    return self.grandsonPop;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.skipAllUseButton.hidden = YES;
    self.lostRightButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = PintResting.exposeLeapAuto.hueZipPreserveSlidingCosmic;
    titleLabel.textColor = [PintResting armHelperColor];
    titleLabel.font = [UIFont systemFontOfSize:PintResting.findClickCat.criteriaFont];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(PintResting.findClickCat.airCapsSign);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(PintResting.findClickCat.spouseAnswer);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = PintResting.findClickCat.tomorrowCase;

    
    UIView *layoutView = [[UIView alloc] init];
    layoutView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:layoutView];
    [layoutView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(PintResting.findClickCat.kitRateBoost);
    }];

    
    _busEligibleButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_busEligibleButton setTitle:PintResting.exposeLeapAuto.sheSpecific forState:UIControlStateNormal];
    [_busEligibleButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_busEligibleButton setBackgroundColor:UIColor.systemGray5Color];
    _busEligibleButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_busEligibleButton addTarget:self action:@selector(millionLoveCollationIllegalHundredsAction:) forControlEvents:UIControlEventTouchUpInside];
    [layoutView addSubview:_busEligibleButton];
    [_busEligibleButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(layoutView);
        make.width.equalTo(layoutView).multipliedBy(0.5);
    }];

    
    _armEqualNameButton = [PintResting serbianManInvokeSnapshotTwelveColor:PintResting.exposeLeapAuto.checker];
    [_armEqualNameButton addTarget:self action:@selector(disableJapaneseValueCenteredRunAction:) forControlEvents:UIControlEventTouchUpInside];
    [layoutView addSubview:_armEqualNameButton];
    [_armEqualNameButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(layoutView);
        make.width.equalTo(layoutView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_mayHangSonView];
    [_mayHangSonView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(PintResting.findClickCat.pieceSearch);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(layoutView.mas_top);
    }];

    
    if (self.basePlural.spineDeleting.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_mayHangSonView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _holdLogoSerial = 0;
    }
}



- (void)millionLoveCollationIllegalHundredsAction:(UIButton *)sender {
    [[IllBundleManager shared] hitPacketArmWindow];
    if (self.costWasArtMid && [self.costWasArtMid respondsToSelector:@selector(repeatContinuedBookBackwardAudibleServerDeferredFun)]) {
        [self.costWasArtMid repeatContinuedBookBackwardAudibleServerDeferredFun];
    }
}

- (void)disableJapaneseValueCenteredRunAction:(UIButton *)sender {
    [[IllBundleManager shared] hitPacketArmWindow];
    if (self.costWasArtMid && [self.costWasArtMid respondsToSelector:@selector(fitAnimatedBedRenewScriptsMultiplyAdditionPageModel:insetSexAccount:)]) {
        NSString *insetSexAccount = self.basePlural.spineDeleting[self.holdLogoSerial];
        [self.costWasArtMid fitAnimatedBedRenewScriptsMultiplyAdditionPageModel:self.basePlural insetSexAccount:insetSexAccount];
    }
}



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

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

    
    if (indexPath.row == self.holdLogoSerial) {
        blob.accessoryType = UITableViewCellAccessoryCheckmark;
        blob.tintColor = [PintResting armHelperColor];
    } else {
        blob.accessoryType = UITableViewCellAccessoryNone;
    }

    return blob;
}



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

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

@end
