@loadsmart/miranda-wc 1.40.1 → 1.40.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/{attention-738831d2.js → attention-93db8c08.js} +2 -2
  2. package/dist/attention-93db8c08.js.map +1 -0
  3. package/dist/{bell-c7493d8c.js → bell-faca6930.js} +2 -2
  4. package/dist/bell-faca6930.js.map +1 -0
  5. package/dist/{check-bbac788c.js → check-29a89516.js} +2 -2
  6. package/dist/check-29a89516.js.map +1 -0
  7. package/dist/{close-18b002ef.js → close-1e60da91.js} +2 -2
  8. package/dist/close-1e60da91.js.map +1 -0
  9. package/dist/components/card/card-divider.d.ts +18 -0
  10. package/dist/components/card/card-divider.d.ts.map +1 -0
  11. package/dist/components/card/index.d.ts +1 -0
  12. package/dist/components/card/index.d.ts.map +1 -1
  13. package/dist/components/popover/popover.d.ts.map +1 -1
  14. package/dist/components/tabs/tab.styles.d.ts.map +1 -1
  15. package/dist/components/tag/tag.styles.d.ts.map +1 -1
  16. package/dist/{indeterminate-821133a2.js → indeterminate-1199584a.js} +2 -2
  17. package/dist/indeterminate-1199584a.js.map +1 -0
  18. package/dist/index-fd721cae.js +2118 -0
  19. package/dist/index-fd721cae.js.map +1 -0
  20. package/dist/index.js +1 -1
  21. package/dist/{info-circle-06de27ec.js → info-circle-2ee53064.js} +2 -2
  22. package/dist/info-circle-2ee53064.js.map +1 -0
  23. package/dist/utils/events.d.ts.map +1 -1
  24. package/package.json +9 -7
  25. package/dist/attention-738831d2.js.map +0 -1
  26. package/dist/bell-c7493d8c.js.map +0 -1
  27. package/dist/check-bbac788c.js.map +0 -1
  28. package/dist/close-18b002ef.js.map +0 -1
  29. package/dist/indeterminate-821133a2.js.map +0 -1
  30. package/dist/index-9b3645b4.js +0 -2114
  31. package/dist/index-9b3645b4.js.map +0 -1
  32. package/dist/info-circle-06de27ec.js.map +0 -1
