






#import "TelephonyFilenamesRenderedStorageMixSingularViewController.h"
#import "NSString+ReplyMill.h"

@implementation XXGSelectMobileAccountModel

@end

@interface TelephonyFilenamesRenderedStorageMixSingularViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *butYouFind;
@property (nonatomic, strong) UITableView *hairFunTagView;
@property (nonatomic, assign) NSInteger jobRedoHexSame;
@property (nonatomic, strong) UIButton *burnStayOneButton;
@property (nonatomic, strong) UIButton *rollbackBestButton;

@end

@implementation TelephonyFilenamesRenderedStorageMixSingularViewController

- (XXGSelectMobileAccountModel *)butYouFind {
    return self.groupedSink;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.halfWayPopButton.hidden = YES;
    self.itsReaderButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = ZipRestThat.useCatAliveLow.dynamicExpectEvaluateComposedAttempter;
    titleLabel.textColor = [ZipRestThat focalFadeColor];
    titleLabel.font = [UIFont systemFontOfSize:ZipRestThat.heartHowLead.allImageLeft];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(ZipRestThat.heartHowLead.optBurstLaw);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(ZipRestThat.heartHowLead.missingClamp);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = ZipRestThat.heartHowLead.sessionCert;

    
    UIView *supplyView = [[UIView alloc] init];
    supplyView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:supplyView];
    [supplyView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(ZipRestThat.heartHowLead.dropSleepHas);
    }];

    
    _burnStayOneButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_burnStayOneButton setTitle:ZipRestThat.useCatAliveLow.tabRealRest forState:UIControlStateNormal];
    [_burnStayOneButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_burnStayOneButton setBackgroundColor:UIColor.systemGray5Color];
    _burnStayOneButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_burnStayOneButton addTarget:self action:@selector(burnMalteseWorkoutRomanianThicknessAction:) forControlEvents:UIControlEventTouchUpInside];
    [supplyView addSubview:_burnStayOneButton];
    [_burnStayOneButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(supplyView);
        make.width.equalTo(supplyView).multipliedBy(0.5);
    }];

    
    _rollbackBestButton = [ZipRestThat subgroupHigherSharpenRunWeekColor:ZipRestThat.useCatAliveLow.openEnd];
    [_rollbackBestButton addTarget:self action:@selector(splitAbortPreservedCancelledWrapAction:) forControlEvents:UIControlEventTouchUpInside];
    [supplyView addSubview:_rollbackBestButton];
    [_rollbackBestButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(supplyView);
        make.width.equalTo(supplyView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_hairFunTagView];
    [_hairFunTagView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(ZipRestThat.heartHowLead.ageOrdering);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(supplyView.mas_top);
    }];

    
    if (self.butYouFind.tabLogOffHail.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_hairFunTagView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _jobRedoHexSame = 0;
    }
}



- (void)burnMalteseWorkoutRomanianThicknessAction:(UIButton *)sender {
    [[DigitSongManager shared] spouseTheArmWindow];
    if (self.appleOverride && [self.appleOverride respondsToSelector:@selector(maxForkMalayalamCellphoneWonEntitledExpandingClosure)]) {
        [self.appleOverride maxForkMalayalamCellphoneWonEntitledExpandingClosure];
    }
}

- (void)splitAbortPreservedCancelledWrapAction:(UIButton *)sender {
    [[DigitSongManager shared] spouseTheArmWindow];
    if (self.appleOverride && [self.appleOverride respondsToSelector:@selector(hourSectionsStickyInstancesRetriedPaperBeatRareModel:contrastAccount:)]) {
        NSString *contrastAccount = self.butYouFind.tabLogOffHail[self.jobRedoHexSame];
        [self.appleOverride hourSectionsStickyInstancesRetriedPaperBeatRareModel:self.butYouFind contrastAccount:contrastAccount];
    }
}



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

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

    
    if (indexPath.row == self.jobRedoHexSame) {
        best.accessoryType = UITableViewCellAccessoryCheckmark;
        best.tintColor = [ZipRestThat focalFadeColor];
    } else {
        best.accessoryType = UITableViewCellAccessoryNone;
    }

    return best;
}



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

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

@end
