@mgdis/mg-components 5.27.3 → 5.27.4

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 (109) hide show
  1. package/dist/cjs/{index-8e9b0d9b.js → index-11b35234.js} +47 -47
  2. package/dist/cjs/index-11b35234.js.map +1 -0
  3. package/dist/cjs/{index-7bb96ccc.js → index-3198e64e.js} +79 -27
  4. package/dist/cjs/index-3198e64e.js.map +1 -0
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/mg-action-more_36.cjs.entry.js +237 -191
  7. package/dist/cjs/mg-action-more_36.cjs.entry.js.map +1 -1
  8. package/dist/cjs/mg-components.cjs.js +3 -3
  9. package/dist/cjs/mg-components.cjs.js.map +1 -1
  10. package/dist/cjs/mg-loader.cjs.entry.js +3 -3
  11. package/dist/collection/collection-manifest.json +1 -1
  12. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +124 -97
  13. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js.map +1 -1
  14. package/dist/collection/components/molecules/inputs/mg-input/mg-input.conf.js +1 -0
  15. package/dist/collection/components/molecules/inputs/mg-input/mg-input.conf.js.map +1 -1
  16. package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js +1 -1
  17. package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js.map +1 -1
  18. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.js.map +1 -1
  19. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +21 -3
  20. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js.map +1 -1
  21. package/dist/components/index.es.js +39 -39
  22. package/dist/components/index.es.js.map +1 -1
  23. package/dist/components/index2.js +2 -2
  24. package/dist/components/mg-action-more.js +2 -2
  25. package/dist/components/mg-badge2.js +3 -3
  26. package/dist/components/mg-button2.js +4 -4
  27. package/dist/components/mg-card2.js +2 -2
  28. package/dist/components/mg-details.js +2 -2
  29. package/dist/components/mg-form.js +3 -3
  30. package/dist/components/mg-icon2.js +2 -2
  31. package/dist/components/mg-illustrated-message.js +2 -2
  32. package/dist/components/mg-input-checkbox-paginated2.js +1 -1
  33. package/dist/components/mg-input-checkbox-paginated2.js.map +1 -1
  34. package/dist/components/mg-input-checkbox.js +25 -7
  35. package/dist/components/mg-input-checkbox.js.map +1 -1
  36. package/dist/components/mg-input-date.js +11 -11
  37. package/dist/components/mg-input-numeric.js +5 -5
  38. package/dist/components/mg-input-password.js +3 -3
  39. package/dist/components/mg-input-radio.js +4 -4
  40. package/dist/components/mg-input-select2.js +6 -6
  41. package/dist/components/mg-input-text2.js +6 -6
  42. package/dist/components/mg-input-textarea.js +6 -6
  43. package/dist/components/mg-input-title2.js +2 -2
  44. package/dist/components/mg-input-toggle.js +4 -4
  45. package/dist/components/mg-input2.js +4 -3
  46. package/dist/components/mg-input2.js.map +1 -1
  47. package/dist/components/mg-item-more2.js +2 -2
  48. package/dist/components/mg-loader.js +2 -2
  49. package/dist/components/mg-menu-item2.js +5 -5
  50. package/dist/components/mg-message.js +3 -3
  51. package/dist/components/mg-modal.js +6 -6
  52. package/dist/components/mg-pagination2.js +2 -2
  53. package/dist/components/mg-panel.js +4 -4
  54. package/dist/components/mg-popover-content2.js +3 -3
  55. package/dist/components/mg-popover2.js +3 -3
  56. package/dist/components/mg-skip-links.js +2 -2
  57. package/dist/components/mg-tabs.js +6 -6
  58. package/dist/components/mg-tag.js +3 -3
  59. package/dist/components/mg-tooltip2.js +134 -107
  60. package/dist/components/mg-tooltip2.js.map +1 -1
  61. package/dist/esm/{index-138ea119.js → index-00abd8c1.js} +41 -41
  62. package/dist/esm/index-00abd8c1.js.map +1 -0
  63. package/dist/esm/{index-c4faef56.js → index-99317ec3.js} +79 -27
  64. package/dist/esm/index-99317ec3.js.map +1 -0
  65. package/dist/esm/loader.js +3 -3
  66. package/dist/esm/mg-action-more_36.entry.js +237 -191
  67. package/dist/esm/mg-action-more_36.entry.js.map +1 -1
  68. package/dist/esm/mg-components.js +4 -4
  69. package/dist/esm/mg-components.js.map +1 -1
  70. package/dist/esm/mg-loader.entry.js +3 -3
  71. package/dist/mg-components/index.esm.js.map +1 -1
  72. package/dist/mg-components/mg-components.esm.js +1 -1
  73. package/dist/mg-components/mg-components.esm.js.map +1 -1
  74. package/dist/mg-components/p-48c0a0bf.entry.js +2 -0
  75. package/dist/mg-components/p-48c0a0bf.entry.js.map +1 -0
  76. package/dist/mg-components/p-4cfcbdc2.js +2 -0
  77. package/dist/mg-components/p-4cfcbdc2.js.map +1 -0
  78. package/dist/mg-components/p-815362e4.js +3 -0
  79. package/dist/mg-components/p-815362e4.js.map +1 -0
  80. package/dist/mg-components/{p-bac6ca1f.entry.js → p-d3e15dd7.entry.js} +2 -2
  81. package/dist/mg-components/{p-bac6ca1f.entry.js.map → p-d3e15dd7.entry.js.map} +1 -1
  82. package/dist/mg-components/p-e1255160.js.map +1 -1
  83. package/dist/types/components/atoms/mg-tooltip/mg-tooltip.d.ts +25 -12
  84. package/dist/types/components/molecules/inputs/mg-input/mg-input.conf.d.ts +2 -1
  85. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.d.ts +2 -0
  86. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +8 -0
  87. package/dist/types/stencil-public-runtime.d.ts +3 -8
  88. package/ide/intellij/web-types.json +1 -1
  89. package/ide/vscode/html-custom-data.json +1 -1
  90. package/loader/cdn.js +1 -3
  91. package/loader/index.cjs.js +1 -3
  92. package/loader/index.es2017.js +1 -3
  93. package/loader/index.js +1 -3
  94. package/package.json +24 -24
  95. package/dist/cjs/index-7bb96ccc.js.map +0 -1
  96. package/dist/cjs/index-8e9b0d9b.js.map +0 -1
  97. package/dist/esm/index-138ea119.js.map +0 -1
  98. package/dist/esm/index-c4faef56.js.map +0 -1
  99. package/dist/esm/polyfills/core-js.js +0 -11
  100. package/dist/esm/polyfills/dom.js +0 -79
  101. package/dist/esm/polyfills/es5-html-element.js +0 -1
  102. package/dist/esm/polyfills/index.js +0 -34
  103. package/dist/esm/polyfills/system.js +0 -6
  104. package/dist/mg-components/p-284c8327.entry.js +0 -2
  105. package/dist/mg-components/p-284c8327.entry.js.map +0 -1
  106. package/dist/mg-components/p-4c68f6ea.js +0 -3
  107. package/dist/mg-components/p-4c68f6ea.js.map +0 -1
  108. package/dist/mg-components/p-e9433a87.js +0 -2
  109. package/dist/mg-components/p-e9433a87.js.map +0 -1
@@ -1,32 +1,32 @@
1
1
  'use strict';
2
2
 
