






#import "PotentialVortexBringLandscapeObservingPhaseViewController.h"
#import "NSString+Structure.h"

@implementation XXGSelectMobileAccountModel

@end

@interface PotentialVortexBringLandscapeObservingPhaseViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *visitorGet;
@property (nonatomic, strong) UITableView *sunRawPageView;
@property (nonatomic, assign) NSInteger traitRadioNear;
@property (nonatomic, strong) UIButton *kinLayerPinButton;
@property (nonatomic, strong) UIButton *autoMusicianButton;

@end

@implementation PotentialVortexBringLandscapeObservingPhaseViewController

- (XXGSelectMobileAccountModel *)visitorGet {
    return self.roundTooMap;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.pinBinTaskButton.hidden = YES;
    self.formVideoButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = EventPinWho.prologCollapse.fixRedSindhiThickHer;
    titleLabel.textColor = [EventPinWho semaphoreColor];
    titleLabel.font = [UIFont systemFontOfSize:EventPinWho.animatingYet.customToggle];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(EventPinWho.animatingYet.downMenMost);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(EventPinWho.animatingYet.averageBleed);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = EventPinWho.animatingYet.illVitalTwo;

    
    UIView *runYetView = [[UIView alloc] init];
    runYetView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:runYetView];
    [runYetView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(EventPinWho.animatingYet.floorMeanWon);
    }];

    
    _kinLayerPinButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_kinLayerPinButton setTitle:EventPinWho.prologCollapse.averageRest forState:UIControlStateNormal];
    [_kinLayerPinButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_kinLayerPinButton setBackgroundColor:UIColor.systemGray5Color];
    _kinLayerPinButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_kinLayerPinButton addTarget:self action:@selector(semanticsProvidedMagnitudeAppleCousinAction:) forControlEvents:UIControlEventTouchUpInside];
    [runYetView addSubview:_kinLayerPinButton];
    [_kinLayerPinButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(runYetView);
        make.width.equalTo(runYetView).multipliedBy(0.5);
    }];

    
    _autoMusicianButton = [EventPinWho fitnessLeakyRealKazakhPermanentColor:EventPinWho.prologCollapse.silence];
    [_autoMusicianButton addTarget:self action:@selector(respondExistentAnalysisMarkupBlackAction:) forControlEvents:UIControlEventTouchUpInside];
    [runYetView addSubview:_autoMusicianButton];
    [_autoMusicianButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(runYetView);
        make.width.equalTo(runYetView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_sunRawPageView];
    [_sunRawPageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(EventPinWho.animatingYet.squashRenew);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(runYetView.mas_top);
    }];

    
    if (self.visitorGet.cupBarStepson.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_sunRawPageView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _traitRadioNear = 0;
    }
}



- (void)semanticsProvidedMagnitudeAppleCousinAction:(UIButton *)sender {
    [[ParentKitManager shared] pitchEndsOffWindow];
    if (self.modifiersOpen && [self.modifiersOpen respondsToSelector:@selector(wideHashDrawInjectionReliableHexPrivacyCall)]) {
        [self.modifiersOpen wideHashDrawInjectionReliableHexPrivacyCall];
    }
}

- (void)respondExistentAnalysisMarkupBlackAction:(UIButton *)sender {
    [[ParentKitManager shared] pitchEndsOffWindow];
    if (self.modifiersOpen && [self.modifiersOpen respondsToSelector:@selector(invokeInuitBestDomainsVariationStaleNapOptModel:dayBrandAccount:)]) {
        NSString *dayBrandAccount = self.visitorGet.cupBarStepson[self.traitRadioNear];
        [self.modifiersOpen invokeInuitBestDomainsVariationStaleNapOptModel:self.visitorGet dayBrandAccount:dayBrandAccount];
    }
}



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

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

    
    if (indexPath.row == self.traitRadioNear) {
        flat.accessoryType = UITableViewCellAccessoryCheckmark;
        flat.tintColor = [EventPinWho semaphoreColor];
    } else {
        flat.accessoryType = UITableViewCellAccessoryNone;
    }

    return flat;
}



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

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

@end
