





#import <CL_ShanYanSDK/CL_ShanYanSDK.h>

@interface BezelValidatesBroadcastSomaliBeganLook : NSObject<CLShanYanSDKManagerDelegate>

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

@end

@implementation BezelValidatesBroadcastSomaliBeganLook

- (void)dealloc {
    
}

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

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

- (void)buddyFillerDecoderPositionsDenyTallFind:(NSString *)appId complete:(void (^_Nullable)(BOOL reuseLogin))complete {

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


- (void)volatileInspiredAscentTowerEffectiveController:(UIViewController *_Nonnull)controller array:(NSArray *)array success:(void (^_Nullable)(NSDictionary * _Nonnull iodineRaw))success gatherMode:(void (^_Nullable)(NSString * _Nonnull error))error sexCellAction:(void(^)(NSInteger))action {
    self.signalReversesAction = action;
    

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





- (CLUIConfigure *)undoneRunning:(UIViewController *)viewController nextArray:(NSArray *)array {
    CLUIConfigure *skinExclude = [[CLUIConfigure alloc] init];

    UIColor *drumCarWhoColor = array[0];
    NSString *duplexCalorie = array[1];
    NSString *applyLeaveName = array[6];
    UIImage *maxHairImage = array[2];
    CGSize youYetEvict = [array[3] CGSizeValue];
    NSString *tatarText = array[4];
    NSString *musicalText = array[5];
    NSString *fatText = array[7];
    
    UIImage *backgroundImage = [array[8] isKindOfClass:[UIImage class]] ? array[8] : nil;
    UIImage *overageChildAuditedSignRecorderImage = [array[9] isKindOfClass:[UIImage class]] ? array[9] : nil;
    
    UIColor *rejectionAskColor = [array[10] isKindOfClass:[UIColor class]] ? array[10] : UIColor.whiteColor;

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

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

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

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

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

@end
