






#import "ScriptDemandViewController.h"
#import "DustUnlikelyCell.h"
#import "NSString+TwoPhotos.h"
#import "IgnoredResonantVersionsAsteriskLaunching.h"

@interface ScriptDemandViewController ()<UITableViewDelegate,UITableViewDataSource>

@property (nonatomic, strong) IgnoredResonantVersionsAsteriskLaunching *armArmpitCar;

@property (nonatomic, strong) UITableView *mayHangSonView;

@property (nonatomic, assign) NSInteger holdLogoSerial;

@property (nonatomic, strong) UIButton *chromeButton;

@end

@implementation ScriptDemandViewController

- (IgnoredResonantVersionsAsteriskLaunching *)armArmpitCar {
    return self.grandsonPop;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.skipAllUseButton.hidden = NO;
    
    UILabel *label = [UILabel new];
    label.text = PintResting.exposeLeapAuto.evictSkip;
    label.textColor = [PintResting armHelperColor];
    label.font = [UIFont systemFontOfSize:PintResting.findClickCat.criteriaFont];
    [self.view addSubview:label];
    [label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.skipAllUseButton);
        make.centerX.equalTo(self.view);
        make.height.mas_equalTo(PintResting.findClickCat.spouseAnswer);
    }];
    
    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = PintResting.findClickCat.tomorrowCase;
    
    NSString *certCatEra = self.armArmpitCar.wayElderEra?:self.armArmpitCar.overallSob;
    
    _chromeButton = [PintResting serbianManInvokeSnapshotTwelveColor: [PintResting.exposeLeapAuto.hindiLarge stringByAppendingFormat:@" %@",certCatEra]];

    [_chromeButton addTarget:self action:@selector(compileAndPoloDaysBufferedClicked:) forControlEvents:(UIControlEventTouchUpInside)];
    [self.view addSubview:_chromeButton];
    [_chromeButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view).offset(PintResting.findClickCat.airCapsSign);
        make.right.equalTo(self.view).offset(-PintResting.findClickCat.airCapsSign);
        make.bottom.equalTo(self.view).offset(-PintResting.findClickCat.airCapsSign);
        make.height.mas_equalTo(PintResting.findClickCat.kitRateBoost);
    }];

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

- (void)compileAndPoloDaysBufferedClicked:(id)sender {
    [[IllBundleManager shared] hitPacketArmWindow];
    if (self.costWasArtMid && [self.costWasArtMid respondsToSelector:@selector(fractionHellmanCamera:)]) {
        [self.costWasArtMid fractionHellmanCamera:self.armArmpitCar.jobSodiumStrokedMismatchWeekday[self.holdLogoSerial]];
    }
}

- (UIView *)spousesInterlaceOtherButTextured:(FontTraverseObscuredChildSuddenStrict *)item {
    
    if (!item) {
        return [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, 0)];
    }
    
    CGFloat slide = 30;
    
    UIView *itsEndView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, 65)];
    
    CGFloat brown = 5;
    
    UILabel *modernPen = [[UILabel alloc] init];
    [itsEndView addSubview:modernPen];
    modernPen.text = [NSString stringWithFormat:@"%@:", PintResting.exposeLeapAuto.externGetMicroCentralsDate];
    modernPen.font = [UIFont boldSystemFontOfSize:15];
    modernPen.textColor = UIColor.darkGrayColor;
    [modernPen mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(brown);
        make.left.mas_equalTo(12);
        make.height.mas_equalTo(slide);
    }];
    
    UILabel *ellipseTap = [[UILabel alloc] init];
    [itsEndView addSubview:ellipseTap];
    ellipseTap.text = item.maxAsteriskAdapterRangeGigabytes;
    ellipseTap.textColor = UIColor.systemOrangeColor;
    [ellipseTap mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(brown);
        make.right.mas_equalTo(-10);
        make.height.mas_equalTo(slide);
    }];
    brown += slide;
    
    UILabel *sharingCount = [[UILabel alloc] init];
    [itsEndView addSubview:sharingCount];
    sharingCount.text = [NSString stringWithFormat:@"%@:", PintResting.exposeLeapAuto.replaceTextureTallScrollsDuplicateExits];
    sharingCount.font = [UIFont boldSystemFontOfSize:15];
    sharingCount.textColor = UIColor.darkGrayColor;
    [sharingCount mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(brown);
        make.left.mas_equalTo(12);
        make.height.mas_equalTo(slide);
    }];
    
    UILabel *countHisCount = [[UILabel alloc] init];
    [itsEndView addSubview:countHisCount];
    countHisCount.text = item.wordSplatElementSameExpanded;
    countHisCount.textColor = UIColor.systemOrangeColor;
    [countHisCount mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(brown);
        make.right.mas_equalTo(-10);
        make.height.mas_equalTo(slide);
    }];
    
    return itsEndView;
}

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

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    DustUnlikelyCell *blob = [tableView dequeueReusableCellWithIdentifier:NSStringFromClass(DustUnlikelyCell.class) forIndexPath:indexPath];
    blob.basePlural = self.armArmpitCar.jobSodiumStrokedMismatchWeekday[indexPath.row];;
    return blob;
}

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

FontTraverseObscuredChildSuddenStrict *item = self.armArmpitCar.jobSodiumStrokedMismatchWeekday[indexPath.row];
    _mayHangSonView.tableHeaderView = item.responderMindDogRangingDescended ? [self spousesInterlaceOtherButTextured:item]:nil;
    
    [_chromeButton setTitle:[PintResting.exposeLeapAuto.hindiLarge stringByAppendingFormat:@" %@",item.wayElderEra] forState:UIControlStateNormal];
}

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

- (void)sensitiveReceiptSlidingEngineDidAction:(UIButton *)sender{
    [super sensitiveReceiptSlidingEngineDidAction:sender];
    if (self.costWasArtMid && [self.costWasArtMid respondsToSelector:@selector(sizeSawMatrixDisappearEyeExpiresTerabytes)]) {
        [self.costWasArtMid sizeSawMatrixDisappearEyeExpiresTerabytes];
    }
}
@end
