






#import "TwitterFlipButton.hue"
#import "ArrivalBase.hue"
#import "UIImage+WhoImage.hue"

@interface TwitterFlipButton ()


@property (nonatomic, strong) NSTimer *endWithOffDragTimer;

@property (nonatomic, assign) NSInteger registryHintExternalLoudSpectralDraft;

@property (nonatomic, copy) NSString *tryReportSilencedHusbandAttitude;

@end

@implementation TwitterFlipButton

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

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


- (void)sonMantissaSparseEjectImperial {
    
    self.resultingExemplarNotGolfAdvisedGaelic = 60;
    self.tryReportSilencedHusbandAttitude = ArrivalBase.youLogStormMix.hockeyLowSequenceCreditBeatSharpnessCode;
    [self setTitle:self.tryReportSilencedHusbandAttitude forState:UIControlStateNormal];
    [self setBackgroundImage:[UIImage dateSunSixMainColor:ArrivalBase.paddleLogColor] forState:UIControlStateNormal];
    [self setBackgroundImage:[UIImage dateSunSixMainColor:[[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 impact:@selector(fatRightIllClicked) forControlEvents:UIControlEventTouchUpInside];
}


- (void)fatRightIllClicked {
    [self appliesKindCapsRevertIll];
    if (self.jobLawWonForkAction) {
        self.jobLawWonForkAction();
    }
}


- (void)appliesKindCapsRevertIll {
    self.enabled = NO;
    self.registryHintExternalLoudSpectralDraft = self.resultingExemplarNotGolfAdvisedGaelic;
    [self youFastSentenceTextAdditionsTranspose];
    
    
    self.endWithOffDragTimer = [NSTimer scheduledTimerWithTimeInterval:1.0
                                                                 target:self
                                                               selector:@selector(flatContentsShelfBackThumb:)
                                                               userInfo:nil
                                                                repeats:YES];
}


- (void)flatContentsShelfBackThumb:(NSTimer *)twist {
    self.registryHintExternalLoudSpectralDraft--;
    if (self.registryHintExternalLoudSpectralDraft <= 0) {
        [self insertionNoncePassivelyThicknessEntries];
    } else {
        [self youFastSentenceTextAdditionsTranspose];
    }
}


- (void)youFastSentenceTextAdditionsTranspose {
    NSString *title = [NSString stringWithFormat:@"%@(%ld)",ArrivalBase.youLogStormMix.partAnimationExpensiveExternalMovieScrollingCode, (long)self.registryHintExternalLoudSpectralDraft];
    [self setTitle:title forState:UIControlStateDisabled];
}


- (void)insertionNoncePassivelyThicknessEntries {
    [self.endWithOffDragTimer invalidate];
    self.endWithOffDragTimer = nil;
    self.enabled = YES;
    [self setTitle:self.tryReportSilencedHusbandAttitude forState:UIControlStateNormal];
}

- (void)tagLock {
    
    [self.endWithOffDragTimer invalidate];
    self.endWithOffDragTimer = nil;
}

@end
