@roomle/web-sdk 2.44.0-alpha.4 → 2.44.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 (185) hide show
  1. package/lib/{banana-for-scale-c5c43b27.js → banana-for-scale-18f04163.js} +2 -2
  2. package/lib/{banana-for-scale-c5c43b27.js.map → banana-for-scale-18f04163.js.map} +1 -1
  3. package/lib/{banana-for-scale-73d140c8.nomodule.js → banana-for-scale-58aee28e.nomodule.js} +2 -2
  4. package/lib/{banana-for-scale-73d140c8.nomodule.js.map → banana-for-scale-58aee28e.nomodule.js.map} +1 -1
  5. package/lib/{component-dimensioning-57a22b5a.js → component-dimensioning-29b1d707.js} +2 -2
  6. package/lib/component-dimensioning-29b1d707.js.map +1 -0
  7. package/lib/{component-dimensioning-f8720b09.nomodule.js → component-dimensioning-4595c026.nomodule.js} +2 -2
  8. package/lib/component-dimensioning-4595c026.nomodule.js.map +1 -0
  9. package/lib/{component-raycast-helper-d4b79e8f.js → component-raycast-helper-14100dc7.js} +2 -2
  10. package/lib/component-raycast-helper-14100dc7.js.map +1 -0
  11. package/lib/{component-raycast-helper-cc5a1be9.nomodule.js → component-raycast-helper-3e9e1514.nomodule.js} +2 -2
  12. package/lib/component-raycast-helper-3e9e1514.nomodule.js.map +1 -0
  13. package/lib/{configurator-4c49d560.nomodule.js → configurator-21982259.nomodule.js} +2 -2
  14. package/lib/configurator-21982259.nomodule.js.map +1 -0
  15. package/lib/{configurator-e9ff4674.js → configurator-cd30bf50.js} +2 -2
  16. package/lib/configurator-cd30bf50.js.map +1 -0
  17. package/lib/configurator-main-f8387adf.js +2 -0
  18. package/lib/configurator-main-f8387adf.js.map +1 -0
  19. package/lib/configurator-main.nomodule.js +1 -1
  20. package/lib/{default-light-setting-6d50e08c.nomodule.js → default-light-setting-70b219b8.nomodule.js} +2 -2
  21. package/lib/default-light-setting-70b219b8.nomodule.js.map +1 -0
  22. package/lib/{default-light-setting-655f990f.js → default-light-setting-adeef669.js} +2 -2
  23. package/lib/default-light-setting-adeef669.js.map +1 -0
  24. package/lib/definitions/planner-core/src/roomle-planner-ui-callback.d.ts +1 -0
  25. package/lib/{dimensioning-helper-e238de18.nomodule.js → dimensioning-helper-5b9a0b98.nomodule.js} +2 -2
  26. package/lib/{dimensioning-helper-e238de18.nomodule.js.map → dimensioning-helper-5b9a0b98.nomodule.js.map} +1 -1
  27. package/lib/{dimensioning-helper-b5bac3d1.js → dimensioning-helper-b62761db.js} +2 -2
  28. package/lib/{dimensioning-helper-b5bac3d1.js.map → dimensioning-helper-b62761db.js.map} +1 -1
  29. package/lib/{glb-viewer-6746e833.nomodule.js → glb-viewer-239ecec0.nomodule.js} +2 -2
  30. package/lib/{glb-viewer-6746e833.nomodule.js.map → glb-viewer-239ecec0.nomodule.js.map} +1 -1
  31. package/lib/{glb-viewer-12d66f42.js → glb-viewer-f4479470.js} +2 -2
  32. package/lib/{glb-viewer-12d66f42.js.map → glb-viewer-f4479470.js.map} +1 -1
  33. package/lib/glb-viewer-main-e5c3ec75.js +2 -0
  34. package/lib/glb-viewer-main-e5c3ec75.js.map +1 -0
  35. package/lib/glb-viewer-main.nomodule.js +1 -1
  36. package/lib/legacy/{banana-for-scale-761eb26e.legacy.js → banana-for-scale-a43ff30c.legacy.js} +2 -2
  37. package/lib/legacy/{banana-for-scale-761eb26e.legacy.js.map → banana-for-scale-a43ff30c.legacy.js.map} +1 -1
  38. package/lib/legacy/{component-dimensioning-0d8d5af8.legacy.js → component-dimensioning-69f4f4c5.legacy.js} +2 -2
  39. package/lib/legacy/component-dimensioning-69f4f4c5.legacy.js.map +1 -0
  40. package/lib/legacy/{component-raycast-helper-8a4b4e95.legacy.js → component-raycast-helper-266bafc3.legacy.js} +2 -2
  41. package/lib/legacy/component-raycast-helper-266bafc3.legacy.js.map +1 -0
  42. package/lib/legacy/{configurator-eaf54109.legacy.js → configurator-a0c9c069.legacy.js} +2 -2
  43. package/lib/legacy/configurator-a0c9c069.legacy.js.map +1 -0
  44. package/lib/legacy/configurator-main.legacy.js +1 -1
  45. package/lib/legacy/{default-light-setting-7d1e7495.legacy.js → default-light-setting-e9628eb5.legacy.js} +2 -2
  46. package/lib/legacy/default-light-setting-e9628eb5.legacy.js.map +1 -0
  47. package/lib/legacy/{dimensioning-helper-4684c13d.legacy.js → dimensioning-helper-c53549cb.legacy.js} +2 -2
  48. package/lib/legacy/{dimensioning-helper-4684c13d.legacy.js.map → dimensioning-helper-c53549cb.legacy.js.map} +1 -1
  49. package/lib/legacy/{glb-viewer-5cdc4479.legacy.js → glb-viewer-de2149ef.legacy.js} +2 -2
  50. package/lib/legacy/{glb-viewer-5cdc4479.legacy.js.map → glb-viewer-de2149ef.legacy.js.map} +1 -1
  51. package/lib/legacy/glb-viewer-main.legacy.js +1 -1
  52. package/lib/legacy/{material-viewer-4b2726bd.legacy.js → material-viewer-44e1bec0.legacy.js} +2 -2
  53. package/lib/legacy/material-viewer-44e1bec0.legacy.js.map +1 -0
  54. package/lib/legacy/material-viewer-main.legacy.js +1 -1
  55. package/lib/legacy/{pixotron-f357938b.legacy.js → pixotron-1dec2b19.legacy.js} +2 -2
  56. package/lib/legacy/{pixotron-f357938b.legacy.js.map → pixotron-1dec2b19.legacy.js.map} +1 -1
  57. package/lib/legacy/planner-a6f0743d.legacy.js +2 -0
  58. package/lib/legacy/{planner-b1a554ba.legacy.js.map → planner-a6f0743d.legacy.js.map} +1 -1
  59. package/lib/legacy/planner-main.legacy.js +1 -1
  60. package/lib/legacy/{roomle-configurator-247f7df1.legacy.js → roomle-configurator-93ff6e64.legacy.js} +2 -2
  61. package/lib/legacy/{roomle-configurator-247f7df1.legacy.js.map → roomle-configurator-93ff6e64.legacy.js.map} +1 -1
  62. package/lib/legacy/{roomle-dependency-injection-04e986a9.legacy.js → roomle-dependency-injection-0240c587.legacy.js} +2 -2
  63. package/lib/legacy/{roomle-dependency-injection-04e986a9.legacy.js.map → roomle-dependency-injection-0240c587.legacy.js.map} +1 -1
  64. package/lib/legacy/roomle-sdk.legacy.js +1 -1
  65. package/lib/legacy/{script-loader-830904ac.legacy.js → script-loader-6cfa19dd.legacy.js} +2 -2
  66. package/lib/legacy/script-loader-6cfa19dd.legacy.js.map +1 -0
  67. package/lib/legacy/static/{ConfiguratorKernel-0f003a2d53bdb498.js → ConfiguratorKernel-66acc90d734be73f.js} +32 -32
  68. package/lib/legacy/static/ConfiguratorKernel-f27c61d5ada9f3f4.wasm +0 -0
  69. package/lib/legacy/static/ConfiguratorKernelJs-41b38b81ad65cf0d.js +146 -0
  70. package/lib/legacy/static/ConfiguratorKernelJs-ab29cb23f84ad93d.mem +0 -0
  71. package/lib/legacy/static/{RoomleCore-4eb435620392fcc4.js → RoomleCore-2050e58329a960b4.js} +23 -23
  72. package/lib/legacy/static/RoomleCore-a4a3b091cd4ccb06.wasm +0 -0
  73. package/lib/legacy/static/RoomleCoreJs-67463940339e6dde.js +155 -0
  74. package/lib/legacy/static/RoomleCoreJs-de5b695820d05833.mem +0 -0
  75. package/lib/legacy/static/RoomleToolsCore-e0cdf303302f1b9d.wasm +0 -0
  76. package/lib/legacy/static/{RoomleToolsCore-2ec3c50f245db642.js → RoomleToolsCore-eb31d539449a710f.js} +14 -14
  77. package/lib/{static/shaders-e69381c5f7e0b8e2.json → legacy/static/shaders-ba9690afa0a8e86c.json} +1 -1
  78. package/lib/legacy/{stats-helper-ef222e73.legacy.js → stats-helper-04fedec8.legacy.js} +2 -2
  79. package/lib/legacy/{stats-helper-ef222e73.legacy.js.map → stats-helper-04fedec8.legacy.js.map} +1 -1
  80. package/lib/legacy/{tools-core-05832f20.legacy.js → tools-core-49b2788d.legacy.js} +2 -2
  81. package/lib/legacy/tools-core-49b2788d.legacy.js.map +1 -0
  82. package/lib/{material-viewer-33a3cb7c.js → material-viewer-1a3b960e.js} +2 -2
  83. package/lib/material-viewer-1a3b960e.js.map +1 -0
  84. package/lib/{material-viewer-91e1dcb4.nomodule.js → material-viewer-8315c119.nomodule.js} +2 -2
  85. package/lib/material-viewer-8315c119.nomodule.js.map +1 -0
  86. package/lib/material-viewer-main-5c1a2091.js +2 -0
  87. package/lib/material-viewer-main-5c1a2091.js.map +1 -0
  88. package/lib/material-viewer-main.nomodule.js +1 -1
  89. package/lib/{pixotron-ea5938b6.js → pixotron-5118a519.js} +2 -2
  90. package/lib/{pixotron-ea5938b6.js.map → pixotron-5118a519.js.map} +1 -1
  91. package/lib/{pixotron-6d96c110.nomodule.js → pixotron-b0d8e089.nomodule.js} +2 -2
  92. package/lib/{pixotron-6d96c110.nomodule.js.map → pixotron-b0d8e089.nomodule.js.map} +1 -1
  93. package/lib/planner-43647c6b.js +2 -0
  94. package/lib/{planner-8b72e5c6.js.map → planner-43647c6b.js.map} +1 -1
  95. package/lib/planner-d219b834.nomodule.js +2 -0
  96. package/lib/{planner-d499ae1f.nomodule.js.map → planner-d219b834.nomodule.js.map} +1 -1
  97. package/lib/planner-main-d44b5469.js +2 -0
  98. package/lib/planner-main-d44b5469.js.map +1 -0
  99. package/lib/planner-main.nomodule.js +1 -1
  100. package/lib/{roomle-configurator-9aa82aaa.js → roomle-configurator-3edab60b.js} +2 -2
  101. package/lib/{roomle-configurator-9aa82aaa.js.map → roomle-configurator-3edab60b.js.map} +1 -1
  102. package/lib/{roomle-configurator-9f91f4ec.nomodule.js → roomle-configurator-fa4b9d85.nomodule.js} +2 -2
  103. package/lib/{roomle-configurator-9f91f4ec.nomodule.js.map → roomle-configurator-fa4b9d85.nomodule.js.map} +1 -1
  104. package/lib/{roomle-dependency-injection-05245504.js → roomle-dependency-injection-304e6458.js} +2 -2
  105. package/lib/{roomle-dependency-injection-05245504.js.map → roomle-dependency-injection-304e6458.js.map} +1 -1
  106. package/lib/{roomle-dependency-injection-2f083f17.nomodule.js → roomle-dependency-injection-c8ac93d3.nomodule.js} +2 -2
  107. package/lib/{roomle-dependency-injection-2f083f17.nomodule.js.map → roomle-dependency-injection-c8ac93d3.nomodule.js.map} +1 -1
  108. package/lib/{roomle-sdk-62795f4b.js → roomle-sdk-1ca5d1e9.js} +2 -2
  109. package/lib/roomle-sdk-1ca5d1e9.js.map +1 -0
  110. package/lib/roomle-sdk.nomodule.js +1 -1
  111. package/lib/{script-loader-e6b19e80.nomodule.js → script-loader-4ac0f0da.nomodule.js} +2 -2
  112. package/lib/script-loader-4ac0f0da.nomodule.js.map +1 -0
  113. package/lib/{script-loader-f7ba1da0.js → script-loader-e76e45e3.js} +2 -2
  114. package/lib/script-loader-e76e45e3.js.map +1 -0
  115. package/lib/static/{ConfiguratorKernel-0f003a2d53bdb498.js → ConfiguratorKernel-66acc90d734be73f.js} +1 -1
  116. package/lib/static/ConfiguratorKernel-66acc90d734be73f.js.map +1 -0
  117. package/lib/static/ConfiguratorKernel-f27c61d5ada9f3f4.wasm +0 -0
  118. package/lib/static/ConfiguratorKernelJs-41b38b81ad65cf0d.js +146 -0
  119. package/lib/static/ConfiguratorKernelJs-ab29cb23f84ad93d.mem +0 -0
  120. package/lib/static/{RoomleCore-4eb435620392fcc4.js → RoomleCore-2050e58329a960b4.js} +1 -1
  121. package/lib/static/{RoomleCore-4eb435620392fcc4.js.map → RoomleCore-2050e58329a960b4.js.map} +1 -1
  122. package/lib/static/RoomleCore-a4a3b091cd4ccb06.wasm +0 -0
  123. package/lib/static/RoomleCoreJs-67463940339e6dde.js +155 -0
  124. package/lib/static/RoomleCoreJs-de5b695820d05833.mem +0 -0
  125. package/lib/static/RoomleToolsCore-e0cdf303302f1b9d.wasm +0 -0
  126. package/lib/static/{RoomleToolsCore-2ec3c50f245db642.js → RoomleToolsCore-eb31d539449a710f.js} +1 -1
  127. package/lib/static/{RoomleToolsCore-2ec3c50f245db642.js.map → RoomleToolsCore-eb31d539449a710f.js.map} +1 -1
  128. package/lib/{legacy/static/shaders-e69381c5f7e0b8e2.json → static/shaders-ba9690afa0a8e86c.json} +1 -1
  129. package/lib/{stats-helper-5b03fa65.nomodule.js → stats-helper-af263788.nomodule.js} +2 -2
  130. package/lib/{stats-helper-5b03fa65.nomodule.js.map → stats-helper-af263788.nomodule.js.map} +1 -1
  131. package/lib/{stats-helper-403350d5.js → stats-helper-ffc22247.js} +2 -2
  132. package/lib/{stats-helper-403350d5.js.map → stats-helper-ffc22247.js.map} +1 -1
  133. package/lib/{tools-core-7f2e1db4.nomodule.js → tools-core-77072638.nomodule.js} +2 -2
  134. package/lib/tools-core-77072638.nomodule.js.map +1 -0
  135. package/lib/{tools-core-69601538.js → tools-core-80a7c09e.js} +2 -2
  136. package/lib/tools-core-80a7c09e.js.map +1 -0
  137. package/package.json +2 -2
  138. package/lib/component-dimensioning-57a22b5a.js.map +0 -1
  139. package/lib/component-dimensioning-f8720b09.nomodule.js.map +0 -1
  140. package/lib/component-raycast-helper-cc5a1be9.nomodule.js.map +0 -1
  141. package/lib/component-raycast-helper-d4b79e8f.js.map +0 -1
  142. package/lib/configurator-4c49d560.nomodule.js.map +0 -1
  143. package/lib/configurator-e9ff4674.js.map +0 -1
  144. package/lib/configurator-main-9f5acbab.js +0 -2
  145. package/lib/configurator-main-9f5acbab.js.map +0 -1
  146. package/lib/default-light-setting-655f990f.js.map +0 -1
  147. package/lib/default-light-setting-6d50e08c.nomodule.js.map +0 -1
  148. package/lib/glb-viewer-main-58c87f84.js +0 -2
  149. package/lib/glb-viewer-main-58c87f84.js.map +0 -1
  150. package/lib/legacy/component-dimensioning-0d8d5af8.legacy.js.map +0 -1
  151. package/lib/legacy/component-raycast-helper-8a4b4e95.legacy.js.map +0 -1
  152. package/lib/legacy/configurator-eaf54109.legacy.js.map +0 -1
  153. package/lib/legacy/default-light-setting-7d1e7495.legacy.js.map +0 -1
  154. package/lib/legacy/material-viewer-4b2726bd.legacy.js.map +0 -1
  155. package/lib/legacy/planner-b1a554ba.legacy.js +0 -2
  156. package/lib/legacy/script-loader-830904ac.legacy.js.map +0 -1
  157. package/lib/legacy/static/ConfiguratorKernel-fee68dd17368f9c8.wasm +0 -0
  158. package/lib/legacy/static/ConfiguratorKernelJs-397177488117675e.js +0 -146
  159. package/lib/legacy/static/ConfiguratorKernelJs-6735c733ccd66361.mem +0 -0
  160. package/lib/legacy/static/RoomleCore-83f9a9bf9e4d7f73.wasm +0 -0
  161. package/lib/legacy/static/RoomleCoreJs-46a5e90adbb12d0c.js +0 -154
  162. package/lib/legacy/static/RoomleCoreJs-8bc350683d3c35ae.mem +0 -0
  163. package/lib/legacy/static/RoomleToolsCore-e949cc1f9026c61f.wasm +0 -0
  164. package/lib/legacy/tools-core-05832f20.legacy.js.map +0 -1
  165. package/lib/material-viewer-33a3cb7c.js.map +0 -1
  166. package/lib/material-viewer-91e1dcb4.nomodule.js.map +0 -1
  167. package/lib/material-viewer-main-75a05ca5.js +0 -2
  168. package/lib/material-viewer-main-75a05ca5.js.map +0 -1
  169. package/lib/planner-8b72e5c6.js +0 -2
  170. package/lib/planner-d499ae1f.nomodule.js +0 -2
  171. package/lib/planner-main-a9500bc7.js +0 -2
  172. package/lib/planner-main-a9500bc7.js.map +0 -1
  173. package/lib/roomle-sdk-62795f4b.js.map +0 -1
  174. package/lib/script-loader-e6b19e80.nomodule.js.map +0 -1
  175. package/lib/script-loader-f7ba1da0.js.map +0 -1
  176. package/lib/static/ConfiguratorKernel-0f003a2d53bdb498.js.map +0 -1
  177. package/lib/static/ConfiguratorKernel-fee68dd17368f9c8.wasm +0 -0
  178. package/lib/static/ConfiguratorKernelJs-397177488117675e.js +0 -146
  179. package/lib/static/ConfiguratorKernelJs-6735c733ccd66361.mem +0 -0
  180. package/lib/static/RoomleCore-83f9a9bf9e4d7f73.wasm +0 -0
  181. package/lib/static/RoomleCoreJs-46a5e90adbb12d0c.js +0 -154
  182. package/lib/static/RoomleCoreJs-8bc350683d3c35ae.mem +0 -0
  183. package/lib/static/RoomleToolsCore-e949cc1f9026c61f.wasm +0 -0
  184. package/lib/tools-core-69601538.js.map +0 -1
  185. package/lib/tools-core-7f2e1db4.nomodule.js.map +0 -1
