






#import "MightLogoWaxViewController.h"
#import "EarManExtrasCell.h"
#import "NSString+NonceBeen.h"
#import "AreaMinorMeterThickRecently.h"

@interface MightLogoWaxViewController ()<UITableViewDelegate,UITableViewDataSource>

@property (nonatomic, strong) AreaMinorMeterThickRecently *outOperation;

@property (nonatomic, strong) UITableView *nowMercuryView;

@property (nonatomic, assign) NSInteger undoMovieNonce;

@property (nonatomic, strong) UIButton *searchButton;

@end

@implementation MightLogoWaxViewController

- (AreaMinorMeterThickRecently *)outOperation {
    return self.panoramaEra;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.busExtractButton.hidden = NO;
    
    UILabel *label = [UILabel new];
    label.text = SubBondFour.injectionBlack.faceInter;
    label.textColor = [SubBondFour routeHeapColor];
    label.font = [UIFont systemFontOfSize:SubBondFour.nodeFourteen.feedSeeBasic];
    [self.view addSubview:label];
    [label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.busExtractButton);
        make.centerX.equalTo(self.view);
        make.height.mas_equalTo(SubBondFour.nodeFourteen.makeSliceKey);
    }];
    
    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = SubBondFour.nodeFourteen.suchIdleEye;
    
    NSString *greenGreat = self.outOperation.phaseCousin?:self.outOperation.didPattern;
    
    _searchButton = [SubBondFour certDateSlovakDisablingTalkColor: [SubBondFour.injectionBlack.outlineNap stringByAppendingFormat:@" %@",greenGreat]];

    [_searchButton addTarget:self action:@selector(rotationContentUpperAboveCommonClicked:) forControlEvents:(UIControlEventTouchUpInside)];
    [self.view addSubview:_searchButton];
    [_searchButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(SubBondFour.nodeFourteen.forSomaliSay);
    }];

    
    _nowMercuryView = [[UITableView alloc] initWithFrame:CGRectZero style:(UITableViewStylePlain)];
    _nowMercuryView.backgroundColor = UIColor.systemGray6Color;
    _nowMercuryView.contentInset = UIEdgeInsetsMake(0, 0, 10, 0);
    _nowMercuryView.separatorStyle = UITableViewCellSeparatorStyleNone;
    _nowMercuryView.rowHeight = SubBondFour.nodeFourteen.cookieCommon;
    _nowMercuryView.delegate = self;
    _nowMercuryView.dataSource = self;
    [_nowMercuryView registerClass:[EarManExtrasCell class] forCellReuseIdentifier:NSStringFromClass(EarManExtrasCell.class)];
    
    [self.view addSubview:_nowMercuryView];
    [_nowMercuryView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(label.mas_bottom).offset(SubBondFour.nodeFourteen.oldDoneHigh);
        make.left.right.equalTo(self.view);
        make.bottom.equalTo(_searchButton.mas_top);
    }];
    
    NSIndexPath *indexPath=[NSIndexPath indexPathForRow:0 inSection:0];
   [_nowMercuryView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone];
   NSIndexPath *path=[NSIndexPath indexPathForItem:0 inSection:0];
   [self tableView:_nowMercuryView didSelectRowAtIndexPath:path];
}

- (void)rotationContentUpperAboveCommonClicked:(id)sender {
    [[KeysVoiceManager shared] hailTargetedWindow];
    if (self.taskCharUnify && [self.taskCharUnify respondsToSelector:@selector(relevanceRematchMin:)]) {
        [self.taskCharUnify relevanceRematchMin:self.outOperation.movieArtUniversalDeletionDecide[self.undoMovieNonce]];
    }
}

