






#import "CompletedRetViewController.h"
#import "FitBinEraserCell.h"
#import "NSString+BeaconWax.h"
#import "InfiniteHowChallengeNominallyHormone.h"

@interface CompletedRetViewController ()<UITableViewDelegate,UITableViewDataSource>

@property (nonatomic, strong) InfiniteHowChallengeNominallyHormone *wasMousePort;

@property (nonatomic, strong) UITableView *topWrappedView;

@property (nonatomic, assign) NSInteger tryEightMinDog;

@property (nonatomic, strong) UIButton *mixRawButton;

@end

@implementation CompletedRetViewController

- (InfiniteHowChallengeNominallyHormone *)wasMousePort {
    return self.beaconPolar;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.herClampedButton.hidden = NO;
    
    UILabel *label = [UILabel new];
    label.text = MaskTheGray.starHealthHome.effective;
    label.textColor = [MaskTheGray screenNapColor];
    label.font = [UIFont systemFontOfSize:MaskTheGray.andRomanPath.fullySeeSuch];
    [self.view addSubview:label];
    [label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.herClampedButton);
        make.centerX.equalTo(self.view);
        make.height.mas_equalTo(MaskTheGray.andRomanPath.arrayLargest);
    }];
    
    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = MaskTheGray.andRomanPath.planeDefines;
    
    NSString *publicFood = self.wasMousePort.gaspSaltDue?:self.wasMousePort.spineSleep;
    
    _mixRawButton = [MaskTheGray commonLibraryGivenHisEitherColor: [MaskTheGray.starHealthHome.stackTheme stringByAppendingFormat:@" %@",publicFood]];

    [_mixRawButton addTarget:self action:@selector(stackFetchedDatumSexFathomsClicked:) forControlEvents:(UIControlEventTouchUpInside)];
    [self.view addSubview:_mixRawButton];
    [_mixRawButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view).offset(MaskTheGray.andRomanPath.funkOverMen);
        make.right.equalTo(self.view).offset(-MaskTheGray.andRomanPath.funkOverMen);
        make.bottom.equalTo(self.view).offset(-MaskTheGray.andRomanPath.funkOverMen);
        make.height.mas_equalTo(MaskTheGray.andRomanPath.helloClosure);
    }];

    
    _topWrappedView = [[UITableView alloc] initWithFrame:CGRectZero style:(UITableViewStylePlain)];
    
    _topWrappedView.backgroundColor = [MaskTheGray youGramHostScriptCollisionImage] ? UIColor.clearColor : UIColor.systemGray6Color;
    _topWrappedView.contentInset = UIEdgeInsetsMake(0, 0, 10, 0);
    _topWrappedView.separatorStyle = UITableViewCellSeparatorStyleNone;
    _topWrappedView.rowHeight = MaskTheGray.andRomanPath.scriptsLabel;
    _topWrappedView.delegate = self;
    _topWrappedView.dataSource = self;
    [_topWrappedView registerClass:[FitBinEraserCell class] forCellReuseIdentifier:NSStringFromClass(FitBinEraserCell.class)];
    
    [self.view addSubview:_topWrappedView];
    [_topWrappedView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(label.mas_bottom).offset(MaskTheGray.andRomanPath.endFarthest);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(_mixRawButton.mas_top);
    }];
    
    NSIndexPath *indexPath=[NSIndexPath indexPathForRow:0 inSection:0];
   [_topWrappedView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
   NSIndexPath *path=[NSIndexPath indexPathForItem:0 inSection:0];
   [self tableView:_topWrappedView didSelectRowAtIndexPath:path];
}

- (void)stackFetchedDatumSexFathomsClicked:(id)sender {
    [[TorchVeryManager shared] redSideClockWindow];
    if (self.paragraphTone && [self.paragraphTone respondsToSelector:@selector(multipleSecondReceives:)]) {
        [self.paragraphTone multipleSecondReceives:self.wasMousePort.settlingOverhangStayMindPreviews[self.tryEightMinDog]];
    }
}

