@mgdis/mg-components 6.14.0 → 6.16.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 (128) hide show
  1. package/dist/cjs/{index-DUJwxnoi.js → index-CpENFzEo.js} +2 -2
  2. package/dist/cjs/{index-DzBkSgSK.js → index-T3-qWqFE.js} +8 -2
  3. package/dist/cjs/{index-CwjAofQ1.js → index-YM1EJx9X.js} +43 -31
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/mg-action-more_37.cjs.entry.js +136 -150
  6. package/dist/cjs/mg-alert.cjs.entry.js +4 -4
  7. package/dist/cjs/mg-components.cjs.js +3 -3
  8. package/dist/cjs/mg-input-combobox.cjs.entry.js +15 -13
  9. package/dist/cjs/mg-input-rich-text-editor.cjs.entry.js +1247 -16003
  10. package/dist/cjs/mg-loader.cjs.entry.js +4 -4
  11. package/dist/cjs/mg-progress.cjs.entry.js +3 -3
  12. package/dist/collection/assets/icons/index.js +1 -1
  13. package/dist/collection/collection-manifest.json +2 -2
  14. package/dist/collection/components/atoms/mg-icon/mg-icon.js +1 -1
  15. package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js +1 -1
  16. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js +49 -106
  17. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +55 -36
  18. package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.js +11 -9
  19. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +1 -1
  20. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +6 -1
  21. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +1 -1
  22. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +1 -1
  23. package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.js +1 -1
  24. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +1 -1
  25. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +2 -2
  26. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +1 -1
  27. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +1 -1
  28. package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.js +1 -1
  29. package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +2 -2
  30. package/dist/collection/components/molecules/mg-alert/mg-alert.js +1 -1
  31. package/dist/collection/components/molecules/mg-details/mg-details.js +1 -1
  32. package/dist/collection/components/molecules/mg-form/mg-form.js +1 -1
  33. package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +1 -1
  34. package/dist/collection/components/molecules/mg-loader/mg-loader.js +1 -1
  35. package/dist/collection/components/molecules/mg-message/mg-message.js +2 -2
  36. package/dist/collection/components/molecules/mg-modal/mg-modal.js +2 -2
  37. package/dist/collection/components/molecules/mg-panel/mg-panel.js +1 -1
  38. package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js +1 -1
  39. package/dist/collection/components/molecules/mg-popover/mg-popover.js +1 -1
  40. package/dist/collection/components/molecules/mg-progress/mg-progress.js +1 -1
  41. package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +1 -1
  42. package/dist/collection/components/molecules/mg-table/mg-table.js +2 -2
  43. package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +1 -1
  44. package/dist/collection/locales/en/messages.json +19 -15
  45. package/dist/collection/locales/fr/messages.json +20 -16
  46. package/dist/components/index2.js +3 -3
  47. package/dist/components/index3.js +43 -31
  48. package/dist/components/mg-action-more.js +2 -2
  49. package/dist/components/mg-alert.js +2 -2
  50. package/dist/components/mg-badge2.js +1 -1
  51. package/dist/components/mg-button2.js +1 -1
  52. package/dist/components/mg-card2.js +1 -1
  53. package/dist/components/mg-character-left2.js +1 -1
  54. package/dist/components/mg-details.js +2 -2
  55. package/dist/components/mg-divider2.js +1 -1
  56. package/dist/components/mg-form.js +2 -2
  57. package/dist/components/mg-icon2.js +1 -1
  58. package/dist/components/mg-illustrated-message.js +2 -2
  59. package/dist/components/mg-input-checkbox-paginated2.js +42 -124
  60. package/dist/components/mg-input-checkbox.js +89 -59
  61. package/dist/components/mg-input-combobox.js +14 -12
  62. package/dist/components/mg-input-date.js +2 -2
  63. package/dist/components/mg-input-numeric.js +7 -2
  64. package/dist/components/mg-input-password.js +2 -2
  65. package/dist/components/mg-input-radio.js +2 -2
  66. package/dist/components/mg-input-rich-text-editor.js +1247 -16003
  67. package/dist/components/mg-input-select2.js +2 -2
  68. package/dist/components/mg-input-text2.js +2 -2
  69. package/dist/components/mg-input-textarea.js +2 -2
  70. package/dist/components/mg-input-title2.js +1 -1
  71. package/dist/components/mg-input-toggle.js +2 -2
  72. package/dist/components/mg-input2.js +1 -1
  73. package/dist/components/mg-item-more2.js +2 -2
  74. package/dist/components/mg-loader2.js +2 -2
  75. package/dist/components/mg-menu-item2.js +1 -1
  76. package/dist/components/mg-message2.js +3 -3
  77. package/dist/components/mg-modal.js +3 -3
  78. package/dist/components/mg-pagination.js +227 -1
  79. package/dist/components/mg-panel.js +3 -3
  80. package/dist/components/mg-popover-content2.js +2 -2
  81. package/dist/components/mg-popover2.js +2 -2
  82. package/dist/components/mg-progress.js +2 -2
  83. package/dist/components/mg-skip-links.js +2 -2
  84. package/dist/components/mg-table.js +3 -3
  85. package/dist/components/mg-tabs.js +1 -311
  86. package/dist/components/mg-tabs2.js +313 -0
  87. package/dist/components/mg-tag.js +1 -1
  88. package/dist/components/mg-tooltip-content2.js +1 -1
  89. package/dist/components/mg-tooltip2.js +2 -2
  90. package/dist/esm/{index-Bv7NHR-W.js → index-Bab8_u8S.js} +43 -31
  91. package/dist/esm/{index-Degtjvph.js → index-JHj_9FSs.js} +8 -2
  92. package/dist/esm/{index-Dr7GYvIz.js → index-WtiuOkLj.js} +2 -2
  93. package/dist/esm/loader.js +3 -3
  94. package/dist/esm/mg-action-more_37.entry.js +136 -150
  95. package/dist/esm/mg-alert.entry.js +4 -4
  96. package/dist/esm/mg-components.js +4 -4
  97. package/dist/esm/mg-input-combobox.entry.js +15 -13
  98. package/dist/esm/mg-input-rich-text-editor.entry.js +1248 -16004
  99. package/dist/esm/mg-loader.entry.js +4 -4
  100. package/dist/esm/mg-progress.entry.js +3 -3
  101. package/dist/mg-components/locales/en/messages.json +19 -15
  102. package/dist/mg-components/locales/fr/messages.json +20 -16
  103. package/dist/mg-components/mg-components.esm.js +1 -1
  104. package/dist/mg-components/{p-056ba467.entry.js → p-42a90251.entry.js} +1 -1
  105. package/dist/mg-components/p-54156253.entry.js +1 -0
  106. package/dist/mg-components/{p-d13a6fdc.entry.js → p-658f828c.entry.js} +1 -1
  107. package/dist/mg-components/{p-c522f3c1.entry.js → p-82455ac7.entry.js} +1 -1
  108. package/dist/mg-components/p-Bab8_u8S.js +1 -0
  109. package/dist/mg-components/p-JHj_9FSs.js +2 -0
  110. package/dist/mg-components/p-WtiuOkLj.js +1 -0
  111. package/dist/mg-components/p-abbd151c.entry.js +1 -0
  112. package/dist/mg-components/p-c85b5d10.entry.js +1 -0
  113. package/dist/types/assets/icons/index.d.ts +6 -0
  114. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.d.ts +17 -40
  115. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.d.ts +1 -2
  116. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +15 -6
  117. package/dist/types/components/molecules/inputs/mg-input-combobox/mg-input-combobox.d.ts +1 -1
  118. package/dist/types/components.d.ts +6 -33
  119. package/ide/intellij/web-types.json +13 -13
  120. package/ide/vscode/html-custom-data.json +39 -3
  121. package/package.json +23 -23
  122. package/dist/components/mg-pagination2.js +0 -229
  123. package/dist/mg-components/p-625c463c.entry.js +0 -1
  124. package/dist/mg-components/p-Bv7NHR-W.js +0 -1
  125. package/dist/mg-components/p-Degtjvph.js +0 -2
  126. package/dist/mg-components/p-Dr7GYvIz.js +0 -1
  127. package/dist/mg-components/p-cac23bd7.entry.js +0 -1
  128. package/dist/mg-components/p-e75f5383.entry.js +0 -10
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, h, a as getElement } from './index-Degtjvph.js';
2
- import { i as initLocales } from './index-Bv7NHR-W.js';
3
- import { c as isValidString, t as toString } from './index-Dr7GYvIz.js';
1
+ import { r as registerInstance, h, a as getElement } from './index-JHj_9FSs.js';
2
+ import { i as initLocales } from './index-Bab8_u8S.js';
3
+ import { c as isValidString, t as toString } from './index-WtiuOkLj.js';
4
4
 
5
5
  const mgLoaderCss = ".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:var(--mg-b-size-4);text-align:center}";
6
6
 
