






#import "SelectorsArrowButton.h"
#import "BadgeSunIcy.h"
#import "UIImage+MidImage.h"
#import "SayAlongElderController.h"
#import "UIImage+MidImage.h"
#import "UIColor+CupColor.h"

@implementation SelectorsArrowButton

- (instancetype)initMovieAnswerViewController:(UIViewController *)viewController {
    self = [super init];
    if (self) {
        self.rearMediaBigViewController = viewController;
        [self touchesAffiliateAnimatedAlternateRevert];
    }
    return self;
}


- (void)touchesAffiliateAnimatedAlternateRevert {
    
    NSArray *custodianExtensionAccordingArcadeVowel = [DanceDecodingIntroYouHeavy positiveStylizeMinderAxialSaturate:[CanWaxStay class]];
    
    
    NSString *rearFullFixingCode = [[NSLocale currentLocale] objectForKey:NSLocaleCountryCode];
    
    __block CanWaxStay *eastNodeScheme = nil;
    [custodianExtensionAccordingArcadeVowel enumerateObjectsUsingBlock:^(CanWaxStay *country, NSUInteger idx, BOOL *stop) {
        if ([country.smallOffPipeCode caseInsensitiveCompare:rearFullFixingCode] == NSOrderedSame) {
            eastNodeScheme = country;
            *stop = YES; 
        }
    }];
    self.manCircularAbortedShutdownObserving = eastNodeScheme;
    
    
    NSString *title = [NSString stringWithFormat:@"%@%@",BadgeSunIcy.greekBlueArt.napHowCarSkin, eastNodeScheme.slabClickCode];
    [self setTitle:title forState:UIControlStateNormal];
    
    
    UIImage *resonantImage = [UIImage indicatedClampingFoggyPrincipalBeginningName:BadgeSunIcy.greekBlueArt.bypassedFaxUserSocketPaceInvalid];
    
    
    CGSize summaryRowsSize = CGSizeMake(13, 13); 
    
    
    UIImage *twoOurImage = [self stampMixerLinkImage:resonantImage bookSoloSize:summaryRowsSize];
    
    
    UIImage *templateImage = [twoOurImage 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(runSpeakMapClicked) forControlEvents:UIControlEventTouchUpInside];
}


- (UIImage *)stampMixerLinkImage:(UIImage *)image bookSoloSize:(CGSize)targetSize {
    
    UIGraphicsBeginImageContextWithOptions(targetSize, NO, 0.0);
    
    
    CGFloat closeDutch = targetSize.width / image.size.width;
    CGFloat andSixMalay = targetSize.height / image.size.height;
    CGFloat scaleFactor = MIN(closeDutch, andSixMalay);
    
    
    CGRect tipJobRect = CGRectMake(0, 0,
                                  image.size.width * scaleFactor,
                                  image.size.height * scaleFactor);
    
    
    CGPoint origin = CGPointMake((targetSize.width - tipJobRect.size.width) / 2.0,
                               (targetSize.height - tipJobRect.size.height) / 2.0);
    [image drawInRect:CGRectMake(origin.x, origin.y,
                                tipJobRect.size.width,
                                tipJobRect.size.height)];
    
    UIImage *maxImage = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    
    return maxImage;
}


- (void)runSpeakMapClicked {
    YearZoomSmallBeginGaelicWithinViewController *its = [YearZoomSmallBeginGaelicWithinViewController new];
    its.thumbnailDelegate = self;
    [self.rearMediaBigViewController.navigationController pushViewController:its animated:NO];
}

- (void)biotinVoiceProfileAgentUnwrapSeeLimitedPortal:(CanWaxStay *)country {
    NSString *title = [NSString stringWithFormat:@"%@%@",BadgeSunIcy.greekBlueArt.napHowCarSkin, country.slabClickCode];
    [self setTitle:title forState:UIControlStateNormal];
    self.manCircularAbortedShutdownObserving = country;
}

- (void)dealloc {
    
}
@end
