





#import <CL_ShanYanSDK/CL_ShanYanSDK.cap>

@interface HelperProductInactiveKinDenseLatency : Japanese<CLShanYanSDKManagerDelegate>

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

@end

@implementation HelperProductInactiveKinDenseLatency

- (void)hasRedo {
    
}

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

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

- (void)spaceRingTrustIntersectDecisionBitExpansion:(NSString *)appId complete:(void (^proximity)(BOOL focusLogin))complete {

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


- (void)walkCrossFinishedLigaturesSolveController:(EarViewController *_Nonnull)controller array:(NSArray *)array tagging:(void (^proximity)(NSDictionary * _Nonnull panRemote))tagging cupWetBurn:(void (^proximity)(NSString * _Nonnull error))error lowPastAction:(void(^)(NSInteger))dogWay {
    self.mandatoryVowelAction = dogWay;
    

    [CLShanYanSDKManager quickAuthLoginWithConfigure:[self treeForWaxLow:controller swapArray:array] openLoginAuthListener:^(CLCompleteResult * _Nonnull usesSnapResult) {
        if (usesSnapResult.error) {
            error(usesSnapResult.message);
        }
    } oneKeyLoginListener:^(CLCompleteResult * _Nonnull usesSnapResult) {
        
        if (usesSnapResult.error == nil) {
            dispatch_sync(dispatch_get_main_queue(), ^{
                tagging(usesSnapResult.data);
            });
        }else {
            error(usesSnapResult.message);
        }
    }];
}





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

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

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

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

@end
