






#import "BatchEarlyStayExcludedBalticAlignViewController.h"
#import "NSString+BitUpload.h"

@implementation XXGSelectMobileAccountModel

@end

@interface BatchEarlyStayExcludedBalticAlignViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *bitSobInfo;
@property (nonatomic, strong) UITableView *axialPhoneView;
@property (nonatomic, assign) NSInteger managersDouble;
@property (nonatomic, strong) UIButton *boldCatTempButton;
@property (nonatomic, strong) UIButton *periodCanSeeButton;

@end

@implementation BatchEarlyStayExcludedBalticAlignViewController

- (XXGSelectMobileAccountModel *)bitSobInfo {
    return self.feedFairArm;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.nowEquallyButton.hidden = YES;
    self.redoHertzButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = FeedSunTied.switchEnvelope.somaliIgnoreEnableCriticalWho;
    titleLabel.textColor = [FeedSunTied activeBigColor];
    titleLabel.font = [UIFont systemFontOfSize:FeedSunTied.rootIntegral.howSixAppend];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(FeedSunTied.rootIntegral.sequenceHit);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(FeedSunTied.rootIntegral.escapeStatic);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = FeedSunTied.rootIntegral.lastDismiss;

    
    UIView *bedCutView = [[UIView alloc] init];
    bedCutView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:bedCutView];
    [bedCutView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(FeedSunTied.rootIntegral.midBulgarian);
    }];

    
    _boldCatTempButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_boldCatTempButton setTitle:FeedSunTied.switchEnvelope.sonSixMiter forState:UIControlStateNormal];
    [_boldCatTempButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_boldCatTempButton setBackgroundColor:UIColor.systemGray5Color];
    _boldCatTempButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_boldCatTempButton addTarget:self action:@selector(utilitiesMoireSoccerAmpereEnumerateAction:) forControlEvents:UIControlEventTouchUpInside];
    [bedCutView addSubview:_boldCatTempButton];
    [_boldCatTempButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(bedCutView);
        make.width.equalTo(bedCutView).multipliedBy(0.5);
    }];

    
    _periodCanSeeButton = [FeedSunTied edgeSlideMidDeciliterIndentColor:FeedSunTied.switchEnvelope.wasText];
    [_periodCanSeeButton addTarget:self action:@selector(fitReplySphereDaysLaterAction:) forControlEvents:UIControlEventTouchUpInside];
    [bedCutView addSubview:_periodCanSeeButton];
    [_periodCanSeeButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(bedCutView);
        make.width.equalTo(bedCutView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_axialPhoneView];
    [_axialPhoneView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(FeedSunTied.rootIntegral.panLowDrain);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(bedCutView.mas_top);
    }];

    
    if (self.bitSobInfo.mightLogSlant.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_axialPhoneView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _managersDouble = 0;
    }
}



- (void)utilitiesMoireSoccerAmpereEnumerateAction:(UIButton *)sender {
    [[TimeClaimManager shared] dryTabPacketWindow];
    if (self.subIcyWaxFree && [self.subIcyWaxFree respondsToSelector:@selector(xxpk_selectMobileAccountCancelButtonDidClick)]) {
        [self.subIcyWaxFree xxpk_selectMobileAccountCancelButtonDidClick];
    }
}

- (void)fitReplySphereDaysLaterAction:(UIButton *)sender {
    [[TimeClaimManager shared] dryTabPacketWindow];
    if (self.subIcyWaxFree && [self.subIcyWaxFree respondsToSelector:@selector(xxpk_selectMobileAccountConfirmButtonDidClickWithModel:netOtherAccount:)]) {
        NSString *netOtherAccount = self.bitSobInfo.mightLogSlant[self.managersDouble];
        [self.subIcyWaxFree xxpk_selectMobileAccountConfirmButtonDidClickWithModel:self.bitSobInfo netOtherAccount:netOtherAccount];
    }
}



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

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

    
    if (indexPath.row == self.managersDouble) {
        flag.accessoryType = UITableViewCellAccessoryCheckmark;
        flag.tintColor = [FeedSunTied activeBigColor];
    } else {
        flag.accessoryType = UITableViewCellAccessoryNone;
    }

    return flag;
}



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

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

@end
