@datagouv/components-next 1.5.1-dev.1396.g522e09d9 → 1.5.1-dev.1398.g03d927e4

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 (34) hide show
  1. package/dist/{Control-DPuXeUqi.js → Control-BbyEe8x_.js} +7 -7
  2. package/dist/{Datafair.client-LlEgG7WU.js → Datafair.client-Dy9xu8CW.js} +1 -1
  3. package/dist/{Image-DVWRoLLI.js → Image-umPJvSA8.js} +16 -13
  4. package/dist/{ImagePreview.client-Db5dmxMP.js → ImagePreview.client-CwAd1LgO.js} +1 -1
  5. package/dist/{JsonPreview.client-DKy2AexC.js → JsonPreview.client-B_3llbkW.js} +2 -2
  6. package/dist/{Layer-D_5tYbVm.js → Layer-CagLskq_.js} +67 -61
  7. package/dist/{Map-CTBJEae_.js → Map-Cek3vwVi.js} +1094 -932
  8. package/dist/{MapContainer.client-DoN1jSzM.js → MapContainer.client-AMALm4aj.js} +7 -7
  9. package/dist/{OSM-B5Zc3qAf.js → OSM-Bm69tJpi.js} +1 -1
  10. package/dist/{PdfPreview.client-D3wHTDb9.js → PdfPreview.client-BzcjEgi5.js} +3 -3
  11. package/dist/{PdfSkeleton-nas5Pmia.js → PdfSkeleton-CEK7DOge.js} +1 -1
  12. package/dist/{Pmtiles.client-DncYrZSp.js → Pmtiles.client-C8SVSeQV.js} +9992 -9271
  13. package/dist/{PreviewError-EeaGx3SL.js → PreviewError-DOcS8Jau.js} +83 -46
  14. package/dist/{PreviewWrapper-BhldDdXK.js → PreviewWrapper-CdSsdB9s.js} +1 -1
  15. package/dist/{ScaleLine-C_tuJ6VG.js → ScaleLine-C8xmHdEk.js} +15 -8
  16. package/dist/Tile-DfivRbb3.js +479 -0
  17. package/dist/{Tile-8nHSuqcv.js → Tile-DvVc2IeI.js} +220 -151
  18. package/dist/{TileImage-CgO5alXc.js → TileImage-CxC7EP7_.js} +53 -45
  19. package/dist/{View-Dad8DfSD.js → View-44C9US2-.js} +210 -208
  20. package/dist/{XmlPreview.client-CmGbc3c3.js → XmlPreview.client-BnIm8NMm.js} +2 -2
  21. package/dist/assets/maplibre-gl-worker-Dlv-oLtU.js +10 -0
  22. package/dist/components-next.css +1 -1
  23. package/dist/components-next.js +11524 -10316
  24. package/dist/components.css +2 -2
  25. package/dist/{france-BtSQqcqV.js → france-DjD07ZB4.js} +1 -1
  26. package/dist/{proj-COhZ08DR.js → proj-0ED4AWuV.js} +260 -246
  27. package/dist/purify.es-D-UgLNEK.js +848 -0
  28. package/dist/{src-DJJgtynU.js → src-DdUvT8zT.js} +1972 -1306
  29. package/dist/{transform-CNeEnSK9.js → transform-bRfffInI.js} +3 -3
  30. package/package.json +18 -18
  31. package/src/components/Form/SelectGroup.vue +0 -2
  32. package/dist/Tile-Bu5lF4M5.js +0 -463
  33. package/dist/assets/maplibre-gl-worker-CEzvAyZY.js +0 -10
  34. package/dist/purify.es-eElsWhh7.js +0 -876
@@ -63,7 +63,7 @@ function ie(e) {
63
63
  }
64
64
  return n;
65
65
  }
66
- // ../node_modules/vue-router/dist/useApi-CUWMwLLw.js
66
+ // ../node_modules/vue-router/dist/useApi-SF8tY_yo.js
67
67
  var ae = () => {}, z = Array.isArray;
68
68
  Symbol(process.env.NODE_ENV === "production" ? "" : "navigation failure");
