@datagouv/components-next 0.0.32 → 0.1.1

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 (85) hide show
  1. package/README.md +5 -15
  2. package/assets/labels/hvd.svg +15 -0
  3. package/assets/labels/inspire.svg +20 -0
  4. package/assets/labels/sl.svg +5 -0
  5. package/assets/labels/spd.svg +5 -0
  6. package/assets/labels/sr.svg +5 -0
  7. package/dist/JsonPreview.client-nkpNPvZb.js +92 -0
  8. package/dist/{MapContainer.client-Dhfz-YU8.js → MapContainer.client-CrTw-ai8.js} +17587 -6826
  9. package/dist/{PdfPreview.client--W0FK7CN.js → PdfPreview.client-JpAWf0A2.js} +47 -48
  10. package/dist/{Pmtiles.client-B6vRTwrm.js → Pmtiles.client-B83l4Ft5.js} +7609 -7503
  11. package/dist/Swagger.client-D1TfRQjI.js +4 -0
  12. package/dist/XmlPreview.client-DV8N1S9Y.js +84 -0
  13. package/dist/components-next.css +6 -6
  14. package/dist/components-next.js +95 -80
  15. package/dist/components.css +2 -2
  16. package/dist/en-CuSmdvir.js +30 -0
  17. package/dist/hvd-DYeke1vM.js +4 -0
  18. package/dist/inspire-BLXeJvob.js +4 -0
  19. package/dist/{main-yWiuApVL.js → main-CN6IuSUA.js} +53400 -55985
  20. package/dist/{pdf-vue3-Dm2ZCc3P.js → pdf-vue3-IkJO65RH.js} +2 -2
  21. package/dist/{pdf.min-f72cfa08-DAetWL3M.js → pdf.min-f72cfa08-CdgJTooZ.js} +78 -78
  22. package/dist/sl-VR8Tb1_u.js +4 -0
  23. package/dist/spd-BJ-Omhgt.js +4 -0
  24. package/dist/sr-DjSF-8xW.js +4 -0
  25. package/dist/{text-clamp.esm-Mb7Qdtu9.js → text-clamp.esm-B5kW_XMt.js} +54 -55
  26. package/dist/{vue3-json-viewer-B1fiyuLU.js → vue3-json-viewer-BXwup7nO.js} +88 -93
  27. package/dist/{vue3-xml-viewer.common-1QyofKqS.js → vue3-xml-viewer.common-9hga4rGF.js} +54 -54
  28. package/package.json +12 -11
  29. package/src/components/ActivityList/ActivityList.vue +159 -0
  30. package/src/components/ActivityList/UserActivityList.vue +30 -0
  31. package/src/components/AppLink.vue +3 -3
  32. package/src/components/Avatar.vue +1 -0
  33. package/src/components/DataserviceCard.vue +3 -3
  34. package/src/components/DatasetCard.vue +19 -18
  35. package/src/components/DatasetInformationPanel.vue +16 -16
  36. package/src/components/DatasetLabelTag.vue +40 -0
  37. package/src/components/DatasetQuality.vue +13 -10
  38. package/src/components/DatasetQualityInline.vue +5 -2
  39. package/src/components/DatasetQualityScore.vue +3 -3
  40. package/src/components/DatasetQualityTooltipContent.vue +2 -2
  41. package/src/components/DateRangeDetails.vue +7 -3
  42. package/src/components/ExtraAccordion.vue +3 -1
  43. package/src/components/OrganizationNameWithCertificate.vue +2 -2
  44. package/src/components/PaddedContainer.vue +28 -0
  45. package/src/components/Pagination.vue +2 -2
  46. package/src/components/Placeholder.vue +1 -1
  47. package/src/components/ReadMore.vue +17 -17
  48. package/src/components/ResourceAccordion/DataStructure.vue +8 -3
  49. package/src/components/ResourceAccordion/EditButton.vue +2 -2
  50. package/src/components/ResourceAccordion/JsonPreview.client.vue +7 -5
  51. package/src/components/ResourceAccordion/MapContainer.client.vue +2 -2
  52. package/src/components/ResourceAccordion/Metadata.vue +10 -10
  53. package/src/components/ResourceAccordion/PdfPreview.client.vue +7 -5
  54. package/src/components/ResourceAccordion/Pmtiles.client.vue +3 -3
  55. package/src/components/ResourceAccordion/Preview.vue +2 -2
  56. package/src/components/ResourceAccordion/ResourceAccordion.vue +23 -15
  57. package/src/components/ResourceAccordion/SchemaBadge.vue +4 -4
  58. package/src/components/ResourceAccordion/XmlPreview.client.vue +7 -5
  59. package/src/components/ReuseCard.vue +3 -3
  60. package/src/components/ReuseDetails.vue +2 -2
  61. package/src/components/SmallChart.vue +33 -30
  62. package/src/components/StatBox.vue +12 -7
  63. package/src/components/Toggletip.vue +0 -1
  64. package/src/components/TranslationT.vue +51 -0
  65. package/src/composables/useTranslation.ts +169 -0
  66. package/src/functions/activities.ts +36 -0
  67. package/src/functions/api.ts +4 -4
  68. package/src/functions/datasets.ts +28 -0
  69. package/src/functions/dates.ts +4 -4
  70. package/src/functions/helpers.ts +3 -3
  71. package/src/functions/organizations.ts +2 -2
  72. package/src/functions/pagination.ts +9 -0
  73. package/src/functions/resources.ts +2 -2
  74. package/src/functions/reuses.ts +3 -3
  75. package/src/main.ts +24 -20
  76. package/src/types/activity.ts +24 -0
  77. package/src/types/api.ts +8 -0
  78. package/src/types/badges.ts +4 -0
  79. package/src/types/dataservices.ts +6 -8
  80. package/src/types/datasets.ts +6 -1
  81. package/src/types/site.ts +1 -0
  82. package/src/types/topics.ts +17 -2
  83. package/dist/JsonPreview.client-BRhCOHlE.js +0 -93
  84. package/dist/Swagger.client-ch5H8aT2.js +0 -4
  85. package/dist/XmlPreview.client-BcbnRWAp.js +0 -85
