@momentum-design/components 0.70.1 → 0.70.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +85 -79
- package/dist/browser/index.js.map +2 -2
- package/dist/components/popover/popover.styles.js +1 -0
- 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 +482 -482
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +2 -2
- 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}},
|
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}},Ns=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 Ns(e)})(i):i;var{is:pd,defineProperty:hd,getOwnPropertyDescriptor:ud,getOwnPropertyNames:fd,getOwnPropertySymbols:bd,getPrototypeOf:gd}=Object,st=globalThis,ws=st.trustedTypes,vd=ws?ws.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),_s={attribute:!0,type:String,converter:$r,reflect:!1,hasChanged:ko},Ls,Rs;(Ls=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=_s){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:_s}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,No=Pr.trustedTypes,Ms=No?No.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]==="."?_o:T[1]==="?"?Lo: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=
|
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]==="."?_o:T[1]==="?"?Lo: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=No?No.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 wo=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 wo(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:"")}},_o=class extends Tt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===g?void 0:t}},Lo=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:wo,D:Fs,V:Et,I:er,H:Tt,N:Lo,U:Ro,B:_o,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 _(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 w=u`
|
4
4
|
:host {
|
5
5
|
align-items: center;
|
6
6
|
display: flex;
|
@@ -21,7 +21,7 @@
|
|
21
21
|
--mdc-focus-ring-middle-offset: var(--mdc-focus-ring-inner-width);
|
22
22
|
--mdc-focus-ring-outer-offset: calc(var(--mdc-focus-ring-inner-width) + var(--mdc-focus-ring-middle-width));
|
23
23
|
}
|
24
|
-
`,
|
24
|
+
`,L=(i=!1)=>{let t=u`0 0 0 var(--mdc-focus-ring-inner-width) var(--mdc-focus-ring-inner-color),
|
25
25
|
0 0 0 var(--mdc-focus-ring-middle-width) var(--mdc-focus-ring-middle-color),
|
26
26
|
0 0 0 var(--mdc-focus-ring-outer-width) var(--mdc-focus-ring-outer-color)
|
27
27
|
`;return i?[Do,u`
|
@@ -166,7 +166,7 @@
|
|
166
166
|
:host([variant="informational"]:active){
|
167
167
|
--mdc-chip-background-color: var(--mds-color-theme-background-alert-theme-active);
|
168
168
|
}
|
169
|
-
`,Zs=[
|
169
|
+
`,Zs=[w,Td,...L()];var Xs=u`
|
170
170
|
:host {
|
171
171
|
box-sizing: border-box;
|
172
172
|
}
|
@@ -180,7 +180,7 @@
|
|
180
180
|
:host {
|
181
181
|
display: contents;
|
182
182
|
}
|
183
|
-
`,Js=Ad;var Po=class extends v{constructor({context:t,initialValue:e}){super(),this.context=new rr(this,{context:t,initialValue:e})}render(){return this.updateContext(),m`<slot></slot>`}};Po.styles=[...v.styles,Js];var en=Po;var or=en;var Sd={PREFIX:"mdc",SEPARATOR:"-"},Id={NAMESPACE:Sd},Qi=Id;var Cd=i=>[Qi.NAMESPACE.PREFIX,i].join(Qi.NAMESPACE.SEPARATOR),f={constructTagName:Cd};var nf=f.constructTagName("buttonsimple"),Br={20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},ir={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Hr={SIZE:Br[32],TYPE:ir.BUTTON,ROLE:"button",ARIA_STATE_KEY:"aria-pressed"};var Gr=f.constructTagName("text"),E={BODY_SMALL_REGULAR:"body-small-regular",BODY_SMALL_MEDIUM:"body-small-medium",BODY_SMALL_BOLD:"body-small-bold",BODY_MIDSIZE_REGULAR:"body-midsize-regular",BODY_MIDSIZE_MEDIUM:"body-midsize-medium",BODY_MIDSIZE_BOLD:"body-midsize-bold",BODY_LARGE_REGULAR:"body-large-regular",BODY_LARGE_MEDIUM:"body-large-medium",BODY_LARGE_BOLD:"body-large-bold",BODY_SMALL_REGULAR_UNDERLINE:"body-small-regular-underline",BODY_SMALL_MEDIUM_UNDERLINE:"body-small-medium-underline",BODY_MIDSIZE_REGULAR_UNDERLINE:"body-midsize-regular-underline",BODY_MIDSIZE_MEDIUM_UNDERLINE:"body-midsize-medium-underline",BODY_LARGE_REGULAR_UNDERLINE:"body-large-regular-underline",BODY_LARGE_MEDIUM_UNDERLINE:"body-large-medium-underline",HEADING_SMALL_REGULAR:"heading-small-regular",HEADING_SMALL_MEDIUM:"heading-small-medium",HEADING_SMALL_BOLD:"heading-small-bold",HEADING_MIDSIZE_REGULAR:"heading-midsize-regular",HEADING_MIDSIZE_MEDIUM:"heading-midsize-medium",HEADING_MIDSIZE_BOLD:"heading-midsize-bold",HEADING_LARGE_REGULAR:"heading-large-regular",HEADING_LARGE_MEDIUM:"heading-large-medium",HEADING_LARGE_BOLD:"heading-large-bold",HEADING_XLARGE_REGULAR:"heading-xlarge-regular",HEADING_XLARGE_MEDIUM:"heading-xlarge-medium",HEADING_XLARGE_BOLD:"heading-xlarge-bold",HEADLINE_SMALL_LIGHT:"headline-small-light",HEADLINE_SMALL_REGULAR:"headline-small-regular"},C={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},pe={TYPE:E.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:C.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var tn=f.constructTagName("alertchip"),At={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},ar={VARIANT:At.NEUTRAL,TEXT_TYPE:E.BODY_MIDSIZE_REGULAR,TAG_NAME:C.SPAN,SIZE:Br[24],ROLE:"button"};var rn=i=>({[At.ERROR]:"error-legacy-badge-filled",[At.WARNING]:"warning-badge-filled",[At.SUCCESS]:"check-circle-badge-filled",[At.INFORMATIONAL]:"info-badge-filled",[At.NEUTRAL]:"dnd-presence-badge-filled"})[i];var P=i=>{class t extends i{}return n([l({reflect:!0,type:Boolean})],t.prototype,"disabled",2),t};var Re=i=>{class t extends i{constructor(){super(...arguments);this.tabIndex=0}}return n([l({reflect:!0,type:Number})],t.prototype,"tabIndex",2),t};var kd=[
|
183
|
+
`,Js=Ad;var Po=class extends v{constructor({context:t,initialValue:e}){super(),this.context=new rr(this,{context:t,initialValue:e})}render(){return this.updateContext(),m`<slot></slot>`}};Po.styles=[...v.styles,Js];var en=Po;var or=en;var Sd={PREFIX:"mdc",SEPARATOR:"-"},Id={NAMESPACE:Sd},Qi=Id;var Cd=i=>[Qi.NAMESPACE.PREFIX,i].join(Qi.NAMESPACE.SEPARATOR),f={constructTagName:Cd};var nf=f.constructTagName("buttonsimple"),Br={20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},ir={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Hr={SIZE:Br[32],TYPE:ir.BUTTON,ROLE:"button",ARIA_STATE_KEY:"aria-pressed"};var Gr=f.constructTagName("text"),E={BODY_SMALL_REGULAR:"body-small-regular",BODY_SMALL_MEDIUM:"body-small-medium",BODY_SMALL_BOLD:"body-small-bold",BODY_MIDSIZE_REGULAR:"body-midsize-regular",BODY_MIDSIZE_MEDIUM:"body-midsize-medium",BODY_MIDSIZE_BOLD:"body-midsize-bold",BODY_LARGE_REGULAR:"body-large-regular",BODY_LARGE_MEDIUM:"body-large-medium",BODY_LARGE_BOLD:"body-large-bold",BODY_SMALL_REGULAR_UNDERLINE:"body-small-regular-underline",BODY_SMALL_MEDIUM_UNDERLINE:"body-small-medium-underline",BODY_MIDSIZE_REGULAR_UNDERLINE:"body-midsize-regular-underline",BODY_MIDSIZE_MEDIUM_UNDERLINE:"body-midsize-medium-underline",BODY_LARGE_REGULAR_UNDERLINE:"body-large-regular-underline",BODY_LARGE_MEDIUM_UNDERLINE:"body-large-medium-underline",HEADING_SMALL_REGULAR:"heading-small-regular",HEADING_SMALL_MEDIUM:"heading-small-medium",HEADING_SMALL_BOLD:"heading-small-bold",HEADING_MIDSIZE_REGULAR:"heading-midsize-regular",HEADING_MIDSIZE_MEDIUM:"heading-midsize-medium",HEADING_MIDSIZE_BOLD:"heading-midsize-bold",HEADING_LARGE_REGULAR:"heading-large-regular",HEADING_LARGE_MEDIUM:"heading-large-medium",HEADING_LARGE_BOLD:"heading-large-bold",HEADING_XLARGE_REGULAR:"heading-xlarge-regular",HEADING_XLARGE_MEDIUM:"heading-xlarge-medium",HEADING_XLARGE_BOLD:"heading-xlarge-bold",HEADLINE_SMALL_LIGHT:"headline-small-light",HEADLINE_SMALL_REGULAR:"headline-small-regular"},C={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},pe={TYPE:E.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:C.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var tn=f.constructTagName("alertchip"),At={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},ar={VARIANT:At.NEUTRAL,TEXT_TYPE:E.BODY_MIDSIZE_REGULAR,TAG_NAME:C.SPAN,SIZE:Br[24],ROLE:"button"};var rn=i=>({[At.ERROR]:"error-legacy-badge-filled",[At.WARNING]:"warning-badge-filled",[At.SUCCESS]:"check-circle-badge-filled",[At.INFORMATIONAL]:"info-badge-filled",[At.NEUTRAL]:"dnd-presence-badge-filled"})[i];var P=i=>{class t extends i{}return n([l({reflect:!0,type:Boolean})],t.prototype,"disabled",2),t};var Re=i=>{class t extends i{constructor(){super(...arguments);this.tabIndex=0}}return n([l({reflect:!0,type:Number})],t.prototype,"tabIndex",2),t};var kd=[w,u`
|
184
184
|
:host {
|
185
185
|
border: 0.0625rem solid transparent;
|
186
186
|
cursor: pointer;
|
@@ -237,7 +237,7 @@
|
|
237
237
|
:host([size="20"]){
|
238
238
|
height: var(--mdc-button-height-size-20);
|
239
239
|
}
|
240
|
-
`,...
|
240
|
+
`,...L()],on=kd;var Te=class extends Re(P(v)){constructor(){super();this.size=Hr.SIZE;this.role=Hr.ROLE;this.type=Hr.TYPE;this.prevTabindex=0;this.internals=this.attachInternals(),this.addEventListener("click",this.executeAction.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}get form(){return this.internals.form}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this,this.disabled),e.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),e.has("active")&&(this.active!==void 0&&(this.ariaStateKey=this.ariaStateKey||Hr.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===ir.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===ir.RESET&&this.form&&this.form.reset()}setActive(e,r){this.ariaStateKey&&this.ariaStateKey.split(",").filter(a=>a.trim().startsWith("aria-")).forEach(a=>{r===!0?e.setAttribute(a.trim(),"true"):r===!1?e.setAttribute(a.trim(),"false"):e.removeAttribute(a.trim())})}setSoftDisabled(e,r){r?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")}setDisabled(e,r){r?(e.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),e.removeAttribute("aria-disabled"))}triggerClickEvent(){let e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(e)}handleBlur(){this.classList.contains("pressed")&&this.classList.remove("pressed")}handleKeyDown(e){["Enter"," "].includes(e.key)&&(this.classList.add("pressed"),e.key==="Enter"&&this.triggerClickEvent(),e.preventDefault())}handleKeyUp(e){["Enter"," "].includes(e.key)&&(this.classList.remove("pressed"),e.key===" "&&this.triggerClickEvent())}render(){return m` <slot></slot> `}};Te.formAssociated=!0,Te.styles=[...v.styles,...on],n([l({type:Boolean,reflect:!0})],Te.prototype,"active",2),n([l({type:Boolean,attribute:"soft-disabled",reflect:!0})],Te.prototype,"softDisabled",2),n([l({type:Number,reflect:!0})],Te.prototype,"size",2),n([l({type:String,reflect:!0})],Te.prototype,"role",2),n([l({type:String,reflect:!0})],Te.prototype,"ariaStateKey",2),n([l({reflect:!0})],Te.prototype,"type",2);var se=Te;var sr=class extends se{constructor(){super(...arguments);this.variant=ar.VARIANT;this.label=""}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=ar.SIZE,this.role=ar.ROLE}render(){return m`
|
241
241
|
<mdc-icon part="icon" name="${rn(this.variant)}" length-unit="rem" size="1"></mdc-icon>
|
242
242
|
<mdc-text part="label" type="${ar.TEXT_TYPE}" tagname="${ar.TAG_NAME}">${this.label}</mdc-text>
|
243
243
|
`}};sr.styles=[...v.styles,...Zs],n([l({type:String})],sr.prototype,"variant",2),n([l({type:String})],sr.prototype,"label",2);var Ji=sr;var an=u`
|
@@ -483,14 +483,14 @@
|
|
483
483
|
text-decoration: var(--mds-font-apps-body-small-regular-text-decoration);
|
484
484
|
text-transform: var(--mds-font-apps-body-small-regular-text-case);
|
485
485
|
}
|
486
|
-
`;var
|
486
|
+
`;var Nd=[u`
|
487
487
|
:host {
|
488
488
|
--mdc-text-font-family: var(--mdc-themeprovider-font-family);
|
489
489
|
|
490
490
|
display: block;
|
491
491
|
font-family: var(--mdc-text-font-family);
|
492
492
|
}
|
493
|
-
`,an],sn=
|
493
|
+
`,an],sn=Nd;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 wd=ea;var _d=[w,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
|
-
`,...
|
508
|
+
`,...L()],nn=_d;var Ld=i=>{let{host:t,context:e,subscribe:r}=i;return new tr(t,{context:e,subscribe:r!=null?r:!0})},Rd={consume:Ld},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([_()],he.prototype,"iconData",2),n([_()],he.prototype,"lengthUnitFromContext",2),n([_()],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([_()],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"),te={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:te.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=[w,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"),Q={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"},Y={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},cr={TYPE:Q.ACTIVE,SIZE:Y.SMALL};var Tn=i=>({[M[124]]:Y.XX_LARGE,[M[88]]:Y.X_LARGE,[M[72]]:Y.LARGE,[M[64]]:Y.MIDSIZE,[M[48]]:Y.SMALL,[M[32]]:Y.X_SMALL,[M[24]]:Y.XX_SMALL})[i]||Y.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===
|
676
|
+
`],xn=Ud;var En=f.constructTagName("presence"),Q={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"},Y={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},cr={TYPE:Q.ACTIVE,SIZE:Y.SMALL};var Tn=i=>({[M[124]]:Y.XX_LARGE,[M[88]]:Y.X_LARGE,[M[72]]:Y.LARGE,[M[64]]:Y.MIDSIZE,[M[48]]:Y.SMALL,[M[32]]:Y.X_SMALL,[M[24]]:Y.XX_SMALL})[i]||Y.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===te.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,14 +697,14 @@
|
|
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===te.TEXT&&this.initials&&(r=this.generateInitialsText(this.initials)),e===te.COUNTER&&(this.counter||this.counter===0)&&(r=this.generateCounterText(this.counter)),this.textTemplate(r)}getTypeBasedOnInputs(){return this.src?te.PHOTO:this.iconName?te.ICON:this.initials?te.TEXT:this.counter||this.counter===0?te.COUNTER:te.ICON}getTemplateBasedOnType(e){switch(e){case te.PHOTO:return this.photoTemplate();case te.TEXT:case te.COUNTER:return this.generateTextContent(e);case te.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===te.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)}
|
704
704
|
${this.getLoadingContent()}
|
705
705
|
${this.getPresenceTemplateBasedOnType(e)}
|
706
706
|
</div>
|
707
|
-
`}};qr.styles=[...v.styles,...xn],n([
|
707
|
+
`}};qr.styles=[...v.styles,...xn],n([_()],qr.prototype,"isPhotoLoaded",2);var aa=qr;var Vd=[w,u`
|
708
708
|
:host {
|
709
709
|
--mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
|
710
710
|
--mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
|
@@ -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([
|
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([_()],St.prototype,"currentIconType",2);var sa=St;sa.register(En);var Fd=sa;aa.register(yn);var Bd=aa;var It=f.constructTagName("button"),Z={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:Z.PRIMARY,SIZE:Kr[32],COLOR:Ct.DEFAULT,TYPE_INTERNAL:dr.ICON,TYPE:ir.BUTTON,INVERTED:!1};var Hd=[w,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);
|
@@ -837,7 +837,7 @@
|
|
837
837
|
:host::part(presence) {
|
838
838
|
z-index: 2;
|
839
839
|
}
|
840
|
-
`,...
|
840
|
+
`,...L()],kn=Hd;var Zr=class extends Ho(ne(se)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role="button",this.type=le.TYPE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(M).includes(e)?`${e}`:lr.SIZE.toString())}render(){return m`
|
841
841
|
<div part="overlay" aria-hidden="true"></div>
|
842
842
|
<mdc-avatar
|
843
843
|
?is-typing="${this.isTyping}"
|
@@ -848,7 +848,7 @@
|
|
848
848
|
size="${A(this.size)}"
|
849
849
|
src="${A(this.src)}"
|
850
850
|
></mdc-avatar>
|
851
|
-
`}};Zr.styles=[...kn],n([l({type:String,attribute:"aria-label"})],Zr.prototype,"ariaLabel",2);var na=Zr;var
|
851
|
+
`}};Zr.styles=[...kn],n([l({type:String,attribute:"aria-label"})],Zr.prototype,"ariaLabel",2);var na=Zr;var Nn=f.constructTagName("avatarbutton");na.register(Nn);var Gd=na;var Go={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Xr=i=>(...t)=>({_$litDirective$:i,values:t}),mr=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this.t=t,this._$AM=e,this.i=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var pr=Xr(class extends mr{constructor(i){var t;if(super(i),i.type!==Go.ATTRIBUTE||i.name!=="class"||((t=i.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(i){return" "+Object.keys(i).filter(t=>i[t]).join(" ")+" "}update(i,[t]){var r,o;if(this.st===void 0){this.st=new Set,i.strings!==void 0&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter(a=>a!=="")));for(let a in t)t[a]&&!((r=this.nt)!=null&&r.has(a))&&this.st.add(a);return this.render(t)}let e=i.element.classList;for(let a of this.st)a in t||(e.remove(a),this.st.delete(a));for(let a in t){let s=!!t[a];s===this.st.has(a)||(o=this.nt)!=null&&o.has(a)||(s?(e.add(a),this.st.add(a)):(e.remove(a),this.st.delete(a)))}return Ve}});var wn=f.constructTagName("badge"),Ge={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Yo={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},Wo={PRIMARY:"primary",SECONDARY:"secondary"},jr={SUCCESS:"success",WARNING:"warning",ERROR:"error"},Fv={...Wo,...jr},dt={TYPE:Ge.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:Wo.PRIMARY,ICON_SIZE:1};var Yd=[w,u`
|
852
852
|
:host {
|
853
853
|
--mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
|
854
854
|
--mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
|
@@ -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,..._n],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(
|
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,..._n],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(wn);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
|
-
`,Ln=[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,...Ln],n([
|
943
|
+
`,Ln=[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,...Ln],n([_()],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(Z).includes(o)?o:le.VARIANT)}setColor(o){!Object.values(Ct).includes(o)||this.variant===Z.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!==Z.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([
|
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(Z).includes(o)?o:le.VARIANT)}setColor(o){!Object.values(Ct).includes(o)||this.variant===Z.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!==Z.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([_()],t.prototype,"typeInternal",2),t};var jd=u`
|
965
965
|
:host {
|
966
966
|
background-color: transparent;
|
967
967
|
border-radius: 1.25rem;
|
@@ -1203,7 +1203,7 @@
|
|
1203
1203
|
<slot @slotchange=${this.inferButtonType}></slot>
|
1204
1204
|
${this.postfixFilledIconName?m` <mdc-icon name="${this.postfixFilledIconName}"
|
1205
1205
|
part="postfix-icon" length-unit="rem"></mdc-icon>`:""}
|
1206
|
-
`}};Ye.styles=[...se.styles,...zn],n([l({type:Number})],Ye.prototype,"size",2),n([l({type:Boolean,reflect:!0})],Ye.prototype,"inverted",2),n([l({type:String,reflect:!0})],Ye.prototype,"role",2),n([
|
1206
|
+
`}};Ye.styles=[...se.styles,...zn],n([l({type:Number})],Ye.prototype,"size",2),n([l({type:Boolean,reflect:!0})],Ye.prototype,"inverted",2),n([l({type:String,reflect:!0})],Ye.prototype,"role",2),n([_()],Ye.prototype,"prefixFilledIconName",2),n([_()],Ye.prototype,"postfixFilledIconName",2);var kt=Ye;kt.register(It);var Qd=kt;var Pn=f.constructTagName("linksimple"),ma={INLINE:!1,INVERTED:!1};var Jd=[w,u`
|
1207
1207
|
:host {
|
1208
1208
|
--mdc-link-border-radius: 0.25rem;
|
1209
1209
|
--mdc-link-color-active: var(--mds-color-theme-text-accent-active);
|
@@ -1270,7 +1270,7 @@
|
|
1270
1270
|
text-transform: var(--mds-font-apps-body-large-regular-underline-text-case);
|
1271
1271
|
}
|
1272
1272
|
|
1273
|
-
`,...
|
1273
|
+
`,...L()],Un=Jd;var We=class extends P(Re(v)){constructor(){super(...arguments);this.inline=ma.INLINE;this.inverted=ma.INVERTED;this.href="#";this.target="_self";this.prevTabindex=0;this.handleNavigation=e=>{if((e.type==="click"||e instanceof KeyboardEvent&&e.key==="Enter")&&this.href){if(this.disabled)return;window.open(this.href,this.target,this.rel)}}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","link"),this.addEventListener("click",this.handleNavigation),this.addEventListener("keydown",this.handleNavigation)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleNavigation),this.removeEventListener("keydown",this.handleNavigation)}setDisabled(e){e?(this.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),this.removeAttribute("aria-disabled"))}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this.disabled)}render(){return m`
|
1274
1274
|
<slot></slot>
|
1275
1275
|
`}};We.styles=[...v.styles,...Un],n([l({type:Boolean,reflect:!0})],We.prototype,"inline",2),n([l({type:Boolean,reflect:!0})],We.prototype,"inverted",2),n([l({type:String,reflect:!0})],We.prototype,"href",2),n([l({type:String,reflect:!0})],We.prototype,"target",2),n([l({type:String,reflect:!0})],We.prototype,"rel",2);var mt=We;var ur=class extends qo(mt){constructor(){super(...arguments);this.size=le.SIZE}setSoftDisabled(e,r){r?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")}update(e){super.update(e),e.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),e.has("size")&&this.setSize(this.size),e.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),e.has("color")&&this.setColor(this.color),e.has("typeInternal")&&this.setSize(this.size),(e.has("prefixIcon")||e.has("postfixIcon"))&&this.inferButtonType()}render(){return m`
|
1276
1276
|
${this.prefixIcon?m` <mdc-icon name="${this.prefixIcon}"
|
@@ -1353,7 +1353,7 @@
|
|
1353
1353
|
margin-bottom: 0.5rem;
|
1354
1354
|
}
|
1355
1355
|
|
1356
|
-
`,Fn=[
|
1356
|
+
`,Fn=[w,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"},W={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=W.VARIANT;this.orientation=W.ORIENTATION;this.titleTagName=W.TAGNAME;this.subtitleTagName=W.TAGNAME}renderImage(){return this.imageSrc?m`<img part="image" src="${this.imageSrc}" alt="${this.imageAlt}" />`:g}renderIcon(){return this.iconName?m`<mdc-icon
|
1357
1357
|
part="icon"
|
1358
1358
|
size="${W.ICON_SIZE}"
|
1359
1359
|
length-unit="${W.ICON_LENGTH_UNIT}"
|
@@ -1404,7 +1404,7 @@
|
|
1404
1404
|
:host([disabled])::part(image){
|
1405
1405
|
opacity: 0.5;
|
1406
1406
|
}
|
1407
|
-
`,Gn=[im,...
|
1407
|
+
`,Gn=[im,...L()];var Jo=class extends jo(se){connectedCallback(){super.connectedCallback(),this.active=void 0,this.size=void 0}renderHeader(){return this.cardTitle?m`<div part="header">
|
1408
1408
|
${this.renderIcon()}
|
1409
1409
|
${this.renderTitle()}
|
1410
1410
|
</div>`:g}render(){return m`
|
@@ -1468,7 +1468,7 @@
|
|
1468
1468
|
:host([disabled])::part(check-icon){
|
1469
1469
|
color: var(--mds-color-theme-text-primary-disabled);
|
1470
1470
|
}
|
1471
|
-
`,Wn=[sm,...
|
1471
|
+
`,Wn=[sm,...L()];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="checkbox"}update(e){super.update(e),e.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),e.has("disabled")&&this.setAttribute("aria-disabled",`${this.disabled}`)}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
1472
|
size="${ti.ICON_SIZE}"
|
1473
1473
|
length-unit="${ti.ICON_LENGTH_UNIT}"
|
1474
1474
|
name="${e}"></mdc-icon>`;case ei.CHECKBOX:return m`<mdc-staticcheckbox part="check"
|
@@ -1599,7 +1599,7 @@
|
|
1599
1599
|
:host([disabled])::part(image){
|
1600
1600
|
opacity: 0.5;
|
1601
1601
|
}
|
1602
|
-
`,jn=[dm,...
|
1602
|
+
`,jn=[dm,...L()];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="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}update(e){super.update(e),e.has("checked")&&this.setAttribute("aria-checked",`${this.checked}`),e.has("disabled")&&this.setAttribute("aria-disabled",`${this.disabled}`)}toggleOnEnter(e){e.key==="Enter"&&this.toggleChecked()}toggleOnSpace(e){e.key===" "&&this.toggleChecked()}renderHeader(){return this.cardTitle?m`<div part="header">
|
1603
1603
|
${this.renderIcon()}
|
1604
1604
|
${this.renderTitle()}
|
1605
1605
|
<mdc-staticradio part="check"
|
@@ -1698,7 +1698,7 @@
|
|
1698
1698
|
}
|
1699
1699
|
`],Qn=mm;var vr=class extends P(v){constructor(){super(...arguments);this.checked=!1;this.readonly=!1}render(){return m`
|
1700
1700
|
<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 X=[];for(let i=0;i<256;++i)X.push((i+256).toString(16).slice(1));function el(i,t=0){return(X[i[t+0]]+X[i[t+1]]+X[i[t+2]]+X[i[t+3]]+"-"+X[i[t+4]]+X[i[t+5]]+"-"+X[i[t+6]]+X[i[t+7]]+"-"+X[i[t+8]]+X[i[t+9]]+"-"+X[i[t+10]]+X[i[t+11]]+X[i[t+12]]+X[i[t+13]]+X[i[t+14]]+X[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"),q={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},U={VALIDATION:q.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id"},
|
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 X=[];for(let i=0;i<256;++i)X.push((i+256).toString(16).slice(1));function el(i,t=0){return(X[i[t+0]]+X[i[t+1]]+X[i[t+2]]+X[i[t+3]]+"-"+X[i[t+4]]+X[i[t+5]]+"-"+X[i[t+6]]+X[i[t+7]]+"-"+X[i[t+8]]+X[i[t+9]]+"-"+X[i[t+10]]+X[i[t+11]]+X[i[t+12]]+X[i[t+13]]+X[i[t+14]]+X[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"),q={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},U={VALIDATION:q.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id"},Nt={TAGNAME:C.SPAN,TYPE:E.BODY_MIDSIZE_REGULAR,HEADER_TYPE:E.BODY_MIDSIZE_BOLD};var gm=[w,u`
|
1702
1702
|
:host {
|
1703
1703
|
flex-direction: column;
|
1704
1704
|
align-items: flex-start;
|
@@ -1753,20 +1753,20 @@
|
|
1753
1753
|
}
|
1754
1754
|
`],rl=gm;var ol=i=>({[q.ERROR]:"error-legacy-badge-filled",[q.WARNING]:"warning-badge-filled",[q.SUCCESS]:"check-circle-badge-filled",[q.PRIORITY]:"priority-badge-filled",[q.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
1755
|
id="${U.HEADING_ID}"
|
1756
|
-
tagname="${
|
1757
|
-
type="${
|
1756
|
+
tagname="${Nt.TAGNAME}"
|
1757
|
+
type="${Nt.HEADER_TYPE}"
|
1758
1758
|
part="label"
|
1759
1759
|
>${this.label}</mdc-text
|
1760
1760
|
>`:g}renderRequiredLabel(){return this.requiredLabel?m`
|
1761
|
-
<mdc-text part="required-label" tagname=${
|
1761
|
+
<mdc-text part="required-label" tagname=${Nt.TAGNAME} type=${Nt.TYPE}>
|
1762
1762
|
(${this.requiredLabel})
|
1763
1763
|
</mdc-text>
|
1764
1764
|
`:g}renderHelpTextIcon(){if(!this.helpText)return g;let e=ol(this.helpTextType||U.VALIDATION);return e&&!this.disabled?m`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${e}></mdc-icon>`:g}renderHelpText(){return this.helpText?m`
|
1765
1765
|
<mdc-text
|
1766
1766
|
id="${U.HELPER_TEXT_ID}"
|
1767
1767
|
part="help-text"
|
1768
|
-
tagname=${
|
1769
|
-
type=${
|
1768
|
+
tagname=${Nt.TAGNAME}
|
1769
|
+
type=${Nt.TYPE}
|
1770
1770
|
>
|
1771
1771
|
${this.helpText}
|
1772
1772
|
</mdc-text>
|
@@ -1777,7 +1777,7 @@
|
|
1777
1777
|
</div>`:g}renderHelperText(){return this.helpText?m`<div class="mdc-help-text" part="mdc-help-text">
|
1778
1778
|
<slot name="help-icon">${this.renderHelpTextIcon()}</slot>
|
1779
1779
|
<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
|
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 re=Ke;var vm=[u`
|
1781
1781
|
:host {
|
1782
1782
|
--mdc-checkbox-background-color-hover: var(--mds-color-theme-control-inactive-hover);
|
1783
1783
|
--mdc-checkbox-pressed-icon-color: var(--mds-color-theme-control-inactive-pressed);
|
@@ -1844,7 +1844,7 @@
|
|
1844
1844
|
}
|
1845
1845
|
|
1846
1846
|
|
1847
|
-
`,...
|
1847
|
+
`,...L(!0)],il=vm;var wt=class extends ce(V(re)){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?m`<div class="text-container">
|
1848
1848
|
${this.renderLabel()}
|
1849
1849
|
${this.renderHelperText()}
|
1850
1850
|
</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 +1873,7 @@
|
|
1873
1873
|
/>
|
1874
1874
|
</mdc-staticcheckbox>
|
1875
1875
|
${this.renderLabelAndHelperText()}
|
1876
|
-
`}};
|
1876
|
+
`}};wt.styles=[...re.styles,...il],n([l({type:Boolean,reflect:!0})],wt.prototype,"checked",2),n([l({type:Boolean,reflect:!0})],wt.prototype,"indeterminate",2),n([l({type:Boolean,reflect:!0})],wt.prototype,"autofocus",2);var Aa=wt;Aa.register(Zn);var ym=Aa;var xm=u`
|
1877
1877
|
:host {
|
1878
1878
|
height: 1.5rem;
|
1879
1879
|
gap: 0.25rem;
|
@@ -2010,7 +2010,7 @@
|
|
2010
2010
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
2011
2011
|
cursor: auto;
|
2012
2012
|
}
|
2013
|
-
`,al=[
|
2013
|
+
`,al=[w,xm,...L()];var sl=f.constructTagName("chip"),Em={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},yr={COLOR:Em.DEFAULT,TEXT_TYPE:E.BODY_MIDSIZE_REGULAR,TAG_NAME:C.SPAN,SIZE:Br[24],ROLE:"button"};var xr=class extends ne(se){constructor(){super(...arguments);this.color=yr.COLOR;this.label=""}connectedCallback(){super.connectedCallback(),this.role=yr.ROLE,this.size=yr.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?m`
|
2014
2014
|
<mdc-icon
|
2015
2015
|
name="${this.iconName}"
|
2016
2016
|
length-unit="rem"
|
@@ -2018,7 +2018,7 @@
|
|
2018
2018
|
`:g}render(){return m`
|
2019
2019
|
${this.renderIcon()}
|
2020
2020
|
<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`
|
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,oe=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 oe(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:N,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=N!=null?N: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})),N=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:N,offsetParent:O,strategy:d}):N);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",N=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,we=xe/2-S[T]/2-1,Ee=De(b[I],we),rt=De(b[N],we),_e=Ee,ot=xe-S[T]-rt,ee=xe/2-S[T]/2+$e,Jt=ai(_e,ee,ot),ze=!d.arrow&&Lt(o)!=null&&ee!==Jt&&a.reference[T]/2-(ee<_e?Ee:rt)-S[T]/2<0,Le=ze?ee<_e?ee-_e:ee-ot:0;return{[y]:x[y]+Le,data:{[y]:Jt,centerOffset:ee-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),N=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),we=[],Ee=((r=a.flip)==null?void 0:r.overflows)||[];if(h&&we.push($e[I]),b){let ee=nl(o,s,G);we.push($e[ee[0]],$e[ee[1]])}if(Ee=[...Ee,{placement:o,overflows:we}],!we.every(ee=>ee<=0)){var rt,_e;let ee=(((rt=a.flip)==null?void 0:rt.index)||0)+1,Jt=xe[ee];if(Jt)return{data:{index:ee,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===N||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:N}=k;return{x:I,y:N}}},...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",N=y+h[k],O=y-h[I];y=ai(N,y,O)}if(s){let k=b==="y"?"top":"left",I=b==="y"?"bottom":"right",N=T+h[k],O=T-h[I];T=ai(N,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 N=S-h.top-h.bottom,O=T-h.left-h.right,G=De(S-h[k],N),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=N),be&&!x){let Ee=oe(h.left,0),rt=oe(h.right,0),_e=oe(h.top,0),ot=oe(h.bottom,0);y?$e=T-2*(Ee!==0||rt!==0?Ee+rt:oe(h.left,h.right)):xe=S-2*(_e!==0||ot!==0?_e+ot:oe(h.top,h.bottom))}await d({...t,availableWidth:$e,availableHeight:xe});let we=await s.getDimensions(c.floating);return T!==we.width||S!==we.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 Nm=Se(0);function Il(i){let t=de(i);return!mi()||!t.visualViewport?Nm:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wm(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=wm(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(),N=ve(S),O=I.left+(S.clientLeft+parseFloat(N.paddingLeft))*k.x,G=I.top+(S.clientTop+parseFloat(N.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 Na(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:Na(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=oe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=oe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+Na(i),c=-e.scrollTop;return ve(r).direction==="rtl"&&(s+=oe(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=oe(b.top,p.top),p.right=De(b.right,p.right),p.bottom=De(b.bottom,p.bottom),p.left=oe(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=Na(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 Nl(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||Nl,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:Nl,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),N={rootMargin:-y+"px "+-T+"px "+-S+"px "+-k+"px",threshold:oe(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,{...N,root:o.ownerDocument})}catch{e=new IntersectionObserver(G,N)}e.observe(i)}return s(!0),a}function wl(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[N]=I;N&&N.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(N=>{o&&N.removeEventListener("scroll",e),a&&N.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"),ie={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:ie.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 wa=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 wa;var Hm=u`
|
2022
2022
|
:host {
|
2023
2023
|
--mdc-popover-arrow-border-radius: 0.1875rem;
|
2024
2024
|
--mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
|
@@ -2093,6 +2093,7 @@
|
|
2093
2093
|
}
|
2094
2094
|
|
2095
2095
|
.popover-close {
|
2096
|
+
box-sizing: border-box;
|
2096
2097
|
position: absolute;
|
2097
2098
|
right: 0.75rem;
|
2098
2099
|
top: 0.75rem;
|
@@ -2142,7 +2143,7 @@
|
|
2142
2143
|
background: transparent;
|
2143
2144
|
z-index: ${this.popover.zIndex-1};
|
2144
2145
|
}
|
2145
|
-
`,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(
|
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(ie).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=[Ll()],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(_l(r)),wl(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`
|
2146
2147
|
<div class="popover-hover-bridge"></div>
|
2147
2148
|
${this.closeButton?m` <mdc-button
|
2148
2149
|
class="popover-close"
|
@@ -2301,7 +2302,7 @@
|
|
2301
2302
|
<slot name="dialog-body"></slot>
|
2302
2303
|
</div>
|
2303
2304
|
${this.renderFooter()}
|
2304
|
-
`}};K.styles=[...v.styles,...Ul],n([l({type:String,reflect:!0})],K.prototype,"id",2),n([l({type:String,reflect:!0})],K.prototype,"triggerId",2),n([l({type:Boolean,reflect:!0})],K.prototype,"visible",2),n([l({type:Number,reflect:!0,attribute:"z-index"})],K.prototype,"zIndex",2),n([l({type:String,reflect:!0})],K.prototype,"size",2),n([l({type:String,reflect:!0})],K.prototype,"variant",2),n([l({type:String,attribute:"close-button-aria-label"})],K.prototype,"closeButtonAriaLabel",2),n([l({type:String,reflect:!0,attribute:"aria-labelledby"})],K.prototype,"ariaLabelledby",2),n([l({type:String,reflect:!0,attribute:"aria-label"})],K.prototype,"ariaLabel",2),n([l({type:String,reflect:!0,attribute:"header-text"})],K.prototype,"headerText",2),n([l({type:String,reflect:!0,attribute:"description-text"})],K.prototype,"descriptionText",2),n([l({type:String,reflect:!0,attribute:"header-tag-name"})],K.prototype,"headerTagName",2),n([l({type:String,reflect:!0,attribute:"description-tag-name"})],K.prototype,"descriptionTagName",2),n([l({type:String,reflect:!0})],K.prototype,"role",2);var La=K;La.register(Vl);var qm=La;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=[
|
2305
|
+
`}};K.styles=[...v.styles,...Ul],n([l({type:String,reflect:!0})],K.prototype,"id",2),n([l({type:String,reflect:!0})],K.prototype,"triggerId",2),n([l({type:Boolean,reflect:!0})],K.prototype,"visible",2),n([l({type:Number,reflect:!0,attribute:"z-index"})],K.prototype,"zIndex",2),n([l({type:String,reflect:!0})],K.prototype,"size",2),n([l({type:String,reflect:!0})],K.prototype,"variant",2),n([l({type:String,attribute:"close-button-aria-label"})],K.prototype,"closeButtonAriaLabel",2),n([l({type:String,reflect:!0,attribute:"aria-labelledby"})],K.prototype,"ariaLabelledby",2),n([l({type:String,reflect:!0,attribute:"aria-label"})],K.prototype,"ariaLabel",2),n([l({type:String,reflect:!0,attribute:"header-text"})],K.prototype,"headerText",2),n([l({type:String,reflect:!0,attribute:"description-text"})],K.prototype,"descriptionText",2),n([l({type:String,reflect:!0,attribute:"header-tag-name"})],K.prototype,"headerTagName",2),n([l({type:String,reflect:!0,attribute:"description-tag-name"})],K.prototype,"descriptionTagName",2),n([l({type:String,reflect:!0})],K.prototype,"role",2);var La=K;La.register(Vl);var qm=La;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=[w,u`
|
2305
2306
|
:host {
|
2306
2307
|
--mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
|
2307
2308
|
--mdc-divider-width: 0.0625rem;
|
@@ -2536,7 +2537,7 @@
|
|
2536
2537
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
2537
2538
|
cursor: auto;
|
2538
2539
|
}
|
2539
|
-
`,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
|
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 ae={BUTTON:"button",CHECKBOX:"checkbox",GROUP:"group",LIST:"list",LISTITEM:"listitem",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",RADIOGROUP:"radiogroup",TOOLTIP:"tooltip"};var Qm=u`
|
2540
2541
|
|
2541
2542
|
:host::part(container) {
|
2542
2543
|
display: flex;
|
@@ -2553,10 +2554,10 @@
|
|
2553
2554
|
:host::part(label-text){
|
2554
2555
|
font-weight: bold;
|
2555
2556
|
}
|
2556
|
-
`,Yl=[Qm];var bi=class extends V(
|
2557
|
+
`,Yl=[Qm];var bi=class extends V(re){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`
|
2557
2558
|
<div
|
2558
2559
|
part="container"
|
2559
|
-
role="${this.isRadio?
|
2560
|
+
role="${this.isRadio?ae.RADIOGROUP:ae.GROUP}"
|
2560
2561
|
aria-labelledby="${U.HEADING_ID}"
|
2561
2562
|
aria-describedby="${A(this.helpText?U.HELPER_TEXT_ID:"")}"
|
2562
2563
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
@@ -2567,7 +2568,7 @@
|
|
2567
2568
|
</div>
|
2568
2569
|
<slot></slot>
|
2569
2570
|
</div>
|
2570
|
-
`}};bi.styles=[...
|
2571
|
+
`}};bi.styles=[...re.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`
|
2571
2572
|
:host{
|
2572
2573
|
--mdc-input-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
|
2573
2574
|
--mdc-input-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -2683,7 +2684,7 @@
|
|
2683
2684
|
opacity: 0;
|
2684
2685
|
pointer-events: none;
|
2685
2686
|
}
|
2686
|
-
`,...
|
2687
|
+
`,...L(!0)],ql=ep;re.register(tl);var ye=re;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:q.ERROR},Qe={VALIDATION:q.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Z.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 B=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`
|
2687
2688
|
<mdc-icon
|
2688
2689
|
class="leading-icon"
|
2689
2690
|
part="leading-icon"
|
@@ -2777,7 +2778,7 @@
|
|
2777
2778
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
2778
2779
|
cursor: auto;
|
2779
2780
|
}
|
2780
|
-
`,Xl=[
|
2781
|
+
`,Xl=[w,rp];var yi=f.constructTagName("inputchip"),xi={TEXT_TYPE:E.BODY_MIDSIZE_REGULAR,TAG_NAME:C.SPAN,CLOSE_ICON:"cancel-bold"};var Ht=class extends ne(P(v)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderIcon(){return this.iconName?m`
|
2781
2782
|
<mdc-icon
|
2782
2783
|
name="${this.iconName}"
|
2783
2784
|
length-unit="rem"
|
@@ -2861,11 +2862,11 @@
|
|
2861
2862
|
length-unit="rem"
|
2862
2863
|
></mdc-icon>
|
2863
2864
|
`:g}
|
2864
|
-
`}};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:
|
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:ie.TOP};var Ql=f.constructTagName("list"),Ga="header-id";var np=u`
|
2865
2866
|
:host::part(header-text) {
|
2866
2867
|
padding: 0.5rem 0.75rem;
|
2867
2868
|
}
|
2868
|
-
`,Jl=[np];var Cr=class extends V(v){constructor(){super();this.dataRole=
|
2869
|
+
`,Jl=[np];var Cr=class extends V(v){constructor(){super();this.dataRole=ae.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`
|
2869
2870
|
<mdc-text
|
2870
2871
|
id="${Ga}"
|
2871
2872
|
part="header-text"
|
@@ -2881,7 +2882,7 @@
|
|
2881
2882
|
${e}
|
2882
2883
|
<slot role="presentation" @click="${this.handleMouseClick}"></slot>
|
2883
2884
|
</div>
|
2884
|
-
`}};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:
|
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:ie.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:ue.DESCRIPTION};var cp=u`
|
2885
2886
|
|
2886
2887
|
:host {
|
2887
2888
|
--mdc-tooltip-max-width: 400px;
|
@@ -2906,7 +2907,7 @@
|
|
2906
2907
|
:host([color='contrast'])::part(popover-content) {
|
2907
2908
|
color: var(--mdc-tooltip-text-color-contrast);
|
2908
2909
|
}
|
2909
|
-
`,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=
|
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=ae.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(ie).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`
|
2910
2911
|
:host {
|
2911
2912
|
--mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
|
2912
2913
|
--mdc-listitem-background-color-hover: var(--mds-color-theme-background-primary-hover);
|
@@ -2988,7 +2989,7 @@
|
|
2988
2989
|
display: flex;
|
2989
2990
|
flex-direction: row;
|
2990
2991
|
}
|
2991
|
-
`,tc=[mp,...
|
2992
|
+
`,tc=[mp,...L()];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||ae.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`
|
2992
2993
|
<slot name="${e}">
|
2993
2994
|
<mdc-text part="${e}" type="${r}" tagname="${C.SPAN}">${o}</mdc-text>
|
2994
2995
|
</slot>
|
@@ -3033,7 +3034,7 @@
|
|
3033
3034
|
var(--mdc-marker-striped-background-color) 0.375rem
|
3034
3035
|
);
|
3035
3036
|
}
|
3036
|
-
`,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=
|
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=ae.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`
|
3037
3038
|
:host {
|
3038
3039
|
--mdc-optgroup-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
3039
3040
|
}
|
@@ -3046,7 +3047,7 @@
|
|
3046
3047
|
color: var(--mdc-optgroup-disabled-color);
|
3047
3048
|
cursor: default;
|
3048
3049
|
}
|
3049
|
-
`,sc=[bp];var
|
3050
|
+
`,sc=[bp];var Nr=class extends V(P(v)){setDisabledForAllOptions(){this.options.forEach(t=>{this.disabled?t.setAttribute("disabled",""):t.removeAttribute("disabled")})}updated(t){super.updated(t),t.has("disabled")&&this.setDisabledForAllOptions()}render(){var e;let t=this.label?m`
|
3050
3051
|
<mdc-text
|
3051
3052
|
id="${Ka}"
|
3052
3053
|
part="header-text"
|
@@ -3062,7 +3063,7 @@
|
|
3062
3063
|
${t}
|
3063
3064
|
<slot role="presentation"></slot>
|
3064
3065
|
</div>
|
3065
|
-
`}};
|
3066
|
+
`}};Nr.styles=[...v.styles,...sc],n([l({type:String,reflect:!0})],Nr.prototype,"label",2),n([F({selector:"mdc-option"})],Nr.prototype,"options",2);var Za=Nr;Za.register(Si);var gp=Za;var nc="check-bold",uo=f.constructTagName("option");var vp=u`
|
3066
3067
|
:host {
|
3067
3068
|
--mdc-option-icon-width: 1rem;
|
3068
3069
|
|
@@ -3101,7 +3102,7 @@
|
|
3101
3102
|
${r}
|
3102
3103
|
</div>
|
3103
3104
|
<slot part="default-slot" @slotchange="${this.handleDefaultSlotChange}"></slot>
|
3104
|
-
`}};Gt.styles=[...Je.styles,...lc],n([l({type:Boolean,reflect:!0})],Gt.prototype,"selected",2),n([l({type:String,reflect:!0,attribute:"prefix-icon"})],Gt.prototype,"prefixIcon",2),n([l({type:String,reflect:!0,attribute:"aria-label"})],Gt.prototype,"ariaLabel",2);var Xa=Gt;Xa.register(uo);var yp=Xa;ke.register($l);var xp=ke;var Ep=[
|
3105
|
+
`}};Gt.styles=[...Je.styles,...lc],n([l({type:Boolean,reflect:!0})],Gt.prototype,"selected",2),n([l({type:String,reflect:!0,attribute:"prefix-icon"})],Gt.prototype,"prefixIcon",2),n([l({type:String,reflect:!0,attribute:"aria-label"})],Gt.prototype,"ariaLabel",2);var Xa=Gt;Xa.register(uo);var yp=Xa;ke.register($l);var xp=ke;var Ep=[w,u`
|
3105
3106
|
:host {
|
3106
3107
|
--mdc-progressbar-background-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
3107
3108
|
--mdc-progressbar-active-background-color: var(--mds-color-theme-control-active-normal);
|
@@ -3295,7 +3296,7 @@
|
|
3295
3296
|
size="${H.SUCCESS_ICON_SIZE}"
|
3296
3297
|
length-unit="${H.ICON_LENGTH_UNIT}"></mdc-icon>
|
3297
3298
|
`}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():m`
|
3298
|
-
${this.renderProgressSpinner()}`}};Ci.styles=[...v.styles,...pc];var Ja=Ci;Ja.register(hc);var Sp=Ja;var Ip=[
|
3299
|
+
${this.renderProgressSpinner()}`}};Ci.styles=[...v.styles,...pc];var Ja=Ci;Ja.register(hc);var Sp=Ja;var Ip=[w,u`
|
3299
3300
|
:host{
|
3300
3301
|
display: flex;
|
3301
3302
|
flex-direction: row;
|
@@ -3382,7 +3383,7 @@
|
|
3382
3383
|
display: none;
|
3383
3384
|
}
|
3384
3385
|
|
3385
|
-
`,...
|
3386
|
+
`,...L(!0)],gc=Ip;var Wt=class extends ce(V(re)){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?m`<div class="mdc-radio__label-container">
|
3386
3387
|
${this.renderLabel()}
|
3387
3388
|
${this.renderHelperText()}
|
3388
3389
|
</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`
|
@@ -3412,12 +3413,12 @@
|
|
3412
3413
|
/>
|
3413
3414
|
</mdc-staticradio>
|
3414
3415
|
${this.renderLabelAndHelperText()}
|
3415
|
-
`}};Wt.styles=[...
|
3416
|
+
`}};Wt.styles=[...re.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"),Np={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},wr={ARIA_LIVE:Np.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4};var wp=[u`
|
3416
3417
|
:host {
|
3417
3418
|
display: none;
|
3418
3419
|
visibility: hidden;
|
3419
3420
|
}
|
3420
|
-
`],xc=
|
3421
|
+
`],xc=wp;var tt=class extends v{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=wr.ARIA_LIVE;this.delay=wr.DELAY;this.timeout=wr.TIMEOUT;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce(e,r,o,a){var s;if(e.length>0){let c=`mdc-screenreaderannouncer-announcement-${qe()}`,d=document.createElement("div");d.id=c,d.ariaLive=a,(s=document.getElementById(this.identity))==null||s.appendChild(d);let p=window.setTimeout(()=>{let h=document.createElement("p");h.textContent=e,d.appendChild(h),this.ariaLiveAnnouncementIds.push(c);let b=window.setTimeout(()=>{var x;(x=document.getElementById(c))==null||x.remove()},o);this.timeOutIds.push(b)},r);this.timeOutIds.push(p)}}clearTimeOutsAndAnnouncements(){this.timeOutIds.forEach(e=>{window.clearTimeout(e)}),this.ariaLiveAnnouncementIds.forEach(e=>{var r;(r=document.getElementById(e))==null||r.remove()})}createAnnouncementAriaLiveRegion(){let e=document.getElementById(this.identity);if(!e){e=document.createElement("div"),e.id=this.identity;let r=document.createElement("style");r.textContent=`
|
3421
3422
|
.mdc-screenreaderannouncer__visually-hidden {
|
3422
3423
|
clip: rect(0 0 0 0);
|
3423
3424
|
clip-path: inset(50%);
|
@@ -3427,7 +3428,7 @@
|
|
3427
3428
|
white-space: nowrap;
|
3428
3429
|
width: 1px;
|
3429
3430
|
}
|
3430
|
-
`,e.appendChild(r),e.classList.add("mdc-screenreaderannouncer__visually-hidden"),document.body.appendChild(e)}}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=
|
3431
|
+
`,e.appendChild(r),e.classList.add("mdc-screenreaderannouncer__visually-hidden"),document.body.appendChild(e)}}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=wr.IDENTITY),this.createAnnouncementAriaLiveRegion()}disconnectedCallback(){super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements()}updated(e){e.has("identity")&&this.identity.length===0&&(this.identity=wr.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 _p=rs;var Lp=u`
|
3431
3432
|
|
3432
3433
|
:host::part(filters-container){
|
3433
3434
|
display: flex;
|
@@ -3468,7 +3469,7 @@
|
|
3468
3469
|
</div>
|
3469
3470
|
${this.renderTrailingButton(this.hasInputChips)}
|
3470
3471
|
</div>
|
3471
|
-
`}};qt.styles=[...Ir.styles,...Ec],n([F({slot:"filters"})],qt.prototype,"inputChips",2),n([
|
3472
|
+
`}};qt.styles=[...Ir.styles,...Ec],n([F({slot:"filters"})],qt.prototype,"inputChips",2),n([_()],qt.prototype,"isInputFocused",2),n([_()],qt.prototype,"hasInputChips",2);var os=qt;os.register(Tc);var Rp=os;var Ac=f.constructTagName("select"),Ni={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"};var Op=u`
|
3472
3473
|
:host {
|
3473
3474
|
--mdc-select-background-color: var(--mds-color-theme-background-primary-ghost);
|
3474
3475
|
--mdc-select-icon-border-color: var(--mds-color-theme-outline-input-normal);
|
@@ -3510,6 +3511,7 @@
|
|
3510
3511
|
background: var(--mdc-select-background-color);
|
3511
3512
|
display: flex;
|
3512
3513
|
gap: 0.375rem;
|
3514
|
+
align-items: center;
|
3513
3515
|
user-select: none;
|
3514
3516
|
}
|
3515
3517
|
:host::part(base-container):hover {
|
@@ -3529,6 +3531,9 @@
|
|
3529
3531
|
:host::part(selected) {
|
3530
3532
|
color: var(--mdc-select-selected-text-color);
|
3531
3533
|
}
|
3534
|
+
:host::part(selected-icon) {
|
3535
|
+
flex-shrink: 0;
|
3536
|
+
}
|
3532
3537
|
:host::part(icon-container) {
|
3533
3538
|
margin-left: auto;
|
3534
3539
|
display: flex;
|
@@ -3570,7 +3575,7 @@
|
|
3570
3575
|
:host([help-text-type="warning"])::part(base-container) {
|
3571
3576
|
border-color: var(--mdc-select-warning-border-color);
|
3572
3577
|
}
|
3573
|
-
`,Sc=[Op,...
|
3578
|
+
`,Sc=[Op,...L(!0)];var J=class extends ce(V(re)){constructor(){super(...arguments);this.readonly=!1;this.height="auto";this.baseIconName=Ni.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=Ni.ARROW_UP}handlePopoverClose(){this.displayPopover=!1,this.baseIconName=Ni.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`
|
3574
3579
|
<select
|
3575
3580
|
part="native-select"
|
3576
3581
|
id="${this.id}"
|
@@ -3605,7 +3610,7 @@
|
|
3605
3610
|
focus-back-to-trigger
|
3606
3611
|
focus-trap
|
3607
3612
|
role="listbox"
|
3608
|
-
placement="${
|
3613
|
+
placement="${ie.BOTTOM_START}"
|
3609
3614
|
@shown="${this.handlePopoverOpen}"
|
3610
3615
|
@hidden="${this.handlePopoverClose}"
|
3611
3616
|
style="--mdc-popover-max-width: ${this.popoverWidth}; --mdc-popover-max-height: ${this.height};"
|
@@ -3627,6 +3632,7 @@
|
|
3627
3632
|
aria-labelledby="${this.label?U.HEADING_ID:""}"
|
3628
3633
|
aria-expanded="${this.displayPopover?"true":"false"}"
|
3629
3634
|
>
|
3635
|
+
${this.selectedIcon?m`<mdc-icon length-unit="rem" size="1" name="${this.selectedIcon}" part="selected-icon"></mdc-icon>`:g}
|
3630
3636
|
<mdc-text
|
3631
3637
|
part="base-text ${this.selectedValueText?"selected":""}"
|
3632
3638
|
type="${E.BODY_MIDSIZE_REGULAR}"
|
@@ -3642,7 +3648,7 @@
|
|
3642
3648
|
${this.getPopoverContent()}
|
3643
3649
|
</div>
|
3644
3650
|
${this.renderHelperText()}
|
3645
|
-
`}};
|
3651
|
+
`}};J.styles=[...re.styles,...Sc],n([l({type:String})],J.prototype,"placeholder",2),n([l({type:Boolean})],J.prototype,"readonly",2),n([l({type:String})],J.prototype,"height",2),n([F()],J.prototype,"optionsList",2),n([_()],J.prototype,"baseIconName",2),n([_()],J.prototype,"selectedValueText",2),n([_()],J.prototype,"selectedIcon",2),n([_()],J.prototype,"selectedValue",2),n([_()],J.prototype,"displayPopover",2),n([_()],J.prototype,"activeDescendant",2),n([_()],J.prototype,"popoverWidth",2),n([Be("select")],J.prototype,"inputElement",2);var is=J;is.register(Ac);var Mp=is;var Dp=[w,u`
|
3646
3652
|
:host {
|
3647
3653
|
--mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
|
3648
3654
|
--mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
|
@@ -3704,11 +3710,11 @@
|
|
3704
3710
|
stroke-dashoffset: -292;
|
3705
3711
|
}
|
3706
3712
|
}
|
3707
|
-
`],Ic=Dp;var Cc=f.constructTagName("spinner"),$p={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},zp={STANDALONE:"standalone",BUTTON:"button"},
|
3713
|
+
`],Ic=Dp;var Cc=f.constructTagName("spinner"),$p={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},zp={STANDALONE:"standalone",BUTTON:"button"},wi={VARIANT:zp.STANDALONE,SIZE:$p.MIDSIZE,INVERTED:!1};var bt=class extends v{constructor(){super(...arguments);this.inverted=wi.INVERTED;this.size=wi.SIZE;this.ariaLabel=null;this.variant=wi.VARIANT}updated(e){super.updated(e),e.has("ariaLabel")&&(this.role=this.ariaLabel?"img":null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return m`
|
3708
3714
|
<svg part="container" viewBox="0 0 100 100">
|
3709
3715
|
<circle part="circle" cx="50" cy="50" r="46"></circle>
|
3710
3716
|
</svg>
|
3711
|
-
`}};bt.styles=[...v.styles,...Ic],n([l({type:Boolean,reflect:!0})],bt.prototype,"inverted",2),n([l({type:String,reflect:!0})],bt.prototype,"size",2),n([l({type:String,attribute:"aria-label"})],bt.prototype,"ariaLabel",2),n([l({type:String,reflect:!0})],bt.prototype,"variant",2);var as=bt;as.register(Cc);var Pp=as;var kc=f.constructTagName("statictoggle"),Up={DEFAULT:"default",COMPACT:"compact"},ss={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},
|
3717
|
+
`}};bt.styles=[...v.styles,...Ic],n([l({type:Boolean,reflect:!0})],bt.prototype,"inverted",2),n([l({type:String,reflect:!0})],bt.prototype,"size",2),n([l({type:String,attribute:"aria-label"})],bt.prototype,"ariaLabel",2),n([l({type:String,reflect:!0})],bt.prototype,"variant",2);var as=bt;as.register(Cc);var Pp=as;var kc=f.constructTagName("statictoggle"),Up={DEFAULT:"default",COMPACT:"compact"},ss={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},Nc={compact:.75,default:1.25},wc={SIZE:Up.DEFAULT};var Vp=[u`
|
3712
3718
|
:host {
|
3713
3719
|
--mdc-statictoggle-width: 3rem;
|
3714
3720
|
--mdc-statictoggle-height: 1.5rem;
|
@@ -3787,17 +3793,17 @@
|
|
3787
3793
|
border: var(--mdc-statictoggle-border);
|
3788
3794
|
}
|
3789
3795
|
}
|
3790
|
-
`],_c=Vp;var _r=class extends P(v){constructor(){super(...arguments);this.checked=!1;this.size=
|
3796
|
+
`],_c=Vp;var _r=class extends P(v){constructor(){super(...arguments);this.checked=!1;this.size=wc.SIZE}render(){return m`
|
3791
3797
|
<slot></slot>
|
3792
3798
|
<div part="slider">
|
3793
3799
|
<mdc-icon
|
3794
3800
|
name="${this.checked?ss.CHECKED:ss.UNCHECKED}"
|
3795
3801
|
class="icon"
|
3796
3802
|
length-unit="rem"
|
3797
|
-
size="${
|
3803
|
+
size="${Nc[this.size]}"
|
3798
3804
|
></mdc-icon>
|
3799
3805
|
</div>
|
3800
|
-
`}};_r.styles=[...v.styles,..._c],n([l({type:Boolean,reflect:!0})],_r.prototype,"checked",2),n([l({type:String,reflect:!0})],_r.prototype,"size",2);var ns=_r;ns.register(kc);var Fp=ns;var Bp=[
|
3806
|
+
`}};_r.styles=[...v.styles,..._c],n([l({type:Boolean,reflect:!0})],_r.prototype,"checked",2),n([l({type:String,reflect:!0})],_r.prototype,"size",2);var ns=_r;ns.register(kc);var Fp=ns;var Bp=[w,u`
|
3801
3807
|
|
3802
3808
|
:host {
|
3803
3809
|
--mdc-tab-content-gap: 0.5rem;
|
@@ -4041,7 +4047,7 @@
|
|
4041
4047
|
color: var(--mdc-tab-pill-active-color-disabled);
|
4042
4048
|
}
|
4043
4049
|
|
4044
|
-
`,...
|
4050
|
+
`,...L()],Lc=Bp;var Rc=f.constructTagName("tab"),ls={GLASS:"glass",LINE:"line",PILL:"pill"},_i={VARIANT:ls.PILL,ACTIVE:!1};var gt=class extends ne(se){constructor(){super(...arguments);this.active=_i.ACTIVE;this.variant=_i.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:_i.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`
|
4045
4051
|
<div part="container">
|
4046
4052
|
${this.iconName?m` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:g}
|
4047
4053
|
${this.text?m` <mdc-text
|
@@ -4085,7 +4091,7 @@
|
|
4085
4091
|
:host mdc-button[prefix-icon="arrow-right-regular"] {
|
4086
4092
|
margin-left: var(--mdc-tablist-arrow-button-margin);
|
4087
4093
|
}
|
4088
|
-
`],Oc=[...Gp];var Mc=f.constructTagName("tablist"),vo={LEFT:"ArrowLeft",RIGHT:"ArrowRight",HOME:"Home",END:"End"},Lr={FORWARD:"forward",BACKWARD:"backward"};var Li=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
|
4094
|
+
`],Oc=[...Gp];var Mc=f.constructTagName("tablist"),vo={LEFT:"ArrowLeft",RIGHT:"ArrowRight",HOME:"Home",END:"End"},Lr={FORWARD:"forward",BACKWARD:"backward"};var Li=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 Ne=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=Li(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===Lr.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=Li(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===Lr.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=Li(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
|
4089
4095
|
variant="tertiary"
|
4090
4096
|
prefix-icon="arrow-${a===Lr.FORWARD?e:r}-regular"
|
4091
4097
|
aria-label="Scroll tabs ${a===Lr.FORWARD?e:r}"
|
@@ -4098,7 +4104,7 @@
|
|
4098
4104
|
aria-label="${A(this.dataAriaLabel)}">
|
4099
4105
|
<slot></slot>
|
4100
4106
|
</div>
|
4101
|
-
${o(Lr.FORWARD)}`}};
|
4107
|
+
${o(Lr.FORWARD)}`}};Ne.styles=[...v.styles,...Oc],n([l({type:String,attribute:"active-tab-id",reflect:!0})],Ne.prototype,"activeTabId",2),n([l({type:String,attribute:"data-aria-label"})],Ne.prototype,"dataAriaLabel",2),n([Be(".container")],Ne.prototype,"tabsContainer",2),n([Be("mdc-button:not(:focus-visible)")],Ne.prototype,"notFocusedArrowButton",2),n([F({selector:"mdc-tab"})],Ne.prototype,"tabs",2),n([_()],Ne.prototype,"showForwardArrowButton",2),n([_()],Ne.prototype,"showBackwardArrowButton",2);var ms=Ne;ms.register(Mc);var Yp=ms;var Wp=[u`
|
4102
4108
|
:host {
|
4103
4109
|
--mdc-textarea-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
|
4104
4110
|
--mdc-textarea-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -4219,7 +4225,7 @@
|
|
4219
4225
|
pointer-events: none;
|
4220
4226
|
}
|
4221
4227
|
|
4222
|
-
`,...
|
4228
|
+
`,...L(!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 j=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===q.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`
|
4223
4229
|
<mdc-text
|
4224
4230
|
part="character-counter"
|
4225
4231
|
tagname="span"
|
@@ -4290,7 +4296,7 @@
|
|
4290
4296
|
* {
|
4291
4297
|
scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
|
4292
4298
|
}
|
4293
|
-
`,Fc=[Kp];var Rr=class extends or{constructor(){super({context:Di.context,initialValue:new Di(us.THEMECLASS)});this.themeclass=us.THEMECLASS}static get Context(){return Di.context}updated(e){super.updated(e),e.has("themeclass")&&(this.setThemeInClassList(),this.currentThemeClass=this.themeclass)}updateContext(){this.context.value.themeclass!==this.themeclass&&(this.context.value.themeclass=this.themeclass,this.context.updateObservers())}setThemeInClassList(){this.currentThemeClass&&this.classList.remove(...this.currentThemeClass.split(" ")),this.themeclass&&this.classList.add(...this.themeclass.split(" "))}};Rr.styles=[...or.styles,...Fc],n([
|
4299
|
+
`,Fc=[Kp];var Rr=class extends or{constructor(){super({context:Di.context,initialValue:new Di(us.THEMECLASS)});this.themeclass=us.THEMECLASS}static get Context(){return Di.context}updated(e){super.updated(e),e.has("themeclass")&&(this.setThemeInClassList(),this.currentThemeClass=this.themeclass)}updateContext(){this.context.value.themeclass!==this.themeclass&&(this.context.value.themeclass=this.themeclass,this.context.updateObservers())}setThemeInClassList(){this.currentThemeClass&&this.classList.remove(...this.currentThemeClass.split(" ")),this.themeclass&&this.classList.add(...this.themeclass.split(" "))}};Rr.styles=[...or.styles,...Fc],n([_()],Rr.prototype,"currentThemeClass",2),n([l({type:String})],Rr.prototype,"themeclass",2);var fs=Rr;fs.register(Oi);var Zp=fs;var Bc=f.constructTagName("toggle"),yo={DEFAULT:"default",COMPACT:"compact"};var bs={SIZE:yo.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var Xp=[w,u`
|
4294
4300
|
:host {
|
4295
4301
|
--mdc-toggle-width: 3rem;
|
4296
4302
|
--mdc-toggle-height: 1.5rem;
|
@@ -4372,7 +4378,7 @@
|
|
4372
4378
|
:host([disabled]) .mdc-label-text, :host([disabled]) .mdc-help-text {
|
4373
4379
|
color: var(--mdc-toggle-label-color-disabled);
|
4374
4380
|
}
|
4375
|
-
`,...
|
4381
|
+
`,...L(!0)],Hc=Xp;var Kt=class extends ce(V(ye)){constructor(){super(...arguments);this.checked=!1;this.size=bs.SIZE;this.autofocus=!1}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}formResetCallback(){this.checked=!1}formStateRestoreCallback(e){e&&(this.checked=!0)}manageRequired(){!this.checked&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}setFormValue(){let e=null;this.checked?e=this.value?this.value:"isActive":e=null,this.manageRequired(),this.internals.setFormValue(e)}toggleState(){this.disabled||(this.checked=!this.checked)}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}handleChange(e){this.toggleState();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}setToggleSize(e){this.setAttribute("size",Object.values(yo).includes(e)?e:bs.SIZE)}update(e){super.update(e),e.has("checked")&&this.setFormValue(),e.has("size")&&this.setToggleSize(this.size)}render(){var e;return m`
|
4376
4382
|
<mdc-statictoggle
|
4377
4383
|
?checked="${this.checked}"
|
4378
4384
|
?disabled="${this.disabled}"
|
@@ -4401,7 +4407,7 @@
|
|
4401
4407
|
</mdc-statictoggle>
|
4402
4408
|
${this.renderLabel()}
|
4403
4409
|
${this.renderHelperText()}
|
4404
|
-
`}};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:
|
4410
|
+
`}};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:ie.TOP,CLICK:$t.CLICK,SHOW_ARROW:!0};var Qp=u`
|
4405
4411
|
:host {
|
4406
4412
|
--mdc-toggletip-max-width: 400px;
|
4407
4413
|
--mdc-toggletip-text-color: var(--mds-color-theme-text-primary-normal);
|
@@ -4431,17 +4437,17 @@
|
|
4431
4437
|
:host(:dir(rtl))::part(popover-content) {
|
4432
4438
|
margin-left: 2rem;
|
4433
4439
|
}
|
4434
|
-
`,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(
|
4440
|
+
`,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(ie).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`
|
4435
4441
|
${super.render()}
|
4436
4442
|
<mdc-screenreaderannouncer
|
4437
4443
|
identity="${this.screenreaderAnnouncerIdentity}"
|
4438
4444
|
announcement="${this.currentAnnouncement}"
|
4439
4445
|
delay="300">
|
4440
4446
|
</mdc-screenreaderannouncer>
|
4441
|
-
`}};Xt.styles=[...ke.styles,...Yc],n([Mo()],Xt.prototype,"defaultSlotNodes",2),n([
|
4447
|
+
`}};Xt.styles=[...ke.styles,...Yc],n([Mo()],Xt.prototype,"defaultSlotNodes",2),n([_()],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=(N,O)=>{for(N=String(N);N.length<O;)N=" "+N;return N};console.info(`%c\u23F1 ${I(S,5)} /${I(T,5)} ms`,`
|
4442
4448
|
font-size: .6rem;
|
4443
4449
|
font-weight: bold;
|
4444
|
-
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`
|
4450
|
+
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:ND}=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`
|
4445
4451
|
:host::part(scroll) {
|
4446
4452
|
height: 100%;
|
4447
4453
|
width: 100%;
|
@@ -4463,7 +4469,7 @@
|
|
4463
4469
|
>
|
4464
4470
|
${this.virtualizerController?this.getVirtualizedListWrapper(this.virtualizerController):m``}
|
4465
4471
|
</div>
|
4466
|
-
`}};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=
|
4472
|
+
`}};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=ae.MENUITEMRADIO}render(){return m`
|
4467
4473
|
<div part="leading-controls">
|
4468
4474
|
<mdc-staticradio
|
4469
4475
|
slot="leading-controls"
|
@@ -4485,7 +4491,7 @@
|
|
4485
4491
|
:host([disabled])::part(checkmark-icon) {
|
4486
4492
|
--mdc-icon-fill-color: currentColor;
|
4487
4493
|
}
|
4488
|
-
`,ld=[mh];var Or=class extends et{constructor(){super(...arguments);this.ariaChecked=Is.ARIA_CHECKED;this.indicator=Is.INDICATOR}connectedCallback(){super.connectedCallback(),this.role=
|
4494
|
+
`,ld=[mh];var Or=class extends et{constructor(){super(...arguments);this.ariaChecked=Is.ARIA_CHECKED;this.indicator=Is.INDICATOR}connectedCallback(){super.connectedCallback(),this.role=ae.MENUITEMCHECKBOX}staticCheckbox(){return this.indicator!==Ao.CHECKBOX?g:m`
|
4489
4495
|
<mdc-staticcheckbox
|
4490
4496
|
slot="leading-controls"
|
4491
4497
|
?checked="${this.ariaChecked===To.TRUE}"
|