Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@maggioli-design-system/mds-dropdown

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maggioli-design-system/mds-dropdown - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

dist/cjs/index-d1a0a511.js

4

dist/cjs/loader.cjs.js

@@ -5,6 +5,6 @@ 'use strict';

const index = require('./index-848b5bd5.js');
const index = require('./index-d1a0a511.js');
/*
Stencil Client Patch Esm v2.17.0 | MIT Licensed | https://stenciljs.com
Stencil Client Patch Esm v2.18.1 | MIT Licensed | https://stenciljs.com
*/

@@ -11,0 +11,0 @@ const patchEsm = () => {

@@ -5,3 +5,4 @@ 'use strict';

const index = require('./index-848b5bd5.js');
const index = require('./index-d1a0a511.js');
const aria = require('@common/aria');

@@ -1352,3 +1353,3 @@ function getSide(placement) {

const mdsDropdownCss = ".visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.mt-\\[25vh\\]{margin-top:25vh}.flex{display:-ms-flexbox;display:flex}.h-\\[2px\\]{height:2px}.h-\\[200vh\\]{height:200vh}.h-\\[100vh\\]{height:100vh}.w-20{width:5rem}.w-full{width:100%}.max-w-\\[350px\\]{max-width:350px}.transform{-webkit-transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.items-center{-ms-flex-align:center;align-items:center}.justify-start{-ms-flex-pack:start;justify-content:flex-start}.justify-end{-ms-flex-pack:end;justify-content:flex-end}.justify-center{-ms-flex-pack:center;justify-content:center}.border{border-width:1px}.bg-brand-maggioli-06{--tw-bg-opacity:1;background-color:rgba(var(--brand-maggioli-06), var(--tw-bg-opacity))}.bg-tone-neutral-08{--tw-bg-opacity:1;background-color:rgba(var(--tone-neutral-08), var(--tw-bg-opacity))}.text-tone-neutral-04{--tw-text-opacity:1;color:rgba(var(--tone-neutral-04), var(--tw-text-opacity))}.text-tone-neutral-02{--tw-text-opacity:1;color:rgba(var(--tone-neutral-02), var(--tw-text-opacity))}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.transition{transition-property:color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;-webkit-transition-property:color, background-color, border-color, fill, stroke, opacity, -webkit-text-decoration-color, -webkit-box-shadow, -webkit-transform, -webkit-filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, fill, stroke, opacity, -webkit-text-decoration-color, -webkit-box-shadow, -webkit-transform, -webkit-filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-box-shadow, -webkit-transform, -webkit-filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms}.ease-out{-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}:host{--background-arrow:var(--background);--background:rgb(var(--tone-neutral));--drop-shadow:drop-shadow(0 10px 8px rgba(0, 0, 0, 0.04)) drop-shadow(0 4px 3px rgba(0, 0, 0, 0.1)) drop-shadow(0 0 1px rgba(0, 0, 0, 0.1));--duration:0.5s;--ease:cubic-bezier(0.19, 1, 0.22, 1);--transform-from:scale(0.9) translateY(-3%);--transform-to:scale(1) translate(0, 0);pointer-events:none;position:fixed;-webkit-box-sizing:border-box;box-sizing:border-box;display:grid;gap:1rem;border-radius:0.5rem;padding:1.5rem;opacity:0;background-color:var(--background);-webkit-filter:var(--drop-shadow);filter:var(--drop-shadow);-webkit-transform:var(--transform-from);transform:var(--transform-from);-webkit-transition-duration:var(--duration);transition-duration:var(--duration);-webkit-transition-property:opacity, -webkit-transform, -webkit-transform-origin;transition-property:opacity, -webkit-transform, -webkit-transform-origin;transition-property:opacity, transform, transform-origin;transition-property:opacity, transform, transform-origin, -webkit-transform, -webkit-transform-origin;-webkit-transition-timing-function:var(--ease);transition-timing-function:var(--ease)}:host([visible]:not([visible=false])){pointer-events:auto;opacity:1;-webkit-transform:var(--transform-to);transform:var(--transform-to)}:host([smooth]:not([smooth=false])){-webkit-transition-property:bottom, left, opacity, right, top, -webkit-transform, -webkit-transform-origin;transition-property:bottom, left, opacity, right, top, -webkit-transform, -webkit-transform-origin;transition-property:bottom, left, opacity, right, top, transform, transform-origin;transition-property:bottom, left, opacity, right, top, transform, transform-origin, -webkit-transform, -webkit-transform-origin}.arrow{pointer-events:none;position:fixed;top:-1rem;display:-ms-flexbox;display:flex;fill:var(--background-arrow);-webkit-transition-duration:var(--duration);transition-duration:var(--duration);-webkit-transition-property:bottom, left, right, top, -webkit-transform, -webkit-transform-origin;transition-property:bottom, left, right, top, -webkit-transform, -webkit-transform-origin;transition-property:bottom, left, right, top, transform, transform-origin;transition-property:bottom, left, right, top, transform, transform-origin, -webkit-transform, -webkit-transform-origin}:host([arrow]:not([arrow=false])[visible]:not([visible=false])) .arrow{-webkit-transition-timing-function:cubic-bezier(0.165, 0.84, 0.44, 1);transition-timing-function:cubic-bezier(0.165, 0.84, 0.44, 1)}:host([arrow]:not([arrow=false]):not([visible]):not([visible=true])) .arrow{-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1)}::slotted(*){position:relative;z-index:10}";
const mdsDropdownCss = ".visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.mt-\\[25vh\\]{margin-top:25vh}.flex{display:-ms-flexbox;display:flex}.h-\\[2px\\]{height:2px}.h-\\[200vh\\]{height:200vh}.h-\\[100vh\\]{height:100vh}.w-20{width:5rem}.w-full{width:100%}.max-w-\\[350px\\]{max-width:350px}.transform{-webkit-transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.items-center{-ms-flex-align:center;align-items:center}.justify-start{-ms-flex-pack:start;justify-content:flex-start}.justify-end{-ms-flex-pack:end;justify-content:flex-end}.justify-center{-ms-flex-pack:center;justify-content:center}.border{border-width:1px}.bg-brand-maggioli-06{--tw-bg-opacity:1;background-color:rgba(var(--brand-maggioli-06), var(--tw-bg-opacity))}.bg-tone-neutral-08{--tw-bg-opacity:1;background-color:rgba(var(--tone-neutral-08), var(--tw-bg-opacity))}.text-tone-neutral-04{--tw-text-opacity:1;color:rgba(var(--tone-neutral-04), var(--tw-text-opacity))}.text-tone-neutral-02{--tw-text-opacity:1;color:rgba(var(--tone-neutral-02), var(--tw-text-opacity))}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.transition{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;-webkit-transition-property:color, background-color, border-color, fill, stroke, opacity, -webkit-text-decoration-color, -webkit-box-shadow, -webkit-transform, -webkit-filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, fill, stroke, opacity, -webkit-text-decoration-color, -webkit-box-shadow, -webkit-transform, -webkit-filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-box-shadow, -webkit-transform, -webkit-filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms}.ease-out{-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}:host{--background-arrow:var(--background);--background:rgb(var(--tone-neutral));--drop-shadow:drop-shadow(0 10px 8px rgba(0, 0, 0, 0.04)) drop-shadow(0 4px 3px rgba(0, 0, 0, 0.1)) drop-shadow(0 0 1px rgba(0, 0, 0, 0.1));--duration:0.5s;--ease:cubic-bezier(0.19, 1, 0.22, 1);--transform-from:scale(0.9) translateY(-3%);--transform-to:scale(1) translate(0, 0);pointer-events:none;position:fixed;-webkit-box-sizing:border-box;box-sizing:border-box;display:grid;gap:1rem;border-radius:0.5rem;padding:1.5rem;opacity:0;background-color:var(--background);-webkit-filter:var(--drop-shadow);filter:var(--drop-shadow);-webkit-transform:var(--transform-from);transform:var(--transform-from);-webkit-transition-duration:var(--duration);transition-duration:var(--duration);-webkit-transition-property:opacity, -webkit-transform, -webkit-transform-origin;transition-property:opacity, -webkit-transform, -webkit-transform-origin;transition-property:opacity, transform, transform-origin;transition-property:opacity, transform, transform-origin, -webkit-transform, -webkit-transform-origin;-webkit-transition-timing-function:var(--ease);transition-timing-function:var(--ease)}:host([visible]:not([visible=false])){pointer-events:auto;opacity:1;-webkit-transform:var(--transform-to);transform:var(--transform-to)}:host([smooth]:not([smooth=false])){-webkit-transition-property:bottom, left, opacity, right, top, -webkit-transform, -webkit-transform-origin;transition-property:bottom, left, opacity, right, top, -webkit-transform, -webkit-transform-origin;transition-property:bottom, left, opacity, right, top, transform, transform-origin;transition-property:bottom, left, opacity, right, top, transform, transform-origin, -webkit-transform, -webkit-transform-origin}.arrow{pointer-events:none;position:fixed;top:-1rem;display:-ms-flexbox;display:flex;fill:var(--background-arrow);-webkit-transition-duration:var(--duration);transition-duration:var(--duration);-webkit-transition-property:bottom, left, right, top, -webkit-transform, -webkit-transform-origin;transition-property:bottom, left, right, top, -webkit-transform, -webkit-transform-origin;transition-property:bottom, left, right, top, transform, transform-origin;transition-property:bottom, left, right, top, transform, transform-origin, -webkit-transform, -webkit-transform-origin}:host([arrow]:not([arrow=false])[visible]:not([visible=false])) .arrow{-webkit-transition-timing-function:cubic-bezier(0.165, 0.84, 0.44, 1);transition-timing-function:cubic-bezier(0.165, 0.84, 0.44, 1)}:host([arrow]:not([arrow=false]):not([visible]):not([visible=true])) .arrow{-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1)}::slotted(*){position:relative;z-index:10}";

@@ -1625,2 +1626,9 @@ const MdsDropdown = class {

}
setAriaAttributes() {
const hostId = aria.setAttributeIfEmpty(this.host, 'id', aria.hashValue(this.target));
aria.setAttributeIfEmpty(this.caller, 'aria-haspopup', 'true');
aria.setAttributeIfEmpty(this.caller, 'aria-controls', hostId);
aria.setAttributeIfEmpty(this.host, 'role', 'menu');
aria.setAttributeIfEmpty(this.host, 'aria-labelledby', this.target);
}
componentDidLoad() {

@@ -1630,2 +1638,3 @@ document.addEventListener('click', this.handleCloseDropdown);

this.caller = document.getElementById(this.target);
this.setAriaAttributes();
if (!this.caller)

@@ -1632,0 +1641,0 @@ return;

'use strict';
const index = require('./index-848b5bd5.js');
const index = require('./index-d1a0a511.js');
/*
Stencil Client Patch Browser v2.17.0 | MIT Licensed | https://stenciljs.com
Stencil Client Patch Browser v2.18.1 | MIT Licensed | https://stenciljs.com
*/

@@ -8,0 +8,0 @@ const patchBrowser = () => {

@@ -7,4 +7,4 @@ {

"name": "@stencil/core",
"version": "2.17.0",
"typescriptVersion": "4.5.4"
"version": "2.18.1",
"typescriptVersion": "4.7.4"
},

@@ -11,0 +11,0 @@ "collections": [],

@@ -1,4 +0,5 @@

import { Component, Element, Event, Host, Listen, Prop, h, Watch } from '@stencil/core';
import { Host, h } from '@stencil/core';
import { arrow, autoPlacement, autoUpdate, computePosition, flip, offset, shift } from '@floating-ui/dom';
import arrowSvg from './assets/arrow.svg';
import { setAttributeIfEmpty, hashValue } from '@common/aria';
export class MdsDropdown {

@@ -276,2 +277,9 @@ constructor() {

}
setAriaAttributes() {
const hostId = setAttributeIfEmpty(this.host, 'id', hashValue(this.target));
setAttributeIfEmpty(this.caller, 'aria-haspopup', 'true');
setAttributeIfEmpty(this.caller, 'aria-controls', hostId);
setAttributeIfEmpty(this.host, 'role', 'menu');
setAttributeIfEmpty(this.host, 'aria-labelledby', this.target);
}
componentDidLoad() {

@@ -281,2 +289,3 @@ document.addEventListener('click', this.handleCloseDropdown);

this.caller = document.getElementById(this.target);
this.setAriaAttributes();
if (!this.caller)

@@ -296,317 +305,327 @@ return;

render() {
return (h(Host, null,
h("div", { class: "arrow", innerHTML: arrowSvg }),
h("slot", null)));
return (h(Host, null, h("div", { class: "arrow", innerHTML: arrowSvg }), h("slot", null)));
}
static get is() { return "mds-dropdown"; }
static get encapsulation() { return "shadow"; }
static get originalStyleUrls() { return {
"$": ["mds-dropdown.css"]
}; }
static get styleUrls() { return {
"$": ["mds-dropdown.css"]
}; }
static get properties() { return {
"arrow": {
"type": "boolean",
"mutable": false,
"complexType": {
"original": "true",
"resolved": "boolean",
"references": {}
static get originalStyleUrls() {
return {
"$": ["mds-dropdown.css"]
};
}
static get styleUrls() {
return {
"$": ["mds-dropdown.css"]
};
}
static get properties() {
return {
"arrow": {
"type": "boolean",
"mutable": false,
"complexType": {
"original": "true",
"resolved": "boolean",
"references": {}
},
"required": false,
"optional": true,
"docs": {
"tags": [],
"text": "If set, the component will have an arrow pointing to the caller."
},
"attribute": "arrow",
"reflect": false,
"defaultValue": "true"
},
"required": false,
"optional": true,
"docs": {
"tags": [],
"text": "If set, the component will have an arrow pointing to the caller."
"arrowPadding": {
"type": "number",
"mutable": false,
"complexType": {
"original": "24",
"resolved": "24",
"references": {}
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": "Sets the distance between arrow and dropdown margins."
},
"attribute": "arrow-padding",
"reflect": false,
"defaultValue": "24"
},
"attribute": "arrow",
"reflect": false,
"defaultValue": "true"
},
"arrowPadding": {
"type": "number",
"mutable": false,
"complexType": {
"original": "24",
"resolved": "24",
"references": {}
"autoPlacement": {
"type": "boolean",
"mutable": false,
"complexType": {
"original": "false",
"resolved": "boolean",
"references": {}
},
"required": false,
"optional": true,
"docs": {
"tags": [],
"text": "If set, the component will be placed automatically near it's caller."
},
"attribute": "auto-placement",
"reflect": false,
"defaultValue": "false"
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": "Sets the distance between arrow and dropdown margins."
"backdrop": {
"type": "boolean",
"mutable": false,
"complexType": {
"original": "false",
"resolved": "boolean",
"references": {}
},
"required": false,
"optional": true,
"docs": {
"tags": [],
"text": "Specifies if the component has a backdrop background"
},
"attribute": "backdrop",
"reflect": false,
"defaultValue": "false"
},
"attribute": "arrow-padding",
"reflect": false,
"defaultValue": "24"
},
"autoPlacement": {
"type": "boolean",
"mutable": false,
"complexType": {
"original": "false",
"resolved": "boolean",
"references": {}
"flip": {
"type": "boolean",
"mutable": false,
"complexType": {
"original": "false",
"resolved": "boolean",
"references": {}
},
"required": false,
"optional": true,
"docs": {
"tags": [],
"text": "Specifies the placement of the component if no space is available where it is placed."
},
"attribute": "flip",
"reflect": false,
"defaultValue": "false"
},
"required": false,
"optional": true,
"docs": {
"tags": [],
"text": "If set, the component will be placed automatically near it's caller."
"target": {
"type": "string",
"mutable": false,
"complexType": {
"original": "string",
"resolved": "string",
"references": {}
},
"required": true,
"optional": false,
"docs": {
"tags": [],
"text": "Specifies the id of the caller element."
},
"attribute": "target",
"reflect": false
},
"attribute": "auto-placement",
"reflect": false,
"defaultValue": "false"
},
"backdrop": {
"type": "boolean",
"mutable": false,
"complexType": {
"original": "false",
"resolved": "boolean",
"references": {}
"offset": {
"type": "number",
"mutable": false,
"complexType": {
"original": "24",
"resolved": "24",
"references": {}
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": "Sets distance between the dropdown and the caller."
},
"attribute": "offset",
"reflect": false,
"defaultValue": "24"
},
"required": false,
"optional": true,
"docs": {
"tags": [],
"text": "Specifies if the component has a backdrop background"
},
"attribute": "backdrop",
"reflect": false,
"defaultValue": "false"
},
"flip": {
"type": "boolean",
"mutable": false,
"complexType": {
"original": "false",
"resolved": "boolean",
"references": {}
},
"required": false,
"optional": true,
"docs": {
"tags": [],
"text": "Specifies the placement of the component if no space is available where it is placed."
},
"attribute": "flip",
"reflect": false,
"defaultValue": "false"
},
"target": {
"type": "string",
"mutable": false,
"complexType": {
"original": "string",
"resolved": "string",
"references": {}
},
"required": true,
"optional": false,
"docs": {
"tags": [],
"text": "Specifies the id of the caller element."
},
"attribute": "target",
"reflect": false
},
"offset": {
"type": "number",
"mutable": false,
"complexType": {
"original": "24",
"resolved": "24",
"references": {}
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": "Sets distance between the dropdown and the caller."
},
"attribute": "offset",
"reflect": false,
"defaultValue": "24"
},
"placement": {
"type": "string",
"mutable": false,
"complexType": {
"original": "FloatingUIPlacement",
"resolved": "\"bottom\" | \"bottom-end\" | \"bottom-start\" | \"left\" | \"left-end\" | \"left-start\" | \"right\" | \"right-end\" | \"right-start\" | \"top\" | \"top-end\" | \"top-start\"",
"references": {
"FloatingUIPlacement": {
"location": "import",
"path": "../../types/floating-ui"
"placement": {
"type": "string",
"mutable": false,
"complexType": {
"original": "FloatingUIPlacement",
"resolved": "\"bottom\" | \"bottom-end\" | \"bottom-start\" | \"left\" | \"left-end\" | \"left-start\" | \"right\" | \"right-end\" | \"right-start\" | \"top\" | \"top-end\" | \"top-start\"",
"references": {
"FloatingUIPlacement": {
"location": "import",
"path": "../../types/floating-ui"
}
}
}
},
"required": false,
"optional": true,
"docs": {
"tags": [],
"text": "Specifies where the component should be placed relative to the caller."
},
"attribute": "placement",
"reflect": false,
"defaultValue": "'bottom'"
},
"required": false,
"optional": true,
"docs": {
"tags": [],
"text": "Specifies where the component should be placed relative to the caller."
"shift": {
"type": "boolean",
"mutable": false,
"complexType": {
"original": "true",
"resolved": "boolean",
"references": {}
},
"required": false,
"optional": true,
"docs": {
"tags": [],
"text": "If set, the component will be kept inside the viewport."
},
"attribute": "shift",
"reflect": false,
"defaultValue": "true"
},
"attribute": "placement",
"reflect": false,
"defaultValue": "'bottom'"
},
"shift": {
"type": "boolean",
"mutable": false,
"complexType": {
"original": "true",
"resolved": "boolean",
"references": {}
"shiftPadding": {
"type": "number",
"mutable": false,
"complexType": {
"original": "24",
"resolved": "24",
"references": {}
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": "Sets a safe area distance between the dropdown and the viewport."
},
"attribute": "shift-padding",
"reflect": false,
"defaultValue": "24"
},
"required": false,
"optional": true,
"docs": {
"tags": [],
"text": "If set, the component will be kept inside the viewport."
"smooth": {
"type": "boolean",
"mutable": false,
"complexType": {
"original": "true",
"resolved": "boolean",
"references": {}
},
"required": false,
"optional": true,
"docs": {
"tags": [],
"text": "If set, the component will follow the caller smoothly, visible when the page scrolls."
},
"attribute": "smooth",
"reflect": false,
"defaultValue": "true"
},
"attribute": "shift",
"reflect": false,
"defaultValue": "true"
},
"shiftPadding": {
"type": "number",
"mutable": false,
"complexType": {
"original": "24",
"resolved": "24",
"references": {}
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": "Sets a safe area distance between the dropdown and the viewport."
},
"attribute": "shift-padding",
"reflect": false,
"defaultValue": "24"
},
"smooth": {
"type": "boolean",
"mutable": false,
"complexType": {
"original": "true",
"resolved": "boolean",
"references": {}
},
"required": false,
"optional": true,
"docs": {
"tags": [],
"text": "If set, the component will follow the caller smoothly, visible when the page scrolls."
},
"attribute": "smooth",
"reflect": false,
"defaultValue": "true"
},
"strategy": {
"type": "string",
"mutable": false,
"complexType": {
"original": "FloatingUIStrategy",
"resolved": "\"absolute\" | \"fixed\"",
"references": {
"FloatingUIStrategy": {
"location": "import",
"path": "../../types/floating-ui"
"strategy": {
"type": "string",
"mutable": false,
"complexType": {
"original": "FloatingUIStrategy",
"resolved": "\"absolute\" | \"fixed\"",
"references": {
"FloatingUIStrategy": {
"location": "import",
"path": "../../types/floating-ui"
}
}
}
},
"required": false,
"optional": true,
"docs": {
"tags": [],
"text": "Sets the CSS position strategy of the component."
},
"attribute": "strategy",
"reflect": false,
"defaultValue": "'fixed'"
},
"required": false,
"optional": true,
"docs": {
"tags": [],
"text": "Sets the CSS position strategy of the component."
},
"attribute": "strategy",
"reflect": false,
"defaultValue": "'fixed'"
},
"visible": {
"type": "boolean",
"mutable": true,
"complexType": {
"original": "boolean",
"resolved": "boolean",
"references": {}
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": "Specifies the visibility of the component."
},
"attribute": "visible",
"reflect": true,
"defaultValue": "false"
}
}; }
static get events() { return [{
"method": "closeDropdown",
"name": "closeDropdown",
"bubbles": true,
"cancelable": true,
"composed": true,
"docs": {
"tags": [],
"text": "Emits when a modal is closed"
},
"complexType": {
"original": "void",
"resolved": "void",
"references": {}
"visible": {
"type": "boolean",
"mutable": true,
"complexType": {
"original": "boolean",
"resolved": "boolean",
"references": {}
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": "Specifies the visibility of the component."
},
"attribute": "visible",
"reflect": true,
"defaultValue": "false"
}
}]; }
};
}
static get events() {
return [{
"method": "closeDropdown",
"name": "closeDropdown",
"bubbles": true,
"cancelable": true,
"composed": true,
"docs": {
"tags": [],
"text": "Emits when a modal is closed"
},
"complexType": {
"original": "void",
"resolved": "void",
"references": {}
}
}];
}
static get elementRef() { return "host"; }
static get watchers() { return [{
"propName": "arrow",
"methodName": "arrowChanged"
}, {
"propName": "arrowPadding",
"methodName": "arrowPaddingChanged"
}, {
"propName": "autoPlacement",
"methodName": "autoPlacementChanged"
}, {
"propName": "backdrop",
"methodName": "backdropChanged"
}, {
"propName": "flip",
"methodName": "flipChanged"
}, {
"propName": "offset",
"methodName": "offsetChanged"
}, {
"propName": "placement",
"methodName": "placementChanged"
}, {
"propName": "shift",
"methodName": "shiftChanged"
}, {
"propName": "shiftPadding",
"methodName": "shiftPaddingChanged"
}, {
"propName": "strategy",
"methodName": "strategyChanged"
}, {
"propName": "visible",
"methodName": "visibleChanged"
}]; }
static get listeners() { return [{
"name": "closeDropdown",
"method": "onCloseListener",
"target": "document",
"capture": false,
"passive": false
}]; }
static get watchers() {
return [{
"propName": "arrow",
"methodName": "arrowChanged"
}, {
"propName": "arrowPadding",
"methodName": "arrowPaddingChanged"
}, {
"propName": "autoPlacement",
"methodName": "autoPlacementChanged"
}, {
"propName": "backdrop",
"methodName": "backdropChanged"
}, {
"propName": "flip",
"methodName": "flipChanged"
}, {
"propName": "offset",
"methodName": "offsetChanged"
}, {
"propName": "placement",
"methodName": "placementChanged"
}, {
"propName": "shift",
"methodName": "shiftChanged"
}, {
"propName": "shiftPadding",
"methodName": "shiftPaddingChanged"
}, {
"propName": "strategy",
"methodName": "strategyChanged"
}, {
"propName": "visible",
"methodName": "visibleChanged"
}];
}
static get listeners() {
return [{
"name": "closeDropdown",
"method": "onCloseListener",
"target": "document",
"capture": false,
"passive": false
}];
}
}
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
for (var p in s)
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")

@@ -73,21 +74,6 @@ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {

var { layout } = _a, args = __rest(_a, ["layout"]);
return h("div", { class: layout },
h("mds-button", { id: "my-dropdown" }, "Show Fred"),
h("mds-dropdown", Object.assign({ target: "my-dropdown" }, args),
h("mds-author", { class: "text-tone-neutral-04" },
h("mds-avatar", { initials: "fb", src: "./fred-brooks-zoom.webp", slot: "avatar", class: "w-20 bg-brand-maggioli-06" }),
h("mds-text", { typography: "h6", class: "text-tone-neutral-02" }, "Fred Brooks"),
h("mds-text", { typography: "caption" }, "Software engineer"),
h("mds-text", { typography: "caption" }, "IT")),
h("mds-text", { typography: "detail", class: "text-tone-neutral-04" }, "Frederick Phillips \"Fred\" Brooks Jr. (born April 19, 1931) is an American computer architect, software engineer, and computer scientist."),
h("mds-hr", { class: "h-[2px] bg-tone-neutral-08" }),
h("mds-button", { class: "justify-start", icon: "mi/baseline/info", variant: "dark", tone: "quiet" }, "User infos"),
h("mds-button", { class: "justify-start", icon: "mi/baseline/settings", variant: "dark", tone: "quiet" }, "Account"),
h("mds-button", { class: "justify-start", icon: "mi/baseline/logout", variant: "dark", tone: "quiet" }, "Exit")));
return h("div", { class: layout }, h("mds-button", { id: "my-dropdown" }, "Show Fred"), h("mds-dropdown", Object.assign({ target: "my-dropdown" }, args), h("mds-author", { class: "text-tone-neutral-04" }, h("mds-avatar", { "aria-describedby": "A protrait of Frederick Phillips Brooks Jr.", initials: "fb", src: "./fred-brooks-zoom.webp", slot: "avatar", class: "w-20 bg-brand-maggioli-06" }), h("mds-text", { typography: "h6", class: "text-tone-neutral-02" }, "Fred Brooks"), h("mds-text", { typography: "caption" }, "Software engineer"), h("mds-text", { typography: "caption" }, "IT")), h("mds-text", { typography: "detail", class: "text-tone-neutral-04" }, "Frederick Phillips \"Fred\" Brooks Jr. (born April 19, 1931) is an American computer architect, software engineer, and computer scientist."), h("mds-hr", { class: "h-[2px] bg-tone-neutral-08" }), h("mds-button", { class: "justify-start", icon: "mi/baseline/info", variant: "dark", tone: "quiet" }, "User infos"), h("mds-button", { class: "justify-start", icon: "mi/baseline/settings", variant: "dark", tone: "quiet" }, "Account"), h("mds-button", { class: "justify-start", icon: "mi/baseline/logout", variant: "dark", tone: "quiet" }, "Exit")));
};
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
export const NoTarget = () => h("div", null,
h("mds-button", { id: "dropdown-trigger" }, "Trigger"),
h("mds-dropdown", null,
h("mds-text", null, "Ciao")));
export const NoTarget = () => h("div", null, h("mds-button", { id: "dropdown-trigger" }, "Trigger"), h("mds-dropdown", null, h("mds-text", null, "Ciao")));
export const Default = Template.bind({});

@@ -94,0 +80,0 @@ Default.args = {

import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
import { setAttributeIfEmpty, hashValue } from '@common/aria';

@@ -1347,3 +1348,3 @@ function getSide(placement) {

const mdsDropdownCss = ".visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.mt-\\[25vh\\]{margin-top:25vh}.flex{display:-ms-flexbox;display:flex}.h-\\[2px\\]{height:2px}.h-\\[200vh\\]{height:200vh}.h-\\[100vh\\]{height:100vh}.w-20{width:5rem}.w-full{width:100%}.max-w-\\[350px\\]{max-width:350px}.transform{-webkit-transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.items-center{-ms-flex-align:center;align-items:center}.justify-start{-ms-flex-pack:start;justify-content:flex-start}.justify-end{-ms-flex-pack:end;justify-content:flex-end}.justify-center{-ms-flex-pack:center;justify-content:center}.border{border-width:1px}.bg-brand-maggioli-06{--tw-bg-opacity:1;background-color:rgba(var(--brand-maggioli-06), var(--tw-bg-opacity))}.bg-tone-neutral-08{--tw-bg-opacity:1;background-color:rgba(var(--tone-neutral-08), var(--tw-bg-opacity))}.text-tone-neutral-04{--tw-text-opacity:1;color:rgba(var(--tone-neutral-04), var(--tw-text-opacity))}.text-tone-neutral-02{--tw-text-opacity:1;color:rgba(var(--tone-neutral-02), var(--tw-text-opacity))}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.transition{transition-property:color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;-webkit-transition-property:color, background-color, border-color, fill, stroke, opacity, -webkit-text-decoration-color, -webkit-box-shadow, -webkit-transform, -webkit-filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, fill, stroke, opacity, -webkit-text-decoration-color, -webkit-box-shadow, -webkit-transform, -webkit-filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-box-shadow, -webkit-transform, -webkit-filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms}.ease-out{-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}:host{--background-arrow:var(--background);--background:rgb(var(--tone-neutral));--drop-shadow:drop-shadow(0 10px 8px rgba(0, 0, 0, 0.04)) drop-shadow(0 4px 3px rgba(0, 0, 0, 0.1)) drop-shadow(0 0 1px rgba(0, 0, 0, 0.1));--duration:0.5s;--ease:cubic-bezier(0.19, 1, 0.22, 1);--transform-from:scale(0.9) translateY(-3%);--transform-to:scale(1) translate(0, 0);pointer-events:none;position:fixed;-webkit-box-sizing:border-box;box-sizing:border-box;display:grid;gap:1rem;border-radius:0.5rem;padding:1.5rem;opacity:0;background-color:var(--background);-webkit-filter:var(--drop-shadow);filter:var(--drop-shadow);-webkit-transform:var(--transform-from);transform:var(--transform-from);-webkit-transition-duration:var(--duration);transition-duration:var(--duration);-webkit-transition-property:opacity, -webkit-transform, -webkit-transform-origin;transition-property:opacity, -webkit-transform, -webkit-transform-origin;transition-property:opacity, transform, transform-origin;transition-property:opacity, transform, transform-origin, -webkit-transform, -webkit-transform-origin;-webkit-transition-timing-function:var(--ease);transition-timing-function:var(--ease)}:host([visible]:not([visible=false])){pointer-events:auto;opacity:1;-webkit-transform:var(--transform-to);transform:var(--transform-to)}:host([smooth]:not([smooth=false])){-webkit-transition-property:bottom, left, opacity, right, top, -webkit-transform, -webkit-transform-origin;transition-property:bottom, left, opacity, right, top, -webkit-transform, -webkit-transform-origin;transition-property:bottom, left, opacity, right, top, transform, transform-origin;transition-property:bottom, left, opacity, right, top, transform, transform-origin, -webkit-transform, -webkit-transform-origin}.arrow{pointer-events:none;position:fixed;top:-1rem;display:-ms-flexbox;display:flex;fill:var(--background-arrow);-webkit-transition-duration:var(--duration);transition-duration:var(--duration);-webkit-transition-property:bottom, left, right, top, -webkit-transform, -webkit-transform-origin;transition-property:bottom, left, right, top, -webkit-transform, -webkit-transform-origin;transition-property:bottom, left, right, top, transform, transform-origin;transition-property:bottom, left, right, top, transform, transform-origin, -webkit-transform, -webkit-transform-origin}:host([arrow]:not([arrow=false])[visible]:not([visible=false])) .arrow{-webkit-transition-timing-function:cubic-bezier(0.165, 0.84, 0.44, 1);transition-timing-function:cubic-bezier(0.165, 0.84, 0.44, 1)}:host([arrow]:not([arrow=false]):not([visible]):not([visible=true])) .arrow{-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1)}::slotted(*){position:relative;z-index:10}";
const mdsDropdownCss = ".visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.mt-\\[25vh\\]{margin-top:25vh}.flex{display:-ms-flexbox;display:flex}.h-\\[2px\\]{height:2px}.h-\\[200vh\\]{height:200vh}.h-\\[100vh\\]{height:100vh}.w-20{width:5rem}.w-full{width:100%}.max-w-\\[350px\\]{max-width:350px}.transform{-webkit-transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.items-center{-ms-flex-align:center;align-items:center}.justify-start{-ms-flex-pack:start;justify-content:flex-start}.justify-end{-ms-flex-pack:end;justify-content:flex-end}.justify-center{-ms-flex-pack:center;justify-content:center}.border{border-width:1px}.bg-brand-maggioli-06{--tw-bg-opacity:1;background-color:rgba(var(--brand-maggioli-06), var(--tw-bg-opacity))}.bg-tone-neutral-08{--tw-bg-opacity:1;background-color:rgba(var(--tone-neutral-08), var(--tw-bg-opacity))}.text-tone-neutral-04{--tw-text-opacity:1;color:rgba(var(--tone-neutral-04), var(--tw-text-opacity))}.text-tone-neutral-02{--tw-text-opacity:1;color:rgba(var(--tone-neutral-02), var(--tw-text-opacity))}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.transition{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;-webkit-transition-property:color, background-color, border-color, fill, stroke, opacity, -webkit-text-decoration-color, -webkit-box-shadow, -webkit-transform, -webkit-filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, fill, stroke, opacity, -webkit-text-decoration-color, -webkit-box-shadow, -webkit-transform, -webkit-filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-box-shadow, -webkit-transform, -webkit-filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms}.ease-out{-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}:host{--background-arrow:var(--background);--background:rgb(var(--tone-neutral));--drop-shadow:drop-shadow(0 10px 8px rgba(0, 0, 0, 0.04)) drop-shadow(0 4px 3px rgba(0, 0, 0, 0.1)) drop-shadow(0 0 1px rgba(0, 0, 0, 0.1));--duration:0.5s;--ease:cubic-bezier(0.19, 1, 0.22, 1);--transform-from:scale(0.9) translateY(-3%);--transform-to:scale(1) translate(0, 0);pointer-events:none;position:fixed;-webkit-box-sizing:border-box;box-sizing:border-box;display:grid;gap:1rem;border-radius:0.5rem;padding:1.5rem;opacity:0;background-color:var(--background);-webkit-filter:var(--drop-shadow);filter:var(--drop-shadow);-webkit-transform:var(--transform-from);transform:var(--transform-from);-webkit-transition-duration:var(--duration);transition-duration:var(--duration);-webkit-transition-property:opacity, -webkit-transform, -webkit-transform-origin;transition-property:opacity, -webkit-transform, -webkit-transform-origin;transition-property:opacity, transform, transform-origin;transition-property:opacity, transform, transform-origin, -webkit-transform, -webkit-transform-origin;-webkit-transition-timing-function:var(--ease);transition-timing-function:var(--ease)}:host([visible]:not([visible=false])){pointer-events:auto;opacity:1;-webkit-transform:var(--transform-to);transform:var(--transform-to)}:host([smooth]:not([smooth=false])){-webkit-transition-property:bottom, left, opacity, right, top, -webkit-transform, -webkit-transform-origin;transition-property:bottom, left, opacity, right, top, -webkit-transform, -webkit-transform-origin;transition-property:bottom, left, opacity, right, top, transform, transform-origin;transition-property:bottom, left, opacity, right, top, transform, transform-origin, -webkit-transform, -webkit-transform-origin}.arrow{pointer-events:none;position:fixed;top:-1rem;display:-ms-flexbox;display:flex;fill:var(--background-arrow);-webkit-transition-duration:var(--duration);transition-duration:var(--duration);-webkit-transition-property:bottom, left, right, top, -webkit-transform, -webkit-transform-origin;transition-property:bottom, left, right, top, -webkit-transform, -webkit-transform-origin;transition-property:bottom, left, right, top, transform, transform-origin;transition-property:bottom, left, right, top, transform, transform-origin, -webkit-transform, -webkit-transform-origin}:host([arrow]:not([arrow=false])[visible]:not([visible=false])) .arrow{-webkit-transition-timing-function:cubic-bezier(0.165, 0.84, 0.44, 1);transition-timing-function:cubic-bezier(0.165, 0.84, 0.44, 1)}:host([arrow]:not([arrow=false]):not([visible]):not([visible=true])) .arrow{-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1)}::slotted(*){position:relative;z-index:10}";

@@ -1622,2 +1623,9 @@ const MdsDropdown$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {

}
setAriaAttributes() {
const hostId = setAttributeIfEmpty(this.host, 'id', hashValue(this.target));
setAttributeIfEmpty(this.caller, 'aria-haspopup', 'true');
setAttributeIfEmpty(this.caller, 'aria-controls', hostId);
setAttributeIfEmpty(this.host, 'role', 'menu');
setAttributeIfEmpty(this.host, 'aria-labelledby', this.target);
}
componentDidLoad() {

@@ -1627,2 +1635,3 @@ document.addEventListener('click', this.handleCloseDropdown);

this.caller = document.getElementById(this.target);
this.setAriaAttributes();
if (!this.caller)

@@ -1629,0 +1638,0 @@ return;

@@ -1,1 +0,1 @@

import{p as promiseResolve,b as bootstrapLazy}from"./index-ac7b4f3d.js";var patchEsm=function(){return promiseResolve()};var defineCustomElements=function(e,o){if(typeof window==="undefined")return Promise.resolve();return patchEsm().then((function(){return bootstrapLazy([["mds-dropdown",[[1,"mds-dropdown",{arrow:[4],arrowPadding:[2,"arrow-padding"],autoPlacement:[4,"auto-placement"],backdrop:[4],flip:[4],target:[1],offset:[2],placement:[1],shift:[4],shiftPadding:[2,"shift-padding"],smooth:[4],strategy:[1],visible:[1540]},[[4,"closeDropdown","onCloseListener"]]]]]],o)}))};export{defineCustomElements};
import{p as promiseResolve,b as bootstrapLazy}from"./index-0116e12a.js";var patchEsm=function(){return promiseResolve()};var defineCustomElements=function(e,o){if(typeof window==="undefined")return Promise.resolve();return patchEsm().then((function(){return bootstrapLazy([["mds-dropdown",[[1,"mds-dropdown",{arrow:[4],arrowPadding:[2,"arrow-padding"],autoPlacement:[4,"auto-placement"],backdrop:[4],flip:[4],target:[1],offset:[2],placement:[1],shift:[4],shiftPadding:[2,"shift-padding"],smooth:[4],strategy:[1],visible:[1540]},[[4,"closeDropdown","onCloseListener"]]]]]],o)}))};export{defineCustomElements};

@@ -1,1 +0,1 @@

var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o))t[o]=e[o]}return t};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(t,e,r,n){function o(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,i){function a(t){try{l(n.next(t))}catch(t){i(t)}}function s(t){try{l(n["throw"](t))}catch(t){i(t)}}function l(t){t.done?r(t.value):o(t.value).then(a,s)}l((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return l([t,e])}}function l(a){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,o&&(i=a[0]&2?o["return"]:a[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;if(o=0,i)a=[a[0]&2,i.value];switch(a[0]){case 0:case 1:i=a;break;case 4:r.label++;return{value:a[1],done:false};case 5:r.label++;o=a[1];a=[0];continue;case 7:a=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){r.label=a[1];break}if(a[0]===6&&r.label<i[1]){r.label=i[1];i=a;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(a);break}if(i[2])r.ops.pop();r.trys.pop();continue}a=e.call(t,r)}catch(t){a=[6,t];o=0}finally{n=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __rest=this&&this.__rest||function(t,e){var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0)r[n]=t[n];if(t!=null&&typeof Object.getOwnPropertySymbols==="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++){if(e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o]))r[n[o]]=t[n[o]]}return r};var __spreadArray=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,i;n<o;n++){if(i||!(n in e)){if(!i)i=Array.prototype.slice.call(e,0,n);i[n]=e[n]}}return t.concat(i||Array.prototype.slice.call(e))};import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-ac7b4f3d.js";function getSide(t){return t.split("-")[0]}function getAlignment(t){return t.split("-")[1]}function getMainAxisFromPlacement(t){return["top","bottom"].includes(getSide(t))?"x":"y"}function getLengthFromAxis(t){return t==="y"?"height":"width"}function computeCoordsFromPlacement(t,e,r){var n=t.reference,o=t.floating;var i=n.x+n.width/2-o.width/2;var a=n.y+n.height/2-o.height/2;var s=getMainAxisFromPlacement(e);var l=getLengthFromAxis(s);var c=n[l]/2-o[l]/2;var f=getSide(e);var u=s==="x";var d;switch(f){case"top":d={x:i,y:n.y-o.height};break;case"bottom":d={x:i,y:n.y+n.height};break;case"right":d={x:n.x+n.width,y:a};break;case"left":d={x:n.x-o.width,y:a};break;default:d={x:n.x,y:n.y}}switch(getAlignment(e)){case"start":d[s]-=c*(r&&u?-1:1);break;case"end":d[s]+=c*(r&&u?-1:1);break}return d}var computePosition$1=function(t,e,r){return __awaiter(void 0,void 0,void 0,(function(){var n,o,i,a,s,l,c,f,u,d,p,g,m,h,v,b,w,y,x,k,_,P,C,E;var A,O;return __generator(this,(function(R){switch(R.label){case 0:n=r.placement,o=n===void 0?"bottom":n,i=r.strategy,a=i===void 0?"absolute":i,s=r.middleware,l=s===void 0?[]:s,c=r.platform;return[4,c.isRTL==null?void 0:c.isRTL(e)];case 1:f=R.sent();return[4,c.getElementRects({reference:t,floating:e,strategy:a})];case 2:u=R.sent();d=computeCoordsFromPlacement(u,o,f),p=d.x,g=d.y;m=o;h={};v=0;R.label=3;case 3:if(!(v<l.length))return[3,11];b=l[v],w=b.name,y=b.fn;return[4,y({x:p,y:g,initialPlacement:o,placement:m,strategy:a,middlewareData:h,rects:u,platform:c,elements:{reference:t,floating:e}})];case 4:x=R.sent(),k=x.x,_=x.y,P=x.data,C=x.reset;p=k!=null?k:p;g=_!=null?_:g;h=__assign(__assign({},h),(A={},A[w]=__assign(__assign({},h[w]),P),A));if(!C)return[3,10];if(!(typeof C==="object"))return[3,9];if(C.placement){m=C.placement}if(!C.rects)return[3,8];if(!(C.rects===true))return[3,6];return[4,c.getElementRects({reference:t,floating:e,strategy:a})];case 5:E=R.sent();return[3,7];case 6:E=C.rects;R.label=7;case 7:u=E;R.label=8;case 8:O=computeCoordsFromPlacement(u,m,f),p=O.x,g=O.y;R.label=9;case 9:v=-1;return[3,10];case 10:v++;return[3,3];case 11:return[2,{x:p,y:g,placement:m,strategy:a,middlewareData:h}]}}))}))};function expandPaddingObject(t){return __assign({top:0,right:0,bottom:0,left:0},t)}function getSideObjectFromPadding(t){return typeof t!=="number"?expandPaddingObject(t):{top:t,right:t,bottom:t,left:t}}function rectToClientRect(t){return __assign(__assign({},t),{top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height})}function detectOverflow(t,e){return __awaiter(this,void 0,void 0,(function(){var r,n,o,i,a,s,l,c,f,u,d,p,g,m,h,v,b,w,y,x,k,_,P,C,E,A,O,R,T,L,S;var D,N;return __generator(this,(function(B){switch(B.label){case 0:if(e===void 0){e={}}n=t.x,o=t.y,i=t.platform,a=t.rects,s=t.elements,l=t.strategy;c=e.boundary,f=c===void 0?"clippingAncestors":c,u=e.rootBoundary,d=u===void 0?"viewport":u,p=e.elementContext,g=p===void 0?"floating":p,m=e.altBoundary,h=m===void 0?false:m,v=e.padding,b=v===void 0?0:v;w=getSideObjectFromPadding(b);y=g==="floating"?"reference":"floating";x=s[h?y:g];_=rectToClientRect;C=(P=i).getClippingRect;D={};return[4,i.isElement==null?void 0:i.isElement(x)];case 1:if(!((r=B.sent())!=null?r:true))return[3,2];E=x;return[3,5];case 2:A=x.contextElement;if(A)return[3,4];return[4,i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)];case 3:A=B.sent();B.label=4;case 4:E=A;B.label=5;case 5:return[4,C.apply(P,[(D.element=E,D.boundary=f,D.rootBoundary=d,D.strategy=l,D)])];case 6:k=_.apply(void 0,[B.sent()]);R=rectToClientRect;if(!i.convertOffsetParentRelativeRectToViewportRelativeRect)return[3,9];S=(L=i).convertOffsetParentRelativeRectToViewportRelativeRect;N={rect:g==="floating"?__assign(__assign({},a.floating),{x:n,y:o}):a.reference};return[4,i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)];case 7:return[4,S.apply(L,[(N.offsetParent=B.sent(),N.strategy=l,N)])];case 8:T=B.sent();return[3,10];case 9:T=a[g];B.label=10;case 10:O=R.apply(void 0,[T]);return[2,{top:k.top-O.top+w.top,bottom:O.bottom-k.bottom+w.bottom,left:k.left-O.left+w.left,right:O.right-k.right+w.right}]}}))}))}var min$1=Math.min;var max$1=Math.max;function within(t,e,r){return max$1(t,min$1(e,r))}var arrow=function(t){return{name:"arrow",options:t,fn:function(e){return __awaiter(this,void 0,void 0,(function(){var r,n,o,i,a,s,l,c,f,u,d,p,g,m,h,v,b,w,y,x,k,_,P,C,E;var A;return __generator(this,(function(O){switch(O.label){case 0:r=t!=null?t:{},n=r.element,o=r.padding,i=o===void 0?0:o;a=e.x,s=e.y,l=e.placement,c=e.rects,f=e.platform;if(n==null){return[2,{}]}u=getSideObjectFromPadding(i);d={x:a,y:s};p=getMainAxisFromPlacement(l);g=getLengthFromAxis(p);return[4,f.getDimensions(n)];case 1:m=O.sent();h=p==="y"?"top":"left";v=p==="y"?"bottom":"right";b=c.reference[g]+c.reference[p]-d[p]-c.floating[g];w=d[p]-c.reference[p];return[4,f.getOffsetParent==null?void 0:f.getOffsetParent(n)];case 2:y=O.sent();x=y?p==="y"?y.clientHeight||0:y.clientWidth||0:0;k=b/2-w/2;_=u[h];P=x-m[g]-u[v];C=x/2-m[g]/2+k;E=within(_,C,P);return[2,{data:(A={},A[p]=E,A.centerOffset=C-E,A)}]}}))}))}}};var hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(t){return t.replace(/left|right|bottom|top/g,(function(t){return hash$1[t]}))}function getAlignmentSides(t,e,r){if(r===void 0){r=false}var n=getAlignment(t);var o=getMainAxisFromPlacement(t);var i=getLengthFromAxis(o);var a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";if(e.reference[i]>e.floating[i]){a=getOppositePlacement(a)}return{main:a,cross:getOppositePlacement(a)}}var hash={start:"end",end:"start"};function getOppositeAlignmentPlacement(t){return t.replace(/start|end/g,(function(t){return hash[t]}))}var sides=["top","right","bottom","left"];var allPlacements=sides.reduce((function(t,e){return t.concat(e,e+"-start",e+"-end")}),[]);function getPlacementList(t,e,r){var n=t?__spreadArray(__spreadArray([],r.filter((function(e){return getAlignment(e)===t})),true),r.filter((function(e){return getAlignment(e)!==t})),true):r.filter((function(t){return getSide(t)===t}));return n.filter((function(r){if(t){return getAlignment(r)===t||(e?getOppositeAlignmentPlacement(r)!==r:false)}return true}))}var autoPlacement=function(t){if(t===void 0){t={}}return{name:"autoPlacement",options:t,fn:function(e){return __awaiter(this,void 0,void 0,(function(){var r,n,o,i,a,s,l,c,f,u,d,p,g,m,h,v,b,w,y,x,k,_,P,C,E,A,O,R,T,L,S,D,N,B;return __generator(this,(function(H){switch(H.label){case 0:s=e.x,l=e.y,c=e.rects,f=e.middlewareData,u=e.placement,d=e.platform,p=e.elements;g=t.alignment,m=g===void 0?null:g,h=t.allowedPlacements,v=h===void 0?allPlacements:h,b=t.autoAlignment,w=b===void 0?true:b,y=__rest(t,["alignment","allowedPlacements","autoAlignment"]);x=getPlacementList(m,w,v);return[4,detectOverflow(e,y)];case 1:k=H.sent();_=(r=(n=f.autoPlacement)==null?void 0:n.index)!=null?r:0;P=x[_];if(P==null){return[2,{}]}O=getAlignmentSides;R=[P,c];return[4,d.isRTL==null?void 0:d.isRTL(p.floating)];case 2:C=O.apply(void 0,R.concat([H.sent()])),E=C.main,A=C.cross;if(u!==P){return[2,{x:s,y:l,reset:{placement:x[0]}}]}T=[k[getSide(P)],k[E],k[A]];L=__spreadArray(__spreadArray([],(o=(i=f.autoPlacement)==null?void 0:i.overflows)!=null?o:[],true),[{placement:P,overflows:T}],false);S=x[_+1];if(S){return[2,{data:{index:_+1,overflows:L},reset:{placement:S}}]}D=L.slice().sort((function(t,e){return t.overflows[0]-e.overflows[0]}));N=(a=D.find((function(t){var e=t.overflows;return e.every((function(t){return t<=0}))})))==null?void 0:a.placement;B=N!=null?N:D[0].placement;if(B!==u){return[2,{data:{index:_+1,overflows:L},reset:{placement:B}}]}return[2,{}]}}))}))}}};function getExpandedPlacements(t){var e=getOppositePlacement(t);return[getOppositeAlignmentPlacement(t),e,getOppositeAlignmentPlacement(e)]}var flip=function(t){if(t===void 0){t={}}return{name:"flip",options:t,fn:function(e){return __awaiter(this,void 0,void 0,(function(){var r,n,o,i,a,s,l,c,f,u,d,p,g,m,h,v,b,w,y,x,k,_,P,C,E,A,O,R,T,L,S,D,N,B,H,W;return __generator(this,(function(M){switch(M.label){case 0:n=e.placement,o=e.middlewareData,i=e.rects,a=e.initialPlacement,s=e.platform,l=e.elements;c=t.mainAxis,f=c===void 0?true:c,u=t.crossAxis,d=u===void 0?true:u,p=t.fallbackPlacements,g=t.fallbackStrategy,m=g===void 0?"bestFit":g,h=t.flipAlignment,v=h===void 0?true:h,b=__rest(t,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","flipAlignment"]);w=getSide(n);y=w===a;x=p||(y||!v?[getOppositePlacement(a)]:getExpandedPlacements(a));k=__spreadArray([a],x,true);return[4,detectOverflow(e,b)];case 1:_=M.sent();P=[];C=((r=o.flip)==null?void 0:r.overflows)||[];if(f){P.push(_[w])}if(!d)return[3,3];R=getAlignmentSides;T=[n,i];return[4,s.isRTL==null?void 0:s.isRTL(l.floating)];case 2:E=R.apply(void 0,T.concat([M.sent()])),A=E.main,O=E.cross;P.push(_[A],_[O]);M.label=3;case 3:C=__spreadArray(__spreadArray([],C,true),[{placement:n,overflows:P}],false);if(!P.every((function(t){return t<=0}))){D=((L=(S=o.flip)==null?void 0:S.index)!=null?L:0)+1;N=k[D];if(N){return[2,{data:{index:D,overflows:C},reset:{placement:N}}]}B="bottom";switch(m){case"bestFit":{W=(H=C.map((function(t){return[t,t.overflows.filter((function(t){return t>0})).reduce((function(t,e){return t+e}),0)]})).sort((function(t,e){return t[1]-e[1]}))[0])==null?void 0:H[0].placement;if(W){B=W}break}case"initialPlacement":B=a;break}if(n!==B){return[2,{reset:{placement:B}}]}}return[2,{}]}}))}))}}};function convertValueToCoords(t,e,r,n){if(n===void 0){n=false}var o=getSide(t);var i=getAlignment(t);var a=getMainAxisFromPlacement(t)==="x";var s=["left","top"].includes(o)?-1:1;var l=n&&a?-1:1;var c=typeof r==="function"?r(__assign(__assign({},e),{placement:t})):r;var f=typeof c==="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:__assign({mainAxis:0,crossAxis:0,alignmentAxis:null},c),u=f.mainAxis,d=f.crossAxis,p=f.alignmentAxis;if(i&&typeof p==="number"){d=i==="end"?p*-1:p}return a?{x:d*l,y:u*s}:{x:u*s,y:d*l}}var offset=function(t){if(t===void 0){t=0}return{name:"offset",options:t,fn:function(e){return __awaiter(this,void 0,void 0,(function(){var r,n,o,i,a,s,l,c,f;return __generator(this,(function(u){switch(u.label){case 0:r=e.x,n=e.y,o=e.placement,i=e.rects,a=e.platform,s=e.elements;c=convertValueToCoords;f=[o,i,t];return[4,a.isRTL==null?void 0:a.isRTL(s.floating)];case 1:l=c.apply(void 0,f.concat([u.sent()]));return[2,{x:r+l.x,y:n+l.y,data:l}]}}))}))}}};function getCrossAxis(t){return t==="x"?"y":"x"}var shift=function(t){if(t===void 0){t={}}return{name:"shift",options:t,fn:function(e){return __awaiter(this,void 0,void 0,(function(){var r,n,o,i,a,s,l,c,f,u,d,p,g,m,h,v,b,w,y,x,b,w,k,_,P;var C;return __generator(this,(function(E){switch(E.label){case 0:r=e.x,n=e.y,o=e.placement;i=t.mainAxis,a=i===void 0?true:i,s=t.crossAxis,l=s===void 0?false:s,c=t.limiter,f=c===void 0?{fn:function(t){var e=t.x,r=t.y;return{x:e,y:r}}}:c,u=__rest(t,["mainAxis","crossAxis","limiter"]);d={x:r,y:n};return[4,detectOverflow(e,u)];case 1:p=E.sent();g=getMainAxisFromPlacement(getSide(o));m=getCrossAxis(g);h=d[g];v=d[m];if(a){b=g==="y"?"top":"left";w=g==="y"?"bottom":"right";y=h+p[b];x=h-p[w];h=within(y,h,x)}if(l){b=m==="y"?"top":"left";w=m==="y"?"bottom":"right";k=v+p[b];_=v-p[w];v=within(k,v,_)}P=f.fn(__assign(__assign({},e),(C={},C[g]=h,C[m]=v,C)));return[2,__assign(__assign({},P),{data:{x:P.x-r,y:P.y-n}})]}}))}))}}};function isWindow(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function getWindow(t){if(t==null){return window}if(!isWindow(t)){var e=t.ownerDocument;return e?e.defaultView||window:window}return t}function getComputedStyle$1(t){return getWindow(t).getComputedStyle(t)}function getNodeName(t){return isWindow(t)?"":t?(t.nodeName||"").toLowerCase():""}function isHTMLElement(t){return t instanceof getWindow(t).HTMLElement}function isElement(t){return t instanceof getWindow(t).Element}function isNode(t){return t instanceof getWindow(t).Node}function isShadowRoot(t){if(typeof ShadowRoot==="undefined"){return false}var e=getWindow(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function isOverflowElement(t){var e=getComputedStyle$1(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function isTableElement(t){return["table","td","th"].includes(getNodeName(t))}function isContainingBlock(t){var e=navigator.userAgent.toLowerCase().includes("firefox");var r=getComputedStyle$1(t);return r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].includes(r.willChange)||e&&r.willChange==="filter"||e&&(r.filter?r.filter!=="none":false)}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}var min=Math.min;var max=Math.max;var round=Math.round;function getBoundingClientRect(t,e,r){var n,o,i,a;if(e===void 0){e=false}if(r===void 0){r=false}var s=t.getBoundingClientRect();var l=1;var c=1;if(e&&isHTMLElement(t)){l=t.offsetWidth>0?round(s.width)/t.offsetWidth||1:1;c=t.offsetHeight>0?round(s.height)/t.offsetHeight||1:1}var f=isElement(t)?getWindow(t):window;var u=!isLayoutViewport()&&r;var d=(s.left+(u?(n=(o=f.visualViewport)==null?void 0:o.offsetLeft)!=null?n:0:0))/l;var p=(s.top+(u?(i=(a=f.visualViewport)==null?void 0:a.offsetTop)!=null?i:0:0))/c;var g=s.width/l;var m=s.height/c;return{width:g,height:m,top:p,right:d+g,bottom:p+m,left:d,x:d,y:p}}function getDocumentElement(t){return((isNode(t)?t.ownerDocument:t.document)||window.document).documentElement}function getNodeScroll(t){if(isElement(t)){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function getWindowScrollBarX(t){return getBoundingClientRect(getDocumentElement(t)).left+getNodeScroll(t).scrollLeft}function isScaled(t){var e=getBoundingClientRect(t);return round(e.width)!==t.offsetWidth||round(e.height)!==t.offsetHeight}function getRectRelativeToOffsetParent(t,e,r){var n=isHTMLElement(e);var o=getDocumentElement(e);var i=getBoundingClientRect(t,n&&isScaled(e),r==="fixed");var a={scrollLeft:0,scrollTop:0};var s={x:0,y:0};if(n||!n&&r!=="fixed"){if(getNodeName(e)!=="body"||isOverflowElement(o)){a=getNodeScroll(e)}if(isHTMLElement(e)){var l=getBoundingClientRect(e,true);s.x=l.x+e.clientLeft;s.y=l.y+e.clientTop}else if(o){s.x=getWindowScrollBarX(o)}}return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function getParentNode(t){if(getNodeName(t)==="html"){return t}return t.assignedSlot||t.parentNode||(isShadowRoot(t)?t.host:null)||getDocumentElement(t)}function getTrueOffsetParent(t){if(!isHTMLElement(t)||getComputedStyle(t).position==="fixed"){return null}return t.offsetParent}function getContainingBlock(t){var e=getParentNode(t);if(isShadowRoot(e)){e=e.host}while(isHTMLElement(e)&&!["html","body"].includes(getNodeName(e))){if(isContainingBlock(e)){return e}else{e=e.parentNode}}return null}function getOffsetParent(t){var e=getWindow(t);var r=getTrueOffsetParent(t);while(r&&isTableElement(r)&&getComputedStyle(r).position==="static"){r=getTrueOffsetParent(r)}if(r&&(getNodeName(r)==="html"||getNodeName(r)==="body"&&getComputedStyle(r).position==="static"&&!isContainingBlock(r))){return e}return r||getContainingBlock(t)||e}function getDimensions(t){if(isHTMLElement(t)){return{width:t.offsetWidth,height:t.offsetHeight}}var e=getBoundingClientRect(t);return{width:e.width,height:e.height}}function convertOffsetParentRelativeRectToViewportRelativeRect(t){var e=t.rect,r=t.offsetParent,n=t.strategy;var o=isHTMLElement(r);var i=getDocumentElement(r);if(r===i){return e}var a={scrollLeft:0,scrollTop:0};var s={x:0,y:0};if(o||!o&&n!=="fixed"){if(getNodeName(r)!=="body"||isOverflowElement(i)){a=getNodeScroll(r)}if(isHTMLElement(r)){var l=getBoundingClientRect(r,true);s.x=l.x+r.clientLeft;s.y=l.y+r.clientTop}}return __assign(__assign({},e),{x:e.x-a.scrollLeft+s.x,y:e.y-a.scrollTop+s.y})}function getViewportRect(t,e){var r=getWindow(t);var n=getDocumentElement(t);var o=r.visualViewport;var i=n.clientWidth;var a=n.clientHeight;var s=0;var l=0;if(o){i=o.width;a=o.height;var c=isLayoutViewport();if(c||!c&&e==="fixed"){s=o.offsetLeft;l=o.offsetTop}}return{width:i,height:a,x:s,y:l}}function getDocumentRect(t){var e;var r=getDocumentElement(t);var n=getNodeScroll(t);var o=(e=t.ownerDocument)==null?void 0:e.body;var i=max(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0);var a=max(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);var s=-n.scrollLeft+getWindowScrollBarX(t);var l=-n.scrollTop;if(getComputedStyle$1(o||r).direction==="rtl"){s+=max(r.clientWidth,o?o.clientWidth:0)-i}return{width:i,height:a,x:s,y:l}}function getNearestOverflowAncestor(t){var e=getParentNode(t);if(["html","body","#document"].includes(getNodeName(e))){return t.ownerDocument.body}if(isHTMLElement(e)&&isOverflowElement(e)){return e}return getNearestOverflowAncestor(e)}function getOverflowAncestors(t,e){var r;if(e===void 0){e=[]}var n=getNearestOverflowAncestor(t);var o=n===((r=t.ownerDocument)==null?void 0:r.body);var i=getWindow(n);var a=o?[i].concat(i.visualViewport||[],isOverflowElement(n)?n:[]):n;var s=e.concat(a);return o?s:s.concat(getOverflowAncestors(a))}function contains(t,e){var r=e==null?void 0:e.getRootNode==null?void 0:e.getRootNode();if(t!=null&&t.contains(e)){return true}else if(r&&isShadowRoot(r)){var n=e;do{if(n&&t===n){return true}n=n.parentNode||n.host}while(n)}return false}function getInnerBoundingClientRect(t,e){var r=getBoundingClientRect(t,false,e==="fixed");var n=r.top+t.clientTop;var o=r.left+t.clientLeft;return{top:n,left:o,x:o,y:n,right:o+t.clientWidth,bottom:n+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}function getClientRectFromClippingAncestor(t,e,r){if(e==="viewport"){return rectToClientRect(getViewportRect(t,r))}if(isElement(e)){return getInnerBoundingClientRect(e,r)}return rectToClientRect(getDocumentRect(getDocumentElement(t)))}function getClippingAncestors(t){var e=getOverflowAncestors(t);var r=["absolute","fixed"].includes(getComputedStyle$1(t).position);var n=r&&isHTMLElement(t)?getOffsetParent(t):t;if(!isElement(n)){return[]}return e.filter((function(t){return isElement(t)&&contains(t,n)&&getNodeName(t)!=="body"}))}function getClippingRect(t){var e=t.element,r=t.boundary,n=t.rootBoundary,o=t.strategy;var i=r==="clippingAncestors"?getClippingAncestors(e):[].concat(r);var a=__spreadArray(__spreadArray([],i,true),[n],false);var s=a[0];var l=a.reduce((function(t,r){var n=getClientRectFromClippingAncestor(e,r,o);t.top=max(n.top,t.top);t.right=min(n.right,t.right);t.bottom=min(n.bottom,t.bottom);t.left=max(n.left,t.left);return t}),getClientRectFromClippingAncestor(e,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}var platform={getClippingRect:getClippingRect,convertOffsetParentRelativeRectToViewportRelativeRect:convertOffsetParentRelativeRectToViewportRelativeRect,isElement:isElement,getDimensions:getDimensions,getOffsetParent:getOffsetParent,getDocumentElement:getDocumentElement,getElementRects:function(t){var e=t.reference,r=t.floating,n=t.strategy;return{reference:getRectRelativeToOffsetParent(e,getOffsetParent(r),n),floating:__assign(__assign({},getDimensions(r)),{x:0,y:0})}},getClientRects:function(t){return Array.from(t.getClientRects())},isRTL:function(t){return getComputedStyle$1(t).direction==="rtl"}};function autoUpdate(t,e,r,n){if(n===void 0){n={}}var o=n.ancestorScroll,i=o===void 0?true:o,a=n.ancestorResize,s=a===void 0?true:a,l=n.elementResize,c=l===void 0?true:l,f=n.animationFrame,u=f===void 0?false:f;var d=false;var p=i&&!u;var g=s&&!u;var m=c&&!u;var h=p||g?__spreadArray(__spreadArray([],isElement(t)?getOverflowAncestors(t):[],true),getOverflowAncestors(e),true):[];h.forEach((function(t){p&&t.addEventListener("scroll",r,{passive:true});g&&t.addEventListener("resize",r)}));var v=null;if(m){v=new ResizeObserver(r);isElement(t)&&v.observe(t);v.observe(e)}var b;var w=u?getBoundingClientRect(t):null;if(u){y()}function y(){if(d){return}var e=getBoundingClientRect(t);if(w&&(e.x!==w.x||e.y!==w.y||e.width!==w.width||e.height!==w.height)){r()}w=e;b=requestAnimationFrame(y)}return function(){var t;d=true;h.forEach((function(t){p&&t.removeEventListener("scroll",r);g&&t.removeEventListener("resize",r)}));(t=v)==null?void 0:t.disconnect();v=null;if(u){cancelAnimationFrame(b)}}}var computePosition=function(t,e,r){return computePosition$1(t,e,__assign({platform:platform},r))};var arrowSvg='<svg width="30" height="16" viewBox="0 0 30 16" xmlns="http://www.w3.org/2000/svg">\n <path d="M10.2 2.4C12.6 -0.800001 17.4 -0.800001 19.8 2.4L30 16H0L10.2 2.4Z"/>\n</svg>\n';var mdsDropdownCss=".visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.mt-\\[25vh\\]{margin-top:25vh}.flex{display:-ms-flexbox;display:flex}.h-\\[2px\\]{height:2px}.h-\\[200vh\\]{height:200vh}.h-\\[100vh\\]{height:100vh}.w-20{width:5rem}.w-full{width:100%}.max-w-\\[350px\\]{max-width:350px}.transform{-webkit-transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.items-center{-ms-flex-align:center;align-items:center}.justify-start{-ms-flex-pack:start;justify-content:flex-start}.justify-end{-ms-flex-pack:end;justify-content:flex-end}.justify-center{-ms-flex-pack:center;justify-content:center}.border{border-width:1px}.bg-brand-maggioli-06{--tw-bg-opacity:1;background-color:rgba(var(--brand-maggioli-06), var(--tw-bg-opacity))}.bg-tone-neutral-08{--tw-bg-opacity:1;background-color:rgba(var(--tone-neutral-08), var(--tw-bg-opacity))}.text-tone-neutral-04{--tw-text-opacity:1;color:rgba(var(--tone-neutral-04), var(--tw-text-opacity))}.text-tone-neutral-02{--tw-text-opacity:1;color:rgba(var(--tone-neutral-02), var(--tw-text-opacity))}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.transition{transition-property:color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;-webkit-transition-property:color, background-color, border-color, fill, stroke, opacity, -webkit-text-decoration-color, -webkit-box-shadow, -webkit-transform, -webkit-filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, fill, stroke, opacity, -webkit-text-decoration-color, -webkit-box-shadow, -webkit-transform, -webkit-filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-box-shadow, -webkit-transform, -webkit-filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms}.ease-out{-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}:host{--background-arrow:var(--background);--background:rgb(var(--tone-neutral));--drop-shadow:drop-shadow(0 10px 8px rgba(0, 0, 0, 0.04)) drop-shadow(0 4px 3px rgba(0, 0, 0, 0.1)) drop-shadow(0 0 1px rgba(0, 0, 0, 0.1));--duration:0.5s;--ease:cubic-bezier(0.19, 1, 0.22, 1);--transform-from:scale(0.9) translateY(-3%);--transform-to:scale(1) translate(0, 0);pointer-events:none;position:fixed;-webkit-box-sizing:border-box;box-sizing:border-box;display:grid;gap:1rem;border-radius:0.5rem;padding:1.5rem;opacity:0;background-color:var(--background);-webkit-filter:var(--drop-shadow);filter:var(--drop-shadow);-webkit-transform:var(--transform-from);transform:var(--transform-from);-webkit-transition-duration:var(--duration);transition-duration:var(--duration);-webkit-transition-property:opacity, -webkit-transform, -webkit-transform-origin;transition-property:opacity, -webkit-transform, -webkit-transform-origin;transition-property:opacity, transform, transform-origin;transition-property:opacity, transform, transform-origin, -webkit-transform, -webkit-transform-origin;-webkit-transition-timing-function:var(--ease);transition-timing-function:var(--ease)}:host([visible]:not([visible=false])){pointer-events:auto;opacity:1;-webkit-transform:var(--transform-to);transform:var(--transform-to)}:host([smooth]:not([smooth=false])){-webkit-transition-property:bottom, left, opacity, right, top, -webkit-transform, -webkit-transform-origin;transition-property:bottom, left, opacity, right, top, -webkit-transform, -webkit-transform-origin;transition-property:bottom, left, opacity, right, top, transform, transform-origin;transition-property:bottom, left, opacity, right, top, transform, transform-origin, -webkit-transform, -webkit-transform-origin}.arrow{pointer-events:none;position:fixed;top:-1rem;display:-ms-flexbox;display:flex;fill:var(--background-arrow);-webkit-transition-duration:var(--duration);transition-duration:var(--duration);-webkit-transition-property:bottom, left, right, top, -webkit-transform, -webkit-transform-origin;transition-property:bottom, left, right, top, -webkit-transform, -webkit-transform-origin;transition-property:bottom, left, right, top, transform, transform-origin;transition-property:bottom, left, right, top, transform, transform-origin, -webkit-transform, -webkit-transform-origin}:host([arrow]:not([arrow=false])[visible]:not([visible=false])) .arrow{-webkit-transition-timing-function:cubic-bezier(0.165, 0.84, 0.44, 1);transition-timing-function:cubic-bezier(0.165, 0.84, 0.44, 1)}:host([arrow]:not([arrow=false]):not([visible]):not([visible=true])) .arrow{-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1)}::slotted(*){position:relative;z-index:10}";var MdsDropdown=function(){function t(t){var e=this;registerInstance(this,t);this.closeDropdown=createEvent(this,"closeDropdown",7);this.backdropBackgroundVisible="rgba(var(--backdrop-color, 0 0 0) / var(--backdrop-opacity, 0.1))";this.backdropBackgroundHidden="rgba(var(--backdrop-color, 0 0 0) / 0)";this.backdropDuration=2e3;this.backdropId="mds-dropdown-backdrop";this.arrow=true;this.arrowPadding=24;this.autoPlacement=false;this.backdrop=false;this.flip=false;this.offset=24;this.placement="bottom";this.shift=true;this.shiftPadding=24;this.smooth=true;this.strategy="fixed";this.visible=false;this.handleCloseDropdown=function(t){if(t===void 0){t=null}if(!e.visible){return}if(!e.host.contains(t.target)&&t.target!==e.caller){e.closeDropdown.emit()}};this.handleVisibility=function(t){if(t===void 0){t=null}if(t!==null){e.visible=t;return}if(e.visible){e.visible=false;return}e.visible=true;e.updatePosition()};this.callerOnClick=function(){e.handleVisibility()};this.arrowInset=function(t,e){var r=t.arrow;var n={bottom:"",left:"",right:"",top:""};if(r===undefined){return{}}switch(e){case"bottom":n.left=r.x!==null?"".concat(r.x,"px"):"";n.top="100%";break;case"left":n.right="100%";n.top=r.y!==null?"".concat(r.y,"px"):"";break;case"right":n.left="100%";n.top=r.y!==null?"".concat(r.y,"px"):"";break;case"top":n.left=r.x!==null?"".concat(r.x,"px"):"";n.top=null;break}return n};this.arrowTransform=function(t){var r=e.arrow&&e.visible?"scale(1)":"scale(0)";switch(t){case"bottom":r="rotate(180deg) ".concat(r," translate(0, -100%)");break;case"left":r="rotate(-90deg) ".concat(r," translate(50%, -50%)");break;case"right":r="rotate(90deg) ".concat(r," translate(-50%, -50%)");break;case"top":r="rotate(0deg) ".concat(r," translate(0, 0)");break}return{transform:r}};this.arrowTransformOrigin=function(t){switch(t){case"bottom":return{transformOrigin:"center top"};case"left":return{transformOrigin:"right center"};case"right":return{transformOrigin:"left center"};case"top":return{transformOrigin:"center bottom"};default:return{transformOrigin:"center top"}}};this.updatePosition=function(){if(!e.caller)return;var t=[];var r={};if(e.shiftPadding){r.padding=e.shiftPadding}if(e.autoPlacement){t.push(autoPlacement())}if(e.offset){t.push(offset(e.offset))}if(!e.autoPlacement&&e.flip){t.push(flip(r))}if(e.shift){t.push(shift(r))}if(e.arrow){t.push(arrow({element:e.arrowEl,padding:e.arrowPadding}))}computePosition(e.caller,e.host,{middleware:t,placement:e.placement,strategy:e.strategy}).then((function(t){var r=t.x,n=t.y,o=t.placement,i=t.middlewareData;Object.assign(e.host.style,{left:"".concat(r,"px"),top:"".concat(n,"px")});var a={};var s={top:"bottom",right:"left",bottom:"top",left:"right"}[o.split("-")[0]];Object.assign(a,e.arrowTransform(s));Object.assign(a,e.arrowInset(i,s));Object.assign(a,e.arrowTransformOrigin(s));Object.assign(e.arrowEl.style,a)}))}}t.prototype.onCloseListener=function(){this.handleVisibility(false)};t.prototype.attachBackdrop=function(){var t=this;if(!this.backdropEl){this.backdropEl=document.createElement("div");this.backdropEl.style.backgroundColor=this.backdropBackgroundHidden;this.backdropEl.className=this.backdropId;this.backdropEl.style.inset="0";this.backdropEl.style.pointerEvents="none";this.backdropEl.style.position="fixed";this.backdropEl.style.transition="background-color ".concat(this.backdropDuration/1e4,"s ease-out");this.backdropEl.style.zIndex=(Number(this.host.style.zIndex)-1).toString();document.body.appendChild(this.backdropEl)}clearTimeout(this.backdropTimer);this.backdropTimer=setTimeout((function(){t.backdropEl.style.backgroundColor=t.backdropBackgroundVisible}),1)};t.prototype.detachBackdrop=function(){var t=this;if(!this.backdropEl){return}this.backdropEl.style.backgroundColor="transparent";clearTimeout(this.backdropTimer);this.backdropTimer=setTimeout((function(){t.backdropEl.remove();t.backdropEl=null}),this.backdropDuration)};t.prototype.arrowChanged=function(){this.updatePosition()};t.prototype.arrowPaddingChanged=function(){this.updatePosition()};t.prototype.autoPlacementChanged=function(){this.updatePosition()};t.prototype.backdropChanged=function(t){if(!this.visible){return}if(t){this.attachBackdrop();return}this.detachBackdrop()};t.prototype.flipChanged=function(){this.updatePosition()};t.prototype.offsetChanged=function(){this.updatePosition()};t.prototype.placementChanged=function(){this.updatePosition()};t.prototype.shiftChanged=function(){this.updatePosition()};t.prototype.shiftPaddingChanged=function(){this.updatePosition()};t.prototype.strategyChanged=function(){this.updatePosition()};t.prototype.visibleChanged=function(t){this.updatePosition();if(!this.backdrop){return}if(t){this.attachBackdrop();return}this.detachBackdrop()};t.prototype.componentWillLoad=function(){Array.from(document.getElementsByClassName(this.backdropId)).forEach((function(t){t.remove()}))};t.prototype.componentDidLoad=function(){document.addEventListener("click",this.handleCloseDropdown);this.arrowEl=this.host.shadowRoot.querySelector(".arrow");this.caller=document.getElementById(this.target);if(!this.caller)return;this.caller.addEventListener("click",this.callerOnClick.bind(this));this.backdropChanged(this.backdrop)};t.prototype.componentDidRender=function(){if(!this.cleanupAutoUpdate){this.cleanupAutoUpdate=autoUpdate(this.caller,this.host,this.updatePosition)}};t.prototype.disconnectedCallback=function(){this.cleanupAutoUpdate=null};t.prototype.render=function(){return h(Host,null,h("div",{class:"arrow",innerHTML:arrowSvg}),h("slot",null))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{arrow:["arrowChanged"],arrowPadding:["arrowPaddingChanged"],autoPlacement:["autoPlacementChanged"],backdrop:["backdropChanged"],flip:["flipChanged"],offset:["offsetChanged"],placement:["placementChanged"],shift:["shiftChanged"],shiftPadding:["shiftPaddingChanged"],strategy:["strategyChanged"],visible:["visibleChanged"]}},enumerable:false,configurable:true});return t}();MdsDropdown.style=mdsDropdownCss;export{MdsDropdown as mds_dropdown};
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o))t[o]=e[o]}return t};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(t,e,r,n){function o(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,i){function a(t){try{l(n.next(t))}catch(t){i(t)}}function s(t){try{l(n["throw"](t))}catch(t){i(t)}}function l(t){t.done?r(t.value):o(t.value).then(a,s)}l((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return l([t,e])}}function l(a){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,o&&(i=a[0]&2?o["return"]:a[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;if(o=0,i)a=[a[0]&2,i.value];switch(a[0]){case 0:case 1:i=a;break;case 4:r.label++;return{value:a[1],done:false};case 5:r.label++;o=a[1];a=[0];continue;case 7:a=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){r.label=a[1];break}if(a[0]===6&&r.label<i[1]){r.label=i[1];i=a;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(a);break}if(i[2])r.ops.pop();r.trys.pop();continue}a=e.call(t,r)}catch(t){a=[6,t];o=0}finally{n=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __rest=this&&this.__rest||function(t,e){var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0)r[n]=t[n];if(t!=null&&typeof Object.getOwnPropertySymbols==="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++){if(e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o]))r[n[o]]=t[n[o]]}return r};var __spreadArray=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,i;n<o;n++){if(i||!(n in e)){if(!i)i=Array.prototype.slice.call(e,0,n);i[n]=e[n]}}return t.concat(i||Array.prototype.slice.call(e))};import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-0116e12a.js";import{setAttributeIfEmpty,hashValue}from"@common/aria";function getSide(t){return t.split("-")[0]}function getAlignment(t){return t.split("-")[1]}function getMainAxisFromPlacement(t){return["top","bottom"].includes(getSide(t))?"x":"y"}function getLengthFromAxis(t){return t==="y"?"height":"width"}function computeCoordsFromPlacement(t,e,r){var n=t.reference,o=t.floating;var i=n.x+n.width/2-o.width/2;var a=n.y+n.height/2-o.height/2;var s=getMainAxisFromPlacement(e);var l=getLengthFromAxis(s);var c=n[l]/2-o[l]/2;var f=getSide(e);var u=s==="x";var d;switch(f){case"top":d={x:i,y:n.y-o.height};break;case"bottom":d={x:i,y:n.y+n.height};break;case"right":d={x:n.x+n.width,y:a};break;case"left":d={x:n.x-o.width,y:a};break;default:d={x:n.x,y:n.y}}switch(getAlignment(e)){case"start":d[s]-=c*(r&&u?-1:1);break;case"end":d[s]+=c*(r&&u?-1:1);break}return d}var computePosition$1=function(t,e,r){return __awaiter(void 0,void 0,void 0,(function(){var n,o,i,a,s,l,c,f,u,d,p,g,m,h,v,b,w,y,x,k,_,P,A,C;var E,O;return __generator(this,(function(R){switch(R.label){case 0:n=r.placement,o=n===void 0?"bottom":n,i=r.strategy,a=i===void 0?"absolute":i,s=r.middleware,l=s===void 0?[]:s,c=r.platform;return[4,c.isRTL==null?void 0:c.isRTL(e)];case 1:f=R.sent();return[4,c.getElementRects({reference:t,floating:e,strategy:a})];case 2:u=R.sent();d=computeCoordsFromPlacement(u,o,f),p=d.x,g=d.y;m=o;h={};v=0;R.label=3;case 3:if(!(v<l.length))return[3,11];b=l[v],w=b.name,y=b.fn;return[4,y({x:p,y:g,initialPlacement:o,placement:m,strategy:a,middlewareData:h,rects:u,platform:c,elements:{reference:t,floating:e}})];case 4:x=R.sent(),k=x.x,_=x.y,P=x.data,A=x.reset;p=k!=null?k:p;g=_!=null?_:g;h=__assign(__assign({},h),(E={},E[w]=__assign(__assign({},h[w]),P),E));if(!A)return[3,10];if(!(typeof A==="object"))return[3,9];if(A.placement){m=A.placement}if(!A.rects)return[3,8];if(!(A.rects===true))return[3,6];return[4,c.getElementRects({reference:t,floating:e,strategy:a})];case 5:C=R.sent();return[3,7];case 6:C=A.rects;R.label=7;case 7:u=C;R.label=8;case 8:O=computeCoordsFromPlacement(u,m,f),p=O.x,g=O.y;R.label=9;case 9:v=-1;return[3,10];case 10:v++;return[3,3];case 11:return[2,{x:p,y:g,placement:m,strategy:a,middlewareData:h}]}}))}))};function expandPaddingObject(t){return __assign({top:0,right:0,bottom:0,left:0},t)}function getSideObjectFromPadding(t){return typeof t!=="number"?expandPaddingObject(t):{top:t,right:t,bottom:t,left:t}}function rectToClientRect(t){return __assign(__assign({},t),{top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height})}function detectOverflow(t,e){return __awaiter(this,void 0,void 0,(function(){var r,n,o,i,a,s,l,c,f,u,d,p,g,m,h,v,b,w,y,x,k,_,P,A,C,E,O,R,T,L,S;var D,N;return __generator(this,(function(B){switch(B.label){case 0:if(e===void 0){e={}}n=t.x,o=t.y,i=t.platform,a=t.rects,s=t.elements,l=t.strategy;c=e.boundary,f=c===void 0?"clippingAncestors":c,u=e.rootBoundary,d=u===void 0?"viewport":u,p=e.elementContext,g=p===void 0?"floating":p,m=e.altBoundary,h=m===void 0?false:m,v=e.padding,b=v===void 0?0:v;w=getSideObjectFromPadding(b);y=g==="floating"?"reference":"floating";x=s[h?y:g];_=rectToClientRect;A=(P=i).getClippingRect;D={};return[4,i.isElement==null?void 0:i.isElement(x)];case 1:if(!((r=B.sent())!=null?r:true))return[3,2];C=x;return[3,5];case 2:E=x.contextElement;if(E)return[3,4];return[4,i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)];case 3:E=B.sent();B.label=4;case 4:C=E;B.label=5;case 5:return[4,A.apply(P,[(D.element=C,D.boundary=f,D.rootBoundary=d,D.strategy=l,D)])];case 6:k=_.apply(void 0,[B.sent()]);R=rectToClientRect;if(!i.convertOffsetParentRelativeRectToViewportRelativeRect)return[3,9];S=(L=i).convertOffsetParentRelativeRectToViewportRelativeRect;N={rect:g==="floating"?__assign(__assign({},a.floating),{x:n,y:o}):a.reference};return[4,i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)];case 7:return[4,S.apply(L,[(N.offsetParent=B.sent(),N.strategy=l,N)])];case 8:T=B.sent();return[3,10];case 9:T=a[g];B.label=10;case 10:O=R.apply(void 0,[T]);return[2,{top:k.top-O.top+w.top,bottom:O.bottom-k.bottom+w.bottom,left:k.left-O.left+w.left,right:O.right-k.right+w.right}]}}))}))}var min$1=Math.min;var max$1=Math.max;function within(t,e,r){return max$1(t,min$1(e,r))}var arrow=function(t){return{name:"arrow",options:t,fn:function(e){return __awaiter(this,void 0,void 0,(function(){var r,n,o,i,a,s,l,c,f,u,d,p,g,m,h,v,b,w,y,x,k,_,P,A,C;var E;return __generator(this,(function(O){switch(O.label){case 0:r=t!=null?t:{},n=r.element,o=r.padding,i=o===void 0?0:o;a=e.x,s=e.y,l=e.placement,c=e.rects,f=e.platform;if(n==null){return[2,{}]}u=getSideObjectFromPadding(i);d={x:a,y:s};p=getMainAxisFromPlacement(l);g=getLengthFromAxis(p);return[4,f.getDimensions(n)];case 1:m=O.sent();h=p==="y"?"top":"left";v=p==="y"?"bottom":"right";b=c.reference[g]+c.reference[p]-d[p]-c.floating[g];w=d[p]-c.reference[p];return[4,f.getOffsetParent==null?void 0:f.getOffsetParent(n)];case 2:y=O.sent();x=y?p==="y"?y.clientHeight||0:y.clientWidth||0:0;k=b/2-w/2;_=u[h];P=x-m[g]-u[v];A=x/2-m[g]/2+k;C=within(_,A,P);return[2,{data:(E={},E[p]=C,E.centerOffset=A-C,E)}]}}))}))}}};var hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(t){return t.replace(/left|right|bottom|top/g,(function(t){return hash$1[t]}))}function getAlignmentSides(t,e,r){if(r===void 0){r=false}var n=getAlignment(t);var o=getMainAxisFromPlacement(t);var i=getLengthFromAxis(o);var a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";if(e.reference[i]>e.floating[i]){a=getOppositePlacement(a)}return{main:a,cross:getOppositePlacement(a)}}var hash={start:"end",end:"start"};function getOppositeAlignmentPlacement(t){return t.replace(/start|end/g,(function(t){return hash[t]}))}var sides=["top","right","bottom","left"];var allPlacements=sides.reduce((function(t,e){return t.concat(e,e+"-start",e+"-end")}),[]);function getPlacementList(t,e,r){var n=t?__spreadArray(__spreadArray([],r.filter((function(e){return getAlignment(e)===t})),true),r.filter((function(e){return getAlignment(e)!==t})),true):r.filter((function(t){return getSide(t)===t}));return n.filter((function(r){if(t){return getAlignment(r)===t||(e?getOppositeAlignmentPlacement(r)!==r:false)}return true}))}var autoPlacement=function(t){if(t===void 0){t={}}return{name:"autoPlacement",options:t,fn:function(e){return __awaiter(this,void 0,void 0,(function(){var r,n,o,i,a,s,l,c,f,u,d,p,g,m,h,v,b,w,y,x,k,_,P,A,C,E,O,R,T,L,S,D,N,B;return __generator(this,(function(H){switch(H.label){case 0:s=e.x,l=e.y,c=e.rects,f=e.middlewareData,u=e.placement,d=e.platform,p=e.elements;g=t.alignment,m=g===void 0?null:g,h=t.allowedPlacements,v=h===void 0?allPlacements:h,b=t.autoAlignment,w=b===void 0?true:b,y=__rest(t,["alignment","allowedPlacements","autoAlignment"]);x=getPlacementList(m,w,v);return[4,detectOverflow(e,y)];case 1:k=H.sent();_=(r=(n=f.autoPlacement)==null?void 0:n.index)!=null?r:0;P=x[_];if(P==null){return[2,{}]}O=getAlignmentSides;R=[P,c];return[4,d.isRTL==null?void 0:d.isRTL(p.floating)];case 2:A=O.apply(void 0,R.concat([H.sent()])),C=A.main,E=A.cross;if(u!==P){return[2,{x:s,y:l,reset:{placement:x[0]}}]}T=[k[getSide(P)],k[C],k[E]];L=__spreadArray(__spreadArray([],(o=(i=f.autoPlacement)==null?void 0:i.overflows)!=null?o:[],true),[{placement:P,overflows:T}],false);S=x[_+1];if(S){return[2,{data:{index:_+1,overflows:L},reset:{placement:S}}]}D=L.slice().sort((function(t,e){return t.overflows[0]-e.overflows[0]}));N=(a=D.find((function(t){var e=t.overflows;return e.every((function(t){return t<=0}))})))==null?void 0:a.placement;B=N!=null?N:D[0].placement;if(B!==u){return[2,{data:{index:_+1,overflows:L},reset:{placement:B}}]}return[2,{}]}}))}))}}};function getExpandedPlacements(t){var e=getOppositePlacement(t);return[getOppositeAlignmentPlacement(t),e,getOppositeAlignmentPlacement(e)]}var flip=function(t){if(t===void 0){t={}}return{name:"flip",options:t,fn:function(e){return __awaiter(this,void 0,void 0,(function(){var r,n,o,i,a,s,l,c,f,u,d,p,g,m,h,v,b,w,y,x,k,_,P,A,C,E,O,R,T,L,S,D,N,B,H,W;return __generator(this,(function(M){switch(M.label){case 0:n=e.placement,o=e.middlewareData,i=e.rects,a=e.initialPlacement,s=e.platform,l=e.elements;c=t.mainAxis,f=c===void 0?true:c,u=t.crossAxis,d=u===void 0?true:u,p=t.fallbackPlacements,g=t.fallbackStrategy,m=g===void 0?"bestFit":g,h=t.flipAlignment,v=h===void 0?true:h,b=__rest(t,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","flipAlignment"]);w=getSide(n);y=w===a;x=p||(y||!v?[getOppositePlacement(a)]:getExpandedPlacements(a));k=__spreadArray([a],x,true);return[4,detectOverflow(e,b)];case 1:_=M.sent();P=[];A=((r=o.flip)==null?void 0:r.overflows)||[];if(f){P.push(_[w])}if(!d)return[3,3];R=getAlignmentSides;T=[n,i];return[4,s.isRTL==null?void 0:s.isRTL(l.floating)];case 2:C=R.apply(void 0,T.concat([M.sent()])),E=C.main,O=C.cross;P.push(_[E],_[O]);M.label=3;case 3:A=__spreadArray(__spreadArray([],A,true),[{placement:n,overflows:P}],false);if(!P.every((function(t){return t<=0}))){D=((L=(S=o.flip)==null?void 0:S.index)!=null?L:0)+1;N=k[D];if(N){return[2,{data:{index:D,overflows:A},reset:{placement:N}}]}B="bottom";switch(m){case"bestFit":{W=(H=A.map((function(t){return[t,t.overflows.filter((function(t){return t>0})).reduce((function(t,e){return t+e}),0)]})).sort((function(t,e){return t[1]-e[1]}))[0])==null?void 0:H[0].placement;if(W){B=W}break}case"initialPlacement":B=a;break}if(n!==B){return[2,{reset:{placement:B}}]}}return[2,{}]}}))}))}}};function convertValueToCoords(t,e,r,n){if(n===void 0){n=false}var o=getSide(t);var i=getAlignment(t);var a=getMainAxisFromPlacement(t)==="x";var s=["left","top"].includes(o)?-1:1;var l=n&&a?-1:1;var c=typeof r==="function"?r(__assign(__assign({},e),{placement:t})):r;var f=typeof c==="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:__assign({mainAxis:0,crossAxis:0,alignmentAxis:null},c),u=f.mainAxis,d=f.crossAxis,p=f.alignmentAxis;if(i&&typeof p==="number"){d=i==="end"?p*-1:p}return a?{x:d*l,y:u*s}:{x:u*s,y:d*l}}var offset=function(t){if(t===void 0){t=0}return{name:"offset",options:t,fn:function(e){return __awaiter(this,void 0,void 0,(function(){var r,n,o,i,a,s,l,c,f;return __generator(this,(function(u){switch(u.label){case 0:r=e.x,n=e.y,o=e.placement,i=e.rects,a=e.platform,s=e.elements;c=convertValueToCoords;f=[o,i,t];return[4,a.isRTL==null?void 0:a.isRTL(s.floating)];case 1:l=c.apply(void 0,f.concat([u.sent()]));return[2,{x:r+l.x,y:n+l.y,data:l}]}}))}))}}};function getCrossAxis(t){return t==="x"?"y":"x"}var shift=function(t){if(t===void 0){t={}}return{name:"shift",options:t,fn:function(e){return __awaiter(this,void 0,void 0,(function(){var r,n,o,i,a,s,l,c,f,u,d,p,g,m,h,v,b,w,y,x,b,w,k,_,P;var A;return __generator(this,(function(C){switch(C.label){case 0:r=e.x,n=e.y,o=e.placement;i=t.mainAxis,a=i===void 0?true:i,s=t.crossAxis,l=s===void 0?false:s,c=t.limiter,f=c===void 0?{fn:function(t){var e=t.x,r=t.y;return{x:e,y:r}}}:c,u=__rest(t,["mainAxis","crossAxis","limiter"]);d={x:r,y:n};return[4,detectOverflow(e,u)];case 1:p=C.sent();g=getMainAxisFromPlacement(getSide(o));m=getCrossAxis(g);h=d[g];v=d[m];if(a){b=g==="y"?"top":"left";w=g==="y"?"bottom":"right";y=h+p[b];x=h-p[w];h=within(y,h,x)}if(l){b=m==="y"?"top":"left";w=m==="y"?"bottom":"right";k=v+p[b];_=v-p[w];v=within(k,v,_)}P=f.fn(__assign(__assign({},e),(A={},A[g]=h,A[m]=v,A)));return[2,__assign(__assign({},P),{data:{x:P.x-r,y:P.y-n}})]}}))}))}}};function isWindow(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function getWindow(t){if(t==null){return window}if(!isWindow(t)){var e=t.ownerDocument;return e?e.defaultView||window:window}return t}function getComputedStyle$1(t){return getWindow(t).getComputedStyle(t)}function getNodeName(t){return isWindow(t)?"":t?(t.nodeName||"").toLowerCase():""}function isHTMLElement(t){return t instanceof getWindow(t).HTMLElement}function isElement(t){return t instanceof getWindow(t).Element}function isNode(t){return t instanceof getWindow(t).Node}function isShadowRoot(t){if(typeof ShadowRoot==="undefined"){return false}var e=getWindow(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function isOverflowElement(t){var e=getComputedStyle$1(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function isTableElement(t){return["table","td","th"].includes(getNodeName(t))}function isContainingBlock(t){var e=navigator.userAgent.toLowerCase().includes("firefox");var r=getComputedStyle$1(t);return r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].includes(r.willChange)||e&&r.willChange==="filter"||e&&(r.filter?r.filter!=="none":false)}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}var min=Math.min;var max=Math.max;var round=Math.round;function getBoundingClientRect(t,e,r){var n,o,i,a;if(e===void 0){e=false}if(r===void 0){r=false}var s=t.getBoundingClientRect();var l=1;var c=1;if(e&&isHTMLElement(t)){l=t.offsetWidth>0?round(s.width)/t.offsetWidth||1:1;c=t.offsetHeight>0?round(s.height)/t.offsetHeight||1:1}var f=isElement(t)?getWindow(t):window;var u=!isLayoutViewport()&&r;var d=(s.left+(u?(n=(o=f.visualViewport)==null?void 0:o.offsetLeft)!=null?n:0:0))/l;var p=(s.top+(u?(i=(a=f.visualViewport)==null?void 0:a.offsetTop)!=null?i:0:0))/c;var g=s.width/l;var m=s.height/c;return{width:g,height:m,top:p,right:d+g,bottom:p+m,left:d,x:d,y:p}}function getDocumentElement(t){return((isNode(t)?t.ownerDocument:t.document)||window.document).documentElement}function getNodeScroll(t){if(isElement(t)){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function getWindowScrollBarX(t){return getBoundingClientRect(getDocumentElement(t)).left+getNodeScroll(t).scrollLeft}function isScaled(t){var e=getBoundingClientRect(t);return round(e.width)!==t.offsetWidth||round(e.height)!==t.offsetHeight}function getRectRelativeToOffsetParent(t,e,r){var n=isHTMLElement(e);var o=getDocumentElement(e);var i=getBoundingClientRect(t,n&&isScaled(e),r==="fixed");var a={scrollLeft:0,scrollTop:0};var s={x:0,y:0};if(n||!n&&r!=="fixed"){if(getNodeName(e)!=="body"||isOverflowElement(o)){a=getNodeScroll(e)}if(isHTMLElement(e)){var l=getBoundingClientRect(e,true);s.x=l.x+e.clientLeft;s.y=l.y+e.clientTop}else if(o){s.x=getWindowScrollBarX(o)}}return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function getParentNode(t){if(getNodeName(t)==="html"){return t}return t.assignedSlot||t.parentNode||(isShadowRoot(t)?t.host:null)||getDocumentElement(t)}function getTrueOffsetParent(t){if(!isHTMLElement(t)||getComputedStyle(t).position==="fixed"){return null}return t.offsetParent}function getContainingBlock(t){var e=getParentNode(t);if(isShadowRoot(e)){e=e.host}while(isHTMLElement(e)&&!["html","body"].includes(getNodeName(e))){if(isContainingBlock(e)){return e}else{e=e.parentNode}}return null}function getOffsetParent(t){var e=getWindow(t);var r=getTrueOffsetParent(t);while(r&&isTableElement(r)&&getComputedStyle(r).position==="static"){r=getTrueOffsetParent(r)}if(r&&(getNodeName(r)==="html"||getNodeName(r)==="body"&&getComputedStyle(r).position==="static"&&!isContainingBlock(r))){return e}return r||getContainingBlock(t)||e}function getDimensions(t){if(isHTMLElement(t)){return{width:t.offsetWidth,height:t.offsetHeight}}var e=getBoundingClientRect(t);return{width:e.width,height:e.height}}function convertOffsetParentRelativeRectToViewportRelativeRect(t){var e=t.rect,r=t.offsetParent,n=t.strategy;var o=isHTMLElement(r);var i=getDocumentElement(r);if(r===i){return e}var a={scrollLeft:0,scrollTop:0};var s={x:0,y:0};if(o||!o&&n!=="fixed"){if(getNodeName(r)!=="body"||isOverflowElement(i)){a=getNodeScroll(r)}if(isHTMLElement(r)){var l=getBoundingClientRect(r,true);s.x=l.x+r.clientLeft;s.y=l.y+r.clientTop}}return __assign(__assign({},e),{x:e.x-a.scrollLeft+s.x,y:e.y-a.scrollTop+s.y})}function getViewportRect(t,e){var r=getWindow(t);var n=getDocumentElement(t);var o=r.visualViewport;var i=n.clientWidth;var a=n.clientHeight;var s=0;var l=0;if(o){i=o.width;a=o.height;var c=isLayoutViewport();if(c||!c&&e==="fixed"){s=o.offsetLeft;l=o.offsetTop}}return{width:i,height:a,x:s,y:l}}function getDocumentRect(t){var e;var r=getDocumentElement(t);var n=getNodeScroll(t);var o=(e=t.ownerDocument)==null?void 0:e.body;var i=max(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0);var a=max(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);var s=-n.scrollLeft+getWindowScrollBarX(t);var l=-n.scrollTop;if(getComputedStyle$1(o||r).direction==="rtl"){s+=max(r.clientWidth,o?o.clientWidth:0)-i}return{width:i,height:a,x:s,y:l}}function getNearestOverflowAncestor(t){var e=getParentNode(t);if(["html","body","#document"].includes(getNodeName(e))){return t.ownerDocument.body}if(isHTMLElement(e)&&isOverflowElement(e)){return e}return getNearestOverflowAncestor(e)}function getOverflowAncestors(t,e){var r;if(e===void 0){e=[]}var n=getNearestOverflowAncestor(t);var o=n===((r=t.ownerDocument)==null?void 0:r.body);var i=getWindow(n);var a=o?[i].concat(i.visualViewport||[],isOverflowElement(n)?n:[]):n;var s=e.concat(a);return o?s:s.concat(getOverflowAncestors(a))}function contains(t,e){var r=e==null?void 0:e.getRootNode==null?void 0:e.getRootNode();if(t!=null&&t.contains(e)){return true}else if(r&&isShadowRoot(r)){var n=e;do{if(n&&t===n){return true}n=n.parentNode||n.host}while(n)}return false}function getInnerBoundingClientRect(t,e){var r=getBoundingClientRect(t,false,e==="fixed");var n=r.top+t.clientTop;var o=r.left+t.clientLeft;return{top:n,left:o,x:o,y:n,right:o+t.clientWidth,bottom:n+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}function getClientRectFromClippingAncestor(t,e,r){if(e==="viewport"){return rectToClientRect(getViewportRect(t,r))}if(isElement(e)){return getInnerBoundingClientRect(e,r)}return rectToClientRect(getDocumentRect(getDocumentElement(t)))}function getClippingAncestors(t){var e=getOverflowAncestors(t);var r=["absolute","fixed"].includes(getComputedStyle$1(t).position);var n=r&&isHTMLElement(t)?getOffsetParent(t):t;if(!isElement(n)){return[]}return e.filter((function(t){return isElement(t)&&contains(t,n)&&getNodeName(t)!=="body"}))}function getClippingRect(t){var e=t.element,r=t.boundary,n=t.rootBoundary,o=t.strategy;var i=r==="clippingAncestors"?getClippingAncestors(e):[].concat(r);var a=__spreadArray(__spreadArray([],i,true),[n],false);var s=a[0];var l=a.reduce((function(t,r){var n=getClientRectFromClippingAncestor(e,r,o);t.top=max(n.top,t.top);t.right=min(n.right,t.right);t.bottom=min(n.bottom,t.bottom);t.left=max(n.left,t.left);return t}),getClientRectFromClippingAncestor(e,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}var platform={getClippingRect:getClippingRect,convertOffsetParentRelativeRectToViewportRelativeRect:convertOffsetParentRelativeRectToViewportRelativeRect,isElement:isElement,getDimensions:getDimensions,getOffsetParent:getOffsetParent,getDocumentElement:getDocumentElement,getElementRects:function(t){var e=t.reference,r=t.floating,n=t.strategy;return{reference:getRectRelativeToOffsetParent(e,getOffsetParent(r),n),floating:__assign(__assign({},getDimensions(r)),{x:0,y:0})}},getClientRects:function(t){return Array.from(t.getClientRects())},isRTL:function(t){return getComputedStyle$1(t).direction==="rtl"}};function autoUpdate(t,e,r,n){if(n===void 0){n={}}var o=n.ancestorScroll,i=o===void 0?true:o,a=n.ancestorResize,s=a===void 0?true:a,l=n.elementResize,c=l===void 0?true:l,f=n.animationFrame,u=f===void 0?false:f;var d=false;var p=i&&!u;var g=s&&!u;var m=c&&!u;var h=p||g?__spreadArray(__spreadArray([],isElement(t)?getOverflowAncestors(t):[],true),getOverflowAncestors(e),true):[];h.forEach((function(t){p&&t.addEventListener("scroll",r,{passive:true});g&&t.addEventListener("resize",r)}));var v=null;if(m){v=new ResizeObserver(r);isElement(t)&&v.observe(t);v.observe(e)}var b;var w=u?getBoundingClientRect(t):null;if(u){y()}function y(){if(d){return}var e=getBoundingClientRect(t);if(w&&(e.x!==w.x||e.y!==w.y||e.width!==w.width||e.height!==w.height)){r()}w=e;b=requestAnimationFrame(y)}return function(){var t;d=true;h.forEach((function(t){p&&t.removeEventListener("scroll",r);g&&t.removeEventListener("resize",r)}));(t=v)==null?void 0:t.disconnect();v=null;if(u){cancelAnimationFrame(b)}}}var computePosition=function(t,e,r){return computePosition$1(t,e,__assign({platform:platform},r))};var arrowSvg='<svg width="30" height="16" viewBox="0 0 30 16" xmlns="http://www.w3.org/2000/svg">\n <path d="M10.2 2.4C12.6 -0.800001 17.4 -0.800001 19.8 2.4L30 16H0L10.2 2.4Z"/>\n</svg>\n';var mdsDropdownCss=".visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.mt-\\[25vh\\]{margin-top:25vh}.flex{display:-ms-flexbox;display:flex}.h-\\[2px\\]{height:2px}.h-\\[200vh\\]{height:200vh}.h-\\[100vh\\]{height:100vh}.w-20{width:5rem}.w-full{width:100%}.max-w-\\[350px\\]{max-width:350px}.transform{-webkit-transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.items-center{-ms-flex-align:center;align-items:center}.justify-start{-ms-flex-pack:start;justify-content:flex-start}.justify-end{-ms-flex-pack:end;justify-content:flex-end}.justify-center{-ms-flex-pack:center;justify-content:center}.border{border-width:1px}.bg-brand-maggioli-06{--tw-bg-opacity:1;background-color:rgba(var(--brand-maggioli-06), var(--tw-bg-opacity))}.bg-tone-neutral-08{--tw-bg-opacity:1;background-color:rgba(var(--tone-neutral-08), var(--tw-bg-opacity))}.text-tone-neutral-04{--tw-text-opacity:1;color:rgba(var(--tone-neutral-04), var(--tw-text-opacity))}.text-tone-neutral-02{--tw-text-opacity:1;color:rgba(var(--tone-neutral-02), var(--tw-text-opacity))}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.transition{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;-webkit-transition-property:color, background-color, border-color, fill, stroke, opacity, -webkit-text-decoration-color, -webkit-box-shadow, -webkit-transform, -webkit-filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, fill, stroke, opacity, -webkit-text-decoration-color, -webkit-box-shadow, -webkit-transform, -webkit-filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-box-shadow, -webkit-transform, -webkit-filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms}.ease-out{-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}:host{--background-arrow:var(--background);--background:rgb(var(--tone-neutral));--drop-shadow:drop-shadow(0 10px 8px rgba(0, 0, 0, 0.04)) drop-shadow(0 4px 3px rgba(0, 0, 0, 0.1)) drop-shadow(0 0 1px rgba(0, 0, 0, 0.1));--duration:0.5s;--ease:cubic-bezier(0.19, 1, 0.22, 1);--transform-from:scale(0.9) translateY(-3%);--transform-to:scale(1) translate(0, 0);pointer-events:none;position:fixed;-webkit-box-sizing:border-box;box-sizing:border-box;display:grid;gap:1rem;border-radius:0.5rem;padding:1.5rem;opacity:0;background-color:var(--background);-webkit-filter:var(--drop-shadow);filter:var(--drop-shadow);-webkit-transform:var(--transform-from);transform:var(--transform-from);-webkit-transition-duration:var(--duration);transition-duration:var(--duration);-webkit-transition-property:opacity, -webkit-transform, -webkit-transform-origin;transition-property:opacity, -webkit-transform, -webkit-transform-origin;transition-property:opacity, transform, transform-origin;transition-property:opacity, transform, transform-origin, -webkit-transform, -webkit-transform-origin;-webkit-transition-timing-function:var(--ease);transition-timing-function:var(--ease)}:host([visible]:not([visible=false])){pointer-events:auto;opacity:1;-webkit-transform:var(--transform-to);transform:var(--transform-to)}:host([smooth]:not([smooth=false])){-webkit-transition-property:bottom, left, opacity, right, top, -webkit-transform, -webkit-transform-origin;transition-property:bottom, left, opacity, right, top, -webkit-transform, -webkit-transform-origin;transition-property:bottom, left, opacity, right, top, transform, transform-origin;transition-property:bottom, left, opacity, right, top, transform, transform-origin, -webkit-transform, -webkit-transform-origin}.arrow{pointer-events:none;position:fixed;top:-1rem;display:-ms-flexbox;display:flex;fill:var(--background-arrow);-webkit-transition-duration:var(--duration);transition-duration:var(--duration);-webkit-transition-property:bottom, left, right, top, -webkit-transform, -webkit-transform-origin;transition-property:bottom, left, right, top, -webkit-transform, -webkit-transform-origin;transition-property:bottom, left, right, top, transform, transform-origin;transition-property:bottom, left, right, top, transform, transform-origin, -webkit-transform, -webkit-transform-origin}:host([arrow]:not([arrow=false])[visible]:not([visible=false])) .arrow{-webkit-transition-timing-function:cubic-bezier(0.165, 0.84, 0.44, 1);transition-timing-function:cubic-bezier(0.165, 0.84, 0.44, 1)}:host([arrow]:not([arrow=false]):not([visible]):not([visible=true])) .arrow{-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1)}::slotted(*){position:relative;z-index:10}";var MdsDropdown=function(){function t(t){var e=this;registerInstance(this,t);this.closeDropdown=createEvent(this,"closeDropdown",7);this.backdropBackgroundVisible="rgba(var(--backdrop-color, 0 0 0) / var(--backdrop-opacity, 0.1))";this.backdropBackgroundHidden="rgba(var(--backdrop-color, 0 0 0) / 0)";this.backdropDuration=2e3;this.backdropId="mds-dropdown-backdrop";this.arrow=true;this.arrowPadding=24;this.autoPlacement=false;this.backdrop=false;this.flip=false;this.offset=24;this.placement="bottom";this.shift=true;this.shiftPadding=24;this.smooth=true;this.strategy="fixed";this.visible=false;this.handleCloseDropdown=function(t){if(t===void 0){t=null}if(!e.visible){return}if(!e.host.contains(t.target)&&t.target!==e.caller){e.closeDropdown.emit()}};this.handleVisibility=function(t){if(t===void 0){t=null}if(t!==null){e.visible=t;return}if(e.visible){e.visible=false;return}e.visible=true;e.updatePosition()};this.callerOnClick=function(){e.handleVisibility()};this.arrowInset=function(t,e){var r=t.arrow;var n={bottom:"",left:"",right:"",top:""};if(r===undefined){return{}}switch(e){case"bottom":n.left=r.x!==null?"".concat(r.x,"px"):"";n.top="100%";break;case"left":n.right="100%";n.top=r.y!==null?"".concat(r.y,"px"):"";break;case"right":n.left="100%";n.top=r.y!==null?"".concat(r.y,"px"):"";break;case"top":n.left=r.x!==null?"".concat(r.x,"px"):"";n.top=null;break}return n};this.arrowTransform=function(t){var r=e.arrow&&e.visible?"scale(1)":"scale(0)";switch(t){case"bottom":r="rotate(180deg) ".concat(r," translate(0, -100%)");break;case"left":r="rotate(-90deg) ".concat(r," translate(50%, -50%)");break;case"right":r="rotate(90deg) ".concat(r," translate(-50%, -50%)");break;case"top":r="rotate(0deg) ".concat(r," translate(0, 0)");break}return{transform:r}};this.arrowTransformOrigin=function(t){switch(t){case"bottom":return{transformOrigin:"center top"};case"left":return{transformOrigin:"right center"};case"right":return{transformOrigin:"left center"};case"top":return{transformOrigin:"center bottom"};default:return{transformOrigin:"center top"}}};this.updatePosition=function(){if(!e.caller)return;var t=[];var r={};if(e.shiftPadding){r.padding=e.shiftPadding}if(e.autoPlacement){t.push(autoPlacement())}if(e.offset){t.push(offset(e.offset))}if(!e.autoPlacement&&e.flip){t.push(flip(r))}if(e.shift){t.push(shift(r))}if(e.arrow){t.push(arrow({element:e.arrowEl,padding:e.arrowPadding}))}computePosition(e.caller,e.host,{middleware:t,placement:e.placement,strategy:e.strategy}).then((function(t){var r=t.x,n=t.y,o=t.placement,i=t.middlewareData;Object.assign(e.host.style,{left:"".concat(r,"px"),top:"".concat(n,"px")});var a={};var s={top:"bottom",right:"left",bottom:"top",left:"right"}[o.split("-")[0]];Object.assign(a,e.arrowTransform(s));Object.assign(a,e.arrowInset(i,s));Object.assign(a,e.arrowTransformOrigin(s));Object.assign(e.arrowEl.style,a)}))}}t.prototype.onCloseListener=function(){this.handleVisibility(false)};t.prototype.attachBackdrop=function(){var t=this;if(!this.backdropEl){this.backdropEl=document.createElement("div");this.backdropEl.style.backgroundColor=this.backdropBackgroundHidden;this.backdropEl.className=this.backdropId;this.backdropEl.style.inset="0";this.backdropEl.style.pointerEvents="none";this.backdropEl.style.position="fixed";this.backdropEl.style.transition="background-color ".concat(this.backdropDuration/1e4,"s ease-out");this.backdropEl.style.zIndex=(Number(this.host.style.zIndex)-1).toString();document.body.appendChild(this.backdropEl)}clearTimeout(this.backdropTimer);this.backdropTimer=setTimeout((function(){t.backdropEl.style.backgroundColor=t.backdropBackgroundVisible}),1)};t.prototype.detachBackdrop=function(){var t=this;if(!this.backdropEl){return}this.backdropEl.style.backgroundColor="transparent";clearTimeout(this.backdropTimer);this.backdropTimer=setTimeout((function(){t.backdropEl.remove();t.backdropEl=null}),this.backdropDuration)};t.prototype.arrowChanged=function(){this.updatePosition()};t.prototype.arrowPaddingChanged=function(){this.updatePosition()};t.prototype.autoPlacementChanged=function(){this.updatePosition()};t.prototype.backdropChanged=function(t){if(!this.visible){return}if(t){this.attachBackdrop();return}this.detachBackdrop()};t.prototype.flipChanged=function(){this.updatePosition()};t.prototype.offsetChanged=function(){this.updatePosition()};t.prototype.placementChanged=function(){this.updatePosition()};t.prototype.shiftChanged=function(){this.updatePosition()};t.prototype.shiftPaddingChanged=function(){this.updatePosition()};t.prototype.strategyChanged=function(){this.updatePosition()};t.prototype.visibleChanged=function(t){this.updatePosition();if(!this.backdrop){return}if(t){this.attachBackdrop();return}this.detachBackdrop()};t.prototype.componentWillLoad=function(){Array.from(document.getElementsByClassName(this.backdropId)).forEach((function(t){t.remove()}))};t.prototype.setAriaAttributes=function(){var t=setAttributeIfEmpty(this.host,"id",hashValue(this.target));setAttributeIfEmpty(this.caller,"aria-haspopup","true");setAttributeIfEmpty(this.caller,"aria-controls",t);setAttributeIfEmpty(this.host,"role","menu");setAttributeIfEmpty(this.host,"aria-labelledby",this.target)};t.prototype.componentDidLoad=function(){document.addEventListener("click",this.handleCloseDropdown);this.arrowEl=this.host.shadowRoot.querySelector(".arrow");this.caller=document.getElementById(this.target);this.setAriaAttributes();if(!this.caller)return;this.caller.addEventListener("click",this.callerOnClick.bind(this));this.backdropChanged(this.backdrop)};t.prototype.componentDidRender=function(){if(!this.cleanupAutoUpdate){this.cleanupAutoUpdate=autoUpdate(this.caller,this.host,this.updatePosition)}};t.prototype.disconnectedCallback=function(){this.cleanupAutoUpdate=null};t.prototype.render=function(){return h(Host,null,h("div",{class:"arrow",innerHTML:arrowSvg}),h("slot",null))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{arrow:["arrowChanged"],arrowPadding:["arrowPaddingChanged"],autoPlacement:["autoPlacementChanged"],backdrop:["backdropChanged"],flip:["flipChanged"],offset:["offsetChanged"],placement:["placementChanged"],shift:["shiftChanged"],shiftPadding:["shiftPaddingChanged"],strategy:["strategyChanged"],visible:["visibleChanged"]}},enumerable:false,configurable:true});return t}();MdsDropdown.style=mdsDropdownCss;export{MdsDropdown as mds_dropdown};

@@ -1,1 +0,1 @@

import{p as promiseResolve,b as bootstrapLazy}from"./index-ac7b4f3d.js";var patchBrowser=function(){var r=import.meta.url;var o={};if(r!==""){o.resourcesUrl=new URL(".",r).href}return promiseResolve(o)};patchBrowser().then((function(r){return bootstrapLazy([["mds-dropdown",[[1,"mds-dropdown",{arrow:[4],arrowPadding:[2,"arrow-padding"],autoPlacement:[4,"auto-placement"],backdrop:[4],flip:[4],target:[1],offset:[2],placement:[1],shift:[4],shiftPadding:[2,"shift-padding"],smooth:[4],strategy:[1],visible:[1540]},[[4,"closeDropdown","onCloseListener"]]]]]],r)}));
import{p as promiseResolve,b as bootstrapLazy}from"./index-0116e12a.js";var patchBrowser=function(){var r=import.meta.url;var o={};if(r!==""){o.resourcesUrl=new URL(".",r).href}return promiseResolve(o)};patchBrowser().then((function(r){return bootstrapLazy([["mds-dropdown",[[1,"mds-dropdown",{arrow:[4],arrowPadding:[2,"arrow-padding"],autoPlacement:[4,"auto-placement"],backdrop:[4],flip:[4],target:[1],offset:[2],placement:[1],shift:[4],shiftPadding:[2,"shift-padding"],smooth:[4],strategy:[1],visible:[1540]},[[4,"closeDropdown","onCloseListener"]]]]]],r)}));

@@ -1,5 +0,5 @@

import { p as promiseResolve, b as bootstrapLazy } from './index-ac7b4f3d.js';
import { p as promiseResolve, b as bootstrapLazy } from './index-0116e12a.js';
/*
Stencil Client Patch Esm v2.17.0 | MIT Licensed | https://stenciljs.com
Stencil Client Patch Esm v2.18.1 | MIT Licensed | https://stenciljs.com
*/

@@ -6,0 +6,0 @@ const patchEsm = () => {

@@ -1,2 +0,3 @@

import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-ac7b4f3d.js';
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-0116e12a.js';
import { setAttributeIfEmpty, hashValue } from '@common/aria';

@@ -1347,3 +1348,3 @@ function getSide(placement) {

const mdsDropdownCss = ".visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.mt-\\[25vh\\]{margin-top:25vh}.flex{display:-ms-flexbox;display:flex}.h-\\[2px\\]{height:2px}.h-\\[200vh\\]{height:200vh}.h-\\[100vh\\]{height:100vh}.w-20{width:5rem}.w-full{width:100%}.max-w-\\[350px\\]{max-width:350px}.transform{-webkit-transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.items-center{-ms-flex-align:center;align-items:center}.justify-start{-ms-flex-pack:start;justify-content:flex-start}.justify-end{-ms-flex-pack:end;justify-content:flex-end}.justify-center{-ms-flex-pack:center;justify-content:center}.border{border-width:1px}.bg-brand-maggioli-06{--tw-bg-opacity:1;background-color:rgba(var(--brand-maggioli-06), var(--tw-bg-opacity))}.bg-tone-neutral-08{--tw-bg-opacity:1;background-color:rgba(var(--tone-neutral-08), var(--tw-bg-opacity))}.text-tone-neutral-04{--tw-text-opacity:1;color:rgba(var(--tone-neutral-04), var(--tw-text-opacity))}.text-tone-neutral-02{--tw-text-opacity:1;color:rgba(var(--tone-neutral-02), var(--tw-text-opacity))}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.transition{transition-property:color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;-webkit-transition-property:color, background-color, border-color, fill, stroke, opacity, -webkit-text-decoration-color, -webkit-box-shadow, -webkit-transform, -webkit-filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, fill, stroke, opacity, -webkit-text-decoration-color, -webkit-box-shadow, -webkit-transform, -webkit-filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-box-shadow, -webkit-transform, -webkit-filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms}.ease-out{-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}:host{--background-arrow:var(--background);--background:rgb(var(--tone-neutral));--drop-shadow:drop-shadow(0 10px 8px rgba(0, 0, 0, 0.04)) drop-shadow(0 4px 3px rgba(0, 0, 0, 0.1)) drop-shadow(0 0 1px rgba(0, 0, 0, 0.1));--duration:0.5s;--ease:cubic-bezier(0.19, 1, 0.22, 1);--transform-from:scale(0.9) translateY(-3%);--transform-to:scale(1) translate(0, 0);pointer-events:none;position:fixed;-webkit-box-sizing:border-box;box-sizing:border-box;display:grid;gap:1rem;border-radius:0.5rem;padding:1.5rem;opacity:0;background-color:var(--background);-webkit-filter:var(--drop-shadow);filter:var(--drop-shadow);-webkit-transform:var(--transform-from);transform:var(--transform-from);-webkit-transition-duration:var(--duration);transition-duration:var(--duration);-webkit-transition-property:opacity, -webkit-transform, -webkit-transform-origin;transition-property:opacity, -webkit-transform, -webkit-transform-origin;transition-property:opacity, transform, transform-origin;transition-property:opacity, transform, transform-origin, -webkit-transform, -webkit-transform-origin;-webkit-transition-timing-function:var(--ease);transition-timing-function:var(--ease)}:host([visible]:not([visible=false])){pointer-events:auto;opacity:1;-webkit-transform:var(--transform-to);transform:var(--transform-to)}:host([smooth]:not([smooth=false])){-webkit-transition-property:bottom, left, opacity, right, top, -webkit-transform, -webkit-transform-origin;transition-property:bottom, left, opacity, right, top, -webkit-transform, -webkit-transform-origin;transition-property:bottom, left, opacity, right, top, transform, transform-origin;transition-property:bottom, left, opacity, right, top, transform, transform-origin, -webkit-transform, -webkit-transform-origin}.arrow{pointer-events:none;position:fixed;top:-1rem;display:-ms-flexbox;display:flex;fill:var(--background-arrow);-webkit-transition-duration:var(--duration);transition-duration:var(--duration);-webkit-transition-property:bottom, left, right, top, -webkit-transform, -webkit-transform-origin;transition-property:bottom, left, right, top, -webkit-transform, -webkit-transform-origin;transition-property:bottom, left, right, top, transform, transform-origin;transition-property:bottom, left, right, top, transform, transform-origin, -webkit-transform, -webkit-transform-origin}:host([arrow]:not([arrow=false])[visible]:not([visible=false])) .arrow{-webkit-transition-timing-function:cubic-bezier(0.165, 0.84, 0.44, 1);transition-timing-function:cubic-bezier(0.165, 0.84, 0.44, 1)}:host([arrow]:not([arrow=false]):not([visible]):not([visible=true])) .arrow{-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1)}::slotted(*){position:relative;z-index:10}";
const mdsDropdownCss = ".visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.mt-\\[25vh\\]{margin-top:25vh}.flex{display:-ms-flexbox;display:flex}.h-\\[2px\\]{height:2px}.h-\\[200vh\\]{height:200vh}.h-\\[100vh\\]{height:100vh}.w-20{width:5rem}.w-full{width:100%}.max-w-\\[350px\\]{max-width:350px}.transform{-webkit-transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.items-center{-ms-flex-align:center;align-items:center}.justify-start{-ms-flex-pack:start;justify-content:flex-start}.justify-end{-ms-flex-pack:end;justify-content:flex-end}.justify-center{-ms-flex-pack:center;justify-content:center}.border{border-width:1px}.bg-brand-maggioli-06{--tw-bg-opacity:1;background-color:rgba(var(--brand-maggioli-06), var(--tw-bg-opacity))}.bg-tone-neutral-08{--tw-bg-opacity:1;background-color:rgba(var(--tone-neutral-08), var(--tw-bg-opacity))}.text-tone-neutral-04{--tw-text-opacity:1;color:rgba(var(--tone-neutral-04), var(--tw-text-opacity))}.text-tone-neutral-02{--tw-text-opacity:1;color:rgba(var(--tone-neutral-02), var(--tw-text-opacity))}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.transition{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;-webkit-transition-property:color, background-color, border-color, fill, stroke, opacity, -webkit-text-decoration-color, -webkit-box-shadow, -webkit-transform, -webkit-filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, fill, stroke, opacity, -webkit-text-decoration-color, -webkit-box-shadow, -webkit-transform, -webkit-filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-box-shadow, -webkit-transform, -webkit-filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms}.ease-out{-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}:host{--background-arrow:var(--background);--background:rgb(var(--tone-neutral));--drop-shadow:drop-shadow(0 10px 8px rgba(0, 0, 0, 0.04)) drop-shadow(0 4px 3px rgba(0, 0, 0, 0.1)) drop-shadow(0 0 1px rgba(0, 0, 0, 0.1));--duration:0.5s;--ease:cubic-bezier(0.19, 1, 0.22, 1);--transform-from:scale(0.9) translateY(-3%);--transform-to:scale(1) translate(0, 0);pointer-events:none;position:fixed;-webkit-box-sizing:border-box;box-sizing:border-box;display:grid;gap:1rem;border-radius:0.5rem;padding:1.5rem;opacity:0;background-color:var(--background);-webkit-filter:var(--drop-shadow);filter:var(--drop-shadow);-webkit-transform:var(--transform-from);transform:var(--transform-from);-webkit-transition-duration:var(--duration);transition-duration:var(--duration);-webkit-transition-property:opacity, -webkit-transform, -webkit-transform-origin;transition-property:opacity, -webkit-transform, -webkit-transform-origin;transition-property:opacity, transform, transform-origin;transition-property:opacity, transform, transform-origin, -webkit-transform, -webkit-transform-origin;-webkit-transition-timing-function:var(--ease);transition-timing-function:var(--ease)}:host([visible]:not([visible=false])){pointer-events:auto;opacity:1;-webkit-transform:var(--transform-to);transform:var(--transform-to)}:host([smooth]:not([smooth=false])){-webkit-transition-property:bottom, left, opacity, right, top, -webkit-transform, -webkit-transform-origin;transition-property:bottom, left, opacity, right, top, -webkit-transform, -webkit-transform-origin;transition-property:bottom, left, opacity, right, top, transform, transform-origin;transition-property:bottom, left, opacity, right, top, transform, transform-origin, -webkit-transform, -webkit-transform-origin}.arrow{pointer-events:none;position:fixed;top:-1rem;display:-ms-flexbox;display:flex;fill:var(--background-arrow);-webkit-transition-duration:var(--duration);transition-duration:var(--duration);-webkit-transition-property:bottom, left, right, top, -webkit-transform, -webkit-transform-origin;transition-property:bottom, left, right, top, -webkit-transform, -webkit-transform-origin;transition-property:bottom, left, right, top, transform, transform-origin;transition-property:bottom, left, right, top, transform, transform-origin, -webkit-transform, -webkit-transform-origin}:host([arrow]:not([arrow=false])[visible]:not([visible=false])) .arrow{-webkit-transition-timing-function:cubic-bezier(0.165, 0.84, 0.44, 1);transition-timing-function:cubic-bezier(0.165, 0.84, 0.44, 1)}:host([arrow]:not([arrow=false]):not([visible]):not([visible=true])) .arrow{-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1)}::slotted(*){position:relative;z-index:10}";

@@ -1620,2 +1621,9 @@ const MdsDropdown = class {

}
setAriaAttributes() {
const hostId = setAttributeIfEmpty(this.host, 'id', hashValue(this.target));
setAttributeIfEmpty(this.caller, 'aria-haspopup', 'true');
setAttributeIfEmpty(this.caller, 'aria-controls', hostId);
setAttributeIfEmpty(this.host, 'role', 'menu');
setAttributeIfEmpty(this.host, 'aria-labelledby', this.target);
}
componentDidLoad() {

@@ -1625,2 +1633,3 @@ document.addEventListener('click', this.handleCloseDropdown);

this.caller = document.getElementById(this.target);
this.setAriaAttributes();
if (!this.caller)

@@ -1627,0 +1636,0 @@ return;

@@ -1,5 +0,5 @@

import { p as promiseResolve, b as bootstrapLazy } from './index-ac7b4f3d.js';
import { p as promiseResolve, b as bootstrapLazy } from './index-0116e12a.js';
/*
Stencil Client Patch Browser v2.17.0 | MIT Licensed | https://stenciljs.com
Stencil Client Patch Browser v2.18.1 | MIT Licensed | https://stenciljs.com
*/

@@ -6,0 +6,0 @@ const patchBrowser = () => {

@@ -1,1 +0,1 @@

var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)},StyleNode=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""};function parse(e){return parseCss(lex(e=clean(e)),e)}function clean(e){return e.replace(RX.comments,"").replace(RX.port,"")}function lex(e){var t=new StyleNode;t.start=0,t.end=e.length;for(var r=t,n=0,s=e.length;n<s;n++)if(e[n]===OPEN_BRACE){r.rules||(r.rules=[]);var o=r,a=o.rules[o.rules.length-1]||null;(r=new StyleNode).start=n+1,r.parent=o,r.previous=a,o.rules.push(r)}else e[n]===CLOSE_BRACE&&(r.end=n+1,r=r.parent||t);return t}function parseCss(e,t){var r=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=r.trim(),e.parent){var n=e.previous?e.previous.end:e.parent.start;r=(r=(r=_expandUnicodeEscapes(r=t.substring(n,e.start-1))).replace(RX.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var s=e.parsedSelector=e.selector=r.trim();e.atRule=0===s.indexOf(AT_START),e.atRule?0===s.indexOf(MEDIA_START)?e.type=types.MEDIA_RULE:s.match(RX.keyframesRule)&&(e.type=types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(RX.multipleSpaces).pop()):0===s.indexOf(VAR_START)?e.type=types.MIXIN_RULE:e.type=types.STYLE_RULE}var o=e.rules;if(o)for(var a=0,i=o.length,l=void 0;a<i&&(l=o[a]);a++)parseCss(l,t);return e}function _expandUnicodeEscapes(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return"\\"+e}))}var types={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE="{",CLOSE_BRACE="}",RX={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START="--",MEDIA_START="@media",AT_START="@";function findRegex(e,t,r){e.lastIndex=0;var n=t.substring(r).match(e);if(n){var s=r+n.index;return{start:s,end:s+n[0].length}}return null}var VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;function resolveVar(e,t,r){return e[t]?e[t]:r?executeTemplate(r,e):""}function findVarEndIndex(e,t){for(var r=0,n=t;n<e.length;n++){var s=e[n];if("("===s)r++;else if(")"===s&&--r<=0)return n+1}return n}function parseVar(e,t){var r=findRegex(VAR_USAGE_START,e,t);if(!r)return null;var n=findVarEndIndex(e,r.start),s=e.substring(r.end,n-1).split(","),o=s[0],a=s.slice(1);return{start:r.start,end:n,propName:o.trim(),fallback:a.length>0?a.join(",").trim():void 0}}function compileVar(e,t,r){var n=parseVar(e,r);if(!n)return t.push(e.substring(r,e.length)),e.length;var s=n.propName,o=null!=n.fallback?compileTemplate(n.fallback):void 0;return t.push(e.substring(r,n.start),(function(e){return resolveVar(e,s,o)})),n.end}function executeTemplate(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];r+="string"==typeof s?s:s(t)}return r}function findEndValue(e,t){for(var r=!1,n=!1,s=t;s<e.length;s++){var o=e[s];if(r)n&&'"'===o&&(r=!1),n||"'"!==o||(r=!1);else if('"'===o)r=!0,n=!0;else if("'"===o)r=!0,n=!1;else{if(";"===o)return s+1;if("}"===o)return s}}return s}function removeCustomAssigns(e){for(var t="",r=0;;){var n=findRegex(VAR_ASSIGN_START,e,r),s=n?n.start:e.length;if(t+=e.substring(r,s),!n)break;r=findEndValue(e,s)}return t}function compileTemplate(e){var t=0;e=removeCustomAssigns(e=e.replace(COMMENTS,"")).replace(TRAILING_LINES,"");for(var r=[];t<e.length;)t=compileVar(e,r,t);return r}function resolveValues(e){var t={};e.forEach((function(e){e.declarations.forEach((function(e){t[e.prop]=e.value}))}));for(var r={},n=Object.entries(t),s=function(e){var t=!1;if(n.forEach((function(e){var n=e[0],s=executeTemplate(e[1],r);s!==r[n]&&(r[n]=s,t=!0)})),!t)return"break"},o=0;o<10;o++){if("break"===s())break}return r}function getSelectors(e,t){if(void 0===t&&(t=0),!e.rules)return[];var r=[];return e.rules.filter((function(e){return e.type===types.STYLE_RULE})).forEach((function(e){var n=getDeclarations(e.cssText);n.length>0&&e.parsedSelector.split(",").forEach((function(e){e=e.trim(),r.push({selector:e,declarations:n,specificity:computeSpecificity(),nu:t})})),t++})),r}function computeSpecificity(e){return 1}var IMPORTANT="!important",FIND_DECLARATIONS=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function getDeclarations(e){for(var t,r=[];t=FIND_DECLARATIONS.exec(e.trim());){var n=normalizeValue(t[2]),s=n.value,o=n.important;r.push({prop:t[1].trim(),value:compileTemplate(s),important:o})}return r}function normalizeValue(e){var t=(e=e.replace(/\s+/gim," ").trim()).endsWith(IMPORTANT);return t&&(e=e.slice(0,e.length-IMPORTANT.length).trim()),{value:e,important:t}}function getActiveSelectors(e,t,r){var n=[],s=getScopesForElement(t,e);return r.forEach((function(e){return n.push(e)})),s.forEach((function(e){return n.push(e)})),sortSelectors(getSelectorsForScopes(n).filter((function(t){return matches(e,t.selector)})))}function getScopesForElement(e,t){for(var r=[];t;){var n=e.get(t);n&&r.push(n),t=t.parentElement}return r}function getSelectorsForScopes(e){var t=[];return e.forEach((function(e){t.push.apply(t,e.selectors)})),t}function sortSelectors(e){return e.sort((function(e,t){return e.specificity===t.specificity?e.nu-t.nu:e.specificity-t.specificity})),e}function matches(e,t){return":root"===t||"html"===t||e.matches(t)}function parseCSS(e){var t=parse(e),r=compileTemplate(e);return{original:e,template:r,selectors:getSelectors(t),usesCssVars:r.length>1}}function addGlobalStyle(e,t){if(e.some((function(e){return e.styleEl===t})))return!1;var r=parseCSS(t.textContent);return r.styleEl=t,e.push(r),!0}function updateGlobalScopes(e){var t=resolveValues(getSelectorsForScopes(e));e.forEach((function(e){e.usesCssVars&&(e.styleEl.textContent=executeTemplate(e.template,t))}))}function reScope(e,t){var r=e.template.map((function(r){return"string"==typeof r?replaceScope(r,e.scopeId,t):r})),n=e.selectors.map((function(r){return __assign(__assign({},r),{selector:replaceScope(r.selector,e.scopeId,t)})}));return __assign(__assign({},e),{template:r,selectors:n,scopeId:t})}function replaceScope(e,t,r){return e=replaceAll(e,"\\.".concat(t),".".concat(r))}function replaceAll(e,t,r){return e.replace(new RegExp(t,"g"),r)}function loadDocument(e,t){return loadDocumentStyles(e,t),loadDocumentLinks(e,t).then((function(){updateGlobalScopes(t)}))}function startWatcher(e,t){"undefined"!=typeof MutationObserver&&new MutationObserver((function(){loadDocumentStyles(e,t)&&updateGlobalScopes(t)})).observe(document.head,{childList:!0})}function loadDocumentLinks(e,t){for(var r=[],n=e.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'),s=0;s<n.length;s++)r.push(addGlobalLink(e,t,n[s]));return Promise.all(r)}function loadDocumentStyles(e,t){return Array.from(e.querySelectorAll("style:not([data-styles]):not([data-no-shim])")).map((function(e){return addGlobalStyle(t,e)})).some(Boolean)}function addGlobalLink(e,t,r){var n=r.href;return fetch(n).then((function(e){return e.text()})).then((function(s){if(hasCssVariables(s)&&r.parentNode){hasRelativeUrls(s)&&(s=fixRelativeUrls(s,n));var o=e.createElement("style");o.setAttribute("data-styles",""),o.textContent=s,addGlobalStyle(t,o),r.parentNode.insertBefore(o,r),r.remove()}})).catch((function(e){console.error(e)}))}var CSS_VARIABLE_REGEXP=/[\s;{]--[-a-zA-Z0-9]+\s*:/m;function hasCssVariables(e){return e.indexOf("var(")>-1||CSS_VARIABLE_REGEXP.test(e)}var CSS_URL_REGEXP=/url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function hasRelativeUrls(e){return CSS_URL_REGEXP.lastIndex=0,CSS_URL_REGEXP.test(e)}function fixRelativeUrls(e,t){var r=t.replace(/[^/]*$/,"");return e.replace(CSS_URL_REGEXP,(function(e,t){var n=r+t;return e.replace(t,n)}))}var CustomStyle=function(){function e(e,t){this.win=e,this.doc=t,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map,this.didInit=!1}return e.prototype.i=function(){var e=this;return this.didInit||!this.win.requestAnimationFrame?Promise.resolve():(this.didInit=!0,new Promise((function(t){e.win.requestAnimationFrame((function(){startWatcher(e.doc,e.globalScopes),loadDocument(e.doc,e.globalScopes).then((function(){return t()}))}))})))},e.prototype.addLink=function(e){var t=this;return addGlobalLink(this.doc,this.globalScopes,e).then((function(){t.updateGlobal()}))},e.prototype.addGlobalStyle=function(e){addGlobalStyle(this.globalScopes,e)&&this.updateGlobal()},e.prototype.createHostStyle=function(e,t,r,n){if(this.hostScopeMap.has(e))throw new Error("host style already created");var s=this.registerHostTemplate(r,t,n),o=this.doc.createElement("style");return o.setAttribute("data-no-shim",""),s.usesCssVars?n?(o["s-sc"]=t="".concat(s.scopeId,"-").concat(this.count),o.textContent="/*needs update*/",this.hostStyleMap.set(e,o),this.hostScopeMap.set(e,reScope(s,t)),this.count++):(s.styleEl=o,s.usesCssVars||(o.textContent=executeTemplate(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(e,s)):o.textContent=r,o},e.prototype.removeHost=function(e){var t=this.hostStyleMap.get(e);t&&t.remove(),this.hostStyleMap.delete(e),this.hostScopeMap.delete(e)},e.prototype.updateHost=function(e){var t=this.hostScopeMap.get(e);if(t&&t.usesCssVars&&t.isScoped){var r=this.hostStyleMap.get(e);if(r){var n=resolveValues(getActiveSelectors(e,this.hostScopeMap,this.globalScopes));r.textContent=executeTemplate(t.template,n)}}},e.prototype.updateGlobal=function(){updateGlobalScopes(this.globalScopes)},e.prototype.registerHostTemplate=function(e,t,r){var n=this.scopesMap.get(t);return n||((n=parseCSS(e)).scopeId=t,n.isScoped=r,this.scopesMap.set(t,n)),n},e}();!function(e){!e||e.__cssshim||e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")||(e.__cssshim=new CustomStyle(e,e.document))}("undefined"!=typeof window&&window);
var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)},StyleNode=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""};function parse(e){return parseCss(lex(e=clean(e)),e)}function clean(e){return e.replace(RX.comments,"").replace(RX.port,"")}function lex(e){var t=new StyleNode;t.start=0,t.end=e.length;for(var r=t,n=0,s=e.length;n<s;n++)if(e[n]===OPEN_BRACE){r.rules||(r.rules=[]);var o=r,a=o.rules[o.rules.length-1]||null;(r=new StyleNode).start=n+1,r.parent=o,r.previous=a,o.rules.push(r)}else e[n]===CLOSE_BRACE&&(r.end=n+1,r=r.parent||t);return t}function parseCss(e,t){var r=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=r.trim(),e.parent){var n=e.previous?e.previous.end:e.parent.start;r=(r=(r=_expandUnicodeEscapes(r=t.substring(n,e.start-1))).replace(RX.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var s=e.parsedSelector=e.selector=r.trim();e.atRule=0===s.indexOf(AT_START),e.atRule?0===s.indexOf(MEDIA_START)?e.type=types.MEDIA_RULE:s.match(RX.keyframesRule)&&(e.type=types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(RX.multipleSpaces).pop()):0===s.indexOf(VAR_START)?e.type=types.MIXIN_RULE:e.type=types.STYLE_RULE}var o=e.rules;if(o)for(var a=0,i=o.length,l=void 0;a<i&&(l=o[a]);a++)parseCss(l,t);return e}function _expandUnicodeEscapes(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return"\\"+e}))}var types={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE="{",CLOSE_BRACE="}",RX={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START="--",MEDIA_START="@media",AT_START="@",VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;function findRegex(e,t,r){e.lastIndex=0;var n=t.substring(r).match(e);if(n){var s=r+n.index;return{start:s,end:s+n[0].length}}return null}function resolveVar(e,t,r){return e[t]?e[t]:r?executeTemplate(r,e):""}function findVarEndIndex(e,t){for(var r=0,n=t;n<e.length;n++){var s=e[n];if("("===s)r++;else if(")"===s&&--r<=0)return n+1}return n}function parseVar(e,t){var r=findRegex(VAR_USAGE_START,e,t);if(!r)return null;var n=findVarEndIndex(e,r.start),s=e.substring(r.end,n-1).split(","),o=s[0],a=s.slice(1);return{start:r.start,end:n,propName:o.trim(),fallback:a.length>0?a.join(",").trim():void 0}}function compileVar(e,t,r){var n=parseVar(e,r);if(!n)return t.push(e.substring(r,e.length)),e.length;var s=n.propName,o=null!=n.fallback?compileTemplate(n.fallback):void 0;return t.push(e.substring(r,n.start),(function(e){return resolveVar(e,s,o)})),n.end}function executeTemplate(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];r+="string"==typeof s?s:s(t)}return r}function findEndValue(e,t){for(var r=!1,n=!1,s=t;s<e.length;s++){var o=e[s];if(r)n&&'"'===o&&(r=!1),n||"'"!==o||(r=!1);else if('"'===o)r=!0,n=!0;else if("'"===o)r=!0,n=!1;else{if(";"===o)return s+1;if("}"===o)return s}}return s}function removeCustomAssigns(e){for(var t="",r=0;;){var n=findRegex(VAR_ASSIGN_START,e,r),s=n?n.start:e.length;if(t+=e.substring(r,s),!n)break;r=findEndValue(e,s)}return t}function compileTemplate(e){var t=0;e=removeCustomAssigns(e=e.replace(COMMENTS,"")).replace(TRAILING_LINES,"");for(var r=[];t<e.length;)t=compileVar(e,r,t);return r}function resolveValues(e){var t={};e.forEach((function(e){e.declarations.forEach((function(e){t[e.prop]=e.value}))}));for(var r={},n=Object.entries(t),s=function(e){var t=!1;if(n.forEach((function(e){var n=e[0],s=executeTemplate(e[1],r);s!==r[n]&&(r[n]=s,t=!0)})),!t)return"break"},o=0;o<10;o++){if("break"===s())break}return r}function getSelectors(e,t){if(void 0===t&&(t=0),!e.rules)return[];var r=[];return e.rules.filter((function(e){return e.type===types.STYLE_RULE})).forEach((function(e){var n=getDeclarations(e.cssText);n.length>0&&e.parsedSelector.split(",").forEach((function(e){e=e.trim(),r.push({selector:e,declarations:n,specificity:computeSpecificity(),nu:t})})),t++})),r}function computeSpecificity(e){return 1}var IMPORTANT="!important",FIND_DECLARATIONS=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function getDeclarations(e){for(var t,r=[];t=FIND_DECLARATIONS.exec(e.trim());){var n=normalizeValue(t[2]),s=n.value,o=n.important;r.push({prop:t[1].trim(),value:compileTemplate(s),important:o})}return r}function normalizeValue(e){var t=(e=e.replace(/\s+/gim," ").trim()).endsWith(IMPORTANT);return t&&(e=e.slice(0,e.length-IMPORTANT.length).trim()),{value:e,important:t}}function getActiveSelectors(e,t,r){var n=[],s=getScopesForElement(t,e);return r.forEach((function(e){return n.push(e)})),s.forEach((function(e){return n.push(e)})),sortSelectors(getSelectorsForScopes(n).filter((function(t){return matches(e,t.selector)})))}function getScopesForElement(e,t){for(var r=[];t;){var n=e.get(t);n&&r.push(n),t=t.parentElement}return r}function getSelectorsForScopes(e){var t=[];return e.forEach((function(e){t.push.apply(t,e.selectors)})),t}function sortSelectors(e){return e.sort((function(e,t){return e.specificity===t.specificity?e.nu-t.nu:e.specificity-t.specificity})),e}function matches(e,t){return":root"===t||"html"===t||e.matches(t)}function parseCSS(e){var t=parse(e),r=compileTemplate(e);return{original:e,template:r,selectors:getSelectors(t),usesCssVars:r.length>1}}function addGlobalStyle(e,t){if(e.some((function(e){return e.styleEl===t})))return!1;var r=parseCSS(t.textContent);return r.styleEl=t,e.push(r),!0}function updateGlobalScopes(e){var t=resolveValues(getSelectorsForScopes(e));e.forEach((function(e){e.usesCssVars&&(e.styleEl.textContent=executeTemplate(e.template,t))}))}function reScope(e,t){var r=e.template.map((function(r){return"string"==typeof r?replaceScope(r,e.scopeId,t):r})),n=e.selectors.map((function(r){return __assign(__assign({},r),{selector:replaceScope(r.selector,e.scopeId,t)})}));return __assign(__assign({},e),{template:r,selectors:n,scopeId:t})}function replaceScope(e,t,r){return e=replaceAll(e,"\\.".concat(t),".".concat(r))}function replaceAll(e,t,r){return e.replace(new RegExp(t,"g"),r)}function loadDocument(e,t){return loadDocumentStyles(e,t),loadDocumentLinks(e,t).then((function(){updateGlobalScopes(t)}))}function startWatcher(e,t){"undefined"!=typeof MutationObserver&&new MutationObserver((function(){loadDocumentStyles(e,t)&&updateGlobalScopes(t)})).observe(document.head,{childList:!0})}function loadDocumentLinks(e,t){for(var r=[],n=e.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'),s=0;s<n.length;s++)r.push(addGlobalLink(e,t,n[s]));return Promise.all(r)}function loadDocumentStyles(e,t){return Array.from(e.querySelectorAll("style:not([data-styles]):not([data-no-shim])")).map((function(e){return addGlobalStyle(t,e)})).some(Boolean)}function addGlobalLink(e,t,r){var n=r.href;return fetch(n).then((function(e){return e.text()})).then((function(s){if(hasCssVariables(s)&&r.parentNode){hasRelativeUrls(s)&&(s=fixRelativeUrls(s,n));var o=e.createElement("style");o.setAttribute("data-styles",""),o.textContent=s,addGlobalStyle(t,o),r.parentNode.insertBefore(o,r),r.remove()}})).catch((function(e){console.error(e)}))}var CSS_VARIABLE_REGEXP=/[\s;{]--[-a-zA-Z0-9]+\s*:/m;function hasCssVariables(e){return e.indexOf("var(")>-1||CSS_VARIABLE_REGEXP.test(e)}var CSS_URL_REGEXP=/url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function hasRelativeUrls(e){return CSS_URL_REGEXP.lastIndex=0,CSS_URL_REGEXP.test(e)}function fixRelativeUrls(e,t){var r=t.replace(/[^/]*$/,"");return e.replace(CSS_URL_REGEXP,(function(e,t){var n=r+t;return e.replace(t,n)}))}var CustomStyle=function(){function e(e,t){this.win=e,this.doc=t,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map,this.didInit=!1}return e.prototype.i=function(){var e=this;return this.didInit||!this.win.requestAnimationFrame?Promise.resolve():(this.didInit=!0,new Promise((function(t){e.win.requestAnimationFrame((function(){startWatcher(e.doc,e.globalScopes),loadDocument(e.doc,e.globalScopes).then((function(){return t()}))}))})))},e.prototype.addLink=function(e){var t=this;return addGlobalLink(this.doc,this.globalScopes,e).then((function(){t.updateGlobal()}))},e.prototype.addGlobalStyle=function(e){addGlobalStyle(this.globalScopes,e)&&this.updateGlobal()},e.prototype.createHostStyle=function(e,t,r,n){if(this.hostScopeMap.has(e))throw new Error("host style already created");var s=this.registerHostTemplate(r,t,n),o=this.doc.createElement("style");return o.setAttribute("data-no-shim",""),s.usesCssVars?n?(o["s-sc"]=t="".concat(s.scopeId,"-").concat(this.count),o.textContent="/*needs update*/",this.hostStyleMap.set(e,o),this.hostScopeMap.set(e,reScope(s,t)),this.count++):(s.styleEl=o,s.usesCssVars||(o.textContent=executeTemplate(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(e,s)):o.textContent=r,o},e.prototype.removeHost=function(e){var t=this.hostStyleMap.get(e);t&&t.remove(),this.hostStyleMap.delete(e),this.hostScopeMap.delete(e)},e.prototype.updateHost=function(e){var t=this.hostScopeMap.get(e);if(t&&t.usesCssVars&&t.isScoped){var r=this.hostStyleMap.get(e);if(r){var n=resolveValues(getActiveSelectors(e,this.hostScopeMap,this.globalScopes));r.textContent=executeTemplate(t.template,n)}}},e.prototype.updateGlobal=function(){updateGlobalScopes(this.globalScopes)},e.prototype.registerHostTemplate=function(e,t,r){var n=this.scopesMap.get(t);return n||((n=parseCSS(e)).scopeId=t,n.isScoped=r,this.scopesMap.set(t,n)),n},e}();!function(e){!e||e.__cssshim||e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")||(e.__cssshim=new CustomStyle(e,e.document))}("undefined"!=typeof window&&window);

@@ -1,1 +0,1 @@

import{p as a,b as o}from"./p-a80775a8.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),a(t)})().then((a=>o([["p-a8949ce0",[[1,"mds-dropdown",{arrow:[4],arrowPadding:[2,"arrow-padding"],autoPlacement:[4,"auto-placement"],backdrop:[4],flip:[4],target:[1],offset:[2],placement:[1],shift:[4],shiftPadding:[2,"shift-padding"],smooth:[4],strategy:[1],visible:[1540]},[[4,"closeDropdown","onCloseListener"]]]]]],a)));
import{p as o,b as t}from"./p-b245361a.js";(()=>{const t=import.meta.url,a={};return""!==t&&(a.resourcesUrl=new URL(".",t).href),o(a)})().then((o=>t([["p-77477604",[[1,"mds-dropdown",{arrow:[4],arrowPadding:[2,"arrow-padding"],autoPlacement:[4,"auto-placement"],backdrop:[4],flip:[4],target:[1],offset:[2],placement:[1],shift:[4],shiftPadding:[2,"shift-padding"],smooth:[4],strategy:[1],visible:[1540]},[[4,"closeDropdown","onCloseListener"]]]]]],o)));
{
"timestamp": "2022-06-27T08:51:00",
"timestamp": "2022-10-21T13:59:37",
"compiler": {

@@ -56,3 +56,3 @@ "name": "node",

"generatedFiles": [
"./dist/cjs/index-848b5bd5.js",
"./dist/cjs/index-d1a0a511.js",
"./dist/cjs/index.cjs.js",

@@ -62,3 +62,3 @@ "./dist/cjs/loader.cjs.js",

"./dist/cjs/mds-dropdown.cjs.js",
"./dist/esm-es5/index-ac7b4f3d.js",
"./dist/esm-es5/index-0116e12a.js",
"./dist/esm-es5/index.js",

@@ -68,3 +68,3 @@ "./dist/esm-es5/loader.js",

"./dist/esm-es5/mds-dropdown.js",
"./dist/esm/index-ac7b4f3d.js",
"./dist/esm/index-0116e12a.js",
"./dist/esm/index.js",

@@ -80,7 +80,7 @@ "./dist/esm/loader.js",

"./dist/mds-dropdown/p-50ea2036.system.js",
"./dist/mds-dropdown/p-5c78f973.system.js",
"./dist/mds-dropdown/p-74edf8e2.system.entry.js",
"./dist/mds-dropdown/p-a80775a8.js",
"./dist/mds-dropdown/p-a8949ce0.entry.js",
"./dist/mds-dropdown/p-fdb96f78.system.js",
"./dist/mds-dropdown/p-6aa8d4fe.system.entry.js",
"./dist/mds-dropdown/p-6eb48701.system.js",
"./dist/mds-dropdown/p-77477604.entry.js",
"./dist/mds-dropdown/p-b245361a.js",
"./dist/mds-dropdown/p-b82580f8.system.js",
"./www/build/index.esm.js",

@@ -90,7 +90,7 @@ "./www/build/mds-dropdown.esm.js",

"./www/build/p-50ea2036.system.js",
"./www/build/p-5c78f973.system.js",
"./www/build/p-74edf8e2.system.entry.js",
"./www/build/p-a80775a8.js",
"./www/build/p-a8949ce0.entry.js",
"./www/build/p-fdb96f78.system.js"
"./www/build/p-6aa8d4fe.system.entry.js",
"./www/build/p-6eb48701.system.js",
"./www/build/p-77477604.entry.js",
"./www/build/p-b245361a.js",
"./www/build/p-b82580f8.system.js"
]

@@ -128,8 +128,9 @@ },

],
"bundleId": "p-a8949ce0",
"fileName": "p-a8949ce0.entry.js",
"bundleId": "p-77477604",
"fileName": "p-77477604.entry.js",
"imports": [
"p-a80775a8.js"
"p-b245361a.js",
"@common/aria"
],
"originalByteSize": 54905
"originalByteSize": 55314
}

@@ -146,5 +147,6 @@ ],

