





#import <CL_ShanYanSDK/CL_ShanYanSDK.h>

@interface OldPartiallyStarSuitableBankRequest : NSObject<CLShanYanSDKManagerDelegate>

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

@end

@implementation OldPartiallyStarSuitableBankRequest

- (void)dealloc {
    
}

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

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

- (void)proposalWarnExclusiveInstallFourteenStoodAverage:(NSString *)appId complete:(void (^_Nullable)(BOOL delayLogin))complete {

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


- (void)whiteRunStylisticSurfaceSpeedController:(UIViewController *_Nonnull)controller array:(NSArray *)array success:(void (^_Nullable)(NSDictionary * _Nonnull funkShare))success bitsBehave:(void (^_Nullable)(NSString * _Nonnull error))error forBodyAction:(void(^)(NSInteger))action {
    self.jobMostWideEraAction = action;
    

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





- (CLUIConfigure *)resumeIndices:(UIViewController *)viewController foodArray:(NSArray *)array {
    CLUIConfigure *peakTenLast = [[CLUIConfigure alloc] init];

    UIColor *usedBiotinColor = array[0];
    NSString *notBeganElder = array[1];
    NSString *retAllergyName = array[6];
    UIImage *amharicImage = array[2];
    CGSize nextPubSafe = [array[3] CGSizeValue];
    NSString *guestText = array[4];
    NSString *clampedText = array[5];
    NSString *dueText = array[7];
    
    UIImage *backgroundImage = [array[8] isKindOfClass:[UIImage class]] ? array[8] : nil;
    UIImage *daughtersZipAboutDirectorSwapImage = [array[9] isKindOfClass:[UIImage class]] ? array[9] : nil;
    
    UIColor *eggLovePlaceColor = [array[10] isKindOfClass:[UIColor class]] ? array[10] : UIColor.whiteColor;

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

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

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

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

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

@end
