






#import "OutTapPlain.h"
#import "NSString+EvictFile.h"
#import "UIImageView+WebCache.h"
#import "MinderInfo.h"
#import "UIColor+DryColor.h"
#import "UIImage+JobImage.h"
#import "Masonry.h"

#import "ArtLogWrapConfig.h"
#import "OwnSayManager.h"
#import "TalkCityBlueTodayMargins.h"


@interface XXGCapsuleButton : UIButton
@end

@implementation XXGCapsuleButton
- (void)layoutSubviews {
    [super layoutSubviews];
    self.layer.cornerRadius = CGRectGetHeight(self.bounds) / 2.0;
}
@end

static RaiseGaspGreek *_loudMeterMount = nil;
static SeekTwenty *_parentMixMay = nil;

@implementation OutTapPlain

+ (RaiseGaspGreek *)loudMeterMount {
    if (!_loudMeterMount) {
        _loudMeterMount = [TalkCityBlueTodayMargins secretEstimatedCapLayerBoxHer:[RaiseGaspGreek class]];
    }
    return _loudMeterMount;
}

+ (SeekTwenty *)parentMixMay {
    if (!_parentMixMay) {
        _parentMixMay = [TalkCityBlueTodayMargins kirghizDeveloperPointerInferiorsSchedulerAcquire:[SeekTwenty class]];
    }
    return _parentMixMay;
}

+ (NSString *)undoDropFixSideBevelName {
    return [OwnSayManager repliesDuePinProvisionEllipsis].smoothedName;
}

+ (NSString *)performsAssistiveBuiltMathSecureToken {
    return [OwnSayManager repliesDuePinProvisionEllipsis].watchSubToken;
}

+ (CGFloat)disablingFirstPortraitsArtworkGram {
    return ArtLogWrapConfig.shared.detailSinOutRestHelp.fixingDiscoverOnlyPlanarRetain.cutoffLaw?:self.parentMixMay.expiredUpdate;
}

+ (NSString *)spineMarginsRecipientGlyphEnable {
    return ArtLogWrapConfig.shared.detailSinOutRestHelp.plugSexSock.saveOutlet;
}

+ (NSString *)contactBevelLockHeadDeferringHebrew {
    return ArtLogWrapConfig.shared.detailSinOutRestHelp.fixingDiscoverOnlyPlanarRetain.unpluggedStorageExpandedFoldIntersect;
}

+ (CGFloat)sinWaxAnonymousChromaticLose {
    return ArtLogWrapConfig.shared.detailSinOutRestHelp.fixingDiscoverOnlyPlanarRetain.settlingPanCircleTelephoneKin;
}
+ (BOOL)settlingPanCircleTelephoneKin {
    return ArtLogWrapConfig.shared.detailSinOutRestHelp.fixingDiscoverOnlyPlanarRetain.settlingPanCircleTelephoneKin;
}

+ (NSString *)moleShoulderTakeWorkspaceLabeled {
    return ArtLogWrapConfig.shared.detailSinOutRestHelp.floatWonHint.tipUseEyeCoast;
}
+ (NSString *)ornamentsVelocityDesignCutoffHighest {
    return ArtLogWrapConfig.shared.detailSinOutRestHelp.floatWonHint.napSensitive;
}

+ (BOOL)editorIodinePreviousIndianLetter {
    return ArtLogWrapConfig.shared.detailSinOutRestHelp.gallonsArcadeChangingUtterancePerfusionBusSolid;
}

+ (BOOL)bankersGet {
    return ArtLogWrapConfig.shared.detailSinOutRestHelp.floatWonHint.bankersGet;
}

+ (BOOL)partnerPrecisionExternInsideApertureBack {
    return [ArtLogWrapConfig shared].partnerPrecisionExternInsideApertureBack;
}

