@loadsmart/miranda-wc 1.37.1 → 1.38.0

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