






#import "EraHaveForkTenButton.h"
#import "SkinEchoMen.h"
#import "UIImage+FixImage.h"
#import "PrimeOffIssueController.h"
#import "UIImage+FixImage.h"
#import "UIColor+BusColor.h"

@implementation EraHaveForkTenButton

- (instancetype)initFaxPreserveViewController:(UIViewController *)viewController {
    self = [super init];
    if (self) {
        self.bagTabCircleViewController = viewController;
        [self ornamentIdlePurpleLongGather];
    }
    return self;
}


- (void)ornamentIdlePurpleLongGather {
    
    NSArray *elapsedWireYearDiscreteBarrier = [ExtendingBriefFocalBoundaryMiles cellAliveSeleniumVerboseSlash:[DrawFuture class]];
    
    
    NSString *zeroWrapCapCatCode = [[NSLocale currentLocale] objectForKey:NSLocaleCountryCode];
    
    __block DrawFuture *didPubGreekDog = nil;
    [elapsedWireYearDiscreteBarrier enumerateObjectsUsingBlock:^(DrawFuture *country, NSUInteger idx, BOOL *stop) {
        if ([country.scopeSentDueCode caseInsensitiveCompare:zeroWrapCapCatCode] == NSOrderedSame) {
            didPubGreekDog = country;
            *stop = YES; 
        }
    }];
    self.clearWarnSiblingsNegotiateExplicit = didPubGreekDog;
    
    
    NSString *title = [NSString stringWithFormat:@"%@%@",SkinEchoMen.pauseKirghiz.playModelKnow, didPubGreekDog.hexAuthorCode];
    [self setTitle:title forState:UIControlStateNormal];
    
    
    UIImage *sixSugarImage = [UIImage intentIcelandicGaspSwipeBarName:SkinEchoMen.pauseKirghiz.lawDitherPhraseStoodPercentPolicies];
    
    
    CGSize sixUpdatingSize = CGSizeMake(13, 13); 
    
    
    UIImage *dryHexImage = [self stepEarGrowAllImage:sixSugarImage achievedSize:sixUpdatingSize];
    
    
    UIImage *templateImage = [dryHexImage 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(sockRetHighClicked) forControlEvents:UIControlEventTouchUpInside];
}


- (UIImage *)stepEarGrowAllImage:(UIImage *)image achievedSize:(CGSize)targetSize {
    
    UIGraphicsBeginImageContextWithOptions(targetSize, NO, 0.0);
    
    
    CGFloat eightPrime = targetSize.width / image.size.width;
    CGFloat logBaseline = targetSize.height / image.size.height;
    CGFloat scaleFactor = MIN(eightPrime, logBaseline);
    
    
    CGRect endAgeRect = CGRectMake(0, 0,
                                  image.size.width * scaleFactor,
                                  image.size.height * scaleFactor);
    
    
    CGPoint origin = CGPointMake((targetSize.width - endAgeRect.size.width) / 2.0,
                               (targetSize.height - endAgeRect.size.height) / 2.0);
    [image drawInRect:CGRectMake(origin.x, origin.y,
                                endAgeRect.size.width,
                                endAgeRect.size.height)];
    
    UIImage *oldImage = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    
    return oldImage;
}


- (void)sockRetHighClicked {
    LeapCaretHitShuffleChannelFoldViewController *did = [LeapCaretHitShuffleChannelFoldViewController new];
    did.oldExternDelegate = self;
    [self.bagTabCircleViewController.navigationController pushViewController:did animated:NO];
}

- (void)pickUrgencyExpiresMidFalloffGeometricPartialFisheye:(DrawFuture *)country {
    NSString *title = [NSString stringWithFormat:@"%@%@",SkinEchoMen.pauseKirghiz.playModelKnow, country.hexAuthorCode];
    [self setTitle:title forState:UIControlStateNormal];
    self.clearWarnSiblingsNegotiateExplicit = country;
}

- (void)dealloc {
    
}
@end
