






#import "TargetCropRearRearrangeWinExcludedViewController.h"
#import "NSString+Anchoring.h"

@implementation XXGSelectMobileAccountModel

@end

@interface TargetCropRearRearrangeWinExcludedViewController () <UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) XXGSelectMobileAccountModel *carTintLaw;
@property (nonatomic, strong) UITableView *seedFatZipView;
@property (nonatomic, assign) NSInteger prepVectorBest;
@property (nonatomic, strong) UIButton *volatileJobButton;
@property (nonatomic, strong) UIButton *containerEarButton;

@end

@implementation TargetCropRearRearrangeWinExcludedViewController

- (XXGSelectMobileAccountModel *)carTintLaw {
    return self.notationFat;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.slashShapeButton.hidden = YES;
    self.sinScreenButton.hidden = YES;

    
    UILabel *titleLabel = [UILabel new];
    titleLabel.text = BurstUpload.ejectPrimeHour.baseAdditionsWireAdaptorDeferring;
    titleLabel.textColor = [BurstUpload manGlobalColor];
    titleLabel.font = [UIFont systemFontOfSize:BurstUpload.styleOrigins.innerNewtons];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(BurstUpload.styleOrigins.rawQuickTip);
        make.left.right.equalTo(self.view);
        make.height.mas_equalTo(BurstUpload.styleOrigins.rowHumanFlip);
    }];

    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = BurstUpload.styleOrigins.jobNetEvery;

    
    UIView *subDryView = [[UIView alloc] init];
    subDryView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:subDryView];
    [subDryView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(BurstUpload.styleOrigins.bitBedBitmap);
    }];

    
    _volatileJobButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [_volatileJobButton setTitle:BurstUpload.ejectPrimeHour.illMaskBeen forState:UIControlStateNormal];
    [_volatileJobButton setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [_volatileJobButton setBackgroundColor:UIColor.systemGray5Color];
    _volatileJobButton.titleLabel.font = [UIFont systemFontOfSize:16];
    [_volatileJobButton addTarget:self action:@selector(bankThemeSwahiliPlateElevatedAction:) forControlEvents:UIControlEventTouchUpInside];
    [subDryView addSubview:_volatileJobButton];
    [_volatileJobButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.equalTo(subDryView);
        make.width.equalTo(subDryView).multipliedBy(0.5);
    }];

    
    _containerEarButton = [BurstUpload oneUpdatesSpatialSonGermanColor:BurstUpload.ejectPrimeHour.winEdga];
    [_containerEarButton addTarget:self action:@selector(bandPasswordThatEarKeysAction:) forControlEvents:UIControlEventTouchUpInside];
    [subDryView addSubview:_containerEarButton];
    [_containerEarButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.equalTo(subDryView);
        make.width.equalTo(subDryView).multipliedBy(0.5);
    }];

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

    [self.view addSubview:_seedFatZipView];
    [_seedFatZipView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(titleLabel.mas_bottom).offset(BurstUpload.styleOrigins.smoothEight);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(subDryView.mas_top);
    }];

    
    if (self.carTintLaw.nowForOldDrag.count > 0) {
        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
        [_seedFatZipView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
        _prepVectorBest = 0;
    }
}



- (void)bankThemeSwahiliPlateElevatedAction:(UIButton *)sender {
    [[SquarePenManager shared] workoutPulseWindow];
    if (self.releaseRandom && [self.releaseRandom respondsToSelector:@selector(featMinTropicalWordShortcutsArrangedPredicateYears)]) {
        [self.releaseRandom featMinTropicalWordShortcutsArrangedPredicateYears];
    }
}

- (void)bandPasswordThatEarKeysAction:(UIButton *)sender {
    [[SquarePenManager shared] workoutPulseWindow];
    if (self.releaseRandom && [self.releaseRandom respondsToSelector:@selector(angleMusicCommittedHealthCachePreviewExceptionPackageModel:animatedAccount:)]) {
        NSString *animatedAccount = self.carTintLaw.nowForOldDrag[self.prepVectorBest];
        [self.releaseRandom angleMusicCommittedHealthCachePreviewExceptionPackageModel:self.carTintLaw animatedAccount:animatedAccount];
    }
}



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

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

    
    if (indexPath.row == self.prepVectorBest) {
        logo.accessoryType = UITableViewCellAccessoryCheckmark;
        logo.tintColor = [BurstUpload manGlobalColor];
    } else {
        logo.accessoryType = UITableViewCellAccessoryNone;
    }

    return logo;
}



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

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

@end
