






#import "OwnTipTouchesForcePrivacyMapViewController.h"
#import "NSString+Teaspoons.h"

@implementation XXGSelectMobileAccountModel

@end

@interface OwnTipTouchesForcePrivacyMapViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *prepTwoAny;
@property (nonatomic, strong) UITableView *angleWaterView;
@property (nonatomic, assign) NSInteger invokeOverMenu;
@property (nonatomic, strong) UIButton *titleUrgentButton;
@property (nonatomic, strong) UIButton *lemmaSpatialButton;

@end

@implementation OwnTipTouchesForcePrivacyMapViewController

- (XXGSelectMobileAccountModel *)prepTwoAny {
    return self.mindFastTab;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.arrayChestButton.hidden = YES;
    self.surgeMaskButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = SaveWayTaps.hueOldAreaMole.ethernetDiscardedExecWaterSession;
    titleLabel.textColor = [SaveWayTaps divideRunColor];
    titleLabel.font = [UIFont systemFontOfSize:SaveWayTaps.offerHitEasy.tabClampIdle];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(SaveWayTaps.offerHitEasy.tagsBitMind);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(SaveWayTaps.offerHitEasy.identityWill);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = SaveWayTaps.offerHitEasy.zipSideCanon;

    
    UIView *panFitView = [[UIView alloc] init];
    panFitView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:panFitView];
    [panFitView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(SaveWayTaps.offerHitEasy.hailOutFully);
    }];

    
    _titleUrgentButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_titleUrgentButton setTitle:SaveWayTaps.hueOldAreaMole.didWrapKind forState:UIControlStateNormal];
    [_titleUrgentButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_titleUrgentButton setBackgroundColor:UIColor.systemGray5Color];
    _titleUrgentButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_titleUrgentButton addTarget:self action:@selector(wetTabTapAnalysisPaddleAction:) forControlEvents:UIControlEventTouchUpInside];
    [panFitView addSubview:_titleUrgentButton];
    [_titleUrgentButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(panFitView);
        make.width.equalTo(panFitView).multipliedBy(0.5);
    }];

    
    _lemmaSpatialButton = [SaveWayTaps bringArrangerNanogramsScaleOutColor:SaveWayTaps.hueOldAreaMole.borders];
    [_lemmaSpatialButton addTarget:self action:@selector(ratingsLetterReversingOneTripleAction:) forControlEvents:UIControlEventTouchUpInside];
    [panFitView addSubview:_lemmaSpatialButton];
    [_lemmaSpatialButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(panFitView);
        make.width.equalTo(panFitView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_angleWaterView];
    [_angleWaterView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(SaveWayTaps.offerHitEasy.dueClipPlug);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(panFitView.mas_top);
    }];

    
    if (self.prepTwoAny.orderKeyPanel.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_angleWaterView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _invokeOverMenu = 0;
    }
}



- (void)wetTabTapAnalysisPaddleAction:(UIButton *)sender {
    [[PrimeArtsManager shared] helpItsModelWindow];
    if (self.artNapPubTied && [self.artNapPubTied respondsToSelector:@selector(helpDownloadsRemoteMaterialRunNotCoastMap)]) {
        [self.artNapPubTied helpDownloadsRemoteMaterialRunNotCoastMap];
    }
}

- (void)ratingsLetterReversingOneTripleAction:(UIButton *)sender {
    [[PrimeArtsManager shared] helpItsModelWindow];
    if (self.artNapPubTied && [self.artNapPubTied respondsToSelector:@selector(layerSigmoidRetryTapsCompositeRealmIterateGeneratesModel:handlingAccount:)]) {
        NSString *handlingAccount = self.prepTwoAny.orderKeyPanel[self.invokeOverMenu];
        [self.artNapPubTied layerSigmoidRetryTapsCompositeRealmIterateGeneratesModel:self.prepTwoAny handlingAccount:handlingAccount];
    }
}



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

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

    
    if (indexPath.row == self.invokeOverMenu) {
        each.accessoryType = UITableViewCellAccessoryCheckmark;
        each.tintColor = [SaveWayTaps divideRunColor];
    } else {
        each.accessoryType = UITableViewCellAccessoryNone;
    }

    return each;
}



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

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

@end
