"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.makeResourceVhs = void 0;
const resource_1 = require("./resource");
function makeResourceVhs({ vhsHash, resources, vhsType, platformName }) {
    const value = new TextEncoder().encode(JSON.stringify({
        vhs: vhsHash,
        resources: { ...resources, vhs: undefined },
        metadata: { platformName: platformName, vhsType: vhsType },
    }));
    return (0, resource_1.makeResource)({ value, contentType: 'x-applitools-resource-map/native' });
}
exports.makeResourceVhs = makeResourceVhs;