+ (NSArray *)incomingReachedDiscoverIncomingBroken {
    NSArray *methodNoticeModuleCirclePoint = [OwnSayManager strengthPositionHundredsClampingAppleEllipsis];
    NSMutableArray *nine = [NSMutableArray arrayWithCapacity:methodNoticeModuleCirclePoint.count];
    
    for (InuitModeGoal *nap in methodNoticeModuleCirclePoint) {
        NSString *image = self.parentMixMay.areBinaryFixingIntegrateDiscoverySlice;
        switch (nap.addLemmaType) {
            case BlueWillPossibleNiacinSeven:
                image = self.parentMixMay.serializeMinuteInventoryFocalUsabilityBed;
                break;
            case RadixBrushMaxAccount:
            case SelectionSlowRegister:
                image = self.parentMixMay.areBinaryFixingIntegrateDiscoverySlice;
                break;
            case AudiencesFarSliderPromptLibraries:
                image = self.parentMixMay.artsTradIssueHurricaneSignerStrip;
                break;

case ModuleSubfamilyAreaAlphaGrowDigital:
                image = self.parentMixMay.clinicalReductionPostCarBarrierDirty;
                break;
            case SyntaxUsedKelvinBengaliFind:
                image = self.parentMixMay.availFlowRedAlternateLeftover;
                break;
            default:
                image = self.parentMixMay.serializeMinuteInventoryFocalUsabilityBed;
                break;
        }
        
        NSArray *box = @[nap.smoothedName ?: @"",image,nap.curlOrdinalQuotesDeclinedDecipherTime];
        [nine addObject:box];
    }
    
    
    NSArray *passiveTen = [nine sortedArrayUsingComparator:^NSComparisonResult(NSArray *a, NSArray *b) {
        double who = [a[2] doubleValue];
        double dog = [b[2] doubleValue];
        if (who > dog) {
            return NSOrderedAscending; 
        } else if (who < dog) {
            return NSOrderedDescending;
        }
        return NSOrderedSame;
    }];
    
    return passiveTen;
}

+ (CGSize)stampOnceAlcoholUserDryThiaminSize {
    return CGSizeMake(self.parentMixMay.spotlightKelvinCapturingAskTopWidth, self.parentMixMay.afterBadDocumentsHeightItsRectified);
}

+ (UIColor *)valueFillColor{
    return [UIColor consumesDropMovieWasEuropeanHigher:ArtLogWrapConfig.shared.detailSinOutRestHelp.pastPrinterDetachingSendIndentException.valueFillColor?:self.parentMixMay.valueFillColor];
}

+ (UIColor *)bagOuncesColor{
    return [UIColor consumesDropMovieWasEuropeanHigher:ArtLogWrapConfig.shared.detailSinOutRestHelp.pastPrinterDetachingSendIndentException.bagOuncesColor?:self.parentMixMay.bagOuncesColor];
}

+ (UIColor *)exactBigMenColor {
    NSString *hex = ArtLogWrapConfig.shared.detailSinOutRestHelp.pastPrinterDetachingSendIndentException.exactBigMenColor;
    return hex.alienKerningNowCustomItem ? [UIColor consumesDropMovieWasEuropeanHigher:hex] : UIColor.whiteColor;
}

+ (UIColor *)stoodSeeWasBlueSpaColor{
    return [UIColor consumesDropMovieWasEuropeanHigher:ArtLogWrapConfig.shared.detailSinOutRestHelp.pastPrinterDetachingSendIndentException.stoodSeeWasBlueSpaColor?:self.parentMixMay.stoodSeeWasBlueSpaColor];
}

+ (NSString *)possibleRegistryBikeKnowProducerImage{
    NSString *image = ArtLogWrapConfig.shared.detailSinOutRestHelp.pastPrinterDetachingSendIndentException.possibleRegistryBikeKnowProducerImage;
    return image.alienKerningNowCustomItem ? image : nil;
}

+ (NSString *)saturatedLocalesCapsOrdinalsSphericalImage{
    NSString *image = ArtLogWrapConfig.shared.detailSinOutRestHelp.pastPrinterDetachingSendIndentException.saturatedLocalesCapsOrdinalsSphericalImage;
    return image.alienKerningNowCustomItem ? image : nil;
}

+ (void)unlockReuseTopShelfLabelAction {
    if (ArtLogWrapConfig.shared.endRotorWasStatus != SkipPackHisKinSubscribeMin) {
        ArtLogWrapConfig.shared.endRotorWasStatus = GramSplatLockEighteenDictationPub;
    }
}

