






#import "BurnAnnotatedAffiliateTrademarkLandscapeStandViewController.h"
#import "NSString+ExternYet.h"

@implementation XXGSelectMobileAccountModel

@end

@interface BurnAnnotatedAffiliateTrademarkLandscapeStandViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *fetchedBit;
@property (nonatomic, strong) UITableView *yetMidPageView;
@property (nonatomic, assign) NSInteger clangEmailSolo;
@property (nonatomic, strong) UIButton *ourAscendedButton;
@property (nonatomic, strong) UIButton *optAppendPenButton;

@end

@implementation BurnAnnotatedAffiliateTrademarkLandscapeStandViewController

- (XXGSelectMobileAccountModel *)fetchedBit {
    return self.assertCross;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.fitFunLeadButton.hidden = YES;
    self.personTenButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = MapSheFocus.catBlackPopMay.layoutArgumentsDeliveredBarrierAsk;
    titleLabel.textColor = [MapSheFocus mayBundleColor];
    titleLabel.font = [UIFont systemFontOfSize:MapSheFocus.ownerQuality.syntaxNotAre];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(MapSheFocus.ownerQuality.prepFlipWon);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(MapSheFocus.ownerQuality.solveFailing);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = MapSheFocus.ownerQuality.slavicDense;

    
    UIView *nowRetView = [[UIView alloc] init];
    nowRetView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:nowRetView];
    [nowRetView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(MapSheFocus.ownerQuality.pushBigRetry);
    }];

    
    _ourAscendedButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_ourAscendedButton setTitle:MapSheFocus.catBlackPopMay.mustSinFunk forState:UIControlStateNormal];
    [_ourAscendedButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_ourAscendedButton setBackgroundColor:UIColor.systemGray5Color];
    _ourAscendedButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_ourAscendedButton addTarget:self action:@selector(succeedAbortRuleGeometryThermalAction:) forControlEvents:UIControlEventTouchUpInside];
    [nowRetView addSubview:_ourAscendedButton];
    [_ourAscendedButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(nowRetView);
        make.width.equalTo(nowRetView).multipliedBy(0.5);
    }];

    
    _optAppendPenButton = [MapSheFocus zipPinchGlobalCalorieInferColor:MapSheFocus.catBlackPopMay.darkFun];
    [_optAppendPenButton addTarget:self action:@selector(attitudeSpousesPreciseGuestSettingsAction:) forControlEvents:UIControlEventTouchUpInside];
    [nowRetView addSubview:_optAppendPenButton];
    [_optAppendPenButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(nowRetView);
        make.width.equalTo(nowRetView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_yetMidPageView];
    [_yetMidPageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(MapSheFocus.ownerQuality.barsArmHome);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(nowRetView.mas_top);
    }];

    
    if (self.fetchedBit.shadowManaged.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_yetMidPageView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _clangEmailSolo = 0;
    }
}



- (void)succeedAbortRuleGeometryThermalAction:(UIButton *)sender {
    [[FormThirdManager shared] arrowItemBadWindow];
    if (self.chainInternal && [self.chainInternal respondsToSelector:@selector(barsLogicalChallengeEchoCarSobNowGigabits)]) {
        [self.chainInternal barsLogicalChallengeEchoCarSobNowGigabits];
    }
}

- (void)attitudeSpousesPreciseGuestSettingsAction:(UIButton *)sender {
    [[FormThirdManager shared] arrowItemBadWindow];
    if (self.chainInternal && [self.chainInternal respondsToSelector:@selector(collapseSmoothedBlockCentralRhythmLeaseHoldFourModel:tableDueAccount:)]) {
        NSString *tableDueAccount = self.fetchedBit.shadowManaged[self.clangEmailSolo];
        [self.chainInternal collapseSmoothedBlockCentralRhythmLeaseHoldFourModel:self.fetchedBit tableDueAccount:tableDueAccount];
    }
}



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

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

    
    if (indexPath.row == self.clangEmailSolo) {
        sink.accessoryType = UITableViewCellAccessoryCheckmark;
        sink.tintColor = [MapSheFocus mayBundleColor];
    } else {
        sink.accessoryType = UITableViewCellAccessoryNone;
    }

    return sink;
}



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

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

@end
