





#import <CL_ShanYanSDK/CL_ShanYanSDK.h>

@interface ExposeHeavyMovieRecordingLiteralSundanese : NSObject<CLShanYanSDKManagerDelegate>

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

@end

@implementation ExposeHeavyMovieRecordingLiteralSundanese

- (void)dealloc {
    
}

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

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

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

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


- (void)albanianEncodingsAcrossPinElasticController:(UIViewController *_Nonnull)controller array:(NSArray *)array success:(void (^_Nullable)(NSDictionary * _Nonnull markParse))success publishAnd:(void (^_Nullable)(NSString * _Nonnull error))error slowTipAction:(void(^)(NSInteger))action {
    self.cacheHowBagOwnAction = action;
    

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





- (CLUIConfigure *)panNapTalkNet:(UIViewController *)viewController echoArray:(NSArray *)array {
    CLUIConfigure *apertureTwo = [[CLUIConfigure alloc] init];

    UIColor *spousesTenColor = array[0];
    NSString *gallonChecked = array[1];
    NSString *oddLineBitName = array[6];
    UIImage *limitedImage = array[2];
    CGSize flemishKeys = [array[3] CGSizeValue];
    NSString *buddyText = array[4];
    NSString *cutDeepText = array[5];
    NSString *tenText = array[7];
    
    UIImage *backgroundImage = [array[8] isKindOfClass:[UIImage class]] ? array[8] : nil;
    UIImage *compileTransientStorageEditorialCopticImage = [array[9] isKindOfClass:[UIImage class]] ? array[9] : nil;
    
    UIColor *forbidSayManColor = [array[10] isKindOfClass:[UIColor class]] ? array[10] : UIColor.whiteColor;

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

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

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

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

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

@end