3
- var ae = Object.defineProperty;
4
- var fe = (e, t, s) => t in e ? ae(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
5
- var g = (e, t, s) => (fe(e, typeof t != "symbol" ? t + "" : t, s), s);
6
- const Ne = (e = "", t = 10) => {
3
+ var $e = Object.defineProperty;
4
+ var ue = (e, t, s) => t in e ? $e(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
5
+ var v = (e, t, s) => ue(e, typeof t != "symbol" ? t + "" : t, s);
6
+ const Ce = (e = "", t = 10) => {
7
7
  const s = new Uint8Array(t);
8
8
  crypto.getRandomValues(s);
9
9
  const r = Array.from(s).map((l) => l.toString(16).padStart(2, "0")).join("").slice(0, t);
10
10
  return e !== "" ? `${e}-${r}` : r;
11
11
  };
12
- class Be {
12
+ class He {
13
13
  constructor(t = []) {
14
14
  /**
15
15
  * Available classes
16
16
  */
17
- g(this, "classes");
17
+ v(this, "classes");
18
18
  /**
19
19
  * Add class
20
20
  * @param className - class name to add
21
21
  */
22
- g(this, "add", (t) => {
22
+ v(this, "add", (t) => {
23
23
  this.has(t) || this.classes.push(t);
24
24
  });
25
25
  /**
26
26
  * Delete class
27
27
  * @param className - class name to delete
28
28
  */
29
- g(this, "delete", (t) => {
29
+ v(this, "delete", (t) => {
30
30
  const s = this.classes.indexOf(t);
31
31
  s > -1 && this.classes.splice(s, 1);
32
32
  });
@@ -35,78 +35,78 @@ class Be {
35
35
  * @param className - class name to check
36
36
  * @returns class name is in the list
37
37
  */
38
- g(this, "has", (t) => this.classes.includes(t));
38
+ v(this, "has", (t) => this.classes.includes(t));
39
39
  /**
40
40
  * Join classes seperated by spaces
41
41
  * @returns joined values
42
42
  */
43
- g(this, "join", () => this.classes.join(" "));
43
+ v(this, "join", () => this.classes.join(" "));
44
44
  this.classes = t;
45
45
  }
46
46
  }
47
- const Ue = (e) => Array.isArray(e) && e.every((t) => typeof t == "string"), Ce = (e, t) => t.includes(e == null ? void 0 : e.tagName.toLowerCase()), He = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]), [identifier], mg-button', we = (e) => {
48
- const t = X(e), s = K(e);
47
+ const Pe = (e) => Array.isArray(e) && e.every((t) => typeof t == "string"), Be = (e, t) => t.includes(e == null ? void 0 : e.tagName.toLowerCase()), We = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]), [identifier], mg-button', ze = (e) => {
48
+ const t = Q(e), s = Z(e);
49
49
  return [e, ...t, ...s];
50
- }, X = (e, t = []) => {
50
+ }, Q = (e, t = []) => {
51
51
  if (e.self !== e.top)
52
52
  try {
53
53
  const s = e.parent;
54
- return s ? (t.push(s), X(s, t)) : t;
54
+ return s ? (t.push(s), Q(s, t)) : t;
55
55
  } catch (s) {
56
56
  return console.error("Different hosts between iframes:", s), t;
57
57
  }
58
58
  return t;
59
- }, K = (e, t = []) => {
59
+ }, Z = (e, t = []) => {
60
60
  if (e.frames.length > 0)
61
61
  for (const s of Array.from(e.frames))
62
- t.push(s), K(s, t);
62
+ t.push(s), Z(s, t);
63
63
  return t;
64
- }, Pe = (e) => typeof e == "string" && e.trim() !== "", We = (e) => typeof e == "string" ? e.toLocaleLowerCase().normalize("NFD").replaceAll(/[\u0300-\u036f]/g, "") : e, ze = async (e) => e(), Ge = (e) => {
64
+ }, Ie = (e) => typeof e == "string" && e.trim() !== "", qe = (e) => typeof e == "string" ? e.toLocaleLowerCase().normalize("NFD").replaceAll(/[\u0300-\u036f]/g, "") : e, Ge = async (e) => e(), Qe = (e) => {
65
65
  const t = { value: "2023", pattern: "yyyy" }, s = { value: "12", pattern: "mm" }, r = { value: "24", pattern: "dd" };
66
- return ge([t.value, s.value, r.value].join("-"), e).replace(t.value, t.pattern).replace(s.value, s.pattern).replace(r.value, r.pattern);
67
- }, Xe = (e) => e.toISOString().split("T")[0], de = (e, t, s) => {
68
- const r = e.closest("[lang]"), l = Intl.NumberFormat.supportedLocalesOf(r == null ? void 0 : r.lang), i = l.length > 0 && typeof l[0] == "string" ? l[0] : navigator.language || s, n = i.split("-").shift();
66
+ return ye([t.value, s.value, r.value].join("-"), e, { timeZone: "UTC" }).replace(t.value, t.pattern).replace(s.value, s.pattern).replace(r.value, r.pattern);
67
+ }, Ze = (e) => e.toISOString().split("T")[0], ge = (e, t, s) => {
68
+ const r = e.closest("[lang]"), l = Intl.NumberFormat.supportedLocalesOf(r == null ? void 0 : r.lang), o = l.length > 0 && typeof l[0] == "string" ? l[0] : navigator.language || s, n = o.split("-").shift();
69
69
  return {
70
- locale: i,
70
+ locale: o,
71
71
  messages: t[n] || t[s]
72
72
  };
73
- }, Ke = (e, t, s) => new Intl.NumberFormat(t, { style: "currency", currency: s }).format(e), Qe = (e, t, s = 0) => new Intl.NumberFormat(t, { minimumFractionDigits: s }).format(s > 0 ? Number(e == null ? void 0 : e.toFixed(s)) : e), pe = /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/, ge = (e, t) => typeof e != "string" || e === "" || !pe.test(e) ? "" : new Intl.DateTimeFormat(t).format(new Date(e)), Je = (e, t) => (s) => de(s, e, t);
74
- var ve = Object.defineProperty, he = (e, t) => {
73
+ }, Je = (e, t, s) => new Intl.NumberFormat(t, { style: "currency", currency: s }).format(e), Ye = (e, t, s = 0) => new Intl.NumberFormat(t, { minimumFractionDigits: s }).format(s > 0 ? Number(e == null ? void 0 : e.toFixed(s)) : e), he = /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/, ye = (e, t, s) => typeof e != "string" || e === "" || !he.test(e) ? "" : new Intl.DateTimeFormat(t, s).format(new Date(e)), Ve = (e, t) => (s) => ge(s, e, t);
74
+ var be = Object.defineProperty, Se = (e, t) => {
75
75
  for (var s in t)
76
- ve(e, s, { get: t[s], enumerable: !0 });
77
- }, Se = {};
78
- he(Se, {
79
- err: () => Z,
80
- map: () => ke,
81
- ok: () => D,
82
- unwrap: () => Te,
83
- unwrapErr: () => xe
76
+ be(e, s, { get: t[s], enumerable: !0 });
77
+ }, xe = {};
78
+ Se(xe, {
79
+ err: () => ee,
80
+ map: () => Ee,
81
+ ok: () => N,
82
+ unwrap: () => Ae,
83
+ unwrapErr: () => Le
84
84
  });
85
- var D = (e) => ({
85
+ var N = (e) => ({
86
86
  isOk: !0,
87
87
  isErr: !1,
88
88
  value: e
89
- }), Z = (e) => ({
89
+ }), ee = (e) => ({
90
90
  isOk: !1,
91
91
  isErr: !0,
92
92
  value: e
93
93
  });
94
- function ke(e, t) {
94
+ function Ee(e, t) {
95
95
  if (e.isOk) {
96
96
  const s = t(e.value);
97
- return s instanceof Promise ? s.then((r) => D(r)) : D(s);
97
+ return s instanceof Promise ? s.then((r) => N(r)) : N(s);
98
98
  }
99
99
  if (e.isErr) {
100
100
  const s = e.value;
101
- return Z(s);
101
+ return ee(s);
102
102
  }
103
103
  throw "should never get here";
104
104
  }
105
- var Te = (e) => {
105
+ var Ae = (e) => {
106
106
  if (e.isOk)
107
107
  return e.value;
108
108
  throw e.value;
109
- }, xe = (e) => {
109
+ }, Le = (e) => {
110
110
  if (e.isErr)
111
111
  return e.value;
112
112
  throw e.value;
@@ -361,23 +361,23 @@ const messages = { en, fr };
361
361
  * @param element - element we need to get the language
362
362
  * @returns messages object
363
363
  */
364
- const initLocales = Je(messages, defaultLocale);
364
+ const initLocales = Ve(messages, defaultLocale);
365
365
 
366
366
  exports.Be = Be;
367
367
  exports.Ce = Ce;
368
368
  exports.Ge = Ge;
369
369
  exports.He = He;
370
- exports.Ke = Ke;
371
- exports.Ne = Ne;
370
+ exports.Ie = Ie;
371
+ exports.Je = Je;
372
372
  exports.Pe = Pe;
373
373
  exports.Qe = Qe;
374
- exports.Ue = Ue;
375
374
  exports.We = We;
376
- exports.Xe = Xe;
377
- exports.ge = ge;
375
+ exports.Ye = Ye;
376
+ exports.Ze = Ze;
377
+ exports.he = he;
378
378
  exports.initLocales = initLocales;
379
- exports.pe = pe;
380
- exports.we = we;
379
+ exports.qe = qe;
380
+ exports.ye = ye;
381
381
  exports.ze = ze;
382
382
 
383
- //# sourceMappingURL=index-8e9b0d9b.js.map
383
+ //# sourceMappingURL=index-11b35234.js.map
@@ -0,0 +1 @@
1
+ {"file":"index-11b35234.js","mappings":";;AAAA,IAAI,EAAE,GAAG,MAAM,CAAC,cAAc,CAAC;AAC/B,IAAI,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,UAAU,EAAE,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AACjH,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,IAAI,QAAQ,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;AAC5D,MAAC,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,KAAK;AAC/B,EAAE,MAAM,CAAC,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC;AAC9B,EAAE,MAAM,CAAC,eAAe,CAAC,CA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC1SD,MAAM,aAAa,GAAG,IAAI,CAAC;AAC3B,MAAM,QAAQ,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;AAE5B;;;;;MAKa,WAAW,GAAGA,EAAa,CAAC,QAAQ,EAAE,aAAa;;;;;;;;;;;;;;;;;;;","names":["defineLocales"],"sources":["../stencil-helpers/dist/index.es.js","src/locales/index.ts"],"sourcesContent":["var $e = Object.defineProperty;\nvar ue = (e, t, s) => t in e ? $e(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;\nvar v = (e, t, s) => ue(e, typeof t != \"symbol\" ? t + \"\" : t, s);\nconst Ce = (e = \"\", t = 10) => {\n const s = new Uint8Array(t);\n crypto.getRandomValues(s);\n const r = Array.from(s).map((l) => l.toString(16).padStart(2, \"0\")).join(\"\").slice(0, t);\n return e !== \"\" ? `${e}-${r}` : r;\n};\nclass He {\n constructor(t = []) {\n /**\n * Available classes\n */\n v(this, \"classes\");\n /**\n * Add class\n * @param className - class name to add\n */\n v(this, \"add\", (t) => {\n this.has(t) || this.classes.push(t);\n });\n /**\n * Delete class\n * @param className - class name to delete\n */\n v(this, \"delete\", (t) => {\n const s = this.classes.indexOf(t);\n s > -1 && this.classes.splice(s, 1);\n });\n /**\n * Check if class exist in list\n * @param className - class name to check\n * @returns class name is in the list\n */\n v(this, \"has\", (t) => this.classes.includes(t));\n /**\n * Join classes seperated by spaces\n * @returns joined values\n */\n v(this, \"join\", () => this.classes.join(\" \"));\n this.classes = t;\n }\n}\nconst Pe = (e) => Array.isArray(e) && e.every((t) => typeof t == \"string\"), Be = (e, t) => t.includes(e == null ? void 0 : e.tagName.toLowerCase()), We = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"]), [identifier], mg-button', ze = (e) => {\n const t = Q(e), s = Z(e);\n return [e, ...t, ...s];\n}, Q = (e, t = []) => {\n if (e.self !== e.top)\n try {\n const s = e.parent;\n return s ? (t.push(s), Q(s, t)) : t;\n } catch (s) {\n return console.error(\"Different hosts between iframes:\", s), t;\n }\n return t;\n}, Z = (e, t = []) => {\n if (e.frames.length > 0)\n for (const s of Array.from(e.frames))\n t.push(s), Z(s, t);\n return t;\n}, Ie = (e) => typeof e == \"string\" && e.trim() !== \"\", qe = (e) => typeof e == \"string\" ? e.toLocaleLowerCase().normalize(\"NFD\").replaceAll(/[\\u0300-\\u036f]/g, \"\") : e, Ge = async (e) => e(), J = (e, t) => {\n if (!t)\n return;\n const s = t.split(\"/\");\n return `${e}${s.slice(2, s.length - 1).join(\"-\")}--docs`;\n}, de = (e, t) => {\n if (t)\n return `${e}${t}`;\n}, Y = (e) => {\n let t = e.overview ? `${e.overview}\n\n` : \"\";\n const s = e.props.filter(({ attr: l }) => l !== void 0);\n s.length && (t += `Attributes:\n`, t += s.map(({ attr: l, docs: o }) => `- \\`${l}\\`: ${o}\n`).join(\"\"), t += `\n`);\n const r = e.props.filter(({ attr: l }) => l === void 0);\n return r.length && (t += `Properties:\n`, t += r.map(({ name: l, docs: o }) => `- \\`${l}\\`: ${o}\n`).join(\"\"), t += `\n`), e.methods.length && (t += `Methods:\n`, t += e.methods.map(({ name: l, docs: o }) => `- \\`${l}\\`: ${o}\n`).join(\"\"), t += `\n`), e.events.length && (t += `Events:\n`, t += e.events.map(({ event: l, docs: o }) => `- \\`${l}\\`: ${o}\n`).join(\"\"), t += `\n`), e.listeners.length && (t += `Listeners:\n`, t += e.listeners.map(({ event: l }) => `- \\`${l}\\`\n`).join(\"\"), t += `\n`), e.slots.length && (t += `Slots:\n`, t += e.slots.map(({ name: l, docs: o }) => `- \\`${l}\\`: ${o}\n`).join(\"\"), t += `\n`), t;\n}, D = (e) => `${e.docs}\n\nType: \\`${e.type}\\``, Xe = (e, t, s, r) => ({\n $schema: \"https://json.schemastore.org/web-types\",\n name: e,\n version: t,\n \"description-markup\": \"markdown\",\n contributions: {\n html: {\n elements: s.components.map((l) => {\n const o = J(r, l.filePath);\n return {\n name: l.tag,\n description: Y(l),\n \"doc-url\": o,\n attributes: l.props.filter((n) => n.attr).map((n) => ({\n name: n.attr,\n description: D(n),\n \"doc-url\": o,\n value: {\n type: n.type,\n default: n.default,\n required: n.required\n }\n })),\n js: {\n properties: l.props.map((n) => ({\n name: n.name,\n description: D(n),\n \"doc-url\": o,\n value: {\n type: n.type,\n default: n.default,\n required: n.required\n }\n })),\n events: l.events.map((n) => ({\n name: n.event,\n description: n.docs\n }))\n }\n };\n })\n }\n }\n}), pe = (e, t, s) => [\n { name: \"Storybook\", url: J(e, s) },\n { name: \"Sources\", url: de(t, s) }\n], ve = (e) => {\n if (!e.values.some(({ value: t }) => t === void 0))\n return e.values.map(({ value: t }) => ({ name: t }));\n}, Ke = (e, t, s, r) => ({\n version: e,\n tags: t.components.map((l) => {\n const o = pe(s, r, l.filePath);\n return {\n name: l.tag,\n description: Y(l),\n attributes: l.props.map((n) => ({\n name: n.attr || n.name,\n description: D(n),\n values: ve(n),\n references: o\n })),\n references: o\n };\n }),\n globalAttributes: [],\n valueSets: []\n}), Qe = (e) => {\n const t = { value: \"2023\", pattern: \"yyyy\" }, s = { value: \"12\", pattern: \"mm\" }, r = { value: \"24\", pattern: \"dd\" };\n return ye([t.value, s.value, r.value].join(\"-\"), e, { timeZone: \"UTC\" }).replace(t.value, t.pattern).replace(s.value, s.pattern).replace(r.value, r.pattern);\n}, Ze = (e) => e.toISOString().split(\"T\")[0], ge = (e, t, s) => {\n const r = e.closest(\"[lang]\"), l = Intl.NumberFormat.supportedLocalesOf(r == null ? void 0 : r.lang), o = l.length > 0 && typeof l[0] == \"string\" ? l[0] : navigator.language || s, n = o.split(\"-\").shift();\n return {\n locale: o,\n messages: t[n] || t[s]\n };\n}, Je = (e, t, s) => new Intl.NumberFormat(t, { style: \"currency\", currency: s }).format(e), Ye = (e, t, s = 0) => new Intl.NumberFormat(t, { minimumFractionDigits: s }).format(s > 0 ? Number(e == null ? void 0 : e.toFixed(s)) : e), he = /^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$/, ye = (e, t, s) => typeof e != \"string\" || e === \"\" || !he.test(e) ? \"\" : new Intl.DateTimeFormat(t, s).format(new Date(e)), Ve = (e, t) => (s) => ge(s, e, t);\nvar U = {\n allRenderFn: !1,\n cmpDidLoad: !0,\n cmpDidUnload: !1,\n cmpDidUpdate: !0,\n cmpDidRender: !0,\n cmpWillLoad: !0,\n cmpWillUpdate: !0,\n cmpWillRender: !0,\n connectedCallback: !0,\n disconnectedCallback: !0,\n element: !0,\n event: !0,\n hasRenderFn: !0,\n lifecycle: !0,\n hostListener: !0,\n hostListenerTargetWindow: !0,\n hostListenerTargetDocument: !0,\n hostListenerTargetBody: !0,\n hostListenerTargetParent: !1,\n hostListenerTarget: !0,\n member: !0,\n method: !0,\n mode: !0,\n observeAttribute: !0,\n prop: !0,\n propMutable: !0,\n reflect: !0,\n scoped: !0,\n shadowDom: !0,\n slot: !0,\n cssAnnotations: !0,\n state: !0,\n style: !0,\n formAssociated: !1,\n svg: !0,\n updatable: !0,\n vdomAttribute: !0,\n vdomXlink: !0,\n vdomClass: !0,\n vdomFunctional: !0,\n vdomKey: !0,\n vdomListener: !0,\n vdomRef: !0,\n vdomPropOrAttr: !0,\n vdomRender: !0,\n vdomStyle: !0,\n vdomText: !0,\n watchCallback: !0,\n taskQueue: !0,\n hotModuleReplacement: !1,\n isDebug: !1,\n isDev: !1,\n isTesting: !1,\n hydrateServerSide: !1,\n hydrateClientSide: !1,\n lifecycleDOMEvents: !1,\n lazyLoad: !1,\n profile: !1,\n slotRelocation: !0,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n appendChildSlotFix: !1,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n cloneNodeFix: !1,\n hydratedAttribute: !1,\n hydratedClass: !0,\n // TODO(STENCIL-1305): remove this option\n scriptDataOpts: !1,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n scopedSlotTextContentFix: !1,\n // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field\n shadowDomShim: !1,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n slotChildNodesFix: !1,\n invisiblePrehydration: !0,\n propBoolean: !0,\n propNumber: !0,\n propString: !0,\n constructableCSS: !0,\n cmpShouldUpdate: !0,\n devTools: !1,\n shadowDelegatesFocus: !0,\n initializeNextTick: !1,\n asyncLoading: !1,\n asyncQueue: !1,\n transformTagName: !1,\n attachStyles: !0,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n experimentalSlotFixes: !1\n}, be = Object.defineProperty, Se = (e, t) => {\n for (var s in t)\n be(e, s, { get: t[s], enumerable: !0 });\n}, W = {}, me = \"http://www.w3.org/2000/svg\", Te = \"http://www.w3.org/1999/xhtml\", ke = (e) => e != null, V = (e) => (e = typeof e, e === \"object\" || e === \"function\"), xe = {};\nSe(xe, {\n err: () => ee,\n map: () => Ee,\n ok: () => N,\n unwrap: () => Ae,\n unwrapErr: () => Le\n});\nvar N = (e) => ({\n isOk: !0,\n isErr: !1,\n value: e\n}), ee = (e) => ({\n isOk: !1,\n isErr: !0,\n value: e\n});\nfunction Ee(e, t) {\n if (e.isOk) {\n const s = t(e.value);\n return s instanceof Promise ? s.then((r) => N(r)) : N(s);\n }\n if (e.isErr) {\n const s = e.value;\n return ee(s);\n }\n throw \"should never get here\";\n}\nvar Ae = (e) => {\n if (e.isOk)\n return e.value;\n throw e.value;\n}, Le = (e) => {\n if (e.isErr)\n return e.value;\n throw e.value;\n}, z = \"http://www.w3.org/1999/xlink\", Re = (e, t, ...s) => {\n let r = null, l = null, o = null, n = !1, i = !1;\n const a = [], d = (f) => {\n for (let $ = 0; $ < f.length; $++)\n r = f[$], Array.isArray(r) ? d(r) : r != null && typeof r != \"boolean\" && ((n = !V(r)) && (r = String(r)), n && i ? a[a.length - 1].$text$ += r : a.push(n ? _(null, r) : r), i = n);\n };\n d(s);\n const u = _(e, null);\n return u.$attrs$ = t, a.length > 0 && (u.$children$ = a), u.$key$ = l, u.$name$ = o, u;\n}, _ = (e, t) => {\n const s = {\n $flags$: 0,\n $tag$: e,\n $text$: t,\n $elm$: null,\n $children$: null\n };\n return s.$attrs$ = null, s.$key$ = null, s.$name$ = null, s;\n}, je = {}, Oe = (e) => e && e.$tag$ === je, I = (e, t, s, r, l, o) => {\n if (s !== r) {\n let n = K(e, t), i = t.toLowerCase();\n if (t === \"class\") {\n const a = e.classList, d = q(s), u = q(r);\n a.remove(...d.filter((f) => f && !u.includes(f))), a.add(...u.filter((f) => f && !d.includes(f)));\n } else if (t === \"style\") {\n for (const a in s)\n (!r || r[a] == null) && (a.includes(\"-\") ? e.style.removeProperty(a) : e.style[a] = \"\");\n for (const a in r)\n (!s || r[a] !== s[a]) && (a.includes(\"-\") ? e.style.setProperty(a, r[a]) : e.style[a] = r[a]);\n } else if (t !== \"key\") if (t === \"ref\")\n r && r(e);\n else if (!e.__lookupSetter__(t) && t[0] === \"o\" && t[1] === \"n\") {\n if (t[2] === \"-\" ? t = t.slice(3) : K(B, i) ? t = i.slice(2) : t = i[2] + t.slice(3), s || r) {\n const a = t.endsWith(te);\n t = t.replace(De, \"\"), s && E.rel(e, t, s, a), r && E.ael(e, t, r, a);\n }\n } else {\n const a = V(r);\n if ((n || a && r !== null) && !l)\n try {\n if (e.tagName.includes(\"-\"))\n e[t] = r;\n else {\n const u = r ?? \"\";\n t === \"list\" ? n = !1 : (s == null || e[t] != u) && (e[t] = u);\n }\n } catch {\n }\n let d = !1;\n i !== (i = i.replace(/^xlink\\:?/, \"\")) && (t = i, d = !0), r == null || r === !1 ? (r !== !1 || e.getAttribute(t) === \"\") && (d ? e.removeAttributeNS(z, t) : e.removeAttribute(t)) : (!n || o & 4 || l) && !a && (r = r === !0 ? \"\" : r, d ? e.setAttributeNS(z, t, r) : e.setAttribute(t, r));\n }\n }\n}, Me = /\\s/, q = (e) => e ? e.split(Me) : [], te = \"Capture\", De = new RegExp(te + \"$\"), se = (e, t, s) => {\n const r = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, l = e && e.$attrs$ || W, o = t.$attrs$ || W;\n for (const n of G(Object.keys(l)))\n n in o || I(r, n, l[n], void 0, s, t.$flags$);\n for (const n of G(Object.keys(o)))\n I(r, n, l[n], o[n], s, t.$flags$);\n};\nfunction G(e) {\n return e.includes(\"ref\") ? (\n // we need to sort these to ensure that `'ref'` is the last attr\n [...e.filter((t) => t !== \"ref\"), \"ref\"]\n ) : (\n // no need to sort, return the original array\n e\n );\n}\nvar T, F, x, w = !1, O = !1, C = !1, h = !1, M = (e, t, s, r) => {\n var l;\n const o = t.$children$[s];\n let n = 0, i, a, d;\n if (w || (C = !0, o.$tag$ === \"slot\" && (T && r.classList.add(T + \"-s\"), o.$flags$ |= o.$children$ ? (\n // slot element has fallback content\n // still create an element that \"mocks\" the slot element\n 2\n ) : (\n // slot element does not have fallback content\n // create an html comment we'll use to always reference\n // where actual slot content should sit next to\n 1\n ))), o.$text$ !== null)\n i = o.$elm$ = j.createTextNode(o.$text$);\n else if (o.$flags$ & 1)\n i = o.$elm$ = j.createTextNode(\"\");\n else {\n if (h || (h = o.$tag$ === \"svg\"), i = o.$elm$ = j.createElementNS(\n h ? me : Te,\n o.$flags$ & 2 ? \"slot-fb\" : o.$tag$\n ), h && o.$tag$ === \"foreignObject\" && (h = !1), se(null, o, h), ke(T) && i[\"s-si\"] !== T && i.classList.add(i[\"s-si\"] = T), P(i, r), o.$children$)\n for (n = 0; n < o.$children$.length; ++n)\n a = M(e, o, n, i), a && i.appendChild(a);\n o.$tag$ === \"svg\" ? h = !1 : i.tagName === \"foreignObject\" && (h = !0);\n }\n return i[\"s-hn\"] = x, o.$flags$ & 3 && (i[\"s-sr\"] = !0, i[\"s-cr\"] = F, i[\"s-sn\"] = o.$name$ || \"\", i[\"s-rf\"] = (l = o.$attrs$) == null ? void 0 : l.ref, d = e && e.$children$ && e.$children$[s], d && d.$tag$ === o.$tag$ && e.$elm$ && A(e.$elm$, !1)), i;\n}, A = (e, t) => {\n E.$flags$ |= 1;\n const s = Array.from(e.childNodes);\n if (e[\"s-sr\"] && U.experimentalSlotFixes) {\n let r = e;\n for (; r = r.nextSibling; )\n r && r[\"s-sn\"] === e[\"s-sn\"] && r[\"s-sh\"] === x && s.push(r);\n }\n for (let r = s.length - 1; r >= 0; r--) {\n const l = s[r];\n l[\"s-hn\"] !== x && l[\"s-ol\"] && (m(oe(l), l, H(l)), l[\"s-ol\"].remove(), l[\"s-ol\"] = void 0, l[\"s-sh\"] = void 0, C = !0), t && A(l, t);\n }\n E.$flags$ &= -2;\n}, re = (e, t, s, r, l, o) => {\n let n = e[\"s-cr\"] && e[\"s-cr\"].parentNode || e, i;\n for (n.shadowRoot && n.tagName === x && (n = n.shadowRoot); l <= o; ++l)\n r[l] && (i = M(null, s, l, e), i && (r[l].$elm$ = i, m(n, i, H(t))));\n}, le = (e, t, s) => {\n for (let r = t; r <= s; ++r) {\n const l = e[r];\n if (l) {\n const o = l.$elm$;\n ae(l), o && (O = !0, o[\"s-ol\"] ? o[\"s-ol\"].remove() : A(o, !0), o.remove());\n }\n }\n}, Ne = (e, t, s, r, l = !1) => {\n let o = 0, n = 0, i = 0, a = 0, d = t.length - 1, u = t[0], f = t[d], $ = r.length - 1, c = r[0], p = r[$], b, y;\n for (; o <= d && n <= $; )\n if (u == null)\n u = t[++o];\n else if (f == null)\n f = t[--d];\n else if (c == null)\n c = r[++n];\n else if (p == null)\n p = r[--$];\n else if (R(u, c, l))\n k(u, c, l), u = t[++o], c = r[++n];\n else if (R(f, p, l))\n k(f, p, l), f = t[--d], p = r[--$];\n else if (R(u, p, l))\n (u.$tag$ === \"slot\" || p.$tag$ === \"slot\") && A(u.$elm$.parentNode, !1), k(u, p, l), m(e, u.$elm$, f.$elm$.nextSibling), u = t[++o], p = r[--$];\n else if (R(f, c, l))\n (u.$tag$ === \"slot\" || p.$tag$ === \"slot\") && A(f.$elm$.parentNode, !1), k(f, c, l), m(e, f.$elm$, u.$elm$), f = t[--d], c = r[++n];\n else {\n for (i = -1, a = o; a <= d; ++a)\n if (t[a] && t[a].$key$ !== null && t[a].$key$ === c.$key$) {\n i = a;\n break;\n }\n i >= 0 ? (y = t[i], y.$tag$ !== c.$tag$ ? b = M(t && t[n], s, i, e) : (k(y, c, l), t[i] = void 0, b = y.$elm$), c = r[++n]) : (b = M(t && t[n], s, n, e), c = r[++n]), b && m(oe(u.$elm$), b, H(u.$elm$));\n }\n o > d ? re(\n e,\n r[$ + 1] == null ? null : r[$ + 1].$elm$,\n s,\n r,\n n,\n $\n ) : n > $ && le(t, o, d);\n}, R = (e, t, s = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === \"slot\" ? e.$name$ === t.$name$ : s ? !0 : e.$key$ === t.$key$ : !1, H = (e) => e && e[\"s-ol\"] || e, oe = (e) => (e[\"s-ol\"] ? e[\"s-ol\"] : e).parentNode, k = (e, t, s = !1) => {\n const r = t.$elm$ = e.$elm$, l = e.$children$, o = t.$children$, n = t.$tag$, i = t.$text$;\n let a;\n i === null ? (h = n === \"svg\" ? !0 : n === \"foreignObject\" ? !1 : h, n === \"slot\" && !w || se(e, t, h), l !== null && o !== null ? Ne(r, l, t, o, s) : o !== null ? (e.$text$ !== null && (r.textContent = \"\"), re(r, null, t, o, 0, o.length - 1)) : l !== null && le(l, 0, l.length - 1), h && n === \"svg\" && (h = !1)) : (a = r[\"s-cr\"]) ? a.parentNode.textContent = i : e.$text$ !== i && (r.data = i);\n}, ne = (e) => {\n const t = e.childNodes;\n for (const s of t)\n if (s.nodeType === 1) {\n if (s[\"s-sr\"]) {\n const r = s[\"s-sn\"];\n s.hidden = !1;\n for (const l of t)\n if (l !== s) {\n if (l[\"s-hn\"] !== s[\"s-hn\"] || r !== \"\") {\n if (l.nodeType === 1 && (r === l.getAttribute(\"slot\") || r === l[\"s-sn\"]) || l.nodeType === 3 && r === l[\"s-sn\"]) {\n s.hidden = !0;\n break;\n }\n } else if (l.nodeType === 1 || l.nodeType === 3 && l.textContent.trim() !== \"\") {\n s.hidden = !0;\n break;\n }\n }\n }\n ne(s);\n }\n}, S = [], ie = (e) => {\n let t, s, r;\n for (const l of e.childNodes) {\n if (l[\"s-sr\"] && (t = l[\"s-cr\"]) && t.parentNode) {\n s = t.parentNode.childNodes;\n const o = l[\"s-sn\"];\n for (r = s.length - 1; r >= 0; r--)\n if (t = s[r], !t[\"s-cn\"] && !t[\"s-nr\"] && t[\"s-hn\"] !== l[\"s-hn\"] && !U.experimentalSlotFixes)\n if (X(t, o)) {\n let n = S.find((i) => i.$nodeToRelocate$ === t);\n O = !0, t[\"s-sn\"] = t[\"s-sn\"] || o, n ? (n.$nodeToRelocate$[\"s-sh\"] = l[\"s-hn\"], n.$slotRefNode$ = l) : (t[\"s-sh\"] = l[\"s-hn\"], S.push({\n $slotRefNode$: l,\n $nodeToRelocate$: t\n })), t[\"s-sr\"] && S.map((i) => {\n X(i.$nodeToRelocate$, t[\"s-sn\"]) && (n = S.find((a) => a.$nodeToRelocate$ === t), n && !i.$slotRefNode$ && (i.$slotRefNode$ = n.$slotRefNode$));\n });\n } else S.some((n) => n.$nodeToRelocate$ === t) || S.push({\n $nodeToRelocate$: t\n });\n }\n l.nodeType === 1 && ie(l);\n }\n}, X = (e, t) => e.nodeType === 1 ? e.getAttribute(\"slot\") === null && t === \"\" || e.getAttribute(\"slot\") === t : e[\"s-sn\"] === t ? !0 : t === \"\", ae = (e) => {\n e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(ae);\n}, m = (e, t, s) => {\n const r = e == null ? void 0 : e.insertBefore(t, s);\n return P(t, e), r;\n}, ce = (e) => {\n const t = [];\n return e && t.push(\n ...e[\"s-scs\"] || [],\n e[\"s-si\"],\n e[\"s-sc\"],\n ...ce(e.parentElement)\n ), t;\n}, P = (e, t, s = !1) => {\n var r;\n if (e && t && e.nodeType === 1) {\n const l = new Set(ce(t).filter(Boolean));\n if (l.size && ((r = e.classList) == null || r.add(...e[\"s-scs\"] = [...l]), e[\"s-ol\"] || s))\n for (const o of Array.from(e.childNodes))\n P(o, e, !0);\n }\n}, _e = (e, t, s = !1) => {\n var r, l, o, n, i;\n const a = e.$hostElement$, d = e.$cmpMeta$, u = e.$vnode$ || _(null, null), f = Oe(t) ? t : Re(null, null, t);\n if (x = a.tagName, d.$attrsToReflect$ && (f.$attrs$ = f.$attrs$ || {}, d.$attrsToReflect$.map(\n ([$, c]) => f.$attrs$[c] = a[$]\n )), s && f.$attrs$)\n for (const $ of Object.keys(f.$attrs$))\n a.hasAttribute($) && ![\"key\", \"ref\", \"style\", \"class\"].includes($) && (f.$attrs$[$] = a[$]);\n f.$tag$ = null, f.$flags$ |= 4, e.$vnode$ = f, f.$elm$ = u.$elm$ = a.shadowRoot || a, T = a[\"s-sc\"], w = (d.$flags$ & 1) !== 0, F = a[\"s-cr\"], O = !1, k(u, f, s);\n {\n if (E.$flags$ |= 1, C) {\n ie(f.$elm$);\n for (const $ of S) {\n const c = $.$nodeToRelocate$;\n if (!c[\"s-ol\"]) {\n const p = j.createTextNode(\"\");\n p[\"s-nr\"] = c, m(c.parentNode, c[\"s-ol\"] = p, c);\n }\n }\n for (const $ of S) {\n const c = $.$nodeToRelocate$, p = $.$slotRefNode$;\n if (p) {\n const b = p.parentNode;\n let y = p.nextSibling;\n {\n let L = (r = c[\"s-ol\"]) == null ? void 0 : r.previousSibling;\n for (; L; ) {\n let g = (l = L[\"s-nr\"]) != null ? l : null;\n if (g && g[\"s-sn\"] === c[\"s-sn\"] && b === g.parentNode) {\n for (g = g.nextSibling; g === c || g != null && g[\"s-sr\"]; )\n g = g == null ? void 0 : g.nextSibling;\n if (!g || !g[\"s-nr\"]) {\n y = g;\n break;\n }\n }\n L = L.previousSibling;\n }\n }\n (!y && b !== c.parentNode || c.nextSibling !== y) && c !== y && (!c[\"s-hn\"] && c[\"s-ol\"] && (c[\"s-hn\"] = c[\"s-ol\"].parentNode.nodeName), m(b, c, y), c.nodeType === 1 && (c.hidden = (o = c[\"s-ih\"]) != null ? o : !1)), c && typeof p[\"s-rf\"] == \"function\" && p[\"s-rf\"](c);\n } else\n c.nodeType === 1 && (s && (c[\"s-ih\"] = (n = c.hidden) != null ? n : !1), c.hidden = !0);\n }\n }\n O && ne(f.$elm$), E.$flags$ &= -2, S.length = 0;\n }\n if (U.experimentalScopedSlotChanges && d.$flags$ & 2)\n for (const $ of f.$elm$.childNodes)\n $[\"s-hn\"] !== x && !$[\"s-sh\"] && (s && $[\"s-ih\"] == null && ($[\"s-ih\"] = (i = $.hidden) != null ? i : !1), $.hidden = !0);\n F = void 0;\n}, K = (e, t) => t in e, B = typeof window < \"u\" ? window : {}, j = B.document || { head: {} };\nB.HTMLElement;\nvar E = {\n $flags$: 0,\n $resourcesUrl$: \"\",\n jmp: (e) => e(),\n raf: (e) => requestAnimationFrame(e),\n ael: (e, t, s, r) => e.addEventListener(t, s, r),\n rel: (e, t, s, r) => e.removeEventListener(t, s, r),\n ce: (e, t) => new CustomEvent(e, t)\n};\nconst Fe = (e, t, s) => {\n [null, void 0, \"\", !1].includes(s) || [\"innerHTML\", \"style\"].includes(t) || e.setAttribute(t, [\"object\", \"function\"].includes(typeof s) ? \"/!\\\\ Object props are not rendered in the code example\" : s);\n}, fe = (e, t, s, r, l) => {\n if (t && typeof t == \"string\") {\n const o = document.createElement(t);\n Object.keys(s || {}).forEach((n) => {\n Fe(o, n, s[n]);\n }), r == null || r.forEach((n) => {\n fe(o, n.$tag$, n.$attrs$, n.$children$, n.$text$);\n }), s != null && s.innerHTML && (o.innerHTML = s.innerHTML), e.appendChild(o);\n }\n l && (e.innerHTML = l);\n}, et = (e, t) => {\n const s = {};\n if (typeof e != \"object\")\n throw new Error(\"filterArgs - args isn't an object.\");\n for (const r in e)\n if (!r.startsWith(\"slot\")) {\n const l = e[r], o = r.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase();\n (!t || !Object.keys(t).includes(r) || t[r] !== l) && (s[o] = l);\n }\n return s;\n}, tt = (e, t) => {\n var r, l;\n const s = document.getElementById(\"storybook-root\");\n if (s)\n return (l = document.querySelector(\"[lang]\")) == null || l.setAttribute(\"lang\", ((r = t.globals) == null ? void 0 : r.locale) || \"en\"), _e(\n {\n $ancestorComponent$: void 0,\n $flags$: 0,\n $modeName$: void 0,\n $cmpMeta$: {\n $flags$: 0,\n $tagName$: s.tagName\n },\n $hostElement$: s\n },\n e(t)\n ), s.children[s.children.length - 1];\n}, st = ({ $tag$: e, $attrs$: t, $children$: s, $text$: r }) => {\n const l = document.createElement(\"div\");\n return fe(l, e, t, s, r), l.innerHTML;\n}, rt = ({ disconnect: e, observe: t, takeRecords: s }) => {\n class r {\n constructor(o) {\n /**\n *\n */\n v(this, \"disconnect\", e);\n /**\n *\n */\n v(this, \"observe\", t);\n /**\n *\n */\n v(this, \"takeRecords\", s);\n /**\n *\n */\n v(this, \"cb\");\n this.cb = o;\n }\n }\n return [window, global].forEach((l) => {\n Object.defineProperty(l, \"MutationObserver\", {\n writable: !0,\n configurable: !0,\n value: r\n });\n }), r;\n}, lt = ({ disconnect: e, observe: t }) => {\n class s {\n constructor(l) {\n /**\n *\n */\n v(this, \"disconnect\", e);\n /**\n *\n */\n v(this, \"observe\", t);\n /**\n *\n */\n v(this, \"unobserve\");\n /**\n *\n */\n v(this, \"cb\");\n this.cb = l;\n }\n }\n return [window, global].forEach((r) => {\n Object.defineProperty(r, \"ResizeObserver\", {\n writable: !0,\n configurable: !0,\n value: s\n });\n }), s;\n};\nclass Ue extends Event {\n constructor() {\n super(...arguments);\n /**\n *\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n v(this, \"detail\");\n }\n}\nconst ot = () => {\n class e extends Ue {\n }\n return [window, global].forEach((t) => {\n Object.defineProperty(t, \"SubmitEvent\", {\n writable: !0,\n configurable: !0,\n value: e\n });\n }), e;\n};\nexport {\n He as ClassList,\n Pe as allItemsAreString,\n qe as cleanString,\n Ce as createID,\n he as dateRegExp,\n Ze as dateToString,\n Ve as defineLocales,\n et as filterArgs,\n We as focusableElements,\n Qe as getLocaleDatePattern,\n Q as getParentWindows,\n st as getStoryHTML,\n ze as getWindows,\n Be as isTagName,\n Ie as isValidString,\n Je as localeCurrency,\n ye as localeDate,\n Ye as localeNumber,\n Ge as nextTick,\n rt as setupMutationObserverMock,\n lt as setupResizeObserverMock,\n ot as setupSubmitEventMock,\n tt as stencilWrapper,\n Ke as vsCodeGenerator,\n Xe as webTypesGenerator\n};\n//# sourceMappingURL=index.es.js.map\n","import en from './en/messages.json';\nimport fr from './fr/messages.json';\nimport { defineLocales } from '@mgdis/stencil-helpers';\n\nconst defaultLocale = 'en';\nconst messages = { en, fr };\n\n/**\n * Get Intl object\n * @param element - element we need to get the language\n * @returns messages object\n */\nexport const initLocales = defineLocales(messages, defaultLocale);\n"],"version":3}
@@ -21,10 +21,10 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'mg-components';
24
- const BUILD = /* mg-components */ { allRenderFn: false, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: true, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: true, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: true, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
24
+ const BUILD = /* mg-components */ { allRenderFn: false, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: true, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: true, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: true, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.18.0 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.18.3 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
@@ -465,7 +465,7 @@ var checkSlotFallbackVisibility = false;
465
465
  var checkSlotRelocate = false;
466
466
  var isSvgMode = false;
467
467
  var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
468
- var _a, _b, _c, _d;
468
+ var _a;
469
469
  const newVNode2 = newParentVNode.$children$[childIndex];
470
470
  let i2 = 0;
471
471
  let elm;
@@ -504,11 +504,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
504
504
  elm.classList.add(elm["s-si"] = scopeId);
505
505
  }
506
506
  {
507
- const rootScopeId = ((_a = newParentVNode.$elm$) == null ? void 0 : _a["s-rsc"]) || ((_b = newParentVNode.$elm$) == null ? void 0 : _b["s-si"]) || ((_c = newParentVNode.$elm$) == null ? void 0 : _c["s-sc"]);
508
- if (rootScopeId) {
509
- elm["s-rsc"] = rootScopeId;
510
- !elm.classList.contains(rootScopeId) && elm.classList.add(rootScopeId);
511
- }
507
+ updateElementScopeIds(elm, parentElm);
512
508
  }
513
509
  if (newVNode2.$children$) {
514
510
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
@@ -525,7 +521,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
525
521
  elm["s-sr"] = true;
526
522
  elm["s-cr"] = contentRef;
527
523
  elm["s-sn"] = newVNode2.$name$ || "";
528
- elm["s-rf"] = (_d = newVNode2.$attrs$) == null ? void 0 : _d.ref;
524
+ elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
529
525
  oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
530
526
  if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
531
527
  {
@@ -550,7 +546,7 @@ var putBackInOriginalLocation = (parentElm, recursive) => {
550
546
  for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
551
547
  const childNode = oldSlotChildNodes[i2];
552
548
  if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
553
- parentReferenceNode(childNode).insertBefore(childNode, referenceNode(childNode));
549
+ insertBefore(parentReferenceNode(childNode), childNode, referenceNode(childNode));
554
550
  childNode["s-ol"].remove();
555
551
  childNode["s-ol"] = void 0;
556
552
  childNode["s-sh"] = void 0;
@@ -573,7 +569,7 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
573
569
  childNode = createElm(null, parentVNode, startIdx, parentElm);
574
570
  if (childNode) {
575
571
  vnodes[startIdx].$elm$ = childNode;
576
- containerElm.insertBefore(childNode, referenceNode(before) );
572
+ insertBefore(containerElm, childNode, referenceNode(before) );
577
573
  }
578
574
  }
579
575
  }
@@ -633,7 +629,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
633
629
  putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
634
630
  }
635
631
  patch(oldStartVnode, newEndVnode, isInitialRender);
636
- parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
632
+ insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
637
633
  oldStartVnode = oldCh[++oldStartIdx];
638
634
  newEndVnode = newCh[--newEndIdx];
639
635
  } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
@@ -641,7 +637,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
641
637
  putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
642
638
  }
643
639
  patch(oldEndVnode, newStartVnode, isInitialRender);
644
- parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
640
+ insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
645
641
  oldEndVnode = oldCh[--oldEndIdx];
646
642
  newStartVnode = newCh[++newStartIdx];
647
643
  } else {
@@ -670,7 +666,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
670
666
  }
671
667
  if (node) {
672
668
  {
673
- parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
669
+ insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
674
670
  }
675
671
  }
676
672
  }
@@ -830,6 +826,39 @@ var nullifyVNodeRefs = (vNode) => {
830
826
  vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
831
827
  }
832
828
  };
829
+ var insertBefore = (parent, newNode, reference) => {
830
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
831
+ {
832
+ updateElementScopeIds(newNode, parent);
833
+ }
834
+ return inserted;
835
+ };
836
+ var findScopeIds = (element) => {
837
+ const scopeIds = [];
838
+ if (element) {
839
+ scopeIds.push(
840
+ ...element["s-scs"] || [],
841
+ element["s-si"],
842
+ element["s-sc"],
843
+ ...findScopeIds(element.parentElement)
844
+ );
845
+ }
846
+ return scopeIds;
847
+ };
848
+ var updateElementScopeIds = (element, parent, iterateChildNodes = false) => {
849
+ var _a;
850
+ if (element && parent && element.nodeType === 1 /* ElementNode */) {
851
+ const scopeIds = new Set(findScopeIds(parent).filter(Boolean));
852
+ if (scopeIds.size) {
853
+ (_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] = [...scopeIds]);
854
+ if (element["s-ol"] || iterateChildNodes) {
855
+ for (const childNode of Array.from(element.childNodes)) {
856
+ updateElementScopeIds(childNode, element, true);
857
+ }
858
+ }
859
+ }
860
+ }
861
+ };
833
862
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
834
863
  var _a, _b, _c, _d;
835
864
  const hostElm = hostRef.$hostElement$;
@@ -872,7 +901,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
872
901
  if (!nodeToRelocate["s-ol"]) {
873
902
  const orgLocationNode = doc.createTextNode("");
874
903
  orgLocationNode["s-nr"] = nodeToRelocate;
875
- nodeToRelocate.parentNode.insertBefore(nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
904
+ insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
876
905
  }
877
906
  }
878
907
  for (const relocateData of relocateNodes) {
@@ -903,7 +932,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
903
932
  if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
904
933
  nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
905
934
  }
906
- parentNodeRef.insertBefore(nodeToRelocate, insertBeforeNode);
935
+ insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
907
936
  if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
908
937
  nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
909
938
  }
@@ -948,8 +977,14 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
948
977
  return writeTask(dispatch) ;
949
978
  };
950
979
  var dispatchHooks = (hostRef, isInitialLoad) => {
980
+ const elm = hostRef.$hostElement$;
951
981
  const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
952
982
  const instance = hostRef.$lazyInstance$ ;
983
+ if (!instance) {
984
+ throw new Error(
985
+ `Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
986
+ );
987
+ }
953
988
  let maybePromise;
954
989
  if (isInitialLoad) {
955
990
  {
@@ -1083,12 +1118,20 @@ var safeCall = (instance, method, arg) => {
1083
1118
  }
1084
1119
  return void 0;
1085
1120
  };
1086
- var addHydratedFlag = (elm) => elm.classList.add("hydrated") ;
1121
+ var addHydratedFlag = (elm) => {
1122
+ var _a;
1123
+ return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
1124
+ };
1087
1125
 
1088
1126
  // src/runtime/set-value.ts
1089
1127
  var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1090
1128
  var setValue = (ref, propName, newVal, cmpMeta) => {
1091
1129
  const hostRef = getHostRef(ref);
1130
+ if (!hostRef) {
1131
+ throw new Error(
1132
+ `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
1133
+ );
1134
+ }
1092
1135
  const elm = hostRef.$hostElement$ ;
1093
1136
  const oldVal = hostRef.$instanceValues$.get(propName);
1094
1137
  const flags = hostRef.$flags$;
@@ -1211,11 +1254,16 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1211
1254
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1212
1255
  const bundleId = cmpMeta.$lazyBundleId$;
1213
1256
  if (bundleId) {
1214
- Cstr = loadModule(cmpMeta);
1215
- if (Cstr.then) {
1257
+ const CstrImport = loadModule(cmpMeta);
1258
+ if (CstrImport && "then" in CstrImport) {
1216
1259
  const endLoad = uniqueTime();
1217
- Cstr = await Cstr;
1260
+ Cstr = await CstrImport;
1218
1261
  endLoad();
1262
+ } else {
1263
+ Cstr = CstrImport;
1264
+ }
1265
+ if (!Cstr) {
1266
+ throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
1219
1267
  }
1220
1268
  if (!Cstr.isProxied) {
1221
1269
  {
@@ -1242,9 +1290,10 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1242
1290
  endNewInstance();
1243
1291
  } else {
1244
1292
  Cstr = elm.constructor;
1245
- customElements.whenDefined(cmpMeta.$tagName$).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1293
+ const cmpTag = elm.localName;
1294
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1246
1295
  }
1247
- if (Cstr.style) {
1296
+ if (Cstr && Cstr.style) {
1248
1297
  let style = Cstr.style;
1249
1298
  const scopeId2 = getScopeId(cmpMeta);
1250
1299
  if (!styles.has(scopeId2)) {
@@ -1314,7 +1363,7 @@ var setContentReference = (elm) => {
1314
1363
  ""
1315
1364
  );
1316
1365
  contentRefElm["s-cn"] = true;
1317
- elm.insertBefore(contentRefElm, elm.firstChild);
1366
+ insertBefore(elm, contentRefElm, elm.firstChild);
1318
1367
  };
1319
1368
  var disconnectInstance = (instance) => {
1320
1369
  {
@@ -1459,10 +1508,11 @@ var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) =>
1459
1508
  }
1460
1509
  };
1461
1510
  var hostListenerProxy = (hostRef, methodName) => (ev) => {
1511
+ var _a;
1462
1512
  try {
1463
1513
  {
1464
1514
  if (hostRef.$flags$ & 256 /* isListenReady */) {
1465
- hostRef.$lazyInstance$[methodName](ev);
1515
+ (_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
1466
1516
  } else {
1467
1517
  (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
1468
1518
  }
@@ -1472,8 +1522,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1472
1522
  }
1473
1523
  };
1474
1524
  var getHostListenerTarget = (elm, flags) => {
1475
- if (flags & 8 /* TargetWindow */)
1476
- return win;
1525
+ if (flags & 8 /* TargetWindow */) return win;
1477
1526
  return elm;
1478
1527
  };
1479
1528
  var hostListenerOpts = (flags) => supportsListenerOptions ? {
@@ -1514,6 +1563,9 @@ var cmpModules = /* @__PURE__ */ new Map();
1514
1563
  var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1515
1564
  const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
1516
1565
  const bundleId = cmpMeta.$lazyBundleId$;
1566
+ if (!bundleId) {
1567
+ return void 0;
1568
+ }
1517
1569
  const module = cmpModules.get(bundleId) ;
1518
1570
  if (module) {
1519
1571
  return module[exportName];
@@ -1633,4 +1685,4 @@ exports.promiseResolve = promiseResolve;
1633
1685
  exports.registerInstance = registerInstance;
1634
1686
  exports.setNonce = setNonce;
1635
1687
 
1636
- //# sourceMappingURL=index-7bb96ccc.js.map
1688
+ //# sourceMappingURL=index-3198e64e.js.map