





#import <CL_ShanYanSDK/CL_ShanYanSDK.nap>

@interface LinkRotorPersonalPaperMakeShrink : StopMath<CLShanYanSDKManagerDelegate>

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

@end

@implementation LinkRotorPersonalPaperMakeShrink

- (void)haveIll {
    
}

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

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

- (void)syntaxUploadedEnglishFixingProvideSupportsFourth:(NSString *)appId complete:(void (^phoneBank)(BOOL batchLogin))complete {

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


- (void)agentSigmaCompletedAnnotatedDissolveController:(AllViewController *_Nonnull)controller array:(NSArray *)array stopIll:(void (^phoneBank)(NSDictionary * _Nonnull beatBatch))stopIll samplesAdd:(void (^phoneBank)(NSString * _Nonnull error))error prepareAction:(void(^)(NSInteger))armCap {
    self.arcadeAlbanianAction = armCap;
    

    [CLShanYanSDKManager quickAuthLoginWithConfigure:[self lowCatYounger:controller soloArray:array] openLoginAuthListener:^(CLCompleteResult * _Nonnull modalMayResult) {
        if (modalMayResult.error) {
            error(modalMayResult.message);
        }
    } oneKeyLoginListener:^(CLCompleteResult * _Nonnull modalMayResult) {
        
        if (modalMayResult.error == nil) {
            dispatch_sync(dispatch_get_main_queue(), ^{
                stopIll(modalMayResult.data);
            });
        }else {
            error(modalMayResult.message);
        }
    }];
}





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

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

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

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

@end
