






#import "PageSharingCropDateBadBaselineViewController.h"
#import "NSString+PatchFeet.h"

@implementation XXGSelectMobileAccountModel

@end

@interface PageSharingCropDateBadBaselineViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *popPassive;
@property (nonatomic, strong) UITableView *duplexMuteView;
@property (nonatomic, assign) NSInteger unitLastReport;
@property (nonatomic, strong) UIButton *swapWonMainButton;
@property (nonatomic, strong) UIButton *sexSedentaryButton;

@end

@implementation PageSharingCropDateBadBaselineViewController

- (XXGSelectMobileAccountModel *)popPassive {
    return self.thatMainFor;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.hueBookNotButton.hidden = YES;
    self.silentNetButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = MixSnowBits.theBinAlignWax.handlesCountLogoThiaminShear;
    titleLabel.textColor = [MixSnowBits hallLaterColor];
    titleLabel.font = [UIFont systemFontOfSize:MixSnowBits.packRouteToo.allowShowers];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(MixSnowBits.packRouteToo.parentSlide);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(MixSnowBits.packRouteToo.clipAllSheet);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = MixSnowBits.packRouteToo.tagsAndBegan;

    
    UIView *sunEggView = [[UIView alloc] init];
    sunEggView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:sunEggView];
    [sunEggView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(MixSnowBits.packRouteToo.datumSoloist);
    }];

    
    _swapWonMainButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_swapWonMainButton setTitle:MixSnowBits.theBinAlignWax.fileKinSolo forState:UIControlStateNormal];
    [_swapWonMainButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_swapWonMainButton setBackgroundColor:UIColor.systemGray5Color];
    _swapWonMainButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_swapWonMainButton addTarget:self action:@selector(butImpliedLeastLibraryFarsiAction:) forControlEvents:UIControlEventTouchUpInside];
    [sunEggView addSubview:_swapWonMainButton];
    [_swapWonMainButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(sunEggView);
        make.width.equalTo(sunEggView).multipliedBy(0.5);
    }];

    
    _sexSedentaryButton = [MixSnowBits paymentsOriginDashArteryMetricsColor:MixSnowBits.theBinAlignWax.treePub];
    [_sexSedentaryButton addTarget:self action:@selector(windowsGarbageDiskPlainIncrementAction:) forControlEvents:UIControlEventTouchUpInside];
    [sunEggView addSubview:_sexSedentaryButton];
    [_sexSedentaryButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(sunEggView);
        make.width.equalTo(sunEggView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_duplexMuteView];
    [_duplexMuteView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(MixSnowBits.packRouteToo.keyMakeFont);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(sunEggView.mas_top);
    }];

    
    if (self.popPassive.pubPressSlice.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_duplexMuteView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _unitLastReport = 0;
    }
}



- (void)butImpliedLeastLibraryFarsiAction:(UIButton *)sender {
    [[FactBasicManager shared] ductilityIllWindow];
    if (self.sunYouSelfCut && [self.sunYouSelfCut respondsToSelector:@selector(loveLazySlavicPhonogramTrademarkBankersChlorideChannel)]) {
        [self.sunYouSelfCut loveLazySlavicPhonogramTrademarkBankersChlorideChannel];
    }
}

- (void)windowsGarbageDiskPlainIncrementAction:(UIButton *)sender {
    [[FactBasicManager shared] ductilityIllWindow];
    if (self.sunYouSelfCut && [self.sunYouSelfCut respondsToSelector:@selector(focusedPerfusionMailSayMenNetscapeYetIcyModel:trySpineAccount:)]) {
        NSString *trySpineAccount = self.popPassive.pubPressSlice[self.unitLastReport];
        [self.sunYouSelfCut focusedPerfusionMailSayMenNetscapeYetIcyModel:self.popPassive trySpineAccount:trySpineAccount];
    }
}



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

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

    
    if (indexPath.row == self.unitLastReport) {
        hair.accessoryType = UITableViewCellAccessoryCheckmark;
        hair.tintColor = [MixSnowBits hallLaterColor];
    } else {
        hair.accessoryType = UITableViewCellAccessoryNone;
    }

    return hair;
}



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

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

@end
