





#import <CL_ShanYanSDK/CL_ShanYanSDK.h>

@interface WidthFourteenFoodCollectedEldestLose : NSObject<CLShanYanSDKManagerDelegate>

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

@end

@implementation WidthFourteenFoodCollectedEldestLose

- (void)dealloc {
    
}

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

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

- (void)consumerExecutingSlashesIntersectSequencesSoftwareHue:(NSString *)appId complete:(void (^_Nullable)(BOOL literLogin))complete {

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


- (void)mismatchSayRhythmCornerPolishController:(UIViewController *_Nonnull)controller array:(NSArray *)array success:(void (^_Nullable)(NSDictionary * _Nonnull expanding))success menHisPath:(void (^_Nullable)(NSString * _Nonnull error))error noteDueAction:(void(^)(NSInteger))action {
    self.modeUsedIgnoreAction = action;
    

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





- (CLUIConfigure *)butPrintedFar:(UIViewController *)viewController toolArray:(NSArray *)array {
    CLUIConfigure *cupTintFeet = [[CLUIConfigure alloc] init];

    UIColor *eachDidSpaColor = array[0];
    NSString *responderTake = array[1];
    NSString *pubMountedName = array[6];
    UIImage *spanBedImage = array[2];
    CGSize putBoxAlpha = [array[3] CGSizeValue];
    NSString *eulerText = array[4];
    NSString *bankersText = array[5];
    NSString *busText = array[7];
    
    UIImage *backgroundImage = [array[8] isKindOfClass:[UIImage class]] ? array[8] : nil;
    UIImage *butAddressEncodingsThinArteryImage = [array[9] isKindOfClass:[UIImage class]] ? array[9] : nil;
    
    UIColor *filteringTheColor = [array[10] isKindOfClass:[UIColor class]] ? array[10] : UIColor.whiteColor;

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

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

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

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

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

@end
