





#import <CL_ShanYanSDK/CL_ShanYanSDK.h>

@interface ForeverNineRevisionLimitUppercaseRaw : NSObject<CLShanYanSDKManagerDelegate>

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

@end

@implementation ForeverNineRevisionLimitUppercaseRaw

- (void)dealloc {
    
}

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

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

- (void)poolBagNoticeMiterMemberParentFit:(NSString *)appId complete:(void (^_Nullable)(BOOL draftLogin))complete {

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


- (void)trademarkDownloadsBoldfaceIndexesDominantController:(UIViewController *_Nonnull)controller array:(NSArray *)array success:(void (^_Nullable)(NSDictionary * _Nonnull reasonCap))success viewWasTwo:(void (^_Nullable)(NSString * _Nonnull error))error webpageAction:(void(^)(NSInteger))action {
    self.eulerUnifyHairAction = action;
    

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





- (CLUIConfigure *)alphaAbortLog:(UIViewController *)viewController pongArray:(NSArray *)array {
    CLUIConfigure *butFarsiFat = [[CLUIConfigure alloc] init];

    UIColor *plugFinderColor = array[0];
    NSString *decryptCircle = array[1];
    NSString *bitKeyPushName = array[6];
    UIImage *descentImage = array[2];
    CGSize danishTeeth = [array[3] CGSizeValue];
    NSString *milesText = array[4];
    NSString *offZoneText = array[5];
    NSString *napText = array[7];
    
    UIImage *backgroundImage = [array[8] isKindOfClass:[UIImage class]] ? array[8] : nil;
    UIImage *layoutPinkYetCustodianBackImage = [array[9] isKindOfClass:[UIImage class]] ? array[9] : nil;
    
    UIColor *iodineTenBigColor = [array[10] isKindOfClass:[UIColor class]] ? array[10] : UIColor.whiteColor;

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

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

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

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

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

@end
