@8wave/ai-elements 0.126.0-beta.34 → 0.126.0-beta.35

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 (126) hide show
  1. package/dist/_chunks/{PkChatbotFilePreview-B4vbUkNp.js → PkChatbotFilePreview-Cw3va5vW.js} +2 -2
  2. package/dist/_chunks/{PkChatbotFilePreview-B4vbUkNp.js.map → PkChatbotFilePreview-Cw3va5vW.js.map} +1 -1
  3. package/dist/_chunks/{PkFilePreview-C6ZZablL.js → PkFilePreview-D4TgY0T9.js} +3 -3
  4. package/dist/_chunks/{PkFilePreview-C6ZZablL.js.map → PkFilePreview-D4TgY0T9.js.map} +1 -1
  5. package/dist/_chunks/{PkFilePreviewDialog-BzBHAt8l.js → PkFilePreviewDialog-8H1GeV91.js} +2 -2
  6. package/dist/_chunks/{PkFilePreviewDialog-BzBHAt8l.js.map → PkFilePreviewDialog-8H1GeV91.js.map} +1 -1
  7. package/dist/_chunks/{PkImageEditorDialog-Dm34WFmS.js → PkImageEditorDialog-BqHjVX97.js} +2 -2
  8. package/dist/_chunks/{PkImageEditorDialog-Dm34WFmS.js.map → PkImageEditorDialog-BqHjVX97.js.map} +1 -1
  9. package/dist/_chunks/{PkSelectionActions-CYqbMEjg.js → PkSelectionActions-BxUXWFNK.js} +2 -2
  10. package/dist/_chunks/{PkSelectionActions-CYqbMEjg.js.map → PkSelectionActions-BxUXWFNK.js.map} +1 -1
  11. package/dist/_chunks/{PkStreamingMarkdown-B8rZbprU.js → PkStreamingMarkdown-14rJ_FK2.js} +3 -3
  12. package/dist/_chunks/{PkStreamingMarkdown-B8rZbprU.js.map → PkStreamingMarkdown-14rJ_FK2.js.map} +1 -1
  13. package/dist/_chunks/{PkToolChatFile-C0emIVfS.js → PkToolChatFile-CSBzfuyE.js} +3 -3
  14. package/dist/_chunks/{PkToolChatFile-C0emIVfS.js.map → PkToolChatFile-CSBzfuyE.js.map} +1 -1
  15. package/dist/_chunks/{PkToolShareDocument-DYr0Rq4D.js → PkToolShareDocument-Kq7SFbw5.js} +2 -2
  16. package/dist/_chunks/{PkToolShareDocument-DYr0Rq4D.js.map → PkToolShareDocument-Kq7SFbw5.js.map} +1 -1
  17. package/dist/_chunks/{PkToolShowArtifact-B_KIIjEn.js → PkToolShowArtifact-d5tKvM01.js} +2 -2
  18. package/dist/_chunks/{PkToolShowArtifact-B_KIIjEn.js.map → PkToolShowArtifact-d5tKvM01.js.map} +1 -1
  19. package/dist/_chunks/{PkToolShowContactForm-DiHb3fRQ.js → PkToolShowContactForm-Bni1QzXV.js} +2 -2
  20. package/dist/_chunks/{PkToolShowContactForm-DiHb3fRQ.js.map → PkToolShowContactForm-Bni1QzXV.js.map} +1 -1
  21. package/dist/_chunks/{PkToolShowEmail-CClEA1rp.js → PkToolShowEmail-D6Mw24jB.js} +2 -2
  22. package/dist/_chunks/{PkToolShowEmail-CClEA1rp.js.map → PkToolShowEmail-D6Mw24jB.js.map} +1 -1
  23. package/dist/_chunks/{PkToolShowForm-BmUAhIQy.js → PkToolShowForm-CFXtO0j4.js} +3 -3
  24. package/dist/_chunks/{PkToolShowForm-BmUAhIQy.js.map → PkToolShowForm-CFXtO0j4.js.map} +1 -1
  25. package/dist/_chunks/{PkToolShowImageGallery-CZ394fdT.js → PkToolShowImageGallery-Ci_Kg44s.js} +7 -2
  26. package/dist/_chunks/PkToolShowImageGallery-Ci_Kg44s.js.map +1 -0
  27. package/dist/_chunks/{PkToolShowLocation-DaFjO8MV.js → PkToolShowLocation-DV0puCbD.js} +136 -135
  28. package/dist/_chunks/PkToolShowLocation-DV0puCbD.js.map +1 -0
  29. package/dist/_chunks/{PkToolShowMessage-DIDp9JCf.js → PkToolShowMessage-Bq2dbSy1.js} +2 -2
  30. package/dist/_chunks/{PkToolShowMessage-DIDp9JCf.js.map → PkToolShowMessage-Bq2dbSy1.js.map} +1 -1
  31. package/dist/_chunks/{PkToolShowProductList-uNvUr2s9.js → PkToolShowProductList-BWWzkWWA.js} +2 -2
  32. package/dist/_chunks/{PkToolShowProductList-uNvUr2s9.js.map → PkToolShowProductList-BWWzkWWA.js.map} +1 -1
  33. package/dist/_chunks/{PkToolShowSources-Dm0L4prK.js → PkToolShowSources-Dv7hbDyy.js} +8 -8
  34. package/dist/_chunks/{PkToolShowSources-Dm0L4prK.js.map → PkToolShowSources-Dv7hbDyy.js.map} +1 -1
  35. package/dist/_chunks/{PkToolShowWebPages-Cj2mJrs5.js → PkToolShowWebPages-XxcYBQpr.js} +2 -2
  36. package/dist/_chunks/{PkToolShowWebPages-Cj2mJrs5.js.map → PkToolShowWebPages-XxcYBQpr.js.map} +1 -1
  37. package/dist/_chunks/{utils-DPGBO-HU.js → utils-DE4cAz37.js} +43 -40
  38. package/dist/_chunks/utils-DE4cAz37.js.map +1 -0
  39. package/dist/ai-elements.es.js +1270 -1250
  40. package/dist/ai-elements.es.js.map +1 -1
  41. package/dist-vue/PkChatbot.js +1 -1
  42. package/dist-vue/PkChatbotEmptyState.js +1 -1
  43. package/dist-vue/PkChatbotInput.js +1 -1
  44. package/dist-vue/PkChatbotMessages.js +1 -1
  45. package/dist-vue/PkChatbotStepPayload.js +1 -1
  46. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  47. package/dist-vue/PkChatbotSteps.js +1 -1
  48. package/dist-vue/PkChatbotViewChat.js +1 -1
  49. package/dist-vue/PkChatbotViewConversations.js +1 -1
  50. package/dist-vue/PkChatbotViewProfile.js +1 -1
  51. package/dist-vue/_chunks/{PkChatbot-CXpftmWm.js → PkChatbot-CFJmT4nN.js} +7 -6
  52. package/dist-vue/_chunks/PkChatbot-CFJmT4nN.js.map +1 -0
  53. package/dist-vue/_chunks/PkChatbotAudioTranscript-DgmuXalb.js.map +1 -1
  54. package/dist-vue/_chunks/{PkChatbotEmptyState-vA2v4FES.js → PkChatbotEmptyState-CLfzcH_t.js} +2 -2
  55. package/dist-vue/_chunks/{PkChatbotEmptyState-vA2v4FES.js.map → PkChatbotEmptyState-CLfzcH_t.js.map} +1 -1
  56. package/dist-vue/_chunks/PkChatbotFilePreview-aKJBtw04.js.map +1 -1
  57. package/dist-vue/_chunks/{PkChatbotInput-CIIJ1bpF.js → PkChatbotInput-C9l_1I3d.js} +4 -4
  58. package/dist-vue/_chunks/{PkChatbotInput-CIIJ1bpF.js.map → PkChatbotInput-C9l_1I3d.js.map} +1 -1
  59. package/dist-vue/_chunks/PkChatbotMessages-_-h-egX7.js +1072 -0
  60. package/dist-vue/_chunks/{PkChatbotMessages-15R8RxAq.js.map → PkChatbotMessages-_-h-egX7.js.map} +1 -1
  61. package/dist-vue/_chunks/{PkChatbotStepPayload-BbNSav-U.js → PkChatbotStepPayload-fyrbP7yS.js} +2 -2
  62. package/dist-vue/_chunks/{PkChatbotStepPayload-BbNSav-U.js.map → PkChatbotStepPayload-fyrbP7yS.js.map} +1 -1
  63. package/dist-vue/_chunks/{PkChatbotStepToolDetail-B_4pmbLe.js → PkChatbotStepToolDetail-Drhc6X-x.js} +3 -3
  64. package/dist-vue/_chunks/{PkChatbotStepToolDetail-B_4pmbLe.js.map → PkChatbotStepToolDetail-Drhc6X-x.js.map} +1 -1
  65. package/dist-vue/_chunks/{PkChatbotSteps-h4E6DH_g.js → PkChatbotSteps-DZwV7UVr.js} +5 -5
  66. package/dist-vue/_chunks/{PkChatbotSteps-h4E6DH_g.js.map → PkChatbotSteps-DZwV7UVr.js.map} +1 -1
  67. package/dist-vue/_chunks/{PkChatbotViewChat-CLQ0J9_f.js → PkChatbotViewChat-Bg-Op2Oe.js} +7 -6
  68. package/dist-vue/_chunks/{PkChatbotViewChat-CLQ0J9_f.js.map → PkChatbotViewChat-Bg-Op2Oe.js.map} +1 -1
  69. package/dist-vue/_chunks/{PkChatbotViewConversations-DFBbypGg.js → PkChatbotViewConversations--smzyxqN.js} +4 -4
  70. package/dist-vue/_chunks/{PkChatbotViewConversations-DFBbypGg.js.map → PkChatbotViewConversations--smzyxqN.js.map} +1 -1
  71. package/dist-vue/_chunks/{PkChatbotViewProfile-B0AZvHTr.js → PkChatbotViewProfile-Cn7IQfnQ.js} +2 -1
  72. package/dist-vue/_chunks/PkChatbotViewProfile-Cn7IQfnQ.js.map +1 -0
  73. package/dist-vue/_chunks/{PkFilePreview-Cb-1YRPN.js → PkFilePreview-DydUI1G2.js} +54 -54
  74. package/dist-vue/_chunks/{PkFilePreview-Cb-1YRPN.js.map → PkFilePreview-DydUI1G2.js.map} +1 -1
  75. package/dist-vue/_chunks/{PkFilePreviewDialog-Bd7kEoCB.js → PkFilePreviewDialog-BuG1whsJ.js} +2 -2
  76. package/dist-vue/_chunks/{PkFilePreviewDialog-Bd7kEoCB.js.map → PkFilePreviewDialog-BuG1whsJ.js.map} +1 -1
  77. package/dist-vue/_chunks/{PkImageEditorDialog-Bj4sUHXM.js → PkImageEditorDialog-_-UkV0CO.js} +2 -2
  78. package/dist-vue/_chunks/{PkImageEditorDialog-Bj4sUHXM.js.map → PkImageEditorDialog-_-UkV0CO.js.map} +1 -1
  79. package/dist-vue/_chunks/{PkStreamingMarkdown-BcUq4ThC.js → PkStreamingMarkdown-ha0V58V9.js} +2 -2
  80. package/dist-vue/_chunks/{PkStreamingMarkdown-BcUq4ThC.js.map → PkStreamingMarkdown-ha0V58V9.js.map} +1 -1
  81. package/dist-vue/_chunks/{PkToolChatFile-BOexrlLt.js → PkToolChatFile-OusYITiO.js} +2 -2
  82. package/dist-vue/_chunks/{PkToolChatFile-BOexrlLt.js.map → PkToolChatFile-OusYITiO.js.map} +1 -1
  83. package/dist-vue/_chunks/{PkToolShowArtifact-C4gHB6lH.js → PkToolShowArtifact-x57Gri2a.js} +2 -2
  84. package/dist-vue/_chunks/{PkToolShowArtifact-C4gHB6lH.js.map → PkToolShowArtifact-x57Gri2a.js.map} +1 -1
  85. package/dist-vue/_chunks/{PkToolShowChart-CsPXNAb9.js → PkToolShowChart-BSnYmoJJ.js} +2 -2
  86. package/dist-vue/_chunks/{PkToolShowChart-CsPXNAb9.js.map → PkToolShowChart-BSnYmoJJ.js.map} +1 -1
  87. package/dist-vue/_chunks/{PkToolShowContactForm-2_HBPZaa.js → PkToolShowContactForm-D0lDC69x.js} +2 -2
  88. package/dist-vue/_chunks/{PkToolShowContactForm-2_HBPZaa.js.map → PkToolShowContactForm-D0lDC69x.js.map} +1 -1
  89. package/dist-vue/_chunks/{PkToolShowDiagram-cCbeL6MK.js → PkToolShowDiagram-BR4fE_be.js} +2 -2
  90. package/dist-vue/_chunks/{PkToolShowDiagram-cCbeL6MK.js.map → PkToolShowDiagram-BR4fE_be.js.map} +1 -1
  91. package/dist-vue/_chunks/{PkToolShowEmail-BehvoNsz.js → PkToolShowEmail-idhNR5-l.js} +2 -2
  92. package/dist-vue/_chunks/{PkToolShowEmail-BehvoNsz.js.map → PkToolShowEmail-idhNR5-l.js.map} +1 -1
  93. package/dist-vue/_chunks/{PkToolShowForm-DjB3fji5.js → PkToolShowForm-yh0YAXcg.js} +3 -3
  94. package/dist-vue/_chunks/{PkToolShowForm-DjB3fji5.js.map → PkToolShowForm-yh0YAXcg.js.map} +1 -1
  95. package/dist-vue/_chunks/{PkToolShowImageGallery-C22TCUKW.js → PkToolShowImageGallery-mmUY1Yfg.js} +8 -3
  96. package/dist-vue/_chunks/PkToolShowImageGallery-mmUY1Yfg.js.map +1 -0
  97. package/dist-vue/_chunks/{PkToolShowLocation-CqqtwH_R.js → PkToolShowLocation-CyaKgQUX.js} +3 -3
  98. package/dist-vue/_chunks/PkToolShowLocation-CyaKgQUX.js.map +1 -0
  99. package/dist-vue/_chunks/{PkToolShowMessage-Cca7K7GQ.js → PkToolShowMessage-B4gztWUk.js} +2 -2
  100. package/dist-vue/_chunks/{PkToolShowMessage-Cca7K7GQ.js.map → PkToolShowMessage-B4gztWUk.js.map} +1 -1
  101. package/dist-vue/_chunks/{PkToolShowProductList-BvtmiHBf.js → PkToolShowProductList-B-ya1TDt.js} +3 -3
  102. package/dist-vue/_chunks/{PkToolShowProductList-BvtmiHBf.js.map → PkToolShowProductList-B-ya1TDt.js.map} +1 -1
  103. package/dist-vue/_chunks/{PkToolShowSources-uKO4MQgd.js → PkToolShowSources-DYkHkVdX.js} +8 -8
  104. package/dist-vue/_chunks/{PkToolShowSources-uKO4MQgd.js.map → PkToolShowSources-DYkHkVdX.js.map} +1 -1
  105. package/dist-vue/_chunks/{PkToolShowVideo-DKj5N1vo.js → PkToolShowVideo-CRg2lAY8.js} +2 -2
  106. package/dist-vue/_chunks/{PkToolShowVideo-DKj5N1vo.js.map → PkToolShowVideo-CRg2lAY8.js.map} +1 -1
  107. package/dist-vue/_chunks/{PkToolShowWebPages-BNZmbCSf.js → PkToolShowWebPages-C_pWag94.js} +3 -3
  108. package/dist-vue/_chunks/{PkToolShowWebPages-BNZmbCSf.js.map → PkToolShowWebPages-C_pWag94.js.map} +1 -1
  109. package/dist-vue/_chunks/{utils-waie4Gfn.js → utils-Df5n2cDc.js} +66 -59
  110. package/dist-vue/_chunks/utils-Df5n2cDc.js.map +1 -0
  111. package/dist-vue/composables.js +5 -5
  112. package/dist-vue/index.js +3960 -3954
  113. package/dist-vue/index.js.map +1 -1
  114. package/dist-vue/locales.js +4 -0
  115. package/dist-vue/packages/components/src/chat/utils.d.ts +9 -1
  116. package/dist-vue/style.css +1 -1
  117. package/package.json +1 -1
  118. package/dist/_chunks/PkToolShowImageGallery-CZ394fdT.js.map +0 -1
  119. package/dist/_chunks/PkToolShowLocation-DaFjO8MV.js.map +0 -1
  120. package/dist/_chunks/utils-DPGBO-HU.js.map +0 -1
  121. package/dist-vue/_chunks/PkChatbot-CXpftmWm.js.map +0 -1
  122. package/dist-vue/_chunks/PkChatbotMessages-15R8RxAq.js +0 -1068
  123. package/dist-vue/_chunks/PkChatbotViewProfile-B0AZvHTr.js.map +0 -1
  124. package/dist-vue/_chunks/PkToolShowImageGallery-C22TCUKW.js.map +0 -1
  125. package/dist-vue/_chunks/PkToolShowLocation-CqqtwH_R.js.map +0 -1
  126. package/dist-vue/_chunks/utils-waie4Gfn.js.map +0 -1