@@ -1,5 +1,5 @@
1
- import { defineComponent as T, ref as k, onMounted as J, h as g, watch as F, computed as O, inject as $, provide as q, createElementBlock as _, openBlock as N, normalizeClass as S, toDisplayString as A, resolveComponent as ce, createCommentVNode as Y, createElementVNode as z, renderSlot as pe, createTextVNode as fe, createVNode as de, nextTick as ve } from "vue";
2
- const ye = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/, X = T({
1
+ import { defineComponent as T, ref as k, onMounted as J, h as g, watch as F, computed as O, inject as $, provide as q, createElementBlock as _, openBlock as N, normalizeClass as S, toDisplayString as A, resolveComponent as ie, createCommentVNode as Y, createElementVNode as z, renderSlot as ce, createTextVNode as pe, createVNode as fe, nextTick as de } from "vue";
2
+ const ve = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/, X = T({
3
3
  name: "JsonString",
4
4
  props: {
5
5
  /** The string value to display. */
@@ -21,7 +21,7 @@ const ye = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)
21
21
  y.value = !y.value;
22
22
  };
23
23
  return () => {
24
- const n = e.jsonValue, t = ye.test(n);
24
+ const n = e.jsonValue, t = ve.test(n);
25
25
  let o;
26
26
  !y.value && c.value ? o = g("span", {
27
27
  class: { "jv-ellipsis": !0 },
@@ -49,9 +49,9 @@ const ye = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)
49
49
  })), a.push(g("span", { class: { "jv-holder-node": !0 }, ref: d })), a.push(o), g("span", {}, a);
50
50
  };
51
51
  }
