@momentum-design/components 0.15.5 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. package/dist/browser/index.js +72 -54
  2. package/dist/browser/index.js.map +4 -4
  3. package/dist/components/avatar/avatar.component.d.ts +2 -65
  4. package/dist/components/avatar/avatar.component.js +5 -50
  5. package/dist/components/avatar/avatar.constants.d.ts +11 -2
  6. package/dist/components/avatar/avatar.constants.js +11 -3
  7. package/dist/components/avatar/avatar.styles.js +14 -14
  8. package/dist/components/avatar/avatar.types.d.ts +1 -2
  9. package/dist/components/avatar/avatar.utils.d.ts +3 -1
  10. package/dist/components/avatar/avatar.utils.js +29 -16
  11. package/dist/components/avatarbutton/avatarbutton.component.d.ts +25 -0
  12. package/dist/components/avatarbutton/avatarbutton.component.js +70 -0
  13. package/dist/components/avatarbutton/avatarbutton.constants.d.ts +2 -0
  14. package/dist/components/avatarbutton/avatarbutton.constants.js +3 -0
  15. package/dist/components/avatarbutton/avatarbutton.styles.d.ts +2 -0
  16. package/dist/components/avatarbutton/avatarbutton.styles.js +11 -0
  17. package/dist/components/avatarbutton/index.d.ts +8 -0
  18. package/dist/components/avatarbutton/index.js +5 -0
  19. package/dist/custom-elements.json +1074 -199
  20. package/dist/index.d.ts +2 -1
  21. package/dist/index.js +2 -1
  22. package/dist/react/avatarbutton/index.d.ts +13 -0
  23. package/dist/react/avatarbutton/index.js +22 -0
  24. package/dist/react/index.d.ts +2 -1
  25. package/dist/react/index.js +2 -1
  26. package/dist/utils/mixins/AvatarComponentMixin.d.ts +15 -0
  27. package/dist/utils/mixins/AvatarComponentMixin.js +66 -0
  28. package/dist/utils/mixins/DisabledMixin.d.ts +1 -2
  29. package/dist/utils/mixins/TabIndexMixin.d.ts +1 -2
  30. package/dist/utils/mixins/index.types.d.ts +1 -0
  31. package/dist/utils/mixins/index.types.js +1 -0
  32. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- "use strict";(()=>{var $r=Object.defineProperty;var kr=Object.getOwnPropertyDescriptor;var a=(i,e,t,r)=>{for(var o=r>1?void 0:r?kr(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&$r(e,t,o),o};var Rt=globalThis,zt=Rt.ShadowRoot&&(Rt.ShadyCSS===void 0||Rt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Kt=Symbol(),ze=new WeakMap,dt=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==Kt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(zt&&e===void 0){let r=t!==void 0&&t.length===1;r&&(e=ze.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&ze.set(t,e))}return e}toString(){return this.cssText}},Le=i=>new dt(typeof i=="string"?i:i+"",void 0,Kt),p=(i,...e)=>{let t=i.length===1?i[0]:e.reduce((r,o,n)=>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[n+1],i[0]);return new dt(t,i,Kt)},Qt=(i,e)=>{if(zt)i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let r=document.createElement("style"),o=Rt.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=t.cssText,i.appendChild(r)}},Lt=zt?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(let r of e.cssRules)t+=r.cssText;return Le(t)})(i):i;var{is:Dr,defineProperty:Pr,getOwnPropertyDescriptor:Ur,getOwnPropertyNames:Gr,getOwnPropertySymbols:Hr,getPrototypeOf:Br}=Object,D=globalThis,Oe=D.trustedTypes,Vr=Oe?Oe.emptyScript:"",Jt=D.reactiveElementPolyfillSupport,ct=(i,e)=>i,lt={toAttribute(i,e){switch(e){case Boolean:i=i?Vr:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch{t=null}}return t}},Ot=(i,e)=>!Dr(i,e),we={attribute:!0,type:String,converter:lt,reflect:!1,hasChanged:Ot},Me,$e;(Me=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),($e=D.litPropertyMetadata)!=null||(D.litPropertyMetadata=new WeakMap);var w=class extends HTMLElement{static addInitializer(e){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=we){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let r=Symbol(),o=this.getPropertyDescriptor(e,r,t);o!==void 0&&Pr(this.prototype,e,o)}}static getPropertyDescriptor(e,t,r){var s;let{get:o,set:n}=(s=Ur(this.prototype,e))!=null?s:{get(){return this[t]},set(c){this[t]=c}};return{get(){return o==null?void 0:o.call(this)},set(c){let l=o==null?void 0:o.call(this);n.call(this,c),this.requestUpdate(e,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:we}static _$Ei(){if(this.hasOwnProperty(ct("elementProperties")))return;let e=Br(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ct("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ct("properties"))){let t=this.properties,r=[...Gr(t),...Hr(t)];for(let o of r)this.createProperty(o,t[o])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[r,o]of t)this.elementProperties.set(r,o)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let o=this._$Eu(t,r);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let r=new Set(e.flat(1/0).reverse());for(let o of r)t.unshift(Lt(o))}else e!==void 0&&t.push(Lt(e));return t}static _$Eu(e,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t,r;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)==null||r.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var t;let e=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return Qt(e,this.constructor.elementStyles),e}connectedCallback(){var e,t;(e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(r=>{var o;return(o=r.hostConnected)==null?void 0:o.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EC(e,t){var n;let r=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,r);if(o!==void 0&&r.reflect===!0){let s=(((n=r.converter)==null?void 0:n.toAttribute)!==void 0?r.converter:lt).toAttribute(t,r.type);this._$Em=e,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(e,t){var n;let r=this.constructor,o=r._$Eh.get(e);if(o!==void 0&&this._$Em!==o){let s=r.getPropertyOptions(o),c=typeof s.converter=="function"?{fromAttribute:s.converter}:((n=s.converter)==null?void 0:n.fromAttribute)!==void 0?s.converter:lt;this._$Em=o,this[o]=c.fromAttribute(t,s.type),this._$Em=null}}requestUpdate(e,t,r){var o;if(e!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(e)),!((o=r.hasChanged)!=null?o:Ot)(this[e],t))return;this.P(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,r){var o;this._$AL.has(e)||this._$AL.set(e,t),r.reflect===!0&&this._$Em!==e&&((o=this._$Ej)!=null?o:this._$Ej=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[s,c]of this._$Ep)this[s]=c;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[s,c]of n)c.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],c)}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(o=this._$EO)==null||o.forEach(n=>{var s;return(s=n.hostUpdate)==null?void 0:s.call(n)}),this.update(t)):this._$EU()}catch(n){throw e=!1,this._$EU(),n}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(r=>{var o;return(o=r.hostUpdated)==null?void 0:o.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(e){}firstUpdated(e){}},ke;w.elementStyles=[],w.shadowRootOptions={mode:"open"},w[ct("elementProperties")]=new Map,w[ct("finalized")]=new Map,Jt==null||Jt({ReactiveElement:w}),((ke=D.reactiveElementVersions)!=null?ke:D.reactiveElementVersions=[]).push("2.0.4");var Xr={attribute:!0,type:String,converter:lt,reflect:!1,hasChanged:Ot},Yr=(i=Xr,e,t)=>{let{kind:r,metadata:o}=t,n=globalThis.litPropertyMetadata.get(o);if(n===void 0&&globalThis.litPropertyMetadata.set(o,n=new Map),n.set(t.name,i),r==="accessor"){let{name:s}=t;return{set(c){let l=e.get.call(this);e.set.call(this,c),this.requestUpdate(s,l,i)},init(c){return c!==void 0&&this.P(s,void 0,i),c}}}if(r==="setter"){let{name:s}=t;return function(c){let l=this[s];e.call(this,c),this.requestUpdate(s,l,i)}}throw Error("Unsupported decorator location: "+r)};function d(i){return(e,t)=>typeof t=="object"?Yr(i,e,t):((r,o,n)=>{let s=o.hasOwnProperty(n);return o.constructor.createProperty(n,s?{...r,wrapped:!0}:r),s?Object.getOwnPropertyDescriptor(o,n):void 0})(i,e,t)}function S(i){return d({...i,state:!0,attribute:!1})}var Fr={PREFIX:"mdc",SEPARATOR:"-"},qr={NAMESPACE:Fr},te=qr;var jr=i=>[te.NAMESPACE.PREFIX,i].join(te.NAMESPACE.SEPARATOR),b={constructTagName:jr};var Mt=b.constructTagName("themeprovider"),ee={THEMECLASS:"mds-theme-stable-darkWebex"};var pt=globalThis,$t=pt.trustedTypes,De=$t?$t.createPolicy("lit-html",{createHTML:i=>i}):void 0,Xe="$lit$",P=`lit$${Math.random().toFixed(9).slice(2)}$`,Ye="?"+P,Zr=`<${Ye}>`,j=document,ht=()=>j.createComment(""),ut=i=>i===null||typeof i!="object"&&typeof i!="function",ce=Array.isArray,Wr=i=>ce(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",re=`[
2
- \f\r]`,mt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Pe=/-->/g,Ue=/>/g,F=RegExp(`>|${re}(?:([^\\s"'>=/]+)(${re}*=${re}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ge=/'/g,He=/"/g,Fe=/^(?:script|style|textarea|title)$/i,le=i=>(e,...t)=>({_$litType$:i,strings:e,values:t}),m=le(1),li=le(2),mi=le(3),M=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),Be=new WeakMap,q=j.createTreeWalker(j,129);function qe(i,e){if(!ce(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return De!==void 0?De.createHTML(e):e}var Kr=(i,e)=>{let t=i.length-1,r=[],o,n=e===2?"<svg>":e===3?"<math>":"",s=mt;for(let c=0;c<t;c++){let l=i[c],y,v,f=-1,O=0;for(;O<l.length&&(s.lastIndex=O,v=s.exec(l),v!==null);)O=s.lastIndex,s===mt?v[1]==="!--"?s=Pe:v[1]!==void 0?s=Ue:v[2]!==void 0?(Fe.test(v[2])&&(o=RegExp("</"+v[2],"g")),s=F):v[3]!==void 0&&(s=F):s===F?v[0]===">"?(s=o!=null?o:mt,f=-1):v[1]===void 0?f=-2:(f=s.lastIndex-v[2].length,y=v[1],s=v[3]===void 0?F:v[3]==='"'?He:Ge):s===He||s===Ge?s=F:s===Pe||s===Ue?s=mt:(s=F,o=void 0);let k=s===F&&i[c+1].startsWith("/>")?" ":"";n+=s===mt?l+Zr:f>=0?(r.push(y),l.slice(0,f)+Xe+l.slice(f)+P+k):l+P+(f===-2?c:k)}return[qe(i,n+(i[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},gt=class i{constructor({strings:e,_$litType$:t},r){let o;this.parts=[];let n=0,s=0,c=e.length-1,l=this.parts,[y,v]=Kr(e,t);if(this.el=i.createElement(y,r),q.currentNode=this.el.content,t===2||t===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(o=q.nextNode())!==null&&l.length<c;){if(o.nodeType===1){if(o.hasAttributes())for(let f of o.getAttributeNames())if(f.endsWith(Xe)){let O=v[s++],k=o.getAttribute(f).split(P),Ct=/([.?@])?(.*)/.exec(O);l.push({type:1,index:n,name:Ct[2],strings:k,ctor:Ct[1]==="."?se:Ct[1]==="?"?ne:Ct[1]==="@"?ae:J}),o.removeAttribute(f)}else f.startsWith(P)&&(l.push({type:6,index:n}),o.removeAttribute(f));if(Fe.test(o.tagName)){let f=o.textContent.split(P),O=f.length-1;if(O>0){o.textContent=$t?$t.emptyScript:"";for(let k=0;k<O;k++)o.append(f[k],ht()),q.nextNode(),l.push({type:2,index:++n});o.append(f[O],ht())}}}else if(o.nodeType===8)if(o.data===Ye)l.push({type:2,index:n});else{let f=-1;for(;(f=o.data.indexOf(P,f+1))!==-1;)l.push({type:7,index:n}),f+=P.length-1}n++}}static createElement(e,t){let r=j.createElement("template");return r.innerHTML=e,r}};function Q(i,e,t=i,r){var s,c,l;if(e===M)return e;let o=r!==void 0?(s=t.o)==null?void 0:s[r]:t.l,n=ut(e)?void 0:e._$litDirective$;return(o==null?void 0:o.constructor)!==n&&((c=o==null?void 0:o._$AO)==null||c.call(o,!1),n===void 0?o=void 0:(o=new n(i),o._$AT(i,t,r)),r!==void 0?((l=t.o)!=null?l:t.o=[])[r]=o:t.l=o),o!==void 0&&(e=Q(i,o._$AS(i,e.values),o,r)),e}var ie=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var y;let{el:{content:t},parts:r}=this._$AD,o=((y=e==null?void 0:e.creationScope)!=null?y:j).importNode(t,!0);q.currentNode=o;let n=q.nextNode(),s=0,c=0,l=r[0];for(;l!==void 0;){if(s===l.index){let v;l.type===2?v=new ft(n,n.nextSibling,this,e):l.type===1?v=new l.ctor(n,l.name,l.strings,this,e):l.type===6&&(v=new de(n,this,e)),this._$AV.push(v),l=r[++c]}s!==(l==null?void 0:l.index)&&(n=q.nextNode(),s++)}return q.currentNode=j,o}p(e){let t=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}},ft=class i{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this.v}constructor(e,t,r,o){var n;this.type=2,this._$AH=u,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=o,this.v=(n=o==null?void 0:o.isConnected)!=null?n:!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Q(this,e,t),ut(e)?e===u||e==null||e===""?(this._$AH!==u&&this._$AR(),this._$AH=u):e!==this._$AH&&e!==M&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Wr(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==u&&ut(this._$AH)?this._$AA.nextSibling.data=e:this.T(j.createTextNode(e)),this._$AH=e}$(e){var n;let{values:t,_$litType$:r}=e,o=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=gt.createElement(qe(r.h,r.h[0]),this.options)),r);if(((n=this._$AH)==null?void 0:n._$AD)===o)this._$AH.p(t);else{let s=new ie(o,this),c=s.u(this.options);s.p(t),this.T(c),this._$AH=s}}_$AC(e){let t=Be.get(e.strings);return t===void 0&&Be.set(e.strings,t=new gt(e)),t}k(e){ce(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,o=0;for(let n of e)o===t.length?t.push(r=new i(this.O(ht()),this.O(ht()),this,this.options)):r=t[o],r._$AI(n),o++;o<t.length&&(this._$AR(r&&r._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){var t;this._$AM===void 0&&(this.v=e,(t=this._$AP)==null||t.call(this,e))}},J=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,o,n){this.type=1,this._$AH=u,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=u}_$AI(e,t=this,r,o){let n=this.strings,s=!1;if(n===void 0)e=Q(this,e,t,0),s=!ut(e)||e!==this._$AH&&e!==M,s&&(this._$AH=e);else{let c=e,l,y;for(e=n[0],l=0;l<n.length-1;l++)y=Q(this,c[r+l],t,l),y===M&&(y=this._$AH[l]),s||(s=!ut(y)||y!==this._$AH[l]),y===u?e=u:e!==u&&(e+=(y!=null?y:"")+n[l+1]),this._$AH[l]=y}s&&!o&&this.j(e)}j(e){e===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}},se=class extends J{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===u?void 0:e}},ne=class extends J{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==u)}},ae=class extends J{constructor(e,t,r,o,n){super(e,t,r,o,n),this.type=5}_$AI(e,t=this){var s;if((e=(s=Q(this,e,t,0))!=null?s:u)===M)return;let r=this._$AH,o=e===u&&r!==u||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,n=e!==u&&(r===u||o);o&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)==null?void 0:t.host)!=null?r:this.element,e):this._$AH.handleEvent(e)}},de=class{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Q(this,e)}};var oe=pt.litHtmlPolyfillSupport,Ve;oe==null||oe(gt,ft),((Ve=pt.litHtmlVersions)!=null?Ve:pt.litHtmlVersions=[]).push("3.2.0");var je=(i,e,t)=>{var n,s;let r=(n=t==null?void 0:t.renderBefore)!=null?n:e,o=r._$litPart$;if(o===void 0){let c=(s=t==null?void 0:t.renderBefore)!=null?s:null;r._$litPart$=o=new ft(e.insertBefore(ht(),c),c,void 0,t!=null?t:{})}return o._$AI(i),o};var U=class extends w{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,r;let e=super.createRenderRoot();return(r=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=e.firstChild),e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this.o=je(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this.o)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.o)==null||e.setConnected(!1)}render(){return M}},Ze;U._$litElement$=!0,U.finalized=!0,(Ze=globalThis.litElementHydrateSupport)==null||Ze.call(globalThis,{LitElement:U});var me=globalThis.litElementPolyfillSupport;me==null||me({LitElement:U});var We;((We=globalThis.litElementVersions)!=null?We:globalThis.litElementVersions=[]).push("4.1.0");var Ke=p`
1
+ "use strict";(()=>{var Br=Object.defineProperty;var Vr=Object.getOwnPropertyDescriptor;var a=(i,e,t,r)=>{for(var o=r>1?void 0:r?Vr(e,t):e,n=i.length-1,s;n>=0;n--)(s=i[n])&&(o=(r?s(e,t,o):s(o))||o);return r&&o&&Br(e,t,o),o};var wt=globalThis,$t=wt.ShadowRoot&&(wt.ShadyCSS===void 0||wt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,re=Symbol(),Me=new WeakMap,mt=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==re)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if($t&&e===void 0){let r=t!==void 0&&t.length===1;r&&(e=Me.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&Me.set(t,e))}return e}toString(){return this.cssText}},ke=i=>new mt(typeof i=="string"?i:i+"",void 0,re),p=(i,...e)=>{let t=i.length===1?i[0]:e.reduce((r,o,n)=>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[n+1],i[0]);return new mt(t,i,re)},oe=(i,e)=>{if($t)i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let r=document.createElement("style"),o=wt.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=t.cssText,i.appendChild(r)}},Mt=$t?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(let r of e.cssRules)t+=r.cssText;return ke(t)})(i):i;var{is:Fr,defineProperty:Yr,getOwnPropertyDescriptor:Xr,getOwnPropertyNames:qr,getOwnPropertySymbols:jr,getPrototypeOf:Zr}=Object,U=globalThis,De=U.trustedTypes,Wr=De?De.emptyScript:"",ie=U.reactiveElementPolyfillSupport,pt=(i,e)=>i,ht={toAttribute(i,e){switch(e){case Boolean:i=i?Wr:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch{t=null}}return t}},kt=(i,e)=>!Fr(i,e),Pe={attribute:!0,type:String,converter:ht,reflect:!1,hasChanged:kt},Ue,Ge;(Ue=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Ge=U.litPropertyMetadata)!=null||(U.litPropertyMetadata=new WeakMap);var M=class extends HTMLElement{static addInitializer(e){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Pe){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let r=Symbol(),o=this.getPropertyDescriptor(e,r,t);o!==void 0&&Yr(this.prototype,e,o)}}static getPropertyDescriptor(e,t,r){var s;let{get:o,set:n}=(s=Xr(this.prototype,e))!=null?s:{get(){return this[t]},set(c){this[t]=c}};return{get(){return o==null?void 0:o.call(this)},set(c){let l=o==null?void 0:o.call(this);n.call(this,c),this.requestUpdate(e,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:Pe}static _$Ei(){if(this.hasOwnProperty(pt("elementProperties")))return;let e=Zr(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(pt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(pt("properties"))){let t=this.properties,r=[...qr(t),...jr(t)];for(let o of r)this.createProperty(o,t[o])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[r,o]of t)this.elementProperties.set(r,o)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let o=this._$Eu(t,r);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let r=new Set(e.flat(1/0).reverse());for(let o of r)t.unshift(Mt(o))}else e!==void 0&&t.push(Mt(e));return t}static _$Eu(e,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t,r;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)==null||r.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var t;let e=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return oe(e,this.constructor.elementStyles),e}connectedCallback(){var e,t;(e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(r=>{var o;return(o=r.hostConnected)==null?void 0:o.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EC(e,t){var n;let r=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,r);if(o!==void 0&&r.reflect===!0){let s=(((n=r.converter)==null?void 0:n.toAttribute)!==void 0?r.converter:ht).toAttribute(t,r.type);this._$Em=e,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(e,t){var n;let r=this.constructor,o=r._$Eh.get(e);if(o!==void 0&&this._$Em!==o){let s=r.getPropertyOptions(o),c=typeof s.converter=="function"?{fromAttribute:s.converter}:((n=s.converter)==null?void 0:n.fromAttribute)!==void 0?s.converter:ht;this._$Em=o,this[o]=c.fromAttribute(t,s.type),this._$Em=null}}requestUpdate(e,t,r){var o;if(e!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(e)),!((o=r.hasChanged)!=null?o:kt)(this[e],t))return;this.P(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,r){var o;this._$AL.has(e)||this._$AL.set(e,t),r.reflect===!0&&this._$Em!==e&&((o=this._$Ej)!=null?o:this._$Ej=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[s,c]of this._$Ep)this[s]=c;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[s,c]of n)c.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],c)}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(o=this._$EO)==null||o.forEach(n=>{var s;return(s=n.hostUpdate)==null?void 0:s.call(n)}),this.update(t)):this._$EU()}catch(n){throw e=!1,this._$EU(),n}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(r=>{var o;return(o=r.hostUpdated)==null?void 0:o.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(e){}firstUpdated(e){}},He;M.elementStyles=[],M.shadowRootOptions={mode:"open"},M[pt("elementProperties")]=new Map,M[pt("finalized")]=new Map,ie==null||ie({ReactiveElement:M}),((He=U.reactiveElementVersions)!=null?He:U.reactiveElementVersions=[]).push("2.0.4");var Kr={attribute:!0,type:String,converter:ht,reflect:!1,hasChanged:kt},Qr=(i=Kr,e,t)=>{let{kind:r,metadata:o}=t,n=globalThis.litPropertyMetadata.get(o);if(n===void 0&&globalThis.litPropertyMetadata.set(o,n=new Map),n.set(t.name,i),r==="accessor"){let{name:s}=t;return{set(c){let l=e.get.call(this);e.set.call(this,c),this.requestUpdate(s,l,i)},init(c){return c!==void 0&&this.P(s,void 0,i),c}}}if(r==="setter"){let{name:s}=t;return function(c){let l=this[s];e.call(this,c),this.requestUpdate(s,l,i)}}throw Error("Unsupported decorator location: "+r)};function d(i){return(e,t)=>typeof t=="object"?Qr(i,e,t):((r,o,n)=>{let s=o.hasOwnProperty(n);return o.constructor.createProperty(n,s?{...r,wrapped:!0}:r),s?Object.getOwnPropertyDescriptor(o,n):void 0})(i,e,t)}function N(i){return d({...i,state:!0,attribute:!1})}var Jr={PREFIX:"mdc",SEPARATOR:"-"},to={NAMESPACE:Jr},se=to;var eo=i=>[se.NAMESPACE.PREFIX,i].join(se.NAMESPACE.SEPARATOR),u={constructTagName:eo};var Pt=u.constructTagName("themeprovider"),ne={THEMECLASS:"mds-theme-stable-darkWebex"};var gt=globalThis,Ut=gt.trustedTypes,Be=Ut?Ut.createPolicy("lit-html",{createHTML:i=>i}):void 0,Ze="$lit$",G=`lit$${Math.random().toFixed(9).slice(2)}$`,We="?"+G,ro=`<${We}>`,Z=document,ft=()=>Z.createComment(""),bt=i=>i===null||typeof i!="object"&&typeof i!="function",ue=Array.isArray,oo=i=>ue(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",ae=`[
2
+ \f\r]`,ut=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ve=/-->/g,Fe=/>/g,q=RegExp(`>|${ae}(?:([^\\s"'>=/]+)(${ae}*=${ae}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ye=/'/g,Xe=/"/g,Ke=/^(?:script|style|textarea|title)$/i,ge=i=>(e,...t)=>({_$litType$:i,strings:e,values:t}),m=ge(1),yi=ge(2),xi=ge(3),k=Symbol.for("lit-noChange"),g=Symbol.for("lit-nothing"),qe=new WeakMap,j=Z.createTreeWalker(Z,129);function Qe(i,e){if(!ue(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Be!==void 0?Be.createHTML(e):e}var io=(i,e)=>{let t=i.length-1,r=[],o,n=e===2?"<svg>":e===3?"<math>":"",s=ut;for(let c=0;c<t;c++){let l=i[c],y,v,b=-1,$=0;for(;$<l.length&&(s.lastIndex=$,v=s.exec(l),v!==null);)$=s.lastIndex,s===ut?v[1]==="!--"?s=Ve:v[1]!==void 0?s=Fe:v[2]!==void 0?(Ke.test(v[2])&&(o=RegExp("</"+v[2],"g")),s=q):v[3]!==void 0&&(s=q):s===q?v[0]===">"?(s=o!=null?o:ut,b=-1):v[1]===void 0?b=-2:(b=s.lastIndex-v[2].length,y=v[1],s=v[3]===void 0?q:v[3]==='"'?Xe:Ye):s===Xe||s===Ye?s=q:s===Ve||s===Fe?s=ut:(s=q,o=void 0);let P=s===q&&i[c+1].startsWith("/>")?" ":"";n+=s===ut?l+ro:b>=0?(r.push(y),l.slice(0,b)+Ze+l.slice(b)+G+P):l+G+(b===-2?c:P)}return[Qe(i,n+(i[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},vt=class i{constructor({strings:e,_$litType$:t},r){let o;this.parts=[];let n=0,s=0,c=e.length-1,l=this.parts,[y,v]=io(e,t);if(this.el=i.createElement(y,r),j.currentNode=this.el.content,t===2||t===3){let b=this.el.content.firstChild;b.replaceWith(...b.childNodes)}for(;(o=j.nextNode())!==null&&l.length<c;){if(o.nodeType===1){if(o.hasAttributes())for(let b of o.getAttributeNames())if(b.endsWith(Ze)){let $=v[s++],P=o.getAttribute(b).split(G),Ot=/([.?@])?(.*)/.exec($);l.push({type:1,index:n,name:Ot[2],strings:P,ctor:Ot[1]==="."?le:Ot[1]==="?"?me:Ot[1]==="@"?pe:tt}),o.removeAttribute(b)}else b.startsWith(G)&&(l.push({type:6,index:n}),o.removeAttribute(b));if(Ke.test(o.tagName)){let b=o.textContent.split(G),$=b.length-1;if($>0){o.textContent=Ut?Ut.emptyScript:"";for(let P=0;P<$;P++)o.append(b[P],ft()),j.nextNode(),l.push({type:2,index:++n});o.append(b[$],ft())}}}else if(o.nodeType===8)if(o.data===We)l.push({type:2,index:n});else{let b=-1;for(;(b=o.data.indexOf(G,b+1))!==-1;)l.push({type:7,index:n}),b+=G.length-1}n++}}static createElement(e,t){let r=Z.createElement("template");return r.innerHTML=e,r}};function J(i,e,t=i,r){var s,c,l;if(e===k)return e;let o=r!==void 0?(s=t.o)==null?void 0:s[r]:t.l,n=bt(e)?void 0:e._$litDirective$;return(o==null?void 0:o.constructor)!==n&&((c=o==null?void 0:o._$AO)==null||c.call(o,!1),n===void 0?o=void 0:(o=new n(i),o._$AT(i,t,r)),r!==void 0?((l=t.o)!=null?l:t.o=[])[r]=o:t.l=o),o!==void 0&&(e=J(i,o._$AS(i,e.values),o,r)),e}var ce=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var y;let{el:{content:t},parts:r}=this._$AD,o=((y=e==null?void 0:e.creationScope)!=null?y:Z).importNode(t,!0);j.currentNode=o;let n=j.nextNode(),s=0,c=0,l=r[0];for(;l!==void 0;){if(s===l.index){let v;l.type===2?v=new yt(n,n.nextSibling,this,e):l.type===1?v=new l.ctor(n,l.name,l.strings,this,e):l.type===6&&(v=new he(n,this,e)),this._$AV.push(v),l=r[++c]}s!==(l==null?void 0:l.index)&&(n=j.nextNode(),s++)}return j.currentNode=Z,o}p(e){let t=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}},yt=class i{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this.v}constructor(e,t,r,o){var n;this.type=2,this._$AH=g,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=o,this.v=(n=o==null?void 0:o.isConnected)!=null?n:!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=J(this,e,t),bt(e)?e===g||e==null||e===""?(this._$AH!==g&&this._$AR(),this._$AH=g):e!==this._$AH&&e!==k&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):oo(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==g&&bt(this._$AH)?this._$AA.nextSibling.data=e:this.T(Z.createTextNode(e)),this._$AH=e}$(e){var n;let{values:t,_$litType$:r}=e,o=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=vt.createElement(Qe(r.h,r.h[0]),this.options)),r);if(((n=this._$AH)==null?void 0:n._$AD)===o)this._$AH.p(t);else{let s=new ce(o,this),c=s.u(this.options);s.p(t),this.T(c),this._$AH=s}}_$AC(e){let t=qe.get(e.strings);return t===void 0&&qe.set(e.strings,t=new vt(e)),t}k(e){ue(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,o=0;for(let n of e)o===t.length?t.push(r=new i(this.O(ft()),this.O(ft()),this,this.options)):r=t[o],r._$AI(n),o++;o<t.length&&(this._$AR(r&&r._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){var t;this._$AM===void 0&&(this.v=e,(t=this._$AP)==null||t.call(this,e))}},tt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,o,n){this.type=1,this._$AH=g,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=g}_$AI(e,t=this,r,o){let n=this.strings,s=!1;if(n===void 0)e=J(this,e,t,0),s=!bt(e)||e!==this._$AH&&e!==k,s&&(this._$AH=e);else{let c=e,l,y;for(e=n[0],l=0;l<n.length-1;l++)y=J(this,c[r+l],t,l),y===k&&(y=this._$AH[l]),s||(s=!bt(y)||y!==this._$AH[l]),y===g?e=g:e!==g&&(e+=(y!=null?y:"")+n[l+1]),this._$AH[l]=y}s&&!o&&this.j(e)}j(e){e===g?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}},le=class extends tt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===g?void 0:e}},me=class extends tt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==g)}},pe=class extends tt{constructor(e,t,r,o,n){super(e,t,r,o,n),this.type=5}_$AI(e,t=this){var s;if((e=(s=J(this,e,t,0))!=null?s:g)===k)return;let r=this._$AH,o=e===g&&r!==g||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,n=e!==g&&(r===g||o);o&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)==null?void 0:t.host)!=null?r:this.element,e):this._$AH.handleEvent(e)}},he=class{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){J(this,e)}};var de=gt.litHtmlPolyfillSupport,je;de==null||de(vt,yt),((je=gt.litHtmlVersions)!=null?je:gt.litHtmlVersions=[]).push("3.2.0");var Je=(i,e,t)=>{var n,s;let r=(n=t==null?void 0:t.renderBefore)!=null?n:e,o=r._$litPart$;if(o===void 0){let c=(s=t==null?void 0:t.renderBefore)!=null?s:null;r._$litPart$=o=new yt(e.insertBefore(ft(),c),c,void 0,t!=null?t:{})}return o._$AI(i),o};var H=class extends M{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t,r;let e=super.createRenderRoot();return(r=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=e.firstChild),e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this.o=Je(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this.o)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.o)==null||e.setConnected(!1)}render(){return k}},tr;H._$litElement$=!0,H.finalized=!0,(tr=globalThis.litElementHydrateSupport)==null||tr.call(globalThis,{LitElement:H});var fe=globalThis.litElementPolyfillSupport;fe==null||fe({LitElement:H});var er;((er=globalThis.litElementVersions)!=null?er:globalThis.litElementVersions=[]).push("4.1.0");var rr=p`
4
4
  :host {
5
5
  box-sizing: border-box;
6
6
  }
@@ -10,11 +10,11 @@
10
10
  :host *::after {
11
11
  box-sizing: inherit;
12
12
  }
13
- `;var kt=class extends U{static register(e){customElements.get(e)||customElements.define(e,this)}};kt.styles=[Ke];var Qe=kt;var h=Qe;var G=class extends Event{constructor(e,t,r){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.callback=t,this.subscribe=r!=null?r:!1}};var tt=class{constructor(e,t,r,o){var n;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(s,c)=>{this.unsubscribe&&(this.unsubscribe!==c&&(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,c)),this.unsubscribe=c},this.host=e,t.context!==void 0){let s=t;this.context=s.context,this.callback=s.callback,this.subscribe=(n=s.subscribe)!=null?n:!1}else this.context=t,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 G(this.context,this.t,this.subscribe))}};var Dt=class{get value(){return this.o}set value(e){this.setValue(e)}setValue(e,t=!1){let r=t||!Object.is(e,this.o);this.o=e,r&&this.updateObservers()}constructor(e){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:r}]of this.subscriptions)t(this.o,r)},e!==void 0&&(this.value=e)}addCallback(e,t,r){if(!r)return void e(this.value);this.subscriptions.has(e)||this.subscriptions.set(e,{disposer:()=>{this.subscriptions.delete(e)},consumerHost:t});let{disposer:o}=this.subscriptions.get(e);e(this.value,o)}clearCallbacks(){this.subscriptions.clear()}};var pe=class extends Event{constructor(e){super("context-provider",{bubbles:!0,composed:!0}),this.context=e}},et=class extends Dt{constructor(e,t,r){var o,n;super(t.context!==void 0?t.initialValue:r),this.onContextRequest=s=>{let c=s.composedPath()[0];s.context===this.context&&c!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,c,s.subscribe))},this.onProviderRequest=s=>{let c=s.composedPath()[0];if(s.context!==this.context||c===this.host)return;let l=new Set;for(let[y,{consumerHost:v}]of this.subscriptions)l.has(y)||(l.add(y),v.dispatchEvent(new G(this.context,y,!0)));s.stopPropagation()},this.host=e,t.context!==void 0?this.context=t.context:this.context=t,this.attachListeners(),(n=(o=this.host).addController)==null||n.call(o,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new pe(this.context))}};var Qr=p`
13
+ `;var Gt=class extends H{static register(e){customElements.get(e)||customElements.define(e,this)}};Gt.styles=[rr];var or=Gt;var h=or;var B=class extends Event{constructor(e,t,r){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.callback=t,this.subscribe=r!=null?r:!1}};var et=class{constructor(e,t,r,o){var n;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(s,c)=>{this.unsubscribe&&(this.unsubscribe!==c&&(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,c)),this.unsubscribe=c},this.host=e,t.context!==void 0){let s=t;this.context=s.context,this.callback=s.callback,this.subscribe=(n=s.subscribe)!=null?n:!1}else this.context=t,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 B(this.context,this.t,this.subscribe))}};var Ht=class{get value(){return this.o}set value(e){this.setValue(e)}setValue(e,t=!1){let r=t||!Object.is(e,this.o);this.o=e,r&&this.updateObservers()}constructor(e){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:r}]of this.subscriptions)t(this.o,r)},e!==void 0&&(this.value=e)}addCallback(e,t,r){if(!r)return void e(this.value);this.subscriptions.has(e)||this.subscriptions.set(e,{disposer:()=>{this.subscriptions.delete(e)},consumerHost:t});let{disposer:o}=this.subscriptions.get(e);e(this.value,o)}clearCallbacks(){this.subscriptions.clear()}};var be=class extends Event{constructor(e){super("context-provider",{bubbles:!0,composed:!0}),this.context=e}},rt=class extends Ht{constructor(e,t,r){var o,n;super(t.context!==void 0?t.initialValue:r),this.onContextRequest=s=>{let c=s.composedPath()[0];s.context===this.context&&c!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,c,s.subscribe))},this.onProviderRequest=s=>{let c=s.composedPath()[0];if(s.context!==this.context||c===this.host)return;let l=new Set;for(let[y,{consumerHost:v}]of this.subscriptions)l.has(y)||(l.add(y),v.dispatchEvent(new B(this.context,y,!0)));s.stopPropagation()},this.host=e,t.context!==void 0?this.context=t.context:this.context=t,this.attachListeners(),(n=(o=this.host).addController)==null||n.call(o,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new be(this.context))}};var so=p`
14
14
  :host {
15
15
  display: contents;
16
16
  }
17
- `,tr=Qr;var Pt=class extends h{constructor({context:e,initialValue:t}){super(),this.context=new et(this,{context:e,initialValue:t})}render(){return this.updateContext(),m`<slot></slot>`}};Pt.styles=[...h.styles,tr];var er=Pt;var rt=er;var Ut=class{constructor(e){this.themeclass=e}};Ut.context=Mt;var Gt=Ut;var Jr=p`
17
+ `,sr=so;var Bt=class extends h{constructor({context:e,initialValue:t}){super(),this.context=new rt(this,{context:e,initialValue:t})}render(){return this.updateContext(),m`<slot></slot>`}};Bt.styles=[...h.styles,sr];var nr=Bt;var ot=nr;var Vt=class{constructor(e){this.themeclass=e}};Vt.context=Pt;var Ft=Vt;var no=p`
18
18
  :host {
19
19
  --mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
20
20
  --mdc-themeprovider-font-family: var(--mds-font-family-primary);
@@ -27,7 +27,7 @@
27
27
  font-weight: var(--mdc-themeprovider-font-weight);
28
28
  letter-spacing: var(--mdc-themeprovider-letter-spacing-adjustment);
29
29
  }
30
- `,rr=[Jr];var ot=class extends rt{constructor(){super({context:Gt.context,initialValue:new Gt(ee.THEMECLASS)});this.themeclass=ee.THEMECLASS}static get Context(){return Gt.context}updated(t){super.updated(t),t.has("themeclass")&&(this.setThemeInClassList(),this.currentThemeClass=this.themeclass)}updateContext(){this.context.value.themeclass!==this.themeclass&&(this.context.value.themeclass=this.themeclass,this.context.updateObservers())}setThemeInClassList(){this.currentThemeClass&&this.classList.remove(...this.currentThemeClass.split(" ")),this.themeclass&&this.classList.add(...this.themeclass.split(" "))}};ot.styles=[...rt.styles,...rr],a([S()],ot.prototype,"currentThemeClass",2),a([d({type:String})],ot.prototype,"themeclass",2);var he=ot;he.register(Mt);var to=he;var I=p`
30
+ `,ar=[no];var it=class extends ot{constructor(){super({context:Ft.context,initialValue:new Ft(ne.THEMECLASS)});this.themeclass=ne.THEMECLASS}static get Context(){return Ft.context}updated(t){super.updated(t),t.has("themeclass")&&(this.setThemeInClassList(),this.currentThemeClass=this.themeclass)}updateContext(){this.context.value.themeclass!==this.themeclass&&(this.context.value.themeclass=this.themeclass,this.context.updateObservers())}setThemeInClassList(){this.currentThemeClass&&this.classList.remove(...this.currentThemeClass.split(" ")),this.themeclass&&this.classList.add(...this.themeclass.split(" "))}};it.styles=[...ot.styles,...ar],a([N()],it.prototype,"currentThemeClass",2),a([d({type:String})],it.prototype,"themeclass",2);var ve=it;ve.register(Pt);var ao=ve;var T=p`
31
31
  :host {
32
32
  align-items: center;
33
33
  display: flex;
@@ -35,7 +35,7 @@
35
35
  justify-content: center;
36
36
  width: fit-content;
37
37
  }
38
- `,or=p`
38
+ `,Yt=p`
39
39
  :host {
40
40
  --mdc-focus-ring-inner-color: var(--mds-color-theme-focus-default-0);
41
41
  --mdc-focus-ring-middle-color: var(--mds-color-theme-focus-default-1);
@@ -65,7 +65,7 @@
65
65
  outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
66
66
  }
67
67
  }
68
- `;var eo=[I,p`
68
+ `;var co=[T,p`
69
69
  :host {
70
70
  --mdc-icon-fill-color: currentColor;
71
71
  }
@@ -74,7 +74,7 @@
74
74
  width: 100%;
75
75
  fill: var(--mdc-icon-fill-color);
76
76
  }
77
- `],ir=eo;var ro=i=>{let{host:e,context:t,subscribe:r}=i;return new tt(e,{context:t,subscribe:r!=null?r:!0})},oo={consume:ro},sr=oo;var Ht=b.constructTagName("iconprovider"),nr=["svg"],ar=["em","rem","px"],io={px:16,em:1,rem:1},H={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:io.em};var Bt=class{};Bt.context=Ht;var Vt=Bt;var Z=class extends rt{constructor(){super({context:Vt.context,initialValue:new Vt});this.fileExtension=H.FILE_EXTENSION;this.lengthUnit=H.LENGTH_UNIT;this.size=H.SIZE}static get Context(){return Vt.context}updateValuesInContext(){this.fileExtension&&nr.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=H.FILE_EXTENSION,this.context.value.fileExtension=H.FILE_EXTENSION),this.context.value.url=this.url,this.context.value.size=this.size,this.lengthUnit&&ar.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=H.LENGTH_UNIT,this.context.value.lengthUnit=H.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size)&&(this.updateValuesInContext(),this.context.updateObservers())}};a([d({type:String})],Z.prototype,"url",2),a([d({type:String,attribute:"file-extension",reflect:!0})],Z.prototype,"fileExtension",2),a([d({type:String,attribute:"length-unit",reflect:!0})],Z.prototype,"lengthUnit",2),a([d({type:Number,reflect:!0})],Z.prototype,"size",2);var bt=Z;var dr=async(i,e,t,r)=>{let o=await fetch(`${i}/${e}.${t}`,{signal:r});if(!o.ok)throw new Error("There was a problem while fetching the icon!");let n=await o.text(),s=new DOMParser().parseFromString(n,"text/html").body.children[0];return s.setAttribute("data-name",e),s.setAttribute("part","icon"),s};var cr=b.constructTagName("icon"),ue={NAME:void 0,SIZE:1};var N=class extends h{constructor(){super();this.name=ue.NAME;this.ariaLabel=null;this.iconProviderContext=sr.consume({host:this,context:bt.Context});this.abortController=new AbortController}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:t,url:r}=this.iconProviderContext.value;if(r&&t&&this.name){this.abortController.abort(),this.abortController=new AbortController;let o=await dr(r,this.name,t,this.abortController.signal);this.iconData=o,this.setRoleOnIcon(),this.setAriaLabelOnIcon(),this.setAriaHiddenOnIcon()}}}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let r=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.width=r,this.style.height=r}}setRoleOnIcon(){this.role=this.ariaLabel?"img":null}setAriaHiddenOnIcon(){var t;(t=this.iconData)==null||t.setAttribute("aria-hidden","true")}setAriaLabelOnIcon(){var t,r;this.ariaLabel?(t=this.iconData)==null||t.setAttribute("aria-label",this.ariaLabel):(r=this.iconData)==null||r.removeAttribute("aria-label")}get computedIconSize(){var t,r;return(r=(t=this.size)!=null?t:this.sizeFromContext)!=null?r:ue.SIZE}updated(t){var r,o,n,s;super.updated(t),t.has("name")&&this.getIconData().catch(c=>{c.name!=="AbortError"&&this.onerror&&this.onerror(c)}),t.has("ariaLabel")&&(this.setRoleOnIcon(),this.setAriaLabelOnIcon()),(t.has("size")||t.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!==((n=this.iconProviderContext.value)==null?void 0:n.size)&&(this.sizeFromContext=(s=this.iconProviderContext.value)==null?void 0:s.size,this.updateSize())}render(){return m` ${this.iconData} `}};N.styles=[...h.styles,...ir],a([S()],N.prototype,"iconData",2),a([S()],N.prototype,"lengthUnitFromContext",2),a([S()],N.prototype,"sizeFromContext",2),a([d({type:String,reflect:!0})],N.prototype,"name",2),a([d({type:Number})],N.prototype,"size",2),a([d({type:String,attribute:"length-unit"})],N.prototype,"lengthUnit",2),a([d({type:String,attribute:"aria-label"})],N.prototype,"ariaLabel",2),a([S()],N.prototype,"abortController",2);var ge=N;ge.register(cr);var so=ge;bt.register(Ht);var no=bt;var vt=i=>i!=null?i:u;var lr=b.constructTagName("presence"),x={ACTIVE:"active",AWAY:"away",AWAY_CALLING:"away-calling",BUSY:"busy",DND:"dnd",MEETING:"meeting",ON_CALL:"on-call",ON_DEVICE:"on-device",ON_MOBILE:"on-mobile",PAUSE:"pause",PTO:"pto",PRESENTING:"presenting",QUIET:"quiet",SCHEDULED:"scheduled"},g={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},yt={TYPE:x.ACTIVE,SIZE:g.SMALL};var mr=b.constructTagName("avatar"),E={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},fe=99,ao="user-regular",be={TYPE:E.PHOTO,SIZE:g.X_SMALL,ICON_NAME:ao};var co=[I,p`
77
+ `],dr=co;var lo=i=>{let{host:e,context:t,subscribe:r}=i;return new et(e,{context:t,subscribe:r!=null?r:!0})},mo={consume:lo},cr=mo;var Xt=u.constructTagName("iconprovider"),lr=["svg"],mr=["em","rem","px"],po={px:16,em:1,rem:1},V={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:po.em};var qt=class{};qt.context=Xt;var jt=qt;var W=class extends ot{constructor(){super({context:jt.context,initialValue:new jt});this.fileExtension=V.FILE_EXTENSION;this.lengthUnit=V.LENGTH_UNIT;this.size=V.SIZE}static get Context(){return jt.context}updateValuesInContext(){this.fileExtension&&lr.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=V.FILE_EXTENSION,this.context.value.fileExtension=V.FILE_EXTENSION),this.context.value.url=this.url,this.context.value.size=this.size,this.lengthUnit&&mr.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=V.LENGTH_UNIT,this.context.value.lengthUnit=V.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size)&&(this.updateValuesInContext(),this.context.updateObservers())}};a([d({type:String})],W.prototype,"url",2),a([d({type:String,attribute:"file-extension",reflect:!0})],W.prototype,"fileExtension",2),a([d({type:String,attribute:"length-unit",reflect:!0})],W.prototype,"lengthUnit",2),a([d({type:Number,reflect:!0})],W.prototype,"size",2);var xt=W;var pr=async(i,e,t,r)=>{let o=await fetch(`${i}/${e}.${t}`,{signal:r});if(!o.ok)throw new Error("There was a problem while fetching the icon!");let n=await o.text(),s=new DOMParser().parseFromString(n,"text/html").body.children[0];return s.setAttribute("data-name",e),s.setAttribute("part","icon"),s};var hr=u.constructTagName("icon"),ye={NAME:void 0,SIZE:1};var C=class extends h{constructor(){super();this.name=ye.NAME;this.ariaLabel=null;this.iconProviderContext=cr.consume({host:this,context:xt.Context});this.abortController=new AbortController}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:t,url:r}=this.iconProviderContext.value;if(r&&t&&this.name){this.abortController.abort(),this.abortController=new AbortController;let o=await pr(r,this.name,t,this.abortController.signal);this.iconData=o,this.setRoleOnIcon(),this.setAriaLabelOnIcon(),this.setAriaHiddenOnIcon()}}}updateSize(){var t;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let r=`${this.computedIconSize}${(t=this.lengthUnit)!=null?t:this.lengthUnitFromContext}`;this.style.width=r,this.style.height=r}}setRoleOnIcon(){this.role=this.ariaLabel?"img":null}setAriaHiddenOnIcon(){var t;(t=this.iconData)==null||t.setAttribute("aria-hidden","true")}setAriaLabelOnIcon(){var t,r;this.ariaLabel?(t=this.iconData)==null||t.setAttribute("aria-label",this.ariaLabel):(r=this.iconData)==null||r.removeAttribute("aria-label")}get computedIconSize(){var t,r;return(r=(t=this.size)!=null?t:this.sizeFromContext)!=null?r:ye.SIZE}updated(t){var r,o,n,s;super.updated(t),t.has("name")&&this.getIconData().catch(c=>{c.name!=="AbortError"&&this.onerror&&this.onerror(c)}),t.has("ariaLabel")&&(this.setRoleOnIcon(),this.setAriaLabelOnIcon()),(t.has("size")||t.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!==((n=this.iconProviderContext.value)==null?void 0:n.size)&&(this.sizeFromContext=(s=this.iconProviderContext.value)==null?void 0:s.size,this.updateSize())}render(){return m` ${this.iconData} `}};C.styles=[...h.styles,...dr],a([N()],C.prototype,"iconData",2),a([N()],C.prototype,"lengthUnitFromContext",2),a([N()],C.prototype,"sizeFromContext",2),a([d({type:String,reflect:!0})],C.prototype,"name",2),a([d({type:Number})],C.prototype,"size",2),a([d({type:String,attribute:"length-unit"})],C.prototype,"lengthUnit",2),a([d({type:String,attribute:"aria-label"})],C.prototype,"ariaLabel",2),a([N()],C.prototype,"abortController",2);var xe=C;xe.register(hr);var ho=xe;xt.register(Xt);var uo=xt;var z=i=>i!=null?i:g;var ur=u.constructTagName("avatar"),A={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Ee=99,go="user-regular",f={24:24,32:32,48:48,64:64,72:72,88:88,124:124},st={TYPE:A.PHOTO,SIZE:f[32],ICON_NAME:go};var Zt=i=>{class e extends i{constructor(){super(...arguments);this.size=st.SIZE;this.isTyping=!1}}return a([d({type:String})],e.prototype,"src",2),a([d({type:String})],e.prototype,"initials",2),a([d({type:String})],e.prototype,"presence",2),a([d({type:Number,reflect:!0,attribute:"size"})],e.prototype,"size",2),a([d({type:String,attribute:"icon-name"})],e.prototype,"iconName",2),a([d({type:Number})],e.prototype,"counter",2),a([d({type:Boolean,attribute:"is-typing"})],e.prototype,"isTyping",2),e};var fo=[T,p`
78
78
  :host {
79
79
  --mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
80
80
  --mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
@@ -82,51 +82,51 @@
82
82
  --mdc-avatar-loading-indicator-foreground-color: var(--mdc-avatar-default-foreground-color);
83
83
  --mdc-avatar-loading-overlay-background-color: var(--mds-color-theme-common-overlays-secondary-normal);
84
84
  }
85
- :host([size="xx_large"]) .content {
85
+ :host([size="124"]) .content {
86
86
  width: 7.75rem;
87
87
  height: 7.75rem;
88
88
  }
89
- :host([size="x_large"]) .content {
89
+ :host([size="88"]) .content {
90
90
  width: 5.5rem;
91
91
  height: 5.5rem;
92
92
  }
93
- :host([size="large"]) .content {
93
+ :host([size="72"]) .content {
94
94
  width: 4.5rem;
95
95
  height: 4.5rem;
96
96
  }
97
- :host([size="midsize"]) .content {
97
+ :host([size="64"]) .content {
98
98
  width: 4rem;
99
99
  height: 4rem;
100
100
  }
101
- :host([size="small"]) .content {
101
+ :host([size="48"]) .content {
102
102
  width: 3rem;
103
103
  height: 3rem;
104
104
  }
105
- :host([size="x_small"]) .content {
105
+ :host([size="32"]) .content {
106
106
  width: 2rem;
107
107
  height: 2rem;
108
108
  }
109
- :host([size="xx_small"]) .content {
109
+ :host([size="24"]) .content {
110
110
  width: 1.5rem;
111
111
  height: 1.5rem;
112
112
  }
113
- :host([size="xx_large"]) .content > .loading__wrapper > .loader {
113
+ :host([size="124"]) .content > .loading__wrapper > .loader {
114
114
  transform: scale(1.5);
115
115
  }
116
- :host([size="x_large"]) .content > .loading__wrapper > .loader {
116
+ :host([size="88"]) .content > .loading__wrapper > .loader {
117
117
  transform: scale(1.2);
118
118
  }
119
- :host([size="large"]) .content > .loading__wrapper > .loader,
120
- :host([size="midsize"]) .content > .loading__wrapper > .loader {
119
+ :host([size="72"]) .content > .loading__wrapper > .loader,
120
+ :host([size="64"]) .content > .loading__wrapper > .loader {
121
121
  transform: scale(0.8);
122
122
  }
123
- :host([size="small"]) .content > .loading__wrapper > .loader {
123
+ :host([size="48"]) .content > .loading__wrapper > .loader {
124
124
  transform: scale(0.6);
125
125
  }
126
- :host([size="x_small"]) .content > .loading__wrapper > .loader {
126
+ :host([size="32"]) .content > .loading__wrapper > .loader {
127
127
  transform: scale(0.4);
128
128
  }
129
- :host([size="xx_small"]) .content > .loading__wrapper > .loader {
129
+ :host([size="24"]) .content > .loading__wrapper > .loader {
130
130
  transform: scale(0.3);
131
131
  }
132
132
  .content {
@@ -197,38 +197,38 @@
197
197
  outline: 0.125rem solid;
198
198
  }
199
199
  }
200
- `],pr=co;var xt=b.constructTagName("text"),C={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"},A={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},T={TYPE:C.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:A.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var hr=i=>({[g.XX_LARGE]:4.75,[g.X_LARGE]:3,[g.LARGE]:2.5,[g.MIDSIZE]:2.25,[g.SMALL]:1.75,[g.X_SMALL]:1.25,[g.XX_SMALL]:1})[i]||1.25,ur=i=>({[g.XX_LARGE]:C.HEADING_XLARGE_MEDIUM,[g.X_LARGE]:C.HEADING_LARGE_MEDIUM,[g.LARGE]:C.HEADING_MIDSIZE_MEDIUM,[g.MIDSIZE]:C.HEADING_SMALL_MEDIUM,[g.SMALL]:C.HEADING_SMALL_MEDIUM,[g.XX_SMALL]:C.BODY_SMALL_MEDIUM,[g.X_SMALL]:C.BODY_MIDSIZE_MEDIUM})[i]||C.BODY_MIDSIZE_MEDIUM;var R=class extends h{constructor(){super(...arguments);this.size=be.SIZE;this.isTyping=!1;this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(t){return t===E.COUNTER&&(this.counter||this.counter===0)?u:this.presence?m`
201
- <mdc-presence class="presence" type="${this.presence}" size="${this.size}"></mdc-presence>
202
- `:u}handleOnLoad(){this.isPhotoLoaded=!0}handleOnError(){this.isPhotoLoaded=!1,this.onerror&&this.onerror("There was a problem while fetching the <img/>. Please check the src attribute and try again.")}photoTemplate(){return m`
200
+ `],gr=fo;var fr=u.constructTagName("presence"),E={ACTIVE:"active",AWAY:"away",AWAY_CALLING:"away-calling",BUSY:"busy",DND:"dnd",MEETING:"meeting",ON_CALL:"on-call",ON_DEVICE:"on-device",ON_MOBILE:"on-mobile",PAUSE:"pause",PTO:"pto",PRESENTING:"presenting",QUIET:"quiet",SCHEDULED:"scheduled"},x={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},Et={TYPE:E.ACTIVE,SIZE:x.SMALL};var At=u.constructTagName("text"),R={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"},_={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},S={TYPE:R.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:_.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var br=i=>({[f[124]]:x.XX_LARGE,[f[88]]:x.X_LARGE,[f[72]]:x.LARGE,[f[64]]:x.MIDSIZE,[f[48]]:x.SMALL,[f[32]]:x.X_SMALL,[f[24]]:x.XX_SMALL})[i]||x.X_SMALL,vr=i=>({[f[124]]:4.75,[f[88]]:3,[f[72]]:2.5,[f[64]]:2.25,[f[48]]:1.75,[f[32]]:1.25,[f[24]]:1})[i]||1.25,yr=i=>({[f[124]]:R.HEADING_XLARGE_MEDIUM,[f[88]]:R.HEADING_LARGE_MEDIUM,[f[72]]:R.HEADING_MIDSIZE_MEDIUM,[f[64]]:R.HEADING_SMALL_MEDIUM,[f[48]]:R.HEADING_SMALL_MEDIUM,[f[32]]:R.BODY_MIDSIZE_MEDIUM,[f[24]]:R.BODY_SMALL_MEDIUM})[i]||R.BODY_MIDSIZE_MEDIUM;var Tt=class extends Zt(h){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(t){return t===A.COUNTER&&(this.counter||this.counter===0)?g:this.presence?m`
201
+ <mdc-presence class="presence" type="${this.presence}" size="${br(this.size)}"></mdc-presence>
202
+ `:g}handleOnLoad(){this.isPhotoLoaded=!0}handleOnError(){this.isPhotoLoaded=!1,this.onerror&&this.onerror("There was a problem while fetching the <img/>. Please check the src attribute and try again.")}photoTemplate(){return m`
203
203
  <img
204
204
  class="photo"
205
- src="${vt(this.src)}"
205
+ src="${z(this.src)}"
206
206
  aria-hidden="true"
207
207
  ?hidden="${!this.isPhotoLoaded}"
208
208
  @load="${this.handleOnLoad}"
209
209
  @error="${this.handleOnError}"
210
210
  />
211
- `}iconTemplate(){let t=this.iconName||be.ICON_NAME;return m`
211
+ `}iconTemplate(){let t=this.iconName||st.ICON_NAME;return m`
212
212
  <mdc-icon
213
- name="${vt(t)}"
213
+ name="${z(t)}"
214
214
  length-unit="rem"
215
- size="${hr(this.size)}"
215
+ size="${vr(this.size)}"
216
216
  ></mdc-icon>
217
217
  `}textTemplate(t){return m`
218
218
  <mdc-text
219
- type="${ur(this.size)}"
219
+ type="${yr(this.size)}"
220
220
  tagname="span"
221
221
  >
222
222
  ${t}
223
223
  </mdc-text>
224
- `}generateCounterText(t){return t<0?"0":t>fe?`${fe}+`:t.toString()}generateInitialsText(t){return t.toUpperCase().slice(0,2)}generateTextContent(t){let r="";return t===E.TEXT&&this.initials&&(r=this.generateInitialsText(this.initials)),t===E.COUNTER&&(this.counter||this.counter===0)&&(r=this.generateCounterText(this.counter)),this.textTemplate(r)}getTypeBasedOnInputs(){return this.src?E.PHOTO:this.iconName?E.ICON:this.initials?E.TEXT:this.counter||this.counter===0?E.COUNTER:E.ICON}getTemplateBasedOnType(t){switch(t){case E.PHOTO:return this.photoTemplate();case E.TEXT:case E.COUNTER:return this.generateTextContent(t);case E.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?m`<div class="loading__wrapper"><div class="loader"></div></div>`:u}getPhotoPlaceHolderContent(t){return this.isPhotoLoaded?u:t===E.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():u}update(t){super.update(t),t.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let t=this.getTypeBasedOnInputs();return m`
224
+ `}generateCounterText(t){return t<0?"0":t>Ee?`${Ee}+`:t.toString()}generateInitialsText(t){return t.toUpperCase().slice(0,2)}generateTextContent(t){let r="";return t===A.TEXT&&this.initials&&(r=this.generateInitialsText(this.initials)),t===A.COUNTER&&(this.counter||this.counter===0)&&(r=this.generateCounterText(this.counter)),this.textTemplate(r)}getTypeBasedOnInputs(){return this.src?A.PHOTO:this.iconName?A.ICON:this.initials?A.TEXT:this.counter||this.counter===0?A.COUNTER:A.ICON}getTemplateBasedOnType(t){switch(t){case A.PHOTO:return this.photoTemplate();case A.TEXT:case A.COUNTER:return this.generateTextContent(t);case A.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?m`<div class="loading__wrapper"><div class="loader"></div></div>`:g}getPhotoPlaceHolderContent(t){return this.isPhotoLoaded?g:t===A.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():g}update(t){super.update(t),t.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let t=this.getTypeBasedOnInputs();return m`
225
225
  <div class="content" aria-hidden="true">
226
226
  ${this.getPhotoPlaceHolderContent(t)}
227
227
  ${this.getTemplateBasedOnType(t)}
228
228
  ${this.getLoadingContent()}
229
229
  ${this.getPresenceTemplateBasedOnType(t)}
230
230
  </div>
231
- `}};R.styles=[...h.styles,...pr],a([d({type:String})],R.prototype,"src",2),a([d({type:String})],R.prototype,"initials",2),a([d({type:String})],R.prototype,"presence",2),a([d({type:String,reflect:!0})],R.prototype,"size",2),a([d({type:String,attribute:"icon-name"})],R.prototype,"iconName",2),a([d({type:Number})],R.prototype,"counter",2),a([d({type:Boolean,attribute:"is-typing"})],R.prototype,"isTyping",2),a([S()],R.prototype,"isPhotoLoaded",2);var ve=R;var lo=[I,p`
231
+ `}};Tt.styles=[...h.styles,...gr],a([N()],Tt.prototype,"isPhotoLoaded",2);var Ae=Tt;var bo=[T,p`
232
232
  :host {
233
233
  --mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
234
234
 
@@ -336,7 +336,7 @@
336
336
  .mdc-presence-icon__scheduled {
337
337
  color: var(--mdc-presence-scheduled-background-color);
338
338
  }
339
- `],gr=lo;var fr=i=>{switch(i){case x.AWAY:return"recents-presence-badge-filled";case x.AWAY_CALLING:return"away-calling-presence-filled";case x.BUSY:return"busy-presence-bold";case x.DND:return"dnd-presence-badge-filled";case x.MEETING:return"camera-filled";case x.ON_CALL:return"handset-filled";case x.ON_DEVICE:return"generic-device-video-badge-filled";case x.ON_MOBILE:return"phone-badge-filled";case x.PAUSE:return"pause-badge-filled";case x.PTO:return"pto-presence-filled";case x.PRESENTING:return"share-screen-badge-filled";case x.QUIET:return"quiet-hours-presence-filled";case x.SCHEDULED:return"meetings-presence-badge-filled";case x.ACTIVE:default:return"active-presence-small-filled"}};var it=class extends h{constructor(){super(...arguments);this.type=yt.TYPE;this.size=yt.SIZE}get iconSize(){switch(this.size){case g.MIDSIZE:return 1.16125;case g.LARGE:return 1.30625;case g.X_LARGE:return 1.596875;case g.XX_LARGE:return 2.25;case g.XX_SMALL:case g.X_SMALL:case g.SMALL:default:return this.size=yt.SIZE,.875}}get icon(){let t=fr(this.type);return t==="active-presence-small-filled"&&(this.type=yt.TYPE),t}render(){return m`
339
+ `],xr=bo;var Er=i=>{switch(i){case E.AWAY:return"recents-presence-badge-filled";case E.AWAY_CALLING:return"away-calling-presence-filled";case E.BUSY:return"busy-presence-bold";case E.DND:return"dnd-presence-badge-filled";case E.MEETING:return"camera-filled";case E.ON_CALL:return"handset-filled";case E.ON_DEVICE:return"generic-device-video-badge-filled";case E.ON_MOBILE:return"phone-badge-filled";case E.PAUSE:return"pause-badge-filled";case E.PTO:return"pto-presence-filled";case E.PRESENTING:return"share-screen-badge-filled";case E.QUIET:return"quiet-hours-presence-filled";case E.SCHEDULED:return"meetings-presence-badge-filled";case E.ACTIVE:default:return"active-presence-small-filled"}};var nt=class extends h{constructor(){super(...arguments);this.type=Et.TYPE;this.size=Et.SIZE}get iconSize(){switch(this.size){case x.MIDSIZE:return 1.16125;case x.LARGE:return 1.30625;case x.X_LARGE:return 1.596875;case x.XX_LARGE:return 2.25;case x.XX_SMALL:case x.X_SMALL:case x.SMALL:default:return this.size=Et.SIZE,.875}}get icon(){let t=Er(this.type);return t==="active-presence-small-filled"&&(this.type=Et.TYPE),t}render(){return m`
340
340
  <div class="mdc-presence mdc-presence__${this.size}">
341
341
  <mdc-icon
342
342
  class="mdc-presence-icon mdc-presence-icon__${this.type}"
@@ -344,7 +344,7 @@
344
344
  size="${this.iconSize}"
345
345
  ></mdc-icon>
346
346
  </div>
347
- `}};it.styles=[...h.styles,...gr],a([d({type:String,reflect:!0})],it.prototype,"type",2),a([d({type:String,reflect:!0})],it.prototype,"size",2);var ye=it;ye.register(lr);var mo=ye;var br=p`
347
+ `}};nt.styles=[...h.styles,...xr],a([d({type:String,reflect:!0})],nt.prototype,"type",2),a([d({type:String,reflect:!0})],nt.prototype,"size",2);var Te=nt;Te.register(fr);var vo=Te;var Ar=p`
348
348
  :host([tagname])::part(text) {
349
349
  font-size: unset;
350
350
  font-weight: unset;
@@ -584,14 +584,14 @@
584
584
  text-decoration: var(--mds-font-apps-body-small-regular-text-decoration);
585
585
  text-transform: var(--mds-font-apps-body-small-regular-text-case);
586
586
  }
587
- `;var po=[p`
587
+ `;var yo=[p`
588
588
  :host {
589
589
  --mdc-text-font-family: var(--mdc-themeprovider-font-family);
590
590
 
591
591
  display: block;
592
592
  font-family: var(--mdc-text-font-family);
593
593
  }
594
- `,br],vr=po;var st=class extends h{constructor(){super(...arguments);this.type=T.TYPE;this.tagname=T.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case A.H1:return m`<h1 part=${T.CSS_PART_TEXT}><slot></slot></h1>`;case A.H2:return m`<h2 part=${T.CSS_PART_TEXT}><slot></slot></h2>`;case A.H3:return m`<h3 part=${T.CSS_PART_TEXT}><slot></slot></h3>`;case A.H4:return m`<h4 part=${T.CSS_PART_TEXT}><slot></slot></h4>`;case A.H5:return m`<h5 part=${T.CSS_PART_TEXT}><slot></slot></h5>`;case A.H6:return m`<h6 part=${T.CSS_PART_TEXT}><slot></slot></h6>`;case A.DIV:return m`<div part=${T.CSS_PART_TEXT}><slot></slot></div>`;case A.SPAN:return m`<span part=${T.CSS_PART_TEXT}><slot></slot></span>`;case A.SMALL:return m`<small part=${T.CSS_PART_TEXT}><slot></slot></small>`;case A.P:default:return m`<p part=${T.CSS_PART_TEXT}><slot></slot></p>`}}};st.styles=[...h.styles,...vr],a([d({attribute:"type",reflect:!0,type:String})],st.prototype,"type",2),a([d({attribute:"tagname",reflect:!0,type:String})],st.prototype,"tagname",2);var xe=st;xe.register(xt);var ho=xe;ve.register(mr);var uo=ve;var yr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},xr=i=>(...e)=>({_$litDirective$:i,values:e}),Xt=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this.t=e,this._$AM=t,this.i=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var Yt=xr(class extends Xt{constructor(i){var e;if(super(i),i.type!==yr.ATTRIBUTE||i.name!=="class"||((e=i.strings)==null?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(i){return" "+Object.keys(i).filter(e=>i[e]).join(" ")+" "}update(i,[e]){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(n=>n!=="")));for(let n in e)e[n]&&!((r=this.nt)!=null&&r.has(n))&&this.st.add(n);return this.render(e)}let t=i.element.classList;for(let n of this.st)n in e||(t.remove(n),this.st.delete(n));for(let n in e){let s=!!e[n];s===this.st.has(n)||(o=this.nt)!=null&&o.has(n)||(s?(t.add(n),this.st.add(n)):(t.remove(n),this.st.delete(n)))}return M}});var Er=b.constructTagName("badge"),$={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Ft={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},qt={PRIMARY:"primary",SECONDARY:"secondary"},Et={SUCCESS:"success",WARNING:"warning",ERROR:"error"},ka={...qt,...Et},B={TYPE:$.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:qt.PRIMARY,ICON_SIZE:1};var go=[I,p`
594
+ `,Ar],Tr=yo;var at=class extends h{constructor(){super(...arguments);this.type=S.TYPE;this.tagname=S.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case _.H1:return m`<h1 part=${S.CSS_PART_TEXT}><slot></slot></h1>`;case _.H2:return m`<h2 part=${S.CSS_PART_TEXT}><slot></slot></h2>`;case _.H3:return m`<h3 part=${S.CSS_PART_TEXT}><slot></slot></h3>`;case _.H4:return m`<h4 part=${S.CSS_PART_TEXT}><slot></slot></h4>`;case _.H5:return m`<h5 part=${S.CSS_PART_TEXT}><slot></slot></h5>`;case _.H6:return m`<h6 part=${S.CSS_PART_TEXT}><slot></slot></h6>`;case _.DIV:return m`<div part=${S.CSS_PART_TEXT}><slot></slot></div>`;case _.SPAN:return m`<span part=${S.CSS_PART_TEXT}><slot></slot></span>`;case _.SMALL:return m`<small part=${S.CSS_PART_TEXT}><slot></slot></small>`;case _.P:default:return m`<p part=${S.CSS_PART_TEXT}><slot></slot></p>`}}};at.styles=[...h.styles,...Tr],a([d({attribute:"type",reflect:!0,type:String})],at.prototype,"type",2),a([d({attribute:"tagname",reflect:!0,type:String})],at.prototype,"tagname",2);var _e=at;_e.register(At);var xo=_e;Ae.register(ur);var Eo=Ae;var _r={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Sr=i=>(...e)=>({_$litDirective$:i,values:e}),Wt=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this.t=e,this._$AM=t,this.i=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var Kt=Sr(class extends Wt{constructor(i){var e;if(super(i),i.type!==_r.ATTRIBUTE||i.name!=="class"||((e=i.strings)==null?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(i){return" "+Object.keys(i).filter(e=>i[e]).join(" ")+" "}update(i,[e]){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(n=>n!=="")));for(let n in e)e[n]&&!((r=this.nt)!=null&&r.has(n))&&this.st.add(n);return this.render(e)}let t=i.element.classList;for(let n of this.st)n in e||(t.remove(n),this.st.delete(n));for(let n in e){let s=!!e[n];s===this.st.has(n)||(o=this.nt)!=null&&o.has(n)||(s?(t.add(n),this.st.add(n)):(t.remove(n),this.st.delete(n)))}return k}});var Ir=u.constructTagName("badge"),D={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Qt={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},Jt={PRIMARY:"primary",SECONDARY:"secondary"},_t={SUCCESS:"success",WARNING:"warning",ERROR:"error"},Wa={...Jt,..._t},F={TYPE:D.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:Jt.PRIMARY,ICON_SIZE:1};var Ao=[T,p`
595
595
  :host {
596
596
  --mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
597
597
  --mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
@@ -660,21 +660,21 @@
660
660
  outline: 0.125rem solid;
661
661
  }
662
662
  }
663
- `],Ar=go;var L=class extends h{constructor(){super(...arguments);this.variant=B.VARIANT;this.maxCounter=B.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(t,r){return r===void 0||typeof r!="number"||t===0?"":r>t?`${t}+`:t>B.MAX_COUNTER_LIMIT||r>B.MAX_COUNTER_LIMIT?`${B.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(t,r){return m`
663
+ `],Nr=Ao;var O=class extends h{constructor(){super(...arguments);this.variant=F.VARIANT;this.maxCounter=F.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(t,r){return r===void 0||typeof r!="number"||t===0?"":r>t?`${t}+`:t>F.MAX_COUNTER_LIMIT||r>F.MAX_COUNTER_LIMIT?`${F.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(t,r){return m`
664
664
  <mdc-icon
665
- class="mdc-badge-icon ${Yt({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${r}`]:!0})}"
666
- name="${vt(t)}"
667
- size="${B.ICON_SIZE}"
665
+ class="mdc-badge-icon ${Kt({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${r}`]:!0})}"
666
+ name="${z(t)}"
667
+ size="${F.ICON_SIZE}"
668
668
  ></mdc-icon>
669
- `}getBadgeDot(){return m`<div class="mdc-badge-dot ${Yt({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return m`
669
+ `}getBadgeDot(){return m`<div class="mdc-badge-dot ${Kt({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return m`
670
670
  <mdc-text
671
- type="${C.BODY_SMALL_MEDIUM}"
672
- tagname="${A.DIV}"
673
- class="mdc-badge-text ${Yt({"mdc-badge-overlay":this.overlay})}"
671
+ type="${R.BODY_SMALL_MEDIUM}"
672
+ tagname="${_.DIV}"
673
+ class="mdc-badge-text ${Kt({"mdc-badge-overlay":this.overlay})}"
674
674
  >
675
675
  ${this.getCounterText(this.maxCounter,this.counter)}
676
676
  </mdc-text>
677
- `}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(qt).includes(this.variant)&&(this.variant=B.VARIANT);let{iconName:t,type:r,variant:o}=this;switch(r){case $.ICON:return this.getBadgeIcon(t||"",o);case $.COUNTER:return this.getBadgeCounterText();case $.SUCCESS:return this.getBadgeIcon(Ft.SUCCESS_ICON_NAME,Et.SUCCESS);case $.WARNING:return this.getBadgeIcon(Ft.WARNING_ICON_NAME,Et.WARNING);case $.ERROR:return this.getBadgeIcon(Ft.ERROR_ICON_NAME,Et.ERROR);case $.DOT:default:return this.type=$.DOT,this.getBadgeDot()}}update(t){super.update(t),t.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};L.styles=[...h.styles,...Ar],a([d({type:String,reflect:!0})],L.prototype,"type",2),a([d({type:String,attribute:"icon-name"})],L.prototype,"iconName",2),a([d({type:String,reflect:!0})],L.prototype,"variant",2),a([d({type:Number})],L.prototype,"counter",2),a([d({type:Number,attribute:"max-counter",reflect:!0})],L.prototype,"maxCounter",2),a([d({type:Boolean})],L.prototype,"overlay",2),a([d({type:String,attribute:"aria-label"})],L.prototype,"ariaLabel",2);var Ee=L;Ee.register(Er);var fo=Ee;var bo=p`
677
+ `}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(Jt).includes(this.variant)&&(this.variant=F.VARIANT);let{iconName:t,type:r,variant:o}=this;switch(r){case D.ICON:return this.getBadgeIcon(t||"",o);case D.COUNTER:return this.getBadgeCounterText();case D.SUCCESS:return this.getBadgeIcon(Qt.SUCCESS_ICON_NAME,_t.SUCCESS);case D.WARNING:return this.getBadgeIcon(Qt.WARNING_ICON_NAME,_t.WARNING);case D.ERROR:return this.getBadgeIcon(Qt.ERROR_ICON_NAME,_t.ERROR);case D.DOT:default:return this.type=D.DOT,this.getBadgeDot()}}update(t){super.update(t),t.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};O.styles=[...h.styles,...Nr],a([d({type:String,reflect:!0})],O.prototype,"type",2),a([d({type:String,attribute:"icon-name"})],O.prototype,"iconName",2),a([d({type:String,reflect:!0})],O.prototype,"variant",2),a([d({type:Number})],O.prototype,"counter",2),a([d({type:Number,attribute:"max-counter",reflect:!0})],O.prototype,"maxCounter",2),a([d({type:Boolean})],O.prototype,"overlay",2),a([d({type:String,attribute:"aria-label"})],O.prototype,"ariaLabel",2);var Se=O;Se.register(Ir);var To=Se;var _o=p`
678
678
  :host {
679
679
  background-color: transparent;
680
680
  border-radius: 1.25rem;
@@ -845,7 +845,7 @@
845
845
  --mdc-button-secondary-hover-background-color: var(--mds-color-theme-button-secondary-hover);
846
846
  --mdc-button-secondary-pressed-background-color: var(--mds-color-theme-button-secondary-pressed);
847
847
  }
848
- `,Tr=[bo];var _r=b.constructTagName("buttonsimple"),vo={20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},nt={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},jt={SIZE:vo[32],TYPE:nt.BUTTON,ROLE:"button"};var At=b.constructTagName("button"),Tt={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Zt={40:40,32:32,28:28,24:24},W={64:64,52:52,20:20,...Zt},Ae={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},at={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},V={VARIANT:Tt.PRIMARY,SIZE:Zt[32],COLOR:Ae.DEFAULT,TYPE_INTERNAL:at.ICON,TYPE:nt.BUTTON};var Sr=i=>{switch(i){case W[64]:return 2;case W[52]:return 1.75;case W[40]:return 1.25;default:return 1}},Te=i=>{let e=i.split("-"),t=["bold","filled","regular","light"];return e.filter(r=>!t.includes(r)).join("-")};var yo=[I,p`
848
+ `,Cr=[_o];var zr=u.constructTagName("buttonsimple"),So={20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},dt={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},te={SIZE:So[32],TYPE:dt.BUTTON,ROLE:"button"};var St=u.constructTagName("button"),It={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},ee={40:40,32:32,28:28,24:24},K={64:64,52:52,20:20,...ee},Ie={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},ct={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},w={VARIANT:It.PRIMARY,SIZE:ee[32],COLOR:Ie.DEFAULT,TYPE_INTERNAL:ct.ICON,TYPE:dt.BUTTON};var Rr=i=>{switch(i){case K[64]:return 2;case K[52]:return 1.75;case K[40]:return 1.25;default:return 1}},Ne=i=>{let e=i.split("-"),t=["bold","filled","regular","light"];return e.filter(r=>!t.includes(r)).join("-")};var Io=[T,p`
849
849
  :host {
850
850
  border: 0.0625rem solid transparent;
851
851
  cursor: pointer;
@@ -901,9 +901,9 @@
901
901
  :host([size="20"]){
902
902
  height: var(--mdc-button-height-size-20);
903
903
  }
904
- `,or],Ir=yo;var z=class extends h{constructor(){super();this.active=!1;this.disabled=!1;this.softDisabled=!1;this.size=jt.SIZE;this.tabIndex=0;this.role=jt.ROLE;this.type=jt.TYPE;this.prevTabindex=0;this.addEventListener("click",this.executeAction.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.internals=this.attachInternals()}get form(){return this.internals.form}update(t){super.update(t),t.has("disabled")&&this.setDisabled(this,this.disabled),t.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),t.has("active")&&this.setAriaPressed(this,this.active)}executeAction(){this.type===nt.SUBMIT&&this.internals.form&&this.internals.form.requestSubmit(),this.type===nt.RESET&&this.internals.form&&this.internals.form.reset()}setAriaPressed(t,r){r?t.setAttribute("aria-pressed","true"):t.setAttribute("aria-pressed","false")}setSoftDisabled(t,r){r?t.setAttribute("aria-disabled","true"):t.setAttribute("aria-disabled","false")}setDisabled(t,r){r?(t.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex=this.prevTabindex,t.removeAttribute("aria-disabled"))}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t),this.executeAction()}handleKeyDown(t){["Enter"," "].includes(t.key)&&(this.classList.add("pressed"),t.key==="Enter"&&this.triggerClickEvent())}handleKeyUp(t){["Enter"," "].includes(t.key)&&(this.classList.remove("pressed"),t.key===" "&&this.triggerClickEvent())}render(){return m`
904
+ `,Yt],Lr=Io;var L=class extends h{constructor(){super();this.active=!1;this.disabled=!1;this.softDisabled=!1;this.size=te.SIZE;this.tabIndex=0;this.role=te.ROLE;this.type=te.TYPE;this.prevTabindex=0;this.addEventListener("click",this.executeAction.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.internals=this.attachInternals()}get form(){return this.internals.form}update(t){super.update(t),t.has("disabled")&&this.setDisabled(this,this.disabled),t.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),t.has("active")&&this.setAriaPressed(this,this.active)}executeAction(){this.type===dt.SUBMIT&&this.internals.form&&this.internals.form.requestSubmit(),this.type===dt.RESET&&this.internals.form&&this.internals.form.reset()}setAriaPressed(t,r){r?t.setAttribute("aria-pressed","true"):t.setAttribute("aria-pressed","false")}setSoftDisabled(t,r){r?t.setAttribute("aria-disabled","true"):t.setAttribute("aria-disabled","false")}setDisabled(t,r){r?(t.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex=this.prevTabindex,t.removeAttribute("aria-disabled"))}triggerClickEvent(){let t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(t),this.executeAction()}handleKeyDown(t){["Enter"," "].includes(t.key)&&(this.classList.add("pressed"),t.key==="Enter"&&this.triggerClickEvent())}handleKeyUp(t){["Enter"," "].includes(t.key)&&(this.classList.remove("pressed"),t.key===" "&&this.triggerClickEvent())}render(){return m`
905
905
  <slot></slot>
906
- `}};z.formAssociated=!0,z.styles=[...h.styles,...Ir],a([d({type:Boolean})],z.prototype,"active",2),a([d({type:Boolean})],z.prototype,"disabled",2),a([d({type:Boolean,attribute:"soft-disabled"})],z.prototype,"softDisabled",2),a([d({type:Number,reflect:!0})],z.prototype,"size",2),a([d({type:Number,reflect:!0})],z.prototype,"tabIndex",2),a([d({type:String,reflect:!0})],z.prototype,"role",2),a([d({reflect:!0})],z.prototype,"type",2);var _e=z;_e.register(_r);var Wt=_e;var _=class extends Wt{constructor(){super(...arguments);this.variant=V.VARIANT;this.size=V.SIZE;this.color=V.COLOR;this.tabIndex=0;this.role="button";this.typeInternal=V.TYPE_INTERNAL;this.iconSize=1}update(t){super.update(t),t.has("active")&&this.modifyIconName(this.active),t.has("size")&&this.setSize(this.size),t.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),t.has("color")&&this.setColor(this.color),t.has("typeInternal")&&this.setSize(this.size),(t.has("prefixIcon")||t.has("postfixIcon"))&&this.inferButtonType()}modifyIconName(t){t?(this.prefixIcon&&(this.prevPrefixIcon=this.prefixIcon,this.prefixIcon=`${Te(this.prefixIcon)}-filled`),this.postfixIcon&&(this.prevPostfixIcon=this.postfixIcon,this.postfixIcon=`${Te(this.postfixIcon)}-filled`)):(this.prevPrefixIcon&&(this.prefixIcon=this.prevPrefixIcon),this.prevPostfixIcon&&(this.postfixIcon=this.prevPostfixIcon))}setVariant(t){this.setAttribute("variant",Object.values(Tt).includes(t)?t:V.VARIANT)}setSize(t){let o=this.typeInternal===at.ICON?Object.values(W).includes(t)&&!(t===W[20]&&this.variant!==Tt.TERTIARY):Object.values(Zt).includes(t);this.setAttribute("size",o?`${t}`:`${V.SIZE}`),this.iconSize=Sr(t)}setColor(t){!Object.values(Ae).includes(t)||this.variant===Tt.TERTIARY?this.setAttribute("color",`${V.COLOR}`):this.setAttribute("color",t)}inferButtonType(){var r,o;let t=(o=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"))==null?void 0:o.assignedNodes().length;t&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=at.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!t&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=at.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=at.PILL,this.setAttribute("data-btn-type","pill"))}render(){return m`
906
+ `}};L.formAssociated=!0,L.styles=[...h.styles,...Lr],a([d({type:Boolean})],L.prototype,"active",2),a([d({type:Boolean})],L.prototype,"disabled",2),a([d({type:Boolean,attribute:"soft-disabled"})],L.prototype,"softDisabled",2),a([d({type:Number,reflect:!0})],L.prototype,"size",2),a([d({type:Number,reflect:!0})],L.prototype,"tabIndex",2),a([d({type:String,reflect:!0})],L.prototype,"role",2),a([d({reflect:!0})],L.prototype,"type",2);var Ce=L;Ce.register(zr);var lt=Ce;var I=class extends lt{constructor(){super(...arguments);this.variant=w.VARIANT;this.size=w.SIZE;this.color=w.COLOR;this.tabIndex=0;this.role="button";this.typeInternal=w.TYPE_INTERNAL;this.iconSize=1}update(t){super.update(t),t.has("active")&&this.modifyIconName(this.active),t.has("size")&&this.setSize(this.size),t.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),t.has("color")&&this.setColor(this.color),t.has("typeInternal")&&this.setSize(this.size),(t.has("prefixIcon")||t.has("postfixIcon"))&&this.inferButtonType()}modifyIconName(t){t?(this.prefixIcon&&(this.prevPrefixIcon=this.prefixIcon,this.prefixIcon=`${Ne(this.prefixIcon)}-filled`),this.postfixIcon&&(this.prevPostfixIcon=this.postfixIcon,this.postfixIcon=`${Ne(this.postfixIcon)}-filled`)):(this.prevPrefixIcon&&(this.prefixIcon=this.prevPrefixIcon),this.prevPostfixIcon&&(this.postfixIcon=this.prevPostfixIcon))}setVariant(t){this.setAttribute("variant",Object.values(It).includes(t)?t:w.VARIANT)}setSize(t){let o=this.typeInternal===ct.ICON?Object.values(K).includes(t)&&!(t===K[20]&&this.variant!==It.TERTIARY):Object.values(ee).includes(t);this.setAttribute("size",o?`${t}`:`${w.SIZE}`),this.iconSize=Rr(t)}setColor(t){!Object.values(Ie).includes(t)||this.variant===It.TERTIARY?this.setAttribute("color",`${w.COLOR}`):this.setAttribute("color",t)}inferButtonType(){var r,o;let t=(o=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"))==null?void 0:o.assignedNodes().length;t&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=ct.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!t&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=ct.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=ct.PILL,this.setAttribute("data-btn-type","pill"))}render(){return m`
907
907
  ${this.prefixIcon?m`
908
908
  <mdc-icon
909
909
  name="${this.prefixIcon}"
@@ -919,7 +919,7 @@
919
919
  size=${this.iconSize}
920
920
  length-unit="rem">
921
921
  </mdc-icon>`:""}
922
- `}};_.styles=[...Wt.styles,...Tr],a([d({type:String,attribute:"prefix-icon",reflect:!0})],_.prototype,"prefixIcon",2),a([d({type:String,attribute:"postfix-icon",reflect:!0})],_.prototype,"postfixIcon",2),a([d({type:String})],_.prototype,"variant",2),a([d({type:Number})],_.prototype,"size",2),a([d({type:String})],_.prototype,"color",2),a([d({type:Number,reflect:!0})],_.prototype,"tabIndex",2),a([d({type:String,reflect:!0})],_.prototype,"role",2),a([S()],_.prototype,"typeInternal",2),a([S()],_.prototype,"iconSize",2);var Se=_;Se.register(At);var xo=Se;var Eo=p`
922
+ `}};I.styles=[...lt.styles,...Cr],a([d({type:String,attribute:"prefix-icon",reflect:!0})],I.prototype,"prefixIcon",2),a([d({type:String,attribute:"postfix-icon",reflect:!0})],I.prototype,"postfixIcon",2),a([d({type:String})],I.prototype,"variant",2),a([d({type:Number})],I.prototype,"size",2),a([d({type:String})],I.prototype,"color",2),a([d({type:Number,reflect:!0})],I.prototype,"tabIndex",2),a([d({type:String,reflect:!0})],I.prototype,"role",2),a([N()],I.prototype,"typeInternal",2),a([N()],I.prototype,"iconSize",2);var ze=I;ze.register(St);var No=ze;var Co=p`
923
923
  :host {
924
924
  --mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
925
925
  --mdc-bullet-size-small: 0.25rem;
@@ -940,7 +940,7 @@
940
940
  :host([size="large"]) {
941
941
  height: var(--mdc-bullet-size-large);
942
942
  }
943
- `,Nr=[Eo];var Cr=b.constructTagName("bullet"),Rr={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var _t=class extends h{constructor(){super(...arguments);this.size=Rr.SMALL}};_t.styles=[...h.styles,...Nr],a([d({type:String,reflect:!0})],_t.prototype,"size",2);var Ie=_t;Ie.register(Cr);var Ao=Ie;var To=p`
943
+ `,Or=[Co];var wr=u.constructTagName("bullet"),$r={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var Nt=class extends h{constructor(){super(...arguments);this.size=$r.SMALL}};Nt.styles=[...h.styles,...Or],a([d({type:String,reflect:!0})],Nt.prototype,"size",2);var Re=Nt;Re.register(wr);var zo=Re;var Ro=p`
944
944
  :host {
945
945
  --mdc-marker-width: 0.25rem;
946
946
  --mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
@@ -965,7 +965,7 @@
965
965
  var(--mdc-marker-striped-background-color) 0.375rem
966
966
  );
967
967
  }
968
- `,zr=[To];var Lr=b.constructTagName("marker"),Or={SOLID:"solid",STRIPED:"striped"};var St=class extends h{constructor(){super(...arguments);this.variant=Or.SOLID}};St.styles=[...h.styles,...zr],a([d({type:String,reflect:!0})],St.prototype,"variant",2);var Ne=St;Ne.register(Lr);var _o=Ne;var So=[I,p`
968
+ `,Mr=[Ro];var kr=u.constructTagName("marker"),Dr={SOLID:"solid",STRIPED:"striped"};var Ct=class extends h{constructor(){super(...arguments);this.variant=Dr.SOLID}};Ct.styles=[...h.styles,...Mr],a([d({type:String,reflect:!0})],Ct.prototype,"variant",2);var Le=Ct;Le.register(kr);var Lo=Le;var Oo=[T,p`
969
969
  :host {
970
970
  --mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
971
971
  --mdc-divider-width: 0.0625rem;
@@ -1109,11 +1109,29 @@
1109
1109
  font-size: var(--mdc-divider-text-size);
1110
1110
  line-height: var(--mdc-divider-text-line-height);
1111
1111
  }
1112
- `],wr=So;var Mr=b.constructTagName("divider"),It={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Ce={SOLID:"solid",GRADIENT:"gradient"},X={POSITIVE:"positive",NEGATIVE:"negative"},Nt={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},K={ORIENTATION:It.HORIZONTAL,VARIANT:Ce.SOLID,ARROW_DIRECTION:X.NEGATIVE,BUTTON_DIRECTION:X.NEGATIVE};var Y=class extends h{constructor(){super();this.orientation=K.ORIENTATION;this.variant=K.VARIANT;this.arrowDirection=K.ARROW_DIRECTION;this.buttonPosition=K.BUTTON_DIRECTION;this.setAttribute("data-type","mdc-primary-divider")}setVariant(t){this.setAttribute("variant",Object.values(Ce).includes(t)?t:K.VARIANT)}setOrientation(t){this.setAttribute("orientation",Object.values(It).includes(t)?t:K.ORIENTATION)}ensureValidDirections(){let t=this.orientation===It.HORIZONTAL?X.NEGATIVE:X.POSITIVE;Object.values(X).includes(this.buttonPosition)||(this.buttonPosition=t),Object.values(X).includes(this.arrowDirection)||(this.arrowDirection=t)}setGrabberButton(){this.ensureValidDirections();let t=this.querySelector("mdc-button");if(t){let r=this.getArrowIcon();t.setAttribute("variant","secondary"),t.setAttribute("prefix-icon",r)}}getArrowIcon(){let t=this.orientation===It.HORIZONTAL,r=this.arrowDirection===X.POSITIVE;return t?r?Nt.UP:Nt.DOWN:r?Nt.RIGHT:Nt.LEFT}update(t){super.update(t),t.has("orientation")&&this.setOrientation(this.orientation),t.has("variant")&&this.setVariant(this.variant),(t.has("orientation")||t.has("arrowDirection")||t.has("buttonPosition"))&&this.setGrabberButton()}inferDividerType(){var s;let t=(s=this.shadowRoot)==null?void 0:s.querySelector("slot"),r=(t==null?void 0:t.assignedElements({flatten:!0}))||[];if(r.length>1)return;let o=r.some(c=>c.tagName===xt.toUpperCase()),n=r.some(c=>c.tagName===At.toUpperCase());o&&!n?this.setAttribute("data-type","mdc-text-divider"):!o&&n&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}render(){return m`
1112
+ `],Pr=Oo;var Ur=u.constructTagName("divider"),zt={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Oe={SOLID:"solid",GRADIENT:"gradient"},Y={POSITIVE:"positive",NEGATIVE:"negative"},Rt={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},Q={ORIENTATION:zt.HORIZONTAL,VARIANT:Oe.SOLID,ARROW_DIRECTION:Y.NEGATIVE,BUTTON_DIRECTION:Y.NEGATIVE};var X=class extends h{constructor(){super();this.orientation=Q.ORIENTATION;this.variant=Q.VARIANT;this.arrowDirection=Q.ARROW_DIRECTION;this.buttonPosition=Q.BUTTON_DIRECTION;this.setAttribute("data-type","mdc-primary-divider")}setVariant(t){this.setAttribute("variant",Object.values(Oe).includes(t)?t:Q.VARIANT)}setOrientation(t){this.setAttribute("orientation",Object.values(zt).includes(t)?t:Q.ORIENTATION)}ensureValidDirections(){let t=this.orientation===zt.HORIZONTAL?Y.NEGATIVE:Y.POSITIVE;Object.values(Y).includes(this.buttonPosition)||(this.buttonPosition=t),Object.values(Y).includes(this.arrowDirection)||(this.arrowDirection=t)}setGrabberButton(){this.ensureValidDirections();let t=this.querySelector("mdc-button");if(t){let r=this.getArrowIcon();t.setAttribute("variant","secondary"),t.setAttribute("prefix-icon",r)}}getArrowIcon(){let t=this.orientation===zt.HORIZONTAL,r=this.arrowDirection===Y.POSITIVE;return t?r?Rt.UP:Rt.DOWN:r?Rt.RIGHT:Rt.LEFT}update(t){super.update(t),t.has("orientation")&&this.setOrientation(this.orientation),t.has("variant")&&this.setVariant(this.variant),(t.has("orientation")||t.has("arrowDirection")||t.has("buttonPosition"))&&this.setGrabberButton()}inferDividerType(){var s;let t=(s=this.shadowRoot)==null?void 0:s.querySelector("slot"),r=(t==null?void 0:t.assignedElements({flatten:!0}))||[];if(r.length>1)return;let o=r.some(c=>c.tagName===At.toUpperCase()),n=r.some(c=>c.tagName===St.toUpperCase());o&&!n?this.setAttribute("data-type","mdc-text-divider"):!o&&n&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}render(){return m`
1113
1113
  <div></div>
1114
1114
  <slot @slotchange=${this.inferDividerType}></slot>
1115
1115
  <div></div>
1116
- `}};Y.styles=[...h.styles,...wr],a([d({type:String,reflect:!0})],Y.prototype,"orientation",2),a([d({type:String,reflect:!0})],Y.prototype,"variant",2),a([d({type:String,attribute:"arrow-direction",reflect:!0})],Y.prototype,"arrowDirection",2),a([d({type:String,attribute:"button-position",reflect:!0})],Y.prototype,"buttonPosition",2);var Re=Y;Re.register(Mr);var Io=Re;})();
1116
+ `}};X.styles=[...h.styles,...Pr],a([d({type:String,reflect:!0})],X.prototype,"orientation",2),a([d({type:String,reflect:!0})],X.prototype,"variant",2),a([d({type:String,attribute:"arrow-direction",reflect:!0})],X.prototype,"arrowDirection",2),a([d({type:String,attribute:"button-position",reflect:!0})],X.prototype,"buttonPosition",2);var we=X;we.register(Ur);var wo=we;var $o=[T,p`
1117
+ :host {
1118
+ padding: unset;
1119
+ margin: unset;
1120
+ outline: none;
1121
+ border-radius: 0.25rem;
1122
+ }
1123
+ `,Yt],Gr=$o;var Lt=class extends Zt(lt){constructor(){super();this.ariaLabel=null;this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role="button",this.type=w.TYPE}update(t){super.update(t),t.has("size")&&this.setSize(this.size)}setSize(t){this.setAttribute("size",Object.values(f).includes(t)?`${t}`:st.SIZE.toString())}render(){return m`
1124
+ <mdc-avatar
1125
+ slot="prefixIcon"
1126
+ ?is-typing="${this.isTyping}"
1127
+ counter="${z(this.counter)}"
1128
+ icon-name="${z(this.iconName)}"
1129
+ initials="${z(this.initials)}"
1130
+ presence="${z(this.presence)}"
1131
+ size="${z(this.size)}"
1132
+ src="${z(this.src)}"
1133
+ ></mdc-avatar>
1134
+ `}};Lt.styles=[...Gr],a([d({type:String,attribute:"aria-label"})],Lt.prototype,"ariaLabel",2);var $e=Lt;var Hr=u.constructTagName("avatarbutton");$e.register(Hr);var Mo=$e;})();
1117
1135
  /*! Bundled license information:
1118
1136
 
1119
1137
  @lit/reactive-element/decorators/custom-element.js: