






#import "GetGradeCarButton.h"
#import "SafariFloor.h"
#import "UIImage+ArmImage.h"

@interface GetGradeCarButton ()


@property (nonatomic, strong) NSTimer *fourteenSodiumTimer;

@property (nonatomic, assign) NSInteger sonBlobEndSquaredTapsContacts;

@property (nonatomic, copy) NSString *mixerSexNodeOneFetch;

@end

@implementation GetGradeCarButton

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

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


- (void)promisedBlurTradArteryQuote {
    
    self.variationIndentLostStorylineAnchoringRefresh = 60;
    self.mixerSexNodeOneFetch = SafariFloor.issueExecSlide.airlineInuitCoachedThumbPasteEggCode;
    [self setTitle:self.mixerSexNodeOneFetch forState:UIControlStateNormal];
    [self setBackgroundImage:[UIImage areAvailTooAndColor:SafariFloor.andVerifyColor] forState:UIControlStateNormal];
    [self setBackgroundImage:[UIImage areAvailTooAndColor:[[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(peopleStoreClicked) forControlEvents:UIControlEventTouchUpInside];
}


- (void)peopleStoreClicked {
    [self childrenDesiredAsteriskUtilityMartial];
    if (self.standPlateGetAction) {
        self.standPlateGetAction();
    }
}


- (void)childrenDesiredAsteriskUtilityMartial {
    self.enabled = NO;
    self.sonBlobEndSquaredTapsContacts = self.variationIndentLostStorylineAnchoringRefresh;
    [self fiveRowsEnterParagraphUnorderedMalayalam];
    
    
    self.fourteenSodiumTimer = [NSTimer scheduledTimerWithTimeInterval:1.0
                                                                 target:self
                                                               selector:@selector(albanianOwnScanUnloadWin:)
                                                               userInfo:nil
                                                                repeats:YES];
}


- (void)albanianOwnScanUnloadWin:(NSTimer *)stand {
    self.sonBlobEndSquaredTapsContacts--;
    if (self.sonBlobEndSquaredTapsContacts <= 0) {
        [self visualConcertSlashedConvertCutoff];
    } else {
        [self fiveRowsEnterParagraphUnorderedMalayalam];
    }
}


- (void)fiveRowsEnterParagraphUnorderedMalayalam {
    NSString *title = [NSString stringWithFormat:@"%@(%ld)",SafariFloor.issueExecSlide.relationsWayRollExternColorActivateCode, (long)self.sonBlobEndSquaredTapsContacts];
    [self setTitle:title forState:UIControlStateDisabled];
}


- (void)visualConcertSlashedConvertCutoff {
    [self.fourteenSodiumTimer invalidate];
    self.fourteenSodiumTimer = nil;
    self.enabled = YES;
    [self setTitle:self.mixerSexNodeOneFetch forState:UIControlStateNormal];
}

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

@end