@@ -1,2 +1,2 @@
1
- import{_ as __decorate,i as inject}from"./roomle-dependency-injection-05245504.js";import"./main-thread-to-worker-88f74244.js";class StatsHelper{constructor(){this._statPanels=[],this._scriptLoader.fetch("static/stats.min-f33a6e08a8864d76.js",{id:"stats-js"}).then(()=>this._init(),e=>console.error(e))}_init(){let e=new Stats;e.showPanel(0),e.dom.style.cssText="position:absolute;top:0px;left:0px;z-index:110;",document.body.appendChild(e.dom),this._statPanels.push(e);let t=new Stats;t.showPanel(2),t.dom.style.cssText="position:absolute;top:50px;left:0px;z-index:110;",document.body.appendChild(t.dom),this._statPanels.push(t);let a=new Stats;this._drawPanel=a.addPanel(new Stats.Panel("draw","#0f0","#000")),a.showPanel(3),a.dom.style.cssText="position:absolute;top:100px;left:0px;z-index:110;",document.body.appendChild(a.dom),this._statPanels.push(a);let s=new Stats;this._trianglesPanel=s.addPanel(new Stats.Panel("poly","#0f0","#000")),s.showPanel(3),s.dom.style.cssText="position:absolute;top:150px;left:0px;z-index:110;",document.body.appendChild(s.dom),this._statPanels.push(s);let l=new Stats;this._geometryPanel=l.addPanel(new Stats.Panel("geo","#f00","#000")),l.showPanel(3),l.dom.style.cssText="position:absolute;top:200px;left:0px;z-index:110;",document.body.appendChild(l.dom),this._statPanels.push(l);let n=new Stats;this._texturePanel=n.addPanel(new Stats.Panel("tex","#f00","#000")),n.showPanel(3),n.dom.style.cssText="position:absolute;top:250px;left:0px;z-index:110;",document.body.appendChild(n.dom),this._statPanels.push(n);let o=new Stats;this._materialPanel=o.addPanel(new Stats.Panel("mat","#f00","#000")),o.showPanel(3),o.dom.style.cssText="position:absolute;top:300px;left:0px;z-index:110;",document.body.appendChild(o.dom),this._statPanels.push(o);let i=new Stats;this._qualityPanel=i.addPanel(new Stats.Panel("quality","#fff","#000")),i.showPanel(3),i.dom.style.cssText="position:absolute;top:350px;left:0px;z-index:110;",document.body.appendChild(i.dom),this._statPanels.push(i)}updateRenderInfo(e){this._drawPanel&&e.render.calls>0&&this._drawPanel.update(e.render.calls,500),this._trianglesPanel&&e.render.triangles>0&&this._trianglesPanel.update(e.render.triangles,1e4),this._geometryPanel&&e.memory.geometries>0&&this._geometryPanel.update(e.memory.geometries,1e4),this._texturePanel&&e.memory.textures>0&&this._texturePanel.update(e.memory.textures,1e4),this._materialPanel&&this._cacheHolder.materialCache.size>0&&this._materialPanel.update(this._cacheHolder.materialCache.size,1e3),this._statPanels.length>0&&this._statPanels.forEach(e=>e.update())}updateQualityInfo(e){this._qualityPanel&&e&&this._qualityPanel.update(e.getQuality(),5)}}__decorate([inject],StatsHelper.prototype,"_scriptLoader",void 0),__decorate([inject],StatsHelper.prototype,"_cacheHolder",void 0);export default StatsHelper;
2
- //# sourceMappingURL=stats-helper-403350d5.js.map
1
+ import{_ as __decorate,i as inject}from"./roomle-dependency-injection-304e6458.js";import"./main-thread-to-worker-88f74244.js";class StatsHelper{constructor(){this._statPanels=[],this._scriptLoader.fetch("static/stats.min-f33a6e08a8864d76.js",{id:"stats-js"}).then(()=>this._init(),e=>console.error(e))}_init(){let e=new Stats;e.showPanel(0),e.dom.style.cssText="position:absolute;top:0px;left:0px;z-index:110;",document.body.appendChild(e.dom),this._statPanels.push(e);let t=new Stats;t.showPanel(2),t.dom.style.cssText="position:absolute;top:50px;left:0px;z-index:110;",document.body.appendChild(t.dom),this._statPanels.push(t);let a=new Stats;this._drawPanel=a.addPanel(new Stats.Panel("draw","#0f0","#000")),a.showPanel(3),a.dom.style.cssText="position:absolute;top:100px;left:0px;z-index:110;",document.body.appendChild(a.dom),this._statPanels.push(a);let s=new Stats;this._trianglesPanel=s.addPanel(new Stats.Panel("poly","#0f0","#000")),s.showPanel(3),s.dom.style.cssText="position:absolute;top:150px;left:0px;z-index:110;",document.body.appendChild(s.dom),this._statPanels.push(s);let l=new Stats;this._geometryPanel=l.addPanel(new Stats.Panel("geo","#f00","#000")),l.showPanel(3),l.dom.style.cssText="position:absolute;top:200px;left:0px;z-index:110;",document.body.appendChild(l.dom),this._statPanels.push(l);let n=new Stats;this._texturePanel=n.addPanel(new Stats.Panel("tex","#f00","#000")),n.showPanel(3),n.dom.style.cssText="position:absolute;top:250px;left:0px;z-index:110;",document.body.appendChild(n.dom),this._statPanels.push(n);let o=new Stats;this._materialPanel=o.addPanel(new Stats.Panel("mat","#f00","#000")),o.showPanel(3),o.dom.style.cssText="position:absolute;top:300px;left:0px;z-index:110;",document.body.appendChild(o.dom),this._statPanels.push(o);let i=new Stats;this._qualityPanel=i.addPanel(new Stats.Panel("quality","#fff","#000")),i.showPanel(3),i.dom.style.cssText="position:absolute;top:350px;left:0px;z-index:110;",document.body.appendChild(i.dom),this._statPanels.push(i)}updateRenderInfo(e){this._drawPanel&&e.render.calls>0&&this._drawPanel.update(e.render.calls,500),this._trianglesPanel&&e.render.triangles>0&&this._trianglesPanel.update(e.render.triangles,1e4),this._geometryPanel&&e.memory.geometries>0&&this._geometryPanel.update(e.memory.geometries,1e4),this._texturePanel&&e.memory.textures>0&&this._texturePanel.update(e.memory.textures,1e4),this._materialPanel&&this._cacheHolder.materialCache.size>0&&this._materialPanel.update(this._cacheHolder.materialCache.size,1e3),this._statPanels.length>0&&this._statPanels.forEach(e=>e.update())}updateQualityInfo(e){this._qualityPanel&&e&&this._qualityPanel.update(e.getQuality(),5)}}__decorate([inject],StatsHelper.prototype,"_scriptLoader",void 0),__decorate([inject],StatsHelper.prototype,"_cacheHolder",void 0);export default StatsHelper;
2
+ //# sourceMappingURL=stats-helper-ffc22247.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"stats-helper-403350d5.js","sources":["../../node_modules/stats.js/build/stats.min.js"],"sourcesContent":["export default \"static/stats.min-f33a6e08a8864d76.js\""],"names":[],"mappings":"4MAAe"}
1
+ {"version":3,"file":"stats-helper-ffc22247.js","sources":["../../node_modules/stats.js/build/stats.min.js"],"sourcesContent":["export default \"static/stats.min-f33a6e08a8864d76.js\""],"names":[],"mappings":"4MAAe"}
@@ -1,2 +1,2 @@
1
- System.register(["./query-params-helper-c231e1b8.nomodule.js","./roomle-dependency-injection-2f083f17.nomodule.js","./main-thread-to-worker-6a4eb1ee.nomodule.js","./script-loader-e6b19e80.nomodule.js"],(function(o){var e,t,s,n;return{setters:[function(){},function(o){e=o.D,t=o.b},function(){},function(o){s=o.S,n=o.M}],execute:function(){const l=[new e("script-loader",s)];o("ToolsCore",class extends n{setupGlobals(){}setupDependencies(){t.setup(l),this.lookup("logger",this._context)}cleanUpGlobals(){this._tools=void 0,window.RoomleToolsCore&&delete window.RoomleToolsCore}cleanUpDependencies(){const o=this.lookup("script-loader");o&&o.cleanUp()}bootFinished(){this._tools=this.lookup("roomle-tools-core",this._context),window.RoomleToolsCore||(window.RoomleToolsCore=this._tools)}getApi(){return this._tools}getContextName(){return"tools-core"}})}}}));
2
- //# sourceMappingURL=tools-core-7f2e1db4.nomodule.js.map
1
+ System.register(["./query-params-helper-c231e1b8.nomodule.js","./roomle-dependency-injection-c8ac93d3.nomodule.js","./main-thread-to-worker-6a4eb1ee.nomodule.js","./script-loader-4ac0f0da.nomodule.js"],(function(o){var e,t,s,n;return{setters:[function(){},function(o){e=o.D,t=o.b},function(){},function(o){s=o.S,n=o.M}],execute:function(){const l=[new e("script-loader",s)];o("ToolsCore",class extends n{setupGlobals(){}setupDependencies(){t.setup(l),this.lookup("logger",this._context)}cleanUpGlobals(){this._tools=void 0,window.RoomleToolsCore&&delete window.RoomleToolsCore}cleanUpDependencies(){const o=this.lookup("script-loader");o&&o.cleanUp()}bootFinished(){this._tools=this.lookup("roomle-tools-core",this._context),window.RoomleToolsCore||(window.RoomleToolsCore=this._tools)}getApi(){return this._tools}getContextName(){return"tools-core"}})}}}));
2
+ //# sourceMappingURL=tools-core-77072638.nomodule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools-core-77072638.nomodule.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import"./query-params-helper-a271f9dc.js";import{D as DependencyInjectionAssignment,b as RoomleDependencyInjection}from"./roomle-dependency-injection-05245504.js";import"./main-thread-to-worker-88f74244.js";import{S as ScriptLoader,M as Main}from"./script-loader-f7ba1da0.js";const INJECTABLES=[new DependencyInjectionAssignment("script-loader",ScriptLoader)];class ToolsCore extends Main{setupGlobals(){}setupDependencies(){RoomleDependencyInjection.setup(INJECTABLES),this.lookup("logger",this._context)}cleanUpGlobals(){this._tools=void 0,window.RoomleToolsCore&&delete window.RoomleToolsCore}cleanUpDependencies(){const o=this.lookup("script-loader");o&&o.cleanUp()}bootFinished(){this._tools=this.lookup("roomle-tools-core",this._context),window.RoomleToolsCore||(window.RoomleToolsCore=this._tools)}getApi(){return this._tools}getContextName(){return"tools-core"}}export{ToolsCore};
2
- //# sourceMappingURL=tools-core-69601538.js.map
1
+ import"./query-params-helper-a271f9dc.js";import{D as DependencyInjectionAssignment,b as RoomleDependencyInjection}from"./roomle-dependency-injection-304e6458.js";import"./main-thread-to-worker-88f74244.js";import{S as ScriptLoader,M as Main}from"./script-loader-e76e45e3.js";const INJECTABLES=[new DependencyInjectionAssignment("script-loader",ScriptLoader)];class ToolsCore extends Main{setupGlobals(){}setupDependencies(){RoomleDependencyInjection.setup(INJECTABLES),this.lookup("logger",this._context)}cleanUpGlobals(){this._tools=void 0,window.RoomleToolsCore&&delete window.RoomleToolsCore}cleanUpDependencies(){const o=this.lookup("script-loader");o&&o.cleanUp()}bootFinished(){this._tools=this.lookup("roomle-tools-core",this._context),window.RoomleToolsCore||(window.RoomleToolsCore=this._tools)}getApi(){return this._tools}getContextName(){return"tools-core"}}export{ToolsCore};
2
+ //# sourceMappingURL=tools-core-80a7c09e.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools-core-80a7c09e.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@roomle/web-sdk",
3
- "version": "2.44.0-alpha.4",
3
+ "version": "2.44.0-alpha.6",
4
4
  "description": "Roomle Web SDK",
