@momentum-design/components 0.60.0 → 0.61.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +55 -46
- package/dist/browser/index.js.map +2 -2
- package/dist/components/button/button.component.d.ts +8 -0
- package/dist/components/button/button.component.js +12 -0
- package/dist/components/button/button.constants.d.ts +1 -0
- package/dist/components/button/button.constants.js +1 -0
- package/dist/components/button/button.styles.js +9 -0
- package/dist/components/buttonsimple/buttonsimple.component.js +6 -4
- package/dist/custom-elements.json +1018 -991
- package/dist/react/index.d.ts +4 -4
- package/dist/react/index.js +4 -4
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
"use strict";(()=>{var yc=Object.defineProperty;var xc=Object.getOwnPropertyDescriptor;var n=(i,t,e,r)=>{for(var o=r>1?void 0:r?xc(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&&yc(t,e,o),o};var so=globalThis,no=so.ShadowRoot&&(so.ShadyCSS===void 0||so.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,bi=Symbol(),qa=new WeakMap,Tr=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==bi)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(no&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=qa.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&qa.set(e,t))}return t}toString(){return this.cssText}},Za=i=>new Tr(typeof i=="string"?i:i+"",void 0,bi),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 Tr(e,i,bi)},vi=(i,t)=>{if(no)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)}},lo=no?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return Za(e)})(i):i;var{is:Ec,defineProperty:Tc,getOwnPropertyDescriptor:Ac,getOwnPropertyNames:Sc,getOwnPropertySymbols:Ic,getPrototypeOf:wc}=Object,
|
1
|
+
"use strict";(()=>{var yc=Object.defineProperty;var xc=Object.getOwnPropertyDescriptor;var n=(i,t,e,r)=>{for(var o=r>1?void 0:r?xc(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&&yc(t,e,o),o};var so=globalThis,no=so.ShadowRoot&&(so.ShadyCSS===void 0||so.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,bi=Symbol(),qa=new WeakMap,Tr=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==bi)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(no&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=qa.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&qa.set(e,t))}return t}toString(){return this.cssText}},Za=i=>new Tr(typeof i=="string"?i:i+"",void 0,bi),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 Tr(e,i,bi)},vi=(i,t)=>{if(no)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)}},lo=no?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return Za(e)})(i):i;var{is:Ec,defineProperty:Tc,getOwnPropertyDescriptor:Ac,getOwnPropertyNames:Sc,getOwnPropertySymbols:Ic,getPrototypeOf:wc}=Object,je=globalThis,Xa=je.trustedTypes,Cc=Xa?Xa.emptyScript:"",gi=je.reactiveElementPolyfillSupport,Ar=(i,t)=>i,Sr={toAttribute(i,t){switch(t){case Boolean:i=i?Cc: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}},co=(i,t)=>!Ec(i,t),Ka={attribute:!0,type:String,converter:Sr,reflect:!1,hasChanged:co},ja,Qa;(ja=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Qa=je.litPropertyMetadata)!=null||(je.litPropertyMetadata=new WeakMap);var Re=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=Ka){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&&Tc(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){var s;let{get:o,set:a}=(s=Ac(this.prototype,t))!=null?s:{get(){return this[e]},set(l){this[e]=l}};return{get(){return o==null?void 0:o.call(this)},set(l){let d=o==null?void 0:o.call(this);a.call(this,l),this.requestUpdate(t,d,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:Ka}static _$Ei(){if(this.hasOwnProperty(Ar("elementProperties")))return;let t=wc(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Ar("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ar("properties"))){let e=this.properties,r=[...Sc(e),...Ic(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(lo(o))}else t!==void 0&&e.push(lo(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 vi(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:Sr).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),l=typeof s.converter=="function"?{fromAttribute:s.converter}:((a=s.converter)==null?void 0:a.fromAttribute)!==void 0?s.converter:Sr;this._$Em=o,this[o]=l.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:co)(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,l]of this._$Ep)this[s]=l;this._$Ep=void 0}let a=this.constructor.elementProperties;if(a.size>0)for(let[s,l]of a)l.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],l)}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){}},Ja;Re.elementStyles=[],Re.shadowRootOptions={mode:"open"},Re[Ar("elementProperties")]=new Map,Re[Ar("finalized")]=new Map,gi==null||gi({ReactiveElement:Re}),((Ja=je.reactiveElementVersions)!=null?Ja:je.reactiveElementVersions=[]).push("2.0.4");var wr=globalThis,mo=wr.trustedTypes,es=mo?mo.createPolicy("lit-html",{createHTML:i=>i}):void 0,Ei="$lit$",Oe=`lit$${Math.random().toFixed(9).slice(2)}$`,Ti="?"+Oe,kc=`<${Ti}>`,mt=document,Cr=()=>mt.createComment(""),kr=i=>i===null||typeof i!="object"&&typeof i!="function",Ai=Array.isArray,ns=i=>Ai(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",yi=`[
|
2
2
|
\f\r]`,Ir=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ts=/-->/g,rs=/>/g,ct=RegExp(`>|${yi}(?:([^\\s"'>=/]+)(${yi}*=${yi}*(?:[^
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),os=/'/g,is=/"/g,ls=/^(?:script|style|textarea|title)$/i,Si=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),m=Si(1),mp=Si(2),pp=Si(3),Me=Symbol.for("lit-noChange"),g=Symbol.for("lit-nothing"),as=new WeakMap,dt=mt.createTreeWalker(mt,129);function cs(i,t){if(!Ai(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return es!==void 0?es.createHTML(t):t}var ds=(i,t)=>{let e=i.length-1,r=[],o,a=t===2?"<svg>":t===3?"<math>":"",s=Ir;for(let l=0;l<e;l++){let d=i[l],p,h,b=-1,x=0;for(;x<d.length&&(s.lastIndex=x,h=s.exec(d),h!==null);)x=s.lastIndex,s===Ir?h[1]==="!--"?s=ts:h[1]!==void 0?s=rs:h[2]!==void 0?(ls.test(h[2])&&(o=RegExp("</"+h[2],"g")),s=ct):h[3]!==void 0&&(s=ct):s===ct?h[0]===">"?(s=o!=null?o:Ir,b=-1):h[1]===void 0?b=-2:(b=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?ct:h[3]==='"'?is:os):s===is||s===os?s=ct:s===ts||s===rs?s=Ir:(s=ct,o=void 0);let y=s===ct&&i[l+1].startsWith("/>")?" ":"";a+=s===Ir?d+kc:b>=0?(r.push(p),d.slice(0,b)+Ei+d.slice(b)+Oe+y):d+Oe+(b===-2?l:y)}return[cs(i,a+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},Nr=class i{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let a=0,s=0,l=t.length-1,d=this.parts,[p,h]=ds(t,e);if(this.el=i.createElement(p,r),dt.currentNode=this.el.content,e===2||e===3){let b=this.el.content.firstChild;b.replaceWith(...b.childNodes)}for(;(o=dt.nextNode())!==null&&d.length<l;){if(o.nodeType===1){if(o.hasAttributes())for(let b of o.getAttributeNames())if(b.endsWith(Ei)){let x=h[s++],y=o.getAttribute(b).split(Oe),E=/([.?@])?(.*)/.exec(x);d.push({type:1,index:a,name:E[2],strings:y,ctor:E[1]==="."?ho:E[1]==="?"?uo:E[1]==="@"?fo:ht}),o.removeAttribute(b)}else b.startsWith(Oe)&&(d.push({type:6,index:a}),o.removeAttribute(b));if(ls.test(o.tagName)){let b=o.textContent.split(Oe),x=b.length-1;if(x>0){o.textContent=mo?mo.emptyScript:"";for(let y=0;y<x;y++)o.append(b[y],Cr()),dt.nextNode(),d.push({type:2,index:++a});o.append(b[x],Cr())}}}else if(o.nodeType===8)if(o.data===Ti)d.push({type:2,index:a});else{let b=-1;for(;(b=o.data.indexOf(Oe,b+1))!==-1;)d.push({type:7,index:a}),b+=Oe.length-1}a++}}static createElement(t,e){let r=mt.createElement("template");return r.innerHTML=t,r}};function pt(i,t,e=i,r){var s,l,d;if(t===Me)return t;let o=r!==void 0?(s=e.o)==null?void 0:s[r]:e.l,a=kr(t)?void 0:t._$litDirective$;return(o==null?void 0:o.constructor)!==a&&((l=o==null?void 0:o._$AO)==null||l.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=pt(i,o._$AS(i,t.values),o,r)),t}var po=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:mt).importNode(e,!0);dt.currentNode=o;let a=dt.nextNode(),s=0,l=0,d=r[0];for(;d!==void 0;){if(s===d.index){let h;d.type===2?h=new Bt(a,a.nextSibling,this,t):d.type===1?h=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(h=new bo(a,this,t)),this._$AV.push(h),d=r[++l]}s!==(d==null?void 0:d.index)&&(a=dt.nextNode(),s++)}return dt.currentNode=mt,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++}},Bt=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=pt(this,t,e),kr(t)?t===g||t==null||t===""?(this._$AH!==g&&this._$AR(),this._$AH=g):t!==this._$AH&&t!==Me&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ns(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&&kr(this._$AH)?this._$AA.nextSibling.data=t:this.T(mt.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=Nr.createElement(cs(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 po(o,this),l=s.u(this.options);s.p(e),this.T(l),this._$AH=s}}_$AC(t){let e=as.get(t.strings);return e===void 0&&as.set(t.strings,e=new Nr(t)),e}k(t){Ai(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(Cr()),this.O(Cr()),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))}},ht=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=pt(this,t,e,0),s=!kr(t)||t!==this._$AH&&t!==Me,s&&(this._$AH=t);else{let l=t,d,p;for(t=a[0],d=0;d<a.length-1;d++)p=pt(this,l[r+d],e,d),p===Me&&(p=this._$AH[d]),s||(s=!kr(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:"")}},ho=class extends ht{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===g?void 0:t}},uo=class extends ht{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==g)}},fo=class extends ht{constructor(t,e,r,o,a){super(t,e,r,o,a),this.type=5}_$AI(t,e=this){var s;if((t=(s=pt(this,t,e,0))!=null?s:g)===Me)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)}},bo=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){pt(this,t)}},ms={M:Ei,P:Oe,A:Ti,C:1,L:ds,R:po,D:ns,V:pt,I:Bt,H:ht,N:uo,U:fo,B:ho,F:bo},xi=wr.litHtmlPolyfillSupport,ss;xi==null||xi(Nr,Bt),((ss=wr.litHtmlVersions)!=null?ss:wr.litHtmlVersions=[]).push("3.2.0");var ps=(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 l=(s=e==null?void 0:e.renderBefore)!=null?s:null;r._$litPart$=o=new Bt(t.insertBefore(Cr(),l),l,void 0,e!=null?e:{})}return o._$AI(i),o};var
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),os=/'/g,is=/"/g,ls=/^(?:script|style|textarea|title)$/i,Si=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),m=Si(1),mp=Si(2),pp=Si(3),Me=Symbol.for("lit-noChange"),g=Symbol.for("lit-nothing"),as=new WeakMap,dt=mt.createTreeWalker(mt,129);function cs(i,t){if(!Ai(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return es!==void 0?es.createHTML(t):t}var ds=(i,t)=>{let e=i.length-1,r=[],o,a=t===2?"<svg>":t===3?"<math>":"",s=Ir;for(let l=0;l<e;l++){let d=i[l],p,h,b=-1,x=0;for(;x<d.length&&(s.lastIndex=x,h=s.exec(d),h!==null);)x=s.lastIndex,s===Ir?h[1]==="!--"?s=ts:h[1]!==void 0?s=rs:h[2]!==void 0?(ls.test(h[2])&&(o=RegExp("</"+h[2],"g")),s=ct):h[3]!==void 0&&(s=ct):s===ct?h[0]===">"?(s=o!=null?o:Ir,b=-1):h[1]===void 0?b=-2:(b=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?ct:h[3]==='"'?is:os):s===is||s===os?s=ct:s===ts||s===rs?s=Ir:(s=ct,o=void 0);let y=s===ct&&i[l+1].startsWith("/>")?" ":"";a+=s===Ir?d+kc:b>=0?(r.push(p),d.slice(0,b)+Ei+d.slice(b)+Oe+y):d+Oe+(b===-2?l:y)}return[cs(i,a+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},Nr=class i{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let a=0,s=0,l=t.length-1,d=this.parts,[p,h]=ds(t,e);if(this.el=i.createElement(p,r),dt.currentNode=this.el.content,e===2||e===3){let b=this.el.content.firstChild;b.replaceWith(...b.childNodes)}for(;(o=dt.nextNode())!==null&&d.length<l;){if(o.nodeType===1){if(o.hasAttributes())for(let b of o.getAttributeNames())if(b.endsWith(Ei)){let x=h[s++],y=o.getAttribute(b).split(Oe),E=/([.?@])?(.*)/.exec(x);d.push({type:1,index:a,name:E[2],strings:y,ctor:E[1]==="."?ho:E[1]==="?"?uo:E[1]==="@"?fo:ht}),o.removeAttribute(b)}else b.startsWith(Oe)&&(d.push({type:6,index:a}),o.removeAttribute(b));if(ls.test(o.tagName)){let b=o.textContent.split(Oe),x=b.length-1;if(x>0){o.textContent=mo?mo.emptyScript:"";for(let y=0;y<x;y++)o.append(b[y],Cr()),dt.nextNode(),d.push({type:2,index:++a});o.append(b[x],Cr())}}}else if(o.nodeType===8)if(o.data===Ti)d.push({type:2,index:a});else{let b=-1;for(;(b=o.data.indexOf(Oe,b+1))!==-1;)d.push({type:7,index:a}),b+=Oe.length-1}a++}}static createElement(t,e){let r=mt.createElement("template");return r.innerHTML=t,r}};function pt(i,t,e=i,r){var s,l,d;if(t===Me)return t;let o=r!==void 0?(s=e.o)==null?void 0:s[r]:e.l,a=kr(t)?void 0:t._$litDirective$;return(o==null?void 0:o.constructor)!==a&&((l=o==null?void 0:o._$AO)==null||l.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=pt(i,o._$AS(i,t.values),o,r)),t}var po=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:mt).importNode(e,!0);dt.currentNode=o;let a=dt.nextNode(),s=0,l=0,d=r[0];for(;d!==void 0;){if(s===d.index){let h;d.type===2?h=new Bt(a,a.nextSibling,this,t):d.type===1?h=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(h=new bo(a,this,t)),this._$AV.push(h),d=r[++l]}s!==(d==null?void 0:d.index)&&(a=dt.nextNode(),s++)}return dt.currentNode=mt,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++}},Bt=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=pt(this,t,e),kr(t)?t===g||t==null||t===""?(this._$AH!==g&&this._$AR(),this._$AH=g):t!==this._$AH&&t!==Me&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ns(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&&kr(this._$AH)?this._$AA.nextSibling.data=t:this.T(mt.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=Nr.createElement(cs(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 po(o,this),l=s.u(this.options);s.p(e),this.T(l),this._$AH=s}}_$AC(t){let e=as.get(t.strings);return e===void 0&&as.set(t.strings,e=new Nr(t)),e}k(t){Ai(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(Cr()),this.O(Cr()),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))}},ht=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=pt(this,t,e,0),s=!kr(t)||t!==this._$AH&&t!==Me,s&&(this._$AH=t);else{let l=t,d,p;for(t=a[0],d=0;d<a.length-1;d++)p=pt(this,l[r+d],e,d),p===Me&&(p=this._$AH[d]),s||(s=!kr(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:"")}},ho=class extends ht{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===g?void 0:t}},uo=class extends ht{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==g)}},fo=class extends ht{constructor(t,e,r,o,a){super(t,e,r,o,a),this.type=5}_$AI(t,e=this){var s;if((t=(s=pt(this,t,e,0))!=null?s:g)===Me)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)}},bo=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){pt(this,t)}},ms={M:Ei,P:Oe,A:Ti,C:1,L:ds,R:po,D:ns,V:pt,I:Bt,H:ht,N:uo,U:fo,B:ho,F:bo},xi=wr.litHtmlPolyfillSupport,ss;xi==null||xi(Nr,Bt),((ss=wr.litHtmlVersions)!=null?ss:wr.litHtmlVersions=[]).push("3.2.0");var ps=(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 l=(s=e==null?void 0:e.renderBefore)!=null?s:null;r._$litPart$=o=new Bt(t.insertBefore(Cr(),l),l,void 0,e!=null?e:{})}return o._$AI(i),o};var Qe=class extends Re{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=ps(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 Me}},hs;Qe._$litElement$=!0,Qe.finalized=!0,(hs=globalThis.litElementHydrateSupport)==null||hs.call(globalThis,{LitElement:Qe});var Ii=globalThis.litElementPolyfillSupport;Ii==null||Ii({LitElement:Qe});var us;((us=globalThis.litElementVersions)!=null?us:globalThis.litElementVersions=[]).push("4.1.0");var Nc={attribute:!0,type:String,converter:Sr,reflect:!1,hasChanged:co},_c=(i=Nc,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(l){let d=t.get.call(this);t.set.call(this,l),this.requestUpdate(s,d,i)},init(l){return l!==void 0&&this.P(s,void 0,i),l}}}if(r==="setter"){let{name:s}=e;return function(l){let d=this[s];t.call(this,l),this.requestUpdate(s,d,i)}}throw Error("Unsupported decorator location: "+r)};function c(i){return(t,e)=>typeof e=="object"?_c(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 N(i){return c({...i,state:!0,attribute:!1})}var De=(i,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(i,t,e),e);function $e(i,t){return(e,r,o)=>{let a=s=>{var l,d;return(d=(l=s.renderRoot)==null?void 0:l.querySelector(i))!=null?d:null};if(t){let{get:s,set:l}=typeof r=="object"?e:o!=null?o:(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return De(e,r,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return De(e,r,{get(){return a(this)}})}}function ie(i){return(t,e)=>{let{slot:r,selector:o}=i!=null?i:{},a="slot"+(r?`[name=${r}]`:":not([name])");return De(t,e,{get(){var d,p;let s=(d=this.renderRoot)==null?void 0:d.querySelector(a),l=(p=s==null?void 0:s.assignedElements(i))!=null?p:[];return o===void 0?l:l.filter(h=>h.matches(o))}})}}function vo(i){return(t,e)=>{let{slot:r}=i!=null?i:{},o="slot"+(r?`[name=${r}]`:":not([name])");return De(t,e,{get(){var s,l;let a=(s=this.renderRoot)==null?void 0:s.querySelector(o);return(l=a==null?void 0:a.assignedNodes(i))!=null?l:[]}})}}var _=u`
|
4
4
|
:host {
|
5
5
|
align-items: center;
|
6
6
|
display: flex;
|
@@ -176,11 +176,11 @@
|
|
176
176
|
:host *::after {
|
177
177
|
box-sizing: inherit;
|
178
178
|
}
|
179
|
-
`;var yo=class extends
|
179
|
+
`;var yo=class extends Qe{static register(t){customElements.get(t)||customElements.define(t,this)}};yo.styles=[bs];var vs=yo;var v=vs;var Je=class extends Event{constructor(t,e,r){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=e,this.subscribe=r!=null?r:!1}};var Ht=class{constructor(t,e,r,o){var a;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(s,l)=>{this.unsubscribe&&(this.unsubscribe!==l&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=s,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(s,l)),this.unsubscribe=l},this.host=t,e.context!==void 0){let s=e;this.context=s.context,this.callback=s.callback,this.subscribe=(a=s.subscribe)!=null?a:!1}else this.context=e,this.callback=r,this.subscribe=o!=null?o:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Je(this.context,this.t,this.subscribe))}};var xo=class{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){let r=e||!Object.is(t,this.o);this.o=t,r&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(let[e,{disposer:r}]of this.subscriptions)e(this.o,r)},t!==void 0&&(this.value=t)}addCallback(t,e,r){if(!r)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});let{disposer:o}=this.subscriptions.get(t);t(this.value,o)}clearCallbacks(){this.subscriptions.clear()}};var wi=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},Gt=class extends xo{constructor(t,e,r){var o,a;super(e.context!==void 0?e.initialValue:r),this.onContextRequest=s=>{let l=s.composedPath()[0];s.context===this.context&&l!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,l,s.subscribe))},this.onProviderRequest=s=>{let l=s.composedPath()[0];if(s.context!==this.context||l===this.host)return;let d=new Set;for(let[p,{consumerHost:h}]of this.subscriptions)d.has(p)||(d.add(p),h.dispatchEvent(new Je(this.context,p,!0)));s.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(a=(o=this.host).addController)==null||a.call(o,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new wi(this.context))}};var Rc=u`
|
180
180
|
:host {
|
181
181
|
display: contents;
|
182
182
|
}
|
183
|
-
`,ys=Rc;var Eo=class extends v{constructor({context:t,initialValue:e}){super(),this.context=new Gt(this,{context:t,initialValue:e})}render(){return this.updateContext(),m`<slot></slot>`}};Eo.styles=[...v.styles,ys];var xs=Eo;var Wt=xs;var Oc={PREFIX:"mdc",SEPARATOR:"-"},Mc={NAMESPACE:Oc},Ci=Mc;var Dc=i=>[Ci.NAMESPACE.PREFIX,i].join(Ci.NAMESPACE.SEPARATOR),f={constructTagName:Dc};var Jh=f.constructTagName("buttonsimple"),_r={20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},Yt={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Lr={SIZE:_r[32],TYPE:Yt.BUTTON,ROLE:"button",ARIA_STATE_KEY:"aria-pressed"};var Rr=f.constructTagName("text"),I={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"},k={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},
|
183
|
+
`,ys=Rc;var Eo=class extends v{constructor({context:t,initialValue:e}){super(),this.context=new Gt(this,{context:t,initialValue:e})}render(){return this.updateContext(),m`<slot></slot>`}};Eo.styles=[...v.styles,ys];var xs=Eo;var Wt=xs;var Oc={PREFIX:"mdc",SEPARATOR:"-"},Mc={NAMESPACE:Oc},Ci=Mc;var Dc=i=>[Ci.NAMESPACE.PREFIX,i].join(Ci.NAMESPACE.SEPARATOR),f={constructTagName:Dc};var Jh=f.constructTagName("buttonsimple"),_r={20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},Yt={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Lr={SIZE:_r[32],TYPE:Yt.BUTTON,ROLE:"button",ARIA_STATE_KEY:"aria-pressed"};var Rr=f.constructTagName("text"),I={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"},k={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},ae={TYPE:I.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:k.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var Es=f.constructTagName("alertchip"),ut={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},qt={VARIANT:ut.NEUTRAL,TEXT_TYPE:I.BODY_MIDSIZE_REGULAR,TAG_NAME:k.SPAN,SIZE:_r[24],ROLE:"button"};var Ts=i=>({[ut.ERROR]:"error-legacy-badge-filled",[ut.WARNING]:"warning-badge-filled",[ut.SUCCESS]:"check-circle-badge-filled",[ut.INFORMATIONAL]:"info-badge-filled",[ut.NEUTRAL]:"dnd-presence-badge-filled"})[i];var H=i=>{class t extends i{}return n([c({reflect:!0,type:Boolean})],t.prototype,"disabled",2),t};var Zt=i=>{class t extends i{constructor(){super(...arguments);this.tabIndex=0}}return n([c({reflect:!0,type:Number})],t.prototype,"tabIndex",2),t};var $c=[_,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
|
-
`,...O()],As=$c;var ye=class extends Zt(H(v)){constructor(){super();this.size=Lr.SIZE;this.role=Lr.ROLE;this.type=Lr.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||Lr.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===Yt.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===Yt.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.
|
240
|
+
`,...O()],As=$c;var ye=class extends Zt(H(v)){constructor(){super();this.size=Lr.SIZE;this.role=Lr.ROLE;this.type=Lr.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||Lr.ARIA_STATE_KEY),this.setActive(this,this.active))}executeAction(){this.type===Yt.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===Yt.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> `}};ye.formAssociated=!0,ye.styles=[...v.styles,...As],n([c({type:Boolean,reflect:!0})],ye.prototype,"active",2),n([c({type:Boolean,attribute:"soft-disabled",reflect:!0})],ye.prototype,"softDisabled",2),n([c({type:Number,reflect:!0})],ye.prototype,"size",2),n([c({type:String,reflect:!0})],ye.prototype,"role",2),n([c({type:String,reflect:!0})],ye.prototype,"ariaStateKey",2),n([c({reflect:!0})],ye.prototype,"type",2);var me=ye;var Xt=class extends me{constructor(){super(...arguments);this.variant=qt.VARIANT;this.label=""}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=qt.SIZE,this.role=qt.ROLE}render(){return m`
|
241
241
|
<mdc-icon part="icon" name="${Ts(this.variant)}" length-unit="rem" size="1"></mdc-icon>
|
242
242
|
<mdc-text part="label" type="${qt.TEXT_TYPE}" tagname="${qt.TAG_NAME}">${this.label}</mdc-text>
|
243
243
|
`}};Xt.styles=[...v.styles,...fs],n([c({type:String})],Xt.prototype,"variant",2),n([c({type:String})],Xt.prototype,"label",2);var ki=Xt;var Ss=u`
|
@@ -490,7 +490,7 @@
|
|
490
490
|
display: block;
|
491
491
|
font-family: var(--mdc-text-font-family);
|
492
492
|
}
|
493
|
-
`,Ss],Is=zc;var Kt=class extends v{constructor(){super(...arguments);this.type=
|
493
|
+
`,Ss],Is=zc;var Kt=class extends v{constructor(){super(...arguments);this.type=ae.TYPE;this.tagname=ae.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case k.H1:return m`<h1 part=${ae.CSS_PART_TEXT}><slot></slot></h1>`;case k.H2:return m`<h2 part=${ae.CSS_PART_TEXT}><slot></slot></h2>`;case k.H3:return m`<h3 part=${ae.CSS_PART_TEXT}><slot></slot></h3>`;case k.H4:return m`<h4 part=${ae.CSS_PART_TEXT}><slot></slot></h4>`;case k.H5:return m`<h5 part=${ae.CSS_PART_TEXT}><slot></slot></h5>`;case k.H6:return m`<h6 part=${ae.CSS_PART_TEXT}><slot></slot></h6>`;case k.DIV:return m`<div part=${ae.CSS_PART_TEXT}><slot></slot></div>`;case k.SPAN:return m`<span part=${ae.CSS_PART_TEXT}><slot></slot></span>`;case k.SMALL:return m`<small part=${ae.CSS_PART_TEXT}><slot></slot></small>`;case k.P:default:return m`<p part=${ae.CSS_PART_TEXT}><slot></slot></p>`}}};Kt.styles=[...v.styles,...Is],n([c({attribute:"type",reflect:!0,type:String})],Kt.prototype,"type",2),n([c({attribute:"tagname",reflect:!0,type:String})],Kt.prototype,"tagname",2);var Ni=Kt;Ni.register(Rr);var Pc=Ni;var Vc=[_,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
|
-
`,...O()],ws=Vc;var Uc=i=>{let{host:t,context:e,subscribe:r}=i;return new Ht(t,{context:e,subscribe:r!=null?r:!0})},Fc={consume:Uc},Cs=Fc;var To=f.constructTagName("iconprovider"),ks=["svg"],Ns=["em","rem","px","%"],Bc={px:16,em:1,rem:1,"%":100},ze={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Bc.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var Ao=class{};Ao.context=To;var So=Ao;var Ce=class extends Wt{constructor(){super({context:So.context,initialValue:new So});this.iconSet=ze.ICON_SET;this.fileExtension=ze.FILE_EXTENSION;this.lengthUnit=ze.LENGTH_UNIT;this.size=ze.SIZE}static get Context(){return So.context}updateValuesInContext(){this.fileExtension&&ks.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=ze.FILE_EXTENSION,this.context.value.fileExtension=ze.FILE_EXTENSION),this.context.value.iconSet=this.iconSet,this.context.value.url=this.url,this.context.value.size=this.size,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy,this.lengthUnit&&Ns.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=ze.LENGTH_UNIT,this.context.value.lengthUnit=ze.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([c({type:String,attribute:"icon-set",reflect:!0})],Ce.prototype,"iconSet",2),n([c({type:String})],Ce.prototype,"url",2),n([c({type:String,attribute:"file-extension",reflect:!0})],Ce.prototype,"fileExtension",2),n([c({type:String,attribute:"length-unit",reflect:!0})],Ce.prototype,"lengthUnit",2),n([c({type:Number,reflect:!0})],Ce.prototype,"size",2),n([c({type:String,attribute:"cache-strategy"})],Ce.prototype,"cacheStrategy",2),n([c({type:String,attribute:"cache-name"})],Ce.prototype,"cacheName",2);var Or=Ce;var Mr={},_s=async i=>(Mr[i]===void 0&&(Mr[i]=new Map),{async set(t,e){Mr[i].set(t.url,await e.text())},async get(t){return Mr[i].get(t.url)},async delete(t){Mr[i].delete(t.url)}}),Ls=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)}}},Rs=async(i,t)=>t==="in-memory-cache"?_s(i):Ls(i);var Os=async i=>fetch(i).then(t=>{if(!t.ok)throw new Error("There was a problem while fetching the icon!");return t}),Ms=async({url:i,name:t,fileExtension:e,cacheStrategy:r,cacheName:o,renewSignal:a})=>{let s=a(),l=new Request(`${i}/${t}.${e}`,{signal:s});return!o||!r||!["in-memory-cache","web-cache-api"].includes(r)?Os(l).then(d=>d.text()):Rs(o,r).then(d=>d.get(l).then(p=>p||Os(l.clone()).then(h=>{var b;return h.status<400&&h.headers.has("content-type")?(b=d.set)==null?void 0:b.call(d,l,h.clone()).then(()=>h.text()):h.text()})).catch(p=>{throw new Error(`Error in caching the Icon ${t}, ${p}`)}))};var Ds=f.constructTagName("icon"),_i={NAME:void 0,SIZE:1};var
|
508
|
+
`,...O()],ws=Vc;var Uc=i=>{let{host:t,context:e,subscribe:r}=i;return new Ht(t,{context:e,subscribe:r!=null?r:!0})},Fc={consume:Uc},Cs=Fc;var To=f.constructTagName("iconprovider"),ks=["svg"],Ns=["em","rem","px","%"],Bc={px:16,em:1,rem:1,"%":100},ze={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Bc.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var Ao=class{};Ao.context=To;var So=Ao;var Ce=class extends Wt{constructor(){super({context:So.context,initialValue:new So});this.iconSet=ze.ICON_SET;this.fileExtension=ze.FILE_EXTENSION;this.lengthUnit=ze.LENGTH_UNIT;this.size=ze.SIZE}static get Context(){return So.context}updateValuesInContext(){this.fileExtension&&ks.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=ze.FILE_EXTENSION,this.context.value.fileExtension=ze.FILE_EXTENSION),this.context.value.iconSet=this.iconSet,this.context.value.url=this.url,this.context.value.size=this.size,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy,this.lengthUnit&&Ns.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=ze.LENGTH_UNIT,this.context.value.lengthUnit=ze.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([c({type:String,attribute:"icon-set",reflect:!0})],Ce.prototype,"iconSet",2),n([c({type:String})],Ce.prototype,"url",2),n([c({type:String,attribute:"file-extension",reflect:!0})],Ce.prototype,"fileExtension",2),n([c({type:String,attribute:"length-unit",reflect:!0})],Ce.prototype,"lengthUnit",2),n([c({type:Number,reflect:!0})],Ce.prototype,"size",2),n([c({type:String,attribute:"cache-strategy"})],Ce.prototype,"cacheStrategy",2),n([c({type:String,attribute:"cache-name"})],Ce.prototype,"cacheName",2);var Or=Ce;var Mr={},_s=async i=>(Mr[i]===void 0&&(Mr[i]=new Map),{async set(t,e){Mr[i].set(t.url,await e.text())},async get(t){return Mr[i].get(t.url)},async delete(t){Mr[i].delete(t.url)}}),Ls=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)}}},Rs=async(i,t)=>t==="in-memory-cache"?_s(i):Ls(i);var Os=async i=>fetch(i).then(t=>{if(!t.ok)throw new Error("There was a problem while fetching the icon!");return t}),Ms=async({url:i,name:t,fileExtension:e,cacheStrategy:r,cacheName:o,renewSignal:a})=>{let s=a(),l=new Request(`${i}/${t}.${e}`,{signal:s});return!o||!r||!["in-memory-cache","web-cache-api"].includes(r)?Os(l).then(d=>d.text()):Rs(o,r).then(d=>d.get(l).then(p=>p||Os(l.clone()).then(h=>{var b;return h.status<400&&h.headers.has("content-type")?(b=d.set)==null?void 0:b.call(d,l,h.clone()).then(()=>h.text()):h.text()})).catch(p=>{throw new Error(`Error in caching the Icon ${t}, ${p}`)}))};var Ds=f.constructTagName("icon"),_i={NAME:void 0,SIZE:1};var se=class extends v{constructor(){super();this.name=_i.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=Cs.consume({host:this,context:Or.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:l}=this.iconProviderContext.value;if(s==="custom-icons"&&o&&r&&this.name){let d=()=>(this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal);return Ms({url:o,name:this.name,fileExtension:r,cacheName:a,cacheStrategy:l,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:_i.SIZE}updated(e){var r,o,a,s;super.updated(e),e.has("name")&&this.getIconData().catch(l=>{l.name!=="AbortError"&&this.onerror&&this.onerror(l)}),(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} `}};se.styles=[...v.styles,...ws],n([N()],se.prototype,"iconData",2),n([N()],se.prototype,"lengthUnitFromContext",2),n([N()],se.prototype,"sizeFromContext",2),n([c({type:String,reflect:!0})],se.prototype,"name",2),n([c({type:Number})],se.prototype,"size",2),n([c({type:String,attribute:"length-unit"})],se.prototype,"lengthUnit",2),n([c({type:String,attribute:"aria-label"})],se.prototype,"ariaLabel",2),n([c({type:String,attribute:"aria-labelledby"})],se.prototype,"ariaLabelledBy",2),n([N()],se.prototype,"abortController",2);var Li=se;Li.register(Ds);var Hc=Li;ki.register(Es);var Gc=ki;var Wc=u`
|
509
509
|
:host {
|
510
510
|
--mdc-appheader-height: 4rem;
|
511
511
|
}
|
@@ -808,7 +808,7 @@
|
|
808
808
|
@error="${this.handleOnError}"
|
809
809
|
></mdc-icon>
|
810
810
|
</div>
|
811
|
-
`}};ft.styles=[...v.styles,...Gs],n([c({type:String,reflect:!0})],ft.prototype,"type",2),n([c({type:String,reflect:!0})],ft.prototype,"size",2),n([N()],ft.prototype,"currentIconType",2);var Di=ft;Di.register(Us);var Kc=Di;Mi.register(Ps);var jc=Mi;var $r=f.constructTagName("button"),
|
811
|
+
`}};ft.styles=[...v.styles,...Gs],n([c({type:String,reflect:!0})],ft.prototype,"type",2),n([c({type:String,reflect:!0})],ft.prototype,"size",2),n([N()],ft.prototype,"currentIconType",2);var Di=ft;Di.register(Us);var Kc=Di;Mi.register(Ps);var jc=Mi;var $r=f.constructTagName("button"),et={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},zr={40:40,32:32,28:28,24:24},Jt={64:64,52:52,20:20,...zr},Co={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},er={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},te={VARIANT:et.PRIMARY,SIZE:zr[32],COLOR:Co.DEFAULT,TYPE_INTERNAL:er.ICON,TYPE:Yt.BUTTON,INVERTED:!1};var Qc=[_,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
|
-
`,...O()],Ys=Qc;var Pr=class extends wo(ee(me)){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=
|
840
|
+
`,...O()],Ys=Qc;var Pr=class extends wo(ee(me)){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=te.TYPE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(D).includes(e)?`${e}`:jt.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
|
-
`}};Pr.styles=[...Ys],n([c({type:String,attribute:"aria-label"})],Pr.prototype,"ariaLabel",2);var $i=Pr;var qs=f.constructTagName("avatarbutton");$i.register(qs);var Jc=$i;var ko={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Vr=i=>(...t)=>({_$litDirective$:i,values:t}),tr=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 rr=Vr(class extends tr{constructor(i){var t;if(super(i),i.type!==ko.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 Me}});var Zs=f.constructTagName("badge"),Pe={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},No={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},_o={PRIMARY:"primary",SECONDARY:"secondary"},Ur={SUCCESS:"success",WARNING:"warning",ERROR:"error"},Mv={..._o,...Ur},
|
851
|
+
`}};Pr.styles=[...Ys],n([c({type:String,attribute:"aria-label"})],Pr.prototype,"ariaLabel",2);var $i=Pr;var qs=f.constructTagName("avatarbutton");$i.register(qs);var Jc=$i;var ko={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Vr=i=>(...t)=>({_$litDirective$:i,values:t}),tr=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 rr=Vr(class extends tr{constructor(i){var t;if(super(i),i.type!==ko.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 Me}});var Zs=f.constructTagName("badge"),Pe={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},No={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},_o={PRIMARY:"primary",SECONDARY:"secondary"},Ur={SUCCESS:"success",WARNING:"warning",ERROR:"error"},Mv={..._o,...Ur},tt={TYPE:Pe.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:_o.PRIMARY,ICON_SIZE:1};var ed=[_,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);
|
@@ -917,11 +917,11 @@
|
|
917
917
|
outline: 0.125rem solid;
|
918
918
|
}
|
919
919
|
}
|
920
|
-
`],Xs=ed;var ke=class extends ee(v){constructor(){super(...arguments);this.variant=
|
920
|
+
`],Xs=ed;var ke=class extends ee(v){constructor(){super(...arguments);this.variant=tt.VARIANT;this.maxCounter=tt.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,r){return r===void 0||typeof r!="number"||e===0?"":r>e?`${e}+`:e>tt.MAX_COUNTER_LIMIT||r>tt.MAX_COUNTER_LIMIT?`${tt.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(e,r){return m`
|
921
921
|
<mdc-icon
|
922
922
|
class="mdc-badge-icon ${rr({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${r}`]:!0})}"
|
923
923
|
name="${A(e)}"
|
924
|
-
size="${
|
924
|
+
size="${tt.ICON_SIZE}"
|
925
925
|
></mdc-icon>
|
926
926
|
`}getBadgeDot(){return m`<div class="mdc-badge-dot ${rr({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return m`
|
927
927
|
<mdc-text
|
@@ -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(_o).includes(this.variant)&&(this.variant=
|
934
|
+
`}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(_o).includes(this.variant)&&(this.variant=tt.VARIANT);let{iconName:e,type:r,variant:o}=this;switch(r){case Pe.ICON:return this.getBadgeIcon(e||"",o);case Pe.COUNTER:return this.getBadgeCounterText();case Pe.SUCCESS:return this.getBadgeIcon(No.SUCCESS_ICON_NAME,Ur.SUCCESS);case Pe.WARNING:return this.getBadgeIcon(No.WARNING_ICON_NAME,Ur.WARNING);case Pe.ERROR:return this.getBadgeIcon(No.ERROR_ICON_NAME,Ur.ERROR);case Pe.DOT:default:return this.type=Pe.DOT,this.getBadgeDot()}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};ke.styles=[...v.styles,...Xs],n([c({type:String,reflect:!0})],ke.prototype,"type",2),n([c({type:String,reflect:!0})],ke.prototype,"variant",2),n([c({type:Number})],ke.prototype,"counter",2),n([c({type:Number,attribute:"max-counter",reflect:!0})],ke.prototype,"maxCounter",2),n([c({type:Boolean})],ke.prototype,"overlay",2),n([c({type:String,attribute:"aria-label"})],ke.prototype,"ariaLabel",2);var zi=ke;zi.register(Zs);var td=zi;var rd=u`
|
935
935
|
:host {
|
936
936
|
display: block;
|
937
937
|
height: 100%;
|
@@ -961,7 +961,7 @@
|
|
961
961
|
:host([size="large"]) {
|
962
962
|
height: var(--mdc-bullet-size-large);
|
963
963
|
}
|
964
|
-
`,Js=[id];var en=f.constructTagName("bullet"),tn={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var Fr=class extends v{constructor(){super(...arguments);this.size=tn.SMALL}};Fr.styles=[...v.styles,...Js],n([c({type:String,reflect:!0})],Fr.prototype,"size",2);var Vi=Fr;Vi.register(en);var ad=Vi;var Lo=i=>{class t extends i{constructor(){super(...arguments);this.variant=
|
964
|
+
`,Js=[id];var en=f.constructTagName("bullet"),tn={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var Fr=class extends v{constructor(){super(...arguments);this.size=tn.SMALL}};Fr.styles=[...v.styles,...Js],n([c({type:String,reflect:!0})],Fr.prototype,"size",2);var Vi=Fr;Vi.register(en);var ad=Vi;var Lo=i=>{class t extends i{constructor(){super(...arguments);this.variant=te.VARIANT;this.color=te.COLOR;this.typeInternal=te.TYPE_INTERNAL}setVariant(o){this.setAttribute("variant",Object.values(et).includes(o)?o:te.VARIANT)}setColor(o){!Object.values(Co).includes(o)||this.variant===et.TERTIARY?this.setAttribute("color",`${te.COLOR}`):this.setAttribute("color",o)}setSize(o){let s=this.typeInternal===er.ICON?Object.values(Jt).includes(o)&&!(o===Jt[20]&&this.variant!==et.TERTIARY):Object.values(zr).includes(o);this.setAttribute("size",s?`${o}`:`${te.SIZE}`)}inferButtonType(){var a,s;let o=(s=(a=this.shadowRoot)==null?void 0:a.querySelector("slot"))==null?void 0:s.assignedNodes().filter(l=>{var d;return l.nodeType!==Node.TEXT_NODE||((d=l.textContent)==null?void 0:d.trim())}).length;o&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=er.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!o&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=er.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=er.PILL,this.setAttribute("data-btn-type","pill"))}}return n([c({type:String,attribute:"prefix-icon",reflect:!0})],t.prototype,"prefixIcon",2),n([c({type:String,attribute:"postfix-icon",reflect:!0})],t.prototype,"postfixIcon",2),n([c({type:String})],t.prototype,"variant",2),n([c({type:String})],t.prototype,"color",2),n([N()],t.prototype,"typeInternal",2),t};var sd=u`
|
965
965
|
:host {
|
966
966
|
background-color: transparent;
|
967
967
|
border-radius: 1.25rem;
|
@@ -1188,11 +1188,20 @@
|
|
1188
1188
|
--mdc-button-secondary-hover-background-color: var(--mds-color-theme-button-secondary-hover);
|
1189
1189
|
--mdc-button-secondary-pressed-background-color: var(--mds-color-theme-button-secondary-pressed);
|
1190
1190
|
}
|
1191
|
-
|
1191
|
+
|
1192
|
+
:host([inverted][variant='primary'][color='default']) {
|
1193
|
+
--mdc-button-primary-color: var(--mds-color-theme-text-primary-normal);
|
1194
|
+
--mdc-button-primary-background-color: var(--mds-color-theme-inverted-button-primary-normal);
|
1195
|
+
--mdc-button-primary-hover-background-color: var(--mds-color-theme-inverted-button-primary-hover);
|
1196
|
+
--mdc-button-primary-pressed-background-color: var(--mds-color-theme-inverted-button-primary-pressed);
|
1197
|
+
--mdc-button-primary-disabled-background-color: var(--mds-color-theme-inverted-button-primary-disabled);
|
1198
|
+
--mdc-button-primary-disabled-color: var(--mds-color-theme-inverted-text-primary-disabled);
|
1199
|
+
}
|
1200
|
+
`,rn=[sd];var Br=i=>{let t=i.split("-"),e=["bold","filled","regular","light"];return t.filter(r=>!e.includes(r)).join("-")};var Ve=class extends Lo(me){constructor(){super(...arguments);this.size=te.SIZE;this.inverted=te.INVERTED;this.role="button"}update(e){super.update(e),e.has("active")&&this.inferFilledIconName(this.active),e.has("size")&&this.setSize(this.size),e.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),e.has("color")&&this.setColor(this.color),e.has("typeInternal")&&this.setSize(this.size),(e.has("prefixIcon")||e.has("postfixIcon"))&&(this.inferFilledIconName(this.active),this.inferButtonType())}inferFilledIconName(e){e?(this.prefixIcon&&(this.prefixFilledIconName=`${Br(this.prefixIcon)}-filled`),this.postfixIcon&&(this.postfixFilledIconName=`${Br(this.postfixIcon)}-filled`)):(this.prefixFilledIconName=this.prefixIcon,this.postfixFilledIconName=this.postfixIcon)}render(){return m`
|
1192
1201
|
${this.prefixFilledIconName?m` <mdc-icon name="${this.prefixFilledIconName}" part="prefix-icon"></mdc-icon>`:""}
|
1193
1202
|
<slot @slotchange=${this.inferButtonType}></slot>
|
1194
1203
|
${this.postfixFilledIconName?m` <mdc-icon name="${this.postfixFilledIconName}" part="postfix-icon"></mdc-icon>`:""}
|
1195
|
-
`}};
|
1204
|
+
`}};Ve.styles=[...me.styles,...rn],n([c({type:Number})],Ve.prototype,"size",2),n([c({type:Boolean,reflect:!0})],Ve.prototype,"inverted",2),n([c({type:String,reflect:!0})],Ve.prototype,"role",2),n([N()],Ve.prototype,"prefixFilledIconName",2),n([N()],Ve.prototype,"postfixFilledIconName",2);var bt=Ve;bt.register($r);var nd=bt;var P=i=>{class t extends i{constructor(){super(...arguments);this.dataAriaLabel=null}}return n([c({type:String,reflect:!0,attribute:"data-aria-label"})],t.prototype,"dataAriaLabel",2),t};var Y=[];for(let i=0;i<256;++i)Y.push((i+256).toString(16).slice(1));function on(i,t=0){return(Y[i[t+0]]+Y[i[t+1]]+Y[i[t+2]]+Y[i[t+3]]+"-"+Y[i[t+4]]+Y[i[t+5]]+"-"+Y[i[t+6]]+Y[i[t+7]]+"-"+Y[i[t+8]]+Y[i[t+9]]+"-"+Y[i[t+10]]+Y[i[t+11]]+Y[i[t+12]]+Y[i[t+13]]+Y[i[t+14]]+Y[i[t+15]]).toLowerCase()}var Ui,ld=new Uint8Array(16);function Fi(){if(!Ui){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ui=crypto.getRandomValues.bind(crypto)}return Ui(ld)}var cd=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Bi={randomUUID:cd};function dd(i,t,e){var o,a,s;if(Bi.randomUUID&&!t&&!i)return Bi.randomUUID();i=i||{};let r=(s=(a=i.random)!=null?a:(o=i.rng)==null?void 0:o.call(i))!=null?s:Fi();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 l=0;l<16;++l)t[e+l]=r[l];return t}return on(r)}var Ue=dd;var re=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-${Ue()}`}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([c({reflect:!0,type:String})],t.prototype,"name",2),n([c({reflect:!0,type:String})],t.prototype,"value",2),n([c({reflect:!0,type:String,attribute:"validation-message"})],t.prototype,"validationMessage",2),n([$e("input")],t.prototype,"inputElement",2),t};var an=f.constructTagName("formfieldwrapper"),W={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},V={VALIDATION:W.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id"},vt={TAGNAME:k.SPAN,TYPE:I.BODY_MIDSIZE_REGULAR,HEADER_TYPE:I.BODY_MIDSIZE_BOLD};var md=[_,u`
|
1196
1205
|
:host {
|
1197
1206
|
flex-direction: column;
|
1198
1207
|
align-items: flex-start;
|
@@ -1245,7 +1254,7 @@
|
|
1245
1254
|
:host([help-text-type='priority']) .mdc-help-text {
|
1246
1255
|
color: var(--mds-color-theme-text-accent-normal);
|
1247
1256
|
}
|
1248
|
-
`],sn=md;var nn=i=>({[W.ERROR]:"error-legacy-badge-filled",[W.WARNING]:"warning-badge-filled",[W.SUCCESS]:"check-circle-badge-filled",[W.PRIORITY]:"priority-badge-filled",[W.DEFAULT]:""})[i]||"";var
|
1257
|
+
`],sn=md;var nn=i=>({[W.ERROR]:"error-legacy-badge-filled",[W.WARNING]:"warning-badge-filled",[W.SUCCESS]:"check-circle-badge-filled",[W.PRIORITY]:"priority-badge-filled",[W.DEFAULT]:""})[i]||"";var Fe=class extends H(v){constructor(){super(...arguments);this.id="";this.helpTextType=V.VALIDATION;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?m`<label for="${this.id}" id="${V.HEADING_ID}" class="mdc-label" part="label">${this.label}</label>`:m` <mdc-text
|
1249
1258
|
id="${V.HEADING_ID}"
|
1250
1259
|
tagname="${vt.TAGNAME}"
|
1251
1260
|
type="${vt.HEADER_TYPE}"
|
@@ -1271,7 +1280,7 @@
|
|
1271
1280
|
</div>`:g}renderHelperText(){return this.helpText?m`<div class="mdc-help-text" part="mdc-help-text">
|
1272
1281
|
<slot name="help-icon">${this.renderHelpTextIcon()}</slot>
|
1273
1282
|
<slot name="help-text">${this.renderHelpText()}</slot>
|
1274
|
-
</div>`:g}};
|
1283
|
+
</div>`:g}};Fe.styles=[...v.styles,...sn],n([c({reflect:!0,type:String})],Fe.prototype,"label",2),n([c({type:String,reflect:!0,attribute:"required-label"})],Fe.prototype,"requiredLabel",2),n([c({type:String})],Fe.prototype,"id",2),n([c({reflect:!0,attribute:"help-text-type"})],Fe.prototype,"helpTextType",2),n([c({type:String,reflect:!0,attribute:"help-text"})],Fe.prototype,"helpText",2);var j=Fe;var pd=[u`
|
1275
1284
|
:host {
|
1276
1285
|
--mdc-checkbox-background-color-hover: var(--mds-color-theme-control-inactive-hover);
|
1277
1286
|
--mdc-checkbox-pressed-icon-color: var(--mds-color-theme-control-inactive-pressed);
|
@@ -1338,7 +1347,7 @@
|
|
1338
1347
|
}
|
1339
1348
|
|
1340
1349
|
|
1341
|
-
`,...O(!0)],ln=pd;var gt=class extends
|
1350
|
+
`,...O(!0)],ln=pd;var gt=class extends re(P(j)){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?m`<div class="text-container">
|
1342
1351
|
${this.renderLabel()}
|
1343
1352
|
${this.renderHelperText()}
|
1344
1353
|
</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`
|
@@ -1577,7 +1586,7 @@
|
|
1577
1586
|
`:g}render(){return m`
|
1578
1587
|
${this.renderIcon()}
|
1579
1588
|
<mdc-text type="${ar.TEXT_TYPE}" tagname="${ar.TAG_NAME}">${this.label}</mdc-text>
|
1580
|
-
`}};sr.styles=[...v.styles,...pn],n([c({type:String,reflect:!0})],sr.prototype,"color",2),n([c({type:String})],sr.prototype,"label",2);var nr=sr;nr.register(hn);var gd=nr;var Ne=Math.min,Q=Math.max,Gr=Math.round,Wr=Math.floor,xe=i=>({x:i,y:i}),yd={left:"right",right:"left",bottom:"top",top:"bottom"},xd={start:"end",end:"start"};function Mo(i,t,e){return Q(i,Ne(t,e))}function yt(i,t){return typeof i=="function"?i(t):i}function Fe(i){return i.split("-")[0]}function xt(i){return i.split("-")[1]}function Wi(i){return i==="x"?"y":"x"}function Do(i){return i==="y"?"height":"width"}function rt(i){return["top","bottom"].includes(Fe(i))?"y":"x"}function $o(i){return Wi(rt(i))}function un(i,t,e){e===void 0&&(e=!1);let r=xt(i),o=$o(i),a=Do(o),s=o==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Hr(s)),[s,Hr(s)]}function fn(i){let t=Hr(i);return[Oo(i),t,Oo(t)]}function Oo(i){return i.replace(/start|end/g,t=>xd[t])}function Ed(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 bn(i,t,e,r){let o=xt(i),a=Ed(Fe(i),e==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Oo)))),a}function Hr(i){return i.replace(/left|right|bottom|top/g,t=>yd[t])}function Td(i){return{top:0,right:0,bottom:0,left:0,...i}}function Yi(i){return typeof i!="number"?Td(i):{top:i,right:i,bottom:i,left:i}}function Et(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 vn(i,t,e){let{reference:r,floating:o}=i,a=rt(t),s=$o(t),l=Do(s),d=Fe(t),p=a==="y",h=r.x+r.width/2-o.width/2,b=r.y+r.height/2-o.height/2,x=r[l]/2-o[l]/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(xt(t)){case"start":y[s]-=x*(e&&p?-1:1);break;case"end":y[s]+=x*(e&&p?-1:1);break}return y}var gn=async(i,t,e)=>{let{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=e,l=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}=vn(p,r,d),x=r,y={},E=0;for(let T=0;T<l.length;T++){let{name:w,fn:S}=l[T],{x:C,y:R,data:B,reset:z}=await S({x:h,y:b,initialPlacement:r,placement:x,strategy:o,middlewareData:y,rects:p,platform:s,elements:{reference:i,floating:t}});h=C!=null?C:h,b=R!=null?R:b,y={...y,[w]:{...y[w],...B}},z&&E<=50&&(E++,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}=vn(p,x,d)),T=-1)}return{x:h,y:b,placement:x,strategy:o,middlewareData:y}};async function zo(i,t){var e;t===void 0&&(t={});let{x:r,y:o,platform:a,rects:s,elements:l,strategy:d}=i,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:b="floating",altBoundary:x=!1,padding:y=0}=yt(t,i),E=Yi(y),w=l[x?b==="floating"?"reference":"floating":b],S=Et(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(w)))==null||e?w:w.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:h,strategy:d})),C=b==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),B=await(a.isElement==null?void 0:a.isElement(R))?await(a.getScale==null?void 0:a.getScale(R))||{x:1,y:1}:{x:1,y:1},z=Et(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:C,offsetParent:R,strategy:d}):C);return{top:(S.top-z.top+E.top)/B.y,bottom:(z.bottom-S.bottom+E.bottom)/B.y,left:(S.left-z.left+E.left)/B.x,right:(z.right-S.right+E.right)/B.x}}var yn=i=>({name:"arrow",options:i,async fn(t){let{x:e,y:r,placement:o,rects:a,platform:s,elements:l,middlewareData:d}=t,{element:p,padding:h=0}=yt(i,t)||{};if(p==null)return{};let b=Yi(h),x={x:e,y:r},y=$o(o),E=Do(y),T=await s.getDimensions(p),w=y==="y",S=w?"top":"left",C=w?"bottom":"right",R=w?"clientHeight":"clientWidth",B=a.reference[E]+a.reference[y]-x[y]-a.floating[E],z=x[y]-a.reference[y],de=await(s.getOffsetParent==null?void 0:s.getOffsetParent(p)),ve=de?de[R]:0;(!ve||!await(s.isElement==null?void 0:s.isElement(de)))&&(ve=l.floating[R]||a.floating[E]);let _e=B/2-z/2,Se=ve/2-T[E]/2-1,ge=Ne(b[S],Se),Ye=Ne(b[C],Se),Ie=ge,qe=ve-T[E]-Ye,X=ve/2-T[E]/2+_e,Ft=Mo(Ie,X,qe),Le=!d.arrow&&xt(o)!=null&&X!==Ft&&a.reference[E]/2-(X<Ie?ge:Ye)-T[E]/2<0,we=Le?X<Ie?X-Ie:X-qe:0;return{[y]:x[y]+we,data:{[y]:Ft,centerOffset:X-Ft-we,...Le&&{alignmentOffset:we}},reset:Le}}});var xn=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:l,platform:d,elements:p}=t,{mainAxis:h=!0,crossAxis:b=!0,fallbackPlacements:x,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:T=!0,...w}=yt(i,t);if((e=a.arrow)!=null&&e.alignmentOffset)return{};let S=Fe(o),C=rt(l),R=Fe(l)===l,B=await(d.isRTL==null?void 0:d.isRTL(p.floating)),z=x||(R||!T?[Hr(l)]:fn(l)),de=E!=="none";!x&&de&&z.push(...bn(l,T,E,B));let ve=[l,...z],_e=await zo(t,w),Se=[],ge=((r=a.flip)==null?void 0:r.overflows)||[];if(h&&Se.push(_e[S]),b){let X=un(o,s,B);Se.push(_e[X[0]],_e[X[1]])}if(ge=[...ge,{placement:o,overflows:Se}],!Se.every(X=>X<=0)){var Ye,Ie;let X=(((Ye=a.flip)==null?void 0:Ye.index)||0)+1,Ft=ve[X];if(Ft)return{data:{index:X,overflows:ge},reset:{placement:Ft}};let Le=(Ie=ge.filter(we=>we.overflows[0]<=0).sort((we,Ze)=>we.overflows[1]-Ze.overflows[1])[0])==null?void 0:Ie.placement;if(!Le)switch(y){case"bestFit":{var qe;let we=(qe=ge.filter(Ze=>{if(de){let Xe=rt(Ze.placement);return Xe===C||Xe==="y"}return!0}).map(Ze=>[Ze.placement,Ze.overflows.filter(Xe=>Xe>0).reduce((Xe,gc)=>Xe+gc,0)]).sort((Ze,Xe)=>Ze[1]-Xe[1])[0])==null?void 0:qe[0];we&&(Le=we);break}case"initialPlacement":Le=l;break}if(o!==Le)return{reset:{placement:Le}}}return{}}}};async function Ad(i,t){let{placement:e,platform:r,elements:o}=i,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Fe(e),l=xt(e),d=rt(e)==="y",p=["left","top"].includes(s)?-1:1,h=a&&d?-1:1,b=yt(t,i),{mainAxis:x,crossAxis:y,alignmentAxis:E}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return l&&typeof E=="number"&&(y=l==="end"?E*-1:E),d?{x:y*h,y:x*p}:{x:x*p,y:y*h}}var En=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:l}=t,d=await Ad(t,i);return s===((e=l.offset)==null?void 0:e.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:a+d.y,data:{...d,placement:s}}}}},Tn=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:l={fn:w=>{let{x:S,y:C}=w;return{x:S,y:C}}},...d}=yt(i,t),p={x:e,y:r},h=await zo(t,d),b=rt(Fe(o)),x=Wi(b),y=p[x],E=p[b];if(a){let w=x==="y"?"top":"left",S=x==="y"?"bottom":"right",C=y+h[w],R=y-h[S];y=Mo(C,y,R)}if(s){let w=b==="y"?"top":"left",S=b==="y"?"bottom":"right",C=E+h[w],R=E-h[S];E=Mo(C,E,R)}let T=l.fn({...t,[x]:y,[b]:E});return{...T,data:{x:T.x-e,y:T.y-r,enabled:{[x]:a,[b]:s}}}}}};var An=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:l}=t,{apply:d=()=>{},...p}=yt(i,t),h=await zo(t,p),b=Fe(o),x=xt(o),y=rt(o)==="y",{width:E,height:T}=a.floating,w,S;b==="top"||b==="bottom"?(w=b,S=x===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(S=b,w=x==="end"?"top":"bottom");let C=T-h.top-h.bottom,R=E-h.left-h.right,B=Ne(T-h[w],C),z=Ne(E-h[S],R),de=!t.middlewareData.shift,ve=B,_e=z;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&(_e=R),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(ve=C),de&&!x){let ge=Q(h.left,0),Ye=Q(h.right,0),Ie=Q(h.top,0),qe=Q(h.bottom,0);y?_e=E-2*(ge!==0||Ye!==0?ge+Ye:Q(h.left,h.right)):ve=T-2*(Ie!==0||qe!==0?Ie+qe:Q(h.top,h.bottom))}await d({...t,availableWidth:_e,availableHeight:ve});let Se=await s.getDimensions(l.floating);return E!==Se.width||T!==Se.height?{reset:{rects:!0}}:{}}}};function Po(){return typeof window<"u"}function Tt(i){return In(i)?(i.nodeName||"").toLowerCase():"#document"}function re(i){var t;return(i==null||(t=i.ownerDocument)==null?void 0:t.defaultView)||window}function Ee(i){var t;return(t=(In(i)?i.ownerDocument:i.document)||window.document)==null?void 0:t.documentElement}function In(i){return Po()?i instanceof Node||i instanceof re(i).Node:!1}function pe(i){return Po()?i instanceof Element||i instanceof re(i).Element:!1}function Te(i){return Po()?i instanceof HTMLElement||i instanceof re(i).HTMLElement:!1}function Sn(i){return!Po()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof re(i).ShadowRoot}function cr(i){let{overflow:t,overflowX:e,overflowY:r,display:o}=he(i);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(o)}function wn(i){return["table","td","th"].includes(Tt(i))}function Yr(i){return[":popover-open",":modal"].some(t=>{try{return i.matches(t)}catch{return!1}})}function Vo(i){let t=Uo(),e=pe(i)?he(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 Cn(i){let t=Be(i);for(;Te(t)&&!At(t);){if(Vo(t))return t;if(Yr(t))return null;t=Be(t)}return null}function Uo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function At(i){return["html","body","#document"].includes(Tt(i))}function he(i){return re(i).getComputedStyle(i)}function qr(i){return pe(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function Be(i){if(Tt(i)==="html")return i;let t=i.assignedSlot||i.parentNode||Sn(i)&&i.host||Ee(i);return Sn(t)?t.host:t}function kn(i){let t=Be(i);return At(t)?i.ownerDocument?i.ownerDocument.body:i.body:Te(t)&&cr(t)?t:kn(t)}function lr(i,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let o=kn(i),a=o===((r=i.ownerDocument)==null?void 0:r.body),s=re(o);if(a){let l=Fo(s);return t.concat(s,s.visualViewport||[],cr(o)?o:[],l&&e?lr(l):[])}return t.concat(o,lr(o,[],e))}function Fo(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function Ln(i){let t=he(i),e=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=Te(i),a=o?i.offsetWidth:e,s=o?i.offsetHeight:r,l=Gr(e)!==a||Gr(r)!==s;return l&&(e=a,r=s),{width:e,height:r,$:l}}function Zi(i){return pe(i)?i:i.contextElement}function dr(i){let t=Zi(i);if(!Te(t))return xe(1);let e=t.getBoundingClientRect(),{width:r,height:o,$:a}=Ln(t),s=(a?Gr(e.width):e.width)/r,l=(a?Gr(e.height):e.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Sd=xe(0);function Rn(i){let t=re(i);return!Uo()||!t.visualViewport?Sd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Id(i,t,e){return t===void 0&&(t=!1),!e||t&&e!==re(i)?!1:t}function St(i,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let o=i.getBoundingClientRect(),a=Zi(i),s=xe(1);t&&(r?pe(r)&&(s=dr(r)):s=dr(i));let l=Id(a,e,r)?Rn(a):xe(0),d=(o.left+l.x)/s.x,p=(o.top+l.y)/s.y,h=o.width/s.x,b=o.height/s.y;if(a){let x=re(a),y=r&&pe(r)?re(r):r,E=x,T=Fo(E);for(;T&&r&&y!==E;){let w=dr(T),S=T.getBoundingClientRect(),C=he(T),R=S.left+(T.clientLeft+parseFloat(C.paddingLeft))*w.x,B=S.top+(T.clientTop+parseFloat(C.paddingTop))*w.y;d*=w.x,p*=w.y,h*=w.x,b*=w.y,d+=R,p+=B,E=re(T),T=Fo(E)}}return Et({width:h,height:b,x:d,y:p})}function Xi(i,t){let e=qr(i).scrollLeft;return t?t.left+e:St(Ee(i)).left+e}function On(i,t,e){e===void 0&&(e=!1);let r=i.getBoundingClientRect(),o=r.left+t.scrollLeft-(e?0:Xi(i,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function wd(i){let{elements:t,rect:e,offsetParent:r,strategy:o}=i,a=o==="fixed",s=Ee(r),l=t?Yr(t.floating):!1;if(r===s||l&&a)return e;let d={scrollLeft:0,scrollTop:0},p=xe(1),h=xe(0),b=Te(r);if((b||!b&&!a)&&((Tt(r)!=="body"||cr(s))&&(d=qr(r)),Te(r))){let y=St(r);p=dr(r),h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}let x=s&&!b&&!a?On(s,d,!0):xe(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 Cd(i){return Array.from(i.getClientRects())}function kd(i){let t=Ee(i),e=qr(i),r=i.ownerDocument.body,o=Q(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Q(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+Xi(i),l=-e.scrollTop;return he(r).direction==="rtl"&&(s+=Q(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:l}}function Nd(i,t){let e=re(i),r=Ee(i),o=e.visualViewport,a=r.clientWidth,s=r.clientHeight,l=0,d=0;if(o){a=o.width,s=o.height;let p=Uo();(!p||p&&t==="fixed")&&(l=o.offsetLeft,d=o.offsetTop)}return{width:a,height:s,x:l,y:d}}function _d(i,t){let e=St(i,!0,t==="fixed"),r=e.top+i.clientTop,o=e.left+i.clientLeft,a=Te(i)?dr(i):xe(1),s=i.clientWidth*a.x,l=i.clientHeight*a.y,d=o*a.x,p=r*a.y;return{width:s,height:l,x:d,y:p}}function Nn(i,t,e){let r;if(t==="viewport")r=Nd(i,e);else if(t==="document")r=kd(Ee(i));else if(pe(t))r=_d(t,e);else{let o=Rn(i);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Et(r)}function Mn(i,t){let e=Be(i);return e===t||!pe(e)||At(e)?!1:he(e).position==="fixed"||Mn(e,t)}function Ld(i,t){let e=t.get(i);if(e)return e;let r=lr(i,[],!1).filter(l=>pe(l)&&Tt(l)!=="body"),o=null,a=he(i).position==="fixed",s=a?Be(i):i;for(;pe(s)&&!At(s);){let l=he(s),d=Vo(s);!d&&l.position==="fixed"&&(o=null),(a?!d&&!o:!d&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||cr(s)&&!d&&Mn(i,s))?r=r.filter(h=>h!==s):o=l,s=Be(s)}return t.set(i,r),r}function Rd(i){let{element:t,boundary:e,rootBoundary:r,strategy:o}=i,s=[...e==="clippingAncestors"?Yr(t)?[]:Ld(t,this._c):[].concat(e),r],l=s[0],d=s.reduce((p,h)=>{let b=Nn(t,h,o);return p.top=Q(b.top,p.top),p.right=Ne(b.right,p.right),p.bottom=Ne(b.bottom,p.bottom),p.left=Q(b.left,p.left),p},Nn(t,l,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Od(i){let{width:t,height:e}=Ln(i);return{width:t,height:e}}function Md(i,t,e){let r=Te(t),o=Ee(t),a=e==="fixed",s=St(i,!0,a,t),l={scrollLeft:0,scrollTop:0},d=xe(0);if(r||!r&&!a)if((Tt(t)!=="body"||cr(o))&&(l=qr(t)),r){let x=St(t,!0,a,t);d.x=x.x+t.clientLeft,d.y=x.y+t.clientTop}else o&&(d.x=Xi(o));let p=o&&!r&&!a?On(o,l):xe(0),h=s.left+l.scrollLeft-d.x-p.x,b=s.top+l.scrollTop-d.y-p.y;return{x:h,y:b,width:s.width,height:s.height}}function qi(i){return he(i).position==="static"}function _n(i,t){if(!Te(i)||he(i).position==="fixed")return null;if(t)return t(i);let e=i.offsetParent;return Ee(i)===e&&(e=e.ownerDocument.body),e}function Dn(i,t){let e=re(i);if(Yr(i))return e;if(!Te(i)){let o=Be(i);for(;o&&!At(o);){if(pe(o)&&!qi(o))return o;o=Be(o)}return e}let r=_n(i,t);for(;r&&wn(r)&&qi(r);)r=_n(r,t);return r&&At(r)&&qi(r)&&!Vo(r)?e:r||Cn(i)||e}var Dd=async function(i){let t=this.getOffsetParent||Dn,e=this.getDimensions,r=await e(i.floating);return{reference:Md(i.reference,await t(i.floating),i.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function $d(i){return he(i).direction==="rtl"}var zd={convertOffsetParentRelativeRectToViewportRelativeRect:wd,getDocumentElement:Ee,getClippingRect:Rd,getOffsetParent:Dn,getElementRects:Dd,getClientRects:Cd,getDimensions:Od,getScale:dr,isElement:pe,isRTL:$d};function Pd(i,t){let e=null,r,o=Ee(i);function a(){var l;clearTimeout(r),(l=e)==null||l.disconnect(),e=null}function s(l,d){l===void 0&&(l=!1),d===void 0&&(d=1),a();let{left:p,top:h,width:b,height:x}=i.getBoundingClientRect();if(l||t(),!b||!x)return;let y=Wr(h),E=Wr(o.clientWidth-(p+b)),T=Wr(o.clientHeight-(h+x)),w=Wr(p),C={rootMargin:-y+"px "+-E+"px "+-T+"px "+-w+"px",threshold:Q(0,Ne(1,d))||1},R=!0;function B(z){let de=z[0].intersectionRatio;if(de!==d){if(!R)return s();de?s(!1,de):r=setTimeout(()=>{s(!1,1e-7)},1e3)}R=!1}try{e=new IntersectionObserver(B,{...C,root:o.ownerDocument})}catch{e=new IntersectionObserver(B,C)}e.observe(i)}return s(!0),a}function $n(i,t,e,r){r===void 0&&(r={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,p=Zi(i),h=o||a?[...p?lr(p):[],...lr(t)]:[];h.forEach(S=>{o&&S.addEventListener("scroll",e,{passive:!0}),a&&S.addEventListener("resize",e)});let b=p&&l?Pd(p,e):null,x=-1,y=null;s&&(y=new ResizeObserver(S=>{let[C]=S;C&&C.target===p&&y&&(y.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var R;(R=y)==null||R.observe(t)})),e()}),p&&!d&&y.observe(p),y.observe(t));let E,T=d?St(i):null;d&&w();function w(){let S=St(i);T&&(S.x!==T.x||S.y!==T.y||S.width!==T.width||S.height!==T.height)&&e(),T=S,E=requestAnimationFrame(w)}return e(),()=>{var S;h.forEach(C=>{o&&C.removeEventListener("scroll",e),a&&C.removeEventListener("resize",e)}),b==null||b(),(S=y)==null||S.disconnect(),y=null,d&&cancelAnimationFrame(E)}}var zn=En;var Pn=Tn,Vn=xn,Un=An;var Fn=yn;var Bn=(i,t,e)=>{let r=new Map,o={platform:zd,...e},a={...o.platform,_c:r};return gn(i,t,{...o,platform:a})};var Hn=f.constructTagName("popover"),ne={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"},It={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Zr={TONAL:"tonal",CONTRAST:"contrast"},M={PLACEMENT:ne.BOTTOM,TRIGGER:It.CLICK,COLOR:Zr.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 Gn=i=>{class t extends i{constructor(...o){super(...o);this.enabledFocusTrap=M.FOCUS_TRAP;this.enabledPreventScroll=M.PREVENT_SCROLL;this.focusTrapIndex=-1;this.focusableElements=[];this.shouldWrapFocus=()=>!0;this.addEventListener("keydown",this.handleKeydown)}deactivateFocusTrap(){this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.focusTrapIndex=-1,document.body.style.overflow=""}hasNoClientRects(o){return o.getClientRects().length===0}hasZeroDimensions(o){let{width:a,height:s}=o.getBoundingClientRect(),{offsetWidth:l,offsetHeight:d}=o;return l+d+s+a===0}isNotVisible(o){return this.hasZeroDimensions(o)||this.hasNoClientRects(o)}hasHiddenStyle(o){let{display:a,opacity:s,visibility:l}=o.style;return a==="none"||s==="0"||l==="hidden"||l==="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(l=>{let d=l;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,l=this.shouldWrapFocus();if(o===-1)return a>0?0:s-1;let d=o+a;return l?(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 l=this.focusableElements[this.focusTrapIndex];l&&l.focus()}handleKeydown(o){!this.enabledFocusTrap||!this.focusableElements.length||o.key==="Tab"&&(o.preventDefault(),this.trapFocus(o.shiftKey))}}return n([c({type:Boolean})],t.prototype,"enabledFocusTrap",2),n([c({type:Boolean})],t.prototype,"enabledPreventScroll",2),t};var wt=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 Ki=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=[]}},Ct=new Ki;var Vd=u`
|
1589
|
+
`}};sr.styles=[...v.styles,...pn],n([c({type:String,reflect:!0})],sr.prototype,"color",2),n([c({type:String})],sr.prototype,"label",2);var nr=sr;nr.register(hn);var gd=nr;var Ne=Math.min,Q=Math.max,Gr=Math.round,Wr=Math.floor,xe=i=>({x:i,y:i}),yd={left:"right",right:"left",bottom:"top",top:"bottom"},xd={start:"end",end:"start"};function Mo(i,t,e){return Q(i,Ne(t,e))}function yt(i,t){return typeof i=="function"?i(t):i}function Be(i){return i.split("-")[0]}function xt(i){return i.split("-")[1]}function Wi(i){return i==="x"?"y":"x"}function Do(i){return i==="y"?"height":"width"}function rt(i){return["top","bottom"].includes(Be(i))?"y":"x"}function $o(i){return Wi(rt(i))}function un(i,t,e){e===void 0&&(e=!1);let r=xt(i),o=$o(i),a=Do(o),s=o==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Hr(s)),[s,Hr(s)]}function fn(i){let t=Hr(i);return[Oo(i),t,Oo(t)]}function Oo(i){return i.replace(/start|end/g,t=>xd[t])}function Ed(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 bn(i,t,e,r){let o=xt(i),a=Ed(Be(i),e==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Oo)))),a}function Hr(i){return i.replace(/left|right|bottom|top/g,t=>yd[t])}function Td(i){return{top:0,right:0,bottom:0,left:0,...i}}function Yi(i){return typeof i!="number"?Td(i):{top:i,right:i,bottom:i,left:i}}function Et(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 vn(i,t,e){let{reference:r,floating:o}=i,a=rt(t),s=$o(t),l=Do(s),d=Be(t),p=a==="y",h=r.x+r.width/2-o.width/2,b=r.y+r.height/2-o.height/2,x=r[l]/2-o[l]/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(xt(t)){case"start":y[s]-=x*(e&&p?-1:1);break;case"end":y[s]+=x*(e&&p?-1:1);break}return y}var gn=async(i,t,e)=>{let{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=e,l=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}=vn(p,r,d),x=r,y={},E=0;for(let T=0;T<l.length;T++){let{name:w,fn:S}=l[T],{x:C,y:R,data:B,reset:z}=await S({x:h,y:b,initialPlacement:r,placement:x,strategy:o,middlewareData:y,rects:p,platform:s,elements:{reference:i,floating:t}});h=C!=null?C:h,b=R!=null?R:b,y={...y,[w]:{...y[w],...B}},z&&E<=50&&(E++,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}=vn(p,x,d)),T=-1)}return{x:h,y:b,placement:x,strategy:o,middlewareData:y}};async function zo(i,t){var e;t===void 0&&(t={});let{x:r,y:o,platform:a,rects:s,elements:l,strategy:d}=i,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:b="floating",altBoundary:x=!1,padding:y=0}=yt(t,i),E=Yi(y),w=l[x?b==="floating"?"reference":"floating":b],S=Et(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(w)))==null||e?w:w.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:h,strategy:d})),C=b==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),B=await(a.isElement==null?void 0:a.isElement(R))?await(a.getScale==null?void 0:a.getScale(R))||{x:1,y:1}:{x:1,y:1},z=Et(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:C,offsetParent:R,strategy:d}):C);return{top:(S.top-z.top+E.top)/B.y,bottom:(z.bottom-S.bottom+E.bottom)/B.y,left:(S.left-z.left+E.left)/B.x,right:(z.right-S.right+E.right)/B.x}}var yn=i=>({name:"arrow",options:i,async fn(t){let{x:e,y:r,placement:o,rects:a,platform:s,elements:l,middlewareData:d}=t,{element:p,padding:h=0}=yt(i,t)||{};if(p==null)return{};let b=Yi(h),x={x:e,y:r},y=$o(o),E=Do(y),T=await s.getDimensions(p),w=y==="y",S=w?"top":"left",C=w?"bottom":"right",R=w?"clientHeight":"clientWidth",B=a.reference[E]+a.reference[y]-x[y]-a.floating[E],z=x[y]-a.reference[y],de=await(s.getOffsetParent==null?void 0:s.getOffsetParent(p)),ve=de?de[R]:0;(!ve||!await(s.isElement==null?void 0:s.isElement(de)))&&(ve=l.floating[R]||a.floating[E]);let _e=B/2-z/2,Se=ve/2-T[E]/2-1,ge=Ne(b[S],Se),qe=Ne(b[C],Se),Ie=ge,Ze=ve-T[E]-qe,X=ve/2-T[E]/2+_e,Ft=Mo(Ie,X,Ze),Le=!d.arrow&&xt(o)!=null&&X!==Ft&&a.reference[E]/2-(X<Ie?ge:qe)-T[E]/2<0,we=Le?X<Ie?X-Ie:X-Ze:0;return{[y]:x[y]+we,data:{[y]:Ft,centerOffset:X-Ft-we,...Le&&{alignmentOffset:we}},reset:Le}}});var xn=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:l,platform:d,elements:p}=t,{mainAxis:h=!0,crossAxis:b=!0,fallbackPlacements:x,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:T=!0,...w}=yt(i,t);if((e=a.arrow)!=null&&e.alignmentOffset)return{};let S=Be(o),C=rt(l),R=Be(l)===l,B=await(d.isRTL==null?void 0:d.isRTL(p.floating)),z=x||(R||!T?[Hr(l)]:fn(l)),de=E!=="none";!x&&de&&z.push(...bn(l,T,E,B));let ve=[l,...z],_e=await zo(t,w),Se=[],ge=((r=a.flip)==null?void 0:r.overflows)||[];if(h&&Se.push(_e[S]),b){let X=un(o,s,B);Se.push(_e[X[0]],_e[X[1]])}if(ge=[...ge,{placement:o,overflows:Se}],!Se.every(X=>X<=0)){var qe,Ie;let X=(((qe=a.flip)==null?void 0:qe.index)||0)+1,Ft=ve[X];if(Ft)return{data:{index:X,overflows:ge},reset:{placement:Ft}};let Le=(Ie=ge.filter(we=>we.overflows[0]<=0).sort((we,Xe)=>we.overflows[1]-Xe.overflows[1])[0])==null?void 0:Ie.placement;if(!Le)switch(y){case"bestFit":{var Ze;let we=(Ze=ge.filter(Xe=>{if(de){let Ke=rt(Xe.placement);return Ke===C||Ke==="y"}return!0}).map(Xe=>[Xe.placement,Xe.overflows.filter(Ke=>Ke>0).reduce((Ke,gc)=>Ke+gc,0)]).sort((Xe,Ke)=>Xe[1]-Ke[1])[0])==null?void 0:Ze[0];we&&(Le=we);break}case"initialPlacement":Le=l;break}if(o!==Le)return{reset:{placement:Le}}}return{}}}};async function Ad(i,t){let{placement:e,platform:r,elements:o}=i,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Be(e),l=xt(e),d=rt(e)==="y",p=["left","top"].includes(s)?-1:1,h=a&&d?-1:1,b=yt(t,i),{mainAxis:x,crossAxis:y,alignmentAxis:E}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return l&&typeof E=="number"&&(y=l==="end"?E*-1:E),d?{x:y*h,y:x*p}:{x:x*p,y:y*h}}var En=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:l}=t,d=await Ad(t,i);return s===((e=l.offset)==null?void 0:e.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:a+d.y,data:{...d,placement:s}}}}},Tn=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:l={fn:w=>{let{x:S,y:C}=w;return{x:S,y:C}}},...d}=yt(i,t),p={x:e,y:r},h=await zo(t,d),b=rt(Be(o)),x=Wi(b),y=p[x],E=p[b];if(a){let w=x==="y"?"top":"left",S=x==="y"?"bottom":"right",C=y+h[w],R=y-h[S];y=Mo(C,y,R)}if(s){let w=b==="y"?"top":"left",S=b==="y"?"bottom":"right",C=E+h[w],R=E-h[S];E=Mo(C,E,R)}let T=l.fn({...t,[x]:y,[b]:E});return{...T,data:{x:T.x-e,y:T.y-r,enabled:{[x]:a,[b]:s}}}}}};var An=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:l}=t,{apply:d=()=>{},...p}=yt(i,t),h=await zo(t,p),b=Be(o),x=xt(o),y=rt(o)==="y",{width:E,height:T}=a.floating,w,S;b==="top"||b==="bottom"?(w=b,S=x===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(S=b,w=x==="end"?"top":"bottom");let C=T-h.top-h.bottom,R=E-h.left-h.right,B=Ne(T-h[w],C),z=Ne(E-h[S],R),de=!t.middlewareData.shift,ve=B,_e=z;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&(_e=R),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(ve=C),de&&!x){let ge=Q(h.left,0),qe=Q(h.right,0),Ie=Q(h.top,0),Ze=Q(h.bottom,0);y?_e=E-2*(ge!==0||qe!==0?ge+qe:Q(h.left,h.right)):ve=T-2*(Ie!==0||Ze!==0?Ie+Ze:Q(h.top,h.bottom))}await d({...t,availableWidth:_e,availableHeight:ve});let Se=await s.getDimensions(l.floating);return E!==Se.width||T!==Se.height?{reset:{rects:!0}}:{}}}};function Po(){return typeof window<"u"}function Tt(i){return In(i)?(i.nodeName||"").toLowerCase():"#document"}function oe(i){var t;return(i==null||(t=i.ownerDocument)==null?void 0:t.defaultView)||window}function Ee(i){var t;return(t=(In(i)?i.ownerDocument:i.document)||window.document)==null?void 0:t.documentElement}function In(i){return Po()?i instanceof Node||i instanceof oe(i).Node:!1}function pe(i){return Po()?i instanceof Element||i instanceof oe(i).Element:!1}function Te(i){return Po()?i instanceof HTMLElement||i instanceof oe(i).HTMLElement:!1}function Sn(i){return!Po()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof oe(i).ShadowRoot}function cr(i){let{overflow:t,overflowX:e,overflowY:r,display:o}=he(i);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(o)}function wn(i){return["table","td","th"].includes(Tt(i))}function Yr(i){return[":popover-open",":modal"].some(t=>{try{return i.matches(t)}catch{return!1}})}function Vo(i){let t=Uo(),e=pe(i)?he(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 Cn(i){let t=He(i);for(;Te(t)&&!At(t);){if(Vo(t))return t;if(Yr(t))return null;t=He(t)}return null}function Uo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function At(i){return["html","body","#document"].includes(Tt(i))}function he(i){return oe(i).getComputedStyle(i)}function qr(i){return pe(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function He(i){if(Tt(i)==="html")return i;let t=i.assignedSlot||i.parentNode||Sn(i)&&i.host||Ee(i);return Sn(t)?t.host:t}function kn(i){let t=He(i);return At(t)?i.ownerDocument?i.ownerDocument.body:i.body:Te(t)&&cr(t)?t:kn(t)}function lr(i,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let o=kn(i),a=o===((r=i.ownerDocument)==null?void 0:r.body),s=oe(o);if(a){let l=Fo(s);return t.concat(s,s.visualViewport||[],cr(o)?o:[],l&&e?lr(l):[])}return t.concat(o,lr(o,[],e))}function Fo(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function Ln(i){let t=he(i),e=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=Te(i),a=o?i.offsetWidth:e,s=o?i.offsetHeight:r,l=Gr(e)!==a||Gr(r)!==s;return l&&(e=a,r=s),{width:e,height:r,$:l}}function Zi(i){return pe(i)?i:i.contextElement}function dr(i){let t=Zi(i);if(!Te(t))return xe(1);let e=t.getBoundingClientRect(),{width:r,height:o,$:a}=Ln(t),s=(a?Gr(e.width):e.width)/r,l=(a?Gr(e.height):e.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Sd=xe(0);function Rn(i){let t=oe(i);return!Uo()||!t.visualViewport?Sd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Id(i,t,e){return t===void 0&&(t=!1),!e||t&&e!==oe(i)?!1:t}function St(i,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let o=i.getBoundingClientRect(),a=Zi(i),s=xe(1);t&&(r?pe(r)&&(s=dr(r)):s=dr(i));let l=Id(a,e,r)?Rn(a):xe(0),d=(o.left+l.x)/s.x,p=(o.top+l.y)/s.y,h=o.width/s.x,b=o.height/s.y;if(a){let x=oe(a),y=r&&pe(r)?oe(r):r,E=x,T=Fo(E);for(;T&&r&&y!==E;){let w=dr(T),S=T.getBoundingClientRect(),C=he(T),R=S.left+(T.clientLeft+parseFloat(C.paddingLeft))*w.x,B=S.top+(T.clientTop+parseFloat(C.paddingTop))*w.y;d*=w.x,p*=w.y,h*=w.x,b*=w.y,d+=R,p+=B,E=oe(T),T=Fo(E)}}return Et({width:h,height:b,x:d,y:p})}function Xi(i,t){let e=qr(i).scrollLeft;return t?t.left+e:St(Ee(i)).left+e}function On(i,t,e){e===void 0&&(e=!1);let r=i.getBoundingClientRect(),o=r.left+t.scrollLeft-(e?0:Xi(i,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function wd(i){let{elements:t,rect:e,offsetParent:r,strategy:o}=i,a=o==="fixed",s=Ee(r),l=t?Yr(t.floating):!1;if(r===s||l&&a)return e;let d={scrollLeft:0,scrollTop:0},p=xe(1),h=xe(0),b=Te(r);if((b||!b&&!a)&&((Tt(r)!=="body"||cr(s))&&(d=qr(r)),Te(r))){let y=St(r);p=dr(r),h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}let x=s&&!b&&!a?On(s,d,!0):xe(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 Cd(i){return Array.from(i.getClientRects())}function kd(i){let t=Ee(i),e=qr(i),r=i.ownerDocument.body,o=Q(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Q(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+Xi(i),l=-e.scrollTop;return he(r).direction==="rtl"&&(s+=Q(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:l}}function Nd(i,t){let e=oe(i),r=Ee(i),o=e.visualViewport,a=r.clientWidth,s=r.clientHeight,l=0,d=0;if(o){a=o.width,s=o.height;let p=Uo();(!p||p&&t==="fixed")&&(l=o.offsetLeft,d=o.offsetTop)}return{width:a,height:s,x:l,y:d}}function _d(i,t){let e=St(i,!0,t==="fixed"),r=e.top+i.clientTop,o=e.left+i.clientLeft,a=Te(i)?dr(i):xe(1),s=i.clientWidth*a.x,l=i.clientHeight*a.y,d=o*a.x,p=r*a.y;return{width:s,height:l,x:d,y:p}}function Nn(i,t,e){let r;if(t==="viewport")r=Nd(i,e);else if(t==="document")r=kd(Ee(i));else if(pe(t))r=_d(t,e);else{let o=Rn(i);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Et(r)}function Mn(i,t){let e=He(i);return e===t||!pe(e)||At(e)?!1:he(e).position==="fixed"||Mn(e,t)}function Ld(i,t){let e=t.get(i);if(e)return e;let r=lr(i,[],!1).filter(l=>pe(l)&&Tt(l)!=="body"),o=null,a=he(i).position==="fixed",s=a?He(i):i;for(;pe(s)&&!At(s);){let l=he(s),d=Vo(s);!d&&l.position==="fixed"&&(o=null),(a?!d&&!o:!d&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||cr(s)&&!d&&Mn(i,s))?r=r.filter(h=>h!==s):o=l,s=He(s)}return t.set(i,r),r}function Rd(i){let{element:t,boundary:e,rootBoundary:r,strategy:o}=i,s=[...e==="clippingAncestors"?Yr(t)?[]:Ld(t,this._c):[].concat(e),r],l=s[0],d=s.reduce((p,h)=>{let b=Nn(t,h,o);return p.top=Q(b.top,p.top),p.right=Ne(b.right,p.right),p.bottom=Ne(b.bottom,p.bottom),p.left=Q(b.left,p.left),p},Nn(t,l,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Od(i){let{width:t,height:e}=Ln(i);return{width:t,height:e}}function Md(i,t,e){let r=Te(t),o=Ee(t),a=e==="fixed",s=St(i,!0,a,t),l={scrollLeft:0,scrollTop:0},d=xe(0);if(r||!r&&!a)if((Tt(t)!=="body"||cr(o))&&(l=qr(t)),r){let x=St(t,!0,a,t);d.x=x.x+t.clientLeft,d.y=x.y+t.clientTop}else o&&(d.x=Xi(o));let p=o&&!r&&!a?On(o,l):xe(0),h=s.left+l.scrollLeft-d.x-p.x,b=s.top+l.scrollTop-d.y-p.y;return{x:h,y:b,width:s.width,height:s.height}}function qi(i){return he(i).position==="static"}function _n(i,t){if(!Te(i)||he(i).position==="fixed")return null;if(t)return t(i);let e=i.offsetParent;return Ee(i)===e&&(e=e.ownerDocument.body),e}function Dn(i,t){let e=oe(i);if(Yr(i))return e;if(!Te(i)){let o=He(i);for(;o&&!At(o);){if(pe(o)&&!qi(o))return o;o=He(o)}return e}let r=_n(i,t);for(;r&&wn(r)&&qi(r);)r=_n(r,t);return r&&At(r)&&qi(r)&&!Vo(r)?e:r||Cn(i)||e}var Dd=async function(i){let t=this.getOffsetParent||Dn,e=this.getDimensions,r=await e(i.floating);return{reference:Md(i.reference,await t(i.floating),i.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function $d(i){return he(i).direction==="rtl"}var zd={convertOffsetParentRelativeRectToViewportRelativeRect:wd,getDocumentElement:Ee,getClippingRect:Rd,getOffsetParent:Dn,getElementRects:Dd,getClientRects:Cd,getDimensions:Od,getScale:dr,isElement:pe,isRTL:$d};function Pd(i,t){let e=null,r,o=Ee(i);function a(){var l;clearTimeout(r),(l=e)==null||l.disconnect(),e=null}function s(l,d){l===void 0&&(l=!1),d===void 0&&(d=1),a();let{left:p,top:h,width:b,height:x}=i.getBoundingClientRect();if(l||t(),!b||!x)return;let y=Wr(h),E=Wr(o.clientWidth-(p+b)),T=Wr(o.clientHeight-(h+x)),w=Wr(p),C={rootMargin:-y+"px "+-E+"px "+-T+"px "+-w+"px",threshold:Q(0,Ne(1,d))||1},R=!0;function B(z){let de=z[0].intersectionRatio;if(de!==d){if(!R)return s();de?s(!1,de):r=setTimeout(()=>{s(!1,1e-7)},1e3)}R=!1}try{e=new IntersectionObserver(B,{...C,root:o.ownerDocument})}catch{e=new IntersectionObserver(B,C)}e.observe(i)}return s(!0),a}function $n(i,t,e,r){r===void 0&&(r={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,p=Zi(i),h=o||a?[...p?lr(p):[],...lr(t)]:[];h.forEach(S=>{o&&S.addEventListener("scroll",e,{passive:!0}),a&&S.addEventListener("resize",e)});let b=p&&l?Pd(p,e):null,x=-1,y=null;s&&(y=new ResizeObserver(S=>{let[C]=S;C&&C.target===p&&y&&(y.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var R;(R=y)==null||R.observe(t)})),e()}),p&&!d&&y.observe(p),y.observe(t));let E,T=d?St(i):null;d&&w();function w(){let S=St(i);T&&(S.x!==T.x||S.y!==T.y||S.width!==T.width||S.height!==T.height)&&e(),T=S,E=requestAnimationFrame(w)}return e(),()=>{var S;h.forEach(C=>{o&&C.removeEventListener("scroll",e),a&&C.removeEventListener("resize",e)}),b==null||b(),(S=y)==null||S.disconnect(),y=null,d&&cancelAnimationFrame(E)}}var zn=En;var Pn=Tn,Vn=xn,Un=An;var Fn=yn;var Bn=(i,t,e)=>{let r=new Map,o={platform:zd,...e},a={...o.platform,_c:r};return gn(i,t,{...o,platform:a})};var Hn=f.constructTagName("popover"),ne={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"},It={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Zr={TONAL:"tonal",CONTRAST:"contrast"},M={PLACEMENT:ne.BOTTOM,TRIGGER:It.CLICK,COLOR:Zr.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 Gn=i=>{class t extends i{constructor(...o){super(...o);this.enabledFocusTrap=M.FOCUS_TRAP;this.enabledPreventScroll=M.PREVENT_SCROLL;this.focusTrapIndex=-1;this.focusableElements=[];this.shouldWrapFocus=()=>!0;this.addEventListener("keydown",this.handleKeydown)}deactivateFocusTrap(){this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.focusTrapIndex=-1,document.body.style.overflow=""}hasNoClientRects(o){return o.getClientRects().length===0}hasZeroDimensions(o){let{width:a,height:s}=o.getBoundingClientRect(),{offsetWidth:l,offsetHeight:d}=o;return l+d+s+a===0}isNotVisible(o){return this.hasZeroDimensions(o)||this.hasNoClientRects(o)}hasHiddenStyle(o){let{display:a,opacity:s,visibility:l}=o.style;return a==="none"||s==="0"||l==="hidden"||l==="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(l=>{let d=l;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,l=this.shouldWrapFocus();if(o===-1)return a>0?0:s-1;let d=o+a;return l?(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 l=this.focusableElements[this.focusTrapIndex];l&&l.focus()}handleKeydown(o){!this.enabledFocusTrap||!this.focusableElements.length||o.key==="Tab"&&(o.preventDefault(),this.trapFocus(o.shiftKey))}}return n([c({type:Boolean})],t.prototype,"enabledFocusTrap",2),n([c({type:Boolean})],t.prototype,"enabledPreventScroll",2),t};var wt=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 Ki=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=[]}},Ct=new Ki;var Vd=u`
|
1581
1590
|
:host {
|
1582
1591
|
--mdc-popover-arrow-border-radius: 0.1875rem;
|
1583
1592
|
--mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
|
@@ -2266,19 +2275,19 @@
|
|
2266
2275
|
opacity: 0;
|
2267
2276
|
pointer-events: none;
|
2268
2277
|
}
|
2269
|
-
`,...O(!0)],al=Qd;j.register(an);var ue=j;var sl=f.constructTagName("input"),Wo={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},na={OFF:"off",ON:"on"},la={TEXT:"text",SEARCH:"search"},nl={MAX_LENGTH:10,VALIDATION:W.ERROR},
|
2278
|
+
`,...O(!0)],al=Qd;j.register(an);var ue=j;var sl=f.constructTagName("input"),Wo={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},na={OFF:"off",ON:"on"},la={TEXT:"text",SEARCH:"search"},nl={MAX_LENGTH:10,VALIDATION:W.ERROR},Ge={VALIDATION:W.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:et.TERTIARY,CLEAR_BUTTON_SIZE:Jt[20],PREFIX_TEXT_TYPE:I.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:k.SPAN,AUTO_COMPLETE:na.OFF,INPUT_TYPE:la.TEXT};var U=class extends re(P(ue)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=Wo.OFF;this.autocomplete=na.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`
|
2270
2279
|
<mdc-icon
|
2271
2280
|
class="leading-icon"
|
2272
2281
|
part="leading-icon"
|
2273
2282
|
name=${this.leadingIcon}
|
2274
|
-
size="${
|
2275
|
-
length-unit="${
|
2283
|
+
size="${Ge.ICON_SIZE_VALUE}"
|
2284
|
+
length-unit="${Ge.ICON_SIZE_UNIT}">
|
2276
2285
|
</mdc-icon>
|
2277
2286
|
`:g}renderPrefixText(){return this.prefixText?m`
|
2278
2287
|
<mdc-text
|
2279
2288
|
class="prefix-text"
|
2280
|
-
tagname="${
|
2281
|
-
type="${
|
2289
|
+
tagname="${Ge.PREFIX_TEXT_TAG}"
|
2290
|
+
type="${Ge.PREFIX_TEXT_TYPE}"
|
2282
2291
|
aria-hidden="true"
|
2283
2292
|
>
|
2284
2293
|
${this.prefixText.slice(0,nl.MAX_LENGTH)}
|
@@ -2287,9 +2296,9 @@
|
|
2287
2296
|
<mdc-button
|
2288
2297
|
part='trailing-button'
|
2289
2298
|
class='own-focus-ring ${r?"":"hidden"}'
|
2290
|
-
prefix-icon='${
|
2291
|
-
variant='${
|
2292
|
-
size="${
|
2299
|
+
prefix-icon='${Ge.CLEAR_BUTTON_ICON}'
|
2300
|
+
variant='${Ge.CLEAR_BUTTON_VARIANT}'
|
2301
|
+
size="${Ge.CLEAR_BUTTON_SIZE}"
|
2293
2302
|
aria-label="${this.clearAriaLabel}"
|
2294
2303
|
@click=${this.clearInputText}
|
2295
2304
|
?disabled=${this.disabled||this.readonly||!r}
|
@@ -2326,7 +2335,7 @@
|
|
2326
2335
|
<slot name="input-leading-icon">${this.renderLeadingIcon()}</slot>
|
2327
2336
|
<div class="input-section" part="input-section">
|
2328
2337
|
<slot name="input-prefix-text">${this.renderPrefixText()}</slot>
|
2329
|
-
<slot name="input">${this.renderInputElement(
|
2338
|
+
<slot name="input">${this.renderInputElement(Ge.INPUT_TYPE)}</slot>
|
2330
2339
|
</div>
|
2331
2340
|
<slot name="trailing-button">${this.renderTrailingButton()}</slot>
|
2332
2341
|
</div>
|
@@ -2502,9 +2511,9 @@
|
|
2502
2511
|
text-transform: var(--mds-font-apps-body-large-regular-underline-text-case);
|
2503
2512
|
}
|
2504
2513
|
|
2505
|
-
`,...O()],hl=om;var
|
2514
|
+
`,...O()],hl=om;var We=class extends H(Zt(v)){constructor(){super(...arguments);this.inline=da.INLINE;this.inverted=da.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`
|
2506
2515
|
<slot></slot>
|
2507
|
-
`}};
|
2516
|
+
`}};We.styles=[...v.styles,...hl],n([c({type:Boolean,reflect:!0})],We.prototype,"inline",2),n([c({type:Boolean,reflect:!0})],We.prototype,"inverted",2),n([c({type:String,reflect:!0})],We.prototype,"href",2),n([c({type:String,reflect:!0})],We.prototype,"target",2),n([c({type:String,reflect:!0})],We.prototype,"rel",2);var at=We;var Qr=class extends ee(at){constructor(){super(...arguments);this.size=dl.LINK_SIZE}getIconSize(){switch(this.size){case Zo.SMALL:return Xo.SMALL;case Zo.MIDSIZE:return Xo.MIDSIZE;default:return Xo.LARGE}}render(){return m`
|
2508
2517
|
<slot></slot>
|
2509
2518
|
${this.iconName?m`
|
2510
2519
|
<mdc-icon
|
@@ -2533,7 +2542,7 @@
|
|
2533
2542
|
${t}
|
2534
2543
|
<slot role="presentation" @click="${this.handleMouseClick}"></slot>
|
2535
2544
|
</div>
|
2536
|
-
`}};ur.styles=[...v.styles,...bl],n([
|
2545
|
+
`}};ur.styles=[...v.styles,...bl],n([ie({selector:Ko})],ur.prototype,"listItems",2),n([c({type:String,attribute:"header-text",reflect:!0})],ur.prototype,"headerText",2);var ua=ur;ua.register(fl);var sm=ua;var nm=u`
|
2537
2546
|
:host {
|
2538
2547
|
--mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
|
2539
2548
|
--mdc-listitem-background-color-hover: var(--mds-color-theme-background-primary-hover);
|
@@ -2623,7 +2632,7 @@
|
|
2623
2632
|
</div>
|
2624
2633
|
<slot name="trailing-controls"></slot>
|
2625
2634
|
</div>
|
2626
|
-
`}};fe.styles=[...v.styles,...vl],n([
|
2635
|
+
`}};fe.styles=[...v.styles,...vl],n([ie({slot:"leading-controls"})],fe.prototype,"leadingControlsSlot",2),n([ie({slot:"trailing-controls"})],fe.prototype,"trailingControlsSlot",2),n([c({type:String,reflect:!0})],fe.prototype,"variant",2),n([c({type:String,reflect:!0})],fe.prototype,"label",2),n([c({type:String,reflect:!0,attribute:"secondary-label"})],fe.prototype,"secondaryLabel",2),n([c({type:String,reflect:!0,attribute:"tertiary-label"})],fe.prototype,"tertiaryLabel",2),n([c({type:String,reflect:!0,attribute:"side-header-text"})],fe.prototype,"sideHeaderText",2),n([c({type:String,reflect:!0,attribute:"subline-text"})],fe.prototype,"sublineText",2);var fr=fe;fr.register(Ko);var lm=fr;var cm=u`
|
2627
2636
|
:host {
|
2628
2637
|
--mdc-marker-width: 0.25rem;
|
2629
2638
|
--mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
|
@@ -2677,7 +2686,7 @@
|
|
2677
2686
|
${t}
|
2678
2687
|
<slot role="presentation"></slot>
|
2679
2688
|
</div>
|
2680
|
-
`}};br.styles=[...v.styles,...El],n([c({type:String,reflect:!0})],br.prototype,"label",2),n([
|
2689
|
+
`}};br.styles=[...v.styles,...El],n([c({type:String,reflect:!0})],br.prototype,"label",2),n([ie({selector:"mdc-option"})],br.prototype,"options",2);var va=br;va.register(jo);var pm=va;var Qo=f.constructTagName("tooltip"),le={DESCRIPTION:"description",LABEL:"label",NONE:"none"},st={BACKDROP:!1,DELAY:"0,0",OFFSET:4,PLACEMENT:ne.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:le.DESCRIPTION};var hm=u`
|
2681
2690
|
|
2682
2691
|
:host {
|
2683
2692
|
--mdc-tooltip-max-width: 400px;
|
@@ -2702,7 +2711,7 @@
|
|
2702
2711
|
:host([color='contrast'])::part(popover-content) {
|
2703
2712
|
color: var(--mdc-tooltip-text-color-contrast);
|
2704
2713
|
}
|
2705
|
-
`,Tl=[hm];var vr=class extends Ae{constructor(){super(...arguments);this.tooltipType=st.TOOLTIP_TYPE}connectedCallback(){super.connectedCallback(),this.backdrop=!1,this.delay=st.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=st.OFFSET,this.placement=st.PLACEMENT,this.role="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(le).includes(e)?e:st.TOOLTIP_TYPE)}onIdUpdated(){this.id.length===0&&(this.id=`mdc-tooltip-${
|
2714
|
+
`,Tl=[hm];var vr=class extends Ae{constructor(){super(...arguments);this.tooltipType=st.TOOLTIP_TYPE}connectedCallback(){super.connectedCallback(),this.backdrop=!1,this.delay=st.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=st.OFFSET,this.placement=st.PLACEMENT,this.role="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(le).includes(e)?e:st.TOOLTIP_TYPE)}onIdUpdated(){this.id.length===0&&(this.id=`mdc-tooltip-${Ue()}`);let e=document.getElementById(this.triggerID);if(e)switch(this.tooltipType){case le.DESCRIPTION:e.setAttribute("aria-describedby",this.id);break;case le.LABEL:e.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(ne).includes(this.placement)||(this.placement=st.PLACEMENT)}onTooltipTypeUpdated(e){let r=e.get("tooltipType");Object.values(le).includes(this.tooltipType)||this.setTooltipType(st.TOOLTIP_TYPE);let o=document.getElementById(this.triggerID);if(o){let a=this.getTooltipText();switch(this.tooltipType){case le.DESCRIPTION:r===le.LABEL&&o.removeAttribute("aria-labelledby"),o.setAttribute("aria-describedby",this.id);break;case le.LABEL:r===le.DESCRIPTION&&o.removeAttribute("aria-describedby"),o.setAttribute("aria-labelledby",this.id);break;default:r===le.DESCRIPTION?o.removeAttribute("aria-describedby"):r===le.LABEL&&o.removeAttribute("aria-labelledby");break}a.length>0&&this.tooltipType!==le.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)}};vr.styles=[...Ae.styles,...Tl],n([c({type:String,attribute:"tooltip-type",reflect:!0})],vr.prototype,"tooltipType",2),n([vo()],vr.prototype,"defaultSlotNodes",2);var ga=vr;ga.register(Qo);var um=ga;var Jo=f.constructTagName("select"),ei={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"};var Al="check-bold",ya="dynamic-option-tooltip-popover",eo=f.constructTagName("option");var fm=u`
|
2706
2715
|
:host {
|
2707
2716
|
--mdc-option-icon-width: 1rem;
|
2708
2717
|
|
@@ -2731,7 +2740,7 @@
|
|
2731
2740
|
text-overflow: ellipsis;
|
2732
2741
|
white-space: nowrap;
|
2733
2742
|
}
|
2734
|
-
`,Sl=[fm];var Rt=class extends
|
2743
|
+
`,Sl=[fm];var Rt=class extends re(fr){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role="option",this.variant=pa.INSET_RECTANGLE,this.updateAttribute("aria-selected",`${this.selected}`),this.updateAttribute("aria-disabled",`${!!this.disabled}`),this.name=void 0,this.secondaryLabel=void 0,this.sideHeaderText=void 0,this.sublineText=void 0,this.dataAriaLabel=void 0,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)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",this.displayTooltipForLongText),this.removeEventListener("mouseover",this.displayTooltipForLongText),this.removeEventListener("focusout",this.hideTooltipOnLeave),this.removeEventListener("mouseout",this.hideTooltipOnLeave),this.removeEventListener("click",this.handleClick)}handleClick(){this.hideTooltipOnLeave()}displayTooltipForLongText(e){var s,l;let r=(s=e.target.shadowRoot)==null?void 0:s.querySelector('[part="leading-text-primary-label"]');if(r&&r.scrollWidth&&r.clientWidth&&r.scrollWidth<=(r==null?void 0:r.clientWidth))return;let o=document.createElement(Qo);o.id=ya,o.textContent=(l=this.label)!=null?l:"",o.setAttribute("triggerid",this.id),o.setAttribute("visible",""),o.setAttribute("show-arrow","");let a=this.closest(Jo)||this.parentElement;a==null||a.after(o)}hideTooltipOnLeave(){let e=document.querySelector(`#${ya}`);e==null||e.remove()}handleDefaultSlotChange(){var r,o,a;let e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");e&&!this.label&&(this.label=(a=(o=e.assignedNodes()[0])==null?void 0:o.textContent)==null?void 0:a.trim())}updateAttribute(e,r){this.setAttribute(e,r)}update(e){super.update(e),e.has("disabled")&&this.updateAttribute("aria-disabled",`${this.disabled}`),e.has("selected")&&this.updateAttribute("aria-selected",`${this.selected}`)}render(){let e=this.prefixIcon?m`
|
2735
2744
|
<div part="leading-icon">
|
2736
2745
|
<mdc-icon slot="leading-controls" name="${A(this.prefixIcon)}"></mdc-icon>
|
2737
2746
|
</div>
|
@@ -2842,7 +2851,7 @@
|
|
2842
2851
|
<div part="progress-bar ${e}" style="width: ${o}%"></div>
|
2843
2852
|
<div part="remaining"></div>
|
2844
2853
|
</div>
|
2845
|
-
`}}connectedCallback(){super.connectedCallback(),this.id=`mdc-progressbar-${
|
2854
|
+
`}}connectedCallback(){super.connectedCallback(),this.id=`mdc-progressbar-${Ue()}`,this.disabled=void 0}get clampedValue(){let e=Number(this.value);return Number.isNaN(e)?0:Math.max(0,Math.min(100,e))}getValidationVariant(){return this.error?this.helpTextType=W.ERROR:this.clampedValue===100?this.helpTextType=W.SUCCESS:this.helpTextType=W.DEFAULT,this.helpTextType}render(){let e=this.variant===ti.INLINE;return m`
|
2846
2855
|
${e?m`<div part="inline-label-container">${this.renderLabelElement()} ${this.renderProgressbar()}</div>`:m`
|
2847
2856
|
<div part="label-container">
|
2848
2857
|
${this.renderLabelElement()}
|
@@ -3027,7 +3036,7 @@
|
|
3027
3036
|
display: none;
|
3028
3037
|
}
|
3029
3038
|
|
3030
|
-
`,...O(!0)],Ol=Tm;var Mt=class extends
|
3039
|
+
`,...O(!0)],Ol=Tm;var Mt=class extends re(P(j)){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?m`<div class="mdc-radio__label-container">
|
3031
3040
|
${this.renderLabel()}
|
3032
3041
|
${this.renderHelperText()}
|
3033
3042
|
</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(l=>l.requiredLabel),a=!!r.find(l=>l.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 l=(d=s.shadowRoot)==null?void 0:d.querySelector("input");l&&(s.checked=!1,l.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(l=>!l.disabled),a=o.indexOf(this);if(["ArrowDown","ArrowRight"].includes(e.key)){let l=(a+1)%o.length;this.updateRadio(o,l,e)}else if(["ArrowUp","ArrowLeft"].includes(e.key)){let l=(a-1+o.length)%o.length;this.updateRadio(o,l,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 l;let s=(l=a.shadowRoot)==null?void 0:l.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`
|
@@ -3062,7 +3071,7 @@
|
|
3062
3071
|
display: none;
|
3063
3072
|
visibility: hidden;
|
3064
3073
|
}
|
3065
|
-
`],$l=wm;var
|
3074
|
+
`],$l=wm;var Ye=class extends v{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=gr.ARIA_LIVE;this.delay=gr.DELAY;this.timeout=gr.TIMEOUT;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce(e,r,o,a){var s;if(e.length>0){let l=`mdc-screenreaderannouncer-announcement-${Ue()}`,d=document.createElement("div");d.id=l,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(l);let b=window.setTimeout(()=>{var x;(x=document.getElementById(l))==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=`
|
3066
3075
|
.mdc-screenreaderannouncer__visually-hidden {
|
3067
3076
|
clip: rect(0 0 0 0);
|
3068
3077
|
clip-path: inset(50%);
|
@@ -3072,7 +3081,7 @@
|
|
3072
3081
|
white-space: nowrap;
|
3073
3082
|
width: 1px;
|
3074
3083
|
}
|
3075
|
-
`,e.appendChild(r),e.classList.add("mdc-screenreaderannouncer__visually-hidden"),document.body.appendChild(e)}}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=gr.IDENTITY),this.createAnnouncementAriaLiveRegion()}disconnectedCallback(){super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements()}updated(e){e.has("identity")&&this.identity.length===0&&(this.identity=gr.IDENTITY,this.createAnnouncementAriaLiveRegion()),e.has("announcement")&&this.announcement.length>0&&(this.announce(this.announcement,this.delay,this.timeout,this.dataAriaLive),this.announcement="")}};
|
3084
|
+
`,e.appendChild(r),e.classList.add("mdc-screenreaderannouncer__visually-hidden"),document.body.appendChild(e)}}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=gr.IDENTITY),this.createAnnouncementAriaLiveRegion()}disconnectedCallback(){super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements()}updated(e){e.has("identity")&&this.identity.length===0&&(this.identity=gr.IDENTITY,this.createAnnouncementAriaLiveRegion()),e.has("announcement")&&this.announcement.length>0&&(this.announce(this.announcement,this.delay,this.timeout,this.dataAriaLive),this.announcement="")}};Ye.styles=[...v.styles,...$l],n([c({type:String,reflect:!0})],Ye.prototype,"announcement",2),n([c({type:String,reflect:!0})],Ye.prototype,"identity",2),n([c({type:String,reflect:!0,attribute:"data-aria-live"})],Ye.prototype,"dataAriaLive",2),n([c({type:Number,reflect:!0})],Ye.prototype,"delay",2),n([c({type:Number,reflect:!0})],Ye.prototype,"timeout",2);var wa=Ye;wa.register(Dl);var Cm=wa;var km=u`
|
3076
3085
|
|
3077
3086
|
:host::part(filters-container){
|
3078
3087
|
display: flex;
|
@@ -3113,7 +3122,7 @@
|
|
3113
3122
|
</div>
|
3114
3123
|
${this.renderTrailingButton(this.hasInputChips)}
|
3115
3124
|
</div>
|
3116
|
-
`}};Dt.styles=[...hr.styles,...zl],n([
|
3125
|
+
`}};Dt.styles=[...hr.styles,...zl],n([ie({slot:"filters"})],Dt.prototype,"inputChips",2),n([N()],Dt.prototype,"isInputFocused",2),n([N()],Dt.prototype,"hasInputChips",2);var Ca=Dt;Ca.register(Pl);var Nm=Ca;var _m=u`
|
3117
3126
|
:host {
|
3118
3127
|
--mdc-select-background-color: var(--mds-color-theme-background-primary-ghost);
|
3119
3128
|
--mdc-select-icon-border-color: var(--mds-color-theme-outline-input-normal);
|
@@ -3215,7 +3224,7 @@
|
|
3215
3224
|
:host([help-text-type="warning"])::part(base-container) {
|
3216
3225
|
border-color: var(--mdc-select-warning-border-color);
|
3217
3226
|
}
|
3218
|
-
`,Vl=[_m,...O(!0)];var J=class extends
|
3227
|
+
`,Vl=[_m,...O(!0)];var J=class extends re(P(j)){constructor(){super(...arguments);this.readonly=!1;this.height="auto";this.baseIconName=ei.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()===eo?r:r.tagName.toLowerCase()===jo?Array.from(r.children).filter(o=>o.tagName.toLowerCase()===eo):[]).flat())||[]}handlePopoverOpen(){this.displayPopover=!0,this.baseIconName=ei.ARROW_UP}handlePopoverClose(){this.displayPopover=!1,this.baseIconName=ei.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.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.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`
|
3219
3228
|
<select
|
3220
3229
|
part="native-select"
|
3221
3230
|
id="${this.id}"
|
@@ -3287,7 +3296,7 @@
|
|
3287
3296
|
${this.getPopoverContent()}
|
3288
3297
|
</div>
|
3289
3298
|
${this.renderHelperText()}
|
3290
|
-
`}};J.styles=[...j.styles,...Vl],n([c({type:String})],J.prototype,"placeholder",2),n([c({type:Boolean})],J.prototype,"readonly",2),n([c({type:String})],J.prototype,"height",2),n([
|
3299
|
+
`}};J.styles=[...j.styles,...Vl],n([c({type:String})],J.prototype,"placeholder",2),n([c({type:Boolean})],J.prototype,"readonly",2),n([c({type:String})],J.prototype,"height",2),n([ie()],J.prototype,"optionsList",2),n([N()],J.prototype,"baseIconName",2),n([N()],J.prototype,"selectedValueText",2),n([N()],J.prototype,"selectedValue",2),n([N()],J.prototype,"displayPopover",2),n([N()],J.prototype,"activeDescendant",2),n([N()],J.prototype,"popoverWidth",2),n([$e("select")],J.prototype,"inputElement",2);var ka=J;ka.register(Jo);var Lm=ka;var Rm=[_,u`
|
3291
3300
|
:host {
|
3292
3301
|
--mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
|
3293
3302
|
--mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
|
@@ -3732,7 +3741,7 @@
|
|
3732
3741
|
pointer-events: none;
|
3733
3742
|
}
|
3734
3743
|
|
3735
|
-
`,...O(!0)],Gl=Pm;var Wl=f.constructTagName("textarea"),La={HARD:"hard",SOFT:"soft"},Yl={OFF:"off",ON:"on"},si={CHARACTER_COUNTER_TYPE:I.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:La.SOFT};var q=class extends
|
3744
|
+
`,...O(!0)],Gl=Pm;var Wl=f.constructTagName("textarea"),La={HARD:"hard",SOFT:"soft"},Yl={OFF:"off",ON:"on"},si={CHARACTER_COUNTER_TYPE:I.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:La.SOFT};var q=class extends re(P(ue)){constructor(){super(...arguments);this.readonly=!1;this.rows=si.ROWS;this.cols=si.COLS;this.wrap=La.SOFT;this.autocapitalize=Wo.OFF;this.autocomplete=Yl.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===W.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`
|
3736
3745
|
<mdc-text
|
3737
3746
|
part="character-counter"
|
3738
3747
|
tagname="span"
|
@@ -3885,7 +3894,7 @@
|
|
3885
3894
|
:host([disabled]) .mdc-label-text, :host([disabled]) .mdc-help-text {
|
3886
3895
|
color: var(--mdc-toggle-label-color-disabled);
|
3887
3896
|
}
|
3888
|
-
`,...O(!0)],Xl=Bm;var $t=class extends
|
3897
|
+
`,...O(!0)],Xl=Bm;var $t=class extends re(P(ue)){constructor(){super(...arguments);this.checked=!1;this.size=$a.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(Da).includes(e)?e:$a.SIZE)}update(e){super.update(e),e.has("checked")&&this.setFormValue(),e.has("size")&&this.setToggleSize(this.size)}render(){var e;return m`
|
3889
3898
|
<mdc-statictoggle
|
3890
3899
|
?checked="${this.checked}"
|
3891
3900
|
?disabled="${this.disabled}"
|
@@ -4007,7 +4016,7 @@
|
|
4007
4016
|
<div class="container" role="tablist" tabindex="-1">
|
4008
4017
|
<slot></slot>
|
4009
4018
|
</div>
|
4010
|
-
${o(xr.FORWARD)}`}};be.styles=[...v.styles,...pc],n([c({type:String,attribute:"active-tab-id",reflect:!0})],be.prototype,"activeTabId",2),n([c({type:String,attribute:"data-aria-labelledby"})],be.prototype,"dataAriaLabelledby",2),n([c({type:String,attribute:"data-aria-label"})],be.prototype,"dataAriaLabel",2),n([$e(".container")],be.prototype,"tabsContainer",2),n([$e("mdc-button:not(:focus-visible)")],be.prototype,"notFocusedArrowButton",2),n([
|
4019
|
+
${o(xr.FORWARD)}`}};be.styles=[...v.styles,...pc],n([c({type:String,attribute:"active-tab-id",reflect:!0})],be.prototype,"activeTabId",2),n([c({type:String,attribute:"data-aria-labelledby"})],be.prototype,"dataAriaLabelledby",2),n([c({type:String,attribute:"data-aria-label"})],be.prototype,"dataAriaLabel",2),n([$e(".container")],be.prototype,"tabsContainer",2),n([$e("mdc-button:not(:focus-visible)")],be.prototype,"notFocusedArrowButton",2),n([ie({selector:"mdc-tab"})],be.prototype,"tabs",2),n([N()],be.prototype,"showForwardArrowButton",2),n([N()],be.prototype,"showBackwardArrowButton",2);var Wa=be;Wa.register(hc);var op=Wa;var Er=class extends Lo(at){constructor(){super(...arguments);this.size=te.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`
|
4011
4020
|
${this.prefixIcon?m` <mdc-icon name="${this.prefixIcon}" part="prefix-icon"></mdc-icon>`:""}
|
4012
4021
|
<slot @slotchange=${this.inferButtonType}></slot>
|
4013
4022
|
${this.postfixIcon?m` <mdc-icon name="${this.postfixIcon}" part="postfix-icon"></mdc-icon>`:""}
|