@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,30 +1,30 @@
1
- var ae = Object.defineProperty;
2
- var fe = (e, t, s) => t in e ? ae(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
3
- var g = (e, t, s) => (fe(e, typeof t != "symbol" ? t + "" : t, s), s);
4
- const Ne = (e = "", t = 10) => {
1
+ var $e = Object.defineProperty;
2
+ var ue = (e, t, s) => t in e ? $e(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
3
+ var v = (e, t, s) => ue(e, typeof t != "symbol" ? t + "" : t, s);
4
+ const Ce = (e = "", t = 10) => {
5
5
  const s = new Uint8Array(t);
6
6
  crypto.getRandomValues(s);
7
7
  const r = Array.from(s).map((l) => l.toString(16).padStart(2, "0")).join("").slice(0, t);
8
8
  return e !== "" ? `${e}-${r}` : r;
9
9
  };
10
- class Be {
10
+ class He {
11
11
  constructor(t = []) {
12
12
  /**
13
13
  * Available classes
14
14
  */
15
- g(this, "classes");
15
+ v(this, "classes");
16
16
  /**
17
17
  * Add class
18
18
  * @param className - class name to add
19
19
  */
20
- g(this, "add", (t) => {
20
+ v(this, "add", (t) => {
21
21
  this.has(t) || this.classes.push(t);
22
22
  });
23
23
  /**
24
24
  * Delete class
25
25
  * @param className - class name to delete
26
26
  */
27
- g(this, "delete", (t) => {
27
+ v(this, "delete", (t) => {
28
28
  const s = this.classes.indexOf(t);
29
29
  s > -1 && this.classes.splice(s, 1);
30
30
  });
@@ -33,78 +33,78 @@ class Be {
33
33
  * @param className - class name to check
34
34
  * @returns class name is in the list
35
35
  */
36
- g(this, "has", (t) => this.classes.includes(t));
36
+ v(this, "has", (t) => this.classes.includes(t));
37
37
  /**
38
38
  * Join classes seperated by spaces
39
39
  * @returns joined values
40
40
  */
41
- g(this, "join", () => this.classes.join(" "));
41
+ v(this, "join", () => this.classes.join(" "));
42
42
  this.classes = t;
43
43
  }
44
44
  }
45
- 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) => {
46
- const t = X(e), s = K(e);
45
+ 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) => {
46
+ const t = Q(e), s = Z(e);
47
47
  return [e, ...t, ...s];
48
- }, X = (e, t = []) => {
48
+ }, Q = (e, t = []) => {
49
49
  if (e.self !== e.top)
50
50
  try {
51
51
  const s = e.parent;
52
- return s ? (t.push(s), X(s, t)) : t;
52
+ return s ? (t.push(s), Q(s, t)) : t;
53
53
  } catch (s) {
54
54
  return console.error("Different hosts between iframes:", s), t;
55
55
  }
56
56
  return t;
57
- }, K = (e, t = []) => {
57
+ }, Z = (e, t = []) => {
58
58
  if (e.frames.length > 0)
59
59
  for (const s of Array.from(e.frames))
60
- t.push(s), K(s, t);
60
+ t.push(s), Z(s, t);
61
61
  return t;
62
- }, 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) => {
62
+ }, 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) => {
63
63
  const t = { value: "2023", pattern: "yyyy" }, s = { value: "12", pattern: "mm" }, r = { value: "24", pattern: "dd" };
64
- 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);
65
- }, Xe = (e) => e.toISOString().split("T")[0], de = (e, t, s) => {
66
- 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();
64
+ 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);
65
+ }, Ze = (e) => e.toISOString().split("T")[0], ge = (e, t, s) => {
66
+ 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();
67
67
  return {
68
- locale: i,
68
+ locale: o,
69
69
  messages: t[n] || t[s]
70
70
  };
71
- }, 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);
72
- var ve = Object.defineProperty, he = (e, t) => {
71
+ }, 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);
72
+ var be = Object.defineProperty, Se = (e, t) => {
73
73
  for (var s in t)
74
- ve(e, s, { get: t[s], enumerable: !0 });
75
- }, Se = {};
76
- he(Se, {
77
- err: () => Z,
78
- map: () => ke,
79
- ok: () => D,
80
- unwrap: () => Te,
81
- unwrapErr: () => xe
74
+ be(e, s, { get: t[s], enumerable: !0 });
75
+ }, xe = {};
76
+ Se(xe, {
77
+ err: () => ee,
78
+ map: () => Ee,
79
+ ok: () => N,
80
+ unwrap: () => Ae,
81
+ unwrapErr: () => Le
82
82
  });
83
- var D = (e) => ({
83
+ var N = (e) => ({
84
84
  isOk: !0,
85
85
  isErr: !1,
86
86
  value: e
87
- }), Z = (e) => ({
87
+ }), ee = (e) => ({
88
88
  isOk: !1,
89
89
  isErr: !0,
90
90
  value: e
91
91
  });
92
- function ke(e, t) {
92
+ function Ee(e, t) {
93
93
  if (e.isOk) {
94
94
  const s = t(e.value);
95
- return s instanceof Promise ? s.then((r) => D(r)) : D(s);
95
+ return s instanceof Promise ? s.then((r) => N(r)) : N(s);
96
96
  }
97
97
  if (e.isErr) {
98
98
  const s = e.value;
99
- return Z(s);
99
+ return ee(s);
100
100
  }
101
101
  throw "should never get here";
102
102
  }
103
- var Te = (e) => {
103
+ var Ae = (e) => {
104
104
  if (e.isOk)
105
105
  return e.value;
106
106
  throw e.value;
107
- }, xe = (e) => {
107
+ }, Le = (e) => {
108
108
  if (e.isErr)
109
109
  return e.value;
110
110
  throw e.value;
@@ -359,8 +359,8 @@ const messages = { en, fr };
359
359
  * @param element - element we need to get the language
360
360
  * @returns messages object
361
361
  */
362
- const initLocales = Je(messages, defaultLocale);
362
+ const initLocales = Ve(messages, defaultLocale);
363
363
 
364
- export { Be as B, Ce as C, Ge as G, He as H, Ke as K, Ne as N, Pe as P, Qe as Q, Ue as U, We as W, Xe as X, ge as g, initLocales as i, pe as p, we as w, ze as z };
364
+ export { Be as B, Ce as C, Ge as G, He as H, Ie as I, Je as J, Pe as P, Qe as Q, We as W, Ye as Y, Ze as Z, he as h, initLocales as i, qe as q, ye as y, ze as z };
365
365
 
366
- //# sourceMappingURL=index-138ea119.js.map
366
+ //# sourceMappingURL=index-00abd8c1.js.map
@@ -0,0 +1 @@
1
+ {"file":"index-00abd8c1.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,CAAC,CAAC,CAAC;AAC5B,EAAE,MAAM,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC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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}
@@ -1,8 +1,8 @@
1
1
  const NAMESPACE = 'mg-components';
2
- 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 };
2
+ 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 };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.18.0 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.18.3 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
@@ -443,7 +443,7 @@ var checkSlotFallbackVisibility = false;
443
443
  var checkSlotRelocate = false;
444
444
  var isSvgMode = false;
445
445
  var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
446
- var _a, _b, _c, _d;
446
+ var _a;
447
447
  const newVNode2 = newParentVNode.$children$[childIndex];
448
448
  let i2 = 0;
449
449
  let elm;
@@ -482,11 +482,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
482
482
  elm.classList.add(elm["s-si"] = scopeId);
483
483
  }
484
484
  {
485
- 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"]);
486
- if (rootScopeId) {
487
- elm["s-rsc"] = rootScopeId;
488
- !elm.classList.contains(rootScopeId) && elm.classList.add(rootScopeId);
489
- }
485
+ updateElementScopeIds(elm, parentElm);
490
486
  }
491
487
  if (newVNode2.$children$) {
492
488
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
@@ -503,7 +499,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
503
499
  elm["s-sr"] = true;
504
500
  elm["s-cr"] = contentRef;
505
501
  elm["s-sn"] = newVNode2.$name$ || "";
506
- elm["s-rf"] = (_d = newVNode2.$attrs$) == null ? void 0 : _d.ref;
502
+ elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
507
503
  oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
508
504
  if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
509
505
  {
@@ -528,7 +524,7 @@ var putBackInOriginalLocation = (parentElm, recursive) => {
528
524
  for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
529
525
  const childNode = oldSlotChildNodes[i2];
530
526
  if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
531
- parentReferenceNode(childNode).insertBefore(childNode, referenceNode(childNode));
527
+ insertBefore(parentReferenceNode(childNode), childNode, referenceNode(childNode));
532
528
  childNode["s-ol"].remove();
533
529
  childNode["s-ol"] = void 0;
534
530
  childNode["s-sh"] = void 0;
@@ -551,7 +547,7 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
551
547
  childNode = createElm(null, parentVNode, startIdx, parentElm);
552
548
  if (childNode) {
553
549
  vnodes[startIdx].$elm$ = childNode;
554
- containerElm.insertBefore(childNode, referenceNode(before) );
550
+ insertBefore(containerElm, childNode, referenceNode(before) );
555
551
  }
556
552
  }
557
553
  }
@@ -611,7 +607,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
611
607
  putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
612
608
  }
613
609
  patch(oldStartVnode, newEndVnode, isInitialRender);
614
- parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
610
+ insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
615
611
  oldStartVnode = oldCh[++oldStartIdx];
616
612
  newEndVnode = newCh[--newEndIdx];
617
613
  } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
@@ -619,7 +615,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
619
615
  putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
620
616
  }
621
617
  patch(oldEndVnode, newStartVnode, isInitialRender);
622
- parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
618
+ insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
623
619
  oldEndVnode = oldCh[--oldEndIdx];
624
620
  newStartVnode = newCh[++newStartIdx];
625
621
  } else {
@@ -648,7 +644,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
648
644
  }
649
645
  if (node) {
650
646
  {
651
- parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
647
+ insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
652
648
  }
653
649
  }
654
650
  }
@@ -808,6 +804,39 @@ var nullifyVNodeRefs = (vNode) => {
808
804
  vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
809
805
  }
810
806
  };
807
+ var insertBefore = (parent, newNode, reference) => {
808
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
809
+ {
810
+ updateElementScopeIds(newNode, parent);
811
+ }
812
+ return inserted;
813
+ };
814
+ var findScopeIds = (element) => {
815
+ const scopeIds = [];
816
+ if (element) {
817
+ scopeIds.push(
818
+ ...element["s-scs"] || [],
819
+ element["s-si"],
820
+ element["s-sc"],
821
+ ...findScopeIds(element.parentElement)
822
+ );
823
+ }
824
+ return scopeIds;
825
+ };
826
+ var updateElementScopeIds = (element, parent, iterateChildNodes = false) => {
827
+ var _a;
828
+ if (element && parent && element.nodeType === 1 /* ElementNode */) {
829
+ const scopeIds = new Set(findScopeIds(parent).filter(Boolean));
830
+ if (scopeIds.size) {
831
+ (_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] = [...scopeIds]);
832
+ if (element["s-ol"] || iterateChildNodes) {
833
+ for (const childNode of Array.from(element.childNodes)) {
834
+ updateElementScopeIds(childNode, element, true);
835
+ }
836
+ }
837
+ }
838
+ }
839
+ };
811
840
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
812
841
  var _a, _b, _c, _d;