5
5
  "author": "Roomle Development",
6
- "main": "lib/roomle-sdk-62795f4b.js",
6
+ "main": "lib/roomle-sdk-1ca5d1e9.js",
7
7
  "scripts": {
8
8
  "release": "semantic-release",
9
9
  "postinstall": "node scripts/copy-assets-sdk.js"
@@ -1 +0,0 @@
1
- {"version":3,"file":"component-dimensioning-57a22b5a.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"component-dimensioning-f8720b09.nomodule.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"component-raycast-helper-cc5a1be9.nomodule.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"component-raycast-helper-d4b79e8f.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"configurator-4c49d560.nomodule.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"configurator-e9ff4674.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import"./query-params-helper-a271f9dc.js";import"./roomle-dependency-injection-05245504.js";import"./main-thread-to-worker-88f74244.js";import"./roomle-configurator-9aa82aaa.js";import"./pixotron-ea5938b6.js";import"./script-loader-f7ba1da0.js";import"./component-raycast-helper-d4b79e8f.js";import"./default-light-setting-655f990f.js";import{Configurator}from"./configurator-e9ff4674.js";(new Configurator).boot(),window.requestIdleCallback||(window.requestIdleCallback=e=>setTimeout(()=>{let o=Date.now();e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-o))})},1)),window.cancelIdleCallback||(window.cancelIdleCallback=window.cancelIdleCallback||function(e){clearTimeout(e)});
2
- //# sourceMappingURL=configurator-main-9f5acbab.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"configurator-main-9f5acbab.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"default-light-setting-655f990f.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"default-light-setting-6d50e08c.nomodule.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import"./query-params-helper-a271f9dc.js";import"./roomle-dependency-injection-05245504.js";import"./main-thread-to-worker-88f74244.js";import"./pixotron-ea5938b6.js";import"./script-loader-f7ba1da0.js";import"./default-light-setting-655f990f.js";import{GlbViewer}from"./glb-viewer-12d66f42.js";(new GlbViewer).boot();
2
- //# sourceMappingURL=glb-viewer-main-58c87f84.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"glb-viewer-main-58c87f84.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"component-dimensioning-0d8d5af8.legacy.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"component-raycast-helper-8a4b4e95.legacy.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"configurator-eaf54109.legacy.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"default-light-setting-7d1e7495.legacy.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"material-viewer-4b2726bd.legacy.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- System.register(["./query-params-helper-8c00a872.legacy.js","./roomle-dependency-injection-04e986a9.legacy.js","./main-thread-to-worker-cc24f989.legacy.js","./roomle-configurator-247f7df1.legacy.js","./pixotron-f357938b.legacy.js","./script-loader-830904ac.legacy.js","./default-light-setting-7d1e7495.legacy.js"],(function(e,t){var n,i,a,s,r,o,l,h,c,d,_,g,p,m,u,E,w,C,v,f,S,b,M,P,I,y,H,L,D,k,O,V,T,A,R,j,x,B,W,F,G,K,U,z,N,q,X,Q,Z,J,Y,$;return{setters:[function(){},function(e){n=e.h,i=e._,a=e.i,s=e.f,r=e.N,o=e.a1,l=e.W,h=e.a2,c=e.O,d=e.S,_=e.c,g=e.a3,p=e.k,m=e.B,u=e.T,E=e.a4,w=e.g,C=e.w,v=e.a5,f=e.a6,S=e.n,b=e.G,M=e.a7,P=e.E,I=e.D,y=e.L,H=e.a8,L=e.R,D=e.b},function(e){k=e.d,O=e.i,V=e.m},function(e){T=e.S,A=e.C,R=e.P,j=e.G,x=e.p,B=e.a,W=e.g,F=e.R},function(e){G=e.L,K=e.B,U=e.b,z=e.C,N=e.d,q=e.e,X=e.I,Q=e.T,Z=e.P,J=e.c},function(e){Y=e.S,$=e.M},function(){}],execute:function(){class ee extends G{constructor(e,t){super(e,t),this._center=new THREE.Vector3(0,0,0),this._params={ambientLight:{color:"#ffffff"},hemiLight:{color:"#ffffff"},mainDirLight:{direction:{x:2,y:1,z:2},color:"#ffffff"}},this._ambientLight=new THREE.AmbientLight(new THREE.Color(this._params.ambientLight.color),.4),this._ambientLight.layers.set(1),this._mainDirLight=new THREE.DirectionalLight(new THREE.Color(this._params.mainDirLight.color),.5),this._mainDirLight.castShadow=!0,this._mainDirLight.shadow.camera.near=.5,this._mainDirLight.shadow.camera.far=100,this._mainDirLight.shadow.mapSize=new THREE.Vector2(1024,1024),this._mainDirLight.visible=!0,this.addToScene()}updateSunPosition(e,t){}addToScene(){this._scene.add(this._mainDirLight),this._scene.add(this._ambientLight),this._scene.add(this._mainDirLight.target)}removeFromScene(){this._scene.remove(this._mainDirLight),this._scene.remove(this._ambientLight),this._scene.remove(this._mainDirLight.target)}reload(){this.removeFromScene(),this.addToScene()}needsBounds(){return!0}updateBounds(e){this._center.copy(e.getCenter(new THREE.Vector3));const t=new THREE.Sphere;e.getBoundingSphere(t);const n=t.radius,i=new THREE.Vector3(this._params.mainDirLight.direction.x,this._params.mainDirLight.direction.y,this._params.mainDirLight.direction.z);i.normalize(),i.multiplyScalar(n),this._mainDirLight.position.copy(this._center),this._mainDirLight.position.add(i),this._mainDirLight.target.position.copy(this._center),this._mainDirLight.target.updateMatrixWorld(!0),this._mainDirLight.shadow.camera.top=n,this._mainDirLight.shadow.camera.bottom=-n,this._mainDirLight.shadow.camera.left=-n,this._mainDirLight.shadow.camera.right=n,this._mainDirLight.shadow.camera.near=.01,this._mainDirLight.shadow.camera.far=2*n,this._mainDirLight.shadow.camera.updateProjectionMatrix()}showGUI(){let e=n();if(e){if(this._ambientLight){let t=e.addFolder("Ambient Light");t.add(this._ambientLight,"visible"),t.add(this._ambientLight,"intensity").min(0).max(5).step(.1),t.addColor(this._params.ambientLight,"color").onChange(e=>this._ambientLight.color=new THREE.Color(e))}if(this._hemiLight){let t=e.addFolder("Hemi Light");t.add(this._hemiLight,"visible"),t.add(this._hemiLight,"intensity").min(0).max(5).step(.1),t.addColor(this._params.hemiLight,"color").onChange(e=>this._hemiLight.color=new THREE.Color(e))}if(this._mainDirLight){let t=e.addFolder("Main Directional Light");t.add(this._mainDirLight,"visible"),t.add(this._mainDirLight,"intensity").min(0).max(10).step(.1),t.add(this._mainDirLight,"castShadow"),t.addColor(this._params.mainDirLight,"color").onChange(e=>this._mainDirLight.color=new THREE.Color(e)),t.add(this._mainDirLight.position,"x").min(-10).max(10).step(.1).onChange(()=>this._mainDirLight.lookAt(this._center)),t.add(this._mainDirLight.position,"y").min(-10).max(50).step(.1).onChange(()=>this._mainDirLight.lookAt(this._center)),t.add(this._mainDirLight.position,"z").min(-10).max(10).step(.1).onChange(()=>this._mainDirLight.lookAt(this._center))}}}}class te{constructor(e){const{planElementViewModel:t,resetCamera:n,state:i,oldState:a}=e;this.planElementViewModel=t,this.resetCamera=void 0===n||n,this.state=void 0===i?0:i,this.oldState=void 0===a?0:a}}class ne extends T{constructor(e,t,n,i){super(e,t,n,i),this._isDrawingEnabled=!1,this._isCurrentlyDrawing=!1,this._state=0,this._inputManager.addEventListener(4,()=>this._position=null,this),this._raycastHelper.setMode(0),this._raycastHelper.addEventListener(0,()=>{if(2===this._state)return this.resetState(),void(this.isSnappingActive&&this.planInteractionHandler.reactivateAllSnappingActivity());this._plannerSelectionHandler.cancelSelection()},this),this._plannerSelectionHandler.addEventListener(0,({planElementViewModel:e})=>{this.dispatchEvent(0,new te({planElementViewModel:e}))},this),this._plannerSelectionHandler.addEventListener(1,({planElementViewModel:e})=>{this.setState(0),this.dispatchEvent(1,new te({planElementViewModel:e}))},this),this._inputManager.addEventListener(6,e=>this._move(e),this)}disable(){const e=new THREE.Layers;e.disableAll(),this._raycastHelper.setLayers(e),this._raycastHelper.disableEvents()}get planInteractionHandler(){var e;return null===(e=this._plannerKernelAccess)||void 0===e?void 0:e.planInteractionHandler}enable(){const e=new THREE.Layers;e.enable(3),e.enable(7),e.enable(6),e.enable(9),this._raycastHelper.setLayers(e),this._raycastHelper.enableEvents()}enableConstructionEvents(e){e?this._raycastHelper.getLayers().enable(9):this._raycastHelper.getLayers().disable(9)}enableObjectEvents(e){e?this._raycastHelper.getLayers().enable(6):this._raycastHelper.getLayers().disable(6)}getSelectionMode(){return this._plannerSelectionHandler.getSelectionMode()}addPlanObjectHandlers(e,t){t||(t=e.getBoundingBox());const n={hasListener:!0,priority:1,roomleId:e.getId()};this._addPlanObjectHandlers(e,t,n)}addWallHandlers(e){this._addPlanElementHandlers(e,e.getObject(),{hasListener:!0,priority:1,roomleId:e.getId()})}addNodeHandlers(e){this._addPlanElementHandlers(e,e.getBoundingBox(),{hasListener:!0,priority:1,roomleId:e.getId()})}_addPlanObjectHandlers(e,t,n){t.userData.hasListener||(t.userData=k(t.userData,n),t.addEventListener("select",()=>this._clickElement(e)),t.addEventListener("drag_start",()=>this._dragStart(e)),t.addEventListener("drag",t=>this._drag(e,t.attachment.position)),t.addEventListener("drag_end",t=>this._dragEnd(e,t.attachment.position)),t.addEventListener("hover_on",()=>this._hoverOn(e)),t.addEventListener("hover_off",()=>this._hoverOff(e)),t.addEventListener("rotate",t=>this._rotate(e,t.attachment.rotation)))}_addPlanElementHandlers(e,t,n){t.userData.hasListener||(t.userData=k(t.userData,n),t.addEventListener("select",()=>this._clickElement(e)),t.addEventListener("double_click",t=>{var n,i;return this._doubleClickElement(e,null===(i=null===(n=null==t?void 0:t.attachment)||void 0===n?void 0:n.intersection)||void 0===i?void 0:i.point)}),t.addEventListener("drag_start",()=>this._dragStart(e)),t.addEventListener("drag",t=>this._drag(e,t.attachment.position)),t.addEventListener("drag_end",t=>this._dragEnd(e,t.attachment.position)),t.addEventListener("hover_on",()=>this._hoverOn(e)),t.addEventListener("hover_off",()=>this._hoverOff(e)))}_createFloorMeshWithHandler(){const e=new THREE.PlaneBufferGeometry(100,100,8,8),t=new THREE.MeshBasicMaterial;t.visible=!1;const n=new THREE.Mesh(e,t);return n.name="2D raycaster floor mesh",n.rotation.set(-Math.PI/2,0,0),n.userData=k(n.userData,{hasListener:!0,priority:.9,roomleId:void 0}),n.addEventListener("double_click",e=>{this._toggleDrawing(null,s(e.attachment.intersection.point))}),n.addEventListener("select",e=>{this._isCurrentlyDrawing?this._createNode(null,s(e.attachment.intersection.point)):this._plannerSelectionHandler.cancelSelection()}),n}_clickElement(e){if(this._isCurrentlyDrawing){if(e instanceof r){let t=!1;for(const n of this._planViewModel.getWallPlanObjectViewModels())n.getBounds().containsPoint(o(e.getPlanElement().getCenter()))&&(t=!0);const n=s(e.getPosition());e.getPlanElement().getNumberOfConnectedWalls()>1||t?this._endWallDrawing(null,n):this._createNode(null,n)}}else{if(this._debug&&e.getId(),2===this._state)return this.resetState(),void(this.isSnappingActive&&this.planInteractionHandler.reactivateAllSnappingActivity());this._plannerSelectionHandler.check(e),this._setCursor()}}_doubleClickElement(e,t){if(!this._isDrawingEnabled||!(e instanceof r||e instanceof l))return;this._debug&&e.getId(),e instanceof l&&this._plannerSelectionHandler.cancelSelection();const n=s(t||e.getPosition());this._isCurrentlyDrawing?this._endWallDrawing(null,n):this._startWallDrawing(null,n)}_hoverOn(e){this._isCurrentlyDrawing||(e.hoverOn(),this._hoveredObject=e,this.dispatchEvent(3,new te({planElementViewModel:e})),this._interaction(),this._setCursor())}_hoverOff(e){e.hoverOff(),this.dispatchEvent(4,new te({planElementViewModel:e})),this._interaction(),this._hoveredObject=null,this._setCursor()}_setCursor(){2===this._state&&this._hasSelection()?O("ew-resize"):1===this._state?O("grabbing"):this._hoveredObject&&this._plannerSelectionHandler.isSelected(this._hoveredObject.getId())?O("move"):this._hoveredObject?O("pointer"):3===this._state?O(h?"url('https://res.cloudinary.com/roomle/image/upload/v1664957371/pencil_j5vkhm.svg') 0 15, auto":"url('https://res.cloudinary.com/roomle/image/upload/v1664957371/pencil_j5vkhm.svg') 3 20, auto"):O("default")}setCamera(e){this._raycastHelper.setCamera(e)}setScene(e){this._raycastHelper.setScene(e)}getSelectedIds(){return this._plannerSelectionHandler.getSelectedIds()}setSelectionMode(e){this._plannerSelectionHandler.setSelectionMode(e)}setPlanViewModel(e){this._planViewModel=e}cancelSelection(){this._plannerSelectionHandler.cancelSelection()}_dragStart(e){(this._plannerSelectionHandler.isSelected(e.getId())&&0===this._state||this._isDrawingEnabled)&&(this._draggedObject=e,this.setState(1),this.dispatchEvent(8,new te({planElementViewModel:e})),this._setCursor())}_drag(e,t){if(!this._draggedObject||1!==this._state)return;const n=this.planInteractionHandler;if(this._plannerSelectionHandler.getSelectedIds().length>1){const e=new this._plannerKernelAccess.kernelContainer.PlanObjectPtrList;let i=t.sub(this._draggedObject.getPosition());this._plannerSelectionHandler.getSelectedIds().forEach(t=>e.push_back(this._planViewModel.getPlanObjectForId(t).getPlanElement())),n.moveObjectsBy(e,s(i))}else n.moveElementTo(e.getPlanElement(),s(t));this.dispatchEvent(9,new te({planElementViewModel:e}))}_dragEnd(e,t){this._draggedObject&&(this._draggedObject=null,this.setState(0),this.dispatchEvent(10,new te({planElementViewModel:e})),this._dragIn&&(this.cancelSelection(),this.setDragIn(!1)),this._setCursor())}_rotate(e,t){if(this._plannerSelectionHandler.isSelected(e.getId())){const n=this.planInteractionHandler,i=e.getPlanObject();n.setObjectRotation(e.getPlanElement(),i.rotation-t)}}setState(e){const t=this._state;this._state=e,this._setCursor(),this.dispatchEvent(2,new te({state:this._state,oldState:t})),this._position=null,2===this._state&&this.planInteractionHandler.deactivateAllSnappingActivity()}resetState(){this.setState(0)}_move(e){if(3!==this._state&&2===this._state&&this._hasSelection()){this._setCursor();let t=Math.PI/180;const{x:n,y:i}=e.positionRelative;this._position?t=1.4*e.positionRelative.x*Math.PI-1.4*this._position.x*Math.PI:this._position=new THREE.Vector3(e.positionRelative.x,e.positionRelative.y,0);const a=new this._plannerKernelAccess.kernelContainer.PlanObjectPtrList,r=new THREE.Box3;this.getSelectedIds().forEach(e=>{var t;const n=null===(t=this._planViewModel)||void 0===t?void 0:t.getPlanObjectForId(e);n&&n.getObject()&&(a.push_back(n.getPlanElement()),r.expandByObject(n.getContainer()))});const o=r.getCenter(new THREE.Vector3);this.planInteractionHandler.rotateObjectsBy(a,t,s(o)),this._position.copy(new THREE.Vector3(n,i,0))}}_hasSelection(){return this._plannerSelectionHandler.getSelectedIds().length>0}selectPlanElement(e){this._plannerSelectionHandler.check(e)}_interaction(e){this.dispatchEvent(11,new te({}))}addComponentDragInHandler(e){if(!this._dragIn)return;const t=e.getBoundingBox();this._addPlanElementHandlers(e,t,{hasListener:!0,priority:1,roomleId:e.getId()}),this._raycastHelper.enableDragIn(t),this._dragStart(e)}enableSnapping(){this.planInteractionHandler.reactivateAllSnappingActivity(),this.isSnappingActive=!0}disableSnapping(){this.planInteractionHandler.deactivateAllSnappingActivity(),this.isSnappingActive=!1}enableWallDrawing(){return this._isDrawingEnabled=!0,this._floorDrawingPlane=this._createFloorMeshWithHandler(),this._inputManager.addEventListener(6,this._drawWallOnMouseMove,this),this._inputManager.addEventListener(14,this._startWallDrawing,this),this._inputManager.addEventListener(13,this._endWallDrawing,this),this._floorDrawingPlane}cancelWallDrawing(){return this._isDrawingEnabled=!1,this._setStateAndCursor(0),this._inputManager.removeEventListener(6,this._drawWallOnMouseMove),this._inputManager.removeEventListener(14,this._startWallDrawing),this._inputManager.removeEventListener(13,this._endWallDrawing),this._raycastHelper.clear(),this._floorDrawingPlane}escapeDrawing(){this.planInteractionHandler.endInteraction(),this.planInteractionHandler.cancelDrawing(),this._isCurrentlyDrawing=!1,this._setStateAndCursor(0),this.dispatchEvent(7)}_toggleDrawing(e,t){this._isCurrentlyDrawing?this._endWallDrawing(e,t):this._startWallDrawing(e,t)}_endWallDrawing(e,t){if(this._isCurrentlyDrawing){this._isCurrentlyDrawing=!1,this.dispatchEvent(7),this._point=t||this._getIntersectionPointWithScene(e);const{x:n,y:i,z:a}=this._point;this.planInteractionHandler.forceNode({x:n,y:i,z:a}),this.planInteractionHandler.cancelDrawing(),this._setStateAndCursor(0)}}_startWallDrawing(e,t){this._isCurrentlyDrawing=!0,e&&2===e.type&&this.planInteractionHandler.setDrawingType(0),this.planInteractionHandler.startInteraction(),this._setStateAndCursor(3),this._point=t||this._getIntersectionPointWithScene(e);const{x:n,y:i,z:a}=this._point;this.planInteractionHandler.beginDrawing({x:n,y:i,z:a}),this.dispatchEvent(6)}_drawWallOnMouseMove(e){if(!this._isCurrentlyDrawing)return;this._point=this._getIntersectionPointWithScene(e);const{x:t,y:n,z:i}=this._point;this.planInteractionHandler.currentDrawingPosition({x:t,y:n,z:i}),this.dispatchEvent(5)}_createNode(e,t){if(!this._isCurrentlyDrawing)return;this._point=t||this._getIntersectionPointWithScene(e);const{x:n,y:i,z:a}=this._point;this.planInteractionHandler.forceNode({x:n,y:i,z:a}),this._raycastHelper.clear(),this.planInteractionHandler.endInteraction()}_getIntersectionPointWithScene(e){return this._raycastHelper.intersectMouseOnScene(e)}_setStateAndCursor(e){this.setState(e),this._setCursor()}}i([a],ne.prototype,"_plannerSelectionHandler",void 0),i([a],ne.prototype,"_plannerKernelAccess",void 0);class ie extends A{constructor(e,t,n,i){super(e,t,i),this._staticItemGuard=new c,this._configurableItemGuard=new c,this.currentSelection=null,this._stopRendering=!0,this._configuratorContext.baseContext="planner",this._roomlePlannerCallback=n,this._plannerMeshGenerator.maxAnisotropy=this._renderer.capabilities.getMaxAnisotropy(),this._plannerMeshGenerator.maxTextures=this._renderer.capabilities.maxTextures,this._plannerSceneEventHandler=new ne(e,this._scene,this._cameraControl.getCamera(),this._getInputManager()),this._plannerSceneEventHandler.addEventListener(2,({state:e,oldState:t})=>{2===t&&e!==t&&this._roomlePlannerUiCallback.onRotationCancel(),2===e||1===e?(this._cameraControl.lock(),this._onCameraMove()):(this._cameraControl.unlock(),this._onCameraIdle())},this),this._plannerSceneEventHandler.addEventListener(11,()=>this._renderWithoutShadowsAndAO(),this),this._plannerSceneEventHandler.addEventListener(3,({planElementViewModel:e})=>this._onPlanElementHoverOn(e),this),this._plannerSceneEventHandler.addEventListener(4,({planElementViewModel:e})=>this._onPlanElementHoverOff(e),this),this._plannerSceneEventHandler.addEventListener(0,({planElementViewModel:e})=>{e instanceof d&&this._initData.debug&&e.getGLBUrl(),this._highlightPlanElement(e),this._onSelectionChange(e),this._renderWithoutShadowsAndAO()},this),this._plannerSceneEventHandler.addEventListener(1,({planElementViewModel:e})=>{this._highlightPlanElement(null),this._onSelectionCancel(e),this._roomlePlannerUiCallback.onSelectionCancel(),this._renderWithoutShadowsAndAO()},this),this._plannerSceneEventHandler.addEventListener(8,({planElementViewModel:e})=>{this._getKernelAccess().planInteractionHandler.startInteraction(),this._cameraControl.lock(),e instanceof l&&this._sendWallDimensions(),this._environment instanceof K&&this._environment.removeFromScene(),this._requestRender(),this._dragStartBounds=this.getBounds()},this),this._plannerSceneEventHandler.addEventListener(9,({planElementViewModel:e})=>{this._cameraControl.checkNearFarDistance(e.getPosition()),this._requestRender()},this),this._plannerSceneEventHandler.addEventListener(10,({planElementViewModel:e})=>{const t=this._getKernelAccess().planInteractionHandler;t.endInteraction(),this._cameraControl.unlock(),this._environment instanceof K&&this._environment.addToScene();const n=this._getDragPosition(e.getPosition());n&&t.moveElementTo(e.getPlanElement(),s(n)),this.updateEnvironment(this.getBounds(),!0),this._zoomToBounds(!1),this._renderEverything()},this),this._getKernelAccess().addPlannerListener(this),this._plannerMeshGenerator.setMaterialLoadedListener(()=>{this._configurableItemGuard.resolve(),this._requestRender()}),window.onbeforeunload=this.clearScene.bind(this),this._renderListener=()=>{this._requestRender()},this._getInputManager().addEventListener(7,this._renderListener,this),this._getInputManager().addEventListener(8,this._renderListener,this),this.disableConfiguratorEvents(),this.enablePlannerEvents()}planCleared(){}planHistoryStateChanged(){this._sendWallDimensions()}_getViewModel(){return this._viewModel||(this._viewModel=new R(this._creator_)),this._viewModel}_onPlanElementHoverOn(e){this._highlightPlanElement(e)}_onPlanElementHoverOff(e){this._highlightPlanElement(null)}_getDragPosition(e){if(!this._plannerSceneEventHandler.isDragIn())return null;const t=this._dragStartBounds?this._dragStartBounds:this.getBounds(),n=t.getCenter(new THREE.Vector3),i=e.distanceTo(n),a=t.getSize(new THREE.Vector3),s=Math.max(a.x,a.z)+3;if(i>s){const t=(new THREE.Vector3).subVectors(e,n).normalize();return n.clone().add(t.multiplyScalar(s))}return null}_onSelectionChange(e){let t;const n={};if(e instanceof d&&(t="static",n.item=e.getRapiItem(),n.staticItemRuntimeId=e.getPlanElement().getId()),e instanceof _){t="configuration";const i=e.getConfigurationRuntimeId();n.configurationRuntimeId=i}e instanceof l&&(t="wall",n.wall=e.getWallDimension());const i=(async()=>{const n={};if(e instanceof d&&(n.item=e.getRapiItem(),n.staticItemRuntimeId=e.getPlanElement().getId()),e instanceof _){const i=e.getConfigurationRuntimeId(),a=e.getPlanObject().getCatalogItemId(),s=this._getKernelAccess().kernelInstance.getHashOfConfiguration(i);let r;if(this._configuratorContext.planObjectId=i,this._configuratorContext.planElementId=e.getId(),this._configuratorContext.rootComponentId=e.getRootComponentRuntimeId(),a&&C(a)){const e=await this._rapiAccess.getItem(a);n.item=e,r=e.rootComponentId?e.rootComponentId:null}else try{const e=await this._rapiAccess.getConfiguration(s);n.configuration=e,r=e.rootComponentId?e.rootComponentId:null}catch(e){console.warn("Could not get RAPI configuration for kernel hash "+s+", saving configuration...");const t=await this._getKernelAccess().getConfigurationData(i),a=await this._rapiAccess.saveConfiguration(t);n.configuration=a,r=a.rootComponentId?a.rootComponentId:null}if(r){const e=await this._rapiAccess.getComponent(r);n.component=e}n.configurationRuntimeId=i,t="configuration"}return V(n)})();this.currentSelection=V(n),this._roomlePlannerUiCallback.onSelectionChange(V(this._plannerSceneEventHandler.getSelectionMode()),V(t),V(n),i,e),(e instanceof l||e instanceof r)&&this._getViewModel().getNodePlanObjectViewModels().forEach(e=>e.show()),this._renderWithoutShadowsAndAO()}_onSelectionCancel(e){this._getViewModel().getNodePlanObjectViewModels().forEach(e=>e.hide()),this._renderWithoutShadowsAndAO(),this.resetConfiguratorContext(),this.currentSelection=null}resetConfiguratorContext(){this._configuratorContext.planObjectId=0,this._configuratorContext.planElementId=0,this._configuratorContext.rootComponentId=0,this._configuratorContext.dockingRootComponentId=0}_setupScene(e,t){super._setupScene(e,t,!0),this._lightSetting=new ee(this._scene,this._lightSetting),this._initData.moc?this._setEnvironment(new U(this._scene,this._environment,new THREE.Color(this._initData.colors.DEFAULT_BACKGROUND))):(this._addSky(),this._setEnvironment(new K(this._scene,this._environment)))}onBeforeRender(){this._cameraControl instanceof z&&this._plannerMeshGenerator.wallMeshes.forEach(e=>g(this._cameraControl.getCamera(),e.material))}_getInputManager(){return this._plannerInputManager}createCameraControl(e,t){this.setMode(e)}startViewing(){this._configuratorContext.baseContext="glb-viewer";const e=this._plannerSceneEventHandler.getSelectedIds();if(1===e.length){const t=this._getViewModel().getPlanObjectForId(e[0]);this._cameraControl instanceof z&&this._cameraControl.setObjectRotation(t.getPlanElement().rotation),this._getViewModel().hideAllExcept(t.getId())}this.resetCamera(),this.updateEnvironment(this.getBounds(),!0)}startConfiguring(){var e;this._configuratorContext.baseContext="configurator";const t=this._plannerSceneEventHandler.getSelectedIds();if(1===t.length&&this._cameraControl instanceof z){const e=this._getViewModel().getPlanObjectForId(t[0]);this._cameraControl.setObjectRotation(e.getPlanElement().rotation)}const{planObjectId:n,planElementId:i}=this._configuratorContext;this._getViewModel().hideAllExcept(i),this.resetCamera(),this.disablePlannerEvents(),this.enableConfiguratorEvents(),this.updateScene(),this._getKernelAccess().updatePlanObjectDependencies(n),this._getKernelAccess().requestPartListAndUpdatePricesOfParts(),this._getKernelAccess().planObjectUpdated(n),this.updateEnvironment(this.getBounds(),!0);const a=null===(e=this._plannerKernelAccess)||void 0===e?void 0:e.planInteractionHandler;null==a||a.startInteraction()}selectPlanObject(e){if(this._plannerSceneEventHandler.getSelectedIds().includes(e))return;const t=this._getViewModel().getPlanObjectForId(e);this._plannerSceneEventHandler.selectPlanElement(t)}backToPlanner(){var e;if(this._getViewModel().showAll(),"configurator"===this._configuratorContext.baseContext){const t=null===(e=this._plannerKernelAccess)||void 0===e?void 0:e.planInteractionHandler;null==t||t.endInteraction()}this._configuratorContext.baseContext="planner",this._cameraControl instanceof z&&this._cameraControl.setObjectRotation(0),this.resetCamera(),this.enablePlannerEvents(),this.disableConfiguratorEvents(),this.updateScene()}resetCamera(){this._cameraControl.hasSavedState()?this.resetCameraToState():this.resetCameraPositionToStart()}resetCameraToState(){this._cameraControl.resetToState()}_getYRotationOfObject(e){let t=e.getWorldDirection(new THREE.Vector3).clone();t.y=0,t.lengthSq()<.01&&(t=new THREE.Vector3(0,1,0),t.applyQuaternion(e.quaternion),t.y=0),t.normalize();let n=Math.asin(t.x);return t.z<0&&(n=Math.PI-n),n<0&&(n+=2*Math.PI),n}loadStaticPlanObjects(){let e=new Map;this._getViewModel().getStaticPlanObjectViewModels().forEach(t=>{let n=t.getPlanObject();e.has(n.getCatalogItemId())?e.get(n.getCatalogItemId()).push(t):e.set(n.getCatalogItemId(),[t])}),this._rapiAccess.getItems(Array.from(e.keys())).then(t=>{let n=[];t.forEach(t=>{this._getKernelAccess().catalogItemLoaded(t),e.get(t.id).forEach(e=>{n.push(new Promise((n,i)=>{e.setRapiItem(t).then(()=>{this._requestRender(),n()},i)}))})}),Promise.all(n).then(()=>this._staticItemsLoaded())})}_staticItemsLoaded(){this._requestRender(),this._staticItemGuard.resolve(),this._roomlePlannerUiCallback.onItemsLoaded()}preload(e){this._planId=e;let t=this._localStorageHelper.getItem(this._planId,"rml_plans");t&&this._loadGLTF(t).then(e=>{this._preloadScene=e,this._preloadScene&&this._scene.add(this._preloadScene),this._requestRender()})}planXMLLoaded(e){this.endPlanConstruction(e);const t=e.getBounds(),n=p(t);this._updateBounds(n),this.loadStaticPlanObjects()}planCompletelyLoaded(e){this._stopRendering=!1,this._renderEverything(),this.resetCamera()}handlerSwitchedPlans(e,t){if(this._getViewModel().setReference(t),this._getKernelAccess().coupleReferences(this._getViewModel(),t),this._getViewModel().setPlannerSceneEventHandler(this._plannerSceneEventHandler),this._getViewModel().setGeometriesMergedListener(()=>{this._renderEverything()}),this._plannerSceneEventHandler.setPlanViewModel(this._getViewModel()),e&&this.clearScene(),!this._initData.moc){this._addSky();let e=new THREE.PlaneGeometry(1e3,1e3);e.rotateX(-Math.PI/2);let t=new THREE.MeshStandardMaterial({color:"#f0f0f0",roughness:1,metalness:0}),n=new THREE.Mesh(e,t);n.name="Ground",n.position.y=-.01,n.receiveShadow=!0,this._scene.add(n)}this.resetCamera(),this._setCeiling(),this._staticItemGuard.reset(),this._configurableItemGuard.reset(),Promise.all([this._staticItemGuard.wait(),this._configurableItemGuard.wait()]).then(this._itemsLoaded.bind(this))}_itemsLoaded(){const e=this._getViewModel().getCorePlan();if(this._pixotron){const t=p(e.getBounds());this._pixotron.getShadowPass().setShadowRecieverBBox(t)}this._roomlePlannerUiCallback.onCompletelyLoaded(),this._pixotronUtil&&this._getViewModel().materialQueue.finished(!0).then(()=>{this._pixotronUtil.unLockAdapter()}),this.updateEnvironment(this.getBounds(),!0),this._renderEverything(),m.end("loadingTime")}beginPlanConstruction(e){}addPlanMesh(e,t,n,i,a,s,r){}endPlanConstruction(e){this._renderLoopFunction=()=>{this._scene.add(this._getViewModel().getConstructionGroup()),this._scene.add(this._getViewModel().getCeilingGroup()),this._scene.add(this._getViewModel().getFloorGroup()),this._lightSetting.needsBounds()&&this._lightSetting.updateBounds(this._getViewModel().getBoundingBox()),this._scene.remove(this._preloadScene)}}addPlanObjectToScene(e){if(e){const t=e.getContainer();u(t),this._scene.add(t),this._plannerSceneEventHandler.isDragIn()&&(this._plannerSceneEventHandler.selectPlanElement(e),this._plannerSceneEventHandler.addComponentDragInHandler(e),this._requestRender()),this._roomlePlannerUiCallback.onPlanChanged(),this._roomlePlannerUiCallback.onPlanElementChanged()}setTimeout(()=>{this._zoomToBounds(!1)},0),this._renderEverything()}removePlanObjectFromScene(e){this._scene.remove(e.getContainer()),e.clear(),this.updateEnvironment(this.getBounds()),this._zoomToBounds(!0),this._renderEverything(),this._roomlePlannerUiCallback.onPlanElementChanged()}planElementChanged(e,t){this._drawingEnabled&&this._sendWallDimensions(!1),this.updateEnvironment(this.getBounds(),!0),this._renderEverything(),this._onPlanChanged(),this._roomlePlannerUiCallback.onPlanElementChanged()}exportGLB(e,t){this._scriptLoader.fetch(j,{id:"gltf-exporter"}).then(()=>{let n=new THREE.GLTFExporter;e||(e=[],this._scene.children.forEach(t=>{this._isPartOfScene(t)&&e.push(t)})),n.parse(e,e=>{let n=t||"test";this._localStorageHelper.addItem(n,JSON.stringify(e),"rml_plans")},{binary:!1,embedImages:!0,forceIndices:!0})})}importGLB(e){this._loadGLB(e).then(e=>this._scene.add(e))}clearScene(){this._plannerMeshGenerator.clear(),this._getViewModel().sceneCleared(),super.clearScene()}_addSky(){this._sky=new THREE.Sky,this._sky.name="Sky",this._sky.scale.setScalar(45e4),this._scene.add(this._sky),this._sky.material.uniforms.turbidity.value=10,this._sky.material.uniforms.rayleigh.value=2,this._sky.material.uniforms.luminance.value=1,this._sky.material.uniforms.mieCoefficient.value=.005,this._sky.material.uniforms.mieDirectionalG.value=.8;let e=new THREE.Mesh(new THREE.SphereBufferGeometry(2e4,16,8),new THREE.MeshBasicMaterial({color:16777215}));e.name="Sunsphere",e.position.y=-7e5,e.visible=!1,this._scene.add(e);let t=-.2*Math.PI,n=2*Math.PI*-.25;e.position.x=4e5*Math.cos(n),e.position.y=4e5*Math.sin(n)*Math.sin(t),e.position.z=4e5*Math.sin(n)*Math.cos(t),e.visible=!0,this._sky.material.uniforms.sunPosition.value.copy(e.position),this._lightSetting instanceof ee&&this._lightSetting.updateSunPosition(.3,.25)}switchTo2D(){this._onCameraMove(),this._cameraControl instanceof N||(this._plannerMeshGenerator.wallMeshes.forEach(e=>E(e.material,!1,!1)),this._getViewModel().setCameraType("2D"),this._renderEverything(),this._changeCameraControl(new N(this._creator_,this._getInputManager(),null,this.getOrthographicOffsetCamera())),this._updateCamera(),this._addCameraControlListener(),this._setCeiling(),this._roomlePlannerUiCallback.onCameraChanged("2D"),this._setCameraControlListeners())}switchTo3D(){this._onCameraMove(),this._cameraControl instanceof z||(this._getViewModel().setCameraType("3D"),this._renderEverything(),this._changeCameraControl(new z(this._creator_,this._getInputManager(),new THREE.Vector3(0,10,0),this.getPerspectiveOffsetCamera())),this._updateCamera(),this._addCameraControlListener(),this._setCeiling(),this._roomlePlannerUiCallback.onCameraChanged("3D"),this._setCameraControlListeners())}_setCameraControlListeners(){this._cameraControl.addEventListener(8,()=>{this._onCameraIdle()},this),this._cameraControl.addEventListener(1,()=>{this._onCameraMove()},this),this._cameraControl.addEventListener(3,()=>{this._onCameraMove()},this),this._cameraControl.addEventListener(4,()=>{this._onCameraMove()},this),this._cameraControl.addEventListener(5,()=>{this._onCameraZoomChange()},this)}_onCameraZoomChange(){const e=this._cameraControl.getKernelZoomFactor();this._getKernelAccess().planInteractionHandler.setZoomFactor(e)}_setCeiling(){this._getViewModel()&&(this._cameraControl instanceof q?this._getViewModel().getCeilingGroup().visible=!0:this._getViewModel().getCeilingGroup().visible=!1)}cameraControlChanged(){super.cameraControlChanged(),this._plannerSceneEventHandler&&this._plannerSceneEventHandler.setCamera(this._cameraControl.getCamera())}sceneChanged(){this._plannerSceneEventHandler&&this._plannerSceneEventHandler.setScene(this._scene)}closeHSC(){this._requestRender(),this._cameraControl instanceof z&&this._cameraControl.resetToState()}switchToFirstPerson(){if(this._cameraControl instanceof q)return;this._plannerMeshGenerator.wallMeshes.forEach(e=>E(e.material,!1,!1)),this._getViewModel().setCameraType("FP"),this._renderEverything();let e=new THREE.Vector3(0,0,0);this._getViewModel()&&(e=this._getViewModel().getBoundingBox().getCenter(new THREE.Vector3)),this._cameraControl&&this._cameraControl.cleanUp(),this._changeCameraControl(new q(this._creator_,this._getInputManager(),e,this.getPerspectiveOffsetCamera())),this._addCameraControlListener(),this._setCeiling(),this._roomlePlannerUiCallback.onCameraChanged("FP"),this._setCameraControlListeners()}_onKeyDown(e){super._onKeyDown(e),this._initData.debug&&this._checkNumKey(e),!e.key||"Meta"!==e.key&&"Control"!==e.key||(this._plannerSceneEventHandler.setSelectionMode("multiselect"),e.preventDefault()),e.key&&e.key.includes("Shift")&&this._cameraControl instanceof z&&(this._cameraControl.enablePanning(),e.preventDefault())}_checkNumKey(e){e.key&&"1"===e.key&&(this.switchTo2D(),e.preventDefault()),e.key&&"2"===e.key&&(this.switchTo3D(),e.preventDefault()),e.key&&"3"===e.key&&(this.switchToFirstPerson(),e.preventDefault())}_onKeyUp(e){super._onKeyDown(e),!e.key||"Meta"!==e.key&&"Control"!==e.key||(this._plannerSceneEventHandler.setSelectionMode("standard"),e.preventDefault()),e.key&&e.key.includes("Shift")&&this._cameraControl instanceof z&&(this._cameraControl.disablePanning(),e.preventDefault()),!e.key||"Escape"!==e.key&&"Esc"!==e.key||this._drawingEnabled&&(this.escapeDrawing(),this._roomlePlannerUiCallback.onDrawCancel())}setMode(e){switch(e){case"2D":this.switchTo2D();break;case"3D":this.switchTo3D();break;case"FP":this.switchToFirstPerson()}}_highlightPlanElement(e){let t=new Set;e&&e.getObject()&&e.getObject().children&&e.getObject().children.forEach(e=>t.add(e)),this._plannerSceneEventHandler.getSelectedIds().forEach(e=>{const n=this._getViewModel().getPlanObjectForId(e);n&&n.getObject()&&n.getObject().children&&n.getObject().children.forEach(e=>t.add(e))}),this._pixotron&&this._pixotron.highlightObjects(Array.from(t))}destroy(){super.destroy(),this._plannerMeshGenerator.removeMaterialLoadedListener(),this._getViewModel().removeGeometriesMergedListener()}getPixotronParams(){return{saoparams:{intensity:.5,occlusionWorldRadius:.6,smoothTransition:!0,samplesPerFrame:4,bias:.02,numSamples:100,accumulative:!1,falloff:2},shadowparams:{shadowMapResolution:1024,shadowRadius:3,shadowQuality:1,smoothTransition:!0,enableAccumulation:!0,shadowBiasMultiplier:.6,nearPlane:.01,farPlane:50,fov:110,side:THREE.FrontSide,numSamples:100},outlineparams:{highlightColor:new THREE.Color(this._initData.colors.SELECTION),edgeStrength:1,transparency:.9,edgeThickness:2}}}getBakedShadowParams(){return{enable:!0,shadowMapResolution:1024,smoothTransition:!0,numSamples:500,numSamplesPerFrame:4,bShadowMaterial:!0,falloff:1.8,darkness:.3,size:1.2,lightDirection:new THREE.Vector3(0,1,0),lightSolidAngle:40,yPosition:.006}}planObjectConfigurationLoaded(e,t,n){if(e&&e.extRef&&t&&t.extRef){let e=t.extRef.jsObject.getPlanObject().getConfigurationRuntimeId();e>0&&this._getViewModel().constructComponents(e)}}addMesh(e,t,n,i,a,s){}_updateBounds(e){e&&("planner"===this._configuratorContext.baseContext&&this._updateCamera(e),super._updateBounds(e))}_updateCamera(e){if(e||(e=this.getBounds()),e){if(this._cameraControl instanceof z){const t=e.getSize(new THREE.Vector3),n=Math.max(t.x,t.z),i=this._initData.moc?.5*n*-1:5,a=this._initData.moc?X:70;this._cameraControl.updateAndReset(t,e.getCenter(new THREE.Vector3),-15,a,i,!1)}this._cameraControl instanceof N&&!this._drawingEnabled&&this._cameraControl.zoomToFitBounds(e,!0)}}_zoomToBounds(e){const t=this.getBounds();this._cameraControl instanceof z&&this._cameraControl.zoomToFitBounds(t),this._cameraControl instanceof N&&!this._drawingEnabled&&this._cameraControl.zoomToFitBounds(t,e)}updateCameraOnDrawWalls(){const e=this.getBounds();this._cameraControl instanceof N&&this._cameraControl.zoomToFitBounds(e,!1,!0)}getBounds(){return this._getViewModel()?this._getViewModel().getBoundingBox():null}cancelPlanElementSelection(){this._plannerSceneEventHandler.cancelSelection(),this._highlightPlanElement(null),this._requestRender()}deletePlanElementSelection(){const e=this._plannerSceneEventHandler.getSelectedIds();this.cancelPlanElementSelection(),e.forEach(e=>{const t=this._getViewModel().getPlanObjectForId(e);t&&t.getObject()&&this._getKernelAccess().planInteractionHandler.removeElement(t.getKernelObject())})}rotatePlanElementSelection(e){const t=new(this._getKernelAccess().kernelContainer.PlanObjectPtrList),n=new THREE.Box3;this._plannerSceneEventHandler.getSelectedIds().forEach(e=>{const i=this._getViewModel().getPlanObjectForId(e);i&&i.getObject()&&(t.push_back(i.getPlanElement()),n.expandByObject(i.getContainer()))});const i=n.getCenter(new THREE.Vector3),a=this._getKernelAccess().planInteractionHandler.groupObjects(t);this._getKernelAccess().planInteractionHandler.rotateGroupBy(a,e,s(i))}planBoundsChanged(){this.updateEnvironment(this.getBounds()),this._requestRender()}planElementRemoved(e){this._onPlanChanged(),this._renderEverything()}_onPlanChanged(){this._roomlePlannerUiCallback.onPlanChanged()}prepareTopImage(e={}){return new Promise(t=>{this._getViewModel().materialQueue.finished(!0).then(async()=>{let n=this._calculateBoundingBoxOfAllMeshes(.1);this._lightSetting.removeFromScene();let i=await x(this._scene,null,n,e);this._lightSetting.addToScene(),this._requestRender(),t(i)})})}preparePerspectiveImage(e={}){return"configurator"===this._configuratorContext.baseContext?super.preparePerspectiveImage(e):new Promise((t,n)=>{this._getViewModel().materialQueue.finished(!0).then(async()=>{let n;n=this._cameraControl instanceof z?this._cameraControl.getCamera().clone():this.getPerspectiveOffsetCamera();let i=this._calculateBoundingBoxOfAllMeshes();this._lightSetting.removeFromScene();const a=await B(this._scene,null,n,i,e);this._lightSetting.addToScene(),this._requestRender(),t(a)},n)})}_calculateBoundingBoxOfAllMeshes(e=0){const t=this.getBounds();return W(t,e)}enableRotation(){this._plannerSceneEventHandler.setState(2)}disableRotation(){this._plannerSceneEventHandler.resetState()}enableSnapping(){this._plannerSceneEventHandler.enableSnapping()}disableSnapping(){this._plannerSceneEventHandler.disableSnapping()}dragIn(e){this._plannerSceneEventHandler.setDragIn(!0,e)}getPlannerSceneEventHandler(){return this._plannerSceneEventHandler}disablePlannerEvents(){this._plannerSceneEventHandler.disable()}enablePlannerEvents(){this._plannerSceneEventHandler.enable()}_onCameraIdle(){return super._onCameraIdle()&&(this._sendWallDimensions(),this._sendPlanObjectPositions()),!0}_onCameraMove(){return super._onCameraMove()&&(this._roomlePlannerUiCallback.disableWallDimensions(),this._roomlePlannerUiCallback.cameraStartsMoving()),!0}_sendPlanObjectPositions(){if(this._cameraControl.isLocked())return;const{clientWidth:e,clientHeight:t}=this._domHelper.element,n=[];this._getViewModel().getStaticPlanObjectViewModels().forEach(i=>{const a=(new THREE.Box3).setFromObject(i.getContainer()).getCenter(new THREE.Vector3),s={planViewModel:i,position2d:w(a,this._cameraControl.getCamera(),e,t)};n.push(s)}),this._getViewModel().getConfigurablePlanObjectViewModels().forEach(i=>{const a=(new THREE.Box3).setFromObject(i.getContainer()).getCenter(new THREE.Vector3),s={planViewModel:i,position2d:w(a,this._cameraControl.getCamera(),e,t)};n.push(s)}),this._roomlePlannerUiCallback.enablePlanObjectPositions(n)}_sendWallDimensions(e=!0){if(this._cameraControl.isLocked()&&e)return;const t=[],{clientWidth:n,clientHeight:i}=this._domHelper.element;this._getViewModel().getWallPlanObjectViewModels().forEach(e=>{const a=e.getWallDimension();if(a.length>0&&(a.fromPosition2d=w(a.fromPosition3d,this._cameraControl.getCamera(),n,i),a.toPosition2d=w(a.toPosition3d,this._cameraControl.getCamera(),n,i),a.textPosition2d=w(a.textPosition3d,this._cameraControl.getCamera(),n,i),a.lengthFormatted=this._unitFormatter.formatMMValueToUnitString(a.length),t.push(a)),this._initData.debug){const e=new THREE.SphereGeometry(.1,32,16),t=new THREE.MeshBasicMaterial({color:16711680}),n=new THREE.Mesh(e,t);n.position.copy(a.fromPosition3d);const i=new THREE.Mesh(e,t);i.position.copy(a.toPosition3d);const s=new THREE.Mesh(e,new THREE.MeshBasicMaterial({color:65280}));s.position.copy(a.textPosition3d),this._scene.add(n),this._scene.add(i),this._scene.add(s)}}),this._roomlePlannerUiCallback.enableWallDimensions(t)}enableWallDrawing(){this._drawingEnabled||(this._drawingEnabled=!0,this._scene.add(this._plannerSceneEventHandler.enableWallDrawing()),this._plannerSceneEventHandler.addEventListener(6,this.drawingStart,this),this._plannerSceneEventHandler.addEventListener(7,this.drawingEnd,this))}disableWallDrawing(){this._drawingEnabled=!1,this._cameraControl.unlock(),this._scene.remove(this._plannerSceneEventHandler.cancelWallDrawing()),this._plannerSceneEventHandler.removeEventListener(6,this.drawingStart),this._plannerSceneEventHandler.removeEventListener(7,this.drawingEnd)}escapeDrawing(){this._plannerSceneEventHandler.escapeDrawing()}drawingStart(){this._cameraControl.lock()}drawingEnd(){this._cameraControl.unlock()}_changeCameraControl(e){super._changeCameraControl(e)}setSceneEvents(e){var t,n;void 0!==e.construction&&(null===(t=this._plannerSceneEventHandler)||void 0===t||t.enableConstructionEvents(e.construction)),void 0!==e.objects&&(null===(n=this._plannerSceneEventHandler)||void 0===n||n.enableObjectEvents(e.objects))}}i([a],ie.prototype,"_rapiAccess",void 0),i([a],ie.prototype,"_plannerMeshGenerator",void 0),i([a],ie.prototype,"_plannerInputManager",void 0),i([a],ie.prototype,"_roomlePlannerUiCallback",void 0),i([a],ie.prototype,"_localStorageHelper",void 0),i([a],ie.prototype,"_unitFormatter",void 0);const ae={left:0,top:1,right:1,bottom:0};class se{constructor(e){this._hscInstance=null,this._glbInstance=null,this._configurator=null,this._currentMode=1,this._creator_=e,this._kernelAccessCallback.addListener(this)}deleteSelection(){this._sceneManager.deletePlanElementSelection()}rotateSelection(e){this._sceneManager.rotatePlanElementSelection(e)}cancelSelection(){this._sceneManager.cancelPlanElementSelection()}init(e,t,n){return m.start("loadingTime"),this._domHelper.setDomElement(e),this._sceneManager?(this._lifeCycleManager.resume(),Promise.resolve()):(this._preloadPlanId=t,this.setOverrides(n),new Promise(this._initPromiseCallback.bind(this)))}loadPlanXml(e,t){return this.setOverrides(t),new Promise(n=>{this._plan=this._planInteractionHandler.loadPlanXML(e),this._sceneManager.planXMLLoaded(this._plan),this._roomlePlannerUiCallback.onTotalFloorAreaChanged(this._planInteractionHandler.getPlan().getTotalFloorArea()),this._currentMode=1,this._initData.moc&&(t.id?this._rapiAccess.trackView(t.id):this._rapiAccess.trackView("planXML")),n()})}loadPlan(e,t){return this.setOverrides(t),new Promise((t,n)=>{this._rapiAccess.getPlan(e).then(n=>{this._plan=this._planInteractionHandler.loadPlanXML(n.planObjects),this._sceneManager.planXMLLoaded(this._plan),this._roomlePlannerUiCallback.onTotalFloorAreaChanged(this._planInteractionHandler.getPlan().getTotalFloorArea()),this._currentMode=1,this._initData.moc&&this._rapiAccess.trackView(e),t()},n)})}setOverrides(e){e&&(this._initData.setOverrides(e),this._globalInitData.setOverrides(e))}switch2D(){this._sceneManager.switchTo2D()}switch3D(){this._sceneManager.switchTo3D()}switchToFirstPerson(){this._sceneManager.switchToFirstPerson()}exportGLB(){this._sceneManager.exportGLB()}importGLB(e){this._sceneManager.importGLB(e)}_initPromiseCallback(e,t){this._threeLoader.fetch().then(()=>{let t=this._scriptLoader.fetch(v,{id:"gltf-loader"}),n=this._scriptLoader.fetch(f,{id:"draco-loader"}),i=this._scriptLoader.fetch(Q,{id:"tween-js"}),a=this._scriptLoader.fetch("static/Sky-6621935ea8a523af.js",{id:"sky-js"});Promise.all([t,n,i,a]).then(()=>{this._kernelReadyCallback=e;const{dls:t,ls:n,mode:i,stats:a}=this._initData;this._sceneManager||(this._sceneManager=new ie(this._creator_,ae,this,i)),this._preloadPlanId&&this._sceneManager.preload(this._preloadPlanId);const s=S.createDynamicLightSettingSource(t,n);a&&this.showStats(),this.enableHD(s),this._planInteractionHandler&&this._kernelReadyCallback()})})}enableHD(e){return new Promise((t,n)=>{const i=()=>{this._sceneManager.enableHD(e),t()};this._threeLoader.fetch().then(()=>Promise.all(Z.map(e=>this._scriptLoader.fetch(e,{id:e})))).then(()=>{this._scriptLoader.fetch(J,{id:"pi-js"}).then(i,n)},n)})}isReady(){this._planInteractionHandler=this._plannerKernelAccess.planInteractionHandler,this._kernelReadyCallback&&this._kernelReadyCallback()}showBenchmarks(){m.showBenchmarks()}getConfiguratorApi(){return this._configurator||(this._configurator=new F(this._creator_),this._configurator.setOverrides(this._initData),this._configurator.initSceneManager(this._sceneManager)),this._configurator}startViewing(){this._sceneManager.startViewing()}startConfiguring(){var e,t;this._sceneManager.startConfiguring();const n=this._sceneManager.currentSelection,i=(null===(e=n.item)||void 0===e?void 0:e.id)||(null===(t=n.configuration)||void 0===t?void 0:t.id);i&&this._configurator.notifyUiAboutNewLabel(i)}selectPlanObjectById(e){this._sceneManager.selectPlanObject(e)}backToPlanner(){this._sceneManager.backToPlanner()}async switchToConfigurator(){const e=await this._singlePromiseFactory.create(3,"startHSC",e=>{if(this._hscInstance)return e(this._hscInstance);t.import("./configurator-eaf54109.legacy.js").then(({Configurator:t})=>{const n=new t(this._creator_);n.boot({kernelInstance:this._planInteractionHandler.getConfiguratorKernel(),kernelContainer:this._plannerKernelAccess.kernelContainer}),n.getApi().setOverrides(this._initData),n.getApi().initSceneManager(this._sceneManager),n.getApi().init(this._domHelper.element).then(()=>{this._hscInstance=n,e(this._hscInstance)})})});return this._currentMode=0,this.cancelSelection(),e}async switchToViewer(){const e=await this._singlePromiseFactory.create(4,"startGLB",e=>{if(this._glbInstance)return e(this._glbInstance);t.import("./glb-viewer-5cdc4479.legacy.js").then(t=>{const n=new t.GlbViewer(this._creator_);n.boot(),n.getApi().setOverrides(this._initData),n.getApi().init(this._domHelper.element).then(()=>{this._glbInstance=n,e(this._glbInstance)})})});return this._currentMode=2,this.cancelSelection(),e}switchToPlanner(e){e&&this.loadPlan(e),this._currentMode=1}updateSize(){this._sceneManager.updateCamera()}getMain(){}update(){this.updateSize(),this._glbInstance&&this._glbInstance.getApi().updateSize(),this._hscInstance&&this._hscInstance.getApi().updateSize()}get callbacks(){return this._roomlePlannerUiCallback}set callbacks(e){this._roomlePlannerUiCallback=e}showStats(){this._sceneManager.showStats()}onCloseHSC(){this._sceneManager.closeHSC(),this._hscInstance&&this._hscInstance.getApi().pauseKernelCallbacks()}back(){if(2===this._currentMode&&this._glbInstance&&this._glbInstance.getApi().clearScene(),0===this._currentMode&&this._hscInstance){const e=this._hscInstance.getApi();e.cancelSelection(),e.cancelDockings(),e.hideDimensions(),e.disableMultiselect(),this._sceneManager.updateScene()}this._currentMode=1}backTo(e){console.error("backTo in planner Needs to be implemented later")}getConfigurator(){return this._hscInstance}getCurrentSkin(){return this._rapiAccess.getCurrentSkin()}getRuntimeComponentIdOfRootComponent(e){return e?this._plannerKernelAccess.planInteractionHandler?this._plannerKernelAccess.planInteractionHandler.getConfiguratorKernel().getRootPlanComponentIdFromObjectId(e):(console.warn("Can not retrieve runtime id without planInteractionHandler"),0):(console.warn("Can not retrieve runtime id without planObjectId"),0)}resumeTest(e){this._domHelper.setDomElement(e),this._lifeCycleManager.resume()}pauseTest(){this._lifeCycleManager.pause()}syncCatalog(e){return this._dataSyncer.syncCatalog(e)}loadError(e){}getPlanInteractionHandler(){return Promise.resolve(this._planInteractionHandler)}getPlanModelViewHelper(){return Promise.resolve(this._plannerKernelAccess.planModelViewHelper)}async insertObject(e,t,n){if(!this._planInteractionHandler)throw new Error("no plan interaction handler");t&&(t=s(new THREE.Vector3(t.x,t.y,t.z)));const i=await(C(e)?this._rapiAccess.getItem(e):this._rapiAccess.getConfiguration(e)),a=await this._plannerKernelAccess.addPlanObjectFromItem(i,t,n);return this._sceneManager.updateScene(),a}async insertItemList(e){const t=e.map(e=>C(e)?this._rapiAccess.getItem(e):this._rapiAccess.getConfiguration(e)),n=await Promise.all(t);await this._plannerKernelAccess.insertItems(n)}async insertItems(e){await this._plannerKernelAccess.insertItems(e)}getScene(){return this._sceneManager.getScene()}updateScene(){this._sceneManager.updateScene()}getCameraOffset(){return this._sceneManager.getCameraOffset()}setCameraOffset(e){this._sceneManager.setCameraOffset(e)}async getObjects(){const e=(await this.getPlanModelViewHelper()).getPlanOverview(this._plan);let t=[];const n=[],i=[],a=b(e.objects);await Promise.all(a.map(async e=>{const a=b(e);if(a.catalogItemId?n.push(a.catalogItemId):a.configurationHash&&i.push(a.configurationHash),a.parts){const e=a.configurationHash||a.catalogItemId,t=await this._plannerKernelAccess.addUiDataAndPriceToPartList(a.parts,e);a.parts=t}a.data=null,t.push(a)}));const[s,r]=await Promise.all([this._rapiAccess.getItems(n),this._rapiAccess.getConfigurations(i)]),o=[],l=new Map;for(const e of s)l.set(e.id,e);for(const e of r)l.set(e.id,e),o.push(e.rootComponentId);const h=await this._rapiAccess.getComponents(o),c=new Map;for(const e of h)c.set(e.id,e);for(const e of t){const t=e.catalogItemId||e.configurationHash,n=l.get(t)||null;if(n&&!n.label&&c.has(n.rootComponentId)){const e=c.get(n.rootComponentId);n.label=e.label}n&&!n.label&&(n.label=t),e.data=n}return t}async getPlanOverview(){const e=(await this.getPlanModelViewHelper()).getPlanOverview(this._plan);return b(e)}prepareTopImage(e={}){return this._sceneManager.prepareTopImage(e)}preparePerspectiveImage(e={}){return this._sceneManager.preparePerspectiveImage(e)}enableRotation(){this._sceneManager.enableRotation()}disableRotation(){this._sceneManager.disableRotation()}async dragInObject(e,t){this._sceneManager.dragIn(t);const n=await this._rapiAccess.getItem(e);this.insertItems([n])}enableSnapping(){this._sceneManager.enableSnapping()}disableSnapping(){this._sceneManager.disableSnapping()}async getPartlistOf(e){const t=this._plannerKernelAccess.kernelInstance.getHashOfConfiguration(e);if(!t){const e="Object has no partlist because it is not a configuration: "+t;return console.warn(e),Promise.reject(e)}const n=this._plannerKernelAccess.kernelInstance.getPartList(e);return await this._plannerKernelAccess.addUiDataAndPriceToPartList(n,t)}formatValueToUnitString(e,t){return this._unitFormatter.formatValueToUnitString(e,t)}drawWalls(e,t={}){var n,i;const a=this._planInteractionHandler;a.startInteraction();const s=[];for(const t of e){const e=a.addNode(t.from),r=a.addNode(t.to),o=a.addWall(e,r);void 0!==(null===(n=t.props)||void 0===n?void 0:n.height)&&a.setWallHeight(o,t.props.height),void 0!==(null===(i=t.props)||void 0===i?void 0:i.thickness)&&a.setWallThickness(o,t.props.thickness),s.push(o)}return t.keepInteractionOpen||a.endInteraction(),this._sceneManager.updateCameraOnDrawWalls(),s}removeElements(e,t={}){const n=this._planInteractionHandler;n.startInteraction();for(const t of e)this._planInteractionHandler.removeElement(t);t.keepInteractionOpen||n.endInteraction()}hasWalls(){const e=this._planInteractionHandler,t=null==e?void 0:e.getPlan();return!(!t||t.getWallCount()<1)}enableWallDrawing(){this._sceneManager.enableWallDrawing()}disableWallDrawing(){this._sceneManager.disableWallDrawing()}getUnitFormatter(){return this._unitFormatter}get PlannerCoreTypes(){return this._plannerKernelAccess.kernelContainer}setSceneEvents(e){this._sceneManager.setSceneEvents(e)}}i([a],se.prototype,"_domHelper",void 0),i([a],se.prototype,"_scriptLoader",void 0),i([a],se.prototype,"_kernelAccessCallback",void 0),i([a],se.prototype,"_plannerKernelAccess",void 0),i([a],se.prototype,"_rapiAccess",void 0),i([a],se.prototype,"_singlePromiseFactory",void 0),i([a],se.prototype,"_roomlePlannerUiCallback",void 0),i([a],se.prototype,"_lifeCycleManager",void 0),i([a],se.prototype,"_threeLoader",void 0),i([a],se.prototype,"_dataSyncer",void 0),i([a],se.prototype,"_initData",void 0),i([a],se.prototype,"_globalInitData",void 0),i([a],se.prototype,"_unitFormatter",void 0);class re{constructor(e){const{planElementViewModel:t}=e;this.planElementViewModel=t}}const oe=[new I("script-loader",Y),new I("planner-input-manager",class extends M{_canDrag(e){return!0}},1),new I("logger",y),new I("planner-mesh-generator",H),new I("rapi-access",L),new I("planner-selection-handler",class extends P{constructor(){super(...arguments),this._selectionMode="standard",this._selectedPlanElementViewModels=new Map}check(e){"standard"===this._selectionMode&&this._checkStandard(e),"multiselect"===this._selectionMode&&this._checkMulti(e)}cancelSelection(){0!==this._selectedPlanElementViewModels.size&&this._selectedPlanElementViewModels.forEach((e,t)=>{this._selectedPlanElementViewModels.delete(t),e.deselect(),this.dispatchEvent(1,new re({planElementViewModel:e}))})}_checkStandard(e){if(this._selectedPlanElementViewModels.has(e.getId()))return this._selectedPlanElementViewModels.delete(e.getId()),e.deselect(),void this.dispatchEvent(1,new re({planElementViewModel:e}));this._selectedPlanElementViewModels.size>0&&this._selectedPlanElementViewModels.forEach((e,t)=>{this._selectedPlanElementViewModels.delete(t),e.deselect(),this.dispatchEvent(1,new re({planElementViewModel:e}))}),this._selectedPlanElementViewModels.set(e.getId(),e),e.select(),this.dispatchEvent(0,new re({planElementViewModel:e}))}_checkMulti(e){if(this._selectedPlanElementViewModels.has(e.getId()))return this._selectedPlanElementViewModels.delete(e.getId()),e.deselect(),void this.dispatchEvent(1,new re({planElementViewModel:e}));this._selectedPlanElementViewModels.set(e.getId(),e),e.select(),this.dispatchEvent(0,new re({planElementViewModel:e}))}setSelectionMode(e){this._selectionMode=e}getSelectionMode(){return this._selectionMode}hasSelection(){return this._selectedPlanElementViewModels.size>0}getSelectedIds(){let e=[];return this._selectedPlanElementViewModels.forEach(t=>e.push(t.getId())),e}isSelected(e){return!!this._selectedPlanElementViewModels.get(e)}})];e("Planner",class extends ${setupGlobals(){}setupDependencies(){D.setup(oe),this.lookup("logger",this._context),this.lookup("planner-kernel-access",this._context).init(0)}cleanUpGlobals(){throw new Error("Method not implemented.")}cleanUpDependencies(){throw new Error("Method not implemented.")}bootFinished(){this._planner=new se(this._context),this._planner.getMain=()=>this,window.RoomlePlanner||(window.RoomlePlanner=this._planner)}getApi(){return this._planner}getContextName(){return"planner"}})}}}));
2
- //# sourceMappingURL=planner-b1a554ba.legacy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"script-loader-830904ac.legacy.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}