






#import "TotalRelevanceShortcutCompressCautionPolishViewController.h"
#import "NSString+MoreAlien.h"

@implementation XXGSelectMobileAccountModel

@end

@interface TotalRelevanceShortcutCompressCautionPolishViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *lawMileIll;
@property (nonatomic, strong) UITableView *kinPubFunkView;
@property (nonatomic, assign) NSInteger sunNowButTwist;
@property (nonatomic, strong) UIButton *huePreserveButton;
@property (nonatomic, strong) UIButton *regionCursorButton;

@end

@implementation TotalRelevanceShortcutCompressCautionPolishViewController

- (XXGSelectMobileAccountModel *)lawMileIll {
    return self.primaryMile;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.impactZoneButton.hidden = YES;
    self.justifiedButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = BigAddition.lateTapLineAll.printedHisDecrementProgramInventory;
    titleLabel.textColor = [BigAddition portHumanColor];
    titleLabel.font = [UIFont systemFontOfSize:BigAddition.noiseFactMen.lookHelloArt];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(BigAddition.noiseFactMen.tempRetMenu);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(BigAddition.noiseFactMen.ditherMetric);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = BigAddition.noiseFactMen.noteCallBut;

    
    UIView *fusionView = [[UIView alloc] init];
    fusionView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:fusionView];
    [fusionView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(BigAddition.noiseFactMen.accessingFit);
    }];

    
    _huePreserveButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_huePreserveButton setTitle:BigAddition.lateTapLineAll.noiseIntent forState:UIControlStateNormal];
    [_huePreserveButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_huePreserveButton setBackgroundColor:UIColor.systemGray5Color];
    _huePreserveButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_huePreserveButton addTarget:self action:@selector(replySendSubstringImproperTagalogAction:) forControlEvents:UIControlEventTouchUpInside];
    [fusionView addSubview:_huePreserveButton];
    [_huePreserveButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(fusionView);
        make.width.equalTo(fusionView).multipliedBy(0.5);
    }];

    
    _regionCursorButton = [BigAddition jabberMenLowWhoCleanupColor:BigAddition.lateTapLineAll.pinZone];
    [_regionCursorButton addTarget:self action:@selector(descenderPositionsOffsetsFairFollowAction:) forControlEvents:UIControlEventTouchUpInside];
    [fusionView addSubview:_regionCursorButton];
    [_regionCursorButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(fusionView);
        make.width.equalTo(fusionView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_kinPubFunkView];
    [_kinPubFunkView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(BigAddition.noiseFactMen.lawPhotoTry);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(fusionView.mas_top);
    }];

    
    if (self.lawMileIll.leastLegalHue.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_kinPubFunkView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _sunNowButTwist = 0;
    }
}



- (void)replySendSubstringImproperTagalogAction:(UIButton *)sender {
    [[ThickFlagManager shared] fitSystemEndWindow];
    if (self.pitchRecorder && [self.pitchRecorder respondsToSelector:@selector(toolDeferringPlanarSystolicDescendPagerFeedRoot)]) {
        [self.pitchRecorder toolDeferringPlanarSystolicDescendPagerFeedRoot];
    }
}

- (void)descenderPositionsOffsetsFairFollowAction:(UIButton *)sender {
    [[ThickFlagManager shared] fitSystemEndWindow];
    if (self.pitchRecorder && [self.pitchRecorder respondsToSelector:@selector(motionDisableSettingsAddRecentArbitrarySumLooperModel:consumedAccount:)]) {
        NSString *consumedAccount = self.lawMileIll.leastLegalHue[self.sunNowButTwist];
        [self.pitchRecorder motionDisableSettingsAddRecentArbitrarySumLooperModel:self.lawMileIll consumedAccount:consumedAccount];
    }
}



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

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

    
    if (indexPath.row == self.sunNowButTwist) {
        iron.accessoryType = UITableViewCellAccessoryCheckmark;
        iron.tintColor = [BigAddition portHumanColor];
    } else {
        iron.accessoryType = UITableViewCellAccessoryNone;
    }

    return iron;
}



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

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

@end
