






#import "HasAnchoredButton.h"
#import "AppleNotify.h"
#import "UIImage+AreImage.h"

@interface HasAnchoredButton ()


@property (nonatomic, strong) NSTimer *earlyMalayRoleTimer;

@property (nonatomic, assign) NSInteger sobOnlyCathedralSharpenNoiseAsset;

@property (nonatomic, copy) NSString *collectorSpringNibblesSliceRun;

@end

@implementation HasAnchoredButton

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

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


- (void)interruptBehaviorPassivelyCautionEasy {
    
    self.keyComparedBarCyrillicMoveComputer = 60;
    self.collectorSpringNibblesSliceRun = AppleNotify.labelBrownCurl.literLuminanceProcessPreferredGesturesBufferCode;
    [self setTitle:self.collectorSpringNibblesSliceRun forState:UIControlStateNormal];
    [self setBackgroundImage:[UIImage allEarUnitLiftColor:AppleNotify.hourlyWaxColor] forState:UIControlStateNormal];
    [self setBackgroundImage:[UIImage allEarUnitLiftColor:[[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(dueUnlikelyClicked) forControlEvents:UIControlEventTouchUpInside];
}


- (void)dueUnlikelyClicked {
    [self finalizeCupRemotelyCutIll];
    if (self.pinkYouFitWonAction) {
        self.pinkYouFitWonAction();
    }
}


- (void)finalizeCupRemotelyCutIll {
    self.enabled = NO;
    self.sobOnlyCathedralSharpenNoiseAsset = self.keyComparedBarCyrillicMoveComputer;
    [self towerGainBurstExceptionAdvanceDismiss];
    
    
    self.earlyMalayRoleTimer = [NSTimer scheduledTimerWithTimeInterval:1.0
                                                                 target:self
                                                               selector:@selector(unloadOverRecordIndicatedNap:)
                                                               userInfo:nil
                                                                repeats:YES];
}


- (void)unloadOverRecordIndicatedNap:(NSTimer *)yahoo {
    self.sobOnlyCathedralSharpenNoiseAsset--;
    if (self.sobOnlyCathedralSharpenNoiseAsset <= 0) {
        [self reportingEncodingModernShareNumerator];
    } else {
        [self towerGainBurstExceptionAdvanceDismiss];
    }
}


- (void)towerGainBurstExceptionAdvanceDismiss {
    NSString *title = [NSString stringWithFormat:@"%@(%ld)",AppleNotify.labelBrownCurl.matrixSupportedRatioSucceededDistinctFatCode, (long)self.sobOnlyCathedralSharpenNoiseAsset];
    [self setTitle:title forState:UIControlStateDisabled];
}


- (void)reportingEncodingModernShareNumerator {
    [self.earlyMalayRoleTimer invalidate];
    self.earlyMalayRoleTimer = nil;
    self.enabled = YES;
    [self setTitle:self.collectorSpringNibblesSliceRun forState:UIControlStateNormal];
}

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

@end
