@mgdis/mg-components 5.25.2 → 5.26.0

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 (83) hide show
  1. package/dist/cjs/{index-0256ee6d.js → index-0a2783ee.js} +1 -1
  2. package/dist/cjs/{index-0256ee6d.js.map → index-0a2783ee.js.map} +1 -1
  3. package/dist/cjs/{index-f699ee11.js → index-c585c382.js} +37 -37
  4. package/dist/cjs/index-c585c382.js.map +1 -0
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/mg-action-more_34.cjs.entry.js +89 -89
  7. package/dist/cjs/mg-action-more_34.cjs.entry.js.map +1 -1
  8. package/dist/cjs/mg-components.cjs.js +2 -2
  9. package/dist/cjs/mg-components.cjs.js.map +1 -1
  10. package/dist/cjs/mg-item-more.cjs.entry.js +3 -3
  11. package/dist/cjs/mg-loader.cjs.entry.js +3 -3
  12. package/dist/collection/collection-manifest.json +1 -1
  13. package/dist/collection/components/atoms/mg-badge/mg-badge.js +2 -2
  14. package/dist/collection/components/atoms/mg-badge/mg-badge.js.map +1 -1
  15. package/dist/components/MgInput.js +3 -3
  16. package/dist/components/index.es.js +29 -29
  17. package/dist/components/index.es.js.map +1 -1
  18. package/dist/components/index2.js +2 -2
  19. package/dist/components/mg-action-more.js +2 -2
  20. package/dist/components/mg-badge2.js +4 -4
  21. package/dist/components/mg-badge2.js.map +1 -1
  22. package/dist/components/mg-button2.js +4 -4
  23. package/dist/components/mg-card2.js +2 -2
  24. package/dist/components/mg-details.js +2 -2
  25. package/dist/components/mg-form.js +3 -3
  26. package/dist/components/mg-icon2.js +2 -2
  27. package/dist/components/mg-illustrated-message.js +2 -2
  28. package/dist/components/mg-input-checkbox.js +4 -4
  29. package/dist/components/mg-input-date.js +11 -11
  30. package/dist/components/mg-input-numeric.js +5 -5
  31. package/dist/components/mg-input-password.js +3 -3
  32. package/dist/components/mg-input-radio.js +4 -4
  33. package/dist/components/mg-input-select2.js +6 -6
  34. package/dist/components/mg-input-text2.js +6 -6
  35. package/dist/components/mg-input-textarea.js +6 -6
  36. package/dist/components/mg-input-title2.js +2 -2
  37. package/dist/components/mg-input-toggle.js +4 -4
  38. package/dist/components/mg-item-more.js +2 -2
  39. package/dist/components/mg-loader.js +2 -2
  40. package/dist/components/mg-menu-item2.js +4 -4
  41. package/dist/components/mg-message.js +3 -3
  42. package/dist/components/mg-modal.js +6 -6
  43. package/dist/components/mg-pagination2.js +2 -2
  44. package/dist/components/mg-panel.js +4 -4
  45. package/dist/components/mg-popover-content2.js +3 -3
  46. package/dist/components/mg-popover2.js +3 -3
  47. package/dist/components/mg-skip-links.js +2 -2
  48. package/dist/components/mg-tabs.js +6 -6
  49. package/dist/components/mg-tag.js +3 -3
  50. package/dist/components/mg-tooltip2.js +6 -6
  51. package/dist/esm/{index-4ad17402.js → index-ad78ece7.js} +1 -1
  52. package/dist/esm/{index-4ad17402.js.map → index-ad78ece7.js.map} +1 -1
  53. package/dist/esm/{index-d2fc6ec0.js → index-bb17de92.js} +31 -31
  54. package/dist/esm/index-bb17de92.js.map +1 -0
  55. package/dist/esm/loader.js +2 -2
  56. package/dist/esm/mg-action-more_34.entry.js +89 -89
  57. package/dist/esm/mg-action-more_34.entry.js.map +1 -1
  58. package/dist/esm/mg-components.js +3 -3
  59. package/dist/esm/mg-components.js.map +1 -1
  60. package/dist/esm/mg-item-more.entry.js +3 -3
  61. package/dist/esm/mg-loader.entry.js +3 -3
  62. package/dist/mg-components/mg-components.esm.js +1 -1
  63. package/dist/mg-components/mg-components.esm.js.map +1 -1
  64. package/dist/mg-components/{p-568c9ea9.entry.js → p-2db8355d.entry.js} +2 -2
  65. package/dist/mg-components/p-95653110.entry.js +2 -0
  66. package/dist/mg-components/p-95653110.entry.js.map +1 -0
  67. package/dist/mg-components/{p-f761ebcd.js → p-bc62d75e.js} +1 -1
  68. package/dist/mg-components/{p-f761ebcd.js.map → p-bc62d75e.js.map} +1 -1
  69. package/dist/mg-components/{p-29b5a514.js → p-d41aa78b.js} +2 -2
  70. package/dist/mg-components/p-d41aa78b.js.map +1 -0
  71. package/dist/mg-components/{p-22f575c5.entry.js → p-d80b844d.entry.js} +2 -2
  72. package/dist/types/components/atoms/mg-badge/mg-badge.d.ts +1 -1
  73. package/dist/types/components.d.ts +2 -2
  74. package/ide/intellij/web-types.json +5810 -0
  75. package/ide/vscode/html-custom-data.json +5083 -0
  76. package/package.json +21 -14
  77. package/dist/cjs/index-f699ee11.js.map +0 -1
  78. package/dist/esm/index-d2fc6ec0.js.map +0 -1
  79. package/dist/mg-components/p-29b5a514.js.map +0 -1
  80. package/dist/mg-components/p-57614d95.entry.js +0 -2
  81. package/dist/mg-components/p-57614d95.entry.js.map +0 -1
  82. /package/dist/mg-components/{p-568c9ea9.entry.js.map → p-2db8355d.entry.js.map} +0 -0
  83. /package/dist/mg-components/{p-22f575c5.entry.js.map → p-d80b844d.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- const e={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 t="{counter} characters left.";const s={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"}}};const a={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 n={closeButton:"Close message"};const r={closeButton:"Close modal"};const l={label:"Pagination",page:"page",pages:"pages",nextPage:"Next page",previousPage:"Previous page",selectPage:"Select the page to display."};const o={editLabel:"Edit section title."};const i={navLabel:"Quick access"};const c={confirm:"Confirm",cancel:"Cancel",close:"Close",next:"next",previous:"previous"};const u={moreLabel:"Additional menu",badgeLabel:"Include notification(s)"};const d={label:"Actions"};const m={inProgess:"Loading in progress…"};const p={errors:e,nbCharLeft:t,input:s,form:a,message:n,modal:r,pagination:l,panel:o,skipLinks:i,general:c,plusMenu:u,actionMore:d,loader:m};const g={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 h="{counter} caractères disponibles.";const b={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"}}};const f={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 v={closeButton:"Fermer le message"};const y={closeButton:"Fermer la modale"};const x={label:"Pagination",page:"page",pages:"pages",nextPage:"Page suivante",previousPage:"Page précédente",selectPage:"Sélectionner la page à afficher."};const L={editLabel:"Modifier le titre de la section."};const S={navLabel:"Accès rapide"};const P={confirm:"Valider",cancel:"Annuler",close:"Fermer",next:"suivant",previous:"précédent"};const q={moreLabel:"Menu complémentaire",badgeLabel:"Notification(s) incluse(s)"};const T={label:"Actions"};const w={inProgess:"Chargement en cours…"};const A={errors:g,nbCharLeft:h,input:b,form:f,message:v,modal:y,pagination:x,panel:L,skipLinks:S,general:P,plusMenu:q,actionMore:T,loader:w};var M=Object.defineProperty;var k=(e,t,s)=>t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var B=(e,t,s)=>(k(e,typeof t!="symbol"?t+"":t,s),s);const C=e=>{const t={value:"2023",pattern:"yyyy"},s={value:"12",pattern:"mm"},a={value:"24",pattern:"dd"};return j([t.value,s.value,a.value].join("-"),e).replace(t.value,t.pattern).replace(s.value,s.pattern).replace(a.value,a.pattern)},N=e=>e.toISOString().split("T")[0],R=(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]}},F=(e,t,s)=>new Intl.NumberFormat(t,{style:"currency",currency:s}).format(e),I=(e,t)=>new Intl.NumberFormat(t).format(e),V=/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/,j=(e,t)=>typeof e!="string"||e===""||!V.test(e)?"":new Intl.DateTimeFormat(t).format(new Date(e)),D=(e,t)=>s=>R(s,e,t),E=(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 U{constructor(e=[]){B(this,"classes");B(this,"add",(e=>{this.has(e)||this.classes.push(e)}));B(this,"delete",(e=>{const t=this.classes.indexOf(e);t>-1&&this.classes.splice(t,1)}));B(this,"has",(e=>this.classes.includes(e)));B(this,"join",(()=>this.classes.join(" ")));this.classes=e}}const $=e=>Array.isArray(e)&&e.every((e=>typeof e=="string")),z=(e,t)=>t.includes(e==null?void 0:e.tagName.toLowerCase()),H='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]), [identifier], mg-button',O=e=>{const t=Q(e),s=_(e);return[e,...t,...s]},Q=(e,t=[])=>{if(e.self!==e.top)try{const s=e.parent;return s?(t.push(s),Q(s,t)):t}catch(e){return console.error("Different hosts between iframes:",e),t}return t},_=(e,t=[])=>{if(e.frames.length>0)for(const s of Array.from(e.frames))t.push(s),_(s,t);return t},G=e=>typeof e=="string"&&e.trim()!=="",J=e=>typeof e=="string"?e.toLocaleLowerCase().normalize("NFD").replaceAll(/[\u0300-\u036f]/g,""):e,K=async e=>e();const W="en";const X={en:p,fr:A};const Y=D(X,W);export{N as A,H as B,J as C,$ as D,C as E,U as F,G as H,I as M,O as N,K as P,F as R,V as S,z as _,j as b,Y as i,E as j};
2
- //# sourceMappingURL=p-29b5a514.js.map
1
+ const e={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 t="{counter} characters left.";const s={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"}}};const a={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 n={closeButton:"Close message"};const r={closeButton:"Close modal"};const l={label:"Pagination",page:"page",pages:"pages",nextPage:"Next page",previousPage:"Previous page",selectPage:"Select the page to display."};const o={editLabel:"Edit section title."};const i={navLabel:"Quick access"};const c={confirm:"Confirm",cancel:"Cancel",close:"Close",next:"next",previous:"previous"};const u={moreLabel:"Additional menu",badgeLabel:"Include notification(s)"};const d={label:"Actions"};const m={inProgess:"Loading in progress…"};const p={errors:e,nbCharLeft:t,input:s,form:a,message:n,modal:r,pagination:l,panel:o,skipLinks:i,general:c,plusMenu:u,actionMore:d,loader:m};const g={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 h="{counter} caractères disponibles.";const b={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"}}};const f={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 v={closeButton:"Fermer le message"};const y={closeButton:"Fermer la modale"};const x={label:"Pagination",page:"page",pages:"pages",nextPage:"Page suivante",previousPage:"Page précédente",selectPage:"Sélectionner la page à afficher."};const L={editLabel:"Modifier le titre de la section."};const S={navLabel:"Accès rapide"};const q={confirm:"Valider",cancel:"Annuler",close:"Fermer",next:"suivant",previous:"précédent"};const P={moreLabel:"Menu complémentaire",badgeLabel:"Notification(s) incluse(s)"};const T={label:"Actions"};const w={inProgess:"Chargement en cours…"};const M={errors:g,nbCharLeft:h,input:b,form:f,message:v,modal:y,pagination:x,panel:L,skipLinks:S,general:q,plusMenu:P,actionMore:T,loader:w};var k=Object.defineProperty;var A=(e,t,s)=>t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var B=(e,t,s)=>(A(e,typeof t!="symbol"?t+"":t,s),s);const C=(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=[]){B(this,"classes");B(this,"add",(e=>{this.has(e)||this.classes.push(e)}));B(this,"delete",(e=>{const t=this.classes.indexOf(e);t>-1&&this.classes.splice(t,1)}));B(this,"has",(e=>this.classes.includes(e)));B(this,"join",(()=>this.classes.join(" ")));this.classes=e}}const R=e=>Array.isArray(e)&&e.every((e=>typeof e=="string")),F=(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',V=e=>{const t=D(e),s=j(e);return[e,...t,...s]},D=(e,t=[])=>{if(e.self!==e.top)try{const s=e.parent;return s?(t.push(s),D(s,t)):t}catch(e){return console.error("Different hosts between iframes:",e),t}return t},j=(e,t=[])=>{if(e.frames.length>0)for(const s of Array.from(e.frames))t.push(s),j(s,t);return t},E=e=>typeof e=="string"&&e.trim()!=="",U=e=>typeof e=="string"?e.toLocaleLowerCase().normalize("NFD").replaceAll(/[\u0300-\u036f]/g,""):e,z=async e=>e(),$=e=>{const t={value:"2023",pattern:"yyyy"},s={value:"12",pattern:"mm"},a={value:"24",pattern:"dd"};return H([t.value,s.value,a.value].join("-"),e).replace(t.value,t.pattern).replace(s.value,s.pattern).replace(a.value,a.pattern)},O=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]}},W=(e,t,s)=>new Intl.NumberFormat(t,{style:"currency",currency:s}).format(e),_=(e,t)=>new Intl.NumberFormat(t).format(e),G=/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/,H=(e,t)=>typeof e!="string"||e===""||!G.test(e)?"":new Intl.DateTimeFormat(t).format(new Date(e)),J=(e,t)=>s=>Q(s,e,t);const K="en";const X={en:p,fr:M};const Y=J(X,K);export{E as B,I as D,F,N as M,U as N,R as O,$ as P,C as R,z as U,O as W,V as _,G as d,H as g,Y as i,_ as q,W as z};
2
+ //# sourceMappingURL=p-d41aa78b.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ie","Object","defineProperty","ce","t","e","n","enumerable","configurable","writable","value","p","Re","Uint8Array","crypto","getRandomValues","r","Array","from","map","s","toString","padStart","join","slice","Me","constructor","this","has","classes","push","indexOf","splice","includes","Oe","isArray","every","Fe","tagName","toLowerCase","De","_e","G","I","self","top","parent","console","error","frames","length","Be","trim","Ne","toLocaleLowerCase","normalize","replaceAll","Ue","async","Pe","pattern","ge","replace","We","toISOString","split","ue","closest","Intl","NumberFormat","supportedLocalesOf","lang","o","navigator","language","l","shift","locale","messages","ze","style","currency","format","qe","de","test","DateTimeFormat","Date","we","defaultLocale","en","fr","initLocales","defineLocales"],"sources":["../stencil-helpers/dist/index.es.js","src/locales/index.ts"],"sourcesContent":["var ie = Object.defineProperty;\nvar ce = (t, e, n) => e in t ? ie(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;\nvar p = (t, e, n) => (ce(t, typeof e != \"symbol\" ? e + \"\" : e, n), n);\nconst Re = (t = \"\", e = 10) => {\n const n = new Uint8Array(e);\n crypto.getRandomValues(n);\n const r = Array.from(n).map((s) => s.toString(16).padStart(2, \"0\")).join(\"\").slice(0, e);\n return t !== \"\" ? `${t}-${r}` : r;\n};\nclass Me {\n constructor(e = []) {\n /**\n * Available classes\n */\n p(this, \"classes\");\n /**\n * Add class\n * @param className - class name to add\n */\n p(this, \"add\", (e) => {\n this.has(e) || this.classes.push(e);\n });\n /**\n * Delete class\n * @param className - class name to delete\n */\n p(this, \"delete\", (e) => {\n const n = this.classes.indexOf(e);\n n > -1 && this.classes.splice(n, 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 p(this, \"has\", (e) => this.classes.includes(e));\n /**\n * Join classes seperated by spaces\n * @returns joined values\n */\n p(this, \"join\", () => this.classes.join(\" \"));\n this.classes = e;\n }\n}\nconst Oe = (t) => Array.isArray(t) && t.every((e) => typeof e == \"string\"), Fe = (t, e) => e.includes(t == null ? void 0 : t.tagName.toLowerCase()), De = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"]), [identifier], mg-button', _e = (t) => {\n const e = G(t), n = I(t);\n return [t, ...e, ...n];\n}, G = (t, e = []) => {\n if (t.self !== t.top)\n try {\n const n = t.parent;\n return n ? (e.push(n), G(n, e)) : e;\n } catch (n) {\n return console.error(\"Different hosts between iframes:\", n), e;\n }\n return e;\n}, I = (t, e = []) => {\n if (t.frames.length > 0)\n for (const n of Array.from(t.frames))\n e.push(n), I(n, e);\n return e;\n}, Be = (t) => typeof t == \"string\" && t.trim() !== \"\", Ne = (t) => typeof t == \"string\" ? t.toLocaleLowerCase().normalize(\"NFD\").replaceAll(/[\\u0300-\\u036f]/g, \"\") : t, Ue = async (t) => t(), X = (t, e) => {\n if (!e)\n return;\n const n = e.split(\"/\");\n return `${t}${n.slice(2, n.length - 1).join(\"-\")}--docs`;\n}, ae = (t, e) => {\n if (e)\n return `${t}${e}`;\n}, K = (t) => {\n let e = t.overview ? `${t.overview}\n\n` : \"\";\n const n = t.props.filter(({ attr: s }) => s !== void 0);\n n.length && (e += `Attributes:\n`, e += n.map(({ attr: s, docs: o }) => `- \\`${s}\\`: ${o}\n`).join(\"\"), e += `\n`);\n const r = t.props.filter(({ attr: s }) => s === void 0);\n return r.length && (e += `Properties:\n`, e += r.map(({ name: s, docs: o }) => `- \\`${s}\\`: ${o}\n`).join(\"\"), e += `\n`), t.methods.length && (e += `Methods:\n`, e += t.methods.map(({ name: s, docs: o }) => `- \\`${s}\\`: ${o}\n`).join(\"\"), e += `\n`), t.events.length && (e += `Events:\n`, e += t.events.map(({ event: s, docs: o }) => `- \\`${s}\\`: ${o}\n`).join(\"\"), e += `\n`), t.listeners.length && (e += `Listeners:\n`, e += t.listeners.map(({ event: s }) => `- \\`${s}\\`\n`).join(\"\"), e += `\n`), t.slots.length && (e += `Slots:\n`, e += t.slots.map(({ name: s, docs: o }) => `- \\`${s}\\`: ${o}\n`).join(\"\"), e += `\n`), e;\n}, F = (t) => `${t.docs}\n\nType: \\`${t.type}\\``, Ce = (t, e, n, r) => ({\n $schema: \"https://json.schemastore.org/web-types\",\n name: t,\n version: e,\n \"description-markup\": \"markdown\",\n contributions: {\n html: {\n elements: n.components.map((s) => {\n const o = X(r, s.filePath);\n return {\n name: s.tag,\n description: K(s),\n \"doc-url\": o,\n attributes: s.props.filter((l) => l.attr).map((l) => ({\n name: l.attr,\n description: F(l),\n \"doc-url\": o,\n value: {\n type: l.type,\n default: l.default,\n required: l.required\n }\n })),\n js: {\n properties: s.props.map((l) => ({\n name: l.name,\n description: F(l),\n \"doc-url\": o,\n value: {\n type: l.type,\n default: l.default,\n required: l.required\n }\n })),\n events: s.events.map((l) => ({\n name: l.event,\n description: l.docs\n }))\n }\n };\n })\n }\n }\n}), fe = (t, e, n) => {\n if (n)\n return [\n { name: \"Storybook\", url: X(t, n) },\n { name: \"Sources\", url: ae(e, n) }\n ];\n}, $e = (t) => {\n if (!t.values.some(({ value: e }) => e === void 0))\n return t.values.map(({ value: e }) => ({ name: e }));\n}, He = (t, e, n, r) => ({\n version: t,\n tags: e.components.map((s) => {\n const o = fe(n, r, s.filePath);\n return {\n name: s.tag,\n description: K(s),\n attributes: s.props.map((l) => ({\n name: l.attr || l.name,\n description: F(l),\n values: $e(l),\n references: o\n })),\n references: o\n };\n }),\n globalAttributes: [],\n valueSets: []\n}), Pe = (t) => {\n const e = { value: \"2023\", pattern: \"yyyy\" }, n = { value: \"12\", pattern: \"mm\" }, r = { value: \"24\", pattern: \"dd\" };\n return ge([e.value, n.value, r.value].join(\"-\"), t).replace(e.value, e.pattern).replace(n.value, n.pattern).replace(r.value, r.pattern);\n}, We = (t) => t.toISOString().split(\"T\")[0], ue = (t, e, n) => {\n const r = t.closest(\"[lang]\"), s = Intl.NumberFormat.supportedLocalesOf(r == null ? void 0 : r.lang), o = s.length > 0 && typeof s[0] == \"string\" ? s[0] : navigator.language || n, l = o.split(\"-\").shift();\n return {\n locale: o,\n messages: e[l] || e[n]\n };\n}, ze = (t, e, n) => new Intl.NumberFormat(e, { style: \"currency\", currency: n }).format(t), qe = (t, e) => new Intl.NumberFormat(e).format(t), de = /^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$/, ge = (t, e) => typeof t != \"string\" || t === \"\" || !de.test(t) ? \"\" : new Intl.DateTimeFormat(e).format(new Date(t)), we = (t, e) => (n) => ue(n, t, e), Q = {\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 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};\nlet k, D, x, _ = !1, R = !1, B = !1, h = !1;\nconst C = \"http://www.w3.org/1999/xlink\", H = {}, pe = \"http://www.w3.org/2000/svg\", he = \"http://www.w3.org/1999/xhtml\", ye = (t) => t != null, J = (t) => (t = typeof t, t === \"object\" || t === \"function\"), Y = (t, e, ...n) => {\n let r = null, s = null, o = null, l = !1, c = !1;\n const i = [], d = (a) => {\n for (let $ = 0; $ < a.length; $++)\n r = a[$], Array.isArray(r) ? d(r) : r != null && typeof r != \"boolean\" && ((l = typeof t != \"function\" && !J(r)) && (r = String(r)), l && c ? i[i.length - 1].$text$ += r : i.push(l ? M(null, r) : r), c = l);\n };\n if (d(n), e) {\n e.key && (s = e.key), e.name && (o = e.name);\n {\n const a = e.className || e.class;\n a && (e.class = typeof a != \"object\" ? a : Object.keys(a).filter(($) => a[$]).join(\" \"));\n }\n }\n if (typeof t == \"function\")\n return t(e === null ? {} : e, i, Se);\n const u = M(t, null);\n return u.$attrs$ = e, i.length > 0 && (u.$children$ = i), u.$key$ = s, u.$name$ = o, u;\n}, M = (t, e) => {\n const n = {\n $flags$: 0,\n $tag$: t,\n $text$: e,\n $elm$: null,\n $children$: null\n };\n return n.$attrs$ = null, n.$key$ = null, n.$name$ = null, n;\n}, ve = {}, be = (t) => t && t.$tag$ === ve, Se = {\n forEach: (t, e) => t.map(P).forEach(e),\n map: (t, e) => t.map(P).map(e).map(ke)\n}, P = (t) => ({\n vattrs: t.$attrs$,\n vchildren: t.$children$,\n vkey: t.$key$,\n vname: t.$name$,\n vtag: t.$tag$,\n vtext: t.$text$\n}), ke = (t) => {\n if (typeof t.vtag == \"function\") {\n const n = Object.assign({}, t.vattrs);\n return t.vkey && (n.key = t.vkey), t.vname && (n.name = t.vname), Y(t.vtag, n, ...t.vchildren || []);\n }\n const e = M(t.vtag, t.vtext);\n return e.$attrs$ = t.vattrs, e.$children$ = t.vchildren, e.$key$ = t.vkey, e.$name$ = t.vname, e;\n}, W = (t, e, n, r, s, o) => {\n if (n !== r) {\n let l = w(t, e), c = e.toLowerCase();\n if (e === \"class\") {\n const i = t.classList, d = z(n), u = z(r);\n i.remove(...d.filter((a) => a && !u.includes(a))), i.add(...u.filter((a) => a && !d.includes(a)));\n } else if (e === \"style\") {\n for (const i in n)\n (!r || r[i] == null) && (i.includes(\"-\") ? t.style.removeProperty(i) : t.style[i] = \"\");\n for (const i in r)\n (!n || r[i] !== n[i]) && (i.includes(\"-\") ? t.style.setProperty(i, r[i]) : t.style[i] = r[i]);\n } else if (e !== \"key\")\n if (e === \"ref\")\n r && r(t);\n else if (!t.__lookupSetter__(e) && e[0] === \"o\" && e[1] === \"n\") {\n if (e[2] === \"-\" ? e = e.slice(3) : w(U, c) ? e = c.slice(2) : e = c[2] + e.slice(3), n || r) {\n const i = e.endsWith(Z);\n e = e.replace(Te, \"\"), n && T.rel(t, e, n, i), r && T.ael(t, e, r, i);\n }\n } else {\n const i = J(r);\n if ((l || i && r !== null) && !s)\n try {\n if (t.tagName.includes(\"-\"))\n t[e] = r;\n else {\n const u = r ?? \"\";\n e === \"list\" ? l = !1 : (n == null || t[e] != u) && (t[e] = u);\n }\n } catch {\n }\n let d = !1;\n c !== (c = c.replace(/^xlink\\:?/, \"\")) && (e = c, d = !0), r == null || r === !1 ? (r !== !1 || t.getAttribute(e) === \"\") && (d ? t.removeAttributeNS(C, e) : t.removeAttribute(e)) : (!l || o & 4 || s) && !i && (r = r === !0 ? \"\" : r, d ? t.setAttributeNS(C, e, r) : t.setAttribute(e, r));\n }\n }\n}, me = /\\s/, z = (t) => t ? t.split(me) : [], Z = \"Capture\", Te = new RegExp(Z + \"$\"), V = (t, e, n, r) => {\n const s = e.$elm$.nodeType === 11 && e.$elm$.host ? e.$elm$.host : e.$elm$, o = t && t.$attrs$ || H, l = e.$attrs$ || H;\n for (r in o)\n r in l || W(s, r, o[r], void 0, n, e.$flags$);\n for (r in l)\n W(s, r, o[r], l[r], n, e.$flags$);\n}, O = (t, e, n, r) => {\n const s = e.$children$[n];\n let o = 0, l, c, i;\n if (_ || (B = !0, s.$tag$ === \"slot\" && (k && r.classList.add(k + \"-s\"), s.$flags$ |= s.$children$ ? (\n // slot element has fallback content\n 2\n ) : (\n // slot element does not have fallback content\n 1\n ))), s.$text$ !== null)\n l = s.$elm$ = j.createTextNode(s.$text$);\n else if (s.$flags$ & 1)\n l = s.$elm$ = j.createTextNode(\"\");\n else {\n if (h || (h = s.$tag$ === \"svg\"), l = s.$elm$ = j.createElementNS(h ? pe : he, s.$flags$ & 2 ? \"slot-fb\" : s.$tag$), h && s.$tag$ === \"foreignObject\" && (h = !1), V(null, s, h), ye(k) && l[\"s-si\"] !== k && l.classList.add(l[\"s-si\"] = k), s.$children$)\n for (o = 0; o < s.$children$.length; ++o)\n c = O(t, s, o, l), c && l.appendChild(c);\n s.$tag$ === \"svg\" ? h = !1 : l.tagName === \"foreignObject\" && (h = !0);\n }\n return l[\"s-hn\"] = x, s.$flags$ & 3 && (l[\"s-sr\"] = !0, l[\"s-cr\"] = D, l[\"s-sn\"] = s.$name$ || \"\", i = t && t.$children$ && t.$children$[n], i && i.$tag$ === s.$tag$ && t.$elm$ && E(t.$elm$, !1)), l;\n}, E = (t, e) => {\n T.$flags$ |= 1;\n const n = t.childNodes;\n for (let r = n.length - 1; r >= 0; r--) {\n const s = n[r];\n s[\"s-hn\"] !== x && s[\"s-ol\"] && (se(s).insertBefore(s, N(s)), s[\"s-ol\"].remove(), s[\"s-ol\"] = void 0, s[\"s-sh\"] = void 0, B = !0), e && E(s, e);\n }\n T.$flags$ &= -2;\n}, ee = (t, e, n, r, s, o) => {\n let l = t[\"s-cr\"] && t[\"s-cr\"].parentNode || t, c;\n for (l.shadowRoot && l.tagName === x && (l = l.shadowRoot); s <= o; ++s)\n r[s] && (c = O(null, n, s, t), c && (r[s].$elm$ = c, l.insertBefore(c, N(e))));\n}, te = (t, e, n) => {\n for (let r = e; r <= n; ++r) {\n const s = t[r];\n if (s) {\n const o = s.$elm$;\n le(s), o && (R = !0, o[\"s-ol\"] ? o[\"s-ol\"].remove() : E(o, !0), o.remove());\n }\n }\n}, xe = (t, e, n, r, s = !1) => {\n let o = 0, l = 0, c = 0, i = 0, d = e.length - 1, u = e[0], a = e[d], $ = r.length - 1, f = r[0], g = r[$], v, y;\n for (; o <= d && l <= $; )\n if (u == null)\n u = e[++o];\n else if (a == null)\n a = e[--d];\n else if (f == null)\n f = r[++l];\n else if (g == null)\n g = r[--$];\n else if (A(u, f, s))\n m(u, f, s), u = e[++o], f = r[++l];\n else if (A(a, g, s))\n m(a, g, s), a = e[--d], g = r[--$];\n else if (A(u, g, s))\n (u.$tag$ === \"slot\" || g.$tag$ === \"slot\") && E(u.$elm$.parentNode, !1), m(u, g, s), t.insertBefore(u.$elm$, a.$elm$.nextSibling), u = e[++o], g = r[--$];\n else if (A(a, f, s))\n (u.$tag$ === \"slot\" || g.$tag$ === \"slot\") && E(a.$elm$.parentNode, !1), m(a, f, s), t.insertBefore(a.$elm$, u.$elm$), a = e[--d], f = r[++l];\n else {\n for (c = -1, i = o; i <= d; ++i)\n if (e[i] && e[i].$key$ !== null && e[i].$key$ === f.$key$) {\n c = i;\n break;\n }\n c >= 0 ? (y = e[c], y.$tag$ !== f.$tag$ ? v = O(e && e[l], n, c, t) : (m(y, f, s), e[c] = void 0, v = y.$elm$), f = r[++l]) : (v = O(e && e[l], n, l, t), f = r[++l]), v && se(u.$elm$).insertBefore(v, N(u.$elm$));\n }\n o > d ? ee(t, r[$ + 1] == null ? null : r[$ + 1].$elm$, n, r, l, $) : l > $ && te(e, o, d);\n}, A = (t, e, n = !1) => t.$tag$ === e.$tag$ ? t.$tag$ === \"slot\" ? t.$name$ === e.$name$ : n ? !0 : t.$key$ === e.$key$ : !1, N = (t) => t && t[\"s-ol\"] || t, se = (t) => (t[\"s-ol\"] ? t[\"s-ol\"] : t).parentNode, m = (t, e, n = !1) => {\n const r = e.$elm$ = t.$elm$, s = t.$children$, o = e.$children$, l = e.$tag$, c = e.$text$;\n let i;\n c === null ? (h = l === \"svg\" ? !0 : l === \"foreignObject\" ? !1 : h, l === \"slot\" && !_ || V(t, e, h), s !== null && o !== null ? xe(r, s, e, o, n) : o !== null ? (t.$text$ !== null && (r.textContent = \"\"), ee(r, null, e, o, 0, o.length - 1)) : s !== null && te(s, 0, s.length - 1), h && l === \"svg\" && (h = !1)) : (i = r[\"s-cr\"]) ? i.parentNode.textContent = c : t.$text$ !== c && (r.data = c);\n}, ne = (t) => {\n const e = t.childNodes;\n for (const n of e)\n if (n.nodeType === 1) {\n if (n[\"s-sr\"]) {\n const r = n[\"s-sn\"];\n n.hidden = !1;\n for (const s of e)\n if (s !== n) {\n if (s[\"s-hn\"] !== n[\"s-hn\"] || r !== \"\") {\n if (s.nodeType === 1 && (r === s.getAttribute(\"slot\") || r === s[\"s-sn\"])) {\n n.hidden = !0;\n break;\n }\n } else if (s.nodeType === 1 || s.nodeType === 3 && s.textContent.trim() !== \"\") {\n n.hidden = !0;\n break;\n }\n }\n }\n ne(n);\n }\n}, b = [], re = (t) => {\n let e, n, r;\n for (const s of t.childNodes) {\n if (s[\"s-sr\"] && (e = s[\"s-cr\"]) && e.parentNode) {\n n = e.parentNode.childNodes;\n const o = s[\"s-sn\"];\n for (r = n.length - 1; r >= 0; r--)\n if (e = n[r], !e[\"s-cn\"] && !e[\"s-nr\"] && e[\"s-hn\"] !== s[\"s-hn\"] && !Q.experimentalSlotFixes)\n if (q(e, o)) {\n let l = b.find((c) => c.$nodeToRelocate$ === e);\n R = !0, e[\"s-sn\"] = e[\"s-sn\"] || o, l ? (l.$nodeToRelocate$[\"s-sh\"] = s[\"s-hn\"], l.$slotRefNode$ = s) : (e[\"s-sh\"] = s[\"s-hn\"], b.push({\n $slotRefNode$: s,\n $nodeToRelocate$: e\n })), e[\"s-sr\"] && b.map((c) => {\n q(c.$nodeToRelocate$, e[\"s-sn\"]) && (l = b.find((i) => i.$nodeToRelocate$ === e), l && !c.$slotRefNode$ && (c.$slotRefNode$ = l.$slotRefNode$));\n });\n } else\n b.some((l) => l.$nodeToRelocate$ === e) || b.push({\n $nodeToRelocate$: e\n });\n }\n s.nodeType === 1 && re(s);\n }\n}, q = (t, e) => t.nodeType === 1 ? t.getAttribute(\"slot\") === null && e === \"\" || t.getAttribute(\"slot\") === e : t[\"s-sn\"] === e ? !0 : e === \"\", le = (t) => {\n t.$attrs$ && t.$attrs$.ref && t.$attrs$.ref(null), t.$children$ && t.$children$.map(le);\n}, Ee = (t, e, n = !1) => {\n var r, s, o, l, c;\n const i = t.$hostElement$, d = t.$cmpMeta$, u = t.$vnode$ || M(null, null), a = be(e) ? e : Y(null, null, e);\n if (x = i.tagName, d.$attrsToReflect$ && (a.$attrs$ = a.$attrs$ || {}, d.$attrsToReflect$.map(([$, f]) => a.$attrs$[f] = i[$])), n && a.$attrs$)\n for (const $ of Object.keys(a.$attrs$))\n i.hasAttribute($) && ![\"key\", \"ref\", \"style\", \"class\"].includes($) && (a.$attrs$[$] = i[$]);\n a.$tag$ = null, a.$flags$ |= 4, t.$vnode$ = a, a.$elm$ = u.$elm$ = i.shadowRoot || i, k = i[\"s-sc\"], _ = (d.$flags$ & 1) !== 0, D = i[\"s-cr\"], R = !1, m(u, a, n);\n {\n if (T.$flags$ |= 1, B) {\n re(a.$elm$);\n for (const $ of b) {\n const f = $.$nodeToRelocate$;\n if (!f[\"s-ol\"]) {\n const g = j.createTextNode(\"\");\n g[\"s-nr\"] = f, f.parentNode.insertBefore(f[\"s-ol\"] = g, f);\n }\n }\n for (const $ of b) {\n const f = $.$nodeToRelocate$, g = $.$slotRefNode$;\n if (g) {\n const v = g.parentNode;\n let y = g.nextSibling;\n {\n let L = (r = f[\"s-ol\"]) === null || r === void 0 ? void 0 : r.previousSibling;\n for (; L; ) {\n let S = (s = L[\"s-nr\"]) !== null && s !== void 0 ? s : null;\n if (S && S[\"s-sn\"] === f[\"s-sn\"] && v === S.parentNode && (S = S.nextSibling, !S || !S[\"s-nr\"])) {\n y = S;\n break;\n }\n L = L.previousSibling;\n }\n }\n (!y && v !== f.parentNode || f.nextSibling !== y) && f !== y && (!f[\"s-hn\"] && f[\"s-ol\"] && (f[\"s-hn\"] = f[\"s-ol\"].parentNode.nodeName), v.insertBefore(f, y), f.nodeType === 1 && (f.hidden = (o = f[\"s-ih\"]) !== null && o !== void 0 ? o : !1));\n } else\n f.nodeType === 1 && (n && (f[\"s-ih\"] = (l = f.hidden) !== null && l !== void 0 ? l : !1), f.hidden = !0);\n }\n }\n R && ne(a.$elm$), T.$flags$ &= -2, b.length = 0;\n }\n if (Q.experimentalScopedSlotChanges && d.$flags$ & 2)\n for (const $ of a.$elm$.childNodes)\n $[\"s-hn\"] !== x && !$[\"s-sh\"] && (n && $[\"s-ih\"] == null && ($[\"s-ih\"] = (c = $.hidden) !== null && c !== void 0 ? c : !1), $.hidden = !0);\n D = void 0;\n}, w = (t, e) => e in t, U = typeof window < \"u\" ? window : {}, j = U.document || { head: {} };\nU.HTMLElement;\nconst T = {\n $flags$: 0,\n $resourcesUrl$: \"\",\n jmp: (t) => t(),\n raf: (t) => requestAnimationFrame(t),\n ael: (t, e, n, r) => t.addEventListener(e, n, r),\n rel: (t, e, n, r) => t.removeEventListener(e, n, r),\n ce: (t, e) => new CustomEvent(t, e)\n}, Le = (t, e, n) => {\n [null, void 0, \"\", !1].includes(n) || [\"innerHTML\", \"style\"].includes(e) || t.setAttribute(e, [\"object\", \"function\"].includes(typeof n) ? \"/!\\\\ Object props are not rendered in the code example\" : n);\n}, oe = (t, e, n, r, s) => {\n if (e && typeof e == \"string\") {\n const o = document.createElement(e);\n Object.keys(n || {}).forEach((l) => {\n Le(o, l, n[l]);\n }), r == null || r.forEach((l) => {\n oe(o, l.$tag$, l.$attrs$, l.$children$, l.$text$);\n }), n != null && n.innerHTML && (o.innerHTML = n.innerHTML), t.appendChild(o);\n }\n s && (t.innerHTML = s);\n}, Ge = (t, e) => {\n const n = {};\n if (typeof t != \"object\")\n throw new Error(\"filterArgs - args isn't an object.\");\n for (const r in t)\n if (!r.startsWith(\"slot\")) {\n const s = t[r], o = r.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase();\n (!e || !Object.keys(e).includes(r) || e[r] !== s) && (n[o] = s);\n }\n return n;\n}, Ie = (t, e) => {\n var r, s;\n const n = document.getElementById(\"storybook-root\");\n if (n)\n return (s = document.querySelector(\"[lang]\")) == null || s.setAttribute(\"lang\", ((r = e.globals) == null ? void 0 : r.locale) || \"en\"), Ee(\n {\n $ancestorComponent$: void 0,\n $flags$: 0,\n $modeName$: void 0,\n $cmpMeta$: {\n $flags$: 0,\n $tagName$: n.tagName\n },\n $hostElement$: n\n },\n t(e)\n ), n.children[n.children.length - 1];\n}, Xe = ({ $tag$: t, $attrs$: e, $children$: n, $text$: r }) => {\n const s = document.createElement(\"div\");\n return oe(s, t, e, n, r), s.innerHTML;\n}, Ke = ({ disconnect: t, observe: e, takeRecords: n }) => {\n class r {\n constructor(o) {\n /**\n *\n */\n p(this, \"disconnect\", t);\n /**\n *\n */\n p(this, \"observe\", e);\n /**\n *\n */\n p(this, \"takeRecords\", n);\n /**\n *\n */\n p(this, \"cb\");\n this.cb = o;\n }\n }\n return [window, global].forEach((s) => {\n Object.defineProperty(s, \"MutationObserver\", {\n writable: !0,\n configurable: !0,\n value: r\n });\n }), r;\n}, Qe = ({ disconnect: t, observe: e }) => {\n class n {\n constructor(s) {\n /**\n *\n */\n p(this, \"disconnect\", t);\n /**\n *\n */\n p(this, \"observe\", e);\n /**\n *\n */\n p(this, \"unobserve\");\n /**\n *\n */\n p(this, \"cb\");\n this.cb = s;\n }\n }\n return [window, global].forEach((r) => {\n Object.defineProperty(r, \"ResizeObserver\", {\n writable: !0,\n configurable: !0,\n value: n\n });\n }), n;\n};\nclass Ae extends Event {\n constructor() {\n super(...arguments);\n /**\n *\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n p(this, \"detail\");\n }\n}\nconst Je = () => {\n class t extends Ae {\n }\n return [window, global].forEach((e) => {\n Object.defineProperty(e, \"SubmitEvent\", {\n writable: !0,\n configurable: !0,\n value: t\n });\n }), t;\n};\nexport {\n Me as ClassList,\n Oe as allItemsAreString,\n Ne as cleanString,\n Re as createID,\n de as dateRegExp,\n We as dateToString,\n we as defineLocales,\n Ge as filterArgs,\n De as focusableElements,\n Pe as getLocaleDatePattern,\n G as getParentWindows,\n Xe as getStoryHTML,\n _e as getWindows,\n Fe as isTagName,\n Be as isValidString,\n ze as localeCurrency,\n ge as localeDate,\n qe as localeNumber,\n Ue as nextTick,\n Ke as setupMutationObserverMock,\n Qe as setupResizeObserverMock,\n Je as setupSubmitEventMock,\n Ie as stencilWrapper,\n He as vsCodeGenerator,\n Ce 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":"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"}
@@ -1,2 +1,2 @@
1
- import{r as e,h as t,g as i}from"./p-f761ebcd.js";import{H as r,i as a}from"./p-29b5a514.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:"f308fffd47bf8ef4ca08364bc55f2966ed626a9f",class:"mg-c-loader","aria-live":"polite"},t("mg-icon",{key:"3d99e25ed45daed36673314dee7f9d2f1672ef99",icon:"loader",spin:true}),t("span",{key:"bcdbaa246385817265f386df86cb29b848c9797b",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-22f575c5.entry.js.map
1
+ import{r as e,h as t,g as i}from"./p-bc62d75e.js";import{B as a,i as r}from"./p-d41aa78b.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:"f308fffd47bf8ef4ca08364bc55f2966ed626a9f",class:"mg-c-loader","aria-live":"polite"},t("mg-icon",{key:"3d99e25ed45daed36673314dee7f9d2f1672ef99",icon:"loader",spin:true}),t("span",{key:"bcdbaa246385817265f386df86cb29b848c9797b",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-d80b844d.entry.js.map
@@ -20,7 +20,7 @@ export declare class MgBadge {
20
20
  label: string;
21
21
  validateLabel(newValue: MgBadge['label']): void;
22
22
  /**
23
- * Define button variant
23
+ * Define badge variant
24
24
  */
25
25
  variant?: BadgeVariantType;
26
26
  validateVariant(newValue: MgBadge['variant'], oldValue?: MgBadge['variant']): void;
@@ -84,7 +84,7 @@ export namespace Components {
84
84
  */
85
85
  "value": string | number;
86
86
  /**
87
- * Define button variant
87
+ * Define badge variant
88
88
  */
89
89
  "variant"?: BadgeVariantType;
90
90
  }
@@ -1986,7 +1986,7 @@ declare namespace LocalJSX {
1986
1986
  */
1987
1987
  "value": string | number;
1988
1988
  /**
1989
- * Define button variant
1989
+ * Define badge variant
1990
1990
  */
1991
1991
  "variant"?: BadgeVariantType;
1992
1992
  }