@@ -1,2114 +0,0 @@
1
- function t(t,e,o,i){if("a"===o&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===o?i:"a"===o?i.call(t):i?i.value:e.get(t)}function e(t,e,o,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(t,o):r?r.value=o:e.set(t,o),o
2
- /**
3
- * @license
4
- * Copyright 2017 Google LLC
5
- * SPDX-License-Identifier: BSD-3-Clause
6
- */}var o;const i=window,r=i.trustedTypes,n=r?r.createPolicy("lit-html",{createHTML:t=>t}):void 0,s="$lit$",a=`lit$${(Math.random()+"").slice(9)}$`,l="?"+a,c=`<${l}>`,d=document,h=()=>d.createComment(""),u=t=>null===t||"object"!=typeof t&&"function"!=typeof t,p=Array.isArray,b="[ \t\n\f\r]",g=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,m=/-->/g,f=/>/g,y=RegExp(`>|${b}(?:([^\\s"'>=/]+)(${b}*=${b}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),v=/'/g,$=/"/g,w=/^(?:script|style|textarea|title)$/i,x=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),k=x(1),z=x(2),S=Symbol.for("lit-noChange"),C=Symbol.for("lit-nothing"),M=new WeakMap,W=d.createTreeWalker(d,129,null,!1);class A{constructor({strings:t,_$litType$:e},o){let i;this.parts=[];let d=0,u=0;const p=t.length-1,b=this.parts,[x,k]=((t,e)=>{const o=t.length-1,i=[];let r,l=2===e?"<svg>":"",d=g;for(let e=0;e<o;e++){const o=t[e];let n,h,u=-1,p=0;for(;p<o.length&&(d.lastIndex=p,h=d.exec(o),null!==h);)p=d.lastIndex,d===g?"!--"===h[1]?d=m:void 0!==h[1]?d=f:void 0!==h[2]?(w.test(h[2])&&(r=RegExp("</"+h[2],"g")),d=y):void 0!==h[3]&&(d=y):d===y?">"===h[0]?(d=null!=r?r:g,u=-1):void 0===h[1]?u=-2:(u=d.lastIndex-h[2].length,n=h[1],d=void 0===h[3]?y:'"'===h[3]?$:v):d===$||d===v?d=y:d===m||d===f?d=g:(d=y,r=void 0);const b=d===y&&t[e+1].startsWith("/>")?" ":"";l+=d===g?o+c:u>=0?(i.push(n),o.slice(0,u)+s+o.slice(u)+a+b):o+a+(-2===u?(i.push(void 0),e):b)}const h=l+(t[o]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==n?n.createHTML(h):h,i]})(t,e);if(this.el=A.createElement(x,o),W.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(i=W.nextNode())&&b.length<p;){if(1===i.nodeType){if(i.hasAttributes()){const t=[];for(const e of i.getAttributeNames())if(e.endsWith(s)||e.startsWith(a)){const o=k[u++];if(t.push(e),void 0!==o){const t=i.getAttribute(o.toLowerCase()+s).split(a),e=/([.?@])?(.*)/.exec(o);b.push({type:1,index:d,name:e[2],strings:t,ctor:"."===e[1]?T:"?"===e[1]?P:"@"===e[1]?_:E})}else b.push({type:6,index:d})}for(const e of t)i.removeAttribute(e)}if(w.test(i.tagName)){const t=i.textContent.split(a),e=t.length-1;if(e>0){i.textContent=r?r.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],h()),W.nextNode(),b.push({type:2,index:++d});i.append(t[e],h())}}}else if(8===i.nodeType)if(i.data===l)b.push({type:2,index:d});else{let t=-1;for(;-1!==(t=i.data.indexOf(a,t+1));)b.push({type:7,index:d}),t+=a.length-1}d++}}static createElement(t,e){const o=d.createElement("template");return o.innerHTML=t,o}}function j(t,e,o=t,i){var r,n,s,a;if(e===S)return e;let l=void 0!==i?null===(r=o._$Co)||void 0===r?void 0:r[i]:o._$Cl;const c=u(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,o,i)),void 0!==i?(null!==(s=(a=o)._$Co)&&void 0!==s?s:a._$Co=[])[i]=l:o._$Cl=l),void 0!==l&&(e=j(t,l._$AS(t,e.values),l,i)),e}class B{constructor(t,e,o,i){var r;this.type=2,this._$AH=C,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cp=null===(r=null==i?void 0:i.isConnected)||void 0===r||r}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=j(this,t,e),u(t)?t===C||null==t||""===t?(this._$AH!==C&&this._$AR(),this._$AH=C):t!==this._$AH&&t!==S&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>p(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==C&&u(this._$AH)?this._$AA.nextSibling.data=t:this.$(d.createTextNode(t)),this._$AH=t}g(t){var e;const{values:o,_$litType$:i}=t,r="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=A.createElement(i.h,this.options)),i);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.v(o);else{const t=new class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:o},parts:i}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:d).importNode(o,!0);W.currentNode=r;let n=W.nextNode(),s=0,a=0,l=i[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new B(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new O(n,this,t)),this._$AV.push(e),l=i[++a]}s!==(null==l?void 0:l.index)&&(n=W.nextNode(),s++)}return W.currentNode=d,r}v(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}(r,this),e=t.u(this.options);t.v(o),this.$(e),this._$AH=t}}_$AC(t){let e=M.get(t.strings);return void 0===e&&M.set(t.strings,e=new A(t)),e}T(t){p(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,i=0;for(const r of t)i===e.length?e.push(o=new B(this.k(h()),this.k(h()),this,this.options)):o=e[i],o._$AI(r),i++;i<e.length&&(this._$AR(o&&o._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var o;for(null===(o=this._$AP)||void 0===o||o.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class E{constructor(t,e,o,i,r){this.type=1,this._$AH=C,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=C}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=j(this,t,e,0),n=!u(t)||t!==this._$AH&&t!==S,n&&(this._$AH=t);else{const i=t;let s,a;for(t=r[0],s=0;s<r.length-1;s++)a=j(this,i[o+s],e,s),a===S&&(a=this._$AH[s]),n||(n=!u(a)||a!==this._$AH[s]),a===C?t=C:t!==C&&(t+=(null!=a?a:"")+r[s+1]),this._$AH[s]=a}n&&!i&&this.j(t)}j(t){t===C?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class T extends E{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===C?void 0:t}}const R=r?r.emptyScript:"";class P extends E{constructor(){super(...arguments),this.type=4}j(t){t&&t!==C?this.element.setAttribute(this.name,R):this.element.removeAttribute(this.name)}}class _ extends E{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){var o;if((t=null!==(o=j(this,t,e,0))&&void 0!==o?o:C)===S)return;const i=this._$AH,r=t===C&&i!==C||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==C&&(i===C||r);r&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,o;"function"==typeof this._$AH?this._$AH.call(null!==(o=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==o?o:this.element,t):this._$AH.handleEvent(t)}}class O{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){j(this,t)}}const D=i.litHtmlPolyfillSupport;null==D||D(A,B),(null!==(o=i.litHtmlVersions)&&void 0!==o?o:i.litHtmlVersions=[]).push("2.7.4");const U=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===U)return null==t?void 0:t._$litStatic$},L=(t,...e)=>({_$litStatic$:e.reduce(((e,o,i)=>e+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(o)+t[i+1]),t[0]),r:U}),N=new Map,F=(t=>(e,...o)=>{const i=o.length;let r,n;const s=[],a=[];let l,c=0,d=!1;for(;c<i;){for(l=e[c];c<i&&void 0!==(n=o[c],r=q(n));)l+=r+e[++c],d=!0;c!==i&&a.push(n),s.push(l),c++}if(c===i&&s.push(e[i]),d){const t=s.join("$$lit$$");void 0===(e=N.get(t))&&(s.raw=s,N.set(t,e=s)),o=a}return t(e,...o)})(k),I=window,G=I.ShadowRoot&&(void 0===I.ShadyCSS||I.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,V=Symbol(),H=new WeakMap;
7
- /**
8
- * @license
9
- * Copyright 2020 Google LLC
10
- * SPDX-License-Identifier: BSD-3-Clause
11
- */let J=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==V)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(G&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=H.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&H.set(e,t))}return t}toString(){return this.cssText}};const X=t=>new J("string"==typeof t?t:t+"",void 0,V),Y=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,o,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[i+1]),t[0]);return new J(o,t,V)},Z=G?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return X(e)})(t):t
12
- /**
13
- * @license
14
- * Copyright 2017 Google LLC
15
- * SPDX-License-Identifier: BSD-3-Clause
16
- */;var K;const Q=window,tt=Q.trustedTypes,et=tt?tt.emptyScript:"",ot=Q.reactiveElementPolyfillSupport,it={toAttribute(t,e){switch(e){case Boolean:t=t?et:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},rt=(t,e)=>e!==t&&(e==e||t==t),nt={attribute:!0,type:String,converter:it,reflect:!1,hasChanged:rt},st="finalized";class at extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,o)=>{const i=this._$Ep(o,e);void 0!==i&&(this._$Ev.set(i,o),t.push(i))})),t}static createProperty(t,e=nt){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const o="symbol"==typeof t?Symbol():"__"+t,i=this.getPropertyDescriptor(t,o,e);void 0!==i&&Object.defineProperty(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){return{get(){return this[e]},set(i){const r=this[t];this[e]=i,this.requestUpdate(t,r,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||nt}static finalize(){if(this.hasOwnProperty(st))return!1;this[st]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const o of e)this.createProperty(o,t[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(Z(t))}else void 0!==t&&e.push(Z(t));return e}static _$Ep(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,o;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(o=t.hostConnected)||void 0===o||o.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{G?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=I.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e,o=nt){var i;const r=this.constructor._$Ep(t,o);if(void 0!==r&&!0===o.reflect){const n=(void 0!==(null===(i=o.converter)||void 0===i?void 0:i.toAttribute)?o.converter:it).toAttribute(e,o.type);this._$El=t,null==n?this.removeAttribute(r):this.setAttribute(r,n),this._$El=null}}_$AK(t,e){var o;const i=this.constructor,r=i._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=i.getPropertyOptions(r),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(o=t.converter)||void 0===o?void 0:o.fromAttribute)?t.converter:it;this._$El=r,this[r]=n.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,o){let i=!0;void 0!==t&&(((o=o||this.constructor.getPropertyOptions(t)).hasChanged||rt)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,o))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const o=this._$AL;try{e=this.shouldUpdate(o),e?(this.willUpdate(o),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(o)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(o)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
17
- /**
18
- * @license
19
- * Copyright 2017 Google LLC
20
- * SPDX-License-Identifier: BSD-3-Clause
21
- */
22
- var lt,ct;at[st]=!0,at.elementProperties=new Map,at.elementStyles=[],at.shadowRootOptions={mode:"open"},null==ot||ot({ReactiveElement:at}),(null!==(K=Q.reactiveElementVersions)&&void 0!==K?K:Q.reactiveElementVersions=[]).push("1.6.2");let dt=class extends at{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const o=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=o.firstChild),o}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,o)=>{var i,r;const n=null!==(i=null==o?void 0:o.renderBefore)&&void 0!==i?i:e;let s=n._$litPart$;if(void 0===s){const t=null!==(r=null==o?void 0:o.renderBefore)&&void 0!==r?r:null;n._$litPart$=s=new B(e.insertBefore(h(),t),t,void 0,null!=o?o:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return S}};dt.finalized=!0,dt._$litElement$=!0,null===(lt=globalThis.litElementHydrateSupport)||void 0===lt||lt.call(globalThis,{LitElement:dt});const ht=globalThis.litElementPolyfillSupport;null==ht||ht({LitElement:dt}),(null!==(ct=globalThis.litElementVersions)&&void 0!==ct?ct:globalThis.litElementVersions=[]).push("3.3.2");
23
- /**
24
- * @license
25
- * Copyright 2018 Google LLC
26
- * SPDX-License-Identifier: BSD-3-Clause
27
- */
28
- const ut=t=>null!=t?t:C
29
- /**
30
- * @license
31
- * Copyright 2017 Google LLC
32
- * SPDX-License-Identifier: BSD-3-Clause
33
- */,pt=1,bt=t=>(...e)=>({_$litDirective$:t,values:e});let gt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
34
- /**
35
- * @license
36
- * Copyright 2018 Google LLC
37
- * SPDX-License-Identifier: BSD-3-Clause
38
- */const mt=bt(class extends gt{constructor(t){var e;if(super(t),t.type!==pt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var o,i;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(o=this.nt)||void 0===o?void 0:o.has(t))&&this.it.add(t);return this.render(e)}const r=t.element.classList;this.it.forEach((t=>{t in e||(r.remove(t),this.it.delete(t))}));for(const t in e){const o=!!e[t];o===this.it.has(t)||(null===(i=this.nt)||void 0===i?void 0:i.has(t))||(o?(r.add(t),this.it.add(t)):(r.remove(t),this.it.delete(t)))}return S}}),ft=(t,e=["article","div","span"],o="div")=>class extends t{static get properties(){return{as:{type:String}}}connectedCallback(){var t;super.connectedCallback(),this.as=null!==(t=e.includes(this.as)?this.as:o)&&void 0!==t?t:"div"}get tag(){return L`${(t=>({_$litStatic$:t,r:U}))(this.as)}`}};var yt,vt;class $t extends dt{constructor(){super(...arguments),yt.set(this,void 0),this.getForm=()=>t(this,yt,"f"),vt.set(this,(()=>{if(this.hasAttribute("form")){const t=this.getRootNode(),o=this.getAttribute("form");e(this,yt,t.getElementById(o),"f")}else e(this,yt,this.closest("form"),"f")}))}static get properties(){return{form:{type:String,reflect:!0}}}updated(e){super.updated(e),(e.has("form")||null==t(this,yt,"f"))&&t(this,vt,"f").call(this)}}function wt(t){return t&&t.i&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}yt=new WeakMap,vt=new WeakMap;var xt,kt,zt={};zt.LoadsmartTheme={"brand-color-brand":"20, 214, 77","brand-color-brand-accent-1":"0, 215, 215","brand-color-brand-accent-2":"132, 241, 30","border-radius-none":"0px","border-radius-s":"4px","border-radius-m":"8px","border-radius-l":"16px","border-radius-circle":"50%","border-none":0,"border-thin":"1px","border-medium":"2px","border-thick":"4px","color-background-primary":"252, 252, 255","color-background-secondary":"248, 249, 251","color-background-tertiary":"230, 237, 242","color-background-highlight":"202, 219, 221","color-background-inverted":"32, 41, 49","color-background-secondary-inverted":"61, 74, 85","color-border":"193, 206, 217","color-divider":"230, 237, 242","color-brand":"20, 214, 77","color-brand-accent-1":"0, 215, 215","color-brand-accent-2":"132, 241, 30","color-primary-20":"202, 219, 221","color-primary-60":"0, 84, 84","color-primary-100":"0, 51, 51","color-accent-20":"229, 245, 255","color-accent-60":"0, 98, 159","color-accent-100":"15, 66, 97","color-neutral-0":"252, 252, 255","color-neutral-10":"248, 249, 251","color-neutral-20":"230, 237, 242","color-neutral-40":"193, 206, 217","color-neutral-60":"94, 118, 138","color-neutral-80":"92, 106, 118","color-neutral-90":"61, 74, 85","color-neutral-100":"32, 41, 49","color-success-20":"227, 247, 239","color-success-60":"3, 124, 94","color-success-100":"0, 94, 71","color-danger-20":"255, 233, 230","color-danger-60":"186, 27, 27","color-danger-100":"104, 0, 3","color-warning-20":"255, 243, 214","color-warning-60":"248, 182, 14","color-warning-100":"102, 63, 25","color-text-primary":"32, 41, 49","color-text-secondary":"61, 74, 85","color-text-tertiary":"92, 106, 118","color-text-placeholder":"94, 118, 138","color-text-disabled":"193, 206, 217","color-text-inverted":"252, 252, 255","color-text-secondary-inverted":"193, 206, 217","color-text-error":"186, 27, 27","color-text-highlight":"0, 98, 159","color-text-link":"0, 98, 159","font-family-default":"'Manrope', sans-serif","font-family-title":"'PlusJakartaSans', 'Manrope', sans-serif","font-size-1":"0.625rem","font-size-2":"0.75rem","font-size-3":"0.875rem","font-size-4":"1rem","font-size-5":"1.25rem","font-size-6":"1.625rem","font-size-7":"2.375rem","font-size-8":"3rem","font-size-9":"3.625rem","font-weight-regular":500,"font-weight-medium":600,"font-weight-bold":700,"line-height-1":"100%","line-height-2":"125%","line-height-3":"130%","line-height-4":"140%","line-height-5":"150%","line-height-6":"180%","global-height-small":"1.75rem","global-height-default":"2.5rem","global-height-large":"3rem","opacity-0":"0%","opacity-20":"20%","opacity-40":"40%","opacity-60":"60%","opacity-100":"100%","elevation-1":"0px 0px 2px rgba(94, 118, 138, 0.1), 0px 1px 6px 2px rgba(61, 74, 85, 0.15)","elevation-2":"0px 1px 3px rgba(94, 118, 138, 0.2), 0px 4px 8px 3px rgba(61, 74, 85, 0.15)","elevation-3":"0px 0px 4px rgba(94, 118, 138, 0.2), 0px 6px 12px 6px rgba(61, 74, 85, 0.15)","elevation-4":"0px 5px 6px 4px rgba(94, 118, 138, 0.2), 0px 8px 10px rgba(61, 74, 85, 0.1)","glow-primary":"0.0px 0.0px 4.0px 0px rgb(3, 124, 94, .5)","glow-warning":"0.0px 0.0px 4.0px 0px rgba(255, 206, 79, 1.0)","spacing-1":"4px","spacing-2":"8px","spacing-3":"12px","spacing-4":"16px","spacing-5":"20px","spacing-6":"24px","spacing-8":"32px","spacing-10":"40px","spacing-12":"48px","spacing-14":"56px","spacing-16":"64px","spacing-20":"80px","spacing-30":"120px","spacing-0-5":"2px","platform-font-default":"'Manrope', sans-serif","platform-font-title":"'PlusJakartaSans', 'Manrope', sans-serif"};var St=zt;function Ct(t,e){return t.filter((function(t){return t.startsWith(e)}))}function Mt(t,e){return t.filter((function(t){return!t.startsWith(e)}))}var Wt=Mt(Mt(Object.keys(St.LoadsmartTheme),"brand-"),"platform-");function At(t){return St.LoadsmartTheme[t]}function jt(t){var e=At(t);return null==e?e:"--m-".concat(t)}function Bt(t){return X(xt(t))}function Et(t,e=1){return X(xt(t,e))}Ct(Wt,"color-background-"),Ct(Wt,"border-radius-"),Ct(Wt,"border-"),Ct(Wt,"color-"),Ct(Wt,"elevation-"),Ct(Wt,"font-family-"),Ct(Wt,"font-size-"),Ct(Wt,"font-weight-"),Ct(Wt,"global-"),Ct(Wt,"glow-"),Ct(Wt,"line-height-"),Ct(Wt,"opacity-"),function(t,e,o){if(o||2===arguments.length)for(var i,r=0,n=e.length;r<n;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);t.concat(i||Array.prototype.slice.call(e))}(["none"],Ct(Wt,"spacing-"),!0),kt=At,xt=function(t,e){var o=At(t);return null==o?"":t.startsWith("color-")?"rgba(var(".concat(jt(t),", ").concat(o,"), ").concat(null!=e?e:1,")"):"var(".concat(jt(t),", ").concat(o,")")};var Tt=function(t){return null==t?[]:Array.isArray(t)?t:[t]},Rt=wt(Tt);function Pt(t){return X(`\n\t\tmargin-inline-start: ${t}\n\t`)}function _t(t){return X(`\n\t\t${Pt(t)};\n\t\t${function(t){return X(`\n\t\tmargin-inline-end: ${t}\n\t`)}(t)}\n\t`)}function Ot(t){return X(`\n\t\t${function(t){return X(`\n\t\tmargin-block-start: ${t}\n\t`)}(t)};\n\t\t${function(t){return X(`\n\t\tmargin-block-end: ${t}\n\t`)}(t)}\n\t`)}function Dt(t){return X(`\n\t\t${_t(t)};\n\t\t${Ot(t)}\n\t`)}function Ut(t){return X(`\n\t\t${function(t){return X(`\n\t\tpadding-inline-end: ${t}\n\t`)}(t)};\n\t\t${function(t){return X(`\n\t\tpadding-inline-start: ${t}\n\t`)}(t)}\n\t`)}function qt(t){return X(`\n\t\t${function(t){return X(`\n\t\tpadding-block-start: ${t}\n\t`)}(t)};\n\t\t${function(t){return X(`\n\t\tpadding-block-end: ${t}\n\t`)}(t)}\n\t`)}function Lt(t){return X(`\n\t\t${Ut(t)};\n\t\t${qt(t)}\n\t`)}const Nt={property:"all",delay:"0s",duration:"0.35s",easing:"ease-in-out"};function Ft(t){const e=Rt(t).map((t=>function(t){const e={...Nt,...t};return X(`${e.property} ${e.duration} ${e.easing} ${e.delay}`)}(t))).join(", ");return X(`\n\t\ttransition: ${e}\n\t`)}function It(t){const e=X("\n\t\tfont-style: normal;\n\t\tfont-stretch: normal;\n\t\tletter-spacing: normal;\n\n\t\tfont-synthesis: none;\n\t\ttext-rendering: optimizeLegibility;\n\t\t-webkit-font-smoothing: antialiased;\n\t\t-moz-osx-font-smoothing: grayscale;\n\t\t-webkit-text-size-adjust: 100%;\n\t");return X(`${e}\n${function(t){switch(t){case"hero-lg-bold":return`\n\t\t\t\tfont-family: ${Bt("font-family-title")};\n\t\t\t\tline-height: ${Bt("line-height-6")};\n\t\t\t\tfont-size: ${Bt("font-size-9")};\n\t\t\t\tfont-weight: ${Bt("font-weight-bold")}\n\t\t\t`;case"hero-lg":return`\n\t\t\t\tfont-family: ${Bt("font-family-title")};\n\t\t\t\tline-height: ${Bt("line-height-6")};\n\t\t\t\tfont-size: ${Bt("font-size-9")};\n\t\t\t\tfont-weight: ${Bt("font-weight-regular")}\n\t\t\t`;case"hero-md-bold":return`\n\t\t\t\tfont-family: ${Bt("font-family-title")};\n\t\t\t\tline-height: ${Bt("line-height-6")};\n\t\t\t\tfont-size: ${Bt("font-size-8")};\n\t\t\t\tfont-weight: ${Bt("font-weight-bold")}\n\t\t\t`;case"hero-md":return`\n\t\t\t\tfont-family: ${Bt("font-family-title")};\n\t\t\t\tline-height: ${Bt("line-height-6")};\n\t\t\t\tfont-size: ${Bt("font-size-8")};\n\t\t\t\tfont-weight: ${Bt("font-weight-regular")}\n\t\t\t`;case"hero-sm-bold":return`\n\t\t\t\tfont-family: ${Bt("font-family-title")};\n\t\t\t\tline-height: ${Bt("line-height-6")};\n\t\t\t\tfont-size: ${Bt("font-size-7")};\n\t\t\t\tfont-weight: ${Bt("font-weight-bold")}\n\t\t\t`;case"hero-sm":return`\n\t\t\t\tfont-family: ${Bt("font-family-title")};\n\t\t\t\tline-height: ${Bt("line-height-6")};\n\t\t\t\tfont-size: ${Bt("font-size-7")};\n\t\t\t\tfont-weight: ${Bt("font-weight-regular")}\n\t\t\t`;case"heading-lg-bold":return`\n\t\t\t\t\tfont-family: ${Bt("font-family-title")};\n\t\t\t\t\tline-height: ${Bt("line-height-5")};\n\t\t\t\t\tfont-size: ${Bt("font-size-6")};\n\t\t\t\t\tfont-weight: ${Bt("font-weight-bold")}\n\t\t\t\t`;case"heading-lg":return`\n\t\t\t\tfont-family: ${Bt("font-family-title")};\n\t\t\t\tline-height: ${Bt("line-height-5")};\n\t\t\t\tfont-size: ${Bt("font-size-6")};\n\t\t\t\tfont-weight: ${Bt("font-weight-regular")}\n\t\t\t`;case"heading-md-bold":return`\n\t\t\t\tfont-family: ${Bt("font-family-title")};\n\t\t\t\tline-height: ${Bt("line-height-5")};\n\t\t\t\tfont-size: ${Bt("font-size-5")};\n\t\t\t\tfont-weight: ${Bt("font-weight-bold")}\n\t\t\t`;case"heading-md":return`\n\t\t\t\tfont-family: ${Bt("font-family-title")};\n\t\t\t\tline-height: ${Bt("line-height-5")};\n\t\t\t\tfont-size: ${Bt("font-size-5")};\n\t\t\t\tfont-weight: ${Bt("font-weight-regular")}\n\t\t\t`;case"heading-sm-bold":return`\n\t\t\t\tfont-family: ${Bt("font-family-title")};\n\t\t\t\tline-height: ${Bt("line-height-5")};\n\t\t\t\tfont-size: ${Bt("font-size-4")};\n\t\t\t\tfont-weight: ${Bt("font-weight-bold")}\n\t\t\t`;case"heading-sm":return`\n\t\t\t\tfont-family: ${Bt("font-family-title")};\n\t\t\t\tline-height: ${Bt("line-height-5")};\n\t\t\t\tfont-size: ${Bt("font-size-4")};\n\t\t\t\tfont-weight: ${Bt("font-weight-regular")}\n\t\t\t`;case"body-lg-bold":return`\n\t\t\t\t\tfont-family: ${Bt("font-family-default")};\n\t\t\t\t\tline-height: ${Bt("line-height-6")};\n\t\t\t\t\tfont-size: ${Bt("font-size-5")};\n\t\t\t\t\tfont-weight: ${Bt("font-weight-bold")}\n\t\t\t\t`;case"body-lg":return`\n\t\t\t\t\tfont-family: ${Bt("font-family-default")};\n\t\t\t\t\tline-height: ${Bt("line-height-6")};\n\t\t\t\t\tfont-size: ${Bt("font-size-5")};\n\t\t\t\t\tfont-weight: ${Bt("font-weight-regular")}\n\t\t\t\t`;case"body-md":case"number-md":return`\n\t\t\t\tfont-family: ${Bt("font-family-default")};\n\t\t\t\tline-height: ${Bt("line-height-5")};\n\t\t\t\tfont-size: ${Bt("font-size-3")};\n\t\t\t\tfont-weight: ${Bt("font-weight-regular")}\n\t\t\t`;case"body-md-underline":return`\n\t\t\t\tfont-family: ${Bt("font-family-default")};\n\t\t\t\tline-height: ${Bt("line-height-5")};\n\t\t\t\tfont-size: ${Bt("font-size-3")};\n\t\t\t\tfont-weight: ${Bt("font-weight-regular")};\n\t\t\t\ttext-decoration: underline\n\t\t\t`;case"body-md-bold":return`\n\t\t\t\tfont-family: ${Bt("font-family-default")};\n\t\t\t\tline-height: ${Bt("line-height-5")};\n\t\t\t\tfont-size: ${Bt("font-size-3")};\n\t\t\t\tfont-weight: ${Bt("font-weight-bold")}\n\t\t\t`;case"body-md-bold-underline":return`\n\t\t\t\tfont-family: ${Bt("font-family-default")};\n\t\t\t\tline-height: ${Bt("line-height-5")};\n\t\t\t\tfont-size: ${Bt("font-size-3")};\n\t\t\t\tfont-weight: ${Bt("font-weight-bold")};\n\t\t\t\ttext-decoration: underline\n\t\t\t`;case"body-sm":case"number-sm":return`\n\t\t\t\tfont-family: ${Bt("font-family-default")};\n\t\t\t\tline-height: ${Bt("line-height-4")};\n\t\t\t\tfont-size: ${Bt("font-size-2")};\n\t\t\t\tfont-weight: ${Bt("font-weight-regular")}\n\t\t\t`;case"body-sm-underline":return`\n\t\t\t\tfont-family: ${Bt("font-family-default")};\n\t\t\t\tline-height: ${Bt("line-height-4")};\n\t\t\t\tfont-size: ${Bt("font-size-2")};\n\t\t\t\tfont-weight: ${Bt("font-weight-regular")};\n\t\t\t\ttext-decoration: underline\n\t\t\t`;case"body-sm-bold":return`\n\t\t\t\tfont-family: ${Bt("font-family-default")};\n\t\t\t\tline-height: ${Bt("line-height-4")};\n\t\t\t\tfont-size: ${Bt("font-size-2")};\n\t\t\t\tfont-weight: ${Bt("font-weight-bold")}\n\t\t\t`;case"body-sm-bold-underline":return`\n\t\t\t\tfont-family: ${Bt("font-family-default")};\n\t\t\t\tline-height: ${Bt("line-height-4")};\n\t\t\t\tfont-size: ${Bt("font-size-2")};\n\t\t\t\tfont-weight: ${Bt("font-weight-bold")};\n\t\t\t\ttext-decoration: underline\n\t\t\t`;case"button-lg":return`\n\t\t\t\tfont-family: ${Bt("font-family-default")};\n\t\t\t\tline-height: ${Bt("line-height-1")};\n\t\t\t\tfont-size: ${Bt("font-size-4")};\n\t\t\t\tfont-weight: ${Bt("font-weight-bold")}\n\t\t\t`;case"button-md":return`\n\t\t\t\tfont-family: ${Bt("font-family-default")};\n\t\t\t\tline-height: ${Bt("line-height-1")};\n\t\t\t\tfont-size: ${Bt("font-size-3")};\n\t\t\t\tfont-weight: ${Bt("font-weight-bold")}\n\t\t\t`;case"button-sm":return`\n\t\t\t\tfont-family: ${Bt("font-family-default")};\n\t\t\t\tline-height: ${Bt("line-height-1")};\n\t\t\t\tfont-size: ${Bt("font-size-2")};\n\t\t\t\tfont-weight: ${Bt("font-weight-bold")}\n\t\t\t`;case"table-header-md":return`\n\t\t\t\tfont-family: ${Bt("font-family-default")};\n\t\t\t\tline-height: ${Bt("line-height-1")};\n\t\t\t\tfont-size: ${Bt("font-size-3")};\n\t\t\t\tfont-weight: ${Bt("font-weight-medium")};\n\t\t\t\ttext-transform: uppercase\n\t\t\t`;case"table-header-sm":return`\n\t\t\t\tfont-family: ${Bt("font-family-default")};\n\t\t\t\tline-height: ${Bt("line-height-1")};\n\t\t\t\tfont-size: ${Bt("font-size-2")};\n\t\t\t\tfont-weight: ${Bt("font-weight-medium")}\n\t\t\t`;case"chips-md":return`\n\t\t\t\t\tfont-family: ${Bt("font-family-default")};\n\t\t\t\t\tline-height: ${Bt("line-height-1")};\n\t\t\t\t\tfont-size: ${Bt("font-size-2")};\n\t\t\t\t\tfont-weight: ${Bt("font-weight-bold")}\n\t\t\t\t`;case"chips-sm":return`\n\t\t\t\tfont-family: ${Bt("font-family-default")};\n\t\t\t\tline-height: ${Bt("line-height-1")};\n\t\t\t\tfont-size: ${Bt("font-size-1")};\n\t\t\t\tfont-weight: ${Bt("font-weight-medium")};\n\t\t\t\ttext-transform: uppercase\n\t\t\t`;default:return""}}(t)}`)}function Gt(t,e=""){return X(Rt(t).map((t=>[`${t}.is-disabled`,`${t}:disabled`].map((t=>[t,e].join(" "))).join(", "))).join(", "))}const Vt={active:function(t){return X(Rt(t).map((t=>`${t}:not(.is-disabled, :disabled):active`)).join(", "))},focus:function(t){return X(Rt(t).map((t=>`${t}:not(.is-disabled, :disabled):focus,\n\t\t\t\t\t${t}:not(.is-disabled, :disabled):focus-visible,\n\t\t\t\t${t}:not(.is-disabled, :disabled):focus-within,\n\t\t\t\t${t}:not(.is-disabled, :disabled).is-focused`)).join(", "))},hover:function(t){return X(Rt(t).map((t=>`${t}:not(.is-disabled, :disabled):hover`)).join(", "))}};function Ht(){return Y`
39
- :host {
40
- --m-button-background-color: transparent;
41
- --m-button-base-size: ${Bt("global-height-default")};
42
- --m-button-border-color: ${Et("color-neutral-90")};
43
- --m-button-border-radius: ${Bt("border-radius-s")};
44
- --m-button-color: ${Et("color-text-secondary")};
45
- --m-button-outline-color: ${Et("color-primary-100")};
46
- --m-button-outline-offset: 2px;
47
- --m-button-padding-x: ${Bt("spacing-4")};
48
- --m-button-padding-y: ${Bt("spacing-3")};
49
- /**
50
- * Useful when overriding via host :slotted query.
51
- */
52
- --m-button-font-size: ${Bt("font-size-3")};
53
- }
54
-
55
- :host([size='small']) {
56
- --m-button-base-size: ${Bt("global-height-small")};
57
- }
58
-
59
- :host([size='large']) {
60
- --m-button-base-size: ${Bt("global-height-large")};
61
- }
62
-
63
- :host([variant|='icon']) {
64
- --m-button-border-radius: ${Bt("border-radius-circle")};
65
-
66
- min-inline-size: var(--m-button-base-size);
67
- inline-size: var(--m-button-base-size);
68
- }
69
-
70
- :host {
71
- display: inline-block;
72
- min-block-size: var(--m-button-base-size);
73
- block-size: var(--m-button-base-size);
74
- border-radius: var(--m-button-border-radius);
75
- }
76
-
77
- .button {
78
- ${Ft([{property:"color"},{property:"background-color"},{property:"border-color"}])};
79
-
80
- ${It("button-md")};
81
- font-size: var(--m-button-font-size);
82
-
83
- cursor: pointer;
84
- position: relative;
85
-
86
- display: flex;
87
- align-items: center;
88
- justify-content: center;
89
- overflow: hidden;
90
-
91
- block-size: 100%;
92
- inline-size: 100%;
93
- box-sizing: border-box;
94
-
95
- text-decoration: none;
96
-
97
- gap: ${Bt("spacing-1")};
98
-
99
- padding-inline: var(--m-button-padding-x);
100
- padding-block: var(--m-button-padding-y);
101
-
102
- background-color: var(--m-button-background-color);
103
- color: var(--m-button-color);
104
- border: 1px solid var(--m-button-border-color);
105
-
106
- border-radius: var(--m-button-border-radius);
107
- }
108
-
109
- ${Gt(".button")} {
110
- cursor: default;
111
- }
112
-
113
- ${Gt(".button","*")} {
114
- pointer-events: none;
115
- }
116
-
117
- ${Vt.focus(".button")} {
118
- outline: 1px solid var(--m-button-outline-color);
119
- outline-offset: var(--m-button-outline-offset);
120
- }
121
-
122
- ${Vt.hover(".button")} {
123
- --m-button-background-color: ${Et("color-background-inverted")};
124
- --m-button-border-color: ${Et("color-background-inverted")};
125
- --m-button-color: ${Et("color-text-inverted")};
126
- }
127
-
128
- ::slotted(*) {
129
- display: inline-flex;
130
- align-items: center;
131
-
132
- ${Lt(0)};
133
- ${Dt(0)};
134
- }
135
-
136
- slot[name='leading']::slotted(span),
137
- slot[name='trailing']::slotted(span) {
138
- justify-content: center;
139
- }
140
- `}var Jt,Xt,Yt,Zt,Kt,Qt,te;class ee extends(ft($t,["button","a"],"button")){static get properties(){return{...$t.properties,role:{type:String,reflect:!0},loading:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},variant:{type:String,reflect:!0},size:{type:String,reflect:!0},tabindex:{type:String},type:{type:String},href:{type:String},target:{type:String},download:{type:String}}}constructor(){super(),Jt.add(this),Yt.set(this,(()=>Boolean(this.disabled)||Boolean(this.loading))),Zt.set(this,(()=>{const e=t(this,Yt,"f").call(this);this.setAttribute("aria-disabled",String(e))})),Kt.set(this,(()=>{var e;return t(this,Jt,"m",te).call(this)?this.disabled?"-1":null!=this.tabindex?this.tabindex:"0":null!==(e=this.tabindex)&&void 0!==e?e:void 0})),Qt.set(this,(t=>{var e,o;if(this.disabled||this.loading)return t.preventDefault(),void t.stopPropagation();"submit"===this.type&&(null===(e=this.getForm())||void 0===e||e.requestSubmit()),"reset"===this.type&&(null===(o=this.getForm())||void 0===o||o.reset())})),this.as="button",this.disabled=!1,this.loading=!1,this.size="default",this.type="button",this.variant="secondary",this.target="_self"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","button"),this.addEventListener("click",t(this,Qt,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",t(this,Qt,"f"))}update(e){super.update(e),e.has("href")&&(this.as=t(this,Jt,"m",te).call(this)?"a":"button",this.role=t(this,Jt,"m",te).call(this)?"link":"button")}updated(e){super.updated(e),(e.has("disabled")||e.has("loading"))&&t(this,Zt,"f").call(this)}render(){const e=t(this,Jt,"m",te).call(this);return F`
141
- <${this.tag}
142
- class=${mt({button:!0,"-primary":"primary"===this.variant,"-secondary":"secondary"===this.variant,"-tertiary":"tertiary"===this.variant,"-warning":"warning"===this.variant,"-danger":"danger"===this.variant,"-icon":"icon"===this.variant,"-icon-secondary":"icon-secondary"===this.variant,"-small":"small"===this.size,"-default":"default"===this.size,"-large":"large"===this.size,"is-loading":Boolean(this.loading),"is-disabled":t(this,Yt,"f").call(this)})}
143
- type=${ut(e?void 0:this.type)}
144
- ?disabled="${t(this,Yt,"f").call(this)}"
145
- aria-disabled=${this.disabled?"true":"false"}
146
- role=${ut(e?"link":"button")}
147
- tabindex=${ut(t(this,Kt,"f").call(this))}
148
- href=${ut(e?this.href:void 0)}
149
- target=${ut(e?this.target:void 0)}
150
- download=${ut(e?this.download:void 0)}
151
- rel=${ut(e&&this.target?"noreferrer noopener":void 0)}
152
- >
153
- <!-- TODO: Replace this with the loading dots component as soon as it is ready. -->
154
- ${this.loading&&!["icon","icon-secondary"].includes(this.variant)?F`<span class="loader">&#x25cf;&#x25cf;&#x25cf;</span>`:C}
155
- <slot name="leading"></slot>
156
- <slot></slot>
157
- <slot name="trailing"></slot>
158
- </${this.tag}>
159
- `}focus(e){var o;null===(o=t(this,Jt,"a",Xt))||void 0===o||o.focus(e)}}Yt=new WeakMap,Zt=new WeakMap,Kt=new WeakMap,Qt=new WeakMap,Jt=new WeakSet,Xt=function(){var t,e;return null!==(e=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(".button"))&&void 0!==e?e:null},te=function(){return Boolean(this.href)},ee.styles=[[Ht(),Y`
160
- .button.is-loading:not(.-icon, .-icon-secondary) *:not(.loader) {
161
- visibility: hidden;
162
- }
163
-
164
- .button.-primary {
165
- --m-button-background-color: ${Et("color-primary-60")};
166
- --m-button-border-color: ${Et("color-primary-60")};
167
- --m-button-color: ${Et("color-text-inverted")};
168
- }
169
-
170
- ${Gt(".button.-primary")} {
171
- --m-button-background-color: ${Et("color-primary-20")};
172
- --m-button-border-color: ${Et("color-primary-20")};
173
- }
174
-
175
- ${Vt.focus(".button.-primary")} {
176
- --m-button-border-color: ${Et("color-primary-60")};
177
- --m-button-outline-color: ${Et("color-primary-60")};
178
- }
179
-
180
- ${Vt.hover(".button.-primary")},
181
- ${Vt.active(".button.-primary")} {
182
- --m-button-background-color: ${Et("color-primary-100")};
183
- --m-button-border-color: ${Et("color-primary-100")};
184
- }
185
-
186
- .button.-primary.is-loading {
187
- --m-button-background-color: ${Et("color-primary-60")};
188
- --m-button-border-color: ${Et("color-primary-60")};
189
- --m-button-color: ${Et("color-text-inverted")};
190
- }
191
-
192
- .button.-secondary {
193
- --m-button-background-color: transparent;
194
- --m-button-border-color: ${Et("color-primary-100")};
195
- --m-button-color: ${Et("color-primary-100")};
196
- }
197
-
198
- ${Gt(".button.-secondary")} {
199
- --m-button-border-color: ${Et("color-text-disabled")};
200
- --m-button-color: ${Et("color-text-disabled")};
201
- }
202
-
203
- ${Vt.focus(".button.-secondary")} {
204
- --m-button-border-color: ${Et("color-primary-100")};
205
- --m-button-color: ${Et("color-primary-100")};
206
-
207
- --m-button-outline-color: ${Et("color-primary-60")};
208
- }
209
-
210
- ${Vt.hover(".button.-secondary")},
211
- ${Vt.active(".button.-secondary")} {
212
- --m-button-background-color: ${Et("color-background-tertiary")};
213
- --m-button-border-color: ${Et("color-primary-60")};
214
- --m-button-color: ${Et("color-primary-60")};
215
- }
216
-
217
- .button.-secondary.is-loading {
218
- --m-button-background-color: transparent;
219
-
220
- --m-button-border-color: ${Et("color-primary-100")};
221
- --m-button-color: ${Et("color-primary-100")};
222
- }
223
-
224
- .button.-tertiary {
225
- --m-button-background-color: transparent;
226
- --m-button-border-color: transparent;
227
- --m-button-color: ${Et("color-primary-100")};
228
- }
229
-
230
- ${Gt(".button.-tertiary")} {
231
- --m-button-color: ${Et("color-text-disabled")};
232
- }
233
-
234
- ${Vt.focus(".button.-tertiary")} {
235
- --m-button-color: ${Et("color-primary-100")};
236
- --m-button-outline-color: ${Et("color-primary-60")};
237
- }
238
-
239
- ${Vt.hover(".button.-tertiary")} {
240
- --m-button-background-color: ${Et("color-background-tertiary")};
241
- --m-button-border-color: ${Et("color-background-tertiary")};
242
- --m-button-color: ${Et("color-primary-60")};
243
- }
244
-
245
- ${Vt.active(".button.-tertiary")} {
246
- --m-button-background-color: ${Et("color-neutral-20")};
247
- --m-button-border-color: ${Et("color-neutral-20")};
248
- --m-button-color: ${Et("color-primary-60")};
249
- }
250
-
251
- .button.-tertiary.is-loading {
252
- --m-button-background-color: transparent;
253
- --m-button-border-color: transparent;
254
- --m-button-color: ${Et("color-primary-100")};
255
- }
256
-
257
- .button.-warning {
258
- --m-button-background-color: ${Et("color-warning-60")};
259
- --m-button-border-color: ${Et("color-warning-60")};
260
- --m-button-color: ${Et("color-text-primary")};
261
- }
262
-
263
- ${Gt(".button.-warning")} {
264
- --m-button-background-color: ${Et("color-warning-20")};
265
- --m-button-border-color: ${Et("color-warning-20")};
266
- --m-button-color: ${Et("color-text-inverted")};
267
- }
268
-
269
- ${Vt.focus(".button.-warning")} {
270
- --m-button-background-color: ${Et("color-warning-60")};
271
- --m-button-outline-color: ${Et("color-warning-60")};
272
- }
273
-
274
- ${Vt.hover(".button.-warning")},
275
- ${Vt.active(".button.-warning")} {
276
- --m-button-background-color: ${Et("color-warning-100")};
277
- --m-button-border-color: ${Et("color-warning-100")};
278
- --m-button-color: ${Et("color-text-inverted")};
279
- }
280
-
281
- .button.-warning.is-loading {
282
- --m-button-background-color: ${Et("color-warning-60")};
283
- --m-button-border-color: ${Et("color-warning-60")};
284
- --m-button-color: ${Et("color-text-primary")};
285
- }
286
-
287
- .button.-danger {
288
- --m-button-background-color: ${Et("color-danger-60")};
289
- --m-button-border-color: ${Et("color-danger-60")};
290
- --m-button-color: ${Et("color-text-inverted")};
291
- }
292
-
293
- ${Gt(".button.-danger")} {
294
- --m-button-background-color: ${Et("color-danger-20")};
295
- --m-button-border-color: ${Et("color-danger-20")};
296
- }
297
-
298
- ${Vt.focus(".button.-danger")} {
299
- --m-button-background-color: ${Et("color-danger-60")};
300
- --m-button-outline-color: ${Et("color-danger-60")};
301
- }
302
-
303
- ${Vt.hover(".button.-danger")},
304
- ${Vt.active(".button.-danger")} {
305
- --m-button-background-color: ${Et("color-danger-100")};
306
- --m-button-border-color: ${Et("color-danger-100")};
307
- }
308
-
309
- .button.-danger.is-loading {
310
- --m-button-background-color: ${Et("color-danger-60")};
311
- --m-button-border-color: ${Et("color-danger-60")};
312
- --m-button-color: ${Et("color-text-inverted")};
313
- }
314
-
315
- .button.-icon,
316
- .button.-icon-secondary {
317
- --m-button-color: ${Et("color-neutral-90")};
318
- --m-button-padding-x: ${Bt("spacing-1")};
319
- --m-button-padding-y: ${Bt("spacing-1")};
320
- }
321
-
322
- .button.-icon {
323
- --m-button-background-color: ${Et("color-background-tertiary")};
324
- --m-button-border-color: ${Et("color-background-tertiary")};
325
- }
326
-
327
- .button.-icon-secondary {
328
- --m-button-background-color: transparent;
329
- --m-button-border-color: transparent;
330
- }
331
-
332
- .button.-icon slot[name='leading']::slotted(*),
333
- .button.-icon slot[name='trailing']::slotted(*),
334
- .button.-icon-secondary slot[name='leading']::slotted(*),
335
- .button.-icon-secondary slot[name='trailing']::slotted(*) {
336
- display: none;
337
- }
338
-
339
- ${Gt([".button.-icon",".button.-icon-secondary"])} {
340
- --m-button-color: ${Et("color-neutral-40")};
341
- }
342
-
343
- ${Gt(".button.-icon")} {
344
- --m-button-background-color: ${Et("color-neutral-20")};
345
- --m-button-border-color: ${Et("color-neutral-20")};
346
- }
347
-
348
- ${Gt(".button.-icon-secondary")} {
349
- --m-button-background-color: transparent;
350
- --m-button-border-color: transparent;
351
- }
352
-
353
- ${Vt.focus([".button.-icon",".button.-icon-secondary"])} {
354
- --m-button-color: ${Et("color-primary-60")};
355
- --m-button-outline-color: ${Et("color-primary-60")};
356
- }
357
-
358
- ${Vt.focus(".button.-icon")} {
359
- --m-button-background-color: ${Et("color-neutral-20")};
360
- }
361
-
362
- ${Vt.focus(".button.-icon-secondary")} {
363
- --m-button-background-color: transparent;
364
- }
365
-
366
- ${Vt.hover([".button.-icon",".button.-icon-secondary"])},
367
- ${Vt.active([".button.-icon",".button.-icon-secondary"])} {
368
- --m-button-color: ${Et("color-primary-60")};
369
- }
370
-
371
- ${Vt.hover(".button.-icon")},
372
- ${Vt.active(".button.-icon")} {
373
- --m-button-background-color: ${Et("color-background-highlight")};
374
- --m-button-border-color: ${Et("color-background-highlight")};
375
- }
376
-
377
- ${Vt.hover(".button.-icon-secondary")},
378
- ${Vt.active(".button.-icon-secondary")} {
379
- --m-button-background-color: transparent;
380
- --m-button-border-color: transparent;
381
- }
382
-
383
- .button.-small {
384
- --m-button-padding-y: ${Bt("spacing-2")};
385
-
386
- ${It("button-sm")};
387
- }
388
-
389
- .button.-large {
390
- --m-button-padding-y: ${Bt("spacing-4")};
391
-
392
- ${It("button-lg")};
393
- }
394
-
395
- /* TODO: to be removed when the loading dots component is ready */
396
- .loader {
397
- position: absolute;
398
- inset: 0;
399
-
400
- display: flex;
401
- align-items: center;
402
- justify-content: center;
403
-
404
- pointer-events: none;
405
- }
406
- `]],window.customElements.define("m-button",ee);class oe extends ee{constructor(){super(),this.size="small"}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","primary-action")}}window.customElements.define("m-banner-action-primary",oe);class ie extends ee{constructor(){super(),this.variant="tertiary",this.size="small"}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","secondary-action")}}window.customElements.define("m-banner-action-secondary",ie);class re extends dt{connectedCallback(){super.connectedCallback(),this.setAttribute("slot","actions")}render(){return k`
407
- <slot name="secondary-action"></slot>
408
- <slot name="primary-action"></slot>
409
- `}}re.styles=[Y`
410
- :host {
411
- display: flex;
412
- justify-content: flex-end;
413
- gap: ${Bt("spacing-2")};
414
- }
415
- `],window.customElements.define("m-banner-actions",re);class ne extends dt{connectedCallback(){super.connectedCallback(),this.setAttribute("slot","description")}render(){return k`<slot></slot>`}}ne.styles=[Y`
416
- :host {
417
- ${It("body-md")};
418
- color: ${Et("color-text-secondary")};
419
- }
420
- `],window.customElements.define("m-banner-description",ne);class se extends dt{connectedCallback(){super.connectedCallback(),this.setAttribute("slot","icon")}render(){return k`<slot></slot>`}}window.customElements.define("m-banner-icon",se);class ae extends dt{connectedCallback(){super.connectedCallback(),this.setAttribute("slot","title")}render(){return k`<slot></slot>`}}ae.styles=[Y`
421
- :host {
422
- ${It("body-md-bold")};
423
- color: ${Et("color-text-secondary")};
424
- }
425
- `],window.customElements.define("m-banner-title",ae);class le extends dt{constructor(){super(...arguments),this.emit=(t,e)=>{const o=new CustomEvent(t,{bubbles:!0,cancelable:!0,composed:!0,...e});this.dispatchEvent(o)},this.reemit=t=>{!function(t,e){!e.bubbles||t.shadowRoot&&!e.composed||e.stopPropagation();const o=Reflect.construct(e.constructor,[e.type,e]),i=t.dispatchEvent(o);i||e.preventDefault()}(this,t)}}}var ce={BASE_PIXELS:16,toRem:function(t,e=16){return parseInt(String(t),10)/e+"rem"}},de=wt(ce.toRem);function he(t,e){return X(de(t,e))}const ue=new Map([["alert-circle",()=>import("./attention-738831d2.js")],["attention",()=>import("./attention-738831d2.js")],["bell",()=>import("./bell-c7493d8c.js")],["check",()=>import("./check-bbac788c.js")],["close",()=>import("./close-18b002ef.js")],["indeterminate",()=>import("./indeterminate-821133a2.js")],["info-circle",()=>import("./info-circle-06de27ec.js")]]);var pe,be,ge,me;ue.keys();class fe extends le{static get properties(){return{name:{type:String},size:{type:String},color:{type:String},loading:{state:!0}}}constructor(){super(),this.icon=null,pe.set(this,(async()=>{ue.has(this.name);try{this.icon=null;const{default:t}=await ue.get(this.name)();this.icon=t}catch{}finally{this.requestUpdate()}})),this.icon=null}connectedCallback(){super.connectedCallback(),t(this,pe,"f").call(this)}update(e){super.update(e),e.has("name")&&t(this,pe,"f").call(this)}updated(t){super.updated(t),t.has("size")&&null!=this.size&&this.style.setProperty("--m-icon-size",`${parseInt(String(this.size),10)||16}px`),t.has("color")&&null!=this.color&&this.style.setProperty("--m-icon-color",xt(this.color))}render(){return null!=this.name&&ue.has(this.name)&&null!=this.icon?this.icon:C}}pe=new WeakMap,fe.styles=[[Y`
426
- :host {
427
- --m-icon-size: 16px;
428
- --m-icon-color: ${Et("color-text-primary")};
429
-
430
- display: inline-flex;
431
- align-items: center;
432
- justify-content: center;
433
-
434
- inline-size: var(--m-icon-size);
435
- block-size: var(--m-icon-size);
436
- }
437
-
438
- svg {
439
- ${Ft([{property:"color"},{property:"fill"}])};
440
-
441
- inline-size: var(--m-icon-size);
442
- block-size: var(--m-icon-size);
443
-
444
- color: var(--m-icon-color);
445
- fill: var(--m-icon-color);
446
- }
447
- `]],window.customElements.define("m-icon",fe);class ye extends le{static get properties(){return{controls:{type:String},disabled:{type:Boolean},inverted:{type:Boolean},label:{type:String},size:{type:String}}}constructor(){super(),be.add(this),me.set(this,(()=>{this.emit("m-close")})),this.disabled=!1,this.inverted=!1,this.label="Close",this.size="default"}render(){var e;return k`
448
- <button
449
- type="button"
450
- aria-controls="${ut(this.controls)}"
451
- aria-label="${ut(this.label)}"
452
- class=${mt({"close-button":!0,"-size-small":"small"===this.size,"-size-default":"default"===this.size,"-size-large":"large"===this.size,"-inverted":null!==(e=this.inverted)&&void 0!==e&&e})}
453
- ?disabled="${this.disabled}"
454
- @click=${t(this,me,"f")}
455
- >
456
- <m-icon name="close"></m-icon>
457
- </button>
458
- `}focus(e){var o;null===(o=t(this,be,"a",ge))||void 0===o||o.focus(e)}}me=new WeakMap,be=new WeakSet,ge=function(){var t;return null!==(t=this.renderRoot.querySelector("button"))&&void 0!==t?t:null},ye.styles=[Y`
459
- :host {
460
- --m-close-button-color: ${Et("color-text-primary")};
461
- --m-close-button-outline-color: ${Et("color-primary-100")};
462
- --m-close-button-outline-offset: 2px;
463
- }
464
-
465
- .close-button {
466
- --button-color: transparent;
467
- --icon-color: var(--m-close-button-color);
468
-
469
- width: var(--button-size);
470
- height: var(--button-size);
471
- ${Dt(0)};
472
- ${Lt(0)};
473
- background-color: var(--button-color);
474
- border: none;
475
- border-radius: 50%;
476
- display: flex;
477
- align-items: center;
478
- justify-content: center;
479
- cursor: pointer;
480
-
481
- ${Ft([{property:"background-color"}])};
482
- }
483
-
484
- .close-button.-size-small {
485
- --button-size: ${he("12px")};
486
- --icon-size: ${he("8px")};
487
- }
488
-
489
- .close-button.-size-default {
490
- --button-size: ${he("16px")};
491
- --icon-size: ${he("12px")};
492
- }
493
-
494
- .close-button.-size-large {
495
- --button-size: ${he("20px")};
496
- --icon-size: ${he("16px")};
497
- }
498
-
499
- .close-button.-inverted {
500
- --button-color: transparent;
501
- --icon-color: ${Et("color-text-inverted")};
502
- }
503
-
504
- m-icon {
505
- --m-icon-size: var(--icon-size);
506
- --m-icon-color: var(--icon-color);
507
-
508
- display: block;
509
- }
510
-
511
- ${Vt.focus(".close-button")} {
512
- outline: 1px solid var(--m-close-button-outline-color);
513
- outline-offset: var(--m-close-button-outline-offset);
514
- }
515
-
516
- ${Vt.hover(".close-button")} {
517
- --button-color: var(--m-close-button-color);
518
- --icon-color: ${Et("color-text-inverted")};
519
- }
520
-
521
- ${Vt.hover(".close-button.-inverted")} {
522
- --button-color: ${Et("color-text-inverted")};
523
- --icon-color: var(--m-close-button-color);
524
- }
525
-
526
- ${Gt(".close-button")} {
527
- --icon-color: ${Et("color-text-disabled")};
528
- cursor: default;
529
- }
530
-
531
- ${Gt(".close-button","*")} {
532
- pointer-events: none;
533
- }
534
- `],window.customElements.define("m-close-button",ye);
535
- /**
536
- * @license
537
- * Copyright 2018 Google LLC
538
- * SPDX-License-Identifier: BSD-3-Clause
539
- */
540
- const ve="important",$e=" !"+ve,we=bt(class extends gt{constructor(t){var e;if(super(t),t.type!==pt||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,o)=>{const i=t[o];return null==i?e:e+`${o=o.includes("-")?o:o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`}),"")}update(t,[e]){const{style:o}=t.element;if(void 0===this.ut){this.ut=new Set;for(const t in e)this.ut.add(t);return this.render(e)}this.ut.forEach((t=>{null==e[t]&&(this.ut.delete(t),t.includes("-")?o.removeProperty(t):o[t]="")}));for(const t in e){const i=e[t];if(null!=i){this.ut.add(t);const e="string"==typeof i&&i.endsWith($e);t.includes("-")||e?o.setProperty(t,e?i.slice(0,-11):i,e?ve:""):o[t]=i}}return S}});class xe extends(ft(dt,["h1","h2","h3","h4","h5","h6","p","span"],"span")){static get properties(){return{color:{type:String},ellipsized:{type:Boolean,reflect:!0},variant:{type:String,reflect:!0}}}constructor(){super(),this.as="span",this.color="color-text-primary",this.ellipsized=!1,this.variant="body-md"}render(){return F`
541
- <${this.tag}
542
- class=${mt({"m-text":!0,"-body-lg-bold":"body-lg-bold"===this.variant,"-body-lg":"body-lg"===this.variant,"-body-md-bold-underline":"body-md-bold-underline"===this.variant,"-body-md-bold":"body-md-bold"===this.variant,"-body-md-underline":"body-md-underline"===this.variant,"-body-md":"body-md"===this.variant,"-body-sm-bold-underline":"body-sm-bold-underline"===this.variant,"-body-sm-bold":"body-sm-bold"===this.variant,"-body-sm-underline":"body-sm-underline"===this.variant,"-body-sm":"body-sm"===this.variant,"-button-lg":"button-lg"===this.variant,"-button-md":"button-md"===this.variant,"-button-sm":"button-sm"===this.variant,"-chips-md":"chips-md"===this.variant,"-chips-sm":"chips-sm"===this.variant,"-heading-lg-bold":"heading-lg-bold"===this.variant,"-heading-lg":"heading-lg"===this.variant,"-heading-md-bold":"heading-md-bold"===this.variant,"-heading-md":"heading-md"===this.variant,"-heading-sm-bold":"heading-sm-bold"===this.variant,"-heading-sm":"heading-sm"===this.variant,"-hero-lg-bold":"hero-lg-bold"===this.variant,"-hero-lg":"hero-lg"===this.variant,"-hero-md-bold":"hero-md-bold"===this.variant,"-hero-md":"hero-md"===this.variant,"-hero-sm-bold":"hero-sm-bold"===this.variant,"-hero-sm":"hero-sm"===this.variant,"-number-md":"number-md"===this.variant,"-number-sm":"number-sm"===this.variant,"-table-header-md":"table-header-md"===this.variant,"-table-header-sm":"table-header-sm"===this.variant,"-ellipsized":Boolean(this.ellipsized)})}
543
- style=${we({"--m-text-color":xt(this.color)})}
544
- >
545
- <slot></slot>
546
- </${this.tag}>
547
- `}}var ke,ze;xe.styles=[Y`
548
- :host {
549
- --m-text-color: ${Et("color-text-primary")};
550
- --m-text-display: inline-block;
551
- --m-text-max-width: initial;
552
- --m-text-padding: 0;
553
- --m-text-margin: 0;
554
- }
555
-
556
- .m-text {
557
- ${Ft([{property:"color"}])};
558
-
559
- ${It()};
560
-
561
- color: var(--m-text-color);
562
- display: var(--m-text-display);
563
- padding: var(--m-text-padding);
564
- margin: var(--m-text-margin);
565
- }
566
-
567
- .-body-lg-bold {
568
- ${It("body-lg-bold")};
569
- }
570
-
571
- .-body-lg {
572
- ${It("body-lg")};
573
- }
574
-
575
- .-body-md-bold-underline {
576
- ${It("body-md-bold-underline")};
577
- }
578
-
579
- .-body-md-bold {
580
- ${It("body-md-bold")};
581
- }
582
-
583
- .-body-md-underline {
584
- ${It("body-md-underline")};
585
- }
586
-
587
- .-body-md {
588
- ${It("body-md")};
589
- }
590
-
591
- .-body-sm-bold-underline {
592
- ${It("body-sm-bold-underline")};
593
- }
594
-
595
- .-body-sm-bold {
596
- ${It("body-sm-bold")};
597
- }
598
-
599
- .-body-sm-underline {
600
- ${It("body-sm-underline")};
601
- }
602
-
603
- .-body-sm {
604
- ${It("body-sm")};
605
- }
606
-
607
- .-button-lg {
608
- ${It("button-lg")};
609
- }
610
-
611
- .-button-md {
612
- ${It("button-md")};
613
- }
614
-
615
- .-button-sm {
616
- ${It("button-sm")};
617
- }
618
-
619
- .-chips-md {
620
- ${It("chips-md")};
621
- }
622
-
623
- .-chips-sm {
624
- ${It("chips-sm")};
625
- }
626
-
627
- .-heading-lg-bold {
628
- ${It("heading-lg-bold")};
629
- }
630
-
631
- .-heading-lg {
632
- ${It("heading-lg")};
633
- }
634
-
635
- .-heading-md-bold {
636
- ${It("heading-md-bold")};
637
- }
638
-
639
- .-heading-md {
640
- ${It("heading-md")};
641
- }
642
-
643
- .-heading-sm-bold {
644
- ${It("heading-sm-bold")};
645
- }
646
-
647
- .-heading-sm {
648
- ${It("heading-sm")};
649
- }
650
-
651
- .-hero-lg-bold {
652
- ${It("hero-lg-bold")};
653
- }
654
-
655
- .-hero-lg {
656
- ${It("hero-lg")};
657
- }
658
-
659
- .-hero-md-bold {
660
- ${It("hero-md-bold")};
661
- }
662
-
663
- .-hero-md {
664
- ${It("hero-md")};
665
- }
666
-
667
- .-hero-sm-bold {
668
- ${It("hero-sm-bold")};
669
- }
670
-
671
- .-hero-sm {
672
- ${It("hero-sm")};
673
- }
674
-
675
- .-number-md {
676
- ${It("number-md")};
677
- }
678
-
679
- .-number-sm {
680
- ${It("number-sm")};
681
- }
682
-
683
- .-table-header-md {
684
- ${It("table-header-md")};
685
- }
686
-
687
- .-table-header-sm {
688
- ${It("table-header-sm")};
689
- }
690
-
691
- .-ellipsized {
692
- overflow: hidden;
693
- text-overflow: ellipsis;
694
- white-space: nowrap;
695
- max-width: var(--m-text-max-width);
696
- }
697
- `],window.customElements.define("m-text",xe);class Se extends le{static get properties(){return{variant:{type:String},dismissible:{type:Boolean},dismissed:{type:Boolean,reflect:!0}}}constructor(){super(),ke.set(this,void 0),ze.set(this,(()=>{this.dismissed=!0,this.emit("m-dismiss",{composed:!0})})),this.variant="neutral",this.dismissible=!1,this.dismissed=!1}get primaryAction(){return null==t(this,ke,"f")&&e(this,ke,this.querySelector("m-banner-action-primary"),"f"),t(this,ke,"f")}updated(t){super.updated(t),t.has("variant")&&null!=this.primaryAction&&(this.primaryAction.variant=function(t){switch(t){case"warning":return"warning";case"danger":return"danger";default:return"primary"}}(this.variant))}render(){if(this.dismissed)return C;const e=null!=this.querySelector("*[slot='description']"),o=null!=this.querySelector("*[slot='actions']"),i=k`
698
- <m-close-button
699
- id="close"
700
- label="Dismiss"
701
- @click=${t(this,ze,"f")}
702
- ></m-close-button>
703
- `;return k`
704
- <div
705
- class=${mt({banner:!0,"-success":"success"===this.variant,"-warning":"warning"===this.variant,"-danger":"danger"===this.variant,"-with-description":e})}
706
- >
707
- <div class="wrapper">
708
- <slot name="icon">
709
- <m-icon name="${function(t){switch(t){case"success":return"check";case"warning":case"danger":return"attention";default:return"info-circle"}}(this.variant)}"></m-icon>
710
- </slot>
711
- <div class="content">
712
- <slot name="title"></slot>
713
- <slot name="description"></slot>
714
- </div>
715
- ${this.dismissible&&!o?i:C}
716
- </div>
717
- <slot name="actions"></slot>
718
- </div>
719
- `}}ke=new WeakMap,ze=new WeakMap,Se.styles=[Y`
720
- :host {
721
- display: block;
722
- width: 100%;
723
- }
724
-
725
- :host([dismissed]) {
726
- display: none;
727
- }
728
-
729
- .banner {
730
- background-color: var(
731
- --m-banner-background-color,
732
- ${Et("color-background-secondary")}
733
- );
734
- border: var(--m-banner-border, 1px solid ${Et("color-border")});
735
- border-radius: var(--m-banner-border-radius, ${Bt("border-radius-m")});
736
- padding-inline: var(--m-banner-padding-x, ${Bt("spacing-6")});
737
- padding-block: var(--m-banner-padding-y, ${Bt("spacing-4")});
738
- display: flex;
739
- flex-wrap: wrap;
740
- justify-content: flex-end;
741
- gap: ${Bt("spacing-6")};
742
- }
743
-
744
- .banner.-success {
745
- --m-banner-background-color: ${Et("color-success-20")};
746
- --m-banner-border: 1px solid ${Et("color-success-20")};
747
- --m-banner-icon-color: ${Et("color-success-60")};
748
- }
749
-
750
- .banner.-warning {
751
- --m-banner-background-color: ${Et("color-warning-20")};
752
- --m-banner-border: 1px solid ${Et("color-warning-20")};
753
- --m-banner-icon-color: ${Et("color-warning-100")};
754
- }
755
-
756
- .banner.-danger {
757
- --m-banner-background-color: ${Et("color-danger-20")};
758
- --m-banner-border: 1px solid ${Et("color-danger-20")};
759
- --m-banner-icon-color: ${Et("color-danger-60")};
760
- }
761
-
762
- .banner.-with-description {
763
- flex-direction: column;
764
- }
765
-
766
- .wrapper {
767
- display: flex;
768
- gap: ${Bt("spacing-6")};
769
- align-items: center;
770
- flex-grow: 1;
771
- }
772
-
773
- slot[name='icon'] > m-icon,
774
- slot[name='icon']::slotted(*) {
775
- --m-icon-color: var(--m-banner-icon-color, ${Et("color-neutral-90")});
776
- --m-icon-size: var(--m-banner-icon-size, 24px);
777
-
778
- fill: var(--m-banner-icon-color, ${Et("color-neutral-90")});
779
- block-size: var(--m-banner-icon-size, 24px);
780
- inline-size: var(--m-banner-icon-size, 24px);
781
- }
782
-
783
- .content {
784
- display: flex;
785
- flex-direction: column;
786
- flex-grow: 1;
787
- gap: ${Bt("spacing-1")};
788
- }
789
- `],window.customElements.define("m-banner",Se);class Ce extends dt{static get properties(){return{flagged:{type:Boolean},flagColor:{type:String,attribute:"flag-color"}}}constructor(){super(),this.flagged=!1,this.flagColor="color-background-inverted"}render(){return k`
790
- <div
791
- class="m-card"
792
- style="${we({"--m-card-flag-color":xt(this.flagColor)})}"
793
- >
794
- ${this.flagged?k`<span class="m-card-flag"></span>`:C}
795
- <div class="m-card-content">
796
- <slot name="title"></slot>
797
- <slot name="subtitle"></slot>
798
- <slot name="divider"></slot>
799
- <slot name="body"></slot>
800
- </div>
801
- </div>
802
- `}}Ce.styles=[Y`
803
- :host {
804
- --m-card-background-color: ${Et("color-background-primary")};
805
- }
806
-
807
- .m-card {
808
- position: relative;
809
- display: flex;
810
- flex-direction: row;
811
-
812
- background-color: var(--m-card-background-color);
813
- border-radius: ${Bt("border-radius-s")};
814
- border: solid 1px ${Et("color-divider")};
815
- }
816
-
817
- .m-card-flag {
818
- position: absolute;
819
- top: -1px;
820
- bottom: -1px;
821
- left: -1px;
822
- display: block;
823
-
824
- box-sizing: border-box;
825
- border: 1px solid var(--m-card-flag-color);
826
- background-color: var(--m-card-flag-color);
827
- width: ${Bt("border-thick")};
828
- border-top-left-radius: ${Bt("border-radius-s")};
829
- border-top-right-radius: 0;
830
- border-bottom-right-radius: 0;
831
- border-bottom-left-radius: ${Bt("border-radius-s")};
832
- }
833
-
834
- .m-card-content {
835
- display: flex;
836
- flex: 1;
837
- flex-direction: column;
838
- }
839
-
840
- ::slotted(m-divider) {
841
- --m-divider-margin-top: ${Bt("spacing-4")};
842
- }
843
- `],window.customElements.define("m-card",Ce);class Me extends dt{static get properties(){return{slot:{type:String}}}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","body")}render(){return k`
844
- <div class="m-card-body">
845
- <slot></slot>
846
- </div>
847
- `}}Me.styles=[Y`
848
- :host {
849
- --m-card-body-padding-x: ${Bt("spacing-4")};
850
- --m-card-body-padding-y: ${Bt("spacing-4")};
851
- }
852
-
853
- .m-card-body {
854
- padding: var(--m-card-body-padding-y) var(--m-card-body-padding-x);
855
- }
856
- `],window.customElements.define("m-card-body",Me);class We extends dt{static get properties(){return{slot:{type:String}}}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","subtitle")}render(){return k`
857
- <div class="m-card-subtitle">
858
- <slot></slot>
859
- </div>
860
- `}}We.styles=[Y`
861
- :host {
862
- --m-card-subtitle-margin-top: ${Bt("spacing-2")};
863
- --m-card-subtitle-padding-x: ${Bt("spacing-4")};
864
- --m-card-subtitle-padding-y: 0;
865
- }
866
-
867
- .m-card-subtitle {
868
- ${It("body-md")};
869
-
870
- margin-block-start: var(--m-card-subtitle-margin-top);
871
- padding: var(--m-card-subtitle-padding-y) var(--m-card-subtitle-padding-x);
872
-
873
- color: ${Et("color-text-tertiary")};
874
- }
875
- `],window.customElements.define("m-card-subtitle",We);class Ae extends dt{static get properties(){return{slot:{type:String}}}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","title")}render(){return k`
876
- <div class="m-card-title">
877
- <slot name="leading"></slot>
878
- <slot></slot>
879
- </div>
880
- `}}Ae.styles=[Y`
881
- :host {
882
- --m-card-title-padding-x: ${Bt("spacing-4")};
883
- --m-card-title-padding-top: ${Bt("spacing-4")};
884
- }
885
-
886
- .m-card-title {
887
- padding: var(--m-card-title-padding-top) var(--m-card-title-padding-x) 0;
888
-
889
- ${It("heading-sm-bold")};
890
- color: ${Et("color-text-primary")};
891
- }
892
-
893
- slot[name='leading']::slotted(*) {
894
- display: inline-flex;
895
- flex-flow: row nowrap;
896
- align-items: center;
897
- justify-content: center;
898
- pointer-events: none;
899
- margin-inline-end: ${Bt("spacing-1")};
900
- }
901
- `],window.customElements.define("m-card-title",Ae);const je={delay:"0s",duration:"0.35s",easing:"ease-in-out"};var Be,Ee,Te;class Re extends dt{static get properties(){return{name:{type:String,reflect:!0},disabled:{type:Boolean,reflect:!0},checked:{type:Boolean,reflect:!0},indeterminate:{type:Boolean,reflect:!0}}}constructor(){super(),Be.add(this),Te.set(this,(t=>{const e=t.target,o=new CustomEvent("m-change",{cancelable:!1,composed:!1,bubbles:!0,detail:{checked:e.checked,indeterminate:e.indeterminate}});this.dispatchEvent(o),this.checked=e.checked,this.indeterminate=e.indeterminate})),this.name=void 0,this.disabled=!1,this.checked=!1,this.indeterminate=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","checkbox")}disconnectedCallback(){super.connectedCallback()}firstUpdated(){this.input=this.renderRoot.querySelector("input"),this.label=this.renderRoot.querySelector("label")}updated(){t(this,Be,"m",Ee).call(this)}render(){return k`
902
- <label for="${ut(this.id)}" class="check-input-label">
903
- <input
904
- id="${ut(this.id)}"
905
- name="${ut(this.name)}"
906
- type="checkbox"
907
- class="check-input"
908
- ?disabled="${this.disabled}"
909
- ?checked="${this.checked}"
910
- @change=${t(this,Te,"f")}
911
- />
912
- <m-icon name="check" class="check-icon"></m-icon>
913
- <m-icon name="indeterminate" class="indeterminate-icon"></m-icon>
914
- <slot name="leading"></slot>
915
- <slot></slot>
916
- </label>
917
- `}focus(t){var e;null===(e=this.input)||void 0===e||e.focus(t)}}Te=new WeakMap,Be=new WeakSet,Ee=function(){this.setAttribute("aria-disabled",this.disabled.toString()),this.setAttribute("aria-checked",this.indeterminate?"mixed":this.checked.toString()),this.input.indeterminate=this.indeterminate},Re.styles=[Y`
918
- ${Vt.focus(".check-input-label")} {
919
- border-radius: 2px;
920
- outline: 1px solid ${Et("color-primary-60")};
921
- }
922
-
923
- .check-input-label {
924
- ${It("body-md")};
925
-
926
- gap: ${Bt("spacing-1")};
927
- align-items: center;
928
- display: inline-flex;
929
- padding: 4px 2px;
930
- position: relative;
931
- }
932
-
933
- .check-input-label,
934
- .check-input {
935
- cursor: pointer;
936
- }
937
-
938
- .check-input {
939
- --checkbox-input-size: ${Bt("font-size-4")};
940
-
941
- color: ${Et("color-text-tertiary")};
942
- width: var(--checkbox-input-size);
943
- height: var(--checkbox-input-size);
944
- background: ${Et("color-neutral-0")};
945
- appearance: none;
946
- outline: none;
947
- border-style: solid;
948
- border-radius: ${Bt("border-radius-s")};
949
- border-color: ${Et("color-border")};
950
- border-width: ${Bt("border-thin")};
951
- margin: 0;
952
- flex-grow: 0;
953
- flex-shrink: 0;
954
- flex-basis: var(--checkbox-input-size);
955
- ${Ft([{property:"border",...je},{property:"background",...je}])};
956
- }
957
-
958
- .check-input:indeterminate,
959
- .check-input:checked {
960
- background: ${Et("color-primary-60")};
961
- border-color: ${Et("color-primary-60")};
962
- }
963
-
964
- ${Gt(".check-input")} {
965
- background: ${Et("color-background-tertiary")};
966
- cursor: not-allowed;
967
- }
968
-
969
- ${Gt(".check-input:indeterminate")},
970
- ${Gt(".check-input:checked")} {
971
- background: ${Et("color-neutral-40")};
972
- border-color: ${Et("color-neutral-40")};
973
- }
974
-
975
- ${Vt.hover(".check-input:indeterminate")},
976
- ${Vt.hover(".check-input:checked")} {
977
- background: ${Et("color-primary-100")};
978
- border-color: ${Et("color-primary-100")};
979
- }
980
-
981
- ${Vt.hover(".check-input")} {
982
- border-color: ${Et("color-primary-100")};
983
- }
984
-
985
- :host([disabled]) .check-input-label {
986
- cursor: not-allowed;
987
- color: ${Et("color-text-disabled")};
988
- }
989
-
990
- .check-icon,
991
- .indeterminate-icon {
992
- --m-icon-size: 1em;
993
- --m-icon-color: ${Et("color-neutral-0")};
994
-
995
- position: absolute;
996
-
997
- pointer-events: none;
998
- border-width: ${Bt("border-thin")};
999
- border-style: solid;
1000
- border-color: transparent;
1001
- border-radius: ${Bt("border-radius-s")};
1002
- display: none;
1003
- }
1004
-
1005
- .check-input:checked:not(:indeterminate) ~ .check-icon,
1006
- .check-input:indeterminate:not(:checked) ~ .indeterminate-icon {
1007
- display: inline-flex;
1008
- }
1009
- `],window.customElements.define("m-checkbox",Re);
1010
- /**
1011
- * @license
1012
- * Copyright 2021 Google LLC
1013
- * SPDX-License-Identifier: BSD-3-Clause
1014
- */
1015
- let Pe=class extends Event{constructor(t,e,o){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=e,this.subscribe=o}};
1016
- /**
1017
- * @license
1018
- * Copyright 2021 Google LLC
1019
- * SPDX-License-Identifier: BSD-3-Clause
1020
- */
1021
- /**
1022
- * @license
1023
- * Copyright 2021 Google LLC
1024
- * SPDX-License-Identifier: BSD-3-Clause
1025
- */
1026
- let _e=class{constructor(t,e,o,i){var r;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(t,e)=>{this.unsubscribe&&(this.unsubscribe!==e&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=t,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(t,e)),this.unsubscribe=e},this.host=t,void 0!==e.context){const t=e;this.context=t.context,this.callback=t.callback,this.subscribe=null!==(r=t.subscribe)&&void 0!==r&&r}else this.context=e,this.callback=o,this.subscribe=null!=i&&i;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Pe(this.context,this.t,this.subscribe))}},Oe=class{constructor(t){this.disposers=new Map,this.updateObservers=()=>{for(const[t,e]of this.disposers)t(this.o,e)},void 0!==t&&(this.value=t)}get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){const o=e||!Object.is(t,this.o);this.o=t,o&&this.updateObservers()}addCallback(t,e){if(e){this.disposers.has(t)||this.disposers.set(t,(()=>{this.disposers.delete(t)}));const e=this.disposers.get(t);t(this.value,e)}else t(this.value)}clearCallbacks(){this.disposers.clear()}},De=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},Ue=class extends Oe{constructor(t,e,o){super(void 0!==e.context?e.initialValue:o),this.onContextRequest=t=>{t.context===this.context&&t.composedPath()[0]!==this.host&&(t.stopPropagation(),this.addCallback(t.callback,t.subscribe))},this.host=t,void 0!==e.context?this.context=e.context:this.context=e,this.attachListeners(),this.host.addController(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest)}hostConnected(){this.host.dispatchEvent(new De(this.context))}},qe=!1;
1027
- /**
1028
- * @license
1029
- * Copyright 2021 Google LLC
1030
- * SPDX-License-Identifier: BSD-3-Clause
1031
- */function Le(){if(qe)return;const t=new class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=t=>{const e=this.pendingContextRequests.get(t.context);if(void 0===e)return;this.pendingContextRequests.delete(t.context);const{requests:o}=e;for(const{elementRef:e,callbackRef:i}of o){const o=e.deref(),r=i.deref();void 0===o||void 0===r||o.dispatchEvent(new Pe(t.context,r,!0))}},this.onContextRequest=t=>{if(!0!==t.subscribe)return;const e=t.composedPath()[0],o=t.callback;let i=this.pendingContextRequests.get(t.context);void 0===i&&this.pendingContextRequests.set(t.context,i={callbacks:new WeakMap,requests:[]});let r=i.callbacks.get(e);void 0===r&&i.callbacks.set(e,r=new WeakSet),r.has(o)||(r.add(o),i.requests.push({elementRef:new WeakRef(e),callbackRef:new WeakRef(o)}))}}attach(t){t.addEventListener("context-request",this.onContextRequest),t.addEventListener("context-provider",this.onContextProvider)}detach(t){t.removeEventListener("context-request",this.onContextRequest),t.removeEventListener("context-provider",this.onContextProvider)}};t.attach(document.body),qe=!0}async function Ne(t,e){const o=t.getAnimations(e).map((({finished:t})=>t));await Promise.allSettled(o)}const Fe=Symbol("dialog");var Ie,Ge,Ve,He,Je,Xe,Ye,Ze;Le();class Ke extends le{static get properties(){return{open:{type:Boolean,reflect:!0},size:{type:String,reflect:!0},variant:{type:String,reflect:!0}}}constructor(){super(),Ie.add(this),Ge.set(this,new Ue(this,Fe,{variant:"neutral"})),this.open=!1,this.size="small",this.variant="neutral"}render(){return k`
1032
- <dialog
1033
- class="${mt({"-size-small":"small"===this.size||!this.size,"-size-medium":"medium"===this.size,"-size-large":"large"===this.size,"-size-extra-large":"extra-large"===this.size})}"
1034
- @click=${t(this,Ie,"m",Ye)}
1035
- @cancel=${t(this,Ie,"m",Ze)}
1036
- >
1037
- <slot name="header"></slot>
1038
- <slot name="body"></slot>
1039
- <slot name="footer"></slot>
1040
- <slot name="actions"></slot>
1041
- </dialog>
1042
- `}updated(e){var o;super.updated(e),e.has("variant")&&t(this,Ge,"f").setValue({variant:null!==(o=this.variant)&&void 0!==o?o:"neutral"}),e.has("open")&&t(this,Ie,"m",He).call(this,e.get("open"))}show(){this.open=!0}hide(){this.open=!1}}Ge=new WeakMap,Ie=new WeakSet,Ve=function(){var t;return null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector("dialog")},He=async function(e){const o=t(this,Ie,"a",Ve);o&&(!e&&this.open?(this.style.display="block",t(this,Ie,"m",Je).call(this,"m-opening"),o.showModal(),await Ne(o),t(this,Ie,"m",Je).call(this,"m-opened")):e&&!this.open?(t(this,Ie,"m",Je).call(this,"m-closing"),o.classList.add("is-hiding"),await Ne(o),o.classList.remove("is-hiding"),o.close(),t(this,Ie,"m",Je).call(this,"m-closed"),this.style.display="none"):null!=e||this.open||(this.style.display="none"))},Je=function(t){this.emit(t,{cancelable:!1,bubbles:!1})},Xe=function(){this.open&&this.emit("m-close")},Ye=function(e){var o;const i=e.target instanceof HTMLDialogElement,r=null===(o=t(this,Ie,"a",Ve))||void 0===o?void 0:o.getBoundingClientRect();if(i&&r){(e.clientY<r.top||e.clientY>r.bottom||e.clientX<r.left||e.clientX>r.right)&&(e.preventDefault(),e.stopPropagation(),t(this,Ie,"m",Xe).call(this))}},Ze=function(e){e.preventDefault(),t(this,Ie,"m",Xe).call(this)},Ke.styles=[Y`
1043
- :host {
1044
- --margin: ${Bt("spacing-6")};
1045
- --padding: ${Bt("spacing-6")};
1046
- --gap: ${Bt("spacing-6")};
1047
- }
1048
-
1049
- slot::slotted(*) {
1050
- padding-inline: var(--padding);
1051
- padding-block: calc(var(--gap) / 2);
1052
- }
1053
-
1054
- dialog {
1055
- box-sizing: border-box;
1056
- padding: calc(var(--padding) - (var(--gap) / 2)) 0;
1057
- border: none;
1058
- border-radius: ${Bt("border-radius-m")};
1059
- background-color: white;
1060
- box-shadow: ${Bt("elevation-4")};
1061
- width: auto;
1062
- max-height: calc(100% - var(--margin));
1063
-
1064
- ${Ft([{property:"max-width"}])}
1065
- }
1066
-
1067
- dialog[open] {
1068
- display: flex;
1069
- flex-direction: column;
1070
- }
1071
-
1072
- dialog.-size-small {
1073
- max-width: min(${he("400px")}, calc(100vw - var(--margin)));
1074
- }
1075
-
1076
- dialog.-size-medium {
1077
- max-width: min(${he("600px")}, calc(100% - var(--margin)));
1078
- }
1079
-
1080
- dialog.-size-large {
1081
- max-width: min(${he("800px")}, calc(100% - var(--margin)));
1082
- }
1083
-
1084
- dialog.-size-extra-large {
1085
- max-width: min(${he("1000px")}, calc(100% - var(--margin)));
1086
- }
1087
-
1088
- dialog::backdrop {
1089
- background-color: ${Et("color-background-secondary-inverted",.4)};
1090
- }
1091
-
1092
- @media (prefers-reduced-motion: no-preference) {
1093
- dialog[open] {
1094
- animation: show-dialog 0.25s ease forwards;
1095
- }
1096
-
1097
- dialog.is-hiding {
1098
- animation: hide-dialog 0.25s ease forwards;
1099
- }
1100
-
1101
- dialog[open]::backdrop {
1102
- animation: show-backdrop 0.25s ease forwards;
1103
- }
1104
-
1105
- dialog.is-hiding::backdrop {
1106
- animation: hide-backdrop 0.25s ease forwards;
1107
- }
1108
- }
1109
-
1110
- @keyframes show-dialog {
1111
- from {
1112
- opacity: 0;
1113
- transform: translateY(250px);
1114
- }
1115
- }
1116
-
1117
- @keyframes hide-dialog {
1118
- to {
1119
- opacity: 0;
1120
- transform: scale(0.75);
1121
- }
1122
- }
1123
-
1124
- @keyframes show-backdrop {
1125
- from {
1126
- opacity: 0;
1127
- }
1128
- }
1129
-
1130
- @keyframes hide-backdrop {
1131
- to {
1132
- opacity: 0;
1133
- }
1134
- }
1135
- `],window.customElements.define("m-dialog",Ke);const Qe=["small","medium","large","extra-large"],to=["neutral","success","warning","danger"];var eo,oo;class io extends ee{constructor(){super(),eo.set(this,(t=>{switch(t.variant){case"danger":this.variant="danger";break;case"warning":this.variant="warning";break;default:this.variant="primary"}})),this.type="button",this.variant="primary",this.context=new _e(this,Fe,t(this,eo,"f"),!0)}}eo=new WeakMap,window.customElements.define("m-dialog-action-primary",io);class ro extends ee{constructor(){super(),this.type="button",this.variant="secondary"}}window.customElements.define("m-dialog-action-secondary",ro);class no extends ee{constructor(){super(),this.type="button",this.variant="tertiary"}}function so(t,e){var o;const i=e?xt(e):"";return t&&null!==(o="none"===t?"0":xt(t))&&void 0!==o?o:i}window.customElements.define("m-dialog-action-tertiary",no);class ao extends dt{constructor(){super(...arguments),oo.set(this,((t,e)=>{e?this.style.setProperty(t,so(e)):this.style.removeProperty(t)}))}static get properties(){return{padding:{type:String},paddingX:{type:String,attribute:"padding-x"},paddingY:{type:String,attribute:"padding-y"},paddingT:{type:String,attribute:"padding-t"},paddingB:{type:String,attribute:"padding-b"},paddingL:{type:String,attribute:"padding-l"},paddingR:{type:String,attribute:"padding-r"}}}getCSSPropertiesPrefix(){return"layout"}update(e){super.update(e);const o=this.getCSSPropertiesPrefix();e.has("padding")&&this.style.setProperty(`--m-${o}-padding`,so(this.padding)),e.has("paddingX")&&t(this,oo,"f").call(this,`--m-${o}-padding-x`,this.paddingX),e.has("paddingY")&&t(this,oo,"f").call(this,`--m-${o}-padding-y`,this.paddingY),e.has("paddingT")&&t(this,oo,"f").call(this,`--m-${o}-padding-t`,this.paddingT),e.has("paddingB")&&t(this,oo,"f").call(this,`--m-${o}-padding-b`,this.paddingB),e.has("paddingL")&&t(this,oo,"f").call(this,`--m-${o}-padding-l`,this.paddingL),e.has("paddingR")&&t(this,oo,"f").call(this,`--m-${o}-padding-r`,this.paddingR)}render(){return k`<slot></slot>`}}function lo(t){return Y`
1136
- :host {
1137
- padding-block-start: var(
1138
- --m-${X(t)}-padding-t,
1139
- var(
1140
- --m-${X(t)}-padding-y,
1141
- var(--m-${X(t)}-padding, 0)
1142
- )
1143
- );
1144
- padding-block-end: var(
1145
- --m-${X(t)}-padding-b,
1146
- var(
1147
- --m-${X(t)}-padding-y,
1148
- var(--m-${X(t)}-padding, 0)
1149
- )
1150
- );
1151
- padding-inline-start: var(
1152
- --m-${X(t)}-padding-l,
1153
- var(
1154
- --m-${X(t)}-padding-x,
1155
- var(--m-${X(t)}-padding, 0)
1156
- )
1157
- );
1158
- padding-inline-end: var(
1159
- --m-${X(t)}-padding-r,
1160
- var(
1161
- --m-${X(t)}-padding-x,
1162
- var(--m-${X(t)}-padding, 0)
1163
- )
1164
- );
1165
- }
1166
- `}oo=new WeakMap;const co={gap:"spacing-4",align:"stretch",justify:"flex-start"};class ho extends ao{static get properties(){return{...super.properties,gap:{type:String},align:{type:String},justify:{type:String}}}constructor(){super(),this.gap=co.gap,this.align=co.align,this.justify=co.justify}getCSSPropertiesPrefix(){return ho.CSSPropertiesPrefix}update(t){super.update(t),this.style.setProperty("--m-group-gap",so(this.gap,co.gap)),this.style.setProperty("--m-group-align",this.align||co.align),this.style.setProperty("--m-group-justify",this.justify||co.justify)}render(){return k`<slot></slot>`}}ho.CSSPropertiesPrefix="group",ho.styles=[lo(ho.CSSPropertiesPrefix),Y`
1167
- :host {
1168
- --m-group-gap: ${Bt(co.gap)};
1169
- --m-group-align: ${X(co.align)};
1170
- --m-group-justify: ${X(co.justify)};
1171
-
1172
- display: flex;
1173
- flex-wrap: wrap;
1174
- gap: var(--m-group-gap);
1175
- align-items: var(--m-group-align);
1176
- justify-content: var(--m-group-justify);
1177
- }
1178
- `],window.customElements.define("m-group",ho);class uo extends ho{constructor(){super(),this.align="center",this.gap="spacing-3",this.justify="flex-end"}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","actions")}}window.customElements.define("m-dialog-actions",uo);class po extends dt{connectedCallback(){super.connectedCallback(),this.setAttribute("slot","body")}render(){return k`<slot></slot>`}}po.styles=[Y`
1179
- :host {
1180
- overflow-y: auto;
1181
- overscroll-behavior: contain;
1182
-
1183
- ${It("body-md")};
1184
- }
1185
- `],window.customElements.define("m-dialog-body",po);class bo extends ye{constructor(){super(),this.size="large"}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","close")}}window.customElements.define("m-dialog-close",bo);class go extends dt{connectedCallback(){super.connectedCallback(),this.setAttribute("slot","footer")}render(){return k`<slot></slot>`}}window.customElements.define("m-dialog-footer",go);const mo=["center","flex-start","flex-end","stretch"],fo=["center","flex-start","flex-end","space-between","space-around","space-evenly"],yo={padding:"spacing-4",borderRadius:"border-radius-s",borderWidth:"border-none",borderColor:"color-background-highlight",textAlign:"left"};class vo extends ao{static get properties(){return{...super.properties,backgroundColor:{type:String,attribute:"background-color"},borderRadius:{type:String,attribute:"border-radius"},borderWidth:{type:String,attribute:"border-width"},borderColor:{type:String,attribute:"border-color"},textAlign:{type:String,attribute:"text-align"}}}constructor(){super(),this.padding=yo.padding,this.borderRadius=yo.borderRadius,this.borderWidth=yo.borderWidth,this.borderColor=yo.borderColor,this.textAlign=yo.textAlign}getCSSPropertiesPrefix(){return vo.CSSPropertiesPrefix}update(t){var e,o,i,r;super.update(t),t.has("backgroundColor")&&this.style.setProperty("--m-box-background-color",null!==(e=this.backgroundColor&&xt(this.backgroundColor))&&void 0!==e?e:"transparent"),t.has("borderRadius")&&this.style.setProperty("--m-box-border-radius",null!==(o=this.borderRadius&&xt(this.borderRadius))&&void 0!==o?o:xt(yo.borderRadius)),t.has("borderWidth")&&this.style.setProperty("--m-box-border-width",null!==(i=this.borderWidth&&xt(this.borderWidth))&&void 0!==i?i:xt(yo.borderWidth)),t.has("borderColor")&&this.style.setProperty("--m-box-border-color",null!==(r=this.borderColor&&xt(this.borderColor))&&void 0!==r?r:xt(yo.borderColor)),t.has("textAlign")&&this.style.setProperty("--m-box-text-align",this.textAlign||yo.textAlign)}render(){return k`<slot></slot>`}}vo.CSSPropertiesPrefix="box",vo.styles=[lo(vo.CSSPropertiesPrefix),Y`
1186
- :host {
1187
- --m-box-padding: ${Bt(yo.padding)};
1188
- --m-box-background-color: transparent;
1189
- --m-box-border-radius: ${Bt(yo.borderRadius)};
1190
- --m-box-border-width: ${Bt(yo.borderWidth)};
1191
- --m-box-border-color: ${Et(yo.borderColor)};
1192
- --m-box-text-align: ${X(yo.textAlign)};
1193
-
1194
- box-sizing: border-box;
1195
-
1196
- background-color: var(--m-box-background-color);
1197
- border-radius: var(--m-box-border-radius);
1198
- border-style: solid;
1199
- border-width: var(--m-box-border-width);
1200
- border-color: var(--m-box-border-color);
1201
- text-align: var(--m-box-text-align);
1202
- }
1203
- `],window.customElements.define("m-box",vo);const $o={gap:"spacing-4",align:"stretch",justify:"flex-start"};class wo extends ao{static get properties(){return{...super.properties,gap:{type:String},align:{type:String},justify:{type:String}}}constructor(){super(),this.gap=$o.gap,this.align=$o.align,this.justify=$o.justify}getCSSPropertiesPrefix(){return wo.CSSPropertiesPrefix}update(t){super.update(t),this.style.setProperty("--m-stack-gap",so(this.gap,$o.gap)),this.style.setProperty("--m-stack-align",this.align||$o.align),this.style.setProperty("--m-stack-justify",this.justify||$o.justify)}render(){return k`<slot></slot>`}}wo.CSSPropertiesPrefix="stack",wo.styles=[lo(wo.CSSPropertiesPrefix),Y`
1204
- :host {
1205
- --m-stack-gap: ${Bt($o.gap)};
1206
- --m-stack-align: ${X($o.align)};
1207
- --m-stack-justify: ${X($o.justify)};
1208
-
1209
- display: flex;
1210
- flex-direction: column;
1211
-
1212
- row-gap: var(--m-stack-gap);
1213
- align-items: var(--m-stack-align);
1214
- justify-content: var(--m-stack-justify);
1215
- }
1216
- `],window.customElements.define("m-stack",wo);const xo={gap:"spacing-4",minColumnWidth:kt("spacing-30")};class ko extends ao{static get properties(){return{...super.properties,gap:{type:String},rowGap:{type:String,attribute:"row-gap"},columnGap:{type:String,attribute:"column-gap"},minColumnWidth:{type:String,attribute:"min-column-width"}}}constructor(){super(),this.gap=xo.gap,this.minColumnWidth=xo.minColumnWidth}getCSSPropertiesPrefix(){return ko.CSSPropertiesPrefix}update(t){super.update(t),t.has("gap")&&this.style.setProperty("--m-grid-gap",so(this.gap,xo.gap)),t.has("rowGap")&&(this.rowGap?this.style.setProperty("--m-grid-row-gap",so(this.rowGap)):this.style.removeProperty("--m-grid-row-gap")),t.has("columnGap")&&(this.columnGap?this.style.setProperty("--m-grid-column-gap",so(this.columnGap)):this.style.removeProperty("--m-grid-column-gap")),t.has("minColumnWidth")&&this.style.setProperty("--m-grid-min-column-width",this.minColumnWidth||xo.minColumnWidth)}render(){return k`<slot></slot>`}}ko.CSSPropertiesPrefix="grid",ko.styles=[lo(ko.CSSPropertiesPrefix),Y`
1217
- :host {
1218
- --m-grid-gap: ${Bt(xo.gap)};
1219
- --m-grid-min-column-width: ${X(xo.minColumnWidth)};
1220
-
1221
- display: grid;
1222
-
1223
- row-gap: var(--m-grid-row-gap, var(--m-grid-gap));
1224
- column-gap: var(--m-grid-column-gap, var(--m-grid-gap));
1225
-
1226
- grid-template-columns: repeat(
1227
- auto-fit,
1228
- minmax(min(var(--m-grid-min-column-width), 100%), 1fr)
1229
- );
1230
- }
1231
- `],window.customElements.define("m-grid",ko);const zo={gap:"spacing-4",sideWidth:"auto",minContentWidth:"50%",reversed:!1};function So(t){return t?"row-reverse":"row"}class Co extends ao{static get properties(){return{...super.properties,gap:{type:String},sideWidth:{type:String,attribute:"side-width"},minContentWidth:{type:String,attribute:"min-content-width"},reversed:{type:Boolean}}}constructor(){super(),this.gap=zo.gap,this.sideWidth=zo.sideWidth,this.minContentWidth=zo.minContentWidth,this.reversed=zo.reversed}getCSSPropertiesPrefix(){return Co.CSSPropertiesPrefix}update(t){super.update(t),t.has("gap")&&this.style.setProperty("--m-sidebar-gap",so(this.gap,zo.gap)),t.has("sideWidth")&&this.style.setProperty("--m-sidebar-side-width",this.sideWidth||zo.sideWidth),t.has("minContentWidth")&&this.style.setProperty("--m-sidebar-min-content-width",this.minContentWidth||zo.minContentWidth),t.has("reversed")&&this.style.setProperty("--m-sidebar-flex-direction",So(this.reversed))}render(){return k`
1232
- <slot name="sidebar"></slot>
1233
- <slot name="content"></slot>
1234
- `}}Co.CSSPropertiesPrefix="sidebar",Co.styles=[lo(Co.CSSPropertiesPrefix),Y`
1235
- :host {
1236
- --m-sidebar-gap: ${Bt(zo.gap)};
1237
- --m-sidebar-flex-direction: ${X(So(zo.reversed))};
1238
- --m-sidebar-side-width: ${X(zo.sideWidth)};
1239
- --m-sidebar-min-content-width: ${X(zo.minContentWidth)};
1240
-
1241
- display: flex;
1242
- flex-wrap: wrap;
1243
- flex-direction: var(--m-sidebar-flex-direction);
1244
-
1245
- gap: var(--m-sidebar-gap);
1246
- }
1247
-
1248
- slot[name='sidebar']::slotted(*) {
1249
- flex-basis: var(--m-sidebar-side-width);
1250
- flex-grow: 1;
1251
- }
1252
-
1253
- slot[name='content']::slotted(*) {
1254
- flex-basis: 0;
1255
- flex-grow: 999;
1256
- min-width: var(--m-sidebar-min-content-width);
1257
- }
1258
- `],window.customElements.define("m-sidebar",Co);const Mo={gap:"spacing-4",threshold:"10rem"};class Wo extends ao{static get properties(){return{...super.properties,gap:{type:String},rowGap:{type:String,attribute:"row-gap"},columnGap:{type:String,attribute:"column-gap"},threshold:{type:String},limit:{type:Number}}}constructor(){super(),this.gap=Mo.gap,this.threshold=Mo.threshold}getCSSPropertiesPrefix(){return Wo.CSSPropertiesPrefix}update(t){super.update(t),t.has("gap")&&this.style.setProperty("--m-switcher-gap",so(this.gap,Mo.gap)),t.has("rowGap")&&(this.rowGap?this.style.setProperty("--m-switcher-row-gap",so(this.rowGap)):this.style.removeProperty("--m-switcher-row-gap")),t.has("columnGap")&&(this.columnGap?this.style.setProperty("--m-switcher-column-gap",so(this.columnGap)):this.style.removeProperty("--m-switcher-column-gap")),t.has("threshold")&&this.style.setProperty("--m-switcher-threshold",this.threshold||Mo.threshold)}render(){const t=this.limit?k`
1259
- <style>
1260
- ::slotted(*:nth-last-child(n + ${this.limit+1})) {
1261
- flex-basis: 100%;
1262
- }
1263
- ::slotted(*:nth-last-child(n + ${this.limit+1}) ~ *) {
1264
- flex-basis: 100%;
1265
- }
1266
- </style>
1267
- `:"";return k`
1268
- ${t}
1269
- <slot></slot>
1270
- `}}var Ao,jo,Bo;Wo.CSSPropertiesPrefix="switcher",Wo.styles=[lo(Wo.CSSPropertiesPrefix),Y`
1271
- :host {
1272
- --m-switcher-gap: ${Bt(Mo.gap)};
1273
- --m-switcher-threshold: ${X(Mo.threshold)};
1274
-
1275
- display: flex;
1276
- flex-wrap: wrap;
1277
-
1278
- row-gap: var(--m-switcher-row-gap, var(--m-switcher-gap));
1279
- column-gap: var(--m-switcher-column-gap, var(--m-switcher-gap));
1280
- }
1281
-
1282
- ::slotted(*) {
1283
- flex-basis: calc((var(--m-switcher-threshold) - 100%) * 999);
1284
- flex-grow: 1;
1285
- }
1286
- `],window.customElements.define("m-switcher",Wo);class Eo extends le{constructor(){super(),Ao.add(this),jo.set(this,void 0),e(this,jo,new _e(this,Fe,void 0,!0),"f")}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","header")}render(){return k`
1287
- <m-group gap="spacing-6" align="center">
1288
- <m-group gap="spacing-1" align="center" style="flex-grow: 1;">
1289
- ${t(this,Ao,"a",Bo)}
1290
- <h1><slot></slot></h1>
1291
- </m-group>
1292
- <slot name="close"></slot>
1293
- </m-group>
1294
- `}}jo=new WeakMap,Ao=new WeakSet,Bo=function(){const{value:e}=t(this,jo,"f");let o,i;switch(null==e?void 0:e.variant){case"danger":o="attention",i="color-danger-60";break;case"warning":o="alert-circle",i="color-warning-60";break;case"success":o="check",i="color-success-60";break;default:return C}return k`
1295
- <m-icon name=${o} color=${i} size="24" aria-hidden="true"></m-icon>
1296
- `},Eo.styles=[Y`
1297
- h1 {
1298
- margin: 0;
1299
- padding: 0;
1300
-
1301
- ${It("heading-md-bold")};
1302
- }
1303
- `],window.customElements.define("m-dialog-header",Eo);class To extends dt{render(){return k` <hr class="m-divider" /> `}}To.styles=[Y`
1304
- .m-divider {
1305
- border: 0;
1306
- border-block-end: solid 1px ${Et("color-divider")};
1307
- margin-block-start: var(
1308
- --m-divider-margin-top,
1309
- var(--m-divider-margin-y, 0)
1310
- );
1311
- margin-block-end: var(
1312
- --m-divider-margin-bottom,
1313
- var(--m-divider-margin-y, 0)
1314
- );
1315
- }
1316
- `],window.customElements.define("m-divider",To);const Ro="field";var Po,_o,Oo,Do,Uo;class qo extends le{static get properties(){return{status:{type:String},slot:{type:String}}}constructor(){super(),Po.add(this),this.field=new _e(this,Ro,void 0,!0),this.slot="hint"}render(){const e={"-status-default":"default"===t(this,Po,"m",_o).call(this),"-status-danger":"danger"===t(this,Po,"m",_o).call(this)};return k` <m-group
1317
- gap="spacing-0-5"
1318
- align="center"
1319
- class=${mt(e)}
1320
- >
1321
- <slot name="leading"
1322
- >${"danger"===t(this,Po,"m",_o).call(this)?k`<m-icon
1323
- name="attention"
1324
- size="10"
1325
- color="color-danger-60"
1326
- ></m-icon>`:C}</slot
1327
- >
1328
- <span
1329
- class=${mt({hint:!0,...e})}
1330
- ><slot></slot>
1331
- </span>
1332
- </m-group>`}}Po=new WeakSet,_o=function(){var t;return this.status||(null===(t=this.field.value)||void 0===t?void 0:t.status)},qo.styles=[[Y`
1333
- :host {
1334
- --m-field-hint-color: ${Et("color-text-tertiary")};
1335
- }
1336
-
1337
- m-group {
1338
- ${Ut(Bt("spacing-2"))};
1339
- }
1340
-
1341
- .-status-danger {
1342
- --m-field-hint-color: ${Et("color-danger-60")};
1343
- }
1344
-
1345
- .hint {
1346
- ${It("body-sm")};
1347
- color: var(--m-field-hint-color);
1348
- }
1349
- `]],window.customElements.define("m-field-hint",qo);class Lo extends le{static get properties(){return{required:{type:Boolean},size:{type:String},slot:{type:String}}}constructor(){super(),Oo.add(this),this.field=new _e(this,Ro,void 0,!0),this.slot="hint"}render(){return k`<label
1350
- class=${mt({label:!0,"-size-default":"default"===t(this,Oo,"m",Do).call(this),"-size-small":"small"===t(this,Oo,"m",Do).call(this)})}
1351
- ><slot></slot>
1352
- ${t(this,Oo,"m",Uo).call(this)?k`<span class="required">*</span>`:C}
1353
- </label>`}}Oo=new WeakSet,Do=function(){var t;return this.size||(null===(t=this.field.value)||void 0===t?void 0:t.size)},Uo=function(){var t;return null!=this.required?this.required:Boolean(null===(t=this.field.value)||void 0===t?void 0:t.required)},Lo.styles=[[Y`
1354
- :host {
1355
- display: flex;
1356
- align-items: center;
1357
- justify-content: flex-start;
1358
- gap: ${Bt("spacing-0-5")};
1359
- }
1360
-
1361
- .label {
1362
- ${It("body-md")};
1363
-
1364
- display: inline-flex;
1365
- align-items: center;
1366
- justify-content: flex-start;
1367
-
1368
- margin: 0;
1369
- padding: 0;
1370
-
1371
- color: ${Et("color-text-tertiary")};
1372
- }
1373
-
1374
- .required {
1375
- ${It("body-md")};
1376
-
1377
- color: ${Et("color-text-error")};
1378
-
1379
- content: '*';
1380
-
1381
- ${Pt(Bt("spacing-1"))};
1382
- }
1383
-
1384
- .label.-size-small,
1385
- .label.-size-small .required {
1386
- ${It("body-sm")};
1387
- }
1388
- `]],window.customElements.define("m-field-label",Lo),Le();class No extends le{static get properties(){return{label:{type:String},hint:{type:String},required:{type:Boolean},status:{type:String},size:{type:String},align:{type:String}}}constructor(){super(),this.provider=new Ue(this,Ro,{required:!1,size:"default",status:"default"}),this.required=!1,this.status="default",this.size="default",this.align="stretch"}update(t){super.update(t),(t.has("required")||t.has("status")||t.has("size"))&&this.provider.setValue({required:this.required,status:this.status,size:this.size})}render(){return k`<m-stack gap="spacing-1" align="${this.align}">
1389
- ${this.label?k`<m-field-label>${this.label}</m-field-label>`:k`<slot name="label"></slot>`}
1390
-
1391
- <slot></slot>
1392
-
1393
- ${this.hint?k`<m-field-hint>${this.hint}</m-field-hint>`:k`<slot name="hint"></slot>`}
1394
- </m-stack>`}}window.customElements.define("m-field",No);const Fo=["default","danger"];var Io,Go,Vo;class Ho extends dt{static get properties(){return{variant:{type:String,reflect:!0},value:{type:Number,reflect:!0},max:{type:Number,reflect:!0}}}constructor(){super(),Io.add(this),this.variant="default",this.value=0,this.max=100}connectedCallback(){super.connectedCallback(),this.setAttribute("role","progressbar"),this.setAttribute("aria-valuemin","0")}updated(){this.setAttribute("aria-valuenow",String(this.value)),this.setAttribute("aria-valuemax",String(this.max))}get percentage(){return 100*t(this,Io,"a",Vo)/t(this,Io,"a",Go)}get currentVariant(){return this.variant}render(){return k`
1395
- <div class="bar">
1396
- <span
1397
- class=${mt({progress:!0,"-default":"default"===this.currentVariant,"-success":"success"===this.currentVariant,"-warning":"warning"===this.currentVariant,"-danger":"danger"===this.currentVariant})}
1398
- style=${we({width:`${this.percentage}%`})}
1399
- ></span>
1400
- </div>
1401
- `}}Io=new WeakSet,Go=function(){return this.max<=0?100:this.max},Vo=function(){return e=this.value,o=0,i=t(this,Io,"a",Go),Math.min(Math.max(o,e),i);var e,o,i},Ho.styles=[Y`
1402
- .bar {
1403
- display: flex;
1404
- flex-grow: 0;
1405
- flex-shrink: 1;
1406
- align-items: center;
1407
- justify-content: center;
1408
-
1409
- position: relative;
1410
- overflow: hidden;
1411
-
1412
- width: 100%;
1413
- height: ${he("8px")};
1414
-
1415
- border-radius: ${Bt("border-radius-s")};
1416
- background-color: ${Et("color-background-tertiary")};
1417
- }
1418
-
1419
- .progress {
1420
- position: absolute;
1421
- top: 0;
1422
- left: 0;
1423
-
1424
- ${Ft([{property:"width"},{property:"background"}])};
1425
-
1426
- height: ${he("8px")};
1427
-
1428
- border-radius: ${Bt("border-radius-s")};
1429
-
1430
- background: var(--m-progress-bar-progress-background);
1431
- }
1432
-
1433
- .-default {
1434
- --m-progress-bar-progress-background: linear-gradient(
1435
- 45deg,
1436
- ${Et("color-brand-accent-1")} 22%,
1437
- ${Et("color-brand-accent-2")} 88%
1438
- );
1439
- }
1440
-
1441
- .-success {
1442
- --m-progress-bar-progress-background: ${Et("color-success-60")};
1443
- }
1444
-
1445
- .-warning {
1446
- --m-progress-bar-progress-background: ${Et("color-warning-60")};
1447
- }
1448
-
1449
- .-danger {
1450
- --m-progress-bar-progress-background: ${Et("color-danger-60")};
1451
- }
1452
- `],window.customElements.define("m-progress-bar",Ho);class Jo extends Ho{get currentVariant(){return this.percentage>=66?"success":this.percentage>=33?"warning":"danger"}}window.customElements.define("m-progress-bar-countdown",Jo);const Xo="m-check";var Yo,Zo,Ko,Qo,ti;class ei extends dt{static get properties(){return{value:{type:String},disabled:{type:Boolean,reflect:!0},checked:{type:Boolean,reflect:!0}}}constructor(){super(),Yo.add(this),Ko.set(this,(t=>{if(this.disabled)return t.preventDefault(),void t.stopPropagation();const e={detail:{value:this.value,type:"select"},bubbles:!0,composed:!1};this.dispatchEvent(new CustomEvent(Xo,e))})),Qo.set(this,(()=>{this.setAttribute("aria-disabled",String(this.disabled))})),ti.set(this,(()=>{this.setAttribute("aria-checked",String(this.checked))})),this.disabled=!1,this.checked=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","radio"),this.addEventListener("click",t(this,Ko,"f"))}updated(e){super.updated(e),e.has("disabled")&&t(this,Qo,"f").call(this),e.has("checked")&&t(this,ti,"f").call(this)}render(){return k`
1453
- <button
1454
- type="button"
1455
- class="radio-button"
1456
- role="radio"
1457
- ?disabled=${this.disabled}
1458
- aria-checked=${this.checked}
1459
- >
1460
- <span class="radio-input"></span>
1461
- <slot name="leading"></slot>
1462
- <slot></slot>
1463
- </button>
1464
- `}focus(e){var o;null===(o=t(this,Yo,"a",Zo))||void 0===o||o.focus(e)}}Ko=new WeakMap,Qo=new WeakMap,ti=new WeakMap,Yo=new WeakSet,Zo=function(){var t,e;return null!==(e=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector("button"))&&void 0!==e?e:null},ei.styles=[Y`
1465
- :host {
1466
- --m-radio-border-color: ${Et("color-border")};
1467
- --m-radio-dot-check-color: ${Et("color-primary-60")};
1468
- --m-radio-size: 14px;
1469
- --m-radio-background-color: white;
1470
- --m-radio-border-width: ${Bt("border-thin")};
1471
- --m-radio-label-color: ${Et("color-text-tertiary")};
1472
- --m-radio-outline-color: ${Et("color-primary-60")};
1473
- --m-radio-outline-offset: 2px;
1474
- }
1475
-
1476
- .radio-button {
1477
- ${It("body-md")};
1478
- color: var(--m-radio-label-color);
1479
-
1480
- border: none;
1481
- background: none;
1482
-
1483
- height: ${Bt("global-height-small")};
1484
- display: inline-flex;
1485
- gap: ${Bt("spacing-1")};
1486
- align-items: center;
1487
- border-radius: ${Bt("border-radius-s")};
1488
- ${Ft({property:"color"})};
1489
- }
1490
-
1491
- ${Vt.focus(".radio-button")} {
1492
- outline: 1px solid var(--m-radio-outline-color);
1493
- outline-offset: var(--m-radio-outline-offset);
1494
- }
1495
-
1496
- .radio-button .radio-input {
1497
- width: var(--m-radio-size);
1498
- height: var(--m-radio-size);
1499
- background-color: var(--m-radio-background-color);
1500
- border-color: var(--m-radio-border-color);
1501
- border-width: var(--m-radio-border-width);
1502
- border-style: solid;
1503
- border-radius: 50%;
1504
- position: relative;
1505
- display: inline-flex;
1506
-
1507
- ${Ft({property:"border-color"})};
1508
- }
1509
-
1510
- .radio-button .radio-input::before {
1511
- content: '';
1512
- width: 0;
1513
- height: 0;
1514
- border-radius: 50%;
1515
- transform: translate(-50%, -50%);
1516
- top: 50%;
1517
- left: 50%;
1518
- display: block;
1519
- position: absolute;
1520
- ${Ft([{property:"background-color"},{property:"height",duration:"120ms"},{property:"width",duration:"120ms"}])};
1521
- }
1522
-
1523
- .radio-button[aria-checked='true'] .radio-input::before {
1524
- width: 10px;
1525
- height: 10px;
1526
- }
1527
-
1528
- ${Gt(".radio-button")} {
1529
- cursor: default;
1530
- --m-radio-label-color: ${Et("color-neutral-40")};
1531
- --m-radio-background-color: ${Et("color-background-tertiary")};
1532
- }
1533
-
1534
- ${Gt('.radio-button[aria-checked="true"]',".radio-input")} {
1535
- --m-radio-border-color: ${Et("color-border")};
1536
- }
1537
-
1538
- ${Gt(".radio-button",".radio-input::before")} {
1539
- --m-radio-dot-check-color: ${Et("color-neutral-40")};
1540
- }
1541
-
1542
- .radio-button .radio-input::before {
1543
- background-color: var(--m-radio-dot-check-color);
1544
- }
1545
-
1546
- .radio-button[aria-checked='true'] .radio-input {
1547
- --m-radio-dot-check-color: ${Et("color-primary-60")};
1548
- --m-radio-border-color: ${Et("color-primary-60")};
1549
- }
1550
-
1551
- .radio-button .radio-input {
1552
- --m-radio-border-color: ${Et("color-border")};
1553
- }
1554
-
1555
- ${Vt.hover(".radio-button")} .radio-input {
1556
- --m-radio-border-color: ${Et("color-primary-100")};
1557
- --m-radio-dot-check-color: ${Et("color-primary-100")};
1558
- }
1559
-
1560
- ${Vt.hover(".radio-button")} {
1561
- --m-radio-label-color: ${Et("color-text-primary")};
1562
- }
1563
-
1564
- ${Gt(".radio-button","*")} {
1565
- pointer-event: none;
1566
- }
1567
- `],window.customElements.define("m-radio",ei);var oi,ii={};Object.defineProperty(ii,"i",{value:!0});var ri=Tt;const ni=(t,e)=>{const o=ri(t);if(0===o.length)return e;const i=new Set;return i.add(String(o.at(-1))),i},si=(t,e)=>{const o=ri(t);if(0===o.length)return e;const i=new Set(e);for(const t of o)i.add(String(t));return i},ai={type:"single",init:t=>ni(t,new Set),select:ni,unselect(t,e){const o=ri(t);if(0===o.length||0===e.size)return e;const i=new Set(e);for(const t of o)i.delete(String(t));return i},toggle(t,e){const o=ri(t);if(0===o.length)return e;const i=new Set;for(const t of o){const o=String(t);e.has(o)||(i.clear(),i.add(o))}return i},reset:t=>null==t?new Set:t,value(t){if(null==t||0===t.size)return null;const[e]=Array.from(t);return e}},li={type:"single-strict",init:t=>ni(t,new Set),select:ni,unselect(t,e){const o=ri(t);if(0===o.length||0===e.size)return e;const i=new Set(e);for(let t=0;t<o.length&&e.size>1;t++)i.delete(String(o[t]));return i},toggle(t,e){const o=ri(t);if(0===o.length)return e;const i=new Set(e);for(const t of o){const o=String(t);e.has(o)||(i.clear(),i.add(o))}return i},reset:t=>null==t?new Set:t,value(t){if(null==t||0===t.size)return null;const[e]=Array.from(t);return e}},ci={type:"multiple",init:t=>si(t,new Set),select:si,unselect(t,e){const o=ri(t);if(0===o.length||0===e.size)return e;const i=new Set(e);for(const t of o)i.delete(String(t));return i},toggle(t,e){const o=ri(t);if(0===o.length)return e;const i=new Set(e);for(const t of o){const o=String(t);e.has(o)?i.delete(o):i.add(o)}return i},reset:t=>null==t?new Set:t,value:t=>null==t||0===t.size?null:Array.from(t)};var di,hi,ui,pi,bi,gi,mi,fi,yi;ii.SELECTION_TYPES=["single","single-strict","multiple"],oi=ii.default=function(t){const{type:e="multiple"}=t;return"single"===e?ai:"single-strict"===e?li:ci};class vi{constructor(e,o,i){di.add(this),this.disabled=!1,this.event="m-select",hi.set(this,(t=>{if(this.disabled)return;if(null==this.type)return;const{detail:{type:e,value:o}}=t;switch(e){case"select":this.select(Rt(o));break;case"unselect":this.unselect(Rt(o));break;case"toggle":this.toggle(Rt(o))}})),this.init=t=>{this.host.selection=this.strategy.init(t)},this.select=e=>{this.host.selection=this.strategy.select(e,this.host.selection),t(this,di,"m",ui).call(this)},this.unselect=e=>{this.host.selection=this.strategy.unselect(e,this.host.selection),t(this,di,"m",ui).call(this)},this.toggle=e=>{this.host.selection=this.strategy.toggle(e,this.host.selection),t(this,di,"m",ui).call(this)},this.subscribe=()=>{this.host.addEventListener(this.event,t(this,hi,"f"))},this.unsubscribe=()=>{this.host.removeEventListener(this.event,t(this,hi,"f"))},this.host=e,this.type=o,this.event=i,this.strategy=oi({type:o}),this.host.addController(this)}hostConnected(){this.subscribe()}hostDisconnected(){this.unsubscribe()}hostUpdate(){null!=this.host.type&&this.host.type!==this.type&&(this.unsubscribe(),this.host.removeController(this))}}hi=new WeakMap,di=new WeakSet,ui=function(){const t={detail:{type:this.type,value:this.strategy.value(this.host.selection)},bubbles:!0,composed:!1};this.host.dispatchEvent(new CustomEvent("m-change",t))};class $i extends dt{static get properties(){return{value:{type:String,reflect:!0},disabled:{type:Boolean,reflect:!0},selection:{state:!0},orientation:{type:String}}}constructor(){super(),pi.set(this,null),bi.set(this,null),gi.set(this,(()=>{var e;return null===(e=t(this,mi,"f").call(this)[0])||void 0===e?void 0:e.value})),mi.set(this,(()=>{var o,i,r;e(this,bi,null!==(o=t(this,bi,"f"))&&void 0!==o?o:this.shadowRoot&&this.shadowRoot.querySelector("slot"),"f");return[...null!==(r=null===(i=t(this,bi,"f"))||void 0===i?void 0:i.assignedElements({flatten:!0}))&&void 0!==r?r:[]].filter((t=>"m-radio"===t.tagName.toLowerCase()))})),fi.set(this,(t=>{t.checked=this.selection.has(t.value)})),yi.set(this,(t=>{t.disabled=this.disabled})),this.disabled=!1,this.selection=new Set,this.value="",this.orientation="vertical",this.type="single-strict"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","radio-group"),e(this,pi,new vi(this,this.type,Xo),"f")}update(e){super.update(e),e.has("value")&&t(this,pi,"f")&&t(this,pi,"f").init(Rt(this.value||t(this,gi,"f").call(this))),e.has("selection")&&([this.value]=this.selection)}updated(e){super.updated(e),e.has("selection")&&t(this,mi,"f").call(this).forEach((e=>{t(this,fi,"f").call(this,e)})),e.has("disabled")&&t(this,mi,"f").call(this).forEach((e=>{t(this,yi,"f").call(this,e)}))}render(){return k`
1568
- <div
1569
- class=${mt({"radio-group":!0,"-vertical":"vertical"===this.orientation,"-horizontal":"horizontal"===this.orientation})}
1570
- >
1571
- <slot></slot>
1572
- </div>
1573
- `}}pi=new WeakMap,bi=new WeakMap,gi=new WeakMap,mi=new WeakMap,fi=new WeakMap,yi=new WeakMap,$i.styles=[Y`
1574
- .radio-group {
1575
- display: flex;
1576
- gap: ${Bt("spacing-2")};
1577
- }
1578
- .radio-group.-vertical {
1579
- flex-direction: column;
1580
- }
1581
- .radio-group.-horizontal {
1582
- flex-direction: row;
1583
- }
1584
- `],window.customElements.define("m-radio-group",$i);const wi="tabs",xi="m-select-tab";var ki,zi,Si,Ci,Mi,Wi,Ai,ji,Bi,Ei,Ti,Ri,Pi,_i,Oi,Di,Ui,qi,Li,Ni;class Fi extends le{static get properties(){return{activeTab:{type:String,attribute:"active-tab",reflect:!0},disabled:{type:Boolean,reflect:!0},lazy:{type:Boolean},selection:{state:!0},tabContentDirection:{type:String,attribute:"tab-content-direction"}}}constructor(){super(),ki.set(this,null),zi.set(this,null),this.provider=new Ue(this,wi,{tabContentDirection:"horizontal",disabled:!1,lazy:!1,selection:new Set("")}),Si.set(this,(t=>{t.stopPropagation();const[e]=Array.from(this.selection),o={detail:{value:String(e)}};this.emit("m-tab-change",o)})),Ci.set(this,(()=>{var e;return null===(e=t(this,Mi,"f").call(this)[0])||void 0===e?void 0:e.name})),Mi.set(this,(()=>{var o,i,r;e(this,zi,null!==(o=t(this,zi,"f"))&&void 0!==o?o:this.shadowRoot&&this.shadowRoot.querySelector("slot"),"f");return[...null!==(r=null===(i=t(this,zi,"f"))||void 0===i?void 0:i.assignedElements({flatten:!0}))&&void 0!==r?r:[]].filter((t=>"m-tab"===t.tagName.toLowerCase()))})),this.activeTab="",this.tabContentDirection="horizontal",this.disabled=!1,this.lazy=!1,this.type="single-strict",this.selection=new Set}connectedCallback(){super.connectedCallback(),e(this,ki,new vi(this,this.type,xi),"f"),this.addEventListener("m-change",t(this,Si,"f"))}update(e){super.update(e),e.has("activeTab")&&t(this,ki,"f")&&t(this,ki,"f").init(Rt(this.activeTab||t(this,Ci,"f").call(this)));const[o]=Array.from(this.selection);!e.has("selection")||this.activeTab&&o===this.activeTab||(this.activeTab=o),(e.has("tabContentDirection")||e.has("disabled")||e.has("lazy")||e.has("selection"))&&this.provider.setValue({tabContentDirection:this.tabContentDirection,disabled:this.disabled,lazy:this.lazy,selection:this.selection})}render(){return k`
1585
- <div class="tablist" role="tablist"><slot name="tab"></slot></div>
1586
- <slot></slot>
1587
- `}}ki=new WeakMap,zi=new WeakMap,Si=new WeakMap,Ci=new WeakMap,Mi=new WeakMap,Fi.styles=[Y`
1588
- :host {
1589
- --m-tabs-border-width: ${Bt("border-thin")};
1590
- --m-tabs-border-color: ${Et("color-divider")};
1591
- }
1592
-
1593
- .tablist {
1594
- display: flex;
1595
- flex-direction: row;
1596
- gap: 1px;
1597
- border-bottom-style: solid;
1598
- border-bottom-width: var(--m-tabs-border-width);
1599
- border-bottom-color: var(--m-tabs-border-color);
1600
- }
1601
- `],window.customElements.define("m-tabs",Fi);class Ii extends le{static get properties(){return{name:{type:String},disabled:{type:Boolean,reflect:!0},slot:{type:String,reflect:!0}}}constructor(){super(),Wi.add(this),this.tabs=new _e(this,wi,void 0,!0),ji.set(this,(t=>{if(this.disabled)return t.preventDefault(),void t.stopPropagation();const e={detail:{value:this.name,type:"select"},bubbles:!0,composed:!1};this.emit(xi,e)})),Bi.set(this,(()=>{var t;return null===(t=this.tabs.value)||void 0===t?void 0:t.tabContentDirection})),Ei.set(this,(()=>{var t;return Boolean(null===(t=this.tabs.value)||void 0===t?void 0:t.selection.has(this.name))})),Ti.set(this,(()=>{var t;return this.disabled||Boolean(null===(t=this.tabs.value)||void 0===t?void 0:t.disabled)})),this.disabled=!1}connectedCallback(){super.connectedCallback(),this.id=`${this.name}-tab`,this.setAttribute("slot","tab"),this.setAttribute("role","tab"),this.setAttribute("aria-controls",`${this.name}-panel`),this.setAttribute("aria-selected","false"),this.addEventListener("click",t(this,ji,"f"))}updated(e){super.updated(e),t(this,Ei,"f").call(this)?this.setAttribute("aria-selected","true"):this.setAttribute("aria-selected","false"),e.has("name")&&(this.id=`${this.name}-tab`,this.setAttribute("aria-controls",`${this.name}-panel`)),e.has("disabled")&&this.setAttribute("aria-disabled",String(this.disabled))}render(){return k`
1602
- <button
1603
- type="button"
1604
- class=${mt({tab:!0,"-vertical":"vertical"===t(this,Bi,"f").call(this),"-horizontal":"horizontal"===t(this,Bi,"f").call(this)})}
1605
- ?disabled=${t(this,Ti,"f").call(this)}
1606
- aria-selected=${t(this,Ei,"f").call(this)}
1607
- >
1608
- <slot name="leading"></slot>
1609
- <slot></slot>
1610
- </button>
1611
- `}focus(e){var o;null===(o=t(this,Wi,"a",Ai))||void 0===o||o.focus(e)}}ji=new WeakMap,Bi=new WeakMap,Ei=new WeakMap,Ti=new WeakMap,Wi=new WeakSet,Ai=function(){var t,e;return null!==(e=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector("button"))&&void 0!==e?e:null},Ii.styles=[Y`
1612
- :host {
1613
- --m-tab-border-width: ${Bt("border-thin")};
1614
- --m-tab-border-color: ${Et("color-divider")};
1615
- --m-tab-border-radius: ${Bt("border-radius-s")};
1616
- --m-tab-background-color: none;
1617
- --m-tab-label-color: ${Et("color-text-tertiary")};
1618
- --m-tab-leading-color: ${Et("color-text-tertiary")};
1619
-
1620
- --m-tab-outline-color: ${Et("color-primary-60")};
1621
-
1622
- --m-tab-padding-x: ${Bt("spacing-6")};
1623
- --m-tab-height: ${Bt("spacing-12")};
1624
- }
1625
-
1626
- .tab {
1627
- cursor: pointer;
1628
- position: relative;
1629
- padding-bottom: 1px;
1630
- bottom: -1px;
1631
- display: inline-flex;
1632
- align-items: center;
1633
- justify-content: center;
1634
- gap: ${Bt("spacing-3")};
1635
- height: var(--m-tab-height);
1636
- padding-inline: var(--m-tab-padding-x);
1637
-
1638
- ${It("body-md")};
1639
- color: var(--m-tab-label-color);
1640
-
1641
- background-color: var(--m-tab-background-color);
1642
- border: none;
1643
- border-bottom-style: solid;
1644
- border-bottom-width: var(--m-tab-border-width);
1645
- border-bottom-color: var(--m-tab-border-color);
1646
- border-top-left-radius: var(--m-tab-border-radius);
1647
- border-top-right-radius: var(--m-tab-border-radius);
1648
-
1649
- @media (prefers-reduced-motion: no-preference) {
1650
- ${Ft([{property:"background-color"},{property:"border-color"},{property:"color"}])};
1651
- }
1652
- }
1653
- .tab.-vertical {
1654
- flex-direction: column;
1655
- --m-tab-height: ${Bt("spacing-20")};
1656
- }
1657
- .tab.-horizontal {
1658
- flex-direction: row;
1659
- }
1660
-
1661
- slot[name='leading']::slotted(*) {
1662
- color: var(--m-tab-leading-color);
1663
- }
1664
-
1665
- ${Vt.hover(".tab")} {
1666
- --m-tab-background-color: ${Et("color-background-tertiary")};
1667
- }
1668
-
1669
- ${Vt.focus(".tab")} {
1670
- outline: 1px solid var(--m-tab-outline-color);
1671
- }
1672
-
1673
- .tab[aria-selected='true'] {
1674
- --m-tab-border-width: ${Bt("border-medium")};
1675
- --m-tab-border-color: ${Et("color-primary-60")};
1676
- --m-tab-label-color: ${Et("color-text-secondary")};
1677
- --m-tab-leading-color: ${Et("color-primary-60")};
1678
- padding-bottom: 0;
1679
- }
1680
-
1681
- ${Gt(".tab")} {
1682
- cursor: default;
1683
- --m-tab-label-color: ${Et("color-text-disabled")};
1684
- --m-tab-leading-color: ${Et("color-text-disabled")};
1685
- --m-tab-border-color: ${Et("color-divider")};
1686
- }
1687
-
1688
- ${Gt(".tab","*")} {
1689
- pointer-events: none;
1690
- }
1691
- `],window.customElements.define("m-tab",Ii);class Gi extends(Pi=vo){static get properties(){return{...super.properties,forTab:{type:String,attribute:"for-tab"},lazy:{type:Boolean}}}constructor(){super(),this.tabs=new _e(this,wi,void 0,!0),_i.set(this,(()=>{var t;return Boolean(null===(t=this.tabs.value)||void 0===t?void 0:t.selection.has(this.forTab))})),Oi.set(this,(()=>{var t;return this.lazy||Boolean(null===(t=this.tabs.value)||void 0===t?void 0:t.lazy)})),this.lazy=!1,this.padding="none",this.paddingY="spacing-8"}connectedCallback(){super.connectedCallback(),this.id=`${this.forTab}-panel`,this.setAttribute("role","tabpanel"),this.setAttribute("aria-labelledby",`${this.forTab}-tab`)}updated(e){super.updated(e),t(this,_i,"f").call(this)?(this.style.setProperty("--m-tab-panel-display","block"),this.removeAttribute("aria-hidden")):(this.style.setProperty("--m-tab-panel-display","none"),this.setAttribute("aria-hidden","true")),e.has("forTab")&&(this.id=`${this.forTab}-panel`,this.setAttribute("aria-labelledby",`${this.forTab}-tab`))}render(){return t(this,Oi,"f").call(this)&&!t(this,_i,"f").call(this)?k``:k`<slot></slot>`}}Ri=Gi,_i=new WeakMap,Oi=new WeakMap,Gi.styles=[...Reflect.get(Pi,"styles",Ri),Y`
1692
- :host {
1693
- --m-tab-panel-display: none;
1694
-
1695
- display: var(--m-tab-panel-display);
1696
- }
1697
- `],window.customElements.define("m-tab-panel",Gi);class Vi extends dt{static get properties(){return{variant:{type:String},size:{type:String},isSkeleton:{type:Boolean,attribute:"is-skeleton"}}}constructor(){super(),this.variant="neutral",this.size="default",this.isSkeleton=!1}render(){return k`
1698
- <span
1699
- class=${mt({tag:!0,"-success":"success"===this.variant,"-neutral":"neutral"===this.variant,"-warning":"warning"===this.variant,"-danger":"danger"===this.variant,"-is-skeleton":this.isSkeleton,"-size-small":"small"===this.size,"-size-default":"default"===this.size,"-size-large":"large"===this.size})}
1700
- >
1701
- ${this.isSkeleton?k``:k`<slot name="leading"></slot>`}
1702
- <slot></slot>
1703
- </span>
1704
- `}}Vi.styles=[[Y`
1705
- @keyframes skeleton-loading {
1706
- 0% {
1707
- background-color: ${Et("color-background-tertiary")};
1708
- opacity: 0.3;
1709
- }
1710
- 50% {
1711
- background-color: ${Et("color-background-tertiary")};
1712
- opacity: 0.6;
1713
- }
1714
- 100% {
1715
- background-color: ${Et("color-background-tertiary")};
1716
- }
1717
- }
1718
- `,Y`
1719
- :host {
1720
- --m-tag-skeleton-width: 100px;
1721
- }
1722
- .tag {
1723
- display: inline-block;
1724
- white-space: nowrap;
1725
- overflow: hidden;
1726
- text-overflow: ellipsis;
1727
- box-sizing: border-box;
1728
- max-width: 200px;
1729
- border-radius: 100px;
1730
- line-height: ${Bt("line-height-1")};
1731
- cursor: default;
1732
- }
1733
-
1734
- .tag slot[name='leading']::slotted(*) {
1735
- margin-inline-end: ${Bt("spacing-1")};
1736
- vertical-align: middle;
1737
- }
1738
-
1739
- .-size-small {
1740
- ${It("chips-sm")};
1741
- padding: ${Bt("spacing-1")} ${Bt("spacing-2")};
1742
- block-size: ${he("18px")};
1743
- }
1744
- .-size-default {
1745
- ${It("chips-md")};
1746
- padding: ${Bt("spacing-2")} ${Bt("spacing-3")};
1747
- block-size: ${Bt("global-height-small")};
1748
- }
1749
- .-size-large {
1750
- ${It("button-lg")};
1751
- padding: ${Bt("spacing-3")} ${Bt("spacing-4")};
1752
- block-size: ${Bt("global-height-default")};
1753
- }
1754
-
1755
- .-success {
1756
- color: ${Et("color-success-60")};
1757
- background: ${Et("color-success-20")};
1758
- }
1759
- .-neutral {
1760
- color: ${Et("color-text-tertiary")};
1761
- background: ${Et("color-background-tertiary")};
1762
- }
1763
- .-warning {
1764
- color: ${Et("color-warning-100")};
1765
- background: ${Et("color-warning-20")};
1766
- }
1767
- .-danger {
1768
- color: ${Et("color-danger-60")};
1769
- background: ${Et("color-danger-20")};
1770
- }
1771
-
1772
- .-is-skeleton {
1773
- ${X("animation: skeleton-loading 1s linear infinite alternate;")};
1774
- width: var(--m-tag-skeleton-width);
1775
- }
1776
- `]],window.customElements.define("m-tag",Vi);class Hi extends le{static get properties(){return{clearable:{type:Boolean},disabled:{type:Boolean,reflect:!0},max:{type:String},maxLength:{type:Number,reflect:!0,attribute:"max-length"},min:{type:String},minLength:{type:Number,reflect:!0,attribute:"min-length"},pattern:{type:String},placeholder:{type:String},readOnly:{type:Boolean,reflect:!0,attribute:"read-only"},size:{type:String},status:{type:String},step:{type:String},type:{type:String},value:{type:String}}}constructor(){super(),Di.add(this),this.inputElement=null,this.field=new _e(this,Ro,void 0,!0),Li.set(this,(t=>{this.value=t.target.value,this.reemit(t)})),Ni.set(this,(t=>{t.stopPropagation(),this.clear()})),this.clearable=!1,this.disabled=!1,this.placeholder=void 0,this.size="default",this.type="text",this.value=void 0,this.max=""}connectedCallback(){super.connectedCallback(),this.setAttribute("role","textbox")}render(){return k`
1777
- <div
1778
- class=${mt({container:!0,"-size-small":"small"===this.size,"-size-default":"default"===this.size,"-size-large":"large"===this.size,"is-disabled":Boolean(this.disabled),"-status-default":"default"===t(this,Di,"m",qi).call(this),"-status-danger":"danger"===t(this,Di,"m",qi).call(this)})}
1779
- >
1780
- <slot name="leading"></slot>
1781
- <input
1782
- id="${ut(this.id)}"
1783
- type="${ut(this.type)}"
1784
- class="text-field"
1785
- aria-disabled=${this.disabled?"true":"false"}
1786
- ?disabled="${this.disabled}"
1787
- ?readonly=${this.readOnly}
1788
- max=${this.max||C}
1789
- maxlength=${null!=this.maxLength&&this.maxLength>-1?this.maxLength:C}
1790
- min=${this.min||C}
1791
- minlength=${null!=this.minLength&&this.minLength>-1?this.minLength:C}
1792
- pattern=${ut(this.pattern)}
1793
- placeholder="${ut(this.placeholder)}"
1794
- step=${this.step||C}
1795
- value="${ut(this.value)}"
1796
- @change=${this.reemit}
1797
- @input=${t(this,Li,"f")}
1798
- />
1799
- ${this.clearable?k`<m-close-button
1800
- class=${mt({clear:!0,"is-visible":t(this,Di,"m",Ui).call(this)})}
1801
- controls="${ut(this.id)}"
1802
- @m-close=${t(this,Ni,"f")}
1803
- label="Clear input"
1804
- ></m-close-button>`:C}
1805
- <slot name="trailing"></slot>
1806
- </div>
1807
- `}get input(){var t,e;return null==this.inputElement&&(this.inputElement=null!==(e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("input"))&&void 0!==e?e:null),this.inputElement}clear(){this.value="",this.input&&(this.input.value=""),this.emit("m-clear"),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}Li=new WeakMap,Ni=new WeakMap,Di=new WeakSet,Ui=function(){const t=this.value||"";return!this.disabled&&t.length>0},qi=function(){var t;return this.status||(null===(t=this.field.value)||void 0===t?void 0:t.status)},Hi.styles=[Y`
1808
- :host {
1809
- --m-text-field-background-color: transparent;
1810
- --m-text-field-border-color: ${Et("color-border")};
1811
- --m-text-field-height: ${Bt("global-height-default")};
1812
- --m-text-field-outline-color: ${Et("color-primary-100")};
1813
- --m-text-field-outline-offset: 2px;
1814
- --m-text-field-padding-y: ${Bt("spacing-2")};
1815
- --m-text-field-placeholder-color: ${Et("color-text-placeholder")};
1816
- --m-text-field-color: ${Et("color-text-primary")};
1817
- }
1818
-
1819
- .container {
1820
- ${It("body-md")};
1821
- ${Ft([{property:"background-color"},{property:"border-color"}])};
1822
-
1823
- display: inline-flex;
1824
- align-items: center;
1825
- justify-content: start;
1826
- gap: ${Bt("spacing-2")};
1827
-
1828
- position: relative;
1829
- box-sizing: border-box;
1830
- width: 100%;
1831
- block-size: var(--m-text-field-height);
1832
-
1833
- ${Ut(Bt("spacing-2"))};
1834
-
1835
- background-color: var(--m-text-field-background-color);
1836
- border-radius: ${Bt("border-radius-s")};
1837
- border: 1px solid var(--m-text-field-border-color);
1838
- }
1839
-
1840
- .container.-size-small {
1841
- --m-text-field-height: ${Bt("global-height-small")};
1842
- --m-text-field-padding-y: 0;
1843
- }
1844
-
1845
- .container.-size-small,
1846
- .container.-size-small .text-field {
1847
- ${It("body-sm")};
1848
- }
1849
-
1850
- .container.-size-large {
1851
- --m-text-field-height: ${Bt("global-height-large")};
1852
- --m-text-field-padding-y: ${Bt("spacing-3")};
1853
- }
1854
-
1855
- .container.-status-danger {
1856
- --m-text-field-border-color: ${Et("color-danger-60")};
1857
- }
1858
-
1859
- ${Gt(".container")} {
1860
- --m-text-field-background-color: ${Et("color-background-tertiary")};
1861
-
1862
- cursor: default;
1863
- }
1864
-
1865
- ${Gt(".container","*")} {
1866
- pointer-events: none;
1867
- }
1868
-
1869
- slot[name='leading']::slotted(*),
1870
- slot[name='trailing']::slotted(*) {
1871
- display: inline-flex;
1872
- flex: 0 0 auto;
1873
- align-items: center;
1874
- cursor: default;
1875
- }
1876
-
1877
- ${Vt.hover(".container")} {
1878
- --m-text-field-border-color: ${Et("color-primary-60")};
1879
- }
1880
-
1881
- ${Vt.focus(".container")} {
1882
- --m-text-field-border-color: ${Et("color-primary-60")};
1883
-
1884
- outline: 1px solid var(--m-text-field-outline-color);
1885
- outline-offset: var(--m-text-field-outline-offset);
1886
- }
1887
-
1888
- .text-field {
1889
- ${It("body-md")};
1890
-
1891
- border: none;
1892
- outline: none;
1893
- flex: 1;
1894
- min-width: 0;
1895
-
1896
- ${Ut(0)};
1897
- padding-block: var(--m-text-field-padding-y);
1898
-
1899
- background-color: var(--m-text-field-background-color);
1900
- color: var(--m-text-field-color);
1901
- }
1902
-
1903
- .text-field::placeholder {
1904
- color: var(--m-text-field-placeholder-color);
1905
- }
1906
-
1907
- ${Vt.active(".text-field")},
1908
- ${Vt.focus(".text-field")} {
1909
- -webkit-appearance: none;
1910
- background: none;
1911
- border: none;
1912
- outline: none;
1913
- }
1914
-
1915
- .clear {
1916
- visibility: hidden;
1917
- }
1918
-
1919
- .clear.is-visible {
1920
- visibility: visible;
1921
- }
1922
- `],window.customElements.define("m-text-field",Hi);const Ji="m-toggle";var Xi,Yi,Zi,Ki,Qi,tr,er,or,ir,rr,nr;class sr extends dt{static get properties(){return{disabled:{type:Boolean},role:{type:String,reflect:!0},showCheck:{type:Boolean,attribute:"show-check"},size:{type:String,reflect:!0},type:{type:String},value:{},selection:{state:!0}}}constructor(){super(),Xi.set(this,null),Yi.set(this,null),Zi.set(this,(()=>{var o,i,r;e(this,Yi,null!==(o=t(this,Yi,"f"))&&void 0!==o?o:this.shadowRoot&&this.shadowRoot.querySelector("slot"),"f");return[...null!==(r=null===(i=t(this,Yi,"f"))||void 0===i?void 0:i.assignedElements({flatten:!0}))&&void 0!==r?r:[]].filter((t=>"m-toggle"===t.tagName.toLowerCase()))})),Ki.set(this,(t=>{t.setAttribute("role",["single","single-strict"].includes(this.type)?"radio":"checkbox")})),Qi.set(this,(t=>{t.checked=this.selection.has(t.value)})),tr.set(this,(t=>{t.disabled=this.disabled})),this.showCheck=!1,this.size="default",this.type="single",this.selection=new Set}update(o){super.update(o),(null!=o.get("type")&&null!=this.type||null==t(this,Xi,"f"))&&(e(this,Xi,new vi(this,this.type,Ji),"f"),t(this,Xi,"f").init(Rt(this.value)),this.role=["single","single-strict"].includes(this.type)?"radiogroup":"group"),o.has("value")&&t(this,Xi,"f").init(Rt(this.value))}updated(e){super.updated(e),e.has("selection")&&t(this,Zi,"f").call(this).forEach((e=>{t(this,Qi,"f").call(this,e)})),e.has("disabled")&&t(this,Zi,"f").call(this).forEach((e=>{t(this,tr,"f").call(this,e)})),e.has("role")&&t(this,Zi,"f").call(this).forEach((e=>{t(this,Ki,"f").call(this,e)}))}render(){return k`
1923
- <m-group
1924
- class=${mt({"toggle-group":!0,"-single":"single"===this.type,"-single-strict":"single-strict"===this.type,"-multiple":"multiple"===this.type,"-small":"small"===this.size,"-show-check":this.showCheck})}
1925
- gap="spacing-1"
1926
- >
1927
- <slot></slot>
1928
- </m-group>
1929
- `}}Xi=new WeakMap,Yi=new WeakMap,Zi=new WeakMap,Ki=new WeakMap,Qi=new WeakMap,tr=new WeakMap,sr.styles=[[Y`
1930
- .toggle-group {
1931
- inline-size: max-content;
1932
-
1933
- border: 1px solid ${Et("color-border")};
1934
- padding: ${Bt("spacing-1")};
1935
-
1936
- border-radius: ${Bt("border-radius-s")};
1937
- box-sizing: border-box;
1938
-
1939
- block-size: ${Bt("global-height-default")};
1940
- }
1941
-
1942
- .toggle-group.-small {
1943
- block-size: ${Bt("global-height-small")};
1944
- }
1945
-
1946
- .toggle-group.-small ::slotted(m-toggle) {
1947
- --m-toggle-base-size: 18px;
1948
- --m-toggle-font-size: ${Bt("font-size-2")};
1949
- --m-toggle-icon-size: 10px;
1950
- }
1951
-
1952
- .toggle-group.-show-check ::slotted(m-toggle[aria-checked='true']) {
1953
- --m-toggle-icon-display: inline-flex;
1954
- }
1955
- `]],window.customElements.define("m-toggle-group",sr);class ar extends dt{static get properties(){return{checked:{type:Boolean},disabled:{type:Boolean,reflect:!0},role:{type:String,reflect:!0},value:{type:String,reflect:!0}}}constructor(){super(),er.add(this),ir.set(this,(()=>{if(this.disabled)return;this.checked=!this.checked;const t={detail:{value:this.value,type:"toggle"},bubbles:!0,composed:!1};this.dispatchEvent(new CustomEvent(Ji,t))})),rr.set(this,(()=>{this.setAttribute("aria-disabled",String(this.disabled))})),nr.set(this,(()=>{this.setAttribute("aria-checked",String(this.checked))})),this.disabled=!1,this.checked=!1}connectedCallback(){super.connectedCallback(),this.addEventListener("click",t(this,ir,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",t(this,ir,"f"))}updated(e){super.updated(e),e.has("disabled")&&t(this,rr,"f").call(this),e.has("checked")&&t(this,nr,"f").call(this)}render(){return k`
1956
- <button
1957
- type="button"
1958
- class=${mt({button:!0,toggle:!0})}
1959
- role="${this.role}"
1960
- aria-checked="${this.checked}"
1961
- ?disabled="${this.disabled}"
1962
- >
1963
- <slot name="leading" slot="leading">
1964
- <m-icon name="check" class="check-icon"></m-icon>
1965
- </slot>
1966
-
1967
- <slot></slot>
1968
- </button>
1969
- `}focus(e){var o;null===(o=t(this,er,"a",or))||void 0===o||o.focus(e)}}function lr(t){return t.trim()}function cr(t){return t?String(t).split(/[\s,]+/).map(lr).filter(Boolean):["hover"]}function dr(t){return t.split("-")[1]}function hr(t){return"y"===t?"height":"width"}function ur(t){return t.split("-")[0]}function pr(t){return["top","bottom"].includes(ur(t))?"x":"y"}function br(t,e,o){let{reference:i,floating:r}=t;const n=i.x+i.width/2-r.width/2,s=i.y+i.height/2-r.height/2,a=pr(e),l=hr(a),c=i[l]/2-r[l]/2,d="x"===a;let h;switch(ur(e)){case"top":h={x:n,y:i.y-r.height};break;case"bottom":h={x:n,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:s};break;case"left":h={x:i.x-r.width,y:s};break;default:h={x:i.x,y:i.y}}switch(dr(e)){case"start":h[a]-=c*(o&&d?-1:1);break;case"end":h[a]+=c*(o&&d?-1:1)}return h}ir=new WeakMap,rr=new WeakMap,nr=new WeakMap,er=new WeakSet,or=function(){var t,e;return null!==(e=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector("button"))&&void 0!==e?e:null},ar.styles=[[Ht(),Y`
1970
- :host {
1971
- /*
1972
- * These custom properties are here because they are meant to be
1973
- * overriden via toggle-group styles.
1974
- */
1975
- --m-toggle-base-size: 30px;
1976
- --m-toggle-font-size: ${Bt("font-size-3")};
1977
- --m-toggle-icon-size: 12px;
1978
- --m-toggle-icon-display: none;
1979
-
1980
- --m-button-border-color: transparent;
1981
- --m-button-color: ${Et("color-primary-100")};
1982
- --m-button-padding-x: ${Bt("spacing-2")};
1983
- --m-button-padding-y: 0;
1984
-
1985
- --m-button-base-size: var(--m-toggle-base-size);
1986
- --m-button-font-size: var(--m-toggle-font-size);
1987
- }
1988
-
1989
- ${Gt([".toggle"])} {
1990
- --m-button-color: ${Et("color-text-disabled")};
1991
- }
1992
-
1993
- [aria-checked='true'] {
1994
- --m-button-background-color: ${Et("color-primary-20")};
1995
- }
1996
-
1997
- ${Vt.hover(".toggle")} {
1998
- --m-button-background-color: ${Et("color-background-tertiary")};
1999
- --m-button-border-color: ${Et("color-background-tertiary")};
2000
- --m-button-color: ${Et("color-primary-100")};
2001
- }
2002
-
2003
- .check-icon {
2004
- --m-icon-size: var(--m-toggle-icon-size);
2005
- --m-icon-color: var(--m-button-color);
2006
-
2007
- display: var(--m-toggle-icon-display);
2008
- }
2009
- `]],window.customElements.define("m-toggle",ar);function gr(t,e){return"function"==typeof t?t(e):t}function mr(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function fr(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function yr(t,e){var o;void 0===e&&(e={});const{x:i,y:r,platform:n,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:u=!1,padding:p=0}=gr(e,t),b=mr(p),g=a[u?"floating"===h?"reference":"floating":h],m=fr(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(g)))||o?g:g.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),f="floating"===h?{...s.floating,x:i,y:r}:s.reference,y=await(null==n.getOffsetParent?void 0:n.getOffsetParent(a.floating)),v=await(null==n.isElement?void 0:n.isElement(y))&&await(null==n.getScale?void 0:n.getScale(y))||{x:1,y:1},$=fr(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:f,offsetParent:y,strategy:l}):f);return{top:(m.top-$.top+b.top)/v.y,bottom:($.bottom-m.bottom+b.bottom)/v.y,left:(m.left-$.left+b.left)/v.x,right:($.right-m.right+b.right)/v.x}}const vr=Math.min,$r=Math.max;function wr(t,e,o){return $r(t,vr(e,o))}const xr=t=>({name:"arrow",options:t,async fn(e){const{x:o,y:i,placement:r,rects:n,platform:s,elements:a}=e,{element:l,padding:c=0}=gr(t,e)||{};if(null==l)return{};const d=mr(c),h={x:o,y:i},u=pr(r),p=hr(u),b=await s.getDimensions(l),g="y"===u,m=g?"top":"left",f=g?"bottom":"right",y=g?"clientHeight":"clientWidth",v=n.reference[p]+n.reference[u]-h[u]-n.floating[p],$=h[u]-n.reference[u],w=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l));let x=w?w[y]:0;x&&await(null==s.isElement?void 0:s.isElement(w))||(x=a.floating[y]||n.floating[p]);const k=v/2-$/2,z=x/2-b[p]/2-1,S=vr(d[m],z),C=vr(d[f],z),M=S,W=x-b[p]-C,A=x/2-b[p]/2+k,j=wr(M,A,W),B=null!=dr(r)&&A!=j&&n.reference[p]/2-(A<M?S:C)-b[p]/2<0?A<M?M-A:W-A:0;return{[u]:h[u]-B,data:{[u]:j,centerOffset:A-j+B}}}}),kr={left:"right",right:"left",bottom:"top",top:"bottom"};function zr(t){return t.replace(/left|right|bottom|top/g,(t=>kr[t]))}const Sr={start:"end",end:"start"};function Cr(t){return t.replace(/start|end/g,(t=>Sr[t]))}const Mr=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var o;const{placement:i,middlewareData:r,rects:n,initialPlacement:s,platform:a,elements:l}=e,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:b=!0,...g}=gr(t,e),m=ur(i),f=ur(s)===s,y=await(null==a.isRTL?void 0:a.isRTL(l.floating)),v=h||(f||!b?[zr(s)]:function(t){const e=zr(t);return[Cr(t),e,Cr(e)]}(s));h||"none"===p||v.push(...function(t,e,o,i){const r=dr(t);let n=function(t,e,o){const i=["left","right"],r=["right","left"],n=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return o?e?r:i:e?i:r;case"left":case"right":return e?n:s;default:return[]}}(ur(t),"start"===o,i);return r&&(n=n.map((t=>t+"-"+r)),e&&(n=n.concat(n.map(Cr)))),n}(s,b,p,y));const $=[s,...v],w=await yr(e,g),x=[];let k=(null==(o=r.flip)?void 0:o.overflows)||[];if(c&&x.push(w[m]),d){const{main:t,cross:e}=function(t,e,o){void 0===o&&(o=!1);const i=dr(t),r=pr(t),n=hr(r);let s="x"===r?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[n]>e.floating[n]&&(s=zr(s)),{main:s,cross:zr(s)}}(i,n,y);x.push(w[t],w[e])}if(k=[...k,{placement:i,overflows:x}],!x.every((t=>t<=0))){var z,S;const t=((null==(z=r.flip)?void 0:z.index)||0)+1,e=$[t];if(e)return{data:{index:t,overflows:k},reset:{placement:e}};let o=null==(S=k.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:S.placement;if(!o)switch(u){case"bestFit":{var C;const t=null==(C=k.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:C[0];t&&(o=t);break}case"initialPlacement":o=s}if(i!==o)return{reset:{placement:o}}}return{}}}};const Wr=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){const{x:o,y:i}=e,r=await async function(t,e){const{placement:o,platform:i,elements:r}=t,n=await(null==i.isRTL?void 0:i.isRTL(r.floating)),s=ur(o),a=dr(o),l="x"===pr(o),c=["left","top"].includes(s)?-1:1,d=n&&l?-1:1,h=gr(e,t);let{mainAxis:u,crossAxis:p,alignmentAxis:b}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return a&&"number"==typeof b&&(p="end"===a?-1*b:b),l?{x:p*d,y:u*c}:{x:u*c,y:p*d}}(e,t);return{x:o+r.x,y:i+r.y,data:r}}}};function Ar(t){var e;return(null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function jr(t){return Ar(t).getComputedStyle(t)}function Br(t){return t instanceof Ar(t).Node}function Er(t){return Br(t)?(t.nodeName||"").toLowerCase():"#document"}function Tr(t){return t instanceof Ar(t).HTMLElement}function Rr(t){return t instanceof Ar(t).Element}function Pr(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Ar(t).ShadowRoot||t instanceof ShadowRoot)}function _r(t){const{overflow:e,overflowX:o,overflowY:i,display:r}=jr(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(r)}function Or(t){return["table","td","th"].includes(Er(t))}function Dr(t){const e=Ur(),o=jr(t);return"none"!==o.transform||"none"!==o.perspective||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function Ur(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function qr(t){return["html","body","#document"].includes(Er(t))}const Lr=Math.min,Nr=Math.max,Fr=Math.round,Ir=Math.floor,Gr=t=>({x:t,y:t});function Vr(t){const e=jr(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=Tr(t),n=r?t.offsetWidth:o,s=r?t.offsetHeight:i,a=Fr(o)!==n||Fr(i)!==s;return a&&(o=n,i=s),{width:o,height:i,$:a}}function Hr(t){return Rr(t)?t:t.contextElement}function Jr(t){const e=Hr(t);if(!Tr(e))return Gr(1);const o=e.getBoundingClientRect(),{width:i,height:r,$:n}=Vr(e);let s=(n?Fr(o.width):o.width)/i,a=(n?Fr(o.height):o.height)/r;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const Xr=Gr(0);function Yr(t,e,o){var i,r;if(void 0===e&&(e=!0),!Ur())return Xr;const n=t?Ar(t):window;return!o||e&&o!==n?Xr:{x:(null==(i=n.visualViewport)?void 0:i.offsetLeft)||0,y:(null==(r=n.visualViewport)?void 0:r.offsetTop)||0}}function Zr(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),n=Hr(t);let s=Gr(1);e&&(i?Rr(i)&&(s=Jr(i)):s=Jr(t));const a=Yr(n,o,i);let l=(r.left+a.x)/s.x,c=(r.top+a.y)/s.y,d=r.width/s.x,h=r.height/s.y;if(n){const t=Ar(n),e=i&&Rr(i)?Ar(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=Jr(o),e=o.getBoundingClientRect(),i=getComputedStyle(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,n=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,d*=t.x,h*=t.y,l+=r,c+=n,o=Ar(o).frameElement}}return fr({width:d,height:h,x:l,y:c})}function Kr(t){return((Br(t)?t.ownerDocument:t.document)||window.document).documentElement}function Qr(t){return Rr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function tn(t){return Zr(Kr(t)).left+Qr(t).scrollLeft}function en(t){if("html"===Er(t))return t;const e=t.assignedSlot||t.parentNode||Pr(t)&&t.host||Kr(t);return Pr(e)?e.host:e}function on(t){const e=en(t);return qr(e)?t.ownerDocument?t.ownerDocument.body:t.body:Tr(e)&&_r(e)?e:on(e)}function rn(t,e){var o;void 0===e&&(e=[]);const i=on(t),r=i===(null==(o=t.ownerDocument)?void 0:o.body),n=Ar(i);return r?e.concat(n,n.visualViewport||[],_r(i)?i:[]):e.concat(i,rn(i))}function nn(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=Ar(t),i=Kr(t),r=o.visualViewport;let n=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){n=r.width,s=r.height;const t=Ur();(!t||t&&"fixed"===e)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:n,height:s,x:a,y:l}}(t,o);else if("document"===e)i=function(t){const e=Kr(t),o=Qr(t),i=t.ownerDocument.body,r=Nr(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=Nr(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let s=-o.scrollLeft+tn(t);const a=-o.scrollTop;return"rtl"===jr(i).direction&&(s+=Nr(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:s,y:a}}(Kr(t));else if(Rr(e))i=function(t,e){const o=Zr(t,!0,"fixed"===e),i=o.top+t.clientTop,r=o.left+t.clientLeft,n=Tr(t)?Jr(t):Gr(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:i*n.y}}(e,o);else{const o=Yr(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return fr(i)}function sn(t,e){const o=en(t);return!(o===e||!Rr(o)||qr(o))&&("fixed"===jr(o).position||sn(o,e))}function an(t,e){return Tr(t)&&"fixed"!==jr(t).position?e?e(t):t.offsetParent:null}function ln(t,e){const o=Ar(t);if(!Tr(t))return o;let i=an(t,e);for(;i&&Or(i)&&"static"===jr(i).position;)i=an(i,e);return i&&("html"===Er(i)||"body"===Er(i)&&"static"===jr(i).position&&!Dr(i))?o:i||function(t){let e=en(t);for(;Tr(e)&&!qr(e);){if(Dr(e))return e;e=en(e)}return null}(t)||o}function cn(t,e,o){const i=Tr(e),r=Kr(e),n="fixed"===o,s=Zr(t,!0,n,e);let a={scrollLeft:0,scrollTop:0};const l=Gr(0);if(i||!i&&!n)if(("body"!==Er(e)||_r(r))&&(a=Qr(e)),Tr(e)){const t=Zr(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=tn(r));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}const dn={getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:r}=t;const n=[..."clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let i=rn(t).filter((t=>Rr(t)&&"body"!==Er(t))),r=null;const n="fixed"===jr(t).position;let s=n?en(t):t;for(;Rr(s)&&!qr(s);){const e=jr(s),o=Dr(s);o||"fixed"!==e.position||(r=null),(n?!o&&!r:!o&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||_r(s)&&!o&&sn(t,s))?i=i.filter((t=>t!==s)):r=e,s=en(s)}return e.set(t,i),i}(e,this._c):[].concat(o),i],s=n[0],a=n.reduce(((t,o)=>{const i=nn(e,o,r);return t.top=Nr(i.top,t.top),t.right=Lr(i.right,t.right),t.bottom=Lr(i.bottom,t.bottom),t.left=Nr(i.left,t.left),t}),nn(e,s,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:i}=t;const r=Tr(o),n=Kr(o);if(o===n)return e;let s={scrollLeft:0,scrollTop:0},a=Gr(1);const l=Gr(0);if((r||!r&&"fixed"!==i)&&(("body"!==Er(o)||_r(n))&&(s=Qr(o)),Tr(o))){const t=Zr(o);a=Jr(o),l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}return{width:e.width*a.x,height:e.height*a.y,x:e.x*a.x-s.scrollLeft*a.x+l.x,y:e.y*a.y-s.scrollTop*a.y+l.y}},isElement:Rr,getDimensions:function(t){return Vr(t)},getOffsetParent:ln,getDocumentElement:Kr,getScale:Jr,async getElementRects(t){let{reference:e,floating:o,strategy:i}=t;const r=this.getOffsetParent||ln,n=this.getDimensions;return{reference:cn(e,await r(o),i),floating:{x:0,y:0,...await n(o)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===jr(t).direction};function hn(t,e,o,i){void 0===i&&(i={});const{ancestorScroll:r=!0,ancestorResize:n=!0,elementResize:s=!0,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=i,c=Hr(t),d=r||n?[...c?rn(c):[],...rn(e)]:[];d.forEach((t=>{r&&t.addEventListener("scroll",o,{passive:!0}),n&&t.addEventListener("resize",o)}));const h=c&&a?function(t,e){let o,i=null;const r=Kr(t);function n(){clearTimeout(o),i&&i.disconnect(),i=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),n();const{left:c,top:d,width:h,height:u}=t.getBoundingClientRect();if(a||e(),!h||!u)return;const p=Ir(d),b=Ir(r.clientWidth-(c+h)),g=Ir(r.clientHeight-(d+u)),m=Ir(c);let f=!0;i=new IntersectionObserver((t=>{const e=t[0].intersectionRatio;if(e!==l){if(!f)return s();0===e?o=setTimeout((()=>{s(!1,1e-7)}),100):s(!1,e)}f=!1}),{rootMargin:-p+"px "+-b+"px "+-g+"px "+-m+"px",threshold:l}),i.observe(t)}(!0),n}(c,o):null;let u,p=null;s&&(p=new ResizeObserver(o),c&&!l&&p.observe(c),p.observe(e));let b=l?Zr(t):null;return l&&function e(){const i=Zr(t);!b||i.x===b.x&&i.y===b.y&&i.width===b.width&&i.height===b.height||o();b=i,u=requestAnimationFrame(e)}(),o(),()=>{d.forEach((t=>{r&&t.removeEventListener("scroll",o),n&&t.removeEventListener("resize",o)})),h&&h(),p&&p.disconnect(),p=null,l&&cancelAnimationFrame(u)}}const un=(t,e,o)=>{const i=new Map,r={platform:dn,...o},n={...r.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:s}=o,a=n.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:d,y:h}=br(c,i,l),u=i,p={},b=0;for(let o=0;o<a.length;o++){const{name:n,fn:g}=a[o],{x:m,y:f,data:y,reset:v}=await g({x:d,y:h,initialPlacement:i,placement:u,strategy:r,middlewareData:p,rects:c,platform:s,elements:{reference:t,floating:e}});d=null!=m?m:d,h=null!=f?f:h,p={...p,[n]:{...p[n],...y}},v&&b<=50&&(b++,"object"==typeof v&&(v.placement&&(u=v.placement),v.rects&&(c=!0===v.rects?await s.getElementRects({reference:t,floating:e,strategy:r}):v.rects),({x:d,y:h}=br(c,u,l))),o=-1)}return{x:d,y:h,placement:u,strategy:r,middlewareData:p}})(t,e,{...r,platform:n})};var pn,bn;const gn={top:"",bottom:"",left:"",right:""};class mn extends le{static get properties(){return{position:{type:String,reflect:!0},placement:{type:String},open:{type:Boolean,reflect:!0}}}constructor(){super(),pn.set(this,void 0),this.getFloatingOffset=()=>20,this.renderArrow=()=>k`<span id="arrow">
2010
- <svg viewBox="0 0 20 10">
2011
- <polygon stroke-width="0" points="0,10 20,10 10,0" />
2012
- </svg>
2013
- </span>`,this.reposition=async e=>{var o,i;if(null==this.floating||null==this.reference)return;const{x:r,y:n,placement:s,middlewareData:a}=await un(this.reference,this.floating,{strategy:null!==(o=this.position)&&void 0!==o?o:"fixed",placement:null!==(i=this.placement)&&void 0!==i?i:"bottom-start",middleware:[Wr(this.getFloatingOffset()),Mr(),(void 0===l&&(l={}),{name:"shift",options:l,async fn(t){const{x:e,y:o,placement:i}=t,{mainAxis:r=!0,crossAxis:n=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...a}=gr(l,t),c={x:e,y:o},d=await yr(t,a),h=pr(ur(i)),u="x"===h?"y":"x";let p=c[h],b=c[u];if(r){const t="y"===h?"bottom":"right";p=wr(p+d["y"===h?"top":"left"],p,p-d[t])}if(n){const t="y"===u?"bottom":"right";b=wr(b+d["y"===u?"top":"left"],b,b-d[t])}const g=s.fn({...t,[h]:p,[u]:b});return{...g,data:{x:g.x-e,y:g.y-o}}}}),this.arrow?xr({element:this.arrow,padding:16}):void 0]});var l;Object.assign(this.floating.style,{top:`${n}px`,left:`${r}px`}),null!=this.arrow&&a.arrow&&Object.assign(this.arrow.style,t(this,bn,"f").call(this,s,a.arrow)),this.emit("m-popover-reposition",{detail:{reason:e}})},bn.set(this,((t,e)=>{if(null==this.floating||null==this.reference||null==this.arrow||null==e)return{};const[o,i]=t.split("-"),{x:r,y:n}=e,s={top:"bottom",bottom:"top",left:"right",right:"left"}[o],a={top:"180deg",bottom:"0deg",left:"90deg",right:"-90deg"}[o],l=null!=i,c=this.reference.offsetWidth>this.floating.offsetWidth,d=this.reference.offsetHeight>this.floating.offsetHeight,h=["top","bottom"].includes(o),u=l&&(h?c:d),p=this.reference.getBoundingClientRect(),b=`calc(var(--m-popover-arrow-offset) + ${{top:p.height,bottom:p.height,right:p.width,left:p.width}[s]}px + ${this.getFloatingOffset()}px)`;let g={transform:`rotate(${a})`,...gn};if(u){const e={"top-start":"left","top-end":"right","bottom-start":"left","bottom-end":"right"}[t];g={...g,[s]:b,[e]:"10px"}}else g={...g,left:null!=r?`${r}px`:"",top:null!=n?`${n}px`:"",[s]:b};return g})),this.position="fixed",this.placement="top-end",this.open=!1}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=t(this,pn,"f"))||void 0===e||e.call(this)}firstUpdated(){this.open&&this.reposition("show"),e(this,pn,hn(this.reference,this.floating,(()=>{this.reposition("auto")})),"f")}updated(t){super.updated(t),this.open&&null!=t.get("placement")&&null!=this.placement&&this.reposition("placement")}get reference(){return this.getReferenceElement()}get floating(){return this.getFloatingElement()}get arrow(){return this.getArrowElement()}show(){this.open||(this.open=!0,this.reposition("show"))}hide(){this.open&&(this.open=!1)}toggle(){this.open?this.hide():this.show()}}var fn,yn,vn,$n,wn,xn,kn,zn,Sn;pn=new WeakMap,bn=new WeakMap;class Cn extends mn{static get properties(){return{...mn.properties,trigger:{type:String,converter:{fromAttribute:cr}}}}constructor(){super(),fn.set(this,void 0),yn.set(this,void 0),vn.set(this,(()=>{t(this,Sn,"f").call(this,"focus")&&(clearTimeout(t(this,yn,"f")),e(this,yn,window.setTimeout((()=>this.show()),450),"f"))})),$n.set(this,(()=>{t(this,Sn,"f").call(this,"focus")&&(clearTimeout(t(this,yn,"f")),e(this,yn,window.setTimeout((()=>this.hide()),450),"f"))})),wn.set(this,(()=>{t(this,Sn,"f").call(this,"click")&&this.toggle()})),xn.set(this,(t=>{this.open&&"Escape"===t.key&&(t.stopPropagation(),this.hide())})),kn.set(this,(()=>{t(this,Sn,"f").call(this,"hover")&&(clearTimeout(t(this,fn,"f")),e(this,fn,window.setTimeout((()=>this.show()),450),"f"))})),zn.set(this,(()=>{t(this,Sn,"f").call(this,"hover")&&(clearTimeout(t(this,fn,"f")),e(this,fn,window.setTimeout((()=>this.hide()),450),"f"))})),Sn.set(this,(t=>this.trigger.includes(t))),this.position="fixed",this.placement="top-start",this.trigger=["hover","focus"]}connectedCallback(){super.connectedCallback(),this.addEventListener("blur",t(this,$n,"f"),!0),this.addEventListener("click",t(this,wn,"f")),this.addEventListener("focus",t(this,vn,"f"),!0),this.addEventListener("keydown",t(this,xn,"f")),this.addEventListener("mouseout",t(this,zn,"f")),this.addEventListener("mouseover",t(this,kn,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("blur",t(this,$n,"f"),!0),this.removeEventListener("focus",t(this,vn,"f"),!0),this.removeEventListener("click",t(this,wn,"f")),this.removeEventListener("keydown",t(this,xn,"f")),this.removeEventListener("mouseover",t(this,kn,"f")),this.removeEventListener("mouseout",t(this,zn,"f"))}getReferenceElement(){const t=this.shadowRoot.querySelector('slot[name="reference"]'),[e]=t.assignedElements({flatten:!0});return e}getFloatingElement(){const t=this.shadowRoot.querySelector('slot[name="floating"]'),[e]=t.assignedElements({flatten:!0});return e}getArrowElement(){return this.shadowRoot.querySelector("#arrow")}render(){return k`
2014
- ${this.renderArrow()}
2015
- <slot name="reference" aria-describedby="floating"></slot>
2016
- <slot
2017
- name="floating"
2018
- id="floating"
2019
- role="tooltip"
2020
- aria-live=${this.open?"polite":"off"}
2021
- ></slot>
2022
- `}}fn=new WeakMap,yn=new WeakMap,vn=new WeakMap,$n=new WeakMap,wn=new WeakMap,xn=new WeakMap,kn=new WeakMap,zn=new WeakMap,Sn=new WeakMap,Cn.styles=[[[Y`
2023
- :host {
2024
- --m-popover-background-color: ${Et("color-background-secondary-inverted")};
2025
- --m-popover-border-radius: ${Bt("border-radius-m")};
2026
- --m-popover-border-width: 0;
2027
- --m-popover-border-style: none;
2028
- --m-popover-border-color: transparent;
2029
- --m-popover-color: ${Et("color-text-inverted")};
2030
- --m-popover-elevation: ${Bt("elevation-2")};
2031
- --m-popover-width: max-content;
2032
- --m-popover-z-index: 10;
2033
- --m-popover-floating-spacing-x: ${Bt("spacing-4")};
2034
- --m-popover-floating-spacing-y: ${Bt("spacing-2")};
2035
-
2036
- --m-popover-arrow-size: 20px;
2037
- --m-popover-arrow-offset: calc(-1 * (var(--m-popover-arrow-size) / 2));
2038
-
2039
- position: relative;
2040
- }
2041
-
2042
- slot[name='reference']::slotted(*) {
2043
- display: inline-flex;
2044
- }
2045
-
2046
- slot[name='floating']::slotted(*) {
2047
- ${Ft([{property:"box-shadow"}])};
2048
- ${It("body-md")};
2049
-
2050
- padding-inline: var(--m-popover-floating-spacing-x);
2051
- padding-block: var(--m-popover-floating-spacing-y);
2052
- margin: 0;
2053
-
2054
- display: none;
2055
-
2056
- min-height: ${Bt("global-height-default")};
2057
- width: var(--m-popover-width);
2058
- min-width: 80px;
2059
- max-width: 80ch;
2060
-
2061
- overflow-x: hidden;
2062
-
2063
- border-width: var(--m-popover-border-width);
2064
- border-style: var(--m-popover-border-style);
2065
- border-color: var(--m-popover-border-color);
2066
- border-radius: var(--m-popover-border-radius);
2067
-
2068
- background-color: var(--m-popover-background-color);
2069
- color: var(--m-popover-color);
2070
-
2071
- box-shadow: var(--m-popover-elevation);
2072
- z-index: var(--m-popover-z-index);
2073
- }
2074
-
2075
- :host([position='absolute']) slot[name='floating']::slotted(*) {
2076
- position: absolute;
2077
- }
2078
-
2079
- :host([position='fixed']) slot[name='floating']::slotted(*) {
2080
- position: fixed;
2081
- }
2082
-
2083
- :host([open]) slot[name='floating']::slotted(*),
2084
- :host([open]) #arrow {
2085
- display: inline-block;
2086
- }
2087
-
2088
- #arrow {
2089
- display: none;
2090
- position: absolute;
2091
- width: var(--m-popover-arrow-size);
2092
- height: var(--m-popover-arrow-size);
2093
- fill: var(--m-popover-background-color);
2094
-
2095
- z-index: calc(var(--m-popover-z-index) + 1);
2096
- }
2097
-
2098
- #arrow > svg {
2099
- height: calc(var(--m-popover-arrow-size) / 2);
2100
- }
2101
-
2102
- .-absolute {
2103
- position: absolute;
2104
- }
2105
-
2106
- .-fixed {
2107
- position: fixed;
2108
- }
2109
- `],Y`
2110
- :host {
2111
- display: inline-block;
2112
- }
2113
- `]],window.customElements.define("m-tooltip",Cn);const Mn=["top","left","right","bottom","top-start","top-end","bottom-start","bottom-end"];export{xe as $,Fo as A,oe as B,Ce as C,Ke as D,mo as E,No as F,vo as G,yo as H,ho as I,fo as J,co as K,$o as L,ko as M,xo as N,Co as O,zo as P,Wo as Q,Mo as R,wo as S,Ho as T,Jo as U,ei as V,$i as W,Fi as X,Ii as Y,Gi as Z,Vi as _,ie as a,Hi as a0,sr as a1,ar as a2,Cn as a3,Mn as a4,z as b,re as c,ne as d,se as e,ae as f,Se as g,ee as h,Me as i,We as j,Ae as k,Re as l,ye as m,Qe as n,to as o,io as p,ro as q,no as r,uo as s,po as t,bo as u,go as v,Eo as w,To as x,qo as y,Lo as z};
2114
- //# sourceMappingURL=index-9b3645b4.js.map