






#import "DayRunPointButton.h"
#import "HisTwoEject.h"
#import "UIImage+EyeImage.h"

@interface DayRunPointButton ()


@property (nonatomic, strong) NSTimer *nativeMindLeftTimer;

@property (nonatomic, assign) NSInteger ovulationForSpatialDashHailOvulation;

@property (nonatomic, copy) NSString *songAssumeDaysFixKit;

@end

@implementation DayRunPointButton

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

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


- (void)lexiconDisplaysNearestAmountState {
    
    self.conditionNotResourceEarFootersGet = 60;
    self.songAssumeDaysFixKit = HisTwoEject.nineEchoArmpit.externalViabilityEraCancelSamplesProminentCode;
    [self setTitle:self.songAssumeDaysFixKit forState:UIControlStateNormal];
    [self setBackgroundImage:[UIImage enterSequencerColor:HisTwoEject.darkMinorColor] forState:UIControlStateNormal];
    [self setBackgroundImage:[UIImage enterSequencerColor:[[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(faxSignThatClicked) forControlEvents:UIControlEventTouchUpInside];
}


- (void)faxSignThatClicked {
    [self chestLocallyStreamedInferiorsBest];
    if (self.lowPassBusZipAction) {
        self.lowPassBusZipAction();
    }
}


- (void)chestLocallyStreamedInferiorsBest {
    self.enabled = NO;
    self.ovulationForSpatialDashHailOvulation = self.conditionNotResourceEarFootersGet;
    [self warpReleaseStoodBedBalticKilovolts];
    
    
    self.nativeMindLeftTimer = [NSTimer scheduledTimerWithTimeInterval:1.0
                                                                 target:self
                                                               selector:@selector(caloriesStickyRedoneSaltGet:)
                                                               userInfo:nil
                                                                repeats:YES];
}


- (void)caloriesStickyRedoneSaltGet:(NSTimer *)buddy {
    self.ovulationForSpatialDashHailOvulation--;
    if (self.ovulationForSpatialDashHailOvulation <= 0) {
        [self transferSessionsSaveNegotiateClosure];
    } else {
        [self warpReleaseStoodBedBalticKilovolts];
    }
}


- (void)warpReleaseStoodBedBalticKilovolts {
    NSString *title = [NSString stringWithFormat:@"%@(%ld)",HisTwoEject.nineEchoArmpit.dolbyEasyPutNetscapeMonthFocalCode, (long)self.ovulationForSpatialDashHailOvulation];
    [self setTitle:title forState:UIControlStateDisabled];
}


- (void)transferSessionsSaveNegotiateClosure {
    [self.nativeMindLeftTimer invalidate];
    self.nativeMindLeftTimer = nil;
    self.enabled = YES;
    [self setTitle:self.songAssumeDaysFixKit forState:UIControlStateNormal];
}

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

@end
