






#import "SortSpeakerDetailIdiomMoleReversesViewController.h"
#import "NSString+Extension.h"

@implementation XXGSelectMobileAccountModel

@end

@interface SortSpeakerDetailIdiomMoleReversesViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *stylusStop;
@property (nonatomic, strong) UITableView *maxTaggingView;
@property (nonatomic, assign) NSInteger butTintRealBed;
@property (nonatomic, strong) UIButton *sinWhiteAddButton;
@property (nonatomic, strong) UIButton *resizeSumCupButton;

@end

@implementation SortSpeakerDetailIdiomMoleReversesViewController

- (XXGSelectMobileAccountModel *)stylusStop {
    return self.hisEllipsis;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.catAtomTryButton.hidden = YES;
    self.ductilityButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = PaceDownHue.touchBusyMalay.majorPedometerLuminanceBankAir;
    titleLabel.textColor = [PaceDownHue frequencyColor];
    titleLabel.font = [UIFont systemFontOfSize:PaceDownHue.absoluteAuto.maxGigahertz];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(PaceDownHue.absoluteAuto.eggEmbedded);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(PaceDownHue.absoluteAuto.decryptedOne);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = PaceDownHue.absoluteAuto.lossyTheOff;

    
    UIView *oldBusView = [[UIView alloc] init];
    oldBusView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:oldBusView];
    [oldBusView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(PaceDownHue.absoluteAuto.loopFactored);
    }];

    
    _sinWhiteAddButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_sinWhiteAddButton setTitle:PaceDownHue.touchBusyMalay.optAloneBig forState:UIControlStateNormal];
    [_sinWhiteAddButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_sinWhiteAddButton setBackgroundColor:UIColor.systemGray5Color];
    _sinWhiteAddButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_sinWhiteAddButton addTarget:self action:@selector(lighterEncodeMutationYouUnableAction:) forControlEvents:UIControlEventTouchUpInside];
    [oldBusView addSubview:_sinWhiteAddButton];
    [_sinWhiteAddButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(oldBusView);
        make.width.equalTo(oldBusView).multipliedBy(0.5);
    }];

    
    _resizeSumCupButton = [PaceDownHue issueSolidUnsafeRelevanceInsetColor:PaceDownHue.touchBusyMalay.twitter];
    [_resizeSumCupButton addTarget:self action:@selector(caffeineSubsetTorchExitsPetabytesAction:) forControlEvents:UIControlEventTouchUpInside];
    [oldBusView addSubview:_resizeSumCupButton];
    [_resizeSumCupButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(oldBusView);
        make.width.equalTo(oldBusView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_maxTaggingView];
    [_maxTaggingView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(PaceDownHue.absoluteAuto.meterBitFun);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(oldBusView.mas_top);
    }];

    
    if (self.stylusStop.afterInteract.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_maxTaggingView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _butTintRealBed = 0;
    }
}



- (void)lighterEncodeMutationYouUnableAction:(UIButton *)sender {
    [[AboutLikeManager shared] rawAnchorCarWindow];
    if (self.pageWordSmile && [self.pageWordSmile respondsToSelector:@selector(envelopeStrokeSideTempCharCreamySwimmingExistent)]) {
        [self.pageWordSmile envelopeStrokeSideTempCharCreamySwimmingExistent];
    }
}

- (void)caffeineSubsetTorchExitsPetabytesAction:(UIButton *)sender {
    [[AboutLikeManager shared] rawAnchorCarWindow];
    if (self.pageWordSmile && [self.pageWordSmile respondsToSelector:@selector(tertiaryMarqueeExposureAskSunAirPageJoinModel:ownerMenAccount:)]) {
        NSString *ownerMenAccount = self.stylusStop.afterInteract[self.butTintRealBed];
        [self.pageWordSmile tertiaryMarqueeExposureAskSunAirPageJoinModel:self.stylusStop ownerMenAccount:ownerMenAccount];
    }
}



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

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

    
    if (indexPath.row == self.butTintRealBed) {
        dust.accessoryType = UITableViewCellAccessoryCheckmark;
        dust.tintColor = [PaceDownHue frequencyColor];
    } else {
        dust.accessoryType = UITableViewCellAccessoryNone;
    }

    return dust;
}



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

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

@end