52
- }), me = {
52
+ }), ye = {
53
53
  class: /* @__PURE__ */ S(["jv-item", "jv-undefined"])
54
- }, he = /* @__PURE__ */ T({
54
+ }, me = /* @__PURE__ */ T({
55
55
  __name: "json-undefined",
56
56
  props: {
57
57
  /**
@@ -66,9 +66,9 @@ const ye = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)
66
66
  },
67
67
  setup(e) {
68
68
  const y = e, c = O(() => y.jsonValue === null ? "null" : "undefined");
69
- return (p, d) => (N(), _("span", me, A(c.value), 1));
69
+ return (p, d) => (N(), _("span", ye, A(c.value), 1));
70
70
  }
71
- }), ge = /* @__PURE__ */ T({
71
+ }), he = /* @__PURE__ */ T({
72
72
  __name: "json-number",
73
73
  props: {
74
74
  /** The number value to display. */
@@ -83,9 +83,9 @@ const ye = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)
83
83
  class: S(["jv-item", "jv-number", c.value ? "jv-number-integer" : "jv-number-float"])
84
84
  }, A(e.jsonValue.toString()), 3));
85
85
  }
86
- }), be = {
86
+ }), ge = {
87
87
  class: /* @__PURE__ */ S(["jv-item", "jv-boolean"])
88
- }, je = /* @__PURE__ */ T({
88
+ }, be = /* @__PURE__ */ T({
89
89
  __name: "json-boolean",
90
90
  props: {
91
91
  /** The boolean value to display. */
@@ -95,9 +95,9 @@ const ye = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)
95
95
  }
96
96
  },
97
97
  setup(e) {
98
- return (y, c) => (N(), _("span", be, A(e.jsonValue.toString()), 1));
98
+ return (y, c) => (N(), _("span", ge, A(e.jsonValue.toString()), 1));
99
99
  }
100
- }), xe = T({
100
+ }), je = T({
101
101
  name: "JsonObject",
102
102
  props: {
103
103
  /** The object value to render. */
@@ -184,7 +184,7 @@ const ye = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)
184
184
  } }, o);
185
185
  };
186
186
  }
187
- }), Ee = T({
187
+ }), xe = T({
188
188
  name: "JsonArray",
189
189
  props: {
190
190
  /** The array value to render. */
@@ -267,7 +267,7 @@ const ye = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)
267
267
  } }, n);
268
268
  };
269
269
  }
270
- }), we = ["title"], ke = /* @__PURE__ */ T({
270
+ }), Ee = ["title"], we = /* @__PURE__ */ T({
271
271
  __name: "json-function",
272
272
  props: {
273
273
  /** The Function object to represent. */
@@ -280,11 +280,11 @@ const ye = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)
280
280
  return (y, c) => (N(), _("span", {
281
281
  class: S(["jv-item", "jv-function"]),
282
282
  title: e.jsonValue.toString()
283
- }, " <function> ", 8, we));
283
+ }, " <function> ", 8, Ee));
284
284
  }
285
- }), Se = {
285
+ }), ke = {
286
286
  class: /* @__PURE__ */ S(["jv-item", "jv-string"])
287
- }, Te = /* @__PURE__ */ T({
287
+ }, Se = /* @__PURE__ */ T({
288
288
  __name: "json-date",
289
289
  props: {
290
290
  /** The Date object to display. */
@@ -295,11 +295,11 @@ const ye = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)
295
295
  },
296
296
  setup(e) {
297
297
  const y = e, c = $("timeformat", (d) => d.toLocaleString()), p = O(() => c(y.jsonValue));
298
- return (d, i) => (N(), _("span", Se, ' "' + A(p.value) + '" ', 1));
298
+ return (d, i) => (N(), _("span", ke, ' "' + A(p.value) + '" ', 1));
299
299
  }
300
- }), Ce = {
300
+ }), Te = {
301
301
  class: /* @__PURE__ */ S(["jv-item", "jv-regexp"])
302
- }, _e = /* @__PURE__ */ T({
302
+ }, Ce = /* @__PURE__ */ T({
303
303
  __name: "json-regexp",
304
304
  props: {
305
305
  /** The RegExp object to display. */
@@ -309,7 +309,7 @@ const ye = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)
309
309
  }
310
310
  },
311
311
  setup(e) {
312
- return (y, c) => (N(), _("span", Ce, A(e.jsonValue.toString()), 1));
312
+ return (y, c) => (N(), _("span", Te, A(e.jsonValue.toString()), 1));
313
313
  }
314
314
  }), I = T({
315
315
  name: "JsonBox",
@@ -357,7 +357,7 @@ const ye = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)
357
357
  return () => {
358
358
  const n = [];
359
359
  let t;
360
- e.value === null || e.value === void 0 ? t = he : Array.isArray(e.value) ? t = Ee : e.value instanceof Date ? t = Te : e.value instanceof RegExp ? t = _e : typeof e.value == "object" ? t = xe : typeof e.value == "number" ? t = ge : typeof e.value == "string" ? t = X : typeof e.value == "boolean" ? t = je : typeof e.value == "function" ? t = ke : t = X;
360
+ e.value === null || e.value === void 0 ? t = me : Array.isArray(e.value) ? t = xe : e.value instanceof Date ? t = Se : e.value instanceof RegExp ? t = Ce : typeof e.value == "object" ? t = je : typeof e.value == "number" ? t = he : typeof e.value == "string" ? t = X : typeof e.value == "boolean" ? t = be : typeof e.value == "function" ? t = we : t = X;
361
361
  const o = e.value && (Array.isArray(e.value) || typeof e.value == "object" && !(e.value instanceof Date) && // Exclude Date
362
362
  !(e.value instanceof RegExp));
363
363
  return !e.previewMode && o && !(e.value instanceof RegExp) && n.push(
@@ -417,7 +417,7 @@ const ye = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)
417
417
  };
418
418
  }
