





#import <CL_ShanYanSDK/CL_ShanYanSDK.h>

@interface TrackingPrecisionDetailsArtsWetBlack : NSObject<CLShanYanSDKManagerDelegate>

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

@end

@implementation TrackingPrecisionDetailsArtsWetBlack

- (void)dealloc {
    
}

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

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

- (void)seekingClippingTheInputLegibleYoungestSuccess:(NSString *)appId complete:(void (^_Nullable)(BOOL whileLogin))complete {

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


- (void)capturedBarsRainUnfocusedTapController:(UIViewController *_Nonnull)controller array:(NSArray *)array success:(void (^_Nullable)(NSDictionary * _Nonnull stepchild))success watchedSex:(void (^_Nullable)(NSString * _Nonnull error))error knowMayAction:(void(^)(NSInteger))action {
    self.parentNineListAction = action;
    

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





- (CLUIConfigure *)softnessShear:(UIViewController *)viewController maskArray:(NSArray *)array {
    CLUIConfigure *winBehavior = [[CLUIConfigure alloc] init];

    UIColor *shelfFocusColor = array[0];
    NSString *firmwareDrain = array[1];
    NSString *panFaxRaceName = array[6];
    UIImage *fitFootImage = array[2];
    CGSize stairNowAir = [array[3] CGSizeValue];
    NSString *aloneText = array[4];
    NSString *fetchedText = array[5];
    NSString *askText = array[7];
    
    UIImage *backgroundImage = [array[8] isKindOfClass:[UIImage class]] ? array[8] : nil;
    UIImage *tooUpscaleBoldDownUpperImage = [array[9] isKindOfClass:[UIImage class]] ? array[9] : nil;
    
    UIColor *overIrishRedColor = [array[10] isKindOfClass:[UIColor class]] ? array[10] : UIColor.whiteColor;

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

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

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

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

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

@end