- (UIView *)refreshedMostAuditedTagHierarchy {
    CGFloat apple = 30;
    CGFloat height = [self.outOperation.tailCharacterElementButApplying constantsPhoneCanAcuteCallbacks] * apple + [self.outOperation.luminanceAppendingRotationIdenticalProgress constantsPhoneCanAcuteCallbacks]  * apple + 5;
    
    UIView *energyView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, height)];
    
    CGFloat drive = 5;
    
    if ([self.outOperation.tailCharacterElementButApplying constantsPhoneCanAcuteCallbacks]) {
        UILabel *speedLabel = [[UILabel alloc] init];
        [energyView addSubview:speedLabel];
        speedLabel.text = [NSString stringWithFormat:@"%@:", SubBondFour.injectionBlack.farsiObscuredBiometrySelfLazy];
        speedLabel.font = [UIFont boldSystemFontOfSize:15];
        speedLabel.textColor = UIColor.darkGrayColor;
        [speedLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.mas_equalTo(drive);
            make.left.mas_equalTo(12);
            make.height.mas_equalTo(apple);
        }];
        
        UILabel *scoreLabel = [[UILabel alloc] init];
        [energyView addSubview:scoreLabel];
        scoreLabel.text = self.outOperation.tailCharacterElementButApplying;
        scoreLabel.textColor = UIColor.systemOrangeColor;
        [scoreLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.mas_equalTo(drive);
            make.right.mas_equalTo(-10);
            make.height.mas_equalTo(apple);
        }];
        drive += apple;
    }
    
    if ([self.outOperation.luminanceAppendingRotationIdenticalProgress constantsPhoneCanAcuteCallbacks]) {
        UILabel *speedLabel = [[UILabel alloc] init];
        [energyView addSubview:speedLabel];
        speedLabel.text = [NSString stringWithFormat:@"%@:", SubBondFour.injectionBlack.figurePreciseRelationsExpandStillSpanish];
        speedLabel.font = [UIFont boldSystemFontOfSize:15];
        speedLabel.textColor = UIColor.darkGrayColor;
        [speedLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.mas_equalTo(drive);
            make.left.mas_equalTo(12);
            make.height.mas_equalTo(apple);
        }];
        
        UILabel *scoreLabel = [[UILabel alloc] init];
        [energyView addSubview:scoreLabel];
        scoreLabel.text = self.outOperation.luminanceAppendingRotationIdenticalProgress;
        scoreLabel.textColor = UIColor.systemOrangeColor;
        [scoreLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.mas_equalTo(drive);
            make.right.mas_equalTo(-10);
            make.height.mas_equalTo(apple);
        }];
    }
    
    return energyView;
}

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

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    EarManExtrasCell *dust = [tableView dequeueReusableCellWithIdentifier:NSStringFromClass(EarManExtrasCell.class) forIndexPath:indexPath];
    dust.napRestRed = self.outOperation.movieArtUniversalDeletionDecide[indexPath.row];;
    return dust;
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    UITableViewCell *dust = [tableView cellForRowAtIndexPath:indexPath];
    if (dust) {
        dust.selected = YES;
        _undoMovieNonce = indexPath.row;
    }
    
_nowMercuryView.tableHeaderView = [self refreshedMostAuditedTagHierarchy];

}

- (void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath {
    UITableViewCell *dust = [tableView cellForRowAtIndexPath:indexPath];
    if (dust) {
        dust.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(SubBondFour.nodeFourteen.tagWetTorch);
            make.right.mas_equalTo(-SubBondFour.nodeFourteen.tagWetTorch);
            make.height.mas_equalTo(SubBondFour.nodeFourteen.hexSlantTopBagWidth);
            make.centerY.mas_equalTo(0);
        }];
    }else {
        [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.width.mas_equalTo(SubBondFour.nodeFourteen.hexSlantTopBagWidth);
            make.top.mas_equalTo(SubBondFour.nodeFourteen.tagWetTorch);
            make.bottom.mas_equalTo(-SubBondFour.nodeFourteen.tagWetTorch);
            make.centerX.mas_equalTo(0);
        }];
    }
}

- (void)didOffBeganBalancedStairAction:(UIButton *)sender{
    [super didOffBeganBalancedStairAction:sender];
    if (self.taskCharUnify && [self.taskCharUnify respondsToSelector:@selector(envelopeMediumObtainThickManagersStrideKilometer)]) {
        [self.taskCharUnify envelopeMediumObtainThickManagersStrideKilometer];
    }
}
@end
