






#import "WaySexYahooSubButton.h"
#import "CupDenyLeap.h"
#import "UIImage+WayImage.h"
#import "ChamberBypassController.h"
#import "UIImage+WayImage.h"
#import "UIColor+TapColor.h"

@implementation WaySexYahooSubButton

- (instancetype)initFairLookRawViewController:(UIViewController *)viewController {
    self = [super init];
    if (self) {
        self.highNineteenViewController = viewController;
        [self softnessCounterMalteseAppendedDither];
    }
    return self;
}


- (void)softnessCounterMalteseAppendedDither {
    
    NSArray *smallSpecifyEmailPopoverShutdown = [AdjustsCostMaleMalayalamAnnotated coalescedStoneOperatingFailFact:[StepTorque class]];
    
    
    NSString *greenCaseRaiseCode = [[NSLocale currentLocale] objectForKey:NSLocaleCountryCode];
    
    __block StepTorque *teethColorHail = nil;
    [smallSpecifyEmailPopoverShutdown enumerateObjectsUsingBlock:^(StepTorque *country, NSUInteger idx, BOOL *stop) {
        if ([country.waitingStampCode caseInsensitiveCompare:greenCaseRaiseCode] == NSOrderedSame) {
            teethColorHail = country;
            *stop = YES; 
        }
    }];
    self.eulerJabberJobKeepPan = teethColorHail;
    
    
    NSString *title = [NSString stringWithFormat:@"%@%@",CupDenyLeap.rarePutOther.theJobKinSnap, teethColorHail.anyBasqueCode];
    [self setTitle:title forState:UIControlStateNormal];
    
    
    UIImage *jouleCapImage = [UIImage messagingPictureEggRuleDetachName:CupDenyLeap.rarePutOther.wrappingChannelFlattenThermalPartNickname];
    
    
    CGSize rateLongestSize = CGSizeMake(13, 13); 
    
    
    UIImage *invokeImage = [self formatsNothingImage:jouleCapImage adobeTrySize:rateLongestSize];
    
    
    UIImage *templateImage = [invokeImage imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
    [self setImage:templateImage forState:UIControlStateNormal];
    [self setImage:templateImage forState:UIControlStateHighlighted];
    
    self.tintColor = UIColor.darkGrayColor;
    
    
    self.imageView.contentMode = UIViewContentModeScaleAspectFit;
    
    
    self.semanticContentAttribute = UISemanticContentAttributeForceRightToLeft; 
    CGFloat spacing = 3.0; 
    self.imageEdgeInsets = UIEdgeInsetsMake(0, spacing, 0, -spacing);  
    self.titleEdgeInsets = UIEdgeInsetsMake(0, -spacing, 0, spacing);   
    
    
    [self setBackgroundColor:UIColor.clearColor];
    [self setTitleColor:UIColor.darkGrayColor forState:UIControlStateNormal];
    [self setTitleColor:UIColor.lightGrayColor forState:UIControlStateHighlighted];
    self.titleLabel.font = [UIFont systemFontOfSize:16];

    
    self.contentEdgeInsets = UIEdgeInsetsMake(8, 12, 8, 12); 
    
    
    [self sizeToFit];
    
    
    [self addTarget:self action:@selector(accountsNowClicked) forControlEvents:UIControlEventTouchUpInside];
}


- (UIImage *)formatsNothingImage:(UIImage *)image adobeTrySize:(CGSize)targetSize {
    
    UIGraphicsBeginImageContextWithOptions(targetSize, NO, 0.0);
    
    
    CGFloat surfaceRed = targetSize.width / image.size.width;
    CGFloat cutMathHour = targetSize.height / image.size.height;
    CGFloat scaleFactor = MIN(surfaceRed, cutMathHour);
    
    
    CGRect sampleRect = CGRectMake(0, 0,
                                  image.size.width * scaleFactor,
                                  image.size.height * scaleFactor);
    
    
    CGPoint origin = CGPointMake((targetSize.width - sampleRect.size.width) / 2.0,
                               (targetSize.height - sampleRect.size.height) / 2.0);
    [image drawInRect:CGRectMake(origin.x, origin.y,
                                sampleRect.size.width,
                                sampleRect.size.height)];
    
    UIImage *didImage = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    
    return didImage;
}


- (void)accountsNowClicked {
    CompileSolvePivotStreamsJustHisViewController *pub = [CompileSolvePivotStreamsJustHisViewController new];
    pub.stoneGramDelegate = self;
    [self.highNineteenViewController.navigationController pushViewController:pub animated:NO];
}

- (void)activateRequestedBeatOrderingProxyDeriveLeaveFirmware:(StepTorque *)country {
    NSString *title = [NSString stringWithFormat:@"%@%@",CupDenyLeap.rarePutOther.theJobKinSnap, country.anyBasqueCode];
    [self setTitle:title forState:UIControlStateNormal];
    self.eulerJabberJobKeepPan = country;
}

- (void)dealloc {
    
}
@end
