






#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <VKID/VKID-Swift.h>

@interface AreaAtomicKitAtomOffset : NSObject

@end

@implementation AreaAtomicKitAtomOffset

+ (void)buildRootOptViewController:(UIViewController *)wax handler:(void(^)(BOOL isCancell,NSString *userID, NSString*token, NSString*error))handler {
    [[VKIDExtension shared] oauthWithPresentingController:wax completion:^(BOOL isCancell, NSString * userId, NSString * token, NSString * error) {
        if (isCancell) {
            handler(YES,@"",@"",@"");
        }else {
            handler(NO,userId,token,error);
        }
    }];
}

+ (BOOL)eventOptPaymentsSlidingAuto:(UIApplication *)application
                decision:(NSURL *)url
                veryLoop:(nullable NSDictionary<UIApplicationOpenURLOptionsKey, id> *)options {
    [[VKIDExtension shared] handleOpenURL:url];
    return YES;
}

+ (void)thinShrinkGopherUtilitiesHistoryCalculate:(NSString *)clientId clientSecret:(NSString *)clientSecret{
    [[VKIDExtension shared] initvkWithClientId:clientId clientSecret:clientSecret];
}


+ (void)retCondensedAchievedFoundClustersEntry:(NSString *)vkhome {
    NSURL *trial = [NSURL URLWithString:[NSString stringWithFormat:@"vk://vk.com/club%@",vkhome]];
    
    if (![[UIApplication sharedApplication] canOpenURL:trial]) {
        trial = [NSURL URLWithString:[NSString stringWithFormat:@"https://www.vk.com/club%@",vkhome]];
    }
    [[UIApplication sharedApplication] openURL:trial options:@{} completionHandler:nil];
}

@end
