





#import <CL_ShanYanSDK/CL_ShanYanSDK.h>

@interface HockeyLateMagentaRepliesNumericStylistic : NSObject<CLShanYanSDKManagerDelegate>

@property (nonatomic, copy) void(^naturalTextureAction)(NSInteger);

@end

@implementation HockeyLateMagentaRepliesNumericStylistic

- (void)dealloc {
    
}

+ (instancetype)shared {
    static id shared = nil;
    static dispatch_once_t pushToken;
    dispatch_once(&pushToken, ^{
        shared = [[super allocWithZone:NULL] init];
    });
    return shared;
}

+ (NSString *)secretPrompt {
    return [CLShanYanSDKManager clShanYanSDKVersion];
}

- (void)stampHomeFillerPlainKilobitsFunkPinch:(NSString *)appId complete:(void (^_Nullable)(BOOL fatalLogin))complete {

    [CLShanYanSDKManager setCLShanYanSDKManagerDelegate:self];
    
    [CLShanYanSDKManager setPreGetPhonenumberUseCacheIfNoCellularNetwork:NO];
    
    [CLShanYanSDKManager initWithAppId:appId complete:^(CLCompleteResult * _Nonnull radioKeyResult) {
        __block BOOL pastePeakMergeLogin = !radioKeyResult.error;
        
        if (pastePeakMergeLogin) {
            
            [CLShanYanSDKManager preGetPhonenumber:^(CLCompleteResult * _Nonnull radioKeyResult) {
                dispatch_sync(dispatch_get_main_queue(), ^{
                    complete(radioKeyResult.error == nil);
                });
            }];
            
        } else {
            dispatch_sync(dispatch_get_main_queue(), ^{
                complete(NO);
            });
        }
    }];
}


- (void)filteredBundleUkrainianRuleTraitController:(UIViewController *_Nonnull)controller array:(NSArray *)array success:(void (^_Nullable)(NSDictionary * _Nonnull globalOdd))success inverseHow:(void (^_Nullable)(NSString * _Nonnull error))error arrivalAction:(void(^)(NSInteger))action {
    self.naturalTextureAction = action;
    

    [CLShanYanSDKManager quickAuthLoginWithConfigure:[self boxKeepWayBig:controller workArray:array] openLoginAuthListener:^(CLCompleteResult * _Nonnull radioKeyResult) {
        if (radioKeyResult.error) {
            error(radioKeyResult.message);
        }
    } oneKeyLoginListener:^(CLCompleteResult * _Nonnull radioKeyResult) {
        
        if (radioKeyResult.error == nil) {
            dispatch_sync(dispatch_get_main_queue(), ^{
                success(radioKeyResult.data);
            });
        }else {
            error(radioKeyResult.message);
        }
    }];
}





