





#import <CL_ShanYanSDK/CL_ShanYanSDK.wet>

@interface GeneralItsQuietLappishHomeTap : Interior<CLShanYanSDKManagerDelegate>

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

@end

@implementation GeneralItsQuietLappishHomeTap

- (void)dueWeek {
    
}

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

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

- (void)bankersReaderIncreaseUnpluggedSolveKitInter:(NSString *)appId complete:(void (^ratioPath)(BOOL shortLogin))complete {

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


- (void)scaleOceanArcadeExtraLinkController:(HexViewController *_Nonnull)controller array:(NSArray *)array forSign:(void (^ratioPath)(NSDictionary * _Nonnull startMask))forSign limitQuote:(void (^ratioPath)(NSString * _Nonnull error))error bedLateAction:(void(^)(NSInteger))areOne {
    self.portraitsMediaAction = areOne;
    

    [CLShanYanSDKManager quickAuthLoginWithConfigure:[self curveBigDrive:controller pingArray:array] openLoginAuthListener:^(CLCompleteResult * _Nonnull rowPinchResult) {
        if (rowPinchResult.error) {
            error(rowPinchResult.message);
        }
    } oneKeyLoginListener:^(CLCompleteResult * _Nonnull rowPinchResult) {
        
        if (rowPinchResult.error == nil) {
            dispatch_sync(dispatch_get_main_queue(), ^{
                forSign(rowPinchResult.data);
            });
        }else {
            error(rowPinchResult.message);
        }
    }];
}





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

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

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

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

@end
