






#import "BundlesLateButton.h"
#import "VitalityTab.h"
#import "UIImage+UseImage.h"

@interface BundlesLateButton ()


@property (nonatomic, strong) NSTimer *askOnlyJobLeftTimer;

@property (nonatomic, assign) NSInteger gallonAbortPromotionGeometryClickThread;

@property (nonatomic, copy) NSString *eastInterestOxygenLowYahoo;

@end

@implementation BundlesLateButton

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self boxRingWorkingBitmapHit];
    }
    return self;
}

- (instancetype)initWithCoder:(NSCoder *)coder {
    self = [super initWithCoder:coder];
    if (self) {
        [self boxRingWorkingBitmapHit];
    }
    return self;
}


- (void)boxRingWorkingBitmapHit {
    
    self.visibleEnhancedHistoryFoodClientsModule = 60;
    self.eastInterestOxygenLowYahoo = VitalityTab.foggyCycleUnit.forkRoundThreadedPacketOpacityParentCode;
    [self setTitle:self.eastInterestOxygenLowYahoo forState:UIControlStateNormal];
    [self setBackgroundImage:[UIImage barWasSeeRoundColor:VitalityTab.didCancelColor] forState:UIControlStateNormal];
    [self setBackgroundImage:[UIImage barWasSeeRoundColor:[[UIColor lightGrayColor] colorWithAlphaComponent:0.5f]] forState:UIControlStateHighlighted];
    self.titleLabel.font = [UIFont systemFontOfSize:16];
    self.layer.cornerRadius = 2.f;
    self.layer.masksToBounds = YES;
    
    self.contentEdgeInsets = UIEdgeInsetsMake(0, 5, 0, 5);
    
    [self sizeToFit];
    
    
    [self addTarget:self action:@selector(dividerDenyClicked) forControlEvents:UIControlEventTouchUpInside];
}


- (void)dividerDenyClicked {
    [self unwindingOrdinalLevelAppearsRussian];
    if (self.keyTrapBarTenAction) {
        self.keyTrapBarTenAction();
    }
}


- (void)unwindingOrdinalLevelAppearsRussian {
    self.enabled = NO;
    self.gallonAbortPromotionGeometryClickThread = self.visibleEnhancedHistoryFoodClientsModule;
    [self armWidgetDisablingSlovakConstantsMax];
    
    
    self.askOnlyJobLeftTimer = [NSTimer scheduledTimerWithTimeInterval:1.0
                                                                 target:self
                                                               selector:@selector(slabManualBlobSlavicInter:)
                                                               userInfo:nil
                                                                repeats:YES];
}


- (void)slabManualBlobSlavicInter:(NSTimer *)drive {
    self.gallonAbortPromotionGeometryClickThread--;
    if (self.gallonAbortPromotionGeometryClickThread <= 0) {
        [self collectorAbortUnlearnWithinOpen];
    } else {
        [self armWidgetDisablingSlovakConstantsMax];
    }
}


- (void)armWidgetDisablingSlovakConstantsMax {
    NSString *title = [NSString stringWithFormat:@"%@(%ld)",VitalityTab.foggyCycleUnit.uptimeScalePeakResumeSlavicDirectorCode, (long)self.gallonAbortPromotionGeometryClickThread];
    [self setTitle:title forState:UIControlStateDisabled];
}


- (void)collectorAbortUnlearnWithinOpen {
    [self.askOnlyJobLeftTimer invalidate];
    self.askOnlyJobLeftTimer = nil;
    self.enabled = YES;
    [self setTitle:self.eastInterestOxygenLowYahoo forState:UIControlStateNormal];
}

- (void)dealloc {
    
    [self.askOnlyJobLeftTimer invalidate];
    self.askOnlyJobLeftTimer = nil;
}

@end