813
842
  const hostElm = hostRef.$hostElement$;
@@ -850,7 +879,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
850
879
  if (!nodeToRelocate["s-ol"]) {
851
880
  const orgLocationNode = doc.createTextNode("");
852
881
  orgLocationNode["s-nr"] = nodeToRelocate;
853
- nodeToRelocate.parentNode.insertBefore(nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
882
+ insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
854
883
  }
855
884
  }
856
885
  for (const relocateData of relocateNodes) {
@@ -881,7 +910,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
881
910
  if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
882
911
  nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
883
912
  }
884
- parentNodeRef.insertBefore(nodeToRelocate, insertBeforeNode);
913
+ insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
885
914
  if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
886
915
  nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
887
916
  }
@@ -926,8 +955,14 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
926
955
  return writeTask(dispatch) ;
927
956
  };
928
957
  var dispatchHooks = (hostRef, isInitialLoad) => {
958
+ const elm = hostRef.$hostElement$;
929
959
  const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
930
960
  const instance = hostRef.$lazyInstance$ ;
961
+ if (!instance) {
962
+ throw new Error(
963
+ `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`
964
+ );
965
+ }
931
966
  let maybePromise;
932
967
  if (isInitialLoad) {
933
968
  {
@@ -1061,12 +1096,20 @@ var safeCall = (instance, method, arg) => {
1061
1096
  }
1062
1097
  return void 0;
1063
1098
  };
1064
- var addHydratedFlag = (elm) => elm.classList.add("hydrated") ;
1099
+ var addHydratedFlag = (elm) => {
1100
+ var _a;
1101
+ return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
1102
+ };
1065
1103
 
1066
1104
  // src/runtime/set-value.ts
1067
1105
  var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1068
1106
  var setValue = (ref, propName, newVal, cmpMeta) => {
1069
1107
  const hostRef = getHostRef(ref);
1108
+ if (!hostRef) {
1109
+ throw new Error(
1110
+ `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).`
1111
+ );
1112
+ }
1070
1113
  const elm = hostRef.$hostElement$ ;
1071
1114
  const oldVal = hostRef.$instanceValues$.get(propName);
1072
1115
  const flags = hostRef.$flags$;
@@ -1189,11 +1232,16 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1189
1232
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1190
1233
  const bundleId = cmpMeta.$lazyBundleId$;
1191
1234
  if (bundleId) {
1192
- Cstr = loadModule(cmpMeta);
1193
- if (Cstr.then) {
1235
+ const CstrImport = loadModule(cmpMeta);
1236
+ if (CstrImport && "then" in CstrImport) {
1194
1237
  const endLoad = uniqueTime();
1195
- Cstr = await Cstr;
1238
+ Cstr = await CstrImport;
1196
1239
  endLoad();
1240
+ } else {
1241
+ Cstr = CstrImport;
1242
+ }
1243
+ if (!Cstr) {
1244
+ throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
1197
1245
  }
1198
1246
  if (!Cstr.isProxied) {
1199
1247
  {
@@ -1220,9 +1268,10 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1220
1268
  endNewInstance();
1221
1269
  } else {
1222
1270
  Cstr = elm.constructor;
1223
- customElements.whenDefined(cmpMeta.$tagName$).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1271
+ const cmpTag = elm.localName;
1272
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1224
1273
  }
1225
- if (Cstr.style) {
1274
+ if (Cstr && Cstr.style) {
1226
1275
  let style = Cstr.style;
1227
1276
  const scopeId2 = getScopeId(cmpMeta);
1228
1277
  if (!styles.has(scopeId2)) {
@@ -1292,7 +1341,7 @@ var setContentReference = (elm) => {
1292
1341
  ""
1293
1342
  );
1294
1343
  contentRefElm["s-cn"] = true;
1295
- elm.insertBefore(contentRefElm, elm.firstChild);
1344
+ insertBefore(elm, contentRefElm, elm.firstChild);
1296
1345
  };
1297
1346
  var disconnectInstance = (instance) => {
1298
1347
  {
@@ -1437,10 +1486,11 @@ var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) =>
1437
1486
  }
1438
1487
  };
1439
1488
  var hostListenerProxy = (hostRef, methodName) => (ev) => {
1489
+ var _a;
1440
1490
  try {
1441
1491
  {
1442
1492
  if (hostRef.$flags$ & 256 /* isListenReady */) {
1443
- hostRef.$lazyInstance$[methodName](ev);
1493
+ (_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
1444
1494
  } else {
1445
1495
  (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
1446
1496
  }
@@ -1450,8 +1500,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1450
1500
  }
1451
1501
  };
1452
1502
  var getHostListenerTarget = (elm, flags) => {
1453
- if (flags & 8 /* TargetWindow */)
1454
- return win;
1503
+ if (flags & 8 /* TargetWindow */) return win;
1455
1504
  return elm;
1456
1505
  };
1457
1506
  var hostListenerOpts = (flags) => supportsListenerOptions ? {
@@ -1492,6 +1541,9 @@ var cmpModules = /* @__PURE__ */ new Map();
1492
1541
  var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1493
1542
  const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
1494
1543
  const bundleId = cmpMeta.$lazyBundleId$;
1544
+ if (!bundleId) {
1545
+ return void 0;
1546
+ }
1495
1547
  const module = cmpModules.get(bundleId) ;
1496
1548
  if (module) {
1497
1549
  return module[exportName];
@@ -1604,4 +1656,4 @@ var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
1604
1656
 
1605
1657
  export { Host as H, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
1606
1658
 
1607
- //# sourceMappingURL=index-c4faef56.js.map
1659
+ //# sourceMappingURL=index-99317ec3.js.map