"imports": [
"index-ac7b4f3d.js"
"index-0116e12a.js",
"@common/aria"
],
"originalByteSize": 54909
"originalByteSize": 55318
}

@@ -161,5 +163,6 @@ ],

"imports": [
"index-ac7b4f3d.js"
"index-0116e12a.js",
"@common/aria"
],
"originalByteSize": 54909
"originalByteSize": 55318
}

@@ -173,8 +176,9 @@ ],

],
"bundleId": "p-74edf8e2.system",
"fileName": "p-74edf8e2.system.entry.js",
"bundleId": "p-6aa8d4fe.system",
"fileName": "p-6aa8d4fe.system.entry.js",
"imports": [
"p-fdb96f78.system.js"
"p-6eb48701.system.js",
"@common/aria"
],
"originalByteSize": 63879
"originalByteSize": 64440
}

@@ -191,5 +195,6 @@ ],

"imports": [
"index-848b5bd5.js"
"index-d1a0a511.js",
"@common/aria"
],
"originalByteSize": 54962
"originalByteSize": 55376
}

@@ -891,3 +896,3 @@ ]

{
"absolutePath": "/builds/maggiolispa/ricerca-sviluppo-new-media/design-system/projects/stencil/.build/mds-dropdown/src/components/mds-dropdown/mds-dropdown.css",
"absolutePath": "/builds/maggiolispa/ricerca-sviluppo-new-media/magma/design-system/projects/stencil/.build/mds-dropdown/src/components/mds-dropdown/mds-dropdown.css",
"relativePath": "mds-dropdown.css",

@@ -944,4 +949,4 @@ "originalComponentPath": "mds-dropdown.css"

},
"jsFilePath": "/builds/maggiolispa/ricerca-sviluppo-new-media/design-system/projects/stencil/.build/mds-dropdown/src/components/mds-dropdown/mds-dropdown.js",
"sourceFilePath": "/builds/maggiolispa/ricerca-sviluppo-new-media/design-system/projects/stencil/.build/mds-dropdown/src/components/mds-dropdown/mds-dropdown.tsx",
"jsFilePath": "/builds/maggiolispa/ricerca-sviluppo-new-media/magma/design-system/projects/stencil/.build/mds-dropdown/src/components/mds-dropdown/mds-dropdown.js",
"sourceFilePath": "/builds/maggiolispa/ricerca-sviluppo-new-media/magma/design-system/projects/stencil/.build/mds-dropdown/src/components/mds-dropdown/mds-dropdown.tsx",
"sourceMapPath": null,

