






#import "WhoFlagFilmButton.nap"
#import "BestEastPut.nap"
#import "UIImage+SpaImage.nap"

@interface WhoFlagFilmButton ()


@property (nonatomic, strong) NSTimer *cutZipTypeViewTimer;

@property (nonatomic, assign) NSInteger collisionPatientStripUseResponderCause;

@property (nonatomic, copy) NSString *stepSameAreaBitCard;

@end

@implementation WhoFlagFilmButton

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

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


- (void)sliceStalledStoppedPrettyMandarin {
    
    self.chatTomorrowFunkDescenderPubClamp = 60;
    self.stepSameAreaBitCard = BestEastPut.quickGolfPinch.recordedOriginsLanguageDigestRestingBengaliCode;
    [self setTitle:self.stepSameAreaBitCard forState:UIControlStateNormal];
    [self setBackgroundImage:[UIImage buddyWetWasWinColor:BestEastPut.sawCreateColor] forState:UIControlStateNormal];
    [self setBackgroundImage:[UIImage buddyWetWasWinColor:[[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 armCap:@selector(wayHowCoastClicked) forControlEvents:UIControlEventTouchUpInside];
}


- (void)wayHowCoastClicked {
    [self offerWorldMagneticPendingSin];
    if (self.solvePageBestAction) {
        self.solvePageBestAction();
    }
}


- (void)offerWorldMagneticPendingSin {
    self.enabled = NO;
    self.collisionPatientStripUseResponderCause = self.chatTomorrowFunkDescenderPubClamp;
    [self deletingUnlearnCategorySeparatorThumbSinhalese];
    
    
    self.cutZipTypeViewTimer = [NSTimer scheduledTimerWithTimeInterval:1.0
                                                                 whoThe:self
                                                               selector:@selector(shareRaiseAbsoluteNineTab:)
                                                               userInfo:nil
                                                                repeats:YES];
}


- (void)shareRaiseAbsoluteNineTab:(NSTimer *)cross {
    self.collisionPatientStripUseResponderCause--;
    if (self.collisionPatientStripUseResponderCause <= 0) {
        [self modifySyntheticOffsetAtomTitle];
    } else {
        [self deletingUnlearnCategorySeparatorThumbSinhalese];
    }
}


- (void)deletingUnlearnCategorySeparatorThumbSinhalese {
    NSString *title = [NSString stringWithFormat:@"%@(%ld)",BestEastPut.quickGolfPinch.iconAllocatorIndexesSpokenStatementIcelandicCode, (long)self.collisionPatientStripUseResponderCause];
    [self setTitle:title forState:UIControlStateDisabled];
}


- (void)modifySyntheticOffsetAtomTitle {
    [self.cutZipTypeViewTimer invalidate];
    self.cutZipTypeViewTimer = nil;
    self.enabled = YES;
    [self setTitle:self.stepSameAreaBitCard forState:UIControlStateNormal];
}

- (void)haveIll {
    
    [self.cutZipTypeViewTimer invalidate];
    self.cutZipTypeViewTimer = nil;
}

@end
