@roomle/web-sdk 4.2.0-alpha.4 → 4.2.0-alpha.6

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 (44) hide show
  1. package/lib/ConfiguratorKernel.wasm +0 -0
  2. package/lib/RoomleCore.wasm +0 -0
  3. package/lib/RoomleToolsCore.wasm +0 -0
  4. package/lib/{api-D4K3PT_C.mjs → api-BLq1R3-4.mjs} +2 -2
  5. package/lib/{api-D4K3PT_C.mjs.map → api-BLq1R3-4.mjs.map} +1 -1
  6. package/lib/asset-loader.worker-eqHzNAwa.mjs.map +1 -1
  7. package/lib/budgeteer.sw-BUMElkO1.mjs.map +1 -1
  8. package/lib/{configurator-B_N3E-fU.mjs → configurator-CwIk-B5a.mjs} +3 -3
  9. package/lib/{configurator-B_N3E-fU.mjs.map → configurator-CwIk-B5a.mjs.map} +1 -1
  10. package/lib/configurator-DygHcna3.mjs +2 -0
  11. package/lib/{glb-viewer-CD_K6nh8.mjs → glb-viewer-5iVRE4n1.mjs} +3 -3
  12. package/lib/{glb-viewer-CD_K6nh8.mjs.map → glb-viewer-5iVRE4n1.mjs.map} +1 -1
  13. package/lib/glb-viewer-DvSuYuGl.mjs +2 -0
  14. package/lib/{homag-intelligence-Df4SRelQ.mjs → homag-intelligence-C7Zqo3V_.mjs} +3 -3
  15. package/lib/{homag-intelligence-Df4SRelQ.mjs.map → homag-intelligence-C7Zqo3V_.mjs.map} +1 -1
  16. package/lib/{material-viewer-DDDOHL63.mjs → material-viewer-DWNS1ZOd.mjs} +3 -3
  17. package/lib/{material-viewer-DDDOHL63.mjs.map → material-viewer-DWNS1ZOd.mjs.map} +1 -1
  18. package/lib/{packages-aOLE-uAL.mjs → packages-DqNe-wvN.mjs} +5 -5
  19. package/lib/{packages-aOLE-uAL.mjs.map → packages-DqNe-wvN.mjs.map} +1 -1
  20. package/lib/planner-BN-INmBq.mjs +2 -0
  21. package/lib/{planner-CJh1gqtX.mjs → planner-Hn1fJ9Dw.mjs} +3 -3
  22. package/lib/{planner-CJh1gqtX.mjs.map → planner-Hn1fJ9Dw.mjs.map} +1 -1
  23. package/lib/roomle-headless.js +8 -8
  24. package/lib/{roomle-sdk-Dj9Zd1PS.mjs → roomle-sdk-DSdFYBMN.mjs} +61 -51
  25. package/lib/roomle-sdk-DSdFYBMN.mjs.map +1 -0
  26. package/lib/roomle-sdk.js +6 -6
  27. package/lib/{roomle-webgpu-renderer-CNZiK43x.mjs → roomle-webgpu-renderer-Dzuy_Y39.mjs} +3 -3
  28. package/lib/{roomle-webgpu-renderer-CNZiK43x.mjs.map → roomle-webgpu-renderer-Dzuy_Y39.mjs.map} +1 -1
  29. package/lib/{script-loader-60UDaEVE.mjs → script-loader-BDC2BMUl.mjs} +2 -2
  30. package/lib/{script-loader-60UDaEVE.mjs.map → script-loader-BDC2BMUl.mjs.map} +1 -1
  31. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/package.json +1 -1
  32. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCoreInterface.d.ts +1 -0
  33. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCoreInterface.js +1 -0
  34. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCoreInterface.js.map +1 -1
  35. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.wasm +0 -0
  36. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleCore.wasm +0 -0
  37. package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleToolsCore.wasm +0 -0
  38. package/lib/{tools-core-1rVSAXUA.mjs → tools-core-JKX3EhBt.mjs} +3 -3
  39. package/lib/{tools-core-1rVSAXUA.mjs.map → tools-core-JKX3EhBt.mjs.map} +1 -1
  40. package/package.json +2 -2
  41. package/lib/configurator-XCSeE4KT.mjs +0 -2
  42. package/lib/glb-viewer-BCdULq80.mjs +0 -2
  43. package/lib/planner-DkI43IZF.mjs +0 -2
  44. package/lib/roomle-sdk-Dj9Zd1PS.mjs.map +0 -1