@@ -1016,3 +1021,4 @@ "hasAttributeChangedCallbackFn": false,

"sc-mds-dropdown": [
"p-a80775a8.js"
"p-b245361a.js",
"@common/aria"
]

@@ -1019,0 +1025,0 @@ },

@@ -92,2 +92,3 @@ import { EventEmitter } from '../../stencil-public-runtime';

componentWillLoad(): void;
private setAriaAttributes;
componentDidLoad(): void;

@@ -94,0 +95,0 @@ componentDidRender(): void;

@@ -224,3 +224,4 @@ declare type CustomMethodDecorator<T> = (target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;

/**
* getMode
* `getMode()` is used for libraries which provide multiple "modes" for styles.
* @param ref a reference to the node to get styles for
*/

@@ -238,2 +239,4 @@ export declare function getMode<T = string | undefined>(ref: any): T;

* if the path needs to be customized.
* @param path the path to use in calculating the asset path. this value will be
* used in conjunction with the base asset path
*/

@@ -251,8 +254,10 @@ export declare function getAssetPath(path: string): string;

* But do note that this configuration depends on how your script is bundled, or lack of
* bunding, and where your assets can be loaded from. Additionally custom bundling
* bundling, and where your assets can be loaded from. Additionally custom bundling
* will have to ensure the static assets are copied to its build directory.
* @param path the asset path to set
*/
export declare function setAssetPath(path: string): string;
/**
* getElement
* Retrieve a Stencil element for a given reference
* @param ref the ref to get the Stencil element for
*/

@@ -263,3 +268,5 @@ export declare function getElement(ref: any): HTMLStencilElement;

*
* Notice `forceUpdate()` is not syncronous and might perform the DOM render in the next frame.
* Notice `forceUpdate()` is not synchronous and might perform the DOM render in the next frame.
*
* @param ref the node/element to force the re-render of
*/

@@ -279,2 +286,4 @@ export declare function forceUpdate(ref: any): void;

* For further information: https://developers.google.com/web/fundamentals/performance/rendering/avoid-large-complex-layouts-and-layout-thrashing
*
* @param task the DOM-write to schedule
*/

@@ -287,2 +296,4 @@ export declare function writeTask(task: RafCallback): void;

* For further information: https://developers.google.com/web/fundamentals/performance/rendering/avoid-large-complex-layouts-and-layout-thrashing
*
* @param task the DOM-read to schedule
*/

@@ -289,0 +300,0 @@ export declare function readTask(task: RafCallback): void;

{
"name": "mds-dropdown-loader",
"private": true,
"typings": "./index.d.ts",

@@ -4,0 +5,0 @@ "module": "./index.js",

{
"name": "@maggioli-design-system/mds-dropdown",
"version": "2.1.0",
"version": "2.2.0",
"description": "mds-dropdown is a web-component from Maggioli Design System Magma, built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScirpt framework you are using.",

@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js",

@@ -1,1 +0,1 @@

import{p as a,b as o}from"./p-a80775a8.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),a(t)})().then((a=>o([["p-a8949ce0",[[1,"mds-dropdown",{arrow:[4],arrowPadding:[2,"arrow-padding"],autoPlacement:[4,"auto-placement"],backdrop:[4],flip:[4],target:[1],offset:[2],placement:[1],shift:[4],shiftPadding:[2,"shift-padding"],smooth:[4],strategy:[1],visible:[1540]},[[4,"closeDropdown","onCloseListener"]]]]]],a)));
import{p as o,b as t}from"./p-b245361a.js";(()=>{const t=import.meta.url,a={};return""!==t&&(a.resourcesUrl=new URL(".",t).href),o(a)})().then((o=>t([["p-77477604",[[1,"mds-dropdown",{arrow:[4],arrowPadding:[2,"arrow-padding"],autoPlacement:[4,"auto-placement"],backdrop:[4],flip:[4],target:[1],offset:[2],placement:[1],shift:[4],shiftPadding:[2,"shift-padding"],smooth:[4],strategy:[1],visible:[1540]},[[4,"closeDropdown","onCloseListener"]]]]]],o)));

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc