@roomle/embedding-lib 9.0.0-alpha.1 → 9.0.0-alpha.11

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.
Files changed (72) hide show
  1. package/THIRD-PARTY-NOTICES.txt +764 -0
  2. package/{browser-BxG7yIaK.mjs → browser-D6As4Zxr.mjs} +1 -0
  3. package/{browser-CW9o-dtT.mjs → browser-zrjtYpL8.mjs} +1 -0
  4. package/coerce-CqJod_GZ.mjs +8 -0
  5. package/coerce-CsI42_k0.mjs +6 -0
  6. package/{comlink-B5lV2OWp.mjs → comlink-Cmiqa2s0.mjs} +1 -0
  7. package/{comlink-B2Kj_5Ge.mjs → comlink-Dc3LZUoi.mjs} +1 -0
  8. package/configurator.d.ts +2 -0
  9. package/configurator.js +29 -0
  10. package/configurator.min.js +27 -0
  11. package/dist-5jYYtT4q.mjs +8216 -0
  12. package/dist-B9yy8ym8.mjs +5512 -0
  13. package/dist-BV-32IEX.mjs +8128 -0
  14. package/dist-Bb2L1Zel.mjs +6045 -0
  15. package/dist-Bo3WzRdf.mjs +6223 -0
  16. package/dist-Bt1FopV4.mjs +7594 -0
  17. package/dist-C5fKJXpB.mjs +5598 -0
  18. package/dist-COgAdYY1.mjs +7554 -0
  19. package/dist-CXemOs84.mjs +849 -0
  20. package/dist-CqP0aX0A.mjs +866 -0
  21. package/dist-CqpDM10w.mjs +1179 -0
  22. package/dist-D0kh4WfT.mjs +7721 -0
  23. package/dist-D5HdKuwj.mjs +1221 -0
  24. package/dist-DJtonrDM.mjs +16906 -0
  25. package/dist-GTk8ppiK.mjs +8380 -0
  26. package/dist-XEy6Tk_Y.mjs +17341 -0
  27. package/docs/md/web/embedding/CHANGELOG.md +284 -98
  28. package/{drag-ghost-BQ8r6NVo.mjs → drag-ghost-D7FnWbO4.mjs} +2 -1
  29. package/{drag-ghost-BOwjMbG3.mjs → drag-ghost-yXe7c8jA.mjs} +2 -1
  30. package/{drag-in-QhL3zGC0.mjs → drag-in-BiEe2Lgv.mjs} +15 -20
  31. package/{drag-in-BP_E53zb.mjs → drag-in-t7T6Pqwc.mjs} +10 -15
  32. package/embedding-plugins.js +2 -1
  33. package/embedding-plugins.min.js +2 -1
  34. package/experimental-evaluation-BgWFolud.mjs +1074 -0
  35. package/experimental-evaluation-D56MbtjO.mjs +970 -0
  36. package/{from-custom-view-D2Z1YmCx.mjs → from-custom-view-CTBapIc6.mjs} +31 -30
  37. package/{from-custom-view-BM_zRJCf.mjs → from-custom-view-xbjgsLll.mjs} +32 -31
  38. package/{from-website-CPVeVVMI.mjs → from-website-DUPMQPl6.mjs} +24 -23
  39. package/{from-website-DlklVbxU.mjs → from-website-JwG7Ic_U.mjs} +24 -23
  40. package/hi.js +250 -111
  41. package/hi.min.js +212 -95
  42. package/mcp-tools-CJ7j_FI2.mjs +151 -0
  43. package/mcp-tools-D__M74CZ.mjs +153 -0
  44. package/package.json +12 -1
  45. package/packages/embedding-lib/src/configurator-agent/configurator-mcp-tools.d.ts +4 -0
  46. package/packages/embedding-lib/src/configurator-agent/configurator-planning-assistant.d.ts +13 -0
  47. package/packages/embedding-lib/src/configurator.d.ts +3 -0
  48. package/packages/embedding-lib/src/hi.d.ts +1 -3
  49. package/packages/embedding-lib/src/homag-intelligence/hi-mcp-tools.d.ts +11 -11
  50. package/packages/embedding-lib/src/homag-intelligence/hi-planning-assistant.d.ts +11 -34
  51. package/packages/embedding-lib/src/homag-intelligence/hi-planning-usage.d.ts +54 -0
  52. package/packages/embedding-lib/src/planning-assistant/chat-model.d.ts +1 -0
  53. package/packages/embedding-lib/src/planning-assistant/mcp-tools.d.ts +2 -0
  54. package/packages/web-sdk/packages/assistant.d.ts +3 -0
  55. package/packages/web-sdk/packages/common-core/src/agent-tools/mcp-tool-types.d.ts +30 -0
  56. package/packages/web-sdk/packages/common-core/src/planning-assistant/chat-model.d.ts +8 -0
  57. package/packages/{embedding-lib/src/homag-intelligence/hi-mcp/mcp-tool-types.d.ts → web-sdk/packages/common-core/src/planning-assistant/mcp-tools.d.ts} +15 -20
  58. package/packages/web-sdk/packages/common-core/src/planning-assistant/types.d.ts +35 -0
  59. package/roomle-embedding-lib.js +67 -57
  60. package/roomle-embedding-lib.min.js +13 -3
  61. package/sbom.cdx.json +405 -0
  62. package/{utils-wJ80awOA.mjs → utils-CAAGdgk8.mjs} +1 -0
  63. package/{utils-DxJ3PcKe.mjs → utils-WeolMfC5.mjs} +1 -0
  64. package/hi-mcp-server-BiZlFkBm.mjs +0 -4866
  65. package/hi-mcp-server-DTQnrykg.mjs +0 -5278
  66. package/packages/embedding-lib/src/homag-intelligence/hi-mcp/agent-facing.d.ts +0 -35
  67. package/packages/embedding-lib/src/homag-intelligence/hi-mcp/hi-mcp-server.d.ts +0 -3
  68. package/packages/embedding-lib/src/homag-intelligence/hi-mcp/mcp-tool.d.ts +0 -13
  69. package/packages/embedding-lib/src/homag-intelligence/hi-mcp/plan-history.d.ts +0 -33
  70. package/packages/embedding-lib/src/homag-intelligence/hi-mcp/planner-api.d.ts +0 -32
  71. package/packages/embedding-lib/src/homag-intelligence/hi-mcp/skills.d.ts +0 -23
  72. package/packages/embedding-lib/src/homag-intelligence/hi-mcp/tool-executors.d.ts +0 -4
