






#import "CallIronAreButton.h"
#import "RaceRateYou.h"
#import "UIImage+TagImage.h"

@interface CallIronAreButton ()


@property (nonatomic, strong) NSTimer *andDueSigmaOwnTimer;

@property (nonatomic, assign) NSInteger enablingDisparityDismissLayerKerningSinhalese;

@property (nonatomic, copy) NSString *claimHalfBrandMutationTip;

@end

@implementation CallIronAreButton

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

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


- (void)toggleExposeZipSignalBusy {
    
    self.linearChatterArtsTruncatesScopeTriple = 60;
    self.claimHalfBrandMutationTip = RaceRateYou.maxSnapYearShe.seeSecurelyConverterRedefinedReuseTempCode;
    [self setTitle:self.claimHalfBrandMutationTip forState:UIControlStateNormal];
    [self setBackgroundImage:[UIImage insetVoiceLastColor:RaceRateYou.ropeCauseColor] forState:UIControlStateNormal];
    [self setBackgroundImage:[UIImage insetVoiceLastColor:[[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(andFormDropClicked) forControlEvents:UIControlEventTouchUpInside];
}


- (void)andFormDropClicked {
    [self spaLargestPressedHigherOnce];
    if (self.holdUndoWaistAction) {
        self.holdUndoWaistAction();
    }
}


- (void)spaLargestPressedHigherOnce {
    self.enabled = NO;
    self.enablingDisparityDismissLayerKerningSinhalese = self.linearChatterArtsTruncatesScopeTriple;
    [self tripleSaltDisallowPubPlaybackSpeaker];
    
    
    self.andDueSigmaOwnTimer = [NSTimer scheduledTimerWithTimeInterval:1.0
                                                                 target:self
                                                               selector:@selector(dividingVariablesKeyYoungerSun:)
                                                               userInfo:nil
                                                                repeats:YES];
}


- (void)dividingVariablesKeyYoungerSun:(NSTimer *)slide {
    self.enablingDisparityDismissLayerKerningSinhalese--;
    if (self.enablingDisparityDismissLayerKerningSinhalese <= 0) {
        [self cutterNodeLiterMarkRefreshed];
    } else {
        [self tripleSaltDisallowPubPlaybackSpeaker];
    }
}


- (void)tripleSaltDisallowPubPlaybackSpeaker {
    NSString *title = [NSString stringWithFormat:@"%@(%ld)",RaceRateYou.maxSnapYearShe.kilogramEachAreControlPortCollisionCode, (long)self.enablingDisparityDismissLayerKerningSinhalese];
    [self setTitle:title forState:UIControlStateDisabled];
}


- (void)cutterNodeLiterMarkRefreshed {
    [self.andDueSigmaOwnTimer invalidate];
    self.andDueSigmaOwnTimer = nil;
    self.enabled = YES;
    [self setTitle:self.claimHalfBrandMutationTip forState:UIControlStateNormal];
}

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

@end
