@mgdis/mg-components 5.28.0 → 5.28.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/dist/cjs/{index-d8721674.js → index-792fd1c1.js} +48 -47
  2. package/dist/cjs/index-792fd1c1.js.map +1 -0
  3. package/dist/cjs/mg-action-more_36.cjs.entry.js +91 -91
  4. package/dist/cjs/mg-action-more_36.cjs.entry.js.map +1 -1
  5. package/dist/cjs/mg-loader.cjs.entry.js +2 -2
  6. package/dist/collection/components/atoms/mg-button/mg-button.js +2 -2
  7. package/dist/collection/components/atoms/mg-button/mg-button.js.map +1 -1
  8. package/dist/components/index.es.js +41 -40
  9. package/dist/components/index.es.js.map +1 -1
  10. package/dist/components/index2.js +2 -2
  11. package/dist/components/mg-action-more.js +2 -2
  12. package/dist/components/mg-badge2.js +3 -3
  13. package/dist/components/mg-button2.js +5 -5
  14. package/dist/components/mg-button2.js.map +1 -1
  15. package/dist/components/mg-card2.js +2 -2
  16. package/dist/components/mg-details.js +2 -2
  17. package/dist/components/mg-form.js +3 -3
  18. package/dist/components/mg-icon2.js +2 -2
  19. package/dist/components/mg-illustrated-message.js +2 -2
  20. package/dist/components/mg-input-checkbox.js +4 -4
  21. package/dist/components/mg-input-date.js +11 -11
  22. package/dist/components/mg-input-numeric.js +5 -5
  23. package/dist/components/mg-input-password.js +3 -3
  24. package/dist/components/mg-input-radio.js +4 -4
  25. package/dist/components/mg-input-select2.js +6 -6
  26. package/dist/components/mg-input-text2.js +6 -6
  27. package/dist/components/mg-input-textarea.js +6 -6
  28. package/dist/components/mg-input-title2.js +2 -2
  29. package/dist/components/mg-input-toggle.js +4 -4
  30. package/dist/components/mg-input2.js +3 -3
  31. package/dist/components/mg-item-more2.js +3 -3
  32. package/dist/components/mg-loader.js +2 -2
  33. package/dist/components/mg-menu-item2.js +5 -5
  34. package/dist/components/mg-message.js +3 -3
  35. package/dist/components/mg-modal.js +6 -6
  36. package/dist/components/mg-pagination2.js +2 -2
  37. package/dist/components/mg-panel.js +4 -4
  38. package/dist/components/mg-popover-content2.js +3 -3
  39. package/dist/components/mg-popover2.js +3 -3
  40. package/dist/components/mg-skip-links.js +2 -2
  41. package/dist/components/mg-tabs.js +6 -6
  42. package/dist/components/mg-tag.js +3 -3
  43. package/dist/components/mg-tooltip2.js +6 -6
  44. package/dist/esm/{index-817d7645.js → index-2667a5c4.js} +43 -42
  45. package/dist/esm/index-2667a5c4.js.map +1 -0
  46. package/dist/esm/mg-action-more_36.entry.js +91 -91
  47. package/dist/esm/mg-action-more_36.entry.js.map +1 -1
  48. package/dist/esm/mg-loader.entry.js +2 -2
  49. package/dist/mg-components/mg-components.esm.js +1 -1
  50. package/dist/mg-components/{p-ef541188.entry.js → p-56cce4ec.entry.js} +2 -2
  51. package/dist/mg-components/p-56cce4ec.entry.js.map +1 -0
  52. package/dist/mg-components/{p-c4207303.entry.js → p-64eaef9e.entry.js} +2 -2
  53. package/dist/mg-components/p-7cda52b6.js +2 -0
  54. package/dist/mg-components/p-7cda52b6.js.map +1 -0
  55. package/dist/types/components/atoms/mg-button/mg-button.d.ts +1 -1
  56. package/dist/types/components.d.ts +2 -2
  57. package/ide/intellij/web-types.json +4 -4
  58. package/ide/vscode/html-custom-data.json +3 -3
  59. package/package.json +26 -27
  60. package/dist/cjs/index-d8721674.js.map +0 -1
  61. package/dist/esm/index-817d7645.js.map +0 -1
  62. package/dist/mg-components/p-eb6ec303.js +0 -2
  63. package/dist/mg-components/p-eb6ec303.js.map +0 -1
  64. package/dist/mg-components/p-ef541188.entry.js.map +0 -1
  65. /package/dist/mg-components/{p-c4207303.entry.js.map → p-64eaef9e.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{r as e,h as t,g as i}from"./p-06a9d801.js";import{I as r,i as a}from"./p-eb6ec303.js";const n=".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{display:block}.mg-c-loader{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.4rem;text-align:center}";const s=n;const o=class{constructor(t){e(this,t);this.message=undefined;this.messageHide=undefined}watchMessage(e){if(e&&!r(e))throw new Error('<mg-loader> prop "message" must be a valid string.')}componentWillLoad(){this.messages=a(this.element).messages;this.watchMessage(this.message)}render(){return t("div",{key:"f3f67eefb0492891bde9ec6847cbf5f9f35f510d",class:"mg-c-loader","aria-live":"polite"},t("mg-icon",{key:"d1671e83515ceaefcae0007f911a60e41e908672",icon:"loader",spin:true}),t("span",{key:"9bd688e41363cd55dc33b79e889a74ea12f9b572",class:{"mg-u-visually-hidden":this.messageHide}},this.message||this.messages.loader.inProgess))}get element(){return i(this)}static get watchers(){return{message:["watchMessage"]}}};o.style=s;export{o as mg_loader};
2
- //# sourceMappingURL=p-c4207303.entry.js.map
1
+ import{r as e,h as t,g as i}from"./p-06a9d801.js";import{Z as a,i as r}from"./p-7cda52b6.js";const n=".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{display:block}.mg-c-loader{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.4rem;text-align:center}";const s=n;const o=class{constructor(t){e(this,t);this.message=undefined;this.messageHide=undefined}watchMessage(e){if(e&&!a(e))throw new Error('<mg-loader> prop "message" must be a valid string.')}componentWillLoad(){this.messages=r(this.element).messages;this.watchMessage(this.message)}render(){return t("div",{key:"f3f67eefb0492891bde9ec6847cbf5f9f35f510d",class:"mg-c-loader","aria-live":"polite"},t("mg-icon",{key:"d1671e83515ceaefcae0007f911a60e41e908672",icon:"loader",spin:true}),t("span",{key:"9bd688e41363cd55dc33b79e889a74ea12f9b572",class:{"mg-u-visually-hidden":this.messageHide}},this.message||this.messages.loader.inProgess))}get element(){return i(this)}static get watchers(){return{message:["watchMessage"]}}};o.style=s;export{o as mg_loader};
2
+ //# sourceMappingURL=p-64eaef9e.entry.js.map
@@ -0,0 +1,2 @@
1
+ var e=Object.defineProperty;var t=(t,s,a)=>s in t?e(t,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[s]=a;var s=(e,s,a)=>t(e,typeof s!="symbol"?s+"":s,a);const a=(e="",t=10)=>{const s=new Uint8Array(t);crypto.getRandomValues(s);const a=Array.from(s).map((e=>e.toString(16).padStart(2,"0"))).join("").slice(0,t);return e!==""?`${e}-${a}`:a};class n{constructor(e=[]){s(this,"classes");s(this,"add",(e=>{this.has(e)||this.classes.push(e)}));s(this,"delete",(e=>{const t=this.classes.indexOf(e);t>-1&&this.classes.splice(t,1)}));s(this,"has",(e=>this.classes.includes(e)));s(this,"join",(()=>this.classes.join(" ")));this.classes=e}}const r=e=>Array.isArray(e)&&e.every((e=>typeof e=="string")),l=(e,t)=>t.includes(e==null?void 0:e.tagName.toLowerCase()),i='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]), [identifier], mg-button',o=e=>{const t=c(e),s=u(e);return[e,...t,...s]},c=(e,t=[])=>{if(e.self!==e.top)try{const s=e.parent;return s?(t.push(s),c(s,t)):t}catch(e){return console.error("Different hosts between iframes:",e),t}return t},u=(e,t=[])=>{if(e.frames.length>0)for(const s of Array.from(e.frames))t.push(s),u(s,t);return t},d=e=>typeof e=="string"&&e.trim()!=="",m=e=>typeof e=="string"?e.toLocaleLowerCase().normalize("NFD").replaceAll(/[\u0300-\u036f]/g,""):e,p=async e=>e();var g=Object.defineProperty,h=(e,t)=>{for(var s in t)g(e,s,{get:t[s],enumerable:!0})};var b={};h(b,{err:()=>f,map:()=>y,ok:()=>v,unwrap:()=>x,unwrapErr:()=>w});var v=e=>({isOk:!0,isErr:!1,value:e}),f=e=>({isOk:!1,isErr:!0,value:e});function y(e,t){if(e.isOk){const s=t(e.value);return s instanceof Promise?s.then((e=>v(e))):v(s)}if(e.isErr){const t=e.value;return f(t)}throw"should never get here"}var x=e=>{if(e.isOk)return e.value;throw e.value},w=e=>{if(e.isErr)return e.value;throw e.value};const L=e=>{const t={value:"2023",pattern:"yyyy"},s={value:"12",pattern:"mm"},a={value:"24",pattern:"dd"};return A([t.value,s.value,a.value].join("-"),e,{timeZone:"UTC"}).replace(t.value,t.pattern).replace(s.value,s.pattern).replace(a.value,a.pattern)},S=e=>e.toISOString().split("T")[0],q=(e,t,s)=>{const a=e.closest("[lang]"),n=Intl.NumberFormat.supportedLocalesOf(a==null?void 0:a.lang),r=n.length>0&&typeof n[0]=="string"?n[0]:navigator.language||s,l=r.split("-").shift();return{locale:r,messages:t[l]||t[s]}},P=(e,t,s)=>new Intl.NumberFormat(t,{style:"currency",currency:s}).format(e),T=(e,t,s=0)=>new Intl.NumberFormat(t,{minimumFractionDigits:s}).format(s>0?Number(e==null?void 0:e.toFixed(s)):e),k=/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/,A=(e,t,s)=>typeof e!="string"||e===""||!k.test(e)?"":new Intl.DateTimeFormat(t,s).format(new Date(e)),M=(e,t)=>s=>q(s,e,t);const B={required:"This field is required.",date:{badInput:"The date format must be {pattern}",min:"The date cannot be earlier than {min}",max:"The date cannot be later than {max}",minMax:"The date must be between {min} and {max}"},numeric:{min:"The value cannot be less than {min}",max:"The value cannot be greater than {max}",minMax:"The value must be between {min} and {max}"}};const N="{counter} characters left.";const C={select:{placeholder:"Select a value"},checkbox:{selectedValues:"{nb} selected values",selectedValue:"{nb} selected value",editButton:"Edit",selectButton:"Select values",showButton:"Show",label:"Enter a value",result:"result",results:"results",searchResults:"Search result(s) list.",noResult:"No result.",sections:{selected:{title:"Selected",titlePlurial:"Selected",action:"Unselect all",tooltip:"Unselect all current search results"},notSelected:{title:"Not selected",titlePlurial:"Not selected",action:"Select all",tooltip:"Select all current search results"}}},date:{helpText:"Expected format: {pattern} (ex: {date})",pattern:{dd:"dd",mm:"mm",yyyy:"yyyy"}},password:{display:"Display password value",hide:"Hide password value"}};const I={required:'Fields with a <strong class="mg-u-is-asterisk">*</strong> are required',requiredSingle:'Field with a <strong class="mg-u-is-asterisk">*</strong> is required',allRequired:"All fields are required",allRequiredSingle:"The field is required"};const F={closeButton:"Close message"};const R={closeButton:"Close modal"};const E={label:"Pagination",page:"page",pages:"pages",nextPage:"Next page",previousPage:"Previous page",selectPage:"Select the page to display."};const D={editLabel:"Edit section title."};const O={navLabel:"Quick access"};const V={confirm:"Confirm",cancel:"Cancel",close:"Close",next:"next",previous:"previous"};const j={badgeLabel:"Include notification(s)",openNewTab:"Open link in a new tab"};const U={menuLabel:"Additional menu"};const z={label:"Actions"};const $={inProgess:"Loading in progress…"};const H={errors:B,nbCharLeft:N,input:C,form:I,message:F,modal:R,pagination:E,panel:D,skipLinks:O,general:V,menuItem:j,itemMore:U,actionMore:z,loader:$};const Q={required:"Ce champ est obligatoire.",date:{badInput:"Le format de la date doit être du type {pattern}",min:"La date ne peut pas être antérieure au {min}",max:"La date ne peut pas être postérieure au {max}",minMax:"La date doit être comprise entre le {min} et le {max}"},numeric:{min:"La valeur ne peut pas être inférieure à {min}",max:"La valeur ne peut pas être supérieure à {max}",minMax:"La valeur doit être comprise entre {min} et {max}"}};const Z="{counter} caractères disponibles.";const G={select:{placeholder:"Sélectionnez une valeur"},checkbox:{selectedValues:"{nb} valeurs selectionnées",selectedValue:"{nb} valeur selectionnée",editButton:"Modifier",selectButton:"Sélectionner des valeurs",showButton:"Voir",label:"Saisissez une valeur",result:"résultat",results:"résultats",searchResults:"List de résultat(s) de la recherche.",noResult:"Aucun résultat.",sections:{selected:{title:"Sélectionné",titlePlurial:"Sélectionnés",action:"Tout désélectionner",tooltip:"Désélectionne tous les résultats de la recherche en cours"},notSelected:{title:"Non sélectionné",titlePlurial:"Non sélectionnés",action:"Tout sélectionner",tooltip:"Sélectionne tous les résultats de la recherche en cours"}}},date:{helpText:"Format attendu&nbsp;: {pattern} (ex&nbsp;: {date})",pattern:{dd:"jj",mm:"mm",yyyy:"aaaa"}},password:{display:"Afficher le mot de passe",hide:"Masquer le mot de passe"}};const J={required:'Les champs marqués d\'un <strong class="mg-u-is-asterisk">*</strong> sont obligatoires',requiredSingle:'Le champ marqué d\'un <strong class="mg-u-is-asterisk">*</strong> est obligatoire',allRequired:"Tous les champs sont obligatoires",allRequiredSingle:"Le champ est obligatoire"};const K={closeButton:"Fermer le message"};const X={closeButton:"Fermer la modale"};const Y={label:"Pagination",page:"page",pages:"pages",nextPage:"Page suivante",previousPage:"Page précédente",selectPage:"Sélectionner la page à afficher."};const W={editLabel:"Modifier le titre de la section."};const _={navLabel:"Accès rapide"};const ee={confirm:"Valider",cancel:"Annuler",close:"Fermer",next:"suivant",previous:"précédent"};const te={badgeLabel:"Notification(s) incluse(s)",openNewTab:"Ouvrir le lien dans un nouvel onglet"};const se={menuLabel:"Menu complémentaire"};const ae={label:"Actions"};const ne={inProgess:"Chargement en cours…"};const re={errors:Q,nbCharLeft:Z,input:G,form:J,message:K,modal:X,pagination:Y,panel:W,skipLinks:_,general:ee,menuItem:te,itemMore:se,actionMore:ae,loader:ne};const le="en";const ie={en:H,fr:re};const oe=M(ie,le);export{A as B,r as G,k as H,n as I,m as J,i as K,o as Q,l as X,p as Y,d as Z,P as a,T as b,oe as i,S as l,L as n,a as z};
2
+ //# sourceMappingURL=p-7cda52b6.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ve","Object","defineProperty","he","e","t","s","enumerable","configurable","writable","value","g","ze","Uint8Array","crypto","getRandomValues","r","Array","from","map","o","toString","padStart","join","slice","Ie","constructor","this","has","classes","push","indexOf","splice","includes","Ge","isArray","every","Xe","tagName","toLowerCase","Ke","Qe","te","se","self","top","parent","console","error","frames","length","Ze","trim","Je","toLocaleLowerCase","normalize","replaceAll","Ye","async","me","be","get","xe","err","oe","Ae","ok","U","unwrap","Ee","unwrapErr","Le","isOk","isErr","Promise","then","nt","pattern","Be","timeZone","replace","lt","toISOString","split","Ue","closest","Intl","NumberFormat","supportedLocalesOf","lang","n","navigator","language","l","shift","locale","messages","it","style","currency","format","at","minimumFractionDigits","Number","toFixed","He","test","DateTimeFormat","Date","ct","defaultLocale","en","fr","initLocales","defineLocales"],"sources":["../stencil-helpers/dist/index.es.js","src/locales/index.ts"],"sourcesContent":["var ve = Object.defineProperty;\nvar X = (e) => {\n throw TypeError(e);\n};\nvar he = (e, t, s) => t in e ? ve(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;\nvar g = (e, t, s) => he(e, typeof t != \"symbol\" ? t + \"\" : t, s), ye = (e, t, s) => t.has(e) || X(\"Cannot \" + s);\nvar k = (e, t, s) => (ye(e, t, \"read from private field\"), s ? s.call(e) : t.get(e)), w = (e, t, s) => t.has(e) ? X(\"Cannot add the same private member more than once\") : t instanceof WeakSet ? t.add(e) : t.set(e, s);\nconst ze = (e = \"\", t = 10) => {\n const s = new Uint8Array(t);\n crypto.getRandomValues(s);\n const r = Array.from(s).map((o) => o.toString(16).padStart(2, \"0\")).join(\"\").slice(0, t);\n return e !== \"\" ? `${e}-${r}` : r;\n};\nclass Ie {\n constructor(t = []) {\n /**\n * Available classes\n */\n g(this, \"classes\");\n /**\n * Add class\n * @param className - class name to add\n */\n g(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 g(this, \"delete\", (t) => {\n const s = this.classes.indexOf(t);\n s > -1 && this.classes.splice(s, 1);\n });\n /**\n * Check if class exist in list\n * @param className - class name to check\n * @returns class name is in the list\n */\n g(this, \"has\", (t) => this.classes.includes(t));\n /**\n * Join classes seperated by spaces\n * @returns joined values\n */\n g(this, \"join\", () => this.classes.join(\" \"));\n this.classes = t;\n }\n}\nconst Ge = (e) => Array.isArray(e) && e.every((t) => typeof t == \"string\"), Xe = (e, t) => t.includes(e == null ? void 0 : e.tagName.toLowerCase()), Ke = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"]), [identifier], mg-button', Qe = (e) => {\n const t = te(e), s = se(e);\n return [e, ...t, ...s];\n}, te = (e, t = []) => {\n if (e.self !== e.top)\n try {\n const s = e.parent;\n return s ? (t.push(s), te(s, t)) : t;\n } catch (s) {\n return console.error(\"Different hosts between iframes:\", s), t;\n }\n return t;\n}, se = (e, t = []) => {\n if (e.frames.length > 0)\n for (const s of Array.from(e.frames))\n t.push(s), se(s, t);\n return t;\n}, Ze = (e) => typeof e == \"string\" && e.trim() !== \"\", Je = (e) => typeof e == \"string\" ? e.toLocaleLowerCase().normalize(\"NFD\").replaceAll(/[\\u0300-\\u036f]/g, \"\") : e, Ye = async (e) => e();\nvar P = {\n allRenderFn: !1,\n cmpDidLoad: !0,\n cmpDidUnload: !1,\n cmpDidUpdate: !0,\n cmpDidRender: !0,\n cmpWillLoad: !0,\n cmpWillUpdate: !0,\n cmpWillRender: !0,\n connectedCallback: !0,\n disconnectedCallback: !0,\n element: !0,\n event: !0,\n hasRenderFn: !0,\n lifecycle: !0,\n hostListener: !0,\n hostListenerTargetWindow: !0,\n hostListenerTargetDocument: !0,\n hostListenerTargetBody: !0,\n hostListenerTargetParent: !1,\n hostListenerTarget: !0,\n member: !0,\n method: !0,\n mode: !0,\n observeAttribute: !0,\n prop: !0,\n propMutable: !0,\n reflect: !0,\n scoped: !0,\n shadowDom: !0,\n slot: !0,\n cssAnnotations: !0,\n state: !0,\n style: !0,\n formAssociated: !1,\n svg: !0,\n updatable: !0,\n vdomAttribute: !0,\n vdomXlink: !0,\n vdomClass: !0,\n vdomFunctional: !0,\n vdomKey: !0,\n vdomListener: !0,\n vdomRef: !0,\n vdomPropOrAttr: !0,\n vdomRender: !0,\n vdomStyle: !0,\n vdomText: !0,\n watchCallback: !0,\n taskQueue: !0,\n hotModuleReplacement: !1,\n isDebug: !1,\n isDev: !1,\n isTesting: !1,\n hydrateServerSide: !1,\n hydrateClientSide: !1,\n lifecycleDOMEvents: !1,\n lazyLoad: !1,\n profile: !1,\n slotRelocation: !0,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n appendChildSlotFix: !1,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n cloneNodeFix: !1,\n hydratedAttribute: !1,\n hydratedClass: !0,\n // TODO(STENCIL-1305): remove this option\n scriptDataOpts: !1,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n scopedSlotTextContentFix: !1,\n // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field\n shadowDomShim: !1,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n slotChildNodesFix: !1,\n invisiblePrehydration: !0,\n propBoolean: !0,\n propNumber: !0,\n propString: !0,\n constructableCSS: !0,\n cmpShouldUpdate: !0,\n devTools: !1,\n shadowDelegatesFocus: !0,\n initializeNextTick: !1,\n asyncLoading: !1,\n asyncQueue: !1,\n transformTagName: !1,\n attachStyles: !0,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n experimentalSlotFixes: !1\n}, me = Object.defineProperty, be = (e, t) => {\n for (var s in t)\n me(e, s, { get: t[s], enumerable: !0 });\n}, K = (e, t) => t in e, Q = \"http://www.w3.org/1999/xlink\", q = typeof window < \"u\" ? window : {}, M = q.document || { head: {} };\nq.HTMLElement;\nvar E = {\n $flags$: 0,\n $resourcesUrl$: \"\",\n jmp: (e) => e(),\n raf: (e) => requestAnimationFrame(e),\n ael: (e, t, s, r) => e.addEventListener(t, s, r),\n rel: (e, t, s, r) => e.removeEventListener(t, s, r),\n ce: (e, t) => new CustomEvent(e, t)\n}, Z = {}, Se = \"http://www.w3.org/2000/svg\", Te = \"http://www.w3.org/1999/xhtml\", ke = (e) => e != null, re = (e) => (e = typeof e, e === \"object\" || e === \"function\"), xe = {};\nbe(xe, {\n err: () => oe,\n map: () => Ae,\n ok: () => U,\n unwrap: () => Ee,\n unwrapErr: () => Le\n});\nvar U = (e) => ({\n isOk: !0,\n isErr: !1,\n value: e\n}), oe = (e) => ({\n isOk: !1,\n isErr: !0,\n value: e\n});\nfunction Ae(e, t) {\n if (e.isOk) {\n const s = t(e.value);\n return s instanceof Promise ? s.then((r) => U(r)) : U(s);\n }\n if (e.isErr) {\n const s = e.value;\n return oe(s);\n }\n throw \"should never get here\";\n}\nvar Ee = (e) => {\n if (e.isOk)\n return e.value;\n throw e.value;\n}, Le = (e) => {\n if (e.isErr)\n return e.value;\n throw e.value;\n}, je = (e, t, ...s) => {\n let r = null, o = null, n = null, l = !1, a = !1;\n const c = [], d = (i) => {\n for (let $ = 0; $ < i.length; $++)\n r = i[$], Array.isArray(r) ? d(r) : r != null && typeof r != \"boolean\" && ((l = !re(r)) && (r = String(r)), l && a ? c[c.length - 1].$text$ += r : c.push(l ? H(null, r) : r), a = l);\n };\n d(s);\n const f = H(e, null);\n return f.$attrs$ = t, c.length > 0 && (f.$children$ = c), f.$key$ = o, f.$name$ = n, f;\n}, H = (e, t) => {\n const s = {\n $flags$: 0,\n $tag$: e,\n $text$: t,\n $elm$: null,\n $children$: null\n };\n return s.$attrs$ = null, s.$key$ = null, s.$name$ = null, s;\n}, Re = {}, Oe = (e) => e && e.$tag$ === Re, J = (e, t, s, r, o, n) => {\n if (s !== r) {\n let l = K(e, t), a = t.toLowerCase();\n if (t === \"class\") {\n const c = e.classList, d = Y(s), f = Y(r);\n c.remove(...d.filter((i) => i && !f.includes(i))), c.add(...f.filter((i) => i && !d.includes(i)));\n } else if (t === \"style\") {\n for (const c in s)\n (!r || r[c] == null) && (c.includes(\"-\") ? e.style.removeProperty(c) : e.style[c] = \"\");\n for (const c in r)\n (!s || r[c] !== s[c]) && (c.includes(\"-\") ? e.style.setProperty(c, r[c]) : e.style[c] = r[c]);\n } else if (t !== \"key\") if (t === \"ref\")\n r && r(e);\n else if (!e.__lookupSetter__(t) && t[0] === \"o\" && t[1] === \"n\") {\n if (t[2] === \"-\" ? t = t.slice(3) : K(q, a) ? t = a.slice(2) : t = a[2] + t.slice(3), s || r) {\n const c = t.endsWith(ne);\n t = t.replace(Ne, \"\"), s && E.rel(e, t, s, c), r && E.ael(e, t, r, c);\n }\n } else {\n const c = re(r);\n if ((l || c && r !== null) && !o)\n try {\n if (e.tagName.includes(\"-\"))\n e[t] = r;\n else {\n const f = r ?? \"\";\n t === \"list\" ? l = !1 : (s == null || e[t] != f) && (e[t] = f);\n }\n } catch {\n }\n let d = !1;\n a !== (a = a.replace(/^xlink\\:?/, \"\")) && (t = a, d = !0), r == null || r === !1 ? (r !== !1 || e.getAttribute(t) === \"\") && (d ? e.removeAttributeNS(Q, t) : e.removeAttribute(t)) : (!l || n & 4 || o) && !c && (r = r === !0 ? \"\" : r, d ? e.setAttributeNS(Q, t, r) : e.setAttribute(t, r));\n }\n }\n}, Me = /\\s/, Y = (e) => e ? e.split(Me) : [], ne = \"Capture\", Ne = new RegExp(ne + \"$\"), le = (e, t, s) => {\n const r = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, o = e && e.$attrs$ || Z, n = t.$attrs$ || Z;\n for (const l of V(Object.keys(o)))\n l in n || J(r, l, o[l], void 0, s, t.$flags$);\n for (const l of V(Object.keys(n)))\n J(r, l, o[l], n[l], s, t.$flags$);\n};\nfunction V(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 x, B, L, N = !1, _ = !1, z = !1, h = !1, F = (e, t, s, r) => {\n var o;\n const n = t.$children$[s];\n let l = 0, a, c, d;\n if (N || (z = !0, n.$tag$ === \"slot\" && (x && r.classList.add(x + \"-s\"), 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 a = n.$elm$ = M.createTextNode(n.$text$);\n else if (n.$flags$ & 1)\n a = n.$elm$ = M.createTextNode(\"\");\n else {\n if (h || (h = n.$tag$ === \"svg\"), a = n.$elm$ = M.createElementNS(\n h ? Se : Te,\n !N && P.slotRelocation && n.$flags$ & 2 ? \"slot-fb\" : n.$tag$\n ), h && n.$tag$ === \"foreignObject\" && (h = !1), le(null, n, h), ke(x) && a[\"s-si\"] !== x && a.classList.add(a[\"s-si\"] = x), G(a, r), n.$children$)\n for (l = 0; l < n.$children$.length; ++l)\n c = F(e, n, l, a), c && a.appendChild(c);\n n.$tag$ === \"svg\" ? h = !1 : a.tagName === \"foreignObject\" && (h = !0);\n }\n return a[\"s-hn\"] = L, n.$flags$ & 3 && (a[\"s-sr\"] = !0, a[\"s-cr\"] = B, a[\"s-sn\"] = n.$name$ || \"\", a[\"s-rf\"] = (o = n.$attrs$) == null ? void 0 : o.ref, d = e && e.$children$ && e.$children$[s], d && d.$tag$ === n.$tag$ && e.$elm$ && j(e.$elm$, !1)), a;\n}, j = (e, t) => {\n E.$flags$ |= 1;\n const s = Array.from(e.childNodes);\n if (e[\"s-sr\"] && P.experimentalSlotFixes) {\n let r = e;\n for (; r = r.nextSibling; )\n r && r[\"s-sn\"] === e[\"s-sn\"] && r[\"s-sh\"] === L && s.push(r);\n }\n for (let r = s.length - 1; r >= 0; r--) {\n const o = s[r];\n o[\"s-hn\"] !== L && o[\"s-ol\"] && (T(ce(o), o, I(o)), o[\"s-ol\"].remove(), o[\"s-ol\"] = void 0, o[\"s-sh\"] = void 0, z = !0), t && j(o, t);\n }\n E.$flags$ &= -2;\n}, ie = (e, t, s, r, o, n) => {\n let l = e[\"s-cr\"] && e[\"s-cr\"].parentNode || e, a;\n for (l.shadowRoot && l.tagName === L && (l = l.shadowRoot); o <= n; ++o)\n r[o] && (a = F(null, s, o, e), a && (r[o].$elm$ = a, T(l, a, I(t))));\n}, ae = (e, t, s) => {\n for (let r = t; r <= s; ++r) {\n const o = e[r];\n if (o) {\n const n = o.$elm$;\n $e(o), n && (_ = !0, n[\"s-ol\"] ? n[\"s-ol\"].remove() : j(n, !0), n.remove());\n }\n }\n}, _e = (e, t, s, r, o = !1) => {\n let n = 0, l = 0, a = 0, c = 0, d = t.length - 1, f = t[0], i = t[d], $ = r.length - 1, u = r[0], p = r[$], m, y;\n for (; n <= d && l <= $; )\n if (f == null)\n f = t[++n];\n else if (i == null)\n i = t[--d];\n else if (u == null)\n u = r[++l];\n else if (p == null)\n p = r[--$];\n else if (O(f, u, o))\n A(f, u, o), f = t[++n], u = r[++l];\n else if (O(i, p, o))\n A(i, p, o), i = t[--d], p = r[--$];\n else if (O(f, p, o))\n (f.$tag$ === \"slot\" || p.$tag$ === \"slot\") && j(f.$elm$.parentNode, !1), A(f, p, o), T(e, f.$elm$, i.$elm$.nextSibling), f = t[++n], p = r[--$];\n else if (O(i, u, o))\n (f.$tag$ === \"slot\" || p.$tag$ === \"slot\") && j(i.$elm$.parentNode, !1), A(i, u, o), T(e, i.$elm$, f.$elm$), i = t[--d], u = r[++l];\n else {\n for (a = -1, c = n; c <= d; ++c)\n if (t[c] && t[c].$key$ !== null && t[c].$key$ === u.$key$) {\n a = c;\n break;\n }\n a >= 0 ? (y = t[a], y.$tag$ !== u.$tag$ ? m = F(t && t[l], s, a, e) : (A(y, u, o), t[a] = void 0, m = y.$elm$), u = r[++l]) : (m = F(t && t[l], s, l, e), u = r[++l]), m && T(ce(f.$elm$), m, I(f.$elm$));\n }\n n > d ? ie(\n e,\n r[$ + 1] == null ? null : r[$ + 1].$elm$,\n s,\n r,\n l,\n $\n ) : l > $ && ae(t, n, d);\n}, O = (e, t, s = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === \"slot\" ? e.$name$ === t.$name$ : s ? !0 : e.$key$ === t.$key$ : !1, I = (e) => e && e[\"s-ol\"] || e, ce = (e) => (e[\"s-ol\"] ? e[\"s-ol\"] : e).parentNode, A = (e, t, s = !1) => {\n const r = t.$elm$ = e.$elm$, o = e.$children$, n = t.$children$, l = t.$tag$, a = t.$text$;\n let c;\n a === null ? (h = l === \"svg\" ? !0 : l === \"foreignObject\" ? !1 : h, l === \"slot\" && !N || le(e, t, h), o !== null && n !== null ? _e(r, o, t, n, s) : n !== null ? (e.$text$ !== null && (r.textContent = \"\"), ie(r, null, t, n, 0, n.length - 1)) : o !== null && ae(o, 0, o.length - 1), h && l === \"svg\" && (h = !1)) : (c = r[\"s-cr\"]) ? c.parentNode.textContent = a : e.$text$ !== a && (r.data = a);\n}, fe = (e) => {\n const t = e.childNodes;\n for (const s of t)\n if (s.nodeType === 1) {\n if (s[\"s-sr\"]) {\n const r = s[\"s-sn\"];\n s.hidden = !1;\n for (const o of t)\n if (o !== s) {\n if (o[\"s-hn\"] !== s[\"s-hn\"] || r !== \"\") {\n if (o.nodeType === 1 && (r === o.getAttribute(\"slot\") || r === o[\"s-sn\"]) || o.nodeType === 3 && r === o[\"s-sn\"]) {\n s.hidden = !0;\n break;\n }\n } else if (o.nodeType === 1 || o.nodeType === 3 && o.textContent.trim() !== \"\") {\n s.hidden = !0;\n break;\n }\n }\n }\n fe(s);\n }\n}, b = [], ue = (e) => {\n let t, s, r;\n for (const o of e.childNodes) {\n if (o[\"s-sr\"] && (t = o[\"s-cr\"]) && t.parentNode) {\n s = t.parentNode.childNodes;\n const n = o[\"s-sn\"];\n for (r = s.length - 1; r >= 0; r--)\n if (t = s[r], !t[\"s-cn\"] && !t[\"s-nr\"] && t[\"s-hn\"] !== o[\"s-hn\"] && !P.experimentalSlotFixes)\n if (ee(t, n)) {\n let l = b.find((a) => a.$nodeToRelocate$ === t);\n _ = !0, t[\"s-sn\"] = t[\"s-sn\"] || n, l ? (l.$nodeToRelocate$[\"s-sh\"] = o[\"s-hn\"], l.$slotRefNode$ = o) : (t[\"s-sh\"] = o[\"s-hn\"], b.push({\n $slotRefNode$: o,\n $nodeToRelocate$: t\n })), t[\"s-sr\"] && b.map((a) => {\n ee(a.$nodeToRelocate$, t[\"s-sn\"]) && (l = b.find((c) => c.$nodeToRelocate$ === t), l && !a.$slotRefNode$ && (a.$slotRefNode$ = l.$slotRefNode$));\n });\n } else b.some((l) => l.$nodeToRelocate$ === t) || b.push({\n $nodeToRelocate$: t\n });\n }\n o.nodeType === 1 && ue(o);\n }\n}, ee = (e, t) => e.nodeType === 1 ? e.getAttribute(\"slot\") === null && t === \"\" || e.getAttribute(\"slot\") === t : e[\"s-sn\"] === t ? !0 : t === \"\", $e = (e) => {\n e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map($e);\n}, T = (e, t, s) => {\n const r = e == null ? void 0 : e.insertBefore(t, s);\n return G(t, e), r;\n}, de = (e) => {\n const t = [];\n return e && t.push(\n ...e[\"s-scs\"] || [],\n e[\"s-si\"],\n e[\"s-sc\"],\n ...de(e.parentElement)\n ), t;\n}, G = (e, t, s = !1) => {\n var r;\n if (e && t && e.nodeType === 1) {\n const o = new Set(de(t).filter(Boolean));\n if (o.size && ((r = e.classList) == null || r.add(...e[\"s-scs\"] = [...o]), e[\"s-ol\"] || s))\n for (const n of Array.from(e.childNodes))\n G(n, e, !0);\n }\n}, Fe = (e, t, s = !1) => {\n var r, o, n, l, a;\n const c = e.$hostElement$, d = e.$cmpMeta$, f = e.$vnode$ || H(null, null), i = Oe(t) ? t : je(null, null, t);\n if (L = c.tagName, d.$attrsToReflect$ && (i.$attrs$ = i.$attrs$ || {}, d.$attrsToReflect$.map(\n ([$, u]) => i.$attrs$[u] = c[$]\n )), s && i.$attrs$)\n for (const $ of Object.keys(i.$attrs$))\n c.hasAttribute($) && ![\"key\", \"ref\", \"style\", \"class\"].includes($) && (i.$attrs$[$] = c[$]);\n i.$tag$ = null, i.$flags$ |= 4, e.$vnode$ = i, i.$elm$ = f.$elm$ = c.shadowRoot || c, x = c[\"s-sc\"], N = (d.$flags$ & 1) !== 0, B = c[\"s-cr\"], _ = !1, A(f, i, s);\n {\n if (E.$flags$ |= 1, z) {\n ue(i.$elm$);\n for (const $ of b) {\n const u = $.$nodeToRelocate$;\n if (!u[\"s-ol\"]) {\n const p = M.createTextNode(\"\");\n p[\"s-nr\"] = u, T(u.parentNode, u[\"s-ol\"] = p, u);\n }\n }\n for (const $ of b) {\n const u = $.$nodeToRelocate$, p = $.$slotRefNode$;\n if (p) {\n const m = p.parentNode;\n let y = p.nextSibling;\n {\n let R = (r = u[\"s-ol\"]) == null ? void 0 : r.previousSibling;\n for (; R; ) {\n let v = (o = R[\"s-nr\"]) != null ? o : null;\n if (v && v[\"s-sn\"] === u[\"s-sn\"] && m === v.parentNode) {\n for (v = v.nextSibling; v === u || v != null && v[\"s-sr\"]; )\n v = v == null ? void 0 : v.nextSibling;\n if (!v || !v[\"s-nr\"]) {\n y = v;\n break;\n }\n }\n R = R.previousSibling;\n }\n }\n (!y && m !== u.parentNode || u.nextSibling !== y) && u !== y && (!u[\"s-hn\"] && u[\"s-ol\"] && (u[\"s-hn\"] = u[\"s-ol\"].parentNode.nodeName), T(m, u, y), u.nodeType === 1 && (u.hidden = (n = u[\"s-ih\"]) != null ? n : !1)), u && typeof p[\"s-rf\"] == \"function\" && p[\"s-rf\"](u);\n } else\n u.nodeType === 1 && (s && (u[\"s-ih\"] = (l = u.hidden) != null ? l : !1), u.hidden = !0);\n }\n }\n _ && fe(i.$elm$), E.$flags$ &= -2, b.length = 0;\n }\n if (P.experimentalScopedSlotChanges && d.$flags$ & 2)\n for (const $ of i.$elm$.childNodes)\n $[\"s-hn\"] !== L && !$[\"s-sh\"] && (s && $[\"s-ih\"] == null && ($[\"s-ih\"] = (a = $.hidden) != null ? a : !1), $.hidden = !0);\n B = void 0;\n};\nconst Ce = (e, t, s) => {\n [null, void 0, \"\", !1].includes(s) || [\"innerHTML\", \"style\"].includes(t) || e.setAttribute(t, [\"object\", \"function\"].includes(typeof s) ? \"/!\\\\ Object props are not rendered in the code example\" : s);\n}, pe = (e, t, s, r, o) => {\n if (t && typeof t == \"string\") {\n const n = document.createElement(t);\n Object.keys(s || {}).forEach((l) => {\n Ce(n, l, s[l]);\n }), r == null || r.forEach((l) => {\n pe(n, l.$tag$, l.$attrs$, l.$children$, l.$text$);\n }), s != null && s.innerHTML && (n.innerHTML = s.innerHTML), e.appendChild(n);\n }\n o && (e.innerHTML = o);\n}, Ve = (e, t) => {\n const s = {};\n if (typeof e != \"object\")\n throw new Error(\"filterArgs - args isn't an object.\");\n for (const r in e)\n if (!r.startsWith(\"slot\")) {\n const o = e[r], n = r.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase();\n (!t || !Object.keys(t).includes(r) || t[r] !== o) && (s[n] = o);\n }\n return s;\n}, et = (e, t) => {\n var r, o;\n const s = document.getElementById(\"storybook-root\");\n if (s !== null)\n return (o = document.querySelector(\"[lang]\")) == null || o.setAttribute(\"lang\", ((r = t.globals) == null ? void 0 : r.locale) || \"en\"), Fe(\n {\n $ancestorComponent$: void 0,\n $flags$: 0,\n $modeName$: void 0,\n $cmpMeta$: {\n $flags$: 0,\n $tagName$: s.tagName\n },\n $hostElement$: s\n },\n e(t)\n ), s.children[s.children.length - 1];\n}, tt = ({ $tag$: e, $attrs$: t, $children$: s, $text$: r }) => {\n const o = document.createElement(\"div\");\n return pe(o, e, t, s, r), o.innerHTML;\n}, C = (e, t) => {\n if (!t)\n return;\n const s = t.split(\"/\");\n return `${e}${s.slice(2, s.length - 1).join(\"-\")}--docs`;\n};\nvar S, D;\nclass st {\n constructor(t) {\n /**\n * JsonDocs\n */\n g(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 w(this, S, (t) => this.jsonDoc.components.find((s) => s.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 w(this, D, (t) => {\n const s = t.type.replace(/\"([^\"]+)\"/g, \"$1\").replace(/\\s/g, \"\").replace(/\\(.*?\\)/g, (r) => r.replace(/\\|/g, \" OR \")).split(\"|\").map((r) => r.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\" } } : s.length > 1 ? s.includes(\"string\") ? { control: { type: \"text\" } } : s.every((r) => r == null ? void 0 : r.includes(\"[]\")) ? { control: { type: \"object\" } } : (s.unshift(void 0), { control: { type: \"select\" }, options: s }) : { 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 g(this, \"extractArgTypes\", (t) => {\n const s = k(this, S).call(this, t), r = s == null ? void 0 : s.props.reduce((f, i) => {\n const { control: $, options: u } = k(this, D).call(this, i);\n return {\n ...f,\n [i.name]: {\n name: i.attr || i.name,\n description: i.docs,\n type: { required: i.required },\n table: {\n category: \"props\",\n type: { summary: i.type },\n defaultValue: { summary: i.default }\n },\n control: $,\n options: u\n }\n };\n }, {}), o = s == null ? void 0 : s.events.reduce(\n (f, i) => ({\n ...f,\n [i.event]: {\n name: i.event,\n description: i.docs,\n table: {\n category: \"events\",\n type: { summary: i.detail }\n }\n }\n }),\n {}\n ), n = s == null ? void 0 : s.methods.reduce(\n (f, i) => ({\n ...f,\n [i.name]: {\n name: i.name,\n description: i.docs,\n table: {\n category: \"methods\",\n type: { summary: i.signature }\n }\n }\n }),\n {}\n ), l = s == null ? void 0 : s.slots.reduce(\n (f, i) => ({\n ...f,\n [i.name]: {\n name: i.name !== \"\" ? i.name : \"default\",\n // default slot are unnamed\n description: i.docs,\n table: {\n category: \"slots\",\n type: { summary: void 0 }\n }\n }\n }),\n {}\n ), a = s == null ? void 0 : s.styles.reduce(\n (f, i) => ({\n ...f,\n [i.name]: {\n name: i.name,\n description: i.docs,\n table: {\n category: \"custom properties\",\n type: { summary: void 0 }\n }\n }\n }),\n {}\n ), c = s == null ? void 0 : s.dependencies.reduce((f, i) => {\n const $ = k(this, S).call(this, i);\n return {\n ...f,\n [i]: {\n name: i,\n description: `<a href=\"./?path=/docs/${C(\"\", $ == null ? void 0 : $.filePath)}\">View Component Documentation</a>`,\n table: {\n category: \"depends on\",\n type: { summary: void 0 }\n }\n }\n };\n }, {}), d = s == null ? void 0 : s.dependents.reduce((f, i) => {\n const $ = k(this, S).call(this, i);\n return {\n ...f,\n [i]: {\n name: i,\n description: `<a href=\"./?path=/docs/${C(\"\", $ == null ? void 0 : $.filePath)}\">View Component Documentation</a>`,\n table: {\n category: \"used by\",\n type: { summary: void 0 }\n }\n }\n };\n }, {});\n return {\n ...r,\n ...o,\n ...n,\n ...l,\n ...a,\n ...c,\n ...d\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 g(this, \"extractComponentDescription\", (t) => {\n const s = k(this, S).call(this, t);\n return (s == null ? void 0 : s.readme) || (s == null ? void 0 : s.docs);\n });\n this.jsonDoc = t;\n }\n}\nS = new WeakMap(), D = new WeakMap();\nconst De = (e, t) => {\n if (t)\n return `${e}${t}`;\n}, ge = (e) => {\n let t = e.overview ? `${e.overview}\n\n` : \"\";\n const s = e.props.filter(({ attr: o }) => o !== void 0);\n s.length && (t += `Attributes:\n`, t += s.map(({ attr: o, docs: n }) => `- \\`${o}\\`: ${n}\n`).join(\"\"), t += `\n`);\n const r = e.props.filter(({ attr: o }) => o === void 0);\n return r.length && (t += `Properties:\n`, t += r.map(({ name: o, docs: n }) => `- \\`${o}\\`: ${n}\n`).join(\"\"), t += `\n`), e.methods.length && (t += `Methods:\n`, t += e.methods.map(({ name: o, docs: n }) => `- \\`${o}\\`: ${n}\n`).join(\"\"), t += `\n`), e.events.length && (t += `Events:\n`, t += e.events.map(({ event: o, docs: n }) => `- \\`${o}\\`: ${n}\n`).join(\"\"), t += `\n`), e.listeners.length && (t += `Listeners:\n`, t += e.listeners.map(({ event: o }) => `- \\`${o}\\`\n`).join(\"\"), t += `\n`), e.slots.length && (t += `Slots:\n`, t += e.slots.map(({ name: o, docs: n }) => `- \\`${o}\\`: ${n}\n`).join(\"\"), t += `\n`), t;\n}, W = (e) => `${e.docs}\n\nType: \\`${e.type}\\``, rt = (e, t, s, r) => ({\n $schema: \"https://json.schemastore.org/web-types\",\n name: e,\n version: t,\n \"description-markup\": \"markdown\",\n contributions: {\n html: {\n elements: s.components.map((o) => {\n const n = C(r, o.filePath);\n return {\n name: o.tag,\n description: ge(o),\n \"doc-url\": n,\n attributes: o.props.filter((l) => l.attr).map((l) => ({\n name: l.attr,\n description: W(l),\n \"doc-url\": n,\n value: {\n type: l.type,\n default: l.default,\n required: l.required\n }\n })),\n js: {\n properties: o.props.map((l) => ({\n name: l.name,\n description: W(l),\n \"doc-url\": n,\n value: {\n type: l.type,\n default: l.default,\n required: l.required\n }\n })),\n events: o.events.map((l) => ({\n name: l.event,\n description: l.docs\n }))\n }\n };\n })\n }\n }\n}), Pe = (e, t, s) => [\n { name: \"Storybook\", url: C(e, s) },\n { name: \"Sources\", url: De(t, s) }\n], we = (e) => {\n if (!e.values.some(({ value: t }) => t === void 0))\n return e.values.map(({ value: t }) => ({ name: t }));\n}, ot = (e, t, s, r) => ({\n version: e,\n tags: t.components.map((o) => {\n const n = Pe(s, r, o.filePath);\n return {\n name: o.tag,\n description: ge(o),\n attributes: o.props.map((l) => ({\n name: l.attr || l.name,\n description: W(l),\n values: we(l),\n references: n\n })),\n references: n\n };\n }),\n globalAttributes: [],\n valueSets: []\n}), nt = (e) => {\n const t = { value: \"2023\", pattern: \"yyyy\" }, s = { value: \"12\", pattern: \"mm\" }, r = { value: \"24\", pattern: \"dd\" };\n return Be([t.value, s.value, r.value].join(\"-\"), e, { timeZone: \"UTC\" }).replace(t.value, t.pattern).replace(s.value, s.pattern).replace(r.value, r.pattern);\n}, lt = (e) => e.toISOString().split(\"T\")[0], Ue = (e, t, s) => {\n const r = e.closest(\"[lang]\"), o = Intl.NumberFormat.supportedLocalesOf(r == null ? void 0 : r.lang), n = o.length > 0 && typeof o[0] == \"string\" ? o[0] : navigator.language || s, l = n.split(\"-\").shift();\n return {\n locale: n,\n messages: t[l] || t[s]\n };\n}, it = (e, t, s) => new Intl.NumberFormat(t, { style: \"currency\", currency: s }).format(e), at = (e, t, s = 0) => new Intl.NumberFormat(t, { minimumFractionDigits: s }).format(s > 0 ? Number(e == null ? void 0 : e.toFixed(s)) : e), He = /^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$/, Be = (e, t, s) => typeof e != \"string\" || e === \"\" || !He.test(e) ? \"\" : new Intl.DateTimeFormat(t, s).format(new Date(e)), ct = (e, t) => (s) => Ue(s, e, t), ft = ({ disconnect: e, observe: t, takeRecords: s }) => {\n class r {\n constructor(n) {\n /**\n *\n */\n g(this, \"disconnect\", e);\n /**\n *\n */\n g(this, \"observe\", t);\n /**\n *\n */\n g(this, \"takeRecords\", s);\n /**\n *\n */\n g(this, \"cb\");\n this.cb = n;\n }\n }\n return [window, global].forEach((o) => {\n Object.defineProperty(o, \"MutationObserver\", {\n writable: !0,\n configurable: !0,\n value: r\n });\n }), r;\n}, ut = ({ disconnect: e, observe: t }) => {\n class s {\n constructor(o) {\n /**\n *\n */\n g(this, \"disconnect\", e);\n /**\n *\n */\n g(this, \"observe\", t);\n /**\n *\n */\n g(this, \"unobserve\");\n /**\n *\n */\n g(this, \"cb\");\n this.cb = o;\n }\n }\n return [window, global].forEach((r) => {\n Object.defineProperty(r, \"ResizeObserver\", {\n writable: !0,\n configurable: !0,\n value: s\n });\n }), s;\n};\nclass We extends Event {\n constructor() {\n super(...arguments);\n /**\n *\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n g(this, \"detail\");\n }\n}\nconst $t = () => {\n class e extends We {\n }\n return [window, global].forEach((t) => {\n Object.defineProperty(t, \"SubmitEvent\", {\n writable: !0,\n configurable: !0,\n value: e\n });\n }), e;\n};\nexport {\n Ie as ClassList,\n st as StorybookPreview,\n Ge as allItemsAreString,\n Je as cleanString,\n ze as createID,\n He as dateRegExp,\n lt as dateToString,\n ct as defineLocales,\n Ve as filterArgs,\n Ke as focusableElements,\n nt as getLocaleDatePattern,\n te as getParentWindows,\n tt as getStoryHTML,\n C as getStorybookUrl,\n Qe as getWindows,\n Xe as isTagName,\n Ze as isValidString,\n it as localeCurrency,\n Be as localeDate,\n at as localeNumber,\n Ye as nextTick,\n ft as setupMutationObserverMock,\n ut as setupResizeObserverMock,\n $t as setupSubmitEventMock,\n et as stencilWrapper,\n ot as vsCodeGenerator,\n rt as webTypesGenerator\n};\n//# sourceMappingURL=index.es.js.map\n","import en from './en/messages.json';\nimport fr from './fr/messages.json';\nimport { defineLocales } from '@mgdis/stencil-helpers';\n\nconst defaultLocale = 'en';\nconst messages = { en, fr };\n\n/**\n * Get Intl object\n * @param element - element we need to get the language\n * @returns messages object\n */\nexport const initLocales = defineLocales(messages, defaultLocale);\n"],"mappings":"AAAA,IAAIA,EAAKC,OAAOC,eAIhB,IAAIC,EAAK,CAACC,EAAGC,EAAGC,IAAMD,KAAKD,EAAIJ,EAAGI,EAAGC,EAAG,CAAEE,YAAa,EAAGC,cAAe,EAAGC,UAAW,EAAGC,MAAOJ,IAAOF,EAAEC,GAAKC,EAC5G,IAACK,EAAI,CAACP,EAAGC,EAAGC,IAAMH,EAAGC,SAAUC,GAAK,SAAWA,EAAI,GAAKA,EAAGC,GAEzD,MAACM,EAAK,CAACR,EAAI,GAAIC,EAAI,MACtB,MAAMC,EAAI,IAAIO,WAAWR,GACzBS,OAAOC,gBAAgBT,GACvB,MAAMU,EAAIC,MAAMC,KAAKZ,GAAGa,KAAKC,GAAMA,EAAEC,SAAS,IAAIC,SAAS,EAAG,OAAMC,KA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O,MAOVC,GAAcC,EAAclB,GAAUc,W","ignoreList":[]}
@@ -44,7 +44,7 @@ export declare class MgButton {
44
44
  validateFullWidth(newValue: MgButton['fullWidth']): void;
45
45
  /**
46
46
  * Define form id to attach button with.
47
- * If this attribute is not set, the <button> is associated with its ancestor <form> element.
47
+ * If this attribute is not set, the `<button>` is associated with its ancestor `<form>` element.
48
48
  */
49
49
  form?: string;
50
50
  /**
@@ -100,7 +100,7 @@ export namespace Components {
100
100
  */
101
101
  "disabled"?: boolean;
102
102
  /**
103
- * Define form id to attach button with. If this attribute is not set, the <button> is associated with its ancestor <form> element.
103
+ * Define form id to attach button with. If this attribute is not set, the `<button>` is associated with its ancestor `<form>` element.
104
104
  */
105
105
  "form"?: string;
106
106
  /**
@@ -2064,7 +2064,7 @@ declare namespace LocalJSX {
2064
2064
  */
2065
2065
  "disabled"?: boolean;
2066
2066
  /**
2067
- * Define form id to attach button with. If this attribute is not set, the <button> is associated with its ancestor <form> element.
2067
+ * Define form id to attach button with. If this attribute is not set, the `<button>` is associated with its ancestor `<form>` element.
2068
2068
  */
2069
2069
  "form"?: string;
2070
2070
  /**
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@mgdis/mg-components",
4
- "version": "5.28.0",
4
+ "version": "5.28.2",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -152,7 +152,7 @@
152
152
  },
153
153
  {
154
154
  "name": "mg-button",
155
- "description": "Attributes:\n- `disable-on-click`: Option to set input disable on click, in order to prevent multi-click.\nParent component have to remove the attribute 'disabled' when the process ends.\n- `disabled`: Disable button\n- `form`: Define form id to attach button with.\nIf this attribute is not set, the <button> is associated with its ancestor <form> element.\n- `full-width`: Set button to full-width\n- `identifier`: Identifier is used for the element ID (id is a reserved prop in Stencil.js)\n- `is-icon`: Define if button is round.\nUsed for icon button.\n- `label`: aria-label\nIn case button text is not explicit enough\n- `type`: Define button type\n- `variant`: Define button variant\n\nEvents:\n- `disabled-change`: Emmited event when disabled change\n\nSlots:\n- ``: Button content\n\n",
155
+ "description": "Attributes:\n- `disable-on-click`: Option to set input disable on click, in order to prevent multi-click.\nParent component have to remove the attribute 'disabled' when the process ends.\n- `disabled`: Disable button\n- `form`: Define form id to attach button with.\nIf this attribute is not set, the `<button>` is associated with its ancestor `<form>` element.\n- `full-width`: Set button to full-width\n- `identifier`: Identifier is used for the element ID (id is a reserved prop in Stencil.js)\n- `is-icon`: Define if button is round.\nUsed for icon button.\n- `label`: aria-label\nIn case button text is not explicit enough\n- `type`: Define button type\n- `variant`: Define button variant\n\nEvents:\n- `disabled-change`: Emmited event when disabled change\n\nSlots:\n- ``: Button content\n\n",
156
156
  "doc-url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/atoms-mg-button--docs",
157
157
  "attributes": [
158
158
  {
@@ -176,7 +176,7 @@
176
176
  },
177
177
  {
178
178
  "name": "form",
179
- "description": "Define form id to attach button with.\nIf this attribute is not set, the <button> is associated with its ancestor <form> element.\n\nType: `string`",
179
+ "description": "Define form id to attach button with.\nIf this attribute is not set, the `<button>` is associated with its ancestor `<form>` element.\n\nType: `string`",
180
180
  "doc-url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/atoms-mg-button--docs",
181
181
  "value": {
182
182
  "type": "string",
@@ -264,7 +264,7 @@
264
264
  },
265
265
  {
266
266
  "name": "form",
267
- "description": "Define form id to attach button with.\nIf this attribute is not set, the <button> is associated with its ancestor <form> element.\n\nType: `string`",
267
+ "description": "Define form id to attach button with.\nIf this attribute is not set, the `<button>` is associated with its ancestor `<form>` element.\n\nType: `string`",
268
268
  "doc-url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/atoms-mg-button--docs",
269
269
  "value": {
270
270
  "type": "string",
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.28.0",
2
+ "version": "5.28.2",
3
3
  "tags": [
4
4
  {
5
5
  "name": "mg-action-more",
@@ -170,7 +170,7 @@
170
170
  },
171
171
  {
172
172
  "name": "mg-button",
173
- "description": "Attributes:\n- `disable-on-click`: Option to set input disable on click, in order to prevent multi-click.\nParent component have to remove the attribute 'disabled' when the process ends.\n- `disabled`: Disable button\n- `form`: Define form id to attach button with.\nIf this attribute is not set, the <button> is associated with its ancestor <form> element.\n- `full-width`: Set button to full-width\n- `identifier`: Identifier is used for the element ID (id is a reserved prop in Stencil.js)\n- `is-icon`: Define if button is round.\nUsed for icon button.\n- `label`: aria-label\nIn case button text is not explicit enough\n- `type`: Define button type\n- `variant`: Define button variant\n\nEvents:\n- `disabled-change`: Emmited event when disabled change\n\nSlots:\n- ``: Button content\n\n",
173
+ "description": "Attributes:\n- `disable-on-click`: Option to set input disable on click, in order to prevent multi-click.\nParent component have to remove the attribute 'disabled' when the process ends.\n- `disabled`: Disable button\n- `form`: Define form id to attach button with.\nIf this attribute is not set, the `<button>` is associated with its ancestor `<form>` element.\n- `full-width`: Set button to full-width\n- `identifier`: Identifier is used for the element ID (id is a reserved prop in Stencil.js)\n- `is-icon`: Define if button is round.\nUsed for icon button.\n- `label`: aria-label\nIn case button text is not explicit enough\n- `type`: Define button type\n- `variant`: Define button variant\n\nEvents:\n- `disabled-change`: Emmited event when disabled change\n\nSlots:\n- ``: Button content\n\n",
174
174
  "attributes": [
175
175
  {
176
176
  "name": "disable-on-click",
@@ -202,7 +202,7 @@
202
202
  },
203
203
  {
204
204
  "name": "form",
205
- "description": "Define form id to attach button with.\nIf this attribute is not set, the <button> is associated with its ancestor <form> element.\n\nType: `string`",
205
+ "description": "Define form id to attach button with.\nIf this attribute is not set, the `<button>` is associated with its ancestor `<form>` element.\n\nType: `string`",
206
206
  "references": [
207
207
  {
208
208
  "name": "Storybook",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mgdis/mg-components",
3
- "version": "5.28.0",
3
+ "version": "5.28.2",
4
4
  "description": "MG Components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -33,43 +33,42 @@
33
33
  "@popperjs/core": "2.11.8",
34
34
  "@stencil/core": "4.19.2",
35
35
  "@mgdis/img": "1.7.3",
36
- "@mgdis/stencil-helpers": "1.1.6",
37
- "@mgdis/styles": "1.3.5"
36
+ "@mgdis/stencil-helpers": "1.1.8",
37
+ "@mgdis/styles": "1.3.6"
38
38
  },
39
39
  "devDependencies": {
40
- "@playwright/test": "1.43.1",
41
- "@pxtrn/storybook-addon-docs-stencil": "6.4.1",
42
- "@storybook/addon-a11y": "8.1.11",
43
- "@storybook/addon-actions": "8.1.11",
44
- "@storybook/addon-essentials": "8.1.11",
45
- "@storybook/addon-interactions": "8.1.11",
46
- "@storybook/addon-links": "8.1.11",
47
- "@storybook/blocks": "8.1.11",
48
- "@storybook/html": "8.1.11",
49
- "@storybook/html-vite": "8.1.11",
50
- "@storybook/manager-api": "8.1.11",
40
+ "@playwright/test": "1.45.3",
41
+ "@storybook/addon-a11y": "8.2.6",
42
+ "@storybook/addon-actions": "8.2.6",
43
+ "@storybook/addon-essentials": "8.2.6",
44
+ "@storybook/addon-interactions": "8.2.6",
45
+ "@storybook/addon-links": "8.2.6",
46
+ "@storybook/blocks": "8.2.6",
47
+ "@storybook/html": "8.2.6",
48
+ "@storybook/html-vite": "8.2.6",
49
+ "@storybook/manager-api": "8.2.6",
51
50
  "@storybook/testing-library": "0.2.2",
52
51
  "@types/jest": "29.5.12",
53
- "@types/node": "20.14.9",
54
- "chromatic": "11.5.4",
52
+ "@types/node": "20.14.13",
53
+ "chromatic": "11.5.6",
55
54
  "eslint": "8.57.0",
56
55
  "eslint-plugin-storybook": "0.8.0",
57
56
  "jest": "29.7.0",
58
57
  "jest-cli": "29.7.0",
59
58
  "jest-junit": "16.0.0",
60
59
  "jest-transform-stub": "2.0.0",
61
- "prettier": "3.3.2",
62
- "puppeteer": "22.12.1",
63
- "sass": "1.77.6",
64
- "storybook": "8.1.11",
60
+ "prettier": "3.3.3",
61
+ "puppeteer": "22.14.0",
62
+ "sass": "1.77.8",
63
+ "storybook": "8.2.6",
65
64
  "ts-node": "10.9.2",
66
- "typescript": "5.5.3",
67
- "vite": "5.3.3",
68
- "@mgdis/playwright-helpers": "1.0.8",
69
- "eslint-config-stencil": "1.1.11",
70
- "@mgdis/linting-stencil": "1.1.6",
71
- "jest-config": "1.0.5",
72
- "tsconfig": "1.0.3"
65
+ "typescript": "5.5.4",
66
+ "vite": "5.3.5",
67
+ "jest-config": "1.0.6",
68
+ "tsconfig": "1.0.3",
69
+ "@mgdis/linting-stencil": "1.1.7",
70
+ "@mgdis/playwright-helpers": "1.0.9",
71
+ "eslint-config-stencil": "1.1.13"
73
72
  },
74
73
  "license": "BSD-3-Clause",
75
74
  "scripts": {
@@ -1 +0,0 @@
1
- {"file":"index-d8721674.js","mappings":";;AAAA,IAAI,EAAE,GAAG,MAAM,CAAC,cAAc,CAAC;AAC/B,IAAI,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,UAAU,EAAE,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AACjH,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,IAAI,QAAQ,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;AAC5D,MAAC,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,KAAK;AAC/B,EAAE,MAAM,CAAC,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC;AAC9B,EAAE,MAAM,CAAC,eAAe,CAAC,CAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACpTD,MAAM,aAAa,GAAG,IAAI,CAAC;AAC3B,MAAM,QAAQ,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;AAE5B;;;;;MAKa,WAAW,GAAGA,EAAa,CAAC,QAAQ,EAAE,aAAa;;;;;;;;;;;;;;;;;;;","names":["defineLocales"],"sources":["../stencil-helpers/dist/index.es.js","src/locales/index.ts"],"sourcesContent":["var $e = Object.defineProperty;\nvar ue = (e, t, s) => t in e ? $e(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;\nvar v = (e, t, s) => ue(e, typeof t != \"symbol\" ? t + \"\" : t, s);\nconst Ce = (e = \"\", t = 10) => {\n const s = new Uint8Array(t);\n crypto.getRandomValues(s);\n const r = Array.from(s).map((o) => o.toString(16).padStart(2, \"0\")).join(\"\").slice(0, t);\n return e !== \"\" ? `${e}-${r}` : r;\n};\nclass He {\n constructor(t = []) {\n /**\n * Available classes\n */\n v(this, \"classes\");\n /**\n * Add class\n * @param className - class name to add\n */\n v(this, \"add\", (t) => {\n this.has(t) || this.classes.push(t);\n });\n /**\n * Delete class\n * @param className - class name to delete\n */\n v(this, \"delete\", (t) => {\n const s = this.classes.indexOf(t);\n s > -1 && this.classes.splice(s, 1);\n });\n /**\n * Check if class exist in list\n * @param className - class name to check\n * @returns class name is in the list\n */\n v(this, \"has\", (t) => this.classes.includes(t));\n /**\n * Join classes seperated by spaces\n * @returns joined values\n */\n v(this, \"join\", () => this.classes.join(\" \"));\n this.classes = t;\n }\n}\nconst Pe = (e) => Array.isArray(e) && e.every((t) => typeof t == \"string\"), Be = (e, t) => t.includes(e == null ? void 0 : e.tagName.toLowerCase()), We = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"]), [identifier], mg-button', ze = (e) => {\n const t = Q(e), s = Z(e);\n return [e, ...t, ...s];\n}, Q = (e, t = []) => {\n if (e.self !== e.top)\n try {\n const s = e.parent;\n return s ? (t.push(s), Q(s, t)) : t;\n } catch (s) {\n return console.error(\"Different hosts between iframes:\", s), t;\n }\n return t;\n}, Z = (e, t = []) => {\n if (e.frames.length > 0)\n for (const s of Array.from(e.frames))\n t.push(s), Z(s, t);\n return t;\n}, Ie = (e) => typeof e == \"string\" && e.trim() !== \"\", qe = (e) => typeof e == \"string\" ? e.toLocaleLowerCase().normalize(\"NFD\").replaceAll(/[\\u0300-\\u036f]/g, \"\") : e, Ge = async (e) => e(), J = (e, t) => {\n if (!t)\n return;\n const s = t.split(\"/\");\n return `${e}${s.slice(2, s.length - 1).join(\"-\")}--docs`;\n}, de = (e, t) => {\n if (t)\n return `${e}${t}`;\n}, Y = (e) => {\n let t = e.overview ? `${e.overview}\n\n` : \"\";\n const s = e.props.filter(({ attr: o }) => o !== void 0);\n s.length && (t += `Attributes:\n`, t += s.map(({ attr: o, docs: l }) => `- \\`${o}\\`: ${l}\n`).join(\"\"), t += `\n`);\n const r = e.props.filter(({ attr: o }) => o === void 0);\n return r.length && (t += `Properties:\n`, t += r.map(({ name: o, docs: l }) => `- \\`${o}\\`: ${l}\n`).join(\"\"), t += `\n`), e.methods.length && (t += `Methods:\n`, t += e.methods.map(({ name: o, docs: l }) => `- \\`${o}\\`: ${l}\n`).join(\"\"), t += `\n`), e.events.length && (t += `Events:\n`, t += e.events.map(({ event: o, docs: l }) => `- \\`${o}\\`: ${l}\n`).join(\"\"), t += `\n`), e.listeners.length && (t += `Listeners:\n`, t += e.listeners.map(({ event: o }) => `- \\`${o}\\`\n`).join(\"\"), t += `\n`), e.slots.length && (t += `Slots:\n`, t += e.slots.map(({ name: o, docs: l }) => `- \\`${o}\\`: ${l}\n`).join(\"\"), t += `\n`), t;\n}, _ = (e) => `${e.docs}\n\nType: \\`${e.type}\\``, Xe = (e, t, s, r) => ({\n $schema: \"https://json.schemastore.org/web-types\",\n name: e,\n version: t,\n \"description-markup\": \"markdown\",\n contributions: {\n html: {\n elements: s.components.map((o) => {\n const l = J(r, o.filePath);\n return {\n name: o.tag,\n description: Y(o),\n \"doc-url\": l,\n attributes: o.props.filter((n) => n.attr).map((n) => ({\n name: n.attr,\n description: _(n),\n \"doc-url\": l,\n value: {\n type: n.type,\n default: n.default,\n required: n.required\n }\n })),\n js: {\n properties: o.props.map((n) => ({\n name: n.name,\n description: _(n),\n \"doc-url\": l,\n value: {\n type: n.type,\n default: n.default,\n required: n.required\n }\n })),\n events: o.events.map((n) => ({\n name: n.event,\n description: n.docs\n }))\n }\n };\n })\n }\n }\n}), pe = (e, t, s) => [\n { name: \"Storybook\", url: J(e, s) },\n { name: \"Sources\", url: de(t, s) }\n], ve = (e) => {\n if (!e.values.some(({ value: t }) => t === void 0))\n return e.values.map(({ value: t }) => ({ name: t }));\n}, Ke = (e, t, s, r) => ({\n version: e,\n tags: t.components.map((o) => {\n const l = pe(s, r, o.filePath);\n return {\n name: o.tag,\n description: Y(o),\n attributes: o.props.map((n) => ({\n name: n.attr || n.name,\n description: _(n),\n values: ve(n),\n references: l\n })),\n references: l\n };\n }),\n globalAttributes: [],\n valueSets: []\n}), Qe = (e) => {\n const t = { value: \"2023\", pattern: \"yyyy\" }, s = { value: \"12\", pattern: \"mm\" }, r = { value: \"24\", pattern: \"dd\" };\n return ye([t.value, s.value, r.value].join(\"-\"), e, { timeZone: \"UTC\" }).replace(t.value, t.pattern).replace(s.value, s.pattern).replace(r.value, r.pattern);\n}, Ze = (e) => e.toISOString().split(\"T\")[0], ge = (e, t, s) => {\n const r = e.closest(\"[lang]\"), o = Intl.NumberFormat.supportedLocalesOf(r == null ? void 0 : r.lang), l = o.length > 0 && typeof o[0] == \"string\" ? o[0] : navigator.language || s, n = l.split(\"-\").shift();\n return {\n locale: l,\n messages: t[n] || t[s]\n };\n}, Je = (e, t, s) => new Intl.NumberFormat(t, { style: \"currency\", currency: s }).format(e), Ye = (e, t, s = 0) => new Intl.NumberFormat(t, { minimumFractionDigits: s }).format(s > 0 ? Number(e == null ? void 0 : e.toFixed(s)) : e), he = /^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$/, ye = (e, t, s) => typeof e != \"string\" || e === \"\" || !he.test(e) ? \"\" : new Intl.DateTimeFormat(t, s).format(new Date(e)), Ve = (e, t) => (s) => ge(s, e, t);\nvar N = {\n allRenderFn: !1,\n cmpDidLoad: !0,\n cmpDidUnload: !1,\n cmpDidUpdate: !0,\n cmpDidRender: !0,\n cmpWillLoad: !0,\n cmpWillUpdate: !0,\n cmpWillRender: !0,\n connectedCallback: !0,\n disconnectedCallback: !0,\n element: !0,\n event: !0,\n hasRenderFn: !0,\n lifecycle: !0,\n hostListener: !0,\n hostListenerTargetWindow: !0,\n hostListenerTargetDocument: !0,\n hostListenerTargetBody: !0,\n hostListenerTargetParent: !1,\n hostListenerTarget: !0,\n member: !0,\n method: !0,\n mode: !0,\n observeAttribute: !0,\n prop: !0,\n propMutable: !0,\n reflect: !0,\n scoped: !0,\n shadowDom: !0,\n slot: !0,\n cssAnnotations: !0,\n state: !0,\n style: !0,\n formAssociated: !1,\n svg: !0,\n updatable: !0,\n vdomAttribute: !0,\n vdomXlink: !0,\n vdomClass: !0,\n vdomFunctional: !0,\n vdomKey: !0,\n vdomListener: !0,\n vdomRef: !0,\n vdomPropOrAttr: !0,\n vdomRender: !0,\n vdomStyle: !0,\n vdomText: !0,\n watchCallback: !0,\n taskQueue: !0,\n hotModuleReplacement: !1,\n isDebug: !1,\n isDev: !1,\n isTesting: !1,\n hydrateServerSide: !1,\n hydrateClientSide: !1,\n lifecycleDOMEvents: !1,\n lazyLoad: !1,\n profile: !1,\n slotRelocation: !0,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n appendChildSlotFix: !1,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n cloneNodeFix: !1,\n hydratedAttribute: !1,\n hydratedClass: !0,\n // TODO(STENCIL-1305): remove this option\n scriptDataOpts: !1,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n scopedSlotTextContentFix: !1,\n // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field\n shadowDomShim: !1,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n slotChildNodesFix: !1,\n invisiblePrehydration: !0,\n propBoolean: !0,\n propNumber: !0,\n propString: !0,\n constructableCSS: !0,\n cmpShouldUpdate: !0,\n devTools: !1,\n shadowDelegatesFocus: !0,\n initializeNextTick: !1,\n asyncLoading: !1,\n asyncQueue: !1,\n transformTagName: !1,\n attachStyles: !0,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n experimentalSlotFixes: !1\n}, be = Object.defineProperty, Se = (e, t) => {\n for (var s in t)\n be(e, s, { get: t[s], enumerable: !0 });\n}, W = (e, t) => t in e, z = \"http://www.w3.org/1999/xlink\", C = typeof window < \"u\" ? window : {}, j = C.document || { head: {} };\nC.HTMLElement;\nvar x = {\n $flags$: 0,\n $resourcesUrl$: \"\",\n jmp: (e) => e(),\n raf: (e) => requestAnimationFrame(e),\n ael: (e, t, s, r) => e.addEventListener(t, s, r),\n rel: (e, t, s, r) => e.removeEventListener(t, s, r),\n ce: (e, t) => new CustomEvent(e, t)\n}, I = {}, me = \"http://www.w3.org/2000/svg\", Te = \"http://www.w3.org/1999/xhtml\", ke = (e) => e != null, V = (e) => (e = typeof e, e === \"object\" || e === \"function\"), xe = {};\nSe(xe, {\n err: () => ee,\n map: () => Ee,\n ok: () => F,\n unwrap: () => Ae,\n unwrapErr: () => Le\n});\nvar F = (e) => ({\n isOk: !0,\n isErr: !1,\n value: e\n}), ee = (e) => ({\n isOk: !1,\n isErr: !0,\n value: e\n});\nfunction Ee(e, t) {\n if (e.isOk) {\n const s = t(e.value);\n return s instanceof Promise ? s.then((r) => F(r)) : F(s);\n }\n if (e.isErr) {\n const s = e.value;\n return ee(s);\n }\n throw \"should never get here\";\n}\nvar Ae = (e) => {\n if (e.isOk)\n return e.value;\n throw e.value;\n}, Le = (e) => {\n if (e.isErr)\n return e.value;\n throw e.value;\n}, Re = (e, t, ...s) => {\n let r = null, o = null, l = null, n = !1, i = !1;\n const a = [], d = (f) => {\n for (let $ = 0; $ < f.length; $++)\n r = f[$], Array.isArray(r) ? d(r) : r != null && typeof r != \"boolean\" && ((n = !V(r)) && (r = String(r)), n && i ? a[a.length - 1].$text$ += r : a.push(n ? U(null, r) : r), i = n);\n };\n d(s);\n const u = U(e, null);\n return u.$attrs$ = t, a.length > 0 && (u.$children$ = a), u.$key$ = o, u.$name$ = l, u;\n}, U = (e, t) => {\n const s = {\n $flags$: 0,\n $tag$: e,\n $text$: t,\n $elm$: null,\n $children$: null\n };\n return s.$attrs$ = null, s.$key$ = null, s.$name$ = null, s;\n}, je = {}, Oe = (e) => e && e.$tag$ === je, q = (e, t, s, r, o, l) => {\n if (s !== r) {\n let n = W(e, t), i = t.toLowerCase();\n if (t === \"class\") {\n const a = e.classList, d = G(s), u = G(r);\n a.remove(...d.filter((f) => f && !u.includes(f))), a.add(...u.filter((f) => f && !d.includes(f)));\n } else if (t === \"style\") {\n for (const a in s)\n (!r || r[a] == null) && (a.includes(\"-\") ? e.style.removeProperty(a) : e.style[a] = \"\");\n for (const a in r)\n (!s || r[a] !== s[a]) && (a.includes(\"-\") ? e.style.setProperty(a, r[a]) : e.style[a] = r[a]);\n } else if (t !== \"key\") if (t === \"ref\")\n r && r(e);\n else if (!e.__lookupSetter__(t) && t[0] === \"o\" && t[1] === \"n\") {\n if (t[2] === \"-\" ? t = t.slice(3) : W(C, i) ? t = i.slice(2) : t = i[2] + t.slice(3), s || r) {\n const a = t.endsWith(te);\n t = t.replace(De, \"\"), s && x.rel(e, t, s, a), r && x.ael(e, t, r, a);\n }\n } else {\n const a = V(r);\n if ((n || a && r !== null) && !o)\n try {\n if (e.tagName.includes(\"-\"))\n e[t] = r;\n else {\n const u = r ?? \"\";\n t === \"list\" ? n = !1 : (s == null || e[t] != u) && (e[t] = u);\n }\n } catch {\n }\n let d = !1;\n i !== (i = i.replace(/^xlink\\:?/, \"\")) && (t = i, d = !0), r == null || r === !1 ? (r !== !1 || e.getAttribute(t) === \"\") && (d ? e.removeAttributeNS(z, t) : e.removeAttribute(t)) : (!n || l & 4 || o) && !a && (r = r === !0 ? \"\" : r, d ? e.setAttributeNS(z, t, r) : e.setAttribute(t, r));\n }\n }\n}, Me = /\\s/, G = (e) => e ? e.split(Me) : [], te = \"Capture\", De = new RegExp(te + \"$\"), se = (e, t, s) => {\n const r = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, o = e && e.$attrs$ || I, l = t.$attrs$ || I;\n for (const n of X(Object.keys(o)))\n n in l || q(r, n, o[n], void 0, s, t.$flags$);\n for (const n of X(Object.keys(l)))\n q(r, n, o[n], l[n], s, t.$flags$);\n};\nfunction X(e) {\n return e.includes(\"ref\") ? (\n // we need to sort these to ensure that `'ref'` is the last attr\n [...e.filter((t) => t !== \"ref\"), \"ref\"]\n ) : (\n // no need to sort, return the original array\n e\n );\n}\nvar T, w, E, O = !1, M = !1, H = !1, h = !1, D = (e, t, s, r) => {\n var o;\n const l = t.$children$[s];\n let n = 0, i, a, d;\n if (O || (H = !0, l.$tag$ === \"slot\" && (T && r.classList.add(T + \"-s\"), l.$flags$ |= l.$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 ))), l.$text$ !== null)\n i = l.$elm$ = j.createTextNode(l.$text$);\n else if (l.$flags$ & 1)\n i = l.$elm$ = j.createTextNode(\"\");\n else {\n if (h || (h = l.$tag$ === \"svg\"), i = l.$elm$ = j.createElementNS(\n h ? me : Te,\n !O && N.slotRelocation && l.$flags$ & 2 ? \"slot-fb\" : l.$tag$\n ), h && l.$tag$ === \"foreignObject\" && (h = !1), se(null, l, h), ke(T) && i[\"s-si\"] !== T && i.classList.add(i[\"s-si\"] = T), B(i, r), l.$children$)\n for (n = 0; n < l.$children$.length; ++n)\n a = D(e, l, n, i), a && i.appendChild(a);\n l.$tag$ === \"svg\" ? h = !1 : i.tagName === \"foreignObject\" && (h = !0);\n }\n return i[\"s-hn\"] = E, l.$flags$ & 3 && (i[\"s-sr\"] = !0, i[\"s-cr\"] = w, i[\"s-sn\"] = l.$name$ || \"\", i[\"s-rf\"] = (o = l.$attrs$) == null ? void 0 : o.ref, d = e && e.$children$ && e.$children$[s], d && d.$tag$ === l.$tag$ && e.$elm$ && A(e.$elm$, !1)), i;\n}, A = (e, t) => {\n x.$flags$ |= 1;\n const s = Array.from(e.childNodes);\n if (e[\"s-sr\"] && N.experimentalSlotFixes) {\n let r = e;\n for (; r = r.nextSibling; )\n r && r[\"s-sn\"] === e[\"s-sn\"] && r[\"s-sh\"] === E && s.push(r);\n }\n for (let r = s.length - 1; r >= 0; r--) {\n const o = s[r];\n o[\"s-hn\"] !== E && o[\"s-ol\"] && (m(le(o), o, P(o)), o[\"s-ol\"].remove(), o[\"s-ol\"] = void 0, o[\"s-sh\"] = void 0, H = !0), t && A(o, t);\n }\n x.$flags$ &= -2;\n}, re = (e, t, s, r, o, l) => {\n let n = e[\"s-cr\"] && e[\"s-cr\"].parentNode || e, i;\n for (n.shadowRoot && n.tagName === E && (n = n.shadowRoot); o <= l; ++o)\n r[o] && (i = D(null, s, o, e), i && (r[o].$elm$ = i, m(n, i, P(t))));\n}, oe = (e, t, s) => {\n for (let r = t; r <= s; ++r) {\n const o = e[r];\n if (o) {\n const l = o.$elm$;\n ae(o), l && (M = !0, l[\"s-ol\"] ? l[\"s-ol\"].remove() : A(l, !0), l.remove());\n }\n }\n}, Ne = (e, t, s, r, o = !1) => {\n let l = 0, n = 0, i = 0, a = 0, d = t.length - 1, u = t[0], f = t[d], $ = r.length - 1, c = r[0], p = r[$], b, y;\n for (; l <= d && n <= $; )\n if (u == null)\n u = t[++l];\n else if (f == null)\n f = t[--d];\n else if (c == null)\n c = r[++n];\n else if (p == null)\n p = r[--$];\n else if (R(u, c, o))\n k(u, c, o), u = t[++l], c = r[++n];\n else if (R(f, p, o))\n k(f, p, o), f = t[--d], p = r[--$];\n else if (R(u, p, o))\n (u.$tag$ === \"slot\" || p.$tag$ === \"slot\") && A(u.$elm$.parentNode, !1), k(u, p, o), m(e, u.$elm$, f.$elm$.nextSibling), u = t[++l], p = r[--$];\n else if (R(f, c, o))\n (u.$tag$ === \"slot\" || p.$tag$ === \"slot\") && A(f.$elm$.parentNode, !1), k(f, c, o), m(e, f.$elm$, u.$elm$), f = t[--d], c = r[++n];\n else {\n for (i = -1, a = l; a <= d; ++a)\n if (t[a] && t[a].$key$ !== null && t[a].$key$ === c.$key$) {\n i = a;\n break;\n }\n i >= 0 ? (y = t[i], y.$tag$ !== c.$tag$ ? b = D(t && t[n], s, i, e) : (k(y, c, o), t[i] = void 0, b = y.$elm$), c = r[++n]) : (b = D(t && t[n], s, n, e), c = r[++n]), b && m(le(u.$elm$), b, P(u.$elm$));\n }\n l > d ? re(\n e,\n r[$ + 1] == null ? null : r[$ + 1].$elm$,\n s,\n r,\n n,\n $\n ) : n > $ && oe(t, l, d);\n}, R = (e, t, s = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === \"slot\" ? e.$name$ === t.$name$ : s ? !0 : e.$key$ === t.$key$ : !1, P = (e) => e && e[\"s-ol\"] || e, le = (e) => (e[\"s-ol\"] ? e[\"s-ol\"] : e).parentNode, k = (e, t, s = !1) => {\n const r = t.$elm$ = e.$elm$, o = e.$children$, l = t.$children$, n = t.$tag$, i = t.$text$;\n let a;\n i === null ? (h = n === \"svg\" ? !0 : n === \"foreignObject\" ? !1 : h, n === \"slot\" && !O || se(e, t, h), o !== null && l !== null ? Ne(r, o, t, l, s) : l !== null ? (e.$text$ !== null && (r.textContent = \"\"), re(r, null, t, l, 0, l.length - 1)) : o !== null && oe(o, 0, o.length - 1), h && n === \"svg\" && (h = !1)) : (a = r[\"s-cr\"]) ? a.parentNode.textContent = i : e.$text$ !== i && (r.data = i);\n}, ne = (e) => {\n const t = e.childNodes;\n for (const s of t)\n if (s.nodeType === 1) {\n if (s[\"s-sr\"]) {\n const r = s[\"s-sn\"];\n s.hidden = !1;\n for (const o of t)\n if (o !== s) {\n if (o[\"s-hn\"] !== s[\"s-hn\"] || r !== \"\") {\n if (o.nodeType === 1 && (r === o.getAttribute(\"slot\") || r === o[\"s-sn\"]) || o.nodeType === 3 && r === o[\"s-sn\"]) {\n s.hidden = !0;\n break;\n }\n } else if (o.nodeType === 1 || o.nodeType === 3 && o.textContent.trim() !== \"\") {\n s.hidden = !0;\n break;\n }\n }\n }\n ne(s);\n }\n}, S = [], ie = (e) => {\n let t, s, r;\n for (const o of e.childNodes) {\n if (o[\"s-sr\"] && (t = o[\"s-cr\"]) && t.parentNode) {\n s = t.parentNode.childNodes;\n const l = o[\"s-sn\"];\n for (r = s.length - 1; r >= 0; r--)\n if (t = s[r], !t[\"s-cn\"] && !t[\"s-nr\"] && t[\"s-hn\"] !== o[\"s-hn\"] && !N.experimentalSlotFixes)\n if (K(t, l)) {\n let n = S.find((i) => i.$nodeToRelocate$ === t);\n M = !0, t[\"s-sn\"] = t[\"s-sn\"] || l, n ? (n.$nodeToRelocate$[\"s-sh\"] = o[\"s-hn\"], n.$slotRefNode$ = o) : (t[\"s-sh\"] = o[\"s-hn\"], S.push({\n $slotRefNode$: o,\n $nodeToRelocate$: t\n })), t[\"s-sr\"] && S.map((i) => {\n K(i.$nodeToRelocate$, t[\"s-sn\"]) && (n = S.find((a) => a.$nodeToRelocate$ === t), n && !i.$slotRefNode$ && (i.$slotRefNode$ = n.$slotRefNode$));\n });\n } else S.some((n) => n.$nodeToRelocate$ === t) || S.push({\n $nodeToRelocate$: t\n });\n }\n o.nodeType === 1 && ie(o);\n }\n}, K = (e, t) => e.nodeType === 1 ? e.getAttribute(\"slot\") === null && t === \"\" || e.getAttribute(\"slot\") === t : e[\"s-sn\"] === t ? !0 : t === \"\", ae = (e) => {\n e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(ae);\n}, m = (e, t, s) => {\n const r = e == null ? void 0 : e.insertBefore(t, s);\n return B(t, e), r;\n}, ce = (e) => {\n const t = [];\n return e && t.push(\n ...e[\"s-scs\"] || [],\n e[\"s-si\"],\n e[\"s-sc\"],\n ...ce(e.parentElement)\n ), t;\n}, B = (e, t, s = !1) => {\n var r;\n if (e && t && e.nodeType === 1) {\n const o = new Set(ce(t).filter(Boolean));\n if (o.size && ((r = e.classList) == null || r.add(...e[\"s-scs\"] = [...o]), e[\"s-ol\"] || s))\n for (const l of Array.from(e.childNodes))\n B(l, e, !0);\n }\n}, _e = (e, t, s = !1) => {\n var r, o, l, n, i;\n const a = e.$hostElement$, d = e.$cmpMeta$, u = e.$vnode$ || U(null, null), f = Oe(t) ? t : Re(null, null, t);\n if (E = a.tagName, d.$attrsToReflect$ && (f.$attrs$ = f.$attrs$ || {}, d.$attrsToReflect$.map(\n ([$, c]) => f.$attrs$[c] = a[$]\n )), s && f.$attrs$)\n for (const $ of Object.keys(f.$attrs$))\n a.hasAttribute($) && ![\"key\", \"ref\", \"style\", \"class\"].includes($) && (f.$attrs$[$] = a[$]);\n f.$tag$ = null, f.$flags$ |= 4, e.$vnode$ = f, f.$elm$ = u.$elm$ = a.shadowRoot || a, T = a[\"s-sc\"], O = (d.$flags$ & 1) !== 0, w = a[\"s-cr\"], M = !1, k(u, f, s);\n {\n if (x.$flags$ |= 1, H) {\n ie(f.$elm$);\n for (const $ of S) {\n const c = $.$nodeToRelocate$;\n if (!c[\"s-ol\"]) {\n const p = j.createTextNode(\"\");\n p[\"s-nr\"] = c, m(c.parentNode, c[\"s-ol\"] = p, c);\n }\n }\n for (const $ of S) {\n const c = $.$nodeToRelocate$, p = $.$slotRefNode$;\n if (p) {\n const b = p.parentNode;\n let y = p.nextSibling;\n {\n let L = (r = c[\"s-ol\"]) == null ? void 0 : r.previousSibling;\n for (; L; ) {\n let g = (o = L[\"s-nr\"]) != null ? o : null;\n if (g && g[\"s-sn\"] === c[\"s-sn\"] && b === g.parentNode) {\n for (g = g.nextSibling; g === c || g != null && g[\"s-sr\"]; )\n g = g == null ? void 0 : g.nextSibling;\n if (!g || !g[\"s-nr\"]) {\n y = g;\n break;\n }\n }\n L = L.previousSibling;\n }\n }\n (!y && b !== c.parentNode || c.nextSibling !== y) && c !== y && (!c[\"s-hn\"] && c[\"s-ol\"] && (c[\"s-hn\"] = c[\"s-ol\"].parentNode.nodeName), m(b, c, y), c.nodeType === 1 && (c.hidden = (l = c[\"s-ih\"]) != null ? l : !1)), c && typeof p[\"s-rf\"] == \"function\" && p[\"s-rf\"](c);\n } else\n c.nodeType === 1 && (s && (c[\"s-ih\"] = (n = c.hidden) != null ? n : !1), c.hidden = !0);\n }\n }\n M && ne(f.$elm$), x.$flags$ &= -2, S.length = 0;\n }\n if (N.experimentalScopedSlotChanges && d.$flags$ & 2)\n for (const $ of f.$elm$.childNodes)\n $[\"s-hn\"] !== E && !$[\"s-sh\"] && (s && $[\"s-ih\"] == null && ($[\"s-ih\"] = (i = $.hidden) != null ? i : !1), $.hidden = !0);\n w = void 0;\n};\nconst Fe = (e, t, s) => {\n [null, void 0, \"\", !1].includes(s) || [\"innerHTML\", \"style\"].includes(t) || e.setAttribute(t, [\"object\", \"function\"].includes(typeof s) ? \"/!\\\\ Object props are not rendered in the code example\" : s);\n}, fe = (e, t, s, r, o) => {\n if (t && typeof t == \"string\") {\n const l = document.createElement(t);\n Object.keys(s || {}).forEach((n) => {\n Fe(l, n, s[n]);\n }), r == null || r.forEach((n) => {\n fe(l, n.$tag$, n.$attrs$, n.$children$, n.$text$);\n }), s != null && s.innerHTML && (l.innerHTML = s.innerHTML), e.appendChild(l);\n }\n o && (e.innerHTML = o);\n}, et = (e, t) => {\n const s = {};\n if (typeof e != \"object\")\n throw new Error(\"filterArgs - args isn't an object.\");\n for (const r in e)\n if (!r.startsWith(\"slot\")) {\n const o = e[r], l = r.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase();\n (!t || !Object.keys(t).includes(r) || t[r] !== o) && (s[l] = o);\n }\n return s;\n}, tt = (e, t) => {\n var r, o;\n const s = document.getElementById(\"storybook-root\");\n if (s)\n return (o = document.querySelector(\"[lang]\")) == null || o.setAttribute(\"lang\", ((r = t.globals) == null ? void 0 : r.locale) || \"en\"), _e(\n {\n $ancestorComponent$: void 0,\n $flags$: 0,\n $modeName$: void 0,\n $cmpMeta$: {\n $flags$: 0,\n $tagName$: s.tagName\n },\n $hostElement$: s\n },\n e(t)\n ), s.children[s.children.length - 1];\n}, st = ({ $tag$: e, $attrs$: t, $children$: s, $text$: r }) => {\n const o = document.createElement(\"div\");\n return fe(o, e, t, s, r), o.innerHTML;\n}, rt = ({ disconnect: e, observe: t, takeRecords: s }) => {\n class r {\n constructor(l) {\n /**\n *\n */\n v(this, \"disconnect\", e);\n /**\n *\n */\n v(this, \"observe\", t);\n /**\n *\n */\n v(this, \"takeRecords\", s);\n /**\n *\n */\n v(this, \"cb\");\n this.cb = l;\n }\n }\n return [window, global].forEach((o) => {\n Object.defineProperty(o, \"MutationObserver\", {\n writable: !0,\n configurable: !0,\n value: r\n });\n }), r;\n}, ot = ({ disconnect: e, observe: t }) => {\n class s {\n constructor(o) {\n /**\n *\n */\n v(this, \"disconnect\", e);\n /**\n *\n */\n v(this, \"observe\", t);\n /**\n *\n */\n v(this, \"unobserve\");\n /**\n *\n */\n v(this, \"cb\");\n this.cb = o;\n }\n }\n return [window, global].forEach((r) => {\n Object.defineProperty(r, \"ResizeObserver\", {\n writable: !0,\n configurable: !0,\n value: s\n });\n }), s;\n};\nclass Ue extends Event {\n constructor() {\n super(...arguments);\n /**\n *\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n v(this, \"detail\");\n }\n}\nconst lt = () => {\n class e extends Ue {\n }\n return [window, global].forEach((t) => {\n Object.defineProperty(t, \"SubmitEvent\", {\n writable: !0,\n configurable: !0,\n value: e\n });\n }), e;\n};\nexport {\n He as ClassList,\n Pe as allItemsAreString,\n qe as cleanString,\n Ce as createID,\n he as dateRegExp,\n Ze as dateToString,\n Ve as defineLocales,\n et as filterArgs,\n We as focusableElements,\n Qe as getLocaleDatePattern,\n Q as getParentWindows,\n st as getStoryHTML,\n ze as getWindows,\n Be as isTagName,\n Ie as isValidString,\n Je as localeCurrency,\n ye as localeDate,\n Ye as localeNumber,\n Ge as nextTick,\n rt as setupMutationObserverMock,\n ot as setupResizeObserverMock,\n lt as setupSubmitEventMock,\n tt as stencilWrapper,\n Ke as vsCodeGenerator,\n Xe as webTypesGenerator\n};\n//# sourceMappingURL=index.es.js.map\n","import en from './en/messages.json';\nimport fr from './fr/messages.json';\nimport { defineLocales } from '@mgdis/stencil-helpers';\n\nconst defaultLocale = 'en';\nconst messages = { en, fr };\n\n/**\n * Get Intl object\n * @param element - element we need to get the language\n * @returns messages object\n */\nexport const initLocales = defineLocales(messages, defaultLocale);\n"],"version":3}
@@ -1 +0,0 @@
1
- {"file":"index-817d7645.js","mappings":"AAAA,IAAI,EAAE,GAAG,MAAM,CAAC,cAAc,CAAC;AAC/B,IAAI,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,UAAU,EAAE,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AACjH,IAAI,CAAC,GAAG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AAG,CAAC,CAAC,KAAK;AAChB,EAAE,IAAI,CAAC,CAAC,IAAI;AACZ,IAAI,OAAO,CAAC,CAAC,KAAK,CAAC;AACnB,EAAE,MAAM,CAAC,CAAC,KAAK,CAAC;AAChB,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,KAAK;AACf,EAAE,IAAI,CAAC,CAAC,KAAK;AACb,IAAI,OAAO,CAAC,CAAC,KAAK,CAAC;AACnB,EAAE,MAAM,CAAC,CAAC,KAAK,CAAC;AAChB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACpTD,MAAM,aAAa,GAAG,IAAI,CAAC;AAC3B,MAAM,QAAQ,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;AAE5B;;;;;MAKa,WAAW,GAAGA,EAAa,CAAC,QAAQ,EAAE,aAAa;;;;","names":["defineLocales"],"sources":["../stencil-helpers/dist/index.es.js","src/locales/index.ts"],"sourcesContent":["var $e = Object.defineProperty;\nvar ue = (e, t, s) => t in e ? $e(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;\nvar v = (e, t, s) => ue(e, typeof t != \"symbol\" ? t + \"\" : t, s);\nconst Ce = (e = \"\", t = 10) => {\n const s = new Uint8Array(t);\n crypto.getRandomValues(s);\n const r = Array.from(s).map((o) => o.toString(16).padStart(2, \"0\")).join(\"\").slice(0, t);\n return e !== \"\" ? `${e}-${r}` : r;\n};\nclass He {\n constructor(t = []) {\n /**\n * Available classes\n */\n v(this, \"classes\");\n /**\n * Add class\n * @param className - class name to add\n */\n v(this, \"add\", (t) => {\n this.has(t) || this.classes.push(t);\n });\n /**\n * Delete class\n * @param className - class name to delete\n */\n v(this, \"delete\", (t) => {\n const s = this.classes.indexOf(t);\n s > -1 && this.classes.splice(s, 1);\n });\n /**\n * Check if class exist in list\n * @param className - class name to check\n * @returns class name is in the list\n */\n v(this, \"has\", (t) => this.classes.includes(t));\n /**\n * Join classes seperated by spaces\n * @returns joined values\n */\n v(this, \"join\", () => this.classes.join(\" \"));\n this.classes = t;\n }\n}\nconst Pe = (e) => Array.isArray(e) && e.every((t) => typeof t == \"string\"), Be = (e, t) => t.includes(e == null ? void 0 : e.tagName.toLowerCase()), We = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"]), [identifier], mg-button', ze = (e) => {\n const t = Q(e), s = Z(e);\n return [e, ...t, ...s];\n}, Q = (e, t = []) => {\n if (e.self !== e.top)\n try {\n const s = e.parent;\n return s ? (t.push(s), Q(s, t)) : t;\n } catch (s) {\n return console.error(\"Different hosts between iframes:\", s), t;\n }\n return t;\n}, Z = (e, t = []) => {\n if (e.frames.length > 0)\n for (const s of Array.from(e.frames))\n t.push(s), Z(s, t);\n return t;\n}, Ie = (e) => typeof e == \"string\" && e.trim() !== \"\", qe = (e) => typeof e == \"string\" ? e.toLocaleLowerCase().normalize(\"NFD\").replaceAll(/[\\u0300-\\u036f]/g, \"\") : e, Ge = async (e) => e(), J = (e, t) => {\n if (!t)\n return;\n const s = t.split(\"/\");\n return `${e}${s.slice(2, s.length - 1).join(\"-\")}--docs`;\n}, de = (e, t) => {\n if (t)\n return `${e}${t}`;\n}, Y = (e) => {\n let t = e.overview ? `${e.overview}\n\n` : \"\";\n const s = e.props.filter(({ attr: o }) => o !== void 0);\n s.length && (t += `Attributes:\n`, t += s.map(({ attr: o, docs: l }) => `- \\`${o}\\`: ${l}\n`).join(\"\"), t += `\n`);\n const r = e.props.filter(({ attr: o }) => o === void 0);\n return r.length && (t += `Properties:\n`, t += r.map(({ name: o, docs: l }) => `- \\`${o}\\`: ${l}\n`).join(\"\"), t += `\n`), e.methods.length && (t += `Methods:\n`, t += e.methods.map(({ name: o, docs: l }) => `- \\`${o}\\`: ${l}\n`).join(\"\"), t += `\n`), e.events.length && (t += `Events:\n`, t += e.events.map(({ event: o, docs: l }) => `- \\`${o}\\`: ${l}\n`).join(\"\"), t += `\n`), e.listeners.length && (t += `Listeners:\n`, t += e.listeners.map(({ event: o }) => `- \\`${o}\\`\n`).join(\"\"), t += `\n`), e.slots.length && (t += `Slots:\n`, t += e.slots.map(({ name: o, docs: l }) => `- \\`${o}\\`: ${l}\n`).join(\"\"), t += `\n`), t;\n}, _ = (e) => `${e.docs}\n\nType: \\`${e.type}\\``, Xe = (e, t, s, r) => ({\n $schema: \"https://json.schemastore.org/web-types\",\n name: e,\n version: t,\n \"description-markup\": \"markdown\",\n contributions: {\n html: {\n elements: s.components.map((o) => {\n const l = J(r, o.filePath);\n return {\n name: o.tag,\n description: Y(o),\n \"doc-url\": l,\n attributes: o.props.filter((n) => n.attr).map((n) => ({\n name: n.attr,\n description: _(n),\n \"doc-url\": l,\n value: {\n type: n.type,\n default: n.default,\n required: n.required\n }\n })),\n js: {\n properties: o.props.map((n) => ({\n name: n.name,\n description: _(n),\n \"doc-url\": l,\n value: {\n type: n.type,\n default: n.default,\n required: n.required\n }\n })),\n events: o.events.map((n) => ({\n name: n.event,\n description: n.docs\n }))\n }\n };\n })\n }\n }\n}), pe = (e, t, s) => [\n { name: \"Storybook\", url: J(e, s) },\n { name: \"Sources\", url: de(t, s) }\n], ve = (e) => {\n if (!e.values.some(({ value: t }) => t === void 0))\n return e.values.map(({ value: t }) => ({ name: t }));\n}, Ke = (e, t, s, r) => ({\n version: e,\n tags: t.components.map((o) => {\n const l = pe(s, r, o.filePath);\n return {\n name: o.tag,\n description: Y(o),\n attributes: o.props.map((n) => ({\n name: n.attr || n.name,\n description: _(n),\n values: ve(n),\n references: l\n })),\n references: l\n };\n }),\n globalAttributes: [],\n valueSets: []\n}), Qe = (e) => {\n const t = { value: \"2023\", pattern: \"yyyy\" }, s = { value: \"12\", pattern: \"mm\" }, r = { value: \"24\", pattern: \"dd\" };\n return ye([t.value, s.value, r.value].join(\"-\"), e, { timeZone: \"UTC\" }).replace(t.value, t.pattern).replace(s.value, s.pattern).replace(r.value, r.pattern);\n}, Ze = (e) => e.toISOString().split(\"T\")[0], ge = (e, t, s) => {\n const r = e.closest(\"[lang]\"), o = Intl.NumberFormat.supportedLocalesOf(r == null ? void 0 : r.lang), l = o.length > 0 && typeof o[0] == \"string\" ? o[0] : navigator.language || s, n = l.split(\"-\").shift();\n return {\n locale: l,\n messages: t[n] || t[s]\n };\n}, Je = (e, t, s) => new Intl.NumberFormat(t, { style: \"currency\", currency: s }).format(e), Ye = (e, t, s = 0) => new Intl.NumberFormat(t, { minimumFractionDigits: s }).format(s > 0 ? Number(e == null ? void 0 : e.toFixed(s)) : e), he = /^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$/, ye = (e, t, s) => typeof e != \"string\" || e === \"\" || !he.test(e) ? \"\" : new Intl.DateTimeFormat(t, s).format(new Date(e)), Ve = (e, t) => (s) => ge(s, e, t);\nvar N = {\n allRenderFn: !1,\n cmpDidLoad: !0,\n cmpDidUnload: !1,\n cmpDidUpdate: !0,\n cmpDidRender: !0,\n cmpWillLoad: !0,\n cmpWillUpdate: !0,\n cmpWillRender: !0,\n connectedCallback: !0,\n disconnectedCallback: !0,\n element: !0,\n event: !0,\n hasRenderFn: !0,\n lifecycle: !0,\n hostListener: !0,\n hostListenerTargetWindow: !0,\n hostListenerTargetDocument: !0,\n hostListenerTargetBody: !0,\n hostListenerTargetParent: !1,\n hostListenerTarget: !0,\n member: !0,\n method: !0,\n mode: !0,\n observeAttribute: !0,\n prop: !0,\n propMutable: !0,\n reflect: !0,\n scoped: !0,\n shadowDom: !0,\n slot: !0,\n cssAnnotations: !0,\n state: !0,\n style: !0,\n formAssociated: !1,\n svg: !0,\n updatable: !0,\n vdomAttribute: !0,\n vdomXlink: !0,\n vdomClass: !0,\n vdomFunctional: !0,\n vdomKey: !0,\n vdomListener: !0,\n vdomRef: !0,\n vdomPropOrAttr: !0,\n vdomRender: !0,\n vdomStyle: !0,\n vdomText: !0,\n watchCallback: !0,\n taskQueue: !0,\n hotModuleReplacement: !1,\n isDebug: !1,\n isDev: !1,\n isTesting: !1,\n hydrateServerSide: !1,\n hydrateClientSide: !1,\n lifecycleDOMEvents: !1,\n lazyLoad: !1,\n profile: !1,\n slotRelocation: !0,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n appendChildSlotFix: !1,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n cloneNodeFix: !1,\n hydratedAttribute: !1,\n hydratedClass: !0,\n // TODO(STENCIL-1305): remove this option\n scriptDataOpts: !1,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n scopedSlotTextContentFix: !1,\n // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field\n shadowDomShim: !1,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n slotChildNodesFix: !1,\n invisiblePrehydration: !0,\n propBoolean: !0,\n propNumber: !0,\n propString: !0,\n constructableCSS: !0,\n cmpShouldUpdate: !0,\n devTools: !1,\n shadowDelegatesFocus: !0,\n initializeNextTick: !1,\n asyncLoading: !1,\n asyncQueue: !1,\n transformTagName: !1,\n attachStyles: !0,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n experimentalSlotFixes: !1\n}, be = Object.defineProperty, Se = (e, t) => {\n for (var s in t)\n be(e, s, { get: t[s], enumerable: !0 });\n}, W = (e, t) => t in e, z = \"http://www.w3.org/1999/xlink\", C = typeof window < \"u\" ? window : {}, j = C.document || { head: {} };\nC.HTMLElement;\nvar x = {\n $flags$: 0,\n $resourcesUrl$: \"\",\n jmp: (e) => e(),\n raf: (e) => requestAnimationFrame(e),\n ael: (e, t, s, r) => e.addEventListener(t, s, r),\n rel: (e, t, s, r) => e.removeEventListener(t, s, r),\n ce: (e, t) => new CustomEvent(e, t)\n}, I = {}, me = \"http://www.w3.org/2000/svg\", Te = \"http://www.w3.org/1999/xhtml\", ke = (e) => e != null, V = (e) => (e = typeof e, e === \"object\" || e === \"function\"), xe = {};\nSe(xe, {\n err: () => ee,\n map: () => Ee,\n ok: () => F,\n unwrap: () => Ae,\n unwrapErr: () => Le\n});\nvar F = (e) => ({\n isOk: !0,\n isErr: !1,\n value: e\n}), ee = (e) => ({\n isOk: !1,\n isErr: !0,\n value: e\n});\nfunction Ee(e, t) {\n if (e.isOk) {\n const s = t(e.value);\n return s instanceof Promise ? s.then((r) => F(r)) : F(s);\n }\n if (e.isErr) {\n const s = e.value;\n return ee(s);\n }\n throw \"should never get here\";\n}\nvar Ae = (e) => {\n if (e.isOk)\n return e.value;\n throw e.value;\n}, Le = (e) => {\n if (e.isErr)\n return e.value;\n throw e.value;\n}, Re = (e, t, ...s) => {\n let r = null, o = null, l = null, n = !1, i = !1;\n const a = [], d = (f) => {\n for (let $ = 0; $ < f.length; $++)\n r = f[$], Array.isArray(r) ? d(r) : r != null && typeof r != \"boolean\" && ((n = !V(r)) && (r = String(r)), n && i ? a[a.length - 1].$text$ += r : a.push(n ? U(null, r) : r), i = n);\n };\n d(s);\n const u = U(e, null);\n return u.$attrs$ = t, a.length > 0 && (u.$children$ = a), u.$key$ = o, u.$name$ = l, u;\n}, U = (e, t) => {\n const s = {\n $flags$: 0,\n $tag$: e,\n $text$: t,\n $elm$: null,\n $children$: null\n };\n return s.$attrs$ = null, s.$key$ = null, s.$name$ = null, s;\n}, je = {}, Oe = (e) => e && e.$tag$ === je, q = (e, t, s, r, o, l) => {\n if (s !== r) {\n let n = W(e, t), i = t.toLowerCase();\n if (t === \"class\") {\n const a = e.classList, d = G(s), u = G(r);\n a.remove(...d.filter((f) => f && !u.includes(f))), a.add(...u.filter((f) => f && !d.includes(f)));\n } else if (t === \"style\") {\n for (const a in s)\n (!r || r[a] == null) && (a.includes(\"-\") ? e.style.removeProperty(a) : e.style[a] = \"\");\n for (const a in r)\n (!s || r[a] !== s[a]) && (a.includes(\"-\") ? e.style.setProperty(a, r[a]) : e.style[a] = r[a]);\n } else if (t !== \"key\") if (t === \"ref\")\n r && r(e);\n else if (!e.__lookupSetter__(t) && t[0] === \"o\" && t[1] === \"n\") {\n if (t[2] === \"-\" ? t = t.slice(3) : W(C, i) ? t = i.slice(2) : t = i[2] + t.slice(3), s || r) {\n const a = t.endsWith(te);\n t = t.replace(De, \"\"), s && x.rel(e, t, s, a), r && x.ael(e, t, r, a);\n }\n } else {\n const a = V(r);\n if ((n || a && r !== null) && !o)\n try {\n if (e.tagName.includes(\"-\"))\n e[t] = r;\n else {\n const u = r ?? \"\";\n t === \"list\" ? n = !1 : (s == null || e[t] != u) && (e[t] = u);\n }\n } catch {\n }\n let d = !1;\n i !== (i = i.replace(/^xlink\\:?/, \"\")) && (t = i, d = !0), r == null || r === !1 ? (r !== !1 || e.getAttribute(t) === \"\") && (d ? e.removeAttributeNS(z, t) : e.removeAttribute(t)) : (!n || l & 4 || o) && !a && (r = r === !0 ? \"\" : r, d ? e.setAttributeNS(z, t, r) : e.setAttribute(t, r));\n }\n }\n}, Me = /\\s/, G = (e) => e ? e.split(Me) : [], te = \"Capture\", De = new RegExp(te + \"$\"), se = (e, t, s) => {\n const r = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, o = e && e.$attrs$ || I, l = t.$attrs$ || I;\n for (const n of X(Object.keys(o)))\n n in l || q(r, n, o[n], void 0, s, t.$flags$);\n for (const n of X(Object.keys(l)))\n q(r, n, o[n], l[n], s, t.$flags$);\n};\nfunction X(e) {\n return e.includes(\"ref\") ? (\n // we need to sort these to ensure that `'ref'` is the last attr\n [...e.filter((t) => t !== \"ref\"), \"ref\"]\n ) : (\n // no need to sort, return the original array\n e\n );\n}\nvar T, w, E, O = !1, M = !1, H = !1, h = !1, D = (e, t, s, r) => {\n var o;\n const l = t.$children$[s];\n let n = 0, i, a, d;\n if (O || (H = !0, l.$tag$ === \"slot\" && (T && r.classList.add(T + \"-s\"), l.$flags$ |= l.$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 ))), l.$text$ !== null)\n i = l.$elm$ = j.createTextNode(l.$text$);\n else if (l.$flags$ & 1)\n i = l.$elm$ = j.createTextNode(\"\");\n else {\n if (h || (h = l.$tag$ === \"svg\"), i = l.$elm$ = j.createElementNS(\n h ? me : Te,\n !O && N.slotRelocation && l.$flags$ & 2 ? \"slot-fb\" : l.$tag$\n ), h && l.$tag$ === \"foreignObject\" && (h = !1), se(null, l, h), ke(T) && i[\"s-si\"] !== T && i.classList.add(i[\"s-si\"] = T), B(i, r), l.$children$)\n for (n = 0; n < l.$children$.length; ++n)\n a = D(e, l, n, i), a && i.appendChild(a);\n l.$tag$ === \"svg\" ? h = !1 : i.tagName === \"foreignObject\" && (h = !0);\n }\n return i[\"s-hn\"] = E, l.$flags$ & 3 && (i[\"s-sr\"] = !0, i[\"s-cr\"] = w, i[\"s-sn\"] = l.$name$ || \"\", i[\"s-rf\"] = (o = l.$attrs$) == null ? void 0 : o.ref, d = e && e.$children$ && e.$children$[s], d && d.$tag$ === l.$tag$ && e.$elm$ && A(e.$elm$, !1)), i;\n}, A = (e, t) => {\n x.$flags$ |= 1;\n const s = Array.from(e.childNodes);\n if (e[\"s-sr\"] && N.experimentalSlotFixes) {\n let r = e;\n for (; r = r.nextSibling; )\n r && r[\"s-sn\"] === e[\"s-sn\"] && r[\"s-sh\"] === E && s.push(r);\n }\n for (let r = s.length - 1; r >= 0; r--) {\n const o = s[r];\n o[\"s-hn\"] !== E && o[\"s-ol\"] && (m(le(o), o, P(o)), o[\"s-ol\"].remove(), o[\"s-ol\"] = void 0, o[\"s-sh\"] = void 0, H = !0), t && A(o, t);\n }\n x.$flags$ &= -2;\n}, re = (e, t, s, r, o, l) => {\n let n = e[\"s-cr\"] && e[\"s-cr\"].parentNode || e, i;\n for (n.shadowRoot && n.tagName === E && (n = n.shadowRoot); o <= l; ++o)\n r[o] && (i = D(null, s, o, e), i && (r[o].$elm$ = i, m(n, i, P(t))));\n}, oe = (e, t, s) => {\n for (let r = t; r <= s; ++r) {\n const o = e[r];\n if (o) {\n const l = o.$elm$;\n ae(o), l && (M = !0, l[\"s-ol\"] ? l[\"s-ol\"].remove() : A(l, !0), l.remove());\n }\n }\n}, Ne = (e, t, s, r, o = !1) => {\n let l = 0, n = 0, i = 0, a = 0, d = t.length - 1, u = t[0], f = t[d], $ = r.length - 1, c = r[0], p = r[$], b, y;\n for (; l <= d && n <= $; )\n if (u == null)\n u = t[++l];\n else if (f == null)\n f = t[--d];\n else if (c == null)\n c = r[++n];\n else if (p == null)\n p = r[--$];\n else if (R(u, c, o))\n k(u, c, o), u = t[++l], c = r[++n];\n else if (R(f, p, o))\n k(f, p, o), f = t[--d], p = r[--$];\n else if (R(u, p, o))\n (u.$tag$ === \"slot\" || p.$tag$ === \"slot\") && A(u.$elm$.parentNode, !1), k(u, p, o), m(e, u.$elm$, f.$elm$.nextSibling), u = t[++l], p = r[--$];\n else if (R(f, c, o))\n (u.$tag$ === \"slot\" || p.$tag$ === \"slot\") && A(f.$elm$.parentNode, !1), k(f, c, o), m(e, f.$elm$, u.$elm$), f = t[--d], c = r[++n];\n else {\n for (i = -1, a = l; a <= d; ++a)\n if (t[a] && t[a].$key$ !== null && t[a].$key$ === c.$key$) {\n i = a;\n break;\n }\n i >= 0 ? (y = t[i], y.$tag$ !== c.$tag$ ? b = D(t && t[n], s, i, e) : (k(y, c, o), t[i] = void 0, b = y.$elm$), c = r[++n]) : (b = D(t && t[n], s, n, e), c = r[++n]), b && m(le(u.$elm$), b, P(u.$elm$));\n }\n l > d ? re(\n e,\n r[$ + 1] == null ? null : r[$ + 1].$elm$,\n s,\n r,\n n,\n $\n ) : n > $ && oe(t, l, d);\n}, R = (e, t, s = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === \"slot\" ? e.$name$ === t.$name$ : s ? !0 : e.$key$ === t.$key$ : !1, P = (e) => e && e[\"s-ol\"] || e, le = (e) => (e[\"s-ol\"] ? e[\"s-ol\"] : e).parentNode, k = (e, t, s = !1) => {\n const r = t.$elm$ = e.$elm$, o = e.$children$, l = t.$children$, n = t.$tag$, i = t.$text$;\n let a;\n i === null ? (h = n === \"svg\" ? !0 : n === \"foreignObject\" ? !1 : h, n === \"slot\" && !O || se(e, t, h), o !== null && l !== null ? Ne(r, o, t, l, s) : l !== null ? (e.$text$ !== null && (r.textContent = \"\"), re(r, null, t, l, 0, l.length - 1)) : o !== null && oe(o, 0, o.length - 1), h && n === \"svg\" && (h = !1)) : (a = r[\"s-cr\"]) ? a.parentNode.textContent = i : e.$text$ !== i && (r.data = i);\n}, ne = (e) => {\n const t = e.childNodes;\n for (const s of t)\n if (s.nodeType === 1) {\n if (s[\"s-sr\"]) {\n const r = s[\"s-sn\"];\n s.hidden = !1;\n for (const o of t)\n if (o !== s) {\n if (o[\"s-hn\"] !== s[\"s-hn\"] || r !== \"\") {\n if (o.nodeType === 1 && (r === o.getAttribute(\"slot\") || r === o[\"s-sn\"]) || o.nodeType === 3 && r === o[\"s-sn\"]) {\n s.hidden = !0;\n break;\n }\n } else if (o.nodeType === 1 || o.nodeType === 3 && o.textContent.trim() !== \"\") {\n s.hidden = !0;\n break;\n }\n }\n }\n ne(s);\n }\n}, S = [], ie = (e) => {\n let t, s, r;\n for (const o of e.childNodes) {\n if (o[\"s-sr\"] && (t = o[\"s-cr\"]) && t.parentNode) {\n s = t.parentNode.childNodes;\n const l = o[\"s-sn\"];\n for (r = s.length - 1; r >= 0; r--)\n if (t = s[r], !t[\"s-cn\"] && !t[\"s-nr\"] && t[\"s-hn\"] !== o[\"s-hn\"] && !N.experimentalSlotFixes)\n if (K(t, l)) {\n let n = S.find((i) => i.$nodeToRelocate$ === t);\n M = !0, t[\"s-sn\"] = t[\"s-sn\"] || l, n ? (n.$nodeToRelocate$[\"s-sh\"] = o[\"s-hn\"], n.$slotRefNode$ = o) : (t[\"s-sh\"] = o[\"s-hn\"], S.push({\n $slotRefNode$: o,\n $nodeToRelocate$: t\n })), t[\"s-sr\"] && S.map((i) => {\n K(i.$nodeToRelocate$, t[\"s-sn\"]) && (n = S.find((a) => a.$nodeToRelocate$ === t), n && !i.$slotRefNode$ && (i.$slotRefNode$ = n.$slotRefNode$));\n });\n } else S.some((n) => n.$nodeToRelocate$ === t) || S.push({\n $nodeToRelocate$: t\n });\n }\n o.nodeType === 1 && ie(o);\n }\n}, K = (e, t) => e.nodeType === 1 ? e.getAttribute(\"slot\") === null && t === \"\" || e.getAttribute(\"slot\") === t : e[\"s-sn\"] === t ? !0 : t === \"\", ae = (e) => {\n e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(ae);\n}, m = (e, t, s) => {\n const r = e == null ? void 0 : e.insertBefore(t, s);\n return B(t, e), r;\n}, ce = (e) => {\n const t = [];\n return e && t.push(\n ...e[\"s-scs\"] || [],\n e[\"s-si\"],\n e[\"s-sc\"],\n ...ce(e.parentElement)\n ), t;\n}, B = (e, t, s = !1) => {\n var r;\n if (e && t && e.nodeType === 1) {\n const o = new Set(ce(t).filter(Boolean));\n if (o.size && ((r = e.classList) == null || r.add(...e[\"s-scs\"] = [...o]), e[\"s-ol\"] || s))\n for (const l of Array.from(e.childNodes))\n B(l, e, !0);\n }\n}, _e = (e, t, s = !1) => {\n var r, o, l, n, i;\n const a = e.$hostElement$, d = e.$cmpMeta$, u = e.$vnode$ || U(null, null), f = Oe(t) ? t : Re(null, null, t);\n if (E = a.tagName, d.$attrsToReflect$ && (f.$attrs$ = f.$attrs$ || {}, d.$attrsToReflect$.map(\n ([$, c]) => f.$attrs$[c] = a[$]\n )), s && f.$attrs$)\n for (const $ of Object.keys(f.$attrs$))\n a.hasAttribute($) && ![\"key\", \"ref\", \"style\", \"class\"].includes($) && (f.$attrs$[$] = a[$]);\n f.$tag$ = null, f.$flags$ |= 4, e.$vnode$ = f, f.$elm$ = u.$elm$ = a.shadowRoot || a, T = a[\"s-sc\"], O = (d.$flags$ & 1) !== 0, w = a[\"s-cr\"], M = !1, k(u, f, s);\n {\n if (x.$flags$ |= 1, H) {\n ie(f.$elm$);\n for (const $ of S) {\n const c = $.$nodeToRelocate$;\n if (!c[\"s-ol\"]) {\n const p = j.createTextNode(\"\");\n p[\"s-nr\"] = c, m(c.parentNode, c[\"s-ol\"] = p, c);\n }\n }\n for (const $ of S) {\n const c = $.$nodeToRelocate$, p = $.$slotRefNode$;\n if (p) {\n const b = p.parentNode;\n let y = p.nextSibling;\n {\n let L = (r = c[\"s-ol\"]) == null ? void 0 : r.previousSibling;\n for (; L; ) {\n let g = (o = L[\"s-nr\"]) != null ? o : null;\n if (g && g[\"s-sn\"] === c[\"s-sn\"] && b === g.parentNode) {\n for (g = g.nextSibling; g === c || g != null && g[\"s-sr\"]; )\n g = g == null ? void 0 : g.nextSibling;\n if (!g || !g[\"s-nr\"]) {\n y = g;\n break;\n }\n }\n L = L.previousSibling;\n }\n }\n (!y && b !== c.parentNode || c.nextSibling !== y) && c !== y && (!c[\"s-hn\"] && c[\"s-ol\"] && (c[\"s-hn\"] = c[\"s-ol\"].parentNode.nodeName), m(b, c, y), c.nodeType === 1 && (c.hidden = (l = c[\"s-ih\"]) != null ? l : !1)), c && typeof p[\"s-rf\"] == \"function\" && p[\"s-rf\"](c);\n } else\n c.nodeType === 1 && (s && (c[\"s-ih\"] = (n = c.hidden) != null ? n : !1), c.hidden = !0);\n }\n }\n M && ne(f.$elm$), x.$flags$ &= -2, S.length = 0;\n }\n if (N.experimentalScopedSlotChanges && d.$flags$ & 2)\n for (const $ of f.$elm$.childNodes)\n $[\"s-hn\"] !== E && !$[\"s-sh\"] && (s && $[\"s-ih\"] == null && ($[\"s-ih\"] = (i = $.hidden) != null ? i : !1), $.hidden = !0);\n w = void 0;\n};\nconst Fe = (e, t, s) => {\n [null, void 0, \"\", !1].includes(s) || [\"innerHTML\", \"style\"].includes(t) || e.setAttribute(t, [\"object\", \"function\"].includes(typeof s) ? \"/!\\\\ Object props are not rendered in the code example\" : s);\n}, fe = (e, t, s, r, o) => {\n if (t && typeof t == \"string\") {\n const l = document.createElement(t);\n Object.keys(s || {}).forEach((n) => {\n Fe(l, n, s[n]);\n }), r == null || r.forEach((n) => {\n fe(l, n.$tag$, n.$attrs$, n.$children$, n.$text$);\n }), s != null && s.innerHTML && (l.innerHTML = s.innerHTML), e.appendChild(l);\n }\n o && (e.innerHTML = o);\n}, et = (e, t) => {\n const s = {};\n if (typeof e != \"object\")\n throw new Error(\"filterArgs - args isn't an object.\");\n for (const r in e)\n if (!r.startsWith(\"slot\")) {\n const o = e[r], l = r.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase();\n (!t || !Object.keys(t).includes(r) || t[r] !== o) && (s[l] = o);\n }\n return s;\n}, tt = (e, t) => {\n var r, o;\n const s = document.getElementById(\"storybook-root\");\n if (s)\n return (o = document.querySelector(\"[lang]\")) == null || o.setAttribute(\"lang\", ((r = t.globals) == null ? void 0 : r.locale) || \"en\"), _e(\n {\n $ancestorComponent$: void 0,\n $flags$: 0,\n $modeName$: void 0,\n $cmpMeta$: {\n $flags$: 0,\n $tagName$: s.tagName\n },\n $hostElement$: s\n },\n e(t)\n ), s.children[s.children.length - 1];\n}, st = ({ $tag$: e, $attrs$: t, $children$: s, $text$: r }) => {\n const o = document.createElement(\"div\");\n return fe(o, e, t, s, r), o.innerHTML;\n}, rt = ({ disconnect: e, observe: t, takeRecords: s }) => {\n class r {\n constructor(l) {\n /**\n *\n */\n v(this, \"disconnect\", e);\n /**\n *\n */\n v(this, \"observe\", t);\n /**\n *\n */\n v(this, \"takeRecords\", s);\n /**\n *\n */\n v(this, \"cb\");\n this.cb = l;\n }\n }\n return [window, global].forEach((o) => {\n Object.defineProperty(o, \"MutationObserver\", {\n writable: !0,\n configurable: !0,\n value: r\n });\n }), r;\n}, ot = ({ disconnect: e, observe: t }) => {\n class s {\n constructor(o) {\n /**\n *\n */\n v(this, \"disconnect\", e);\n /**\n *\n */\n v(this, \"observe\", t);\n /**\n *\n */\n v(this, \"unobserve\");\n /**\n *\n */\n v(this, \"cb\");\n this.cb = o;\n }\n }\n return [window, global].forEach((r) => {\n Object.defineProperty(r, \"ResizeObserver\", {\n writable: !0,\n configurable: !0,\n value: s\n });\n }), s;\n};\nclass Ue extends Event {\n constructor() {\n super(...arguments);\n /**\n *\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n v(this, \"detail\");\n }\n}\nconst lt = () => {\n class e extends Ue {\n }\n return [window, global].forEach((t) => {\n Object.defineProperty(t, \"SubmitEvent\", {\n writable: !0,\n configurable: !0,\n value: e\n });\n }), e;\n};\nexport {\n He as ClassList,\n Pe as allItemsAreString,\n qe as cleanString,\n Ce as createID,\n he as dateRegExp,\n Ze as dateToString,\n Ve as defineLocales,\n et as filterArgs,\n We as focusableElements,\n Qe as getLocaleDatePattern,\n Q as getParentWindows,\n st as getStoryHTML,\n ze as getWindows,\n Be as isTagName,\n Ie as isValidString,\n Je as localeCurrency,\n ye as localeDate,\n Ye as localeNumber,\n Ge as nextTick,\n rt as setupMutationObserverMock,\n ot as setupResizeObserverMock,\n lt as setupSubmitEventMock,\n tt as stencilWrapper,\n Ke as vsCodeGenerator,\n Xe as webTypesGenerator\n};\n//# sourceMappingURL=index.es.js.map\n","import en from './en/messages.json';\nimport fr from './fr/messages.json';\nimport { defineLocales } from '@mgdis/stencil-helpers';\n\nconst defaultLocale = 'en';\nconst messages = { en, fr };\n\n/**\n * Get Intl object\n * @param element - element we need to get the language\n * @returns messages object\n */\nexport const initLocales = defineLocales(messages, defaultLocale);\n"],"version":3}
@@ -1,2 +0,0 @@
1
- var e=Object.defineProperty;var t=(t,s,a)=>s in t?e(t,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[s]=a;var s=(e,s,a)=>t(e,typeof s!="symbol"?s+"":s,a);const a=(e="",t=10)=>{const s=new Uint8Array(t);crypto.getRandomValues(s);const a=Array.from(s).map((e=>e.toString(16).padStart(2,"0"))).join("").slice(0,t);return e!==""?`${e}-${a}`:a};class n{constructor(e=[]){s(this,"classes");s(this,"add",(e=>{this.has(e)||this.classes.push(e)}));s(this,"delete",(e=>{const t=this.classes.indexOf(e);t>-1&&this.classes.splice(t,1)}));s(this,"has",(e=>this.classes.includes(e)));s(this,"join",(()=>this.classes.join(" ")));this.classes=e}}const r=e=>Array.isArray(e)&&e.every((e=>typeof e=="string")),l=(e,t)=>t.includes(e==null?void 0:e.tagName.toLowerCase()),i='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]), [identifier], mg-button',o=e=>{const t=c(e),s=u(e);return[e,...t,...s]},c=(e,t=[])=>{if(e.self!==e.top)try{const s=e.parent;return s?(t.push(s),c(s,t)):t}catch(e){return console.error("Different hosts between iframes:",e),t}return t},u=(e,t=[])=>{if(e.frames.length>0)for(const s of Array.from(e.frames))t.push(s),u(s,t);return t},d=e=>typeof e=="string"&&e.trim()!=="",m=e=>typeof e=="string"?e.toLocaleLowerCase().normalize("NFD").replaceAll(/[\u0300-\u036f]/g,""):e,p=async e=>e(),g=e=>{const t={value:"2023",pattern:"yyyy"},s={value:"12",pattern:"mm"},a={value:"24",pattern:"dd"};return x([t.value,s.value,a.value].join("-"),e,{timeZone:"UTC"}).replace(t.value,t.pattern).replace(s.value,s.pattern).replace(a.value,a.pattern)},h=e=>e.toISOString().split("T")[0],b=(e,t,s)=>{const a=e.closest("[lang]"),n=Intl.NumberFormat.supportedLocalesOf(a==null?void 0:a.lang),r=n.length>0&&typeof n[0]=="string"?n[0]:navigator.language||s,l=r.split("-").shift();return{locale:r,messages:t[l]||t[s]}},v=(e,t,s)=>new Intl.NumberFormat(t,{style:"currency",currency:s}).format(e),f=(e,t,s=0)=>new Intl.NumberFormat(t,{minimumFractionDigits:s}).format(s>0?Number(e==null?void 0:e.toFixed(s)):e),y=/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/,x=(e,t,s)=>typeof e!="string"||e===""||!y.test(e)?"":new Intl.DateTimeFormat(t,s).format(new Date(e)),w=(e,t)=>s=>b(s,e,t);var L=Object.defineProperty,S=(e,t)=>{for(var s in t)L(e,s,{get:t[s],enumerable:!0})};var q={};S(q,{err:()=>T,map:()=>k,ok:()=>P,unwrap:()=>A,unwrapErr:()=>M});var P=e=>({isOk:!0,isErr:!1,value:e}),T=e=>({isOk:!1,isErr:!0,value:e});function k(e,t){if(e.isOk){const s=t(e.value);return s instanceof Promise?s.then((e=>P(e))):P(s)}if(e.isErr){const t=e.value;return T(t)}throw"should never get here"}var A=e=>{if(e.isOk)return e.value;throw e.value},M=e=>{if(e.isErr)return e.value;throw e.value};const B={required:"This field is required.",date:{badInput:"The date format must be {pattern}",min:"The date cannot be earlier than {min}",max:"The date cannot be later than {max}",minMax:"The date must be between {min} and {max}"},numeric:{min:"The value cannot be less than {min}",max:"The value cannot be greater than {max}",minMax:"The value must be between {min} and {max}"}};const C="{counter} characters left.";const N={select:{placeholder:"Select a value"},checkbox:{selectedValues:"{nb} selected values",selectedValue:"{nb} selected value",editButton:"Edit",selectButton:"Select values",showButton:"Show",label:"Enter a value",result:"result",results:"results",searchResults:"Search result(s) list.",noResult:"No result.",sections:{selected:{title:"Selected",titlePlurial:"Selected",action:"Unselect all",tooltip:"Unselect all current search results"},notSelected:{title:"Not selected",titlePlurial:"Not selected",action:"Select all",tooltip:"Select all current search results"}}},date:{helpText:"Expected format: {pattern} (ex: {date})",pattern:{dd:"dd",mm:"mm",yyyy:"yyyy"}},password:{display:"Display password value",hide:"Hide password value"}};const I={required:'Fields with a <strong class="mg-u-is-asterisk">*</strong> are required',requiredSingle:'Field with a <strong class="mg-u-is-asterisk">*</strong> is required',allRequired:"All fields are required",allRequiredSingle:"The field is required"};const F={closeButton:"Close message"};const R={closeButton:"Close modal"};const E={label:"Pagination",page:"page",pages:"pages",nextPage:"Next page",previousPage:"Previous page",selectPage:"Select the page to display."};const D={editLabel:"Edit section title."};const O={navLabel:"Quick access"};const V={confirm:"Confirm",cancel:"Cancel",close:"Close",next:"next",previous:"previous"};const j={badgeLabel:"Include notification(s)",openNewTab:"Open link in a new tab"};const U={menuLabel:"Additional menu"};const z={label:"Actions"};const $={inProgess:"Loading in progress…"};const H={errors:B,nbCharLeft:C,input:N,form:I,message:F,modal:R,pagination:E,panel:D,skipLinks:O,general:V,menuItem:j,itemMore:U,actionMore:z,loader:$};const Q={required:"Ce champ est obligatoire.",date:{badInput:"Le format de la date doit être du type {pattern}",min:"La date ne peut pas être antérieure au {min}",max:"La date ne peut pas être postérieure au {max}",minMax:"La date doit être comprise entre le {min} et le {max}"},numeric:{min:"La valeur ne peut pas être inférieure à {min}",max:"La valeur ne peut pas être supérieure à {max}",minMax:"La valeur doit être comprise entre {min} et {max}"}};const Z="{counter} caractères disponibles.";const G={select:{placeholder:"Sélectionnez une valeur"},checkbox:{selectedValues:"{nb} valeurs selectionnées",selectedValue:"{nb} valeur selectionnée",editButton:"Modifier",selectButton:"Sélectionner des valeurs",showButton:"Voir",label:"Saisissez une valeur",result:"résultat",results:"résultats",searchResults:"List de résultat(s) de la recherche.",noResult:"Aucun résultat.",sections:{selected:{title:"Sélectionné",titlePlurial:"Sélectionnés",action:"Tout désélectionner",tooltip:"Désélectionne tous les résultats de la recherche en cours"},notSelected:{title:"Non sélectionné",titlePlurial:"Non sélectionnés",action:"Tout sélectionner",tooltip:"Sélectionne tous les résultats de la recherche en cours"}}},date:{helpText:"Format attendu&nbsp;: {pattern} (ex&nbsp;: {date})",pattern:{dd:"jj",mm:"mm",yyyy:"aaaa"}},password:{display:"Afficher le mot de passe",hide:"Masquer le mot de passe"}};const J={required:'Les champs marqués d\'un <strong class="mg-u-is-asterisk">*</strong> sont obligatoires',requiredSingle:'Le champ marqué d\'un <strong class="mg-u-is-asterisk">*</strong> est obligatoire',allRequired:"Tous les champs sont obligatoires",allRequiredSingle:"Le champ est obligatoire"};const W={closeButton:"Fermer le message"};const Y={closeButton:"Fermer la modale"};const K={label:"Pagination",page:"page",pages:"pages",nextPage:"Page suivante",previousPage:"Page précédente",selectPage:"Sélectionner la page à afficher."};const X={editLabel:"Modifier le titre de la section."};const _={navLabel:"Accès rapide"};const ee={confirm:"Valider",cancel:"Annuler",close:"Fermer",next:"suivant",previous:"précédent"};const te={badgeLabel:"Notification(s) incluse(s)",openNewTab:"Ouvrir le lien dans un nouvel onglet"};const se={menuLabel:"Menu complémentaire"};const ae={label:"Actions"};const ne={inProgess:"Chargement en cours…"};const re={errors:Q,nbCharLeft:Z,input:G,form:J,message:W,modal:Y,pagination:K,panel:X,skipLinks:_,general:ee,menuItem:te,itemMore:se,actionMore:ae,loader:ne};const le="en";const ie={en:H,fr:re};const oe=w(ie,le);export{l as B,a as C,p as G,n as H,d as I,v as J,r as P,g as Q,i as W,f as Y,h as Z,y as h,oe as i,m as q,x as y,o as z};
2
- //# sourceMappingURL=p-eb6ec303.js.map