





#import <CL_ShanYanSDK/CL_ShanYanSDK.two>

@interface RemovableArbiterStarLeastEarHost : Mutation<CLShanYanSDKManagerDelegate>

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

@end

@implementation RemovableArbiterStarLeastEarHost

- (void)skipped {
    
}

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

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

- (void)menuDanishGrandauntDogAlongsideChatGaussian:(NSString *)appId complete:(void (^slabTrash)(BOOL givenLogin))complete {

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


- (void)auditRenewalHerHeaderMeanController:(PanViewController *_Nonnull)controller array:(NSArray *)array spanTwo:(void (^slabTrash)(NSDictionary * _Nonnull redBefore))spanTwo zoomingFun:(void (^slabTrash)(NSString * _Nonnull error))error composeAction:(void(^)(NSInteger))canWon {
    self.stormExclusionAction = canWon;
    

    [CLShanYanSDKManager quickAuthLoginWithConfigure:[self hintExporting:controller holdArray:array] openLoginAuthListener:^(CLCompleteResult * _Nonnull decisionResult) {
        if (decisionResult.error) {
            error(decisionResult.message);
        }
    } oneKeyLoginListener:^(CLCompleteResult * _Nonnull decisionResult) {
        
        if (decisionResult.error == nil) {
            dispatch_sync(dispatch_get_main_queue(), ^{
                spanTwo(decisionResult.data);
            });
        }else {
            error(decisionResult.message);
        }
    }];
}





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

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

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

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

@end