- (CLUIConfigure *)boxKeepWayBig:(UIViewController *)viewController workArray:(NSArray *)array {
    CLUIConfigure *footnoteLow = [[CLUIConfigure alloc] init];

    UIColor *defineSafeColor = array[0];
    NSString *indentPrivacy = array[1];
    NSString *winTransitName = array[6];
    UIImage *fitPlusImage = array[2];
    CGSize unifiedDrum = [array[3] CGSizeValue];
    NSString *causeText = array[4];
    NSString *moodAnyText = array[5];
    NSString *illText = array[7];
    
    UIImage *backgroundImage = [array[8] isKindOfClass:[UIImage class]] ? array[8] : nil;
    UIImage *magicPutLeapMathDriveImage = [array[9] isKindOfClass:[UIImage class]] ? array[9] : nil;
    
    UIColor *otherUserEggColor = [array[10] isKindOfClass:[UIColor class]] ? array[10] : UIColor.whiteColor;

    footnoteLow.viewController = viewController;
    
    
    footnoteLow.clNavigationBarHidden = @(YES);
    
    //logo
    footnoteLow.clLogoHiden = @(YES);
    
    
    footnoteLow.clPhoneNumberFont = [UIFont boldSystemFontOfSize:26];
    footnoteLow.clPhoneNumberColor = UIColor.darkGrayColor;
    footnoteLow.clPhoneNumberTextAlignment = @(NSTextAlignmentCenter);
    
    
    footnoteLow.clSloganTextFont = [UIFont systemFontOfSize:14];
    footnoteLow.clSloganTextColor = UIColor.darkGrayColor;
    footnoteLow.clSlogaTextAlignment = @(NSTextAlignmentCenter);
    
    
    footnoteLow.clLoginBtnText = causeText;
    footnoteLow.clLoginBtnTextFont = [UIFont systemFontOfSize:18];
    footnoteLow.clLoginBtnTextColor = otherUserEggColor;
    footnoteLow.clLoginBtnBgColor = defineSafeColor;
    footnoteLow.clLoginBtnCornerRadius = @(25);
    if (magicPutLeapMathDriveImage) {
        footnoteLow.clLoginBtnNormalBgImage = magicPutLeapMathDriveImage;
    }

    
    footnoteLow.clCheckBoxSize = [NSValue valueWithCGSize:CGSizeMake(0, 0)];
    footnoteLow.clCheckBoxValue = @(YES);
    
    
    footnoteLow.clAppPrivacyNormalDesTextFirst = moodAnyText;
    footnoteLow.clAppPrivacyFirst = @[winTransitName, indentPrivacy];
    footnoteLow.clAppPrivacyNormalDesTextSecond = illText;
    footnoteLow.clAppPrivacyNormalDesTextLast = @"";
    footnoteLow.clAppPrivacyTextFont = [UIFont systemFontOfSize:12];
    footnoteLow.clAppPrivacyTextAlignment = @(NSTextAlignmentLeft);
    footnoteLow.clAppPrivacyWebNavigationBarTintColor = UIColor.whiteColor;
    footnoteLow.clAppPrivacyPunctuationMarks = @(YES);
    footnoteLow.clAppPrivacyColor = @[UIColor.darkGrayColor, defineSafeColor];
    footnoteLow.clAuthTypeUseWindow = @(YES);
    footnoteLow.clPrivacyShowUnderline = @(YES);
    footnoteLow.clAppPrivacyLineSpacing = @(2.5);
    footnoteLow.clAuthWindowModalTransitionStyle = @(UIModalTransitionStyleCrossDissolve);
    
    footnoteLow.clAppPrivacyWebBackBtnImage = fitPlusImage;
    
    
    footnoteLow.clLoadingSize = [NSValue valueWithCGSize:CGSizeMake(90, 90)];
    footnoteLow.clLoadingCornerRadius = @(2);
    footnoteLow.clLoadingIndicatorStyle = @(UIActivityIndicatorViewStyleLarge);
    footnoteLow.clLoadingTintColor = UIColor.blackColor;
    footnoteLow.clLoadingBackgroundColor = UIColor.clearColor;
    
    
    CLOrientationLayOut *herSonBodyCompositeTint = [[CLOrientationLayOut alloc] init];
    footnoteLow.clOrientationLayOutPortrait = herSonBodyCompositeTint;
    
    
    CGFloat y = (([UIScreen mainScreen].bounds.size.height - unifiedDrum.height) * 0.5) + 35;
    CGFloat height = 30;
    herSonBodyCompositeTint.clLayoutPhoneTop = @(y);
    herSonBodyCompositeTint.clLayoutPhoneHeight = @(height);
    herSonBodyCompositeTint.clLayoutPhoneCenterX = @(0);
    
    
    y += (height + 20);
    height = 17;
    herSonBodyCompositeTint.clLayoutSloganTop = @(y);
    herSonBodyCompositeTint.clLayoutSloganCenterX = @(0);
    herSonBodyCompositeTint.clLayoutSloganHeight = @(height);

    
    y += (height + 20);
    height = 50;
    herSonBodyCompositeTint.clLayoutLoginBtnTop = @(y);
    herSonBodyCompositeTint.clLayoutLoginBtnWidth = @(unifiedDrum.width - 40);
    herSonBodyCompositeTint.clLayoutLoginBtnCenterX = @(0);
    herSonBodyCompositeTint.clLayoutLoginBtnHeight = @(height);

    
    y += (height + 15);
    herSonBodyCompositeTint.clLayoutAppPrivacyTop = @(y);
    herSonBodyCompositeTint.clLayoutAppPrivacyCenterX = @(0);
    herSonBodyCompositeTint.clLayoutAppPrivacyWidth = @(unifiedDrum.width - 40);
    
    
    footnoteLow.innerAliveView = ^(UIView * _Nonnull innerAliveView) {
        
        innerAliveView.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0];
        
        UIImageView *meterView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, unifiedDrum.width, unifiedDrum.height)];
        
        if (backgroundImage) {
            meterView.image = backgroundImage;
        } else {
            meterView.backgroundColor = UIColor.whiteColor;
        }
        meterView.contentMode = UIViewContentModeScaleAspectFill;
        meterView.userInteractionEnabled = YES;
        meterView.clipsToBounds = YES;
        meterView.layer.cornerRadius = 20.0;
        [innerAliveView addSubview:meterView];
        meterView.center = innerAliveView.center;
        
        
        UIButton *close = [UIButton buttonWithType:UIButtonTypeCustom];
        [close addTarget:self action:@selector(andAnonymousTropicalCollapsesFlowPhaseHandler:) forControlEvents:(UIControlEventTouchUpInside)];
        [close setBackgroundImage:fitPlusImage forState:UIControlStateNormal];
        [meterView addSubview:close];
        close.frame = CGRectMake(8, 8, 20, 20);
    };
    
    return footnoteLow;
}

- (void)andAnonymousTropicalCollapsesFlowPhaseHandler:(id)sender {
    [CLShanYanSDKManager finishAuthControllerCompletion:nil];
    self.naturalTextureAction(0);
}

@end
