@momentum-design/components 0.70.2 → 0.70.4
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 +112 -90
- package/dist/browser/index.js.map +4 -4
- package/dist/components/card/card.constants.js +1 -1
- package/dist/components/card/card.styles.js +12 -3
- package/dist/components/cardcheckbox/cardcheckbox.component.js +4 -2
- package/dist/components/cardcheckbox/cardcheckbox.styles.js +5 -1
- package/dist/components/cardradio/cardradio.component.d.ts +2 -0
- package/dist/components/cardradio/cardradio.component.js +26 -2
- package/dist/components/cardradio/cardradio.styles.js +5 -1
- package/dist/components/select/select.component.d.ts +3 -0
- package/dist/components/select/select.component.js +9 -0
- package/dist/components/select/select.styles.js +4 -0
- package/dist/custom-elements.json +621 -539
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +1 -1
- package/dist/utils/mixins/CardComponentMixin.js +8 -8
- package/dist/utils/roles.d.ts +1 -0
- package/dist/utils/roles.js +1 -0
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
"use strict";(()=>{var dd=Object.defineProperty;var md=Object.getOwnPropertyDescriptor;var n=(i,t,e,r)=>{for(var o=r>1?void 0:r?md(t,e):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(o=(r?s(t,e,o):s(o))||o);return r&&o&&dd(t,e,o),o};var So=globalThis,Io=So.ShadowRoot&&(So.ShadyCSS===void 0||So.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Fi=Symbol(),ks=new WeakMap,Mr=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==Fi)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(Io&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=ks.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&ks.set(e,t))}return t}toString(){return this.cssText}},ws=i=>new Mr(typeof i=="string"?i:i+"",void 0,Fi),u=(i,...t)=>{let e=i.length===1?i[0]:t.reduce((r,o,a)=>r+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+i[a+1],i[0]);return new Mr(e,i,Fi)},Bi=(i,t)=>{if(Io)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),o=So.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=e.cssText,i.appendChild(r)}},Co=Io?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return ws(e)})(i):i;var{is:pd,defineProperty:hd,getOwnPropertyDescriptor:ud,getOwnPropertyNames:fd,getOwnPropertySymbols:bd,getPrototypeOf:gd}=Object,st=globalThis,Ns=st.trustedTypes,vd=Ns?Ns.emptyScript:"",Hi=st.reactiveElementPolyfillSupport,Dr=(i,t)=>i,$r={toAttribute(i,t){switch(t){case Boolean:i=i?vd:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},ko=(i,t)=>!pd(i,t),
|
1
|
+
"use strict";(()=>{var dd=Object.defineProperty;var md=Object.getOwnPropertyDescriptor;var n=(i,t,e,r)=>{for(var o=r>1?void 0:r?md(t,e):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(o=(r?s(t,e,o):s(o))||o);return r&&o&&dd(t,e,o),o};var So=globalThis,Io=So.ShadowRoot&&(So.ShadyCSS===void 0||So.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Fi=Symbol(),ks=new WeakMap,Mr=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==Fi)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(Io&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=ks.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&ks.set(e,t))}return t}toString(){return this.cssText}},ws=i=>new Mr(typeof i=="string"?i:i+"",void 0,Fi),u=(i,...t)=>{let e=i.length===1?i[0]:t.reduce((r,o,a)=>r+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+i[a+1],i[0]);return new Mr(e,i,Fi)},Bi=(i,t)=>{if(Io)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),o=So.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=e.cssText,i.appendChild(r)}},Co=Io?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return ws(e)})(i):i;var{is:pd,defineProperty:hd,getOwnPropertyDescriptor:ud,getOwnPropertyNames:fd,getOwnPropertySymbols:bd,getPrototypeOf:gd}=Object,st=globalThis,Ns=st.trustedTypes,vd=Ns?Ns.emptyScript:"",Hi=st.reactiveElementPolyfillSupport,Dr=(i,t)=>i,$r={toAttribute(i,t){switch(t){case Boolean:i=i?vd:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},ko=(i,t)=>!pd(i,t),Ls={attribute:!0,type:String,converter:$r,reflect:!1,hasChanged:ko},_s,Rs;(_s=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Rs=st.litPropertyMetadata)!=null||(st.litPropertyMetadata=new WeakMap);var Pe=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=Ls){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),o=this.getPropertyDescriptor(t,r,e);o!==void 0&&hd(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){var s;let{get:o,set:a}=(s=ud(this.prototype,t))!=null?s:{get(){return this[e]},set(c){this[e]=c}};return{get(){return o==null?void 0:o.call(this)},set(c){let d=o==null?void 0:o.call(this);a.call(this,c),this.requestUpdate(t,d,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:Ls}static _$Ei(){if(this.hasOwnProperty(Dr("elementProperties")))return;let t=gd(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Dr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Dr("properties"))){let e=this.properties,r=[...fd(e),...bd(e)];for(let o of r)this.createProperty(o,e[o])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,o]of e)this.elementProperties.set(r,o)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let o=this._$Eu(e,r);o!==void 0&&this._$Eh.set(o,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 o of r)e.unshift(Co(o))}else t!==void 0&&e.push(Co(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 Bi(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 o;return(o=r.hostConnected)==null?void 0:o.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 a;let r=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,r);if(o!==void 0&&r.reflect===!0){let s=(((a=r.converter)==null?void 0:a.toAttribute)!==void 0?r.converter:$r).toAttribute(e,r.type);this._$Em=t,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(t,e){var a;let r=this.constructor,o=r._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let s=r.getPropertyOptions(o),c=typeof s.converter=="function"?{fromAttribute:s.converter}:((a=s.converter)==null?void 0:a.fromAttribute)!==void 0?s.converter:$r;this._$Em=o,this[o]=c.fromAttribute(e,s.type),this._$Em=null}}requestUpdate(t,e,r){var o;if(t!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(t)),!((o=r.hasChanged)!=null?o:ko)(this[t],e))return;this.P(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,r){var o;this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$Em!==t&&((o=this._$Ej)!=null?o: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,o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[s,c]of this._$Ep)this[s]=c;this._$Ep=void 0}let a=this.constructor.elementProperties;if(a.size>0)for(let[s,c]of a)c.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],c)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(o=this._$EO)==null||o.forEach(a=>{var s;return(s=a.hostUpdate)==null?void 0:s.call(a)}),this.update(e)):this._$EU()}catch(a){throw t=!1,this._$EU(),a}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(r=>{var o;return(o=r.hostUpdated)==null?void 0:o.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){}},Os;Pe.elementStyles=[],Pe.shadowRootOptions={mode:"open"},Pe[Dr("elementProperties")]=new Map,Pe[Dr("finalized")]=new Map,Hi==null||Hi({ReactiveElement:Pe}),((Os=st.reactiveElementVersions)!=null?Os:st.reactiveElementVersions=[]).push("2.0.4");var Pr=globalThis,wo=Pr.trustedTypes,Ms=wo?wo.createPolicy("lit-html",{createHTML:i=>i}):void 0,Wi="$lit$",Ue=`lit$${Math.random().toFixed(9).slice(2)}$`,qi="?"+Ue,yd=`<${qi}>`,xt=document,Ur=()=>xt.createComment(""),Vr=i=>i===null||typeof i!="object"&&typeof i!="function",Ki=Array.isArray,Fs=i=>Ki(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Gi=`[
|
2
2
|
\f\r]`,zr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ds=/-->/g,$s=/>/g,vt=RegExp(`>|${Gi}(?:([^\\s"'>=/]+)(${Gi}*=${Gi}*(?:[^
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),zs=/'/g,Ps=/"/g,Bs=/^(?:script|style|textarea|title)$/i,Zi=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),m=Zi(1),vh=Zi(2),yh=Zi(3),Ve=Symbol.for("lit-noChange"),g=Symbol.for("lit-nothing"),Us=new WeakMap,yt=xt.createTreeWalker(xt,129);function Hs(i,t){if(!Ki(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ms!==void 0?Ms.createHTML(t):t}var Gs=(i,t)=>{let e=i.length-1,r=[],o,a=t===2?"<svg>":t===3?"<math>":"",s=zr;for(let c=0;c<e;c++){let d=i[c],p,h,b=-1,x=0;for(;x<d.length&&(s.lastIndex=x,h=s.exec(d),h!==null);)x=s.lastIndex,s===zr?h[1]==="!--"?s=Ds:h[1]!==void 0?s=$s:h[2]!==void 0?(Bs.test(h[2])&&(o=RegExp("</"+h[2],"g")),s=vt):h[3]!==void 0&&(s=vt):s===vt?h[0]===">"?(s=o!=null?o:zr,b=-1):h[1]===void 0?b=-2:(b=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?vt:h[3]==='"'?Ps:zs):s===Ps||s===zs?s=vt:s===Ds||s===$s?s=zr:(s=vt,o=void 0);let y=s===vt&&i[c+1].startsWith("/>")?" ":"";a+=s===zr?d+yd:b>=0?(r.push(p),d.slice(0,b)+Wi+d.slice(b)+Ue+y):d+Ue+(b===-2?c:y)}return[Hs(i,a+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},Fr=class i{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let a=0,s=0,c=t.length-1,d=this.parts,[p,h]=Gs(t,e);if(this.el=i.createElement(p,r),yt.currentNode=this.el.content,e===2||e===3){let b=this.el.content.firstChild;b.replaceWith(...b.childNodes)}for(;(o=yt.nextNode())!==null&&d.length<c;){if(o.nodeType===1){if(o.hasAttributes())for(let b of o.getAttributeNames())if(b.endsWith(Wi)){let x=h[s++],y=o.getAttribute(b).split(Ue),T=/([.?@])?(.*)/.exec(x);d.push({type:1,index:a,name:T[2],strings:y,ctor:T[1]==="."?
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),zs=/'/g,Ps=/"/g,Bs=/^(?:script|style|textarea|title)$/i,Zi=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),m=Zi(1),vh=Zi(2),yh=Zi(3),Ve=Symbol.for("lit-noChange"),g=Symbol.for("lit-nothing"),Us=new WeakMap,yt=xt.createTreeWalker(xt,129);function Hs(i,t){if(!Ki(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ms!==void 0?Ms.createHTML(t):t}var Gs=(i,t)=>{let e=i.length-1,r=[],o,a=t===2?"<svg>":t===3?"<math>":"",s=zr;for(let c=0;c<e;c++){let d=i[c],p,h,b=-1,x=0;for(;x<d.length&&(s.lastIndex=x,h=s.exec(d),h!==null);)x=s.lastIndex,s===zr?h[1]==="!--"?s=Ds:h[1]!==void 0?s=$s:h[2]!==void 0?(Bs.test(h[2])&&(o=RegExp("</"+h[2],"g")),s=vt):h[3]!==void 0&&(s=vt):s===vt?h[0]===">"?(s=o!=null?o:zr,b=-1):h[1]===void 0?b=-2:(b=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?vt:h[3]==='"'?Ps:zs):s===Ps||s===zs?s=vt:s===Ds||s===$s?s=zr:(s=vt,o=void 0);let y=s===vt&&i[c+1].startsWith("/>")?" ":"";a+=s===zr?d+yd:b>=0?(r.push(p),d.slice(0,b)+Wi+d.slice(b)+Ue+y):d+Ue+(b===-2?c:y)}return[Hs(i,a+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},Fr=class i{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let a=0,s=0,c=t.length-1,d=this.parts,[p,h]=Gs(t,e);if(this.el=i.createElement(p,r),yt.currentNode=this.el.content,e===2||e===3){let b=this.el.content.firstChild;b.replaceWith(...b.childNodes)}for(;(o=yt.nextNode())!==null&&d.length<c;){if(o.nodeType===1){if(o.hasAttributes())for(let b of o.getAttributeNames())if(b.endsWith(Wi)){let x=h[s++],y=o.getAttribute(b).split(Ue),T=/([.?@])?(.*)/.exec(x);d.push({type:1,index:a,name:T[2],strings:y,ctor:T[1]==="."?Lo:T[1]==="?"?_o:T[1]==="@"?Ro:Tt}),o.removeAttribute(b)}else b.startsWith(Ue)&&(d.push({type:6,index:a}),o.removeAttribute(b));if(Bs.test(o.tagName)){let b=o.textContent.split(Ue),x=b.length-1;if(x>0){o.textContent=wo?wo.emptyScript:"";for(let y=0;y<x;y++)o.append(b[y],Ur()),yt.nextNode(),d.push({type:2,index:++a});o.append(b[x],Ur())}}}else if(o.nodeType===8)if(o.data===qi)d.push({type:2,index:a});else{let b=-1;for(;(b=o.data.indexOf(Ue,b+1))!==-1;)d.push({type:7,index:a}),b+=Ue.length-1}a++}}static createElement(t,e){let r=xt.createElement("template");return r.innerHTML=t,r}};function Et(i,t,e=i,r){var s,c,d;if(t===Ve)return t;let o=r!==void 0?(s=e.o)==null?void 0:s[r]:e.l,a=Vr(t)?void 0:t._$litDirective$;return(o==null?void 0:o.constructor)!==a&&((c=o==null?void 0:o._$AO)==null||c.call(o,!1),a===void 0?o=void 0:(o=new a(i),o._$AT(i,e,r)),r!==void 0?((d=e.o)!=null?d:e.o=[])[r]=o:e.l=o),o!==void 0&&(t=Et(i,o._$AS(i,t.values),o,r)),t}var No=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 p;let{el:{content:e},parts:r}=this._$AD,o=((p=t==null?void 0:t.creationScope)!=null?p:xt).importNode(e,!0);yt.currentNode=o;let a=yt.nextNode(),s=0,c=0,d=r[0];for(;d!==void 0;){if(s===d.index){let h;d.type===2?h=new er(a,a.nextSibling,this,t):d.type===1?h=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(h=new Oo(a,this,t)),this._$AV.push(h),d=r[++c]}s!==(d==null?void 0:d.index)&&(a=yt.nextNode(),s++)}return yt.currentNode=xt,o}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++}},er=class i{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this.v}constructor(t,e,r,o){var a;this.type=2,this._$AH=g,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this.v=(a=o==null?void 0:o.isConnected)!=null?a:!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=Et(this,t,e),Vr(t)?t===g||t==null||t===""?(this._$AH!==g&&this._$AR(),this._$AH=g):t!==this._$AH&&t!==Ve&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Fs(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!==g&&Vr(this._$AH)?this._$AA.nextSibling.data=t:this.T(xt.createTextNode(t)),this._$AH=t}$(t){var a;let{values:e,_$litType$:r}=t,o=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=Fr.createElement(Hs(r.h,r.h[0]),this.options)),r);if(((a=this._$AH)==null?void 0:a._$AD)===o)this._$AH.p(e);else{let s=new No(o,this),c=s.u(this.options);s.p(e),this.T(c),this._$AH=s}}_$AC(t){let e=Us.get(t.strings);return e===void 0&&Us.set(t.strings,e=new Fr(t)),e}k(t){Ki(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,o=0;for(let a of t)o===e.length?e.push(r=new i(this.O(Ur()),this.O(Ur()),this,this.options)):r=e[o],r._$AI(a),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$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 o=t.nextSibling;t.remove(),t=o}}setConnected(t){var e;this._$AM===void 0&&(this.v=t,(e=this._$AP)==null||e.call(this,t))}},Tt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,a){this.type=1,this._$AH=g,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=a,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=g}_$AI(t,e=this,r,o){let a=this.strings,s=!1;if(a===void 0)t=Et(this,t,e,0),s=!Vr(t)||t!==this._$AH&&t!==Ve,s&&(this._$AH=t);else{let c=t,d,p;for(t=a[0],d=0;d<a.length-1;d++)p=Et(this,c[r+d],e,d),p===Ve&&(p=this._$AH[d]),s||(s=!Vr(p)||p!==this._$AH[d]),p===g?t=g:t!==g&&(t+=(p!=null?p:"")+a[d+1]),this._$AH[d]=p}s&&!o&&this.j(t)}j(t){t===g?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},Lo=class extends Tt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===g?void 0:t}},_o=class extends Tt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==g)}},Ro=class extends Tt{constructor(t,e,r,o,a){super(t,e,r,o,a),this.type=5}_$AI(t,e=this){var s;if((t=(s=Et(this,t,e,0))!=null?s:g)===Ve)return;let r=this._$AH,o=t===g&&r!==g||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,a=t!==g&&(r===g||o);o&&this.element.removeEventListener(this.name,this,r),a&&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)}},Oo=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){Et(this,t)}},Ys={M:Wi,P:Ue,A:qi,C:1,L:Gs,R:No,D:Fs,V:Et,I:er,H:Tt,N:_o,U:Ro,B:Lo,F:Oo},Yi=Pr.litHtmlPolyfillSupport,Vs;Yi==null||Yi(Fr,er),((Vs=Pr.litHtmlVersions)!=null?Vs:Pr.litHtmlVersions=[]).push("3.2.0");var Ws=(i,t,e)=>{var a,s;let r=(a=e==null?void 0:e.renderBefore)!=null?a:t,o=r._$litPart$;if(o===void 0){let c=(s=e==null?void 0:e.renderBefore)!=null?s:null;r._$litPart$=o=new er(t.insertBefore(Ur(),c),c,void 0,e!=null?e:{})}return o._$AI(i),o};var nt=class extends Pe{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=Ws(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 Ve}},qs;nt._$litElement$=!0,nt.finalized=!0,(qs=globalThis.litElementHydrateSupport)==null||qs.call(globalThis,{LitElement:nt});var Xi=globalThis.litElementPolyfillSupport;Xi==null||Xi({LitElement:nt});var Ks;((Ks=globalThis.litElementVersions)!=null?Ks:globalThis.litElementVersions=[]).push("4.1.0");var xd={attribute:!0,type:String,converter:$r,reflect:!1,hasChanged:ko},Ed=(i=xd,t,e)=>{let{kind:r,metadata:o}=e,a=globalThis.litPropertyMetadata.get(o);if(a===void 0&&globalThis.litPropertyMetadata.set(o,a=new Map),a.set(e.name,i),r==="accessor"){let{name:s}=e;return{set(c){let d=t.get.call(this);t.set.call(this,c),this.requestUpdate(s,d,i)},init(c){return c!==void 0&&this.P(s,void 0,i),c}}}if(r==="setter"){let{name:s}=e;return function(c){let d=this[s];t.call(this,c),this.requestUpdate(s,d,i)}}throw Error("Unsupported decorator location: "+r)};function l(i){return(t,e)=>typeof e=="object"?Ed(i,t,e):((r,o,a)=>{let s=o.hasOwnProperty(a);return o.constructor.createProperty(a,s?{...r,wrapped:!0}:r),s?Object.getOwnPropertyDescriptor(o,a):void 0})(i,t,e)}function L(i){return l({...i,state:!0,attribute:!1})}var Fe=(i,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(i,t,e),e);function Be(i,t){return(e,r,o)=>{let a=s=>{var c,d;return(d=(c=s.renderRoot)==null?void 0:c.querySelector(i))!=null?d:null};if(t){let{get:s,set:c}=typeof r=="object"?e:o!=null?o:(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return Fe(e,r,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&c.call(this,d)),d}})}return Fe(e,r,{get(){return a(this)}})}}function F(i){return(t,e)=>{let{slot:r,selector:o}=i!=null?i:{},a="slot"+(r?`[name=${r}]`:":not([name])");return Fe(t,e,{get(){var d,p;let s=(d=this.renderRoot)==null?void 0:d.querySelector(a),c=(p=s==null?void 0:s.assignedElements(i))!=null?p:[];return o===void 0?c:c.filter(h=>h.matches(o))}})}}function Mo(i){return(t,e)=>{let{slot:r}=i!=null?i:{},o="slot"+(r?`[name=${r}]`:":not([name])");return Fe(t,e,{get(){var s,c;let a=(s=this.renderRoot)==null?void 0:s.querySelector(o);return(c=a==null?void 0:a.assignedNodes(i))!=null?c:[]}})}}var N=u`
|
4
4
|
:host {
|
5
5
|
align-items: center;
|
6
6
|
display: flex;
|
@@ -490,7 +490,7 @@
|
|
490
490
|
display: block;
|
491
491
|
font-family: var(--mdc-text-font-family);
|
492
492
|
}
|
493
|
-
`,an],sn=wd;var nr=class extends v{constructor(){super(...arguments);this.type=pe.TYPE;this.tagname=pe.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case C.H1:return m`<h1 part=${pe.CSS_PART_TEXT}><slot></slot></h1>`;case C.H2:return m`<h2 part=${pe.CSS_PART_TEXT}><slot></slot></h2>`;case C.H3:return m`<h3 part=${pe.CSS_PART_TEXT}><slot></slot></h3>`;case C.H4:return m`<h4 part=${pe.CSS_PART_TEXT}><slot></slot></h4>`;case C.H5:return m`<h5 part=${pe.CSS_PART_TEXT}><slot></slot></h5>`;case C.H6:return m`<h6 part=${pe.CSS_PART_TEXT}><slot></slot></h6>`;case C.DIV:return m`<div part=${pe.CSS_PART_TEXT}><slot></slot></div>`;case C.SPAN:return m`<span part=${pe.CSS_PART_TEXT}><slot></slot></span>`;case C.SMALL:return m`<small part=${pe.CSS_PART_TEXT}><slot></slot></small>`;case C.P:default:return m`<p part=${pe.CSS_PART_TEXT}><slot></slot></p>`}}};nr.styles=[...v.styles,...sn],n([l({attribute:"type",reflect:!0,type:String})],nr.prototype,"type",2),n([l({attribute:"tagname",reflect:!0,type:String})],nr.prototype,"tagname",2);var ea=nr;ea.register(Gr);var Nd=ea;var
|
493
|
+
`,an],sn=wd;var nr=class extends v{constructor(){super(...arguments);this.type=pe.TYPE;this.tagname=pe.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case C.H1:return m`<h1 part=${pe.CSS_PART_TEXT}><slot></slot></h1>`;case C.H2:return m`<h2 part=${pe.CSS_PART_TEXT}><slot></slot></h2>`;case C.H3:return m`<h3 part=${pe.CSS_PART_TEXT}><slot></slot></h3>`;case C.H4:return m`<h4 part=${pe.CSS_PART_TEXT}><slot></slot></h4>`;case C.H5:return m`<h5 part=${pe.CSS_PART_TEXT}><slot></slot></h5>`;case C.H6:return m`<h6 part=${pe.CSS_PART_TEXT}><slot></slot></h6>`;case C.DIV:return m`<div part=${pe.CSS_PART_TEXT}><slot></slot></div>`;case C.SPAN:return m`<span part=${pe.CSS_PART_TEXT}><slot></slot></span>`;case C.SMALL:return m`<small part=${pe.CSS_PART_TEXT}><slot></slot></small>`;case C.P:default:return m`<p part=${pe.CSS_PART_TEXT}><slot></slot></p>`}}};nr.styles=[...v.styles,...sn],n([l({attribute:"type",reflect:!0,type:String})],nr.prototype,"type",2),n([l({attribute:"tagname",reflect:!0,type:String})],nr.prototype,"tagname",2);var ea=nr;ea.register(Gr);var Nd=ea;var Ld=[N,u`
|
494
494
|
:host {
|
495
495
|
--mdc-icon-fill-color: currentColor;
|
496
496
|
--mdc-icon-size: var(--computed-icon-size);
|
@@ -505,7 +505,7 @@
|
|
505
505
|
width: 100%;
|
506
506
|
fill: var(--mdc-icon-fill-color);
|
507
507
|
}
|
508
|
-
`,..._()],nn=
|
508
|
+
`,..._()],nn=Ld;var _d=i=>{let{host:t,context:e,subscribe:r}=i;return new tr(t,{context:e,subscribe:r!=null?r:!0})},Rd={consume:_d},ln=Rd;var Uo=f.constructTagName("iconprovider"),cn=["svg"],dn=["em","rem","px","%"],Od={px:16,em:1,rem:1,"%":100},He={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Od.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var Vo=class{};Vo.context=Uo;var Fo=Vo;var Oe=class extends or{constructor(){super({context:Fo.context,initialValue:new Fo});this.iconSet=He.ICON_SET;this.fileExtension=He.FILE_EXTENSION;this.lengthUnit=He.LENGTH_UNIT;this.size=He.SIZE}static get Context(){return Fo.context}updateValuesInContext(){this.fileExtension&&cn.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=He.FILE_EXTENSION,this.context.value.fileExtension=He.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&&dn.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=He.LENGTH_UNIT,this.context.value.lengthUnit=He.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())}};n([l({type:String,attribute:"icon-set",reflect:!0})],Oe.prototype,"iconSet",2),n([l({type:String})],Oe.prototype,"url",2),n([l({type:String,attribute:"file-extension",reflect:!0})],Oe.prototype,"fileExtension",2),n([l({type:String,attribute:"length-unit",reflect:!0})],Oe.prototype,"lengthUnit",2),n([l({type:Number,reflect:!0})],Oe.prototype,"size",2),n([l({type:String,attribute:"cache-strategy"})],Oe.prototype,"cacheStrategy",2),n([l({type:String,attribute:"cache-name"})],Oe.prototype,"cacheName",2);var Yr=Oe;var Wr={},mn=async i=>(Wr[i]===void 0&&(Wr[i]=new Map),{async set(t,e){Wr[i].set(t.url,await e.text())},async get(t){return Wr[i].get(t.url)},async delete(t){Wr[i].delete(t.url)}}),pn=async i=>{let t=await caches.open(i);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)}}},hn=async(i,t)=>t==="in-memory-cache"?mn(i):pn(i);var un=async i=>fetch(i).then(t=>{if(!t.ok)throw new Error("There was a problem while fetching the icon!");return t}),fn=async({url:i,name:t,fileExtension:e,cacheStrategy:r,cacheName:o,renewSignal:a})=>{let s=a(),c=new Request(`${i}/${t}.${e}`,{signal:s});return!o||!r||!["in-memory-cache","web-cache-api"].includes(r)?un(c).then(d=>d.text()):hn(o,r).then(d=>d.get(c).then(p=>p||un(c.clone()).then(h=>{var b;return h.status<400&&h.headers.has("content-type")?(b=d.set)==null?void 0:b.call(d,c,h.clone()).then(()=>h.text()):h.text()})).catch(p=>{throw new Error(`Error in caching the Icon ${t}, ${p}`)}))};var bn=f.constructTagName("icon"),ta={NAME:void 0,SIZE:1};var he=class extends v{constructor(){super();this.name=ta.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=ln.consume({host:this,context:Yr.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:o,cacheName:a,iconSet:s,cacheStrategy:c}=this.iconProviderContext.value;if(s==="custom-icons"&&o&&r&&this.name){let d=()=>(this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal);return fn({url:o,name:this.name,fileExtension:r,cacheName:a,cacheStrategy:c,renewSignal:d}).then(p=>{let h=this.prepareIconElement(p);this.handleIconLoadedSuccess(h)}).catch(p=>{this.handleIconLoadedFailure(p)})}if(s==="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:ta.SIZE}updated(e){var r,o,a,s;super.updated(e),e.has("name")&&this.getIconData().catch(c=>{c.name!=="AbortError"&&this.onerror&&this.onerror(c)}),(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=(o=this.iconProviderContext.value)==null?void 0:o.lengthUnit,this.updateSize()),this.sizeFromContext!==((a=this.iconProviderContext.value)==null?void 0:a.size)&&(this.sizeFromContext=(s=this.iconProviderContext.value)==null?void 0:s.size,this.updateSize())}render(){return m` ${this.iconData} `}};he.styles=[...v.styles,...nn],n([L()],he.prototype,"iconData",2),n([L()],he.prototype,"lengthUnitFromContext",2),n([L()],he.prototype,"sizeFromContext",2),n([l({type:String,reflect:!0})],he.prototype,"name",2),n([l({type:Number})],he.prototype,"size",2),n([l({type:String,attribute:"length-unit"})],he.prototype,"lengthUnit",2),n([l({type:String,attribute:"aria-label"})],he.prototype,"ariaLabel",2),n([l({type:String,attribute:"aria-labelledby"})],he.prototype,"ariaLabelledBy",2),n([L()],he.prototype,"abortController",2);var ra=he;ra.register(bn);var Md=ra;Ji.register(tn);var Dd=Ji;var $d=u`
|
509
509
|
:host {
|
510
510
|
--mdc-appheader-height: 4rem;
|
511
511
|
}
|
@@ -550,7 +550,7 @@
|
|
550
550
|
<div part="trailing-section">
|
551
551
|
<slot name="trailing"></slot>
|
552
552
|
</div>
|
553
|
-
</header>`}};Bo.styles=[...v.styles,...gn];var oa=Bo;var vn=f.constructTagName("appheader");oa.register(vn);var zd=oa;var A=i=>i!=null?i:g;var yn=f.constructTagName("avatar"),
|
553
|
+
</header>`}};Bo.styles=[...v.styles,...gn];var oa=Bo;var vn=f.constructTagName("appheader");oa.register(vn);var zd=oa;var A=i=>i!=null?i:g;var yn=f.constructTagName("avatar"),re={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},ia=99,Pd="user-regular",M={24:24,32:32,48:48,64:64,72:72,88:88,124:124},lr={TYPE:re.PHOTO,SIZE:M[32],ICON_NAME:Pd};var Ho=i=>{class t extends i{constructor(){super(...arguments);this.size=lr.SIZE;this.isTyping=!1}}return n([l({type:String})],t.prototype,"src",2),n([l({type:String})],t.prototype,"initials",2),n([l({type:String})],t.prototype,"presence",2),n([l({type:Number,reflect:!0,attribute:"size"})],t.prototype,"size",2),n([l({type:Number})],t.prototype,"counter",2),n([l({type:Boolean,attribute:"is-typing"})],t.prototype,"isTyping",2),t};var ne=i=>{class t extends i{}return n([l({type:String,attribute:"icon-name"})],t.prototype,"iconName",2),t};var Ud=[N,u`
|
554
554
|
:host {
|
555
555
|
--mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
|
556
556
|
--mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
|
@@ -673,7 +673,7 @@
|
|
673
673
|
outline: 0.125rem solid;
|
674
674
|
}
|
675
675
|
}
|
676
|
-
`],xn=Ud;var En=f.constructTagName("presence"),
|
676
|
+
`],xn=Ud;var En=f.constructTagName("presence"),J={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"},W={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},cr={TYPE:J.ACTIVE,SIZE:W.SMALL};var Tn=i=>({[M[124]]:W.XX_LARGE,[M[88]]:W.X_LARGE,[M[72]]:W.LARGE,[M[64]]:W.MIDSIZE,[M[48]]:W.SMALL,[M[32]]:W.X_SMALL,[M[24]]:W.XX_SMALL})[i]||W.X_SMALL,An=i=>({[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})[i]||1.25,Sn=i=>({[M[124]]:E.HEADING_XLARGE_MEDIUM,[M[88]]:E.HEADING_LARGE_MEDIUM,[M[72]]:E.HEADING_MIDSIZE_MEDIUM,[M[64]]:E.HEADING_SMALL_MEDIUM,[M[48]]:E.HEADING_SMALL_MEDIUM,[M[32]]:E.BODY_MIDSIZE_MEDIUM,[M[24]]:E.BODY_SMALL_MEDIUM})[i]||E.BODY_MIDSIZE_MEDIUM;var qr=class extends Ho(ne(v)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===re.COUNTER&&(this.counter||this.counter===0)||this.isTyping?g:this.presence?m`
|
677
677
|
<mdc-presence part="presence" type="${this.presence}" size="${Tn(this.size)}"></mdc-presence>
|
678
678
|
`:g}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 m`
|
679
679
|
<img
|
@@ -697,7 +697,7 @@
|
|
697
697
|
>
|
698
698
|
${e}
|
699
699
|
</mdc-text>
|
700
|
-
`}generateCounterText(e){return e<0?"0":e>ia?`${ia}+`:e.toString()}generateInitialsText(e){return e.toUpperCase().slice(0,2)}generateTextContent(e){let r="";return e===
|
700
|
+
`}generateCounterText(e){return e<0?"0":e>ia?`${ia}+`:e.toString()}generateInitialsText(e){return e.toUpperCase().slice(0,2)}generateTextContent(e){let r="";return e===re.TEXT&&this.initials&&(r=this.generateInitialsText(this.initials)),e===re.COUNTER&&(this.counter||this.counter===0)&&(r=this.generateCounterText(this.counter)),this.textTemplate(r)}getTypeBasedOnInputs(){return this.src?re.PHOTO:this.iconName?re.ICON:this.initials?re.TEXT:this.counter||this.counter===0?re.COUNTER:re.ICON}getTemplateBasedOnType(e){switch(e){case re.PHOTO:return this.photoTemplate();case re.TEXT:case re.COUNTER:return this.generateTextContent(e);case re.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?m`<div part="loading-wrapper"><div part="loader"></div></div>`:g}getPhotoPlaceHolderContent(e){return this.isPhotoLoaded?g:e===re.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():g}update(e){super.update(e),e.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let e=this.getTypeBasedOnInputs();return m`
|
701
701
|
<div part="content" aria-hidden="true">
|
702
702
|
${this.getPhotoPlaceHolderContent(e)}
|
703
703
|
${this.getTemplateBasedOnType(e)}
|
@@ -798,7 +798,7 @@
|
|
798
798
|
.mdc-presence-icon__scheduled {
|
799
799
|
color: var(--mdc-presence-scheduled-background-color);
|
800
800
|
}
|
801
|
-
`],In=Vd;var Cn=i=>{switch(i){case
|
801
|
+
`],In=Vd;var Cn=i=>{switch(i){case J.AWAY:return"recents-presence-badge-filled";case J.AWAY_CALLING:return"away-calling-presence-filled";case J.BUSY:return"busy-presence-bold";case J.DND:return"dnd-presence-badge-filled";case J.MEETING:return"camera-filled";case J.ON_CALL:return"handset-filled";case J.ON_DEVICE:return"generic-device-video-badge-filled";case J.ON_MOBILE:return"phone-badge-filled";case J.PAUSE:return"pause-badge-filled";case J.PTO:return"pto-presence-filled";case J.PRESENTING:return"share-screen-badge-filled";case J.QUIET:return"quiet-hours-presence-filled";case J.SCHEDULED:return"meetings-presence-badge-filled";case J.ACTIVE:default:return"active-presence-small-filled"}};var St=class extends v{constructor(){super(...arguments);this.type=cr.TYPE;this.size=cr.SIZE;this.currentIconType=cr.TYPE}get iconSize(){switch(this.size){case W.MIDSIZE:return 1.16125;case W.LARGE:return 1.30625;case W.X_LARGE:return 1.596875;case W.XX_LARGE:return 2.25;case W.XX_SMALL:case W.X_SMALL:case W.SMALL:default:return this.size=cr.SIZE,.875}}get icon(){let e=Cn(this.type);return e==="active-presence-small-filled"&&(this.type=cr.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 m`
|
802
802
|
<div class="mdc-presence mdc-presence__${this.size}">
|
803
803
|
<mdc-icon
|
804
804
|
class="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
|
@@ -808,7 +808,7 @@
|
|
808
808
|
@error="${this.handleOnError}"
|
809
809
|
></mdc-icon>
|
810
810
|
</div>
|
811
|
-
`}};St.styles=[...v.styles,...In],n([l({type:String,reflect:!0})],St.prototype,"type",2),n([l({type:String,reflect:!0})],St.prototype,"size",2),n([L()],St.prototype,"currentIconType",2);var sa=St;sa.register(En);var Fd=sa;aa.register(yn);var Bd=aa;var It=f.constructTagName("button"),
|
811
|
+
`}};St.styles=[...v.styles,...In],n([l({type:String,reflect:!0})],St.prototype,"type",2),n([l({type:String,reflect:!0})],St.prototype,"size",2),n([L()],St.prototype,"currentIconType",2);var sa=St;sa.register(En);var Fd=sa;aa.register(yn);var Bd=aa;var It=f.constructTagName("button"),X={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Kr={40:40,32:32,28:28,24:24},ct={64:64,52:52,20:20,...Kr},Ct={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},dr={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},le={VARIANT:X.PRIMARY,SIZE:Kr[32],COLOR:Ct.DEFAULT,TYPE_INTERNAL:dr.ICON,TYPE:ir.BUTTON,INVERTED:!1};var Hd=[N,u`
|
812
812
|
:host {
|
813
813
|
--mdc-avatarbutton-overlay-background-color-rest: var(--mds-color-theme-avatar-ghost);
|
814
814
|
--mdc-avatarbutton-overlay-background-color-hover: var(--mds-color-theme-avatar-hover);
|
@@ -917,7 +917,7 @@
|
|
917
917
|
outline: 0.125rem solid;
|
918
918
|
}
|
919
919
|
}
|
920
|
-
`],
|
920
|
+
`],Ln=Yd;var Me=class extends ne(v){constructor(){super(...arguments);this.variant=dt.VARIANT;this.maxCounter=dt.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,r){return r===void 0||typeof r!="number"||e===0?"":r>e?`${e}+`:e>dt.MAX_COUNTER_LIMIT||r>dt.MAX_COUNTER_LIMIT?`${dt.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(e,r){return m`
|
921
921
|
<mdc-icon
|
922
922
|
class="mdc-badge-icon ${pr({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${r}`]:!0})}"
|
923
923
|
name="${A(e)}"
|
@@ -931,7 +931,7 @@
|
|
931
931
|
>
|
932
932
|
${this.getCounterText(this.maxCounter,this.counter)}
|
933
933
|
</mdc-text>
|
934
|
-
`}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(Wo).includes(this.variant)&&(this.variant=dt.VARIANT);let{iconName:e,type:r,variant:o}=this;switch(r){case Ge.ICON:return this.getBadgeIcon(e||"",o);case Ge.COUNTER:return this.getBadgeCounterText();case Ge.SUCCESS:return this.getBadgeIcon(Yo.SUCCESS_ICON_NAME,jr.SUCCESS);case Ge.WARNING:return this.getBadgeIcon(Yo.WARNING_ICON_NAME,jr.WARNING);case Ge.ERROR:return this.getBadgeIcon(Yo.ERROR_ICON_NAME,jr.ERROR);case Ge.DOT:default:return this.type=Ge.DOT,this.getBadgeDot()}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};Me.styles=[...v.styles,...
|
934
|
+
`}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(Wo).includes(this.variant)&&(this.variant=dt.VARIANT);let{iconName:e,type:r,variant:o}=this;switch(r){case Ge.ICON:return this.getBadgeIcon(e||"",o);case Ge.COUNTER:return this.getBadgeCounterText();case Ge.SUCCESS:return this.getBadgeIcon(Yo.SUCCESS_ICON_NAME,jr.SUCCESS);case Ge.WARNING:return this.getBadgeIcon(Yo.WARNING_ICON_NAME,jr.WARNING);case Ge.ERROR:return this.getBadgeIcon(Yo.ERROR_ICON_NAME,jr.ERROR);case Ge.DOT:default:return this.type=Ge.DOT,this.getBadgeDot()}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};Me.styles=[...v.styles,...Ln],n([l({type:String,reflect:!0})],Me.prototype,"type",2),n([l({type:String,reflect:!0})],Me.prototype,"variant",2),n([l({type:Number})],Me.prototype,"counter",2),n([l({type:Number,attribute:"max-counter",reflect:!0})],Me.prototype,"maxCounter",2),n([l({type:Boolean})],Me.prototype,"overlay",2),n([l({type:String,attribute:"aria-label"})],Me.prototype,"ariaLabel",2);var la=Me;la.register(Nn);var Wd=la;var qd=u`
|
935
935
|
:host {
|
936
936
|
display: block;
|
937
937
|
height: 100%;
|
@@ -940,7 +940,7 @@
|
|
940
940
|
height: 100%;
|
941
941
|
width: 100%;
|
942
942
|
}
|
943
|
-
`,
|
943
|
+
`,_n=[qd];var Rn=f.constructTagName("brandvisual"),On={NAME:void 0};var hr=class extends v{constructor(){super(...arguments);this.name=On.NAME}async getBrandVisualData(){return this.name?import(`@momentum-design/brand-visuals/dist/logos/ts/${this.name}.ts`).then(e=>{this.handleBrandVisualLoadedSuccess(e.default())}).catch(e=>{this.handleBrandVisualLoadedFailure(e)}):(this.handleBrandVisualLoadedFailure(new Error("No brandvisual name provided.")),Promise.reject(new Error("No brandvisual name provided.")))}updated(e){super.updated(e),e.has("name")&&this.getBrandVisualData().catch(r=>{this.onerror&&this.onerror(r)})}handleBrandVisualLoadedSuccess(e){this.brandVisualData=e;let r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleBrandVisualLoadedFailure(e){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(r)}render(){return m` ${this.brandVisualData} `}};hr.styles=[...v.styles,..._n],n([L()],hr.prototype,"brandVisualData",2),n([l({type:String,reflect:!0})],hr.prototype,"name",2);var ca=hr;ca.register(Rn);var Kd=ca;var Zd=u`
|
944
944
|
:host {
|
945
945
|
--mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
|
946
946
|
--mdc-bullet-size-small: 0.25rem;
|
@@ -961,7 +961,7 @@
|
|
961
961
|
:host([size="large"]) {
|
962
962
|
height: var(--mdc-bullet-size-large);
|
963
963
|
}
|
964
|
-
`,Mn=[Zd];var Dn=f.constructTagName("bullet"),$n={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var Qr=class extends v{constructor(){super(...arguments);this.size=$n.SMALL}};Qr.styles=[...v.styles,...Mn],n([l({type:String,reflect:!0})],Qr.prototype,"size",2);var da=Qr;da.register(Dn);var Xd=da;var qo=i=>{class t extends i{constructor(){super(...arguments);this.variant=le.VARIANT;this.color=le.COLOR;this.typeInternal=le.TYPE_INTERNAL}setVariant(o){this.setAttribute("variant",Object.values(
|
964
|
+
`,Mn=[Zd];var Dn=f.constructTagName("bullet"),$n={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var Qr=class extends v{constructor(){super(...arguments);this.size=$n.SMALL}};Qr.styles=[...v.styles,...Mn],n([l({type:String,reflect:!0})],Qr.prototype,"size",2);var da=Qr;da.register(Dn);var Xd=da;var qo=i=>{class t extends i{constructor(){super(...arguments);this.variant=le.VARIANT;this.color=le.COLOR;this.typeInternal=le.TYPE_INTERNAL}setVariant(o){this.setAttribute("variant",Object.values(X).includes(o)?o:le.VARIANT)}setColor(o){!Object.values(Ct).includes(o)||this.variant===X.TERTIARY?this.setAttribute("color",`${le.COLOR}`):this.setAttribute("color",o)}setSize(o){let s=this.typeInternal===dr.ICON?Object.values(ct).includes(o)&&!(o===ct[20]&&this.variant!==X.TERTIARY):Object.values(Kr).includes(o);this.setAttribute("size",s?`${o}`:`${le.SIZE}`)}inferButtonType(){var a,s;let o=(s=(a=this.shadowRoot)==null?void 0:a.querySelector("slot"))==null?void 0:s.assignedNodes().filter(c=>{var d;return c.nodeType!==Node.TEXT_NODE||((d=c.textContent)==null?void 0:d.trim())}).length;o&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=dr.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!o&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=dr.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=dr.PILL,this.setAttribute("data-btn-type","pill"))}}return n([l({type:String,attribute:"prefix-icon",reflect:!0})],t.prototype,"prefixIcon",2),n([l({type:String,attribute:"postfix-icon",reflect:!0})],t.prototype,"postfixIcon",2),n([l({type:String})],t.prototype,"variant",2),n([l({type:String})],t.prototype,"color",2),n([L()],t.prototype,"typeInternal",2),t};var jd=u`
|
965
965
|
:host {
|
966
966
|
background-color: transparent;
|
967
967
|
border-radius: 1.25rem;
|
@@ -1290,11 +1290,11 @@
|
|
1290
1290
|
border-color: transparent;
|
1291
1291
|
}
|
1292
1292
|
:host([orientation="horizontal"]){
|
1293
|
-
width: 40rem;
|
1293
|
+
max-width: 40rem;
|
1294
1294
|
}
|
1295
1295
|
|
1296
1296
|
:host([orientation="vertical"]){
|
1297
|
-
width: 20rem;
|
1297
|
+
max-width: 20rem;
|
1298
1298
|
flex-direction: column;
|
1299
1299
|
}
|
1300
1300
|
|
@@ -1337,39 +1337,48 @@
|
|
1337
1337
|
border-color: var(--mds-color-theme-outline-promotion-normal);
|
1338
1338
|
}
|
1339
1339
|
|
1340
|
-
:host::part(icon-button), :host::part(footer) {
|
1340
|
+
:host(:dir(ltr))::part(icon-button), :host(:dir(ltr))::part(footer) {
|
1341
1341
|
margin-left: auto;
|
1342
|
+
}
|
1343
|
+
|
1344
|
+
:host(:dir(rtl))::part(icon-button), :host(:dir(rtl))::part(footer) {
|
1345
|
+
margin-right: auto;
|
1346
|
+
}
|
1347
|
+
|
1348
|
+
:host::part(icon-button), :host::part(footer) {
|
1342
1349
|
display: flex;
|
1343
1350
|
gap: 0.5rem;
|
1344
1351
|
align-items: center;
|
1345
1352
|
justify-content: center;
|
1346
1353
|
}
|
1354
|
+
|
1347
1355
|
:host::part(footer){
|
1348
1356
|
gap: 1rem;
|
1349
1357
|
}
|
1358
|
+
|
1350
1359
|
::slotted([slot='footer-link']),
|
1351
1360
|
::slotted([slot='footer-button-primary']),
|
1352
1361
|
::slotted([slot='footer-button-secondary']){
|
1353
1362
|
margin-bottom: 0.5rem;
|
1354
1363
|
}
|
1355
1364
|
|
1356
|
-
`,Fn=[N,tm];var Ko=f.constructTagName("link"),Zo={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Xo={LARGE:1,MIDSIZE:.875,SMALL:.75},Bn={LINK_SIZE:Zo.LARGE};var Hn=f.constructTagName("card"),ha={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},rm={HORIZONTAL:"horizontal",VERTICAL:"vertical"},
|
1365
|
+
`,Fn=[N,tm];var Ko=f.constructTagName("link"),Zo={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Xo={LARGE:1,MIDSIZE:.875,SMALL:.75},Bn={LINK_SIZE:Zo.LARGE};var Hn=f.constructTagName("card"),ha={BORDER:"border",GHOST:"ghost",PROMOTIONAL:"promotional"},rm={HORIZONTAL:"horizontal",VERTICAL:"vertical"},q={VARIANT:ha.BORDER,ORIENTATION:rm.VERTICAL,TITLE_TYPE:E.HEADING_SMALL_BOLD,SUBTITLE_TYPE:E.BODY_MIDSIZE_MEDIUM,TAGNAME:C.SPAN,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem",LINK:Ko,BUTTON:It};var jo=i=>{class t extends i{constructor(){super(...arguments);this.cardTitle="";this.subtitle="";this.imageSrc="";this.imageAlt="";this.variant=q.VARIANT;this.orientation=q.ORIENTATION;this.titleTagName=q.TAGNAME;this.subtitleTagName=q.TAGNAME}renderImage(){return this.imageSrc?m`<img part="image" src="${this.imageSrc}" alt="${this.imageAlt}" />`:g}renderIcon(){return this.iconName?m`<mdc-icon
|
1357
1366
|
part="icon"
|
1358
|
-
size="${
|
1359
|
-
length-unit="${
|
1367
|
+
size="${q.ICON_SIZE}"
|
1368
|
+
length-unit="${q.ICON_LENGTH_UNIT}"
|
1360
1369
|
name="${this.iconName}"
|
1361
1370
|
></mdc-icon>`:g}renderTitle(){return m`<div part="title-container">
|
1362
|
-
<mdc-text part="title" type="${
|
1363
|
-
${this.subtitle?m`<mdc-text part="subtitle" type="${
|
1371
|
+
<mdc-text part="title" type="${q.TITLE_TYPE}" tagname="${this.titleTagName}">${this.cardTitle}</mdc-text>
|
1372
|
+
${this.subtitle?m`<mdc-text part="subtitle" type="${q.SUBTITLE_TYPE}" tagname="${this.subtitleTagName}"
|
1364
1373
|
>${this.subtitle}</mdc-text
|
1365
1374
|
>`:g}
|
1366
|
-
</div>`}}return n([l({type:String,attribute:"card-title"})],t.prototype,"cardTitle",2),n([l({type:String})],t.prototype,"subtitle",2),n([l({type:String,attribute:"image-src"})],t.prototype,"imageSrc",2),n([l({type:String,attribute:"image-alt"})],t.prototype,"imageAlt",2),n([l({type:String})],t.prototype,"variant",2),n([l({type:String,reflect:!0})],t.prototype,"orientation",2),n([l({type:String,attribute:"title-tag-name"})],t.prototype,"titleTagName",2),n([l({type:String,attribute:"subtitle-tag-name"})],t.prototype,"subtitleTagName",2),n([l({type:String,attribute:"icon-name"})],t.prototype,"iconName",2),t};var Qo=i=>{class t extends i{updateFooterButtonColors(r){let o=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];o==null||o.forEach(a=>{r===ha.PROMOTIONAL?a.setAttribute("color",Ct.PROMOTIONAL):a.setAttribute("color",Ct.DEFAULT)})}handleFooterSlot(r,o){var s,c,d;let a=[];r===
|
1367
|
-
<slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(
|
1375
|
+
</div>`}}return n([l({type:String,attribute:"card-title",reflect:!0})],t.prototype,"cardTitle",2),n([l({type:String,reflect:!0})],t.prototype,"subtitle",2),n([l({type:String,attribute:"image-src",reflect:!0})],t.prototype,"imageSrc",2),n([l({type:String,attribute:"image-alt",reflect:!0})],t.prototype,"imageAlt",2),n([l({type:String,reflect:!0})],t.prototype,"variant",2),n([l({type:String,reflect:!0})],t.prototype,"orientation",2),n([l({type:String,attribute:"title-tag-name",reflect:!0})],t.prototype,"titleTagName",2),n([l({type:String,attribute:"subtitle-tag-name",reflect:!0})],t.prototype,"subtitleTagName",2),n([l({type:String,attribute:"icon-name",reflect:!0})],t.prototype,"iconName",2),t};var Qo=i=>{class t extends i{updateFooterButtonColors(r){let o=[...this.footerButtonPrimary||[],...this.footerButtonSecondary||[]];o==null||o.forEach(a=>{r===ha.PROMOTIONAL?a.setAttribute("color",Ct.PROMOTIONAL):a.setAttribute("color",Ct.DEFAULT)})}handleFooterSlot(r,o){var s,c,d;let a=[];r===q.LINK&&((s=this.footerLink)!=null&&s.length)?a=this.footerLink:r===q.BUTTON&&o===X.PRIMARY&&((c=this.footerButtonPrimary)!=null&&c.length)?a=this.footerButtonPrimary:r===q.BUTTON&&o===X.SECONDARY&&((d=this.footerButtonSecondary)!=null&&d.length)&&(a=this.footerButtonSecondary);for(let p=1;p<a.length;p+=1)a[p].remove();a.forEach(p=>{p.matches(r)||p.remove(),o&&p.setAttribute("variant",o)})}renderFooter(){return m`<div part="footer">
|
1376
|
+
<slot name="footer-link" @slotchange=${()=>this.handleFooterSlot(q.LINK)}></slot>
|
1368
1377
|
<slot name="footer-button-secondary"
|
1369
|
-
@slotchange=${()=>this.handleFooterSlot(
|
1378
|
+
@slotchange=${()=>this.handleFooterSlot(q.BUTTON,X.SECONDARY)}></slot>
|
1370
1379
|
<slot name="footer-button-primary"
|
1371
|
-
@slotchange=${()=>this.handleFooterSlot(
|
1372
|
-
</div>`}}return n([F({slot:"footer-link"})],t.prototype,"footerLink",2),n([F({slot:"footer-button-primary"})],t.prototype,"footerButtonPrimary",2),n([F({slot:"footer-button-secondary"})],t.prototype,"footerButtonSecondary",2),t};var eo=class extends jo(Qo(v)){constructor(){super(...arguments);this.handleIconButtons=()=>{var e;if((e=this.iconButtons)==null||e.forEach(r=>{!r.matches(
|
1380
|
+
@slotchange=${()=>this.handleFooterSlot(q.BUTTON,X.PRIMARY)}></slot>
|
1381
|
+
</div>`}}return n([F({slot:"footer-link"})],t.prototype,"footerLink",2),n([F({slot:"footer-button-primary"})],t.prototype,"footerButtonPrimary",2),n([F({slot:"footer-button-secondary"})],t.prototype,"footerButtonSecondary",2),t};var eo=class extends jo(Qo(v)){constructor(){super(...arguments);this.handleIconButtons=()=>{var e;if((e=this.iconButtons)==null||e.forEach(r=>{!r.matches(q.BUTTON)&&r.getAttribute("data-btn-type")!=="icon"?r.remove():(r.setAttribute("variant",X.TERTIARY),r.setAttribute("size","32"))}),this.iconButtons&&this.iconButtons.length>3)for(let r=3;r<this.iconButtons.length;r+=1)this.iconButtons[r].remove()}}update(e){super.update(e),e.has("variant")&&this.updateFooterButtonColors(this.variant)}renderHeader(){return this.cardTitle?m`<div part="header">
|
1373
1382
|
${this.renderIcon()}
|
1374
1383
|
${this.renderTitle()}
|
1375
1384
|
<div part="icon-button"><slot name="icon-button" @slotchange=${this.handleIconButtons}></slot></div>
|
@@ -1421,10 +1430,14 @@
|
|
1421
1430
|
user-select: none;
|
1422
1431
|
}
|
1423
1432
|
|
1424
|
-
:host::part(check){
|
1433
|
+
:host(:dir(ltr))::part(check){
|
1425
1434
|
margin-left: auto;
|
1426
1435
|
}
|
1427
1436
|
|
1437
|
+
:host(:dir(rtl))::part(check){
|
1438
|
+
margin-right: auto;
|
1439
|
+
}
|
1440
|
+
|
1428
1441
|
:host(:hover) {
|
1429
1442
|
background-color: var(--mds-color-theme-background-primary-hover);
|
1430
1443
|
}
|
@@ -1468,7 +1481,7 @@
|
|
1468
1481
|
:host([disabled])::part(check-icon){
|
1469
1482
|
color: var(--mds-color-theme-text-primary-disabled);
|
1470
1483
|
}
|
1471
|
-
`,Wn=[sm,..._()];var qn=f.constructTagName("cardcheckbox"),fa={DEFAULT:"check-circle-bold",CHECKED:"check-circle-filled"},ei={CHECK:"check",CHECKBOX:"checkbox"},ti={SELECTION_TYPE:ei.CHECK,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem"};var fr=class extends P(Re(Ae)){constructor(){super();this.checked=!1;this.selectionType=ti.SELECTION_TYPE;this.addEventListener("click",this.toggleChecked),this.addEventListener("keydown",this.toggleOnEnter),this.addEventListener("keyup",this.toggleOnSpace)}connectedCallback(){super.connectedCallback(),this.role=
|
1484
|
+
`,Wn=[sm,..._()];var qn=f.constructTagName("cardcheckbox"),fa={DEFAULT:"check-circle-bold",CHECKED:"check-circle-filled"},ei={CHECK:"check",CHECKBOX:"checkbox"},ti={SELECTION_TYPE:ei.CHECK,ICON_SIZE:1.5,ICON_LENGTH_UNIT:"rem"};var B={BUTTON:"button",CHECKBOX:"checkbox",GROUP:"group",LIST:"list",LISTITEM:"listitem",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",RADIO:"radio",RADIOGROUP:"radiogroup",TOOLTIP:"tooltip"};var fr=class extends P(Re(Ae)){constructor(){super();this.checked=!1;this.selectionType=ti.SELECTION_TYPE;this.addEventListener("click",this.toggleChecked),this.addEventListener("keydown",this.toggleOnEnter),this.addEventListener("keyup",this.toggleOnSpace)}connectedCallback(){super.connectedCallback(),this.role=B.CHECKBOX}update(e){super.update(e),e.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),e.has("disabled")&&(this.setAttribute("aria-disabled",`${this.disabled}`),this.tabIndex=this.disabled?-1:0)}toggleChecked(){this.disabled||(this.checked=!this.checked)}toggleOnEnter(e){e.key==="Enter"&&this.toggleChecked()}toggleOnSpace(e){e.key===" "&&this.toggleChecked()}renderSelection(){let e=this.checked?fa.CHECKED:fa.DEFAULT;switch(this.selectionType){case ei.CHECK:return m`<mdc-icon part="check check-icon"
|
1472
1485
|
size="${ti.ICON_SIZE}"
|
1473
1486
|
length-unit="${ti.ICON_LENGTH_UNIT}"
|
1474
1487
|
name="${e}"></mdc-icon>`;case ei.CHECKBOX:return m`<mdc-staticcheckbox part="check"
|
@@ -1485,7 +1498,7 @@
|
|
1485
1498
|
<slot name="body"></slot>
|
1486
1499
|
<slot name="after-body"></slot>
|
1487
1500
|
</div>
|
1488
|
-
`}};fr.styles=[...Ae.styles,...Wn],n([l({type:Boolean,reflect:!0})],fr.prototype,"checked",2),n([l({type:String,attribute:"selection-type"})],fr.prototype,"selectionType",2);var ba=fr;var nm=[u`
|
1501
|
+
`}};fr.styles=[...Ae.styles,...Wn],n([l({type:Boolean,reflect:!0})],fr.prototype,"checked",2),n([l({type:String,attribute:"selection-type",reflect:!0})],fr.prototype,"selectionType",2);var ba=fr;var nm=[u`
|
1489
1502
|
:host{
|
1490
1503
|
margin: 0.125rem 0;
|
1491
1504
|
border-radius: 0.125rem;
|
@@ -1556,10 +1569,14 @@
|
|
1556
1569
|
user-select: none;
|
1557
1570
|
}
|
1558
1571
|
|
1559
|
-
:host::part(check){
|
1572
|
+
:host(:dir(ltr))::part(check){
|
1560
1573
|
margin-left: auto;
|
1561
1574
|
}
|
1562
1575
|
|
1576
|
+
:host(:dir(rtl))::part(check){
|
1577
|
+
margin-right: auto;
|
1578
|
+
}
|
1579
|
+
|
1563
1580
|
:host(:hover) {
|
1564
1581
|
background-color: var(--mds-color-theme-background-primary-hover);
|
1565
1582
|
}
|
@@ -1599,7 +1616,7 @@
|
|
1599
1616
|
:host([disabled])::part(image){
|
1600
1617
|
opacity: 0.5;
|
1601
1618
|
}
|
1602
|
-
`,jn=[dm,..._()];var gr=class extends P(Re(Ae)){constructor(){super();this.checked=!1;this.name="";this.addEventListener("click",this.toggleChecked),this.addEventListener("keydown",this.toggleOnEnter),this.addEventListener("keyup",this.toggleOnSpace)}connectedCallback(){super.connectedCallback(),this.role=
|
1619
|
+
`,jn=[dm,..._()];var gr=class extends P(Re(Ae)){constructor(){super();this.checked=!1;this.name="";this.addEventListener("click",this.toggleChecked),this.addEventListener("keydown",this.toggleOnEnter),this.addEventListener("keyup",this.toggleOnSpace)}connectedCallback(){super.connectedCallback(),this.role=B.RADIO}getAllCardsWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-cardradio[name="${this.name}"]`))}toggleChecked(){if(this.disabled)return;this.getAllCardsWithinSameGroup().forEach(r=>{r.checked=!1}),this.checked=!0}setDisabled(e){this.setAttribute("aria-disabled",`${e}`),this.tabIndex=e?-1:0}update(e){super.update(e),e.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),e.has("disabled")&&this.setDisabled(this.disabled)}updateCardRadio(e,r){e[r].focus(),e[r].toggleChecked()}toggleOnEnter(e){if(this.disabled)return;let o=this.getAllCardsWithinSameGroup().filter(s=>!s.disabled),a=o.indexOf(this);if(["ArrowDown","ArrowRight"].includes(e.key)){let s=(a+1)%o.length;this.updateCardRadio(o,s)}else if(["ArrowUp","ArrowLeft"].includes(e.key)){let s=(a-1+o.length)%o.length;this.updateCardRadio(o,s)}e.key==="Enter"&&this.toggleChecked()}toggleOnSpace(e){e.key===" "&&this.toggleChecked()}renderHeader(){return this.cardTitle?m`<div part="header">
|
1603
1620
|
${this.renderIcon()}
|
1604
1621
|
${this.renderTitle()}
|
1605
1622
|
<mdc-staticradio part="check"
|
@@ -1698,7 +1715,7 @@
|
|
1698
1715
|
}
|
1699
1716
|
`],Qn=mm;var vr=class extends P(v){constructor(){super(...arguments);this.checked=!1;this.readonly=!1}render(){return m`
|
1700
1717
|
<slot></slot>
|
1701
|
-
<span part="radio-icon" class="icon"></span>`}};vr.styles=[...v.styles,...Qn],n([l({type:Boolean,reflect:!0})],vr.prototype,"checked",2),n([l({type:Boolean,reflect:!0})],vr.prototype,"readonly",2);var ya=vr;var Jn=f.constructTagName("staticradio");ya.register(Jn);var pm=ya;va.register(oi);var hm=va;var V=i=>{class t extends i{constructor(){super(...arguments);this.dataAriaLabel=null}}return n([l({type:String,reflect:!0,attribute:"data-aria-label"})],t.prototype,"dataAriaLabel",2),t};var
|
1718
|
+
<span part="radio-icon" class="icon"></span>`}};vr.styles=[...v.styles,...Qn],n([l({type:Boolean,reflect:!0})],vr.prototype,"checked",2),n([l({type:Boolean,reflect:!0})],vr.prototype,"readonly",2);var ya=vr;var Jn=f.constructTagName("staticradio");ya.register(Jn);var pm=ya;va.register(oi);var hm=va;var V=i=>{class t extends i{constructor(){super(...arguments);this.dataAriaLabel=null}}return n([l({type:String,reflect:!0,attribute:"data-aria-label"})],t.prototype,"dataAriaLabel",2),t};var j=[];for(let i=0;i<256;++i)j.push((i+256).toString(16).slice(1));function el(i,t=0){return(j[i[t+0]]+j[i[t+1]]+j[i[t+2]]+j[i[t+3]]+"-"+j[i[t+4]]+j[i[t+5]]+"-"+j[i[t+6]]+j[i[t+7]]+"-"+j[i[t+8]]+j[i[t+9]]+"-"+j[i[t+10]]+j[i[t+11]]+j[i[t+12]]+j[i[t+13]]+j[i[t+14]]+j[i[t+15]]).toLowerCase()}var xa,um=new Uint8Array(16);function Ea(){if(!xa){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");xa=crypto.getRandomValues.bind(crypto)}return xa(um)}var fm=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ta={randomUUID:fm};function bm(i,t,e){var o,a,s;if(Ta.randomUUID&&!t&&!i)return Ta.randomUUID();i=i||{};let r=(s=(a=i.random)!=null?a:(o=i.rng)==null?void 0:o.call(i))!=null?s:Ea();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 c=0;c<16;++c)t[e+c]=r[c];return t}return el(r)}var qe=bm;var ce=i=>{class t extends i{constructor(){super(...arguments);this.name="";this.value="";this.internals=this.attachInternals()}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}connectedCallback(){super.connectedCallback(),this.id=`mdc-input-${qe()}`}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,n([l({reflect:!0,type:String})],t.prototype,"name",2),n([l({reflect:!0,type:String})],t.prototype,"value",2),n([l({reflect:!0,type:String,attribute:"validation-message"})],t.prototype,"validationMessage",2),n([Be("input")],t.prototype,"inputElement",2),t};var tl=f.constructTagName("formfieldwrapper"),K={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},U={VALIDATION:K.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id"},wt={TAGNAME:C.SPAN,TYPE:E.BODY_MIDSIZE_REGULAR,HEADER_TYPE:E.BODY_MIDSIZE_BOLD};var gm=[N,u`
|
1702
1719
|
:host {
|
1703
1720
|
flex-direction: column;
|
1704
1721
|
align-items: flex-start;
|
@@ -1751,7 +1768,7 @@
|
|
1751
1768
|
:host([help-text-type='priority']) .mdc-help-text {
|
1752
1769
|
color: var(--mds-color-theme-text-accent-normal);
|
1753
1770
|
}
|
1754
|
-
`],rl=gm;var ol=i=>({[
|
1771
|
+
`],rl=gm;var ol=i=>({[K.ERROR]:"error-legacy-badge-filled",[K.WARNING]:"warning-badge-filled",[K.SUCCESS]:"check-circle-badge-filled",[K.PRIORITY]:"priority-badge-filled",[K.DEFAULT]:""})[i]||"";var Ke=class extends P(v){constructor(){super(...arguments);this.id="";this.helpTextType=U.VALIDATION;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?m`<label for="${this.id}" id="${U.HEADING_ID}" class="mdc-label" part="label">${this.label}</label>`:m` <mdc-text
|
1755
1772
|
id="${U.HEADING_ID}"
|
1756
1773
|
tagname="${wt.TAGNAME}"
|
1757
1774
|
type="${wt.HEADER_TYPE}"
|
@@ -1777,7 +1794,7 @@
|
|
1777
1794
|
</div>`:g}renderHelperText(){return this.helpText?m`<div class="mdc-help-text" part="mdc-help-text">
|
1778
1795
|
<slot name="help-icon">${this.renderHelpTextIcon()}</slot>
|
1779
1796
|
<slot name="help-text">${this.renderHelpText()}</slot>
|
1780
|
-
</div>`:g}};Ke.styles=[...v.styles,...rl],n([l({reflect:!0,type:String})],Ke.prototype,"label",2),n([l({type:String,reflect:!0,attribute:"required-label"})],Ke.prototype,"requiredLabel",2),n([l({type:String})],Ke.prototype,"id",2),n([l({reflect:!0,attribute:"help-text-type"})],Ke.prototype,"helpTextType",2),n([l({type:String,reflect:!0,attribute:"help-text"})],Ke.prototype,"helpText",2);var
|
1797
|
+
</div>`:g}};Ke.styles=[...v.styles,...rl],n([l({reflect:!0,type:String})],Ke.prototype,"label",2),n([l({type:String,reflect:!0,attribute:"required-label"})],Ke.prototype,"requiredLabel",2),n([l({type:String})],Ke.prototype,"id",2),n([l({reflect:!0,attribute:"help-text-type"})],Ke.prototype,"helpTextType",2),n([l({type:String,reflect:!0,attribute:"help-text"})],Ke.prototype,"helpText",2);var oe=Ke;var vm=[u`
|
1781
1798
|
:host {
|
1782
1799
|
--mdc-checkbox-background-color-hover: var(--mds-color-theme-control-inactive-hover);
|
1783
1800
|
--mdc-checkbox-pressed-icon-color: var(--mds-color-theme-control-inactive-pressed);
|
@@ -1844,7 +1861,7 @@
|
|
1844
1861
|
}
|
1845
1862
|
|
1846
1863
|
|
1847
|
-
`,..._(!0)],il=vm;var Nt=class extends ce(V(
|
1864
|
+
`,..._(!0)],il=vm;var Nt=class extends ce(V(oe)){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?m`<div class="text-container">
|
1848
1865
|
${this.renderLabel()}
|
1849
1866
|
${this.renderHelperText()}
|
1850
1867
|
</div>`:g}connectedCallback(){super.connectedCallback(),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 e;return m`
|
@@ -1873,7 +1890,7 @@
|
|
1873
1890
|
/>
|
1874
1891
|
</mdc-staticcheckbox>
|
1875
1892
|
${this.renderLabelAndHelperText()}
|
1876
|
-
`}};Nt.styles=[...
|
1893
|
+
`}};Nt.styles=[...oe.styles,...il],n([l({type:Boolean,reflect:!0})],Nt.prototype,"checked",2),n([l({type:Boolean,reflect:!0})],Nt.prototype,"indeterminate",2),n([l({type:Boolean,reflect:!0})],Nt.prototype,"autofocus",2);var Aa=Nt;Aa.register(Zn);var ym=Aa;var xm=u`
|
1877
1894
|
:host {
|
1878
1895
|
height: 1.5rem;
|
1879
1896
|
gap: 0.25rem;
|
@@ -2018,7 +2035,7 @@
|
|
2018
2035
|
`:g}render(){return m`
|
2019
2036
|
${this.renderIcon()}
|
2020
2037
|
<mdc-text type="${yr.TEXT_TYPE}" tagname="${yr.TAG_NAME}">${this.label}</mdc-text>
|
2021
|
-
`}};xr.styles=[...v.styles,...al],n([l({type:String,reflect:!0})],xr.prototype,"color",2),n([l({type:String})],xr.prototype,"label",2);var Er=xr;Er.register(sl);var Tm=Er;var De=Math.min,re=Math.max,ro=Math.round,oo=Math.floor,Se=i=>({x:i,y:i}),Am={left:"right",right:"left",bottom:"top",top:"bottom"},Sm={start:"end",end:"start"};function ai(i,t,e){return re(i,De(t,e))}function _t(i,t){return typeof i=="function"?i(t):i}function Ze(i){return i.split("-")[0]}function Lt(i){return i.split("-")[1]}function Sa(i){return i==="x"?"y":"x"}function si(i){return i==="y"?"height":"width"}function pt(i){return["top","bottom"].includes(Ze(i))?"y":"x"}function ni(i){return Sa(pt(i))}function nl(i,t,e){e===void 0&&(e=!1);let r=Lt(i),o=ni(i),a=si(o),s=o==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=to(s)),[s,to(s)]}function ll(i){let t=to(i);return[ii(i),t,ii(t)]}function ii(i){return i.replace(/start|end/g,t=>Sm[t])}function Im(i,t,e){let r=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(i){case"top":case"bottom":return e?t?o:r:t?r:o;case"left":case"right":return t?a:s;default:return[]}}function cl(i,t,e,r){let o=Lt(i),a=Im(Ze(i),e==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(ii)))),a}function to(i){return i.replace(/left|right|bottom|top/g,t=>Am[t])}function Cm(i){return{top:0,right:0,bottom:0,left:0,...i}}function Ia(i){return typeof i!="number"?Cm(i):{top:i,right:i,bottom:i,left:i}}function Rt(i){let{x:t,y:e,width:r,height:o}=i;return{width:r,height:o,top:e,left:t,right:t+r,bottom:e+o,x:t,y:e}}function dl(i,t,e){let{reference:r,floating:o}=i,a=pt(t),s=ni(t),c=si(s),d=Ze(t),p=a==="y",h=r.x+r.width/2-o.width/2,b=r.y+r.height/2-o.height/2,x=r[c]/2-o[c]/2,y;switch(d){case"top":y={x:h,y:r.y-o.height};break;case"bottom":y={x:h,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:b};break;case"left":y={x:r.x-o.width,y:b};break;default:y={x:r.x,y:r.y}}switch(Lt(t)){case"start":y[s]-=x*(e&&p?-1:1);break;case"end":y[s]+=x*(e&&p?-1:1);break}return y}var ml=async(i,t,e)=>{let{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=e,c=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t)),p=await s.getElementRects({reference:i,floating:t,strategy:o}),{x:h,y:b}=dl(p,r,d),x=r,y={},T=0;for(let S=0;S<c.length;S++){let{name:k,fn:I}=c[S],{x:w,y:O,data:G,reset:z}=await I({x:h,y:b,initialPlacement:r,placement:x,strategy:o,middlewareData:y,rects:p,platform:s,elements:{reference:i,floating:t}});h=w!=null?w:h,b=O!=null?O:b,y={...y,[k]:{...y[k],...G}},z&&T<=50&&(T++,typeof z=="object"&&(z.placement&&(x=z.placement),z.rects&&(p=z.rects===!0?await s.getElementRects({reference:i,floating:t,strategy:o}):z.rects),{x:h,y:b}=dl(p,x,d)),S=-1)}return{x:h,y:b,placement:x,strategy:o,middlewareData:y}};async function li(i,t){var e;t===void 0&&(t={});let{x:r,y:o,platform:a,rects:s,elements:c,strategy:d}=i,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:b="floating",altBoundary:x=!1,padding:y=0}=_t(t,i),T=Ia(y),k=c[x?b==="floating"?"reference":"floating":b],I=Rt(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(k)))==null||e?k:k.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:p,rootBoundary:h,strategy:d})),w=b==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,O=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),G=await(a.isElement==null?void 0:a.isElement(O))?await(a.getScale==null?void 0:a.getScale(O))||{x:1,y:1}:{x:1,y:1},z=Rt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:O,strategy:d}):w);return{top:(I.top-z.top+T.top)/G.y,bottom:(z.bottom-I.bottom+T.bottom)/G.y,left:(I.left-z.left+T.left)/G.x,right:(z.right-I.right+T.right)/G.x}}var pl=i=>({name:"arrow",options:i,async fn(t){let{x:e,y:r,placement:o,rects:a,platform:s,elements:c,middlewareData:d}=t,{element:p,padding:h=0}=_t(i,t)||{};if(p==null)return{};let b=Ia(h),x={x:e,y:r},y=ni(o),T=si(y),S=await s.getDimensions(p),k=y==="y",I=k?"top":"left",w=k?"bottom":"right",O=k?"clientHeight":"clientWidth",G=a.reference[T]+a.reference[y]-x[y]-a.floating[T],z=x[y]-a.reference[y],be=await(s.getOffsetParent==null?void 0:s.getOffsetParent(p)),xe=be?be[O]:0;(!xe||!await(s.isElement==null?void 0:s.isElement(be)))&&(xe=c.floating[O]||a.floating[T]);let $e=G/2-z/2,Ne=xe/2-S[T]/2-1,Ee=De(b[I],Ne),rt=De(b[w],Ne),_e=Ee,ot=xe-S[T]-rt,J=xe/2-S[T]/2+$e,Jt=ai(_e,J,ot),ze=!d.arrow&&Lt(o)!=null&&J!==Jt&&a.reference[T]/2-(J<_e?Ee:rt)-S[T]/2<0,Le=ze?J<_e?J-_e:J-ot:0;return{[y]:x[y]+Le,data:{[y]:Jt,centerOffset:J-Jt-Le,...ze&&{alignmentOffset:Le}},reset:ze}}});var hl=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(t){var e,r;let{placement:o,middlewareData:a,rects:s,initialPlacement:c,platform:d,elements:p}=t,{mainAxis:h=!0,crossAxis:b=!0,fallbackPlacements:x,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:S=!0,...k}=_t(i,t);if((e=a.arrow)!=null&&e.alignmentOffset)return{};let I=Ze(o),w=pt(c),O=Ze(c)===c,G=await(d.isRTL==null?void 0:d.isRTL(p.floating)),z=x||(O||!S?[to(c)]:ll(c)),be=T!=="none";!x&&be&&z.push(...cl(c,S,T,G));let xe=[c,...z],$e=await li(t,k),Ne=[],Ee=((r=a.flip)==null?void 0:r.overflows)||[];if(h&&Ne.push($e[I]),b){let J=nl(o,s,G);Ne.push($e[J[0]],$e[J[1]])}if(Ee=[...Ee,{placement:o,overflows:Ne}],!Ne.every(J=>J<=0)){var rt,_e;let J=(((rt=a.flip)==null?void 0:rt.index)||0)+1,Jt=xe[J];if(Jt)return{data:{index:J,overflows:Ee},reset:{placement:Jt}};let ze=(_e=Ee.filter(Le=>Le.overflows[0]<=0).sort((Le,it)=>Le.overflows[1]-it.overflows[1])[0])==null?void 0:_e.placement;if(!ze)switch(y){case"bestFit":{var ot;let Le=(ot=Ee.filter(it=>{if(be){let at=pt(it.placement);return at===w||at==="y"}return!0}).map(it=>[it.placement,it.overflows.filter(at=>at>0).reduce((at,cd)=>at+cd,0)]).sort((it,at)=>it[1]-at[1])[0])==null?void 0:ot[0];Le&&(ze=Le);break}case"initialPlacement":ze=c;break}if(o!==ze)return{reset:{placement:ze}}}return{}}}};async function km(i,t){let{placement:e,platform:r,elements:o}=i,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Ze(e),c=Lt(e),d=pt(e)==="y",p=["left","top"].includes(s)?-1:1,h=a&&d?-1:1,b=_t(t,i),{mainAxis:x,crossAxis:y,alignmentAxis:T}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return c&&typeof T=="number"&&(y=c==="end"?T*-1:T),d?{x:y*h,y:x*p}:{x:x*p,y:y*h}}var ul=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(t){var e,r;let{x:o,y:a,placement:s,middlewareData:c}=t,d=await km(t,i);return s===((e=c.offset)==null?void 0:e.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:a+d.y,data:{...d,placement:s}}}}},fl=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(t){let{x:e,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:k=>{let{x:I,y:w}=k;return{x:I,y:w}}},...d}=_t(i,t),p={x:e,y:r},h=await li(t,d),b=pt(Ze(o)),x=Sa(b),y=p[x],T=p[b];if(a){let k=x==="y"?"top":"left",I=x==="y"?"bottom":"right",w=y+h[k],O=y-h[I];y=ai(w,y,O)}if(s){let k=b==="y"?"top":"left",I=b==="y"?"bottom":"right",w=T+h[k],O=T-h[I];T=ai(w,T,O)}let S=c.fn({...t,[x]:y,[b]:T});return{...S,data:{x:S.x-e,y:S.y-r,enabled:{[x]:a,[b]:s}}}}}};var bl=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(t){var e,r;let{placement:o,rects:a,platform:s,elements:c}=t,{apply:d=()=>{},...p}=_t(i,t),h=await li(t,p),b=Ze(o),x=Lt(o),y=pt(o)==="y",{width:T,height:S}=a.floating,k,I;b==="top"||b==="bottom"?(k=b,I=x===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(I=b,k=x==="end"?"top":"bottom");let w=S-h.top-h.bottom,O=T-h.left-h.right,G=De(S-h[k],w),z=De(T-h[I],O),be=!t.middlewareData.shift,xe=G,$e=z;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&($e=O),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(xe=w),be&&!x){let Ee=re(h.left,0),rt=re(h.right,0),_e=re(h.top,0),ot=re(h.bottom,0);y?$e=T-2*(Ee!==0||rt!==0?Ee+rt:re(h.left,h.right)):xe=S-2*(_e!==0||ot!==0?_e+ot:re(h.top,h.bottom))}await d({...t,availableWidth:$e,availableHeight:xe});let Ne=await s.getDimensions(c.floating);return T!==Ne.width||S!==Ne.height?{reset:{rects:!0}}:{}}}};function ci(){return typeof window<"u"}function Ot(i){return vl(i)?(i.nodeName||"").toLowerCase():"#document"}function de(i){var t;return(i==null||(t=i.ownerDocument)==null?void 0:t.defaultView)||window}function Ie(i){var t;return(t=(vl(i)?i.ownerDocument:i.document)||window.document)==null?void 0:t.documentElement}function vl(i){return ci()?i instanceof Node||i instanceof de(i).Node:!1}function ge(i){return ci()?i instanceof Element||i instanceof de(i).Element:!1}function Ce(i){return ci()?i instanceof HTMLElement||i instanceof de(i).HTMLElement:!1}function gl(i){return!ci()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof de(i).ShadowRoot}function Ar(i){let{overflow:t,overflowX:e,overflowY:r,display:o}=ve(i);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(o)}function yl(i){return["table","td","th"].includes(Ot(i))}function io(i){return[":popover-open",":modal"].some(t=>{try{return i.matches(t)}catch{return!1}})}function di(i){let t=mi(),e=ge(i)?ve(i):i;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 xl(i){let t=Xe(i);for(;Ce(t)&&!Mt(t);){if(di(t))return t;if(io(t))return null;t=Xe(t)}return null}function mi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Mt(i){return["html","body","#document"].includes(Ot(i))}function ve(i){return de(i).getComputedStyle(i)}function ao(i){return ge(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function Xe(i){if(Ot(i)==="html")return i;let t=i.assignedSlot||i.parentNode||gl(i)&&i.host||Ie(i);return gl(t)?t.host:t}function El(i){let t=Xe(i);return Mt(t)?i.ownerDocument?i.ownerDocument.body:i.body:Ce(t)&&Ar(t)?t:El(t)}function Tr(i,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let o=El(i),a=o===((r=i.ownerDocument)==null?void 0:r.body),s=de(o);if(a){let c=pi(s);return t.concat(s,s.visualViewport||[],Ar(o)?o:[],c&&e?Tr(c):[])}return t.concat(o,Tr(o,[],e))}function pi(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function Sl(i){let t=ve(i),e=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=Ce(i),a=o?i.offsetWidth:e,s=o?i.offsetHeight:r,c=ro(e)!==a||ro(r)!==s;return c&&(e=a,r=s),{width:e,height:r,$:c}}function ka(i){return ge(i)?i:i.contextElement}function Sr(i){let t=ka(i);if(!Ce(t))return Se(1);let e=t.getBoundingClientRect(),{width:r,height:o,$:a}=Sl(t),s=(a?ro(e.width):e.width)/r,c=(a?ro(e.height):e.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var wm=Se(0);function Il(i){let t=de(i);return!mi()||!t.visualViewport?wm:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Nm(i,t,e){return t===void 0&&(t=!1),!e||t&&e!==de(i)?!1:t}function Dt(i,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let o=i.getBoundingClientRect(),a=ka(i),s=Se(1);t&&(r?ge(r)&&(s=Sr(r)):s=Sr(i));let c=Nm(a,e,r)?Il(a):Se(0),d=(o.left+c.x)/s.x,p=(o.top+c.y)/s.y,h=o.width/s.x,b=o.height/s.y;if(a){let x=de(a),y=r&&ge(r)?de(r):r,T=x,S=pi(T);for(;S&&r&&y!==T;){let k=Sr(S),I=S.getBoundingClientRect(),w=ve(S),O=I.left+(S.clientLeft+parseFloat(w.paddingLeft))*k.x,G=I.top+(S.clientTop+parseFloat(w.paddingTop))*k.y;d*=k.x,p*=k.y,h*=k.x,b*=k.y,d+=O,p+=G,T=de(S),S=pi(T)}}return Rt({width:h,height:b,x:d,y:p})}function wa(i,t){let e=ao(i).scrollLeft;return t?t.left+e:Dt(Ie(i)).left+e}function Cl(i,t,e){e===void 0&&(e=!1);let r=i.getBoundingClientRect(),o=r.left+t.scrollLeft-(e?0:wa(i,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function _m(i){let{elements:t,rect:e,offsetParent:r,strategy:o}=i,a=o==="fixed",s=Ie(r),c=t?io(t.floating):!1;if(r===s||c&&a)return e;let d={scrollLeft:0,scrollTop:0},p=Se(1),h=Se(0),b=Ce(r);if((b||!b&&!a)&&((Ot(r)!=="body"||Ar(s))&&(d=ao(r)),Ce(r))){let y=Dt(r);p=Sr(r),h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}let x=s&&!b&&!a?Cl(s,d,!0):Se(0);return{width:e.width*p.x,height:e.height*p.y,x:e.x*p.x-d.scrollLeft*p.x+h.x+x.x,y:e.y*p.y-d.scrollTop*p.y+h.y+x.y}}function Lm(i){return Array.from(i.getClientRects())}function Rm(i){let t=Ie(i),e=ao(i),r=i.ownerDocument.body,o=re(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=re(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+wa(i),c=-e.scrollTop;return ve(r).direction==="rtl"&&(s+=re(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:c}}function Om(i,t){let e=de(i),r=Ie(i),o=e.visualViewport,a=r.clientWidth,s=r.clientHeight,c=0,d=0;if(o){a=o.width,s=o.height;let p=mi();(!p||p&&t==="fixed")&&(c=o.offsetLeft,d=o.offsetTop)}return{width:a,height:s,x:c,y:d}}function Mm(i,t){let e=Dt(i,!0,t==="fixed"),r=e.top+i.clientTop,o=e.left+i.clientLeft,a=Ce(i)?Sr(i):Se(1),s=i.clientWidth*a.x,c=i.clientHeight*a.y,d=o*a.x,p=r*a.y;return{width:s,height:c,x:d,y:p}}function Tl(i,t,e){let r;if(t==="viewport")r=Om(i,e);else if(t==="document")r=Rm(Ie(i));else if(ge(t))r=Mm(t,e);else{let o=Il(i);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Rt(r)}function kl(i,t){let e=Xe(i);return e===t||!ge(e)||Mt(e)?!1:ve(e).position==="fixed"||kl(e,t)}function Dm(i,t){let e=t.get(i);if(e)return e;let r=Tr(i,[],!1).filter(c=>ge(c)&&Ot(c)!=="body"),o=null,a=ve(i).position==="fixed",s=a?Xe(i):i;for(;ge(s)&&!Mt(s);){let c=ve(s),d=di(s);!d&&c.position==="fixed"&&(o=null),(a?!d&&!o:!d&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ar(s)&&!d&&kl(i,s))?r=r.filter(h=>h!==s):o=c,s=Xe(s)}return t.set(i,r),r}function $m(i){let{element:t,boundary:e,rootBoundary:r,strategy:o}=i,s=[...e==="clippingAncestors"?io(t)?[]:Dm(t,this._c):[].concat(e),r],c=s[0],d=s.reduce((p,h)=>{let b=Tl(t,h,o);return p.top=re(b.top,p.top),p.right=De(b.right,p.right),p.bottom=De(b.bottom,p.bottom),p.left=re(b.left,p.left),p},Tl(t,c,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function zm(i){let{width:t,height:e}=Sl(i);return{width:t,height:e}}function Pm(i,t,e){let r=Ce(t),o=Ie(t),a=e==="fixed",s=Dt(i,!0,a,t),c={scrollLeft:0,scrollTop:0},d=Se(0);if(r||!r&&!a)if((Ot(t)!=="body"||Ar(o))&&(c=ao(t)),r){let x=Dt(t,!0,a,t);d.x=x.x+t.clientLeft,d.y=x.y+t.clientTop}else o&&(d.x=wa(o));let p=o&&!r&&!a?Cl(o,c):Se(0),h=s.left+c.scrollLeft-d.x-p.x,b=s.top+c.scrollTop-d.y-p.y;return{x:h,y:b,width:s.width,height:s.height}}function Ca(i){return ve(i).position==="static"}function Al(i,t){if(!Ce(i)||ve(i).position==="fixed")return null;if(t)return t(i);let e=i.offsetParent;return Ie(i)===e&&(e=e.ownerDocument.body),e}function wl(i,t){let e=de(i);if(io(i))return e;if(!Ce(i)){let o=Xe(i);for(;o&&!Mt(o);){if(ge(o)&&!Ca(o))return o;o=Xe(o)}return e}let r=Al(i,t);for(;r&&yl(r)&&Ca(r);)r=Al(r,t);return r&&Mt(r)&&Ca(r)&&!di(r)?e:r||xl(i)||e}var Um=async function(i){let t=this.getOffsetParent||wl,e=this.getDimensions,r=await e(i.floating);return{reference:Pm(i.reference,await t(i.floating),i.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Vm(i){return ve(i).direction==="rtl"}var Fm={convertOffsetParentRelativeRectToViewportRelativeRect:_m,getDocumentElement:Ie,getClippingRect:$m,getOffsetParent:wl,getElementRects:Um,getClientRects:Lm,getDimensions:zm,getScale:Sr,isElement:ge,isRTL:Vm};function Bm(i,t){let e=null,r,o=Ie(i);function a(){var c;clearTimeout(r),(c=e)==null||c.disconnect(),e=null}function s(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),a();let{left:p,top:h,width:b,height:x}=i.getBoundingClientRect();if(c||t(),!b||!x)return;let y=oo(h),T=oo(o.clientWidth-(p+b)),S=oo(o.clientHeight-(h+x)),k=oo(p),w={rootMargin:-y+"px "+-T+"px "+-S+"px "+-k+"px",threshold:re(0,De(1,d))||1},O=!0;function G(z){let be=z[0].intersectionRatio;if(be!==d){if(!O)return s();be?s(!1,be):r=setTimeout(()=>{s(!1,1e-7)},1e3)}O=!1}try{e=new IntersectionObserver(G,{...w,root:o.ownerDocument})}catch{e=new IntersectionObserver(G,w)}e.observe(i)}return s(!0),a}function Nl(i,t,e,r){r===void 0&&(r={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,p=ka(i),h=o||a?[...p?Tr(p):[],...Tr(t)]:[];h.forEach(I=>{o&&I.addEventListener("scroll",e,{passive:!0}),a&&I.addEventListener("resize",e)});let b=p&&c?Bm(p,e):null,x=-1,y=null;s&&(y=new ResizeObserver(I=>{let[w]=I;w&&w.target===p&&y&&(y.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var O;(O=y)==null||O.observe(t)})),e()}),p&&!d&&y.observe(p),y.observe(t));let T,S=d?Dt(i):null;d&&k();function k(){let I=Dt(i);S&&(I.x!==S.x||I.y!==S.y||I.width!==S.width||I.height!==S.height)&&e(),S=I,T=requestAnimationFrame(k)}return e(),()=>{var I;h.forEach(w=>{o&&w.removeEventListener("scroll",e),a&&w.removeEventListener("resize",e)}),b==null||b(),(I=y)==null||I.disconnect(),y=null,d&&cancelAnimationFrame(T)}}var _l=ul;var Ll=fl,Rl=hl,Ol=bl;var Ml=pl;var Dl=(i,t,e)=>{let r=new Map,o={platform:Fm,...e},a={...o.platform,_c:r};return ml(i,t,{...o,platform:a})};var hi=i=>{class t extends i{constructor(...o){super(...o);this.enabledFocusTrap=!1;this.enabledPreventScroll=!1;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(o){return o.getClientRects().length===0}hasZeroDimensions(o){let{width:a,height:s}=o.getBoundingClientRect(),{offsetWidth:c,offsetHeight:d}=o;return c+d+s+a===0}isNotVisible(o){return this.hasZeroDimensions(o)||this.hasNoClientRects(o)}hasHiddenStyle(o){let{display:a,opacity:s,visibility:c}=o.style;return a==="none"||s==="0"||c==="hidden"||c==="collapse"}hasComputedHidden(o){let a=getComputedStyle(o);return a.visibility==="hidden"||a.height==="0"||a.display==="none"}isHidden(o){return o.hasAttribute("hidden")||o.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(o)||this.isNotVisible(o)||this.hasComputedHidden(o)}isNotTabbable(o){return o.getAttribute("tabindex")==="-1"}isInteractiveElement(o){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(o.tagName)||o instanceof HTMLAnchorElement&&o.hasAttribute("href")||o instanceof HTMLInputElement&&o.type!=="hidden"||(o instanceof HTMLAudioElement||o instanceof HTMLVideoElement)&&o.hasAttribute("controls")||(o instanceof HTMLImageElement||o instanceof HTMLObjectElement)&&o.hasAttribute("usemap")||o.hasAttribute("tabindex")&&o.tabIndex>-1)}isFocusable(o){return this.isHidden(o)||this.isNotTabbable(o)?!1:this.isInteractiveElement(o)}findFocusable(o,a=new Set){return o instanceof HTMLElement&&this.isFocusable(o)&&a.add(o),Array.from(o.children).forEach(c=>{let d=c;this.isFocusable(d)&&a.add(d),d.shadowRoot?this.findFocusable(d.shadowRoot,a):d.tagName==="SLOT"?d.assignedElements({flatten:!0}).forEach(h=>{h instanceof HTMLElement&&this.findFocusable(h,a)}):this.findFocusable(d,a)}),[...a]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(o=0){this.focusableElements.length!==0&&(this.enabledPreventScroll&&(document.body.style.overflow="hidden"),this.focusableElements[o]&&(this.focusTrapIndex=o,this.focusableElements[o].focus()))}calculateNextIndex(o,a){let{length:s}=this.focusableElements,c=this.shouldWrapFocus();if(o===-1)return a>0?0:s-1;let d=o+a;return c?(d<0&&(d=s-1),d>=s&&(d=0)):(d<0&&(d=0),d>=s&&(d=s-1)),d}getDeepActiveElement(){var a;let o=document.activeElement||document.body;for(;o instanceof HTMLElement&&((a=o.shadowRoot)!=null&&a.activeElement);)o=o.shadowRoot.activeElement;return o||document.body}findElement(o){return this.focusableElements.findIndex(a=>this.isEqualFocusNode(o,a))}isEqualFocusNode(o,a){return o.nodeType>=0?a.isEqualNode(o)&&a===o:!1}trapFocus(o){if(this.focusableElements.length===0)return;let a=this.getDeepActiveElement(),s=this.findElement(a);o?this.focusTrapIndex=this.calculateNextIndex(s,-1):this.focusTrapIndex=this.calculateNextIndex(s,1);let c=this.focusableElements[this.focusTrapIndex];c&&c.focus()}handleKeydown(o){!this.enabledFocusTrap||!this.focusableElements.length||o.key==="Tab"&&(o.preventDefault(),this.trapFocus(o.shiftKey))}}return n([l({type:Boolean})],t.prototype,"enabledFocusTrap",2),n([l({type:Boolean})],t.prototype,"enabledPreventScroll",2),t};var $l=f.constructTagName("popover"),oe={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"},$t={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},so={TONAL:"tonal",CONTRAST:"contrast"},D={PLACEMENT:oe.BOTTOM,TRIGGER:$t.CLICK,COLOR:so.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 zt=class{static dispatchPopoverEvent(t,e){e.dispatchEvent(new CustomEvent(t,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowPopover(t){this.dispatchPopoverEvent("shown",t)}static onHidePopover(t){this.dispatchPopoverEvent("hidden",t)}static onCreatedPopover(t){this.dispatchPopoverEvent("created",t)}static onDestroyedPopover(t){this.dispatchPopoverEvent("destroyed",t)}};var Na=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=[]}},Pt=new Na;var Hm=u`
|
2038
|
+
`}};xr.styles=[...v.styles,...al],n([l({type:String,reflect:!0})],xr.prototype,"color",2),n([l({type:String})],xr.prototype,"label",2);var Er=xr;Er.register(sl);var Tm=Er;var De=Math.min,ie=Math.max,ro=Math.round,oo=Math.floor,Se=i=>({x:i,y:i}),Am={left:"right",right:"left",bottom:"top",top:"bottom"},Sm={start:"end",end:"start"};function ai(i,t,e){return ie(i,De(t,e))}function Lt(i,t){return typeof i=="function"?i(t):i}function Ze(i){return i.split("-")[0]}function _t(i){return i.split("-")[1]}function Sa(i){return i==="x"?"y":"x"}function si(i){return i==="y"?"height":"width"}function pt(i){return["top","bottom"].includes(Ze(i))?"y":"x"}function ni(i){return Sa(pt(i))}function nl(i,t,e){e===void 0&&(e=!1);let r=_t(i),o=ni(i),a=si(o),s=o==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=to(s)),[s,to(s)]}function ll(i){let t=to(i);return[ii(i),t,ii(t)]}function ii(i){return i.replace(/start|end/g,t=>Sm[t])}function Im(i,t,e){let r=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(i){case"top":case"bottom":return e?t?o:r:t?r:o;case"left":case"right":return t?a:s;default:return[]}}function cl(i,t,e,r){let o=_t(i),a=Im(Ze(i),e==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(ii)))),a}function to(i){return i.replace(/left|right|bottom|top/g,t=>Am[t])}function Cm(i){return{top:0,right:0,bottom:0,left:0,...i}}function Ia(i){return typeof i!="number"?Cm(i):{top:i,right:i,bottom:i,left:i}}function Rt(i){let{x:t,y:e,width:r,height:o}=i;return{width:r,height:o,top:e,left:t,right:t+r,bottom:e+o,x:t,y:e}}function dl(i,t,e){let{reference:r,floating:o}=i,a=pt(t),s=ni(t),c=si(s),d=Ze(t),p=a==="y",h=r.x+r.width/2-o.width/2,b=r.y+r.height/2-o.height/2,x=r[c]/2-o[c]/2,y;switch(d){case"top":y={x:h,y:r.y-o.height};break;case"bottom":y={x:h,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:b};break;case"left":y={x:r.x-o.width,y:b};break;default:y={x:r.x,y:r.y}}switch(_t(t)){case"start":y[s]-=x*(e&&p?-1:1);break;case"end":y[s]+=x*(e&&p?-1:1);break}return y}var ml=async(i,t,e)=>{let{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=e,c=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t)),p=await s.getElementRects({reference:i,floating:t,strategy:o}),{x:h,y:b}=dl(p,r,d),x=r,y={},T=0;for(let S=0;S<c.length;S++){let{name:k,fn:I}=c[S],{x:w,y:O,data:Y,reset:z}=await I({x:h,y:b,initialPlacement:r,placement:x,strategy:o,middlewareData:y,rects:p,platform:s,elements:{reference:i,floating:t}});h=w!=null?w:h,b=O!=null?O:b,y={...y,[k]:{...y[k],...Y}},z&&T<=50&&(T++,typeof z=="object"&&(z.placement&&(x=z.placement),z.rects&&(p=z.rects===!0?await s.getElementRects({reference:i,floating:t,strategy:o}):z.rects),{x:h,y:b}=dl(p,x,d)),S=-1)}return{x:h,y:b,placement:x,strategy:o,middlewareData:y}};async function li(i,t){var e;t===void 0&&(t={});let{x:r,y:o,platform:a,rects:s,elements:c,strategy:d}=i,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:b="floating",altBoundary:x=!1,padding:y=0}=Lt(t,i),T=Ia(y),k=c[x?b==="floating"?"reference":"floating":b],I=Rt(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(k)))==null||e?k:k.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:p,rootBoundary:h,strategy:d})),w=b==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,O=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),Y=await(a.isElement==null?void 0:a.isElement(O))?await(a.getScale==null?void 0:a.getScale(O))||{x:1,y:1}:{x:1,y:1},z=Rt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:O,strategy:d}):w);return{top:(I.top-z.top+T.top)/Y.y,bottom:(z.bottom-I.bottom+T.bottom)/Y.y,left:(I.left-z.left+T.left)/Y.x,right:(z.right-I.right+T.right)/Y.x}}var pl=i=>({name:"arrow",options:i,async fn(t){let{x:e,y:r,placement:o,rects:a,platform:s,elements:c,middlewareData:d}=t,{element:p,padding:h=0}=Lt(i,t)||{};if(p==null)return{};let b=Ia(h),x={x:e,y:r},y=ni(o),T=si(y),S=await s.getDimensions(p),k=y==="y",I=k?"top":"left",w=k?"bottom":"right",O=k?"clientHeight":"clientWidth",Y=a.reference[T]+a.reference[y]-x[y]-a.floating[T],z=x[y]-a.reference[y],be=await(s.getOffsetParent==null?void 0:s.getOffsetParent(p)),xe=be?be[O]:0;(!xe||!await(s.isElement==null?void 0:s.isElement(be)))&&(xe=c.floating[O]||a.floating[T]);let $e=Y/2-z/2,Ne=xe/2-S[T]/2-1,Ee=De(b[I],Ne),rt=De(b[w],Ne),Le=Ee,ot=xe-S[T]-rt,te=xe/2-S[T]/2+$e,Jt=ai(Le,te,ot),ze=!d.arrow&&_t(o)!=null&&te!==Jt&&a.reference[T]/2-(te<Le?Ee:rt)-S[T]/2<0,_e=ze?te<Le?te-Le:te-ot:0;return{[y]:x[y]+_e,data:{[y]:Jt,centerOffset:te-Jt-_e,...ze&&{alignmentOffset:_e}},reset:ze}}});var hl=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(t){var e,r;let{placement:o,middlewareData:a,rects:s,initialPlacement:c,platform:d,elements:p}=t,{mainAxis:h=!0,crossAxis:b=!0,fallbackPlacements:x,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:S=!0,...k}=Lt(i,t);if((e=a.arrow)!=null&&e.alignmentOffset)return{};let I=Ze(o),w=pt(c),O=Ze(c)===c,Y=await(d.isRTL==null?void 0:d.isRTL(p.floating)),z=x||(O||!S?[to(c)]:ll(c)),be=T!=="none";!x&&be&&z.push(...cl(c,S,T,Y));let xe=[c,...z],$e=await li(t,k),Ne=[],Ee=((r=a.flip)==null?void 0:r.overflows)||[];if(h&&Ne.push($e[I]),b){let te=nl(o,s,Y);Ne.push($e[te[0]],$e[te[1]])}if(Ee=[...Ee,{placement:o,overflows:Ne}],!Ne.every(te=>te<=0)){var rt,Le;let te=(((rt=a.flip)==null?void 0:rt.index)||0)+1,Jt=xe[te];if(Jt)return{data:{index:te,overflows:Ee},reset:{placement:Jt}};let ze=(Le=Ee.filter(_e=>_e.overflows[0]<=0).sort((_e,it)=>_e.overflows[1]-it.overflows[1])[0])==null?void 0:Le.placement;if(!ze)switch(y){case"bestFit":{var ot;let _e=(ot=Ee.filter(it=>{if(be){let at=pt(it.placement);return at===w||at==="y"}return!0}).map(it=>[it.placement,it.overflows.filter(at=>at>0).reduce((at,cd)=>at+cd,0)]).sort((it,at)=>it[1]-at[1])[0])==null?void 0:ot[0];_e&&(ze=_e);break}case"initialPlacement":ze=c;break}if(o!==ze)return{reset:{placement:ze}}}return{}}}};async function km(i,t){let{placement:e,platform:r,elements:o}=i,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Ze(e),c=_t(e),d=pt(e)==="y",p=["left","top"].includes(s)?-1:1,h=a&&d?-1:1,b=Lt(t,i),{mainAxis:x,crossAxis:y,alignmentAxis:T}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return c&&typeof T=="number"&&(y=c==="end"?T*-1:T),d?{x:y*h,y:x*p}:{x:x*p,y:y*h}}var ul=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(t){var e,r;let{x:o,y:a,placement:s,middlewareData:c}=t,d=await km(t,i);return s===((e=c.offset)==null?void 0:e.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:a+d.y,data:{...d,placement:s}}}}},fl=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(t){let{x:e,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:k=>{let{x:I,y:w}=k;return{x:I,y:w}}},...d}=Lt(i,t),p={x:e,y:r},h=await li(t,d),b=pt(Ze(o)),x=Sa(b),y=p[x],T=p[b];if(a){let k=x==="y"?"top":"left",I=x==="y"?"bottom":"right",w=y+h[k],O=y-h[I];y=ai(w,y,O)}if(s){let k=b==="y"?"top":"left",I=b==="y"?"bottom":"right",w=T+h[k],O=T-h[I];T=ai(w,T,O)}let S=c.fn({...t,[x]:y,[b]:T});return{...S,data:{x:S.x-e,y:S.y-r,enabled:{[x]:a,[b]:s}}}}}};var bl=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(t){var e,r;let{placement:o,rects:a,platform:s,elements:c}=t,{apply:d=()=>{},...p}=Lt(i,t),h=await li(t,p),b=Ze(o),x=_t(o),y=pt(o)==="y",{width:T,height:S}=a.floating,k,I;b==="top"||b==="bottom"?(k=b,I=x===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(I=b,k=x==="end"?"top":"bottom");let w=S-h.top-h.bottom,O=T-h.left-h.right,Y=De(S-h[k],w),z=De(T-h[I],O),be=!t.middlewareData.shift,xe=Y,$e=z;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&($e=O),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(xe=w),be&&!x){let Ee=ie(h.left,0),rt=ie(h.right,0),Le=ie(h.top,0),ot=ie(h.bottom,0);y?$e=T-2*(Ee!==0||rt!==0?Ee+rt:ie(h.left,h.right)):xe=S-2*(Le!==0||ot!==0?Le+ot:ie(h.top,h.bottom))}await d({...t,availableWidth:$e,availableHeight:xe});let Ne=await s.getDimensions(c.floating);return T!==Ne.width||S!==Ne.height?{reset:{rects:!0}}:{}}}};function ci(){return typeof window<"u"}function Ot(i){return vl(i)?(i.nodeName||"").toLowerCase():"#document"}function de(i){var t;return(i==null||(t=i.ownerDocument)==null?void 0:t.defaultView)||window}function Ie(i){var t;return(t=(vl(i)?i.ownerDocument:i.document)||window.document)==null?void 0:t.documentElement}function vl(i){return ci()?i instanceof Node||i instanceof de(i).Node:!1}function ge(i){return ci()?i instanceof Element||i instanceof de(i).Element:!1}function Ce(i){return ci()?i instanceof HTMLElement||i instanceof de(i).HTMLElement:!1}function gl(i){return!ci()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof de(i).ShadowRoot}function Ar(i){let{overflow:t,overflowX:e,overflowY:r,display:o}=ve(i);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(o)}function yl(i){return["table","td","th"].includes(Ot(i))}function io(i){return[":popover-open",":modal"].some(t=>{try{return i.matches(t)}catch{return!1}})}function di(i){let t=mi(),e=ge(i)?ve(i):i;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 xl(i){let t=Xe(i);for(;Ce(t)&&!Mt(t);){if(di(t))return t;if(io(t))return null;t=Xe(t)}return null}function mi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Mt(i){return["html","body","#document"].includes(Ot(i))}function ve(i){return de(i).getComputedStyle(i)}function ao(i){return ge(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function Xe(i){if(Ot(i)==="html")return i;let t=i.assignedSlot||i.parentNode||gl(i)&&i.host||Ie(i);return gl(t)?t.host:t}function El(i){let t=Xe(i);return Mt(t)?i.ownerDocument?i.ownerDocument.body:i.body:Ce(t)&&Ar(t)?t:El(t)}function Tr(i,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let o=El(i),a=o===((r=i.ownerDocument)==null?void 0:r.body),s=de(o);if(a){let c=pi(s);return t.concat(s,s.visualViewport||[],Ar(o)?o:[],c&&e?Tr(c):[])}return t.concat(o,Tr(o,[],e))}function pi(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function Sl(i){let t=ve(i),e=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=Ce(i),a=o?i.offsetWidth:e,s=o?i.offsetHeight:r,c=ro(e)!==a||ro(r)!==s;return c&&(e=a,r=s),{width:e,height:r,$:c}}function ka(i){return ge(i)?i:i.contextElement}function Sr(i){let t=ka(i);if(!Ce(t))return Se(1);let e=t.getBoundingClientRect(),{width:r,height:o,$:a}=Sl(t),s=(a?ro(e.width):e.width)/r,c=(a?ro(e.height):e.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var wm=Se(0);function Il(i){let t=de(i);return!mi()||!t.visualViewport?wm:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Nm(i,t,e){return t===void 0&&(t=!1),!e||t&&e!==de(i)?!1:t}function Dt(i,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let o=i.getBoundingClientRect(),a=ka(i),s=Se(1);t&&(r?ge(r)&&(s=Sr(r)):s=Sr(i));let c=Nm(a,e,r)?Il(a):Se(0),d=(o.left+c.x)/s.x,p=(o.top+c.y)/s.y,h=o.width/s.x,b=o.height/s.y;if(a){let x=de(a),y=r&&ge(r)?de(r):r,T=x,S=pi(T);for(;S&&r&&y!==T;){let k=Sr(S),I=S.getBoundingClientRect(),w=ve(S),O=I.left+(S.clientLeft+parseFloat(w.paddingLeft))*k.x,Y=I.top+(S.clientTop+parseFloat(w.paddingTop))*k.y;d*=k.x,p*=k.y,h*=k.x,b*=k.y,d+=O,p+=Y,T=de(S),S=pi(T)}}return Rt({width:h,height:b,x:d,y:p})}function wa(i,t){let e=ao(i).scrollLeft;return t?t.left+e:Dt(Ie(i)).left+e}function Cl(i,t,e){e===void 0&&(e=!1);let r=i.getBoundingClientRect(),o=r.left+t.scrollLeft-(e?0:wa(i,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function Lm(i){let{elements:t,rect:e,offsetParent:r,strategy:o}=i,a=o==="fixed",s=Ie(r),c=t?io(t.floating):!1;if(r===s||c&&a)return e;let d={scrollLeft:0,scrollTop:0},p=Se(1),h=Se(0),b=Ce(r);if((b||!b&&!a)&&((Ot(r)!=="body"||Ar(s))&&(d=ao(r)),Ce(r))){let y=Dt(r);p=Sr(r),h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}let x=s&&!b&&!a?Cl(s,d,!0):Se(0);return{width:e.width*p.x,height:e.height*p.y,x:e.x*p.x-d.scrollLeft*p.x+h.x+x.x,y:e.y*p.y-d.scrollTop*p.y+h.y+x.y}}function _m(i){return Array.from(i.getClientRects())}function Rm(i){let t=Ie(i),e=ao(i),r=i.ownerDocument.body,o=ie(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ie(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+wa(i),c=-e.scrollTop;return ve(r).direction==="rtl"&&(s+=ie(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:c}}function Om(i,t){let e=de(i),r=Ie(i),o=e.visualViewport,a=r.clientWidth,s=r.clientHeight,c=0,d=0;if(o){a=o.width,s=o.height;let p=mi();(!p||p&&t==="fixed")&&(c=o.offsetLeft,d=o.offsetTop)}return{width:a,height:s,x:c,y:d}}function Mm(i,t){let e=Dt(i,!0,t==="fixed"),r=e.top+i.clientTop,o=e.left+i.clientLeft,a=Ce(i)?Sr(i):Se(1),s=i.clientWidth*a.x,c=i.clientHeight*a.y,d=o*a.x,p=r*a.y;return{width:s,height:c,x:d,y:p}}function Tl(i,t,e){let r;if(t==="viewport")r=Om(i,e);else if(t==="document")r=Rm(Ie(i));else if(ge(t))r=Mm(t,e);else{let o=Il(i);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Rt(r)}function kl(i,t){let e=Xe(i);return e===t||!ge(e)||Mt(e)?!1:ve(e).position==="fixed"||kl(e,t)}function Dm(i,t){let e=t.get(i);if(e)return e;let r=Tr(i,[],!1).filter(c=>ge(c)&&Ot(c)!=="body"),o=null,a=ve(i).position==="fixed",s=a?Xe(i):i;for(;ge(s)&&!Mt(s);){let c=ve(s),d=di(s);!d&&c.position==="fixed"&&(o=null),(a?!d&&!o:!d&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ar(s)&&!d&&kl(i,s))?r=r.filter(h=>h!==s):o=c,s=Xe(s)}return t.set(i,r),r}function $m(i){let{element:t,boundary:e,rootBoundary:r,strategy:o}=i,s=[...e==="clippingAncestors"?io(t)?[]:Dm(t,this._c):[].concat(e),r],c=s[0],d=s.reduce((p,h)=>{let b=Tl(t,h,o);return p.top=ie(b.top,p.top),p.right=De(b.right,p.right),p.bottom=De(b.bottom,p.bottom),p.left=ie(b.left,p.left),p},Tl(t,c,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function zm(i){let{width:t,height:e}=Sl(i);return{width:t,height:e}}function Pm(i,t,e){let r=Ce(t),o=Ie(t),a=e==="fixed",s=Dt(i,!0,a,t),c={scrollLeft:0,scrollTop:0},d=Se(0);if(r||!r&&!a)if((Ot(t)!=="body"||Ar(o))&&(c=ao(t)),r){let x=Dt(t,!0,a,t);d.x=x.x+t.clientLeft,d.y=x.y+t.clientTop}else o&&(d.x=wa(o));let p=o&&!r&&!a?Cl(o,c):Se(0),h=s.left+c.scrollLeft-d.x-p.x,b=s.top+c.scrollTop-d.y-p.y;return{x:h,y:b,width:s.width,height:s.height}}function Ca(i){return ve(i).position==="static"}function Al(i,t){if(!Ce(i)||ve(i).position==="fixed")return null;if(t)return t(i);let e=i.offsetParent;return Ie(i)===e&&(e=e.ownerDocument.body),e}function wl(i,t){let e=de(i);if(io(i))return e;if(!Ce(i)){let o=Xe(i);for(;o&&!Mt(o);){if(ge(o)&&!Ca(o))return o;o=Xe(o)}return e}let r=Al(i,t);for(;r&&yl(r)&&Ca(r);)r=Al(r,t);return r&&Mt(r)&&Ca(r)&&!di(r)?e:r||xl(i)||e}var Um=async function(i){let t=this.getOffsetParent||wl,e=this.getDimensions,r=await e(i.floating);return{reference:Pm(i.reference,await t(i.floating),i.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Vm(i){return ve(i).direction==="rtl"}var Fm={convertOffsetParentRelativeRectToViewportRelativeRect:Lm,getDocumentElement:Ie,getClippingRect:$m,getOffsetParent:wl,getElementRects:Um,getClientRects:_m,getDimensions:zm,getScale:Sr,isElement:ge,isRTL:Vm};function Bm(i,t){let e=null,r,o=Ie(i);function a(){var c;clearTimeout(r),(c=e)==null||c.disconnect(),e=null}function s(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),a();let{left:p,top:h,width:b,height:x}=i.getBoundingClientRect();if(c||t(),!b||!x)return;let y=oo(h),T=oo(o.clientWidth-(p+b)),S=oo(o.clientHeight-(h+x)),k=oo(p),w={rootMargin:-y+"px "+-T+"px "+-S+"px "+-k+"px",threshold:ie(0,De(1,d))||1},O=!0;function Y(z){let be=z[0].intersectionRatio;if(be!==d){if(!O)return s();be?s(!1,be):r=setTimeout(()=>{s(!1,1e-7)},1e3)}O=!1}try{e=new IntersectionObserver(Y,{...w,root:o.ownerDocument})}catch{e=new IntersectionObserver(Y,w)}e.observe(i)}return s(!0),a}function Nl(i,t,e,r){r===void 0&&(r={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,p=ka(i),h=o||a?[...p?Tr(p):[],...Tr(t)]:[];h.forEach(I=>{o&&I.addEventListener("scroll",e,{passive:!0}),a&&I.addEventListener("resize",e)});let b=p&&c?Bm(p,e):null,x=-1,y=null;s&&(y=new ResizeObserver(I=>{let[w]=I;w&&w.target===p&&y&&(y.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var O;(O=y)==null||O.observe(t)})),e()}),p&&!d&&y.observe(p),y.observe(t));let T,S=d?Dt(i):null;d&&k();function k(){let I=Dt(i);S&&(I.x!==S.x||I.y!==S.y||I.width!==S.width||I.height!==S.height)&&e(),S=I,T=requestAnimationFrame(k)}return e(),()=>{var I;h.forEach(w=>{o&&w.removeEventListener("scroll",e),a&&w.removeEventListener("resize",e)}),b==null||b(),(I=y)==null||I.disconnect(),y=null,d&&cancelAnimationFrame(T)}}var Ll=ul;var _l=fl,Rl=hl,Ol=bl;var Ml=pl;var Dl=(i,t,e)=>{let r=new Map,o={platform:Fm,...e},a={...o.platform,_c:r};return ml(i,t,{...o,platform:a})};var hi=i=>{class t extends i{constructor(...o){super(...o);this.enabledFocusTrap=!1;this.enabledPreventScroll=!1;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(o){return o.getClientRects().length===0}hasZeroDimensions(o){let{width:a,height:s}=o.getBoundingClientRect(),{offsetWidth:c,offsetHeight:d}=o;return c+d+s+a===0}isNotVisible(o){return this.hasZeroDimensions(o)||this.hasNoClientRects(o)}hasHiddenStyle(o){let{display:a,opacity:s,visibility:c}=o.style;return a==="none"||s==="0"||c==="hidden"||c==="collapse"}hasComputedHidden(o){let a=getComputedStyle(o);return a.visibility==="hidden"||a.height==="0"||a.display==="none"}isHidden(o){return o.hasAttribute("hidden")||o.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(o)||this.isNotVisible(o)||this.hasComputedHidden(o)}isNotTabbable(o){return o.getAttribute("tabindex")==="-1"}isInteractiveElement(o){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(o.tagName)||o instanceof HTMLAnchorElement&&o.hasAttribute("href")||o instanceof HTMLInputElement&&o.type!=="hidden"||(o instanceof HTMLAudioElement||o instanceof HTMLVideoElement)&&o.hasAttribute("controls")||(o instanceof HTMLImageElement||o instanceof HTMLObjectElement)&&o.hasAttribute("usemap")||o.hasAttribute("tabindex")&&o.tabIndex>-1)}isFocusable(o){return this.isHidden(o)||this.isNotTabbable(o)?!1:this.isInteractiveElement(o)}findFocusable(o,a=new Set){return o instanceof HTMLElement&&this.isFocusable(o)&&a.add(o),Array.from(o.children).forEach(c=>{let d=c;this.isFocusable(d)&&a.add(d),d.shadowRoot?this.findFocusable(d.shadowRoot,a):d.tagName==="SLOT"?d.assignedElements({flatten:!0}).forEach(h=>{h instanceof HTMLElement&&this.findFocusable(h,a)}):this.findFocusable(d,a)}),[...a]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(o=0){this.focusableElements.length!==0&&(this.enabledPreventScroll&&(document.body.style.overflow="hidden"),this.focusableElements[o]&&(this.focusTrapIndex=o,this.focusableElements[o].focus()))}calculateNextIndex(o,a){let{length:s}=this.focusableElements,c=this.shouldWrapFocus();if(o===-1)return a>0?0:s-1;let d=o+a;return c?(d<0&&(d=s-1),d>=s&&(d=0)):(d<0&&(d=0),d>=s&&(d=s-1)),d}getDeepActiveElement(){var a;let o=document.activeElement||document.body;for(;o instanceof HTMLElement&&((a=o.shadowRoot)!=null&&a.activeElement);)o=o.shadowRoot.activeElement;return o||document.body}findElement(o){return this.focusableElements.findIndex(a=>this.isEqualFocusNode(o,a))}isEqualFocusNode(o,a){return o.nodeType>=0?a.isEqualNode(o)&&a===o:!1}trapFocus(o){if(this.focusableElements.length===0)return;let a=this.getDeepActiveElement(),s=this.findElement(a);o?this.focusTrapIndex=this.calculateNextIndex(s,-1):this.focusTrapIndex=this.calculateNextIndex(s,1);let c=this.focusableElements[this.focusTrapIndex];c&&c.focus()}handleKeydown(o){!this.enabledFocusTrap||!this.focusableElements.length||o.key==="Tab"&&(o.preventDefault(),this.trapFocus(o.shiftKey))}}return n([l({type:Boolean})],t.prototype,"enabledFocusTrap",2),n([l({type:Boolean})],t.prototype,"enabledPreventScroll",2),t};var $l=f.constructTagName("popover"),ae={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"},$t={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},so={TONAL:"tonal",CONTRAST:"contrast"},D={PLACEMENT:ae.BOTTOM,TRIGGER:$t.CLICK,COLOR:so.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 zt=class{static dispatchPopoverEvent(t,e){e.dispatchEvent(new CustomEvent(t,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowPopover(t){this.dispatchPopoverEvent("shown",t)}static onHidePopover(t){this.dispatchPopoverEvent("hidden",t)}static onCreatedPopover(t){this.dispatchPopoverEvent("created",t)}static onDestroyedPopover(t){this.dispatchPopoverEvent("destroyed",t)}};var Na=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=[]}},Pt=new Na;var Hm=u`
|
2022
2039
|
:host {
|
2023
2040
|
--mdc-popover-arrow-border-radius: 0.1875rem;
|
2024
2041
|
--mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
|
@@ -2143,7 +2160,7 @@
|
|
2143
2160
|
background: transparent;
|
2144
2161
|
z-index: ${this.popover.zIndex-1};
|
2145
2162
|
}
|
2146
|
-
`,e.appendChild(r),this.popover.backdropElement=e}}};var R=class extends hi(v){constructor(){super();this.id="";this.triggerID="";this.trigger=D.TRIGGER;this.placement=D.PLACEMENT;this.color=D.COLOR;this.visible=D.VISIBLE;this.offset=D.OFFSET;this.focusTrap=D.FOCUS_TRAP;this.preventScroll=D.PREVENT_SCROLL;this.showArrow=D.ARROW;this.closeButton=D.CLOSE_BUTTON;this.interactive=D.INTERACTIVE;this.delay=D.DELAY;this.hideOnEscape=D.HIDE_ON_ESCAPE;this.hideOnBlur=D.HIDE_ON_BLUR;this.hideOnOutsideClick=D.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=D.FOCUS_BACK;this.backdrop=D.BACKDROP;this.flip=D.FLIP;this.size=D.SIZE;this.zIndex=D.Z_INDEX;this.appendTo="";this.closeButtonAriaLabel=null;this.role=D.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=D.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(Pt.peek()!==this)return;let r=!1,o=e.composedPath();r=this.contains(e.target)||o.includes(this.triggerElement);let a=this.backdropElement?o.includes(this.backdropElement):!1;(!r||a)&&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=()=>{Pt.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 ui(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}`,zt.onCreatedPopover(this),this.visible&&(this.positionPopover(),await this.handleCreatePopoverFirstUpdate())}async disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),zt.onDestroyedPopover(this),Pt.remove(this)}setupTriggerListener(){if(this.triggerID&&(this.triggerElement=this.getRootNode().querySelector(`[id="${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")||!1;await this.isOpenUpdated(r,this.visible),this.utils.updateAriaExpandedAttribute()}if(e.has("placement")&&this.setAttribute("placement",Object.values(
|
2163
|
+
`,e.appendChild(r),this.popover.backdropElement=e}}};var R=class extends hi(v){constructor(){super();this.id="";this.triggerID="";this.trigger=D.TRIGGER;this.placement=D.PLACEMENT;this.color=D.COLOR;this.visible=D.VISIBLE;this.offset=D.OFFSET;this.focusTrap=D.FOCUS_TRAP;this.preventScroll=D.PREVENT_SCROLL;this.showArrow=D.ARROW;this.closeButton=D.CLOSE_BUTTON;this.interactive=D.INTERACTIVE;this.delay=D.DELAY;this.hideOnEscape=D.HIDE_ON_ESCAPE;this.hideOnBlur=D.HIDE_ON_BLUR;this.hideOnOutsideClick=D.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=D.FOCUS_BACK;this.backdrop=D.BACKDROP;this.flip=D.FLIP;this.size=D.SIZE;this.zIndex=D.Z_INDEX;this.appendTo="";this.closeButtonAriaLabel=null;this.role=D.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=D.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(Pt.peek()!==this)return;let r=!1,o=e.composedPath();r=this.contains(e.target)||o.includes(this.triggerElement);let a=this.backdropElement?o.includes(this.backdropElement):!1;(!r||a)&&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=()=>{Pt.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 ui(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}`,zt.onCreatedPopover(this),this.visible&&(this.positionPopover(),await this.handleCreatePopoverFirstUpdate())}async disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),zt.onDestroyedPopover(this),Pt.remove(this)}setupTriggerListener(){if(this.triggerID&&(this.triggerElement=this.getRootNode().querySelector(`[id="${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")||!1;await this.isOpenUpdated(r,this.visible),this.utils.updateAriaExpandedAttribute()}if(e.has("placement")&&this.setAttribute("placement",Object.values(ae).includes(this.placement)?this.placement:D.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){let o=this.trigger.split(" ").filter(a=>Object.values($t).includes(a));this.setAttribute("trigger",o.length>0?this.trigger:D.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("color")&&this.setAttribute("color",Object.values(so).includes(this.color)?this.color:D.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(),e.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),e.has("interactive")&&this.utils.updateAriaHasPopupAttribute()}async isOpenUpdated(e,r){var o,a,s;if(!(e===r||!this.triggerElement))if(r)Pt.peek()!==this&&Pt.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),zt.onShowPopover(this);else{if(Pt.pop(),this.backdropElement&&((o=this.backdropElement)==null||o.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),(a=this.deactivateFocusTrap)==null||a.call(this),this.disableAriaExpanded||this.triggerElement.removeAttribute("aria-expanded"),this.interactive){let c=this.triggerElement.getAttribute("aria-haspopup");(c==="dialog"||c==="alertdialog")&&this.triggerElement.removeAttribute("aria-haspopup")}this.focusBackToTrigger&&((s=this.triggerElement)==null||s.focus()),zt.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=[_l()],r=this.offset;if(this.flip&&e.push(Rl()),this.size){let o=this.renderRoot.querySelector('[part="popover-content"]');e.push(Ol({apply({availableHeight:a}){o&&Object.assign(o.style,{maxHeight:`${a}px`,overflowY:"auto"})},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){let o=this.arrowElement.offsetHeight;r=Math.sqrt(2*o**2)/2+this.offset,e.push(Ml({element:this.arrowElement,padding:12}))}e.push(Ll(r)),Nl(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:o,y:a,middlewareData:s,placement:c}=await Dl(this.triggerElement,this,{placement:this.placement,middleware:e});this.utils.updatePopoverStyle(o,a),s.arrow&&this.arrowElement&&this.utils.updateArrowStyle(s.arrow,c),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(c)})}render(){return m`
|
2147
2164
|
<div class="popover-hover-bridge"></div>
|
2148
2165
|
${this.closeButton?m` <mdc-button
|
2149
2166
|
class="popover-close"
|
@@ -2157,7 +2174,7 @@
|
|
2157
2174
|
<div part="popover-content">
|
2158
2175
|
<slot></slot>
|
2159
2176
|
</div>
|
2160
|
-
`}};R.styles=[...v.styles,...zl],n([l({type:String,reflect:!0})],R.prototype,"id",2),n([l({type:String,reflect:!0})],R.prototype,"triggerID",2),n([l({type:String,reflect:!0})],R.prototype,"trigger",2),n([l({type:String,reflect:!0})],R.prototype,"placement",2),n([l({type:String,reflect:!0})],R.prototype,"color",2),n([l({type:Boolean,reflect:!0})],R.prototype,"visible",2),n([l({type:Number,reflect:!0})],R.prototype,"offset",2),n([l({type:Boolean,reflect:!0,attribute:"focus-trap"})],R.prototype,"focusTrap",2),n([l({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],R.prototype,"preventScroll",2),n([l({type:Boolean,reflect:!0,attribute:"show-arrow"})],R.prototype,"showArrow",2),n([l({type:Boolean,reflect:!0,attribute:"close-button"})],R.prototype,"closeButton",2),n([l({type:Boolean,reflect:!0})],R.prototype,"interactive",2),n([l({type:String,reflect:!0})],R.prototype,"delay",2),n([l({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],R.prototype,"hideOnEscape",2),n([l({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],R.prototype,"hideOnBlur",2),n([l({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],R.prototype,"hideOnOutsideClick",2),n([l({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],R.prototype,"focusBackToTrigger",2),n([l({type:Boolean,reflect:!0})],R.prototype,"backdrop",2),n([l({type:Boolean,reflect:!0})],R.prototype,"flip",2),n([l({type:Boolean,reflect:!0})],R.prototype,"size",2),n([l({type:Number,reflect:!0,attribute:"z-index"})],R.prototype,"zIndex",2),n([l({type:String,reflect:!0,attribute:"append-to"})],R.prototype,"appendTo",2),n([l({type:String,attribute:"close-button-aria-label",reflect:!0})],R.prototype,"closeButtonAriaLabel",2),n([l({type:String,reflect:!0})],R.prototype,"role",2),n([l({type:String,reflect:!0,attribute:"aria-labelledby"})],R.prototype,"ariaLabelledby",2),n([l({type:String,reflect:!0,attribute:"aria-describedby"})],R.prototype,"ariaDescribedby",2),n([l({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],R.prototype,"disableAriaExpanded",2);var ke=R;var Pl=f.constructTagName("coachmark"),Ut={COLOR:so.CONTRAST,TRIGGER:$t.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var Vt=class extends ke{constructor(){super(...arguments);this.trigger=Ut.TRIGGER;this.showArrow=Ut.ARROW;this.closeButton=Ut.CLOSE_BUTTON;this.disableAriaExpanded=Ut.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=Ut.COLOR,this.showArrow=Ut.ARROW}};n([l({type:String,reflect:!0})],Vt.prototype,"trigger",2),n([l({type:Boolean,attribute:"show-arrow"})],Vt.prototype,"showArrow",2),n([l({type:Boolean,reflect:!0,attribute:"close-button"})],Vt.prototype,"closeButton",2),n([l({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],Vt.prototype,"disableAriaExpanded",2);var
|
2177
|
+
`}};R.styles=[...v.styles,...zl],n([l({type:String,reflect:!0})],R.prototype,"id",2),n([l({type:String,reflect:!0})],R.prototype,"triggerID",2),n([l({type:String,reflect:!0})],R.prototype,"trigger",2),n([l({type:String,reflect:!0})],R.prototype,"placement",2),n([l({type:String,reflect:!0})],R.prototype,"color",2),n([l({type:Boolean,reflect:!0})],R.prototype,"visible",2),n([l({type:Number,reflect:!0})],R.prototype,"offset",2),n([l({type:Boolean,reflect:!0,attribute:"focus-trap"})],R.prototype,"focusTrap",2),n([l({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],R.prototype,"preventScroll",2),n([l({type:Boolean,reflect:!0,attribute:"show-arrow"})],R.prototype,"showArrow",2),n([l({type:Boolean,reflect:!0,attribute:"close-button"})],R.prototype,"closeButton",2),n([l({type:Boolean,reflect:!0})],R.prototype,"interactive",2),n([l({type:String,reflect:!0})],R.prototype,"delay",2),n([l({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],R.prototype,"hideOnEscape",2),n([l({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],R.prototype,"hideOnBlur",2),n([l({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],R.prototype,"hideOnOutsideClick",2),n([l({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],R.prototype,"focusBackToTrigger",2),n([l({type:Boolean,reflect:!0})],R.prototype,"backdrop",2),n([l({type:Boolean,reflect:!0})],R.prototype,"flip",2),n([l({type:Boolean,reflect:!0})],R.prototype,"size",2),n([l({type:Number,reflect:!0,attribute:"z-index"})],R.prototype,"zIndex",2),n([l({type:String,reflect:!0,attribute:"append-to"})],R.prototype,"appendTo",2),n([l({type:String,attribute:"close-button-aria-label",reflect:!0})],R.prototype,"closeButtonAriaLabel",2),n([l({type:String,reflect:!0})],R.prototype,"role",2),n([l({type:String,reflect:!0,attribute:"aria-labelledby"})],R.prototype,"ariaLabelledby",2),n([l({type:String,reflect:!0,attribute:"aria-describedby"})],R.prototype,"ariaDescribedby",2),n([l({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],R.prototype,"disableAriaExpanded",2);var ke=R;var Pl=f.constructTagName("coachmark"),Ut={COLOR:so.CONTRAST,TRIGGER:$t.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var Vt=class extends ke{constructor(){super(...arguments);this.trigger=Ut.TRIGGER;this.showArrow=Ut.ARROW;this.closeButton=Ut.CLOSE_BUTTON;this.disableAriaExpanded=Ut.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=Ut.COLOR,this.showArrow=Ut.ARROW}};n([l({type:String,reflect:!0})],Vt.prototype,"trigger",2),n([l({type:Boolean,attribute:"show-arrow"})],Vt.prototype,"showArrow",2),n([l({type:Boolean,reflect:!0,attribute:"close-button"})],Vt.prototype,"closeButton",2),n([l({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],Vt.prototype,"disableAriaExpanded",2);var La=Vt;La.register(Pl);var Gm=La;var Ym=u`
|
2161
2178
|
:host {
|
2162
2179
|
--mdc-dialog-primary-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
2163
2180
|
--mdc-dialog-border-color: var(--mds-color-theme-outline-secondary-normal);
|
@@ -2272,7 +2289,7 @@
|
|
2272
2289
|
background: var(--mds-color-theme-common-overlays-secondary-normal);
|
2273
2290
|
z-index: ${this.dialog.zIndex-1};
|
2274
2291
|
}
|
2275
|
-
`,t.appendChild(e),(r=this.dialog.parentElement)==null||r.appendChild(t),this.dialog.backdropElement=t}};var Ft=class{static dispatchDialogEvent(t,e){e.dispatchEvent(new CustomEvent(t,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowDialog(t){this.dispatchDialogEvent("shown",t)}static onHideDialog(t){this.dispatchDialogEvent("hidden",t)}static onCreatedDialog(t){this.dispatchDialogEvent("created",t)}static onDestroyedDialog(t){this.dispatchDialogEvent("destroyed",t)}};var
|
2292
|
+
`,t.appendChild(e),(r=this.dialog.parentElement)==null||r.appendChild(t),this.dialog.backdropElement=t}};var Ft=class{static dispatchDialogEvent(t,e){e.dispatchEvent(new CustomEvent(t,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowDialog(t){this.dispatchDialogEvent("shown",t)}static onHideDialog(t){this.dispatchDialogEvent("hidden",t)}static onCreatedDialog(t){this.dispatchDialogEvent("created",t)}static onDestroyedDialog(t){this.dispatchDialogEvent("destroyed",t)}};var Z=class extends hi(Qo(v)){constructor(){super();this.id="";this.triggerId="";this.visible=je.VISIBLE;this.zIndex=je.Z_INDEX;this.size=je.SIZE;this.variant=je.VARIANT;this.closeButtonAriaLabel=null;this.ariaLabelledby=null;this.ariaLabel=null;this.headerText="";this.descriptionText="";this.headerTagName=je.HEADER_TAG_NAME;this.descriptionTagName=je.DESCRIPTION_TAG_NAME;this.role=je.ROLE;this.triggerElement=null;this.backdropElement=null;this.onEscapeKeydown=e=>{!this.visible||e.code!=="Escape"||(e.preventDefault(),this.hideDialog())};this.hideDialog=()=>{this.visible=!1};this.utils=new fi(this),document.addEventListener("keydown",this.onEscapeKeydown)}async firstUpdated(e){super.firstUpdated(e),this.setupTriggerListener(),this.utils.setupAriaAttributes(),this.style.zIndex=`${this.zIndex}`,Ft.onCreatedDialog(this),this.visible&&await this.handleCreateDialogFirstUpdate()}async disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),document.removeEventListener("keydown",this.onEscapeKeydown),Ft.onDestroyedDialog(this)}setupTriggerListener(){this.triggerId&&(this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerId}"]`),this.triggerElement&&this.addEventListener("focus-trap-exit",this.hideDialog))}removeEventListeners(){this.triggerElement&&this.removeEventListener("focus-trap-exit",this.hideDialog)}async updated(e){if(super.updated(e),e.has("visible")){let r=e.get("visible");await this.isOpenUpdated(r,this.visible)}e.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),e.has("variant")&&this.updateFooterButtonColors(this.variant),(e.has("aria-label")||e.has("aria-labelledby"))&&this.utils.setupAriaAttributes()}async isOpenUpdated(e,r){var o,a,s;e===r||!this.triggerElement||(r?(this.enabledFocusTrap=!0,this.enabledPreventScroll=!0,this.utils.createBackdrop(),await this.handleCreateDialogFirstUpdate(),this.triggerElement.setAttribute("aria-expanded","true"),this.triggerElement.setAttribute("aria-haspopup",this.triggerElement.getAttribute("aria-haspopup")||"dialog"),Ft.onShowDialog(this)):((o=this.backdropElement)==null||o.remove(),this.backdropElement=null,(a=this.deactivateFocusTrap)==null||a.call(this),this.triggerElement.removeAttribute("aria-expanded"),this.triggerElement.removeAttribute("aria-haspopup"),(s=this.triggerElement)==null||s.focus(),Ft.onHideDialog(this)))}async handleCreateDialogFirstUpdate(){var e,r;this.visible&&((e=this.setFocusableElements)==null||e.call(this),await this.updateComplete,(r=this.setInitialFocus)==null||r.call(this))}render(){var e;return m`
|
2276
2293
|
${this.headerText?m`
|
2277
2294
|
<div part="header">
|
2278
2295
|
<mdc-text
|
@@ -2293,7 +2310,7 @@
|
|
2293
2310
|
<mdc-button
|
2294
2311
|
part="dialog-close-btn"
|
2295
2312
|
prefix-icon="${je.CANCEL_ICON}"
|
2296
|
-
variant="${
|
2313
|
+
variant="${X.TERTIARY}"
|
2297
2314
|
size="${ct[20]}"
|
2298
2315
|
aria-label="${A(this.closeButtonAriaLabel)||""}"
|
2299
2316
|
@click="${this.hideDialog}"
|
@@ -2302,7 +2319,7 @@
|
|
2302
2319
|
<slot name="dialog-body"></slot>
|
2303
2320
|
</div>
|
2304
2321
|
${this.renderFooter()}
|
2305
|
-
`}};
|
2322
|
+
`}};Z.styles=[...v.styles,...Ul],n([l({type:String,reflect:!0})],Z.prototype,"id",2),n([l({type:String,reflect:!0})],Z.prototype,"triggerId",2),n([l({type:Boolean,reflect:!0})],Z.prototype,"visible",2),n([l({type:Number,reflect:!0,attribute:"z-index"})],Z.prototype,"zIndex",2),n([l({type:String,reflect:!0})],Z.prototype,"size",2),n([l({type:String,reflect:!0})],Z.prototype,"variant",2),n([l({type:String,attribute:"close-button-aria-label"})],Z.prototype,"closeButtonAriaLabel",2),n([l({type:String,reflect:!0,attribute:"aria-labelledby"})],Z.prototype,"ariaLabelledby",2),n([l({type:String,reflect:!0,attribute:"aria-label"})],Z.prototype,"ariaLabel",2),n([l({type:String,reflect:!0,attribute:"header-text"})],Z.prototype,"headerText",2),n([l({type:String,reflect:!0,attribute:"description-text"})],Z.prototype,"descriptionText",2),n([l({type:String,reflect:!0,attribute:"header-tag-name"})],Z.prototype,"headerTagName",2),n([l({type:String,reflect:!0,attribute:"description-tag-name"})],Z.prototype,"descriptionTagName",2),n([l({type:String,reflect:!0})],Z.prototype,"role",2);var _a=Z;_a.register(Vl);var qm=_a;var Fl=f.constructTagName("divider"),no={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Ra={SOLID:"solid",GRADIENT:"gradient"},ht={POSITIVE:"positive",NEGATIVE:"negative"},lo={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},Bt={ORIENTATION:no.HORIZONTAL,VARIANT:Ra.SOLID,ARROW_DIRECTION:ht.NEGATIVE,BUTTON_DIRECTION:ht.NEGATIVE};var Km=[N,u`
|
2306
2323
|
:host {
|
2307
2324
|
--mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
|
2308
2325
|
--mdc-divider-width: 0.0625rem;
|
@@ -2537,7 +2554,7 @@
|
|
2537
2554
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
2538
2555
|
cursor: auto;
|
2539
2556
|
}
|
2540
|
-
`,Hl=[Xm];var Gl=f.constructTagName("filterchip"),Ma={ICON_NAME:"check-bold",COLOR:"default"};var co=class extends Er{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=Ma.COLOR}setSelected(e){e?(this.iconName=Ma.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)}};co.styles=[...Er.styles,...Hl],n([l({type:Boolean,reflect:!0})],co.prototype,"selected",2);var Da=co;Da.register(Gl);var jm=Da;var
|
2557
|
+
`,Hl=[Xm];var Gl=f.constructTagName("filterchip"),Ma={ICON_NAME:"check-bold",COLOR:"default"};var co=class extends Er{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=Ma.COLOR}setSelected(e){e?(this.iconName=Ma.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)}};co.styles=[...Er.styles,...Hl],n([l({type:Boolean,reflect:!0})],co.prototype,"selected",2);var Da=co;Da.register(Gl);var jm=Da;var Qm=u`
|
2541
2558
|
|
2542
2559
|
:host::part(container) {
|
2543
2560
|
display: flex;
|
@@ -2554,10 +2571,10 @@
|
|
2554
2571
|
:host::part(label-text){
|
2555
2572
|
font-weight: bold;
|
2556
2573
|
}
|
2557
|
-
`,Yl=[Qm];var bi=class extends V(
|
2574
|
+
`,Yl=[Qm];var bi=class extends V(oe){constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){super.connectedCallback(),this.shouldRenderLabel=!1,this.id="",this.helpTextType=void 0,this.disabled=void 0}render(){var e;return m`
|
2558
2575
|
<div
|
2559
2576
|
part="container"
|
2560
|
-
role="${this.isRadio?
|
2577
|
+
role="${this.isRadio?B.RADIOGROUP:B.GROUP}"
|
2561
2578
|
aria-labelledby="${U.HEADING_ID}"
|
2562
2579
|
aria-describedby="${A(this.helpText?U.HELPER_TEXT_ID:"")}"
|
2563
2580
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
@@ -2568,7 +2585,7 @@
|
|
2568
2585
|
</div>
|
2569
2586
|
<slot></slot>
|
2570
2587
|
</div>
|
2571
|
-
`}};bi.styles=[...
|
2588
|
+
`}};bi.styles=[...oe.styles,...Yl];var $a=bi;var Wl=f.constructTagName("formfieldgroup");$a.register(Wl);var gi=$a;Yr.register(Uo);var Jm=Yr;var ep=[u`
|
2572
2589
|
:host{
|
2573
2590
|
--mdc-input-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
|
2574
2591
|
--mdc-input-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -2684,7 +2701,7 @@
|
|
2684
2701
|
opacity: 0;
|
2685
2702
|
pointer-events: none;
|
2686
2703
|
}
|
2687
|
-
`,..._(!0)],ql=ep;
|
2704
|
+
`,..._(!0)],ql=ep;oe.register(tl);var ye=oe;var Kl=f.constructTagName("input"),vi={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},za={OFF:"off",ON:"on"},Pa={TEXT:"text",SEARCH:"search"},Zl={MAX_LENGTH:10,VALIDATION:K.ERROR},Qe={VALIDATION:K.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:X.TERTIARY,CLEAR_BUTTON_SIZE:ct[20],PREFIX_TEXT_TYPE:E.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:C.SPAN,AUTO_COMPLETE:za.OFF,INPUT_TYPE:Pa.TEXT};var H=class extends ce(V(ye)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=vi.OFF;this.autocomplete=za.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,o){super.attributeChangedCallback(e,r,o),["maxlength","minlength","pattern","required"].includes(e)&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(s=>{this.onerror&&this.onerror(s)})}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?m`
|
2688
2705
|
<mdc-icon
|
2689
2706
|
class="leading-icon"
|
2690
2707
|
part="leading-icon"
|
@@ -2749,7 +2766,7 @@
|
|
2749
2766
|
<slot name="trailing-button">${this.renderTrailingButton()}</slot>
|
2750
2767
|
</div>
|
2751
2768
|
${this.helpText?this.renderHelperText():g}
|
2752
|
-
`}};
|
2769
|
+
`}};H.styles=[...ye.styles,...ql],n([l({type:String})],H.prototype,"placeholder",2),n([l({type:Boolean})],H.prototype,"readonly",2),n([l({type:String,attribute:"prefix-text"})],H.prototype,"prefixText",2),n([l({type:String,attribute:"leading-icon"})],H.prototype,"leadingIcon",2),n([l({type:Boolean,attribute:"trailing-button"})],H.prototype,"trailingButton",2),n([l({type:Number})],H.prototype,"maxlength",2),n([l({type:Number})],H.prototype,"minlength",2),n([l({type:String})],H.prototype,"autocapitalize",2),n([l({type:String})],H.prototype,"autocomplete",2),n([l({type:Boolean})],H.prototype,"autofocus",2),n([l({type:String})],H.prototype,"dirname",2),n([l({type:String})],H.prototype,"pattern",2),n([l({type:String})],H.prototype,"list",2),n([l({type:Number})],H.prototype,"size",2),n([l({type:String,attribute:"clear-aria-label"})],H.prototype,"clearAriaLabel",2);var Ir=H;Ir.register(Kl);var tp=Ir;var rp=u`
|
2753
2770
|
:host {
|
2754
2771
|
height: 1.5rem;
|
2755
2772
|
gap: 0.25rem;
|
@@ -2862,11 +2879,11 @@
|
|
2862
2879
|
length-unit="rem"
|
2863
2880
|
></mdc-icon>
|
2864
2881
|
`:g}
|
2865
|
-
`}};mo.styles=[...mt.styles,...jl],n([l({type:String,reflect:!0})],mo.prototype,"size",2);var Va=mo;Va.register(Ko);var ap=Va;mt.register(Pn);var sp=mt;var $={ARROW_DOWN:"ArrowDown",ARROW_UP:"ArrowUp",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SPACE:" "};var Ei=f.constructTagName("listitem"),Fa="dynamic-listitem-tooltip-popover",Ba="dynamic-listitem-tooltip-triggerid",po={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},Ha={VARIANT:po.FULL_WIDTH,TOOLTIP_PLACEMENT:
|
2882
|
+
`}};mo.styles=[...mt.styles,...jl],n([l({type:String,reflect:!0})],mo.prototype,"size",2);var Va=mo;Va.register(Ko);var ap=Va;mt.register(Pn);var sp=mt;var $={ARROW_DOWN:"ArrowDown",ARROW_UP:"ArrowUp",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SPACE:" "};var Ei=f.constructTagName("listitem"),Fa="dynamic-listitem-tooltip-popover",Ba="dynamic-listitem-tooltip-triggerid",po={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},Ha={VARIANT:po.FULL_WIDTH,TOOLTIP_PLACEMENT:ae.TOP};var Ql=f.constructTagName("list"),Ga="header-id";var np=u`
|
2866
2883
|
:host::part(header-text) {
|
2867
2884
|
padding: 0.5rem 0.75rem;
|
2868
2885
|
}
|
2869
|
-
`,Jl=[np];var Cr=class extends V(v){constructor(){super();this.dataRole=
|
2886
|
+
`,Jl=[np];var Cr=class extends V(v){constructor(){super();this.dataRole=B.LIST;this.addEventListener("keydown",this.handleKeyDown)}handleKeyDown(e){var a;let r=this.getCurrentIndex(e.target),o=this.getNewIndexBasedOnKey(e.key,r,this.listItems.length);o!==void 0&&((a=this.listItems[o])==null||a.focus(),this.resetTabIndexAndSetActiveTabIndex(o))}getCurrentIndex(e){return this.listItems.findIndex(r=>r===e||r===e.parentElement)}getNewIndexBasedOnKey(e,r,o){switch(e){case $.ARROW_DOWN:return(r+1)%o;case $.ARROW_UP:return(r-1+o)%o;case $.HOME:return 0;case $.END:return o-1;default:return}}handleMouseClick(e){let r=this.getCurrentIndex(e.target);this.resetTabIndexAndSetActiveTabIndex(r)}resetTabIndexAndSetActiveTabIndex(e){this.listItems.forEach((r,o)=>{let a=e===o?"0":"-1";r==null||r.setAttribute("tabindex",a)})}firstUpdated(){this.resetTabIndexAndSetActiveTabIndex(0)}render(){var r;let e=this.headerText?m`
|
2870
2887
|
<mdc-text
|
2871
2888
|
id="${Ga}"
|
2872
2889
|
part="header-text"
|
@@ -2882,7 +2899,7 @@
|
|
2882
2899
|
${e}
|
2883
2900
|
<slot role="presentation" @click="${this.handleMouseClick}"></slot>
|
2884
2901
|
</div>
|
2885
|
-
`}};Cr.styles=[...v.styles,...Jl],n([F({selector:`${Ei}:not([disabled])`})],Cr.prototype,"listItems",2),n([l({type:String,attribute:"header-text",reflect:!0})],Cr.prototype,"headerText",2);var Ya=Cr;Ya.register(Ql);var lp=Ya;var Ti=f.constructTagName("tooltip"),ue={DESCRIPTION:"description",LABEL:"label",NONE:"none"},ft={BACKDROP:!1,DELAY:"0,0",OFFSET:4,PLACEMENT:
|
2902
|
+
`}};Cr.styles=[...v.styles,...Jl],n([F({selector:`${Ei}:not([disabled])`})],Cr.prototype,"listItems",2),n([l({type:String,attribute:"header-text",reflect:!0})],Cr.prototype,"headerText",2);var Ya=Cr;Ya.register(Ql);var lp=Ya;var Ti=f.constructTagName("tooltip"),ue={DESCRIPTION:"description",LABEL:"label",NONE:"none"},ft={BACKDROP:!1,DELAY:"0,0",OFFSET:4,PLACEMENT:ae.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:ue.DESCRIPTION};var cp=u`
|
2886
2903
|
|
2887
2904
|
:host {
|
2888
2905
|
--mdc-tooltip-max-width: 400px;
|
@@ -2907,7 +2924,7 @@
|
|
2907
2924
|
:host([color='contrast'])::part(popover-content) {
|
2908
2925
|
color: var(--mdc-tooltip-text-color-contrast);
|
2909
2926
|
}
|
2910
|
-
`,ec=[cp];var kr=class extends ke{constructor(){super(...arguments);this.tooltipType=ft.TOOLTIP_TYPE}connectedCallback(){super.connectedCallback(),this.backdrop=!1,this.delay=this.delay||ft.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=this.offset||ft.OFFSET,this.placement=this.placement||ft.PLACEMENT,this.role=
|
2927
|
+
`,ec=[cp];var kr=class extends ke{constructor(){super(...arguments);this.tooltipType=ft.TOOLTIP_TYPE}connectedCallback(){super.connectedCallback(),this.backdrop=!1,this.delay=this.delay||ft.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=this.offset||ft.OFFSET,this.placement=this.placement||ft.PLACEMENT,this.role=B.TOOLTIP,this.trigger="mouseenter focusin",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(o=>o.textContent).join(" "))==null?void 0:r.trim())||""}setTooltipType(e){this.setAttribute("tooltip-type",Object.values(ue).includes(e)?e:ft.TOOLTIP_TYPE)}onIdUpdated(){this.id.length===0&&(this.id=`mdc-tooltip-${qe()}`);let e=document.getElementById(this.triggerID);if(e)switch(this.tooltipType){case ue.DESCRIPTION:e.setAttribute("aria-describedby",this.id);break;case ue.LABEL:e.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(ae).includes(this.placement)||(this.placement=ft.PLACEMENT)}onTooltipTypeUpdated(e){let r=e.get("tooltipType");Object.values(ue).includes(this.tooltipType)||this.setTooltipType(ft.TOOLTIP_TYPE);let o=document.getElementById(this.triggerID);if(o){let a=this.getTooltipText();switch(this.tooltipType){case ue.DESCRIPTION:r===ue.LABEL&&o.removeAttribute("aria-labelledby"),o.setAttribute("aria-describedby",this.id);break;case ue.LABEL:r===ue.DESCRIPTION&&o.removeAttribute("aria-describedby"),o.setAttribute("aria-labelledby",this.id);break;default:r===ue.DESCRIPTION?o.removeAttribute("aria-describedby"):r===ue.LABEL&&o.removeAttribute("aria-labelledby");break}a.length>0&&this.tooltipType!==ue.NONE&&!this.ariaLabel&&(this.ariaLabel=a)}}update(e){super.update(e),e.has("id")&&this.onIdUpdated(),e.has("placement")&&this.onPlacementUpdated(),e.has("tooltipType")&&this.onTooltipTypeUpdated(e)}};kr.styles=[...ke.styles,...ec],n([l({type:String,attribute:"tooltip-type",reflect:!0})],kr.prototype,"tooltipType",2),n([Mo()],kr.prototype,"defaultSlotNodes",2);var Wa=kr;Wa.register(Ti);var dp=Wa;var mp=u`
|
2911
2928
|
:host {
|
2912
2929
|
--mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
|
2913
2930
|
--mdc-listitem-background-color-hover: var(--mds-color-theme-background-primary-hover);
|
@@ -2989,7 +3006,7 @@
|
|
2989
3006
|
display: flex;
|
2990
3007
|
flex-direction: row;
|
2991
3008
|
}
|
2992
|
-
`,tc=[mp,..._()];var me=class extends P(Re(v)){constructor(){super();this.variant=Ha.VARIANT;this.tooltipPlacement=Ha.TOOLTIP_PLACEMENT;this.addEventListener("focusin",this.displayTooltipForLongText),this.addEventListener("mouseover",this.displayTooltipForLongText),this.addEventListener("focusout",this.hideTooltipOnLeave),this.addEventListener("mouseout",this.hideTooltipOnLeave),this.addEventListener("click",this.handleClick)}connectedCallback(){super.connectedCallback(),this.role=this.role||
|
3009
|
+
`,tc=[mp,..._()];var me=class extends P(Re(v)){constructor(){super();this.variant=Ha.VARIANT;this.tooltipPlacement=Ha.TOOLTIP_PLACEMENT;this.addEventListener("focusin",this.displayTooltipForLongText),this.addEventListener("mouseover",this.displayTooltipForLongText),this.addEventListener("focusout",this.hideTooltipOnLeave),this.addEventListener("mouseout",this.hideTooltipOnLeave),this.addEventListener("click",this.handleClick)}connectedCallback(){super.connectedCallback(),this.role=this.role||B.LISTITEM}handleClick(){this.hideTooltipOnLeave()}displayTooltipForLongText(){var r;if(!this.tooltipText)return;this.id=this.id||Ba;let e=document.createElement(Ti);e.id=Fa,e.textContent=this.tooltipText,e.setAttribute("triggerid",this.id),e.setAttribute("placement",this.tooltipPlacement),e.setAttribute("visible",""),e.setAttribute("show-arrow",""),(r=this.parentElement)==null||r.after(e)}hideTooltipOnLeave(){this.id=this.id===Ba?"":this.id;let e=document.querySelector(`#${Fa}`);e==null||e.remove()}getText(e,r,o){return o?m`
|
2993
3010
|
<slot name="${e}">
|
2994
3011
|
<mdc-text part="${e}" type="${r}" tagname="${C.SPAN}">${o}</mdc-text>
|
2995
3012
|
</slot>
|
@@ -3034,7 +3051,7 @@
|
|
3034
3051
|
var(--mdc-marker-striped-background-color) 0.375rem
|
3035
3052
|
);
|
3036
3053
|
}
|
3037
|
-
`,rc=[hp];var oc=f.constructTagName("marker"),ic={SOLID:"solid",STRIPED:"striped"};var ho=class extends v{constructor(){super(...arguments);this.variant=ic.SOLID}};ho.styles=[...v.styles,...rc],n([l({type:String,reflect:!0})],ho.prototype,"variant",2);var qa=ho;qa.register(oc);var up=qa;var Ai=class extends Je{connectedCallback(){super.connectedCallback(),this.role=
|
3054
|
+
`,rc=[hp];var oc=f.constructTagName("marker"),ic={SOLID:"solid",STRIPED:"striped"};var ho=class extends v{constructor(){super(...arguments);this.variant=ic.SOLID}};ho.styles=[...v.styles,...rc],n([l({type:String,reflect:!0})],ho.prototype,"variant",2);var qa=ho;qa.register(oc);var up=qa;var Ai=class extends Je{connectedCallback(){super.connectedCallback(),this.role=B.MENUITEM,this.variant=po.INSET_RECTANGLE}};Ai.styles=[...Je.styles];var et=Ai;var ac=f.constructTagName("menuitem");et.register(ac);var fp=et;var Si=f.constructTagName("optgroup"),Ka="header-id";var bp=u`
|
3038
3055
|
:host {
|
3039
3056
|
--mdc-optgroup-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
3040
3057
|
}
|
@@ -3186,7 +3203,7 @@
|
|
3186
3203
|
border: var(--mdc-progressbar-border);
|
3187
3204
|
}
|
3188
3205
|
}
|
3189
|
-
`],cc=Ep;var dc=f.constructTagName("progressbar"),Ii={DEFAULT:"default",INLINE:"inline"},mc={VARIANT:Ii.DEFAULT,VALIDATION:
|
3206
|
+
`],cc=Ep;var dc=f.constructTagName("progressbar"),Ii={DEFAULT:"default",INLINE:"inline"},mc={VARIANT:Ii.DEFAULT,VALIDATION:K.DEFAULT};var Yt=class extends V(ye){constructor(){super(...arguments);this.variant=mc.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var a;let e=this.getValidationVariant(),r=this.clampedValue>0&&this.clampedValue<100,o=this.error?"100":`${this.clampedValue}`;return m`
|
3190
3207
|
<div
|
3191
3208
|
part="progress-container ${r?"gap":""}"
|
3192
3209
|
role="progressbar"
|
@@ -3198,7 +3215,7 @@
|
|
3198
3215
|
<div part="progress-bar ${e}" style="width: ${o}%"></div>
|
3199
3216
|
<div part="remaining"></div>
|
3200
3217
|
</div>
|
3201
|
-
`}}connectedCallback(){super.connectedCallback(),this.id=`mdc-progressbar-${qe()}`,this.disabled=void 0}get clampedValue(){let e=Number(this.value);return Number.isNaN(e)?0:Math.max(0,Math.min(100,e))}getValidationVariant(){return this.error?this.helpTextType=
|
3218
|
+
`}}connectedCallback(){super.connectedCallback(),this.id=`mdc-progressbar-${qe()}`,this.disabled=void 0}get clampedValue(){let e=Number(this.value);return Number.isNaN(e)?0:Math.max(0,Math.min(100,e))}getValidationVariant(){return this.error?this.helpTextType=K.ERROR:this.clampedValue===100?this.helpTextType=K.SUCCESS:this.helpTextType=K.DEFAULT,this.helpTextType}render(){let e=this.variant===Ii.INLINE;return m`
|
3202
3219
|
${e?m`<div part="inline-label-container">${this.renderLabelElement()} ${this.renderProgressbar()}</div>`:m`
|
3203
3220
|
<div part="label-container">
|
3204
3221
|
${this.renderLabelElement()}
|
@@ -3251,7 +3268,7 @@
|
|
3251
3268
|
color: var(--mdc-progress-error-color);
|
3252
3269
|
margin: 0.5rem;
|
3253
3270
|
}
|
3254
|
-
`,pc=[Ap];var hc=f.constructTagName("progressspinner"),
|
3271
|
+
`,pc=[Ap];var hc=f.constructTagName("progressspinner"),G={RADIUS:20,CIRCUMFERENCE:2*Math.PI*20,STROKE_WIDTH:4,GAP_SIZE:7.5,ERROR_ICON_SIZE:2,SUCCESS_ICON_SIZE:3,ICON_LENGTH_UNIT:"em"},ja={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var Qa=i=>{if(i===0)return 0;let t=i/100*G.CIRCUMFERENCE-G.GAP_SIZE;return Math.max(t,.1*i)},uc=i=>{let t=G.CIRCUMFERENCE-Qa(i)-2*G.GAP_SIZE;return i===0?G.CIRCUMFERENCE:t<0?0:t},fc=i=>i===0?0:G.GAP_SIZE*.5,bc=(i,t)=>{let e=t+G.GAP_SIZE*1.5;return i===0?0:e};var Ci=class extends fo{connectedCallback(){super.connectedCallback(),this.id="",this.disabled=void 0,this.helpTextType=void 0,this.helpText=void 0,this.requiredLabel=void 0,this.variant=void 0,this.label=void 0}renderProgressSpinner(){var a;let t=Qa(this.clampedValue),e=uc(this.clampedValue),r=fc(this.clampedValue),o=bc(this.clampedValue,t);return m`
|
3255
3272
|
<div
|
3256
3273
|
part="spinner-container ${this.variant}"
|
3257
3274
|
role="progressbar"
|
@@ -3265,18 +3282,18 @@
|
|
3265
3282
|
part="spinner-track"
|
3266
3283
|
cx="24"
|
3267
3284
|
cy="24"
|
3268
|
-
r="${
|
3269
|
-
stroke-width="${e===0?0:
|
3270
|
-
stroke-dasharray="${e} ${
|
3285
|
+
r="${G.RADIUS}"
|
3286
|
+
stroke-width="${e===0?0:G.STROKE_WIDTH}"
|
3287
|
+
stroke-dasharray="${e} ${G.CIRCUMFERENCE}"
|
3271
3288
|
stroke-dashoffset="-${o}"
|
3272
3289
|
/>
|
3273
3290
|
<circle
|
3274
3291
|
part="spinner-progress"
|
3275
3292
|
cx="24"
|
3276
3293
|
cy="24"
|
3277
|
-
r="${
|
3278
|
-
stroke-width="${t===0?0:
|
3279
|
-
stroke-dasharray="${t} ${
|
3294
|
+
r="${G.RADIUS}"
|
3295
|
+
stroke-width="${t===0?0:G.STROKE_WIDTH}"
|
3296
|
+
stroke-dasharray="${t} ${G.CIRCUMFERENCE}"
|
3280
3297
|
stroke-dashoffset="-${r}"
|
3281
3298
|
/>
|
3282
3299
|
</svg>
|
@@ -3286,15 +3303,15 @@
|
|
3286
3303
|
part="error-icon"
|
3287
3304
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
3288
3305
|
name="${ja.ERROR_LEGACY_FILLED}"
|
3289
|
-
size="${
|
3290
|
-
length-unit="${
|
3306
|
+
size="${G.ERROR_ICON_SIZE}"
|
3307
|
+
length-unit="${G.ICON_LENGTH_UNIT}"></mdc-icon>
|
3291
3308
|
`}renderSuccessState(){var t;return m`
|
3292
3309
|
<mdc-icon
|
3293
3310
|
part="success-icon"
|
3294
3311
|
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
3295
3312
|
name="${ja.CHECK_CIRCLE_BOLD}"
|
3296
|
-
size="${
|
3297
|
-
length-unit="${
|
3313
|
+
size="${G.SUCCESS_ICON_SIZE}"
|
3314
|
+
length-unit="${G.ICON_LENGTH_UNIT}"></mdc-icon>
|
3298
3315
|
`}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():m`
|
3299
3316
|
${this.renderProgressSpinner()}`}};Ci.styles=[...v.styles,...pc];var Ja=Ci;Ja.register(hc);var Sp=Ja;var Ip=[N,u`
|
3300
3317
|
:host{
|
@@ -3383,7 +3400,7 @@
|
|
3383
3400
|
display: none;
|
3384
3401
|
}
|
3385
3402
|
|
3386
|
-
`,..._(!0)],gc=Ip;var Wt=class extends ce(V(
|
3403
|
+
`,..._(!0)],gc=Ip;var Wt=class extends ce(V(oe)){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?m`<div class="mdc-radio__label-container">
|
3387
3404
|
${this.renderLabel()}
|
3388
3405
|
${this.renderHelperText()}
|
3389
3406
|
</div>`:g}connectedCallback(){super.connectedCallback(),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(o=>{o.setComponentValidity(r)})}).catch(o=>{this.onerror&&this.onerror(o)})}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 o=r.some(c=>c.requiredLabel),a=!!r.find(c=>c.checked),s=o&&!a;this.setGroupValidity(r,!s)}this.internals.setFormValue(e)}handleChange(e){var a;if(this.disabled||this.readonly)return;this.getAllRadiosWithinSameGroup().forEach(s=>{var d;let c=(d=s.shadowRoot)==null?void 0:d.querySelector("input");c&&(s.checked=!1,c.checked=!1)}),this.checked=!0;let o=(a=this.shadowRoot)==null?void 0:a.querySelector("input");o&&(o.checked=!0),this.dispatchChangeEvent(e)}updateRadio(e,r,o){var a,s;(s=(a=e[r].shadowRoot)==null?void 0:a.querySelector("input"))==null||s.focus(),e[r].handleChange(o)}handleKeyDown(e){var s;if(this.disabled)return;let o=this.getAllRadiosWithinSameGroup().filter(c=>!c.disabled),a=o.indexOf(this);if(["ArrowDown","ArrowRight"].includes(e.key)){let c=(a+1)%o.length;this.updateRadio(o,c,e)}else if(["ArrowUp","ArrowLeft"].includes(e.key)){let c=(a-1+o.length)%o.length;this.updateRadio(o,c,e)}else e.key===" "&&this.updateRadio(o,a,e);this.updateTabIndex(),e.key==="Enter"&&((s=this.form)==null||s.requestSubmit())}updateTabIndex(){let e=this.getAllRadiosWithinSameGroup(),r=e.find(a=>a.checked),o=e.find(a=>!a.disabled);e.forEach(a=>{var c;let s=(c=a.shadowRoot)==null?void 0:c.querySelector("input");s&&(s.tabIndex=-1,(a===r||!r&&a===o)&&(s.tabIndex=0))})}update(e){super.update(e),e.has("checked")&&this.setActualFormValue()}render(){var e;return m`
|
@@ -3413,7 +3430,7 @@
|
|
3413
3430
|
/>
|
3414
3431
|
</mdc-staticradio>
|
3415
3432
|
${this.renderLabelAndHelperText()}
|
3416
|
-
`}};Wt.styles=[...
|
3433
|
+
`}};Wt.styles=[...oe.styles,...gc],n([l({type:Boolean,reflect:!0})],Wt.prototype,"checked",2),n([l({type:Boolean,reflect:!0})],Wt.prototype,"readonly",2),n([l({type:Boolean,reflect:!0})],Wt.prototype,"autofocus",2);var es=Wt;var ki=f.constructTagName("radio");es.register(ki);var Cp=es;var bo=class extends gi{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var e,r,o,a,s;(s=(a=(o=(r=Array.from(((e=this.shadowRoot)==null?void 0:e.querySelectorAll("slot"))||[]))==null?void 0:r.flatMap(c=>c.assignedElements({flatten:!0})))==null?void 0:o.filter(c=>c.tagName.toLowerCase()===ki||c.tagName.toLowerCase()===oi))==null?void 0:a.filter(c=>!c.hasAttribute("name")))==null||s.forEach(c=>{c.setAttribute("name",this.name),this.requiredLabel&&c.setAttribute("required-label",this.requiredLabel)})}};bo.styles=[...gi.styles],n([l({type:String})],bo.prototype,"name",2);var ts=bo;var vc=f.constructTagName("radiogroup");ts.register(vc);var kp=ts;var yc=f.constructTagName("screenreaderannouncer"),wp={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},Nr={ARIA_LIVE:wp.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4};var Np=[u`
|
3417
3434
|
:host {
|
3418
3435
|
display: none;
|
3419
3436
|
visibility: hidden;
|
@@ -3428,7 +3445,7 @@
|
|
3428
3445
|
white-space: nowrap;
|
3429
3446
|
width: 1px;
|
3430
3447
|
}
|
3431
|
-
`,e.appendChild(r),e.classList.add("mdc-screenreaderannouncer__visually-hidden"),document.body.appendChild(e)}}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=Nr.IDENTITY),this.createAnnouncementAriaLiveRegion()}disconnectedCallback(){super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements()}updated(e){e.has("identity")&&this.identity.length===0&&(this.identity=Nr.IDENTITY,this.createAnnouncementAriaLiveRegion()),e.has("announcement")&&this.announcement.length>0&&(this.announce(this.announcement,this.delay,this.timeout,this.dataAriaLive),this.announcement="")}};tt.styles=[...v.styles,...xc],n([l({type:String,reflect:!0})],tt.prototype,"announcement",2),n([l({type:String,reflect:!0})],tt.prototype,"identity",2),n([l({type:String,reflect:!0,attribute:"data-aria-live"})],tt.prototype,"dataAriaLive",2),n([l({type:Number,reflect:!0})],tt.prototype,"delay",2),n([l({type:Number,reflect:!0})],tt.prototype,"timeout",2);var rs=tt;rs.register(yc);var
|
3448
|
+
`,e.appendChild(r),e.classList.add("mdc-screenreaderannouncer__visually-hidden"),document.body.appendChild(e)}}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=Nr.IDENTITY),this.createAnnouncementAriaLiveRegion()}disconnectedCallback(){super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements()}updated(e){e.has("identity")&&this.identity.length===0&&(this.identity=Nr.IDENTITY,this.createAnnouncementAriaLiveRegion()),e.has("announcement")&&this.announcement.length>0&&(this.announce(this.announcement,this.delay,this.timeout,this.dataAriaLive),this.announcement="")}};tt.styles=[...v.styles,...xc],n([l({type:String,reflect:!0})],tt.prototype,"announcement",2),n([l({type:String,reflect:!0})],tt.prototype,"identity",2),n([l({type:String,reflect:!0,attribute:"data-aria-live"})],tt.prototype,"dataAriaLive",2),n([l({type:Number,reflect:!0})],tt.prototype,"delay",2),n([l({type:Number,reflect:!0})],tt.prototype,"timeout",2);var rs=tt;rs.register(yc);var Lp=rs;var _p=u`
|
3432
3449
|
|
3433
3450
|
:host::part(filters-container){
|
3434
3451
|
display: flex;
|
@@ -3455,7 +3472,7 @@
|
|
3455
3472
|
scrollbar-width: none;
|
3456
3473
|
}
|
3457
3474
|
|
3458
|
-
`,Ec=[
|
3475
|
+
`,Ec=[_p];var Tc=f.constructTagName("searchfield"),go={TYPE:Pa.SEARCH,ICON:"search-bold",CLOSE_BTN:!0,INPUT_CHIP_TAG:yi};var qt=class extends Ir{constructor(){super(...arguments);this.isInputFocused=!1;this.hasInputChips=!1}handleKeyDown(e){super.handleKeyDown(e),e.key==="Escape"&&this.clearInputText()}connectedCallback(){super.connectedCallback(),this.leadingIcon=go.ICON,this.trailingButton=go.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.requiredLabel=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderInputChips(){var e;this.hasInputChips=!!((e=this.inputChips)!=null&&e.length),this.inputChips&&this.inputChips.forEach(r=>{r.matches(go.INPUT_CHIP_TAG)||r.remove()})}firstUpdated(){this.inputElement.onfocus=()=>{this.isInputFocused=!0},this.inputElement.onblur=()=>{this.isInputFocused=!1}}clearInputText(){var e;super.clearInputText(),(e=this.inputChips)==null||e.forEach(r=>{r.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))})}render(){return m`
|
3459
3476
|
${this.renderLabelElement()}
|
3460
3477
|
<div class="${pr({"input-container":!0,"mdc-focus-ring":this.isInputFocused})}" part="input-container">
|
3461
3478
|
${this.renderLeadingIcon()}
|
@@ -3511,6 +3528,7 @@
|
|
3511
3528
|
background: var(--mdc-select-background-color);
|
3512
3529
|
display: flex;
|
3513
3530
|
gap: 0.375rem;
|
3531
|
+
align-items: center;
|
3514
3532
|
user-select: none;
|
3515
3533
|
}
|
3516
3534
|
:host::part(base-container):hover {
|
@@ -3530,6 +3548,9 @@
|
|
3530
3548
|
:host::part(selected) {
|
3531
3549
|
color: var(--mdc-select-selected-text-color);
|
3532
3550
|
}
|
3551
|
+
:host::part(selected-icon) {
|
3552
|
+
flex-shrink: 0;
|
3553
|
+
}
|
3533
3554
|
:host::part(icon-container) {
|
3534
3555
|
margin-left: auto;
|
3535
3556
|
display: flex;
|
@@ -3571,7 +3592,7 @@
|
|
3571
3592
|
:host([help-text-type="warning"])::part(base-container) {
|
3572
3593
|
border-color: var(--mdc-select-warning-border-color);
|
3573
3594
|
}
|
3574
|
-
`,Sc=[Op,..._(!0)];var
|
3595
|
+
`,Sc=[Op,..._(!0)];var ee=class extends ce(V(oe)){constructor(){super(...arguments);this.readonly=!1;this.height="auto";this.baseIconName=wi.ARROW_DOWN;this.selectedValue="";this.displayPopover=!1;this.activeDescendant="";this.popoverWidth="100%"}connectedCallback(){super.connectedCallback(),this.value=void 0,this.addEventListener("keydown",this.handleKeydown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeydown)}getAllValidOptions(){var e;return((e=this.optionsList)==null?void 0:e.map(r=>r.tagName.toLowerCase()===uo?r:r.tagName.toLowerCase()===Si?Array.from(r.children).filter(o=>o.tagName.toLowerCase()===uo):[]).flat())||[]}handlePopoverOpen(){this.displayPopover=!0,this.baseIconName=wi.ARROW_UP}handlePopoverClose(){this.displayPopover=!1,this.baseIconName=wi.ARROW_DOWN}updateTabIndexForAllOptions(e){var o;let r=!1;this.getAllValidOptions().forEach(a=>{a===e?(this.setSelectedValue(a),r=!0,a.setAttribute("selected",""),a.setAttribute("tabindex","0")):(a==null||a.setAttribute("tabindex","-1"),a==null||a.removeAttribute("selected"))}),!r&&((o=this.getAllValidOptions()[0])==null||o.setAttribute("tabindex","0"))}handleOptionsClick(e){this.updateTabIndexForAllOptions(e.target)}setSelectedValue(e){var r,o,a,s;this.selectedValueText=(o=(r=e==null?void 0:e.getAttribute("label"))!=null?r:e==null?void 0:e.textContent)!=null?o:"",this.selectedIcon=e==null?void 0:e.getAttribute("prefix-icon"),this.selectedValue=(s=(a=e==null?void 0:e.getAttribute("value"))!=null?a:e==null?void 0:e.textContent)!=null?s:"",this.internals.setFormValue(this.selectedValue),this.manageRequired(),this.dispatchChange(this.selectedValue)}manageRequired(){!this.selectedValue&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.selectedValue="",this.selectedValueText=void 0,this.selectedIcon=null,this.internals.setFormValue(this.selectedValue),this.updateTabIndexForAllOptions()}formStateRestoreCallback(e){this.selectedValue=e,this.selectedValueText=e}dispatchChange(e){e&&this.dispatchEvent(new CustomEvent("change",{detail:{value:e},composed:!0,bubbles:!0}))}handleKeydown(e){this.displayPopover?this.handlePopoverOnOpen(e):this.handlePopoverOnClose(e)}handlePopoverOnOpen(e){var r;switch(e.key){case $.SPACE:this.updateTabIndexForAllOptions(e.target),this.closePopover(),e.preventDefault();break;case $.ENTER:this.updateTabIndexForAllOptions(e.target),this.closePopover(),e.preventDefault(),(r=this.form)==null||r.requestSubmit();break;case $.ESCAPE:this.closePopover(),e.stopPropagation();break;case $.HOME:this.setFocusAndTabIndex(0),e.preventDefault();break;case $.END:this.setFocusAndTabIndex(this.getAllValidOptions().length-1),e.preventDefault();break;case $.ARROW_DOWN:case $.ARROW_UP:case $.PAGE_DOWN:case $.PAGE_UP:this.handleOptionsNavigation(e),this.updateActivedescendant(e.target);break;default:break}}handlePopoverOnClose(e){switch(e.key){case $.ARROW_DOWN:case $.ARROW_UP:case $.ENTER:case $.SPACE:this.openPopover(),e.preventDefault();break;case $.HOME:this.openPopover(),this.setFocusAndTabIndex(0),e.preventDefault();break;case $.END:this.openPopover(),this.setFocusAndTabIndex(this.getAllValidOptions().length-1),e.preventDefault();break;default:break}}handleOptionsNavigation(e){let r=this.getAllValidOptions(),o=r.findIndex(s=>s===e.target),a=this.getNewIndexBasedOnKey(e.key,o,r.length);a!==-1&&(this.setFocusAndTabIndex(a),e.preventDefault())}getNewIndexBasedOnKey(e,r,o){return e===$.ARROW_DOWN&&r!==o-1?r+1:e===$.ARROW_UP&&r>0?r-1:e===$.PAGE_DOWN?r+10>o?o-1:r+10:e===$.PAGE_UP?r-10<0?0:r-10:-1}updateActivedescendant(e){var o,a;let r=this.getAllValidOptions().findIndex(s=>s===e);this.activeDescendant=(a=(o=this.getAllValidOptions()[r])==null?void 0:o.id)!=null?a:""}resetActivedescendant(){this.activeDescendant=""}setFocusAndTabIndex(e){var r;(r=this.getAllValidOptions()[e])==null||r.focus(),this.getAllValidOptions().forEach((o,a)=>{let s=e===a?"0":"-1";o==null||o.setAttribute("tabindex",s)})}openPopover(){this.displayPopover=!0,this.resetActivedescendant()}closePopover(){this.displayPopover=!1,this.resetActivedescendant()}firstUpdated(){let e=this.getAllValidOptions(),r=e.findIndex(o=>o==null?void 0:o.hasAttribute("selected"));r!==-1?(this.setSelectedValue(e[r]),this.updateTabIndexForAllOptions(e[r])):this.placeholder?this.placeholder&&this.manageRequired():(this.setSelectedValue(e[0]),this.updateTabIndexForAllOptions())}getNativeSelect(){return m`
|
3575
3596
|
<select
|
3576
3597
|
part="native-select"
|
3577
3598
|
id="${this.id}"
|
@@ -3606,7 +3627,7 @@
|
|
3606
3627
|
focus-back-to-trigger
|
3607
3628
|
focus-trap
|
3608
3629
|
role="listbox"
|
3609
|
-
placement="${
|
3630
|
+
placement="${ae.BOTTOM_START}"
|
3610
3631
|
@shown="${this.handlePopoverOpen}"
|
3611
3632
|
@hidden="${this.handlePopoverClose}"
|
3612
3633
|
style="--mdc-popover-max-width: ${this.popoverWidth}; --mdc-popover-max-height: ${this.height};"
|
@@ -3628,6 +3649,7 @@
|
|
3628
3649
|
aria-labelledby="${this.label?U.HEADING_ID:""}"
|
3629
3650
|
aria-expanded="${this.displayPopover?"true":"false"}"
|
3630
3651
|
>
|
3652
|
+
${this.selectedIcon?m`<mdc-icon length-unit="rem" size="1" name="${this.selectedIcon}" part="selected-icon"></mdc-icon>`:g}
|
3631
3653
|
<mdc-text
|
3632
3654
|
part="base-text ${this.selectedValueText?"selected":""}"
|
3633
3655
|
type="${E.BODY_MIDSIZE_REGULAR}"
|
@@ -3643,7 +3665,7 @@
|
|
3643
3665
|
${this.getPopoverContent()}
|
3644
3666
|
</div>
|
3645
3667
|
${this.renderHelperText()}
|
3646
|
-
`}};
|
3668
|
+
`}};ee.styles=[...oe.styles,...Sc],n([l({type:String})],ee.prototype,"placeholder",2),n([l({type:Boolean})],ee.prototype,"readonly",2),n([l({type:String})],ee.prototype,"height",2),n([F()],ee.prototype,"optionsList",2),n([L()],ee.prototype,"baseIconName",2),n([L()],ee.prototype,"selectedValueText",2),n([L()],ee.prototype,"selectedIcon",2),n([L()],ee.prototype,"selectedValue",2),n([L()],ee.prototype,"displayPopover",2),n([L()],ee.prototype,"activeDescendant",2),n([L()],ee.prototype,"popoverWidth",2),n([Be("select")],ee.prototype,"inputElement",2);var is=ee;is.register(Ac);var Mp=is;var Dp=[N,u`
|
3647
3669
|
:host {
|
3648
3670
|
--mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
|
3649
3671
|
--mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
|
@@ -3788,7 +3810,7 @@
|
|
3788
3810
|
border: var(--mdc-statictoggle-border);
|
3789
3811
|
}
|
3790
3812
|
}
|
3791
|
-
`],
|
3813
|
+
`],Lc=Vp;var Lr=class extends P(v){constructor(){super(...arguments);this.checked=!1;this.size=Nc.SIZE}render(){return m`
|
3792
3814
|
<slot></slot>
|
3793
3815
|
<div part="slider">
|
3794
3816
|
<mdc-icon
|
@@ -3798,7 +3820,7 @@
|
|
3798
3820
|
size="${wc[this.size]}"
|
3799
3821
|
></mdc-icon>
|
3800
3822
|
</div>
|
3801
|
-
`}};
|
3823
|
+
`}};Lr.styles=[...v.styles,...Lc],n([l({type:Boolean,reflect:!0})],Lr.prototype,"checked",2),n([l({type:String,reflect:!0})],Lr.prototype,"size",2);var ns=Lr;ns.register(kc);var Fp=ns;var Bp=[N,u`
|
3802
3824
|
|
3803
3825
|
:host {
|
3804
3826
|
--mdc-tab-content-gap: 0.5rem;
|
@@ -4042,7 +4064,7 @@
|
|
4042
4064
|
color: var(--mdc-tab-pill-active-color-disabled);
|
4043
4065
|
}
|
4044
4066
|
|
4045
|
-
`,..._()],
|
4067
|
+
`,..._()],_c=Bp;var Rc=f.constructTagName("tab"),ls={GLASS:"glass",LINE:"line",PILL:"pill"},Li={VARIANT:ls.PILL,ACTIVE:!1};var gt=class extends ne(se){constructor(){super(...arguments);this.active=Li.ACTIVE;this.variant=Li.VARIANT;this.handleTabActiveChange=e=>{let r=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:e},bubbles:!0});this.dispatchEvent(r)}}connectedCallback(){super.connectedCallback(),this.role="tab",this.softDisabled=void 0,this.size=void 0,this.type=void 0,this.ariaStateKey="aria-selected",!this.tabId&&this.onerror&&this.onerror("tab id is required")}modifyIconName(e){this.iconName&&(e?(this.prevIconName=this.iconName,this.iconName=`${Jr(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(e){this.setAttribute("variant",Object.values(ls).includes(e)?e:Li.VARIANT)}setActive(e,r){super.setActive(e,r),this.modifyIconName(r)}executeAction(){this.handleTabActiveChange(this.active)}update(e){super.update(e),e.has("variant")&&this.setVariant(this.variant)}render(){return m`
|
4046
4068
|
<div part="container">
|
4047
4069
|
${this.iconName?m` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:g}
|
4048
4070
|
${this.text?m` <mdc-text
|
@@ -4056,7 +4078,7 @@
|
|
4056
4078
|
<slot name="chip"></slot>
|
4057
4079
|
</div>
|
4058
4080
|
<div part="indicator"></div>
|
4059
|
-
`}};gt.styles=[...se.styles,...
|
4081
|
+
`}};gt.styles=[...se.styles,..._c],n([l({type:Boolean,reflect:!0})],gt.prototype,"active",2),n([l({type:String,reflect:!0})],gt.prototype,"text",2),n([l({type:String,reflect:!0})],gt.prototype,"variant",2),n([l({type:String,reflect:!0,attribute:"tab-id"})],gt.prototype,"tabId",2);var fe=gt;fe.register(Rc);var Hp=fe;var Gp=[Do,u`
|
4060
4082
|
:host {
|
4061
4083
|
--mdc-tablist-focus-ring-outer-width: var(--mdc-focus-ring-outer-width);
|
4062
4084
|
--mdc-tablist-gap: 0.5rem;
|
@@ -4086,10 +4108,10 @@
|
|
4086
4108
|
:host mdc-button[prefix-icon="arrow-right-regular"] {
|
4087
4109
|
margin-left: var(--mdc-tablist-arrow-button-margin);
|
4088
4110
|
}
|
4089
|
-
`],Oc=[...Gp];var Mc=f.constructTagName("tablist"),vo={LEFT:"ArrowLeft",RIGHT:"ArrowRight",HOME:"Home",END:"End"},
|
4111
|
+
`],Oc=[...Gp];var Mc=f.constructTagName("tablist"),vo={LEFT:"ArrowLeft",RIGHT:"ArrowRight",HOME:"Home",END:"End"},_r={FORWARD:"forward",BACKWARD:"backward"};var _i=i=>i[0],cs=i=>i[i.length-1],Dc=(i,t)=>{let e=i.findIndex(r=>t===r)-1;return i[(e+i.length)%i.length]},$c=(i,t)=>{let e=i.findIndex(r=>t===r)+1;return i[e%i.length]},zc=(i,t)=>i.find(e=>e.tabId===t),ds=i=>i.find(t=>t.active);var we=class extends v{constructor(){super();this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.isRtl=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"};this.fireTabChangeEvent=e=>{let r=new CustomEvent("change",{detail:{tabId:e.tabId}});this.dispatchEvent(r)};this.handleFocus=async e=>{if(e.relatedTarget instanceof fe||!(e.target instanceof fe))return;let r=ds(this.tabs||[]);r instanceof fe&&await this.focusTab(r)};this.handleMousedown=e=>{e.target instanceof fe&&e.preventDefault()};this.handleNestedTabActiveChange=async e=>{e.stopPropagation();let r=e.target;r instanceof fe&&(this.setActiveTab(r),await this.focusTab(r),this.activeTabId=r.tabId)};this.resetTabIndexAndSetNewTabIndex=e=>{var r;(r=this.tabs)==null||r.forEach(o=>{o.setAttribute("tabindex",o===e?"0":"-1")})};this.setActiveTab=e=>{var r;(r=this.tabs)==null||r.forEach(o=>{o===e?o.setAttribute("active",""):o.removeAttribute("active")})};this.focusTab=async e=>{e instanceof fe&&(e!==(document==null?void 0:document.activeElement)&&(this.resetTabIndexAndSetNewTabIndex(e),e.focus()),e.scrollIntoView({behavior:"instant",block:"start",inline:"center"}),await this.handleArrowButtonVisibility())};this.handleKeydown=async e=>{let r=e.target;if(!(r instanceof fe)||!this.tabs)return;let o=Dc(this.tabs,r),a=$c(this.tabs,r),s=_i(this.tabs),c=cs(this.tabs);switch(e.code){case vo.LEFT:e.preventDefault(),await this.focusTab(this.isRtl()?a:o);break;case vo.RIGHT:e.preventDefault(),await this.focusTab(this.isRtl()?o:a);break;case vo.HOME:await this.focusTab(s);break;case vo.END:await this.focusTab(c);break;default:}};this.shouldShowArrowButton=e=>e===_r.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton;this.switchFocus=async()=>{var e,r;await this.updateComplete,!this.showBackwardArrowButton&&!this.showForwardArrowButton?(e=ds(this.tabs||[]))==null||e.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((r=this.notFocusedArrowButton)==null||r.focus())};this.handleArrowButtonVisibility=async()=>{var b,x,y;if(!this.tabs||!this.tabsContainer)return;let e=!1;((b=this.shadowRoot)==null?void 0:b.activeElement)instanceof kt&&(e=!0);let r=_i(this.tabs),o=cs(this.tabs),a=r.getBoundingClientRect().left,s=(x=this.tabsContainer)==null?void 0:x.getBoundingClientRect().left,c=o.getBoundingClientRect().right,d=(y=this.tabsContainer)==null?void 0:y.getBoundingClientRect().right,p=r.getBoundingClientRect().right,h=o.getBoundingClientRect().left;if(!this.isRtl()){a<=s?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,c>d?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,e&&await this.switchFocus();return}p>d?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,h<s?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,e&&await this.switchFocus()};this.scrollTabs=async e=>{var a;let r=this.isRtl()?-1:1,o=this.isRtl()?1:-1;(a=this.tabsContainer)==null||a.scrollBy({left:this.tabsContainer.clientWidth*(e===_r.FORWARD?r:o),behavior:"instant"}),await this.handleArrowButtonVisibility()};this.addEventListener("keydown",this.handleKeydown),this.addEventListener("activechange",this.handleNestedTabActiveChange)}async firstUpdated(){var o,a,s;if(!this.tabs)return;if(Array.isArray(this.tabs)&&this.tabs.length===0){this.onerror&&this.onerror("The tablist component must have at least one child tab");return}let e=this.tabs.map(c=>c.tabId);new Set(e).size!==this.tabs.length&&this.onerror&&this.onerror("The tabs inside the tab list must have unique tab ids"),new ResizeObserver(async()=>{let{activeElement:c}=document;c instanceof fe&&c.scrollIntoView({behavior:"instant",block:"start",inline:"center"}),await this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(o=_i(this.tabs))==null?void 0:o.tabId),(a=this.tabsContainer)==null||a.addEventListener("focusin",this.handleFocus),(s=this.tabsContainer)==null||s.addEventListener("mousedown",this.handleMousedown)}async update(e){if(super.update(e),e.has("activeTabId")){if(!this.tabs||!this.activeTabId)return;let r=zc(this.tabs,this.activeTabId);if(!(r instanceof fe))return;this.setActiveTab(r),e.get("activeTabId")?(this.fireTabChangeEvent(r),await this.focusTab(r)):this.resetTabIndexAndSetNewTabIndex(r)}}render(){let e=this.isRtl()?"left":"right",r=this.isRtl()?"right":"left",o=a=>m` ${this.shouldShowArrowButton(a)?m`<mdc-button
|
4090
4112
|
variant="tertiary"
|
4091
|
-
prefix-icon="arrow-${a===
|
4092
|
-
aria-label="Scroll tabs ${a===
|
4113
|
+
prefix-icon="arrow-${a===_r.FORWARD?e:r}-regular"
|
4114
|
+
aria-label="Scroll tabs ${a===_r.FORWARD?e:r}"
|
4093
4115
|
@click="${()=>this.scrollTabs(a)}"
|
4094
4116
|
></mdc-button>`:g}`;return m` ${o("backward")}
|
4095
4117
|
<div
|
@@ -4099,7 +4121,7 @@
|
|
4099
4121
|
aria-label="${A(this.dataAriaLabel)}">
|
4100
4122
|
<slot></slot>
|
4101
4123
|
</div>
|
4102
|
-
${o(
|
4124
|
+
${o(_r.FORWARD)}`}};we.styles=[...v.styles,...Oc],n([l({type:String,attribute:"active-tab-id",reflect:!0})],we.prototype,"activeTabId",2),n([l({type:String,attribute:"data-aria-label"})],we.prototype,"dataAriaLabel",2),n([Be(".container")],we.prototype,"tabsContainer",2),n([Be("mdc-button:not(:focus-visible)")],we.prototype,"notFocusedArrowButton",2),n([F({selector:"mdc-tab"})],we.prototype,"tabs",2),n([L()],we.prototype,"showForwardArrowButton",2),n([L()],we.prototype,"showBackwardArrowButton",2);var ms=we;ms.register(Mc);var Yp=ms;var Wp=[u`
|
4103
4125
|
:host {
|
4104
4126
|
--mdc-textarea-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
|
4105
4127
|
--mdc-textarea-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -4220,7 +4242,7 @@
|
|
4220
4242
|
pointer-events: none;
|
4221
4243
|
}
|
4222
4244
|
|
4223
|
-
`,..._(!0)],Pc=Wp;var Uc=f.constructTagName("textarea"),ps={HARD:"hard",SOFT:"soft"},Vc={OFF:"off",ON:"on"},Ri={CHARACTER_COUNTER_TYPE:E.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:ps.SOFT};var
|
4245
|
+
`,..._(!0)],Pc=Wp;var Uc=f.constructTagName("textarea"),ps={HARD:"hard",SOFT:"soft"},Vc={OFF:"off",ON:"on"},Ri={CHARACTER_COUNTER_TYPE:E.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:ps.SOFT};var Q=class extends ce(V(ye)){constructor(){super(...arguments);this.readonly=!1;this.rows=Ri.ROWS;this.cols=Ri.COLS;this.wrap=ps.SOFT;this.autocapitalize=vi.OFF;this.autocomplete=Vc.OFF;this.autofocus=!1;this.characterLimitExceedingFired=!1}get textarea(){return this.inputElement}connectedCallback(){var e;super.connectedCallback(),this.value=((e=this.textContent)==null?void 0:e.trim())||this.value,this.updateComplete.then(()=>{this.textarea&&(this.textarea.checkValidity(),this.setTextareaValidity(),this.internals.setFormValue(this.textarea.value))}).catch(r=>{this.onerror&&this.onerror(r)})}setTextareaValidity(){this.requiredLabel&&this.validationMessage&&this.value===""?this.textarea.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===K.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,o){super.attributeChangedCallback(e,r,o),["maxlength","minlength","required"].includes(e)&&this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(s=>{this.onerror&&this.onerror(s)})}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?m`
|
4224
4246
|
<mdc-text
|
4225
4247
|
part="character-counter"
|
4226
4248
|
tagname="span"
|
@@ -4262,7 +4284,7 @@
|
|
4262
4284
|
></textarea>
|
4263
4285
|
</div>
|
4264
4286
|
${this.renderTextareaFooter()}
|
4265
|
-
`}};
|
4287
|
+
`}};Q.styles=[...ye.styles,...Pc],n([l({type:String})],Q.prototype,"placeholder",2),n([l({type:Boolean})],Q.prototype,"readonly",2),n([l({type:Number})],Q.prototype,"rows",2),n([l({type:Number})],Q.prototype,"cols",2),n([l({type:String})],Q.prototype,"wrap",2),n([l({type:String})],Q.prototype,"autocapitalize",2),n([l({type:String})],Q.prototype,"autocomplete",2),n([l({type:Boolean})],Q.prototype,"autofocus",2),n([l({type:String})],Q.prototype,"dirname",2),n([l({type:Number})],Q.prototype,"maxlength",2),n([l({type:Number})],Q.prototype,"minlength",2),n([l({type:Number,attribute:"max-character-limit"})],Q.prototype,"maxCharacterLimit",2),n([Be("textarea")],Q.prototype,"inputElement",2);var hs=Q;hs.register(Uc);var qp=hs;var Oi=f.constructTagName("themeprovider"),us={THEMECLASS:"mds-theme-stable-darkWebex"};var Mi=class{constructor(t){this.themeclass=t}};Mi.context=Oi;var Di=Mi;var Kp=u`
|
4266
4288
|
:host {
|
4267
4289
|
--mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
|
4268
4290
|
--mdc-themeprovider-font-family: var(--mds-font-family-primary);
|
@@ -4402,7 +4424,7 @@
|
|
4402
4424
|
</mdc-statictoggle>
|
4403
4425
|
${this.renderLabel()}
|
4404
4426
|
${this.renderHelperText()}
|
4405
|
-
`}};Kt.styles=[...ye.styles,...Hc],n([l({type:Boolean,reflect:!0})],Kt.prototype,"checked",2),n([l({type:String,reflect:!0})],Kt.prototype,"size",2),n([l({type:Boolean,reflect:!0})],Kt.prototype,"autofocus",2);var gs=Kt;gs.register(Bc);var jp=gs;var Gc=f.constructTagName("toggletip"),Zt={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:
|
4427
|
+
`}};Kt.styles=[...ye.styles,...Hc],n([l({type:Boolean,reflect:!0})],Kt.prototype,"checked",2),n([l({type:String,reflect:!0})],Kt.prototype,"size",2),n([l({type:Boolean,reflect:!0})],Kt.prototype,"autofocus",2);var gs=Kt;gs.register(Bc);var jp=gs;var Gc=f.constructTagName("toggletip"),Zt={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:ae.TOP,CLICK:$t.CLICK,SHOW_ARROW:!0};var Qp=u`
|
4406
4428
|
:host {
|
4407
4429
|
--mdc-toggletip-max-width: 400px;
|
4408
4430
|
--mdc-toggletip-text-color: var(--mds-color-theme-text-primary-normal);
|
@@ -4432,7 +4454,7 @@
|
|
4432
4454
|
:host(:dir(rtl))::part(popover-content) {
|
4433
4455
|
margin-left: 2rem;
|
4434
4456
|
}
|
4435
|
-
`,Yc=[Qp];var Xt=class extends ke{constructor(){super(...arguments);this.currentAnnouncement="";this.screenreaderAnnouncerIdentity=""}connectedCallback(){super.connectedCallback(),this.closeButton=Zt.CLOSE_BUTTON,this.closeButtonAriaLabel=Zt.CLOSE_BUTTON_ARIA_LABEL,this.placement=Zt.PLACEMENT,this.trigger=Zt.CLICK,this.showArrow=Zt.SHOW_ARROW,this.interactive=!0,this.backdrop=!0,this.hideOnBlur=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0}getToggleTipText(){var e,r;return((r=(e=this.defaultSlotNodes)==null?void 0:e.map(o=>o.textContent).join(" "))==null?void 0:r.trim())||""}onPlacementUpdated(){Object.values(
|
4457
|
+
`,Yc=[Qp];var Xt=class extends ke{constructor(){super(...arguments);this.currentAnnouncement="";this.screenreaderAnnouncerIdentity=""}connectedCallback(){super.connectedCallback(),this.closeButton=Zt.CLOSE_BUTTON,this.closeButtonAriaLabel=Zt.CLOSE_BUTTON_ARIA_LABEL,this.placement=Zt.PLACEMENT,this.trigger=Zt.CLICK,this.showArrow=Zt.SHOW_ARROW,this.interactive=!0,this.backdrop=!0,this.hideOnBlur=!0,this.hideOnEscape=!0,this.hideOnOutsideClick=!0,this.disableAriaExpanded=!1,this.focusBackToTrigger=!0}getToggleTipText(){var e,r;return((r=(e=this.defaultSlotNodes)==null?void 0:e.map(o=>o.textContent).join(" "))==null?void 0:r.trim())||""}onPlacementUpdated(){Object.values(ae).includes(this.placement)||(this.placement=Zt.PLACEMENT)}update(e){super.update(e),e.has("placement")&&this.onPlacementUpdated(),e.has("visible")&&(this.currentAnnouncement=this.visible?this.getToggleTipText():"")}render(){return m`
|
4436
4458
|
${super.render()}
|
4437
4459
|
<mdc-screenreaderannouncer
|
4438
4460
|
identity="${this.screenreaderAnnouncerIdentity}"
|
@@ -4442,7 +4464,7 @@
|
|
4442
4464
|
`}};Xt.styles=[...ke.styles,...Yc],n([Mo()],Xt.prototype,"defaultSlotNodes",2),n([L()],Xt.prototype,"currentAnnouncement",2),n([l({type:String,reflect:!0,attribute:"screenreader-announcer-identity"})],Xt.prototype,"screenreaderAnnouncerIdentity",2);var vs=Xt;vs.register(Gc);var Jp=vs;function jt(i,t,e){var a;let r=(a=e.initialDeps)!=null?a:[],o;return()=>{var s,c,d,p;let h;e.key&&((s=e.debug)!=null&&s.call(e))&&(h=Date.now());let b=i();if(!(b.length!==r.length||b.some((T,S)=>r[S]!==T)))return o;r=b;let y;if(e.key&&((c=e.debug)!=null&&c.call(e))&&(y=Date.now()),o=t(...b),e.key&&((d=e.debug)!=null&&d.call(e))){let T=Math.round((Date.now()-h)*100)/100,S=Math.round((Date.now()-y)*100)/100,k=S/16,I=(w,O)=>{for(w=String(w);w.length<O;)w=" "+w;return w};console.info(`%c\u23F1 ${I(S,5)} /${I(T,5)} ms`,`
|
4443
4465
|
font-size: .6rem;
|
4444
4466
|
font-weight: bold;
|
4445
|
-
color: hsl(${Math.max(0,Math.min(120-120*k,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(p=e==null?void 0:e.onChange)==null||p.call(e,o),o}}function $i(i,t){if(i===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return i}var Wc=(i,t)=>Math.abs(i-t)<1,qc=(i,t,e)=>{let r;return function(...o){i.clearTimeout(r),r=i.setTimeout(()=>t.apply(this,o),e)}};var eh=i=>i,th=i=>{let t=Math.max(i.startIndex-i.overscan,0),e=Math.min(i.endIndex+i.overscan,i.count-1),r=[];for(let o=t;o<=e;o++)r.push(o);return r},Zc=(i,t)=>{let e=i.scrollElement;if(!e)return;let r=i.targetWindow;if(!r)return;let o=s=>{let{width:c,height:d}=s;t({width:Math.round(c),height:Math.round(d)})};if(o(e.getBoundingClientRect()),!r.ResizeObserver)return()=>{};let a=new r.ResizeObserver(s=>{let c=s[0];if(c!=null&&c.borderBoxSize){let d=c.borderBoxSize[0];if(d){o({width:d.inlineSize,height:d.blockSize});return}}o(e.getBoundingClientRect())});return a.observe(e,{box:"border-box"}),()=>{a.unobserve(e)}},Kc={passive:!0};var rh=typeof window>"u"?!0:"onscrollend"in window,Xc=(i,t)=>{let e=i.scrollElement;if(!e)return;let r=i.targetWindow;if(!r)return;let o=0,a=i.options.useScrollendEvent&&rh?()=>{}:qc(r,()=>{t(o,!1)},i.options.isScrollingResetDelay),s=p=>()=>{let{horizontal:h,isRtl:b}=i.options;o=h?e.scrollLeft*(b&&-1||1):e.scrollTop,a(),t(o,p)},c=s(!0),d=s(!1);return d(),e.addEventListener("scroll",c,Kc),e.addEventListener("scrollend",d,Kc),()=>{e.removeEventListener("scroll",c),e.removeEventListener("scrollend",d)}};var oh=(i,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(i.getBoundingClientRect()[e.options.horizontal?"width":"height"])};var jc=(i,{adjustments:t=0,behavior:e},r)=>{var o,a;let s=i+t;(a=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||a.call(o,{[r.options.horizontal?"left":"top"]:s,behavior:e})},zi=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(o=>{o.forEach(a=>{this._measureElement(a.target,a)})}));return{disconnect:()=>{var o;(o=r())==null||o.disconnect(),e=null},observe:o=>{var a;return(a=r())==null?void 0:a.observe(o,{box:"border-box"})},unobserve:o=>{var a;return(a=r())==null?void 0:a.unobserve(o)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([r,o])=>{typeof o>"u"&&delete e[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:eh,rangeExtractor:th,onChange:()=>{},measureElement:oh,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,o;(o=(r=this.options).onChange)==null||o.call(r,this,e)},this.maybeNotify=jt(()=>(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 o;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=(o=(e=this.scrollElement)==null?void 0:e.window)!=null?o:null,this.elementsCache.forEach(a=>{this.observer.observe(a)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(a,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<a?"forward":"backward":null,this.scrollOffset=a,this.isScrolling=s,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 o=new Map,a=new Map;for(let s=r-1;s>=0;s--){let c=e[s];if(o.has(c.lane))continue;let d=a.get(c.lane);if(d==null||c.end>d.end?a.set(c.lane,c):c.end<d.end&&o.set(c.lane,!0),o.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((s,c)=>s.end===c.end?s.index-c.index:s.end-c.end)[0]:void 0},this.getMeasurementOptions=jt(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,r,o,a,s)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:r,scrollMargin:o,getItemKey:a,enabled:s}),{key:!1}),this.getMeasurements=jt(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:r,scrollMargin:o,getItemKey:a,enabled:s},c)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(h=>{this.itemSizeCache.set(h.key,h.size)}));let d=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let p=this.measurementsCache.slice(0,d);for(let h=d;h<e;h++){let b=a(h),x=this.options.lanes===1?p[h-1]:this.getFurthestMeasurement(p,h),y=x?x.end+this.options.gap:r+o,T=c.get(b),S=typeof T=="number"?T:this.options.estimateSize(h),k=y+S,I=x?x.lane:h%this.options.lanes;p[h]={index:h,start:y,size:S,end:k,key:b,lane:I}}return this.measurementsCache=p,p},{key:!1,debug:()=>this.options.debug}),this.calculateRange=jt(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,r,o)=>this.range=e.length>0&&r>0?ih({measurements:e,outerSize:r,scrollOffset:o}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=jt(()=>{let e=null,r=null,o=this.calculateRange();return o&&(e=o.startIndex,r=o.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,r]},(e,r,o,a,s)=>a===null||s===null?[]:e({startIndex:a,endIndex:s,overscan:r,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let r=this.options.indexAttribute,o=e.getAttribute(r);return o?parseInt(o,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(e,r)=>{let o=this.indexFromElement(e),a=this.measurementsCache[o];if(!a)return;let s=a.key,c=this.elementsCache.get(s);c!==e&&(c&&this.observer.unobserve(c),this.observer.observe(e),this.elementsCache.set(s,e)),e.isConnected&&this.resizeItem(o,this.options.measureElement(e,r,this))},this.resizeItem=(e,r)=>{var c;let o=this.measurementsCache[e];if(!o)return;let a=(c=this.itemSizeCache.get(o.key))!=null?c:o.size,s=r-a;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,s,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=s,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,r)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((r,o)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(o))});return}this._measureElement(e,void 0)},this.getVirtualItems=jt(()=>[this.getIndexes(),this.getMeasurements()],(e,r)=>{let o=[];for(let a=0,s=e.length;a<s;a++){let c=e[a],d=r[c];o.push(d)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let r=this.getMeasurements();if(r.length!==0)return $i(r[Qc(0,r.length-1,o=>$i(r[o]).start,e)])},this.getOffsetForAlignment=(e,r)=>{let o=this.getSize(),a=this.getScrollOffset();r==="auto"&&e>=a+o&&(r="end"),r==="end"&&(e-=o);let s=this.options.horizontal?"scrollWidth":"scrollHeight",d=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-o;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 o=this.measurementsCache[e];if(!o)return;let a=this.getSize(),s=this.getScrollOffset();if(r==="auto")if(o.end>=s+a-this.options.scrollPaddingEnd)r="end";else if(o.start<=s+this.options.scrollPaddingStart)r="start";else return[s,r];let c=o.start-this.options.scrollPaddingStart+(o.size-a)/2;switch(r){case"center":return[this.getOffsetForAlignment(c,r),r];case"end":return[this.getOffsetForAlignment(o.end+this.options.scrollPaddingEnd,r),r];default:return[this.getOffsetForAlignment(o.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:o}={})=>{this.cancelScrollToIndex(),o==="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:o})},this.scrollToIndex=(e,{align:r="auto",behavior:o}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let a=this.getOffsetForIndex(e,r);if(!a)return;let[s,c]=a;this._scrollToOffset(s,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[p]=$i(this.getOffsetForIndex(e,c));Wc(p,this.getScrollOffset())||this.scrollToIndex(e,{align:c,behavior:o})}else this.scrollToIndex(e,{align:c,behavior:o})}))},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 a;var e;let r=this.getMeasurements(),o;return r.length===0?o=this.options.paddingStart:o=this.options.lanes===1?(a=(e=r[r.length-1])==null?void 0:e.end)!=null?a:0:Math.max(...r.slice(-this.options.lanes).map(s=>s.end)),Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:r,behavior:o})=>{this.options.scrollToFn(e,{behavior:o,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}},Qc=(i,t,e,r)=>{for(;i<=t;){let o=(i+t)/2|0,a=e(o);if(a<r)i=o+1;else if(a>r)t=o-1;else return o}return i>0?i-1:0};function ih({measurements:i,outerSize:t,scrollOffset:e}){let r=i.length-1,a=Qc(0,r,c=>i[c].start,e),s=a;for(;s<r&&i[s].end<e+t;)s++;return{startIndex:a,endIndex:s}}var ys=class{constructor(t,e){this.cleanup=()=>{},(this.host=t).addController(this);let r={...e,onChange:(o,a)=>{var s;this.host.updateComplete.then(()=>this.host.requestUpdate()),(s=e.onChange)==null||s.call(e,o,a)}};this.virtualizer=new zi(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Pi=class extends ys{constructor(t,e){super(t,{observeElementRect:Zc,observeElementOffset:Xc,scrollToFn:jc,...e})}};var{I:wD}=Ys;var Jc=i=>i.strings===void 0;var xo=(i,t)=>{var r;let e=i._$AN;if(e===void 0)return!1;for(let o of e)(r=o._$AO)==null||r.call(o,t,!1),xo(o,t);return!0},Ui=i=>{let t,e;do{if((t=i._$AM)===void 0)break;e=t._$AN,e.delete(i),i=t}while((e==null?void 0:e.size)===0)},ed=i=>{for(let t;t=i._$AM;i=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(i))break;e.add(i),nh(t)}};function ah(i){this._$AN!==void 0?(Ui(this),this._$AM=i,ed(this)):this._$AM=i}function sh(i,t=!1,e=0){let r=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(t)if(Array.isArray(r))for(let a=e;a<r.length;a++)xo(r[a],!1),Ui(r[a]);else r!=null&&(xo(r,!1),Ui(r));else xo(this,i)}var nh=i=>{var t,e;i.type==Go.CHILD&&((t=i._$AP)!=null||(i._$AP=sh),(e=i._$AQ)!=null||(i._$AQ=ah))},Vi=class extends mr{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),ed(this),this.isConnected=t._$AU}_$AO(t,e=!0){var r,o;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)==null||r.call(this):(o=this.disconnected)==null||o.call(this)),e&&(xo(this,t),Ui(this))}setValue(t){if(Jc(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 td=()=>new Es,Es=class{},xs=new WeakMap,rd=Xr(class extends Vi{render(i){return g}update(i,[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=i.options)==null?void 0:r.host,this.rt(this.ct=i.element)),g}rt(i){var t;if(this.isConnected||(i=void 0),typeof this.Y=="function"){let e=(t=this.ht)!=null?t:globalThis,r=xs.get(e);r===void 0&&(r=new WeakMap,xs.set(e,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,i),i!==void 0&&this.Y.call(this.ht,i)}else this.Y.value=i}get lt(){var i,t,e;return typeof this.Y=="function"?(t=xs.get((i=this.ht)!=null?i: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 lh=[u`
|
4467
|
+
color: hsl(${Math.max(0,Math.min(120-120*k,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(p=e==null?void 0:e.onChange)==null||p.call(e,o),o}}function $i(i,t){if(i===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return i}var Wc=(i,t)=>Math.abs(i-t)<1,qc=(i,t,e)=>{let r;return function(...o){i.clearTimeout(r),r=i.setTimeout(()=>t.apply(this,o),e)}};var eh=i=>i,th=i=>{let t=Math.max(i.startIndex-i.overscan,0),e=Math.min(i.endIndex+i.overscan,i.count-1),r=[];for(let o=t;o<=e;o++)r.push(o);return r},Zc=(i,t)=>{let e=i.scrollElement;if(!e)return;let r=i.targetWindow;if(!r)return;let o=s=>{let{width:c,height:d}=s;t({width:Math.round(c),height:Math.round(d)})};if(o(e.getBoundingClientRect()),!r.ResizeObserver)return()=>{};let a=new r.ResizeObserver(s=>{let c=s[0];if(c!=null&&c.borderBoxSize){let d=c.borderBoxSize[0];if(d){o({width:d.inlineSize,height:d.blockSize});return}}o(e.getBoundingClientRect())});return a.observe(e,{box:"border-box"}),()=>{a.unobserve(e)}},Kc={passive:!0};var rh=typeof window>"u"?!0:"onscrollend"in window,Xc=(i,t)=>{let e=i.scrollElement;if(!e)return;let r=i.targetWindow;if(!r)return;let o=0,a=i.options.useScrollendEvent&&rh?()=>{}:qc(r,()=>{t(o,!1)},i.options.isScrollingResetDelay),s=p=>()=>{let{horizontal:h,isRtl:b}=i.options;o=h?e.scrollLeft*(b&&-1||1):e.scrollTop,a(),t(o,p)},c=s(!0),d=s(!1);return d(),e.addEventListener("scroll",c,Kc),e.addEventListener("scrollend",d,Kc),()=>{e.removeEventListener("scroll",c),e.removeEventListener("scrollend",d)}};var oh=(i,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(i.getBoundingClientRect()[e.options.horizontal?"width":"height"])};var jc=(i,{adjustments:t=0,behavior:e},r)=>{var o,a;let s=i+t;(a=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||a.call(o,{[r.options.horizontal?"left":"top"]:s,behavior:e})},zi=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(o=>{o.forEach(a=>{this._measureElement(a.target,a)})}));return{disconnect:()=>{var o;(o=r())==null||o.disconnect(),e=null},observe:o=>{var a;return(a=r())==null?void 0:a.observe(o,{box:"border-box"})},unobserve:o=>{var a;return(a=r())==null?void 0:a.unobserve(o)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([r,o])=>{typeof o>"u"&&delete e[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:eh,rangeExtractor:th,onChange:()=>{},measureElement:oh,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,o;(o=(r=this.options).onChange)==null||o.call(r,this,e)},this.maybeNotify=jt(()=>(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 o;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=(o=(e=this.scrollElement)==null?void 0:e.window)!=null?o:null,this.elementsCache.forEach(a=>{this.observer.observe(a)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(a,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<a?"forward":"backward":null,this.scrollOffset=a,this.isScrolling=s,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 o=new Map,a=new Map;for(let s=r-1;s>=0;s--){let c=e[s];if(o.has(c.lane))continue;let d=a.get(c.lane);if(d==null||c.end>d.end?a.set(c.lane,c):c.end<d.end&&o.set(c.lane,!0),o.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((s,c)=>s.end===c.end?s.index-c.index:s.end-c.end)[0]:void 0},this.getMeasurementOptions=jt(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,r,o,a,s)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:r,scrollMargin:o,getItemKey:a,enabled:s}),{key:!1}),this.getMeasurements=jt(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:r,scrollMargin:o,getItemKey:a,enabled:s},c)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(h=>{this.itemSizeCache.set(h.key,h.size)}));let d=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let p=this.measurementsCache.slice(0,d);for(let h=d;h<e;h++){let b=a(h),x=this.options.lanes===1?p[h-1]:this.getFurthestMeasurement(p,h),y=x?x.end+this.options.gap:r+o,T=c.get(b),S=typeof T=="number"?T:this.options.estimateSize(h),k=y+S,I=x?x.lane:h%this.options.lanes;p[h]={index:h,start:y,size:S,end:k,key:b,lane:I}}return this.measurementsCache=p,p},{key:!1,debug:()=>this.options.debug}),this.calculateRange=jt(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,r,o)=>this.range=e.length>0&&r>0?ih({measurements:e,outerSize:r,scrollOffset:o}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=jt(()=>{let e=null,r=null,o=this.calculateRange();return o&&(e=o.startIndex,r=o.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,r]},(e,r,o,a,s)=>a===null||s===null?[]:e({startIndex:a,endIndex:s,overscan:r,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let r=this.options.indexAttribute,o=e.getAttribute(r);return o?parseInt(o,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(e,r)=>{let o=this.indexFromElement(e),a=this.measurementsCache[o];if(!a)return;let s=a.key,c=this.elementsCache.get(s);c!==e&&(c&&this.observer.unobserve(c),this.observer.observe(e),this.elementsCache.set(s,e)),e.isConnected&&this.resizeItem(o,this.options.measureElement(e,r,this))},this.resizeItem=(e,r)=>{var c;let o=this.measurementsCache[e];if(!o)return;let a=(c=this.itemSizeCache.get(o.key))!=null?c:o.size,s=r-a;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,s,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=s,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,r)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((r,o)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(o))});return}this._measureElement(e,void 0)},this.getVirtualItems=jt(()=>[this.getIndexes(),this.getMeasurements()],(e,r)=>{let o=[];for(let a=0,s=e.length;a<s;a++){let c=e[a],d=r[c];o.push(d)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let r=this.getMeasurements();if(r.length!==0)return $i(r[Qc(0,r.length-1,o=>$i(r[o]).start,e)])},this.getOffsetForAlignment=(e,r)=>{let o=this.getSize(),a=this.getScrollOffset();r==="auto"&&e>=a+o&&(r="end"),r==="end"&&(e-=o);let s=this.options.horizontal?"scrollWidth":"scrollHeight",d=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-o;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 o=this.measurementsCache[e];if(!o)return;let a=this.getSize(),s=this.getScrollOffset();if(r==="auto")if(o.end>=s+a-this.options.scrollPaddingEnd)r="end";else if(o.start<=s+this.options.scrollPaddingStart)r="start";else return[s,r];let c=o.start-this.options.scrollPaddingStart+(o.size-a)/2;switch(r){case"center":return[this.getOffsetForAlignment(c,r),r];case"end":return[this.getOffsetForAlignment(o.end+this.options.scrollPaddingEnd,r),r];default:return[this.getOffsetForAlignment(o.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:o}={})=>{this.cancelScrollToIndex(),o==="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:o})},this.scrollToIndex=(e,{align:r="auto",behavior:o}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let a=this.getOffsetForIndex(e,r);if(!a)return;let[s,c]=a;this._scrollToOffset(s,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[p]=$i(this.getOffsetForIndex(e,c));Wc(p,this.getScrollOffset())||this.scrollToIndex(e,{align:c,behavior:o})}else this.scrollToIndex(e,{align:c,behavior:o})}))},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 a;var e;let r=this.getMeasurements(),o;return r.length===0?o=this.options.paddingStart:o=this.options.lanes===1?(a=(e=r[r.length-1])==null?void 0:e.end)!=null?a:0:Math.max(...r.slice(-this.options.lanes).map(s=>s.end)),Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:r,behavior:o})=>{this.options.scrollToFn(e,{behavior:o,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}},Qc=(i,t,e,r)=>{for(;i<=t;){let o=(i+t)/2|0,a=e(o);if(a<r)i=o+1;else if(a>r)t=o-1;else return o}return i>0?i-1:0};function ih({measurements:i,outerSize:t,scrollOffset:e}){let r=i.length-1,a=Qc(0,r,c=>i[c].start,e),s=a;for(;s<r&&i[s].end<e+t;)s++;return{startIndex:a,endIndex:s}}var ys=class{constructor(t,e){this.cleanup=()=>{},(this.host=t).addController(this);let r={...e,onChange:(o,a)=>{var s;this.host.updateComplete.then(()=>this.host.requestUpdate()),(s=e.onChange)==null||s.call(e,o,a)}};this.virtualizer=new zi(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Pi=class extends ys{constructor(t,e){super(t,{observeElementRect:Zc,observeElementOffset:Xc,scrollToFn:jc,...e})}};var{I:LD}=Ys;var Jc=i=>i.strings===void 0;var xo=(i,t)=>{var r;let e=i._$AN;if(e===void 0)return!1;for(let o of e)(r=o._$AO)==null||r.call(o,t,!1),xo(o,t);return!0},Ui=i=>{let t,e;do{if((t=i._$AM)===void 0)break;e=t._$AN,e.delete(i),i=t}while((e==null?void 0:e.size)===0)},ed=i=>{for(let t;t=i._$AM;i=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(i))break;e.add(i),nh(t)}};function ah(i){this._$AN!==void 0?(Ui(this),this._$AM=i,ed(this)):this._$AM=i}function sh(i,t=!1,e=0){let r=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(t)if(Array.isArray(r))for(let a=e;a<r.length;a++)xo(r[a],!1),Ui(r[a]);else r!=null&&(xo(r,!1),Ui(r));else xo(this,i)}var nh=i=>{var t,e;i.type==Go.CHILD&&((t=i._$AP)!=null||(i._$AP=sh),(e=i._$AQ)!=null||(i._$AQ=ah))},Vi=class extends mr{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),ed(this),this.isConnected=t._$AU}_$AO(t,e=!0){var r,o;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)==null||r.call(this):(o=this.disconnected)==null||o.call(this)),e&&(xo(this,t),Ui(this))}setValue(t){if(Jc(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 td=()=>new Es,Es=class{},xs=new WeakMap,rd=Xr(class extends Vi{render(i){return g}update(i,[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=i.options)==null?void 0:r.host,this.rt(this.ct=i.element)),g}rt(i){var t;if(this.isConnected||(i=void 0),typeof this.Y=="function"){let e=(t=this.ht)!=null?t:globalThis,r=xs.get(e);r===void 0&&(r=new WeakMap,xs.set(e,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,i),i!==void 0&&this.Y.call(this.ht,i)}else this.Y.value=i}get lt(){var i,t,e;return typeof this.Y=="function"?(t=xs.get((i=this.ht)!=null?i: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 lh=[u`
|
4446
4468
|
:host::part(scroll) {
|
4447
4469
|
height: 100%;
|
4448
4470
|
width: 100%;
|
@@ -4452,7 +4474,7 @@
|
|
4452
4474
|
position: relative;
|
4453
4475
|
width: 100%;
|
4454
4476
|
}
|
4455
|
-
`],od=lh;var id=f.constructTagName("virtualizedlist"),
|
4477
|
+
`],od=lh;var id=f.constructTagName("virtualizedlist"),WD=f.constructTagName("virtualizedwrapper"),ad={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var Qt=class extends v{constructor(){super();this.virtualizerProps=ad.VIRTUALIZER_PROPS;this.scrollElementRef=td();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 Pi(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 c,d;this.virtualizer=e.getVirtualizer();let{getTotalSize:r,getVirtualItems:o,measureElement:a}=this.virtualizer,s=o();if(s!==this.virtualItems){this.virtualItems=s;let p=o(),h={position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${(d=(c=p[0])==null?void 0:c.start)!=null?d:0}px)`};this.setlistdata&&this.setlistdata({virtualItems:p,measureElement:a,listStyle:h})}return m`<div
|
4456
4478
|
part="container"
|
4457
4479
|
style="height: ${r()}px;"
|
4458
4480
|
>
|
@@ -4464,7 +4486,7 @@
|
|
4464
4486
|
>
|
4465
4487
|
${this.virtualizerController?this.getVirtualizedListWrapper(this.virtualizerController):m``}
|
4466
4488
|
</div>
|
4467
|
-
`}};Qt.styles=[...v.styles,...od],n([l({type:Function,attribute:"onscroll"})],Qt.prototype,"onscroll",2),n([l({type:Object,attribute:"virtualizerprops"})],Qt.prototype,"virtualizerProps",2),n([l({type:Function,attribute:"setlistdata"})],Qt.prototype,"setlistdata",2);var Ts=Qt;Ts.register(id);var ch=Ts;var sd=f.constructTagName("menuitemradio"),As={TRUE:"true",FALSE:"false"};var Eo=class extends et{constructor(){super(...arguments);this.ariaChecked=As.FALSE}connectedCallback(){super.connectedCallback(),this.role=
|
4489
|
+
`}};Qt.styles=[...v.styles,...od],n([l({type:Function,attribute:"onscroll"})],Qt.prototype,"onscroll",2),n([l({type:Object,attribute:"virtualizerprops"})],Qt.prototype,"virtualizerProps",2),n([l({type:Function,attribute:"setlistdata"})],Qt.prototype,"setlistdata",2);var Ts=Qt;Ts.register(id);var ch=Ts;var sd=f.constructTagName("menuitemradio"),As={TRUE:"true",FALSE:"false"};var Eo=class extends et{constructor(){super(...arguments);this.ariaChecked=As.FALSE}connectedCallback(){super.connectedCallback(),this.role=B.MENUITEMRADIO}render(){return m`
|
4468
4490
|
<div part="leading-controls">
|
4469
4491
|
<mdc-staticradio
|
4470
4492
|
slot="leading-controls"
|
@@ -4486,7 +4508,7 @@
|
|
4486
4508
|
:host([disabled])::part(checkmark-icon) {
|
4487
4509
|
--mdc-icon-fill-color: currentColor;
|
4488
4510
|
}
|
4489
|
-
`,ld=[mh];var Or=class extends et{constructor(){super(...arguments);this.ariaChecked=Is.ARIA_CHECKED;this.indicator=Is.INDICATOR}connectedCallback(){super.connectedCallback(),this.role=
|
4511
|
+
`,ld=[mh];var Or=class extends et{constructor(){super(...arguments);this.ariaChecked=Is.ARIA_CHECKED;this.indicator=Is.INDICATOR}connectedCallback(){super.connectedCallback(),this.role=B.MENUITEMCHECKBOX}staticCheckbox(){return this.indicator!==Ao.CHECKBOX?g:m`
|
4490
4512
|
<mdc-staticcheckbox
|
4491
4513
|
slot="leading-controls"
|
4492
4514
|
?checked="${this.ariaChecked===To.TRUE}"
|