+ (UIView *)flatClangView {
    if (ArtLogWrapConfig.shared.detailSinOutRestHelp.samplingAlbumResumeYetDrawPan.alienKerningNowCustomItem) {
        UIImageView *view = [[UIImageView alloc] init];
        [view sd_setImageWithURL:[NSURL URLWithString:ArtLogWrapConfig.shared.detailSinOutRestHelp.samplingAlbumResumeYetDrawPan]];
        view.contentMode = UIViewContentModeScaleAspectFit;
        return view;
    }else {
        UILabel *label = [[UILabel alloc] init];
        label.text = [MinderInfo waxCrossName];
        label.textColor = [self bagOuncesColor];
        label.font = [UIFont systemFontOfSize:30];
        label.textAlignment = NSTextAlignmentCenter;
        return label;
    }
}

+ (UILabel *)chromePanFloatingDisorderFold:(NSString *)title {
    UILabel *label = [UILabel new];
    label.text = title;
    label.textColor = [self bagOuncesColor];
    label.font = [UIFont systemFontOfSize:13];
    return label;
}

+ (UIButton *)familyPhysicalEllipsisExtraBreak:(NSString *)title {
    UIButton *button = [[UIButton alloc] init];
    [button setTitle:title forState:UIControlStateNormal];
    [button setTitleColor:[self bagOuncesColor] forState:UIControlStateNormal];
    [button setTitleColor:UIColor.lightGrayColor forState:UIControlStateHighlighted];
    button.titleLabel.font = [UIFont systemFontOfSize:13];
    return button;
}

+ (UIButton *)busIndoorTableDrizzleAwayColor:(NSString *)title {

    XXGCapsuleButton *button = [XXGCapsuleButton buttonWithType:UIButtonTypeCustom];
    [button setTitle:title forState:UIControlStateNormal];
    [button setTitleColor:[self exactBigMenColor] forState:UIControlStateNormal];
    button.titleLabel.font = [UIFont systemFontOfSize:16];
    
    button.layer.masksToBounds = YES;

    NSString *pickHeapIdiom = [self saturatedLocalesCapsOrdinalsSphericalImage];
    if (pickHeapIdiom) {
        
        [[SDWebImageManager sharedManager] loadImageWithURL:[NSURL URLWithString:pickHeapIdiom]
                                                    options:0
                                                   progress:nil
                                                  completed:^(UIImage *image, NSData *data, NSError *error, SDImageCacheType cacheType, BOOL finished, NSURL *imageURL) {
            if (image) {
                dispatch_async(dispatch_get_main_queue(), ^{
                    [button setBackgroundImage:image forState:UIControlStateNormal];
                    [button setBackgroundImage:[UIImage decimalAdvanceColor:[[UIColor lightGrayColor] colorWithAlphaComponent:0.5f]] forState:UIControlStateHighlighted];
                });
            }
        }];
        
        [button setBackgroundImage:[UIImage decimalAdvanceColor:[self bagOuncesColor]] forState:UIControlStateNormal];
    } else {
        
        [button setBackgroundImage:[UIImage decimalAdvanceColor:[self bagOuncesColor]] forState:UIControlStateNormal];
        [button setBackgroundImage:[UIImage decimalAdvanceColor:[[UIColor lightGrayColor] colorWithAlphaComponent:0.5f]] forState:UIControlStateHighlighted];
    }

    return button;
}

+ (NSArray *)kinDueFoggyHitOldForm:(id)target action:(SEL)action {
    
    NSMutableArray *array = [[NSMutableArray alloc] init];
    
    for (ItemKeyModel *nap in ArtLogWrapConfig.shared.detailSinOutRestHelp.suchBikeUppercaseUnlimitedFoggyHelp) {
        UIView *button = [self manualIrishGuideItalicFunkEncode:nap.fatThreadsText
                                           exclusiveColor:[UIColor consumesDropMovieWasEuropeanHigher:nap.retBordersColor]
                                                kitWidget:[self gallonPressToolSentenceRope:nap]
                                           petiteVolatile:nap.gainWatch
                                                   target:target
                                                   action:action];
        [array addObject:button];
    }
    
    return array;
}

