






#import "HierarchySyntheticMismatchAudiencesUplinkKeyViewController.h"
#import "NSString+YearSetup.h"

@implementation XXGSelectMobileAccountModel

@end

@interface HierarchySyntheticMismatchAudiencesUplinkKeyViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *hisTagStep;
@property (nonatomic, strong) UITableView *topMuteBoxView;
@property (nonatomic, assign) NSInteger rotorRealEmail;
@property (nonatomic, strong) UIButton *sendBodyPutButton;
@property (nonatomic, strong) UIButton *liveCupSlantButton;

@end

@implementation HierarchySyntheticMismatchAudiencesUplinkKeyViewController

- (XXGSelectMobileAccountModel *)hisTagStep {
    return self.askButTower;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.halfSixOwnButton.hidden = YES;
    self.quoteRateButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = LearnWeekly.estonianBanner.attachedAffinitySentFoodKit;
    titleLabel.textColor = [LearnWeekly youBorderColor];
    titleLabel.font = [UIFont systemFontOfSize:LearnWeekly.reuseRenewal.soccerSpaNot];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(LearnWeekly.reuseRenewal.burstVolume);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(LearnWeekly.reuseRenewal.performerTwo);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = LearnWeekly.reuseRenewal.fatExpectDue;

    
    UIView *polishView = [[UIView alloc] init];
    polishView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:polishView];
    [polishView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(LearnWeekly.reuseRenewal.centerNordic);
    }];

    
    _sendBodyPutButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_sendBodyPutButton setTitle:LearnWeekly.estonianBanner.buddyLookup forState:UIControlStateNormal];
    [_sendBodyPutButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_sendBodyPutButton setBackgroundColor:UIColor.systemGray5Color];
    _sendBodyPutButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_sendBodyPutButton addTarget:self action:@selector(executingSignerVisitWasLoadAction:) forControlEvents:UIControlEventTouchUpInside];
    [polishView addSubview:_sendBodyPutButton];
    [_sendBodyPutButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(polishView);
        make.width.equalTo(polishView).multipliedBy(0.5);
    }];

    
    _liveCupSlantButton = [LearnWeekly uploadedNicknameCancelingLibraryPurpleColor:LearnWeekly.estonianBanner.nominal];
    [_liveCupSlantButton addTarget:self action:@selector(chargeKilogramsPrimeReturningGuestAction:) forControlEvents:UIControlEventTouchUpInside];
    [polishView addSubview:_liveCupSlantButton];
    [_liveCupSlantButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(polishView);
        make.width.equalTo(polishView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_topMuteBoxView];
    [_topMuteBoxView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(LearnWeekly.reuseRenewal.hostPrivacy);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(polishView.mas_top);
    }];

    
    if (self.hisTagStep.notDefinesSub.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_topMuteBoxView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _rotorRealEmail = 0;
    }
}



- (void)executingSignerVisitWasLoadAction:(UIButton *)sender {
    [[HockeySeeManager shared] introWrapItsWindow];
    if (self.coalesceBrush && [self.coalesceBrush respondsToSelector:@selector(motionSaturateEmailDeriveAllFingerPlainBrowse)]) {
        [self.coalesceBrush motionSaturateEmailDeriveAllFingerPlainBrowse];
    }
}

- (void)chargeKilogramsPrimeReturningGuestAction:(UIButton *)sender {
    [[HockeySeeManager shared] introWrapItsWindow];
    if (self.coalesceBrush && [self.coalesceBrush respondsToSelector:@selector(tertiaryCutSubjectNibblesFloaterPreventHungarianAreaModel:boundaryAccount:)]) {
        NSString *boundaryAccount = self.hisTagStep.notDefinesSub[self.rotorRealEmail];
        [self.coalesceBrush tertiaryCutSubjectNibblesFloaterPreventHungarianAreaModel:self.hisTagStep boundaryAccount:boundaryAccount];
    }
}



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

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

    
    if (indexPath.row == self.rotorRealEmail) {
        gram.accessoryType = UITableViewCellAccessoryCheckmark;
        gram.tintColor = [LearnWeekly youBorderColor];
    } else {
        gram.accessoryType = UITableViewCellAccessoryNone;
    }

    return gram;
}



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

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

@end