@@ -5,8 +5,9 @@ import { t as s } from "./VvButtonLocalized-BgY-V26j.js";
5
5
  import { $ as c, A as l, B as u, D as d, Dt as f, E as p, F as m, I as h, L as g, Q as _, S as v, T as y, Tt as b, Z as x, ft as S, g as C, gt as w, h as T, k as E, kt as D, mt as O, ot as k, p as A, tt as j, ut as ee, v as M, vt as te, w as N, wt as P, x as ne, y as re, z as ie } from "./vue.runtime.esm-bundler-DZgpK-ja.js";
6
6
  import { i as ae } from "./dist-CR8l0inH.js";
7
7
  import "./src-QHwDXo7q.js";
8
+ import { t as oe } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
8
9
  // ../../node_modules/.pnpm/maplibre-gl@5.24.0/node_modules/maplibre-gl/dist/maplibre-gl.js
9
- var oe = /* @__PURE__ */ e(((e, t, n) => {
10
+ var F = /* @__PURE__ */ e(((e, t, n) => {
10
11
  (function(n, r) {
11
12
  typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self, n.maplibregl = r());
12
13
  })(n, (function() {
@@ -33641,8 +33642,8 @@ var oe = /* @__PURE__ */ e(((e, t, n) => {
33641
33642
  }));
33642
33643
  // ../../node_modules/.pnpm/@indoorequal+vue-maplibre-gl@8.4.2_maplibre-gl@5.24.0_vue@3.5.45_typescript@6.0.3_/node_modules/@indoorequal/vue-maplibre-gl/dist/vue-maplibre-gl.es.js
33643
33644
  k(), E();
33644
- var F = oe(), se = Symbol("map"), ce = Symbol("isLoaded"), le = Symbol("isInitialized"), ue = Symbol("componentId"), de = Symbol("sourceId"), fe = Symbol("sourceLayerRegistry"), pe = Symbol("marker"), me = /* @__PURE__ */ "error.load.idle.remove.render.resize.webglcontextlost.webglcontextrestored.dataloading.data.tiledataloading.sourcedataloading.styledataloading.sourcedata.styledata.styleimagemissing.dataabort.sourcedataabort.boxzoomcancel.boxzoomstart.boxzoomend.touchcancel.touchmove.touchend.touchstart.click.contextmenu.dblclick.mousemove.mouseup.mousedown.mouseout.mouseover.movestart.move.moveend.zoomstart.zoom.zoomend.rotatestart.rotate.rotateend.dragstart.drag.dragend.pitchstart.pitch.pitchend.wheel.terrain.cooperativegestureprevented".split(".");
33645
- function he(e, t, n, r) {
33645
+ var se = F(), ce = Symbol("map"), le = Symbol("isLoaded"), ue = Symbol("isInitialized"), de = Symbol("componentId"), fe = Symbol("sourceId"), pe = Symbol("sourceLayerRegistry"), me = Symbol("marker"), he = /* @__PURE__ */ "error.load.idle.remove.render.resize.webglcontextlost.webglcontextrestored.dataloading.data.tiledataloading.sourcedataloading.styledataloading.sourcedata.styledata.styleimagemissing.dataabort.sourcedataabort.boxzoomcancel.boxzoomstart.boxzoomend.touchcancel.touchmove.touchend.touchstart.click.contextmenu.dblclick.mousemove.mouseup.mousedown.mouseout.mouseover.movestart.move.moveend.zoomstart.zoom.zoomend.rotatestart.rotate.rotateend.dragstart.drag.dragend.pitchstart.pitch.pitchend.wheel.terrain.cooperativegestureprevented".split(".");
33646
+ function ge(e, t, n, r) {
33646
33647
  return (i) => n.emit(r, {
33647
33648
  type: i.type,
33648
33649
  map: t,
@@ -33650,20 +33651,20 @@ function he(e, t, n, r) {
33650
33651
  event: i
33651
33652
  });
33652
33653
  }
33653
- function ge(e, t) {
33654
- let n = F.LngLat.convert(e), r = F.LngLat.convert(t);
33654
+ function _e(e, t) {
33655
+ let n = se.LngLat.convert(e), r = se.LngLat.convert(t);
33655
33656
  return n.lng === r.lng && n.lat === r.lat;
33656
33657
  }
33657
- var _e = /* @__PURE__ */ ((e) => (e.TOP_LEFT = "top-left", e.TOP_RIGHT = "top-right", e.BOTTOM_LEFT = "bottom-left", e.BOTTOM_RIGHT = "bottom-right", e))(_e || {}), ve = Object.values(_e), ye = /* @__PURE__ */ new Map(), be = Symbol("default");
33658
- function xe(e, t, n = be) {
33659
- let r = ye.get(n);
33658
+ var ve = /* @__PURE__ */ ((e) => (e.TOP_LEFT = "top-left", e.TOP_RIGHT = "top-right", e.BOTTOM_LEFT = "bottom-left", e.BOTTOM_RIGHT = "bottom-right", e))(ve || {}), ye = Object.values(ve), be = /* @__PURE__ */ new Map(), xe = Symbol("default");
33659
+ function Se(e, t, n = xe) {
33660
+ let r = be.get(n);
33660
33661
  return r || (r = O({
33661
33662
  isLoaded: !1,
33662
33663
  isMounted: !1,
33663
33664
  language: null
33664
- }), ye.set(n, r)), r.isLoaded = t.value?.loaded() || !1, r.isMounted = !1, r.component = e, r.map = t.value, r;
33665
+ }), be.set(n, r)), r.isLoaded = t.value?.loaded() || !1, r.isMounted = !1, r.component = e, r.map = t.value, r;
33665
33666
  }
33666
- var Se = N({
33667
+ var Ce = N({
33667
33668
  name: "MglMap",
33668
33669
  props: {
33669
33670
  width: {
@@ -33725,7 +33726,7 @@ var Se = N({
33725
33726
  localIdeographFontFamily: { type: String },
33726
33727
  logoPosition: {
33727
33728
  type: [String],
33728
- validator: (e) => e in _e
33729
+ validator: (e) => e in ve
33729
33730
  },
33730
33731
  maxBounds: { type: [Array, Object] },
33731
33732
  maxPitch: { type: Number },
@@ -33778,14 +33779,14 @@ var Se = N({
33778
33779
  emits: /* @__PURE__ */ "map:error.map:load.map:idle.map:remove.map:render.map:resize.map:webglcontextlost.map:webglcontextrestored.map:dataloading.map:data.map:tiledataloading.map:sourcedataloading.map:styledataloading.map:sourcedata.map:styledata.map:styleimagemissing.map:dataabort.map:sourcedataabort.map:boxzoomcancel.map:boxzoomstart.map:boxzoomend.map:touchcancel.map:touchmove.map:touchend.map:touchstart.map:click.map:contextmenu.map:dblclick.map:mousemove.map:mouseup.map:mousedown.map:mouseout.map:mouseover.map:movestart.map:move.map:moveend.map:zoomstart.map:zoom.map:zoomend.map:rotatestart.map:rotate.map:rotateend.map:dragstart.map:drag.map:dragend.map:pitchstart.map:pitch.map:pitchend.map:wheel.map:terrain.map:cooperativegestureprevented.map:projectiontransition.update:center.update:zoom.update:pitch.update:bearing".split("."),
33779
33780
  slots: Object,
33780
33781
  setup(e, t) {
33781
- let n = S(y()), r = te(), i = te(), a = w(!1), o = w(!1), s = /* @__PURE__ */ new Map(), c = xe(n, i, e.mapKey);
33782
- u(se, i), u(ce, o), u(le, a), u(ue, n.uid), u(de, ""), _(() => e.bearing, (e) => {
33782
+ let n = S(y()), r = te(), i = te(), a = w(!1), o = w(!1), s = /* @__PURE__ */ new Map(), c = Se(n, i, e.mapKey);
33783
+ u(ce, i), u(le, o), u(ue, a), u(de, n.uid), u(fe, ""), _(() => e.bearing, (e) => {
33783
33784
  e && i.value?.setBearing(e);
33784
33785
  }), _(() => e.bounds, (t) => {
33785
33786
  t && i.value?.fitBounds(t, e.fitBoundsOptions);
33786
33787
  }), _(() => e.center, (e) => {
33787
33788
  let t = i.value?.getCenter();
33788
- e && t && !ge(e, t) && i.value?.setCenter(e);
33789
+ e && t && !_e(e, t) && i.value?.setCenter(e);
33789
33790
  }), _(() => e.maxBounds, (e) => {
33790
33791
  e && i.value?.setMaxBounds(e);
33791
33792
  }), _(() => e.maxPitch, (e) => {
@@ -33817,9 +33818,9 @@ var Se = N({
33817
33818
  container: r.value
33818
33819
  };
33819
33820
  for (let e of Object.keys(l)) l[e] === void 0 && delete l[e];
33820
- if (i.value = S(new F.Map(l)), c.map = i.value, a.value = !0, s.set("__load", () => (o.value = !0, c.isLoaded = !0)), i.value.on("load", s.get("__load")), s.set("__moveend", () => t.emit("update:center", i.value.getCenter())), i.value.on("moveend", s.get("__moveend")), s.set("__zoomend", () => t.emit("update:zoom", i.value.getZoom())), i.value.on("zoomend", s.get("__zoomend")), s.set("__pitchend", () => t.emit("update:pitch", i.value.getPitch())), i.value.on("pitchend", s.get("__pitchend")), s.set("__rotateend", () => t.emit("update:bearing", i.value.getBearing())), i.value.on("rotateend", s.get("__rotateend")), n.vnode.props) {
33821
- for (let e of me) if (n.vnode.props["onMap:" + e]) {
33822
- let r = `map:${e}`, a = he(n, i.value, t, r);
33821
+ if (i.value = S(new se.Map(l)), c.map = i.value, a.value = !0, s.set("__load", () => (o.value = !0, c.isLoaded = !0)), i.value.on("load", s.get("__load")), s.set("__moveend", () => t.emit("update:center", i.value.getCenter())), i.value.on("moveend", s.get("__moveend")), s.set("__zoomend", () => t.emit("update:zoom", i.value.getZoom())), i.value.on("zoomend", s.get("__zoomend")), s.set("__pitchend", () => t.emit("update:pitch", i.value.getPitch())), i.value.on("pitchend", s.get("__pitchend")), s.set("__rotateend", () => t.emit("update:bearing", i.value.getBearing())), i.value.on("rotateend", s.get("__rotateend")), n.vnode.props) {
33822
+ for (let e of he) if (n.vnode.props["onMap:" + e]) {
33823
+ let r = `map:${e}`, a = ge(n, i.value, t, r);
33823
33824
  s.set(e, a), i.value.on(e, a);
33824
33825
  }
33825
33826
  }
@@ -33845,14 +33846,14 @@ var Se = N({
33845
33846
  return null;
33846
33847
  }
33847
33848
  });
33848
- function Ce(e, t, n) {
33849
+ function we(e, t, n) {
33849
33850
  _(e, (e) => {
33850
- e && ve.indexOf(e) === -1 || (t.value?.hasControl(n) && t.value.removeControl(n), t.value?.addControl(n, e));
33851
+ e && ye.indexOf(e) === -1 || (t.value?.hasControl(n) && t.value.removeControl(n), t.value?.addControl(n, e));
33851
33852
  }, { immediate: !0 });
33852
33853
  }
33853
- function we(e, t) {
33854
- let n = l(se), r = l(le), i = te();
33855
- return i.value = e(), Ce(() => t.position, n, i.value), h(() => r.value && n.value?.removeControl(i.value)), {
33854
+ function Te(e, t) {
33855
+ let n = l(ce), r = l(ue), i = te();
33856
+ return i.value = e(), we(() => t.position, n, i.value), h(() => r.value && n.value?.removeControl(i.value)), {
33856
33857
  control: i,
33857
33858
  map: n
33858
33859
  };
@@ -33862,13 +33863,13 @@ N({
33862
33863
  props: {
33863
33864
  position: {
33864
33865
  type: String,
33865
- validator: (e) => ve.indexOf(e) !== -1
33866
+ validator: (e) => ye.indexOf(e) !== -1
33866
33867
  },
33867
33868
  compact: Boolean,
33868
33869
  customAttribution: [String, Array]
33869
33870
  },
33870
33871
  setup(e) {
33871
- we(() => new F.AttributionControl({
33872
+ Te(() => new se.AttributionControl({
33872
33873
  compact: e.compact,
33873
33874
  customAttribution: e.customAttribution
33874
33875
  }), e);
@@ -33877,13 +33878,13 @@ N({
33877
33878
  return null;
33878
33879
  }
33879
33880
  });
33880
- var Te = class {
33881
+ var Ee = class {
33881
33882
  constructor(e, t) {
33882
33883
  this.isAdded = e, this.container = document.createElement("div"), this.setClasses(t);
33883
33884
  }
33884
33885
  container;
33885
33886
  getDefaultPosition() {
33886
- return _e.TOP_LEFT;
33887
+ return ve.TOP_LEFT;
33887
33888
  }
33888
33889
  onAdd() {
33889
33890
  return m(() => this.isAdded.value = !0), this.container;
@@ -33900,7 +33901,7 @@ N({
33900
33901
  props: {
33901
33902
  position: {
33902
33903
  type: String,
33903
- validator: (e) => ve.indexOf(e) !== -1
33904
+ validator: (e) => ye.indexOf(e) !== -1
33904
33905
  },
33905
33906
  class: {
33906
33907
  type: String,
@@ -33909,7 +33910,7 @@ N({
33909
33910
  },
33910
33911
  slots: Object,
33911
33912
  setup(e, { slots: t }) {
33912
- let n = w(!1), { control: r } = we(() => new Te(n, e.class), e);
33913
+ let n = w(!1), { control: r } = Te(() => new Ee(n, e.class), e);
33913
33914
  return _(() => e.class, () => r.value.setClasses(e.class)), () => n.value ? d(A, { to: r.value.container }, t.default?.({})) : M("custom-component");
33914
33915
  },
33915
33916
  render() {
@@ -33920,7 +33921,7 @@ N({
33920
33921
  props: {
33921
33922
  position: {
33922
33923
  type: String,
33923
- validator: (e) => ve.indexOf(e) !== -1
33924
+ validator: (e) => ye.indexOf(e) !== -1
33924
33925
  },
33925
33926
  container: {
33926
33927
  type: Object,
@@ -33928,7 +33929,7 @@ N({
33928
33929
  }
33929
33930
  },
33930
33931
  setup(e) {
33931
- let { control: t, map: n } = we(() => new F.FullscreenControl({ container: e.container || void 0 }), e);
33932
+ let { control: t, map: n } = Te(() => new se.FullscreenControl({ container: e.container || void 0 }), e);
33932
33933
  function r() {
33933
33934
  m(() => n.value?.resize());
33934
33935
  }
@@ -33940,13 +33941,13 @@ N({
33940
33941
  return null;
33941
33942
  }
33942
33943
  });
33943
- var Ee = N({
33944
+ var De = N({
33944
33945
  name: "MglGeolocateControl",
33945
33946
  props: {
33946
33947
  position: {
33947
33948
  type: String,
33948
- default: _e.TOP_RIGHT,
33949
- validator: (e) => ve.indexOf(e) !== -1
33949
+ default: ve.TOP_RIGHT,
33950
+ validator: (e) => ye.indexOf(e) !== -1
33950
33951
  },
33951
33952
  positionOptions: {
33952
33953
  type: Object,
@@ -33982,7 +33983,7 @@ var Ee = N({
33982
33983
  "outofmaxbounds"
33983
33984
  ],
33984
33985
  setup(e, t) {
33985
- let { control: n } = we(() => new F.GeolocateControl({
33986
+ let { control: n } = Te(() => new se.GeolocateControl({
33986
33987
  positionOptions: e.positionOptions,
33987
33988
  fitBoundsOptions: e.fitBoundsOptions,
33988
33989
  trackUserLocation: e.trackUserLocation,
@@ -34002,12 +34003,12 @@ var Ee = N({
34002
34003
  render() {
34003
34004
  return null;
34004
34005
  }
34005
- }), De = N({
34006
+ }), Oe = N({
34006
34007
  name: "MglNavigationControl",
34007
34008
  props: {
34008
34009
  position: {
34009
34010
  type: String,
34010
- validator: (e) => ve.indexOf(e) !== -1
34011
+ validator: (e) => ye.indexOf(e) !== -1
34011
34012
  },
34012
34013
  showCompass: {
34013
34014
  type: Boolean,
@@ -34020,7 +34021,7 @@ var Ee = N({
34020
34021
  visualizePitch: Boolean
34021
34022
  },
34022
34023
  setup(e) {
34023
- we(() => new F.NavigationControl({
34024
+ Te(() => new se.NavigationControl({
34024
34025
  showCompass: e.showCompass,
34025
34026
  showZoom: e.showZoom,
34026
34027
  visualizePitch: e.visualizePitch
@@ -34029,12 +34030,12 @@ var Ee = N({
34029
34030
  render() {
34030
34031
  return null;
34031
34032
  }
34032
- }), Oe = /* @__PURE__ */ ((e) => (e.IMPERIAL = "imperial", e.METRIC = "metric", e.NAUTICAL = "nautical", e))(Oe || {}), ke = Object.values(Oe), Ae = N({
34033
+ }), ke = /* @__PURE__ */ ((e) => (e.IMPERIAL = "imperial", e.METRIC = "metric", e.NAUTICAL = "nautical", e))(ke || {}), Ae = Object.values(ke), je = N({
34033
34034
  name: "MglScaleControl",
34034
34035
  props: {
34035
34036
  position: {
34036
34037
  type: String,
34037
- validator: (e) => ve.indexOf(e) !== -1
34038
+ validator: (e) => ye.indexOf(e) !== -1
34038
34039
  },
34039
34040
  maxWidth: {
34040
34041
  type: Number,
@@ -34043,11 +34044,11 @@ var Ee = N({
34043
34044
  unit: {
34044
34045
  type: String,
34045
34046
  default: "metric",
34046
- validator: (e) => ke.indexOf(e) !== -1
34047
+ validator: (e) => Ae.indexOf(e) !== -1
34047
34048
  }
34048
34049
  },
34049
34050
  setup(e) {
34050
- we(() => new F.ScaleControl({
34051
+ Te(() => new se.ScaleControl({
34051
34052
  maxWidth: e.maxWidth,
34052
34053
  unit: e.unit
34053
34054
  }), e);
@@ -34061,18 +34062,18 @@ N({
34061
34062
  props: {
34062
34063
  position: {
34063
34064
  type: String,
34064
- validator: (e) => ve.indexOf(e) !== -1
34065
+ validator: (e) => ye.indexOf(e) !== -1
34065
34066
  },
34066
34067
  compact: { type: Boolean }
34067
34068
  },
34068
34069
  setup(e) {
34069
- we(() => new F.LogoControl({ compact: e.compact }), e);
34070
+ Te(() => new se.LogoControl({ compact: e.compact }), e);
34070
34071
  },
34071
34072
  render() {
34072
34073
  return null;
34073
34074
  }
34074
34075
  });
34075
- var je = N({
34076
+ var Me = N({
34076
34077
  name: "MglMarker",
34077
34078
  emits: [
34078
34079
  "dragstart",
@@ -34103,16 +34104,16 @@ var je = N({
34103
34104
  }
34104
34105
  },
34105
34106
  setup(e, { slots: t, emit: n }) {
34106
- let r = l(se), i = te(), a = w(), o = w(!1), s = /* @__PURE__ */ new Map();
34107
+ let r = l(ce), i = te(), a = w(), o = w(!1), s = /* @__PURE__ */ new Map();
34107
34108
  function c(e, t) {
34108
34109
  let r = (r) => {
34109
34110
  t && t(), n(e, r);
34110
34111
  };
34111
34112
  i.value.on(e, r), s.set(e, r);
34112
34113
  }
34113
- return u(pe, i), g(() => {
34114
+ return u(me, i), g(() => {
34114
34115
  let s = { ...e };
34115
- t.marker && (s.element = a.value), i.value = new F.Marker(s), i.value.setLngLat(e.coordinates).addTo(r.value), c("dragstart"), c("drag", () => {
34116
+ t.marker && (s.element = a.value), i.value = new se.Marker(s), i.value.setLngLat(e.coordinates).addTo(r.value), c("dragstart"), c("drag", () => {
34116
34117
  n("update:coordinates", i.value?.getLngLat());
34117
34118
  }), c("dragend", () => {
34118
34119
  n("update:coordinates", i.value?.getLngLat());
@@ -34128,7 +34129,7 @@ var je = N({
34128
34129
  render() {
34129
34130
  return null;
34130
34131
  }
34131
- }), Me = N({
34132
+ }), Ne = N({
34132
34133
  name: "MglPopup",
34133
34134
  emits: ["open", "close"],
34134
34135
  props: {
@@ -34186,7 +34187,7 @@ var je = N({
34186
34187
  }
34187
34188
  },
34188
34189
  setup(e, { slots: t, emit: n, expose: r }) {
34189
- let i = l(se), a = l(pe, void 0), o = w(), s = new F.Popup(e);
34190
+ let i = l(ce), a = l(me, void 0), o = w(), s = new se.Popup(e);
34190
34191
  a && a.value ? a.value.setPopup(s) : e.coordinates && i && s.setLngLat(e.coordinates).addTo(i.value), e.text && s.setText(e.text);
34191
34192
  function c(e) {
34192
34193
  let t = () => n(e);
@@ -34222,7 +34223,7 @@ N({
34222
34223
  options: Object
34223
34224
  },
34224
34225
  setup(e) {
34225
- let t = l(se);
34226
+ let t = l(ce);
34226
34227
  if (!e.url && !e.image) return x(`${e.id} image: missing prop url or image`), () => [];
34227
34228
  if (!t.value.hasImage(e.id)) return (async () => {
34228
34229
  let n = e.image;
@@ -34230,7 +34231,7 @@ N({
34230
34231
  })(), () => [];
34231
34232
  }
34232
34233
  });
34233
- var Ne = class {
34234
+ var Pe = class {
34234
34235
  unmountHandlers = /* @__PURE__ */ new Map();
34235
34236
  registerUnmountHandler(e, t) {
34236
34237
  this.unmountHandlers.set(e, t);
@@ -34241,7 +34242,7 @@ var Ne = class {
34241
34242
  unmount() {
34242
34243
  this.unmountHandlers.forEach((e) => e());
34243
34244
  }
34244
- }, Pe = class e {
34245
+ }, Fe = class e {
34245
34246
  static REFS = /* @__PURE__ */ new Map();
34246
34247
  static genSourceOpts(e) {
34247
34248
  let t = { ...e };
@@ -34253,10 +34254,10 @@ var Ne = class {
34253
34254
  return a || (a = w(r ? null : void 0), e.REFS.set(i, a)), a;
34254
34255
  }
34255
34256
  };
34256
- function Fe(e, t, n) {
34257
- let r = l(se), i = l(ce);
34257
+ function Ie(e, t, n) {
34258
+ let r = l(ce), i = l(le);
34258
34259
  function a() {
34259
- i.value && (r.value.addSource(t.sourceId, Pe.genSourceOpts(t)), e.value = r.value.getSource(t.sourceId));
34260
+ i.value && (r.value.addSource(t.sourceId, Fe.genSourceOpts(t)), e.value = r.value.getSource(t.sourceId));
34260
34261
  }
34261
34262
  return _(i, a, { immediate: !0 }), r.value.on("style.load", a), h(() => {
34262
34263
  i.value && (n.unmount(), r.value.removeSource(t.sourceId)), r.value.off("style.load", a);
@@ -34275,11 +34276,11 @@ N({
34275
34276
  },
34276
34277
  slots: Object,
34277
34278
  setup(e, { slots: t }) {
34278
- let n = l(ue), r = Pe.getSourceRef(n, e.sourceId), i = new Ne(), a = {
34279
+ let n = l(de), r = Fe.getSourceRef(n, e.sourceId), i = new Pe(), a = {
34279
34280
  ...e,
34280
34281
  type: "canvas"
34281
34282
  };
34282
- return u(de, e.sourceId), u(fe, i), Fe(r, a, i), _([ee(e.coordinates) ? e.coordinates : () => e.coordinates, r], ([e, t]) => {
34283
+ return u(fe, e.sourceId), u(pe, i), Ie(r, a, i), _([ee(e.coordinates) ? e.coordinates : () => e.coordinates, r], ([e, t]) => {
34283
34284
  t?.setCoordinates(e);
34284
34285
  }, { immediate: !0 }), () => [M("Canvas Source"), r.value && t.default ? t.default({}) : void 0];
34285
34286
  }
@@ -34314,11 +34315,11 @@ N({
34314
34315
  },
34315
34316
  slots: Object,
34316
34317
  setup(e, { slots: t }) {
34317
- let n = l(ue), r = Pe.getSourceRef(n, e.sourceId), i = new Ne(), a = {
34318
+ let n = l(de), r = Fe.getSourceRef(n, e.sourceId), i = new Pe(), a = {
34318
34319
  ...e,
34319
34320
  type: "geojson"
34320
34321
  };
34321
- return u(de, e.sourceId), u(fe, i), Fe(r, a, i), _([ee(e.data) ? e.data : () => e.data, r], ([e, t]) => {
34322
+ return u(fe, e.sourceId), u(pe, i), Ie(r, a, i), _([ee(e.data) ? e.data : () => e.data, r], ([e, t]) => {
34322
34323
  t?.setData(e || {
34323
34324
  type: "FeatureCollection",
34324
34325
  features: []
@@ -34337,11 +34338,11 @@ N({
34337
34338
  },
34338
34339
  slots: Object,
34339
34340
  setup(e, { slots: t }) {
34340
- let n = l(ue), r = Pe.getSourceRef(n, e.sourceId), i = new Ne(), a = {
34341
+ let n = l(de), r = Fe.getSourceRef(n, e.sourceId), i = new Pe(), a = {
34341
34342
  ...e,
34342
34343
  type: "image"
34343
34344
  };
34344
- return u(de, e.sourceId), u(fe, i), Fe(r, a, i), _([ee(e.coordinates) ? e.coordinates : () => e.coordinates, r], ([e, t]) => {
34345
+ return u(fe, e.sourceId), u(pe, i), Ie(r, a, i), _([ee(e.coordinates) ? e.coordinates : () => e.coordinates, r], ([e, t]) => {
34345
34346
  t?.setCoordinates(e);
34346
34347
  }, { immediate: !0 }), () => [M("Image Source"), r.value && t.default ? t.default({}) : void 0];
34347
34348
  }
@@ -34364,11 +34365,11 @@ N({
34364
34365
  },
34365
34366
  slots: Object,
34366
34367
  setup(e, { slots: t }) {
34367
- let n = l(ue), r = Pe.getSourceRef(n, e.sourceId), i = new Ne(), a = {
34368
+ let n = l(de), r = Fe.getSourceRef(n, e.sourceId), i = new Pe(), a = {
34368
34369
  ...e,
34369
34370
  type: "raster"
34370
34371
  };
34371
- return u(de, e.sourceId), u(fe, i), Fe(r, a, i), () => [M("Raster Source"), r.value && t.default ? t.default({}) : void 0];
34372
+ return u(fe, e.sourceId), u(pe, i), Ie(r, a, i), () => [M("Raster Source"), r.value && t.default ? t.default({}) : void 0];
34372
34373
  }
34373
34374
  }), N({
34374
34375
  name: "MglRasterDemSource",
@@ -34393,11 +34394,11 @@ N({
34393
34394
  },
34394
34395
  slots: Object,
34395
34396
  setup(e, { slots: t }) {
34396
- let n = l(ue), r = Pe.getSourceRef(n, e.sourceId), i = new Ne(), a = {
34397
+ let n = l(de), r = Fe.getSourceRef(n, e.sourceId), i = new Pe(), a = {
34397
34398
  ...e,
34398
34399
  type: "raster-dem"
34399
34400
  };
34400
- return u(de, e.sourceId), u(fe, i), Fe(r, a, i), () => [M("RasterDem Source"), r.value && t.default ? t.default({}) : void 0];
34401
+ return u(fe, e.sourceId), u(pe, i), Ie(r, a, i), () => [M("RasterDem Source"), r.value && t.default ? t.default({}) : void 0];
34401
34402
  }
34402
34403
  }), N({
34403
34404
  name: "MglVectorSource",
@@ -34423,11 +34424,11 @@ N({
34423
34424
  },
34424
34425
  slots: Object,
34425
34426
  setup(e, { slots: t }) {
34426
- let n = l(ue), r = Pe.getSourceRef(n, e.sourceId), i = new Ne(), a = {
34427
+ let n = l(de), r = Fe.getSourceRef(n, e.sourceId), i = new Pe(), a = {
34427
34428
  ...e,
34428
34429
  type: "vector"
34429
34430
  };
34430
- return u(de, e.sourceId), u(fe, i), Fe(r, a, i), _([ee(e.tiles) ? e.tiles : () => e.tiles, r], ([e, t]) => {
34431
+ return u(fe, e.sourceId), u(pe, i), Ie(r, a, i), _([ee(e.tiles) ? e.tiles : () => e.tiles, r], ([e, t]) => {
34431
34432
  t?.setTiles(e || []);
34432
34433
  }, { immediate: !0 }), _([ee(e.url) ? e.url : () => e.url, r], ([e, t]) => {
34433
34434
  t?.setUrl(e || "");
@@ -34445,16 +34446,16 @@ N({
34445
34446
  },
34446
34447
  slots: Object,
34447
34448
  setup(e, { slots: t }) {
34448
- let n = l(ue), r = Pe.getSourceRef(n, e.sourceId), i = new Ne(), a = {
34449
+ let n = l(de), r = Fe.getSourceRef(n, e.sourceId), i = new Pe(), a = {
34449
34450
  ...e,
34450
34451
  type: "video"
34451
34452
  };
34452
- return u(de, e.sourceId), u(fe, i), Fe(r, a, i), _([ee(e.coordinates) ? e.coordinates : () => e.coordinates, r], ([e, t]) => {
34453
+ return u(fe, e.sourceId), u(pe, i), Ie(r, a, i), _([ee(e.coordinates) ? e.coordinates : () => e.coordinates, r], ([e, t]) => {
34453
34454
  t?.setCoordinates(e);
34454
34455
  }, { immediate: !0 }), () => [M("Video Source"), r.value && t.default ? t.default({}) : void 0];
34455
34456
  }
34456
34457
  });
34457
- var Ie = [
34458
+ var Le = [
34458
34459
  "click",
34459
34460
  "dblclick",
34460
34461
  "mousedown",
@@ -34469,7 +34470,7 @@ var Ie = [
34469
34470
  "touchend",
34470
34471
  "touchcancel"
34471
34472
  ];
34472
- function Le() {
34473
+ function I() {
34473
34474
  return {
34474
34475
  layerId: {
34475
34476
  type: String,
@@ -34491,7 +34492,7 @@ function Le() {
34491
34492
  paint: { type: Object }
34492
34493
  };
34493
34494
  }
34494
- function I(e, t, n, r) {
34495
+ function Re(e, t, n, r) {
34495
34496
  let i = {
34496
34497
  id: e,
34497
34498
  type: t,
@@ -34507,22 +34508,22 @@ function I(e, t, n, r) {
34507
34508
  for (let e of Object.keys(i)) i[e] === void 0 && delete i[e];
34508
34509
  return i;
34509
34510
  }
34510
- function Re(e, t, n) {
34511
- if (n.props) for (let r of Ie) {
34511
+ function ze(e, t, n) {
34512
+ if (n.props) for (let r of Le) {
34512
34513
  let i = "on" + r.charAt(0).toUpperCase() + r.substr(1);
34513
34514
  n.props[i] && e.on(r, t, n.props[i]);
34514
34515
  }
34515
34516
  }
34516
- function ze(e, t, n) {
34517
- if (n.props) for (let r of Ie) {
34517
+ function L(e, t, n) {
34518
+ if (n.props) for (let r of Le) {
34518
34519
  let i = "on" + r.charAt(0).toUpperCase() + r.substr(1);
34519
34520
  n.props[i] && e.off(r, t, n.props[i]);
34520
34521
  }
34521
34522
  }
34522
- function L(e, t) {
34523
- let n = l(se), r = l(ce), i = l(fe);
34523
+ function Be(e, t) {
34524
+ let n = l(ce), r = l(le), i = l(pe);
34524
34525
  function a() {
34525
- r.value && (t && ze(n.value, e, t.vnode), n.value.getLayer(e) && n.value.removeLayer(e));
34526
+ r.value && (t && L(n.value, e, t.vnode), n.value.getLayer(e) && n.value.removeLayer(e));
34526
34527
  }
34527
34528
  i.registerUnmountHandler(e, a), h(() => {
34528
34529
  i.unregisterUnmountHandler(e), a();
@@ -34547,10 +34548,10 @@ N({
34547
34548
  layout: Object,
34548
34549
  paint: Object
34549
34550
  },
34550
- emits: [...Ie],
34551
+ emits: [...Le],
34551
34552
  setup(e) {
34552
- let t = l(se), n = l(ce);
34553
- return L(e.layerId), _(() => e.layout, (n) => {
34553
+ let t = l(ce), n = l(le);
34554
+ return Be(e.layerId), _(() => e.layout, (n) => {
34554
34555
  if (n) for (let [r, i] of Object.entries(n)) t.value.setLayoutProperty(e.layerId, r, i);
34555
34556
  }), _(() => e.paint, (n) => {
34556
34557
  if (n) for (let [r, i] of Object.entries(n)) t.value.setPaintProperty(e.layerId, r, i);
@@ -34567,92 +34568,92 @@ N({
34567
34568
  }, { immediate: !0 }), () => M("Background Layer");
34568
34569
  }
34569
34570
  });
34570
- function Be(e, t) {
34571
- let n = l(de);
34571
+ function Ve(e, t) {
34572
+ let n = l(fe);
34572
34573
  if (!n && !t.source) {
34573
34574
  x(`${e} Layer: layer must be used inside source tag or source prop must be set`);
34574
34575
  return;
34575
34576
  }
34576
- let r = y(), i = l(se), a = l(ce), o = l(ue), s = Pe.getSourceRef(o, t.source || n);
34577
- return L(t.layerId, r), _(() => t.minzoom, () => i.value.setLayerZoomRange(t.layerId, t.minzoom || 0, t.maxzoom || 24)), _(() => t.maxzoom, () => i.value.setLayerZoomRange(t.layerId, t.minzoom || 0, t.maxzoom || 24)), _(() => t.layout, (e) => {
34577
+ let r = y(), i = l(ce), a = l(le), o = l(de), s = Fe.getSourceRef(o, t.source || n);
34578
+ return Be(t.layerId, r), _(() => t.minzoom, () => i.value.setLayerZoomRange(t.layerId, t.minzoom || 0, t.maxzoom || 24)), _(() => t.maxzoom, () => i.value.setLayerZoomRange(t.layerId, t.minzoom || 0, t.maxzoom || 24)), _(() => t.layout, (e) => {
34578
34579
  if (e) for (let [n, r] of Object.entries(e)) i.value.setLayoutProperty(t.layerId, n, r);
34579
34580
  }, { deep: !0 }), _(() => t.paint, (e) => {
34580
34581
  if (e) for (let [n, r] of Object.entries(e)) i.value.setPaintProperty(t.layerId, n, r);
34581
34582
  }, { deep: !0 }), _(() => t.filter, (e) => i.value.setFilter(t.layerId, e), { deep: !0 }), _([a, s], ([a, o]) => {
34582
- a && (o || o === void 0) && (i.value.addLayer(I(t.layerId, e, t, n), t.before || void 0), Re(i.value, t.layerId, r.vnode));
34583
+ a && (o || o === void 0) && (i.value.addLayer(Re(t.layerId, e, t, n), t.before || void 0), ze(i.value, t.layerId, r.vnode));
34583
34584
  }, { immediate: !0 }), () => M(`${e} Layer`);
34584
34585
  }
34585
34586
  // ../../packages/components/src/chat/PkToolShowLocation.vue?vue&type=script&setup=true&lang.ts
34586
34587
  N({
34587
34588
  name: "MglCircleLayer",
34588
- props: Le(),
34589
- emits: [...Ie],
34589
+ props: I(),
34590
+ emits: [...Le],
34590
34591
  setup(e) {
34591
- return Be("circle", e);
34592
+ return Ve("circle", e);
34592
34593
  }
34593
34594
  }), N({
34594
34595
  name: "MglFillLayer",
34595
- props: Le(),
34596
- emits: [...Ie],
34596
+ props: I(),
34597
+ emits: [...Le],
34597
34598
  setup(e) {
34598
- return Be("fill", e);
34599
+ return Ve("fill", e);
34599
34600
  }
34600
34601
  }), N({
34601
34602
  name: "MglFillExtrusionLayer",
34602
- props: Le(),
34603
- emits: [...Ie],
34603
+ props: I(),
34604
+ emits: [...Le],
34604
34605
  setup(e) {
34605
- return Be("fill-extrusion", e);
34606
+ return Ve("fill-extrusion", e);
34606
34607
  }
34607
34608
  }), N({
34608
34609
  name: "MglHeatmapLayer",
34609
- props: Le(),
34610
- emits: [...Ie],
34610
+ props: I(),
34611
+ emits: [...Le],
34611
34612
  setup(e) {
34612
- return Be("heatmap", e);
34613
+ return Ve("heatmap", e);
34613
34614
  }
34614
34615
  }), N({
34615
34616
  name: "MglHillshadeLayer",
34616
- props: Le(),
34617
- emits: [...Ie],
34617
+ props: I(),
34618
+ emits: [...Le],
34618
34619
  setup(e) {
34619
- return Be("hillshade", e);
34620
+ return Ve("hillshade", e);
34620
34621
  }
34621
34622
  }), N({
34622
34623
  name: "MglLineLayer",
34623
- props: Le(),
34624
- emits: [...Ie],
34624
+ props: I(),
34625
+ emits: [...Le],
34625
34626
  setup(e) {
34626
- return Be("line", e);
34627
+ return Ve("line", e);
34627
34628
  }
34628
34629
  }), N({
34629
34630
  name: "MglRasterLayer",
34630
- props: Le(),
34631
- emits: [...Ie],
34631
+ props: I(),
34632
+ emits: [...Le],
34632
34633
  setup(e) {
34633
- return Be("raster", e);
34634
+ return Ve("raster", e);
34634
34635
  }
34635
34636
  }), N({
34636
34637
  name: "MglSymbolLayer",
34637
- props: Le(),
34638
- emits: [...Ie],
34638
+ props: I(),
34639
+ emits: [...Le],
34639
34640
  setup(e) {
34640
- return Be("symbol", e);
34641
+ return Ve("symbol", e);
34641
34642
  }
34642
34643
  }), E(), b(), k();
34643
- var Ve = {
34644
+ var He = {
34644
34645
  key: 0,
34645
- class: "border border-surface-3 rounded-xl w-full overflow-hidden bg-surface"
34646
- }, He = { class: "px-sm py-6 bg-surface-1 min-h-40 text-12 border-b border-surface-3 text-word-3 flex items-center gap-8" }, Ue = { class: "font-bold" }, We = {
34646
+ class: "pk-tool-show-location border border-surface-3 rounded-xl w-full overflow-hidden bg-surface"
34647
+ }, Ue = { class: "px-sm py-6 bg-surface-1 min-h-40 text-12 border-b border-surface-3 text-word-3 flex items-center gap-8" }, We = { class: "font-bold" }, Ge = {
34647
34648
  key: 0,
34648
34649
  class: "h-224 border-b border-surface-3"
34649
- }, Ge = { class: "flex flex-col leading-normal text-12 pr-12" }, Ke = { class: "font-semibold" }, qe = {
34650
+ }, Ke = { class: "flex flex-col leading-normal text-12 pr-12" }, qe = { class: "font-semibold" }, R = {
34650
34651
  key: 0,
34651
34652
  class: "text-word-3"
34652
- }, R = { class: "p-sm flex flex-col gap-4" }, Je = { class: "font-semibold text-word-1 text-14" }, Ye = { class: "text-12 text-word-3" }, Xe = {
34653
+ }, Je = { class: "p-sm flex flex-col gap-4" }, Ye = { class: "font-semibold text-word-1 text-14" }, Xe = { class: "text-12 text-word-3" }, Ze = {
34653
34654
  key: 0,
34654
- class: "text-12 text-word-4"
34655
- }, Ze = /* @__PURE__ */ N({
34655
+ class: "text-12 text-word-3"
34656
+ }, z = /*#__PURE__*/ oe(/* @__PURE__ */ N({
34656
34657
  __name: "PkToolShowLocation",
34657
34658
  props: {
34658
34659
  part: { type: null },
@@ -34689,13 +34690,13 @@ var Ve = {
34689
34690
  };
34690
34691
  return (a, o) => {
34691
34692
  let c = r, l = s, u = i, h = n, g = t;
34692
- return m.value?.input ? (ie(), re("div", Ve, [
34693
- C("div", He, [
34693
+ return m.value?.input ? (ie(), re("div", He, [
34694
+ C("div", Ue, [
34694
34695
  v(c, {
34695
34696
  name: "ri:map-pin-line",
34696
34697
  class: "text-16"
34697
34698
  }),
34698
- C("strong", Ue, D(a.$t("label.location")), 1),
34699
+ C("strong", We, D(a.$t("label.location")), 1),
34699
34700
  v(g, {
34700
34701
  modifiers: "compact",
34701
34702
  class: "ml-auto shrink-0"
@@ -34736,7 +34737,7 @@ var Ve = {
34736
34737
  _: 1
34737
34738
  })
34738
34739
  ]),
34739
- x.value ? (ie(), re("div", We, [v(P(Se), {
34740
+ x.value ? (ie(), re("div", Ge, [v(P(Ce), {
34740
34741
  "map-style": b.value,
34741
34742
  zoom: 12,
34742
34743
  center: S.value,
@@ -34744,18 +34745,18 @@ var Ve = {
34744
34745
  "attribution-control": !1
34745
34746
  }, {
34746
34747
  default: j(() => [
34747
- v(P(De), {
34748
+ v(P(Oe), {
34748
34749
  position: "top-right",
34749
34750
  "show-compass": !1
34750
34751
  }),
34751
- v(P(Ee), { position: "top-right" }),
34752
- v(P(Ae), { position: "bottom-left" }),
34753
- v(P(je), {
34752
+ v(P(De), { position: "top-right" }),
34753
+ v(P(je), { position: "bottom-left" }),
34754
+ v(P(Me), {
34754
34755
  coordinates: S.value,
34755
34756
  color: e.mainColor
34756
34757
  }, {
34757
- default: j(() => [v(P(Me), { "close-button": !1 }, {
34758
- default: j(() => [C("div", Ge, [C("p", Ke, D(m.value.input.name), 1), m.value.input.address ? (ie(), re("p", qe, D(m.value.input.address), 1)) : M("", !0)])]),
34758
+ default: j(() => [v(P(Ne), { "close-button": !1 }, {
34759
+ default: j(() => [C("div", Ke, [C("p", qe, D(m.value.input.name), 1), m.value.input.address ? (ie(), re("p", R, D(m.value.input.address), 1)) : M("", !0)])]),
34759
34760
  _: 1
34760
34761
  })]),
34761
34762
  _: 1
@@ -34763,15 +34764,15 @@ var Ve = {
34763
34764
  ]),
34764
34765
  _: 1
34765
34766
  }, 8, ["map-style", "center"])])) : M("", !0),
34766
- C("div", R, [
34767
- C("p", Je, D(m.value.input.name), 1),
34768
- C("p", Ye, D(m.value.input.address), 1),
34769
- m.value.input.additionalInfo ? (ie(), re("p", Xe, D(m.value.input.additionalInfo), 1)) : M("", !0)
34767
+ C("div", Je, [
34768
+ C("p", Ye, D(m.value.input.name), 1),
34769
+ C("p", Xe, D(m.value.input.address), 1),
34770
+ m.value.input.additionalInfo ? (ie(), re("p", Ze, D(m.value.input.additionalInfo), 1)) : M("", !0)
34770
34771
  ])
34771
34772
  ])) : M("", !0);
34772
34773
  };
34773
34774
  }
34774
- });
34775
- export { Ze as default };
34775
+ }), [["styles", [".pk-tool-show-location .maplibregl-marker:focus-visible{border-radius:var(--rounded-sm);box-shadow:0 0 2px 2px #0096ff}"]]]);
34776
+ export { z as default };
34776
34777
 
34777
- //# sourceMappingURL=PkToolShowLocation-DaFjO8MV.js.map
34778
+ //# sourceMappingURL=PkToolShowLocation-DV0puCbD.js.map