@mgdis/mg-components 6.2.0 → 6.3.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.
- package/dist/cjs/{index-52d5f3d4.js → index-a5b2cd1b.js} +3 -3
- package/dist/cjs/index-a5b2cd1b.js.map +1 -0
- package/dist/cjs/index.es-ac7c22e3.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mg-action-more_36.cjs.entry.js +59 -18
- package/dist/cjs/mg-action-more_36.cjs.entry.js.map +1 -1
- package/dist/cjs/mg-alert.cjs.entry.js +4 -2
- package/dist/cjs/mg-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/mg-components.cjs.js +3 -3
- package/dist/cjs/mg-components.cjs.js.map +1 -1
- package/dist/cjs/mg-loader.cjs.entry.js +1 -1
- package/dist/cjs/mg-progress.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/atoms/mg-button/mg-button.conf.js +4 -0
- package/dist/collection/components/atoms/mg-button/mg-button.conf.js.map +1 -1
- package/dist/collection/components/atoms/mg-button/mg-button.js +63 -2
- package/dist/collection/components/atoms/mg-button/mg-button.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js.map +1 -1
- package/dist/collection/components/molecules/mg-alert/mg-alert.js +17 -1
- package/dist/collection/components/molecules/mg-alert/mg-alert.js.map +1 -1
- package/dist/collection/components/molecules/mg-modal/mg-modal.js +19 -4
- package/dist/collection/components/molecules/mg-modal/mg-modal.js.map +1 -1
- package/dist/collection/components/molecules/mg-popover/mg-popover.js +18 -1
- package/dist/collection/components/molecules/mg-popover/mg-popover.js.map +1 -1
- package/dist/components/index.es.js.map +1 -1
- package/dist/components/mg-alert.js +3 -1
- package/dist/components/mg-alert.js.map +1 -1
- package/dist/components/mg-button2.js +42 -2
- package/dist/components/mg-button2.js.map +1 -1
- package/dist/components/mg-input-numeric.js +1 -1
- package/dist/components/mg-input-numeric.js.map +1 -1
- package/dist/components/mg-input-password.js +1 -1
- package/dist/components/mg-input-password.js.map +1 -1
- package/dist/components/mg-input-select2.js +1 -1
- package/dist/components/mg-input-select2.js.map +1 -1
- package/dist/components/mg-input-text2.js +2 -2
- package/dist/components/mg-input-text2.js.map +1 -1
- package/dist/components/mg-input-textarea.js +1 -1
- package/dist/components/mg-input-textarea.js.map +1 -1
- package/dist/components/mg-modal.js +5 -4
- package/dist/components/mg-modal.js.map +1 -1
- package/dist/components/mg-popover2.js +4 -1
- package/dist/components/mg-popover2.js.map +1 -1
- package/dist/esm/{index-81752ffe.js → index-eb0e1053.js} +3 -3
- package/dist/esm/index-eb0e1053.js.map +1 -0
- package/dist/esm/index.es-940821a9.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mg-action-more_36.entry.js +59 -18
- package/dist/esm/mg-action-more_36.entry.js.map +1 -1
- package/dist/esm/mg-alert.entry.js +4 -2
- package/dist/esm/mg-alert.entry.js.map +1 -1
- package/dist/esm/mg-components.js +4 -4
- package/dist/esm/mg-components.js.map +1 -1
- package/dist/esm/mg-loader.entry.js +1 -1
- package/dist/esm/mg-progress.entry.js +1 -1
- package/dist/mg-components/mg-components.esm.js +1 -1
- package/dist/mg-components/mg-components.esm.js.map +1 -1
- package/dist/mg-components/{p-2298352f.js → p-15b6849a.js} +2 -2
- package/dist/mg-components/p-15b6849a.js.map +1 -0
- package/dist/mg-components/{p-abddacc2.entry.js → p-3aecf564.entry.js} +2 -2
- package/dist/mg-components/p-6f3d70b2.entry.js +2 -0
- package/dist/mg-components/p-6f3d70b2.entry.js.map +1 -0
- package/dist/mg-components/p-a17ea0af.entry.js +2 -0
- package/dist/mg-components/p-a17ea0af.entry.js.map +1 -0
- package/dist/mg-components/{p-31e6c1a7.entry.js → p-d0086664.entry.js} +2 -2
- package/dist/mg-components/p-ee51ec5e.js.map +1 -1
- package/dist/types/components/atoms/mg-button/mg-button.conf.d.ts +9 -1
- package/dist/types/components/atoms/mg-button/mg-button.d.ts +11 -1
- package/dist/types/components/molecules/mg-alert/mg-alert.d.ts +4 -0
- package/dist/types/components/molecules/mg-modal/mg-modal.d.ts +4 -0
- package/dist/types/components/molecules/mg-popover/mg-popover.d.ts +4 -0
- package/dist/types/components.d.ts +33 -10
- package/ide/intellij/web-types.json +37 -5
- package/ide/vscode/html-custom-data.json +26 -4
- package/package.json +26 -36
- package/dist/cjs/index-52d5f3d4.js.map +0 -1
- package/dist/esm/index-81752ffe.js.map +0 -1
- package/dist/mg-components/p-2298352f.js.map +0 -1
- package/dist/mg-components/p-67c9be27.entry.js +0 -2
- package/dist/mg-components/p-67c9be27.entry.js.map +0 -1
- package/dist/mg-components/p-95895169.entry.js +0 -2
- package/dist/mg-components/p-95895169.entry.js.map +0 -1
- /package/dist/mg-components/{p-abddacc2.entry.js.map → p-3aecf564.entry.js.map} +0 -0
- /package/dist/mg-components/{p-31e6c1a7.entry.js.map → p-d0086664.entry.js.map} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,h as e,H as i,g as n,c as a}from"./p-15b6849a.js";import{q as o,Y as r,X as s,m as l,t as c,G as h,K as d,e as g,H as m,z as u,f as p,c as v,p as f,d as b,u as w,$ as _,J as x,Z as z,Q as y}from"./p-ee51ec5e.js";import{i as k}from"./p-a49e2b74.js";const M={VISIBLE:"visible",HIDDEN:"hidden",DISABLED:"disabled",ACTIVE:"active"};const H=["_blank","_self","_parent","_top"];const C={VERTICAL:"vertical",HORIZONTAL:"horizontal"};const V=["medium","large","xlarge"];const L=".mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}:host{--mg-c-popover-padding-vertical:var(--mg-b-size-8);--mg-c-popover-padding-horizontal:0;--mg-c-popover-max-width:unset}.mg-c-action-more__divider{--mg-c-divider-spacing-vertical:var(--mg-b-size-4)}.mg-c-action-more__chevron{transition:200ms}.mg-c-action-more__chevron--rotate.mg-c-action-more__chevron{transform:rotate(180deg)}";const B=L;const D=t=>{const e=t;return typeof e==="object"&&e.every((t=>typeof t==="object"&&typeof t.label==="string"&&typeof t.mouseEventHandler==="function"||$(t)))};const $=t=>typeof t==="object"&&t.isDivider;const E=t=>{const e=t;return typeof e==="object"&&typeof e.variant==="string"&&typeof e.isIcon==="boolean"};const A=t=>{const e=t;return typeof e==="object"&&typeof e.icon==="string"};const q=class{constructor(e){t(this,e);this.name="mg-action-more";this.classBase="mg-c-action-more";this.mgPopoverIdentifier=o(this.name);this.toggleExpanded=()=>{this.expanded=!this.expanded};this.handleDisplayChange=t=>{this.expanded=t.detail};this.handleButton=()=>{this.toggleExpanded()};this.handleItemClick=(t,e)=>{this.expanded=false;e(t)};this.items=undefined;this.icon=undefined;this.button={variant:"flat",isIcon:true};this.displayChevron=undefined;this.expanded=false}validateItems(t){if(!D(t)){throw new Error(`<${this.name}> prop "items" is required and all values must be the same type, MgActionMoreItemType or MgActionMoreDividerType. Passed value: ${r(t)}.`)}else if(D(t)&&t.length>0&&($(t[0])||$(t[t.length-1]))){throw new Error(`<${this.name}> prop "items" can’t have a divider at the beginning or the end of the array. Passed value: ${r(t)}.`)}}validateIcon(t){if(t&&!A(t)){throw new Error(`<${this.name}> prop "icon" must match MgActionMoreIconType. Passed value: ${r(t)}.`)}else if((t===null||t===void 0?void 0:t.icon)===undefined&&Boolean(this.button.isIcon)){this.icon={icon:"ellipsis"}}}validateButton(t){if(t&&!E(t)){throw new Error(`<${this.name}> prop "button" must match MgActionMoreButtonType. Passed value: ${r(t)}.`)}}validateDisplayChevron(t){if(t&&this.button.isIcon===true){throw new Error(`<${this.name}> prop "displayChevron" can't be used with a 'button" prop "isIcon" attribute.`)}}componentWillLoad(){this.messages=k(this.element).messages.actionMore;this.validateItems(this.items);this.validateButton(this.button);this.validateIcon(this.icon);this.validateDisplayChevron(this.displayChevron)}render(){const t=this.button.label||this.messages.label;const n=[t];if(!this.button.isIcon&&this.displayChevron){n.push(e("span",{class:{[`${this.classBase}__chevron`]:true,[`${this.classBase}__chevron--rotate`]:this.expanded===true}},e("mg-icon",{icon:"chevron-down"})))}return e(i,{key:"3653a59754e22bba9e476eeb2a92c663a048491c","data-mg-popover-guard":this.mgPopoverIdentifier},e("span",{key:"3115bbd0586f5a301aa17d83cf2cc5ebab7d10ec",class:this.classBase},e("mg-popover",{key:"1ab5bdf851875423a9af68e3d26c1d545e37aa0d",identifier:this.mgPopoverIdentifier,display:this.expanded,"onDisplay-change":this.handleDisplayChange},e("mg-button",{key:"b5e25273f75d1f45a02d3fdec9d05573edfee1ad",variant:this.button.variant,isIcon:this.button.isIcon,disabled:this.button.disabled,type:"button",label:t,onClick:this.handleButton},this.icon&&e("mg-icon",Object.assign({key:"164320fd014593dbc7167bfc5d04136593351619"},this.icon)),!this.button.isIcon&&n),e("div",{key:"2be6989ce6ba7a8a830be0cd0b8e323b9178c8f5",slot:"content"},e("mg-menu",{key:"aa586ac5fdacea97967d1aac3ecbf77ca9ae41de",direction:C.VERTICAL,label:this.messages.label},this.items.map((t=>{var i,n;return $(t)?e("mg-divider",{class:"mg-c-action-more__divider",key:"divider"}):e("mg-menu-item",{key:t.label,status:t.status||M.VISIBLE,target:t.target,href:t.href,onClick:e=>this.handleItemClick(e,t.mouseEventHandler)},((i=t.icon)===null||i===void 0?void 0:i.icon)&&e("mg-icon",{icon:t.icon.icon,variant:t.icon.variant,variantStyle:t.icon.variantStyle,slot:"image"}),e("span",{slot:"label"},t.label),((n=t.badge)===null||n===void 0?void 0:n.label)&&e("mg-badge",{label:t.badge.label,value:t.badge.value,slot:"information",variant:"text-color"}))})))))))}get element(){return n(this)}static get watchers(){return{items:["validateItems"],icon:["validateIcon"],button:["validateButton"],displayChevron:["validateDisplayChevron"]}}};q.style=B;const I=["info","primary","secondary","success","warning","danger","text-color"];const T=".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}}/*!\n * @prop --mg-c-badge-size: Defines the height and minimum width of the badge. The default value is `--mg-b-size-16`.\n * @prop --mg-c-badge-font-size: Defines the font size of the badge. The default value is `--mg-b-font-size-small`.\n * @prop --mg-c-badge-color-text: Defines the font color of the badge when used with the `text-color` variant and without `outline`. The default value is `--mg-b-color-light`.\n */.mg-c-badge{min-width:var(--mg-c-badge-size);height:var(--mg-c-badge-size);box-sizing:border-box;padding:0 var(--mg-b-size-4);border:var(--mg-b-size-border) solid;border-radius:calc(var(--mg-c-badge-size)/2);font-size:var(--mg-c-badge-font-size);font-weight:600;line-height:var(--mg-c-badge-size);text-align:center}.mg-c-badge.mg-c-badge--primary{border-color:var(--mg-b-color-primary);background-color:var(--mg-b-color-primary);color:var(--mg-b-color-text-on-primary)}.mg-c-badge.mg-c-badge--primary.mg-c-badge--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-primary)}.mg-c-badge.mg-c-badge--secondary{border-color:var(--mg-b-color-secondary);background-color:var(--mg-b-color-secondary);color:var(--mg-b-color-text-on-secondary)}.mg-c-badge.mg-c-badge--secondary.mg-c-badge--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-secondary)}.mg-c-badge.mg-c-badge--danger{border-color:var(--mg-b-color-danger);background-color:var(--mg-b-color-danger);color:var(--mg-b-color-text-on-danger)}.mg-c-badge.mg-c-badge--danger.mg-c-badge--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-danger)}.mg-c-badge.mg-c-badge--info{border-color:var(--mg-b-color-info);background-color:var(--mg-b-color-info);color:var(--mg-b-color-text-on-info)}.mg-c-badge.mg-c-badge--info.mg-c-badge--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-info)}.mg-c-badge.mg-c-badge--success{border-color:var(--mg-b-color-success);background-color:var(--mg-b-color-success);color:var(--mg-b-color-text-on-success)}.mg-c-badge.mg-c-badge--success.mg-c-badge--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-success)}.mg-c-badge.mg-c-badge--warning{border-color:var(--mg-b-color-warning);background-color:var(--mg-b-color-warning);color:var(--mg-b-color-text-on-warning)}.mg-c-badge.mg-c-badge--warning.mg-c-badge--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-warning)}.mg-c-badge.mg-c-badge--text-color{border-color:currentcolor;background-color:currentcolor}.mg-c-badge.mg-c-badge--text-color .mg-c-badge__value{color:var(--mg-c-badge-color-text, var(--mg-b-color-light))}.mg-c-badge.mg-c-badge--text-color.mg-c-badge--outline{background-color:rgba(0,0,0,0)}.mg-c-badge.mg-c-badge--text-color.mg-c-badge--outline .mg-c-badge__value{color:currentcolor}.mg-c-badge,mg-badge{display:inline-flex;align-items:center;justify-content:center}";const P=T;const O=class{constructor(e){t(this,e);this.classOutline=`mg-c-badge--outline`;this.value=undefined;this.label=undefined;this.variant=I[0];this.outline=undefined;this.classCollection=new s(["mg-c-badge"])}validateValue(t){if(/^[^A-Z]+$/i.exec(`${t}`)===null){throw new Error(`<mg-badge> prop "value" is required and must be integer and/or special character. Passed value: ${r(t)}.`)}}validateLabel(t){if(!l(t)){throw new Error(`<mg-badge> prop "label" is required and must be a string. Passed value: ${r(t)}.`)}}validateVariant(t,e){if(!I.includes(t)){throw new Error(`<mg-badge> prop "variant" must be one of: ${I.join(", ")}. Passed value: ${r(t)}.`)}else{if(e!==undefined){this.classCollection.delete(`mg-c-badge--${e}`)}this.classCollection.add(`mg-c-badge--${t}`)}}validateOutline(t){if(t)this.classCollection.add(this.classOutline);else this.classCollection.delete(this.classOutline)}componentWillLoad(){this.validateValue(this.value);this.validateLabel(this.label);this.validateVariant(this.variant);this.validateOutline(this.outline)}render(){return e("span",{key:"db20118c3cfbc79ca65bcbbda1029857211615b2",class:this.classCollection.join()},e("span",{key:"1898f1b56935c4acdab79f8c794025009f2d943c",class:"mg-c-badge__value"},this.value),e("span",{key:"2ca8814b685441f11c8a1804c1e98d3e58f26d84",class:"mg-u-visually-hidden"},this.label))}static get watchers(){return{value:["validateValue"],label:["validateLabel"],variant:["validateVariant"],outline:["validateOutline"]}}};O.style=P;const j=["medium","large"];const S=["primary","secondary","danger","danger-alt","info","flat","success","link"];const W="/*!\n * @prop --mg-c-button-border-radius: Defines the border radius of the button. The default value is `--mg-b-size-radius`.\n * @prop --mg-c-button-border-top-width: Defines the top border width of the button. Unset by default, fallback on `--mg-b-size-border`.\n * @prop --mg-c-button-border-right-width: Defines the right border width of the button. Unset by default, fallback on `--mg-b-size-border`.\n * @prop --mg-c-button-border-bottom-width: Defines the bottom border width of the button. Unset by default, fallback on `--mg-b-size-border`.\n * @prop --mg-c-button-border-left-width: Defines the left border width of the button. Unset by default, fallback on `--mg-b-size-border`.\n * @prop --mg-c-button-border-radius-top-left: Defines the top left border radius of the button. Unset by default, fallback on `--mg-c-button-border-radius`.\n * @prop --mg-c-button-border-radius-top-right: Defines the top right border radius of the button. Unset by default, fallback on `--mg-c-button-border-radius`.\n * @prop --mg-c-button-border-radius-bottom-right: Defines the bottom right border radius of the button. Unset by default, fallback on `--mg-c-button-border-radius`.\n * @prop --mg-c-button-border-radius-bottom-left: Defines the bottom left border radius of the button. Unset by default, fallback on `--mg-c-button-border-radius`.\n * @prop --mg-c-button-font-weight: Defines the font weight of the button. Unset by default, fallback on `normal`.\n * @prop --mg-c-button-icon-border-radius: Defines the border radius of the button in icon mode. The default value is `--mg-b-size-min-height`.\n */:host{display:inline-block;max-width:100%;vertical-align:middle}:host(:hover) .mg-c-button--flat:not(.mg-c-button--disabled){background:color-mix(in srgb, var(--mg-b-color-dark), transparent 90%)}:host([full-width]){display:block}:host([disabled]),:host([aria-disabled=true]){pointer-events:none}.mg-c-button.mg-c-button--primary{/*!\n * @prop --mg-c-button-color-background-primary: Defines the background color for the primary variant button.\n * @prop --mg-c-button-color-border-primary: Defines the border color for the primary variant button.\n * @prop --mg-c-button-color-gradient-primary: Defines the gradient color for the primary variant button.\n * @prop --mg-c-button-color-text-primary: Defines the font color for the primary variant button.\n */border-color:var(--mg-c-button-color-border-primary);background:linear-gradient(to bottom, var(--mg-c-button-color-background-primary), var(--mg-c-button-color-gradient-primary));color:var(--mg-c-button-color-text-primary)}:host(:hover) .mg-c-button.mg-c-button--primary:not(.mg-c-button--disabled){background:var(--mg-c-button-color-background-primary)}.mg-c-button.mg-c-button--secondary{/*!\n * @prop --mg-c-button-color-background-secondary: Defines the background color for the secondary variant button.\n * @prop --mg-c-button-color-border-secondary: Defines the border color for the secondary variant button.\n * @prop --mg-c-button-color-gradient-secondary: Defines the gradient color for the secondary variant button.\n * @prop --mg-c-button-color-text-secondary: Defines the font color for the secondary variant button.\n */border-color:var(--mg-c-button-color-border-secondary);background:linear-gradient(to bottom, var(--mg-c-button-color-background-secondary), var(--mg-c-button-color-gradient-secondary));color:var(--mg-c-button-color-text-secondary)}:host(:hover) .mg-c-button.mg-c-button--secondary:not(.mg-c-button--disabled){background:var(--mg-c-button-color-background-secondary)}.mg-c-button.mg-c-button--danger{/*!\n * @prop --mg-c-button-color-background-danger: Defines the background color for the danger variant button.\n * @prop --mg-c-button-color-border-danger: Defines the border color for the danger variant button.\n * @prop --mg-c-button-color-gradient-danger: Defines the gradient color for the danger variant button.\n * @prop --mg-c-button-color-text-danger: Defines the font color for the danger variant button.\n */border-color:var(--mg-c-button-color-border-danger);background:linear-gradient(to bottom, var(--mg-c-button-color-background-danger), var(--mg-c-button-color-gradient-danger));color:var(--mg-c-button-color-text-danger)}:host(:hover) .mg-c-button.mg-c-button--danger:not(.mg-c-button--disabled){background:var(--mg-c-button-color-background-danger)}.mg-c-button.mg-c-button--info{/*!\n * @prop --mg-c-button-color-background-info: Defines the background color for the info variant button.\n * @prop --mg-c-button-color-border-info: Defines the border color for the info variant button.\n * @prop --mg-c-button-color-gradient-info: Defines the gradient color for the info variant button.\n * @prop --mg-c-button-color-text-info: Defines the font color for the info variant button.\n */border-color:var(--mg-c-button-color-border-info);background:linear-gradient(to bottom, var(--mg-c-button-color-background-info), var(--mg-c-button-color-gradient-info));color:var(--mg-c-button-color-text-info)}:host(:hover) .mg-c-button.mg-c-button--info:not(.mg-c-button--disabled){background:var(--mg-c-button-color-background-info)}.mg-c-button.mg-c-button--success{/*!\n * @prop --mg-c-button-color-background-success: Defines the background color for the success variant button.\n * @prop --mg-c-button-color-border-success: Defines the border color for the success variant button.\n * @prop --mg-c-button-color-gradient-success: Defines the gradient color for the success variant button.\n * @prop --mg-c-button-color-text-success: Defines the font color for the success variant button.\n */border-color:var(--mg-c-button-color-border-success);background:linear-gradient(to bottom, var(--mg-c-button-color-background-success), var(--mg-c-button-color-gradient-success));color:var(--mg-c-button-color-text-success)}:host(:hover) .mg-c-button.mg-c-button--success:not(.mg-c-button--disabled){background:var(--mg-c-button-color-background-success)}.mg-c-button.mg-c-button--warning{/*!\n * @prop --mg-c-button-color-background-warning: Defines the background color for the warning variant button.\n * @prop --mg-c-button-color-border-warning: Defines the border color for the warning variant button.\n * @prop --mg-c-button-color-gradient-warning: Defines the gradient color for the warning variant button.\n * @prop --mg-c-button-color-text-warning: Defines the font color for the warning variant button.\n */border-color:var(--mg-c-button-color-border-warning);background:linear-gradient(to bottom, var(--mg-c-button-color-background-warning), var(--mg-c-button-color-gradient-warning));color:var(--mg-c-button-color-text-warning)}:host(:hover) .mg-c-button.mg-c-button--warning:not(.mg-c-button--disabled){background:var(--mg-c-button-color-background-warning)}.mg-c-button.mg-c-button--danger-alt{/*!\n * @prop --mg-c-button-color-background-danger-alt: Defines the background color for the danger-alt variant button.\n * @prop --mg-c-button-color-border-danger-alt: Defines the border color for the danger-alt variant button.\n * @prop --mg-c-button-color-gradient-danger-alt: Defines the gradient color for the danger-alt variant button.\n * @prop --mg-c-button-color-text-danger-alt: Defines the font color for the danger-alt variant button.\n */border-color:var(--mg-c-button-color-border-danger-alt);background:linear-gradient(to bottom, var(--mg-c-button-color-background-danger-alt), var(--mg-c-button-color-gradient-danger-alt));color:var(--mg-c-button-color-text-danger-alt)}:host(:hover) .mg-c-button.mg-c-button--danger-alt:not(.mg-c-button--disabled){background:var(--mg-c-button-color-background-danger-alt)}.mg-c-button{position:relative;display:inline-flex;min-height:var(--mg-b-size-min-height);box-sizing:border-box;align-items:center;padding:calc((var(--mg-b-size-min-height) - 2*var(--mg-b-size-border) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) var(--mg-b-size-12);border-width:var(--mg-c-button-border-top-width, var(--mg-b-size-border)) var(--mg-c-button-border-right-width, var(--mg-b-size-border)) var(--mg-c-button-border-bottom-width, var(--mg-b-size-border)) var(--mg-c-button-border-left-width, var(--mg-b-size-border));border-style:solid;border-radius:var(--mg-c-button-border-radius-top-left, var(--mg-c-button-border-radius)) var(--mg-c-button-border-radius-top-right, var(--mg-c-button-border-radius)) var(--mg-c-button-border-radius-bottom-right, var(--mg-c-button-border-radius)) var(--mg-c-button-border-radius-bottom-left, var(--mg-c-button-border-radius));background-image:none;column-gap:var(--mg-b-size-8);cursor:pointer;touch-action:manipulation;font-family:inherit;font-size:var(--mg-b-font-size);font-weight:var(--mg-c-button-font-weight, normal);text-align:left;text-decoration:none}.mg-c-button slot,.mg-c-button ::slotted(*:not(mg-icon)){font-family:inherit;font-size:var(--mg-b-font-size);font-weight:var(--mg-c-button-font-weight, normal);text-align:left;text-decoration:none;display:flex;align-items:center;column-gap:var(--mg-b-size-8)}.mg-c-button mg-icon:only-child,.mg-c-button ::slotted(mg-icon){display:inline-flex;flex-shrink:0;margin:auto 0;line-height:1}.mg-c-button.mg-c-button--disabled{cursor:default;opacity:var(--mg-b-opacity-element-disabled)}.mg-c-button.mg-c-button--flat{border:none;background:none}.mg-c-button.mg-c-button--link{min-height:unset;padding:unset;border:unset;border-radius:unset;background:unset;text-decoration:underline}.mg-c-button.mg-c-button--link slot{font-weight:600}.mg-c-button.mg-c-button--link:hover{text-decoration:none}.mg-c-button.mg-c-button--large{padding:calc(var(--mg-b-size-12) - var(--mg-b-size-border)) calc(var(--mg-b-size-24) - var(--mg-b-size-border))}.mg-c-button.mg-c-button--large:not(.mg-c-button--icon){line-height:var(--mg-b-size-24)}.mg-c-button.mg-c-button--large:not(.mg-c-button--icon) slot,.mg-c-button.mg-c-button--large:not(.mg-c-button--icon) ::slotted(*){font-size:var(--mg-b-size-16)}.mg-c-button.mg-c-button--icon{width:var(--mg-b-size-min-height);height:var(--mg-b-size-min-height);justify-content:center;padding:0;border-radius:var(--mg-c-button-border-radius-top-left, var(--mg-c-button-icon-border-radius)) var(--mg-c-button-border-radius-top-right, var(--mg-c-button-icon-border-radius)) var(--mg-c-button-border-radius-bottom-right, var(--mg-c-button-icon-border-radius)) var(--mg-c-button-border-radius-bottom-left, var(--mg-c-button-icon-border-radius));font-size:var(--mg-b-font-size);line-height:var(--mg-b-font-size)}.mg-c-button.mg-c-button--icon.mg-c-button--large{width:unset;height:unset;padding:calc(var(--mg-b-size-12) - var(--mg-b-size-border))}.mg-c-button.mg-c-button--icon.mg-c-button--large ::slotted(*){min-width:var(--mg-b-size-24);min-height:var(--mg-b-size-24);align-items:center;justify-content:center}.mg-c-button.mg-c-button--full-width{display:flex;justify-content:center}.mg-c-button.mg-c-button--loading>mg-icon:first-of-type{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.mg-c-button.mg-c-button--loading .mg-c-button__content{opacity:0}:host(:focus-visible){outline:0}:host(:focus-visible) .mg-c-button{outline-color:-webkit-focus-ring-color;outline-style:auto;outline-width:.2rem}";const R=W;const U=class{constructor(e){t(this,e);this.disabledChange=a(this,"disabled-change",7);this.onClickElementFn=null;this.classDisabled="mg-c-button--disabled";this.classLoading="mg-c-button--loading";this.classFullWidth="mg-c-button--full-width";this.handleClick=t=>{if(this.disabled)t.stopPropagation();else if(this.disableOnClick){this.loading=true;this.disabled=true}};this.handleKeydown=t=>{if(!this.disabled&&t.key===" "){t.preventDefault()}else if(!this.disabled&&["Enter","NumpadEnter","Space"].includes(t.key)){t.preventDefault();this.element.dispatchEvent(new MouseEvent("click",{bubbles:true}))}};this.handleKeyup=t=>{if(!this.disabled&&t.key===" "){t.preventDefault();this.element.dispatchEvent(new MouseEvent("click",{bubbles:true}))}};this.setIconSize=()=>{var t,e;if(this.size==="medium"){(t=this.element.querySelector("mg-icon"))===null||t===void 0?void 0:t.removeAttribute("size")}else if(this.isIcon){(e=this.element.querySelector("mg-icon"))===null||e===void 0?void 0:e.setAttribute("size",this.size)}};this.variant=S[0];this.label=undefined;this.type=undefined;this.size=j[0];this.fullWidth=false;this.form=undefined;this.disabled=undefined;this.isIcon=false;this.disableOnClick=false;this.loading=false;this.classCollection=new s(["mg-c-button"])}validateVariant(t,e){if(!S.includes(t)){if(t===""){this.variant=S[0];return}throw new Error(`<mg-button> prop "variant" must be one of: ${S.join(", ")}. Passed value: ${r(t)}.`)}else{if(e!==undefined){this.classCollection.delete(`mg-c-button--${e}`)}this.classCollection.add(`mg-c-button--${t}`)}}validateSize(t,e){if(!j.includes(t)){throw new Error(`<mg-button> prop "size" must be one of: ${j.join(", ")}. Passed value: ${r(t)}.`)}else{if(e!==undefined){this.classCollection.delete(`mg-c-button--${e}`)}this.classCollection.add(`mg-c-button--${t}`);this.setIconSize()}}validateFullWidth(t){if(t&&this.isIcon){throw new Error('<mg-button> prop "fullWidth" cannot be used with prop "isIcon".')}else if(t){this.classCollection.add(this.classFullWidth)}else{this.classCollection.delete(this.classFullWidth)}}disabledHandler(t){if(!t&&this.disableOnClick){this.loading=false}this.element.onclick=t?undefined:this.onClickElementFn;if(t){this.classCollection.add(this.classDisabled)}else{this.classCollection.delete(this.classDisabled)}this.disabledChange.emit(t)}watchIsIcon(){this.setIconSize()}loadingHandler(t){if(t){this.classCollection.add(this.classLoading)}else{this.classCollection.delete(this.classLoading)}}componentWillLoad(){this.validateVariant(this.variant);this.validateFullWidth(this.fullWidth);this.validateSize(this.size);this.watchIsIcon();if(this.isIcon){this.classCollection.add(`mg-c-button--icon`);if(!l(this.label)){throw new Error(`<mg-button> prop "label" is mandatory when prop "isIcon" is set to true.`)}}this.onClickElementFn=this.element.onclick;this.disabledHandler(this.disabled)}componentDidLoad(){c((()=>{var t;const e=this.element.closest("form")||((t=this.element.closest("mg-form"))===null||t===void 0?void 0:t.shadowRoot.querySelector("form"));if(e&&["submit",undefined].includes(this.type)){this.element.addEventListener("click",(()=>{e.dispatchEvent(new SubmitEvent("submit",{bubbles:true,cancelable:true}))}))}}))}render(){var t;return e(i,{key:"a56efb7c3e49a4aadf6751b10bacb39f20c260df",role:"button",tabIndex:0,type:this.type,form:this.form,"full-width":this.fullWidth,"aria-label":this.label,"aria-disabled":(t=this.disabled)===null||t===void 0?void 0:t.toString(),onClick:this.handleClick,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},e("div",{key:"2d47d068d188161b603b26117256d0e828393348",class:this.classCollection.join()},this.loading&&e("mg-icon",{key:"ba84820c70834f1e345af506265222340659f8ec",icon:"loader",spin:true}),e("div",{key:"db6c3437d5de7f828cca7df9d83670de9d3a8ed6",class:"mg-c-button__content"},e("slot",{key:"b00f76d92e1e2f9e4dd834bf41419c68c2635d1a"}))))}get element(){return n(this)}static get watchers(){return{variant:["validateVariant"],size:["validateSize"],fullWidth:["validateFullWidth"],disabled:["disabledHandler"],isIcon:["watchIsIcon"],loading:["loadingHandler"]}}};U.style=R;const N="/*!\n * @prop --mg-c-card-overflow: Defines the overflow property for the card. Unset by default, fallback on `--mg-c-card-overflow-default`.\n * @prop --mg-c-card-overflow-default: Defines the default overflow property for the card. Unset by default.\n * @prop --mg-c-card-max-width: Defines the max-width property for the card. Unset by default.\n * @prop --mg-c-card-spacing: Defines the padding property for the card. Unset by default, fallback on `--mg-c-card-spacing-default`.\n * @prop --mg-c-card-spacing-default: Defines the default padding property for the card. Default value: `--mg-b-size-16`.\n * @prop --mg-c-card-border: Defines the border property for the card. Unset by default, fallback on `--mg-c-card-border-default`.\n * @prop --mg-c-card-border-default: Defines the default border property for the card. Default value: `var(--mg-b-size-border) solid color-mix(in srgb, var(--mg-b-color-dark), transparent 95%)`.\n * @prop --mg-c-card-border-radius: Defines the border radius property for the card. Unset by default, fallback on `--mg-c-card-border-radius-default`.\n * @prop --mg-c-card-border-radius-default: Defines the default border radius property for the card. Default value: `--mg-b-size-radius`.\n * @prop --mg-c-card-color-background: Defines the background property for the card. Unset by default, fallback on `--mg-c-card-color-background-default`.\n * @prop --mg-c-card-color-background-default: Defines the default background property for the card. Default value: `--mg-b-color-light`.\n * @prop --mg-c-card-box-shadow: Defines the box shadow property for the card. Unset by default, fallback on `--mg-c-card-box-shadow-default`.\n * @prop --mg-c-card-box-shadow-default: Defines the default box shadow property for the card. Default value: `--mg-b-box-shadow`.\n */.mg-c-card{position:relative;z-index:inherit;overflow:var(--mg-c-card-overflow, var(--mg-c-card-overflow-default));width:100%;min-width:var(--mg-c-card-min-width);max-width:var(--mg-c-card-max-width);box-sizing:border-box;padding:var(--mg-c-card-spacing, var(--mg-c-card-spacing-default));border:var(--mg-c-card-border, var(--mg-c-card-border-default));border-radius:var(--mg-c-card-border-radius, var(--mg-c-card-border-radius-default));background:var(--mg-c-card-color-background, var(--mg-c-card-color-background-default));box-shadow:var(--mg-c-card-box-shadow, var(--mg-c-card-box-shadow-default))}.mg-c-card ::slotted(*){--mg-c-card-border:var(--mg-c-card-border-default);--mg-c-card-spacing:var(--mg-c-card-spacing-default);--mg-c-card-border-radius:var(--mg-c-card-border-radius-default);--mg-c-card-color-background:var(--mg-c-card-color-background-default);--mg-c-card-box-shadow:var(--mg-c-card-box-shadow-default);--mg-c-card-max-width:unset;--mg-c-card-min-width:unset}";const G=N;const F=class{constructor(e){t(this,e)}render(){return e("div",{key:"b8de627bd3018342b2e33f62e1779de8c53fa61e",class:"mg-c-card"},e("slot",{key:"210e9b12485a345ab50d4ddb85d091cde58551a8"}))}};F.style=G;const K=".mg-u-visually-hidden.sc-mg-character-left{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}*.sc-mg-character-left:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*.sc-mg-character-left{animation:none !important;transition:none !important}}mg-character-left.sc-mg-character-left{display:block}";const Y=K;const J=class{constructor(e){t(this,e);this.identifier=undefined;this.characters="";this.maxlength=undefined}watchIdentifier(t){if(t!==undefined&&!h(t)){console.error(`<mg-character-left> prop "identifier" value is invalid. Passed value: ${r(t)}.`)}}validateMaxlength(t){if(typeof t!=="number"){throw new Error(`<mg-character-left> prop "maxlength" is required and must be a number. Passed value: ${r(t)}.`)}}componentWillLoad(){this.watchIdentifier(this.identifier);this.validateMaxlength(this.maxlength);this.messages=k(this.element).messages}render(){return e("span",{key:"2b0d8d920df6ec866670736d3ab0c686668befd8",id:this.identifier,"aria-live":"polite"},e("span",{key:"d620461fe31ae8845a497b0601be71b3347613db","aria-hidden":"true"},this.maxlength-this.characters.length,"/",this.maxlength),e("span",{key:"20b5e5624aaec2cb6b5cb73bc111dff351666521",class:"mg-u-visually-hidden"},this.messages.nbCharLeft.replace("{counter}",this.maxlength-this.characters.length)))}get element(){return n(this)}static get watchers(){return{identifier:["watchIdentifier"],maxlength:["validateMaxlength"]}}};J.style=Y;const X=".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}}/*!\n * @prop --mg-c-details-spacing: Defines the spacing between the summary and the details. Default value: `--mg-b-size-8`.\n */.mg-c-details summary{display:flex;align-items:baseline;cursor:pointer;gap:var(--mg-b-size-16)}.mg-c-details summary::-webkit-details-marker{display:none}.mg-c-details__toggle{display:flex;min-height:calc(var(--mg-b-font-size)*var(--mg-b-line-height));flex-shrink:0;align-items:center;align-self:flex-start;gap:var(--mg-b-size-4)}.mg-c-details__toggle-icon.mg-c-details__toggle-icon--reverse{transform:rotate(180deg)}.mg-c-details__details{margin-top:var(--mg-c-details-spacing)}@media (width < 43.75rem){.mg-c-details__toggle>span{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}}";const Z=X;const Q=class{constructor(e){t(this,e);this.expandedChange=a(this,"expanded-change",7);this.handleToggle=()=>{this.expanded=this.details.open};this.toggleClosed=undefined;this.toggleOpened=undefined;this.hideSummary=false;this.expanded=false}validateTitles(t){if(!l(t)){throw new Error(`<mg-details> prop "toggleClosed" and "toggleOpened" is required and must be a valid string. Passed value: "toggleClosed='${this.toggleClosed}'" and "toggleOpened='${this.toggleOpened}'".`)}}handleExpanded(t){this.expandedChange.emit(t)}componentWillLoad(){this.validateTitles(this.toggleClosed);this.validateTitles(this.toggleOpened)}render(){return e("details",{key:"d9bd05ca12f405dd25dda244ec0260691d340223",class:"mg-c-details",onToggle:this.handleToggle,open:this.expanded,ref:t=>this.details=t},e("summary",{key:"2b7893cc0c54d94981d6500776eb22723e1fb5f2"},e("slot",{key:"714054624ffc1b6b7261edd166bfd16a256e06ce",name:"summary"}),e("span",{key:"a257d98ed1e8243eae76d259b09bf7fabbfa66e0",class:"mg-c-details__toggle"},e("mg-icon",{key:"7afafc9c038cbb0d3b984564973776313b9c65c4",icon:"chevron-up",class:{"mg-c-details__toggle-icon":true,"mg-c-details__toggle-icon--reverse":!this.expanded}}),e("span",{key:"adaaa789315e3c70073087cce6e7ff2136786a38",class:{"mg-u-visually-hidden":this.hideSummary}},this.expanded?this.toggleOpened:this.toggleClosed))),e("div",{key:"466d0637025066728de423fc8cc3fa6e49dca70b",class:"mg-c-details__details"},e("slot",{key:"2f4747fd80523a949f9bc55dab3ebbb5756aad24",name:"details"})))}static get watchers(){return{toggleClosed:["validateTitles"],toggleOpened:["validateTitles"],expanded:["handleExpanded"]}}};Q.style=Z;const tt="/*!\n * @prop --mg-c-divider-color-background: Defines the background color of the divider. The default value is `color-mix(in srgb, var(--mg-b-color-dark), transparent 85%)`.\n * @prop --mg-c-divider-thickness: Defines the thickness of the divider. The default value is `--mg-b-size-border`.\n * @prop --mg-c-divider-spacing-vertical: Defines the vertical spacing of the divider. The default value is `--mg-b-size-40`.\n */.mg-c-divider{width:var(--mg-b-size-120);height:var(--mg-c-divider-thickness);margin:var(--mg-c-divider-spacing-vertical) auto;background-color:var(--mg-c-divider-color-background)}.mg-c-divider.mg-c-divider--full-width{width:100%}";const et=tt;const it=class{constructor(e){t(this,e);this.fullWidth=false}render(){return e("div",{key:"b7d74c11f15700cbffa553bf4d688ad291473087",class:{"mg-c-divider":true,"mg-c-divider--full-width":this.fullWidth}})}};it.style=et;const nt=["form","search","none","presentation"];const at=["default","hide"];const ot=".mg-u-form-legacy{--mg-c-form-inputs-title-width:calc(100% / 3 - 20px)}.mg-u-is-asterisk{color:var(--mg-b-color-danger)}/*!\n * @prop --mg-c-form-inputs-title-width: Defines the width of the input title. Fallback on `calc(28 * var(--mg-b-size-8))`.\n */.mg-c-form{--mg-c-input-title-width:var(--mg-c-form-inputs-title-width, calc(28 * var(--mg-b-size-8)));--mg-c-input-margin-bottom:var(--mg-b-size-16);--mg-c-input-title-horizontal-space:var(--mg-b-size-32)}.mg-c-form.mg-c-form--all-required{--mg-c-input-title-display:none}.mg-c-form.mg-c-form--label-on-top{--mg-c-input-margin-bottom:var(--mg-b-size-24)}.mg-c-form>p{font-size:var(--mg-b-font-size-small)}";const rt=ot;const st=class{constructor(e){t(this,e);this.formValid=a(this,"form-valid",7);this.formSubmit=a(this,"form-submit",7);this.classAllRequired="mg-c-form--all-required";this.classLabelOnTop="mg-c-form--label-on-top";this.setRequiredMessage=()=>{this.requiredMessageText=null;this.classCollection.delete(this.classAllRequired);if(this.requiredMessage==="hide")return;else if(this.requiredMessage==="default"){this.requiredMessageText=this.messages.form.required;return}const t=t=>!(t.disabled||t.readonly);const e=t=>t.nodeName==="MG-INPUT-TOGGLE";if(!this.disabled&&!this.readonly&&this.mgInputs.some((i=>t(i)&&!e(i)))){const i=this.mgInputs.filter(t);const n=i.filter((t=>!e(t)&&t.required));if([n.length,i.length].every((t=>t===1))||n.length>1&&n.length===i.filter((t=>!e(t))).length){this.requiredMessageText=this.getRequiredMessageBasedOnCount(n,"allRequiredSingle","allRequired");this.classCollection.add(this.classAllRequired)}else if(n.length>0){this.requiredMessageText=this.getRequiredMessageBasedOnCount(n,"requiredSingle","required")}}};this.getRequiredMessageBasedOnCount=(t,e,i)=>this.messages.form[t.length===1?e:i];this.checkValidity=()=>{this.setRequiredMessage();this.valid=!this.mgInputs.some((t=>t.invalid));this.invalid=!this.valid;this.formValid.emit(this.valid)};this.handleFormSubmit=t=>{t.preventDefault();this.formSubmit.emit()};this.setMgInputs=()=>{this.mgInputs=Array.from(this.element.querySelectorAll("*")).filter((t=>t.nodeName.startsWith("MG-INPUT")));this.mgInputs.forEach((t=>{if(this.labelOnTop){t.labelOnTop=true}if(this.readonly){t.readonly=true}else if(this.disabled){t.disabled=true}else{t.addEventListener("input-valid",this.checkValidity)}}))};this.identifier=o("mg-form");this.name=this.identifier;this.readonly=false;this.requiredMessage=undefined;this.ariaRole=undefined;this.labelOnTop=undefined;this.disabled=false;this.valid=undefined;this.invalid=undefined;this.classCollection=new s(["mg-c-form"]);this.requiredMessageText=undefined}watchIdentifier(t){if(!h(t)){console.error(`<mg-form> prop "identifier" value is invalid. Passed value: ${r(t)}.`)}}validateRequiredMessage(t){if(t&&!at.includes(t)){throw new Error(`<mg-form> prop "requiredMessage" must be one of: ${at.join(", ")}. Passed value: ${r(t)}.`)}}validateAriaRole(t){if(t&&!nt.includes(t)){throw new Error(`<mg-form> prop "ariaRole" must be one of: ${nt.join(", ")}. Passed value: ${r(t)}.`)}}handlelabelOnTop(t){if(t){this.classCollection.add(this.classLabelOnTop)}else{this.classCollection.delete(this.classLabelOnTop)}}handleAttributeChange(){this.setMgInputs();this.setRequiredMessage()}async displayError(){if(!this.readonly){this.mgInputs.forEach((t=>{var e;(e=t.displayError)===null||e===void 0?void 0:e.call(t)}));this.checkValidity()}}async reset(){if(!this.readonly){await Promise.all(this.mgInputs.map((async t=>{if(t.reset!==undefined){await t.reset()}})))}}componentWillLoad(){this.messages=k(this.element).messages;this.watchIdentifier(this.identifier);this.validateAriaRole(this.ariaRole);this.validateRequiredMessage(this.requiredMessage);this.handlelabelOnTop(this.labelOnTop);this.mgButtons=Array.from(this.element.querySelectorAll("mg-button"));this.mgButtons.forEach((t=>{t.setAttribute("form",this.identifier)}));this.setMgInputs();Promise.all(this.mgInputs.map((async t=>{try{await t.componentOnReady()}catch(t){}}))).then((()=>{this.checkValidity()}))}componentDidLoad(){new MutationObserver((()=>{this.setMgInputs();this.checkValidity()})).observe(this.element,{childList:true})}render(){return e("form",{key:"ecfaff2bb897ce2c48ed352167bb418703a56c98",class:this.classCollection.join(),id:this.identifier,name:this.name,onSubmit:this.handleFormSubmit,role:this.ariaRole},this.requiredMessageText&&e("p",{key:"4d4fa2ff3cf4f25ebe0b009ae1995734bfcafd3b",innerHTML:this.requiredMessageText}),e("slot",{key:"dc0c7acadf6b744335852f847a8336b018e28cb5"}),!this.readonly&&!this.disabled&&e("slot",{key:"ede3ace32f6a88067845013fa65e5414cae5fcea",name:"actions"}))}get element(){return n(this)}static get watchers(){return{identifier:["watchIdentifier"],requiredMessage:["validateRequiredMessage","handleAttributeChange"],ariaRole:["validateAriaRole"],labelOnTop:["handlelabelOnTop"],readonly:["handleAttributeChange"],disabled:["handleAttributeChange"]}}};st.style=rt;const lt=["small","medium","large","xlarge","xxlarge"];const ct=["success","warning","danger","info","app"];const ht=["icon","background","full"];const dt={"address-card":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2 2a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1zm11 3h-3v1h3zm-3 2h3v1h-3zM8 6a2 2 0 1 1-4 0 2 2 0 0 1 4 0m-5 5.4A2.4 2.4 0 0 1 5.4 9h1.2A2.4 2.4 0 0 1 9 11.4a.6.6 0 0 1-.6.6H3.6a.6.6 0 0 1-.6-.6" clip-rule="evenodd"/></svg>',"address-card-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 6.5a2 2 0 1 1-4 0 2 2 0 0 1 4 0m-1 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0" clip-rule="evenodd"/><path fill="currentColor" d="M13 5h-3v1h3zm-3 2h3v1h-3z"/><path fill="currentColor" fill-rule="evenodd" d="M5.4 9A2.4 2.4 0 0 0 3 11.4a.6.6 0 0 0 .6.6h4.8a.6.6 0 0 0 .6-.6A2.4 2.4 0 0 0 6.6 9zm0 1a1.4 1.4 0 0 0-1.342 1h3.884A1.4 1.4 0 0 0 6.6 10z" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M2 2a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1zm12 1H2v10h12z" clip-rule="evenodd"/></svg>',"align-center":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M4 3h8v1H4zm-2 9h12v1H2zm12-6H2v1h12zM4 9h8v1H4z"/></svg>',"align-justify":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M2 3h12v1H2zm0 9h12v1H2zm12-6H2v1h12zM2 9h12v1H2z"/></svg>',"align-left":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M2 3h8v1H2zm0 9h12v1H2zm12-6H2v1h12zM2 9h8v1H2z"/></svg>',"align-right":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M6 3h8v1H6zm-4 9h12v1H2zm12-6H2v1h12zM6 9h8v1H6z"/></svg>',api:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14.44 11.47h-.02l-.66-.1-.02-.08c-.03-.11-.08-.21-.13-.31l-.04-.07.4-.54v-.02l-.52-.52h-.02l-.54.41-.07-.04c-.1-.05-.2-.09-.31-.13l-.08-.02-.1-.67v-.01h-.73v.02l-.1.66-.08.02c-.11.03-.21.08-.31.13l-.07.04-.55-.41-.52.52v.02l.41.54-.04.07c-.05.1-.09.2-.13.31l-.02.08-.67.1h-.01v.73h.02l.66.1.02.08c.03.1.08.21.13.3l.04.07-.41.55.52.52h.02l.54-.41.07.04c.1.05.2.09.31.13l.08.02.1.67v.01h.73v-.02l.1-.66.08-.02c.11-.03.21-.08.31-.13l.07-.04.55.41.52-.52v-.02l-.4-.54.04-.07c.05-.1.09-.2.13-.31l.02-.08.67-.1h.01v-.73zm-2.46 1.38c-.56 0-1.01-.45-1.01-1.01s.45-1.01 1.01-1.01 1.01.45 1.01 1.01-.45 1.01-1.01 1.01M8.51 5.81c-.11-.09-.27-.14-.5-.14h-.38v1.17h.27c.26 0 .45-.05.58-.15s.19-.25.19-.44-.05-.34-.16-.43zm1.57 5.13-.3-.4c-.1-.1-.09-.27 0-.37l.52-.52c.1-.1.26-.1.37 0l.4.29c.06-.03.13-.06.2-.08l.07-.49c0-.14.12-.25.26-.25h.45a5.44 5.44 0 1 0-10.5-1.99 5.44 5.44 0 0 0 5.44 5.44c.78 0 1.54-.17 2.25-.49v-.6c0-.14.11-.26.26-.26l.49-.07c.02-.07.05-.13.08-.2zm.18-5.96h.84v3.94h-.84zM5.4 8.92l-.29-.94H3.67l-.29.94h-.9l1.39-3.96h1.02l1.4 3.96h-.9zm3.72-1.74c-.26.23-.64.34-1.13.34h-.36v1.4h-.84V4.98h1.26c.48 0 .84.1 1.09.31s.37.51.37.92c0 .42-.13.75-.4.97zM4.4 5.57q-.09.345-.51 1.71h1.03q-.39-1.275-.45-1.44c-.03-.11-.06-.2-.07-.26z"/></svg>',archive:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M3 6v6.96c0 .57.46 1.04 1.04 1.04H12c.55 0 1-.45 1-1V6zm7 2H6V7h4zm3-3H3c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1h10c.55 0 1 .45 1 1v1c0 .55-.45 1-1 1"/></svg>',"archive-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M13 2H3c-.55 0-1 .45-1 1v2c0 .55.45 1 1 1v6.96c0 .57.46 1.04 1.04 1.04H12c.55 0 1-.45 1-1V6c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1m-1 11H4.04S4 12.98 4 12.96V6h8zm1-8H3V3h10zm-3 3H6V7h4z"/></svg>',"arrow-clock":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m3.025 3.82-.002-.001.083-.09.063-.066.009-.01q.132-.15.273-.292a4 4 0 0 1 .215-.196q.136-.124.279-.24.108-.086.22-.166l.024-.018q.143-.105.293-.203a7 7 0 0 1 1.198-.607l.029-.01q.126-.05.257-.094a6 6 0 0 1 .375-.108l.067-.019q.105-.029.21-.053c.146-.032.294-.054.442-.075l.092-.015q.072-.013.146-.022A6.47 6.47 0 0 1 13 3.847V1.996h1v4h-4v-1h2.594a5.48 5.48 0 0 0-5.189-2.467l-.124.019-.077.012q-.188.025-.373.064a3 3 0 0 0-.173.044l-.063.017a6 6 0 0 0-.317.09 6 6 0 0 0-.227.084l-.016.006a6 6 0 0 0-.523.232 5.4 5.4 0 0 0-.736.452l-.028.021q-.092.065-.18.135-.12.098-.235.204l-.05.044q-.068.06-.133.122-.117.117-.226.241l-.013.014A5.496 5.496 0 1 0 13.5 7.996h1A6.5 6.5 0 1 1 3.025 3.82"/><path fill="currentColor" d="M9.795 11.746 7 8.95V4.246h1v4.29l2.5 2.505z"/></svg>',"arrow-down":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M13 10.1h-2.77c-.16 0-.3-.12-.32-.28V.94c0-.17-.14-.3-.31-.29H6.37A.325.325 0 0 0 6 .92v8.89c0 .16-.13.29-.29.29H3c-.17 0-.3.12-.31.29 0 .08.02.16.08.22l5.06 4.58c.13.11.33.11.46 0l5-4.58c.12-.11.12-.29.01-.41h-.01c-.07-.1-.17-.1-.29-.1"/></svg>',"arrow-down-a-z":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m6.53 10.9-1.41 1.41-.71.71-2.12-2.12.71-.71.88.88V3.02h1v8.12l.95-.95.71.71zM12.29 6H10.5l-.36 1H9.08l1.79-5h1.05l1.79 5h-1.06zm-.36-1.02-.53-1.49-.53 1.49zm1.79 5.18V9H9.09v1h3.29l-3.29 2.84V14h4.63v-1h-3.29z"/></svg>',"arrow-down-right":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.999 12.292V3.999h1v10h-10v-1h8.292L2 2.707 2.707 2z"/></svg>',"arrow-left":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M5.88 12.93v-2.75c-.01-.17.11-.31.28-.32H15c.17-.01.3-.16.29-.33V6.32A.31.31 0 0 0 15 6H6.17c-.16-.02-.29-.15-.29-.31V2.93a.295.295 0 0 0-.28-.32c-.09 0-.17.03-.23.09L.79 7.76c-.11.13-.11.33 0 .46l4.58 5c.12.12.31.12.43 0 .06-.08.09-.19.08-.29"/></svg>',"arrow-right":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M10.12 2.99v2.75c.01.17-.11.31-.28.32H1c-.17.01-.3.16-.29.33V9.6c0 .17.12.31.29.32h8.83c.16.02.29.15.29.31v2.76c-.01.17.11.31.28.32.09 0 .17-.03.23-.09l4.58-5.06c.11-.13.11-.33 0-.46l-4.58-5a.3.3 0 0 0-.43 0c-.06.08-.09.19-.08.29"/></svg>',"arrow-rotate":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m3.025 3.82-.002-.001c.046-.055.098-.103.146-.156q.137-.155.282-.302c.069-.068.142-.13.215-.195q.136-.124.279-.241.12-.095.244-.184.143-.105.293-.203a7 7 0 0 1 1.198-.607q.142-.055.286-.104a6 6 0 0 1 .375-.108c.092-.025.184-.052.278-.072a6 6 0 0 1 .441-.075c.08-.012.157-.028.238-.037A6.47 6.47 0 0 1 13 3.847V1.996h1v4h-4v-1h2.594a5.48 5.48 0 0 0-5.188-2.467q-.102.014-.202.031-.188.025-.373.064c-.08.017-.157.04-.236.06a6 6 0 0 0-.317.092q-.122.042-.243.089a6 6 0 0 0-.523.232 5.4 5.4 0 0 0-.736.452q-.106.076-.208.156-.12.098-.235.204-.093.08-.183.166c-.083.081-.16.169-.239.255A5.496 5.496 0 1 0 13.5 7.996h1A6.5 6.5 0 1 1 3.025 3.82"/></svg>',"arrow-rotate-backward":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m12.975 3.82.002-.001c-.046-.055-.098-.103-.146-.156-.092-.103-.183-.205-.282-.302-.069-.068-.142-.13-.215-.195q-.135-.124-.279-.241-.12-.095-.244-.184a7 7 0 0 0-.293-.203 7 7 0 0 0-.859-.467 7 7 0 0 0-.339-.14q-.142-.055-.286-.104a6 6 0 0 0-.375-.108c-.092-.025-.184-.052-.278-.072a6 6 0 0 0-.441-.075c-.08-.012-.157-.028-.238-.037A6.47 6.47 0 0 0 3 3.847V1.996H2v4h4v-1H3.406a5.48 5.48 0 0 1 5.189-2.467q.101.014.2.031.19.025.374.064c.08.017.157.04.236.06q.16.042.317.092.122.042.243.089a6 6 0 0 1 .523.232 5.3 5.3 0 0 1 .736.452q.105.076.208.156.12.098.235.204.093.08.183.166c.083.081.16.169.239.255A5.496 5.496 0 1 1 2.5 7.996h-1A6.5 6.5 0 1 0 12.975 3.82"/></svg>',"arrow-up":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M3.06 5.82h2.75c.16 0 .3.12.32.28V15c.01.17.16.3.33.29h3.21c.16.02.31-.1.33-.27V6.11c0-.17.14-.3.31-.29h2.75c.17 0 .31-.12.32-.28 0-.08-.03-.17-.09-.23L8.23.73a.36.36 0 0 0-.46 0l-5 4.58a.29.29 0 0 0 0 .42c.05.1.15.09.29.09"/></svg>',"arrow-up-right":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.292 3H3.999V2h10v10h-1V3.707L2.707 14 2 13.29z"/></svg>',"arrow-up-right-square":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14.33 3v10c0 .73-.6 1.32-1.33 1.33H3c-.73 0-1.32-.6-1.33-1.33V3c0-.73.6-1.32 1.33-1.33h10c.73 0 1.32.6 1.33 1.33m-2.48.46H8.68c-.37 0-.67.29-.68.66v.04c0 .18.07.35.2.47l.91.91-5.53 5.53c-.13.13-.14.33-.01.47h.01l.87.88c.13.13.33.14.47.01h.01l5.53-5.53.91.9c.26.28.7.29.98.02l.02-.02c.12-.13.19-.3.19-.48V4.15c0-.37-.3-.67-.67-.67z"/></svg>',"arrow-up-z-a":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m5.82 5.85-.94-.94v8.11h-1V4.96l-.89.89-.71-.71 1.41-1.41.71-.71.71.71 1.41 1.41-.71.71zM12.29 13H10.5l-.36 1H9.08l1.79-5h1.05l1.79 5h-1.06zm-.36-1.02-.53-1.49-.53 1.49zm1.79-8.82V2H9.09v1h3.29L9.09 5.84V7h4.63V6h-3.29z"/></svg>',"arrows-compare":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M11.705 8.295 9.915 6.5H15v-1H9.915l1.79-1.795L11 3 8 6l3 3zM8 10 5 7l-.705.705L6.085 9.5H1v1h5.085l-1.79 1.795L5 13z"/></svg>',"arrows-right-down":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m12.085 4.499-1.79-1.795.705-.705 3 3-3 3-.705-.705 1.79-1.795H9v-1zM8 6.514h.003v5.572l1.795-1.79.705.705-3 3-3-3 .705-.705 1.795 1.79V5.499H2v-1h6z"/></svg>',"arrows-right-left":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m11 2 3 3-3 3-.705-.705 1.79-1.795H2v-1h10.085l-1.79-1.795zm-7.085 9.5 1.79 1.795L5 14l-3-3 3-3 .705.705-1.79 1.795H14v1z" clip-rule="evenodd"/></svg>',"arrows-rotate":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M10 4.997h2.61a5.5 5.5 0 0 0-6.175-2.271A5.5 5.5 0 0 0 2.5 7.993h-1a6.49 6.49 0 0 1 4.289-6.112A6.51 6.51 0 0 1 13 3.838V2h1v3.996h-4zM6 10.99H3.39a5.5 5.5 0 0 0 6.175 2.271A5.5 5.5 0 0 0 13.5 7.993h1a6.49 6.49 0 0 1-4.289 6.113A6.51 6.51 0 0 1 3 12.15v1.838H2V9.991h4z"/></svg>',"arrows-rotate-backward":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M6 4.997H3.39a5.5 5.5 0 0 1 6.175-2.271A5.5 5.5 0 0 1 13.5 7.993h1a6.49 6.49 0 0 0-4.289-6.112A6.51 6.51 0 0 0 3 3.838V2H2v3.996h4zm4 5.993h2.61a5.5 5.5 0 0 1-6.175 2.271A5.5 5.5 0 0 1 2.5 7.993h-1a6.49 6.49 0 0 0 4.289 6.113A6.51 6.51 0 0 0 13 12.15v1.838h1V9.991h-4z"/></svg>',ban:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-3.126 4.582a6 6 0 0 1-8.456-8.456zm.707-.708L4.127 3.418a6 6 0 0 1 8.456 8.456" clip-rule="evenodd"/></svg>',bell:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M3.97 6a4 4 0 0 1 8 0v2.3l1.507.822c.91.496.558 1.878-.478 1.878H3.002c-1.027 0-1.387-1.362-.494-1.87l1.461-.83zm2.027 6a2 2 0 1 0 4 0z"/></svg>',"bell-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path stroke="currentColor" d="M11.47 8.3v.297l.26.142 1.508.822c.455.248.28.939-.239.939H3.002c-.514 0-.694-.681-.247-.935l1.461-.83.253-.144V6a3.5 3.5 0 0 1 7 0zm-3.473 5.2a1.5 1.5 0 0 1-1.415-1h2.83a1.5 1.5 0 0 1-1.415 1Z"/></svg>',book:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M3 3a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-2H1.5a.5.5 0 0 1 0-1H3V9H1.5a.5.5 0 0 1 0-1H3V7H1.5a.5.5 0 0 1 0-1H3zm8 0H9v4h2z" clip-rule="evenodd"/></svg>',"book-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M4 2a1 1 0 0 0-1 1v3H1.5a.5.5 0 0 0 0 1H3v1H1.5a.5.5 0 0 0 0 1H3v1H1.5a.5.5 0 0 0 0 1H3v2a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1zm5 1H4v3h.5a.5.5 0 0 1 0 1H4v1h.5a.5.5 0 0 1 0 1H4v1h.5a.5.5 0 0 1 0 1H4v2h8V3h-1v4H9z" clip-rule="evenodd"/></svg>',briefcase:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5 4v1H2a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-3V4a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1m5 1V4H6v1z" clip-rule="evenodd"/></svg>',"briefcase-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5 5V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v1h3a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm1-1h4v1H6zM2 6v7h12V6z" clip-rule="evenodd"/></svg>',"building-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M4 2h8v12H9v-1a1 1 0 1 0-2 0v1H4zm4 13h4a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1zM7 4H5v2h2zm2 0h2v2H9zm2 4H9v2h2zM5 8h2v2H5z" clip-rule="evenodd"/></svg>',calculator:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2 2a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1zm2 1h8v3H4zm2 5H4v2h2zm1 0h2v2H7zm5 0h-2v5h2zm-8 3h2v2H4zm5 0H7v2h2z" clip-rule="evenodd"/></svg>',"calculator-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M4 3h8v3H4zm2 5H4v2h2zm3 0H7v2h2zm3 0h-2v5h2zm-6 3H4v2h2zm3 0H7v2h2z"/><path fill="currentColor" fill-rule="evenodd" d="M2 2a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1zm1 0h10v12H3z" clip-rule="evenodd"/></svg>',calendar:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5 1h1v1h4V1h1v1h2a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h2zm8 5H3v7h10z" clip-rule="evenodd"/></svg>',"calendar-euro":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M12 2.5h1c.6 0 1 .4 1 1v10c0 .6-.4 1-1 1H3c-.6 0-1-.4-1-1v-10c0-.6.4-1 1-1h1v-1h1v1h6v-1h1zm-9 3v8h10v-8zm7.5 6.24-.71-.71c-.35.3-.8.49-1.29.49-.74 0-1.4-.41-1.74-1.02h1.77v-.75H6.51c-.01-.07-.01-.15-.01-.23 0-.09.01-.18.02-.27h2.01V8.5H6.78c.35-.59.99-.98 1.72-.98.49 0 .94.19 1.29.49l.71-.71a2.974 2.974 0 0 0-4.81 1.2H4.5v.75h1.02c-.02.09-.02.18-.02.27 0 .08 0 .16.02.23H4.5v.75h1.17c.4 1.17 1.52 2.02 2.83 2.02.77 0 1.47-.3 2-.78" clip-rule="evenodd"/></svg>',"calendar-euro-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m9.79 11.02.71.71a2.976 2.976 0 0 1-4.83-1.24H4.5v-.75h1.01c-.01-.08-.01-.15-.01-.23 0-.09 0-.18.02-.27H4.5v-.75h1.19a2.974 2.974 0 0 1 4.81-1.2L9.79 8c-.35-.3-.8-.49-1.29-.49-.73 0-1.37.39-1.72.98h1.75v.75H6.52c-.01.09-.02.18-.02.27 0 .08 0 .16.01.23h2.02v.75H6.76c.34.61 1 1.02 1.74 1.02.49 0 .94-.19 1.29-.49M13 3.5v1H3v-1zm-1-2h-1v1H5v-1H4v1H3c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h10c.55 0 1-.45 1-1v-10c0-.55-.45-1-1-1h-1zm-9 12v-8h10v8z"/></svg>',"calendar-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M13 2h-2V1h-1v1H6V1H5v1H3c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h10c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1m0 11H3V6h10zm0-8H3V3h2v1h1V3h4v1h1V3h2z"/></svg>',check:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M6.77 12.113 15 3.883l-.707-.707-8.23 8.23-4.355-4.355L1 7.76l4.355 4.355-.004.004.707.706.004-.004.003.004.708-.707z"/></svg>',"check-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1m-1 9.795-2.5-2.5.795-.795L7 9.205 10.705 5.5l.798.793z"/></svg>',"check-circle-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m4.5 8.207 2.5 2.5 4.5-4.5-.707-.707L7 9.293 5.207 7.5z"/><path fill="currentColor" fill-rule="evenodd" d="M4.111 2.18a7 7 0 1 1 7.778 11.64A7 7 0 0 1 4.111 2.18m.556 10.809a6 6 0 1 0 6.666-9.978 6 6 0 0 0-6.666 9.978" clip-rule="evenodd"/></svg>',"chevron-down":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m8 11.708 6-6L13.293 5 8 10.293 2.708 5 2 5.708z"/></svg>',"chevron-down-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M3.706 6 8 10.294 12.294 6l.706.706-5 5-5-5z" clip-rule="evenodd"/></svg>',"chevron-left":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m4 8 6 6 .708-.708L5.415 8l5.293-5.292L10 2z"/></svg>',"chevron-left-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M1 8a7 7 0 1 0 14 0A7 7 0 0 0 1 8m9-4.294L5.706 8 10 12.294 9.294 13l-5-5 5-5z" clip-rule="evenodd"/></svg>',"chevron-right":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m11.708 8-6-6L5 2.708 10.293 8 5 13.293l.708.707z"/></svg>',"chevron-right-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M15 8A7 7 0 1 0 1 8a7 7 0 0 0 14 0m-9 4.294L10.294 8 6 3.706 6.706 3l5 5-5 5z" clip-rule="evenodd"/></svg>',"chevron-up":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m8 4.5-6 6 .708.707L8 5.916l5.293 5.293L14 10.5z"/></svg>',"chevron-up-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1m4.294 9L8 5.706 3.706 10 3 9.294l5-5 5 5z" clip-rule="evenodd"/></svg>',circle:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8"/></svg>',clock:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m-.5-6.795L10.295 11l.705-.705L8.5 7.79V3.5h-1z" clip-rule="evenodd"/></svg>',"clock-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m10.95 10.04-.71.71L7.5 8.01v-4h1V7.6l2.45 2.45zM8 2C4.69 2 2 4.69 2 8s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6m0-1c3.87 0 7 3.13 7 7s-3.13 7-7 7-7-3.13-7-7 3.13-7 7-7"/></svg>',"code-square-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m6.32 10.28.73-.73L5.5 8l1.53-1.53-.73-.73-2.27 2.27 2.28 2.28zm3.37 0L11.97 8 9.69 5.72l-.73.73L10.51 8 8.96 9.55zM3.01 14c-.27 0-.5-.1-.7-.3s-.3-.43-.3-.7V3c0-.27.1-.5.3-.7s.43-.3.7-.3h10c.27 0 .5.1.7.3s.3.43.3.7v10c0 .27-.1.5-.3.7s-.43.3-.7.3H3zm0-1h10V3H3v10z"/></svg>',cog:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M6.062 2a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v1.416c.345.15.67.34.97.56l1.226-.708a1 1 0 0 1 1.366.366l1 1.732a1 1 0 0 1-.366 1.366l-1.227.709a5 5 0 0 1 0 1.119l1.227.708a1 1 0 0 1 .366 1.366l-1 1.732a1 1 0 0 1-1.366.366l-1.227-.708c-.3.22-.624.41-.969.56V14a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-1.416a5 5 0 0 1-.969-.56l-1.227.708a1 1 0 0 1-1.366-.366l-1-1.732a1 1 0 0 1 .366-1.366l1.227-.709a5 5 0 0 1 0-1.118l-1.227-.709A1 1 0 0 1 1.5 5.366l1-1.732a1 1 0 0 1 1.366-.366l1.227.709q.45-.334.97-.561zm2 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4" clip-rule="evenodd"/></svg>',"cog-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5.438 8a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0m2.5-1.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M10 3.416V2a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v1.416c-.345.15-.67.34-.969.56l-1.227-.708a1 1 0 0 0-1.366.366l-1 1.732a1 1 0 0 0 .366 1.366l1.227.709a5 5 0 0 0 0 1.118l-1.227.709a1 1 0 0 0-.366 1.366l1 1.732a1 1 0 0 0 1.366.366l1.227-.708a5 5 0 0 0 .969.56V14a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-1.416c.345-.15.67-.34.969-.56l1.227.708a1 1 0 0 0 1.366-.366l1-1.732a1 1 0 0 0-.366-1.366l-1.227-.709a5 5 0 0 0 0-1.118l1.227-.709a1 1 0 0 0 .366-1.366l-1-1.732a1 1 0 0 0-1.366-.366l-1.227.708c-.3-.22-.624-.41-.97-.56M7 4.07l-.6.262q-.414.182-.775.449l-.527.39-1.794-1.037-1 1.732 1.793 1.035-.072.65a4 4 0 0 0 0 .898l.072.65-1.793 1.035 1 1.732 1.794-1.036.527.39q.361.265.775.448l.6.262V14h2v-2.07l.6-.262q.414-.182.774-.449l.527-.39 1.795 1.037 1-1.732-1.793-1.035.072-.65a4 4 0 0 0 0-.898l-.072-.65 1.793-1.035-1-1.732-1.795 1.036-.527-.39q-.36-.265-.774-.448L9 4.07V2H7z" clip-rule="evenodd"/></svg>',comment:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M7.5 2A5.5 5.5 0 0 0 4 11.743V14l3.5-1h1a5.5 5.5 0 1 0 0-11zM5 6h6v1H5zm3 2H5v1h3z" clip-rule="evenodd"/></svg>',"comment-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M5 6h6v1H5zm0 2h3v1H5z"/><path fill="currentColor" fill-rule="evenodd" d="m4 14 3.5-1h1a5.5 5.5 0 1 0 0-11h-1A5.5 5.5 0 0 0 4 11.743zm1-2.728-.363-.3A4.5 4.5 0 0 1 7.5 3h1a4.5 4.5 0 1 1 0 9H7.36L5 12.674z" clip-rule="evenodd"/></svg>',"comment-sms":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 2.67c-3.37 0-6.1 2.21-6.1 4.95.02 1.18.51 2.3 1.36 3.11-.26.85-.71 1.62-1.3 2.28a.2.2 0 0 0-.04.21c.03.07.1.11.17.11 1.22-.02 2.4-.45 3.34-1.22.82.31 1.68.46 2.56.46 3.37 0 6.1-2.22 6.1-4.95S11.37 2.67 8 2.67M4.95 8.39a.76.76 0 1 1 0-1.52.76.76 0 0 1 0 1.52m3.05 0a.76.76 0 1 1 0-1.52.76.76 0 0 1 0 1.52m3.05 0a.76.76 0 1 1-.02-1.52c.42 0 .77.33.77.75v.01c0 .42-.34.76-.76.76"/></svg>',conversation:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M1.01 6.51c0-1.93 2.23-3.5 4.99-3.5s4.99 1.57 4.99 3.5-2.23 3.5-4.99 3.5c-.36 0-.71-.03-1.05-.08l-2.26 1.05c-.06.03-.11.03-.17.03-.27 0-.5-.21-.5-.5V8.6c-.62-.58-1.01-1.3-1.01-2.09m10.48-.01c0-.5-.13-.97-.36-1.41h.01c2.22.36 3.88 1.75 3.88 3.41 0 .79-.39 1.5-1.02 2.09v1.91a.5.5 0 0 1-.67.47l-2.26-1.05c-.34.05-.69.08-1.05.08-1.69 0-3.19-.59-4.09-1.5h.12c3.03 0 5.44-1.81 5.44-4" clip-rule="evenodd"/></svg>',"conversation-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M10 6.5C10 5.14 8.17 4 6 4l-.01.01c-2.17 0-4 1.14-4 2.5 0 .59.38 1.06.7 1.36l.32.3v1.55l1.51-.7.27-.13.3.04c.31.05.62.07.91.07 2.17 0 4-1.14 4-2.5m-9.01.01c0-1.929 2.237-3.498 4.995-3.5 2.758.002 4.995 1.571 4.995 3.5s-2.24 3.5-5 3.5c-.36 0-.71-.03-1.05-.08l-2.26 1.05c-.06.03-.11.03-.17.03-.26 0-.5-.21-.5-.5V8.6C1.38 8.02.99 7.3.99 6.51m4.995-3.5h.005-.01zm8.005 7.58c.62-.58 1.01-1.3 1.01-2.09q0-.18-.03-.36c-.01-.11-.04-.22-.07-.33a2.3 2.3 0 0 0-.17-.45 3.55 3.55 0 0 0-1.1-1.26c-.1-.07-.19-.13-.3-.2a5 5 0 0 0-.65-.35c-.23-.1-.48-.19-.73-.27a4 4 0 0 1-.19-.06c.14.36.22.74.23 1.13C13.18 6.78 14 7.59 14 8.5c0 .59-.38 1.07-.7 1.36l-.31.3-.01.43v1.12l-1.5-.7-.28-.12-.29.04c-.31.05-.62.07-.91.07-.67 0-1.3-.1-1.86-.29-.51.15-1.06.24-1.64.27.06.05.12.09.18.13l.42.24c.36.18.76.33 1.18.43.15.04.3.08.46.1.02.01.03.01.05.01.17.04.34.07.52.07.22.03.46.04.69.04.36 0 .71-.03 1.05-.08l2.26 1.05q.09.03.18.03c.26 0 .49-.21.5-.5z" clip-rule="evenodd"/></svg>',copy:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M4 2h6V1H4a1 1 0 0 0-1 1v9h1z"/><path fill="currentColor" d="M5 4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1z"/></svg>',"copy-file":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M4 2h6V1H4a1 1 0 0 0-1 1v9h1z"/><path fill="currentColor" d="M6 3h3v4h4v7a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"/><path fill="currentColor" d="m13 6-3-3v3z"/></svg>',"copy-file-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m10 3 3 3v8a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm0 1.414V6h1.586zM12 7H9V4H6v10h6z" clip-rule="evenodd"/><path fill="currentColor" d="M4 2h6V1H4a1 1 0 0 0-1 1v9h1z"/></svg>',"copy-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M10 2H4v9H3V2a1 1 0 0 1 1-1h6z"/><path fill="currentColor" fill-rule="evenodd" d="M5 4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1zm1 0h6v10H6z" clip-rule="evenodd"/></svg>',"credit-card":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M3 9h3v2H3z"/><path fill="currentColor" fill-rule="evenodd" d="M2 13a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1zm0-9h12v1H2zm12 3v5H2V7z" clip-rule="evenodd"/></svg>',cross:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M2 2.707 2.707 2l11.29 11.289-.708.707z"/><path fill="currentColor" d="M2.707 14 2 13.293 13.293 2l.707.708z"/></svg>',"cross-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 1C4.1 1 1 4.1 1 8s3.1 7 7 7 7-3.1 7-7-3.1-7-7-7m2.7 10.5L8 8.8l-2.7 2.7-.8-.8L7.2 8 4.5 5.3l.8-.8L8 7.2l2.7-2.7.8.8L8.8 8l2.7 2.7z"/></svg>',"cross-circle-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M1 8c0-3.9 3.1-7 7-7s7 3.1 7 7-3.1 7-7 7-7-3.1-7-7m1 0c0 3.3 2.7 6 6 6s6-2.7 6-6-2.7-6-6-6-6 2.7-6 6m6 .8 2.7 2.7.8-.8L8.8 8l2.7-2.7-.8-.8L8 7.2 5.3 4.5l-.8.8L7.2 8l-2.7 2.7.8.8z" clip-rule="evenodd"/></svg>',dashboard:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M2 2h6v7H2zm0 8h6v4H2zm7-8h5v4H9zm0 5h5v7H9z"/></svg>',"dashboard-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 2H2v7h6zM7 3H3v5h4zm1 7H2v4h6zm-1 1H3v2h4zm2-9v4h5V2zm4 1h-3v2h3zm1 4H9v7h5zm-1 1h-3v5h3z" clip-rule="evenodd"/></svg>',download:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M12.295 6.295 13 7l-5 5-5-5 .705-.705 3.795 3.79V1h1v9.085zM13 14v-2h1v2a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-2h1v2z" clip-rule="evenodd"/></svg>',earth:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m-1.224-2.553-.63 1.261A6.003 6.003 0 0 1 4.501 3.126l1.6.4a1 1 0 0 1 .742 1.14L6.41 7.19a1 1 0 0 1-.986.83H4.47a1 1 0 0 0-.77.362l-.185.223A1 1 0 0 0 3.5 9.862l.273.348a1 1 0 0 0 .59.362l1.658.332a1 1 0 0 1 .699.533l.057.116a1 1 0 0 1 0 .894m3.543-9.983V4.53a1 1 0 0 0 1 1h1.234a1 1 0 0 0 .664-.252l.09-.08a6.02 6.02 0 0 0-2.988-2.733m3.612 4.622-.012-.075h-3.05a1 1 0 0 0-.884.535l-.773 1.469a1 1 0 0 0-.115.465v.964a1 1 0 0 0 .408.806l.353.259a1 1 0 0 1 .408.806v1.242a6 6 0 0 0 3.665-6.47" clip-rule="evenodd"/></svg>',"earth-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m0-1a6 6 0 0 0 1.766-.264v-1.421a.5.5 0 0 0-.204-.403l-.353-.26a1.5 1.5 0 0 1-.612-1.208V9.48c0-.243.06-.483.173-.698l.772-1.469a1.5 1.5 0 0 1 1.328-.802h2.944a6 6 0 0 0-.284-.844 1.5 1.5 0 0 1-.977.362h-1.235a1.5 1.5 0 0 1-1.5-1.5V2.28A6 6 0 0 0 8 2a6 6 0 0 0-2.918.756l1.14.286A1.5 1.5 0 0 1 7.336 4.75l-.433 2.525a1.5 1.5 0 0 1-1.479 1.247H4.47a.5.5 0 0 0-.385.18l-.185.223a.5.5 0 0 0-.008.628l.273.348a.5.5 0 0 0 .295.181l1.658.332a1.5 1.5 0 0 1 1.048.8l.058.115a1.5 1.5 0 0 1 0 1.342l-.587 1.174A6 6 0 0 0 8 14m6-6q0-.247-.02-.489h-3.11a.5.5 0 0 0-.443.268l-.772 1.468a.5.5 0 0 0-.058.233v.964a.5.5 0 0 0 .204.403l.353.259a1.5 1.5 0 0 1 .612 1.209v1.01A6 6 0 0 0 14 8m-8.402 5.5h.093l.638-1.276a.5.5 0 0 0 0-.448l-.057-.115a.5.5 0 0 0-.35-.267l-1.658-.331a1.5 1.5 0 0 1-.885-.545l-.273-.347a1.5 1.5 0 0 1 .025-1.884l.184-.223a1.5 1.5 0 0 1 1.155-.542h.954a.5.5 0 0 0 .493-.416l.433-2.525a.5.5 0 0 0-.37-.57l-1.95-.487-.046.018A6.002 6.002 0 0 0 5.598 13.5m7.287-8.597.164-.146a6 6 0 0 0-1.458-1.564 6 6 0 0 0-.772-.457V4.53a.5.5 0 0 0 .5.5h1.234a.5.5 0 0 0 .332-.126" clip-rule="evenodd"/></svg>',ellipsis:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M3 8a1 1 0 1 1 2 0 1 1 0 0 1-2 0m4 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0m4 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0"/></svg>',"ellipsis-vertical":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0 4a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0 4a1 1 0 1 1 0 2 1 1 0 0 1 0-2"/></svg>',euro:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m12.08 11.02 1.42 1.42a5.95 5.95 0 0 1-4 1.56c-2.6 0-4.8-1.64-5.62-3.94H1.5v-1.5h2.04C3.5 8.38 3.5 8.18 3.5 8c0-.16 0-.34.04-.5H1.5V6h2.36c.8-2.34 3.02-4 5.64-4 1.54 0 2.94.6 4 1.56l-1.42 1.42c-.7-.6-1.6-.98-2.58-.98-1.48 0-2.76.8-3.46 2h3.52v1.5H5.54c-.02.16-.04.32-.04.5 0 .2.02.38.04.56h4.02v1.5H6.08C6.78 11.22 8.06 12 9.5 12c.98 0 1.88-.38 2.58-.98"/></svg>',"euro-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><g clip-path="url(#a)"><path fill="currentColor" d="M8 .67C3.95.67.67 3.95.67 8S3.95 15.33 8 15.33s7.33-3.28 7.33-7.33S12.05.67 8 .67m2.27 11.4c-.38.09-.76.14-1.15.14a4.04 4.04 0 0 1-3.99-2.92h-.58c-.12 0-.23-.09-.23-.22v-.54c0-.12.11-.22.23-.22h.41a5 5 0 0 1 0-.8h-.41c-.12 0-.23-.09-.23-.22v-.58c0-.12.1-.22.23-.22h.63c.6-1.65 2.18-2.74 3.94-2.71.34 0 .68.03 1.02.1.12.03.19.16.16.28l-.23.84c-.03.12-.15.19-.27.17-.24-.05-.48-.08-.73-.08A2.42 2.42 0 0 0 6.81 6.5h2.71c.12.03.2.15.17.27l-.13.58c-.02.1-.11.18-.22.18H6.52c-.03.27-.03.53 0 .8h2.63c.12.03.2.15.17.27l-.11.52c-.03.1-.12.17-.22.18H6.8c.36.96 1.28 1.6 2.31 1.61.3 0 .59-.04.88-.1.12-.02.24.06.27.18l.17.84c.02.12-.05.24-.17.27v-.03z"/></g><defs><clipPath id="a"><path fill="currentColor" d="M0 0h16v16H0z"/></clipPath></defs></svg>',"exclamation-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M1 8a7 7 0 1 1 14 0A7 7 0 0 1 1 8m7.75-4v5h-1.5V4zm0 8v-1.5h-1.5V12z" clip-rule="evenodd"/></svg>',"exclamation-circle-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8.75 4v5h-1.5V4zm0 8v-1.5h-1.5V12z"/><path fill="currentColor" fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1M2 8a6 6 0 1 0 12 0A6 6 0 0 0 2 8" clip-rule="evenodd"/></svg>',"exclamation-stamp":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m15 8-1.55-1.86.22-2.46-2.3-.55L10.17 1 8 1.98 5.84 1 4.63 3.13l-2.29.54.22 2.46L1.01 8l1.55 1.86-.22 2.47 2.3.55 1.2 2.13L8 14.03l2.17.98 1.2-2.13 2.3-.55-.22-2.46L15 8.01zm-6.36 3.35H7.36v-1.34h1.28zm0-2.67H7.36V4.67h1.28z"/></svg>',"exclamation-triangle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m8 2 7 12H1zm-.75 4.5h1.5V10h-1.5zm1.5 6V11h-1.5v1.5z" clip-rule="evenodd"/></svg>',"exclamation-triangle-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8.75 6.5V10h-1.5V6.5zm0 6V11h-1.5v1.5z"/><path fill="currentColor" fill-rule="evenodd" d="M8 2 1 14h14zm0 1.985L2.741 13h10.518z" clip-rule="evenodd"/></svg>',eye:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 10a2 2 0 1 0 0-4 2 2 0 0 0 0 4"/><path fill="currentColor" fill-rule="evenodd" d="M15 8s-3.134 5-7 5-7-5-7-5 3.134-5 7-5 7 5 7 5m-7 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6" clip-rule="evenodd"/></svg>',"eye-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6m0-1a2 2 0 1 0 0-4 2 2 0 0 0 0 4" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M1 8s3.134 5 7 5 7-5 7-5-3.134-5-7-5-7 5-7 5m1.215 0 .133.178a15 15 0 0 0 1.405 1.61C4.974 10.994 6.478 12 8 12s3.026-1.006 4.247-2.212A15 15 0 0 0 13.785 8l-.133-.178a15 15 0 0 0-1.405-1.61C11.026 5.006 9.522 4 8 4S4.974 5.006 3.753 6.212A15 15 0 0 0 2.215 8" clip-rule="evenodd"/></svg>',"eye-slash":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m1 1.7.7-.7L15 14.302l-.7.7-3.084-3.085c-.963.63-2.057 1.08-3.216 1.08-3.866 0-7-5-7-5S2.174 6.124 3.97 4.67zm4.556 4.557A3 3 0 0 0 9.74 10.44l-.722-.722a2 2 0 0 1-2.74-2.74z" clip-rule="evenodd"/><path fill="currentColor" d="m5.67 3.572 1.532 1.532a3.003 3.003 0 0 1 3.69 3.691l1.877 1.877C14.142 9.366 15 7.997 15 7.997s-3.134-5-7-5c-.817 0-1.6.223-2.33.575"/><path fill="currentColor" d="M9.998 7.9 8.097 6a2 2 0 0 1 1.9 1.901"/></svg>',"eye-slash-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m1 1.7.7-.7L15 14.302l-.7.7-3.084-3.085c-.963.63-2.057 1.08-3.216 1.08-3.866 0-7-5-7-5S2.174 6.124 3.97 4.67zm3.682 3.683c-.324.256-.635.535-.93.826a15 15 0 0 0-1.537 1.788l.133.178c.334.442.815 1.028 1.405 1.61C4.974 10.99 6.478 11.997 8 11.997c.852 0 1.698-.315 2.492-.804l-.752-.752a3 3 0 0 1-4.184-4.184zm1.596 1.596a2 2 0 0 0 2.74 2.74z" clip-rule="evenodd"/><path fill="currentColor" d="m5.67 3.572.757.757A4.2 4.2 0 0 1 8 3.997c1.522 0 3.026 1.006 4.247 2.212a15 15 0 0 1 1.538 1.788q-.061.085-.133.178a15 15 0 0 1-1.531 1.733l-.06.057.708.707C14.142 9.366 15 7.997 15 7.997s-3.134-5-7-5c-.817 0-1.6.223-2.33.575"/><path fill="currentColor" d="m8.097 6-.895-.896a3.003 3.003 0 0 1 3.69 3.691L9.999 7.9A2 2 0 0 0 8.097 6"/></svg>',fax:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M13 14H6V2h7v3a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1M7 3h5v2H7zm0 4h5v1H7zm1 2H7v1h1zm-1 2h1v1H7zm3-2H9v1h1zm-1 2h1v1H9zm3-2h-1v1h1zm-1 2h1v1h-1z" clip-rule="evenodd"/><path fill="currentColor" d="M2 5a1 1 0 0 1 1-1h1a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1z"/></svg>',"fax-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M12 3H7v2h5zM6 3v2a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1V2H6zm6 3h1v7H6V6zM3 5h2v8H3zm9 2H7v1h5zM7 9h1v1H7zm1 2H7v1h1zm1-2h1v1H9zm1 2H9v1h1zm1-2h1v1h-1zm1 2h-1v1h1z" clip-rule="evenodd"/></svg>',file:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M9 5V1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V5zm1-1V1l3 3z" clip-rule="evenodd"/></svg>',"file-cog":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M9 10.06c-.03.53-.47.94-1 .94-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1zm.55-4.81h3.76v9.4a.68.68 0 0 1-.66.66h-9.3c-.37 0-.67-.31-.66-.68V1.33c.01-.36.3-.65.66-.66h5.54v3.89c-.01.37.28.68.65.69zM10 8l-.51.29c-.21-.18-.46-.32-.72-.41v-.57c0-.06-.05-.12-.11-.14-.43-.09-.87-.09-1.3 0a.14.14 0 0 0-.12.14v.59q-.405.135-.72.42L6 8a.135.135 0 0 0-.17 0c-.3.32-.52.71-.65 1.13-.02.06 0 .13.06.16l.51.29q-.075.42 0 .84l-.51.29c-.05.03-.08.1-.06.16.13.42.35.81.65 1.13.05.04.12.04.17 0l.51-.29c.22.18.46.32.73.41v.59c0 .07.04.13.11.14.43.09.87.09 1.3 0 .07-.01.12-.07.11-.14v-.51c.27-.09.51-.23.73-.41l.51.29c.05.04.12.04.17 0 .3-.32.52-.71.65-1.13.02-.06 0-.13-.06-.16l-.5-.3c.05-.27.05-.56 0-.83l.5-.3c.06-.03.09-.1.07-.16a2.9 2.9 0 0 0-.65-1.13A.16.16 0 0 0 10 8m3.12-4.33L10.41.87a.63.63 0 0 0-.47-.2h-.17v3.66h3.54v-.17c0-.18-.06-.36-.19-.49"/></svg>',"file-download":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m10.41.87 2.71 2.8a.7.7 0 0 1 .19.49v.17H9.77V.67h.17a.63.63 0 0 1 .47.2m2.9 4.38v9.42a.67.67 0 0 1-.66.66h-9.3a.67.67 0 0 1-.66-.68V1.33a.67.67 0 0 1 .66-.66h5.54v3.9a.67.67 0 0 0 .66.68zm-5.45 7.69 2.54-2.53a.19.19 0 0 0 .01-.27.16.16 0 0 0-.14-.06H8.93a.2.2 0 0 1-.2-.2v-2.6a.18.18 0 0 0-.18-.19H6.92a.19.19 0 0 0-.19.18v2.61a.2.2 0 0 1-.2.2H5.19a.18.18 0 0 0-.19.18.2.2 0 0 0 .06.15l2.54 2.53a.18.18 0 0 0 .26 0" clip-rule="evenodd"/></svg>',"file-excel":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M9 5V1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V5zm-.018 7h1.335L8.776 9.48l1.5-2.48H9.02l-.795 1.485a5 5 0 0 0-.157.436h-.014a2.6 2.6 0 0 0-.15-.422L7.19 7H5.82l1.457 2.5L5.683 12h1.342l.865-1.614q.09-.234.115-.349h.014q.053.244.101.335z" clip-rule="evenodd"/><path fill="currentColor" d="M10 4V1l3 3z"/></svg>',"file-excel-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8.982 12h1.335L8.776 9.48l1.5-2.48H9.02l-.795 1.485a5 5 0 0 0-.157.436h-.014a2.6 2.6 0 0 0-.15-.422L7.19 7H5.82l1.457 2.5L5.683 12h1.342l.865-1.614q.09-.234.115-.349h.014q.053.244.101.335z"/><path fill="currentColor" fill-rule="evenodd" d="M4 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4l-3-3zm6 3V2.537L11.254 4zm2 1v9H4V2h5v3z" clip-rule="evenodd"/></svg>',"file-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m10 1 3 3v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 1.415V4h1.585zM12 5H9V2H4v12h8z" clip-rule="evenodd"/></svg>',"file-pdf":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M6.464 11.274a4 4 0 0 0-.393.207c-.223.137-.37.27-.444.387-.072.11-.073.19-.03.273l.019.034.027-.01c.103-.042.268-.177.48-.433q.18-.22.34-.458m1.243-1.007q.378-.09.764-.146a9 9 0 0 1-.386-.65 16 16 0 0 1-.378.796m1.873.363a3 3 0 0 0 .341.314c.164.123.28.165.344.168a.1.1 0 0 0 .053-.012.23.23 0 0 0 .07-.094.3.3 0 0 0 .045-.152.07.07 0 0 0-.02-.047c-.039-.047-.15-.116-.391-.159a3 3 0 0 0-.463-.04zM8.051 7.952q.096-.308.151-.626.035-.213.029-.352a.5.5 0 0 0-.024-.15.4.4 0 0 0-.11.03c-.066.027-.12.08-.148.215l-.01.057q-.029.213.044.565.027.126.068.26"/><path fill="currentColor" fill-rule="evenodd" d="M9 1v4h4v9a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM5.42 12.713a.6.6 0 0 1-.332-.318c-.147-.294-.098-.588.06-.834.15-.233.4-.43.68-.596a6 6 0 0 1 1.122-.489q.454-.817.804-1.686a5.6 5.6 0 0 1-.326-.98c-.065-.303-.09-.603-.034-.86.056-.268.207-.509.492-.623l.055-.02a.75.75 0 0 1 .4-.038.53.53 0 0 1 .362.276c.066.124.09.27.096.407.005.142-.01.3-.036.465-.063.386-.204.859-.394 1.358q.316.672.742 1.277a4.5 4.5 0 0 1 1.01.038c.276.049.556.147.727.352a.64.64 0 0 1 .151.392.9.9 0 0 1-.104.426.8.8 0 0 1-.312.341.65.65 0 0 1-.342.078c-.25-.01-.495-.148-.706-.315l-.095-.081a4.3 4.3 0 0 1-.595-.638 9 9 0 0 0-1.512.307 8.6 8.6 0 0 1-.773 1.143c-.22.265-.46.496-.701.596a.6.6 0 0 1-.44.022" clip-rule="evenodd"/><path fill="currentColor" d="M10 1v3h3z"/></svg>',"file-pdf-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5.42 12.713a.6.6 0 0 1-.332-.318c-.147-.294-.098-.588.06-.834.15-.233.4-.43.68-.596a6 6 0 0 1 1.122-.489q.454-.817.804-1.686a5.5 5.5 0 0 1-.326-.98c-.065-.303-.09-.603-.034-.86.056-.268.207-.509.492-.623.145-.058.303-.09.455-.058a.53.53 0 0 1 .362.276c.066.124.09.27.096.407.005.142-.01.3-.036.465-.063.386-.204.859-.394 1.358q.316.672.742 1.277a4.4 4.4 0 0 1 1.01.038c.276.049.556.147.727.352a.64.64 0 0 1 .151.392.9.9 0 0 1-.104.426.8.8 0 0 1-.268.315.65.65 0 0 1-.386.104c-.25-.01-.495-.148-.706-.315a4.3 4.3 0 0 1-.69-.72 9 9 0 0 0-1.512.308 8.6 8.6 0 0 1-.773 1.143c-.22.265-.46.496-.701.596a.6.6 0 0 1-.44.022m1.044-1.44a4 4 0 0 0-.348.18c-.248.148-.41.29-.49.415-.07.11-.072.19-.03.273l.02.034.027-.01c.103-.042.268-.177.48-.433q.18-.22.34-.458m1.242-1.006q.378-.09.764-.146a9 9 0 0 1-.386-.65 16 16 0 0 1-.378.796m2.18.65a3 3 0 0 1-.328-.309q.233.002.463.04c.24.043.352.112.392.159q.019.02.02.047a.3.3 0 0 1-.045.152.23.23 0 0 1-.071.094.1.1 0 0 1-.053.012c-.07-.003-.196-.05-.377-.194m-1.684-3.59q-.056.316-.15.625a3 3 0 0 1-.069-.26c-.057-.268-.065-.478-.034-.623.028-.134.082-.188.148-.214a.4.4 0 0 1 .11-.03.5.5 0 0 1 .024.15q.006.138-.029.351" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M3 2a1 1 0 0 1 1-1h6l3 3v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm7 .537V4h1.254zM12 14V5H9V2H4v12z" clip-rule="evenodd"/></svg>',"file-text":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M9 5V1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V5zm2 2H5v1h6zM5 9h6v1H5zm6 2H5v1h6z" clip-rule="evenodd"/><path fill="currentColor" d="M10 4V1l3 3z"/></svg>',"file-text-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M11 7H5v1h6zM5 9h6v1H5zm6 2H5v1h6z"/><path fill="currentColor" fill-rule="evenodd" d="m13 4-3-3H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1zm-3 0V2.415L11.585 4zM9 5h3v9H4V2h5z" clip-rule="evenodd"/></svg>',"file-upload":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M13.12 3.67 10.41.87a.63.63 0 0 0-.47-.2h-.17v3.66h3.54v-.17c0-.18-.06-.36-.19-.49m.19 11V5.25H9.55c-.37 0-.67-.31-.66-.68V.67H3.35a.68.68 0 0 0-.66.66v13.32c0 .37.29.67.66.68h9.3c.36-.01.65-.3.66-.66m-3-4.64H8.93c-.1 0-.19.07-.2.18v2.61c0 .1-.09.18-.19.18H6.91a.18.18 0 0 1-.18-.18V10.2c0-.1-.07-.19-.18-.2H5.19s-.09.01-.14 0a.19.19 0 0 1 0-.27L7.6 7.14c.07-.07.19-.07.26 0l2.54 2.54s.06.09.06.14c0 .1-.09.18-.19.18z"/></svg>',"file-word":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M9 5V1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V5zM5 7l1.091 5h1.002L8 8.262 8.91 12h.98L11 7h-.93l-.701 3.492L8.568 7H7.47l-.836 3.435L5.944 7z" clip-rule="evenodd"/><path fill="currentColor" d="M10 4V1l3 3z"/></svg>',"file-word-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m5 7 1.091 5h1.002L8 8.262 8.91 12h.98L11 7h-.93l-.701 3.492L8.568 7H7.47l-.836 3.435L5.944 7z"/><path fill="currentColor" fill-rule="evenodd" d="M4 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4l-3-3zm6 3V2.537L11.254 4zm2 1v9H4V2h5v3z" clip-rule="evenodd"/></svg>',filter:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M3 2a1 1 0 0 0-1 1v1.586a1 1 0 0 0 .293.707L6 9v2.5a1 1 0 0 0 .4.8l2 1.5A1 1 0 0 0 10 13V9l3.707-3.707A1 1 0 0 0 14 4.586V3a1 1 0 0 0-1-1z" clip-rule="evenodd"/></svg>',"filter-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M3 3h10v1.586l-4 4V13l-2-1.5V8.586l-4-4zm3 7V9L2.293 5.293A1 1 0 0 1 2 4.586V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v1.586a1 1 0 0 1-.293.707L10 9v4a1 1 0 0 1-1.6.8l-2-1.5a1 1 0 0 1-.4-.8z" clip-rule="evenodd"/></svg>',"floppy-disk":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2 3a1 1 0 0 1 1-1h7.586a1 1 0 0 1 .707.293l2.414 2.414a1 1 0 0 1 .293.707V13a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1zm2 0h6v3H4zm4 5a2 2 0 1 0 0 4 2 2 0 0 0 0-4" clip-rule="evenodd"/></svg>',"floppy-disk-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M6 10a2 2 0 1 1 4 0 2 2 0 0 1-4 0m2 1a1 1 0 1 1 0-2 1 1 0 0 1 0 2" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M10.586 2a1 1 0 0 1 .707.293l2.414 2.414a1 1 0 0 1 .293.707V13a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1zM3 3v10h10V5.414L10.586 3H10v3H4V3zm2 0h4v2H5z" clip-rule="evenodd"/></svg>',folder:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M7 4h7c.55 0 1 .45 1 1v7c0 .55-.45 1-1 1H2c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h4z"/></svg>',"folder-check":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M14 4H7L6 3H2c-.55 0-1 .45-1 1v8c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1M5.705 8.185 7 9.48l3.295-3.295.705.705-4 4-2-2z" clip-rule="evenodd"/></svg>',"folder-check-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M5.705 8.185 7 9.48l3.295-3.295.705.705-4 4-2-2z"/><path fill="currentColor" fill-rule="evenodd" d="m6 3 1 1.001h7c.55 0 1 .45 1 1.001v6.997c0 .55-.45 1.001-1 1.001H2c-.55 0-1-.45-1-1.001V4.001C1 3.451 1.45 3 2 3zm-.41 1.001H2v8.008h12V5.002H6.59z" clip-rule="evenodd"/></svg>',"folder-lines":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14 4H7L6 3H2c-.55 0-1 .45-1 1v8c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1m-5 6H4V9h5zm3-2H4V7h8z"/></svg>',"folder-lines-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12 8.005H4V7.004h8zM9 9.006H4v1.001h5zM5.59 4.001H2v8.008h12V5.002H6.59l-.29-.29zM6 3l1 1.001h7c.55 0 1 .45 1 1.001v6.997c0 .55-.45 1.001-1 1.001H2c-.55 0-1-.45-1-1.001V4.001C1 3.451 1.45 3 2 3z"/></svg>',"folder-link":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14 4.44H8.46L6.62 2.67H2C1.27 2.67.68 3.27.67 4v8c0 .73.6 1.32 1.33 1.33h12c.73 0 1.32-.6 1.33-1.33V5.78c0-.73-.6-1.33-1.33-1.34m-6.82 6.88H5.65c-1.34 0-2.42-1.08-2.42-2.42s1.08-2.42 2.42-2.42h.84c.14 0 .25.11.25.25 0 .06-.02.13-.06.17-.2.21-.36.45-.49.71-.04.07-.11.13-.19.14h-.33c-.62-.15-1.24.22-1.39.84s.22 1.24.84 1.39c.15.04.31.04.47.02h1.58c.62 0 1.12-.48 1.15-1.1v-.22c-.02-.08 0-.16.06-.22.12-.13.29-.2.47-.2h.45c.12 0 .23.09.25.21.02.14.02.29 0 .43 0 1.32-1.05 2.39-2.37 2.42m3.17 0h-.84c-.06 0-.13-.02-.17-.07-.1-.1-.1-.25 0-.35.2-.21.36-.45.49-.71.02-.09.08-.16.17-.19h.36c.63.04 1.18-.43 1.23-1.07.04-.63-.43-1.18-1.07-1.23H8.83c-.64 0-1.15.51-1.15 1.15v.25c.02.08 0 .16-.06.22-.12.13-.29.21-.47.21H6.7c-.13 0-.24-.09-.26-.22-.01-.14-.01-.27 0-.41a2.41 2.41 0 0 1 2.38-2.43h1.52c1.34 0 2.42 1.07 2.43 2.41 0 1.34-1.09 2.42-2.42 2.43z"/></svg>',"folder-link-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m6.22 3.67 1.55 1.49.29.28h5.93c.19 0 .34.16.34.34v6.21c0 .18-.15.34-.33.34H2.01c-.18 0-.34-.15-.34-.33V4.01c0-.18.15-.34.33-.34zm.4-1H2C1.27 2.67.68 3.27.67 4v8c0 .73.6 1.32 1.33 1.33h12c.73 0 1.32-.6 1.33-1.33V5.78c0-.73-.6-1.33-1.33-1.34H8.46z"/><path fill="currentColor" d="M9.555 8.848a2.37 2.37 0 0 1-2.372 2.372l-1.486.006a2.366 2.366 0 0 1-2.37-2.37 2.38 2.38 0 0 1 2.376-2.377h.82c.135 0 .25.106.25.249q-.001.094-.062.17a3 3 0 0 0-.474.687.26.26 0 0 1-.223.143h-.286a1.13 1.13 0 0 0-1.165 1.086 1.123 1.123 0 0 0 1.082 1.163c.023.005.045 0 .063 0l1.481-.002A1.123 1.123 0 0 0 8.292 8.64a.25.25 0 0 1 .063-.214.62.62 0 0 1 .46-.201l.464-.001c.125 0 .223.089.245.21q.034.206.035.419zm3.11.001a2.365 2.365 0 0 0-2.371-2.37l-1.481.001a2.387 2.387 0 0 0-2.337 2.8c.022.12.125.205.245.21l.464-.001a.6.6 0 0 0 .46-.201.24.24 0 0 0 .063-.214 1.123 1.123 0 0 1 1.104-1.335l1.48-.002a1.12 1.12 0 0 1 1.15 1.096 1.13 1.13 0 0 1-1.099 1.152c-.022.004-.045 0-.062 0h-.286a.25.25 0 0 0-.223.143c-.125.25-.286.482-.474.688a.244.244 0 0 0 .013.352.24.24 0 0 0 .17.063l.82-.001a2.38 2.38 0 0 0 2.377-2.376z"/></svg>',"folder-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M7 4.001 6 3H2c-.55 0-1 .45-1 1.001v7.998C1 12.549 1.45 13 2 13h12c.55 0 1-.45 1-1.001V5.002c0-.55-.45-1.001-1-1.001zm-5 0h3.59l1 1.001H14v7.007H2z" clip-rule="evenodd"/></svg>',"folder-star":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14 4.44H8.46L6.62 2.67H2A1.35 1.35 0 0 0 .67 4v8A1.35 1.35 0 0 0 2 13.33h12A1.35 1.35 0 0 0 15.33 12V5.78A1.36 1.36 0 0 0 14 4.44m-.2 3.89L12 9.66l.69 2a.22.22 0 0 1-.08.27.26.26 0 0 1-.13.06.4.4 0 0 1-.15-.06l-1.77-1.26L8.75 12a.34.34 0 0 1-.15 0 .3.3 0 0 1-.13 0 .23.23 0 0 1-.08-.27l.69-2-1.81-1.35a.23.23 0 0 1-.1-.17.24.24 0 0 1 .24-.24h2.21l.67-2a.26.26 0 0 1 .243-.156.24.24 0 0 1 .217.156l.67 2h2.2a.26.26 0 0 1 .26.24.3.3 0 0 1-.08.12"/></svg>',folders:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M9 3h4c.55 0 1 .45 1 1v5c0 .55-.45 1-1 1h-1V8a2 2 0 0 0-2-2H6.414l-1-1H5V3c0-.55.45-1 1-1h2z"/><path fill="currentColor" d="M10 7a1 1 0 0 1 1 1v5c0 .55-.45 1-1 1H3c-.55 0-1-.45-1-1V7c0-.55.45-1 1-1h2l1 1z"/></svg>',"folders-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M9 3 8 2H6c-.55 0-1 .45-1 1v2h1V3h1.59l1 1H13v5.01h-1V10h1c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1z"/><path fill="currentColor" fill-rule="evenodd" d="m5 6 1 1h4c.55 0 1 .45 1 1v5c0 .55-.45 1-1 1H3c-.55 0-1-.45-1-1V7c0-.55.45-1 1-1zm-.41 1H3v6.01h7V8H5.59z" clip-rule="evenodd"/></svg>',gavel:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M5.908 5.012a.59.59 0 0 0 .59 1.02l.138-.08.59 1.02-5.892 3.402a.59.59 0 0 0 .589 1.02l5.892-3.4.589 1.02-.14.08a.59.59 0 0 0 .59 1.02l3.31-1.91a.59.59 0 0 0-.59-1.02l-.139.08-1.768-3.062.14-.08a.59.59 0 0 0-.59-1.021zm3.631 7.01a.5.5 0 1 0 0 1h5a.5.5 0 0 0 0-1z"/></svg>',"gavel-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5.869 4.99a.59.59 0 0 0 .59 1.02l.138-.08.59 1.02-5.892 3.402a.59.59 0 1 0 .589 1.02l5.892-3.4.59 1.02-.14.08a.59.59 0 0 0 .589 1.02l3.31-1.91a.59.59 0 0 0-.59-1.02l-.139.08L9.628 4.18l.14-.08a.59.59 0 0 0-.59-1.021zm1.594.44 1.3-.75 1.767 3.062-1.299.75z" clip-rule="evenodd"/><path fill="currentColor" d="M9.5 12a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1z"/></svg>',"graduation-cap":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m1 6 7-3 7 3v5h-1V6.429L8 9z"/><path fill="currentColor" d="M3 7.945V11l5 2 5-2V7.945l-5 2.143z"/></svg>',"graduation-cap-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m1 6 2 .857V11l5 2 5-2V6.857l1-.428V11h1V6L8 3zm3 4.323V7.286L8 9l4-1.714v3.037l-4 1.6zM3.539 6 8 7.912 12.461 6 8 4.088z" clip-rule="evenodd"/></svg>',"hand-euro":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14.91 7.11c-.581.55-1.362.89-2.213.89h-.01c-1.357 0-2.527-.86-3.043-2.09H8v-1h1.385a4 4 0 0 1-.02-.554l.002-.043q.005-.113.017-.223H8v-1h1.642C10.156 1.86 11.322 1 12.687 1c.901 0 1.712.37 2.313.98l-.711.71c-.42-.43-.991-.69-1.602-.69-.774 0-1.492.422-1.92 1.09h1.239v1h-1.612a2.7 2.7 0 0 0 0 .82h1.612v1h-1.241C11.19 6.578 11.907 7 12.687 7c.57 0 1.101-.22 1.512-.6zM3 7H1v7h2zm9.81 4.5h-2.06c-.09.18-.2.34-.35.49-.37.37-.87.58-1.39.58s-1.02-.2-1.39-.58l-1.04-1.04c-.2-.2-.2-.51 0-.71s.51-.2.71 0l1.04 1.04c.36.36 1 .37 1.36 0 .18-.18.28-.42.28-.68s-.1-.5-.28-.68L8.44 8.67c-.2-.2-.44-.36-.71-.48-.3-.12-.62-.18-.94-.18h-2.8v4.8h.02l.29-.02 1.94 1.63c.45.38 1.02.58 1.6.58h5.81c.74 0 1.33-.6 1.33-1.33 0-1.2-.97-2.17-2.17-2.17"/></svg>',"hand-euro-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14.91 7.11c-.581.55-1.362.89-2.213.89h-.01c-1.357 0-2.527-.86-3.043-2.09H8v-1h1.385a3.7 3.7 0 0 1 0-.82H8v-1h1.642C10.156 1.86 11.322 1 12.687 1c.901 0 1.712.37 2.313.98l-.711.71c-.42-.43-.991-.69-1.602-.69-.774 0-1.492.422-1.92 1.09h1.239v1h-1.612a2.7 2.7 0 0 0 0 .82h1.612v1h-1.241C11.19 6.578 11.907 7 12.687 7c.57 0 1.101-.22 1.512-.6z"/><path fill="currentColor" fill-rule="evenodd" d="M1 7h3v1h2.798a2.5 2.5 0 0 1 1.77.731L9.73 9.896a1.56 1.56 0 0 1 .376 1.603h2.726c1.197 0 2.167.971 2.167 2.167 0 .737-.599 1.333-1.334 1.333H7.852a2.5 2.5 0 0 1-1.599-.578L4 12.566V14H1zm1 1h1v5H2zm2 1v2.27l2.892 2.382c.27.224.61.347.96.347h5.814c.185 0 .334-.15.334-.333 0-.644-.522-1.167-1.167-1.167h-3.77a1.56 1.56 0 0 1-1.539-.395l-.75-.75a.5.5 0 1 1 .707-.707l.75.75a.56.56 0 0 0 .397.164h.021a.56.56 0 0 0 .375-.957L7.861 9.439A1.5 1.5 0 0 0 6.799 9z" clip-rule="evenodd"/></svg>',"hand-up":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.75 3.5c-.41 0-.75.34-.75.75v3.5c0 .14-.11.25-.25.25s-.25-.11-.25-.25v-4c0-.41-.34-.75-.75-.75s-.75.34-.75.75v4c0 .14-.11.25-.25.25s-.25-.11-.25-.25v-5c0-.41-.34-.75-.75-.75S8 2.34 8 2.75v5c0 .14-.11.25-.25.25s-.25-.11-.25-.25v-4c0-.41-.34-.75-.75-.75S6 3.34 6 3.75V11L3.97 9.54a.845.845 0 0 0-1.21 0c-.33.34-.34.88 0 1.21l2.22 2.22c.66.66 1.55 1.03 2.47 1.03H11a2.5 2.5 0 0 0 2.5-2.5V4.25c0-.41-.34-.75-.75-.75"/></svg>',history:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m12.975 3.82.002-.001-.083-.09-.063-.066-.009-.01-.001-.002a6 6 0 0 0-.272-.29q-.076-.074-.157-.144l-.058-.052-.004-.003a6 6 0 0 0-.275-.237 6 6 0 0 0-.22-.166l-.024-.018a7 7 0 0 0-.293-.203 7 7 0 0 0-.859-.467 7 7 0 0 0-.339-.14l-.03-.011a6 6 0 0 0-.255-.093 7 7 0 0 0-.376-.108L9.592 1.7a4 4 0 0 0-.652-.128l-.092-.015q-.072-.013-.146-.022A6.47 6.47 0 0 0 3 3.847V1.996H2v4h4v-1H3.406a5.48 5.48 0 0 1 5.189-2.467q.061.008.124.019l.077.012q.188.025.373.064.088.02.173.044l.063.017q.16.041.317.09.115.04.227.084l.016.006a6 6 0 0 1 .523.232 5.4 5.4 0 0 1 .736.452l.03.022q.09.066.178.134.12.098.235.204l.05.044a4 4 0 0 1 .36.364l.012.013A5.496 5.496 0 1 1 2.5 7.996h-1A6.5 6.5 0 1 0 12.975 3.82"/><path fill="currentColor" d="M10.088 11.746 7.293 8.95V4.246h1v4.29l2.5 2.505z"/></svg>',home:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m13.55 5.5-5-3.33C8.38 2.06 8.19 2 7.99 2s-.39.06-.56.17L2.45 5.5c-.28.19-.45.5-.45.83v6.66c0 .55.45 1 1 1h4V12c0-.56.45-1.01 1-1.01s1 .45 1 1.01v1.99h4c.55 0 1-.45 1-1V6.33c0-.33-.17-.65-.45-.83"/></svg>',"home-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m13.55 5.5-5-3.33C8.38 2.06 8.19 2 7.99 2s-.39.06-.56.17L2.45 5.5c-.28.19-.45.5-.45.83v6.66c0 .55.45 1 1 1h10c.55 0 1-.45 1-1V6.33c0-.33-.17-.65-.45-.83m-.56 7.5h-4v-1c0-.55-.45-1-1-1s-1 .45-1 1v1H3V6.33L8 3l5 3.33V13z"/></svg>',"info-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-7.75 4V7h1.5v5zm0-8v1.5h1.5V4z" clip-rule="evenodd"/></svg>',"info-circle-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M7.25 12V7h1.5v5zm0-8v1.5h1.5V4z"/><path fill="currentColor" fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m6-7A6 6 0 1 0 2 8a6 6 0 0 0 12 0" clip-rule="evenodd"/></svg>',"interrogation-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M15.039 8.146a7 7 0 1 1-14 0 7 7 0 0 1 14 0m-6.974-.5a1 1 0 1 0-.942-1.335l-1.43-.458A2.501 2.501 0 1 1 8.79 9.04v.606h-1.5v-2zm-.026 3a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5" clip-rule="evenodd"/></svg>',"interrogation-circle-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M7.824 7.646a1 1 0 1 0-.943-1.335l-1.429-.458A2.501 2.501 0 1 1 8.548 9.04v.606h-1.5v-2zm-.776 3.75a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0"/><path fill="currentColor" fill-rule="evenodd" d="M7.798 15.146a7 7 0 1 0 0-14 7 7 0 0 0 0 14m0-1a6 6 0 1 0 0-12 6 6 0 0 0 0 12" clip-rule="evenodd"/></svg>',key:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8.44 6.67a3.994 3.994 0 0 0-5.1-2.44A3.986 3.986 0 0 0 .9 9.33 3.994 3.994 0 0 0 6 11.77c1.14-.4 2.04-1.3 2.44-2.44h2.89V12H14V9.33h1.33V6.67zM4.67 9.33c-.73 0-1.33-.6-1.33-1.33s.6-1.33 1.33-1.33S6 7.27 6 8s-.58 1.32-1.31 1.33z"/></svg>',laptop:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M6.5 5a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1z"/><path fill="currentColor" fill-rule="evenodd" d="M3 3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1H1a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1h-2a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zm10 1H3v7h10z" clip-rule="evenodd"/></svg>',"life-ring":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 15a6.97 6.97 0 0 0 4.192-1.394 7 7 0 0 0 1.315-1.284A6.97 6.97 0 0 0 15 8a6.97 6.97 0 0 0-1.394-4.192 7 7 0 0 0-1.414-1.414A6.97 6.97 0 0 0 8 1a6.97 6.97 0 0 0-4.192 1.394 7 7 0 0 0-1.414 1.414A6.97 6.97 0 0 0 1 8a6.97 6.97 0 0 0 1.394 4.192c.368.493.8.935 1.284 1.315A6.97 6.97 0 0 0 8 15m3.446-4.968 1.445 1.444a6 6 0 0 1-1.415 1.415l-1.444-1.445a4 4 0 0 0 1.414-1.414m-6.892 0a4 4 0 0 0 1.414 1.414l-1.445 1.445a6 6 0 0 1-1.414-1.415zm1.414-5.478a4 4 0 0 0-1.414 1.414L3.109 4.523A6 6 0 0 1 4.523 3.11zm5.509-1.445-1.445 1.445a4 4 0 0 1 1.414 1.414l1.445-1.445a6 6 0 0 0-1.415-1.414M8 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6" clip-rule="evenodd"/></svg>',"lines-rectangle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M3 2a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm2 4h6v1H5zm4 3H5v1h4z" clip-rule="evenodd"/></svg>',"lines-rectangle-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M5 6h6v1H5zm4 3H5v1h4z"/><path fill="currentColor" fill-rule="evenodd" d="M4 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zm8 1H4v12h8z" clip-rule="evenodd"/></svg>',link:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M9.75 6.25a3.75 3.75 0 0 1 0 5.31l-1.66 1.67a3.76 3.76 0 0 1-5.32 0 3.76 3.76 0 0 1 0-5.32l.92-.92c.15-.15.4-.16.56 0 .07.07.11.16.12.26.02.44.1.88.24 1.3.05.14.01.3-.09.41l-.32.32c-.72.67-.76 1.8-.09 2.52s1.8.76 2.52.09c.03-.02.05-.05.07-.07l1.66-1.66a1.775 1.775 0 0 0-.26-2.73.4.4 0 0 1-.17-.31.98.98 0 0 1 .29-.74l.52-.52c.14-.14.35-.15.51-.04.18.13.35.27.51.43zm3.49-3.48a3.76 3.76 0 0 0-5.32 0L6.26 4.43a3.772 3.772 0 0 0 .52 5.75c.16.11.37.09.51-.04l.52-.52c.2-.19.3-.46.29-.74a.38.38 0 0 0-.17-.31 1.775 1.775 0 0 1-.26-2.73l1.66-1.66c.68-.71 1.81-.74 2.52-.06s.74 1.81.06 2.52c-.02.03-.05.05-.07.07l-.32.32c-.11.11-.14.27-.09.41.14.42.22.86.24 1.3 0 .22.19.39.41.38.1 0 .19-.05.26-.12l.92-.92a3.76 3.76 0 0 0 0-5.32z"/></svg>',list:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5 3h9v1H5zm0 9h9v1H5zm9-4.5H5v1h9zm-12 0h1v1H2zM3 3H2v1h1zm-1 9h1v1H2z" clip-rule="evenodd"/></svg>',loader:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-opacity=".2" d="M13.657 8A5.657 5.657 0 1 1 2.343 8a5.657 5.657 0 0 1 11.314 0M3.475 8a4.526 4.526 0 1 0 9.05 0 4.526 4.526 0 0 0-9.05 0"/><path fill="currentColor" d="M2.343 8A5.657 5.657 0 0 1 8 2.343v1.132A4.525 4.525 0 0 0 3.475 8z"/></svg>',location:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 14.997c2.5-2.5 5-6.236 5-8.997A5 5 0 0 0 3 6c0 2.761 2.5 6.496 5 8.997m0-7.499a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3" clip-rule="evenodd"/></svg>',"location-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M10 6.002a2 2 0 1 1-4 0 2 2 0 0 1 4 0m-1 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M13 6.002c0 2.506-2.06 5.814-4.309 8.273q-.344.376-.691.723a23 23 0 0 1-.691-.723C5.059 11.816 3 8.508 3 6.002a5 5 0 0 1 10 0m-1 0c0 1.116-.52 2.554-1.424 4.088A21.5 21.5 0 0 1 8 13.55a21.5 21.5 0 0 1-2.576-3.459C4.52 8.556 4 7.118 4 6.002a4 4 0 1 1 8 0" clip-rule="evenodd"/></svg>',lock:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5 4v3H4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1h-1V4a3 3 0 0 0-6 0m5 3V4a2 2 0 1 0-4 0v3zm-2 3a1 1 0 1 0 0 2 1 1 0 0 0 0-2" clip-rule="evenodd"/></svg>',"lock-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 10a1 1 0 1 0 0 2 1 1 0 0 0 0-2"/><path fill="currentColor" fill-rule="evenodd" d="M5 4v3H4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1h-1V4a3 3 0 0 0-6 0m5 3V4a2 2 0 1 0-4 0v3zm2 1v6H4V8z" clip-rule="evenodd"/></svg>',"log-in":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 13v1h5a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1H8v1h5v10z"/><path fill="currentColor" d="m9.086 8.5-1.793 1.793L8 11l3-3-3-3-.707.707L9.086 7.5H2v1z"/></svg>',"log-out":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m12.086 8.5-1.793 1.793L11 11l3-3-3-3-.707.707L12.086 7.5H5v1z"/><path fill="currentColor" d="M8 3V2H3a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h5v-1H3V3z"/></svg>',"magnifying-glass":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2 7a5 5 0 1 1 8.872 3.164l3.127 3.128-.707.707-3.128-3.128A5 5 0 0 1 2 7m5 4a4 4 0 1 1 0-8 4 4 0 0 1 0 8" clip-rule="evenodd"/></svg>',mail:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M1.007 4.002v8.011a1 1 0 0 0 1 1h11.997a1 1 0 0 0 1-1V4l-7 5z"/><path fill="currentColor" d="m1.52 3.14 6.484 4.63 6.485-4.632a1 1 0 0 0-.486-.126H2.008a1 1 0 0 0-.487.127"/></svg>',"mail-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M1 3.999v8a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-8A1 1 0 0 0 14.001 3H2a1 1 0 0 0-1 .999m13 .713-6 4.28-6-4.28V12h12zM2.724 4 8 7.764 13.276 4z" clip-rule="evenodd"/></svg>',"messages-square":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M12 10v1.017a1 1 0 0 1-1.006 1L8 12l-4 2v-1.978H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h1V4a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1zm1-6H5v1h6a1 1 0 0 1 1 1v3h1zm-3 3H4v1h6zM4 9h3v1H4z" clip-rule="evenodd"/></svg>',"messages-square-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M4 7h6v1H4zm0 2h3v1H4z"/><path fill="currentColor" fill-rule="evenodd" d="M12 10v1.017a1 1 0 0 1-1.006 1L8 12l-4 2v-1.978H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h1V4a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1zm1-6H5v1h6a1 1 0 0 1 1 1v3h1zm-5.233 6.999L5 12.382v-1.36H3V6h8v5.017z" clip-rule="evenodd"/></svg>',mobile:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M3 2a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm4 10a1 1 0 1 1 2 0 1 1 0 0 1-2 0M6 3.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5" clip-rule="evenodd"/></svg>',"mobile-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M7 12a1 1 0 1 1 2 0 1 1 0 0 1-2 0M6 3.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5"/><path fill="currentColor" fill-rule="evenodd" d="M4 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zm8 1H4v12h8z" clip-rule="evenodd"/></svg>',notes:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M13 4h-1V3a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h1v1a1 1 0 0 0 1 1h5v-4h4V5a1 1 0 0 0-1-1M3 3h8v1H5a1 1 0 0 0-1 1v6H3zm9 4H6v1h6zM6 9h3v1H6z" clip-rule="evenodd"/><path fill="currentColor" d="m11 14 3-3h-3z"/></svg>',"notes-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12 7H6v1h6zM9 9H6v1h3z"/><path fill="currentColor" fill-rule="evenodd" d="M13 4h-1V3a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h1v1a1 1 0 0 0 1 1h6l3-3V5a1 1 0 0 0-1-1M3 3h8v1H5a1 1 0 0 0-1 1v6H3zm10 2H5v8h5v-3h3zm-.414 6L11 12.586V11z" clip-rule="evenodd"/></svg>',"paper-plane":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M13.855 2.145a.5.5 0 0 0-.525-.115l-11 4a.5.5 0 0 0 0 .935L6.625 8.68l3.17-3.18.705.705L7.315 9.39l1.72 4.295A.5.5 0 0 0 9.5 14a.5.5 0 0 0 .46-.33l4-11a.5.5 0 0 0-.105-.525"/></svg>',"paper-plane-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M13.855 2.145a.5.5 0 0 0-.525-.115l-11 4a.5.5 0 0 0 0 .935l4.8 1.92 1.92 4.8A.5.5 0 0 0 9.5 14a.5.5 0 0 0 .46-.33l4-11a.5.5 0 0 0-.105-.525M9.5 12.1 8.105 8.6 10.5 6.205 9.795 5.5 7.38 7.915 3.9 6.5l8.765-3.165z"/></svg>',"paper-plane-slash":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M1.705 1 15 14.295l-.7.705-4-4-1.34 3.67a.5.5 0 0 1-.46.33.5.5 0 0 1-.465-.315l-1.72-4.295L8 8.705 7.295 8l-1.67 1.68L1.33 7.965a.5.5 0 0 1 0-.935L5 5.705l-4-4zM12.97 3.67l-1.725 4.745-3.66-3.66L12.33 3.03a.5.5 0 0 1 .64.64" clip-rule="evenodd"/></svg>',"paper-plane-slash-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M1.705 1 15 14.295l-.7.705-4-4-1.34 3.67a.5.5 0 0 1-.46.33.5.5 0 0 1-.45-.315l-1.92-4.8-4.8-1.92a.5.5 0 0 1 0-.935L5 5.705l-4-4zM5.77 6.5l-2.87 1 3.48 1.415L7.295 8zm1.335 3.1L8.5 13.1l1-2.87L8 8.705zm4.56-5.265-3.82 1.39-.78-.78L12.33 3.03a.5.5 0 0 1 .64.64l-1.915 5.265-.78-.78z" clip-rule="evenodd"/></svg>',paperclip:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m6.57 12.358 6.09-6.09a1.035 1.035 0 1 0-1.465-1.463l-5.32 5.32-.733-.731 5.321-5.321A2.07 2.07 0 1 1 13.391 7l-5.339 5.34-.006.006-.744.744A3.106 3.106 0 0 1 2.91 8.698L9.608 2l.732.732L3.642 9.43a2.07 2.07 0 1 0 2.928 2.928"/></svg>',pen:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M10.88 2.293a1 1 0 0 1 1.415 0l1.414 1.414a1 1 0 0 1 0 1.414l-1.414 1.415-2.828-2.829zm.705 4.953L8.756 4.417 2 11.174l.003 2.825 2.825.003z"/></svg>',"pen-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m-3.692-3.307v-1.54l4.538-4.539 1.54 1.54-4.538 4.539zm7.268-6.312a.42.42 0 0 1 0 .583l-.753.753-1.54-1.54.747-.753a.42.42 0 0 1 .583 0z" clip-rule="evenodd"/></svg>',"pen-fancy":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M3.63 8.65c-.24.07-.43.26-.5.5l-1.46 4.37.11.12 2.3-2.3v-.19c0-.44.35-.8.79-.81.44 0 .8.35.81.79 0 .44-.35.8-.79.81h-.21l-2.3 2.3.12.11 4.37-1.46c.24-.07.43-.26.5-.5l.82-2.08L5.7 7.83zm7.17-6.3L6.27 7.28 8.69 9.7l4.94-4.52c2.1-1.86-.99-4.92-2.83-2.83"/></svg>',"pen-fancy-files-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M12 2H6v10h6V8.946l.023-.058.085-.078.892-.813V12a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v.112a2.3 2.3 0 0 0-.974.66L12 2.8zm1 4.643-1 .913-.566.515-1.528-1.524L12 4.275l.767-.832q.113-.127.233-.215c1.167-.857 2.797.9 1.555 1.997zM4 3H3v11.5a.5.5 0 0 0 .5.5H11v-1H4zm4.238 4.41a.47.47 0 0 0-.316.315L7 10.477l.07.076 1.452-1.449v-.12a.51.51 0 0 1 .5-.51.51.51 0 0 1 .511.498.51.51 0 0 1-.499.51h-.133L7.45 10.931l.075.069 2.76-.92a.47.47 0 0 0 .317-.314l.518-1.31-1.573-1.562z" clip-rule="evenodd"/></svg>',"pen-fancy-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.24 1.67c-.49 0-1 .21-1.44.7L6.27 7.3l2.42 2.42 4.94-4.52c1.6-1.42.19-3.53-1.39-3.53M8.72 8.34 7.66 7.28l3.9-4.24c.22-.24.44-.36.69-.36.41 0 .87.34 1.03.78.14.37.04.7-.32 1.02L8.73 8.36zM5.7 7.86l-2.08.82c-.24.08-.42.26-.5.5l-1.46 4.37.12.12.56.56.12.12 4.37-1.46c.24-.08.42-.26.5-.5l.81-2.08L5.7 7.87zm-2.57 4.46L4 9.72c.03-.08.09-.15.17-.18l1.29-.51 1.52 1.52-.5 1.29c-.03.08-.1.15-.19.18l-2.6.87.95-.95c.06.02.12.04.19.04.44 0 .79-.35.79-.79s-.35-.79-.79-.79-.79.35-.79.79c0 .07.02.13.04.19l-.95.95z"/></svg>',"pen-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.295 2.293a1 1 0 0 0-1.414 0L9.467 3.707l2.828 2.829 1.414-1.415a1 1 0 0 0 0-1.414z"/><path fill="currentColor" fill-rule="evenodd" d="m2.003 13.999 2.825.003 6.757-6.756-2.829-2.829L2 11.174zM3 11.587l5.756-5.755 1.414 1.414-5.755 5.756L3.002 13z" clip-rule="evenodd"/></svg>',phone:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m10 10.53 1.034-1.035a1.01 1.01 0 0 1 1.08-.221l1.259.503A1.01 1.01 0 0 1 14 10.7v2.308a1 1 0 0 1-1.052.992C4.124 13.45 2.343 5.974 2.006 3.112A1.002 1.002 0 0 1 3.007 2h2.228a1 1 0 0 1 .923.628l.503 1.26a1 1 0 0 1-.217 1.08L5.41 6.002s.595 4.029 4.59 4.527"/></svg>',"phone-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.62 14h-.079C3.472 13.479 2.184 5.826 2.004 3.49A1.384 1.384 0 0 1 3.278 2h2.543a.92.92 0 0 1 .859.582l.701 1.726a.92.92 0 0 1-.203.997l-.983.992a4.325 4.325 0 0 0 3.499 3.508l1.001-.993a.92.92 0 0 1 1.002-.189l1.74.697a.92.92 0 0 1 .567.858v2.437A1.385 1.385 0 0 1 12.62 14M3.389 2.923a.46.46 0 0 0-.462.462v.037c.213 2.732 1.574 9.193 9.665 9.655a.46.46 0 0 0 .49-.434v-2.465l-1.74-.696-1.325 1.315-.222-.028c-4.015-.503-4.56-4.518-4.56-4.56l-.028-.221 1.311-1.325-.692-1.74z"/></svg>',picture:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M14 3a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1zM4 5a1 1 0 1 0 2 0 1 1 0 0 0-2 0m7.134 2.514L13 10.023V13H3v-2.494l.896-1.064c.203-.242.305-.362.425-.408a.5.5 0 0 1 .358 0c.12.046.222.166.425.408l1.767 2.098 2.995-4.026c.21-.282.316-.423.444-.476a.5.5 0 0 1 .38 0c.129.053.234.194.444.476" clip-rule="evenodd"/></svg>',"picture-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M5 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2"/><path fill="currentColor" fill-rule="evenodd" d="M14 13a1 1 0 0 1-1 1H2h.994A1 1 0 0 1 2 13V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1zM3 3h10v5.315l-1.069-1.43a6 6 0 0 0-.29-.368 1.5 1.5 0 0 0-.555-.41 1.5 1.5 0 0 0-1.14-.001c-.27.11-.448.288-.556.408-.098.11-.2.246-.291.366L6.822 9.911l-.974-1.14a5 5 0 0 0-.283-.314 1.5 1.5 0 0 0-.53-.353 1.5 1.5 0 0 0-1.064 0c-.248.094-.42.245-.529.352a5 5 0 0 0-.283.314L3 8.956zm0 10v-2.506l.903-1.055c.202-.237.303-.355.423-.4a.5.5 0 0 1 .355 0c.12.045.22.164.422.4l1.769 2.07 3.01-4.006c.21-.28.315-.42.443-.472a.5.5 0 0 1 .38 0c.127.053.232.193.441.474L13 9.985V13z" clip-rule="evenodd"/></svg>',"play-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1m3.724 7.447-6 3A.5.5 0 0 1 5 11V5a.5.5 0 0 1 .724-.447l6 3a.5.5 0 0 1 0 .894"/></svg>',plus:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M9 2H7v5H2v2h5v5h2V9h5V7H9z"/></svg>',"plus-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M7 7V4h2v3h3v2H9v3H7V9H4V7z" clip-rule="evenodd"/></svg>',share:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14 4.5a2.5 2.5 0 0 1-4.467 1.543L6.915 7.35a2.5 2.5 0 0 1 0 1.298l2.618 1.308a2.5 2.5 0 1 1-.448.894L6.467 9.544a2.5 2.5 0 1 1 0-3.085l2.618-1.31A2.503 2.503 0 0 1 11.5 2 2.5 2.5 0 0 1 14 4.5"/></svg>',"share-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M13 4.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m1 0a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0M6 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m.623 1.32a2.5 2.5 0 1 1-.156-2.863L9.085 5.15c.088.33.243.633.448.894L6.915 7.35a2.5 2.5 0 0 1 0 1.298l2.618 1.308a2.5 2.5 0 1 1-.448.894L6.467 9.544q.084-.107.156-.223M11.5 13a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3" clip-rule="evenodd"/></svg>',shuffle:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m11.295 9.705 1.79 1.795h-3.31L7.59 8l2.185-3.5h3.31l-1.79 1.795L12 7l3-3-3-3-.705.705 1.79 1.795h-3.31a1 1 0 0 0-.845.47L7 7.055 5.07 3.97a1 1 0 0 0-.845-.47H1v1h3.225L6.41 8l-2.185 3.5H1v1h3.225a1 1 0 0 0 .845-.47L7 8.945l1.93 3.085a1 1 0 0 0 .845.47h3.31l-1.79 1.795L12 15l3-3-3-3z"/></svg>',sitemap:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M3.33 10h-2c-.37 0-.66.3-.66.67v2c0 .36.3.65.66.66h2c.37 0 .66-.29.67-.66v-2c0-.37-.3-.67-.67-.67m-.5-1.67H7.5v1h1v-1h4.67v1h1v-1.2c0-.44-.36-.8-.8-.8H8.5V6h.83c.37 0 .67-.3.67-.67v-2c0-.37-.3-.66-.67-.66H6.67c-.37 0-.66.29-.67.66v2c0 .37.3.67.67.67h.83v1.33H2.63c-.44 0-.8.36-.8.8v1.2h1zM9 10H7c-.37 0-.67.3-.67.67v2c0 .37.3.66.67.66h2c.37 0 .66-.29.67-.66v-2c0-.37-.3-.67-.67-.67m5.67 0h-2c-.37 0-.67.3-.67.67v2c0 .37.3.66.67.66h2c.36 0 .65-.3.66-.66v-2c0-.37-.29-.66-.66-.67"/></svg>',sliders:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.95 4H15v1h-2.05v.002a2.5 2.5 0 0 1-2.672 1.988A2.52 2.52 0 0 1 8.05 5.002V5H1V4h7.05v-.002a2.5 2.5 0 0 1 2.672-1.988 2.52 2.52 0 0 1 2.228 1.988zm-9.9 8H1v-1h2.05v-.002A2.52 2.52 0 0 1 5.5 9a2.5 2.5 0 0 1 2.45 1.999V11H15v1H7.95v.002A2.52 2.52 0 0 1 5.5 14a2.5 2.5 0 0 1-2.45-1.998z"/></svg>',"sliders-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M12.95 4H15v1h-2.05c-.25 1.15-1.25 2-2.45 2s-2.2-.85-2.45-2H1V4h7.05C8.3 2.85 9.3 2 10.5 2s2.2.85 2.45 2M9 4.5c0 .85.65 1.5 1.5 1.5S12 5.35 12 4.5 11.35 3 10.5 3 9 3.65 9 4.5M3.05 12H1v-1h2.05C3.3 9.85 4.3 9 5.5 9s2.2.85 2.45 2H15v1H7.95c-.25 1.15-1.25 2-2.45 2s-2.2-.85-2.45-2M7 11.5c0-.85-.65-1.5-1.5-1.5S4 10.65 4 11.5 4.65 13 5.5 13 7 12.35 7 11.5" clip-rule="evenodd"/></svg>',squares:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M2 3a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1zm7 0a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1zm0 7a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1zm-7 0a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1z"/></svg>',star:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" stroke="currentColor" d="m8 2.472 1.715 3.475.116.235.26.038 3.835.557-2.775 2.705-.188.183.044.26.655 3.818-3.43-1.803L8 11.818l-.233.122-3.43 1.803.656-3.818.044-.26-.188-.183-2.775-2.705L5.91 6.22l.26-.038.116-.235z"/></svg>',"star-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path stroke="currentColor" d="m8 2.472 1.715 3.475.116.235.26.038 3.835.557-2.775 2.705-.188.183.044.26.655 3.818-3.43-1.803L8 11.818l-.233.122-3.43 1.803.656-3.818.044-.26-.188-.183-2.775-2.705L5.91 6.22l.26-.038.116-.235z"/></svg>',table:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2 13a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1zm1-3v3h3v-3zm4 0v3h6v-3zm6-1H7V6h6zM6 9H3V6h3zM3 5V3h10v2z" clip-rule="evenodd"/></svg>',tag:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2 7.43c0 .275.11.538.303.732l5.535 5.535c.404.404 1.06.404 1.464 0l4.395-4.395a1.036 1.036 0 0 0 0-1.464L8.162 2.303A1.04 1.04 0 0 0 7.43 2H3.036C2.464 2 2 2.464 2 3.036zM5.5 7a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3" clip-rule="evenodd"/></svg>',"tag-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5.5 7a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m0-1a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M2 7.43c0 .275.11.538.303.732l5.535 5.535c.404.404 1.06.404 1.464 0l4.395-4.395a1.036 1.036 0 0 0 0-1.464L8.162 2.303A1.04 1.04 0 0 0 7.43 2H3.036C2.464 2 2 2.464 2 3.036zm1 0q0 .016.01.025l5.535 5.534a.036.036 0 0 0 .05 0l4.394-4.394a.036.036 0 0 0 0-.05L7.456 3.01A.04.04 0 0 0 7.43 3H3.036A.036.036 0 0 0 3 3.036z" clip-rule="evenodd"/></svg>',tags:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M13.855 6.645 8.5 1.295A1 1 0 0 0 7.795 1H4a1 1 0 0 0-1 1v1h1V2h3.795l5 5-.65.645.71.71 1-1a.5.5 0 0 0 0-.71"/><path fill="currentColor" fill-rule="evenodd" d="M2 8.978c0 .251.1.493.278.67l5.073 5.074a.95.95 0 0 0 1.343 0l4.028-4.028a.95.95 0 0 0 0-1.343L7.649 4.278A.95.95 0 0 0 6.978 4H2.949A.95.95 0 0 0 2 4.95zM5.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3" clip-rule="evenodd"/></svg>',"tags-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="m8.5 1.295 5.355 5.35a.5.5 0 0 1 0 .71l-1 1-.71-.71.65-.645-5-5H4v1H3V2a1 1 0 0 1 1-1h3.795a1 1 0 0 1 .705.295"/><path fill="currentColor" fill-rule="evenodd" d="M5.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m0-1a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M2.278 9.649A.95.95 0 0 1 2 8.978V4.949A.95.95 0 0 1 2.95 4h4.028c.251 0 .493.1.67.278l5.074 5.073a.95.95 0 0 1 0 1.343l-4.028 4.028a.95.95 0 0 1-1.343 0zm5.744 4.33L3 8.957V5h3.957l5.022 5.022z" clip-rule="evenodd"/></svg>',"thumb-down":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M11.202 11.934a1.506 1.506 0 0 1-2.438 1.651L5.5 10.461v-8.46h4.922c1.081 0 2.058.714 2.484 1.817l.944 3.394c.51 1.32-.362 2.788-1.656 2.788h-1.772zM4.5 10H2V2h2.5z"/></svg>',"thumb-down-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M11.204 11.934 10.424 10h1.772c1.294 0 2.166-1.468 1.656-2.788l-.944-3.394C12.484 2.715 11.507 2 10.426 2H5v.003H2v8h3.023l3.744 3.582a1.506 1.506 0 0 0 2.437-1.651m.755-7.797C11.657 3.4 11.033 3 10.425 3H6.002l.017 6.572 3.439 3.29a.506.506 0 0 0 .819-.554L8.943 9h3.253c.24 0 .48-.131.645-.41.167-.28.218-.657.079-1.018l-.018-.045zM3 9.003h2v-6H3z" clip-rule="evenodd"/></svg>',"thumb-up":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M11.202 4.069a1.506 1.506 0 0 0-2.438-1.651L5.5 5.542v8.46h4.922c1.081 0 2.058-.714 2.484-1.817l.944-3.394c.51-1.32-.362-2.788-1.656-2.788h-1.772zM4.5 6.003H2v8h2.5z"/></svg>',"thumb-up-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m11.204 4.069-.78 1.934h1.772c1.294 0 2.166 1.468 1.656 2.788l-.944 3.394c-.425 1.103-1.402 1.818-2.483 1.818H5V14H2V6h3.023l3.744-3.582a1.506 1.506 0 0 1 2.437 1.65m.755 7.797c-.302.738-.926 1.137-1.534 1.137H6.002L6.02 6.43l3.439-3.29a.506.506 0 0 1 .819.554L8.943 7.003h3.253c.24 0 .48.13.645.41.167.28.218.657.079 1.018l-.018.045zM3 7h2v6H3z" clip-rule="evenodd"/></svg>',thumbtack:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m8.91 2-1.2 3.594L2.364 7.09 5.274 10l-.707.706-1.687 1.687-.264.264-.09.09-.209.498L2 14l.755-.317.498-.21.09-.089.264-.264 1.687-1.687.706-.706 2.91 2.908 1.496-5.347L14 7.09z" clip-rule="evenodd"/></svg>',"thumbtack-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="m5.273 10-2.91 2.91L2 14l1.09-.364L6 10.727l2.91 2.91 1.496-5.348L14 7.09 8.91 2l-1.2 3.594L2.364 7.09zm3.241-3.563-4.18 1.17 4.059 4.059 1.17-4.18 2.533-.845-2.737-2.737z" clip-rule="evenodd"/></svg>',trash:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M11 2v1h3v1h-1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4H2V3h3V2a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1M6 3V2h4v1zm1 3H6v6h1zm2 0h1v6H9z" clip-rule="evenodd"/></svg>',"trash-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M7 6H6v6h1zm2 0h1v6H9z"/><path fill="currentColor" fill-rule="evenodd" d="M11 3V2a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v1H2v1h1v10a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4h1V3zM6 2v1h4V2zm6 2v10H4V4z" clip-rule="evenodd"/></svg>',"universal-access":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-3.5-1V6h-7v1H7v1.367l-1.934 3.385.868.496L7.79 9h.42l1.856 3.248.868-.496L9 8.367V7zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0" clip-rule="evenodd"/></svg>',"universal-access-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M4.111 13.82A7 7 0 0 0 8 15a7.01 7.01 0 0 0 7-7 7 7 0 1 0-10.889 5.82m.556-10.809A6 6 0 0 1 8 2a6.007 6.007 0 0 1 6 6 6 6 0 1 1-9.333-4.989M8 5.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2M11.5 7V6h-7v1H7v1.367l-1.934 3.385.868.496L7.79 9h.42l1.856 3.248.868-.496L9 8.367V7z" clip-rule="evenodd"/></svg>',unlink:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M9.74 6.25c-.16-.17-.32-.3-.5-.43-.14-.09-.31-.1-.44 0l1.81 1.81c-.17-.5-.47-.98-.87-1.38m-1.1 3.51c-.07.15-.17.28-.29.4l-1.66 1.66s-.04.05-.07.07c-.72.67-1.85.63-2.52-.09s-.63-1.85.09-2.52l.32-.32c.1-.11.14-.27.09-.41-.14-.42-.22-.86-.24-1.3a.42.42 0 0 0-.12-.26.395.395 0 0 0-.56 0l-.92.92a3.76 3.76 0 0 0 0 5.32 3.76 3.76 0 0 0 5.32 0l1.66-1.67c.12-.12.23-.25.32-.38zm4.61-7h-.02a3.78 3.78 0 0 0-5.32 0L6.83 3.84l1.41 1.41 1.08-1.08c.68-.71 1.81-.74 2.52-.06s.74 1.81.06 2.52c-.02.03-.05.05-.07.07l-.32.32c-.11.11-.14.27-.09.41.13.4.21.81.23 1.23l.44.44c.09 0 .18-.05.24-.11l.92-.92a3.76 3.76 0 0 0 0-5.32zm.97 10.52-1.03 1.03-5.14-5.14c-.04.17-.12.33-.25.45l-.52.52c-.14.13-.35.15-.51.04-.18-.13-.35-.27-.5-.42-.74-.74-1.11-1.7-1.11-2.67 0-.24.02-.49.08-.73l-3.6-3.6 1.03-1.03z"/></svg>',unlock:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M10 7V4a2 2 0 1 0-4 0v1H5V4a3 3 0 0 1 6 0v3h1a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm-3 4a1 1 0 1 1 2 0 1 1 0 0 1-2 0" clip-rule="evenodd"/></svg>',"unlock-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 10a1 1 0 1 0 0 2 1 1 0 0 0 0-2"/><path fill="currentColor" fill-rule="evenodd" d="M10 4v3H4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1h-1V4a3 3 0 0 0-6 0v1h1V4a2 2 0 1 1 4 0m2 4v6H4V8z" clip-rule="evenodd"/></svg>',upload:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M3.706 6.703 3 6l5-5 5 5-.704.702L8.5 2.912V12h-1V2.913zM13 14v-2h1v2a1 1 0 0 1-1 1H3a1 1 0 0 1-.996-1.002L2 14v-2h1v2z" clip-rule="evenodd"/></svg>',user:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6M6 9a4 4 0 0 0-4 4 1 1 0 0 0 1 1h10a1 1 0 0 0 1-1 4 4 0 0 0-4-4z" clip-rule="evenodd"/></svg>',"user-circle":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8.01 1C4.146.99 1.01 4.128 1 7.99c0 3.863 3.128 7 6.99 7.01 3.853 0 6.99-3.109 7.01-6.962C15.019 4.176 11.9 1.02 8.038 1zm0 .715a6.28 6.28 0 0 1 6.275 6.295v.028a6.2 6.2 0 0 1-1.135 3.586 2.59 2.59 0 0 0-2.537-2.26H9.478a3.44 3.44 0 0 1-2.937 0H5.415a2.573 2.573 0 0 0-2.546 2.26 6.2 6.2 0 0 1-1.135-3.586 6.284 6.284 0 0 1 6.247-6.323zM5.147 5.778a2.914 2.914 0 0 1 2.91-2.909 2.914 2.914 0 0 1 2.908 2.909 2.914 2.914 0 0 1-2.909 2.909H8.01a2.917 2.917 0 0 1-2.86-2.91"/></svg>',"user-group":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M12.95 4.066a1.42 1.42 0 0 0-1.426 1.406c0 .789.626 1.415 1.406 1.425s1.415-.626 1.425-1.406a1.42 1.42 0 0 0-1.406-1.425m-9.668.01a1.415 1.415 0 0 0-1.521 1.53 1.415 1.415 0 0 0 2.821 0 1.43 1.43 0 0 0-1.3-1.53m7.087.375a2.38 2.38 0 0 0-1.647-1.685 2.496 2.496 0 0 0-3.1 1.656 2.53 2.53 0 0 0 .135 1.781A2.39 2.39 0 0 0 7.99 7.6a2.47 2.47 0 0 0 2.379-3.148m-.684 3.851h-.183a3.39 3.39 0 0 1-3.014 0h-.183a2.54 2.54 0 0 0-2.542 2.542v2.59A6.96 6.96 0 0 0 7.99 14.85c1.59 0 3.053-.53 4.237-1.425v-2.58a2.54 2.54 0 0 0-2.542-2.543M15 8.543a7 7 0 0 1-1.589 3.765 3 3 0 0 1-.24.27c-.077.086-.164.173-.241.26v-.53h.029v-.693s.01-.068 0-.097v-.635a3.25 3.25 0 0 0-1.695-2.889c.26-.25.607-.395.963-.395h1.454c.607.01 1.126.395 1.319.944M3.041 10.844v1.464h.01v.53l-.27-.3c-.077-.076-.144-.153-.212-.23A6.97 6.97 0 0 1 1 8.63 1.38 1.38 0 0 1 2.348 7.6h1.415a1.4 1.4 0 0 1 .973.356 3.25 3.25 0 0 0-1.695 2.888"/></svg>',"user-lock":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M6.5 7a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5M5 8a4 4 0 0 0-4 4 1 1 0 0 0 1 1h7v-1.5a1.5 1.5 0 0 1 1.036-1.427c.109-.63.452-1.178.938-1.553A4 4 0 0 0 9 8z"/><path fill="currentColor" fill-rule="evenodd" d="M10.5 11h.5v-.5a1.5 1.5 0 0 1 3 0v.5h.5a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-4a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5m2.75-.5v.5h-1.5v-.5a.75.75 0 0 1 1.5 0" clip-rule="evenodd"/></svg>',"user-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M11 5a3 3 0 1 1-6 0 3 3 0 0 1 6 0m-1 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0m-8 8a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4 1 1 0 0 1-1 1H3a1 1 0 0 1-1-1m1 0a3 3 0 0 1 3-3h4a3 3 0 0 1 3 3z" clip-rule="evenodd"/></svg>',"user-pen-fancy-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M7.5 7a2.5 2.5 0 0 1 0-5 2.5 2.5 0 0 1 0 5m0-4C6.67 3 6 3.67 6 4.5S6.67 6 7.5 6 9 5.33 9 4.5 8.33 3 7.5 3m3.62 8.46-.22.54-.3.77s-.04.09-.06.13c-.03.04-.06.07-.1.1-.05.04-.1.07-.16.08L7.52 14l-.07-.07 1.45-1.45h.13c.15 0 .27-.06.36-.16a.6.6 0 0 0 .1-.15c.01-.02.02-.04.03-.07v-.02s.01-.05.01-.08v-.03c0-.28-.23-.5-.51-.5-.28.01-.5.24-.5.51v.14l-.76.75-.14.13-.55.55-.07-.07.16-.48.1-.29.24-.71.42-1.27c.05-.16.17-.28.32-.32l1.31-.52zm3.44-3.24-2.05 1.87-.7.64-.06.05-.32.29-1.52-1.52.28-.31.06-.06.64-.7 1.88-2.04c1.16-1.31 3.11.61 1.79 1.78"/><path fill="currentColor" fill-rule="evenodd" d="M9 8H6c-2.21 0-4 1.79-4 4 0 .55.45 1 1 1h3.11l.33-1H3c0-1.66 1.34-3 3-3h3.05l.83-.9C9.6 8.03 9.3 8 9 8" clip-rule="evenodd"/></svg>',"user-plus":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M14 3.33h-1.35V2c-.02-.18-.17-.33-.35-.33h-.65c-.18 0-.33.15-.35.33v1.33H10c-.18 0-.33.16-.33.34v.66c0 .18.15.33.33.34h1.3V6c.02.18.17.32.35.33h.65c.18 0 .33-.15.35-.33V4.67H14a.34.34 0 0 0 .32-.34v-.66a.34.34 0 0 0-.32-.34M9.28 9.77h-.2c-1.25.51-2.66.51-3.91 0H5a3.006 3.006 0 0 0-3.3 2.67v.74c.06.67.63 1.17 1.3 1.15h8.25c.69.06 1.3-.45 1.36-1.14v-.68a3 3 0 0 0-3.23-2.75h-.1zM7.13 3.7c1.46 0 2.64 1.17 2.65 2.63 0 1.46-1.17 2.64-2.63 2.65-1.46 0-2.64-1.17-2.65-2.63A2.65 2.65 0 0 1 7.13 3.7"/></svg>',"user-question-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M5.23 11.14c.86-.66 1.01-1.9.35-2.75s-1.9-1.01-2.75-.35a1.96 1.96 0 0 0 0 3.1c-.72.42-1.16 1.2-1.16 2.03v.8c0 .2.17.37.37.37h3.98c.2 0 .37-.17.37-.37v-.8c0-.83-.44-1.61-1.16-2.03M2.81 9.59c0-.67.55-1.22 1.22-1.22s1.22.55 1.22 1.22-.55 1.22-1.22 1.22-1.22-.55-1.22-1.22m2.83 4H2.41v-.42c0-.89.72-1.62 1.62-1.62s1.62.72 1.62 1.62v.42zm7.13-11.93H8c-.86 0-1.56.7-1.56 1.56v7.16c0 .21.17.37.37.37.08 0 .16-.03.22-.07l1.49-1.12h4.25c.86 0 1.56-.7 1.56-1.56V3.22c0-.86-.7-1.56-1.56-1.56m.82 6.33c0 .45-.37.82-.82.82H8.4a.4.4 0 0 0-.22.07l-1 .75V3.22c0-.45.37-.82.82-.82h4.77c.45 0 .82.37.82.82zm-2.8-.42c0 .23-.18.41-.41.41s-.41-.18-.41-.41.18-.41.41-.41.41.18.41.41m-.41-4.34c-.83 0-1.5.67-1.5 1.5 0 .23.18.41.41.41s.41-.18.41-.41c0-.38.31-.68.69-.68s.68.31.68.69-.31.68-.68.68c-.23 0-.41.18-.41.41v.44c0 .23.18.41.41.41s.41-.18.41-.41v-.09c.8-.23 1.26-1.06 1.04-1.85-.18-.65-.77-1.09-1.44-1.09z"/></svg>',"user-shield":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2.676 2.768A1 1 0 0 0 2 3.714v4.799a3 3 0 0 0 .154.949l.06.177A7 7 0 0 0 5.1 13.334l2.373 1.508a1 1 0 0 0 1.074-.001l2.361-1.507a7 7 0 0 0 2.875-3.687l.062-.185c.102-.306.154-.627.154-.949V3.714a1 1 0 0 0-.676-.946l-5-1.712a1 1 0 0 0-.648 0zM8 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4m-4.22 2.627a6 6 0 0 0 1.857 1.863l2.373 1.508 2.361-1.507a6 6 0 0 0 1.85-1.862A4 4 0 0 0 9 8.999H7c-1.32 0-2.492.641-3.22 1.628" clip-rule="evenodd"/></svg>',"user-shield-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M10 5.998a2 2 0 1 1-4 0 2 2 0 0 1 4 0m-1 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M2 3.712a1 1 0 0 1 .676-.946l5-1.712a1 1 0 0 1 .648 0l5 1.712a1 1 0 0 1 .676.946v4.799c0 .322-.052.643-.154.949l-.062.185a7 7 0 0 1-2.875 3.687l-2.36 1.507a1 1 0 0 1-1.075 0l-2.373-1.507a7 7 0 0 1-2.888-3.695l-.06-.177A3 3 0 0 1 2 8.51zm11 0v4.799q0 .324-.103.632l-.061.186a6 6 0 0 1-.614 1.298A4 4 0 0 0 9 8.997H7c-1.32 0-2.492.64-3.22 1.628a6 6 0 0 1-.618-1.304l-.06-.178A2 2 0 0 1 3 8.511V3.712L8 2zM9 9.998a3 3 0 0 1 2.582 1.47c-.355.39-.76.734-1.21 1.021L8.01 13.996l-2.373-1.508a6 6 0 0 1-1.217-1.022A3 3 0 0 1 7 9.998z" clip-rule="evenodd"/></svg>',users:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M7.25 3.335a2.5 2.5 0 1 0 0 4.33A3.5 3.5 0 0 1 6.5 5.5c0-.818.28-1.57.75-2.165M10 3a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5m-5 9.2A3.2 3.2 0 0 1 8.2 9h3.6a3.2 3.2 0 0 1 3.2 3.2.8.8 0 0 1-.8.8H5.8a.8.8 0 0 1-.8-.8M5.48 9H4.2A3.2 3.2 0 0 0 1 12.2a.8.8 0 0 0 .8.8h2.387A1.8 1.8 0 0 1 4 12.2 4.19 4.19 0 0 1 5.48 9"/></svg>',"users-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M7.5 5.5a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0M10 7a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3" clip-rule="evenodd"/><path fill="currentColor" d="M4.2 9h1.28a4.2 4.2 0 0 0-.858 1H4.2a2.2 2.2 0 0 0-2.191 2h1.996a4 4 0 0 0-.005.2c0 .287.067.559.187.8H1.8a.8.8 0 0 1-.8-.8A3.2 3.2 0 0 1 4.2 9"/><path fill="currentColor" fill-rule="evenodd" d="M5 12.2A3.2 3.2 0 0 1 8.2 9h3.6a3.2 3.2 0 0 1 3.2 3.2.8.8 0 0 1-.8.8H5.8a.8.8 0 0 1-.8-.8m6.8-2.2a2.2 2.2 0 0 1 2.191 2H6.009A2.2 2.2 0 0 1 8.2 10z" clip-rule="evenodd"/><path fill="currentColor" d="M6 3c.455 0 .882.122 1.25.335a3.5 3.5 0 0 0-.5.865 1.5 1.5 0 1 0 0 2.6c.125.313.294.604.5.865A2.5 2.5 0 1 1 6 3"/></svg>',wallet:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M1 4a1 1 0 0 1 1-1h11a1 1 0 0 1 1 1v1a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1zm1 0h11v1H2zm9 5a1 1 0 1 1 2 0 1 1 0 0 1-2 0" clip-rule="evenodd"/></svg>',"wallet-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M11 9a1 1 0 1 1 2 0 1 1 0 0 1-2 0"/><path fill="currentColor" fill-rule="evenodd" d="M2 13a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h11a1 1 0 0 1 1 1v1a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1zm0-9h11v1H2zm12 2H2v6h12z" clip-rule="evenodd"/></svg>'};const gt=".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}}/*!\n * @prop --mg-c-icon-border-radius: Defines the border radius of icons. Default value is `50%`.\n */:host{display:inline-flex;vertical-align:middle}.mg-c-icon{color:currentcolor}.mg-c-icon[size=small],.mg-c-icon.mg-c-icon--size-small{width:var(--mg-b-size-12);height:var(--mg-b-size-12)}.mg-c-icon[size=small][class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon),.mg-c-icon.mg-c-icon--size-small[class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon){padding:calc((var(--mg-b-size-16) - var(--mg-b-size-12))/2)}.mg-c-icon[size=medium],.mg-c-icon.mg-c-icon--size-medium{width:var(--mg-b-size-16);height:var(--mg-b-size-16)}.mg-c-icon[size=medium][class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon),.mg-c-icon.mg-c-icon--size-medium[class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon){padding:calc((var(--mg-b-size-24) - var(--mg-b-size-16))/2)}.mg-c-icon[size=large],.mg-c-icon.mg-c-icon--size-large{width:var(--mg-b-size-20);height:var(--mg-b-size-20)}.mg-c-icon[size=large][class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon),.mg-c-icon.mg-c-icon--size-large[class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon){padding:calc((var(--mg-b-size-32) - var(--mg-b-size-20))/2)}.mg-c-icon[size=xlarge],.mg-c-icon.mg-c-icon--size-xlarge{width:var(--mg-b-size-24);height:var(--mg-b-size-24)}.mg-c-icon[size=xlarge][class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon),.mg-c-icon.mg-c-icon--size-xlarge[class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon){padding:calc((var(--mg-b-size-40) - var(--mg-b-size-24))/2)}.mg-c-icon[size=xxlarge],.mg-c-icon.mg-c-icon--size-xxlarge{width:var(--mg-b-size-32);height:var(--mg-b-size-32)}.mg-c-icon[size=xxlarge][class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon),.mg-c-icon.mg-c-icon--size-xxlarge[class*=mg-c-icon--variant-]:not(.mg-c-icon--variant-style-icon){padding:calc((var(--mg-b-size-48) - var(--mg-b-size-32))/2)}.mg-c-icon.mg-c-icon--variant-app.mg-c-icon--variant-style-icon{color:var(--mg-b-color-app)}.mg-c-icon.mg-c-icon--variant-blue.mg-c-icon--variant-style-icon{color:var(--mg-b-color-blue)}.mg-c-icon.mg-c-icon--variant-80.mg-c-icon--variant-style-icon{color:var(--mg-b-color-80)}.mg-c-icon.mg-c-icon--variant-danger.mg-c-icon--variant-style-icon{color:var(--mg-b-color-danger)}.mg-c-icon.mg-c-icon--variant-info.mg-c-icon--variant-style-icon{color:var(--mg-b-color-info)}.mg-c-icon.mg-c-icon--variant-success.mg-c-icon--variant-style-icon{color:var(--mg-b-color-success)}.mg-c-icon.mg-c-icon--variant-warning.mg-c-icon--variant-style-icon{color:var(--mg-b-color-warning)}.mg-c-icon.mg-c-icon--variant-app.mg-c-icon--variant-style-background{background-color:var(--mg-b-color--20, color-mix(in srgb, var(--mg-b-color-app), white 80%))}.mg-c-icon.mg-c-icon--variant-blue.mg-c-icon--variant-style-background{background-color:var(--mg-b-color--20, color-mix(in srgb, var(--mg-b-color-blue), white 80%))}.mg-c-icon.mg-c-icon--variant-80.mg-c-icon--variant-style-background{background-color:var(--mg-b-color--20, color-mix(in srgb, var(--mg-b-color-80), white 80%))}.mg-c-icon.mg-c-icon--variant-danger.mg-c-icon--variant-style-background{background-color:var(--mg-b-color-red-20, color-mix(in srgb, var(--mg-b-color-danger), white 80%))}.mg-c-icon.mg-c-icon--variant-info.mg-c-icon--variant-style-background{background-color:var(--mg-b-color-blue-20, color-mix(in srgb, var(--mg-b-color-info), white 80%))}.mg-c-icon.mg-c-icon--variant-success.mg-c-icon--variant-style-background{background-color:var(--mg-b-color-green-20, color-mix(in srgb, var(--mg-b-color-success), white 80%))}.mg-c-icon.mg-c-icon--variant-warning.mg-c-icon--variant-style-background{background-color:var(--mg-b-color-yellow-20, color-mix(in srgb, var(--mg-b-color-warning), white 80%))}.mg-c-icon.mg-c-icon--variant-app.mg-c-icon--variant-style-full{color:var(--mg-b-color-app);background-color:var(--mg-b-color--20, color-mix(in srgb, var(--mg-b-color-app), white 80%))}.mg-c-icon.mg-c-icon--variant-blue.mg-c-icon--variant-style-full{color:var(--mg-b-color-blue);background-color:var(--mg-b-color--20, color-mix(in srgb, var(--mg-b-color-blue), white 80%))}.mg-c-icon.mg-c-icon--variant-80.mg-c-icon--variant-style-full{color:var(--mg-b-color-80);background-color:var(--mg-b-color--20, color-mix(in srgb, var(--mg-b-color-80), white 80%))}.mg-c-icon.mg-c-icon--variant-danger.mg-c-icon--variant-style-full{color:var(--mg-b-color-danger);background-color:var(--mg-b-color-red-20, color-mix(in srgb, var(--mg-b-color-danger), white 80%))}.mg-c-icon.mg-c-icon--variant-info.mg-c-icon--variant-style-full{color:var(--mg-b-color-info);background-color:var(--mg-b-color-blue-20, color-mix(in srgb, var(--mg-b-color-info), white 80%))}.mg-c-icon.mg-c-icon--variant-success.mg-c-icon--variant-style-full{color:var(--mg-b-color-success);background-color:var(--mg-b-color-green-20, color-mix(in srgb, var(--mg-b-color-success), white 80%))}.mg-c-icon.mg-c-icon--variant-warning.mg-c-icon--variant-style-full{color:var(--mg-b-color-warning);background-color:var(--mg-b-color-yellow-20, color-mix(in srgb, var(--mg-b-color-warning), white 80%))}.mg-c-icon[class*=mg-c-icon--variant-]{overflow:visible;border-radius:var(--mg-c-icon-border-radius)}.mg-c-icon--spin{animation-duration:.75s;animation-iteration-count:infinite;animation-name:rotate}@keyframes rotate{to{transform:rotate(360deg)}}";const mt=gt;const ut=class{constructor(e){t(this,e);this.setDefaultVariantStyle=()=>{if(this.variantStyle===undefined)this.variantStyle="background"};this.renderIcon=t=>{this.element.shadowRoot.innerHTML=dt[t];this.svg=this.element.shadowRoot.querySelector("svg");this.svg.setAttribute("aria-hidden","true");this.svg.setAttribute("focusable","false");this.svg.setAttribute("class",this.classCollection.join())};this.icon=undefined;this.size="medium";this.variant=undefined;this.variantStyle=undefined;this.spin=false;this.classCollection=new s(["mg-c-icon"])}validateIcon(t,e){if(!Object.keys(dt).includes(t))throw new Error(`<mg-icon> prop "icon" must be one of: ${Object.keys(dt).join(", ")}. Passed value: ${r(t)}.`);else{if(e!==undefined)this.classCollection.delete(`mg-c-icon--${e}`);this.classCollection.add(`mg-c-icon--${t}`);this.renderIcon(t)}}validateSize(t,e){if(!lt.includes(t))throw new Error(`<mg-icon> prop "size" must be one of: ${lt.join(", ")}. Passed value: ${r(t)}.`);else{if(e!==undefined)this.classCollection.delete(`mg-c-icon--size-${e}`);this.classCollection.add(`mg-c-icon--size-${t}`)}}validateVariant(t,e){if(t!==undefined){if(!ct.includes(t))throw new Error(`<mg-icon> prop "variant" must be one of: ${ct.join(", ")}. Passed value: ${r(t)}.`);else{this.setDefaultVariantStyle();if(e!==undefined)this.classCollection.delete(`mg-c-icon--variant-${e}`);this.classCollection.add(`mg-c-icon--variant-${t}`)}}}validateVariantStyle(t,e){if(t!==undefined){if(!ht.includes(t))throw new Error(`<mg-icon> prop "variantStyle" must be one of: ${ht.join(", ")}. Passed value: ${r(t)}.`);else{if(e!==undefined)this.classCollection.delete(`mg-c-icon--variant-style-${e}`);this.classCollection.add(`mg-c-icon--variant-style-${t}`)}}}handleSpin(t){if(t){this.classCollection.add("mg-c-icon--spin")}else{this.classCollection.delete("mg-c-icon--spin")}}componentWillLoad(){this.validateIcon(this.icon);this.validateSize(this.size);this.validateVariant(this.variant);this.validateVariantStyle(this.variantStyle);this.handleSpin(this.spin);this.renderIcon(this.icon)}componentWillUpdate(){this.svg.setAttribute("class",this.classCollection.join())}get element(){return n(this)}static get watchers(){return{icon:["validateIcon"],size:["validateSize"],variant:["validateVariant"],variantStyle:["validateVariantStyle"],spin:["handleSpin"]}}};ut.style=mt;const pt="/*!\n * @prop --mg-c-illustrated-message-spacing-vertical: Defines the vertical padding of the illustrated message. Default value: `--mg-b-size-40`.\n */.mg-c-illustrated-message{display:flex;max-width:calc(60*var(--mg-b-size-8));box-sizing:border-box;flex-direction:column;justify-content:center;padding:var(--mg-c-illustrated-message-spacing-vertical) var(--mg-b-size-16);margin:auto;gap:var(--mg-b-size-32) var(--mg-b-size-64);text-align:center}.mg-c-illustrated-message__illustration{max-height:calc(23*var(--mg-b-size-8))}.mg-c-illustrated-message__illustration ::slotted([slot=illustration]){width:auto;max-width:100%;height:auto;max-height:calc(23*var(--mg-b-size-8))}.mg-c-illustrated-message__illustration.mg-c-illustrated-message__illustration--small{max-height:var(--mg-b-size-64)}.mg-c-illustrated-message__illustration.mg-c-illustrated-message__illustration--small ::slotted([slot=illustration]){max-height:var(--mg-b-size-64)}.mg-c-illustrated-message.mg-c-illustrated-message--horizontal{max-width:unset;flex-flow:row wrap;align-items:center}.mg-c-illustrated-message.mg-c-illustrated-message--horizontal .mg-c-illustrated-message__slots,.mg-c-illustrated-message.mg-c-illustrated-message--horizontal .mg-c-illustrated-message__illustration{max-width:calc(60*var(--mg-b-size-8))}.mg-c-illustrated-message__title ::slotted([slot=title]){margin:0;font-family:var(--mg-b-font-family) !important;font-size:var(--mg-b-font-size-h2) !important;font-weight:400 !important}.mg-c-illustrated-message__details ::slotted([slot=details]){margin:var(--mg-b-size-16) 0 0}";const vt=pt;const ft=class{constructor(e){t(this,e);this.size="medium";this.direction="vertical"}componentDidLoad(){const t=["h1","h2","h3","h4","h5","h6"];const e=this.element.querySelectorAll('[slot="illustration"]');if(!d(this.element.querySelector('[slot="title"]'),t)){throw new Error(`<mg-illustrated-message> Slotted title must be a heading: ${t.join(", ")}.`)}else if(e.length!==1){throw new Error("<mg-illustrated-message> Slotted illustration must be present and unique.")}e[0].setAttribute("aria-hidden","true")}render(){return e("div",{key:"475cdb177405fc41e5dde86d9a3884de5fb88bef",class:{"mg-c-illustrated-message":true,"mg-c-illustrated-message--horizontal":this.direction==="horizontal"}},e("div",{key:"0e007f09bcdcd85d50bd16ed37f9f4d399c14e28",class:{"mg-c-illustrated-message__illustration":true,"mg-c-illustrated-message__illustration--small":this.size==="small"}},e("slot",{key:"41190bb4bc5d13cecbf7b847c58af7975ffc0255",name:"illustration"})),e("div",{key:"c338cba5ecac003b1642800441139e497f3c3769",class:"mg-c-illustrated-message__slots"},e("div",{key:"804f5fc5a96d87d4e533d64eb80d275377dec0cf",class:"mg-c-illustrated-message__title"},e("slot",{key:"c5db8d1c61b0b85bc94905dc4b4bfe3ce44d48d1",name:"title"})),e("div",{key:"e5be01c4e24a60a039a072946d12275bf46b681d",class:"mg-c-illustrated-message__details"},e("slot",{key:"76eaf55622ed37c42f40ec832ec48ca6ab66e42c",name:"details"}))))}get element(){return n(this)}};ft.style=vt;const bt=[2,4,16,"full"];const wt=["input","label"];const _t="mg-c-input--fieldset";const xt="mg-c-input--disabled";const zt="mg-c-input--readonly";const yt="mg-c-input--vertical-list";const kt=".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}}/*!\n * @prop --mg-c-input-border-width: Defines the width of the input border. Default value is `--mg-b-size-border`.\n * @prop --mg-c-input-border-radius: Defines the border radius of the input. Default value is `--mg-b-size-radius`.\n * @prop --mg-c-input-color-border: Defines the color of the input border. Default value is `rgb(181, 194, 201)`.\n * @prop --mg-c-input-placeholder-color-text: Defines the color of the placeholder text. Default value is `rgb(181, 194, 201)`.\n * @prop --mg-c-input-color-box-shadow-focus: Defines the shadow color of the input when focused. Default value is `rgba(0, 221, 255, 0.5)`.\n * @prop --mg-c-input-error-color-background: Defines the background color of the input error message. Default value is `color-mix(in srgb, var(--mg-b-color-danger), white 95%)`.\n * @prop --mg-c-input-toggle-border-radius-ratio: Defines the border radius ratio of the input toggle. Default value is `2`.\n * @prop --mg-c-input-check-size: Defines the size of the input check. Default value is `--mg-b-size-16`.\n */:host{display:block}.mg-c-input__input mg-icon,.mg-c-input__error mg-icon{display:flex}.mg-c-input{display:flex;min-height:var(--mg-b-size-min-height);align-items:flex-start}.mg-c-input__input-container{width:100%;min-height:var(--mg-b-size-min-height)}.mg-c-input__input-container mg-tooltip{display:inline-flex;width:var(--mg-b-size-16);height:var(--mg-b-size-16);margin-left:var(--mg-b-size-8)}@media print{.mg-c-input__input-container mg-tooltip{display:none}}.mg-c-input__input{display:flex;min-height:var(--mg-b-size-min-height);align-items:center;justify-content:start}.mg-c-input__input mg-tooltip{align-self:baseline;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-size-16))/2)}.mg-c-input__input ::slotted(.mg-c-input__button-toggle:disabled){opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input__title{display:flex;width:var(--mg-c-input-title-width, auto);flex-shrink:0;align-items:baseline;justify-content:flex-end;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);margin-right:var(--mg-c-input-title-horizontal-space, var(--mg-b-size-8));text-align:right}.mg-c-input__title slot[name=label]+mg-tooltip{margin-left:var(--mg-b-size-4)}.mg-c-input__title mg-icon{display:inline-flex;vertical-align:text-bottom}.mg-c-input__error{display:inline-block;padding:var(--mg-b-size-4) var(--mg-b-size-8);border-radius:var(--mg-b-size-radius);background:var(--mg-c-input-error-color-background);color:var(--mg-b-color-danger)}.mg-c-input__error ::slotted(*),.mg-c-input__help-text ::slotted(*){font-size:var(--mg-b-font-size-small);text-align:start}:host(:not(.mg-c-input--textarea)) .mg-c-input__input+.mg-c-input__error,:host(:not(.mg-c-input--textarea)) .mg-c-input__input+.mg-c-input__help-text{margin-top:var(--mg-b-size-4)}:host(.mg-c-input.mg-c-input--readonly) .mg-c-input__input mg-tooltip{margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2)}:host(.mg-c-input){display:flex;margin-bottom:var(--mg-c-input-margin-bottom, 0)}:host(.mg-c-input.mg-c-input--checkbox) .mg-c-input__input,:host(.mg-c-input.mg-c-input--radio) .mg-c-input__input{min-height:unset;align-items:flex-start}:host(.mg-c-input.mg-c-input--checkbox,.mg-c-input.mg-c-input--radio) .mg-c-input__input{min-height:unset}:host(.mg-c-input.mg-c-input--fieldset:not(.mg-c-input--checkbox-multi,.mg-c-input--readonly)) .mg-c-input__input-container mg-tooltip{margin-left:var(--mg-b-size-32)}:host(.mg-c-input.mg-c-input--label-on-top){flex-direction:column}:host(.mg-c-input.mg-c-input--label-on-top) .mg-c-input__title{width:100%;flex:0;justify-content:flex-start;margin-top:0;margin-right:0;margin-bottom:var(--mg-b-size-4);text-align:left}:host(.mg-c-input.mg-c-input--label-on-top) .mg-c-input__title ::slotted(mg-input-title){flex-shrink:1}@media screen and (max-width: 767px){:host(.mg-c-input){flex-direction:column}:host(.mg-c-input) .mg-c-input__title{width:100%;flex:0;justify-content:flex-start;margin-top:0;margin-right:0;margin-bottom:var(--mg-b-size-4);text-align:left}:host(.mg-c-input) .mg-c-input__title ::slotted(mg-input-title){flex-shrink:1}}";const Mt=kt;const Ht=class{constructor(i){t(this,i);this.slotLabel="label";this.slotError="error";this.slotHelpText="help-text";this.classInput="mg-c-input";this.classHasError="mg-c-input--has-error";this.classLabelOnTop="mg-c-input--label-on-top";this.renderTooltip=()=>e("mg-tooltip",{identifier:`${this.identifier}-tooltip`,message:this.tooltip},e("mg-icon",{icon:"info-circle"}));this.identifier=undefined;this.label=undefined;this.labelOnTop=undefined;this.labelHide=false;this.tooltip=undefined;this.tooltipPosition="input";this.required=false;this.errorMessage=undefined;this.helpText=undefined;this.ariaDescribedbyIDs=undefined;this.isFieldset=false;this.isReadonly=false;this.isDisabled=false;this.isVerticalList=false}watchIdentifier(t){if(!l(t)){throw new Error(`<mg-input> prop "identifier" is required and must be a string. Passed value: ${r(t)}.`)}else if(!h(t)){console.error(`<mg-input> prop "identifier" value is invalid. Passed value: ${r(t)}.`)}else{this.helpTextId=`${this.identifier}-help-text`;this.helpTextErrorId=`${this.identifier}-error`}}watchLabelOnTop(t){if(t){this.element.classList.add(this.classLabelOnTop)}else{this.element.classList.remove(this.classLabelOnTop)}}watchLabelConfig(){if(this.labelHide&&this.labelOnTop){throw new Error('<mg-input> prop "labelOnTop" must not be paired with the prop "labelHide".')}}watchTooltipPosition(t){if(!wt.includes(t)){throw new Error(`<mg-input> prop "tooltipPosition" must be one of: ${wt.join(", ")}. Passed value: ${r(t)}.`)}}watchErrorMessage(t){var e;if(t!==undefined){this.element.classList.add(this.classHasError);this.renderErrorMessage()}else{this.element.classList.remove(this.classHasError);(e=this.errorMessageSlotElement)===null||e===void 0?void 0:e.remove();this.errorMessageSlotElement=undefined}}watchHelpText(t){var e;if(t&&!this.isReadonly){this.renderHelpText()}else{(e=this.helptextMessageSlotElement)===null||e===void 0?void 0:e.remove();this.helptextMessageSlotElement=undefined}}watchAriaDescribedbyIDs(){if(this.isReadonly)return;const t=new Set(this.ariaDescribedbyIDs);if(this.helpText!==undefined){this.renderHelpText();if(!t.has(this.helpTextId))t.add(this.helpTextId)}if(this.errorMessage!==undefined){this.renderErrorMessage();if(!t.has(this.helpTextErrorId))t.add(this.helpTextErrorId)}this.element.querySelectorAll('input,select,textarea,[role="switch"]').forEach((e=>{e.setAttribute("aria-describedby",Array.from(t).join(" "))}))}watchClass(){if(!this.element.classList.contains(this.classInput)){this.element.classList.add(this.classInput)}this.isFieldset=this.element.classList.contains(_t);this.isReadonly=this.element.classList.contains(zt);this.isDisabled=this.element.classList.contains(xt);this.isVerticalList=this.element.classList.contains(yt)}watchLabel(){if(!l(this.label)){throw new Error(`<mg-input> prop "label" is required and must be a string. Passed value: ${r(this.label)}.`)}else{this.watchAriaDescribedbyIDs();this.renderLabel()}}renderLabel(){let t=this.element.querySelector(`[slot=${this.slotLabel}]`);t===null||t===void 0?void 0:t.remove();t=document.createElement("mg-input-title");[["slot",this.slotLabel],["identifier",this.identifier],["readonly",this.isReadonly.toString()],["required",(this.required&&!this.isDisabled||false).toString()],["is-legend",this.isFieldset.toString()]].forEach((([e,i])=>{t.setAttribute(e,i)}));const e=document.createElement("span");e.classList.add("mg-c-input-title__text");e.textContent=this.label;t.appendChild(e);this.element.appendChild(t)}renderErrorMessage(){this.errorMessageSlotElement=this.element.querySelector(`[slot=${this.slotError}]`);if(this.errorMessageSlotElement===null){this.errorMessageSlotElement=document.createElement("div");this.errorMessageSlotElement.setAttribute("slot",this.slotError);this.element.appendChild(this.errorMessageSlotElement)}this.errorMessageSlotElement.setAttribute("id",this.helpTextErrorId);this.errorMessageSlotElement.innerHTML=this.errorMessage}renderHelpText(){this.helptextMessageSlotElement=this.element.querySelector(`[slot=${this.slotHelpText}]`);if(this.helptextMessageSlotElement===null){this.helptextMessageSlotElement=document.createElement("div");this.helptextMessageSlotElement.setAttribute("slot",this.slotHelpText);this.element.appendChild(this.helptextMessageSlotElement)}this.helptextMessageSlotElement.setAttribute("id",this.helpTextId);this.helptextMessageSlotElement.innerHTML=this.helpText}componentWillLoad(){this.watchIdentifier(this.identifier);this.watchLabel();this.watchClass();this.watchLabelOnTop(this.labelOnTop);this.watchLabelConfig();this.watchTooltipPosition(this.tooltipPosition);this.watchHelpText(this.helpText);this.watchErrorMessage(this.errorMessage)}componentDidLoad(){this.watchAriaDescribedbyIDs();if(!this.isReadonly&&!this.isFieldset&&this.element.querySelector(`#${this.identifier}`)===null){throw new Error(`<mg-input> "identifier" prop has no target for id: ${this.identifier}. Add an id to the targeted input.`)}}render(){const t=this.isFieldset&&!this.isReadonly;return e(i,{key:"628e189d5e91c6146c2e8ab5b9374b5cc4132786",class:this.element.classList.toString(),role:t?"group":undefined,"aria-labelledby":t?`${this.identifier}-title`:undefined},e("div",{key:"9471070c3810c71fe5335f31012fa9294dbcadde",class:{"mg-c-input__title":true,"mg-u-visually-hidden":this.labelHide}},e("slot",{key:"d653ebdb538ba4325b76d92725a8192245b022ab",name:this.slotLabel}),this.tooltip&&(this.tooltipPosition==="label"||this.labelOnTop)&&!this.labelHide&&this.renderTooltip()),e("div",{key:"6c9d40fc0ae6b51581659470c14678474885bc0c",class:"mg-c-input__input-container"},e("div",{key:"5f80ebc33f11151607322133f995374056321453",class:"mg-c-input__input"},e("slot",{key:"da67674bb91c4957c850cd50b0196f4aeaa8f4d0"}),this.tooltip&&!this.labelOnTop&&(this.tooltipPosition==="input"||this.labelHide)&&this.renderTooltip()),this.helptextMessageSlotElement&&e("div",{key:"25be9fc701e42a4b2eb0ecc01d22ca0be271c1d9",class:"mg-c-input__help-text"},e("slot",{key:"fc6b29fdc35e52d90646cbf1d9f2f3e631371dc7",name:this.slotHelpText})),!this.isDisabled&&this.errorMessage&&e("div",{key:"3ad2878abfa52fb5129cf773e907f75fac9a0985",class:"mg-c-input__error","aria-live":"assertive"},e("slot",{key:"1c72d4ab723c8c7805a1dcc8c6554ac24739f080",name:this.slotError}))))}get element(){return n(this)}static get watchers(){return{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"]}}};Ht.style=Mt;const Ct=["checkbox","multi"];const Vt={SELECTED:"selected",NOT_SELECTED:"not-selected"};const Lt=t=>e("ul",{class:"mg-c-input__input-group-container",role:"list","aria-describedby":t.displaySearchInput?"search-results":undefined,"aria-label":t.displaySearchInput?t.messages.searchResults:undefined,"aria-live":t.displaySearchInput?"polite":undefined,id:t.id},t.checkboxes.map((i=>{var n,a;return e("li",{key:i._id,class:{"mg-c-input__input-group":true,"mg-c-input__input-group--disabled":t.disabled||i.disabled}},e("input",{type:"checkbox",id:i._id,name:t.name,value:(n=i.value)===null||n===void 0?void 0:n.toString(),checked:Boolean(i.value),required:i.required,"aria-invalid":((a=t.invalid)===null||a===void 0?void 0:a.toString())||"false",disabled:t.disabled||i.disabled,indeterminate:i.value===null,onInput:i._handleInput,onBlur:i._handleBlur,onKeyDown:i._handleKeydown}),e("label",{htmlFor:i._id},i.title))})));const Bt=".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);word-break:break-word}.mg-c-input.mg-c-input--fieldset{padding:0;border:0;margin-right:0;margin-left:0}.mg-c-input.mg-c-input--fieldset input[type=radio],.mg-c-input.mg-c-input--fieldset input[type=checkbox]{width:var(--mg-c-input-check-size);height:var(--mg-c-input-check-size);flex-shrink:0;margin:calc((var(--mg-b-font-size)*var(--mg-b-line-height) - var(--mg-c-input-check-size))/2) var(--mg-b-size-8) 0 0}.mg-c-input.mg-c-input--fieldset .mg-c-input__input-group{display:flex;align-items:start}.mg-c-input.mg-c-input--fieldset .mg-c-input__input-group-container{display:flex;flex-wrap:wrap;padding:0;margin:0;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);gap:var(--mg-b-size-12) var(--mg-b-size-24);list-style:none}.mg-c-input.mg-c-input--fieldset .mg-c-input__input-group.mg-c-input__input-group--disabled label{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--fieldset.mg-c-input--vertical-list .mg-c-input__input-group-container,.mg-c-input.mg-c-input--fieldset.mg-c-input--checkbox-multi .mg-c-input__input-group-container{flex-direction:column}.mg-c-input.mg-c-input--fieldset.mg-c-input--label-on-top .mg-c-input__input-group-container{margin-top:var(--mg-b-size-8)}.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}}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__input-group-container{padding:var(--mg-b-size-4) var(--mg-b-size-8);margin:0}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__input-container{display:flex;width:unset;flex:unset;flex-wrap:wrap;column-gap:var(--mg-b-size-8)}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__input-container-list{display:flex;flex-flow:row wrap;padding:0;margin:0;gap:var(--mg-b-size-4);list-style:none}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__sections{max-height:80vh;padding-right:var(--mg-b-size-8);overflow-y:auto}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__section-header{display:flex;min-height:var(--mg-b-size-min-height);flex-wrap:wrap;flex-wrap:nowrap;align-items:center;gap:var(--mg-b-size-8);text-wrap:nowrap}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__section-header-tootlip{display:inline-block;width:auto;height:auto;margin:0}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__section-header-title{display:inline;margin:0;color:var(--mg-b-color-neutral-80)}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__section-header-title-label{font-size:var(--mg-b-font-size)}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__section-header-title--static.mg-c-input__section-header-title{margin:0 var(--mg-b-size-12)}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__input-value{display:inline-flex;min-width:var(--mg-b-size-min-height);min-height:var(--mg-b-size-min-height);box-sizing:border-box;align-items:center;justify-content:center;padding:calc((var(--mg-b-size-min-height) - 2*var(--mg-b-size-border) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) var(--mg-b-size-12);border-radius:var(--mg-b-size-4);background-color:var(--mg-b-color-neutral-20);font-size:var(--mg-b-font-size)}.mg-c-input.mg-c-input--checkbox-multi .mg-c-input__input-no-result{text-align:center}.mg-c-input.mg-c-input--checkbox-multi b{margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2)}.mg-c-input.mg-c-input--checkbox-multi.mg-c-input--disabled .mg-c-input__input-container b{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--checkbox-multi.mg-c-input--with-values .mg-c-input__input-container{gap:var(--mg-b-size-4)}.mg-c-input.mg-c-input--checkbox-multi.mg-c-input--search-mode .mg-c-input__content{display:flex;width:calc(var(--mg-b-size-floating-element-max-width) - var(--mg-b-size-16));height:calc(50*var(--mg-b-size-8));flex-direction:column;gap:var(--mg-b-size-8)}.mg-c-input.mg-c-input--checkbox-multi:not(.mg-c-input--label-on-top) mg-tooltip:not(.mg-c-input__section-header-tootlip){margin-left:var(--mg-b-size-8)}.mg-c-input.mg-c-input--checkbox-multi mg-popover{--mg-c-card-spacing:var(--mg-b-size-8)}.mg-c-input.mg-c-input--readonly ul{display:flex;min-height:var(--mg-b-font-size);flex-flow:column wrap;padding:0;margin:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) 0 0;list-style:none;row-gap:var(--mg-b-size-8)}";const Dt=Bt;const $t=t=>Array.isArray(t)&&t.every((t=>typeof t==="object"&&typeof t.title==="string"&&(t.value===null||typeof t.value==="boolean")&&t.value!==undefined));const Et=class{constructor(i){t(this,i);this.valueChange=a(this,"value-change",7);this.inputValid=a(this,"input-valid",7);this.hasDisplayedError=false;this.mode="custom";this.baseClassName="mg-c-input--checkbox";this.classTypeMulti="mg-c-input--checkbox-multi";this.classWithValues="mg-c-input--with-values";this.classSearchMode="mg-c-input--search-mode";this.multiStart=5;this.searchStart=10;this.hasOpenedPopover=false;this.handleInput=t=>{this.updateCheckboxItems("value",Boolean(t.target.checked),(e=>e._id===t.target.id));this.updateValues();this.checkValidity();this.setErrorMessage()};this.handleKeydown=t=>{var e;if(t.key==="Tab"&&((e=this.mgPopover)===null||e===void 0?void 0:e.display)){if(Boolean(this.searchInput)&&t.shiftKey&&this.searchInput.id===t.target.id){this.mgPopover.display=false;return}const e=Array.from(this.element.shadowRoot.querySelectorAll("input")).filter((t=>!t.hasAttribute("disabled"))).map((({id:t})=>t));const i=e.findIndex((e=>e===t.target.id));if(i+1>=e.length&&!t.shiftKey||i===0&&t.shiftKey&&this.searchInput===undefined)this.mgPopover.display=false}};this.handleBlur=()=>{this.checkValidity();this.setErrorMessage()};this.handleSearchChange=t=>{this.searchValue=t.detail;t.stopPropagation()};this.handleMgPopoverDisplayChange=t=>{this.hasOpenedPopover=t.detail;this.setButtonTextKey();if(!t.detail){this.searchValue="";Array.from(this.element.shadowRoot.querySelectorAll("mg-input-checkbox-paginated")).forEach((t=>{t.currentPage=1}));this.checkValidity()}};this.handleMassAction=t=>{const e=this.getDisplayItems();e.forEach((e=>{e.value=t.detail!==Vt.SELECTED}));this.updateValues()};this.updateValues=()=>{this.value=this.checkboxItems.map((t=>{delete t._handleBlur;delete t._handleInput;delete t._handleKeydown;delete t._id;return t}))};this.hasInvalidInput=()=>Array.from(this.element.shadowRoot.querySelectorAll('input[type="checkbox"]')).some((t=>!t.disabled&&!t.checkValidity()));this.updateSearchResults=()=>{this.searchResults=this.checkboxItems.filter((t=>g(t.title).includes(g(this.searchValue))))};this.validateRequired=()=>!this.required||this.checkboxItems.some((({value:t})=>t));this.checkValidity=()=>{this.setValidity(this.readonly||this.disabled||!this.hasInvalidInput()&&this.validateRequired())};this.setButtonTextKey=()=>{if(this.hasOpenedPopover)return;let t="editButton";if(this.disabled)t="showButton";else if(this.getSelectedItems().length<1)t="selectButton";this.selectValuesButtonKey=t};this.getSelectValuesButtonMessage=()=>{if(this.selectValuesButtonKey==="editButton"&&l(this.editButtonMessage)){return this.editButtonMessage}else if(this.selectValuesButtonKey==="showButton"&&l(this.showButtonMessage)){return this.showButtonMessage}else if(this.selectValuesButtonKey==="selectButton"&&l(this.selectButtonMessage)){return this.selectButtonMessage}else{return this.messages.input.checkbox[this.selectValuesButtonKey]}};this.setErrorMessage=(t=true,e)=>{this.errorMessage=undefined;if(t&&!this.valid){if(e!==undefined)this.errorMessage=e;else if(!this.validateRequired())this.errorMessage=this.messages.errors.required}};this.getMgPopoverIdentifier=()=>`${this.identifier}-input-mg-popover`;this.getDisplayItems=()=>this.searchValue.length>0?this.searchResults:this.checkboxItems;this.getSelectedItems=()=>this.checkboxItems.filter((({value:t})=>t));this.renderReadonly=t=>this.inputVerticalList?e("ul",{class:"mg-c-input__readonly-value"},t.map((t=>e("li",{key:t},e("b",null,t))))):e("b",{class:"mg-c-input__readonly-value"},t.join(", "));this.renderMgInputCheckboxList=()=>e(Lt,{checkboxes:this.checkboxItems,displaySearchInput:this.displaySearchInput,messages:this.messages.input.checkbox,id:"checkboxes-list",disabled:this.disabled,name:this.name,invalid:this.invalid});this.value=undefined;this.type=undefined;this.identifier=undefined;this.name=this.identifier;this.label=undefined;this.labelOnTop=undefined;this.labelHide=false;this.inputVerticalList=false;this.required=false;this.readonly=false;this.displaySelectedValues=undefined;this.disabled=false;this.tooltip=undefined;this.tooltipPosition="input";this.helpText=undefined;this.valid=undefined;this.invalid=undefined;this.editButtonMessage=undefined;this.showButtonMessage=undefined;this.selectButtonMessage=undefined;this.classCollection=new s([this.baseClassName,_t]);this.errorMessage=undefined;this.checkboxItems=[];this.displaySearchInput=undefined;this.searchValue="";this.searchResults=[];this.selectValuesButtonKey="editButton"}validateValue(t){if($t(t)){this.checkboxItems=t.map(((t,e)=>Object.assign(Object.assign({},t),{_id:`${this.identifier}_${e}`,_handleInput:this.handleInput.bind(this),_handleBlur:this.handleBlur.bind(this),_handleKeydown:this.handleKeydown.bind(this)})));this.valueChange.emit(t)}else{throw new Error(`<mg-input-checkbox> prop "value" is required and all values must be the same type, CheckboxItem. Passed value: ${r(t)}.`)}}validateType(t){if(t!==undefined&&!Ct.includes(t)){throw new Error(`<mg-input-checkbox> prop "type" must be a CheckboxType. Passed value: ${r(t)}.`)}else if(t===undefined){this.mode="auto";this.type=Ct[0]}else if(t==="multi"){this.classCollection.add(this.classTypeMulti);this.element.dataset.mgPopoverGuard=this.getMgPopoverIdentifier()}else{this.classCollection.delete(this.classTypeMulti)}}watchInputVerticalList(t){if(t)this.classCollection.add(yt);else this.classCollection.delete(yt)}watchReadonly(t){if(t)this.classCollection.add(zt);else this.classCollection.delete(zt)}watchDisplaySelectedValues(t){if(t)this.classCollection.add(this.classWithValues);else this.classCollection.delete(this.classWithValues)}handleValidityChange(t,e,i){if(i!=="readonly")this.updateCheckboxItems(i,t);this.checkValidity();if(this.hasDisplayedError){this.hasDisplayedError=i!=="required";this.setErrorMessage(this.hasDisplayedError)}this.setButtonTextKey()}validateDisabled(t){if(t)this.classCollection.add(xt);else this.classCollection.delete(xt)}validateCheckboxItems(t){if(this.mode==="auto")this.type=t.length>this.multiStart?"multi":"checkbox";this.displaySearchInput=this.type==="multi"&&t.length>this.searchStart;if(this.displaySearchInput)this.updateSearchResults();this.setButtonTextKey()}watchDisplaySearchInput(t){if(t)this.classCollection.add(this.classSearchMode);else this.classCollection.delete(this.classSearchMode)}validateSearchValue(){this.updateSearchResults()}async displayError(){this.checkValidity();this.setErrorMessage();this.hasDisplayedError=this.invalid}async setError(t,e){if(typeof t!=="boolean"){throw new Error('<mg-input-checkbox> method "setError()" param "valid" must be a boolean.')}else if(!l(e)){throw new Error('<mg-input-checkbox> method "setError()" param "errorMessage" must be a string.')}else{this.setValidity(t);this.setErrorMessage(undefined,t?undefined:e);this.hasDisplayedError=this.invalid}}async reset(){if(!this.readonly){this.value=this.value.map((t=>Object.assign(Object.assign({},t),{value:false})));this.checkValidity();this.errorMessage=undefined;this.hasDisplayedError=false}}setValidity(t){const e=this.valid;this.valid=t;this.invalid=!this.valid;if(this.valid!==e)this.inputValid.emit(this.valid)}updateCheckboxItems(t,e,i){this.checkboxItems=this.checkboxItems.map((n=>{if(typeof i==="function"&&i(n)||i===undefined)n[t]=e;return n}))}componentWillLoad(){this.messages=k(this.element).messages;this.validateType(this.type);this.validateValue(this.value);this.validateDisabled(this.disabled);this.watchReadonly(this.readonly);this.watchInputVerticalList(this.inputVerticalList);this.watchDisplaySelectedValues(this.displaySelectedValues);this.watchDisplaySearchInput(this.displaySearchInput);return setTimeout((()=>{this.checkValidity()}),0)}componentDidLoad(){var t,e;if(!this.readonly){this.searchInput=(t=this.element.shadowRoot.querySelector("mg-input-text"))===null||t===void 0?void 0:t.shadowRoot.querySelector("input");(e=this.searchInput)===null||e===void 0?void 0:e.addEventListener("keydown",this.handleKeydown)}}renderCheckboxBySection(t){const[i,n]=t.reduce(((t,e)=>{t[e.value?0:1].push(e);return t}),[[],[]]);const a={readonly:this.readonly,disabled:this.disabled,identifier:this.identifier};const o=[Object.assign(Object.assign({},a),{checkboxes:i,messages:this.messages.input.checkbox.sections.selected}),Object.assign(Object.assign({},a),{checkboxes:n,messages:this.messages.input.checkbox.sections.notSelected})];return o.filter((t=>t.checkboxes.length)).map((t=>e("mg-input-checkbox-paginated",Object.assign({},t,{"onMass-action":this.handleMassAction,key:t.messages}))))}renderCheckboxMulti(){const t=this.getSelectedItems().length;const i=this.getDisplayItems();return e("div",{class:"mg-c-input__input-container"},e("mg-popover",{arrowHide:true,identifier:this.getMgPopoverIdentifier(),display:this.hasOpenedPopover,"onDisplay-change":this.handleMgPopoverDisplayChange,ref:t=>{if(t!==null)this.mgPopover=t}},e("mg-button",{variant:"secondary","aria-describedby":`${this.identifier}-title`},e("mg-icon",{icon:"list"}),this.getSelectValuesButtonMessage()),e("div",{slot:"content",class:"mg-c-input__content"},this.displaySearchInput?[e("mg-input-text",{key:"input-search",identifier:`${this.identifier}-input-search`,icon:"magnifying-glass",type:"search",placeholder:this.messages.input.checkbox.label,label:this.messages.input.checkbox.label,mgWidth:"full",value:this.searchValue,labelHide:true,characterLeftHide:true,name:"q","onValue-change":this.handleSearchChange,"aria-controls":"search-results items-list"}),e("p",{key:"search-results",role:"status",class:"mg-u-visually-hidden",id:"search-results"},`${i.length} ${this.messages.input.checkbox[i.length>0?"results":"result"]}`),e("div",{key:"sections-container",class:"mg-c-input__sections"},this.renderCheckboxBySection(i))]:e(Lt,{checkboxes:i,displaySearchInput:this.displaySearchInput,messages:this.messages.input.checkbox,id:"checkboxes-list",disabled:this.disabled,name:this.name,invalid:this.invalid}),this.displaySearchInput&&i.length===0&&e("p",{class:"mg-c-input__input-no-result"},this.messages.input.checkbox.noResult))),this.displaySelectedValues?t>0&&e("ul",{role:"list",class:"mg-c-input__input-container-list"},this.getSelectedItems().map((({title:t})=>e("li",{class:"mg-c-input__input-value",key:t},t)))):e("b",null,this.messages.input.checkbox[t>1?"selectedValues":"selectedValue"].replace("{nb}",t)))}render(){let t;const i=this.value.filter((({value:t})=>t)).map((({title:t})=>t));if(this.readonly){t=this.renderReadonly(i)}else if(this.type==="checkbox"){t=this.renderMgInputCheckboxList()}else{t=this.renderCheckboxMulti()}return e("mg-input",{key:"5a6c84d1f533159645c5aec09bb6e82a7cd30cc7",label:this.label,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:!this.readonly?this.required:undefined,tooltip:this.tooltip,tooltipPosition:this.readonly&&i.length===0?"label":this.tooltipPosition,helpText:!this.readonly?this.helpText:undefined,errorMessage:!this.readonly?this.errorMessage:undefined},t)}get element(){return n(this)}static get watchers(){return{value:["validateValue"],type:["validateType"],inputVerticalList:["watchInputVerticalList"],readonly:["watchReadonly","handleValidityChange"],displaySelectedValues:["watchDisplaySelectedValues"],required:["handleValidityChange"],disabled:["handleValidityChange","validateDisabled"],checkboxItems:["validateCheckboxItems"],displaySearchInput:["watchDisplaySearchInput"],searchValue:["validateSearchValue"]}}};Et.style=Dt;const At=class{constructor(e){t(this,e);this.massAction=a(this,"mass-action",7);this.offset=10;this.massActionHandler=()=>{this.massAction.emit(this.sectionKind)};this.handleToggleClick=()=>{this.expanded=!this.expanded};this.getArrayRange=(t,e,i)=>t.slice(e,i);this.getPageCount=t=>(t===null||t===void 0?void 0:t.length)>0?Math.ceil(t.length/this.offset):0;this.handleCurrentPageChange=t=>{this.currentPage=Number(t.detail)};this.readonly=undefined;this.disabled=undefined;this.name=undefined;this.invalid=undefined;this.currentPage=1;this.checkboxes=[];this.messages=undefined;this.expanded=true}watchCheckboxes(t,e){const i=this.getPageCount(t);const n=this.getPageCount(e);if(i===1||i!==0&&this.currentPage===0){this.currentPage=1}else if(n===this.currentPage&&i<this.currentPage){this.currentPage--}this.sectionKind=t[0].value?Vt.SELECTED:Vt.NOT_SELECTED}getFromToIndexes(){const t=this.currentPage===1;const e=t?0:(this.currentPage-1)*this.offset;const i=t?this.offset:this.currentPage*this.offset;return[e,i]}componentWillLoad(){this.watchCheckboxes(this.checkboxes)}render(){const t=t=>e("em",{key:"05d577bded8e2602d1dedf9a36f695904d491242",class:"mg-c-input__section-header-title-label"},`${this.messages[t.length>1?"titlePlurial":"title"]} (${t.length})`);const[n,a]=this.getFromToIndexes();const o=`items-${this.sectionKind}-container`;return e(i,{key:"49b95a0882cc475aab4a810ccd8f292d83b59a9a",hidden:this.checkboxes.length<1},e("div",{key:"2db5103f9784add1effb7a5dcafa8f8196601d14",class:"mg-c-input__section-header"},this.sectionKind===Vt.SELECTED?e("mg-button",{variant:"flat",onClick:this.handleToggleClick,"aria-controls":o,"aria-expanded":this.expanded.toString()},e("mg-icon",{icon:this.expanded?"chevron-up":"chevron-down"}),e("span",{class:"mg-c-input__section-header-title"},t(this.checkboxes))):e("p",{class:"mg-c-input__section-header-title mg-c-input__section-header-title--static"},t(this.checkboxes)),(this.sectionKind===Vt.SELECTED&&this.expanded||this.sectionKind===Vt.NOT_SELECTED)&&e("mg-tooltip",{key:"946506778c280928acd6e3e7256c828b7a7598b5",class:"mg-c-input__section-header-tootlip",message:this.messages.tooltip},e("mg-button",{key:"b71a4e10a764bfaf438430dd44b6f82785d0f5d4",variant:"link",onClick:this.massActionHandler},this.messages.action)),this.expanded&&this.getPageCount(this.checkboxes)>1&&e("mg-pagination",{key:"search-pagination",totalPages:this.getPageCount(this.checkboxes),currentPage:this.currentPage,"onCurrent-page-change":this.handleCurrentPageChange,hideNavigationLabels:true,hidePageCount:true,identifier:`input-checkbox-pagination-${this.sectionKind}`})),e("div",{key:"06af47b1e9f0a6d0a11741dae03f75ce71e32666",hidden:!this.expanded,id:o,class:"mg-c-input__section-content"},e(Lt,{key:"aba29baa719288ad0b172326c669d146c803a4e4",checkboxes:this.getArrayRange(this.checkboxes,n,a),displaySearchInput:true,messages:this.messages,id:`items-${this.sectionKind}`,disabled:this.disabled,name:this.name,invalid:this.invalid})))}static get watchers(){return{checkboxes:["watchCheckboxes"]}}};const qt=".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);word-break:break-word}.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-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}}";const It=qt;const Tt=class{constructor(e){t(this,e);this.valueChange=a(this,"value-change",7);this.inputValid=a(this,"input-valid",7);this.hasDisplayedError=false;this.isValidPattern=t=>l(t)&&m.test(t);this.formatHelpText=t=>{const e="{defaultHelpText}";let i=l(t)?t:this.messages.input.date.helpText;if(i.includes(e))i=i.replace(e,this.formatHelpText(this.messages.input.date.helpText));return i.replace("{pattern}",this.renderPattern()).replace("{date}",u(p(new Date("2023-12-24")),this.systemLocale))};this.handleInput=()=>{this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage()}this.value=this.input.value};this.handleBlur=()=>{this.handlerInProgress="blur";this.displayError().finally((()=>{this.handlerInProgress=undefined}))};this.handleKeyDown=t=>{if(["Delete","Backspace"].includes(t.key)){t.preventDefault();this.value="";this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage()}}};this.checkValidity=()=>{this.setValidity(this.readonly||this.disabled||this.input.checkValidity()&&(["",undefined].includes(this.value)||this.isValidPattern(this.value)))};this.getInputError=()=>{var t;let e=null;if(this.input.validity.valueMissing){e="required"}else if(this.value&&!this.isValidPattern(this.value)){e="badInput"}else if((this.input.validity.rangeUnderflow||this.input.validity.rangeOverflow)&&((t=this.min)===null||t===void 0?void 0:t.length)>0&&this.max!=="9999-12-31"){e="minMax"}else if(this.input.validity.rangeUnderflow){e="min"}else if(this.input.validity.rangeOverflow){e="max"}return e};this.setErrorMessage=t=>{this.errorMessage=undefined;if(!this.valid){const e=this.getInputError();if(t!==undefined){this.errorMessage=t}else if(e==="required"){this.errorMessage=this.messages.errors[e]}else if(["min","max","minMax"].includes(e)){this.errorMessage=this.messages.errors.date[e].replace("{min}",u(this.min,this.systemLocale)).replace("{max}",u(this.max,this.systemLocale))}else{this.errorMessage=this.messages.errors.date.badInput.replace("{pattern}",this.renderPattern())}}};this.renderPattern=()=>{let t=v(this.systemLocale);for(const e in this.messages.input.date.pattern){t=t.replace(e,this.messages.input.date.pattern[e])}return`<span aria-hidden="true">${t}</span><span class="mg-u-visually-hidden">${[...t].join(" ")}</span>`};this.value=undefined;this.identifier=undefined;this.name=this.identifier;this.label=undefined;this.labelOnTop=undefined;this.labelHide=false;this.required=false;this.readonly=false;this.min=undefined;this.max="9999-12-31";this.disabled=false;this.tooltip=undefined;this.tooltipPosition="input";this.helpText=undefined;this.valid=undefined;this.invalid=undefined;this.classCollection=new s(["mg-c-input--date"]);this.errorMessage=undefined}validateValue(t){if(t==="")t=null;if(t&&!l(t)){throw new Error(`<mg-input-date> props 'value' must be a valid string. Passed value: ${r(t)}.`)}else if([null,undefined].includes(t)||this.isValidPattern(t)){this.valueChange.emit(t)}else{console.error("<mg-input-date> props 'value' doesn't match pattern: 'yyyy-mm-dd'.")}}watchReadonly(t){if(t)this.classCollection.add(zt);else this.classCollection.delete(zt)}validateMinMax(t){if(t&&!this.isValidPattern(t)){throw new Error(`<mg-input-date> props 'min/max' doesn't match pattern: 'yyyy-mm-dd'. Passed value: ${r(t)}.`)}}handleValidityChange(t,e,i){if(this.input!==undefined){this.input[i]=t;this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage();this.hasDisplayedError=false}}}watchDisabled(t){if(t)this.classCollection.add(xt);else this.classCollection.delete(xt)}async displayError(){this.checkValidity();this.setErrorMessage();this.hasDisplayedError=this.invalid}async setError(t,e){if(typeof t!=="boolean"){throw new Error('<mg-input-date> method "setError()" param "valid" must be a boolean.')}else if(!l(e)){throw new Error('<mg-input-date> method "setError()" param "errorMessage" must be a string.')}else{this.setValidity(t);this.setErrorMessage(t?undefined:e);this.hasDisplayedError=this.invalid}}async reset(){if(!this.readonly){this.value="";this.checkValidity();this.invalid=false;this.errorMessage=undefined;this.hasDisplayedError=false}}setValidity(t){const e=this.valid;this.valid=t;this.invalid=!this.valid;if(this.handlerInProgress===undefined||this.handlerInProgress==="blur"&&this.valid!==e)this.inputValid.emit(this.valid)}componentWillLoad(){const t=k(this.element);this.locale=t.locale;this.messages=t.messages;this.systemLocale=Intl.DateTimeFormat().resolvedOptions().locale;this.validateValue(this.value);this.validateMinMax(this.min);this.validateMinMax(this.max);this.watchReadonly(this.readonly);this.watchDisabled(this.disabled);return setTimeout((()=>{this.checkValidity()}),0)}render(){return e("mg-input",{key:"33ffeaf0b7b07cc65081891709a73a44c9454092",label:this.label,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:this.required,tooltip:this.tooltip,tooltipPosition:this.readonly&&["",undefined].includes(this.value)?"label":this.tooltipPosition,helpText:this.formatHelpText(this.helpText),errorMessage:this.errorMessage},this.readonly?this.value&&e("b",{class:"mg-c-input__readonly-value"},u(this.value,this.locale)):e("input",{type:"date",class:"mg-c-input__box",min:this.min,max:this.max,value:this.value,id:this.identifier,name:this.name,disabled:this.disabled,required:this.required,"aria-invalid":(this.invalid===true).toString(),onInput:this.handleInput,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,ref:t=>{if(t!==null)this.input=t}}))}get element(){return n(this)}static get watchers(){return{value:["validateValue"],readonly:["watchReadonly","handleValidityChange"],min:["validateMinMax","handleValidityChange"],max:["validateMinMax","handleValidityChange"],required:["handleValidityChange"],disabled:["handleValidityChange","watchDisabled"]}}};Tt.style=It;const Pt=["decimal","integer"];const Ot=["none","number","currency","percent","unit"];const jt=".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__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);word-break:break-word}.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-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}}.mg-c-input .mg-c-input__box{width:auto;text-align:var(--mg-c-input-text-align, right)}";const St=jt;const Wt=class{constructor(i){t(this,i);this.valueChange=a(this,"value-change",7);this.inputValid=a(this,"input-valid",7);this.hasDisplayedError=false;this.handleInput=()=>{this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage()}this.value=this.input.value};this.handleFocus=()=>{this.hasFocus=true};this.handleBlur=()=>{if(this.value==="-")this.value="";this.handlerInProgress="blur";this.displayError().finally((()=>{this.handlerInProgress=undefined;this.hasFocus=false}))};this.checkValidity=()=>{this.setValidity(this.readonly||this.disabled||this.getInputError()===null)};this.setErrorMessage=t=>{this.errorMessage=undefined;if(!this.valid){const e=this.getInputError();if(t!==undefined){this.errorMessage=t}else if(e==="required"){this.errorMessage=this.messages.errors[e]}else{const t=this.formatValue(this.min);const i=this.formatValue(this.max);this.errorMessage=this.messages.errors.numeric[e].replace("{min}",t).replace("{max}",i)}}};this.getInputError=()=>{let t=null;const e=t=>!t.some((t=>[null,undefined].includes(t)));if(!this.input.checkValidity()&&this.input.validity.valueMissing){t="required"}else if(e([this.min,this.numericValue])&&this.numericValue<this.min&&this.max===undefined){t="min"}else if(e([this.max,this.numericValue])&&this.numericValue>this.max&&this.min===undefined){t="max"}else if(e([this.min,this.max,this.numericValue])&&(this.numericValue<this.min||this.numericValue>this.max)){t="minMax"}return t};this.formatValue=t=>{switch(this.format){case"number":return _(t,this.locale,this.type==="decimal"?this.decimalLength:undefined);case"currency":return w(t,this.locale,this.currency);case"percent":return b(t/100,this.locale,this.type==="decimal"?this.decimalLength:undefined);case"unit":return f(t,this.locale,this.unit,this.unitDisplay,this.type==="decimal"?this.decimalLength:undefined);case"none":return t.toString()}};this.validateAppendSlot=()=>{const t=this.element.querySelector('[slot="append-input"]');if(t!==null){if(t.nodeName==="MG-BUTTON"){this.classCollection.add("mg-c-input--is-input-group-append")}else{this.classCollection.add("mg-c-input--is-append-input-slot-content");this.slotContent=t.textContent}}};this.renderReadonly=()=>this.slotContent!==undefined?e("span",{class:"mg-c-input__readonly-value"},e("b",null,this.readonlyValue),this.slotContent):e("b",{class:"mg-c-input__readonly-value"},this.readonlyValue);this.value=undefined;this.identifier=undefined;this.name=this.identifier;this.label=undefined;this.labelOnTop=undefined;this.labelHide=false;this.placeholder=undefined;this.required=false;this.readonly=false;this.max=undefined;this.min=undefined;this.disabled=false;this.mgWidth=undefined;this.tooltip=undefined;this.tooltipPosition="input";this.helpText=undefined;this.type="decimal";this.format="number";this.currency="EUR";this.unit=undefined;this.unitDisplay="short";this.integerLength=13;this.decimalLength=2;this.valid=undefined;this.invalid=undefined;this.classCollection=new s(["mg-c-input--numeric"]);this.errorMessage=undefined;this.hasFocus=undefined}validateValue(t){if(typeof t==="string"){const[e,i=""]=t.replace("-","").split(/[.,]/);const n=this.type==="integer"?/^-?\d+$/:/^-?\d+(?:[.,]\d*)?$/;if(this.isValidValue(t,n,e,i)){this.storedValue=t}else{t=this.handleInvalidValue()}this.updateValues(t)}}watchReadonly(t){if(t)this.classCollection.add(zt);else this.classCollection.delete(zt)}handleValidityChange(t,e,i){if(this.input!==undefined){this.input[i]=t;this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage();this.hasDisplayedError=false}}}watchDisabled(t){if(t)this.classCollection.add(xt);else this.classCollection.delete(xt)}watchMgWidth(t){bt.forEach((t=>{this.classCollection.delete(`mg-c-input--width-${t}`)}));if(t!==undefined)this.classCollection.add(`mg-c-input--width-${this.mgWidth}`)}validateType(t){if(!Pt.includes(t)){throw new Error(`<mg-input-numeric> prop "type" must be one of: ${Pt.join(", ")}. Passed value: ${r(t)}.`)}}watchFormat(t){if(!Ot.includes(t)){throw new Error(`<mg-input-numeric> prop "format" must be one of: ${Ot.join(", ")}. Passed value: ${r(t)}.`)}}validateIntegerLength(t){if(t<1){throw new Error(`<mg-input-numeric> prop "integer-length" must be a positive number. Passed value: ${r(t)}.`)}}validateDecimalLength(t){if(t<1){throw new Error(`<mg-input-numeric> prop "decimal-length" must be a positive number, consider using prop "type" to "integer" instead. Passed value: ${r(t)}.`)}}async displayError(){this.checkValidity();this.setErrorMessage();this.hasDisplayedError=this.invalid}async setError(t,e){if(typeof t!=="boolean"){throw new Error('<mg-input-numeric> method "setError()" param "valid" must be a boolean.')}else if(!l(e)){throw new Error('<mg-input-numeric> method "setError()" param "errorMessage" must be a string.')}else{this.setValidity(t);this.setErrorMessage(t?undefined:e);this.hasDisplayedError=this.invalid}}async reset(){if(!this.readonly){this.value="";this.checkValidity();this.errorMessage=undefined;this.hasDisplayedError=false}}setValidity(t){const e=this.valid;this.valid=t;this.invalid=!this.valid;if(this.handlerInProgress===undefined||this.handlerInProgress==="blur"&&this.valid!==e)this.inputValid.emit(this.valid)}isValidValue(t,e,i,n){return["","-"].includes(t)||e.exec(t)!==null&&i.length<=this.integerLength&&n.length<=(this.type==="integer"?0:this.decimalLength)}handleInvalidValue(){var t;return(t=this.storedValue)!==null&&t!==void 0?t:null}updateValues(t){this.value=t;if(this.input!==undefined)this.input.value=this.value;this.numericValue=!["",null].includes(this.value)?parseFloat(this.value.replace(",",".")):null;this.valueChange.emit(this.numericValue);this.readonlyValue=this.numericValue!==null?this.formatValue(this.numericValue):""}displayValue(){return this.hasFocus?this.value:this.readonlyValue}componentWillLoad(){const t=k(this.element);this.locale=t.locale;this.messages=t.messages;this.watchFormat(this.format);this.validateType(this.type);this.validateIntegerLength(this.integerLength);this.validateDecimalLength(this.decimalLength);this.validateValue(this.value);this.validateAppendSlot();this.watchReadonly(this.readonly);this.watchDisabled(this.disabled);this.watchMgWidth(this.mgWidth);return setTimeout((()=>{this.checkValidity()}),0)}render(){return e("mg-input",{key:"6d34c2b7e9762cdefc5de3814ff4afd95fa4a6a6",label:this.label,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:this.required,tooltip:this.tooltip,tooltipPosition:this.readonly&&this.value===undefined?"label":this.tooltipPosition,helpText:this.helpText,errorMessage:this.errorMessage},this.readonly?this.readonlyValue&&this.renderReadonly():[e("input",{key:"input",type:"text",class:"mg-c-input__box mg-c-input__box--width",value:this.displayValue(),id:this.identifier,name:this.name,placeholder:this.placeholder,title:this.placeholder,disabled:this.disabled,required:this.required,"aria-invalid":(this.invalid===true).toString(),onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,ref:t=>{if(t!==null)this.input=t}}),e("slot",{key:"slot",name:"append-input"})])}get element(){return n(this)}static get watchers(){return{value:["validateValue"],readonly:["watchReadonly","handleValidityChange"],required:["handleValidityChange"],disabled:["handleValidityChange","watchDisabled"],min:["handleValidityChange"],max:["handleValidityChange"],mgWidth:["watchMgWidth"],type:["validateType"],format:["watchFormat"],integerLength:["validateIntegerLength"],decimalLength:["validateDecimalLength"]}}};Wt.style=St;const Rt=".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__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);word-break:break-word}.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-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}}.mg-c-input.mg-c-input--password .mg-c-input__input-icon{color:var(--mg-b-color-dark)}.mg-c-input.mg-c-input--password .mg-c-input__input-group{position:relative;flex-grow:1}.mg-c-input.mg-c-input--password .mg-c-input__append-button{position:absolute;right:0}.mg-c-input.mg-c-input--password .mg-c-input__box{padding-right:calc(var(--mg-b-size-min-height) + var(--mg-b-size-8))}.mg-c-input.mg-c-input--password .mg-c-input__box::-ms-reveal{display:none}";const Ut=Rt;const Nt=class{constructor(e){t(this,e);this.valueChange=a(this,"value-change",7);this.inputValid=a(this,"input-valid",7);this.hasDisplayedError=false;this.handleInput=()=>{this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage()}this.value=this.input.value};this.handleBlur=()=>{this.handlerInProgress="blur";this.displayError().finally((()=>{this.handlerInProgress=undefined}))};this.toggleDisplayPassword=()=>{this.displayPassword=!this.displayPassword};this.checkValidity=()=>{this.setValidity(this.readonly||this.disabled||this.input.checkValidity())};this.setErrorMessage=t=>{this.errorMessage=undefined;if(!this.valid){if(t!==undefined){this.errorMessage=t}else if(this.input.validity.valueMissing){this.errorMessage=this.messages.errors.required}}};this.value=undefined;this.identifier=undefined;this.name=this.identifier;this.label=undefined;this.labelOnTop=undefined;this.labelHide=false;this.placeholder=undefined;this.maxlength=undefined;this.required=false;this.readonly=false;this.disabled=false;this.mgWidth="full";this.tooltip=undefined;this.tooltipPosition="input";this.helpText=undefined;this.valid=undefined;this.invalid=undefined;this.classCollection=new s(["mg-c-input--password"]);this.errorMessage=undefined;this.displayPassword=false}handleValue(t){this.valueChange.emit(t)}watchReadonly(t){if(t)this.classCollection.add(zt);else this.classCollection.delete(zt)}handleValidityChange(t,e,i){if(this.input!==undefined){this.input[i]=t;this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage();this.hasDisplayedError=false}}}watchDisabled(t){if(t)this.classCollection.add(xt);else this.classCollection.delete(xt)}watchMgWidth(t){bt.forEach((t=>{this.classCollection.delete(`mg-c-input--width-${t}`)}));if(t!==undefined)this.classCollection.add(`mg-c-input--width-${this.mgWidth}`)}async displayError(){this.checkValidity();this.setErrorMessage();this.hasDisplayedError=this.invalid}async setError(t,e){if(typeof t!=="boolean"){throw new Error('<mg-input-password> method "setError()" param "valid" must be a boolean.')}else if(!l(e)){throw new Error('<mg-input-password> method "setError()" param "errorMessage" must be a string.')}else{this.setValidity(t);this.setErrorMessage(t?undefined:e);this.hasDisplayedError=this.invalid}}async reset(){if(!this.readonly){this.value="";this.checkValidity();this.errorMessage=undefined;this.hasDisplayedError=false}}setValidity(t){const e=this.valid;this.valid=t;this.invalid=!this.valid;if(this.handlerInProgress===undefined||this.handlerInProgress==="blur"&&this.valid!==e)this.inputValid.emit(this.valid)}componentWillLoad(){this.messages=k(this.element).messages;this.watchReadonly(this.readonly);this.watchDisabled(this.disabled);this.watchMgWidth(this.mgWidth);return setTimeout((()=>{this.checkValidity()}),0)}render(){return e("mg-input",{key:"af313cb20a94a9c8dcf2b944c31b7ea36b2d3feb",label:this.label,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:this.required,tooltip:this.tooltip,tooltipPosition:this.readonly&&this.value===undefined?"label":this.tooltipPosition,helpText:this.helpText,errorMessage:this.errorMessage},this.readonly?this.value!==undefined&&e("b",{class:"mg-c-input__readonly-value"},"•".repeat(this.value.length)):e("span",{class:"mg-c-input__input-group"},e("input",{type:this.displayPassword?"text":"password",class:"mg-c-input__box mg-c-input__box--width",value:this.value,id:this.identifier,name:this.name,placeholder:this.placeholder,title:this.placeholder,disabled:this.disabled,required:this.required,maxlength:this.maxlength,"aria-invalid":(this.invalid===true).toString(),onInput:this.handleInput,onBlur:this.handleBlur,ref:t=>{if(t!==null)this.input=t}}),e("mg-button",{label:this.messages.input.password[this.displayPassword?"hide":"display"],disabled:this.disabled,variant:"flat",class:"mg-c-input__append-button","is-icon":true,onClick:this.toggleDisplayPassword,"aria-controls":this.identifier},e("mg-icon",{class:"mg-c-input__input-icon",icon:this.displayPassword?"eye-slash":"eye"}))))}get element(){return n(this)}static get watchers(){return{value:["handleValue"],readonly:["watchReadonly","handleValidityChange"],required:["handleValidityChange"],disabled:["handleValidityChange","watchDisabled"],mgWidth:["watchMgWidth"]}}};Nt.style=Ut;const Gt=".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);word-break:break-word}.mg-c-input.mg-c-input--fieldset{padding:0;border:0;margin-right:0;margin-left:0}.mg-c-input.mg-c-input--fieldset input[type=radio],.mg-c-input.mg-c-input--fieldset input[type=checkbox]{width:var(--mg-c-input-check-size);height:var(--mg-c-input-check-size);flex-shrink:0;margin:calc((var(--mg-b-font-size)*var(--mg-b-line-height) - var(--mg-c-input-check-size))/2) var(--mg-b-size-8) 0 0}.mg-c-input.mg-c-input--fieldset .mg-c-input__input-group{display:flex;align-items:start}.mg-c-input.mg-c-input--fieldset .mg-c-input__input-group-container{display:flex;flex-wrap:wrap;padding:0;margin:0;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);gap:var(--mg-b-size-12) var(--mg-b-size-24);list-style:none}.mg-c-input.mg-c-input--fieldset .mg-c-input__input-group.mg-c-input__input-group--disabled label{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input.mg-c-input--fieldset.mg-c-input--vertical-list .mg-c-input__input-group-container,.mg-c-input.mg-c-input--fieldset.mg-c-input--checkbox-multi .mg-c-input__input-group-container{flex-direction:column}.mg-c-input.mg-c-input--fieldset.mg-c-input--label-on-top .mg-c-input__input-group-container{margin-top:var(--mg-b-size-8)}.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}}";const Ft=Gt;const Kt=t=>typeof t==="object"&&typeof t.title==="string"&&t.value!==undefined;const Yt=class{constructor(e){t(this,e);this.valueChange=a(this,"value-change",7);this.inputValid=a(this,"input-valid",7);this.inputs=[];this.classVerticalList="mg-c-input--vertical-list";this.hasDisplayedError=false;this.handleInput=t=>{this.checkValidity();this.value=this.options[t.target.value].value};this.handleBlur=()=>{this.handlerInProgress="blur";this.checkValidity();this.setErrorMessage();this.handlerInProgress=undefined};this.checkValidity=()=>{this.setValidity(this.readonly||this.disabled||this.getInvalidElement()===undefined)};this.setErrorMessage=t=>{const e=this.getInvalidElement();this.errorMessage=undefined;if(!this.valid){if(t!==undefined){this.errorMessage=t}else if(e.validity.valueMissing){this.errorMessage=this.messages.errors.required}}};this.getInvalidElement=()=>this.inputs.find((t=>!t.disabled&&!t.readOnly&&!t.checkValidity()));this.value=undefined;this.items=undefined;this.identifier=undefined;this.name=this.identifier;this.label=undefined;this.labelOnTop=false;this.labelHide=false;this.inputVerticalList=false;this.required=false;this.readonly=false;this.disabled=false;this.tooltip=undefined;this.tooltipPosition="input";this.helpText=undefined;this.valid=undefined;this.invalid=undefined;this.classCollection=new s(["mg-c-input--radio",_t]);this.errorMessage=undefined;this.options=undefined;this.readonlyValue=undefined}watchValue(t){var e;if(x(this.items)&&typeof t==="string"){this.readonlyValue=t}else if(Array.isArray(this.items)&&this.items.every(Kt)){this.readonlyValue=(e=this.items.find((e=>e.value===t)))===null||e===void 0?void 0:e.title}else{this.readonlyValue=null}this.valueChange.emit(t)}validateItems(t){if(typeof t==="object"&&t.length<2){throw new Error(`<mg-input-radio> prop "items" require at least 2 items. Passed value: ${r(t)}.`)}else if(x(t)){this.options=t.map((t=>({title:t,value:t,disabled:this.disabled})))}else if(t&&t.every((t=>Kt(t)))){this.options=t}else{throw new Error(`<mg-input-radio> prop "items" is required and all items must be the same type, string or RadioOption. Passed value: ${r(t)}.`)}}watchInputVerticalList(t){if(t)this.classCollection.add(this.classVerticalList);else this.classCollection.delete(this.classVerticalList)}watchReadonly(t){if(t)this.classCollection.add(zt);else this.classCollection.delete(zt)}handleValidityChange(t,e,i){this.inputs.forEach((e=>{e[i]=t}));this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage();this.hasDisplayedError=false}}watchDisabled(t){if(t)this.classCollection.add(xt);else this.classCollection.delete(xt)}async displayError(){this.checkValidity();this.setErrorMessage();this.hasDisplayedError=this.invalid}async setError(t,e){if(typeof t!=="boolean"){throw new Error('<mg-input-radio> method "setError()" param "valid" must be a boolean.')}else if(!l(e)){throw new Error('<mg-input-radio> method "setError()" param "errorMessage" must be a string.')}else{this.setValidity(t);this.setErrorMessage(t?undefined:e);this.hasDisplayedError=this.invalid}}async reset(){if(!this.readonly){this.value=undefined;this.checkValidity();this.errorMessage=undefined;this.hasDisplayedError=false}}setValidity(t){const e=this.valid;this.valid=t;this.invalid=!this.valid;if(this.handlerInProgress===undefined||this.handlerInProgress==="blur"&&this.valid!==e)this.inputValid.emit(this.valid)}componentWillLoad(){this.messages=k(this.element).messages;this.validateItems(this.items);this.watchInputVerticalList(this.inputVerticalList);this.watchReadonly(this.readonly);this.watchDisabled(this.disabled);this.watchValue(this.value);return setTimeout((()=>{this.checkValidity()}),0)}render(){return e("mg-input",{key:"1f27ea2672375c28b2b7afca66ebd09f8dfc2354",label:this.label,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:this.required,tooltip:this.tooltip,tooltipPosition:this.readonly&&!this.value?"label":this.tooltipPosition,helpText:this.helpText,errorMessage:this.errorMessage},this.readonly?this.readonlyValue&&e("b",{class:"mg-c-input__readonly-value"},this.readonlyValue):e("ul",{class:"mg-c-input__input-group-container",role:"list"},this.options.map(((t,i)=>e("li",{key:t.title,class:{"mg-c-input__input-group":true,"mg-c-input__input-group--disabled":this.disabled||t.disabled}},e("input",{type:"radio",id:this.identifier+"_"+i,name:this.identifier,value:i,checked:JSON.stringify(this.value)===JSON.stringify(this.options[i].value),disabled:this.disabled||t.disabled,required:this.required,onBlur:this.handleBlur,onInput:this.handleInput,ref:t=>{if(t!==null)this.inputs[i]=t}}),e("label",{htmlFor:this.identifier+"_"+i},t.title))))))}get element(){return n(this)}static get watchers(){return{value:["watchValue"],items:["validateItems"],inputVerticalList:["watchInputVerticalList"],readonly:["watchReadonly","handleValidityChange"],required:["handleValidityChange"],disabled:["handleValidityChange","watchDisabled"]}}};Yt.style=Ft;const Jt=".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__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);word-break:break-word}.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-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}}.mg-c-input__box{padding-top:0;padding-right:var(--mg-b-size-8);padding-bottom:0}@media screen and (max-width: 767px){.mg-c-input__box{width:100%}}";const Xt=Jt;const Zt=t=>typeof t==="object"&&typeof t.title==="string";const Qt=t=>Array.isArray(t)&&t.every((t=>Zt(t)));const te=t=>typeof t==="object"&&typeof t.group==="string"&&Qt(t.options);const ee=(t,{group:e,title:i,value:n,disabled:a})=>{if(e!==undefined){const o=t.find((t=>t.group===e));if(o!==undefined){o.options.push({title:i,value:n,disabled:a})}else{t.push({group:e,options:[{title:i,value:n,disabled:a}]})}}else{t.push({title:i,value:n,disabled:a})}return t};const ie=class{constructor(i){t(this,i);this.valueChange=a(this,"value-change",7);this.inputValid=a(this,"input-valid",7);this.hasDisplayedError=false;this.handleInput=()=>{this.updateValue();if(this.hasDisplayedError)this.setErrorMessage()};this.isInputValue=t=>{var e;return t.title===((e=this.input)===null||e===void 0?void 0:e.value)};this.setValue=t=>{this.checkValidity();this.value=t};this.updateValue=()=>{if(this.input.value===""){this.setValue(null)}else if(x(this.items)&&this.items.includes(this.input.value)){this.setValue(this.input.value)}else if(Qt(this.items)&&typeof this.input.value==="string"&&this.items.some(this.isInputValue)){this.setValue(this.items.find(this.isInputValue).value)}else{this.options.push({title:this.input.value,value:this.input.value,disabled:true});this.setValue(this.input.value)}};this.handleBlur=()=>{this.handlerInProgress="blur";this.displayError().finally((()=>{this.handlerInProgress=undefined}))};this.isDisabledValue=()=>{var t;return Qt(this.options)&&((t=this.options.find(this.isInputValue))===null||t===void 0?void 0:t.disabled)===true};this.checkValidity=()=>{this.setValidity(!this.isDisabledValue()&&(this.readonly||this.disabled||this.input.checkValidity()))};this.setErrorMessage=t=>{this.errorMessage=undefined;if(!this.valid){if(t!==undefined){this.errorMessage=t}else if(this.input.validity.valueMissing){this.errorMessage=this.messages.errors.required}}};this.renderOption=t=>e("option",{key:t.title,value:t.title,selected:JSON.stringify(this.value)===JSON.stringify(t.value),disabled:t.disabled},t.title);this.value=undefined;this.items=undefined;this.identifier=undefined;this.name=this.identifier;this.label=undefined;this.labelOnTop=undefined;this.labelHide=false;this.placeholder=undefined;this.placeholderHide=false;this.placeholderDisabled=false;this.required=false;this.readonly=false;this.disabled=false;this.mgWidth=undefined;this.tooltip=undefined;this.tooltipPosition="input";this.helpText=undefined;this.valid=undefined;this.invalid=undefined;this.classCollection=new s(["mg-c-input--select"]);this.errorMessage=undefined;this.options=undefined;this.valueExist=undefined;this.readonlyValue=undefined}validateValue(t){var e,i;if(x(this.items)&&typeof t==="string"){this.readonlyValue=((e=this.input)===null||e===void 0?void 0:e.value)!==undefined?this.input.value:t}else if(Qt(this.items)){this.readonlyValue=(i=this.items.find((e=>e.value===t)))===null||i===void 0?void 0:i.title}else{this.readonlyValue=null}this.valueChange.emit(t)}validateItems(t){if(t.length===0){this.options=[]}else if(x(t)){if(typeof this.value==="string")this.valueExist=t.includes(this.value);this.options=t.map((t=>({title:t,value:t})))}else if(Qt(t)){this.valueExist=t.map((t=>t.value)).includes(this.value);if(t.some((t=>Boolean(t.group)))){this.options=t.reduce(ee,[])}else{this.options=t}}else{throw new Error(`<mg-input-select> prop "items" is required, can be an empty Array or all items must be the same type: string or Option. Passed value: ${r(t)}.`)}}watchReadonly(t){if(t)this.classCollection.add(zt);else this.classCollection.delete(zt)}handleValidityChange(t,e,i){if(this.input!==undefined){this.input[i]=t;this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage();this.hasDisplayedError=false}}}watchDisabled(t){if(t)this.classCollection.add(xt);else this.classCollection.delete(xt)}watchMgWidth(t){bt.forEach((t=>{this.classCollection.delete(`mg-c-input--width-${t}`)}));if(t!==undefined)this.classCollection.add(`mg-c-input--width-${this.mgWidth}`)}async displayError(){this.checkValidity();this.setErrorMessage();this.hasDisplayedError=this.invalid}async setError(t,e){if(typeof t!=="boolean"){throw new Error('<mg-input-select> method "setError()" param "valid" must be a boolean.')}else if(!l(e)){throw new Error('<mg-input-select> method "setError()" param "errorMessage" must be a string.')}else{this.setValidity(t);this.setErrorMessage(t?undefined:e);this.hasDisplayedError=this.invalid}}async reset(){if(!this.readonly){this.value=null;this.checkValidity();this.errorMessage=undefined;this.hasDisplayedError=false}}setValidity(t){const e=this.valid;this.valid=t;this.invalid=!this.valid;if(this.handlerInProgress===undefined||this.handlerInProgress==="blur"&&this.valid!==e)this.inputValid.emit(this.valid)}componentWillLoad(){this.messages=k(this.element).messages;this.validateItems(this.items);this.validateValue(this.value);this.watchMgWidth(this.mgWidth);this.watchReadonly(this.readonly);this.watchDisabled(this.disabled);if(this.placeholder===undefined||this.placeholder===""){this.placeholder=this.messages.input.select.placeholder}return setTimeout((()=>{this.checkValidity()}),0)}render(){return e("mg-input",{key:"23ce3f91b4a5abdbd9b9731a895ca38d37b8c0a5",label:this.label,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:this.required,tooltip:this.tooltip,tooltipPosition:this.readonly&&this.readonlyValue===null?"label":this.tooltipPosition,helpText:this.helpText,errorMessage:this.errorMessage},this.readonly?this.readonlyValue&&e("b",{class:"mg-c-input__readonly-value"},this.readonlyValue):e("select",{class:"mg-c-input__box",id:this.identifier,name:this.name,title:this.placeholder,disabled:this.disabled,required:this.required,"aria-invalid":(this.invalid===true).toString(),onInput:this.handleInput,onBlur:this.handleBlur,ref:t=>{if(t!==null)this.input=t}},(!this.placeholderHide||!this.valueExist)&&e("option",{value:"",disabled:this.placeholderDisabled&&this.valueExist},this.placeholder),this.options.map((t=>te(t)?e("optgroup",{label:t.group,key:t.group},t.options.map(this.renderOption)):Zt(t)&&this.renderOption(t)))))}get element(){return n(this)}static get watchers(){return{value:["validateValue"],items:["validateItems"],readonly:["watchReadonly","handleValidityChange"],required:["handleValidityChange"],disabled:["handleValidityChange","watchDisabled"],mgWidth:["watchMgWidth"]}}};ie.style=Xt;const ne=".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__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);word-break:break-word}.mg-c-input.mg-c-input--display-character-left mg-character-left{font-size:var(--mg-b-font-size-small);opacity:.6}.mg-c-input.mg-c-input--display-character-left .mg-c-input__input+.mg-c-input__help-text ::slotted(*),.mg-c-input.mg-c-input--display-character-left .mg-c-input__input+.mg-c-input__error ::slotted(*){margin-top:0}.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}}.mg-c-input__with-character-left{position:relative;width:100%}.mg-c-input.mg-u-is-focused .mg-c-input__with-character-left .mg-c-input__box{padding-right:max(var(--mg-c-character-left-message-length)*(.35ch + .3rem) + var(--mg-b-size-16)*clamp(0,var(--mg-c-character-left-message-length),1),var(--mg-b-size-8))}.mg-c-input__with-character-left mg-character-left{position:absolute;top:50%;right:var(--mg-b-size-8);display:none;font-size:var(--mg-b-font-size-small);opacity:.6;transform:translateY(-50%)}.mg-c-input.mg-u-is-focused .mg-c-input__with-character-left mg-character-left{display:block}.mg-c-input.mg-c-input--readonly b{min-height:var(--mg-b-font-size);margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2)}.mg-c-input.mg-c-input--has-icon .mg-c-input__with-character-left>mg-icon{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{padding-left:calc(var(--mg-b-size-16) + var(--mg-b-size-8)*2)}";const ae=ne;const oe=t=>typeof t==="object"&&typeof t.title==="string"&&t.value!==undefined;const re=t=>x(t)||Array.isArray(t)&&t.every(oe);const se=class{constructor(i){t(this,i);this.valueChange=a(this,"value-change",7);this.inputValid=a(this,"input-valid",7);this.classFocus="mg-u-is-focused";this.classIsInputGroupAppend="mg-c-input--is-input-group-append";this.classHasIcon="mg-c-input--has-icon";this.classHasButtonsGroupAppend="mg-c-input--has-buttons-group-append";this.classIsAppendInputSlotContent="mg-c-input--is-append-input-slot-content";this.hasDisplayedError=false;this.handleInput=()=>{this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage()}this.value=this.input.value};this.handleFocus=()=>{this.classCollection.add(this.classFocus);this.classCollection=new s(this.classCollection.classes)};this.handleBlur=()=>{this.classCollection.delete(this.classFocus);this.classCollection=new s(this.classCollection.classes);this.handlerInProgress="blur";this.displayError().finally((()=>{this.handlerInProgress=undefined}))};this.checkValidity=()=>{this.setValidity(this.readonly||this.disabled||this.input.checkValidity())};this.setErrorMessage=t=>{this.errorMessage=undefined;if(!this.valid&&t!==undefined){this.errorMessage=t}else if(!this.valid&&this.input.validity.patternMismatch){this.errorMessage=this.patternErrorMessage}else if(!this.valid&&this.input.validity.valueMissing){this.errorMessage=this.messages.errors.required}};this.validateAppendSlot=()=>{const t=Array.from(this.element.querySelectorAll('[slot="append-input"]'));if(t.length===1){if(t[0].nodeName==="MG-BUTTON"){this.classCollection.add(this.classIsInputGroupAppend)}else{this.classCollection.add(this.classIsAppendInputSlotContent);this.slotContent=t[0].textContent}}else if(t.filter((t=>t.nodeName==="MG-BUTTON")).length>1){this.classCollection.add(this.classIsInputGroupAppend);this.classCollection.add(this.classHasButtonsGroupAppend)}};this.hasDatalist=()=>re(this.datalistoptions)&&this.datalistoptions.length>0;this.renderReadonly=()=>this.slotContent!==undefined?e("span",{class:"mg-c-input__readonly-value"},e("b",null,this.value),this.slotContent):e("b",{class:"mg-c-input__readonly-value"},this.value);this.value=undefined;this.identifier=undefined;this.name=this.identifier;this.label=undefined;this.type="text";this.icon=undefined;this.labelOnTop=undefined;this.labelHide=false;this.placeholder=undefined;this.datalistoptions=undefined;this.maxlength=400;this.required=false;this.readonly=false;this.disabled=false;this.mgWidth="full";this.pattern=undefined;this.patternErrorMessage=undefined;this.tooltip=undefined;this.tooltipPosition="input";this.characterLeftHide=false;this.helpText=undefined;this.valid=undefined;this.invalid=undefined;this.classCollection=new s(["mg-c-input--text"]);this.errorMessage=undefined}handleValue(t){var e,i;if((e=this.datalistoptions)===null||e===void 0?void 0:e.every(oe)){this.valueChange.emit(((i=this.datalistoptions.find((e=>e.title===t)))===null||i===void 0?void 0:i.value)||t)}else{this.valueChange.emit(t)}}validateIcon(t){if(t!==undefined){this.classCollection.add(this.classHasIcon)}else{this.classCollection.delete(this.classHasIcon)}}validateDatalistoptions(t){if(Boolean(t)&&!re(t)){throw new Error(`<mg-input-text> prop "datalistoptions" values must be the same type, string or OptionType. Passed value: ${r(t)}.`)}}watchReadonly(t){if(t)this.classCollection.add(zt);else this.classCollection.delete(zt)}handleValidityChange(t,e,i){if(this.input!==undefined){this.input[i]=t;this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage();this.hasDisplayedError=false}}}watchDisabled(t){if(t)this.classCollection.add(xt);else this.classCollection.delete(xt)}watchMgWidth(t){bt.forEach((t=>{this.classCollection.delete(`mg-c-input--width-${t}`)}));if(t!==undefined)this.classCollection.add(`mg-c-input--width-${this.mgWidth}`)}validatePattern(t){if(t!==undefined&&!(l(this.pattern)&&l(this.patternErrorMessage))){throw new Error(`<mg-input-text> props "pattern" and "patternErrorMessage" must be non-empty string and paired. Passed value: "pattern='${r(this.pattern)}'" and "patternErrorMessage='${r(this.patternErrorMessage)}'".`)}}async setFocus(){this.input.focus()}async displayError(){this.checkValidity();this.setErrorMessage();this.hasDisplayedError=this.invalid}async setError(t,e){if(typeof t!=="boolean"){throw new Error('<mg-input-text> method "setError()" param "valid" must be a boolean.')}else if(!l(e)){throw new Error('<mg-input-text> method "setError()" param "errorMessage" must be a string.')}else{this.setValidity(t);this.setErrorMessage(t?undefined:e);this.hasDisplayedError=this.invalid}}async reset(){if(!this.readonly){this.value="";this.checkValidity();this.errorMessage=undefined;this.hasDisplayedError=false}}setValidity(t){const e=this.valid;this.valid=t;this.invalid=!this.valid;if(this.handlerInProgress===undefined||this.handlerInProgress==="blur"&&this.valid!==e)this.inputValid.emit(this.valid)}componentWillLoad(){this.messages=k(this.element).messages;this.characterLeftId=`${this.identifier}-character-left`;this.datalistId=`${this.identifier}-datalist`;this.validateIcon(this.icon);this.validateDatalistoptions(this.datalistoptions);this.validatePattern(this.pattern);this.validatePattern(this.patternErrorMessage);this.validateAppendSlot();this.watchMgWidth(this.mgWidth);this.watchReadonly(this.readonly);this.watchDisabled(this.disabled);return setTimeout((()=>{this.checkValidity()}),0)}render(){return e("mg-input",{key:"6ed4f9339354571851d415755b989824f623d62d",label:this.label,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[this.characterLeftId],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:this.required,tooltip:this.tooltip,tooltipPosition:this.readonly&&this.value===undefined?"label":this.tooltipPosition,helpText:this.helpText,errorMessage:this.errorMessage},this.readonly?this.value&&this.renderReadonly():[e("div",{key:"input",class:"mg-c-input__with-character-left",style:{"--mg-c-character-left-message-length":(!this.characterLeftHide?this.maxlength.toString().length*2+1:0).toString()}},this.icon!==undefined&&e("mg-icon",{icon:this.icon}),e("input",{type:this.type,class:"mg-c-input__box mg-c-input__box--width",value:this.value,id:this.identifier,list:this.hasDatalist()?this.datalistId:undefined,autocomplete:this.hasDatalist()?"off":undefined,name:this.name,placeholder:this.placeholder,title:this.placeholder,maxlength:this.maxlength,disabled:this.disabled,required:this.required,"aria-invalid":(this.invalid===true).toString(),pattern:this.pattern,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,ref:t=>{if(t!==null)this.input=t}}),this.hasDatalist()&&e("datalist",{id:this.datalistId},this.datalistoptions.map((t=>e("option",{value:oe(t)?t.title:t,key:t})))),!this.characterLeftHide&&this.maxlength>0&&e("mg-character-left",{identifier:this.characterLeftId,characters:this.value,maxlength:this.maxlength})),e("slot",{key:"slot",name:"append-input"})])}get element(){return n(this)}static get watchers(){return{value:["handleValue"],icon:["validateIcon"],datalistoptions:["validateDatalistoptions"],readonly:["watchReadonly","handleValidityChange"],required:["handleValidityChange"],disabled:["handleValidityChange","watchDisabled"],mgWidth:["watchMgWidth"],pattern:["validatePattern"],patternErrorMessage:["validatePattern"]}}};se.style=ae;const le=".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__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);word-break:break-word}.mg-c-input.mg-c-input--display-character-left mg-character-left{font-size:var(--mg-b-font-size-small);opacity:.6}.mg-c-input.mg-c-input--display-character-left .mg-c-input__input+.mg-c-input__help-text ::slotted(*),.mg-c-input.mg-c-input--display-character-left .mg-c-input__input+.mg-c-input__error ::slotted(*){margin-top:0}.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}}.mg-c-input__input{align-items:start}.mg-c-input__box{display:block;height:auto;resize:none}.mg-c-input__box.mg-c-input__box--resizable{resize:both}.mg-c-input__box.mg-c-input__box--resizable-horizontal{resize:horizontal}.mg-c-input__box.mg-c-input__box--resizable-vertical{resize:vertical}.mg-c-input__readonly-value{white-space:pre-line}.mg-c-input__with-character-left{flex-grow:1}.mg-c-input__with-character-left mg-character-left{display:block;text-align:end;visibility:hidden}.mg-c-input.mg-u-is-focused .mg-c-input__with-character-left mg-character-left{visibility:visible}@-moz-document url-prefix(){.mg-c-input__box{overflow-x:hidden}}";const ce=le;const he=class{constructor(e){t(this,e);this.valueChange=a(this,"value-change",7);this.inputValid=a(this,"input-valid",7);this.classFocus="mg-u-is-focused";this.classDisplayCharacterLeft="mg-c-input--display-character-left";this.hasDisplayedError=false;this.handleInput=()=>{if(this.hasDisplayedError){this.checkValidity();this.setErrorMessage()}this.value=this.input.value};this.handleFocus=()=>{this.classCollection.add(this.classFocus);this.classCollection=new s(this.classCollection.classes)};this.handleBlur=()=>{this.classCollection.delete(this.classFocus);this.classCollection=new s(this.classCollection.classes);this.handlerInProgress="blur";this.displayError().finally((()=>{this.handlerInProgress=undefined}))};this.getPatternValidity=()=>this.pattern===undefined||new RegExp(`^${this.pattern}$`,"u").test(this.value);this.checkValidity=()=>{this.setValidity(this.readonly||this.disabled||this.input.checkValidity()&&this.getPatternValidity())};this.setErrorMessage=t=>{this.errorMessage=undefined;if(!this.valid){if(t!==undefined){this.errorMessage=t}else if(!this.getPatternValidity()){this.errorMessage=this.patternErrorMessage}else if(this.input.validity.valueMissing){this.errorMessage=this.messages.errors.required}}};this.value=undefined;this.identifier=undefined;this.name=this.identifier;this.label=undefined;this.labelOnTop=undefined;this.labelHide=false;this.placeholder=undefined;this.maxlength=4e3;this.required=false;this.readonly=false;this.disabled=false;this.mgWidth="full";this.pattern=undefined;this.patternErrorMessage=undefined;this.rows=3;this.tooltip=undefined;this.tooltipPosition="input";this.characterLeftHide=false;this.helpText=undefined;this.valid=undefined;this.invalid=undefined;this.resizable="none";this.classCollection=new s(["mg-c-input--textarea"]);this.errorMessage=undefined}handleValue(t){this.checkValidity();this.valueChange.emit(t)}watchReadonly(t){if(t)this.classCollection.add(zt);else this.classCollection.delete(zt)}handleValidityChange(t,e,i){if(this.input!==undefined){this.input[i]=t;this.checkValidity();if(this.hasDisplayedError){this.setErrorMessage();this.hasDisplayedError=false}}}validateDisabled(t){if(t)this.classCollection.add(xt);else this.classCollection.delete(xt)}watchMgWidth(t){bt.forEach((t=>{this.classCollection.delete(`mg-c-input--width-${t}`)}));if(t!==undefined)this.classCollection.add(`mg-c-input--width-${this.mgWidth}`)}validatePattern(t){if(t!==undefined&&!(l(this.pattern)&&l(this.patternErrorMessage))){throw new Error(`<mg-input-textarea> props "pattern" and "patternErrorMessage" must be non-empty string and paired. Passed value: "pattern='${r(this.pattern)}'" and "patternErrorMessage='${r(this.patternErrorMessage)}'".`)}}validatecharacterLeftHide(t){if(t){this.classCollection.delete(this.classDisplayCharacterLeft)}else{this.classCollection.add(this.classDisplayCharacterLeft)}}async displayError(){this.checkValidity();this.setErrorMessage();this.hasDisplayedError=this.invalid}async setError(t,e){if(typeof t!=="boolean"){throw new Error('<mg-input-textarea> method "setError()" param "valid" must be a boolean.')}else if(!l(e)){throw new Error('<mg-input-textarea> method "setError()" param "errorMessage" must be a string.')}else{this.setValidity(t);this.setErrorMessage(t?undefined:e);this.hasDisplayedError=this.invalid}}async reset(){if(!this.readonly){this.value="";this.checkValidity();this.errorMessage=undefined;this.hasDisplayedError=false}}setValidity(t){const e=this.valid;this.valid=t;this.invalid=!this.valid;if(this.handlerInProgress===undefined||this.handlerInProgress==="blur"&&this.valid!==e)this.inputValid.emit(this.valid)}componentWillLoad(){this.messages=k(this.element).messages;this.characterLeftId=`${this.identifier}-character-left`;this.validatecharacterLeftHide(this.characterLeftHide);this.validatePattern(this.pattern);this.validatePattern(this.patternErrorMessage);this.watchMgWidth(this.mgWidth);this.watchReadonly(this.readonly);this.validateDisabled(this.disabled);return setTimeout((()=>{this.checkValidity()}),0)}render(){return e("mg-input",{key:"311c9e0b36a6373aff8e3ca666dd4af93c2c1137",label:this.label,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[this.characterLeftId],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:this.required,tooltip:this.tooltip,tooltipPosition:this.readonly&&this.value===undefined?"label":this.tooltipPosition,helpText:this.helpText,errorMessage:this.errorMessage},this.readonly?this.value&&e("b",{class:"mg-c-input__readonly-value"},this.value):e("div",{class:"mg-c-input__with-character-left"},e("textarea",{class:{"mg-c-input__box":true,"mg-c-input__box--width":true,"mg-c-input__box--resizable":this.resizable==="both","mg-c-input__box--resizable-horizontal":this.resizable==="horizontal","mg-c-input__box--resizable-vertical":this.resizable==="vertical"},value:this.value,id:this.identifier,name:this.name,placeholder:this.placeholder,title:this.placeholder,rows:this.rows,maxlength:this.maxlength,disabled:this.disabled,required:this.required,"aria-invalid":(this.invalid===true).toString(),onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,ref:t=>{if(t!==null)this.input=t}}),!this.characterLeftHide&&this.maxlength>0&&e("mg-character-left",{identifier:this.characterLeftId,characters:this.value,maxlength:this.maxlength})))}get element(){return n(this)}static get watchers(){return{value:["handleValue"],readonly:["watchReadonly","handleValidityChange"],required:["handleValidityChange"],disabled:["handleValidityChange","validateDisabled"],mgWidth:["watchMgWidth"],pattern:["validatePattern"],patternErrorMessage:["validatePattern"],characterLeftHide:["validatecharacterLeftHide"]}}};he.style=ce;const de=".mg-u-form-legacy.sc-mg-input-title{--mg-c-form-inputs-title-width:calc(100% / 3 - 20px)}.mg-u-is-asterisk.sc-mg-input-title{color:var(--mg-b-color-danger)}legend.mg-c-input-title.sc-mg-input-title{padding-right:0;padding-left:0}.mg-c-input-title__required.sc-mg-input-title{display:var(--mg-c-input-title-display, unset)}";const ge=de;const me=class{constructor(e){t(this,e);this.identifier=undefined;this.required=undefined;this.readonly=undefined;this.isLegend=false;this.tagName="label"}validateIdentifier(t){if(!l(t)){throw new Error('<mg-input-title> prop "identifier" is required.')}else if(!h(t)){console.error(`<mg-input-title> prop "identifier" value is invalid. Passed value: ${r(t)}.`)}}validateIsLegend(t){this.tagName=t?"legend":"label"}componentWillLoad(){this.validateIdentifier(this.identifier);this.validateIsLegend(this.isLegend)}render(){const t=this.readonly?"span":this.tagName;return e(t,{key:"2185a08a69a1b749c7e36d430b83079cbce131de",class:"mg-c-input-title",htmlFor:!this.isLegend&&this.identifier,id:this.isLegend?`${this.identifier}-title`:undefined},e("slot",{key:"eb7409f94e137a2dacd83fa7df27c6b2635bf660"}),this.required&&!this.readonly&&e("span",{key:"6910dd3c0d87ea94ab3c07371e5ee55b212d9342",class:"mg-c-input-title__required"}," ",e("span",{key:"45e9d38af05410888be0fc36e04d4641a41f367b",class:"mg-u-is-asterisk"},"*")))}static get watchers(){return{identifier:["validateIdentifier"],isLegend:["validateIsLegend"]}}};me.style=ge;const ue=".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);word-break:break-word}.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}}.mg-c-input__toggle-item-container{overflow:hidden;box-sizing:border-box;padding:var(--mg-b-size-4) var(--mg-b-size-8);border:0;border-radius:calc((var(--mg-b-font-size)*var(--mg-b-line-height) + 2*var(--mg-b-size-4))/var(--mg-c-input-toggle-border-radius-ratio));background-color:unset;color:var(--mg-b-color-dark);font-weight:unset;text-overflow:ellipsis;white-space:nowrap}.mg-c-input__toggle-item-container:first-of-type{background-color:color-mix(in srgb, var(--mg-b-color-app), white 80%);color:var(--mg-b-color-app);font-weight:600}.mg-c-input__button-toggle{display:flex;min-width:0;padding:var(--mg-b-size-4);border-width:var(--mg-c-input-border-width);border-style:solid;border-color:var(--mg-c-input-color-border);border-radius:calc((var(--mg-b-font-size)*var(--mg-b-line-height) + 2*(var(--mg-b-size-4) + var(--mg-b-size-4) + var(--mg-c-input-border-width)))/var(--mg-c-input-toggle-border-radius-ratio));background-color:var(--mg-b-color-light);cursor:pointer;font-family:var(--mg-b-font-family);font-size:inherit;line-height:inherit}.mg-c-input__button-toggle:disabled{cursor:default}.mg-c-input.mg-c-input--toggle .mg-c-input__input-container{min-width:0;flex:auto}.mg-c-input.mg-c-input--toggle-is-active .mg-c-input__toggle-item-container:first-of-type{background-color:unset;color:var(--mg-b-color-dark);font-weight:unset}.mg-c-input.mg-c-input--toggle-is-active .mg-c-input__toggle-item-container:last-of-type{background-color:color-mix(in srgb, var(--mg-b-color-app), white 80%);color:var(--mg-b-color-info);font-weight:600}.mg-c-input.mg-c-input--toggle-icon .mg-c-input__toggle-item-container{display:flex;width:calc(var(--mg-b-font-size)*var(--mg-b-line-height) + 2*var(--mg-b-size-4));height:calc(var(--mg-b-font-size)*var(--mg-b-line-height) + 2*var(--mg-b-size-4));align-items:center;justify-content:center;padding:0;visibility:hidden}.mg-c-input.mg-c-input--toggle-icon .mg-c-input__toggle-item-container:first-of-type{visibility:visible}.mg-c-input.mg-c-input--toggle-icon .mg-c-input__toggle-item-container ::slotted(mg-icon){display:flex}.mg-c-input.mg-c-input--toggle-icon.mg-c-input--toggle-is-active .mg-c-input__toggle-item-container:first-of-type{visibility:hidden}.mg-c-input.mg-c-input--toggle-icon.mg-c-input--toggle-is-active .mg-c-input__toggle-item-container:last-of-type{visibility:visible}.mg-c-input.mg-c-input--toggle-on-off .mg-c-input__toggle-item-container:first-of-type{background-color:var(--mg-b-color-neutral-30);color:var(--mg-b-color-dark);font-weight:600}.mg-c-input.mg-c-input--toggle-on-off.mg-c-input--toggle-is-active .mg-c-input__toggle-item-container:first-of-type{background-color:unset;color:var(--mg-b-color-dark);font-weight:unset}";const pe=ue;const ve=t=>typeof t==="object"&&typeof t.title==="string"&&t.value!==undefined;const fe=class{constructor(e){t(this,e);this.valueChange=a(this,"value-change",7);this.inputValid=a(this,"input-valid",7);this.classIsActive="mg-c-input--toggle-is-active";this.classOnOff="mg-c-input--toggle-on-off";this.classIcon="mg-c-input--toggle-icon";this.setErrorMessage=t=>{this.errorMessage=undefined;if(!this.valid&&t!==undefined){this.errorMessage=t}};this.toggleChecked=()=>{this.checked=!this.checked};this.validateSlots=()=>{const t=Array.from(this.element.children);if(t.length!==2){throw new Error("<mg-input-toggle> 2 slots are required.")}else if(!this.isIcon){t.forEach((t=>t.setAttribute("title",t.textContent)))}};this.getCheckedItem=t=>{var e;if(((e=this.options)===null||e===void 0?void 0:e.length)===2){return this.options[t?1:0]}else{return null}};this.value=undefined;this.items=undefined;this.identifier=undefined;this.name=this.identifier;this.label=undefined;this.labelOnTop=undefined;this.labelHide=false;this.isOnOff=false;this.isIcon=false;this.readonly=false;this.disabled=false;this.tooltip=undefined;this.tooltipPosition="input";this.helpText=undefined;this.classCollection=new s(["mg-c-input--toggle"]);this.options=undefined;this.errorMessage=undefined;this.valid=undefined;this.checked=false}handleValue(t){this.setChecked();this.valueChange.emit(t)}validateItems(t){if(typeof t==="object"&&this.items.length!==2){throw new Error(`<mg-input-toggle> prop "items" require 2 items. Passed value: ${r(t)}.`)}else if(x(t)){this.options=t.map((t=>({title:t,value:t})))}else if(Array.isArray(t)&&t.every(ve)){this.options=t}else{throw new Error(`<mg-input-toggle> prop "items" is required and all items must be the same type: ToggleValue. Passed value: ${r(t)}.`)}}watchIsOnOff(t){if(t)this.classCollection.add(this.classOnOff);else this.classCollection.delete(this.classOnOff)}watchIsIcon(t){if(t)this.classCollection.add(this.classIcon);else this.classCollection.delete(this.classIcon)}watchReadonly(t){if(t)this.classCollection.add(zt);else this.classCollection.delete(zt)}watchDisabled(t){if(t)this.classCollection.add(xt);else this.classCollection.delete(xt)}handleChecked(t){if(t)this.classCollection.add(this.classIsActive);else this.classCollection.delete(this.classIsActive);this.value=this.getCheckedItem(t).value}async setError(t,e){if(typeof t!=="boolean"){throw new Error('<mg-input-toggle> method "setError()" param "valid" must be a boolean.')}else if(!l(e)){throw new Error('<mg-input-toggle> method "setError()" param "errorMessage" must be a string.')}else{this.valid=t;this.inputValid.emit(t);this.setErrorMessage(t?undefined:e)}}async reset(){if(!this.readonly){this.value=this.options[0].value;this.errorMessage=undefined;this.valid=undefined;this.setChecked()}}setChecked(){const t=this.options.map((t=>t.value)).findIndex((t=>t===true));if([0,1].includes(t)){if(["","true"].includes(this.value)&&this.options.find((t=>t.value))!==undefined){this.value=true}const e=this.value===this.options[t].value;this.checked=t===0?!e:e}else{this.checked=this.value===this.options[1].value}}componentWillLoad(){this.validateItems(this.items);this.validateSlots();this.setChecked();this.watchIsIcon(this.isIcon);this.watchIsOnOff(this.isOnOff);this.watchReadonly(this.readonly);this.watchDisabled(this.disabled)}render(){const t=this.getCheckedItem(this.checked);return e("mg-input",{key:"b47ba6e093e47f8405e12744576f2098943e5fbe",label:this.label,helpText:this.helpText,identifier:this.identifier,class:this.classCollection.join(),ariaDescribedbyIDs:[],labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:undefined,tooltip:this.tooltip,tooltipPosition:this.tooltipPosition,errorMessage:this.errorMessage},this.readonly?t&&e("b",{class:"mg-c-input__readonly-value"},t.title):e("button",{type:"button",role:"switch","aria-checked":this.checked.toString(),"aria-readonly":this.disabled||this.readonly,id:this.identifier,class:"mg-c-input__button-toggle",disabled:this.disabled||this.readonly,onClick:this.toggleChecked},e("span",{"aria-hidden":"true",class:"mg-c-input__toggle-item-container"},e("slot",{name:"item-1"})),e("span",{"aria-hidden":"true",class:"mg-c-input__toggle-item-container"},e("slot",{name:"item-2"}))))}get element(){return n(this)}static get watchers(){return{value:["handleValue"],items:["validateItems"],isOnOff:["watchIsOnOff"],isIcon:["watchIsIcon"],readonly:["watchReadonly"],disabled:["watchDisabled"],checked:["handleChecked"]}}};fe.style=pe;const be=t=>t.nodeName==="MG-ITEM-MORE";const we={BASE_INDEX:"data-overflow-base-index",PROXY_INDEX:"data-overflow-proxy-index"};class _e{constructor(t,e){this.element=t;this.render=e;this.disconnect=()=>{this._resizeObserver.disconnect()};this.run=t=>{if(this._moreElement===undefined){this._moreElement=this.render();this._baseChildren=this.getInteractiveItems(this.element);if(be(this._moreElement)){this._proxyChildren=this.getInteractiveItems(this._moreElement.shadowRoot.querySelector("mg-menu"))}this._baseChildren.forEach(((t,e)=>{t.setAttribute(we.BASE_INDEX,`${e}`);this._proxyChildren[e].setAttribute(we.PROXY_INDEX,`${e}`)}))}if(t!==undefined)this.updateDisplayedItems(t)};this.getInteractiveItems=t=>{var e;return(((e=t.children)===null||e===void 0?void 0:e.length)>0?Array.from(t.children):[]).filter((t=>["MG-MENU-ITEM","MG-BUTTON"].includes(t.nodeName)))};this.updateDisplayedItems=t=>{this.restoreItems();const e={accWidth:0,previousItem:null};[...this._baseChildren,this._moreElement].forEach((i=>{e.accWidth+=i.offsetWidth;const n=e.previousItem!==null;const a=n&&e.previousItem.hasAttribute("hidden");this.toggleItem(i,a&&!this.isMoreElement(i)||this.isOverflowElement(e.accWidth,i,t)||this.isMoreElement(i)&&!a);e.previousItem=i}))};this.isOverflowElement=(t,e,i)=>{if(e.previousElementSibling===null||this.isMoreElement(e))return false;else if(!this.isMoreElement(e.nextElementSibling))return t+this._moreElement.offsetWidth>i;else return t>i};this.isMoreElement=t=>t.nodeName==="MG-ITEM-MORE";this.toggleItem=(t,e)=>{const i=Number(t.getAttribute(we.BASE_INDEX));if(this.isMoreElement(t))this.toggleElement(this._moreElement,e);else if(i>=0){this.toggleElement(t,e);this.toggleElement(this._proxyChildren[i],!e)}};this.toggleElement=(t,e)=>{if(e)t.setAttribute("hidden","");else t.removeAttribute("hidden")};this.restoreItems=()=>{[...this._baseChildren,this._moreElement].forEach((t=>t.removeAttribute("hidden")))};if(this._resizeObserver===undefined){this._resizeObserver=new ResizeObserver((t=>{t.forEach((t=>{this.run(t.contentRect.width)}))}));this._resizeObserver.observe(this.element)}this.run()}}const xe=".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:not([hidden]){display:flex}";const ze=xe;const ye=class{constructor(e){t(this,e);this.name="mg-item-more";this.setProxyElement=t=>{const e=this.moreElementMenuItem.querySelector(`[identifier="${t.identifier}"]`);if(e===null){return}if(l(e.id))e.id="";const i=()=>{this.parentMenu.querySelector(`[identifier="${e.identifier}"]`).shadowRoot.querySelector("a, button").dispatchEvent(new MouseEvent("click",{bubbles:true}))};const n=t=>{for(const i in t){if(["identifier","href","targer","status","expanded"].includes(i))t[i]?e.setAttribute(i,t[i]):e.removeAttribute(i)}e.innerHTML=t.innerHTML;setTimeout((()=>{const t=e.shadowRoot.querySelector("a, button");t===null||t===void 0?void 0:t.removeEventListener("click",i);t===null||t===void 0?void 0:t.addEventListener("click",i)}))};n(t);t.addEventListener("item-updated",(t=>{n(t.target)}));e.addEventListener("item-loaded",(()=>{n(t)}))};this.renderMgMenuItemOverflowElement=()=>{this.parentMenuItems.forEach((t=>{this.moreElementMenuItem.querySelector("mg-menu").appendChild(t.cloneNode(true));c((()=>{this.setProxyElement(t);if(t.querySelector("mg-menu")!==null){t.querySelectorAll("mg-menu-item").forEach(this.setProxyElement)}}))}));return this.element};this.icon={icon:"ellipsis-vertical"};this.slotlabel={display:false};this.size=undefined;this.parentMenu=undefined}validateIcon(t){if(typeof t!=="object"||typeof t==="object"&&typeof t.icon!=="string")throw new Error(`<${this.name}> prop "icon" must match MgItemMore['icon'] type. Passed value: ${r(t)}.`)}validateSlotLabel(t){if(typeof t!=="object"||typeof t==="object"&&typeof t.display!=="boolean")throw new Error(`<${this.name}> prop "slotlabel" must match MgItemMore['slotlabel'] type. Passed value: ${r(t)}.`);else if(typeof t.label!=="string")this.slotlabel.label=this.messages.menuLabel}validateSize(t){if(t&&!V.includes(t))throw new Error(`<${this.name}> prop "size" must match MgItemMore['size'] type. Passed value: ${r(t)}.`)}componentWillLoad(){this.messages=k(this.element).messages.itemMore;this.validateIcon(this.icon);this.validateSlotLabel(this.slotlabel);this.validateSize(this.size)}componentDidLoad(){return setTimeout((()=>{this.parentMenu=this.element.closest("mg-menu")}))}componentDidUpdate(){if(this.parentMenu&&this.overflowBehavior===undefined){this.parentMenuItems=Array.from(this.parentMenu.children).filter((t=>t.nodeName==="MG-MENU-ITEM"));this.overflowBehavior=new _e(this.parentMenu,this.renderMgMenuItemOverflowElement)}}disconnectedCallback(){var t;(t=this.overflowBehavior)===null||t===void 0?void 0:t.disconnect()}render(){return e(i,{key:"11c43154129c5756e80db0af3434c88cab2191f3",role:"listitem"},this.parentMenu&&e("mg-menu-item",{key:"38fc92410328c317fb046f4e1ec4f94175d484fb","data-overflow-more":true,"data-size":this.parentMenu.size,identifier:"mg-item-more",ref:t=>{if(t!==null){this.moreElementMenuItem=t}}},e("mg-icon",{key:"90e21f30004e38a1a0938359276dccd7458e5e86",icon:this.icon.icon,size:this.size,slot:"image"}),e("span",{key:"20f846c5718a19d39ad94abf59bab54658e1ff9c",class:{"mg-u-visually-hidden":!this.slotlabel.display},slot:"label"},this.slotlabel.label),e("mg-menu",{key:"b52f97129e736be9164ae18b717057d1bfc0cd0a",direction:C.VERTICAL,label:this.messages.menuLabel,size:this.size})))}get element(){return n(this)}static get watchers(){return{icon:["validateIcon"],slotlabel:["validateSlotLabel"],size:["validateSize"]}}};ye.style=ze;const ke=".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}}/*!\n * @prop --mg-c-menu-color-background: Defines the background color of the menu. Unset by default, fallback on `--mg-b-color-light`.\n */:host{display:flex;background-color:var(--mg-c-menu-color-background, var(--mg-b-color-light))}:host([direction=vertical]){height:100%;flex-direction:column;overflow-y:auto}";const Me=ke;const He=class{constructor(e){t(this,e);this.name="mg-menu";this.menuItems=[];this.focusedMenuItem=0;this.closeMenuItem=(t,e)=>{if(!this.isChildMenu&&e){t.expanded=false}};this.getItemMoreMenuItem=()=>{var t,e;return(e=(t=this.itemMoreElement)===null||t===void 0?void 0:t.shadowRoot)===null||e===void 0?void 0:e.querySelector("mg-menu-item")};this.setItemListener=(t,e)=>{["click","focus"].forEach((i=>{t.shadowRoot.querySelector("button,a").addEventListener(i,(()=>{this.focusedMenuItem=e;const t=this.getItemMoreMenuItem();(![null,undefined].includes(t)?[...this.menuItems,t]:this.menuItems).forEach(((t,e)=>{this.closeMenuItem(t,e!==this.focusedMenuItem)}))}))}))};this.initMenuItemsListeners=()=>{this.menuItems.forEach(((t,e)=>{this.setItemListener(t,e)}))};this.handleItemLoaded=()=>{this.setItemListener(this.getItemMoreMenuItem(),this.menuItems.length)};this.renderMgItemMore=()=>{var t;if(this.direction!==C.HORIZONTAL||this.isChildMenu||this.element.children.length<=1){return}if(this.itemMoreElement===undefined){this.itemMoreElement=document.createElement("mg-item-more");this.itemMoreElement.addEventListener("item-loaded",this.handleItemLoaded);this.element.appendChild(this.itemMoreElement)}for(const t in this.itemmore){const e=this.itemmore[t];if(["string","number"].includes(typeof e)){this.itemMoreElement.setAttribute(t,e)}else{this.itemMoreElement[t]=e}}if(((t=this.itemmore)===null||t===void 0?void 0:t.size)===undefined)this.itemMoreElement.size=this.size};this.label=undefined;this.direction=C.HORIZONTAL;this.itemmore=undefined;this.size="medium";this.isChildMenu=undefined}validateLabel(t){if(t===undefined&&!this.element.hasAttribute("aria-label")){throw new Error(`<${this.name}> prop "label" is required. Passed value: ${r(t)}.`)}}validateDirection(t){if(![C.VERTICAL,C.HORIZONTAL].includes(t)){throw new Error(`<${this.name}> prop "direction" must be one of: ${C.HORIZONTAL}, ${C.VERTICAL}. Passed value: ${r(t)}.`)}}validateItemMore(t){if(t!==undefined&&this.direction!==C.HORIZONTAL){throw new Error(`<${this.name}> prop "itemmore" must be paired with direction ${C.HORIZONTAL}.`)}else if(t!==undefined){this.renderMgItemMore()}}validateSize(t){if(!V.includes(t)){throw new Error(`<${this.name}> prop "size" must be one of: ${V.join(", ")}. Passed value: ${r(t)}.`)}}componentWillLoad(){this.validateDirection(this.direction);this.validateLabel(this.label);this.validateItemMore(this.itemmore);this.validateSize(this.size)}componentDidLoad(){return setTimeout((()=>{this.menuItems=Array.from(this.element.children).filter((t=>t.nodeName==="MG-MENU-ITEM"));this.isChildMenu=this.element.closest("mg-menu-item")!==null;this.renderMgItemMore();new MutationObserver((()=>{this.renderMgItemMore()})).observe(this.element,{childList:true})}))}componentDidRender(){this.initMenuItemsListeners()}render(){return e(i,{key:"550624e40ec66eeb90f8bc4ac1590adcbaa20dfd",role:"list","aria-label":this.label},e("slot",{key:"bf6f5ac748fd45e250c02d93cc7cf72e4580de3b"}))}get element(){return n(this)}static get watchers(){return{label:["validateLabel"],direction:["validateDirection"],itemmore:["validateItemMore"],size:["validateSize"]}}};He.style=Me;const Ce='.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}}/*!\n * @prop --mg-c-menu-item-color: Defines menu item global color, used for bottom line and active tabs. Default value: `--mg-b-color-app`.\n * @prop --mg-c-menu-item-color-text: Defines the color of the menu item. Unset by default, fallback on `--mg-b-color-dark`.\n * @prop --mg-c-menu-item-navigation-button-max-width: Defines the max-width property for the navigation button. Unset by default.\n */.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{height:var(--mg-b-size-40);padding:var(--mg-b-size-12) var(--mg-b-size-16)}.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button,.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button ::slotted([slot=label]),.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button ::slotted([slot=metadata]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium ::slotted([slot=label]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium ::slotted([slot=metadata]){font-size:var(--mg-b-font-size)}.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--horizontal,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium.mg-c-menu-item__navigation-button--horizontal{padding-bottom:var(--mg-b-size-12)}.mg-c-menu-item.mg-c-menu-item--size-medium .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--vertical,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium.mg-c-menu-item__navigation-button--vertical{padding-left:var(--mg-b-size-16)}.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{height:var(--mg-b-size-48);padding:var(--mg-b-size-12) var(--mg-b-size-32)}.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button,.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button ::slotted([slot=label]),.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button ::slotted([slot=metadata]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large ::slotted([slot=label]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large ::slotted([slot=metadata]){font-size:var(--mg-b-font-size-h4)}.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--horizontal,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large.mg-c-menu-item__navigation-button--horizontal{padding-bottom:var(--mg-b-size-12)}.mg-c-menu-item.mg-c-menu-item--size-large .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--vertical,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large.mg-c-menu-item__navigation-button--vertical{padding-left:var(--mg-b-size-32)}.mg-c-menu-item.mg-c-menu-item--size-xlarge .mg-c-menu-item__navigation-button,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge{height:var(--mg-b-size-72);padding:var(--mg-b-size-12) var(--mg-b-size-40)}.mg-c-menu-item.mg-c-menu-item--size-xlarge .mg-c-menu-item__navigation-button,.mg-c-menu-item.mg-c-menu-item--size-xlarge .mg-c-menu-item__navigation-button ::slotted([slot=label]),.mg-c-menu-item.mg-c-menu-item--size-xlarge .mg-c-menu-item__navigation-button ::slotted([slot=metadata]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge ::slotted([slot=label]),.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge ::slotted([slot=metadata]){font-size:var(--mg-b-font-size-h4)}.mg-c-menu-item.mg-c-menu-item--size-xlarge .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--horizontal,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge.mg-c-menu-item__navigation-button--horizontal{padding-bottom:var(--mg-b-size-12)}.mg-c-menu-item.mg-c-menu-item--size-xlarge .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--vertical,.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge.mg-c-menu-item__navigation-button--vertical{padding-left:var(--mg-b-size-40)}.mg-c-menu-item__navigation-button{display:flex;box-sizing:border-box;align-items:center;border:none;background-color:unset;color:var(--mg-c-menu-item-color-text, var(--mg-b-color-dark));column-gap:var(--mg-c-menu-item-navigation-button-column-gap, var(--mg-b-size-8));cursor:pointer;font-family:var(--mg-b-font-family);font-weight:400;line-height:var(--mg-b-line-height);text-decoration:none;white-space:nowrap}.mg-c-menu-item__navigation-button:disabled,.mg-c-menu-item__navigation-button--disabled{cursor:default;opacity:var(--mg-b-opacity-element-disabled)}.mg-c-menu-item__navigation-button:focus-visible{z-index:10}.mg-c-menu-item__navigation-button:hover:not(.mg-c-menu-item__navigation-button--disabled),.mg-c-menu-item__navigation-button:focus-visible:not(.mg-c-menu-item__navigation-button--disabled){background-color:color-mix(in srgb, var(--mg-c-menu-item-color), transparent 90%)}.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--active{color:var(--mg-c-menu-item-color);font-weight:600}.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--active.mg-c-menu-item__navigation-button--horizontal{box-shadow:inset 0 calc(-1*var(--mg-b-size-4)) var(--mg-c-menu-item-color)}.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--active.mg-c-menu-item__navigation-button--vertical{box-shadow:inset var(--mg-b-size-4) 0 var(--mg-c-menu-item-color)}.mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--hidden{display:none}:host([data-style-direction=vertical][data-level="1"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(1*var(--mg-b-size-16))}:host([data-level="1"]) .mg-c-menu-item__collapse-container{z-index:10}:host([data-style-direction=vertical][data-level="2"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(2*var(--mg-b-size-16))}:host([data-level="2"]) .mg-c-menu-item__collapse-container{z-index:20}:host([data-style-direction=vertical][data-level="3"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(3*var(--mg-b-size-16))}:host([data-level="3"]) .mg-c-menu-item__collapse-container{z-index:30}:host([data-style-direction=vertical][data-level="4"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(4*var(--mg-b-size-16))}:host([data-level="4"]) .mg-c-menu-item__collapse-container{z-index:40}:host([data-style-direction=vertical][data-level="5"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(5*var(--mg-b-size-16))}:host([data-level="5"]) .mg-c-menu-item__collapse-container{z-index:50}:host([data-style-direction=vertical][data-level="6"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-medium{padding-left:calc(6*var(--mg-b-size-16))}:host([data-level="6"]) .mg-c-menu-item__collapse-container{z-index:60}:host([data-style-direction=vertical][data-level="1"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(1*var(--mg-b-size-32))}:host([data-level="1"]) .mg-c-menu-item__collapse-container{z-index:10}:host([data-style-direction=vertical][data-level="2"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(2*var(--mg-b-size-32))}:host([data-level="2"]) .mg-c-menu-item__collapse-container{z-index:20}:host([data-style-direction=vertical][data-level="3"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(3*var(--mg-b-size-32))}:host([data-level="3"]) .mg-c-menu-item__collapse-container{z-index:30}:host([data-style-direction=vertical][data-level="4"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(4*var(--mg-b-size-32))}:host([data-level="4"]) .mg-c-menu-item__collapse-container{z-index:40}:host([data-style-direction=vertical][data-level="5"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(5*var(--mg-b-size-32))}:host([data-level="5"]) .mg-c-menu-item__collapse-container{z-index:50}:host([data-style-direction=vertical][data-level="6"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-large{padding-left:calc(6*var(--mg-b-size-32))}:host([data-level="6"]) .mg-c-menu-item__collapse-container{z-index:60}:host([data-style-direction=vertical][data-level="1"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge{padding-left:calc(1*var(--mg-b-size-40))}:host([data-level="1"]) .mg-c-menu-item__collapse-container{z-index:10}:host([data-style-direction=vertical][data-level="2"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge{padding-left:calc(2*var(--mg-b-size-40))}:host([data-level="2"]) .mg-c-menu-item__collapse-container{z-index:20}:host([data-style-direction=vertical][data-level="3"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge{padding-left:calc(3*var(--mg-b-size-40))}:host([data-level="3"]) .mg-c-menu-item__collapse-container{z-index:30}:host([data-style-direction=vertical][data-level="4"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge{padding-left:calc(4*var(--mg-b-size-40))}:host([data-level="4"]) .mg-c-menu-item__collapse-container{z-index:40}:host([data-style-direction=vertical][data-level="5"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge{padding-left:calc(5*var(--mg-b-size-40))}:host([data-level="5"]) .mg-c-menu-item__collapse-container{z-index:50}:host([data-style-direction=vertical][data-level="6"]) .mg-c-menu-item__navigation-button.mg-c-menu-item__navigation-button--size-xlarge{padding-left:calc(6*var(--mg-b-size-40))}:host([data-level="6"]) .mg-c-menu-item__collapse-container{z-index:60}.mg-c-menu-item{max-width:var(--mg-c-menu-item-navigation-button-max-width)}.mg-c-menu-item__collapse-container{z-index:10;width:max-content}.mg-c-menu-item__navigation-button-center{min-width:0}.mg-c-menu-item__navigation-button-text-content{display:flex;width:100%;align-items:center}.mg-c-menu-item__navigation-button-text-content-notification,.mg-c-menu-item__navigation-button-text-content ::slotted([slot=information]){margin-left:var(--mg-b-size-8);font-size:var(--mg-b-font-size)}.mg-c-menu-item__navigation-button-new-tab{margin-left:var(--mg-b-size-4)}.mg-c-menu-item__navigation-button-chevron{display:var(--mg-c-menu-item-chevron-display);margin-left:auto;transition:200ms}.mg-c-menu-item__navigation-button-chevron--rotate.mg-c-menu-item__navigation-button-chevron{transform:rotate(180deg)}:host{position:relative;display:flex;--mg-c-popover-padding-vertical:0;--mg-c-popover-padding-horizontal:0;--mg-c-popover-max-width:unset}:host([data-style-direction=vertical]){flex-direction:column}:host([data-style-direction=vertical]) .mg-c-menu-item__navigation-button{width:100%}:host([data-style-direction=vertical]) .mg-c-menu-item__collapse-container{position:unset;top:unset;left:unset;width:unset}:host([data-style-direction=vertical]) .mg-c-menu-item-chevron{margin-left:auto}:host([data-overflow-more]){--mg-c-menu-item-navigation-button-column-gap:0}:host([data-overflow-more]) .mg-c-menu-item__navigation-button-chevron{--mg-c-menu-item-chevron-display:none}:host([data-overflow-more]) .mg-c-menu-item__navigation-button-text-content ::slotted([slot=information]){margin-left:0}:host([data-overflow-more]) ::slotted(mg-menu){--mg-c-menu-item-navigation-button-column-gap:var(--mg-b-size-8)}:host([data-style-direction=horizontal]) .mg-c-menu-item__collapse-container.mg-c-menu-item__collapse-container--first-level,:host([data-overflow-more]) .mg-c-menu-item__collapse-container.mg-c-menu-item__collapse-container--first-level{background-color:var(--mg-b-color-light)}:host([data-style-direction=horizontal]) .mg-c-menu-item__collapse-container.mg-c-menu-item__collapse-container--first-level ::slotted(mg-menu),:host([data-overflow-more]) .mg-c-menu-item__collapse-container.mg-c-menu-item__collapse-container--first-level ::slotted(mg-menu){padding:var(--mg-b-size-8) 0}::slotted([slot=label]),::slotted([slot=metadata]){display:block;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}::slotted(*){display:flex;flex-direction:column}:host([status=disabled]){pointer-events:none}:host([hidden]){display:none}';const Ve=Ce;const Le=class{constructor(i){t(this,i);this.statusChange=a(this,"status-change",7);this.itemLoaded=a(this,"item-loaded",7);this.itemUpdated=a(this,"item-updated",7);this.name="mg-menu-item";this.navigationButton="mg-c-menu-item__navigation-button";this.toggleExpanded=()=>{this.expanded=!this.expanded};this.hasStatus=(t,e)=>t.status===e;this.isDirection=(t,e=this.direction)=>t===e;this.updateDisplayNotificationBadge=()=>{const t=this.element.querySelector("mg-menu");this.displayNotificationBadge=t!==null&&Array.from(t.children).some((t=>t.querySelector("mg-badge")!==null&&!t.hasAttribute("hidden")))};this.hasActiveChild=()=>{var t;return Array.from(((t=this.element.querySelector("mg-menu"))===null||t===void 0?void 0:t.children)||[]).some((t=>t.nodeName==="MG-MENU-ITEM"&&this.hasStatus(t,M.ACTIVE)&&!t.hasAttribute("hidden")))};this.validateSlot=(t=false)=>{if(Array.from(this.element.children).find((t=>t.getAttribute("slot")==="label"))===undefined)throw new Error(`<${this.name}> slot "label" is required.`);["label","metadata"].forEach((e=>{Array.from(this.element.querySelectorAll(`[slot="${e}"]`)).forEach((i=>{if(!l(i.textContent))throw new Error(`<${this.name}> slot "${e}" must have text content.`);if(t&&!i.hasAttribute("title")||!t)i.setAttribute("title",i.textContent)}))}))};this.updateStatus=(t=[])=>{if(![M.HIDDEN,M.DISABLED,...t].includes(this.status)){this.status=this.hasActiveChild()?M.ACTIVE:M.VISIBLE}};this.initListeners=()=>{var t;Array.from(((t=this.element.querySelector("mg-menu"))===null||t===void 0?void 0:t.children)||[]).forEach((t=>{if(t.nodeName==="MG-MENU-ITEM"){t.addEventListener("status-change",(()=>{this.updateStatus()}))}}))};this.getPopoverIdentifier=()=>`${this.identifier}-popover`;this.displayPopover=()=>this.isDirection(C.HORIZONTAL)&&this.hasChildren&&this.href===undefined;this.handleElementCLick=t=>{if(this.hasChildren&&!this.isInMainMenu||this.status===M.DISABLED){t.preventDefault();t.stopPropagation()}if(this.hasChildren)this.toggleExpanded()};this.handlePopoverDisplay=t=>{this.expanded=t.detail};this.renderSlot=()=>e("slot",null);this.identifier=o("mg-menu-item");this.href=undefined;this.target=undefined;this.status=M.VISIBLE;this.expanded=false;this.size="medium";this.navigationButtonClassList=new s([this.navigationButton]);this.direction=undefined;this.isInMainMenu=undefined;this.isItemMore=undefined;this.hasChildren=false;this.displayNotificationBadge=undefined}watchIdentifier(t){if(!h(t)){console.error(`<mg-menu-item> prop "identifier" value is invalid. Passed value: ${r(t)}.`)}}watchTarget(t){if(t&&!H.includes(t)){throw new Error(`<mg-link> prop "target" must be one of: ${H.join(", ")}. Passed value: ${r(t)}.`)}}validateStatus(t,e){if(e!==undefined){this.navigationButtonClassList.delete(`${this.navigationButton}--${e}`)}this.navigationButtonClassList.add(`${this.navigationButton}--${t}`);this.statusChange.emit(t)}validateExpanded(t){if(typeof t!=="boolean")throw new Error(`<${this.name}> prop "expanded" must be a boolean. Passed value: ${r(t)}.`);if(this.hasChildren){const e=Array.from(this.element.querySelectorAll(this.name));if(!t){e.forEach((t=>{t.expanded=false}))}else if(this.element.querySelector(`${this.name}[status="${M.ACTIVE}"]`)!==null){e.forEach((t=>{if(this.hasStatus(t,M.ACTIVE)){t.expanded=true}}))}}}validateSize(t,e){this.navigationButtonClassList.delete(`${this.navigationButton}--size-${e}`);this.navigationButtonClassList.add(`${this.navigationButton}--size-${t}`)}validateDirection(t){this.element.setAttribute("data-style-direction",t);this.navigationButtonClassList.add(`${this.navigationButton}--${t}`);if(this.isDirection(C.VERTICAL,t)){Array.from(this.element.querySelectorAll("mg-menu-item")).forEach((t=>{t.dataset.level=`${(Number(t.dataset.level)||1)+1}`}))}}validateHasChildren(t){if(t&&this.element.href!==undefined){throw new Error(`<${this.name}> prop "href" is unauthorizied when element is a parent.`)}}updatePopoverGuard(){if(this.displayPopover())Array.from(this.element.children).filter((t=>!t.hasAttribute("slot")&&t.nodeName!=="MG-MENU"&&Boolean(t.dataset))).forEach((t=>t.dataset.mgPopoverGuard=this.getPopoverIdentifier()))}componentWillLoad(){this.hasChildren=Array.from(this.element.children).some((t=>!["image","information","label","metadata"].includes(t.getAttribute("slot"))));this.messages=k(this.element).messages.menuItem;this.isItemMore=this.element.dataset.overflowMore!==undefined;this.validateStatus(this.status);this.validateExpanded(this.expanded);this.watchTarget(this.target);this.watchIdentifier(this.identifier);this.validateSize(this.size)}componentDidLoad(){this.validateSlot(true);return setTimeout((()=>{const t=this.element.closest("mg-menu");this.direction=this.isItemMore||t===null?C.HORIZONTAL:t.direction;this.isInMainMenu=t!==null&&this.element.parentElement.closest("mg-menu-item")===null;if((t===null||t===void 0?void 0:t.size)!==undefined)this.size=t.size;if(this.isItemMore)this.size=this.element.dataset.size;if(this.hasActiveChild()&&this.isInMainMenu)this.expanded=this.isDirection(C.VERTICAL);this.updateStatus([M.ACTIVE]);this.updateDisplayNotificationBadge();this.updatePopoverGuard();this.initListeners();this.itemLoaded.emit();new MutationObserver((t=>{if(t.some((t=>t.attributeName==="hidden")))this.updateStatus(this.hasChildren?undefined:[M.ACTIVE]);if(t.some((t=>t.type==="characterData")))this.validateSlot();this.updateDisplayNotificationBadge();this.itemUpdated.emit()})).observe(this.element,{attributes:true,childList:true,characterData:true,subtree:true})}),0)}renderInteractiveElement(){const t=this.href!==undefined?"a":"button";return e(t,{href:this.href,class:this.navigationButtonClassList.join(),tabindex:[M.DISABLED,M.HIDDEN].includes(this.status)?-1:undefined,disabled:this.status===M.DISABLED,hidden:this.status===M.HIDDEN,target:this.href!==undefined&&this.target!==undefined?this.target:undefined,"aria-expanded":this.hasChildren&&this.expanded.toString(),"aria-current":this.status===M.ACTIVE&&"page",onClick:this.handleElementCLick},e("slot",{name:"image"}),e("div",{class:`${this.navigationButton}-center`},e("div",{class:`${this.navigationButton}-text-content`},e("slot",{name:"label"}),!this.displayNotificationBadge&&e("slot",{name:"information"}),this.displayNotificationBadge&&e("span",{class:`${this.navigationButton}-text-content-notification`},e("mg-badge",{label:this.messages.badgeLabel,value:"!",variant:"text-color",slot:"information"})),this.target==="_blank"&&[e("mg-icon",{key:"icon-new-tab",class:`${this.navigationButton}-new-tab`,icon:"arrow-up-right-square"}),e("span",{key:"a11y-new-tab",class:"mg-u-visually-hidden"},this.messages.openNewTab)]),this.size!=="medium"&&e("slot",{name:"metadata"})),this.hasChildren&&this.href===undefined&&e("span",{class:{[`${this.navigationButton}-chevron`]:true,[`${this.navigationButton}-chevron--rotate`]:this.expanded===true}},e("mg-icon",{icon:"chevron-down"})))}componentShouldUpdate(){return c((()=>{this.itemUpdated.emit()}))}render(){const t=()=>({["mg-c-menu-item__collapse-container"]:true,["mg-c-menu-item__collapse-container--first-level"]:(this.isInMainMenu||this.isItemMore)&&this.isDirection(C.HORIZONTAL)});return e(i,{key:"0705617f39133b4da491c150f4984cc57cafe085",role:this.isItemMore?"presentation":"listitem"},this.displayPopover()?e("mg-popover",{display:this.expanded,placement:"bottom-start",arrowHide:true,"onDisplay-change":this.handlePopoverDisplay,identifier:this.getPopoverIdentifier(),"data-fallback-placement":"bottom-end"},this.renderInteractiveElement(),e("div",{class:t(),slot:"content"},this.renderSlot())):[this.renderInteractiveElement(),e("div",{key:"vertical-container",class:t(),hidden:!this.expanded},this.renderSlot())])}get element(){return n(this)}static get watchers(){return{identifier:["watchIdentifier"],target:["watchTarget"],status:["validateStatus"],expanded:["validateExpanded"],size:["validateSize"],direction:["validateDirection"],hasChildren:["validateHasChildren"]}}};Le.style=Ve;const Be=["info","warning","success","danger"];const De=["bar-left","background"];const $e="/*!\n * @prop --mg-c-message-border-radius: Defines the border radius of the message. Default value: `--mg-b-size-radius`.\n */:host{--mg-c-card-spacing:0;--mg-c-card-border-radius:var(--mg-c-message-border-radius);--mg-c-card-border:none;--mg-c-card-overflow:hidden}.mg-c-message{display:inline-block;min-height:var(--mg-b-size-min-height)}.mg-c-message.mg-c-message--danger .mg-c-message__icon{color:var(--mg-b-color-danger)}.mg-c-message.mg-c-message--danger.mg-c-message--bar-left .mg-c-message__bar{background-color:var(--mg-b-color-danger)}.mg-c-message.mg-c-message--danger.mg-c-message--background{--mg-c-card-color-background:var(--mg-b-color-red-20, color-mix(in srgb, var(--mg-b-color-danger), white 80%))}.mg-c-message.mg-c-message--info .mg-c-message__icon{color:var(--mg-b-color-info)}.mg-c-message.mg-c-message--info.mg-c-message--bar-left .mg-c-message__bar{background-color:var(--mg-b-color-info)}.mg-c-message.mg-c-message--info.mg-c-message--background{--mg-c-card-color-background:var(--mg-b-color-blue-20, color-mix(in srgb, var(--mg-b-color-info), white 80%))}.mg-c-message.mg-c-message--success .mg-c-message__icon{color:var(--mg-b-color-success)}.mg-c-message.mg-c-message--success.mg-c-message--bar-left .mg-c-message__bar{background-color:var(--mg-b-color-success)}.mg-c-message.mg-c-message--success.mg-c-message--background{--mg-c-card-color-background:var(--mg-b-color-green-20, color-mix(in srgb, var(--mg-b-color-success), white 80%))}.mg-c-message.mg-c-message--warning .mg-c-message__icon{color:var(--mg-b-color-warning)}.mg-c-message.mg-c-message--warning.mg-c-message--bar-left .mg-c-message__bar{background-color:var(--mg-b-color-warning)}.mg-c-message.mg-c-message--warning.mg-c-message--background{--mg-c-card-color-background:var(--mg-b-color-yellow-20, color-mix(in srgb, var(--mg-b-color-warning), white 80%))}.mg-c-message ::slotted(*){padding:0;margin:0}.mg-c-message__icon{position:absolute;top:calc((var(--mg-b-size-min-height) - var(--mg-b-size-16))/2);left:calc(var(--mg-b-size-4) + var(--mg-b-size-8));line-height:1}.mg-c-message__content{display:flex;flex-wrap:wrap;padding:0 var(--mg-b-size-8) 0 calc(var(--mg-b-size-4) + var(--mg-b-size-8) + var(--mg-b-size-16) + var(--mg-b-size-8));place-content:stretch flex-end}.mg-c-message__content-slot{flex-grow:1;margin:var(--mg-b-size-8) 0}.mg-c-message__content-separator{display:inline-block;width:var(--mg-b-size-40);height:0}.mg-c-message__content-actions-slot{padding:var(--mg-b-size-8) 0;text-align:right}.mg-c-message__bar{position:absolute;top:0;left:0;width:var(--mg-b-size-4);height:100%}.mg-c-message ::slotted(*){--mg-c-card-border:var(--mg-c-card-border-default);--mg-c-card-spacing:var(--mg-c-card-spacing-default);--mg-c-card-border-radius:var(--mg-c-card-border-radius-default);--mg-c-card-color-background:var(--mg-c-card-color-background-default);--mg-c-card-box-shadow:var(--mg-c-card-box-shadow-default);--mg-c-card-max-width:unset;--mg-c-card-min-width:unset}.mg-c-message,.mg-c-message mg-message{max-width:100%}";const Ee=$e;const Ae=class{constructor(e){t(this,e);this.classBase="mg-c-message";this.getIcon=()=>{switch(this.variant){case"info":return"info-circle";case"warning":return"exclamation-triangle";case"success":return"check-circle";case"danger":return"exclamation-circle"}};this.variant="info";this.variantStyle="bar-left";this.classCollection=new s(["mg-c-message"]);this.hasActions=false}watchVariant(t,e){if(!Be.includes(t)){throw new Error(`<mg-message> prop "variant" must be one of: ${Be.join(", ")}. Passed value: ${r(t)}.`)}else{if(t!==undefined)this.classCollection.add(`${this.classBase}--${t}`);if(e!==undefined)this.classCollection.delete(`${this.classBase}--${e}`)}}watchVariantStyle(t,e){if(!De.includes(t)){throw new Error(`<mg-message> prop "variantStyle" must be one of: ${De.join(", ")}. Passed value: ${r(t)}.`)}else{if(t!==undefined)this.classCollection.add(`${this.classBase}--${t}`);if(e!==undefined)this.classCollection.delete(`${this.classBase}--${e}`)}}componentWillLoad(){this.watchVariant(this.variant);this.watchVariantStyle(this.variantStyle);this.hasActions=this.element.querySelector('[slot="actions"]')!==null}render(){return e("div",{key:"9ce1d7b25bf12d974a7b0b296d9d71b9b2c984e1",class:this.classCollection.join()},e("mg-card",{key:"7c7c1d5891d988adc7c5090b02d809aab32565f8"},this.variantStyle==="bar-left"&&e("span",{key:"d6c291fcf93ab6e84ba0288a1a0c4ec405b57e78",class:"mg-c-message__bar"}),e("span",{key:"afc3dcf95dbf4ee96ca1041c54c0d4c37d435601",class:"mg-c-message__icon"},e("mg-icon",{key:"d9b79cb3be22fedee6a04cf43c72641202cc80f7",icon:this.getIcon()})),e("div",{key:"f70d488459d28a464a3714b122b7a708c3562741",class:"mg-c-message__content"},e("span",{key:"d24b0ed1c326cb04bc7944f0c4f1fe19efa3fc9c",class:"mg-c-message__content-slot"},e("slot",{key:"bb491533bc09600c04699d561c7af608ee1567e5"})),this.hasActions&&[e("span",{class:"mg-c-message__content-separator",key:"content-separator"}),e("span",{class:"mg-c-message__content-actions-slot",key:"content-actions-slot"},e("slot",{key:"43547919e1ec8b34f23ea1ad5e75d5b0da23c831",name:"actions"}))])))}get element(){return n(this)}static get watchers(){return{variant:["watchVariant"],variantStyle:["watchVariantStyle"]}}};Ae.style=Ee;const qe=["dialog","alertdialog"];const Ie="/*!\n * @prop --mg-c-modal-border-radius: Defines the border radius of the modal. Default value: `--mg-b-size-radius`.\n * @prop --mg-c-modal-title-font-size: Defines the font size of the modal title. Default value: `--mg-b-font-size-h3`.\n */:host{--mg-c-card-border-radius:var(--mg-c-modal-border-radius);--mg-c-card-spacing:var(--mg-b-size-16) var(--mg-b-size-24);--mg-c-card-border:none}.mg-c-modal{border:none;background:none}.mg-c-modal[open]{display:flex;padding:var(--mg-b-size-24) var(--mg-b-size-8)}.mg-c-modal::backdrop{background-color:var(--mg-b-color-light);opacity:.85}.mg-c-modal mg-card{display:flex;width:calc(75*var(--mg-b-size-8));max-width:100%;max-height:100%}.mg-c-modal__dialog{position:relative;display:flex;height:fit-content;max-height:100%;flex-direction:column;align-self:center;row-gap:var(--mg-b-size-24)}.mg-c-modal__title{margin:0;font-family:var(--mg-b-font-family-heading);font-size:var(--mg-c-modal-title-font-size);font-weight:600}.mg-c-modal__close-button{height:var(--mg-c-modal-title-font-size);margin-top:calc((var(--mg-b-size-min-height) - var(--mg-c-modal-title-font-size)*var(--mg-b-line-height))/2*-1);margin-right:calc((var(--mg-b-size-min-height) - var(--mg-b-size-16))/2*-1);margin-left:var(--mg-b-size-16);float:right}.mg-c-modal__content{padding:var(--mg-b-size-16);margin:calc(var(--mg-b-size-16)*-1);overflow-y:auto}.mg-c-modal ::slotted(*){--mg-c-card-border:var(--mg-c-card-border-default);--mg-c-card-spacing:var(--mg-c-card-spacing-default);--mg-c-card-border-radius:var(--mg-c-card-border-radius-default);--mg-c-card-color-background:var(--mg-c-card-color-background-default);--mg-c-card-box-shadow:var(--mg-c-card-box-shadow-default);--mg-c-card-max-width:unset;--mg-c-card-min-width:unset}";const Te=Ie;const Pe=class{constructor(e){t(this,e);this.componentShow=a(this,"component-show",7);this.componentHide=a(this,"component-hide",7);this.componentClose=a(this,"component-close",7);this.titleId="";this.handleClose=()=>{this.open=false;this.componentClose.emit()};this.identifier=o("mg-modal");this.dialogRole=qe[0];this.modalTitle=undefined;this.closeButton=false;this.open=false;this.hasActions=false;this.classCollection=new s(["mg-c-modal"])}watchIdentifier(t){if(!h(t)){throw new Error(`<mg-modal> prop "identifier" value is invalid. Passed value: ${r(t)}.`)}}validateDialogRole(t){if(!qe.includes(t))throw new Error(`<mg-modal> prop "dialogRole" must be one of: ${qe.join(", ")}. Passed value: ${r(t)}.`)}validateModalTitle(t){if(!l(t)){throw new Error(`<mg-modal> prop "modalTitle" is required. Passed value: ${r(t)}.`)}}watchOpen(t){if(t){this.dialog.showModal();this.componentShow.emit();document.body.style.overflow="hidden"}else{this.dialog.close();this.componentHide.emit();document.body.style.overflow=this.bodyOverflow}}componentWillLoad(){this.bodyOverflow=document.body.style.overflow;this.messages=k(this.element).messages;this.hasActions=this.element.querySelector('[slot="actions"]')!==null;this.titleId=`${this.identifier}-title`;this.watchIdentifier(this.identifier);this.validateModalTitle(this.modalTitle);this.validateDialogRole(this.dialogRole)}componentDidLoad(){this.watchOpen(this.open);this.dialog.addEventListener("close",(()=>{this.open=false;this.componentClose.emit()}))}render(){return e("dialog",{key:"e4091c6fa70e4b7bccd24db2212e0d2b94ae3099",role:this.dialogRole,id:this.identifier,class:this.classCollection.join(),"aria-labelledby":this.titleId,ref:t=>{if(t!==null){this.dialog=t}}},e("mg-card",{key:"d674065eb361fbae99545e79840ee13779dff236"},e("div",{key:"f3c7464c97710c9b58db1e4ad5b3c80c43de5493",class:"mg-c-modal__dialog"},e("header",{key:"b6f714cdaf553e26ab1a8212608a50949cfc0395",class:"mg-c-modal__header"},this.closeButton&&e("span",{key:"95310b0c375e412da21487ae68cb3437afdf7537",class:"mg-c-modal__close-button"},e("mg-button",{key:"29303f06b8db367aaa372196996b2ab074d799f2","is-icon":true,variant:"flat",label:this.messages.modal.closeButton,onClick:this.handleClose},e("mg-icon",{key:"153eb9f3039422b5e9c554a7878ebc9678b2a997",icon:"cross"}))),e("h1",{key:"fae980d224a9947ac11ae6d7ddddcc7591ba695f",class:"mg-c-modal__title",id:this.titleId},this.modalTitle)),e("article",{key:"e5efb0df7f7726f454d7f4347c8f5cee7bac1f00",class:"mg-c-modal__content"},e("slot",{key:"38eeb27cf83588402e6ebc0d674e3967c45576ea"})),this.hasActions&&e("footer",{key:"c50c3bde92a3e6fae3a047ad7803a8f80f277eeb",class:"mg-c-modal__footer"},e("slot",{key:"777984d09b3df311a2f6e30dda664dfe0771bfd4",name:"actions"})))))}get element(){return n(this)}static get watchers(){return{identifier:["watchIdentifier"],dialogRole:["validateDialogRole"],modalTitle:["validateModalTitle"],open:["watchOpen"]}}};Pe.style=Te;const Oe={NEXT:"next",PREVIOUS:"previous"};const je=".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}}.mg-c-pagination{display:flex;align-items:center;gap:var(--mg-b-spacing-actions)}.mg-c-pagination__page-count{display:flex;align-items:center;gap:var(--mg-b-size-4)}.mg-c-pagination.mg-c-pagination--hide-page-count{gap:0}";const Se=je;const We=(t,e,i=1)=>Array.from(Array(Math.ceil((e+1-t)/i)).keys()).map((e=>t+e*i));const Re=class{constructor(e){t(this,e);this.currentPageChange=a(this,"current-page-change",7);this.goToPage=t=>{this.currentPage=t};this.handleSelect=t=>{const e=Number(t.target.value);this.goToPage(e>0?e:1)};this.handleGoToPage=(t,e)=>{!e&&this.goToPage(t===Oe.NEXT?this.currentPage+1:this.currentPage-1)};this.identifier=o("mg-pagination");this.label=undefined;this.hideNavigationLabels=undefined;this.hidePageCount=undefined;this.totalPages=1;this.currentPage=1}watchIdentifier(t){if(!h(t)){console.error(`<mg-pagination> prop "identifier" value is invalid. Passed value: ${r(t)}.`)}}validateTotalPages(t){if(t<1){throw new Error(`<mg-pagination> prop "totalPages" must be greater than 0. Passed value: ${r(t)}.`)}}validateCurrentPage(t){if(t<1){throw new Error(`<mg-pagination> prop "currentPage" must be greater than 0. Passed value: ${r(t)}.`)}else if(t>this.totalPages){throw new Error('<mg-pagination> prop "currentPage" can not be greater than total page.')}this.currentPageChange.emit(t)}componentWillLoad(){this.messages=k(this.element).messages;this.watchIdentifier(this.identifier);this.validateTotalPages(this.totalPages);this.validateCurrentPage(this.currentPage);if(this.label===undefined||this.label===""){this.label=this.messages.pagination.label}}render(){const t=(t,i)=>e("mg-button",{key:"271af13e1b68e4fd00f46e99466d3fb7656b7892",label:this.messages.pagination[`${i}Page`],onClick:()=>this.handleGoToPage(i,t),disabled:t,variant:"flat",isIcon:this.hideNavigationLabels},i===Oe.PREVIOUS&&e("mg-icon",{key:"fea9b12c882c49824eef9216dc1e934f5dc8ddab",icon:"chevron-left"}),!this.hideNavigationLabels&&this.messages.general[i],i===Oe.NEXT&&e("mg-icon",{key:"c91f74667fbd297b1884b5406f3fe14604e943ce",icon:"chevron-right"}));return e(i,{key:"d3c8eb93a223c62239ea6e93f9848da697c93171",hidden:this.totalPages<2},e("nav",{key:"91607b9155cd2194583b7548ae058cafbc495339",role:"navigation","aria-label":this.label,id:this.identifier,class:{"mg-c-pagination":true,"mg-c-pagination--hide-page-count":this.hidePageCount}},t(this.currentPage<=1,Oe.PREVIOUS),!this.hidePageCount&&e("div",{key:"2065b5f99eddc5e44e13dc1f03913003dcca44da",class:"mg-c-pagination__page-count"},e("mg-input-select",{key:"405ff290c7ce715bdbc657e1a83aef1444e64cbe",identifier:`${this.identifier}-select`,items:We(1,this.totalPages).map((t=>t.toString())),label:this.messages.pagination.selectPage,"label-hide":true,"on-value-change":this.handleSelect,value:this.currentPage.toString(),"placeholder-hide":true}),e("span",{key:"6daf535469f5672858d7ae63991ee4cb1f03e04a",class:"mg-u-visually-hidden"},this.messages.pagination.page," ",this.currentPage),"/ ",this.totalPages," ",this.totalPages>1?this.messages.pagination.pages:this.messages.pagination.page),t(this.currentPage>=this.totalPages,Oe.NEXT)))}get element(){return n(this)}static get watchers(){return{identifier:["watchIdentifier"],totalPages:["validateTotalPages"],currentPage:["validateCurrentPage"]}}};Re.style=Se;const Ue=["text","icon"];const Ne=["left","right"];const Ge="/*!\n * @prop --mg-c-panel-border-radius: Defines the border radius of the panel. Default value: `--mg-b-size-radius`.\n * @prop --mg-c-panel-color-background: Defines the background of the panel. Default value: `color-mix(in srgb, var(--mg-b-color-info), white 97%)`.\n * @prop --mg-c-panel-box-shadow: Defines the box shadow of the panel. Default value: `--mg-b-box-shadow`.\n * @prop --mg-c-panel-content-spacing: Defines the padding of the panel content. Default value: `--mg-b-size-16`.\n */:host{--mg-c-card-border:none;--mg-c-card-spacing:0;--mg-c-card-border-radius:var(--mg-c-panel-border-radius);--mg-c-card-color-background:var(--mg-c-panel-color-background);--mg-c-card-box-shadow:var(--mg-c-panel-box-shadow)}.mg-c-panel__header{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;padding:0 var(--mg-b-size-4)}.mg-c-panel__header-title,.mg-c-panel__header-content{display:flex;margin:var(--mg-b-size-4) 0}.mg-c-panel__header-content{min-height:var(--mg-b-size-min-height);flex:1 auto;align-items:center;padding-left:var(--mg-b-size-4)}.mg-c-panel__header-title mg-input-text{flex-grow:1;margin-left:var(--mg-b-size-4)}.mg-c-panel__header-title mg-button+mg-button:not([slot=append-input]){margin-left:var(--mg-b-size-4)}.mg-c-panel__header-title.mg-c-panel__header-title--full{flex:1 1 auto}.mg-c-panel__collapse-button-content{--mg-b-font-size:var(--mg-b-font-size-h5);--mg-c-button-font-weight:600}.mg-c-panel__collapse-button-icon.mg-c-panel__collapse-button-icon--reverse{transform:rotate(180deg)}.mg-c-panel__content{padding:var(--mg-c-panel-content-spacing)}.mg-c-panel ::slotted([slot=header-right]){display:flex;flex-wrap:wrap;margin-left:auto;gap:var(--mg-b-spacing-actions)}.mg-c-panel ::slotted(*){--mg-c-card-border:var(--mg-c-card-border-default);--mg-c-card-spacing:var(--mg-c-card-spacing-default);--mg-c-card-border-radius:var(--mg-c-card-border-radius-default);--mg-c-card-color-background:var(--mg-c-card-color-background-default);--mg-c-card-box-shadow:var(--mg-c-card-box-shadow-default);--mg-c-card-max-width:unset;--mg-c-card-min-width:unset}";const Fe=Ge;const Ke=class{constructor(i){t(this,i);this.titleChange=a(this,"title-change",7);this.expandedChange=a(this,"expanded-change",7);this.toggleIsEditing=()=>{this.isEditing=!this.isEditing};this.handleCollapseButton=()=>{if(!this.expandToggleDisabled)this.expanded=!this.expanded};this.handleEditButton=()=>{this.toggleIsEditing()};this.handleUpdateTitle=t=>{this.updatedPanelTitle=t.detail};this.handleCancelEditButton=()=>{this.updatedPanelTitle=undefined;this.toggleIsEditing()};this.handleValidateEditButton=()=>{if(!this.editInputElement.valid)return;if(this.updatedPanelTitle!==undefined)this.panelTitle=this.updatedPanelTitle;this.toggleIsEditing()};this.renderCollapseButton=()=>e("mg-button",{onClick:this.handleCollapseButton,variant:"flat","aria-expanded":this.expanded.toString(),"aria-controls":`${this.identifier}-content`,disabled:this.expandToggleDisabled,isIcon:this.expandToggleDisplay==="icon",label:this.panelTitle},e("span",{class:"mg-c-panel__collapse-button-content"},e("mg-icon",{icon:"chevron-up",class:{"mg-c-panel__collapse-button-icon":true,"mg-c-panel__collapse-button-icon--reverse":!this.expanded}}),!this.isEditing&&this.expandToggleDisplay!=="icon"&&this.panelTitle));this.renderEditButton=()=>e("mg-button",{key:"edit-button","is-icon":true,variant:"flat",label:this.messages.panel.editLabel,onClick:this.handleEditButton},e("mg-icon",{icon:"pen"}));this.renderEditInput=()=>e("mg-input-text",{key:"edition-input",label:this.messages.panel.editLabel,"label-hide":true,value:this.panelTitle,"onValue-change":this.handleUpdateTitle,characterLeftHide:true,pattern:this.titlePattern,"pattern-error-message":this.titlePatternErrorMessage,identifier:`${this.identifier}-edition-input`,ref:t=>this.editInputElement=t},e("mg-button",{slot:"append-input",label:this.messages.general.cancel,"is-icon":true,variant:"secondary",onClick:this.handleCancelEditButton},e("mg-icon",{icon:"cross"})),e("mg-button",{slot:"append-input",label:this.messages.general.confirm,"is-icon":true,variant:"secondary",onClick:this.handleValidateEditButton},e("mg-icon",{icon:"check"})));this.renderTitle=()=>{const t=[this.renderCollapseButton()];if(this.titleEditable){if(!this.isEditing)t.push(this.renderEditButton());else t.push(this.renderEditInput())}return this.titlePosition==="right"?t.reverse():t};this.renderHeaderChildren=()=>{const t=[e("div",{class:{"mg-c-panel__header-title":true,"mg-c-panel__header-title--full":this.isEditing,"mg-c-panel__header-title--reverse":this.titlePosition==="right"},key:this.panelTitle},this.renderTitle()),e("div",{class:"mg-c-panel__header-content",key:"slot-header"},e("slot",{name:"header-right"}))];return this.titlePosition==="right"?t.reverse():t};this.identifier=o("mg-panel");this.panelTitle=undefined;this.titlePattern=undefined;this.titlePatternErrorMessage=undefined;this.titleEditable=false;this.titlePosition=Ne[0];this.expanded=false;this.expandToggleDisplay=Ue[0];this.expandToggleDisabled=undefined;this.classCollection=new s(["mg-c-panel"]);this.isEditing=false;this.updatedPanelTitle=undefined}watchIdentifier(t){if(!h(t)){console.error(`<mg-panel> prop "identifier" value is invalid. Passed value: ${r(t)}.`)}}validatePanelTitle(t){if(!l(t))throw new Error(`<mg-panel> prop "panelTitle" is required and must be a string. Passed value: ${r(t)}.`);this.titleChange.emit(t)}validateTitlePattern(t){if(t!==undefined&&!this.titleEditable)throw new Error(`<mg-panel> prop "titleEditable" must be set to "true".`)}validateTitlePosition(t){if(!Ne.includes(t))throw new Error(`<mg-panel> prop "titlePosition" must be one of: ${Ne.join(", ")}. Passed value: ${r(t)}.`)}handleExpanded(t){this.expandedChange.emit(t)}validateExpandToggleDisplay(t){if(!Ue.includes(t))throw new Error(`<mg-panel> prop "expandToggleDisplay" must be one of: ${Ue.join(", ")}. Passed value: ${r(t)}.`);if(t==="icon"&&this.titleEditable)this.titleEditable=false}componentWillLoad(){this.messages=k(this.element).messages;this.watchIdentifier(this.identifier);this.validateTitlePattern(this.titlePattern);this.validateTitlePattern(this.titlePatternErrorMessage);this.validatePanelTitle(this.panelTitle);this.validateExpandToggleDisplay(this.expandToggleDisplay);this.validateTitlePosition(this.titlePosition)}componentDidRender(){if(this.isEditing)this.editInputElement.setFocus()}render(){const t=`${this.identifier}-header`;return e("section",{key:"22da4ba224a53f828c659fe8cddf23b911051ca3",class:this.classCollection.join(),id:this.identifier},e("mg-card",{key:"1180c7e9e7d4e4601205abfa30a592bf93e88cf1"},e("header",{key:"db9489a40dceebfd7fed16be67faabf0dfee67bc",class:{"mg-c-panel__header":true,"mg-c-panel__header--reverse":this.titlePosition==="right"},id:t},this.renderHeaderChildren()),e("article",{key:"f25761138798e3965e9310da0e0cc90b1ac0cfe5",class:"mg-c-panel__content",id:`${this.identifier}-content`,"aria-labelledby":t,hidden:!this.expanded},e("slot",{key:"0c0aa51490734813a5a04e5aec40149c87766e5a"}))))}get element(){return n(this)}static get watchers(){return{identifier:["watchIdentifier"],panelTitle:["validatePanelTitle"],titlePattern:["validateTitlePattern"],titlePatternErrorMessage:["validateTitlePattern"],titlePosition:["validateTitlePosition"],expanded:["handleExpanded"],expandToggleDisplay:["validateExpandToggleDisplay"]}}};Ke.style=Fe;var Ye="top";var Je="bottom";var Xe="right";var Ze="left";var Qe="auto";var ti=[Ye,Je,Xe,Ze];var ei="start";var ii="end";var ni="clippingParents";var ai="viewport";var oi="popper";var ri="reference";var si=ti.reduce((function(t,e){return t.concat([e+"-"+ei,e+"-"+ii])}),[]);var li=[].concat(ti,[Qe]).reduce((function(t,e){return t.concat([e,e+"-"+ei,e+"-"+ii])}),[]);var ci="beforeRead";var hi="read";var di="afterRead";var gi="beforeMain";var mi="main";var ui="afterMain";var pi="beforeWrite";var vi="write";var fi="afterWrite";var bi=[ci,hi,di,gi,mi,ui,pi,vi,fi];function wi(t){return t?(t.nodeName||"").toLowerCase():null}function _i(t){if(t==null){return window}if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e?e.defaultView||window:window}return t}function xi(t){var e=_i(t).Element;return t instanceof e||t instanceof Element}function zi(t){var e=_i(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function yi(t){if(typeof ShadowRoot==="undefined"){return false}var e=_i(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function ki(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{};var n=e.attributes[t]||{};var a=e.elements[t];if(!zi(a)||!wi(a)){return}Object.assign(a.style,i);Object.keys(n).forEach((function(t){var e=n[t];if(e===false){a.removeAttribute(t)}else{a.setAttribute(t,e===true?"":e)}}))}))}function Mi(t){var e=t.state;var i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,i.popper);e.styles=i;if(e.elements.arrow){Object.assign(e.elements.arrow.style,i.arrow)}return function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t];var a=e.attributes[t]||{};var o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]);var r=o.reduce((function(t,e){t[e]="";return t}),{});if(!zi(n)||!wi(n)){return}Object.assign(n.style,r);Object.keys(a).forEach((function(t){n.removeAttribute(t)}))}))}}const Hi={name:"applyStyles",enabled:true,phase:"write",fn:ki,effect:Mi,requires:["computeStyles"]};function Ci(t){return t.split("-")[0]}var Vi=Math.max;var Li=Math.min;var Bi=Math.round;function Di(){var t=navigator.userAgentData;if(t!=null&&t.brands&&Array.isArray(t.brands)){return t.brands.map((function(t){return t.brand+"/"+t.version})).join(" ")}return navigator.userAgent}function $i(){return!/^((?!chrome|android).)*safari/i.test(Di())}function Ei(t,e,i){if(e===void 0){e=false}if(i===void 0){i=false}var n=t.getBoundingClientRect();var a=1;var o=1;if(e&&zi(t)){a=t.offsetWidth>0?Bi(n.width)/t.offsetWidth||1:1;o=t.offsetHeight>0?Bi(n.height)/t.offsetHeight||1:1}var r=xi(t)?_i(t):window,s=r.visualViewport;var l=!$i()&&i;var c=(n.left+(l&&s?s.offsetLeft:0))/a;var h=(n.top+(l&&s?s.offsetTop:0))/o;var d=n.width/a;var g=n.height/o;return{width:d,height:g,top:h,right:c+d,bottom:h+g,left:c,x:c,y:h}}function Ai(t){var e=Ei(t);var i=t.offsetWidth;var n=t.offsetHeight;if(Math.abs(e.width-i)<=1){i=e.width}if(Math.abs(e.height-n)<=1){n=e.height}return{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function qi(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e)){return true}else if(i&&yi(i)){var n=e;do{if(n&&t.isSameNode(n)){return true}n=n.parentNode||n.host}while(n)}return false}function Ii(t){return _i(t).getComputedStyle(t)}function Ti(t){return["table","td","th"].indexOf(wi(t))>=0}function Pi(t){return((xi(t)?t.ownerDocument:t.document)||window.document).documentElement}function Oi(t){if(wi(t)==="html"){return t}return t.assignedSlot||t.parentNode||(yi(t)?t.host:null)||Pi(t)}function ji(t){if(!zi(t)||Ii(t).position==="fixed"){return null}return t.offsetParent}function Si(t){var e=/firefox/i.test(Di());var i=/Trident/i.test(Di());if(i&&zi(t)){var n=Ii(t);if(n.position==="fixed"){return null}}var a=Oi(t);if(yi(a)){a=a.host}while(zi(a)&&["html","body"].indexOf(wi(a))<0){var o=Ii(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none"){return a}else{a=a.parentNode}}return null}function Wi(t){var e=_i(t);var i=ji(t);while(i&&Ti(i)&&Ii(i).position==="static"){i=ji(i)}if(i&&(wi(i)==="html"||wi(i)==="body"&&Ii(i).position==="static")){return e}return i||Si(t)||e}function Ri(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Ui(t,e,i){return Vi(t,Li(e,i))}function Ni(t,e,i){var n=Ui(t,e,i);return n>i?i:n}function Gi(){return{top:0,right:0,bottom:0,left:0}}function Fi(t){return Object.assign({},Gi(),t)}function Ki(t,e){return e.reduce((function(e,i){e[i]=t;return e}),{})}var Yi=function t(e,i){e=typeof e==="function"?e(Object.assign({},i.rects,{placement:i.placement})):e;return Fi(typeof e!=="number"?e:Ki(e,ti))};function Ji(t){var e;var i=t.state,n=t.name,a=t.options;var o=i.elements.arrow;var r=i.modifiersData.popperOffsets;var s=Ci(i.placement);var l=Ri(s);var c=[Ze,Xe].indexOf(s)>=0;var h=c?"height":"width";if(!o||!r){return}var d=Yi(a.padding,i);var g=Ai(o);var m=l==="y"?Ye:Ze;var u=l==="y"?Je:Xe;var p=i.rects.reference[h]+i.rects.reference[l]-r[l]-i.rects.popper[h];var v=r[l]-i.rects.reference[l];var f=Wi(o);var b=f?l==="y"?f.clientHeight||0:f.clientWidth||0:0;var w=p/2-v/2;var _=d[m];var x=b-g[h]-d[u];var z=b/2-g[h]/2+w;var y=Ui(_,z,x);var k=l;i.modifiersData[n]=(e={},e[k]=y,e.centerOffset=y-z,e)}function Xi(t){var e=t.state,i=t.options;var n=i.element,a=n===void 0?"[data-popper-arrow]":n;if(a==null){return}if(typeof a==="string"){a=e.elements.popper.querySelector(a);if(!a){return}}if(!qi(e.elements.popper,a)){return}e.elements.arrow=a}const Zi={name:"arrow",enabled:true,phase:"main",fn:Ji,effect:Xi,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Qi(t){return t.split("-")[1]}var tn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function en(t,e){var i=t.x,n=t.y;var a=e.devicePixelRatio||1;return{x:Bi(i*a)/a||0,y:Bi(n*a)/a||0}}function nn(t){var e;var i=t.popper,n=t.popperRect,a=t.placement,o=t.variation,r=t.offsets,s=t.position,l=t.gpuAcceleration,c=t.adaptive,h=t.roundOffsets,d=t.isFixed;var g=r.x,m=g===void 0?0:g,u=r.y,p=u===void 0?0:u;var v=typeof h==="function"?h({x:m,y:p}):{x:m,y:p};m=v.x;p=v.y;var f=r.hasOwnProperty("x");var b=r.hasOwnProperty("y");var w=Ze;var _=Ye;var x=window;if(c){var z=Wi(i);var y="clientHeight";var k="clientWidth";if(z===_i(i)){z=Pi(i);if(Ii(z).position!=="static"&&s==="absolute"){y="scrollHeight";k="scrollWidth"}}z=z;if(a===Ye||(a===Ze||a===Xe)&&o===ii){_=Je;var M=d&&z===x&&x.visualViewport?x.visualViewport.height:z[y];p-=M-n.height;p*=l?1:-1}if(a===Ze||(a===Ye||a===Je)&&o===ii){w=Xe;var H=d&&z===x&&x.visualViewport?x.visualViewport.width:z[k];m-=H-n.width;m*=l?1:-1}}var C=Object.assign({position:s},c&&tn);var V=h===true?en({x:m,y:p},_i(i)):{x:m,y:p};m=V.x;p=V.y;if(l){var L;return Object.assign({},C,(L={},L[_]=b?"0":"",L[w]=f?"0":"",L.transform=(x.devicePixelRatio||1)<=1?"translate("+m+"px, "+p+"px)":"translate3d("+m+"px, "+p+"px, 0)",L))}return Object.assign({},C,(e={},e[_]=b?p+"px":"",e[w]=f?m+"px":"",e.transform="",e))}function an(t){var e=t.state,i=t.options;var n=i.gpuAcceleration,a=n===void 0?true:n,o=i.adaptive,r=o===void 0?true:o,s=i.roundOffsets,l=s===void 0?true:s;var c={placement:Ci(e.placement),variation:Qi(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:a,isFixed:e.options.strategy==="fixed"};if(e.modifiersData.popperOffsets!=null){e.styles.popper=Object.assign({},e.styles.popper,nn(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:l})))}if(e.modifiersData.arrow!=null){e.styles.arrow=Object.assign({},e.styles.arrow,nn(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:false,roundOffsets:l})))}e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const on={name:"computeStyles",enabled:true,phase:"beforeWrite",fn:an,data:{}};var rn={passive:true};function sn(t){var e=t.state,i=t.instance,n=t.options;var a=n.scroll,o=a===void 0?true:a,r=n.resize,s=r===void 0?true:r;var l=_i(e.elements.popper);var c=[].concat(e.scrollParents.reference,e.scrollParents.popper);if(o){c.forEach((function(t){t.addEventListener("scroll",i.update,rn)}))}if(s){l.addEventListener("resize",i.update,rn)}return function(){if(o){c.forEach((function(t){t.removeEventListener("scroll",i.update,rn)}))}if(s){l.removeEventListener("resize",i.update,rn)}}}const ln={name:"eventListeners",enabled:true,phase:"write",fn:function t(){},effect:sn,data:{}};var cn={left:"right",right:"left",bottom:"top",top:"bottom"};function hn(t){return t.replace(/left|right|bottom|top/g,(function(t){return cn[t]}))}var dn={start:"end",end:"start"};function gn(t){return t.replace(/start|end/g,(function(t){return dn[t]}))}function mn(t){var e=_i(t);var i=e.pageXOffset;var n=e.pageYOffset;return{scrollLeft:i,scrollTop:n}}function un(t){return Ei(Pi(t)).left+mn(t).scrollLeft}function pn(t,e){var i=_i(t);var n=Pi(t);var a=i.visualViewport;var o=n.clientWidth;var r=n.clientHeight;var s=0;var l=0;if(a){o=a.width;r=a.height;var c=$i();if(c||!c&&e==="fixed"){s=a.offsetLeft;l=a.offsetTop}}return{width:o,height:r,x:s+un(t),y:l}}function vn(t){var e;var i=Pi(t);var n=mn(t);var a=(e=t.ownerDocument)==null?void 0:e.body;var o=Vi(i.scrollWidth,i.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0);var r=Vi(i.scrollHeight,i.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0);var s=-n.scrollLeft+un(t);var l=-n.scrollTop;if(Ii(a||i).direction==="rtl"){s+=Vi(i.clientWidth,a?a.clientWidth:0)-o}return{width:o,height:r,x:s,y:l}}function fn(t){var e=Ii(t),i=e.overflow,n=e.overflowX,a=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+a+n)}function bn(t){if(["html","body","#document"].indexOf(wi(t))>=0){return t.ownerDocument.body}if(zi(t)&&fn(t)){return t}return bn(Oi(t))}function wn(t,e){var i;if(e===void 0){e=[]}var n=bn(t);var a=n===((i=t.ownerDocument)==null?void 0:i.body);var o=_i(n);var r=a?[o].concat(o.visualViewport||[],fn(n)?n:[]):n;var s=e.concat(r);return a?s:s.concat(wn(Oi(r)))}function _n(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function xn(t,e){var i=Ei(t,false,e==="fixed");i.top=i.top+t.clientTop;i.left=i.left+t.clientLeft;i.bottom=i.top+t.clientHeight;i.right=i.left+t.clientWidth;i.width=t.clientWidth;i.height=t.clientHeight;i.x=i.left;i.y=i.top;return i}function zn(t,e,i){return e===ai?_n(pn(t,i)):xi(e)?xn(e,i):_n(vn(Pi(t)))}function yn(t){var e=wn(Oi(t));var i=["absolute","fixed"].indexOf(Ii(t).position)>=0;var n=i&&zi(t)?Wi(t):t;if(!xi(n)){return[]}return e.filter((function(t){return xi(t)&&qi(t,n)&&wi(t)!=="body"}))}function kn(t,e,i,n){var a=e==="clippingParents"?yn(t):[].concat(e);var o=[].concat(a,[i]);var r=o[0];var s=o.reduce((function(e,i){var a=zn(t,i,n);e.top=Vi(a.top,e.top);e.right=Li(a.right,e.right);e.bottom=Li(a.bottom,e.bottom);e.left=Vi(a.left,e.left);return e}),zn(t,r,n));s.width=s.right-s.left;s.height=s.bottom-s.top;s.x=s.left;s.y=s.top;return s}function Mn(t){var e=t.reference,i=t.element,n=t.placement;var a=n?Ci(n):null;var o=n?Qi(n):null;var r=e.x+e.width/2-i.width/2;var s=e.y+e.height/2-i.height/2;var l;switch(a){case Ye:l={x:r,y:e.y-i.height};break;case Je:l={x:r,y:e.y+e.height};break;case Xe:l={x:e.x+e.width,y:s};break;case Ze:l={x:e.x-i.width,y:s};break;default:l={x:e.x,y:e.y}}var c=a?Ri(a):null;if(c!=null){var h=c==="y"?"height":"width";switch(o){case ei:l[c]=l[c]-(e[h]/2-i[h]/2);break;case ii:l[c]=l[c]+(e[h]/2-i[h]/2);break}}return l}function Hn(t,e){if(e===void 0){e={}}var i=e,n=i.placement,a=n===void 0?t.placement:n,o=i.strategy,r=o===void 0?t.strategy:o,s=i.boundary,l=s===void 0?ni:s,c=i.rootBoundary,h=c===void 0?ai:c,d=i.elementContext,g=d===void 0?oi:d,m=i.altBoundary,u=m===void 0?false:m,p=i.padding,v=p===void 0?0:p;var f=Fi(typeof v!=="number"?v:Ki(v,ti));var b=g===oi?ri:oi;var w=t.rects.popper;var _=t.elements[u?b:g];var x=kn(xi(_)?_:_.contextElement||Pi(t.elements.popper),l,h,r);var z=Ei(t.elements.reference);var y=Mn({reference:z,element:w,strategy:"absolute",placement:a});var k=_n(Object.assign({},w,y));var M=g===oi?k:z;var H={top:x.top-M.top+f.top,bottom:M.bottom-x.bottom+f.bottom,left:x.left-M.left+f.left,right:M.right-x.right+f.right};var C=t.modifiersData.offset;if(g===oi&&C){var V=C[a];Object.keys(H).forEach((function(t){var e=[Xe,Je].indexOf(t)>=0?1:-1;var i=[Ye,Je].indexOf(t)>=0?"y":"x";H[t]+=V[i]*e}))}return H}function Cn(t,e){if(e===void 0){e={}}var i=e,n=i.placement,a=i.boundary,o=i.rootBoundary,r=i.padding,s=i.flipVariations,l=i.allowedAutoPlacements,c=l===void 0?li:l;var h=Qi(n);var d=h?s?si:si.filter((function(t){return Qi(t)===h})):ti;var g=d.filter((function(t){return c.indexOf(t)>=0}));if(g.length===0){g=d}var m=g.reduce((function(e,i){e[i]=Hn(t,{placement:i,boundary:a,rootBoundary:o,padding:r})[Ci(i)];return e}),{});return Object.keys(m).sort((function(t,e){return m[t]-m[e]}))}function Vn(t){if(Ci(t)===Qe){return[]}var e=hn(t);return[gn(t),e,gn(e)]}function Ln(t){var e=t.state,i=t.options,n=t.name;if(e.modifiersData[n]._skip){return}var a=i.mainAxis,o=a===void 0?true:a,r=i.altAxis,s=r===void 0?true:r,l=i.fallbackPlacements,c=i.padding,h=i.boundary,d=i.rootBoundary,g=i.altBoundary,m=i.flipVariations,u=m===void 0?true:m,p=i.allowedAutoPlacements;var v=e.options.placement;var f=Ci(v);var b=f===v;var w=l||(b||!u?[hn(v)]:Vn(v));var _=[v].concat(w).reduce((function(t,i){return t.concat(Ci(i)===Qe?Cn(e,{placement:i,boundary:h,rootBoundary:d,padding:c,flipVariations:u,allowedAutoPlacements:p}):i)}),[]);var x=e.rects.reference;var z=e.rects.popper;var y=new Map;var k=true;var M=_[0];for(var H=0;H<_.length;H++){var C=_[H];var V=Ci(C);var L=Qi(C)===ei;var B=[Ye,Je].indexOf(V)>=0;var D=B?"width":"height";var $=Hn(e,{placement:C,boundary:h,rootBoundary:d,altBoundary:g,padding:c});var E=B?L?Xe:Ze:L?Je:Ye;if(x[D]>z[D]){E=hn(E)}var A=hn(E);var q=[];if(o){q.push($[V]<=0)}if(s){q.push($[E]<=0,$[A]<=0)}if(q.every((function(t){return t}))){M=C;k=false;break}y.set(C,q)}if(k){var I=u?3:1;var T=function t(e){var i=_.find((function(t){var i=y.get(t);if(i){return i.slice(0,e).every((function(t){return t}))}}));if(i){M=i;return"break"}};for(var P=I;P>0;P--){var O=T(P);if(O==="break")break}}if(e.placement!==M){e.modifiersData[n]._skip=true;e.placement=M;e.reset=true}}const Bn={name:"flip",enabled:true,phase:"main",fn:Ln,requiresIfExists:["offset"],data:{_skip:false}};function Dn(t,e,i){if(i===void 0){i={x:0,y:0}}return{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function $n(t){return[Ye,Xe,Je,Ze].some((function(e){return t[e]>=0}))}function En(t){var e=t.state,i=t.name;var n=e.rects.reference;var a=e.rects.popper;var o=e.modifiersData.preventOverflow;var r=Hn(e,{elementContext:"reference"});var s=Hn(e,{altBoundary:true});var l=Dn(r,n);var c=Dn(s,a,o);var h=$n(l);var d=$n(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:d};e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}const An={name:"hide",enabled:true,phase:"main",requiresIfExists:["preventOverflow"],fn:En};function qn(t,e,i){var n=Ci(t);var a=[Ze,Ye].indexOf(n)>=0?-1:1;var o=typeof i==="function"?i(Object.assign({},e,{placement:t})):i,r=o[0],s=o[1];r=r||0;s=(s||0)*a;return[Ze,Xe].indexOf(n)>=0?{x:s,y:r}:{x:r,y:s}}function In(t){var e=t.state,i=t.options,n=t.name;var a=i.offset,o=a===void 0?[0,0]:a;var r=li.reduce((function(t,i){t[i]=qn(i,e.rects,o);return t}),{});var s=r[e.placement],l=s.x,c=s.y;if(e.modifiersData.popperOffsets!=null){e.modifiersData.popperOffsets.x+=l;e.modifiersData.popperOffsets.y+=c}e.modifiersData[n]=r}const Tn={name:"offset",enabled:true,phase:"main",requires:["popperOffsets"],fn:In};function Pn(t){var e=t.state,i=t.name;e.modifiersData[i]=Mn({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const On={name:"popperOffsets",enabled:true,phase:"read",fn:Pn,data:{}};function jn(t){return t==="x"?"y":"x"}function Sn(t){var e=t.state,i=t.options,n=t.name;var a=i.mainAxis,o=a===void 0?true:a,r=i.altAxis,s=r===void 0?false:r,l=i.boundary,c=i.rootBoundary,h=i.altBoundary,d=i.padding,g=i.tether,m=g===void 0?true:g,u=i.tetherOffset,p=u===void 0?0:u;var v=Hn(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:h});var f=Ci(e.placement);var b=Qi(e.placement);var w=!b;var _=Ri(f);var x=jn(_);var z=e.modifiersData.popperOffsets;var y=e.rects.reference;var k=e.rects.popper;var M=typeof p==="function"?p(Object.assign({},e.rects,{placement:e.placement})):p;var H=typeof M==="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M);var C=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null;var V={x:0,y:0};if(!z){return}if(o){var L;var B=_==="y"?Ye:Ze;var D=_==="y"?Je:Xe;var $=_==="y"?"height":"width";var E=z[_];var A=E+v[B];var q=E-v[D];var I=m?-k[$]/2:0;var T=b===ei?y[$]:k[$];var P=b===ei?-k[$]:-y[$];var O=e.elements.arrow;var j=m&&O?Ai(O):{width:0,height:0};var S=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Gi();var W=S[B];var R=S[D];var U=Ui(0,y[$],j[$]);var N=w?y[$]/2-I-U-W-H.mainAxis:T-U-W-H.mainAxis;var G=w?-y[$]/2+I+U+R+H.mainAxis:P+U+R+H.mainAxis;var F=e.elements.arrow&&Wi(e.elements.arrow);var K=F?_==="y"?F.clientTop||0:F.clientLeft||0:0;var Y=(L=C==null?void 0:C[_])!=null?L:0;var J=E+N-Y-K;var X=E+G-Y;var Z=Ui(m?Li(A,J):A,E,m?Vi(q,X):q);z[_]=Z;V[_]=Z-E}if(s){var Q;var tt=_==="x"?Ye:Ze;var et=_==="x"?Je:Xe;var it=z[x];var nt=x==="y"?"height":"width";var at=it+v[tt];var ot=it-v[et];var rt=[Ye,Ze].indexOf(f)!==-1;var st=(Q=C==null?void 0:C[x])!=null?Q:0;var lt=rt?at:it-y[nt]-k[nt]-st+H.altAxis;var ct=rt?it+y[nt]+k[nt]-st-H.altAxis:ot;var ht=m&&rt?Ni(lt,it,ct):Ui(m?lt:at,it,m?ct:ot);z[x]=ht;V[x]=ht-it}e.modifiersData[n]=V}const Wn={name:"preventOverflow",enabled:true,phase:"main",fn:Sn,requiresIfExists:["offset"]};function Rn(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Un(t){if(t===_i(t)||!zi(t)){return mn(t)}else{return Rn(t)}}function Nn(t){var e=t.getBoundingClientRect();var i=Bi(e.width)/t.offsetWidth||1;var n=Bi(e.height)/t.offsetHeight||1;return i!==1||n!==1}function Gn(t,e,i){if(i===void 0){i=false}var n=zi(e);var a=zi(e)&&Nn(e);var o=Pi(e);var r=Ei(t,a,i);var s={scrollLeft:0,scrollTop:0};var l={x:0,y:0};if(n||!n&&!i){if(wi(e)!=="body"||fn(o)){s=Un(e)}if(zi(e)){l=Ei(e,true);l.x+=e.clientLeft;l.y+=e.clientTop}else if(o){l.x=un(o)}}return{x:r.left+s.scrollLeft-l.x,y:r.top+s.scrollTop-l.y,width:r.width,height:r.height}}function Fn(t){var e=new Map;var i=new Set;var n=[];t.forEach((function(t){e.set(t.name,t)}));function a(t){i.add(t.name);var o=[].concat(t.requires||[],t.requiresIfExists||[]);o.forEach((function(t){if(!i.has(t)){var n=e.get(t);if(n){a(n)}}}));n.push(t)}t.forEach((function(t){if(!i.has(t.name)){a(t)}}));return n}function Kn(t){var e=Fn(t);return bi.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}function Yn(t){var e;return function(){if(!e){e=new Promise((function(i){Promise.resolve().then((function(){e=undefined;i(t())}))}))}return e}}function Jn(t){var e=t.reduce((function(t,e){var i=t[e.name];t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e;return t}),{});return Object.keys(e).map((function(t){return e[t]}))}var Xn={placement:"bottom",modifiers:[],strategy:"absolute"};function Zn(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++){e[i]=arguments[i]}return!e.some((function(t){return!(t&&typeof t.getBoundingClientRect==="function")}))}function Qn(t){if(t===void 0){t={}}var e=t,i=e.defaultModifiers,n=i===void 0?[]:i,a=e.defaultOptions,o=a===void 0?Xn:a;return function t(e,i,a){if(a===void 0){a=o}var r={placement:"bottom",orderedModifiers:[],options:Object.assign({},Xn,o),modifiersData:{},elements:{reference:e,popper:i},attributes:{},styles:{}};var s=[];var l=false;var c={state:r,setOptions:function t(a){var s=typeof a==="function"?a(r.options):a;d();r.options=Object.assign({},o,r.options,s);r.scrollParents={reference:xi(e)?wn(e):e.contextElement?wn(e.contextElement):[],popper:wn(i)};var l=Kn(Jn([].concat(n,r.options.modifiers)));r.orderedModifiers=l.filter((function(t){return t.enabled}));h();return c.update()},forceUpdate:function t(){if(l){return}var e=r.elements,i=e.reference,n=e.popper;if(!Zn(i,n)){return}r.rects={reference:Gn(i,Wi(n),r.options.strategy==="fixed"),popper:Ai(n)};r.reset=false;r.placement=r.options.placement;r.orderedModifiers.forEach((function(t){return r.modifiersData[t.name]=Object.assign({},t.data)}));for(var a=0;a<r.orderedModifiers.length;a++){if(r.reset===true){r.reset=false;a=-1;continue}var o=r.orderedModifiers[a],s=o.fn,h=o.options,d=h===void 0?{}:h,g=o.name;if(typeof s==="function"){r=s({state:r,options:d,name:g,instance:c})||r}}},update:Yn((function(){return new Promise((function(t){c.forceUpdate();t(r)}))})),destroy:function t(){d();l=true}};if(!Zn(e,i)){return c}c.setOptions(a).then((function(t){if(!l&&a.onFirstUpdate){a.onFirstUpdate(t)}}));function h(){r.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,n=i===void 0?{}:i,a=t.effect;if(typeof a==="function"){var o=a({state:r,name:e,instance:c,options:n});var l=function t(){};s.push(o||l)}}))}function d(){s.forEach((function(t){return t()}));s=[]}return c}}var ta=[ln,On,on,Hi,Tn,Bn,Wn,Zi,An];var ea=Qn({defaultModifiers:ta});const ia="/*!\n * @prop --mg-c-popover-color-background: Defines the background color of the popover. Default value: `--mg-b-color-light`.\n * @prop --mg-c-popover-color-text: Defines the font color of the popover. Default value: `--mg-b-color-font-dark`.\n * @prop --mg-c-popover-title-font-size: Defines the font size of the popover title. Default value: `--mg-b-font-size-h5`.\n * @prop --mg-c-popover-padding-vertical: Defines the vertical padding of the popover. Default value: `unset`, fallback to `--mg-b-size-16`.\n * @prop --mg-c-popover-padding-horizontal: Defines the horizontal padding of the popover. Default value: `unset`, fallback to `--mg-b-size-16`.\n * @prop --mg-c-popover-max-width: Defines the max-width of the popover. Default value: `--mg-b-size-floating-element-max-width`.\n * @prop --mg-c-popover-min-width: Defines the min-width of the popover. Default value: `unset`.\n */:host{--mg-c-card-spacing:var(--mg-c-popover-padding-vertical, var(--mg-b-size-16)) var(--mg-c-popover-padding-horizontal, var(--mg-b-size-16));--mg-c-card-border:none;--mg-c-card-border-radius:var(--mg-b-size-radius);--mg-c-card-color-background:var(--mg-c-popover-color-background);position:relative;display:contents}:host::slotted(*){display:inline-block}";const na=ia;const aa=class{constructor(e){t(this,e);this.displayChange=a(this,"display-change",7);this.componentClose=a(this,"component-close",7);this.clickOutside=t=>{if(!this.disabled&&t.target.closest("mg-popover")!==this.element&&t.target.closest(`[data-mg-popover-guard="${this.identifier}"]`)===null){this.display=false}};this.show=()=>{this.mgPopover.dataset.show="";this.setPopperListeners(true);setTimeout((()=>{this.manageClickOutsideListeners("addEventListener")}))};this.hide=()=>{this.mgPopover.removeAttribute("data-show");this.setPopperListeners(false);this.manageClickOutsideListeners("removeEventListener")};this.setPopperListeners=t=>{this.popper.setOptions((e=>Object.assign(Object.assign({},e),{modifiers:[...e.modifiers,{name:"eventListeners",enabled:t}]})))};this.manageClickOutsideListeners=t=>{var e,i;const n=Array.from(((i=(e=document.querySelector(`[data-mg-popover-guard="${this.identifier}"]`))===null||e===void 0?void 0:e.shadowRoot)===null||i===void 0?void 0:i.children)||new Set);[...n,...this.windows].forEach((e=>{if(e!==null){e[t]("click",this.clickOutside,false)}}))};this.handleHideContent=()=>{this.display=false;this.componentClose.emit()};this.renderPopoverContent=()=>{const t=this.element.querySelector("mg-popover-content");if(t===null){this.mgPopoverContent=document.createElement("mg-popover-content");this.mgPopoverContent.setAttribute("slot","content");this.mgPopoverContent.setAttribute("id",this.identifier);this.mgPopoverContent.addEventListener("hide-content",this.handleHideContent);const t=document.createElement("div");t.setAttribute("slot","arrow");t.dataset.popperArrow="";this.mgPopoverContent.appendChild(t);['[slot="title"]','[slot="content"]:not(mg-popover-content)'].forEach((t=>{Array.from(this.element.querySelectorAll(t)).forEach((t=>{this.mgPopoverContent.appendChild(t)}))}));this.element.appendChild(this.mgPopoverContent)}else{t.setAttribute("id",this.identifier)}};this.identifier=o("mg-popover");this.placement="bottom";this.arrowHide=false;this.closeButton=false;this.display=false;this.disabled=false}validateIdentifier(t){if(!h(t)){throw new Error(`<mg-popover> prop "identifier" value is invalid. Passed value: ${r(t)}.`)}this.renderPopoverContent()}validateArrowHide(t){if(t)this.mgPopoverContent.dataset.arrowHide="";else delete this.mgPopoverContent.dataset.arrowHide}validateCloseButton(t){this.mgPopoverContent.closeButton=t}handleDisplay(t){if(t){this.show()}else{this.hide()}this.displayChange.emit(t)}componentDidUpdate(){this.popper.update()}componentWillLoad(){this.windows=z(window);this.renderPopoverContent();this.validateCloseButton(this.closeButton);this.validateIdentifier(this.identifier);this.validateArrowHide(this.arrowHide)}componentDidLoad(){this.mgPopover=this.element.querySelector(`#${this.identifier}`);const t=this.element.querySelector(":not([slot])");t.setAttribute("aria-controls",this.identifier);t.setAttribute("aria-expanded",`${this.display}`);const e=[];if(this.element.dataset.fallbackPlacement!==undefined){e.push(this.element.dataset.fallbackPlacement)}this.popper=ea(t,this.mgPopover,{placement:this.placement,strategy:"fixed",modifiers:[{name:"offset",options:{offset:[0,0]}},{name:"flip",options:{fallbackPlacements:[...e,"auto"]}}]});[t,this.element.querySelector("mg-popover-content")].forEach((t=>{new ResizeObserver((()=>{this.popper.update()})).observe(t)}));t.addEventListener("click",(()=>{if(!this.disabled)this.display=!this.display}));this.element.addEventListener("keydown",(e=>{if(!this.disabled&&e.code==="Escape"){this.display=false;this.componentClose.emit();t.focus()}}));this.handleDisplay(this.display)}render(){return e(i,{key:"659148b3948900bbfe18d0d6898ad0c3a77ccd4d"},e("slot",{key:"d1fe9c5465fafd8e6a5c42476b2b6096f91ef3ee"}),e("slot",{key:"ac905b983bd5bf55ceea4d7fb0a6de31875cd0ba",name:"content"}))}get element(){return n(this)}static get watchers(){return{identifier:["validateIdentifier"],arrowHide:["validateArrowHide"],closeButton:["validateCloseButton"],display:["handleDisplay"]}}};aa.style=na;const oa=':host{position:relative;z-index:2000;display:none;padding:var(--mg-b-size-8);color:var(--mg-c-popover-color-text)}:host([data-show]){display:block}:host([data-popper-placement^=left-start]),:host([data-popper-placement^=left-end]),:host([data-popper-placement^=right-start]),:host([data-popper-placement^=right-end]){padding:0 var(--mg-b-size-8)}.mg-c-popover-content{--mg-c-card-max-width:var(--mg-c-popover-max-width);--mg-c-card-min-width:var(--mg-c-popover-min-width)}.mg-c-popover-content mg-button{margin-top:calc(-1*(var(--mg-b-size-min-height) - var(--mg-c-popover-title-font-size)*var(--mg-b-line-height))/2);margin-right:calc(-1*(var(--mg-b-size-min-height) - var(--mg-b-size-16))/2);margin-left:var(--mg-b-size-32);float:right}.mg-c-popover-content__title ::slotted([slot=title]){margin:0 0 var(--mg-b-size-8) !important;font-size:var(--mg-c-popover-title-font-size) !important;font-weight:600 !important}.mg-c-popover-content ::slotted(*){--mg-c-card-border:var(--mg-c-card-border-default);--mg-c-card-spacing:var(--mg-c-card-spacing-default);--mg-c-card-border-radius:var(--mg-c-card-border-radius-default);--mg-c-card-color-background:var(--mg-c-card-color-background-default);--mg-c-card-box-shadow:var(--mg-c-card-box-shadow-default);--mg-c-card-max-width:unset;--mg-c-card-min-width:unset}:host([data-popper-placement^=top][data-arrow-hide]){padding-bottom:0}:host([data-popper-placement^=bottom][data-arrow-hide]){padding-top:0}:host([data-popper-placement$=end][data-arrow-hide]),:host([data-popper-placement^=left][data-arrow-hide]){padding-right:0}:host([data-popper-placement$=start][data-arrow-hide]),:host([data-popper-placement^=right][data-arrow-hide]){padding-left:0}::slotted([slot=arrow]){position:absolute;width:calc(var(--mg-b-size-24) + 2*var(--mg-c-card-border-radius) + 2*var(--mg-b-size-8));height:calc(var(--mg-b-size-24) + 2*var(--mg-c-card-border-radius) + 2*var(--mg-b-size-8));visibility:hidden}::slotted([slot=arrow])::before{position:absolute;content:"";visibility:visible}:host([data-arrow-hide]) ::slotted([slot=arrow]){display:none}:host([data-popper-placement^=top]) ::slotted([slot=arrow]),:host([data-popper-placement^=bottom]) ::slotted([slot=arrow]){height:var(--mg-b-size-8)}:host([data-popper-placement^=top]) ::slotted([slot=arrow])::before,:host([data-popper-placement^=bottom]) ::slotted([slot=arrow])::before{left:calc(var(--mg-c-card-border-radius) + var(--mg-b-size-8));border-right:calc(var(--mg-b-size-24)/2) solid rgba(0,0,0,0);border-left:calc(var(--mg-b-size-24)/2) solid rgba(0,0,0,0)}:host([data-popper-placement^=top]) ::slotted([slot=arrow]){bottom:var(--mg-b-size-border);filter:drop-shadow(0 0.5rem 0.25rem color-mix(in srgb, var(--mg-b-color-dark), transparent 85%))}:host([data-popper-placement^=top]) ::slotted([slot=arrow])::before{border-top:var(--mg-b-size-8) solid var(--mg-c-popover-color-background)}:host([data-popper-placement^=bottom]) ::slotted([slot=arrow]){top:var(--mg-b-size-border);filter:drop-shadow(0 -0.5rem 0.25rem color-mix(in srgb, var(--mg-b-color-dark), transparent 85%))}:host([data-popper-placement^=bottom]) ::slotted([slot=arrow])::before{border-bottom:var(--mg-b-size-8) solid var(--mg-c-popover-color-background)}:host([data-popper-placement^=left]) ::slotted([slot=arrow]),:host([data-popper-placement^=right]) ::slotted([slot=arrow]){width:var(--mg-b-size-8)}:host([data-popper-placement^=left]) ::slotted([slot=arrow])::before,:host([data-popper-placement^=right]) ::slotted([slot=arrow])::before{top:calc(var(--mg-c-card-border-radius) + var(--mg-b-size-8));border-top:calc(var(--mg-b-size-24)/2) solid rgba(0,0,0,0);border-bottom:calc(var(--mg-b-size-24)/2) solid rgba(0,0,0,0)}:host([data-popper-placement^=left]) ::slotted([slot=arrow]){right:var(--mg-b-size-border);filter:drop-shadow(0.5rem 0 0.25rem color-mix(in srgb, var(--mg-b-color-dark), transparent 85%))}:host([data-popper-placement^=left]) ::slotted([slot=arrow])::before{border-left:var(--mg-b-size-8) solid var(--mg-c-popover-color-background)}:host([data-popper-placement^=right]) ::slotted([slot=arrow]){left:var(--mg-b-size-border);filter:drop-shadow(-0.5rem 0 0.25rem color-mix(in srgb, var(--mg-b-color-dark), transparent 85%))}:host([data-popper-placement^=right]) ::slotted([slot=arrow])::before{border-right:var(--mg-b-size-8) solid var(--mg-c-popover-color-background)}:host([data-popper-placement^=left-start]) ::slotted([slot=arrow]),:host([data-popper-placement^=left-end]) ::slotted([slot=arrow]),:host([data-popper-placement^=right-start]) ::slotted([slot=arrow]),:host([data-popper-placement^=right-end]) ::slotted([slot=arrow]){height:calc(var(--mg-b-size-24) + 2*var(--mg-c-card-border-radius))}:host([data-popper-placement^=left-start]) ::slotted([slot=arrow])::before,:host([data-popper-placement^=left-end]) ::slotted([slot=arrow])::before,:host([data-popper-placement^=right-start]) ::slotted([slot=arrow])::before,:host([data-popper-placement^=right-end]) ::slotted([slot=arrow])::before{top:var(--mg-c-card-border-radius)}';const ra=oa;const sa=class{constructor(e){t(this,e);this.hideContent=a(this,"hide-content",7);this.handleCloseButton=()=>{this.hideContent.emit()};this.closeButton=false;this.classCollection=new s(["mg-c-popover-content"])}componentWillLoad(){this.messages=k(this.element).messages}componentDidLoad(){const t=["h1","h2","h3","h4","h5","h6"];const e=this.element.querySelector('[slot="title"]');if(e&&!d(e,t)){throw new Error(`<mg-popover> Slotted title must be a heading: ${t.join(", ")}.`)}}render(){return e(i,{key:"8d2dd7d21518de744c18f0280b7b418f3a76acca"},e("mg-card",{key:"8beab7c9fb692c1983515709a1ee888dc7e5157a",class:this.classCollection.join()},this.closeButton&&e("mg-button",{key:"e636569be26b0c741e0b03e806787d91b47ded5c","is-icon":true,variant:"flat",label:this.messages.general.close,onClick:this.handleCloseButton},e("mg-icon",{key:"3edc717cbe542494d892566c182883e20b1ca4cb",icon:"cross"})),e("div",{key:"d18525218972d92b6932984edb50844658e12970",class:"mg-c-popover-content__title"},e("slot",{key:"2cceb41fd4ebb00b889e71cab211431e5894d04c",name:"title"})),e("slot",{key:"a6615d9d7c85b32fb63d3d89db02fae2f8d5c1b2",name:"content"})),e("slot",{key:"0ff4bf72de19a3d56aafb64391cfc276d70e2f18",name:"arrow"}))}get element(){return n(this)}};sa.style=ra;const la=".mg-c-skip-links{position:absolute;display:flex;min-height:var(--mg-b-size-56);align-items:center;background:var(--mg-b-color-light);opacity:0;transform:translateY(-100%)}.mg-c-skip-links:focus-within{position:relative;opacity:1;transform:translateY(0)}.mg-c-skip-links__list{display:flex;flex-wrap:wrap;align-items:center;padding:0 var(--mg-b-size-16);margin:0;gap:var(--mg-b-spacing-actions);list-style:none}.mg-c-skip-links__link{display:inline-block;padding:var(--mg-b-size-8) var(--mg-b-size-16);color:var(--mg-b-color-dark)}.mg-c-skip-links__link:hover{background:hsl(var(--mg-b-color-dark-h), var(--mg-b-color-dark-s), var(--mg-b-color-dark-l), 10%)}";const ca=la;const ha=class{constructor(e){t(this,e);this.goToAnchor=a(this,"go-to-anchor",7);this.handleLinkCLick=t=>{t.currentTarget.blur();this.goToAnchor.emit(t.currentTarget.getAttribute("href"))};this.links=undefined}validateLinks(t){if(t===undefined||t.length===0||t.some((t=>!l(t.href)||!t.href.startsWith("#")||!l(t.label)))){throw new Error(`<mg-skip-links> prop "links": Cannot be empty and each link must contains an href starting with a "#" and a non empty label attributes.`)}}componentWillLoad(){this.validateLinks(this.links);this.messages=k(this.element).messages}render(){return e("nav",{key:"0b4e4d6b9481a88faae78602b07c4f5e851da517",class:"mg-c-skip-links",role:"navigation","aria-label":this.messages.skipLinks.navLabel},e("ul",{key:"aaa15193eb2c9e1d9ee3b2e2a7d8d0fd37836ed7",class:"mg-c-skip-links__list",role:"list"},this.links.map((t=>e("li",{key:t.href},e("a",{class:"mg-c-skip-links__link",href:t.href,onClick:this.handleLinkCLick},t.label))))))}get element(){return n(this)}static get watchers(){return{links:["validateLinks"]}}};ha.style=ca;const da={VISIBLE:"visible",HIDDEN:"hidden",DISABLED:"disabled",ACTIVE:"active"};const ga=["medium","large"];const ma="/*!\n * @prop --mg-c-tabs-color: Defines tabs global color, used for bottom line and active tabs. Default value: `--mg-b-color-app`.\n * @prop --mg-c-tabs-color-text: Defines tabs text color. Unset by default, fallback on `--mg-b-color-dark`.\n */.mg-c-tabs.mg-c-tabs--size-medium .mg-c-tabs__navigation-button,.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-medium{padding:var(--mg-b-size-12) var(--mg-b-size-16)}.mg-c-tabs.mg-c-tabs--size-medium .mg-c-tabs__navigation-button,.mg-c-tabs.mg-c-tabs--size-medium .mg-c-tabs__navigation-button ::slotted([slot=label]),.mg-c-tabs.mg-c-tabs--size-medium .mg-c-tabs__navigation-button ::slotted([slot=metadata]),.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-medium,.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-medium ::slotted([slot=label]),.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-medium ::slotted([slot=metadata]){font-size:var(--mg-b-font-size)}.mg-c-tabs.mg-c-tabs--size-medium .mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--horizontal,.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-medium.mg-c-tabs__navigation-button--horizontal{padding-bottom:var(--mg-b-size-12)}.mg-c-tabs.mg-c-tabs--size-medium .mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--vertical,.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-medium.mg-c-tabs__navigation-button--vertical{padding-left:var(--mg-b-size-16)}.mg-c-tabs.mg-c-tabs--size-large .mg-c-tabs__navigation-button,.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-large{padding:var(--mg-b-size-16) var(--mg-b-size-32)}.mg-c-tabs.mg-c-tabs--size-large .mg-c-tabs__navigation-button,.mg-c-tabs.mg-c-tabs--size-large .mg-c-tabs__navigation-button ::slotted([slot=label]),.mg-c-tabs.mg-c-tabs--size-large .mg-c-tabs__navigation-button ::slotted([slot=metadata]),.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-large,.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-large ::slotted([slot=label]),.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-large ::slotted([slot=metadata]){font-size:var(--mg-b-font-size-h4)}.mg-c-tabs.mg-c-tabs--size-large .mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--horizontal,.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-large.mg-c-tabs__navigation-button--horizontal{padding-bottom:var(--mg-b-size-16)}.mg-c-tabs.mg-c-tabs--size-large .mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--vertical,.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--size-large.mg-c-tabs__navigation-button--vertical{padding-left:var(--mg-b-size-32)}.mg-c-tabs__navigation-button{display:flex;box-sizing:border-box;align-items:center;border:none;background-color:unset;color:var(--mg-c-tabs-color-text, var(--mg-b-color-dark));column-gap:var(--mg-c-tabs-navigation-button-column-gap, var(--mg-b-size-8));cursor:pointer;font-family:var(--mg-b-font-family);font-weight:400;line-height:var(--mg-b-line-height);text-decoration:none;white-space:nowrap}.mg-c-tabs__navigation-button:disabled,.mg-c-tabs__navigation-button--disabled{cursor:default;opacity:var(--mg-b-opacity-element-disabled)}.mg-c-tabs__navigation-button:focus-visible{z-index:10}.mg-c-tabs__navigation-button:hover:not(.mg-c-tabs__navigation-button--disabled),.mg-c-tabs__navigation-button:focus-visible:not(.mg-c-tabs__navigation-button--disabled){background-color:color-mix(in srgb, var(--mg-c-tabs-color), transparent 90%)}.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--active{color:var(--mg-c-tabs-color);font-weight:600}.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--active.mg-c-tabs__navigation-button--horizontal{box-shadow:inset 0 calc(-1*var(--mg-b-size-4)) var(--mg-c-tabs-color)}.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--active.mg-c-tabs__navigation-button--vertical{box-shadow:inset var(--mg-b-size-4) 0 var(--mg-c-tabs-color)}.mg-c-tabs__navigation-button.mg-c-tabs__navigation-button--hidden{display:none}.mg-c-tabs__header{display:flex;flex-flow:row wrap;border-bottom:var(--mg-b-size-border) solid color-mix(in srgb, var(--mg-c-tabs-color), transparent 90%)}.mg-c-tabs__content-container:focus-visible{outline:none}.mg-c-tabs__navigation-button-text{flex:0 0 content}";const ua=ma;const pa=t=>typeof t==="object"&&typeof t.label==="string";const va=class{constructor(e){t(this,e);this.activeTabChange=a(this,"active-tab-change",7);this.tabPanel="panel";this.buttonTabBaseClass="mg-c-tabs__navigation-button";this.startIndex=1;this.isActivableTab=t=>[undefined,da.ACTIVE,da.VISIBLE].includes(t.status);this.tabHasStatus=(t,e)=>t.status===e;this.getElementId=(t,e)=>`${t}-${this.getTabItemIndex(e)}`;this.getTabItemIndex=t=>t+this.startIndex;this.handleClick=t=>{const e=t.currentTarget.dataset.index;if(!this.isActivableTab(this.tabs[Number(e)-this.startIndex])){t.preventDefault()}else{this.activeTab=Number(e);this.tabFocus=undefined}};this.getNavigationButtonClass=t=>`${this.buttonTabBaseClass}--${t}`;this.handleKeydown=t=>{const e=t.target.parentElement;if(["ArrowRight","ArrowLeft"].includes(t.key)){this.tabFocus=Number(t.target.dataset.index);e.querySelector(`[data-index="${this.tabFocus}"]`).setAttribute("tabindex","-1");if(t.key==="ArrowRight"){this.tabFocus++;if(this.tabFocus>this.tabs.length)this.tabFocus=this.startIndex}else if(t.key==="ArrowLeft"){this.tabFocus--;if(this.tabFocus<this.startIndex)this.tabFocus=this.tabs.length}const i=e.querySelector(`[data-index="${this.tabFocus}"]`);if(this.tabHasStatus(this.tabs[this.tabFocus-1],da.HIDDEN)){i.dispatchEvent(new KeyboardEvent("keydown",{key:t.key,bubbles:true}))}else{i.setAttribute("tabindex","0");i.focus()}}else if(t.key==="Tab"){this.resetFocus()}};this.handleDocumentClick=t=>{if(t.target.closest("mg-tabs")!==this.element)this.resetFocus()};this.resetFocus=()=>{c((()=>{this.tabFocus=undefined;Array.from(this.element.shadowRoot.querySelectorAll("[data-index]")).forEach(((t,e)=>{t.setAttribute("tabindex",this.activeTab-this.startIndex!==e?"-1":"0")}))}))};this.validateSlots=()=>{const t=Array.from(this.element.children).filter((t=>{var e;return(e=t.getAttribute("slot"))===null||e===void 0?void 0:e.includes("tab_content-")}));if(t.length!==this.tabs.length)throw new Error("<mg-tabs> Must have slots counts equal to tabs count.")};this.identifier=o("mg-tabs");this.label=undefined;this.size="medium";this.items=undefined;this.activeTab=undefined;this.tabs=[];this.classCollection=new s(["mg-c-tabs"])}watchIdentifier(t){if(!h(t)){console.error(`<mg-tabs> prop "identifier" value is invalid. Passed value: ${r(t)}.`)}}validateLabel(t){if(!l(t)){throw new Error(`<mg-tabs> prop "label" is required and must be a string. Passed value: ${r(t)}.`)}}validateSize(t){if(!ga.includes(t)){throw new Error(`<mg-tabs> prop "size" must be one of: ${ga.join(", ")}. Passed value: ${r(t)}.`)}this.classCollection.add(`mg-c-tabs--size-${this.size}`)}validateItems(t){if(x(t))this.tabs=t.map((t=>({label:t,status:da.VISIBLE})));else if(Array.isArray(t)&&t.length>0&&t.every(pa))this.tabs=t;else throw new Error(`<mg-tabs> prop "items" is required and all items must be the same type: TabItem. Passed value: ${r(t)}.`)}validateActiveTab(t){if(t===undefined){this.activeTab=this.tabs.some((t=>this.tabHasStatus(t,da.ACTIVE)))?this.getTabItemIndex(this.tabs.findIndex((t=>this.tabHasStatus(t,da.ACTIVE)))):this.startIndex}else if(typeof t==="number"&&t>=this.startIndex&&t<=this.tabs.length&&this.isActivableTab(this.tabs[t-this.startIndex])){this.tabs.forEach(((e,i)=>{const n=i===t-this.startIndex;if(this.tabHasStatus(e,da.ACTIVE)&&!n)e.status=da.VISIBLE;else if(this.isActivableTab(e)&&n)e.status=da.ACTIVE}));this.activeTabChange.emit(t)}else{throw new Error(`<mg-tabs> prop "activeTab" must be a number between ${this.startIndex} and ${this.tabs.length} and new value must be "activable". Passed value: ${r(t)}.`)}}componentWillLoad(){this.watchIdentifier(this.identifier);this.validateLabel(this.label);this.validateItems(this.items);this.validateActiveTab(this.activeTab);this.validateSize(this.size);this.validateSlots()}componentDidLoad(){document.addEventListener("click",this.handleDocumentClick,false)}disconnectedCallback(){document.removeEventListener("keydown",this.handleDocumentClick)}render(){return e("div",{key:"54bad50e0a610aaae267fb34384384a2aa3a2295",class:this.classCollection.join()},e("header",{key:"8bc4f73112f9de115b8558a7d322398b62983fb7",role:"tablist","aria-label":this.label,class:"mg-c-tabs__header"},this.tabs.map(((t,i)=>e("button",{key:t.label,role:"tab",id:this.getElementId(this.identifier,i),class:{[`${this.buttonTabBaseClass}`]:true,[`${this.buttonTabBaseClass}--horizontal`]:true,[`${this.getNavigationButtonClass(da.ACTIVE)}`]:this.tabHasStatus(t,da.ACTIVE),[`${this.getNavigationButtonClass(da.DISABLED)}`]:this.tabHasStatus(t,da.DISABLED),[`${this.getNavigationButtonClass(da.HIDDEN)}`]:this.tabHasStatus(t,da.HIDDEN)},tabindex:this.tabHasStatus(t,da.ACTIVE)?0:-1,"aria-selected":this.tabHasStatus(t,da.ACTIVE).toString(),"aria-controls":this.getElementId(this.tabPanel,i),"aria-disabled":this.tabHasStatus(t,da.DISABLED),onClick:this.handleClick,onKeyDown:this.handleKeydown,"data-index":this.getTabItemIndex(i)},t.icon!==undefined&&e("mg-icon",{icon:t.icon}),t.label,t.badge!==undefined&&e("mg-badge",{variant:"text-color",value:t.badge.value,label:t.badge.label,outline:t.badge.role==="information"}))))),this.tabs.map(((t,i)=>e("article",{key:t.label,role:"tabpanel",id:this.getElementId(this.tabPanel,i),hidden:!this.tabHasStatus(t,da.ACTIVE),"aria-labelledby":this.getElementId(this.identifier,i),tabindex:this.tabHasStatus(t,da.ACTIVE)?0:-1,class:"mg-c-tabs__content-container"},e("slot",{name:this.getElementId("tab_content",i)})))))}get element(){return n(this)}static get watchers(){return{identifier:["watchIdentifier"],label:["validateLabel"],size:["validateSize"],items:["validateItems"],activeTab:["validateActiveTab"]}}};va.style=ua;const fa=["primary","secondary","success","warning","danger","info"];const ba="/*!\n * @prop --mg-c-tag-height: Defines the height of the tag. Default value is `--mg-b-size-24`.\n * @prop --mg-c-tag-border-radius: Defines the border radius of the tag. Default value is `--mg-b-size-radius`.\n * @prop --mg-c-tag-font-size: Defines the font size of the tag. Default value is `--mg-b-font-size-small`.\n */:host{display:inline-block}.mg-c-tag{display:inline-flex;min-height:var(--mg-c-tag-height);box-sizing:border-box;align-items:center;padding:calc((var(--mg-c-tag-height) - 2*var(--mg-b-size-border) - var(--mg-c-tag-font-size)*var(--mg-b-line-height))/2) calc(var(--mg-b-size-8) - var(--mg-b-size-border));border:var(--mg-b-size-border) solid;border-radius:var(--mg-c-tag-border-radius);font-size:var(--mg-c-tag-font-size);font-weight:600;text-align:center;vertical-align:middle}.mg-c-tag.mg-c-tag--primary{border-color:var(--mg-b-color-neutral-110);background-color:var(--mg-b-color-neutral-110);color:var(--mg-b-color-text-on-primary)}.mg-c-tag.mg-c-tag--primary.mg-c-tag--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-neutral-110)}.mg-c-tag.mg-c-tag--primary.mg-c-tag--soft{border-color:var(--mg-b-color-neutral-20);background-color:var(--mg-b-color-neutral-20);color:var(--mg-b-color-dark);font-weight:400}.mg-c-tag.mg-c-tag--primary.mg-c-tag--soft ::slotted(mg-icon){color:var(--mg-b-color-neutral-110)}.mg-c-tag.mg-c-tag--secondary{border-color:var(--mg-b-color-neutral-10);background-color:var(--mg-b-color-neutral-10);color:var(--mg-b-color-text-on-secondary)}.mg-c-tag.mg-c-tag--secondary.mg-c-tag--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-neutral-10)}.mg-c-tag.mg-c-tag--secondary.mg-c-tag--soft{border-color:var(--mg-b-color-neutral-20);background-color:var(--mg-b-color-neutral-20);color:var(--mg-b-color-dark);font-weight:400}.mg-c-tag.mg-c-tag--secondary.mg-c-tag--soft ::slotted(mg-icon){color:var(--mg-b-color-text-on-secondary)}.mg-c-tag.mg-c-tag--danger{border-color:var(--mg-b-color-danger);background-color:var(--mg-b-color-danger);color:var(--mg-b-color-text-on-danger)}.mg-c-tag.mg-c-tag--danger.mg-c-tag--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-danger)}.mg-c-tag.mg-c-tag--danger.mg-c-tag--soft{border-color:var(--mg-b-color-red-20);background-color:var(--mg-b-color-red-20);color:var(--mg-b-color-dark);font-weight:400}.mg-c-tag.mg-c-tag--danger.mg-c-tag--soft ::slotted(mg-icon){color:var(--mg-b-color-danger)}.mg-c-tag.mg-c-tag--info{border-color:var(--mg-b-color-info);background-color:var(--mg-b-color-info);color:var(--mg-b-color-text-on-info)}.mg-c-tag.mg-c-tag--info.mg-c-tag--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-info)}.mg-c-tag.mg-c-tag--info.mg-c-tag--soft{border-color:var(--mg-b-color-blue-20);background-color:var(--mg-b-color-blue-20);color:var(--mg-b-color-dark);font-weight:400}.mg-c-tag.mg-c-tag--info.mg-c-tag--soft ::slotted(mg-icon){color:var(--mg-b-color-info)}.mg-c-tag.mg-c-tag--success{border-color:var(--mg-b-color-success);background-color:var(--mg-b-color-success);color:var(--mg-b-color-text-on-success)}.mg-c-tag.mg-c-tag--success.mg-c-tag--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-success)}.mg-c-tag.mg-c-tag--success.mg-c-tag--soft{border-color:var(--mg-b-color-green-20);background-color:var(--mg-b-color-green-20);color:var(--mg-b-color-dark);font-weight:400}.mg-c-tag.mg-c-tag--success.mg-c-tag--soft ::slotted(mg-icon){color:var(--mg-b-color-success)}.mg-c-tag.mg-c-tag--warning{border-color:var(--mg-b-color-warning);background-color:var(--mg-b-color-warning);color:var(--mg-b-color-text-on-warning)}.mg-c-tag.mg-c-tag--warning.mg-c-tag--outline{background-color:rgba(0,0,0,0);color:var(--mg-b-color-warning)}.mg-c-tag.mg-c-tag--warning.mg-c-tag--soft{border-color:var(--mg-b-color-yellow-20);background-color:var(--mg-b-color-yellow-20);color:var(--mg-b-color-dark);font-weight:400}.mg-c-tag.mg-c-tag--warning.mg-c-tag--soft ::slotted(mg-icon){color:var(--mg-b-color-warning)}::slotted(mg-icon){margin-right:var(--mg-b-size-4)}slot{display:inline-flex;align-items:center}";const wa=ba;const _a=class{constructor(e){t(this,e);this.classOutline="mg-c-tag--outline";this.classSoft="mg-c-tag--soft";this.variant=fa[0];this.outline=undefined;this.soft=undefined;this.classCollection=new s(["mg-c-tag"])}validateVariant(t,e){if(!fa.includes(t)){throw new Error(`<mg-tag> prop "variant" must be one of: ${fa.join(", ")}. Passed value: ${r(t)}.`)}else{if(e!==undefined){this.classCollection.delete(`mg-c-tag--${e}`)}this.classCollection.add(`mg-c-tag--${t}`)}}validateOutline(t){if(t)this.classCollection.add(this.classOutline);else this.classCollection.delete(this.classOutline)}validateSoft(t){if(t&&this.outline)throw new Error('<mg-tag> prop "soft" can NOT be used with prop "outline".');if(t)this.classCollection.add(this.classSoft);else this.classCollection.delete(this.classSoft)}validateTextContent(t){if(!l(t))throw new Error("<mg-tag> slot must contain a text content.")}componentWillLoad(){this.validateVariant(this.variant);this.validateOutline(this.outline);this.validateSoft(this.soft);this.validateTextContent(this.element.textContent)}render(){return e("span",{key:"bb99306c07ea9ef4ee193a6e52c2c211378d34df",class:this.classCollection.join()},e("slot",{key:"0e427b1189217e5d863daf9ed15d35de4832d8dd"}))}get element(){return n(this)}static get watchers(){return{variant:["validateVariant"],outline:["validateOutline"],soft:["validateSoft"]}}};_a.style=wa;const xa={FOCUS:"focus",HOVER_TOOLTIP_ELEMENT:"hoverTooltip",HOVER_TOOLTIPED_ELEMENT:"hoverTooltiped",DISABLE_ON_CLICK:"disableOnClick"};const za="/*!\n * @prop --mg-c-tooltip-border-radius: Defines the border radius of the tooltip. Default value: `--mg-b-size-radius`.\n * @prop --mg-c-tooltip-color-background: Defines the background color of the tooltip. Default value: `--mg-b-color-dark`.\n * @prop --mg-c-tooltip-color-text: Defines the font color of the tooltip. Default value: `--mg-b-color-light`.\n */:host{display:inline-block}";const ya=za;const ka=t=>typeof t==="object"&&["MG-BUTTON","BUTTON"].includes(t.tagName);const Ma=class{constructor(e){t(this,e);this.show=()=>{this.mgTooltipContent.dataset.show="";this.popper.setOptions((t=>Object.assign(Object.assign({},t),{modifiers:[...t.modifiers,{name:"eventListeners",enabled:true}]})));c((()=>{this.windows.forEach((t=>{t.addEventListener("click",this.handleClickOutside,false);t.addEventListener("keydown",this.handlePressEscape,false)}))}))};this.hide=()=>{this.mgTooltipContent.removeAttribute("data-show");this.popper.setOptions((t=>Object.assign(Object.assign({},t),{modifiers:[...t.modifiers,{name:"eventListeners",enabled:false}]})));this.windows.forEach((t=>{t.removeEventListener("click",this.handleClickOutside,false);t.removeEventListener("keyboard",this.handlePressEscape,false)}))};this.handleClickOutside=t=>{if(t.target.closest("mg-tooltip")!==this.element)this.setDisplay(false)};this.handlePressEscape=t=>{if(t.code==="Escape"){this.setDisplay(false);this.resetGuard()}};this.setDisplay=(t,e=true)=>{if(!this.disabled&&e)this.display=t};this.tooltipMouseListenerAction=(t,e,i)=>{if([xa.FOCUS,xa.DISABLE_ON_CLICK].includes(this.guard)){return}this.guard=t;if(e!=="mouseenter"){setTimeout((()=>{this.setDisplay(false,this.guard!==i);this.resetGuard()}),100)}else if(this.guard===xa.HOVER_TOOLTIPED_ELEMENT){this.setDisplay(true)}};this.resetGuard=()=>{this.guard=undefined};this.setMgButtonWrapper=t=>{const e="mg-c-tooltip__mg-button-wrapper";const i=t.parentElement.classList.contains(e);if(t.disabled&&!i){const i=document.createElement("div");i.classList.add(e);t.parentNode.insertBefore(i,t);i.appendChild(t);this.setTooltipedElement(i)}else if(!t.disabled&&i){this.element.firstElementChild.replaceWith(t);this.setTooltipedElement(t)}};this.setPopper=t=>{this.popper=ea(this.tooltipedElement,this.mgTooltipContent,{placement:this.placement,strategy:t,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"flip",options:{fallbackPlacements:["auto"]}}]})};this.setTooltipedElement=t=>{this.tooltipedElement=t;this.tooltipedElement.addEventListener("focus",(()=>{this.guard=xa.FOCUS;this.setDisplay(true)}));this.tooltipedElement.addEventListener("mouseup",(()=>{this.resetGuard()}));this.tooltipedElement.addEventListener("blur",(()=>{this.resetGuard();this.setDisplay(false)}));this.tooltipedElement.addEventListener("mouseenter",(()=>{this.tooltipMouseListenerAction(xa.HOVER_TOOLTIPED_ELEMENT,"mouseenter",xa.HOVER_TOOLTIP_ELEMENT)}));this.tooltipedElement.addEventListener("mouseleave",(()=>{this.tooltipMouseListenerAction(xa.HOVER_TOOLTIPED_ELEMENT,"mouseleave",xa.HOVER_TOOLTIP_ELEMENT)}))};this.setMgButtonMutationObserver=t=>{new MutationObserver((e=>{if(!e.some((t=>["aria-disabled","disabled"].includes(t.attributeName))))return;if(e.some((t=>t.target.disabled&&t.target.disableOnClick))){this.guard=xa.DISABLE_ON_CLICK}if(this.guard===xa.DISABLE_ON_CLICK)return;this.setMgButtonWrapper(t);this.resetGuard();this.popper.update()})).observe(t,{attributes:true})};this.setAriaDescribedby=t=>{if(!t.hasAttribute("aria-describedby")){this.tooltipedElement.setAttribute("aria-describedby",this.identifier)}else{t.setAttribute("aria-describedby",`${[...new Set([...t.getAttribute("aria-describedby").split(" "),this.identifier])].join(" ")}`)}};this.identifier=o("mg-tooltip");this.message=undefined;this.placement="bottom";this.display=false;this.disabled=false}watchIdentifier(t){if(!h(t)){throw new Error(`<mg-tooltip> prop "identifier" value is invalid. Passed value: ${r(t)}.`)}this.renderTooltipContent()}watchMessage(t){if(!l(t)){throw new Error(`<mg-tooltip> prop "message" is required and must be a string. Passed value: ${r(t)}.`)}if(this.mgTooltipContent!==undefined)this.mgTooltipContent.message=t}watchDisplay(t){if(t){this.show()}else{this.hide()}}watchDisabled(t){if(this.hasCustomTabIndex){if(t)this.tooltipedElement.removeAttribute("tabindex");else if(!this.tooltipedElement.hasAttribute("tabindex"))this.tooltipedElement.setAttribute("tabindex","0")}}renderTooltipContent(){if(this.mgTooltipContent!==undefined){this.mgTooltipContent.setAttribute("id",this.identifier)}else{this.mgTooltipContent=document.createElement("mg-tooltip-content");this.mgTooltipContent.setAttribute("slot","content");this.mgTooltipContent.setAttribute("id",this.identifier);const t=document.createElement("div");t.setAttribute("slot","arrow");t.dataset.popperArrow="";this.mgTooltipContent.appendChild(t);this.mgTooltipContent.addEventListener("mouseenter",(()=>{this.tooltipMouseListenerAction(xa.HOVER_TOOLTIP_ELEMENT,"mouseenter",xa.HOVER_TOOLTIPED_ELEMENT)}));this.mgTooltipContent.addEventListener("mouseleave",(()=>{this.tooltipMouseListenerAction(xa.HOVER_TOOLTIP_ELEMENT,"mouseleave",xa.HOVER_TOOLTIPED_ELEMENT)}));this.element.appendChild(this.mgTooltipContent)}}componentWillLoad(){this.windows=z(window);this.renderTooltipContent();this.watchDisabled(this.disabled);this.watchMessage(this.message);this.watchIdentifier(this.identifier)}componentDidLoad(){var t;const e=this.element.querySelector(`*:not(#${this.identifier})`);const i=e.matches(y)?e:(t=e.shadowRoot)===null||t===void 0?void 0:t.querySelector(y);this.setTooltipedElement(i||e);if(ka(e)){this.setMgButtonMutationObserver(e);this.setMgButtonWrapper(e)}if(!this.disabled&&[undefined,null].includes(i)){this.hasCustomTabIndex=true;e.tabIndex=0;e.setAttribute("role","button")}this.setAriaDescribedby(e);this.setPopper(this.element.closest("mg-popover")!==null?"absolute":"fixed");document.addEventListener("keydown",this.handlePressEscape);this.watchDisplay(this.display)}componentDidUpdate(){this.popper.update()}disconnectedCallback(){var t;document.removeEventListener("keydown",this.handlePressEscape);(t=this.windows)===null||t===void 0?void 0:t.forEach((t=>{t.removeEventListener("click",this.handleClickOutside,false);t.removeEventListener("keydown",this.handlePressEscape,false)}))}render(){return e(i,{key:"76fa15330f130c087376fd76188806dbd972fca9"},e("slot",{key:"3ae6087202535e2855cda3b25bd8be886eb37d21"}),e("slot",{key:"b2502789d5270a19b585c4e44b5d7e9f7fffc196",name:"content"}))}get element(){return n(this)}static get watchers(){return{identifier:["watchIdentifier"],message:["watchMessage"],display:["watchDisplay"],disabled:["watchDisabled"]}}};Ma.style=ya;const Ha=':host{z-index:1000;display:none;max-width:var(--mg-b-size-floating-element-max-width);box-sizing:border-box;padding:var(--mg-b-size-4) var(--mg-b-size-8);border-radius:var(--mg-c-tooltip-border-radius);background-color:var(--mg-c-tooltip-color-background);color:var(--mg-c-tooltip-color-text);font-family:var(--mg-b-font-family);font-size:var(--mg-b-font-size);font-weight:400;text-align:start}:host([data-show]){display:block}::slotted([slot=arrow]){visibility:hidden}::slotted([slot=arrow])::before{content:"";transform:rotate(45deg);visibility:visible}::slotted([slot=arrow]),::slotted([slot=arrow])::before{position:absolute;z-index:9999;width:var(--mg-b-size-8);height:var(--mg-b-size-8);background-color:var(--mg-c-tooltip-color-background)}:host([data-popper-placement^=top])>::slotted([slot=arrow]){bottom:calc(-1*var(--mg-b-size-4))}:host([data-popper-placement^=bottom])>::slotted([slot=arrow]){top:calc(-1*var(--mg-b-size-4))}:host([data-popper-placement^=left])>::slotted([slot=arrow]){right:calc(-1*var(--mg-b-size-4))}:host([data-popper-placement^=right])>::slotted([slot=arrow]){left:calc(-1*var(--mg-b-size-4))}';const Ca=Ha;const Va=class{constructor(e){t(this,e);this.message=undefined}render(){return e(i,{key:"2f94fdb8d48e172cc1d1f069ce12d1508e5e7896",role:"tooltip"},e("span",{key:"f075e8392eba2cd1256df7e89b7f20c832dc02e8",innerHTML:this.message,class:"mg-tooltip-content__message"}),e("slot",{key:"5f840ac9a4c9c422dc6e012dd8fbb0637232bd5f",name:"arrow"}))}};Va.style=Ca;export{q as mg_action_more,O as mg_badge,U as mg_button,F as mg_card,J as mg_character_left,Q as mg_details,it as mg_divider,st as mg_form,ut as mg_icon,ft as mg_illustrated_message,Ht as mg_input,Et as mg_input_checkbox,At as mg_input_checkbox_paginated,Tt as mg_input_date,Wt as mg_input_numeric,Nt as mg_input_password,Yt as mg_input_radio,ie as mg_input_select,se as mg_input_text,he as mg_input_textarea,me as mg_input_title,fe as mg_input_toggle,ye as mg_item_more,He as mg_menu,Le as mg_menu_item,Ae as mg_message,Pe as mg_modal,Re as mg_pagination,Ke as mg_panel,aa as mg_popover,sa as mg_popover_content,ha as mg_skip_links,va as mg_tabs,_a as mg_tag,Ma as mg_tooltip,Va as mg_tooltip_content};
|
|
2
|
+
//# sourceMappingURL=p-a17ea0af.entry.js.map
|