@loadsmart/miranda-wc 1.44.0 → 1.44.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/attention-7436a038.js +2 -0
- package/dist/attention-7436a038.js.map +1 -0
- package/dist/bell-0669d042.js +2 -0
- package/dist/bell-0669d042.js.map +1 -0
- package/dist/check-9e5a315f.js +2 -0
- package/dist/check-9e5a315f.js.map +1 -0
- package/dist/close-f1ebc794.js +2 -0
- package/dist/close-f1ebc794.js.map +1 -0
- package/dist/indeterminate-0deac3e1.js +2 -0
- package/dist/indeterminate-0deac3e1.js.map +1 -0
- package/dist/{index-4f516d31.js → index-7fc0d6ca.js} +114 -114
- package/dist/index-7fc0d6ca.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/info-circle-73f504db.js +2 -0
- package/dist/info-circle-73f504db.js.map +1 -0
- package/package.json +1 -1
- package/dist/attention-7fb9a32e.js +0 -2
- package/dist/attention-7fb9a32e.js.map +0 -1
- package/dist/bell-197c3fe6.js +0 -2
- package/dist/bell-197c3fe6.js.map +0 -1
- package/dist/check-102a5c66.js +0 -2
- package/dist/check-102a5c66.js.map +0 -1
- package/dist/close-4443ad31.js +0 -2
- package/dist/close-4443ad31.js.map +0 -1
- package/dist/indeterminate-a9e4d267.js +0 -2
- package/dist/indeterminate-a9e4d267.js.map +0 -1
- package/dist/index-4f516d31.js.map +0 -1
- package/dist/info-circle-c5681199.js +0 -2
- package/dist/info-circle-c5681199.js.map +0 -1
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
function t(t,e,i
|
|
1
|
+
function t(t,e,o,i){if("a"===o&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===o?i:"a"===o?i.call(t):i?i.value:e.get(t)}function e(t,e,o,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(t,o):r?r.value=o:e.set(t,o),o}
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
6
|
*/
|
|
7
|
-
var
|
|
7
|
+
var o;"function"==typeof SuppressedError&&SuppressedError;const i=window,r=i.trustedTypes,n=r?r.createPolicy("lit-html",{createHTML:t=>t}):void 0,s="$lit$",a=`lit$${(Math.random()+"").slice(9)}$`,l="?"+a,c=`<${l}>`,d=document,h=()=>d.createComment(""),u=t=>null===t||"object"!=typeof t&&"function"!=typeof t,p=Array.isArray,g="[ \t\n\f\r]",m=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,b=/-->/g,f=/>/g,y=RegExp(`>|${g}(?:([^\\s"'>=/]+)(${g}*=${g}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),v=/'/g,$=/"/g,w=/^(?:script|style|textarea|title)$/i,x=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),k=x(1),z=x(2),S=Symbol.for("lit-noChange"),C=Symbol.for("lit-nothing"),M=new WeakMap,W=d.createTreeWalker(d,129,null,!1);function A(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==n?n.createHTML(e):e}const j=(t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",l=m;for(let e=0;e<o;e++){const o=t[e];let d,h,u=-1,p=0;for(;p<o.length&&(l.lastIndex=p,h=l.exec(o),null!==h);)p=l.lastIndex,l===m?"!--"===h[1]?l=b:void 0!==h[1]?l=f:void 0!==h[2]?(w.test(h[2])&&(r=RegExp("</"+h[2],"g")),l=y):void 0!==h[3]&&(l=y):l===y?">"===h[0]?(l=null!=r?r:m,u=-1):void 0===h[1]?u=-2:(u=l.lastIndex-h[2].length,d=h[1],l=void 0===h[3]?y:'"'===h[3]?$:v):l===$||l===v?l=y:l===b||l===f?l=m:(l=y,r=void 0);const g=l===y&&t[e+1].startsWith("/>")?" ":"";n+=l===m?o+c:u>=0?(i.push(d),o.slice(0,u)+s+o.slice(u)+a+g):o+a+(-2===u?(i.push(void 0),e):g)}return[A(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};let B=class t{constructor({strings:e,_$litType$:o},i){let n;this.parts=[];let c=0,d=0;const u=e.length-1,p=this.parts,[g,m]=j(e,o);if(this.el=t.createElement(g,i),W.currentNode=this.el.content,2===o){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=W.nextNode())&&p.length<u;){if(1===n.nodeType){if(n.hasAttributes()){const t=[];for(const e of n.getAttributeNames())if(e.endsWith(s)||e.startsWith(a)){const o=m[d++];if(t.push(e),void 0!==o){const t=n.getAttribute(o.toLowerCase()+s).split(a),e=/([.?@])?(.*)/.exec(o);p.push({type:1,index:c,name:e[2],strings:t,ctor:"."===e[1]?_:"?"===e[1]?q:"@"===e[1]?D:T})}else p.push({type:6,index:c})}for(const e of t)n.removeAttribute(e)}if(w.test(n.tagName)){const t=n.textContent.split(a),e=t.length-1;if(e>0){n.textContent=r?r.emptyScript:"";for(let o=0;o<e;o++)n.append(t[o],h()),W.nextNode(),p.push({type:2,index:++c});n.append(t[e],h())}}}else if(8===n.nodeType)if(n.data===l)p.push({type:2,index:c});else{let t=-1;for(;-1!==(t=n.data.indexOf(a,t+1));)p.push({type:7,index:c}),t+=a.length-1}c++}}static createElement(t,e){const o=d.createElement("template");return o.innerHTML=t,o}};function E(t,e,o=t,i){var r,n,s,a;if(e===S)return e;let l=void 0!==i?null===(r=o._$Co)||void 0===r?void 0:r[i]:o._$Cl;const c=u(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,o,i)),void 0!==i?(null!==(s=(a=o)._$Co)&&void 0!==s?s:a._$Co=[])[i]=l:o._$Cl=l),void 0!==l&&(e=E(t,l._$AS(t,e.values),l,i)),e}class P{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:o},parts:i}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:d).importNode(o,!0);W.currentNode=r;let n=W.nextNode(),s=0,a=0,l=i[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new 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 U(n,this,t)),this._$AV.push(e),l=i[++a]}s!==(null==l?void 0:l.index)&&(n=W.nextNode(),s++)}return W.currentNode=d,r}v(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class R{constructor(t,e,o,i){var r;this.type=2,this._$AH=C,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cp=null===(r=null==i?void 0:i.isConnected)||void 0===r||r}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=E(this,t,e),u(t)?t===C||null==t||""===t?(this._$AH!==C&&this._$AR(),this._$AH=C):t!==this._$AH&&t!==S&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>p(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==C&&u(this._$AH)?this._$AA.nextSibling.data=t:this.$(d.createTextNode(t)),this._$AH=t}g(t){var e;const{values:o,_$litType$:i}=t,r="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=B.createElement(A(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 P(r,this),e=t.u(this.options);t.v(o),this.$(e),this._$AH=t}}_$AC(t){let e=M.get(t.strings);return void 0===e&&M.set(t.strings,e=new B(t)),e}T(t){p(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,i=0;for(const r of t)i===e.length?e.push(o=new R(this.k(h()),this.k(h()),this,this.options)):o=e[i],o._$AI(r),i++;i<e.length&&(this._$AR(o&&o._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var o;for(null===(o=this._$AP)||void 0===o||o.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class T{constructor(t,e,o,i,r){this.type=1,this._$AH=C,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=C}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=E(this,t,e,0),n=!u(t)||t!==this._$AH&&t!==S,n&&(this._$AH=t);else{const i=t;let s,a;for(t=r[0],s=0;s<r.length-1;s++)a=E(this,i[o+s],e,s),a===S&&(a=this._$AH[s]),n||(n=!u(a)||a!==this._$AH[s]),a===C?t=C:t!==C&&(t+=(null!=a?a:"")+r[s+1]),this._$AH[s]=a}n&&!i&&this.j(t)}j(t){t===C?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class _ extends T{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===C?void 0:t}}const O=r?r.emptyScript:"";class q extends T{constructor(){super(...arguments),this.type=4}j(t){t&&t!==C?this.element.setAttribute(this.name,O):this.element.removeAttribute(this.name)}}class D extends T{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=E(this,t,e,0))&&void 0!==o?o:C)===S)return;const i=this._$AH,r=t===C&&i!==C||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==C&&(i===C||r);r&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,o;"function"==typeof this._$AH?this._$AH.call(null!==(o=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==o?o:this.element,t):this._$AH.handleEvent(t)}}class U{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){E(this,t)}}const L=i.litHtmlPolyfillSupport;null==L||L(B,R),(null!==(o=i.litHtmlVersions)&&void 0!==o?o:i.litHtmlVersions=[]).push("2.7.5");const N=Symbol.for(""),F=t=>{if((null==t?void 0:t.r)===N)return null==t?void 0:t._$litStatic$},I=(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:N}),G=new Map,V=(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=F(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=G.get(t))&&(s.raw=s,G.set(t,e=s)),o=a}return t(e,...o)})(k),H=window,J=H.ShadowRoot&&(void 0===H.ShadyCSS||H.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,X=Symbol(),Y=new WeakMap;
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2020 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
|
-
*/let Z=class{constructor(t,e,
|
|
12
|
+
*/let Z=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==X)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(J&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=Y.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&Y.set(e,t))}return t}toString(){return this.cssText}};const K=t=>new Z("string"==typeof t?t:t+"",void 0,X),Q=(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 Z(o,t,X)},tt=J?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return K(e)})(t):t
|
|
13
13
|
/**
|
|
14
14
|
* @license
|
|
15
15
|
* Copyright 2017 Google LLC
|
|
16
16
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
|
-
*/;var et;const
|
|
17
|
+
*/;var et;const ot=window,it=ot.trustedTypes,rt=it?it.emptyScript:"",nt=ot.reactiveElementPolyfillSupport,st={toAttribute(t,e){switch(e){case Boolean:t=t?rt: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}},at=(t,e)=>e!==t&&(e==e||t==t),lt={attribute:!0,type:String,converter:st,reflect:!1,hasChanged:at},ct="finalized";class dt extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,o)=>{const i=this._$Ep(o,e);void 0!==i&&(this._$Ev.set(i,o),t.push(i))})),t}static createProperty(t,e=lt){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)||lt}static finalize(){if(this.hasOwnProperty(ct))return!1;this[ct]=!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(tt(t))}else void 0!==t&&e.push(tt(t));return e}static _$Ep(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,o;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(o=t.hostConnected)||void 0===o||o.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{J?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=H.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e,o=lt){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:st).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:st;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||at)(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){}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
21
21
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
22
|
*/
|
|
23
|
-
var ht,ut;dt[ct]=!0,dt.elementProperties=new Map,dt.elementStyles=[],dt.shadowRootOptions={mode:"open"},null==nt||nt({ReactiveElement:dt}),(null!==(et=
|
|
23
|
+
var ht,ut;dt[ct]=!0,dt.elementProperties=new Map,dt.elementStyles=[],dt.shadowRootOptions={mode:"open"},null==nt||nt({ReactiveElement:dt}),(null!==(et=ot.reactiveElementVersions)&&void 0!==et?et:ot.reactiveElementVersions=[]).push("1.6.2");let pt=class extends dt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const o=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=o.firstChild),o}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,o)=>{var i,r;const n=null!==(i=null==o?void 0:o.renderBefore)&&void 0!==i?i:e;let s=n._$litPart$;if(void 0===s){const t=null!==(r=null==o?void 0:o.renderBefore)&&void 0!==r?r:null;n._$litPart$=s=new R(e.insertBefore(h(),t),t,void 0,null!=o?o:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return S}};pt.finalized=!0,pt._$litElement$=!0,null===(ht=globalThis.litElementHydrateSupport)||void 0===ht||ht.call(globalThis,{LitElement:pt});const gt=globalThis.litElementPolyfillSupport;null==gt||gt({LitElement:pt}),(null!==(ut=globalThis.litElementVersions)&&void 0!==ut?ut:globalThis.litElementVersions=[]).push("3.3.2");
|
|
24
24
|
/**
|
|
25
25
|
* @license
|
|
26
26
|
* Copyright 2018 Google LLC
|
|
@@ -31,12 +31,12 @@ const mt=t=>null!=t?t:C
|
|
|
31
31
|
* @license
|
|
32
32
|
* Copyright 2017 Google LLC
|
|
33
33
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
34
|
-
*/,bt=1,ft=t=>(...e)=>({_$litDirective$:t,values:e});let yt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,
|
|
34
|
+
*/,bt=1,ft=t=>(...e)=>({_$litDirective$:t,values:e});let yt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
|
|
35
35
|
/**
|
|
36
36
|
* @license
|
|
37
37
|
* Copyright 2018 Google LLC
|
|
38
38
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
39
|
-
*/const vt=ft(class extends yt{constructor(t){var e;if(super(t),t.type!==bt||"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 i
|
|
39
|
+
*/const vt=ft(class extends yt{constructor(t){var e;if(super(t),t.type!==bt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var o,i;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(o=this.nt)||void 0===o?void 0:o.has(t))&&this.it.add(t);return this.render(e)}const r=t.element.classList;this.it.forEach((t=>{t in e||(r.remove(t),this.it.delete(t))}));for(const t in e){const o=!!e[t];o===this.it.has(t)||(null===(i=this.nt)||void 0===i?void 0:i.has(t))||(o?(r.add(t),this.it.add(t)):(r.remove(t),this.it.delete(t)))}return S}}),$t=(t,e=["article","div","span"],o="div")=>class extends t{static get properties(){return{as:{type:String}}}connectedCallback(){var t;super.connectedCallback(),this.as=null!==(t=e.includes(this.as)?this.as:o)&&void 0!==t?t:"div"}get tag(){return I`${(t=>({_$litStatic$:t,r:N}))(this.as)}`}};var wt,xt;class kt extends pt{constructor(){super(...arguments),wt.set(this,void 0),this.getForm=()=>t(this,wt,"f"),xt.set(this,(()=>{if(this.hasAttribute("form")){const t=this.getRootNode(),o=this.getAttribute("form");e(this,wt,t.getElementById(o),"f")}else e(this,wt,this.closest("form"),"f")}))}static get properties(){return{form:{type:String,reflect:!0}}}updated(e){super.updated(e),(e.has("form")||null==t(this,wt,"f"))&&t(this,xt,"f").call(this)}}function zt(t){return t&&t.i&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}wt=new WeakMap,xt=new WeakMap;var St,Ct,Mt,Wt={};Wt.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%","global-height-small":"1.75rem","global-height-default":"2.5rem","global-height-large":"3rem","opacity-0":"0%","opacity-20":"20%","opacity-40":"40%","opacity-60":"60%","opacity-100":"100%","elevation-1":"0px 0px 2px rgba(94, 118, 138, 0.1), 0px 1px 6px 2px rgba(61, 74, 85, 0.15)","elevation-2":"0px 1px 3px rgba(94, 118, 138, 0.2), 0px 4px 8px 3px rgba(61, 74, 85, 0.15)","elevation-3":"0px 0px 4px rgba(94, 118, 138, 0.2), 0px 6px 12px 6px rgba(61, 74, 85, 0.15)","elevation-4":"0px 5px 6px 4px rgba(94, 118, 138, 0.2), 0px 8px 10px rgba(61, 74, 85, 0.1)","glow-primary":"0.0px 0.0px 4.0px 0px rgb(3, 124, 94, .5)","glow-warning":"0.0px 0.0px 4.0px 0px rgba(255, 206, 79, 1.0)","spacing-1":"4px","spacing-2":"8px","spacing-3":"12px","spacing-4":"16px","spacing-5":"20px","spacing-6":"24px","spacing-8":"32px","spacing-10":"40px","spacing-12":"48px","spacing-14":"56px","spacing-16":"64px","spacing-20":"80px","spacing-30":"120px","spacing-0-5":"2px","platform-font-default":"'Manrope', sans-serif","platform-font-title":"'PlusJakartaSans', 'Manrope', sans-serif"};var At=Wt;function jt(t,e){return t.filter((function(t){return t.startsWith(e)}))}function Bt(t,e){return t.filter((function(t){return!t.startsWith(e)}))}"function"==typeof SuppressedError&&SuppressedError;var Et=Bt(Bt(Object.keys(At.LoadsmartTheme),"brand-"),"platform-");function Pt(t){return At.LoadsmartTheme[t]}function Rt(t){var e=Pt(t);return null==e?e:"--m-".concat(t)}function Tt(t,e){var o=Pt(t);return null==o?"":t.startsWith("color-")?"rgba(var(".concat(Rt(t),", ").concat(o,"), ").concat(null!=e?e:1,")"):"var(".concat(Rt(t),", ").concat(o,")")}function _t(t){return K(Ct(t))}function Ot(t,e=1){return K(Ct(t,e))}function qt(t){return K(`\n\t\tmargin-inline-start: ${t}\n\t`)}function Dt(t){return K(`\n\t\t${qt(t)};\n\t\t${function(t){return K(`\n\t\tmargin-inline-end: ${t}\n\t`)}(t)}\n\t`)}function Ut(t){return K(`\n\t\t${function(t){return K(`\n\t\tmargin-block-start: ${t}\n\t`)}(t)};\n\t\t${function(t){return K(`\n\t\tmargin-block-end: ${t}\n\t`)}(t)}\n\t`)}function Lt(t){return K(`\n\t\t${Dt(t)};\n\t\t${Ut(t)}\n\t`)}jt(Et,"color-background-"),jt(Et,"border-radius-"),jt(Et,"border-"),jt(Et,"color-"),jt(Et,"elevation-"),jt(Et,"font-family-"),jt(Et,"font-size-"),jt(Et,"font-weight-"),jt(Et,"global-"),jt(Et,"glow-"),jt(Et,"line-height-"),jt(Et,"opacity-"),function(t,e,o){if(o||2===arguments.length)for(var i,r=0,n=e.length;r<n;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);t.concat(i||Array.prototype.slice.call(e))}(["none"],jt(Et,"spacing-"),!0),Mt=Pt,Ct=Tt,St=function(t,e){var o,i=e?Tt(e):"";return t&&null!==(o="none"===t?"0":Tt(t))&&void 0!==o?o:i};var Nt=function(t){return null==t?[]:Array.isArray(t)?t:[t]},Ft=zt(Nt);const It={active:[":active"],disabled:[".is-disabled",":disabled"],focus:[".is-focused",":focus",":focus-visible",":focus-within"],hover:[":hover"],visited:[":visited"]};function Gt(t){return t.startsWith("not.")}function Vt(t){const e=Ft(t).filter((t=>""!==t.trim()));return 0===e.length?"":1===e.length?e[0]:`:is(${e.join(", ")})`}function Ht(t,e,o=" "){const i=[];let r=!1;const n=new Proxy(K(""),{get(s,a,l){return"cssText"===a?function(t,e,o,i){let r=Vt(t);for(const t of i)if(Gt(t)){const e=t.slice(4);r=`${r}:not(${It[e].join(", ")})`}else r=`${r}${Vt(It[t])}`;const n=Vt(e);if(n){let t=` ${o} `;return null==o&&(t="")," "===o&&(t=o),`${r}${t}${n}`}return r}(t,e,o,i):"not"===a?(r=!r,n):(c=a,Object.keys(It).includes(c)?(i.push(r?`not.${a}`:a),r=!1,n):Reflect.get(s,a,l));var c}});return n}function Jt(t){return K(`\n\t\t${function(t){return K(`\n\t\tpadding-inline-end: ${t}\n\t`)}(t)};\n\t\t${function(t){return K(`\n\t\tpadding-inline-start: ${t}\n\t`)}(t)}\n\t`)}function Xt(t){return K(`\n\t\t${function(t){return K(`\n\t\tpadding-block-start: ${t}\n\t`)}(t)};\n\t\t${function(t){return K(`\n\t\tpadding-block-end: ${t}\n\t`)}(t)}\n\t`)}function Yt(t){return K(`\n\t\t${Jt(t)};\n\t\t${Xt(t)}\n\t`)}function Zt(){return K("animation: skeleton-loading 1s linear infinite alternate;")}Zt.styles=()=>Q`
|
|
40
40
|
@keyframes skeleton-loading {
|
|
41
41
|
0% {
|
|
42
42
|
background-color: ${Ot("color-background-tertiary")};
|
|
@@ -152,7 +152,7 @@ const mt=t=>null!=t?t:C
|
|
|
152
152
|
slot[name='trailing']::slotted(span) {
|
|
153
153
|
justify-content: center;
|
|
154
154
|
}
|
|
155
|
-
`}var ie,
|
|
155
|
+
`}var oe,ie,re,ne,se,ae,le;class ce extends($t(kt,["button","a"],"button")){static get properties(){return{...kt.properties,role:{type:String,reflect:!0},loading:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},variant:{type:String,reflect:!0},size:{type:String,reflect:!0},tabindex:{type:String},type:{type:String},href:{type:String},target:{type:String},download:{type:String}}}constructor(){super(),oe.add(this),re.set(this,(()=>Boolean(this.disabled)||Boolean(this.loading))),ne.set(this,(()=>{const e=t(this,re,"f").call(this);this.setAttribute("aria-disabled",String(e))})),se.set(this,(()=>{var e;return t(this,oe,"m",le).call(this)?this.disabled?"-1":null!=this.tabindex?this.tabindex:"0":null!==(e=this.tabindex)&&void 0!==e?e:void 0})),ae.set(this,(t=>{var e,o;if(this.disabled||this.loading)return t.preventDefault(),void t.stopPropagation();"submit"===this.type&&(null===(e=this.getForm())||void 0===e||e.requestSubmit()),"reset"===this.type&&(null===(o=this.getForm())||void 0===o||o.reset())})),this.as="button",this.disabled=!1,this.loading=!1,this.size="default",this.type="button",this.variant="secondary",this.target="_self"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","button"),this.addEventListener("click",t(this,ae,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",t(this,ae,"f"))}update(e){super.update(e),e.has("href")&&(this.as=t(this,oe,"m",le).call(this)?"a":"button",this.role=t(this,oe,"m",le).call(this)?"link":"button")}updated(e){super.updated(e),(e.has("disabled")||e.has("loading"))&&t(this,ne,"f").call(this)}render(){const e=t(this,oe,"m",le).call(this);return V`
|
|
156
156
|
<${this.tag}
|
|
157
157
|
class=${vt({button:!0,"-primary":"primary"===this.variant,"-secondary":"secondary"===this.variant,"-tertiary":"tertiary"===this.variant,"-warning":"warning"===this.variant,"-danger":"danger"===this.variant,"-icon":"icon"===this.variant,"-icon-secondary":"icon-secondary"===this.variant,"-small":"small"===this.size,"-default":"default"===this.size,"-large":"large"===this.size,"is-loading":Boolean(this.loading),"is-disabled":t(this,re,"f").call(this)})}
|
|
158
158
|
type=${mt(e?void 0:this.type)}
|
|
@@ -171,7 +171,7 @@ const mt=t=>null!=t?t:C
|
|
|
171
171
|
<slot></slot>
|
|
172
172
|
<slot name="trailing"></slot>
|
|
173
173
|
</${this.tag}>
|
|
174
|
-
`}focus(e){var
|
|
174
|
+
`}focus(e){var o;null===(o=t(this,oe,"a",ie))||void 0===o||o.focus(e)}}re=new WeakMap,ne=new WeakMap,se=new WeakMap,ae=new WeakMap,oe=new WeakSet,ie=function(){var t,e;return null!==(e=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(".button"))&&void 0!==e?e:null},le=function(){return Boolean(this.href)},ce.styles=[[ee(),Q`
|
|
175
175
|
.button.is-loading:not(.-icon, .-icon-secondary) *:not(.loader) {
|
|
176
176
|
visibility: hidden;
|
|
177
177
|
}
|
|
@@ -437,7 +437,7 @@ const mt=t=>null!=t?t:C
|
|
|
437
437
|
${te("body-md-bold")};
|
|
438
438
|
color: ${Ot("color-text-secondary")};
|
|
439
439
|
}
|
|
440
|
-
`],window.customElements.define("m-banner-title",me);class be extends pt{constructor(){super(...arguments),this.emit=(t,e)=>{const
|
|
440
|
+
`],window.customElements.define("m-banner-title",me);class be extends pt{constructor(){super(...arguments),this.emit=(t,e)=>{const o=new CustomEvent(t,{bubbles:!0,cancelable:!0,composed:!0,...e});this.dispatchEvent(o)},this.reemit=t=>{!function(t,e){!e.bubbles||t.shadowRoot&&!e.composed||e.stopPropagation();const o=Reflect.construct(e.constructor,[e.type,e]),i=t.dispatchEvent(o);i||e.preventDefault()}(this,t)}}}var fe={BASE_PIXELS:16,toRem:function(t,e=16){return parseInt(String(t),10)/e+"rem"}},ye=zt(fe.toRem);function ve(t,e){return K(ye(t,e))}const $e=new Map([["alert-circle",()=>Promise.resolve().then((function(){return require("./attention-7436a038.js")}))],["attention",()=>Promise.resolve().then((function(){return require("./attention-7436a038.js")}))],["bell",()=>Promise.resolve().then((function(){return require("./bell-0669d042.js")}))],["check",()=>Promise.resolve().then((function(){return require("./check-9e5a315f.js")}))],["close",()=>Promise.resolve().then((function(){return require("./close-f1ebc794.js")}))],["indeterminate",()=>Promise.resolve().then((function(){return require("./indeterminate-0deac3e1.js")}))],["info-circle",()=>Promise.resolve().then((function(){return require("./info-circle-73f504db.js")}))]]);var we,xe,ke,ze;$e.keys();class Se extends be{static get properties(){return{name:{type:String},size:{type:String},color:{type:String},loading:{state:!0}}}constructor(){super(),this.icon=null,we.set(this,(async()=>{$e.has(this.name);try{this.icon=null;const{default:t}=await $e.get(this.name)();this.icon=t}catch{}finally{this.requestUpdate()}})),this.icon=null}connectedCallback(){super.connectedCallback(),t(this,we,"f").call(this)}update(e){super.update(e),e.has("name")&&t(this,we,"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",Ct(this.color))}render(){return null!=this.name&&$e.has(this.name)&&null!=this.icon?this.icon:C}}we=new WeakMap,Se.styles=[[Q`
|
|
441
441
|
:host {
|
|
442
442
|
--m-icon-size: 16px;
|
|
443
443
|
--m-icon-color: ${Ot("color-text-primary")};
|
|
@@ -470,7 +470,7 @@ const mt=t=>null!=t?t:C
|
|
|
470
470
|
>
|
|
471
471
|
<m-icon name="close"></m-icon>
|
|
472
472
|
</button>
|
|
473
|
-
`}focus(e){var
|
|
473
|
+
`}focus(e){var o;null===(o=t(this,xe,"a",ke))||void 0===o||o.focus(e)}}ze=new WeakMap,xe=new WeakSet,ke=function(){var t;return null!==(t=this.renderRoot.querySelector("button"))&&void 0!==t?t:null},Ce.styles=[Q`
|
|
474
474
|
:host {
|
|
475
475
|
--m-close-button-color: ${Ot("color-text-primary")};
|
|
476
476
|
--m-close-button-outline-color: ${Ot("color-primary-100")};
|
|
@@ -552,7 +552,7 @@ const mt=t=>null!=t?t:C
|
|
|
552
552
|
* Copyright 2018 Google LLC
|
|
553
553
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
554
554
|
*/
|
|
555
|
-
const Me="important",We=" !"+Me,Ae=ft(class extends yt{constructor(t){var e;if(super(t),t.type!==bt||"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,
|
|
555
|
+
const Me="important",We=" !"+Me,Ae=ft(class extends yt{constructor(t){var e;if(super(t),t.type!==bt||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,o)=>{const i=t[o];return null==i?e:e+`${o=o.includes("-")?o:o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`}),"")}update(t,[e]){const{style:o}=t.element;if(void 0===this.ut){this.ut=new Set;for(const t in e)this.ut.add(t);return this.render(e)}this.ut.forEach((t=>{null==e[t]&&(this.ut.delete(t),t.includes("-")?o.removeProperty(t):o[t]="")}));for(const t in e){const i=e[t];if(null!=i){this.ut.add(t);const e="string"==typeof i&&i.endsWith(We);t.includes("-")||e?o.setProperty(t,e?i.slice(0,-11):i,e?Me:""):o[t]=i}}return S}});class je extends($t(pt,["h1","h2","h3","h4","h5","h6","p","span"],"span")){static get properties(){return{color:{type:String},ellipsized:{type:Boolean,reflect:!0},variant:{type:String,reflect:!0}}}constructor(){super(),this.as="span",this.color="color-text-primary",this.ellipsized=!1,this.variant="body-md"}render(){return V`
|
|
556
556
|
<${this.tag}
|
|
557
557
|
class=${vt({"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)})}
|
|
558
558
|
style=${Ae({"--m-text-color":Ct(this.color)})}
|
|
@@ -711,7 +711,7 @@ const Me="important",We=" !"+Me,Ae=ft(class extends yt{constructor(t){var e;if(s
|
|
|
711
711
|
white-space: nowrap;
|
|
712
712
|
max-width: var(--m-text-max-width);
|
|
713
713
|
}
|
|
714
|
-
`],window.customElements.define("m-text",je);class
|
|
714
|
+
`],window.customElements.define("m-text",je);class Pe extends be{static get properties(){return{variant:{type:String},dismissible:{type:Boolean},dismissed:{type:Boolean,reflect:!0}}}constructor(){super(),Be.set(this,void 0),Ee.set(this,(()=>{this.dismissed=!0,this.emit("m-dismiss",{composed:!0})})),this.variant="neutral",this.dismissible=!1,this.dismissed=!1}get primaryAction(){return null==t(this,Be,"f")&&e(this,Be,this.querySelector("m-banner-action-primary"),"f"),t(this,Be,"f")}updated(t){super.updated(t),t.has("variant")&&null!=this.primaryAction&&(this.primaryAction.variant=function(t){switch(t){case"warning":return"warning";case"danger":return"danger";default:return"primary"}}(this.variant))}render(){if(this.dismissed)return C;const e=null!=this.querySelector("*[slot='description']"),o=null!=this.querySelector("*[slot='actions']"),i=k`
|
|
715
715
|
<m-close-button
|
|
716
716
|
id="close"
|
|
717
717
|
label="Dismiss"
|
|
@@ -729,11 +729,11 @@ const Me="important",We=" !"+Me,Ae=ft(class extends yt{constructor(t){var e;if(s
|
|
|
729
729
|
<slot name="title"></slot>
|
|
730
730
|
<slot name="description"></slot>
|
|
731
731
|
</div>
|
|
732
|
-
${this.dismissible&&!i
|
|
732
|
+
${this.dismissible&&!o?i:C}
|
|
733
733
|
</div>
|
|
734
734
|
<slot name="actions"></slot>
|
|
735
735
|
</div>
|
|
736
|
-
`}}Be=new WeakMap,Ee=new WeakMap,
|
|
736
|
+
`}}Be=new WeakMap,Ee=new WeakMap,Pe.styles=[Q`
|
|
737
737
|
:host {
|
|
738
738
|
display: block;
|
|
739
739
|
width: 100%;
|
|
@@ -803,7 +803,7 @@ const Me="important",We=" !"+Me,Ae=ft(class extends yt{constructor(t){var e;if(s
|
|
|
803
803
|
flex-grow: 1;
|
|
804
804
|
gap: ${_t("spacing-1")};
|
|
805
805
|
}
|
|
806
|
-
`],window.customElements.define("m-banner",
|
|
806
|
+
`],window.customElements.define("m-banner",Pe);class Re extends pt{static get properties(){return{flagged:{type:Boolean},flagColor:{type:String,attribute:"flag-color"}}}constructor(){super(),this.flagged=!1,this.flagColor="color-background-inverted"}render(){return k`
|
|
807
807
|
<div
|
|
808
808
|
class="m-card"
|
|
809
809
|
style="${Ae({"--m-card-flag-color":Ct(this.flagColor)})}"
|
|
@@ -816,7 +816,7 @@ const Me="important",We=" !"+Me,Ae=ft(class extends yt{constructor(t){var e;if(s
|
|
|
816
816
|
<slot name="body"></slot>
|
|
817
817
|
</div>
|
|
818
818
|
</div>
|
|
819
|
-
`}}
|
|
819
|
+
`}}Re.styles=[Q`
|
|
820
820
|
:host {
|
|
821
821
|
--m-card-background-color: ${Ot("color-background-primary")};
|
|
822
822
|
}
|
|
@@ -857,11 +857,11 @@ const Me="important",We=" !"+Me,Ae=ft(class extends yt{constructor(t){var e;if(s
|
|
|
857
857
|
::slotted(m-divider) {
|
|
858
858
|
--m-divider-margin-top: ${_t("spacing-4")};
|
|
859
859
|
}
|
|
860
|
-
`],window.customElements.define("m-card",
|
|
860
|
+
`],window.customElements.define("m-card",Re);class Te extends pt{static get properties(){return{slot:{type:String}}}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","body")}render(){return k`
|
|
861
861
|
<div class="m-card-body">
|
|
862
862
|
<slot></slot>
|
|
863
863
|
</div>
|
|
864
|
-
`}}
|
|
864
|
+
`}}Te.styles=[Q`
|
|
865
865
|
:host {
|
|
866
866
|
--m-card-body-padding-x: ${_t("spacing-4")};
|
|
867
867
|
--m-card-body-padding-y: ${_t("spacing-4")};
|
|
@@ -870,7 +870,7 @@ const Me="important",We=" !"+Me,Ae=ft(class extends yt{constructor(t){var e;if(s
|
|
|
870
870
|
.m-card-body {
|
|
871
871
|
padding: var(--m-card-body-padding-y) var(--m-card-body-padding-x);
|
|
872
872
|
}
|
|
873
|
-
`],window.customElements.define("m-card-body",
|
|
873
|
+
`],window.customElements.define("m-card-body",Te);class _e extends pt{static get properties(){return{slot:{type:String}}}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","subtitle")}render(){return k`
|
|
874
874
|
<div class="m-card-subtitle">
|
|
875
875
|
<slot></slot>
|
|
876
876
|
</div>
|
|
@@ -915,7 +915,7 @@ const Me="important",We=" !"+Me,Ae=ft(class extends yt{constructor(t){var e;if(s
|
|
|
915
915
|
pointer-events: none;
|
|
916
916
|
margin-inline-end: ${_t("spacing-1")};
|
|
917
917
|
}
|
|
918
|
-
`],window.customElements.define("m-card-title",Oe);class
|
|
918
|
+
`],window.customElements.define("m-card-title",Oe);class qe extends pt{render(){return k`<hr class="m-divider" />`}}qe.styles=[Q`
|
|
919
919
|
.m-divider {
|
|
920
920
|
border: 0;
|
|
921
921
|
border-block-end: solid 1px ${Ot("color-divider")};
|
|
@@ -928,11 +928,11 @@ const Me="important",We=" !"+Me,Ae=ft(class extends yt{constructor(t){var e;if(s
|
|
|
928
928
|
var(--m-divider-margin-y, 0)
|
|
929
929
|
);
|
|
930
930
|
}
|
|
931
|
-
`],window.customElements.define("m-divider",
|
|
931
|
+
`],window.customElements.define("m-divider",qe);class De extends qe{constructor(){super(),this.slot="divider"}}De.styles=[...qe.styles,Q`
|
|
932
932
|
:host {
|
|
933
933
|
--m-divider-margin-top: ${_t("spacing-4")};
|
|
934
934
|
}
|
|
935
|
-
`],
|
|
935
|
+
`],De.properties={slot:{attribute:!0,type:String,reflect:!0}},window.customElements.define("m-card-divider",De);const Ue={delay:"0s",duration:"0.35s",easing:"ease-in-out"};var Le,Ne,Fe;class Ie extends pt{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(),Le.add(this),Fe.set(this,(t=>{const e=t.target,o=new CustomEvent("m-change",{cancelable:!1,composed:!1,bubbles:!0,detail:{checked:e.checked,indeterminate:e.indeterminate}});this.dispatchEvent(o),this.checked=e.checked,this.indeterminate=e.indeterminate})),this.name=void 0,this.disabled=!1,this.checked=!1,this.indeterminate=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","checkbox")}disconnectedCallback(){super.connectedCallback()}firstUpdated(){this.input=this.renderRoot.querySelector("input"),this.label=this.renderRoot.querySelector("label")}updated(){t(this,Le,"m",Ne).call(this)}render(){return k`
|
|
936
936
|
<label for="${mt(this.id)}" class="check-input-label">
|
|
937
937
|
<input
|
|
938
938
|
id="${mt(this.id)}"
|
|
@@ -986,7 +986,7 @@ const Me="important",We=" !"+Me,Ae=ft(class extends yt{constructor(t){var e;if(s
|
|
|
986
986
|
flex-grow: 0;
|
|
987
987
|
flex-shrink: 0;
|
|
988
988
|
flex-basis: var(--checkbox-input-size);
|
|
989
|
-
${Qt([{property:"border",...
|
|
989
|
+
${Qt([{property:"border",...Ue},{property:"background",...Ue}])};
|
|
990
990
|
}
|
|
991
991
|
|
|
992
992
|
.check-input:indeterminate,
|
|
@@ -1046,7 +1046,7 @@ const Me="important",We=" !"+Me,Ae=ft(class extends yt{constructor(t){var e;if(s
|
|
|
1046
1046
|
* Copyright 2021 Google LLC
|
|
1047
1047
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1048
1048
|
*/
|
|
1049
|
-
let Ge=class extends Event{constructor(t,e,
|
|
1049
|
+
let Ge=class extends Event{constructor(t,e,o){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=e,this.subscribe=o}};
|
|
1050
1050
|
/**
|
|
1051
1051
|
* @license
|
|
1052
1052
|
* Copyright 2021 Google LLC
|
|
@@ -1057,23 +1057,23 @@ let Ge=class extends Event{constructor(t,e,i){super("context-request",{bubbles:!
|
|
|
1057
1057
|
* Copyright 2021 Google LLC
|
|
1058
1058
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1059
1059
|
*/
|
|
1060
|
-
let Ve=class{constructor(t,e,i
|
|
1060
|
+
let Ve=class{constructor(t,e,o,i){var r;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(t,e)=>{this.unsubscribe&&(this.unsubscribe!==e&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=t,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(t,e)),this.unsubscribe=e},this.host=t,void 0!==e.context){const t=e;this.context=t.context,this.callback=t.callback,this.subscribe=null!==(r=t.subscribe)&&void 0!==r&&r}else this.context=e,this.callback=o,this.subscribe=null!=i&&i;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Ge(this.context,this.t,this.subscribe))}},He=class{constructor(t){this.disposers=new Map,this.updateObservers=()=>{for(const[t,e]of this.disposers)t(this.o,e)},void 0!==t&&(this.value=t)}get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){const o=e||!Object.is(t,this.o);this.o=t,o&&this.updateObservers()}addCallback(t,e){if(e){this.disposers.has(t)||this.disposers.set(t,(()=>{this.disposers.delete(t)}));const e=this.disposers.get(t);t(this.value,e)}else t(this.value)}clearCallbacks(){this.disposers.clear()}},Je=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},Xe=class extends He{constructor(t,e,o){super(void 0!==e.context?e.initialValue:o),this.onContextRequest=t=>{t.context===this.context&&t.composedPath()[0]!==this.host&&(t.stopPropagation(),this.addCallback(t.callback,t.subscribe))},this.host=t,void 0!==e.context?this.context=e.context:this.context=e,this.attachListeners(),this.host.addController(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest)}hostConnected(){this.host.dispatchEvent(new Je(this.context))}};
|
|
1061
1061
|
/**
|
|
1062
1062
|
* @license
|
|
1063
1063
|
* Copyright 2021 Google LLC
|
|
1064
1064
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1065
|
-
*/var Ye=async function(t,e){const
|
|
1065
|
+
*/var Ye=async function(t,e){const o=t.getAnimations(e).map((({finished:t})=>t));await Promise.allSettled(o)};let Ze=!1;function Ke(){if(Ze)return;const t=new class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=t=>{const e=this.pendingContextRequests.get(t.context);if(void 0===e)return;this.pendingContextRequests.delete(t.context);const{requests:o}=e;for(const{elementRef:e,callbackRef:i}of o){const o=e.deref(),r=i.deref();void 0===o||void 0===r||o.dispatchEvent(new Ge(t.context,r,!0))}},this.onContextRequest=t=>{if(!0!==t.subscribe)return;const e=t.composedPath()[0],o=t.callback;let i=this.pendingContextRequests.get(t.context);void 0===i&&this.pendingContextRequests.set(t.context,i={callbacks:new WeakMap,requests:[]});let r=i.callbacks.get(e);void 0===r&&i.callbacks.set(e,r=new WeakSet),r.has(o)||(r.add(o),i.requests.push({elementRef:new WeakRef(e),callbackRef:new WeakRef(o)}))}}attach(t){t.addEventListener("context-request",this.onContextRequest),t.addEventListener("context-provider",this.onContextProvider)}detach(t){t.removeEventListener("context-request",this.onContextRequest),t.removeEventListener("context-provider",this.onContextProvider)}};t.attach(document.body),Ze=!0}const Qe=Symbol("dialog");var to,eo,oo,io,ro,no,so,ao;Ke();class lo extends be{static get properties(){return{open:{type:Boolean,reflect:!0},size:{type:String,reflect:!0},variant:{type:String,reflect:!0}}}constructor(){super(),to.add(this),eo.set(this,new Xe(this,Qe,{variant:"neutral"})),this.open=!1,this.size="small",this.variant="neutral"}render(){return k`
|
|
1066
1066
|
<dialog
|
|
1067
1067
|
class="${vt({"-size-small":"small"===this.size||!this.size,"-size-medium":"medium"===this.size,"-size-large":"large"===this.size,"-size-extra-large":"extra-large"===this.size})}"
|
|
1068
|
-
@click=${t(this,
|
|
1069
|
-
@cancel=${t(this,
|
|
1068
|
+
@click=${t(this,to,"m",so)}
|
|
1069
|
+
@cancel=${t(this,to,"m",ao)}
|
|
1070
1070
|
>
|
|
1071
1071
|
<slot name="header"></slot>
|
|
1072
1072
|
<slot name="body"></slot>
|
|
1073
1073
|
<slot name="footer"></slot>
|
|
1074
1074
|
<slot name="actions"></slot>
|
|
1075
1075
|
</dialog>
|
|
1076
|
-
`}updated(e){var
|
|
1076
|
+
`}updated(e){var o;super.updated(e),e.has("variant")&&t(this,eo,"f").setValue({variant:null!==(o=this.variant)&&void 0!==o?o:"neutral"}),e.has("open")&&t(this,to,"m",io).call(this,e.get("open"))}show(){this.open=!0}hide(){this.open=!1}}eo=new WeakMap,to=new WeakSet,oo=function(){var t;return null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector("dialog")},io=async function(e){const o=t(this,to,"a",oo);o&&(!e&&this.open?(this.style.display="block",t(this,to,"m",ro).call(this,"m-opening"),o.showModal(),await Ye(o),t(this,to,"m",ro).call(this,"m-opened")):e&&!this.open?(t(this,to,"m",ro).call(this,"m-closing"),o.classList.add("is-hiding"),await Ye(o),o.classList.remove("is-hiding"),o.close(),t(this,to,"m",ro).call(this,"m-closed"),this.style.display="none"):null!=e||this.open||(this.style.display="none"))},ro=function(t){this.emit(t,{cancelable:!1,bubbles:!1})},no=function(){this.open&&this.emit("m-close")},so=function(e){var o;const i=e.target instanceof HTMLDialogElement,r=null===(o=t(this,to,"a",oo))||void 0===o?void 0:o.getBoundingClientRect();if(i&&r){(e.clientY<r.top||e.clientY>r.bottom||e.clientX<r.left||e.clientX>r.right)&&(e.preventDefault(),e.stopPropagation(),t(this,to,"m",no).call(this))}},ao=function(e){e.preventDefault(),t(this,to,"m",no).call(this)},lo.styles=[Q`
|
|
1077
1077
|
:host {
|
|
1078
1078
|
--margin: ${_t("spacing-6")};
|
|
1079
1079
|
--padding: ${_t("spacing-6")};
|
|
@@ -1166,7 +1166,7 @@ let Ve=class{constructor(t,e,i,o){var r;if(this.subscribe=!1,this.provided=!1,th
|
|
|
1166
1166
|
opacity: 0;
|
|
1167
1167
|
}
|
|
1168
1168
|
}
|
|
1169
|
-
`],window.customElements.define("m-dialog",
|
|
1169
|
+
`],window.customElements.define("m-dialog",lo);var co,ho;class uo extends ce{constructor(){super(),co.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 Ve(this,Qe,t(this,co,"f"),!0)}}co=new WeakMap,window.customElements.define("m-dialog-action-primary",uo);class po extends ce{constructor(){super(),this.type="button",this.variant="secondary"}}window.customElements.define("m-dialog-action-secondary",po);class go extends ce{constructor(){super(),this.type="button",this.variant="tertiary"}}window.customElements.define("m-dialog-action-tertiary",go);class mo extends pt{constructor(){super(...arguments),ho.set(this,((t,e)=>{e?this.style.setProperty(t,St(e)):this.style.removeProperty(t)}))}static get properties(){return{padding:{type:String},paddingX:{type:String,attribute:"padding-x"},paddingY:{type:String,attribute:"padding-y"},paddingT:{type:String,attribute:"padding-t"},paddingB:{type:String,attribute:"padding-b"},paddingL:{type:String,attribute:"padding-l"},paddingR:{type:String,attribute:"padding-r"}}}getCSSPropertiesPrefix(){return"layout"}update(e){super.update(e);const o=this.getCSSPropertiesPrefix();e.has("padding")&&this.style.setProperty(`--m-${o}-padding`,St(this.padding)),e.has("paddingX")&&t(this,ho,"f").call(this,`--m-${o}-padding-x`,this.paddingX),e.has("paddingY")&&t(this,ho,"f").call(this,`--m-${o}-padding-y`,this.paddingY),e.has("paddingT")&&t(this,ho,"f").call(this,`--m-${o}-padding-t`,this.paddingT),e.has("paddingB")&&t(this,ho,"f").call(this,`--m-${o}-padding-b`,this.paddingB),e.has("paddingL")&&t(this,ho,"f").call(this,`--m-${o}-padding-l`,this.paddingL),e.has("paddingR")&&t(this,ho,"f").call(this,`--m-${o}-padding-r`,this.paddingR)}render(){return k`<slot></slot>`}}function bo(t){return Q`
|
|
1170
1170
|
:host {
|
|
1171
1171
|
/** reset layout custom properties to avoid inheritance */
|
|
1172
1172
|
--m-${K(t)}-padding-x: initial;
|
|
@@ -1206,11 +1206,11 @@ let Ve=class{constructor(t,e,i,o){var r;if(this.subscribe=!1,this.provided=!1,th
|
|
|
1206
1206
|
)
|
|
1207
1207
|
);
|
|
1208
1208
|
}
|
|
1209
|
-
`}
|
|
1209
|
+
`}ho=new WeakMap;const fo={gap:"spacing-4",align:"stretch",justify:"flex-start"};class yo extends mo{static get properties(){return{...super.properties,gap:{type:String},align:{type:String},justify:{type:String}}}constructor(){super(),this.gap=fo.gap,this.align=fo.align,this.justify=fo.justify}getCSSPropertiesPrefix(){return yo.CSSPropertiesPrefix}update(t){super.update(t),this.style.setProperty("--m-group-gap",St(this.gap,fo.gap)),this.style.setProperty("--m-group-align",this.align||fo.align),this.style.setProperty("--m-group-justify",this.justify||fo.justify)}render(){return k`<slot></slot>`}}yo.CSSPropertiesPrefix="group",yo.styles=[bo(yo.CSSPropertiesPrefix),Q`
|
|
1210
1210
|
:host {
|
|
1211
|
-
--m-group-gap: ${_t(
|
|
1212
|
-
--m-group-align: ${K(
|
|
1213
|
-
--m-group-justify: ${K(
|
|
1211
|
+
--m-group-gap: ${_t(fo.gap)};
|
|
1212
|
+
--m-group-align: ${K(fo.align)};
|
|
1213
|
+
--m-group-justify: ${K(fo.justify)};
|
|
1214
1214
|
|
|
1215
1215
|
display: flex;
|
|
1216
1216
|
flex-wrap: wrap;
|
|
@@ -1218,21 +1218,21 @@ let Ve=class{constructor(t,e,i,o){var r;if(this.subscribe=!1,this.provided=!1,th
|
|
|
1218
1218
|
align-items: var(--m-group-align);
|
|
1219
1219
|
justify-content: var(--m-group-justify);
|
|
1220
1220
|
}
|
|
1221
|
-
`],window.customElements.define("m-group",
|
|
1221
|
+
`],window.customElements.define("m-group",yo);class vo extends yo{constructor(){super(),this.align="center",this.gap="spacing-3",this.justify="flex-end"}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","actions")}}window.customElements.define("m-dialog-actions",vo);class $o extends pt{connectedCallback(){super.connectedCallback(),this.setAttribute("slot","body")}render(){return k`<slot></slot>`}}$o.styles=[Q`
|
|
1222
1222
|
:host {
|
|
1223
1223
|
overflow-y: auto;
|
|
1224
1224
|
overscroll-behavior: contain;
|
|
1225
1225
|
|
|
1226
1226
|
${te("body-md")};
|
|
1227
1227
|
}
|
|
1228
|
-
`],window.customElements.define("m-dialog-body"
|
|
1228
|
+
`],window.customElements.define("m-dialog-body",$o);class wo extends Ce{constructor(){super(),this.size="large"}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","close")}}window.customElements.define("m-dialog-close",wo);class xo extends pt{connectedCallback(){super.connectedCallback(),this.setAttribute("slot","footer")}render(){return k`<slot></slot>`}}window.customElements.define("m-dialog-footer",xo);const ko={padding:"spacing-4",borderRadius:"border-radius-s",borderWidth:"border-none",borderColor:"color-background-highlight",textAlign:"left"};class zo extends mo{static get properties(){return{...super.properties,backgroundColor:{type:String,attribute:"background-color"},borderRadius:{type:String,attribute:"border-radius"},borderWidth:{type:String,attribute:"border-width"},borderColor:{type:String,attribute:"border-color"},textAlign:{type:String,attribute:"text-align"}}}constructor(){super(),this.padding=ko.padding,this.borderRadius=ko.borderRadius,this.borderWidth=ko.borderWidth,this.borderColor=ko.borderColor,this.textAlign=ko.textAlign}getCSSPropertiesPrefix(){return zo.CSSPropertiesPrefix}update(t){var e,o,i,r;super.update(t),t.has("backgroundColor")&&this.style.setProperty("--m-box-background-color",null!==(e=this.backgroundColor&&Ct(this.backgroundColor))&&void 0!==e?e:"transparent"),t.has("borderRadius")&&this.style.setProperty("--m-box-border-radius",null!==(o=this.borderRadius&&Ct(this.borderRadius))&&void 0!==o?o:Ct(ko.borderRadius)),t.has("borderWidth")&&this.style.setProperty("--m-box-border-width",null!==(i=this.borderWidth&&Ct(this.borderWidth))&&void 0!==i?i:Ct(ko.borderWidth)),t.has("borderColor")&&this.style.setProperty("--m-box-border-color",null!==(r=this.borderColor&&Ct(this.borderColor))&&void 0!==r?r:Ct(ko.borderColor)),t.has("textAlign")&&this.style.setProperty("--m-box-text-align",this.textAlign||ko.textAlign)}render(){return k`<slot></slot>`}}zo.CSSPropertiesPrefix="box",zo.styles=[bo(zo.CSSPropertiesPrefix),Q`
|
|
1229
1229
|
:host {
|
|
1230
|
-
--m-box-padding: ${_t(
|
|
1230
|
+
--m-box-padding: ${_t(ko.padding)};
|
|
1231
1231
|
--m-box-background-color: transparent;
|
|
1232
|
-
--m-box-border-radius: ${_t(
|
|
1233
|
-
--m-box-border-width: ${_t(
|
|
1234
|
-
--m-box-border-color: ${Ot(
|
|
1235
|
-
--m-box-text-align: ${K(
|
|
1232
|
+
--m-box-border-radius: ${_t(ko.borderRadius)};
|
|
1233
|
+
--m-box-border-width: ${_t(ko.borderWidth)};
|
|
1234
|
+
--m-box-border-color: ${Ot(ko.borderColor)};
|
|
1235
|
+
--m-box-text-align: ${K(ko.textAlign)};
|
|
1236
1236
|
|
|
1237
1237
|
box-sizing: border-box;
|
|
1238
1238
|
|
|
@@ -1244,11 +1244,11 @@ let Ve=class{constructor(t,e,i,o){var r;if(this.subscribe=!1,this.provided=!1,th
|
|
|
1244
1244
|
text-align: var(--m-box-text-align);
|
|
1245
1245
|
display: block;
|
|
1246
1246
|
}
|
|
1247
|
-
`],window.customElements.define("m-box",
|
|
1247
|
+
`],window.customElements.define("m-box",zo);const So={gap:"spacing-4",align:"stretch",justify:"flex-start"};class Co extends mo{static get properties(){return{...super.properties,gap:{type:String},align:{type:String},justify:{type:String}}}constructor(){super(),this.gap=So.gap,this.align=So.align,this.justify=So.justify}getCSSPropertiesPrefix(){return Co.CSSPropertiesPrefix}update(t){super.update(t),this.style.setProperty("--m-stack-gap",St(this.gap,So.gap)),this.style.setProperty("--m-stack-align",this.align||So.align),this.style.setProperty("--m-stack-justify",this.justify||So.justify)}render(){return k`<slot></slot>`}}Co.CSSPropertiesPrefix="stack",Co.styles=[bo(Co.CSSPropertiesPrefix),Q`
|
|
1248
1248
|
:host {
|
|
1249
|
-
--m-stack-gap: ${_t(
|
|
1250
|
-
--m-stack-align: ${K(
|
|
1251
|
-
--m-stack-justify: ${K(
|
|
1249
|
+
--m-stack-gap: ${_t(So.gap)};
|
|
1250
|
+
--m-stack-align: ${K(So.align)};
|
|
1251
|
+
--m-stack-justify: ${K(So.justify)};
|
|
1252
1252
|
|
|
1253
1253
|
display: flex;
|
|
1254
1254
|
flex-direction: column;
|
|
@@ -1257,10 +1257,10 @@ let Ve=class{constructor(t,e,i,o){var r;if(this.subscribe=!1,this.provided=!1,th
|
|
|
1257
1257
|
align-items: var(--m-stack-align);
|
|
1258
1258
|
justify-content: var(--m-stack-justify);
|
|
1259
1259
|
}
|
|
1260
|
-
`],window.customElements.define("m-stack",
|
|
1260
|
+
`],window.customElements.define("m-stack",Co);const Mo={gap:"spacing-4",minColumnWidth:Mt("spacing-30")};class Wo extends mo{static get properties(){return{...super.properties,gap:{type:String},rowGap:{type:String,attribute:"row-gap"},columnGap:{type:String,attribute:"column-gap"},minColumnWidth:{type:String,attribute:"min-column-width"}}}constructor(){super(),this.gap=Mo.gap,this.minColumnWidth=Mo.minColumnWidth}getCSSPropertiesPrefix(){return Wo.CSSPropertiesPrefix}update(t){super.update(t),t.has("gap")&&this.style.setProperty("--m-grid-gap",St(this.gap,Mo.gap)),t.has("rowGap")&&(this.rowGap?this.style.setProperty("--m-grid-row-gap",St(this.rowGap)):this.style.removeProperty("--m-grid-row-gap")),t.has("columnGap")&&(this.columnGap?this.style.setProperty("--m-grid-column-gap",St(this.columnGap)):this.style.removeProperty("--m-grid-column-gap")),t.has("minColumnWidth")&&this.style.setProperty("--m-grid-min-column-width",this.minColumnWidth||Mo.minColumnWidth)}render(){return k`<slot></slot>`}}Wo.CSSPropertiesPrefix="grid",Wo.styles=[bo(Wo.CSSPropertiesPrefix),Q`
|
|
1261
1261
|
:host {
|
|
1262
|
-
--m-grid-gap: ${_t(
|
|
1263
|
-
--m-grid-min-column-width: ${K(
|
|
1262
|
+
--m-grid-gap: ${_t(Mo.gap)};
|
|
1263
|
+
--m-grid-min-column-width: ${K(Mo.minColumnWidth)};
|
|
1264
1264
|
|
|
1265
1265
|
display: grid;
|
|
1266
1266
|
|
|
@@ -1272,15 +1272,15 @@ let Ve=class{constructor(t,e,i,o){var r;if(this.subscribe=!1,this.provided=!1,th
|
|
|
1272
1272
|
minmax(min(var(--m-grid-min-column-width), 100%), 1fr)
|
|
1273
1273
|
);
|
|
1274
1274
|
}
|
|
1275
|
-
`],window.customElements.define("m-grid",
|
|
1275
|
+
`],window.customElements.define("m-grid",Wo);const Ao={gap:"spacing-4",sideWidth:"auto",minContentWidth:"50%",reversed:!1};function jo(t){return t?"row-reverse":"row"}class Bo extends mo{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=Ao.gap,this.sideWidth=Ao.sideWidth,this.minContentWidth=Ao.minContentWidth,this.reversed=Ao.reversed}getCSSPropertiesPrefix(){return Bo.CSSPropertiesPrefix}update(t){super.update(t),t.has("gap")&&this.style.setProperty("--m-sidebar-gap",St(this.gap,Ao.gap)),t.has("sideWidth")&&this.style.setProperty("--m-sidebar-side-width",this.sideWidth||Ao.sideWidth),t.has("minContentWidth")&&this.style.setProperty("--m-sidebar-min-content-width",this.minContentWidth||Ao.minContentWidth),t.has("reversed")&&this.style.setProperty("--m-sidebar-flex-direction",jo(this.reversed))}render(){return k`
|
|
1276
1276
|
<slot name="sidebar"></slot>
|
|
1277
1277
|
<slot name="content"></slot>
|
|
1278
|
-
`}}
|
|
1278
|
+
`}}Bo.CSSPropertiesPrefix="sidebar",Bo.styles=[bo(Bo.CSSPropertiesPrefix),Q`
|
|
1279
1279
|
:host {
|
|
1280
|
-
--m-sidebar-gap: ${_t(
|
|
1281
|
-
--m-sidebar-flex-direction: ${K(
|
|
1282
|
-
--m-sidebar-side-width: ${K(
|
|
1283
|
-
--m-sidebar-min-content-width: ${K(
|
|
1280
|
+
--m-sidebar-gap: ${_t(Ao.gap)};
|
|
1281
|
+
--m-sidebar-flex-direction: ${K(jo(Ao.reversed))};
|
|
1282
|
+
--m-sidebar-side-width: ${K(Ao.sideWidth)};
|
|
1283
|
+
--m-sidebar-min-content-width: ${K(Ao.minContentWidth)};
|
|
1284
1284
|
|
|
1285
1285
|
display: flex;
|
|
1286
1286
|
flex-wrap: wrap;
|
|
@@ -1299,7 +1299,7 @@ let Ve=class{constructor(t,e,i,o){var r;if(this.subscribe=!1,this.provided=!1,th
|
|
|
1299
1299
|
flex-grow: 999;
|
|
1300
1300
|
min-width: var(--m-sidebar-min-content-width);
|
|
1301
1301
|
}
|
|
1302
|
-
`],window.customElements.define("m-sidebar",
|
|
1302
|
+
`],window.customElements.define("m-sidebar",Bo);const Eo={gap:"spacing-4",threshold:"10rem"};class Po extends mo{static get properties(){return{...super.properties,gap:{type:String},rowGap:{type:String,attribute:"row-gap"},columnGap:{type:String,attribute:"column-gap"},threshold:{type:String},limit:{type:Number}}}constructor(){super(),this.gap=Eo.gap,this.threshold=Eo.threshold}getCSSPropertiesPrefix(){return Po.CSSPropertiesPrefix}update(t){super.update(t),t.has("gap")&&this.style.setProperty("--m-switcher-gap",St(this.gap,Eo.gap)),t.has("rowGap")&&(this.rowGap?this.style.setProperty("--m-switcher-row-gap",St(this.rowGap)):this.style.removeProperty("--m-switcher-row-gap")),t.has("columnGap")&&(this.columnGap?this.style.setProperty("--m-switcher-column-gap",St(this.columnGap)):this.style.removeProperty("--m-switcher-column-gap")),t.has("threshold")&&this.style.setProperty("--m-switcher-threshold",this.threshold||Eo.threshold)}render(){const t=this.limit?k`
|
|
1303
1303
|
<style>
|
|
1304
1304
|
::slotted(*:nth-last-child(n + ${this.limit+1})) {
|
|
1305
1305
|
flex-basis: 100%;
|
|
@@ -1311,10 +1311,10 @@ let Ve=class{constructor(t,e,i,o){var r;if(this.subscribe=!1,this.provided=!1,th
|
|
|
1311
1311
|
`:"";return k`
|
|
1312
1312
|
${t}
|
|
1313
1313
|
<slot></slot>
|
|
1314
|
-
`}}var
|
|
1314
|
+
`}}var Ro,To,_o;Po.CSSPropertiesPrefix="switcher",Po.styles=[bo(Po.CSSPropertiesPrefix),Q`
|
|
1315
1315
|
:host {
|
|
1316
|
-
--m-switcher-gap: ${_t(
|
|
1317
|
-
--m-switcher-threshold: ${K(
|
|
1316
|
+
--m-switcher-gap: ${_t(Eo.gap)};
|
|
1317
|
+
--m-switcher-threshold: ${K(Eo.threshold)};
|
|
1318
1318
|
|
|
1319
1319
|
display: flex;
|
|
1320
1320
|
flex-wrap: wrap;
|
|
@@ -1327,30 +1327,30 @@ let Ve=class{constructor(t,e,i,o){var r;if(this.subscribe=!1,this.provided=!1,th
|
|
|
1327
1327
|
flex-basis: calc((var(--m-switcher-threshold) - 100%) * 999);
|
|
1328
1328
|
flex-grow: 1;
|
|
1329
1329
|
}
|
|
1330
|
-
`],window.customElements.define("m-switcher",
|
|
1330
|
+
`],window.customElements.define("m-switcher",Po);class Oo extends be{constructor(){super(),Ro.add(this),To.set(this,void 0),e(this,To,new Ve(this,Qe,void 0,!0),"f")}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","header")}render(){return k`
|
|
1331
1331
|
<m-group gap="spacing-6" align="center">
|
|
1332
1332
|
<m-group gap="spacing-1" align="center" style="flex-grow: 1;">
|
|
1333
|
-
${t(this,
|
|
1333
|
+
${t(this,Ro,"a",_o)}
|
|
1334
1334
|
<h1><slot></slot></h1>
|
|
1335
1335
|
</m-group>
|
|
1336
1336
|
<slot name="close"></slot>
|
|
1337
1337
|
</m-group>
|
|
1338
|
-
`}}
|
|
1339
|
-
<m-icon name=${
|
|
1340
|
-
`},
|
|
1338
|
+
`}}To=new WeakMap,Ro=new WeakSet,_o=function(){const{value:e}=t(this,To,"f");let o,i;switch(null==e?void 0:e.variant){case"danger":o="attention",i="color-danger-60";break;case"warning":o="alert-circle",i="color-warning-60";break;case"success":o="check",i="color-success-60";break;default:return C}return k`
|
|
1339
|
+
<m-icon name=${o} color=${i} size="24" aria-hidden="true"></m-icon>
|
|
1340
|
+
`},Oo.styles=[Q`
|
|
1341
1341
|
h1 {
|
|
1342
1342
|
margin: 0;
|
|
1343
1343
|
padding: 0;
|
|
1344
1344
|
|
|
1345
1345
|
${te("heading-md-bold")};
|
|
1346
1346
|
}
|
|
1347
|
-
`],window.customElements.define("m-dialog-header",
|
|
1347
|
+
`],window.customElements.define("m-dialog-header",Oo);const qo="field";var Do,Uo,Lo,No,Fo;class Io extends be{static get properties(){return{status:{type:String},slot:{type:String}}}constructor(){super(),Do.add(this),this.field=new Ve(this,qo,void 0,!0),this.slot="hint"}render(){const e={"-status-default":"default"===t(this,Do,"m",Uo).call(this),"-status-danger":"danger"===t(this,Do,"m",Uo).call(this)};return k` <m-group
|
|
1348
1348
|
gap="spacing-0-5"
|
|
1349
1349
|
align="center"
|
|
1350
1350
|
class=${vt(e)}
|
|
1351
1351
|
>
|
|
1352
1352
|
<slot name="leading"
|
|
1353
|
-
>${"danger"===t(this,
|
|
1353
|
+
>${"danger"===t(this,Do,"m",Uo).call(this)?k`<m-icon
|
|
1354
1354
|
name="attention"
|
|
1355
1355
|
size="10"
|
|
1356
1356
|
color="color-danger-60"
|
|
@@ -1360,7 +1360,7 @@ let Ve=class{constructor(t,e,i,o){var r;if(this.subscribe=!1,this.provided=!1,th
|
|
|
1360
1360
|
class=${vt({hint:!0,...e})}
|
|
1361
1361
|
><slot></slot>
|
|
1362
1362
|
</span>
|
|
1363
|
-
</m-group>`}}
|
|
1363
|
+
</m-group>`}}Do=new WeakSet,Uo=function(){var t;return this.status||(null===(t=this.field.value)||void 0===t?void 0:t.status)},Io.styles=[[Q`
|
|
1364
1364
|
:host {
|
|
1365
1365
|
--m-field-hint-color: ${Ot("color-text-tertiary")};
|
|
1366
1366
|
}
|
|
@@ -1377,11 +1377,11 @@ let Ve=class{constructor(t,e,i,o){var r;if(this.subscribe=!1,this.provided=!1,th
|
|
|
1377
1377
|
${te("body-sm")};
|
|
1378
1378
|
color: var(--m-field-hint-color);
|
|
1379
1379
|
}
|
|
1380
|
-
`]],window.customElements.define("m-field-hint",
|
|
1381
|
-
class=${vt({label:!0,"-size-default":"default"===t(this,
|
|
1380
|
+
`]],window.customElements.define("m-field-hint",Io);class Go extends be{static get properties(){return{required:{type:Boolean},size:{type:String},slot:{type:String}}}constructor(){super(),Lo.add(this),this.field=new Ve(this,qo,void 0,!0),this.slot="hint"}render(){return k`<label
|
|
1381
|
+
class=${vt({label:!0,"-size-default":"default"===t(this,Lo,"m",No).call(this),"-size-small":"small"===t(this,Lo,"m",No).call(this)})}
|
|
1382
1382
|
><slot></slot>
|
|
1383
|
-
${t(this,
|
|
1384
|
-
</label>`}}
|
|
1383
|
+
${t(this,Lo,"m",Fo).call(this)?k`<span class="required">*</span>`:C}
|
|
1384
|
+
</label>`}}Lo=new WeakSet,No=function(){var t;return this.size||(null===(t=this.field.value)||void 0===t?void 0:t.size)},Fo=function(){var t;return null!=this.required?this.required:Boolean(null===(t=this.field.value)||void 0===t?void 0:t.required)},Go.styles=[[Q`
|
|
1385
1385
|
:host {
|
|
1386
1386
|
display: flex;
|
|
1387
1387
|
align-items: center;
|
|
@@ -1409,32 +1409,32 @@ let Ve=class{constructor(t,e,i,o){var r;if(this.subscribe=!1,this.provided=!1,th
|
|
|
1409
1409
|
|
|
1410
1410
|
content: '*';
|
|
1411
1411
|
|
|
1412
|
-
${
|
|
1412
|
+
${qt(_t("spacing-1"))};
|
|
1413
1413
|
}
|
|
1414
1414
|
|
|
1415
1415
|
.label.-size-small,
|
|
1416
1416
|
.label.-size-small .required {
|
|
1417
1417
|
${te("body-sm")};
|
|
1418
1418
|
}
|
|
1419
|
-
`]],window.customElements.define("m-field-label",
|
|
1419
|
+
`]],window.customElements.define("m-field-label",Go),Ke();class Vo extends be{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 Xe(this,qo,{required:!1,size:"default",status:"default"}),this.required=!1,this.status="default",this.size="default",this.align="stretch"}update(t){super.update(t),(t.has("required")||t.has("status")||t.has("size"))&&this.provider.setValue({required:this.required,status:this.status,size:this.size})}render(){return k`<m-stack gap="spacing-1" align="${this.align}">
|
|
1420
1420
|
${this.label?k`<m-field-label>${this.label}</m-field-label>`:k`<slot name="label"></slot>`}
|
|
1421
1421
|
|
|
1422
1422
|
<slot></slot>
|
|
1423
1423
|
|
|
1424
1424
|
${this.hint?k`<m-field-hint>${this.hint}</m-field-hint>`:k`<slot name="hint"></slot>`}
|
|
1425
|
-
</m-stack>`}}window.customElements.define("m-field",
|
|
1425
|
+
</m-stack>`}}window.customElements.define("m-field",Vo);var Ho,Jo,Xo,Yo,Zo;const Ko=/^javascript:/i;class Qo extends be{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(),Ho.add(this),this.size="default"}render(){return k`
|
|
1426
1426
|
<a
|
|
1427
|
-
class=${vt({"m-link":!0,"-small":"small"===this.size,"-default":"default"===this.size,"-large":"large"===this.size,"is-disabled":t(this,
|
|
1428
|
-
href=${mt(t(this,
|
|
1427
|
+
class=${vt({"m-link":!0,"-small":"small"===this.size,"-default":"default"===this.size,"-large":"large"===this.size,"is-disabled":t(this,Ho,"a",Jo)})}
|
|
1428
|
+
href=${mt(t(this,Ho,"a",Xo))}
|
|
1429
1429
|
target=${mt(this.target)}
|
|
1430
|
-
rel=${mt(t(this,
|
|
1430
|
+
rel=${mt(t(this,Ho,"a",Yo))}
|
|
1431
1431
|
download=${mt(this.download)}
|
|
1432
1432
|
ping=${mt(this.ping)}
|
|
1433
1433
|
referrerpolicy=${mt(this.referrerpolicy)}
|
|
1434
|
-
@click=${t(this,
|
|
1434
|
+
@click=${t(this,Ho,"m",Zo)}
|
|
1435
1435
|
><slot></slot
|
|
1436
1436
|
></a>
|
|
1437
|
-
`}}var
|
|
1437
|
+
`}}var ti,ei,oi;Ho=new WeakSet,Jo=function(){return this.disabled||!this.href||Ko.test(this.href.trim())},Xo=function(){return t(this,Ho,"a",Jo)?void 0:this.href},Yo=function(){var t,e;let o=this.rel;if("_blank"===this.target){const i=new Set((null!==(t=this.rel)&&void 0!==t?t:"").split(/\s+/).filter(Boolean));(null===(e=this.referrerpolicy)||void 0===e?void 0:e.trim())||i.add("noreferrer"),i.has("opener")||i.add("noopener"),o=Array.from(i).join(" ")}return o},Zo=function(e){if(t(this,Ho,"a",Jo))return e.preventDefault(),e.stopPropagation(),!1},Qo.styles=[Q`
|
|
1438
1438
|
.m-link {
|
|
1439
1439
|
color: ${Ot("color-text-link")};
|
|
1440
1440
|
}
|
|
@@ -1478,14 +1478,14 @@ let Ve=class{constructor(t,e,i,o){var r;if(this.subscribe=!1,this.provided=!1,th
|
|
|
1478
1478
|
${Ht(".m-link").disabled} {
|
|
1479
1479
|
color: ${Ot("color-primary-20")};
|
|
1480
1480
|
}
|
|
1481
|
-
`],window.customElements.define("m-link",
|
|
1481
|
+
`],window.customElements.define("m-link",Qo);class ii extends pt{static get properties(){return{variant:{type:String,reflect:!0},value:{type:Number,reflect:!0},max:{type:Number,reflect:!0}}}constructor(){super(),ti.add(this),this.variant="default",this.value=0,this.max=100}connectedCallback(){super.connectedCallback(),this.setAttribute("role","progressbar"),this.setAttribute("aria-valuemin","0")}updated(){this.setAttribute("aria-valuenow",String(this.value)),this.setAttribute("aria-valuemax",String(this.max))}get percentage(){return 100*t(this,ti,"a",oi)/t(this,ti,"a",ei)}get currentVariant(){return this.variant}render(){return k`
|
|
1482
1482
|
<div class="bar">
|
|
1483
1483
|
<span
|
|
1484
1484
|
class=${vt({progress:!0,"-default":"default"===this.currentVariant,"-success":"success"===this.currentVariant,"-warning":"warning"===this.currentVariant,"-danger":"danger"===this.currentVariant})}
|
|
1485
1485
|
style=${Ae({width:`${this.percentage}%`})}
|
|
1486
1486
|
></span>
|
|
1487
1487
|
</div>
|
|
1488
|
-
`}}
|
|
1488
|
+
`}}ti=new WeakSet,ei=function(){return this.max<=0?100:this.max},oi=function(){return e=this.value,o=0,i=t(this,ti,"a",ei),Math.min(Math.max(o,e),i);var e,o,i},ii.styles=[Q`
|
|
1489
1489
|
.bar {
|
|
1490
1490
|
display: flex;
|
|
1491
1491
|
flex-grow: 0;
|
|
@@ -1536,7 +1536,7 @@ let Ve=class{constructor(t,e,i,o){var r;if(this.subscribe=!1,this.provided=!1,th
|
|
|
1536
1536
|
.-danger {
|
|
1537
1537
|
--m-progress-bar-progress-background: ${Ot("color-danger-60")};
|
|
1538
1538
|
}
|
|
1539
|
-
`],window.customElements.define("m-progress-bar",
|
|
1539
|
+
`],window.customElements.define("m-progress-bar",ii);class ri extends ii{get currentVariant(){return this.percentage>=66?"success":this.percentage>=33?"warning":"danger"}}window.customElements.define("m-progress-bar-countdown",ri);const ni="m-check";var si,ai,li,ci,di;class hi extends pt{static get properties(){return{value:{type:String},disabled:{type:Boolean,reflect:!0},checked:{type:Boolean,reflect:!0}}}constructor(){super(),si.add(this),li.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(ni,e))})),ci.set(this,(()=>{this.setAttribute("aria-disabled",String(this.disabled))})),di.set(this,(()=>{this.setAttribute("aria-checked",String(this.checked))})),this.disabled=!1,this.checked=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","radio"),this.addEventListener("click",t(this,li,"f"))}updated(e){super.updated(e),e.has("disabled")&&t(this,ci,"f").call(this),e.has("checked")&&t(this,di,"f").call(this)}render(){return k`
|
|
1540
1540
|
<button
|
|
1541
1541
|
type="button"
|
|
1542
1542
|
class="radio-button"
|
|
@@ -1548,7 +1548,7 @@ let Ve=class{constructor(t,e,i,o){var r;if(this.subscribe=!1,this.provided=!1,th
|
|
|
1548
1548
|
<slot name="leading"></slot>
|
|
1549
1549
|
<slot></slot>
|
|
1550
1550
|
</button>
|
|
1551
|
-
`}focus(e){var
|
|
1551
|
+
`}focus(e){var o;null===(o=t(this,si,"a",ai))||void 0===o||o.focus(e)}}li=new WeakMap,ci=new WeakMap,di=new WeakMap,si=new WeakSet,ai=function(){var t,e;return null!==(e=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector("button"))&&void 0!==e?e:null},hi.styles=[Q`
|
|
1552
1552
|
:host {
|
|
1553
1553
|
--m-radio-border-color: ${Ot("color-border")};
|
|
1554
1554
|
--m-radio-dot-check-color: ${Ot("color-primary-60")};
|
|
@@ -1651,13 +1651,13 @@ let Ve=class{constructor(t,e,i,o){var r;if(this.subscribe=!1,this.provided=!1,th
|
|
|
1651
1651
|
${Ht(".radio-button","*").disabled} {
|
|
1652
1652
|
pointer-event: none;
|
|
1653
1653
|
}
|
|
1654
|
-
`],window.customElements.define("m-radio",
|
|
1654
|
+
`],window.customElements.define("m-radio",hi);var ui,pi={};Object.defineProperty(pi,"i",{value:!0});var gi=Nt;const mi=(t,e)=>{const o=gi(t);if(0===o.length)return e;const i=new Set;return i.add(String(o.at(-1))),i},bi=(t,e)=>{const o=gi(t);if(0===o.length)return e;const i=new Set(e);for(const t of o)i.add(String(t));return i},fi={type:"single",init:t=>mi(t,new Set),select:mi,unselect(t,e){const o=gi(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=gi(t);if(0===o.length)return e;const i=new Set;for(const t of o){const o=String(t);e.has(o)||(i.clear(),i.add(o))}return i},reset:t=>null==t?new Set:t,value(t){if(null==t||0===t.size)return null;const[e]=Array.from(t);return e}},yi={type:"single-strict",init:t=>mi(t,new Set),select:mi,unselect(t,e){const o=gi(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=gi(t);if(0===o.length)return e;const i=new Set(e);for(const t of o){const o=String(t);e.has(o)||(i.clear(),i.add(o))}return i},reset:t=>null==t?new Set:t,value(t){if(null==t||0===t.size)return null;const[e]=Array.from(t);return e}},vi={type:"multiple",init:t=>bi(t,new Set),select:bi,unselect(t,e){const o=gi(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=gi(t);if(0===o.length)return e;const i=new Set(e);for(const t of o){const o=String(t);e.has(o)?i.delete(o):i.add(o)}return i},reset:t=>null==t?new Set:t,value:t=>null==t||0===t.size?null:Array.from(t)};var $i,wi,xi,ki,zi,Si,Ci,Mi,Wi;pi.SELECTION_TYPES=["single","single-strict","multiple"],ui=pi.default=function(t){const{type:e="multiple"}=t;return"single"===e?fi:"single-strict"===e?yi:vi};class Ai{constructor(e,o,i){$i.add(this),this.disabled=!1,this.event="m-select",wi.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(Ft(o));break;case"unselect":this.unselect(Ft(o));break;case"toggle":this.toggle(Ft(o))}})),this.init=t=>{this.host.selection=this.strategy.init(t)},this.select=e=>{this.host.selection=this.strategy.select(e,this.host.selection),t(this,$i,"m",xi).call(this)},this.unselect=e=>{this.host.selection=this.strategy.unselect(e,this.host.selection),t(this,$i,"m",xi).call(this)},this.toggle=e=>{this.host.selection=this.strategy.toggle(e,this.host.selection),t(this,$i,"m",xi).call(this)},this.subscribe=()=>{this.host.addEventListener(this.event,t(this,wi,"f"))},this.unsubscribe=()=>{this.host.removeEventListener(this.event,t(this,wi,"f"))},this.host=e,this.type=o,this.event=i,this.strategy=ui({type:o}),this.host.addController(this)}hostConnected(){this.subscribe()}hostDisconnected(){this.unsubscribe()}hostUpdate(){null!=this.host.type&&this.host.type!==this.type&&(this.unsubscribe(),this.host.removeController(this))}}wi=new WeakMap,$i=new WeakSet,xi=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 ji extends pt{static get properties(){return{value:{type:String,reflect:!0},disabled:{type:Boolean,reflect:!0},selection:{state:!0},orientation:{type:String}}}constructor(){super(),ki.set(this,null),zi.set(this,null),Si.set(this,(()=>{var e;return null===(e=t(this,Ci,"f").call(this)[0])||void 0===e?void 0:e.value})),Ci.set(this,(()=>{var o,i,r;e(this,zi,null!==(o=t(this,zi,"f"))&&void 0!==o?o:this.shadowRoot&&this.shadowRoot.querySelector("slot"),"f");return[...null!==(r=null===(i=t(this,zi,"f"))||void 0===i?void 0:i.assignedElements({flatten:!0}))&&void 0!==r?r:[]].filter((t=>"m-radio"===t.tagName.toLowerCase()))})),Mi.set(this,(t=>{t.checked=this.selection.has(t.value)})),Wi.set(this,(t=>{t.disabled=this.disabled})),this.disabled=!1,this.selection=new Set,this.value="",this.orientation="vertical",this.type="single-strict"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","radio-group"),e(this,ki,new Ai(this,this.type,ni),"f")}update(e){super.update(e),e.has("value")&&t(this,ki,"f")&&t(this,ki,"f").init(Ft(this.value||t(this,Si,"f").call(this))),e.has("selection")&&([this.value]=this.selection)}updated(e){super.updated(e),e.has("selection")&&t(this,Ci,"f").call(this).forEach((e=>{t(this,Mi,"f").call(this,e)})),e.has("disabled")&&t(this,Ci,"f").call(this).forEach((e=>{t(this,Wi,"f").call(this,e)}))}render(){return k`
|
|
1655
1655
|
<div
|
|
1656
1656
|
class=${vt({"radio-group":!0,"-vertical":"vertical"===this.orientation,"-horizontal":"horizontal"===this.orientation})}
|
|
1657
1657
|
>
|
|
1658
1658
|
<slot></slot>
|
|
1659
1659
|
</div>
|
|
1660
|
-
`}}
|
|
1660
|
+
`}}ki=new WeakMap,zi=new WeakMap,Si=new WeakMap,Ci=new WeakMap,Mi=new WeakMap,Wi=new WeakMap,ji.styles=[Q`
|
|
1661
1661
|
.radio-group {
|
|
1662
1662
|
display: flex;
|
|
1663
1663
|
gap: ${_t("spacing-2")};
|
|
@@ -1668,20 +1668,20 @@ let Ve=class{constructor(t,e,i,o){var r;if(this.subscribe=!1,this.provided=!1,th
|
|
|
1668
1668
|
.radio-group.-horizontal {
|
|
1669
1669
|
flex-direction: row;
|
|
1670
1670
|
}
|
|
1671
|
-
`],window.customElements.define("m-radio-group",
|
|
1671
|
+
`],window.customElements.define("m-radio-group",ji);class Bi extends pt{render(){return k`
|
|
1672
1672
|
<slot name="title"></slot>
|
|
1673
1673
|
<m-divider></m-divider>
|
|
1674
1674
|
<slot></slot>
|
|
1675
|
-
`}}
|
|
1675
|
+
`}}Bi.styles=[Q`
|
|
1676
1676
|
:host {
|
|
1677
1677
|
display: block;
|
|
1678
1678
|
}
|
|
1679
|
-
`],window.customElements.define("m-section",
|
|
1679
|
+
`],window.customElements.define("m-section",Bi);class Ei extends($t(pt,["h1","h2","h3","h4","h5","h6","p","span"],"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 V`
|
|
1680
1680
|
<${this.tag} class=${vt({title:!0,"-size-small":"small"===this.size,"-size-default":"default"===this.size,"-size-large":"large"===this.size})}>
|
|
1681
1681
|
<slot name="leading"></slot>
|
|
1682
1682
|
<slot></slot>
|
|
1683
1683
|
</${this.tag}>
|
|
1684
|
-
`}}
|
|
1684
|
+
`}}Ei.styles=[Q`
|
|
1685
1685
|
:host {
|
|
1686
1686
|
color: ${Ot("color-text-primary")};
|
|
1687
1687
|
display: block;
|
|
@@ -1713,10 +1713,10 @@ let Ve=class{constructor(t,e,i,o){var r;if(this.subscribe=!1,this.provided=!1,th
|
|
|
1713
1713
|
${te("heading-lg-bold")};
|
|
1714
1714
|
margin: 0 0 ${_t("spacing-2")} 0;
|
|
1715
1715
|
}
|
|
1716
|
-
`],window.customElements.define("m-section-title",
|
|
1716
|
+
`],window.customElements.define("m-section-title",Ei);const Pi="tabs",Ri="m-select-tab";var Ti,_i,Oi,qi,Di,Ui,Li,Ni,Fi,Ii,Gi,Vi,Hi,Ji,Xi,Yi,Zi,Ki,Qi,tr;class er extends be{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(),Ti.set(this,null),_i.set(this,null),this.provider=new Xe(this,Pi,{tabContentDirection:"horizontal",disabled:!1,lazy:!1,selection:new Set("")}),Oi.set(this,(t=>{t.stopPropagation();const[e]=Array.from(this.selection),o={detail:{value:String(e)}};this.emit("m-tab-change",o)})),qi.set(this,(()=>{var e;return null===(e=t(this,Di,"f").call(this)[0])||void 0===e?void 0:e.name})),Di.set(this,(()=>{var o,i,r;e(this,_i,null!==(o=t(this,_i,"f"))&&void 0!==o?o:this.shadowRoot&&this.shadowRoot.querySelector("slot"),"f");return[...null!==(r=null===(i=t(this,_i,"f"))||void 0===i?void 0:i.assignedElements({flatten:!0}))&&void 0!==r?r:[]].filter((t=>"m-tab"===t.tagName.toLowerCase()))})),this.activeTab="",this.tabContentDirection="horizontal",this.disabled=!1,this.lazy=!1,this.type="single-strict",this.selection=new Set}connectedCallback(){super.connectedCallback(),e(this,Ti,new Ai(this,this.type,Ri),"f"),this.addEventListener("m-change",t(this,Oi,"f"))}update(e){super.update(e),e.has("activeTab")&&t(this,Ti,"f")&&t(this,Ti,"f").init(Ft(this.activeTab||t(this,qi,"f").call(this)));const[o]=Array.from(this.selection);!e.has("selection")||this.activeTab&&o===this.activeTab||(this.activeTab=o),(e.has("tabContentDirection")||e.has("disabled")||e.has("lazy")||e.has("selection"))&&this.provider.setValue({tabContentDirection:this.tabContentDirection,disabled:this.disabled,lazy:this.lazy,selection:this.selection})}render(){return k`
|
|
1717
1717
|
<div class="tablist" role="tablist"><slot name="tab"></slot></div>
|
|
1718
1718
|
<slot></slot>
|
|
1719
|
-
`}}
|
|
1719
|
+
`}}Ti=new WeakMap,_i=new WeakMap,Oi=new WeakMap,qi=new WeakMap,Di=new WeakMap,er.styles=[Q`
|
|
1720
1720
|
:host {
|
|
1721
1721
|
--m-tabs-border-width: ${_t("border-thin")};
|
|
1722
1722
|
--m-tabs-border-color: ${Ot("color-divider")};
|
|
@@ -1730,17 +1730,17 @@ let Ve=class{constructor(t,e,i,o){var r;if(this.subscribe=!1,this.provided=!1,th
|
|
|
1730
1730
|
border-bottom-width: var(--m-tabs-border-width);
|
|
1731
1731
|
border-bottom-color: var(--m-tabs-border-color);
|
|
1732
1732
|
}
|
|
1733
|
-
`],window.customElements.define("m-tabs",
|
|
1733
|
+
`],window.customElements.define("m-tabs",er);class or extends be{static get properties(){return{name:{type:String},disabled:{type:Boolean,reflect:!0},slot:{type:String,reflect:!0}}}constructor(){super(),Ui.add(this),this.tabs=new Ve(this,Pi,void 0,!0),Ni.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(Ri,e)})),Fi.set(this,(()=>{var t;return null===(t=this.tabs.value)||void 0===t?void 0:t.tabContentDirection})),Ii.set(this,(()=>{var t;return Boolean(null===(t=this.tabs.value)||void 0===t?void 0:t.selection.has(this.name))})),Gi.set(this,(()=>{var t;return this.disabled||Boolean(null===(t=this.tabs.value)||void 0===t?void 0:t.disabled)})),this.disabled=!1}connectedCallback(){super.connectedCallback(),this.id=`${this.name}-tab`,this.setAttribute("slot","tab"),this.setAttribute("role","tab"),this.setAttribute("aria-controls",`${this.name}-panel`),this.setAttribute("aria-selected","false"),this.addEventListener("click",t(this,Ni,"f"))}updated(e){super.updated(e),t(this,Ii,"f").call(this)?this.setAttribute("aria-selected","true"):this.setAttribute("aria-selected","false"),e.has("name")&&(this.id=`${this.name}-tab`,this.setAttribute("aria-controls",`${this.name}-panel`)),e.has("disabled")&&this.setAttribute("aria-disabled",String(this.disabled))}render(){return k`
|
|
1734
1734
|
<button
|
|
1735
1735
|
type="button"
|
|
1736
|
-
class=${vt({tab:!0,"-vertical":"vertical"===t(this,
|
|
1737
|
-
?disabled=${t(this,
|
|
1738
|
-
aria-selected=${t(this,
|
|
1736
|
+
class=${vt({tab:!0,"-vertical":"vertical"===t(this,Fi,"f").call(this),"-horizontal":"horizontal"===t(this,Fi,"f").call(this)})}
|
|
1737
|
+
?disabled=${t(this,Gi,"f").call(this)}
|
|
1738
|
+
aria-selected=${t(this,Ii,"f").call(this)}
|
|
1739
1739
|
>
|
|
1740
1740
|
<slot name="leading"></slot>
|
|
1741
1741
|
<slot></slot>
|
|
1742
1742
|
</button>
|
|
1743
|
-
`}focus(e){var
|
|
1743
|
+
`}focus(e){var o;null===(o=t(this,Ui,"a",Li))||void 0===o||o.focus(e)}}Ni=new WeakMap,Fi=new WeakMap,Ii=new WeakMap,Gi=new WeakMap,Ui=new WeakSet,Li=function(){var t,e;return null!==(e=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector("button"))&&void 0!==e?e:null},or.styles=[Q`
|
|
1744
1744
|
:host {
|
|
1745
1745
|
--m-tab-border-width: ${_t("border-thin")};
|
|
1746
1746
|
--m-tab-border-color: ${Ot("color-divider")};
|
|
@@ -1821,20 +1821,20 @@ let Ve=class{constructor(t,e,i,o){var r;if(this.subscribe=!1,this.provided=!1,th
|
|
|
1821
1821
|
${Ht(".tab","*").disabled} {
|
|
1822
1822
|
pointer-events: none;
|
|
1823
1823
|
}
|
|
1824
|
-
`],window.customElements.define("m-tab",
|
|
1824
|
+
`],window.customElements.define("m-tab",or);class ir extends(Hi=zo){static get properties(){return{...super.properties,forTab:{type:String,attribute:"for-tab"},lazy:{type:Boolean}}}constructor(){super(),this.tabs=new Ve(this,Pi,void 0,!0),Ji.set(this,(()=>{var t;return Boolean(null===(t=this.tabs.value)||void 0===t?void 0:t.selection.has(this.forTab))})),Xi.set(this,(()=>{var t;return this.lazy||Boolean(null===(t=this.tabs.value)||void 0===t?void 0:t.lazy)})),this.lazy=!1,this.padding="none",this.paddingY="spacing-8"}connectedCallback(){super.connectedCallback(),this.id=`${this.forTab}-panel`,this.setAttribute("role","tabpanel"),this.setAttribute("aria-labelledby",`${this.forTab}-tab`)}updated(e){super.updated(e),t(this,Ji,"f").call(this)?(this.style.setProperty("--m-tab-panel-display","block"),this.removeAttribute("aria-hidden")):(this.style.setProperty("--m-tab-panel-display","none"),this.setAttribute("aria-hidden","true")),e.has("forTab")&&(this.id=`${this.forTab}-panel`,this.setAttribute("aria-labelledby",`${this.forTab}-tab`))}render(){return t(this,Xi,"f").call(this)&&!t(this,Ji,"f").call(this)?k``:k`<slot></slot>`}}Vi=ir,Ji=new WeakMap,Xi=new WeakMap,ir.styles=[...Reflect.get(Hi,"styles",Vi),Q`
|
|
1825
1825
|
:host {
|
|
1826
1826
|
--m-tab-panel-display: none;
|
|
1827
1827
|
|
|
1828
1828
|
display: var(--m-tab-panel-display);
|
|
1829
1829
|
}
|
|
1830
|
-
`],window.customElements.define("m-tab-panel",
|
|
1830
|
+
`],window.customElements.define("m-tab-panel",ir);class rr extends pt{static get properties(){return{variant:{type:String},size:{type:String},isSkeleton:{type:Boolean,attribute:"is-skeleton"}}}constructor(){super(),this.variant="neutral",this.size="default",this.isSkeleton=!1}render(){return k`
|
|
1831
1831
|
<span
|
|
1832
1832
|
class=${vt({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})}
|
|
1833
1833
|
>
|
|
1834
1834
|
${this.isSkeleton?k``:k`<slot name="leading"></slot>`}
|
|
1835
1835
|
<slot></slot>
|
|
1836
1836
|
</span>
|
|
1837
|
-
`}}
|
|
1837
|
+
`}}rr.styles=[[Zt.styles(),Q`
|
|
1838
1838
|
:host {
|
|
1839
1839
|
--m-tag-skeleton-width: 100px;
|
|
1840
1840
|
|
|
@@ -1894,9 +1894,9 @@ let Ve=class{constructor(t,e,i,o){var r;if(this.subscribe=!1,this.provided=!1,th
|
|
|
1894
1894
|
${Zt()};
|
|
1895
1895
|
width: var(--m-tag-skeleton-width);
|
|
1896
1896
|
}
|
|
1897
|
-
`]],window.customElements.define("m-tag",
|
|
1897
|
+
`]],window.customElements.define("m-tag",rr);class nr extends be{static get properties(){return{clearable:{type:Boolean},disabled:{type:Boolean,reflect:!0},max:{type:String},maxLength:{type:Number,reflect:!0,attribute:"max-length"},min:{type:String},minLength:{type:Number,reflect:!0,attribute:"min-length"},pattern:{type:String},placeholder:{type:String},readOnly:{type:Boolean,reflect:!0,attribute:"read-only"},size:{type:String},status:{type:String},step:{type:String},type:{type:String},value:{type:String}}}constructor(){super(),Yi.add(this),this.inputElement=null,this.field=new Ve(this,qo,void 0,!0),Qi.set(this,(t=>{this.value=t.target.value,this.reemit(t)})),tr.set(this,(t=>{t.stopPropagation(),this.clear()})),this.clearable=!1,this.disabled=!1,this.placeholder=void 0,this.size="default",this.type="text",this.value=void 0,this.max=""}connectedCallback(){super.connectedCallback(),this.setAttribute("role","textbox")}render(){return k`
|
|
1898
1898
|
<div
|
|
1899
|
-
class=${vt({container:!0,"-size-small":"small"===this.size,"-size-default":"default"===this.size,"-size-large":"large"===this.size,"is-disabled":Boolean(this.disabled),"-status-default":"default"===t(this,
|
|
1899
|
+
class=${vt({container:!0,"-size-small":"small"===this.size,"-size-default":"default"===this.size,"-size-large":"large"===this.size,"is-disabled":Boolean(this.disabled),"-status-default":"default"===t(this,Yi,"m",Ki).call(this),"-status-danger":"danger"===t(this,Yi,"m",Ki).call(this)})}
|
|
1900
1900
|
>
|
|
1901
1901
|
<slot name="leading"></slot>
|
|
1902
1902
|
<input
|
|
@@ -1915,17 +1915,17 @@ let Ve=class{constructor(t,e,i,o){var r;if(this.subscribe=!1,this.provided=!1,th
|
|
|
1915
1915
|
step=${this.step||C}
|
|
1916
1916
|
value="${mt(this.value)}"
|
|
1917
1917
|
@change=${this.reemit}
|
|
1918
|
-
@input=${t(this,
|
|
1918
|
+
@input=${t(this,Qi,"f")}
|
|
1919
1919
|
/>
|
|
1920
1920
|
${this.clearable?k`<m-close-button
|
|
1921
|
-
class=${vt({clear:!0,"is-visible":t(this,
|
|
1921
|
+
class=${vt({clear:!0,"is-visible":t(this,Yi,"m",Zi).call(this)})}
|
|
1922
1922
|
controls="${mt(this.id)}"
|
|
1923
|
-
@m-close=${t(this,
|
|
1923
|
+
@m-close=${t(this,tr,"f")}
|
|
1924
1924
|
label="Clear input"
|
|
1925
1925
|
></m-close-button>`:C}
|
|
1926
1926
|
<slot name="trailing"></slot>
|
|
1927
1927
|
</div>
|
|
1928
|
-
`}get input(){var t,e;return null==this.inputElement&&(this.inputElement=null!==(e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("input"))&&void 0!==e?e:null),this.inputElement}clear(){this.value="",this.input&&(this.input.value=""),this.emit("m-clear"),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}
|
|
1928
|
+
`}get input(){var t,e;return null==this.inputElement&&(this.inputElement=null!==(e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("input"))&&void 0!==e?e:null),this.inputElement}clear(){this.value="",this.input&&(this.input.value=""),this.emit("m-clear"),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}Qi=new WeakMap,tr=new WeakMap,Yi=new WeakSet,Zi=function(){const t=this.value||"";return!this.disabled&&t.length>0},Ki=function(){var t;return this.status||(null===(t=this.field.value)||void 0===t?void 0:t.status)},nr.styles=[Q`
|
|
1929
1929
|
:host {
|
|
1930
1930
|
--m-text-field-background-color: transparent;
|
|
1931
1931
|
--m-text-field-border-color: ${Ot("color-border")};
|
|
@@ -2040,14 +2040,14 @@ let Ve=class{constructor(t,e,i,o){var r;if(this.subscribe=!1,this.provided=!1,th
|
|
|
2040
2040
|
.clear.is-visible {
|
|
2041
2041
|
visibility: visible;
|
|
2042
2042
|
}
|
|
2043
|
-
`],window.customElements.define("m-text-field",
|
|
2043
|
+
`],window.customElements.define("m-text-field",nr);const sr="m-toggle";var ar,lr,cr,dr,hr,ur,pr,gr,mr,br,fr;class yr extends pt{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(),ar.set(this,null),lr.set(this,null),cr.set(this,(()=>{var o,i,r;e(this,lr,null!==(o=t(this,lr,"f"))&&void 0!==o?o:this.shadowRoot&&this.shadowRoot.querySelector("slot"),"f");return[...null!==(r=null===(i=t(this,lr,"f"))||void 0===i?void 0:i.assignedElements({flatten:!0}))&&void 0!==r?r:[]].filter((t=>"m-toggle"===t.tagName.toLowerCase()))})),dr.set(this,(t=>{t.setAttribute("role",["single","single-strict"].includes(this.type)?"radio":"checkbox")})),hr.set(this,(t=>{t.checked=this.selection.has(t.value)})),ur.set(this,(t=>{t.disabled=this.disabled})),this.showCheck=!1,this.size="default",this.type="single",this.selection=new Set}update(o){super.update(o),(null!=o.get("type")&&null!=this.type||null==t(this,ar,"f"))&&(e(this,ar,new Ai(this,this.type,sr),"f"),t(this,ar,"f").init(Ft(this.value)),this.role=["single","single-strict"].includes(this.type)?"radiogroup":"group"),o.has("value")&&t(this,ar,"f").init(Ft(this.value))}updated(e){super.updated(e),e.has("selection")&&t(this,cr,"f").call(this).forEach((e=>{t(this,hr,"f").call(this,e)})),e.has("disabled")&&t(this,cr,"f").call(this).forEach((e=>{t(this,ur,"f").call(this,e)})),e.has("role")&&t(this,cr,"f").call(this).forEach((e=>{t(this,dr,"f").call(this,e)}))}render(){return k`
|
|
2044
2044
|
<m-group
|
|
2045
2045
|
class=${vt({"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})}
|
|
2046
2046
|
gap="spacing-1"
|
|
2047
2047
|
>
|
|
2048
2048
|
<slot></slot>
|
|
2049
2049
|
</m-group>
|
|
2050
|
-
`}}
|
|
2050
|
+
`}}ar=new WeakMap,lr=new WeakMap,cr=new WeakMap,dr=new WeakMap,hr=new WeakMap,ur=new WeakMap,yr.styles=[[Q`
|
|
2051
2051
|
.toggle-group {
|
|
2052
2052
|
inline-size: max-content;
|
|
2053
2053
|
|
|
@@ -2073,7 +2073,7 @@ let Ve=class{constructor(t,e,i,o){var r;if(this.subscribe=!1,this.provided=!1,th
|
|
|
2073
2073
|
.toggle-group.-show-check ::slotted(m-toggle[aria-checked='true']) {
|
|
2074
2074
|
--m-toggle-icon-display: inline-flex;
|
|
2075
2075
|
}
|
|
2076
|
-
`]],window.customElements.define("m-toggle-group",
|
|
2076
|
+
`]],window.customElements.define("m-toggle-group",yr);class vr extends pt{static get properties(){return{checked:{type:Boolean},disabled:{type:Boolean,reflect:!0},role:{type:String,reflect:!0},value:{type:String,reflect:!0}}}constructor(){super(),pr.add(this),mr.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(sr,t))})),br.set(this,(()=>{this.setAttribute("aria-disabled",String(this.disabled))})),fr.set(this,(()=>{this.setAttribute("aria-checked",String(this.checked))})),this.disabled=!1,this.checked=!1}connectedCallback(){super.connectedCallback(),this.addEventListener("click",t(this,mr,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",t(this,mr,"f"))}updated(e){super.updated(e),e.has("disabled")&&t(this,br,"f").call(this),e.has("checked")&&t(this,fr,"f").call(this)}render(){return k`
|
|
2077
2077
|
<button
|
|
2078
2078
|
type="button"
|
|
2079
2079
|
class=${vt({button:!0,toggle:!0})}
|
|
@@ -2087,7 +2087,7 @@ let Ve=class{constructor(t,e,i,o){var r;if(this.subscribe=!1,this.provided=!1,th
|
|
|
2087
2087
|
|
|
2088
2088
|
<slot></slot>
|
|
2089
2089
|
</button>
|
|
2090
|
-
`}focus(e){var
|
|
2090
|
+
`}focus(e){var o;null===(o=t(this,pr,"a",gr))||void 0===o||o.focus(e)}}function $r(t){return t.trim()}function wr(t){return t?String(t).split(/[\s,]+/).map($r).filter(Boolean):["hover"]}function xr(t){return t.split("-")[1]}function kr(t){return"y"===t?"height":"width"}function zr(t){return t.split("-")[0]}function Sr(t){return["top","bottom"].includes(zr(t))?"x":"y"}function Cr(t,e,o){let{reference:i,floating:r}=t;const n=i.x+i.width/2-r.width/2,s=i.y+i.height/2-r.height/2,a=Sr(e),l=kr(a),c=i[l]/2-r[l]/2,d="x"===a;let h;switch(zr(e)){case"top":h={x:n,y:i.y-r.height};break;case"bottom":h={x:n,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:s};break;case"left":h={x:i.x-r.width,y:s};break;default:h={x:i.x,y:i.y}}switch(xr(e)){case"start":h[a]-=c*(o&&d?-1:1);break;case"end":h[a]+=c*(o&&d?-1:1)}return h}mr=new WeakMap,br=new WeakMap,fr=new WeakMap,pr=new WeakSet,gr=function(){var t,e;return null!==(e=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector("button"))&&void 0!==e?e:null},vr.styles=[[ee(),Q`
|
|
2091
2091
|
:host {
|
|
2092
2092
|
/*
|
|
2093
2093
|
* These custom properties are here because they are meant to be
|
|
@@ -2127,11 +2127,11 @@ let Ve=class{constructor(t,e,i,o){var r;if(this.subscribe=!1,this.provided=!1,th
|
|
|
2127
2127
|
|
|
2128
2128
|
display: var(--m-toggle-icon-display);
|
|
2129
2129
|
}
|
|
2130
|
-
`]],window.customElements.define("m-toggle",zr);function Er(t,e){return"function"==typeof t?t(e):t}function Rr(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function Tr(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function Pr(t,e){var i;void 0===e&&(e={});const{x:o,y:r,platform:n,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:u=!1,padding:p=0}=Er(e,t),g=Rr(p),m=a[u?"floating"===h?"reference":"floating":h],b=Tr(await n.getClippingRect({element:null==(i=await(null==n.isElement?void 0:n.isElement(m)))||i?m:m.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),f="floating"===h?{...s.floating,x:o,y:r}:s.reference,y=await(null==n.getOffsetParent?void 0:n.getOffsetParent(a.floating)),v=await(null==n.isElement?void 0:n.isElement(y))&&await(null==n.getScale?void 0:n.getScale(y))||{x:1,y:1},$=Tr(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:f,offsetParent:y,strategy:l}):f);return{top:(b.top-$.top+g.top)/v.y,bottom:($.bottom-b.bottom+g.bottom)/v.y,left:(b.left-$.left+g.left)/v.x,right:($.right-b.right+g.right)/v.x}}const _r=Math.min,Or=Math.max;function Dr(t,e,i){return Or(t,_r(e,i))}const Ur=t=>({name:"arrow",options:t,async fn(e){const{x:i,y:o,placement:r,rects:n,platform:s,elements:a}=e,{element:l,padding:c=0}=Er(t,e)||{};if(null==l)return{};const d=Rr(c),h={x:i,y:o},u=jr(r),p=Wr(u),g=await s.getDimensions(l),m="y"===u,b=m?"top":"left",f=m?"bottom":"right",y=m?"clientHeight":"clientWidth",v=n.reference[p]+n.reference[u]-h[u]-n.floating[p],$=h[u]-n.reference[u],w=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l));let x=w?w[y]:0;x&&await(null==s.isElement?void 0:s.isElement(w))||(x=a.floating[y]||n.floating[p]);const k=v/2-$/2,z=x/2-g[p]/2-1,S=_r(d[b],z),C=_r(d[f],z),M=S,W=x-g[p]-C,A=x/2-g[p]/2+k,j=Dr(M,A,W),B=null!=Mr(r)&&A!=j&&n.reference[p]/2-(A<M?S:C)-g[p]/2<0?A<M?M-A:W-A:0;return{[u]:h[u]-B,data:{[u]:j,centerOffset:A-j+B}}}}),qr={left:"right",right:"left",bottom:"top",top:"bottom"};function Lr(t){return t.replace(/left|right|bottom|top/g,(t=>qr[t]))}const Nr={start:"end",end:"start"};function Fr(t){return t.replace(/start|end/g,(t=>Nr[t]))}const Ir=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var i;const{placement:o,middlewareData:r,rects:n,initialPlacement:s,platform:a,elements:l}=e,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...m}=Er(t,e),b=Ar(o),f=Ar(s)===s,y=await(null==a.isRTL?void 0:a.isRTL(l.floating)),v=h||(f||!g?[Lr(s)]:function(t){const e=Lr(t);return[Fr(t),e,Fr(e)]}(s));h||"none"===p||v.push(...function(t,e,i,o){const r=Mr(t);let n=function(t,e,i){const o=["left","right"],r=["right","left"],n=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return i?e?r:o:e?o:r;case"left":case"right":return e?n:s;default:return[]}}(Ar(t),"start"===i,o);return r&&(n=n.map((t=>t+"-"+r)),e&&(n=n.concat(n.map(Fr)))),n}(s,g,p,y));const $=[s,...v],w=await Pr(e,m),x=[];let k=(null==(i=r.flip)?void 0:i.overflows)||[];if(c&&x.push(w[b]),d){const{main:t,cross:e}=function(t,e,i){void 0===i&&(i=!1);const o=Mr(t),r=jr(t),n=Wr(r);let s="x"===r?o===(i?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[n]>e.floating[n]&&(s=Lr(s)),{main:s,cross:Lr(s)}}(o,n,y);x.push(w[t],w[e])}if(k=[...k,{placement:o,overflows:x}],!x.every((t=>t<=0))){var z,S;const t=((null==(z=r.flip)?void 0:z.index)||0)+1,e=$[t];if(e)return{data:{index:t,overflows:k},reset:{placement:e}};let i=null==(S=k.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:S.placement;if(!i)switch(u){case"bestFit":{var C;const t=null==(C=k.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:C[0];t&&(i=t);break}case"initialPlacement":i=s}if(o!==i)return{reset:{placement:i}}}return{}}}};const Gr=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){const{x:i,y:o}=e,r=await async function(t,e){const{placement:i,platform:o,elements:r}=t,n=await(null==o.isRTL?void 0:o.isRTL(r.floating)),s=Ar(i),a=Mr(i),l="x"===jr(i),c=["left","top"].includes(s)?-1:1,d=n&&l?-1:1,h=Er(e,t);let{mainAxis:u,crossAxis:p,alignmentAxis:g}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return a&&"number"==typeof g&&(p="end"===a?-1*g:g),l?{x:p*d,y:u*c}:{x:u*c,y:p*d}}(e,t);return{x:i+r.x,y:o+r.y,data:r}}}};function Vr(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Hr(t){return Vr(t).getComputedStyle(t)}function Jr(t){return t instanceof Vr(t).Node}function Xr(t){return Jr(t)?(t.nodeName||"").toLowerCase():"#document"}function Yr(t){return t instanceof Vr(t).HTMLElement}function Zr(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Vr(t).ShadowRoot||t instanceof ShadowRoot)}function Kr(t){const{overflow:e,overflowX:i,overflowY:o,display:r}=Hr(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+i)&&!["inline","contents"].includes(r)}function Qr(t){return["table","td","th"].includes(Xr(t))}function tn(t){const e=en(),i=Hr(t);return"none"!==i.transform||"none"!==i.perspective||!!i.containerType&&"normal"!==i.containerType||!e&&!!i.backdropFilter&&"none"!==i.backdropFilter||!e&&!!i.filter&&"none"!==i.filter||["transform","perspective","filter"].some((t=>(i.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(i.contain||"").includes(t)))}function en(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function on(t){return["html","body","#document"].includes(Xr(t))}const rn=Math.min,nn=Math.max,sn=Math.round,an=Math.floor,ln=t=>({x:t,y:t});function cn(t){const e=Hr(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=Yr(t),n=r?t.offsetWidth:i,s=r?t.offsetHeight:o,a=sn(i)!==n||sn(o)!==s;return a&&(i=n,o=s),{width:i,height:o,$:a}}function dn(t){return t instanceof Vr(t).Element}function hn(t){return dn(t)?t:t.contextElement}function un(t){const e=hn(t);if(!Yr(e))return ln(1);const i=e.getBoundingClientRect(),{width:o,height:r,$:n}=cn(e);let s=(n?sn(i.width):i.width)/o,a=(n?sn(i.height):i.height)/r;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const pn=ln(0);function gn(t){const e=Vr(t);return en()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:pn}function mn(t,e,i,o){void 0===e&&(e=!1),void 0===i&&(i=!1);const r=t.getBoundingClientRect(),n=hn(t);let s=ln(1);e&&(o?dn(o)&&(s=un(o)):s=un(t));const a=function(t,e,i){return void 0===e&&(e=!1),!(!i||e&&i!==Vr(t))&&e}(n,i,o)?gn(n):ln(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=Vr(n),e=o&&dn(o)?Vr(o):o;let i=t.frameElement;for(;i&&o&&e!==t;){const t=un(i),e=i.getBoundingClientRect(),o=getComputedStyle(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,n=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;l*=t.x,c*=t.y,d*=t.x,h*=t.y,l+=r,c+=n,i=Vr(i).frameElement}}return Tr({width:d,height:h,x:l,y:c})}function bn(t){return dn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function fn(t){return((Jr(t)?t.ownerDocument:t.document)||window.document).documentElement}function yn(t){return mn(fn(t)).left+bn(t).scrollLeft}function vn(t){if("html"===Xr(t))return t;const e=t.assignedSlot||t.parentNode||Zr(t)&&t.host||fn(t);return Zr(e)?e.host:e}function $n(t){const e=vn(t);return on(e)?t.ownerDocument?t.ownerDocument.body:t.body:Yr(e)&&Kr(e)?e:$n(e)}function wn(t,e){var i;void 0===e&&(e=[]);const o=$n(t),r=o===(null==(i=t.ownerDocument)?void 0:i.body),n=Vr(o);return r?e.concat(n,n.visualViewport||[],Kr(o)?o:[]):e.concat(o,wn(o))}function xn(t,e,i){let o;if("viewport"===e)o=function(t,e){const i=Vr(t),o=fn(t),r=i.visualViewport;let n=o.clientWidth,s=o.clientHeight,a=0,l=0;if(r){n=r.width,s=r.height;const t=en();(!t||t&&"fixed"===e)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:n,height:s,x:a,y:l}}(t,i);else if("document"===e)o=function(t){const e=fn(t),i=bn(t),o=t.ownerDocument.body,r=nn(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),n=nn(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-i.scrollLeft+yn(t);const a=-i.scrollTop;return"rtl"===Hr(o).direction&&(s+=nn(e.clientWidth,o.clientWidth)-r),{width:r,height:n,x:s,y:a}}(fn(t));else if(dn(e))o=function(t,e){const i=mn(t,!0,"fixed"===e),o=i.top+t.clientTop,r=i.left+t.clientLeft,n=Yr(t)?un(t):ln(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:o*n.y}}(e,i);else{const i=gn(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return Tr(o)}function kn(t,e){const i=vn(t);return!(i===e||!dn(i)||on(i))&&("fixed"===Hr(i).position||kn(i,e))}function zn(t,e,i){const o=Yr(e),r=fn(e),n="fixed"===i,s=mn(t,!0,n,e);let a={scrollLeft:0,scrollTop:0};const l=ln(0);if(o||!o&&!n)if(("body"!==Xr(e)||Kr(r))&&(a=bn(e)),Yr(e)){const t=mn(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=yn(r));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function Sn(t,e){return Yr(t)&&"fixed"!==Hr(t).position?e?e(t):t.offsetParent:null}function Cn(t,e){const i=Vr(t);if(!Yr(t))return i;let o=Sn(t,e);for(;o&&Qr(o)&&"static"===Hr(o).position;)o=Sn(o,e);return o&&("html"===Xr(o)||"body"===Xr(o)&&"static"===Hr(o).position&&!tn(o))?i:o||function(t){let e=vn(t);for(;Yr(e)&&!on(e);){if(tn(e))return e;e=vn(e)}return null}(t)||i}const Mn={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:i,strategy:o}=t;const r=Yr(i),n=fn(i);if(i===n)return e;let s={scrollLeft:0,scrollTop:0},a=ln(1);const l=ln(0);if((r||!r&&"fixed"!==o)&&(("body"!==Xr(i)||Kr(n))&&(s=bn(i)),Yr(i))){const t=mn(i);a=un(i),l.x=t.x+i.clientLeft,l.y=t.y+i.clientTop}return{width:e.width*a.x,height:e.height*a.y,x:e.x*a.x-s.scrollLeft*a.x+l.x,y:e.y*a.y-s.scrollTop*a.y+l.y}},getDocumentElement:fn,getClippingRect:function(t){let{element:e,boundary:i,rootBoundary:o,strategy:r}=t;const n=[..."clippingAncestors"===i?function(t,e){const i=e.get(t);if(i)return i;let o=wn(t).filter((t=>dn(t)&&"body"!==Xr(t))),r=null;const n="fixed"===Hr(t).position;let s=n?vn(t):t;for(;dn(s)&&!on(s);){const e=Hr(s),i=tn(s);i||"fixed"!==e.position||(r=null),(n?!i&&!r:!i&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||Kr(s)&&!i&&kn(t,s))?o=o.filter((t=>t!==s)):r=e,s=vn(s)}return e.set(t,o),o}(e,this._c):[].concat(i),o],s=n[0],a=n.reduce(((t,i)=>{const o=xn(e,i,r);return t.top=nn(o.top,t.top),t.right=rn(o.right,t.right),t.bottom=rn(o.bottom,t.bottom),t.left=nn(o.left,t.left),t}),xn(e,s,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Cn,getElementRects:async function(t){let{reference:e,floating:i,strategy:o}=t;const r=this.getOffsetParent||Cn,n=this.getDimensions;return{reference:zn(e,await r(i),o),floating:{x:0,y:0,...await n(i)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return cn(t)},getScale:un,isElement:dn,isRTL:function(t){return"rtl"===getComputedStyle(t).direction}};function Wn(t,e,i,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:n=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=o,c=hn(t),d=r||n?[...c?wn(c):[],...wn(e)]:[];d.forEach((t=>{r&&t.addEventListener("scroll",i,{passive:!0}),n&&t.addEventListener("resize",i)}));const h=c&&a?function(t,e){let i,o=null;const r=fn(t);function n(){clearTimeout(i),o&&o.disconnect(),o=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),n();const{left:c,top:d,width:h,height:u}=t.getBoundingClientRect();if(a||e(),!h||!u)return;const p={rootMargin:-an(d)+"px "+-an(r.clientWidth-(c+h))+"px "+-an(r.clientHeight-(d+u))+"px "+-an(c)+"px",threshold:nn(0,rn(1,l))||1};let g=!0;function m(t){const e=t[0].intersectionRatio;if(e!==l){if(!g)return s();e?s(!1,e):i=setTimeout((()=>{s(!1,1e-7)}),100)}g=!1}try{o=new IntersectionObserver(m,{...p,root:r.ownerDocument})}catch(t){o=new IntersectionObserver(m,p)}o.observe(t)}(!0),n}(c,i):null;let u,p=-1,g=null;s&&(g=new ResizeObserver((t=>{let[o]=t;o&&o.target===c&&g&&(g.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{g&&g.observe(e)}))),i()})),c&&!l&&g.observe(c),g.observe(e));let m=l?mn(t):null;return l&&function e(){const o=mn(t);!m||o.x===m.x&&o.y===m.y&&o.width===m.width&&o.height===m.height||i();m=o,u=requestAnimationFrame(e)}(),i(),()=>{d.forEach((t=>{r&&t.removeEventListener("scroll",i),n&&t.removeEventListener("resize",i)})),h&&h(),g&&g.disconnect(),g=null,l&&cancelAnimationFrame(u)}}const An=(t,e,i)=>{const o=new Map,r={platform:Mn,...i},n={...r.platform,_c:o};return(async(t,e,i)=>{const{placement:o="bottom",strategy:r="absolute",middleware:n=[],platform:s}=i,a=n.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:d,y:h}=Br(c,o,l),u=o,p={},g=0;for(let i=0;i<a.length;i++){const{name:n,fn:m}=a[i],{x:b,y:f,data:y,reset:v}=await m({x:d,y:h,initialPlacement:o,placement:u,strategy:r,middlewareData:p,rects:c,platform:s,elements:{reference:t,floating:e}});d=null!=b?b:d,h=null!=f?f:h,p={...p,[n]:{...p[n],...y}},v&&g<=50&&(g++,"object"==typeof v&&(v.placement&&(u=v.placement),v.rects&&(c=!0===v.rects?await s.getElementRects({reference:t,floating:e,strategy:r}):v.rects),({x:d,y:h}=Br(c,u,l))),i=-1)}return{x:d,y:h,placement:u,strategy:r,middlewareData:p}})(t,e,{...r,platform:n})};var jn,Bn;const En={top:"",bottom:"",left:"",right:""};class Rn extends be{static get properties(){return{position:{type:String,reflect:!0},placement:{type:String},open:{type:Boolean,reflect:!0}}}constructor(){super(),jn.set(this,void 0),this.getFloatingOffset=()=>20,this.renderArrow=()=>k`<span id="arrow">
|
|
2130
|
+
`]],window.customElements.define("m-toggle",vr);function Mr(t,e){return"function"==typeof t?t(e):t}function Wr(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function Ar(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function jr(t,e){var o;void 0===e&&(e={});const{x:i,y:r,platform:n,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:u=!1,padding:p=0}=Mr(e,t),g=Wr(p),m=a[u?"floating"===h?"reference":"floating":h],b=Ar(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})),f="floating"===h?{...s.floating,x:i,y:r}:s.reference,y=await(null==n.getOffsetParent?void 0:n.getOffsetParent(a.floating)),v=await(null==n.isElement?void 0:n.isElement(y))&&await(null==n.getScale?void 0:n.getScale(y))||{x:1,y:1},$=Ar(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:f,offsetParent:y,strategy:l}):f);return{top:(b.top-$.top+g.top)/v.y,bottom:($.bottom-b.bottom+g.bottom)/v.y,left:(b.left-$.left+g.left)/v.x,right:($.right-b.right+g.right)/v.x}}const Br=Math.min,Er=Math.max;function Pr(t,e,o){return Er(t,Br(e,o))}const Rr=t=>({name:"arrow",options:t,async fn(e){const{x:o,y:i,placement:r,rects:n,platform:s,elements:a}=e,{element:l,padding:c=0}=Mr(t,e)||{};if(null==l)return{};const d=Wr(c),h={x:o,y:i},u=Sr(r),p=kr(u),g=await s.getDimensions(l),m="y"===u,b=m?"top":"left",f=m?"bottom":"right",y=m?"clientHeight":"clientWidth",v=n.reference[p]+n.reference[u]-h[u]-n.floating[p],$=h[u]-n.reference[u],w=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l));let x=w?w[y]:0;x&&await(null==s.isElement?void 0:s.isElement(w))||(x=a.floating[y]||n.floating[p]);const k=v/2-$/2,z=x/2-g[p]/2-1,S=Br(d[b],z),C=Br(d[f],z),M=S,W=x-g[p]-C,A=x/2-g[p]/2+k,j=Pr(M,A,W),B=null!=xr(r)&&A!=j&&n.reference[p]/2-(A<M?S:C)-g[p]/2<0?A<M?M-A:W-A:0;return{[u]:h[u]-B,data:{[u]:j,centerOffset:A-j+B}}}}),Tr={left:"right",right:"left",bottom:"top",top:"bottom"};function _r(t){return t.replace(/left|right|bottom|top/g,(t=>Tr[t]))}const Or={start:"end",end:"start"};function qr(t){return t.replace(/start|end/g,(t=>Or[t]))}const Dr=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var o;const{placement:i,middlewareData:r,rects:n,initialPlacement:s,platform:a,elements:l}=e,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...m}=Mr(t,e),b=zr(i),f=zr(s)===s,y=await(null==a.isRTL?void 0:a.isRTL(l.floating)),v=h||(f||!g?[_r(s)]:function(t){const e=_r(t);return[qr(t),e,qr(e)]}(s));h||"none"===p||v.push(...function(t,e,o,i){const r=xr(t);let n=function(t,e,o){const i=["left","right"],r=["right","left"],n=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return o?e?r:i:e?i:r;case"left":case"right":return e?n:s;default:return[]}}(zr(t),"start"===o,i);return r&&(n=n.map((t=>t+"-"+r)),e&&(n=n.concat(n.map(qr)))),n}(s,g,p,y));const $=[s,...v],w=await jr(e,m),x=[];let k=(null==(o=r.flip)?void 0:o.overflows)||[];if(c&&x.push(w[b]),d){const{main:t,cross:e}=function(t,e,o){void 0===o&&(o=!1);const i=xr(t),r=Sr(t),n=kr(r);let s="x"===r?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[n]>e.floating[n]&&(s=_r(s)),{main:s,cross:_r(s)}}(i,n,y);x.push(w[t],w[e])}if(k=[...k,{placement:i,overflows:x}],!x.every((t=>t<=0))){var z,S;const t=((null==(z=r.flip)?void 0:z.index)||0)+1,e=$[t];if(e)return{data:{index:t,overflows:k},reset:{placement:e}};let o=null==(S=k.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:S.placement;if(!o)switch(u){case"bestFit":{var C;const t=null==(C=k.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:C[0];t&&(o=t);break}case"initialPlacement":o=s}if(i!==o)return{reset:{placement:o}}}return{}}}};const Ur=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){const{x:o,y:i}=e,r=await async function(t,e){const{placement:o,platform:i,elements:r}=t,n=await(null==i.isRTL?void 0:i.isRTL(r.floating)),s=zr(o),a=xr(o),l="x"===Sr(o),c=["left","top"].includes(s)?-1:1,d=n&&l?-1:1,h=Mr(e,t);let{mainAxis:u,crossAxis:p,alignmentAxis:g}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return a&&"number"==typeof g&&(p="end"===a?-1*g:g),l?{x:p*d,y:u*c}:{x:u*c,y:p*d}}(e,t);return{x:o+r.x,y:i+r.y,data:r}}}};function Lr(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Nr(t){return Lr(t).getComputedStyle(t)}function Fr(t){return t instanceof Lr(t).Node}function Ir(t){return Fr(t)?(t.nodeName||"").toLowerCase():"#document"}function Gr(t){return t instanceof Lr(t).HTMLElement}function Vr(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Lr(t).ShadowRoot||t instanceof ShadowRoot)}function Hr(t){const{overflow:e,overflowX:o,overflowY:i,display:r}=Nr(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(r)}function Jr(t){return["table","td","th"].includes(Ir(t))}function Xr(t){const e=Yr(),o=Nr(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 Yr(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Zr(t){return["html","body","#document"].includes(Ir(t))}const Kr=Math.min,Qr=Math.max,tn=Math.round,en=Math.floor,on=t=>({x:t,y:t});function rn(t){const e=Nr(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=Gr(t),n=r?t.offsetWidth:o,s=r?t.offsetHeight:i,a=tn(o)!==n||tn(i)!==s;return a&&(o=n,i=s),{width:o,height:i,$:a}}function nn(t){return t instanceof Lr(t).Element}function sn(t){return nn(t)?t:t.contextElement}function an(t){const e=sn(t);if(!Gr(e))return on(1);const o=e.getBoundingClientRect(),{width:i,height:r,$:n}=rn(e);let s=(n?tn(o.width):o.width)/i,a=(n?tn(o.height):o.height)/r;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const ln=on(0);function cn(t){const e=Lr(t);return Yr()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:ln}function dn(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),n=sn(t);let s=on(1);e&&(i?nn(i)&&(s=an(i)):s=an(t));const a=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==Lr(t))&&e}(n,o,i)?cn(n):on(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=Lr(n),e=i&&nn(i)?Lr(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=an(o),e=o.getBoundingClientRect(),i=getComputedStyle(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,n=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,d*=t.x,h*=t.y,l+=r,c+=n,o=Lr(o).frameElement}}return Ar({width:d,height:h,x:l,y:c})}function hn(t){return nn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function un(t){return((Fr(t)?t.ownerDocument:t.document)||window.document).documentElement}function pn(t){return dn(un(t)).left+hn(t).scrollLeft}function gn(t){if("html"===Ir(t))return t;const e=t.assignedSlot||t.parentNode||Vr(t)&&t.host||un(t);return Vr(e)?e.host:e}function mn(t){const e=gn(t);return Zr(e)?t.ownerDocument?t.ownerDocument.body:t.body:Gr(e)&&Hr(e)?e:mn(e)}function bn(t,e){var o;void 0===e&&(e=[]);const i=mn(t),r=i===(null==(o=t.ownerDocument)?void 0:o.body),n=Lr(i);return r?e.concat(n,n.visualViewport||[],Hr(i)?i:[]):e.concat(i,bn(i))}function fn(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=Lr(t),i=un(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=Yr();(!t||t&&"fixed"===e)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:n,height:s,x:a,y:l}}(t,o);else if("document"===e)i=function(t){const e=un(t),o=hn(t),i=t.ownerDocument.body,r=Qr(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=Qr(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let s=-o.scrollLeft+pn(t);const a=-o.scrollTop;return"rtl"===Nr(i).direction&&(s+=Qr(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:s,y:a}}(un(t));else if(nn(e))i=function(t,e){const o=dn(t,!0,"fixed"===e),i=o.top+t.clientTop,r=o.left+t.clientLeft,n=Gr(t)?an(t):on(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:i*n.y}}(e,o);else{const o=cn(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return Ar(i)}function yn(t,e){const o=gn(t);return!(o===e||!nn(o)||Zr(o))&&("fixed"===Nr(o).position||yn(o,e))}function vn(t,e,o){const i=Gr(e),r=un(e),n="fixed"===o,s=dn(t,!0,n,e);let a={scrollLeft:0,scrollTop:0};const l=on(0);if(i||!i&&!n)if(("body"!==Ir(e)||Hr(r))&&(a=hn(e)),Gr(e)){const t=dn(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=pn(r));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function $n(t,e){return Gr(t)&&"fixed"!==Nr(t).position?e?e(t):t.offsetParent:null}function wn(t,e){const o=Lr(t);if(!Gr(t))return o;let i=$n(t,e);for(;i&&Jr(i)&&"static"===Nr(i).position;)i=$n(i,e);return i&&("html"===Ir(i)||"body"===Ir(i)&&"static"===Nr(i).position&&!Xr(i))?o:i||function(t){let e=gn(t);for(;Gr(e)&&!Zr(e);){if(Xr(e))return e;e=gn(e)}return null}(t)||o}const xn={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:i}=t;const r=Gr(o),n=un(o);if(o===n)return e;let s={scrollLeft:0,scrollTop:0},a=on(1);const l=on(0);if((r||!r&&"fixed"!==i)&&(("body"!==Ir(o)||Hr(n))&&(s=hn(o)),Gr(o))){const t=dn(o);a=an(o),l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}return{width:e.width*a.x,height:e.height*a.y,x:e.x*a.x-s.scrollLeft*a.x+l.x,y:e.y*a.y-s.scrollTop*a.y+l.y}},getDocumentElement:un,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:r}=t;const n=[..."clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let i=bn(t).filter((t=>nn(t)&&"body"!==Ir(t))),r=null;const n="fixed"===Nr(t).position;let s=n?gn(t):t;for(;nn(s)&&!Zr(s);){const e=Nr(s),o=Xr(s);o||"fixed"!==e.position||(r=null),(n?!o&&!r:!o&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||Hr(s)&&!o&&yn(t,s))?i=i.filter((t=>t!==s)):r=e,s=gn(s)}return e.set(t,i),i}(e,this._c):[].concat(o),i],s=n[0],a=n.reduce(((t,o)=>{const i=fn(e,o,r);return t.top=Qr(i.top,t.top),t.right=Kr(i.right,t.right),t.bottom=Kr(i.bottom,t.bottom),t.left=Qr(i.left,t.left),t}),fn(e,s,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:wn,getElementRects:async function(t){let{reference:e,floating:o,strategy:i}=t;const r=this.getOffsetParent||wn,n=this.getDimensions;return{reference:vn(e,await r(o),i),floating:{x:0,y:0,...await n(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return rn(t)},getScale:an,isElement:nn,isRTL:function(t){return"rtl"===getComputedStyle(t).direction}};function kn(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=sn(t),d=r||n?[...c?bn(c):[],...bn(e)]:[];d.forEach((t=>{r&&t.addEventListener("scroll",o,{passive:!0}),n&&t.addEventListener("resize",o)}));const h=c&&a?function(t,e){let o,i=null;const r=un(t);function n(){clearTimeout(o),i&&i.disconnect(),i=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),n();const{left:c,top:d,width:h,height:u}=t.getBoundingClientRect();if(a||e(),!h||!u)return;const p={rootMargin:-en(d)+"px "+-en(r.clientWidth-(c+h))+"px "+-en(r.clientHeight-(d+u))+"px "+-en(c)+"px",threshold:Qr(0,Kr(1,l))||1};let g=!0;function m(t){const e=t[0].intersectionRatio;if(e!==l){if(!g)return s();e?s(!1,e):o=setTimeout((()=>{s(!1,1e-7)}),100)}g=!1}try{i=new IntersectionObserver(m,{...p,root:r.ownerDocument})}catch(t){i=new IntersectionObserver(m,p)}i.observe(t)}(!0),n}(c,o):null;let u,p=-1,g=null;s&&(g=new ResizeObserver((t=>{let[i]=t;i&&i.target===c&&g&&(g.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{g&&g.observe(e)}))),o()})),c&&!l&&g.observe(c),g.observe(e));let m=l?dn(t):null;return l&&function e(){const i=dn(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(),()=>{d.forEach((t=>{r&&t.removeEventListener("scroll",o),n&&t.removeEventListener("resize",o)})),h&&h(),g&&g.disconnect(),g=null,l&&cancelAnimationFrame(u)}}const zn=(t,e,o)=>{const i=new Map,r={platform:xn,...o},n={...r.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:s}=o,a=n.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:d,y:h}=Cr(c,i,l),u=i,p={},g=0;for(let o=0;o<a.length;o++){const{name:n,fn:m}=a[o],{x:b,y:f,data:y,reset:v}=await m({x:d,y:h,initialPlacement:i,placement:u,strategy:r,middlewareData:p,rects:c,platform:s,elements:{reference:t,floating:e}});d=null!=b?b:d,h=null!=f?f:h,p={...p,[n]:{...p[n],...y}},v&&g<=50&&(g++,"object"==typeof v&&(v.placement&&(u=v.placement),v.rects&&(c=!0===v.rects?await s.getElementRects({reference:t,floating:e,strategy:r}):v.rects),({x:d,y:h}=Cr(c,u,l))),o=-1)}return{x:d,y:h,placement:u,strategy:r,middlewareData:p}})(t,e,{...r,platform:n})};var Sn,Cn;const Mn={top:"",bottom:"",left:"",right:""};class Wn extends be{static get properties(){return{position:{type:String,reflect:!0},placement:{type:String},open:{type:Boolean,reflect:!0}}}constructor(){super(),Sn.set(this,void 0),this.getFloatingOffset=()=>20,this.renderArrow=()=>k`<span id="arrow">
|
|
2131
2131
|
<svg viewBox="0 0 20 10">
|
|
2132
2132
|
<polygon stroke-width="0" points="0,10 20,10 10,0" />
|
|
2133
2133
|
</svg>
|
|
2134
|
-
</span>`,this.reposition=async e=>{var i
|
|
2134
|
+
</span>`,this.reposition=async e=>{var o,i;if(null==this.floating||null==this.reference)return;const{x:r,y:n,placement:s,middlewareData:a}=await zn(this.reference,this.floating,{strategy:null!==(o=this.position)&&void 0!==o?o:"fixed",placement:null!==(i=this.placement)&&void 0!==i?i:"bottom-start",middleware:[Ur(this.getFloatingOffset()),Dr(),(void 0===l&&(l={}),{name:"shift",options:l,async fn(t){const{x:e,y:o,placement:i}=t,{mainAxis:r=!0,crossAxis:n=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...a}=Mr(l,t),c={x:e,y:o},d=await jr(t,a),h=Sr(zr(i)),u="x"===h?"y":"x";let p=c[h],g=c[u];if(r){const t="y"===h?"bottom":"right";p=Pr(p+d["y"===h?"top":"left"],p,p-d[t])}if(n){const t="y"===u?"bottom":"right";g=Pr(g+d["y"===u?"top":"left"],g,g-d[t])}const m=s.fn({...t,[h]:p,[u]:g});return{...m,data:{x:m.x-e,y:m.y-o}}}}),this.arrow?Rr({element:this.arrow,padding:16}):void 0]});var l;Object.assign(this.floating.style,{top:`${n}px`,left:`${r}px`}),null!=this.arrow&&a.arrow&&Object.assign(this.arrow.style,t(this,Cn,"f").call(this,s,a.arrow)),this.emit("m-popover-reposition",{detail:{reason:e}})},Cn.set(this,((t,e)=>{if(null==this.floating||null==this.reference||null==this.arrow||null==e)return{};const[o,i]=t.split("-"),{x:r,y:n}=e,s={top:"bottom",bottom:"top",left:"right",right:"left"}[o],a={top:"180deg",bottom:"0deg",left:"90deg",right:"-90deg"}[o],l=null!=i,c=this.reference.offsetWidth>this.floating.offsetWidth,d=this.reference.offsetHeight>this.floating.offsetHeight,h=["top","bottom"].includes(o),u=l&&(h?c:d),p=this.reference.getBoundingClientRect(),g=`calc(var(--m-popover-arrow-offset) + ${{top:p.height,bottom:p.height,right:p.width,left:p.width}[s]}px + ${this.getFloatingOffset()}px)`;let m={transform:`rotate(${a})`,...Mn};if(u){const e={"top-start":"left","top-end":"right","bottom-start":"left","bottom-end":"right"}[t];m={...m,[s]:g,[e]:"10px"}}else m={...m,left:null!=r?`${r}px`:"",top:null!=n?`${n}px`:"",[s]:g};return m})),this.position="fixed",this.placement="top-end",this.open=!1}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=t(this,Sn,"f"))||void 0===e||e.call(this)}firstUpdated(){this.open&&this.reposition("show"),e(this,Sn,kn(this.reference,this.floating,(()=>{this.reposition("auto")})),"f")}updated(t){super.updated(t),this.open&&null!=t.get("placement")&&null!=this.placement&&this.reposition("placement")}get reference(){return this.getReferenceElement()}get floating(){return this.getFloatingElement()}get arrow(){return this.getArrowElement()}show(){this.open||(this.open=!0,this.reposition("show"))}hide(){this.open&&(this.open=!1)}toggle(){this.open?this.hide():this.show()}}var An,jn,Bn,En,Pn,Rn,Tn,_n,On;Sn=new WeakMap,Cn=new WeakMap;class qn extends Wn{static get properties(){return{...Wn.properties,trigger:{type:String,converter:{fromAttribute:wr}}}}constructor(){super(),An.set(this,void 0),jn.set(this,void 0),Bn.set(this,(()=>{t(this,On,"f").call(this,"focus")&&(clearTimeout(t(this,jn,"f")),e(this,jn,window.setTimeout((()=>this.show()),450),"f"))})),En.set(this,(()=>{t(this,On,"f").call(this,"focus")&&(clearTimeout(t(this,jn,"f")),e(this,jn,window.setTimeout((()=>this.hide()),450),"f"))})),Pn.set(this,(()=>{t(this,On,"f").call(this,"click")&&this.toggle()})),Rn.set(this,(t=>{this.open&&"Escape"===t.key&&(t.stopPropagation(),this.hide())})),Tn.set(this,(()=>{t(this,On,"f").call(this,"hover")&&(clearTimeout(t(this,An,"f")),e(this,An,window.setTimeout((()=>this.show()),450),"f"))})),_n.set(this,(()=>{t(this,On,"f").call(this,"hover")&&(clearTimeout(t(this,An,"f")),e(this,An,window.setTimeout((()=>this.hide()),450),"f"))})),On.set(this,(t=>this.trigger.includes(t))),this.position="fixed",this.placement="top-start",this.trigger=["hover","focus"]}connectedCallback(){super.connectedCallback(),this.addEventListener("blur",t(this,En,"f"),!0),this.addEventListener("click",t(this,Pn,"f")),this.addEventListener("focus",t(this,Bn,"f"),!0),this.addEventListener("keydown",t(this,Rn,"f")),this.addEventListener("mouseout",t(this,_n,"f")),this.addEventListener("mouseover",t(this,Tn,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("blur",t(this,En,"f"),!0),this.removeEventListener("focus",t(this,Bn,"f"),!0),this.removeEventListener("click",t(this,Pn,"f")),this.removeEventListener("keydown",t(this,Rn,"f")),this.removeEventListener("mouseover",t(this,Tn,"f")),this.removeEventListener("mouseout",t(this,_n,"f"))}getReferenceElement(){const t=this.shadowRoot.querySelector('slot[name="reference"]'),[e]=t.assignedElements({flatten:!0});return e}getFloatingElement(){const t=this.shadowRoot.querySelector('slot[name="floating"]'),[e]=t.assignedElements({flatten:!0});return e}getArrowElement(){return this.shadowRoot.querySelector("#arrow")}render(){return k`
|
|
2135
2135
|
${this.renderArrow()}
|
|
2136
2136
|
<slot name="reference" aria-describedby="floating"></slot>
|
|
2137
2137
|
<slot
|
|
@@ -2140,7 +2140,7 @@ let Ve=class{constructor(t,e,i,o){var r;if(this.subscribe=!1,this.provided=!1,th
|
|
|
2140
2140
|
role="tooltip"
|
|
2141
2141
|
aria-live=${this.open?"polite":"off"}
|
|
2142
2142
|
></slot>
|
|
2143
|
-
`}}
|
|
2143
|
+
`}}An=new WeakMap,jn=new WeakMap,Bn=new WeakMap,En=new WeakMap,Pn=new WeakMap,Rn=new WeakMap,Tn=new WeakMap,_n=new WeakMap,On=new WeakMap,qn.styles=[[[Q`
|
|
2144
2144
|
:host {
|
|
2145
2145
|
--m-popover-background-color: ${Ot("color-background-secondary-inverted")};
|
|
2146
2146
|
--m-popover-border-radius: ${_t("border-radius-m")};
|
|
@@ -2231,5 +2231,5 @@ let Ve=class{constructor(t,e,i,o){var r;if(this.subscribe=!1,this.provided=!1,th
|
|
|
2231
2231
|
:host {
|
|
2232
2232
|
display: inline-block;
|
|
2233
2233
|
}
|
|
2234
|
-
`]],window.customElements.define("m-tooltip",
|
|
2235
|
-
//# sourceMappingURL=index-
|
|
2234
|
+
`]],window.customElements.define("m-tooltip",qn);const Dn=["top","left","right","bottom","top-start","top-end","bottom-start","bottom-end"];exports.ALIGN_ITEMS_VALUES=["center","flex-start","flex-end","stretch"],exports.Banner=Pe,exports.BannerActionPrimary=de,exports.BannerActionSecondary=he,exports.BannerActions=ue,exports.BannerDescription=pe,exports.BannerIcon=ge,exports.BannerTitle=me,exports.Box=zo,exports.Button=ce,exports.Card=Re,exports.CardBody=Te,exports.CardDivider=De,exports.CardSubtitle=_e,exports.CardTitle=Oe,exports.Checkbox=Ie,exports.CloseButton=Ce,exports.DIALOG_SIZES=["small","medium","large","extra-large"],exports.DIALOG_VARIANTS=["neutral","success","warning","danger"],exports.Dialog=lo,exports.DialogActionPrimary=uo,exports.DialogActionSecondary=po,exports.DialogActionTertiary=go,exports.DialogActions=vo,exports.DialogBody=$o,exports.DialogClose=wo,exports.DialogFooter=xo,exports.DialogHeader=Oo,exports.Divider=qe,exports.FIELD_STATUSES=["default","danger"],exports.Field=Vo,exports.FieldHint=Io,exports.FieldLabel=Go,exports.Grid=Wo,exports.Group=yo,exports.JUSTIFY_CONTENT_VALUES=["center","flex-start","flex-end","space-between","space-around","space-evenly"],exports.Link=Qo,exports.ProgressBar=ii,exports.ProgressBarCountdown=ri,exports.Radio=hi,exports.RadioGroup=ji,exports.Section=Bi,exports.SectionTitle=Ei,exports.Sidebar=Bo,exports.Stack=Co,exports.Switcher=Po,exports.TOOLTIP_PLACEMENT_VALUES=Dn,exports.Tab=or,exports.TabPanel=ir,exports.Tabs=er,exports.Tag=rr,exports.Text=je,exports.TextField=nr,exports.Toggle=vr,exports.ToggleGroup=yr,exports.Tooltip=qn,exports.b=z,exports.defaultBoxProps=ko,exports.defaultGridProps=Mo,exports.defaultGroupProps=fo,exports.defaultSidebarProps=Ao,exports.defaultStackProps=So,exports.defaultSwitcherProps=Eo;
|
|
2235
|
+
//# sourceMappingURL=index-7fc0d6ca.js.map
|