






#import "SonChestSinkViewController.h"
#import "AboveNodeTenCell.h"
#import "NSString+MoreAlien.h"
#import "TempThumbBurnEdgaSub.h"

@interface SonChestSinkViewController ()<UITableViewDelegate,UITableViewDataSource>

@property (nonatomic, strong) TempThumbBurnEdgaSub *wayScheduled;

@property (nonatomic, strong) UITableView *kinPubFunkView;

@property (nonatomic, assign) NSInteger sunNowButTwist;

@property (nonatomic, strong) UIButton *tagOffButton;

@end

@implementation SonChestSinkViewController

- (TempThumbBurnEdgaSub *)wayScheduled {
    return self.primaryMile;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.impactZoneButton.hidden = NO;
    
    UILabel *label = [UILabel new];
    label.text = BigAddition.lateTapLineAll.napPhotos;
    label.textColor = [BigAddition portHumanColor];
    label.font = [UIFont systemFontOfSize:BigAddition.noiseFactMen.lookHelloArt];
    [self.view addSubview:label];
    [label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.impactZoneButton);
        make.centerX.equalTo(self.view);
        make.height.mas_equalTo(BigAddition.noiseFactMen.ditherMetric);
    }];
    
    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = BigAddition.noiseFactMen.noteCallBut;
    
    NSString *maxOverage = self.wayScheduled.eyeClaimHas?:self.wayScheduled.butOurBase;
    
    _tagOffButton = [BigAddition jabberMenLowWhoCleanupColor: [BigAddition.lateTapLineAll.hangOldEgg stringByAppendingFormat:@" %@",maxOverage]];

    [_tagOffButton addTarget:self action:@selector(redirectsSonHertzOffTintClicked:) forControlEvents:(UIControlEventTouchUpInside)];
    [self.view addSubview:_tagOffButton];
    [_tagOffButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(self.view);
        make.height.mas_equalTo(BigAddition.noiseFactMen.accessingFit);
    }];

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

- (void)redirectsSonHertzOffTintClicked:(id)sender {
    [[ThickFlagManager shared] fitSystemEndWindow];
    if (self.pitchRecorder && [self.pitchRecorder respondsToSelector:@selector(connectedCollectorAny:)]) {
        [self.pitchRecorder connectedCollectorAny:self.wayScheduled.itsOddFormatHailTime[self.sunNowButTwist]];
    }
}

- (UIView *)serbianUnsignedSerialSecondaryFor:(SexOpenCarTalkRopeQuerying *)item {
    
    if (!item) {
        return [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, 0)];
    }
    
    CGFloat enter = 30;
    
    UIView *strideView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, 65)];
    
    CGFloat paper = 5;
    
    UILabel *unlimited = [[UILabel alloc] init];
    [strideView addSubview:unlimited];
    unlimited.text = [NSString stringWithFormat:@"%@:", BigAddition.lateTapLineAll.defaultsExtendAxesGujaratiRecorded];
    unlimited.font = [UIFont boldSystemFontOfSize:15];
    unlimited.textColor = UIColor.darkGrayColor;
    [unlimited mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(paper);
        make.left.mas_equalTo(12);
        make.height.mas_equalTo(enter);
    }];
    
    UILabel *sinManBend = [[UILabel alloc] init];
    [strideView addSubview:sinManBend];
    sinManBend.text = item.megabitsSatisfiedDustEntryPolo;
    sinManBend.textColor = UIColor.systemOrangeColor;
    [sinManBend mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(paper);
        make.right.mas_equalTo(-10);
        make.height.mas_equalTo(enter);
    }];
    paper += enter;
    
    UILabel *fixModeCount = [[UILabel alloc] init];
    [strideView addSubview:fixModeCount];
    fixModeCount.text = [NSString stringWithFormat:@"%@:", BigAddition.lateTapLineAll.farsiCervicalEpsilonMercuryEnergyInput];
    fixModeCount.font = [UIFont boldSystemFontOfSize:15];
    fixModeCount.textColor = UIColor.darkGrayColor;
    [fixModeCount mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(paper);
        make.left.mas_equalTo(12);
        make.height.mas_equalTo(enter);
    }];
    
    UILabel *estimateCount = [[UILabel alloc] init];
    [strideView addSubview:estimateCount];
    estimateCount.text = item.minorNecessaryGracefulSortingSecret;
    estimateCount.textColor = UIColor.systemOrangeColor;
    [estimateCount mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(paper);
        make.right.mas_equalTo(-10);
        make.height.mas_equalTo(enter);
    }];
    
    return strideView;
}

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

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    AboveNodeTenCell *iron = [tableView dequeueReusableCellWithIdentifier:NSStringFromClass(AboveNodeTenCell.class) forIndexPath:indexPath];
    iron.lawMileIll = self.wayScheduled.itsOddFormatHailTime[indexPath.row];;
    return iron;
}

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

SexOpenCarTalkRopeQuerying *item = self.wayScheduled.itsOddFormatHailTime[indexPath.row];
    _kinPubFunkView.tableHeaderView = item.buddhistOrderEvaluateEarlierTop ? [self serbianUnsignedSerialSecondaryFor:item]:nil;
    
    [_tagOffButton setTitle:[BigAddition.lateTapLineAll.hangOldEgg stringByAppendingFormat:@" %@",item.eyeClaimHas] forState:UIControlStateNormal];
}

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

- (void)homeOccurUpdateInputSlantAction:(UIButton *)sender{
    [super homeOccurUpdateInputSlantAction:sender];
    if (self.pitchRecorder && [self.pitchRecorder respondsToSelector:@selector(planePermittedDescribeCheckerAreHexArts)]) {
        [self.pitchRecorder planePermittedDescribeCheckerAreHexArts];
    }
}
@end
