






#import "InsertionHertzSummaryCallingSupplyOperationViewController.h"
#import "NSString+EntityArm.h"

@implementation XXGSelectMobileAccountModel

@end

@interface InsertionHertzSummaryCallingSupplyOperationViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *hueTopHelp;
@property (nonatomic, strong) UITableView *ownFixMaleView;
@property (nonatomic, assign) NSInteger bagBoxBandRope;
@property (nonatomic, strong) UIButton *decoderScanButton;
@property (nonatomic, strong) UIButton *sunBroadcastButton;

@end

@implementation InsertionHertzSummaryCallingSupplyOperationViewController

- (XXGSelectMobileAccountModel *)hueTopHelp {
    return self.wasSelfIron;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.learnMightButton.hidden = YES;
    self.directEyeButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = ReceivedFor.strokeMoveStep.chlorideChunkyLocallySentenceInvite;
    titleLabel.textColor = [ReceivedFor cubicSentColor];
    titleLabel.font = [UIFont systemFontOfSize:ReceivedFor.dogMagicChar.eggGuestSoft];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(ReceivedFor.dogMagicChar.nativeStood);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(ReceivedFor.dogMagicChar.cleanRunAuto);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = ReceivedFor.dogMagicChar.overrideMood;

    
    UIView *sonTagView = [[UIView alloc] init];
    sonTagView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:sonTagView];
    [sonTagView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(ReceivedFor.dogMagicChar.hoverBadWork);
    }];

    
    _decoderScanButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_decoderScanButton setTitle:ReceivedFor.strokeMoveStep.artHashHint forState:UIControlStateNormal];
    [_decoderScanButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_decoderScanButton setBackgroundColor:UIColor.systemGray5Color];
    _decoderScanButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_decoderScanButton addTarget:self action:@selector(planTexturedMouseHitPosterAction:) forControlEvents:UIControlEventTouchUpInside];
    [sonTagView addSubview:_decoderScanButton];
    [_decoderScanButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(sonTagView);
        make.width.equalTo(sonTagView).multipliedBy(0.5);
    }];

    
    _sunBroadcastButton = [ReceivedFor decrementJobTryTabStripColor:ReceivedFor.strokeMoveStep.panLoud];
    [_sunBroadcastButton addTarget:self action:@selector(dueDisplayProposalTenWaxAction:) forControlEvents:UIControlEventTouchUpInside];
    [sonTagView addSubview:_sunBroadcastButton];
    [_sunBroadcastButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(sonTagView);
        make.width.equalTo(sonTagView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_ownFixMaleView];
    [_ownFixMaleView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(ReceivedFor.dogMagicChar.textEditors);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(sonTagView.mas_top);
    }];

    
    if (self.hueTopHelp.manWatchPhoto.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_ownFixMaleView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _bagBoxBandRope = 0;
    }
}



- (void)planTexturedMouseHitPosterAction:(UIButton *)sender {
    [[DryPortalManager shared] meteringPeerWindow];
    if (self.totalSkipFail && [self.totalSkipFail respondsToSelector:@selector(busyNaturalMaleKitLaunchedSolveCrossIntegral)]) {
        [self.totalSkipFail busyNaturalMaleKitLaunchedSolveCrossIntegral];
    }
}

- (void)dueDisplayProposalTenWaxAction:(UIButton *)sender {
    [[DryPortalManager shared] meteringPeerWindow];
    if (self.totalSkipFail && [self.totalSkipFail respondsToSelector:@selector(anonymousWritingListenerHeadphoneForCloudSilentButtonsModel:callMakeAccount:)]) {
        NSString *callMakeAccount = self.hueTopHelp.manWatchPhoto[self.bagBoxBandRope];
        [self.totalSkipFail anonymousWritingListenerHeadphoneForCloudSilentButtonsModel:self.hueTopHelp callMakeAccount:callMakeAccount];
    }
}



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

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

    
    if (indexPath.row == self.bagBoxBandRope) {
        meal.accessoryType = UITableViewCellAccessoryCheckmark;
        meal.tintColor = [ReceivedFor cubicSentColor];
    } else {
        meal.accessoryType = UITableViewCellAccessoryNone;
    }

    return meal;
}



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

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

@end