@@ -33,7 +33,7 @@ const MgLoader = class {
33
33
  * @returns HTML Element
34
34
  */
35
35
  render() {
36
- return (h("div", { key: 'ad7aa5e4fa0704cf2fa174ae1ed960f72deb79e3', class: "mg-c-loader", "aria-live": "polite" }, h("mg-icon", { key: '47e6df1e459a74851bf370e460438b7bdc2ed3d0', icon: "loader", spin: true }), h("span", { key: '44d36e8492401cacb911f21fc707c1de03ae7a5d', class: { 'mg-u-visually-hidden': this.messageHide } }, this.message || this.messages.loader.inProgress)));
36
+ return (h("div", { key: 'b74028455b7003824fa5618b1751d05a91ab7071', class: "mg-c-loader", "aria-live": "polite" }, h("mg-icon", { key: '204acdb8f881b348148020214c05269878852c4f', icon: "loader", spin: true }), h("span", { key: '40f1792354df01ec9af61ab128575ea166f34cb5', class: { 'mg-u-visually-hidden': this.messageHide } }, this.message || this.messages.loader.inProgress)));
37
37
  }
38
38
  get element() { return getElement(this); }
39
39
  static get watchers() { return {
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h, H as Host } from './index-Degtjvph.js';
2
- import { c as isValidString, t as toString, e as isValidNumber } from './index-Dr7GYvIz.js';
1
+ import { r as registerInstance, h, H as Host } from './index-JHj_9FSs.js';
2
+ import { c as isValidString, t as toString, e as isValidNumber } from './index-WtiuOkLj.js';
3
3
 
4
4
  /**
5
5
  * List of all possibles roles
@@ -73,7 +73,7 @@ const MgProgress = class {
73
73
  * @returns HTML Element
74
74
  */
75
75
  render() {
76
- return (h(Host, { key: 'e6d254a68f35c5019158ab17fcb0e4dfd1943ef8', role: this.ariaRole, "aria-label": this.label, "aria-valuenow": this.value, "aria-valuemin": this.min, "aria-valuemax": this.max }, h("div", { key: '5b427579ad97336076504a45013a0be00673f9a9', class: "mg-c-progress" }, h("div", { key: '76dbdf88550caf51890e10c45c034d73cd02db5d', class: { 'mg-c-progress__bar': true, 'mg-c-progress__bar--active': this.value > this.min } }, h("div", { key: 'b0ab6f784cdb8cc25a40b83a0d97bcda5b5c1f9b', class: "mg-c-progress__fill", style: {
76
+ return (h(Host, { key: '62c66dbd93249bfde3eb8ff449b49884edfe49c3', role: this.ariaRole, "aria-label": this.label, "aria-valuenow": this.value, "aria-valuemin": this.min, "aria-valuemax": this.max }, h("div", { key: 'b349c9d7358086ca4668705a1935fd8bbdb86afa', class: "mg-c-progress" }, h("div", { key: '57cc19d07c0f006f8ecf3a1f86ec12e37ffd8d6b', class: { 'mg-c-progress__bar': true, 'mg-c-progress__bar--active': this.value > this.min } }, h("div", { key: 'b4c49d94d9cfe2e1a6d8013aa4a39cde51b36d04', class: "mg-c-progress__fill", style: {
77
77
  width: `${Math.round(((this.value - this.min) / (this.max - this.min)) * 100)}%`,
78
78
  } })))));
79
79
  }
@@ -4,6 +4,7 @@
4
4
  },
5
5
  "nbCharLeft": "{counter} characters left.",
6
6
  "input": {
7
+ "showMore": "Show more",
7
8
  "select": {
8
9
  "placeholder": "Select a value"
9
10
  },
@@ -13,23 +14,27 @@
13
14
  "editButton": "Edit",
14
15
  "selectButton": "Select values",
15
16
  "showButton": "Show",
16
- "label": "Enter a value",
17
- "result": "result",
18
- "results": "results",
19
- "searchResults": "Search result(s) list.",
20
- "noResult": "No result.",
21
17
  "sections": {
18
+ "label": "Values grouped by: \"Selected\" or \"Available\"",
19
+ "badge": { "label": "value(s)" },
20
+ "search": {
21
+ "label": "Enter a value",
22
+ "values": "{count} value(s) found",
23
+ "noValue": "No values found"
24
+ },
22
25
  "selected": {
23
26
  "title": "Selected",
24
- "titlePlural": "Selected",
25
27
  "action": "Unselect all",
26
- "tooltip": "Unselect all current search results"
28
+ "tooltip": "Unselect all current values",
29
+ "values": "{count} value(s) selected",
30
+ "noValue": "No value selected"
27
31
  },
28
32
  "notSelected": {
29
- "title": "Not selected",
30
- "titlePlural": "Not selected",
33
+ "title": "Available",
31
34
  "action": "Select all",
32
- "tooltip": "Select all current search results"
35
+ "tooltip": "Select all current values",
36
+ "values": "{count} value(s) available",
37
+ "noValue": "All values are selected"
33
38
  }
34
39
  }
35
40
  },
@@ -61,9 +66,8 @@
61
66
  "hide": "Hide password value"
62
67
  },
63
68
  "combobox": {
64
- "notFound": "No elements match your input",
65
- "notAvailable": "No elements available",
66
- "loadMore": "Load more",
69
+ "notFound": "No value matches your input",
70
+ "notAvailable": "No value available",
67
71
  "search": "Search…"
68
72
  },
69
73
  "text": {
@@ -111,8 +115,8 @@
111
115
  "confirm": "Confirm",
112
116
  "cancel": "Cancel",
113
117
  "close": "Close",
114
- "next": "next",
115
- "previous": "previous",
118
+ "next": "Next",
119
+ "previous": "Previous",
116
120
  "reset": "reset"
117
121
  },
118
122
  "menuItem": {
@@ -4,6 +4,7 @@
4
4
  },
5
5
  "nbCharLeft": "{counter} caractères disponibles.",
6
6
  "input": {
7
+ "showMore": "Afficher plus",
7
8
  "select": {
8
9
  "placeholder": "Sélectionnez une valeur"
9
10
  },
@@ -13,23 +14,27 @@
13
14
  "editButton": "Modifier",
14
15
  "selectButton": "Sélectionner des valeurs",
15
16
  "showButton": "Voir",
16
- "label": "Saisissez une valeur",
17
- "result": "résultat",
18
- "results": "résultats",
19
- "searchResults": "Liste de résultat(s) de la recherche.",
20
- "noResult": "Aucun résultat.",
21
17
  "sections": {
18
+ "label": "Valeurs regroupées par: \"Sélectionnées\" ou \"Disponibles\"",
19
+ "badge": { "label": "valeur(s)" },
20
+ "search": {
21
+ "label": "Saisissez une valeur",
22
+ "values": "{count} résultat(s)",
23
+ "noValue": "Aucune valeur n'a été trouvée."
24
+ },
22
25
  "selected": {
23
- "title": "Sélectionné",
24
- "titlePlural": "Sélectionnés",
26
+ "title": "Sélectionnées",
25
27
  "action": "Tout désélectionner",
26
- "tooltip": "Désélectionne tous les résultats de la recherche en cours"
28
+ "tooltip": "Désélectionne toutes les valeurs de la section",
29
+ "values": "{count} valeur(s) sélectionnée(s)",
30
+ "noValue": "Aucune valeur sélectionnée"
27
31
  },
28
32
  "notSelected": {
29
- "title": "Non sélectionné",
30
- "titlePlural": "Non sélectionnés",
33
+ "title": "Disponibles",
31
34
  "action": "Tout sélectionner",
32
- "tooltip": "Sélectionne tous les résultats de la recherche en cours"
35
+ "tooltip": "Sélectionne toutes les valeurs de la section",
36
+ "values": "{count} valeur(s) disponible(s)",
37
+ "noValue": "Toutes les valeurs sont sélectionnées"
33
38
  }
34
39
  }
35
40
  },
@@ -61,9 +66,8 @@
61
66
  "hide": "Masquer le mot de passe"
62
67
  },
63
68
  "combobox": {
64
- "notFound": "Aucun élément ne correspondont a votre saisie",
65
- "notAvailable": "Aucun élément disponible",
66
- "loadMore": "Afficher plus",
69
+ "notFound": "Aucune valeur ne correspondont à votre saisie",
70
+ "notAvailable": "Aucune valeur disponible",
67
71
  "search": "Recherche…"
68
72
  },
69
73
  "text": {
@@ -111,8 +115,8 @@
111
115
  "confirm": "Valider",
112
116
  "cancel": "Annuler",
113
117
  "close": "Fermer",
114
- "next": "suivant",
115
- "previous": "précédent",
118
+ "next": "Suivant",
119
+ "previous": "Précédent",
116
120
  "reset": "réinitialiser"
117
121
  },
118
122
  "menuItem": {
@@ -1 +1 @@
1
- import{p as e,g as a,b as t}from"./p-Degtjvph.js";export{s as setNonce}from"./p-Degtjvph.js";(()=>{const a=import.meta.url,t={};return""!==a&&(t.resourcesUrl=new URL(".",a).href),e(t)})().then((async e=>(await a(),t(JSON.parse('[["p-056ba467",[[1,"mg-alert",{"delay":[2],"variant":[1],"variantStyle":[1,"variant-style"],"classCollection":[32],"hasActions":[32]},null,{"delay":["watchDelay"],"variant":["watchVariant"],"variantStyle":["watchVariantStyle"],"hidden":["watchHidden"]}]]],["p-d13a6fdc",[[1,"mg-progress",{"label":[1],"ariaRole":[1,"aria-role"],"value":[2],"min":[2],"max":[2]},null,{"label":["watchLabel"],"ariaRole":["watchAriaRole"],"value":["watchValue"],"min":["watchMin"],"max":["watchMax"]}]]],["p-625c463c",[[1,"mg-input-checkbox",{"value":[1040],"type":[1025],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"inputVerticalList":[4,"input-vertical-list"],"required":[4],"readonly":[4],"displaySelectedValues":[4,"display-selected-values"],"disabled":[4],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"editButtonMessage":[1,"edit-button-message"],"showButtonMessage":[1,"show-button-message"],"selectButtonMessage":[1,"select-button-message"],"classCollection":[32],"errorMessage":[32],"checkboxItems":[32],"displaySearchInput":[32],"searchValue":[32],"searchResults":[32],"selectValuesButtonKey":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":["validateValue"],"type":["validateType"],"inputVerticalList":["watchInputVerticalList"],"readonly":["watchReadonly","handleValidityChange"],"displaySelectedValues":["watchDisplaySelectedValues"],"required":["handleValidityChange"],"disabled":["handleValidityChange","validateDisabled"],"checkboxItems":["validateCheckboxItems"],"displaySearchInput":["watchDisplaySearchInput"],"searchValue":["validateSearchValue"]}],[1,"mg-action-more",{"items":[16],"icon":[1040],"button":[16],"displayChevron":[4,"display-chevron"],"expanded":[32]},null,{"items":["validateItems"],"icon":["validateIcon"],"button":["validateButton"],"displayChevron":["validateDisplayChevron"]}],[1,"mg-panel",{"identifier":[1],"panelTitle":[1025,"panel-title"],"titlePattern":[1,"title-pattern"],"titlePatternErrorMessage":[1,"title-pattern-error-message"],"titleEditable":[1028,"title-editable"],"titlePosition":[1,"title-position"],"expanded":[1028],"expandToggleDisplay":[1,"expand-toggle-display"],"expandToggleDisabled":[4,"expand-toggle-disabled"],"shadow":[4],"classCollection":[32],"isEditing":[32],"updatedPanelTitle":[32]},null,{"identifier":["watchIdentifier"],"panelTitle":["validatePanelTitle"],"titlePattern":["validateTitlePattern"],"titlePatternErrorMessage":["validateTitlePattern"],"titlePosition":["validateTitlePosition"],"expanded":["handleExpanded"],"expandToggleDisplay":["validateExpandToggleDisplay"]}],[1,"mg-input-password",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"maxlength":[2],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"displayPassword":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":["handleValue"],"readonly":["watchReadonly","handleValidityChange"],"required":["handleValidityChange"],"disabled":["handleValidityChange","watchDisabled"],"mgWidth":["watchMgWidth"]}],[1,"mg-input-textarea",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"maxlength":[2],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"pattern":[1],"patternErrorMessage":[1,"pattern-error-message"],"rows":[2],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"characterLeftHide":[4,"character-left-hide"],"helpText":[1,"help-text"],"resizable":[1],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":["handleValue"],"readonly":["watchReadonly","handleValidityChange"],"required":["handleValidityChange"],"disabled":["handleValidityChange","validateDisabled"],"mgWidth":["watchMgWidth"],"pattern":["validatePattern"],"patternErrorMessage":["validatePattern"],"characterLeftHide":["validatecharacterLeftHide"]}],[1,"mg-input-date",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"required":[4],"readonly":[4],"min":[1],"max":[1],"disabled":[4],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":["validateValue"],"readonly":["watchReadonly","handleValidityChange"],"min":["validateMinMax","handleValidityChange"],"max":["validateMinMax","handleValidityChange"],"required":["handleValidityChange"],"disabled":["handleValidityChange","watchDisabled"]}],[1,"mg-input-numeric",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"required":[4],"readonly":[4],"max":[2],"min":[2],"disabled":[4],"mgWidth":[8,"mg-width"],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"type":[1],"format":[1],"currency":[1],"unit":[1],"unitDisplay":[1,"unit-display"],"integerLength":[2,"integer-length"],"decimalLength":[2,"decimal-length"],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"hasFocus":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":["validateValue"],"readonly":["watchReadonly","handleValidityChange"],"required":["handleValidityChange"],"disabled":["handleValidityChange","watchDisabled"],"min":["handleValidityChange"],"max":["handleValidityChange"],"mgWidth":["watchMgWidth"],"type":["validateType"],"format":["watchFormat"],"integerLength":["validateIntegerLength"],"decimalLength":["validateDecimalLength"]}],[1,"mg-input-radio",{"value":[1032],"items":[16],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"inputVerticalList":[4,"input-vertical-list"],"required":[4],"readonly":[4],"disabled":[4],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"options":[32],"readonlyValue":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":["watchValue"],"items":["validateItems"],"inputVerticalList":["watchInputVerticalList"],"readonly":["watchReadonly","handleValidityChange"],"required":["handleValidityChange"],"disabled":["handleValidityChange","watchDisabled"]}],[1,"mg-input-toggle",{"value":[1032],"items":[16],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"isOnOff":[4,"is-on-off"],"isIcon":[4,"is-icon"],"readonly":[4],"disabled":[4],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"classCollection":[32],"options":[32],"errorMessage":[32],"valid":[32],"checked":[32],"setFocus":[64],"setError":[64],"reset":[64]},null,{"value":["handleValue"],"items":["validateItems"],"isOnOff":["watchIsOnOff"],"isIcon":["watchIsIcon"],"readonly":["watchReadonly"],"disabled":["watchDisabled"],"checked":["handleChecked"]}],[1,"mg-modal",{"identifier":[1],"dialogRole":[1,"dialog-role"],"modalTitle":[1,"modal-title"],"closeButton":[4,"close-button"],"open":[1028],"hasActions":[32],"classCollection":[32]},null,{"identifier":["watchIdentifier"],"dialogRole":["validateDialogRole"],"modalTitle":["validateModalTitle"],"open":["watchOpen"]}],[1,"mg-tabs",{"identifier":[1],"label":[1],"size":[1],"items":[16],"activeTab":[1538,"active-tab"],"tabs":[32],"classCollection":[32]},null,{"identifier":["watchIdentifier"],"label":["validateLabel"],"size":["validateSize"],"items":["validateItems"],"activeTab":["validateActiveTab"]}],[1,"mg-details",{"toggleClosed":[1,"toggle-closed"],"toggleOpened":[1,"toggle-opened"],"hideSummary":[4,"hide-summary"],"expanded":[1028]},null,{"toggleClosed":["validateTitles"],"toggleOpened":["validateTitles"],"expanded":["handleExpanded"]}],[1,"mg-table",{"size":[1],"fullWidth":[4,"full-width"],"columns":[16],"classCollection":[32]},null,{"size":["watchSize"],"fullWidth":["watchFullWidth"],"columns":["watchColumns"]}],[1,"mg-form",{"identifier":[1],"name":[1],"readonly":[4],"requiredMessage":[1,"required-message"],"ariaRole":[1,"aria-role"],"labelOnTop":[4,"label-on-top"],"disabled":[4],"valid":[1028],"invalid":[1028],"classCollection":[32],"requiredMessageText":[32],"displayError":[64],"reset":[64]},null,{"identifier":["watchIdentifier"],"requiredMessage":["validateRequiredMessage","handleAttributeChange"],"ariaRole":["validateAriaRole"],"labelOnTop":["handlelabelOnTop"],"readonly":["handleAttributeChange"],"disabled":["handleAttributeChange"]}],[1,"mg-illustrated-message",{"size":[1],"direction":[1],"classCollection":[32]},null,{"size":["watchSize"],"direction":["watchDirection"]}],[1,"mg-skip-links",{"links":[16]},null,{"links":["validateLinks"]}],[1,"mg-tag",{"variant":[1],"outline":[4],"soft":[4],"classCollection":[32]},null,{"variant":["validateVariant"],"outline":["validateOutline"],"soft":["validateSoft"]}],[2,"mg-input-checkbox-paginated",{"readonly":[4],"disabled":[4],"name":[1],"invalid":[4],"currentPage":[1026,"current-page"],"checkboxes":[16],"messages":[16],"expanded":[32]},null,{"checkboxes":["watchCheckboxes"]}],[1,"mg-message",{"variant":[1],"variantStyle":[1,"variant-style"],"classCollection":[32],"hasActions":[32]},null,{"variant":["watchVariant"],"variantStyle":["watchVariantStyle"]}],[1,"mg-divider",{"fullWidth":[4,"full-width"]}],[1,"mg-pagination",{"identifier":[1],"label":[1025],"hideNavigationLabels":[4,"hide-navigation-labels"],"hidePageCount":[4,"hide-page-count"],"totalPages":[2,"total-pages"],"currentPage":[1538,"current-page"],"messages":[16]},null,{"identifier":["watchIdentifier"],"totalPages":["validateTotalPages"],"currentPage":["validateCurrentPage"],"messages":["watchPaginationMessages"]}],[1,"mg-input-text",{"value":[1544],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"type":[1],"icon":[1],"placeholder":[1],"datalistoptions":[16],"maxlength":[2],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"pattern":[1],"patternErrorMessage":[1,"pattern-error-message"],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"characterLeftHide":[4,"character-left-hide"],"helpText":[1025,"help-text"],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":["handleValue"],"type":["validateType"],"icon":["validateIcon"],"datalistoptions":["validateDatalistoptions"],"readonly":["watchReadonly","handleValidityChange"],"required":["handleValidityChange"],"disabled":["handleValidityChange","watchDisabled"],"mgWidth":["watchMgWidth"],"pattern":["watchPattern"],"patternErrorMessage":["watchPattern"],"helpText":["watchHelpText"]}],[1,"mg-item-more",{"icon":[16],"slotlabel":[16],"size":[1],"parentMenu":[32]},null,{"icon":["validateIcon"],"slotlabel":["validateSlotLabel"],"size":["validateSize"]}],[1,"mg-menu",{"label":[1],"direction":[513],"itemmore":[16],"size":[1]},[[0,"item-loaded","updateItemListener"]],{"label":["validateLabel"],"direction":["validateDirection"],"itemmore":["validateItemMore"],"size":["validateSize"]}],[1,"mg-menu-item",{"identifier":[513],"href":[1],"target":[1],"status":[1537],"expanded":[1028],"size":[32],"navigationButtonClassList":[32],"direction":[32],"isItemMore":[32],"hasChildren":[32],"displayNotificationBadge":[32]},null,{"identifier":["watchIdentifier"],"target":["watchTarget"],"status":["watchStatus"],"expanded":["watchExpanded"],"size":["watchSize"],"direction":["validateDirection"],"hasChildren":["validateHasChildren"],"data-style-direction":["watchDataStyleDirection"],"data-has-focus":["watchDataHasFocus"]}],[1,"mg-input-select",{"value":[1032],"items":[16],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1025],"placeholderHide":[4,"placeholder-hide"],"placeholderDisabled":[4,"placeholder-disabled"],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[520,"mg-width"],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"options":[32],"valueExist":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":["validateValue"],"items":["validateItems"],"readonly":["watchReadonly","handleValidityChange"],"required":["handleValidityChange"],"disabled":["handleValidityChange","watchDisabled"],"mgWidth":["watchMgWidth"]}],[2,"mg-character-left",{"identifier":[1],"characters":[1],"maxlength":[2]},null,{"identifier":["watchIdentifier"],"maxlength":["validateMaxlength"]}],[1,"mg-badge",{"value":[8],"label":[1],"variant":[1],"outline":[4],"classCollection":[32]},null,{"value":["validateValue"],"label":["validateLabel"],"variant":["validateVariant"],"outline":["validateOutline"]}],[1,"mg-popover",{"identifier":[1],"placement":[1],"arrowHide":[4,"arrow-hide"],"closeButton":[4,"close-button"],"display":[1028],"disabled":[4]},null,{"identifier":["validateIdentifier"],"arrowHide":["validateArrowHide"],"closeButton":["validateCloseButton"],"display":["handleDisplay"]}],[1,"mg-popover-content",{"closeButton":[4,"close-button"],"classCollection":[32]}],[1,"mg-card",{"shadow":[4],"radiusSize":[1,"radius-size"],"classCollection":[32]},null,{"shadow":["watchShadow"],"radiusSize":["watchRadiusSize"]}],[1,"mg-input",{"identifier":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"required":[4],"errorMessage":[1,"error-message"],"helpText":[1,"help-text"],"ariaDescribedbyIDs":[1025,"aria-describedby-i-ds"],"isFieldset":[32],"isReadonly":[32],"isDisabled":[32],"isVerticalList":[32]},null,{"identifier":["watchIdentifier","watchAriaDescribedbyIDs"],"labelOnTop":["watchLabelOnTop","watchLabelConfig"],"labelHide":["watchLabelConfig"],"tooltipPosition":["watchTooltipPosition"],"errorMessage":["watchErrorMessage","watchAriaDescribedbyIDs"],"helpText":["watchHelpText","watchAriaDescribedbyIDs"],"ariaDescribedbyIDs":["watchAriaDescribedbyIDs"],"class":["watchClass","watchLabel"],"label":["watchLabel"],"required":["watchLabel"],"isReadonly":["watchLabel"],"isFieldset":["watchLabel"]}],[1,"mg-button",{"variant":[1025],"label":[1],"type":[1],"size":[1],"fullWidth":[4,"full-width"],"form":[1],"disabled":[1028],"isIcon":[4,"is-icon"],"disableOnClick":[4,"disable-on-click"],"loading":[32],"classCollection":[32]},null,{"variant":["validateVariant"],"size":["validateSize"],"fullWidth":["validateFullWidth"],"disabled":["disabledHandler"],"isIcon":["watchIsIcon"],"loading":["loadingHandler"]}],[1,"mg-tooltip",{"identifier":[1],"message":[1],"placement":[1],"display":[1028],"disabled":[4]},null,{"identifier":["watchIdentifier"],"message":["watchMessage"],"display":["watchDisplay"],"disabled":["watchDisabled"]}],[6,"mg-input-title",{"identifier":[1],"required":[4],"readonly":[4],"isLegend":[4,"is-legend"],"tagName":[32]},null,{"identifier":["validateIdentifier"],"isLegend":["validateIsLegend"]}],[1,"mg-tooltip-content",{"message":[1]}],[1,"mg-icon",{"icon":[1],"size":[1],"variant":[1],"variantStyle":[1025,"variant-style"],"spin":[4],"classCollection":[32]},null,{"icon":["validateIcon"],"size":["validateSize"],"variant":["validateVariant"],"variantStyle":["validateVariantStyle"],"spin":["handleSpin"]}]]],["p-c522f3c1",[[1,"mg-loader",{"message":[1],"messageHide":[4,"message-hide"]},null,{"message":["watchMessage"]}]]],["p-cac23bd7",[[1,"mg-input-combobox",{"value":[1537],"items":[16],"itemsLabel":[1,"items-label"],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"fetchurl":[1],"fetchoptions":[16],"fetchmappings":[16],"valid":[1028],"invalid":[1028],"isLoading":[32],"options":[32],"option":[32],"filter":[32],"classCollection":[32],"errorMessage":[32],"popoverDisplay":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":["watchValue"],"items":["watchItems"],"identifier":["watchIdentifier"],"readonly":["watchReadonly","watchValidityChange"],"required":["watchValidityChange"],"disabled":["watchValidityChange","watchDisabled"],"mgWidth":["watchMgWidth"],"fetchurl":["watchFetchUrl"],"fetchoptions":["watchFetchOptions"],"fetchmappings":["watchFetchMappings"],"options":["watchOptions"],"filter":["watchFilter"],"popoverDisplay":["watchPopoverDisplay"]}]]],["p-e75f5383",[[1,"mg-input-rich-text-editor",{"value":[1025],"identifier":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"rows":[2],"required":[4],"readonly":[4],"disabled":[4],"pattern":[1],"patternErrorMessage":[1,"pattern-error-message"],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"modules":[16],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"setFocus":[64],"getHTML":[64],"getText":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"readonly":["watchReadonly","handleValidityChange"],"disabled":["watchDisabled","handleValidityChange"],"required":["handleValidityChange"],"pattern":["validatePattern"],"patternErrorMessage":["validatePattern"]}]]]]'),e))));
1
+ import{p as e,g as a,b as t}from"./p-JHj_9FSs.js";export{s as setNonce}from"./p-JHj_9FSs.js";(()=>{const a=import.meta.url,t={};return""!==a&&(t.resourcesUrl=new URL(".",a).href),e(t)})().then((async e=>(await a(),t(JSON.parse('[["p-42a90251",[[257,"mg-alert",{"delay":[2],"variant":[1],"variantStyle":[1,"variant-style"],"classCollection":[32],"hasActions":[32]},null,{"delay":["watchDelay"],"variant":["watchVariant"],"variantStyle":["watchVariantStyle"],"hidden":["watchHidden"]}]]],["p-658f828c",[[257,"mg-progress",{"label":[1],"ariaRole":[1,"aria-role"],"value":[2],"min":[2],"max":[2]},null,{"label":["watchLabel"],"ariaRole":["watchAriaRole"],"value":["watchValue"],"min":["watchMin"],"max":["watchMax"]}]]],["p-abbd151c",[[257,"mg-input-checkbox",{"value":[1040],"type":[1025],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"inputVerticalList":[4,"input-vertical-list"],"required":[4],"readonly":[4],"displaySelectedValues":[4,"display-selected-values"],"disabled":[4],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"editButtonMessage":[1,"edit-button-message"],"showButtonMessage":[1,"show-button-message"],"selectButtonMessage":[1,"select-button-message"],"classCollection":[32],"errorMessage":[32],"checkboxItems":[32],"displaySearchInput":[32],"searchValue":[32],"searchResults":[32],"selectValuesButtonKey":[32],"activeTab":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":["validateValue"],"type":["validateType"],"inputVerticalList":["watchInputVerticalList"],"readonly":["watchReadonly","handleValidityChange"],"displaySelectedValues":["watchDisplaySelectedValues"],"required":["handleValidityChange"],"disabled":["handleValidityChange","validateDisabled"],"checkboxItems":["validateCheckboxItems"],"displaySearchInput":["watchDisplaySearchInput"],"searchValue":["validateSearchValue"]}],[257,"mg-action-more",{"items":[16],"icon":[1040],"button":[16],"displayChevron":[4,"display-chevron"],"expanded":[32]},null,{"items":["validateItems"],"icon":["validateIcon"],"button":["validateButton"],"displayChevron":["validateDisplayChevron"]}],[257,"mg-panel",{"identifier":[1],"panelTitle":[1025,"panel-title"],"titlePattern":[1,"title-pattern"],"titlePatternErrorMessage":[1,"title-pattern-error-message"],"titleEditable":[1028,"title-editable"],"titlePosition":[1,"title-position"],"expanded":[1028],"expandToggleDisplay":[1,"expand-toggle-display"],"expandToggleDisabled":[4,"expand-toggle-disabled"],"shadow":[4],"classCollection":[32],"isEditing":[32],"updatedPanelTitle":[32]},null,{"identifier":["watchIdentifier"],"panelTitle":["validatePanelTitle"],"titlePattern":["validateTitlePattern"],"titlePatternErrorMessage":["validateTitlePattern"],"titlePosition":["validateTitlePosition"],"expanded":["handleExpanded"],"expandToggleDisplay":["validateExpandToggleDisplay"]}],[257,"mg-pagination",{"identifier":[1],"label":[1025],"hideNavigationLabels":[4,"hide-navigation-labels"],"hidePageCount":[4,"hide-page-count"],"totalPages":[2,"total-pages"],"currentPage":[1538,"current-page"],"messages":[16]},null,{"identifier":["watchIdentifier"],"totalPages":["validateTotalPages"],"currentPage":["validateCurrentPage"],"messages":["watchPaginationMessages"]}],[257,"mg-input-password",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"maxlength":[2],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"displayPassword":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":["handleValue"],"readonly":["watchReadonly","handleValidityChange"],"required":["handleValidityChange"],"disabled":["handleValidityChange","watchDisabled"],"mgWidth":["watchMgWidth"]}],[257,"mg-input-textarea",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"maxlength":[2],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"pattern":[1],"patternErrorMessage":[1,"pattern-error-message"],"rows":[2],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"characterLeftHide":[4,"character-left-hide"],"helpText":[1,"help-text"],"resizable":[1],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":["handleValue"],"readonly":["watchReadonly","handleValidityChange"],"required":["handleValidityChange"],"disabled":["handleValidityChange","validateDisabled"],"mgWidth":["watchMgWidth"],"pattern":["validatePattern"],"patternErrorMessage":["validatePattern"],"characterLeftHide":["validatecharacterLeftHide"]}],[257,"mg-input-date",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"required":[4],"readonly":[4],"min":[1],"max":[1],"disabled":[4],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":["validateValue"],"readonly":["watchReadonly","handleValidityChange"],"min":["validateMinMax","handleValidityChange"],"max":["validateMinMax","handleValidityChange"],"required":["handleValidityChange"],"disabled":["handleValidityChange","watchDisabled"]}],[257,"mg-input-numeric",{"value":[1537],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"required":[4],"readonly":[4],"max":[2],"min":[2],"disabled":[4],"mgWidth":[8,"mg-width"],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"type":[1],"format":[1],"currency":[1],"unit":[1],"unitDisplay":[1,"unit-display"],"integerLength":[2,"integer-length"],"decimalLength":[2,"decimal-length"],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"hasFocus":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":["validateValue"],"readonly":["watchReadonly","handleValidityChange"],"required":["handleValidityChange"],"disabled":["handleValidityChange","watchDisabled"],"min":["handleValidityChange"],"max":["handleValidityChange"],"mgWidth":["watchMgWidth"],"type":["validateType"],"format":["watchFormat"],"integerLength":["validateIntegerLength"],"decimalLength":["validateDecimalLength"]}],[257,"mg-input-radio",{"value":[1032],"items":[16],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"inputVerticalList":[4,"input-vertical-list"],"required":[4],"readonly":[4],"disabled":[4],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"options":[32],"readonlyValue":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":["watchValue"],"items":["validateItems"],"inputVerticalList":["watchInputVerticalList"],"readonly":["watchReadonly","handleValidityChange"],"required":["handleValidityChange"],"disabled":["handleValidityChange","watchDisabled"]}],[257,"mg-input-toggle",{"value":[1032],"items":[16],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"isOnOff":[4,"is-on-off"],"isIcon":[4,"is-icon"],"readonly":[4],"disabled":[4],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"classCollection":[32],"options":[32],"errorMessage":[32],"valid":[32],"checked":[32],"setFocus":[64],"setError":[64],"reset":[64]},null,{"value":["handleValue"],"items":["validateItems"],"isOnOff":["watchIsOnOff"],"isIcon":["watchIsIcon"],"readonly":["watchReadonly"],"disabled":["watchDisabled"],"checked":["handleChecked"]}],[257,"mg-modal",{"identifier":[1],"dialogRole":[1,"dialog-role"],"modalTitle":[1,"modal-title"],"closeButton":[4,"close-button"],"open":[1028],"hasActions":[32],"classCollection":[32]},null,{"identifier":["watchIdentifier"],"dialogRole":["validateDialogRole"],"modalTitle":["validateModalTitle"],"open":["watchOpen"]}],[257,"mg-details",{"toggleClosed":[1,"toggle-closed"],"toggleOpened":[1,"toggle-opened"],"hideSummary":[4,"hide-summary"],"expanded":[1028]},null,{"toggleClosed":["validateTitles"],"toggleOpened":["validateTitles"],"expanded":["handleExpanded"]}],[1,"mg-table",{"size":[1],"fullWidth":[4,"full-width"],"columns":[16],"classCollection":[32]},null,{"size":["watchSize"],"fullWidth":["watchFullWidth"],"columns":["watchColumns"]}],[257,"mg-form",{"identifier":[1],"name":[1],"readonly":[4],"requiredMessage":[1,"required-message"],"ariaRole":[1,"aria-role"],"labelOnTop":[4,"label-on-top"],"disabled":[4],"valid":[1028],"invalid":[1028],"classCollection":[32],"requiredMessageText":[32],"displayError":[64],"reset":[64]},null,{"identifier":["watchIdentifier"],"requiredMessage":["validateRequiredMessage","handleAttributeChange"],"ariaRole":["validateAriaRole"],"labelOnTop":["handlelabelOnTop"],"readonly":["handleAttributeChange"],"disabled":["handleAttributeChange"]}],[257,"mg-illustrated-message",{"size":[1],"direction":[1],"classCollection":[32]},null,{"size":["watchSize"],"direction":["watchDirection"]}],[257,"mg-skip-links",{"links":[16]},null,{"links":["validateLinks"]}],[257,"mg-tag",{"variant":[1],"outline":[4],"soft":[4],"classCollection":[32]},null,{"variant":["validateVariant"],"outline":["validateOutline"],"soft":["validateSoft"]}],[257,"mg-input-select",{"value":[1032],"items":[16],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1025],"placeholderHide":[4,"placeholder-hide"],"placeholderDisabled":[4,"placeholder-disabled"],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[520,"mg-width"],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"options":[32],"valueExist":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":["validateValue"],"items":["validateItems"],"readonly":["watchReadonly","handleValidityChange"],"required":["handleValidityChange"],"disabled":["handleValidityChange","watchDisabled"],"mgWidth":["watchMgWidth"]}],[262,"mg-input-checkbox-paginated",{"readonly":[4],"disabled":[4],"name":[1],"invalid":[4],"checkboxes":[16],"messages":[16],"limit":[32],"resetLimit":[64]},null,{"checkboxes":["watchCheckboxes"],"limit":["watchLimit"]}],[257,"mg-message",{"variant":[1],"variantStyle":[1,"variant-style"],"classCollection":[32],"hasActions":[32]},null,{"variant":["watchVariant"],"variantStyle":["watchVariantStyle"]}],[257,"mg-tabs",{"identifier":[1],"label":[1],"size":[1],"items":[16],"activeTab":[1538,"active-tab"],"tabs":[32],"classCollection":[32]},null,{"identifier":["watchIdentifier"],"label":["validateLabel"],"size":["validateSize"],"items":["validateItems"],"activeTab":["validateActiveTab"]}],[257,"mg-divider",{"fullWidth":[4,"full-width"]}],[257,"mg-input-text",{"value":[1544],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"type":[1],"icon":[1],"placeholder":[1],"datalistoptions":[16],"maxlength":[2],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"pattern":[1],"patternErrorMessage":[1,"pattern-error-message"],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"characterLeftHide":[4,"character-left-hide"],"helpText":[1025,"help-text"],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":["handleValue"],"type":["validateType"],"icon":["validateIcon"],"datalistoptions":["validateDatalistoptions"],"readonly":["watchReadonly","handleValidityChange"],"required":["handleValidityChange"],"disabled":["handleValidityChange","watchDisabled"],"mgWidth":["watchMgWidth"],"pattern":["watchPattern"],"patternErrorMessage":["watchPattern"],"helpText":["watchHelpText"]}],[257,"mg-item-more",{"icon":[16],"slotlabel":[16],"size":[1],"parentMenu":[32]},null,{"icon":["validateIcon"],"slotlabel":["validateSlotLabel"],"size":["validateSize"]}],[257,"mg-menu",{"label":[1],"direction":[513],"itemmore":[16],"size":[1]},[[0,"item-loaded","updateItemListener"]],{"label":["validateLabel"],"direction":["validateDirection"],"itemmore":["validateItemMore"],"size":["validateSize"]}],[257,"mg-menu-item",{"identifier":[513],"href":[1],"target":[1],"status":[1537],"expanded":[1028],"size":[32],"navigationButtonClassList":[32],"direction":[32],"isItemMore":[32],"hasChildren":[32],"displayNotificationBadge":[32]},null,{"identifier":["watchIdentifier"],"target":["watchTarget"],"status":["watchStatus"],"expanded":["watchExpanded"],"size":["watchSize"],"direction":["validateDirection"],"hasChildren":["validateHasChildren"],"data-style-direction":["watchDataStyleDirection"],"data-has-focus":["watchDataHasFocus"]}],[258,"mg-character-left",{"identifier":[1],"characters":[1],"maxlength":[2]},null,{"identifier":["watchIdentifier"],"maxlength":["validateMaxlength"]}],[257,"mg-popover",{"identifier":[1],"placement":[1],"arrowHide":[4,"arrow-hide"],"closeButton":[4,"close-button"],"display":[1028],"disabled":[4]},null,{"identifier":["validateIdentifier"],"arrowHide":["validateArrowHide"],"closeButton":["validateCloseButton"],"display":["handleDisplay"]}],[257,"mg-badge",{"value":[8],"label":[1],"variant":[1],"outline":[4],"classCollection":[32]},null,{"value":["validateValue"],"label":["validateLabel"],"variant":["validateVariant"],"outline":["validateOutline"]}],[257,"mg-popover-content",{"closeButton":[4,"close-button"],"classCollection":[32]}],[257,"mg-card",{"shadow":[4],"radiusSize":[1,"radius-size"],"classCollection":[32]},null,{"shadow":["watchShadow"],"radiusSize":["watchRadiusSize"]}],[257,"mg-input",{"identifier":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"required":[4],"errorMessage":[1,"error-message"],"helpText":[1,"help-text"],"ariaDescribedbyIDs":[1025,"aria-describedby-i-ds"],"isFieldset":[32],"isReadonly":[32],"isDisabled":[32],"isVerticalList":[32]},null,{"identifier":["watchIdentifier","watchAriaDescribedbyIDs"],"labelOnTop":["watchLabelOnTop","watchLabelConfig"],"labelHide":["watchLabelConfig"],"tooltipPosition":["watchTooltipPosition"],"errorMessage":["watchErrorMessage","watchAriaDescribedbyIDs"],"helpText":["watchHelpText","watchAriaDescribedbyIDs"],"ariaDescribedbyIDs":["watchAriaDescribedbyIDs"],"class":["watchClass","watchLabel"],"label":["watchLabel"],"required":["watchLabel"],"isReadonly":["watchLabel"],"isFieldset":["watchLabel"]}],[257,"mg-button",{"variant":[1025],"label":[1],"type":[1],"size":[1],"fullWidth":[4,"full-width"],"form":[1],"disabled":[1028],"isIcon":[4,"is-icon"],"disableOnClick":[4,"disable-on-click"],"loading":[32],"classCollection":[32]},null,{"variant":["validateVariant"],"size":["validateSize"],"fullWidth":["validateFullWidth"],"disabled":["disabledHandler"],"isIcon":["watchIsIcon"],"loading":["loadingHandler"]}],[257,"mg-tooltip",{"identifier":[1],"message":[1],"placement":[1],"display":[1028],"disabled":[4]},null,{"identifier":["watchIdentifier"],"message":["watchMessage"],"display":["watchDisplay"],"disabled":["watchDisabled"]}],[262,"mg-input-title",{"identifier":[1],"required":[4],"readonly":[4],"isLegend":[4,"is-legend"],"tagName":[32]},null,{"identifier":["validateIdentifier"],"isLegend":["validateIsLegend"]}],[257,"mg-tooltip-content",{"message":[1]}],[1,"mg-icon",{"icon":[1],"size":[1],"variant":[1],"variantStyle":[1025,"variant-style"],"spin":[4],"classCollection":[32]},null,{"icon":["validateIcon"],"size":["validateSize"],"variant":["validateVariant"],"variantStyle":["validateVariantStyle"],"spin":["handleSpin"]}]]],["p-82455ac7",[[257,"mg-loader",{"message":[1],"messageHide":[4,"message-hide"]},null,{"message":["watchMessage"]}]]],["p-54156253",[[257,"mg-input-combobox",{"value":[1537],"items":[16],"itemsLabel":[1,"items-label"],"identifier":[1],"name":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"required":[4],"readonly":[4],"disabled":[4],"mgWidth":[8,"mg-width"],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"fetchurl":[1],"fetchoptions":[16],"fetchmappings":[16],"valid":[1028],"invalid":[1028],"isLoading":[32],"options":[32],"option":[32],"filter":[32],"classCollection":[32],"errorMessage":[32],"popoverDisplay":[32],"setFocus":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"value":["watchValue"],"items":["watchItems"],"identifier":["watchIdentifier"],"readonly":["watchReadonly","watchValidityChange"],"required":["watchValidityChange"],"disabled":["watchValidityChange","watchDisabled"],"mgWidth":["watchMgWidth"],"fetchurl":["watchFetchUrl"],"fetchoptions":["watchFetchOptions"],"fetchmappings":["watchFetchMappings"],"options":["watchOptions"],"filter":["watchFilter"],"popoverDisplay":["watchPopoverDisplay"]}]]],["p-c85b5d10",[[257,"mg-input-rich-text-editor",{"value":[1025],"identifier":[1],"label":[1],"labelOnTop":[4,"label-on-top"],"labelHide":[4,"label-hide"],"placeholder":[1],"rows":[2],"required":[4],"readonly":[4],"disabled":[4],"pattern":[1],"patternErrorMessage":[1,"pattern-error-message"],"tooltip":[1],"tooltipPosition":[1,"tooltip-position"],"helpText":[1,"help-text"],"modules":[16],"valid":[1028],"invalid":[1028],"classCollection":[32],"errorMessage":[32],"setFocus":[64],"getHTML":[64],"getText":[64],"displayError":[64],"setError":[64],"reset":[64]},null,{"readonly":["watchReadonly","handleValidityChange"],"disabled":["watchDisabled","handleValidityChange"],"required":["handleValidityChange"],"pattern":["validatePattern"],"patternErrorMessage":["validatePattern"]}]]]]'),e))));
@@ -1 +1 @@
1
- import{r as t,c as s,f as i,h as e,a}from"./p-Degtjvph.js";import{C as h,t as o}from"./p-Dr7GYvIz.js";import{i as r}from"./p-Bv7NHR-W.js";const n=["info","warning","success","danger"],c=["bar-left","background"],l=class{constructor(i){t(this,i),this.componentShow=s(this,"component-show",3),this.componentHide=s(this,"component-hide",3),this.componentClose=s(this,"component-close",3),this.classCloseButton="mg-c-alert--close-button",this.storedTimer=null,this.isFocused=!1,this.isHovered=!1,this.variant="info",this.variantStyle="bar-left",this.classCollection=new h(["mg-c-alert"]),this.hasActions=!1,this.setTimer=()=>{this.storedTimer=setTimeout((()=>this.element.hidden=!0),1e3*this.delay)},this.clearTimer=()=>{clearTimeout(this.storedTimer)},this.timerEvents=t=>{this.clearTimer();const s="mouseenter"===t.type;this[s?"isHovered":"isFocused"]=!0,this.element.addEventListener(s?"mouseleave":"focusout",(t=>{this["mouseleave"===t.type?"isHovered":"isFocused"]=!1,this.isFocused||this.isHovered||this.setTimer()}),{once:!0})},this.handleClose=()=>{this.element.hidden=!0,this.componentClose.emit()}}watchDelay(t){if(void 0!==t&&t<2)throw new Error(`<mg-alert> prop "delay" must be greater than 2 seconds. Passed value: ${o(t)}.`)}watchVariant(t){if(t&&!n.includes(t))throw new Error(`<mg-alert> prop "variant" must be one of: ${n.join(", ")}. Passed value: ${o(t)}.`)}watchVariantStyle(t){if(t&&!c.includes(t))throw new Error(`<mg-alert> prop "variantStyle" must be one of: ${c.join(", ")}. Passed value: ${o(t)}.`)}watchHidden(t){"string"==typeof t&&""===t&&(t=!0),t?(this.componentHide.emit(),["focusin","mouseenter"].forEach((t=>{this.element.removeEventListener(t,this.timerEvents)})),this.clearTimer()):(this.componentShow.emit(),this.delay>1&&(this.setTimer(),["focusin","mouseenter"].forEach((t=>{this.element.addEventListener(t,this.timerEvents)})))),i(this)}componentWillLoad(){this.messages=r(this.element).messages,this.watchVariant(this.variant),this.watchVariantStyle(this.variantStyle),this.watchDelay(this.delay),this.watchHidden(this.element.hidden),this.hasActions=null!==this.element.querySelector('[slot="actions"]'),this.hasActions||this.classCollection.add(this.classCloseButton)}render(){return e("mg-message",{key:"397a9a25b825bc75479d4562bff61dedc8ddc891",class:this.classCollection.join(),role:["info","success"].includes(this.variant)?"status":"alert",variant:this.variant,variantStyle:this.variantStyle},e("slot",{key:"793fb1e88b5d68bd41598f020748ea2fb02d7f3b"}),this.hasActions?e("span",{slot:"actions"},e("slot",{name:"actions"})):e("span",{class:"mg-c-alert__close-button"},e("mg-button",{"is-icon":!0,variant:"flat",label:this.messages.alert.closeButton,onClick:this.handleClose},e("mg-icon",{icon:"cross"}))))}get element(){return a(this)}static get watchers(){return{delay:["watchDelay"],variant:["watchVariant"],variantStyle:["watchVariantStyle"],hidden:["watchHidden"]}}};l.style=".mg-c-alert__close-button{position:absolute;top:0;right:0}.mg-c-alert.mg-c-alert--close-button{--mg-c-card-spacing:0 var(--mg-b-size-min-height) 0 0}";export{l as mg_alert}
1
+ import{r as t,c as s,f as i,h as e,a}from"./p-JHj_9FSs.js";import{C as h,t as o}from"./p-WtiuOkLj.js";import{i as r}from"./p-Bab8_u8S.js";const n=["info","warning","success","danger"],c=["bar-left","background"],l=class{constructor(i){t(this,i),this.componentShow=s(this,"component-show",3),this.componentHide=s(this,"component-hide",3),this.componentClose=s(this,"component-close",3),this.classCloseButton="mg-c-alert--close-button",this.storedTimer=null,this.isFocused=!1,this.isHovered=!1,this.variant="info",this.variantStyle="bar-left",this.classCollection=new h(["mg-c-alert"]),this.hasActions=!1,this.setTimer=()=>{this.storedTimer=setTimeout((()=>this.element.hidden=!0),1e3*this.delay)},this.clearTimer=()=>{clearTimeout(this.storedTimer)},this.timerEvents=t=>{this.clearTimer();const s="mouseenter"===t.type;this[s?"isHovered":"isFocused"]=!0,this.element.addEventListener(s?"mouseleave":"focusout",(t=>{this["mouseleave"===t.type?"isHovered":"isFocused"]=!1,this.isFocused||this.isHovered||this.setTimer()}),{once:!0})},this.handleClose=()=>{this.element.hidden=!0,this.componentClose.emit()}}watchDelay(t){if(void 0!==t&&t<2)throw new Error(`<mg-alert> prop "delay" must be greater than 2 seconds. Passed value: ${o(t)}.`)}watchVariant(t){if(t&&!n.includes(t))throw new Error(`<mg-alert> prop "variant" must be one of: ${n.join(", ")}. Passed value: ${o(t)}.`)}watchVariantStyle(t){if(t&&!c.includes(t))throw new Error(`<mg-alert> prop "variantStyle" must be one of: ${c.join(", ")}. Passed value: ${o(t)}.`)}watchHidden(t){"string"==typeof t&&""===t&&(t=!0),t?(this.componentHide.emit(),["focusin","mouseenter"].forEach((t=>{this.element.removeEventListener(t,this.timerEvents)})),this.clearTimer()):(this.componentShow.emit(),this.delay>1&&(this.setTimer(),["focusin","mouseenter"].forEach((t=>{this.element.addEventListener(t,this.timerEvents)})))),i(this)}componentWillLoad(){this.messages=r(this.element).messages,this.watchVariant(this.variant),this.watchVariantStyle(this.variantStyle),this.watchDelay(this.delay),this.watchHidden(this.element.hidden),this.hasActions=null!==this.element.querySelector('[slot="actions"]'),this.hasActions||this.classCollection.add(this.classCloseButton)}render(){return e("mg-message",{key:"626afcfe4c86dacff9860d2515827ae5aa6b7234",class:this.classCollection.join(),role:["info","success"].includes(this.variant)?"status":"alert",variant:this.variant,variantStyle:this.variantStyle},e("slot",{key:"bc7d72c21dcf36c9012e144253ce2b3c6ebc14ed"}),this.hasActions?e("span",{slot:"actions"},e("slot",{name:"actions"})):e("span",{class:"mg-c-alert__close-button"},e("mg-button",{"is-icon":!0,variant:"flat",label:this.messages.alert.closeButton,onClick:this.handleClose},e("mg-icon",{icon:"cross"}))))}get element(){return a(this)}static get watchers(){return{delay:["watchDelay"],variant:["watchVariant"],variantStyle:["watchVariantStyle"],hidden:["watchHidden"]}}};l.style=".mg-c-alert__close-button{position:absolute;top:0;right:0}.mg-c-alert.mg-c-alert--close-button{--mg-c-card-spacing:0 var(--mg-b-size-min-height) 0 0}";export{l as mg_alert}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as s,a as e}from"./p-JHj_9FSs.js";import{P as o,C as n,f as a,a as h,n as r,g as c,t as p,b as m,i as u,c as l,d as g}from"./p-WtiuOkLj.js";import{c as d,a as b,w as v}from"./p-CNgv8hc5.js";import{i as f}from"./p-Bab8_u8S.js";import{K as w}from"./p-yMGqY8YG.js";const _=t=>t&&"object"==typeof t&&"string"==typeof t.title&&void 0!==t.value,x=class{constructor(s){t(this,s),this.valueChange=i(this,"value-change",7),this.filterChange=i(this,"filter-change",7),this.showMore=i(this,"load-more",7),this.inputValid=i(this,"input-valid",7),this.fetchError=i(this,"fetch-error",7),this.classFocus="mg-u-is-focused",this.hasDisplayedError=!1,this.name=this.identifier,this.labelOnTop=!1,this.labelHide=!1,this.required=!1,this.readonly=!1,this.disabled=!1,this.mgWidth="full",this.tooltipPosition="input",this.options=new o([]),this.filter="",this.classCollection=new n(["mg-c-input--combobox","mg-c-input--has-icon","mg-c-input--input-append"]),this.popoverDisplay=!1,this.handleOptionClick=t=>{this.setValue(this.options.items.find((i=>a(i.value)===t.target.id))),this.popoverDisplay=!1},this.handleResetButton=t=>{t.stopPropagation(),this.reset().then((()=>{this.input.focus()}))},this.handlePopoverDisplay=t=>{this.popoverDisplay=t.detail},this.handleFilterInput=()=>{this.checkValidity(),this.hasDisplayedError&&this.setErrorMessage(),this.popoverDisplay||(this.popoverDisplay=!0),this.debounce||(this.debounce=!0,setTimeout((()=>{this.filter=this.input.value,this.debounce=!1}),250))},this.handleFilterBlur=()=>{this.popoverDisplay||(this.handlerInProgress="blur",this.displayError().finally((()=>{this.handlerInProgress=void 0})))},this.handleFilterFocus=()=>{this.isLoading||(this.option=null)},this.handleLoadMoreButton=()=>{this.loadingWrapper({name:"load-more",cursor:h.NEXT}).then((()=>{this.input.focus()}))},this.handleFilterKeydown=t=>{var i;if(this.disabled||t.ctrlKey||t.shiftKey)return;let s=!1;switch(t.key){case w.TAB:case w.ENTER:s=t.key===w.ENTER;const e=null!==(i=this.option)&&void 0!==i?i:this.options.items.find(this.isCurrentOption);this.popoverDisplay&&this.setValue(e),this.popoverDisplay=!1;break;case w.DOWN:case w.ARROWDOWN:case w.UP:case w.ARROWUP:if(s=!0,this.isLoading||!(this.page.total>0)){this.popoverDisplay=!0;break}if(Boolean(t.altKey)&&[w.DOWN,w.ARROWDOWN].includes(t.key)){this.popoverDisplay=!0;break}let o;const n=this.popoverDisplay&&_(this.option);[w.DOWN,w.ARROWDOWN].includes(t.key)?o=n?h.NEXT:h.FIRST:[w.UP,w.ARROWUP].includes(t.key)&&(o=n?h.PREVIOUS:h.LAST),this.loadingWrapper({name:"scroll",cursor:o}),this.popoverDisplay=!0;break;case w.LEFT:case w.ARROWLEFT:case w.HOME:case w.RIGHT:case w.ARROWRIGHT:case w.END:if(!_(this.option))break;let a;s=!0,this.option=null,w.HOME===t.key?a=0:w.END===t.key&&(a=this.filter.length),"number"==typeof a&&this.input.setSelectionRange(a,a);break;case w.ESC:case w.ESCAPE:s=!0,this.popoverDisplay?this.popoverDisplay=!1:(this.setValue(null),this.filter="",this.option=null);break;default:this.option=null}s&&(t.stopPropagation(),t.preventDefault())},this.scrollToIndex=t=>{requestAnimationFrame((()=>{var i;this.popoverDisplay&&(null===(i=this.element.shadowRoot.querySelector(`li:nth-of-type(${(t||0)+this.page.baseIndex})`))||void 0===i||i.scrollIntoView({block:"nearest"}))}))},this.isCurrentOption=t=>(_(this.value)?this.value.value:this.value)===t.value,this.getValueTitle=()=>this.value&&_(this.value)?this.value.title:"string"==typeof this.value?this.value:"",this.checkValidity=()=>{this.setValidity(this.readonly||this.disabled||this.input.checkValidity())},this.setErrorMessage=t=>{this.errorMessage=void 0,this.valid||void 0===t?!this.valid&&this.input.validity.valueMissing&&(this.errorMessage=this.messages.errors.required):this.errorMessage=t},this.optionsFilter=t=>""===this.filter||t.title.toLocaleLowerCase().includes(this.filter.toLocaleLowerCase()),this.loadingWrapper=t=>{let i,s;if(Boolean(this.loadingAction)||(this.loadingAction=t.name),Boolean(this.option)&&"load-more"!==this.loadingAction?s=this.page.items.findIndex((t=>t.value.toString()===this.option.value.toString())):"load-more"===this.loadingAction&&(s=this.page.items.length-this.page.baseIndex),"load-more"===t.name)this.isLoading=!0,i=this.goToNextPage;else{if(t.cursor===h.NEXT&&this.page.items.length<=this.page.total&&s+this.page.baseIndex===this.page.items.length&&s+this.page.baseIndex<this.page.total)return void this.loadMoreElement.click();i="scroll"===t.name?r:this.updatePage}return i().then((()=>{const i=this.options.items.filter(this.optionsFilter);"load-data"!==t.name&&(s=this.page.getIndexFromCursor(t.cursor,"load-more"===this.loadingAction&&s>=0?i[s]:this.option)),this.option=i[s],this.scrollToIndex(s)})).finally((()=>{requestAnimationFrame((()=>{this.isLoading=!1,this.loadingAction=void 0}))}))},this.goToNextPage=()=>(this.showMore.emit(),Boolean(this.fetchurl)?this.getOptions("string"==typeof this.page.next?this.page.next:void 0).then((t=>{if(!Boolean(t))return;const i=[...this.page.items,...t.items];this.options=new o(i,{total:t.total,next:t.next,top:i.length})})):r((()=>{if("function"==typeof this.page.next){const t=this.page.next();this.page=new g(Object.assign(Object.assign({},t),{items:[...this.page.items,...t.items]}))}}))),this.updatePage=async()=>{if(Boolean(this.fetchurl))return this.getOptions().then((t=>{Boolean(t)&&(this.options=new o(t.items,{total:t.total,next:t.next,top:t.top}))}));this.page=this.options.getPage(0,this.optionsFilter)},this.getOptions=async(t=this.fetchurl)=>{const i=("string"==typeof t?t:t.toString()).replaceAll(this.fetchmappings.request.filter,encodeURIComponent(this.filter));try{const t=await fetch(i,this.fetchoptions);if(!t.ok)return void this.fetchError.emit(new Error(`${t.status} - ${t.statusText}`));const s=await t.json(),e=c(s,this.fetchmappings.response.items).map((t=>({title:c(t,this.fetchmappings.response.itemTitle),value:void 0!==this.fetchmappings.response.itemValue?c(t,this.fetchmappings.response.itemValue):t}))),o=Number(c(s,this.fetchmappings.response.total,0));let n=c(s,this.fetchmappings.response.next);if(URL.canParse(i)&&Boolean(n)&&!URL.canParse(n)){const t=new URL(i);t.pathname.endsWith(n.split("?")[0])&&(n=new URL(n,t).toString())}return{items:e,total:o,next:n,top:e.length}}catch(t){this.fetchError.emit(t)}}}watchValue(t){this.filter=this.getValueTitle(),this.valueChange.emit(t)}watchItems(t){if(!Boolean(this.fetchurl)||Boolean(t)){if(Boolean(this.fetchurl)&&Boolean(t))throw new Error(`<mg-input-combobox> prop "items" values cannot be use with "fetchurl" prop defined. Passed value: ${p(t)}.`);if(Array.isArray(t)&&0===t.length)this.options=new o([]);else if(m(t))this.options=new o(t.map((t=>({title:t,value:t}))),{total:t.length});else{if(i=t,!Array.isArray(i)||!i.every(_))throw new Error(`<mg-input-combobox> prop "items" values must be the same type, string or Option. Passed value: ${p(t)}.`);this.options=new o(t,{total:t.length})}var i}}watchIdentifier(t){Boolean(t)&&(this.popoverId=`${t}-popover`,this.element.dataset.mgPopoverGuard=this.popoverId)}watchReadonly(t){t?this.classCollection.add(d):this.classCollection.delete(d)}watchValidityChange(t,i,s){void 0!==this.input&&(this.input[s]=t,this.checkValidity(),this.hasDisplayedError&&(this.setErrorMessage(),this.hasDisplayedError=!1))}watchDisabled(t){t?this.classCollection.add(b):this.classCollection.delete(b)}watchMgWidth(t){v.forEach((t=>{this.classCollection.delete(`mg-c-input--width-${t}`)})),void 0!==t&&this.classCollection.add(`mg-c-input--width-${this.mgWidth}`),this.classCollection=new n(this.classCollection.classes)}watchFetchUrl(t){Boolean(t)&&this.loadingWrapper({name:"load-data"})}watchFetchOptions(t){if(this.fetchurl&&t&&!u(t))throw new Error(`<mg-input-combobox> prop "fetchoptions" value must be a valid RequestInit. Passed value: ${p(t)}.`);new Request(this.fetchurl,t)}watchFetchMappings(t){if(Boolean(this.fetchurl)&&!Boolean(t))throw new Error('<mg-input-combobox> prop "fetchmappings" is required with "fetchurl" prop.');if(Boolean(t)&&!(t=>{const i=u(t)&&Object.hasOwn(t,"request")&&Object.hasOwn(t,"response");if(i){const{request:i,response:s}=t;return![i,s].some((t=>!u(t)))&&"string"==typeof i.filter&&"object"==typeof s&&"string"==typeof s.total&&"string"==typeof s.items&&"string"==typeof s.next&&"string"==typeof s.itemTitle&&("string"==typeof s.itemValue||void 0===s.itemValue)}return i})(t))throw new Error(`<mg-input-combobox> prop "fetchmappings" value must be { request: RequestMappingType, response: ResponseMappingType }. Passed value: ${p(t)}.`)}watchOptions(t){this.page=t.getPage(0,Boolean(this.filter)?this.optionsFilter:void 0)}watchFilter(t){this.loadingWrapper({name:"load-data"}),this.filterChange.emit(t)}watchPopoverDisplay(t){t?(this.classCollection.add(this.classFocus),this.input.focus()):(this.option=null,this.filter=this.getValueTitle(),this.classCollection.delete(this.classFocus),this.handlerInProgress="blur",this.displayError().finally((()=>{this.handlerInProgress=void 0})))}async setFocus(){var t;null===(t=this.input)||void 0===t||t.focus()}displayError(){return new Promise((t=>{requestAnimationFrame((()=>{this.checkValidity(),this.setErrorMessage(),this.hasDisplayedError=this.invalid,t()}))}))}async setError(t,i){if("boolean"!=typeof t)throw new Error('<mg-input-combobox> method "setError()" param "valid" must be a boolean.');if(!l(i))throw new Error('<mg-input-combobox> method "setError()" param "errorMessage" must be a string.');this.setValidity(t),this.setErrorMessage(t?void 0:i),this.hasDisplayedError=this.invalid}async reset(){if(!this.readonly)return this.setValue(null),this.option=null,this.filter="",new Promise((t=>{requestAnimationFrame((()=>{this.checkValidity(),this.errorMessage=void 0,this.hasDisplayedError=!1,t()}))}))}setValue(t){this.value=_(t)?m(this.items||this.options.items)?t.title:Object.assign({},t):""}setValidity(t){const i=this.valid;this.valid=t,this.invalid=!this.valid,(void 0===this.handlerInProgress||"blur"===this.handlerInProgress&&this.valid!==i)&&this.inputValid.emit(this.valid)}componentWillLoad(){return this.messages=f(this.element).messages,this.watchIdentifier(this.identifier),this.watchItems(this.items),Boolean(this.fetchurl)&&(this.watchFetchOptions(this.fetchoptions),this.watchFetchMappings(this.fetchmappings),this.loadingWrapper({name:"load-data"})),this.watchValue(this.value),this.watchOptions(this.options),this.watchMgWidth(this.mgWidth),this.watchReadonly(this.readonly),this.watchDisabled(this.disabled),setTimeout((()=>{this.checkValidity()}),0)}render(){var t,i,e,o,n,h;const r=`${this.identifier}-list`,c=this.getValueTitle(),p=this.value&&!this.disabled;let m,u;return(null===(t=this.page)||void 0===t?void 0:t.items.length)>0?m="list":0===(null===(i=this.page)||void 0===i?void 0:i.items.length)&&Boolean(this.filter)?m="notfound":0===(null===(e=this.page)||void 0===e?void 0:e.items.length)&&(m="notavailable"),u=Boolean(null===(o=this.option)||void 0===o?void 0:o.value)?this.option.value:"string"==typeof this.value?this.value:null===(n=this.value)||void 0===n?void 0:n.value,s("mg-input",{key:"79e5263cd3b1c0fa0b3f386a547f2bdd48a33b28",label:this.label,identifier:this.identifier,class:this.classCollection.classes.join(" "),ariaDescribedbyIDs:m&&"list"!==m?m:void 0,labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:this.required,tooltip:this.tooltip,tooltipPosition:this.readonly&&void 0===this.value?"label":this.tooltipPosition,helpText:this.helpText,errorMessage:this.errorMessage},this.readonly?c&&s("b",{class:"mg-c-input__readonly-value"},c):s("mg-popover",{identifier:this.popoverId,placement:"bottom-start",display:this.popoverDisplay,"arrow-hide":!0,style:{"--mg-c-input-list-width":Boolean(null===(h=this.input)||void 0===h?void 0:h.offsetWidth)?`${this.input.offsetWidth}px`:void 0},"data-fallback-placement":"bottom-end","onDisplay-change":this.handlePopoverDisplay},s("div",{class:"mg-c-input__input-group-container"},s("mg-icon",{icon:"magnifying-glass"}),s("input",{type:"text",role:"combobox",class:"mg-c-input__box mg-c-input__box--width",value:this.filter,id:this.identifier,name:this.name,placeholder:this.placeholder,title:this.placeholder,disabled:this.disabled,required:this.required,autocomplete:"off","aria-autocomplete":"list","aria-expanded":this.popoverDisplay.toString(),"aria-controls":r,"aria-invalid":(!0===this.invalid).toString(),"aria-activedescendant":a(u),onInput:this.handleFilterInput,onBlur:this.handleFilterBlur,onFocus:this.handleFilterFocus,onKeyDown:this.handleFilterKeydown,ref:t=>{null!==t&&(this.input=t)}}),p?s("mg-button",{class:"mg-c-input__box-append mg-c-input__reset",variant:"flat","is-icon":!0,label:this.messages.general.reset,"aria-controls":this.identifier,tabindex:"-1",onClick:this.handleResetButton},s("mg-icon",{icon:"cross"})):s("mg-button",{class:"mg-c-input__box-append",variant:"flat","is-icon":!0,label:this.itemsLabel,tabindex:"-1",disabled:this.disabled},s("mg-icon",{icon:"chevron-"+(this.popoverDisplay?"up":"down")}))),s("div",{slot:"content",class:"mg-c-input__popover-container"},"list"===m&&[s("ul",{key:"list",class:"mg-c-input__input-list",role:"listbox",id:r,"aria-label":this.itemsLabel,"aria-setsize":this.page.total},this.page.items.map((t=>{var i;return s("li",{role:"option",class:{"mg-c-input__input-list-item":!0,"mg-c-input__input-list-item--focus-visible":JSON.stringify(null===(i=this.option)||void 0===i?void 0:i.value)===JSON.stringify(t.value),"mg-c-input__input-list-item--selected":this.isCurrentOption(t)},key:t.title,id:a(t.value),"aria-selected":this.isCurrentOption(t).toString(),onClick:this.handleOptionClick},t.title,this.isCurrentOption(t)&&s("mg-icon",{icon:"check"}))}))),this.isLoading&&s("mg-loader",{key:"loader",message:this.messages.input.combobox.search,class:{"mg-u-visually-hidden":Boolean(this.page.next)}}),this.page.next&&s("mg-button",{key:"load-more",variant:"flat",class:"mg-c-input__load-more",tabIndex:-1,disabled:this.isLoading,"full-width":!0,"disable-on-click":!0,onClick:this.handleLoadMoreButton,"aria-controls":r,ref:t=>{null!==t&&(this.loadMoreElement=t)}},s("mg-icon",{icon:"chevron-down"}),this.messages.input.showMore)],"notfound"===m&&s("p",{id:m,class:"mg-c-input__popover-info"},this.messages.input.combobox.notFound),"notavailable"===m&&s("p",{id:m,class:"mg-c-input__popover-info"},this.messages.input.combobox.notAvailable))))}get element(){return e(this)}static get watchers(){return{value:["watchValue"],items:["watchItems"],identifier:["watchIdentifier"],readonly:["watchReadonly","watchValidityChange"],required:["watchValidityChange"],disabled:["watchValidityChange","watchDisabled"],mgWidth:["watchMgWidth"],fetchurl:["watchFetchUrl"],fetchoptions:["watchFetchOptions"],fetchmappings:["watchFetchMappings"],options:["watchOptions"],filter:["watchFilter"],popoverDisplay:["watchPopoverDisplay"]}}};x.style=".mg-c-input__box{height:var(--mg-b-size-min-height);box-sizing:border-box;padding:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) var(--mg-b-size-8);border-width:var(--mg-c-input-border-width);border-style:solid;border-color:var(--mg-c-input-color-border);border-radius:var(--mg-c-input-border-radius);background-color:var(--mg-b-color-light);color:var(--mg-b-color-dark);font-family:inherit;font-size:var(--mg-b-font-size);text-align:var(--mg-c-input-text-align, left)}.mg-c-input__box::placeholder{color:var(--mg-c-input-placeholder-color-text);font-style:italic}.mg-c-input__box:focus{box-shadow:0 0 var(--mg-b-size-4) var(--mg-c-input-color-box-shadow-focus)}.mg-c-input__box:disabled{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--has-error .mg-c-input__box{border-color:var(--mg-b-color-danger)}.mg-c-input.mg-c-input--is-input-group-append{--mg-c-button-border-radius-top-left:0;--mg-c-button-border-radius-bottom-left:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box{margin-right:calc(-1*var(--mg-b-size-border));border-bottom-right-radius:0;border-top-right-radius:0}.mg-c-input.mg-c-input--is-input-group-append .mg-c-input__box:focus-visible{outline-offset:-0.2rem;outline-style:solid;outline-width:.2rem}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]){--mg-c-button-border-radius-top-right:0;--mg-c-button-border-radius-bottom-right:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:not(:last-of-type)){--mg-c-button-border-right-width:0}.mg-c-input.mg-c-input--has-buttons-group-append ::slotted([slot=append-input]:last-of-type){--mg-c-button-border-radius-top-right:var(--mg-c-input-border-radius);--mg-c-button-border-radius-bottom-right:var(--mg-c-input-border-radius)}.mg-c-input.mg-c-input--is-append-input-slot-content:not(.mg-c-input--readonly) ::slotted([slot=append-input]){align-self:start;padding-top:calc((var(--mg-b-size-min-height) - var(--mg-b-size-16))/2)}.mg-c-input.mg-c-input--has-icon .mg-c-input__with-character-left>mg-icon:first-of-type,.mg-c-input.mg-c-input--has-icon .mg-c-input__input-group-container>mg-icon:first-of-type{position:absolute;top:50%;left:var(--mg-b-size-8);color:var(--mg-c-input-color-icon);transform:translateY(-50%)}.mg-c-input.mg-c-input--has-icon .mg-c-input__with-character-left .mg-c-input__box,.mg-c-input.mg-c-input--has-icon .mg-c-input__input-group-container .mg-c-input__box{padding-left:calc(var(--mg-b-size-16) + var(--mg-b-size-8)*2)}.mg-c-input__popover-info{padding:var(--mg-b-size-8);margin:0;color:var(--mg-b-color-neutral-90);text-align:center}.mg-c-input__input-container{width:100%;flex:1 auto}.mg-c-input.mg-c-input--width-full .mg-c-input__box{width:100%}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left,.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left,.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left{width:max-content}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left:has(textarea),.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left:has(textarea),.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left:has(textarea){flex-grow:inherit}.mg-c-input.mg-c-input--width-2 .mg-c-input__box{width:var(--mg-b-size-48)}.mg-c-input.mg-c-input--width-2 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(var(--mg-b-size-48) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-4 .mg-c-input__box{width:var(--mg-b-size-72)}.mg-c-input.mg-c-input--width-4 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(var(--mg-b-size-72) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-16 .mg-c-input__box{width:calc(26*var(--mg-b-size-8))}.mg-c-input.mg-c-input--width-16 .mg-c-input__with-character-left:not(:has(textarea)) .mg-c-input__box{width:calc(calc(26 * var(--mg-b-size-8)) + var(--mg-c-character-left-message-length)*(.35ch + .3rem))}.mg-c-input.mg-c-input--width-full:not(.mg-c-input--label-on-top){justify-content:stretch}.mg-c-input.mg-c-input--is-input-group-append ::slotted([slot=append-input]),.mg-c-input.mg-c-input--is-append-input-slot-content ::slotted([slot=append-input]){width:auto}:host(.mg-c-input.mg-c-input--width-full) ::slotted(*:not(mg-input-title)){width:100%;max-width:100%}.mg-c-input__readonly-value{min-height:var(--mg-b-font-size);align-self:flex-start;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);overflow-wrap:anywhere}.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}}a{color:inherit;text-decoration:underline}a:hover,a:focus,a:active{text-decoration:none}.mg-c-input.mg-c-input--combobox mg-popover{--mg-c-card-overflow:hidden;--mg-c-popover-padding-vertical:0;--mg-c-popover-padding-horizontal:0}.mg-c-input.mg-c-input--combobox .mg-c-input__input-group-container{position:relative}.mg-c-input.mg-c-input--combobox .mg-c-input__box{cursor:pointer}.mg-c-input.mg-c-input--combobox .mg-c-input__popover-container{display:flex;min-width:var(--mg-c-input-list-width);max-height:calc(50*var(--mg-b-size-8) - var(--mg-b-size-32));flex-direction:column;gap:var(--mg-b-size-4);overflow-y:scroll}.mg-c-input.mg-c-input--combobox .mg-c-input__load-more{padding:0 var(--mg-b-size-8) var(--mg-b-size-4)}.mg-c-input.mg-c-input--combobox .mg-c-input__input-list{padding:0;margin:0;cursor:pointer;list-style:none}.mg-c-input.mg-c-input--combobox .mg-c-input__input-list-item{display:flex;padding:var(--mg-b-size-8)}.mg-c-input.mg-c-input--combobox .mg-c-input__input-list-item:hover,.mg-c-input.mg-c-input--combobox .mg-c-input__input-list-item.mg-c-input__input-list-item--focus-visible{background-color:var(--mg-b-color-neutral-20)}.mg-c-input.mg-c-input--combobox .mg-c-input__input-list-item.mg-c-input__input-list-item--selected{font-weight:700}.mg-c-input.mg-c-input--combobox .mg-c-input__input-list-item.mg-c-input__input-list-item--selected mg-icon{margin-left:auto}.mg-c-input.mg-c-input--combobox.mg-c-input--width-2 .mg-c-input__box{width:calc(var(--mg-b-size-16) + var(--mg-b-size-8)*2 + var(--mg-b-size-24) + var(--mg-b-size-min-height) + var(--mg-b-size-4))}.mg-c-input.mg-c-input--combobox.mg-c-input--width-4 .mg-c-input__box{width:calc(var(--mg-b-size-16) + var(--mg-b-size-8)*2 + var(--mg-b-size-48) + var(--mg-b-size-min-height) + var(--mg-b-size-4))}.mg-c-input.mg-c-input--combobox.mg-c-input--width-16 .mg-c-input__box{width:calc(var(--mg-b-size-16) + var(--mg-b-size-8)*2 + calc(23 * var(--mg-b-size-8)) + var(--mg-b-size-min-height) + var(--mg-b-size-4))}.mg-c-input.mg-c-input--combobox.mg-c-input--width-full mg-popover{--mg-c-popover-max-width:var(--mg-c-input-list-width, var(--mg-c-popover-max-width))}.mg-c-input.mg-c-input--combobox.mg-c-input--width-full .mg-c-input__input-group-container{display:flex;width:100%}.mg-c-input.mg-c-input--combobox.mg-c-input--width-full .mg-c-input__box{flex:1}.mg-c-input.mg-c-input--combobox.mg-c-input--input-append .mg-c-input__box{padding-right:calc(var(--mg-b-size-min-height) + var(--mg-b-size-4))}.mg-c-input.mg-c-input--combobox.mg-c-input--input-append .mg-c-input__box-append{position:absolute;top:0;right:0}";export{x as mg_input_combobox}
@@ -1 +1 @@
1
- import{r,h as s,H as e}from"./p-Degtjvph.js";import{c as a,t as o,e as i}from"./p-Dr7GYvIz.js";const t=["progressbar","meter"],c=class{constructor(s){r(this,s),this.ariaRole="progressbar",this.value=0,this.min=0,this.max=100}watchLabel(r){if(!a(r))throw new Error(`<mg-progress> prop "label" must be a valid string. Passed value: ${o(r)}.`)}watchAriaRole(r){if(r&&!t.includes(r))throw new Error(`<mg-progress> prop "ariaRole" must be one of: ${t.join(", ")}. Passed value: ${o(r)}.`)}watchValue(r){if(!(void 0===r||i(r)&&r>=this.min&&r<=this.max))throw new Error(`<mg-progress> prop “value” must be a number within the range ${this.min} to ${this.max}. Passed value: ${o(r)}.`)}watchMin(r){if(0!==r&&void 0!==r&&(!i(r)||r>=this.max))throw new Error(`<mg-progress> prop “min” must be a number lower than: ${this.max}. Passed value: ${o(r)}.`)}watchMax(r){if(100!==r&&void 0!==r&&(!i(r)||r<=this.min))throw new Error(`<mg-progress> prop “max” must be a number greater than: ${this.min}. Passed value: ${o(r)}.`)}componentWillLoad(){this.watchLabel(this.label),this.watchAriaRole(this.ariaRole),this.watchMin(this.min),this.watchMax(this.max),this.watchValue(this.value)}render(){return s(e,{key:"e6d254a68f35c5019158ab17fcb0e4dfd1943ef8",role:this.ariaRole,"aria-label":this.label,"aria-valuenow":this.value,"aria-valuemin":this.min,"aria-valuemax":this.max},s("div",{key:"5b427579ad97336076504a45013a0be00673f9a9",class:"mg-c-progress"},s("div",{key:"76dbdf88550caf51890e10c45c034d73cd02db5d",class:{"mg-c-progress__bar":!0,"mg-c-progress__bar--active":this.value>this.min}},s("div",{key:"b0ab6f784cdb8cc25a40b83a0d97bcda5b5c1f9b",class:"mg-c-progress__fill",style:{width:`${Math.round((this.value-this.min)/(this.max-this.min)*100)}%`}}))))}static get watchers(){return{label:["watchLabel"],ariaRole:["watchAriaRole"],value:["watchValue"],min:["watchMin"],max:["watchMax"]}}};c.style="/*!\n * @prop --mg-c-progress-size: Defines the size of the progress bar. Default value is `--mg-b-size-8`.\n * @prop --mg-c-progress-border-color: Defines the color of the progress bar border. Default value is `--mg-b-color-neutral-80`.\n * @prop --mg-c-progress-bar-color-background: Defines the color of the progress bar. Default value is `--mg-b-color-neutral-30`.\n * @prop --mg-c-progress-fill-color-background: Defines the color of the progress bar fill background. Default value is `--mg-b-color-app`.\n */.mg-c-progress{min-width:calc(var(--mg-b-size-16)*4)}.mg-c-progress__bar{position:relative;overflow:hidden;height:var(--mg-c-progress-size);border-width:var(--mg-b-size-border);border-style:solid;border-color:var(--mg-c-progress-border-color);border-radius:calc((var(--mg-c-progress-size) + var(--mg-b-size-border)*2)/2);background-color:var(--mg-c-progress-bar-color-background)}.mg-c-progress__fill{height:100%;border-radius:calc((var(--mg-c-progress-size) + var(--mg-b-size-border)*2)/2);transition:width 300ms ease-in-out}.mg-c-progress__bar.mg-c-progress__bar--active .mg-c-progress__fill{background-color:var(--mg-c-progress-fill-color-background)}";export{c as mg_progress}
1
+ import{r,h as e,H as s}from"./p-JHj_9FSs.js";import{c as a,t as o,e as i}from"./p-WtiuOkLj.js";const t=["progressbar","meter"],c=class{constructor(e){r(this,e),this.ariaRole="progressbar",this.value=0,this.min=0,this.max=100}watchLabel(r){if(!a(r))throw new Error(`<mg-progress> prop "label" must be a valid string. Passed value: ${o(r)}.`)}watchAriaRole(r){if(r&&!t.includes(r))throw new Error(`<mg-progress> prop "ariaRole" must be one of: ${t.join(", ")}. Passed value: ${o(r)}.`)}watchValue(r){if(!(void 0===r||i(r)&&r>=this.min&&r<=this.max))throw new Error(`<mg-progress> prop “value” must be a number within the range ${this.min} to ${this.max}. Passed value: ${o(r)}.`)}watchMin(r){if(0!==r&&void 0!==r&&(!i(r)||r>=this.max))throw new Error(`<mg-progress> prop “min” must be a number lower than: ${this.max}. Passed value: ${o(r)}.`)}watchMax(r){if(100!==r&&void 0!==r&&(!i(r)||r<=this.min))throw new Error(`<mg-progress> prop “max” must be a number greater than: ${this.min}. Passed value: ${o(r)}.`)}componentWillLoad(){this.watchLabel(this.label),this.watchAriaRole(this.ariaRole),this.watchMin(this.min),this.watchMax(this.max),this.watchValue(this.value)}render(){return e(s,{key:"62c66dbd93249bfde3eb8ff449b49884edfe49c3",role:this.ariaRole,"aria-label":this.label,"aria-valuenow":this.value,"aria-valuemin":this.min,"aria-valuemax":this.max},e("div",{key:"b349c9d7358086ca4668705a1935fd8bbdb86afa",class:"mg-c-progress"},e("div",{key:"57cc19d07c0f006f8ecf3a1f86ec12e37ffd8d6b",class:{"mg-c-progress__bar":!0,"mg-c-progress__bar--active":this.value>this.min}},e("div",{key:"b4c49d94d9cfe2e1a6d8013aa4a39cde51b36d04",class:"mg-c-progress__fill",style:{width:`${Math.round((this.value-this.min)/(this.max-this.min)*100)}%`}}))))}static get watchers(){return{label:["watchLabel"],ariaRole:["watchAriaRole"],value:["watchValue"],min:["watchMin"],max:["watchMax"]}}};c.style="/*!\n * @prop --mg-c-progress-size: Defines the size of the progress bar. Default value is `--mg-b-size-8`.\n * @prop --mg-c-progress-border-color: Defines the color of the progress bar border. Default value is `--mg-b-color-neutral-80`.\n * @prop --mg-c-progress-bar-color-background: Defines the color of the progress bar. Default value is `--mg-b-color-neutral-30`.\n * @prop --mg-c-progress-fill-color-background: Defines the color of the progress bar fill background. Default value is `--mg-b-color-app`.\n */.mg-c-progress{min-width:calc(var(--mg-b-size-16)*4)}.mg-c-progress__bar{position:relative;overflow:hidden;height:var(--mg-c-progress-size);border-width:var(--mg-b-size-border);border-style:solid;border-color:var(--mg-c-progress-border-color);border-radius:calc((var(--mg-c-progress-size) + var(--mg-b-size-border)*2)/2);background-color:var(--mg-c-progress-bar-color-background)}.mg-c-progress__fill{height:100%;border-radius:calc((var(--mg-c-progress-size) + var(--mg-b-size-border)*2)/2);transition:width 300ms ease-in-out}.mg-c-progress__bar.mg-c-progress__bar--active .mg-c-progress__fill{background-color:var(--mg-c-progress-fill-color-background)}";export{c as mg_progress}
@@ -1 +1 @@
1
- import{r as e,h as t,a}from"./p-Degtjvph.js";import{i}from"./p-Bv7NHR-W.js";import{c as r,t as s}from"./p-Dr7GYvIz.js";const o=class{constructor(t){e(this,t),this.messageHide=!1}watchMessage(e){if(e&&!r(e))throw new Error(`<mg-loader> prop "message" must be a valid string. Passed value: ${s(e)}.`)}componentWillLoad(){this.messages=i(this.element).messages,this.watchMessage(this.message)}render(){return t("div",{key:"ad7aa5e4fa0704cf2fa174ae1ed960f72deb79e3",class:"mg-c-loader","aria-live":"polite"},t("mg-icon",{key:"47e6df1e459a74851bf370e460438b7bdc2ed3d0",icon:"loader",spin:!0}),t("span",{key:"44d36e8492401cacb911f21fc707c1de03ae7a5d",class:{"mg-u-visually-hidden":this.messageHide}},this.message||this.messages.loader.inProgress))}get element(){return a(this)}static get watchers(){return{message:["watchMessage"]}}};o.style=".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:var(--mg-b-size-4);text-align:center}";export{o as mg_loader}
1
+ import{r as t,h as e,a}from"./p-JHj_9FSs.js";import{i}from"./p-Bab8_u8S.js";import{c as r,t as s}from"./p-WtiuOkLj.js";const o=class{constructor(e){t(this,e),this.messageHide=!1}watchMessage(t){if(t&&!r(t))throw new Error(`<mg-loader> prop "message" must be a valid string. Passed value: ${s(t)}.`)}componentWillLoad(){this.messages=i(this.element).messages,this.watchMessage(this.message)}render(){return e("div",{key:"b74028455b7003824fa5618b1751d05a91ab7071",class:"mg-c-loader","aria-live":"polite"},e("mg-icon",{key:"204acdb8f881b348148020214c05269878852c4f",icon:"loader",spin:!0}),e("span",{key:"40f1792354df01ec9af61ab128575ea166f34cb5",class:{"mg-u-visually-hidden":this.messageHide}},this.message||this.messages.loader.inProgress))}get element(){return a(this)}static get watchers(){return{message:["watchMessage"]}}};o.style=".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:var(--mg-b-size-4);text-align:center}";export{o as mg_loader}
@@ -0,0 +1 @@
1
+ const e=/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/,t=e=>{const t={value:"2023",pattern:"yyyy"},a={value:"12",pattern:"mm"},l={value:"24",pattern:"dd"};return r([t.value,a.value,l.value].join("-"),e,{timeZone:"UTC"}).replace(t.value,t.pattern).replace(a.value,a.pattern).replace(l.value,l.pattern)},a=(e,t,a)=>new Intl.NumberFormat(t,{style:"currency",currency:a}).format(e),l=(e,t,a=0)=>new Intl.NumberFormat(t,{minimumFractionDigits:a}).format(Number(e)),s=(e,t,a=0)=>new Intl.NumberFormat(t,{style:"percent",minimumFractionDigits:a,maximumFractionDigits:a}).format(e),n=(e,t,a,l="short",s=0)=>new Intl.NumberFormat(t,{style:"unit",unit:a,unitDisplay:l,minimumFractionDigits:s,maximumFractionDigits:s}).format(e),r=(t,a,l)=>"string"==typeof t&&""!==t&&e.test(t)?new Intl.DateTimeFormat(a,l).format(new Date(t)):"",o=(i={en:{errors:{required:"This field is required."},nbCharLeft:"{counter} characters left.",input:{showMore:"Show more",select:{placeholder:"Select a value"},checkbox:{selectedValues:"{nb} selected values",selectedValue:"{nb} selected value",editButton:"Edit",selectButton:"Select values",showButton:"Show",sections:{label:'Values grouped by: "Selected" or "Available"',badge:{label:"value(s)"},search:{label:"Enter a value",values:"{count} value(s) found",noValue:"No values found"},selected:{title:"Selected",action:"Unselect all",tooltip:"Unselect all current values",values:"{count} value(s) selected",noValue:"No value selected"},notSelected:{title:"Available",action:"Select all",tooltip:"Select all current values",values:"{count} value(s) available",noValue:"All values are selected"}}},date:{pattern:{dd:"dd",mm:"mm",yyyy:"yyyy"},helpText:{expectedFormat:"Expected format: {pattern} (ex: {date})",min:"The date must be after or equal to {min}",max:"The date must be before or equal to {max}",minMax:"The date must be between {min} and {max}"},error:{badInput:"The date is inexistent or incorrect, the expected format is {pattern} (ex: {date})"}},numeric:{helpText:{min:"The value must be greater than or equal to {min}",max:"The value must be less than or equal to {max}",minMax:"The value must be between {min} and {max}"}},password:{display:"Display password value",hide:"Hide password value"},combobox:{notFound:"No value matches your input",notAvailable:"No value available",search:"Search…"},text:{helpText:{email:"Expected format: name@example.com",emails:"Expected format: first@example.com, second@example.com",url:"Expected format: https://example.com"},errors:{typeMismatch:{email:"The value is incorrect, the expected format is name@example.com",emails:"The value is incorrect, the expected format is first@example.com, second@example.com",url:"The value is incorrect, the expected format is https://example.com"}}}},form:{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"},alert:{closeButton:"Close message"},modal:{closeButton:"Close modal"},pagination:{label:"Pagination",page:"page",pages:"pages",nextLabel:"Next page",previousLabel:"Previous page",selectPage:"Select the page to display."},panel:{editLabel:"Edit section title."},skipLinks:{navLabel:"Quick access"},general:{confirm:"Confirm",cancel:"Cancel",close:"Close",next:"Next",previous:"Previous",reset:"reset"},menuItem:{badgeLabel:"Include notification(s)",openNewTab:"Open link in a new tab"},itemMore:{menuLabel:"Additional menu"},actionMore:{label:"Actions"},loader:{inProgress:"Loading in progress…"},table:{sortableCaption:"(column headers with buttons are sortable)"}},fr:{errors:{required:"Ce champ est obligatoire."},nbCharLeft:"{counter} caractères disponibles.",input:{showMore:"Afficher plus",select:{placeholder:"Sélectionnez une valeur"},checkbox:{selectedValues:"{nb} valeurs sélectionnées",selectedValue:"{nb} valeur sélectionnée",editButton:"Modifier",selectButton:"Sélectionner des valeurs",showButton:"Voir",sections:{label:'Valeurs regroupées par: "Sélectionnées" ou "Disponibles"',badge:{label:"valeur(s)"},search:{label:"Saisissez une valeur",values:"{count} résultat(s)",noValue:"Aucune valeur n'a été trouvée."},selected:{title:"Sélectionnées",action:"Tout désélectionner",tooltip:"Désélectionne toutes les valeurs de la section",values:"{count} valeur(s) sélectionnée(s)",noValue:"Aucune valeur sélectionnée"},notSelected:{title:"Disponibles",action:"Tout sélectionner",tooltip:"Sélectionne toutes les valeurs de la section",values:"{count} valeur(s) disponible(s)",noValue:"Toutes les valeurs sont sélectionnées"}}},date:{pattern:{dd:"jj",mm:"mm",yyyy:"aaaa"},helpText:{expectedFormat:"Format attendu&nbsp;: {pattern} (ex&nbsp;: {date})",min:"La date doit être postérieure ou égale au {min}",max:"La date doit être antérieure ou égale au {max}",minMax:"La date doit être comprise entre le {min} et le {max}"},error:{badInput:"La date est inexistante ou incorrecte, le format attendu est {pattern} (ex&nbsp;: {date})"}},numeric:{helpText:{min:"La valeur doit être supérieure ou égale à {min}",max:"La valeur doit être inférieure ou égale à {max}",minMax:"La valeur doit être comprise entre {min} et {max}"}},password:{display:"Afficher le mot de passe",hide:"Masquer le mot de passe"},combobox:{notFound:"Aucune valeur ne correspondont à votre saisie",notAvailable:"Aucune valeur disponible",search:"Recherche…"},text:{helpText:{email:"Format attendu&nbsp;: nom@exemple.fr",emails:"Format attendu&nbsp;: premier@exemple.fr, second@exemple.fr",url:"Format attendu&nbsp;: https://exemple.fr"},errors:{typeMismatch:{email:"La valeur est incorrecte, le format attendu est nom@exemple.fr",emails:"La valeur est incorrecte, le format attendu est premier@exemple.fr, second@exemple.fr",url:"La valeur est incorrecte, le format attendu est https://exemple.fr"}}}},form:{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"},alert:{closeButton:"Fermer le message"},modal:{closeButton:"Fermer la modale"},pagination:{label:"Pagination",page:"page",pages:"pages",nextLabel:"Page suivante",previousLabel:"Page précédente",selectPage:"Sélectionner la page à afficher."},panel:{editLabel:"Modifier le titre de la section."},skipLinks:{navLabel:"Accès rapide"},general:{confirm:"Valider",cancel:"Annuler",close:"Fermer",next:"Suivant",previous:"Précédent",reset:"réinitialiser"},menuItem:{badgeLabel:"Notification(s) incluse(s)",openNewTab:"Ouvrir le lien dans un nouvel onglet"},itemMore:{menuLabel:"Menu complémentaire"},actionMore:{label:"Actions"},loader:{inProgress:"Chargement en cours…"},table:{sortableCaption:"(les en-têtes de colonnes avec des boutons peuvent être triés)"}}},e=>((e,t,a)=>{const l=e.closest("[lang]"),s=Intl.NumberFormat.supportedLocalesOf(l?.lang),n=s.length>0&&"string"==typeof s[0]?s[0]:navigator.language||a,r=n.split("-").shift();return 0===Object.keys(t).length?{locale:n,messages:{lang:a}}:{locale:n,messages:t[r]??t[a]??{lang:a}}})(e,i,"en"));var i;export{t as a,l as b,n as c,s as d,a as e,o as i,r as l}
@@ -0,0 +1,2 @@
1
+ const o=()=>{};var r=Object.defineProperty,e=o=>{if(o.__stencil__getHostRef)return o.__stencil__getHostRef()},t=(o,r)=>{o.__stencil__getHostRef=()=>r,r.o=o},n=(o,r)=>r in o,l=(o,r)=>(0,console.error)(o,r),c=new Map,i=new Map,s="slot-fb{display:contents}slot-fb[hidden]{display:none}",a="http://www.w3.org/1999/xlink",g="undefined"!=typeof window?window:{},b={t:0,l:"",jmp:o=>o(),raf:o=>requestAnimationFrame(o),ael:(o,r,e,t)=>o.addEventListener(r,e,t),rel:(o,r,e,t)=>o.removeEventListener(r,e,t),ce:(o,r)=>new CustomEvent(o,r)},m=o=>Promise.resolve(o),u=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(o){}return!1})(),d=!!u&&(()=>!!g.document&&Object.getOwnPropertyDescriptor(g.document.adoptedStyleSheets,"length").writable)(),f=!1,v=[],p=[],h=(o,r)=>e=>{o.push(e),f||(f=!0,r&&4&b.t?z(w):b.raf(w))},y=o=>{for(let r=0;r<o.length;r++)try{o[r](performance.now())}catch(o){l(o)}o.length=0},w=()=>{y(v),y(p),(f=v.length>0)&&b.raf(w)},z=o=>m().then(o),$=h(p,!0),k=o=>"object"==(o=typeof o)||"function"===o;function x(o){var r,e,t;return null!=(t=null==(e=null==(r=o.head)?void 0:r.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?t:void 0}((o,e)=>{for(var t in e)r(o,t,{get:e[t],enumerable:!0})})({},{err:()=>j,map:()=>O,ok:()=>S,unwrap:()=>C,unwrapErr:()=>M});var S=o=>({isOk:!0,isErr:!1,value:o}),j=o=>({isOk:!1,isErr:!0,value:o});function O(o,r){if(o.isOk){const e=r(o.value);return e instanceof Promise?e.then((o=>S(o))):S(e)}if(o.isErr)return j(o.value);throw"should never get here"}var E,C=o=>{if(o.isOk)return o.value;throw o.value},M=o=>{if(o.isErr)return o.value;throw o.value};function N(){var o;const r=this.attachShadow({mode:"open"});void 0===E&&(E=null!=(o=function(){if(!u)return;const o=new CSSStyleSheet;return o.replaceSync(':root{--mg-b-size-4:0.4rem;--mg-b-size-8:0.8rem;--mg-b-size-12:1.2rem;--mg-b-size-16:1.6rem;--mg-b-size-20:2rem;--mg-b-size-24:2.4rem;--mg-b-size-32:3.2rem;--mg-b-size-40:4rem;--mg-b-size-48:4.8rem;--mg-b-size-56:5.6rem;--mg-b-size-64:6.4rem;--mg-b-size-72:7.2rem;--mg-b-size-120:12rem;--mg-b-size-border:0.1rem;--mg-b-size-radius:var(--mg-b-size-4);--mg-b-size-floating-element-max-width:40rem;--mg-b-size-min-height:3.5rem;--mg-b-spacing-actions:var(--mg-b-size-8);--mg-b-color-blue-10:rgb(227, 244, 255);--mg-b-color-blue-20:rgb(209, 237, 255);--mg-b-color-blue-30:rgb(166, 219, 255);--mg-b-color-blue-40:rgb(106, 195, 255);--mg-b-color-blue-50:rgb(64, 179, 255);--mg-b-color-blue-60:rgb(22, 162, 255);--mg-b-color-blue-70:rgb(0, 132, 220);--mg-b-color-blue-80:rgb(0, 94, 156);--mg-b-color-blue-90:rgb(0, 67, 111);--mg-b-color-blue-100:rgb(0, 39, 66);--mg-b-color-green-10:rgb(234, 251, 244);--mg-b-color-green-20:rgb(212, 247, 234);--mg-b-color-green-30:rgb(181, 240, 219);--mg-b-color-green-40:rgb(144, 232, 202);--mg-b-color-green-50:rgb(97, 223, 179);--mg-b-color-green-60:rgb(50, 213, 156);--mg-b-color-green-70:rgb(46, 194, 142);--mg-b-color-green-80:rgb(36, 151, 111);--mg-b-color-green-90:rgb(21, 89, 66);--mg-b-color-green-100:rgb(13, 54, 40);--mg-b-color-red-10:rgb(251, 233, 234);--mg-b-color-red-20:rgb(248, 216, 217);--mg-b-color-red-30:rgb(242, 174, 178);--mg-b-color-red-40:rgb(236, 134, 139);--mg-b-color-red-50:rgb(229, 96, 103);--mg-b-color-red-60:rgb(221, 42, 52);--mg-b-color-red-70:rgb(219, 31, 41);--mg-b-color-red-80:rgb(152, 21, 28);--mg-b-color-red-90:rgb(120, 17, 23);--mg-b-color-red-100:rgb(92, 13, 13);--mg-b-color-yellow-10:rgb(255, 247, 230);--mg-b-color-yellow-20:rgb(255, 240, 207);--mg-b-color-yellow-30:rgb(255, 226, 162);--mg-b-color-yellow-40:rgb(255, 212, 118);--mg-b-color-yellow-50:rgb(255, 195, 62);--mg-b-color-yellow-60:rgb(232, 177, 56);--mg-b-color-yellow-70:rgb(181, 138, 44);--mg-b-color-yellow-80:rgb(140, 107, 34);--mg-b-color-yellow-90:rgb(86, 66, 21);--mg-b-color-yellow-100:rgb(53, 41, 13);--mg-b-color-neutral-0:rgb(255, 255, 255);--mg-b-color-neutral-10:rgb(250, 251, 251);--mg-b-color-neutral-20:rgb(236, 238, 238);--mg-b-color-neutral-30:rgb(225, 227, 228);--mg-b-color-neutral-40:rgb(197, 201, 203);--mg-b-color-neutral-50:rgb(182, 188, 190);--mg-b-color-neutral-60:rgb(157, 165, 167);--mg-b-color-neutral-70:rgb(129, 139, 142);--mg-b-color-neutral-80:rgb(101, 113, 117);--mg-b-color-neutral-90:rgb(75, 89, 94);--mg-b-color-neutral-100:rgb(47, 64, 69);--mg-b-color-neutral-110:rgb(21, 40, 46);--mg-b-color-neutral-120:rgb(5, 9, 11);--mg-b-color-dark:var(--mg-b-color-neutral-110);--mg-b-color-light:var(--mg-b-color-neutral-0);--mg-b-color-danger:var(--mg-b-color-red-70);--mg-b-color-text-on-danger:var(--mg-b-color-light);--mg-b-color-info:var(--mg-b-color-blue-80);--mg-b-color-text-on-info:var(--mg-b-color-light);--mg-b-color-success:var(--mg-b-color-green-60);--mg-b-color-text-on-success:var(--mg-b-color-dark);--mg-b-color-warning:var(--mg-b-color-yellow-50);--mg-b-color-text-on-warning:var(--mg-b-color-dark);--mg-b-color-app:var(--mg-b-color-blue-80);--mg-b-color-primary:var(--mg-b-color-neutral-110);--mg-b-color-text-on-primary:var(--mg-b-color-light);--mg-b-color-secondary:var(--mg-b-color-neutral-10);--mg-b-color-text-on-secondary:var(--mg-b-color-dark);--mg-b-font-size:1.3rem;--mg-b-font-size-small:1.17rem;--mg-b-font-size-h1:calc(var(--mg-b-font-size) * 1.85);--mg-b-font-size-h2:calc(var(--mg-b-font-size) * 1.65);--mg-b-font-size-h3:calc(var(--mg-b-font-size) * 1.35);--mg-b-font-size-h4:calc(var(--mg-b-font-size) * 1.2);--mg-b-font-size-h5:calc(var(--mg-b-font-size) * 1.1);--mg-b-font-size-h6:calc(var(--mg-b-font-size) * 0.8);--mg-b-small-font-size:0.9em;--mg-b-font-family:"Open Sans", sans-serif;--mg-b-font-family-heading:var(--mg-b-font-family);--mg-b-line-height:1.4;--mg-b-box-shadow:0 0.3rem 0.8rem 0 color-mix(in srgb, var(--mg-b-color-dark), transparent 85%);--mg-b-opacity-element-disabled:0.4}:root{--mg-c-badge-size:var(--mg-b-size-16);--mg-c-badge-font-size:var(--mg-b-font-size-small);--mg-c-button-border-radius:var(--mg-b-size-radius);--mg-c-button-icon-border-radius:var(--mg-b-size-min-height);--mg-c-button-color-background-danger:var(--mg-b-color-danger);--mg-c-button-color-border-danger:var(--mg-b-color-red-80);--mg-c-button-color-gradient-danger:var(--mg-b-color-red-80);--mg-c-button-color-text-danger:var(--mg-b-color-text-on-danger);--mg-c-button-color-background-info:var(--mg-b-color-info);--mg-c-button-color-border-info:var(--mg-b-color-blue-90);--mg-c-button-color-gradient-info:var(--mg-b-color-blue-90);--mg-c-button-color-text-info:var(--mg-b-color-text-on-info);--mg-c-button-color-background-success:var(--mg-b-color-success);--mg-c-button-color-border-success:var(--mg-b-color-green-70);--mg-c-button-color-gradient-success:var(--mg-b-color-green-70);--mg-c-button-color-text-success:var(--mg-b-color-text-on-success);--mg-c-button-color-background-warning:var(--mg-b-color-warning);--mg-c-button-color-border-warning:var(--mg-b-color-yellow-60);--mg-c-button-color-gradient-warning:var(--mg-b-color-yellow-60);--mg-c-button-color-text-warning:var(--mg-b-color-text-on-warning);--mg-c-button-color-background-primary:var(--mg-b-color-primary);--mg-c-button-color-border-primary:var(--mg-b-color-neutral-120);--mg-c-button-color-gradient-primary:var(--mg-b-color-neutral-120);--mg-c-button-color-text-primary:var(--mg-b-color-text-on-primary);--mg-c-button-color-background-secondary:var(--mg-b-color-secondary);--mg-c-button-color-border-secondary:var(--mg-b-color-neutral-20);--mg-c-button-color-gradient-secondary:var(--mg-b-color-neutral-20);--mg-c-button-color-text-secondary:var(--mg-b-color-text-on-secondary);--mg-c-button-color-background-danger-alt:var(--mg-b-color-neutral-10);--mg-c-button-color-border-danger-alt:var(--mg-b-color-neutral-20);--mg-c-button-color-gradient-danger-alt:var(--mg-b-color-neutral-20);--mg-c-button-color-text-danger-alt:var(--mg-b-color-danger);--mg-c-card-spacing-default:var(--mg-b-size-16);--mg-c-card-border-radius-default:var(--mg-b-size-12);--mg-c-card-color-background-default:var(--mg-b-color-light);--mg-c-card-border-default:var(--mg-b-size-border) solid var(--mg-b-color-neutral-30);--mg-c-card-box-shadow-default:var(--mg-b-box-shadow);--mg-c-divider-color-background:color-mix(in srgb, var(--mg-b-color-dark), transparent 85%);--mg-c-divider-thickness:var(--mg-b-size-border);--mg-c-divider-spacing-vertical:var(--mg-b-size-40);--mg-c-icon-border-radius:50%;--mg-c-tag-height:var(--mg-b-size-24);--mg-c-tag-border-radius:var(--mg-b-size-radius);--mg-c-tag-font-size:var(--mg-b-font-size-small);--mg-c-tooltip-border-radius:var(--mg-b-size-radius);--mg-c-tooltip-color-background:var(--mg-b-color-dark);--mg-c-tooltip-color-text:var(--mg-b-color-light);--mg-c-details-spacing:var(--mg-b-size-8);--mg-c-illustrated-message-spacing-vertical:var(--mg-b-size-40);--mg-c-input-border-width:var(--mg-b-size-border);--mg-c-input-border-radius:var(--mg-b-size-radius);--mg-c-input-color-border:rgb(181 194 201);--mg-c-input-placeholder-color-text:rgb(181 194 201);--mg-c-input-color-icon:rgb(181 194 201);--mg-c-input-color-box-shadow-focus:rgb(0 221 255 / 50%);--mg-c-input-error-color-background:color-mix(in srgb, var(--mg-b-color-danger), white 95%);--mg-c-input-toggle-border-radius-ratio:2;--mg-c-input-check-size:var(--mg-b-size-16);--mg-c-menu-item-color:var(--mg-b-color-app);--mg-c-message-border-radius:var(--mg-b-size-radius);--mg-c-modal-border-radius:var(--mg-b-size-radius);--mg-c-modal-title-font-size:var(--mg-b-font-size-h3);--mg-c-panel-border-radius:var(--mg-b-size-radius);--mg-c-panel-box-shadow:var(--mg-b-box-shadow);--mg-c-panel-content-spacing:var(--mg-b-size-16);--mg-c-popover-color-background:var(--mg-b-color-light);--mg-c-popover-color-text:var(--mg-b-color-dark);--mg-c-popover-title-font-size:var(--mg-b-font-size-h5);--mg-c-popover-max-width:var(--mg-b-size-floating-element-max-width);--mg-c-progress-size:var(--mg-b-size-8);--mg-c-progress-border-color:var(--mg-b-color-neutral-80);--mg-c-progress-bar-color-background:var(--mg-b-color-neutral-30);--mg-c-progress-fill-color-background:var(--mg-b-color-app);--mg-c-tabs-color:var(--mg-b-color-app)}html{font-size:62.5%}body{font-family:var(--mg-b-font-family);font-size:var(--mg-b-font-size);-webkit-font-smoothing:antialiased;line-height:var(--mg-b-line-height)}:root{--mg-b-font-family:system-ui, sans-serif}'),o}())?o:null),E&&(d?r.adoptedStyleSheets.push(E):r.adoptedStyleSheets=[...r.adoptedStyleSheets,E])}var R=o=>{const r=A(o,"childNodes");o.tagName&&o.tagName.includes("-")&&o["s-cr"]&&"SLOT-FB"!==o.tagName&&P(r,o.tagName).forEach((o=>{1===o.nodeType&&"SLOT-FB"===o.tagName&&(o.hidden=!!T(o,L(o),!1).length)}));let e=0;for(e=0;e<r.length;e++){const o=r[e];1===o.nodeType&&A(o,"childNodes").length&&R(o)}};function P(o,r,e){let t,n=0,l=[];for(;n<o.length;n++)t=o[n],!t["s-sr"]||r&&t["s-hn"]!==r||void 0!==e||l.push(t),l=[...l,...P(t.childNodes,r,e)];return l}var T=(o,r,e=!0)=>{const t=[];(e&&o["s-sr"]||!o["s-sr"])&&t.push(o);let n=o;for(;n=n.nextSibling;)L(n)!==r||!e&&n["s-sr"]||t.push(n);return t},F=(o,r)=>1===o.nodeType?null===o.getAttribute("slot")&&""===r||o.getAttribute("slot")===r:o["s-sn"]===r||""===r,L=o=>"string"==typeof o["s-sn"]?o["s-sn"]:1===o.nodeType&&o.getAttribute("slot")||void 0;function A(o,r){if("__"+r in o){const e=o["__"+r];return"function"!=typeof e?e:e.bind(o)}return"function"!=typeof o[r]?o[r]:o[r].bind(o)}var D=new WeakMap,U=o=>"sc-"+o.i,W=(o,r,...e)=>{let t=null,n=null,l=null,c=!1,i=!1;const s=[],a=r=>{for(let e=0;e<r.length;e++)t=r[e],Array.isArray(t)?a(t):null!=t&&"boolean"!=typeof t&&((c="function"!=typeof o&&!k(t))&&(t+=""),c&&i?s[s.length-1].m+=t:s.push(c?_(null,t):t),i=c)};if(a(e),r){r.key&&(n=r.key),r.name&&(l=r.name);{const o=r.className||r.class;o&&(r.class="object"!=typeof o?o:Object.keys(o).filter((r=>o[r])).join(" "))}}if("function"==typeof o)return o(null===r?{}:r,s,B);const g=_(o,null);return g.u=r,s.length>0&&(g.v=s),g.p=n,g.h=l,g},_=(o,r)=>({t:0,$:o,m:r,k:null,v:null,u:null,p:null,h:null}),H={},B={forEach:(o,r)=>o.map(q).forEach(r),map:(o,r)=>o.map(q).map(r).map(I)},q=o=>({vattrs:o.u,vchildren:o.v,vkey:o.p,vname:o.h,vtag:o.$,vtext:o.m}),I=o=>{if("function"==typeof o.vtag){const r={...o.vattrs};return o.vkey&&(r.key=o.vkey),o.vname&&(r.name=o.vname),W(o.vtag,r,...o.vchildren||[])}const r=_(o.vtag,o.vtext);return r.u=o.vattrs,r.v=o.vchildren,r.p=o.vkey,r.h=o.vname,r},V=o=>{const r=(o=>o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(o);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${r}))(${r}\\b)`,"g")};V("::slotted"),V(":host"),V(":host-context");var Y,G,J,K=(o,r)=>{if("string"==typeof o&&(16&r||8&r)&&(o.startsWith("{")&&o.endsWith("}")||o.startsWith("[")&&o.endsWith("]")))try{return JSON.parse(o)}catch(o){}return null==o||k(o)?o:4&r?"false"!==o&&(""===o||!!o):2&r?"string"==typeof o?parseFloat(o):"number"==typeof o?o:NaN:1&r?o+"":o},Q=o=>{var r;return null==(r=e(o))?void 0:r.$hostElement$},X=(o,r,e)=>{const t=Q(o);return{emit:o=>Z(t,r,{bubbles:!!(4&e),composed:!!(2&e),cancelable:!!(1&e),detail:o})}},Z=(o,r,e)=>{const t=b.ce(r,e);return o.dispatchEvent(t),t},oo=(o,r,e,t,l,c)=>{if(e===t)return;let i=n(o,r),s=r.toLowerCase();if("class"===r){const r=o.classList,n=eo(e);let l=eo(t);r.remove(...n.filter((o=>o&&!l.includes(o)))),r.add(...l.filter((o=>o&&!n.includes(o))))}else if("style"===r){for(const r in e)t&&null!=t[r]||(r.includes("-")?o.style.removeProperty(r):o.style[r]="");for(const r in t)e&&t[r]===e[r]||(r.includes("-")?o.style.setProperty(r,t[r]):o.style[r]=t[r])}else if("key"===r);else if("ref"===r)t&&t(o);else if(i||"o"!==r[0]||"n"!==r[1]){const n=k(t);if(i||n&&null!==t)try{if(o.tagName.includes("-"))o[r]!==t&&(o[r]=t);else{const n=null==t?"":t;"list"===r?i=!1:null!=e&&o[r]==n||("function"==typeof o.__lookupSetter__(r)?o[r]=n:o.setAttribute(r,n))}}catch(o){}let g=!1;s!==(s=s.replace(/^xlink\:?/,""))&&(r=s,g=!0),null==t||!1===t?!1===t&&""!==o.getAttribute(r)||(g?o.removeAttributeNS(a,r):o.removeAttribute(r)):(!i||4&c||l)&&!n&&1===o.nodeType&&(t=!0===t?"":t,g?o.setAttributeNS(a,r,t):o.setAttribute(r,t))}else if(r="-"===r[2]?r.slice(3):n(g,s)?s.slice(2):s[2]+r.slice(3),e||t){const n=r.endsWith(to);r=r.replace(no,""),e&&b.rel(o,r,e,n),t&&b.ael(o,r,t,n)}},ro=/\s/,eo=o=>("object"==typeof o&&o&&"baseVal"in o&&(o=o.baseVal),o&&"string"==typeof o?o.split(ro):[]),to="Capture",no=RegExp(to+"$"),lo=(o,r,e)=>{const t=11===r.k.nodeType&&r.k.host?r.k.host:r.k,n=o&&o.u||{},l=r.u||{};for(const o of co(Object.keys(n)))o in l||oo(t,o,n[o],void 0,e,r.t);for(const o of co(Object.keys(l)))oo(t,o,n[o],l[o],e,r.t)};function co(o){return o.includes("ref")?[...o.filter((o=>"ref"!==o)),"ref"]:o}var io=!1,so=!1,ao=!1,go=!1,bo=(o,r,e)=>{var t;const n=r.v[e];let l,c,i,s=0;if(io||(ao=!0,"slot"===n.$&&(n.t|=n.v?2:1)),null!==n.m)l=n.k=g.document.createTextNode(n.m);else if(1&n.t)l=n.k=g.document.createTextNode(""),lo(null,n,go);else{if(!g.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(l=n.k=g.document.createElement(!io&&2&n.t?"slot-fb":n.$),lo(null,n,go),null!=Y&&void 0!==Y&&l["s-si"]!==Y&&l.classList.add(l["s-si"]=Y),n.v)for(s=0;s<n.v.length;++s)c=bo(o,n,s),c&&l.appendChild(c)}return l["s-hn"]=J,3&n.t&&(l["s-sr"]=!0,l["s-cr"]=G,l["s-sn"]=n.h||"",l["s-rf"]=null==(t=n.u)?void 0:t.ref,function(o){if(o.assignedElements||o.assignedNodes||!o["s-sr"])return;const r=r=>function(o){const e=[],t=this["s-sn"];(null==o?void 0:o.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const n=this["s-cr"].parentElement;return(n.__childNodes?n.childNodes:(o=>{const r=[];for(let e=0;e<o.length;e++){const t=o[e]["s-nr"]||void 0;t&&t.isConnected&&r.push(t)}return r})(n.childNodes)).forEach((o=>{t===L(o)&&e.push(o)})),r?e.filter((o=>1===o.nodeType)):e}.bind(o);o.assignedElements=r(!0),o.assignedNodes=r(!1)}(l),i=o&&o.v&&o.v[e],i&&i.$===n.$&&o.k&&mo(o.k,!1),ko(G,l,r.k,null==o?void 0:o.k)),l},mo=(o,r)=>{b.t|=1;const e=Array.from(o.__childNodes||o.childNodes);for(let o=e.length-1;o>=0;o--){const t=e[o];t["s-hn"]!==J&&t["s-ol"]&&($o(po(t).parentNode,t,po(t)),t["s-ol"].remove(),t["s-ol"]=void 0,t["s-sh"]=void 0,ao=!0),r&&mo(t,r)}b.t&=-2},uo=(o,r,e,t,n,l)=>{let c,i=o["s-cr"]&&o["s-cr"].parentNode||o;for(i.shadowRoot&&i.tagName===J&&(i=i.shadowRoot);n<=l;++n)t[n]&&(c=bo(null,e,n),c&&(t[n].k=c,$o(i,c,po(r))))},fo=(o,r,e)=>{for(let t=r;t<=e;++t){const r=o[t];if(r){const o=r.k;zo(r),o&&(so=!0,o["s-ol"]?o["s-ol"].remove():mo(o,!0),o.remove())}}},vo=(o,r,e=!1)=>o.$===r.$&&("slot"===o.$?o.h===r.h:e?(e&&!o.p&&r.p&&(o.p=r.p),!0):o.p===r.p),po=o=>o&&o["s-ol"]||o,ho=(o,r,e=!1)=>{const t=r.k=o.k,n=o.v,l=r.v,c=r.m;let i;null===c?(lo(o,r,go),null!==n&&null!==l?((o,r,e,t,n=!1)=>{let l,c,i=0,s=0,a=0,g=0,b=r.length-1,m=r[0],u=r[b],d=t.length-1,f=t[0],v=t[d];for(;i<=b&&s<=d;)if(null==m)m=r[++i];else if(null==u)u=r[--b];else if(null==f)f=t[++s];else if(null==v)v=t[--d];else if(vo(m,f,n))ho(m,f,n),m=r[++i],f=t[++s];else if(vo(u,v,n))ho(u,v,n),u=r[--b],v=t[--d];else if(vo(m,v,n))"slot"!==m.$&&"slot"!==v.$||mo(m.k.parentNode,!1),ho(m,v,n),$o(o,m.k,u.k.nextSibling),m=r[++i],v=t[--d];else if(vo(u,f,n))"slot"!==m.$&&"slot"!==v.$||mo(u.k.parentNode,!1),ho(u,f,n),$o(o,u.k,m.k),u=r[--b],f=t[++s];else{for(a=-1,g=i;g<=b;++g)if(r[g]&&null!==r[g].p&&r[g].p===f.p){a=g;break}a>=0?(c=r[a],c.$!==f.$?l=bo(r&&r[s],e,a):(ho(c,f,n),r[a]=void 0,l=c.k),f=t[++s]):(l=bo(r&&r[s],e,s),f=t[++s]),l&&$o(po(m.k).parentNode,l,po(m.k))}i>b?uo(o,null==t[d+1]?null:t[d+1].k,e,t,s,d):s>d&&fo(r,i,b)})(t,n,r,l,e):null!==l?(null!==o.m&&(t.textContent=""),uo(t,null,r,l,0,l.length-1)):!e&&null!==n&&fo(n,0,n.length-1)):(i=t["s-cr"])?i.parentNode.textContent=c:o.m!==c&&(t.data=c)},yo=[],wo=o=>{let r,e,t;const n=o.__childNodes||o.childNodes;for(const o of n){if(o["s-sr"]&&(r=o["s-cr"])&&r.parentNode){e=r.parentNode.__childNodes||r.parentNode.childNodes;const n=o["s-sn"];for(t=e.length-1;t>=0;t--)if(r=e[t],!r["s-cn"]&&!r["s-nr"]&&r["s-hn"]!==o["s-hn"])if(F(r,n)){let e=yo.find((o=>o.S===r));so=!0,r["s-sn"]=r["s-sn"]||n,e?(e.S["s-sh"]=o["s-hn"],e.j=o):(r["s-sh"]=o["s-hn"],yo.push({j:o,S:r})),r["s-sr"]&&yo.map((o=>{F(o.S,r["s-sn"])&&(e=yo.find((o=>o.S===r)),e&&!o.j&&(o.j=e.j))}))}else yo.some((o=>o.S===r))||yo.push({S:r})}1===o.nodeType&&wo(o)}},zo=o=>{o.u&&o.u.ref&&o.u.ref(null),o.v&&o.v.map(zo)},$o=(o,r,e)=>("string"==typeof r["s-sn"]&&r["s-sr"]&&r["s-cr"]&&ko(r["s-cr"],r,o,r.parentElement),null==o?void 0:o.insertBefore(r,e));function ko(o,r,e,t){var n,l;let c;if(o&&"string"==typeof r["s-sn"]&&r["s-sr"]&&o.parentNode&&o.parentNode["s-sc"]&&(c=r["s-si"]||o.parentNode["s-sc"])){const o=r["s-sn"],i=r["s-hn"];if(null==(n=e.classList)||n.add(c+"-s"),t&&(null==(l=t.classList)?void 0:l.contains(c+"-s"))){let r=(t.__childNodes||t.childNodes)[0],e=!1;for(;r;){if(r["s-sn"]!==o&&r["s-hn"]===i&&r["s-sr"]){e=!0;break}r=r.nextSibling}e||t.classList.remove(c+"-s")}}}var xo=(o,r)=>{if(r&&!o.O&&r["s-p"]){const e=r["s-p"].push(new Promise((t=>o.O=()=>{r["s-p"].splice(e-1,1),t()})))}},So=(o,r)=>{if(o.t|=16,4&o.t)return void(o.t|=512);xo(o,o.C);const e=()=>jo(o,r);if(!r)return $(e);queueMicrotask((()=>{e()}))},jo=(o,r)=>{const e=o.$hostElement$,t=o.o;if(!t)throw Error(`Can't render component <${e.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return r?(o.t|=256,o.M&&(o.M.map((([o,r])=>To(t,o,r,e))),o.M=void 0),n=To(t,"componentWillLoad",void 0,e)):n=To(t,"componentWillUpdate",void 0,e),n=Oo(n,(()=>To(t,"componentWillRender",void 0,e))),Oo(n,(()=>Co(o,t,r)))},Oo=(o,r)=>Eo(o)?o.then(r).catch((o=>{console.error(o),r()})):r(),Eo=o=>o instanceof Promise||o&&o.then&&"function"==typeof o.then,Co=async(o,r,e)=>{var t;const n=o.$hostElement$,l=n["s-rc"];e&&(o=>{const r=o.N,e=o.$hostElement$,t=r.t,n=((o,r)=>{var e;const t=U(r),n=i.get(t);if(!g.document)return t;if(o=11===o.nodeType?o:g.document,n)if("string"==typeof n){let l,c=D.get(o=o.head||o);if(c||D.set(o,c=new Set),!c.has(t)){{l=g.document.createElement("style"),l.innerHTML=n;const t=null!=(e=b.R)?e:x(g.document);if(null!=t&&l.setAttribute("nonce",t),!(1&r.t))if("HEAD"===o.nodeName){const r=o.querySelectorAll("link[rel=preconnect]"),e=r.length>0?r[r.length-1].nextSibling:o.querySelector("style");o.insertBefore(l,(null==e?void 0:e.parentNode)===o?e:null)}else if("host"in o)if(u){const r=new CSSStyleSheet;r.replaceSync(n),d?o.adoptedStyleSheets.unshift(r):o.adoptedStyleSheets=[r,...o.adoptedStyleSheets]}else{const r=o.querySelector("style");r?r.innerHTML=n+r.innerHTML:o.prepend(l)}else o.append(l);1&r.t&&o.insertBefore(l,null)}4&r.t&&(l.innerHTML+=s),c&&c.add(t)}}else o.adoptedStyleSheets.includes(n)||(d?o.adoptedStyleSheets.push(n):o.adoptedStyleSheets=[...o.adoptedStyleSheets,n]);return t})(e.shadowRoot?e.shadowRoot:e.getRootNode(),r);10&t&&(e["s-sc"]=n,e.classList.add(n+"-h"))})(o);Mo(o,r,n,e),l&&(l.map((o=>o())),n["s-rc"]=void 0);{const r=null!=(t=n["s-p"])?t:[],e=()=>No(o);0===r.length?e():(Promise.all(r).then(e),o.t|=4,r.length=0)}},Mo=(o,r,e,t)=>{try{r=r.render&&r.render(),o.t&=-17,o.t|=2,((o,r,e=!1)=>{var t,n,l,c;const i=o.$hostElement$,s=o.N,a=o.P||_(null,null),m=(o=>o&&o.$===H)(r)?r:W(null,null,r);if(J=i.tagName,s.T&&(m.u=m.u||{},s.T.map((([o,r])=>m.u[r]=i[o]))),e&&m.u)for(const o of Object.keys(m.u))i.hasAttribute(o)&&!["key","ref","style","class"].includes(o)&&(m.u[o]=i[o]);if(m.$=null,m.t|=4,o.P=m,m.k=a.k=i.shadowRoot||i,Y=i["s-sc"],io=!(!(1&s.t)||128&s.t),G=i["s-cr"],so=!1,ho(a,m,e),b.t|=1,ao){wo(m.k);for(const o of yo){const r=o.S;if(!r["s-ol"]&&g.document){const o=g.document.createTextNode("");o["s-nr"]=r,$o(r.parentNode,r["s-ol"]=o,r)}}for(const o of yo){const r=o.S,i=o.j;if(i){const o=i.parentNode;let e=i.nextSibling;{let l=null==(t=r["s-ol"])?void 0:t.previousSibling;for(;l;){let t=null!=(n=l["s-nr"])?n:null;if(t&&t["s-sn"]===r["s-sn"]&&o===(t.__parentNode||t.parentNode)){for(t=t.nextSibling;t===r||(null==t?void 0:t["s-sr"]);)t=null==t?void 0:t.nextSibling;if(!t||!t["s-nr"]){e=t;break}}l=l.previousSibling}}(!e&&o!==(r.__parentNode||r.parentNode)||(r.__nextSibling||r.nextSibling)!==e)&&r!==e&&(!r["s-hn"]&&r["s-ol"]&&(r["s-hn"]=r["s-ol"].parentNode.nodeName),$o(o,r,e),1===r.nodeType&&"SLOT-FB"!==r.tagName&&(r.hidden=null!=(l=r["s-ih"])&&l)),r&&"function"==typeof i["s-rf"]&&i["s-rf"](i)}else 1===r.nodeType&&(e&&(r["s-ih"]=null!=(c=r.hidden)&&c),r.hidden=!0)}}so&&R(m.k),b.t&=-2,yo.length=0,G=void 0})(o,r,t)}catch(r){l(r,o.$hostElement$)}return null},No=o=>{const r=o.$hostElement$,e=o.o,t=o.C;To(e,"componentDidRender",void 0,r),64&o.t?To(e,"componentDidUpdate",void 0,r):(o.t|=64,Fo(r),To(e,"componentDidLoad",void 0,r),o.F(r),t||Po()),o.L(r),o.O&&(o.O(),o.O=void 0),512&o.t&&z((()=>So(o,!1))),o.t&=-517},Ro=o=>{var r;{const t=e(o),n=null==(r=null==t?void 0:t.$hostElement$)?void 0:r.isConnected;return n&&2==(18&t.t)&&So(t,!1),n}},Po=()=>{z((()=>Z(g,"appload",{detail:{namespace:"mg-components"}})))},To=(o,r,e,t)=>{if(o&&o[r])try{return o[r](e)}catch(o){l(o,t)}},Fo=o=>o.classList.add("hydrated"),Lo=(o,r,t,n)=>{const c=e(o);if(!c)return;if(!c)throw Error(`Couldn't find host element for "${n.i}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const i=c.$hostElement$,s=c.A.get(r),a=c.t,g=c.o;if(t=K(t,n.D[r][0]),(!(8&a)||void 0===s)&&t!==s&&(!Number.isNaN(s)||!Number.isNaN(t))&&(c.A.set(r,t),g)){if(n.U&&128&a){const o=n.U[r];o&&o.map((o=>{try{g[o](t,s,r)}catch(o){l(o,i)}}))}if(2==(18&a)){if(g.componentShouldUpdate&&!1===g.componentShouldUpdate(t,s,r))return;So(c,!1)}}},Ao=(o,r,t)=>{var n,l;const c=o.prototype;if(r.D||r.U||o.watchers){o.watchers&&!r.U&&(r.U=o.watchers);const i=Object.entries(null!=(n=r.D)?n:{});if(i.map((([o,[n]])=>{if(31&n||2&t&&32&n){const{get:l,set:i}=Object.getOwnPropertyDescriptor(c,o)||{};l&&(r.D[o][0]|=2048),i&&(r.D[o][0]|=4096),(1&t||!l)&&Object.defineProperty(c,o,{get(){{if(!(2048&r.D[o][0]))return((o,r)=>e(this).A.get(r))(0,o);const t=e(this),n=t?t.o:c;if(!n)return;return n[o]}},configurable:!0,enumerable:!0}),Object.defineProperty(c,o,{set(l){const c=e(this);if(c){if(i){const e=32&n?this[o]:c.$hostElement$[o];return void 0===e&&c.A.get(o)?l=c.A.get(o):!c.A.get(o)&&e&&c.A.set(o,e),i.call(this,K(l,n)),void Lo(this,o,l=32&n?this[o]:c.$hostElement$[o],r)}{if(!(1&t&&4096&r.D[o][0]))return Lo(this,o,l,r),void(1&t&&!c.o&&c.W.then((()=>{4096&r.D[o][0]&&c.o[o]!==c.A.get(o)&&(c.o[o]=l)})));const e=()=>{const e=c.o[o];!c.A.get(o)&&e&&c.A.set(o,e),c.o[o]=K(l,n),Lo(this,o,c.o[o],r)};c.o?e():c.W.then((()=>e()))}}}})}else 1&t&&64&n&&Object.defineProperty(c,o,{value(...r){var t;const n=e(this);return null==(t=null==n?void 0:n._)?void 0:t.then((()=>{var e;return null==(e=n.o)?void 0:e[o](...r)}))}})})),1&t){const t=new Map;c.attributeChangedCallback=function(o,n,l){b.jmp((()=>{var i;const s=t.get(o);if(this.hasOwnProperty(s))l=this[s],delete this[s];else{if(c.hasOwnProperty(s)&&"number"==typeof this[s]&&this[s]==l)return;if(null==s){const t=e(this),c=null==t?void 0:t.t;if(t&&c&&!(8&c)&&128&c&&l!==n){const e=t.o,c=null==(i=r.U)?void 0:i[o];null==c||c.forEach((r=>{null!=e[r]&&e[r].call(e,l,n,o)}))}return}}const a=Object.getOwnPropertyDescriptor(c,s);(l=(null!==l||"boolean"!=typeof this[s])&&l)===this[s]||a.get&&!a.set||(this[s]=l)}))},o.observedAttributes=Array.from(new Set([...Object.keys(null!=(l=r.U)?l:{}),...i.filter((([o,r])=>31&r[0])).map((([o,e])=>{var n;const l=e[1]||o;return t.set(l,o),512&e[0]&&(null==(n=r.T)||n.push([o,l])),l}))]))}}return o},Do=(o,r)=>{To(o,"connectedCallback",void 0,r)},Uo=(o,r)=>{To(o,"disconnectedCallback",void 0,r||o)},Wo=(o,r={})=>{var t;if(!g.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const n=[],a=r.exclude||[],m=g.customElements,d=g.document.head,f=d.querySelector("meta[charset]"),v=g.document.createElement("style"),p=[];let h,y=!0;Object.assign(b,r),b.l=new URL(r.resourcesUrl||"./",g.document.baseURI).href;let w=!1;if(o.map((o=>{o[1].map((r=>{var t;const s={t:r[0],i:r[1],D:r[2],H:r[3]};4&s.t&&(w=!0),s.D=r[2],s.H=r[3],s.T=[],s.U=null!=(t=r[4])?t:{};const d=s.i,f=class extends HTMLElement{constructor(o){if(super(o),this.hasRegisteredEventListeners=!1,((o,r)=>{const e={t:0,$hostElement$:o,N:r,A:new Map};e._=new Promise((o=>e.L=o)),e.W=new Promise((o=>e.F=o)),o["s-p"]=[],o["s-rc"]=[];const t=e;o.__stencil__getHostRef=()=>t})(o=this,s),1&s.t)if(o.shadowRoot){if("open"!==o.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${s.i}! Mode is set to ${o.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else N.call(o,s)}connectedCallback(){const o=e(this);o&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,_o(this,o,s.H)),h&&(clearTimeout(h),h=null),y?p.push(this):b.jmp((()=>(o=>{if(!(1&b.t)){const r=e(o);if(!r)return;const t=r.N,n=()=>{};if(1&r.t)_o(o,r,t.H),(null==r?void 0:r.o)?Do(r.o,o):(null==r?void 0:r.W)&&r.W.then((()=>Do(r.o,o)));else{r.t|=1,12&t.t&&(o=>{if(!g.document)return;const r=o["s-cr"]=g.document.createComment("");r["s-cn"]=!0,$o(o,r,o.firstChild)})(o);{let e=o;for(;e=e.parentNode||e.host;)if(e["s-p"]){xo(r,r.C=e);break}}t.D&&Object.entries(t.D).map((([r,[e]])=>{if(31&e&&o.hasOwnProperty(r)){const e=o[r];delete o[r],o[r]=e}})),(async(o,r,e)=>{let t;if(!(32&r.t)){if(r.t|=32,e.B){const n=((o,r)=>{const e=o.i.replace(/-/g,"_"),t=o.B;if(!t)return;const n=c.get(t);return n?n[e]:import(`./${t}.entry.js`).then((o=>(c.set(t,o),o[e])),(o=>{l(o,r.$hostElement$)}))
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(e,r);if(n&&"then"in n){const o=()=>{};t=await n,o()}else t=n;if(!t)throw Error(`Constructor for "${e.i}#${r.q}" was not found`);t.isProxied||(e.U=t.watchers,Ao(t,e,2),t.isProxied=!0);const i=()=>{};r.t|=8;try{new t(r)}catch(r){l(r,o)}r.t&=-9,r.t|=128,i(),Do(r.o,o)}else t=o.constructor,customElements.whenDefined(o.localName).then((()=>r.t|=128));if(t&&t.style){let o;"string"==typeof t.style&&(o=t.style);const r=U(e);if(!i.has(r)){const t=()=>{};((o,r,e)=>{let t=i.get(o);u&&e?(t=t||new CSSStyleSheet,"string"==typeof t?t=r:t.replaceSync(r)):t=r,i.set(o,t)})(r,o,!!(1&e.t)),t()}}}const n=r.C,s=()=>So(r,!0);n&&n["s-rc"]?n["s-rc"].push(s):s()})(o,r,t)}n()}})(this))))}disconnectedCallback(){b.jmp((()=>(async o=>{if(!(1&b.t)){const r=e(o);(null==r?void 0:r.I)&&(r.I.map((o=>o())),r.I=void 0),(null==r?void 0:r.o)?Uo(r.o,o):(null==r?void 0:r.W)&&r.W.then((()=>Uo(r.o,o)))}D.has(o)&&D.delete(o),o.shadowRoot&&D.has(o.shadowRoot)&&D.delete(o.shadowRoot)})(this))),b.raf((()=>{var o;const r=e(this);if(!r)return;const t=p.findIndex((o=>o===this));t>-1&&p.splice(t,1),(null==(o=null==r?void 0:r.P)?void 0:o.k)instanceof Node&&!r.P.k.isConnected&&delete r.P.k}))}componentOnReady(){var o;return null==(o=e(this))?void 0:o.W}};s.B=o[0],a.includes(d)||m.get(d)||(n.push(d),m.define(d,Ao(f,s,1)))}))})),n.length>0&&(w&&(v.textContent+=s),v.textContent+=n.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const o=null!=(t=b.R)?t:x(g.document);null!=o&&v.setAttribute("nonce",o),d.insertBefore(v,f?f.nextSibling:d.firstChild)}y=!1,p.length?p.map((o=>o.connectedCallback())):b.jmp((()=>h=setTimeout(Po,30)))},_o=(o,r,e)=>{e&&g.document&&e.map((([e,t,n])=>{const l=o,c=Ho(r,n),i=Bo(e);b.ael(l,t,c,i),(r.I=r.I||[]).push((()=>b.rel(l,t,c,i)))}))},Ho=(o,r)=>e=>{var t;try{256&o.t?null==(t=o.o)||t[r](e):(o.M=o.M||[]).push([r,e])}catch(r){l(r,o.$hostElement$)}},Bo=o=>({passive:!!(1&o),capture:!!(2&o)}),qo=o=>b.R=o;export{H,Q as a,Wo as b,X as c,Ro as f,o as g,W as h,m as p,t as r,qo as s}
@@ -0,0 +1 @@
1
+ class t{classes;constructor(t=[]){this.classes=t}add=t=>{this.has(t)||this.classes.push(t)};delete=t=>{const s=this.classes.indexOf(t);s>-1&&this.classes.splice(s,1)};has=t=>this.classes.includes(t);join=()=>this.classes.join(" ")}const s=t=>"object"==typeof t&&!Array.isArray(t)&&null!==t,e=(t,r,i)=>{if(!s(t)||"string"!=typeof r)return i;const[n,...o]=r.split(".");return o.length?e(t[n],o.join("."),i):t[n]??i},r=t=>Array.isArray(t)&&t.every((t=>"string"==typeof t)),i=t=>"string"==typeof t&&""!==t.trim(),n=t=>"object"==typeof t?JSON.stringify(t):String(t),o=t=>"string"==typeof t?t.toLocaleLowerCase().normalize("NFD").replaceAll(/[\u0300-\u036f]/g,""):t,a=(t="",s=10)=>{const e=new Uint8Array(s);crypto.getRandomValues(e);const r=Array.from(e).map((t=>t.toString(16).padStart(2,"0"))).join("").slice(0,s);return""!==t?`${t}-${r}`:r},h=t=>i(t)&&null!==/^([a-z][a-z0-9]*)(-[a-z0-9]+)*$/.exec(t),f=t=>{let e;return"string"==typeof t?e=t:Boolean(t)&&"object"==typeof t&&(s(t)||Array.isArray(t))?e=JSON.stringify(t):null!=t&&"boolean"!=typeof t&&"object"!=typeof t&&(e=String(t)),e?e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,((t,s)=>(s>0?"-":"")+t.toLowerCase())).replace(/[^a-z0-9-]+/g,"-").replace(/--+/g,"-").replace(/(?:^-)|(?:-$)/g,""):e},u=async t=>{if(t)return t()},c={FIRST:"first",NEXT:"next",PREVIOUS:"previous",LAST:"last"};class y{items=[];total;top=10;next;baseIndex=1;constructor(t){if(!s(t))throw new Error("Page - init must match IPage type.");Array.isArray(t.items)&&(this.items=t.items),"number"==typeof t.top&&(this.top=t.top),this.total="number"==typeof t.total?t.total:this.items.length,this.next=t.next}getIndexFromCursor=(t="first",s)=>{if(!Array.isArray(this.items)||!this.items.length)return null;const e=this.items.length-this.baseIndex;let r,i=0;if(["previous","next"].includes(t)&&s){const t=this.items.findIndex((t=>JSON.stringify(t)===JSON.stringify(s)));if(-1===t)return 0;i=t}return r="first"===t?0:"last"===t?e:"previous"===t?JSON.stringify(this.items[i])===JSON.stringify(this.items[0])?e:i-this.baseIndex:"next"===t?JSON.stringify(this.items[i])===JSON.stringify(this.items[e])?0:i+this.baseIndex:0,r}}class p{items=[];#t=10;#s;#e;constructor(t,e){Array.isArray(t)&&(this.items=t),e&&(["string","function"].includes(typeof e.next)||s(e.next)&&URL.canParse(e.next))&&(this.#s=e.next),"number"==typeof e?.top&&(this.#t=e.top),"number"==typeof e?.total&&(this.#e=e.total)}getPage=(t=0,s)=>{const e="function"==typeof s?this.items.filter(s):this.items;let r;return this.#s?r=this.#s:e.length>t+this.#t&&(r=()=>this.getPage(t+this.#t,s)),new y({items:e.slice(t,t+this.#t),total:this.#e,top:this.#t,next:r})}}const l=/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/,g=t=>t.toISOString().split("T")[0],b=(t,s)=>s.includes(t?.tagName.toLowerCase()),m='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]), [identifier], mg-button',S=t=>"number"==typeof t&&!Number.isNaN(t),d=t=>[t,...x(t),...A(t)],x=(t,s=[])=>{if(t.self!==t.top)try{const e=t.parent;return e?(s.push(e),x(e,s)):s}catch(t){return console.error("Different hosts between iframes:",t),s}return s},A=(t,s=[])=>{if(t.frames.length>0)for(const e of Array.from(t.frames))s.push(e),A(e,s);return s};export{t as C,p as P,c as a,r as b,i as c,y as d,S as e,f,e as g,a as h,s as i,h as j,b as k,o as l,l as m,u as n,g as o,d as p,m as q,n as t}