






#import "DryLowHitMovieButton.h"
#import "HexDiscrete.h"
#import "UIImage+BagImage.h"
#import "AssemblyPressController.h"
#import "UIImage+BagImage.h"
#import "UIColor+FaxColor.h"

@implementation DryLowHitMovieButton

- (instancetype)initEarAnimatorViewController:(UIViewController *)viewController {
    self = [super init];
    if (self) {
        self.watchTailBitViewController = viewController;
        [self phraseOutAppearLeadLoading];
    }
    return self;
}


- (void)phraseOutAppearLeadLoading {
    
    NSArray *databasesClosestDroppedSpotlightDecide = [ConstructBeatAffiliateSwitchGeneric anyFingerTapsCentralsAlpha:[UnitHockey class]];
    
    
    NSString *sortSameResizeCode = [[NSLocale currentLocale] objectForKey:NSLocaleCountryCode];
    
    __block UnitHockey *howSobCatEvery = nil;
    [databasesClosestDroppedSpotlightDecide enumerateObjectsUsingBlock:^(UnitHockey *country, NSUInteger idx, BOOL *stop) {
        if ([country.stateBeatPanCode caseInsensitiveCompare:sortSameResizeCode] == NSOrderedSame) {
            howSobCatEvery = country;
            *stop = YES; 
        }
    }];
    self.eggGrantingDryJapaneseStrong = howSobCatEvery;
    
    
    NSString *title = [NSString stringWithFormat:@"%@%@",HexDiscrete.shelfTenSide.areEntriesSay, howSobCatEvery.malformedCode];
    [self setTitle:title forState:UIControlStateNormal];
    
    
    UIImage *tagVisitImage = [UIImage hebrewLostLengthKeysLegacyName:HexDiscrete.shelfTenSide.oddBiotinFaxLeftFoldSegue];
    
    
    CGSize phaseCapYetSize = CGSizeMake(13, 13); 
    
    
    UIImage *copperImage = [self slowFlashPriceImage:tagVisitImage bezelPenSize:phaseCapYetSize];
    
    
    UIImage *templateImage = [copperImage 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(eldestPrimeClicked) forControlEvents:UIControlEventTouchUpInside];
}


- (UIImage *)slowFlashPriceImage:(UIImage *)image bezelPenSize:(CGSize)targetSize {
    
    UIGraphicsBeginImageContextWithOptions(targetSize, NO, 0.0);
    
    
    CGFloat focalPlate = targetSize.width / image.size.width;
    CGFloat fiveGetSeed = targetSize.height / image.size.height;
    CGFloat scaleFactor = MIN(focalPlate, fiveGetSeed);
    
    
    CGRect googleRect = CGRectMake(0, 0,
                                  image.size.width * scaleFactor,
                                  image.size.height * scaleFactor);
    
    
    CGPoint origin = CGPointMake((targetSize.width - googleRect.size.width) / 2.0,
                               (targetSize.height - googleRect.size.height) / 2.0);
    [image drawInRect:CGRectMake(origin.x, origin.y,
                                googleRect.size.width,
                                googleRect.size.height)];
    
    UIImage *useImage = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    
    return useImage;
}


- (void)eldestPrimeClicked {
    OutcomeFarsiSessionSelectedKeysIntersectViewController *hit = [OutcomeFarsiSessionSelectedKeysIntersectViewController new];
    hit.shrinkHueDelegate = self;
    [self.watchTailBitViewController.navigationController pushViewController:hit animated:NO];
}

- (void)expectingAdaptiveIcyClaimLaterCurrentlyMemorySatisfied:(UnitHockey *)country {
    NSString *title = [NSString stringWithFormat:@"%@%@",HexDiscrete.shelfTenSide.areEntriesSay, country.malformedCode];
    [self setTitle:title forState:UIControlStateNormal];
    self.eggGrantingDryJapaneseStrong = country;
}

- (void)dealloc {
    
}
@end
