






#import "RestingWatchTapsNegativeVignetteBehaveViewController.h"
#import "NSString+DanishOff.h"

@implementation XXGSelectMobileAccountModel

@end

@interface RestingWatchTapsNegativeVignetteBehaveViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *retRestBin;
@property (nonatomic, strong) UITableView *portFinderView;
@property (nonatomic, assign) NSInteger execPutBlueTip;
@property (nonatomic, strong) UIButton *targetedEarButton;
@property (nonatomic, strong) UIButton *lossyHandlesButton;

@end

@implementation RestingWatchTapsNegativeVignetteBehaveViewController

- (XXGSelectMobileAccountModel *)retRestBin {
    return self.dayNorthPan;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.sendGermanButton.hidden = YES;
    self.hintGenreButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = ApplyToggle.subDayEventDay.renewalSeasonConjugateAlphabetExtending;
    titleLabel.textColor = [ApplyToggle dueMethodColor];
    titleLabel.font = [UIFont systemFontOfSize:ApplyToggle.findSwipeOur.outSmoothIll];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(ApplyToggle.findSwipeOur.downhillToo);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(ApplyToggle.findSwipeOur.napAccessory);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = ApplyToggle.findSwipeOur.twoMenuShare;

    
    UIView *cutterView = [[UIView alloc] init];
    cutterView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:cutterView];
    [cutterView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(ApplyToggle.findSwipeOur.eggExactCaps);
    }];

    
    _targetedEarButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_targetedEarButton setTitle:ApplyToggle.subDayEventDay.actualForce forState:UIControlStateNormal];
    [_targetedEarButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_targetedEarButton setBackgroundColor:UIColor.systemGray5Color];
    _targetedEarButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_targetedEarButton addTarget:self action:@selector(occlusionMessageRotateMovieHandAction:) forControlEvents:UIControlEventTouchUpInside];
    [cutterView addSubview:_targetedEarButton];
    [_targetedEarButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(cutterView);
        make.width.equalTo(cutterView).multipliedBy(0.5);
    }];

    
    _lossyHandlesButton = [ApplyToggle audienceOwnerFixSoftwareCombiningColor:ApplyToggle.subDayEventDay.earOnly];
    [_lossyHandlesButton addTarget:self action:@selector(topBarsMightInsetBeganAction:) forControlEvents:UIControlEventTouchUpInside];
    [cutterView addSubview:_lossyHandlesButton];
    [_lossyHandlesButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(cutterView);
        make.width.equalTo(cutterView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_portFinderView];
    [_portFinderView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(ApplyToggle.findSwipeOur.oldestToday);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(cutterView.mas_top);
    }];

    
    if (self.retRestBin.outLettersLog.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_portFinderView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _execPutBlueTip = 0;
    }
}



- (void)occlusionMessageRotateMovieHandAction:(UIButton *)sender {
    [[CombiningManager shared] priorityFontWindow];
    if (self.mildWatchMask && [self.mildWatchMask respondsToSelector:@selector(eraSleepSystemFragmentGetEnterIntersectBond)]) {
        [self.mildWatchMask eraSleepSystemFragmentGetEnterIntersectBond];
    }
}

- (void)topBarsMightInsetBeganAction:(UIButton *)sender {
    [[CombiningManager shared] priorityFontWindow];
    if (self.mildWatchMask && [self.mildWatchMask respondsToSelector:@selector(digitOnlineOrdinalFurlongsEntityExpireRealPacketModel:sinTowerAccount:)]) {
        NSString *sinTowerAccount = self.retRestBin.outLettersLog[self.execPutBlueTip];
        [self.mildWatchMask digitOnlineOrdinalFurlongsEntityExpireRealPacketModel:self.retRestBin sinTowerAccount:sinTowerAccount];
    }
}



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

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

    
    if (indexPath.row == self.execPutBlueTip) {
        call.accessoryType = UITableViewCellAccessoryCheckmark;
        call.tintColor = [ApplyToggle dueMethodColor];
    } else {
        call.accessoryType = UITableViewCellAccessoryNone;
    }

    return call;
}



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

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

@end
