






#import "IndexingBoxButton.h"
#import "HourEllipse.h"
#import "UIImage+SawImage.h"

@interface IndexingBoxButton ()


@property (nonatomic, strong) NSTimer *barZipMetalBusTimer;

@property (nonatomic, assign) NSInteger cupProvidersNeedManDitheredTake;

@property (nonatomic, copy) NSString *gesturesButUsesVersionsQuick;

@end

@implementation IndexingBoxButton

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

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


- (void)columnsEnsurePauseBridgingStiffness {
    
    self.redSunMaximumOwnFlowIncorrect = 60;
    self.gesturesButUsesVersionsQuick = HourEllipse.alienSemaphore.tomorrowVignetteSocketPathEndCountedCode;
    [self setTitle:self.gesturesButUsesVersionsQuick forState:UIControlStateNormal];
    [self setBackgroundImage:[UIImage forkPurpleOpenColor:HourEllipse.screenKinColor] forState:UIControlStateNormal];
    [self setBackgroundImage:[UIImage forkPurpleOpenColor:[[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(bothMastersClicked) forControlEvents:UIControlEventTouchUpInside];
}


- (void)bothMastersClicked {
    [self kurdishAuxiliaryBigFreestyleLove];
    if (self.starBandwidthAction) {
        self.starBandwidthAction();
    }
}


- (void)kurdishAuxiliaryBigFreestyleLove {
    self.enabled = NO;
    self.cupProvidersNeedManDitheredTake = self.redSunMaximumOwnFlowIncorrect;
    [self sunMagicCountingListWetUnsafe];
    
    
    self.barZipMetalBusTimer = [NSTimer scheduledTimerWithTimeInterval:1.0
                                                                 target:self
                                                               selector:@selector(guideSwappedStackParentalWax:)
                                                               userInfo:nil
                                                                repeats:YES];
}


- (void)guideSwappedStackParentalWax:(NSTimer *)molar {
    self.cupProvidersNeedManDitheredTake--;
    if (self.cupProvidersNeedManDitheredTake <= 0) {
        [self aboutReversingWhileArcheryThermal];
    } else {
        [self sunMagicCountingListWetUnsafe];
    }
}


- (void)sunMagicCountingListWetUnsafe {
    NSString *title = [NSString stringWithFormat:@"%@(%ld)",HourEllipse.alienSemaphore.argumentObserveEquallyHundredLawWeekdayCode, (long)self.cupProvidersNeedManDitheredTake];
    [self setTitle:title forState:UIControlStateDisabled];
}


- (void)aboutReversingWhileArcheryThermal {
    [self.barZipMetalBusTimer invalidate];
    self.barZipMetalBusTimer = nil;
    self.enabled = YES;
    [self setTitle:self.gesturesButUsesVersionsQuick forState:UIControlStateNormal];
}

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

@end
