@mgdis/mg-components 6.9.0 → 6.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/events.utils-D5SAtkpQ.js +28 -0
- package/dist/cjs/events.utils-D5SAtkpQ.js.map +1 -0
- package/dist/cjs/index-CATFkm3O.js +4 -0
- package/dist/cjs/{index-CTU2m-sy.js → index-CL_COdxv.js} +20 -6
- package/dist/cjs/{index-CTU2m-sy.js.map → index-CL_COdxv.js.map} +1 -1
- package/dist/cjs/index.es-DaPqByCe.js +250 -0
- package/dist/cjs/index.es-DaPqByCe.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mg-action-more_37.cjs.entry.js +1929 -1913
- package/dist/cjs/mg-action-more_37.cjs.entry.js.map +1 -1
- package/dist/cjs/mg-alert.cjs.entry.js +7 -7
- package/dist/cjs/mg-components.cjs.js +1 -1
- package/dist/cjs/mg-input-combobox.cjs.entry.js +774 -0
- package/dist/cjs/mg-input-combobox.cjs.entry.js.map +1 -0
- package/dist/cjs/mg-input-combobox.entry.cjs.js.map +1 -0
- package/dist/cjs/mg-input-rich-text-editor.cjs.entry.js +16 -14
- package/dist/cjs/mg-input-rich-text-editor.cjs.entry.js.map +1 -1
- package/dist/cjs/mg-input-rich-text-editor.entry.cjs.js.map +1 -1
- package/dist/cjs/mg-loader.cjs.entry.js +5 -5
- package/dist/cjs/mg-progress.cjs.entry.js +11 -11
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/atoms/mg-button/mg-button.js +3 -2
- package/dist/collection/components/atoms/mg-button/mg-button.js.map +1 -1
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.conf.js +0 -1
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.conf.js.map +1 -1
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +38 -68
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.conf.js +2 -0
- package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.conf.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.js +1443 -0
- package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.js.map +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +2 -2
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/editor/editor.scss +1 -0
- package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.js +3 -3
- package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +1 -1
- package/dist/collection/components/molecules/menus/mg-menu/mg-menu.js +2 -2
- package/dist/collection/components/molecules/menus/mg-menu/mg-menu.js.map +1 -1
- package/dist/collection/components/molecules/menus/mg-menu-item/mg-menu-item.js +3 -3
- package/dist/collection/components/molecules/menus/mg-menu-item/mg-menu-item.js.map +1 -1
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +2 -2
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.js.map +1 -1
- package/dist/collection/components/molecules/mg-alert/mg-alert.js +1 -1
- package/dist/collection/components/molecules/mg-details/mg-details.js +1 -1
- package/dist/collection/components/molecules/mg-form/mg-form.js +1 -1
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +1 -1
- package/dist/collection/components/molecules/mg-loader/mg-loader.js +1 -1
- package/dist/collection/components/molecules/mg-message/mg-message.js +2 -2
- package/dist/collection/components/molecules/mg-modal/mg-modal.js +2 -2
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +3 -3
- package/dist/collection/components/molecules/mg-panel/mg-panel.js +1 -1
- package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js +1 -1
- package/dist/collection/components/molecules/mg-popover/mg-popover.js +53 -129
- package/dist/collection/components/molecules/mg-popover/mg-popover.js.map +1 -1
- package/dist/collection/components/molecules/mg-progress/mg-progress.js +1 -1
- package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +1 -1
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +6 -5
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js.map +1 -1
- package/dist/collection/locales/en/messages.json +8 -1
- package/dist/collection/locales/fr/messages.json +8 -1
- package/dist/collection/utils/behaviors.utils.js +3 -3
- package/dist/collection/utils/behaviors.utils.js.map +1 -1
- package/dist/collection/utils/events.utils.js +22 -0
- package/dist/collection/utils/events.utils.js.map +1 -0
- package/dist/components/events.utils.js +26 -0
- package/dist/components/events.utils.js.map +1 -0
- package/dist/components/index.es.js +129 -36
- package/dist/components/index.es.js.map +1 -1
- package/dist/components/index2.js +18 -4
- package/dist/components/index2.js.map +1 -1
- package/dist/components/mg-action-more.js +8 -8
- package/dist/components/mg-action-more.js.map +1 -1
- package/dist/components/mg-alert.js +6 -6
- package/dist/components/mg-badge2.js +6 -6
- package/dist/components/mg-button2.js +9 -8
- package/dist/components/mg-button2.js.map +1 -1
- package/dist/components/mg-character-left2.js +4 -4
- package/dist/components/mg-details.js +4 -4
- package/dist/components/mg-details.js.map +1 -1
- package/dist/components/mg-form.js +8 -8
- package/dist/components/mg-icon2.js +6 -6
- package/dist/components/mg-illustrated-message.js +6 -6
- package/dist/components/mg-input-checkbox.js +9 -9
- package/dist/components/mg-input-combobox.d.ts +11 -0
- package/dist/components/mg-input-combobox.js +897 -0
- package/dist/components/mg-input-combobox.js.map +1 -0
- package/dist/components/mg-input-date.js +18 -18
- package/dist/components/mg-input-date.js.map +1 -1
- package/dist/components/mg-input-numeric.js +16 -16
- package/dist/components/mg-input-numeric.js.map +1 -1
- package/dist/components/mg-input-password.js +5 -5
- package/dist/components/mg-input-password.js.map +1 -1
- package/dist/components/mg-input-radio.js +8 -8
- package/dist/components/mg-input-rich-text-editor.js +15 -13
- package/dist/components/mg-input-rich-text-editor.js.map +1 -1
- package/dist/components/mg-input-select2.js +9 -9
- package/dist/components/mg-input-select2.js.map +1 -1
- package/dist/components/mg-input-text2.js +11 -11
- package/dist/components/mg-input-text2.js.map +1 -1
- package/dist/components/mg-input-textarea.js +9 -9
- package/dist/components/mg-input-textarea.js.map +1 -1
- package/dist/components/mg-input-title2.js +4 -4
- package/dist/components/mg-input-toggle.js +7 -7
- package/dist/components/mg-input2.js +8 -8
- package/dist/components/mg-item-more2.js +12 -12
- package/dist/components/mg-item-more2.js.map +1 -1
- package/dist/components/mg-loader.js +1 -70
- package/dist/components/mg-loader.js.map +1 -1
- package/dist/components/mg-loader2.js +75 -0
- package/dist/components/mg-loader2.js.map +1 -0
- package/dist/components/mg-menu-item2.js +13 -13
- package/dist/components/mg-menu-item2.js.map +1 -1
- package/dist/components/mg-message2.js +6 -6
- package/dist/components/mg-modal.js +10 -10
- package/dist/components/mg-pagination2.js +9 -9
- package/dist/components/mg-panel.js +10 -10
- package/dist/components/mg-popover-content2.js +5 -5
- package/dist/components/mg-popover-content2.js.map +1 -1
- package/dist/components/mg-popover2.js +54 -128
- package/dist/components/mg-popover2.js.map +1 -1
- package/dist/components/mg-progress.js +11 -11
- package/dist/components/mg-skip-links.js +3 -3
- package/dist/components/mg-table.js +6 -6
- package/dist/components/mg-tabs.js +18 -17
- package/dist/components/mg-tabs.js.map +1 -1
- package/dist/components/mg-tag.js +4 -4
- package/dist/components/mg-tooltip-content2.js +1 -1
- package/dist/components/mg-tooltip-content2.js.map +1 -1
- package/dist/components/mg-tooltip2.js +42 -71
- package/dist/components/mg-tooltip2.js.map +1 -1
- package/dist/components/popper.js +1793 -0
- package/dist/components/popper.js.map +1 -0
- package/dist/esm/events.utils-yMGqY8YG.js +26 -0
- package/dist/esm/events.utils-yMGqY8YG.js.map +1 -0
- package/dist/esm/index-CAuxALt5.js +4 -0
- package/dist/esm/{index-SQlkEaXW.js → index-DALWFL9i.js} +20 -6
- package/dist/esm/{index-SQlkEaXW.js.map → index-DALWFL9i.js.map} +1 -1
- package/dist/esm/index.es-hNwGkhG6.js +223 -0
- package/dist/esm/index.es-hNwGkhG6.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mg-action-more_37.entry.js +1930 -1914
- package/dist/esm/mg-action-more_37.entry.js.map +1 -1
- package/dist/esm/mg-alert.entry.js +7 -7
- package/dist/esm/mg-components.js +1 -1
- package/dist/esm/mg-input-combobox.entry.js +772 -0
- package/dist/esm/mg-input-combobox.entry.js.map +1 -0
- package/dist/esm/mg-input-rich-text-editor.entry.js +17 -15
- package/dist/esm/mg-input-rich-text-editor.entry.js.map +1 -1
- package/dist/esm/{mg-input.conf-BtkqaBXm.js → mg-input.conf-CNgv8hc5.js} +3 -3
- package/dist/esm/{mg-input.conf-BtkqaBXm.js.map → mg-input.conf-CNgv8hc5.js.map} +1 -1
- package/dist/esm/mg-loader.entry.js +5 -5
- package/dist/esm/mg-progress.entry.js +11 -11
- package/dist/mg-components/locales/en/messages.json +8 -1
- package/dist/mg-components/locales/fr/messages.json +8 -1
- package/dist/mg-components/mg-components.esm.js +1 -1
- package/dist/mg-components/mg-input-combobox.entry.esm.js.map +1 -0
- package/dist/mg-components/mg-input-rich-text-editor.entry.esm.js.map +1 -1
- package/dist/mg-components/p-352cfc01.entry.js +2 -0
- package/dist/mg-components/{p-680948e3.entry.js.map → p-352cfc01.entry.js.map} +1 -1
- package/dist/mg-components/p-68f7de47.entry.js +2 -0
- package/dist/mg-components/p-68f7de47.entry.js.map +1 -0
- package/dist/mg-components/p-CNgv8hc5.js +2 -0
- package/dist/mg-components/{p-BtkqaBXm.js.map → p-CNgv8hc5.js.map} +1 -1
- package/dist/mg-components/p-Cg3R_y_o.js +2 -0
- package/dist/mg-components/{p-CqGbLOnN.js.map → p-Cg3R_y_o.js.map} +1 -1
- package/dist/mg-components/p-a52a168c.entry.js +2 -0
- package/dist/mg-components/{p-9acc6504.entry.js.map → p-a52a168c.entry.js.map} +1 -1
- package/dist/mg-components/{p-583b3769.entry.js → p-bf5de898.entry.js} +2 -2
- package/dist/mg-components/p-dcefa0b0.entry.js +2 -0
- package/dist/mg-components/p-dcefa0b0.entry.js.map +1 -0
- package/dist/mg-components/{p-650d6986.entry.js → p-e33557f9.entry.js} +3 -3
- package/dist/mg-components/p-e33557f9.entry.js.map +1 -0
- package/dist/mg-components/p-hNwGkhG6.js +2 -0
- package/dist/mg-components/p-hNwGkhG6.js.map +1 -0
- package/dist/mg-components/p-yMGqY8YG.js +2 -0
- package/dist/mg-components/p-yMGqY8YG.js.map +1 -0
- package/dist/types/components/atoms/mg-tooltip/mg-tooltip.conf.d.ts +0 -6
- package/dist/types/components/atoms/mg-tooltip/mg-tooltip.d.ts +6 -7
- package/dist/types/components/molecules/inputs/mg-input-combobox/mg-input-combobox.conf.d.ts +24 -0
- package/dist/types/components/molecules/inputs/mg-input-combobox/mg-input-combobox.d.ts +340 -0
- package/dist/types/components/molecules/mg-popover/mg-popover.d.ts +9 -27
- package/dist/types/components.d.ts +253 -10
- package/dist/types/utils/events.utils.d.ts +4 -0
- package/ide/intellij/web-types.json +400 -1
- package/ide/vscode/html-custom-data.json +332 -0
- package/package.json +15 -15
- package/dist/cjs/index.es-jXqiN1uw.js +0 -152
- package/dist/cjs/index.es-jXqiN1uw.js.map +0 -1
- package/dist/collection/components/molecules/mg-popover/mg-popover.conf.js +0 -2
- package/dist/collection/components/molecules/mg-popover/mg-popover.conf.js.map +0 -1
- package/dist/collection/utils/floating-ui.utils.js +0 -30
- package/dist/collection/utils/floating-ui.utils.js.map +0 -1
- package/dist/components/floating-ui.utils.js +0 -1677
- package/dist/components/floating-ui.utils.js.map +0 -1
- package/dist/esm/index.es-DDBtzymI.js +0 -130
- package/dist/esm/index.es-DDBtzymI.js.map +0 -1
- package/dist/mg-components/p-650d6986.entry.js.map +0 -1
- package/dist/mg-components/p-680948e3.entry.js +0 -2
- package/dist/mg-components/p-9acc6504.entry.js +0 -2
- package/dist/mg-components/p-BtkqaBXm.js +0 -2
- package/dist/mg-components/p-CqGbLOnN.js +0 -2
- package/dist/mg-components/p-DDBtzymI.js +0 -2
- package/dist/mg-components/p-DDBtzymI.js.map +0 -1
- package/dist/mg-components/p-c0fb6f62.entry.js +0 -2
- package/dist/mg-components/p-c0fb6f62.entry.js.map +0 -1
- package/dist/types/components/molecules/mg-popover/mg-popover.conf.d.ts +0 -6
- package/dist/types/utils/floating-ui.utils.d.ts +0 -20
- /package/dist/mg-components/{p-583b3769.entry.js.map → p-bf5de898.entry.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"index.es.js","mappings":"AAAA,IAAI,EAAE,GAAG,MAAM,CAAC,cAAc;AAI9B,IAAI,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,UAAU,EAAE,IAAE,EAAE,YAAY,EAAE,IAAE,EAAE,QAAQ,EAAE,IAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;AAC7G,IAAC,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,IAAI,QAAQ,GAAG,CAAC,GAAG,EAAE,GAAG,CAA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AAK,EAAE,SAAS;AAClB,EAAE,qBAAqB,EAAE,CAAC;AAC1B,EAAE,qBAAqB,EAAE;AACzB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,CAAC,KAAK,IAAI,IAAI,CAAC,YAAY,CAAC,CAAC,EAAE;AAC7E,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,IAAI,EAAE,CAAC;AACT,EAAE,WAAW,EAAE,CAAC;AAChB,EAAE,qBAAqB,EAAE,CAAC;AAC1B,EAAE,qBAAqB,EAAE;AACzB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,+CAA+C,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,OAAO,CAAC,IAAI,QAAQ,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,EAAE,GAAG,IAAI,IAAI,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;;;;","names":[],"sources":["../stencil-helpers/dist/index.es.js"],"sourcesContent":["var Re = Object.defineProperty;\nvar ne = (e) => {\n throw TypeError(e);\n};\nvar ze = (e, t, r) => t in e ? Re(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;\nvar d = (e, t, r) => ze(e, typeof t != \"symbol\" ? t + \"\" : t, r), Ne = (e, t, r) => t.has(e) || ne(\"Cannot \" + r);\nvar O = (e, t, r) => (Ne(e, t, \"read from private field\"), r ? r.call(e) : t.get(e)), G = (e, t, r) => t.has(e) ? ne(\"Cannot add the same private member more than once\") : t instanceof WeakSet ? t.add(e) : t.set(e, r);\nconst xt = (e = \"\", t = 10) => {\n const r = new Uint8Array(t);\n crypto.getRandomValues(r);\n const s = Array.from(r).map((n) => n.toString(16).padStart(2, \"0\")).join(\"\").slice(0, t);\n return e !== \"\" ? `${e}-${s}` : s;\n}, Ot = (e) => Le(e) && /^([a-z][a-z0-9]*)(-[a-z0-9]+)*$/.exec(e) !== null;\nclass kt {\n constructor(t = []) {\n /**\n * Available classes\n */\n d(this, \"classes\");\n /**\n * Add class\n * @param className - class name to add\n */\n d(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 d(this, \"delete\", (t) => {\n const r = this.classes.indexOf(t);\n r > -1 && this.classes.splice(r, 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 d(this, \"has\", (t) => this.classes.includes(t));\n /**\n * Join classes seperated by spaces\n * @returns joined values\n */\n d(this, \"join\", () => this.classes.join(\" \"));\n this.classes = t;\n }\n}\nconst At = (e) => Array.isArray(e) && e.every((t) => typeof t == \"string\"), Tt = (e, t) => t.includes(e == null ? void 0 : e.tagName.toLowerCase()), jt = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"]), [identifier], mg-button', Rt = (e) => {\n const t = ge(e), r = pe(e);\n return [e, ...t, ...r];\n}, ge = (e, t = []) => {\n if (e.self !== e.top)\n try {\n const r = e.parent;\n return r ? (t.push(r), ge(r, t)) : t;\n } catch (r) {\n return console.error(\"Different hosts between iframes:\", r), t;\n }\n return t;\n}, pe = (e, t = []) => {\n if (e.frames.length > 0)\n for (const r of Array.from(e.frames))\n t.push(r), pe(r, t);\n return t;\n}, Le = (e) => typeof e == \"string\" && e.trim() !== \"\", zt = (e) => typeof e == \"object\" ? JSON.stringify(e) : `${e}`, Nt = (e) => typeof e == \"number\" && !Number.isNaN(e), Lt = (e) => typeof e == \"string\" ? e.toLocaleLowerCase().normalize(\"NFD\").replaceAll(/[\\u0300-\\u036f]/g, \"\") : e, Mt = async (e) => e();\nvar B = {\n updatable: !0,\n slotRelocation: !0,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n experimentalSlotFixes: !1\n}, Me = Object.defineProperty, Fe = (e, t) => {\n for (var r in t)\n Me(e, r, { get: t[r], enumerable: !0 });\n}, Ie = \"http://www.w3.org/2000/svg\", Ce = \"http://www.w3.org/1999/xhtml\", ie = (e, t) => t in e, oe = \"http://www.w3.org/1999/xlink\", S = typeof window < \"u\" ? window : {}, T = {\n $flags$: 0,\n $resourcesUrl$: \"\",\n jmp: (e) => e(),\n raf: (e) => requestAnimationFrame(e),\n ael: (e, t, r, s) => e.addEventListener(t, r, s),\n rel: (e, t, r, s) => e.removeEventListener(t, r, s),\n ce: (e, t) => new CustomEvent(e, t)\n}, Ue = (e) => e != null && e !== void 0, $e = (e) => (e = typeof e, e === \"object\" || e === \"function\"), De = {};\nFe(De, {\n err: () => de,\n map: () => Ze,\n ok: () => W,\n unwrap: () => qe,\n unwrapErr: () => Be\n});\nvar W = (e) => ({\n isOk: !0,\n isErr: !1,\n value: e\n}), de = (e) => ({\n isOk: !1,\n isErr: !0,\n value: e\n});\nfunction Ze(e, t) {\n if (e.isOk) {\n const r = t(e.value);\n return r instanceof Promise ? r.then((s) => W(s)) : W(r);\n }\n if (e.isErr) {\n const r = e.value;\n return de(r);\n }\n throw \"should never get here\";\n}\nvar qe = (e) => {\n if (e.isOk)\n return e.value;\n throw e.value;\n}, Be = (e) => {\n if (e.isErr)\n return e.value;\n throw e.value;\n}, ye = (e) => {\n const t = le(e, \"childNodes\");\n e.tagName && e.tagName.includes(\"-\") && e[\"s-cr\"] && e.tagName !== \"SLOT-FB\" && be(t, e.tagName).forEach((s) => {\n s.nodeType === 1 && s.tagName === \"SLOT-FB\" && (Pe(s, ee(s), !1).length ? s.hidden = !0 : s.hidden = !1);\n });\n let r = 0;\n for (r = 0; r < t.length; r++) {\n const s = t[r];\n s.nodeType === 1 && le(s, \"childNodes\").length && ye(s);\n }\n}, He = (e) => {\n const t = [];\n for (let r = 0; r < e.length; r++) {\n const s = e[r][\"s-nr\"] || void 0;\n s && s.isConnected && t.push(s);\n }\n return t;\n};\nfunction be(e, t, r) {\n let s = 0, n = [], i;\n for (; s < e.length; s++)\n i = e[s], i[\"s-sr\"] && (!t || i[\"s-hn\"] === t) && r === void 0 && n.push(i), n = [...n, ...be(i.childNodes, t, r)];\n return n;\n}\nvar Pe = (e, t, r = !0) => {\n const s = [];\n (r && e[\"s-sr\"] || !e[\"s-sr\"]) && s.push(e);\n let n = e;\n for (; n = n.nextSibling; )\n ee(n) === t && (r || !n[\"s-sr\"]) && s.push(n);\n return s;\n}, ae = (e, t) => e.nodeType === 1 ? e.getAttribute(\"slot\") === null && t === \"\" || e.getAttribute(\"slot\") === t : e[\"s-sn\"] === t ? !0 : t === \"\", ee = (e) => typeof e[\"s-sn\"] == \"string\" ? e[\"s-sn\"] : e.nodeType === 1 && e.getAttribute(\"slot\") || void 0;\nfunction Ge(e) {\n if (e.assignedElements || e.assignedNodes || !e[\"s-sr\"]) return;\n const t = (r) => (function(s) {\n const n = [], i = this[\"s-sn\"];\n s != null && s.flatten && console.error(`\n Flattening is not supported for Stencil non-shadow slots. \n You can use \\`.childNodes\\` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n `);\n const o = this[\"s-cr\"].parentElement;\n return (o.__childNodes ? o.childNodes : He(o.childNodes)).forEach((l) => {\n i === ee(l) && n.push(l);\n }), r ? n.filter(\n (l) => l.nodeType === 1\n /* ElementNode */\n ) : n;\n }).bind(e);\n e.assignedElements = t(!0), e.assignedNodes = t(!1);\n}\nfunction le(e, t) {\n if (\"__\" + t in e) {\n const r = e[\"__\" + t];\n return typeof r != \"function\" ? r : r.bind(e);\n } else\n return typeof e[t] != \"function\" ? e[t] : e[t].bind(e);\n}\nvar We = (e, t, ...r) => {\n let s = null, n = null, i = null, o = !1, f = !1;\n const l = [], c = (a) => {\n for (let p = 0; p < a.length; p++)\n s = a[p], Array.isArray(s) ? c(s) : s != null && typeof s != \"boolean\" && ((o = !$e(s)) && (s = String(s)), o && f ? l[l.length - 1].$text$ += s : l.push(o ? X(null, s) : s), f = o);\n };\n c(r);\n const g = X(e, null);\n return g.$attrs$ = t, l.length > 0 && (g.$children$ = l), g.$key$ = n, g.$name$ = i, g;\n}, X = (e, t) => {\n const r = {\n $flags$: 0,\n $tag$: e,\n $text$: t,\n $elm$: null,\n $children$: null\n };\n return r.$attrs$ = null, r.$key$ = null, r.$name$ = null, r;\n}, Xe = {}, Je = (e) => e && e.$tag$ === Xe, ce = (e, t, r, s, n, i, o) => {\n if (r === s)\n return;\n let f = ie(e, t), l = t.toLowerCase();\n if (t === \"class\") {\n const c = e.classList, g = fe(r);\n let a = fe(s);\n c.remove(...g.filter((p) => p && !a.includes(p))), c.add(...a.filter((p) => p && !g.includes(p)));\n } else if (t === \"style\") {\n for (const c in r)\n (!s || s[c] == null) && (c.includes(\"-\") ? e.style.removeProperty(c) : e.style[c] = \"\");\n for (const c in s)\n (!r || s[c] !== r[c]) && (c.includes(\"-\") ? e.style.setProperty(c, s[c]) : e.style[c] = s[c]);\n } else if (t !== \"key\") if (t === \"ref\")\n s && s(e);\n else if (!e.__lookupSetter__(t) && t[0] === \"o\" && t[1] === \"n\") {\n if (t[2] === \"-\" ? t = t.slice(3) : ie(S, l) ? t = l.slice(2) : t = l[2] + t.slice(3), r || s) {\n const c = t.endsWith(ve);\n t = t.replace(Ke, \"\"), r && T.rel(e, t, r, c), s && T.ael(e, t, s, c);\n }\n } else {\n const c = $e(s);\n if ((f || c && s !== null) && !n)\n try {\n if (e.tagName.includes(\"-\"))\n e[t] !== s && (e[t] = s);\n else {\n const a = s ?? \"\";\n t === \"list\" ? f = !1 : (r == null || e[t] != a) && (typeof e.__lookupSetter__(t) == \"function\" ? e[t] = a : e.setAttribute(t, a));\n }\n } catch {\n }\n let g = !1;\n l !== (l = l.replace(/^xlink\\:?/, \"\")) && (t = l, g = !0), s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === \"\") && (g ? e.removeAttributeNS(oe, t) : e.removeAttribute(t)) : (!f || i & 4 || n) && !c && e.nodeType === 1 && (s = s === !0 ? \"\" : s, g ? e.setAttributeNS(oe, t, s) : e.setAttribute(t, s));\n }\n}, Ye = /\\s/, fe = (e) => (typeof e == \"object\" && e && \"baseVal\" in e && (e = e.baseVal), !e || typeof e != \"string\" ? [] : e.split(Ye)), ve = \"Capture\", Ke = new RegExp(ve + \"$\"), J = (e, t, r, s) => {\n const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, i = e && e.$attrs$ || {}, o = t.$attrs$ || {};\n for (const f of ue(Object.keys(i)))\n f in o || ce(\n n,\n f,\n i[f],\n void 0,\n r,\n t.$flags$\n );\n for (const f of ue(Object.keys(o)))\n ce(\n n,\n f,\n i[f],\n o[f],\n r,\n t.$flags$\n );\n};\nfunction ue(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 F, C, j, Y = !1, U = !1, te = !1, b = !1, D = (e, t, r) => {\n var s;\n const n = t.$children$[r];\n let i = 0, o, f, l;\n if (Y || (te = !0, n.$tag$ === \"slot\" && (n.$flags$ |= n.$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 ))), n.$text$ !== null)\n o = n.$elm$ = S.document.createTextNode(n.$text$);\n else if (n.$flags$ & 1)\n o = n.$elm$ = S.document.createTextNode(\"\"), J(null, n, b);\n else {\n if (b || (b = n.$tag$ === \"svg\"), !S.document)\n throw new Error(\n \"You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.\"\n );\n if (o = n.$elm$ = S.document.createElementNS(\n b ? Ie : Ce,\n !Y && B.slotRelocation && n.$flags$ & 2 ? \"slot-fb\" : n.$tag$\n ), b && n.$tag$ === \"foreignObject\" && (b = !1), J(null, n, b), Ue(F) && o[\"s-si\"] !== F && o.classList.add(o[\"s-si\"] = F), n.$children$)\n for (i = 0; i < n.$children$.length; ++i)\n f = D(e, n, i), f && o.appendChild(f);\n n.$tag$ === \"svg\" ? b = !1 : o.tagName === \"foreignObject\" && (b = !0);\n }\n return o[\"s-hn\"] = j, n.$flags$ & 3 && (o[\"s-sr\"] = !0, o[\"s-cr\"] = C, o[\"s-sn\"] = n.$name$ || \"\", o[\"s-rf\"] = (s = n.$attrs$) == null ? void 0 : s.ref, Ge(o), l = e && e.$children$ && e.$children$[r], l && l.$tag$ === n.$tag$ && e.$elm$ && R(e.$elm$, !1), Se(C, o, t.$elm$, e == null ? void 0 : e.$elm$)), o;\n}, R = (e, t) => {\n T.$flags$ |= 1;\n const r = Array.from(e.__childNodes || e.childNodes);\n e[\"s-sr\"] && B.experimentalSlotFixes;\n for (let s = r.length - 1; s >= 0; s--) {\n const n = r[s];\n n[\"s-hn\"] !== j && n[\"s-ol\"] && (x(z(n).parentNode, n, z(n)), n[\"s-ol\"].remove(), n[\"s-ol\"] = void 0, n[\"s-sh\"] = void 0, te = !0), t && R(n, t);\n }\n T.$flags$ &= -2;\n}, he = (e, t, r, s, n, i) => {\n let o = e[\"s-cr\"] && e[\"s-cr\"].parentNode || e, f;\n for (o.shadowRoot && o.tagName === j && (o = o.shadowRoot); n <= i; ++n)\n s[n] && (f = D(null, r, n), f && (s[n].$elm$ = f, x(o, f, z(t))));\n}, _e = (e, t, r) => {\n for (let s = t; s <= r; ++s) {\n const n = e[s];\n if (n) {\n const i = n.$elm$;\n Ee(n), i && (U = !0, i[\"s-ol\"] ? i[\"s-ol\"].remove() : R(i, !0), i.remove());\n }\n }\n}, Qe = (e, t, r, s, n = !1) => {\n let i = 0, o = 0, f = 0, l = 0, c = t.length - 1, g = t[0], a = t[c], p = s.length - 1, u = s[0], $ = s[p], h, v;\n for (; i <= c && o <= p; )\n if (g == null)\n g = t[++i];\n else if (a == null)\n a = t[--c];\n else if (u == null)\n u = s[++o];\n else if ($ == null)\n $ = s[--p];\n else if (M(g, u, n))\n k(g, u, n), g = t[++i], u = s[++o];\n else if (M(a, $, n))\n k(a, $, n), a = t[--c], $ = s[--p];\n else if (M(g, $, n))\n (g.$tag$ === \"slot\" || $.$tag$ === \"slot\") && R(g.$elm$.parentNode, !1), k(g, $, n), x(e, g.$elm$, a.$elm$.nextSibling), g = t[++i], $ = s[--p];\n else if (M(a, u, n))\n (g.$tag$ === \"slot\" || $.$tag$ === \"slot\") && R(a.$elm$.parentNode, !1), k(a, u, n), x(e, a.$elm$, g.$elm$), a = t[--c], u = s[++o];\n else {\n for (f = -1, l = i; l <= c; ++l)\n if (t[l] && t[l].$key$ !== null && t[l].$key$ === u.$key$) {\n f = l;\n break;\n }\n f >= 0 ? (v = t[f], v.$tag$ !== u.$tag$ ? h = D(t && t[o], r, f) : (k(v, u, n), t[f] = void 0, h = v.$elm$), u = s[++o]) : (h = D(t && t[o], r, o), u = s[++o]), h && x(\n z(g.$elm$).parentNode,\n h,\n z(g.$elm$)\n );\n }\n i > c ? he(\n e,\n s[p + 1] == null ? null : s[p + 1].$elm$,\n r,\n s,\n o,\n p\n ) : o > p && _e(t, i, c);\n}, M = (e, t, r = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === \"slot\" ? e.$name$ === t.$name$ : r ? (r && !e.$key$ && t.$key$ && (e.$key$ = t.$key$), !0) : e.$key$ === t.$key$ : !1, z = (e) => e && e[\"s-ol\"] || e, k = (e, t, r = !1) => {\n const s = t.$elm$ = e.$elm$, n = e.$children$, i = t.$children$, o = t.$tag$, f = t.$text$;\n let l;\n f === null ? (b = o === \"svg\" ? !0 : o === \"foreignObject\" ? !1 : b, J(e, t, b), n !== null && i !== null ? Qe(s, n, t, i, r) : i !== null ? (e.$text$ !== null && (s.textContent = \"\"), he(s, null, t, i, 0, i.length - 1)) : (\n // don't do this on initial render as it can cause non-hydrated content to be removed\n !r && B.updatable && n !== null && _e(n, 0, n.length - 1)\n ), b && o === \"svg\" && (b = !1)) : (l = s[\"s-cr\"]) ? l.parentNode.textContent = f : e.$text$ !== f && (s.data = f);\n}, E = [], we = (e) => {\n let t, r, s;\n const n = e.__childNodes || e.childNodes;\n for (const i of n) {\n if (i[\"s-sr\"] && (t = i[\"s-cr\"]) && t.parentNode) {\n r = t.parentNode.__childNodes || t.parentNode.childNodes;\n const o = i[\"s-sn\"];\n for (s = r.length - 1; s >= 0; s--)\n if (t = r[s], !t[\"s-cn\"] && !t[\"s-nr\"] && t[\"s-hn\"] !== i[\"s-hn\"])\n if (ae(t, o)) {\n let f = E.find((l) => l.$nodeToRelocate$ === t);\n U = !0, t[\"s-sn\"] = t[\"s-sn\"] || o, f ? (f.$nodeToRelocate$[\"s-sh\"] = i[\"s-hn\"], f.$slotRefNode$ = i) : (t[\"s-sh\"] = i[\"s-hn\"], E.push({\n $slotRefNode$: i,\n $nodeToRelocate$: t\n })), t[\"s-sr\"] && E.map((l) => {\n ae(l.$nodeToRelocate$, t[\"s-sn\"]) && (f = E.find((c) => c.$nodeToRelocate$ === t), f && !l.$slotRefNode$ && (l.$slotRefNode$ = f.$slotRefNode$));\n });\n } else E.some((f) => f.$nodeToRelocate$ === t) || E.push({\n $nodeToRelocate$: t\n });\n }\n i.nodeType === 1 && we(i);\n }\n}, Ee = (e) => {\n e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(Ee);\n}, x = (e, t, r) => (typeof t[\"s-sn\"] == \"string\" && t[\"s-sr\"] && t[\"s-cr\"] && Se(t[\"s-cr\"], t, e, t.parentElement), e == null ? void 0 : e.insertBefore(t, r));\nfunction Se(e, t, r, s) {\n var n, i;\n let o;\n if (e && typeof t[\"s-sn\"] == \"string\" && t[\"s-sr\"] && e.parentNode && e.parentNode[\"s-sc\"] && (o = t[\"s-si\"] || e.parentNode[\"s-sc\"])) {\n const f = t[\"s-sn\"], l = t[\"s-hn\"];\n if ((n = r.classList) == null || n.add(o + \"-s\"), s && ((i = s.classList) != null && i.contains(o + \"-s\"))) {\n let c = (s.__childNodes || s.childNodes)[0], g = !1;\n for (; c; ) {\n if (c[\"s-sn\"] !== f && c[\"s-hn\"] === l && c[\"s-sr\"]) {\n g = !0;\n break;\n }\n c = c.nextSibling;\n }\n g || s.classList.remove(o + \"-s\");\n }\n }\n}\nvar Ve = (e, t, r = !1) => {\n var s, n, i, o, f;\n const l = e.$hostElement$, c = e.$cmpMeta$, g = e.$vnode$ || X(null, null), a = Je(t) ? t : We(null, null, t);\n if (j = l.tagName, c.$attrsToReflect$ && (a.$attrs$ = a.$attrs$ || {}, c.$attrsToReflect$.map(\n ([p, u]) => a.$attrs$[u] = l[p]\n )), r && a.$attrs$)\n for (const p of Object.keys(a.$attrs$))\n l.hasAttribute(p) && ![\"key\", \"ref\", \"style\", \"class\"].includes(p) && (a.$attrs$[p] = l[p]);\n a.$tag$ = null, a.$flags$ |= 4, e.$vnode$ = a, a.$elm$ = g.$elm$ = l.shadowRoot || l, F = l[\"s-sc\"], Y = !!(c.$flags$ & 1) && !(c.$flags$ & 128), C = l[\"s-cr\"], U = !1, k(g, a, r);\n {\n if (T.$flags$ |= 1, te) {\n we(a.$elm$);\n for (const p of E) {\n const u = p.$nodeToRelocate$;\n if (!u[\"s-ol\"] && S.document) {\n const $ = S.document.createTextNode(\"\");\n $[\"s-nr\"] = u, x(u.parentNode, u[\"s-ol\"] = $, u);\n }\n }\n for (const p of E) {\n const u = p.$nodeToRelocate$, $ = p.$slotRefNode$;\n if ($) {\n const h = $.parentNode;\n let v = $.nextSibling;\n {\n let _ = (s = u[\"s-ol\"]) == null ? void 0 : s.previousSibling;\n for (; _; ) {\n let y = (n = _[\"s-nr\"]) != null ? n : null;\n if (y && y[\"s-sn\"] === u[\"s-sn\"] && h === (y.__parentNode || y.parentNode)) {\n for (y = y.nextSibling; y === u || y != null && y[\"s-sr\"]; )\n y = y == null ? void 0 : y.nextSibling;\n if (!y || !y[\"s-nr\"]) {\n v = y;\n break;\n }\n }\n _ = _.previousSibling;\n }\n }\n const N = u.__parentNode || u.parentNode, L = u.__nextSibling || u.nextSibling;\n (!v && h !== N || L !== v) && u !== v && (!u[\"s-hn\"] && u[\"s-ol\"] && (u[\"s-hn\"] = u[\"s-ol\"].parentNode.nodeName), x(h, u, v), u.nodeType === 1 && u.tagName !== \"SLOT-FB\" && (u.hidden = (i = u[\"s-ih\"]) != null ? i : !1)), u && typeof $[\"s-rf\"] == \"function\" && $[\"s-rf\"]($);\n } else\n u.nodeType === 1 && (r && (u[\"s-ih\"] = (o = u.hidden) != null ? o : !1), u.hidden = !0);\n }\n }\n U && ye(a.$elm$), T.$flags$ &= -2, E.length = 0;\n }\n if (B.experimentalScopedSlotChanges && c.$flags$ & 2) {\n const p = a.$elm$.__childNodes || a.$elm$.childNodes;\n for (const u of p)\n u[\"s-hn\"] !== j && !u[\"s-sh\"] && (r && u[\"s-ih\"] == null && (u[\"s-ih\"] = (f = u.hidden) != null ? f : !1), u.hidden = !0);\n }\n C = void 0;\n};\nconst K = {\n ignore: [],\n ignore_with: \"_!i-£___£%_\",\n strict: !1,\n tab_size: 2,\n tag_wrap: !1,\n tag_wrap_width: 80,\n trim: []\n}, w = \"!i-£___£%_\", me = [\n \"area\",\n \"base\",\n \"br\",\n \"col\",\n \"embed\",\n \"hr\",\n \"img\",\n \"input\",\n \"link\",\n \"meta\",\n \"param\",\n \"source\",\n \"track\",\n \"wbr\"\n], re = (e) => /<(?:[A-Za-z]+[A-Za-z0-9]*)(?:\\s+.*?)*?\\/{0,1}>/.test(e) || /<(?<Element>(?:[A-Za-z]+[A-Za-z0-9]*:)?(?:[A-Za-z]+[A-Za-z0-9]*))(?:\\s+.*?)*?>(?:.|\\n)*?<\\/{1}\\k<Element>>/.test(e) || /<(?<Element>(?:[a-z][a-z0-9._]*:)?[a-z][a-z0-9._]*-[a-z0-9._-]+)(?:\\s+.*?)*?>(?:.|\\n)*?<\\/{1}\\k<Element>>/.test(e), xe = (e, t) => {\n if (!e || !t)\n throw new Error(\"Both 'current' and 'updates' must be passed-in to mergeObjects()\");\n let r;\n if (Array.isArray(e))\n r = structuredClone(e).concat(t);\n else if (typeof e == \"object\") {\n r = { ...e };\n for (let s of Object.keys(t))\n typeof t[s] != \"object\" ? r[s] = t[s] : r[s] = xe(r[s] || {}, t[s]);\n }\n return r;\n}, et = (e, t) => xe(structuredClone(e), t), tt = (e) => (e = e.replace(/<[\\w:\\-]+([^>]*[^\\/])>/g, (t, r) => t.replace(r, (s) => s.replace(/\\n/g, w + \"nl!\").replace(/\\r/g, w + \"cr!\").replace(/\\s/g, w + \"ws!\"))), e), rt = (e) => {\n const t = /<([A-Za-z][A-Za-z0-9]*|[a-z][a-z0-9._]*-[a-z0-9._-]+)((?:\\s+[A-Za-z0-9_-]+=\"[^\"]*\"|\\s*[a-z]*)*)>/g;\n return e = e.replace(t, (r, s, n) => r.replace(n, (i) => i.replace(/</g, w + \"lt!\").replace(/>/g, w + \"gt!\"))), e;\n}, st = (e, t) => {\n const r = t.ignore, s = t.ignore_with;\n for (let n = 0; n < r.length; n++) {\n const i = new RegExp(`<${r[n]}[^>]*>((.|\n)*?)</${r[n]}>`, \"g\");\n e = e.replace(i, (o, f) => o.replace(f, (l) => l.replace(/</g, \"-\" + s + \"lt-\").replace(/>/g, \"-\" + s + \"gt-\").replace(/\\n/g, \"-\" + s + \"nl-\").replace(/\\r/g, \"-\" + s + \"cr-\").replace(/\\s/g, \"-\" + s + \"ws-\")));\n }\n return e;\n}, nt = (e, t) => {\n for (let r = 0; r < t.length; r++) {\n const s = new RegExp(`(<${t[r]}[^>]*>)\\\\s+`, \"g\"), n = new RegExp(`\\\\s+(</${t[r]}>)`, \"g\");\n e = e.replace(s, \"$1\").replace(n, \"$1\");\n }\n return e;\n}, it = (e) => (e = e.replace(/<[\\w:\\-]+([^>]*[^\\/])>/g, (t, r) => t.replace(r, (s) => s.replace(new RegExp(w + \"nl!\", \"g\"), `\n`).replace(new RegExp(w + \"cr!\", \"g\"), \"\\r\").replace(new RegExp(w + \"ws!\", \"g\"), \" \"))), e), ot = (e) => (e = e.replace(/<[\\w:\\-]+([^>]*)>/g, (t, r) => t.replace(r, (s) => s.replace(new RegExp(w + \"lt!\", \"g\"), \"<\").replace(new RegExp(w + \"gt!\", \"g\"), \">\"))), e), at = (e, t) => {\n const r = t.ignore, s = t.ignore_with;\n for (let n = 0; n < r.length; n++) {\n const i = new RegExp(`<${r[n]}[^>]*>((.|\n)*?)</${r[n]}>`, \"g\");\n e = e.replace(i, (o, f) => o.replace(f, (l) => l.replace(new RegExp(\"-\" + s + \"lt-\", \"g\"), \"<\").replace(new RegExp(\"-\" + s + \"gt-\", \"g\"), \">\").replace(new RegExp(\"-\" + s + \"nl-\", \"g\"), `\n`).replace(new RegExp(\"-\" + s + \"cr-\", \"g\"), \"\\r\").replace(new RegExp(\"-\" + s + \"ws-\", \"g\"), \" \")));\n }\n return e;\n}, lt = (e) => {\n var s, n;\n if (typeof e != \"object\") throw new Error(\"Config must be an object.\");\n if (!(Object.hasOwn(e, \"ignore\") || Object.hasOwn(e, \"ignore_with\") || Object.hasOwn(e, \"strict\") || Object.hasOwn(e, \"tab_size\") || Object.hasOwn(e, \"tag_wrap\") || Object.hasOwn(e, \"tag_wrap_width\") || Object.hasOwn(e, \"trim\"))) return K;\n let r = e.tab_size;\n if (r) {\n if (typeof r != \"number\") throw new Error(`tab_size must be a number, not ${typeof e.tab_size}.`);\n if (!Number.isSafeInteger(r)) throw new Error(`Tab size ${r} is not safe. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger for more info.`);\n if (r = Math.floor(r), r < 1 || r > 16) throw new Error(\"Tab size out of range. Expecting 1 to 16.\");\n e.tab_size = r;\n }\n if (Object.hasOwn(e, \"ignore\") && (!Array.isArray(e.ignore) || !((s = e.ignore) != null && s.every((i) => typeof i == \"string\"))))\n throw new Error(\"Ignore config must be an array of strings.\");\n if (Object.hasOwn(e, \"ignore_with\") && typeof e.ignore_with != \"string\")\n throw new Error(`Ignore_with config must be a string, not ${typeof e.ignore_with}.`);\n if (Object.hasOwn(e, \"strict\") && typeof e.strict != \"boolean\")\n throw new Error(`Strict config must be a boolean, not ${typeof e.strict}.`);\n if (Object.hasOwn(e, \"tag_wrap\") && typeof e.tag_wrap != \"boolean\")\n throw new Error(`tag_wrap config must be a boolean, not ${typeof e.tag_wrap}.`);\n if (Object.hasOwn(e, \"tag_wrap_width\") && typeof e.tag_wrap_width != \"number\")\n throw new Error(`tag_wrap_width config must be a number, not ${typeof e.tag_wrap_width}.`);\n if (Object.hasOwn(e, \"trim\") && (!Array.isArray(e.trim) || !((n = e.trim) != null && n.every((i) => typeof i == \"string\"))))\n throw new Error(\"Trim config must be an array of strings.\");\n return et(K, e);\n}, ct = (e, t = !0) => t && !re(e) ? e : e.replace(/<([a-zA-Z\\-0-9:]+)[^>]*>/g, (r, s) => me.indexOf(s) > -1 ? `${r.substring(0, r.length - 1)} />`.replace(/\\/\\s\\//g, \"/\") : r.replace(/[\\s]?\\/>/g, `></${s}>`)), ft = (e, t = !1) => (e = e.replace(/<textarea[^>]*>((.|\\n)*?)<\\/textarea>/g, (r, s) => r.replace(s, (n) => n.replace(/</g, \"<\").replace(/>/g, \">\").replace(/\"/g, \""\").replace(/'/g, \"'\").replace(/\\n/g, \" \").replace(/\\r/g, \" \").replace(/\\s/g, \" \"))), t && (e = e.replace(/<textarea[^>]*>((.|\\n)*?)<\\/textarea>/g, (r, s) => (r = r.replace(s, (n) => n.replace(/\\n|\\t/g, \"\").replace(/[a-z]+=\"\\s*\"/ig, \"\").replace(/>\\s+</g, \"><\").replace(/\\s+/g, \" \")), r = r.replace(/\\s+/g, \" \").replace(/\\s>/g, \">\").replace(/>\\s/g, \">\").replace(/\\s</g, \"<\").replace(/class=[\"']\\s/g, (n) => n.replace(/\\s/g, \"\")).replace(/(class=.*)\\s([\"'])/g, \"$1$2\"), r))), e), ut = (e, t = !0) => t && !re(e) ? e : (e = ft(e), e.replace(/\\n|\\t/g, \"\").replace(/>\\s+</g, \"><\").replace(/\\s+/g, \" \").replace(/(.+=)\"\\s+\"/ig, '$1\"\"').replace(/(.+=)'\\s+'/ig, \"$1''\").replace(/\\s>/g, \">\").replace(/<\\s\\//g, \"</\").replace(/class=[\"']\\s/g, (r) => r.replace(/\\s/g, \"\")).replace(/(class=.*)\\s([\"'])/g, \"$1$2\"));\nlet I, Q;\nconst A = {\n line: []\n}, gt = (e) => {\n A.line = [];\n let t = -1;\n const r = /(<[^>]+>)|([^<]+)/g;\n return e = e.replace(r, (s, n, i) => (n ? A.line.push({ type: \"tag\", value: s }) : i && i.trim().length > 0 && A.line.push({ type: \"text\", value: s }), t++, `\n[#-# : ${t} : ${s} : #-#]\n`)), e;\n}, pt = (e) => (e = ct(e, !1), Q.length > 0 && (e = nt(e, Q)), e = ut(e, !1), e = gt(e), e), $t = (e, t) => {\n const r = t.tab_size, s = t.tag_wrap, n = t.tag_wrap_width;\n let i = \"\";\n A.line.forEach((l, c) => {\n e = e.replace(/\\n+/g, `\n`).replace(`[#-# : ${c} : ${l.value} : #-#]`, (g) => {\n var v, N;\n let a = 0;\n const p = `[#-# : ${c - 1} : ${(v = A.line[c - 1]) == null ? void 0 : v.value} : #-#]`;\n i += \"0\", c === 0 && a++, g.indexOf(`#-# : ${c} : </`) > -1 && a++, p.indexOf(\"<!doctype\") > -1 && a++, p.indexOf(\"<!--\") > -1 && a++, p.indexOf(\"/> : #-#\") > -1 && a++, p.indexOf(`#-# : ${c - 1} : </`) > -1 && a++, ((N = A.line[c - 1]) == null ? void 0 : N.type) === \"text\" && a++;\n const u = i.length - a;\n if (i = i.substring(0, u), I && g.indexOf(\"<!--\") > -1) return \"\";\n const $ = g.replace(`[#-# : ${c} : `, \"\").replace(\" : #-#]\", \"\");\n if (s && /<[A-Za-z]+\\b[^>]*(?:.|\\n)*?\\/?>/g.test(l.value) && l.value.length > n) {\n const L = /\\s{1}[A-Za-z-]+(?:=\".*?\")?/g, _ = l.value.split(L).filter(Boolean), y = l.value.matchAll(L), H = r * u, Ae = H + r;\n let P = _[0].padStart(_[0].length + H) + `\n`;\n for (const se of y) {\n const je = se[0].trim().padStart(se[0].trim().length + Ae) + `\n`;\n P += je;\n }\n const Te = _[1].padStart(\n _[1].trim().length + H + (I && me.includes(_[0].slice(1)) ? 1 : 0)\n );\n return P += Te, P;\n } else\n return $.padStart($.length + r * u);\n });\n }), s && (e = tt(e)), e = e.replace(\n /<(?<Element>.+).*>[^<]*?[^><\\/\\s][^<]*?<\\/{1}\\k<Element>|<script[^>]*>\\s+<\\/script>|<(\\w+)>\\s+<\\/(\\w+)|<(?:([\\w:\\._-]+)|([\\w:\\._-]+)[^>]*[^\\/])>\\s+<\\/([\\w:\\._-]+)>/g,\n (l) => l.replace(/\\n|\\t|\\s{2,}/g, \"\")\n ), s && (e = it(e)), I && (e = e.replace(/\\s\\/>|\\/>/g, \">\"));\n const o = e.substring(0, 1), f = e.substring(e.length - 1);\n return o === `\n` && (e = e.substring(1, e.length)), f === `\n` && (e = e.substring(0, e.length - 1)), e;\n}, dt = (e, t) => {\n if (!re(e)) return e;\n const r = t ? lt(t) : K;\n I = r.strict;\n const s = r.ignore.length > 0;\n return Q = r.trim, s && (e = st(e, r)), e = rt(e), e = pt(e), e = $t(e, r), e = ot(e), s && (e = at(e, r)), e;\n}, yt = (e, t, r) => {\n [null, void 0, \"\", !1].includes(r) || [\"innerHTML\", \"style\", \"\"].includes(t) || e.setAttribute(t, [\"object\", \"function\"].includes(typeof r) ? \"⚠️ Property must be set through a script or a framework-specific syntax.\" : r);\n}, Oe = (e, t, r, s, n) => {\n if (t && typeof t == \"string\") {\n const i = document.createElement(t);\n Object.keys(r || {}).forEach((o) => {\n yt(i, o, r[o]);\n }), s == null || s.forEach((o) => {\n Oe(i, o.$tag$, o.$attrs$, o.$children$, o.$text$);\n }), r != null && r.innerHTML && (i.innerHTML = r.innerHTML), e.appendChild(i);\n }\n n && (e.innerHTML = n);\n}, Ft = (e, t, r = []) => {\n const s = {};\n if (typeof e != \"object\")\n throw new Error(\"filterArgs - args isn't an object.\");\n for (const n in e)\n if (!r.includes(n)) {\n const i = e[n], o = n.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase();\n (!t || !Object.keys(t).includes(n) || t[n] !== i) && (s[o] = i);\n }\n return s;\n}, It = (e, t) => {\n var s, n;\n const r = document.getElementById(\"storybook-root\");\n if (r !== null)\n return (n = document.querySelector(\"[lang]\")) == null || n.setAttribute(\"lang\", ((s = t.globals) == null ? void 0 : s.locale) || \"en\"), Ve(\n {\n $cmpMeta$: {\n $flags$: 0,\n $tagName$: r.tagName\n },\n $hostElement$: r\n },\n e(t)\n ), r.children[r.children.length - 1];\n}, Ct = ({ $tag$: e, $attrs$: t, $children$: r, $text$: s }) => {\n const n = document.createElement(\"div\");\n return Oe(n, e, t, r, s), dt(n.innerHTML, { tag_wrap: !0 }).replace(/=\"true\"/g, \"\");\n}, Z = (e, t) => {\n if (!t)\n return;\n const r = t.split(\"/\");\n return `${e}${r.slice(2, r.length - 1).join(\"-\")}--docs`;\n};\nvar m, q;\nclass Ut {\n constructor(t) {\n /**\n * JsonDocs\n */\n d(this, \"jsonDoc\");\n /**\n * Get component data from the jsonDoc\n * @param tagName - tag name we want to get the data from\n * @returns component data\n */\n G(this, m, (t) => this.jsonDoc.components.find((r) => r.tag === t));\n /**\n * Get the control for the given prop\n * Based on https://storybook.js.org/docs/api/arg-types#controltype\n * @param prop - prop to get control for\n * @returns control type and options if applicable\n */\n G(this, q, (t) => {\n const r = t.type.replace(/\"([^\"]+)\"/g, \"$1\").replace(/\\s/g, \"\").replace(/\\(.*?\\)/g, (s) => s.replace(/\\|/g, \" OR \")).split(\"|\").map((s) => s.trim().replace(/ OR /g, \"|\"));\n return t.type === \"string\" ? { control: { type: \"text\" } } : t.type === \"number\" ? { control: { type: \"number\" } } : t.type === \"boolean\" ? { control: { type: \"boolean\" } } : t.type.startsWith(\"{\") && t.type.endsWith(\"}\") ? { control: { type: \"object\" } } : r.length > 1 ? r.includes(\"string\") ? { control: { type: \"text\" } } : r.every((s) => s == null ? void 0 : s.includes(\"[]\")) ? { control: { type: \"object\" } } : (r.unshift(void 0), { control: { type: \"select\" }, options: r }) : { control: { type: \"object\" } };\n });\n /**\n * Extract component arg types from the component data\n * @param tagName - tag name we want to extract the arg types from\n * @returns component arg types\n */\n d(this, \"extractArgTypes\", (t) => {\n const r = O(this, m).call(this, t), s = r == null ? void 0 : r.props.reduce((g, a) => {\n const { control: p, options: u } = O(this, q).call(this, a);\n return {\n ...g,\n [a.name]: {\n name: a.attr || a.name,\n description: a.docs,\n type: { required: a.required },\n table: {\n category: \"props\",\n type: { summary: a.type },\n defaultValue: { summary: a.default }\n },\n control: p,\n options: u\n }\n };\n }, {}), n = r == null ? void 0 : r.events.reduce(\n (g, a) => ({\n ...g,\n [a.event]: {\n name: a.event,\n description: a.docs,\n table: {\n category: \"events\",\n type: { summary: a.detail }\n }\n }\n }),\n {}\n ), i = r == null ? void 0 : r.methods.reduce(\n (g, a) => ({\n ...g,\n [a.name]: {\n name: a.name,\n description: a.docs,\n table: {\n category: \"methods\",\n type: { summary: a.signature }\n }\n }\n }),\n {}\n ), o = r == null ? void 0 : r.slots.reduce(\n (g, a) => ({\n ...g,\n [a.name]: {\n name: a.name !== \"\" ? a.name : \"default\",\n // default slot are unnamed\n description: a.docs,\n table: {\n category: \"slots\",\n type: { summary: void 0 }\n }\n }\n }),\n {}\n ), f = r == null ? void 0 : r.styles.reduce(\n (g, a) => ({\n ...g,\n [a.name]: {\n name: a.name,\n description: a.docs,\n table: {\n category: \"custom properties\",\n type: { summary: void 0 }\n }\n }\n }),\n {}\n ), l = r == null ? void 0 : r.dependencies.reduce((g, a) => {\n const p = O(this, m).call(this, a);\n return p ? {\n ...g,\n [a]: {\n name: a,\n description: `<a href=\"./?path=/docs/${Z(\"\", p == null ? void 0 : p.filePath)}\">View Component Documentation</a>`,\n table: {\n category: \"depends on\",\n type: { summary: void 0 }\n }\n }\n } : g;\n }, {}), c = r == null ? void 0 : r.dependents.reduce((g, a) => {\n const p = O(this, m).call(this, a);\n return p ? {\n ...g,\n [a]: {\n name: a,\n description: `<a href=\"./?path=/docs/${Z(\"\", p == null ? void 0 : p.filePath)}\">View Component Documentation</a>`,\n table: {\n category: \"used by\",\n type: { summary: void 0 }\n }\n }\n } : g;\n }, {});\n return {\n ...s,\n ...n,\n ...i,\n ...o,\n ...f,\n ...l,\n ...c\n };\n });\n /**\n * Extract component description from the component data\n * @param tagName - tag name we want to extract the description from\n * @returns component description\n */\n d(this, \"extractComponentDescription\", (t) => {\n const r = O(this, m).call(this, t);\n return (r == null ? void 0 : r.readme) || (r == null ? void 0 : r.docs);\n });\n this.jsonDoc = t;\n }\n}\nm = new WeakMap(), q = new WeakMap();\nconst bt = (e, t) => {\n if (t)\n return `${e}${t}`;\n}, ke = (e) => {\n let t = e.overview ? `${e.overview}\n\n` : \"\";\n const r = e.props.filter(({ attr: n }) => n !== void 0);\n r.length && (t += `Attributes:\n`, t += r.map(({ attr: n, docs: i }) => `- \\`${n}\\`: ${i}\n`).join(\"\"), t += `\n`);\n const s = e.props.filter(({ attr: n }) => n === void 0);\n return s.length && (t += `Properties:\n`, t += s.map(({ name: n, docs: i }) => `- \\`${n}\\`: ${i}\n`).join(\"\"), t += `\n`), e.methods.length && (t += `Methods:\n`, t += e.methods.map(({ name: n, docs: i }) => `- \\`${n}\\`: ${i}\n`).join(\"\"), t += `\n`), e.events.length && (t += `Events:\n`, t += e.events.map(({ event: n, docs: i }) => `- \\`${n}\\`: ${i}\n`).join(\"\"), t += `\n`), e.listeners.length && (t += `Listeners:\n`, t += e.listeners.map(({ event: n }) => `- \\`${n}\\`\n`).join(\"\"), t += `\n`), e.slots.length && (t += `Slots:\n`, t += e.slots.map(({ name: n, docs: i }) => `- \\`${n}\\`: ${i}\n`).join(\"\"), t += `\n`), t;\n}, V = (e) => `${e.docs}\n\nType: \\`${e.type}\\``, Dt = (e, t, r, s) => ({\n $schema: \"https://json.schemastore.org/web-types\",\n name: e,\n version: t,\n \"description-markup\": \"markdown\",\n contributions: {\n html: {\n elements: r.components.map((n) => {\n const i = Z(s, n.filePath);\n return {\n name: n.tag,\n description: ke(n),\n \"doc-url\": i,\n attributes: n.props.filter((o) => o.attr).map((o) => ({\n name: o.attr,\n description: V(o),\n \"doc-url\": i,\n value: {\n type: o.type,\n default: o.default,\n required: o.required\n }\n })),\n js: {\n properties: n.props.map((o) => ({\n name: o.name,\n description: V(o),\n \"doc-url\": i,\n value: {\n type: o.type,\n default: o.default,\n required: o.required\n }\n })),\n events: n.events.map((o) => ({\n name: o.event,\n description: o.docs\n }))\n },\n css: {\n properties: n.styles.map((o) => ({\n name: o.name,\n description: o.docs\n }))\n }\n };\n })\n }\n }\n}), vt = (e, t, r) => [\n { name: \"Storybook\", url: Z(e, r) },\n { name: \"Sources\", url: bt(t, r) }\n], ht = (e) => {\n if (!e.values.some(({ value: t }) => t === void 0))\n return e.values.map(({ value: t }) => ({ name: t }));\n}, Zt = (e, t, r) => ({\n version: 1.1,\n tags: e.components.map((s) => {\n const n = vt(t, r, s.filePath);\n return {\n name: s.tag,\n description: ke(s),\n attributes: s.props.map((i) => ({\n name: i.attr || i.name,\n description: V(i),\n values: ht(i),\n references: n\n })),\n references: n\n };\n }),\n globalAttributes: [],\n valueSets: []\n}), qt = (e) => ({\n version: 1.1,\n properties: e.components.flatMap(\n (t) => t.styles.map((r) => ({\n name: r.name,\n description: r.docs\n }))\n )\n}), Bt = (e) => {\n const t = { value: \"2023\", pattern: \"yyyy\" }, r = { value: \"12\", pattern: \"mm\" }, s = { value: \"24\", pattern: \"dd\" };\n return Et([t.value, r.value, s.value].join(\"-\"), e, { timeZone: \"UTC\" }).replace(t.value, t.pattern).replace(r.value, r.pattern).replace(s.value, s.pattern);\n}, Ht = (e) => e.toISOString().split(\"T\")[0], _t = (e, t, r) => {\n const s = e.closest(\"[lang]\"), n = Intl.NumberFormat.supportedLocalesOf(s == null ? void 0 : s.lang), i = n.length > 0 && typeof n[0] == \"string\" ? n[0] : navigator.language || r, o = i.split(\"-\").shift();\n return Object.keys(t).length === 0 ? {\n locale: i,\n messages: { lang: r }\n } : {\n locale: i,\n messages: t[o] || t[r] || { lang: r }\n };\n}, Pt = (e, t, r) => new Intl.NumberFormat(t, { style: \"currency\", currency: r }).format(e), Gt = (e, t, r = 0) => new Intl.NumberFormat(t, { minimumFractionDigits: r }).format(Number(e)), Wt = (e, t, r = 0) => new Intl.NumberFormat(t, {\n style: \"percent\",\n minimumFractionDigits: r,\n maximumFractionDigits: r\n}).format(e), Xt = (e, t, r, s = \"short\", n = 0) => new Intl.NumberFormat(t, {\n style: \"unit\",\n unit: r,\n unitDisplay: s,\n minimumFractionDigits: n,\n maximumFractionDigits: n\n}).format(e), wt = /^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$/, Et = (e, t, r) => typeof e != \"string\" || e === \"\" || !wt.test(e) ? \"\" : new Intl.DateTimeFormat(t, r).format(new Date(e)), Jt = (e, t) => (r) => _t(r, e, t), Yt = ({ disconnect: e, observe: t, takeRecords: r }) => {\n class s {\n constructor(i) {\n /**\n *\n */\n d(this, \"disconnect\", e);\n /**\n *\n */\n d(this, \"observe\", t);\n /**\n *\n */\n d(this, \"takeRecords\", r);\n /**\n *\n */\n d(this, \"cb\");\n this.cb = i;\n }\n }\n return [window, global].forEach((n) => {\n Object.defineProperty(n, \"MutationObserver\", {\n writable: !0,\n configurable: !0,\n value: s\n });\n }), s;\n}, Kt = ({ disconnect: e, observe: t }) => {\n class r {\n constructor(n) {\n /**\n *\n */\n d(this, \"disconnect\", e);\n /**\n *\n */\n d(this, \"observe\", t);\n /**\n *\n */\n d(this, \"unobserve\");\n /**\n *\n */\n d(this, \"cb\");\n this.cb = n;\n }\n }\n return [window, global].forEach((s) => {\n Object.defineProperty(s, \"ResizeObserver\", {\n writable: !0,\n configurable: !0,\n value: r\n });\n }), r;\n};\nclass St extends Event {\n constructor() {\n super(...arguments);\n /**\n *\n */\n d(this, \"detail\");\n }\n // eslint-disable-line @typescript-eslint/no-explicit-any\n}\nconst Qt = () => {\n class e extends St {\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}, Vt = (e) => {\n const t = (r) => (setTimeout(r, 1), e(), 0);\n return [window, global].forEach((r) => {\n Object.defineProperty(r, \"requestAnimationFrame\", {\n writable: !0,\n configurable: !0,\n value: t\n });\n }), t;\n};\nexport {\n kt as ClassList,\n Ut as StorybookPreview,\n At as allItemsAreString,\n Lt as cleanString,\n xt as createID,\n wt as dateRegExp,\n Ht as dateToString,\n Jt as defineLocales,\n Ft as filterArgs,\n jt as focusableElements,\n Bt as getLocaleDatePattern,\n ge as getParentWindows,\n Ct as getStoryHTML,\n Z as getStorybookUrl,\n Rt as getWindows,\n Tt as isTagName,\n Nt as isValidNumber,\n Le as isValidString,\n Ot as isValideID,\n Pt as localeCurrency,\n Et as localeDate,\n Gt as localeNumber,\n Wt as localePercent,\n Xt as localeUnit,\n Mt as nextTick,\n Vt as setUpRequestAnimationFrameMock,\n Yt as setupMutationObserverMock,\n Kt as setupResizeObserverMock,\n Qt as setupSubmitEventMock,\n It as stencilWrapper,\n zt as toString,\n qt as vsCodeCssGenerator,\n Zt as vsCodeGenerator,\n Dt as webTypesGenerator\n};\n//# sourceMappingURL=index.es.js.map\n"],"version":3}
|
|
1
|
+
{"file":"index.es.js","mappings":"AAAA,IAAI,EAAE,GAAG,MAAM,CAAC,cAAc;AAC9B,IAAI,EAAE,GAAG,CAAC,CAAC,KAAK;AA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e ? De(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;\nvar d = (e, t, r) => He(e, typeof t != \"symbol\" ? t + \"\" : t, r), fe = (e, t, r) => t.has(e) || ce(\"Cannot \" + r);\nvar v = (e, t, r) => (fe(e, t, \"read from private field\"), r ? r.call(e) : t.get(e)), k = (e, t, r) => t.has(e) ? ce(\"Cannot add the same private member more than once\") : t instanceof WeakSet ? t.add(e) : t.set(e, r), U = (e, t, r, s) => (fe(e, t, \"write to private field\"), s ? s.call(e, r) : t.set(e, r), r);\nconst Zt = (e = \"\", t = 10) => {\n const r = new Uint8Array(t);\n crypto.getRandomValues(r);\n const s = Array.from(r).map((n) => n.toString(16).padStart(2, \"0\")).join(\"\").slice(0, t);\n return e !== \"\" ? `${e}-${s}` : s;\n}, Dt = (e) => qe(e) && /^([a-z][a-z0-9]*)(-[a-z0-9]+)*$/.exec(e) !== null;\nclass Ht {\n constructor(t = []) {\n /**\n * Available classes\n */\n d(this, \"classes\");\n /**\n * Add class\n * @param className - class name to add\n */\n d(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 d(this, \"delete\", (t) => {\n const r = this.classes.indexOf(t);\n r > -1 && this.classes.splice(r, 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 d(this, \"has\", (t) => this.classes.includes(t));\n /**\n * Join classes seperated by spaces\n * @returns joined values\n */\n d(this, \"join\", () => this.classes.join(\" \"));\n this.classes = t;\n }\n}\nconst qt = (e) => Array.isArray(e) && e.every((t) => typeof t == \"string\"), Bt = (e, t) => t.includes(e == null ? void 0 : e.tagName.toLowerCase()), Gt = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"]), [identifier], mg-button', Jt = (e) => {\n const t = _e(e), r = be(e);\n return [e, ...t, ...r];\n}, _e = (e, t = []) => {\n if (e.self !== e.top)\n try {\n const r = e.parent;\n return r ? (t.push(r), _e(r, t)) : t;\n } catch (r) {\n return console.error(\"Different hosts between iframes:\", r), t;\n }\n return t;\n}, be = (e, t = []) => {\n if (e.frames.length > 0)\n for (const r of Array.from(e.frames))\n t.push(r), be(r, t);\n return t;\n}, qe = (e) => typeof e == \"string\" && e.trim() !== \"\", Xt = (e) => typeof e == \"object\" ? JSON.stringify(e) : `${e}`, Kt = (e) => typeof e == \"number\" && !Number.isNaN(e), Yt = (e) => typeof e == \"string\" ? e.toLocaleLowerCase().normalize(\"NFD\").replaceAll(/[\\u0300-\\u036f]/g, \"\") : e, Qt = async (e) => {\n if (e) return e();\n}, ne = (e) => typeof e == \"object\" && !Array.isArray(e) && e !== null, Be = (e, t, r) => {\n const s = \".\";\n if (!ne(e) || typeof t != \"string\")\n return r;\n const [n, ...i] = t.split(s);\n return i.length ? Be(e[n], i.join(s)) : e[n];\n}, Vt = {\n FIRST: \"first\",\n NEXT: \"next\",\n PREVIOUS: \"previous\",\n LAST: \"last\"\n}, ve = 10;\nclass Ge {\n constructor(t) {\n /**\n * Define items\n */\n d(this, \"items\", []);\n /**\n * Define total\n */\n d(this, \"total\");\n /**\n * Define top\n */\n d(this, \"top\", ve);\n /**\n * Define next\n */\n d(this, \"next\");\n /**\n * Define base index\n */\n d(this, \"baseIndex\", 1);\n /**\n * Get index of items from cursor\n * @param cursor - cursor to find\n * @param oldItem - previous item\n * @returns item index\n */\n d(this, \"getIndexFromCursor\", (t = \"first\", r) => {\n if (!Array.isArray(this.items) || !this.items.length) return null;\n const n = this.items.length - this.baseIndex;\n let i = 0, o = 0;\n if ([\"previous\", \"next\"].includes(t) && r) {\n const f = this.items.findIndex((c) => JSON.stringify(c) === JSON.stringify(r));\n if (f === -1) return 0;\n o = f;\n }\n return t === \"first\" ? i = 0 : t === \"last\" ? i = n : t === \"previous\" ? i = JSON.stringify(this.items[o]) === JSON.stringify(this.items[0]) ? n : o - this.baseIndex : t === \"next\" && (i = JSON.stringify(this.items[o]) === JSON.stringify(this.items[n]) ? 0 : o + this.baseIndex), i;\n });\n if (ne(t))\n Array.isArray(t.items) && (this.items = t.items), typeof t.top == \"number\" && (this.top = t.top), this.total = typeof t.total == \"number\" ? t.total : this.items.length, this.next = t.next;\n else\n throw new Error(\"Page - init must match IPage type.\");\n }\n}\nvar O, N, C;\nclass er {\n constructor(t, r) {\n /**\n * Define paginated items\n */\n d(this, \"items\", []);\n /* Privates */\n k(this, O, ve);\n k(this, N);\n k(this, C);\n /**\n * Get page\n * @param offset - pagiantion offset\n * @param filter - filter methode\n * @returns formated page\n */\n d(this, \"getPage\", (t = 0, r) => {\n const s = typeof r == \"function\" ? this.items.filter(r) : this.items;\n let n;\n return v(this, N) ? n = v(this, N) : s.length > t + v(this, O) && (n = () => this.getPage(t + v(this, O), r)), new Ge({\n items: s.slice(t, t + v(this, O)),\n total: v(this, C),\n top: v(this, O),\n next: n\n });\n });\n Array.isArray(t) && (this.items = t), r && ([\"string\", \"function\"].includes(typeof r.next) || ne(r.next) && URL.canParse(r.next)) && U(this, N, r.next), typeof (r == null ? void 0 : r.top) == \"number\" && U(this, O, r.top), typeof (r == null ? void 0 : r.total) == \"number\" && U(this, C, r.total);\n }\n}\nO = new WeakMap(), N = new WeakMap(), C = new WeakMap();\nvar K = {\n updatable: !0,\n slotRelocation: !0,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n experimentalSlotFixes: !1\n}, Je = Object.defineProperty, Xe = (e, t) => {\n for (var r in t)\n Je(e, r, { get: t[r], enumerable: !0 });\n}, Ke = \"http://www.w3.org/2000/svg\", Ye = \"http://www.w3.org/1999/xhtml\", ue = (e, t) => t in e, pe = \"http://www.w3.org/1999/xlink\", A = typeof window < \"u\" ? window : {}, z = {\n $flags$: 0,\n $resourcesUrl$: \"\",\n jmp: (e) => e(),\n raf: (e) => requestAnimationFrame(e),\n ael: (e, t, r, s) => e.addEventListener(t, r, s),\n rel: (e, t, r, s) => e.removeEventListener(t, r, s),\n ce: (e, t) => new CustomEvent(e, t)\n}, Qe = (e) => e != null && e !== void 0, we = (e) => (e = typeof e, e === \"object\" || e === \"function\"), Ve = {};\nXe(Ve, {\n err: () => me,\n map: () => et,\n ok: () => Q,\n unwrap: () => tt,\n unwrapErr: () => rt\n});\nvar Q = (e) => ({\n isOk: !0,\n isErr: !1,\n value: e\n}), me = (e) => ({\n isOk: !1,\n isErr: !0,\n value: e\n});\nfunction et(e, t) {\n if (e.isOk) {\n const r = t(e.value);\n return r instanceof Promise ? r.then((s) => Q(s)) : Q(r);\n }\n if (e.isErr) {\n const r = e.value;\n return me(r);\n }\n throw \"should never get here\";\n}\nvar tt = (e) => {\n if (e.isOk)\n return e.value;\n throw e.value;\n}, rt = (e) => {\n if (e.isErr)\n return e.value;\n throw e.value;\n}, xe = (e) => {\n const t = $e(e, \"childNodes\");\n e.tagName && e.tagName.includes(\"-\") && e[\"s-cr\"] && e.tagName !== \"SLOT-FB\" && Ee(t, e.tagName).forEach((s) => {\n s.nodeType === 1 && s.tagName === \"SLOT-FB\" && (nt(s, ie(s), !1).length ? s.hidden = !0 : s.hidden = !1);\n });\n let r = 0;\n for (r = 0; r < t.length; r++) {\n const s = t[r];\n s.nodeType === 1 && $e(s, \"childNodes\").length && xe(s);\n }\n}, st = (e) => {\n const t = [];\n for (let r = 0; r < e.length; r++) {\n const s = e[r][\"s-nr\"] || void 0;\n s && s.isConnected && t.push(s);\n }\n return t;\n};\nfunction Ee(e, t, r) {\n let s = 0, n = [], i;\n for (; s < e.length; s++)\n i = e[s], i[\"s-sr\"] && (!t || i[\"s-hn\"] === t) && r === void 0 && n.push(i), n = [...n, ...Ee(i.childNodes, t, r)];\n return n;\n}\nvar nt = (e, t, r = !0) => {\n const s = [];\n (r && e[\"s-sr\"] || !e[\"s-sr\"]) && s.push(e);\n let n = e;\n for (; n = n.nextSibling; )\n ie(n) === t && (r || !n[\"s-sr\"]) && s.push(n);\n return s;\n}, ge = (e, t) => e.nodeType === 1 ? e.getAttribute(\"slot\") === null && t === \"\" || e.getAttribute(\"slot\") === t : e[\"s-sn\"] === t ? !0 : t === \"\", ie = (e) => typeof e[\"s-sn\"] == \"string\" ? e[\"s-sn\"] : e.nodeType === 1 && e.getAttribute(\"slot\") || void 0;\nfunction it(e) {\n if (e.assignedElements || e.assignedNodes || !e[\"s-sr\"]) return;\n const t = (r) => (function(s) {\n const n = [], i = this[\"s-sn\"];\n s != null && s.flatten && console.error(`\n Flattening is not supported for Stencil non-shadow slots. \n You can use \\`.childNodes\\` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n `);\n const o = this[\"s-cr\"].parentElement;\n return (o.__childNodes ? o.childNodes : st(o.childNodes)).forEach((c) => {\n i === ie(c) && n.push(c);\n }), r ? n.filter(\n (c) => c.nodeType === 1\n /* ElementNode */\n ) : n;\n }).bind(e);\n e.assignedElements = t(!0), e.assignedNodes = t(!1);\n}\nfunction $e(e, t) {\n if (\"__\" + t in e) {\n const r = e[\"__\" + t];\n return typeof r != \"function\" ? r : r.bind(e);\n } else\n return typeof e[t] != \"function\" ? e[t] : e[t].bind(e);\n}\nvar ot = (e, t, ...r) => {\n let s = null, n = null, i = null, o = !1, f = !1;\n const c = [], l = (a) => {\n for (let g = 0; g < a.length; g++)\n s = a[g], Array.isArray(s) ? l(s) : s != null && typeof s != \"boolean\" && ((o = !we(s)) && (s = String(s)), o && f ? c[c.length - 1].$text$ += s : c.push(o ? V(null, s) : s), f = o);\n };\n l(r);\n const p = V(e, null);\n return p.$attrs$ = t, c.length > 0 && (p.$children$ = c), p.$key$ = n, p.$name$ = i, p;\n}, V = (e, t) => {\n const r = {\n $flags$: 0,\n $tag$: e,\n $text$: t,\n $elm$: null,\n $children$: null\n };\n return r.$attrs$ = null, r.$key$ = null, r.$name$ = null, r;\n}, at = {}, lt = (e) => e && e.$tag$ === at, de = (e, t, r, s, n, i, o) => {\n if (r === s)\n return;\n let f = ue(e, t), c = t.toLowerCase();\n if (t === \"class\") {\n const l = e.classList, p = he(r);\n let a = he(s);\n l.remove(...p.filter((g) => g && !a.includes(g))), l.add(...a.filter((g) => g && !p.includes(g)));\n } else if (t === \"style\") {\n for (const l in r)\n (!s || s[l] == null) && (l.includes(\"-\") ? e.style.removeProperty(l) : e.style[l] = \"\");\n for (const l in s)\n (!r || s[l] !== r[l]) && (l.includes(\"-\") ? e.style.setProperty(l, s[l]) : e.style[l] = s[l]);\n } else if (t !== \"key\") if (t === \"ref\")\n s && s(e);\n else if (!e.__lookupSetter__(t) && t[0] === \"o\" && t[1] === \"n\") {\n if (t[2] === \"-\" ? t = t.slice(3) : ue(A, c) ? t = c.slice(2) : t = c[2] + t.slice(3), r || s) {\n const l = t.endsWith(Se);\n t = t.replace(ft, \"\"), r && z.rel(e, t, r, l), s && z.ael(e, t, s, l);\n }\n } else {\n const l = we(s);\n if ((f || l && s !== null) && !n)\n try {\n if (e.tagName.includes(\"-\"))\n e[t] !== s && (e[t] = s);\n else {\n const a = s ?? \"\";\n t === \"list\" ? f = !1 : (r == null || e[t] != a) && (typeof e.__lookupSetter__(t) == \"function\" ? e[t] = a : e.setAttribute(t, a));\n }\n } catch {\n }\n let p = !1;\n c !== (c = c.replace(/^xlink\\:?/, \"\")) && (t = c, p = !0), s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === \"\") && (p ? e.removeAttributeNS(pe, t) : e.removeAttribute(t)) : (!f || i & 4 || n) && !l && e.nodeType === 1 && (s = s === !0 ? \"\" : s, p ? e.setAttributeNS(pe, t, s) : e.setAttribute(t, s));\n }\n}, ct = /\\s/, he = (e) => (typeof e == \"object\" && e && \"baseVal\" in e && (e = e.baseVal), !e || typeof e != \"string\" ? [] : e.split(ct)), Se = \"Capture\", ft = new RegExp(Se + \"$\"), ee = (e, t, r, s) => {\n const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, i = e && e.$attrs$ || {}, o = t.$attrs$ || {};\n for (const f of ye(Object.keys(i)))\n f in o || de(\n n,\n f,\n i[f],\n void 0,\n r,\n t.$flags$\n );\n for (const f of ye(Object.keys(o)))\n de(\n n,\n f,\n i[f],\n o[f],\n r,\n t.$flags$\n );\n};\nfunction ye(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 Z, q, L, te = !1, B = !1, oe = !1, b = !1, G = (e, t, r) => {\n var s;\n const n = t.$children$[r];\n let i = 0, o, f, c;\n if (te || (oe = !0, n.$tag$ === \"slot\" && (n.$flags$ |= n.$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 ))), n.$text$ !== null)\n o = n.$elm$ = A.document.createTextNode(n.$text$);\n else if (n.$flags$ & 1)\n o = n.$elm$ = A.document.createTextNode(\"\"), ee(null, n, b);\n else {\n if (b || (b = n.$tag$ === \"svg\"), !A.document)\n throw new Error(\n \"You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.\"\n );\n if (o = n.$elm$ = A.document.createElementNS(\n b ? Ke : Ye,\n !te && K.slotRelocation && n.$flags$ & 2 ? \"slot-fb\" : n.$tag$\n ), b && n.$tag$ === \"foreignObject\" && (b = !1), ee(null, n, b), Qe(Z) && o[\"s-si\"] !== Z && o.classList.add(o[\"s-si\"] = Z), n.$children$)\n for (i = 0; i < n.$children$.length; ++i)\n f = G(e, n, i), f && o.appendChild(f);\n n.$tag$ === \"svg\" ? b = !1 : o.tagName === \"foreignObject\" && (b = !0);\n }\n return o[\"s-hn\"] = L, n.$flags$ & 3 && (o[\"s-sr\"] = !0, o[\"s-cr\"] = q, o[\"s-sn\"] = n.$name$ || \"\", o[\"s-rf\"] = (s = n.$attrs$) == null ? void 0 : s.ref, it(o), c = e && e.$children$ && e.$children$[r], c && c.$tag$ === n.$tag$ && e.$elm$ && M(e.$elm$, !1), ke(q, o, t.$elm$, e == null ? void 0 : e.$elm$)), o;\n}, M = (e, t) => {\n z.$flags$ |= 1;\n const r = Array.from(e.__childNodes || e.childNodes);\n e[\"s-sr\"] && K.experimentalSlotFixes;\n for (let s = r.length - 1; s >= 0; s--) {\n const n = r[s];\n n[\"s-hn\"] !== L && n[\"s-ol\"] && (T(F(n).parentNode, n, F(n)), n[\"s-ol\"].remove(), n[\"s-ol\"] = void 0, n[\"s-sh\"] = void 0, oe = !0), t && M(n, t);\n }\n z.$flags$ &= -2;\n}, Oe = (e, t, r, s, n, i) => {\n let o = e[\"s-cr\"] && e[\"s-cr\"].parentNode || e, f;\n for (o.shadowRoot && o.tagName === L && (o = o.shadowRoot); n <= i; ++n)\n s[n] && (f = G(null, r, n), f && (s[n].$elm$ = f, T(o, f, F(t))));\n}, Ae = (e, t, r) => {\n for (let s = t; s <= r; ++s) {\n const n = e[s];\n if (n) {\n const i = n.$elm$;\n Te(n), i && (B = !0, i[\"s-ol\"] ? i[\"s-ol\"].remove() : M(i, !0), i.remove());\n }\n }\n}, ut = (e, t, r, s, n = !1) => {\n let i = 0, o = 0, f = 0, c = 0, l = t.length - 1, p = t[0], a = t[l], g = s.length - 1, u = s[0], $ = s[g], _, w;\n for (; i <= l && o <= g; )\n if (p == null)\n p = t[++i];\n else if (a == null)\n a = t[--l];\n else if (u == null)\n u = s[++o];\n else if ($ == null)\n $ = s[--g];\n else if (W(p, u, n))\n R(p, u, n), p = t[++i], u = s[++o];\n else if (W(a, $, n))\n R(a, $, n), a = t[--l], $ = s[--g];\n else if (W(p, $, n))\n (p.$tag$ === \"slot\" || $.$tag$ === \"slot\") && M(p.$elm$.parentNode, !1), R(p, $, n), T(e, p.$elm$, a.$elm$.nextSibling), p = t[++i], $ = s[--g];\n else if (W(a, u, n))\n (p.$tag$ === \"slot\" || $.$tag$ === \"slot\") && M(a.$elm$.parentNode, !1), R(a, u, n), T(e, a.$elm$, p.$elm$), a = t[--l], u = s[++o];\n else {\n for (f = -1, c = i; c <= l; ++c)\n if (t[c] && t[c].$key$ !== null && t[c].$key$ === u.$key$) {\n f = c;\n break;\n }\n f >= 0 ? (w = t[f], w.$tag$ !== u.$tag$ ? _ = G(t && t[o], r, f) : (R(w, u, n), t[f] = void 0, _ = w.$elm$), u = s[++o]) : (_ = G(t && t[o], r, o), u = s[++o]), _ && T(\n F(p.$elm$).parentNode,\n _,\n F(p.$elm$)\n );\n }\n i > l ? Oe(\n e,\n s[g + 1] == null ? null : s[g + 1].$elm$,\n r,\n s,\n o,\n g\n ) : o > g && Ae(t, i, l);\n}, W = (e, t, r = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === \"slot\" ? e.$name$ === t.$name$ : r ? (r && !e.$key$ && t.$key$ && (e.$key$ = t.$key$), !0) : e.$key$ === t.$key$ : !1, F = (e) => e && e[\"s-ol\"] || e, R = (e, t, r = !1) => {\n const s = t.$elm$ = e.$elm$, n = e.$children$, i = t.$children$, o = t.$tag$, f = t.$text$;\n let c;\n f === null ? (b = o === \"svg\" ? !0 : o === \"foreignObject\" ? !1 : b, ee(e, t, b), n !== null && i !== null ? ut(s, n, t, i, r) : i !== null ? (e.$text$ !== null && (s.textContent = \"\"), Oe(s, null, t, i, 0, i.length - 1)) : (\n // don't do this on initial render as it can cause non-hydrated content to be removed\n !r && K.updatable && n !== null && Ae(n, 0, n.length - 1)\n ), b && o === \"svg\" && (b = !1)) : (c = s[\"s-cr\"]) ? c.parentNode.textContent = f : e.$text$ !== f && (s.data = f);\n}, x = [], je = (e) => {\n let t, r, s;\n const n = e.__childNodes || e.childNodes;\n for (const i of n) {\n if (i[\"s-sr\"] && (t = i[\"s-cr\"]) && t.parentNode) {\n r = t.parentNode.__childNodes || t.parentNode.childNodes;\n const o = i[\"s-sn\"];\n for (s = r.length - 1; s >= 0; s--)\n if (t = r[s], !t[\"s-cn\"] && !t[\"s-nr\"] && t[\"s-hn\"] !== i[\"s-hn\"])\n if (ge(t, o)) {\n let f = x.find((c) => c.$nodeToRelocate$ === t);\n B = !0, t[\"s-sn\"] = t[\"s-sn\"] || o, f ? (f.$nodeToRelocate$[\"s-sh\"] = i[\"s-hn\"], f.$slotRefNode$ = i) : (t[\"s-sh\"] = i[\"s-hn\"], x.push({\n $slotRefNode$: i,\n $nodeToRelocate$: t\n })), t[\"s-sr\"] && x.map((c) => {\n ge(c.$nodeToRelocate$, t[\"s-sn\"]) && (f = x.find((l) => l.$nodeToRelocate$ === t), f && !c.$slotRefNode$ && (c.$slotRefNode$ = f.$slotRefNode$));\n });\n } else x.some((f) => f.$nodeToRelocate$ === t) || x.push({\n $nodeToRelocate$: t\n });\n }\n i.nodeType === 1 && je(i);\n }\n}, Te = (e) => {\n e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(Te);\n}, T = (e, t, r) => (typeof t[\"s-sn\"] == \"string\" && t[\"s-sr\"] && t[\"s-cr\"] && ke(t[\"s-cr\"], t, e, t.parentElement), e == null ? void 0 : e.insertBefore(t, r));\nfunction ke(e, t, r, s) {\n var n, i;\n let o;\n if (e && typeof t[\"s-sn\"] == \"string\" && t[\"s-sr\"] && e.parentNode && e.parentNode[\"s-sc\"] && (o = t[\"s-si\"] || e.parentNode[\"s-sc\"])) {\n const f = t[\"s-sn\"], c = t[\"s-hn\"];\n if ((n = r.classList) == null || n.add(o + \"-s\"), s && ((i = s.classList) != null && i.contains(o + \"-s\"))) {\n let l = (s.__childNodes || s.childNodes)[0], p = !1;\n for (; l; ) {\n if (l[\"s-sn\"] !== f && l[\"s-hn\"] === c && l[\"s-sr\"]) {\n p = !0;\n break;\n }\n l = l.nextSibling;\n }\n p || s.classList.remove(o + \"-s\");\n }\n }\n}\nvar pt = (e, t, r = !1) => {\n var s, n, i, o, f;\n const c = e.$hostElement$, l = e.$cmpMeta$, p = e.$vnode$ || V(null, null), a = lt(t) ? t : ot(null, null, t);\n if (L = c.tagName, l.$attrsToReflect$ && (a.$attrs$ = a.$attrs$ || {}, l.$attrsToReflect$.map(\n ([g, u]) => a.$attrs$[u] = c[g]\n )), r && a.$attrs$)\n for (const g of Object.keys(a.$attrs$))\n c.hasAttribute(g) && ![\"key\", \"ref\", \"style\", \"class\"].includes(g) && (a.$attrs$[g] = c[g]);\n a.$tag$ = null, a.$flags$ |= 4, e.$vnode$ = a, a.$elm$ = p.$elm$ = c.shadowRoot || c, Z = c[\"s-sc\"], te = !!(l.$flags$ & 1) && !(l.$flags$ & 128), q = c[\"s-cr\"], B = !1, R(p, a, r);\n {\n if (z.$flags$ |= 1, oe) {\n je(a.$elm$);\n for (const g of x) {\n const u = g.$nodeToRelocate$;\n if (!u[\"s-ol\"] && A.document) {\n const $ = A.document.createTextNode(\"\");\n $[\"s-nr\"] = u, T(u.parentNode, u[\"s-ol\"] = $, u);\n }\n }\n for (const g of x) {\n const u = g.$nodeToRelocate$, $ = g.$slotRefNode$;\n if ($) {\n const _ = $.parentNode;\n let w = $.nextSibling;\n {\n let y = (s = u[\"s-ol\"]) == null ? void 0 : s.previousSibling;\n for (; y; ) {\n let h = (n = y[\"s-nr\"]) != null ? n : null;\n if (h && h[\"s-sn\"] === u[\"s-sn\"] && _ === (h.__parentNode || h.parentNode)) {\n for (h = h.nextSibling; h === u || h != null && h[\"s-sr\"]; )\n h = h == null ? void 0 : h.nextSibling;\n if (!h || !h[\"s-nr\"]) {\n w = h;\n break;\n }\n }\n y = y.previousSibling;\n }\n }\n const P = u.__parentNode || u.parentNode, S = u.__nextSibling || u.nextSibling;\n (!w && _ !== P || S !== w) && u !== w && (!u[\"s-hn\"] && u[\"s-ol\"] && (u[\"s-hn\"] = u[\"s-ol\"].parentNode.nodeName), T(_, u, w), u.nodeType === 1 && u.tagName !== \"SLOT-FB\" && (u.hidden = (i = u[\"s-ih\"]) != null ? i : !1)), u && typeof $[\"s-rf\"] == \"function\" && $[\"s-rf\"]($);\n } else\n u.nodeType === 1 && (r && (u[\"s-ih\"] = (o = u.hidden) != null ? o : !1), u.hidden = !0);\n }\n }\n B && xe(a.$elm$), z.$flags$ &= -2, x.length = 0;\n }\n if (K.experimentalScopedSlotChanges && l.$flags$ & 2) {\n const g = a.$elm$.__childNodes || a.$elm$.childNodes;\n for (const u of g)\n u[\"s-hn\"] !== L && !u[\"s-sh\"] && (r && u[\"s-ih\"] == null && (u[\"s-ih\"] = (f = u.hidden) != null ? f : !1), u.hidden = !0);\n }\n q = void 0;\n};\nconst D = {\n content_wrap: 0,\n ignore: [],\n ignore_with: \"_!i-£___£%_\",\n strict: !1,\n tab_size: 2,\n tag_wrap: 0,\n tag_wrap_width: 80,\n trim: []\n}, E = \"__!i-£___£%__\", m = \"!i-£___£%_\", Re = [\n \"area\",\n \"base\",\n \"br\",\n \"col\",\n \"embed\",\n \"hr\",\n \"img\",\n \"input\",\n \"link\",\n \"meta\",\n \"param\",\n \"source\",\n \"track\",\n \"wbr\"\n], ae = (e) => /<(?:[A-Za-z]+[A-Za-z0-9]*)(?:\\s+.*?)*?\\/{0,1}>/.test(e) || /<(?<Element>(?:[A-Za-z]+[A-Za-z0-9]*:)?(?:[A-Za-z]+[A-Za-z0-9]*))(?:\\s+.*?)*?>(?:.|\\n)*?<\\/{1}\\k<Element>>/.test(e) || /<(?<Element>(?:[a-z][a-z0-9._]*:)?[a-z][a-z0-9._]*-[a-z0-9._-]+)(?:\\s+.*?)*?>(?:.|\\n)*?<\\/{1}\\k<Element>>/.test(e), Ne = (e, t) => {\n if (!e || !t)\n throw new Error(\"Both 'current' and 'updates' must be passed-in to mergeObjects()\");\n let r;\n if (Array.isArray(e))\n r = structuredClone(e).concat(t);\n else if (typeof e == \"object\") {\n r = { ...e };\n for (let s of Object.keys(t))\n typeof t[s] != \"object\" ? r[s] = t[s] : r[s] = Ne(r[s] || {}, t[s]);\n }\n return r;\n}, gt = (e, t) => Ne(structuredClone(e), t), $t = (e) => (e = e.replace(/<[\\w:\\-]+([^>]*[^\\/])>/g, (t, r) => t.replace(r, (s) => s.replace(/\\n/g, m + \"nl!\").replace(/\\r/g, m + \"cr!\").replace(/\\s/g, m + \"ws!\"))), e), dt = (e) => e.replace(/\\n/g, E + \"nl!\").replace(/\\r/g, E + \"cr!\").replace(/\\s/g, E + \"ws!\"), ht = (e) => {\n const t = /\\s*<([a-zA-Z0-9:-]+)[^>]*>\\n\\s*<\\/\\1>(?=\\n[ ]*[^\\n]*__!i-£___£%__[^\\n]*\\n)(\\n[ ]*\\S[^\\n]*\\n)|<([a-zA-Z0-9:-]+)[^>]*>(?=\\n[ ]*[^\\n]*__!i-£___£%__[^\\n]*\\n)(\\n[ ]*\\S[^\\n]*\\n\\s*)<\\/\\3>/g;\n return e.replace(t, (r, s, n, i, o) => {\n const f = n || o;\n if (!f)\n return r;\n const c = f.replace(/\\n/g, E + \"nl!\").replace(/\\r/g, E + \"cr!\").replace(/\\s/g, E + \"ws!\");\n return r.replace(f, c);\n });\n}, yt = (e) => {\n const t = /<([A-Za-z][A-Za-z0-9]*|[a-z][a-z0-9._]*-[a-z0-9._-]+)((?:\\s+[A-Za-z0-9_-]+=\"[^\"]*\"|\\s*[a-z]*)*)>/g;\n return e = e.replace(t, (r, s, n) => r.replace(n, (i) => i.replace(/</g, m + \"lt!\").replace(/>/g, m + \"gt!\"))), e;\n}, _t = (e, t) => {\n const r = t.ignore, s = t.ignore_with;\n for (let n = 0; n < r.length; n++) {\n const i = new RegExp(`<${r[n]}[^>]*>((.|\n)*?)</${r[n]}>`, \"g\");\n e = e.replace(i, (o, f) => o.replace(f, (c) => c.replace(/</g, \"-\" + s + \"lt-\").replace(/>/g, \"-\" + s + \"gt-\").replace(/\\n/g, \"-\" + s + \"nl-\").replace(/\\r/g, \"-\" + s + \"cr-\").replace(/\\s/g, \"-\" + s + \"ws-\")));\n }\n return e;\n}, bt = (e, t) => {\n for (let r = 0; r < t.length; r++) {\n const s = new RegExp(`(<${t[r]}[^>]*>)\\\\s+`, \"g\"), n = new RegExp(`\\\\s+(</${t[r]}>)`, \"g\");\n e = e.replace(s, \"$1\").replace(n, \"$1\");\n }\n return e;\n}, vt = (e) => (e = e.replace(/<[\\w:\\-]+([^>]*[^\\/])>/g, (t, r) => t.replace(r, (s) => s.replace(new RegExp(m + \"nl!\", \"g\"), `\n`).replace(new RegExp(m + \"cr!\", \"g\"), \"\\r\").replace(new RegExp(m + \"ws!\", \"g\"), \" \"))), e), wt = (e) => (e = e.replace(/.*__!i-£___£%__[a-z]{2}!.*/g, (t) => t.replace(/__!i-£___£%__[a-z]{2}!/g, (r) => r.replace(new RegExp(E + \"nl!\", \"g\"), `\n`).replace(new RegExp(E + \"cr!\", \"g\"), \"\\r\").replace(new RegExp(E + \"ws!\", \"g\"), \" \"))), e), mt = (e) => (e = e.replace(/<[\\w:\\-]+([^>]*)>/g, (t, r) => t.replace(r, (s) => s.replace(new RegExp(m + \"lt!\", \"g\"), \"<\").replace(new RegExp(m + \"gt!\", \"g\"), \">\"))), e), xt = (e, t) => {\n const r = t.ignore, s = t.ignore_with;\n for (let n = 0; n < r.length; n++) {\n const i = new RegExp(`<${r[n]}[^>]*>((.|\n)*?)</${r[n]}>`, \"g\");\n e = e.replace(i, (o, f) => o.replace(f, (c) => c.replace(new RegExp(\"-\" + s + \"lt-\", \"g\"), \"<\").replace(new RegExp(\"-\" + s + \"gt-\", \"g\"), \">\").replace(new RegExp(\"-\" + s + \"nl-\", \"g\"), `\n`).replace(new RegExp(\"-\" + s + \"cr-\", \"g\"), \"\\r\").replace(new RegExp(\"-\" + s + \"ws-\", \"g\"), \" \")));\n }\n return e;\n}, Et = (e) => {\n var s, n;\n if (typeof e != \"object\") throw new Error(\"Config must be an object.\");\n if (!(Object.hasOwn(e, \"content_wrap\") || Object.hasOwn(e, \"ignore\") || Object.hasOwn(e, \"ignore_with\") || Object.hasOwn(e, \"strict\") || Object.hasOwn(e, \"tab_size\") || Object.hasOwn(e, \"tag_wrap\") || Object.hasOwn(e, \"tag_wrap_width\") || Object.hasOwn(e, \"trim\"))) return D;\n let r = e.tab_size;\n if (r) {\n if (typeof r != \"number\") throw new Error(`tab_size must be a number, not ${typeof e.tab_size}.`);\n if (!Number.isSafeInteger(r)) throw new Error(`Tab size ${r} is not safe. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger for more info.`);\n if (r = Math.floor(r), r < 1 || r > 16) throw new Error(\"Tab size out of range. Expecting 1 to 16.\");\n e.tab_size = r;\n }\n if (Object.hasOwn(e, \"content_wrap\") && typeof e.content_wrap != \"number\")\n throw new Error(`content_wrap config must be a number, not ${typeof e.tag_wrap_width}.`);\n if (Object.hasOwn(e, \"ignore\") && (!Array.isArray(e.ignore) || !((s = e.ignore) != null && s.every((i) => typeof i == \"string\"))))\n throw new Error(\"Ignore config must be an array of strings.\");\n if (Object.hasOwn(e, \"ignore_with\") && typeof e.ignore_with != \"string\")\n throw new Error(`Ignore_with config must be a string, not ${typeof e.ignore_with}.`);\n if (Object.hasOwn(e, \"strict\") && typeof e.strict != \"boolean\")\n throw new Error(`Strict config must be a boolean, not ${typeof e.strict}.`);\n if (Object.hasOwn(e, \"tag_wrap\") && typeof e.tag_wrap == \"boolean\" && (console.warn(\"tag_wrap as a boolean is deprecated, and will not be supported in v0.9.0+. Use `tag_wrap: <number>` instead; where <number> is the max character width acceptable before wrapping attributes.\"), e.tag_wrap_width ? e.tag_wrap = e.tag_wrap_width : e.tag_wrap = D.tag_wrap_width), Object.hasOwn(e, \"tag_wrap\") && typeof e.tag_wrap != \"number\")\n throw new Error(`tag_wrap config must be a number, not ${typeof e.tag_wrap}.`);\n if (Object.hasOwn(e, \"tag_wrap_width\") && console.warn(\"tag_wrap_width is deprecated, and will not be supported in v0.9.0+. Use `tag_wrap: <number>` instead; where <number> is the max character width acceptable before wrapping attributes.\"), Object.hasOwn(e, \"tag_wrap_width\") && typeof e.tag_wrap_width != \"number\")\n throw new Error(`tag_wrap_width config must be a number, not ${typeof e.tag_wrap_width}.`);\n if (Object.hasOwn(e, \"trim\") && (!Array.isArray(e.trim) || !((n = e.trim) != null && n.every((i) => typeof i == \"string\"))))\n throw new Error(\"Trim config must be an array of strings.\");\n return gt(D, e);\n}, St = (e, t, r) => {\n const s = e.trim().split(/\\s+/);\n if (s.length === 0 || s.length === 1 && s[0] === \"\")\n return \"\";\n const n = [];\n let i = \"\";\n const o = r;\n s.forEach((c) => {\n if (c === \"\") return;\n if (c.length >= t) {\n i !== \"\" && n.push(n.length === 0 ? r + i : o + i), n.push(n.length === 0 ? r + c : o + c), i = \"\";\n return;\n }\n const l = i === \"\" ? c : i + \" \" + c;\n l.length <= t ? i = l : (i !== \"\" && n.push(n.length === 0 ? r + i : o + i), i = c);\n }), i !== \"\" && n.push(n.length === 0 ? r + i : o + i);\n const f = n.join(`\n`);\n return dt(f);\n}, Ot = (e, t = !0) => t && !ae(e) ? e : e.replace(/<([a-zA-Z\\-0-9:]+)[^>]*>/g, (r, s) => Re.indexOf(s) > -1 ? `${r.substring(0, r.length - 1)} />`.replace(/\\/\\s\\//g, \"/\") : r.replace(/[\\s]?\\/>/g, `></${s}>`)), At = (e, t = !1) => (e = e.replace(/<textarea[^>]*>((.|\\n)*?)<\\/textarea>/g, (r, s) => r.replace(s, (n) => n.replace(/</g, \"<\").replace(/>/g, \">\").replace(/\"/g, \""\").replace(/'/g, \"'\").replace(/\\n/g, \" \").replace(/\\r/g, \" \").replace(/\\s/g, \" \"))), t && (e = e.replace(/<textarea[^>]*>((.|\\n)*?)<\\/textarea>/g, (r, s) => (r = r.replace(s, (n) => n.replace(/\\n|\\t/g, \"\").replace(/[a-z]+=\"\\s*\"/ig, \"\").replace(/>\\s+</g, \"><\").replace(/\\s+/g, \" \")), r = r.replace(/\\s+/g, \" \").replace(/\\s>/g, \">\").replace(/>\\s/g, \">\").replace(/\\s</g, \"<\").replace(/class=[\"']\\s/g, (n) => n.replace(/\\s/g, \"\")).replace(/(class=.*)\\s([\"'])/g, \"$1$2\"), r))), e), jt = (e, t = !0) => (t && !ae(e) || (e = At(e), e = e.replace(/\\n|\\t/g, \"\"), e = e.replace(/>\\s+</g, \"><\"), e = e.replace(/ {2,}/g, \" \"), e = e.replace(/ >/g, \">\"), e = e.replace(/ </g, \"<\"), e = e.replace(/> /g, \">\"), e = e.replace(/<\\s*\\//g, \"</\"), e = e.replace(/ = /g, \"=\"), e = e.replace(\n /([a-zA-Z0-9_-]+)=(['\"])(.*?)\\2/g,\n (r, s, n, i) => {\n const o = i.trim();\n return `${s}=${n}${o}${n}`;\n }\n), e = e.trim()), e);\nlet H, re;\nconst I = {\n line: []\n}, Tt = (e) => {\n I.line = [];\n let t = -1;\n const r = /(<[^>]+>)|([^<]+)/g;\n return e = e.replace(r, (s, n, i) => (n ? I.line.push({ type: \"tag\", value: s }) : i && i.trim().length > 0 && I.line.push({ type: \"text\", value: s }), t++, `\n[#-# : ${t} : ${s} : #-#]\n`)), e;\n}, kt = (e) => (e = Ot(e, !1), re.length > 0 && (e = bt(e, re)), e = jt(e, !1), e = Tt(e), e), Rt = (e, t) => {\n const r = \" \".repeat(t.tab_size), s = t.tag_wrap, n = t.content_wrap;\n let i = \"\";\n const o = [], f = /<[A-Za-z]+\\b[^>]*(?:.|\\n)*?\\/?>/g, c = /\\s{1}[A-Za-z-]+(?:=\".*?\")?/g;\n I.line.forEach((p, a) => {\n let g = p.value, u = 0;\n const $ = I.line[a - 1], _ = ($ == null ? void 0 : $.value) ?? \"\";\n i += \"0\", a === 0 && u++, g.trim().startsWith(\"</\") && u++, _.trim().startsWith(\"<!doctype\") && u++, _.trim().startsWith(\"<!--\") && u++, _.trim().endsWith(\"/>\") && u++, _.trim().startsWith(\"</\") && u++, ($ == null ? void 0 : $.type) === \"text\" && u++;\n const P = Math.max(0, i.length - u);\n i = i.substring(0, P);\n const S = r.repeat(P);\n if (H && g.trim().startsWith(\"<!--\"))\n return;\n let y = g;\n if (p.type === \"text\" && n > 0 && y.length >= n)\n y = St(y, n, S);\n else if (s > 0 && y.length > s && f.test(y)) {\n f.lastIndex = 0, c.lastIndex = 0;\n const h = y.split(c).filter(Boolean);\n if (h.length >= 2) {\n const Le = y.matchAll(c), Me = S + r;\n let Y = S + h[0] + `\n`;\n for (const We of Le) {\n const Ze = We[0].trim();\n Y += Me + Ze + `\n`;\n }\n const le = h[0].match(/<([A-Za-z_:-]+)/), Fe = le ? le[1] : \"\", Ce = Re.includes(Fe), Pe = h[1].trim(), Ue = S + (H && Ce ? \" \" : \"\");\n Y += Ue + Pe, y = Y;\n } else\n y = S + y;\n } else\n y = S + y;\n o.push(y);\n });\n let l = o.join(`\n`);\n return s > 0 && (l = $t(l)), n > 0 && /\\n[ ]*[^\\n]*__!i-£___£%__[^\\n]*\\n/.test(l) && (l = ht(l)), l = l.replace(\n /<(?<Element>.+).*>[^<]*?[^><\\/\\s][^<]*?<\\/{1}\\k<Element>|<script[^>]*>\\s+<\\/script>|<(\\w+)>\\s+<\\/(\\w+)|<(?:([\\w:\\._-]+)|([\\w:\\._-]+)[^>]*[^\\/])>\\s+<\\/([\\w:\\._-]+)>/g,\n (p) => p.replace(/\\n|\\t|\\s{2,}/g, \"\")\n ), n > 0 && (l = wt(l)), s > 0 && (l = vt(l)), H && (l = l.replace(/\\s\\/>|\\/>/g, \">\")), l.startsWith(`\n`) && (l = l.substring(1)), l.endsWith(`\n`) && (l = l.substring(0, l.length - 1)), l;\n}, Nt = (e, t) => {\n if (!ae(e)) return e;\n const r = t ? Et(t) : D;\n H = r.strict;\n const s = r.ignore.length > 0;\n return re = r.trim, s && (e = _t(e, r)), e = yt(e), e = kt(e), e = Rt(e, r), e = mt(e), s && (e = xt(e, r)), e;\n}, zt = (e, t, r) => {\n [null, void 0, \"\", !1].includes(r) || [\"innerHTML\", \"style\", \"\"].includes(t) || e.setAttribute(t, [\"object\", \"function\"].includes(typeof r) ? \"⚠️ Property must be set through a script or a framework-specific syntax.\" : r);\n}, ze = (e, t, r, s, n) => {\n if (t && typeof t == \"string\") {\n const i = document.createElement(t);\n Object.keys(r || {}).forEach((o) => {\n zt(i, o, r[o]);\n }), s == null || s.forEach((o) => {\n ze(i, o.$tag$, o.$attrs$, o.$children$, o.$text$);\n }), r != null && r.innerHTML && (i.innerHTML = r.innerHTML), e.appendChild(i);\n }\n n && (e.innerHTML = n);\n}, tr = (e, t, r = []) => {\n const s = {};\n if (typeof e != \"object\")\n throw new Error(\"filterArgs - args isn't an object.\");\n for (const n in e)\n if (!r.includes(n)) {\n const i = e[n], o = n.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase();\n (!t || !Object.keys(t).includes(n) || t[n] !== i) && (s[o] = i);\n }\n return s;\n}, rr = (e, t) => {\n var s, n;\n const r = document.getElementById(\"storybook-root\");\n if (r !== null)\n return (n = document.querySelector(\"[lang]\")) == null || n.setAttribute(\"lang\", ((s = t.globals) == null ? void 0 : s.locale) || \"en\"), pt(\n {\n $cmpMeta$: {\n $flags$: 0,\n $tagName$: r.tagName\n },\n $hostElement$: r\n },\n e(t)\n ), r.children[r.children.length - 1];\n}, sr = ({ $tag$: e, $attrs$: t, $children$: r, $text$: s }) => {\n const n = document.createElement(\"div\");\n return ze(n, e, t, r, s), Nt(n.innerHTML, {\n tag_wrap: 40,\n content_wrap: 120\n }).replace(/=\"true\"/g, \"\");\n}, J = (e, t) => {\n if (!t)\n return;\n const r = t.split(\"/\");\n return `${e}${r.slice(2, r.length - 1).join(\"-\")}--docs`;\n};\nvar j, X;\nclass nr {\n constructor(t) {\n /**\n * JsonDocs\n */\n d(this, \"jsonDoc\");\n /**\n * Get component data from the jsonDoc\n * @param tagName - tag name we want to get the data from\n * @returns component data\n */\n k(this, j, (t) => this.jsonDoc.components.find((r) => r.tag === t));\n /**\n * Get the control for the given prop\n * Based on https://storybook.js.org/docs/api/arg-types#controltype\n * @param prop - prop to get control for\n * @returns control type and options if applicable\n */\n k(this, X, (t) => {\n const r = t.type.replace(/\"([^\"]+)\"/g, \"$1\").replace(/\\s/g, \"\").replace(/\\(.*?\\)/g, (s) => s.replace(/\\|/g, \" OR \")).split(\"|\").map((s) => s.trim().replace(/ OR /g, \"|\"));\n return t.type === \"string\" ? { control: { type: \"text\" } } : t.type === \"number\" ? { control: { type: \"number\" } } : t.type === \"boolean\" ? { control: { type: \"boolean\" } } : t.type.startsWith(\"{\") && t.type.endsWith(\"}\") ? { control: { type: \"object\" } } : r.length > 1 ? r.includes(\"string\") ? { control: { type: \"text\" } } : r.every((s) => s == null ? void 0 : s.includes(\"[]\")) ? { control: { type: \"object\" } } : (r.unshift(void 0), { control: { type: \"select\" }, options: r }) : { control: { type: \"object\" } };\n });\n /**\n * Extract component arg types from the component data\n * @param tagName - tag name we want to extract the arg types from\n * @returns component arg types\n */\n d(this, \"extractArgTypes\", (t) => {\n const r = v(this, j).call(this, t), s = r == null ? void 0 : r.props.reduce((p, a) => {\n const { control: g, options: u } = v(this, X).call(this, a);\n return {\n ...p,\n [a.name]: {\n name: a.attr || a.name,\n description: a.docs,\n type: { required: a.required },\n table: {\n category: \"props\",\n type: { summary: a.type },\n defaultValue: { summary: a.default }\n },\n control: g,\n options: u\n }\n };\n }, {}), n = r == null ? void 0 : r.events.reduce(\n (p, a) => ({\n ...p,\n [a.event]: {\n name: a.event,\n description: a.docs,\n table: {\n category: \"events\",\n type: { summary: a.detail }\n }\n }\n }),\n {}\n ), i = r == null ? void 0 : r.methods.reduce(\n (p, a) => ({\n ...p,\n [a.name]: {\n name: a.name,\n description: a.docs,\n table: {\n category: \"methods\",\n type: { summary: a.signature }\n }\n }\n }),\n {}\n ), o = r == null ? void 0 : r.slots.reduce(\n (p, a) => ({\n ...p,\n [a.name]: {\n name: a.name !== \"\" ? a.name : \"default\",\n // default slot are unnamed\n description: a.docs,\n table: {\n category: \"slots\",\n type: { summary: void 0 }\n }\n }\n }),\n {}\n ), f = r == null ? void 0 : r.styles.reduce(\n (p, a) => ({\n ...p,\n [a.name]: {\n name: a.name,\n description: a.docs,\n table: {\n category: \"custom properties\",\n type: { summary: void 0 }\n }\n }\n }),\n {}\n ), c = r == null ? void 0 : r.dependencies.reduce((p, a) => {\n const g = v(this, j).call(this, a);\n return g ? {\n ...p,\n [a]: {\n name: a,\n description: `<a href=\"./?path=/docs/${J(\"\", g == null ? void 0 : g.filePath)}\">View Component Documentation</a>`,\n table: {\n category: \"depends on\",\n type: { summary: void 0 }\n }\n }\n } : p;\n }, {}), l = r == null ? void 0 : r.dependents.reduce((p, a) => {\n const g = v(this, j).call(this, a);\n return g ? {\n ...p,\n [a]: {\n name: a,\n description: `<a href=\"./?path=/docs/${J(\"\", g == null ? void 0 : g.filePath)}\">View Component Documentation</a>`,\n table: {\n category: \"used by\",\n type: { summary: void 0 }\n }\n }\n } : p;\n }, {});\n return {\n ...s,\n ...n,\n ...i,\n ...o,\n ...f,\n ...c,\n ...l\n };\n });\n /**\n * Extract component description from the component data\n * @param tagName - tag name we want to extract the description from\n * @returns component description\n */\n d(this, \"extractComponentDescription\", (t) => {\n const r = v(this, j).call(this, t);\n return (r == null ? void 0 : r.readme) || (r == null ? void 0 : r.docs);\n });\n this.jsonDoc = t;\n }\n}\nj = new WeakMap(), X = new WeakMap();\nconst It = (e, t) => {\n if (t)\n return `${e}${t}`;\n}, Ie = (e) => {\n let t = e.overview ? `${e.overview}\n\n` : \"\";\n const r = e.props.filter(({ attr: n }) => n !== void 0);\n r.length && (t += `Attributes:\n`, t += r.map(({ attr: n, docs: i }) => `- \\`${n}\\`: ${i}\n`).join(\"\"), t += `\n`);\n const s = e.props.filter(({ attr: n }) => n === void 0);\n return s.length && (t += `Properties:\n`, t += s.map(({ name: n, docs: i }) => `- \\`${n}\\`: ${i}\n`).join(\"\"), t += `\n`), e.methods.length && (t += `Methods:\n`, t += e.methods.map(({ name: n, docs: i }) => `- \\`${n}\\`: ${i}\n`).join(\"\"), t += `\n`), e.events.length && (t += `Events:\n`, t += e.events.map(({ event: n, docs: i }) => `- \\`${n}\\`: ${i}\n`).join(\"\"), t += `\n`), e.listeners.length && (t += `Listeners:\n`, t += e.listeners.map(({ event: n }) => `- \\`${n}\\`\n`).join(\"\"), t += `\n`), e.slots.length && (t += `Slots:\n`, t += e.slots.map(({ name: n, docs: i }) => `- \\`${n}\\`: ${i}\n`).join(\"\"), t += `\n`), t;\n}, se = (e) => `${e.docs}\n\nType: \\`${e.type}\\``, ir = (e, t, r, s) => ({\n $schema: \"https://json.schemastore.org/web-types\",\n name: e,\n version: t,\n \"description-markup\": \"markdown\",\n contributions: {\n html: {\n elements: r.components.map((n) => {\n const i = J(s, n.filePath);\n return {\n name: n.tag,\n description: Ie(n),\n \"doc-url\": i,\n attributes: n.props.filter((o) => o.attr).map((o) => ({\n name: o.attr,\n description: se(o),\n \"doc-url\": i,\n value: {\n type: o.type,\n default: o.default,\n required: o.required\n }\n })),\n js: {\n properties: n.props.map((o) => ({\n name: o.name,\n description: se(o),\n \"doc-url\": i,\n value: {\n type: o.type,\n default: o.default,\n required: o.required\n }\n })),\n events: n.events.map((o) => ({\n name: o.event,\n description: o.docs\n }))\n },\n css: {\n properties: n.styles.map((o) => ({\n name: o.name,\n description: o.docs\n }))\n }\n };\n })\n }\n }\n}), Lt = (e, t, r) => [\n { name: \"Storybook\", url: J(e, r) },\n { name: \"Sources\", url: It(t, r) }\n], Mt = (e) => {\n if (!e.values.some(({ value: t }) => t === void 0))\n return e.values.map(({ value: t }) => ({ name: t }));\n}, or = (e, t, r) => ({\n version: 1.1,\n tags: e.components.map((s) => {\n const n = Lt(t, r, s.filePath);\n return {\n name: s.tag,\n description: Ie(s),\n attributes: s.props.map((i) => ({\n name: i.attr || i.name,\n description: se(i),\n values: Mt(i),\n references: n\n })),\n references: n\n };\n }),\n globalAttributes: [],\n valueSets: []\n}), ar = (e) => ({\n version: 1.1,\n properties: e.components.flatMap(\n (t) => t.styles.map((r) => ({\n name: r.name,\n description: r.docs\n }))\n )\n}), lr = (e) => {\n const t = { value: \"2023\", pattern: \"yyyy\" }, r = { value: \"12\", pattern: \"mm\" }, s = { value: \"24\", pattern: \"dd\" };\n return Pt([t.value, r.value, s.value].join(\"-\"), e, { timeZone: \"UTC\" }).replace(t.value, t.pattern).replace(r.value, r.pattern).replace(s.value, s.pattern);\n}, cr = (e) => e.toISOString().split(\"T\")[0], Ft = (e, t, r) => {\n const s = e.closest(\"[lang]\"), n = Intl.NumberFormat.supportedLocalesOf(s == null ? void 0 : s.lang), i = n.length > 0 && typeof n[0] == \"string\" ? n[0] : navigator.language || r, o = i.split(\"-\").shift();\n return Object.keys(t).length === 0 ? {\n locale: i,\n messages: { lang: r }\n } : {\n locale: i,\n messages: t[o] || t[r] || { lang: r }\n };\n}, fr = (e, t, r) => new Intl.NumberFormat(t, { style: \"currency\", currency: r }).format(e), ur = (e, t, r = 0) => new Intl.NumberFormat(t, { minimumFractionDigits: r }).format(Number(e)), pr = (e, t, r = 0) => new Intl.NumberFormat(t, {\n style: \"percent\",\n minimumFractionDigits: r,\n maximumFractionDigits: r\n}).format(e), gr = (e, t, r, s = \"short\", n = 0) => new Intl.NumberFormat(t, {\n style: \"unit\",\n unit: r,\n unitDisplay: s,\n minimumFractionDigits: n,\n maximumFractionDigits: n\n}).format(e), Ct = /^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$/, Pt = (e, t, r) => typeof e != \"string\" || e === \"\" || !Ct.test(e) ? \"\" : new Intl.DateTimeFormat(t, r).format(new Date(e)), $r = (e, t) => (r) => Ft(r, e, t), dr = ({ disconnect: e, observe: t, takeRecords: r }) => {\n class s {\n constructor(i) {\n /**\n *\n */\n d(this, \"disconnect\", e);\n /**\n *\n */\n d(this, \"observe\", t);\n /**\n *\n */\n d(this, \"takeRecords\", r);\n /**\n *\n */\n d(this, \"cb\");\n this.cb = i;\n }\n }\n return [window, global].forEach((n) => {\n Object.defineProperty(n, \"MutationObserver\", {\n writable: !0,\n configurable: !0,\n value: s\n });\n }), s;\n}, hr = ({ disconnect: e, observe: t }) => {\n class r {\n constructor(n) {\n /**\n *\n */\n d(this, \"disconnect\", e);\n /**\n *\n */\n d(this, \"observe\", t);\n /**\n *\n */\n d(this, \"unobserve\");\n /**\n *\n */\n d(this, \"cb\");\n this.cb = n;\n }\n }\n return [window, global].forEach((s) => {\n Object.defineProperty(s, \"ResizeObserver\", {\n writable: !0,\n configurable: !0,\n value: r\n });\n }), r;\n};\nclass Ut extends Event {\n constructor() {\n super(...arguments);\n /**\n *\n */\n d(this, \"detail\");\n }\n // eslint-disable-line @typescript-eslint/no-explicit-any\n}\nconst yr = () => {\n class e extends Ut {\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}, _r = (e) => {\n const t = (r) => (setTimeout(r, 1), e(), 0);\n return [window, global].forEach((r) => {\n Object.defineProperty(r, \"requestAnimationFrame\", {\n writable: !0,\n configurable: !0,\n value: t\n });\n }), t;\n};\nexport {\n Ht as ClassList,\n Vt as Cursor,\n Ge as Page,\n er as Paginate,\n nr as StorybookPreview,\n qt as allItemsAreString,\n Yt as cleanString,\n Zt as createID,\n Ct as dateRegExp,\n cr as dateToString,\n $r as defineLocales,\n tr as filterArgs,\n Gt as focusableElements,\n lr as getLocaleDatePattern,\n Be as getObjectValueFromKey,\n _e as getParentWindows,\n sr as getStoryHTML,\n J as getStorybookUrl,\n Jt as getWindows,\n ne as isObject,\n Bt as isTagName,\n Kt as isValidNumber,\n qe as isValidString,\n Dt as isValideID,\n fr as localeCurrency,\n Pt as localeDate,\n ur as localeNumber,\n pr as localePercent,\n gr as localeUnit,\n Qt as nextTick,\n _r as setUpRequestAnimationFrameMock,\n dr as setupMutationObserverMock,\n hr as setupResizeObserverMock,\n yr as setupSubmitEventMock,\n rr as stencilWrapper,\n Xt as toString,\n ar as vsCodeCssGenerator,\n or as vsCodeGenerator,\n ir as webTypesGenerator\n};\n//# sourceMappingURL=index.es.js.map\n"],"version":3}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as $r } from './index.es.js';
|
|
2
2
|
|
|
3
3
|
const errors$1 = {
|
|
4
4
|
required: "This field is required."
|
|
@@ -61,6 +61,12 @@ const input$1 = {
|
|
|
61
61
|
display: "Display password value",
|
|
62
62
|
hide: "Hide password value"
|
|
63
63
|
},
|
|
64
|
+
combobox: {
|
|
65
|
+
notFound: "No elements match your input",
|
|
66
|
+
notAvailable: "No elements available",
|
|
67
|
+
loadMore: "Load more",
|
|
68
|
+
search: "Search…"
|
|
69
|
+
},
|
|
64
70
|
text: {
|
|
65
71
|
helpText: {
|
|
66
72
|
email: "Expected format: name@example.com",
|
|
@@ -107,7 +113,8 @@ const general$1 = {
|
|
|
107
113
|
cancel: "Cancel",
|
|
108
114
|
close: "Close",
|
|
109
115
|
next: "next",
|
|
110
|
-
previous: "previous"
|
|
116
|
+
previous: "previous",
|
|
117
|
+
reset: "reset"
|
|
111
118
|
};
|
|
112
119
|
const menuItem$1 = {
|
|
113
120
|
badgeLabel: "Include notification(s)",
|
|
@@ -204,6 +211,12 @@ const input = {
|
|
|
204
211
|
display: "Afficher le mot de passe",
|
|
205
212
|
hide: "Masquer le mot de passe"
|
|
206
213
|
},
|
|
214
|
+
combobox: {
|
|
215
|
+
notFound: "Aucun élément ne correspondont a votre saisie",
|
|
216
|
+
notAvailable: "Aucun élément disponible",
|
|
217
|
+
loadMore: "Afficher plus",
|
|
218
|
+
search: "Recherche…"
|
|
219
|
+
},
|
|
207
220
|
text: {
|
|
208
221
|
helpText: {
|
|
209
222
|
email: "Format attendu : nom@exemple.fr",
|
|
@@ -250,7 +263,8 @@ const general = {
|
|
|
250
263
|
cancel: "Annuler",
|
|
251
264
|
close: "Fermer",
|
|
252
265
|
next: "suivant",
|
|
253
|
-
previous: "précédent"
|
|
266
|
+
previous: "précédent",
|
|
267
|
+
reset: "réinitialiser"
|
|
254
268
|
};
|
|
255
269
|
const menuItem = {
|
|
256
270
|
badgeLabel: "Notification(s) incluse(s)",
|
|
@@ -293,7 +307,7 @@ const messages = { en, fr };
|
|
|
293
307
|
* @param element - element we need to get the language
|
|
294
308
|
* @returns messages object
|
|
295
309
|
*/
|
|
296
|
-
const initLocales =
|
|
310
|
+
const initLocales = $r(messages, defaultLocale);
|
|
297
311
|
|
|
298
312
|
export { initLocales as i };
|
|
299
313
|
//# sourceMappingURL=index2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"index2.js","mappings":"
|
|
1
|
+
{"file":"index2.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,MAAM,aAAa,GAAG,IAAI;AAC1B,MAAM,QAAQ,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE;AAE3B;;;;AAIG;AACU,MAAA,WAAW,GAAGA,EAAa,CAAC,QAAQ,EAAE,aAAa;;;;","names":["defineLocales"],"sources":["src/locales/index.ts"],"sourcesContent":["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,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { Z as Zt, X as Xt } from './index.es.js';
|
|
3
3
|
import { d as defineCustomElement$4, a as directions, S as Status } from './mg-menu-item2.js';
|
|
4
4
|
import { i as initLocales } from './index2.js';
|
|
5
5
|
import { d as defineCustomElement$b } from './mg-badge2.js';
|
|
@@ -57,7 +57,7 @@ const MgActionMore$1 = /*@__PURE__*/ proxyCustomElement(class MgActionMore exten
|
|
|
57
57
|
************/
|
|
58
58
|
this.name = 'mg-action-more';
|
|
59
59
|
this.classBase = 'mg-c-action-more';
|
|
60
|
-
this.mgPopoverIdentifier =
|
|
60
|
+
this.mgPopoverIdentifier = Zt(this.name);
|
|
61
61
|
/**
|
|
62
62
|
* Define button properties
|
|
63
63
|
*/
|
|
@@ -104,15 +104,15 @@ const MgActionMore$1 = /*@__PURE__*/ proxyCustomElement(class MgActionMore exten
|
|
|
104
104
|
}
|
|
105
105
|
validateItems(newValue) {
|
|
106
106
|
if (!isMgActionMoreItems(newValue)) {
|
|
107
|
-
throw new Error(`<${this.name}> prop "items" is required and all values must be the same type, MgActionMoreItemType or MgActionMoreDividerType. Passed value: ${
|
|
107
|
+
throw new Error(`<${this.name}> prop "items" is required and all values must be the same type, MgActionMoreItemType or MgActionMoreDividerType. Passed value: ${Xt(newValue)}.`);
|
|
108
108
|
}
|
|
109
109
|
else if (isMgActionMoreItems(newValue) && newValue.length > 0 && (isMgActionMoreDivider(newValue[0]) || isMgActionMoreDivider(newValue[newValue.length - 1]))) {
|
|
110
|
-
throw new Error(`<${this.name}> prop "items" can’t have a divider at the beginning or the end of the array. Passed value: ${
|
|
110
|
+
throw new Error(`<${this.name}> prop "items" can’t have a divider at the beginning or the end of the array. Passed value: ${Xt(newValue)}.`);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
validateIcon(newValue) {
|
|
114
114
|
if (newValue && !isMgActionMoreIcon(newValue)) {
|
|
115
|
-
throw new Error(`<${this.name}> prop "icon" must match MgActionMoreIconType. Passed value: ${
|
|
115
|
+
throw new Error(`<${this.name}> prop "icon" must match MgActionMoreIconType. Passed value: ${Xt(newValue)}.`);
|
|
116
116
|
}
|
|
117
117
|
else if ((newValue === null || newValue === void 0 ? void 0 : newValue.icon) === undefined && Boolean(this.button.isIcon)) {
|
|
118
118
|
this.icon = { icon: 'ellipsis' };
|
|
@@ -120,7 +120,7 @@ const MgActionMore$1 = /*@__PURE__*/ proxyCustomElement(class MgActionMore exten
|
|
|
120
120
|
}
|
|
121
121
|
validateButton(newValue) {
|
|
122
122
|
if (newValue && !isMgActionMoreButton(newValue)) {
|
|
123
|
-
throw new Error(`<${this.name}> prop "button" must match MgActionMoreButtonType. Passed value: ${
|
|
123
|
+
throw new Error(`<${this.name}> prop "button" must match MgActionMoreButtonType. Passed value: ${Xt(newValue)}.`);
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
validateDisplayChevron(newValue) {
|
|
@@ -154,9 +154,9 @@ const MgActionMore$1 = /*@__PURE__*/ proxyCustomElement(class MgActionMore exten
|
|
|
154
154
|
[`${this.classBase}__chevron--rotate`]: this.expanded === true,
|
|
155
155
|
} }, h("mg-icon", { icon: "chevron-down" })));
|
|
156
156
|
}
|
|
157
|
-
return (h(Host, { key: '
|
|
157
|
+
return (h(Host, { key: '655b4be7b0b17db8ad6e2d688f59c18f2750dfe4', "data-mg-popover-guard": this.mgPopoverIdentifier }, h("span", { key: '19f5763f7732fb156803fb6a24f776f182d230f4', class: this.classBase }, h("mg-popover", { key: '617fefddd54794e3f3da60e700e1c60e0758c66b', identifier: this.mgPopoverIdentifier, display: this.expanded, "onDisplay-change": this.handleDisplayChange }, h("mg-button", { key: 'c9ef1d8f771b015ddb5b8f280c3657e74606ef22', variant: this.button.variant, isIcon: this.button.isIcon, disabled: this.button.disabled, type: "button", label: buttonLabel, onClick: this.handleButton }, this.icon && h("mg-icon", Object.assign({ key: 'ded976da4cd3a457a232aee9613dc9e108c35358' }, this.icon)), !this.button.isIcon && buttonContent), h("div", { key: 'e3308c1e0ae198f204c283408f9c3afc154ddf21', slot: "content" }, h("mg-menu", { key: '70c222a09f42b938f56a5bb02fa4193ca8f47788', direction: directions.VERTICAL, label: this.messages.label }, this.items.map(item => {
|
|
158
158
|
var _a, _b;
|
|
159
|
-
return isMgActionMoreDivider(item) ? (h("mg-divider", { class: "mg-c-action-more__divider", key: "divider" })) : (h("mg-menu-item", { key: item.label, status: item.status || Status.VISIBLE, target: item.target, href: item.href,
|
|
159
|
+
return isMgActionMoreDivider(item) ? (h("mg-divider", { class: "mg-c-action-more__divider", key: "divider", "full-width": true })) : (h("mg-menu-item", { key: item.label, status: item.status || Status.VISIBLE, target: item.target, href: item.href,
|
|
160
160
|
// eslint-disable-next-line react/jsx-no-bind
|
|
161
161
|
onClick: e => this.handleItemClick(e, item.mouseEventHandler) }, ((_a = item.icon) === null || _a === void 0 ? void 0 : _a.icon) && h("mg-icon", { icon: item.icon.icon, variant: item.icon.variant, variantStyle: item.icon.variantStyle, slot: "image" }), h("span", { slot: "label" }, item.label), ((_b = item.badge) === null || _b === void 0 ? void 0 : _b.label) && h("mg-badge", { label: item.badge.label, value: item.badge.value, slot: "information", variant: "text-color" })));
|
|
162
162
|
})))))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"mg-action-more.js","mappings":";;;;;;;;;;;;;AAAA,MAAM,eAAe,GAAG,kwBAAkwB;;ACQ1xB;;;;AAIG;AACH,MAAM,mBAAmB,GAAG,CAAC,IAAa,KAAoC;IAC5E,MAAM,KAAK,GAAG,IAA8B;AAC5C,IAAA,QACE,OAAO,KAAK,KAAK,QAAQ;AACzB,QAAA,KAAK,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,OAAO,IAAI,KAAK,QAAQ,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,IAAI,OAAO,IAAI,CAAC,iBAAiB,KAAK,UAAU,KAAK,qBAAqB,CAAC,IAAI,CAAC,CAAC;AAEpK,CAAC;AAED;;;;AAIG;AACH,MAAM,qBAAqB,GAAG,CAAC,IAAa,KAAsC,OAAO,IAAI,KAAK,QAAQ,IAAK,IAAgC,CAAC,SAAS;AAEzJ;;;;AAIG;AACH,MAAM,oBAAoB,GAAG,CAAC,IAAa,KAAoC;IAC7E,MAAM,MA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["MgActionMore","__stencil_proxyCustomElement","createID","toString"],"sources":["../styles/dist/components/mg-action-more.css?tag=mg-action-more&encapsulation=shadow","src/components/molecules/mg-action-more/mg-action-more.tsx"],"sourcesContent":[".mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media(prefers-reduced-motion){*{animation:none !important;transition:none !important}}:host{--mg-c-popover-padding-vertical: var(--mg-b-size-8);--mg-c-popover-padding-horizontal: 0;--mg-c-popover-max-width: unset}.mg-c-action-more__divider{--mg-c-divider-spacing-vertical: var(--mg-b-size-4)}.mg-c-action-more__chevron{transition:200ms}.mg-c-action-more__chevron--rotate.mg-c-action-more__chevron{transform:rotate(180deg)}/*# sourceMappingURL=mg-action-more.css.map */\n","import { Component, h, Element, Prop, Watch, State, Host } from '@stencil/core';\nimport { createID, toString } from '@mgdis/stencil-helpers';\nimport { Status } from '../menus/mg-menu-item/mg-menu-item.conf';\nimport { directions } from '../menus/mg-menu/mg-menu.conf';\nimport { initLocales } from '../../../locales';\nimport type { MessageType } from '../../../locales/index.conf';\nimport type { MgActionMoreItemType, MgActionMoreButtonType, MgActionMoreIconType, MgActionMoreDividerType } from './mg-action-more.conf';\n\n/**\n * MgActionMore['items'] type guard\n * @param prop - commponent items prop\n * @returns return true if type is valid\n */\nconst isMgActionMoreItems = (prop: unknown): prop is MgActionMoreItemType[] => {\n const items = prop as MgActionMoreItemType[];\n return (\n typeof items === 'object' &&\n items.every(item => (typeof item === 'object' && typeof item.label === 'string' && typeof item.mouseEventHandler === 'function') || isMgActionMoreDivider(item))\n );\n};\n\n/**\n * MgActionMoreDividerType type guard\n * @param item - component item\n * @returns return true if type is valid\n */\nconst isMgActionMoreDivider = (item: unknown): item is MgActionMoreDividerType => typeof item === 'object' && (item as MgActionMoreDividerType).isDivider;\n\n/**\n * MgActionMore['button'] type guard\n * @param prop - commponent button prop\n * @returns return true if type is valid\n */\nconst isMgActionMoreButton = (prop: unknown): prop is MgActionMoreButtonType => {\n const button = prop as MgActionMoreButtonType;\n return typeof button === 'object' && typeof button.variant === 'string' && typeof button.isIcon === 'boolean';\n};\n\n/**\n * MgActionMore['icon'] type guard\n * @param prop - commponent icon prop\n * @returns return true if type is valid\n */\nconst isMgActionMoreIcon = (prop: unknown): prop is MgActionMoreIconType => {\n const icon = prop as MgActionMoreIconType;\n return typeof icon === 'object' && typeof icon.icon === 'string';\n};\n\n@Component({\n tag: 'mg-action-more',\n styleUrl: '../../../../node_modules/@mgdis/styles/dist/components/mg-action-more.css',\n shadow: true,\n})\nexport class MgActionMore {\n /************\n * Internal *\n ************/\n\n private readonly name = 'mg-action-more';\n private readonly classBase = 'mg-c-action-more';\n private readonly mgPopoverIdentifier = createID(this.name);\n private messages: MessageType;\n\n /**************\n * Decorators *\n **************/\n\n /**\n * Get component DOM element\n */\n @Element() element: HTMLMgActionMoreElement;\n\n /**\n * Define the menu-items elements\n */\n @Prop() items!: (MgActionMoreItemType | MgActionMoreDividerType)[];\n @Watch('items')\n validateItems(newValue: MgActionMore['items']): void {\n if (!isMgActionMoreItems(newValue)) {\n throw new Error(\n `<${this.name}> prop \"items\" is required and all values must be the same type, MgActionMoreItemType or MgActionMoreDividerType. Passed value: ${toString(newValue)}.`,\n );\n } else if (isMgActionMoreItems(newValue) && newValue.length > 0 && (isMgActionMoreDivider(newValue[0]) || isMgActionMoreDivider(newValue[newValue.length - 1]))) {\n throw new Error(`<${this.name}> prop \"items\" can’t have a divider at the beginning or the end of the array. Passed value: ${toString(newValue)}.`);\n }\n }\n\n /**\n * Define displayed icon\n */\n @Prop({ mutable: true }) icon?: MgActionMoreIconType;\n @Watch('icon')\n validateIcon(newValue: MgActionMore['icon']): void {\n if (newValue && !isMgActionMoreIcon(newValue)) {\n throw new Error(`<${this.name}> prop \"icon\" must match MgActionMoreIconType. Passed value: ${toString(newValue)}.`);\n } else if (newValue?.icon === undefined && Boolean(this.button.isIcon)) {\n this.icon = { icon: 'ellipsis' };\n }\n }\n\n /**\n * Define button properties\n */\n @Prop() button?: MgActionMoreButtonType = { variant: 'flat', isIcon: true };\n @Watch('button')\n validateButton(newValue: MgActionMore['button']): void {\n if (newValue && !isMgActionMoreButton(newValue)) {\n throw new Error(`<${this.name}> prop \"button\" must match MgActionMoreButtonType. Passed value: ${toString(newValue)}.`);\n }\n }\n\n /**\n * Define if chevron is display\n */\n @Prop() displayChevron = false;\n @Watch('displayChevron')\n validateDisplayChevron(newValue: MgActionMore['displayChevron']): void {\n if (newValue && this.button.isIcon === true) {\n throw new Error(`<${this.name}> prop \"displayChevron\" can't be used with a 'button\" prop \"isIcon\" attribute.`);\n }\n }\n /**\n * Menu expanded state\n */\n @State() expanded = false;\n\n /************\n * Methods *\n ***********/\n\n /**\n * Toggle expanded props\n */\n private toggleExpanded = (): void => {\n this.expanded = !this.expanded;\n };\n\n /**\n * Handle popover display change value\n * @param event - display change updated value\n */\n private handleDisplayChange = (event: CustomEvent): void => {\n this.expanded = event.detail;\n };\n\n /**\n * Button click handler\n */\n private handleButton = (): void => {\n this.toggleExpanded();\n };\n\n /**\n * Item click handler\n * @param event - click event\n * @param customHandler - item['mouseEventHandler']\n */\n private handleItemClick = (event: MouseEvent, customHandler: MgActionMoreItemType['mouseEventHandler']) => {\n this.expanded = false;\n customHandler(event);\n };\n\n /*************\n * Lifecycle *\n *************/\n\n /**\n * Validate props\n */\n componentWillLoad(): void {\n this.messages = initLocales(this.element).messages.actionMore as MessageType;\n this.validateItems(this.items);\n this.validateButton(this.button);\n this.validateIcon(this.icon);\n this.validateDisplayChevron(this.displayChevron);\n }\n\n /**\n * Render\n * @returns HTML Element\n */\n render(): HTMLElement {\n const buttonLabel = this.button.label || this.messages.label;\n const buttonContent = [buttonLabel];\n\n if (!this.button.isIcon && this.displayChevron) {\n buttonContent.push(\n <span\n class={{\n [`${this.classBase}__chevron`]: true,\n [`${this.classBase}__chevron--rotate`]: this.expanded === true,\n }}\n >\n <mg-icon icon=\"chevron-down\"></mg-icon>\n </span>,\n );\n }\n\n return (\n <Host data-mg-popover-guard={this.mgPopoverIdentifier}>\n <span class={this.classBase}>\n <mg-popover identifier={this.mgPopoverIdentifier} display={this.expanded} onDisplay-change={this.handleDisplayChange}>\n <mg-button variant={this.button.variant} isIcon={this.button.isIcon} disabled={this.button.disabled} type=\"button\" label={buttonLabel} onClick={this.handleButton}>\n {this.icon && <mg-icon {...this.icon}></mg-icon>}\n {!this.button.isIcon && buttonContent}\n </mg-button>\n <div slot=\"content\">\n <mg-menu direction={directions.VERTICAL} label={this.messages.label}>\n {this.items.map(item =>\n isMgActionMoreDivider(item) ? (\n <mg-divider class=\"mg-c-action-more__divider\" key=\"divider\"></mg-divider>\n ) : (\n <mg-menu-item\n key={item.label}\n status={item.status || Status.VISIBLE}\n target={item.target}\n href={item.href}\n // eslint-disable-next-line react/jsx-no-bind\n onClick={e => this.handleItemClick(e, item.mouseEventHandler)}\n >\n {item.icon?.icon && <mg-icon icon={item.icon.icon} variant={item.icon.variant} variantStyle={item.icon.variantStyle} slot=\"image\"></mg-icon>}\n <span slot=\"label\">{item.label}</span>\n {item.badge?.label && <mg-badge label={item.badge.label} value={item.badge.value} slot=\"information\" variant=\"text-color\"></mg-badge>}\n </mg-menu-item>\n ),\n )}\n </mg-menu>\n </div>\n </mg-popover>\n </span>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
1
|
+
{"file":"mg-action-more.js","mappings":";;;;;;;;;;;;;AAAA,MAAM,eAAe,GAAG,kwBAAkwB;;ACQ1xB;;;;AAIG;AACH,MAAM,mBAAmB,GAAG,CAAC,IAAa,KAAoC;IAC5E,MAAM,KAAK,GAAG,IAA8B;AAC5C,IAAA,QACE,OAAO,KAAK,KAAK,QAAQ;AACz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CAAA,CAAA,MAAA,EAAA,EAAM,IAAI,EAAC,OAAO,IAAE,IAAI,CAAC,KAAK,CAAQ,EACrC,CAAA,CAAA,EAAA,GAAA,IAAI,CAAC,KAAK,0CAAE,KAAK,KAAI,CAAU,CAAA,UAAA,EAAA,EAAA,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,EAAC,aAAa,EAAC,OAAO,EAAC,YAAY,EAAY,CAAA,CACxH,CAChB;AAAA,SAAA,CACF,CACO,CACN,CACK,CACR,CACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["MgActionMore","__stencil_proxyCustomElement","createID","toString"],"sources":["../styles/dist/components/mg-action-more.css?tag=mg-action-more&encapsulation=shadow","src/components/molecules/mg-action-more/mg-action-more.tsx"],"sourcesContent":[".mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media(prefers-reduced-motion){*{animation:none !important;transition:none !important}}:host{--mg-c-popover-padding-vertical: var(--mg-b-size-8);--mg-c-popover-padding-horizontal: 0;--mg-c-popover-max-width: unset}.mg-c-action-more__divider{--mg-c-divider-spacing-vertical: var(--mg-b-size-4)}.mg-c-action-more__chevron{transition:200ms}.mg-c-action-more__chevron--rotate.mg-c-action-more__chevron{transform:rotate(180deg)}/*# sourceMappingURL=mg-action-more.css.map */\n","import { Component, h, Element, Prop, Watch, State, Host } from '@stencil/core';\nimport { createID, toString } from '@mgdis/stencil-helpers';\nimport { Status } from '../menus/mg-menu-item/mg-menu-item.conf';\nimport { directions } from '../menus/mg-menu/mg-menu.conf';\nimport { initLocales } from '../../../locales';\nimport type { MessageType } from '../../../locales/index.conf';\nimport type { MgActionMoreItemType, MgActionMoreButtonType, MgActionMoreIconType, MgActionMoreDividerType } from './mg-action-more.conf';\n\n/**\n * MgActionMore['items'] type guard\n * @param prop - commponent items prop\n * @returns return true if type is valid\n */\nconst isMgActionMoreItems = (prop: unknown): prop is MgActionMoreItemType[] => {\n const items = prop as MgActionMoreItemType[];\n return (\n typeof items === 'object' &&\n items.every(item => (typeof item === 'object' && typeof item.label === 'string' && typeof item.mouseEventHandler === 'function') || isMgActionMoreDivider(item))\n );\n};\n\n/**\n * MgActionMoreDividerType type guard\n * @param item - component item\n * @returns return true if type is valid\n */\nconst isMgActionMoreDivider = (item: unknown): item is MgActionMoreDividerType => typeof item === 'object' && (item as MgActionMoreDividerType).isDivider;\n\n/**\n * MgActionMore['button'] type guard\n * @param prop - commponent button prop\n * @returns return true if type is valid\n */\nconst isMgActionMoreButton = (prop: unknown): prop is MgActionMoreButtonType => {\n const button = prop as MgActionMoreButtonType;\n return typeof button === 'object' && typeof button.variant === 'string' && typeof button.isIcon === 'boolean';\n};\n\n/**\n * MgActionMore['icon'] type guard\n * @param prop - commponent icon prop\n * @returns return true if type is valid\n */\nconst isMgActionMoreIcon = (prop: unknown): prop is MgActionMoreIconType => {\n const icon = prop as MgActionMoreIconType;\n return typeof icon === 'object' && typeof icon.icon === 'string';\n};\n\n@Component({\n tag: 'mg-action-more',\n styleUrl: '../../../../node_modules/@mgdis/styles/dist/components/mg-action-more.css',\n shadow: true,\n})\nexport class MgActionMore {\n /************\n * Internal *\n ************/\n\n private readonly name = 'mg-action-more';\n private readonly classBase = 'mg-c-action-more';\n private readonly mgPopoverIdentifier = createID(this.name);\n private messages: MessageType;\n\n /**************\n * Decorators *\n **************/\n\n /**\n * Get component DOM element\n */\n @Element() element: HTMLMgActionMoreElement;\n\n /**\n * Define the menu-items elements\n */\n @Prop() items!: (MgActionMoreItemType | MgActionMoreDividerType)[];\n @Watch('items')\n validateItems(newValue: MgActionMore['items']): void {\n if (!isMgActionMoreItems(newValue)) {\n throw new Error(\n `<${this.name}> prop \"items\" is required and all values must be the same type, MgActionMoreItemType or MgActionMoreDividerType. Passed value: ${toString(newValue)}.`,\n );\n } else if (isMgActionMoreItems(newValue) && newValue.length > 0 && (isMgActionMoreDivider(newValue[0]) || isMgActionMoreDivider(newValue[newValue.length - 1]))) {\n throw new Error(`<${this.name}> prop \"items\" can’t have a divider at the beginning or the end of the array. Passed value: ${toString(newValue)}.`);\n }\n }\n\n /**\n * Define displayed icon\n */\n @Prop({ mutable: true }) icon?: MgActionMoreIconType;\n @Watch('icon')\n validateIcon(newValue: MgActionMore['icon']): void {\n if (newValue && !isMgActionMoreIcon(newValue)) {\n throw new Error(`<${this.name}> prop \"icon\" must match MgActionMoreIconType. Passed value: ${toString(newValue)}.`);\n } else if (newValue?.icon === undefined && Boolean(this.button.isIcon)) {\n this.icon = { icon: 'ellipsis' };\n }\n }\n\n /**\n * Define button properties\n */\n @Prop() button?: MgActionMoreButtonType = { variant: 'flat', isIcon: true };\n @Watch('button')\n validateButton(newValue: MgActionMore['button']): void {\n if (newValue && !isMgActionMoreButton(newValue)) {\n throw new Error(`<${this.name}> prop \"button\" must match MgActionMoreButtonType. Passed value: ${toString(newValue)}.`);\n }\n }\n\n /**\n * Define if chevron is display\n */\n @Prop() displayChevron = false;\n @Watch('displayChevron')\n validateDisplayChevron(newValue: MgActionMore['displayChevron']): void {\n if (newValue && this.button.isIcon === true) {\n throw new Error(`<${this.name}> prop \"displayChevron\" can't be used with a 'button\" prop \"isIcon\" attribute.`);\n }\n }\n /**\n * Menu expanded state\n */\n @State() expanded = false;\n\n /************\n * Methods *\n ***********/\n\n /**\n * Toggle expanded props\n */\n private toggleExpanded = (): void => {\n this.expanded = !this.expanded;\n };\n\n /**\n * Handle popover display change value\n * @param event - display change updated value\n */\n private handleDisplayChange = (event: CustomEvent): void => {\n this.expanded = event.detail;\n };\n\n /**\n * Button click handler\n */\n private handleButton = (): void => {\n this.toggleExpanded();\n };\n\n /**\n * Item click handler\n * @param event - click event\n * @param customHandler - item['mouseEventHandler']\n */\n private handleItemClick = (event: MouseEvent, customHandler: MgActionMoreItemType['mouseEventHandler']) => {\n this.expanded = false;\n customHandler(event);\n };\n\n /*************\n * Lifecycle *\n *************/\n\n /**\n * Validate props\n */\n componentWillLoad(): void {\n this.messages = initLocales(this.element).messages.actionMore as MessageType;\n this.validateItems(this.items);\n this.validateButton(this.button);\n this.validateIcon(this.icon);\n this.validateDisplayChevron(this.displayChevron);\n }\n\n /**\n * Render\n * @returns HTML Element\n */\n render(): HTMLElement {\n const buttonLabel = this.button.label || this.messages.label;\n const buttonContent = [buttonLabel];\n\n if (!this.button.isIcon && this.displayChevron) {\n buttonContent.push(\n <span\n class={{\n [`${this.classBase}__chevron`]: true,\n [`${this.classBase}__chevron--rotate`]: this.expanded === true,\n }}\n >\n <mg-icon icon=\"chevron-down\"></mg-icon>\n </span>,\n );\n }\n\n return (\n <Host data-mg-popover-guard={this.mgPopoverIdentifier}>\n <span class={this.classBase}>\n <mg-popover identifier={this.mgPopoverIdentifier} display={this.expanded} onDisplay-change={this.handleDisplayChange}>\n <mg-button variant={this.button.variant} isIcon={this.button.isIcon} disabled={this.button.disabled} type=\"button\" label={buttonLabel} onClick={this.handleButton}>\n {this.icon && <mg-icon {...this.icon}></mg-icon>}\n {!this.button.isIcon && buttonContent}\n </mg-button>\n <div slot=\"content\">\n <mg-menu direction={directions.VERTICAL} label={this.messages.label}>\n {this.items.map(item =>\n isMgActionMoreDivider(item) ? (\n <mg-divider class=\"mg-c-action-more__divider\" key=\"divider\" full-width></mg-divider>\n ) : (\n <mg-menu-item\n key={item.label}\n status={item.status || Status.VISIBLE}\n target={item.target}\n href={item.href}\n // eslint-disable-next-line react/jsx-no-bind\n onClick={e => this.handleItemClick(e, item.mouseEventHandler)}\n >\n {item.icon?.icon && <mg-icon icon={item.icon.icon} variant={item.icon.variant} variantStyle={item.icon.variantStyle} slot=\"image\"></mg-icon>}\n <span slot=\"label\">{item.label}</span>\n {item.badge?.label && <mg-badge label={item.badge.label} value={item.badge.value} slot=\"information\" variant=\"text-color\"></mg-badge>}\n </mg-menu-item>\n ),\n )}\n </mg-menu>\n </div>\n </mg-popover>\n </span>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { H as Ht, X as Xt } from './index.es.js';
|
|
3
3
|
import { i as initLocales } from './index2.js';
|
|
4
4
|
import { d as defineCustomElement$5 } from './mg-button2.js';
|
|
5
5
|
import { d as defineCustomElement$4 } from './mg-card2.js';
|
|
@@ -46,7 +46,7 @@ const MgAlert$1 = /*@__PURE__*/ proxyCustomElement(class MgAlert extends HTMLEle
|
|
|
46
46
|
/**
|
|
47
47
|
* Component classes
|
|
48
48
|
*/
|
|
49
|
-
this.classCollection = new
|
|
49
|
+
this.classCollection = new Ht(['mg-c-alert']);
|
|
50
50
|
/**
|
|
51
51
|
* Define if component is using actions slot
|
|
52
52
|
*/
|
|
@@ -90,17 +90,17 @@ const MgAlert$1 = /*@__PURE__*/ proxyCustomElement(class MgAlert extends HTMLEle
|
|
|
90
90
|
}
|
|
91
91
|
watchDelay(newValue) {
|
|
92
92
|
if (newValue !== undefined && newValue < 2) {
|
|
93
|
-
throw new Error(`<mg-alert> prop "delay" must be greater than 2 seconds. Passed value: ${
|
|
93
|
+
throw new Error(`<mg-alert> prop "delay" must be greater than 2 seconds. Passed value: ${Xt(newValue)}.`);
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
watchVariant(newValue) {
|
|
97
97
|
if (newValue && !variants.includes(newValue)) {
|
|
98
|
-
throw new Error(`<mg-alert> prop "variant" must be one of: ${variants.join(', ')}. Passed value: ${
|
|
98
|
+
throw new Error(`<mg-alert> prop "variant" must be one of: ${variants.join(', ')}. Passed value: ${Xt(newValue)}.`);
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
watchVariantStyle(newValue) {
|
|
102
102
|
if (newValue && !variantStyles.includes(newValue)) {
|
|
103
|
-
throw new Error(`<mg-alert> prop "variantStyle" must be one of: ${variantStyles.join(', ')}. Passed value: ${
|
|
103
|
+
throw new Error(`<mg-alert> prop "variantStyle" must be one of: ${variantStyles.join(', ')}. Passed value: ${Xt(newValue)}.`);
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
/**
|
|
@@ -159,7 +159,7 @@ const MgAlert$1 = /*@__PURE__*/ proxyCustomElement(class MgAlert extends HTMLEle
|
|
|
159
159
|
* @returns HTML Element
|
|
160
160
|
*/
|
|
161
161
|
render() {
|
|
162
|
-
return (h("mg-message", { key: '
|
|
162
|
+
return (h("mg-message", { key: '25a886be17d690dfcbffea51dca06a8a102a4926', class: this.classCollection.join(), role: ['info', 'success'].includes(this.variant) ? 'status' : 'alert', variant: this.variant, variantStyle: this.variantStyle }, h("slot", { key: 'ddf8c61b96ee376384c28b81b0a16ff72c0e6dd1' }), this.hasActions ? (h("span", { slot: "actions" }, h("slot", { name: "actions" }))) : (h("span", { class: "mg-c-alert__close-button" }, h("mg-button", { "is-icon": true, variant: "flat", label: this.messages.alert.closeButton, onClick: this.handleClose }, h("mg-icon", { icon: "cross" }))))));
|
|
163
163
|
}
|
|
164
164
|
get element() { return this; }
|
|
165
165
|
static get watchers() { return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { H as Ht, X as Xt, q as qe } from './index.es.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* List of all possibles variants
|
|
@@ -29,21 +29,21 @@ const MgBadge = /*@__PURE__*/ proxyCustomElement(class MgBadge extends HTMLEleme
|
|
|
29
29
|
/**
|
|
30
30
|
* Component classes
|
|
31
31
|
*/
|
|
32
|
-
this.classCollection = new
|
|
32
|
+
this.classCollection = new Ht(['mg-c-badge']);
|
|
33
33
|
}
|
|
34
34
|
validateValue(newValue) {
|
|
35
35
|
if (/^[^A-Z]+$/i.exec(`${newValue}`) === null) {
|
|
36
|
-
throw new Error(`<mg-badge> prop "value" is required and must be integer and/or special character. Passed value: ${
|
|
36
|
+
throw new Error(`<mg-badge> prop "value" is required and must be integer and/or special character. Passed value: ${Xt(newValue)}.`);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
validateLabel(newValue) {
|
|
40
|
-
if (!
|
|
41
|
-
throw new Error(`<mg-badge> prop "label" is required and must be a string. Passed value: ${
|
|
40
|
+
if (!qe(newValue)) {
|
|
41
|
+
throw new Error(`<mg-badge> prop "label" is required and must be a string. Passed value: ${Xt(newValue)}.`);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
validateVariant(newValue, oldValue) {
|
|
45
45
|
if (!variants.includes(newValue)) {
|
|
46
|
-
throw new Error(`<mg-badge> prop "variant" must be one of: ${variants.join(', ')}. Passed value: ${
|
|
46
|
+
throw new Error(`<mg-badge> prop "variant" must be one of: ${variants.join(', ')}. Passed value: ${Xt(newValue)}.`);
|
|
47
47
|
}
|
|
48
48
|
else {
|
|
49
49
|
if (oldValue !== undefined) {
|