






#import "ItemIcyLeftoverReduceNarrativeGloballyViewController.h"
#import "NSString+BeaconWax.h"

@implementation XXGSelectMobileAccountModel

@end

@interface ItemIcyLeftoverReduceNarrativeGloballyViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *passFiller;
@property (nonatomic, strong) UITableView *topWrappedView;
@property (nonatomic, assign) NSInteger tryEightMinDog;
@property (nonatomic, strong) UIButton *hexRawClampButton;
@property (nonatomic, strong) UIButton *rankedCapMinButton;

@end

@implementation ItemIcyLeftoverReduceNarrativeGloballyViewController

- (XXGSelectMobileAccountModel *)passFiller {
    return self.beaconPolar;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.herClampedButton.hidden = YES;
    self.funnelDidButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = MaskTheGray.starHealthHome.anchoringTheIgnoredSignOffer;
    titleLabel.textColor = [MaskTheGray screenNapColor];
    titleLabel.font = [UIFont systemFontOfSize:MaskTheGray.andRomanPath.fullySeeSuch];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(MaskTheGray.andRomanPath.funkOverMen);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(MaskTheGray.andRomanPath.arrayLargest);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = MaskTheGray.andRomanPath.planeDefines;

    
    UIView *cloudyView = [[UIView alloc] init];
    cloudyView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:cloudyView];
    [cloudyView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(MaskTheGray.andRomanPath.helloClosure);
    }];

    
    _hexRawClampButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_hexRawClampButton setTitle:MaskTheGray.starHealthHome.showCutMail forState:UIControlStateNormal];
    [_hexRawClampButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_hexRawClampButton setBackgroundColor:UIColor.systemGray5Color];
    _hexRawClampButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_hexRawClampButton addTarget:self action:@selector(showingWinWillGetUtilitiesAction:) forControlEvents:UIControlEventTouchUpInside];
    [cloudyView addSubview:_hexRawClampButton];
    [_hexRawClampButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(cloudyView);
        make.width.equalTo(cloudyView).multipliedBy(0.5);
    }];

    
    _rankedCapMinButton = [MaskTheGray commonLibraryGivenHisEitherColor:MaskTheGray.starHealthHome.skipWho];
    [_rankedCapMinButton addTarget:self action:@selector(constantsSugarLifetimeAboutComposeAction:) forControlEvents:UIControlEventTouchUpInside];
    [cloudyView addSubview:_rankedCapMinButton];
    [_rankedCapMinButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(cloudyView);
        make.width.equalTo(cloudyView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_topWrappedView];
    [_topWrappedView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(MaskTheGray.andRomanPath.endFarthest);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(cloudyView.mas_top);
    }];

    
    if (self.passFiller.prologNibbles.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_topWrappedView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _tryEightMinDog = 0;
    }
}



- (void)showingWinWillGetUtilitiesAction:(UIButton *)sender {
    [[TorchVeryManager shared] redSideClockWindow];
    if (self.paragraphTone && [self.paragraphTone respondsToSelector:@selector(intrinsicRecoveryStaticActionLowMousePlugWax)]) {
        [self.paragraphTone intrinsicRecoveryStaticActionLowMousePlugWax];
    }
}

- (void)constantsSugarLifetimeAboutComposeAction:(UIButton *)sender {
    [[TorchVeryManager shared] redSideClockWindow];
    if (self.paragraphTone && [self.paragraphTone respondsToSelector:@selector(missingPrepStoneIncreaseNeedThresholdOwnReusableModel:mailPongAccount:)]) {
        NSString *mailPongAccount = self.passFiller.prologNibbles[self.tryEightMinDog];
        [self.paragraphTone missingPrepStoneIncreaseNeedThresholdOwnReusableModel:self.passFiller mailPongAccount:mailPongAccount];
    }
}



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

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

    
    if (indexPath.row == self.tryEightMinDog) {
        tree.accessoryType = UITableViewCellAccessoryCheckmark;
        tree.tintColor = [MaskTheGray screenNapColor];
    } else {
        tree.accessoryType = UITableViewCellAccessoryNone;
    }

    return tree;
}



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

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

@end
