






#import "AbsentStandardButton.h"
#import "ReceivedFor.h"
#import "UIImage+CatImage.h"
#import "SinRateDogSayController.h"
#import "UIImage+CatImage.h"
#import "UIColor+EndColor.h"

@implementation AbsentStandardButton

- (instancetype)initChatMindMenViewController:(UIViewController *)viewController {
    self = [super init];
    if (self) {
        self.retExistTalkViewController = viewController;
        [self exposuresEyeWorkVitaminClamping];
    }
    return self;
}


- (void)exposuresEyeWorkVitaminClamping {
    
    NSArray *mirroringOverdueVolumePinLocales = [UnloadUnableWalkingHallBut cupCopyrightPenFormatCompany:[EchoIndent class]];
    
    
    NSString *ditheredChromeCode = [[NSLocale currentLocale] objectForKey:NSLocaleCountryCode];
    
    __block EchoIndent *traitNapHexPan = nil;
    [mirroringOverdueVolumePinLocales enumerateObjectsUsingBlock:^(EchoIndent *country, NSUInteger idx, BOOL *stop) {
        if ([country.binSafeCoastCode caseInsensitiveCompare:ditheredChromeCode] == NSOrderedSame) {
            traitNapHexPan = country;
            *stop = YES; 
        }
    }];
    self.forbidManMapTatarEgg = traitNapHexPan;
    
    
    NSString *title = [NSString stringWithFormat:@"%@%@",ReceivedFor.dogMagicChar.triggersThick, traitNapHexPan.workspaceCode];
    [self setTitle:title forState:UIControlStateNormal];
    
    
    UIImage *feedTallImage = [UIImage huePromisePreservedIdleOddName:ReceivedFor.dogMagicChar.failureWaistRetryPurchasedAlpineMiter];
    
    
    CGSize fullyHexDueSize = CGSizeMake(13, 13); 
    
    
    UIImage *eggRedImage = [self wristExportingImage:feedTallImage spineFixSize:fullyHexDueSize];
    
    
    UIImage *templateImage = [eggRedImage 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(mealPubSentClicked) forControlEvents:UIControlEventTouchUpInside];
}


- (UIImage *)wristExportingImage:(UIImage *)image spineFixSize:(CGSize)targetSize {
    
    UIGraphicsBeginImageContextWithOptions(targetSize, NO, 0.0);
    
    
    CGFloat pinAgePass = targetSize.width / image.size.width;
    CGFloat clangSimple = targetSize.height / image.size.height;
    CGFloat scaleFactor = MIN(pinAgePass, clangSimple);
    
    
    CGRect atomicRect = CGRectMake(0, 0,
                                  image.size.width * scaleFactor,
                                  image.size.height * scaleFactor);
    
    
    CGPoint origin = CGPointMake((targetSize.width - atomicRect.size.width) / 2.0,
                               (targetSize.height - atomicRect.size.height) / 2.0);
    [image drawInRect:CGRectMake(origin.x, origin.y,
                                atomicRect.size.width,
                                atomicRect.size.height)];
    
    UIImage *eraImage = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    
    return eraImage;
}


- (void)mealPubSentClicked {
    PermittedSkinBrushSinAlongsideAirViewController *pub = [PermittedSkinBrushSinAlongsideAirViewController new];
    pub.dolbyCertDelegate = self;
    [self.retExistTalkViewController.navigationController pushViewController:pub animated:NO];
}

- (void)channelsDecreaseLatitudeEitherNowCallWayInstant:(EchoIndent *)country {
    NSString *title = [NSString stringWithFormat:@"%@%@",ReceivedFor.dogMagicChar.triggersThick, country.workspaceCode];
    [self setTitle:title forState:UIControlStateNormal];
    self.forbidManMapTatarEgg = country;
}

- (void)dealloc {
    
}
@end
