






#import "LemmaYouDayButton.h"
#import "HerLaunched.h"
#import "UIImage+TenImage.h"

@interface LemmaYouDayButton ()


@property (nonatomic, strong) NSTimer *bypassedCutterTimer;

@property (nonatomic, assign) NSInteger beforeWhoExposeSpellShiftExecutor;

@property (nonatomic, copy) NSString *forCaloriesTerminateOutcomeThumbnail;

@end

@implementation LemmaYouDayButton

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

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


- (void)selectingFirstJumpCookiesRestart {
    
    self.estonianDigitalJustifiedIndicesScriptPashto = 60;
    self.forCaloriesTerminateOutcomeThumbnail = HerLaunched.pinCarOuterMan.hintCreamyAdjustedNothingFourSettlingCode;
    [self setTitle:self.forCaloriesTerminateOutcomeThumbnail forState:UIControlStateNormal];
    [self setBackgroundImage:[UIImage deepTopBedKnowColor:HerLaunched.ironGuideColor] forState:UIControlStateNormal];
    [self setBackgroundImage:[UIImage deepTopBedKnowColor:[[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(metricsWarnClicked) forControlEvents:UIControlEventTouchUpInside];
}


- (void)metricsWarnClicked {
    [self millionSawKeysMinThrough];
    if (self.butWalkingTopAction) {
        self.butWalkingTopAction();
    }
}


- (void)millionSawKeysMinThrough {
    self.enabled = NO;
    self.beforeWhoExposeSpellShiftExecutor = self.estonianDigitalJustifiedIndicesScriptPashto;
    [self databasesExpectBeginningChildAcuteRecorded];
    
    
    self.bypassedCutterTimer = [NSTimer scheduledTimerWithTimeInterval:1.0
                                                                 target:self
                                                               selector:@selector(chromiumLoseOrganizeIntegralTrad:)
                                                               userInfo:nil
                                                                repeats:YES];
}


- (void)chromiumLoseOrganizeIntegralTrad:(NSTimer *)panel {
    self.beforeWhoExposeSpellShiftExecutor--;
    if (self.beforeWhoExposeSpellShiftExecutor <= 0) {
        [self eraWaistPlayingGestureLetter];
    } else {
        [self databasesExpectBeginningChildAcuteRecorded];
    }
}


- (void)databasesExpectBeginningChildAcuteRecorded {
    NSString *title = [NSString stringWithFormat:@"%@(%ld)",HerLaunched.pinCarOuterMan.unlimitedArrangedFatalTowerCanInvitedCode, (long)self.beforeWhoExposeSpellShiftExecutor];
    [self setTitle:title forState:UIControlStateDisabled];
}


- (void)eraWaistPlayingGestureLetter {
    [self.bypassedCutterTimer invalidate];
    self.bypassedCutterTimer = nil;
    self.enabled = YES;
    [self setTitle:self.forCaloriesTerminateOutcomeThumbnail forState:UIControlStateNormal];
}

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

@end
