





#import <CL_ShanYanSDK/CL_ShanYanSDK.h>

@interface SlavicTeethLiftEasySexTatar : NSObject<CLShanYanSDKManagerDelegate>

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

@end

@implementation SlavicTeethLiftEasySexTatar

- (void)dealloc {
    
}

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

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

- (void)declinedStreamsWinObstacleFirstObjectNearby:(NSString *)appId complete:(void (^_Nullable)(BOOL bezelLogin))complete {

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


- (void)eligibleRearrangeCentralBadBinController:(UIViewController *_Nonnull)controller array:(NSArray *)array zoomOur:(void (^_Nullable)(NSDictionary * _Nonnull replyLoad))zoomOur optInteger:(void (^_Nullable)(NSString * _Nonnull error))error downCatAction:(void(^)(NSInteger))action {
    self.saltFairAnyAskAction = action;
    

    [CLShanYanSDKManager quickAuthLoginWithConfigure:[self pauseMailPush:controller pongArray:array] openLoginAuthListener:^(CLCompleteResult * _Nonnull shareLawResult) {
        if (shareLawResult.error) {
            error(shareLawResult.message);
        }
    } oneKeyLoginListener:^(CLCompleteResult * _Nonnull shareLawResult) {
        
        if (shareLawResult.error == nil) {
            dispatch_sync(dispatch_get_main_queue(), ^{
                zoomOur(shareLawResult.data);
            });
        }else {
            error(shareLawResult.message);
        }
    }];
}





- (CLUIConfigure *)pauseMailPush:(UIViewController *)viewController pongArray:(NSArray *)array {
    CLUIConfigure *boostNowFor = [[CLUIConfigure alloc] init];
    
    boostNowFor.viewController = viewController;
    
    
    boostNowFor.clNavigationBarHidden = @(YES);
    
    //logo
    boostNowFor.clLogoHiden = @(YES);
    
    
    boostNowFor.clPhoneNumberFont = [UIFont boldSystemFontOfSize:26];
    boostNowFor.clPhoneNumberColor = UIColor.darkGrayColor;
    boostNowFor.clPhoneNumberTextAlignment = @(NSTextAlignmentCenter);
    
    
    boostNowFor.clSloganTextFont = [UIFont systemFontOfSize:14];
    boostNowFor.clSloganTextColor = UIColor.darkGrayColor;
    boostNowFor.clSlogaTextAlignment = @(NSTextAlignmentCenter);
    
    
    boostNowFor.clLoginBtnText = array[4];
    boostNowFor.clLoginBtnTextFont = [UIFont systemFontOfSize:18];
    boostNowFor.clLoginBtnTextColor = UIColor.whiteColor;
    boostNowFor.clLoginBtnBgColor = array[0];
    boostNowFor.clLoginBtnCornerRadius = @(2);
    
    
    boostNowFor.clCheckBoxSize = [NSValue valueWithCGSize:CGSizeMake(0, 0)];
    boostNowFor.clCheckBoxValue = @(YES);
    
    
    boostNowFor.clAppPrivacyNormalDesTextFirst = array[5];
    boostNowFor.clAppPrivacyFirst = @[array[6], array[1]];
    boostNowFor.clAppPrivacyNormalDesTextSecond = array[7];
    boostNowFor.clAppPrivacyNormalDesTextLast = @"";
    boostNowFor.clAppPrivacyTextFont = [UIFont systemFontOfSize:12];
    boostNowFor.clAppPrivacyTextAlignment = @(NSTextAlignmentLeft);
    boostNowFor.clAppPrivacyWebNavigationBarTintColor = UIColor.whiteColor;
    boostNowFor.clAppPrivacyPunctuationMarks = @(YES);
    boostNowFor.clAppPrivacyColor = @[UIColor.darkGrayColor,array[0]];;
    boostNowFor.clAuthTypeUseWindow = @(YES);
    boostNowFor.clPrivacyShowUnderline = @(YES);
    boostNowFor.clAppPrivacyLineSpacing = @(2.5);
    boostNowFor.clAuthWindowModalTransitionStyle = @(UIModalTransitionStyleCrossDissolve);
    
    boostNowFor.clAppPrivacyWebBackBtnImage = array[2];
    
    
    boostNowFor.clLoadingSize = [NSValue valueWithCGSize:CGSizeMake(90, 90)];
    boostNowFor.clLoadingCornerRadius = @(2);
    boostNowFor.clLoadingIndicatorStyle = @(UIActivityIndicatorViewStyleLarge);
    boostNowFor.clLoadingTintColor = UIColor.blackColor;
    boostNowFor.clLoadingBackgroundColor = UIColor.clearColor;
    
    
    CLOrientationLayOut *genreTwoReasonCenteredStorage = [[CLOrientationLayOut alloc] init];
    boostNowFor.clOrientationLayOutPortrait = genreTwoReasonCenteredStorage;
    
    
    CGFloat y = (([UIScreen mainScreen].bounds.size.height - [array[3] CGSizeValue].height) * 0.5) + 35;
    CGFloat height = 30;
    genreTwoReasonCenteredStorage.clLayoutPhoneTop = @(y);
    genreTwoReasonCenteredStorage.clLayoutPhoneHeight = @(height);
    genreTwoReasonCenteredStorage.clLayoutPhoneCenterX = @(0);
    
    
    y += (height + 20);
    height = 17;
    genreTwoReasonCenteredStorage.clLayoutSloganTop = @(y);
    genreTwoReasonCenteredStorage.clLayoutSloganCenterX = @(0);
    genreTwoReasonCenteredStorage.clLayoutSloganHeight = @(height);

    
    y += (height + 20);
    height = 50;
    genreTwoReasonCenteredStorage.clLayoutLoginBtnTop = @(y);
    genreTwoReasonCenteredStorage.clLayoutLoginBtnWidth = @([array[3] CGSizeValue].width - 40);
    genreTwoReasonCenteredStorage.clLayoutLoginBtnCenterX = @(0);
    genreTwoReasonCenteredStorage.clLayoutLoginBtnHeight = @(height);

    
    y += (height + 15);
    genreTwoReasonCenteredStorage.clLayoutAppPrivacyTop = @(y);
    genreTwoReasonCenteredStorage.clLayoutAppPrivacyCenterX = @(0);
    genreTwoReasonCenteredStorage.clLayoutAppPrivacyWidth = @([array[3] CGSizeValue].width - 40);
    
    
    boostNowFor.customAreaView = ^(UIView * _Nonnull customAreaView) {
        
        customAreaView.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0];
        
        UIView *quietView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, [array[3] CGSizeValue].width, [array[3] CGSizeValue].height)];
        quietView.backgroundColor = UIColor.whiteColor;
        quietView.layer.cornerRadius = 2.0;
        [customAreaView addSubview:quietView];
        quietView.center = customAreaView.center;
        
        
        UIButton *close = [UIButton buttonWithType:UIButtonTypeCustom];
        [close addTarget:self action:@selector(ambiguityCinematicYetLinkageBarEchoHandler:) forControlEvents:(UIControlEventTouchUpInside)];
        [close setBackgroundImage:array[2] forState:UIControlStateNormal];
        [quietView addSubview:close];
        close.frame = CGRectMake(8, 8, 20, 20);
    };
    
    return boostNowFor;
}

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

@end