69
69
  var B = [
@@ -71,24 +71,48 @@ var B = [
71
71
  "query",
72
72
  "hash"
73
73
  ];
74
- function oe(e) {
74
+ function V(e) {
75
75
  if (!e || typeof e == "string") return e;
76
76
  if (e.path != null) return e.path;
77
77
  let t = {};
78
78
  for (let n of B) n in e && (t[n] = e[n]);
79
79
  return JSON.stringify(t, null, 2);
80
80
  }
81
- var se = /*#__PURE__*/ ie({
81
+ var oe = /*#__PURE__*/ ie({
82
82
  reporters: [/*#__PURE__*/ ne()],
83
83
  codes: {
84
84
  VUE_ROUTER_R0122: {
85
85
  why: (e) => `The optional path param "${e.param}" is being removed with ${e.value}.`,
86
86
  fix: "Use null to remove an optional path param."
87
87
  },
88
+ VUE_ROUTER_R0124: {
89
+ why: (e) => `The repeatable param "${e.param}" cannot be empty.`,
90
+ fix: "Pass at least one value, or make the param optional."
91
+ },
92
+ VUE_ROUTER_R0123: {
93
+ why: (e) => `The query value of "${e.key}" is ignored because a param already sets this key.`,
94
+ fix: (e) => `Pass the value in \`params\` instead of \`query\`, or omit "${e.key}" from \`query\`.`
95
+ },
96
+ VUE_ROUTER_R0126: {
97
+ why: (e) => `An error was thrown while matching "${e.path}" against the route "${e.name}". The route is skipped.`,
98
+ fix: "Return null from match() to skip a route, or call miss() in a param parser. Fix the thrown error if it is a bug."
99
+ },
100
+ VUE_ROUTER_R0129: {
101
+ why: (e) => `Cannot resolve a relative location without a "name": there is no current location, or the current location has no route. This crashes in production.\nLocation: ${V(e.location)}`,
102
+ fix: "Pass the location it is relative to as the second argument of resolve(), or use a location with a \"name\" or an absolute \"path\"."
103
+ },
104
+ VUE_ROUTER_R0125: {
105
+ why: (e) => `The params, query, or hash do not match the route "${e.name}".`,
106
+ fix: "Pass params, query, and hash values that the route matchers accept."
107
+ },
88
108
  VUE_ROUTER_D0001: {
89
109
  why: (e) => `Route "${e.name}" uses beforeEnter, which is deprecated in the experimental router.`,
90
110
  fix: "Move the condition to the route meta field and check to.meta in router.beforeEach()."
91
111
  },
112
+ VUE_ROUTER_R0130: {
113
+ why: (e) => `Cannot resolve a relative location before the initial navigation: there is no current route yet. This crashes in production.\nLocation: ${V(e.location)}`,
114
+ fix: "Use a location with a \"name\" or an absolute \"path\", await router.isReady() before mounting the app, or render the <RouterLink> inside a page component so it only renders after the initial navigation."
115
+ },
92
116
  VUE_ROUTER_D0002: {
93
117
  why: (e) => `The query value of "${e.key}" is not an array (${e.value}). Non array query values are deprecated in the experimental router.`,
94
118
  fix: (e) => `Wrap the value in an array: \`{ ${JSON.stringify(e.key)}: [${e.value}] }\`. Use undefined to remove the key.`
@@ -104,16 +128,16 @@ var se = /*#__PURE__*/ ie({
104
128
  docs: "https://router.vuejs.org/guide/advanced/dynamic-routing.html#Removing-routes"
105
129
  },
106
130
  VUE_ROUTER_R0003: {
107
- why: (e) => `Location "${oe(e.location)}" resolved to "${e.href}". A resolved location cannot start with multiple slashes.`,
131
+ why: (e) => `Location "${V(e.location)}" resolved to "${e.href}". A resolved location cannot start with multiple slashes.`,
108
132
  fix: "Remove the leading slashes from the location or fix the route configuration."
109
133
  },
110
134
  VUE_ROUTER_R0004: {
111
- why: (e) => `No match found for location with path "${oe(e.path)}"`,
135
+ why: (e) => `No match found for location with path "${V(e.path)}"`,
112
136
  fix: "Add a route matching this path or check for typos in the location.",
113
137
  docs: "https://router.vuejs.org/guide/essentials/dynamic-matching.html#Catch-all-404-Not-found-Route"
114
138
  },
115
139
  VUE_ROUTER_R0005: {
116
- why: (e) => `router.resolve() was passed an invalid location. This will fail in production.\nLocation: ${oe(e.rawLocation)}`,
140
+ why: (e) => `router.resolve() was passed an invalid location. This will fail in production.\nLocation: ${V(e.rawLocation)}`,
117
141
  fix: "Pass a valid route location: a string path or an object with `path` or `name`."
118
142
  },
119
143
  VUE_ROUTER_R0006: {
@@ -276,6 +300,10 @@ var se = /*#__PURE__*/ ie({
276
300
  why: (e) => `Finding ancestor route "${e.ancestor}" failed for "${e.record}"`,
277
301
  fix: "Report a reproduction at https://github.com/vuejs/router/issues/new/choose."
278
302
  },
303
+ VUE_ROUTER_R0106: {
304
+ why: (e) => `Repeatable param "${e.name}" was provided without an array.`,
305
+ fix: (e) => `Pass it as an array, even when it has one item: { ${JSON.stringify(e.name)}: [value] }. If the param is optional (e.g. ":${e.name}*"), pass an empty array or null to remove it.`
306
+ },
279
307
  VUE_ROUTER_R0110: {
280
308
  why: "A hash base must end with a \"#\"",
281
309
  fix: (e) => `Append "#" to the "base" argument passed to "createWebHashHistory()": "${e.base}" should be "${e.suggestion}".`
@@ -289,6 +317,16 @@ var se = /*#__PURE__*/ ie({
289
317
  fix: "Merge the router's state into your own when calling it manually: `history.replaceState({ ...history.state, ...yourState }, '', url)`.",
290
318
  docs: "https://router.vuejs.org/guide/migration.html#Usage-of-history-state"
291
319
  },
320
+ VUE_ROUTER_R0127: {
321
+ why: "The page is loaded from a file:// URL. createWebHistory() cannot reliably change the path of file:// URLs.",
322
+ fix: "Use createWebHashHistory() instead.",
323
+ docs: "https://router.vuejs.org/guide/essentials/history-mode.html#hash-mode"
324
+ },
325
+ VUE_ROUTER_R0128: {
326
+ why: "The page is loaded in an about: URL (e.g. an iframe with srcdoc). Browsers do not let the web and hash histories change this URL.",
327
+ fix: "Use createMemoryHistory() instead.",
328
+ docs: "https://router.vuejs.org/guide/essentials/history-mode.html#memory-mode"
329
+ },
292
330
  VUE_ROUTER_R1001: {
293
331
  why: (e) => `Data loader "${String(e.key)}" has a different parent than the current context. This shouldn't be happening.`,
294
332
  fix: "Report a bug with a minimal reproduction at https://github.com/vuejs/router/."
@@ -334,46 +372,45 @@ var se = /*#__PURE__*/ ie({
334
372
  }
335
373
  });
336
374
  Symbol(process.env.NODE_ENV === "production" ? "" : "router view location matched"), Symbol(process.env.NODE_ENV === "production" ? "" : "router view depth");
337
- var V = Symbol(process.env.NODE_ENV === "production" ? "" : "router"), ce = Symbol(process.env.NODE_ENV === "production" ? "" : "route location");
375
+ var H = Symbol(process.env.NODE_ENV === "production" ? "" : "router"), se = Symbol(process.env.NODE_ENV === "production" ? "" : "route location");
338
376
  Symbol(process.env.NODE_ENV === "production" ? "" : "router view location"), Symbol(process.env.NODE_ENV === "production" ? "" : "router view on route rendered");
339
- function H() {
340
- return p(V);
377
+ function U() {
378
+ return p(H);
341
379
  }
342
- function le(e) {
343
- return p(ce);
380
+ function ce(e) {
381
+ return p(se);
344
382
  }
345
- // ../node_modules/vue-router/dist/devtools-CxgSYwGp.js
346
- var ue = typeof document < "u";
347
- function de(e, t) {
383
+ // ../node_modules/vue-router/dist/devtools-RytpElE1.js
384
+ var le = typeof document < "u";
385
+ function ue(e, t) {
348
386
  return (e.aliasOf || e) === (t.aliasOf || t);
349
387
  }
350
- function fe(e, t) {
388
+ function de(e, t) {
351
389
  if (Object.keys(e).length !== Object.keys(t).length) return !1;
352
- for (var n in e) if (!pe(e[n], t[n])) return !1;
390
+ for (var n in e) if (!fe(e[n], t[n])) return !1;
353
391
  return !0;
354
392
  }
355
- function pe(e, t) {
356
- return z(e) ? U(e, t) : z(t) ? U(t, e) : (e && e.valueOf()) === (t && t.valueOf());
393
+ function fe(e, t) {
394
+ return z(e) ? pe(e, t) : z(t) ? pe(t, e) : (e && e.valueOf()) === (t && t.valueOf());
357
395
  }
358
- function U(e, t) {
396
+ function pe(e, t) {
359
397
  return z(t) ? e.length === t.length && e.every((e, n) => e === t[n]) : e.length === 1 && e[0] === t;
360
398
  }
361
399
  function W(e) {
362
400
  return typeof e == "string" || e && typeof e == "object";
363
401
  }
364
- // ../node_modules/vue-router/dist/vue-router.js
365
402
  function G(e) {
366
- let t = p(V), n = p(ce), i = !1, a = null, o = r(() => {
403
+ let t = p(H), n = p(se), i = !1, a = null, o = r(() => {
367
404
  let n = j(e.to);
368
- return process.env.NODE_ENV === "production" || i && n === a || (W(n) || se.VUE_ROUTER_R0050({ to: n }), a = n, i = !0), t.resolve(n);
405
+ return process.env.NODE_ENV === "production" || i && n === a || (W(n) || oe.VUE_ROUTER_R0050({ to: n }), a = n, i = !0), t.resolve(n);
369
406
  }), s = r(() => {
370
407
  let { matched: e } = o.value, { length: t } = e, r = e[t - 1], i = n.matched;
371
408
  if (!r || !i.length) return -1;
372
- let a = i.findIndex(de.bind(null, r));
409
+ let a = i.findIndex(ue.bind(null, r));
373
410
  if (a > -1) return a;
374
411
  let s = ve(e[t - 2]);
375
- return t > 1 && ve(r) === s && i[i.length - 1].path !== s ? i.findIndex(de.bind(null, e[t - 2])) : a;
376
- }), c = r(() => s.value > -1 && _e(n.params, o.value.params)), l = r(() => s.value > -1 && s.value === n.matched.length - 1 && fe(n.params, o.value.params));
412
+ return t > 1 && ve(r) === s && i[i.length - 1].path !== s ? i.findIndex(ue.bind(null, e[t - 2])) : a;
413
+ }), c = r(() => s.value > -1 && _e(n.params, o.value.params)), l = r(() => s.value > -1 && s.value === n.matched.length - 1 && de(n.params, o.value.params));
377
414
  function u(n = {}) {
378
415
  if (ge(n)) {
379
416
  let n = t[j(e.replace) ? "replace" : "push"](j(e.to)).catch(ae);
@@ -381,7 +418,7 @@ function G(e) {
381
418
  }
382
419
  return Promise.resolve();
383
420
  }
384
- if (process.env.NODE_ENV !== "production" && ue) {
421
+ if (process.env.NODE_ENV !== "production" && le) {
385
422
  let t = d();
386
423
  if (t) {
387
424
  let n = {
@@ -426,7 +463,7 @@ var he = /* @__PURE__ */ u({
426
463
  },
427
464
  useLink: G,
428
465
  setup(e, { slots: t }) {
429
- let n = w(G(e)), { options: i } = p(V), a = r(() => ({
466
+ let n = w(G(e)), { options: i } = p(H), a = r(() => ({
430
467
  [ye(e.activeClass, i.linkActiveClass, "router-link-active")]: n.isActive,
431
468
  [ye(e.exactActiveClass, i.linkExactActiveClass, "router-link-exact-active")]: n.isExactActive
432
469
  }));
@@ -85070,9 +85107,9 @@ var An = [
85070
85107
  }), z = r(() => {
85071
85108
  let e = l.toast.position || l.position;
85072
85109
  return l.heights.filter((t) => t.position === e).reduce((e, t, n) => n >= ae.value ? e : e + t.height, 0);
85073
- }), B = r(() => ae.value * l.gap + z.value || 0), oe = r(() => l.toast.closeButton ?? l.closeButton), se = r(() => l.toast.duration || l.duration || Sn), V = E(0), ce = E(0), H = E(null), le = r(() => l.position.split("-")), ue = r(() => le.value[0]), de = r(() => le.value[1]), fe = r(() => typeof l.toast.title != "string"), pe = r(() => typeof l.toast.description != "string"), { isDocumentHidden: U } = Dn(), W = r(() => L.value && L.value === "loading");
85110
+ }), B = r(() => ae.value * l.gap + z.value || 0), V = r(() => l.toast.closeButton ?? l.closeButton), oe = r(() => l.toast.duration || l.duration || Sn), H = E(0), se = E(0), U = E(null), ce = r(() => l.position.split("-")), le = r(() => ce.value[0]), ue = r(() => ce.value[1]), de = r(() => typeof l.toast.title != "string"), fe = r(() => typeof l.toast.description != "string"), { isDocumentHidden: pe } = Dn(), W = r(() => L.value && L.value === "loading");
85074
85111
  x(() => {
85075
- p.value = !0, M.value = se.value;
85112
+ p.value = !0, M.value = oe.value;
85076
85113
  }), N(async () => {
85077
85114
  if (!p.value || !F.value) return;
85078
85115
  await g();
@@ -85095,20 +85132,20 @@ var An = [
85095
85132
  G(), l.toast.onDismiss?.(l.toast);
85096
85133
  }
85097
85134
  function he(e) {
85098
- e.button !== 2 && !W.value && R.value && (P.value = /* @__PURE__ */ new Date(), D.value = B.value, e.target.setPointerCapture(e.pointerId), e.target.tagName !== "BUTTON" && (C.value = !0, H.value = {
85135
+ e.button !== 2 && !W.value && R.value && (P.value = /* @__PURE__ */ new Date(), D.value = B.value, e.target.setPointerCapture(e.pointerId), e.target.tagName !== "BUTTON" && (C.value = !0, U.value = {
85099
85136
  x: e.clientX,
85100
85137
  y: e.clientY
85101
85138
  }));
85102
85139
  }
85103
85140
  function ge() {
85104
85141
  if (w.value || !R.value) return;
85105
- H.value = null;
85142
+ U.value = null;
85106
85143
  let e = Number(F.value?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(F.value?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), n = (/* @__PURE__ */ new Date()).getTime() - (P.value?.getTime() || 0), r = d.value === "x" ? e : t, i = Math.abs(r) / n;
85107
85144
  Math.abs(r) >= Tn || i > .11 ? (D.value = B.value, l.toast.onDismiss?.(l.toast), d.value === "x" ? f.value = e > 0 ? "right" : "left" : f.value = t > 0 ? "down" : "up", G(), w.value = !0) : (F.value?.style.setProperty("--swipe-amount-x", "0px"), F.value?.style.setProperty("--swipe-amount-y", "0px"), T.value = !1, C.value = !1, d.value = null);
85108
85145
  }
85109
85146
  function _e(e) {
85110
- if (!H.value || !R.value || (window?.getSelection()?.toString()?.length ?? !1)) return;
85111
- let t = e.clientY - H.value.y, n = e.clientX - H.value.x, r = l.swipeDirections ?? On(l.position);
85147
+ if (!U.value || !R.value || (window?.getSelection()?.toString()?.length ?? !1)) return;
85148
+ let t = e.clientY - U.value.y, n = e.clientX - U.value.x, r = l.swipeDirections ?? On(l.position);
85112
85149
  !d.value && (Math.abs(n) > 1 || Math.abs(t) > 1) && (d.value = Math.abs(n) > Math.abs(t) ? "x" : "y");
85113
85150
  let i = {
85114
85151
  x: 0,
@@ -85146,13 +85183,13 @@ var An = [
85146
85183
  }), N((e) => {
85147
85184
  if (l.toast.promise && L.value === "loading" || l.toast.duration === Infinity || l.toast.type === "loading") return;
85148
85185
  let t;
85149
- l.expanded || l.interacting || U.value ? (() => {
85150
- if (ce.value < V.value) {
85151
- let e = (/* @__PURE__ */ new Date()).getTime() - V.value;
85186
+ l.expanded || l.interacting || pe.value ? (() => {
85187
+ if (se.value < H.value) {
85188
+ let e = (/* @__PURE__ */ new Date()).getTime() - H.value;
85152
85189
  M.value -= e;
85153
85190
  }
85154
- ce.value = (/* @__PURE__ */ new Date()).getTime();
85155
- })() : M.value !== Infinity && (V.value = (/* @__PURE__ */ new Date()).getTime(), t = setTimeout(() => {
85191
+ se.value = (/* @__PURE__ */ new Date()).getTime();
85192
+ })() : M.value !== Infinity && (H.value = (/* @__PURE__ */ new Date()).getTime(), t = setTimeout(() => {
85156
85193
  l.toast.onAutoClose?.(l.toast), G();
85157
85194
  }, M.value)), e(() => {
85158
85195
  clearTimeout(t);
@@ -85161,7 +85198,7 @@ var An = [
85161
85198
  e !== void 0 && e && (G(), l.toast.onDismiss?.(l.toast));
85162
85199
  }, { deep: !0 });
85163
85200
  function ve() {
85164
- C.value = !1, d.value = null, H.value = null;
85201
+ C.value = !1, d.value = null, U.value = null;
85165
85202
  }
85166
85203
  return (e, n) => (S(), o("li", {
85167
85204
  tabindex: "0",
@@ -85176,8 +85213,8 @@ var An = [
85176
85213
  "data-swiped": T.value,
85177
85214
  "data-removed": m.value,
85178
85215
  "data-visible": ne.value,
85179
- "data-y-position": ue.value,
85180
- "data-x-position": de.value,
85216
+ "data-y-position": le.value,
85217
+ "data-x-position": ue.value,
85181
85218
  "data-index": e.index,
85182
85219
  "data-front": I.value,
85183
85220
  "data-swiping": C.value,
@@ -85201,7 +85238,7 @@ var An = [
85201
85238
  onPointerdown: he,
85202
85239
  onPointerup: ge,
85203
85240
  onPointermove: _e
85204
- }, [oe.value && !e.toast.component && L.value !== "loading" ? (S(), o("button", {
85241
+ }, [V.value && !e.toast.component && L.value !== "loading" ? (S(), o("button", {
85205
85242
  key: 0,
85206
85243
  "aria-label": e.closeButtonAriaLabel || "Close toast",
85207
85244
  "data-disabled": W.value,
@@ -85211,7 +85248,7 @@ var An = [
85211
85248
  onClick: me
85212
85249
  }, [e.icons?.close ? (S(), i(k(e.icons?.close), { key: 0 })) : O(e.$slots, "close-icon", { key: 1 })], 10, jn)) : a("v-if", !0), e.toast.component ? (S(), i(k(e.toast.component), h({ key: 1 }, e.toast.componentProps, {
85213
85250
  onCloseToast: me,
85214
- isPaused: e.$props.expanded || e.$props.interacting || j(U)
85251
+ isPaused: e.$props.expanded || e.$props.interacting || j(pe)
85215
85252
  }), null, 16, ["isPaused"])) : (S(), o(t, { key: 2 }, [
85216
85253
  L.value !== "default" || e.toast.icon || e.toast.promise ? (S(), o("div", {
85217
85254
  key: 0,
@@ -85224,11 +85261,11 @@ var An = [
85224
85261
  }, [s("div", {
85225
85262
  "data-title": "",
85226
85263
  class: _(j(Q)(e.classes?.title, e.toast.classes?.title))
85227
- }, [fe.value ? (S(), i(k(e.toast.title), v(h({ key: 0 }, e.toast.componentProps)), null, 16)) : (S(), o(t, { key: 1 }, [c(A(e.toast.title), 1)], 64))], 2), e.toast.description ? (S(), o("div", {
85264
+ }, [de.value ? (S(), i(k(e.toast.title), v(h({ key: 0 }, e.toast.componentProps)), null, 16)) : (S(), o(t, { key: 1 }, [c(A(e.toast.title), 1)], 64))], 2), e.toast.description ? (S(), o("div", {
85228
85265
  key: 0,
85229
85266
  "data-description": "",
85230
85267
  class: _(j(Q)(e.descriptionClass, ie.value, e.classes?.description, e.toast.classes?.description))
85231
- }, [pe.value ? (S(), i(k(e.toast.description), v(h({ key: 0 }, e.toast.componentProps)), null, 16)) : (S(), o(t, { key: 1 }, [c(A(e.toast.description), 1)], 64))], 2)) : a("v-if", !0)], 2),
85268
+ }, [fe.value ? (S(), i(k(e.toast.description), v(h({ key: 0 }, e.toast.componentProps)), null, 16)) : (S(), o(t, { key: 1 }, [c(A(e.toast.description), 1)], 64))], 2)) : a("v-if", !0)], 2),
85232
85269
  e.toast.cancel ? (S(), o("button", {
85233
85270
  key: 1,
85234
85271
  style: y(e.toast.cancelButtonStyle || e.cancelButtonStyle),
@@ -86109,4 +86146,4 @@ var si = "data:image/svg+xml,%3csvg%20width='208'%20height='282'%20viewBox='0%20
86109
86146
  ]));
86110
86147
  }
86111
86148
  });
86112
- export { at as $, St as $t, _n as A, bt as At, Xt as B, st as Bt, zr as C, yt as Ct, qr as D, Nt as Dt, Jr as E, et as Et, an as F, it as Ft, Mt as G, Ve as Gt, Y as H, Ne as Ht, en as I, qe as It, Ue as J, ct as Jt, we as K, Et as Kt, tn as L, Tt as Lt, pn as M, Be as Mt, fn as N, mt as Nt, Hr as O, It as Ot, on as P, Ot as Pt, Ze as Q, ut as Qt, Yt as R, Je as Rt, Qr as S, jt as St, Gr as T, Ae as Tt, Ee as U, Fe as Ut, $t as V, Dt as Vt, Ht as W, pt as Wt, ft as X, Lt as Xt, xe as Y, je as Yt, Le as Z, rt as Zt, Ur as _, We as _t, ai as a, Bt as an, Ie as at, Ir as b, Te as bt, ti as c, le as cn, tt as ct, Pr as d, vt as dt, Ge as en, ke as et, Rr as f, Qe as ft, Br as g, Pe as gt, $r as h, wt as ht, ni as i, At as in, Rt as it, X as j, ot as jt, or as k, ze as kt, Lr as l, H as ln, Ct as lt, Yr as m, gt as mt, ii as n, Ke as nn, zt as nt, oi as o, Ye as on, He as ot, Xr as p, Ce as pt, De as q, Pt as qt, ri as r, Vt as rn, ht as rt, ei as s, lt as sn, kt as st, gi as t, Oe as tn, dt as tt, Fr as u, nt as ut, jr as v, Re as vt, Vr as w, Se as wt, Nr as x, Me as xt, Mr as y, _t as yt, Qt as z, Ft as zt };
86149
+ export { at as $, St as $t, _n as A, bt as At, Xt as B, st as Bt, zr as C, yt as Ct, qr as D, Nt as Dt, Jr as E, et as Et, an as F, it as Ft, Mt as G, Ve as Gt, Y as H, Ne as Ht, en as I, qe as It, Ue as J, ct as Jt, we as K, Et as Kt, tn as L, Tt as Lt, pn as M, Be as Mt, fn as N, mt as Nt, Hr as O, It as Ot, on as P, Ot as Pt, Ze as Q, ut as Qt, Yt as R, Je as Rt, Qr as S, jt as St, Gr as T, Ae as Tt, Ee as U, Fe as Ut, $t as V, Dt as Vt, Ht as W, pt as Wt, ft as X, Lt as Xt, xe as Y, je as Yt, Le as Z, rt as Zt, Ur as _, We as _t, ai as a, Bt as an, Ie as at, Ir as b, Te as bt, ti as c, ce as cn, tt as ct, Pr as d, vt as dt, Ge as en, ke as et, Rr as f, Qe as ft, Br as g, Pe as gt, $r as h, wt as ht, ni as i, At as in, Rt as it, X as j, ot as jt, or as k, ze as kt, Lr as l, U as ln, Ct as lt, Yr as m, gt as mt, ii as n, Ke as nn, zt as nt, oi as o, Ye as on, He as ot, Xr as p, Ce as pt, De as q, Pt as qt, ri as r, Vt as rn, ht as rt, ei as s, lt as sn, kt as st, gi as t, Oe as tn, dt as tt, Fr as u, nt as ut, jr as v, Re as vt, Vr as w, Se as wt, Nr as x, Me as xt, Mr as y, _t as yt, Qt as z, Ft as zt };
@@ -1,4 +1,4 @@
1
- import { H as e, _ as t, h as n, t as r } from "./PreviewError-EeaGx3SL.js";
1
+ import { H as e, _ as t, h as n, t as r } from "./PreviewError-DOcS8Jau.js";
2
2
  import { computed as i, createBlock as a, createElementBlock as o, createElementVNode as s, createSlots as c, defineComponent as l, nextTick as u, normalizeClass as d, onMounted as f, openBlock as p, ref as m, renderSlot as h, toDisplayString as g, unref as _, withCtx as v } from "vue";
3
3
  // src/components/ResourceAccordion/PreviewWrapper.vue?vue&type=script&setup=true&lang.ts
4
4
  var y = { class: "text-gray-medium" }, b = /* @__PURE__ */ l({
@@ -1,5 +1,5 @@
1
- import { o as e, t } from "./Control-DPuXeUqi.js";
2
- import { O as n, p as r } from "./proj-COhZ08DR.js";
1
+ import { o as e, t } from "./Control-BbyEe8x_.js";
2
+ import { O as n, p as r } from "./proj-0ED4AWuV.js";
3
3
  // ../node_modules/ol/control/ScaleLine.js
4
4
  var i = "units", a = [
5
5
  1,
@@ -32,7 +32,8 @@ var i = "units", a = [
32
32
  updateElement_() {
33
33
  let e = this.viewState_;
34
34
  if (!e) {
35
- this.renderedVisible_ &&= (this.element.style.display = "none", !1);
35
+ let e = this.element;
36
+ this.renderedVisible_ && e && (e.style.display = "none", this.renderedVisible_ = !1);
36
37
  return;
37
38
  }
38
39
  let t = e.center, i = e.projection, s = this.getUnits(), c = s == "degrees" ? "degrees" : "m", l = r(i, e.resolution, t, c), u = this.minWidth_ * (this.dpi_ || o) / o, d = this.maxWidth_ === void 0 ? void 0 : this.maxWidth_ * (this.dpi_ || o) / o, f = u * l, p = "";
@@ -44,12 +45,13 @@ var i = "units", a = [
44
45
  else if (s == "metric") f < 1e-6 ? (p = "nm", l *= 1e9) : f < .001 ? (p = "μm", l *= 1e6) : f < 1 ? (p = "mm", l *= 1e3) : f < 1e3 ? p = "m" : (p = "km", l /= 1e3);
45
46
  else if (s == "us") f < .9144 ? (p = "in", l *= 39.37) : f < 1609.344 ? (p = "ft", l /= .30480061) : (p = "mi", l /= 1609.3472);
46
47
  else throw Error("Invalid units");
47
- let m = 3 * Math.floor(Math.log(u * l) / Math.log(10)), h, g, _, v = 0, y, b;
48
+ let m = 3 * Math.floor(Math.log(u * l) / Math.log(10)), h, g, _ = 0, v = 0, y, b;
48
49
  for (;;) {
49
50
  _ = Math.floor(m / 3);
50
51
  let e = 10 ** _;
51
52
  if (h = a[(m % 3 + 3) % 3] * e, g = Math.round(h / l), isNaN(g)) {
52
- this.element.style.display = "none", this.renderedVisible_ = !1;
53
+ let e = this.element;
54
+ e && (e.style.display = "none"), this.renderedVisible_ = !1;
53
55
  return;
54
56
  }
55
57
  if (d !== void 0 && g >= d) {
@@ -60,7 +62,10 @@ var i = "units", a = [
60
62
  v = h, y = g, b = _, ++m;
61
63
  }
62
64
  let x = this.scaleBar_ ? this.createScaleBar(g, h, p) : h.toFixed(_ < 0 ? -_ : 0) + " " + p;
63
- this.renderedHTML_ != x && (this.innerElement_.innerHTML = x, this.renderedHTML_ = x), this.renderedWidth_ != g && (this.innerElement_.style.width = g + "px", this.renderedWidth_ = g), this.renderedVisible_ ||= (this.element.style.display = "", !0);
65
+ if (this.renderedHTML_ != x && (this.innerElement_.innerHTML = x, this.renderedHTML_ = x), this.renderedWidth_ != g && (this.innerElement_.style.width = g + "px", this.renderedWidth_ = g), !this.renderedVisible_) {
66
+ let e = this.element;
67
+ e && (e.style.display = ""), this.renderedVisible_ = !0;
68
+ }
64
69
  }
65
70
  createScaleBar(e, t, n) {
66
71
  let r = this.getScaleForResolution(), i = r < 1 ? Math.round(1 / r).toLocaleString() + " : 1" : "1 : " + Math.round(r).toLocaleString(), a = this.scaleBarSteps_, o = e / a, s = [this.createMarker("absolute")];
@@ -78,8 +83,10 @@ var i = "units", a = [
78
83
  return `<div class="ol-scale-step-text" style="margin-left: ${o}px;text-align: ${e === 0 ? "left" : "center"};min-width: ${s}px;left: ${n ? t + "px" : "unset"};">` + a + "</div>";
79
84
  }
80
85
  getScaleForResolution() {
81
- let e = r(this.viewState_.projection, this.viewState_.resolution, this.viewState_.center, "m"), t = this.dpi_ || o;
82
- return 1e3 / 25.4 * e * t;
86
+ let e = this.viewState_;
87
+ if (!e) return 0;
88
+ let t = r(e.projection, e.resolution, e.center, "m"), n = this.dpi_ || o;
89
+ return 1e3 / 25.4 * t * n;
83
90
  }
84
91
  render(e) {
85
92
  let t = e.frameState;