@momentum-design/components 0.37.1 → 0.37.3
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/browser/index.js +94 -104
- package/dist/browser/index.js.map +3 -3
- package/dist/components/avatar/avatar.component.js +1 -1
- package/dist/components/textarea/textarea.component.d.ts +0 -29
- package/dist/components/textarea/textarea.component.js +0 -63
- package/dist/components/textarea/textarea.constants.d.ts +0 -5
- package/dist/components/textarea/textarea.constants.js +0 -7
- package/dist/components/textarea/textarea.styles.js +4 -1
- package/dist/custom-elements.json +1260 -1340
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/textarea/index.d.ts +0 -2
- package/dist/react/textarea/index.js +0 -2
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
"use strict";(()=>{var Yn=Object.defineProperty;var qn=Object.getOwnPropertyDescriptor;var l=(o,t,e,r)=>{for(var i=r>1?void 0:r?qn(t,e):t,s=o.length-1,a;s>=0;s--)(a=o[s])&&(i=(r?a(t,e,i):a(i))||i);return r&&i&&Yn(t,e,i),i};var
|
2
|
-
\f\r]`,
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ss=/'/g,as=/"/g,ds=/^(?:script|style|textarea|title)$/i,Vo=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),h=Vo(1),
|
1
|
+
"use strict";(()=>{var Yn=Object.defineProperty;var qn=Object.getOwnPropertyDescriptor;var l=(o,t,e,r)=>{for(var i=r>1?void 0:r?qn(t,e):t,s=o.length-1,a;s>=0;s--)(a=o[s])&&(i=(r?a(t,e,i):a(i))||i);return r&&i&&Yn(t,e,i),i};var Rr=globalThis,Nr=Rr.ShadowRoot&&(Rr.ShadyCSS===void 0||Rr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,No=Symbol(),Zi=new WeakMap,Qt=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==No)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Nr&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=Zi.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&Zi.set(e,t))}return t}toString(){return this.cssText}},ji=o=>new Qt(typeof o=="string"?o:o+"",void 0,No),f=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((r,i,s)=>r+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+o[s+1],o[0]);return new Qt(e,o,No)},Oo=(o,t)=>{if(Nr)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),i=Rr.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=e.cssText,o.appendChild(r)}},Or=Nr?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return ji(e)})(o):o;var{is:Wn,defineProperty:Xn,getOwnPropertyDescriptor:Zn,getOwnPropertyNames:jn,getOwnPropertySymbols:Kn,getPrototypeOf:Qn}=Object,Ve=globalThis,Ki=Ve.trustedTypes,Jn=Ki?Ki.emptyScript:"",Mo=Ve.reactiveElementPolyfillSupport,Jt=(o,t)=>o,er={toAttribute(o,t){switch(t){case Boolean:o=o?Jn:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},Mr=(o,t)=>!Wn(o,t),Qi={attribute:!0,type:String,converter:er,reflect:!1,hasChanged:Mr},Ji,es;(Ji=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(es=Ve.litPropertyMetadata)!=null||(Ve.litPropertyMetadata=new WeakMap);var Se=class extends HTMLElement{static addInitializer(t){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Qi){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),i=this.getPropertyDescriptor(t,r,e);i!==void 0&&Xn(this.prototype,t,i)}}static getPropertyDescriptor(t,e,r){var a;let{get:i,set:s}=(a=Zn(this.prototype,t))!=null?a:{get(){return this[e]},set(n){this[e]=n}};return{get(){return i==null?void 0:i.call(this)},set(n){let d=i==null?void 0:i.call(this);s.call(this,n),this.requestUpdate(t,d,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:Qi}static _$Ei(){if(this.hasOwnProperty(Jt("elementProperties")))return;let t=Qn(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Jt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Jt("properties"))){let e=this.properties,r=[...jn(e),...Kn(e)];for(let i of r)this.createProperty(i,e[i])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,i]of e)this.elementProperties.set(r,i)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let i=this._$Eu(e,r);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let r=new Set(t.flat(1/0).reverse());for(let i of r)e.unshift(Or(i))}else t!==void 0&&e.push(Or(t));return e}static _$Eu(t,e){let r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e,r;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((r=t.hostConnected)==null||r.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var e;let t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Oo(t,this.constructor.elementStyles),t}connectedCallback(){var t,e;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(r=>{var i;return(i=r.hostConnected)==null?void 0:i.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostDisconnected)==null?void 0:r.call(e)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EC(t,e){var s;let r=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,r);if(i!==void 0&&r.reflect===!0){let a=(((s=r.converter)==null?void 0:s.toAttribute)!==void 0?r.converter:er).toAttribute(e,r.type);this._$Em=t,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(t,e){var s;let r=this.constructor,i=r._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let a=r.getPropertyOptions(i),n=typeof a.converter=="function"?{fromAttribute:a.converter}:((s=a.converter)==null?void 0:s.fromAttribute)!==void 0?a.converter:er;this._$Em=i,this[i]=n.fromAttribute(e,a.type),this._$Em=null}}requestUpdate(t,e,r){var i;if(t!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(t)),!((i=r.hasChanged)!=null?i:Mr)(this[t],e))return;this.P(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,r){var i;this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$Em!==t&&((i=this._$Ej)!=null?i:this._$Ej=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[a,n]of this._$Ep)this[a]=n;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[a,n]of s)n.wrapped!==!0||this._$AL.has(a)||this[a]===void 0||this.P(a,this[a],n)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(s=>{var a;return(a=s.hostUpdate)==null?void 0:a.call(s)}),this.update(e)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(r=>{var i;return(i=r.hostUpdated)==null?void 0:i.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}},ts;Se.elementStyles=[],Se.shadowRootOptions={mode:"open"},Se[Jt("elementProperties")]=new Map,Se[Jt("finalized")]=new Map,Mo==null||Mo({ReactiveElement:Se}),((ts=Ve.reactiveElementVersions)!=null?ts:Ve.reactiveElementVersions=[]).push("2.0.4");var rr=globalThis,zr=rr.trustedTypes,rs=zr?zr.createPolicy("lit-html",{createHTML:o=>o}):void 0,$o="$lit$",_e=`lit$${Math.random().toFixed(9).slice(2)}$`,Po="?"+_e,el=`<${Po}>`,Qe=document,or=()=>Qe.createComment(""),ir=o=>o===null||typeof o!="object"&&typeof o!="function",Uo=Array.isArray,cs=o=>Uo(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",zo=`[
|
2
|
+
\f\r]`,tr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,os=/-->/g,is=/>/g,je=RegExp(`>|${zo}(?:([^\\s"'>=/]+)(${zo}*=${zo}*(?:[^
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ss=/'/g,as=/"/g,ds=/^(?:script|style|textarea|title)$/i,Vo=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),h=Vo(1),ld=Vo(2),cd=Vo(3),Ie=Symbol.for("lit-noChange"),v=Symbol.for("lit-nothing"),ns=new WeakMap,Ke=Qe.createTreeWalker(Qe,129);function ms(o,t){if(!Uo(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return rs!==void 0?rs.createHTML(t):t}var ps=(o,t)=>{let e=o.length-1,r=[],i,s=t===2?"<svg>":t===3?"<math>":"",a=tr;for(let n=0;n<e;n++){let d=o[n],m,p,u=-1,x=0;for(;x<d.length&&(a.lastIndex=x,p=a.exec(d),p!==null);)x=a.lastIndex,a===tr?p[1]==="!--"?a=os:p[1]!==void 0?a=is:p[2]!==void 0?(ds.test(p[2])&&(i=RegExp("</"+p[2],"g")),a=je):p[3]!==void 0&&(a=je):a===je?p[0]===">"?(a=i!=null?i:tr,u=-1):p[1]===void 0?u=-2:(u=a.lastIndex-p[2].length,m=p[1],a=p[3]===void 0?je:p[3]==='"'?as:ss):a===as||a===ss?a=je:a===os||a===is?a=tr:(a=je,i=void 0);let b=a===je&&o[n+1].startsWith("/>")?" ":"";s+=a===tr?d+el:u>=0?(r.push(m),d.slice(0,u)+$o+d.slice(u)+_e+b):d+_e+(u===-2?n:b)}return[ms(o,s+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},sr=class o{constructor({strings:t,_$litType$:e},r){let i;this.parts=[];let s=0,a=0,n=t.length-1,d=this.parts,[m,p]=ps(t,e);if(this.el=o.createElement(m,r),Ke.currentNode=this.el.content,e===2||e===3){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(i=Ke.nextNode())!==null&&d.length<n;){if(i.nodeType===1){if(i.hasAttributes())for(let u of i.getAttributeNames())if(u.endsWith($o)){let x=p[a++],b=i.getAttribute(u).split(_e),E=/([.?@])?(.*)/.exec(x);d.push({type:1,index:s,name:E[2],strings:b,ctor:E[1]==="."?$r:E[1]==="?"?Pr:E[1]==="@"?Ur:et}),i.removeAttribute(u)}else u.startsWith(_e)&&(d.push({type:6,index:s}),i.removeAttribute(u));if(ds.test(i.tagName)){let u=i.textContent.split(_e),x=u.length-1;if(x>0){i.textContent=zr?zr.emptyScript:"";for(let b=0;b<x;b++)i.append(u[b],or()),Ke.nextNode(),d.push({type:2,index:++s});i.append(u[x],or())}}}else if(i.nodeType===8)if(i.data===Po)d.push({type:2,index:s});else{let u=-1;for(;(u=i.data.indexOf(_e,u+1))!==-1;)d.push({type:7,index:s}),u+=_e.length-1}s++}}static createElement(t,e){let r=Qe.createElement("template");return r.innerHTML=t,r}};function Je(o,t,e=o,r){var a,n,d;if(t===Ie)return t;let i=r!==void 0?(a=e.o)==null?void 0:a[r]:e.l,s=ir(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==s&&((n=i==null?void 0:i._$AO)==null||n.call(i,!1),s===void 0?i=void 0:(i=new s(o),i._$AT(o,e,r)),r!==void 0?((d=e.o)!=null?d:e.o=[])[r]=i:e.l=i),i!==void 0&&(t=Je(o,i._$AS(o,t.values),i,r)),t}var Dr=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var m;let{el:{content:e},parts:r}=this._$AD,i=((m=t==null?void 0:t.creationScope)!=null?m:Qe).importNode(e,!0);Ke.currentNode=i;let s=Ke.nextNode(),a=0,n=0,d=r[0];for(;d!==void 0;){if(a===d.index){let p;d.type===2?p=new wt(s,s.nextSibling,this,t):d.type===1?p=new d.ctor(s,d.name,d.strings,this,t):d.type===6&&(p=new Vr(s,this,t)),this._$AV.push(p),d=r[++n]}a!==(d==null?void 0:d.index)&&(s=Ke.nextNode(),a++)}return Ke.currentNode=Qe,i}p(t){let e=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}},wt=class o{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this.v}constructor(t,e,r,i){var s;this.type=2,this._$AH=v,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=i,this.v=(s=i==null?void 0:i.isConnected)!=null?s:!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Je(this,t,e),ir(t)?t===v||t==null||t===""?(this._$AH!==v&&this._$AR(),this._$AH=v):t!==this._$AH&&t!==Ie&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):cs(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==v&&ir(this._$AH)?this._$AA.nextSibling.data=t:this.T(Qe.createTextNode(t)),this._$AH=t}$(t){var s;let{values:e,_$litType$:r}=t,i=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=sr.createElement(ms(r.h,r.h[0]),this.options)),r);if(((s=this._$AH)==null?void 0:s._$AD)===i)this._$AH.p(e);else{let a=new Dr(i,this),n=a.u(this.options);a.p(e),this.T(n),this._$AH=a}}_$AC(t){let e=ns.get(t.strings);return e===void 0&&ns.set(t.strings,e=new sr(t)),e}k(t){Uo(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,i=0;for(let s of t)i===e.length?e.push(r=new o(this.O(or()),this.O(or()),this,this.options)):r=e[i],r._$AI(s),i++;i<e.length&&(this._$AR(r&&r._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,e);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this.v=t,(e=this._$AP)==null||e.call(this,t))}},et=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,i,s){this.type=1,this._$AH=v,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=v}_$AI(t,e=this,r,i){let s=this.strings,a=!1;if(s===void 0)t=Je(this,t,e,0),a=!ir(t)||t!==this._$AH&&t!==Ie,a&&(this._$AH=t);else{let n=t,d,m;for(t=s[0],d=0;d<s.length-1;d++)m=Je(this,n[r+d],e,d),m===Ie&&(m=this._$AH[d]),a||(a=!ir(m)||m!==this._$AH[d]),m===v?t=v:t!==v&&(t+=(m!=null?m:"")+s[d+1]),this._$AH[d]=m}a&&!i&&this.j(t)}j(t){t===v?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},$r=class extends et{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===v?void 0:t}},Pr=class extends et{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==v)}},Ur=class extends et{constructor(t,e,r,i,s){super(t,e,r,i,s),this.type=5}_$AI(t,e=this){var a;if((t=(a=Je(this,t,e,0))!=null?a:v)===Ie)return;let r=this._$AH,i=t===v&&r!==v||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==v&&(r===v||i);i&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,r;typeof this._$AH=="function"?this._$AH.call((r=(e=this.options)==null?void 0:e.host)!=null?r:this.element,t):this._$AH.handleEvent(t)}},Vr=class{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){Je(this,t)}},hs={M:$o,P:_e,A:Po,C:1,L:ps,R:Dr,D:cs,V:Je,I:wt,H:et,N:Pr,U:Ur,B:$r,F:Vr},Do=rr.litHtmlPolyfillSupport,ls;Do==null||Do(sr,wt),((ls=rr.litHtmlVersions)!=null?ls:rr.litHtmlVersions=[]).push("3.2.0");var us=(o,t,e)=>{var s,a;let r=(s=e==null?void 0:e.renderBefore)!=null?s:t,i=r._$litPart$;if(i===void 0){let n=(a=e==null?void 0:e.renderBefore)!=null?a:null;r._$litPart$=i=new wt(t.insertBefore(or(),n),n,void 0,e!=null?e:{})}return i._$AI(o),i};var Fe=class extends Se{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var e,r;let t=super.createRenderRoot();return(r=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this.o=us(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this.o)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.o)==null||t.setConnected(!1)}render(){return Ie}},fs;Fe._$litElement$=!0,Fe.finalized=!0,(fs=globalThis.litElementHydrateSupport)==null||fs.call(globalThis,{LitElement:Fe});var Fo=globalThis.litElementPolyfillSupport;Fo==null||Fo({LitElement:Fe});var gs;((gs=globalThis.litElementVersions)!=null?gs:globalThis.litElementVersions=[]).push("4.1.0");var tl={attribute:!0,type:String,converter:er,reflect:!1,hasChanged:Mr},rl=(o=tl,t,e)=>{let{kind:r,metadata:i}=e,s=globalThis.litPropertyMetadata.get(i);if(s===void 0&&globalThis.litPropertyMetadata.set(i,s=new Map),s.set(e.name,o),r==="accessor"){let{name:a}=e;return{set(n){let d=t.get.call(this);t.set.call(this,n),this.requestUpdate(a,d,o)},init(n){return n!==void 0&&this.P(a,void 0,o),n}}}if(r==="setter"){let{name:a}=e;return function(n){let d=this[a];t.call(this,n),this.requestUpdate(a,d,o)}}throw Error("Unsupported decorator location: "+r)};function c(o){return(t,e)=>typeof e=="object"?rl(o,t,e):((r,i,s)=>{let a=i.hasOwnProperty(s);return i.constructor.createProperty(s,a?{...r,wrapped:!0}:r),a?Object.getOwnPropertyDescriptor(i,s):void 0})(o,t,e)}function W(o){return c({...o,state:!0,attribute:!1})}var ke=(o,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(o,t,e),e);function Fr(o,t){return(e,r,i)=>{let s=a=>{var n,d;return(d=(n=a.renderRoot)==null?void 0:n.querySelector(o))!=null?d:null};if(t){let{get:a,set:n}=typeof r=="object"?e:i!=null?i:(()=>{let d=Symbol();return{get(){return this[d]},set(m){this[d]=m}}})();return ke(e,r,{get(){let d=a.call(this);return d===void 0&&(d=s(this),(d!==null||this.hasUpdated)&&n.call(this,d)),d}})}return ke(e,r,{get(){return s(this)}})}}function tt(o){return(t,e)=>{let{slot:r,selector:i}=o!=null?o:{},s="slot"+(r?`[name=${r}]`:":not([name])");return ke(t,e,{get(){var d,m;let a=(d=this.renderRoot)==null?void 0:d.querySelector(s),n=(m=a==null?void 0:a.assignedElements(o))!=null?m:[];return i===void 0?n:n.filter(p=>p.matches(i))}})}}function bs(o){return(t,e)=>{let{slot:r}=o!=null?o:{},i="slot"+(r?`[name=${r}]`:":not([name])");return ke(t,e,{get(){var a,n;let s=(a=this.renderRoot)==null?void 0:a.querySelector(i);return(n=s==null?void 0:s.assignedNodes(o))!=null?n:[]}})}}var w=f`
|
4
4
|
:host {
|
5
5
|
align-items: center;
|
6
6
|
display: flex;
|
@@ -177,11 +177,11 @@
|
|
177
177
|
:host *::after {
|
178
178
|
box-sizing: inherit;
|
179
179
|
}
|
180
|
-
`;var
|
180
|
+
`;var Hr=class extends Fe{static register(t){customElements.get(t)||customElements.define(t,this)}};Hr.styles=[ys];var xs=Hr;var y=xs;var He=class extends Event{constructor(t,e,r){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=e,this.subscribe=r!=null?r:!1}};var Ct=class{constructor(t,e,r,i){var s;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(a,n)=>{this.unsubscribe&&(this.unsubscribe!==n&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=a,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(a,n)),this.unsubscribe=n},this.host=t,e.context!==void 0){let a=e;this.context=a.context,this.callback=a.callback,this.subscribe=(s=a.subscribe)!=null?s:!1}else this.context=e,this.callback=r,this.subscribe=i!=null?i:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new He(this.context,this.t,this.subscribe))}};var Br=class{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){let r=e||!Object.is(t,this.o);this.o=t,r&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(let[e,{disposer:r}]of this.subscriptions)e(this.o,r)},t!==void 0&&(this.value=t)}addCallback(t,e,r){if(!r)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});let{disposer:i}=this.subscriptions.get(t);t(this.value,i)}clearCallbacks(){this.subscriptions.clear()}};var Ho=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},Lt=class extends Br{constructor(t,e,r){var i,s;super(e.context!==void 0?e.initialValue:r),this.onContextRequest=a=>{let n=a.composedPath()[0];a.context===this.context&&n!==this.host&&(a.stopPropagation(),this.addCallback(a.callback,n,a.subscribe))},this.onProviderRequest=a=>{let n=a.composedPath()[0];if(a.context!==this.context||n===this.host)return;let d=new Set;for(let[m,{consumerHost:p}]of this.subscriptions)d.has(m)||(d.add(m),p.dispatchEvent(new He(this.context,m,!0)));a.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(s=(i=this.host).addController)==null||s.call(i,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Ho(this.context))}};var il=f`
|
181
181
|
:host {
|
182
182
|
display: contents;
|
183
183
|
}
|
184
|
-
`,Ts=il;var
|
184
|
+
`,Ts=il;var Gr=class extends y{constructor({context:t,initialValue:e}){super(),this.context=new Lt(this,{context:t,initialValue:e})}render(){return this.updateContext(),h`<slot></slot>`}};Gr.styles=[...y.styles,Ts];var As=Gr;var Rt=As;var sl={PREFIX:"mdc",SEPARATOR:"-"},al={NAMESPACE:sl},Bo=al;var nl=o=>[Bo.NAMESPACE.PREFIX,o].join(Bo.NAMESPACE.SEPARATOR),g={constructTagName:nl};var jm=g.constructTagName("buttonsimple"),ar={20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},Nt={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Yr={SIZE:ar[32],TYPE:Nt.BUTTON,ROLE:"button"};var nr=g.constructTagName("text"),_={BODY_SMALL_REGULAR:"body-small-regular",BODY_SMALL_MEDIUM:"body-small-medium",BODY_SMALL_BOLD:"body-small-bold",BODY_MIDSIZE_REGULAR:"body-midsize-regular",BODY_MIDSIZE_MEDIUM:"body-midsize-medium",BODY_MIDSIZE_BOLD:"body-midsize-bold",BODY_LARGE_REGULAR:"body-large-regular",BODY_LARGE_MEDIUM:"body-large-medium",BODY_LARGE_BOLD:"body-large-bold",BODY_SMALL_REGULAR_UNDERLINE:"body-small-regular-underline",BODY_SMALL_MEDIUM_UNDERLINE:"body-small-medium-underline",BODY_MIDSIZE_REGULAR_UNDERLINE:"body-midsize-regular-underline",BODY_MIDSIZE_MEDIUM_UNDERLINE:"body-midsize-medium-underline",BODY_LARGE_REGULAR_UNDERLINE:"body-large-regular-underline",BODY_LARGE_MEDIUM_UNDERLINE:"body-large-medium-underline",HEADING_SMALL_REGULAR:"heading-small-regular",HEADING_SMALL_MEDIUM:"heading-small-medium",HEADING_SMALL_BOLD:"heading-small-bold",HEADING_MIDSIZE_REGULAR:"heading-midsize-regular",HEADING_MIDSIZE_MEDIUM:"heading-midsize-medium",HEADING_MIDSIZE_BOLD:"heading-midsize-bold",HEADING_LARGE_REGULAR:"heading-large-regular",HEADING_LARGE_MEDIUM:"heading-large-medium",HEADING_LARGE_BOLD:"heading-large-bold",HEADING_XLARGE_REGULAR:"heading-xlarge-regular",HEADING_XLARGE_MEDIUM:"heading-xlarge-medium",HEADING_XLARGE_BOLD:"heading-xlarge-bold",HEADLINE_SMALL_LIGHT:"headline-small-light",HEADLINE_SMALL_REGULAR:"headline-small-regular"},C={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},j={TYPE:_.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:C.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Ss=g.constructTagName("alertchip"),rt={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},Ot={VARIANT:rt.NEUTRAL,TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,TAG_NAME:C.SPAN,SIZE:ar[24],ROLE:"button"};var _s=o=>({[rt.ERROR]:"error-legacy-badge-filled",[rt.WARNING]:"warning-badge-filled",[rt.SUCCESS]:"check-circle-badge-filled",[rt.INFORMATIONAL]:"info-badge-filled",[rt.NEUTRAL]:"dnd-presence-badge-filled"})[o];var ee=o=>{class t extends o{constructor(){super(...arguments);this.disabled=!1}}return l([c({reflect:!0,type:Boolean})],t.prototype,"disabled",2),t};var qr=o=>{class t extends o{constructor(){super(...arguments);this.tabIndex=0}}return l([c({reflect:!0,type:Number})],t.prototype,"tabIndex",2),t};var ll=[w,f`
|
185
185
|
:host {
|
186
186
|
border: 0.0625rem solid transparent;
|
187
187
|
cursor: pointer;
|
@@ -237,12 +237,12 @@
|
|
237
237
|
:host([size="20"]){
|
238
238
|
height: var(--mdc-button-height-size-20);
|
239
239
|
}
|
240
|
-
`,...O()],Is=ll;var
|
240
|
+
`,...O()],Is=ll;var be=class extends qr(ee(y)){constructor(){super();this.active=!1;this.softDisabled=!1;this.size=Yr.SIZE;this.role=Yr.ROLE;this.type=Yr.TYPE;this.prevTabindex=0;this.internals=this.attachInternals(),this.addEventListener("click",this.executeAction.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}get form(){return this.internals.form}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this,this.disabled),e.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),e.has("active")&&this.setActive(this,this.active)}executeAction(){this.type===Nt.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===Nt.RESET&&this.form&&this.form.reset()}setActive(e,r){r?e.setAttribute("aria-pressed","true"):e.removeAttribute("aria-pressed")}setSoftDisabled(e,r){r?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")}setDisabled(e,r){r?(e.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),e.removeAttribute("aria-disabled"))}triggerClickEvent(){let e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(e)}handleBlur(){this.classList.contains("pressed")&&this.classList.remove("pressed")}handleKeyDown(e){["Enter"," "].includes(e.key)&&(this.classList.add("pressed"),e.key==="Enter"&&this.triggerClickEvent())}handleKeyUp(e){["Enter"," "].includes(e.key)&&(this.classList.remove("pressed"),e.key===" "&&this.triggerClickEvent())}render(){return h`
|
241
241
|
<slot></slot>
|
242
|
-
`}};
|
242
|
+
`}};be.formAssociated=!0,be.styles=[...y.styles,...Is],l([c({type:Boolean,reflect:!0})],be.prototype,"active",2),l([c({type:Boolean,attribute:"soft-disabled"})],be.prototype,"softDisabled",2),l([c({type:Number,reflect:!0})],be.prototype,"size",2),l([c({type:String,reflect:!0})],be.prototype,"role",2),l([c({reflect:!0})],be.prototype,"type",2);var te=be;var Mt=class extends te{constructor(){super();this.variant=Ot.VARIANT;this.label="";this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=Ot.SIZE,this.role=Ot.ROLE}render(){return h`
|
243
243
|
<mdc-icon part="icon" name="${_s(this.variant)}" length-unit="rem" size="1"></mdc-icon>
|
244
|
-
<mdc-text part="label" type="${
|
245
|
-
`}};
|
244
|
+
<mdc-text part="label" type="${Ot.TEXT_TYPE}" tagname="${Ot.TAG_NAME}">${this.label}</mdc-text>
|
245
|
+
`}};Mt.styles=[...y.styles,...vs],l([c({type:String})],Mt.prototype,"variant",2),l([c({type:String})],Mt.prototype,"label",2);var Go=Mt;var ks=f`
|
246
246
|
:host::part(text) {
|
247
247
|
font-size: unset;
|
248
248
|
font-weight: unset;
|
@@ -492,7 +492,7 @@
|
|
492
492
|
display: block;
|
493
493
|
font-family: var(--mdc-text-font-family);
|
494
494
|
}
|
495
|
-
`,ks],ws=cl;var
|
495
|
+
`,ks],ws=cl;var zt=class extends y{constructor(){super(...arguments);this.type=j.TYPE;this.tagname=j.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case C.H1:return h`<h1 part=${j.CSS_PART_TEXT}><slot></slot></h1>`;case C.H2:return h`<h2 part=${j.CSS_PART_TEXT}><slot></slot></h2>`;case C.H3:return h`<h3 part=${j.CSS_PART_TEXT}><slot></slot></h3>`;case C.H4:return h`<h4 part=${j.CSS_PART_TEXT}><slot></slot></h4>`;case C.H5:return h`<h5 part=${j.CSS_PART_TEXT}><slot></slot></h5>`;case C.H6:return h`<h6 part=${j.CSS_PART_TEXT}><slot></slot></h6>`;case C.DIV:return h`<div part=${j.CSS_PART_TEXT}><slot></slot></div>`;case C.SPAN:return h`<span part=${j.CSS_PART_TEXT}><slot></slot></span>`;case C.SMALL:return h`<small part=${j.CSS_PART_TEXT}><slot></slot></small>`;case C.P:default:return h`<p part=${j.CSS_PART_TEXT}><slot></slot></p>`}}};zt.styles=[...y.styles,...ws],l([c({attribute:"type",reflect:!0,type:String})],zt.prototype,"type",2),l([c({attribute:"tagname",reflect:!0,type:String})],zt.prototype,"tagname",2);var Yo=zt;Yo.register(nr);var dl=Yo;var ml=[w,f`
|
496
496
|
:host {
|
497
497
|
--mdc-icon-fill-color: currentColor;
|
498
498
|
--mdc-icon-size: var(--computed-icon-size);
|
@@ -507,7 +507,7 @@
|
|
507
507
|
width: 100%;
|
508
508
|
fill: var(--mdc-icon-fill-color);
|
509
509
|
}
|
510
|
-
`,...O()],Cs=ml;var pl=o=>{let{host:t,context:e,subscribe:r}=o;return new
|
510
|
+
`,...O()],Cs=ml;var pl=o=>{let{host:t,context:e,subscribe:r}=o;return new Ct(t,{context:e,subscribe:r!=null?r:!0})},hl={consume:pl},Ls=hl;var Wr=g.constructTagName("iconprovider"),Rs=["svg"],Ns=["em","rem","px","%"],ul={px:16,em:1,rem:1,"%":100},we={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:ul.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var Xr=class{};Xr.context=Wr;var Zr=Xr;var ve=class extends Rt{constructor(){super({context:Zr.context,initialValue:new Zr});this.iconSet=we.ICON_SET;this.fileExtension=we.FILE_EXTENSION;this.lengthUnit=we.LENGTH_UNIT;this.size=we.SIZE}static get Context(){return Zr.context}updateValuesInContext(){this.fileExtension&&Rs.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=we.FILE_EXTENSION,this.context.value.fileExtension=we.FILE_EXTENSION),this.context.value.iconSet=this.iconSet,this.context.value.url=this.url,this.context.value.size=this.size,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy,this.lengthUnit&&Ns.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=we.LENGTH_UNIT,this.context.value.lengthUnit=we.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.iconSet!==this.iconSet||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};l([c({type:String,attribute:"icon-set",reflect:!0})],ve.prototype,"iconSet",2),l([c({type:String})],ve.prototype,"url",2),l([c({type:String,attribute:"file-extension",reflect:!0})],ve.prototype,"fileExtension",2),l([c({type:String,attribute:"length-unit",reflect:!0})],ve.prototype,"lengthUnit",2),l([c({type:Number,reflect:!0})],ve.prototype,"size",2),l([c({type:String,attribute:"cache-strategy"})],ve.prototype,"cacheStrategy",2),l([c({type:String,attribute:"cache-name"})],ve.prototype,"cacheName",2);var lr=ve;var cr={},Os=async o=>(cr[o]===void 0&&(cr[o]=new Map),{async set(t,e){cr[o].set(t.url,await e.text())},async get(t){return cr[o].get(t.url)},async delete(t){cr[o].delete(t.url)}}),Ms=async o=>{let t=await caches.open(o);return{set:async(e,r)=>{await t.put(e,r)},get:async e=>{let r=await t.match(e);return r==null?void 0:r.text()},delete:async e=>{await t.delete(e)}}},zs=async(o,t)=>t==="in-memory-cache"?Os(o):Ms(o);var Ds=async o=>fetch(o).then(t=>{if(!t.ok)throw new Error("There was a problem while fetching the icon!");return t}),$s=async({url:o,name:t,fileExtension:e,cacheStrategy:r,cacheName:i,renewSignal:s})=>{let a=s(),n=new Request(`${o}/${t}.${e}`,{signal:a});return!i||!r||!["in-memory-cache","web-cache-api"].includes(r)?Ds(n).then(d=>d.text()):zs(i,r).then(d=>d.get(n).then(m=>m||Ds(n.clone()).then(p=>{var u;return p.status<400&&p.headers.has("content-type")?(u=d.set)==null?void 0:u.call(d,n,p.clone()).then(()=>p.text()):p.text()})).catch(m=>{throw new Error(`Error in caching the Icon ${t}, ${m}`)}))};var Ps=g.constructTagName("icon"),qo={NAME:void 0,SIZE:1};var K=class extends y{constructor(){super();this.name=qo.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=Ls.consume({host:this,context:lr.Context});this.abortController=new AbortController}prepareIconElement(e){let r=new DOMParser().parseFromString(e,"text/html").body.children[0];return this.name&&r.setAttribute("data-name",this.name),r.setAttribute("part","icon"),r.setAttribute("aria-hidden","true"),r}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:r,url:i,cacheName:s,iconSet:a,cacheStrategy:n}=this.iconProviderContext.value;if(a==="custom-icons"&&i&&r&&this.name){let d=()=>(this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal);return $s({url:i,name:this.name,fileExtension:r,cacheName:s,cacheStrategy:n,renewSignal:d}).then(m=>{let p=this.prepareIconElement(m);this.handleIconLoadedSuccess(p)}).catch(m=>{this.handleIconLoadedFailure(m)})}if(a==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(d=>{this.handleIconLoadedSuccess(d.default())}).catch(d=>{this.handleIconLoadedFailure(d)})}let e=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(e),Promise.reject(e)}handleIconLoadedSuccess(e){this.iconData=e;let r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleIconLoadedFailure(e){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(r)}updateSize(){var e;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let r=`${this.computedIconSize}${(e=this.lengthUnit)!=null?e:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",r)}}get computedIconSize(){var e,r;return(r=(e=this.size)!=null?e:this.sizeFromContext)!=null?r:qo.SIZE}updated(e){var r,i,s,a;super.updated(e),e.has("name")&&this.getIconData().catch(n=>{n.name!=="AbortError"&&this.onerror&&this.onerror(n)}),(e.has("ariaLabel")||e.has("ariaLabelledBy"))&&(this.role=this.ariaLabel||this.ariaLabelledBy?"img":null),(e.has("size")||e.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((r=this.iconProviderContext.value)==null?void 0:r.lengthUnit)&&(this.lengthUnitFromContext=(i=this.iconProviderContext.value)==null?void 0:i.lengthUnit,this.updateSize()),this.sizeFromContext!==((s=this.iconProviderContext.value)==null?void 0:s.size)&&(this.sizeFromContext=(a=this.iconProviderContext.value)==null?void 0:a.size,this.updateSize())}render(){return h` ${this.iconData} `}};K.styles=[...y.styles,...Cs],l([W()],K.prototype,"iconData",2),l([W()],K.prototype,"lengthUnitFromContext",2),l([W()],K.prototype,"sizeFromContext",2),l([c({type:String,reflect:!0})],K.prototype,"name",2),l([c({type:Number})],K.prototype,"size",2),l([c({type:String,attribute:"length-unit"})],K.prototype,"lengthUnit",2),l([c({type:String,attribute:"aria-label"})],K.prototype,"ariaLabel",2),l([c({type:String,attribute:"aria-labelledby"})],K.prototype,"ariaLabelledBy",2),l([W()],K.prototype,"abortController",2);var Wo=K;Wo.register(Ps);var fl=Wo;Go.register(Ss);var gl=Go;var A=o=>o!=null?o:v;var Us=g.constructTagName("avatar"),Y={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Xo=99,bl="user-regular",M={24:24,32:32,48:48,64:64,72:72,88:88,124:124},Dt={TYPE:Y.PHOTO,SIZE:M[32],ICON_NAME:bl};var jr=o=>{class t extends o{constructor(){super(...arguments);this.size=Dt.SIZE;this.isTyping=!1}}return l([c({type:String})],t.prototype,"src",2),l([c({type:String})],t.prototype,"initials",2),l([c({type:String})],t.prototype,"presence",2),l([c({type:Number,reflect:!0,attribute:"size"})],t.prototype,"size",2),l([c({type:Number})],t.prototype,"counter",2),l([c({type:Boolean,attribute:"is-typing"})],t.prototype,"isTyping",2),t};var X=o=>{class t extends o{}return l([c({type:String,attribute:"icon-name"})],t.prototype,"iconName",2),t};var vl=[w,f`
|
511
511
|
:host {
|
512
512
|
--mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
|
513
513
|
--mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
|
@@ -630,7 +630,7 @@
|
|
630
630
|
outline: 0.125rem solid;
|
631
631
|
}
|
632
632
|
}
|
633
|
-
`],Vs=vl;var Fs=g.constructTagName("presence"),B={ACTIVE:"active",AWAY:"away",AWAY_CALLING:"away-calling",BUSY:"busy",DND:"dnd",MEETING:"meeting",ON_CALL:"on-call",ON_DEVICE:"on-device",ON_MOBILE:"on-mobile",PAUSE:"pause",PTO:"pto",PRESENTING:"presenting",QUIET:"quiet",SCHEDULED:"scheduled"},
|
633
|
+
`],Vs=vl;var Fs=g.constructTagName("presence"),B={ACTIVE:"active",AWAY:"away",AWAY_CALLING:"away-calling",BUSY:"busy",DND:"dnd",MEETING:"meeting",ON_CALL:"on-call",ON_DEVICE:"on-device",ON_MOBILE:"on-mobile",PAUSE:"pause",PTO:"pto",PRESENTING:"presenting",QUIET:"quiet",SCHEDULED:"scheduled"},P={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},$t={TYPE:B.ACTIVE,SIZE:P.SMALL};var Hs=o=>({[M[124]]:P.XX_LARGE,[M[88]]:P.X_LARGE,[M[72]]:P.LARGE,[M[64]]:P.MIDSIZE,[M[48]]:P.SMALL,[M[32]]:P.X_SMALL,[M[24]]:P.XX_SMALL})[o]||P.X_SMALL,Bs=o=>({[M[124]]:4.75,[M[88]]:3,[M[72]]:2.5,[M[64]]:2.25,[M[48]]:1.75,[M[32]]:1.25,[M[24]]:1})[o]||1.25,Gs=o=>({[M[124]]:_.HEADING_XLARGE_MEDIUM,[M[88]]:_.HEADING_LARGE_MEDIUM,[M[72]]:_.HEADING_MIDSIZE_MEDIUM,[M[64]]:_.HEADING_SMALL_MEDIUM,[M[48]]:_.HEADING_SMALL_MEDIUM,[M[32]]:_.BODY_MIDSIZE_MEDIUM,[M[24]]:_.BODY_SMALL_MEDIUM})[o]||_.BODY_MIDSIZE_MEDIUM;var dr=class extends jr(X(y)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===Y.COUNTER&&(this.counter||this.counter===0)||this.isTyping?v:this.presence?h`
|
634
634
|
<mdc-presence part="presence" type="${this.presence}" size="${Hs(this.size)}"></mdc-presence>
|
635
635
|
`:v}handleOnLoad(){this.isPhotoLoaded=!0}handleOnError(){this.isPhotoLoaded=!1,this.onerror&&this.onerror("There was a problem while fetching the <img/>. Please check the src attribute and try again.")}photoTemplate(){return h`
|
636
636
|
<img
|
@@ -641,7 +641,7 @@
|
|
641
641
|
@load="${this.handleOnLoad}"
|
642
642
|
@error="${this.handleOnError}"
|
643
643
|
/>
|
644
|
-
`}iconTemplate(){let e=this.iconName
|
644
|
+
`}iconTemplate(){let e=this.iconName||Dt.ICON_NAME;return h`
|
645
645
|
<mdc-icon
|
646
646
|
name="${A(e)}"
|
647
647
|
length-unit="rem"
|
@@ -661,7 +661,7 @@
|
|
661
661
|
${this.getLoadingContent()}
|
662
662
|
${this.getPresenceTemplateBasedOnType(e)}
|
663
663
|
</div>
|
664
|
-
`}};
|
664
|
+
`}};dr.styles=[...y.styles,...Vs],l([W()],dr.prototype,"isPhotoLoaded",2);var Zo=dr;var yl=[w,f`
|
665
665
|
:host {
|
666
666
|
--mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
|
667
667
|
--mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
|
@@ -755,7 +755,7 @@
|
|
755
755
|
.mdc-presence-icon__scheduled {
|
756
756
|
color: var(--mdc-presence-scheduled-background-color);
|
757
757
|
}
|
758
|
-
`],Ys=yl;var qs=o=>{switch(o){case B.AWAY:return"recents-presence-badge-filled";case B.AWAY_CALLING:return"away-calling-presence-filled";case B.BUSY:return"busy-presence-bold";case B.DND:return"dnd-presence-badge-filled";case B.MEETING:return"camera-filled";case B.ON_CALL:return"handset-filled";case B.ON_DEVICE:return"generic-device-video-badge-filled";case B.ON_MOBILE:return"phone-badge-filled";case B.PAUSE:return"pause-badge-filled";case B.PTO:return"pto-presence-filled";case B.PRESENTING:return"share-screen-badge-filled";case B.QUIET:return"quiet-hours-presence-filled";case B.SCHEDULED:return"meetings-presence-badge-filled";case B.ACTIVE:default:return"active-presence-small-filled"}};var
|
758
|
+
`],Ys=yl;var qs=o=>{switch(o){case B.AWAY:return"recents-presence-badge-filled";case B.AWAY_CALLING:return"away-calling-presence-filled";case B.BUSY:return"busy-presence-bold";case B.DND:return"dnd-presence-badge-filled";case B.MEETING:return"camera-filled";case B.ON_CALL:return"handset-filled";case B.ON_DEVICE:return"generic-device-video-badge-filled";case B.ON_MOBILE:return"phone-badge-filled";case B.PAUSE:return"pause-badge-filled";case B.PTO:return"pto-presence-filled";case B.PRESENTING:return"share-screen-badge-filled";case B.QUIET:return"quiet-hours-presence-filled";case B.SCHEDULED:return"meetings-presence-badge-filled";case B.ACTIVE:default:return"active-presence-small-filled"}};var ot=class extends y{constructor(){super(...arguments);this.type=$t.TYPE;this.size=$t.SIZE;this.currentIconType=$t.TYPE}get iconSize(){switch(this.size){case P.MIDSIZE:return 1.16125;case P.LARGE:return 1.30625;case P.X_LARGE:return 1.596875;case P.XX_LARGE:return 2.25;case P.XX_SMALL:case P.X_SMALL:case P.SMALL:default:return this.size=$t.SIZE,.875}}get icon(){let e=qs(this.type);return e==="active-presence-small-filled"&&(this.type=$t.TYPE),e}handleOnLoad(){this.currentIconType=this.type}handleOnError(){this.onerror&&this.onerror("There was a problem while fetching the icon. Please check the icon name and try again.")}render(){return h`
|
759
759
|
<div class="mdc-presence mdc-presence__${this.size}">
|
760
760
|
<mdc-icon
|
761
761
|
class="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
|
@@ -765,14 +765,14 @@
|
|
765
765
|
@error="${this.handleOnError}"
|
766
766
|
></mdc-icon>
|
767
767
|
</div>
|
768
|
-
`}};
|
768
|
+
`}};ot.styles=[...y.styles,...Ys],l([c({type:String,reflect:!0})],ot.prototype,"type",2),l([c({type:String,reflect:!0})],ot.prototype,"size",2),l([W()],ot.prototype,"currentIconType",2);var jo=ot;jo.register(Fs);var xl=jo;Zo.register(Us);var El=Zo;var mr=g.constructTagName("button"),it={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Kr={40:40,32:32,28:28,24:24},Ce={64:64,52:52,20:20,...Kr},Ko={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Pt={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},ye={VARIANT:it.PRIMARY,SIZE:Kr[32],COLOR:Ko.DEFAULT,TYPE_INTERNAL:Pt.ICON,TYPE:Nt.BUTTON};var Tl=[w,f`
|
769
769
|
:host {
|
770
770
|
padding: unset;
|
771
771
|
margin: unset;
|
772
772
|
outline: none;
|
773
773
|
border-radius: 0.25rem;
|
774
774
|
}
|
775
|
-
`,...O()],Ws=Tl;var
|
775
|
+
`,...O()],Ws=Tl;var pr=class extends jr(X(te)){constructor(){super();this.ariaLabel=null;this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role="button",this.type=ye.TYPE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(M).includes(e)?`${e}`:Dt.SIZE.toString())}render(){return h`
|
776
776
|
<mdc-avatar
|
777
777
|
slot="prefixIcon"
|
778
778
|
?is-typing="${this.isTyping}"
|
@@ -783,7 +783,7 @@
|
|
783
783
|
size="${A(this.size)}"
|
784
784
|
src="${A(this.src)}"
|
785
785
|
></mdc-avatar>
|
786
|
-
`}};
|
786
|
+
`}};pr.styles=[...Ws],l([c({type:String,attribute:"aria-label"})],pr.prototype,"ariaLabel",2);var Qo=pr;var Xs=g.constructTagName("avatarbutton");Qo.register(Xs);var Al=Qo;var Qr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},hr=o=>(...t)=>({_$litDirective$:o,values:t}),Ut=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this.t=t,this._$AM=e,this.i=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var Jr=hr(class extends Ut{constructor(o){var t;if(super(o),o.type!==Qr.ATTRIBUTE||o.name!=="class"||((t=o.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(t=>o[t]).join(" ")+" "}update(o,[t]){var r,i;if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(let s in t)t[s]&&!((r=this.nt)!=null&&r.has(s))&&this.st.add(s);return this.render(t)}let e=o.element.classList;for(let s of this.st)s in t||(e.remove(s),this.st.delete(s));for(let s in t){let a=!!t[s];a===this.st.has(s)||(i=this.nt)!=null&&i.has(s)||(a?(e.add(s),this.st.add(s)):(e.remove(s),this.st.delete(s)))}return Ie}});var Zs=g.constructTagName("badge"),Le={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},eo={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},to={PRIMARY:"primary",SECONDARY:"secondary"},ur={SUCCESS:"success",WARNING:"warning",ERROR:"error"},yf={...to,...ur},Be={TYPE:Le.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:to.PRIMARY,ICON_SIZE:1};var Sl=[w,f`
|
787
787
|
:host {
|
788
788
|
--mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
|
789
789
|
--mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
|
@@ -852,21 +852,21 @@
|
|
852
852
|
outline: 0.125rem solid;
|
853
853
|
}
|
854
854
|
}
|
855
|
-
`],js=Sl;var
|
855
|
+
`],js=Sl;var xe=class extends X(y){constructor(){super(...arguments);this.variant=Be.VARIANT;this.maxCounter=Be.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,r){return r===void 0||typeof r!="number"||e===0?"":r>e?`${e}+`:e>Be.MAX_COUNTER_LIMIT||r>Be.MAX_COUNTER_LIMIT?`${Be.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(e,r){return h`
|
856
856
|
<mdc-icon
|
857
|
-
class="mdc-badge-icon ${
|
857
|
+
class="mdc-badge-icon ${Jr({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${r}`]:!0})}"
|
858
858
|
name="${A(e)}"
|
859
|
-
size="${
|
859
|
+
size="${Be.ICON_SIZE}"
|
860
860
|
></mdc-icon>
|
861
|
-
`}getBadgeDot(){return h`<div class="mdc-badge-dot ${
|
861
|
+
`}getBadgeDot(){return h`<div class="mdc-badge-dot ${Jr({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return h`
|
862
862
|
<mdc-text
|
863
863
|
type="${_.BODY_SMALL_MEDIUM}"
|
864
864
|
tagname="${C.DIV}"
|
865
|
-
class="mdc-badge-text ${
|
865
|
+
class="mdc-badge-text ${Jr({"mdc-badge-overlay":this.overlay})}"
|
866
866
|
>
|
867
867
|
${this.getCounterText(this.maxCounter,this.counter)}
|
868
868
|
</mdc-text>
|
869
|
-
`}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(
|
869
|
+
`}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(to).includes(this.variant)&&(this.variant=Be.VARIANT);let{iconName:e,type:r,variant:i}=this;switch(r){case Le.ICON:return this.getBadgeIcon(e||"",i);case Le.COUNTER:return this.getBadgeCounterText();case Le.SUCCESS:return this.getBadgeIcon(eo.SUCCESS_ICON_NAME,ur.SUCCESS);case Le.WARNING:return this.getBadgeIcon(eo.WARNING_ICON_NAME,ur.WARNING);case Le.ERROR:return this.getBadgeIcon(eo.ERROR_ICON_NAME,ur.ERROR);case Le.DOT:default:return this.type=Le.DOT,this.getBadgeDot()}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};xe.styles=[...y.styles,...js],l([c({type:String,reflect:!0})],xe.prototype,"type",2),l([c({type:String,reflect:!0})],xe.prototype,"variant",2),l([c({type:Number})],xe.prototype,"counter",2),l([c({type:Number,attribute:"max-counter",reflect:!0})],xe.prototype,"maxCounter",2),l([c({type:Boolean})],xe.prototype,"overlay",2),l([c({type:String,attribute:"aria-label"})],xe.prototype,"ariaLabel",2);var Jo=xe;Jo.register(Zs);var _l=Jo;var Il=f`
|
870
870
|
:host {
|
871
871
|
--mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
|
872
872
|
--mdc-bullet-size-small: 0.25rem;
|
@@ -887,7 +887,7 @@
|
|
887
887
|
:host([size="large"]) {
|
888
888
|
height: var(--mdc-bullet-size-large);
|
889
889
|
}
|
890
|
-
`,Ks=[Il];var Qs=g.constructTagName("bullet"),Js={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var
|
890
|
+
`,Ks=[Il];var Qs=g.constructTagName("bullet"),Js={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var fr=class extends y{constructor(){super(...arguments);this.size=Js.SMALL}};fr.styles=[...y.styles,...Ks],l([c({type:String,reflect:!0})],fr.prototype,"size",2);var ei=fr;ei.register(Qs);var kl=ei;var wl=f`
|
891
891
|
:host {
|
892
892
|
background-color: transparent;
|
893
893
|
border-radius: 1.25rem;
|
@@ -1059,7 +1059,7 @@
|
|
1059
1059
|
--mdc-button-secondary-hover-background-color: var(--mds-color-theme-button-secondary-hover);
|
1060
1060
|
--mdc-button-secondary-pressed-background-color: var(--mds-color-theme-button-secondary-pressed);
|
1061
1061
|
}
|
1062
|
-
`,ea=[wl];var ta=o=>{switch(o){case
|
1062
|
+
`,ea=[wl];var ta=o=>{switch(o){case Ce[64]:return 2;case Ce[52]:return 1.75;case Ce[40]:return 1.25;default:return 1}},gr=o=>{let t=o.split("-"),e=["bold","filled","regular","light"];return t.filter(r=>!e.includes(r)).join("-")};var re=class extends te{constructor(){super(...arguments);this.variant=ye.VARIANT;this.size=ye.SIZE;this.color=ye.COLOR;this.role="button";this.typeInternal=ye.TYPE_INTERNAL;this.iconSize=1}update(e){super.update(e),e.has("active")&&this.modifyIconName(this.active),e.has("size")&&this.setSize(this.size),e.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),e.has("color")&&this.setColor(this.color),e.has("typeInternal")&&this.setSize(this.size),(e.has("prefixIcon")||e.has("postfixIcon"))&&this.inferButtonType()}modifyIconName(e){e?(this.prefixIcon&&(this.prevPrefixIcon=this.prefixIcon,this.prefixIcon=`${gr(this.prefixIcon)}-filled`),this.postfixIcon&&(this.prevPostfixIcon=this.postfixIcon,this.postfixIcon=`${gr(this.postfixIcon)}-filled`)):(this.prevPrefixIcon&&(this.prefixIcon=this.prevPrefixIcon),this.prevPostfixIcon&&(this.postfixIcon=this.prevPostfixIcon))}setVariant(e){this.setAttribute("variant",Object.values(it).includes(e)?e:ye.VARIANT)}setSize(e){let i=this.typeInternal===Pt.ICON?Object.values(Ce).includes(e)&&!(e===Ce[20]&&this.variant!==it.TERTIARY):Object.values(Kr).includes(e);this.setAttribute("size",i?`${e}`:`${ye.SIZE}`),this.iconSize=ta(e)}setColor(e){!Object.values(Ko).includes(e)||this.variant===it.TERTIARY?this.setAttribute("color",`${ye.COLOR}`):this.setAttribute("color",e)}inferButtonType(){var r,i;let e=(i=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"))==null?void 0:i.assignedNodes().filter(s=>{var a;return s.nodeType!==Node.TEXT_NODE||((a=s.textContent)==null?void 0:a.trim())}).length;e&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=Pt.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!e&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=Pt.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Pt.PILL,this.setAttribute("data-btn-type","pill"))}render(){return h`
|
1063
1063
|
${this.prefixIcon?h` <mdc-icon
|
1064
1064
|
name="${this.prefixIcon}"
|
1065
1065
|
part="prefix-icon"
|
@@ -1075,7 +1075,7 @@
|
|
1075
1075
|
length-unit="rem"
|
1076
1076
|
>
|
1077
1077
|
</mdc-icon>`:""}
|
1078
|
-
`}};re.styles=[...te.styles,...ea],l([c({type:String,attribute:"prefix-icon",reflect:!0})],re.prototype,"prefixIcon",2),l([c({type:String,attribute:"postfix-icon",reflect:!0})],re.prototype,"postfixIcon",2),l([c({type:String})],re.prototype,"variant",2),l([c({type:Number})],re.prototype,"size",2),l([c({type:String})],re.prototype,"color",2),l([c({type:String,reflect:!0})],re.prototype,"role",2),l([W()],re.prototype,"typeInternal",2),l([W()],re.prototype,"iconSize",2);var ti=re;ti.register(
|
1078
|
+
`}};re.styles=[...te.styles,...ea],l([c({type:String,attribute:"prefix-icon",reflect:!0})],re.prototype,"prefixIcon",2),l([c({type:String,attribute:"postfix-icon",reflect:!0})],re.prototype,"postfixIcon",2),l([c({type:String})],re.prototype,"variant",2),l([c({type:Number})],re.prototype,"size",2),l([c({type:String})],re.prototype,"color",2),l([c({type:String,reflect:!0})],re.prototype,"role",2),l([W()],re.prototype,"typeInternal",2),l([W()],re.prototype,"iconSize",2);var ti=re;ti.register(mr);var Cl=ti;var U=o=>{class t extends o{constructor(){super(...arguments);this.dataAriaLabel=null}}return l([c({type:String,reflect:!0,attribute:"data-aria-label"})],t.prototype,"dataAriaLabel",2),t};var F=[];for(let o=0;o<256;++o)F.push((o+256).toString(16).slice(1));function ra(o,t=0){return(F[o[t+0]]+F[o[t+1]]+F[o[t+2]]+F[o[t+3]]+"-"+F[o[t+4]]+F[o[t+5]]+"-"+F[o[t+6]]+F[o[t+7]]+"-"+F[o[t+8]]+F[o[t+9]]+"-"+F[o[t+10]]+F[o[t+11]]+F[o[t+12]]+F[o[t+13]]+F[o[t+14]]+F[o[t+15]]).toLowerCase()}var ri,Ll=new Uint8Array(16);function oi(){if(!ri){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ri=crypto.getRandomValues.bind(crypto)}return ri(Ll)}var Rl=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ii={randomUUID:Rl};function Nl(o,t,e){var i,s,a;if(ii.randomUUID&&!t&&!o)return ii.randomUUID();o=o||{};let r=(a=(s=o.random)!=null?s:(i=o.rng)==null?void 0:i.call(o))!=null?a:oi();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(e=e||0,e<0||e+16>t.length)throw new RangeError(`UUID byte range ${e}:${e+15} is out of buffer bounds`);for(let n=0;n<16;++n)t[e+n]=r[n];return t}return ra(r)}var br=Nl;var oe=o=>{class t extends o{constructor(...i){super(i);this.name="";this.value="";this.internals=this.attachInternals(),this.id=`mdc-input-${br()}`}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return t.formAssociated=!0,l([c({reflect:!0,type:String})],t.prototype,"name",2),l([c({reflect:!0,type:String})],t.prototype,"value",2),l([c({reflect:!0,type:String,attribute:"validation-message"})],t.prototype,"validationMessage",2),l([Fr("input")],t.prototype,"inputElement",2),t};var oa=g.constructTagName("formfieldwrapper"),ie={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},V={VALIDATION:ie.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id"},st={TAGNAME:C.SPAN,TYPE:_.BODY_MIDSIZE_REGULAR,HEADER_TYPE:_.BODY_MIDSIZE_BOLD};var Ol=[w,f`
|
1079
1079
|
:host {
|
1080
1080
|
flex-direction: column;
|
1081
1081
|
align-items: flex-start;
|
@@ -1124,8 +1124,8 @@
|
|
1124
1124
|
:host([help-text-type='priority']) .mdc-help-text {
|
1125
1125
|
color: var(--mds-color-theme-text-accent-normal);
|
1126
1126
|
}
|
1127
|
-
`],ia=Ol;var sa=o=>({[ie.ERROR]:"error-legacy-badge-filled",[ie.WARNING]:"warning-badge-filled",[ie.SUCCESS]:"check-circle-badge-filled",[ie.PRIORITY]:"priority-badge-filled",[ie.DEFAULT]:""})[o]||"";var
|
1128
|
-
id="${
|
1127
|
+
`],ia=Ol;var sa=o=>({[ie.ERROR]:"error-legacy-badge-filled",[ie.WARNING]:"warning-badge-filled",[ie.SUCCESS]:"check-circle-badge-filled",[ie.PRIORITY]:"priority-badge-filled",[ie.DEFAULT]:""})[o]||"";var Re=class extends ee(y){constructor(){super(...arguments);this.id="";this.helpTextType=V.VALIDATION;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?h`<label for="${this.id}" class="mdc-label" part="label">${this.label}</label>`:h` <mdc-text
|
1128
|
+
id="${V.HEADING_ID}"
|
1129
1129
|
tagname="${st.TAGNAME}"
|
1130
1130
|
type="${st.HEADER_TYPE}"
|
1131
1131
|
part="label"
|
@@ -1134,9 +1134,9 @@
|
|
1134
1134
|
<mdc-text part="required-label" tagname=${st.TAGNAME} type=${st.TYPE}>
|
1135
1135
|
(${this.requiredLabel})
|
1136
1136
|
</mdc-text>
|
1137
|
-
`:v}renderHelpTextIcon(){if(!this.helpText)return v;let e=sa(this.helpTextType||
|
1137
|
+
`:v}renderHelpTextIcon(){if(!this.helpText)return v;let e=sa(this.helpTextType||V.VALIDATION);return e&&!this.disabled?h`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${e}></mdc-icon>`:v}renderHelpText(){return this.helpText?h`
|
1138
1138
|
<mdc-text
|
1139
|
-
id="${
|
1139
|
+
id="${V.HELPER_TEXT_ID}"
|
1140
1140
|
part="help-text"
|
1141
1141
|
tagname=${st.TAGNAME}
|
1142
1142
|
type=${st.TYPE}
|
@@ -1150,7 +1150,7 @@
|
|
1150
1150
|
</div>`:v}renderHelperText(){return this.helpText?h`<div class="mdc-help-text" part="mdc-help-text">
|
1151
1151
|
<slot name="help-icon">${this.renderHelpTextIcon()}</slot>
|
1152
1152
|
<slot name="help-text">${this.renderHelpText()}</slot>
|
1153
|
-
</div>`:v}};
|
1153
|
+
</div>`:v}};Re.styles=[...y.styles,...ia],l([c({reflect:!0,type:String})],Re.prototype,"label",2),l([c({type:String,reflect:!0,attribute:"required-label"})],Re.prototype,"requiredLabel",2),l([c({type:String})],Re.prototype,"id",2),l([c({reflect:!0,attribute:"help-text-type"})],Re.prototype,"helpTextType",2),l([c({type:String,reflect:!0,attribute:"help-text"})],Re.prototype,"helpText",2);var se=Re;var aa=g.constructTagName("checkbox"),si={CHECKED:"check-bold",INDETERMINATE:"minus-bold"};var Ml=[f`
|
1154
1154
|
:host {
|
1155
1155
|
--mdc-checkbox-background-color-hover: var(--mds-color-theme-control-inactive-hover);
|
1156
1156
|
--mdc-checkbox-border-color: var(--mds-color-theme-outline-button-normal);
|
@@ -1254,7 +1254,7 @@
|
|
1254
1254
|
border: 0.0625rem solid var(--mdc-checkbox-border-color);
|
1255
1255
|
}
|
1256
1256
|
}
|
1257
|
-
`,...O(!0)],na=Ml;var at=class extends oe(
|
1257
|
+
`,...O(!0)],na=Ml;var at=class extends oe(U(se)){constructor(){super();this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?h`<div class="text-container">
|
1258
1258
|
${this.renderLabel()}
|
1259
1259
|
${this.renderHelperText()}
|
1260
1260
|
</div>`:v;this.helpTextType=void 0}setFormValue(){let e=null;this.checked?e=this.value?this.value:"on":e=null,this.manageRequired(),this.internals.setFormValue(e)}manageRequired(){!this.checked&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.checked=!1,this.indeterminate=!1}formStateRestoreCallback(e){e&&(this.checked=!0)}toggleState(){this.disabled||(this.checked=!this.checked,this.indeterminate=!1)}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}handleChange(e){this.toggleState();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}update(e){super.update(e),e.has("checked")&&this.setFormValue()}render(){var r;let e=this.checked||this.indeterminate?h`
|
@@ -1280,7 +1280,7 @@
|
|
1280
1280
|
.disabled="${this.disabled}"
|
1281
1281
|
aria-label="${(r=this.dataAriaLabel)!=null?r:""}"
|
1282
1282
|
tabindex="${this.disabled?-1:0}"
|
1283
|
-
aria-describedby="${A(this.helpText?
|
1283
|
+
aria-describedby="${A(this.helpText?V.HELPER_TEXT_ID:"")}"
|
1284
1284
|
@change=${this.handleChange}
|
1285
1285
|
@keydown=${this.handleKeyDown}
|
1286
1286
|
/>
|
@@ -1423,15 +1423,15 @@
|
|
1423
1423
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
1424
1424
|
cursor: auto;
|
1425
1425
|
}
|
1426
|
-
`,la=[w,Dl,...O()];var ca=g.constructTagName("chip"),$l={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},
|
1426
|
+
`,la=[w,Dl,...O()];var ca=g.constructTagName("chip"),$l={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},Vt={COLOR:$l.DEFAULT,TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,TAG_NAME:C.SPAN,SIZE:ar[24],ROLE:"button"};var Ft=class extends X(te){constructor(){super();this.color=Vt.COLOR;this.label="";this.role=Vt.ROLE,this.size=Vt.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?h`
|
1427
1427
|
<mdc-icon
|
1428
1428
|
name="${this.iconName}"
|
1429
1429
|
length-unit="rem"
|
1430
1430
|
size="1"></mdc-icon>
|
1431
1431
|
`:v}render(){return h`
|
1432
1432
|
${this.renderIcon()}
|
1433
|
-
<mdc-text type="${
|
1434
|
-
`}};Ht.styles=[...y.styles,...la],l([c({type:String,reflect:!0})],Ht.prototype,"color",2),l([c({type:String})],Ht.prototype,"label",2);var Bt=Ht;Bt.register(ca);var Pl=Bt;var Te=Math.min,q=Math.max,xr=Math.round,Er=Math.floor,pe=o=>({x:o,y:o}),Ul={left:"right",right:"left",bottom:"top",top:"bottom"},Vl={start:"end",end:"start"};function io(o,t,e){return q(o,Te(t,e))}function nt(o,t){return typeof o=="function"?o(t):o}function Oe(o){return o.split("-")[0]}function lt(o){return o.split("-")[1]}function ni(o){return o==="x"?"y":"x"}function so(o){return o==="y"?"height":"width"}function Ye(o){return["top","bottom"].includes(Oe(o))?"y":"x"}function ao(o){return ni(Ye(o))}function da(o,t,e){e===void 0&&(e=!1);let r=lt(o),i=ao(o),s=so(i),a=i==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=yr(a)),[a,yr(a)]}function ma(o){let t=yr(o);return[oo(o),t,oo(t)]}function oo(o){return o.replace(/start|end/g,t=>Vl[t])}function Fl(o,t,e){let r=["left","right"],i=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(o){case"top":case"bottom":return e?t?i:r:t?r:i;case"left":case"right":return t?s:a;default:return[]}}function pa(o,t,e,r){let i=lt(o),s=Fl(Oe(o),e==="start",r);return i&&(s=s.map(a=>a+"-"+i),t&&(s=s.concat(s.map(oo)))),s}function yr(o){return o.replace(/left|right|bottom|top/g,t=>Ul[t])}function Hl(o){return{top:0,right:0,bottom:0,left:0,...o}}function li(o){return typeof o!="number"?Hl(o):{top:o,right:o,bottom:o,left:o}}function ct(o){let{x:t,y:e,width:r,height:i}=o;return{width:r,height:i,top:e,left:t,right:t+r,bottom:e+i,x:t,y:e}}function ha(o,t,e){let{reference:r,floating:i}=o,s=Ye(t),a=ao(t),n=so(a),d=Oe(t),m=s==="y",p=r.x+r.width/2-i.width/2,u=r.y+r.height/2-i.height/2,x=r[n]/2-i[n]/2,b;switch(d){case"top":b={x:p,y:r.y-i.height};break;case"bottom":b={x:p,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:u};break;case"left":b={x:r.x-i.width,y:u};break;default:b={x:r.x,y:r.y}}switch(lt(t)){case"start":b[a]-=x*(e&&m?-1:1);break;case"end":b[a]+=x*(e&&m?-1:1);break}return b}var ua=async(o,t,e)=>{let{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:a}=e,n=s.filter(Boolean),d=await(a.isRTL==null?void 0:a.isRTL(t)),m=await a.getElementRects({reference:o,floating:t,strategy:i}),{x:p,y:u}=ha(m,r,d),x=r,b={},E=0;for(let T=0;T<n.length;T++){let{name:I,fn:S}=n[T],{x:k,y:R,data:P,reset:z}=await S({x:p,y:u,initialPlacement:r,placement:x,strategy:i,middlewareData:b,rects:m,platform:a,elements:{reference:o,floating:t}});p=k!=null?k:p,u=R!=null?R:u,b={...b,[I]:{...b[I],...P}},z&&E<=50&&(E++,typeof z=="object"&&(z.placement&&(x=z.placement),z.rects&&(m=z.rects===!0?await a.getElementRects({reference:o,floating:t,strategy:i}):z.rects),{x:p,y:u}=ha(m,x,d)),T=-1)}return{x:p,y:u,placement:x,strategy:i,middlewareData:b}};async function no(o,t){var e;t===void 0&&(t={});let{x:r,y:i,platform:s,rects:a,elements:n,strategy:d}=o,{boundary:m="clippingAncestors",rootBoundary:p="viewport",elementContext:u="floating",altBoundary:x=!1,padding:b=0}=nt(t,o),E=li(b),I=n[x?u==="floating"?"reference":"floating":u],S=ct(await s.getClippingRect({element:(e=await(s.isElement==null?void 0:s.isElement(I)))==null||e?I:I.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(n.floating)),boundary:m,rootBoundary:p,strategy:d})),k=u==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(n.floating)),P=await(s.isElement==null?void 0:s.isElement(R))?await(s.getScale==null?void 0:s.getScale(R))||{x:1,y:1}:{x:1,y:1},z=ct(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:n,rect:k,offsetParent:R,strategy:d}):k);return{top:(S.top-z.top+E.top)/P.y,bottom:(z.bottom-S.bottom+E.bottom)/P.y,left:(S.left-z.left+E.left)/P.x,right:(z.right-S.right+E.right)/P.x}}var fa=o=>({name:"arrow",options:o,async fn(t){let{x:e,y:r,placement:i,rects:s,platform:a,elements:n,middlewareData:d}=t,{element:m,padding:p=0}=nt(o,t)||{};if(m==null)return{};let u=li(p),x={x:e,y:r},b=ao(i),E=so(b),T=await a.getDimensions(m),I=b==="y",S=I?"top":"left",k=I?"bottom":"right",R=I?"clientHeight":"clientWidth",P=s.reference[E]+s.reference[b]-x[b]-s.floating[E],z=x[b]-s.reference[b],J=await(a.getOffsetParent==null?void 0:a.getOffsetParent(m)),ce=J?J[R]:0;(!ce||!await(a.isElement==null?void 0:a.isElement(J)))&&(ce=n.floating[R]||s.floating[E]);let Ae=P/2-z/2,fe=ce/2-T[E]/2-1,de=Te(u[S],fe),$e=Te(u[k],fe),ge=de,Pe=ce-T[E]-$e,G=ce/2-T[E]/2+Ae,wt=io(ge,G,Pe),Se=!d.arrow&<(i)!=null&&G!==wt&&s.reference[E]/2-(G<ge?de:$e)-T[E]/2<0,be=Se?G<ge?G-ge:G-Pe:0;return{[b]:x[b]+be,data:{[b]:wt,centerOffset:G-wt-be,...Se&&{alignmentOffset:be}},reset:Se}}});var ga=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(t){var e,r;let{placement:i,middlewareData:s,rects:a,initialPlacement:n,platform:d,elements:m}=t,{mainAxis:p=!0,crossAxis:u=!0,fallbackPlacements:x,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:T=!0,...I}=nt(o,t);if((e=s.arrow)!=null&&e.alignmentOffset)return{};let S=Oe(i),k=Ye(n),R=Oe(n)===n,P=await(d.isRTL==null?void 0:d.isRTL(m.floating)),z=x||(R||!T?[yr(n)]:ma(n)),J=E!=="none";!x&&J&&z.push(...pa(n,T,E,P));let ce=[n,...z],Ae=await no(t,I),fe=[],de=((r=s.flip)==null?void 0:r.overflows)||[];if(p&&fe.push(Ae[S]),u){let G=da(i,a,P);fe.push(Ae[G[0]],Ae[G[1]])}if(de=[...de,{placement:i,overflows:fe}],!fe.every(G=>G<=0)){var $e,ge;let G=((($e=s.flip)==null?void 0:$e.index)||0)+1,wt=ce[G];if(wt)return{data:{index:G,overflows:de},reset:{placement:wt}};let Se=(ge=de.filter(be=>be.overflows[0]<=0).sort((be,Ue)=>be.overflows[1]-Ue.overflows[1])[0])==null?void 0:ge.placement;if(!Se)switch(b){case"bestFit":{var Pe;let be=(Pe=de.filter(Ue=>{if(J){let Ve=Ye(Ue.placement);return Ve===k||Ve==="y"}return!0}).map(Ue=>[Ue.placement,Ue.overflows.filter(Ve=>Ve>0).reduce((Ve,Gn)=>Ve+Gn,0)]).sort((Ue,Ve)=>Ue[1]-Ve[1])[0])==null?void 0:Pe[0];be&&(Se=be);break}case"initialPlacement":Se=n;break}if(i!==Se)return{reset:{placement:Se}}}return{}}}};async function Bl(o,t){let{placement:e,platform:r,elements:i}=o,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Oe(e),n=lt(e),d=Ye(e)==="y",m=["left","top"].includes(a)?-1:1,p=s&&d?-1:1,u=nt(t,o),{mainAxis:x,crossAxis:b,alignmentAxis:E}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return n&&typeof E=="number"&&(b=n==="end"?E*-1:E),d?{x:b*p,y:x*m}:{x:x*m,y:b*p}}var ba=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(t){var e,r;let{x:i,y:s,placement:a,middlewareData:n}=t,d=await Bl(t,o);return a===((e=n.offset)==null?void 0:e.placement)&&(r=n.arrow)!=null&&r.alignmentOffset?{}:{x:i+d.x,y:s+d.y,data:{...d,placement:a}}}}},va=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(t){let{x:e,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:n={fn:I=>{let{x:S,y:k}=I;return{x:S,y:k}}},...d}=nt(o,t),m={x:e,y:r},p=await no(t,d),u=Ye(Oe(i)),x=ni(u),b=m[x],E=m[u];if(s){let I=x==="y"?"top":"left",S=x==="y"?"bottom":"right",k=b+p[I],R=b-p[S];b=io(k,b,R)}if(a){let I=u==="y"?"top":"left",S=u==="y"?"bottom":"right",k=E+p[I],R=E-p[S];E=io(k,E,R)}let T=n.fn({...t,[x]:b,[u]:E});return{...T,data:{x:T.x-e,y:T.y-r,enabled:{[x]:s,[u]:a}}}}}};var ya=function(o){return o===void 0&&(o={}),{name:"size",options:o,async fn(t){var e,r;let{placement:i,rects:s,platform:a,elements:n}=t,{apply:d=()=>{},...m}=nt(o,t),p=await no(t,m),u=Oe(i),x=lt(i),b=Ye(i)==="y",{width:E,height:T}=s.floating,I,S;u==="top"||u==="bottom"?(I=u,S=x===(await(a.isRTL==null?void 0:a.isRTL(n.floating))?"start":"end")?"left":"right"):(S=u,I=x==="end"?"top":"bottom");let k=T-p.top-p.bottom,R=E-p.left-p.right,P=Te(T-p[I],k),z=Te(E-p[S],R),J=!t.middlewareData.shift,ce=P,Ae=z;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&(Ae=R),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(ce=k),J&&!x){let de=q(p.left,0),$e=q(p.right,0),ge=q(p.top,0),Pe=q(p.bottom,0);b?Ae=E-2*(de!==0||$e!==0?de+$e:q(p.left,p.right)):ce=T-2*(ge!==0||Pe!==0?ge+Pe:q(p.top,p.bottom))}await d({...t,availableWidth:Ae,availableHeight:ce});let fe=await a.getDimensions(n.floating);return E!==fe.width||T!==fe.height?{reset:{rects:!0}}:{}}}};function lo(){return typeof window<"u"}function dt(o){return Ea(o)?(o.nodeName||"").toLowerCase():"#document"}function Z(o){var t;return(o==null||(t=o.ownerDocument)==null?void 0:t.defaultView)||window}function he(o){var t;return(t=(Ea(o)?o.ownerDocument:o.document)||window.document)==null?void 0:t.documentElement}function Ea(o){return lo()?o instanceof Node||o instanceof Z(o).Node:!1}function ae(o){return lo()?o instanceof Element||o instanceof Z(o).Element:!1}function ue(o){return lo()?o instanceof HTMLElement||o instanceof Z(o).HTMLElement:!1}function xa(o){return!lo()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof Z(o).ShadowRoot}function Yt(o){let{overflow:t,overflowX:e,overflowY:r,display:i}=ne(o);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(i)}function Ta(o){return["table","td","th"].includes(dt(o))}function Tr(o){return[":popover-open",":modal"].some(t=>{try{return o.matches(t)}catch{return!1}})}function co(o){let t=mo(),e=ae(o)?ne(o):o;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(e.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(e.contain||"").includes(r))}function Aa(o){let t=Me(o);for(;ue(t)&&!mt(t);){if(co(t))return t;if(Tr(t))return null;t=Me(t)}return null}function mo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function mt(o){return["html","body","#document"].includes(dt(o))}function ne(o){return Z(o).getComputedStyle(o)}function Ar(o){return ae(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function Me(o){if(dt(o)==="html")return o;let t=o.assignedSlot||o.parentNode||xa(o)&&o.host||he(o);return xa(t)?t.host:t}function Sa(o){let t=Me(o);return mt(t)?o.ownerDocument?o.ownerDocument.body:o.body:ue(t)&&Yt(t)?t:Sa(t)}function Gt(o,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let i=Sa(o),s=i===((r=o.ownerDocument)==null?void 0:r.body),a=Z(i);if(s){let n=po(a);return t.concat(a,a.visualViewport||[],Yt(i)?i:[],n&&e?Gt(n):[])}return t.concat(i,Gt(i,[],e))}function po(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function ka(o){let t=ne(o),e=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ue(o),s=i?o.offsetWidth:e,a=i?o.offsetHeight:r,n=xr(e)!==s||xr(r)!==a;return n&&(e=s,r=a),{width:e,height:r,$:n}}function di(o){return ae(o)?o:o.contextElement}function qt(o){let t=di(o);if(!ue(t))return pe(1);let e=t.getBoundingClientRect(),{width:r,height:i,$:s}=ka(t),a=(s?xr(e.width):e.width)/r,n=(s?xr(e.height):e.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!n||!Number.isFinite(n))&&(n=1),{x:a,y:n}}var Gl=pe(0);function wa(o){let t=Z(o);return!mo()||!t.visualViewport?Gl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Yl(o,t,e){return t===void 0&&(t=!1),!e||t&&e!==Z(o)?!1:t}function pt(o,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let i=o.getBoundingClientRect(),s=di(o),a=pe(1);t&&(r?ae(r)&&(a=qt(r)):a=qt(o));let n=Yl(s,e,r)?wa(s):pe(0),d=(i.left+n.x)/a.x,m=(i.top+n.y)/a.y,p=i.width/a.x,u=i.height/a.y;if(s){let x=Z(s),b=r&&ae(r)?Z(r):r,E=x,T=po(E);for(;T&&r&&b!==E;){let I=qt(T),S=T.getBoundingClientRect(),k=ne(T),R=S.left+(T.clientLeft+parseFloat(k.paddingLeft))*I.x,P=S.top+(T.clientTop+parseFloat(k.paddingTop))*I.y;d*=I.x,m*=I.y,p*=I.x,u*=I.y,d+=R,m+=P,E=Z(T),T=po(E)}}return ct({width:p,height:u,x:d,y:m})}function mi(o,t){let e=Ar(o).scrollLeft;return t?t.left+e:pt(he(o)).left+e}function Ca(o,t,e){e===void 0&&(e=!1);let r=o.getBoundingClientRect(),i=r.left+t.scrollLeft-(e?0:mi(o,r)),s=r.top+t.scrollTop;return{x:i,y:s}}function ql(o){let{elements:t,rect:e,offsetParent:r,strategy:i}=o,s=i==="fixed",a=he(r),n=t?Tr(t.floating):!1;if(r===a||n&&s)return e;let d={scrollLeft:0,scrollTop:0},m=pe(1),p=pe(0),u=ue(r);if((u||!u&&!s)&&((dt(r)!=="body"||Yt(a))&&(d=Ar(r)),ue(r))){let b=pt(r);m=qt(r),p.x=b.x+r.clientLeft,p.y=b.y+r.clientTop}let x=a&&!u&&!s?Ca(a,d,!0):pe(0);return{width:e.width*m.x,height:e.height*m.y,x:e.x*m.x-d.scrollLeft*m.x+p.x+x.x,y:e.y*m.y-d.scrollTop*m.y+p.y+x.y}}function Wl(o){return Array.from(o.getClientRects())}function Xl(o){let t=he(o),e=Ar(o),r=o.ownerDocument.body,i=q(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=q(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-e.scrollLeft+mi(o),n=-e.scrollTop;return ne(r).direction==="rtl"&&(a+=q(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:a,y:n}}function Zl(o,t){let e=Z(o),r=he(o),i=e.visualViewport,s=r.clientWidth,a=r.clientHeight,n=0,d=0;if(i){s=i.width,a=i.height;let m=mo();(!m||m&&t==="fixed")&&(n=i.offsetLeft,d=i.offsetTop)}return{width:s,height:a,x:n,y:d}}function jl(o,t){let e=pt(o,!0,t==="fixed"),r=e.top+o.clientTop,i=e.left+o.clientLeft,s=ue(o)?qt(o):pe(1),a=o.clientWidth*s.x,n=o.clientHeight*s.y,d=i*s.x,m=r*s.y;return{width:a,height:n,x:d,y:m}}function _a(o,t,e){let r;if(t==="viewport")r=Zl(o,e);else if(t==="document")r=Xl(he(o));else if(ae(t))r=jl(t,e);else{let i=wa(o);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ct(r)}function La(o,t){let e=Me(o);return e===t||!ae(e)||mt(e)?!1:ne(e).position==="fixed"||La(e,t)}function Kl(o,t){let e=t.get(o);if(e)return e;let r=Gt(o,[],!1).filter(n=>ae(n)&&dt(n)!=="body"),i=null,s=ne(o).position==="fixed",a=s?Me(o):o;for(;ae(a)&&!mt(a);){let n=ne(a),d=co(a);!d&&n.position==="fixed"&&(i=null),(s?!d&&!i:!d&&n.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Yt(a)&&!d&&La(o,a))?r=r.filter(p=>p!==a):i=n,a=Me(a)}return t.set(o,r),r}function Ql(o){let{element:t,boundary:e,rootBoundary:r,strategy:i}=o,a=[...e==="clippingAncestors"?Tr(t)?[]:Kl(t,this._c):[].concat(e),r],n=a[0],d=a.reduce((m,p)=>{let u=_a(t,p,i);return m.top=q(u.top,m.top),m.right=Te(u.right,m.right),m.bottom=Te(u.bottom,m.bottom),m.left=q(u.left,m.left),m},_a(t,n,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Jl(o){let{width:t,height:e}=ka(o);return{width:t,height:e}}function ec(o,t,e){let r=ue(t),i=he(t),s=e==="fixed",a=pt(o,!0,s,t),n={scrollLeft:0,scrollTop:0},d=pe(0);if(r||!r&&!s)if((dt(t)!=="body"||Yt(i))&&(n=Ar(t)),r){let x=pt(t,!0,s,t);d.x=x.x+t.clientLeft,d.y=x.y+t.clientTop}else i&&(d.x=mi(i));let m=i&&!r&&!s?Ca(i,n):pe(0),p=a.left+n.scrollLeft-d.x-m.x,u=a.top+n.scrollTop-d.y-m.y;return{x:p,y:u,width:a.width,height:a.height}}function ci(o){return ne(o).position==="static"}function Ia(o,t){if(!ue(o)||ne(o).position==="fixed")return null;if(t)return t(o);let e=o.offsetParent;return he(o)===e&&(e=e.ownerDocument.body),e}function Ra(o,t){let e=Z(o);if(Tr(o))return e;if(!ue(o)){let i=Me(o);for(;i&&!mt(i);){if(ae(i)&&!ci(i))return i;i=Me(i)}return e}let r=Ia(o,t);for(;r&&Ta(r)&&ci(r);)r=Ia(r,t);return r&&mt(r)&&ci(r)&&!co(r)?e:r||Aa(o)||e}var tc=async function(o){let t=this.getOffsetParent||Ra,e=this.getDimensions,r=await e(o.floating);return{reference:ec(o.reference,await t(o.floating),o.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function rc(o){return ne(o).direction==="rtl"}var oc={convertOffsetParentRelativeRectToViewportRelativeRect:ql,getDocumentElement:he,getClippingRect:Ql,getOffsetParent:Ra,getElementRects:tc,getClientRects:Wl,getDimensions:Jl,getScale:qt,isElement:ae,isRTL:rc};function ic(o,t){let e=null,r,i=he(o);function s(){var n;clearTimeout(r),(n=e)==null||n.disconnect(),e=null}function a(n,d){n===void 0&&(n=!1),d===void 0&&(d=1),s();let{left:m,top:p,width:u,height:x}=o.getBoundingClientRect();if(n||t(),!u||!x)return;let b=Er(p),E=Er(i.clientWidth-(m+u)),T=Er(i.clientHeight-(p+x)),I=Er(m),k={rootMargin:-b+"px "+-E+"px "+-T+"px "+-I+"px",threshold:q(0,Te(1,d))||1},R=!0;function P(z){let J=z[0].intersectionRatio;if(J!==d){if(!R)return a();J?a(!1,J):r=setTimeout(()=>{a(!1,1e-7)},1e3)}R=!1}try{e=new IntersectionObserver(P,{...k,root:i.ownerDocument})}catch{e=new IntersectionObserver(P,k)}e.observe(o)}return a(!0),s}function Na(o,t,e,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:n=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,m=di(o),p=i||s?[...m?Gt(m):[],...Gt(t)]:[];p.forEach(S=>{i&&S.addEventListener("scroll",e,{passive:!0}),s&&S.addEventListener("resize",e)});let u=m&&n?ic(m,e):null,x=-1,b=null;a&&(b=new ResizeObserver(S=>{let[k]=S;k&&k.target===m&&b&&(b.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var R;(R=b)==null||R.observe(t)})),e()}),m&&!d&&b.observe(m),b.observe(t));let E,T=d?pt(o):null;d&&I();function I(){let S=pt(o);T&&(S.x!==T.x||S.y!==T.y||S.width!==T.width||S.height!==T.height)&&e(),T=S,E=requestAnimationFrame(I)}return e(),()=>{var S;p.forEach(k=>{i&&k.removeEventListener("scroll",e),s&&k.removeEventListener("resize",e)}),u==null||u(),(S=b)==null||S.disconnect(),b=null,d&&cancelAnimationFrame(E)}}var Oa=ba;var Ma=va,za=ga,Da=ya;var $a=fa;var Pa=(o,t,e)=>{let r=new Map,i={platform:oc,...e},s={...i.platform,_c:r};return ua(o,t,{...i,platform:s})};var sc=f`
|
1433
|
+
<mdc-text type="${Vt.TEXT_TYPE}" tagname="${Vt.TAG_NAME}">${this.label}</mdc-text>
|
1434
|
+
`}};Ft.styles=[...y.styles,...la],l([c({type:String,reflect:!0})],Ft.prototype,"color",2),l([c({type:String})],Ft.prototype,"label",2);var Ht=Ft;Ht.register(ca);var Pl=Ht;var Ee=Math.min,q=Math.max,yr=Math.round,xr=Math.floor,me=o=>({x:o,y:o}),Ul={left:"right",right:"left",bottom:"top",top:"bottom"},Vl={start:"end",end:"start"};function oo(o,t,e){return q(o,Ee(t,e))}function nt(o,t){return typeof o=="function"?o(t):o}function Ne(o){return o.split("-")[0]}function lt(o){return o.split("-")[1]}function ni(o){return o==="x"?"y":"x"}function io(o){return o==="y"?"height":"width"}function Ge(o){return["top","bottom"].includes(Ne(o))?"y":"x"}function so(o){return ni(Ge(o))}function da(o,t,e){e===void 0&&(e=!1);let r=lt(o),i=so(o),s=io(i),a=i==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=vr(a)),[a,vr(a)]}function ma(o){let t=vr(o);return[ro(o),t,ro(t)]}function ro(o){return o.replace(/start|end/g,t=>Vl[t])}function Fl(o,t,e){let r=["left","right"],i=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(o){case"top":case"bottom":return e?t?i:r:t?r:i;case"left":case"right":return t?s:a;default:return[]}}function pa(o,t,e,r){let i=lt(o),s=Fl(Ne(o),e==="start",r);return i&&(s=s.map(a=>a+"-"+i),t&&(s=s.concat(s.map(ro)))),s}function vr(o){return o.replace(/left|right|bottom|top/g,t=>Ul[t])}function Hl(o){return{top:0,right:0,bottom:0,left:0,...o}}function li(o){return typeof o!="number"?Hl(o):{top:o,right:o,bottom:o,left:o}}function ct(o){let{x:t,y:e,width:r,height:i}=o;return{width:r,height:i,top:e,left:t,right:t+r,bottom:e+i,x:t,y:e}}function ha(o,t,e){let{reference:r,floating:i}=o,s=Ge(t),a=so(t),n=io(a),d=Ne(t),m=s==="y",p=r.x+r.width/2-i.width/2,u=r.y+r.height/2-i.height/2,x=r[n]/2-i[n]/2,b;switch(d){case"top":b={x:p,y:r.y-i.height};break;case"bottom":b={x:p,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:u};break;case"left":b={x:r.x-i.width,y:u};break;default:b={x:r.x,y:r.y}}switch(lt(t)){case"start":b[a]-=x*(e&&m?-1:1);break;case"end":b[a]+=x*(e&&m?-1:1);break}return b}var ua=async(o,t,e)=>{let{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:a}=e,n=s.filter(Boolean),d=await(a.isRTL==null?void 0:a.isRTL(t)),m=await a.getElementRects({reference:o,floating:t,strategy:i}),{x:p,y:u}=ha(m,r,d),x=r,b={},E=0;for(let T=0;T<n.length;T++){let{name:I,fn:S}=n[T],{x:k,y:R,data:$,reset:z}=await S({x:p,y:u,initialPlacement:r,placement:x,strategy:i,middlewareData:b,rects:m,platform:a,elements:{reference:o,floating:t}});p=k!=null?k:p,u=R!=null?R:u,b={...b,[I]:{...b[I],...$}},z&&E<=50&&(E++,typeof z=="object"&&(z.placement&&(x=z.placement),z.rects&&(m=z.rects===!0?await a.getElementRects({reference:o,floating:t,strategy:i}):z.rects),{x:p,y:u}=ha(m,x,d)),T=-1)}return{x:p,y:u,placement:x,strategy:i,middlewareData:b}};async function ao(o,t){var e;t===void 0&&(t={});let{x:r,y:i,platform:s,rects:a,elements:n,strategy:d}=o,{boundary:m="clippingAncestors",rootBoundary:p="viewport",elementContext:u="floating",altBoundary:x=!1,padding:b=0}=nt(t,o),E=li(b),I=n[x?u==="floating"?"reference":"floating":u],S=ct(await s.getClippingRect({element:(e=await(s.isElement==null?void 0:s.isElement(I)))==null||e?I:I.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(n.floating)),boundary:m,rootBoundary:p,strategy:d})),k=u==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(n.floating)),$=await(s.isElement==null?void 0:s.isElement(R))?await(s.getScale==null?void 0:s.getScale(R))||{x:1,y:1}:{x:1,y:1},z=ct(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:n,rect:k,offsetParent:R,strategy:d}):k);return{top:(S.top-z.top+E.top)/$.y,bottom:(z.bottom-S.bottom+E.bottom)/$.y,left:(S.left-z.left+E.left)/$.x,right:(z.right-S.right+E.right)/$.x}}var fa=o=>({name:"arrow",options:o,async fn(t){let{x:e,y:r,placement:i,rects:s,platform:a,elements:n,middlewareData:d}=t,{element:m,padding:p=0}=nt(o,t)||{};if(m==null)return{};let u=li(p),x={x:e,y:r},b=so(i),E=io(b),T=await a.getDimensions(m),I=b==="y",S=I?"top":"left",k=I?"bottom":"right",R=I?"clientHeight":"clientWidth",$=s.reference[E]+s.reference[b]-x[b]-s.floating[E],z=x[b]-s.reference[b],J=await(a.getOffsetParent==null?void 0:a.getOffsetParent(m)),ce=J?J[R]:0;(!ce||!await(a.isElement==null?void 0:a.isElement(J)))&&(ce=n.floating[R]||s.floating[E]);let Te=$/2-z/2,ue=ce/2-T[E]/2-1,de=Ee(u[S],ue),De=Ee(u[k],ue),fe=de,$e=ce-T[E]-De,G=ce/2-T[E]/2+Te,kt=oo(fe,G,$e),Ae=!d.arrow&<(i)!=null&&G!==kt&&s.reference[E]/2-(G<fe?de:De)-T[E]/2<0,ge=Ae?G<fe?G-fe:G-$e:0;return{[b]:x[b]+ge,data:{[b]:kt,centerOffset:G-kt-ge,...Ae&&{alignmentOffset:ge}},reset:Ae}}});var ga=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(t){var e,r;let{placement:i,middlewareData:s,rects:a,initialPlacement:n,platform:d,elements:m}=t,{mainAxis:p=!0,crossAxis:u=!0,fallbackPlacements:x,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:T=!0,...I}=nt(o,t);if((e=s.arrow)!=null&&e.alignmentOffset)return{};let S=Ne(i),k=Ge(n),R=Ne(n)===n,$=await(d.isRTL==null?void 0:d.isRTL(m.floating)),z=x||(R||!T?[vr(n)]:ma(n)),J=E!=="none";!x&&J&&z.push(...pa(n,T,E,$));let ce=[n,...z],Te=await ao(t,I),ue=[],de=((r=s.flip)==null?void 0:r.overflows)||[];if(p&&ue.push(Te[S]),u){let G=da(i,a,$);ue.push(Te[G[0]],Te[G[1]])}if(de=[...de,{placement:i,overflows:ue}],!ue.every(G=>G<=0)){var De,fe;let G=(((De=s.flip)==null?void 0:De.index)||0)+1,kt=ce[G];if(kt)return{data:{index:G,overflows:de},reset:{placement:kt}};let Ae=(fe=de.filter(ge=>ge.overflows[0]<=0).sort((ge,Pe)=>ge.overflows[1]-Pe.overflows[1])[0])==null?void 0:fe.placement;if(!Ae)switch(b){case"bestFit":{var $e;let ge=($e=de.filter(Pe=>{if(J){let Ue=Ge(Pe.placement);return Ue===k||Ue==="y"}return!0}).map(Pe=>[Pe.placement,Pe.overflows.filter(Ue=>Ue>0).reduce((Ue,Gn)=>Ue+Gn,0)]).sort((Pe,Ue)=>Pe[1]-Ue[1])[0])==null?void 0:$e[0];ge&&(Ae=ge);break}case"initialPlacement":Ae=n;break}if(i!==Ae)return{reset:{placement:Ae}}}return{}}}};async function Bl(o,t){let{placement:e,platform:r,elements:i}=o,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Ne(e),n=lt(e),d=Ge(e)==="y",m=["left","top"].includes(a)?-1:1,p=s&&d?-1:1,u=nt(t,o),{mainAxis:x,crossAxis:b,alignmentAxis:E}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return n&&typeof E=="number"&&(b=n==="end"?E*-1:E),d?{x:b*p,y:x*m}:{x:x*m,y:b*p}}var ba=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(t){var e,r;let{x:i,y:s,placement:a,middlewareData:n}=t,d=await Bl(t,o);return a===((e=n.offset)==null?void 0:e.placement)&&(r=n.arrow)!=null&&r.alignmentOffset?{}:{x:i+d.x,y:s+d.y,data:{...d,placement:a}}}}},va=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(t){let{x:e,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:n={fn:I=>{let{x:S,y:k}=I;return{x:S,y:k}}},...d}=nt(o,t),m={x:e,y:r},p=await ao(t,d),u=Ge(Ne(i)),x=ni(u),b=m[x],E=m[u];if(s){let I=x==="y"?"top":"left",S=x==="y"?"bottom":"right",k=b+p[I],R=b-p[S];b=oo(k,b,R)}if(a){let I=u==="y"?"top":"left",S=u==="y"?"bottom":"right",k=E+p[I],R=E-p[S];E=oo(k,E,R)}let T=n.fn({...t,[x]:b,[u]:E});return{...T,data:{x:T.x-e,y:T.y-r,enabled:{[x]:s,[u]:a}}}}}};var ya=function(o){return o===void 0&&(o={}),{name:"size",options:o,async fn(t){var e,r;let{placement:i,rects:s,platform:a,elements:n}=t,{apply:d=()=>{},...m}=nt(o,t),p=await ao(t,m),u=Ne(i),x=lt(i),b=Ge(i)==="y",{width:E,height:T}=s.floating,I,S;u==="top"||u==="bottom"?(I=u,S=x===(await(a.isRTL==null?void 0:a.isRTL(n.floating))?"start":"end")?"left":"right"):(S=u,I=x==="end"?"top":"bottom");let k=T-p.top-p.bottom,R=E-p.left-p.right,$=Ee(T-p[I],k),z=Ee(E-p[S],R),J=!t.middlewareData.shift,ce=$,Te=z;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&(Te=R),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(ce=k),J&&!x){let de=q(p.left,0),De=q(p.right,0),fe=q(p.top,0),$e=q(p.bottom,0);b?Te=E-2*(de!==0||De!==0?de+De:q(p.left,p.right)):ce=T-2*(fe!==0||$e!==0?fe+$e:q(p.top,p.bottom))}await d({...t,availableWidth:Te,availableHeight:ce});let ue=await a.getDimensions(n.floating);return E!==ue.width||T!==ue.height?{reset:{rects:!0}}:{}}}};function no(){return typeof window<"u"}function dt(o){return Ea(o)?(o.nodeName||"").toLowerCase():"#document"}function Z(o){var t;return(o==null||(t=o.ownerDocument)==null?void 0:t.defaultView)||window}function pe(o){var t;return(t=(Ea(o)?o.ownerDocument:o.document)||window.document)==null?void 0:t.documentElement}function Ea(o){return no()?o instanceof Node||o instanceof Z(o).Node:!1}function ae(o){return no()?o instanceof Element||o instanceof Z(o).Element:!1}function he(o){return no()?o instanceof HTMLElement||o instanceof Z(o).HTMLElement:!1}function xa(o){return!no()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof Z(o).ShadowRoot}function Gt(o){let{overflow:t,overflowX:e,overflowY:r,display:i}=ne(o);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(i)}function Ta(o){return["table","td","th"].includes(dt(o))}function Er(o){return[":popover-open",":modal"].some(t=>{try{return o.matches(t)}catch{return!1}})}function lo(o){let t=co(),e=ae(o)?ne(o):o;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(e.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(e.contain||"").includes(r))}function Aa(o){let t=Oe(o);for(;he(t)&&!mt(t);){if(lo(t))return t;if(Er(t))return null;t=Oe(t)}return null}function co(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function mt(o){return["html","body","#document"].includes(dt(o))}function ne(o){return Z(o).getComputedStyle(o)}function Tr(o){return ae(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function Oe(o){if(dt(o)==="html")return o;let t=o.assignedSlot||o.parentNode||xa(o)&&o.host||pe(o);return xa(t)?t.host:t}function Sa(o){let t=Oe(o);return mt(t)?o.ownerDocument?o.ownerDocument.body:o.body:he(t)&&Gt(t)?t:Sa(t)}function Bt(o,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let i=Sa(o),s=i===((r=o.ownerDocument)==null?void 0:r.body),a=Z(i);if(s){let n=mo(a);return t.concat(a,a.visualViewport||[],Gt(i)?i:[],n&&e?Bt(n):[])}return t.concat(i,Bt(i,[],e))}function mo(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function ka(o){let t=ne(o),e=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=he(o),s=i?o.offsetWidth:e,a=i?o.offsetHeight:r,n=yr(e)!==s||yr(r)!==a;return n&&(e=s,r=a),{width:e,height:r,$:n}}function di(o){return ae(o)?o:o.contextElement}function Yt(o){let t=di(o);if(!he(t))return me(1);let e=t.getBoundingClientRect(),{width:r,height:i,$:s}=ka(t),a=(s?yr(e.width):e.width)/r,n=(s?yr(e.height):e.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!n||!Number.isFinite(n))&&(n=1),{x:a,y:n}}var Gl=me(0);function wa(o){let t=Z(o);return!co()||!t.visualViewport?Gl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Yl(o,t,e){return t===void 0&&(t=!1),!e||t&&e!==Z(o)?!1:t}function pt(o,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let i=o.getBoundingClientRect(),s=di(o),a=me(1);t&&(r?ae(r)&&(a=Yt(r)):a=Yt(o));let n=Yl(s,e,r)?wa(s):me(0),d=(i.left+n.x)/a.x,m=(i.top+n.y)/a.y,p=i.width/a.x,u=i.height/a.y;if(s){let x=Z(s),b=r&&ae(r)?Z(r):r,E=x,T=mo(E);for(;T&&r&&b!==E;){let I=Yt(T),S=T.getBoundingClientRect(),k=ne(T),R=S.left+(T.clientLeft+parseFloat(k.paddingLeft))*I.x,$=S.top+(T.clientTop+parseFloat(k.paddingTop))*I.y;d*=I.x,m*=I.y,p*=I.x,u*=I.y,d+=R,m+=$,E=Z(T),T=mo(E)}}return ct({width:p,height:u,x:d,y:m})}function mi(o,t){let e=Tr(o).scrollLeft;return t?t.left+e:pt(pe(o)).left+e}function Ca(o,t,e){e===void 0&&(e=!1);let r=o.getBoundingClientRect(),i=r.left+t.scrollLeft-(e?0:mi(o,r)),s=r.top+t.scrollTop;return{x:i,y:s}}function ql(o){let{elements:t,rect:e,offsetParent:r,strategy:i}=o,s=i==="fixed",a=pe(r),n=t?Er(t.floating):!1;if(r===a||n&&s)return e;let d={scrollLeft:0,scrollTop:0},m=me(1),p=me(0),u=he(r);if((u||!u&&!s)&&((dt(r)!=="body"||Gt(a))&&(d=Tr(r)),he(r))){let b=pt(r);m=Yt(r),p.x=b.x+r.clientLeft,p.y=b.y+r.clientTop}let x=a&&!u&&!s?Ca(a,d,!0):me(0);return{width:e.width*m.x,height:e.height*m.y,x:e.x*m.x-d.scrollLeft*m.x+p.x+x.x,y:e.y*m.y-d.scrollTop*m.y+p.y+x.y}}function Wl(o){return Array.from(o.getClientRects())}function Xl(o){let t=pe(o),e=Tr(o),r=o.ownerDocument.body,i=q(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=q(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-e.scrollLeft+mi(o),n=-e.scrollTop;return ne(r).direction==="rtl"&&(a+=q(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:a,y:n}}function Zl(o,t){let e=Z(o),r=pe(o),i=e.visualViewport,s=r.clientWidth,a=r.clientHeight,n=0,d=0;if(i){s=i.width,a=i.height;let m=co();(!m||m&&t==="fixed")&&(n=i.offsetLeft,d=i.offsetTop)}return{width:s,height:a,x:n,y:d}}function jl(o,t){let e=pt(o,!0,t==="fixed"),r=e.top+o.clientTop,i=e.left+o.clientLeft,s=he(o)?Yt(o):me(1),a=o.clientWidth*s.x,n=o.clientHeight*s.y,d=i*s.x,m=r*s.y;return{width:a,height:n,x:d,y:m}}function _a(o,t,e){let r;if(t==="viewport")r=Zl(o,e);else if(t==="document")r=Xl(pe(o));else if(ae(t))r=jl(t,e);else{let i=wa(o);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ct(r)}function La(o,t){let e=Oe(o);return e===t||!ae(e)||mt(e)?!1:ne(e).position==="fixed"||La(e,t)}function Kl(o,t){let e=t.get(o);if(e)return e;let r=Bt(o,[],!1).filter(n=>ae(n)&&dt(n)!=="body"),i=null,s=ne(o).position==="fixed",a=s?Oe(o):o;for(;ae(a)&&!mt(a);){let n=ne(a),d=lo(a);!d&&n.position==="fixed"&&(i=null),(s?!d&&!i:!d&&n.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Gt(a)&&!d&&La(o,a))?r=r.filter(p=>p!==a):i=n,a=Oe(a)}return t.set(o,r),r}function Ql(o){let{element:t,boundary:e,rootBoundary:r,strategy:i}=o,a=[...e==="clippingAncestors"?Er(t)?[]:Kl(t,this._c):[].concat(e),r],n=a[0],d=a.reduce((m,p)=>{let u=_a(t,p,i);return m.top=q(u.top,m.top),m.right=Ee(u.right,m.right),m.bottom=Ee(u.bottom,m.bottom),m.left=q(u.left,m.left),m},_a(t,n,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Jl(o){let{width:t,height:e}=ka(o);return{width:t,height:e}}function ec(o,t,e){let r=he(t),i=pe(t),s=e==="fixed",a=pt(o,!0,s,t),n={scrollLeft:0,scrollTop:0},d=me(0);if(r||!r&&!s)if((dt(t)!=="body"||Gt(i))&&(n=Tr(t)),r){let x=pt(t,!0,s,t);d.x=x.x+t.clientLeft,d.y=x.y+t.clientTop}else i&&(d.x=mi(i));let m=i&&!r&&!s?Ca(i,n):me(0),p=a.left+n.scrollLeft-d.x-m.x,u=a.top+n.scrollTop-d.y-m.y;return{x:p,y:u,width:a.width,height:a.height}}function ci(o){return ne(o).position==="static"}function Ia(o,t){if(!he(o)||ne(o).position==="fixed")return null;if(t)return t(o);let e=o.offsetParent;return pe(o)===e&&(e=e.ownerDocument.body),e}function Ra(o,t){let e=Z(o);if(Er(o))return e;if(!he(o)){let i=Oe(o);for(;i&&!mt(i);){if(ae(i)&&!ci(i))return i;i=Oe(i)}return e}let r=Ia(o,t);for(;r&&Ta(r)&&ci(r);)r=Ia(r,t);return r&&mt(r)&&ci(r)&&!lo(r)?e:r||Aa(o)||e}var tc=async function(o){let t=this.getOffsetParent||Ra,e=this.getDimensions,r=await e(o.floating);return{reference:ec(o.reference,await t(o.floating),o.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function rc(o){return ne(o).direction==="rtl"}var oc={convertOffsetParentRelativeRectToViewportRelativeRect:ql,getDocumentElement:pe,getClippingRect:Ql,getOffsetParent:Ra,getElementRects:tc,getClientRects:Wl,getDimensions:Jl,getScale:Yt,isElement:ae,isRTL:rc};function ic(o,t){let e=null,r,i=pe(o);function s(){var n;clearTimeout(r),(n=e)==null||n.disconnect(),e=null}function a(n,d){n===void 0&&(n=!1),d===void 0&&(d=1),s();let{left:m,top:p,width:u,height:x}=o.getBoundingClientRect();if(n||t(),!u||!x)return;let b=xr(p),E=xr(i.clientWidth-(m+u)),T=xr(i.clientHeight-(p+x)),I=xr(m),k={rootMargin:-b+"px "+-E+"px "+-T+"px "+-I+"px",threshold:q(0,Ee(1,d))||1},R=!0;function $(z){let J=z[0].intersectionRatio;if(J!==d){if(!R)return a();J?a(!1,J):r=setTimeout(()=>{a(!1,1e-7)},1e3)}R=!1}try{e=new IntersectionObserver($,{...k,root:i.ownerDocument})}catch{e=new IntersectionObserver($,k)}e.observe(o)}return a(!0),s}function Na(o,t,e,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:n=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,m=di(o),p=i||s?[...m?Bt(m):[],...Bt(t)]:[];p.forEach(S=>{i&&S.addEventListener("scroll",e,{passive:!0}),s&&S.addEventListener("resize",e)});let u=m&&n?ic(m,e):null,x=-1,b=null;a&&(b=new ResizeObserver(S=>{let[k]=S;k&&k.target===m&&b&&(b.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var R;(R=b)==null||R.observe(t)})),e()}),m&&!d&&b.observe(m),b.observe(t));let E,T=d?pt(o):null;d&&I();function I(){let S=pt(o);T&&(S.x!==T.x||S.y!==T.y||S.width!==T.width||S.height!==T.height)&&e(),T=S,E=requestAnimationFrame(I)}return e(),()=>{var S;p.forEach(k=>{i&&k.removeEventListener("scroll",e),s&&k.removeEventListener("resize",e)}),u==null||u(),(S=b)==null||S.disconnect(),b=null,d&&cancelAnimationFrame(E)}}var Oa=ba;var Ma=va,za=ga,Da=ya;var $a=fa;var Pa=(o,t,e)=>{let r=new Map,i={platform:oc,...e},s={...i.platform,_c:r};return ua(o,t,{...i,platform:s})};var sc=f`
|
1435
1435
|
:host {
|
1436
1436
|
--mdc-popover-arrow-border-radius: 0.1875rem;
|
1437
1437
|
--mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
|
@@ -1534,7 +1534,7 @@
|
|
1534
1534
|
border-top-right-radius: var(--mdc-popover-arrow-border-radius);
|
1535
1535
|
border-bottom-left-radius: 100%;
|
1536
1536
|
}
|
1537
|
-
`,Ua=[sc];var Va=g.constructTagName("popover"),ht={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},
|
1537
|
+
`,Ua=[sc];var Va=g.constructTagName("popover"),ht={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},Ar={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},ut={TONAL:"tonal",CONTRAST:"contrast"},N={PLACEMENT:ht.BOTTOM,TRIGGER:Ar.CLICK,COLOR:ut.TONAL,OFFSET:4,VISIBLE:!1,ARROW:!1,CLOSE_BUTTON:!1,FOCUS_TRAP:!1,INTERACTIVE:!1,PREVENT_SCROLL:!1,HIDE_ON_ESCAPE:!1,HIDE_ON_BLUR:!1,HIDE_ON_CLICK_OUTSIDE:!1,FOCUS_BACK:!1,BACKDROP:!1,FLIP:!0,SIZE:!1,DELAY:"0,0",ROLE:"dialog",Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1};var Fa=o=>{class t extends o{constructor(...i){super(...i);this.enabledFocusTrap=N.FOCUS_TRAP;this.enabledPreventScroll=N.PREVENT_SCROLL;this.focusTrapIndex=-1;this.focusableElements=[];this.shouldWrapFocus=()=>!0;this.addEventListener("keydown",this.handleKeydown)}deactivateFocusTrap(){this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.focusTrapIndex=-1,document.body.style.overflow=""}hasNoClientRects(i){return i.getClientRects().length===0}hasZeroDimensions(i){let{width:s,height:a}=i.getBoundingClientRect(),{offsetWidth:n,offsetHeight:d}=i;return n+d+a+s===0}isNotVisible(i){return this.hasZeroDimensions(i)||this.hasNoClientRects(i)}hasHiddenStyle(i){let{display:s,opacity:a,visibility:n}=i.style;return s==="none"||a==="0"||n==="hidden"||n==="collapse"}hasComputedHidden(i){let s=getComputedStyle(i);return s.visibility==="hidden"||s.height==="0"||s.display==="none"}isHidden(i){return i.hasAttribute("hidden")||i.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(i)||this.isNotVisible(i)||this.hasComputedHidden(i)}isNotTabbable(i){return i.getAttribute("tabindex")==="-1"}isInteractiveElement(i){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(i.tagName)||i instanceof HTMLAnchorElement&&i.hasAttribute("href")||i instanceof HTMLInputElement&&i.type!=="hidden"||(i instanceof HTMLAudioElement||i instanceof HTMLVideoElement)&&i.hasAttribute("controls")||(i instanceof HTMLImageElement||i instanceof HTMLObjectElement)&&i.hasAttribute("usemap")||i.hasAttribute("tabindex")&&i.tabIndex>-1)}isFocusable(i){return this.isHidden(i)||this.isNotTabbable(i)?!1:this.isInteractiveElement(i)}findFocusable(i,s=new Set){return i instanceof HTMLElement&&this.isFocusable(i)&&s.add(i),Array.from(i.children).forEach(n=>{let d=n;this.isFocusable(d)&&s.add(d),d.shadowRoot?this.findFocusable(d.shadowRoot,s):d.tagName==="SLOT"?d.assignedElements({flatten:!0}).forEach(p=>{p instanceof HTMLElement&&this.findFocusable(p,s)}):this.findFocusable(d,s)}),[...s]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(i=0){this.focusableElements.length!==0&&(this.enabledPreventScroll&&(document.body.style.overflow="hidden"),this.focusableElements[i]&&(this.focusTrapIndex=i,this.focusableElements[i].focus()))}calculateNextIndex(i,s){let{length:a}=this.focusableElements,n=this.shouldWrapFocus();if(i===-1)return s>0?0:a-1;let d=i+s;return n?(d<0&&(d=a-1),d>=a&&(d=0)):(d<0&&(d=0),d>=a&&(d=a-1)),d}getDeepActiveElement(){var s;let i=document.activeElement||document.body;for(;i instanceof HTMLElement&&((s=i.shadowRoot)!=null&&s.activeElement);)i=i.shadowRoot.activeElement;return i||document.body}findElement(i){return this.focusableElements.findIndex(s=>this.isEqualFocusNode(i,s))}isEqualFocusNode(i,s){return i.nodeType>=0?s.isEqualNode(i)&&s===i:!1}trapFocus(i){if(this.focusableElements.length===0)return;let s=this.getDeepActiveElement(),a=this.findElement(s);i?this.focusTrapIndex=this.calculateNextIndex(a,-1):this.focusTrapIndex=this.calculateNextIndex(a,1);let n=this.focusableElements[this.focusTrapIndex];n&&n.focus()}handleKeydown(i){!this.enabledFocusTrap||!this.focusableElements.length||i.key==="Tab"&&(i.preventDefault(),this.trapFocus(i.shiftKey))}}return l([c({type:Boolean})],t.prototype,"enabledFocusTrap",2),l([c({type:Boolean})],t.prototype,"enabledPreventScroll",2),t};var pi=class{constructor(){this.stack=[]}push(t){this.stack.push(t)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(t){this.stack=this.stack.filter(e=>e!==t)}clear(){this.stack=[]}},ft=new pi;var gt=class{static dispatchPopoverEvent(t,e){e.dispatchEvent(new CustomEvent(t,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowPopover(t){this.dispatchPopoverEvent("popover-on-show",t)}static onHidePopover(t){this.dispatchPopoverEvent("popover-on-hide",t)}static onCreatedPopover(t){this.dispatchPopoverEvent("popover-on-created",t)}static onDestroyedPopover(t){this.dispatchPopoverEvent("popover-on-destroyed",t)}};var po=class{constructor(t){this.arrowPixelChange=!1;this.popover=t}setupDelay(){try{let[t,e]=this.popover.delay.split(",").map(r=>{let i=parseInt(r,10);if(Number.isNaN(i)||i<0)throw new Error(`Invalid delay value: ${r}`);return i});return[t,e]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(t){let e=this.popover.renderRoot.querySelector(".popover-hover-bridge");Object.assign(e.style,{top:"",left:"",right:"",bottom:""});let r=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,i=this.popover.offsetHeight||0,s=this.popover.offsetWidth||0;if(e)switch(t.split("-")[0]){case"top":e.style.height=r,e.style.bottom=`calc(-1 * (${r}))`,e.style.left="50%",e.style.width=`${s}px`;break;case"left":e.style.height=`${i}px`,e.style.width=r,e.style.right=`calc(-1.5 * (${r}))`;break;case"right":e.style.height=`${i}px`,e.style.width=r,e.style.left=`calc(-0.5 * (${r}))`;break;case"bottom":default:e.style.height=r,e.style.top=`calc(-1 * (${r}))`,e.style.left="50%",e.style.width=`${s}px`;break}}setupAppendTo(){if(this.popover.appendTo){let t=document.getElementById(this.popover.appendTo);t&&t.appendChild(this.popover)}}setupAccessibility(){var t,e,r;this.popover.toggleAttribute("aria-modal",this.popover.interactive),this.popover.interactive&&(this.popover.ariaLabel||(this.popover.ariaLabel=((t=this.popover.triggerElement)==null?void 0:t.ariaLabel)||((e=this.popover.triggerElement)==null?void 0:e.textContent)||""),this.popover.ariaLabelledby||(this.popover.ariaLabelledby=((r=this.popover.triggerElement)==null?void 0:r.id)||""))}updateArrowStyle(t,e){var p;if(!this.popover.arrowElement)return;let r=e.split("-")[0],i={top:"bottom",right:"left",bottom:"top",left:"right"}[r],{x:s,y:a}=t,n=this.popover.arrowElement.getBoundingClientRect(),d=(p=this.popover.arrowElement.offsetParent)==null?void 0:p.getBoundingClientRect();if(!this.arrowPixelChange){let u=d!=null&&d[i]?12-Math.abs(n[i]-d[i]):0;Math.round(u)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let m=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",r),Object.assign(this.popover.arrowElement.style,{left:s!=null?`${s}px`:"",top:a!=null?`${a}px`:"",[i]:`${-this.popover.arrowElement.offsetHeight/2-m}px`})}updatePopoverStyle(t,e){Object.assign(this.popover.style,{left:`${t}px`,top:`${e}px`})}createBackdrop(){var t;if(!this.popover.backdropElement){let e=document.createElement("div");e.classList.add("popover-backdrop"),(t=this.popover.parentElement)==null||t.appendChild(e);let r=document.createElement("style");r.textContent=`
|
1538
1538
|
.popover-backdrop {
|
1539
1539
|
position: fixed;
|
1540
1540
|
top: 0;
|
@@ -1544,7 +1544,7 @@
|
|
1544
1544
|
background: transparent;
|
1545
1545
|
z-index: ${this.popover.zIndex-1};
|
1546
1546
|
}
|
1547
|
-
`,e.appendChild(r),this.popover.backdropElement=e}}};var L=class extends Fa(y){constructor(){super();this.id="";this.triggerID="";this.trigger=N.TRIGGER;this.placement=N.PLACEMENT;this.color=N.COLOR;this.visible=N.VISIBLE;this.offset=N.OFFSET;this.focusTrap=N.FOCUS_TRAP;this.preventScroll=N.PREVENT_SCROLL;this.showArrow=N.ARROW;this.closeButton=N.CLOSE_BUTTON;this.interactive=N.INTERACTIVE;this.delay=N.DELAY;this.hideOnEscape=N.HIDE_ON_ESCAPE;this.hideOnBlur=N.HIDE_ON_BLUR;this.hideOnOutsideClick=N.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=N.FOCUS_BACK;this.backdrop=N.BACKDROP;this.flip=N.FLIP;this.size=N.SIZE;this.zIndex=N.Z_INDEX;this.appendTo="";this.closeButtonAriaLabel=null;this.role=N.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=N.DISABLE_ARIA_EXPANDED;this.arrowElement=null;this.triggerElement=null;this.hoverTimer=null;this.isTriggerClicked=!1;this.openDelay=0;this.closeDelay=0;this.backdropElement=null;this.onOutsidePopoverClick=e=>{if(ft.peek()!==this)return;let r=!1,i=e.composedPath();r=this.contains(e.target)||i.includes(this.triggerElement);let s=this.backdropElement?i.includes(this.backdropElement):!1;(!r||s)&&this.hidePopover()};this.onEscapeKeydown=e=>{!this.visible||e.code!=="Escape"||(e.preventDefault(),this.hidePopover())};this.onPopoverFocusOut=e=>{this.contains(e.relatedTarget)||this.hidePopover()};this.startCloseDelay=()=>{if(!this.interactive)this.hidePopover();else{if(this.isTriggerClicked)return;this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay)}};this.cancelCloseDelay=()=>{this.hoverTimer&&(clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.showPopover=()=>{this.cancelCloseDelay(),setTimeout(()=>{this.visible=!0},this.openDelay)};this.hidePopover=()=>{ft.peek()===this&&setTimeout(()=>{this.visible=!1,this.isTriggerClicked=!1},this.closeDelay)};this.togglePopoverVisible=()=>{this.isTriggerClicked?this.hidePopover():(this.showPopover(),this.isTriggerClicked=!0)};this.utils=new
|
1547
|
+
`,e.appendChild(r),this.popover.backdropElement=e}}};var L=class extends Fa(y){constructor(){super();this.id="";this.triggerID="";this.trigger=N.TRIGGER;this.placement=N.PLACEMENT;this.color=N.COLOR;this.visible=N.VISIBLE;this.offset=N.OFFSET;this.focusTrap=N.FOCUS_TRAP;this.preventScroll=N.PREVENT_SCROLL;this.showArrow=N.ARROW;this.closeButton=N.CLOSE_BUTTON;this.interactive=N.INTERACTIVE;this.delay=N.DELAY;this.hideOnEscape=N.HIDE_ON_ESCAPE;this.hideOnBlur=N.HIDE_ON_BLUR;this.hideOnOutsideClick=N.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=N.FOCUS_BACK;this.backdrop=N.BACKDROP;this.flip=N.FLIP;this.size=N.SIZE;this.zIndex=N.Z_INDEX;this.appendTo="";this.closeButtonAriaLabel=null;this.role=N.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=N.DISABLE_ARIA_EXPANDED;this.arrowElement=null;this.triggerElement=null;this.hoverTimer=null;this.isTriggerClicked=!1;this.openDelay=0;this.closeDelay=0;this.backdropElement=null;this.onOutsidePopoverClick=e=>{if(ft.peek()!==this)return;let r=!1,i=e.composedPath();r=this.contains(e.target)||i.includes(this.triggerElement);let s=this.backdropElement?i.includes(this.backdropElement):!1;(!r||s)&&this.hidePopover()};this.onEscapeKeydown=e=>{!this.visible||e.code!=="Escape"||(e.preventDefault(),this.hidePopover())};this.onPopoverFocusOut=e=>{this.contains(e.relatedTarget)||this.hidePopover()};this.startCloseDelay=()=>{if(!this.interactive)this.hidePopover();else{if(this.isTriggerClicked)return;this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay)}};this.cancelCloseDelay=()=>{this.hoverTimer&&(clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.showPopover=()=>{this.cancelCloseDelay(),setTimeout(()=>{this.visible=!0},this.openDelay)};this.hidePopover=()=>{ft.peek()===this&&setTimeout(()=>{this.visible=!1,this.isTriggerClicked=!1},this.closeDelay)};this.togglePopoverVisible=()=>{this.isTriggerClicked?this.hidePopover():(this.showPopover(),this.isTriggerClicked=!0)};this.utils=new po(this)}async firstUpdated(e){super.firstUpdated(e),this.utils.setupAppendTo(),[this.openDelay,this.closeDelay]=this.utils.setupDelay(),this.setupTriggerListener(),this.utils.setupAccessibility(),this.style.zIndex=`${this.zIndex}`,gt.onCreatedPopover(this),this.visible&&(this.positionPopover(),await this.handleCreatePopoverFirstUpdate())}async disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),gt.onDestroyedPopover(this),ft.remove(this)}setupTriggerListener(){if(this.triggerID&&(this.triggerElement=this.getRootNode().querySelector(`#${this.triggerID}`),!!this.triggerElement)){if(this.trigger==="mouseenter"&&(this.interactive?this.trigger="mouseenter click":this.trigger="mouseenter focusin"),this.trigger.includes("click")&&this.triggerElement.addEventListener("click",this.togglePopoverVisible),this.trigger.includes("mouseenter")){let e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.addEventListener("mouseenter",this.showPopover),this.triggerElement.addEventListener("mouseleave",this.startCloseDelay),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),e==null||e.addEventListener("mouseenter",this.cancelCloseDelay)}this.trigger.includes("focusin")&&(this.triggerElement.addEventListener("focusin",this.showPopover),this.interactive||this.triggerElement.addEventListener("focusout",this.hidePopover)),this.addEventListener("focus-trap-exit",this.hidePopover)}}removeEventListeners(){if(!this.triggerElement)return;let e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.removeEventListener("click",this.togglePopoverVisible),this.triggerElement.removeEventListener("mouseenter",this.showPopover),this.triggerElement.removeEventListener("mouseleave",this.hidePopover),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),this.triggerElement.removeEventListener("focusin",this.showPopover),this.triggerElement.removeEventListener("focusout",this.hidePopover),e==null||e.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("focus-trap-exit",this.hidePopover)}async updated(e){if(super.updated(e),e.has("visible")){let r=e.get("visible");await this.isOpenUpdated(r,this.visible)}if(e.has("placement")&&this.setAttribute("placement",Object.values(ht).includes(this.placement)?this.placement:N.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){let i=this.trigger.split(" ").filter(s=>Object.values(Ar).includes(s));this.setAttribute("trigger",i.length>0?this.trigger:N.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("color")&&this.setAttribute("color",Object.values(ut).includes(this.color)?this.color:N.COLOR),e.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),e.has("append-to")&&this.utils.setupAppendTo(),(e.has("interactive")||e.has("aria-label")||e.has("aria-labelledby"))&&this.utils.setupAccessibility()}async isOpenUpdated(e,r){var i,s,a;e===r||!this.triggerElement||(r?(ft.peek()!==this&&ft.push(this),this.enabledFocusTrap=this.focusTrap,this.enabledPreventScroll=this.preventScroll,this.backdrop&&(this.utils.createBackdrop(),this.triggerElement.style.zIndex=`${this.zIndex}`),this.positionPopover(),await this.handleCreatePopoverFirstUpdate(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="none")),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.addEventListener("keydown",this.onEscapeKeydown),this.disableAriaExpanded||this.triggerElement.setAttribute("aria-expanded","true"),this.interactive&&this.triggerElement.setAttribute("aria-haspopup",this.triggerElement.getAttribute("aria-haspopup")||"dialog"),gt.onShowPopover(this)):(ft.pop(),this.backdropElement&&((i=this.backdropElement)==null||i.remove(),this.backdropElement=null),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.removeEventListener("keydown",this.onEscapeKeydown),(s=this.deactivateFocusTrap)==null||s.call(this),this.disableAriaExpanded||this.triggerElement.removeAttribute("aria-expanded"),this.interactive&&this.triggerElement.removeAttribute("aria-haspopup"),this.focusBackToTrigger&&((a=this.triggerElement)==null||a.focus()),gt.onHidePopover(this)))}async handleCreatePopoverFirstUpdate(){var e,r;this.visible&&this.interactive&&((e=this.setFocusableElements)==null||e.call(this),await this.updateComplete,(r=this.setInitialFocus)==null||r.call(this))}positionPopover(){if(!this.triggerElement)return;let e=[Ma()],r=this.offset;if(this.flip&&e.push(za()),this.size){let i=this.renderRoot.querySelector('[part="popover-content"]');e.push(Da({apply({availableHeight:s}){i&&Object.assign(i.style,{maxHeight:`${s}px`})},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){let i=this.arrowElement.offsetHeight;r=Math.sqrt(2*i**2)/2+this.offset,e.push($a({element:this.arrowElement,padding:12}))}e.push(Oa(r)),Na(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:i,y:s,middlewareData:a,placement:n}=await Pa(this.triggerElement,this,{placement:this.placement,middleware:e});this.utils.updatePopoverStyle(i,s),a.arrow&&this.arrowElement&&this.utils.updateArrowStyle(a.arrow,n),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(n)})}render(){return h`
|
1548
1548
|
<div class="popover-hover-bridge"></div>
|
1549
1549
|
${this.closeButton?h` <mdc-button
|
1550
1550
|
class="popover-close"
|
@@ -1558,7 +1558,7 @@
|
|
1558
1558
|
<div part="popover-content">
|
1559
1559
|
<slot></slot>
|
1560
1560
|
</div>
|
1561
|
-
`}};L.styles=[...y.styles,...Ua],l([c({type:String,reflect:!0})],L.prototype,"id",2),l([c({type:String,reflect:!0})],L.prototype,"triggerID",2),l([c({type:String,reflect:!0})],L.prototype,"trigger",2),l([c({type:String,reflect:!0})],L.prototype,"placement",2),l([c({type:String,reflect:!0})],L.prototype,"color",2),l([c({type:Boolean,reflect:!0})],L.prototype,"visible",2),l([c({type:Number,reflect:!0})],L.prototype,"offset",2),l([c({type:Boolean,reflect:!0,attribute:"focus-trap"})],L.prototype,"focusTrap",2),l([c({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],L.prototype,"preventScroll",2),l([c({type:Boolean,reflect:!0,attribute:"show-arrow"})],L.prototype,"showArrow",2),l([c({type:Boolean,reflect:!0,attribute:"close-button"})],L.prototype,"closeButton",2),l([c({type:Boolean,reflect:!0})],L.prototype,"interactive",2),l([c({type:String,reflect:!0})],L.prototype,"delay",2),l([c({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],L.prototype,"hideOnEscape",2),l([c({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],L.prototype,"hideOnBlur",2),l([c({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],L.prototype,"hideOnOutsideClick",2),l([c({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],L.prototype,"focusBackToTrigger",2),l([c({type:Boolean,reflect:!0})],L.prototype,"backdrop",2),l([c({type:Boolean,reflect:!0})],L.prototype,"flip",2),l([c({type:Boolean,reflect:!0})],L.prototype,"size",2),l([c({type:Number,reflect:!0,attribute:"z-index"})],L.prototype,"zIndex",2),l([c({type:String,reflect:!0,attribute:"append-to"})],L.prototype,"appendTo",2),l([c({type:String,attribute:"close-button-aria-label"})],L.prototype,"closeButtonAriaLabel",2),l([c({type:String,reflect:!0})],L.prototype,"role",2),l([c({type:String,reflect:!0,attribute:"aria-labelledby"})],L.prototype,"ariaLabelledby",2),l([c({type:String,reflect:!0,attribute:"aria-describedby"})],L.prototype,"ariaDescribedby",2),l([c({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],L.prototype,"disableAriaExpanded",2);var
|
1561
|
+
`}};L.styles=[...y.styles,...Ua],l([c({type:String,reflect:!0})],L.prototype,"id",2),l([c({type:String,reflect:!0})],L.prototype,"triggerID",2),l([c({type:String,reflect:!0})],L.prototype,"trigger",2),l([c({type:String,reflect:!0})],L.prototype,"placement",2),l([c({type:String,reflect:!0})],L.prototype,"color",2),l([c({type:Boolean,reflect:!0})],L.prototype,"visible",2),l([c({type:Number,reflect:!0})],L.prototype,"offset",2),l([c({type:Boolean,reflect:!0,attribute:"focus-trap"})],L.prototype,"focusTrap",2),l([c({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],L.prototype,"preventScroll",2),l([c({type:Boolean,reflect:!0,attribute:"show-arrow"})],L.prototype,"showArrow",2),l([c({type:Boolean,reflect:!0,attribute:"close-button"})],L.prototype,"closeButton",2),l([c({type:Boolean,reflect:!0})],L.prototype,"interactive",2),l([c({type:String,reflect:!0})],L.prototype,"delay",2),l([c({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],L.prototype,"hideOnEscape",2),l([c({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],L.prototype,"hideOnBlur",2),l([c({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],L.prototype,"hideOnOutsideClick",2),l([c({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],L.prototype,"focusBackToTrigger",2),l([c({type:Boolean,reflect:!0})],L.prototype,"backdrop",2),l([c({type:Boolean,reflect:!0})],L.prototype,"flip",2),l([c({type:Boolean,reflect:!0})],L.prototype,"size",2),l([c({type:Number,reflect:!0,attribute:"z-index"})],L.prototype,"zIndex",2),l([c({type:String,reflect:!0,attribute:"append-to"})],L.prototype,"appendTo",2),l([c({type:String,attribute:"close-button-aria-label"})],L.prototype,"closeButtonAriaLabel",2),l([c({type:String,reflect:!0})],L.prototype,"role",2),l([c({type:String,reflect:!0,attribute:"aria-labelledby"})],L.prototype,"ariaLabelledby",2),l([c({type:String,reflect:!0,attribute:"aria-describedby"})],L.prototype,"ariaDescribedby",2),l([c({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],L.prototype,"disableAriaExpanded",2);var Ye=L;var Ha=g.constructTagName("coachmark"),bt={COLOR:ut.CONTRAST,TRIGGER:Ar.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var vt=class extends Ye{constructor(){super();this.trigger=bt.TRIGGER;this.showArrow=bt.ARROW;this.closeButton=bt.CLOSE_BUTTON;this.disableAriaExpanded=bt.DISABLE_ARIA_EXPANDED;this.color=bt.COLOR,this.showArrow=bt.ARROW}};l([c({type:String,reflect:!0})],vt.prototype,"trigger",2),l([c({type:Boolean,attribute:"show-arrow"})],vt.prototype,"showArrow",2),l([c({type:Boolean,reflect:!0,attribute:"close-button"})],vt.prototype,"closeButton",2),l([c({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],vt.prototype,"disableAriaExpanded",2);var hi=vt;hi.register(Ha);var ac=hi;var Ba=g.constructTagName("divider"),Sr={HORIZONTAL:"horizontal",VERTICAL:"vertical"},ui={SOLID:"solid",GRADIENT:"gradient"},qe={POSITIVE:"positive",NEGATIVE:"negative"},_r={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},yt={ORIENTATION:Sr.HORIZONTAL,VARIANT:ui.SOLID,ARROW_DIRECTION:qe.NEGATIVE,BUTTON_DIRECTION:qe.NEGATIVE};var nc=[w,f`
|
1562
1562
|
:host {
|
1563
1563
|
--mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
|
1564
1564
|
--mdc-divider-width: 0.0625rem;
|
@@ -1769,11 +1769,11 @@
|
|
1769
1769
|
font-size: var(--mdc-divider-text-size);
|
1770
1770
|
line-height: var(--mdc-divider-text-line-height);
|
1771
1771
|
}
|
1772
|
-
`],Ga=nc;var
|
1772
|
+
`],Ga=nc;var We=class extends y{constructor(){super();this.orientation=yt.ORIENTATION;this.variant=yt.VARIANT;this.arrowDirection=yt.ARROW_DIRECTION;this.buttonPosition=yt.BUTTON_DIRECTION;this.setAttribute("data-type","mdc-primary-divider")}setVariant(e){this.setAttribute("variant",Object.values(ui).includes(e)?e:yt.VARIANT)}setOrientation(e){this.setAttribute("orientation",Object.values(Sr).includes(e)?e:yt.ORIENTATION)}ensureValidDirections(){let e=this.orientation===Sr.HORIZONTAL?qe.NEGATIVE:qe.POSITIVE;Object.values(qe).includes(this.buttonPosition)||(this.buttonPosition=e),Object.values(qe).includes(this.arrowDirection)||(this.arrowDirection=e)}setGrabberButton(){this.ensureValidDirections();let e=this.querySelector("mdc-button");if(e){let r=this.getArrowIcon();e.setAttribute("variant","secondary"),e.setAttribute("prefix-icon",r)}}getArrowIcon(){let e=this.orientation===Sr.HORIZONTAL,r=this.arrowDirection===qe.POSITIVE;return e?r?_r.UP:_r.DOWN:r?_r.RIGHT:_r.LEFT}update(e){super.update(e),e.has("orientation")&&this.setOrientation(this.orientation),e.has("variant")&&this.setVariant(this.variant),(e.has("orientation")||e.has("arrowDirection")||e.has("buttonPosition"))&&this.setGrabberButton()}inferDividerType(){var a;let e=(a=this.shadowRoot)==null?void 0:a.querySelector("slot"),r=(e==null?void 0:e.assignedElements({flatten:!0}))||[];if(r.length>1)return;let i=r.some(n=>n.tagName===nr.toUpperCase()),s=r.some(n=>n.tagName===mr.toUpperCase());i&&!s?this.setAttribute("data-type","mdc-text-divider"):!i&&s&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}render(){return h`
|
1773
1773
|
<div></div>
|
1774
1774
|
<slot @slotchange=${this.inferDividerType}></slot>
|
1775
1775
|
<div></div>
|
1776
|
-
`}};
|
1776
|
+
`}};We.styles=[...y.styles,...Ga],l([c({type:String,reflect:!0})],We.prototype,"orientation",2),l([c({type:String,reflect:!0})],We.prototype,"variant",2),l([c({type:String,attribute:"arrow-direction",reflect:!0})],We.prototype,"arrowDirection",2),l([c({type:String,attribute:"button-position",reflect:!0})],We.prototype,"buttonPosition",2);var fi=We;fi.register(Ba);var lc=fi;var cc=f`
|
1777
1777
|
:host([selected]){
|
1778
1778
|
border: 2px solid;
|
1779
1779
|
--mdc-chip-background-color: var(--mds-color-theme-background-label-default-active);
|
@@ -1793,7 +1793,7 @@
|
|
1793
1793
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
1794
1794
|
cursor: auto;
|
1795
1795
|
}
|
1796
|
-
`,Ya=[cc];var qa=g.constructTagName("filterchip"),gi={ICON_NAME:"check-bold",COLOR:"default"};var
|
1796
|
+
`,Ya=[cc];var qa=g.constructTagName("filterchip"),gi={ICON_NAME:"check-bold",COLOR:"default"};var Ir=class extends Ht{constructor(){super();this.selected=!1;this.color=gi.COLOR}setSelected(e){e?(this.iconName=gi.ICON_NAME,this.setAttribute("aria-pressed","true")):(this.iconName=void 0,this.setAttribute("aria-pressed","false"))}executeAction(){this.selected=!this.selected}update(e){super.update(e),e.has("selected")&&this.setSelected(this.selected)}};Ir.styles=[...Ht.styles,...Ya],l([c({type:Boolean,reflect:!0})],Ir.prototype,"selected",2);var bi=Ir;bi.register(qa);var dc=bi;var Wa=g.constructTagName("formfieldgroup"),vi={RADIOGROUP:"radiogroup",GROUP:"group"};var mc=f`
|
1797
1797
|
|
1798
1798
|
:host::part(container) {
|
1799
1799
|
display: flex;
|
@@ -1810,12 +1810,12 @@
|
|
1810
1810
|
:host::part(label-text){
|
1811
1811
|
font-weight: bold;
|
1812
1812
|
}
|
1813
|
-
`,Xa=[mc];var
|
1813
|
+
`,Xa=[mc];var ho=class extends U(se){constructor(){super();this.isRadio=!1;this.shouldRenderLabel=!1,this.id="",this.helpTextType=void 0,this.disabled=void 0}render(){var e;return h`
|
1814
1814
|
<div
|
1815
1815
|
part="container"
|
1816
1816
|
role="${this.isRadio?vi.RADIOGROUP:vi.GROUP}"
|
1817
|
-
aria-labelledby="${
|
1818
|
-
aria-describedby="${A(this.helpText?
|
1817
|
+
aria-labelledby="${V.HEADING_ID}"
|
1818
|
+
aria-describedby="${A(this.helpText?V.HELPER_TEXT_ID:"")}"
|
1819
1819
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
1820
1820
|
>
|
1821
1821
|
<div part="group-header">
|
@@ -1824,7 +1824,7 @@
|
|
1824
1824
|
</div>
|
1825
1825
|
<slot></slot>
|
1826
1826
|
</div>
|
1827
|
-
`}};
|
1827
|
+
`}};ho.styles=[...se.styles,...Xa];var yi=ho;yi.register(Wa);var uo=yi;lr.register(Wr);var pc=lr;var hc=[f`
|
1828
1828
|
:host{
|
1829
1829
|
--mdc-input-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
|
1830
1830
|
--mdc-input-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -1939,19 +1939,19 @@
|
|
1939
1939
|
opacity: 0;
|
1940
1940
|
pointer-events: none;
|
1941
1941
|
}
|
1942
|
-
`,...O(!0)],Za=hc;se.register(oa);var
|
1942
|
+
`,...O(!0)],Za=hc;se.register(oa);var Me=se;var ja=g.constructTagName("input"),fo={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},Ka={MAX_LENGTH:10,VALIDATION:ie.ERROR},Xe={VALIDATION:ie.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:it.TERTIARY,CLEAR_BUTTON_SIZE:Ce[20],PREFIX_TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:C.SPAN};var D=class extends oe(U(Me)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=fo.OFF;this.autocomplete="off";this.autofocus=!1;this.clearAriaLabel=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.inputElement.checkValidity(),this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(e=>{this.onerror&&this.onerror(e)})}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setInputValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&this.handleValueChange()}setInputValidity(){this.requiredLabel&&this.validationMessage&&this.value===""?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()}attributeChangedCallback(e,r,i){super.attributeChangedCallback(e,r,i),["maxlength","minlength","pattern","required"].includes(e)&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(a=>{this.onerror&&this.onerror(a)})}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value)}onInput(){this.updateValue(),this.setInputValidity()}onChange(e){this.updateValue(),this.setInputValidity();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?h`
|
1943
1943
|
<mdc-icon
|
1944
1944
|
class="leading-icon"
|
1945
1945
|
part="leading-icon"
|
1946
1946
|
name=${this.leadingIcon}
|
1947
|
-
size="${
|
1948
|
-
length-unit="${
|
1947
|
+
size="${Xe.ICON_SIZE_VALUE}"
|
1948
|
+
length-unit="${Xe.ICON_SIZE_UNIT}">
|
1949
1949
|
</mdc-icon>
|
1950
1950
|
`:v}renderPrefixText(){return this.prefixText?h`
|
1951
1951
|
<mdc-text
|
1952
1952
|
class="prefix-text"
|
1953
|
-
tagname="${
|
1954
|
-
type="${
|
1953
|
+
tagname="${Xe.PREFIX_TEXT_TAG}"
|
1954
|
+
type="${Xe.PREFIX_TEXT_TYPE}"
|
1955
1955
|
aria-hidden="true"
|
1956
1956
|
>
|
1957
1957
|
${this.prefixText.slice(0,Ka.MAX_LENGTH)}
|
@@ -1960,9 +1960,9 @@
|
|
1960
1960
|
<mdc-button
|
1961
1961
|
part='trailing-button'
|
1962
1962
|
class='own-focus-ring ${this.value?"":"hidden"}'
|
1963
|
-
prefix-icon='${
|
1964
|
-
variant='${
|
1965
|
-
size="${
|
1963
|
+
prefix-icon='${Xe.CLEAR_BUTTON_ICON}'
|
1964
|
+
variant='${Xe.CLEAR_BUTTON_VARIANT}'
|
1965
|
+
size="${Xe.CLEAR_BUTTON_SIZE}"
|
1966
1966
|
aria-label="${this.clearAriaLabel}"
|
1967
1967
|
@click=${this.clearInputText}
|
1968
1968
|
?disabled=${this.disabled||this.readonly||!this.value}
|
@@ -1985,7 +1985,7 @@
|
|
1985
1985
|
?readonly="${this.readonly}"
|
1986
1986
|
?required="${!!this.requiredLabel}"
|
1987
1987
|
type="text"
|
1988
|
-
aria-describedby="${A(this.helpText?
|
1988
|
+
aria-describedby="${A(this.helpText?V.HELPER_TEXT_ID:"")}"
|
1989
1989
|
aria-invalid="${this.helpTextType==="error"?"true":"false"}"
|
1990
1990
|
placeholder=${A(this.placeholder)}
|
1991
1991
|
minlength=${A(this.minlength)}
|
@@ -2006,7 +2006,7 @@
|
|
2006
2006
|
<slot name="trailing-button">${this.renderTrailingButton()}</slot>
|
2007
2007
|
</div>
|
2008
2008
|
${this.helpText?this.renderHelperText():v}
|
2009
|
-
`}};D.styles=[...
|
2009
|
+
`}};D.styles=[...Me.styles,...Za],l([c({type:String})],D.prototype,"placeholder",2),l([c({type:Boolean})],D.prototype,"readonly",2),l([c({type:String,attribute:"prefix-text"})],D.prototype,"prefixText",2),l([c({type:String,attribute:"leading-icon"})],D.prototype,"leadingIcon",2),l([c({type:Boolean,attribute:"trailing-button"})],D.prototype,"trailingButton",2),l([c({type:Number})],D.prototype,"maxlength",2),l([c({type:Number})],D.prototype,"minlength",2),l([c({type:String})],D.prototype,"autocapitalize",2),l([c({type:String})],D.prototype,"autocomplete",2),l([c({type:Boolean})],D.prototype,"autofocus",2),l([c({type:String})],D.prototype,"dirname",2),l([c({type:String})],D.prototype,"pattern",2),l([c({type:String})],D.prototype,"list",2),l([c({type:Number})],D.prototype,"size",2),l([c({type:String,attribute:"clear-aria-label"})],D.prototype,"clearAriaLabel",2);var xi=D;xi.register(ja);var uc=xi;var fc=f`
|
2010
2010
|
:host {
|
2011
2011
|
height: 1.5rem;
|
2012
2012
|
gap: 0.25rem;
|
@@ -2039,24 +2039,24 @@
|
|
2039
2039
|
:host::part(close-icon){
|
2040
2040
|
border-radius: 0.25rem;
|
2041
2041
|
}
|
2042
|
-
`,Qa=[w,fc];var Ja=g.constructTagName("inputchip"),
|
2042
|
+
`,Qa=[w,fc];var Ja=g.constructTagName("inputchip"),go={TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,TAG_NAME:C.SPAN,CLOSE_ICON:"cancel-bold"};var xt=class extends X(ee(y)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderIcon(){return this.iconName?h`
|
2043
2043
|
<mdc-icon
|
2044
2044
|
name="${this.iconName}"
|
2045
2045
|
length-unit="rem"
|
2046
2046
|
size="1"></mdc-icon>
|
2047
2047
|
`:v}handleClose(e){e.stopPropagation();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}render(){return h`
|
2048
2048
|
${this.renderIcon()}
|
2049
|
-
<mdc-text type="${
|
2049
|
+
<mdc-text type="${go.TEXT_TYPE}" tagname="${go.TAG_NAME}">${this.label}</mdc-text>
|
2050
2050
|
<mdc-button
|
2051
2051
|
?disabled="${this.disabled}"
|
2052
2052
|
variant="tertiary"
|
2053
2053
|
part="close-icon"
|
2054
2054
|
aria-label="${this.clearAriaLabel}"
|
2055
|
-
prefix-icon="${
|
2055
|
+
prefix-icon="${go.CLOSE_ICON}"
|
2056
2056
|
size="20"
|
2057
2057
|
@click="${this.handleClose}"
|
2058
2058
|
></mdc-button>
|
2059
|
-
`}};xt.styles=[...y.styles,...Qa],l([c({type:String})],xt.prototype,"label",2),l([c({type:Boolean})],xt.prototype,"error",2),l([c({type:String,attribute:"clear-aria-label"})],xt.prototype,"clearAriaLabel",2);var Ei=xt;Ei.register(Ja);var gc=Ei;var en=g.constructTagName("link"),
|
2059
|
+
`}};xt.styles=[...y.styles,...Qa],l([c({type:String})],xt.prototype,"label",2),l([c({type:Boolean})],xt.prototype,"error",2),l([c({type:String,attribute:"clear-aria-label"})],xt.prototype,"clearAriaLabel",2);var Ei=xt;Ei.register(Ja);var gc=Ei;var en=g.constructTagName("link"),bo={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},vo={LARGE:1,MIDSIZE:.875,SMALL:.75},yo={INLINE:!1,INVERTED:!1,LINK_SIZE:bo.LARGE};var bc=[w,f`
|
2060
2060
|
|
2061
2061
|
:host {
|
2062
2062
|
|
@@ -2179,15 +2179,15 @@
|
|
2179
2179
|
:host(:active)::part(link-container) {
|
2180
2180
|
box-shadow: none;
|
2181
2181
|
}
|
2182
|
-
`],tn=bc;var Et=class extends ee(X(y)){constructor(){super(...arguments);this.inline=
|
2182
|
+
`],tn=bc;var Et=class extends ee(X(y)){constructor(){super(...arguments);this.inline=yo.INLINE;this.inverted=yo.INVERTED;this.size=yo.LINK_SIZE;this.prevTabindex=null}getIconSize(){switch(this.size){case bo.SMALL:return vo.SMALL;case bo.MIDSIZE:return vo.MIDSIZE;default:return vo.LARGE}}setDisabled(e){e?(this.prevTabindex=this.hasAttribute("tabindex")?this.tabIndex:null,this.tabIndex=-1,this.setAttribute("aria-disabled","true")):this.prevTabindex===null?(this.removeAttribute("tabindex"),this.removeAttribute("aria-disabled")):(this.tabIndex=this.prevTabindex,this.removeAttribute("aria-disabled"))}updateTrailingIcon(){var i,s;let e=(s=(i=this.shadowRoot)==null?void 0:i.querySelector("slot"))==null?void 0:s.assignedElements({flatten:!0}).find(a=>a.tagName==="A"),r=this.getIconSize();if(this.iconName&&e){let a=document.createElement("mdc-icon");a.setAttribute("name",this.iconName),a.setAttribute("size",`${r}`),a.setAttribute("length-unit","rem"),e.appendChild(a)}}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this.disabled)}render(){return h`
|
2183
2183
|
<div part='link-container' class='mdc-focus-ring'>
|
2184
2184
|
<slot @slotchange=${this.updateTrailingIcon}></slot>
|
2185
2185
|
</div>
|
2186
|
-
`}};Et.styles=[...y.styles,...tn],l([c({type:Boolean,reflect:!0})],Et.prototype,"inline",2),l([c({type:Boolean,reflect:!0})],Et.prototype,"inverted",2),l([c({type:String,reflect:!0})],Et.prototype,"size",2);var Ti=Et;Ti.register(en);var vc=Ti;var
|
2186
|
+
`}};Et.styles=[...y.styles,...tn],l([c({type:Boolean,reflect:!0})],Et.prototype,"inline",2),l([c({type:Boolean,reflect:!0})],Et.prototype,"inverted",2),l([c({type:String,reflect:!0})],Et.prototype,"size",2);var Ti=Et;Ti.register(en);var vc=Ti;var xo=g.constructTagName("listitem"),Ai={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},rn={VARIANT:Ai.FULL_WIDTH};var on=g.constructTagName("list"),kr={ARROW_DOWN:"ArrowDown",ARROW_UP:"ArrowUp",HOME:"Home",END:"End"},Si="header-id";var yc=f`
|
2187
2187
|
:host::part(header-text) {
|
2188
2188
|
padding: 0.5rem 0.75rem;
|
2189
2189
|
}
|
2190
|
-
`,sn=[yc];var
|
2190
|
+
`,sn=[yc];var qt=class extends U(y){constructor(){super(),this.addEventListener("keydown",this.handleKeyDown)}handleKeyDown(t){var i;let e=this.getCurrentIndex(t.target),r=this.getNewIndexBasedOnKey(t.key,e,this.listItems.length);r!==void 0&&((i=this.listItems[r])==null||i.focus(),this.resetTabIndexAndSetActiveTabIndex(r))}getCurrentIndex(t){return this.listItems.findIndex(e=>e===t||e===t.parentElement)}getNewIndexBasedOnKey(t,e,r){switch(t){case kr.ARROW_DOWN:return(e+1)%r;case kr.ARROW_UP:return(e-1+r)%r;case kr.HOME:return 0;case kr.END:return r-1;default:return}}handleMouseClick(t){let e=this.getCurrentIndex(t.target);this.resetTabIndexAndSetActiveTabIndex(e)}resetTabIndexAndSetActiveTabIndex(t){this.listItems.forEach((e,r)=>{let i=t===r?"0":"-1";e==null||e.setAttribute("tabindex",i)})}firstUpdated(){this.resetTabIndexAndSetActiveTabIndex(0)}render(){var e;let t=this.headerText?h`
|
2191
2191
|
<mdc-text
|
2192
2192
|
id="${Si}"
|
2193
2193
|
part="header-text"
|
@@ -2203,7 +2203,7 @@
|
|
2203
2203
|
${t}
|
2204
2204
|
<slot role="presentation" @click="${this.handleMouseClick}"></slot>
|
2205
2205
|
</div>
|
2206
|
-
`}};
|
2206
|
+
`}};qt.styles=[...y.styles,...sn],l([tt({selector:xo})],qt.prototype,"listItems",2),l([c({type:String,attribute:"header-text",reflect:!0})],qt.prototype,"headerText",2);var _i=qt;_i.register(on);var xc=_i;var Ec=f`
|
2207
2207
|
:host {
|
2208
2208
|
--mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
|
2209
2209
|
--mdc-listitem-background-color-hover: var(--mds-color-theme-background-primary-hover);
|
@@ -2272,7 +2272,7 @@
|
|
2272
2272
|
display: flex;
|
2273
2273
|
flex-direction: row;
|
2274
2274
|
}
|
2275
|
-
`,an=[Ec,...O()];var le=class extends
|
2275
|
+
`,an=[Ec,...O()];var le=class extends U(ee(qr(y))){constructor(){super();this.variant=rn.VARIANT;this.role=this.role||"listitem"}getText(e,r,i){return i?h`
|
2276
2276
|
<slot name="${e}">
|
2277
2277
|
<mdc-text part="${e}" type="${r}" tagname="${C.SPAN}">${i}</mdc-text>
|
2278
2278
|
</slot>
|
@@ -2292,7 +2292,7 @@
|
|
2292
2292
|
</div>
|
2293
2293
|
<slot name="trailing-controls"></slot>
|
2294
2294
|
</div>
|
2295
|
-
`}};le.styles=[...y.styles,...an],l([
|
2295
|
+
`}};le.styles=[...y.styles,...an],l([tt({slot:"leading-controls"})],le.prototype,"leadingControlsSlot",2),l([tt({slot:"trailing-controls"})],le.prototype,"trailingControlsSlot",2),l([c({type:String,reflect:!0})],le.prototype,"variant",2),l([c({type:String,reflect:!0})],le.prototype,"label",2),l([c({type:String,reflect:!0,attribute:"secondary-label"})],le.prototype,"secondaryLabel",2),l([c({type:String,reflect:!0,attribute:"tertiary-label"})],le.prototype,"tertiaryLabel",2),l([c({type:String,reflect:!0,attribute:"side-header-text"})],le.prototype,"sideHeaderText",2),l([c({type:String,reflect:!0,attribute:"subline-text"})],le.prototype,"sublineText",2);var Wt=le;Wt.register(xo);var Tc=Wt;var Ac=f`
|
2296
2296
|
:host {
|
2297
2297
|
--mdc-marker-width: 0.25rem;
|
2298
2298
|
--mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
|
@@ -2317,7 +2317,7 @@
|
|
2317
2317
|
var(--mdc-marker-striped-background-color) 0.375rem
|
2318
2318
|
);
|
2319
2319
|
}
|
2320
|
-
`,nn=[Ac];var ln=g.constructTagName("marker"),cn={SOLID:"solid",STRIPED:"striped"};var
|
2320
|
+
`,nn=[Ac];var ln=g.constructTagName("marker"),cn={SOLID:"solid",STRIPED:"striped"};var wr=class extends y{constructor(){super(...arguments);this.variant=cn.SOLID}};wr.styles=[...y.styles,...nn],l([c({type:String,reflect:!0})],wr.prototype,"variant",2);var Ii=wr;Ii.register(ln);var Sc=Ii;Ye.register(Va);var _c=Ye;var Ic=[w,f`
|
2321
2321
|
:host{
|
2322
2322
|
--mdc-radio-inner-circle-size: 0.375rem;
|
2323
2323
|
--mdc-radio-text-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -2479,7 +2479,7 @@
|
|
2479
2479
|
display: none;
|
2480
2480
|
}
|
2481
2481
|
|
2482
|
-
`,...O(!0)],dn=Ic;var Tt=class extends oe(
|
2482
|
+
`,...O(!0)],dn=Ic;var Tt=class extends oe(U(se)){constructor(){super();this.checked=!1;this.readonly=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?h`<div class="mdc-radio__label-container">
|
2483
2483
|
${this.renderLabel()}
|
2484
2484
|
${this.renderHelperText()}
|
2485
2485
|
</div>`:v;this.helpTextType=void 0}firstUpdated(){this.updateTabIndex()}getAllRadiosWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-radio[name="${this.name}"]`))}dispatchChangeEvent(e){let r=e.constructor;this.dispatchEvent(new r(e.type,e))}formResetCallback(){this.getAllRadiosWithinSameGroup().forEach(r=>{r.checked=!1}),this.updateComplete.then(()=>{this.setActualFormValue()}).catch(r=>{this.onerror&&this.onerror(r)})}formStateRestoreCallback(e){this.value===e&&e!==""&&(this.checked=!0)}setComponentValidity(e){e?this.internals.setValidity({}):this.requiredLabel&&!this.checked&&(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()),this.updateTabIndex()}setGroupValidity(e,r){this.updateComplete.then(()=>{e.forEach(i=>{i.setComponentValidity(r)})}).catch(i=>{this.onerror&&this.onerror(i)})}setActualFormValue(){let e="";this.checked?e=this.value?this.value:"on":e=null;let r=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(r,!0);else{let i=r.some(n=>n.requiredLabel),s=!!r.find(n=>n.checked),a=i&&!s;this.setGroupValidity(r,!a)}this.internals.setFormValue(e)}handleChange(e){var s;if(this.disabled||this.readonly)return;this.getAllRadiosWithinSameGroup().forEach(a=>{var d;let n=(d=a.shadowRoot)==null?void 0:d.querySelector("input");n&&(a.checked=!1,n.checked=!1)}),this.checked=!0;let i=(s=this.shadowRoot)==null?void 0:s.querySelector("input");i&&(i.checked=!0),this.dispatchChangeEvent(e)}updateRadio(e,r,i){var s,a;(a=(s=e[r].shadowRoot)==null?void 0:s.querySelector("input"))==null||a.focus(),e[r].handleChange(i)}handleKeyDown(e){var a;if(this.disabled)return;let i=this.getAllRadiosWithinSameGroup().filter(n=>!n.disabled),s=i.indexOf(this);if(["ArrowDown","ArrowRight"].includes(e.key)){let n=(s+1)%i.length;this.updateRadio(i,n,e)}else if(["ArrowUp","ArrowLeft"].includes(e.key)){let n=(s-1+i.length)%i.length;this.updateRadio(i,n,e)}else e.key===" "&&this.updateRadio(i,s,e);this.updateTabIndex(),e.key==="Enter"&&((a=this.form)==null||a.requestSubmit())}updateTabIndex(){let e=this.getAllRadiosWithinSameGroup(),r=e.find(s=>s.checked),i=e.find(s=>!s.disabled);e.forEach(s=>{var n;let a=(n=s.shadowRoot)==null?void 0:n.querySelector("input");a&&(a.tabIndex=-1,(s===r||!r&&s===i)&&(a.tabIndex=0))})}update(e){super.update(e),e.has("checked")&&this.setActualFormValue()}render(){var e;return h`
|
@@ -2500,14 +2500,14 @@
|
|
2500
2500
|
?disabled=${this.disabled}
|
2501
2501
|
class="mdc-radio__input"
|
2502
2502
|
aria-checked="${this.checked}"
|
2503
|
-
aria-describedby="${A(this.helpText?
|
2503
|
+
aria-describedby="${A(this.helpText?V.HELPER_TEXT_ID:"")}"
|
2504
2504
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
2505
2505
|
/>
|
2506
2506
|
<span class="mdc-radio__icon"></span>
|
2507
2507
|
</div>
|
2508
2508
|
${this.renderLabelAndHelperText()}
|
2509
2509
|
</div>
|
2510
|
-
`}};Tt.styles=[...se.styles,...dn],l([c({type:Boolean,reflect:!0})],Tt.prototype,"checked",2),l([c({type:Boolean,reflect:!0})],Tt.prototype,"readonly",2),l([c({type:Boolean,reflect:!0})],Tt.prototype,"autofocus",2);var ki=Tt;var
|
2510
|
+
`}};Tt.styles=[...se.styles,...dn],l([c({type:Boolean,reflect:!0})],Tt.prototype,"checked",2),l([c({type:Boolean,reflect:!0})],Tt.prototype,"readonly",2),l([c({type:Boolean,reflect:!0})],Tt.prototype,"autofocus",2);var ki=Tt;var Eo=g.constructTagName("radio");ki.register(Eo);var kc=ki;var Cr=class extends uo{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var e,r,i,s,a;(a=(s=(i=(r=Array.from(((e=this.shadowRoot)==null?void 0:e.querySelectorAll("slot"))||[]))==null?void 0:r.flatMap(n=>n.assignedElements({flatten:!0})))==null?void 0:i.filter(n=>n.tagName.toLowerCase()===Eo))==null?void 0:s.filter(n=>!n.hasAttribute("name")))==null||a.forEach(n=>{n.setAttribute("name",this.name),this.requiredLabel&&n.setAttribute("required-label",this.requiredLabel)})}};Cr.styles=[...uo.styles],l([c({type:String})],Cr.prototype,"name",2);var wi=Cr;var mn=g.constructTagName("radiogroup");wi.register(mn);var wc=wi;var Cc=[w,f`
|
2511
2511
|
:host {
|
2512
2512
|
--mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
|
2513
2513
|
--mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
|
@@ -2569,11 +2569,11 @@
|
|
2569
2569
|
stroke-dashoffset: -292;
|
2570
2570
|
}
|
2571
2571
|
}
|
2572
|
-
`],pn=Cc;var hn=g.constructTagName("spinner"),Lc={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Rc={STANDALONE:"standalone",BUTTON:"button"},
|
2572
|
+
`],pn=Cc;var hn=g.constructTagName("spinner"),Lc={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Rc={STANDALONE:"standalone",BUTTON:"button"},To={VARIANT:Rc.STANDALONE,SIZE:Lc.MIDSIZE,INVERTED:!1};var Ze=class extends y{constructor(){super(...arguments);this.inverted=To.INVERTED;this.size=To.SIZE;this.ariaLabel=null;this.variant=To.VARIANT}updated(e){super.updated(e),e.has("ariaLabel")&&(this.role=this.ariaLabel?"img":null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return h`
|
2573
2573
|
<svg part="container" viewBox="0 0 100 100">
|
2574
2574
|
<circle part="circle" cx="50" cy="50" r="46"></circle>
|
2575
2575
|
</svg>
|
2576
|
-
`}};
|
2576
|
+
`}};Ze.styles=[...y.styles,...pn],l([c({type:Boolean,reflect:!0})],Ze.prototype,"inverted",2),l([c({type:String,reflect:!0})],Ze.prototype,"size",2),l([c({type:String,attribute:"aria-label"})],Ze.prototype,"ariaLabel",2),l([c({type:String,reflect:!0})],Ze.prototype,"variant",2);var Ci=Ze;Ci.register(hn);var Nc=Ci;var Oc=[w,f`
|
2577
2577
|
|
2578
2578
|
:host {
|
2579
2579
|
--mdc-tab-content-gap: 0.5rem;
|
@@ -2816,7 +2816,7 @@
|
|
2816
2816
|
color: var(--mdc-tab-pill-active-color-disabled);
|
2817
2817
|
}
|
2818
2818
|
|
2819
|
-
`,...O()],un=Oc;var fn=g.constructTagName("tab"),Li={GLASS:"glass",LINE:"line",PILL:"pill"},Ri={VARIANT:Li.PILL};var
|
2819
|
+
`,...O()],un=Oc;var fn=g.constructTagName("tab"),Li={GLASS:"glass",LINE:"line",PILL:"pill"},Ri={VARIANT:Li.PILL};var Xt=class extends X(te){constructor(){super();this.variant=Ri.VARIANT;this.role="tab",this.softDisabled=void 0,this.size=void 0,this.type=void 0}modifyIconName(e){this.iconName&&(e?(this.prevIconName=this.iconName,this.iconName=`${gr(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(e){this.setAttribute("variant",Object.values(Li).includes(e)?e:Ri.VARIANT)}setActive(e,r){e.setAttribute("aria-selected",r?"true":"false"),this.modifyIconName(r)}executeAction(){this.active=!this.active}update(e){super.update(e),e.has("variant")&&this.setVariant(this.variant)}render(){return h`
|
2820
2820
|
<div part="container">
|
2821
2821
|
${this.iconName?h` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:v}
|
2822
2822
|
${this.text?h` <mdc-text
|
@@ -2830,7 +2830,7 @@
|
|
2830
2830
|
<slot name="chip"></slot>
|
2831
2831
|
</div>
|
2832
2832
|
<div part="indicator"></div>
|
2833
|
-
`}};
|
2833
|
+
`}};Xt.styles=[...te.styles,...un],l([c({type:String,reflect:!0})],Xt.prototype,"text",2),l([c({type:String,reflect:!0})],Xt.prototype,"variant",2);var Ni=Xt;Ni.register(fn);var Mc=Ni;var Ao=g.constructTagName("themeprovider"),Oi={THEMECLASS:"mds-theme-stable-darkWebex"};var So=class{constructor(t){this.themeclass=t}};So.context=Ao;var _o=So;var zc=f`
|
2834
2834
|
:host {
|
2835
2835
|
--mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
|
2836
2836
|
--mdc-themeprovider-font-family: var(--mds-font-family-primary);
|
@@ -2859,7 +2859,7 @@
|
|
2859
2859
|
* {
|
2860
2860
|
scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
|
2861
2861
|
}
|
2862
|
-
`,gn=[zc];var
|
2862
|
+
`,gn=[zc];var Zt=class extends Rt{constructor(){super({context:_o.context,initialValue:new _o(Oi.THEMECLASS)});this.themeclass=Oi.THEMECLASS}static get Context(){return _o.context}updated(e){super.updated(e),e.has("themeclass")&&(this.setThemeInClassList(),this.currentThemeClass=this.themeclass)}updateContext(){this.context.value.themeclass!==this.themeclass&&(this.context.value.themeclass=this.themeclass,this.context.updateObservers())}setThemeInClassList(){this.currentThemeClass&&this.classList.remove(...this.currentThemeClass.split(" ")),this.themeclass&&this.classList.add(...this.themeclass.split(" "))}};Zt.styles=[...Rt.styles,...gn],l([W()],Zt.prototype,"currentThemeClass",2),l([c({type:String})],Zt.prototype,"themeclass",2);var Mi=Zt;Mi.register(Ao);var Dc=Mi;var $c=[w,f`
|
2863
2863
|
:host {
|
2864
2864
|
--mdc-toggle-width: 3rem;
|
2865
2865
|
--mdc-toggle-height: 1.5rem;
|
@@ -3011,7 +3011,7 @@
|
|
3011
3011
|
border: var(--mdc-toggle-border);
|
3012
3012
|
}
|
3013
3013
|
}
|
3014
|
-
`,...O(!0)],bn=$c;var vn=g.constructTagName("toggle"),zi={DEFAULT:"default",COMPACT:"compact"},Di={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},yn={compact:.75,default:1.25},$i={SIZE:zi.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var At=class extends oe(
|
3014
|
+
`,...O(!0)],bn=$c;var vn=g.constructTagName("toggle"),zi={DEFAULT:"default",COMPACT:"compact"},Di={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},yn={compact:.75,default:1.25},$i={SIZE:zi.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var At=class extends oe(U(Me)){constructor(){super();this.checked=!1;this.size=$i.SIZE;this.autofocus=!1;this.helpTextType=void 0}formResetCallback(){this.checked=!1}formStateRestoreCallback(e){e&&(this.checked=!0)}manageRequired(){!this.checked&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}setFormValue(){let e=null;this.checked?e=this.value?this.value:"isActive":e=null,this.manageRequired(),this.internals.setFormValue(e)}toggleState(){this.disabled||(this.checked=!this.checked)}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}handleChange(e){this.toggleState();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}setToggleSize(e){this.setAttribute("size",Object.values(zi).includes(e)?e:$i.SIZE)}update(e){super.update(e),e.has("checked")&&this.setFormValue(),e.has("size")&&this.setToggleSize(this.size)}render(){var e;return h`
|
3015
3015
|
<div class="mdc-toggle__container mdc-focus-ring">
|
3016
3016
|
<input
|
3017
3017
|
id="${this.id}"
|
@@ -3025,7 +3025,7 @@
|
|
3025
3025
|
.checked="${this.checked}"
|
3026
3026
|
aria-checked="${this.checked}"
|
3027
3027
|
.disabled="${this.disabled}"
|
3028
|
-
aria-describedby="${A(this.helpText?
|
3028
|
+
aria-describedby="${A(this.helpText?V.HELPER_TEXT_ID:"")}"
|
3029
3029
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
3030
3030
|
tabindex="${this.disabled?-1:0}"
|
3031
3031
|
@change="${this.handleChange}"
|
@@ -3042,7 +3042,7 @@
|
|
3042
3042
|
</div>
|
3043
3043
|
${this.renderLabel()}
|
3044
3044
|
${this.renderHelperText()}
|
3045
|
-
`}};At.styles=[...
|
3045
|
+
`}};At.styles=[...Me.styles,...bn],l([c({type:Boolean,reflect:!0})],At.prototype,"checked",2),l([c({type:String,reflect:!0})],At.prototype,"size",2),l([c({type:Boolean,reflect:!0})],At.prototype,"autofocus",2);var Pi=At;Pi.register(vn);var Pc=Pi;var xn=g.constructTagName("tooltip"),Q={DESCRIPTION:"description",LABEL:"label",NONE:"none"},ze={BACKDROP:!1,COLOR:ut.TONAL,DELAY:"0,0",OFFSET:4,PLACEMENT:ht.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:Q.DESCRIPTION};var Uc=f`
|
3046
3046
|
|
3047
3047
|
:host {
|
3048
3048
|
--mdc-tooltip-max-width: 400px;
|
@@ -3067,10 +3067,10 @@
|
|
3067
3067
|
:host([color='contrast'])::part(popover-content) {
|
3068
3068
|
color: var(--mdc-tooltip-text-color-contrast);
|
3069
3069
|
}
|
3070
|
-
`,En=[Uc];var
|
3070
|
+
`,En=[Uc];var jt=class extends Ye{constructor(){super();this.tooltipType=ze.TOOLTIP_TYPE;this.backdrop=!1,this.color=ze.COLOR,this.delay=ze.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=ze.OFFSET,this.placement=ze.PLACEMENT,this.role="tooltip",this.showArrow=!0,this.trigger="mouseenter focusin",this.visible=!1,this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.flip=!0,this.focusTrap=!1,this.preventScroll=!1,this.closeButton=!1,this.hideOnOutsideClick=!1,this.focusBackToTrigger=!1,this.size=!1,this.disableAriaExpanded=!0}getTooltipText(){var e,r;return((r=(e=this.defaultSlotNodes)==null?void 0:e.map(i=>i.textContent).join(" "))==null?void 0:r.trim())||""}setTooltipType(e){this.setAttribute("tooltip-type",Object.values(Q).includes(e)?e:ze.TOOLTIP_TYPE)}onIdUpdated(){this.id.length===0&&(this.id=`mdc-tooltip-${br()}`);let e=document.getElementById(this.triggerID);if(e)switch(this.tooltipType){case Q.DESCRIPTION:e.setAttribute("aria-describedby",this.id);break;case Q.LABEL:e.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(ht).includes(this.placement)||(this.placement=ze.PLACEMENT)}onTooltipTypeUpdated(e){let r=e.get("tooltipType");Object.values(Q).includes(this.tooltipType)||this.setTooltipType(ze.TOOLTIP_TYPE);let i=document.getElementById(this.triggerID);if(i){let s=this.getTooltipText();switch(this.tooltipType){case Q.DESCRIPTION:r===Q.LABEL&&i.removeAttribute("aria-labelledby"),i.setAttribute("aria-describedby",this.id);break;case Q.LABEL:r===Q.DESCRIPTION&&i.removeAttribute("aria-describedby"),i.setAttribute("aria-labelledby",this.id);break;default:r===Q.DESCRIPTION?i.removeAttribute("aria-describedby"):r===Q.LABEL&&i.removeAttribute("aria-labelledby");break}s.length>0&&this.tooltipType!==Q.NONE&&!this.ariaLabel&&(this.ariaLabel=s)}}update(e){super.update(e),e.has("id")&&this.onIdUpdated(),e.has("placement")&&this.onPlacementUpdated(),e.has("tooltipType")&&this.onTooltipTypeUpdated(e)}};jt.styles=[...Ye.styles,...En],l([c({type:String,attribute:"tooltip-type",reflect:!0})],jt.prototype,"tooltipType",2),l([bs()],jt.prototype,"defaultSlotNodes",2);var Ui=jt;Ui.register(xn);var Vc=Ui;function St(o,t,e){var s;let r=(s=e.initialDeps)!=null?s:[],i;return()=>{var a,n,d,m;let p;e.key&&((a=e.debug)!=null&&a.call(e))&&(p=Date.now());let u=o();if(!(u.length!==r.length||u.some((E,T)=>r[T]!==E)))return i;r=u;let b;if(e.key&&((n=e.debug)!=null&&n.call(e))&&(b=Date.now()),i=t(...u),e.key&&((d=e.debug)!=null&&d.call(e))){let E=Math.round((Date.now()-p)*100)/100,T=Math.round((Date.now()-b)*100)/100,I=T/16,S=(k,R)=>{for(k=String(k);k.length<R;)k=" "+k;return k};console.info(`%c\u23F1 ${S(T,5)} /${S(E,5)} ms`,`
|
3071
3071
|
font-size: .6rem;
|
3072
3072
|
font-weight: bold;
|
3073
|
-
color: hsl(${Math.max(0,Math.min(120-120*I,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(m=e==null?void 0:e.onChange)==null||m.call(e,i),i}}function ko(o,t){if(o===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return o}var Tn=(o,t)=>Math.abs(o-t)<1,An=(o,t,e)=>{let r;return function(...i){o.clearTimeout(r),r=o.setTimeout(()=>t.apply(this,i),e)}};var Fc=o=>o,Hc=o=>{let t=Math.max(o.startIndex-o.overscan,0),e=Math.min(o.endIndex+o.overscan,o.count-1),r=[];for(let i=t;i<=e;i++)r.push(i);return r},_n=(o,t)=>{let e=o.scrollElement;if(!e)return;let r=o.targetWindow;if(!r)return;let i=a=>{let{width:n,height:d}=a;t({width:Math.round(n),height:Math.round(d)})};if(i(e.getBoundingClientRect()),!r.ResizeObserver)return()=>{};let s=new r.ResizeObserver(a=>{let n=a[0];if(n!=null&&n.borderBoxSize){let d=n.borderBoxSize[0];if(d){i({width:d.inlineSize,height:d.blockSize});return}}i(e.getBoundingClientRect())});return s.observe(e,{box:"border-box"}),()=>{s.unobserve(e)}},Sn={passive:!0};var Bc=typeof window>"u"?!0:"onscrollend"in window,In=(o,t)=>{let e=o.scrollElement;if(!e)return;let r=o.targetWindow;if(!r)return;let i=0,s=o.options.useScrollendEvent&&Bc?()=>{}:An(r,()=>{t(i,!1)},o.options.isScrollingResetDelay),a=m=>()=>{let{horizontal:p,isRtl:u}=o.options;i=p?e.scrollLeft*(u&&-1||1):e.scrollTop,s(),t(i,m)},n=a(!0),d=a(!1);return d(),e.addEventListener("scroll",n,Sn),e.addEventListener("scrollend",d,Sn),()=>{e.removeEventListener("scroll",n),e.removeEventListener("scrollend",d)}};var Gc=(o,t,e)=>{if(t!=null&&t.borderBoxSize){let r=t.borderBoxSize[0];if(r)return Math.round(r[e.options.horizontal?"inlineSize":"blockSize"])}return Math.round(o.getBoundingClientRect()[e.options.horizontal?"width":"height"])};var kn=(o,{adjustments:t=0,behavior:e},r)=>{var i,s;let a=o+t;(s=(i=r.scrollElement)==null?void 0:i.scrollTo)==null||s.call(i,{[r.options.horizontal?"left":"top"]:a,behavior:e})},wo=class{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,r=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(i=>{i.forEach(s=>{this._measureElement(s.target,s)})}));return{disconnect:()=>{var i;(i=r())==null||i.disconnect(),e=null},observe:i=>{var s;return(s=r())==null?void 0:s.observe(i,{box:"border-box"})},unobserve:i=>{var s;return(s=r())==null?void 0:s.unobserve(i)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([r,i])=>{typeof i>"u"&&delete e[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Fc,rangeExtractor:Hc,onChange:()=>{},measureElement:Gc,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...e}},this.notify=e=>{var r,i;(i=(r=this.options).onChange)==null||i.call(r,this,e)},this.maybeNotify=St(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var i;var e;let r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(i=(e=this.scrollElement)==null?void 0:e.window)!=null?i:null,this.elementsCache.forEach(s=>{this.observer.observe(s)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,s=>{this.scrollRect=s,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(s,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()<s?"forward":"backward":null,this.scrollOffset=s,this.isScrolling=a,this.maybeNotify()}))}},this.getSize=()=>{var e;return this.options.enabled?(this.scrollRect=(e=this.scrollRect)!=null?e:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var e;return this.options.enabled?(this.scrollOffset=(e=this.scrollOffset)!=null?e:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(e,r)=>{let i=new Map,s=new Map;for(let a=r-1;a>=0;a--){let n=e[a];if(i.has(n.lane))continue;let d=s.get(n.lane);if(d==null||n.end>d.end?s.set(n.lane,n):n.end<d.end&&i.set(n.lane,!0),i.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((a,n)=>a.end===n.end?a.index-n.index:a.end-n.end)[0]:void 0},this.getMeasurementOptions=St(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,r,i,s,a)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:r,scrollMargin:i,getItemKey:s,enabled:a}),{key:!1}),this.getMeasurements=St(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:r,scrollMargin:i,getItemKey:s,enabled:a},n)=>{if(!a)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(p=>{this.itemSizeCache.set(p.key,p.size)}));let d=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let m=this.measurementsCache.slice(0,d);for(let p=d;p<e;p++){let u=s(p),x=this.options.lanes===1?m[p-1]:this.getFurthestMeasurement(m,p),b=x?x.end+this.options.gap:r+i,E=n.get(u),T=typeof E=="number"?E:this.options.estimateSize(p),I=b+T,S=x?x.lane:p%this.options.lanes;m[p]={index:p,start:b,size:T,end:I,key:u,lane:S}}return this.measurementsCache=m,m},{key:!1,debug:()=>this.options.debug}),this.calculateRange=St(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,r,i)=>this.range=e.length>0&&r>0?Yc({measurements:e,outerSize:r,scrollOffset:i}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=St(()=>{let e=null,r=null,i=this.calculateRange();return i&&(e=i.startIndex,r=i.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,r]},(e,r,i,s,a)=>s===null||a===null?[]:e({startIndex:s,endIndex:a,overscan:r,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let r=this.options.indexAttribute,i=e.getAttribute(r);return i?parseInt(i,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(e,r)=>{let i=this.indexFromElement(e),s=this.measurementsCache[i];if(!s)return;let a=s.key,n=this.elementsCache.get(a);n!==e&&(n&&this.observer.unobserve(n),this.observer.observe(e),this.elementsCache.set(a,e)),e.isConnected&&this.resizeItem(i,this.options.measureElement(e,r,this))},this.resizeItem=(e,r)=>{var n;let i=this.measurementsCache[e];if(!i)return;let s=(n=this.itemSizeCache.get(i.key))!=null?n:i.size,a=r-s;a!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,a,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=a,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,r)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((r,i)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(i))});return}this._measureElement(e,void 0)},this.getVirtualItems=St(()=>[this.getIndexes(),this.getMeasurements()],(e,r)=>{let i=[];for(let s=0,a=e.length;s<a;s++){let n=e[s],d=r[n];i.push(d)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let r=this.getMeasurements();if(r.length!==0)return ko(r[wn(0,r.length-1,i=>ko(r[i]).start,e)])},this.getOffsetForAlignment=(e,r)=>{let i=this.getSize(),s=this.getScrollOffset();r==="auto"&&e>=s+i&&(r="end"),r==="end"&&(e-=i);let a=this.options.horizontal?"scrollWidth":"scrollHeight",d=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[a]:this.scrollElement[a]:0)-i;return Math.max(Math.min(d,e),0)},this.getOffsetForIndex=(e,r="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let i=this.measurementsCache[e];if(!i)return;let s=this.getSize(),a=this.getScrollOffset();if(r==="auto")if(i.end>=a+s-this.options.scrollPaddingEnd)r="end";else if(i.start<=a+this.options.scrollPaddingStart)r="start";else return[a,r];let n=i.start-this.options.scrollPaddingStart+(i.size-s)/2;switch(r){case"center":return[this.getOffsetForAlignment(n,r),r];case"end":return[this.getOffsetForAlignment(i.end+this.options.scrollPaddingEnd,r),r];default:return[this.getOffsetForAlignment(i.start-this.options.scrollPaddingStart,r),r]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:r="start",behavior:i}={})=>{this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,r),{adjustments:void 0,behavior:i})},this.scrollToIndex=(e,{align:r="auto",behavior:i}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let s=this.getOffsetForIndex(e,r);if(!s)return;let[a,n]=s;this._scrollToOffset(a,{adjustments:void 0,behavior:i}),i!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[m]=ko(this.getOffsetForIndex(e,n));Tn(m,this.getScrollOffset())||this.scrollToIndex(e,{align:n,behavior:i})}else this.scrollToIndex(e,{align:n,behavior:i})}))},this.scrollBy=(e,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var s;var e;let r=this.getMeasurements(),i;return r.length===0?i=this.options.paddingStart:i=this.options.lanes===1?(s=(e=r[r.length-1])==null?void 0:e.end)!=null?s:0:Math.max(...r.slice(-this.options.lanes).map(a=>a.end)),Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:r,behavior:i})=>{this.options.scrollToFn(e,{behavior:i,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}},wn=(o,t,e,r)=>{for(;o<=t;){let i=(o+t)/2|0,s=e(i);if(s<r)o=i+1;else if(s>r)t=i-1;else return i}return o>0?o-1:0};function Yc({measurements:o,outerSize:t,scrollOffset:e}){let r=o.length-1,s=wn(0,r,n=>o[n].start,e),a=s;for(;a<r&&o[a].end<e+t;)a++;return{startIndex:s,endIndex:a}}var Vi=class{constructor(t,e){this.cleanup=()=>{},(this.host=t).addController(this);let r={...e,onChange:(i,s)=>{var a;this.host.updateComplete.then(()=>this.host.requestUpdate()),(a=e.onChange)==null||a.call(e,i,s)}};this.virtualizer=new wo(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Co=class extends Vi{constructor(t,e){super(t,{observeElementRect:_n,observeElementOffset:In,scrollToFn:kn,...e})}};var{I:NS}=hs;var Cn=o=>o.strings===void 0;var Rr=(o,t)=>{var r;let e=o._$AN;if(e===void 0)return!1;for(let i of e)(r=i._$AO)==null||r.call(i,t,!1),Rr(i,t);return!0},Lo=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while((e==null?void 0:e.size)===0)},Ln=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),Xc(t)}};function qc(o){this._$AN!==void 0?(Lo(this),this._$AM=o,Ln(this)):this._$AM=o}function Wc(o,t=!1,e=0){let r=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(r))for(let s=e;s<r.length;s++)Rr(r[s],!1),Lo(r[s]);else r!=null&&(Rr(r,!1),Lo(r));else Rr(this,o)}var Xc=o=>{var t,e;o.type==Jr.CHILD&&((t=o._$AP)!=null||(o._$AP=Wc),(e=o._$AQ)!=null||(o._$AQ=qc))},Ro=class extends Vt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),Ln(this),this.isConnected=t._$AU}_$AO(t,e=!0){var r,i;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)==null||r.call(this):(i=this.disconnected)==null||i.call(this)),e&&(Rr(this,t),Lo(this))}setValue(t){if(Cn(this.t))this.t._$AI(t,this);else{let e=[...this.t._$AH];e[this.i]=t,this.t._$AI(e,this,0)}}disconnected(){}reconnected(){}};var Rn=()=>new Hi,Hi=class{},Fi=new WeakMap,Nn=ur(class extends Ro{render(o){return v}update(o,[t]){var r;let e=t!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=t,this.ht=(r=o.options)==null?void 0:r.host,this.rt(this.ct=o.element)),v}rt(o){var t;if(this.isConnected||(o=void 0),typeof this.Y=="function"){let e=(t=this.ht)!=null?t:globalThis,r=Fi.get(e);r===void 0&&(r=new WeakMap,Fi.set(e,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,o),o!==void 0&&this.Y.call(this.ht,o)}else this.Y.value=o}get lt(){var o,t,e;return typeof this.Y=="function"?(t=Fi.get((o=this.ht)!=null?o:globalThis))==null?void 0:t.get(this.Y):(e=this.Y)==null?void 0:e.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Zc=[f`
|
3073
|
+
color: hsl(${Math.max(0,Math.min(120-120*I,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(m=e==null?void 0:e.onChange)==null||m.call(e,i),i}}function Io(o,t){if(o===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return o}var Tn=(o,t)=>Math.abs(o-t)<1,An=(o,t,e)=>{let r;return function(...i){o.clearTimeout(r),r=o.setTimeout(()=>t.apply(this,i),e)}};var Fc=o=>o,Hc=o=>{let t=Math.max(o.startIndex-o.overscan,0),e=Math.min(o.endIndex+o.overscan,o.count-1),r=[];for(let i=t;i<=e;i++)r.push(i);return r},_n=(o,t)=>{let e=o.scrollElement;if(!e)return;let r=o.targetWindow;if(!r)return;let i=a=>{let{width:n,height:d}=a;t({width:Math.round(n),height:Math.round(d)})};if(i(e.getBoundingClientRect()),!r.ResizeObserver)return()=>{};let s=new r.ResizeObserver(a=>{let n=a[0];if(n!=null&&n.borderBoxSize){let d=n.borderBoxSize[0];if(d){i({width:d.inlineSize,height:d.blockSize});return}}i(e.getBoundingClientRect())});return s.observe(e,{box:"border-box"}),()=>{s.unobserve(e)}},Sn={passive:!0};var Bc=typeof window>"u"?!0:"onscrollend"in window,In=(o,t)=>{let e=o.scrollElement;if(!e)return;let r=o.targetWindow;if(!r)return;let i=0,s=o.options.useScrollendEvent&&Bc?()=>{}:An(r,()=>{t(i,!1)},o.options.isScrollingResetDelay),a=m=>()=>{let{horizontal:p,isRtl:u}=o.options;i=p?e.scrollLeft*(u&&-1||1):e.scrollTop,s(),t(i,m)},n=a(!0),d=a(!1);return d(),e.addEventListener("scroll",n,Sn),e.addEventListener("scrollend",d,Sn),()=>{e.removeEventListener("scroll",n),e.removeEventListener("scrollend",d)}};var Gc=(o,t,e)=>{if(t!=null&&t.borderBoxSize){let r=t.borderBoxSize[0];if(r)return Math.round(r[e.options.horizontal?"inlineSize":"blockSize"])}return Math.round(o.getBoundingClientRect()[e.options.horizontal?"width":"height"])};var kn=(o,{adjustments:t=0,behavior:e},r)=>{var i,s;let a=o+t;(s=(i=r.scrollElement)==null?void 0:i.scrollTo)==null||s.call(i,{[r.options.horizontal?"left":"top"]:a,behavior:e})},ko=class{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,r=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(i=>{i.forEach(s=>{this._measureElement(s.target,s)})}));return{disconnect:()=>{var i;(i=r())==null||i.disconnect(),e=null},observe:i=>{var s;return(s=r())==null?void 0:s.observe(i,{box:"border-box"})},unobserve:i=>{var s;return(s=r())==null?void 0:s.unobserve(i)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([r,i])=>{typeof i>"u"&&delete e[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Fc,rangeExtractor:Hc,onChange:()=>{},measureElement:Gc,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...e}},this.notify=e=>{var r,i;(i=(r=this.options).onChange)==null||i.call(r,this,e)},this.maybeNotify=St(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var i;var e;let r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(i=(e=this.scrollElement)==null?void 0:e.window)!=null?i:null,this.elementsCache.forEach(s=>{this.observer.observe(s)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,s=>{this.scrollRect=s,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(s,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()<s?"forward":"backward":null,this.scrollOffset=s,this.isScrolling=a,this.maybeNotify()}))}},this.getSize=()=>{var e;return this.options.enabled?(this.scrollRect=(e=this.scrollRect)!=null?e:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var e;return this.options.enabled?(this.scrollOffset=(e=this.scrollOffset)!=null?e:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(e,r)=>{let i=new Map,s=new Map;for(let a=r-1;a>=0;a--){let n=e[a];if(i.has(n.lane))continue;let d=s.get(n.lane);if(d==null||n.end>d.end?s.set(n.lane,n):n.end<d.end&&i.set(n.lane,!0),i.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((a,n)=>a.end===n.end?a.index-n.index:a.end-n.end)[0]:void 0},this.getMeasurementOptions=St(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,r,i,s,a)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:r,scrollMargin:i,getItemKey:s,enabled:a}),{key:!1}),this.getMeasurements=St(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:r,scrollMargin:i,getItemKey:s,enabled:a},n)=>{if(!a)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(p=>{this.itemSizeCache.set(p.key,p.size)}));let d=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let m=this.measurementsCache.slice(0,d);for(let p=d;p<e;p++){let u=s(p),x=this.options.lanes===1?m[p-1]:this.getFurthestMeasurement(m,p),b=x?x.end+this.options.gap:r+i,E=n.get(u),T=typeof E=="number"?E:this.options.estimateSize(p),I=b+T,S=x?x.lane:p%this.options.lanes;m[p]={index:p,start:b,size:T,end:I,key:u,lane:S}}return this.measurementsCache=m,m},{key:!1,debug:()=>this.options.debug}),this.calculateRange=St(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,r,i)=>this.range=e.length>0&&r>0?Yc({measurements:e,outerSize:r,scrollOffset:i}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=St(()=>{let e=null,r=null,i=this.calculateRange();return i&&(e=i.startIndex,r=i.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,r]},(e,r,i,s,a)=>s===null||a===null?[]:e({startIndex:s,endIndex:a,overscan:r,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let r=this.options.indexAttribute,i=e.getAttribute(r);return i?parseInt(i,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(e,r)=>{let i=this.indexFromElement(e),s=this.measurementsCache[i];if(!s)return;let a=s.key,n=this.elementsCache.get(a);n!==e&&(n&&this.observer.unobserve(n),this.observer.observe(e),this.elementsCache.set(a,e)),e.isConnected&&this.resizeItem(i,this.options.measureElement(e,r,this))},this.resizeItem=(e,r)=>{var n;let i=this.measurementsCache[e];if(!i)return;let s=(n=this.itemSizeCache.get(i.key))!=null?n:i.size,a=r-s;a!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,a,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=a,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,r)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((r,i)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(i))});return}this._measureElement(e,void 0)},this.getVirtualItems=St(()=>[this.getIndexes(),this.getMeasurements()],(e,r)=>{let i=[];for(let s=0,a=e.length;s<a;s++){let n=e[s],d=r[n];i.push(d)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let r=this.getMeasurements();if(r.length!==0)return Io(r[wn(0,r.length-1,i=>Io(r[i]).start,e)])},this.getOffsetForAlignment=(e,r)=>{let i=this.getSize(),s=this.getScrollOffset();r==="auto"&&e>=s+i&&(r="end"),r==="end"&&(e-=i);let a=this.options.horizontal?"scrollWidth":"scrollHeight",d=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[a]:this.scrollElement[a]:0)-i;return Math.max(Math.min(d,e),0)},this.getOffsetForIndex=(e,r="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let i=this.measurementsCache[e];if(!i)return;let s=this.getSize(),a=this.getScrollOffset();if(r==="auto")if(i.end>=a+s-this.options.scrollPaddingEnd)r="end";else if(i.start<=a+this.options.scrollPaddingStart)r="start";else return[a,r];let n=i.start-this.options.scrollPaddingStart+(i.size-s)/2;switch(r){case"center":return[this.getOffsetForAlignment(n,r),r];case"end":return[this.getOffsetForAlignment(i.end+this.options.scrollPaddingEnd,r),r];default:return[this.getOffsetForAlignment(i.start-this.options.scrollPaddingStart,r),r]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:r="start",behavior:i}={})=>{this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,r),{adjustments:void 0,behavior:i})},this.scrollToIndex=(e,{align:r="auto",behavior:i}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let s=this.getOffsetForIndex(e,r);if(!s)return;let[a,n]=s;this._scrollToOffset(a,{adjustments:void 0,behavior:i}),i!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[m]=Io(this.getOffsetForIndex(e,n));Tn(m,this.getScrollOffset())||this.scrollToIndex(e,{align:n,behavior:i})}else this.scrollToIndex(e,{align:n,behavior:i})}))},this.scrollBy=(e,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var s;var e;let r=this.getMeasurements(),i;return r.length===0?i=this.options.paddingStart:i=this.options.lanes===1?(s=(e=r[r.length-1])==null?void 0:e.end)!=null?s:0:Math.max(...r.slice(-this.options.lanes).map(a=>a.end)),Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:r,behavior:i})=>{this.options.scrollToFn(e,{behavior:i,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}},wn=(o,t,e,r)=>{for(;o<=t;){let i=(o+t)/2|0,s=e(i);if(s<r)o=i+1;else if(s>r)t=i-1;else return i}return o>0?o-1:0};function Yc({measurements:o,outerSize:t,scrollOffset:e}){let r=o.length-1,s=wn(0,r,n=>o[n].start,e),a=s;for(;a<r&&o[a].end<e+t;)a++;return{startIndex:s,endIndex:a}}var Vi=class{constructor(t,e){this.cleanup=()=>{},(this.host=t).addController(this);let r={...e,onChange:(i,s)=>{var a;this.host.updateComplete.then(()=>this.host.requestUpdate()),(a=e.onChange)==null||a.call(e,i,s)}};this.virtualizer=new ko(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},wo=class extends Vi{constructor(t,e){super(t,{observeElementRect:_n,observeElementOffset:In,scrollToFn:kn,...e})}};var{I:RS}=hs;var Cn=o=>o.strings===void 0;var Lr=(o,t)=>{var r;let e=o._$AN;if(e===void 0)return!1;for(let i of e)(r=i._$AO)==null||r.call(i,t,!1),Lr(i,t);return!0},Co=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while((e==null?void 0:e.size)===0)},Ln=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),Xc(t)}};function qc(o){this._$AN!==void 0?(Co(this),this._$AM=o,Ln(this)):this._$AM=o}function Wc(o,t=!1,e=0){let r=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(r))for(let s=e;s<r.length;s++)Lr(r[s],!1),Co(r[s]);else r!=null&&(Lr(r,!1),Co(r));else Lr(this,o)}var Xc=o=>{var t,e;o.type==Qr.CHILD&&((t=o._$AP)!=null||(o._$AP=Wc),(e=o._$AQ)!=null||(o._$AQ=qc))},Lo=class extends Ut{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),Ln(this),this.isConnected=t._$AU}_$AO(t,e=!0){var r,i;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)==null||r.call(this):(i=this.disconnected)==null||i.call(this)),e&&(Lr(this,t),Co(this))}setValue(t){if(Cn(this.t))this.t._$AI(t,this);else{let e=[...this.t._$AH];e[this.i]=t,this.t._$AI(e,this,0)}}disconnected(){}reconnected(){}};var Rn=()=>new Hi,Hi=class{},Fi=new WeakMap,Nn=hr(class extends Lo{render(o){return v}update(o,[t]){var r;let e=t!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=t,this.ht=(r=o.options)==null?void 0:r.host,this.rt(this.ct=o.element)),v}rt(o){var t;if(this.isConnected||(o=void 0),typeof this.Y=="function"){let e=(t=this.ht)!=null?t:globalThis,r=Fi.get(e);r===void 0&&(r=new WeakMap,Fi.set(e,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,o),o!==void 0&&this.Y.call(this.ht,o)}else this.Y.value=o}get lt(){var o,t,e;return typeof this.Y=="function"?(t=Fi.get((o=this.ht)!=null?o:globalThis))==null?void 0:t.get(this.Y):(e=this.Y)==null?void 0:e.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Zc=[f`
|
3074
3074
|
:host::part(scroll) {
|
3075
3075
|
height: 100%;
|
3076
3076
|
width: 100%;
|
@@ -3080,7 +3080,7 @@
|
|
3080
3080
|
position: relative;
|
3081
3081
|
width: 100%;
|
3082
3082
|
}
|
3083
|
-
`],On=Zc;var Mn=g.constructTagName("virtualizedlist"),
|
3083
|
+
`],On=Zc;var Mn=g.constructTagName("virtualizedlist"),WS=g.constructTagName("virtualizedwrapper"),zn={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var _t=class extends y{constructor(){super();this.virtualizerProps=zn.VIRTUALIZER_PROPS;this.scrollElementRef=Rn();this.virtualItems=[];this.virtualizerController=null,this.virtualizer=null,this.setlistdata=null,this.onscroll=null}update(e){super.update(e),e.get("virtualizerProps")&&this.setVirtualizerOptions()}firstUpdated(e){super.firstUpdated(e),this.setVirtualizerOptions()}setVirtualizerOptions(){var e;(e=this.virtualizer)==null||e.setOptions({...this.virtualizer.options,...this.virtualizerProps}),this.requestUpdate()}connectedCallback(){var e;this.virtualizerController=new wo(this,{count:this.virtualizerProps.count,estimateSize:(e=this.virtualizerProps)==null?void 0:e.estimateSize,getScrollElement:()=>this.scrollElementRef.value||null,...this.virtualizerProps}),super.connectedCallback()}getVirtualizedListWrapper(e){var n,d;this.virtualizer=e.getVirtualizer();let{getTotalSize:r,getVirtualItems:i,measureElement:s}=this.virtualizer,a=i();if(a!==this.virtualItems){this.virtualItems=a;let m=i(),p={position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${(d=(n=m[0])==null?void 0:n.start)!=null?d:0}px)`};this.setlistdata&&this.setlistdata({virtualItems:m,measureElement:s,listStyle:p})}return h`<div
|
3084
3084
|
part="container"
|
3085
3085
|
style="height: ${r()}px;"
|
3086
3086
|
>
|
@@ -3099,7 +3099,7 @@
|
|
3099
3099
|
:host::part(default-slot) {
|
3100
3100
|
display: none;
|
3101
3101
|
}
|
3102
|
-
`,Pn=[Kc];var It=class extends oe(
|
3102
|
+
`,Pn=[Kc];var It=class extends oe(Wt){constructor(){super();this.selected=!1;this.ariaLabel=null;this.role="option",this.variant=Ai.INSET_RECTANGLE,this.updateAttribute("aria-selected",`${this.selected}`),this.updateAttribute("aria-disabled",`${this.disabled}`),this.name=void 0,this.secondaryLabel=void 0,this.sideHeaderText=void 0,this.sublineText=void 0,this.dataAriaLabel=void 0}handleDefaultSlotChange(){var r,i,s;let e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");e&&!this.label&&(this.label=(s=(i=e.assignedNodes()[0])==null?void 0:i.textContent)==null?void 0:s.trim())}updateAttribute(e,r){this.setAttribute(e,r)}update(e){super.update(e),e.has("disabled")&&this.updateAttribute("aria-disabled",`${this.disabled}`),e.has("selected")&&this.updateAttribute("aria-selected",`${this.selected}`)}render(){let e=this.selected?h`
|
3103
3103
|
<mdc-icon slot="trailing-controls" name="${Dn}"></mdc-icon>
|
3104
3104
|
`:v,r=this.prefixIcon?h`
|
3105
3105
|
<mdc-icon slot="leading-controls" name="${A(this.prefixIcon)}"></mdc-icon>
|
@@ -3114,7 +3114,7 @@
|
|
3114
3114
|
${e}
|
3115
3115
|
</div>
|
3116
3116
|
<slot part="default-slot" @slotchange="${this.handleDefaultSlotChange}"></slot>
|
3117
|
-
`}};It.styles=[...
|
3117
|
+
`}};It.styles=[...Wt.styles,...Pn],l([c({type:Boolean,reflect:!0})],It.prototype,"selected",2),l([c({type:String,reflect:!0,attribute:"prefix-icon"})],It.prototype,"prefixIcon",2),l([c({type:String,reflect:!0,attribute:"aria-label"})],It.prototype,"ariaLabel",2);var Gi=It;Gi.register($n);var Qc=Gi;var Un=g.constructTagName("optgroup"),Yi="header-id";var Jc=f`
|
3118
3118
|
:host {
|
3119
3119
|
--mdc-optgroup-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
3120
3120
|
}
|
@@ -3127,7 +3127,7 @@
|
|
3127
3127
|
color: var(--mdc-optgroup-disabled-color);
|
3128
3128
|
cursor: default;
|
3129
3129
|
}
|
3130
|
-
`,Vn=[Jc];var
|
3130
|
+
`,Vn=[Jc];var Kt=class extends U(ee(y)){setDisabledForAllOptions(){this.options.forEach(t=>{this.disabled?t.setAttribute("disabled",""):t.removeAttribute("disabled")})}updated(t){super.updated(t),t.has("disabled")&&this.setDisabledForAllOptions()}render(){var e;let t=this.label?h`
|
3131
3131
|
<mdc-text
|
3132
3132
|
id="${Yi}"
|
3133
3133
|
part="header-text"
|
@@ -3143,7 +3143,7 @@
|
|
3143
3143
|
${t}
|
3144
3144
|
<slot role="presentation"></slot>
|
3145
3145
|
</div>
|
3146
|
-
`}};
|
3146
|
+
`}};Kt.styles=[...y.styles,...Vn],l([c({type:String,reflect:!0})],Kt.prototype,"label",2),l([tt({selector:"mdc-option"})],Kt.prototype,"options",2);var qi=Kt;qi.register(Un);var ed=qi;var td=[f`
|
3147
3147
|
:host {
|
3148
3148
|
--mdc-textarea-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
|
3149
3149
|
--mdc-textarea-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -3198,13 +3198,16 @@
|
|
3198
3198
|
|
3199
3199
|
:host::part(textarea-container) {
|
3200
3200
|
display: flex;
|
3201
|
-
gap: 0.5rem;
|
3202
3201
|
border-radius: 0.5rem;
|
3203
3202
|
border: 0.0625rem solid var(--mdc-textarea-border-color);
|
3204
3203
|
overflow: hidden;
|
3205
3204
|
padding: 0.375rem 0.25rem 0.25rem 0.75rem;
|
3206
3205
|
}
|
3207
3206
|
|
3207
|
+
:host(:dir(rtl))::part(textarea-container){
|
3208
|
+
padding: 0.375rem 0.75rem 0.25rem 0.25rem;
|
3209
|
+
}
|
3210
|
+
|
3208
3211
|
:host(:not([disabled]))::part(textarea-container):hover{
|
3209
3212
|
background-color: var(--mdc-textarea-hover-background-color);
|
3210
3213
|
}
|
@@ -3261,23 +3264,11 @@
|
|
3261
3264
|
pointer-events: none;
|
3262
3265
|
}
|
3263
3266
|
|
3264
|
-
`,...O(!0)],Fn=td;var Hn=g.constructTagName("textarea"),
|
3265
|
-
<mdc-button
|
3266
|
-
part='clear-button'
|
3267
|
-
class='own-focus-ring ${this.value?"":"hidden"}'
|
3268
|
-
prefix-icon='${kt.CLEAR_BUTTON_ICON}'
|
3269
|
-
variant='${kt.CLEAR_BUTTON_VARIANT}'
|
3270
|
-
size="${kt.CLEAR_BUTTON_SIZE}"
|
3271
|
-
aria-label="${this.clearAriaLabel}"
|
3272
|
-
?disabled=${this.disabled||this.readonly||!this.value}
|
3273
|
-
@click=${this.clearInputText}
|
3274
|
-
@keydown=${this.handleKeyDown}
|
3275
|
-
></mdc-button>
|
3276
|
-
`:v}renderCharacterCounter(){return this.maxCharacterLimit?h`
|
3267
|
+
`,...O(!0)],Fn=td;var Hn=g.constructTagName("textarea"),Wi={HARD:"hard",SOFT:"soft"},Bn={OFF:"off",ON:"on"},Ro={CHARACTER_COUNTER_TYPE:_.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:Wi.SOFT};var H=class extends oe(U(Me)){constructor(){var e;super();this.readonly=!1;this.rows=Ro.ROWS;this.cols=Ro.COLS;this.wrap=Wi.SOFT;this.autocapitalize=fo.OFF;this.autocomplete=Bn.OFF;this.autofocus=!1;this.characterLimitExceedingFired=!1;this.value=((e=this.textContent)==null?void 0:e.trim())||this.value}get textarea(){return this.inputElement}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.textarea&&(this.textarea.checkValidity(),this.setTextareaValidity(),this.internals.setFormValue(this.textarea.value))}).catch(e=>{this.onerror&&this.onerror(e)})}setTextareaValidity(){this.requiredLabel&&this.validationMessage&&this.value===""?this.textarea.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===ie.ERROR&&this.helpText?this.textarea.setCustomValidity(this.helpText):this.textarea.setCustomValidity(""),this.setValidity()}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&(this.handleValueChange(),this.handleCharacterOverflowStateChange())}attributeChangedCallback(e,r,i){super.attributeChangedCallback(e,r,i),["maxlength","minlength","required"].includes(e)&&this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(a=>{this.onerror&&this.onerror(a)})}dispatchCharacterOverflowStateChangeEvent(){this.dispatchEvent(new CustomEvent("limitexceeded",{detail:{currentCharacterCount:this.value.length,maxCharacterLimit:this.maxCharacterLimit,value:this.value},bubbles:!0,composed:!0}))}handleCharacterOverflowStateChange(){this.maxCharacterLimit&&(this.value.length>this.maxCharacterLimit&&!this.characterLimitExceedingFired?(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!0):this.value.length<=this.maxCharacterLimit&&this.characterLimitExceedingFired&&(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!1))}updateValue(){this.value=this.textarea.value,this.internals.setFormValue(this.textarea.value)}onChange(e){this.updateValue();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}renderCharacterCounter(){return this.maxCharacterLimit?h`
|
3277
3268
|
<mdc-text
|
3278
3269
|
part="character-counter"
|
3279
3270
|
tagname="span"
|
3280
|
-
type=${
|
3271
|
+
type=${Ro.CHARACTER_COUNTER_TYPE}
|
3281
3272
|
>
|
3282
3273
|
${this.value.length<10?`0${this.value.length}`:this.value.length}/${this.maxCharacterLimit}
|
3283
3274
|
</mdc-text>
|
@@ -3310,13 +3301,12 @@
|
|
3310
3301
|
dirname=${A(this.dirname)}
|
3311
3302
|
@input=${this.updateValue}
|
3312
3303
|
@change=${this.onChange}
|
3313
|
-
aria-describedby="${A(this.helpText?
|
3304
|
+
aria-describedby="${A(this.helpText?V.HELPER_TEXT_ID:"")}"
|
3314
3305
|
aria-invalid="${this.helpTextType==="error"?"true":"false"}"
|
3315
3306
|
></textarea>
|
3316
|
-
${this.renderClearButton()}
|
3317
3307
|
</div>
|
3318
3308
|
${this.renderTextareaFooter()}
|
3319
|
-
`}}
|
3309
|
+
`}};H.styles=[...Me.styles,...Fn],l([c({type:String})],H.prototype,"placeholder",2),l([c({type:Boolean})],H.prototype,"readonly",2),l([c({type:Number})],H.prototype,"rows",2),l([c({type:Number})],H.prototype,"cols",2),l([c({type:String})],H.prototype,"wrap",2),l([c({type:String})],H.prototype,"autocapitalize",2),l([c({type:String})],H.prototype,"autocomplete",2),l([c({type:Boolean})],H.prototype,"autofocus",2),l([c({type:String})],H.prototype,"dirname",2),l([c({type:Number})],H.prototype,"maxlength",2),l([c({type:Number})],H.prototype,"minlength",2),l([c({type:Number,attribute:"max-character-limit"})],H.prototype,"maxCharacterLimit",2),l([Fr("textarea")],H.prototype,"inputElement",2);var Xi=H;Xi.register(Hn);var rd=Xi;})();
|
3320
3310
|
/*! Bundled license information:
|
3321
3311
|
|
3322
3312
|
@lit/reactive-element/css-tag.js:
|