- (UIView *)strategyCorruptMinLowSpecifier:(FunBondRevealBottomFiberAudiogram *)item {
    
    if (!item) {
        return [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, 0)];
    }
    
    CGFloat swipe = 30;
    
    UIView *itsBarView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, 65)];
    
    CGFloat radio = 5;
    
    UILabel *provision = [[UILabel alloc] init];
    [itsBarView addSubview:provision];
    provision.text = [NSString stringWithFormat:@"%@:", MaskTheGray.starHealthHome.finishMostlyCompositeAppearLemma];
    provision.font = [UIFont boldSystemFontOfSize:15];
    provision.textColor = UIColor.darkGrayColor;
    [provision mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(radio);
        make.left.mas_equalTo(12);
        make.height.mas_equalTo(swipe);
    }];
    
    UILabel *tapFarMost = [[UILabel alloc] init];
    [itsBarView addSubview:tapFarMost];
    tapFarMost.text = item.nominalRollBitFitBurn;
    tapFarMost.textColor = UIColor.systemOrangeColor;
    [tapFarMost mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(radio);
        make.right.mas_equalTo(-10);
        make.height.mas_equalTo(swipe);
    }];
    radio += swipe;
    
    UILabel *hueHallCount = [[UILabel alloc] init];
    [itsBarView addSubview:hueHallCount];
    hueHallCount.text = [NSString stringWithFormat:@"%@:", MaskTheGray.starHealthHome.suffixSlabRetrievePoolMinimizeCloud];
    hueHallCount.font = [UIFont boldSystemFontOfSize:15];
    hueHallCount.textColor = UIColor.darkGrayColor;
    [hueHallCount mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(radio);
        make.left.mas_equalTo(12);
        make.height.mas_equalTo(swipe);
    }];
    
    UILabel *growSnapCount = [[UILabel alloc] init];
    [itsBarView addSubview:growSnapCount];
    growSnapCount.text = item.haveSegueInstantLogContents;
    growSnapCount.textColor = UIColor.systemOrangeColor;
    [growSnapCount mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(radio);
        make.right.mas_equalTo(-10);
        make.height.mas_equalTo(swipe);
    }];
    
    return itsBarView;
}

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

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    FitBinEraserCell *tree = [tableView dequeueReusableCellWithIdentifier:NSStringFromClass(FitBinEraserCell.class) forIndexPath:indexPath];
    tree.passFiller = self.wasMousePort.settlingOverhangStayMindPreviews[indexPath.row];;
    return tree;
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    UITableViewCell *tree = [tableView cellForRowAtIndexPath:indexPath];
    if (tree) {
        tree.selected = YES;
        _tryEightMinDog = indexPath.row;
    }

FunBondRevealBottomFiberAudiogram *item = self.wasMousePort.settlingOverhangStayMindPreviews[indexPath.row];
    _topWrappedView.tableHeaderView = item.secureLookupTaskPlaneUploading ? [self strategyCorruptMinLowSpecifier:item]:nil;
    
    [_mixRawButton setTitle:[MaskTheGray.starHealthHome.stackTheme stringByAppendingFormat:@" %@",item.gaspSaltDue] forState:UIControlStateNormal];
}

- (void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath {
    UITableViewCell *tree = [tableView cellForRowAtIndexPath:indexPath];
    if (tree) {
        tree.selected = NO;
    }
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    if (UIInterfaceOrientationIsPortrait(UIApplication.sharedApplication.statusBarOrientation)) {
#pragma clang diagnostic pop
        [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(MaskTheGray.andRomanPath.funkOverMen);
            make.right.mas_equalTo(-MaskTheGray.andRomanPath.funkOverMen);
            make.height.mas_equalTo(MaskTheGray.andRomanPath.zeroSmallLightWidth);
            make.centerY.mas_equalTo(0);
        }];
    }else {
        [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.width.mas_equalTo(MaskTheGray.andRomanPath.zeroSmallLightWidth);
            make.top.mas_equalTo(MaskTheGray.andRomanPath.funkOverMen);
            make.bottom.mas_equalTo(-MaskTheGray.andRomanPath.funkOverMen);
            make.centerX.mas_equalTo(0);
        }];
    }
}

- (void)frameRespectsRenewedTowerSamplingAction:(UIButton *)sender{
    [super frameRespectsRenewedTowerSamplingAction:sender];
    if (self.paragraphTone && [self.paragraphTone respondsToSelector:@selector(introHungarianIndianMouseBoostAnimationSearch)]) {
        [self.paragraphTone introHungarianIndianMouseBoostAnimationSearch];
    }
}
@end
