@loadsmart/miranda-wc 1.97.0 → 1.98.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{alert-circle-CIqngmpC.js → alert-circle-0yyTnB0M-Dd2iwsJN.js} +2 -2
- package/dist/alert-circle-0yyTnB0M-Dd2iwsJN.js.map +1 -0
- package/dist/{arrow-left-CM6wQU8j.js → arrow-left-DOwM8dD--Bemagng4.js} +2 -2
- package/dist/arrow-left-DOwM8dD--Bemagng4.js.map +1 -0
- package/dist/arrow-sort-down-DwJRrMFD-CV6cRBEt.js +2 -0
- package/dist/arrow-sort-down-DwJRrMFD-CV6cRBEt.js.map +1 -0
- package/dist/arrow-sort-up-DTuf1JbN-CwnmvifJ.js +2 -0
- package/dist/arrow-sort-up-DTuf1JbN-CwnmvifJ.js.map +1 -0
- package/dist/arrow-sort-up-down-CekAJqEq-3y2BzUOT.js +2 -0
- package/dist/arrow-sort-up-down-CekAJqEq-3y2BzUOT.js.map +1 -0
- package/dist/{attention-BryLD3Km.js → attention-CcLOU7qx-BC6VhZgL.js} +2 -2
- package/dist/attention-CcLOU7qx-BC6VhZgL.js.map +1 -0
- package/dist/{bell-BCtPCvaB.js → bell-uKZILMt4-BDQv0gA9.js} +2 -2
- package/dist/bell-uKZILMt4-BDQv0gA9.js.map +1 -0
- package/dist/{caret-down-l0d4aCh_.js → caret-down-BIfrA-eY-DldOHuL3.js} +2 -2
- package/dist/caret-down-BIfrA-eY-DldOHuL3.js.map +1 -0
- package/dist/{caret-left-C1nMU_k1.js → caret-left-sofEMjOB-DvW7n9Gm.js} +2 -2
- package/dist/caret-left-sofEMjOB-DvW7n9Gm.js.map +1 -0
- package/dist/{caret-right-Cp5oRNBs.js → caret-right-DyRw4vWq-C09UvrPT.js} +2 -2
- package/dist/caret-right-DyRw4vWq-C09UvrPT.js.map +1 -0
- package/dist/{check-BDgDsjfR.js → check-CBIF9zkj-vkm_vkC6.js} +2 -2
- package/dist/check-CBIF9zkj-vkm_vkC6.js.map +1 -0
- package/dist/{close-BZhS7PmL.js → close-V1xd5yiJ-B9WyqFwO.js} +2 -2
- package/dist/close-V1xd5yiJ-B9WyqFwO.js.map +1 -0
- package/dist/components/banner/banner.d.ts +1 -1
- package/dist/components/button/base-button.styles.d.ts.map +1 -1
- package/dist/components/icon/index.d.ts +1 -3
- package/dist/components/icon/index.d.ts.map +1 -1
- package/dist/components/label/label.d.ts +1 -1
- package/dist/components/table/index.d.ts +4 -2
- package/dist/components/table/index.d.ts.map +1 -1
- package/dist/components/table/table-cell.d.ts +4 -0
- package/dist/components/table/table-cell.d.ts.map +1 -1
- package/dist/components/table/table-feedback.d.ts +18 -0
- package/dist/components/table/table-feedback.d.ts.map +1 -0
- package/dist/components/table/table-head-cell.d.ts +60 -0
- package/dist/components/table/table-head-cell.d.ts.map +1 -0
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/table/table.styles.d.ts +2 -0
- package/dist/components/table/table.styles.d.ts.map +1 -1
- package/dist/components/table/table.types.d.ts +29 -0
- package/dist/components/table/table.types.d.ts.map +1 -1
- package/dist/components/tag/tag.d.ts +1 -1
- package/dist/components/tag/tag.d.ts.map +1 -1
- package/dist/components/tag/tag.styles.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.styles.d.ts.map +1 -1
- package/dist/{double-caret-left-DzYiCNO_.js → double-caret-left-C0u_I_64-DEOH-B_a.js} +2 -2
- package/dist/double-caret-left-C0u_I_64-DEOH-B_a.js.map +1 -0
- package/dist/{double-caret-right-DljHDpBt.js → double-caret-right-DWeiJR91-D9HlOYuA.js} +2 -2
- package/dist/double-caret-right-DWeiJR91-D9HlOYuA.js.map +1 -0
- package/dist/{indeterminate-DCPKrCcE.js → indeterminate-CCqFCJnX-BmhAGLrL.js} +2 -2
- package/dist/indeterminate-CCqFCJnX-BmhAGLrL.js.map +1 -0
- package/dist/{index-CK-P81t8.js → index-D_d7uHpr.js} +316 -244
- package/dist/index-D_d7uHpr.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/{info-circle-mSATJlyM.js → info-circle-O-nqY8__-B6GUXwBw.js} +2 -2
- package/dist/info-circle-O-nqY8__-B6GUXwBw.js.map +1 -0
- package/dist/mixins/polymorphic-tag/polymorphic-tag.d.ts +2 -2
- package/package.json +2 -1
- package/dist/alert-circle-CIqngmpC.js.map +0 -1
- package/dist/arrow-left-CM6wQU8j.js.map +0 -1
- package/dist/attention-BryLD3Km.js.map +0 -1
- package/dist/bell-BCtPCvaB.js.map +0 -1
- package/dist/caret-down-l0d4aCh_.js.map +0 -1
- package/dist/caret-left-C1nMU_k1.js.map +0 -1
- package/dist/caret-right-Cp5oRNBs.js.map +0 -1
- package/dist/check-BDgDsjfR.js.map +0 -1
- package/dist/close-BZhS7PmL.js.map +0 -1
- package/dist/components/icon/available-icons.d.ts +0 -4
- package/dist/components/icon/available-icons.d.ts.map +0 -1
- package/dist/components/icon/icon.d.ts +0 -59
- package/dist/components/icon/icon.d.ts.map +0 -1
- package/dist/components/icon/icon.styles.d.ts +0 -3
- package/dist/components/icon/icon.styles.d.ts.map +0 -1
- package/dist/components/icon/icons/alert-circle.d.ts +0 -3
- package/dist/components/icon/icons/alert-circle.d.ts.map +0 -1
- package/dist/components/icon/icons/arrow-left.d.ts +0 -3
- package/dist/components/icon/icons/arrow-left.d.ts.map +0 -1
- package/dist/components/icon/icons/attention.d.ts +0 -3
- package/dist/components/icon/icons/attention.d.ts.map +0 -1
- package/dist/components/icon/icons/bell.d.ts +0 -3
- package/dist/components/icon/icons/bell.d.ts.map +0 -1
- package/dist/components/icon/icons/caret-down.d.ts +0 -3
- package/dist/components/icon/icons/caret-down.d.ts.map +0 -1
- package/dist/components/icon/icons/caret-left.d.ts +0 -3
- package/dist/components/icon/icons/caret-left.d.ts.map +0 -1
- package/dist/components/icon/icons/caret-right.d.ts +0 -3
- package/dist/components/icon/icons/caret-right.d.ts.map +0 -1
- package/dist/components/icon/icons/check.d.ts +0 -3
- package/dist/components/icon/icons/check.d.ts.map +0 -1
- package/dist/components/icon/icons/close.d.ts +0 -3
- package/dist/components/icon/icons/close.d.ts.map +0 -1
- package/dist/components/icon/icons/double-caret-left.d.ts +0 -3
- package/dist/components/icon/icons/double-caret-left.d.ts.map +0 -1
- package/dist/components/icon/icons/double-caret-right.d.ts +0 -3
- package/dist/components/icon/icons/double-caret-right.d.ts.map +0 -1
- package/dist/components/icon/icons/indeterminate.d.ts +0 -3
- package/dist/components/icon/icons/indeterminate.d.ts.map +0 -1
- package/dist/components/icon/icons/info-circle.d.ts +0 -3
- package/dist/components/icon/icons/info-circle.d.ts.map +0 -1
- package/dist/double-caret-left-DzYiCNO_.js.map +0 -1
- package/dist/double-caret-right-DljHDpBt.js.map +0 -1
- package/dist/indeterminate-DCPKrCcE.js.map +0 -1
- package/dist/index-CK-P81t8.js.map +0 -1
- package/dist/info-circle-mSATJlyM.js.map +0 -1
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
function __classPrivateFieldGet(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 __classPrivateFieldSet(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}"function"==typeof SuppressedError&&SuppressedError;
|
|
1
|
+
function __classPrivateFieldGet$1(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 __classPrivateFieldSet(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}"function"==typeof SuppressedError&&SuppressedError;
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2019 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
6
|
*/
|
|
7
|
-
const t$
|
|
7
|
+
const t$8=window,e$c=t$8.ShadowRoot&&(void 0===t$8.ShadyCSS||t$8.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$c=Symbol(),n$e=new WeakMap;let o$e=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==s$c)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(e$c&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=n$e.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&n$e.set(e,t))}return t}toString(){return this.cssText}};const r$c=t=>new o$e("string"==typeof t?t:t+"",void 0,s$c),S$5=(t,e)=>{e$c?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=t$8.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))},c$5=e$c?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return r$c(e)})(t):t
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2017 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
|
-
*/;var s$
|
|
12
|
+
*/;var s$b;const e$b=window,r$b=e$b.trustedTypes,h$7=r$b?r$b.emptyScript:"",o$d=e$b.reactiveElementPolyfillSupport,n$d={toAttribute(t,e){switch(e){case Boolean:t=t?h$7: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}},a$8=(t,e)=>e!==t&&(e==e||t==t),l$8={attribute:!0,type:String,converter:n$d,reflect:!1,hasChanged:a$8},d$5="finalized";let u$5=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}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=l$8){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)||l$8}static finalize(){if(this.hasOwnProperty(d$5))return!1;this[d$5]=!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(c$5(t))}else void 0!==t&&e.push(c$5(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}_$Eu(){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 S$5(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=l$8){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:n$d).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:n$d;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||a$8)(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){}};
|
|
13
13
|
/**
|
|
14
14
|
* @license
|
|
15
15
|
* Copyright 2017 Google LLC
|
|
16
16
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
17
|
*/
|
|
18
|
-
var t$
|
|
18
|
+
var t$7;u$5[d$5]=!0,u$5.elementProperties=new Map,u$5.elementStyles=[],u$5.shadowRootOptions={mode:"open"},null==o$d||o$d({ReactiveElement:u$5}),(null!==(s$b=e$b.reactiveElementVersions)&&void 0!==s$b?s$b:e$b.reactiveElementVersions=[]).push("1.6.3");const i$6=window,s$a=i$6.trustedTypes,e$a=s$a?s$a.createPolicy("lit-html",{createHTML:t=>t}):void 0,o$c="$lit$",n$c=`lit$${(Math.random()+"").slice(9)}$`,l$7="?"+n$c,h$6=`<${l$7}>`,r$a=document,u$4=()=>r$a.createComment(""),d$4=t=>null===t||"object"!=typeof t&&"function"!=typeof t,c$4=Array.isArray,v$1=t=>c$4(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),a$7="[ \t\n\f\r]",f$1=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_$3=/-->/g,m$4=/>/g,p$2=RegExp(`>|${a$7}(?:([^\\s"'>=/]+)(${a$7}*=${a$7}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),g$1=/'/g,$$1=/"/g,y$1=/^(?:script|style|textarea|title)$/i,w$1=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),x=w$1(1),b$1=w$1(2),T$1=Symbol.for("lit-noChange"),A$1=Symbol.for("lit-nothing"),E$1=new WeakMap,C$1=r$a.createTreeWalker(r$a,129,null,!1);function P$1(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==e$a?e$a.createHTML(e):e}const V$1=(t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",s=f$1;for(let e=0;e<o;e++){const o=t[e];let a,l,c=-1,d=0;for(;d<o.length&&(s.lastIndex=d,l=s.exec(o),null!==l);)d=s.lastIndex,s===f$1?"!--"===l[1]?s=_$3:void 0!==l[1]?s=m$4:void 0!==l[2]?(y$1.test(l[2])&&(r=RegExp("</"+l[2],"g")),s=p$2):void 0!==l[3]&&(s=p$2):s===p$2?">"===l[0]?(s=null!=r?r:f$1,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?p$2:'"'===l[3]?$$1:g$1):s===$$1||s===g$1?s=p$2:s===_$3||s===m$4?s=f$1:(s=p$2,r=void 0);const h=s===p$2&&t[e+1].startsWith("/>")?" ":"";n+=s===f$1?o+h$6:c>=0?(i.push(a),o.slice(0,c)+o$c+o.slice(c)+n$c+h):o+n$c+(-2===c?(i.push(void 0),e):h)}return[P$1(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};let N$1=class t{constructor({strings:e,_$litType$:o},i){let r;this.parts=[];let n=0,s=0;const a=e.length-1,l=this.parts,[c,d]=V$1(e,o);if(this.el=t.createElement(c,i),C$1.currentNode=this.el.content,2===o){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=C$1.nextNode())&&l.length<a;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith(o$c)||e.startsWith(n$c)){const o=d[s++];if(t.push(e),void 0!==o){const t=r.getAttribute(o.toLowerCase()+o$c).split(n$c),e=/([.?@])?(.*)/.exec(o);l.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?H$1:"?"===e[1]?L$1:"@"===e[1]?z$1:k$1})}else l.push({type:6,index:n})}for(const e of t)r.removeAttribute(e)}if(y$1.test(r.tagName)){const t=r.textContent.split(n$c),e=t.length-1;if(e>0){r.textContent=s$a?s$a.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],u$4()),C$1.nextNode(),l.push({type:2,index:++n});r.append(t[e],u$4())}}}else if(8===r.nodeType)if(r.data===l$7)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf(n$c,t+1));)l.push({type:7,index:n}),t+=n$c.length-1}n++}}static createElement(t,e){const o=r$a.createElement("template");return o.innerHTML=t,o}};function S$4(t,e,o=t,i){var r,n,s,a;if(e===T$1)return e;let l=void 0!==i?null===(r=o._$Co)||void 0===r?void 0:r[i]:o._$Cl;const c=d$4(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=S$4(t,l._$AS(t,e.values),l,i)),e}let M$1=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:r$a).importNode(o,!0);C$1.currentNode=r;let n=C$1.nextNode(),s=0,a=0,l=i[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new R$1(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new Z$1(n,this,t)),this._$AV.push(e),l=i[++a]}s!==(null==l?void 0:l.index)&&(n=C$1.nextNode(),s++)}return C$1.currentNode=r$a,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$1=class t{constructor(t,e,o,i){var r;this.type=2,this._$AH=A$1,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=S$4(this,t,e),d$4(t)?t===A$1||null==t||""===t?(this._$AH!==A$1&&this._$AR(),this._$AH=A$1):t!==this._$AH&&t!==T$1&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):v$1(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!==A$1&&d$4(this._$AH)?this._$AA.nextSibling.data=t:this.$(r$a.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=N$1.createElement(P$1(i.h,i.h[0]),this.options)),i);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.v(o);else{const t=new M$1(r,this),e=t.u(this.options);t.v(o),this.$(e),this._$AH=t}}_$AC(t){let e=E$1.get(t.strings);return void 0===e&&E$1.set(t.strings,e=new N$1(t)),e}T(e){c$4(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let i,r=0;for(const n of e)r===o.length?o.push(i=new t(this.k(u$4()),this.k(u$4()),this,this.options)):i=o[r],i._$AI(n),r++;r<o.length&&(this._$AR(i&&i._$AB.nextSibling,r),o.length=r)}_$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))}},k$1=class{constructor(t,e,o,i,r){this.type=1,this._$AH=A$1,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=A$1}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=S$4(this,t,e,0),n=!d$4(t)||t!==this._$AH&&t!==T$1,n&&(this._$AH=t);else{const i=t;let s,a;for(t=r[0],s=0;s<r.length-1;s++)a=S$4(this,i[o+s],e,s),a===T$1&&(a=this._$AH[s]),n||(n=!d$4(a)||a!==this._$AH[s]),a===A$1?t=A$1:t!==A$1&&(t+=(null!=a?a:"")+r[s+1]),this._$AH[s]=a}n&&!i&&this.j(t)}j(t){t===A$1?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}},H$1=class extends k$1{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===A$1?void 0:t}};const I$1=s$a?s$a.emptyScript:"";let L$1=class extends k$1{constructor(){super(...arguments),this.type=4}j(t){t&&t!==A$1?this.element.setAttribute(this.name,I$1):this.element.removeAttribute(this.name)}},z$1=class extends k$1{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=S$4(this,t,e,0))&&void 0!==o?o:A$1)===T$1)return;const i=this._$AH,r=t===A$1&&i!==A$1||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==A$1&&(i===A$1||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)}},Z$1=class{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){S$4(this,t)}};const B$1=i$6.litHtmlPolyfillSupport;null==B$1||B$1(N$1,R$1),(null!==(t$7=i$6.litHtmlVersions)&&void 0!==t$7?t$7:i$6.litHtmlVersions=[]).push("2.8.0");const D$1=(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 R$1(e.insertBefore(u$4(),t),t,void 0,null!=o?o:{})}return s._$AI(t),s
|
|
19
19
|
/**
|
|
20
20
|
* @license
|
|
21
21
|
* Copyright 2019 Google LLC
|
|
22
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
-
*/},t$
|
|
23
|
+
*/},t$6=window,e$9=t$6.ShadowRoot&&(void 0===t$6.ShadyCSS||t$6.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$9=Symbol(),n$b=new WeakMap;let o$b=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==s$9)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(e$9&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=n$b.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&n$b.set(e,t))}return t}toString(){return this.cssText}};const r$9=t=>new o$b("string"==typeof t?t:t+"",void 0,s$9),i$5=(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 o$b(o,t,s$9)},S$3=(t,e)=>{e$9?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=t$6.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))},c$3=e$9?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return r$9(e)})(t):t
|
|
24
24
|
/**
|
|
25
25
|
* @license
|
|
26
26
|
* Copyright 2017 Google LLC
|
|
27
27
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
28
|
-
*/;var s$
|
|
28
|
+
*/;var s$8;const e$8=window,r$8=e$8.trustedTypes,h$5=r$8?r$8.emptyScript:"",o$a=e$8.reactiveElementPolyfillSupport,n$a={toAttribute(t,e){switch(e){case Boolean:t=t?h$5: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}},a$6=(t,e)=>e!==t&&(e==e||t==t),l$6={attribute:!0,type:String,converter:n$a,reflect:!1,hasChanged:a$6},d$3="finalized";let u$3=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}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=l$6){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)||l$6}static finalize(){if(this.hasOwnProperty(d$3))return!1;this[d$3]=!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(c$3(t))}else void 0!==t&&e.push(c$3(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}_$Eu(){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 S$3(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=l$6){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:n$a).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:n$a;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||a$6)(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){}};
|
|
29
29
|
/**
|
|
30
30
|
* @license
|
|
31
31
|
* Copyright 2017 Google LLC
|
|
32
32
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
33
33
|
*/
|
|
34
|
-
var l$
|
|
34
|
+
var l$5,o$9;u$3[d$3]=!0,u$3.elementProperties=new Map,u$3.elementStyles=[],u$3.shadowRootOptions={mode:"open"},null==o$a||o$a({ReactiveElement:u$3}),(null!==(s$8=e$8.reactiveElementVersions)&&void 0!==s$8?s$8:e$8.reactiveElementVersions=[]).push("1.6.3");let s$7=class extends u$3{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=D$1(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 T$1}};s$7.finalized=!0,s$7._$litElement$=!0,null===(l$5=globalThis.litElementHydrateSupport)||void 0===l$5||l$5.call(globalThis,{LitElement:s$7});const n$9=globalThis.litElementPolyfillSupport;function redispatchEvent(t,e){!e.bubbles||t.shadowRoot&&!e.composed||e.stopPropagation();const o=Reflect.construct(e.constructor,[e.type,e]),i=t.dispatchEvent(o);return i||e.preventDefault(),i}function isInsideElement(t,e){return e.shadowRoot?t.composedPath().includes(e):null!=t.target&&e.contains(t.target)}null==n$9||n$9({LitElement:s$7}),(null!==(o$9=globalThis.litElementVersions)&&void 0!==o$9?o$9:globalThis.litElementVersions=[]).push("3.3.3");class Component extends s$7{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=>{redispatchEvent(this,t)}}}function getDefaultExportFromCjs(t){return t&&t.i&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var toSpacingCSSValue,toCSSValue$1,getToken$1,themes$1={};themes$1.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, 84, 84","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%","media-screen-desktop":"1025px","media-screen-tablet":"481px","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","global-height-small":"1.75rem","global-height-default":"2.5rem","global-height-large":"3rem","platform-font-default":"'Manrope', sans-serif","platform-font-title":"'PlusJakartaSans', 'Manrope', sans-serif"};var r$7=themes$1;function t$5(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]);return t.concat(i||Array.prototype.slice.call(e))}function e$7(t,e){return t.filter((function(t){return t.startsWith(e)}))}function o$8(t,e){return t.filter((function(t){return!t.startsWith(e)}))}"function"==typeof SuppressedError&&SuppressedError;var n$8=Object.keys(r$7.LoadsmartTheme),a$5=t$5([],o$8(o$8(n$8,"brand-"),"platform-"),!0).sort((function(t,e){return t.localeCompare(e,void 0,{numeric:!0,sensitivity:"base"})}));e$7(a$5,"color-background-"),e$7(a$5,"border-radius-"),e$7(a$5,"border-"),e$7(a$5,"color-"),e$7(a$5,"elevation-"),e$7(a$5,"font-family-"),e$7(a$5,"font-size-"),e$7(a$5,"font-weight-"),e$7(a$5,"global-"),e$7(a$5,"glow-"),e$7(a$5,"line-height-"),e$7(a$5,"opacity-");var _$2=e$7(a$5,"spacing-");function K$1(t){return r$7.LoadsmartTheme[t]}function m$3(t){var e=K$1(t);return null==e?e:"--m-".concat(t)}function h$4(t,e){var o=K$1(t);return null==o?"":t.startsWith("color-")?"rgba(var(".concat(m$3(t),", ").concat(o,"), ").concat(null!=e?e:1,")"):"var(".concat(m$3(t),", ").concat(o,")")}function getToken(t){return r$9(toCSSValue$1(t))}function getColor(t,e=1){return r$9(toCSSValue$1(t,e))}function mr(t){return r$9(`\n\t\tmargin-inline-end: ${t}\n\t`)}function ml(t){return r$9(`\n\t\tmargin-inline-start: ${t}\n\t`)}function mx(t){return r$9(`\n\t\t${ml(t)};\n\t\t${mr(t)}\n\t`)}function mt(t){return r$9(`\n\t\tmargin-block-start: ${t}\n\t`)}function mb(t){return r$9(`\n\t\tmargin-block-end: ${t}\n\t`)}function my(t){return r$9(`\n\t\t${mt(t)};\n\t\t${mb(t)}\n\t`)}function m$2(t){return r$9(`\n\t\t${mx(t)};\n\t\t${my(t)}\n\t`)}function mediaDesktop(t){return r$9(`\n\t@media screen and (min-width: ${getToken$1("media-screen-desktop")}) {\n\t\t${t}\n\t}\n`)}function mediaTablet(t){return r$9(`\n\t@media screen and (min-width: ${getToken$1("media-screen-tablet")}) {\n\t\t${t}\n\t}\n`)}e$7(a$5,"media-"),t$5(["none"],_$2,!0),getToken$1=K$1,toCSSValue$1=h$4,toSpacingCSSValue=function(t,e){var o,i=e?h$4(e):"";return t&&null!==(o="none"===t?"0":h$4(t))&&void 0!==o?o:i};var toArray=function(t){return null==t?[]:Array.isArray(t)?t:[t]},toArray$1=getDefaultExportFromCjs(toArray);const pseudoClassMap={active:[":active"],disabled:[".is-disabled",":disabled"],focus:[".is-focused",":focus",":focus-visible",":focus-within"],hover:[":hover"],visited:[":visited"]};function isPseudoClass(t){return Object.keys(pseudoClassMap).includes(t)}function isNegated(t){return t.startsWith("not.")}function joinIs(t){const e=toArray$1(t).filter((t=>""!==t.trim()));return 0===e.length?"":1===e.length?e[0]:`:is(${e.join(", ")})`}function toString(t,e,o,i){let r=joinIs(t);for(const t of i)if(isNegated(t)){const e=t.slice(4);r=`${r}:not(${pseudoClassMap[e].join(", ")})`}else r=`${r}${joinIs(pseudoClassMap[t])}`;const n=joinIs(e);if(n){let t=` ${o} `;return null==o&&(t="")," "===o&&(t=o),`${r}${t}${n}`}return r}function on(t,e,o=" "){const i=[];let r=!1;const n=new Proxy(r$9(""),{get:(s,a,l)=>"cssText"===a?toString(t,e,o,i):"not"===a?(r=!r,n):isPseudoClass(a)?(i.push(r?`not.${a}`:a),r=!1,n):Reflect.get(s,a,l)});return n}function pr(t){return r$9(`\n\t\tpadding-inline-start: ${t}\n\t`)}function pl(t){return r$9(`\n\t\tpadding-inline-end: ${t}\n\t`)}function px(t){return r$9(`\n\t\t${pl(t)};\n\t\t${pr(t)}\n\t`)}function pt(t){return r$9(`\n\t\tpadding-block-start: ${t}\n\t`)}function pb(t){return r$9(`\n\t\tpadding-block-end: ${t}\n\t`)}function py(t){return r$9(`\n\t\t${pt(t)};\n\t\t${pb(t)}\n\t`)}function p$1(t){return r$9(`\n\t\t${px(t)};\n\t\t${py(t)}\n\t`)}function skeleton(){return r$9("animation: skeleton-loading 1s linear infinite alternate;")}skeleton.styles=()=>i$5`
|
|
35
35
|
@keyframes skeleton-loading {
|
|
36
36
|
0% {
|
|
37
37
|
background-color: ${getColor("color-background-tertiary")};
|
|
@@ -45,7 +45,7 @@ var l$3,o$5;u[d]=!0,u.elementProperties=new Map,u.elementStyles=[],u.shadowRootO
|
|
|
45
45
|
background-color: ${getColor("color-background-tertiary")};
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
`;const DEFAULT_TRANSITION_CONFIG={property:"all",delay:"0s",duration:"0.35s",easing:"ease-in-out"};function toTransition(t){const e={...DEFAULT_TRANSITION_CONFIG,...t};return r$
|
|
48
|
+
`;const DEFAULT_TRANSITION_CONFIG={property:"all",delay:"0s",duration:"0.35s",easing:"ease-in-out"};function toTransition(t){const e={...DEFAULT_TRANSITION_CONFIG,...t};return r$9(`${e.property} ${e.duration} ${e.easing} ${e.delay}`)}function transition(t){const e=toArray$1(t).map((t=>toTransition(t))).join(", ");return r$9(`\n\t\ttransition: ${e}\n\t`)}const typographyVariants=["body-lg-bold","body-lg","body-md-bold-underline","body-md-bold","body-md-underline","body-md","body-sm-bold-underline","body-sm-bold","body-sm-underline","body-sm","button-lg","button-md","button-sm","chips-md","chips-sm","heading-lg-bold","heading-lg","heading-md-bold","heading-md","heading-sm-bold","heading-sm","hero-lg-bold","hero-lg","hero-md-bold","hero-md","hero-sm-bold","hero-sm","number-md","number-sm","table-header-md","table-header-sm"];function getVariant(t){switch(t){case"hero-lg-bold":return`\n\t\t\t\tfont-family: ${getToken("font-family-title")};\n\t\t\t\tline-height: ${getToken("line-height-6")};\n\t\t\t\tfont-size: ${getToken("font-size-9")};\n\t\t\t\tfont-weight: ${getToken("font-weight-bold")}\n\t\t\t`;case"hero-lg":return`\n\t\t\t\tfont-family: ${getToken("font-family-title")};\n\t\t\t\tline-height: ${getToken("line-height-6")};\n\t\t\t\tfont-size: ${getToken("font-size-9")};\n\t\t\t\tfont-weight: ${getToken("font-weight-regular")}\n\t\t\t`;case"hero-md-bold":return`\n\t\t\t\tfont-family: ${getToken("font-family-title")};\n\t\t\t\tline-height: ${getToken("line-height-6")};\n\t\t\t\tfont-size: ${getToken("font-size-8")};\n\t\t\t\tfont-weight: ${getToken("font-weight-bold")}\n\t\t\t`;case"hero-md":return`\n\t\t\t\tfont-family: ${getToken("font-family-title")};\n\t\t\t\tline-height: ${getToken("line-height-6")};\n\t\t\t\tfont-size: ${getToken("font-size-8")};\n\t\t\t\tfont-weight: ${getToken("font-weight-regular")}\n\t\t\t`;case"hero-sm-bold":return`\n\t\t\t\tfont-family: ${getToken("font-family-title")};\n\t\t\t\tline-height: ${getToken("line-height-6")};\n\t\t\t\tfont-size: ${getToken("font-size-7")};\n\t\t\t\tfont-weight: ${getToken("font-weight-bold")}\n\t\t\t`;case"hero-sm":return`\n\t\t\t\tfont-family: ${getToken("font-family-title")};\n\t\t\t\tline-height: ${getToken("line-height-6")};\n\t\t\t\tfont-size: ${getToken("font-size-7")};\n\t\t\t\tfont-weight: ${getToken("font-weight-regular")}\n\t\t\t`;case"heading-lg-bold":return`\n\t\t\t\t\tfont-family: ${getToken("font-family-title")};\n\t\t\t\t\tline-height: ${getToken("line-height-5")};\n\t\t\t\t\tfont-size: ${getToken("font-size-6")};\n\t\t\t\t\tfont-weight: ${getToken("font-weight-bold")}\n\t\t\t\t`;case"heading-lg":return`\n\t\t\t\tfont-family: ${getToken("font-family-title")};\n\t\t\t\tline-height: ${getToken("line-height-5")};\n\t\t\t\tfont-size: ${getToken("font-size-6")};\n\t\t\t\tfont-weight: ${getToken("font-weight-regular")}\n\t\t\t`;case"heading-md-bold":return`\n\t\t\t\tfont-family: ${getToken("font-family-title")};\n\t\t\t\tline-height: ${getToken("line-height-5")};\n\t\t\t\tfont-size: ${getToken("font-size-5")};\n\t\t\t\tfont-weight: ${getToken("font-weight-bold")}\n\t\t\t`;case"heading-md":return`\n\t\t\t\tfont-family: ${getToken("font-family-title")};\n\t\t\t\tline-height: ${getToken("line-height-5")};\n\t\t\t\tfont-size: ${getToken("font-size-5")};\n\t\t\t\tfont-weight: ${getToken("font-weight-regular")}\n\t\t\t`;case"heading-sm-bold":return`\n\t\t\t\tfont-family: ${getToken("font-family-title")};\n\t\t\t\tline-height: ${getToken("line-height-5")};\n\t\t\t\tfont-size: ${getToken("font-size-4")};\n\t\t\t\tfont-weight: ${getToken("font-weight-bold")}\n\t\t\t`;case"heading-sm":return`\n\t\t\t\tfont-family: ${getToken("font-family-title")};\n\t\t\t\tline-height: ${getToken("line-height-5")};\n\t\t\t\tfont-size: ${getToken("font-size-4")};\n\t\t\t\tfont-weight: ${getToken("font-weight-regular")}\n\t\t\t`;case"body-lg-bold":return`\n\t\t\t\t\tfont-family: ${getToken("font-family-default")};\n\t\t\t\t\tline-height: ${getToken("line-height-6")};\n\t\t\t\t\tfont-size: ${getToken("font-size-5")};\n\t\t\t\t\tfont-weight: ${getToken("font-weight-bold")}\n\t\t\t\t`;case"body-lg":return`\n\t\t\t\t\tfont-family: ${getToken("font-family-default")};\n\t\t\t\t\tline-height: ${getToken("line-height-6")};\n\t\t\t\t\tfont-size: ${getToken("font-size-5")};\n\t\t\t\t\tfont-weight: ${getToken("font-weight-regular")}\n\t\t\t\t`;case"body-md":case"number-md":return`\n\t\t\t\tfont-family: ${getToken("font-family-default")};\n\t\t\t\tline-height: ${getToken("line-height-5")};\n\t\t\t\tfont-size: ${getToken("font-size-3")};\n\t\t\t\tfont-weight: ${getToken("font-weight-regular")}\n\t\t\t`;case"body-md-underline":return`\n\t\t\t\tfont-family: ${getToken("font-family-default")};\n\t\t\t\tline-height: ${getToken("line-height-5")};\n\t\t\t\tfont-size: ${getToken("font-size-3")};\n\t\t\t\tfont-weight: ${getToken("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: ${getToken("font-family-default")};\n\t\t\t\tline-height: ${getToken("line-height-5")};\n\t\t\t\tfont-size: ${getToken("font-size-3")};\n\t\t\t\tfont-weight: ${getToken("font-weight-bold")}\n\t\t\t`;case"body-md-bold-underline":return`\n\t\t\t\tfont-family: ${getToken("font-family-default")};\n\t\t\t\tline-height: ${getToken("line-height-5")};\n\t\t\t\tfont-size: ${getToken("font-size-3")};\n\t\t\t\tfont-weight: ${getToken("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: ${getToken("font-family-default")};\n\t\t\t\tline-height: ${getToken("line-height-4")};\n\t\t\t\tfont-size: ${getToken("font-size-2")};\n\t\t\t\tfont-weight: ${getToken("font-weight-regular")}\n\t\t\t`;case"body-sm-underline":return`\n\t\t\t\tfont-family: ${getToken("font-family-default")};\n\t\t\t\tline-height: ${getToken("line-height-4")};\n\t\t\t\tfont-size: ${getToken("font-size-2")};\n\t\t\t\tfont-weight: ${getToken("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: ${getToken("font-family-default")};\n\t\t\t\tline-height: ${getToken("line-height-4")};\n\t\t\t\tfont-size: ${getToken("font-size-2")};\n\t\t\t\tfont-weight: ${getToken("font-weight-bold")}\n\t\t\t`;case"body-sm-bold-underline":return`\n\t\t\t\tfont-family: ${getToken("font-family-default")};\n\t\t\t\tline-height: ${getToken("line-height-4")};\n\t\t\t\tfont-size: ${getToken("font-size-2")};\n\t\t\t\tfont-weight: ${getToken("font-weight-bold")};\n\t\t\t\ttext-decoration: underline\n\t\t\t`;case"button-lg":return`\n\t\t\t\tfont-family: ${getToken("font-family-default")};\n\t\t\t\tline-height: ${getToken("line-height-1")};\n\t\t\t\tfont-size: ${getToken("font-size-4")};\n\t\t\t\tfont-weight: ${getToken("font-weight-bold")}\n\t\t\t`;case"button-md":return`\n\t\t\t\tfont-family: ${getToken("font-family-default")};\n\t\t\t\tline-height: ${getToken("line-height-1")};\n\t\t\t\tfont-size: ${getToken("font-size-3")};\n\t\t\t\tfont-weight: ${getToken("font-weight-bold")}\n\t\t\t`;case"button-sm":return`\n\t\t\t\tfont-family: ${getToken("font-family-default")};\n\t\t\t\tline-height: ${getToken("line-height-1")};\n\t\t\t\tfont-size: ${getToken("font-size-2")};\n\t\t\t\tfont-weight: ${getToken("font-weight-bold")}\n\t\t\t`;case"table-header-md":return`\n\t\t\t\tfont-family: ${getToken("font-family-default")};\n\t\t\t\tline-height: ${getToken("line-height-1")};\n\t\t\t\tfont-size: ${getToken("font-size-3")};\n\t\t\t\tfont-weight: ${getToken("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: ${getToken("font-family-default")};\n\t\t\t\tline-height: ${getToken("line-height-1")};\n\t\t\t\tfont-size: ${getToken("font-size-2")};\n\t\t\t\tfont-weight: ${getToken("font-weight-regular")}\n\t\t\t`;case"chips-md":return`\n\t\t\t\t\tfont-family: ${getToken("font-family-default")};\n\t\t\t\t\tline-height: ${getToken("line-height-1")};\n\t\t\t\t\tfont-size: ${getToken("font-size-2")};\n\t\t\t\t\tfont-weight: ${getToken("font-weight-bold")}\n\t\t\t\t`;case"chips-sm":return`\n\t\t\t\tfont-family: ${getToken("font-family-default")};\n\t\t\t\tline-height: ${getToken("line-height-1")};\n\t\t\t\tfont-size: ${getToken("font-size-1")};\n\t\t\t\tfont-weight: ${getToken("font-weight-medium")};\n\t\t\t\ttext-transform: uppercase\n\t\t\t`;default:return""}}function typography(t){const e=r$9("\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 r$9(`${e}\n${getVariant(t)}`)}function styles$I(){return i$5`
|
|
49
49
|
:host {
|
|
50
50
|
background-color: ${getColor("color-background-primary")};
|
|
51
51
|
width: 100%;
|
|
@@ -129,7 +129,7 @@ var l$3,o$5;u[d]=!0,u.elementProperties=new Map,u.elementStyles=[],u.shadowRootO
|
|
|
129
129
|
will-change: height;
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
`}function accordionTitleStyles(){return i$
|
|
132
|
+
`}function accordionTitleStyles(){return i$5`
|
|
133
133
|
:host {
|
|
134
134
|
display: flex;
|
|
135
135
|
text-align: left;
|
|
@@ -141,14 +141,45 @@ var l$3,o$5;u[d]=!0,u.elementProperties=new Map,u.elementStyles=[],u.shadowRootO
|
|
|
141
141
|
flex: 1;
|
|
142
142
|
padding-left: ${getToken("spacing-1")};
|
|
143
143
|
}
|
|
144
|
-
`}function accordionContentStyles(){return i$
|
|
144
|
+
`}function accordionContentStyles(){return i$5`
|
|
145
145
|
.m-accordion-content {
|
|
146
146
|
padding: ${getToken("spacing-2")} ${getToken("spacing-4")} ${getToken("spacing-4")};
|
|
147
147
|
}
|
|
148
|
-
`}function
|
|
148
|
+
`}function __classPrivateFieldGet(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"==typeof SuppressedError&&SuppressedError;
|
|
149
|
+
/**
|
|
150
|
+
* @license
|
|
151
|
+
* Copyright 2019 Google LLC
|
|
152
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
153
|
+
*/
|
|
154
|
+
const t$3$1=window,e$5$1=t$3$1.ShadowRoot&&(void 0===t$3$1.ShadyCSS||t$3$1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$5=Symbol(),n$6=new WeakMap;let o$6=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==s$5)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(e$5$1&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=n$6.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&n$6.set(e,t))}return t}toString(){return this.cssText}};const r$5=t=>new o$6("string"==typeof t?t:t+"",void 0,s$5),S$2=(t,e)=>{e$5$1?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=t$3$1.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))},c$2=e$5$1?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return r$5(e)})(t):t
|
|
155
|
+
/**
|
|
156
|
+
* @license
|
|
157
|
+
* Copyright 2017 Google LLC
|
|
158
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
159
|
+
*/;var s$4$1;const e$4$1=window,r$4=e$4$1.trustedTypes,h$3=r$4?r$4.emptyScript:"",o$5=e$4$1.reactiveElementPolyfillSupport,n$5={toAttribute(t,e){switch(e){case Boolean:t=t?h$3: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}},a$3=(t,e)=>e!==t&&(e==e||t==t),l$3={attribute:!0,type:String,converter:n$5,reflect:!1,hasChanged:a$3},d$2="finalized";let u$2=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}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=l$3){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)||l$3}static finalize(){if(this.hasOwnProperty(d$2))return!1;this[d$2]=!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(c$2(t))}else void 0!==t&&e.push(c$2(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}_$Eu(){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 S$2(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=l$3){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:n$5).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:n$5;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||a$3)(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){}};
|
|
160
|
+
/**
|
|
161
|
+
* @license
|
|
162
|
+
* Copyright 2017 Google LLC
|
|
163
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
164
|
+
*/var t$2$1;u$2[d$2]=!0,u$2.elementProperties=new Map,u$2.elementStyles=[],u$2.shadowRootOptions={mode:"open"},null==o$5||o$5({ReactiveElement:u$2}),(null!==(s$4$1=e$4$1.reactiveElementVersions)&&void 0!==s$4$1?s$4$1:e$4$1.reactiveElementVersions=[]).push("1.6.3");const i$1$1=window,s$3$1=i$1$1.trustedTypes,e$3$1=s$3$1?s$3$1.createPolicy("lit-html",{createHTML:t=>t}):void 0,o$4="$lit$",n$4$1=`lit$${(Math.random()+"").slice(9)}$`,l$2$1="?"+n$4$1,h$2=`<${l$2$1}>`,r$3=document,u$1=()=>r$3.createComment(""),d$1=t=>null===t||"object"!=typeof t&&"function"!=typeof t,c$1=Array.isArray,v=t=>c$1(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),a$2="[ \t\n\f\r]",f=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_$1=/-->/g,m$1=/>/g,p=RegExp(`>|${a$2}(?:([^\\s"'>=/]+)(${a$2}*=${a$2}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),g=/'/g,$=/"/g,y=/^(?:script|style|textarea|title)$/i,w=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),b=w(2),T=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),E=new WeakMap,C=r$3.createTreeWalker(r$3,129,null,!1);function P(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==e$3$1?e$3$1.createHTML(e):e}const V=(t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",s=f;for(let e=0;e<o;e++){const o=t[e];let a,l,c=-1,d=0;for(;d<o.length&&(s.lastIndex=d,l=s.exec(o),null!==l);)d=s.lastIndex,s===f?"!--"===l[1]?s=_$1:void 0!==l[1]?s=m$1:void 0!==l[2]?(y.test(l[2])&&(r=RegExp("</"+l[2],"g")),s=p):void 0!==l[3]&&(s=p):s===p?">"===l[0]?(s=null!=r?r:f,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?p:'"'===l[3]?$:g):s===$||s===g?s=p:s===_$1||s===m$1?s=f:(s=p,r=void 0);const h=s===p&&t[e+1].startsWith("/>")?" ":"";n+=s===f?o+h$2:c>=0?(i.push(a),o.slice(0,c)+o$4+o.slice(c)+n$4$1+h):o+n$4$1+(-2===c?(i.push(void 0),e):h)}return[P(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};class N{constructor({strings:t,_$litType$:e},o){let i;this.parts=[];let r=0,n=0;const s=t.length-1,a=this.parts,[l,c]=V(t,e);if(this.el=N.createElement(l,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())&&a.length<s;){if(1===i.nodeType){if(i.hasAttributes()){const t=[];for(const e of i.getAttributeNames())if(e.endsWith(o$4)||e.startsWith(n$4$1)){const o=c[n++];if(t.push(e),void 0!==o){const t=i.getAttribute(o.toLowerCase()+o$4).split(n$4$1),e=/([.?@])?(.*)/.exec(o);a.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?H:"?"===e[1]?L:"@"===e[1]?z:k})}else a.push({type:6,index:r})}for(const e of t)i.removeAttribute(e)}if(y.test(i.tagName)){const t=i.textContent.split(n$4$1),e=t.length-1;if(e>0){i.textContent=s$3$1?s$3$1.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],u$1()),C.nextNode(),a.push({type:2,index:++r});i.append(t[e],u$1())}}}else if(8===i.nodeType)if(i.data===l$2$1)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(n$4$1,t+1));)a.push({type:7,index:r}),t+=n$4$1.length-1}r++}}static createElement(t,e){const o=r$3.createElement("template");return o.innerHTML=t,o}}function S$1(t,e,o=t,i){var r,n,s,a;if(e===T)return e;let l=void 0!==i?null===(r=o._$Co)||void 0===r?void 0:r[i]:o._$Cl;const c=d$1(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=S$1(t,l._$AS(t,e.values),l,i)),e}class M{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:r$3).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 R(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new Z(n,this,t)),this._$AV.push(e),l=i[++a]}s!==(null==l?void 0:l.index)&&(n=C.nextNode(),s++)}return C.currentNode=r$3,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++}}class R{constructor(t,e,o,i){var r;this.type=2,this._$AH=A,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=S$1(this,t,e),d$1(t)?t===A||null==t||""===t?(this._$AH!==A&&this._$AR(),this._$AH=A):t!==this._$AH&&t!==T&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):v(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!==A&&d$1(this._$AH)?this._$AA.nextSibling.data=t:this.$(r$3.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=N.createElement(P(i.h,i.h[0]),this.options)),i);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.v(o);else{const t=new M(r,this),e=t.u(this.options);t.v(o),this.$(e),this._$AH=t}}_$AC(t){let e=E.get(t.strings);return void 0===e&&E.set(t.strings,e=new N(t)),e}T(t){c$1(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 R(this.k(u$1()),this.k(u$1()),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 k{constructor(t,e,o,i,r){this.type=1,this._$AH=A,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=A}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=S$1(this,t,e,0),n=!d$1(t)||t!==this._$AH&&t!==T,n&&(this._$AH=t);else{const i=t;let s,a;for(t=r[0],s=0;s<r.length-1;s++)a=S$1(this,i[o+s],e,s),a===T&&(a=this._$AH[s]),n||(n=!d$1(a)||a!==this._$AH[s]),a===A?t=A:t!==A&&(t+=(null!=a?a:"")+r[s+1]),this._$AH[s]=a}n&&!i&&this.j(t)}j(t){t===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class H extends k{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===A?void 0:t}}const I=s$3$1?s$3$1.emptyScript:"";class L extends k{constructor(){super(...arguments),this.type=4}j(t){t&&t!==A?this.element.setAttribute(this.name,I):this.element.removeAttribute(this.name)}}class z extends k{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=S$1(this,t,e,0))&&void 0!==o?o:A)===T)return;const i=this._$AH,r=t===A&&i!==A||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==A&&(i===A||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 Z{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){S$1(this,t)}}const B=i$1$1.litHtmlPolyfillSupport;null==B||B(N,R),(null!==(t$2$1=i$1$1.litHtmlVersions)&&void 0!==t$2$1?t$2$1:i$1$1.litHtmlVersions=[]).push("2.8.0");const D=(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 R(e.insertBefore(u$1(),t),t,void 0,null!=o?o:{})}return s._$AI(t),s
|
|
165
|
+
/**
|
|
166
|
+
* @license
|
|
167
|
+
* Copyright 2019 Google LLC
|
|
168
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
169
|
+
*/},t$1$1=window,e$2$1=t$1$1.ShadowRoot&&(void 0===t$1$1.ShadyCSS||t$1$1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$2$1=Symbol(),n$3$1=new WeakMap;let o$3$1=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==s$2$1)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(e$2$1&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=n$3$1.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&n$3$1.set(e,t))}return t}toString(){return this.cssText}};const r$2=t=>new o$3$1("string"==typeof t?t:t+"",void 0,s$2$1),i$4=(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 o$3$1(o,t,s$2$1)},S=(t,e)=>{e$2$1?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=t$1$1.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))},c=e$2$1?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return r$2(e)})(t):t
|
|
170
|
+
/**
|
|
171
|
+
* @license
|
|
172
|
+
* Copyright 2017 Google LLC
|
|
173
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
174
|
+
*/;var s$1$1;const e$1$1=window,r$1$1=e$1$1.trustedTypes,h$1=r$1$1?r$1$1.emptyScript:"",o$2$1=e$1$1.reactiveElementPolyfillSupport,n$2$1={toAttribute(t,e){switch(e){case Boolean:t=t?h$1: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}},a$1=(t,e)=>e!==t&&(e==e||t==t),l$1$1={attribute:!0,type:String,converter:n$2$1,reflect:!1,hasChanged:a$1},d="finalized";class u extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}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=l$1$1){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)||l$1$1}static finalize(){if(this.hasOwnProperty(d))return!1;this[d]=!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(c(t))}else void 0!==t&&e.push(c(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}_$Eu(){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 S(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=l$1$1){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:n$2$1).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:n$2$1;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||a$1)(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){}}
|
|
175
|
+
/**
|
|
176
|
+
* @license
|
|
177
|
+
* Copyright 2017 Google LLC
|
|
178
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
179
|
+
*/var l$4,o$1$1;u[d]=!0,u.elementProperties=new Map,u.elementStyles=[],u.shadowRootOptions={mode:"open"},null==o$2$1||o$2$1({ReactiveElement:u}),(null!==(s$1$1=e$1$1.reactiveElementVersions)&&void 0!==s$1$1?s$1$1:e$1$1.reactiveElementVersions=[]).push("1.6.3");let s$6=class extends u{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=D(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 T}};s$6.finalized=!0,s$6._$litElement$=!0,null===(l$4=globalThis.litElementHydrateSupport)||void 0===l$4||l$4.call(globalThis,{LitElement:s$6});const n$1$1=globalThis.litElementPolyfillSupport;null==n$1$1||n$1$1({LitElement:s$6}),(null!==(o$1$1=globalThis.litElementVersions)&&void 0!==o$1$1?o$1$1:globalThis.litElementVersions=[]).push("3.3.3");var toCSSValue,themes={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, 84, 84","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%","media-screen-desktop":"1025px","media-screen-tablet":"481px","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","global-height-small":"1.75rem","global-height-default":"2.5rem","global-height-large":"3rem","platform-font-default":"'Manrope', sans-serif","platform-font-title":"'PlusJakartaSans', 'Manrope', sans-serif"}},r$6=themes;function t$4(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]);return t.concat(i||Array.prototype.slice.call(e))}function e$6(t,e){return t.filter((function(t){return t.startsWith(e)}))}function o$7(t,e){return t.filter((function(t){return!t.startsWith(e)}))}"function"==typeof SuppressedError&&SuppressedError;var n$7=Object.keys(r$6.LoadsmartTheme),a$4=t$4([],o$7(o$7(n$7,"brand-"),"platform-"),!0).sort((function(t,e){return t.localeCompare(e,void 0,{numeric:!0,sensitivity:"base"})}));e$6(a$4,"color-background-"),e$6(a$4,"border-radius-"),e$6(a$4,"border-"),e$6(a$4,"color-"),e$6(a$4,"elevation-"),e$6(a$4,"font-family-"),e$6(a$4,"font-size-"),e$6(a$4,"font-weight-"),e$6(a$4,"global-"),e$6(a$4,"glow-"),e$6(a$4,"line-height-"),e$6(a$4,"opacity-");var _=e$6(a$4,"spacing-");function K(t){return r$6.LoadsmartTheme[t]}function m(t){var e=K(t);return null==e?e:"--m-".concat(t)}function h(t,e){var o=K(t);return null==o?"":t.startsWith("color-")?"rgba(var(".concat(m(t),", ").concat(o,"), ").concat(null!=e?e:1,")"):"var(".concat(m(t),", ").concat(o,")")}function styles$H(){return[i$4`
|
|
149
180
|
:host {
|
|
150
181
|
--m-icon-size: 16px;
|
|
151
|
-
--m-icon-color: ${
|
|
182
|
+
--m-icon-color: ${r$2(toCSSValue("color-text-primary"))};
|
|
152
183
|
|
|
153
184
|
display: inline-flex;
|
|
154
185
|
align-items: center;
|
|
@@ -159,7 +190,7 @@ var l$3,o$5;u[d]=!0,u.elementProperties=new Map,u.elementStyles=[],u.shadowRootO
|
|
|
159
190
|
}
|
|
160
191
|
|
|
161
192
|
svg {
|
|
162
|
-
|
|
193
|
+
transition: color 0.35s ease-in-out 0s, fill 0.35s ease-in-out 0s;
|
|
163
194
|
|
|
164
195
|
inline-size: var(--m-icon-size);
|
|
165
196
|
block-size: var(--m-icon-size);
|
|
@@ -167,13 +198,13 @@ var l$3,o$5;u[d]=!0,u.elementProperties=new Map,u.elementStyles=[],u.shadowRootO
|
|
|
167
198
|
color: var(--m-icon-color);
|
|
168
199
|
fill: var(--m-icon-color);
|
|
169
200
|
}
|
|
170
|
-
`]}const icons=new Map([["alert-circle",()=>import("./alert-circle-
|
|
201
|
+
`]}e$6(a$4,"media-"),t$4(["none"],_,!0),toCSSValue=h;const icons=new Map([["alert-circle",()=>import("./alert-circle-0yyTnB0M-Dd2iwsJN.js")],["arrow-left",()=>import("./arrow-left-DOwM8dD--Bemagng4.js")],["arrow-sort-down",()=>import("./arrow-sort-down-DwJRrMFD-CV6cRBEt.js")],["arrow-sort-up",()=>import("./arrow-sort-up-DTuf1JbN-CwnmvifJ.js")],["arrow-sort-up-down",()=>import("./arrow-sort-up-down-CekAJqEq-3y2BzUOT.js")],["attention",()=>import("./attention-CcLOU7qx-BC6VhZgL.js")],["bell",()=>import("./bell-uKZILMt4-BDQv0gA9.js")],["caret-down",()=>import("./caret-down-BIfrA-eY-DldOHuL3.js")],["caret-left",()=>import("./caret-left-sofEMjOB-DvW7n9Gm.js")],["caret-right",()=>import("./caret-right-DyRw4vWq-C09UvrPT.js")],["check",()=>import("./check-CBIF9zkj-vkm_vkC6.js")],["close",()=>import("./close-V1xd5yiJ-B9WyqFwO.js")],["double-caret-left",()=>import("./double-caret-left-C0u_I_64-DEOH-B_a.js")],["double-caret-right",()=>import("./double-caret-right-DWeiJR91-D9HlOYuA.js")],["indeterminate",()=>import("./indeterminate-CCqFCJnX-BmhAGLrL.js")],["info-circle",()=>import("./info-circle-O-nqY8__-B6GUXwBw.js")]]);var _Icon_loadIcon,_Accordion_instances,_Accordion_accordionTrigger_get,_Accordion_accordionPanel_get,_Accordion_accordionContent_get,_Accordion_handleExpand,_Accordion_toggle,_Accordion_handleTransition;icons.keys();class Icon extends s$6{static get properties(){return{name:{type:String},size:{type:String},color:{type:String},loading:{state:!0}}}constructor(){super(),this.icon=null,_Icon_loadIcon.set(this,(async()=>{icons.has(this.name);try{this.icon=null;const{default:t}=await icons.get(this.name)();this.icon=t}catch{}finally{this.requestUpdate()}})),this.icon=null}connectedCallback(){super.connectedCallback(),__classPrivateFieldGet(this,_Icon_loadIcon,"f").call(this)}update(t){super.update(t),t.has("name")&&__classPrivateFieldGet(this,_Icon_loadIcon,"f").call(this)}updated(t){super.updated(t),t.has("size")&&null!=this.size&&this.style.setProperty("--m-icon-size",`${parseInt(String(this.size),10)||16}px`),t.has("color")&&null!=this.color&&this.style.setProperty("--m-icon-color",toCSSValue(this.color))}render(){return null!=this.name&&icons.has(this.name)&&null!=this.icon?this.icon:A}}_Icon_loadIcon=new WeakMap,Icon.styles=[styles$H()],window.customElements.define("m-icon",Icon);class Accordion extends Component{static get properties(){return{disabled:{type:Boolean,reflect:!0},expanded:{type:Boolean,reflect:!0}}}constructor(){super(),_Accordion_instances.add(this),_Accordion_handleTransition.set(this,(()=>{this.expanded&&!this.disabled&&(__classPrivateFieldGet$1(this,_Accordion_instances,"a",_Accordion_accordionPanel_get).style.height="auto")})),this.disabled=!1,this.expanded=!1,this.resizeObserver=new ResizeObserver((t=>{this.panelHeight=t[0].target.scrollHeight}))}firstUpdated(){__classPrivateFieldGet$1(this,_Accordion_instances,"a",_Accordion_accordionContent_get).style.transition="visibility 0.35s",__classPrivateFieldGet$1(this,_Accordion_instances,"a",_Accordion_accordionContent_get).setAttribute("role","region"),this.resizeObserver.observe(__classPrivateFieldGet$1(this,_Accordion_instances,"a",_Accordion_accordionPanel_get)),__classPrivateFieldGet$1(this,_Accordion_instances,"a",_Accordion_accordionPanel_get).addEventListener("transitionend",__classPrivateFieldGet$1(this,_Accordion_handleTransition,"f"))}update(t){super.update(t),(t.has("expanded")||t.has("disabled"))&&__classPrivateFieldGet$1(this,_Accordion_instances,"m",_Accordion_handleExpand).call(this)}disconnectedCallback(){super.disconnectedCallback(),__classPrivateFieldGet$1(this,_Accordion_instances,"a",_Accordion_accordionPanel_get).removeEventListener("transitionend",__classPrivateFieldGet$1(this,_Accordion_handleTransition,"f")),this.resizeObserver.disconnect()}render(){return x`
|
|
171
202
|
<article class="m-accordion">
|
|
172
203
|
<h3 class="m-accordion-header">
|
|
173
204
|
<button
|
|
174
205
|
id="accordion-trigger"
|
|
175
206
|
class="m-accordion-trigger"
|
|
176
|
-
@click="${__classPrivateFieldGet(this,_Accordion_instances,"m",_Accordion_toggle)}"
|
|
207
|
+
@click="${__classPrivateFieldGet$1(this,_Accordion_instances,"m",_Accordion_toggle)}"
|
|
177
208
|
?disabled=${Boolean(this.disabled)}
|
|
178
209
|
aria-controls="section"
|
|
179
210
|
tabindex="0"
|
|
@@ -191,10 +222,10 @@ var l$3,o$5;u[d]=!0,u.elementProperties=new Map,u.elementStyles=[],u.shadowRootO
|
|
|
191
222
|
<slot name="content"></slot>
|
|
192
223
|
</section>
|
|
193
224
|
</article>
|
|
194
|
-
`}}_Accordion_handleTransition=new WeakMap,_Accordion_instances=new WeakSet,_Accordion_accordionTrigger_get=function(){return this.renderRoot.querySelector(".m-accordion-trigger")},_Accordion_accordionPanel_get=function(){return this.renderRoot.querySelector(".m-accordion-panel")},_Accordion_accordionContent_get=function(){return this.querySelector("m-accordion-content")},_Accordion_handleExpand=function(){__classPrivateFieldGet(this,_Accordion_instances,"a",_Accordion_accordionTrigger_get).setAttribute("aria-expanded",`${this.expanded&&!this.disabled}`),__classPrivateFieldGet(this,_Accordion_instances,"a",_Accordion_accordionPanel_get).style.height=`${this.panelHeight}px`,this.expanded&&!this.disabled?__classPrivateFieldGet(this,_Accordion_instances,"a",_Accordion_accordionContent_get).style.visibility="visible":setTimeout((()=>{__classPrivateFieldGet(this,_Accordion_instances,"a",_Accordion_accordionPanel_get).style.height="0px",__classPrivateFieldGet(this,_Accordion_instances,"a",_Accordion_accordionContent_get).style.visibility="hidden"}))},_Accordion_toggle=function(){this.expanded=!this.expanded,this.emit("m-toggle",{detail:{name:"accordion",value:this.expanded}})},Accordion.styles=[styles$I()],window.customElements.define("m-accordion",Accordion);class AccordionTitle extends Component{static get properties(){return{slot:{type:String,reflect:!0}}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","button"),this.slot="title"}render(){return x`
|
|
225
|
+
`}}_Accordion_handleTransition=new WeakMap,_Accordion_instances=new WeakSet,_Accordion_accordionTrigger_get=function(){return this.renderRoot.querySelector(".m-accordion-trigger")},_Accordion_accordionPanel_get=function(){return this.renderRoot.querySelector(".m-accordion-panel")},_Accordion_accordionContent_get=function(){return this.querySelector("m-accordion-content")},_Accordion_handleExpand=function(){__classPrivateFieldGet$1(this,_Accordion_instances,"a",_Accordion_accordionTrigger_get).setAttribute("aria-expanded",`${this.expanded&&!this.disabled}`),__classPrivateFieldGet$1(this,_Accordion_instances,"a",_Accordion_accordionPanel_get).style.height=`${this.panelHeight}px`,this.expanded&&!this.disabled?__classPrivateFieldGet$1(this,_Accordion_instances,"a",_Accordion_accordionContent_get).style.visibility="visible":setTimeout((()=>{__classPrivateFieldGet$1(this,_Accordion_instances,"a",_Accordion_accordionPanel_get).style.height="0px",__classPrivateFieldGet$1(this,_Accordion_instances,"a",_Accordion_accordionContent_get).style.visibility="hidden"}))},_Accordion_toggle=function(){this.expanded=!this.expanded,this.emit("m-toggle",{detail:{name:"accordion",value:this.expanded}})},Accordion.styles=[styles$I()],window.customElements.define("m-accordion",Accordion);class AccordionTitle extends Component{static get properties(){return{slot:{type:String,reflect:!0}}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","button"),this.slot="title"}render(){return x`
|
|
195
226
|
<slot name="leading"></slot>
|
|
196
227
|
<div class="m-accordion-text"><slot></slot></div>
|
|
197
|
-
`}}AccordionTitle.styles=[accordionTitleStyles()],window.customElements.define("m-accordion-title",AccordionTitle);class AccordionContent extends s$
|
|
228
|
+
`}}AccordionTitle.styles=[accordionTitleStyles()],window.customElements.define("m-accordion-title",AccordionTitle);class AccordionContent extends s$7{static get properties(){return{slot:{type:String,reflect:!0}}}connectedCallback(){super.connectedCallback(),this.slot="content"}render(){return x`<div class="m-accordion-content"><slot></slot></div>`}}function styles$G(){return i$5`
|
|
198
229
|
:host {
|
|
199
230
|
display: block;
|
|
200
231
|
}
|
|
@@ -203,7 +234,7 @@ var l$3,o$5;u[d]=!0,u.elementProperties=new Map,u.elementStyles=[],u.shadowRootO
|
|
|
203
234
|
* @license
|
|
204
235
|
* Copyright 2020 Google LLC
|
|
205
236
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
206
|
-
*/AccordionContent.styles=[accordionContentStyles()],window.customElements.define("m-accordion-content",AccordionContent);const e$5=Symbol.for(""),l$2=t=>{if((null==t?void 0:t.r)===e$5)return null==t?void 0:t._$litStatic$},o$3=t=>({_$litStatic$:t,r:e$5}),i$3=(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:e$5}),s$4=new Map,a=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=l$2(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=s$4.get(t))&&(s.raw=s,s$4.set(t,e=s)),o=a}return t(e,...o)},n$4=a(x),l$1=t=>null!=t?t:A
|
|
237
|
+
*/AccordionContent.styles=[accordionContentStyles()],window.customElements.define("m-accordion-content",AccordionContent);const e$5=Symbol.for(""),l$2=t=>{if((null==t?void 0:t.r)===e$5)return null==t?void 0:t._$litStatic$},o$3=t=>({_$litStatic$:t,r:e$5}),i$3=(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:e$5}),s$4=new Map,a=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=l$2(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=s$4.get(t))&&(s.raw=s,s$4.set(t,e=s)),o=a}return t(e,...o)},n$4=a(x),l$1=t=>null!=t?t:A$1
|
|
207
238
|
/**
|
|
208
239
|
* @license
|
|
209
240
|
* Copyright 2017 Google LLC
|
|
@@ -218,7 +249,7 @@ var l$3,o$5;u[d]=!0,u.elementProperties=new Map,u.elementStyles=[],u.shadowRootO
|
|
|
218
249
|
* @license
|
|
219
250
|
* Copyright 2018 Google LLC
|
|
220
251
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
221
|
-
*/const o$2=e$4(class extends i$2{constructor(t){var e;if(super(t),t.type!==t$3.ATTRIBUTE||"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 T}});var _FormControl_form,_FormControl_updateAssignedForm,_Button_instances,_Button_element_get,_Button_isDisabled,_Button_getRole,_Button_setDisabled,_Button_setTabIndex,_Button_handleClick,_Button_isLink,_Badge_instances,_Badge_counter_get,_Badge_formatCounter;class FormControl extends s$
|
|
252
|
+
*/const o$2=e$4(class extends i$2{constructor(t){var e;if(super(t),t.type!==t$3.ATTRIBUTE||"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 T$1}});var _FormControl_form,_FormControl_updateAssignedForm,_Button_instances,_Button_element_get,_Button_isDisabled,_Button_getRole,_Button_setDisabled,_Button_setTabIndex,_Button_handleClick,_Button_isLink,_Badge_instances,_Badge_counter_get,_Badge_formatCounter;class FormControl extends s$7{constructor(){super(...arguments),_FormControl_form.set(this,void 0),this.getForm=()=>__classPrivateFieldGet$1(this,_FormControl_form,"f"),_FormControl_updateAssignedForm.set(this,(()=>{if(this.hasAttribute("form")){const t=this.getRootNode(),e=this.getAttribute("form");__classPrivateFieldSet(this,_FormControl_form,t.getElementById(e),"f")}else __classPrivateFieldSet(this,_FormControl_form,this.closest("form"),"f")}))}static get properties(){return{form:{type:String,reflect:!0}}}updated(t){super.updated(t),(t.has("form")||null==__classPrivateFieldGet$1(this,_FormControl_form,"f"))&&__classPrivateFieldGet$1(this,_FormControl_updateAssignedForm,"f").call(this)}}function styles$F(){return i$5`
|
|
222
253
|
:host {
|
|
223
254
|
--m-button-background-color: transparent;
|
|
224
255
|
--m-button-base-size: ${getToken("global-height-default")};
|
|
@@ -312,15 +343,17 @@ var l$3,o$5;u[d]=!0,u.elementProperties=new Map,u.elementStyles=[],u.shadowRootO
|
|
|
312
343
|
display: inline-flex;
|
|
313
344
|
align-items: center;
|
|
314
345
|
|
|
315
|
-
${p(0)};
|
|
316
|
-
${m(0)};
|
|
346
|
+
${p$1(0)};
|
|
347
|
+
${m$2(0)};
|
|
348
|
+
|
|
349
|
+
pointer-events: none;
|
|
317
350
|
}
|
|
318
351
|
|
|
319
352
|
slot[name='leading']::slotted(span),
|
|
320
353
|
slot[name='trailing']::slotted(span) {
|
|
321
354
|
justify-content: center;
|
|
322
355
|
}
|
|
323
|
-
`}function styles$E(){return[styles$F(),i$
|
|
356
|
+
`}function styles$E(){return[styles$F(),i$5`
|
|
324
357
|
.button.is-loading:not(.-icon, .-icon-secondary) *:not(.loader) {
|
|
325
358
|
visibility: hidden;
|
|
326
359
|
}
|
|
@@ -567,29 +600,29 @@ var l$3,o$5;u[d]=!0,u.elementProperties=new Map,u.elementStyles=[],u.shadowRootO
|
|
|
567
600
|
|
|
568
601
|
pointer-events: none;
|
|
569
602
|
}
|
|
570
|
-
`]}_FormControl_form=new WeakMap,_FormControl_updateAssignedForm=new WeakMap;class Button extends FormControl{get tag(){const t=__classPrivateFieldGet(this,_Button_instances,"m",_Button_isLink).call(this)?"a":"button";return i$3`${o$3(t)}`}static get properties(){return{...FormControl.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},type:{type:String},href:{type:String,reflect:!0},target:{type:String},download:{type:String}}}constructor(){super(),_Button_instances.add(this),_Button_isDisabled.set(this,(()=>Boolean(this.disabled)||Boolean(this.loading))),_Button_getRole.set(this,(()=>__classPrivateFieldGet(this,_Button_instances,"m",_Button_isLink).call(this)?"link":"button")),_Button_setDisabled.set(this,(()=>{const t=__classPrivateFieldGet(this,_Button_isDisabled,"f").call(this);this.setAttribute("aria-disabled",String(t))})),_Button_setTabIndex.set(this,(()=>{this.disabled?this.setAttribute("tabindex","-1"):this.removeAttribute("tabindex")})),_Button_handleClick.set(this,(t=>{if(this.disabled||this.loading)return t.preventDefault(),void t.stopPropagation();"submit"!==this.type?"reset"===this.type&&this.getForm()?.reset():this.getForm()?.requestSubmit()})),this.disabled=!1,this.loading=!1,this.size="default",this.type="button",this.variant="secondary",this.target="_self"}connectedCallback(){super.connectedCallback(),this.setAttribute("role",__classPrivateFieldGet(this,_Button_getRole,"f").call(this)),this.addEventListener("click",__classPrivateFieldGet(this,_Button_handleClick,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",__classPrivateFieldGet(this,_Button_handleClick,"f"))}willUpdate(t){super.willUpdate(t),t.has("href")&&this.setAttribute("role",__classPrivateFieldGet(this,_Button_getRole,"f").call(this)),__classPrivateFieldGet(this,_Button_setTabIndex,"f").call(this)}updated(t){super.updated(t),(t.has("disabled")||t.has("loading"))&&__classPrivateFieldGet(this,_Button_setDisabled,"f").call(this)}render(){const t=__classPrivateFieldGet(this,_Button_instances,"m",_Button_isLink).call(this);return n$4`
|
|
603
|
+
`]}_FormControl_form=new WeakMap,_FormControl_updateAssignedForm=new WeakMap;class Button extends FormControl{get tag(){const t=__classPrivateFieldGet$1(this,_Button_instances,"m",_Button_isLink).call(this)?"a":"button";return i$3`${o$3(t)}`}static get properties(){return{...FormControl.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},type:{type:String},href:{type:String,reflect:!0},target:{type:String},download:{type:String}}}constructor(){super(),_Button_instances.add(this),_Button_isDisabled.set(this,(()=>Boolean(this.disabled)||Boolean(this.loading))),_Button_getRole.set(this,(()=>__classPrivateFieldGet$1(this,_Button_instances,"m",_Button_isLink).call(this)?"link":"button")),_Button_setDisabled.set(this,(()=>{const t=__classPrivateFieldGet$1(this,_Button_isDisabled,"f").call(this);this.setAttribute("aria-disabled",String(t))})),_Button_setTabIndex.set(this,(()=>{this.disabled?this.setAttribute("tabindex","-1"):this.removeAttribute("tabindex")})),_Button_handleClick.set(this,(t=>{if(this.disabled||this.loading)return t.preventDefault(),void t.stopPropagation();"submit"!==this.type?"reset"===this.type&&this.getForm()?.reset():this.getForm()?.requestSubmit()})),this.disabled=!1,this.loading=!1,this.size="default",this.type="button",this.variant="secondary",this.target="_self"}connectedCallback(){super.connectedCallback(),this.setAttribute("role",__classPrivateFieldGet$1(this,_Button_getRole,"f").call(this)),this.addEventListener("click",__classPrivateFieldGet$1(this,_Button_handleClick,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",__classPrivateFieldGet$1(this,_Button_handleClick,"f"))}willUpdate(t){super.willUpdate(t),t.has("href")&&this.setAttribute("role",__classPrivateFieldGet$1(this,_Button_getRole,"f").call(this)),__classPrivateFieldGet$1(this,_Button_setTabIndex,"f").call(this)}updated(t){super.updated(t),(t.has("disabled")||t.has("loading"))&&__classPrivateFieldGet$1(this,_Button_setDisabled,"f").call(this)}render(){const t=__classPrivateFieldGet$1(this,_Button_instances,"m",_Button_isLink).call(this);return n$4`
|
|
571
604
|
<${this.tag}
|
|
572
|
-
class=${o$2({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":__classPrivateFieldGet(this,_Button_isDisabled,"f").call(this)})}
|
|
573
|
-
type=${t?A:this.type}
|
|
574
|
-
?disabled="${t?A:__classPrivateFieldGet(this,_Button_isDisabled,"f").call(this)}"
|
|
605
|
+
class=${o$2({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":__classPrivateFieldGet$1(this,_Button_isDisabled,"f").call(this)})}
|
|
606
|
+
type=${t?A$1:this.type}
|
|
607
|
+
?disabled="${t?A$1:__classPrivateFieldGet$1(this,_Button_isDisabled,"f").call(this)}"
|
|
575
608
|
aria-disabled=${this.disabled&&t?"true":"false"}
|
|
576
609
|
role=${l$1(this.role)}
|
|
577
|
-
href=${t?this.href:A}
|
|
578
|
-
target=${t?l$1(this.target):A}
|
|
579
|
-
download=${t?l$1(this.download):A}
|
|
580
|
-
rel=${t&&"_blank"===this.target?"noreferrer noopener":A}
|
|
610
|
+
href=${t?this.href:A$1}
|
|
611
|
+
target=${t?l$1(this.target):A$1}
|
|
612
|
+
download=${t?l$1(this.download):A$1}
|
|
613
|
+
rel=${t&&"_blank"===this.target?"noreferrer noopener":A$1}
|
|
581
614
|
>
|
|
582
615
|
<!-- TODO: Replace this with the loading dots component as soon as it is ready. -->
|
|
583
|
-
${this.loading&&!["icon","icon-secondary"].includes(this.variant)?n$4`<span class="loader">●●●</span>`:A}
|
|
616
|
+
${this.loading&&!["icon","icon-secondary"].includes(this.variant)?n$4`<span class="loader">●●●</span>`:A$1}
|
|
584
617
|
<slot name="leading"></slot>
|
|
585
618
|
<slot></slot>
|
|
586
619
|
<slot name="trailing"></slot>
|
|
587
620
|
</${this.tag}>
|
|
588
|
-
`}focus(t){__classPrivateFieldGet(this,_Button_instances,"a",_Button_element_get)?.focus(t)}}_Button_isDisabled=new WeakMap,_Button_getRole=new WeakMap,_Button_setDisabled=new WeakMap,_Button_setTabIndex=new WeakMap,_Button_handleClick=new WeakMap,_Button_instances=new WeakSet,_Button_element_get=function(){return this.renderRoot?.querySelector(".button")??null},_Button_isLink=function(){return Boolean(this.href)},Button.styles=[styles$E()],window.customElements.define("m-button",Button);class BackButton extends s$
|
|
621
|
+
`}focus(t){__classPrivateFieldGet$1(this,_Button_instances,"a",_Button_element_get)?.focus(t)}}_Button_isDisabled=new WeakMap,_Button_getRole=new WeakMap,_Button_setDisabled=new WeakMap,_Button_setTabIndex=new WeakMap,_Button_handleClick=new WeakMap,_Button_instances=new WeakSet,_Button_element_get=function(){return this.renderRoot?.querySelector(".button")??null},_Button_isLink=function(){return Boolean(this.href)},Button.styles=[styles$E()],window.customElements.define("m-button",Button);class BackButton extends s$7{static get properties(){return{slot:{type:String,reflect:!0}}}constructor(){super(),this.slot="back-button"}render(){return x`
|
|
589
622
|
<m-button variant="icon" size="default">
|
|
590
623
|
<m-icon name="arrow-left"></m-icon>
|
|
591
624
|
</m-button>
|
|
592
|
-
`}}function styles$D(){return i$
|
|
625
|
+
`}}function styles$D(){return i$5`
|
|
593
626
|
:host {
|
|
594
627
|
--m-host-size: 24px;
|
|
595
628
|
--m-badge-size: 12px;
|
|
@@ -641,32 +674,32 @@ var l$3,o$5;u[d]=!0,u.elementProperties=new Map,u.elementStyles=[],u.shadowRootO
|
|
|
641
674
|
inline-size: 24px;
|
|
642
675
|
--m-badge-border-radius: ${getToken("border-radius-m")};
|
|
643
676
|
}
|
|
644
|
-
`}BackButton.styles=[styles$G()],window.customElements.define("m-back-button",BackButton);class Badge extends s$
|
|
677
|
+
`}BackButton.styles=[styles$G()],window.customElements.define("m-back-button",BackButton);class Badge extends s$7{static get properties(){return{counter:{type:Number,reflect:!0},placement:{type:String,reflect:!0},size:{type:String,reflect:!0}}}constructor(){super(),_Badge_instances.add(this),this.counter=1,this.placement="top-right",this.size="default"}render(){return x`
|
|
645
678
|
<slot></slot>
|
|
646
679
|
<span
|
|
647
|
-
class=${o$2({badge:!0,"-hidden":__classPrivateFieldGet(this,_Badge_instances,"a",_Badge_counter_get)<=0,"-large-badge":__classPrivateFieldGet(this,_Badge_instances,"a",_Badge_counter_get)>=10&&__classPrivateFieldGet(this,_Badge_instances,"a",_Badge_counter_get)<100,"-extra-large-badge":__classPrivateFieldGet(this,_Badge_instances,"a",_Badge_counter_get)>=100})}
|
|
648
|
-
>${__classPrivateFieldGet(this,_Badge_instances,"m",_Badge_formatCounter).call(this)}</span
|
|
680
|
+
class=${o$2({badge:!0,"-hidden":__classPrivateFieldGet$1(this,_Badge_instances,"a",_Badge_counter_get)<=0,"-large-badge":__classPrivateFieldGet$1(this,_Badge_instances,"a",_Badge_counter_get)>=10&&__classPrivateFieldGet$1(this,_Badge_instances,"a",_Badge_counter_get)<100,"-extra-large-badge":__classPrivateFieldGet$1(this,_Badge_instances,"a",_Badge_counter_get)>=100})}
|
|
681
|
+
>${__classPrivateFieldGet$1(this,_Badge_instances,"m",_Badge_formatCounter).call(this)}</span
|
|
649
682
|
>
|
|
650
|
-
`}}_Badge_instances=new WeakSet,_Badge_counter_get=function(){return"number"!=typeof this.counter||Number.isNaN(this.counter)||this.counter<0?0:this.counter},_Badge_formatCounter=function(){return"default"===this.size?__classPrivateFieldGet(this,_Badge_instances,"a",_Badge_counter_get)>99?"99+":__classPrivateFieldGet(this,_Badge_instances,"a",_Badge_counter_get):A},Badge.styles=[styles$D()],window.customElements.define("m-badge",Badge);class BannerActionPrimary extends Button{constructor(){super(),this.size="small"}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","primary-action")}}window.customElements.define("m-banner-action-primary",BannerActionPrimary);class BannerActionSecondary extends Button{constructor(){super(),this.variant="tertiary",this.size="small"}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","secondary-action")}}function styles$C(){return i$
|
|
683
|
+
`}}_Badge_instances=new WeakSet,_Badge_counter_get=function(){return"number"!=typeof this.counter||Number.isNaN(this.counter)||this.counter<0?0:this.counter},_Badge_formatCounter=function(){return"default"===this.size?__classPrivateFieldGet$1(this,_Badge_instances,"a",_Badge_counter_get)>99?"99+":__classPrivateFieldGet$1(this,_Badge_instances,"a",_Badge_counter_get):A$1},Badge.styles=[styles$D()],window.customElements.define("m-badge",Badge);class BannerActionPrimary extends Button{constructor(){super(),this.size="small"}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","primary-action")}}window.customElements.define("m-banner-action-primary",BannerActionPrimary);class BannerActionSecondary extends Button{constructor(){super(),this.variant="tertiary",this.size="small"}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","secondary-action")}}function styles$C(){return i$5`
|
|
651
684
|
:host {
|
|
652
685
|
display: flex;
|
|
653
686
|
justify-content: flex-end;
|
|
654
687
|
gap: ${getToken("spacing-2")};
|
|
655
688
|
}
|
|
656
|
-
`}window.customElements.define("m-banner-action-secondary",BannerActionSecondary);class BannerActions extends s$
|
|
689
|
+
`}window.customElements.define("m-banner-action-secondary",BannerActionSecondary);class BannerActions extends s$7{connectedCallback(){super.connectedCallback(),this.setAttribute("slot","actions")}render(){return x`
|
|
657
690
|
<slot name="secondary-action"></slot>
|
|
658
691
|
<slot name="primary-action"></slot>
|
|
659
|
-
`}}function styles$B(){return i$
|
|
692
|
+
`}}function styles$B(){return i$5`
|
|
660
693
|
:host {
|
|
661
694
|
${typography("body-md")};
|
|
662
695
|
color: ${getColor("color-text-secondary")};
|
|
663
696
|
}
|
|
664
|
-
`}BannerActions.styles=[styles$C()],window.customElements.define("m-banner-actions",BannerActions);class BannerDescription extends s$
|
|
697
|
+
`}BannerActions.styles=[styles$C()],window.customElements.define("m-banner-actions",BannerActions);class BannerDescription extends s$7{connectedCallback(){super.connectedCallback(),this.setAttribute("slot","description")}render(){return x`<slot></slot>`}}BannerDescription.styles=[styles$B()],window.customElements.define("m-banner-description",BannerDescription);class BannerIcon extends s$7{connectedCallback(){super.connectedCallback(),this.setAttribute("slot","icon")}render(){return x`<slot></slot>`}}function styles$A(){return i$5`
|
|
665
698
|
:host {
|
|
666
699
|
${typography("body-md-bold")};
|
|
667
700
|
color: ${getColor("color-text-secondary")};
|
|
668
701
|
}
|
|
669
|
-
`}window.customElements.define("m-banner-icon",BannerIcon);class BannerTitle extends s$
|
|
702
|
+
`}window.customElements.define("m-banner-icon",BannerIcon);class BannerTitle extends s$7{connectedCallback(){super.connectedCallback(),this.setAttribute("slot","title")}render(){return x`<slot></slot>`}}function styles$z(){return i$5`
|
|
670
703
|
:host {
|
|
671
704
|
display: block;
|
|
672
705
|
width: 100%;
|
|
@@ -736,7 +769,7 @@ var l$3,o$5;u[d]=!0,u.elementProperties=new Map,u.elementStyles=[],u.shadowRootO
|
|
|
736
769
|
flex-grow: 1;
|
|
737
770
|
gap: ${getToken("spacing-1")};
|
|
738
771
|
}
|
|
739
|
-
`}BannerTitle.styles=[styles$A()],window.customElements.define("m-banner-title",BannerTitle);var _KeyboardSupportController_handleKeyUp,_CloseButton_instances,_CloseButton_controllers,_CloseButton_button_get,_CloseButton_handleClick,indexFlGcVSBB={BASE_PIXELS:16,toRem:function(t,e=16){return parseInt(String(t),10)/e+"rem"}},e$3=indexFlGcVSBB,toRem$1=e$3.toRem,rem=getDefaultExportFromCjs(toRem$1);function toRem(t,e){return r$
|
|
772
|
+
`}BannerTitle.styles=[styles$A()],window.customElements.define("m-banner-title",BannerTitle);var _KeyboardSupportController_handleKeyUp,_CloseButton_instances,_CloseButton_controllers,_CloseButton_button_get,_CloseButton_handleClick,indexFlGcVSBB={BASE_PIXELS:16,toRem:function(t,e=16){return parseInt(String(t),10)/e+"rem"}},e$3=indexFlGcVSBB,toRem$1=e$3.toRem,rem=getDefaultExportFromCjs(toRem$1);function toRem(t,e){return r$9(rem(t,e))}function styles$y(){return i$5`
|
|
740
773
|
:host {
|
|
741
774
|
/**
|
|
742
775
|
* TODO: name is misleading here.
|
|
@@ -759,8 +792,8 @@ var l$3,o$5;u[d]=!0,u.elementProperties=new Map,u.elementStyles=[],u.shadowRootO
|
|
|
759
792
|
|
|
760
793
|
cursor: pointer;
|
|
761
794
|
|
|
762
|
-
${m(0)};
|
|
763
|
-
${p(0)};
|
|
795
|
+
${m$2(0)};
|
|
796
|
+
${p$1(0)};
|
|
764
797
|
|
|
765
798
|
background-color: var(--m-close-button-color);
|
|
766
799
|
border: none;
|
|
@@ -824,7 +857,7 @@ var l$3,o$5;u[d]=!0,u.elementProperties=new Map,u.elementStyles=[],u.shadowRootO
|
|
|
824
857
|
pointer-events: none;
|
|
825
858
|
user-select: none;
|
|
826
859
|
}
|
|
827
|
-
`}function getShortcutKey(t){return[t.alt?"alt":"",t.ctrl?"ctrl":"",t.meta?"cmd":"",t.shift?"shift":"",t.key.toLowerCase()].filter(Boolean).join("+")}class KeyboardSupportController{constructor(t,e,o){this.keymap=new Map,_KeyboardSupportController_handleKeyUp.set(this,(t=>{const e=getShortcutKey({key:t.key,meta:t.metaKey,shift:t.shiftKey,ctrl:t.ctrlKey,alt:t.altKey});if(this.keymap.has(e)){this.keymap.get(e)(t)}else;})),this.keymap=new Map(toArray$1(e).reduce(((t,{shortcut:e,handler:o})=>t.concat(toArray$1(e).map((t=>[getShortcutKey(t),o])))),[])),this.getEventTarget=o?.getEventTarget??(()=>t),(this.host=t).addController(this)}async hostConnected(){this.getEventTarget(this.host).addEventListener("keyup",__classPrivateFieldGet(this,_KeyboardSupportController_handleKeyUp,"f"))}hostDisconnected(){this.getEventTarget(this.host).removeEventListener("keyup",__classPrivateFieldGet(this,_KeyboardSupportController_handleKeyUp,"f"))}}_KeyboardSupportController_handleKeyUp=new WeakMap;class CloseButton extends Component{static get properties(){return{controls:{type:String},disabled:{type:Boolean,reflect:!0},inverted:{type:Boolean,reflect:!0},label:{type:String},size:{type:String,reflect:!0}}}constructor(){super(),_CloseButton_instances.add(this),_CloseButton_controllers.set(this,void 0),_CloseButton_handleClick.set(this,(()=>{this.disabled||this.emit("m-close")})),this.disabled=!1,this.inverted=!1,this.label="Close",this.size="default",__classPrivateFieldSet(this,_CloseButton_controllers,{keyboard:new KeyboardSupportController(this,[{shortcut:[{key:"Enter"},{key:" "}],handler:t=>{const{target:e}=t;e&&__classPrivateFieldGet(this,_CloseButton_handleClick,"f").call(this)}}])},"f")}connectedCallback(){super.connectedCallback(),this.controls&&this.setAttribute("aria-controls",this.controls),this.addEventListener("click",__classPrivateFieldGet(this,_CloseButton_handleClick,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",__classPrivateFieldGet(this,_CloseButton_handleClick,"f"))}update(t){super.update(t),t.has("label")&&!this.hasAttribute("aria-label")&&(this.label?this.setAttribute("aria-label",this.label):this.removeAttribute("aria-label")),t.has("disabled")&&(this.disabled?(this.removeAttribute("aria-disabled"),this.removeAttribute("tabindex")):(this.setAttribute("aria-disabled","true"),this.setAttribute("tabindex","0")))}render(){return x`<m-icon name="close"></m-icon>`}focus(t){__classPrivateFieldGet(this,_CloseButton_instances,"a",_CloseButton_button_get)?.focus(t)}}_CloseButton_controllers=new WeakMap,_CloseButton_handleClick=new WeakMap,_CloseButton_instances=new WeakSet,_CloseButton_button_get=function(){return this.renderRoot.querySelector("button")??null},CloseButton.styles=[styles$y()],window.customElements.define("m-close-button",CloseButton);const HTML_TAGS=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],PolymorphicTagMixin=({superClass:t,allowedTags:e=HTML_TAGS,fallbackTag:o="div"})=>class extends t{static get properties(){return{as:{type:String}}}attributeChangedCallback(t,i,r){super.attributeChangedCallback(t,i,r),"as"===t&&(null!==r&&e.includes(r)?this.as=r:this.as=o)}get tag(){return i$3`${o$3(this.as)}`}};function styles$x(){return i$
|
|
860
|
+
`}function getShortcutKey(t){return[t.alt?"alt":"",t.ctrl?"ctrl":"",t.meta?"cmd":"",t.shift?"shift":"",t.key.toLowerCase()].filter(Boolean).join("+")}class KeyboardSupportController{constructor(t,e,o){this.keymap=new Map,_KeyboardSupportController_handleKeyUp.set(this,(t=>{const e=getShortcutKey({key:t.key,meta:t.metaKey,shift:t.shiftKey,ctrl:t.ctrlKey,alt:t.altKey});if(this.keymap.has(e)){this.keymap.get(e)(t)}else;})),this.keymap=new Map(toArray$1(e).reduce(((t,{shortcut:e,handler:o})=>t.concat(toArray$1(e).map((t=>[getShortcutKey(t),o])))),[])),this.getEventTarget=o?.getEventTarget??(()=>t),(this.host=t).addController(this)}async hostConnected(){this.getEventTarget(this.host).addEventListener("keyup",__classPrivateFieldGet$1(this,_KeyboardSupportController_handleKeyUp,"f"))}hostDisconnected(){this.getEventTarget(this.host).removeEventListener("keyup",__classPrivateFieldGet$1(this,_KeyboardSupportController_handleKeyUp,"f"))}}_KeyboardSupportController_handleKeyUp=new WeakMap;class CloseButton extends Component{static get properties(){return{controls:{type:String},disabled:{type:Boolean,reflect:!0},inverted:{type:Boolean,reflect:!0},label:{type:String},size:{type:String,reflect:!0}}}constructor(){super(),_CloseButton_instances.add(this),_CloseButton_controllers.set(this,void 0),_CloseButton_handleClick.set(this,(()=>{this.disabled||this.emit("m-close")})),this.disabled=!1,this.inverted=!1,this.label="Close",this.size="default",__classPrivateFieldSet(this,_CloseButton_controllers,{keyboard:new KeyboardSupportController(this,[{shortcut:[{key:"Enter"},{key:" "}],handler:t=>{const{target:e}=t;e&&__classPrivateFieldGet$1(this,_CloseButton_handleClick,"f").call(this)}}])},"f")}connectedCallback(){super.connectedCallback(),this.controls&&this.setAttribute("aria-controls",this.controls),this.addEventListener("click",__classPrivateFieldGet$1(this,_CloseButton_handleClick,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",__classPrivateFieldGet$1(this,_CloseButton_handleClick,"f"))}update(t){super.update(t),t.has("label")&&!this.hasAttribute("aria-label")&&(this.label?this.setAttribute("aria-label",this.label):this.removeAttribute("aria-label")),t.has("disabled")&&(this.disabled?(this.removeAttribute("aria-disabled"),this.removeAttribute("tabindex")):(this.setAttribute("aria-disabled","true"),this.setAttribute("tabindex","0")))}render(){return x`<m-icon name="close"></m-icon>`}focus(t){__classPrivateFieldGet$1(this,_CloseButton_instances,"a",_CloseButton_button_get)?.focus(t)}}_CloseButton_controllers=new WeakMap,_CloseButton_handleClick=new WeakMap,_CloseButton_instances=new WeakSet,_CloseButton_button_get=function(){return this.renderRoot.querySelector("button")??null},CloseButton.styles=[styles$y()],window.customElements.define("m-close-button",CloseButton);const HTML_TAGS=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],PolymorphicTagMixin=({superClass:t,allowedTags:e=HTML_TAGS,fallbackTag:o="div"})=>class extends t{static get properties(){return{as:{type:String}}}attributeChangedCallback(t,i,r){super.attributeChangedCallback(t,i,r),"as"===t&&(null!==r&&e.includes(r)?this.as=r:this.as=o)}get tag(){return i$3`${o$3(this.as)}`}};function styles$x(){return i$5`
|
|
828
861
|
:host {
|
|
829
862
|
--m-text-color: ${getColor("color-text-primary")};
|
|
830
863
|
--m-text-display: inline-block;
|
|
@@ -976,17 +1009,17 @@ var l$3,o$5;u[d]=!0,u.elementProperties=new Map,u.elementStyles=[],u.shadowRootO
|
|
|
976
1009
|
white-space: nowrap;
|
|
977
1010
|
max-width: var(--m-text-max-width);
|
|
978
1011
|
}
|
|
979
|
-
`}class Text extends(PolymorphicTagMixin({superClass:s$
|
|
1012
|
+
`}class Text extends(PolymorphicTagMixin({superClass:s$7,allowedTags:["h1","h2","h3","h4","h5","h6","p","span"],fallbackTag:"span"})){static get properties(){return{color:{type:String,reflect:!0},ellipsized:{type:Boolean,reflect:!0},variant:{type:String,reflect:!0}}}constructor(){super(),this.as="span",this.ellipsized=!1,this.variant="body-md"}update(t){super.update(t),t.has("color")&&this.color&&this.style.setProperty("--m-text-color",toCSSValue$1(this.color))}render(){return n$4`
|
|
980
1013
|
<${this.tag}
|
|
981
1014
|
class=${o$2({"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)})}
|
|
982
1015
|
>
|
|
983
1016
|
<slot></slot>
|
|
984
1017
|
</${this.tag}>
|
|
985
|
-
`}}var _Banner_primaryAction,_Banner_handleDismissClick;function getIcon(t){switch(t){case"success":return"check";case"warning":case"danger":return"attention";default:return"info-circle"}}function getPrimaryActionVariant(t){switch(t){case"warning":return"warning";case"danger":return"danger";default:return"primary"}}Text.styles=[styles$x()],window.customElements.define("m-text",Text);class Banner extends Component{static get properties(){return{variant:{type:String},dismissible:{type:Boolean},dismissed:{type:Boolean,reflect:!0}}}constructor(){super(),_Banner_primaryAction.set(this,void 0),_Banner_handleDismissClick.set(this,(()=>{this.dismissed=!0,this.emit("m-dismiss",{composed:!0})})),this.variant="neutral",this.dismissible=!1,this.dismissed=!1}get primaryAction(){return null==__classPrivateFieldGet(this,_Banner_primaryAction,"f")&&__classPrivateFieldSet(this,_Banner_primaryAction,this.querySelector("m-banner-action-primary"),"f"),__classPrivateFieldGet(this,_Banner_primaryAction,"f")}updated(t){super.updated(t),t.has("variant")&&null!=this.primaryAction&&(this.primaryAction.variant=getPrimaryActionVariant(this.variant))}render(){if(this.dismissed)return A;const t=null!=this.querySelector("*[slot='description']"),e=null!=this.querySelector("*[slot='actions']"),o=x`
|
|
1018
|
+
`}}var _Banner_primaryAction,_Banner_handleDismissClick;function getIcon(t){switch(t){case"success":return"check";case"warning":case"danger":return"attention";default:return"info-circle"}}function getPrimaryActionVariant(t){switch(t){case"warning":return"warning";case"danger":return"danger";default:return"primary"}}Text.styles=[styles$x()],window.customElements.define("m-text",Text);class Banner extends Component{static get properties(){return{variant:{type:String},dismissible:{type:Boolean},dismissed:{type:Boolean,reflect:!0}}}constructor(){super(),_Banner_primaryAction.set(this,void 0),_Banner_handleDismissClick.set(this,(()=>{this.dismissed=!0,this.emit("m-dismiss",{composed:!0})})),this.variant="neutral",this.dismissible=!1,this.dismissed=!1}get primaryAction(){return null==__classPrivateFieldGet$1(this,_Banner_primaryAction,"f")&&__classPrivateFieldSet(this,_Banner_primaryAction,this.querySelector("m-banner-action-primary"),"f"),__classPrivateFieldGet$1(this,_Banner_primaryAction,"f")}updated(t){super.updated(t),t.has("variant")&&null!=this.primaryAction&&(this.primaryAction.variant=getPrimaryActionVariant(this.variant))}render(){if(this.dismissed)return A$1;const t=null!=this.querySelector("*[slot='description']"),e=null!=this.querySelector("*[slot='actions']"),o=x`
|
|
986
1019
|
<m-close-button
|
|
987
1020
|
id="close"
|
|
988
1021
|
label="Dismiss"
|
|
989
|
-
@click=${__classPrivateFieldGet(this,_Banner_handleDismissClick,"f")}
|
|
1022
|
+
@click=${__classPrivateFieldGet$1(this,_Banner_handleDismissClick,"f")}
|
|
990
1023
|
></m-close-button>
|
|
991
1024
|
`;return x`
|
|
992
1025
|
<div
|
|
@@ -1000,11 +1033,11 @@ var l$3,o$5;u[d]=!0,u.elementProperties=new Map,u.elementStyles=[],u.shadowRootO
|
|
|
1000
1033
|
<slot name="title"></slot>
|
|
1001
1034
|
<slot name="description"></slot>
|
|
1002
1035
|
</div>
|
|
1003
|
-
${this.dismissible&&!e?o:A}
|
|
1036
|
+
${this.dismissible&&!e?o:A$1}
|
|
1004
1037
|
</div>
|
|
1005
1038
|
<slot name="actions"></slot>
|
|
1006
1039
|
</div>
|
|
1007
|
-
`}}function styles$w(){return i$
|
|
1040
|
+
`}}function styles$w(){return i$5`
|
|
1008
1041
|
:host {
|
|
1009
1042
|
display: block;
|
|
1010
1043
|
box-sizing: border-box;
|
|
@@ -1019,18 +1052,18 @@ var l$3,o$5;u[d]=!0,u.elementProperties=new Map,u.elementStyles=[],u.shadowRootO
|
|
|
1019
1052
|
}
|
|
1020
1053
|
}
|
|
1021
1054
|
|
|
1022
|
-
${mediaDesktop(i$
|
|
1055
|
+
${mediaDesktop(i$5`
|
|
1023
1056
|
.body-wrapper {
|
|
1024
1057
|
padding: ${getToken("spacing-6")};
|
|
1025
1058
|
}
|
|
1026
1059
|
`)}
|
|
1027
|
-
`}_Banner_primaryAction=new WeakMap,_Banner_handleDismissClick=new WeakMap,Banner.styles=[styles$z()],window.customElements.define("m-banner",Banner);class Body extends s$
|
|
1060
|
+
`}_Banner_primaryAction=new WeakMap,_Banner_handleDismissClick=new WeakMap,Banner.styles=[styles$z()],window.customElements.define("m-banner",Banner);class Body extends s$7{static get properties(){return{slot:{type:String,reflect:!0}}}constructor(){super(),this.slot="page-body"}render(){return n$4`<div class="body-wrapper"><slot></slot></div>`}}Body.styles=[styles$w()],window.customElements.define("m-body",Body);
|
|
1028
1061
|
/**
|
|
1029
1062
|
* @license
|
|
1030
1063
|
* Copyright 2018 Google LLC
|
|
1031
1064
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1032
1065
|
*/
|
|
1033
|
-
const i$1="important",n$3=" !"+i$1,o$1=e$4(class extends i$2{constructor(t){var e;if(super(t),t.type!==t$3.ATTRIBUTE||"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.ht){this.ht=new Set;for(const t in e)this.ht.add(t);return this.render(e)}this.ht.forEach((t=>{null==e[t]&&(this.ht.delete(t),t.includes("-")?o.removeProperty(t):o[t]="")}));for(const t in e){const i=e[t];if(null!=i){this.ht.add(t);const e="string"==typeof i&&i.endsWith(n$3);t.includes("-")||e?o.setProperty(t,e?i.slice(0,-11):i,e?i$1:""):o[t]=i}}return T}});function cardStyles(){return i$
|
|
1066
|
+
const i$1="important",n$3=" !"+i$1,o$1=e$4(class extends i$2{constructor(t){var e;if(super(t),t.type!==t$3.ATTRIBUTE||"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.ht){this.ht=new Set;for(const t in e)this.ht.add(t);return this.render(e)}this.ht.forEach((t=>{null==e[t]&&(this.ht.delete(t),t.includes("-")?o.removeProperty(t):o[t]="")}));for(const t in e){const i=e[t];if(null!=i){this.ht.add(t);const e="string"==typeof i&&i.endsWith(n$3);t.includes("-")||e?o.setProperty(t,e?i.slice(0,-11):i,e?i$1:""):o[t]=i}}return T$1}});function cardStyles(){return i$5`
|
|
1034
1067
|
:host {
|
|
1035
1068
|
--m-card-background-color: ${getColor("color-background-primary")};
|
|
1036
1069
|
}
|
|
@@ -1109,7 +1142,7 @@ const i$1="important",n$3=" !"+i$1,o$1=e$4(class extends i$2{constructor(t){var
|
|
|
1109
1142
|
${transition([{property:"transform"}])};
|
|
1110
1143
|
}
|
|
1111
1144
|
}
|
|
1112
|
-
`}function cardBodyStyles(){return i$
|
|
1145
|
+
`}function cardBodyStyles(){return i$5`
|
|
1113
1146
|
:host {
|
|
1114
1147
|
--m-card-body-padding-x: ${getToken("spacing-4")};
|
|
1115
1148
|
--m-card-body-padding-y: ${getToken("spacing-4")};
|
|
@@ -1118,7 +1151,7 @@ const i$1="important",n$3=" !"+i$1,o$1=e$4(class extends i$2{constructor(t){var
|
|
|
1118
1151
|
.m-card-body {
|
|
1119
1152
|
padding: var(--m-card-body-padding-y) var(--m-card-body-padding-x);
|
|
1120
1153
|
}
|
|
1121
|
-
`}function cardSubtitleStyles(){return i$
|
|
1154
|
+
`}function cardSubtitleStyles(){return i$5`
|
|
1122
1155
|
:host {
|
|
1123
1156
|
--m-card-subtitle-margin-top: ${getToken("spacing-2")};
|
|
1124
1157
|
}
|
|
@@ -1130,7 +1163,7 @@ const i$1="important",n$3=" !"+i$1,o$1=e$4(class extends i$2{constructor(t){var
|
|
|
1130
1163
|
|
|
1131
1164
|
color: ${getColor("color-text-tertiary")};
|
|
1132
1165
|
}
|
|
1133
|
-
`}function cardTitleStyles(){return i$
|
|
1166
|
+
`}function cardTitleStyles(){return i$5`
|
|
1134
1167
|
.m-card-title {
|
|
1135
1168
|
${typography("heading-sm-bold")};
|
|
1136
1169
|
color: ${getColor("color-text-primary")};
|
|
@@ -1144,58 +1177,58 @@ const i$1="important",n$3=" !"+i$1,o$1=e$4(class extends i$2{constructor(t){var
|
|
|
1144
1177
|
pointer-events: none;
|
|
1145
1178
|
margin-inline-end: ${getToken("spacing-1")};
|
|
1146
1179
|
}
|
|
1147
|
-
`}function cardDividerStyles(){return i$
|
|
1180
|
+
`}function cardDividerStyles(){return i$5`
|
|
1148
1181
|
:host {
|
|
1149
1182
|
--m-divider-margin-top: 0;
|
|
1150
1183
|
}
|
|
1151
|
-
`}const ALIGN_ITEMS_VALUES=["baseline","center","flex-start","flex-end","stretch"],JUSTIFY_CONTENT_VALUES=["center","flex-start","flex-end","space-between","space-around","space-evenly"];var _BaseLayout_setOrRemoveProperty;class BaseLayout extends s$
|
|
1184
|
+
`}const ALIGN_ITEMS_VALUES=["baseline","center","flex-start","flex-end","stretch"],JUSTIFY_CONTENT_VALUES=["center","flex-start","flex-end","space-between","space-around","space-evenly"];var _BaseLayout_setOrRemoveProperty;class BaseLayout extends s$7{constructor(){super(...arguments),_BaseLayout_setOrRemoveProperty.set(this,((t,e)=>{e?this.style.setProperty(t,toSpacingCSSValue(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(t){super.update(t);const e=this.getCSSPropertiesPrefix();t.has("padding")&&this.style.setProperty(`--m-${e}-padding`,toSpacingCSSValue(this.padding)),t.has("paddingX")&&__classPrivateFieldGet$1(this,_BaseLayout_setOrRemoveProperty,"f").call(this,`--m-${e}-padding-x`,this.paddingX),t.has("paddingY")&&__classPrivateFieldGet$1(this,_BaseLayout_setOrRemoveProperty,"f").call(this,`--m-${e}-padding-y`,this.paddingY),t.has("paddingT")&&__classPrivateFieldGet$1(this,_BaseLayout_setOrRemoveProperty,"f").call(this,`--m-${e}-padding-t`,this.paddingT),t.has("paddingB")&&__classPrivateFieldGet$1(this,_BaseLayout_setOrRemoveProperty,"f").call(this,`--m-${e}-padding-b`,this.paddingB),t.has("paddingL")&&__classPrivateFieldGet$1(this,_BaseLayout_setOrRemoveProperty,"f").call(this,`--m-${e}-padding-l`,this.paddingL),t.has("paddingR")&&__classPrivateFieldGet$1(this,_BaseLayout_setOrRemoveProperty,"f").call(this,`--m-${e}-padding-r`,this.paddingR)}render(){return x`<slot></slot>`}}function getBaseLayoutStyles(t){return i$5`
|
|
1152
1185
|
:host {
|
|
1153
1186
|
/** reset layout custom properties to avoid inheritance */
|
|
1154
|
-
--m-${r$
|
|
1155
|
-
--m-${r$
|
|
1156
|
-
--m-${r$
|
|
1157
|
-
--m-${r$
|
|
1158
|
-
--m-${r$
|
|
1159
|
-
--m-${r$
|
|
1160
|
-
--m-${r$
|
|
1187
|
+
--m-${r$9(t)}-padding-x: initial;
|
|
1188
|
+
--m-${r$9(t)}-padding-y: initial;
|
|
1189
|
+
--m-${r$9(t)}-padding-t: initial;
|
|
1190
|
+
--m-${r$9(t)}-padding-r: initial;
|
|
1191
|
+
--m-${r$9(t)}-padding-b: initial;
|
|
1192
|
+
--m-${r$9(t)}-padding-l: initial;
|
|
1193
|
+
--m-${r$9(t)}-padding: initial;
|
|
1161
1194
|
|
|
1162
1195
|
padding-block-start: var(
|
|
1163
|
-
--m-${r$
|
|
1196
|
+
--m-${r$9(t)}-padding-t,
|
|
1164
1197
|
var(
|
|
1165
|
-
--m-${r$
|
|
1166
|
-
var(--m-${r$
|
|
1198
|
+
--m-${r$9(t)}-padding-y,
|
|
1199
|
+
var(--m-${r$9(t)}-padding, 0)
|
|
1167
1200
|
)
|
|
1168
1201
|
);
|
|
1169
1202
|
padding-block-end: var(
|
|
1170
|
-
--m-${r$
|
|
1203
|
+
--m-${r$9(t)}-padding-b,
|
|
1171
1204
|
var(
|
|
1172
|
-
--m-${r$
|
|
1173
|
-
var(--m-${r$
|
|
1205
|
+
--m-${r$9(t)}-padding-y,
|
|
1206
|
+
var(--m-${r$9(t)}-padding, 0)
|
|
1174
1207
|
)
|
|
1175
1208
|
);
|
|
1176
1209
|
padding-inline-start: var(
|
|
1177
|
-
--m-${r$
|
|
1210
|
+
--m-${r$9(t)}-padding-l,
|
|
1178
1211
|
var(
|
|
1179
|
-
--m-${r$
|
|
1180
|
-
var(--m-${r$
|
|
1212
|
+
--m-${r$9(t)}-padding-x,
|
|
1213
|
+
var(--m-${r$9(t)}-padding, 0)
|
|
1181
1214
|
)
|
|
1182
1215
|
);
|
|
1183
1216
|
padding-inline-end: var(
|
|
1184
|
-
--m-${r$
|
|
1217
|
+
--m-${r$9(t)}-padding-r,
|
|
1185
1218
|
var(
|
|
1186
|
-
--m-${r$
|
|
1187
|
-
var(--m-${r$
|
|
1219
|
+
--m-${r$9(t)}-padding-x,
|
|
1220
|
+
var(--m-${r$9(t)}-padding, 0)
|
|
1188
1221
|
)
|
|
1189
1222
|
);
|
|
1190
1223
|
}
|
|
1191
|
-
`}_BaseLayout_setOrRemoveProperty=new WeakMap;const defaultBoxProps={padding:"spacing-4",borderRadius:"border-radius-s",borderWidth:"border-none",borderColor:"color-background-highlight",textAlign:"left"};function boxStyles(){return i$
|
|
1224
|
+
`}_BaseLayout_setOrRemoveProperty=new WeakMap;const defaultBoxProps={padding:"spacing-4",borderRadius:"border-radius-s",borderWidth:"border-none",borderColor:"color-background-highlight",textAlign:"left"};function boxStyles(){return i$5`
|
|
1192
1225
|
:host {
|
|
1193
1226
|
--m-box-padding: ${getToken(defaultBoxProps.padding)};
|
|
1194
1227
|
--m-box-background-color: transparent;
|
|
1195
1228
|
--m-box-border-radius: ${getToken(defaultBoxProps.borderRadius)};
|
|
1196
1229
|
--m-box-border-width: ${getToken(defaultBoxProps.borderWidth)};
|
|
1197
1230
|
--m-box-border-color: ${getColor(defaultBoxProps.borderColor)};
|
|
1198
|
-
--m-box-text-align: ${r$
|
|
1231
|
+
--m-box-text-align: ${r$9(defaultBoxProps.textAlign)};
|
|
1199
1232
|
|
|
1200
1233
|
box-sizing: border-box;
|
|
1201
1234
|
|
|
@@ -1207,11 +1240,11 @@ const i$1="important",n$3=" !"+i$1,o$1=e$4(class extends i$2{constructor(t){var
|
|
|
1207
1240
|
text-align: var(--m-box-text-align);
|
|
1208
1241
|
display: block;
|
|
1209
1242
|
}
|
|
1210
|
-
`}class Box extends BaseLayout{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"}}}getCSSPropertiesPrefix(){return Box.CSSPropertiesPrefix}update(t){super.update(t),t.has("backgroundColor")&&this.style.setProperty("--m-box-background-color",(this.backgroundColor&&toCSSValue(this.backgroundColor))??"transparent"),t.has("borderRadius")&&this.style.setProperty("--m-box-border-radius",(this.borderRadius&&toCSSValue(this.borderRadius))??toCSSValue(defaultBoxProps.borderRadius)),t.has("borderWidth")&&this.style.setProperty("--m-box-border-width",(this.borderWidth&&toCSSValue(this.borderWidth))??toCSSValue(defaultBoxProps.borderWidth)),t.has("borderColor")&&this.style.setProperty("--m-box-border-color",(this.borderColor&&toCSSValue(this.borderColor))??toCSSValue(defaultBoxProps.borderColor)),t.has("textAlign")&&this.style.setProperty("--m-box-text-align",this.textAlign||defaultBoxProps.textAlign)}render(){return x`<slot></slot>`}}Box.CSSPropertiesPrefix="box",Box.styles=[getBaseLayoutStyles(Box.CSSPropertiesPrefix),boxStyles()],window.customElements.define("m-box",Box);const defaultGroupProps={gap:"spacing-4",align:"stretch",justify:"flex-start"};function groupStyles(){return i$
|
|
1243
|
+
`}class Box extends BaseLayout{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"}}}getCSSPropertiesPrefix(){return Box.CSSPropertiesPrefix}update(t){super.update(t),t.has("backgroundColor")&&this.style.setProperty("--m-box-background-color",(this.backgroundColor&&toCSSValue$1(this.backgroundColor))??"transparent"),t.has("borderRadius")&&this.style.setProperty("--m-box-border-radius",(this.borderRadius&&toCSSValue$1(this.borderRadius))??toCSSValue$1(defaultBoxProps.borderRadius)),t.has("borderWidth")&&this.style.setProperty("--m-box-border-width",(this.borderWidth&&toCSSValue$1(this.borderWidth))??toCSSValue$1(defaultBoxProps.borderWidth)),t.has("borderColor")&&this.style.setProperty("--m-box-border-color",(this.borderColor&&toCSSValue$1(this.borderColor))??toCSSValue$1(defaultBoxProps.borderColor)),t.has("textAlign")&&this.style.setProperty("--m-box-text-align",this.textAlign||defaultBoxProps.textAlign)}render(){return x`<slot></slot>`}}Box.CSSPropertiesPrefix="box",Box.styles=[getBaseLayoutStyles(Box.CSSPropertiesPrefix),boxStyles()],window.customElements.define("m-box",Box);const defaultGroupProps={gap:"spacing-4",align:"stretch",justify:"flex-start"};function groupStyles(){return i$5`
|
|
1211
1244
|
:host {
|
|
1212
1245
|
--m-group-gap: ${getToken(defaultGroupProps.gap)};
|
|
1213
|
-
--m-group-align: ${r$
|
|
1214
|
-
--m-group-justify: ${r$
|
|
1246
|
+
--m-group-align: ${r$9(defaultGroupProps.align)};
|
|
1247
|
+
--m-group-justify: ${r$9(defaultGroupProps.justify)};
|
|
1215
1248
|
|
|
1216
1249
|
display: flex;
|
|
1217
1250
|
flex-wrap: wrap;
|
|
@@ -1219,11 +1252,11 @@ const i$1="important",n$3=" !"+i$1,o$1=e$4(class extends i$2{constructor(t){var
|
|
|
1219
1252
|
align-items: var(--m-group-align);
|
|
1220
1253
|
justify-content: var(--m-group-justify);
|
|
1221
1254
|
}
|
|
1222
|
-
`}class Group extends BaseLayout{static get properties(){return{...super.properties,gap:{type:String},align:{type:String},justify:{type:String}}}getCSSPropertiesPrefix(){return Group.CSSPropertiesPrefix}update(t){super.update(t),t.has("gap")&&this.style.setProperty("--m-group-gap",toSpacingCSSValue(this.gap,defaultGroupProps.gap)),t.has("align")&&this.style.setProperty("--m-group-align",this.align||defaultGroupProps.align),t.has("justify")&&this.style.setProperty("--m-group-justify",this.justify||defaultGroupProps.justify)}render(){return x`<slot></slot>`}}Group.CSSPropertiesPrefix="group",Group.styles=[getBaseLayoutStyles(Group.CSSPropertiesPrefix),groupStyles()],window.customElements.define("m-group",Group);const defaultStackProps={gap:"spacing-4",align:"stretch",justify:"flex-start"};function stackStyles(){return i$
|
|
1255
|
+
`}class Group extends BaseLayout{static get properties(){return{...super.properties,gap:{type:String},align:{type:String},justify:{type:String}}}getCSSPropertiesPrefix(){return Group.CSSPropertiesPrefix}update(t){super.update(t),t.has("gap")&&this.style.setProperty("--m-group-gap",toSpacingCSSValue(this.gap,defaultGroupProps.gap)),t.has("align")&&this.style.setProperty("--m-group-align",this.align||defaultGroupProps.align),t.has("justify")&&this.style.setProperty("--m-group-justify",this.justify||defaultGroupProps.justify)}render(){return x`<slot></slot>`}}Group.CSSPropertiesPrefix="group",Group.styles=[getBaseLayoutStyles(Group.CSSPropertiesPrefix),groupStyles()],window.customElements.define("m-group",Group);const defaultStackProps={gap:"spacing-4",align:"stretch",justify:"flex-start"};function stackStyles(){return i$5`
|
|
1223
1256
|
:host {
|
|
1224
1257
|
--m-stack-gap: ${getToken(defaultStackProps.gap)};
|
|
1225
|
-
--m-stack-align: ${r$
|
|
1226
|
-
--m-stack-justify: ${r$
|
|
1258
|
+
--m-stack-align: ${r$9(defaultStackProps.align)};
|
|
1259
|
+
--m-stack-justify: ${r$9(defaultStackProps.justify)};
|
|
1227
1260
|
|
|
1228
1261
|
display: flex;
|
|
1229
1262
|
flex-direction: column;
|
|
@@ -1232,10 +1265,10 @@ const i$1="important",n$3=" !"+i$1,o$1=e$4(class extends i$2{constructor(t){var
|
|
|
1232
1265
|
align-items: var(--m-stack-align);
|
|
1233
1266
|
justify-content: var(--m-stack-justify);
|
|
1234
1267
|
}
|
|
1235
|
-
`}class Stack extends BaseLayout{static get properties(){return{...super.properties,gap:{type:String},align:{type:String},justify:{type:String}}}getCSSPropertiesPrefix(){return Stack.CSSPropertiesPrefix}update(t){super.update(t),t.has("gap")&&this.style.setProperty("--m-stack-gap",toSpacingCSSValue(this.gap,defaultStackProps.gap)),t.has("align")&&this.style.setProperty("--m-stack-align",this.align||defaultStackProps.align),t.has("justify")&&this.style.setProperty("--m-stack-justify",this.justify||defaultStackProps.justify)}render(){return x`<slot></slot>`}}Stack.CSSPropertiesPrefix="stack",Stack.styles=[getBaseLayoutStyles(Stack.CSSPropertiesPrefix),stackStyles()],window.customElements.define("m-stack",Stack);const defaultGridProps={gap:"spacing-4",minColumnWidth:getToken$1("spacing-30")};function gridStyles(){return i$
|
|
1268
|
+
`}class Stack extends BaseLayout{static get properties(){return{...super.properties,gap:{type:String},align:{type:String},justify:{type:String}}}getCSSPropertiesPrefix(){return Stack.CSSPropertiesPrefix}update(t){super.update(t),t.has("gap")&&this.style.setProperty("--m-stack-gap",toSpacingCSSValue(this.gap,defaultStackProps.gap)),t.has("align")&&this.style.setProperty("--m-stack-align",this.align||defaultStackProps.align),t.has("justify")&&this.style.setProperty("--m-stack-justify",this.justify||defaultStackProps.justify)}render(){return x`<slot></slot>`}}Stack.CSSPropertiesPrefix="stack",Stack.styles=[getBaseLayoutStyles(Stack.CSSPropertiesPrefix),stackStyles()],window.customElements.define("m-stack",Stack);const defaultGridProps={gap:"spacing-4",minColumnWidth:getToken$1("spacing-30")};function gridStyles(){return i$5`
|
|
1236
1269
|
:host {
|
|
1237
1270
|
--m-grid-gap: ${getToken(defaultGridProps.gap)};
|
|
1238
|
-
--m-grid-min-column-width: ${r$
|
|
1271
|
+
--m-grid-min-column-width: ${r$9(defaultGridProps.minColumnWidth)};
|
|
1239
1272
|
|
|
1240
1273
|
display: grid;
|
|
1241
1274
|
|
|
@@ -1247,12 +1280,12 @@ const i$1="important",n$3=" !"+i$1,o$1=e$4(class extends i$2{constructor(t){var
|
|
|
1247
1280
|
minmax(min(var(--m-grid-min-column-width), 100%), 1fr)
|
|
1248
1281
|
);
|
|
1249
1282
|
}
|
|
1250
|
-
`}class Grid extends BaseLayout{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"}}}getCSSPropertiesPrefix(){return Grid.CSSPropertiesPrefix}update(t){super.update(t),t.has("gap")&&this.style.setProperty("--m-grid-gap",toSpacingCSSValue(this.gap,defaultGridProps.gap)),t.has("rowGap")&&(this.rowGap?this.style.setProperty("--m-grid-row-gap",toSpacingCSSValue(this.rowGap)):this.style.removeProperty("--m-grid-row-gap")),t.has("columnGap")&&(this.columnGap?this.style.setProperty("--m-grid-column-gap",toSpacingCSSValue(this.columnGap)):this.style.removeProperty("--m-grid-column-gap")),t.has("minColumnWidth")&&this.style.setProperty("--m-grid-min-column-width",this.minColumnWidth||defaultGridProps.minColumnWidth)}render(){return x`<slot></slot>`}}Grid.CSSPropertiesPrefix="grid",Grid.styles=[getBaseLayoutStyles(Grid.CSSPropertiesPrefix),gridStyles()],window.customElements.define("m-grid",Grid);const defaultSidebarProps={gap:"spacing-4",sideWidth:"auto",minContentWidth:"50%",reversed:!1};function getFlexDirectionValue(t){return t?"row-reverse":"row"}function sidebarStyles(){return i$
|
|
1283
|
+
`}class Grid extends BaseLayout{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"}}}getCSSPropertiesPrefix(){return Grid.CSSPropertiesPrefix}update(t){super.update(t),t.has("gap")&&this.style.setProperty("--m-grid-gap",toSpacingCSSValue(this.gap,defaultGridProps.gap)),t.has("rowGap")&&(this.rowGap?this.style.setProperty("--m-grid-row-gap",toSpacingCSSValue(this.rowGap)):this.style.removeProperty("--m-grid-row-gap")),t.has("columnGap")&&(this.columnGap?this.style.setProperty("--m-grid-column-gap",toSpacingCSSValue(this.columnGap)):this.style.removeProperty("--m-grid-column-gap")),t.has("minColumnWidth")&&this.style.setProperty("--m-grid-min-column-width",this.minColumnWidth||defaultGridProps.minColumnWidth)}render(){return x`<slot></slot>`}}Grid.CSSPropertiesPrefix="grid",Grid.styles=[getBaseLayoutStyles(Grid.CSSPropertiesPrefix),gridStyles()],window.customElements.define("m-grid",Grid);const defaultSidebarProps={gap:"spacing-4",sideWidth:"auto",minContentWidth:"50%",reversed:!1};function getFlexDirectionValue(t){return t?"row-reverse":"row"}function sidebarStyles(){return i$5`
|
|
1251
1284
|
:host {
|
|
1252
1285
|
--m-sidebar-gap: ${getToken(defaultSidebarProps.gap)};
|
|
1253
|
-
--m-sidebar-flex-direction: ${r$
|
|
1254
|
-
--m-sidebar-side-width: ${r$
|
|
1255
|
-
--m-sidebar-min-content-width: ${r$
|
|
1286
|
+
--m-sidebar-flex-direction: ${r$9(getFlexDirectionValue(defaultSidebarProps.reversed))};
|
|
1287
|
+
--m-sidebar-side-width: ${r$9(defaultSidebarProps.sideWidth)};
|
|
1288
|
+
--m-sidebar-min-content-width: ${r$9(defaultSidebarProps.minContentWidth)};
|
|
1256
1289
|
|
|
1257
1290
|
display: flex;
|
|
1258
1291
|
flex-wrap: wrap;
|
|
@@ -1274,10 +1307,10 @@ const i$1="important",n$3=" !"+i$1,o$1=e$4(class extends i$2{constructor(t){var
|
|
|
1274
1307
|
`}class Sidebar extends BaseLayout{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=defaultSidebarProps.gap,this.sideWidth=defaultSidebarProps.sideWidth,this.minContentWidth=defaultSidebarProps.minContentWidth,this.reversed=defaultSidebarProps.reversed}getCSSPropertiesPrefix(){return Sidebar.CSSPropertiesPrefix}update(t){super.update(t),t.has("gap")&&this.style.setProperty("--m-sidebar-gap",toSpacingCSSValue(this.gap,defaultSidebarProps.gap)),t.has("sideWidth")&&this.style.setProperty("--m-sidebar-side-width",this.sideWidth||defaultSidebarProps.sideWidth),t.has("minContentWidth")&&this.style.setProperty("--m-sidebar-min-content-width",this.minContentWidth||defaultSidebarProps.minContentWidth),t.has("reversed")&&this.style.setProperty("--m-sidebar-flex-direction",getFlexDirectionValue(this.reversed))}render(){return x`
|
|
1275
1308
|
<slot name="sidebar"></slot>
|
|
1276
1309
|
<slot name="content"></slot>
|
|
1277
|
-
`}}Sidebar.CSSPropertiesPrefix="sidebar",Sidebar.styles=[getBaseLayoutStyles(Sidebar.CSSPropertiesPrefix),sidebarStyles()],window.customElements.define("m-sidebar",Sidebar);const defaultSwitcherProps={gap:"spacing-4",threshold:"10rem"};function switcherStyles(){return i$
|
|
1310
|
+
`}}Sidebar.CSSPropertiesPrefix="sidebar",Sidebar.styles=[getBaseLayoutStyles(Sidebar.CSSPropertiesPrefix),sidebarStyles()],window.customElements.define("m-sidebar",Sidebar);const defaultSwitcherProps={gap:"spacing-4",threshold:"10rem"};function switcherStyles(){return i$5`
|
|
1278
1311
|
:host {
|
|
1279
1312
|
--m-switcher-gap: ${getToken(defaultSwitcherProps.gap)};
|
|
1280
|
-
--m-switcher-threshold: ${r$
|
|
1313
|
+
--m-switcher-threshold: ${r$9(defaultSwitcherProps.threshold)};
|
|
1281
1314
|
|
|
1282
1315
|
display: flex;
|
|
1283
1316
|
flex-wrap: wrap;
|
|
@@ -1302,7 +1335,7 @@ const i$1="important",n$3=" !"+i$1,o$1=e$4(class extends i$2{constructor(t){var
|
|
|
1302
1335
|
`:"";return x`
|
|
1303
1336
|
${t}
|
|
1304
1337
|
<slot></slot>
|
|
1305
|
-
`}}function range(t,e){return Array.from({length:(e-t)/1+1},((e,o)=>t+1*o))}Switcher.CSSPropertiesPrefix="switcher",Switcher.styles=[getBaseLayoutStyles(Switcher.CSSPropertiesPrefix),switcherStyles()],window.customElements.define("m-switcher",Switcher);const COLUMNS=4,defaultRowProps={gap:"spacing-4"};function generateSlicedStyles(t){return r$
|
|
1338
|
+
`}}function range(t,e){return Array.from({length:(e-t)/1+1},((e,o)=>t+1*o))}Switcher.CSSPropertiesPrefix="switcher",Switcher.styles=[getBaseLayoutStyles(Switcher.CSSPropertiesPrefix),switcherStyles()],window.customElements.define("m-switcher",Switcher);const COLUMNS=4,defaultRowProps={gap:"spacing-4"};function generateSlicedStyles(t){return r$9(range(1,COLUMNS).map((e=>`\n\t\t\t\t:host {\n flex: 1 1 0%;\n max-inline-size: ${100*e/COLUMNS}%;\n\t\t\t\t}\n\n\t\t\t\t:host([${t}="${e}"]) {\n flex: 0 0 ${100*e/COLUMNS}%;\n max-inline-size: ${100*e/COLUMNS}%;\n\t\t\t\t}\n\n\t\t\t\t:host([offset-${t}="${e}"]) {\n margin-inline-start: ${100*e/COLUMNS}%;\n\t\t\t\t}\n\t\t\t`)).join("\n"))}function containerStyles(){return i$5`
|
|
1306
1339
|
:host {
|
|
1307
1340
|
--m-column-gap: ${getToken(defaultRowProps.gap)};
|
|
1308
1341
|
--m-row-gap: ${getToken(defaultRowProps.gap)};
|
|
@@ -1316,7 +1349,7 @@ const i$1="important",n$3=" !"+i$1,o$1=e$4(class extends i$2{constructor(t){var
|
|
|
1316
1349
|
margin-inline: auto;
|
|
1317
1350
|
margin-block: 0;
|
|
1318
1351
|
}
|
|
1319
|
-
`}function rowStyles(){return i$
|
|
1352
|
+
`}function rowStyles(){return i$5`
|
|
1320
1353
|
:host {
|
|
1321
1354
|
display: flex;
|
|
1322
1355
|
flex-wrap: wrap;
|
|
@@ -1329,7 +1362,7 @@ const i$1="important",n$3=" !"+i$1,o$1=e$4(class extends i$2{constructor(t){var
|
|
|
1329
1362
|
:host(:not(:first-of-type)) {
|
|
1330
1363
|
margin-block: var(--m-row-gap);
|
|
1331
1364
|
}
|
|
1332
|
-
`}function columnStyles(){return i$
|
|
1365
|
+
`}function columnStyles(){return i$5`
|
|
1333
1366
|
:host {
|
|
1334
1367
|
position: relative;
|
|
1335
1368
|
inline-size: 100%;
|
|
@@ -1344,12 +1377,12 @@ const i$1="important",n$3=" !"+i$1,o$1=e$4(class extends i$2{constructor(t){var
|
|
|
1344
1377
|
${mediaTablet(generateSlicedStyles("md"))}
|
|
1345
1378
|
|
|
1346
1379
|
${mediaDesktop(generateSlicedStyles("lg"))}
|
|
1347
|
-
`}class Container extends s$
|
|
1380
|
+
`}class Container extends s$7{render(){return x`<slot name="row"></slot>`}}Container.CSSPropertiesPrefix="container",Container.styles=[containerStyles()],window.customElements.define("m-container",Container);class Row extends s$7{static get properties(){return{...super.properties,gap:{type:String},columnGap:{type:String,attribute:"column-gap"},rowGap:{type:String,attribute:"row-gap"}}}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","row")}update(t){if(super.update(t),t.has("gap")){const t=toSpacingCSSValue(this.gap,defaultRowProps.gap);this.style.setProperty("--m-row-gap",t),this.style.setProperty("--m-column-gap",t)}t.has("rowGap")&&(this.rowGap?this.style.setProperty("--m-row-gap",toSpacingCSSValue(this.rowGap)):this.style.removeProperty("--m-row-gap")),t.has("columnGap")&&(this.columnGap?this.style.setProperty("--m-column-gap",toSpacingCSSValue(this.columnGap)):this.style.removeProperty("--m-column-gap"))}render(){return x`<slot name="column"></slot>`}}Row.CSSPropertiesPrefix="row",Row.styles=[rowStyles()],window.customElements.define("m-row",Row);class Column extends s$7{static get properties(){return{...super.properties,sm:{type:String,reflect:!0},md:{type:String,reflect:!0},lg:{type:String,reflect:!0},offsetSm:{type:String,reflect:!0,attribute:"offset-sm"},offsetMd:{type:String,reflect:!0,attribute:"offset-md"},offsetLg:{type:String,reflect:!0,attribute:"offset-lg"}}}connectedCallback(){super.connectedCallback(),this.slot="column"}update(t){t.has("sm")&&(this.md=this.md??this.sm,this.lg=this.lg??this.md),t.has("md")&&(this.lg=this.lg??this.md),this.offsetSm=this.offsetSm??void 0,t.has("offsetSm")&&(this.offsetMd=this.offsetMd??this.offsetSm,this.offsetLg=this.offsetLg??this.offsetMd),t.has("offsetMd")&&(this.offsetLg=this.offsetLg??this.offsetMd),super.update(t)}render(){return x`<slot></slot>`}}Column.CSSPropertiesPrefix="column",Column.styles=[columnStyles()],window.customElements.define("m-column",Column);const defaultFlagColor="color-background-inverted";class Card extends Component{static get properties(){return{flagged:{type:Boolean},flagColor:{type:String,attribute:"flag-color"},collapsible:{type:Boolean},collapsed:{type:Boolean,state:!0}}}constructor(){super(),this.flagged=!1,this.flagColor=defaultFlagColor,this.collapsible=!1,this.collapsed=!1}toggleCollapse(){this.collapsible&&(this.collapsed=!this.collapsed,this.emit("m-toggle"))}isExpanded(){if(this.collapsible)return this.collapsed?"false":"true"}firstUpdated(){const t=this.querySelector("m-card-title"),e=this.querySelector("m-card-subtitle"),o=this.renderRoot.querySelector(".m-title-wrapper");o&&(t||e?o.classList.remove("hidden"):o.classList.add("hidden"))}render(){return x`
|
|
1348
1381
|
<div
|
|
1349
1382
|
class="m-card"
|
|
1350
|
-
style="${o$1({"--m-card-flag-color":toCSSValue(this.flagColor)})}"
|
|
1383
|
+
style="${o$1({"--m-card-flag-color":toCSSValue$1(this.flagColor)})}"
|
|
1351
1384
|
>
|
|
1352
|
-
${this.flagged?x`<span class="m-card-flag"></span>`:A}
|
|
1385
|
+
${this.flagged?x`<span class="m-card-flag"></span>`:A$1}
|
|
1353
1386
|
<div class="m-card-content">
|
|
1354
1387
|
<m-group justify="space-between" class="m-title-wrapper">
|
|
1355
1388
|
<m-stack gap="spacing-1">
|
|
@@ -1364,7 +1397,7 @@ const i$1="important",n$3=" !"+i$1,o$1=e$4(class extends i$2{constructor(t){var
|
|
|
1364
1397
|
type="button"
|
|
1365
1398
|
>
|
|
1366
1399
|
<m-icon name="caret-down"></m-icon>
|
|
1367
|
-
</button>`:A}
|
|
1400
|
+
</button>`:A$1}
|
|
1368
1401
|
</m-group>
|
|
1369
1402
|
<m-stack
|
|
1370
1403
|
class="${o$2({"m-collapsed-content":!!this.collapsed,"m-card-content":!this.collapsed})}"
|
|
@@ -1375,20 +1408,20 @@ const i$1="important",n$3=" !"+i$1,o$1=e$4(class extends i$2{constructor(t){var
|
|
|
1375
1408
|
</m-stack>
|
|
1376
1409
|
</div>
|
|
1377
1410
|
</div>
|
|
1378
|
-
`}}Card.styles=[cardStyles()],window.customElements.define("m-card",Card);class CardBody extends s$
|
|
1411
|
+
`}}Card.styles=[cardStyles()],window.customElements.define("m-card",Card);class CardBody extends s$7{static get properties(){return{slot:{type:String,reflect:!0}}}constructor(){super(),this.slot="body"}render(){return x`
|
|
1379
1412
|
<div class="m-card-body">
|
|
1380
1413
|
<slot></slot>
|
|
1381
1414
|
</div>
|
|
1382
|
-
`}}CardBody.styles=[cardBodyStyles()],window.customElements.define("m-card-body",CardBody);class CardSubtitle extends s$
|
|
1415
|
+
`}}CardBody.styles=[cardBodyStyles()],window.customElements.define("m-card-body",CardBody);class CardSubtitle extends s$7{static get properties(){return{slot:{type:String,reflect:!0}}}constructor(){super(),this.slot="subtitle"}render(){return x`
|
|
1383
1416
|
<div class="m-card-subtitle">
|
|
1384
1417
|
<slot></slot>
|
|
1385
1418
|
</div>
|
|
1386
|
-
`}}CardSubtitle.styles=[cardSubtitleStyles()],window.customElements.define("m-card-subtitle",CardSubtitle);class CardTitle extends s$
|
|
1419
|
+
`}}CardSubtitle.styles=[cardSubtitleStyles()],window.customElements.define("m-card-subtitle",CardSubtitle);class CardTitle extends s$7{static get properties(){return{slot:{type:String,reflect:!0}}}constructor(){super(),this.slot="title"}render(){return x`
|
|
1387
1420
|
<div class="m-card-title">
|
|
1388
1421
|
<slot name="leading"></slot>
|
|
1389
1422
|
<slot></slot>
|
|
1390
1423
|
</div>
|
|
1391
|
-
`}}function styles$v(){return i$
|
|
1424
|
+
`}}function styles$v(){return i$5`
|
|
1392
1425
|
.m-divider {
|
|
1393
1426
|
border: 0;
|
|
1394
1427
|
border-block-end: solid 1px ${getColor("color-divider")};
|
|
@@ -1401,7 +1434,7 @@ const i$1="important",n$3=" !"+i$1,o$1=e$4(class extends i$2{constructor(t){var
|
|
|
1401
1434
|
var(--m-divider-margin-y, 0)
|
|
1402
1435
|
);
|
|
1403
1436
|
}
|
|
1404
|
-
`}CardTitle.styles=[cardTitleStyles()],window.customElements.define("m-card-title",CardTitle);class Divider extends s$
|
|
1437
|
+
`}CardTitle.styles=[cardTitleStyles()],window.customElements.define("m-card-title",CardTitle);class Divider extends s$7{render(){return x`<hr class="m-divider" />`}}Divider.styles=[styles$v()],window.customElements.define("m-divider",Divider);class CardDivider extends Divider{constructor(){super(),this.slot="divider"}}CardDivider.styles=[...Divider.styles,cardDividerStyles()],CardDivider.properties={slot:{attribute:!0,type:String,reflect:!0}},window.customElements.define("m-card-divider",CardDivider);class CardFooter extends s$7{static get properties(){return{slot:{type:String,reflect:!0},gap:{type:String},align:{type:String},justify:{type:String}}}constructor(){super(),this.slot="footer",this.gap="spacing-2",this.align="stretch",this.justify="flex-start"}render(){return x`<div class="m-card-footer">
|
|
1405
1438
|
<m-card-divider></m-card-divider>
|
|
1406
1439
|
<m-group
|
|
1407
1440
|
gap=${this.gap}
|
|
@@ -1412,7 +1445,7 @@ const i$1="important",n$3=" !"+i$1,o$1=e$4(class extends i$2{constructor(t){var
|
|
|
1412
1445
|
>
|
|
1413
1446
|
<slot></slot>
|
|
1414
1447
|
</m-group>
|
|
1415
|
-
</div>`}}window.customElements.define("m-card-footer",CardFooter);class CardActionPrimary extends Button{constructor(){super(),this.type="button",this.variant="primary"}}window.customElements.define("m-card-action-primary",CardActionPrimary);class CardActionSecondary extends Button{constructor(){super(),this.type="button",this.variant="secondary"}}window.customElements.define("m-card-action-secondary",CardActionSecondary);class CardActionTertiary extends Button{constructor(){super(),this.type="button",this.variant="tertiary"}}window.customElements.define("m-card-action-tertiary",CardActionTertiary);const baseTransitionConfig={delay:"0s",duration:"0.35s",easing:"ease-in-out"};function styles$u(){return i$
|
|
1448
|
+
</div>`}}window.customElements.define("m-card-footer",CardFooter);class CardActionPrimary extends Button{constructor(){super(),this.type="button",this.variant="primary"}}window.customElements.define("m-card-action-primary",CardActionPrimary);class CardActionSecondary extends Button{constructor(){super(),this.type="button",this.variant="secondary"}}window.customElements.define("m-card-action-secondary",CardActionSecondary);class CardActionTertiary extends Button{constructor(){super(),this.type="button",this.variant="tertiary"}}window.customElements.define("m-card-action-tertiary",CardActionTertiary);const baseTransitionConfig={delay:"0s",duration:"0.35s",easing:"ease-in-out"};function styles$u(){return i$5`
|
|
1416
1449
|
${on(".check-input-label").not.disabled.focus} {
|
|
1417
1450
|
border-radius: 2px;
|
|
1418
1451
|
outline: 1px solid ${getColor("color-primary-60")};
|
|
@@ -1504,7 +1537,7 @@ const i$1="important",n$3=" !"+i$1,o$1=e$4(class extends i$2{constructor(t){var
|
|
|
1504
1537
|
.check-input:indeterminate:not(:checked) ~ .indeterminate-icon {
|
|
1505
1538
|
display: inline-flex;
|
|
1506
1539
|
}
|
|
1507
|
-
`}const CHANGE_EVENT="m-change";var _Checkbox_instances,_Checkbox_setAttributes,_Checkbox_handleChange;class Checkbox extends s$
|
|
1540
|
+
`}const CHANGE_EVENT="m-change";var _Checkbox_instances,_Checkbox_setAttributes,_Checkbox_handleChange;class Checkbox extends s$7{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(),_Checkbox_instances.add(this),_Checkbox_handleChange.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(){__classPrivateFieldGet$1(this,_Checkbox_instances,"m",_Checkbox_setAttributes).call(this)}render(){return x`
|
|
1508
1541
|
<label for="${l$1(this.id)}" class="check-input-label">
|
|
1509
1542
|
<input
|
|
1510
1543
|
id="${l$1(this.id)}"
|
|
@@ -1513,7 +1546,7 @@ const i$1="important",n$3=" !"+i$1,o$1=e$4(class extends i$2{constructor(t){var
|
|
|
1513
1546
|
class="check-input"
|
|
1514
1547
|
?disabled="${this.disabled}"
|
|
1515
1548
|
?checked="${this.checked}"
|
|
1516
|
-
@change=${__classPrivateFieldGet(this,_Checkbox_handleChange,"f")}
|
|
1549
|
+
@change=${__classPrivateFieldGet$1(this,_Checkbox_handleChange,"f")}
|
|
1517
1550
|
/>
|
|
1518
1551
|
<m-icon name="check" class="check-icon"></m-icon>
|
|
1519
1552
|
<m-icon name="indeterminate" class="indeterminate-icon"></m-icon>
|
|
@@ -1546,7 +1579,7 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
1546
1579
|
* @license
|
|
1547
1580
|
* Copyright 2021 Google LLC
|
|
1548
1581
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1549
|
-
*/let t$2=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 s$3(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)}};var waitForAnimations_1=async function(t,e){const o=t.getAnimations(e).map((({finished:t})=>t));await Promise.allSettled(o)};let isAttached=!1;function attachContextRoot(){if(isAttached)return;(new t$2).attach(document.body),isAttached=!0}const dialogContext=n$2(Symbol("dialog"));function styles$t(){return i$
|
|
1582
|
+
*/let t$2=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 s$3(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)}};var waitForAnimations_1=async function(t,e){const o=t.getAnimations(e).map((({finished:t})=>t));await Promise.allSettled(o)};let isAttached=!1;function attachContextRoot(){if(isAttached)return;(new t$2).attach(document.body),isAttached=!0}const dialogContext=n$2(Symbol("dialog"));function styles$t(){return i$5`
|
|
1550
1583
|
:host {
|
|
1551
1584
|
--margin: ${getToken("spacing-6")};
|
|
1552
1585
|
--padding: ${getToken("spacing-6")};
|
|
@@ -1642,22 +1675,22 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
1642
1675
|
`}var _Dialog_instances,_Dialog_contextProvider,_Dialog_dialog_get,_Dialog_toggleVisibility,_Dialog_emitLifecycleEvent,_Dialog_emitCloseEvent,_Dialog_handleClick,_Dialog_handleCancel;attachContextRoot();class Dialog extends Component{static get properties(){return{open:{type:Boolean,reflect:!0},size:{type:String,reflect:!0},variant:{type:String,reflect:!0}}}constructor(){super(),_Dialog_instances.add(this),_Dialog_contextProvider.set(this,new i(this,dialogContext,{variant:"neutral"})),this.open=!1,this.size="small",this.variant="neutral"}render(){return x`
|
|
1643
1676
|
<dialog
|
|
1644
1677
|
class="${o$2({"-size-small":"small"===this.size||!this.size,"-size-medium":"medium"===this.size,"-size-large":"large"===this.size,"-size-extra-large":"extra-large"===this.size})}"
|
|
1645
|
-
@click=${__classPrivateFieldGet(this,_Dialog_instances,"m",_Dialog_handleClick)}
|
|
1646
|
-
@cancel=${__classPrivateFieldGet(this,_Dialog_instances,"m",_Dialog_handleCancel)}
|
|
1678
|
+
@click=${__classPrivateFieldGet$1(this,_Dialog_instances,"m",_Dialog_handleClick)}
|
|
1679
|
+
@cancel=${__classPrivateFieldGet$1(this,_Dialog_instances,"m",_Dialog_handleCancel)}
|
|
1647
1680
|
>
|
|
1648
1681
|
<slot name="header"></slot>
|
|
1649
1682
|
<slot name="body"></slot>
|
|
1650
1683
|
<slot name="footer"></slot>
|
|
1651
1684
|
<slot name="actions"></slot>
|
|
1652
1685
|
</dialog>
|
|
1653
|
-
`}updated(t){super.updated(t),t.has("variant")&&__classPrivateFieldGet(this,_Dialog_contextProvider,"f").setValue({variant:this.variant??"neutral"}),t.has("open")&&__classPrivateFieldGet(this,_Dialog_instances,"m",_Dialog_toggleVisibility).call(this,t.get("open"))}show(){this.open=!0}hide(){this.open=!1}}_Dialog_contextProvider=new WeakMap,_Dialog_instances=new WeakSet,_Dialog_dialog_get=function(){return this.renderRoot?.querySelector("dialog")},_Dialog_toggleVisibility=async function(t){const e=__classPrivateFieldGet(this,_Dialog_instances,"a",_Dialog_dialog_get);e&&(!t&&this.open?(this.style.display="block",__classPrivateFieldGet(this,_Dialog_instances,"m",_Dialog_emitLifecycleEvent).call(this,"m-opening"),e.showModal(),await waitForAnimations_1(e),__classPrivateFieldGet(this,_Dialog_instances,"m",_Dialog_emitLifecycleEvent).call(this,"m-opened")):t&&!this.open?(__classPrivateFieldGet(this,_Dialog_instances,"m",_Dialog_emitLifecycleEvent).call(this,"m-closing"),e.classList.add("is-hiding"),await waitForAnimations_1(e),e.classList.remove("is-hiding"),e.close(),__classPrivateFieldGet(this,_Dialog_instances,"m",_Dialog_emitLifecycleEvent).call(this,"m-closed"),this.style.display="none"):null!=t||this.open||(this.style.display="none"))},_Dialog_emitLifecycleEvent=function(t){this.emit(t,{cancelable:!1,bubbles:!1})},_Dialog_emitCloseEvent=function(){this.open&&this.emit("m-close")},_Dialog_handleClick=function(t){const e=t.target instanceof HTMLDialogElement,o=__classPrivateFieldGet(this,_Dialog_instances,"a",_Dialog_dialog_get)?.getBoundingClientRect();if(e&&o){(t.clientY<o.top||t.clientY>o.bottom||t.clientX<o.left||t.clientX>o.right)&&(t.preventDefault(),t.stopPropagation(),__classPrivateFieldGet(this,_Dialog_instances,"m",_Dialog_emitCloseEvent).call(this))}},_Dialog_handleCancel=function(t){t.preventDefault(),__classPrivateFieldGet(this,_Dialog_instances,"m",_Dialog_emitCloseEvent).call(this)},Dialog.styles=[styles$t()],window.customElements.define("m-dialog",Dialog);const DIALOG_SIZES=["small","medium","large","extra-large"],DIALOG_VARIANTS=["neutral","success","warning","danger"];var _DialogActionPrimary_contextCallback,_DialogHeader_instances,_DialogHeader_context,_DialogHeader_icon_get,_Drawer_instances,_Drawer_dialog_get,_Drawer_toggleVisibility,_Drawer_emitLifecycleEvent,_Drawer_emitCloseEvent,_Drawer_handleClick,_Drawer_handleCancel;class DialogActionPrimary extends Button{constructor(){super(),_DialogActionPrimary_contextCallback.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 s$2(this,{context:dialogContext,callback:__classPrivateFieldGet(this,_DialogActionPrimary_contextCallback,"f"),subscribe:!0})}}_DialogActionPrimary_contextCallback=new WeakMap,window.customElements.define("m-dialog-action-primary",DialogActionPrimary);class DialogActionSecondary extends Button{constructor(){super(),this.type="button",this.variant="secondary"}}window.customElements.define("m-dialog-action-secondary",DialogActionSecondary);class DialogActionTertiary extends Button{constructor(){super(),this.type="button",this.variant="tertiary"}}window.customElements.define("m-dialog-action-tertiary",DialogActionTertiary);class DialogActions extends Group{constructor(){super(),this.align="center",this.gap="spacing-3",this.justify="flex-end"}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","actions")}}function styles$s(){return i$
|
|
1686
|
+
`}updated(t){super.updated(t),t.has("variant")&&__classPrivateFieldGet$1(this,_Dialog_contextProvider,"f").setValue({variant:this.variant??"neutral"}),t.has("open")&&__classPrivateFieldGet$1(this,_Dialog_instances,"m",_Dialog_toggleVisibility).call(this,t.get("open"))}show(){this.open=!0}hide(){this.open=!1}}_Dialog_contextProvider=new WeakMap,_Dialog_instances=new WeakSet,_Dialog_dialog_get=function(){return this.renderRoot?.querySelector("dialog")},_Dialog_toggleVisibility=async function(t){const e=__classPrivateFieldGet$1(this,_Dialog_instances,"a",_Dialog_dialog_get);e&&(!t&&this.open?(this.style.display="block",__classPrivateFieldGet$1(this,_Dialog_instances,"m",_Dialog_emitLifecycleEvent).call(this,"m-opening"),e.showModal(),await waitForAnimations_1(e),__classPrivateFieldGet$1(this,_Dialog_instances,"m",_Dialog_emitLifecycleEvent).call(this,"m-opened")):t&&!this.open?(__classPrivateFieldGet$1(this,_Dialog_instances,"m",_Dialog_emitLifecycleEvent).call(this,"m-closing"),e.classList.add("is-hiding"),await waitForAnimations_1(e),e.classList.remove("is-hiding"),e.close(),__classPrivateFieldGet$1(this,_Dialog_instances,"m",_Dialog_emitLifecycleEvent).call(this,"m-closed"),this.style.display="none"):null!=t||this.open||(this.style.display="none"))},_Dialog_emitLifecycleEvent=function(t){this.emit(t,{cancelable:!1,bubbles:!1})},_Dialog_emitCloseEvent=function(){this.open&&this.emit("m-close")},_Dialog_handleClick=function(t){const e=t.target instanceof HTMLDialogElement,o=__classPrivateFieldGet$1(this,_Dialog_instances,"a",_Dialog_dialog_get)?.getBoundingClientRect();if(e&&o){(t.clientY<o.top||t.clientY>o.bottom||t.clientX<o.left||t.clientX>o.right)&&(t.preventDefault(),t.stopPropagation(),__classPrivateFieldGet$1(this,_Dialog_instances,"m",_Dialog_emitCloseEvent).call(this))}},_Dialog_handleCancel=function(t){t.preventDefault(),__classPrivateFieldGet$1(this,_Dialog_instances,"m",_Dialog_emitCloseEvent).call(this)},Dialog.styles=[styles$t()],window.customElements.define("m-dialog",Dialog);const DIALOG_SIZES=["small","medium","large","extra-large"],DIALOG_VARIANTS=["neutral","success","warning","danger"];var _DialogActionPrimary_contextCallback,_DialogHeader_instances,_DialogHeader_context,_DialogHeader_icon_get,_Drawer_instances,_Drawer_dialog_get,_Drawer_toggleVisibility,_Drawer_emitLifecycleEvent,_Drawer_emitCloseEvent,_Drawer_handleClick,_Drawer_handleCancel;class DialogActionPrimary extends Button{constructor(){super(),_DialogActionPrimary_contextCallback.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 s$2(this,{context:dialogContext,callback:__classPrivateFieldGet$1(this,_DialogActionPrimary_contextCallback,"f"),subscribe:!0})}}_DialogActionPrimary_contextCallback=new WeakMap,window.customElements.define("m-dialog-action-primary",DialogActionPrimary);class DialogActionSecondary extends Button{constructor(){super(),this.type="button",this.variant="secondary"}}window.customElements.define("m-dialog-action-secondary",DialogActionSecondary);class DialogActionTertiary extends Button{constructor(){super(),this.type="button",this.variant="tertiary"}}window.customElements.define("m-dialog-action-tertiary",DialogActionTertiary);class DialogActions extends Group{constructor(){super(),this.align="center",this.gap="spacing-3",this.justify="flex-end"}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","actions")}}function styles$s(){return i$5`
|
|
1654
1687
|
:host {
|
|
1655
1688
|
overflow-y: auto;
|
|
1656
1689
|
overscroll-behavior: contain;
|
|
1657
1690
|
|
|
1658
1691
|
${typography("body-md")};
|
|
1659
1692
|
}
|
|
1660
|
-
`}window.customElements.define("m-dialog-actions",DialogActions);class DialogBody extends s$
|
|
1693
|
+
`}window.customElements.define("m-dialog-actions",DialogActions);class DialogBody extends s$7{connectedCallback(){super.connectedCallback(),this.setAttribute("slot","body")}render(){return x`<slot></slot>`}}DialogBody.styles=[styles$s()],window.customElements.define("m-dialog-body",DialogBody);class DialogClose extends CloseButton{constructor(){super(),this.size="large"}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","close")}}window.customElements.define("m-dialog-close",DialogClose);class DialogFooter extends s$7{connectedCallback(){super.connectedCallback(),this.setAttribute("slot","footer")}render(){return x`<slot></slot>`}}function styles$r(){return i$5`
|
|
1661
1694
|
h1 {
|
|
1662
1695
|
margin: 0;
|
|
1663
1696
|
padding: 0;
|
|
@@ -1667,12 +1700,12 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
1667
1700
|
`}window.customElements.define("m-dialog-footer",DialogFooter);class DialogHeader extends Component{constructor(){super(),_DialogHeader_instances.add(this),_DialogHeader_context.set(this,void 0),__classPrivateFieldSet(this,_DialogHeader_context,new s$2(this,{context:dialogContext,subscribe:!0}),"f")}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","header")}render(){return x`
|
|
1668
1701
|
<m-group gap="spacing-6" align="center">
|
|
1669
1702
|
<m-group gap="spacing-1" align="center" style="flex-grow: 1;">
|
|
1670
|
-
${__classPrivateFieldGet(this,_DialogHeader_instances,"a",_DialogHeader_icon_get)}
|
|
1703
|
+
${__classPrivateFieldGet$1(this,_DialogHeader_instances,"a",_DialogHeader_icon_get)}
|
|
1671
1704
|
<h1><slot></slot></h1>
|
|
1672
1705
|
</m-group>
|
|
1673
1706
|
<slot name="close"></slot>
|
|
1674
1707
|
</m-group>
|
|
1675
|
-
`}}function styles$q(){return i$
|
|
1708
|
+
`}}function styles$q(){return i$5`
|
|
1676
1709
|
:host {
|
|
1677
1710
|
--margin: ${getToken("spacing-6")};
|
|
1678
1711
|
--padding: ${getToken("spacing-6")};
|
|
@@ -1766,27 +1799,27 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
1766
1799
|
opacity: 0;
|
|
1767
1800
|
}
|
|
1768
1801
|
}
|
|
1769
|
-
`}_DialogHeader_context=new WeakMap,_DialogHeader_instances=new WeakSet,_DialogHeader_icon_get=function(){const{value:t}=__classPrivateFieldGet(this,_DialogHeader_context,"f");let e,o;switch(t?.variant){case"danger":e="attention",o="color-danger-60";break;case"warning":e="alert-circle",o="color-warning-60";break;case"success":e="check",o="color-success-60";break;default:return A}return x`
|
|
1802
|
+
`}_DialogHeader_context=new WeakMap,_DialogHeader_instances=new WeakSet,_DialogHeader_icon_get=function(){const{value:t}=__classPrivateFieldGet$1(this,_DialogHeader_context,"f");let e,o;switch(t?.variant){case"danger":e="attention",o="color-danger-60";break;case"warning":e="alert-circle",o="color-warning-60";break;case"success":e="check",o="color-success-60";break;default:return A$1}return x`
|
|
1770
1803
|
<m-icon name=${e} color=${o} size="24" aria-hidden="true"></m-icon>
|
|
1771
1804
|
`},DialogHeader.styles=[styles$r()],window.customElements.define("m-dialog-header",DialogHeader),attachContextRoot();class Drawer extends Component{static get properties(){return{open:{type:Boolean,reflect:!0},size:{type:String,reflect:!0},icon:{type:String,reflect:!0}}}constructor(){super(),_Drawer_instances.add(this),this.open=!1,this.size="small"}render(){return x`
|
|
1772
|
-
<dialog @click=${__classPrivateFieldGet(this,_Drawer_instances,"m",_Drawer_handleClick)} @cancel=${__classPrivateFieldGet(this,_Drawer_instances,"m",_Drawer_handleCancel)}>
|
|
1805
|
+
<dialog @click=${__classPrivateFieldGet$1(this,_Drawer_instances,"m",_Drawer_handleClick)} @cancel=${__classPrivateFieldGet$1(this,_Drawer_instances,"m",_Drawer_handleCancel)}>
|
|
1773
1806
|
<slot name="header"></slot>
|
|
1774
1807
|
<slot name="body"></slot>
|
|
1775
1808
|
<slot name="actions"></slot>
|
|
1776
1809
|
</dialog>
|
|
1777
|
-
`}updated(t){super.updated(t),t.has("open")&&__classPrivateFieldGet(this,_Drawer_instances,"m",_Drawer_toggleVisibility).call(this,t.get("open"))}show(){this.open=!0}hide(){this.open=!1}}_Drawer_instances=new WeakSet,_Drawer_dialog_get=function(){return this.renderRoot?.querySelector("dialog")},_Drawer_toggleVisibility=async function(t){const e=__classPrivateFieldGet(this,_Drawer_instances,"a",_Drawer_dialog_get);e&&(!t&&this.open?(this.style.display="block",__classPrivateFieldGet(this,_Drawer_instances,"m",_Drawer_emitLifecycleEvent).call(this,"m-opening"),e.showModal(),await waitForAnimations_1(e),__classPrivateFieldGet(this,_Drawer_instances,"m",_Drawer_emitLifecycleEvent).call(this,"m-opened")):t&&!this.open?(__classPrivateFieldGet(this,_Drawer_instances,"m",_Drawer_emitLifecycleEvent).call(this,"m-closing"),e.classList.add("is-hiding"),await waitForAnimations_1(e),e.classList.remove("is-hiding"),e.close(),__classPrivateFieldGet(this,_Drawer_instances,"m",_Drawer_emitLifecycleEvent).call(this,"m-closed"),this.style.display="none"):null!=t||this.open||(this.style.display="none"))},_Drawer_emitLifecycleEvent=function(t){this.emit(t,{cancelable:!1,bubbles:!1})},_Drawer_emitCloseEvent=function(){this.open&&this.emit("m-close")},_Drawer_handleClick=function(t){const e=t.target instanceof HTMLDialogElement,o=__classPrivateFieldGet(this,_Drawer_instances,"a",_Drawer_dialog_get)?.getBoundingClientRect();if(e&&o){(t.clientY<o.top||t.clientY>o.bottom||t.clientX<o.left||t.clientX>o.right)&&(t.preventDefault(),t.stopPropagation(),__classPrivateFieldGet(this,_Drawer_instances,"m",_Drawer_emitCloseEvent).call(this))}},_Drawer_handleCancel=function(t){t.preventDefault(),__classPrivateFieldGet(this,_Drawer_instances,"m",_Drawer_emitCloseEvent).call(this)},Drawer.styles=[styles$q()],window.customElements.define("m-drawer",Drawer);const DRAWER_SIZES=["small","medium"];class DrawerActionPrimary extends Button{constructor(){super(),this.variant="primary"}}window.customElements.define("m-drawer-action-primary",DrawerActionPrimary);class DrawerActionSecondary extends Button{constructor(){super(),this.variant="secondary"}}window.customElements.define("m-drawer-action-secondary",DrawerActionSecondary);class DrawerActionTertiary extends Button{constructor(){super(),this.variant="tertiary"}}function styles$p(){return i$
|
|
1810
|
+
`}updated(t){super.updated(t),t.has("open")&&__classPrivateFieldGet$1(this,_Drawer_instances,"m",_Drawer_toggleVisibility).call(this,t.get("open"))}show(){this.open=!0}hide(){this.open=!1}}_Drawer_instances=new WeakSet,_Drawer_dialog_get=function(){return this.renderRoot?.querySelector("dialog")},_Drawer_toggleVisibility=async function(t){const e=__classPrivateFieldGet$1(this,_Drawer_instances,"a",_Drawer_dialog_get);e&&(!t&&this.open?(this.style.display="block",__classPrivateFieldGet$1(this,_Drawer_instances,"m",_Drawer_emitLifecycleEvent).call(this,"m-opening"),e.showModal(),await waitForAnimations_1(e),__classPrivateFieldGet$1(this,_Drawer_instances,"m",_Drawer_emitLifecycleEvent).call(this,"m-opened")):t&&!this.open?(__classPrivateFieldGet$1(this,_Drawer_instances,"m",_Drawer_emitLifecycleEvent).call(this,"m-closing"),e.classList.add("is-hiding"),await waitForAnimations_1(e),e.classList.remove("is-hiding"),e.close(),__classPrivateFieldGet$1(this,_Drawer_instances,"m",_Drawer_emitLifecycleEvent).call(this,"m-closed"),this.style.display="none"):null!=t||this.open||(this.style.display="none"))},_Drawer_emitLifecycleEvent=function(t){this.emit(t,{cancelable:!1,bubbles:!1})},_Drawer_emitCloseEvent=function(){this.open&&this.emit("m-close")},_Drawer_handleClick=function(t){const e=t.target instanceof HTMLDialogElement,o=__classPrivateFieldGet$1(this,_Drawer_instances,"a",_Drawer_dialog_get)?.getBoundingClientRect();if(e&&o){(t.clientY<o.top||t.clientY>o.bottom||t.clientX<o.left||t.clientX>o.right)&&(t.preventDefault(),t.stopPropagation(),__classPrivateFieldGet$1(this,_Drawer_instances,"m",_Drawer_emitCloseEvent).call(this))}},_Drawer_handleCancel=function(t){t.preventDefault(),__classPrivateFieldGet$1(this,_Drawer_instances,"m",_Drawer_emitCloseEvent).call(this)},Drawer.styles=[styles$q()],window.customElements.define("m-drawer",Drawer);const DRAWER_SIZES=["small","medium"];class DrawerActionPrimary extends Button{constructor(){super(),this.variant="primary"}}window.customElements.define("m-drawer-action-primary",DrawerActionPrimary);class DrawerActionSecondary extends Button{constructor(){super(),this.variant="secondary"}}window.customElements.define("m-drawer-action-secondary",DrawerActionSecondary);class DrawerActionTertiary extends Button{constructor(){super(),this.variant="tertiary"}}function styles$p(){return i$5`
|
|
1778
1811
|
:host {
|
|
1779
1812
|
margin-top: auto;
|
|
1780
1813
|
margin-left: auto;
|
|
1781
1814
|
}
|
|
1782
|
-
`}window.customElements.define("m-drawer-action-tertiary",DrawerActionTertiary);class DrawerActions extends Group{constructor(){super(),this.align="center",this.gap="spacing-3",this.justify="flex-end"}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","actions")}}function styles$o(){return i$
|
|
1815
|
+
`}window.customElements.define("m-drawer-action-tertiary",DrawerActionTertiary);class DrawerActions extends Group{constructor(){super(),this.align="center",this.gap="spacing-3",this.justify="flex-end"}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","actions")}}function styles$o(){return i$5`
|
|
1783
1816
|
:host {
|
|
1784
1817
|
overflow-y: auto;
|
|
1785
1818
|
overscroll-behavior: contain;
|
|
1786
1819
|
|
|
1787
1820
|
${typography("body-md")};
|
|
1788
1821
|
}
|
|
1789
|
-
`}DrawerActions.styles=[...Group.styles,styles$p()],window.customElements.define("m-drawer-actions",DrawerActions);class DrawerBody extends s$
|
|
1822
|
+
`}DrawerActions.styles=[...Group.styles,styles$p()],window.customElements.define("m-drawer-actions",DrawerActions);class DrawerBody extends s$7{connectedCallback(){super.connectedCallback(),this.setAttribute("slot","body")}render(){return x`<slot></slot>`}}DrawerBody.styles=[styles$o()],window.customElements.define("m-drawer-body",DrawerBody);class DrawerClose extends CloseButton{constructor(){super(),this.size="large"}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","close")}}function styles$n(){return i$5`
|
|
1790
1823
|
h1 {
|
|
1791
1824
|
margin: 0;
|
|
1792
1825
|
padding: 0;
|
|
@@ -1801,7 +1834,7 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
1801
1834
|
</m-group>
|
|
1802
1835
|
<slot name="close"></slot>
|
|
1803
1836
|
</m-group>
|
|
1804
|
-
`}}DrawerHeader.styles=[styles$n()],window.customElements.define("m-drawer-header",DrawerHeader);const sides=["top","right","bottom","left"],min=Math.min,max=Math.max,round=Math.round,floor=Math.floor,createCoords=t=>({x:t,y:t}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"},oppositeAlignmentMap={start:"end",end:"start"};function clamp$1(t,e,o){return max(t,min(e,o))}function evaluate(t,e){return"function"==typeof t?t(e):t}function getSide(t){return t.split("-")[0]}function getAlignment(t){return t.split("-")[1]}function getOppositeAxis(t){return"x"===t?"y":"x"}function getAxisLength(t){return"y"===t?"height":"width"}function getSideAxis(t){return["top","bottom"].includes(getSide(t))?"y":"x"}function getAlignmentAxis(t){return getOppositeAxis(getSideAxis(t))}function getAlignmentSides(t,e,o){void 0===o&&(o=!1);const i=getAlignment(t),r=getAlignmentAxis(t),n=getAxisLength(r);let s="x"===r?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[n]>e.floating[n]&&(s=getOppositePlacement(s)),[s,getOppositePlacement(s)]}function getExpandedPlacements(t){const e=getOppositePlacement(t);return[getOppositeAlignmentPlacement(t),e,getOppositeAlignmentPlacement(e)]}function getOppositeAlignmentPlacement(t){return t.replace(/start|end/g,(t=>oppositeAlignmentMap[t]))}function getSideList(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[]}}function getOppositeAxisPlacements(t,e,o,i){const r=getAlignment(t);let n=getSideList(getSide(t),"start"===o,i);return r&&(n=n.map((t=>t+"-"+r)),e&&(n=n.concat(n.map(getOppositeAlignmentPlacement)))),n}function getOppositePlacement(t){return t.replace(/left|right|bottom|top/g,(t=>oppositeSideMap[t]))}function expandPaddingObject(t){return{top:0,right:0,bottom:0,left:0,...t}}function getPaddingObject(t){return"number"!=typeof t?expandPaddingObject(t):{top:t,right:t,bottom:t,left:t}}function rectToClientRect(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function computeCoordsFromPlacement(t,e,o){let{reference:i,floating:r}=t;const n=getSideAxis(e),s=getAlignmentAxis(e),a=getAxisLength(s),l=getSide(e),c="y"===n,d=i.x+i.width/2-r.width/2,h=i.y+i.height/2-r.height/2,u=i[a]/2-r[a]/2;let g;switch(l){case"top":g={x:d,y:i.y-r.height};break;case"bottom":g={x:d,y:i.y+i.height};break;case"right":g={x:i.x+i.width,y:h};break;case"left":g={x:i.x-r.width,y:h};break;default:g={x:i.x,y:i.y}}switch(getAlignment(e)){case"start":g[s]-=u*(o&&c?-1:1);break;case"end":g[s]+=u*(o&&c?-1:1)}return g}const computePosition$1=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}=computeCoordsFromPlacement(c,i,l),u=i,g={},p=0;for(let o=0;o<a.length;o++){const{name:n,fn:m}=a[o],{x:b,y:_,data:f,reset:y}=await m({x:d,y:h,initialPlacement:i,placement:u,strategy:r,middlewareData:g,rects:c,platform:s,elements:{reference:t,floating:e}});d=null!=b?b:d,h=null!=_?_:h,g={...g,[n]:{...g[n],...f}},y&&p<=50&&(p++,"object"==typeof y&&(y.placement&&(u=y.placement),y.rects&&(c=!0===y.rects?await s.getElementRects({reference:t,floating:e,strategy:r}):y.rects),({x:d,y:h}=computeCoordsFromPlacement(c,u,l))),o=-1)}return{x:d,y:h,placement:u,strategy:r,middlewareData:g}};async function detectOverflow(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:g=0}=evaluate(e,t),p=getPaddingObject(g),m=a[u?"floating"===h?"reference":"floating":h],b=rectToClientRect(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(m)))||o?m:m.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),_="floating"===h?{...s.floating,x:i,y:r}:s.reference,f=await(null==n.getOffsetParent?void 0:n.getOffsetParent(a.floating)),y=await(null==n.isElement?void 0:n.isElement(f))&&await(null==n.getScale?void 0:n.getScale(f))||{x:1,y:1},$=rectToClientRect(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:_,offsetParent:f,strategy:l}):_);return{top:(b.top-$.top+p.top)/y.y,bottom:($.bottom-b.bottom+p.bottom)/y.y,left:(b.left-$.left+p.left)/y.x,right:($.right-b.right+p.right)/y.x}}const arrow$1=t=>({name:"arrow",options:t,async fn(e){const{x:o,y:i,placement:r,rects:n,platform:s,elements:a,middlewareData:l}=e,{element:c,padding:d=0}=evaluate(t,e)||{};if(null==c)return{};const h=getPaddingObject(d),u={x:o,y:i},g=getAlignmentAxis(r),p=getAxisLength(g),m=await s.getDimensions(c),b="y"===g,_=b?"top":"left",f=b?"bottom":"right",y=b?"clientHeight":"clientWidth",$=n.reference[p]+n.reference[g]-u[g]-n.floating[p],v=u[g]-n.reference[g],x=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let w=x?x[y]:0;w&&await(null==s.isElement?void 0:s.isElement(x))||(w=a.floating[y]||n.floating[p]);const k=$/2-v/2,C=w/2-m[p]/2-1,S=min(h[_],C),T=min(h[f],C),P=S,F=w-m[p]-T,A=w/2-m[p]/2+k,B=clamp$1(P,A,F),z=!l.arrow&&null!=getAlignment(r)&&A!==B&&n.reference[p]/2-(A<P?S:T)-m[p]/2<0,G=z?A<P?A-P:A-F:0;return{[g]:u[g]+G,data:{[g]:B,centerOffset:A-B-G,...z&&{alignmentOffset:G}},reset:z}}}),flip$1=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var o,i;const{placement:r,middlewareData:n,rects:s,initialPlacement:a,platform:l,elements:c}=e,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:u,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...b}=evaluate(t,e);if(null!=(o=n.arrow)&&o.alignmentOffset)return{};const _=getSide(r),f=getSide(a)===a,y=await(null==l.isRTL?void 0:l.isRTL(c.floating)),$=u||(f||!m?[getOppositePlacement(a)]:getExpandedPlacements(a));u||"none"===p||$.push(...getOppositeAxisPlacements(a,m,p,y));const v=[a,...$],x=await detectOverflow(e,b),w=[];let k=(null==(i=n.flip)?void 0:i.overflows)||[];if(d&&w.push(x[_]),h){const t=getAlignmentSides(r,s,y);w.push(x[t[0]],x[t[1]])}if(k=[...k,{placement:r,overflows:w}],!w.every((t=>t<=0))){var C,S;const t=((null==(C=n.flip)?void 0:C.index)||0)+1,e=v[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(g){case"bestFit":{var T;const t=null==(T=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:T[0];t&&(o=t);break}case"initialPlacement":o=a}if(r!==o)return{reset:{placement:o}}}return{}}}};function getSideOffsets(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function isAnySideFullyClipped(t){return sides.some((e=>t[e]>=0))}const hide$1=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){const{rects:o}=e,{strategy:i="referenceHidden",...r}=evaluate(t,e);switch(i){case"referenceHidden":{const t=getSideOffsets(await detectOverflow(e,{...r,elementContext:"reference"}),o.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:isAnySideFullyClipped(t)}}}case"escaped":{const t=getSideOffsets(await detectOverflow(e,{...r,altBoundary:!0}),o.floating);return{data:{escapedOffsets:t,escaped:isAnySideFullyClipped(t)}}}default:return{}}}}},shift$1=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:i,placement:r}=e,{mainAxis:n=!0,crossAxis:s=!1,limiter:a={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=evaluate(t,e),c={x:o,y:i},d=await detectOverflow(e,l),h=getSideAxis(getSide(r)),u=getOppositeAxis(h);let g=c[u],p=c[h];if(n){const t="y"===u?"bottom":"right";g=clamp$1(g+d["y"===u?"top":"left"],g,g-d[t])}if(s){const t="y"===h?"bottom":"right";p=clamp$1(p+d["y"===h?"top":"left"],p,p-d[t])}const m=a.fn({...e,[u]:g,[h]:p});return{...m,data:{x:m.x-o,y:m.y-i}}}}};function getNodeName(t){return isNode(t)?(t.nodeName||"").toLowerCase():"#document"}function getWindow(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function getDocumentElement(t){var e;return null==(e=(isNode(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function isNode(t){return t instanceof Node||t instanceof getWindow(t).Node}function isElement(t){return t instanceof Element||t instanceof getWindow(t).Element}function isHTMLElement(t){return t instanceof HTMLElement||t instanceof getWindow(t).HTMLElement}function isShadowRoot(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof getWindow(t).ShadowRoot)}function isOverflowElement(t){const{overflow:e,overflowX:o,overflowY:i,display:r}=getComputedStyle$1(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(r)}function isTableElement(t){return["table","td","th"].includes(getNodeName(t))}function isContainingBlock(t){const e=isWebKit(),o=getComputedStyle$1(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!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 getContainingBlock(t){let e=getParentNode(t);for(;isHTMLElement(e)&&!isLastTraversableNode(e);){if(isContainingBlock(e))return e;e=getParentNode(e)}return null}function isWebKit(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(t){return["html","body","#document"].includes(getNodeName(t))}function getComputedStyle$1(t){return getWindow(t).getComputedStyle(t)}function getNodeScroll(t){return isElement(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function getParentNode(t){if("html"===getNodeName(t))return t;const e=t.assignedSlot||t.parentNode||isShadowRoot(t)&&t.host||getDocumentElement(t);return isShadowRoot(e)?e.host:e}function getNearestOverflowAncestor(t){const e=getParentNode(t);return isLastTraversableNode(e)?t.ownerDocument?t.ownerDocument.body:t.body:isHTMLElement(e)&&isOverflowElement(e)?e:getNearestOverflowAncestor(e)}function getOverflowAncestors(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=getNearestOverflowAncestor(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),s=getWindow(r);return n?e.concat(s,s.visualViewport||[],isOverflowElement(r)?r:[],s.frameElement&&o?getOverflowAncestors(s.frameElement):[]):e.concat(r,getOverflowAncestors(r,[],o))}function getCssDimensions(t){const e=getComputedStyle$1(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=isHTMLElement(t),n=r?t.offsetWidth:o,s=r?t.offsetHeight:i,a=round(o)!==n||round(i)!==s;return a&&(o=n,i=s),{width:o,height:i,$:a}}function unwrapElement(t){return isElement(t)?t:t.contextElement}function getScale(t){const e=unwrapElement(t);if(!isHTMLElement(e))return createCoords(1);const o=e.getBoundingClientRect(),{width:i,height:r,$:n}=getCssDimensions(e);let s=(n?round(o.width):o.width)/i,a=(n?round(o.height):o.height)/r;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const noOffsets=createCoords(0);function getVisualOffsets(t){const e=getWindow(t);return isWebKit()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:noOffsets}function shouldAddVisualOffsets(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==getWindow(t))&&e}function getBoundingClientRect(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),n=unwrapElement(t);let s=createCoords(1);e&&(i?isElement(i)&&(s=getScale(i)):s=getScale(t));const a=shouldAddVisualOffsets(n,o,i)?getVisualOffsets(n):createCoords(0);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=getWindow(n),e=i&&isElement(i)?getWindow(i):i;let o=t,r=o.frameElement;for(;r&&i&&e!==o;){const t=getScale(r),e=r.getBoundingClientRect(),i=getComputedStyle$1(r),n=e.left+(r.clientLeft+parseFloat(i.paddingLeft))*t.x,s=e.top+(r.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,d*=t.x,h*=t.y,l+=n,c+=s,o=getWindow(r),r=o.frameElement}}return rectToClientRect({width:d,height:h,x:l,y:c})}const topLayerSelectors=[":popover-open",":modal"];function isTopLayer(t){return topLayerSelectors.some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function convertOffsetParentRelativeRectToViewportRelativeRect(t){let{elements:e,rect:o,offsetParent:i,strategy:r}=t;const n="fixed"===r,s=getDocumentElement(i),a=!!e&&isTopLayer(e.floating);if(i===s||a&&n)return o;let l={scrollLeft:0,scrollTop:0},c=createCoords(1);const d=createCoords(0),h=isHTMLElement(i);if((h||!h&&!n)&&(("body"!==getNodeName(i)||isOverflowElement(s))&&(l=getNodeScroll(i)),isHTMLElement(i))){const t=getBoundingClientRect(i);c=getScale(i),d.x=t.x+i.clientLeft,d.y=t.y+i.clientTop}return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-l.scrollLeft*c.x+d.x,y:o.y*c.y-l.scrollTop*c.y+d.y}}function getClientRects(t){return Array.from(t.getClientRects())}function getWindowScrollBarX(t){return getBoundingClientRect(getDocumentElement(t)).left+getNodeScroll(t).scrollLeft}function getDocumentRect(t){const e=getDocumentElement(t),o=getNodeScroll(t),i=t.ownerDocument.body,r=max(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=max(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let s=-o.scrollLeft+getWindowScrollBarX(t);const a=-o.scrollTop;return"rtl"===getComputedStyle$1(i).direction&&(s+=max(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:s,y:a}}function getViewportRect(t,e){const o=getWindow(t),i=getDocumentElement(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=isWebKit();(!t||t&&"fixed"===e)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:n,height:s,x:a,y:l}}function getInnerBoundingClientRect(t,e){const o=getBoundingClientRect(t,!0,"fixed"===e),i=o.top+t.clientTop,r=o.left+t.clientLeft,n=isHTMLElement(t)?getScale(t):createCoords(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:i*n.y}}function getClientRectFromClippingAncestor(t,e,o){let i;if("viewport"===e)i=getViewportRect(t,o);else if("document"===e)i=getDocumentRect(getDocumentElement(t));else if(isElement(e))i=getInnerBoundingClientRect(e,o);else{const o=getVisualOffsets(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return rectToClientRect(i)}function hasFixedPositionAncestor(t,e){const o=getParentNode(t);return!(o===e||!isElement(o)||isLastTraversableNode(o))&&("fixed"===getComputedStyle$1(o).position||hasFixedPositionAncestor(o,e))}function getClippingElementAncestors(t,e){const o=e.get(t);if(o)return o;let i=getOverflowAncestors(t,[],!1).filter((t=>isElement(t)&&"body"!==getNodeName(t))),r=null;const n="fixed"===getComputedStyle$1(t).position;let s=n?getParentNode(t):t;for(;isElement(s)&&!isLastTraversableNode(s);){const e=getComputedStyle$1(s),o=isContainingBlock(s);o||"fixed"!==e.position||(r=null);(n?!o&&!r:!o&&"static"===e.position&&!!r&&["absolute","fixed"].includes(r.position)||isOverflowElement(s)&&!o&&hasFixedPositionAncestor(t,s))?i=i.filter((t=>t!==s)):r=e,s=getParentNode(s)}return e.set(t,i),i}function getClippingRect(t){let{element:e,boundary:o,rootBoundary:i,strategy:r}=t;const n=[..."clippingAncestors"===o?getClippingElementAncestors(e,this._c):[].concat(o),i],s=n[0],a=n.reduce(((t,o)=>{const i=getClientRectFromClippingAncestor(e,o,r);return t.top=max(i.top,t.top),t.right=min(i.right,t.right),t.bottom=min(i.bottom,t.bottom),t.left=max(i.left,t.left),t}),getClientRectFromClippingAncestor(e,s,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function getDimensions(t){const{width:e,height:o}=getCssDimensions(t);return{width:e,height:o}}function getRectRelativeToOffsetParent(t,e,o){const i=isHTMLElement(e),r=getDocumentElement(e),n="fixed"===o,s=getBoundingClientRect(t,!0,n,e);let a={scrollLeft:0,scrollTop:0};const l=createCoords(0);if(i||!i&&!n)if(("body"!==getNodeName(e)||isOverflowElement(r))&&(a=getNodeScroll(e)),i){const t=getBoundingClientRect(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=getWindowScrollBarX(r));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function getTrueOffsetParent(t,e){return isHTMLElement(t)&&"fixed"!==getComputedStyle$1(t).position?e?e(t):t.offsetParent:null}function getOffsetParent(t,e){const o=getWindow(t);if(!isHTMLElement(t)||isTopLayer(t))return o;let i=getTrueOffsetParent(t,e);for(;i&&isTableElement(i)&&"static"===getComputedStyle$1(i).position;)i=getTrueOffsetParent(i,e);return i&&("html"===getNodeName(i)||"body"===getNodeName(i)&&"static"===getComputedStyle$1(i).position&&!isContainingBlock(i))?o:i||getContainingBlock(t)||o}const getElementRects=async function(t){const e=this.getOffsetParent||getOffsetParent,o=this.getDimensions;return{reference:getRectRelativeToOffsetParent(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,...await o(t.floating)}}};function isRTL(t){return"rtl"===getComputedStyle$1(t).direction}const platform={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement,isRTL};function observeMove(t,e){let o,i=null;const r=getDocumentElement(t);function n(){var t;clearTimeout(o),null==(t=i)||t.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 g={rootMargin:-floor(d)+"px "+-floor(r.clientWidth-(c+h))+"px "+-floor(r.clientHeight-(d+u))+"px "+-floor(c)+"px",threshold:max(0,min(1,l))||1};let p=!0;function m(t){const e=t[0].intersectionRatio;if(e!==l){if(!p)return s();e?s(!1,e):o=setTimeout((()=>{s(!1,1e-7)}),100)}p=!1}try{i=new IntersectionObserver(m,{...g,root:r.ownerDocument})}catch(t){i=new IntersectionObserver(m,g)}i.observe(t)}(!0),n}function autoUpdate(t,e,o,i){void 0===i&&(i={});const{ancestorScroll:r=!0,ancestorResize:n=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=i,c=unwrapElement(t),d=r||n?[...c?getOverflowAncestors(c):[],...getOverflowAncestors(e)]:[];d.forEach((t=>{r&&t.addEventListener("scroll",o,{passive:!0}),n&&t.addEventListener("resize",o)}));const h=c&&a?observeMove(c,o):null;let u,g=-1,p=null;s&&(p=new ResizeObserver((t=>{let[i]=t;i&&i.target===c&&p&&(p.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{var t;null==(t=p)||t.observe(e)}))),o()})),c&&!l&&p.observe(c),p.observe(e));let m=l?getBoundingClientRect(t):null;return l&&function e(){const i=getBoundingClientRect(t);!m||i.x===m.x&&i.y===m.y&&i.width===m.width&&i.height===m.height||o();m=i,u=requestAnimationFrame(e)}(),o(),()=>{var t;d.forEach((t=>{r&&t.removeEventListener("scroll",o),n&&t.removeEventListener("resize",o)})),null==h||h(),null==(t=p)||t.disconnect(),p=null,l&&cancelAnimationFrame(u)}}const shift=shift$1,flip=flip$1,hide=hide$1,arrow=arrow$1,computePosition=(t,e,o)=>{const i=new Map,r={platform,...o},n={...r.platform,_c:i};return computePosition$1(t,e,{...r,platform:n})};function offsetParent(t){return offsetParentPolyfill(t)}function flatTreeParent(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function offsetParentPolyfill(t){for(let e=t;e;e=flatTreeParent(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=flatTreeParent(t);e;e=flatTreeParent(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}function supportsPopover(){return Object.hasOwn(HTMLElement.prototype,"popover")}function isPopover(t){return!!t&&(supportsPopover()&&t.matches("[popover]"))}function getPositionOffset(t,e,o){const i="var(--m-popover-arrow-size)";switch(e){case"top":case"left":return t?`-1 * ${i} - ${o}px`:`-1 * ${o}px`;case"bottom":case"right":return t?`${i} + ${o}px`:`${o}px`;default:return"0px"}}var _Popover_updateCleanup,_Popover_getArrowPosition;const POPOVER_PLACEMENT_VALUES=["top","left","right","bottom","top-start","top-end","bottom-start","bottom-end"];class Popover extends Component{static get properties(){return{position:{type:String,reflect:!0},placement:{type:String},open:{type:Boolean,reflect:!0},asPopover:{type:Boolean,attribute:"as-popover"}}}constructor(){super(),_Popover_updateCleanup.set(this,void 0),this.getFloatingOffset=()=>10,this.renderArrow=()=>x`<span id="arrow"></span>`,this.reposition=async t=>{if(null==this.floating||null==this.reference)return;const{x:e,y:o,placement:i,middlewareData:r}=await computePosition(this.reference,this.floating,{strategy:this.position??"fixed",placement:this.placement??"bottom-start",platform:{...platform,getOffsetParent:t=>platform.getOffsetParent(t,offsetParent)},middleware:[flip(),shift(),this.arrow?arrow({element:this.arrow,padding:10}):void 0,hide()]});if(r.hide?.referenceHidden)return void Object.assign(this.floating.style,{visibility:"hidden"});const[n]=i.split("-"),s=null!=this.arrow,a={top:{x:"0px",y:getPositionOffset(s,"top",this.getFloatingOffset())},bottom:{x:"0px",y:getPositionOffset(s,"bottom",this.getFloatingOffset())},right:{x:getPositionOffset(s,"right",this.getFloatingOffset()),y:"0px"},left:{x:getPositionOffset(s,"left",this.getFloatingOffset()),y:"0px"}};Object.assign(this.floating.style,{visibility:"visible",top:`calc(${o}px + ${a[n].y})`,left:`calc(${e}px + ${a[n].x})`}),null!=this.arrow&&r.arrow&&Object.assign(this.arrow.style,__classPrivateFieldGet(this,_Popover_getArrowPosition,"f").call(this,r.arrow,n)),this.emit("m-popover-reposition",{detail:{reason:t}})},_Popover_getArrowPosition.set(this,((t,e)=>{if(null==this.floating||null==this.reference||null==this.arrow||null==t)return{};const o={top:"bottom",right:"left",bottom:"top",left:"right"}[e],{x:i,y:r}=t;return{left:null!=i?`${i}px`:"",top:null!=r?`${r}px`:"",right:"",bottom:"",[o]:-this.arrow.offsetWidth/2+"px"}})),this.position="fixed",this.placement="top-end",this.open=!1,this.asPopover=!1}disconnectedCallback(){super.disconnectedCallback(),__classPrivateFieldGet(this,_Popover_updateCleanup,"f")?.call(this)}firstUpdated(){this.asPopover&&supportsPopover()&&this.floating&&this.floating.setAttribute("popover","manual"),this.open&&this.show()}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.reference&&this.floating&&(isPopover(this.floating)&&this.floating.showPopover(),__classPrivateFieldSet(this,_Popover_updateCleanup,autoUpdate(this.reference,this.floating,(()=>{this.reposition("auto")})),"f")))}hide(){this.open&&(this.open=!1,null!=this.floating&&isPopover(this.floating)&&this.floating.hidePopover(),__classPrivateFieldGet(this,_Popover_updateCleanup,"f")?.call(this))}toggle(){this.open?this.hide():this.show()}}_Popover_updateCleanup=new WeakMap,_Popover_getArrowPosition=new WeakMap;const DEFAULT_SELECTORS={referenceSelector:"slot[name='reference']::slotted(*),",floatingSelector:"slot[name='floating']::slotted(*)"};function styles$m(t=DEFAULT_SELECTORS){const{referenceSelector:e,floatingSelector:o}={...DEFAULT_SELECTORS,...t};return[i$4`
|
|
1837
|
+
`}}DrawerHeader.styles=[styles$n()],window.customElements.define("m-drawer-header",DrawerHeader);const sides=["top","right","bottom","left"],min=Math.min,max=Math.max,round=Math.round,floor=Math.floor,createCoords=t=>({x:t,y:t}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"},oppositeAlignmentMap={start:"end",end:"start"};function clamp$1(t,e,o){return max(t,min(e,o))}function evaluate(t,e){return"function"==typeof t?t(e):t}function getSide(t){return t.split("-")[0]}function getAlignment(t){return t.split("-")[1]}function getOppositeAxis(t){return"x"===t?"y":"x"}function getAxisLength(t){return"y"===t?"height":"width"}function getSideAxis(t){return["top","bottom"].includes(getSide(t))?"y":"x"}function getAlignmentAxis(t){return getOppositeAxis(getSideAxis(t))}function getAlignmentSides(t,e,o){void 0===o&&(o=!1);const i=getAlignment(t),r=getAlignmentAxis(t),n=getAxisLength(r);let s="x"===r?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[n]>e.floating[n]&&(s=getOppositePlacement(s)),[s,getOppositePlacement(s)]}function getExpandedPlacements(t){const e=getOppositePlacement(t);return[getOppositeAlignmentPlacement(t),e,getOppositeAlignmentPlacement(e)]}function getOppositeAlignmentPlacement(t){return t.replace(/start|end/g,(t=>oppositeAlignmentMap[t]))}function getSideList(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[]}}function getOppositeAxisPlacements(t,e,o,i){const r=getAlignment(t);let n=getSideList(getSide(t),"start"===o,i);return r&&(n=n.map((t=>t+"-"+r)),e&&(n=n.concat(n.map(getOppositeAlignmentPlacement)))),n}function getOppositePlacement(t){return t.replace(/left|right|bottom|top/g,(t=>oppositeSideMap[t]))}function expandPaddingObject(t){return{top:0,right:0,bottom:0,left:0,...t}}function getPaddingObject(t){return"number"!=typeof t?expandPaddingObject(t):{top:t,right:t,bottom:t,left:t}}function rectToClientRect(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function computeCoordsFromPlacement(t,e,o){let{reference:i,floating:r}=t;const n=getSideAxis(e),s=getAlignmentAxis(e),a=getAxisLength(s),l=getSide(e),c="y"===n,d=i.x+i.width/2-r.width/2,h=i.y+i.height/2-r.height/2,u=i[a]/2-r[a]/2;let g;switch(l){case"top":g={x:d,y:i.y-r.height};break;case"bottom":g={x:d,y:i.y+i.height};break;case"right":g={x:i.x+i.width,y:h};break;case"left":g={x:i.x-r.width,y:h};break;default:g={x:i.x,y:i.y}}switch(getAlignment(e)){case"start":g[s]-=u*(o&&c?-1:1);break;case"end":g[s]+=u*(o&&c?-1:1)}return g}const computePosition$1=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}=computeCoordsFromPlacement(c,i,l),u=i,g={},p=0;for(let o=0;o<a.length;o++){const{name:n,fn:m}=a[o],{x:b,y:$,data:_,reset:f}=await m({x:d,y:h,initialPlacement:i,placement:u,strategy:r,middlewareData:g,rects:c,platform:s,elements:{reference:t,floating:e}});d=null!=b?b:d,h=null!=$?$:h,g={...g,[n]:{...g[n],..._}},f&&p<=50&&(p++,"object"==typeof f&&(f.placement&&(u=f.placement),f.rects&&(c=!0===f.rects?await s.getElementRects({reference:t,floating:e,strategy:r}):f.rects),({x:d,y:h}=computeCoordsFromPlacement(c,u,l))),o=-1)}return{x:d,y:h,placement:u,strategy:r,middlewareData:g}};async function detectOverflow(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:g=0}=evaluate(e,t),p=getPaddingObject(g),m=a[u?"floating"===h?"reference":"floating":h],b=rectToClientRect(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(m)))||o?m:m.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),$="floating"===h?{...s.floating,x:i,y:r}:s.reference,_=await(null==n.getOffsetParent?void 0:n.getOffsetParent(a.floating)),f=await(null==n.isElement?void 0:n.isElement(_))&&await(null==n.getScale?void 0:n.getScale(_))||{x:1,y:1},y=rectToClientRect(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:$,offsetParent:_,strategy:l}):$);return{top:(b.top-y.top+p.top)/f.y,bottom:(y.bottom-b.bottom+p.bottom)/f.y,left:(b.left-y.left+p.left)/f.x,right:(y.right-b.right+p.right)/f.x}}const arrow$1=t=>({name:"arrow",options:t,async fn(e){const{x:o,y:i,placement:r,rects:n,platform:s,elements:a,middlewareData:l}=e,{element:c,padding:d=0}=evaluate(t,e)||{};if(null==c)return{};const h=getPaddingObject(d),u={x:o,y:i},g=getAlignmentAxis(r),p=getAxisLength(g),m=await s.getDimensions(c),b="y"===g,$=b?"top":"left",_=b?"bottom":"right",f=b?"clientHeight":"clientWidth",y=n.reference[p]+n.reference[g]-u[g]-n.floating[p],v=u[g]-n.reference[g],x=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let w=x?x[f]:0;w&&await(null==s.isElement?void 0:s.isElement(x))||(w=a.floating[f]||n.floating[p]);const k=y/2-v/2,S=w/2-m[p]/2-1,C=min(h[$],S),T=min(h[_],S),P=C,A=w-m[p]-T,F=w/2-m[p]/2+k,z=clamp$1(P,F,A),B=!l.arrow&&null!=getAlignment(r)&&F!==z&&n.reference[p]/2-(F<P?C:T)-m[p]/2<0,E=B?F<P?F-P:F-A:0;return{[g]:u[g]+E,data:{[g]:z,centerOffset:F-z-E,...B&&{alignmentOffset:E}},reset:B}}}),flip$1=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var o,i;const{placement:r,middlewareData:n,rects:s,initialPlacement:a,platform:l,elements:c}=e,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:u,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...b}=evaluate(t,e);if(null!=(o=n.arrow)&&o.alignmentOffset)return{};const $=getSide(r),_=getSide(a)===a,f=await(null==l.isRTL?void 0:l.isRTL(c.floating)),y=u||(_||!m?[getOppositePlacement(a)]:getExpandedPlacements(a));u||"none"===p||y.push(...getOppositeAxisPlacements(a,m,p,f));const v=[a,...y],x=await detectOverflow(e,b),w=[];let k=(null==(i=n.flip)?void 0:i.overflows)||[];if(d&&w.push(x[$]),h){const t=getAlignmentSides(r,s,f);w.push(x[t[0]],x[t[1]])}if(k=[...k,{placement:r,overflows:w}],!w.every((t=>t<=0))){var S,C;const t=((null==(S=n.flip)?void 0:S.index)||0)+1,e=v[t];if(e)return{data:{index:t,overflows:k},reset:{placement:e}};let o=null==(C=k.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:C.placement;if(!o)switch(g){case"bestFit":{var T;const t=null==(T=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:T[0];t&&(o=t);break}case"initialPlacement":o=a}if(r!==o)return{reset:{placement:o}}}return{}}}};function getSideOffsets(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function isAnySideFullyClipped(t){return sides.some((e=>t[e]>=0))}const hide$1=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){const{rects:o}=e,{strategy:i="referenceHidden",...r}=evaluate(t,e);switch(i){case"referenceHidden":{const t=getSideOffsets(await detectOverflow(e,{...r,elementContext:"reference"}),o.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:isAnySideFullyClipped(t)}}}case"escaped":{const t=getSideOffsets(await detectOverflow(e,{...r,altBoundary:!0}),o.floating);return{data:{escapedOffsets:t,escaped:isAnySideFullyClipped(t)}}}default:return{}}}}},shift$1=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:i,placement:r}=e,{mainAxis:n=!0,crossAxis:s=!1,limiter:a={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=evaluate(t,e),c={x:o,y:i},d=await detectOverflow(e,l),h=getSideAxis(getSide(r)),u=getOppositeAxis(h);let g=c[u],p=c[h];if(n){const t="y"===u?"bottom":"right";g=clamp$1(g+d["y"===u?"top":"left"],g,g-d[t])}if(s){const t="y"===h?"bottom":"right";p=clamp$1(p+d["y"===h?"top":"left"],p,p-d[t])}const m=a.fn({...e,[u]:g,[h]:p});return{...m,data:{x:m.x-o,y:m.y-i}}}}};function getNodeName(t){return isNode(t)?(t.nodeName||"").toLowerCase():"#document"}function getWindow(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function getDocumentElement(t){var e;return null==(e=(isNode(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function isNode(t){return t instanceof Node||t instanceof getWindow(t).Node}function isElement(t){return t instanceof Element||t instanceof getWindow(t).Element}function isHTMLElement(t){return t instanceof HTMLElement||t instanceof getWindow(t).HTMLElement}function isShadowRoot(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof getWindow(t).ShadowRoot)}function isOverflowElement(t){const{overflow:e,overflowX:o,overflowY:i,display:r}=getComputedStyle$1(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(r)}function isTableElement(t){return["table","td","th"].includes(getNodeName(t))}function isContainingBlock(t){const e=isWebKit(),o=getComputedStyle$1(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!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 getContainingBlock(t){let e=getParentNode(t);for(;isHTMLElement(e)&&!isLastTraversableNode(e);){if(isContainingBlock(e))return e;e=getParentNode(e)}return null}function isWebKit(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(t){return["html","body","#document"].includes(getNodeName(t))}function getComputedStyle$1(t){return getWindow(t).getComputedStyle(t)}function getNodeScroll(t){return isElement(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function getParentNode(t){if("html"===getNodeName(t))return t;const e=t.assignedSlot||t.parentNode||isShadowRoot(t)&&t.host||getDocumentElement(t);return isShadowRoot(e)?e.host:e}function getNearestOverflowAncestor(t){const e=getParentNode(t);return isLastTraversableNode(e)?t.ownerDocument?t.ownerDocument.body:t.body:isHTMLElement(e)&&isOverflowElement(e)?e:getNearestOverflowAncestor(e)}function getOverflowAncestors(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=getNearestOverflowAncestor(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),s=getWindow(r);return n?e.concat(s,s.visualViewport||[],isOverflowElement(r)?r:[],s.frameElement&&o?getOverflowAncestors(s.frameElement):[]):e.concat(r,getOverflowAncestors(r,[],o))}function getCssDimensions(t){const e=getComputedStyle$1(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=isHTMLElement(t),n=r?t.offsetWidth:o,s=r?t.offsetHeight:i,a=round(o)!==n||round(i)!==s;return a&&(o=n,i=s),{width:o,height:i,$:a}}function unwrapElement(t){return isElement(t)?t:t.contextElement}function getScale(t){const e=unwrapElement(t);if(!isHTMLElement(e))return createCoords(1);const o=e.getBoundingClientRect(),{width:i,height:r,$:n}=getCssDimensions(e);let s=(n?round(o.width):o.width)/i,a=(n?round(o.height):o.height)/r;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const noOffsets=createCoords(0);function getVisualOffsets(t){const e=getWindow(t);return isWebKit()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:noOffsets}function shouldAddVisualOffsets(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==getWindow(t))&&e}function getBoundingClientRect(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),n=unwrapElement(t);let s=createCoords(1);e&&(i?isElement(i)&&(s=getScale(i)):s=getScale(t));const a=shouldAddVisualOffsets(n,o,i)?getVisualOffsets(n):createCoords(0);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=getWindow(n),e=i&&isElement(i)?getWindow(i):i;let o=t,r=o.frameElement;for(;r&&i&&e!==o;){const t=getScale(r),e=r.getBoundingClientRect(),i=getComputedStyle$1(r),n=e.left+(r.clientLeft+parseFloat(i.paddingLeft))*t.x,s=e.top+(r.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,d*=t.x,h*=t.y,l+=n,c+=s,o=getWindow(r),r=o.frameElement}}return rectToClientRect({width:d,height:h,x:l,y:c})}const topLayerSelectors=[":popover-open",":modal"];function isTopLayer(t){return topLayerSelectors.some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function convertOffsetParentRelativeRectToViewportRelativeRect(t){let{elements:e,rect:o,offsetParent:i,strategy:r}=t;const n="fixed"===r,s=getDocumentElement(i),a=!!e&&isTopLayer(e.floating);if(i===s||a&&n)return o;let l={scrollLeft:0,scrollTop:0},c=createCoords(1);const d=createCoords(0),h=isHTMLElement(i);if((h||!h&&!n)&&(("body"!==getNodeName(i)||isOverflowElement(s))&&(l=getNodeScroll(i)),isHTMLElement(i))){const t=getBoundingClientRect(i);c=getScale(i),d.x=t.x+i.clientLeft,d.y=t.y+i.clientTop}return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-l.scrollLeft*c.x+d.x,y:o.y*c.y-l.scrollTop*c.y+d.y}}function getClientRects(t){return Array.from(t.getClientRects())}function getWindowScrollBarX(t){return getBoundingClientRect(getDocumentElement(t)).left+getNodeScroll(t).scrollLeft}function getDocumentRect(t){const e=getDocumentElement(t),o=getNodeScroll(t),i=t.ownerDocument.body,r=max(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=max(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let s=-o.scrollLeft+getWindowScrollBarX(t);const a=-o.scrollTop;return"rtl"===getComputedStyle$1(i).direction&&(s+=max(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:s,y:a}}function getViewportRect(t,e){const o=getWindow(t),i=getDocumentElement(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=isWebKit();(!t||t&&"fixed"===e)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:n,height:s,x:a,y:l}}function getInnerBoundingClientRect(t,e){const o=getBoundingClientRect(t,!0,"fixed"===e),i=o.top+t.clientTop,r=o.left+t.clientLeft,n=isHTMLElement(t)?getScale(t):createCoords(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:i*n.y}}function getClientRectFromClippingAncestor(t,e,o){let i;if("viewport"===e)i=getViewportRect(t,o);else if("document"===e)i=getDocumentRect(getDocumentElement(t));else if(isElement(e))i=getInnerBoundingClientRect(e,o);else{const o=getVisualOffsets(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return rectToClientRect(i)}function hasFixedPositionAncestor(t,e){const o=getParentNode(t);return!(o===e||!isElement(o)||isLastTraversableNode(o))&&("fixed"===getComputedStyle$1(o).position||hasFixedPositionAncestor(o,e))}function getClippingElementAncestors(t,e){const o=e.get(t);if(o)return o;let i=getOverflowAncestors(t,[],!1).filter((t=>isElement(t)&&"body"!==getNodeName(t))),r=null;const n="fixed"===getComputedStyle$1(t).position;let s=n?getParentNode(t):t;for(;isElement(s)&&!isLastTraversableNode(s);){const e=getComputedStyle$1(s),o=isContainingBlock(s);o||"fixed"!==e.position||(r=null);(n?!o&&!r:!o&&"static"===e.position&&!!r&&["absolute","fixed"].includes(r.position)||isOverflowElement(s)&&!o&&hasFixedPositionAncestor(t,s))?i=i.filter((t=>t!==s)):r=e,s=getParentNode(s)}return e.set(t,i),i}function getClippingRect(t){let{element:e,boundary:o,rootBoundary:i,strategy:r}=t;const n=[..."clippingAncestors"===o?getClippingElementAncestors(e,this._c):[].concat(o),i],s=n[0],a=n.reduce(((t,o)=>{const i=getClientRectFromClippingAncestor(e,o,r);return t.top=max(i.top,t.top),t.right=min(i.right,t.right),t.bottom=min(i.bottom,t.bottom),t.left=max(i.left,t.left),t}),getClientRectFromClippingAncestor(e,s,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function getDimensions(t){const{width:e,height:o}=getCssDimensions(t);return{width:e,height:o}}function getRectRelativeToOffsetParent(t,e,o){const i=isHTMLElement(e),r=getDocumentElement(e),n="fixed"===o,s=getBoundingClientRect(t,!0,n,e);let a={scrollLeft:0,scrollTop:0};const l=createCoords(0);if(i||!i&&!n)if(("body"!==getNodeName(e)||isOverflowElement(r))&&(a=getNodeScroll(e)),i){const t=getBoundingClientRect(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=getWindowScrollBarX(r));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function getTrueOffsetParent(t,e){return isHTMLElement(t)&&"fixed"!==getComputedStyle$1(t).position?e?e(t):t.offsetParent:null}function getOffsetParent(t,e){const o=getWindow(t);if(!isHTMLElement(t)||isTopLayer(t))return o;let i=getTrueOffsetParent(t,e);for(;i&&isTableElement(i)&&"static"===getComputedStyle$1(i).position;)i=getTrueOffsetParent(i,e);return i&&("html"===getNodeName(i)||"body"===getNodeName(i)&&"static"===getComputedStyle$1(i).position&&!isContainingBlock(i))?o:i||getContainingBlock(t)||o}const getElementRects=async function(t){const e=this.getOffsetParent||getOffsetParent,o=this.getDimensions;return{reference:getRectRelativeToOffsetParent(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,...await o(t.floating)}}};function isRTL(t){return"rtl"===getComputedStyle$1(t).direction}const platform={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement,isRTL};function observeMove(t,e){let o,i=null;const r=getDocumentElement(t);function n(){var t;clearTimeout(o),null==(t=i)||t.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 g={rootMargin:-floor(d)+"px "+-floor(r.clientWidth-(c+h))+"px "+-floor(r.clientHeight-(d+u))+"px "+-floor(c)+"px",threshold:max(0,min(1,l))||1};let p=!0;function m(t){const e=t[0].intersectionRatio;if(e!==l){if(!p)return s();e?s(!1,e):o=setTimeout((()=>{s(!1,1e-7)}),100)}p=!1}try{i=new IntersectionObserver(m,{...g,root:r.ownerDocument})}catch(t){i=new IntersectionObserver(m,g)}i.observe(t)}(!0),n}function autoUpdate(t,e,o,i){void 0===i&&(i={});const{ancestorScroll:r=!0,ancestorResize:n=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=i,c=unwrapElement(t),d=r||n?[...c?getOverflowAncestors(c):[],...getOverflowAncestors(e)]:[];d.forEach((t=>{r&&t.addEventListener("scroll",o,{passive:!0}),n&&t.addEventListener("resize",o)}));const h=c&&a?observeMove(c,o):null;let u,g=-1,p=null;s&&(p=new ResizeObserver((t=>{let[i]=t;i&&i.target===c&&p&&(p.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{var t;null==(t=p)||t.observe(e)}))),o()})),c&&!l&&p.observe(c),p.observe(e));let m=l?getBoundingClientRect(t):null;return l&&function e(){const i=getBoundingClientRect(t);!m||i.x===m.x&&i.y===m.y&&i.width===m.width&&i.height===m.height||o();m=i,u=requestAnimationFrame(e)}(),o(),()=>{var t;d.forEach((t=>{r&&t.removeEventListener("scroll",o),n&&t.removeEventListener("resize",o)})),null==h||h(),null==(t=p)||t.disconnect(),p=null,l&&cancelAnimationFrame(u)}}const shift=shift$1,flip=flip$1,hide=hide$1,arrow=arrow$1,computePosition=(t,e,o)=>{const i=new Map,r={platform,...o},n={...r.platform,_c:i};return computePosition$1(t,e,{...r,platform:n})};function offsetParent(t){return offsetParentPolyfill(t)}function flatTreeParent(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function offsetParentPolyfill(t){for(let e=t;e;e=flatTreeParent(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=flatTreeParent(t);e;e=flatTreeParent(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}function supportsPopover(){return Object.hasOwn(HTMLElement.prototype,"popover")}function isPopover(t){return!!t&&(supportsPopover()&&t.matches("[popover]"))}function getPositionOffset(t,e,o){const i="var(--m-popover-arrow-size)";switch(e){case"top":case"left":return t?`-1 * ${i} - ${o}px`:`-1 * ${o}px`;case"bottom":case"right":return t?`${i} + ${o}px`:`${o}px`;default:return"0px"}}var _Popover_updateCleanup,_Popover_getArrowPosition;const POPOVER_PLACEMENT_VALUES=["top","left","right","bottom","top-start","top-end","bottom-start","bottom-end"];class Popover extends Component{static get properties(){return{position:{type:String,reflect:!0},placement:{type:String},open:{type:Boolean,reflect:!0},asPopover:{type:Boolean,attribute:"as-popover"}}}constructor(){super(),_Popover_updateCleanup.set(this,void 0),this.getFloatingOffset=()=>10,this.renderArrow=()=>x`<span id="arrow"></span>`,this.reposition=async t=>{if(null==this.floating||null==this.reference)return;const{x:e,y:o,placement:i,middlewareData:r}=await computePosition(this.reference,this.floating,{strategy:this.position??"fixed",placement:this.placement??"bottom-start",platform:{...platform,getOffsetParent:t=>platform.getOffsetParent(t,offsetParent)},middleware:[flip(),shift(),this.arrow?arrow({element:this.arrow,padding:10}):void 0,hide()]});if(r.hide?.referenceHidden)return void Object.assign(this.floating.style,{visibility:"hidden"});const[n]=i.split("-"),s=null!=this.arrow,a={top:{x:"0px",y:getPositionOffset(s,"top",this.getFloatingOffset())},bottom:{x:"0px",y:getPositionOffset(s,"bottom",this.getFloatingOffset())},right:{x:getPositionOffset(s,"right",this.getFloatingOffset()),y:"0px"},left:{x:getPositionOffset(s,"left",this.getFloatingOffset()),y:"0px"}};Object.assign(this.floating.style,{visibility:"visible",top:`calc(${o}px + ${a[n].y})`,left:`calc(${e}px + ${a[n].x})`}),null!=this.arrow&&r.arrow&&Object.assign(this.arrow.style,__classPrivateFieldGet$1(this,_Popover_getArrowPosition,"f").call(this,r.arrow,n)),this.emit("m-popover-reposition",{detail:{reason:t}})},_Popover_getArrowPosition.set(this,((t,e)=>{if(null==this.floating||null==this.reference||null==this.arrow||null==t)return{};const o={top:"bottom",right:"left",bottom:"top",left:"right"}[e],{x:i,y:r}=t;return{left:null!=i?`${i}px`:"",top:null!=r?`${r}px`:"",right:"",bottom:"",[o]:-this.arrow.offsetWidth/2+"px"}})),this.position="fixed",this.placement="top-end",this.open=!1,this.asPopover=!1}disconnectedCallback(){super.disconnectedCallback(),__classPrivateFieldGet$1(this,_Popover_updateCleanup,"f")?.call(this)}firstUpdated(){this.asPopover&&supportsPopover()&&this.floating&&this.floating.setAttribute("popover","manual"),this.open&&this.show()}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.reference&&this.floating&&(isPopover(this.floating)&&this.floating.showPopover(),__classPrivateFieldSet(this,_Popover_updateCleanup,autoUpdate(this.reference,this.floating,(()=>{this.reposition("auto")})),"f")))}hide(){this.open&&(this.open=!1,null!=this.floating&&isPopover(this.floating)&&this.floating.hidePopover(),__classPrivateFieldGet$1(this,_Popover_updateCleanup,"f")?.call(this))}toggle(){this.open?this.hide():this.show()}}_Popover_updateCleanup=new WeakMap,_Popover_getArrowPosition=new WeakMap;const DEFAULT_SELECTORS={referenceSelector:"slot[name='reference']::slotted(*),",floatingSelector:"slot[name='floating']::slotted(*)"};function styles$m(t=DEFAULT_SELECTORS){const{referenceSelector:e,floatingSelector:o}={...DEFAULT_SELECTORS,...t};return[i$5`
|
|
1805
1838
|
:host {
|
|
1806
1839
|
--m-popover-background-color: ${getColor("color-background-secondary-inverted")};
|
|
1807
1840
|
--m-popover-border-radius: ${getToken("border-radius-m")};
|
|
@@ -1825,11 +1858,11 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
1825
1858
|
position: relative;
|
|
1826
1859
|
}
|
|
1827
1860
|
|
|
1828
|
-
${r$
|
|
1861
|
+
${r$9(e)} {
|
|
1829
1862
|
display: inline-flex;
|
|
1830
1863
|
}
|
|
1831
1864
|
|
|
1832
|
-
${r$
|
|
1865
|
+
${r$9(o)} {
|
|
1833
1866
|
${transition([{property:"box-shadow"}])};
|
|
1834
1867
|
${typography("body-md")};
|
|
1835
1868
|
|
|
@@ -1859,15 +1892,15 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
1859
1892
|
z-index: var(--m-popover-z-index);
|
|
1860
1893
|
}
|
|
1861
1894
|
|
|
1862
|
-
:host([position='absolute']) ${r$
|
|
1895
|
+
:host([position='absolute']) ${r$9(o)} {
|
|
1863
1896
|
position: absolute;
|
|
1864
1897
|
}
|
|
1865
1898
|
|
|
1866
|
-
:host([position='fixed']) ${r$
|
|
1899
|
+
:host([position='fixed']) ${r$9(o)} {
|
|
1867
1900
|
position: fixed;
|
|
1868
1901
|
}
|
|
1869
1902
|
|
|
1870
|
-
:host([open]) ${r$
|
|
1903
|
+
:host([open]) ${r$9(o)}, :host([open]) #arrow {
|
|
1871
1904
|
display: inline-block;
|
|
1872
1905
|
}
|
|
1873
1906
|
|
|
@@ -1889,7 +1922,7 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
1889
1922
|
.-fixed {
|
|
1890
1923
|
position: fixed;
|
|
1891
1924
|
}
|
|
1892
|
-
`]}var _BoundaryController_instances,_BoundaryController_subscribe,_BoundaryController_unsubscribe,_BoundaryController_handleEvent,_BoundaryController_handleBlurEvent,_FocusManagerController_instances,_FocusManagerController_focusElement,_FocusManagerController_focusIndex,_FocusManagerController_focusPosition,_FocusManagerController_getIndexOfQueried,_FocusManagerController_findQueriedById,_FocusManagerController_handleKeyPress,_FocusManagerController_clearBufferAfterDelay,_FocusManagerController_findMatchInRange;class BoundaryController{constructor(t,e){_BoundaryController_instances.add(this),this.activate=()=>{this.active||(__classPrivateFieldGet(this,_BoundaryController_instances,"m",_BoundaryController_subscribe).call(this),this.active=!0)},this.deactivate=()=>{this.active&&(__classPrivateFieldGet(this,_BoundaryController_instances,"m",_BoundaryController_unsubscribe).call(this),this.active=!1)},_BoundaryController_handleEvent.set(this,(t=>{const e=isInsideElement(t,this.host);!e||t instanceof KeyboardEvent&&"Escape"===t.key?this.host.dispatchEvent(new CustomEvent("m-interact-out")):e&&this.host.dispatchEvent(new CustomEvent("m-interact-in"))})),_BoundaryController_handleBlurEvent.set(this,(t=>{isInsideElement(t,this.host)||this.host.dispatchEvent(new CustomEvent("m-interact-out"))})),this.host=t,this.active=Boolean(e??!1),this.host.addController(this)}hostConnected(){this.active?__classPrivateFieldGet(this,_BoundaryController_instances,"m",_BoundaryController_subscribe).call(this):__classPrivateFieldGet(this,_BoundaryController_instances,"m",_BoundaryController_unsubscribe).call(this)}hostDisconnected(){this.active&&__classPrivateFieldGet(this,_BoundaryController_instances,"m",_BoundaryController_unsubscribe).call(this)}}function isDisabled(t){return null!=t&&"object"==typeof t&&"disabled"in t&&!0===t.disabled}function isPrintableCharacter(t){return 1===t.length&&/\S/.test(t)}_BoundaryController_handleEvent=new WeakMap,_BoundaryController_handleBlurEvent=new WeakMap,_BoundaryController_instances=new WeakSet,_BoundaryController_subscribe=function(){document.addEventListener("mousedown",__classPrivateFieldGet(this,_BoundaryController_handleEvent,"f")),document.addEventListener("keyup",__classPrivateFieldGet(this,_BoundaryController_handleEvent,"f")),document.addEventListener("touchend",__classPrivateFieldGet(this,_BoundaryController_handleEvent,"f")),window.addEventListener("blur",__classPrivateFieldGet(this,_BoundaryController_handleBlurEvent,"f"),!0)},_BoundaryController_unsubscribe=function(){document.removeEventListener("mousedown",__classPrivateFieldGet(this,_BoundaryController_handleEvent,"f")),document.removeEventListener("keyup",__classPrivateFieldGet(this,_BoundaryController_handleEvent,"f")),document.removeEventListener("touchend",__classPrivateFieldGet(this,_BoundaryController_handleEvent,"f")),window.removeEventListener("blur",__classPrivateFieldGet(this,_BoundaryController_handleBlurEvent,"f"),!0)};class FocusManagerController{constructor(t,e){_FocusManagerController_instances.add(this),this.activeDescendant=null,_FocusManagerController_focusElement.set(this,(t=>{t&&!isDisabled(t)&&t.id&&(this.clear(),this.activeDescendant=t.id,this.getInteractiveElement(this.host).setAttribute("aria-activedescendant",t.id),t.classList.add("is-focused"),t.scrollIntoView({block:"start",inline:"nearest",behavior:"smooth"}))})),_FocusManagerController_focusIndex.set(this,(t=>{__classPrivateFieldGet(this,_FocusManagerController_focusElement,"f").call(this,this.queried.at(t))})),_FocusManagerController_focusPosition.set(this,(t=>{const e=__classPrivateFieldGet(this,_FocusManagerController_instances,"m",_FocusManagerController_getIndexOfQueried).call(this,this.focused);switch(t){case"first":__classPrivateFieldGet(this,_FocusManagerController_focusIndex,"f").call(this,0);break;case"last":__classPrivateFieldGet(this,_FocusManagerController_focusIndex,"f").call(this,this.queried.length-1);break;case"previous":{if(-1===e)return;const t=(e-1+this.queried.length)%this.queried.length;__classPrivateFieldGet(this,_FocusManagerController_focusIndex,"f").call(this,t);break}case"next":{if(-1===e)return;const t=(e+1)%this.queried.length;__classPrivateFieldGet(this,_FocusManagerController_focusIndex,"f").call(this,t);break}}})),_FocusManagerController_handleKeyPress.set(this,(t=>{const{key:e}=t;if(!isPrintableCharacter(e))return;const o=__classPrivateFieldGet(this,_FocusManagerController_instances,"m",_FocusManagerController_getIndexOfQueried).call(this,this.focused);this.quickSearchBuffer+=e,__classPrivateFieldGet(this,_FocusManagerController_clearBufferAfterDelay,"f").call(this);let i=__classPrivateFieldGet(this,_FocusManagerController_findMatchInRange,"f").call(this,o+1,this.queried.length);i||(i=__classPrivateFieldGet(this,_FocusManagerController_findMatchInRange,"f").call(this,0,o)),null!=i&&this.focus(i)})),_FocusManagerController_clearBufferAfterDelay.set(this,(()=>{this.quickSearchBufferTimeout&&(window.clearTimeout(this.quickSearchBufferTimeout),this.quickSearchBufferTimeout=null),this.quickSearchBufferTimeout=window.setTimeout((()=>{this.quickSearchBuffer="",this.quickSearchBufferTimeout=null}),500)})),_FocusManagerController_findMatchInRange.set(this,((t,e)=>{for(let o=t;o<e;o++){const t=this.queried[o].innerText.toLowerCase();if(t&&0===t.indexOf(this.quickSearchBuffer))return this.queried[o]}return null})),this.query=toArray$1(e.query).join(","),this.focusOnType=Boolean(e.focusOnType??!0),this.getInteractiveElement=e.getInteractiveElement??(()=>t),this.quickSearchBuffer="",(this.host=t).addController(this)}hostConnected(){this.focusOnType&&this.host.addEventListener("keyup",__classPrivateFieldGet(this,_FocusManagerController_handleKeyPress,"f"))}hostDisconnected(){this.host.removeEventListener("keyup",__classPrivateFieldGet(this,_FocusManagerController_handleKeyPress,"f"))}get queried(){return Array.from(this.host.querySelectorAll(this.query))}get focused(){return this.activeDescendant?__classPrivateFieldGet(this,_FocusManagerController_instances,"m",_FocusManagerController_findQueriedById).call(this,this.activeDescendant):null}focusNext(){this.focus("next")}focusPrevious(){this.focus("previous")}focusFirst(){this.focus(0)}focusLast(){this.focus(this.queried.length-1)}focus(t){"number"==typeof t?__classPrivateFieldGet(this,_FocusManagerController_focusIndex,"f").call(this,t):"string"==typeof t?__classPrivateFieldGet(this,_FocusManagerController_focusPosition,"f").call(this,t):__classPrivateFieldGet(this,_FocusManagerController_focusElement,"f").call(this,t)}clear(){this.getInteractiveElement(this.host).removeAttribute("aria-activedescendant");const t=this.focused;this.activeDescendant=null,t&&t.classList.remove("is-focused")}}_FocusManagerController_focusElement=new WeakMap,_FocusManagerController_focusIndex=new WeakMap,_FocusManagerController_focusPosition=new WeakMap,_FocusManagerController_handleKeyPress=new WeakMap,_FocusManagerController_clearBufferAfterDelay=new WeakMap,_FocusManagerController_findMatchInRange=new WeakMap,_FocusManagerController_instances=new WeakSet,_FocusManagerController_getIndexOfQueried=function(t){return t?this.queried.indexOf(t):-1},_FocusManagerController_findQueriedById=function(t){return this.queried.find((e=>e.id===t))??null};const TRIGGER_SELECTOR='[aria-haspopup="true"]',MENU_SELECTOR='[role="menu"]',ITEM_SELECTOR='[role="menuitem"]';function dropdownStyles(){return[styles$m({referenceSelector:`::slotted(${TRIGGER_SELECTOR})`,floatingSelector:`::slotted(${MENU_SELECTOR})`}),i$
|
|
1925
|
+
`]}var _BoundaryController_instances,_BoundaryController_subscribe,_BoundaryController_unsubscribe,_BoundaryController_handleEvent,_BoundaryController_handleBlurEvent,_FocusManagerController_instances,_FocusManagerController_focusElement,_FocusManagerController_focusIndex,_FocusManagerController_focusPosition,_FocusManagerController_getIndexOfQueried,_FocusManagerController_findQueriedById,_FocusManagerController_handleKeyPress,_FocusManagerController_clearBufferAfterDelay,_FocusManagerController_findMatchInRange;class BoundaryController{constructor(t,e){_BoundaryController_instances.add(this),this.activate=()=>{this.active||(__classPrivateFieldGet$1(this,_BoundaryController_instances,"m",_BoundaryController_subscribe).call(this),this.active=!0)},this.deactivate=()=>{this.active&&(__classPrivateFieldGet$1(this,_BoundaryController_instances,"m",_BoundaryController_unsubscribe).call(this),this.active=!1)},_BoundaryController_handleEvent.set(this,(t=>{const e=isInsideElement(t,this.host);!e||t instanceof KeyboardEvent&&"Escape"===t.key?this.host.dispatchEvent(new CustomEvent("m-interact-out")):e&&this.host.dispatchEvent(new CustomEvent("m-interact-in"))})),_BoundaryController_handleBlurEvent.set(this,(t=>{isInsideElement(t,this.host)||this.host.dispatchEvent(new CustomEvent("m-interact-out"))})),this.host=t,this.active=Boolean(e??!1),this.host.addController(this)}hostConnected(){this.active?__classPrivateFieldGet$1(this,_BoundaryController_instances,"m",_BoundaryController_subscribe).call(this):__classPrivateFieldGet$1(this,_BoundaryController_instances,"m",_BoundaryController_unsubscribe).call(this)}hostDisconnected(){this.active&&__classPrivateFieldGet$1(this,_BoundaryController_instances,"m",_BoundaryController_unsubscribe).call(this)}}function isDisabled(t){return null!=t&&"object"==typeof t&&"disabled"in t&&!0===t.disabled}function isPrintableCharacter(t){return 1===t.length&&/\S/.test(t)}_BoundaryController_handleEvent=new WeakMap,_BoundaryController_handleBlurEvent=new WeakMap,_BoundaryController_instances=new WeakSet,_BoundaryController_subscribe=function(){document.addEventListener("mousedown",__classPrivateFieldGet$1(this,_BoundaryController_handleEvent,"f")),document.addEventListener("keyup",__classPrivateFieldGet$1(this,_BoundaryController_handleEvent,"f")),document.addEventListener("touchend",__classPrivateFieldGet$1(this,_BoundaryController_handleEvent,"f")),window.addEventListener("blur",__classPrivateFieldGet$1(this,_BoundaryController_handleBlurEvent,"f"),!0)},_BoundaryController_unsubscribe=function(){document.removeEventListener("mousedown",__classPrivateFieldGet$1(this,_BoundaryController_handleEvent,"f")),document.removeEventListener("keyup",__classPrivateFieldGet$1(this,_BoundaryController_handleEvent,"f")),document.removeEventListener("touchend",__classPrivateFieldGet$1(this,_BoundaryController_handleEvent,"f")),window.removeEventListener("blur",__classPrivateFieldGet$1(this,_BoundaryController_handleBlurEvent,"f"),!0)};class FocusManagerController{constructor(t,e){_FocusManagerController_instances.add(this),this.activeDescendant=null,_FocusManagerController_focusElement.set(this,(t=>{t&&!isDisabled(t)&&t.id&&(this.clear(),this.activeDescendant=t.id,this.getInteractiveElement(this.host).setAttribute("aria-activedescendant",t.id),t.classList.add("is-focused"),t.scrollIntoView({block:"start",inline:"nearest",behavior:"smooth"}))})),_FocusManagerController_focusIndex.set(this,(t=>{__classPrivateFieldGet$1(this,_FocusManagerController_focusElement,"f").call(this,this.queried.at(t))})),_FocusManagerController_focusPosition.set(this,(t=>{const e=__classPrivateFieldGet$1(this,_FocusManagerController_instances,"m",_FocusManagerController_getIndexOfQueried).call(this,this.focused);switch(t){case"first":__classPrivateFieldGet$1(this,_FocusManagerController_focusIndex,"f").call(this,0);break;case"last":__classPrivateFieldGet$1(this,_FocusManagerController_focusIndex,"f").call(this,this.queried.length-1);break;case"previous":{if(-1===e)return;const t=(e-1+this.queried.length)%this.queried.length;__classPrivateFieldGet$1(this,_FocusManagerController_focusIndex,"f").call(this,t);break}case"next":{if(-1===e)return;const t=(e+1)%this.queried.length;__classPrivateFieldGet$1(this,_FocusManagerController_focusIndex,"f").call(this,t);break}}})),_FocusManagerController_handleKeyPress.set(this,(t=>{const{key:e}=t;if(!isPrintableCharacter(e))return;const o=__classPrivateFieldGet$1(this,_FocusManagerController_instances,"m",_FocusManagerController_getIndexOfQueried).call(this,this.focused);this.quickSearchBuffer+=e,__classPrivateFieldGet$1(this,_FocusManagerController_clearBufferAfterDelay,"f").call(this);let i=__classPrivateFieldGet$1(this,_FocusManagerController_findMatchInRange,"f").call(this,o+1,this.queried.length);i||(i=__classPrivateFieldGet$1(this,_FocusManagerController_findMatchInRange,"f").call(this,0,o)),null!=i&&this.focus(i)})),_FocusManagerController_clearBufferAfterDelay.set(this,(()=>{this.quickSearchBufferTimeout&&(window.clearTimeout(this.quickSearchBufferTimeout),this.quickSearchBufferTimeout=null),this.quickSearchBufferTimeout=window.setTimeout((()=>{this.quickSearchBuffer="",this.quickSearchBufferTimeout=null}),500)})),_FocusManagerController_findMatchInRange.set(this,((t,e)=>{for(let o=t;o<e;o++){const t=this.queried[o].innerText.toLowerCase();if(t&&0===t.indexOf(this.quickSearchBuffer))return this.queried[o]}return null})),this.query=toArray$1(e.query).join(","),this.focusOnType=Boolean(e.focusOnType??!0),this.getInteractiveElement=e.getInteractiveElement??(()=>t),this.quickSearchBuffer="",(this.host=t).addController(this)}hostConnected(){this.focusOnType&&this.host.addEventListener("keyup",__classPrivateFieldGet$1(this,_FocusManagerController_handleKeyPress,"f"))}hostDisconnected(){this.host.removeEventListener("keyup",__classPrivateFieldGet$1(this,_FocusManagerController_handleKeyPress,"f"))}get queried(){return Array.from(this.host.querySelectorAll(this.query))}get focused(){return this.activeDescendant?__classPrivateFieldGet$1(this,_FocusManagerController_instances,"m",_FocusManagerController_findQueriedById).call(this,this.activeDescendant):null}focusNext(){this.focus("next")}focusPrevious(){this.focus("previous")}focusFirst(){this.focus(0)}focusLast(){this.focus(this.queried.length-1)}focus(t){"number"==typeof t?__classPrivateFieldGet$1(this,_FocusManagerController_focusIndex,"f").call(this,t):"string"==typeof t?__classPrivateFieldGet$1(this,_FocusManagerController_focusPosition,"f").call(this,t):__classPrivateFieldGet$1(this,_FocusManagerController_focusElement,"f").call(this,t)}clear(){this.getInteractiveElement(this.host).removeAttribute("aria-activedescendant");const t=this.focused;this.activeDescendant=null,t&&t.classList.remove("is-focused")}}_FocusManagerController_focusElement=new WeakMap,_FocusManagerController_focusIndex=new WeakMap,_FocusManagerController_focusPosition=new WeakMap,_FocusManagerController_handleKeyPress=new WeakMap,_FocusManagerController_clearBufferAfterDelay=new WeakMap,_FocusManagerController_findMatchInRange=new WeakMap,_FocusManagerController_instances=new WeakSet,_FocusManagerController_getIndexOfQueried=function(t){return t?this.queried.indexOf(t):-1},_FocusManagerController_findQueriedById=function(t){return this.queried.find((e=>e.id===t))??null};const TRIGGER_SELECTOR='[aria-haspopup="true"]',MENU_SELECTOR='[role="menu"]',ITEM_SELECTOR='[role="menuitem"]';function dropdownStyles(){return[styles$m({referenceSelector:`::slotted(${TRIGGER_SELECTOR})`,floatingSelector:`::slotted(${MENU_SELECTOR})`}),i$5`
|
|
1893
1926
|
:host {
|
|
1894
1927
|
--m-popover-floating-spacing-x: ${getToken("spacing-2")};
|
|
1895
1928
|
--m-popover-floating-spacing-y: ${getToken("spacing-2")};
|
|
@@ -1900,18 +1933,18 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
1900
1933
|
display: inline-block;
|
|
1901
1934
|
}
|
|
1902
1935
|
|
|
1903
|
-
::slotted(${r$
|
|
1936
|
+
::slotted(${r$9(MENU_SELECTOR)}) {
|
|
1904
1937
|
--m-popover-background-color: ${getColor("color-background-primary")};
|
|
1905
1938
|
|
|
1906
1939
|
outline: none;
|
|
1907
1940
|
}
|
|
1908
1941
|
|
|
1909
|
-
:host([open]) ::slotted(${r$
|
|
1942
|
+
:host([open]) ::slotted(${r$9(MENU_SELECTOR)}) {
|
|
1910
1943
|
display: inline-flex;
|
|
1911
1944
|
|
|
1912
1945
|
flex-direction: column;
|
|
1913
1946
|
}
|
|
1914
|
-
`]}function triggerStyles(){return[i$
|
|
1947
|
+
`]}function triggerStyles(){return[i$5`
|
|
1915
1948
|
:host {
|
|
1916
1949
|
--m-dropdown-trigger-background-color: ${getColor("color-background-primary")};
|
|
1917
1950
|
--m-dropdown-trigger-border-color: ${getColor("color-border")};
|
|
@@ -1994,7 +2027,7 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
1994
2027
|
--m-dropdown-trigger-padding-y: ${getToken("spacing-3")};
|
|
1995
2028
|
--m-dropdown-trigger-height: ${getToken("global-height-large")};
|
|
1996
2029
|
}
|
|
1997
|
-
`,i$
|
|
2030
|
+
`,i$5`
|
|
1998
2031
|
.indicator {
|
|
1999
2032
|
--m-icon-size: 12px;
|
|
2000
2033
|
--m-icon-color: ${getColor("color-text-placeholder")};
|
|
@@ -2011,7 +2044,7 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
2011
2044
|
:host-context([size='small'][disabled]) .indicator {
|
|
2012
2045
|
--m-icon-color: ${getColor("color-text-disabled")};
|
|
2013
2046
|
}
|
|
2014
|
-
`]}function itemStyles(){return[i$
|
|
2047
|
+
`]}function itemStyles(){return[i$5`
|
|
2015
2048
|
:host {
|
|
2016
2049
|
--m-dropdown-item-background-color: ${getColor("color-background-primary")};
|
|
2017
2050
|
--m-dropdown-item-color: ${getColor("color-text-secondary")};
|
|
@@ -2050,8 +2083,8 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
2050
2083
|
align-items: center;
|
|
2051
2084
|
justify-content: center;
|
|
2052
2085
|
|
|
2053
|
-
${p(0)};
|
|
2054
|
-
${m(0)};
|
|
2086
|
+
${p$1(0)};
|
|
2087
|
+
${m$2(0)};
|
|
2055
2088
|
}
|
|
2056
2089
|
|
|
2057
2090
|
:host([destructive]) {
|
|
@@ -2083,7 +2116,7 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
2083
2116
|
pointer-events: none;
|
|
2084
2117
|
user-select: none;
|
|
2085
2118
|
}
|
|
2086
|
-
`]}var _Dropdown_controllers,_Dropdown_handleClick,_Dropdown_handleClickOutside;class Dropdown extends Popover{static get properties(){return{...Popover.properties,disabled:{type:Boolean,reflect:!0},size:{type:String,reflect:!0}}}constructor(){super(),_Dropdown_controllers.set(this,void 0),this.getFloatingOffset=()=>4,_Dropdown_handleClick.set(this,(t=>{const{target:e}=t;e&&(e.matches(ITEM_SELECTOR)&&(__classPrivateFieldGet(this,_Dropdown_controllers,"f").focus.focus(e),this.collapse()),e.matches(TRIGGER_SELECTOR)&&t.detail>0&&this.toggle())})),_Dropdown_handleClickOutside.set(this,(()=>{this.collapse()})),this.position="absolute",this.placement="bottom-end",this.disabled=!1,__classPrivateFieldSet(this,_Dropdown_controllers,{boundary:new BoundaryController(this),focus:new FocusManagerController(this,{query:ITEM_SELECTOR,getInteractiveElement:()=>this.getFloatingElement()}),keyboard:new KeyboardSupportController(this,[{shortcut:{key:"ArrowUp"},handler:t=>{const{target:e}=t;e&&!this.disabled&&(e.matches(TRIGGER_SELECTOR)?this.expand({position:"last"}):e.matches(MENU_SELECTOR)&&__classPrivateFieldGet(this,_Dropdown_controllers,"f").focus.focusPrevious())}},{shortcut:{key:"ArrowDown"},handler:t=>{const{target:e}=t;e&&!this.disabled&&(e.matches(TRIGGER_SELECTOR)?this.expand({position:"first"}):e.matches(MENU_SELECTOR)&&__classPrivateFieldGet(this,_Dropdown_controllers,"f").focus.focusNext())}},{shortcut:[{key:"Enter"},{key:" "}],handler:t=>{const{target:e}=t;if(e&&!this.disabled)if(e.matches(TRIGGER_SELECTOR))this.toggle({position:"first"});else if(e.matches(MENU_SELECTOR)){const t=__classPrivateFieldGet(this,_Dropdown_controllers,"f").focus.focused;if(t?.disabled)return;t.click()}}},{shortcut:[{key:"Tab"},{key:"Tab",shift:!0}],handler:t=>{const{target:e}=t;e&&e.matches(TRIGGER_SELECTOR)&&this.open&&__classPrivateFieldGet(this,_Dropdown_handleClickOutside,"f").call(this)}}])},"f"),this.addEventListener("click",__classPrivateFieldGet(this,_Dropdown_handleClick,"f")),this.addEventListener("m-interact-out",__classPrivateFieldGet(this,_Dropdown_handleClickOutside,"f"))}firstUpdated(){this.floating?.id&&this.reference?.setAttribute("aria-controls",this.floating.id),this.reference?.id&&this.floating?.setAttribute("aria-labelledby",this.reference.id),super.firstUpdated()}updated(t){super.updated(t),t.has("open")&&(this.open?this.reference?.setAttribute("aria-expanded","true"):this.reference?.removeAttribute("aria-expanded")),t.has("disabled")&&this.reference&&(this.reference.disabled=this.disabled)}getReferenceElement(){return this.querySelector(TRIGGER_SELECTOR)}getFloatingElement(){return this.querySelector(MENU_SELECTOR)}getArrowElement(){return null}render(){return x`<slot></slot>`}async expand(t){const{position:e="first"}=t||{};this.show(),await this.updateComplete,this.floating?.focus(),__classPrivateFieldGet(this,_Dropdown_controllers,"f").focus.focus(e),__classPrivateFieldGet(this,_Dropdown_controllers,"f").boundary.activate(),this.emit("m-expand")}async collapse(){this.hide(),await this.updateComplete,__classPrivateFieldGet(this,_Dropdown_controllers,"f").boundary.deactivate(),__classPrivateFieldGet(this,_Dropdown_controllers,"f").focus.clear(),this.reference?.focus(),this.emit("m-collapse")}toggle(t){this.open?this.collapse():this.expand(t)}}_Dropdown_controllers=new WeakMap,_Dropdown_handleClick=new WeakMap,_Dropdown_handleClickOutside=new WeakMap,Dropdown.styles=[dropdownStyles()],window.customElements.define("m-dropdown",Dropdown);let counter=0;function generateId(t="m"){counter+=1;const e=`${t}-${counter}`;return counter===Number.MAX_SAFE_INTEGER&&(counter=0),e}const WithIdElementMixin=(t,e="m")=>class extends t{connectedCallback(){super.connectedCallback(),this.hasAttribute("id")||(this.id=generateId(e))}};class DropdownTrigger extends(WithIdElementMixin(Component)){static get properties(){return{disabled:{type:Boolean,reflect:!0}}}constructor(){super(),this.disabled=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","button"),this.setAttribute("tabindex","0"),this.setAttribute("aria-haspopup","true")}render(){return x`
|
|
2119
|
+
`]}var _Dropdown_controllers,_Dropdown_handleClick,_Dropdown_handleClickOutside;class Dropdown extends Popover{static get properties(){return{...Popover.properties,disabled:{type:Boolean,reflect:!0},size:{type:String,reflect:!0}}}constructor(){super(),_Dropdown_controllers.set(this,void 0),this.getFloatingOffset=()=>4,_Dropdown_handleClick.set(this,(t=>{const{target:e}=t;e&&(e.matches(ITEM_SELECTOR)&&(__classPrivateFieldGet$1(this,_Dropdown_controllers,"f").focus.focus(e),this.collapse()),e.matches(TRIGGER_SELECTOR)&&t.detail>0&&this.toggle())})),_Dropdown_handleClickOutside.set(this,(()=>{this.collapse()})),this.position="absolute",this.placement="bottom-end",this.disabled=!1,__classPrivateFieldSet(this,_Dropdown_controllers,{boundary:new BoundaryController(this),focus:new FocusManagerController(this,{query:ITEM_SELECTOR,getInteractiveElement:()=>this.getFloatingElement()}),keyboard:new KeyboardSupportController(this,[{shortcut:{key:"ArrowUp"},handler:t=>{const{target:e}=t;e&&!this.disabled&&(e.matches(TRIGGER_SELECTOR)?this.expand({position:"last"}):e.matches(MENU_SELECTOR)&&__classPrivateFieldGet$1(this,_Dropdown_controllers,"f").focus.focusPrevious())}},{shortcut:{key:"ArrowDown"},handler:t=>{const{target:e}=t;e&&!this.disabled&&(e.matches(TRIGGER_SELECTOR)?this.expand({position:"first"}):e.matches(MENU_SELECTOR)&&__classPrivateFieldGet$1(this,_Dropdown_controllers,"f").focus.focusNext())}},{shortcut:[{key:"Enter"},{key:" "}],handler:t=>{const{target:e}=t;if(e&&!this.disabled)if(e.matches(TRIGGER_SELECTOR))this.toggle({position:"first"});else if(e.matches(MENU_SELECTOR)){const t=__classPrivateFieldGet$1(this,_Dropdown_controllers,"f").focus.focused;if(t?.disabled)return;t.click()}}},{shortcut:[{key:"Tab"},{key:"Tab",shift:!0}],handler:t=>{const{target:e}=t;e&&e.matches(TRIGGER_SELECTOR)&&this.open&&__classPrivateFieldGet$1(this,_Dropdown_handleClickOutside,"f").call(this)}}])},"f"),this.addEventListener("click",__classPrivateFieldGet$1(this,_Dropdown_handleClick,"f")),this.addEventListener("m-interact-out",__classPrivateFieldGet$1(this,_Dropdown_handleClickOutside,"f"))}firstUpdated(){this.floating?.id&&this.reference?.setAttribute("aria-controls",this.floating.id),this.reference?.id&&this.floating?.setAttribute("aria-labelledby",this.reference.id),super.firstUpdated()}updated(t){super.updated(t),t.has("open")&&(this.open?this.reference?.setAttribute("aria-expanded","true"):this.reference?.removeAttribute("aria-expanded")),t.has("disabled")&&this.reference&&(this.reference.disabled=this.disabled)}getReferenceElement(){return this.querySelector(TRIGGER_SELECTOR)}getFloatingElement(){return this.querySelector(MENU_SELECTOR)}getArrowElement(){return null}render(){return x`<slot></slot>`}async expand(t){const{position:e="first"}=t||{};this.show(),await this.updateComplete,this.floating?.focus(),__classPrivateFieldGet$1(this,_Dropdown_controllers,"f").focus.focus(e),__classPrivateFieldGet$1(this,_Dropdown_controllers,"f").boundary.activate(),this.emit("m-expand")}async collapse(){this.hide(),await this.updateComplete,__classPrivateFieldGet$1(this,_Dropdown_controllers,"f").boundary.deactivate(),__classPrivateFieldGet$1(this,_Dropdown_controllers,"f").focus.clear(),this.reference?.focus(),this.emit("m-collapse")}toggle(t){this.open?this.collapse():this.expand(t)}}_Dropdown_controllers=new WeakMap,_Dropdown_handleClick=new WeakMap,_Dropdown_handleClickOutside=new WeakMap,Dropdown.styles=[dropdownStyles()],window.customElements.define("m-dropdown",Dropdown);let counter=0;function generateId(t="m"){counter+=1;const e=`${t}-${counter}`;return counter===Number.MAX_SAFE_INTEGER&&(counter=0),e}const WithIdElementMixin=(t,e="m")=>class extends t{connectedCallback(){super.connectedCallback(),this.hasAttribute("id")||(this.id=generateId(e))}};class DropdownTrigger extends(WithIdElementMixin(Component)){static get properties(){return{disabled:{type:Boolean,reflect:!0}}}constructor(){super(),this.disabled=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","button"),this.setAttribute("tabindex","0"),this.setAttribute("aria-haspopup","true")}render(){return x`
|
|
2087
2120
|
<slot name="leading"></slot>
|
|
2088
2121
|
<slot></slot>
|
|
2089
2122
|
<m-icon name="caret-down" class="indicator"></m-icon>
|
|
@@ -2091,7 +2124,7 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
2091
2124
|
<slot name="leading"></slot>
|
|
2092
2125
|
<slot></slot>
|
|
2093
2126
|
<slot name="trailing"></slot>
|
|
2094
|
-
`}}DropdownItem.styles=[itemStyles()],window.customElements.define("m-dropdown-item",DropdownItem);const emptyStateContext=n$2(Symbol("empty-state"));function getActionSize(t){switch(t){case"panel":case"card":case"card-horizontal":return"small";default:return"default"}}var _EmptyStateAction_contextCallback,_EmptyStateHeader_contextCallback;class EmptyStateAction extends Button{constructor(){super(),_EmptyStateAction_contextCallback.set(this,(({variant:t})=>{this.size=getActionSize(t)})),this.type="button",this.variant="primary",this.context=new s$2(this,{context:emptyStateContext,callback:__classPrivateFieldGet(this,_EmptyStateAction_contextCallback,"f"),subscribe:!0})}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","action")}}_EmptyStateAction_contextCallback=new WeakMap,window.customElements.define("m-empty-state-action",EmptyStateAction);class EmptyStateHeader extends Text{constructor(){super(),_EmptyStateHeader_contextCallback.set(this,(t=>{switch(t.variant){case"panel":this.variant="body-md-bold";break;case"card":case"card-horizontal":this.variant="body-sm-bold";break;default:this.variant="heading-sm-bold"}})),this.variant="heading-sm-bold",this.context=new s$2(this,{context:emptyStateContext,callback:__classPrivateFieldGet(this,_EmptyStateHeader_contextCallback,"f"),subscribe:!0})}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","header")}}function styles$l(){return i$
|
|
2127
|
+
`}}DropdownItem.styles=[itemStyles()],window.customElements.define("m-dropdown-item",DropdownItem);const emptyStateContext=n$2(Symbol("empty-state"));function getActionSize(t){switch(t){case"panel":case"card":case"card-horizontal":return"small";default:return"default"}}var _EmptyStateAction_contextCallback,_EmptyStateHeader_contextCallback;class EmptyStateAction extends Button{constructor(){super(),_EmptyStateAction_contextCallback.set(this,(({variant:t})=>{this.size=getActionSize(t)})),this.type="button",this.variant="primary",this.context=new s$2(this,{context:emptyStateContext,callback:__classPrivateFieldGet$1(this,_EmptyStateAction_contextCallback,"f"),subscribe:!0})}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","action")}}_EmptyStateAction_contextCallback=new WeakMap,window.customElements.define("m-empty-state-action",EmptyStateAction);class EmptyStateHeader extends Text{constructor(){super(),_EmptyStateHeader_contextCallback.set(this,(t=>{switch(t.variant){case"panel":this.variant="body-md-bold";break;case"card":case"card-horizontal":this.variant="body-sm-bold";break;default:this.variant="heading-sm-bold"}})),this.variant="heading-sm-bold",this.context=new s$2(this,{context:emptyStateContext,callback:__classPrivateFieldGet$1(this,_EmptyStateHeader_contextCallback,"f"),subscribe:!0})}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","header")}}function styles$l(){return i$5`
|
|
2095
2128
|
slot {
|
|
2096
2129
|
display: block;
|
|
2097
2130
|
}
|
|
@@ -2207,7 +2240,7 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
2207
2240
|
:host([variant='panel']) slot[name='message'] {
|
|
2208
2241
|
${typography("body-sm")};
|
|
2209
2242
|
}
|
|
2210
|
-
`}function illustrationStyles(){return i$
|
|
2243
|
+
`}function illustrationStyles(){return i$5`
|
|
2211
2244
|
m-empty-state > m-empty-state-illustration :is(img, svg) {
|
|
2212
2245
|
display: block;
|
|
2213
2246
|
object-fit: scale-down;
|
|
@@ -2231,7 +2264,7 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
2231
2264
|
width: 24px;
|
|
2232
2265
|
height: 24px;
|
|
2233
2266
|
}
|
|
2234
|
-
`}_EmptyStateHeader_contextCallback=new WeakMap,window.customElements.define("m-empty-state-header",EmptyStateHeader);const style=document.createElement("style");style.textContent=illustrationStyles().cssText,document.head.appendChild(style);class EmptyStateIllustration extends s$
|
|
2267
|
+
`}_EmptyStateHeader_contextCallback=new WeakMap,window.customElements.define("m-empty-state-header",EmptyStateHeader);const style=document.createElement("style");style.textContent=illustrationStyles().cssText,document.head.appendChild(style);class EmptyStateIllustration extends s$7{createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","illustration")}}var _EmptyStateMessage_contextCallback,_EmptyState_instances,_EmptyState_contextProvider,_EmptyState_handleClickAction;window.customElements.define("m-empty-state-illustration",EmptyStateIllustration);class EmptyStateMessage extends Text{constructor(){super(),_EmptyStateMessage_contextCallback.set(this,(t=>{if("panel"===t.variant)this.variant="body-sm";else this.variant="body-md"})),this.variant="body-md",this.context=new s$2(this,{context:emptyStateContext,callback:__classPrivateFieldGet$1(this,_EmptyStateMessage_contextCallback,"f"),subscribe:!0})}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","message")}}_EmptyStateMessage_contextCallback=new WeakMap,window.customElements.define("m-empty-state-message",EmptyStateMessage),attachContextRoot();class EmptyState extends Component{static get properties(){return{variant:{type:String,reflect:!0},illustration:{type:String,reflect:!0},header:{type:String,reflect:!0},message:{type:String,reflect:!0},action:{type:String,reflect:!0}}}constructor(){super(),_EmptyState_instances.add(this),_EmptyState_contextProvider.set(this,new i(this,{context:emptyStateContext,initialValue:{variant:void 0}})),this.variant="page"}updated(t){super.updated(t),t.has("variant")&&__classPrivateFieldGet$1(this,_EmptyState_contextProvider,"f").setValue({variant:this.variant??"page"})}render(){const t=this.illustration?n$4`<img role="presentation" src=${this.illustration} />`:A$1,e=this.variant?.startsWith("card")?n$4`<slot name="header">${this.header}</slot>`:n$4`
|
|
2235
2268
|
<div class="empty-state-body">
|
|
2236
2269
|
<slot name="header">${this.header}</slot>
|
|
2237
2270
|
<slot name="message">${this.message}</slot>
|
|
@@ -2241,16 +2274,16 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
2241
2274
|
type="button"
|
|
2242
2275
|
variant="primary"
|
|
2243
2276
|
size=${getActionSize(this.variant)}
|
|
2244
|
-
@click=${__classPrivateFieldGet(this,_EmptyState_instances,"m",_EmptyState_handleClickAction)}
|
|
2277
|
+
@click=${__classPrivateFieldGet$1(this,_EmptyState_instances,"m",_EmptyState_handleClickAction)}
|
|
2245
2278
|
>${this.action}</m-button
|
|
2246
2279
|
>
|
|
2247
|
-
`:A;return n$4`
|
|
2280
|
+
`:A$1;return n$4`
|
|
2248
2281
|
<div class="illustration-wrapper">
|
|
2249
2282
|
<slot name="illustration">${t}</slot>
|
|
2250
2283
|
</div>
|
|
2251
2284
|
${e}
|
|
2252
2285
|
<slot name="action">${o}</slot>
|
|
2253
|
-
`}}_EmptyState_contextProvider=new WeakMap,_EmptyState_instances=new WeakSet,_EmptyState_handleClickAction=function(t){t.preventDefault(),t.stopPropagation(),this.emit("m-action")},EmptyState.styles=[styles$l()],window.customElements.define("m-empty-state",EmptyState);const EMPTY_STATE_VARIANTS=["page","panel","card","card-horizontal"],fieldContext=n$2(Symbol("field"));function styles$k(){return[i$
|
|
2286
|
+
`}}_EmptyState_contextProvider=new WeakMap,_EmptyState_instances=new WeakSet,_EmptyState_handleClickAction=function(t){t.preventDefault(),t.stopPropagation(),this.emit("m-action")},EmptyState.styles=[styles$l()],window.customElements.define("m-empty-state",EmptyState);const EMPTY_STATE_VARIANTS=["page","panel","card","card-horizontal"],fieldContext=n$2(Symbol("field"));function styles$k(){return[i$5`
|
|
2254
2287
|
:host {
|
|
2255
2288
|
--m-field-hint-color: ${getColor("color-text-tertiary")};
|
|
2256
2289
|
}
|
|
@@ -2267,23 +2300,23 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
2267
2300
|
${typography("body-sm")};
|
|
2268
2301
|
color: var(--m-field-hint-color);
|
|
2269
2302
|
}
|
|
2270
|
-
`]}var _FieldHint_instances,_FieldHint_getStatus;class FieldHint extends Component{static get properties(){return{status:{type:String},slot:{type:String,reflect:!0}}}constructor(){super(),_FieldHint_instances.add(this),this.field=new s$2(this,{context:fieldContext,subscribe:!0}),this.slot="hint"}render(){const t={"-status-default":"default"===__classPrivateFieldGet(this,_FieldHint_instances,"m",_FieldHint_getStatus).call(this),"-status-danger":"danger"===__classPrivateFieldGet(this,_FieldHint_instances,"m",_FieldHint_getStatus).call(this)};return x` <m-group
|
|
2303
|
+
`]}var _FieldHint_instances,_FieldHint_getStatus;class FieldHint extends Component{static get properties(){return{status:{type:String},slot:{type:String,reflect:!0}}}constructor(){super(),_FieldHint_instances.add(this),this.field=new s$2(this,{context:fieldContext,subscribe:!0}),this.slot="hint"}render(){const t={"-status-default":"default"===__classPrivateFieldGet$1(this,_FieldHint_instances,"m",_FieldHint_getStatus).call(this),"-status-danger":"danger"===__classPrivateFieldGet$1(this,_FieldHint_instances,"m",_FieldHint_getStatus).call(this)};return x` <m-group
|
|
2271
2304
|
gap="spacing-0-5"
|
|
2272
2305
|
align="center"
|
|
2273
2306
|
class=${o$2(t)}
|
|
2274
2307
|
>
|
|
2275
2308
|
<slot name="leading"
|
|
2276
|
-
>${"danger"===__classPrivateFieldGet(this,_FieldHint_instances,"m",_FieldHint_getStatus).call(this)?x`<m-icon
|
|
2309
|
+
>${"danger"===__classPrivateFieldGet$1(this,_FieldHint_instances,"m",_FieldHint_getStatus).call(this)?x`<m-icon
|
|
2277
2310
|
name="attention"
|
|
2278
2311
|
size="10"
|
|
2279
2312
|
color="color-danger-60"
|
|
2280
|
-
></m-icon>`:A}</slot
|
|
2313
|
+
></m-icon>`:A$1}</slot
|
|
2281
2314
|
>
|
|
2282
2315
|
<span
|
|
2283
2316
|
class=${o$2({hint:!0,...t})}
|
|
2284
2317
|
><slot></slot>
|
|
2285
2318
|
</span>
|
|
2286
|
-
</m-group>`}}function styles$j(){return[i$
|
|
2319
|
+
</m-group>`}}function styles$j(){return[i$5`
|
|
2287
2320
|
.label {
|
|
2288
2321
|
${typography("body-md")};
|
|
2289
2322
|
|
|
@@ -2305,19 +2338,19 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
2305
2338
|
.-size-small {
|
|
2306
2339
|
${typography("body-sm")};
|
|
2307
2340
|
}
|
|
2308
|
-
`]}_FieldHint_instances=new WeakSet,_FieldHint_getStatus=function(){return this.status||this.field.value?.status},FieldHint.styles=[styles$k()],window.customElements.define("m-field-hint",FieldHint);class Label extends Component{static get properties(){return{required:{type:Boolean},size:{type:String},slot:{type:String,reflect:!0}}}requiredTemplate(){return this.isRequired()?x`<span class="required" aria-hidden="true"> *</span>`:A}labelClassList(){const t=this.getSize();return o$2({label:!0,"-size-small":"small"===t})}render(){return x`<label class=${this.labelClassList()}
|
|
2341
|
+
`]}_FieldHint_instances=new WeakSet,_FieldHint_getStatus=function(){return this.status||this.field.value?.status},FieldHint.styles=[styles$k()],window.customElements.define("m-field-hint",FieldHint);class Label extends Component{static get properties(){return{required:{type:Boolean},size:{type:String},slot:{type:String,reflect:!0}}}requiredTemplate(){return this.isRequired()?x`<span class="required" aria-hidden="true"> *</span>`:A$1}labelClassList(){const t=this.getSize();return o$2({label:!0,"-size-small":"small"===t})}render(){return x`<label class=${this.labelClassList()}
|
|
2309
2342
|
><slot></slot>${this.requiredTemplate()}</label
|
|
2310
2343
|
>`}getSize(){return this.size}isRequired(){return Boolean(this.required)}}Label.styles=[styles$j()],window.customElements.define("m-label",Label);class FieldLabel extends Label{constructor(){super(...arguments),this.field=new s$2(this,{context:fieldContext,subscribe:!0})}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","label")}isRequired(){return null!=this.required?this.required:Boolean(this.field.value?.required)}getSize(){return this.size??this.field.value?.size}}window.customElements.define("m-field-label",FieldLabel),attachContextRoot();class Field extends Component{static get properties(){return{label:{type:String},hint:{type:String},required:{type:Boolean},status:{type:String},size:{type:String},align:{type:String}}}constructor(){super(),this.provider=new i(this,fieldContext,{required:!1,size:"default",status:"default"}),this.required=!1,this.status="default",this.size="default",this.align="stretch"}update(t){super.update(t),(t.has("required")||t.has("status")||t.has("size"))&&this.provider.setValue({required:this.required,status:this.status,size:this.size})}render(){return x`<m-stack gap="spacing-1" align="${l$1(this.align)}">
|
|
2311
2344
|
<slot name="label"
|
|
2312
|
-
>${this.label?x`<m-field-label>${this.label}</m-field-label>`:A}</slot
|
|
2345
|
+
>${this.label?x`<m-field-label>${this.label}</m-field-label>`:A$1}</slot
|
|
2313
2346
|
>
|
|
2314
2347
|
|
|
2315
2348
|
<slot></slot>
|
|
2316
2349
|
|
|
2317
2350
|
<slot name="hint">
|
|
2318
|
-
${this.hint?x`<m-field-hint>${this.hint}</m-field-hint>`:A}
|
|
2351
|
+
${this.hint?x`<m-field-hint>${this.hint}</m-field-hint>`:A$1}
|
|
2319
2352
|
</slot>
|
|
2320
|
-
</m-stack>`}}window.customElements.define("m-field",Field);const FIELD_STATUSES=["default","danger"];function styles$i(){return i$
|
|
2353
|
+
</m-stack>`}}window.customElements.define("m-field",Field);const FIELD_STATUSES=["default","danger"];function styles$i(){return i$5`
|
|
2321
2354
|
:host {
|
|
2322
2355
|
--m-header-background-color: ${getColor("color-background-primary")};
|
|
2323
2356
|
|
|
@@ -2338,7 +2371,7 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
2338
2371
|
padding: ${getToken("spacing-4")};
|
|
2339
2372
|
}
|
|
2340
2373
|
}
|
|
2341
|
-
`}function headerTitleStyles(){return i$
|
|
2374
|
+
`}function headerTitleStyles(){return i$5`
|
|
2342
2375
|
:host {
|
|
2343
2376
|
display: block;
|
|
2344
2377
|
${typography("heading-lg-bold")};
|
|
@@ -2352,19 +2385,19 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
2352
2385
|
${typography("heading-md-bold")};
|
|
2353
2386
|
}
|
|
2354
2387
|
}
|
|
2355
|
-
`}function headerActionStyles(){return i$
|
|
2388
|
+
`}function headerActionStyles(){return i$5`
|
|
2356
2389
|
:host {
|
|
2357
2390
|
display: flex;
|
|
2358
2391
|
gap: ${getToken("spacing-4")};
|
|
2359
2392
|
}
|
|
2360
|
-
`}function headerContentStyles(){return i$
|
|
2393
|
+
`}function headerContentStyles(){return i$5`
|
|
2361
2394
|
:host {
|
|
2362
2395
|
display: flex;
|
|
2363
2396
|
gap: ${getToken("spacing-4")};
|
|
2364
2397
|
align-items: center;
|
|
2365
2398
|
flex-grow: 100;
|
|
2366
2399
|
}
|
|
2367
|
-
`}function subHeaderStyles(){return i$
|
|
2400
|
+
`}function subHeaderStyles(){return i$5`
|
|
2368
2401
|
:host {
|
|
2369
2402
|
--m-subheader-background-color: var(
|
|
2370
2403
|
--m-header-background-color,
|
|
@@ -2377,17 +2410,17 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
2377
2410
|
padding: ${getToken("spacing-6")};
|
|
2378
2411
|
background-color: var(--m-subheader-background-color);
|
|
2379
2412
|
}
|
|
2380
|
-
`}class Header extends s$
|
|
2413
|
+
`}class Header extends s$7{static get properties(){return{slot:{type:String,reflect:!0}}}constructor(){super(),this.slot="page-header"}render(){return x`
|
|
2381
2414
|
<div class="m-header">
|
|
2382
2415
|
<slot name="back-button"></slot>
|
|
2383
2416
|
<slot name="content"></slot>
|
|
2384
2417
|
<slot name="actions"></slot>
|
|
2385
2418
|
</div>
|
|
2386
2419
|
<slot name="sub-header"></slot>
|
|
2387
|
-
`}}Header.styles=[styles$i()],window.customElements.define("m-header",Header);class HeaderActions extends s$
|
|
2420
|
+
`}}Header.styles=[styles$i()],window.customElements.define("m-header",Header);class HeaderActions extends s$7{static get properties(){return{slot:{type:String,reflect:!0}}}constructor(){super(),this.slot="actions"}render(){return n$4`<slot></slot>`}}HeaderActions.styles=[headerActionStyles()],window.customElements.define("m-header-actions",HeaderActions);class HeaderContent extends s$7{static get properties(){return{slot:{type:String,reflect:!0}}}constructor(){super(),this.slot="content"}render(){return n$4`<slot name="title"></slot> <slot></slot>`}}HeaderContent.styles=[headerContentStyles()],window.customElements.define("m-header-content",HeaderContent);class HeaderTitle extends s$7{static get properties(){return{slot:{type:String,reflect:!0}}}constructor(){super(),this.slot="title"}render(){return n$4`<slot></slot>`}}HeaderTitle.styles=[headerTitleStyles()],window.customElements.define("m-header-title",HeaderTitle);class SubHeader extends s$7{static get properties(){return{slot:{type:String,reflect:!0}}}constructor(){super(),this.slot="sub-header"}render(){return n$4` <m-divider></m-divider>
|
|
2388
2421
|
<div class="content">
|
|
2389
2422
|
<slot></slot>
|
|
2390
|
-
</div>`}}SubHeader.styles=[subHeaderStyles()],window.customElements.define("m-sub-header",SubHeader);const defaultLabeledValueLabelProps={color:"color-text-tertiary",variant:"body-sm"};class LabeledValueLabel extends Text{static get properties(){return{...super.properties,role:{type:String,reflect:!0}}}constructor(){super(),this.color=defaultLabeledValueLabelProps.color,this.variant=defaultLabeledValueLabelProps.variant}connectedCallback(){super.connectedCallback(),this.setAttribute("role","term"),this.setAttribute("slot","label")}update(t){!t.has("color")||void 0!==this.color&&null!==this.color||(this.color=defaultLabeledValueLabelProps.color),!t.has("variant")||void 0!==this.variant&&null!==this.variant||(this.variant=defaultLabeledValueLabelProps.variant),super.update(t)}}window.customElements.define("m-labeled-value-label",LabeledValueLabel);class LabeledValueValue extends Text{connectedCallback(){super.connectedCallback(),this.setAttribute("role","definition"),this.setAttribute("slot","value")}}window.customElements.define("m-labeled-value-value",LabeledValueValue);const defaultLabeledValueProps={gap:"spacing-2",justify:"flex-start"};class LabeledValue extends s$
|
|
2423
|
+
</div>`}}SubHeader.styles=[subHeaderStyles()],window.customElements.define("m-sub-header",SubHeader);const defaultLabeledValueLabelProps={color:"color-text-tertiary",variant:"body-sm"};class LabeledValueLabel extends Text{static get properties(){return{...super.properties,role:{type:String,reflect:!0}}}constructor(){super(),this.color=defaultLabeledValueLabelProps.color,this.variant=defaultLabeledValueLabelProps.variant}connectedCallback(){super.connectedCallback(),this.setAttribute("role","term"),this.setAttribute("slot","label")}update(t){!t.has("color")||void 0!==this.color&&null!==this.color||(this.color=defaultLabeledValueLabelProps.color),!t.has("variant")||void 0!==this.variant&&null!==this.variant||(this.variant=defaultLabeledValueLabelProps.variant),super.update(t)}}window.customElements.define("m-labeled-value-label",LabeledValueLabel);class LabeledValueValue extends Text{connectedCallback(){super.connectedCallback(),this.setAttribute("role","definition"),this.setAttribute("slot","value")}}window.customElements.define("m-labeled-value-value",LabeledValueValue);const defaultLabeledValueProps={gap:"spacing-2",justify:"flex-start"};class LabeledValue extends s$7{constructor(){super(),this.inline=!1,this.gap=defaultLabeledValueProps.gap,this.justify=defaultLabeledValueProps.justify}static get properties(){return{inline:{type:Boolean},label:{type:String},value:{type:String},gap:{type:String},align:{type:String},justify:{type:String},fallbackValue:{type:String,attribute:"fallback-value"},labelVariant:{type:String,attribute:"label-variant"},labelColor:{type:String,attribute:"label-color"},valueVariant:{type:String,attribute:"value-variant"},valueColor:{type:String,attribute:"value-color"}}}getFallback(){return x`<slot name="fallback">${this.fallbackValue??"-"}</slot>`}getLabel(){return x`<slot name="label"
|
|
2391
2424
|
><m-labeled-value-label
|
|
2392
2425
|
variant=${this.getLabelVariant()}
|
|
2393
2426
|
color=${l$1(this.labelColor)}
|
|
@@ -2409,7 +2442,7 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
2409
2442
|
align="${this.wrapperAlign}"
|
|
2410
2443
|
justify="${l$1(this.justify)}"
|
|
2411
2444
|
>${this.bodyTemplate()}</m-stack
|
|
2412
|
-
>`}}function styles$h(){return i$
|
|
2445
|
+
>`}}function styles$h(){return i$5`
|
|
2413
2446
|
.m-link {
|
|
2414
2447
|
color: ${getColor("color-text-link")};
|
|
2415
2448
|
}
|
|
@@ -2455,17 +2488,17 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
2455
2488
|
}
|
|
2456
2489
|
`}var _Link_instances,_Link_disabled_get,_Link_href_get,_Link_rel_get,_Link_handleClick;window.customElements.define("m-labeled-value",LabeledValue);const UNSAFE_URL=/^javascript:/i;class Link extends Component{static get properties(){return{href:{type:String,reflect:!0},target:{type:String,reflect:!0},rel:{type:String,reflect:!0},download:{type:String,reflect:!0},ping:{type:String,reflect:!0},referrerpolicy:{type:String,reflect:!0},size:{type:String,reflect:!0},disabled:{type:Boolean,reflect:!0}}}constructor(){super(),_Link_instances.add(this),this.size="default"}render(){return x`
|
|
2457
2490
|
<a
|
|
2458
|
-
class=${o$2({"m-link":!0,"-small":"small"===this.size,"-default":"default"===this.size,"-large":"large"===this.size,"is-disabled":__classPrivateFieldGet(this,_Link_instances,"a",_Link_disabled_get)})}
|
|
2459
|
-
href=${l$1(__classPrivateFieldGet(this,_Link_instances,"a",_Link_href_get))}
|
|
2491
|
+
class=${o$2({"m-link":!0,"-small":"small"===this.size,"-default":"default"===this.size,"-large":"large"===this.size,"is-disabled":__classPrivateFieldGet$1(this,_Link_instances,"a",_Link_disabled_get)})}
|
|
2492
|
+
href=${l$1(__classPrivateFieldGet$1(this,_Link_instances,"a",_Link_href_get))}
|
|
2460
2493
|
target=${l$1(this.target)}
|
|
2461
|
-
rel=${l$1(__classPrivateFieldGet(this,_Link_instances,"a",_Link_rel_get))}
|
|
2494
|
+
rel=${l$1(__classPrivateFieldGet$1(this,_Link_instances,"a",_Link_rel_get))}
|
|
2462
2495
|
download=${l$1(this.download)}
|
|
2463
2496
|
ping=${l$1(this.ping)}
|
|
2464
2497
|
referrerpolicy=${l$1(this.referrerpolicy)}
|
|
2465
|
-
@click=${__classPrivateFieldGet(this,_Link_instances,"m",_Link_handleClick)}
|
|
2498
|
+
@click=${__classPrivateFieldGet$1(this,_Link_instances,"m",_Link_handleClick)}
|
|
2466
2499
|
><slot></slot
|
|
2467
2500
|
></a>
|
|
2468
|
-
`}}function styles$g(){return i$
|
|
2501
|
+
`}}function styles$g(){return i$5`
|
|
2469
2502
|
:host {
|
|
2470
2503
|
display: block;
|
|
2471
2504
|
box-sizing: border-box;
|
|
@@ -2475,10 +2508,10 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
2475
2508
|
slot[name='page-header']::slotted(*) {
|
|
2476
2509
|
border-bottom: ${getToken("border-thin")} solid ${getColor("color-border")};
|
|
2477
2510
|
}
|
|
2478
|
-
`}_Link_instances=new WeakSet,_Link_disabled_get=function(){return this.disabled||!this.href||UNSAFE_URL.test(this.href.trim())},_Link_href_get=function(){return __classPrivateFieldGet(this,_Link_instances,"a",_Link_disabled_get)?void 0:this.href},_Link_rel_get=function(){let t=this.rel;if("_blank"===this.target){const e=new Set((this.rel??"").split(/\s+/).filter(Boolean));this.referrerpolicy?.trim()||e.add("noreferrer"),e.has("opener")||e.add("noopener"),t=Array.from(e).join(" ")}return t},_Link_handleClick=function(t){if(__classPrivateFieldGet(this,_Link_instances,"a",_Link_disabled_get))return t.preventDefault(),t.stopPropagation(),!1},Link.styles=[styles$h()],window.customElements.define("m-link",Link);class PageContent extends s$
|
|
2511
|
+
`}_Link_instances=new WeakSet,_Link_disabled_get=function(){return this.disabled||!this.href||UNSAFE_URL.test(this.href.trim())},_Link_href_get=function(){return __classPrivateFieldGet$1(this,_Link_instances,"a",_Link_disabled_get)?void 0:this.href},_Link_rel_get=function(){let t=this.rel;if("_blank"===this.target){const e=new Set((this.rel??"").split(/\s+/).filter(Boolean));this.referrerpolicy?.trim()||e.add("noreferrer"),e.has("opener")||e.add("noopener"),t=Array.from(e).join(" ")}return t},_Link_handleClick=function(t){if(__classPrivateFieldGet$1(this,_Link_instances,"a",_Link_disabled_get))return t.preventDefault(),t.stopPropagation(),!1},Link.styles=[styles$h()],window.customElements.define("m-link",Link);class PageContent extends s$7{render(){return x`
|
|
2479
2512
|
<slot name="page-header"></slot>
|
|
2480
2513
|
<slot name="page-body"></slot>
|
|
2481
|
-
`}}function styles$f(){return i$
|
|
2514
|
+
`}}function styles$f(){return i$5`
|
|
2482
2515
|
:host {
|
|
2483
2516
|
width: 100%;
|
|
2484
2517
|
}
|
|
@@ -2573,7 +2606,7 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
2573
2606
|
${this.renderActions()}
|
|
2574
2607
|
</m-group>
|
|
2575
2608
|
</m-box>
|
|
2576
|
-
`}}function clamp(t,e,o){return Math.min(Math.max(e,t),o)}function styles$e(){return i$
|
|
2609
|
+
`}}function clamp(t,e,o){return Math.min(Math.max(e,t),o)}function styles$e(){return i$5`
|
|
2577
2610
|
.bar {
|
|
2578
2611
|
display: flex;
|
|
2579
2612
|
flex-grow: 0;
|
|
@@ -2624,14 +2657,14 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
2624
2657
|
.-danger {
|
|
2625
2658
|
--m-progress-bar-progress-background: ${getColor("color-danger-60")};
|
|
2626
2659
|
}
|
|
2627
|
-
`}var _ProgressBar_instances,_ProgressBar_safeMaxValue_get,_ProgressBar_safeValue_get;Pagination.styles=[styles$f()],window.customElements.define("m-pagination",Pagination);const DEFAULT_VARIANT="default",DEFAULT_MAX=100,DEFAULT_MIN=0,DEFAULT_VALUE=0;class ProgressBar extends s$
|
|
2660
|
+
`}var _ProgressBar_instances,_ProgressBar_safeMaxValue_get,_ProgressBar_safeValue_get;Pagination.styles=[styles$f()],window.customElements.define("m-pagination",Pagination);const DEFAULT_VARIANT="default",DEFAULT_MAX=100,DEFAULT_MIN=0,DEFAULT_VALUE=0;class ProgressBar extends s$7{static get properties(){return{variant:{type:String,reflect:!0},value:{type:Number,reflect:!0},max:{type:Number,reflect:!0}}}constructor(){super(),_ProgressBar_instances.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*__classPrivateFieldGet$1(this,_ProgressBar_instances,"a",_ProgressBar_safeValue_get)/__classPrivateFieldGet$1(this,_ProgressBar_instances,"a",_ProgressBar_safeMaxValue_get)}get currentVariant(){return this.variant}render(){return x`
|
|
2628
2661
|
<div class="bar">
|
|
2629
2662
|
<span
|
|
2630
2663
|
class=${o$2({progress:!0,"-default":"default"===this.currentVariant,"-success":"success"===this.currentVariant,"-warning":"warning"===this.currentVariant,"-danger":"danger"===this.currentVariant})}
|
|
2631
2664
|
style=${o$1({width:`${this.percentage}%`})}
|
|
2632
2665
|
></span>
|
|
2633
2666
|
</div>
|
|
2634
|
-
`}}_ProgressBar_instances=new WeakSet,_ProgressBar_safeMaxValue_get=function(){return this.max<=0?100:this.max},_ProgressBar_safeValue_get=function(){return clamp(this.value,0,__classPrivateFieldGet(this,_ProgressBar_instances,"a",_ProgressBar_safeMaxValue_get))},ProgressBar.styles=[styles$e()],window.customElements.define("m-progress-bar",ProgressBar);class ProgressBarCountdown extends ProgressBar{get currentVariant(){return this.percentage>=66?"success":this.percentage>=33?"warning":"danger"}}window.customElements.define("m-progress-bar-countdown",ProgressBarCountdown);const RADIO_EVENT="m-check";function styles$d(){return i$
|
|
2667
|
+
`}}_ProgressBar_instances=new WeakSet,_ProgressBar_safeMaxValue_get=function(){return this.max<=0?100:this.max},_ProgressBar_safeValue_get=function(){return clamp(this.value,0,__classPrivateFieldGet$1(this,_ProgressBar_instances,"a",_ProgressBar_safeMaxValue_get))},ProgressBar.styles=[styles$e()],window.customElements.define("m-progress-bar",ProgressBar);class ProgressBarCountdown extends ProgressBar{get currentVariant(){return this.percentage>=66?"success":this.percentage>=33?"warning":"danger"}}window.customElements.define("m-progress-bar-countdown",ProgressBarCountdown);const RADIO_EVENT="m-check";function styles$d(){return i$5`
|
|
2635
2668
|
:host {
|
|
2636
2669
|
--m-radio-border-color: ${getColor("color-border")};
|
|
2637
2670
|
--m-radio-dot-check-color: ${getColor("color-primary-60")};
|
|
@@ -2734,7 +2767,7 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
2734
2767
|
${on(".radio-button","*").disabled} {
|
|
2735
2768
|
pointer-events: none;
|
|
2736
2769
|
}
|
|
2737
|
-
`}var _Radio_instances,_Radio_button_get,_Radio_handleClick,_Radio_setDisabled,_Radio_setChecked;class Radio extends s$
|
|
2770
|
+
`}var _Radio_instances,_Radio_button_get,_Radio_handleClick,_Radio_setDisabled,_Radio_setChecked;class Radio extends s$7{static get properties(){return{value:{type:String},disabled:{type:Boolean,reflect:!0},checked:{type:Boolean,reflect:!0}}}constructor(){super(),_Radio_instances.add(this),_Radio_handleClick.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("m-check",e))})),_Radio_setDisabled.set(this,(()=>{this.setAttribute("aria-disabled",String(this.disabled??!1))})),_Radio_setChecked.set(this,(()=>{this.setAttribute("aria-checked",String(this.checked??!1))})),this.disabled=!1,this.checked=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","radio"),this.addEventListener("click",__classPrivateFieldGet$1(this,_Radio_handleClick,"f"))}updated(t){super.updated(t),t.has("disabled")&&__classPrivateFieldGet$1(this,_Radio_setDisabled,"f").call(this),t.has("checked")&&__classPrivateFieldGet$1(this,_Radio_setChecked,"f").call(this)}render(){return x`
|
|
2738
2771
|
<button
|
|
2739
2772
|
type="button"
|
|
2740
2773
|
class="radio-button"
|
|
@@ -2746,7 +2779,7 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
2746
2779
|
<slot name="leading"></slot>
|
|
2747
2780
|
<slot></slot>
|
|
2748
2781
|
</button>
|
|
2749
|
-
`}focus(t){__classPrivateFieldGet(this,_Radio_instances,"a",_Radio_button_get)?.focus(t)}}_Radio_handleClick=new WeakMap,_Radio_setDisabled=new WeakMap,_Radio_setChecked=new WeakMap,_Radio_instances=new WeakSet,_Radio_button_get=function(){return this.renderRoot?.querySelector("button")??null},Radio.styles=[styles$d()],window.customElements.define("m-radio",Radio);var _default,selection={};Object.defineProperty(selection,"i",{value:!0});var e$1=toArray;const t$1=(t,e)=>{const o=e$1(t);if(0===o.length)return e;const i=new Set;return i.add(String(o.at(-1))),i},n$1=(t,e)=>{const o=e$1(t);if(0===o.length)return e;const i=new Set(e);for(const t of o)i.add(String(t));return i},r$1={type:"single",init:t=>t$1(t,new Set),select:t$1,unselect(t,e){const o=e$1(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=e$1(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=>t??new Set,value(t){if(null==t||0===t.size)return null;const[e]=Array.from(t);return e}},s={type:"single-strict",init:t=>t$1(t,new Set),select:t$1,unselect(t,e){const o=e$1(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=e$1(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=>t??new Set,value(t){if(null==t||0===t.size)return null;const[e]=Array.from(t);return e}},l={type:"multiple",init:t=>n$1(t,new Set),select:n$1,unselect(t,e){const o=e$1(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=e$1(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=>t??new Set,value:t=>null==t||0===t.size?null:Array.from(t)};var _SelectionController_instances,_SelectionController_handleSelectionEvent,_SelectionController_publish,_RadioGroup_selectionController,_RadioGroup_defaultSlot,_RadioGroup_getDefaultChecked,_RadioGroup_getButtons,_RadioGroup_setButtonChecked,_RadioGroup_setButtonDisabled;selection.SELECTION_TYPES=["single","single-strict","multiple"],_default=selection.default=function(t){const{type:e="multiple"}=t;return"single"===e?r$1:"single-strict"===e?s:l};class SelectionController{constructor(t,e,o){_SelectionController_instances.add(this),this.disabled=!1,this.event="m-select",_SelectionController_handleSelectionEvent.set(this,(t=>{if(this.disabled)return;if(null==this.type)return;const{detail:{type:e,value:o}}=t;switch(e){case"select":this.select(toArray$1(o));break;case"unselect":this.unselect(toArray$1(o));break;case"toggle":this.toggle(toArray$1(o))}})),this.init=t=>{this.host.selection=this.strategy.init(t)},this.select=t=>{this.host.selection=this.strategy.select(t,this.host.selection),__classPrivateFieldGet(this,_SelectionController_instances,"m",_SelectionController_publish).call(this)},this.unselect=t=>{this.host.selection=this.strategy.unselect(t,this.host.selection),__classPrivateFieldGet(this,_SelectionController_instances,"m",_SelectionController_publish).call(this)},this.toggle=t=>{this.host.selection=this.strategy.toggle(t,this.host.selection),__classPrivateFieldGet(this,_SelectionController_instances,"m",_SelectionController_publish).call(this)},this.subscribe=()=>{this.host.addEventListener(this.event,__classPrivateFieldGet(this,_SelectionController_handleSelectionEvent,"f"))},this.unsubscribe=()=>{this.host.removeEventListener(this.event,__classPrivateFieldGet(this,_SelectionController_handleSelectionEvent,"f"))},this.host=t,this.type=e,this.event=o,this.strategy=_default({type:e}),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))}}function styles$c(){return i$
|
|
2782
|
+
`}focus(t){__classPrivateFieldGet$1(this,_Radio_instances,"a",_Radio_button_get)?.focus(t)}}_Radio_handleClick=new WeakMap,_Radio_setDisabled=new WeakMap,_Radio_setChecked=new WeakMap,_Radio_instances=new WeakSet,_Radio_button_get=function(){return this.renderRoot?.querySelector("button")??null},Radio.styles=[styles$d()],window.customElements.define("m-radio",Radio);var _default,selection={};Object.defineProperty(selection,"i",{value:!0});var e$1=toArray;const t$1=(t,e)=>{const o=e$1(t);if(0===o.length)return e;const i=new Set;return i.add(String(o.at(-1))),i},n$1=(t,e)=>{const o=e$1(t);if(0===o.length)return e;const i=new Set(e);for(const t of o)i.add(String(t));return i},r$1={type:"single",init:t=>t$1(t,new Set),select:t$1,unselect(t,e){const o=e$1(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=e$1(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=>t??new Set,value(t){if(null==t||0===t.size)return null;const[e]=Array.from(t);return e}},s={type:"single-strict",init:t=>t$1(t,new Set),select:t$1,unselect(t,e){const o=e$1(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=e$1(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=>t??new Set,value(t){if(null==t||0===t.size)return null;const[e]=Array.from(t);return e}},l={type:"multiple",init:t=>n$1(t,new Set),select:n$1,unselect(t,e){const o=e$1(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=e$1(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=>t??new Set,value:t=>null==t||0===t.size?null:Array.from(t)};var _SelectionController_instances,_SelectionController_handleSelectionEvent,_SelectionController_publish,_RadioGroup_selectionController,_RadioGroup_defaultSlot,_RadioGroup_getDefaultChecked,_RadioGroup_getButtons,_RadioGroup_setButtonChecked,_RadioGroup_setButtonDisabled;selection.SELECTION_TYPES=["single","single-strict","multiple"],_default=selection.default=function(t){const{type:e="multiple"}=t;return"single"===e?r$1:"single-strict"===e?s:l};class SelectionController{constructor(t,e,o){_SelectionController_instances.add(this),this.disabled=!1,this.event="m-select",_SelectionController_handleSelectionEvent.set(this,(t=>{if(this.disabled)return;if(null==this.type)return;const{detail:{type:e,value:o}}=t;switch(e){case"select":this.select(toArray$1(o));break;case"unselect":this.unselect(toArray$1(o));break;case"toggle":this.toggle(toArray$1(o))}})),this.init=t=>{this.host.selection=this.strategy.init(t)},this.select=t=>{this.host.selection=this.strategy.select(t,this.host.selection),__classPrivateFieldGet$1(this,_SelectionController_instances,"m",_SelectionController_publish).call(this)},this.unselect=t=>{this.host.selection=this.strategy.unselect(t,this.host.selection),__classPrivateFieldGet$1(this,_SelectionController_instances,"m",_SelectionController_publish).call(this)},this.toggle=t=>{this.host.selection=this.strategy.toggle(t,this.host.selection),__classPrivateFieldGet$1(this,_SelectionController_instances,"m",_SelectionController_publish).call(this)},this.subscribe=()=>{this.host.addEventListener(this.event,__classPrivateFieldGet$1(this,_SelectionController_handleSelectionEvent,"f"))},this.unsubscribe=()=>{this.host.removeEventListener(this.event,__classPrivateFieldGet$1(this,_SelectionController_handleSelectionEvent,"f"))},this.host=t,this.type=e,this.event=o,this.strategy=_default({type:e}),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))}}function styles$c(){return i$5`
|
|
2750
2783
|
.radio-group {
|
|
2751
2784
|
display: flex;
|
|
2752
2785
|
gap: ${getToken("spacing-2")};
|
|
@@ -2757,17 +2790,17 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
2757
2790
|
.radio-group.-horizontal {
|
|
2758
2791
|
flex-direction: row;
|
|
2759
2792
|
}
|
|
2760
|
-
`}_SelectionController_handleSelectionEvent=new WeakMap,_SelectionController_instances=new WeakSet,_SelectionController_publish=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 RadioGroup extends s$
|
|
2793
|
+
`}_SelectionController_handleSelectionEvent=new WeakMap,_SelectionController_instances=new WeakSet,_SelectionController_publish=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 RadioGroup extends s$7{static get properties(){return{value:{type:String,reflect:!0},disabled:{type:Boolean,reflect:!0},selection:{state:!0},orientation:{type:String}}}constructor(){super(),_RadioGroup_selectionController.set(this,null),_RadioGroup_defaultSlot.set(this,null),_RadioGroup_getDefaultChecked.set(this,(()=>{const t=__classPrivateFieldGet$1(this,_RadioGroup_getButtons,"f").call(this);return t[0]?.value})),_RadioGroup_getButtons.set(this,(()=>{__classPrivateFieldGet$1(this,_RadioGroup_defaultSlot,"f")||__classPrivateFieldSet(this,_RadioGroup_defaultSlot,this.shadowRoot&&this.shadowRoot.querySelector("slot"),"f");return[...__classPrivateFieldGet$1(this,_RadioGroup_defaultSlot,"f")?.assignedElements({flatten:!0})??[]].filter((t=>"m-radio"===t.tagName.toLowerCase()))})),_RadioGroup_setButtonChecked.set(this,(t=>{t.checked=this.selection.has(t.value)})),_RadioGroup_setButtonDisabled.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"),__classPrivateFieldSet(this,_RadioGroup_selectionController,new SelectionController(this,this.type,"m-check"),"f")}update(t){super.update(t),t.has("value")&&__classPrivateFieldGet$1(this,_RadioGroup_selectionController,"f")&&__classPrivateFieldGet$1(this,_RadioGroup_selectionController,"f").init(toArray$1(this.value||__classPrivateFieldGet$1(this,_RadioGroup_getDefaultChecked,"f").call(this))),t.has("selection")&&([this.value]=this.selection)}updated(t){super.updated(t),t.has("selection")&&__classPrivateFieldGet$1(this,_RadioGroup_getButtons,"f").call(this).forEach((t=>{__classPrivateFieldGet$1(this,_RadioGroup_setButtonChecked,"f").call(this,t)})),t.has("disabled")&&__classPrivateFieldGet$1(this,_RadioGroup_getButtons,"f").call(this).forEach((t=>{__classPrivateFieldGet$1(this,_RadioGroup_setButtonDisabled,"f").call(this,t)}))}render(){return x`
|
|
2761
2794
|
<div
|
|
2762
2795
|
class=${o$2({"radio-group":!0,"-vertical":"vertical"===this.orientation,"-horizontal":"horizontal"===this.orientation})}
|
|
2763
2796
|
>
|
|
2764
2797
|
<slot></slot>
|
|
2765
2798
|
</div>
|
|
2766
|
-
`}}function styles$b(){return i$
|
|
2799
|
+
`}}function styles$b(){return i$5`
|
|
2767
2800
|
:host {
|
|
2768
2801
|
display: block;
|
|
2769
2802
|
}
|
|
2770
|
-
`}function sectionTitleStyles(){return i$
|
|
2803
|
+
`}function sectionTitleStyles(){return i$5`
|
|
2771
2804
|
:host {
|
|
2772
2805
|
color: ${getColor("color-text-primary")};
|
|
2773
2806
|
display: block;
|
|
@@ -2799,14 +2832,14 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
2799
2832
|
${typography("heading-lg-bold")};
|
|
2800
2833
|
margin: 0 0 ${getToken("spacing-2")} 0;
|
|
2801
2834
|
}
|
|
2802
|
-
`}_RadioGroup_selectionController=new WeakMap,_RadioGroup_defaultSlot=new WeakMap,_RadioGroup_getDefaultChecked=new WeakMap,_RadioGroup_getButtons=new WeakMap,_RadioGroup_setButtonChecked=new WeakMap,_RadioGroup_setButtonDisabled=new WeakMap,RadioGroup.styles=[styles$c()],window.customElements.define("m-radio-group",RadioGroup);class Section extends s$
|
|
2835
|
+
`}_RadioGroup_selectionController=new WeakMap,_RadioGroup_defaultSlot=new WeakMap,_RadioGroup_getDefaultChecked=new WeakMap,_RadioGroup_getButtons=new WeakMap,_RadioGroup_setButtonChecked=new WeakMap,_RadioGroup_setButtonDisabled=new WeakMap,RadioGroup.styles=[styles$c()],window.customElements.define("m-radio-group",RadioGroup);class Section extends s$7{render(){return x`
|
|
2803
2836
|
<slot name="title"></slot>
|
|
2804
2837
|
<m-divider></m-divider>
|
|
2805
2838
|
<slot></slot>
|
|
2806
|
-
`}}Section.styles=[styles$b()],window.customElements.define("m-section",Section);const allowedTags=["h1","h2","h3","h4","h5","h6","p","span"];class SectionTitle extends(PolymorphicTagMixin({superClass:s$
|
|
2839
|
+
`}}Section.styles=[styles$b()],window.customElements.define("m-section",Section);const allowedTags=["h1","h2","h3","h4","h5","h6","p","span"];class SectionTitle extends(PolymorphicTagMixin({superClass:s$7,allowedTags,fallbackTag:"span"})){static get properties(){return{slot:{type:String,reflect:!0},size:{type:String}}}constructor(){super(),this.slot="title",this.size="default",this.as="span"}render(){return n$4`<${this.tag} class=${o$2({title:!0,"-size-small":"small"===this.size,"-size-default":"default"===this.size,"-size-large":"large"===this.size})}>
|
|
2807
2840
|
<slot name="leading"></slot>
|
|
2808
2841
|
<slot></slot>
|
|
2809
|
-
</${this.tag}>`}}function styles$a(){return i$
|
|
2842
|
+
</${this.tag}>`}}function styles$a(){return i$5`
|
|
2810
2843
|
:host {
|
|
2811
2844
|
inline-size: var(--m-spinner-size);
|
|
2812
2845
|
block-size: var(--m-spinner-size);
|
|
@@ -2826,7 +2859,7 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
2826
2859
|
transform: rotate(359deg);
|
|
2827
2860
|
}
|
|
2828
2861
|
}
|
|
2829
|
-
`}SectionTitle.styles=[sectionTitleStyles()],window.customElements.define("m-section-title",SectionTitle);const DEFAULT_SIZE$1=48;class SpinnerWheel extends s$
|
|
2862
|
+
`}SectionTitle.styles=[sectionTitleStyles()],window.customElements.define("m-section-title",SectionTitle);const DEFAULT_SIZE$1=48;class SpinnerWheel extends s$7{static get properties(){return{size:{type:String}}}update(t){super.update(t),t.has("size")&&null!=this.size&&this.style.setProperty("--m-spinner-size",`${parseInt(String(this.size),10)||48}px`)}render(){return b$1`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path fill="#CADBDD" fill-rule="evenodd" d="M24 48c13.255 0 24-10.745 24-24S37.255 0 24 0 0 10.745 0 24s10.745 24 24 24Zm0-10c7.732 0 14-6.268 14-14s-6.268-14-14-14-14 6.268-14 14 6.268 14 14 14Z" clip-rule="evenodd"/><path fill="url(#a)" d="M24 43.068c0 2.724-2.231 4.983-4.898 4.427a23.999 23.999 0 0 1 0-46.99C21.77-.051 24 2.208 24 4.932c0 2.723-2.273 4.852-4.833 5.783a14.135 14.135 0 0 0-5.163 23.28 14.135 14.135 0 0 0 5.163 3.29c2.56.93 4.833 3.06 4.833 5.783Z"/><defs><linearGradient id="a" x1="9.608" x2="44.189" y1="42.161" y2="7.59" gradientUnits="userSpaceOnUse"><stop offset=".1" stop-color="#00D7D7"/><stop offset="1" stop-color="#84F11E"/></linearGradient></defs></svg>`}}function stepsStyles(){return[i$5`
|
|
2830
2863
|
:host {
|
|
2831
2864
|
--m-steps-circle-size: 24px;
|
|
2832
2865
|
|
|
@@ -2850,7 +2883,7 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
2850
2883
|
|
|
2851
2884
|
gap: ${getToken("spacing-10")};
|
|
2852
2885
|
}
|
|
2853
|
-
`]}function stepStyles(){return[i$
|
|
2886
|
+
`]}function stepStyles(){return[i$5`
|
|
2854
2887
|
:host {
|
|
2855
2888
|
--m-steps-circle-margin-inline-end: 8px;
|
|
2856
2889
|
|
|
@@ -2955,18 +2988,18 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
2955
2988
|
:host(:is([aria-current='step'], :not([completed]))) .label {
|
|
2956
2989
|
display: inline-flex;
|
|
2957
2990
|
}
|
|
2958
|
-
`]}var _Steps_instances,_Steps_stepSequence,_Steps_getDefaultActive,_Steps_queryStep,_Steps_handleSlotChange,_Steps_findStepIndex,_Steps_onNextStep,_Steps_onPreviousStep,_Steps_onNavigateStep,_Steps_onCompleteStep,_Switch_instances,_Switch_controllers,_Switch_toggle,_Switch_handleClick;SpinnerWheel.styles=[styles$a()],window.customElements.define("m-spinner-wheel",SpinnerWheel);class Steps extends Component{constructor(){super(...arguments),_Steps_instances.add(this),_Steps_stepSequence.set(this,[]),_Steps_getDefaultActive.set(this,(()=>this.querySelector("m-step")?.name)),_Steps_queryStep.set(this,(t=>t?this.querySelector(`[name="${t}"]`):null)),_Steps_handleSlotChange.set(this,(()=>{const t=Array.from(this.querySelectorAll("m-step"));__classPrivateFieldSet(this,_Steps_stepSequence,[],"f"),t.forEach(((t,e)=>{__classPrivateFieldGet(this,_Steps_stepSequence,"f").push(t.name),t.setAttribute("order",String(e+1))})),this.requestUpdate()})),_Steps_onNextStep.set(this,(()=>{const t=__classPrivateFieldGet(this,_Steps_instances,"m",_Steps_findStepIndex).call(this,this.activeStep);if(-1===t||t>=__classPrivateFieldGet(this,_Steps_stepSequence,"f").length-1)return;const e=t+1;this.activeStep=__classPrivateFieldGet(this,_Steps_stepSequence,"f")[e],this.emit("m-change",{detail:{active:this.activeStep}})})),_Steps_onPreviousStep.set(this,(()=>{const t=__classPrivateFieldGet(this,_Steps_instances,"m",_Steps_findStepIndex).call(this,this.activeStep);if(t<=0)return;const e=t-1;this.activeStep=__classPrivateFieldGet(this,_Steps_stepSequence,"f")[e],this.emit("m-change",{detail:{active:this.activeStep}})})),_Steps_onNavigateStep.set(this,(t=>{const{detail:e}=t;-1!==__classPrivateFieldGet(this,_Steps_instances,"m",_Steps_findStepIndex).call(this,e)&&e!==this.activeStep&&(this.activeStep=e,this.emit("m-change",{detail:{active:e}}))})),_Steps_onCompleteStep.set(this,(()=>{const t=__classPrivateFieldGet(this,_Steps_queryStep,"f").call(this,this.activeStep);t&&!0!==t.completed&&(t.completed=!0,this.emit("m-change",{detail:{completed:this.activeStep}}))}))}static get properties(){return{activeStep:{type:String,attribute:"active-step",reflect:!0}}}connectedCallback(){super.connectedCallback(),this.addEventListener("m-next",__classPrivateFieldGet(this,_Steps_onNextStep,"f")),this.addEventListener("m-previous",__classPrivateFieldGet(this,_Steps_onPreviousStep,"f")),this.addEventListener("m-navigate",__classPrivateFieldGet(this,_Steps_onNavigateStep,"f")),this.addEventListener("m-complete",__classPrivateFieldGet(this,_Steps_onCompleteStep,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("m-next",__classPrivateFieldGet(this,_Steps_onNextStep,"f")),this.removeEventListener("m-previous",__classPrivateFieldGet(this,_Steps_onPreviousStep,"f")),this.removeEventListener("m-navigate",__classPrivateFieldGet(this,_Steps_onNavigateStep,"f")),this.removeEventListener("m-complete",__classPrivateFieldGet(this,_Steps_onCompleteStep,"f"))}update(t){super.update(t);const e=__classPrivateFieldGet(this,_Steps_queryStep,"f").call(this,t.get("activeStep"));e&&e.removeAttribute("aria-current"),this.activeStep=this.activeStep??__classPrivateFieldGet(this,_Steps_getDefaultActive,"f").call(this);const o=__classPrivateFieldGet(this,_Steps_queryStep,"f").call(this,this.activeStep);o&&(o.setAttribute("tabindex","0"),o.setAttribute("aria-current","step"))}render(){return x`<div class="steps-container">
|
|
2959
|
-
<slot name="step" @slotchange=${__classPrivateFieldGet(this,_Steps_handleSlotChange,"f")}></slot>
|
|
2991
|
+
`]}var _Steps_instances,_Steps_stepSequence,_Steps_getDefaultActive,_Steps_queryStep,_Steps_handleSlotChange,_Steps_findStepIndex,_Steps_onNextStep,_Steps_onPreviousStep,_Steps_onNavigateStep,_Steps_onCompleteStep,_Switch_instances,_Switch_controllers,_Switch_toggle,_Switch_handleClick;SpinnerWheel.styles=[styles$a()],window.customElements.define("m-spinner-wheel",SpinnerWheel);class Steps extends Component{constructor(){super(...arguments),_Steps_instances.add(this),_Steps_stepSequence.set(this,[]),_Steps_getDefaultActive.set(this,(()=>this.querySelector("m-step")?.name)),_Steps_queryStep.set(this,(t=>t?this.querySelector(`[name="${t}"]`):null)),_Steps_handleSlotChange.set(this,(()=>{const t=Array.from(this.querySelectorAll("m-step"));__classPrivateFieldSet(this,_Steps_stepSequence,[],"f"),t.forEach(((t,e)=>{__classPrivateFieldGet$1(this,_Steps_stepSequence,"f").push(t.name),t.setAttribute("order",String(e+1))})),this.requestUpdate()})),_Steps_onNextStep.set(this,(()=>{const t=__classPrivateFieldGet$1(this,_Steps_instances,"m",_Steps_findStepIndex).call(this,this.activeStep);if(-1===t||t>=__classPrivateFieldGet$1(this,_Steps_stepSequence,"f").length-1)return;const e=t+1;this.activeStep=__classPrivateFieldGet$1(this,_Steps_stepSequence,"f")[e],this.emit("m-change",{detail:{active:this.activeStep}})})),_Steps_onPreviousStep.set(this,(()=>{const t=__classPrivateFieldGet$1(this,_Steps_instances,"m",_Steps_findStepIndex).call(this,this.activeStep);if(t<=0)return;const e=t-1;this.activeStep=__classPrivateFieldGet$1(this,_Steps_stepSequence,"f")[e],this.emit("m-change",{detail:{active:this.activeStep}})})),_Steps_onNavigateStep.set(this,(t=>{const{detail:e}=t;-1!==__classPrivateFieldGet$1(this,_Steps_instances,"m",_Steps_findStepIndex).call(this,e)&&e!==this.activeStep&&(this.activeStep=e,this.emit("m-change",{detail:{active:e}}))})),_Steps_onCompleteStep.set(this,(()=>{const t=__classPrivateFieldGet$1(this,_Steps_queryStep,"f").call(this,this.activeStep);t&&!0!==t.completed&&(t.completed=!0,this.emit("m-change",{detail:{completed:this.activeStep}}))}))}static get properties(){return{activeStep:{type:String,attribute:"active-step",reflect:!0}}}connectedCallback(){super.connectedCallback(),this.addEventListener("m-next",__classPrivateFieldGet$1(this,_Steps_onNextStep,"f")),this.addEventListener("m-previous",__classPrivateFieldGet$1(this,_Steps_onPreviousStep,"f")),this.addEventListener("m-navigate",__classPrivateFieldGet$1(this,_Steps_onNavigateStep,"f")),this.addEventListener("m-complete",__classPrivateFieldGet$1(this,_Steps_onCompleteStep,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("m-next",__classPrivateFieldGet$1(this,_Steps_onNextStep,"f")),this.removeEventListener("m-previous",__classPrivateFieldGet$1(this,_Steps_onPreviousStep,"f")),this.removeEventListener("m-navigate",__classPrivateFieldGet$1(this,_Steps_onNavigateStep,"f")),this.removeEventListener("m-complete",__classPrivateFieldGet$1(this,_Steps_onCompleteStep,"f"))}update(t){super.update(t);const e=__classPrivateFieldGet$1(this,_Steps_queryStep,"f").call(this,t.get("activeStep"));e&&e.removeAttribute("aria-current"),this.activeStep=this.activeStep??__classPrivateFieldGet$1(this,_Steps_getDefaultActive,"f").call(this);const o=__classPrivateFieldGet$1(this,_Steps_queryStep,"f").call(this,this.activeStep);o&&(o.setAttribute("tabindex","0"),o.setAttribute("aria-current","step"))}render(){return x`<div class="steps-container">
|
|
2992
|
+
<slot name="step" @slotchange=${__classPrivateFieldGet$1(this,_Steps_handleSlotChange,"f")}></slot>
|
|
2960
2993
|
</div>
|
|
2961
|
-
<div class="content-container"><slot></slot></div>`}}_Steps_stepSequence=new WeakMap,_Steps_getDefaultActive=new WeakMap,_Steps_queryStep=new WeakMap,_Steps_handleSlotChange=new WeakMap,_Steps_onNextStep=new WeakMap,_Steps_onPreviousStep=new WeakMap,_Steps_onNavigateStep=new WeakMap,_Steps_onCompleteStep=new WeakMap,_Steps_instances=new WeakSet,_Steps_findStepIndex=function(t){return t?__classPrivateFieldGet(this,_Steps_stepSequence,"f").findIndex((e=>e===t)):-1},Steps.styles=[stepsStyles()],window.customElements.define("m-steps",Steps);class Step extends s$
|
|
2994
|
+
<div class="content-container"><slot></slot></div>`}}_Steps_stepSequence=new WeakMap,_Steps_getDefaultActive=new WeakMap,_Steps_queryStep=new WeakMap,_Steps_handleSlotChange=new WeakMap,_Steps_onNextStep=new WeakMap,_Steps_onPreviousStep=new WeakMap,_Steps_onNavigateStep=new WeakMap,_Steps_onCompleteStep=new WeakMap,_Steps_instances=new WeakSet,_Steps_findStepIndex=function(t){return t?__classPrivateFieldGet$1(this,_Steps_stepSequence,"f").findIndex((e=>e===t)):-1},Steps.styles=[stepsStyles()],window.customElements.define("m-steps",Steps);class Step extends s$7{static get properties(){return{name:{type:String,reflect:!0},order:{type:String},completed:{type:Boolean,reflect:!0},"aria-current":{type:Boolean}}}connectedCallback(){super.connectedCallback(),this.slot="step"}render(){const t="step"===this.getAttribute("aria-current");return x`
|
|
2962
2995
|
<span class="circle">
|
|
2963
|
-
${this.completed&&!t?A:this.order}
|
|
2996
|
+
${this.completed&&!t?A$1:this.order}
|
|
2964
2997
|
<m-icon name="check" size="12"></m-icon>
|
|
2965
2998
|
</span>
|
|
2966
2999
|
<span class="label">
|
|
2967
3000
|
<slot></slot>
|
|
2968
3001
|
</span>
|
|
2969
|
-
`}}function styles$9(){return[i$
|
|
3002
|
+
`}}function styles$9(){return[i$5`
|
|
2970
3003
|
:host {
|
|
2971
3004
|
--m-switch-height: ${getToken("global-height-small")};
|
|
2972
3005
|
--m-switch-background-color: ${getColor("color-neutral-40")};
|
|
@@ -3067,10 +3100,10 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
3067
3100
|
100% - var(--m-switch-circle-size) - var(--m-switch-circle-distance)
|
|
3068
3101
|
);
|
|
3069
3102
|
}
|
|
3070
|
-
`]}Step.styles=[stepStyles()],window.customElements.define("m-step",Step);class Switch extends Component{static get properties(){return{name:{type:String,reflect:!0},disabled:{type:Boolean,reflect:!0},checked:{type:Boolean,reflect:!0},size:{type:String,reflect:!0}}}constructor(){super(),_Switch_instances.add(this),_Switch_controllers.set(this,void 0),_Switch_handleClick.set(this,(t=>{if(this.disabled)return t.stopPropagation(),void t.preventDefault();__classPrivateFieldGet(this,_Switch_instances,"m",_Switch_toggle).call(this)})),this.checked=!1,this.disabled=!1,__classPrivateFieldSet(this,_Switch_controllers,{keyboard:new KeyboardSupportController(this,{shortcut:[{key:" "},{key:"Enter"}],handler:t=>{t.stopPropagation(),__classPrivateFieldGet(this,_Switch_instances,"m",_Switch_toggle).call(this)}})},"f")}connectedCallback(){super.connectedCallback(),this.setAttribute("role","switch"),this.addEventListener("click",__classPrivateFieldGet(this,_Switch_handleClick,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",__classPrivateFieldGet(this,_Switch_handleClick,"f"))}updated(t){super.updated(t),t.has("checked")&&this.setAttribute("aria-checked",String(this.checked??!1)),t.has("disabled")&&(this.disabled?this.removeAttribute("tabindex"):this.setAttribute("tabindex","0"))}render(){return x`
|
|
3103
|
+
`]}Step.styles=[stepStyles()],window.customElements.define("m-step",Step);class Switch extends Component{static get properties(){return{name:{type:String,reflect:!0},disabled:{type:Boolean,reflect:!0},checked:{type:Boolean,reflect:!0},size:{type:String,reflect:!0}}}constructor(){super(),_Switch_instances.add(this),_Switch_controllers.set(this,void 0),_Switch_handleClick.set(this,(t=>{if(this.disabled)return t.stopPropagation(),void t.preventDefault();__classPrivateFieldGet$1(this,_Switch_instances,"m",_Switch_toggle).call(this)})),this.checked=!1,this.disabled=!1,__classPrivateFieldSet(this,_Switch_controllers,{keyboard:new KeyboardSupportController(this,{shortcut:[{key:" "},{key:"Enter"}],handler:t=>{t.stopPropagation(),__classPrivateFieldGet$1(this,_Switch_instances,"m",_Switch_toggle).call(this)}})},"f")}connectedCallback(){super.connectedCallback(),this.setAttribute("role","switch"),this.addEventListener("click",__classPrivateFieldGet$1(this,_Switch_handleClick,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",__classPrivateFieldGet$1(this,_Switch_handleClick,"f"))}updated(t){super.updated(t),t.has("checked")&&this.setAttribute("aria-checked",String(this.checked??!1)),t.has("disabled")&&(this.disabled?this.removeAttribute("tabindex"):this.setAttribute("tabindex","0"))}render(){return x`
|
|
3071
3104
|
<span class="switch"></span>
|
|
3072
3105
|
<slot></slot>
|
|
3073
|
-
`}}function tableStyles(){return i$
|
|
3106
|
+
`}}function tableStyles(){return i$5`
|
|
3074
3107
|
:host {
|
|
3075
3108
|
--m-table-cell-height: 52px;
|
|
3076
3109
|
|
|
@@ -3088,12 +3121,12 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
3088
3121
|
.table {
|
|
3089
3122
|
display: table;
|
|
3090
3123
|
}
|
|
3091
|
-
`}function tableToolbarStyles(){return i$
|
|
3124
|
+
`}function tableToolbarStyles(){return i$5`
|
|
3092
3125
|
:host {
|
|
3093
3126
|
padding: ${getToken("spacing-4")};
|
|
3094
3127
|
background-color: ${getColor("color-background-primary")};
|
|
3095
3128
|
}
|
|
3096
|
-
`}function tableHeadStyles(){return i$
|
|
3129
|
+
`}function tableHeadStyles(){return i$5`
|
|
3097
3130
|
:host {
|
|
3098
3131
|
--m-table-cell-height: 44px;
|
|
3099
3132
|
|
|
@@ -3104,7 +3137,7 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
3104
3137
|
${typography("table-header-sm")};
|
|
3105
3138
|
color: ${getColor("color-text-tertiary")};
|
|
3106
3139
|
}
|
|
3107
|
-
`}function tableBodyStyles(){return i$
|
|
3140
|
+
`}function tableBodyStyles(){return i$5`
|
|
3108
3141
|
:host {
|
|
3109
3142
|
display: table-row-group;
|
|
3110
3143
|
}
|
|
@@ -3132,7 +3165,7 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
3132
3165
|
--m-table-cell-height: 86px;
|
|
3133
3166
|
${typography("body-md")};
|
|
3134
3167
|
}
|
|
3135
|
-
`}function tableFootStyles(){return i$
|
|
3168
|
+
`}function tableFootStyles(){return i$5`
|
|
3136
3169
|
:host {
|
|
3137
3170
|
--m-table-cell-height: 44px;
|
|
3138
3171
|
|
|
@@ -3143,11 +3176,11 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
3143
3176
|
${typography("table-header-sm")};
|
|
3144
3177
|
color: ${getColor("color-text-tertiary")};
|
|
3145
3178
|
}
|
|
3146
|
-
`}function tableRowStyles(){return i$
|
|
3179
|
+
`}function tableRowStyles(){return i$5`
|
|
3147
3180
|
:host {
|
|
3148
3181
|
display: table-row;
|
|
3149
3182
|
}
|
|
3150
|
-
`}function tableCellStyles(){return i$
|
|
3183
|
+
`}function tableCellStyles(){return i$5`
|
|
3151
3184
|
:host {
|
|
3152
3185
|
--m-table-cell-text-align: left;
|
|
3153
3186
|
|
|
@@ -3163,7 +3196,35 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
3163
3196
|
border-top-width: ${getToken("border-thin")};
|
|
3164
3197
|
border-top-color: ${getColor("color-divider")};
|
|
3165
3198
|
}
|
|
3166
|
-
`}
|
|
3199
|
+
`}function tableHeadCellStyles(){return[tableCellStyles(),i$5`
|
|
3200
|
+
:host {
|
|
3201
|
+
white-space: nowrap;
|
|
3202
|
+
}
|
|
3203
|
+
|
|
3204
|
+
:host([sortable]:not([disabled])) {
|
|
3205
|
+
cursor: pointer;
|
|
3206
|
+
}
|
|
3207
|
+
|
|
3208
|
+
m-icon {
|
|
3209
|
+
--m-icon-color: ${getColor("color-text-primary")};
|
|
3210
|
+
margin-left: ${getToken("spacing-2")};
|
|
3211
|
+
}
|
|
3212
|
+
|
|
3213
|
+
:host([disabled]) {
|
|
3214
|
+
color: ${getColor("color-text-disabled")};
|
|
3215
|
+
}
|
|
3216
|
+
|
|
3217
|
+
:host([disabled]) m-icon {
|
|
3218
|
+
--m-icon-color: ${getColor("color-text-disabled")};
|
|
3219
|
+
}
|
|
3220
|
+
`]}function tableFeedbackStyles(){return i$5`
|
|
3221
|
+
:host {
|
|
3222
|
+
background-color: ${getColor("color-background-primary")};
|
|
3223
|
+
border-top-style: solid;
|
|
3224
|
+
border-top-width: ${getToken("border-thin")};
|
|
3225
|
+
border-top-color: ${getColor("color-divider")};
|
|
3226
|
+
}
|
|
3227
|
+
`}_Switch_controllers=new WeakMap,_Switch_handleClick=new WeakMap,_Switch_instances=new WeakSet,_Switch_toggle=function(){this.checked=!this.checked,this.emit("m-change",{detail:{name:this.name,checked:this.checked}})},Switch.styles=[styles$9()],window.customElements.define("m-switch",Switch);const defaultTableProps={size:"default"};class Table extends s$7{static get properties(){return{role:{type:String,reflect:!0},size:{type:String,reflect:!0}}}constructor(){super(),this.role="table",this.size=defaultTableProps.size}render(){return x`
|
|
3167
3228
|
<m-stack gap="none">
|
|
3168
3229
|
<slot name="table-toolbar"></slot>
|
|
3169
3230
|
<div class="table">
|
|
@@ -3171,8 +3232,12 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
3171
3232
|
<slot name="table-body"></slot>
|
|
3172
3233
|
<slot name="table-foot"></slot>
|
|
3173
3234
|
</div>
|
|
3235
|
+
<slot name="table-feedback"></slot>
|
|
3174
3236
|
</m-stack>
|
|
3175
|
-
`}}Table.styles=[tableStyles()],window.customElements.define("m-table",Table);class TableHead extends s$
|
|
3237
|
+
`}}Table.styles=[tableStyles()],window.customElements.define("m-table",Table);class TableHead extends s$7{static get properties(){return{slot:{type:String,reflect:!0},role:{type:String,reflect:!0}}}constructor(){super(),this.slot="table-head",this.role="rowgroup"}render(){return x`<slot name="table-row"></slot>`}}var _TableHeadCell_instances,_TableHeadCell_isSortable,_TableHeadCell_isDisabled,_TableHeadCell_getSortIcon,_TableHeadCell_handleClick;TableHead.styles=[tableHeadStyles()],window.customElements.define("m-table-head",TableHead);const defaultTableHeadCellProps={alignment:"left",sortable:!1,sortDirection:void 0,disabled:!1};class TableHeadCell extends Component{static get properties(){return{slot:{type:String,reflect:!0},role:{type:String,reflect:!0},alignment:{type:String},columnId:{type:String,attribute:"column-id"},sortable:{type:Boolean,reflect:!0},sortDirection:{type:String,attribute:"sort-direction"},disabled:{type:Boolean,reflect:!0}}}constructor(){super(),_TableHeadCell_instances.add(this),_TableHeadCell_isSortable.set(this,(()=>Boolean(this.sortable))),_TableHeadCell_isDisabled.set(this,(()=>Boolean(this.disabled))),_TableHeadCell_handleClick.set(this,(()=>{if(__classPrivateFieldGet$1(this,_TableHeadCell_isDisabled,"f").call(this)||!__classPrivateFieldGet$1(this,_TableHeadCell_isSortable,"f").call(this))return;let t="asc";"asc"===this.sortDirection?t="desc":"desc"===this.sortDirection&&(t=void 0),this.emit("m-sort",{detail:{columnId:this.columnId,sortDirection:t}})})),this.slot="table-cell",this.role="columnheader",this.alignment=defaultTableHeadCellProps.alignment,this.sortable=defaultTableHeadCellProps.sortable,this.sortDirection=defaultTableHeadCellProps.sortDirection,this.disabled=defaultTableHeadCellProps.disabled}connectedCallback(){super.connectedCallback(),this.addEventListener("click",__classPrivateFieldGet$1(this,_TableHeadCell_handleClick,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",__classPrivateFieldGet$1(this,_TableHeadCell_handleClick,"f"))}update(t){super.update(t),t.has("alignment")&&this.style.setProperty("--m-table-cell-text-align",this.alignment??defaultTableHeadCellProps.alignment)}render(){return __classPrivateFieldGet$1(this,_TableHeadCell_isSortable,"f").call(this)?x`
|
|
3238
|
+
<slot></slot>
|
|
3239
|
+
<m-icon name="${__classPrivateFieldGet$1(this,_TableHeadCell_instances,"m",_TableHeadCell_getSortIcon).call(this)}" size="12"></m-icon>
|
|
3240
|
+
`:x`<slot></slot>`}}_TableHeadCell_isSortable=new WeakMap,_TableHeadCell_isDisabled=new WeakMap,_TableHeadCell_handleClick=new WeakMap,_TableHeadCell_instances=new WeakSet,_TableHeadCell_getSortIcon=function(){switch(this.sortDirection){case"asc":return"arrow-sort-up";case"desc":return"arrow-sort-down";default:return"arrow-sort-up-down"}},TableHeadCell.styles=[tableHeadCellStyles()],window.customElements.define("m-table-head-cell",TableHeadCell);class TableBody extends s$7{static get properties(){return{slot:{type:String,reflect:!0},role:{type:String,reflect:!0}}}constructor(){super(),this.slot="table-body",this.role="rowgroup"}render(){return x`<slot name="table-row"></slot>`}}TableBody.styles=[tableBodyStyles()],window.customElements.define("m-table-body",TableBody);class TableFoot extends s$7{static get properties(){return{slot:{type:String,reflect:!0},role:{type:String,reflect:!0}}}constructor(){super(),this.slot="table-foot",this.role="rowgroup"}render(){return x`<slot name="table-row"></slot>`}}TableFoot.styles=[tableFootStyles()],window.customElements.define("m-table-foot",TableFoot);class TableRow extends s$7{static get properties(){return{slot:{type:String,reflect:!0},role:{type:String,reflect:!0}}}constructor(){super(),this.slot="table-row",this.role="row"}render(){return x`<slot name="table-cell"></slot>`}}TableRow.styles=[tableRowStyles()],window.customElements.define("m-table-row",TableRow);const defaultTableCellProps={alignment:"left"};class TableCell extends s$7{static get properties(){return{slot:{type:String,reflect:!0},role:{type:String,reflect:!0},alignment:{type:String}}}constructor(){super(),this.slot="table-cell",this.alignment=defaultTableCellProps.alignment}firstUpdated(){const t=null!=this.closest("m-table-head");this.role=t?"columnheader":"cell"}update(t){super.update(t),t.has("alignment")&&this.style.setProperty("--m-table-cell-text-align",this.alignment??defaultTableCellProps.alignment)}render(){return x`<slot></slot>`}}TableCell.styles=[tableCellStyles()],window.customElements.define("m-table-cell",TableCell);class TableToolbar extends s$7{static get properties(){return{slot:{type:String,reflect:!0}}}constructor(){super(),this.slot="table-toolbar"}render(){return x`<slot></slot>`}}TableToolbar.styles=[tableToolbarStyles()],window.customElements.define("m-table-toolbar",TableToolbar);class TableFeedback extends s$7{static get properties(){return{slot:{type:String,reflect:!0}}}constructor(){super(),this.slot="table-feedback"}render(){return x`<slot></slot>`}}TableFeedback.styles=[tableFeedbackStyles()],window.customElements.define("m-table-feedback",TableFeedback);const tabsContext=n$2(Symbol("tabs")),TAB_SELECT_EVENT="m-select-tab";function styles$8(){return i$5`
|
|
3176
3241
|
:host {
|
|
3177
3242
|
--m-tabs-border-width: ${getToken("border-thin")};
|
|
3178
3243
|
--m-tabs-border-color: ${getColor("color-divider")};
|
|
@@ -3186,10 +3251,10 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
3186
3251
|
border-bottom-width: var(--m-tabs-border-width);
|
|
3187
3252
|
border-bottom-color: var(--m-tabs-border-color);
|
|
3188
3253
|
}
|
|
3189
|
-
`}var _Tabs_selectionController,_Tabs_defaultSlot,_Tabs_onSelectionChange,_Tabs_getDefaultSelected,_Tabs_getTabs,_Tab_instances,_Tab_button_get,_Tab_handleClick,_Tab_getContentDirection,_Tab_isSelected,_Tab_isDisabled,_a,_b,_TabPanel_isSelected,_TabPanel_isLazy,_ActionableTag_instances,_ActionableTag_isSkeleton,_ActionableTag_isRemovable,_ActionableTag_isSelectable,_ActionableTag_isSelected,_ActionableTag_isDisabled,_ActionableTag_handleClose,_ActionableTag_toggle,_ActionableTag_handleClick;class Tabs extends Component{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(),_Tabs_selectionController.set(this,null),_Tabs_defaultSlot.set(this,null),this.provider=new i(this,tabsContext,{tabContentDirection:"horizontal",disabled:!1,lazy:!1,selection:new Set("")}),_Tabs_onSelectionChange.set(this,(t=>{t.stopPropagation();const[e]=Array.from(this.selection),o={detail:{value:String(e)}};this.emit("m-tab-change",o)})),_Tabs_getDefaultSelected.set(this,(()=>{const t=__classPrivateFieldGet(this,_Tabs_getTabs,"f").call(this);return t[0]?.name})),_Tabs_getTabs.set(this,(()=>{__classPrivateFieldGet(this,_Tabs_defaultSlot,"f")||__classPrivateFieldSet(this,_Tabs_defaultSlot,this.shadowRoot&&this.shadowRoot.querySelector("slot"),"f");return[...__classPrivateFieldGet(this,_Tabs_defaultSlot,"f")?.assignedElements({flatten:!0})??[]].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(),__classPrivateFieldSet(this,_Tabs_selectionController,new SelectionController(this,this.type,"m-select-tab"),"f"),this.addEventListener("m-change",__classPrivateFieldGet(this,_Tabs_onSelectionChange,"f"))}update(t){super.update(t),t.has("activeTab")&&__classPrivateFieldGet(this,_Tabs_selectionController,"f")&&__classPrivateFieldGet(this,_Tabs_selectionController,"f").init(toArray$1(this.activeTab||__classPrivateFieldGet(this,_Tabs_getDefaultSelected,"f").call(this)));const[e]=Array.from(this.selection);!t.has("selection")||this.activeTab&&e===this.activeTab||(this.activeTab=e),(t.has("tabContentDirection")||t.has("disabled")||t.has("lazy")||t.has("selection"))&&this.provider.setValue({tabContentDirection:this.tabContentDirection,disabled:this.disabled,lazy:this.lazy,selection:this.selection})}render(){return x`
|
|
3254
|
+
`}var _Tabs_selectionController,_Tabs_defaultSlot,_Tabs_onSelectionChange,_Tabs_getDefaultSelected,_Tabs_getTabs,_Tab_instances,_Tab_button_get,_Tab_handleClick,_Tab_getContentDirection,_Tab_isSelected,_Tab_isDisabled,_a,_b,_TabPanel_isSelected,_TabPanel_isLazy,_ActionableTag_instances,_ActionableTag_isSkeleton,_ActionableTag_isRemovable,_ActionableTag_isSelectable,_ActionableTag_isSelected,_ActionableTag_isDisabled,_ActionableTag_handleClose,_ActionableTag_toggle,_ActionableTag_handleClick;class Tabs extends Component{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(),_Tabs_selectionController.set(this,null),_Tabs_defaultSlot.set(this,null),this.provider=new i(this,tabsContext,{tabContentDirection:"horizontal",disabled:!1,lazy:!1,selection:new Set("")}),_Tabs_onSelectionChange.set(this,(t=>{t.stopPropagation();const[e]=Array.from(this.selection),o={detail:{value:String(e)}};this.emit("m-tab-change",o)})),_Tabs_getDefaultSelected.set(this,(()=>{const t=__classPrivateFieldGet$1(this,_Tabs_getTabs,"f").call(this);return t[0]?.name})),_Tabs_getTabs.set(this,(()=>{__classPrivateFieldGet$1(this,_Tabs_defaultSlot,"f")||__classPrivateFieldSet(this,_Tabs_defaultSlot,this.shadowRoot&&this.shadowRoot.querySelector("slot"),"f");return[...__classPrivateFieldGet$1(this,_Tabs_defaultSlot,"f")?.assignedElements({flatten:!0})??[]].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(),__classPrivateFieldSet(this,_Tabs_selectionController,new SelectionController(this,this.type,"m-select-tab"),"f"),this.addEventListener("m-change",__classPrivateFieldGet$1(this,_Tabs_onSelectionChange,"f"))}update(t){super.update(t),t.has("activeTab")&&__classPrivateFieldGet$1(this,_Tabs_selectionController,"f")&&__classPrivateFieldGet$1(this,_Tabs_selectionController,"f").init(toArray$1(this.activeTab||__classPrivateFieldGet$1(this,_Tabs_getDefaultSelected,"f").call(this)));const[e]=Array.from(this.selection);!t.has("selection")||this.activeTab&&e===this.activeTab||(this.activeTab=e),(t.has("tabContentDirection")||t.has("disabled")||t.has("lazy")||t.has("selection"))&&this.provider.setValue({tabContentDirection:this.tabContentDirection,disabled:this.disabled,lazy:this.lazy,selection:this.selection})}render(){return x`
|
|
3190
3255
|
<div class="tablist" role="tablist"><slot name="tab"></slot></div>
|
|
3191
3256
|
<slot></slot>
|
|
3192
|
-
`}}function styles$7(){return i$
|
|
3257
|
+
`}}function styles$7(){return i$5`
|
|
3193
3258
|
:host {
|
|
3194
3259
|
--m-tab-border-width: ${getToken("border-thin")};
|
|
3195
3260
|
--m-tab-border-color: ${getColor("color-divider")};
|
|
@@ -3270,23 +3335,23 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
3270
3335
|
${on(".tab","*").disabled} {
|
|
3271
3336
|
pointer-events: none;
|
|
3272
3337
|
}
|
|
3273
|
-
`}_Tabs_selectionController=new WeakMap,_Tabs_defaultSlot=new WeakMap,_Tabs_onSelectionChange=new WeakMap,_Tabs_getDefaultSelected=new WeakMap,_Tabs_getTabs=new WeakMap,Tabs.styles=[styles$8()],window.customElements.define("m-tabs",Tabs);class Tab extends Component{static get properties(){return{name:{type:String},disabled:{type:Boolean,reflect:!0},slot:{type:String,reflect:!0}}}constructor(){super(),_Tab_instances.add(this),this.tabs=new s$2(this,{context:tabsContext,subscribe:!0}),_Tab_handleClick.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("m-select-tab",e)})),_Tab_getContentDirection.set(this,(()=>this.tabs.value?.tabContentDirection)),_Tab_isSelected.set(this,(()=>Boolean(this.tabs.value?.selection.has(this.name)))),_Tab_isDisabled.set(this,(()=>this.disabled||Boolean(this.tabs.value?.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",__classPrivateFieldGet(this,_Tab_handleClick,"f"))}updated(t){super.updated(t),__classPrivateFieldGet(this,_Tab_isSelected,"f").call(this)?this.setAttribute("aria-selected","true"):this.setAttribute("aria-selected","false"),t.has("name")&&(this.id=`${this.name}-tab`,this.setAttribute("aria-controls",`${this.name}-panel`)),t.has("disabled")&&this.setAttribute("aria-disabled",String(this.disabled??!1))}render(){return x`
|
|
3338
|
+
`}_Tabs_selectionController=new WeakMap,_Tabs_defaultSlot=new WeakMap,_Tabs_onSelectionChange=new WeakMap,_Tabs_getDefaultSelected=new WeakMap,_Tabs_getTabs=new WeakMap,Tabs.styles=[styles$8()],window.customElements.define("m-tabs",Tabs);class Tab extends Component{static get properties(){return{name:{type:String},disabled:{type:Boolean,reflect:!0},slot:{type:String,reflect:!0}}}constructor(){super(),_Tab_instances.add(this),this.tabs=new s$2(this,{context:tabsContext,subscribe:!0}),_Tab_handleClick.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("m-select-tab",e)})),_Tab_getContentDirection.set(this,(()=>this.tabs.value?.tabContentDirection)),_Tab_isSelected.set(this,(()=>Boolean(this.tabs.value?.selection.has(this.name)))),_Tab_isDisabled.set(this,(()=>this.disabled||Boolean(this.tabs.value?.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",__classPrivateFieldGet$1(this,_Tab_handleClick,"f"))}updated(t){super.updated(t),__classPrivateFieldGet$1(this,_Tab_isSelected,"f").call(this)?this.setAttribute("aria-selected","true"):this.setAttribute("aria-selected","false"),t.has("name")&&(this.id=`${this.name}-tab`,this.setAttribute("aria-controls",`${this.name}-panel`)),t.has("disabled")&&this.setAttribute("aria-disabled",String(this.disabled??!1))}render(){return x`
|
|
3274
3339
|
<button
|
|
3275
3340
|
type="button"
|
|
3276
|
-
class=${o$2({tab:!0,"-vertical":"vertical"===__classPrivateFieldGet(this,_Tab_getContentDirection,"f").call(this),"-horizontal":"horizontal"===__classPrivateFieldGet(this,_Tab_getContentDirection,"f").call(this)})}
|
|
3277
|
-
?disabled=${__classPrivateFieldGet(this,_Tab_isDisabled,"f").call(this)}
|
|
3278
|
-
aria-selected=${__classPrivateFieldGet(this,_Tab_isSelected,"f").call(this)}
|
|
3341
|
+
class=${o$2({tab:!0,"-vertical":"vertical"===__classPrivateFieldGet$1(this,_Tab_getContentDirection,"f").call(this),"-horizontal":"horizontal"===__classPrivateFieldGet$1(this,_Tab_getContentDirection,"f").call(this)})}
|
|
3342
|
+
?disabled=${__classPrivateFieldGet$1(this,_Tab_isDisabled,"f").call(this)}
|
|
3343
|
+
aria-selected=${__classPrivateFieldGet$1(this,_Tab_isSelected,"f").call(this)}
|
|
3279
3344
|
>
|
|
3280
3345
|
<slot name="leading"></slot>
|
|
3281
3346
|
<slot></slot>
|
|
3282
3347
|
</button>
|
|
3283
|
-
`}focus(t){__classPrivateFieldGet(this,_Tab_instances,"a",_Tab_button_get)?.focus(t)}}function styles$6(){return i$
|
|
3348
|
+
`}focus(t){__classPrivateFieldGet$1(this,_Tab_instances,"a",_Tab_button_get)?.focus(t)}}function styles$6(){return i$5`
|
|
3284
3349
|
:host {
|
|
3285
3350
|
--m-tab-panel-display: none;
|
|
3286
3351
|
|
|
3287
3352
|
display: var(--m-tab-panel-display);
|
|
3288
3353
|
}
|
|
3289
|
-
`}_Tab_handleClick=new WeakMap,_Tab_getContentDirection=new WeakMap,_Tab_isSelected=new WeakMap,_Tab_isDisabled=new WeakMap,_Tab_instances=new WeakSet,_Tab_button_get=function(){return this.renderRoot?.querySelector("button")??null},Tab.styles=[styles$7()],window.customElements.define("m-tab",Tab);class TabPanel extends(_b=Box){static get properties(){return{...super.properties,forTab:{type:String,attribute:"for-tab"},lazy:{type:Boolean}}}constructor(){super(),this.tabs=new s$2(this,{context:tabsContext,subscribe:!0}),_TabPanel_isSelected.set(this,(()=>Boolean(this.tabs.value?.selection.has(this.forTab)))),_TabPanel_isLazy.set(this,(()=>this.lazy||Boolean(this.tabs.value?.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(t){super.updated(t),__classPrivateFieldGet(this,_TabPanel_isSelected,"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")),t.has("forTab")&&(this.id=`${this.forTab}-panel`,this.setAttribute("aria-labelledby",`${this.forTab}-tab`))}render(){return __classPrivateFieldGet(this,_TabPanel_isLazy,"f").call(this)&&!__classPrivateFieldGet(this,_TabPanel_isSelected,"f").call(this)?x``:x`<slot></slot>`}}function baseTagStyles(){return[skeleton.styles(),i$
|
|
3354
|
+
`}_Tab_handleClick=new WeakMap,_Tab_getContentDirection=new WeakMap,_Tab_isSelected=new WeakMap,_Tab_isDisabled=new WeakMap,_Tab_instances=new WeakSet,_Tab_button_get=function(){return this.renderRoot?.querySelector("button")??null},Tab.styles=[styles$7()],window.customElements.define("m-tab",Tab);class TabPanel extends(_b=Box){static get properties(){return{...super.properties,forTab:{type:String,attribute:"for-tab"},lazy:{type:Boolean}}}constructor(){super(),this.tabs=new s$2(this,{context:tabsContext,subscribe:!0}),_TabPanel_isSelected.set(this,(()=>Boolean(this.tabs.value?.selection.has(this.forTab)))),_TabPanel_isLazy.set(this,(()=>this.lazy||Boolean(this.tabs.value?.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(t){super.updated(t),__classPrivateFieldGet$1(this,_TabPanel_isSelected,"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")),t.has("forTab")&&(this.id=`${this.forTab}-panel`,this.setAttribute("aria-labelledby",`${this.forTab}-tab`))}render(){return __classPrivateFieldGet$1(this,_TabPanel_isLazy,"f").call(this)&&!__classPrivateFieldGet$1(this,_TabPanel_isSelected,"f").call(this)?x``:x`<slot></slot>`}}function baseTagStyles(){return[skeleton.styles(),i$5`
|
|
3290
3355
|
:host {
|
|
3291
3356
|
--m-tag-skeleton-width: 100px;
|
|
3292
3357
|
|
|
@@ -3326,7 +3391,7 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
3326
3391
|
${skeleton()};
|
|
3327
3392
|
width: var(--m-tag-skeleton-width);
|
|
3328
3393
|
}
|
|
3329
|
-
`]}function tagStyles(){return[skeleton.styles(),baseTagStyles(),i$
|
|
3394
|
+
`]}function tagStyles(){return[skeleton.styles(),baseTagStyles(),i$5`
|
|
3330
3395
|
.tag {
|
|
3331
3396
|
display: inline-block;
|
|
3332
3397
|
white-space: nowrap;
|
|
@@ -3353,14 +3418,19 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
3353
3418
|
color: ${getColor("color-danger-60")};
|
|
3354
3419
|
background: ${getColor("color-danger-20")};
|
|
3355
3420
|
}
|
|
3356
|
-
|
|
3421
|
+
|
|
3422
|
+
.-info {
|
|
3423
|
+
color: ${getColor("color-text-highlight")};
|
|
3424
|
+
background: ${getColor("color-accent-20")};
|
|
3425
|
+
}
|
|
3426
|
+
`]}_a=TabPanel,_TabPanel_isSelected=new WeakMap,_TabPanel_isLazy=new WeakMap,TabPanel.styles=[...Reflect.get(_b,"styles",_a),styles$6()],window.customElements.define("m-tab-panel",TabPanel);class Tag extends s$7{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`
|
|
3357
3427
|
<span
|
|
3358
|
-
class=${o$2({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})}
|
|
3428
|
+
class=${o$2({tag:!0,"-success":"success"===this.variant,"-neutral":"neutral"===this.variant,"-warning":"warning"===this.variant,"-danger":"danger"===this.variant,"-info":"info"===this.variant,"-is-skeleton":this.isSkeleton,"-size-small":"small"===this.size,"-size-default":"default"===this.size,"-size-large":"large"===this.size})}
|
|
3359
3429
|
>
|
|
3360
3430
|
${this.isSkeleton?x``:x`<slot name="leading"></slot>`}
|
|
3361
3431
|
<slot></slot>
|
|
3362
3432
|
</span>
|
|
3363
|
-
`}}function handleConditionObject(t){return Object.keys(t||{}).reduce(((e,o)=>t[o]?[...e,o]:e),[]).join(" ")}function conditional(...t){let e=[];for(let o=0;o<t.length;o++){const i=t[o];"string"==typeof i?e.push(i):e=e.concat(handleConditionObject(i))}return e.join(" ")}function actionableTagStyles(){return[skeleton.styles(),baseTagStyles(),i$
|
|
3433
|
+
`}}function handleConditionObject(t){return Object.keys(t||{}).reduce(((e,o)=>t[o]?[...e,o]:e),[]).join(" ")}function conditional(...t){let e=[];for(let o=0;o<t.length;o++){const i=t[o];"string"==typeof i?e.push(i):e=e.concat(handleConditionObject(i))}return e.join(" ")}function actionableTagStyles(){return[skeleton.styles(),baseTagStyles(),i$5`
|
|
3364
3434
|
.tag {
|
|
3365
3435
|
display: inline-flex;
|
|
3366
3436
|
flex-wrap: nowrap;
|
|
@@ -3462,12 +3532,12 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
3462
3532
|
// manual/visual increment
|
|
3463
3533
|
padding-inline-end: calc(${getToken("spacing-2")} + 4px);
|
|
3464
3534
|
}
|
|
3465
|
-
`]}Tag.styles=[tagStyles()],window.customElements.define("m-tag",Tag);class ActionableTag extends Component{static get properties(){return{variant:{type:String},size:{type:String},selectable:{type:Boolean,reflect:!0},selected:{type:Boolean,reflect:!0},removable:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},isSkeleton:{type:Boolean,attribute:"is-skeleton"}}}constructor(){super(),_ActionableTag_instances.add(this),_ActionableTag_isSkeleton.set(this,(()=>Boolean(this.isSkeleton))),_ActionableTag_isRemovable.set(this,(()=>Boolean(this.removable))),_ActionableTag_isSelectable.set(this,(()=>Boolean(this.selectable))),_ActionableTag_isSelected.set(this,(()=>Boolean(this.selected))),_ActionableTag_isDisabled.set(this,(()=>Boolean(this.disabled))),_ActionableTag_handleClose.set(this,(t=>{t.stopPropagation(),this.disabled?t.preventDefault():this.emit("m-remove")})),_ActionableTag_handleClick.set(this,(t=>{const e=this.renderRoot.querySelector("m-close-button"),o=e&&t.composedPath().includes(e);if(this.disabled||!__classPrivateFieldGet(this,_ActionableTag_isSelectable,"f").call(this)||o)return t.stopPropagation(),void t.preventDefault();__classPrivateFieldGet(this,_ActionableTag_instances,"m",_ActionableTag_toggle).call(this)})),this.variant="default",this.size="default",this.removable=!1,this.selectable=!1,this.selected=!1,this.disabled=!1,this.isSkeleton=!1}get tag(){const t=__classPrivateFieldGet(this,_ActionableTag_isSelectable,"f").call(this)?"button":"span";return i$3`${o$3(t)}`}render(){return n$4`
|
|
3535
|
+
`]}Tag.styles=[tagStyles()],window.customElements.define("m-tag",Tag);class ActionableTag extends Component{static get properties(){return{variant:{type:String},size:{type:String},selectable:{type:Boolean,reflect:!0},selected:{type:Boolean,reflect:!0},removable:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},isSkeleton:{type:Boolean,attribute:"is-skeleton"}}}constructor(){super(),_ActionableTag_instances.add(this),_ActionableTag_isSkeleton.set(this,(()=>Boolean(this.isSkeleton))),_ActionableTag_isRemovable.set(this,(()=>Boolean(this.removable))),_ActionableTag_isSelectable.set(this,(()=>Boolean(this.selectable))),_ActionableTag_isSelected.set(this,(()=>Boolean(this.selected))),_ActionableTag_isDisabled.set(this,(()=>Boolean(this.disabled))),_ActionableTag_handleClose.set(this,(t=>{t.stopPropagation(),this.disabled?t.preventDefault():this.emit("m-remove")})),_ActionableTag_handleClick.set(this,(t=>{const e=this.renderRoot.querySelector("m-close-button"),o=e&&t.composedPath().includes(e);if(this.disabled||!__classPrivateFieldGet$1(this,_ActionableTag_isSelectable,"f").call(this)||o)return t.stopPropagation(),void t.preventDefault();__classPrivateFieldGet$1(this,_ActionableTag_instances,"m",_ActionableTag_toggle).call(this)})),this.variant="default",this.size="default",this.removable=!1,this.selectable=!1,this.selected=!1,this.disabled=!1,this.isSkeleton=!1}get tag(){const t=__classPrivateFieldGet$1(this,_ActionableTag_isSelectable,"f").call(this)?"button":"span";return i$3`${o$3(t)}`}render(){return n$4`
|
|
3466
3536
|
<${this.tag}
|
|
3467
|
-
class=${o$2({tag:!0,"-default":"default"===this.variant,"-accent":"accent"===this.variant,"-size-small":"small"===this.size,"-size-default":"default"===this.size,"-size-large":"large"===this.size,"-removable":__classPrivateFieldGet(this,_ActionableTag_isRemovable,"f").call(this),"-selectable":__classPrivateFieldGet(this,_ActionableTag_isSelectable,"f").call(this),"-selected":__classPrivateFieldGet(this,_ActionableTag_isSelected,"f").call(this),"-is-skeleton":__classPrivateFieldGet(this,_ActionableTag_isSkeleton,"f").call(this),"is-disabled":__classPrivateFieldGet(this,_ActionableTag_isDisabled,"f").call(this)})}
|
|
3468
|
-
@click=${__classPrivateFieldGet(this,_ActionableTag_handleClick,"f")}
|
|
3469
|
-
?disabled="${__classPrivateFieldGet(this,_ActionableTag_isSelectable,"f").call(this)?__classPrivateFieldGet(this,_ActionableTag_isDisabled,"f").call(this):A}"
|
|
3470
|
-
aria-disabled=${__classPrivateFieldGet(this,_ActionableTag_isSelectable,"f").call(this)&&__classPrivateFieldGet(this,_ActionableTag_isDisabled,"f").call(this)?"true":"false"}
|
|
3537
|
+
class=${o$2({tag:!0,"-default":"default"===this.variant,"-accent":"accent"===this.variant,"-size-small":"small"===this.size,"-size-default":"default"===this.size,"-size-large":"large"===this.size,"-removable":__classPrivateFieldGet$1(this,_ActionableTag_isRemovable,"f").call(this),"-selectable":__classPrivateFieldGet$1(this,_ActionableTag_isSelectable,"f").call(this),"-selected":__classPrivateFieldGet$1(this,_ActionableTag_isSelected,"f").call(this),"-is-skeleton":__classPrivateFieldGet$1(this,_ActionableTag_isSkeleton,"f").call(this),"is-disabled":__classPrivateFieldGet$1(this,_ActionableTag_isDisabled,"f").call(this)})}
|
|
3538
|
+
@click=${__classPrivateFieldGet$1(this,_ActionableTag_handleClick,"f")}
|
|
3539
|
+
?disabled="${__classPrivateFieldGet$1(this,_ActionableTag_isSelectable,"f").call(this)?__classPrivateFieldGet$1(this,_ActionableTag_isDisabled,"f").call(this):A$1}"
|
|
3540
|
+
aria-disabled=${__classPrivateFieldGet$1(this,_ActionableTag_isSelectable,"f").call(this)&&__classPrivateFieldGet$1(this,_ActionableTag_isDisabled,"f").call(this)?"true":"false"}
|
|
3471
3541
|
>
|
|
3472
3542
|
${this.isSkeleton?n$4``:n$4`<slot name="leading"></slot>`}
|
|
3473
3543
|
<m-text
|
|
@@ -3479,12 +3549,12 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
3479
3549
|
<m-close-button
|
|
3480
3550
|
?hidden=${!this.removable||this.isSkeleton}
|
|
3481
3551
|
?inverted=${this.selected}
|
|
3482
|
-
?disabled=${__classPrivateFieldGet(this,_ActionableTag_isDisabled,"f").call(this)}
|
|
3552
|
+
?disabled=${__classPrivateFieldGet$1(this,_ActionableTag_isDisabled,"f").call(this)}
|
|
3483
3553
|
size=${conditional({small:this.size&&["small","default"].includes(this.size),default:"large"===this.size})}
|
|
3484
|
-
@m-close=${__classPrivateFieldGet(this,_ActionableTag_handleClose,"f")}
|
|
3554
|
+
@m-close=${__classPrivateFieldGet$1(this,_ActionableTag_handleClose,"f")}
|
|
3485
3555
|
></m-close-button>
|
|
3486
3556
|
</${this.tag}>
|
|
3487
|
-
`}}_ActionableTag_isSkeleton=new WeakMap,_ActionableTag_isRemovable=new WeakMap,_ActionableTag_isSelectable=new WeakMap,_ActionableTag_isSelected=new WeakMap,_ActionableTag_isDisabled=new WeakMap,_ActionableTag_handleClose=new WeakMap,_ActionableTag_handleClick=new WeakMap,_ActionableTag_instances=new WeakSet,_ActionableTag_toggle=function(){this.selected=!this.selected,this.emit("m-change",{detail:{selected:this.selected}})},ActionableTag.styles=[actionableTagStyles()],window.customElements.define("m-actionable-tag",ActionableTag);var e=new Map;function t(t){var o=e.get(t);o&&o.destroy()}function o(t){var o=e.get(t);o&&o.update()}var r=null;"undefined"==typeof window?((r=function(t){return t}).destroy=function(t){return t},r.update=function(t){return t}):((r=function(t,o){return t&&Array.prototype.forEach.call(t.length?t:[t],(function(t){return function(t){if(t&&t.nodeName&&"TEXTAREA"===t.nodeName&&!e.has(t)){var o,i=null,r=window.getComputedStyle(t),n=(o=t.value,function(){a({testForHeightReduction:""===o||!t.value.startsWith(o),restoreTextAlign:null}),o=t.value}),s=function(o){t.removeEventListener("autosize:destroy",s),t.removeEventListener("autosize:update",l),t.removeEventListener("input",n),window.removeEventListener("resize",l),Object.keys(o).forEach((function(e){return t.style[e]=o[e]})),e.delete(t)}.bind(t,{height:t.style.height,resize:t.style.resize,textAlign:t.style.textAlign,overflowY:t.style.overflowY,overflowX:t.style.overflowX,wordWrap:t.style.wordWrap});t.addEventListener("autosize:destroy",s),t.addEventListener("autosize:update",l),t.addEventListener("input",n),window.addEventListener("resize",l),t.style.overflowX="hidden",t.style.wordWrap="break-word",e.set(t,{destroy:s,update:l}),l()}function a(e){var o,n,s=e.restoreTextAlign,l=void 0===s?null:s,c=e.testForHeightReduction,d=void 0===c||c,h=r.overflowY;if(0!==t.scrollHeight&&("vertical"===r.resize?t.style.resize="none":"both"===r.resize&&(t.style.resize="horizontal"),d&&(o=function(t){for(var e=[];t&&t.parentNode&&t.parentNode instanceof Element;)t.parentNode.scrollTop&&e.push([t.parentNode,t.parentNode.scrollTop]),t=t.parentNode;return function(){return e.forEach((function(t){var e=t[0],o=t[1];e.style.scrollBehavior="auto",e.scrollTop=o,e.style.scrollBehavior=null}))}}(t),t.style.height=""),n="content-box"===r.boxSizing?t.scrollHeight-(parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)):t.scrollHeight+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),"none"!==r.maxHeight&&n>parseFloat(r.maxHeight)?("hidden"===r.overflowY&&(t.style.overflow="scroll"),n=parseFloat(r.maxHeight)):"hidden"!==r.overflowY&&(t.style.overflow="hidden"),t.style.height=n+"px",l&&(t.style.textAlign=l),o&&o(),i!==n&&(t.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),i=n),h!==r.overflow&&!l)){var u=r.textAlign;"hidden"===r.overflow&&(t.style.textAlign="start"===u?"end":"start"),a({restoreTextAlign:u,testForHeightReduction:!0})}}function l(){a({testForHeightReduction:!0,restoreTextAlign:null})}}(t)})),t}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],t),e},r.update=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],o),t});var _TextArea_handleInput,_TextArea_updateStatusClass,_TextField_instances,_TextField_isClearVisible,_TextField_updateStatusClass,_TextField_handleInput,_TextField_handleClear,n=r;function styles$5(){return i$
|
|
3557
|
+
`}}_ActionableTag_isSkeleton=new WeakMap,_ActionableTag_isRemovable=new WeakMap,_ActionableTag_isSelectable=new WeakMap,_ActionableTag_isSelected=new WeakMap,_ActionableTag_isDisabled=new WeakMap,_ActionableTag_handleClose=new WeakMap,_ActionableTag_handleClick=new WeakMap,_ActionableTag_instances=new WeakSet,_ActionableTag_toggle=function(){this.selected=!this.selected,this.emit("m-change",{detail:{selected:this.selected}})},ActionableTag.styles=[actionableTagStyles()],window.customElements.define("m-actionable-tag",ActionableTag);var e=new Map;function t(t){var o=e.get(t);o&&o.destroy()}function o(t){var o=e.get(t);o&&o.update()}var r=null;"undefined"==typeof window?((r=function(t){return t}).destroy=function(t){return t},r.update=function(t){return t}):((r=function(t,o){return t&&Array.prototype.forEach.call(t.length?t:[t],(function(t){return function(t){if(t&&t.nodeName&&"TEXTAREA"===t.nodeName&&!e.has(t)){var o,i=null,r=window.getComputedStyle(t),n=(o=t.value,function(){a({testForHeightReduction:""===o||!t.value.startsWith(o),restoreTextAlign:null}),o=t.value}),s=function(o){t.removeEventListener("autosize:destroy",s),t.removeEventListener("autosize:update",l),t.removeEventListener("input",n),window.removeEventListener("resize",l),Object.keys(o).forEach((function(e){return t.style[e]=o[e]})),e.delete(t)}.bind(t,{height:t.style.height,resize:t.style.resize,textAlign:t.style.textAlign,overflowY:t.style.overflowY,overflowX:t.style.overflowX,wordWrap:t.style.wordWrap});t.addEventListener("autosize:destroy",s),t.addEventListener("autosize:update",l),t.addEventListener("input",n),window.addEventListener("resize",l),t.style.overflowX="hidden",t.style.wordWrap="break-word",e.set(t,{destroy:s,update:l}),l()}function a(e){var o,n,s=e.restoreTextAlign,l=void 0===s?null:s,c=e.testForHeightReduction,d=void 0===c||c,h=r.overflowY;if(0!==t.scrollHeight&&("vertical"===r.resize?t.style.resize="none":"both"===r.resize&&(t.style.resize="horizontal"),d&&(o=function(t){for(var e=[];t&&t.parentNode&&t.parentNode instanceof Element;)t.parentNode.scrollTop&&e.push([t.parentNode,t.parentNode.scrollTop]),t=t.parentNode;return function(){return e.forEach((function(t){var e=t[0],o=t[1];e.style.scrollBehavior="auto",e.scrollTop=o,e.style.scrollBehavior=null}))}}(t),t.style.height=""),n="content-box"===r.boxSizing?t.scrollHeight-(parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)):t.scrollHeight+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),"none"!==r.maxHeight&&n>parseFloat(r.maxHeight)?("hidden"===r.overflowY&&(t.style.overflow="scroll"),n=parseFloat(r.maxHeight)):"hidden"!==r.overflowY&&(t.style.overflow="hidden"),t.style.height=n+"px",l&&(t.style.textAlign=l),o&&o(),i!==n&&(t.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),i=n),h!==r.overflow&&!l)){var u=r.textAlign;"hidden"===r.overflow&&(t.style.textAlign="start"===u?"end":"start"),a({restoreTextAlign:u,testForHeightReduction:!0})}}function l(){a({testForHeightReduction:!0,restoreTextAlign:null})}}(t)})),t}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],t),e},r.update=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],o),t});var _TextArea_handleInput,_TextArea_updateStatusClass,_TextField_instances,_TextField_isClearVisible,_TextField_updateStatusClass,_TextField_handleInput,_TextField_handleClear,n=r;function styles$5(){return i$5`
|
|
3488
3558
|
:host {
|
|
3489
3559
|
--m-text-area-background-color: ${getColor("color-background-primary")};
|
|
3490
3560
|
--m-text-area-border-color: ${getColor("color-border")};
|
|
@@ -3511,7 +3581,7 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
3511
3581
|
border-radius: ${getToken("border-radius-s")};
|
|
3512
3582
|
border: 1px solid var(--m-text-area-border-color);
|
|
3513
3583
|
|
|
3514
|
-
${p(getToken("spacing-2"))};
|
|
3584
|
+
${p$1(getToken("spacing-2"))};
|
|
3515
3585
|
}
|
|
3516
3586
|
|
|
3517
3587
|
:host([resize='none']:not([autosize])) textarea {
|
|
@@ -3608,7 +3678,7 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
3608
3678
|
border-radius: ${getToken("border-radius-m")};
|
|
3609
3679
|
background-clip: padding-box;
|
|
3610
3680
|
}
|
|
3611
|
-
`}class TextArea extends Component{static get properties(){return{autosize:{type:Boolean},autocomplete:{type:Boolean},autofocus:{type:Boolean},cols:{type:Number},dirname:{type:String},disabled:{type:Boolean,reflect:!0},maxLength:{type:Number,reflect:!0,attribute:"max-length"},minLength:{type:Number,reflect:!0,attribute:"min-length"},name:{type:String},placeholder:{type:String},readOnly:{type:Boolean,reflect:!0,attribute:"read-only"},resize:{type:String,reflect:!0},rows:{type:Number},spellcheck:{type:Boolean,reflect:!0,attribute:"spell-check"},value:{type:String},wrap:{type:String},status:{type:String,reflect:!0}}}constructor(){super(),this.textAreaElement=null,this.field=new s$2(this,{context:fieldContext,subscribe:!0,callback:()=>{__classPrivateFieldGet(this,_TextArea_updateStatusClass,"f").call(this)}}),_TextArea_handleInput.set(this,(t=>{this.value=t.target.value,this.reemit(t)})),_TextArea_updateStatusClass.set(this,(()=>{const t=this.status||this.field.value?.status;this.classList.remove("-status-default","-status-danger"),this.classList.add(`-status-${t}`)})),this.cols=40,this.disabled=!1,this.placeholder=void 0,this.resize="vertical",this.rows=6,this.value=void 0}connectedCallback(){super.connectedCallback(),this.setAttribute("role","textbox")}update(t){super.update(t),t.has("status")&&__classPrivateFieldGet(this,_TextArea_updateStatusClass,"f").call(this)}updated(t){super.updated(t),t.has("autosize")&&(this.autosize?n(this.textarea):n.destroy(this.textarea))}render(){return x`<textarea
|
|
3681
|
+
`}class TextArea extends Component{static get properties(){return{autosize:{type:Boolean},autocomplete:{type:Boolean},autofocus:{type:Boolean},cols:{type:Number},dirname:{type:String},disabled:{type:Boolean,reflect:!0},maxLength:{type:Number,reflect:!0,attribute:"max-length"},minLength:{type:Number,reflect:!0,attribute:"min-length"},name:{type:String},placeholder:{type:String},readOnly:{type:Boolean,reflect:!0,attribute:"read-only"},resize:{type:String,reflect:!0},rows:{type:Number},spellcheck:{type:Boolean,reflect:!0,attribute:"spell-check"},value:{type:String},wrap:{type:String},status:{type:String,reflect:!0}}}constructor(){super(),this.textAreaElement=null,this.field=new s$2(this,{context:fieldContext,subscribe:!0,callback:()=>{__classPrivateFieldGet$1(this,_TextArea_updateStatusClass,"f").call(this)}}),_TextArea_handleInput.set(this,(t=>{this.value=t.target.value,this.reemit(t)})),_TextArea_updateStatusClass.set(this,(()=>{const t=this.status||this.field.value?.status;this.classList.remove("-status-default","-status-danger"),this.classList.add(`-status-${t}`)})),this.cols=40,this.disabled=!1,this.placeholder=void 0,this.resize="vertical",this.rows=6,this.value=void 0}connectedCallback(){super.connectedCallback(),this.setAttribute("role","textbox")}update(t){super.update(t),t.has("status")&&__classPrivateFieldGet$1(this,_TextArea_updateStatusClass,"f").call(this)}updated(t){super.updated(t),t.has("autosize")&&(this.autosize?n(this.textarea):n.destroy(this.textarea))}render(){return x`<textarea
|
|
3612
3682
|
name="${l$1(this.name)}"
|
|
3613
3683
|
autocomplete=${l$1(this.autocomplete)}
|
|
3614
3684
|
?autofocus=${this.autofocus}
|
|
@@ -3622,12 +3692,12 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
3622
3692
|
minlength=${l$1(null!=this.minLength&&this.minLength>-1?this.minLength:void 0)}
|
|
3623
3693
|
placeholder="${l$1(this.placeholder)}"
|
|
3624
3694
|
@change=${this.reemit}
|
|
3625
|
-
@input=${__classPrivateFieldGet(this,_TextArea_handleInput,"f")}
|
|
3695
|
+
@input=${__classPrivateFieldGet$1(this,_TextArea_handleInput,"f")}
|
|
3626
3696
|
spellcheck=${l$1(this.spellcheck)}
|
|
3627
3697
|
wrap=${l$1(this.wrap)}
|
|
3628
3698
|
>
|
|
3629
3699
|
${this.value}</textarea
|
|
3630
|
-
>`}get textarea(){return null==this.textAreaElement&&(this.textAreaElement=this.renderRoot?.querySelector("textArea")??null),this.textAreaElement}focus(){this.textarea?.focus()}}function styles$4(){return i$
|
|
3700
|
+
>`}get textarea(){return null==this.textAreaElement&&(this.textAreaElement=this.renderRoot?.querySelector("textArea")??null),this.textAreaElement}focus(){this.textarea?.focus()}}function styles$4(){return i$5`
|
|
3631
3701
|
:host {
|
|
3632
3702
|
--m-text-field-background-color: ${getColor("color-background-primary")};
|
|
3633
3703
|
--m-text-field-border-color: ${getColor("color-border")};
|
|
@@ -3736,36 +3806,36 @@ ${this.value}</textarea
|
|
|
3736
3806
|
.clear.is-visible {
|
|
3737
3807
|
visibility: visible;
|
|
3738
3808
|
}
|
|
3739
|
-
`}_TextArea_handleInput=new WeakMap,_TextArea_updateStatusClass=new WeakMap,TextArea.styles=[styles$5()],window.customElements.define("m-text-area",TextArea);class TextField extends Component{static get properties(){return{clearable:{type:Boolean},disabled:{type:Boolean,reflect:!0},inputMode:{type:String,attribute:"input-mode"},max:{type:String},maxLength:{type:Number,reflect:!0,attribute:"max-length"},min:{type:String},minLength:{type:Number,reflect:!0,attribute:"min-length"},name:{type:String},pattern:{type:String},placeholder:{type:String},readOnly:{type:Boolean,reflect:!0,attribute:"read-only"},size:{type:String,reflect:!0},status:{type:String,reflect:!0},step:{type:String},type:{type:String},value:{type:String}}}constructor(){super(),_TextField_instances.add(this),this.inputElement=null,this.field=new s$2(this,{context:fieldContext,subscribe:!0,callback:()=>{__classPrivateFieldGet(this,_TextField_updateStatusClass,"f").call(this)}}),_TextField_updateStatusClass.set(this,(()=>{const t=this.status||this.field.value?.status||"default";this.classList.remove("-status-default","-status-danger"),this.classList.add(`-status-${t}`)})),_TextField_handleInput.set(this,(t=>{this.value=t.target.value,this.reemit(t)})),_TextField_handleClear.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")}update(t){super.update(t),t.has("status")&&__classPrivateFieldGet(this,_TextField_updateStatusClass,"f").call(this)}render(){return x`
|
|
3809
|
+
`}_TextArea_handleInput=new WeakMap,_TextArea_updateStatusClass=new WeakMap,TextArea.styles=[styles$5()],window.customElements.define("m-text-area",TextArea);class TextField extends Component{static get properties(){return{clearable:{type:Boolean},disabled:{type:Boolean,reflect:!0},inputMode:{type:String,attribute:"input-mode"},max:{type:String},maxLength:{type:Number,reflect:!0,attribute:"max-length"},min:{type:String},minLength:{type:Number,reflect:!0,attribute:"min-length"},name:{type:String},pattern:{type:String},placeholder:{type:String},readOnly:{type:Boolean,reflect:!0,attribute:"read-only"},size:{type:String,reflect:!0},status:{type:String,reflect:!0},step:{type:String},type:{type:String},value:{type:String}}}constructor(){super(),_TextField_instances.add(this),this.inputElement=null,this.field=new s$2(this,{context:fieldContext,subscribe:!0,callback:()=>{__classPrivateFieldGet$1(this,_TextField_updateStatusClass,"f").call(this)}}),_TextField_updateStatusClass.set(this,(()=>{const t=this.status||this.field.value?.status||"default";this.classList.remove("-status-default","-status-danger"),this.classList.add(`-status-${t}`)})),_TextField_handleInput.set(this,(t=>{this.value=t.target.value,this.reemit(t)})),_TextField_handleClear.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")}update(t){super.update(t),t.has("status")&&__classPrivateFieldGet$1(this,_TextField_updateStatusClass,"f").call(this)}render(){return x`
|
|
3740
3810
|
<slot name="leading"></slot>
|
|
3741
3811
|
<input
|
|
3742
3812
|
?disabled="${this.disabled}"
|
|
3743
3813
|
?readonly=${this.readOnly}
|
|
3744
3814
|
@change=${this.reemit}
|
|
3745
|
-
@input=${__classPrivateFieldGet(this,_TextField_handleInput,"f")}
|
|
3815
|
+
@input=${__classPrivateFieldGet$1(this,_TextField_handleInput,"f")}
|
|
3746
3816
|
aria-disabled=${this.disabled?"true":"false"}
|
|
3747
3817
|
autocomplete=${l$1(this.autocomplete)}
|
|
3748
3818
|
id="${l$1(this.id)}"
|
|
3749
3819
|
inputmode=${l$1(this.inputMode)}
|
|
3750
|
-
max=${this.max||A}
|
|
3820
|
+
max=${this.max||A$1}
|
|
3751
3821
|
maxlength=${l$1(null!=this.maxLength&&this.maxLength>-1?this.maxLength:void 0)}
|
|
3752
|
-
min=${this.min||A}
|
|
3822
|
+
min=${this.min||A$1}
|
|
3753
3823
|
minlength=${l$1(null!=this.minLength&&this.minLength>-1?this.minLength:void 0)}
|
|
3754
3824
|
name="${l$1(this.name)}"
|
|
3755
3825
|
pattern=${l$1(this.pattern)}
|
|
3756
3826
|
placeholder="${l$1(this.placeholder)}"
|
|
3757
|
-
step=${this.step||A}
|
|
3827
|
+
step=${this.step||A$1}
|
|
3758
3828
|
type="${l$1(this.type)}"
|
|
3759
3829
|
value="${l$1(this.value)}"
|
|
3760
3830
|
/>
|
|
3761
3831
|
${this.clearable?x`<m-close-button
|
|
3762
|
-
class=${o$2({clear:!0,"is-visible":__classPrivateFieldGet(this,_TextField_instances,"m",_TextField_isClearVisible).call(this)})}
|
|
3832
|
+
class=${o$2({clear:!0,"is-visible":__classPrivateFieldGet$1(this,_TextField_instances,"m",_TextField_isClearVisible).call(this)})}
|
|
3763
3833
|
controls="${l$1(this.id)}"
|
|
3764
|
-
@m-close=${__classPrivateFieldGet(this,_TextField_handleClear,"f")}
|
|
3834
|
+
@m-close=${__classPrivateFieldGet$1(this,_TextField_handleClear,"f")}
|
|
3765
3835
|
label="Clear input"
|
|
3766
|
-
></m-close-button>`:A}
|
|
3836
|
+
></m-close-button>`:A$1}
|
|
3767
3837
|
<slot name="trailing"></slot>
|
|
3768
|
-
`}get input(){return null==this.inputElement&&(this.inputElement=this.renderRoot?.querySelector("input")??null),this.inputElement}clear(){this.value="",this.input&&(this.input.value=""),this.emit("m-clear"),this.focus()}focus(){this.input?.focus()}}function timelineStyles(){return i$
|
|
3838
|
+
`}get input(){return null==this.inputElement&&(this.inputElement=this.renderRoot?.querySelector("input")??null),this.inputElement}clear(){this.value="",this.input&&(this.input.value=""),this.emit("m-clear"),this.focus()}focus(){this.input?.focus()}}function timelineStyles(){return i$5`
|
|
3769
3839
|
::slotted(*) {
|
|
3770
3840
|
width: 100%;
|
|
3771
3841
|
}
|
|
@@ -3778,7 +3848,7 @@ ${this.value}</textarea
|
|
|
3778
3848
|
|
|
3779
3849
|
gap: ${getToken("spacing-4")};
|
|
3780
3850
|
}
|
|
3781
|
-
`}function timelineItemStyles(){return i$
|
|
3851
|
+
`}function timelineItemStyles(){return i$5`
|
|
3782
3852
|
::slotted(:not(m-timeline-item-icon)) {
|
|
3783
3853
|
width: 100%;
|
|
3784
3854
|
}
|
|
@@ -3920,7 +3990,7 @@ ${this.value}</textarea
|
|
|
3920
3990
|
:host([variant='warning']:not([active], [active])) .exclamation {
|
|
3921
3991
|
display: inline-flex;
|
|
3922
3992
|
}
|
|
3923
|
-
`}function timelineExpandableItemStyles(){return i$
|
|
3993
|
+
`}function timelineExpandableItemStyles(){return i$5`
|
|
3924
3994
|
.m-timeline-item-header-trigger {
|
|
3925
3995
|
display: flex;
|
|
3926
3996
|
margin: 0;
|
|
@@ -3957,7 +4027,7 @@ ${this.value}</textarea
|
|
|
3957
4027
|
will-change: height;
|
|
3958
4028
|
}
|
|
3959
4029
|
}
|
|
3960
|
-
`}function timelineItemHeaderStyles(){return i$
|
|
4030
|
+
`}function timelineItemHeaderStyles(){return i$5`
|
|
3961
4031
|
:host {
|
|
3962
4032
|
--m-timeline-item-header-align: baseline;
|
|
3963
4033
|
|
|
@@ -3970,24 +4040,24 @@ ${this.value}</textarea
|
|
|
3970
4040
|
|
|
3971
4041
|
box-sizing: border-box;
|
|
3972
4042
|
}
|
|
3973
|
-
`}function timelineBodyStyles(){return i$
|
|
4043
|
+
`}function timelineBodyStyles(){return i$5`
|
|
3974
4044
|
:host {
|
|
3975
4045
|
display: block;
|
|
3976
4046
|
|
|
3977
4047
|
box-sizing: border-box;
|
|
3978
4048
|
}
|
|
3979
|
-
`}function timelineFooterStyles(){return i$
|
|
4049
|
+
`}function timelineFooterStyles(){return i$5`
|
|
3980
4050
|
:host {
|
|
3981
4051
|
display: block;
|
|
3982
4052
|
|
|
3983
4053
|
box-sizing: border-box;
|
|
3984
4054
|
}
|
|
3985
|
-
`}function timelineIconStyles(){return i$
|
|
4055
|
+
`}function timelineIconStyles(){return i$5`
|
|
3986
4056
|
:host {
|
|
3987
4057
|
display: flex;
|
|
3988
4058
|
box-sizing: border-box;
|
|
3989
4059
|
}
|
|
3990
|
-
`}_TextField_updateStatusClass=new WeakMap,_TextField_handleInput=new WeakMap,_TextField_handleClear=new WeakMap,_TextField_instances=new WeakSet,_TextField_isClearVisible=function(){const t=this.value||"";return!this.disabled&&t.length>0},TextField.styles=[styles$4()],window.customElements.define("m-text-field",TextField);class Timeline extends Component{update(t){if(super.update(t),null!=this.activeEntry){let t=!0;for(const e of this.entries)e.active?t=!1:(e.completed=t,e.active=!1)}}render(){return x`<slot name="item"></slot>`}get entries(){return Array.from(this.querySelectorAll("m-timeline-item"))}get activeEntry(){return this.querySelector("m-timeline-item[active]")}}Timeline.styles=[timelineStyles()],window.customElements.define("m-timeline",Timeline);const timelineItemContext=n$2(Symbol("timeline-item"));var _TimelineExpandableItem_instances,_TimelineExpandableItem_contextProvider,_TimelineExpandableItem_timelineItemHeaderTrigger_get,_TimelineExpandableItem_timelineItemBodySection_get,_TimelineExpandableItem_timelineItemBody_get,_TimelineExpandableItem_handleExpand,_TimelineExpandableItem_toggle,_TimelineExpandableItem_handleTransition,_TimelineItem_contextProvider,_TimelineItemHeaderTitle_context,_TimelineItemHeaderTitle_updateTextStyle;attachContextRoot();class TimelineExpandableItem extends Component{constructor(){super(...arguments),_TimelineExpandableItem_instances.add(this),_TimelineExpandableItem_contextProvider.set(this,new i(this,{context:timelineItemContext,initialValue:{variant:"neutral",completed:!1,active:!1}})),_TimelineExpandableItem_handleTransition.set(this,(()=>{this.expanded&&(__classPrivateFieldGet(this,_TimelineExpandableItem_instances,"a",_TimelineExpandableItem_timelineItemBodySection_get).style.height="auto")}))}static get properties(){return{completed:{type:Boolean,reflect:!0},active:{type:Boolean,reflect:!0},variant:{type:String,reflect:!0},expanded:{type:Boolean,reflect:!0},divider:{type:Boolean,reflect:!0}}}connectedCallback(){super.connectedCallback(),this.slot="item",this.variant=this.variant??"neutral",this.active=this.active??!1,this.completed=this.completed??!1,this.divider=this.divider??!1,this.expanded=this.expanded??!1,this.resizeObserver=new ResizeObserver((t=>{this.bodyHeight=t[0].target.scrollHeight}))}firstUpdated(){__classPrivateFieldGet(this,_TimelineExpandableItem_instances,"a",_TimelineExpandableItem_timelineItemBody_get).style.transition="visibility 0.35s",__classPrivateFieldGet(this,_TimelineExpandableItem_instances,"a",_TimelineExpandableItem_timelineItemBody_get).setAttribute("role","region"),this.resizeObserver.observe(__classPrivateFieldGet(this,_TimelineExpandableItem_instances,"a",_TimelineExpandableItem_timelineItemBodySection_get)),__classPrivateFieldGet(this,_TimelineExpandableItem_instances,"a",_TimelineExpandableItem_timelineItemBodySection_get).addEventListener("transitionend",__classPrivateFieldGet(this,_TimelineExpandableItem_handleTransition,"f"))}update(t){super.update(t),t.has("active")&&(this.active?(this.setAttribute("tabindex","0"),this.setAttribute("aria-active","step"),this.closest("m-timeline")?.requestUpdate()):(this.removeAttribute("tabindex"),this.removeAttribute("aria-active"))),t.has("expanded")&&__classPrivateFieldGet(this,_TimelineExpandableItem_instances,"m",_TimelineExpandableItem_handleExpand).call(this)}updated(t){super.updated(t),(t.has("active")||t.has("completed")||t.has("variant"))&&__classPrivateFieldGet(this,_TimelineExpandableItem_contextProvider,"f").setValue({variant:this.variant??"neutral",completed:Boolean(this.completed),active:Boolean(this.active)})}disconnectedCallback(){super.disconnectedCallback(),__classPrivateFieldGet(this,_TimelineExpandableItem_instances,"a",_TimelineExpandableItem_timelineItemBodySection_get).removeEventListener("transitionend",__classPrivateFieldGet(this,_TimelineExpandableItem_handleTransition,"f")),this.resizeObserver.disconnect()}render(){return x`
|
|
4060
|
+
`}_TextField_updateStatusClass=new WeakMap,_TextField_handleInput=new WeakMap,_TextField_handleClear=new WeakMap,_TextField_instances=new WeakSet,_TextField_isClearVisible=function(){const t=this.value||"";return!this.disabled&&t.length>0},TextField.styles=[styles$4()],window.customElements.define("m-text-field",TextField);class Timeline extends Component{update(t){if(super.update(t),null!=this.activeEntry){let t=!0;for(const e of this.entries)e.active?t=!1:(e.completed=t,e.active=!1)}}render(){return x`<slot name="item"></slot>`}get entries(){return Array.from(this.querySelectorAll("m-timeline-item"))}get activeEntry(){return this.querySelector("m-timeline-item[active]")}}Timeline.styles=[timelineStyles()],window.customElements.define("m-timeline",Timeline);const timelineItemContext=n$2(Symbol("timeline-item"));var _TimelineExpandableItem_instances,_TimelineExpandableItem_contextProvider,_TimelineExpandableItem_timelineItemHeaderTrigger_get,_TimelineExpandableItem_timelineItemBodySection_get,_TimelineExpandableItem_timelineItemBody_get,_TimelineExpandableItem_handleExpand,_TimelineExpandableItem_toggle,_TimelineExpandableItem_handleTransition,_TimelineItem_contextProvider,_TimelineItemHeaderTitle_context,_TimelineItemHeaderTitle_updateTextStyle;attachContextRoot();class TimelineExpandableItem extends Component{constructor(){super(...arguments),_TimelineExpandableItem_instances.add(this),_TimelineExpandableItem_contextProvider.set(this,new i(this,{context:timelineItemContext,initialValue:{variant:"neutral",completed:!1,active:!1}})),_TimelineExpandableItem_handleTransition.set(this,(()=>{this.expanded&&(__classPrivateFieldGet$1(this,_TimelineExpandableItem_instances,"a",_TimelineExpandableItem_timelineItemBodySection_get).style.height="auto")}))}static get properties(){return{completed:{type:Boolean,reflect:!0},active:{type:Boolean,reflect:!0},variant:{type:String,reflect:!0},expanded:{type:Boolean,reflect:!0},divider:{type:Boolean,reflect:!0}}}connectedCallback(){super.connectedCallback(),this.slot="item",this.variant=this.variant??"neutral",this.active=this.active??!1,this.completed=this.completed??!1,this.divider=this.divider??!1,this.expanded=this.expanded??!1,this.resizeObserver=new ResizeObserver((t=>{this.bodyHeight=t[0].target.scrollHeight}))}firstUpdated(){__classPrivateFieldGet$1(this,_TimelineExpandableItem_instances,"a",_TimelineExpandableItem_timelineItemBody_get).style.transition="visibility 0.35s",__classPrivateFieldGet$1(this,_TimelineExpandableItem_instances,"a",_TimelineExpandableItem_timelineItemBody_get).setAttribute("role","region"),this.resizeObserver.observe(__classPrivateFieldGet$1(this,_TimelineExpandableItem_instances,"a",_TimelineExpandableItem_timelineItemBodySection_get)),__classPrivateFieldGet$1(this,_TimelineExpandableItem_instances,"a",_TimelineExpandableItem_timelineItemBodySection_get).addEventListener("transitionend",__classPrivateFieldGet$1(this,_TimelineExpandableItem_handleTransition,"f"))}update(t){super.update(t),t.has("active")&&(this.active?(this.setAttribute("tabindex","0"),this.setAttribute("aria-active","step"),this.closest("m-timeline")?.requestUpdate()):(this.removeAttribute("tabindex"),this.removeAttribute("aria-active"))),t.has("expanded")&&__classPrivateFieldGet$1(this,_TimelineExpandableItem_instances,"m",_TimelineExpandableItem_handleExpand).call(this)}updated(t){super.updated(t),(t.has("active")||t.has("completed")||t.has("variant"))&&__classPrivateFieldGet$1(this,_TimelineExpandableItem_contextProvider,"f").setValue({variant:this.variant??"neutral",completed:Boolean(this.completed),active:Boolean(this.active)})}disconnectedCallback(){super.disconnectedCallback(),__classPrivateFieldGet$1(this,_TimelineExpandableItem_instances,"a",_TimelineExpandableItem_timelineItemBodySection_get).removeEventListener("transitionend",__classPrivateFieldGet$1(this,_TimelineExpandableItem_handleTransition,"f")),this.resizeObserver.disconnect()}render(){return x`
|
|
3991
4061
|
<div class="side">
|
|
3992
4062
|
<span aria-hidden="true" class="circle">
|
|
3993
4063
|
<slot name="item-icon">
|
|
@@ -4008,7 +4078,7 @@ ${this.value}</textarea
|
|
|
4008
4078
|
>
|
|
4009
4079
|
<button
|
|
4010
4080
|
class="m-timeline-item-header-trigger"
|
|
4011
|
-
@click="${__classPrivateFieldGet(this,_TimelineExpandableItem_instances,"m",_TimelineExpandableItem_toggle)}"
|
|
4081
|
+
@click="${__classPrivateFieldGet$1(this,_TimelineExpandableItem_instances,"m",_TimelineExpandableItem_toggle)}"
|
|
4012
4082
|
tabindex="0"
|
|
4013
4083
|
type="button"
|
|
4014
4084
|
>
|
|
@@ -4020,7 +4090,7 @@ ${this.value}</textarea
|
|
|
4020
4090
|
</section>
|
|
4021
4091
|
<slot name="item-footer"></slot>
|
|
4022
4092
|
</div>
|
|
4023
|
-
`}}_TimelineExpandableItem_contextProvider=new WeakMap,_TimelineExpandableItem_handleTransition=new WeakMap,_TimelineExpandableItem_instances=new WeakSet,_TimelineExpandableItem_timelineItemHeaderTrigger_get=function(){return this.renderRoot.querySelector(".m-timeline-item-header-trigger")},_TimelineExpandableItem_timelineItemBodySection_get=function(){return this.renderRoot.querySelector(".m-timeline-item-body-section")},_TimelineExpandableItem_timelineItemBody_get=function(){return this.querySelector("m-timeline-item-body")},_TimelineExpandableItem_handleExpand=function(){__classPrivateFieldGet(this,_TimelineExpandableItem_instances,"a",_TimelineExpandableItem_timelineItemHeaderTrigger_get).setAttribute("aria-expanded",`${this.expanded}`),__classPrivateFieldGet(this,_TimelineExpandableItem_instances,"a",_TimelineExpandableItem_timelineItemBodySection_get).style.height=`${this.bodyHeight}px`,this.expanded?(__classPrivateFieldGet(this,_TimelineExpandableItem_instances,"a",_TimelineExpandableItem_timelineItemBody_get).style.visibility="visible",this.style.setProperty("--m-timeline-item-content-gap",toSpacingCSSValue("spacing-6"))):setTimeout((()=>{__classPrivateFieldGet(this,_TimelineExpandableItem_instances,"a",_TimelineExpandableItem_timelineItemBodySection_get).style.height="0px",__classPrivateFieldGet(this,_TimelineExpandableItem_instances,"a",_TimelineExpandableItem_timelineItemBody_get).style.visibility="hidden",this.style.setProperty("--m-timeline-item-content-gap",toSpacingCSSValue("none"))}))},_TimelineExpandableItem_toggle=function(){this.expanded=!this.expanded,this.emit("m-toggle",{detail:{name:"timeline-item-expanded",value:this.expanded}})},TimelineExpandableItem.styles=[timelineItemStyles(),timelineExpandableItemStyles()],window.customElements.define("m-timeline-expandable-item",TimelineExpandableItem),attachContextRoot();class TimelineItem extends s$
|
|
4093
|
+
`}}_TimelineExpandableItem_contextProvider=new WeakMap,_TimelineExpandableItem_handleTransition=new WeakMap,_TimelineExpandableItem_instances=new WeakSet,_TimelineExpandableItem_timelineItemHeaderTrigger_get=function(){return this.renderRoot.querySelector(".m-timeline-item-header-trigger")},_TimelineExpandableItem_timelineItemBodySection_get=function(){return this.renderRoot.querySelector(".m-timeline-item-body-section")},_TimelineExpandableItem_timelineItemBody_get=function(){return this.querySelector("m-timeline-item-body")},_TimelineExpandableItem_handleExpand=function(){__classPrivateFieldGet$1(this,_TimelineExpandableItem_instances,"a",_TimelineExpandableItem_timelineItemHeaderTrigger_get).setAttribute("aria-expanded",`${this.expanded}`),__classPrivateFieldGet$1(this,_TimelineExpandableItem_instances,"a",_TimelineExpandableItem_timelineItemBodySection_get).style.height=`${this.bodyHeight}px`,this.expanded?(__classPrivateFieldGet$1(this,_TimelineExpandableItem_instances,"a",_TimelineExpandableItem_timelineItemBody_get).style.visibility="visible",this.style.setProperty("--m-timeline-item-content-gap",toSpacingCSSValue("spacing-6"))):setTimeout((()=>{__classPrivateFieldGet$1(this,_TimelineExpandableItem_instances,"a",_TimelineExpandableItem_timelineItemBodySection_get).style.height="0px",__classPrivateFieldGet$1(this,_TimelineExpandableItem_instances,"a",_TimelineExpandableItem_timelineItemBody_get).style.visibility="hidden",this.style.setProperty("--m-timeline-item-content-gap",toSpacingCSSValue("none"))}))},_TimelineExpandableItem_toggle=function(){this.expanded=!this.expanded,this.emit("m-toggle",{detail:{name:"timeline-item-expanded",value:this.expanded}})},TimelineExpandableItem.styles=[timelineItemStyles(),timelineExpandableItemStyles()],window.customElements.define("m-timeline-expandable-item",TimelineExpandableItem),attachContextRoot();class TimelineItem extends s$7{constructor(){super(...arguments),_TimelineItem_contextProvider.set(this,new i(this,{context:timelineItemContext,initialValue:{variant:"neutral",completed:!1,active:!1}}))}static get properties(){return{completed:{type:Boolean,reflect:!0},active:{type:Boolean,reflect:!0},divider:{type:Boolean,reflect:!0},variant:{type:String,reflect:!0}}}connectedCallback(){super.connectedCallback(),this.slot="item",this.variant=this.variant??"neutral",this.active=this.active??!1,this.completed=this.completed??!1,this.divider=this.divider??!1}update(t){super.update(t),t.has("active")&&(this.active?(this.setAttribute("tabindex","0"),this.setAttribute("aria-active","step"),this.closest("m-timeline")?.requestUpdate()):(this.removeAttribute("tabindex"),this.removeAttribute("aria-active")))}updated(t){super.updated(t),(t.has("active")||t.has("completed")||t.has("variant"))&&__classPrivateFieldGet$1(this,_TimelineItem_contextProvider,"f").setValue({variant:this.variant??"neutral",completed:Boolean(this.completed),active:Boolean(this.active)})}render(){return x`
|
|
4024
4094
|
<div class="side">
|
|
4025
4095
|
<span aria-hidden="true" class="circle">
|
|
4026
4096
|
<slot name="item-icon">
|
|
@@ -4043,11 +4113,11 @@ ${this.value}</textarea
|
|
|
4043
4113
|
<slot name="item-body"></slot>
|
|
4044
4114
|
<slot name="item-footer"></slot>
|
|
4045
4115
|
</div>
|
|
4046
|
-
`}}_TimelineItem_contextProvider=new WeakMap,TimelineItem.styles=[timelineItemStyles()],window.customElements.define("m-timeline-item",TimelineItem);class TimelineItemBody extends s$
|
|
4116
|
+
`}}_TimelineItem_contextProvider=new WeakMap,TimelineItem.styles=[timelineItemStyles()],window.customElements.define("m-timeline-item",TimelineItem);class TimelineItemBody extends s$7{connectedCallback(){super.connectedCallback(),this.slot="item-body",this.classList.add("m-timeline-item-body")}render(){return x`<slot></slot>`}}TimelineItemBody.styles=[timelineBodyStyles()],window.customElements.define("m-timeline-item-body",TimelineItemBody);class TimelineItemFooter extends s$7{connectedCallback(){super.connectedCallback(),this.slot="item-footer"}render(){return x`<slot></slot>`}}TimelineItemFooter.styles=[timelineFooterStyles()],window.customElements.define("m-timeline-item-footer",TimelineItemFooter);class TimelineItemHeader extends s$7{static get properties(){return{align:{type:String}}}connectedCallback(){super.connectedCallback(),this.slot="item-header"}update(t){super.update(t),t.has("align")&&this.style.setProperty("--m-timeline-item-header-align",this.align??"baseline")}render(){return x`
|
|
4047
4117
|
<slot name="item-header-title"></slot>
|
|
4048
4118
|
<slot name="item-header-subtitle"></slot>
|
|
4049
4119
|
<slot></slot>
|
|
4050
|
-
`}}TimelineItemHeader.styles=[timelineItemHeaderStyles()],window.customElements.define("m-timeline-item-header",TimelineItemHeader);class TimelineItemHeaderSubtitle extends Text{connectedCallback(){super.connectedCallback(),this.slot="item-header-subtitle",this.variant="body-sm",this.color="color-text-tertiary"}}window.customElements.define("m-timeline-item-header-subtitle",TimelineItemHeaderSubtitle);class TimelineItemHeaderTitle extends Text{constructor(){super(),_TimelineItemHeaderTitle_context.set(this,void 0),_TimelineItemHeaderTitle_updateTextStyle.set(this,(()=>{const{value:t}=__classPrivateFieldGet(this,_TimelineItemHeaderTitle_context,"f");t&&(t.completed?(this.color="color-text-tertiary",this.variant="heading-sm"):t.active?(this.color="color-primary-60",this.variant="heading-sm-bold"):"warning"===t.variant?(this.color="color-warning-100",this.variant="heading-sm"):(this.color="color-text-secondary",this.variant="heading-sm"))})),__classPrivateFieldSet(this,_TimelineItemHeaderTitle_context,new s$2(this,{context:timelineItemContext,subscribe:!0,callback:__classPrivateFieldGet(this,_TimelineItemHeaderTitle_updateTextStyle,"f")}),"f")}connectedCallback(){super.connectedCallback(),this.slot="item-header-title",this.variant="heading-sm",this.color="color-text-tertiary"}}_TimelineItemHeaderTitle_context=new WeakMap,_TimelineItemHeaderTitle_updateTextStyle=new WeakMap,window.customElements.define("m-timeline-item-header-title",TimelineItemHeaderTitle);class TimelineItemIcon extends s$
|
|
4120
|
+
`}}TimelineItemHeader.styles=[timelineItemHeaderStyles()],window.customElements.define("m-timeline-item-header",TimelineItemHeader);class TimelineItemHeaderSubtitle extends Text{connectedCallback(){super.connectedCallback(),this.slot="item-header-subtitle",this.variant="body-sm",this.color="color-text-tertiary"}}window.customElements.define("m-timeline-item-header-subtitle",TimelineItemHeaderSubtitle);class TimelineItemHeaderTitle extends Text{constructor(){super(),_TimelineItemHeaderTitle_context.set(this,void 0),_TimelineItemHeaderTitle_updateTextStyle.set(this,(()=>{const{value:t}=__classPrivateFieldGet$1(this,_TimelineItemHeaderTitle_context,"f");t&&(t.completed?(this.color="color-text-tertiary",this.variant="heading-sm"):t.active?(this.color="color-primary-60",this.variant="heading-sm-bold"):"warning"===t.variant?(this.color="color-warning-100",this.variant="heading-sm"):(this.color="color-text-secondary",this.variant="heading-sm"))})),__classPrivateFieldSet(this,_TimelineItemHeaderTitle_context,new s$2(this,{context:timelineItemContext,subscribe:!0,callback:__classPrivateFieldGet$1(this,_TimelineItemHeaderTitle_updateTextStyle,"f")}),"f")}connectedCallback(){super.connectedCallback(),this.slot="item-header-title",this.variant="heading-sm",this.color="color-text-tertiary"}}_TimelineItemHeaderTitle_context=new WeakMap,_TimelineItemHeaderTitle_updateTextStyle=new WeakMap,window.customElements.define("m-timeline-item-header-title",TimelineItemHeaderTitle);class TimelineItemIcon extends s$7{connectedCallback(){super.connectedCallback(),this.slot="item-icon"}render(){return x`<slot></slot>`}}TimelineItemIcon.styles=[timelineIconStyles()],window.customElements.define("m-timeline-item-icon",TimelineItemIcon);const TOGGLE_EVENT="m-toggle";function styles$3(){return[i$5`
|
|
4051
4121
|
.toggle-group {
|
|
4052
4122
|
inline-size: max-content;
|
|
4053
4123
|
|
|
@@ -4073,14 +4143,14 @@ ${this.value}</textarea
|
|
|
4073
4143
|
.toggle-group.-show-check ::slotted(m-toggle[aria-checked='true']) {
|
|
4074
4144
|
--m-toggle-icon-display: inline-flex;
|
|
4075
4145
|
}
|
|
4076
|
-
`]}var _ToggleGroup_selectionController,_ToggleGroup_defaultSlot,_ToggleGroup_getToggles,_ToggleGroup_setToggleRole,_ToggleGroup_setToggleChecked,_ToggleGroup_setToggleDisabled,_Toggle_instances,_Toggle_button_get,_Toggle_handleClick,_Toggle_setDisabled,_Toggle_setChecked,_Tooltip_hoverTimeout,_Tooltip_focusTimeout,_Tooltip_handleFocus,_Tooltip_handleBlur,_Tooltip_handleClick,_Tooltip_handleKeyDown,_Tooltip_handleMouseOver,_Tooltip_handleMouseOut,_Tooltip_hasTrigger;class ToggleGroup extends s$
|
|
4146
|
+
`]}var _ToggleGroup_selectionController,_ToggleGroup_defaultSlot,_ToggleGroup_getToggles,_ToggleGroup_setToggleRole,_ToggleGroup_setToggleChecked,_ToggleGroup_setToggleDisabled,_Toggle_instances,_Toggle_button_get,_Toggle_handleClick,_Toggle_setDisabled,_Toggle_setChecked,_Tooltip_hoverTimeout,_Tooltip_focusTimeout,_Tooltip_handleFocus,_Tooltip_handleBlur,_Tooltip_handleClick,_Tooltip_handleKeyDown,_Tooltip_handleMouseOver,_Tooltip_handleMouseOut,_Tooltip_hasTrigger;class ToggleGroup extends s$7{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(),_ToggleGroup_selectionController.set(this,null),_ToggleGroup_defaultSlot.set(this,null),_ToggleGroup_getToggles.set(this,(()=>{__classPrivateFieldGet$1(this,_ToggleGroup_defaultSlot,"f")||__classPrivateFieldSet(this,_ToggleGroup_defaultSlot,this.shadowRoot&&this.shadowRoot.querySelector("slot"),"f");return[...__classPrivateFieldGet$1(this,_ToggleGroup_defaultSlot,"f")?.assignedElements({flatten:!0})??[]].filter((t=>"m-toggle"===t.tagName.toLowerCase()))})),_ToggleGroup_setToggleRole.set(this,(t=>{t.setAttribute("role",["single","single-strict"].includes(this.type)?"radio":"checkbox")})),_ToggleGroup_setToggleChecked.set(this,(t=>{t.checked=this.selection.has(t.value)})),_ToggleGroup_setToggleDisabled.set(this,(t=>{t.disabled=this.disabled})),this.showCheck=!1,this.size="default",this.type="single",this.selection=new Set}update(t){super.update(t),(null!=t.get("type")&&null!=this.type||null==__classPrivateFieldGet$1(this,_ToggleGroup_selectionController,"f"))&&(__classPrivateFieldSet(this,_ToggleGroup_selectionController,new SelectionController(this,this.type,"m-toggle"),"f"),__classPrivateFieldGet$1(this,_ToggleGroup_selectionController,"f").init(toArray$1(this.value)),this.role=["single","single-strict"].includes(this.type)?"radiogroup":"group"),t.has("value")&&__classPrivateFieldGet$1(this,_ToggleGroup_selectionController,"f").init(toArray$1(this.value))}updated(t){super.updated(t),t.has("selection")&&__classPrivateFieldGet$1(this,_ToggleGroup_getToggles,"f").call(this).forEach((t=>{__classPrivateFieldGet$1(this,_ToggleGroup_setToggleChecked,"f").call(this,t)})),t.has("disabled")&&__classPrivateFieldGet$1(this,_ToggleGroup_getToggles,"f").call(this).forEach((t=>{__classPrivateFieldGet$1(this,_ToggleGroup_setToggleDisabled,"f").call(this,t)})),t.has("role")&&__classPrivateFieldGet$1(this,_ToggleGroup_getToggles,"f").call(this).forEach((t=>{__classPrivateFieldGet$1(this,_ToggleGroup_setToggleRole,"f").call(this,t)}))}render(){return x`
|
|
4077
4147
|
<m-group
|
|
4078
4148
|
class=${o$2({"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})}
|
|
4079
4149
|
gap="spacing-1"
|
|
4080
4150
|
>
|
|
4081
4151
|
<slot></slot>
|
|
4082
4152
|
</m-group>
|
|
4083
|
-
`}}function styles$2(){return[styles$F(),i$
|
|
4153
|
+
`}}function styles$2(){return[styles$F(),i$5`
|
|
4084
4154
|
:host {
|
|
4085
4155
|
/*
|
|
4086
4156
|
* These custom properties are here because they are meant to be
|
|
@@ -4120,7 +4190,7 @@ ${this.value}</textarea
|
|
|
4120
4190
|
|
|
4121
4191
|
display: var(--m-toggle-icon-display);
|
|
4122
4192
|
}
|
|
4123
|
-
`]}_ToggleGroup_selectionController=new WeakMap,_ToggleGroup_defaultSlot=new WeakMap,_ToggleGroup_getToggles=new WeakMap,_ToggleGroup_setToggleRole=new WeakMap,_ToggleGroup_setToggleChecked=new WeakMap,_ToggleGroup_setToggleDisabled=new WeakMap,ToggleGroup.styles=[styles$3()],window.customElements.define("m-toggle-group",ToggleGroup);class Toggle extends s$
|
|
4193
|
+
`]}_ToggleGroup_selectionController=new WeakMap,_ToggleGroup_defaultSlot=new WeakMap,_ToggleGroup_getToggles=new WeakMap,_ToggleGroup_setToggleRole=new WeakMap,_ToggleGroup_setToggleChecked=new WeakMap,_ToggleGroup_setToggleDisabled=new WeakMap,ToggleGroup.styles=[styles$3()],window.customElements.define("m-toggle-group",ToggleGroup);class Toggle extends s$7{static get properties(){return{checked:{type:Boolean},disabled:{type:Boolean,reflect:!0},role:{type:String,reflect:!0},value:{type:String,reflect:!0}}}constructor(){super(),_Toggle_instances.add(this),_Toggle_handleClick.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("m-toggle",t))})),_Toggle_setDisabled.set(this,(()=>{this.setAttribute("aria-disabled",String(this.disabled??!1))})),_Toggle_setChecked.set(this,(()=>{this.setAttribute("aria-checked",String(this.checked??!1))})),this.disabled=!1,this.checked=!1}connectedCallback(){super.connectedCallback(),this.addEventListener("click",__classPrivateFieldGet$1(this,_Toggle_handleClick,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",__classPrivateFieldGet$1(this,_Toggle_handleClick,"f"))}updated(t){super.updated(t),t.has("disabled")&&__classPrivateFieldGet$1(this,_Toggle_setDisabled,"f").call(this),t.has("checked")&&__classPrivateFieldGet$1(this,_Toggle_setChecked,"f").call(this)}render(){return x`
|
|
4124
4194
|
<button
|
|
4125
4195
|
type="button"
|
|
4126
4196
|
class=${o$2({button:!0,toggle:!0})}
|
|
@@ -4134,7 +4204,7 @@ ${this.value}</textarea
|
|
|
4134
4204
|
|
|
4135
4205
|
<slot></slot>
|
|
4136
4206
|
</button>
|
|
4137
|
-
`}focus(t){__classPrivateFieldGet(this,_Toggle_instances,"a",_Toggle_button_get)?.focus(t)}}function trim(t){return t.trim()}function convertTriggerFromAttribute(t){return t?String(t).split(/[\s,]+/).map(trim).filter(Boolean):["hover"]}function styles$1(){return[styles$m({floatingSelector:"#floating"}),i$
|
|
4207
|
+
`}focus(t){__classPrivateFieldGet$1(this,_Toggle_instances,"a",_Toggle_button_get)?.focus(t)}}function trim(t){return t.trim()}function convertTriggerFromAttribute(t){return t?String(t).split(/[\s,]+/).map(trim).filter(Boolean):["hover"]}function styles$1(){return[styles$m({floatingSelector:"#floating"}),i$5`
|
|
4138
4208
|
:host {
|
|
4139
4209
|
--m-popover-width: max-content;
|
|
4140
4210
|
--m-popover-min-width: 80px;
|
|
@@ -4143,8 +4213,10 @@ ${this.value}</textarea
|
|
|
4143
4213
|
|
|
4144
4214
|
display: inline-flex;
|
|
4145
4215
|
align-items: center;
|
|
4216
|
+
|
|
4217
|
+
max-width: 100%;
|
|
4146
4218
|
}
|
|
4147
|
-
`]}_Toggle_handleClick=new WeakMap,_Toggle_setDisabled=new WeakMap,_Toggle_setChecked=new WeakMap,_Toggle_instances=new WeakSet,_Toggle_button_get=function(){return this.renderRoot?.querySelector("button")??null},Toggle.styles=[styles$2()],window.customElements.define("m-toggle",Toggle);class Tooltip extends Popover{static get properties(){return{...Popover.properties,trigger:{type:String,converter:{fromAttribute:convertTriggerFromAttribute}}}}constructor(){super(),_Tooltip_hoverTimeout.set(this,void 0),_Tooltip_focusTimeout.set(this,void 0),_Tooltip_handleFocus.set(this,(()=>{__classPrivateFieldGet(this,_Tooltip_hasTrigger,"f").call(this,"focus")&&(clearTimeout(__classPrivateFieldGet(this,_Tooltip_focusTimeout,"f")),__classPrivateFieldSet(this,_Tooltip_focusTimeout,window.setTimeout((()=>this.show()),450),"f"))})),_Tooltip_handleBlur.set(this,(()=>{__classPrivateFieldGet(this,_Tooltip_hasTrigger,"f").call(this,"focus")&&(clearTimeout(__classPrivateFieldGet(this,_Tooltip_focusTimeout,"f")),__classPrivateFieldSet(this,_Tooltip_focusTimeout,window.setTimeout((()=>this.hide()),450),"f"))})),_Tooltip_handleClick.set(this,(()=>{__classPrivateFieldGet(this,_Tooltip_hasTrigger,"f").call(this,"click")&&this.toggle()})),_Tooltip_handleKeyDown.set(this,(t=>{this.open&&"Escape"===t.key&&(t.stopPropagation(),this.hide())})),_Tooltip_handleMouseOver.set(this,(()=>{__classPrivateFieldGet(this,_Tooltip_hasTrigger,"f").call(this,"hover")&&(clearTimeout(__classPrivateFieldGet(this,_Tooltip_hoverTimeout,"f")),__classPrivateFieldSet(this,_Tooltip_hoverTimeout,window.setTimeout((()=>this.show()),450),"f"))})),_Tooltip_handleMouseOut.set(this,(()=>{__classPrivateFieldGet(this,_Tooltip_hasTrigger,"f").call(this,"hover")&&(clearTimeout(__classPrivateFieldGet(this,_Tooltip_hoverTimeout,"f")),__classPrivateFieldSet(this,_Tooltip_hoverTimeout,window.setTimeout((()=>this.hide()),450),"f"))})),_Tooltip_hasTrigger.set(this,(t=>this.trigger.includes(t))),this.position="fixed",this.placement="top-start",this.trigger=["hover","focus"]}connectedCallback(){super.connectedCallback(),this.addEventListener("blur",__classPrivateFieldGet(this,_Tooltip_handleBlur,"f"),!0),this.addEventListener("click",__classPrivateFieldGet(this,_Tooltip_handleClick,"f")),this.addEventListener("focus",__classPrivateFieldGet(this,_Tooltip_handleFocus,"f"),!0),this.addEventListener("keydown",__classPrivateFieldGet(this,_Tooltip_handleKeyDown,"f")),this.addEventListener("mouseout",__classPrivateFieldGet(this,_Tooltip_handleMouseOut,"f")),this.addEventListener("mouseover",__classPrivateFieldGet(this,_Tooltip_handleMouseOver,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("blur",__classPrivateFieldGet(this,_Tooltip_handleBlur,"f"),!0),this.removeEventListener("focus",__classPrivateFieldGet(this,_Tooltip_handleFocus,"f"),!0),this.removeEventListener("click",__classPrivateFieldGet(this,_Tooltip_handleClick,"f")),this.removeEventListener("keydown",__classPrivateFieldGet(this,_Tooltip_handleKeyDown,"f")),this.removeEventListener("mouseover",__classPrivateFieldGet(this,_Tooltip_handleMouseOver,"f")),this.removeEventListener("mouseout",__classPrivateFieldGet(this,_Tooltip_handleMouseOut,"f"))}getReferenceElement(){const t=this.shadowRoot.querySelector('slot[name="reference"]'),[e]=t.assignedElements({flatten:!0});return e}getFloatingElement(){return this.shadowRoot.querySelector("#floating")}getArrowElement(){return this.shadowRoot.querySelector("#arrow")}render(){return x`
|
|
4219
|
+
`]}_Toggle_handleClick=new WeakMap,_Toggle_setDisabled=new WeakMap,_Toggle_setChecked=new WeakMap,_Toggle_instances=new WeakSet,_Toggle_button_get=function(){return this.renderRoot?.querySelector("button")??null},Toggle.styles=[styles$2()],window.customElements.define("m-toggle",Toggle);class Tooltip extends Popover{static get properties(){return{...Popover.properties,trigger:{type:String,converter:{fromAttribute:convertTriggerFromAttribute}}}}constructor(){super(),_Tooltip_hoverTimeout.set(this,void 0),_Tooltip_focusTimeout.set(this,void 0),_Tooltip_handleFocus.set(this,(()=>{__classPrivateFieldGet$1(this,_Tooltip_hasTrigger,"f").call(this,"focus")&&(clearTimeout(__classPrivateFieldGet$1(this,_Tooltip_focusTimeout,"f")),__classPrivateFieldSet(this,_Tooltip_focusTimeout,window.setTimeout((()=>this.show()),450),"f"))})),_Tooltip_handleBlur.set(this,(()=>{__classPrivateFieldGet$1(this,_Tooltip_hasTrigger,"f").call(this,"focus")&&(clearTimeout(__classPrivateFieldGet$1(this,_Tooltip_focusTimeout,"f")),__classPrivateFieldSet(this,_Tooltip_focusTimeout,window.setTimeout((()=>this.hide()),450),"f"))})),_Tooltip_handleClick.set(this,(()=>{__classPrivateFieldGet$1(this,_Tooltip_hasTrigger,"f").call(this,"click")&&this.toggle()})),_Tooltip_handleKeyDown.set(this,(t=>{this.open&&"Escape"===t.key&&(t.stopPropagation(),this.hide())})),_Tooltip_handleMouseOver.set(this,(()=>{__classPrivateFieldGet$1(this,_Tooltip_hasTrigger,"f").call(this,"hover")&&(clearTimeout(__classPrivateFieldGet$1(this,_Tooltip_hoverTimeout,"f")),__classPrivateFieldSet(this,_Tooltip_hoverTimeout,window.setTimeout((()=>this.show()),450),"f"))})),_Tooltip_handleMouseOut.set(this,(()=>{__classPrivateFieldGet$1(this,_Tooltip_hasTrigger,"f").call(this,"hover")&&(clearTimeout(__classPrivateFieldGet$1(this,_Tooltip_hoverTimeout,"f")),__classPrivateFieldSet(this,_Tooltip_hoverTimeout,window.setTimeout((()=>this.hide()),450),"f"))})),_Tooltip_hasTrigger.set(this,(t=>this.trigger.includes(t))),this.position="fixed",this.placement="top-start",this.trigger=["hover","focus"]}connectedCallback(){super.connectedCallback(),this.addEventListener("blur",__classPrivateFieldGet$1(this,_Tooltip_handleBlur,"f"),!0),this.addEventListener("click",__classPrivateFieldGet$1(this,_Tooltip_handleClick,"f")),this.addEventListener("focus",__classPrivateFieldGet$1(this,_Tooltip_handleFocus,"f"),!0),this.addEventListener("keydown",__classPrivateFieldGet$1(this,_Tooltip_handleKeyDown,"f")),this.addEventListener("mouseout",__classPrivateFieldGet$1(this,_Tooltip_handleMouseOut,"f")),this.addEventListener("mouseover",__classPrivateFieldGet$1(this,_Tooltip_handleMouseOver,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("blur",__classPrivateFieldGet$1(this,_Tooltip_handleBlur,"f"),!0),this.removeEventListener("focus",__classPrivateFieldGet$1(this,_Tooltip_handleFocus,"f"),!0),this.removeEventListener("click",__classPrivateFieldGet$1(this,_Tooltip_handleClick,"f")),this.removeEventListener("keydown",__classPrivateFieldGet$1(this,_Tooltip_handleKeyDown,"f")),this.removeEventListener("mouseover",__classPrivateFieldGet$1(this,_Tooltip_handleMouseOver,"f")),this.removeEventListener("mouseout",__classPrivateFieldGet$1(this,_Tooltip_handleMouseOut,"f"))}getReferenceElement(){const t=this.shadowRoot.querySelector('slot[name="reference"]'),[e]=t.assignedElements({flatten:!0});return e}getFloatingElement(){return this.shadowRoot.querySelector("#floating")}getArrowElement(){return this.shadowRoot.querySelector("#arrow")}render(){return x`
|
|
4148
4220
|
<slot name="reference" aria-describedby="floating"></slot>
|
|
4149
4221
|
<div
|
|
4150
4222
|
id="floating"
|
|
@@ -4154,7 +4226,7 @@ ${this.value}</textarea
|
|
|
4154
4226
|
${this.renderArrow()}
|
|
4155
4227
|
<slot name="floating" aria-hidden="true"></slot>
|
|
4156
4228
|
</div>
|
|
4157
|
-
`}}_Tooltip_hoverTimeout=new WeakMap,_Tooltip_focusTimeout=new WeakMap,_Tooltip_handleFocus=new WeakMap,_Tooltip_handleBlur=new WeakMap,_Tooltip_handleClick=new WeakMap,_Tooltip_handleKeyDown=new WeakMap,_Tooltip_handleMouseOver=new WeakMap,_Tooltip_handleMouseOut=new WeakMap,_Tooltip_hasTrigger=new WeakMap,Tooltip.styles=[styles$1()],window.customElements.define("m-tooltip",Tooltip);const TOOLTIP_PLACEMENT_VALUES=POPOVER_PLACEMENT_VALUES;function styles(){return i$
|
|
4229
|
+
`}}_Tooltip_hoverTimeout=new WeakMap,_Tooltip_focusTimeout=new WeakMap,_Tooltip_handleFocus=new WeakMap,_Tooltip_handleBlur=new WeakMap,_Tooltip_handleClick=new WeakMap,_Tooltip_handleKeyDown=new WeakMap,_Tooltip_handleMouseOver=new WeakMap,_Tooltip_handleMouseOut=new WeakMap,_Tooltip_hasTrigger=new WeakMap,Tooltip.styles=[styles$1()],window.customElements.define("m-tooltip",Tooltip);const TOOLTIP_PLACEMENT_VALUES=POPOVER_PLACEMENT_VALUES;function styles(){return i$5`
|
|
4158
4230
|
:host {
|
|
4159
4231
|
inline-size: var(--m-logo-size);
|
|
4160
4232
|
block-size: var(--m-logo-size);
|
|
@@ -4164,5 +4236,5 @@ ${this.value}</textarea
|
|
|
4164
4236
|
:host linearGradient {
|
|
4165
4237
|
transform-origin: center;
|
|
4166
4238
|
}
|
|
4167
|
-
`}var _LogoLoader_instances,_LogoLoader_getSize;const DEFAULT_SIZE="48";class LogoLoader extends s$
|
|
4168
|
-
//# sourceMappingURL=index-
|
|
4239
|
+
`}var _LogoLoader_instances,_LogoLoader_getSize;const DEFAULT_SIZE="48";class LogoLoader extends s$7{constructor(){super(...arguments),_LogoLoader_instances.add(this)}static get properties(){return{size:{type:String,reflect:!0}}}connectedCallback(){super.connectedCallback(),this.style.setProperty("--m-logo-size",__classPrivateFieldGet$1(this,_LogoLoader_instances,"m",_LogoLoader_getSize).call(this))}update(t){super.update(t),t.has("size")&&this.style.setProperty("--m-logo-size",__classPrivateFieldGet$1(this,_LogoLoader_instances,"m",_LogoLoader_getSize).call(this))}render(){return b$1`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 49 48"><g opacity=".7"><mask id="a" width="49" height="16" x="0" y="32" maskUnits="userSpaceOnUse" style="mask-type:alpha"><path fill="#D9D9D9" d="M32.1364 48H.5l15.1072-15.2727H48.5L33.4266 47.317c-.3323.3324-.818.683-1.2902.683Z"/></mask><g mask="url(#a)"><path fill="url(#b)" d="M-10.4091-10.9091h69.8182v69.8182h-69.8182z"/></g></g><mask id="c" width="32" height="17" x="17" y="0" maskUnits="userSpaceOnUse" style="mask-type:alpha"><path fill="#D9D9D9" d="M17.9546 16.3636V0H48.5L33.2273 16.3636H17.9546Z"/></mask><g mask="url(#c)"><path fill="url(#d)" d="M-10.4091-10.9091h69.8182v69.8182h-69.8182z"/></g><g opacity=".7"><mask id="e" width="16" height="31" x="33" y="0" maskUnits="userSpaceOnUse" style="mask-type:alpha"><path fill="#D9D9D9" d="M48.5 30.5455H33.2273V16.3637L48.5 0v30.5455Z"/></mask><g mask="url(#e)"><path fill="url(#f)" d="M-10.4091-10.9091h69.8182v69.8182h-69.8182z"/></g></g><mask id="g" width="16" height="48" x="0" y="0" maskUnits="userSpaceOnUse" style="mask-type:alpha"><path fill="#D9D9D9" d="M15.7727 0v32.7273L.5 48V16.94c0-.4722.18803-.9226.52036-1.2571L15.7727 0Z"/></mask><g mask="url(#g)"><path fill="url(#h)" d="M-10.4091-10.9091h69.8182v69.8182h-69.8182z"/></g><defs><linearGradient id="b" x1="3.56649" x2="53.8665" y1="50.4164" y2=".131295" gradientUnits="userSpaceOnUse"><stop offset=".1" stop-color="#00D7D7"/><stop offset="1" stop-color="#84F11E"/><animateTransform attributeName="gradientTransform" dur="0.8s" repeatCount="indefinite" type="rotate" values="0; 360"/></linearGradient><linearGradient id="d" x1="3.56649" x2="53.8665" y1="50.4164" y2=".131295" gradientUnits="userSpaceOnUse"><stop offset=".1" stop-color="#00D7D7"/><stop offset="1" stop-color="#84F11E"/><animateTransform attributeName="gradientTransform" dur="0.8s" repeatCount="indefinite" type="rotate" values="0; 360"/></linearGradient><linearGradient id="f" x1="3.56649" x2="53.8665" y1="50.4164" y2=".131295" gradientUnits="userSpaceOnUse"><stop offset=".1" stop-color="#00D7D7"/><stop offset="1" stop-color="#84F11E"/><animateTransform attributeName="gradientTransform" dur="0.8s" repeatCount="indefinite" type="rotate" values="0; 360"/></linearGradient><linearGradient id="h" x1="3.56649" x2="53.8665" y1="50.4164" y2=".131295" gradientUnits="userSpaceOnUse"><stop offset=".1" stop-color="#00D7D7"/><stop offset="1" stop-color="#84F11E"/><animateTransform attributeName="gradientTransform" dur="0.8s" repeatCount="indefinite" type="rotate" values="0; 360"/></linearGradient></defs></svg>`}}_LogoLoader_instances=new WeakSet,_LogoLoader_getSize=function(){const t=parseInt(this.size??"48",10);return Number.isNaN(t)?"48px":`${t||"48"}px`},LogoLoader.styles=[styles()],window.customElements.define("m-logo-loader",LogoLoader);export{EmptyStateHeader as $,Accordion as A,BackButton as B,Card as C,Dialog as D,DialogActionPrimary as E,DialogActionSecondary as F,DialogActionTertiary as G,DialogActions as H,DialogBody as I,DialogClose as J,DialogFooter as K,DialogHeader as L,Divider as M,Drawer as N,DRAWER_SIZES as O,DrawerActionPrimary as P,DrawerActionSecondary as Q,DrawerActionTertiary as R,DrawerActions as S,DrawerBody as T,DrawerClose as U,DrawerHeader as V,Dropdown as W,DropdownTrigger as X,DropdownMenu as Y,DropdownItem as Z,EmptyStateAction as _,AccordionTitle as a,Tag as a$,EmptyStateIllustration as a0,EmptyStateMessage as a1,EmptyState as a2,EMPTY_STATE_VARIANTS as a3,Field as a4,FieldHint as a5,FieldLabel as a6,FIELD_STATUSES as a7,Header as a8,HeaderActions as a9,PageContent as aA,Pagination as aB,ProgressBar as aC,ProgressBarCountdown as aD,Radio as aE,RadioGroup as aF,Section as aG,SectionTitle as aH,SpinnerWheel as aI,Steps as aJ,Step as aK,Switch as aL,Table as aM,defaultTableProps as aN,TableHead as aO,TableHeadCell as aP,defaultTableHeadCellProps as aQ,TableBody as aR,TableFoot as aS,TableRow as aT,TableCell as aU,defaultTableCellProps as aV,TableToolbar as aW,TableFeedback as aX,Tabs as aY,Tab as aZ,TabPanel as a_,HeaderContent as aa,HeaderTitle as ab,SubHeader as ac,Label as ad,defaultLabeledValueProps as ae,LabeledValue as af,LabeledValueLabel as ag,LabeledValueValue as ah,ALIGN_ITEMS_VALUES as ai,JUSTIFY_CONTENT_VALUES as aj,Box as ak,defaultBoxProps as al,Group as am,defaultGroupProps as an,Stack as ao,defaultStackProps as ap,Grid as aq,defaultGridProps as ar,Sidebar as as,defaultSidebarProps as at,Switcher as au,defaultSwitcherProps as av,Container as aw,Row as ax,Column as ay,Link as az,b,ActionableTag as b0,Text as b1,TextArea as b2,TextField as b3,Timeline as b4,TimelineExpandableItem as b5,TimelineItem as b6,TimelineItemBody as b7,TimelineItemFooter as b8,TimelineItemHeader as b9,TimelineItemHeaderSubtitle as ba,TimelineItemHeaderTitle as bb,TimelineItemIcon as bc,ToggleGroup as bd,Toggle as be,Tooltip as bf,TOOLTIP_PLACEMENT_VALUES as bg,LogoLoader as bh,AccordionContent as c,Badge as d,BannerActionPrimary as e,BannerActionSecondary as f,BannerActions as g,BannerDescription as h,BannerIcon as i,BannerTitle as j,Banner as k,Body as l,Button as m,CardBody as n,CardSubtitle as o,CardTitle as p,CardDivider as q,CardFooter as r,CardActionPrimary as s,typographyVariants as t,CardActionSecondary as u,CardActionTertiary as v,Checkbox as w,CloseButton as x,DIALOG_SIZES as y,DIALOG_VARIANTS as z};
|
|
4240
|
+
//# sourceMappingURL=index-D_d7uHpr.js.map
|