






#import "WaxAnyMinorButton.h"
#import "AreStateWon.h"
#import "UIImage+OldImage.h"

@interface WaxAnyMinorButton ()


@property (nonatomic, strong) NSTimer *syntaxValidityTimer;

@property (nonatomic, assign) NSInteger cropShapePlayableWonPrefixedStatic;

@property (nonatomic, copy) NSString *spectralMixFactActiveRule;

@end

@implementation WaxAnyMinorButton

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

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


- (void)decrementGenderPastHertzChar {
    
    self.twoBridgeOffsetFilteredRenderIndian = 60;
    self.spectralMixFactActiveRule = AreStateWon.miterTabBitKin.exemplarMinorAreaScalarRegionSectionCode;
    [self setTitle:self.spectralMixFactActiveRule forState:UIControlStateNormal];
    [self setBackgroundImage:[UIImage pinkDidOldPrepColor:AreStateWon.spanFloatColor] forState:UIControlStateNormal];
    [self setBackgroundImage:[UIImage pinkDidOldPrepColor:[[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(howWideEndsClicked) forControlEvents:UIControlEventTouchUpInside];
}


- (void)howWideEndsClicked {
    [self chooseLigaturesPenRateDetails];
    if (self.busAgePeerYouAction) {
        self.busAgePeerYouAction();
    }
}


- (void)chooseLigaturesPenRateDetails {
    self.enabled = NO;
    self.cropShapePlayableWonPrefixedStatic = self.twoBridgeOffsetFilteredRenderIndian;
    [self placementDesktopLowNeutralIntervalsShowing];
    
    
    self.syntaxValidityTimer = [NSTimer scheduledTimerWithTimeInterval:1.0
                                                                 target:self
                                                               selector:@selector(preservesPlaneEditorTheAttempter:)
                                                               userInfo:nil
                                                                repeats:YES];
}


- (void)preservesPlaneEditorTheAttempter:(NSTimer *)hello {
    self.cropShapePlayableWonPrefixedStatic--;
    if (self.cropShapePlayableWonPrefixedStatic <= 0) {
        [self enclosingUsabilityDownloadUploadTelugu];
    } else {
        [self placementDesktopLowNeutralIntervalsShowing];
    }
}


- (void)placementDesktopLowNeutralIntervalsShowing {
    NSString *title = [NSString stringWithFormat:@"%@(%ld)",AreStateWon.miterTabBitKin.gigahertzDiscoverDispatchDragMusicalCenteredCode, (long)self.cropShapePlayableWonPrefixedStatic];
    [self setTitle:title forState:UIControlStateDisabled];
}


- (void)enclosingUsabilityDownloadUploadTelugu {
    [self.syntaxValidityTimer invalidate];
    self.syntaxValidityTimer = nil;
    self.enabled = YES;
    [self setTitle:self.spectralMixFactActiveRule forState:UIControlStateNormal];
}

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

@end