+ (NSString *)gallonPressToolSentenceRope:(ItemKeyModel *)nap {
    
    static NSDictionary<NSString *, NSString *> *map;
    static dispatch_once_t flowToken;
    dispatch_once(&flowToken, ^{
        map = @{
            
            self.parentMixMay.retHostSob    : self.parentMixMay.serializeMinuteInventoryFocalUsabilityBed,
            self.parentMixMay.startupHelp   : self.parentMixMay.artsTradIssueHurricaneSignerStrip,
            self.parentMixMay.offRunLastSaw : self.parentMixMay.areBinaryFixingIntegrateDiscoverySlice,

self.parentMixMay.bundles       : self.parentMixMay.availFlowRedAlternateLeftover,
            self.parentMixMay.maskFocusFlat : self.parentMixMay.clinicalReductionPostCarBarrierDirty,
            self.parentMixMay.scrollTaps : self.parentMixMay.serializeMinuteInventoryFocalUsabilityBed
        };
    });
    if (nap.saveOutlet.twoWonBypass) {
        
        nap.saveOutlet = map[nap.gainWatch];
    }
    return nap.saveOutlet;
}

+ (UIView *)manualIrishGuideItalicFunkEncode:(NSString *)title
                      exclusiveColor:(UIColor *)titleColor
                           kitWidget:(NSString *)image
                      petiteVolatile:(NSString *)idf
                              target:(id)target
                              action:(SEL)action {
    
    UIView *view = [[UIView alloc] init];
    view.backgroundColor = UIColor.clearColor;
    
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    button.layer.masksToBounds = YES;
    button.accessibilityIdentifier = idf;
    
    if ([self playCardSmartGroupDisk:image]) {
        [[SDWebImageManager sharedManager] loadImageWithURL:[NSURL URLWithString:image] options:0 progress:nil completed:^(UIImage * _Nullable image2, NSData * _Nullable data, NSError * _Nullable error, SDImageCacheType cacheType, BOOL finished, NSURL * _Nullable imageURL) {
            dispatch_async(dispatch_get_main_queue(), ^{
                [button setImage:image2 forState:UIControlStateNormal];
            });
        }];

    }else {
        UIImage *airImage = [[UIImage sumEstimatedHandMenstrualPanName:image] imageWithRenderingMode:(UIImageRenderingModeAlwaysTemplate)];
        button.tintColor = [self bagOuncesColor];
        [button setImage:airImage forState:UIControlStateNormal];
    }
    
    button.contentEdgeInsets = UIEdgeInsetsMake(0, 0, 0, 0);
    [[button imageView] setContentMode:UIViewContentModeScaleAspectFill];
    button.contentHorizontalAlignment= UIControlContentHorizontalAlignmentFill;
    button.contentVerticalAlignment = UIControlContentVerticalAlignmentFill;
    [button addTarget:target action:action forControlEvents:(UIControlEventTouchUpInside)];
    [view addSubview:button];
    
    UILabel *label = [OutTapPlain chromePanFloatingDisorderFold:title];
    label.textColor = titleColor;
    label.textAlignment = NSTextAlignmentCenter;
    label.font = [UIFont systemFontOfSize:12];
    label.numberOfLines = 0;
    [view addSubview:label];
    
    [button mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.equalTo(view);
        make.size.equalTo(view);
    }];
    
    [label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(view.mas_bottom).offset(8);
        make.left.right.equalTo(view);
    }];
    
    return view;
}

+ (BOOL)playCardSmartGroupDisk:(NSString *)url
{
    NSString *spell =@"[a-zA-z]+://[^\\s]*";
    NSPredicate *predicate = [NSPredicate predicateWithFormat:@"SELF MATCHES %@",spell];
    return [predicate evaluateWithObject:url];
}

+ (UITextField *)oldSmoothInstantEncodingCreateIcyCode {
    UITextField *textField = [self sumVideoAskField:self.loudMeterMount.surgeSplatLoopClampedHuePreciseCode isSecure:NO];
    textField.textContentType = UITextContentTypeOneTimeCode;
    return textField;
}

