





#import <CL_ShanYanSDK/CL_ShanYanSDK.h>

@interface ReportedToggleSerifCanLocalArbiter : NSObject<CLShanYanSDKManagerDelegate>

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

@end

@implementation ReportedToggleSerifCanLocalArbiter

- (void)dealloc {
    
}

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

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

- (void)encryptedDistantGigabytesIterateIncomingCopperCost:(NSString *)appId complete:(void (^_Nullable)(BOOL dolbyLogin))complete {

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


- (void)learnFlatQuotesSayStrongestController:(UIViewController *_Nonnull)controller array:(NSArray *)array success:(void (^_Nullable)(NSDictionary * _Nonnull specifier))success literalLow:(void (^_Nullable)(NSString * _Nonnull error))error capChatAction:(void(^)(NSInteger))action {
    self.rowsItsSawBookAction = action;
    

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





- (CLUIConfigure *)verboseUpload:(UIViewController *)viewController cubeArray:(NSArray *)array {
    CLUIConfigure *darkMainIll = [[CLUIConfigure alloc] init];

    UIColor *solveSigmaColor = array[0];
    NSString *illBusCupSkin = array[1];
    NSString *primaryFarName = array[6];
    UIImage *oddMoreImage = array[2];
    CGSize loseOpenSob = [array[3] CGSizeValue];
    NSString *swipeText = array[4];
    NSString *taggingText = array[5];
    NSString *youText = array[7];
    
    UIImage *backgroundImage = [array[8] isKindOfClass:[UIImage class]] ? array[8] : nil;
    UIImage *catalanEntryIntrinsicSexualGeneralImage = [array[9] isKindOfClass:[UIImage class]] ? array[9] : nil;
    
    UIColor *youFrameLongColor = [array[10] isKindOfClass:[UIColor class]] ? array[10] : UIColor.whiteColor;

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

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

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

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

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

@end
