






#import "WeekdayPersianButton.h"
#import "PintResting.h"
#import "UIImage+PubImage.h"
#import "SexShapeModalController.h"
#import "UIImage+PubImage.h"
#import "UIColor+ZipColor.h"

@implementation WeekdayPersianButton

- (instancetype)initEnhancedArtViewController:(UIViewController *)viewController {
    self = [super init];
    if (self) {
        self.minHexAssertViewController = viewController;
        [self ordinaryDanishPhotoAlwaysSquared];
    }
    return self;
}


- (void)ordinaryDanishPhotoAlwaysSquared {
    
    NSArray *lazyAngularImmediateExitsIll = [TextualFaxExclusionAgentMetrics extensionDoneCatalystSlantFriction:[TradLarger class]];
    
    
    NSString *faxGetKitStateCode = [[NSLocale currentLocale] objectForKey:NSLocaleCountryCode];
    
    __block TradLarger *dragRhythmTone = nil;
    [lazyAngularImmediateExitsIll enumerateObjectsUsingBlock:^(TradLarger *country, NSUInteger idx, BOOL *stop) {
        if ([country.insteadGivenCode caseInsensitiveCompare:faxGetKitStateCode] == NSOrderedSame) {
            dragRhythmTone = country;
            *stop = YES; 
        }
    }];
    self.frictionBurnNotDiscreteEqually = dragRhythmTone;
    
    
    NSString *title = [NSString stringWithFormat:@"%@%@",PintResting.findClickCat.recordedArray, dragRhythmTone.neverTiedCode];
    [self setTitle:title forState:UIControlStateNormal];
    
    
    UIImage *markCubeImage = [UIImage attributeModifyKilowattsRoomChromaName:PintResting.findClickCat.changingSearchingClimbedBypassedLatvianMeasured];
    
    
    CGSize maxSmileTapSize = CGSizeMake(13, 13); 
    
    
    UIImage *bitButImage = [self shuffleExpiredImage:markCubeImage revisionSize:maxSmileTapSize];
    
    
    UIImage *templateImage = [bitButImage 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(leadDarkFixClicked) forControlEvents:UIControlEventTouchUpInside];
}


- (UIImage *)shuffleExpiredImage:(UIImage *)image revisionSize:(CGSize)targetSize {
    
    UIGraphicsBeginImageContextWithOptions(targetSize, NO, 0.0);
    
    
    CGFloat tradEggBox = targetSize.width / image.size.width;
    CGFloat illDiskStay = targetSize.height / image.size.height;
    CGFloat scaleFactor = MIN(tradEggBox, illDiskStay);
    
    
    CGRect drivenRect = CGRectMake(0, 0,
                                  image.size.width * scaleFactor,
                                  image.size.height * scaleFactor);
    
    
    CGPoint origin = CGPointMake((targetSize.width - drivenRect.size.width) / 2.0,
                               (targetSize.height - drivenRect.size.height) / 2.0);
    [image drawInRect:CGRectMake(origin.x, origin.y,
                                drivenRect.size.width,
                                drivenRect.size.height)];
    
    UIImage *youImage = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    
    return youImage;
}


- (void)leadDarkFixClicked {
    ForeverComposeOceanKernelQueryFailureViewController *odd = [ForeverComposeOceanKernelQueryFailureViewController new];
    odd.tenPrologDelegate = self;
    [self.minHexAssertViewController.navigationController pushViewController:odd animated:NO];
}

- (void)lingerSequencesSeleniumArrowTopMediumDeviationIntro:(TradLarger *)country {
    NSString *title = [NSString stringWithFormat:@"%@%@",PintResting.findClickCat.recordedArray, country.neverTiedCode];
    [self setTitle:title forState:UIControlStateNormal];
    self.frictionBurnNotDiscreteEqually = country;
}

- (void)dealloc {
    
}
@end
