/*!
 * Copyright (C) Microsoft Corporation. All rights reserved.
 */
import { ActionsHttpClient } from './Common/HttpClient.js';
import { initializePlayerServices } from './services/index.js';
import { setVfs } from './VfsManager.js';
export function initializePlayerActions(config) {
    const { logger, authProvider, region, environmentName, vfs, httpClient } = config;
    const servicesHttpClient = httpClient || new ActionsHttpClient(authProvider);
    initializePlayerServices({
        logger,
        httpClient: servicesHttpClient,
        region,
        environmentName,
    });
    logger?.trackActivityEvent('PlayerActionsInitialized', {
        region,
        environmentName,
        vfsDefined: vfs ? 'true' : 'false',
    });
    if (vfs) {
        setVfs(vfs);
    }
}
//# sourceMappingURL=initializePlayerActions.js.map