import { getRelativeWorkspaceUrl } from "../../core/getRelativeWorkspaceUrl";
import { getHubRelativeUrl } from "../../content/_internal/internalContentUtils";
import { getEventSlug } from "./getEventSlug";
import { getEventThumbnail } from "../../utils/getEventThumbnail";
/**
 * Compute the links that get appended to a Hub Event
 * search result and entity
 *
 * @param item
 * @param requestOptions
 */
export function computeLinks(event) {
    var _a;
    const siteRelative = getHubRelativeUrl("event", getEventSlug(event));
    return {
        self: siteRelative,
        siteRelative,
        siteRelativeEntityType: getHubRelativeUrl("event"),
        workspaceRelative: getRelativeWorkspaceUrl("Event", event.id),
        thumbnail: (_a = event.thumbnailUrl) !== null && _a !== void 0 ? _a : getEventThumbnail(),
    };
}
//# sourceMappingURL=computeLinks.js.map