419
419
  });
420
- function Ne(e) {
420
+ function _e(e) {
421
421
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
422
422
  }
423
423
  var H = { exports: {} };
@@ -427,25 +427,25 @@ var H = { exports: {} };
427
427
  *
428
428
  * Licensed MIT © Zeno Rocha
429
429
  */
430
- var Oe = H.exports, Z;
431
- function Ae() {
432
- return Z || (Z = 1, function(e, y) {
430
+ var Ne = H.exports, Z;
431
+ function Oe() {
432
+ return Z || (Z = 1, (function(e, y) {
433
433
  (function(c, p) {
434
434
  e.exports = p();
435
- })(Oe, function() {
435
+ })(Ne, function() {
436
436
  return (
437
437
  /******/
438
- function() {
438
+ (function() {
439
439
  var c = {
440
440
  /***/
441
441
  686: (
442
442
  /***/
443
- function(i, n, t) {
443
+ (function(i, n, t) {
444
444
  t.d(n, {
445
445
  default: function() {
446
446
  return (
447
447
  /* binding */
448
- ie
448
+ se
449
449
  );
450
450
  }
451
451
  });
@@ -472,12 +472,12 @@ function Ae() {
472
472
  r.container.appendChild(s);
473
473
  var l = w()(s);
474
474
  return v("copy"), s.remove(), l;
475
- }, Q = function(u) {
475
+ }, G = function(u) {
476
476
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
477
477
  container: document.body
478
478
  }, s = "";
479
- return typeof u == "string" ? s = K(u, r) : u instanceof HTMLInputElement && !["text", "search", "url", "tel", "password"].includes(u == null ? void 0 : u.type) ? s = K(u.value, r) : (s = w()(u), v("copy")), s;
480
- }, R = Q;
479
+ return typeof u == "string" ? s = K(u, r) : u instanceof HTMLInputElement && !["text", "search", "url", "tel", "password"].includes(u?.type) ? s = K(u.value, r) : (s = w()(u), v("copy")), s;
480
+ }, R = G;
481
481
  function V(u) {
482
482
  "@babel/helpers - typeof";
483
483
  return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? V = function(r) {
@@ -486,7 +486,7 @@ function Ae() {
486
486
  return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
487
487
  }, V(u);
488
488
  }
489
- var W = function() {
489
+ var Q = function() {
490
490
  var u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = u.action, s = r === void 0 ? "copy" : r, l = u.container, m = u.target, E = u.text;
491
491
  if (s !== "copy" && s !== "cut")
492
492
  throw new Error('Invalid "action" value, use either "copy" or "cut"');
@@ -506,7 +506,7 @@ function Ae() {
506
506
  return s === "cut" ? h(m) : R(m, {
507
507
  container: l
508
508
  });
509
- }, ee = W;
509
+ }, W = Q;
510
510
  function M(u) {
511
511
  "@babel/helpers - typeof";
512
512
  return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? M = function(r) {
@@ -515,7 +515,7 @@ function Ae() {
515
515
  return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
516
516
  }, M(u);
517
517
  }
518
- function te(u, r) {
518
+ function ee(u, r) {
519
519
  if (!(u instanceof r))
520
520
  throw new TypeError("Cannot call a class as a function");
521
521
  }
@@ -525,10 +525,10 @@ function Ae() {
525
525
  l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(u, l.key, l);
526
526
  }
527
527
  }
528
- function ne(u, r, s) {
528
+ function te(u, r, s) {
529
529
  return r && U(u.prototype, r), s && U(u, s), u;
530
530
  }
531
- function oe(u, r) {
531
+ function ne(u, r) {
532
532
  if (typeof r != "function" && r !== null)
533
533
  throw new TypeError("Super expression must either be null or a function");
534
534
  u.prototype = Object.create(r && r.prototype, { constructor: { value: u, writable: !0, configurable: !0 } }), r && D(u, r);
@@ -538,8 +538,8 @@ function Ae() {
538
538
  return s.__proto__ = l, s;
539
539
  }, D(u, r);
540
540
  }
541
- function re(u) {
542
- var r = le();
541
+ function oe(u) {
542
+ var r = ue();
543
543
  return function() {
544
544
  var s = B(u), l;
545
545
  if (r) {
@@ -547,18 +547,18 @@ function Ae() {
547
547
  l = Reflect.construct(s, arguments, m);
548
548
  } else
549
549
  l = s.apply(this, arguments);
550
- return ae(this, l);
550
+ return re(this, l);
551
551
  };
552
552
  }
553
- function ae(u, r) {
554
- return r && (M(r) === "object" || typeof r == "function") ? r : ue(u);
553
+ function re(u, r) {
554
+ return r && (M(r) === "object" || typeof r == "function") ? r : ae(u);
555
555
  }
556
- function ue(u) {
556
+ function ae(u) {
557
557
  if (u === void 0)
558
558
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
559
559
  return u;
560
560
  }
561
- function le() {
561
+ function ue() {
562
562
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
563
563
  if (typeof Proxy == "function") return !0;
564
564
  try {
@@ -578,14 +578,14 @@ function Ae() {
578
578
  if (r.hasAttribute(s))
579
579
  return r.getAttribute(s);
580
580
  }
581
- var se = /* @__PURE__ */ function(u) {
582
- oe(s, u);
583
- var r = re(s);
581
+ var le = /* @__PURE__ */ (function(u) {
582
+ ne(s, u);
583
+ var r = oe(s);
584
584
  function s(l, m) {
585
585
  var E;
586
- return te(this, s), E = r.call(this), E.resolveOptions(m), E.listenClick(l), E;
586
+ return ee(this, s), E = r.call(this), E.resolveOptions(m), E.listenClick(l), E;
587
587
  }
588
- return ne(s, [{
588
+ return te(s, [{
589
589
  key: "resolveOptions",
590
590
  value: function() {
591
591
  var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -610,7 +610,7 @@ function Ae() {
610
610
  }, {
611
611
  key: "onClick",
612
612
  value: function(l) {
613
- var m = l.delegateTarget || l.currentTarget, E = this.action(m) || "copy", L = ee({
613
+ var m = l.delegateTarget || l.currentTarget, E = this.action(m) || "copy", L = W({
614
614
  action: E,
615
615
  container: this.container,
616
616
  target: this.target(m),
@@ -700,13 +700,13 @@ function Ae() {
700
700
  }), E;
701
701
  }
702
702
  }]), s;
703
- }(a()), ie = se;
704
- }
703
+ })(a()), se = le;
704
+ })
705
705
  ),
706
706
  /***/
707
707
  828: (
708
708
  /***/
709
- function(i) {
709
+ (function(i) {
710
710
  var n = 9;
711
711
  if (typeof Element < "u" && !Element.prototype.matches) {
712
712
  var t = Element.prototype;
@@ -720,12 +720,12 @@ function Ae() {
720
720
  }
721
721
  }
722
722
  i.exports = o;
723
- }
723
+ })
724
724
  ),
725
725
  /***/
726
726
  438: (
727
727
  /***/
728
- function(i, n, t) {
728
+ (function(i, n, t) {
729
729
  var o = t(828);
730
730
  function a(b, w, v, x, h) {
731
731
  var C = j.apply(this, arguments);
@@ -746,12 +746,12 @@ function Ae() {
746
746
  };
747
747
  }
748
748
  i.exports = f;
749
- }
749
+ })
750
750
  ),
751
751
  /***/
752
752
  879: (
753
753
  /***/
754
- function(i, n) {
754
+ (function(i, n) {
755
755
  n.node = function(t) {
756
756
  return t !== void 0 && t instanceof HTMLElement && t.nodeType === 1;
757
757
  }, n.nodeList = function(t) {
@@ -763,12 +763,12 @@ function Ae() {
763
763
  var o = Object.prototype.toString.call(t);
764
764
  return o === "[object Function]";
765
765
  };
766
- }
766
+ })
767
767
  ),
768
768
  /***/
769
769
  370: (
770
770
  /***/
771
- function(i, n, t) {
771
+ (function(i, n, t) {
772
772
  var o = t(879), a = t(438);
773
773
  function f(v, x, h) {
774
774
  if (!v && !x && !h)
@@ -807,12 +807,12 @@ function Ae() {
807
807
  return a(document.body, v, x, h);
808
808
  }
809
809
  i.exports = f;
810
- }
810
+ })
811
811
  ),
812
812
  /***/
813
813
  817: (
814
814
  /***/
815
- function(i) {
815
+ (function(i) {
816
816
  function n(t) {
817
817
  var o;
818
818
  if (t.nodeName === "SELECT")
@@ -828,12 +828,12 @@ function Ae() {
828
828
  return o;
829
829
  }
830
830
  i.exports = n;
831
- }
831
+ })
832
832
  ),
833
833
  /***/
834
834
  279: (
835
835
  /***/
836
- function(i) {
836
+ (function(i) {
837
837
  function n() {
838
838
  }
839
839
  n.prototype = {
@@ -865,7 +865,7 @@ function Ae() {
865
865
  return j.length ? a[t] = j : delete a[t], this;
866
866
  }
867
867
  }, i.exports = n, i.exports.TinyEmitter = n;
868
- }
868
+ })
869
869
  )
870
870
  /******/
871
871
  }, p = {};
@@ -883,45 +883,45 @@ function Ae() {
883
883
  };
884
884
  return c[i](n, n.exports, d), n.exports;
885
885
  }
886
- return function() {
886
+ return (function() {
887
887
  d.n = function(i) {
888
888
  var n = i && i.__esModule ? (
889
889
  /******/
890
- function() {
890
+ (function() {
891
891
  return i.default;
892
- }
892
+ })
893
893
  ) : (
894
894
  /******/
895
- function() {
895
+ (function() {
896
896
  return i;
897
- }
897
+ })
898
898
  );
899
899
  return d.d(n, { a: n }), n;
900
900
  };
901
- }(), function() {
901
+ })(), (function() {
902
902
  d.d = function(i, n) {
903
903
  for (var t in n)
904
904
  d.o(n, t) && !d.o(i, t) && Object.defineProperty(i, t, { enumerable: !0, get: n[t] });
905
905
  };
906
- }(), function() {
906
+ })(), (function() {
907
907
  d.o = function(i, n) {
908
908
  return Object.prototype.hasOwnProperty.call(i, n);
909
909
  };
910
- }(), d(686);
911
- }().default
910
+ })(), d(686);
911
+ })().default
912
912
  );
913
913
  });
914
- }(H)), H.exports;
914
+ })(H)), H.exports;
915
915
  }
916
- var Me = Ae();
917
- const Ve = /* @__PURE__ */ Ne(Me), Be = function(e, y) {
916
+ var Ae = Oe();
917
+ const Me = /* @__PURE__ */ _e(Ae), Ve = function(e, y) {
918
918
  let c = Date.now(), p;
919
919
  return (...d) => {
920
920
  Date.now() - c < y && p && clearTimeout(p), p = setTimeout(() => {
921
921
  e(...d);
922
922
  }, y), c = Date.now();
923
923
  };
924
- }, Le = T({
924
+ }, Be = T({
925
925
  name: "JsonViewer",
926
926
  components: {
927
927
  JsonBox: I
@@ -999,8 +999,8 @@ const Ve = /* @__PURE__ */ Ne(Me), Be = function(e, y) {
999
999
  }
1000
1000
  }), f = () => {
1001
1001
  j();
1002
- }, j = Be(() => {
1003
- ve(() => {
1002
+ }, j = Ve(() => {
1003
+ de(() => {
1004
1004
  n.value && (n.value.$el.clientHeight >= 250 ? p.value = !0 : p.value = !1);
1005
1005
  });
1006
1006
  }, 200), b = (v) => {
@@ -1013,7 +1013,7 @@ const Ve = /* @__PURE__ */ Ne(Me), Be = function(e, y) {
1013
1013
  return F(() => e.value, () => {
1014
1014
  f();
1015
1015
  }), J(() => {
1016
- e.boxed && n.value && (f(), n.value.$el.addEventListener("resized", f, !0)), e.copyable && i.value && new Ve(i.value, {
1016
+ e.boxed && n.value && (f(), n.value.$el.addEventListener("resized", f, !0)), e.copyable && i.value && new Me(i.value, {
1017
1017
  text: () => JSON.stringify(a.value, null, 2)
1018
1018
  // Use parseValue for copying
1019
1019
  }).on("success", b);
@@ -1033,14 +1033,14 @@ const Ve = /* @__PURE__ */ Ne(Me), Be = function(e, y) {
1033
1033
  // onCopied, // only called internally
1034
1034
  };
1035
1035
  }
1036
- }), Re = (e, y) => {
1036
+ }), Le = (e, y) => {
1037
1037
  const c = e.__vccOpts || e;
1038
1038
  for (const [p, d] of y)
1039
1039
  c[p] = d;
1040
1040
  return c;
1041
1041
  };
1042
- function De(e, y, c, p, d, i) {
1043
- const n = ce("json-box");
1042
+ function Re(e, y, c, p, d, i) {
1043
+ const n = ie("json-box");
1044
1044
  return N(), _("div", {
1045
1045
  class: S(e.jvClass)
1046
1046
  }, [
@@ -1052,15 +1052,15 @@ function De(e, y, c, p, d, i) {
1052
1052
  ref: "clip",
1053
1053
  class: S(["jv-button", { copied: e.copied }])
1054
1054
  }, [
1055
- pe(e.$slots, "copy", { copied: e.copied }, () => [
1056
- fe(A(e.copied ? e.copyText.copiedText : e.copyText.copyText), 1)
1055
+ ce(e.$slots, "copy", { copied: e.copied }, () => [
1056
+ pe(A(e.copied ? e.copyText.copiedText : e.copyText.copyText), 1)
1057
1057
  ])
1058
1058
  ], 2)
1059
1059
  ], 2)) : Y("", !0),
1060
1060
  z("div", {
1061
1061
  class: S(["jv-code", { open: e.expandCode, boxed: e.boxed }])
1062
1062
  }, [
1063
- de(n, {
1063
+ fe(n, {
1064
1064
  ref: "jsonBox",
1065
1065
  value: e.parseValue,
1066
1066
  sort: e.sort,
@@ -1078,12 +1078,7 @@ function De(e, y, c, p, d, i) {
1078
1078
  ])) : Y("", !0)
1079
1079
  ], 2);
1080
1080
  }
1081
- const G = /* @__PURE__ */ Re(Le, [["render", De]]), Pe = (e) => {
1082
- e.component(G.name, G);
1083
- }, ze = {
1084
- install: Pe
1085
- };
1081
+ const Pe = /* @__PURE__ */ Le(Be, [["render", Re]]);
1086
1082
  export {
1087
- G as JsonViewer,
1088
- ze as default
1083
+ Pe as JsonViewer
1089
1084
  };