@roomle/web-sdk 7.0.0-alpha.7 → 7.0.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD-PARTY-NOTICES.txt +2 -2
- package/lib/ConfiguratorKernel.js +8 -8
- package/lib/ConfiguratorKernel.wasm +0 -0
- package/lib/RoomleCore.js +12 -12
- package/lib/RoomleCore.wasm +0 -0
- package/lib/RoomleToolsCore.wasm +0 -0
- package/lib/{api-BngprCu5.mjs → api-B7RzBhz4.mjs} +2 -2
- package/lib/{api-BngprCu5.mjs.map → api-B7RzBhz4.mjs.map} +1 -1
- package/lib/asset-loader.worker-Bdvb-pt7.mjs.map +1 -1
- package/lib/assistant.d.ts +4 -2
- package/lib/assistant.js +2 -2
- package/lib/budgeteer.sw-ByZxiRBr.mjs.map +1 -1
- package/lib/{chat-recovery-Dg1pjw1I.mjs → chat-recovery-DbB-u6R_.mjs} +2 -2
- package/lib/{chat-recovery-Dg1pjw1I.mjs.map → chat-recovery-DbB-u6R_.mjs.map} +1 -1
- package/lib/{configuration-operations-CbqNZZmc.mjs → configuration-operations-CzSBK1f0.mjs} +3 -3
- package/lib/{configuration-operations-CbqNZZmc.mjs.map → configuration-operations-CzSBK1f0.mjs.map} +1 -1
- package/lib/configurator-DvBdnLQf.mjs +3 -0
- package/lib/configurator-capabilities-C7oVM9Ol.mjs +3 -0
- package/lib/{configurator-capabilities-70kymvOa.mjs → configurator-capabilities-DAXIjc-x.mjs} +2 -2
- package/lib/{configurator-capabilities-70kymvOa.mjs.map → configurator-capabilities-DAXIjc-x.mjs.map} +1 -1
- package/lib/{configurator-jkfY1b5y.mjs → configurator-hxG1dk93.mjs} +3 -3
- package/lib/{configurator-jkfY1b5y.mjs.map → configurator-hxG1dk93.mjs.map} +1 -1
- package/lib/{construction-assistant-uz0GwOXI.mjs → construction-assistant-B5KYz2u1.mjs} +3 -3
- package/lib/{construction-assistant-uz0GwOXI.mjs.map → construction-assistant-B5KYz2u1.mjs.map} +1 -1
- package/lib/glb-viewer-DHllBSkw.mjs +3 -0
- package/lib/{glb-viewer-DoM6-7Kf.mjs → glb-viewer-FPGAHfwj.mjs} +3 -3
- package/lib/{glb-viewer-DoM6-7Kf.mjs.map → glb-viewer-FPGAHfwj.mjs.map} +1 -1
- package/lib/{homag-intelligence-BvEIC4Sg.mjs → homag-intelligence-DUxhYyh-.mjs} +3 -3
- package/lib/{homag-intelligence-BvEIC4Sg.mjs.map → homag-intelligence-DUxhYyh-.mjs.map} +1 -1
- package/lib/{material-viewer-B1Qh9EMt.mjs → material-viewer-BcoauhFx.mjs} +3 -3
- package/lib/{material-viewer-B1Qh9EMt.mjs.map → material-viewer-BcoauhFx.mjs.map} +1 -1
- package/lib/{mcp-tools-2kiMy-k9.mjs → mcp-tools-BEI_MJyM.mjs} +12 -12
- package/lib/mcp-tools-BEI_MJyM.mjs.map +1 -0
- package/lib/{packages-CaHy27Po.mjs → packages-1b5pvI1y.mjs} +5 -5
- package/lib/{packages-CaHy27Po.mjs.map → packages-1b5pvI1y.mjs.map} +1 -1
- package/lib/planner-ClEWwUQL.mjs +3 -0
- package/lib/{planner-BB1NDAKt.mjs → planner-CuFtqh53.mjs} +3 -3
- package/lib/{planner-BB1NDAKt.mjs.map → planner-CuFtqh53.mjs.map} +1 -1
- package/lib/roomle-headless.d.ts +3 -3
- package/lib/roomle-headless.js +7 -7
- package/lib/{roomle-sdk-DfS6QwCf.mjs → roomle-sdk-CMP8F6qv.mjs} +18 -18
- package/lib/roomle-sdk-CMP8F6qv.mjs.map +1 -0
- package/lib/roomle-sdk.d.ts +3 -3
- package/lib/roomle-sdk.js +6 -6
- package/lib/{runtime-D5zrHj-e.mjs → runtime-B2VYNoKL.mjs} +3 -3
- package/lib/{runtime-D5zrHj-e.mjs.map → runtime-B2VYNoKL.mjs.map} +1 -1
- package/lib/{script-loader-BBj6hFD3.mjs → script-loader-ga4xdHLM.mjs} +2 -2
- package/lib/{script-loader-BBj6hFD3.mjs.map → script-loader-ga4xdHLM.mjs.map} +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/package.json +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/configuratorCallback.js.map +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/configuratorCore.js.map +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/configuratorCoreInterface.d.ts +0 -2
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/configuratorCoreInterface.js.map +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/coreModule.js.map +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/embindEnum.js.map +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCore.js.map +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCoreCallback.js.map +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCoreInterface.js.map +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/toolsCore.js.map +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/toolsCoreInterface.js.map +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/loader/configurableObject.js.map +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/loader/configurationGeometryConstructor.js.map +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/loader/configurationLoader.js.map +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/loader/configurationManager.js.map +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/loader/loaderUtility.js.map +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/loader/logger.js.map +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/loader/planElementManager.js.map +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/loader/rapiAccess.js.map +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.js +8 -8
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.wasm +0 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleCore.js +12 -12
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleCore.wasm +0 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleToolsCore.wasm +0 -0
- package/lib/{tools-core-BUWB0g7Y.mjs → tools-core-Ur7lWfW8.mjs} +3 -3
- package/lib/{tools-core-BUWB0g7Y.mjs.map → tools-core-Ur7lWfW8.mjs.map} +1 -1
- package/package.json +2 -2
- package/sbom.cdx.json +5 -5
- package/lib/configurator-DX-SJ2DK.mjs +0 -3
- package/lib/configurator-capabilities-Wcmqit2B.mjs +0 -3
- package/lib/glb-viewer-B9-VYIi2.mjs +0 -3
- package/lib/mcp-tools-2kiMy-k9.mjs.map +0 -1
- package/lib/planner-B4_PoCyq.mjs +0 -3
- package/lib/roomle-sdk-DfS6QwCf.mjs.map +0 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/coreModue.d.ts +0 -4
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/coreModue.js +0 -3
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/coreModue.js.map +0 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/serviceCore.d.ts +0 -20
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/serviceCore.js +0 -54
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/serviceCore.js.map +0 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/serviceCoreInterface.d.ts +0 -13
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/serviceCoreInterface.js +0 -3
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/serviceCoreInterface.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-tools-BEI_MJyM.mjs","names":[],"sources":["../../packages/common-core/src/planning-assistant/chat-model.ts","../../packages/common-core/src/planning-assistant/mcp-tools.ts"],"sourcesContent":["import type {\n LanguageModelV4,\n LanguageModelV4Prompt,\n LanguageModelV4FilePart,\n SharedV4ProviderOptions,\n} from '@ai-sdk/provider';\nimport type { PlanningAssistantConfig } from './types';\nexport type { PlanningAssistantConfig } from './types';\n\nconst TOOL_IMAGES_NOTE =\n 'The images of this result follow in the next message.';\n\nconst toolImagesAsUserMessage = (\n prompt: LanguageModelV4Prompt,\n): LanguageModelV4Prompt =>\n prompt.flatMap((message): LanguageModelV4Prompt => {\n if (message.role !== 'tool') {\n return [message];\n }\n const images: LanguageModelV4FilePart[] = [];\n const content: typeof message.content = message.content.map((part) => {\n if (part.type !== 'tool-result' || part.output.type !== 'content') {\n return part;\n }\n const files = part.output.value.filter(\n (value): value is LanguageModelV4FilePart => value.type === 'file',\n );\n if (!files.length) {\n return part;\n }\n images.push(...files);\n return {\n ...part,\n output: {\n ...part.output,\n value: [\n ...part.output.value.filter((value) => value.type !== 'file'),\n { type: 'text', text: TOOL_IMAGES_NOTE },\n ],\n },\n };\n });\n return images.length\n ? [\n { ...message, content },\n { role: 'user', content: images },\n ]\n : [message];\n });\n\nconst withToolImagesAsUserMessage = (\n model: LanguageModelV4,\n): LanguageModelV4 => ({\n specificationVersion: model.specificationVersion,\n provider: model.provider,\n modelId: model.modelId,\n supportedUrls: model.supportedUrls,\n doGenerate: (options) =>\n model.doGenerate({\n ...options,\n prompt: toolImagesAsUserMessage(options.prompt),\n }),\n doStream: (options) =>\n model.doStream({\n ...options,\n prompt: toolImagesAsUserMessage(options.prompt),\n }),\n});\n\n/** The AI SDK language model of the config and the provider options `streamText` takes with it. */\nexport const loadChatModel = async (\n {\n provider,\n model,\n apiKey,\n baseUrl,\n headers,\n chatCompletions,\n responses,\n storedResponses,\n reasoningEffort,\n }: PlanningAssistantConfig,\n observeRequest?: (body: string) => Promise<void>,\n): Promise<{\n languageModel: LanguageModelV4;\n providerOptions?: SharedV4ProviderOptions;\n}> => {\n const transport = observeRequest\n ? {\n fetch: new Proxy(fetch, {\n apply: async (_target, _receiver, args: Parameters<typeof fetch>) => {\n if (typeof args[1]?.body === 'string') {\n await observeRequest(args[1].body);\n }\n return fetch(...args);\n },\n }),\n }\n : {};\n switch (provider) {\n case 'openai': {\n const { createOpenAI } = await import('@ai-sdk/openai');\n return { languageModel: createOpenAI({ apiKey, ...transport })(model) };\n }\n case 'azure': {\n const { createAzure } = await import('@ai-sdk/azure');\n const azure = createAzure({ apiKey, baseURL: baseUrl, ...transport });\n return {\n languageModel: chatCompletions ? azure.chat(model) : azure(model),\n providerOptions: reasoningEffort\n ? { azure: { reasoningEffort } }\n : undefined,\n };\n }\n case 'openai-compatible': {\n if (!baseUrl) {\n throw new Error('The provider \"openai-compatible\" needs a baseUrl');\n }\n if (responses) {\n const { createOpenAI } = await import('@ai-sdk/openai');\n // The adapter throws without a key, so it gets a dummy one; when no\n // credential is supplied at all, the Authorization header it generates\n // is removed again (undefined entries are dropped from the headers),\n // so a same-origin page keeps the browser's authenticated session.\n // Explicit host headers stay.\n const requestHeaders: Record<string, string | undefined> = {\n ...(!apiKey && !headers?.Authorization\n ? { Authorization: undefined }\n : {}),\n ...headers,\n };\n return {\n languageModel: createOpenAI({\n baseURL: baseUrl,\n apiKey: apiKey ?? 'none',\n headers: requestHeaders as Record<string, string>,\n ...transport,\n }).responses(model),\n providerOptions: {\n openai: storedResponses\n ? { store: true }\n : { store: false, forceReasoning: true },\n },\n };\n }\n const { createOpenAICompatible } = await import(\n '@ai-sdk/openai-compatible'\n );\n const compatible = createOpenAICompatible({\n name: 'openai-compatible',\n baseURL: baseUrl,\n apiKey,\n headers,\n includeUsage: true,\n ...transport,\n });\n return {\n languageModel: withToolImagesAsUserMessage(compatible(model)),\n };\n }\n case 'mistral': {\n const { createMistral } = await import('@ai-sdk/mistral');\n return {\n languageModel: withToolImagesAsUserMessage(\n createMistral({ apiKey, ...transport })(model),\n ),\n };\n }\n case 'anthropic': {\n const { createAnthropic } = await import('@ai-sdk/anthropic');\n const anthropic = createAnthropic({\n apiKey,\n // oxlint-disable-next-line roomle/no-client-provider-keys -- RML-18367: route model calls through a server or the host page\n headers: { 'anthropic-dangerous-direct-browser-access': 'true' },\n ...transport,\n });\n return { languageModel: anthropic(model) };\n }\n case 'google': {\n const { createGoogleGenerativeAI } = await import('@ai-sdk/google');\n return {\n languageModel: createGoogleGenerativeAI({ apiKey, ...transport })(\n model,\n ),\n };\n }\n default:\n throw new Error(\n `Unknown provider \"${provider}\" - supported: azure, openai, openai-compatible, mistral, anthropic, google`,\n );\n }\n};\n","import type {\n AgentToolDefinition,\n McpToolResult,\n} from '../agent-tools/mcp-tool-types';\n/** What the model gets of a tool result, as `@ai-sdk/mcp` hands it to the AI SDK. */\nexport interface AgentMcpModelOutput {\n type: 'content';\n value: Array<\n | { type: 'text'; text: string }\n | { type: 'file'; mediaType: string; data: { type: 'data'; data: string } }\n >;\n}\n\n/** The input schema of a tool as a Standard Schema with its JSON Schema. */\nexport interface AgentMcpInputSchema {\n '~standard': {\n version: 1;\n vendor: string;\n validate: (value: unknown) => { value: unknown };\n jsonSchema: {\n input: (options: { target: string }) => Record<string, unknown>;\n output: (options: { target: string }) => Record<string, unknown>;\n };\n };\n}\n\n/** A tool of the HI MCP tool set, in the shape of an AI SDK dynamic tool. */\nexport interface AgentMcpTool {\n type: 'dynamic';\n annotations?: AgentToolDefinition['annotations'];\n description: string;\n inputSchema: AgentMcpInputSchema;\n execute: (input: unknown) => Promise<McpToolResult>;\n toModelOutput: (options: { output: McpToolResult }) => AgentMcpModelOutput;\n}\n\n/** The HI MCP tools by name, the tool set an AI SDK `streamText` takes. */\nexport type AgentMcpTools = Record<string, AgentMcpTool>;\n\n/** The tool result as `@ai-sdk/mcp` passes it to the model: text parts and images as file parts. */\nexport const mcpToModelOutput = ({\n output,\n}: {\n output: McpToolResult;\n}): AgentMcpModelOutput => ({\n type: 'content',\n value: output.content.map((part) =>\n part.type === 'text'\n ? { type: 'text', text: part.text }\n : {\n type: 'file',\n mediaType: part.mimeType,\n data: { type: 'data', data: part.data },\n },\n ),\n});\n\nexport const createAgentMcpTools = (\n definitions: AgentToolDefinition[],\n call: (name: string, input: unknown) => Promise<McpToolResult>,\n vendor: string,\n): AgentMcpTools => {\n return Object.fromEntries(\n definitions.map(({ name, description, inputSchema, annotations }) => {\n const jsonSchema = () => inputSchema;\n const tool: AgentMcpTool = {\n type: 'dynamic',\n ...(annotations && { annotations }),\n description,\n inputSchema: {\n '~standard': {\n version: 1,\n vendor,\n validate: (value) => ({ value }),\n jsonSchema: { input: jsonSchema, output: jsonSchema },\n },\n },\n execute: (input) =>\n call(name, input).catch((error: unknown) => ({\n content: [\n {\n type: 'text',\n text: error instanceof Error ? error.message : String(error),\n },\n ],\n isError: true,\n })),\n toModelOutput: mcpToModelOutput,\n };\n return [name, tool];\n }),\n );\n};\n"],"mappings":"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"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
import "./common-utils-zPOllvAT.mjs";
|
|
3
|
-
import "./roomle-sdk-
|
|
4
|
-
import "./configurator-
|
|
5
|
-
import "./planner-
|
|
6
|
-
import "./glb-viewer-
|
|
3
|
+
import "./roomle-sdk-CMP8F6qv.mjs";
|
|
4
|
+
import "./configurator-hxG1dk93.mjs";
|
|
5
|
+
import "./planner-CuFtqh53.mjs";
|
|
6
|
+
import "./glb-viewer-FPGAHfwj.mjs";
|
|
7
7
|
//#region ../common/src/utils/id-inferrer.ts
|
|
8
8
|
var e = (e) => e.split(":").length - 1 == 1, t = (e) => e.split(":").length - 1 <= 0, n = (e) => e ? e.startsWith("component@") : !1, r = (e) => e.startsWith("{") && e.endsWith("}"), i = (e) => e.startsWith("ps_");
|
|
9
9
|
//#endregion
|
|
10
10
|
export { i as a, e as i, r as n, t as r, n as t };
|
|
11
11
|
|
|
12
|
-
//# sourceMappingURL=packages-
|
|
12
|
+
//# sourceMappingURL=packages-1b5pvI1y.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packages-
|
|
1
|
+
{"version":3,"file":"packages-1b5pvI1y.mjs","names":[],"sources":["../../../common/src/utils/id-inferrer.ts"],"sourcesContent":["import type { RapiId, RapiPlanSnapshotId } from '@roomle/web-sdk';\n\nexport const isIdAnItem = (id: string) => id.split(':').length - 1 === 1;\n\nexport const isIdAPlan = (id: string) => id.split(':').length - 1 <= 0;\n\nexport const isIdAComponent = (id: string) =>\n id ? id.startsWith('component@') : false;\n\nexport const isIdAConfigurationString = (id: string) =>\n id.startsWith('{') && id.endsWith('}');\n\nexport const isPlanSnapshotId = (\n id: string | RapiId,\n): id is RapiPlanSnapshotId => id.startsWith('ps_');\n\nexport type RapiElementKind = 'planSnapshot' | 'item' | 'configuration';\n\nexport const getRapiElementKind = (id: string): RapiElementKind => {\n if (isPlanSnapshotId(id)) {\n return 'planSnapshot';\n }\n return isIdAnItem(id) ? 'item' : 'configuration';\n};\n"],"mappings":";;;;;;;AAEA,IAAa,KAAc,MAAe,EAAG,MAAM,IAAI,CAAC,SAAS,KAAM,GAE1D,KAAa,MAAe,EAAG,MAAM,IAAI,CAAC,SAAS,KAAK,GAExD,KAAkB,MAC7B,IAAK,EAAG,WAAW,aAAa,GAAG,IAExB,KAA4B,MACvC,EAAG,WAAW,IAAI,IAAI,EAAG,SAAS,IAAI,EAE3B,KACX,MAC6B,EAAG,WAAW,MAAM"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import { H as e, M as t, N as n, P as r, Q as i, d as a, dt as o, ft as s, j as c, mt as l, n as u, nt as d, ot as f, p, vt as m } from "./roomle-sdk-
|
|
3
|
-
import { t as h } from "./script-loader-
|
|
2
|
+
import { H as e, M as t, N as n, P as r, Q as i, d as a, dt as o, ft as s, j as c, mt as l, n as u, nt as d, ot as f, p, vt as m } from "./roomle-sdk-CMP8F6qv.mjs";
|
|
3
|
+
import { t as h } from "./script-loader-ga4xdHLM.mjs";
|
|
4
4
|
//#region packages/planner-core/src/input/planner-input-manager.ts
|
|
5
5
|
var g = class extends i {
|
|
6
6
|
_canDrag(e) {
|
|
@@ -46,4 +46,4 @@ var g = class extends i {
|
|
|
46
46
|
//#endregion
|
|
47
47
|
export { v as t };
|
|
48
48
|
|
|
49
|
-
//# sourceMappingURL=planner-
|
|
49
|
+
//# sourceMappingURL=planner-CuFtqh53.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"planner-
|
|
1
|
+
{"version":3,"file":"planner-CuFtqh53.mjs","names":[],"sources":["../../packages/planner-core/src/input/planner-input-manager.ts","../../packages/planner-core/src/utils/injectables.ts","../../packages/planner-core/src/planner.ts"],"sourcesContent":["import type { INPUT_EVENT_TYPE } from '../../../common-core/src/input/input-manager';\nimport InputManager from '../../../common-core/src/input/input-manager';\n\nexport default class PlannerInputManager extends InputManager {\n protected _canDrag(_type: INPUT_EVENT_TYPE): boolean {\n return true;\n }\n}\n","import ScriptLoader from '../../../common-core/src/script-loader';\nimport {\n DependencyInjectionAssignment,\n DI_TYPE,\n} from '../../../common-core/src/di/container';\nimport Logger from '../../../common-core/src/logger';\nimport { default as PlannerMeshGenerator } from '../webgl/planner-mesh-generator';\nimport { RapiAccess } from '../../../common-core/src/rapi-access';\nimport PlannerInputManager from '../input/planner-input-manager';\nimport PlannerSelectionHandler from './planner-selection-handler';\nimport GlobalInitData from '../../../common-core/src/utils/global-init-data';\nimport ConfiguratorViewModel from '../../../common-core/src/view-model/configurator-view-model';\n\nexport const INJECTABLES: DependencyInjectionAssignment[] = [\n new DependencyInjectionAssignment('script-loader', ScriptLoader),\n new DependencyInjectionAssignment(\n 'planner-input-manager',\n PlannerInputManager,\n DI_TYPE.CONTEXT,\n ),\n new DependencyInjectionAssignment('logger', Logger),\n new DependencyInjectionAssignment(\n 'planner-mesh-generator',\n PlannerMeshGenerator,\n ),\n new DependencyInjectionAssignment(\n 'configurator-view-model',\n ConfiguratorViewModel,\n DI_TYPE.CONTEXT,\n ),\n new DependencyInjectionAssignment('rapi-access', RapiAccess),\n new DependencyInjectionAssignment('global-init-data', GlobalInitData),\n new DependencyInjectionAssignment(\n 'planner-selection-handler',\n PlannerSelectionHandler,\n ),\n];\n","import './utils/global-definitions';\nimport { Main, BASE_CONTEXT } from '../../common-core/src/main';\nimport { RoomlePlanner } from './roomle-planner';\nimport RoomleDependencyInjection from '../../common-core/src/di/roomle-dependency-injection';\nimport { INJECTABLES } from './utils/injectables';\nimport type PlannerKernelAccess from './services/planner-kernel-access';\nimport type Logger from '../../common-core/src/logger';\nimport { KERNEL_TYPE } from '../../common-core/src/services/common-kernel-access';\nimport type { PluginName } from '../../configurator-core/src/utils/plugin-types';\nimport type InitData from '../../common-core/src/utils/init-data';\nimport { isInIframe } from '../../common-core/src/utils/rapi-utils';\n\nexport class Planner<\n P extends readonly PluginName[] = readonly [],\n> extends Main {\n private _planner: RoomlePlanner<P>;\n private _activePlugins: P;\n\n constructor(creator?: string, activePlugins?: P) {\n super(creator);\n this._activePlugins = (activePlugins || []) as P;\n }\n protected setupGlobals(): void {\n //globals are initialized in bootFinished()\n }\n\n protected setupDependencies(): void {\n RoomleDependencyInjection.setup(INJECTABLES);\n this.lookup<Logger>('logger', this._context);\n // instantiate kernel acccess\n // instantiate pka\n // set pka on kernel access\n const plannerKernelAccess = this.lookup<PlannerKernelAccess>(\n 'planner-kernel-access',\n this._context,\n );\n plannerKernelAccess.init(KERNEL_TYPE.PLANNER);\n }\n\n protected cleanUpGlobals(): void {\n throw new Error('Method not implemented.');\n }\n\n protected cleanUpDependencies(): void {\n throw new Error('Method not implemented.');\n }\n\n protected async bootFinished(): Promise<void> {\n this._planner = new RoomlePlanner<P>(this._context, this._activePlugins);\n\n this._planner.getMain = () => {\n return this;\n };\n\n if (!window.RoomlePlanner) {\n if (this._activePlugins.length === 0) {\n // cast to unknown because we know that the planner is a RoomlePlanner\n window.RoomlePlanner = this._planner as unknown as RoomlePlanner;\n } else {\n window.RoomlePlanner = this._planner as RoomlePlanner<\n readonly PluginName[]\n >;\n }\n }\n\n const initData = this.lookup<InitData>('init-data', this._context);\n\n if (initData?.hi && isInIframe()) {\n try {\n await this._planner.setupHomagIntelligence();\n } catch (error) {\n console.error(\n 'The HI library could not be loaded, the planner starts without it',\n error,\n );\n }\n }\n }\n\n public getApi(): RoomlePlanner<P> {\n return this._planner;\n }\n\n protected getContextName(): string {\n return BASE_CONTEXT.PLANNER;\n }\n}\n"],"mappings":";;;;AAGA,IAAqB,IAArB,cAAiD,EAAa;CAC5D,SAAmB,GAAkC;AACnD,SAAO;;GCQE,IAA+C;CAC1D,IAAI,EAA8B,iBAAiB,EAAa;CAChE,IAAI,EACF,yBACA,GACA,EAAQ,QACT;CACD,IAAI,EAA8B,UAAU,EAAO;CACnD,IAAI,EACF,0BACA,EACD;CACD,IAAI,EACF,2BACA,GACA,EAAQ,QACT;CACD,IAAI,EAA8B,eAAe,EAAW;CAC5D,IAAI,EAA8B,oBAAoB,EAAe;CACrE,IAAI,EACF,6BACA,EACD;CACF,ECxBY,IAAb,cAEU,EAAK;CAIb,YAAY,GAAkB,GAAmB;AAE/C,EADA,MAAM,EAAQ,EACd,KAAK,iBAAkB,KAAiB,EAAE;;CAE5C,eAA+B;CAI/B,oBAAoC;AAMN,EAL5B,EAA0B,MAAM,EAAY,EAC5C,KAAK,OAAe,UAAU,KAAK,SAAS,EAIhB,KAAK,OAC/B,yBACA,KAAK,SACN,CACmB,KAAK,EAAY,QAAQ;;CAG/C,iBAAiC;AAC/B,QAAU,MAAM,0BAA0B;;CAG5C,sBAAsC;AACpC,QAAU,MAAM,0BAA0B;;CAG5C,MAAgB,eAA8B;AAoB5C,MAnBA,KAAK,WAAW,IAAI,EAAiB,KAAK,UAAU,KAAK,eAAe,EAExE,KAAK,SAAS,gBACL,MAGJ,OAAO,kBACN,KAAK,eAAe,QAEtB,OAAO,gBAAgB,KAAK,WAQf,KAAK,OAAiB,aAAa,KAAK,SAAS,EAEpD,MAAM,GAAY,CAC9B,KAAI;AACF,SAAM,KAAK,SAAS,wBAAwB;WACrC,GAAO;AACd,WAAQ,MACN,qEACA,EACD;;;CAKP,SAAkC;AAChC,SAAO,KAAK;;CAGd,iBAAmC;AACjC,SAAO,EAAa"}
|
package/lib/roomle-headless.d.ts
CHANGED
|
@@ -6989,13 +6989,11 @@ export declare interface Kernel {
|
|
|
6989
6989
|
setLogLevel(level: number): void;
|
|
6990
6990
|
loadConfiguration(conversationId: number, serializedConfiguration: string, bounding: Vector3): void;
|
|
6991
6991
|
updateConfiguration(conversationId: number, objectOrComponentId: number, serializedConfiguration: string): void;
|
|
6992
|
-
loadFreeFlyingConfiguration(conversationId: number, serializedConfiguration: string): void;
|
|
6993
6992
|
loadComponentDefinition(serializedComponent: string): void;
|
|
6994
6993
|
requestComponentDockPreview(targetObjectId: number, componentId: string, serializedComponent: string, dragIn: boolean, allowInsertInBetween: boolean): void;
|
|
6995
6994
|
requestItemDockPreview(targetObjectId: number, serializedConfiguration: string, dragIn: boolean, allowInsertInBetween: boolean): void;
|
|
6996
6995
|
requestExternalObjectDockPreview(targetObjectId: number, articleId: string, dragIn: boolean, allowInsertInBetween: boolean): void;
|
|
6997
6996
|
assetsLoaded(assets: AssetResponse_2 | AssetResponse_2[]): void;
|
|
6998
|
-
loadPlainComponent(conversationId: number, componentId: string, serializedComponent: string): void;
|
|
6999
6997
|
saveConfiguration(planObjectId: number): void;
|
|
7000
6998
|
getComponent(planComponentId: number): Component;
|
|
7001
6999
|
getComponentBounds(componentId: number, animationValues: string[]): ComponentBounds;
|
|
@@ -9801,8 +9799,10 @@ export declare interface PlanningAssistantConfig {
|
|
|
9801
9799
|
headers?: Record<string, string>;
|
|
9802
9800
|
/** `azure` only: call the deployment through the Chat Completions API instead of the Responses API. */
|
|
9803
9801
|
chatCompletions?: boolean;
|
|
9804
|
-
/** `openai-compatible` only: call `<baseUrl>/responses` instead of `<baseUrl>/chat/completions`, stateless (`store: false`, the whole history in every request, the reasoning carried encrypted)
|
|
9802
|
+
/** `openai-compatible` only: call `<baseUrl>/responses` instead of `<baseUrl>/chat/completions`, defaulting to stateless (`store: false`, the whole history in every request, the reasoning carried encrypted) unless `storedResponses` is true. */
|
|
9805
9803
|
responses?: boolean;
|
|
9804
|
+
/** `openai-compatible` with `responses` only: store responses on the server (`store: true`) so supported runtimes can continue steps and follow-up turns by `previousResponseId`. */
|
|
9805
|
+
storedResponses?: boolean;
|
|
9806
9806
|
/** `azure` only: the reasoning effort of the deployment; its default when unset. */
|
|
9807
9807
|
reasoningEffort?: string;
|
|
9808
9808
|
/** Azure Responses only: mark the library prefix for caching on a deployment verified to support explicit breakpoints. */
|
package/lib/roomle-headless.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/*! Third-party licenses: THIRD-PARTY-NOTICES.txt and sbom.cdx.json in the root of this package */
|
|
2
|
-
import { a as e, i as t, n, r, t as i } from "./packages-
|
|
2
|
+
import { a as e, i as t, n, r, t as i } from "./packages-1b5pvI1y.mjs";
|
|
3
3
|
import { i as a, t as o } from "./kernel-2ku6lFfE.mjs";
|
|
4
4
|
import { Ot as s, Tt as c, wt as l } from "./threejs-utils-D1gtvxiA.mjs";
|
|
5
5
|
import { m as u, nt as d, wi as f } from "./three.core-BpdpLVZy.mjs";
|
|
6
6
|
import { i as p } from "./decorate-CooD7C6J.mjs";
|
|
7
7
|
import { D as ee, H as m, g as te } from "./common-utils-zPOllvAT.mjs";
|
|
8
|
-
import { A as ne, C as re, G as ie, H as ae, J as oe, K as se, O as ce, V as le, X as ue, Y as h, Z as de, _ as fe, _t as pe, b as me, bt as he, c as ge, dt as g, f as _e, ft as _, gt as ve, ht as ye, i as v, j as y, k as b, l as x, m as S, mt as C, o as w, p as T, pt as E, q as D, r as O, s as k, t as A, u as j, ut as M, v as N, y as P, z as be } from "./roomle-sdk-
|
|
8
|
+
import { A as ne, C as re, G as ie, H as ae, J as oe, K as se, O as ce, V as le, X as ue, Y as h, Z as de, _ as fe, _t as pe, b as me, bt as he, c as ge, dt as g, f as _e, ft as _, gt as ve, ht as ye, i as v, j as y, k as b, l as x, m as S, mt as C, o as w, p as T, pt as E, q as D, r as O, s as k, t as A, u as j, ut as M, v as N, y as P, z as be } from "./roomle-sdk-CMP8F6qv.mjs";
|
|
9
9
|
import { n as xe } from "./roomle-renderer-hDktY-wA.mjs";
|
|
10
|
-
import { n as Se } from "./script-loader-
|
|
11
|
-
import { t as Ce } from "./configurator-
|
|
12
|
-
import { t as we } from "./planner-
|
|
13
|
-
import { n as Te, t as Ee } from "./glb-viewer-
|
|
14
|
-
import { t as De } from "./api-
|
|
10
|
+
import { n as Se } from "./script-loader-ga4xdHLM.mjs";
|
|
11
|
+
import { t as Ce } from "./configurator-hxG1dk93.mjs";
|
|
12
|
+
import { t as we } from "./planner-CuFtqh53.mjs";
|
|
13
|
+
import { n as Te, t as Ee } from "./glb-viewer-FPGAHfwj.mjs";
|
|
14
|
+
import { t as De } from "./api-B7RzBhz4.mjs";
|
|
15
15
|
import { t as Oe } from "./roomle-headless-setup-Cbu025cl.mjs";
|
|
16
16
|
import { createRequire as ke } from "module";
|
|
17
17
|
//#region packages/headless-core/src/headless-tween-stub.ts
|
|
@@ -38476,10 +38476,10 @@ var ql = /* @__PURE__ */ new Map(), Jl = (e) => {
|
|
|
38476
38476
|
}
|
|
38477
38477
|
}
|
|
38478
38478
|
beginSliderGesture() {
|
|
38479
|
-
this._assertOperationOwner(), this.commit(), this._sliderGestureActive = !0;
|
|
38479
|
+
this._assertOperationOwner(), this._state.kind !== "held" && this.commit(), this._sliderGestureActive = !0;
|
|
38480
38480
|
}
|
|
38481
38481
|
endSliderGesture() {
|
|
38482
|
-
this._sliderGestureActive = !1, this.commit();
|
|
38482
|
+
this._sliderGestureActive = !1, this._state.kind !== "held" && this.commit();
|
|
38483
38483
|
}
|
|
38484
38484
|
clearHistory() {
|
|
38485
38485
|
this.reset(), this._handler.clearHistory();
|
|
@@ -40982,7 +40982,7 @@ var df = (e, t) => !e.sort && !t.sort ? 0 : e.sort ? t.sort ? e.sort - t.sort :
|
|
|
40982
40982
|
}
|
|
40983
40983
|
constructor(e, t) {
|
|
40984
40984
|
this._onInitDoneCollection = [], this._isKernelReady = !1, this._isWebGlReady = !1, this._isPreloadReady = !0, this._isLoadError = !1, this._isReloading = !1, this._needsSync = !1, this._configuratorAgentTools = null, this._creator_ = e, this._activePlugins = t || [], this._configurationAssistant = Lf(this._configuratorContext, async (e, t, n) => {
|
|
40985
|
-
let { createConfigurationAssistant: r } = await import("./runtime-
|
|
40985
|
+
let { createConfigurationAssistant: r } = await import("./runtime-B2VYNoKL.mjs");
|
|
40986
40986
|
return t.throwIfAborted(), r(this, e, t, n);
|
|
40987
40987
|
}, (e) => this.planningAssistantOutput(e)), this._lifeCycleManager.addEventListener({
|
|
40988
40988
|
pause: () => void 0,
|
|
@@ -41420,15 +41420,15 @@ var df = (e, t) => !e.sort && !t.sort ? 0 : e.sort ? t.sort ? e.sort - t.sort :
|
|
|
41420
41420
|
}), this._configuratorAgentTools;
|
|
41421
41421
|
}
|
|
41422
41422
|
async getConfiguratorCapabilities(e) {
|
|
41423
|
-
let { collectConfiguratorCapabilities: t } = await import("./configurator-capabilities-
|
|
41423
|
+
let { collectConfiguratorCapabilities: t } = await import("./configurator-capabilities-C7oVM9Ol.mjs");
|
|
41424
41424
|
return t(this._configuratorContext, this._plannerKernelAccess, this._rapiAccess, e);
|
|
41425
41425
|
}
|
|
41426
41426
|
async queryConfigurationOperation(e, t) {
|
|
41427
|
-
let { queryConfigurationOperation: n } = await import("./configuration-operations-
|
|
41427
|
+
let { queryConfigurationOperation: n } = await import("./configuration-operations-CzSBK1f0.mjs");
|
|
41428
41428
|
return n(this._configuratorContext, this._plannerKernelAccess, this._rapiAccess, this, e, t);
|
|
41429
41429
|
}
|
|
41430
41430
|
async executeConfigurationOperation(e, t) {
|
|
41431
|
-
let { executeConfigurationOperation: n } = await import("./configuration-operations-
|
|
41431
|
+
let { executeConfigurationOperation: n } = await import("./configuration-operations-CzSBK1f0.mjs");
|
|
41432
41432
|
return n(this._configuratorContext, this._plannerKernelAccess, this._rapiAccess, this, () => this._sceneManager.getConfigurationHistoryState(), e, t);
|
|
41433
41433
|
}
|
|
41434
41434
|
getParametersOfPlanObject() {
|
|
@@ -44643,7 +44643,7 @@ var wp = class extends Map {
|
|
|
44643
44643
|
}
|
|
44644
44644
|
n ? r.finishConstruction() : r.failConstruction();
|
|
44645
44645
|
let i = t.extRef?.jsObject;
|
|
44646
|
-
i instanceof Fu && (this._linkPlanObjectViewModelAndComponent(i), i.recomputeBoundingBox());
|
|
44646
|
+
i instanceof Fu && (this._linkPlanObjectViewModelAndComponent(i), i.recomputeBoundingBox(), i.hidePreviewBox());
|
|
44647
44647
|
}
|
|
44648
44648
|
recomputeConfigurableBoundingBoxes() {
|
|
44649
44649
|
for (let e of [...this._configurablePlanObjectViewModels, ...this._configurableConstructionPlanObjectViewModels]) e.recomputeBoundingBox();
|
|
@@ -54290,7 +54290,7 @@ var ey = "<plan version=\"2\"><walls><nodes/><edges/></walls><planobjects/><text
|
|
|
54290
54290
|
}(sy || {}), cy = class {
|
|
54291
54291
|
constructor(e, t) {
|
|
54292
54292
|
this._homagIntelligence = null, this._hiAgentTools = null, this._fenceAgentTools = null, this._pendingExternalMasterData = null, this._earlyHiTagCatalogCallbacks = null, this._hscInstance = null, this._glbInstance = null, this._configurator = null, this._currentMode = sy.PLANNER, this._isDragInInProgress = !1, this._creator_ = e, this._activePlugins = t || [], this._configurationAssistant = Lf(this._configuratorContext, async (e, t, n) => {
|
|
54293
|
-
let { createConfigurationAssistant: r } = await import("./runtime-
|
|
54293
|
+
let { createConfigurationAssistant: r } = await import("./runtime-B2VYNoKL.mjs");
|
|
54294
54294
|
return t.throwIfAborted(), r(this.getConfiguratorApi(), e, t, n);
|
|
54295
54295
|
}, (e) => this.planningAssistantOutput(e)), this._lifeCycleManager.addEventListener({
|
|
54296
54296
|
pause: () => void 0,
|
|
@@ -54443,7 +54443,7 @@ var ey = "<plan version=\"2\"><walls><nodes/><edges/></walls><planobjects/><text
|
|
|
54443
54443
|
async switchToConfigurator() {
|
|
54444
54444
|
let e = await this._singlePromiseFactory.create(Bo.START_HSC, "startHSC", (e) => {
|
|
54445
54445
|
if (this._hscInstance) return e(this._hscInstance);
|
|
54446
|
-
import("./configurator-
|
|
54446
|
+
import("./configurator-DvBdnLQf.mjs").then(({ Configurator: t }) => {
|
|
54447
54447
|
let n = new t(this._creator_);
|
|
54448
54448
|
n.boot({
|
|
54449
54449
|
kernelInstance: this._planInteractionManager.getConfiguratorKernel(),
|
|
@@ -54461,7 +54461,7 @@ var ey = "<plan version=\"2\"><walls><nodes/><edges/></walls><planobjects/><text
|
|
|
54461
54461
|
async switchToViewer() {
|
|
54462
54462
|
let e = await this._singlePromiseFactory.create(Bo.START_GLB, "startGLB", (e) => {
|
|
54463
54463
|
if (this._glbInstance) return e(this._glbInstance);
|
|
54464
|
-
import("./glb-viewer-
|
|
54464
|
+
import("./glb-viewer-DHllBSkw.mjs").then((t) => {
|
|
54465
54465
|
let n = new t.GlbViewer(this._creator_);
|
|
54466
54466
|
n.boot(), n.getApi().setOverrides(this._initData);
|
|
54467
54467
|
let r = this._domHelper.element;
|
|
@@ -55332,7 +55332,7 @@ var ey = "<plan version=\"2\"><walls><nodes/><edges/></walls><planobjects/><text
|
|
|
55332
55332
|
}
|
|
55333
55333
|
startFenceAssistant(e, t) {
|
|
55334
55334
|
return this._configurationAssistant.start(t, e, async (e, t, n) => {
|
|
55335
|
-
let { createConstructionAssistant: r } = await import("./construction-assistant-
|
|
55335
|
+
let { createConstructionAssistant: r } = await import("./construction-assistant-B5KYz2u1.mjs");
|
|
55336
55336
|
return t.throwIfAborted(), r(this, e, t, n);
|
|
55337
55337
|
});
|
|
55338
55338
|
}
|
|
@@ -55574,7 +55574,7 @@ var ey = "<plan version=\"2\"><walls><nodes/><edges/></walls><planobjects/><text
|
|
|
55574
55574
|
globalInitData: JSON.parse(JSON.stringify(this._globalInitData))
|
|
55575
55575
|
}, "*", [t.port2]);
|
|
55576
55576
|
let n = Fv(t.port1), r = null;
|
|
55577
|
-
this._initData.hi?.libraryId && (r = n.onLoadArticleCatalog(this._initData.hi.libraryId), this._earlyHiTagCatalogCallbacks = new $v(this._creator_, r)), await new (await (import("./homag-intelligence-
|
|
55577
|
+
this._initData.hi?.libraryId && (r = n.onLoadArticleCatalog(this._initData.hi.libraryId), this._earlyHiTagCatalogCallbacks = new $v(this._creator_, r)), await new (await (import("./homag-intelligence-DUxhYyh-.mjs"))).HomagIntelligence(this, e, n, () => this._plannerKernelAccess.arrangementCorrectionEnabled).loadSavedPosData(), this._initData.hi?.libraryId && await this.loadExternalObjectLibrary(this._initData.hi.libraryId, r ?? void 0);
|
|
55578
55578
|
}
|
|
55579
55579
|
async _loadHomagIntelligenceArticles(e, t) {
|
|
55580
55580
|
let n = this._homagIntelligence;
|
|
@@ -66070,7 +66070,7 @@ var nA = [
|
|
|
66070
66070
|
static getConfigurator(e, t) {
|
|
66071
66071
|
t = this._setupDI(X.CONFIGURATOR, e, t);
|
|
66072
66072
|
let n = rA.lookup("global-init-data");
|
|
66073
|
-
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./configurator-
|
|
66073
|
+
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./configurator-DvBdnLQf.mjs").then(({ Configurator: n }) => e(new n(t)), n)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
|
|
66074
66074
|
}
|
|
66075
66075
|
static getPlanner(e, t) {
|
|
66076
66076
|
return this._getPlanner(e, t);
|
|
@@ -66081,15 +66081,15 @@ var nA = [
|
|
|
66081
66081
|
static async getGlbViewer(e, t) {
|
|
66082
66082
|
t = this._setupDI(X.GLB_VIEWER, e, t);
|
|
66083
66083
|
let n = rA.lookup("global-init-data");
|
|
66084
|
-
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./glb-viewer-
|
|
66084
|
+
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./glb-viewer-DHllBSkw.mjs").then(({ GlbViewer: n }) => e(new n(t)), n)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
|
|
66085
66085
|
}
|
|
66086
66086
|
static getMaterialViewer(e, t) {
|
|
66087
66087
|
t = this._setupDI(X.CONFIGURATOR, e, t);
|
|
66088
66088
|
let n = rA.lookup("global-init-data");
|
|
66089
|
-
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./material-viewer-
|
|
66089
|
+
return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./material-viewer-BcoauhFx.mjs").then(({ MaterialViewer: n }) => e(new n(t)), n)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
|
|
66090
66090
|
}
|
|
66091
66091
|
static getCoreTools(e, t) {
|
|
66092
|
-
return t = this._setupDI(X.TOOLS_CORE, e, t), new Promise((e, n) => import("./tools-core-
|
|
66092
|
+
return t = this._setupDI(X.TOOLS_CORE, e, t), new Promise((e, n) => import("./tools-core-Ur7lWfW8.mjs").then(({ ToolsCore: n }) => {
|
|
66093
66093
|
let r = new n(t);
|
|
66094
66094
|
r.boot(), e(r);
|
|
66095
66095
|
}, n));
|
|
@@ -66117,7 +66117,7 @@ var nA = [
|
|
|
66117
66117
|
}
|
|
66118
66118
|
static _getPlanner(e, t, n) {
|
|
66119
66119
|
let r = this._setupDI(X.PLANNER, e, t), i = rA.lookup("global-init-data");
|
|
66120
|
-
return i === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : i.configuratorId ? new Promise((e, t) => import("./planner-
|
|
66120
|
+
return i === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : i.configuratorId ? new Promise((e, t) => import("./planner-ClEWwUQL.mjs").then(({ Planner: t }) => {
|
|
66121
66121
|
e(n ? new t(r, n) : new t(r));
|
|
66122
66122
|
}, t)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
|
|
66123
66123
|
}
|
|
@@ -66134,4 +66134,4 @@ var nA = [
|
|
|
66134
66134
|
//#endregion
|
|
66135
66135
|
export { wl as $, Tm as A, gf as B, ug as C, Jm as D, rh as E, rp as F, Md as G, nf as H, Y as I, Hu as J, md as K, Jf as L, Op as M, Cp as N, Wm as O, bp as P, Pl as Q, Wf as R, dg as S, rg as T, Kd as U, hf as V, zd as W, Nu as X, Iu as Y, Eu as Z, yg as _, Wa as _t, hO as a, vs as at, gg as b, Ma as bt, Wy as c, ts as ct, Ay as d, H as dt, _l as et, Dy as f, U as ft, Og as g, Ao as gt, xv as h, jo as ht, bO as i, K as it, X as j, wm as k, Uy as l, Bo as lt, Sv as m, Fo as mt, rA as n, fl as nt, FS as o, is as ot, cy as p, Io as pt, rd as q, nA as r, Zc as rt, IS as s, rs as st, iA as t, hl as tt, Hy as u, zo as ut, _g as v, Ra as vt, ig as w, mg as x, vg as y, Na as yt, Uf as z };
|
|
66136
66136
|
|
|
66137
|
-
//# sourceMappingURL=roomle-sdk-
|
|
66137
|
+
//# sourceMappingURL=roomle-sdk-CMP8F6qv.mjs.map
|