






#import "MildAnyCaretViewController.h"
#import "IndentSchoolCell.h"
#import "NSString+ClearLift.h"
#import "FilenamesTerminalCellComposedCompleted.h"

@interface MildAnyCaretViewController ()<UITableViewDelegate,UITableViewDataSource>

@property (nonatomic, strong) FilenamesTerminalCellComposedCompleted *andIndigoMen;

@property (nonatomic, strong) UITableView *fitSortDryView;

@property (nonatomic, assign) NSInteger mountPostUnder;

@property (nonatomic, strong) UIButton *mediumButton;

@end

@implementation MildAnyCaretViewController

- (FilenamesTerminalCellComposedCompleted *)andIndigoMen {
    return self.jobBagStrip;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.sawLaotianButton.hidden = NO;
    
    UILabel *label = [UILabel new];
    label.text = ReloadThird.phoneKitTenTen.applyGram;
    label.textColor = [ReloadThird fairBlockColor];
    label.font = [UIFont systemFontOfSize:ReloadThird.overlapQuote.borderUrgent];
    [self.view addSubview:label];
    [label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.sawLaotianButton);
        make.centerX.equalTo(self.view);
        make.height.mas_equalTo(ReloadThird.overlapQuote.veryFixPlace);
    }];
    
    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = ReloadThird.overlapQuote.drivenEndLog;
    
    NSString *userPutOdd = self.andIndigoMen.retSawEmpty?:self.andIndigoMen.oldComplex;
    
    _mediumButton = [ReloadThird signerClampingSeventeenForbiddenAmharicColor: [ReloadThird.phoneKitTenTen.countTheme stringByAppendingFormat:@" %@",userPutOdd]];

    [_mediumButton addTarget:self action:@selector(sectionGroupBadHoursTropicalClicked:) forControlEvents:(UIControlEventTouchUpInside)];
    [self.view addSubview:_mediumButton];
    [_mediumButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view).offset(ReloadThird.overlapQuote.vortexStair);
        make.right.equalTo(self.view).offset(-ReloadThird.overlapQuote.vortexStair);
        make.bottom.equalTo(self.view).offset(-ReloadThird.overlapQuote.vortexStair);
        make.height.mas_equalTo(ReloadThird.overlapQuote.dolbyBigHash);
    }];

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

- (void)sectionGroupBadHoursTropicalClicked:(id)sender {
    [[ManualCupManager shared] twoUploadingWindow];
    if (self.hueAwakePlace && [self.hueAwakePlace respondsToSelector:@selector(functionDietaryEncoding:)]) {
        [self.hueAwakePlace functionDietaryEncoding:self.andIndigoMen.earCivilAgreementStepchildUnwrap[self.mountPostUnder]];
    }
}

- (UIView *)eraJobPreventsLocationsMounted:(LayerOriginalDryCoverMegahertzFoot *)item {
    
    if (!item) {
        return [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, 0)];
    }
    
    CGFloat radix = 30;
    
    UIView *exposeView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, 65)];
    
    CGFloat adopt = 5;
    
    UILabel *photosLaw = [[UILabel alloc] init];
    [exposeView addSubview:photosLaw];
    photosLaw.text = [NSString stringWithFormat:@"%@:", ReloadThird.phoneKitTenTen.emptyMinorActualModelFully];
    photosLaw.font = [UIFont boldSystemFontOfSize:15];
    photosLaw.textColor = UIColor.darkGrayColor;
    [photosLaw mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(adopt);
        make.left.mas_equalTo(12);
        make.height.mas_equalTo(radix);
    }];
    
    UILabel *kelvinRare = [[UILabel alloc] init];
    [exposeView addSubview:kelvinRare];
    kelvinRare.text = item.basalSentTaskWordOccur;
    kelvinRare.textColor = UIColor.systemOrangeColor;
    [kelvinRare mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(adopt);
        make.right.mas_equalTo(-10);
        make.height.mas_equalTo(radix);
    }];
    adopt += radix;
    
    UILabel *catMoleCount = [[UILabel alloc] init];
    [exposeView addSubview:catMoleCount];
    catMoleCount.text = [NSString stringWithFormat:@"%@:", ReloadThird.phoneKitTenTen.processBoundBarPatternCurrentlyYou];
    catMoleCount.font = [UIFont boldSystemFontOfSize:15];
    catMoleCount.textColor = UIColor.darkGrayColor;
    [catMoleCount mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(adopt);
        make.left.mas_equalTo(12);
        make.height.mas_equalTo(radix);
    }];
    
    UILabel *fatMicroCount = [[UILabel alloc] init];
    [exposeView addSubview:fatMicroCount];
    fatMicroCount.text = item.semanticLocalStillGopherCollect;
    fatMicroCount.textColor = UIColor.systemOrangeColor;
    [fatMicroCount mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(adopt);
        make.right.mas_equalTo(-10);
        make.height.mas_equalTo(radix);
    }];
    
    return exposeView;
}

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

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    IndentSchoolCell *rear = [tableView dequeueReusableCellWithIdentifier:NSStringFromClass(IndentSchoolCell.class) forIndexPath:indexPath];
    rear.inhalerDay = self.andIndigoMen.earCivilAgreementStepchildUnwrap[indexPath.row];;
    return rear;
}

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

LayerOriginalDryCoverMegahertzFoot *item = self.andIndigoMen.earCivilAgreementStepchildUnwrap[indexPath.row];
    _fitSortDryView.tableHeaderView = item.reverseFetchCheckedInverseSoft ? [self eraJobPreventsLocationsMounted:item]:nil;
    
    [_mediumButton setTitle:[ReloadThird.phoneKitTenTen.countTheme stringByAppendingFormat:@" %@",item.retSawEmpty] forState:UIControlStateNormal];
}

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

- (void)adapterResetPhotoCompositeCapturingAction:(UIButton *)sender{
    [super adapterResetPhotoCompositeCapturingAction:sender];
    if (self.hueAwakePlace && [self.hueAwakePlace respondsToSelector:@selector(wonBouncingBadmintonBusPubEventualStreamed)]) {
        [self.hueAwakePlace wonBouncingBadmintonBusPubEventualStreamed];
    }
}
@end
