






#import "ForwardsTopElevationRelatedBinaryMaxViewController.h"
#import "NSString+SeedLabel.h"

@implementation XXGSelectMobileAccountModel

@end

@interface ForwardsTopElevationRelatedBinaryMaxViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *hebrewSuch;
@property (nonatomic, strong) UITableView *menuSexDayView;
@property (nonatomic, assign) NSInteger youZipMinLeave;
@property (nonatomic, strong) UIButton *kazakhPitchButton;
@property (nonatomic, strong) UIButton *predicateDayButton;

@end

@implementation ForwardsTopElevationRelatedBinaryMaxViewController

- (XXGSelectMobileAccountModel *)hebrewSuch {
    return self.discreteTry;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.veryCarMapButton.hidden = YES;
    self.lowerBeenButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = RaceRateYou.maxSnapYearShe.priceCountImplicitUpdatesSlider;
    titleLabel.textColor = [RaceRateYou ropeCauseColor];
    titleLabel.font = [UIFont systemFontOfSize:RaceRateYou.wristBoldNot.tryFileDaily];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(RaceRateYou.wristBoldNot.angularLoad);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(RaceRateYou.wristBoldNot.deliverBrief);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = RaceRateYou.wristBoldNot.bagTheTwist;

    
    UIView *dueFitView = [[UIView alloc] init];
    dueFitView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:dueFitView];
    [dueFitView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(RaceRateYou.wristBoldNot.sensorFrench);
    }];

    
    _kazakhPitchButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_kazakhPitchButton setTitle:RaceRateYou.maxSnapYearShe.kitFaxFloat forState:UIControlStateNormal];
    [_kazakhPitchButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_kazakhPitchButton setBackgroundColor:UIColor.systemGray5Color];
    _kazakhPitchButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_kazakhPitchButton addTarget:self action:@selector(chainDrumSafeCreditsVolatileAction:) forControlEvents:UIControlEventTouchUpInside];
    [dueFitView addSubview:_kazakhPitchButton];
    [_kazakhPitchButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(dueFitView);
        make.width.equalTo(dueFitView).multipliedBy(0.5);
    }];

    
    _predicateDayButton = [RaceRateYou songLawWelshTriggerAlcoholColor:RaceRateYou.maxSnapYearShe.twitter];
    [_predicateDayButton addTarget:self action:@selector(shearFavoritesTrustAirlineExceptionAction:) forControlEvents:UIControlEventTouchUpInside];
    [dueFitView addSubview:_predicateDayButton];
    [_predicateDayButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(dueFitView);
        make.width.equalTo(dueFitView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_menuSexDayView];
    [_menuSexDayView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(RaceRateYou.wristBoldNot.youSiteLink);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(dueFitView.mas_top);
    }];

    
    if (self.hebrewSuch.pitchStrictly.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_menuSexDayView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _youZipMinLeave = 0;
    }
}



- (void)chainDrumSafeCreditsVolatileAction:(UIButton *)sender {
    [[SeparatedManager shared] sessionRenewWindow];
    if (self.alarmEditUnit && [self.alarmEditUnit respondsToSelector:@selector(xxpk_selectMobileAccountCancelButtonDidClick)]) {
        [self.alarmEditUnit xxpk_selectMobileAccountCancelButtonDidClick];
    }
}

- (void)shearFavoritesTrustAirlineExceptionAction:(UIButton *)sender {
    [[SeparatedManager shared] sessionRenewWindow];
    if (self.alarmEditUnit && [self.alarmEditUnit respondsToSelector:@selector(xxpk_selectMobileAccountConfirmButtonDidClickWithModel:eightHueAccount:)]) {
        NSString *eightHueAccount = self.hebrewSuch.pitchStrictly[self.youZipMinLeave];
        [self.alarmEditUnit xxpk_selectMobileAccountConfirmButtonDidClickWithModel:self.hebrewSuch eightHueAccount:eightHueAccount];
    }
}



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

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

    
    if (indexPath.row == self.youZipMinLeave) {
        thin.accessoryType = UITableViewCellAccessoryCheckmark;
        thin.tintColor = [RaceRateYou ropeCauseColor];
    } else {
        thin.accessoryType = UITableViewCellAccessoryNone;
    }

    return thin;
}



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

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

@end
