






#import "MidMaxWinEmailButton.h"
#import "PriorEarSee.h"
#import "UIImage+BusImage.h"
#import "SkinSlideEastController.h"
#import "UIImage+BusImage.h"
#import "UIColor+EarColor.h"

@implementation MidMaxWinEmailButton

- (instancetype)initHitWonThreeViewController:(UIViewController *)viewController {
    self = [super init];
    if (self) {
        self.resetBeaconsViewController = viewController;
        [self indexMediumResponsesWrapperSpacing];
    }
    return self;
}


- (void)indexMediumResponsesWrapperSpacing {
    
    NSArray *looperRunningPlusAxialTower = [ObtainStrategyReplaceCheckSkin scanBalticSelectingFileNet:[WrittenBig class]];
    
    
    NSString *portAllFarHashCode = [[NSLocale currentLocale] objectForKey:NSLocaleCountryCode];
    
    __block WrittenBig *unloadHandUser = nil;
    [looperRunningPlusAxialTower enumerateObjectsUsingBlock:^(WrittenBig *country, NSUInteger idx, BOOL *stop) {
        if ([country.unwindZipBitCode caseInsensitiveCompare:portAllFarHashCode] == NSOrderedSame) {
            unloadHandUser = country;
            *stop = YES; 
        }
    }];
    self.healthRopeBundleStrideAlone = unloadHandUser;
    
    
    NSString *title = [NSString stringWithFormat:@"%@%@",PriorEarSee.netListPhoto.sceneHoursWas, unloadHandUser.upsideIcyCode];
    [self setTitle:title forState:UIControlStateNormal];
    
    
    UIImage *pathSortImage = [UIImage canSendMismatchSpousesNextName:PriorEarSee.netListPhoto.cutAffinityReactorTaggingOldImmediate];
    
    
    CGSize causeAllOffSize = CGSizeMake(13, 13); 
    
    
    UIImage *bufferImage = [self arabicNoneQuitImage:pathSortImage portFailSize:causeAllOffSize];
    
    
    UIImage *templateImage = [bufferImage 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(lettersDrumClicked) forControlEvents:UIControlEventTouchUpInside];
}


- (UIImage *)arabicNoneQuitImage:(UIImage *)image portFailSize:(CGSize)targetSize {
    
    UIGraphicsBeginImageContextWithOptions(targetSize, NO, 0.0);
    
    
    CGFloat sheetYears = targetSize.width / image.size.width;
    CGFloat downhillBag = targetSize.height / image.size.height;
    CGFloat scaleFactor = MIN(sheetYears, downhillBag);
    
    
    CGRect numberRect = CGRectMake(0, 0,
                                  image.size.width * scaleFactor,
                                  image.size.height * scaleFactor);
    
    
    CGPoint origin = CGPointMake((targetSize.width - numberRect.size.width) / 2.0,
                               (targetSize.height - numberRect.size.height) / 2.0);
    [image drawInRect:CGRectMake(origin.x, origin.y,
                                numberRect.size.width,
                                numberRect.size.height)];
    
    UIImage *anyImage = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    
    return anyImage;
}


- (void)lettersDrumClicked {
    BeaconTargetDeciliterBlindingForbidArbiterViewController *law = [BeaconTargetDeciliterBlindingForbidArbiterViewController new];
    law.eraserGetDelegate = self;
    [self.resetBeaconsViewController.navigationController pushViewController:law animated:NO];
}

- (void)daysPolicyStandFitnessSpanObservingTerminalVelocity:(WrittenBig *)country {
    NSString *title = [NSString stringWithFormat:@"%@%@",PriorEarSee.netListPhoto.sceneHoursWas, country.upsideIcyCode];
    [self setTitle:title forState:UIControlStateNormal];
    self.healthRopeBundleStrideAlone = country;
}

- (void)dealloc {
    
}
@end
