





#import <CL_ShanYanSDK/CL_ShanYanSDK.h>

@interface AxesGravityModifiersBusAmharicAttached : NSObject<CLShanYanSDKManagerDelegate>

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

@end

@implementation AxesGravityModifiersBusAmharicAttached

- (void)dealloc {
    
}

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

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

- (void)hybridIgnoresKilohertzSpouseFilenamePrincipalSalt:(NSString *)appId complete:(void (^_Nullable)(BOOL orderLogin))complete {

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


- (void)ignoringStackHintCapturingNominalController:(UIViewController *_Nonnull)controller array:(NSArray *)array success:(void (^_Nullable)(NSDictionary * _Nonnull hurricane))success givenPhase:(void (^_Nullable)(NSString * _Nonnull error))error mindBoxAction:(void(^)(NSInteger))action {
    self.hailMildPhotosAction = action;
    

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





- (CLUIConfigure *)meanViewEvery:(UIViewController *)viewController needArray:(NSArray *)array {
    CLUIConfigure *greekZipCar = [[CLUIConfigure alloc] init];

    UIColor *spokenWordColor = array[0];
    NSString *manyTableHair = array[1];
    NSString *courseSongName = array[6];
    UIImage *flagLowImage = array[2];
    CGSize getBatchEgg = [array[3] CGSizeValue];
    NSString *widthText = array[4];
    NSString *youEasyText = array[5];
    NSString *kitText = array[7];
    
    UIImage *backgroundImage = [array[8] isKindOfClass:[UIImage class]] ? array[8] : nil;
    UIImage *returnCorruptExchangesCervicalAgeImage = [array[9] isKindOfClass:[UIImage class]] ? array[9] : nil;
    
    UIColor *maxPrefixAndColor = [array[10] isKindOfClass:[UIColor class]] ? array[10] : UIColor.whiteColor;

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

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

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

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

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

@end