@@ -1,4 +1,5 @@
1
- import { t as e } from "./browser-CW9o-dtT.mjs";
1
+ /*! Third-party licenses: THIRD-PARTY-NOTICES.txt and sbom.cdx.json in the root of this package */
2
+ import { t as e } from "./browser-zrjtYpL8.mjs";
2
3
  //#region packages/common/src/utils/message-handler.ts
3
4
  var t = class {
4
5
  _side;
@@ -97,6 +98,14 @@ var t = class {
97
98
  }, c = /* @__PURE__ */ function(e) {
98
99
  return e.BOTTOM_BAR = "bottom_bar", e.PARTLIST_BOUNDS = "partlist_bounds", e.INTERACTION_NOTES = "interaction_notes", e.PARAMETER_GROUPS = "parameter_groups", e;
99
100
  }({}), l = (e) => JSON.parse(JSON.stringify(e)), u = {
101
+ staging: !1,
102
+ theme: "scandinavian",
103
+ density: "balanced",
104
+ light: "soft",
105
+ birdsEyeView: "adjust",
106
+ debug: !1,
107
+ stage: "alpha"
108
+ }, d = {
100
109
  mobileLandscape: !0,
101
110
  floorMaterialRootTag: "materials_root",
102
111
  buttons: {
@@ -124,35 +133,36 @@ var t = class {
124
133
  openCloseAnimation: !0,
125
134
  localExport3d: !1
126
135
  },
136
+ imageGenConfig: u,
127
137
  configuratorZoom: !1,
128
138
  rotationSnapDegrees: 10,
129
139
  interactionsCollapsed: !1
130
- }, d = (e) => (p(e), e?.customApiUrl && (e.customApiUrl = decodeURIComponent(e.customApiUrl)), e.shareUrl && (e.deeplink = e.shareUrl.replace(h, g)), e), f = (e) => e.trim() !== "" && Number.isFinite(Number(e.trim())), p = (e) => {
140
+ }, f = (e) => (m(e), e?.customApiUrl && (e.customApiUrl = decodeURIComponent(e.customApiUrl)), e.shareUrl && (e.deeplink = e.shareUrl.replace(g, _)), e), p = (e) => e.trim() !== "" && Number.isFinite(Number(e.trim())), m = (e) => {
131
141
  if (!e || typeof e != "object") return;
132
142
  let t = Object.keys(e);
133
143
  for (let n of t) {
134
144
  let t = e[n];
135
- if (!Array.isArray(t) && typeof t == "object" && t && p(t), Array.isArray(t)) for (let e of t) p(e);
136
- t === "true" || t === "false" ? e[n] = t === "true" : typeof t == "string" && f(t) && (e[n] = Number(t));
145
+ if (!Array.isArray(t) && typeof t == "object" && t && m(t), Array.isArray(t)) for (let e of t) m(e);
146
+ t === "true" || t === "false" ? e[n] = t === "true" : typeof t == "string" && p(t) && (e[n] = Number(t));
137
147
  }
138
- }, m = () => {
139
- let t = l(u);
148
+ }, h = () => {
149
+ let t = l(d);
140
150
  t.locale ||= e(null, !0), t.id === "(idle)" && delete t.id;
141
151
  let n = i();
142
152
  return n && a(n) && (t.configuratorId = "demoConfigurator"), t.customApiUrl = "https://rubens.alpha.roomle.com/api/v2", t.emails = !1, t;
143
- }, h = "<CONF_ID>", g = "#CONFIGURATIONID#", _ = (e) => {
153
+ }, g = "<CONF_ID>", _ = "#CONFIGURATIONID#", v = (e) => {
144
154
  let t = e.featureFlags;
145
155
  if (!t || typeof t != "object" || Array.isArray(t)) return;
146
156
  let n = t;
147
157
  "enableTwoLevelCatalog" in n && typeof n.enableTwoLevelCatalog == "boolean" && (e.enableTwoLevelCatalog === !1 || e.enableTwoLevelCatalog === void 0) && (e.enableTwoLevelCatalog = n.enableTwoLevelCatalog), "webGpu" in n && typeof n.webGpu == "boolean" && (e.webGpu === !1 || e.webGpu === void 0) && (e.webGpu = n.webGpu);
148
- }, v = (e) => {
158
+ }, y = (e) => {
149
159
  e.featureFlags ||= {}, typeof e.featureFlags.realPartList != "boolean" && (e.featureFlags.realPartList = !0), typeof e.featureFlags.globalCallbacks != "boolean" && (e.featureFlags.globalCallbacks = !0), typeof e.featureFlags.mocAr != "boolean" && (e.featureFlags.mocAr = !1);
150
- }, y = (e, t) => {
151
- let n = l(t), r = m();
152
- v(r);
160
+ }, b = (e, t) => {
161
+ let n = l(t), r = h();
162
+ y(r);
153
163
  let i = o(o(r, e.settings || {}), n);
154
- return i.configuratorId = e.id, !i.overrideTenant && e.tenant && (i.overrideTenant = e.tenant), _(i), i;
155
- }, b = () => /(android)/i.test(navigator.userAgent), x = class {
164
+ return i.configuratorId = e.id, !i.overrideTenant && e.tenant && (i.overrideTenant = e.tenant), v(i), i;
165
+ }, x = () => /(android)/i.test(navigator.userAgent), S = class {
156
166
  _messageHandler = null;
157
167
  isSetupDone = !1;
158
168
  viewName = "main";
@@ -194,7 +204,7 @@ var t = class {
194
204
  setupPlugins(e, t, n = "website") {
195
205
  for (let r of e) typeof r == "string" && r === "dragIn" ? this.pluginsLoaded.push(new Promise((e, r) => {
196
206
  try {
197
- import("./drag-in-QhL3zGC0.mjs").then((e) => e.n).then(({ DragIn: i }) => {
207
+ import("./drag-in-BiEe2Lgv.mjs").then((e) => e.n).then(({ DragIn: i }) => {
198
208
  let a = new i(this.ui, t, n, this.viewName);
199
209
  a.init().then(() => {
200
210
  this.plugins.dragIn = a, e();
@@ -216,7 +226,7 @@ var t = class {
216
226
  }
217
227
  }));
218
228
  }
219
- }, S = () => {
229
+ }, C = () => {
220
230
  let e, t;
221
231
  return {
222
232
  promise: new Promise((n, r) => {
@@ -229,7 +239,7 @@ var t = class {
229
239
  //#endregion
230
240
  //#region packages/common/src/utils/rapi-version.ts
231
241
  (/* @__PURE__ */ "/items./items/{id}./items/{id}/renderings./items/{id}/conversions./items/{id}/3d-exports./items/{id}/perspectiveImage./items/{id}/perspectiveImageHD./items/{id}/topImage./items/{id}/tags./items/{id}/tagConnections./items/{id}/additionalContents./items/{id}/assetProcessings./items/{id}/3dAssets/{format}./items/{id}/3dAssets/{format}/{dummyFileName}./configurations./configurations/{id}./configurations/{id}/shares./configurations/{id}/renderings./configurations/{id}/3d-exports./configurations/{id}/3dAssets/{format}./configurations/{id}/3dAssets/{format}/{dummyFileName}./auth/signin./auth/signout./auth/reset./auth/reset/confirm./auth/change/pwd./auth/context./assets/analyze./version".split(".")).map((e) => RegExp("^" + e.replace(/\{[^}]+\}/g, "[^/]+") + "/?$"));
232
- var C = /\/v[23]\/?$/, w = (e, t) => C.test(e) ? e.replace(C, "/v2") + t : e + t, T = {
242
+ var w = /\/v[23]\/?$/, T = (e, t) => w.test(e) ? e.replace(w, "/v2") + t : e + t, E = {
233
243
  SDK: "extended",
234
244
  CONFIGURATOR_SDK: "configurator",
235
245
  CALLBACKS: "callbacks",
@@ -237,22 +247,22 @@ var C = /\/v[23]\/?$/, w = (e, t) => C.test(e) ? e.replace(C, "/v2") + t : e + t
237
247
  ANALYTICS: "analytics",
238
248
  GLOBAL: "global",
239
249
  RAPI: "rapi"
240
- }, E = ".", D = T.SDK + "." + T.CALLBACKS, O = {
250
+ }, D = ".", O = E.SDK + "." + E.CALLBACKS, k = {
241
251
  REQUEST_BOOT: "requestBoot",
242
252
  SETUP: "setup",
243
253
  WEBSITE_READY: "websiteReady"
244
- }, k = {
254
+ }, A = {
245
255
  GET_METHODS: "getMethods",
246
256
  RETURN_METHODS: "returnMethods",
247
257
  REGISTER_CUSTOM_VIEW: "registerCustomView",
248
258
  REGISTER_CUSTOM_VIEW_DONE: "registerCustomViewDone"
249
- }, A = ["constructor", "callbacks"], j = (e) => e[0] !== "_" && !A.includes(e), M = (e, t, n = !1) => {
259
+ }, j = ["constructor", "callbacks"], M = (e) => e[0] !== "_" && !j.includes(e), N = (e, t, n = !1) => {
250
260
  if (!e) return [];
251
- let r = Object.getOwnPropertyNames(e), i = n ? T.CALLBACKS + "." : "";
252
- return r.filter(j).map((e) => t + "." + i + e);
253
- }, N = async (e, t) => {
261
+ let r = Object.getOwnPropertyNames(e), i = n ? E.CALLBACKS + "." : "";
262
+ return r.filter(M).map((e) => t + "." + i + e);
263
+ }, P = async (e, t) => {
254
264
  if (typeof e != "string") throw Error("Configurator ID is not a string type: \"" + typeof e + "\"");
255
- let n = t.customApiUrl ? t.customApiUrl : "https://api.roomle.com/v2", r = t.overrideTenant || 9, i = w(n, "/configurators/" + e), a = "03-" + window.btoa((/* @__PURE__ */ new Date()).toISOString() + ";anonymous;roomle_portal_v2"), o = new Request(i, {
265
+ let n = t.customApiUrl ? t.customApiUrl : "https://api.roomle.com/v2", r = t.overrideTenant || 9, i = T(n, "/configurators/" + e), a = "03-" + window.btoa((/* @__PURE__ */ new Date()).toISOString() + ";anonymous;roomle_portal_v2"), o = new Request(i, {
256
266
  method: "GET",
257
267
  headers: new Headers({
258
268
  apiKey: "roomle_portal_v2",
@@ -267,7 +277,7 @@ var C = /\/v[23]\/?$/, w = (e, t) => C.test(e) ? e.replace(C, "/v2") + t : e + t
267
277
  cache: "default"
268
278
  }), { configurator: s } = await (await fetch(o)).json();
269
279
  return s;
270
- }, P = "data-rml-interaction-container", F = (e, t, n) => {
280
+ }, F = "data-rml-interaction-container", I = (e, t, n) => {
271
281
  let r = null;
272
282
  Object.defineProperty(e, t, {
273
283
  get() {
@@ -277,28 +287,28 @@ var C = /\/v[23]\/?$/, w = (e, t) => C.test(e) ? e.replace(C, "/v2") + t : e + t
277
287
  e?.mute ? r = e.value : (console.warn("You override Roomle defined behaviour. To disalbe this warning pass in an object with the following properties"), console.warn("{ mute: true, value: () => void }"), r = e);
278
288
  }
279
289
  });
280
- }, I = () => window.innerHeight * .01 + "px", L = (e) => {
281
- e && setTimeout(() => e.style.setProperty(B, I()), 0);
282
- }, R = "rml-styles", z = 450, B = "--rml-full-height", V = {
290
+ }, L = () => window.innerHeight * .01 + "px", R = (e) => {
291
+ e && setTimeout(() => e.style.setProperty(V, L()), 0);
292
+ }, z = "rml-styles", B = 450, V = "--rml-full-height", H = {
283
293
  CONTAINER: "rml-container",
284
294
  FILL: "rml-fill",
285
295
  POSITION: "rml-pos",
286
296
  TRANSITION: "rml-transition",
287
297
  ANDROID_HEIGHT: "rml-android-height",
288
298
  OVERFLOW_HIDDEN: "rml-overflow-hidden"
289
- }, H = /* @__PURE__ */ new Map(), U = class extends x {
299
+ }, U = /* @__PURE__ */ new Map(), W = class extends S {
290
300
  static createPlanner(e, t, n, r = []) {
291
301
  return this._create(e, t, n, r);
292
302
  }
293
303
  static async connect(e, n = []) {
294
- let r = new x();
304
+ let r = new S();
295
305
  r.viewName = e;
296
- let { resolve: i, promise: a } = S(), { resolve: o, promise: s } = S(), c = new t("custom-view-" + e, window, window.parent, ({ message: e, args: t }) => {
306
+ let { resolve: i, promise: a } = C(), { resolve: o, promise: s } = C(), c = new t("custom-view-" + e, window, window.parent, ({ message: e, args: t }) => {
297
307
  switch (e) {
298
- case k.REGISTER_CUSTOM_VIEW_DONE:
308
+ case A.REGISTER_CUSTOM_VIEW_DONE:
299
309
  i();
300
310
  break;
301
- case k.RETURN_METHODS:
311
+ case A.RETURN_METHODS:
302
312
  r.handleSetup(t[0]), o();
303
313
  break;
304
314
  default: if (r.isSetupDone) return r.executeMessage({
@@ -309,7 +319,7 @@ var C = /\/v[23]\/?$/, w = (e, t) => C.test(e) ? e.replace(C, "/v2") + t : e + t
309
319
  });
310
320
  r.setMessageHandler(c);
311
321
  let l = [e];
312
- return c.sendMessage(k.REGISTER_CUSTOM_VIEW, l), await a, c.sendMessage(k.GET_METHODS, l), await s, r.setupPlugins(n, document.body, "custom-view"), await Promise.allSettled(r.pluginsLoaded), r;
322
+ return c.sendMessage(A.REGISTER_CUSTOM_VIEW, l), await a, c.sendMessage(A.GET_METHODS, l), await s, r.setupPlugins(n, document.body, "custom-view"), await Promise.allSettled(r.pluginsLoaded), r;
313
323
  }
314
324
  static createConfigurator(e, t, n, r = []) {
315
325
  return this._create(e, t, n, r);
@@ -323,10 +333,10 @@ var C = /\/v[23]\/?$/, w = (e, t) => C.test(e) ? e.replace(C, "/v2") + t : e + t
323
333
  static async _create(e, t, n, r) {
324
334
  return new Promise(async (i, a) => {
325
335
  try {
326
- let a = d(n), s = m();
327
- v(s);
328
- let c = await N(e, o(s, a));
329
- n = y(c, a);
336
+ let a = f(n), s = h();
337
+ y(s);
338
+ let c = await P(e, o(s, a));
339
+ n = b(c, a);
330
340
  let l = new this(c, t, n, r, i);
331
341
  return await Promise.allSettled(l.pluginsLoaded), l;
332
342
  } catch (e) {
@@ -341,51 +351,51 @@ var C = /\/v[23]\/?$/, w = (e, t) => C.test(e) ? e.replace(C, "/v2") + t : e + t
341
351
  _iframe;
342
352
  constructor(e, n, r, i, a) {
343
353
  if (super(), !e || typeof e.id != "string") throw Error("Please provide a correct configuratorId, you get the correct ID from your Roomle Contact Person");
344
- if (H.has(n)) throw Error("There is already an instance on this DOM element");
345
- if (!document.getElementById(R)) {
354
+ if (U.has(n)) throw Error("There is already an instance on this DOM element");
355
+ if (!document.getElementById(z)) {
346
356
  let e = r.zIndex || 9999999, t = document.createElement("style");
347
- t.type = "text/css", t.id = R;
348
- let n = "transition:all ease-in-out " + z + "ms;", i = ["-webkit-", "-o-"].reduce((e, t) => e += t + n, "") + n, a = I();
357
+ t.type = "text/css", t.id = z;
358
+ let n = "transition:all ease-in-out " + B + "ms;", i = ["-webkit-", "-o-"].reduce((e, t) => e += t + n, "") + n, a = L();
349
359
  t.innerHTML = `
350
- .${V.CONTAINER}{${B}:${a};}
351
- .${V.POSITION}{position:fixed;top:0;left:0;z-index:${e};opacity:0}
352
- .${V.TRANSITION}{${i}}
353
- .${V.FILL}{width:100%;height:100%;opacity:1}
354
- .${V.ANDROID_HEIGHT}{height:calc(var(${B},1vh)*100)}
355
- .${V.OVERFLOW_HIDDEN}{overflow:hidden}
360
+ .${H.CONTAINER}{${V}:${a};}
361
+ .${H.POSITION}{position:fixed;top:0;left:0;z-index:${e};opacity:0}
362
+ .${H.TRANSITION}{${i}}
363
+ .${H.FILL}{width:100%;height:100%;opacity:1}
364
+ .${H.ANDROID_HEIGHT}{height:calc(var(${V},1vh)*100)}
365
+ .${H.OVERFLOW_HIDDEN}{overflow:hidden}
356
366
  `, document.head.appendChild(t);
357
367
  }
358
368
  this._executeMessage = this._executeMessage.bind(this);
359
369
  let o = new t("website", window, null, this._executeMessage);
360
- this.setMessageHandler(o), this._onResize = this._onResize.bind(this), b() && window.addEventListener("resize", this._onResize), this._container = n, this._initData = r, this._configuratorSettings = e;
370
+ this.setMessageHandler(o), this._onResize = this._onResize.bind(this), x() && window.addEventListener("resize", this._onResize), this._container = n, this._initData = r, this._configuratorSettings = e;
361
371
  let s = this._createIframe();
362
- this._onUseFullPage = this._onUseFullPage.bind(this), this._onBackToWebsite = this._onBackToWebsite.bind(this), this._waitForIframe = a, this._container.appendChild(s), this._iframe = s, this.setupPlugins(i, this._iframe), H.set(n, !0);
372
+ this._onUseFullPage = this._onUseFullPage.bind(this), this._onBackToWebsite = this._onBackToWebsite.bind(this), this._waitForIframe = a, this._container.appendChild(s), this._iframe = s, this.setupPlugins(i, this._iframe), U.set(n, !0);
363
373
  }
364
374
  teardown() {
365
- this._container && H.delete(this._container);
375
+ this._container && U.delete(this._container);
366
376
  let e = this._container.querySelector("iframe");
367
377
  e && this._container.removeChild(e), window.removeEventListener("resize", this._onResize);
368
378
  }
369
379
  _createIframe() {
370
380
  let e = document.createElement("iframe"), t = this._configuratorSettings?.url || "https://www.roomle.com/t/cp/";
371
- return this._initData.useLocalRoomle && (t = location.href.replace("embedding.html", "")), location.href.includes("roomle.gitlab.io") && (t = location.href.replace("embedding.html", "index.html")), this._initData.overrideServerUrl && (t = this._initData.overrideServerUrl), e.src = t, e.classList.add(V.CONTAINER), e.classList.add(V.FILL), e;
381
+ return this._initData.useLocalRoomle && (t = location.href.replace("embedding.html", "")), location.href.includes("roomle.gitlab.io") && (t = location.href.replace("embedding.html", "index.html")), this._initData.overrideServerUrl && (t = this._initData.overrideServerUrl), e.src = t, e.allow = "microphone", e.classList.add(H.CONTAINER), e.classList.add(H.FILL), e;
372
382
  }
373
383
  _onResize() {
374
- L(this._iframe);
384
+ R(this._iframe);
375
385
  }
376
386
  _onUseFullPage() {
377
- this._iframe.classList.add(V.POSITION), document.documentElement.classList.add(V.OVERFLOW_HIDDEN), window.document.body.classList.add(V.OVERFLOW_HIDDEN), b() && (L(this._iframe), this._iframe.classList.add(V.ANDROID_HEIGHT));
387
+ this._iframe.classList.add(H.POSITION), document.documentElement.classList.add(H.OVERFLOW_HIDDEN), window.document.body.classList.add(H.OVERFLOW_HIDDEN), x() && (R(this._iframe), this._iframe.classList.add(H.ANDROID_HEIGHT));
378
388
  }
379
389
  _onBackToWebsite() {
380
- this._iframe.classList.remove(V.POSITION), this._iframe.classList.remove(V.ANDROID_HEIGHT), document.documentElement.classList.remove(V.OVERFLOW_HIDDEN), window.document.body.classList.remove(V.OVERFLOW_HIDDEN);
390
+ this._iframe.classList.remove(H.POSITION), this._iframe.classList.remove(H.ANDROID_HEIGHT), document.documentElement.classList.remove(H.OVERFLOW_HIDDEN), window.document.body.classList.remove(H.OVERFLOW_HIDDEN);
381
391
  }
382
392
  _executeMessage({ message: e, args: t }, n) {
383
- if (n.source && n.source === this._iframe?.contentWindow) return e === O.REQUEST_BOOT ? this._messageHandler ? (this._messageHandler.setOutgoingMessageBus(n.source), Promise.resolve({ result: this._initData })) : (console.error("MessageHandler not set"), Promise.resolve({ error: "MessageHandler not set" })) : e === O.SETUP ? (this.handleSetup(t[0]), F(this.ui.callbacks, "onUseFullPage", this._onUseFullPage), F(this.ui.callbacks, "onBackToWebsite", this._onBackToWebsite), this._waitForIframe(this), setTimeout(() => {
393
+ if (n.source && n.source === this._iframe?.contentWindow) return e === k.REQUEST_BOOT ? this._messageHandler ? (this._messageHandler.setOutgoingMessageBus(n.source), Promise.resolve({ result: this._initData })) : (console.error("MessageHandler not set"), Promise.resolve({ error: "MessageHandler not set" })) : e === k.SETUP ? (this.handleSetup(t[0]), I(this.ui.callbacks, "onUseFullPage", this._onUseFullPage), I(this.ui.callbacks, "onBackToWebsite", this._onBackToWebsite), this._waitForIframe(this), setTimeout(() => {
384
394
  if (!this._messageHandler) {
385
395
  console.error("MessageHandler not set");
386
396
  return;
387
397
  }
388
- this._messageHandler.sendMessage(O.WEBSITE_READY);
398
+ this._messageHandler.sendMessage(k.WEBSITE_READY);
389
399
  }, 0), Promise.resolve({ result: null })) : this.executeMessage({
390
400
  message: e,
391
401
  args: t
@@ -393,4 +403,4 @@ var C = /\/v[23]\/?$/, w = (e, t) => C.test(e) ? e.replace(C, "/v2") + t : e + t
393
403
  }
394
404
  };
395
405
  //#endregion
396
- export { O as HANDSHAKE_MESSAGES, P as INTERACTION_CONTAINER_SELECTOR, T as NAMESPACE, E as NAMESPACE_SEPARATOR, D as SDK_CALLBACK, k as WELL_KNOWN_MESSAGES, U as default, N as getConfiguratorSettings, M as getMethodNames, j as isExposable };
406
+ export { k as HANDSHAKE_MESSAGES, F as INTERACTION_CONTAINER_SELECTOR, E as NAMESPACE, D as NAMESPACE_SEPARATOR, O as SDK_CALLBACK, A as WELL_KNOWN_MESSAGES, W as default, P as getConfiguratorSettings, N as getMethodNames, M as isExposable };
@@ -1,4 +1,5 @@
1
- import { t as e } from "./browser-BxG7yIaK.mjs";
1
+ /*! Third-party licenses: THIRD-PARTY-NOTICES.txt and sbom.cdx.json in the root of this package */
2
+ import { t as e } from "./browser-D6As4Zxr.mjs";
2
3
  var t = class {
3
4
  _side;
4
5
  _incomingMessageBus = null;
@@ -102,6 +103,15 @@ var t = class {
102
103
  openCloseAnimation: !0,
103
104
  localExport3d: !1
104
105
  },
106
+ imageGenConfig: {
107
+ staging: !1,
108
+ theme: "scandinavian",
109
+ density: "balanced",
110
+ light: "soft",
111
+ birdsEyeView: "adjust",
112
+ debug: !1,
113
+ stage: "alpha"
114
+ },
105
115
  configuratorZoom: !1,
106
116
  rotationSnapDegrees: 10,
107
117
  interactionsCollapsed: !1
@@ -175,7 +185,7 @@ var t = class {
175
185
  setupPlugins(e, t, n = "website") {
176
186
  for (let r of e) typeof r == "string" && r === "dragIn" ? this.pluginsLoaded.push(new Promise((e, r) => {
177
187
  try {
178
- import("./drag-in-BP_E53zb.mjs").then((e) => e.n).then(({ DragIn: i }) => {
188
+ import("./drag-in-t7T6Pqwc.mjs").then((e) => e.n).then(({ DragIn: i }) => {
179
189
  let a = new i(this.ui, t, n, this.viewName);
180
190
  a.init().then(() => {
181
191
  this.plugins.dragIn = a, e();
@@ -343,7 +353,7 @@ var h = /\/v[23]\/?$/, g = {
343
353
  }
344
354
  _createIframe() {
345
355
  let e = document.createElement("iframe"), t = this._configuratorSettings?.url || "https://www.roomle.com/t/cp/";
346
- return this._initData.useLocalRoomle && (t = location.href.replace("embedding.html", "")), location.href.includes("roomle.gitlab.io") && (t = location.href.replace("embedding.html", "index.html")), this._initData.overrideServerUrl && (t = this._initData.overrideServerUrl), e.src = t, e.classList.add(j), e.classList.add(M), e;
356
+ return this._initData.useLocalRoomle && (t = location.href.replace("embedding.html", "")), location.href.includes("roomle.gitlab.io") && (t = location.href.replace("embedding.html", "index.html")), this._initData.overrideServerUrl && (t = this._initData.overrideServerUrl), e.src = t, e.allow = "microphone", e.classList.add(j), e.classList.add(M), e;
347
357
  }
348
358
  _onResize() {
349
359
  O(this._iframe);