






#import "LatencyChildAnchoredNoneFactoriesGrantedViewController.h"
#import "NSString+ClearLift.h"

@implementation XXGSelectMobileAccountModel

@end

@interface LatencyChildAnchoredNoneFactoriesGrantedViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *inhalerDay;
@property (nonatomic, strong) UITableView *fitSortDryView;
@property (nonatomic, assign) NSInteger mountPostUnder;
@property (nonatomic, strong) UIButton *itsPanQuietButton;
@property (nonatomic, strong) UIButton *eulerClientsButton;

@end

@implementation LatencyChildAnchoredNoneFactoriesGrantedViewController

- (XXGSelectMobileAccountModel *)inhalerDay {
    return self.jobBagStrip;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.sawLaotianButton.hidden = YES;
    self.realEvictButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = ReloadThird.phoneKitTenTen.tipStartupFillerInuitFar;
    titleLabel.textColor = [ReloadThird fairBlockColor];
    titleLabel.font = [UIFont systemFontOfSize:ReloadThird.overlapQuote.borderUrgent];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(ReloadThird.overlapQuote.vortexStair);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(ReloadThird.overlapQuote.veryFixPlace);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = ReloadThird.overlapQuote.drivenEndLog;

    
    UIView *twoMinView = [[UIView alloc] init];
    twoMinView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:twoMinView];
    [twoMinView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(ReloadThird.overlapQuote.dolbyBigHash);
    }];

    
    _itsPanQuietButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_itsPanQuietButton setTitle:ReloadThird.phoneKitTenTen.lookPlanOld forState:UIControlStateNormal];
    [_itsPanQuietButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_itsPanQuietButton setBackgroundColor:UIColor.systemGray5Color];
    _itsPanQuietButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_itsPanQuietButton addTarget:self action:@selector(borderedLooseOutSmileSucceedAction:) forControlEvents:UIControlEventTouchUpInside];
    [twoMinView addSubview:_itsPanQuietButton];
    [_itsPanQuietButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(twoMinView);
        make.width.equalTo(twoMinView).multipliedBy(0.5);
    }];

    
    _eulerClientsButton = [ReloadThird signerClampingSeventeenForbiddenAmharicColor:ReloadThird.phoneKitTenTen.anyFlip];
    [_eulerClientsButton addTarget:self action:@selector(splitAnimationBoostAutoClipAction:) forControlEvents:UIControlEventTouchUpInside];
    [twoMinView addSubview:_eulerClientsButton];
    [_eulerClientsButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(twoMinView);
        make.width.equalTo(twoMinView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_fitSortDryView];
    [_fitSortDryView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(ReloadThird.overlapQuote.cupWinSmall);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(twoMinView.mas_top);
    }];

    
    if (self.inhalerDay.ourSplatAlarm.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_fitSortDryView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _mountPostUnder = 0;
    }
}



- (void)borderedLooseOutSmileSucceedAction:(UIButton *)sender {
    [[ManualCupManager shared] twoUploadingWindow];
    if (self.hueAwakePlace && [self.hueAwakePlace respondsToSelector:@selector(literalBurstCreatingMaskMindUnwindWhoShow)]) {
        [self.hueAwakePlace literalBurstCreatingMaskMindUnwindWhoShow];
    }
}

- (void)splitAnimationBoostAutoClipAction:(UIButton *)sender {
    [[ManualCupManager shared] twoUploadingWindow];
    if (self.hueAwakePlace && [self.hueAwakePlace respondsToSelector:@selector(fillBecomeUtilitiesAlphabetSmallerHybridAreImportantModel:sevenEndAccount:)]) {
        NSString *sevenEndAccount = self.inhalerDay.ourSplatAlarm[self.mountPostUnder];
        [self.hueAwakePlace fillBecomeUtilitiesAlphabetSmallerHybridAreImportantModel:self.inhalerDay sevenEndAccount:sevenEndAccount];
    }
}



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

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

    
    if (indexPath.row == self.mountPostUnder) {
        rear.accessoryType = UITableViewCellAccessoryCheckmark;
        rear.tintColor = [ReloadThird fairBlockColor];
    } else {
        rear.accessoryType = UITableViewCellAccessoryNone;
    }

    return rear;
}



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

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

@end
