






#import "OwnTapPresetViewController.h"
#import "AirAbsentButCell.h"
#import "NSString+Receiving.h"
#import "MegabytesGroupedEqualWasCopper.h"

@interface OwnTapPresetViewController ()<UITableViewDelegate,UITableViewDataSource>

@property (nonatomic, strong) MegabytesGroupedEqualWasCopper *funQuietTrad;

@property (nonatomic, strong) UITableView *originsEggView;

@property (nonatomic, assign) NSInteger filterRecently;

@property (nonatomic, strong) UIButton *littleButton;

@end

@implementation OwnTapPresetViewController

- (MegabytesGroupedEqualWasCopper *)funQuietTrad {
    return self.tooStairTap;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.topMaleOurButton.hidden = NO;
    
    UILabel *label = [UILabel new];
    label.text = SafeWaxSort.oldBothLogStop.civilBlur;
    label.textColor = [SafeWaxSort teluguDidColor];
    label.font = [UIFont systemFontOfSize:SafeWaxSort.sinLaunchCut.kitMenuRenew];
    [self.view addSubview:label];
    [label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.topMaleOurButton);
        make.centerX.equalTo(self.view);
        make.height.mas_equalTo(SafeWaxSort.sinLaunchCut.autoFunction);
    }];
    
    self.view.clipsToBounds = YES;
    self.view.layer.cornerRadius = SafeWaxSort.sinLaunchCut.mergeBarrier;
    
    NSString *effectTime = self.funQuietTrad.joinAirRoll?:self.funQuietTrad.acuteAxial;
    
    _littleButton = [SafeWaxSort uniformBarrierWillGainSignalColor: [SafeWaxSort.oldBothLogStop.cropForCup stringByAppendingFormat:@" %@",effectTime]];

    [_littleButton addTarget:self action:@selector(notifiedMoveStepchildUpperAnalysisClicked:) forControlEvents:(UIControlEventTouchUpInside)];
    [self.view addSubview:_littleButton];
    [_littleButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view).offset(SafeWaxSort.sinLaunchCut.boxRoomFeed);
        make.right.equalTo(self.view).offset(-SafeWaxSort.sinLaunchCut.boxRoomFeed);
        make.bottom.equalTo(self.view).offset(-SafeWaxSort.sinLaunchCut.boxRoomFeed);
        make.height.mas_equalTo(SafeWaxSort.sinLaunchCut.priorSpaTeam);
    }];

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

- (void)notifiedMoveStepchildUpperAnalysisClicked:(id)sender {
    [[UseKazakhManager shared] invisibleEndWindow];
    if (self.eightFoundPop && [self.eightFoundPop respondsToSelector:@selector(senseHistoryRest:)]) {
        [self.eightFoundPop senseHistoryRest:self.funQuietTrad.fixHeartbeatFragmentsOddPiece[self.filterRecently]];
    }
}

- (UIView *)swappedBirthdayAirEmptyFlush:(IndexedHelpIntervalBriefProposalIntersect *)item {
    
    if (!item) {
        return [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, 0)];
    }
    
    CGFloat place = 30;
    
    UIView *minuteView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, 65)];
    
    CGFloat entry = 5;
    
    UILabel *plugIdiom = [[UILabel alloc] init];
    [minuteView addSubview:plugIdiom];
    plugIdiom.text = [NSString stringWithFormat:@"%@:", SafeWaxSort.oldBothLogStop.sizeSayOrnamentsMailRemoval];
    plugIdiom.font = [UIFont boldSystemFontOfSize:15];
    plugIdiom.textColor = UIColor.darkGrayColor;
    [plugIdiom mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(entry);
        make.left.mas_equalTo(12);
        make.height.mas_equalTo(place);
    }];
    
    UILabel *attachZero = [[UILabel alloc] init];
    [minuteView addSubview:attachZero];
    attachZero.text = item.repeatsFeedCharStandardOutcome;
    attachZero.textColor = UIColor.systemOrangeColor;
    [attachZero mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(entry);
        make.right.mas_equalTo(-10);
        make.height.mas_equalTo(place);
    }];
    entry += place;
    
    UILabel *pointerCount = [[UILabel alloc] init];
    [minuteView addSubview:pointerCount];
    pointerCount.text = [NSString stringWithFormat:@"%@:", SafeWaxSort.oldBothLogStop.threadMisplacedSecurelyWrongBagGenerate];
    pointerCount.font = [UIFont boldSystemFontOfSize:15];
    pointerCount.textColor = UIColor.darkGrayColor;
    [pointerCount mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(entry);
        make.left.mas_equalTo(12);
        make.height.mas_equalTo(place);
    }];
    
    UILabel *slabHalfCount = [[UILabel alloc] init];
    [minuteView addSubview:slabHalfCount];
    slabHalfCount.text = item.prematureJustifiedBracketedLogStorage;
    slabHalfCount.textColor = UIColor.systemOrangeColor;
    [slabHalfCount mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(entry);
        make.right.mas_equalTo(-10);
        make.height.mas_equalTo(place);
    }];
    
    return minuteView;
}

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

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    AirAbsentButCell *loss = [tableView dequeueReusableCellWithIdentifier:NSStringFromClass(AirAbsentButCell.class) forIndexPath:indexPath];
    loss.midLongBin = self.funQuietTrad.fixHeartbeatFragmentsOddPiece[indexPath.row];;
    return loss;
}

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

IndexedHelpIntervalBriefProposalIntersect *item = self.funQuietTrad.fixHeartbeatFragmentsOddPiece[indexPath.row];
    _originsEggView.tableHeaderView = item.behaviorAccessingFlatCopyrightMusician ? [self swappedBirthdayAirEmptyFlush:item]:nil;
    
    [_littleButton setTitle:[SafeWaxSort.oldBothLogStop.cropForCup stringByAppendingFormat:@" %@",item.joinAirRoll] forState:UIControlStateNormal];
}

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

- (void)discountPagerGermanTwoGroupedAction:(UIButton *)sender{
    [super discountPagerGermanTwoGroupedAction:sender];
    if (self.eightFoundPop && [self.eightFoundPop respondsToSelector:@selector(removalQuotationSucceededYellowKinTowerFalloff)]) {
        [self.eightFoundPop removalQuotationSucceededYellowKinTowerFalloff];
    }
}
@end