+ (UITextField *)prefixPressedNearInuitMillCarrier {
    UITextField *textField = [self sumVideoAskField:self.loudMeterMount.jobSignerAscendedKeepLocation isSecure:NO];
    textField.keyboardType = UIKeyboardTypeNumberPad;
    return textField;
}

+ (UITextField *)hintQuickColleagueOperationBridgeAccount {
    return [self sumVideoAskField:self.loudMeterMount.emptyRearJoin isSecure:NO];
}

+ (UITextField *)cursorTokenWrittenSphericalAxialPassword:(BOOL)isNew {
    UITextField *textField = [self sumVideoAskField:isNew?self.loudMeterMount.shortcutsPartlyDirectEighteenSingular:self.loudMeterMount.exitsTipLooseKey isSecure:YES];
    [self masteringKazakhFarMutableCurlDetailedHealth:textField tabSize:CGSizeMake(OutTapPlain.parentMixMay.thirteenHigh, OutTapPlain.parentMixMay.thirteenHigh)];
    UIButton * rightButton = [UIButton buttonWithType:UIButtonTypeCustom];
    UIImage *darkImage = [UIImage sumEstimatedHandMenstrualPanName:self.parentMixMay.wayOvulationWillKernelsLift];
    UIImage *dublinImage = [UIImage sumEstimatedHandMenstrualPanName:self.parentMixMay.adaptorFlashFunnelMetricPrevious];
    rightButton.frame = CGRectMake(0, 0, OutTapPlain.parentMixMay.thirteenHigh, OutTapPlain.parentMixMay.thirteenHigh);
    [rightButton setImage:darkImage forState:UIControlStateNormal];
    [rightButton setImage:dublinImage forState:UIControlStateSelected];
    CGFloat selectionFun = (OutTapPlain.parentMixMay.thirteenHigh - 24)/2;
    [rightButton setImageEdgeInsets:UIEdgeInsetsMake(selectionFun, selectionFun, selectionFun, selectionFun)];
    rightButton.contentMode = UIViewContentModeScaleAspectFit;
    [textField.rightView addSubview:rightButton];
    return textField;
}

+ (UITextField *)sumVideoAskField:(NSString *)placeholder isSecure:(BOOL)isSecure {
    UITextField *textField = [UITextField new];
    textField.secureTextEntry = isSecure;
    textField.clearButtonMode = UITextFieldViewModeWhileEditing;
    textField.autocorrectionType = UITextAutocorrectionTypeNo;
    textField.autocapitalizationType = UITextAutocapitalizationTypeNone;
    textField.font = [UIFont systemFontOfSize:15];
    textField.layer.borderColor = [self bagOuncesColor].CGColor;
    textField.layer.borderWidth = 0.6;
    textField.layer.cornerRadius = self.parentMixMay.highProducer;
    
    textField.backgroundColor = [self possibleRegistryBikeKnowProducerImage] ? UIColor.clearColor : UIColor.whiteColor;
    textField.textColor = UIColor.darkGrayColor;
    textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:placeholder attributes:@{NSForegroundColorAttributeName: [UIColor lightGrayColor]}];
    [self performedParserThickAbnormalSharingReorderUses:textField tabSize:CGSizeMake(10, OutTapPlain.parentMixMay.thirteenHigh)];
    textField.rightViewMode = UITextFieldViewModeAlways;
    return textField;
}

+ (void)performedParserThickAbnormalSharingReorderUses:(UITextField *)textField tabSize:(CGSize)size
{
    CGRect frame = {{0,0},size};
    UIView *tomorrow = [[UIView alloc] initWithFrame:frame];
    textField.leftViewMode = UITextFieldViewModeAlways;
    textField.leftView = tomorrow;
}

+ (void)masteringKazakhFarMutableCurlDetailedHealth:(UITextField *)textField tabSize:(CGSize)size
{
    CGRect frame = {{0,0},size};
    UIView *ownNegate = [[UIView alloc] initWithFrame:frame];
    textField.rightViewMode = UITextFieldViewModeAlways;
    textField.rightView = ownNegate;
}
@end
