@maggioli-design-system/magma 1.12.0 → 1.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/mds-button_3.cjs.entry.js +3 -2
- package/dist/cjs/mds-paginator.cjs.entry.js +24 -8
- package/dist/cjs/mds-text.cjs.entry.js +7 -4
- package/dist/collection/components/mds-button/mds-button.js +3 -2
- package/dist/collection/components/mds-input-date-range/mds-input-date-range.js +1 -1
- package/dist/collection/components/mds-paginator/mds-paginator.js +24 -8
- package/dist/collection/components/mds-text/mds-text.js +7 -4
- package/dist/components/mds-button2.js +3 -2
- package/dist/components/mds-paginator.js +24 -8
- package/dist/components/mds-text2.js +7 -4
- package/dist/documentation.json +2 -2
- package/dist/esm/mds-button_3.entry.js +3 -2
- package/dist/esm/mds-paginator.entry.js +24 -8
- package/dist/esm/mds-text.entry.js +7 -4
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm-es5/mds-button_3.entry.js +1 -1
- package/dist/esm-es5/mds-paginator.entry.js +1 -1
- package/dist/esm-es5/mds-text.entry.js +1 -1
- package/dist/hydrate/index.js +34 -14
- package/dist/hydrate/index.mjs +34 -14
- package/dist/magma-components/magma-components.esm.js +1 -1
- package/dist/magma-components/p-26cd6ec8.system.js +1 -1
- package/dist/magma-components/p-3e72a9f4.entry.js +1 -0
- package/dist/magma-components/{p-1e686661.system.entry.js → p-4ece2e21.system.entry.js} +1 -1
- package/dist/magma-components/{p-ff8d8818.system.entry.js → p-68dde65c.system.entry.js} +1 -1
- package/dist/magma-components/{p-7262712f.system.entry.js → p-cae04975.system.entry.js} +1 -1
- package/dist/magma-components/p-e137eebd.entry.js +1 -0
- package/dist/magma-components/p-f3f64ecf.entry.js +1 -0
- package/dist/stats.json +378 -378
- package/dist/types/components/mds-paginator/mds-paginator.d.ts +9 -1
- package/package.json +6 -2
- package/dist/magma-components/p-3bf7d52c.entry.js +0 -1
- package/dist/magma-components/p-9c97817b.entry.js +0 -1
- package/dist/magma-components/p-fe0446d4.entry.js +0 -1
|
@@ -16,7 +16,15 @@ export declare class MdsPaginator {
|
|
|
16
16
|
*/
|
|
17
17
|
pageChangedEvent: EventEmitter<MdsPaginatorEventDetail>;
|
|
18
18
|
private scrollPage;
|
|
19
|
-
|
|
19
|
+
/**
|
|
20
|
+
* The strip follows the focused item only when the focus comes from the keyboard.
|
|
21
|
+
* On a pointer interaction the item receives focus on mousedown: scrolling the strip
|
|
22
|
+
* at that moment moves the item away from under the pointer, the mouseup lands on
|
|
23
|
+
* another element and the browser dispatches the click on their common ancestor
|
|
24
|
+
* (the strip itself) instead of the item, so the page would never be selected.
|
|
25
|
+
*/
|
|
26
|
+
private isKeyboardFocus;
|
|
27
|
+
private handleItemFocus;
|
|
20
28
|
private goToPage;
|
|
21
29
|
render(): any;
|
|
22
30
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maggioli-design-system/magma",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.1",
|
|
4
4
|
"description": "Magma is Maggioli Design System's web-components library.",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/magma-design-system/magma.git",
|
|
8
|
+
"directory": "projects/stencil"
|
|
9
|
+
},
|
|
5
10
|
"main": "dist/index.cjs.js",
|
|
6
11
|
"module": "dist/index.js",
|
|
7
12
|
"es2015": "dist/esm/index.mjs",
|
|
@@ -23,7 +28,6 @@
|
|
|
23
28
|
"clean": "tsx ./scripts/clean.ts",
|
|
24
29
|
"generate": "stencil generate",
|
|
25
30
|
"generate.doc": "tsx ./scripts/generate-doc.ts",
|
|
26
|
-
"gitlab-ci-yml-regenerate": "tsx ./scripts/gitlab-ci-yml-regenerate.ts",
|
|
27
31
|
"lint": "npm run lint.ts && npm run lint.css",
|
|
28
32
|
"lint.css": "stylelint -c ./stylelint.config.mjs 'src/**/*.css'",
|
|
29
33
|
"lint.ts": "eslint --fix",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as n,H as r,g as o}from"./p-3a6b32e7.js";import{K as a}from"./p-23e7e277.js";import{u as s,s as e}from"./p-f00c93f4.js";const d={sm:"action",md:"action",lg:"h6",xl:"h4"},i="data:image/svg+xml;base64,",h=t=>!!t&&t.startsWith(i),c=t=>!!t&&t.startsWith("<svg "),b=class{constructor(n){t(this,n),n.$hostElement$["s-ei"]?this.internals=n.$hostElement$["s-ei"]:(this.internals=n.$hostElement$.attachInternals(),n.$hostElement$["s-ei"]=this.internals),this.km=new a,this.iconPosition="left",this.type="submit",this.variant="primary",this.tone="strong",this.size="md",this.target="self",this.truncate="word",this.handleRequestSubmitForm=t=>{var n;t.preventDefault(),null===(n=this.internals.form)||void 0===n||n.requestSubmit()},this.handleReset=t=>{var n;t.preventDefault(),null===(n=this.internals.form)||void 0===n||n.reset()},this.mouseDown=()=>{this.active=!0},this.mouseUp=()=>{this.active=!1},this.redirectBlank=()=>{if("undefined"==typeof window)throw Error("Object window is not defined");window.open(this.href,"_blank")},this.onSlotChangeHandler=()=>{this.hasText=""!==this.host.innerHTML.trim()||this.host.children.length>0}}disabledChanged(t){t?this.km.attachClickBehavior():(this.km.detachClickBehavior(),this.disabled=void 0)}awaitChanged(t){this.host.setAttribute("aria-busy",(!!t).toString()),t?this.km.attachClickBehavior():this.km.detachClickBehavior()}handleTypeChange(t){this.internals.form&&("submit"===t?(this.host.removeEventListener("click",this.handleReset),this.host.addEventListener("click",this.handleRequestSubmitForm)):"reset"===t?(this.host.removeEventListener("click",this.handleRequestSubmitForm),this.host.addEventListener("click",this.handleReset)):(this.host.removeEventListener("click",this.handleRequestSubmitForm),this.host.removeEventListener("click",this.handleReset)))}handleVariantChange(t){"google"!==t?"apple"!==t||(this.icon='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-apple" viewBox="0 0 24 24"><path d="M18.71,19.5C17.88,20.74 17,21.95 15.66,21.97C14.32,22 13.89,21.18 12.37,21.18C10.84,21.18 10.37,21.95 9.1,22C7.79,22.05 6.8,20.68 5.96,19.47C4.25,17 2.94,12.45 4.7,9.39C5.57,7.87 7.13,6.91 8.82,6.88C10.1,6.86 11.32,7.75 12.11,7.75C12.89,7.75 14.37,6.68 15.92,6.84C16.57,6.87 18.39,7.1 19.56,8.82C19.47,8.88 17.39,10.1 17.41,12.63C17.44,15.65 20.06,16.66 20.09,16.67C20.06,16.74 19.67,18.11 18.71,19.5M13,3.5C13.73,2.67 14.94,2.04 15.94,2C16.07,3.17 15.6,4.35 14.9,5.19C14.21,6.04 13.07,6.7 11.95,6.61C11.8,5.46 12.36,4.26 13,3.5Z" /></svg>'):this.icon='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" xmlnsXlink="http://www.w3.org/1999/xlink"><path fill="#EA4335" d="M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"></path><path fill="#4285F4" d="M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"></path><path fill="#FBBC05" d="M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"></path><path fill="#34A853" d="M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"></path><path fill="none" d="M0 0h48v48H0z"></path></svg>\n'}componentWillLoad(){this.hasNotification=null!==this.host.querySelector(':scope > [slot="notification"]'),this.hasText=""!==this.host.innerHTML.trim()||this.host.children.length>0,this.handleVariantChange(this.variant),this.href?this.host.addEventListener("click",(t=>{var n;t.preventDefault(),"blank"!==this.target?"undefined"!=typeof window&&(window.location.href=null!==(n=this.href)&&void 0!==n?n:""):this.redirectBlank()})):this.internals.form&&("submit"===this.type?this.host.addEventListener("click",this.handleRequestSubmitForm):"reset"===this.type&&this.host.addEventListener("click",this.handleReset))}componentDidLoad(){if(this.km.addElement(this.host),this.await||this.km.attachClickBehavior(),this.host.setAttribute("aria-busy",this.await?"true":"false"),this.autoFocus&&this.host.focus(),!h(this.icon)&&!c(this.icon)){if(!this.hasText&&this.icon){const t=s(this.icon);this.host.hasAttribute("aria-label")||e(this.host,"title",t),this.host.hasAttribute("title")||e(this.host,"aria-label",t)}e(this.host,"role","button")}}handleAwaitChange(t){if(!1===t)return this.await=void 0,void this.km.detachClickBehavior();this.km.attachClickBehavior()}connectedCallback(){this.disabled||this.host.removeAttribute("disabled")}disconnectedCallback(){this.km.detachClickBehavior()}render(){return this.typography=d[this.size],n(r,{key:"4686bd8d7cb9225f100a4127b6a126377b518d19",onMouseDown:this.mouseDown,onMouseUp:this.mouseUp,onMouseOut:this.mouseUp,tabindex:"0"},n("div",{key:"df39bb0ebb2a804af20924648169709397af2c7e",class:"await"},n("mds-spinner",{key:"2815525a17ea474db3f4064a3bbdf6e953211b13",class:"spinner",running:this.await})),this.icon&&"left"===this.iconPosition&&n("mds-icon",{key:"f464e79898cfa4f68d05fefcb454c26e6088cfaf","aria-hidden":"true",class:"icon",name:this.icon,part:"icon"}),n("mds-text",{key:"0f30b6ca2508f8928f4fc28c6deb28e93e963db5",class:"text",part:"label",typography:this.typography,truncate:this.truncate},n("slot",{key:"1d5d0ae7bcdf9abbc87ddbb4bea702971b618e9d",onSlotchange:this.onSlotChangeHandler})),this.hasNotification&&n("slot",{key:"0d9dca292a5cb40f51e4c517a399e85286047fc4",name:"notification"}),this.icon&&"right"===this.iconPosition&&n("mds-icon",{key:"f97aff53f85a69e3bd51517fb66f781123c37373","aria-hidden":"true",class:"icon",name:this.icon,part:"icon"}))}static get formAssociated(){return!0}get host(){return o(this)}static get watchers(){return{disabled:["disabledChanged"],await:["awaitChanged","handleAwaitChange"],type:["handleTypeChange"],variant:["handleVariantChange"]}}};function m(t){return new Promise((function(n,r){t.oncomplete=t.onsuccess=function(){return n(t.result)},t.onabort=t.onerror=function(){return r(t.error)}}))}var u;function v(){return u||(u=function(t,n){var r=indexedDB.open("keyval-store");r.onupgradeneeded=function(){return r.result.createObjectStore(n)};var o=m(r);return function(t,r){return o.then((function(o){return r(o.transaction(n,t).objectStore(n))}))}}(0,"keyval")),u}b.style='@-webkit-keyframes focus-bounce {\n 0%, 75%, 100% {\n outline-offset: var(--magma-outline-focus-offset, 6px);\n }\n\n 50% {\n outline-offset: var(--magma-outline-blur-offset, 2px);\n }\n}\n\n@keyframes focus-bounce {\n 0%, 75%, 100% {\n outline-offset: var(--magma-outline-focus-offset, 6px);\n }\n\n 50% {\n outline-offset: var(--magma-outline-blur-offset, 2px);\n }\n}\n\n@tailwind components;\n\n\n/**\n * @prop --mds-button-await-duration: Sets the duration of the rotation of the spinner await component\n * @prop --mds-button-background: Sets the background-color of the component\n * @prop --mds-button-border-color: Sets the color of the border of the component (based on box-shadow declaration)\n * @prop --mds-button-border-default-opacity: Sets the default opacity of the border color of the component (based on box-shadow declaration)\n * @prop --mds-button-border-high-contrast-hover-width: Sets the width of the border when the component is hovered and the contrast is high (based on box-shadow declaration)\n * @prop --mds-button-border-high-contrast-width: Sets the width of the border of the component and the contrast is high (based on box-shadow declaration)\n * @prop --mds-button-border-hover-opacity: Sets the opacity of the border color when the component is hovered (based on box-shadow declaration)\n * @prop --mds-button-border-opacity: Sets the border opacity of the component (based on box-shadow declaration)\n * @prop --mds-button-border-tone-ghost-hover-width: Sets the width of the border when the component is hovered when the tone is set to `ghost` (based on box-shadow declaration)\n * @prop --mds-button-border-tone-strong-hover-width: Sets the width of the border when the component is hovered when the tone is set to `strong` (based on box-shadow declaration)\n * @prop --mds-button-border-tone-weak-hover-width: Sets the width of the border when the component is hovered when the tone is set to `weak` (based on box-shadow declaration)\n * @prop --mds-button-border-width: Sets the border width of the component (based on box-shadow declaration)\n * @prop --mds-button-color: Sets the text color of the component\n * @prop --mds-button-gap: Sets the distance betwen element inside the components, use it instead of setting gap property directly.\n * @prop --mds-button-radius: Sets the border-radius of the component\n */\n\n:host {\n --mds-button-await-duration: 0.725s;\n --mds-button-background: rgb(var(--variant-primary-02));\n --mds-button-border-color: 0 0 0;\n --mds-button-border-hover-opacity: 0.75;\n --mds-button-border-default-opacity: 0.5;\n --mds-button-border-tone-strong-hover-width: 0.0625rem;\n --mds-button-border-tone-ghost-hover-width: 3px;\n --mds-button-border-tone-weak-hover-width: 0.0625rem;\n --mds-button-border-high-contrast-width: 0.125rem;\n --mds-button-border-high-contrast-hover-width: 3px;\n --mds-button-border-opacity: 0;\n --mds-button-border-width: 0.125rem;\n --mds-button-color: rgb(var(--tone-neutral));\n --mds-button-gap: 0.5rem;\n --mds-button-line-clamp: 1;\n --mds-button-radius: 0.5rem;\n -webkit-animation-duration: var(--magma-outline-animation-duration, 1s);\n animation-duration: var(--magma-outline-animation-duration, 1s);\n -webkit-animation-fill-mode: forwards;\n animation-fill-mode: forwards;\n -webkit-animation-iteration-count: infinite;\n animation-iteration-count: infinite;\n -webkit-animation-name: focus-bounce;\n animation-name: focus-bounce;\n -webkit-animation-play-state: paused;\n animation-play-state: paused;\n -webkit-animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n outline: var(--magma-outline-blur);\n -webkit-transition-duration: 200ms;\n transition-duration: 200ms;\n -webkit-transition-property: background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;\n transition-property: background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform;\n -webkit-transition-timing-function: ease-in-out;\n transition-timing-function: ease-in-out;\n}\n\n:host:focus-visible {\n --magma-outline-blur: var(--magma-outline-focus);\n\n -webkit-animation-play-state: running;\n\n animation-play-state: running;\n }\n\n:host {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n -webkit-transition-duration: 200ms;\n transition-duration: 200ms;\n -webkit-transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n\n -ms-flex-align: center;\n\n align-items: center;\n background-color: var(--mds-button-background);\n border-radius: var(--mds-button-radius);\n -webkit-box-shadow: 0 0 0 var(--mds-button-border-width) rgb(var(--mds-button-border-color) / var(--mds-button-border-opacity));\n box-shadow: 0 0 0 var(--mds-button-border-width) rgb(var(--mds-button-border-color) / var(--mds-button-border-opacity));\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: var(--mds-button-color);\n cursor: pointer;\n display: -ms-inline-flexbox;\n display: inline-flex;\n fill: currentcolor;\n gap: var(--mds-button-gap);\n -ms-flex-pack: center;\n justify-content: center;\n position: relative;\n -webkit-transition-property: background-color, border-color, color, outline, outline-offset, padding-left, padding-right, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, color, outline, outline-offset, padding-left, padding-right, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, box-shadow, color, outline, outline-offset, padding-left, padding-right, transform;\n transition-property: background-color, border-color, box-shadow, color, outline, outline-offset, padding-left, padding-right, transform, -webkit-box-shadow, -webkit-transform;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n:host(:focus-visible) {\n --magma-outline-blur: var(--magma-outline-focus);\n\n -webkit-animation-play-state: running;\n\n animation-play-state: running;\n\n z-index: 10;\n }\n\n.text {\n --mds-text-line-clamp: var(--mds-button-line-clamp);\n}\n\n.text::first-letter {\n text-transform: uppercase;\n}\n\n.icon {\n -webkit-transition-duration: 300ms;\n transition-duration: 300ms;\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n -ms-flex-align: center;\n\n align-items: center;\n display: -ms-inline-flexbox;\n display: inline-flex;\n fill: inherit;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n -ms-flex-pack: center;\n justify-content: center;\n pointer-events: none;\n -webkit-transition-property: fill;\n transition-property: fill;\n}\n\n:host-context(mds-button-group):host(:not(:first-child)) {\n border-bottom-left-radius: 0;\n border-top-left-radius: 0;\n}\n\n:host-context(mds-button-group):host(:not(:last-child)) {\n border-bottom-right-radius: 0;\n border-top-right-radius: 0;\n}\n\n.await {\n height: 1.5rem;\n width: 1.5rem;\n -webkit-transition-duration: 300ms;\n transition-duration: 300ms;\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n display: none;\n margin-right: calc(calc(-1 * var(--mds-button-gap)) - 1.5rem);\n -webkit-transform: scale(0);\n transform: scale(0);\n transition-behavior: allow-discrete;\n -webkit-transition-property: display, margin-right, opacity, width, -webkit-transform;\n transition-property: display, margin-right, opacity, width, -webkit-transform;\n transition-property: display, margin-right, opacity, transform, width;\n transition-property: display, margin-right, opacity, transform, width, -webkit-transform;\n}\n\n.spinner {\n height: 1.5rem;\n width: 1.5rem;\n\n --mds-spinner-duration: var(--mds-button-await-duration);\n\n color: currentcolor;\n}\n\n:host(:not([await])) .spinner,\n:host([await="false"]) .spinner {\n -webkit-transition-duration: 200ms;\n transition-duration: 200ms;\n -webkit-transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n}\n\n:host([await]:not([await="false"])) .await {\n margin-right: 0rem;\n opacity: 1;\n\n display: -ms-flexbox;\n\n display: flex;\n -webkit-transform: scale(1);\n transform: scale(1);\n\n @starting-style {\n margin-right: calc(calc(-1 * var(--mds-button-gap)) - 1.5rem);\n opacity: 0;\n -webkit-transform: scale(0);\n transform: scale(0);\n }\n}\n\n:host([await]:not([await="false"])) {\n pointer-events: none;\n}\n\n:host([disabled]:not([disabled="false"])) {\n opacity: 0.5;\n\n pointer-events: none;\n}\n\n:host([size="sm"]) {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n padding-top: 0rem;\n padding-bottom: 0rem;\n\n --mds-button-radius: 0.375rem;\n\n min-height: 1.75rem;\n min-width: 1.75rem;\n}\n\n:host([size="sm"]:not([has-text])) {\n padding: 0rem;\n}\n\n:host([size="sm"]) .text {\n font-weight: 500;\n}\n\n:host([size="sm"]) .icon {\n height: 1rem;\n width: 1rem;\n}\n\n:host([size="sm"][await]:not([await="false"]) ) .await {\n -webkit-transform: scale(.75);\n transform: scale(.75);\n}\n\n:host([size="md"]) {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n\n min-height: 2.25rem;\n min-width: 2.25rem;\n}\n\n:host([size="md"]:not([has-text])) {\n padding: 0.25rem;\n}\n\n:host([size="lg"]) {\n padding-left: 1.5rem;\n padding-right: 1.5rem;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n\n min-height: 3rem;\n min-width: 3rem;\n}\n\n:host([size="lg"]:not([has-text])) {\n padding: 0.5rem;\n}\n\n:host([size="xl"]) {\n padding-left: 2rem;\n padding-right: 2rem;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n\n min-height: 3.25rem;\n min-width: 3.25rem;\n}\n\n:host([size="xl"]:not([has-text])) {\n padding: 0.5rem;\n}\n\n:host(:not([has-text])) .text {\n display: none;\n}\n\n:host([variant="dark"][tone="strong"]) {\n --mds-button-background: rgb(var(--tone-neutral-04));\n --mds-button-border-color: var(--tone-neutral-04);\n --mds-button-color: rgb(var(--tone-neutral));\n}\n\n:host([variant="dark"][tone="strong"]:hover) {\n --mds-button-background: rgb(var(--tone-neutral-05));\n --mds-button-border-color: var(--tone-neutral-05);\n}\n\n:host([variant="dark"][tone="weak"]) {\n --mds-button-background: rgb(var(--tone-neutral-08));\n --mds-button-border-color: var(--tone-neutral-08);\n --mds-button-color: rgb(var(--tone-neutral-03));\n\n fill: rgb(var(--tone-neutral-03));\n}\n\n:host([variant="dark"][tone="weak"]:hover) {\n --mds-button-background: rgb(var(--tone-neutral-07));\n --mds-button-border-color: var(--tone-neutral-07);\n --mds-button-color: rgb(var(--tone-neutral-02));\n}\n\n:host([variant="dark"][tone="ghost"]) {\n --mds-button-border-color: var(--tone-neutral-04);\n --mds-button-color: rgb(var(--tone-neutral-03));\n}\n\n:host([variant="dark"][tone="ghost"]:hover) {\n --mds-button-border-color: var(--tone-neutral-04);\n --mds-button-color: rgb(var(--tone-neutral-02));\n}\n\n:host([variant="dark"][tone="quiet"]) {\n --mds-button-color: rgb(var(--tone-neutral-02));\n}\n\n:host([variant="dark"][tone="quiet"]:hover) {\n --mds-button-color: rgb(var(--tone-neutral-04));\n}\n\n:host([variant="dark"][tone="quiet"][active]) {\n --mds-button-color: rgb(var(--tone-neutral-01));\n}\n\n:host-context(.pref-contrast-more):host([variant="ai"][tone="strong"]) {\n --mds-button-background: rgb(var(--variant-ai-03));\n --mds-button-color: rgb(var(--tone-neutral));\n --mds-button-border-color: var(--variant-ai-03);\n}\n\n:host-context(.pref-contrast-more):host([variant="ai"][tone="strong"][active]),\n:host-context(.pref-contrast-more):host([variant="ai"][tone="strong"]:hover) {\n --mds-button-background: rgb(var(--variant-ai-02));\n --mds-button-border-color: var(--variant-ai-02);\n}\n\n:host-context(.pref-contrast-more):host([variant="ai"][tone="weak"]) {\n --mds-button-background: rgb(var(--variant-ai-09));\n --mds-button-color: rgb(var(--variant-ai-02));\n --mds-button-border-color: var(--variant-ai-06);\n --mds-button-border-width: var(--mds-button-border-high-contrast-width);\n\n fill: rgb(var(--variant-ai-02));\n}\n\n:host-context(.pref-contrast-more):host([variant="ai"][tone="weak"]:hover) {\n --mds-button-background: rgb(var(--variant-ai-10));\n --mds-button-color: rgb(var(--variant-ai-01));\n --mds-button-border-width: var(--mds-button-border-high-contrast-hover-width);\n\n fill: rgb(var(--variant-ai-01));\n}\n\n:host-context(.pref-contrast-more):host([variant="ai"][tone="weak"][active]) {\n --mds-button-background: rgb(var(--variant-ai-08));\n --mds-button-color: rgb(var(--variant-ai-01));\n\n fill: rgb(var(--variant-ai-01));\n}\n\n:host-context(.pref-contrast-more):host([variant="ai"][tone="ghost"]) {\n --mds-button-border-color: var(--variant-ai-03);\n --mds-button-color: rgb(var(--variant-ai-02));\n}\n\n:host-context(.pref-contrast-more):host([variant="ai"][tone="ghost"]:hover) {\n --mds-button-border-color: var(--variant-ai-03);\n --mds-button-color: rgb(var(--variant-ai-01));\n}\n\n:host-context(.pref-contrast-more):host([variant="ai"][tone="ghost"][active]) {\n --mds-button-border-color: var(--variant-ai-04);\n --mds-button-color: rgb(var(--variant-ai-02));\n}\n\n:host-context(.pref-contrast-more):host([variant="ai"][tone="quiet"]) {\n --mds-button-color: rgb(var(--variant-ai-01));\n}\n\n:host-context(.pref-contrast-more):host([variant="ai"][tone="quiet"]:hover) {\n --mds-button-color: rgb(var(--variant-ai-03));\n}\n\n:host-context(.pref-contrast-more):host([variant="ai"][tone="quiet"][active]) {\n --mds-button-color: rgb(var(--variant-ai-01));\n}\n\n@media (prefers-contrast: more) {\n :host-context(.pref-contrast-system):host([variant="ai"][tone="strong"]) {\n --mds-button-background: rgb(var(--variant-ai-03));\n --mds-button-color: rgb(var(--tone-neutral));\n }\n\n :host-context(.pref-contrast-system):host([variant="ai"][tone="strong"][active]),\n :host-context(.pref-contrast-system):host([variant="ai"][tone="strong"]:hover) {\n --mds-button-background: rgb(var(--variant-ai-02));\n --mds-button-border-color: var(--variant-ai-02);\n }\n\n :host-context(.pref-contrast-system):host([variant="ai"][tone="weak"]) {\n --mds-button-background: rgb(var(--variant-ai-09));\n --mds-button-color: rgb(var(--variant-ai-02));\n --mds-button-border-color: var(--variant-ai-06);\n --mds-button-border-width: var(--mds-button-border-high-contrast-width);\n\n fill: rgb(var(--variant-ai-02));\n }\n\n :host-context(.pref-contrast-system):host([variant="ai"][tone="weak"]:hover) {\n --mds-button-background: rgb(var(--variant-ai-10));\n --mds-button-color: rgb(var(--variant-ai-01));\n --mds-button-border-width: var(--mds-button-border-high-contrast-hover-width);\n\n fill: rgb(var(--variant-ai-01));\n }\n\n :host-context(.pref-contrast-system):host([variant="ai"][tone="weak"][active]) {\n --mds-button-background: rgb(var(--variant-ai-08));\n --mds-button-color: rgb(var(--variant-ai-01));\n\n fill: rgb(var(--variant-ai-01));\n }\n\n :host-context(.pref-contrast-system):host([variant="ai"][tone="ghost"]) {\n --mds-button-border-color: var(--variant-ai-03);\n --mds-button-color: rgb(var(--variant-ai-02));\n }\n\n :host-context(.pref-contrast-system):host([variant="ai"][tone="ghost"]:hover) {\n --mds-button-border-color: var(--variant-ai-03);\n --mds-button-color: rgb(var(--variant-ai-01));\n }\n\n :host-context(.pref-contrast-system):host([variant="ai"][tone="ghost"][active]) {\n --mds-button-border-color: var(--variant-ai-04);\n --mds-button-color: rgb(var(--variant-ai-02));\n }\n\n :host-context(.pref-contrast-system):host([variant="ai"][tone="quiet"]) {\n --mds-button-color: rgb(var(--variant-ai-01));\n }\n\n :host-context(.pref-contrast-system):host([variant="ai"][tone="quiet"]:hover) {\n --mds-button-color: rgb(var(--variant-ai-03));\n }\n\n :host-context(.pref-contrast-system):host([variant="ai"][tone="quiet"][active]) {\n --mds-button-color: rgb(var(--variant-ai-01));\n }\n}\n\n:host([variant="ai"][tone="strong"]) {\n --mds-button-background: rgb(var(--variant-ai-05));\n --mds-button-border-color: var(--variant-ai-05);\n --mds-button-color: rgb(var(--tone-neutral));\n}\n\n:host([variant="ai"][tone="strong"]:hover) {\n --mds-button-background: rgb(var(--variant-ai-04));\n --mds-button-border-color: var(--variant-ai-04);\n}\n\n:host([variant="ai"][tone="weak"]) {\n --mds-button-background: rgb(var(--variant-ai-09));\n --mds-button-border-color: var(--variant-ai-09);\n --mds-button-color: rgb(var(--variant-ai-03));\n\n fill: rgb(var(--variant-ai-03));\n}\n\n:host([variant="ai"][tone="weak"]:hover) {\n --mds-button-background: rgb(var(--variant-ai-08));\n --mds-button-border-color: var(--variant-ai-08);\n}\n\n:host([variant="ai"][tone="ghost"]) {\n --mds-button-border-color: var(--variant-ai-04);\n --mds-button-color: rgb(var(--variant-ai-03));\n}\n\n:host([variant="ai"][tone="ghost"]:hover) {\n --mds-button-border-color: var(--variant-ai-04);\n --mds-button-color: rgb(var(--variant-ai-02));\n}\n\n:host([variant="ai"][tone="quiet"]) {\n --mds-button-color: rgb(var(--variant-ai-02));\n}\n\n:host([variant="ai"][tone="quiet"]:hover) {\n --mds-button-color: rgb(var(--variant-ai-04));\n}\n\n:host([variant="ai"][tone="quiet"][active]) {\n --mds-button-color: rgb(var(--variant-ai-01));\n}\n\n:host-context(.pref-contrast-more):host([variant="error"][tone="strong"]) {\n --mds-button-background: rgb(var(--status-error-03));\n --mds-button-color: rgb(var(--tone-neutral));\n --mds-button-border-color: var(--status-error-03);\n}\n\n:host-context(.pref-contrast-more):host([variant="error"][tone="strong"][active]),\n:host-context(.pref-contrast-more):host([variant="error"][tone="strong"]:hover) {\n --mds-button-background: rgb(var(--status-error-02));\n --mds-button-border-color: var(--status-error-02);\n}\n\n:host-context(.pref-contrast-more):host([variant="error"][tone="weak"]) {\n --mds-button-background: rgb(var(--status-error-09));\n --mds-button-color: rgb(var(--status-error-02));\n --mds-button-border-color: var(--status-error-06);\n --mds-button-border-width: var(--mds-button-border-high-contrast-width);\n\n fill: rgb(var(--status-error-02));\n}\n\n:host-context(.pref-contrast-more):host([variant="error"][tone="weak"]:hover) {\n --mds-button-background: rgb(var(--status-error-10));\n --mds-button-color: rgb(var(--status-error-01));\n --mds-button-border-width: var(--mds-button-border-high-contrast-hover-width);\n\n fill: rgb(var(--status-error-01));\n}\n\n:host-context(.pref-contrast-more):host([variant="error"][tone="weak"][active]) {\n --mds-button-background: rgb(var(--status-error-08));\n --mds-button-color: rgb(var(--status-error-01));\n\n fill: rgb(var(--status-error-01));\n}\n\n:host-context(.pref-contrast-more):host([variant="error"][tone="ghost"]) {\n --mds-button-border-color: var(--status-error-03);\n --mds-button-color: rgb(var(--status-error-02));\n}\n\n:host-context(.pref-contrast-more):host([variant="error"][tone="ghost"]:hover) {\n --mds-button-border-color: var(--status-error-03);\n --mds-button-color: rgb(var(--status-error-01));\n}\n\n:host-context(.pref-contrast-more):host([variant="error"][tone="ghost"][active]) {\n --mds-button-border-color: var(--status-error-04);\n --mds-button-color: rgb(var(--status-error-02));\n}\n\n:host-context(.pref-contrast-more):host([variant="error"][tone="quiet"]) {\n --mds-button-color: rgb(var(--status-error-01));\n}\n\n:host-context(.pref-contrast-more):host([variant="error"][tone="quiet"]:hover) {\n --mds-button-color: rgb(var(--status-error-03));\n}\n\n:host-context(.pref-contrast-more):host([variant="error"][tone="quiet"][active]) {\n --mds-button-color: rgb(var(--status-error-01));\n}\n\n@media (prefers-contrast: more) {\n :host-context(.pref-contrast-system):host([variant="error"][tone="strong"]) {\n --mds-button-background: rgb(var(--status-error-03));\n --mds-button-color: rgb(var(--tone-neutral));\n }\n\n :host-context(.pref-contrast-system):host([variant="error"][tone="strong"][active]),\n :host-context(.pref-contrast-system):host([variant="error"][tone="strong"]:hover) {\n --mds-button-background: rgb(var(--status-error-02));\n --mds-button-border-color: var(--status-error-02);\n }\n\n :host-context(.pref-contrast-system):host([variant="error"][tone="weak"]) {\n --mds-button-background: rgb(var(--status-error-09));\n --mds-button-color: rgb(var(--status-error-02));\n --mds-button-border-color: var(--status-error-06);\n --mds-button-border-width: var(--mds-button-border-high-contrast-width);\n\n fill: rgb(var(--status-error-02));\n }\n\n :host-context(.pref-contrast-system):host([variant="error"][tone="weak"]:hover) {\n --mds-button-background: rgb(var(--status-error-10));\n --mds-button-color: rgb(var(--status-error-01));\n --mds-button-border-width: var(--mds-button-border-high-contrast-hover-width);\n\n fill: rgb(var(--status-error-01));\n }\n\n :host-context(.pref-contrast-system):host([variant="error"][tone="weak"][active]) {\n --mds-button-background: rgb(var(--status-error-08));\n --mds-button-color: rgb(var(--status-error-01));\n\n fill: rgb(var(--status-error-01));\n }\n\n :host-context(.pref-contrast-system):host([variant="error"][tone="ghost"]) {\n --mds-button-border-color: var(--status-error-03);\n --mds-button-color: rgb(var(--status-error-02));\n }\n\n :host-context(.pref-contrast-system):host([variant="error"][tone="ghost"]:hover) {\n --mds-button-border-color: var(--status-error-03);\n --mds-button-color: rgb(var(--status-error-01));\n }\n\n :host-context(.pref-contrast-system):host([variant="error"][tone="ghost"][active]) {\n --mds-button-border-color: var(--status-error-04);\n --mds-button-color: rgb(var(--status-error-02));\n }\n\n :host-context(.pref-contrast-system):host([variant="error"][tone="quiet"]) {\n --mds-button-color: rgb(var(--status-error-01));\n }\n\n :host-context(.pref-contrast-system):host([variant="error"][tone="quiet"]:hover) {\n --mds-button-color: rgb(var(--status-error-03));\n }\n\n :host-context(.pref-contrast-system):host([variant="error"][tone="quiet"][active]) {\n --mds-button-color: rgb(var(--status-error-01));\n }\n}\n\n:host([variant="error"][tone="strong"]) {\n --mds-button-background: rgb(var(--status-error-05));\n --mds-button-border-color: var(--status-error-05);\n --mds-button-color: rgb(var(--tone-neutral));\n}\n\n:host([variant="error"][tone="strong"]:hover) {\n --mds-button-background: rgb(var(--status-error-04));\n --mds-button-border-color: var(--status-error-04);\n}\n\n:host([variant="error"][tone="weak"]) {\n --mds-button-background: rgb(var(--status-error-09));\n --mds-button-border-color: var(--status-error-09);\n --mds-button-color: rgb(var(--status-error-03));\n\n fill: rgb(var(--status-error-03));\n}\n\n:host([variant="error"][tone="weak"]:hover) {\n --mds-button-background: rgb(var(--status-error-08));\n --mds-button-border-color: var(--status-error-08);\n}\n\n:host([variant="error"][tone="ghost"]) {\n --mds-button-border-color: var(--status-error-04);\n --mds-button-color: rgb(var(--status-error-03));\n}\n\n:host([variant="error"][tone="ghost"]:hover) {\n --mds-button-border-color: var(--status-error-04);\n --mds-button-color: rgb(var(--status-error-02));\n}\n\n:host([variant="error"][tone="quiet"]) {\n --mds-button-color: rgb(var(--status-error-02));\n}\n\n:host([variant="error"][tone="quiet"]:hover) {\n --mds-button-color: rgb(var(--status-error-04));\n}\n\n:host([variant="error"][tone="quiet"][active]) {\n --mds-button-color: rgb(var(--status-error-01));\n}\n\n:host-context(.pref-contrast-more):host([variant="info"][tone="strong"]) {\n --mds-button-background: rgb(var(--status-info-03));\n --mds-button-color: rgb(var(--tone-neutral));\n --mds-button-border-color: var(--status-info-03);\n}\n\n:host-context(.pref-contrast-more):host([variant="info"][tone="strong"][active]),\n:host-context(.pref-contrast-more):host([variant="info"][tone="strong"]:hover) {\n --mds-button-background: rgb(var(--status-info-02));\n --mds-button-border-color: var(--status-info-02);\n}\n\n:host-context(.pref-contrast-more):host([variant="info"][tone="weak"]) {\n --mds-button-background: rgb(var(--status-info-09));\n --mds-button-color: rgb(var(--status-info-02));\n --mds-button-border-color: var(--status-info-06);\n --mds-button-border-width: var(--mds-button-border-high-contrast-width);\n\n fill: rgb(var(--status-info-02));\n}\n\n:host-context(.pref-contrast-more):host([variant="info"][tone="weak"]:hover) {\n --mds-button-background: rgb(var(--status-info-10));\n --mds-button-color: rgb(var(--status-info-01));\n --mds-button-border-width: var(--mds-button-border-high-contrast-hover-width);\n\n fill: rgb(var(--status-info-01));\n}\n\n:host-context(.pref-contrast-more):host([variant="info"][tone="weak"][active]) {\n --mds-button-background: rgb(var(--status-info-08));\n --mds-button-color: rgb(var(--status-info-01));\n\n fill: rgb(var(--status-info-01));\n}\n\n:host-context(.pref-contrast-more):host([variant="info"][tone="ghost"]) {\n --mds-button-border-color: var(--status-info-03);\n --mds-button-color: rgb(var(--status-info-02));\n}\n\n:host-context(.pref-contrast-more):host([variant="info"][tone="ghost"]:hover) {\n --mds-button-border-color: var(--status-info-03);\n --mds-button-color: rgb(var(--status-info-01));\n}\n\n:host-context(.pref-contrast-more):host([variant="info"][tone="ghost"][active]) {\n --mds-button-border-color: var(--status-info-04);\n --mds-button-color: rgb(var(--status-info-02));\n}\n\n:host-context(.pref-contrast-more):host([variant="info"][tone="quiet"]) {\n --mds-button-color: rgb(var(--status-info-01));\n}\n\n:host-context(.pref-contrast-more):host([variant="info"][tone="quiet"]:hover) {\n --mds-button-color: rgb(var(--status-info-03));\n}\n\n:host-context(.pref-contrast-more):host([variant="info"][tone="quiet"][active]) {\n --mds-button-color: rgb(var(--status-info-01));\n}\n\n@media (prefers-contrast: more) {\n :host-context(.pref-contrast-system):host([variant="info"][tone="strong"]) {\n --mds-button-background: rgb(var(--status-info-03));\n --mds-button-color: rgb(var(--tone-neutral));\n }\n\n :host-context(.pref-contrast-system):host([variant="info"][tone="strong"][active]),\n :host-context(.pref-contrast-system):host([variant="info"][tone="strong"]:hover) {\n --mds-button-background: rgb(var(--status-info-02));\n --mds-button-border-color: var(--status-info-02);\n }\n\n :host-context(.pref-contrast-system):host([variant="info"][tone="weak"]) {\n --mds-button-background: rgb(var(--status-info-09));\n --mds-button-color: rgb(var(--status-info-02));\n --mds-button-border-color: var(--status-info-06);\n --mds-button-border-width: var(--mds-button-border-high-contrast-width);\n\n fill: rgb(var(--status-info-02));\n }\n\n :host-context(.pref-contrast-system):host([variant="info"][tone="weak"]:hover) {\n --mds-button-background: rgb(var(--status-info-10));\n --mds-button-color: rgb(var(--status-info-01));\n --mds-button-border-width: var(--mds-button-border-high-contrast-hover-width);\n\n fill: rgb(var(--status-info-01));\n }\n\n :host-context(.pref-contrast-system):host([variant="info"][tone="weak"][active]) {\n --mds-button-background: rgb(var(--status-info-08));\n --mds-button-color: rgb(var(--status-info-01));\n\n fill: rgb(var(--status-info-01));\n }\n\n :host-context(.pref-contrast-system):host([variant="info"][tone="ghost"]) {\n --mds-button-border-color: var(--status-info-03);\n --mds-button-color: rgb(var(--status-info-02));\n }\n\n :host-context(.pref-contrast-system):host([variant="info"][tone="ghost"]:hover) {\n --mds-button-border-color: var(--status-info-03);\n --mds-button-color: rgb(var(--status-info-01));\n }\n\n :host-context(.pref-contrast-system):host([variant="info"][tone="ghost"][active]) {\n --mds-button-border-color: var(--status-info-04);\n --mds-button-color: rgb(var(--status-info-02));\n }\n\n :host-context(.pref-contrast-system):host([variant="info"][tone="quiet"]) {\n --mds-button-color: rgb(var(--status-info-01));\n }\n\n :host-context(.pref-contrast-system):host([variant="info"][tone="quiet"]:hover) {\n --mds-button-color: rgb(var(--status-info-03));\n }\n\n :host-context(.pref-contrast-system):host([variant="info"][tone="quiet"][active]) {\n --mds-button-color: rgb(var(--status-info-01));\n }\n}\n\n:host([variant="info"][tone="strong"]) {\n --mds-button-background: rgb(var(--status-info-05));\n --mds-button-border-color: var(--status-info-05);\n --mds-button-color: rgb(var(--tone-neutral));\n}\n\n:host([variant="info"][tone="strong"]:hover) {\n --mds-button-background: rgb(var(--status-info-04));\n --mds-button-border-color: var(--status-info-04);\n}\n\n:host([variant="info"][tone="weak"]) {\n --mds-button-background: rgb(var(--status-info-09));\n --mds-button-border-color: var(--status-info-09);\n --mds-button-color: rgb(var(--status-info-03));\n\n fill: rgb(var(--status-info-03));\n}\n\n:host([variant="info"][tone="weak"]:hover) {\n --mds-button-background: rgb(var(--status-info-08));\n --mds-button-border-color: var(--status-info-08);\n}\n\n:host([variant="info"][tone="ghost"]) {\n --mds-button-border-color: var(--status-info-04);\n --mds-button-color: rgb(var(--status-info-03));\n}\n\n:host([variant="info"][tone="ghost"]:hover) {\n --mds-button-border-color: var(--status-info-04);\n --mds-button-color: rgb(var(--status-info-02));\n}\n\n:host([variant="info"][tone="quiet"]) {\n --mds-button-color: rgb(var(--status-info-02));\n}\n\n:host([variant="info"][tone="quiet"]:hover) {\n --mds-button-color: rgb(var(--status-info-04));\n}\n\n:host([variant="info"][tone="quiet"][active]) {\n --mds-button-color: rgb(var(--status-info-01));\n}\n\n:host([variant="light"][tone="strong"]) {\n --mds-button-background: rgb(var(--tone-neutral));\n --mds-button-border-color: var(--tone-neutral);\n --mds-button-color: rgb(var(--tone-neutral-03));\n}\n\n:host([variant="light"][tone="strong"]:hover) {\n --mds-button-background: rgb(var(--tone-neutral));\n --mds-button-border-color: var(--tone-neutral);\n}\n\n:host([variant="light"][tone="weak"]) {\n --mds-button-background: rgb(var(--tone-neutral));\n --mds-button-border-color: var(--tone-neutral);\n --mds-button-color: rgb(var(--tone-neutral-03));\n\n fill: rgb(var(--tone-neutral-03));\n}\n\n:host([variant="light"][tone="weak"]:hover) {\n --mds-button-background: rgb(var(--tone-neutral));\n --mds-button-border-color: var(--tone-neutral);\n --mds-button-color: rgb(var(--tone-neutral-02));\n}\n\n:host([variant="light"][tone="ghost"]) {\n --mds-button-border-color: var(--tone-neutral);\n --mds-button-color: rgb(var(--tone-neutral));\n}\n\n:host([variant="light"][tone="ghost"]:hover) {\n --mds-button-border-color: var(--tone-neutral);\n --mds-button-color: rgb(var(--tone-neutral));\n}\n\n:host([variant="light"][tone="quiet"]) {\n --mds-button-color: rgb(var(--tone-neutral));\n}\n\n:host([variant="light"][tone="quiet"]:hover) {\n --mds-button-color: rgb(var(--tone-neutral));\n}\n\n:host([variant="light"][tone="quiet"][active]) {\n --mds-button-color: rgb(var(--tone-neutral));\n}\n\n:host-context(.pref-contrast-more):host([variant="primary"][tone="strong"]) {\n --mds-button-background: rgb(var(--variant-primary-03));\n --mds-button-color: rgb(var(--tone-neutral));\n --mds-button-border-color: var(--variant-primary-03);\n}\n\n:host-context(.pref-contrast-more):host([variant="primary"][tone="strong"][active]),\n:host-context(.pref-contrast-more):host([variant="primary"][tone="strong"]:hover) {\n --mds-button-background: rgb(var(--variant-primary-02));\n --mds-button-border-color: var(--variant-primary-02);\n}\n\n:host-context(.pref-contrast-more):host([variant="primary"][tone="weak"]) {\n --mds-button-background: rgb(var(--variant-primary-09));\n --mds-button-color: rgb(var(--variant-primary-02));\n --mds-button-border-color: var(--variant-primary-06);\n --mds-button-border-width: var(--mds-button-border-high-contrast-width);\n\n fill: rgb(var(--variant-primary-02));\n}\n\n:host-context(.pref-contrast-more):host([variant="primary"][tone="weak"]:hover) {\n --mds-button-background: rgb(var(--variant-primary-10));\n --mds-button-color: rgb(var(--variant-primary-01));\n --mds-button-border-width: var(--mds-button-border-high-contrast-hover-width);\n\n fill: rgb(var(--variant-primary-01));\n}\n\n:host-context(.pref-contrast-more):host([variant="primary"][tone="weak"][active]) {\n --mds-button-background: rgb(var(--variant-primary-08));\n --mds-button-color: rgb(var(--variant-primary-01));\n\n fill: rgb(var(--variant-primary-01));\n}\n\n:host-context(.pref-contrast-more):host([variant="primary"][tone="ghost"]) {\n --mds-button-border-color: var(--variant-primary-03);\n --mds-button-color: rgb(var(--variant-primary-02));\n}\n\n:host-context(.pref-contrast-more):host([variant="primary"][tone="ghost"]:hover) {\n --mds-button-border-color: var(--variant-primary-03);\n --mds-button-color: rgb(var(--variant-primary-01));\n}\n\n:host-context(.pref-contrast-more):host([variant="primary"][tone="ghost"][active]) {\n --mds-button-border-color: var(--variant-primary-04);\n --mds-button-color: rgb(var(--variant-primary-02));\n}\n\n:host-context(.pref-contrast-more):host([variant="primary"][tone="quiet"]) {\n --mds-button-color: rgb(var(--variant-primary-01));\n}\n\n:host-context(.pref-contrast-more):host([variant="primary"][tone="quiet"]:hover) {\n --mds-button-color: rgb(var(--variant-primary-03));\n}\n\n:host-context(.pref-contrast-more):host([variant="primary"][tone="quiet"][active]) {\n --mds-button-color: rgb(var(--variant-primary-01));\n}\n\n@media (prefers-contrast: more) {\n :host-context(.pref-contrast-system):host([variant="primary"][tone="strong"]) {\n --mds-button-background: rgb(var(--variant-primary-03));\n --mds-button-color: rgb(var(--tone-neutral));\n }\n\n :host-context(.pref-contrast-system):host([variant="primary"][tone="strong"][active]),\n :host-context(.pref-contrast-system):host([variant="primary"][tone="strong"]:hover) {\n --mds-button-background: rgb(var(--variant-primary-02));\n --mds-button-border-color: var(--variant-primary-02);\n }\n\n :host-context(.pref-contrast-system):host([variant="primary"][tone="weak"]) {\n --mds-button-background: rgb(var(--variant-primary-09));\n --mds-button-color: rgb(var(--variant-primary-02));\n --mds-button-border-color: var(--variant-primary-06);\n --mds-button-border-width: var(--mds-button-border-high-contrast-width);\n\n fill: rgb(var(--variant-primary-02));\n }\n\n :host-context(.pref-contrast-system):host([variant="primary"][tone="weak"]:hover) {\n --mds-button-background: rgb(var(--variant-primary-10));\n --mds-button-color: rgb(var(--variant-primary-01));\n --mds-button-border-width: var(--mds-button-border-high-contrast-hover-width);\n\n fill: rgb(var(--variant-primary-01));\n }\n\n :host-context(.pref-contrast-system):host([variant="primary"][tone="weak"][active]) {\n --mds-button-background: rgb(var(--variant-primary-08));\n --mds-button-color: rgb(var(--variant-primary-01));\n\n fill: rgb(var(--variant-primary-01));\n }\n\n :host-context(.pref-contrast-system):host([variant="primary"][tone="ghost"]) {\n --mds-button-border-color: var(--variant-primary-03);\n --mds-button-color: rgb(var(--variant-primary-02));\n }\n\n :host-context(.pref-contrast-system):host([variant="primary"][tone="ghost"]:hover) {\n --mds-button-border-color: var(--variant-primary-03);\n --mds-button-color: rgb(var(--variant-primary-01));\n }\n\n :host-context(.pref-contrast-system):host([variant="primary"][tone="ghost"][active]) {\n --mds-button-border-color: var(--variant-primary-04);\n --mds-button-color: rgb(var(--variant-primary-02));\n }\n\n :host-context(.pref-contrast-system):host([variant="primary"][tone="quiet"]) {\n --mds-button-color: rgb(var(--variant-primary-01));\n }\n\n :host-context(.pref-contrast-system):host([variant="primary"][tone="quiet"]:hover) {\n --mds-button-color: rgb(var(--variant-primary-03));\n }\n\n :host-context(.pref-contrast-system):host([variant="primary"][tone="quiet"][active]) {\n --mds-button-color: rgb(var(--variant-primary-01));\n }\n}\n\n:host([variant="primary"][tone="strong"]) {\n --mds-button-background: rgb(var(--variant-primary-04));\n --mds-button-border-color: var(--variant-primary-04);\n --mds-button-color: rgb(var(--tone-neutral));\n}\n\n:host([variant="primary"][tone="strong"]:hover) {\n --mds-button-background: rgb(var(--variant-primary-03));\n --mds-button-border-color: var(--variant-primary-03);\n}\n\n:host([variant="primary"][tone="weak"]) {\n --mds-button-background: rgb(var(--variant-primary-09));\n --mds-button-border-color: var(--variant-primary-09);\n --mds-button-color: rgb(var(--variant-primary-03));\n\n fill: rgb(var(--variant-primary-03));\n}\n\n:host([variant="primary"][tone="weak"]:hover) {\n --mds-button-background: rgb(var(--variant-primary-08));\n --mds-button-border-color: var(--variant-primary-08);\n}\n\n:host([variant="primary"][tone="ghost"]) {\n --mds-button-border-color: var(--variant-primary-04);\n --mds-button-color: rgb(var(--variant-primary-03));\n}\n\n:host([variant="primary"][tone="ghost"]:hover) {\n --mds-button-border-color: var(--variant-primary-04);\n --mds-button-color: rgb(var(--variant-primary-02));\n}\n\n:host([variant="primary"][tone="quiet"]) {\n --mds-button-color: rgb(var(--variant-primary-02));\n}\n\n:host([variant="primary"][tone="quiet"]:hover) {\n --mds-button-color: rgb(var(--variant-primary-04));\n}\n\n:host([variant="primary"][tone="quiet"][active]) {\n --mds-button-color: rgb(var(--variant-primary-01));\n}\n\n:host-context(.pref-contrast-more):host([variant="secondary"][tone="strong"]) {\n --mds-button-background: rgb(var(--variant-secondary-03));\n --mds-button-color: rgb(var(--tone-neutral));\n --mds-button-border-color: var(--variant-secondary-03);\n}\n\n:host-context(.pref-contrast-more):host([variant="secondary"][tone="strong"][active]),\n:host-context(.pref-contrast-more):host([variant="secondary"][tone="strong"]:hover) {\n --mds-button-background: rgb(var(--variant-secondary-02));\n --mds-button-border-color: var(--variant-secondary-02);\n}\n\n:host-context(.pref-contrast-more):host([variant="secondary"][tone="weak"]) {\n --mds-button-background: rgb(var(--variant-secondary-09));\n --mds-button-color: rgb(var(--variant-secondary-02));\n --mds-button-border-color: var(--variant-secondary-06);\n --mds-button-border-width: var(--mds-button-border-high-contrast-width);\n\n fill: rgb(var(--variant-secondary-02));\n}\n\n:host-context(.pref-contrast-more):host([variant="secondary"][tone="weak"]:hover) {\n --mds-button-background: rgb(var(--variant-secondary-10));\n --mds-button-color: rgb(var(--variant-secondary-01));\n --mds-button-border-width: var(--mds-button-border-high-contrast-hover-width);\n\n fill: rgb(var(--variant-secondary-01));\n}\n\n:host-context(.pref-contrast-more):host([variant="secondary"][tone="weak"][active]) {\n --mds-button-background: rgb(var(--variant-secondary-08));\n --mds-button-color: rgb(var(--variant-secondary-01));\n\n fill: rgb(var(--variant-secondary-01));\n}\n\n:host-context(.pref-contrast-more):host([variant="secondary"][tone="ghost"]) {\n --mds-button-border-color: var(--variant-secondary-03);\n --mds-button-color: rgb(var(--variant-secondary-02));\n}\n\n:host-context(.pref-contrast-more):host([variant="secondary"][tone="ghost"]:hover) {\n --mds-button-border-color: var(--variant-secondary-03);\n --mds-button-color: rgb(var(--variant-secondary-01));\n}\n\n:host-context(.pref-contrast-more):host([variant="secondary"][tone="ghost"][active]) {\n --mds-button-border-color: var(--variant-secondary-04);\n --mds-button-color: rgb(var(--variant-secondary-02));\n}\n\n:host-context(.pref-contrast-more):host([variant="secondary"][tone="quiet"]) {\n --mds-button-color: rgb(var(--variant-secondary-01));\n}\n\n:host-context(.pref-contrast-more):host([variant="secondary"][tone="quiet"]:hover) {\n --mds-button-color: rgb(var(--variant-secondary-03));\n}\n\n:host-context(.pref-contrast-more):host([variant="secondary"][tone="quiet"][active]) {\n --mds-button-color: rgb(var(--variant-secondary-01));\n}\n\n@media (prefers-contrast: more) {\n :host-context(.pref-contrast-system):host([variant="secondary"][tone="strong"]) {\n --mds-button-background: rgb(var(--variant-secondary-03));\n --mds-button-color: rgb(var(--tone-neutral));\n }\n\n :host-context(.pref-contrast-system):host([variant="secondary"][tone="strong"][active]),\n :host-context(.pref-contrast-system):host([variant="secondary"][tone="strong"]:hover) {\n --mds-button-background: rgb(var(--variant-secondary-02));\n --mds-button-border-color: var(--variant-secondary-02);\n }\n\n :host-context(.pref-contrast-system):host([variant="secondary"][tone="weak"]) {\n --mds-button-background: rgb(var(--variant-secondary-09));\n --mds-button-color: rgb(var(--variant-secondary-02));\n --mds-button-border-color: var(--variant-secondary-06);\n --mds-button-border-width: var(--mds-button-border-high-contrast-width);\n\n fill: rgb(var(--variant-secondary-02));\n }\n\n :host-context(.pref-contrast-system):host([variant="secondary"][tone="weak"]:hover) {\n --mds-button-background: rgb(var(--variant-secondary-10));\n --mds-button-color: rgb(var(--variant-secondary-01));\n --mds-button-border-width: var(--mds-button-border-high-contrast-hover-width);\n\n fill: rgb(var(--variant-secondary-01));\n }\n\n :host-context(.pref-contrast-system):host([variant="secondary"][tone="weak"][active]) {\n --mds-button-background: rgb(var(--variant-secondary-08));\n --mds-button-color: rgb(var(--variant-secondary-01));\n\n fill: rgb(var(--variant-secondary-01));\n }\n\n :host-context(.pref-contrast-system):host([variant="secondary"][tone="ghost"]) {\n --mds-button-border-color: var(--variant-secondary-03);\n --mds-button-color: rgb(var(--variant-secondary-02));\n }\n\n :host-context(.pref-contrast-system):host([variant="secondary"][tone="ghost"]:hover) {\n --mds-button-border-color: var(--variant-secondary-03);\n --mds-button-color: rgb(var(--variant-secondary-01));\n }\n\n :host-context(.pref-contrast-system):host([variant="secondary"][tone="ghost"][active]) {\n --mds-button-border-color: var(--variant-secondary-04);\n --mds-button-color: rgb(var(--variant-secondary-02));\n }\n\n :host-context(.pref-contrast-system):host([variant="secondary"][tone="quiet"]) {\n --mds-button-color: rgb(var(--variant-secondary-01));\n }\n\n :host-context(.pref-contrast-system):host([variant="secondary"][tone="quiet"]:hover) {\n --mds-button-color: rgb(var(--variant-secondary-03));\n }\n\n :host-context(.pref-contrast-system):host([variant="secondary"][tone="quiet"][active]) {\n --mds-button-color: rgb(var(--variant-secondary-01));\n }\n}\n\n:host([variant="secondary"][tone="strong"]) {\n --mds-button-background: rgb(var(--variant-secondary-04));\n --mds-button-border-color: var(--variant-secondary-04);\n --mds-button-color: rgb(var(--tone-neutral));\n}\n\n:host([variant="secondary"][tone="strong"]:hover) {\n --mds-button-background: rgb(var(--variant-secondary-03));\n --mds-button-border-color: var(--variant-secondary-03);\n}\n\n:host([variant="secondary"][tone="weak"]) {\n --mds-button-background: rgb(var(--variant-secondary-09));\n --mds-button-border-color: var(--variant-secondary-09);\n --mds-button-color: rgb(var(--variant-secondary-03));\n\n fill: rgb(var(--variant-secondary-03));\n}\n\n:host([variant="secondary"][tone="weak"]:hover) {\n --mds-button-background: rgb(var(--variant-secondary-08));\n --mds-button-border-color: var(--variant-secondary-08);\n}\n\n:host([variant="secondary"][tone="ghost"]) {\n --mds-button-border-color: var(--variant-secondary-04);\n --mds-button-color: rgb(var(--variant-secondary-03));\n}\n\n:host([variant="secondary"][tone="ghost"]:hover) {\n --mds-button-border-color: var(--variant-secondary-04);\n --mds-button-color: rgb(var(--variant-secondary-02));\n}\n\n:host([variant="secondary"][tone="quiet"]) {\n --mds-button-color: rgb(var(--variant-secondary-02));\n}\n\n:host([variant="secondary"][tone="quiet"]:hover) {\n --mds-button-color: rgb(var(--variant-secondary-04));\n}\n\n:host([variant="secondary"][tone="quiet"][active]) {\n --mds-button-color: rgb(var(--variant-secondary-01));\n}\n\n:host-context(.pref-contrast-more):host([variant="success"][tone="strong"]) {\n --mds-button-background: rgb(var(--status-success-03));\n --mds-button-color: rgb(var(--tone-neutral));\n --mds-button-border-color: var(--status-success-03);\n}\n\n:host-context(.pref-contrast-more):host([variant="success"][tone="strong"][active]),\n:host-context(.pref-contrast-more):host([variant="success"][tone="strong"]:hover) {\n --mds-button-background: rgb(var(--status-success-02));\n --mds-button-border-color: var(--status-success-02);\n}\n\n:host-context(.pref-contrast-more):host([variant="success"][tone="weak"]) {\n --mds-button-background: rgb(var(--status-success-09));\n --mds-button-color: rgb(var(--status-success-02));\n --mds-button-border-color: var(--status-success-06);\n --mds-button-border-width: var(--mds-button-border-high-contrast-width);\n\n fill: rgb(var(--status-success-02));\n}\n\n:host-context(.pref-contrast-more):host([variant="success"][tone="weak"]:hover) {\n --mds-button-background: rgb(var(--status-success-10));\n --mds-button-color: rgb(var(--status-success-01));\n --mds-button-border-width: var(--mds-button-border-high-contrast-hover-width);\n\n fill: rgb(var(--status-success-01));\n}\n\n:host-context(.pref-contrast-more):host([variant="success"][tone="weak"][active]) {\n --mds-button-background: rgb(var(--status-success-08));\n --mds-button-color: rgb(var(--status-success-01));\n\n fill: rgb(var(--status-success-01));\n}\n\n:host-context(.pref-contrast-more):host([variant="success"][tone="ghost"]) {\n --mds-button-border-color: var(--status-success-03);\n --mds-button-color: rgb(var(--status-success-02));\n}\n\n:host-context(.pref-contrast-more):host([variant="success"][tone="ghost"]:hover) {\n --mds-button-border-color: var(--status-success-03);\n --mds-button-color: rgb(var(--status-success-01));\n}\n\n:host-context(.pref-contrast-more):host([variant="success"][tone="ghost"][active]) {\n --mds-button-border-color: var(--status-success-04);\n --mds-button-color: rgb(var(--status-success-02));\n}\n\n:host-context(.pref-contrast-more):host([variant="success"][tone="quiet"]) {\n --mds-button-color: rgb(var(--status-success-01));\n}\n\n:host-context(.pref-contrast-more):host([variant="success"][tone="quiet"]:hover) {\n --mds-button-color: rgb(var(--status-success-03));\n}\n\n:host-context(.pref-contrast-more):host([variant="success"][tone="quiet"][active]) {\n --mds-button-color: rgb(var(--status-success-01));\n}\n\n@media (prefers-contrast: more) {\n :host-context(.pref-contrast-system):host([variant="success"][tone="strong"]) {\n --mds-button-background: rgb(var(--status-success-03));\n --mds-button-color: rgb(var(--tone-neutral));\n }\n\n :host-context(.pref-contrast-system):host([variant="success"][tone="strong"][active]),\n :host-context(.pref-contrast-system):host([variant="success"][tone="strong"]:hover) {\n --mds-button-background: rgb(var(--status-success-02));\n --mds-button-border-color: var(--status-success-02);\n }\n\n :host-context(.pref-contrast-system):host([variant="success"][tone="weak"]) {\n --mds-button-background: rgb(var(--status-success-09));\n --mds-button-color: rgb(var(--status-success-02));\n --mds-button-border-color: var(--status-success-06);\n --mds-button-border-width: var(--mds-button-border-high-contrast-width);\n\n fill: rgb(var(--status-success-02));\n }\n\n :host-context(.pref-contrast-system):host([variant="success"][tone="weak"]:hover) {\n --mds-button-background: rgb(var(--status-success-10));\n --mds-button-color: rgb(var(--status-success-01));\n --mds-button-border-width: var(--mds-button-border-high-contrast-hover-width);\n\n fill: rgb(var(--status-success-01));\n }\n\n :host-context(.pref-contrast-system):host([variant="success"][tone="weak"][active]) {\n --mds-button-background: rgb(var(--status-success-08));\n --mds-button-color: rgb(var(--status-success-01));\n\n fill: rgb(var(--status-success-01));\n }\n\n :host-context(.pref-contrast-system):host([variant="success"][tone="ghost"]) {\n --mds-button-border-color: var(--status-success-03);\n --mds-button-color: rgb(var(--status-success-02));\n }\n\n :host-context(.pref-contrast-system):host([variant="success"][tone="ghost"]:hover) {\n --mds-button-border-color: var(--status-success-03);\n --mds-button-color: rgb(var(--status-success-01));\n }\n\n :host-context(.pref-contrast-system):host([variant="success"][tone="ghost"][active]) {\n --mds-button-border-color: var(--status-success-04);\n --mds-button-color: rgb(var(--status-success-02));\n }\n\n :host-context(.pref-contrast-system):host([variant="success"][tone="quiet"]) {\n --mds-button-color: rgb(var(--status-success-01));\n }\n\n :host-context(.pref-contrast-system):host([variant="success"][tone="quiet"]:hover) {\n --mds-button-color: rgb(var(--status-success-03));\n }\n\n :host-context(.pref-contrast-system):host([variant="success"][tone="quiet"][active]) {\n --mds-button-color: rgb(var(--status-success-01));\n }\n}\n\n:host([variant="success"][tone="strong"]) {\n --mds-button-background: rgb(var(--status-success-05));\n --mds-button-border-color: var(--status-success-05);\n --mds-button-color: rgb(var(--tone-neutral));\n}\n\n:host([variant="success"][tone="strong"]:hover) {\n --mds-button-background: rgb(var(--status-success-04));\n --mds-button-border-color: var(--status-success-04);\n}\n\n:host([variant="success"][tone="weak"]) {\n --mds-button-background: rgb(var(--status-success-09));\n --mds-button-border-color: var(--status-success-09);\n --mds-button-color: rgb(var(--status-success-03));\n\n fill: rgb(var(--status-success-03));\n}\n\n:host([variant="success"][tone="weak"]:hover) {\n --mds-button-background: rgb(var(--status-success-08));\n --mds-button-border-color: var(--status-success-08);\n}\n\n:host([variant="success"][tone="ghost"]) {\n --mds-button-border-color: var(--status-success-04);\n --mds-button-color: rgb(var(--status-success-03));\n}\n\n:host([variant="success"][tone="ghost"]:hover) {\n --mds-button-border-color: var(--status-success-04);\n --mds-button-color: rgb(var(--status-success-02));\n}\n\n:host([variant="success"][tone="quiet"]) {\n --mds-button-color: rgb(var(--status-success-02));\n}\n\n:host([variant="success"][tone="quiet"]:hover) {\n --mds-button-color: rgb(var(--status-success-04));\n}\n\n:host([variant="success"][tone="quiet"][active]) {\n --mds-button-color: rgb(var(--status-success-01));\n}\n\n:host-context(.pref-contrast-more):host([variant="warning"][tone="strong"]) {\n --mds-button-background: rgb(var(--status-warning-03));\n --mds-button-color: rgb(var(--tone-neutral));\n --mds-button-border-color: var(--status-warning-03);\n}\n\n:host-context(.pref-contrast-more):host([variant="warning"][tone="strong"][active]),\n:host-context(.pref-contrast-more):host([variant="warning"][tone="strong"]:hover) {\n --mds-button-background: rgb(var(--status-warning-02));\n --mds-button-border-color: var(--status-warning-02);\n}\n\n:host-context(.pref-contrast-more):host([variant="warning"][tone="weak"]) {\n --mds-button-background: rgb(var(--status-warning-09));\n --mds-button-color: rgb(var(--status-warning-02));\n --mds-button-border-color: var(--status-warning-06);\n --mds-button-border-width: var(--mds-button-border-high-contrast-width);\n\n fill: rgb(var(--status-warning-02));\n}\n\n:host-context(.pref-contrast-more):host([variant="warning"][tone="weak"]:hover) {\n --mds-button-background: rgb(var(--status-warning-10));\n --mds-button-color: rgb(var(--status-warning-01));\n --mds-button-border-width: var(--mds-button-border-high-contrast-hover-width);\n\n fill: rgb(var(--status-warning-01));\n}\n\n:host-context(.pref-contrast-more):host([variant="warning"][tone="weak"][active]) {\n --mds-button-background: rgb(var(--status-warning-08));\n --mds-button-color: rgb(var(--status-warning-01));\n\n fill: rgb(var(--status-warning-01));\n}\n\n:host-context(.pref-contrast-more):host([variant="warning"][tone="ghost"]) {\n --mds-button-border-color: var(--status-warning-03);\n --mds-button-color: rgb(var(--status-warning-02));\n}\n\n:host-context(.pref-contrast-more):host([variant="warning"][tone="ghost"]:hover) {\n --mds-button-border-color: var(--status-warning-03);\n --mds-button-color: rgb(var(--status-warning-01));\n}\n\n:host-context(.pref-contrast-more):host([variant="warning"][tone="ghost"][active]) {\n --mds-button-border-color: var(--status-warning-04);\n --mds-button-color: rgb(var(--status-warning-02));\n}\n\n:host-context(.pref-contrast-more):host([variant="warning"][tone="quiet"]) {\n --mds-button-color: rgb(var(--status-warning-01));\n}\n\n:host-context(.pref-contrast-more):host([variant="warning"][tone="quiet"]:hover) {\n --mds-button-color: rgb(var(--status-warning-03));\n}\n\n:host-context(.pref-contrast-more):host([variant="warning"][tone="quiet"][active]) {\n --mds-button-color: rgb(var(--status-warning-01));\n}\n\n@media (prefers-contrast: more) {\n :host-context(.pref-contrast-system):host([variant="warning"][tone="strong"]) {\n --mds-button-background: rgb(var(--status-warning-03));\n --mds-button-color: rgb(var(--tone-neutral));\n }\n\n :host-context(.pref-contrast-system):host([variant="warning"][tone="strong"][active]),\n :host-context(.pref-contrast-system):host([variant="warning"][tone="strong"]:hover) {\n --mds-button-background: rgb(var(--status-warning-02));\n --mds-button-border-color: var(--status-warning-02);\n }\n\n :host-context(.pref-contrast-system):host([variant="warning"][tone="weak"]) {\n --mds-button-background: rgb(var(--status-warning-09));\n --mds-button-color: rgb(var(--status-warning-02));\n --mds-button-border-color: var(--status-warning-06);\n --mds-button-border-width: var(--mds-button-border-high-contrast-width);\n\n fill: rgb(var(--status-warning-02));\n }\n\n :host-context(.pref-contrast-system):host([variant="warning"][tone="weak"]:hover) {\n --mds-button-background: rgb(var(--status-warning-10));\n --mds-button-color: rgb(var(--status-warning-01));\n --mds-button-border-width: var(--mds-button-border-high-contrast-hover-width);\n\n fill: rgb(var(--status-warning-01));\n }\n\n :host-context(.pref-contrast-system):host([variant="warning"][tone="weak"][active]) {\n --mds-button-background: rgb(var(--status-warning-08));\n --mds-button-color: rgb(var(--status-warning-01));\n\n fill: rgb(var(--status-warning-01));\n }\n\n :host-context(.pref-contrast-system):host([variant="warning"][tone="ghost"]) {\n --mds-button-border-color: var(--status-warning-03);\n --mds-button-color: rgb(var(--status-warning-02));\n }\n\n :host-context(.pref-contrast-system):host([variant="warning"][tone="ghost"]:hover) {\n --mds-button-border-color: var(--status-warning-03);\n --mds-button-color: rgb(var(--status-warning-01));\n }\n\n :host-context(.pref-contrast-system):host([variant="warning"][tone="ghost"][active]) {\n --mds-button-border-color: var(--status-warning-04);\n --mds-button-color: rgb(var(--status-warning-02));\n }\n\n :host-context(.pref-contrast-system):host([variant="warning"][tone="quiet"]) {\n --mds-button-color: rgb(var(--status-warning-01));\n }\n\n :host-context(.pref-contrast-system):host([variant="warning"][tone="quiet"]:hover) {\n --mds-button-color: rgb(var(--status-warning-03));\n }\n\n :host-context(.pref-contrast-system):host([variant="warning"][tone="quiet"][active]) {\n --mds-button-color: rgb(var(--status-warning-01));\n }\n}\n\n:host([variant="warning"][tone="strong"]) {\n --mds-button-background: rgb(var(--status-warning-05));\n --mds-button-border-color: var(--status-warning-05);\n --mds-button-color: rgb(var(--tone-neutral));\n}\n\n:host([variant="warning"][tone="strong"]:hover) {\n --mds-button-background: rgb(var(--status-warning-04));\n --mds-button-border-color: var(--status-warning-04);\n}\n\n:host([variant="warning"][tone="weak"]) {\n --mds-button-background: rgb(var(--status-warning-09));\n --mds-button-border-color: var(--status-warning-09);\n --mds-button-color: rgb(var(--status-warning-03));\n\n fill: rgb(var(--status-warning-03));\n}\n\n:host([variant="warning"][tone="weak"]:hover) {\n --mds-button-background: rgb(var(--status-warning-08));\n --mds-button-border-color: var(--status-warning-08);\n}\n\n:host([variant="warning"][tone="ghost"]) {\n --mds-button-border-color: var(--status-warning-04);\n --mds-button-color: rgb(var(--status-warning-03));\n}\n\n:host([variant="warning"][tone="ghost"]:hover) {\n --mds-button-border-color: var(--status-warning-04);\n --mds-button-color: rgb(var(--status-warning-02));\n}\n\n:host([variant="warning"][tone="quiet"]) {\n --mds-button-color: rgb(var(--status-warning-02));\n}\n\n:host([variant="warning"][tone="quiet"]:hover) {\n --mds-button-color: rgb(var(--status-warning-04));\n}\n\n:host([variant="warning"][tone="quiet"][active]) {\n --mds-button-color: rgb(var(--status-warning-01));\n}\n\n:host([tone="quiet"]),\n:host([tone="quiet"]:hover),\n:host([tone="ghost"]) {\n --mds-button-background: transparent;\n}\n\n:host([tone="strong"]),\n:host([tone="weak"]) {\n --mds-button-border-default-opacity: 1;\n --mds-button-border-width: 0;\n}\n\n:host([tone="strong"]),\n:host([tone="weak"]),\n:host([tone="ghost"]) {\n --mds-button-border-opacity: var(--mds-button-border-default-opacity);\n}\n\n:host([tone="strong"]:hover),\n:host([tone="strong"][active]) {\n --mds-button-border-width: var(--mds-button-border-tone-strong-hover-width);\n}\n\n:host([tone="weak"]:hover),\n:host([tone="weak"][active]) {\n --mds-button-border-width: var(--mds-button-border-tone-weak-hover-width);\n}\n\n:host([tone="ghost"]:hover),\n:host([tone="ghost"][active]) {\n --mds-button-background: transparent;\n --mds-button-border-width: var(--mds-button-border-tone-ghost-hover-width);\n --mds-button-border-opacity: var(--mds-button-border-hover-opacity);\n}\n\n:host([variant="google"]),\n:host([variant="google"][tone]) {\n --mds-button-background: rgb(var(--tone-neutral));\n --mds-button-border-hover-opacity: 0.5;\n --mds-button-border-hover-width: 0.125rem;\n --mds-button-border-opacity: 0.2;\n --mds-button-border-width: 0.0625rem;\n --mds-button-color: rgb(var(--tone-neutral-03));\n --mds-button-border-color: var(--tone-neutral-01);\n\n -webkit-box-shadow: 0 0 0 var(--mds-button-border-width) rgb(var(--mds-button-border-color) / var(--mds-button-border-opacity));\n\n box-shadow: 0 0 0 var(--mds-button-border-width) rgb(var(--mds-button-border-color) / var(--mds-button-border-opacity));\n}\n\n:host([variant="google"]:hover),\n:host([variant="google"][tone]:hover) {\n --mds-button-border-width: var(--mds-button-border-hover-width);\n --mds-button-border-opacity: var(--mds-button-border-hover-opacity);\n}\n\n:host([variant="apple"]),\n:host([variant="apple"][tone]) {\n --mds-button-background: rgb(var(--tone-neutral-02));\n --mds-button-color: rgb(var(--tone-neutral));\n --mds-button-border-width: 0;\n}\n\n:host-context(.pref-theme-dark):host([variant="google"]),\n:host-context(.pref-theme-dark):host([variant="google"][tone]) {\n --mds-button-border-width: 0.125rem;\n --mds-button-border-opacity: 0.3;\n}\n\n:host-context(.pref-theme-dark):host([variant="google"]:hover),\n:host-context(.pref-theme-dark):host([variant="google"][tone]:hover) {\n --mds-button-border-opacity: 0.5;\n}\n\n:host-context(.pref-theme-dark):host([variant="apple"]),\n:host-context(.pref-theme-dark):host([variant="apple"][tone]) {\n --mds-button-background: rgb(var(--tone-neutral-01));\n}\n\n@media (prefers-color-scheme: dark) {\n :host-context(.pref-theme-system):host([variant="apple"]),\n :host-context(.pref-theme-system):host([variant="apple"][tone]) {\n --mds-button-background: rgb(var(--tone-neutral-01));\n }\n\n :host-context(.pref-theme-system):host([variant="google"]),\n :host-context(.pref-theme-system):host([variant="google"][tone]) {\n --mds-button-border-width: 0.125rem;\n --mds-button-border-opacity: 0.3;\n }\n\n :host-context(.pref-theme-system):host([variant="google"]:hover),\n :host-context(.pref-theme-system):host([variant="google"][tone]:hover) {\n --mds-button-border-opacity: 0.5;\n }\n}\n\n:host-context(.pref-animation-reduce),\n:host-context(.pref-animation-reduce) .await,\n:host-context(.pref-animation-reduce) .icon {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n}\n\n@media (prefers-reduced-motion) {\n :host-context(.pref-animation-system),\n :host-context(.pref-animation-system) .await,\n :host-context(.pref-animation-system) .icon {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n\n:host(:not(:is([hydrated], .hydrated))) {\n -webkit-animation-duration: 0s;\n animation-duration: 0s;\n border-color: transparent;\n -webkit-box-shadow: 0 0 0 transparent;\n box-shadow: 0 0 0 transparent;\n opacity: 0;\n outline-color: transparent;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n visibility: hidden;\n}\n\n/* TODO refact(stencil): Uses only used selector from parent shadowDOM component */\n\nmds-accordion:not(:is([hydrated], .hydrated)),\nmds-accordion-item:not(:is([hydrated], .hydrated)),\nmds-accordion-timer:not(:is([hydrated], .hydrated)),\nmds-accordion-timer-item:not(:is([hydrated], .hydrated)),\nmds-author:not(:is([hydrated], .hydrated)),\nmds-avatar:not(:is([hydrated], .hydrated)),\nmds-badge:not(:is([hydrated], .hydrated)),\nmds-banner:not(:is([hydrated], .hydrated)),\nmds-benchmark-bar:not(:is([hydrated], .hydrated)),\nmds-bibliography:not(:is([hydrated], .hydrated)),\nmds-breadcrumb:not(:is([hydrated], .hydrated)),\nmds-breadcrumb-item:not(:is([hydrated], .hydrated)),\nmds-button:not(:is([hydrated], .hydrated)),\nmds-card:not(:is([hydrated], .hydrated)),\nmds-card-content:not(:is([hydrated], .hydrated)),\nmds-card-footer:not(:is([hydrated], .hydrated)),\nmds-card-header:not(:is([hydrated], .hydrated)),\nmds-card-media:not(:is([hydrated], .hydrated)),\nmds-chip:not(:is([hydrated], .hydrated)),\nmds-details:not(:is([hydrated], .hydrated)),\nmds-dropdown:not(:is([hydrated], .hydrated)),\nmds-entity:not(:is([hydrated], .hydrated)),\nmds-file:not(:is([hydrated], .hydrated)),\nmds-file-preview:not(:is([hydrated], .hydrated)),\nmds-filter:not(:is([hydrated], .hydrated)),\nmds-filter-item:not(:is([hydrated], .hydrated)),\nmds-header:not(:is([hydrated], .hydrated)),\nmds-header-bar:not(:is([hydrated], .hydrated)),\nmds-help:not(:is([hydrated], .hydrated)),\nmds-horizontal-scroll:not(:is([hydrated], .hydrated)),\nmds-hr:not(:is([hydrated], .hydrated)),\nmds-icon:not(:is([hydrated], .hydrated)),\nmds-img:not(:is([hydrated], .hydrated)),\nmds-input:not(:is([hydrated], .hydrated)),\nmds-input-field:not(:is([hydrated], .hydrated)),\nmds-input-range:not(:is([hydrated], .hydrated)),\nmds-input-select:not(:is([hydrated], .hydrated)),\nmds-input-switch:not(:is([hydrated], .hydrated)),\nmds-input-tip:not(:is([hydrated], .hydrated)),\nmds-input-tip-item:not(:is([hydrated], .hydrated)),\nmds-input-upload:not(:is([hydrated], .hydrated)),\nmds-keyboard:not(:is([hydrated], .hydrated)),\nmds-keyboard-key:not(:is([hydrated], .hydrated)),\nmds-kpi:not(:is([hydrated], .hydrated)),\nmds-kpi-item:not(:is([hydrated], .hydrated)),\nmds-label:not(:is([hydrated], .hydrated)),\nmds-list:not(:is([hydrated], .hydrated)),\nmds-list-item:not(:is([hydrated], .hydrated)),\nmds-modal:not(:is([hydrated], .hydrated)),\nmds-note:not(:is([hydrated], .hydrated)),\nmds-notification:not(:is([hydrated], .hydrated)),\nmds-paginator:not(:is([hydrated], .hydrated)),\nmds-paginator-item:not(:is([hydrated], .hydrated)),\nmds-pref:not(:is([hydrated], .hydrated)),\nmds-pref-animation:not(:is([hydrated], .hydrated)),\nmds-pref-consumption:not(:is([hydrated], .hydrated)),\nmds-pref-contrast:not(:is([hydrated], .hydrated)),\nmds-pref-language:not(:is([hydrated], .hydrated)),\nmds-pref-language-item:not(:is([hydrated], .hydrated)),\nmds-pref-theme:not(:is([hydrated], .hydrated)),\nmds-price-table:not(:is([hydrated], .hydrated)),\nmds-price-table-features:not(:is([hydrated], .hydrated)),\nmds-price-table-features-cell:not(:is([hydrated], .hydrated)),\nmds-price-table-features-row:not(:is([hydrated], .hydrated)),\nmds-price-table-header:not(:is([hydrated], .hydrated)),\nmds-price-table-list:not(:is([hydrated], .hydrated)),\nmds-price-table-list-item:not(:is([hydrated], .hydrated)),\nmds-progress:not(:is([hydrated], .hydrated)),\nmds-push-notification:not(:is([hydrated], .hydrated)),\nmds-push-notifications:not(:is([hydrated], .hydrated)),\nmds-quote:not(:is([hydrated], .hydrated)),\nmds-separator:not(:is([hydrated], .hydrated)),\nmds-spinner:not(:is([hydrated], .hydrated)),\nmds-stepper-bar:not(:is([hydrated], .hydrated)),\nmds-stepper-bar-item:not(:is([hydrated], .hydrated)),\nmds-tab:not(:is([hydrated], .hydrated)),\nmds-tab-bar:not(:is([hydrated], .hydrated)),\nmds-tab-bar-item:not(:is([hydrated], .hydrated)),\nmds-tab-item:not(:is([hydrated], .hydrated)),\nmds-table:not(:is([hydrated], .hydrated)),\nmds-table-body:not(:is([hydrated], .hydrated)),\nmds-table-cell:not(:is([hydrated], .hydrated)),\nmds-table-footer:not(:is([hydrated], .hydrated)),\nmds-table-header:not(:is([hydrated], .hydrated)),\nmds-table-header-cell:not(:is([hydrated], .hydrated)),\nmds-table-row:not(:is([hydrated], .hydrated)),\nmds-text:not(:is([hydrated], .hydrated)),\nmds-toast:not(:is([hydrated], .hydrated)),\nmds-tooltip:not(:is([hydrated], .hydrated)),\nmds-tree:not(:is([hydrated], .hydrated)),\nmds-tree-item:not(:is([hydrated], .hydrated)),\nmds-url-view:not(:is([hydrated], .hydrated)),\nmds-usage:not(:is([hydrated], .hydrated)),\nmds-video-wall:not(:is([hydrated], .hydrated)),\nmds-zero:not(:is([hydrated], .hydrated))\n{\n -webkit-animation-duration: 0s;\n animation-duration: 0s;\n border-color: transparent;\n -webkit-box-shadow: 0 0 0 transparent;\n box-shadow: 0 0 0 transparent;\n opacity: 0;\n outline-color: transparent;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n visibility: hidden;\n}\n\n';class l{resolveIconName(t){return this._resolveIconName(t,this.name,this.path)}constructor(t,n,r){this.name=t,this.path=n,this._resolveIconName=r}get resolver(){return this._resolveIconName}}const y=new class{constructor(){this._svgPathKey="mdsIconSvgPath",this._iconsSets=new Map,this._svgPathUpdate="mdsIconSvgPathUpdate",this.cacheExp=864e5,this.listeners=[],this.memoryCache={},this.isCacheAvailable=async t=>{try{const n=await function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:v())("readonly",(function(n){return m(n.get(t))}))}(`loader_${t}`);if(!n)return!1;const r=JSON.parse(n);return Date.now()<r.expiry?r.data:(function(t){(arguments.length>1&&void 0!==arguments[1]?arguments[1]:v())("readwrite",(function(n){return n.delete(t),m(n.transaction)}))}(`loader_${t}`),!1)}catch(t){return console.error("isCacheAvailable error",t),!1}},this.setCache=async(t,n)=>{try{await function(t,n){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:v())("readwrite",(function(r){return r.put(n,t),m(r.transaction)}))}(`loader_${t}`,JSON.stringify({data:n,expiry:Date.now()+this.cacheExp}))}catch(t){console.error("setCache error",t)}},this.setUpListener()}addIconSet(t,n,r){let o=r;const a=this._iconsSets.get(t);if(!o&&a&&"function"==typeof a.resolver)o=a.resolver;else{if(o&&"function"!=typeof o)return console.error("MdsIconSvg: the third input of addIconSet should be a function that parses and returns the icons's filename."),!1;if(!o)return console.error(`MdsIconSvg: the set ${t} needs a resolve function for the icon names.`),!1}return this._iconsSets.set(t,new l(t,n,o)),!0}getIconSet(t){return t?{set:this._iconsSets.get(t.split("/")[0])}:{set:null}}setSvgPath(t){const n=/^(((https?:\/\/)?[.\w]+(:\d+)?)|\/)([\w/-]+)*/.exec(t);if(!n)throw Error(`Svg path not recognize ${t}, ensure is a absolute path starting with '/' or a url`);"undefined"!=typeof window&&(this._svgPath=n[1]?n[0]:window.location.origin.concat(n[0]),window.dispatchEvent(new Event(this._svgPathUpdate)))}getSvgPath(){return this._svgPath}registerListener(t){this.listeners.push(t)}setUpListener(){"undefined"!=typeof window&&window.addEventListener(this._svgPathUpdate,(()=>{for(const t of this.listeners)t()}))}async fetchSvg(t){var n;try{if(!this._svgPath&&"undefined"==typeof window)throw Error("Cant find svgPath, ensure you set it");this._svgPath||this.setSvgPath(null!==(n=window.sessionStorage.getItem(y._svgPathKey))&&void 0!==n?n:"");const r=this._svgPath&&!t.startsWith("http")?this._svgPath.concat(t,".svg"):t,o=await this.isCacheAvailable(r);if(this.memoryCache[r]||o)return this.memoryCache[r]||o;const a=await fetch(r);if(!a.ok)throw Error(`Request for '${r}' returned ${a.status} (${a.statusText})`);const s=await a.text(),e=s.toLowerCase().trim();if(!e.startsWith("<svg")&&!e.startsWith("<?xml"))throw Error(`Resource '${r}' returned an invalid SVG file`);return this.setCache(r,s),this.memoryCache[r]=s,s}catch(t){return console.error("fetchSvg error",t),""}}},g=class{constructor(n){t(this,n),this.convertBase64ToSvg=()=>{const t=this.name.replace(i,"").replace(/\=/i,"");return atob(t)}}componentWillLoad(){this.updateIcon(),y.registerListener((()=>this.updateIcon()))}static setSvgPathStatic(t){y.setSvgPath(t)}async setSvgPath(t){y.setSvgPath(t)}async updateIcon(){return this.name?h(this.name)?(this.svgHTML=this.convertBase64ToSvg(),Promise.resolve()):c(this.name)?(this.svgHTML=this.name,Promise.resolve()):void(this.svgHTML=await y.fetchSvg(this.name)):Promise.resolve()}render(){return n(r,{key:"43b9527b1f2650abead16b06c90286fea09adb34"},this.svgHTML&&n("i",{key:"8527fafd0f60b6aa32a2d8e35cd33e9d2403d7b5","aria-hidden":"true",class:"icon",part:"svg",innerHTML:this.svgHTML}))}get hostElement(){return o(this)}static get watchers(){return{name:["updateIcon"]}}};g.style=":host{aspect-ratio:1/1;width:1.5rem;-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center}.icon{-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;font-style:normal;-ms-flex-pack:center;justify-content:center;width:100%}.icon svg{height:auto;width:100%}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}";const p=class{constructor(n){t(this,n),this.running=!1}handleRunning(t){!1===t&&(this.running=void 0)}render(){return n(r,{key:"26cc04164b95792fbabf4248eceff7b630d14171"},n("i",{key:"15a3883a3c6777b5475974269e1a946a955b315a",class:"await-icon",innerHTML:'<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path opacity="0.25" d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" stroke="currentColor" stroke-width="4"/>\n <path opacity="0.75" d="M10 2.2002C5.43552 3.12674 2 7.16224 2 12.0002C2 13.5118 2.3354 14.9451 2.93585 16.2297" stroke="currentColor" stroke-width="4" stroke-linecap="round"/>\n</svg>\n'}))}static get watchers(){return{running:["handleRunning"]}}};p.style=":host{--mds-spinner-duration:0.725s;height:3rem;width:3rem;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.77, 0, 0.175, 1);transition-timing-function:cubic-bezier(0.77, 0, 0.175, 1);-ms-flex-align:center;align-items:center;color:rgb(var(--variant-primary-03));display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;opacity:0;-webkit-transform:scale(0);transform:scale(0);-webkit-transition-property:opacity, -webkit-transform;transition-property:opacity, -webkit-transform;transition-property:opacity, transform;transition-property:opacity, transform, -webkit-transform}:host([running]){-webkit-transition-duration:700ms;transition-duration:700ms;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1);opacity:1;-webkit-transform:scale(1);transform:scale(1)}.await-icon{aspect-ratio:1/1;width:100%}@-webkit-keyframes spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.await-icon{-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);-webkit-animation-duration:var(--mds-spinner-duration);animation-duration:var(--mds-spinner-duration);-webkit-animation-play-state:paused;animation-play-state:paused;display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;stroke:currentcolor;-webkit-transition-property:stroke;transition-property:stroke}.await-icon svg{width:100%}:host([running]) .await-icon{-webkit-animation-play-state:running;animation-play-state:running}:host-context(.pref-animation-reduce){--mds-spinner-duration:8s}@media (prefers-reduced-motion){:host-context(.pref-animation-system){--mds-spinner-duration:8s}}:host-context(.pref-contrast-more){color:rgb(var(--variant-primary-01))}@media (prefers-contrast: more){:host-context(.pref-contrast-system){color:rgb(var(--variant-primary-01))}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}";export{b as mds_button,g as mds_icon,p as mds_spinner}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as d,h as e,H as a,g as r}from"./p-3a6b32e7.js";import{m as s}from"./p-adc5a87e.js";import{m as i}from"./p-24ec3f86.js";const o=class{constructor(e){t(this,e),this.pageChangedEvent=d(this,"mdsPaginatorChange",7),this.pages=0,this.currentPage=1,this.scrollPage=t=>{var d;const e=t,a=null===(d=this.element.shadowRoot)||void 0===d?void 0:d.querySelector(".pages"),r=null==a?void 0:a.querySelectorAll("mds-paginator-item");if(!a||!r)return;if(e<0)return void(a.scrollLeft=0);if(e>r.length-1)return void(a.scrollLeft=r[r.length-1].offsetLeft-a.offsetLeft);const s=r[e];a.scrollLeft=s.offsetLeft-a.offsetLeft-a.offsetWidth/2+s.offsetWidth/2},this.focus=t=>{var d;const e=null===(d=this.element.shadowRoot)||void 0===d?void 0:d.querySelector(".pages"),a=null==e?void 0:e.querySelectorAll("mds-paginator-item");if(a&&t.target){const d=Array.from(a).indexOf(t.target);this.scrollPage(d)}},this.goToPage=(t,d)=>{t<1||t>this.pages||(this.currentPage=t,this.pages>2&&this.scrollPage(this.currentPage-2),this.pageChangedEvent.emit({page:this.currentPage,caller:d}))}}componentDidLoad(){setTimeout((()=>{this.goToPage(this.currentPage)}),10)}render(){return e(a,{key:"b9d657eba839f340e6884a33a60679318d54f34d"},e("mds-paginator-item",{key:"cf00f632028acf9b723cd5262445d344d5eaf247",class:"item-icon",icon:s,disabled:1===this.currentPage,onClick:t=>this.goToPage(this.currentPage-1,t.target)}),this.pages>0&&e("mds-paginator-item",{key:"fa939c14a850380e2f176bab540822569ad69920",class:"item-first",selected:1===this.currentPage,onClick:t=>this.goToPage(1,t.target)},"1"),this.pages>2&&e("div",{key:"59d2f6299c3272a5a9eeb775debd951c92b010d3",class:"pages"},Array.from(Array(this.pages-2).keys()).map((t=>e("mds-paginator-item",{key:t,class:"item",selected:this.currentPage===t+2,onClick:d=>this.goToPage(t+2,d.target),onFocus:this.focus},t+2)))),this.pages>1&&e("mds-paginator-item",{key:"da7bdcac91a730b578d40d87d3eafe376c504d0a",class:"item-last",selected:this.currentPage===this.pages,onClick:t=>this.goToPage(this.pages,t.target)},this.pages),e("mds-paginator-item",{key:"96c940a778f155d35297834eada78c7fb5207ef6",class:"item-icon",icon:i,disabled:this.currentPage===this.pages,onClick:t=>this.goToPage(this.currentPage+1,t.target)}))}get element(){return r(this)}};o.style="@tailwind components; :host{--mds-paginator-background:rgb(var(--tone-neutral-09));--mds-paginator-scroll-behavior:smooth;gap:0.25rem;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}.pages{-webkit-overflow-scrolling:touch;-ms-overflow-style:none;scrollbar-width:none}.pages::-webkit-scrollbar{display:none}.pages{margin-left:0.5rem;margin-right:0.5rem;border-radius:9999px;padding:0.5rem;-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-ms-flex-align:center;align-items:center;background-color:var(--mds-paginator-background);display:-ms-flexbox;display:flex;-ms-flex-negative:1;flex-shrink:1;gap:2px;overflow:auto;scroll-behavior:var(--mds-paginator-scroll-behavior);-webkit-transition-property:background-color, -webkit-box-shadow;transition-property:background-color, -webkit-box-shadow;transition-property:background-color, box-shadow;transition-property:background-color, box-shadow, -webkit-box-shadow}.pages::-webkit-scrollbar{display:none}:host-context(.pref-animation-reduce),:host-context(.pref-animation-reduce) .pages{--mds-paginator-scroll-behavior:auto;-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system),:host-context(.pref-animation-system) .pages{--mds-paginator-scroll-behavior:auto;-webkit-transition-duration:0s;transition-duration:0s}}:host-context(.pref-theme-dark){--mds-paginator-background:rgb(var(--tone-neutral-09))}:host-context(.pref-theme-dark) .pages{-webkit-box-shadow:0 0 0 1px rgb(var(--tone-neutral-01) / 0.3) inset;box-shadow:0 0 0 1px rgb(var(--tone-neutral-01) / 0.3) inset}@media (prefers-color-scheme: dark){:host-context(.pref-theme-system){--mds-paginator-background:rgb(var(--tone-neutral-09))}:host-context(.pref-theme-system) .pages{-webkit-box-shadow:0 0 0 1px rgb(var(--tone-neutral-01) / 0.3) inset;box-shadow:0 0 0 1px rgb(var(--tone-neutral-01) / 0.3) inset}}:host-context(.pref-contrast-more) .pages{-webkit-box-shadow:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3) inset;box-shadow:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3) inset}:host-context(.pref-contrast-more) .item{--mds-paginator-item-background-hover:rgb(var(--tone-neutral));--mds-paginator-item-shadow-hover:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3) inset;--mds-paginator-item-shadow:none}:host-context(.pref-contrast-more) .item-first,:host-context(.pref-contrast-more) .item-last,:host-context(.pref-contrast-more) .item-icon{--mds-paginator-item-shadow-disabled:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3) inset;--mds-paginator-item-shadow-hover:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3) inset;--mds-paginator-item-shadow:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3) inset}@media (prefers-contrast: more){:host-context(.pref-contrast-system) .pages{-webkit-box-shadow:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3) inset;box-shadow:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3) inset}:host-context(.pref-contrast-system) .item{--mds-paginator-item-background-hover:rgb(var(--tone-neutral));--mds-paginator-item-shadow-hover:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3) inset;--mds-paginator-item-shadow:none}:host-context(.pref-contrast-system) .item-first,:host-context(.pref-contrast-system) .item-last,:host-context(.pref-contrast-system) .item-icon{--mds-paginator-item-shadow-disabled:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3) inset;--mds-paginator-item-shadow-hover:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3) inset;--mds-paginator-item-shadow:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3) inset}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}";export{o as mds_paginator}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e,H as a,g as o}from"./p-3a6b32e7.js";const i={action:{tag:"span",selector:{default:"text-title-action",title:"text-title-action"}},caption:{tag:"span",selector:{default:"text-info-caption",info:"text-info-caption",read:"text-read-caption"}},detail:{tag:"p",selector:{default:"text-info-detail",info:"text-info-detail",read:"text-read-detail"}},h1:{tag:"h1",selector:{default:"text-title-h1",title:"text-title-h1"}},h2:{tag:"h2",selector:{default:"text-title-h2",title:"text-title-h2"}},h3:{tag:"h3",selector:{default:"text-title-h3",title:"text-title-h3"}},h4:{tag:"h4",selector:{default:"text-title-h4",title:"text-title-h4"}},h5:{tag:"h5",selector:{default:"text-title-h5",title:"text-title-h5"}},h6:{tag:"h6",selector:{default:"text-title-h6",title:"text-title-h6"}},hack:{tag:"code",selector:{default:"text-code-hack",mono:"text-code-hack"}},label:{tag:"label",selector:{default:"text-info-label",info:"text-info-label"}},option:{tag:"label",selector:{default:"text-info-option",info:"text-info-option"}},paragraph:{tag:"p",selector:{default:"text-info-paragraph",secondary:"text-secondary-paragraph",info:"text-info-paragraph",read:"text-read-paragraph"}},snippet:{tag:"code",selector:{default:"text-code-snippet",mono:"text-code-snippet"}},tip:{tag:"div",selector:{default:"text-info-tip",info:"text-info-tip"}}},s=2147483647,r=t=>16807*t%s,d=t=>r(t)/s,n=((t=1)=>{let e=t<1?1:t;const a=()=>(e=r(e),e);return{random:()=>a(),randomFloat:()=>d(a()),range:(t,e)=>{const o=t-.4999;return Math.round(o+(e+.4999-o)*d(a()))},rangeFloat:(t,e)=>t+(e-t)*d(a())}})(),h=()=>{};class m{constructor(t){this.start=()=>{const{frameOffset:t,charOffset:e,str:a,speed:o}=this,i=(s=t,r=e,t=>(t=>t.split("").map((t=>t.charCodeAt(0))))(t).map(((t,e)=>()=>(t+n.range(0,e))*(2*(Math.round(Math.random())-.5)))(s,r)))(a);var s,r;this.stop(),this.rafId=requestAnimationFrame((()=>{this.step(i,o,o)}))},Object.assign(this,Object.assign(Object.assign({},m.defaults),t))}stop(){cancelAnimationFrame(this.rafId)}step(t,e,a){const{str:o,charStep:i,minCharCode:s,maxCharCode:r,placeholderChar:d,onProgress:n,onComplete:h}=this,m=t.slice(0,e).map((t=>t>0?t-1:t<0?t+1:0)),l=(({str:t,minCharCode:e,maxCharCode:a,placeholderChar:o,charStep:i})=>s=>s.reduce(((s,r,d)=>{return 0!==r?Math.abs(r)>i?s+o:s+String.fromCharCode((n=e,h=a,t=>t>h?n+(t-h):t<n?h+(t-n):t)(t.charCodeAt(d)+r)):s+t.charAt(d);var n,h}),""))({str:o,minCharCode:s,maxCharCode:r,placeholderChar:d,charStep:i})(m),y=[...m,...t.slice(e)];n(l),l!==o?this.rafId=requestAnimationFrame((()=>{this.step(y,e+a,a)})):h(l)}}m.defaults={str:"",speed:2,placeholderChar:"_",frameOffset:30,charOffset:20,charStep:10,minCharCode:32,maxCharCode:122,onProgress:h,onComplete:h};const l=class{constructor(e){t(this,e),this.cssTextAnimationSpeed=2,this.cssTextAnimationPlaceholderChar=" ",this.randomTextOptions={speed:this.cssTextAnimationSpeed,placeholderChar:this.cssTextAnimationPlaceholderChar,frameOffset:10,charOffset:20,charStep:15},this.animation="none",this.typography="detail",this.animateText=t=>{var e;const a=null===(e=this.host.shadowRoot)||void 0===e?void 0:e.querySelector(".text");this.randomTextOptions.speed=this.cssTextAnimationSpeed,this.randomTextOptions.placeholderChar=this.cssTextAnimationPlaceholderChar,this.randomText=new m(Object.assign({str:t,onProgress:t=>{a.innerHTML=t}},this.randomTextOptions)),this.randomText.start()},this.updateCSSCustomProps=()=>{if("undefined"==typeof window)return;const t=window.getComputedStyle(this.host);this.cssTextAnimationSpeed=Number(t.getPropertyValue("--mds-text-animation-speed"));const e=t.getPropertyValue("--mds-text-animation-placeholder-char");this.cssTextAnimationPlaceholderChar='" "'!==e&&"' '"!==e?e:" "}}componentWillRender(){var t;const{tag:e}=i[this.typography];this.tag=null!==(t=this.tag)&&void 0!==t?t:e}componentDidLoad(){"yugop"===this.animation&&this.updateCSSCustomProps()}textHandler(t){"none"!==this.animation&&(this.randomText&&this.randomText.stop(),t&&this.animateText(t))}render(){return e(a,{key:"c2b975a38997a1ed8f5a6d49817398356a94cfc7"},e(this.tag,{key:"830f1caa4906a64330278da005b0cd10b014d21f",class:"text"},this.text?this.text:e("slot",null)))}get host(){return o(this)}static get watchers(){return{text:["textHandler"]}}};l.style=':host{--mds-text-selection-background:rgb(var(--label-sky-09));--mds-text-selection-color:rgb(var(--label-sky-01));--mds-text-line-clamp:3;--mds-text-animation-speed:0.5;--mds-text-animation-placeholder-char:" ";display:-ms-flexbox;display:flex;min-width:0}.text::-moz-selection{background-color:var(--mds-text-selection-background);color:var(--mds-text-selection-color)}.text::selection{background-color:var(--mds-text-selection-background);color:var(--mds-text-selection-color)}.text{cursor:inherit;display:inherit}:host([typography="snippet"]){min-height:1.5rem;font-family:\'Roboto Mono\', \'Courier New\', monospace;font-size:1rem;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="hack"]){min-height:1.25rem;font-family:\'Roboto Mono\', \'Courier New\', monospace;font-size:0.875rem;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="h1"]){min-height:3rem;font-family:Roboto, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:3rem;line-height:3rem;letter-spacing:-0.025em;font-weight:900;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="h2"]){min-height:2.5rem;font-family:Roboto, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:2.25rem;line-height:2.5rem;letter-spacing:-0.025em;font-weight:900;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="h3"]){min-height:2.25rem;font-family:Roboto, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1.875rem;line-height:2.25rem;letter-spacing:-0.025em;font-weight:900;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="h4"]){min-height:2rem;font-family:Roboto, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1.5rem;line-height:2rem;letter-spacing:-0.025em;font-weight:700;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="h5"]){min-height:1.75rem;font-family:Roboto, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1.25rem;line-height:1.75rem;letter-spacing:-0.025em;font-weight:700;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="h6"]){min-height:1.5rem;font-family:Roboto, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1rem;line-height:1.5rem;letter-spacing:-0.025em;font-weight:700;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="h1"]),:host([typography="h2"]),:host([typography="h3"]),:host([typography="h4"]),:host([typography="h5"]),:host([typography="h6"]){text-wrap:balance}:host([typography="action"]){min-height:1.5rem;font-family:Roboto, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:0.875rem;line-height:1.5rem;font-weight:500;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="paragraph"]){min-height:2rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1.25rem;line-height:2rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="detail"]){min-height:1.5rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1rem;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="caption"]){min-height:1.25rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:0.875rem;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="paragraph"]),:host([typography="detail"]),:host([typography="caption"]){text-wrap:pretty}:host([typography="label"]){min-height:1rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:0.75rem;line-height:1rem;font-weight:700;text-transform:uppercase;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="tip"]){min-height:1rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:0.75rem;line-height:1rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="option"]){min-height:0.625rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:0.625rem;line-height:0.625rem;letter-spacing:-0.025em;font-weight:700;text-transform:uppercase;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="paragraph"][variant="read"]){min-height:2rem;font-family:\'Merriweather\', Times, \'Times New Roman\', serif;font-size:1.25rem;line-height:2rem;font-weight:300;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="detail"][variant="read"]){min-height:1.5rem;font-family:\'Merriweather\', Times, \'Times New Roman\', serif;font-size:1rem;line-height:1.5rem;font-weight:300;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([typography="caption"][variant="read"]){min-height:1.25rem;font-family:\'Merriweather\', Times, \'Times New Roman\', serif;font-size:0.875rem;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host([tag="article"]),:host([tag="blockquote"]),:host([tag="dd"]),:host([tag="details"]),:host([tag="div"]),:host([tag="dl"]),:host([tag="dt"]),:host([tag="figcaption"]),:host([tag="h1"]),:host([tag="h2"]),:host([tag="h3"]),:host([tag="h4"]),:host([tag="h5"]),:host([tag="h6"]),:host([tag="label"]),:host([tag="legend"]),:host([tag="li"]),:host([tag="ol"]),:host([tag="p"]),:host([tag="pre"]),:host([tag="summary"]),:host([tag="ul"]){display:block}:host([tag="abbr"]),:host([tag="address"]),:host([tag="b"]),:host([tag="bdo"]),:host([tag="cite"]),:host([tag="code"]),:host([tag="del"]),:host([tag="dfn"]),:host([tag="em"]),:host([tag="i"]),:host([tag="ins"]),:host([tag="kbd"]),:host([tag="mark"]),:host([tag="q"]),:host([tag="rb"]),:host([tag="rt"]),:host([tag="ruby"]),:host([tag="s"]),:host([tag="samp"]),:host([tag="small"]),:host([tag="span"]),:host([tag="strong"]),:host([tag="sub"]),:host([tag="sup"]),:host([tag="time"]),:host([tag="u"]),:host([tag="var"]){display:inline}:host([tag="code"]){border-radius:0.25rem;padding-left:0.25rem;padding-right:0.25rem;padding-top:0.0625rem;padding-bottom:0.0625rem;-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);background-color:rgb(var(--tone-neutral-09));-webkit-box-shadow:rgb(var(--tone-neutral-08)) 0 0 0 1px;box-shadow:rgb(var(--tone-neutral-08)) 0 0 0 1px;color:rgb(var(--tone-neutral-03));-webkit-transition-property:color, background-color;transition-property:color, background-color}:host([truncate]) .text{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis}:host([truncate="word"]) .text{white-space:nowrap}@supports (line-clamp: 1){:host([truncate="all"]) .text{line-clamp:var(--mds-text-line-clamp, 1)}}@supports (display: -webkit-box){:host([truncate="all"]) .text{-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:var(--mds-text-line-clamp, 1)}}abbr,address,article,b,bdo,blockquote,cite,code,dd,del,details,dfn,div,dl,dt,em,figcaption,h1,h2,h3,h4,h5,h6,i,ins,kbd,label,legend,li,mark,ol,p,pre,q,rb,rt,ruby,s,samp,small,span,strong,sub,summary,sup,time,u,ul,var,wbr{font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;overflow:inherit;text-overflow:inherit}:host-context(.pref-animation-reduce){-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system){-webkit-transition-duration:0s;transition-duration:0s}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}';export{l as mds_text}
|