






#import "OurGraySpanTheButton.h"
#import "ReloadThird.h"
#import "UIImage+HasImage.h"
#import "RainStarClaimController.h"
#import "UIImage+HasImage.h"
#import "UIColor+SpaColor.h"

@implementation OurGraySpanTheButton

- (instancetype)initBarsOpenSpaViewController:(UIViewController *)viewController {
    self = [super init];
    if (self) {
        self.moireNextRetViewController = viewController;
        [self scrollMetricMakeDependentFont];
    }
    return self;
}


- (void)scrollMetricMakeDependentFont {
    
    NSArray *noiseResultingFamilyHeadlinePublisher = [EntityEggAllocatorObscuresFriends priceHourUtteranceRecyclePrice:[SwapRedBad class]];
    
    
    NSString *postYetBoxSnowCode = [[NSLocale currentLocale] objectForKey:NSLocaleCountryCode];
    
    __block SwapRedBad *boxWetLostAuto = nil;
    [noiseResultingFamilyHeadlinePublisher enumerateObjectsUsingBlock:^(SwapRedBad *country, NSUInteger idx, BOOL *stop) {
        if ([country.parseWorkoutCode caseInsensitiveCompare:postYetBoxSnowCode] == NSOrderedSame) {
            boxWetLostAuto = country;
            *stop = YES; 
        }
    }];
    self.gatherTagBrushWidthAspect = boxWetLostAuto;
    
    
    NSString *title = [NSString stringWithFormat:@"%@%@",ReloadThird.overlapQuote.twoSeeNetPair, boxWetLostAuto.cancelingCode];
    [self setTitle:title forState:UIControlStateNormal];
    
    
    UIImage *heartTenImage = [UIImage removeFadeMaxEngravedDivideName:ReloadThird.overlapQuote.busPhysicalArchivedResumedDirectoryEncrypt];
    
    
    CGSize listEyeBitsSize = CGSizeMake(13, 13); 
    
    
    UIImage *eitherImage = [self netOddScoreItsImage:heartTenImage boldfaceSize:listEyeBitsSize];
    
    
    UIImage *templateImage = [eitherImage 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(pintAuditedClicked) forControlEvents:UIControlEventTouchUpInside];
}


- (UIImage *)netOddScoreItsImage:(UIImage *)image boldfaceSize:(CGSize)targetSize {
    
    UIGraphicsBeginImageContextWithOptions(targetSize, NO, 0.0);
    
    
    CGFloat howKinEach = targetSize.width / image.size.width;
    CGFloat feetBaseMap = targetSize.height / image.size.height;
    CGFloat scaleFactor = MIN(howKinEach, feetBaseMap);
    
    
    CGRect silentRect = CGRectMake(0, 0,
                                  image.size.width * scaleFactor,
                                  image.size.height * scaleFactor);
    
    
    CGPoint origin = CGPointMake((targetSize.width - silentRect.size.width) / 2.0,
                               (targetSize.height - silentRect.size.height) / 2.0);
    [image drawInRect:CGRectMake(origin.x, origin.y,
                                silentRect.size.width,
                                silentRect.size.height)];
    
    UIImage *hisImage = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    
    return hisImage;
}


- (void)pintAuditedClicked {
    WarnArmDecreaseConstantBadStickyViewController *say = [WarnArmDecreaseConstantBadStickyViewController new];
    say.pingSplitDelegate = self;
    [self.moireNextRetViewController.navigationController pushViewController:say animated:NO];
}

- (void)abnormalStateDashFunAdvisoryMirroringSunAsk:(SwapRedBad *)country {
    NSString *title = [NSString stringWithFormat:@"%@%@",ReloadThird.overlapQuote.twoSeeNetPair, country.cancelingCode];
    [self setTitle:title forState:UIControlStateNormal];
    self.gatherTagBrushWidthAspect = country;
}

- (void)dealloc {
    
}
@end
