






#import "SwedishRowMoveSpeakerPreferredAgeViewController.h"
#import "NSString+OddOldest.h"

@implementation XXGSelectMobileAccountModel

@end

@interface SwedishRowMoveSpeakerPreferredAgeViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *iconSerial;
@property (nonatomic, strong) UITableView *fixSockTapView;
@property (nonatomic, assign) NSInteger outCarRoleGoal;
@property (nonatomic, strong) UIButton *sortLongestButton;
@property (nonatomic, strong) UIButton *midFooterDayButton;

@end

@implementation SwedishRowMoveSpeakerPreferredAgeViewController

- (XXGSelectMobileAccountModel *)iconSerial {
    return self.favoriteUse;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.boxDaysEyeButton.hidden = YES;
    self.angleNoneButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = LawExported.valueOutArtMen.errorClickedOptMenuEasy;
    titleLabel.textColor = [LawExported specifierColor];
    titleLabel.font = [UIFont systemFontOfSize:LawExported.playVersions.didManBrowse];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(LawExported.playVersions.countAssign);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(LawExported.playVersions.rowsDueSwipe);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = LawExported.playVersions.mixOddDepth;

    
    UIView *sixRawView = [[UIView alloc] init];
    sixRawView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:sixRawView];
    [sixRawView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(LawExported.playVersions.interlaceArm);
    }];

    
    _sortLongestButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_sortLongestButton setTitle:LawExported.valueOutArtMen.slashHockey forState:UIControlStateNormal];
    [_sortLongestButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_sortLongestButton setBackgroundColor:UIColor.systemGray5Color];
    _sortLongestButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_sortLongestButton addTarget:self action:@selector(includingDecayLocationLocaleItsAction:) forControlEvents:UIControlEventTouchUpInside];
    [sixRawView addSubview:_sortLongestButton];
    [_sortLongestButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(sixRawView);
        make.width.equalTo(sixRawView).multipliedBy(0.5);
    }];

    
    _midFooterDayButton = [LawExported rotorStackIncreaseHigherEncodingColor:LawExported.valueOutArtMen.lawSkin];
    [_midFooterDayButton addTarget:self action:@selector(decibelParsePortionBaseballOlympusAction:) forControlEvents:UIControlEventTouchUpInside];
    [sixRawView addSubview:_midFooterDayButton];
    [_midFooterDayButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(sixRawView);
        make.width.equalTo(sixRawView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_fixSockTapView];
    [_fixSockTapView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(LawExported.playVersions.displaysOff);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(sixRawView.mas_top);
    }];

    
    if (self.iconSerial.nextJoinAudio.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_fixSockTapView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _outCarRoleGoal = 0;
    }
}



- (void)includingDecayLocationLocaleItsAction:(UIButton *)sender {
    [[BeaconAskManager shared] manyYearsKeyWindow];
    if (self.bigAwakePatch && [self.bigAwakePatch respondsToSelector:@selector(xxpk_selectMobileAccountCancelButtonDidClick)]) {
        [self.bigAwakePatch xxpk_selectMobileAccountCancelButtonDidClick];
    }
}

- (void)decibelParsePortionBaseballOlympusAction:(UIButton *)sender {
    [[BeaconAskManager shared] manyYearsKeyWindow];
    if (self.bigAwakePatch && [self.bigAwakePatch respondsToSelector:@selector(xxpk_selectMobileAccountConfirmButtonDidClickWithModel:undoScanAccount:)]) {
        NSString *undoScanAccount = self.iconSerial.nextJoinAudio[self.outCarRoleGoal];
        [self.bigAwakePatch xxpk_selectMobileAccountConfirmButtonDidClickWithModel:self.iconSerial undoScanAccount:undoScanAccount];
    }
}



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

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

    
    if (indexPath.row == self.outCarRoleGoal) {
        chat.accessoryType = UITableViewCellAccessoryCheckmark;
        chat.tintColor = [LawExported specifierColor];
    } else {
        chat.accessoryType = UITableViewCellAccessoryNone;
    }

    return chat;
}



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

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

@end
