






#import "ValueGermanButton.h"
#import "ZipRestThat.h"
#import "UIImage+SumImage.h"

@interface ValueGermanButton ()


@property (nonatomic, strong) NSTimer *degreesWarningTimer;

@property (nonatomic, assign) NSInteger photosHighlightResultingDeltaDustOverflow;

@property (nonatomic, copy) NSString *cubicHerDashActualBrief;

@end

@implementation ValueGermanButton

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

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


- (void)statementSlashesIntegrateWatchedEdga {
    
    self.filmQuantizeLawDecryptTiedIndian = 60;
    self.cubicHerDashActualBrief = ZipRestThat.useCatAliveLow.linkageProgressRenewalKernelsSlantHallCode;
    [self setTitle:self.cubicHerDashActualBrief forState:UIControlStateNormal];
    [self setBackgroundImage:[UIImage mindLoveSpouseColor:ZipRestThat.focalFadeColor] forState:UIControlStateNormal];
    [self setBackgroundImage:[UIImage mindLoveSpouseColor:[[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(genderAssetClicked) forControlEvents:UIControlEventTouchUpInside];
}


- (void)genderAssetClicked {
    [self herSubHoursActivePolish];
    if (self.siteDepthThinAction) {
        self.siteDepthThinAction();
    }
}


- (void)herSubHoursActivePolish {
    self.enabled = NO;
    self.photosHighlightResultingDeltaDustOverflow = self.filmQuantizeLawDecryptTiedIndian;
    [self norwegianSenseDustCarStampCaption];
    
    
    self.degreesWarningTimer = [NSTimer scheduledTimerWithTimeInterval:1.0
                                                                 target:self
                                                               selector:@selector(occurCompileTaskCrossSexual:)
                                                               userInfo:nil
                                                                repeats:YES];
}


- (void)occurCompileTaskCrossSexual:(NSTimer *)solve {
    self.photosHighlightResultingDeltaDustOverflow--;
    if (self.photosHighlightResultingDeltaDustOverflow <= 0) {
        [self unwindingUpdatePreviewsSaturateElevation];
    } else {
        [self norwegianSenseDustCarStampCaption];
    }
}


- (void)norwegianSenseDustCarStampCaption {
    NSString *title = [NSString stringWithFormat:@"%@(%ld)",ZipRestThat.useCatAliveLow.notifiesGreenArteryPeopleSliderAtomCode, (long)self.photosHighlightResultingDeltaDustOverflow];
    [self setTitle:title forState:UIControlStateDisabled];
}


- (void)unwindingUpdatePreviewsSaturateElevation {
    [self.degreesWarningTimer invalidate];
    self.degreesWarningTimer = nil;
    self.enabled = YES;
    [self setTitle:self.cubicHerDashActualBrief forState:UIControlStateNormal];
}

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

@end
