






#import "LogicalMegabitsDiscoveryBuilderSumWonViewController.h"
#import "NSString+SlowReset.h"

@implementation XXGSelectMobileAccountModel

@end

@interface LogicalMegabitsDiscoveryBuilderSumWonViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *capBagGram;
@property (nonatomic, strong) UITableView *partSayFitView;
@property (nonatomic, assign) NSInteger moveSameOpaque;
@property (nonatomic, strong) UIButton *scoreSubTenButton;
@property (nonatomic, strong) UIButton *plainButFlowButton;

@end

@implementation LogicalMegabitsDiscoveryBuilderSumWonViewController

- (XXGSelectMobileAccountModel *)capBagGram {
    return self.ownAutoGolf;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.maskHeaderButton.hidden = YES;
    self.ovulationButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = InvertPinch.knowSunTalkHas.magnitudeEditorHierarchySoftBlur;
    titleLabel.textColor = [InvertPinch indicatedColor];
    titleLabel.font = [UIFont systemFontOfSize:InvertPinch.didThousands.icyMergeHash];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(InvertPinch.didThousands.repairPower);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(InvertPinch.didThousands.extentSeeUse);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = InvertPinch.didThousands.getBodySave;

    
    UIView *twoSheView = [[UIView alloc] init];
    twoSheView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:twoSheView];
    [twoSheView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(InvertPinch.didThousands.proxiesShear);
    }];

    
    _scoreSubTenButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_scoreSubTenButton setTitle:InvertPinch.knowSunTalkHas.goldenArray forState:UIControlStateNormal];
    [_scoreSubTenButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_scoreSubTenButton setBackgroundColor:UIColor.systemGray5Color];
    _scoreSubTenButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_scoreSubTenButton addTarget:self action:@selector(brushNapModernGreaterElderAction:) forControlEvents:UIControlEventTouchUpInside];
    [twoSheView addSubview:_scoreSubTenButton];
    [_scoreSubTenButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(twoSheView);
        make.width.equalTo(twoSheView).multipliedBy(0.5);
    }];

    
    _plainButFlowButton = [InvertPinch greekSampleAffineEpisodeDownColor:InvertPinch.knowSunTalkHas.boxEach];
    [_plainButFlowButton addTarget:self action:@selector(possibleObscuredRaceUniqueHealthAction:) forControlEvents:UIControlEventTouchUpInside];
    [twoSheView addSubview:_plainButFlowButton];
    [_plainButFlowButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(twoSheView);
        make.width.equalTo(twoSheView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_partSayFitView];
    [_partSayFitView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(InvertPinch.didThousands.echoUsedSub);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(twoSheView.mas_top);
    }];

    
    if (self.capBagGram.striationFeat.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_partSayFitView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _moveSameOpaque = 0;
    }
}



- (void)brushNapModernGreaterElderAction:(UIButton *)sender {
    [[UploadWhoManager shared] windowMayCapWindow];
    if (self.swipeShutdown && [self.swipeShutdown respondsToSelector:@selector(xxpk_selectMobileAccountCancelButtonDidClick)]) {
        [self.swipeShutdown xxpk_selectMobileAccountCancelButtonDidClick];
    }
}

- (void)possibleObscuredRaceUniqueHealthAction:(UIButton *)sender {
    [[UploadWhoManager shared] windowMayCapWindow];
    if (self.swipeShutdown && [self.swipeShutdown respondsToSelector:@selector(xxpk_selectMobileAccountConfirmButtonDidClickWithModel:morePrepAccount:)]) {
        NSString *morePrepAccount = self.capBagGram.striationFeat[self.moveSameOpaque];
        [self.swipeShutdown xxpk_selectMobileAccountConfirmButtonDidClickWithModel:self.capBagGram morePrepAccount:morePrepAccount];
    }
}



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

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

    
    if (indexPath.row == self.moveSameOpaque) {
        once.accessoryType = UITableViewCellAccessoryCheckmark;
        once.tintColor = [InvertPinch indicatedColor];
    } else {
        once.accessoryType = UITableViewCellAccessoryNone;
    }

    return once;
}



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

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

@end