@@ -37293,13 +37293,13 @@ var _c = () => {
37293
37293
  return e.CONFIGURATOR = "configurator", e.PLANNER = "planner", e.GLB_VIEWER = "glb-viewer", e.MATERIAL_VIEWER = "material-viewer", e.TOOLS_CORE = "tools-core", e;
37294
37294
  }({}), Ic = class {
37295
37295
  constructor(e) {
37296
- e ? this._context = e : this._context = hv.getContext(this.getContextName()), window.TWEEN || (window.TWEEN = new c()), Fc.start("loadingTime");
37296
+ e ? this._context = e : this._context = bv.getContext(this.getContextName()), window.TWEEN || (window.TWEEN = new c()), Fc.start("loadingTime");
37297
37297
  }
37298
37298
  _setupCommonGlobals() {
37299
37299
  window.__RML__DEBUG__ || (window.__RML__DEBUG__ = {}), window.__RML__ENV__ || (window.__RML__ENV__ = {}, window.__RML__ENV__.assetPath || (window.__RML__ENV__.assetPath = ""));
37300
37300
  }
37301
37301
  _setupCommonDependencies() {
37302
- hv.setup(mv);
37302
+ bv.setup(yv);
37303
37303
  let e = kc();
37304
37304
  this.lookup("global-init-data").setOverrides(e), this.lookup("init-data", this._context).setOverrides(e);
37305
37305
  }
@@ -37336,7 +37336,7 @@ var _c = () => {
37336
37336
  e && this.lookup("dom-helper", this._context).setDomElement(e), this.lookup("life-cycle-manager", this._context).resume();
37337
37337
  }
37338
37338
  destroy() {
37339
- this.pause(), this.lookup("life-cycle-manager", this._context).destroy(), hv.cleanUp(this._context);
37339
+ this.pause(), this.lookup("life-cycle-manager", this._context).destroy(), bv.cleanUp(this._context);
37340
37340
  }
37341
37341
  getRapiAccess() {
37342
37342
  return this.lookup("rapi-access", this._context);
@@ -41332,7 +41332,7 @@ var Yu = (e, t) => !e.sort && !t.sort ? 0 : e.sort ? t.sort ? e.sort - t.sort :
41332
41332
  initSceneManager(e) {
41333
41333
  if (e) this._sceneManager = e;
41334
41334
  else {
41335
- let e = hv.lookup("configurator-scene-manager", this._creator_);
41335
+ let e = bv.lookup("configurator-scene-manager", this._creator_);
41336
41336
  if (!e) throw Error("Failed to resolve configurator-scene-manager from DI container");
41337
41337
  this._sceneManager = e;
41338
41338
  }
@@ -42064,7 +42064,7 @@ var Yu = (e, t) => !e.sort && !t.sort ? 0 : e.sort ? t.sort ? e.sort - t.sort :
42064
42064
  return this._sceneManager.getComponent(e);
42065
42065
  }
42066
42066
  async getTools() {
42067
- let e = hv.lookup("roomle-tools-core", this._creator_);
42067
+ let e = bv.lookup("roomle-tools-core", this._creator_);
42068
42068
  if (!e) throw Error("Failed to resolve roomle-tools-core from DI container");
42069
42069
  return await e.init(), e;
42070
42070
  }
@@ -43536,7 +43536,7 @@ var Od = /* @__PURE__ */ function(e) {
43536
43536
  return this.getMeshGenerator().materialQueue;
43537
43537
  }
43538
43538
  _getKernelAccess() {
43539
- let e = hv.lookup("planner-kernel-access", this._creator_);
43539
+ let e = bv.lookup("planner-kernel-access", this._creator_);
43540
43540
  if (!e) throw Error("PlannerKernelAccess not found in dependency injection");
43541
43541
  return e;
43542
43542
  }
@@ -47582,7 +47582,7 @@ var Jp = class {
47582
47582
  let { x: n, y: r } = this._domHelper.getClientDimensions();
47583
47583
  if (t ||= !1, t || (this._scene.background = this._initData.colors.DEFAULT_BACKGROUND), this._initData.webGpu) {
47584
47584
  let { WebGPURenderer: e } = await import("./three.webgpu-bR4-ABJu.mjs");
47585
- this._renderer = new e({ antialias: !1 }), await this._renderer.init();
47585
+ this._renderer = new e({ antialias: !1 }), this._renderer.setClearColor(new M(1, 1, 1), 1), await this._renderer.init();
47586
47586
  } else this._renderer = new Hn({
47587
47587
  antialias: !this._globalInitData?.e2e,
47588
47588
  alpha: !0
@@ -47597,7 +47597,7 @@ var Jp = class {
47597
47597
  }, this._initData.linearAoFilter);
47598
47598
  e.setQualityMap(Tp), e.setAutoQuality(this._initData.autoQuality), this._initData.debug && e.loadLutImages(Kp), this._roomleRenderer = e;
47599
47599
  } else {
47600
- let { RoomleWebGPURenderer: e } = await import("./roomle-webgpu-renderer-CNZiK43x.mjs"), t = new e(this._creator_, this._renderer, !0, {
47600
+ let { RoomleWebGPURenderer: e } = await import("./roomle-webgpu-renderer-Dzuy_Y39.mjs"), t = new e(this._creator_, this._renderer, !0, {
47601
47601
  outlineVisibleEdgeColor: this._initData.colors.SELECTION.getHex(),
47602
47602
  outlineHiddenEdgeColor: this._initData.colors.SELECTION.getHex()
47603
47603
  });
@@ -48051,7 +48051,7 @@ var gm = class extends ld {
48051
48051
  let t = new qp(this._creator_, e, vm, vm);
48052
48052
  return t.setQualityMap(Tp), t;
48053
48053
  }
48054
- let { RoomleWebGPURenderer: t } = await import("./roomle-webgpu-renderer-CNZiK43x.mjs");
48054
+ let { RoomleWebGPURenderer: t } = await import("./roomle-webgpu-renderer-Dzuy_Y39.mjs");
48055
48055
  return new t(this._creator_, e, !1);
48056
48056
  }
48057
48057
  async switchToPlannerSettings() {
@@ -48331,7 +48331,7 @@ var bm = class {
48331
48331
  }
48332
48332
  get viewModel() {
48333
48333
  if (!this._viewModel) {
48334
- let e = hv.lookup("configurator-view-model", this._creator_);
48334
+ let e = bv.lookup("configurator-view-model", this._creator_);
48335
48335
  if (!e) throw Error("ConfiguratorSceneManager: configurator-view-model not found in DI container");
48336
48336
  this._viewModel = e, this._viewModel.setRequestRenderCallback(() => this._renderEverything()), this._viewModel.setRequestRenderSceneUpdateCallback(() => this._roomleRenderer?.clearCache()), this._viewModel.setInvalidateRenderCallback(() => this._roomleRenderer?.forceShadowUpdates(!0));
48337
48337
  }
@@ -52125,7 +52125,7 @@ var wg = "rml_plans", Tg = {
52125
52125
  e.length > 0 && this._show3dDimensionsMulti(e);
52126
52126
  } else this._show3dDimensions(e);
52127
52127
  let i = this.getPlanObject(e.getId()), a;
52128
- i && (a = await Mm([i], this._plannerKernelAccess, this._rapiAccess)), this._roomlePlannerUiCallback.onPlanElementChanged(ep.MOVED, a?.length ? a[0] : {
52128
+ i.runtimeId && (a = await Mm([i], this._plannerKernelAccess, this._rapiAccess)), this._roomlePlannerUiCallback.onPlanElementChanged(ep.MOVED, a?.length ? a[0] : {
52129
52129
  ...i,
52130
52130
  data: null
52131
52131
  });
@@ -54287,7 +54287,7 @@ var o_ = "<plan version=\"2\"><walls><nodes/><edges/></walls><planobjects/><text
54287
54287
  async switchToConfigurator() {
54288
54288
  let e = await this._singlePromiseFactory.create(Fa.START_HSC, "startHSC", (e) => {
54289
54289
  if (this._hscInstance) return e(this._hscInstance);
54290
- import("./configurator-XCSeE4KT.mjs").then(({ Configurator: t }) => {
54290
+ import("./configurator-DygHcna3.mjs").then(({ Configurator: t }) => {
54291
54291
  let n = new t(this._creator_);
54292
54292
  n.boot({
54293
54293
  kernelInstance: this._planInteractionManager.getConfiguratorKernel(),
@@ -54305,7 +54305,7 @@ var o_ = "<plan version=\"2\"><walls><nodes/><edges/></walls><planobjects/><text
54305
54305
  async switchToViewer() {
54306
54306
  let e = await this._singlePromiseFactory.create(Fa.START_GLB, "startGLB", (e) => {
54307
54307
  if (this._glbInstance) return e(this._glbInstance);
54308
- import("./glb-viewer-BCdULq80.mjs").then((t) => {
54308
+ import("./glb-viewer-DvSuYuGl.mjs").then((t) => {
54309
54309
  let n = new t.GlbViewer(this._creator_);
54310
54310
  n.boot(), n.getApi().setOverrides(this._initData);
54311
54311
  let r = this._domHelper.element;
@@ -55210,7 +55210,7 @@ var o_ = "<plan version=\"2\"><walls><nodes/><edges/></walls><planobjects/><text
55210
55210
  globalInitData: JSON.parse(JSON.stringify(this._globalInitData))
55211
55211
  }, "*", [t.port2]);
55212
55212
  let n = Vg(t.port1), r = null;
55213
- this._initData.hi?.libraryId && (r = n.onLoadArticleCatalog(this._initData.hi.libraryId), this._earlyHiTagCatalogCallbacks = new a_(this._creator_, r)), await new (await (import("./homag-intelligence-Df4SRelQ.mjs"))).HomagIntelligence(this, e, n).loadSavedPosData(), this._initData.hi?.libraryId && await this.loadExternalObjectLibrary(this._initData.hi.libraryId, r ?? void 0);
55213
+ this._initData.hi?.libraryId && (r = n.onLoadArticleCatalog(this._initData.hi.libraryId), this._earlyHiTagCatalogCallbacks = new a_(this._creator_, r)), await new (await (import("./homag-intelligence-C7Zqo3V_.mjs"))).HomagIntelligence(this, e, n).loadSavedPosData(), this._initData.hi?.libraryId && await this.loadExternalObjectLibrary(this._initData.hi.libraryId, r ?? void 0);
55214
55214
  }
55215
55215
  async _loadHomagIntelligenceArticles(e, t) {
55216
55216
  let n = this._homagIntelligence;
@@ -58574,7 +58574,21 @@ var iv = class {
58574
58574
  }, le[e] = i, i) : (i.type = t, i.data = n, i.material = r, i);
58575
58575
  }
58576
58576
  }
58577
- }, dv = 13, fv = class e {
58577
+ }, dv = /M(-?[\d.]+),(-?[\d.]+)L(-?[\d.]+),(-?[\d.]+)/g, fv = (e) => e === "-0" ? "0" : e, pv = (e, t) => `${fv(e)},${fv(t)}`, mv = (e) => e.replace(/ d="([^"]*)"/g, (e, t) => {
58578
+ let n = /* @__PURE__ */ new Set();
58579
+ return ` d="${t.replace(dv, (e, t, r, i, a) => {
58580
+ let o = pv(t, r), s = pv(i, a);
58581
+ if (o === s) return "";
58582
+ let c = o < s ? `${o}|${s}` : `${s}|${o}`;
58583
+ return n.has(c) ? "" : (n.add(c), e);
58584
+ })}"`;
58585
+ }), hv = async (e) => {
58586
+ let t = mv(e), { optimize: n } = await import("./svgo.browser-EB1zkPfG.mjs"), { data: r } = n(t, {
58587
+ multipass: !0,
58588
+ floatPrecision: 0
58589
+ });
58590
+ return r || t;
58591
+ }, gv = 13, _v = class e {
58578
58592
  static {
58579
58593
  this.SVG_BASE_SIZE = 512;
58580
58594
  }
@@ -58593,11 +58607,7 @@ var iv = class {
58593
58607
  };
58594
58608
  t.setAttribute("viewBox", `${i.x} ${i.y} ${i.width} ${i.height}`), t.setAttribute("width", String(i.width)), t.setAttribute("height", String(i.height));
58595
58609
  }
58596
- let n = t.outerHTML, { optimize: r } = await import("./svgo.browser-EB1zkPfG.mjs"), i = r(n, {
58597
- multipass: !0,
58598
- floatPrecision: 0
58599
- });
58600
- return i.data && (n = i.data), n;
58610
+ return hv(t.outerHTML);
58601
58611
  }, this._creator_ = t, this.svgRenderer = new uv(), this.svgRenderer.setSize(e.SVG_BASE_SIZE, e.SVG_BASE_SIZE), this.svgRenderer.setQuality("high"), this.svgRenderer.setPrecision(0), this.svgRenderer.domElement.style.display = "block", this.svgRenderer.domElement.setAttribute("xmlns", "http://www.w3.org/2000/svg"), this.svgRenderer.domElement.innerHTML = "";
58602
58612
  }
58603
58613
  resizeSvgToFrustum(t) {
@@ -58624,7 +58634,7 @@ var iv = class {
58624
58634
  } else if (t.axis === "x") a = new O(r, u.y + f, u.z), o = new O(i, u.y + f, u.z);
58625
58635
  else if (t.axis === "z") a = new O(u.x + d, r, u.z), o = new O(u.x + d, i, u.z);
58626
58636
  else return;
58627
- a.applyMatrix4(n.matrixWorld), o.applyMatrix4(n.matrixWorld), rd(p, s(a), s(o), e.SVG_PADDING, dv, "mm", c);
58637
+ a.applyMatrix4(n.matrixWorld), o.applyMatrix4(n.matrixWorld), rd(p, s(a), s(o), e.SVG_PADDING, gv, "mm", c);
58628
58638
  });
58629
58639
  }
58630
58640
  render(e, t) {
@@ -58646,13 +58656,13 @@ var iv = class {
58646
58656
  let t = e.clone().project(n);
58647
58657
  return new O(t.x * a / 2, -t.y * o / 2, 0);
58648
58658
  }, c = a / 2 / ((n.right - n.left) / 2 * 1e3), l = L(r.origin), u = r.size.x / 1e3, d = r.size.z / 1e3, f = new O(l.x, l.y, l.z), p = new O(l.x + u, l.y, l.z), m = new O(l.x + u, l.y + d, l.z), h = this.svgRenderer.domElement;
58649
- return rd(h, s(f), s(p), -e.SVG_PADDING, dv, "mm", c), rd(h, s(p), s(m), -e.SVG_PADDING, dv, "mm", c), this.exportSvgAsString();
58659
+ return rd(h, s(f), s(p), -e.SVG_PADDING, gv, "mm", c), rd(h, s(p), s(m), -e.SVG_PADDING, gv, "mm", c), this.exportSvgAsString();
58650
58660
  }
58651
58661
  };
58652
- I([F, P("design:type", Object)], fv.prototype, "_plannerKernelAccess", void 0);
58662
+ I([F, P("design:type", Object)], _v.prototype, "_plannerKernelAccess", void 0);
58653
58663
  //#endregion
58654
58664
  //#region packages/configurator-core/src/elevation-plan/elevation-plan-2d-generator.ts
58655
- var pv = class {
58665
+ var vv = class {
58656
58666
  constructor(e) {
58657
58667
  this.createCameraForElevationView = (e, t) => {
58658
58668
  let n = new j();
@@ -58698,10 +58708,10 @@ var pv = class {
58698
58708
  return { plans: n };
58699
58709
  }
58700
58710
  };
58701
- I([F, P("design:type", Object)], pv.prototype, "_roomleSvgRenderer", void 0);
58711
+ I([F, P("design:type", Object)], vv.prototype, "_roomleSvgRenderer", void 0);
58702
58712
  //#endregion
58703
58713
  //#region packages/common-core/src/di/injectables.ts
58704
- var mv = [
58714
+ var yv = [
58705
58715
  new H("error-handler", Li),
58706
58716
  new H("form-data-util", Fi),
58707
58717
  new H("hdr-environment-loader", W_),
@@ -58747,11 +58757,11 @@ var mv = [
58747
58757
  new H("css2-d-renderer-manager", tv, V.GLOBAL),
58748
58758
  new H("kernel-callback-guard", nv, V.GLOBAL),
58749
58759
  new H("web-gpu-ground-shadow-reflection", rv, V.CONTEXT),
58750
- new H("roomle-svg-renderer", fv, V.CONTEXT),
58751
- new H("elevation-plan2d-generator", pv, V.CONTEXT)
58752
- ], hv = class e {
58760
+ new H("roomle-svg-renderer", _v, V.CONTEXT),
58761
+ new H("elevation-plan2d-generator", vv, V.CONTEXT)
58762
+ ], bv = class e {
58753
58763
  static _ensureContainer() {
58754
- return (!window.__RML__DI__ || !window.__RML__DI__.lookup) && (window.__RML__DI__ = new Pa(), window.__RML__DI__.addDependencyInjectionAssignments(mv)), window.__RML__DI__;
58764
+ return (!window.__RML__DI__ || !window.__RML__DI__.lookup) && (window.__RML__DI__ = new Pa(), window.__RML__DI__.addDependencyInjectionAssignments(yv)), window.__RML__DI__;
58755
58765
  }
58756
58766
  static setup(t) {
58757
58767
  e.addToContainer(t);
@@ -58768,11 +58778,11 @@ var mv = [
58768
58778
  static addToContainer(t) {
58769
58779
  e._ensureContainer().addDependencyInjectionAssignments(t);
58770
58780
  }
58771
- }, gv = class {
58781
+ }, xv = class {
58772
58782
  static getConfigurator(e, t) {
58773
58783
  t = this._setupDI(K.CONFIGURATOR, e, t);
58774
- let n = hv.lookup("global-init-data");
58775
- return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./configurator-XCSeE4KT.mjs").then(({ Configurator: n }) => e(new n(t)), n)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
58784
+ let n = bv.lookup("global-init-data");
58785
+ return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./configurator-DygHcna3.mjs").then(({ Configurator: n }) => e(new n(t)), n)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
58776
58786
  }
58777
58787
  static getPlanner(e, t) {
58778
58788
  return this._getPlanner(e, t);
@@ -58782,51 +58792,51 @@ var mv = [
58782
58792
  }
58783
58793
  static async getGlbViewer(e, t) {
58784
58794
  t = this._setupDI(K.GLB_VIEWER, e, t);
58785
- let n = hv.lookup("global-init-data");
58786
- return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./glb-viewer-BCdULq80.mjs").then(({ GlbViewer: n }) => e(new n(t)), n)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
58795
+ let n = bv.lookup("global-init-data");
58796
+ return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./glb-viewer-DvSuYuGl.mjs").then(({ GlbViewer: n }) => e(new n(t)), n)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
58787
58797
  }
58788
58798
  static getMaterialViewer(e, t) {
58789
58799
  t = this._setupDI(K.CONFIGURATOR, e, t);
58790
- let n = hv.lookup("global-init-data");
58791
- return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./material-viewer-DDDOHL63.mjs").then(({ MaterialViewer: n }) => e(new n(t)), n)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
58800
+ let n = bv.lookup("global-init-data");
58801
+ return n === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : n.configuratorId ? new Promise((e, n) => import("./material-viewer-DWNS1ZOd.mjs").then(({ MaterialViewer: n }) => e(new n(t)), n)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
58792
58802
  }
58793
58803
  static getCoreTools(e, t) {
58794
- return t = this._setupDI(K.TOOLS_CORE, e, t), new Promise((e, n) => import("./tools-core-1rVSAXUA.mjs").then(({ ToolsCore: n }) => {
58804
+ return t = this._setupDI(K.TOOLS_CORE, e, t), new Promise((e, n) => import("./tools-core-JKX3EhBt.mjs").then(({ ToolsCore: n }) => {
58795
58805
  let r = new n(t);
58796
58806
  r.boot(), e(r);
58797
58807
  }, n));
58798
58808
  }
58799
58809
  static getRapiAccess() {
58800
- hv.addToContainer([new H("rapi-access", Na, V.GLOBAL), new H("global-callback", pc, V.GLOBAL)]);
58801
- let e = hv.lookup("rapi-access");
58810
+ bv.addToContainer([new H("rapi-access", Na, V.GLOBAL), new H("global-callback", pc, V.GLOBAL)]);
58811
+ let e = bv.lookup("rapi-access");
58802
58812
  return e === null ? Promise.reject(/* @__PURE__ */ Error("rapi-access is not available")) : Promise.resolve(e);
58803
58813
  }
58804
58814
  static get callbacks() {
58805
- hv.addToContainer([new H("global-callback", pc, V.GLOBAL)]);
58806
- let e = hv.lookup("global-callback");
58815
+ bv.addToContainer([new H("global-callback", pc, V.GLOBAL)]);
58816
+ let e = bv.lookup("global-callback");
58807
58817
  return e === null ? Promise.reject(/* @__PURE__ */ Error("global-callback is not available")) : Promise.resolve(e);
58808
58818
  }
58809
58819
  static async setGlobalInitData(e) {
58810
58820
  if (e) {
58811
- hv.addToContainer([new H("global-init-data", lc, V.GLOBAL)]);
58812
- let t = hv.lookup("global-init-data");
58821
+ bv.addToContainer([new H("global-init-data", lc, V.GLOBAL)]);
58822
+ let t = bv.lookup("global-init-data");
58813
58823
  if (t === null) throw Error("global-init-data is not available");
58814
58824
  t.setOverrides(e), (await this.getRapiAccess()).setConfiguratorSettings();
58815
58825
  }
58816
58826
  }
58817
58827
  static getContext(e) {
58818
- return hv.getContext(e);
58828
+ return bv.getContext(e);
58819
58829
  }
58820
58830
  static _getPlanner(e, t, n) {
58821
- let r = this._setupDI(K.PLANNER, e, t), i = hv.lookup("global-init-data");
58822
- return i === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : i.configuratorId ? new Promise((e, t) => import("./planner-DkI43IZF.mjs").then(({ Planner: t }) => {
58831
+ let r = this._setupDI(K.PLANNER, e, t), i = bv.lookup("global-init-data");
58832
+ return i === null ? Promise.reject(/* @__PURE__ */ Error("global-init-data is not available")) : i.configuratorId ? new Promise((e, t) => import("./planner-BN-INmBq.mjs").then(({ Planner: t }) => {
58823
58833
  e(n ? new t(r, n) : new t(r));
58824
58834
  }, t)) : Promise.reject(/* @__PURE__ */ Error("configuratorId is not set"));
58825
58835
  }
58826
58836
  static _setupDI(e, t, n) {
58827
58837
  if (t) {
58828
- hv.addToContainer([new H("init-data", cc, V.CONTEXT)]), n ||= hv.getContext(e);
58829
- let r = hv.lookup("init-data", n);
58838
+ bv.addToContainer([new H("init-data", cc, V.CONTEXT)]), n ||= bv.getContext(e);
58839
+ let r = bv.lookup("init-data", n);
58830
58840
  if (r === null) throw Error("init-data is not available");
58831
58841
  r.setOverrides(t);
58832
58842
  }
@@ -58834,6 +58844,6 @@ var mv = [
58834
58844
  }
58835
58845
  };
58836
58846
  //#endregion
58837
- export { G as $, Vu as A, Vc as B, Bd as C, pd as D, X as E, eu as F, Cc as G, Ic as H, _l as I, xc as J, wc as K, sl as L, Su as M, uu as N, ld as O, su as P, Xs as Q, al as R, ef as S, Sd as T, Fc as U, K as V, Tc as W, fc as X, mc as Y, lc as Z, pp as _, W_ as a, Pa as at, Vf as b, A_ as c, Na as ct, Rm as d, Wi as dt, go as et, Sm as f, Ri as ft, hm as g, gm as h, rv as i, Fa as it, wu as j, cd as k, D_ as l, ka as lt, ym as m, Mi as mt, hv as n, Qa as nt, U_ as o, V as ot, bm as p, Ni as pt, Sc as q, mv as r, Xa as rt, H_ as s, H as st, gv as t, to as tt, p_ as u, Oa as ut, ip as v, Ld as w, Hf as x, ep as y, Hc as z };
58847
+ export { G as $, Vu as A, Vc as B, Bd as C, pd as D, X as E, eu as F, Cc as G, Ic as H, _l as I, xc as J, wc as K, sl as L, Su as M, uu as N, ld as O, su as P, Xs as Q, al as R, ef as S, Sd as T, Fc as U, K as V, Tc as W, fc as X, mc as Y, lc as Z, pp as _, W_ as a, Pa as at, Vf as b, A_ as c, Na as ct, Rm as d, Wi as dt, go as et, Sm as f, Ri as ft, hm as g, gm as h, rv as i, Fa as it, wu as j, cd as k, D_ as l, ka as lt, ym as m, Mi as mt, bv as n, Qa as nt, U_ as o, V as ot, bm as p, Ni as pt, Sc as q, yv as r, Xa as rt, H_ as s, H as st, xv as t, to as tt, p_ as u, Oa as ut, ip as v, Ld as w, Hf as x, ep as y, Hc as z };
58838
58848
 
58839
- //# sourceMappingURL=roomle-sdk-Dj9Zd1PS.mjs.map
58849
+ //# sourceMappingURL=roomle-sdk-DSdFYBMN.mjs.map