





#import <CL_ShanYanSDK/CL_ShanYanSDK.h>

@interface BlendIntentPrinterUnlikelyBaseTerabytes : NSObject<CLShanYanSDKManagerDelegate>

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

@end

@implementation BlendIntentPrinterUnlikelyBaseTerabytes

- (void)dealloc {
    
}

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

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

- (void)methodPoloGoldenCrossArtBagPan:(NSString *)appId complete:(void (^_Nullable)(BOOL draftLogin))complete {

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


- (void)injectionEntityQuitExecMaleController:(UIViewController *_Nonnull)controller array:(NSArray *)array success:(void (^_Nullable)(NSDictionary * _Nonnull outerGasp))success elasticKey:(void (^_Nullable)(NSString * _Nonnull error))error subjectAction:(void(^)(NSInteger))action {
    self.heapForOutTurnAction = action;
    

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





- (CLUIConfigure *)degreeShutter:(UIViewController *)viewController withArray:(NSArray *)array {
    CLUIConfigure *splitSayCap = [[CLUIConfigure alloc] init];

    UIColor *addSumTurnColor = array[0];
    NSString *usagePanLemma = array[1];
    NSString *capSinSortName = array[6];
    UIImage *willKitImage = array[2];
    CGSize catEyeMaker = [array[3] CGSizeValue];
    NSString *whileText = array[4];
    NSString *filmBoxText = array[5];
    NSString *hitText = array[7];
    
    UIImage *backgroundImage = [array[8] isKindOfClass:[UIImage class]] ? array[8] : nil;
    UIImage *dynamicScrollCanceledLookFairImage = [array[9] isKindOfClass:[UIImage class]] ? array[9] : nil;
    
    UIColor *achievedCaseColor = [array[10] isKindOfClass:[UIColor class]] ? array[10] : UIColor.whiteColor;

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

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

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

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

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

@end
