






#import "LeakyDashSevenButton.h"
#import "MaskTheGray.h"
#import "UIImage+BedImage.h"
#import "SockLoadStillController.h"
#import "UIImage+BedImage.h"
#import "UIColor+TooColor.h"

@implementation LeakyDashSevenButton

- (instancetype)initOldNetRelayViewController:(UIViewController *)viewController {
    self = [super init];
    if (self) {
        self.returnedClipViewController = viewController;
        [self replaceUnionToneRequireHundreds];
    }
    return self;
}


- (void)replaceUnionToneRequireHundreds {
    
    NSArray *highlightTimeRebuildFailTab = [BloodSigningUploadingRingUnplugged majorPopStrokedCloudFemale:[GaspFunFit class]];
    
    
    NSString *triangleGoldenCode = [[NSLocale currentLocale] objectForKey:NSLocaleCountryCode];
    
    __block GaspFunFit *allSinkLiveFat = nil;
    [highlightTimeRebuildFailTab enumerateObjectsUsingBlock:^(GaspFunFit *country, NSUInteger idx, BOOL *stop) {
        if ([country.fixEmptyFeatCode caseInsensitiveCompare:triangleGoldenCode] == NSOrderedSame) {
            allSinkLiveFat = country;
            *stop = YES; 
        }
    }];
    self.gigabitsMixRowAirMoire = allSinkLiveFat;
    
    
    NSString *title = [NSString stringWithFormat:@"%@%@",MaskTheGray.andRomanPath.caseLoopsHave, allSinkLiveFat.tipExpertCode];
    [self setTitle:title forState:UIControlStateNormal];
    
    
    UIImage *legalTooImage = [UIImage momentGetMolarPerformerFaceName:MaskTheGray.andRomanPath.busGaelicWeightAnyIcyTrack];
    
    
    CGSize catFaxOceanSize = CGSizeMake(13, 13); 
    
    
    UIImage *factorImage = [self forNetNeverRowImage:legalTooImage torchRawSize:catFaxOceanSize];
    
    
    UIImage *templateImage = [factorImage 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(sawDogCloseClicked) forControlEvents:UIControlEventTouchUpInside];
}


- (UIImage *)forNetNeverRowImage:(UIImage *)image torchRawSize:(CGSize)targetSize {
    
    UIGraphicsBeginImageContextWithOptions(targetSize, NO, 0.0);
    
    
    CGFloat joinFlight = targetSize.width / image.size.width;
    CGFloat lossyRemote = targetSize.height / image.size.height;
    CGFloat scaleFactor = MIN(joinFlight, lossyRemote);
    
    
    CGRect icySinRect = CGRectMake(0, 0,
                                  image.size.width * scaleFactor,
                                  image.size.height * scaleFactor);
    
    
    CGPoint origin = CGPointMake((targetSize.width - icySinRect.size.width) / 2.0,
                               (targetSize.height - icySinRect.size.height) / 2.0);
    [image drawInRect:CGRectMake(origin.x, origin.y,
                                icySinRect.size.width,
                                icySinRect.size.height)];
    
    UIImage *barImage = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    
    return barImage;
}


- (void)sawDogCloseClicked {
    MakeAsteriskRefinedTraverseHasFocusingViewController *sun = [MakeAsteriskRefinedTraverseHasFocusingViewController new];
    sun.colorTakeDelegate = self;
    [self.returnedClipViewController.navigationController pushViewController:sun animated:NO];
}

- (void)nearTrapBrowsingCursorsZipPaddleStrictlyPackage:(GaspFunFit *)country {
    NSString *title = [NSString stringWithFormat:@"%@%@",MaskTheGray.andRomanPath.caseLoopsHave, country.tipExpertCode];
    [self setTitle:title forState:UIControlStateNormal];
    self.gigabitsMixRowAirMoire = country;
}

- (void)dealloc {
    
}
@end
