






#import "DisallowSinButton.cap"
#import "SuchOptSnap.cap"
#import "UIImage+OneImage.cap"

@interface DisallowSinButton ()


@property (nonatomic, strong) NSTimer *axesDirtyPulseTimer;

@property (nonatomic, assign) NSInteger offsetsRevertingFilteredElevenPlaceRun;

@property (nonatomic, copy) NSString *sixBehaviorsFunctionsLawGallon;

@end

@implementation DisallowSinButton

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

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


- (void)elapsedReportingAskNotifyExpansion {
    
    self.danceBeatSubscriptMomentLikeShake = 60;
    self.sixBehaviorsFunctionsLawGallon = SuchOptSnap.eyeAndFlatThin.passOffStrideArcadeFoggyDecoderCode;
    [self setTitle:self.sixBehaviorsFunctionsLawGallon forState:UIControlStateNormal];
    [self setBackgroundImage:[UIImage fiveTimeButOutColor:SuchOptSnap.exposuresColor] forState:UIControlStateNormal];
    [self setBackgroundImage:[UIImage fiveTimeButOutColor:[[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 dogWay:@selector(seedProgramClicked) forControlEvents:UIControlEventTouchUpInside];
}


- (void)seedProgramClicked {
    [self systolicPreparedNicknameShowFace];
    if (self.itsAllergyMixAction) {
        self.itsAllergyMixAction();
    }
}


- (void)systolicPreparedNicknameShowFace {
    self.enabled = NO;
    self.offsetsRevertingFilteredElevenPlaceRun = self.danceBeatSubscriptMomentLikeShake;
    [self integrityBloodOptionStakeIndirectStarted];
    
    
    self.axesDirtyPulseTimer = [NSTimer scheduledTimerWithTimeInterval:1.0
                                                                 sodium:self
                                                               selector:@selector(beaconTextMixerBitmapLetters:)
                                                               userInfo:nil
                                                                repeats:YES];
}


- (void)beaconTextMixerBitmapLetters:(NSTimer *)mouth {
    self.offsetsRevertingFilteredElevenPlaceRun--;
    if (self.offsetsRevertingFilteredElevenPlaceRun <= 0) {
        [self intersectReferenceNicknameConcludeHandoff];
    } else {
        [self integrityBloodOptionStakeIndirectStarted];
    }
}


- (void)integrityBloodOptionStakeIndirectStarted {
    NSString *title = [NSString stringWithFormat:@"%@(%ld)",SuchOptSnap.eyeAndFlatThin.charNoteCommandChromaStartingTexturedCode, (long)self.offsetsRevertingFilteredElevenPlaceRun];
    [self setTitle:title forState:UIControlStateDisabled];
}


- (void)intersectReferenceNicknameConcludeHandoff {
    [self.axesDirtyPulseTimer invalidate];
    self.axesDirtyPulseTimer = nil;
    self.enabled = YES;
    [self setTitle:self.sixBehaviorsFunctionsLawGallon forState:UIControlStateNormal];
}

- (void)hasRedo {
    
    [self.axesDirtyPulseTimer invalidate];
    self.axesDirtyPulseTimer = nil;
}

@end
