@momentum-design/components 0.51.2 → 0.51.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +94 -72
- package/dist/browser/index.js.map +2 -2
- package/dist/components/avatarbutton/avatarbutton.component.d.ts +4 -0
- package/dist/components/avatarbutton/avatarbutton.component.js +5 -1
- package/dist/components/avatarbutton/avatarbutton.styles.js +22 -0
- package/dist/components/tooltip/tooltip.component.js +0 -1
- package/dist/custom-elements.json +15 -1
- package/dist/react/avatarbutton/index.d.ts +4 -0
- package/dist/react/avatarbutton/index.js +4 -0
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
"use strict";(()=>{var zl=Object.defineProperty;var Pl=Object.getOwnPropertyDescriptor;var l=(i,r,e,t)=>{for(var o=t>1?void 0:t?Pl(r,e):r,a=i.length-1,s;a>=0;a--)(s=i[a])&&(o=(t?s(r,e,o):s(o))||o);return t&&o&&zl(r,e,o),o};var qr=globalThis,Xr=qr.ShadowRoot&&(qr.ShadyCSS===void 0||qr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ei=Symbol(),wa=new WeakMap,mr=class{constructor(r,e,t){if(this._$cssResult$=!0,t!==ei)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=r,this.t=e}get styleSheet(){let r=this.o,e=this.t;if(Xr&&r===void 0){let t=e!==void 0&&e.length===1;t&&(r=wa.get(e)),r===void 0&&((this.o=r=new CSSStyleSheet).replaceSync(this.cssText),t&&wa.set(e,r))}return r}toString(){return this.cssText}},_a=i=>new mr(typeof i=="string"?i:i+"",void 0,ei),f=(i,...r)=>{let e=i.length===1?i[0]:r.reduce((t,o,a)=>t+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+i[a+1],i[0]);return new mr(e,i,ei)},ti=(i,r)=>{if(Xr)i.adoptedStyleSheets=r.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of r){let t=document.createElement("style"),o=qr.litNonce;o!==void 0&&t.setAttribute("nonce",o),t.textContent=e.cssText,i.appendChild(t)}},Zr=Xr?i=>i:i=>i instanceof CSSStyleSheet?(r=>{let e="";for(let t of r.cssRules)e+=t.cssText;return _a(e)})(i):i;var{is:Vl,defineProperty:Ul,getOwnPropertyDescriptor:Fl,getOwnPropertyNames:Bl,getOwnPropertySymbols:Hl,getPrototypeOf:Gl}=Object,Ze=globalThis,Ia=Ze.trustedTypes,Wl=Ia?Ia.emptyScript:"",ri=Ze.reactiveElementPolyfillSupport,pr=(i,r)=>i,hr={toAttribute(i,r){switch(r){case Boolean:i=i?Wl:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,r){let e=i;switch(r){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},jr=(i,r)=>!Vl(i,r),
|
1
|
+
"use strict";(()=>{var zl=Object.defineProperty;var Pl=Object.getOwnPropertyDescriptor;var l=(i,r,e,t)=>{for(var o=t>1?void 0:t?Pl(r,e):r,a=i.length-1,s;a>=0;a--)(s=i[a])&&(o=(t?s(r,e,o):s(o))||o);return t&&o&&zl(r,e,o),o};var qr=globalThis,Xr=qr.ShadowRoot&&(qr.ShadyCSS===void 0||qr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ei=Symbol(),wa=new WeakMap,mr=class{constructor(r,e,t){if(this._$cssResult$=!0,t!==ei)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=r,this.t=e}get styleSheet(){let r=this.o,e=this.t;if(Xr&&r===void 0){let t=e!==void 0&&e.length===1;t&&(r=wa.get(e)),r===void 0&&((this.o=r=new CSSStyleSheet).replaceSync(this.cssText),t&&wa.set(e,r))}return r}toString(){return this.cssText}},_a=i=>new mr(typeof i=="string"?i:i+"",void 0,ei),f=(i,...r)=>{let e=i.length===1?i[0]:r.reduce((t,o,a)=>t+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+i[a+1],i[0]);return new mr(e,i,ei)},ti=(i,r)=>{if(Xr)i.adoptedStyleSheets=r.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of r){let t=document.createElement("style"),o=qr.litNonce;o!==void 0&&t.setAttribute("nonce",o),t.textContent=e.cssText,i.appendChild(t)}},Zr=Xr?i=>i:i=>i instanceof CSSStyleSheet?(r=>{let e="";for(let t of r.cssRules)e+=t.cssText;return _a(e)})(i):i;var{is:Vl,defineProperty:Ul,getOwnPropertyDescriptor:Fl,getOwnPropertyNames:Bl,getOwnPropertySymbols:Hl,getPrototypeOf:Gl}=Object,Ze=globalThis,Ia=Ze.trustedTypes,Wl=Ia?Ia.emptyScript:"",ri=Ze.reactiveElementPolyfillSupport,pr=(i,r)=>i,hr={toAttribute(i,r){switch(r){case Boolean:i=i?Wl:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,r){let e=i;switch(r){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},jr=(i,r)=>!Vl(i,r),ka={attribute:!0,type:String,converter:hr,reflect:!1,hasChanged:jr},Ca,La;(Ca=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(La=Ze.litPropertyMetadata)!=null||(Ze.litPropertyMetadata=new WeakMap);var Re=class extends HTMLElement{static addInitializer(r){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(r)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(r,e=ka){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(r,e),!e.noAccessor){let t=Symbol(),o=this.getPropertyDescriptor(r,t,e);o!==void 0&&Ul(this.prototype,r,o)}}static getPropertyDescriptor(r,e,t){var s;let{get:o,set:a}=(s=Fl(this.prototype,r))!=null?s:{get(){return this[e]},set(n){this[e]=n}};return{get(){return o==null?void 0:o.call(this)},set(n){let d=o==null?void 0:o.call(this);a.call(this,n),this.requestUpdate(r,d,t)},configurable:!0,enumerable:!0}}static getPropertyOptions(r){var e;return(e=this.elementProperties.get(r))!=null?e:ka}static _$Ei(){if(this.hasOwnProperty(pr("elementProperties")))return;let r=Gl(this);r.finalize(),r.l!==void 0&&(this.l=[...r.l]),this.elementProperties=new Map(r.elementProperties)}static finalize(){if(this.hasOwnProperty(pr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(pr("properties"))){let e=this.properties,t=[...Bl(e),...Hl(e)];for(let o of t)this.createProperty(o,e[o])}let r=this[Symbol.metadata];if(r!==null){let e=litPropertyMetadata.get(r);if(e!==void 0)for(let[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(let[e,t]of this.elementProperties){let o=this._$Eu(e,t);o!==void 0&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(r){let e=[];if(Array.isArray(r)){let t=new Set(r.flat(1/0).reverse());for(let o of t)e.unshift(Zr(o))}else r!==void 0&&e.push(Zr(r));return e}static _$Eu(r,e){let t=e.attribute;return t===!1?void 0:typeof t=="string"?t:typeof r=="string"?r.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var r;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(r=this.constructor.l)==null||r.forEach(e=>e(this))}addController(r){var e,t;((e=this._$EO)!=null?e:this._$EO=new Set).add(r),this.renderRoot!==void 0&&this.isConnected&&((t=r.hostConnected)==null||t.call(r))}removeController(r){var e;(e=this._$EO)==null||e.delete(r)}_$E_(){let r=new Map,e=this.constructor.elementProperties;for(let t of e.keys())this.hasOwnProperty(t)&&(r.set(t,this[t]),delete this[t]);r.size>0&&(this._$Ep=r)}createRenderRoot(){var e;let r=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return ti(r,this.constructor.elementStyles),r}connectedCallback(){var r,e;(r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var o;return(o=t.hostConnected)==null?void 0:o.call(t)})}enableUpdating(r){}disconnectedCallback(){var r;(r=this._$EO)==null||r.forEach(e=>{var t;return(t=e.hostDisconnected)==null?void 0:t.call(e)})}attributeChangedCallback(r,e,t){this._$AK(r,t)}_$EC(r,e){var a;let t=this.constructor.elementProperties.get(r),o=this.constructor._$Eu(r,t);if(o!==void 0&&t.reflect===!0){let s=(((a=t.converter)==null?void 0:a.toAttribute)!==void 0?t.converter:hr).toAttribute(e,t.type);this._$Em=r,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(r,e){var a;let t=this.constructor,o=t._$Eh.get(r);if(o!==void 0&&this._$Em!==o){let s=t.getPropertyOptions(o),n=typeof s.converter=="function"?{fromAttribute:s.converter}:((a=s.converter)==null?void 0:a.fromAttribute)!==void 0?s.converter:hr;this._$Em=o,this[o]=n.fromAttribute(e,s.type),this._$Em=null}}requestUpdate(r,e,t){var o;if(r!==void 0){if(t!=null||(t=this.constructor.getPropertyOptions(r)),!((o=t.hasChanged)!=null?o:jr)(this[r],e))return;this.P(r,e,t)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(r,e,t){var o;this._$AL.has(r)||this._$AL.set(r,e),t.reflect===!0&&this._$Em!==r&&((o=this._$Ej)!=null?o:this._$Ej=new Set).add(r)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let r=this.scheduleUpdate();return r!=null&&await r,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t,o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[s,n]of this._$Ep)this[s]=n;this._$Ep=void 0}let a=this.constructor.elementProperties;if(a.size>0)for(let[s,n]of a)n.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],n)}let r=!1,e=this._$AL;try{r=this.shouldUpdate(e),r?(this.willUpdate(e),(o=this._$EO)==null||o.forEach(a=>{var s;return(s=a.hostUpdate)==null?void 0:s.call(a)}),this.update(e)):this._$EU()}catch(a){throw r=!1,this._$EU(),a}r&&this._$AE(e)}willUpdate(r){}_$AE(r){var e;(e=this._$EO)==null||e.forEach(t=>{var o;return(o=t.hostUpdated)==null?void 0:o.call(t)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(r)),this.updated(r)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(r){return!0}update(r){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(r){}firstUpdated(r){}},Ra;Re.elementStyles=[],Re.shadowRootOptions={mode:"open"},Re[pr("elementProperties")]=new Map,Re[pr("finalized")]=new Map,ri==null||ri({ReactiveElement:Re}),((Ra=Ze.reactiveElementVersions)!=null?Ra:Ze.reactiveElementVersions=[]).push("2.0.4");var fr=globalThis,Kr=fr.trustedTypes,Na=Kr?Kr.createPolicy("lit-html",{createHTML:i=>i}):void 0,ai="$lit$",Ne=`lit$${Math.random().toFixed(9).slice(2)}$`,si="?"+Ne,Yl=`<${si}>`,lt=document,br=()=>lt.createComment(""),vr=i=>i===null||typeof i!="object"&&typeof i!="function",ni=Array.isArray,Va=i=>ni(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",oi=`[
|
2
2
|
\f\r]`,ur=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Oa=/-->/g,Ma=/>/g,st=RegExp(`>|${oi}(?:([^\\s"'>=/]+)(${oi}*=${oi}*(?:[^
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Da=/'/g,$a=/"/g,Ua=/^(?:script|style|textarea|title)$/i,li=i=>(r,...e)=>({_$litType$:i,strings:r,values:e}),p=li(1),fm=li(2),bm=li(3),Oe=Symbol.for("lit-noChange"),y=Symbol.for("lit-nothing"),za=new WeakMap,nt=lt.createTreeWalker(lt,129);function Fa(i,r){if(!ni(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Na!==void 0?Na.createHTML(r):r}var Ba=(i,r)=>{let e=i.length-1,t=[],o,a=r===2?"<svg>":r===3?"<math>":"",s=ur;for(let n=0;n<e;n++){let d=i[n],m,h,u=-1,x=0;for(;x<d.length&&(s.lastIndex=x,h=s.exec(d),h!==null);)x=s.lastIndex,s===ur?h[1]==="!--"?s=Oa:h[1]!==void 0?s=Ma:h[2]!==void 0?(Ua.test(h[2])&&(o=RegExp("</"+h[2],"g")),s=st):h[3]!==void 0&&(s=st):s===st?h[0]===">"?(s=o!=null?o:ur,u=-1):h[1]===void 0?u=-2:(u=s.lastIndex-h[2].length,m=h[1],s=h[3]===void 0?st:h[3]==='"'?$a:Da):s===$a||s===Da?s=st:s===Oa||s===Ma?s=ur:(s=st,o=void 0);let
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Da=/'/g,$a=/"/g,Ua=/^(?:script|style|textarea|title)$/i,li=i=>(r,...e)=>({_$litType$:i,strings:r,values:e}),p=li(1),fm=li(2),bm=li(3),Oe=Symbol.for("lit-noChange"),y=Symbol.for("lit-nothing"),za=new WeakMap,nt=lt.createTreeWalker(lt,129);function Fa(i,r){if(!ni(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Na!==void 0?Na.createHTML(r):r}var Ba=(i,r)=>{let e=i.length-1,t=[],o,a=r===2?"<svg>":r===3?"<math>":"",s=ur;for(let n=0;n<e;n++){let d=i[n],m,h,u=-1,x=0;for(;x<d.length&&(s.lastIndex=x,h=s.exec(d),h!==null);)x=s.lastIndex,s===ur?h[1]==="!--"?s=Oa:h[1]!==void 0?s=Ma:h[2]!==void 0?(Ua.test(h[2])&&(o=RegExp("</"+h[2],"g")),s=st):h[3]!==void 0&&(s=st):s===st?h[0]===">"?(s=o!=null?o:ur,u=-1):h[1]===void 0?u=-2:(u=s.lastIndex-h[2].length,m=h[1],s=h[3]===void 0?st:h[3]==='"'?$a:Da):s===$a||s===Da?s=st:s===Oa||s===Ma?s=ur:(s=st,o=void 0);let v=s===st&&i[n+1].startsWith("/>")?" ":"";a+=s===ur?d+Yl:u>=0?(t.push(m),d.slice(0,u)+ai+d.slice(u)+Ne+v):d+Ne+(u===-2?n:v)}return[Fa(i,a+(i[e]||"<?>")+(r===2?"</svg>":r===3?"</math>":"")),t]},gr=class i{constructor({strings:r,_$litType$:e},t){let o;this.parts=[];let a=0,s=0,n=r.length-1,d=this.parts,[m,h]=Ba(r,e);if(this.el=i.createElement(m,t),nt.currentNode=this.el.content,e===2||e===3){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(o=nt.nextNode())!==null&&d.length<n;){if(o.nodeType===1){if(o.hasAttributes())for(let u of o.getAttributeNames())if(u.endsWith(ai)){let x=h[s++],v=o.getAttribute(u).split(Ne),E=/([.?@])?(.*)/.exec(x);d.push({type:1,index:a,name:E[2],strings:v,ctor:E[1]==="."?Jr:E[1]==="?"?eo:E[1]==="@"?to:dt}),o.removeAttribute(u)}else u.startsWith(Ne)&&(d.push({type:6,index:a}),o.removeAttribute(u));if(Ua.test(o.tagName)){let u=o.textContent.split(Ne),x=u.length-1;if(x>0){o.textContent=Kr?Kr.emptyScript:"";for(let v=0;v<x;v++)o.append(u[v],br()),nt.nextNode(),d.push({type:2,index:++a});o.append(u[x],br())}}}else if(o.nodeType===8)if(o.data===si)d.push({type:2,index:a});else{let u=-1;for(;(u=o.data.indexOf(Ne,u+1))!==-1;)d.push({type:7,index:a}),u+=Ne.length-1}a++}}static createElement(r,e){let t=lt.createElement("template");return t.innerHTML=r,t}};function ct(i,r,e=i,t){var s,n,d;if(r===Oe)return r;let o=t!==void 0?(s=e.o)==null?void 0:s[t]:e.l,a=vr(r)?void 0:r._$litDirective$;return(o==null?void 0:o.constructor)!==a&&((n=o==null?void 0:o._$AO)==null||n.call(o,!1),a===void 0?o=void 0:(o=new a(i),o._$AT(i,e,t)),t!==void 0?((d=e.o)!=null?d:e.o=[])[t]=o:e.l=o),o!==void 0&&(r=ct(i,o._$AS(i,r.values),o,t)),r}var Qr=class{constructor(r,e){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){var m;let{el:{content:e},parts:t}=this._$AD,o=((m=r==null?void 0:r.creationScope)!=null?m:lt).importNode(e,!0);nt.currentNode=o;let a=nt.nextNode(),s=0,n=0,d=t[0];for(;d!==void 0;){if(s===d.index){let h;d.type===2?h=new $t(a,a.nextSibling,this,r):d.type===1?h=new d.ctor(a,d.name,d.strings,this,r):d.type===6&&(h=new ro(a,this,r)),this._$AV.push(h),d=t[++n]}s!==(d==null?void 0:d.index)&&(a=nt.nextNode(),s++)}return nt.currentNode=lt,o}p(r){let e=0;for(let t of this._$AV)t!==void 0&&(t.strings!==void 0?(t._$AI(r,t,e),e+=t.strings.length-2):t._$AI(r[e])),e++}},$t=class i{get _$AU(){var r,e;return(e=(r=this._$AM)==null?void 0:r._$AU)!=null?e:this.v}constructor(r,e,t,o){var a;this.type=2,this._$AH=y,this._$AN=void 0,this._$AA=r,this._$AB=e,this._$AM=t,this.options=o,this.v=(a=o==null?void 0:o.isConnected)!=null?a:!0}get parentNode(){let r=this._$AA.parentNode,e=this._$AM;return e!==void 0&&(r==null?void 0:r.nodeType)===11&&(r=e.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,e=this){r=ct(this,r,e),vr(r)?r===y||r==null||r===""?(this._$AH!==y&&this._$AR(),this._$AH=y):r!==this._$AH&&r!==Oe&&this._(r):r._$litType$!==void 0?this.$(r):r.nodeType!==void 0?this.T(r):Va(r)?this.k(r):this._(r)}O(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}T(r){this._$AH!==r&&(this._$AR(),this._$AH=this.O(r))}_(r){this._$AH!==y&&vr(this._$AH)?this._$AA.nextSibling.data=r:this.T(lt.createTextNode(r)),this._$AH=r}$(r){var a;let{values:e,_$litType$:t}=r,o=typeof t=="number"?this._$AC(r):(t.el===void 0&&(t.el=gr.createElement(Fa(t.h,t.h[0]),this.options)),t);if(((a=this._$AH)==null?void 0:a._$AD)===o)this._$AH.p(e);else{let s=new Qr(o,this),n=s.u(this.options);s.p(e),this.T(n),this._$AH=s}}_$AC(r){let e=za.get(r.strings);return e===void 0&&za.set(r.strings,e=new gr(r)),e}k(r){ni(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,t,o=0;for(let a of r)o===e.length?e.push(t=new i(this.O(br()),this.O(br()),this,this.options)):t=e[o],t._$AI(a),o++;o<e.length&&(this._$AR(t&&t._$AB.nextSibling,o),e.length=o)}_$AR(r=this._$AA.nextSibling,e){var t;for((t=this._$AP)==null?void 0:t.call(this,!1,!0,e);r&&r!==this._$AB;){let o=r.nextSibling;r.remove(),r=o}}setConnected(r){var e;this._$AM===void 0&&(this.v=r,(e=this._$AP)==null||e.call(this,r))}},dt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(r,e,t,o,a){this.type=1,this._$AH=y,this._$AN=void 0,this.element=r,this.name=e,this._$AM=o,this.options=a,t.length>2||t[0]!==""||t[1]!==""?(this._$AH=Array(t.length-1).fill(new String),this.strings=t):this._$AH=y}_$AI(r,e=this,t,o){let a=this.strings,s=!1;if(a===void 0)r=ct(this,r,e,0),s=!vr(r)||r!==this._$AH&&r!==Oe,s&&(this._$AH=r);else{let n=r,d,m;for(r=a[0],d=0;d<a.length-1;d++)m=ct(this,n[t+d],e,d),m===Oe&&(m=this._$AH[d]),s||(s=!vr(m)||m!==this._$AH[d]),m===y?r=y:r!==y&&(r+=(m!=null?m:"")+a[d+1]),this._$AH[d]=m}s&&!o&&this.j(r)}j(r){r===y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r!=null?r:"")}},Jr=class extends dt{constructor(){super(...arguments),this.type=3}j(r){this.element[this.name]=r===y?void 0:r}},eo=class extends dt{constructor(){super(...arguments),this.type=4}j(r){this.element.toggleAttribute(this.name,!!r&&r!==y)}},to=class extends dt{constructor(r,e,t,o,a){super(r,e,t,o,a),this.type=5}_$AI(r,e=this){var s;if((r=(s=ct(this,r,e,0))!=null?s:y)===Oe)return;let t=this._$AH,o=r===y&&t!==y||r.capture!==t.capture||r.once!==t.once||r.passive!==t.passive,a=r!==y&&(t===y||o);o&&this.element.removeEventListener(this.name,this,t),a&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){var e,t;typeof this._$AH=="function"?this._$AH.call((t=(e=this.options)==null?void 0:e.host)!=null?t:this.element,r):this._$AH.handleEvent(r)}},ro=class{constructor(r,e,t){this.element=r,this.type=6,this._$AN=void 0,this._$AM=e,this.options=t}get _$AU(){return this._$AM._$AU}_$AI(r){ct(this,r)}},Ha={M:ai,P:Ne,A:si,C:1,L:Ba,R:Qr,D:Va,V:ct,I:$t,H:dt,N:eo,U:to,B:Jr,F:ro},ii=fr.litHtmlPolyfillSupport,Pa;ii==null||ii(gr,$t),((Pa=fr.litHtmlVersions)!=null?Pa:fr.litHtmlVersions=[]).push("3.2.0");var Ga=(i,r,e)=>{var a,s;let t=(a=e==null?void 0:e.renderBefore)!=null?a:r,o=t._$litPart$;if(o===void 0){let n=(s=e==null?void 0:e.renderBefore)!=null?s:null;t._$litPart$=o=new $t(r.insertBefore(br(),n),n,void 0,e!=null?e:{})}return o._$AI(i),o};var je=class extends Re{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var e,t;let r=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=r.firstChild),r}update(r){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(r),this.o=Ga(e,this.renderRoot,this.renderOptions)}connectedCallback(){var r;super.connectedCallback(),(r=this.o)==null||r.setConnected(!0)}disconnectedCallback(){var r;super.disconnectedCallback(),(r=this.o)==null||r.setConnected(!1)}render(){return Oe}},Wa;je._$litElement$=!0,je.finalized=!0,(Wa=globalThis.litElementHydrateSupport)==null||Wa.call(globalThis,{LitElement:je});var ci=globalThis.litElementPolyfillSupport;ci==null||ci({LitElement:je});var Ya;((Ya=globalThis.litElementVersions)!=null?Ya:globalThis.litElementVersions=[]).push("4.1.0");var ql={attribute:!0,type:String,converter:hr,reflect:!1,hasChanged:jr},Xl=(i=ql,r,e)=>{let{kind:t,metadata:o}=e,a=globalThis.litPropertyMetadata.get(o);if(a===void 0&&globalThis.litPropertyMetadata.set(o,a=new Map),a.set(e.name,i),t==="accessor"){let{name:s}=e;return{set(n){let d=r.get.call(this);r.set.call(this,n),this.requestUpdate(s,d,i)},init(n){return n!==void 0&&this.P(s,void 0,i),n}}}if(t==="setter"){let{name:s}=e;return function(n){let d=this[s];r.call(this,n),this.requestUpdate(s,d,i)}}throw Error("Unsupported decorator location: "+t)};function c(i){return(r,e)=>typeof e=="object"?Xl(i,r,e):((t,o,a)=>{let s=o.hasOwnProperty(a);return o.constructor.createProperty(a,s?{...t,wrapped:!0}:t),s?Object.getOwnPropertyDescriptor(o,a):void 0})(i,r,e)}function M(i){return c({...i,state:!0,attribute:!1})}var Me=(i,r,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof r!="object"&&Object.defineProperty(i,r,e),e);function De(i,r){return(e,t,o)=>{let a=s=>{var n,d;return(d=(n=s.renderRoot)==null?void 0:n.querySelector(i))!=null?d:null};if(r){let{get:s,set:n}=typeof t=="object"?e:o!=null?o:(()=>{let d=Symbol();return{get(){return this[d]},set(m){this[d]=m}}})();return Me(e,t,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&n.call(this,d)),d}})}return Me(e,t,{get(){return a(this)}})}}function te(i){return(r,e)=>{let{slot:t,selector:o}=i!=null?i:{},a="slot"+(t?`[name=${t}]`:":not([name])");return Me(r,e,{get(){var d,m;let s=(d=this.renderRoot)==null?void 0:d.querySelector(a),n=(m=s==null?void 0:s.assignedElements(i))!=null?m:[];return o===void 0?n:n.filter(h=>h.matches(o))}})}}function qa(i){return(r,e)=>{let{slot:t}=i!=null?i:{},o="slot"+(t?`[name=${t}]`:":not([name])");return Me(r,e,{get(){var s,n;let a=(s=this.renderRoot)==null?void 0:s.querySelector(o);return(n=a==null?void 0:a.assignedNodes(i))!=null?n:[]}})}}var C=f`
|
4
4
|
:host {
|
5
5
|
align-items: center;
|
6
6
|
display: flex;
|
@@ -166,7 +166,7 @@
|
|
166
166
|
:host([variant="informational"]:active){
|
167
167
|
--mdc-chip-background-color: var(--mds-color-theme-background-alert-theme-active);
|
168
168
|
}
|
169
|
-
`,Xa=[
|
169
|
+
`,Xa=[C,Zl,...N()];var Za=f`
|
170
170
|
:host {
|
171
171
|
box-sizing: border-box;
|
172
172
|
}
|
@@ -176,11 +176,11 @@
|
|
176
176
|
:host *::after {
|
177
177
|
box-sizing: inherit;
|
178
178
|
}
|
179
|
-
`;var io=class extends je{static register(r){customElements.get(r)||customElements.define(r,this)}};io.styles=[Za];var ja=io;var
|
179
|
+
`;var io=class extends je{static register(r){customElements.get(r)||customElements.define(r,this)}};io.styles=[Za];var ja=io;var g=ja;var Ke=class extends Event{constructor(r,e,t){super("context-request",{bubbles:!0,composed:!0}),this.context=r,this.callback=e,this.subscribe=t!=null?t:!1}};var zt=class{constructor(r,e,t,o){var a;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(s,n)=>{this.unsubscribe&&(this.unsubscribe!==n&&(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,n)),this.unsubscribe=n},this.host=r,e.context!==void 0){let s=e;this.context=s.context,this.callback=s.callback,this.subscribe=(a=s.subscribe)!=null?a:!1}else this.context=e,this.callback=t,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 Ke(this.context,this.t,this.subscribe))}};var ao=class{get value(){return this.o}set value(r){this.setValue(r)}setValue(r,e=!1){let t=e||!Object.is(r,this.o);this.o=r,t&&this.updateObservers()}constructor(r){this.subscriptions=new Map,this.updateObservers=()=>{for(let[e,{disposer:t}]of this.subscriptions)e(this.o,t)},r!==void 0&&(this.value=r)}addCallback(r,e,t){if(!t)return void r(this.value);this.subscriptions.has(r)||this.subscriptions.set(r,{disposer:()=>{this.subscriptions.delete(r)},consumerHost:e});let{disposer:o}=this.subscriptions.get(r);r(this.value,o)}clearCallbacks(){this.subscriptions.clear()}};var di=class extends Event{constructor(r){super("context-provider",{bubbles:!0,composed:!0}),this.context=r}},Pt=class extends ao{constructor(r,e,t){var o,a;super(e.context!==void 0?e.initialValue:t),this.onContextRequest=s=>{let n=s.composedPath()[0];s.context===this.context&&n!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,n,s.subscribe))},this.onProviderRequest=s=>{let n=s.composedPath()[0];if(s.context!==this.context||n===this.host)return;let d=new Set;for(let[m,{consumerHost:h}]of this.subscriptions)d.has(m)||(d.add(m),h.dispatchEvent(new Ke(this.context,m,!0)));s.stopPropagation()},this.host=r,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(a=(o=this.host).addController)==null||a.call(o,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new di(this.context))}};var jl=f`
|
180
180
|
:host {
|
181
181
|
display: contents;
|
182
182
|
}
|
183
|
-
`,Qa=jl;var so=class extends
|
183
|
+
`,Qa=jl;var so=class extends g{constructor({context:r,initialValue:e}){super(),this.context=new Pt(this,{context:r,initialValue:e})}render(){return this.updateContext(),p`<slot></slot>`}};so.styles=[...g.styles,Qa];var Ja=so;var Vt=Ja;var Kl={PREFIX:"mdc",SEPARATOR:"-"},Ql={NAMESPACE:Kl},mi=Ql;var Jl=i=>[mi.NAMESPACE.PREFIX,i].join(mi.NAMESPACE.SEPARATOR),b={constructTagName:Jl};var oh=b.constructTagName("buttonsimple"),yr={20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},Ut={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},no={SIZE:yr[32],TYPE:Ut.BUTTON,ROLE:"button"};var xr=b.constructTagName("text"),w={BODY_SMALL_REGULAR:"body-small-regular",BODY_SMALL_MEDIUM:"body-small-medium",BODY_SMALL_BOLD:"body-small-bold",BODY_MIDSIZE_REGULAR:"body-midsize-regular",BODY_MIDSIZE_MEDIUM:"body-midsize-medium",BODY_MIDSIZE_BOLD:"body-midsize-bold",BODY_LARGE_REGULAR:"body-large-regular",BODY_LARGE_MEDIUM:"body-large-medium",BODY_LARGE_BOLD:"body-large-bold",BODY_SMALL_REGULAR_UNDERLINE:"body-small-regular-underline",BODY_SMALL_MEDIUM_UNDERLINE:"body-small-medium-underline",BODY_MIDSIZE_REGULAR_UNDERLINE:"body-midsize-regular-underline",BODY_MIDSIZE_MEDIUM_UNDERLINE:"body-midsize-medium-underline",BODY_LARGE_REGULAR_UNDERLINE:"body-large-regular-underline",BODY_LARGE_MEDIUM_UNDERLINE:"body-large-medium-underline",HEADING_SMALL_REGULAR:"heading-small-regular",HEADING_SMALL_MEDIUM:"heading-small-medium",HEADING_SMALL_BOLD:"heading-small-bold",HEADING_MIDSIZE_REGULAR:"heading-midsize-regular",HEADING_MIDSIZE_MEDIUM:"heading-midsize-medium",HEADING_MIDSIZE_BOLD:"heading-midsize-bold",HEADING_LARGE_REGULAR:"heading-large-regular",HEADING_LARGE_MEDIUM:"heading-large-medium",HEADING_LARGE_BOLD:"heading-large-bold",HEADING_XLARGE_REGULAR:"heading-xlarge-regular",HEADING_XLARGE_MEDIUM:"heading-xlarge-medium",HEADING_XLARGE_BOLD:"heading-xlarge-bold",HEADLINE_SMALL_LIGHT:"headline-small-light",HEADLINE_SMALL_REGULAR:"headline-small-regular"},k={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},re={TYPE:w.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:k.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var es=b.constructTagName("alertchip"),mt={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},Ft={VARIANT:mt.NEUTRAL,TEXT_TYPE:w.BODY_MIDSIZE_REGULAR,TAG_NAME:k.SPAN,SIZE:yr[24],ROLE:"button"};var ts=i=>({[mt.ERROR]:"error-legacy-badge-filled",[mt.WARNING]:"warning-badge-filled",[mt.SUCCESS]:"check-circle-badge-filled",[mt.INFORMATIONAL]:"info-badge-filled",[mt.NEUTRAL]:"dnd-presence-badge-filled"})[i];var ne=i=>{class r extends i{}return l([c({reflect:!0,type:Boolean})],r.prototype,"disabled",2),r};var lo=i=>{class r extends i{constructor(){super(...arguments);this.tabIndex=0}}return l([c({reflect:!0,type:Number})],r.prototype,"tabIndex",2),r};var ec=[C,f`
|
184
184
|
:host {
|
185
185
|
border: 0.0625rem solid transparent;
|
186
186
|
cursor: pointer;
|
@@ -236,12 +236,12 @@
|
|
236
236
|
:host([size="20"]){
|
237
237
|
height: var(--mdc-button-height-size-20);
|
238
238
|
}
|
239
|
-
`,...N()],rs=ec;var Ae=class extends lo(ne(
|
239
|
+
`,...N()],rs=ec;var Ae=class extends lo(ne(g)){constructor(){super();this.active=!1;this.softDisabled=!1;this.size=no.SIZE;this.role=no.ROLE;this.type=no.TYPE;this.prevTabindex=0;this.internals=this.attachInternals(),this.addEventListener("click",this.executeAction.bind(this)),this.addEventListener("keydown",this.handleKeyDown.bind(this)),this.addEventListener("keyup",this.handleKeyUp.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}get form(){return this.internals.form}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this,this.disabled),e.has("softDisabled")&&this.setSoftDisabled(this,this.softDisabled),e.has("active")&&this.setActive(this,this.active)}executeAction(){this.type===Ut.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===Ut.RESET&&this.form&&this.form.reset()}setActive(e,t){t?e.setAttribute("aria-pressed","true"):e.removeAttribute("aria-pressed")}setSoftDisabled(e,t){t?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")}setDisabled(e,t){t?(e.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),e.removeAttribute("aria-disabled"))}triggerClickEvent(){let e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(e)}handleBlur(){this.classList.contains("pressed")&&this.classList.remove("pressed")}handleKeyDown(e){["Enter"," "].includes(e.key)&&(this.classList.add("pressed"),e.key==="Enter"&&this.triggerClickEvent(),e.key===" "&&e.preventDefault())}handleKeyUp(e){["Enter"," "].includes(e.key)&&(this.classList.remove("pressed"),e.key===" "&&this.triggerClickEvent())}render(){return p`
|
240
240
|
<slot></slot>
|
241
|
-
`}};Ae.formAssociated=!0,Ae.styles=[...
|
241
|
+
`}};Ae.formAssociated=!0,Ae.styles=[...g.styles,...rs],l([c({type:Boolean,reflect:!0})],Ae.prototype,"active",2),l([c({type:Boolean,attribute:"soft-disabled"})],Ae.prototype,"softDisabled",2),l([c({type:Number,reflect:!0})],Ae.prototype,"size",2),l([c({type:String,reflect:!0})],Ae.prototype,"role",2),l([c({reflect:!0})],Ae.prototype,"type",2);var le=Ae;var Bt=class extends le{constructor(){super(...arguments);this.variant=Ft.VARIANT;this.label=""}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=Ft.SIZE,this.role=Ft.ROLE}render(){return p`
|
242
242
|
<mdc-icon part="icon" name="${ts(this.variant)}" length-unit="rem" size="1"></mdc-icon>
|
243
243
|
<mdc-text part="label" type="${Ft.TEXT_TYPE}" tagname="${Ft.TAG_NAME}">${this.label}</mdc-text>
|
244
|
-
`}};Bt.styles=[...
|
244
|
+
`}};Bt.styles=[...g.styles,...Xa],l([c({type:String})],Bt.prototype,"variant",2),l([c({type:String})],Bt.prototype,"label",2);var pi=Bt;var os=f`
|
245
245
|
:host::part(text) {
|
246
246
|
font-size: unset;
|
247
247
|
font-weight: unset;
|
@@ -491,7 +491,7 @@
|
|
491
491
|
display: block;
|
492
492
|
font-family: var(--mdc-text-font-family);
|
493
493
|
}
|
494
|
-
`,os],is=tc;var Ht=class extends
|
494
|
+
`,os],is=tc;var Ht=class extends g{constructor(){super(...arguments);this.type=re.TYPE;this.tagname=re.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case k.H1:return p`<h1 part=${re.CSS_PART_TEXT}><slot></slot></h1>`;case k.H2:return p`<h2 part=${re.CSS_PART_TEXT}><slot></slot></h2>`;case k.H3:return p`<h3 part=${re.CSS_PART_TEXT}><slot></slot></h3>`;case k.H4:return p`<h4 part=${re.CSS_PART_TEXT}><slot></slot></h4>`;case k.H5:return p`<h5 part=${re.CSS_PART_TEXT}><slot></slot></h5>`;case k.H6:return p`<h6 part=${re.CSS_PART_TEXT}><slot></slot></h6>`;case k.DIV:return p`<div part=${re.CSS_PART_TEXT}><slot></slot></div>`;case k.SPAN:return p`<span part=${re.CSS_PART_TEXT}><slot></slot></span>`;case k.SMALL:return p`<small part=${re.CSS_PART_TEXT}><slot></slot></small>`;case k.P:default:return p`<p part=${re.CSS_PART_TEXT}><slot></slot></p>`}}};Ht.styles=[...g.styles,...is],l([c({attribute:"type",reflect:!0,type:String})],Ht.prototype,"type",2),l([c({attribute:"tagname",reflect:!0,type:String})],Ht.prototype,"tagname",2);var hi=Ht;hi.register(xr);var rc=hi;var oc=[C,f`
|
495
495
|
:host {
|
496
496
|
--mdc-icon-fill-color: currentColor;
|
497
497
|
--mdc-icon-size: var(--computed-icon-size);
|
@@ -506,7 +506,7 @@
|
|
506
506
|
width: 100%;
|
507
507
|
fill: var(--mdc-icon-fill-color);
|
508
508
|
}
|
509
|
-
`,...N()],as=oc;var ic=i=>{let{host:r,context:e,subscribe:t}=i;return new zt(r,{context:e,subscribe:t!=null?t:!0})},ac={consume:ic},ss=ac;var co=b.constructTagName("iconprovider"),ns=["svg"],ls=["em","rem","px","%"],sc={px:16,em:1,rem:1,"%":100},$e={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:sc.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var mo=class{};mo.context=co;var po=mo;var Se=class extends Vt{constructor(){super({context:po.context,initialValue:new po});this.iconSet=$e.ICON_SET;this.fileExtension=$e.FILE_EXTENSION;this.lengthUnit=$e.LENGTH_UNIT;this.size=$e.SIZE}static get Context(){return po.context}updateValuesInContext(){this.fileExtension&&ns.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=$e.FILE_EXTENSION,this.context.value.fileExtension=$e.FILE_EXTENSION),this.context.value.iconSet=this.iconSet,this.context.value.url=this.url,this.context.value.size=this.size,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy,this.lengthUnit&&ls.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=$e.LENGTH_UNIT,this.context.value.lengthUnit=$e.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.iconSet!==this.iconSet||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};l([c({type:String,attribute:"icon-set",reflect:!0})],Se.prototype,"iconSet",2),l([c({type:String})],Se.prototype,"url",2),l([c({type:String,attribute:"file-extension",reflect:!0})],Se.prototype,"fileExtension",2),l([c({type:String,attribute:"length-unit",reflect:!0})],Se.prototype,"lengthUnit",2),l([c({type:Number,reflect:!0})],Se.prototype,"size",2),l([c({type:String,attribute:"cache-strategy"})],Se.prototype,"cacheStrategy",2),l([c({type:String,attribute:"cache-name"})],Se.prototype,"cacheName",2);var Er=Se;var Tr={},cs=async i=>(Tr[i]===void 0&&(Tr[i]=new Map),{async set(r,e){Tr[i].set(r.url,await e.text())},async get(r){return Tr[i].get(r.url)},async delete(r){Tr[i].delete(r.url)}}),ds=async i=>{let r=await caches.open(i);return{set:async(e,t)=>{await r.put(e,t)},get:async e=>{let t=await r.match(e);return t==null?void 0:t.text()},delete:async e=>{await r.delete(e)}}},ms=async(i,r)=>r==="in-memory-cache"?cs(i):ds(i);var ps=async i=>fetch(i).then(r=>{if(!r.ok)throw new Error("There was a problem while fetching the icon!");return r}),hs=async({url:i,name:r,fileExtension:e,cacheStrategy:t,cacheName:o,renewSignal:a})=>{let s=a(),n=new Request(`${i}/${r}.${e}`,{signal:s});return!o||!t||!["in-memory-cache","web-cache-api"].includes(t)?ps(n).then(d=>d.text()):ms(o,t).then(d=>d.get(n).then(m=>m||ps(n.clone()).then(h=>{var u;return h.status<400&&h.headers.has("content-type")?(u=d.set)==null?void 0:u.call(d,n,h.clone()).then(()=>h.text()):h.text()})).catch(m=>{throw new Error(`Error in caching the Icon ${r}, ${m}`)}))};var us=b.constructTagName("icon"),ui={NAME:void 0,SIZE:1};var oe=class extends
|
509
|
+
`,...N()],as=oc;var ic=i=>{let{host:r,context:e,subscribe:t}=i;return new zt(r,{context:e,subscribe:t!=null?t:!0})},ac={consume:ic},ss=ac;var co=b.constructTagName("iconprovider"),ns=["svg"],ls=["em","rem","px","%"],sc={px:16,em:1,rem:1,"%":100},$e={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:sc.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var mo=class{};mo.context=co;var po=mo;var Se=class extends Vt{constructor(){super({context:po.context,initialValue:new po});this.iconSet=$e.ICON_SET;this.fileExtension=$e.FILE_EXTENSION;this.lengthUnit=$e.LENGTH_UNIT;this.size=$e.SIZE}static get Context(){return po.context}updateValuesInContext(){this.fileExtension&&ns.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=$e.FILE_EXTENSION,this.context.value.fileExtension=$e.FILE_EXTENSION),this.context.value.iconSet=this.iconSet,this.context.value.url=this.url,this.context.value.size=this.size,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy,this.lengthUnit&&ls.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=$e.LENGTH_UNIT,this.context.value.lengthUnit=$e.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.iconSet!==this.iconSet||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};l([c({type:String,attribute:"icon-set",reflect:!0})],Se.prototype,"iconSet",2),l([c({type:String})],Se.prototype,"url",2),l([c({type:String,attribute:"file-extension",reflect:!0})],Se.prototype,"fileExtension",2),l([c({type:String,attribute:"length-unit",reflect:!0})],Se.prototype,"lengthUnit",2),l([c({type:Number,reflect:!0})],Se.prototype,"size",2),l([c({type:String,attribute:"cache-strategy"})],Se.prototype,"cacheStrategy",2),l([c({type:String,attribute:"cache-name"})],Se.prototype,"cacheName",2);var Er=Se;var Tr={},cs=async i=>(Tr[i]===void 0&&(Tr[i]=new Map),{async set(r,e){Tr[i].set(r.url,await e.text())},async get(r){return Tr[i].get(r.url)},async delete(r){Tr[i].delete(r.url)}}),ds=async i=>{let r=await caches.open(i);return{set:async(e,t)=>{await r.put(e,t)},get:async e=>{let t=await r.match(e);return t==null?void 0:t.text()},delete:async e=>{await r.delete(e)}}},ms=async(i,r)=>r==="in-memory-cache"?cs(i):ds(i);var ps=async i=>fetch(i).then(r=>{if(!r.ok)throw new Error("There was a problem while fetching the icon!");return r}),hs=async({url:i,name:r,fileExtension:e,cacheStrategy:t,cacheName:o,renewSignal:a})=>{let s=a(),n=new Request(`${i}/${r}.${e}`,{signal:s});return!o||!t||!["in-memory-cache","web-cache-api"].includes(t)?ps(n).then(d=>d.text()):ms(o,t).then(d=>d.get(n).then(m=>m||ps(n.clone()).then(h=>{var u;return h.status<400&&h.headers.has("content-type")?(u=d.set)==null?void 0:u.call(d,n,h.clone()).then(()=>h.text()):h.text()})).catch(m=>{throw new Error(`Error in caching the Icon ${r}, ${m}`)}))};var us=b.constructTagName("icon"),ui={NAME:void 0,SIZE:1};var oe=class extends g{constructor(){super();this.name=ui.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=ss.consume({host:this,context:Er.Context});this.abortController=new AbortController}prepareIconElement(e){let t=new DOMParser().parseFromString(e,"text/html").body.children[0];return this.name&&t.setAttribute("data-name",this.name),t.setAttribute("part","icon"),t.setAttribute("aria-hidden","true"),t}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:t,url:o,cacheName:a,iconSet:s,cacheStrategy:n}=this.iconProviderContext.value;if(s==="custom-icons"&&o&&t&&this.name){let d=()=>(this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal);return hs({url:o,name:this.name,fileExtension:t,cacheName:a,cacheStrategy:n,renewSignal:d}).then(m=>{let h=this.prepareIconElement(m);this.handleIconLoadedSuccess(h)}).catch(m=>{this.handleIconLoadedFailure(m)})}if(s==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(d=>{this.handleIconLoadedSuccess(d.default())}).catch(d=>{this.handleIconLoadedFailure(d)})}let e=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(e),Promise.reject(e)}handleIconLoadedSuccess(e){this.iconData=e;let t=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(t)}handleIconLoadedFailure(e){let t=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(t)}updateSize(){var e;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let t=`${this.computedIconSize}${(e=this.lengthUnit)!=null?e:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",t)}}get computedIconSize(){var e,t;return(t=(e=this.size)!=null?e:this.sizeFromContext)!=null?t:ui.SIZE}updated(e){var t,o,a,s;super.updated(e),e.has("name")&&this.getIconData().catch(n=>{n.name!=="AbortError"&&this.onerror&&this.onerror(n)}),(e.has("ariaLabel")||e.has("ariaLabelledBy"))&&(this.role=this.ariaLabel||this.ariaLabelledBy?"img":null),(e.has("size")||e.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((t=this.iconProviderContext.value)==null?void 0:t.lengthUnit)&&(this.lengthUnitFromContext=(o=this.iconProviderContext.value)==null?void 0:o.lengthUnit,this.updateSize()),this.sizeFromContext!==((a=this.iconProviderContext.value)==null?void 0:a.size)&&(this.sizeFromContext=(s=this.iconProviderContext.value)==null?void 0:s.size,this.updateSize())}render(){return p` ${this.iconData} `}};oe.styles=[...g.styles,...as],l([M()],oe.prototype,"iconData",2),l([M()],oe.prototype,"lengthUnitFromContext",2),l([M()],oe.prototype,"sizeFromContext",2),l([c({type:String,reflect:!0})],oe.prototype,"name",2),l([c({type:Number})],oe.prototype,"size",2),l([c({type:String,attribute:"length-unit"})],oe.prototype,"lengthUnit",2),l([c({type:String,attribute:"aria-label"})],oe.prototype,"ariaLabel",2),l([c({type:String,attribute:"aria-labelledby"})],oe.prototype,"ariaLabelledBy",2),l([M()],oe.prototype,"abortController",2);var fi=oe;fi.register(us);var nc=fi;pi.register(es);var lc=pi;var cc=f`
|
510
510
|
:host {
|
511
511
|
--mdc-appheader-height: 4rem;
|
512
512
|
}
|
@@ -540,7 +540,7 @@
|
|
540
540
|
:host::part(trailing-section) {
|
541
541
|
justify-content: flex-end;
|
542
542
|
}
|
543
|
-
`,fs=[cc];var ho=class extends
|
543
|
+
`,fs=[cc];var ho=class extends g{render(){return p`
|
544
544
|
<header part="container">
|
545
545
|
<div part="leading-section">
|
546
546
|
<slot name="leading"></slot>
|
@@ -551,7 +551,7 @@
|
|
551
551
|
<div part="trailing-section">
|
552
552
|
<slot name="trailing"></slot>
|
553
553
|
</div>
|
554
|
-
</header>`}};ho.styles=[...
|
554
|
+
</header>`}};ho.styles=[...g.styles,...fs];var bi=ho;var bs=b.constructTagName("appheader");bi.register(bs);var dc=bi;var A=i=>i!=null?i:y;var vs=b.constructTagName("avatar"),X={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},vi=99,mc="user-regular",D={24:24,32:32,48:48,64:64,72:72,88:88,124:124},Gt={TYPE:X.PHOTO,SIZE:D[32],ICON_NAME:mc};var uo=i=>{class r extends i{constructor(){super(...arguments);this.size=Gt.SIZE;this.isTyping=!1}}return l([c({type:String})],r.prototype,"src",2),l([c({type:String})],r.prototype,"initials",2),l([c({type:String})],r.prototype,"presence",2),l([c({type:Number,reflect:!0,attribute:"size"})],r.prototype,"size",2),l([c({type:Number})],r.prototype,"counter",2),l([c({type:Boolean,attribute:"is-typing"})],r.prototype,"isTyping",2),r};var K=i=>{class r extends i{}return l([c({type:String,attribute:"icon-name"})],r.prototype,"iconName",2),r};var pc=[C,f`
|
555
555
|
:host {
|
556
556
|
--mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
|
557
557
|
--mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
|
@@ -674,7 +674,7 @@
|
|
674
674
|
outline: 0.125rem solid;
|
675
675
|
}
|
676
676
|
}
|
677
|
-
`],
|
677
|
+
`],gs=pc;var ys=b.constructTagName("presence"),Y={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"},B={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},Wt={TYPE:Y.ACTIVE,SIZE:B.SMALL};var xs=i=>({[D[124]]:B.XX_LARGE,[D[88]]:B.X_LARGE,[D[72]]:B.LARGE,[D[64]]:B.MIDSIZE,[D[48]]:B.SMALL,[D[32]]:B.X_SMALL,[D[24]]:B.XX_SMALL})[i]||B.X_SMALL,Es=i=>({[D[124]]:4.75,[D[88]]:3,[D[72]]:2.5,[D[64]]:2.25,[D[48]]:1.75,[D[32]]:1.25,[D[24]]:1})[i]||1.25,Ts=i=>({[D[124]]:w.HEADING_XLARGE_MEDIUM,[D[88]]:w.HEADING_LARGE_MEDIUM,[D[72]]:w.HEADING_MIDSIZE_MEDIUM,[D[64]]:w.HEADING_SMALL_MEDIUM,[D[48]]:w.HEADING_SMALL_MEDIUM,[D[32]]:w.BODY_MIDSIZE_MEDIUM,[D[24]]:w.BODY_SMALL_MEDIUM})[i]||w.BODY_MIDSIZE_MEDIUM;var Ar=class extends uo(K(g)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===X.COUNTER&&(this.counter||this.counter===0)||this.isTyping?y:this.presence?p`
|
678
678
|
<mdc-presence part="presence" type="${this.presence}" size="${xs(this.size)}"></mdc-presence>
|
679
679
|
`:y}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 p`
|
680
680
|
<img
|
@@ -698,14 +698,14 @@
|
|
698
698
|
>
|
699
699
|
${e}
|
700
700
|
</mdc-text>
|
701
|
-
`}generateCounterText(e){return e<0?"0":e>
|
701
|
+
`}generateCounterText(e){return e<0?"0":e>vi?`${vi}+`:e.toString()}generateInitialsText(e){return e.toUpperCase().slice(0,2)}generateTextContent(e){let t="";return e===X.TEXT&&this.initials&&(t=this.generateInitialsText(this.initials)),e===X.COUNTER&&(this.counter||this.counter===0)&&(t=this.generateCounterText(this.counter)),this.textTemplate(t)}getTypeBasedOnInputs(){return this.src?X.PHOTO:this.iconName?X.ICON:this.initials?X.TEXT:this.counter||this.counter===0?X.COUNTER:X.ICON}getTemplateBasedOnType(e){switch(e){case X.PHOTO:return this.photoTemplate();case X.TEXT:case X.COUNTER:return this.generateTextContent(e);case X.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?p`<div part="loading-wrapper"><div part="loader"></div></div>`:y}getPhotoPlaceHolderContent(e){return this.isPhotoLoaded?y:e===X.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():y}update(e){super.update(e),e.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let e=this.getTypeBasedOnInputs();return p`
|
702
702
|
<div part="content" aria-hidden="true">
|
703
703
|
${this.getPhotoPlaceHolderContent(e)}
|
704
704
|
${this.getTemplateBasedOnType(e)}
|
705
705
|
${this.getLoadingContent()}
|
706
706
|
${this.getPresenceTemplateBasedOnType(e)}
|
707
707
|
</div>
|
708
|
-
`}};Ar.styles=[...
|
708
|
+
`}};Ar.styles=[...g.styles,...gs],l([M()],Ar.prototype,"isPhotoLoaded",2);var gi=Ar;var hc=[C,f`
|
709
709
|
:host {
|
710
710
|
--mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
|
711
711
|
--mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
|
@@ -799,7 +799,7 @@
|
|
799
799
|
.mdc-presence-icon__scheduled {
|
800
800
|
color: var(--mdc-presence-scheduled-background-color);
|
801
801
|
}
|
802
|
-
`],As=hc;var Ss=i=>{switch(i){case Y.AWAY:return"recents-presence-badge-filled";case Y.AWAY_CALLING:return"away-calling-presence-filled";case Y.BUSY:return"busy-presence-bold";case Y.DND:return"dnd-presence-badge-filled";case Y.MEETING:return"camera-filled";case Y.ON_CALL:return"handset-filled";case Y.ON_DEVICE:return"generic-device-video-badge-filled";case Y.ON_MOBILE:return"phone-badge-filled";case Y.PAUSE:return"pause-badge-filled";case Y.PTO:return"pto-presence-filled";case Y.PRESENTING:return"share-screen-badge-filled";case Y.QUIET:return"quiet-hours-presence-filled";case Y.SCHEDULED:return"meetings-presence-badge-filled";case Y.ACTIVE:default:return"active-presence-small-filled"}};var pt=class extends
|
802
|
+
`],As=hc;var Ss=i=>{switch(i){case Y.AWAY:return"recents-presence-badge-filled";case Y.AWAY_CALLING:return"away-calling-presence-filled";case Y.BUSY:return"busy-presence-bold";case Y.DND:return"dnd-presence-badge-filled";case Y.MEETING:return"camera-filled";case Y.ON_CALL:return"handset-filled";case Y.ON_DEVICE:return"generic-device-video-badge-filled";case Y.ON_MOBILE:return"phone-badge-filled";case Y.PAUSE:return"pause-badge-filled";case Y.PTO:return"pto-presence-filled";case Y.PRESENTING:return"share-screen-badge-filled";case Y.QUIET:return"quiet-hours-presence-filled";case Y.SCHEDULED:return"meetings-presence-badge-filled";case Y.ACTIVE:default:return"active-presence-small-filled"}};var pt=class extends g{constructor(){super(...arguments);this.type=Wt.TYPE;this.size=Wt.SIZE;this.currentIconType=Wt.TYPE}get iconSize(){switch(this.size){case B.MIDSIZE:return 1.16125;case B.LARGE:return 1.30625;case B.X_LARGE:return 1.596875;case B.XX_LARGE:return 2.25;case B.XX_SMALL:case B.X_SMALL:case B.SMALL:default:return this.size=Wt.SIZE,.875}}get icon(){let e=Ss(this.type);return e==="active-presence-small-filled"&&(this.type=Wt.TYPE),e}handleOnLoad(){this.currentIconType=this.type}handleOnError(){this.onerror&&this.onerror("There was a problem while fetching the icon. Please check the icon name and try again.")}render(){return p`
|
803
803
|
<div class="mdc-presence mdc-presence__${this.size}">
|
804
804
|
<mdc-icon
|
805
805
|
class="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
|
@@ -809,16 +809,38 @@
|
|
809
809
|
@error="${this.handleOnError}"
|
810
810
|
></mdc-icon>
|
811
811
|
</div>
|
812
|
-
`}};pt.styles=[...
|
812
|
+
`}};pt.styles=[...g.styles,...As],l([c({type:String,reflect:!0})],pt.prototype,"type",2),l([c({type:String,reflect:!0})],pt.prototype,"size",2),l([M()],pt.prototype,"currentIconType",2);var yi=pt;yi.register(ys);var uc=yi;gi.register(vs);var fc=gi;var Sr=b.constructTagName("button"),Qe={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},wr={40:40,32:32,28:28,24:24},we={64:64,52:52,20:20,...wr},fo={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Yt={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},_e={VARIANT:Qe.PRIMARY,SIZE:wr[32],COLOR:fo.DEFAULT,TYPE_INTERNAL:Yt.ICON,TYPE:Ut.BUTTON};var bc=[C,f`
|
813
813
|
:host {
|
814
|
+
--mdc-avatarbutton-overlay-background-color-rest: var(--mds-color-theme-avatar-ghost);
|
815
|
+
--mdc-avatarbutton-overlay-background-color-hover: var(--mds-color-theme-avatar-hover);
|
816
|
+
--mdc-avatarbutton-overlay-background-color-active: var(--mds-color-theme-avatar-pressed);
|
814
817
|
padding: unset;
|
815
818
|
margin: unset;
|
816
819
|
outline: none;
|
817
820
|
border-radius: 0.25rem;
|
821
|
+
position: relative;
|
822
|
+
cursor: pointer;
|
823
|
+
}
|
824
|
+
:host::part(overlay) {
|
825
|
+
position: absolute;
|
826
|
+
border-radius: 100vh;
|
827
|
+
height: 100%;
|
828
|
+
width: 100%;
|
829
|
+
z-index: 1;
|
830
|
+
background-color: var(--mdc-avatarbutton-overlay-background-color-rest);
|
831
|
+
}
|
832
|
+
:host(:not([is-typing]):hover)::part(overlay) {
|
833
|
+
background-color: var(--mdc-avatarbutton-overlay-background-color-hover);
|
834
|
+
}
|
835
|
+
:host(:not([is-typing]):active)::part(overlay) {
|
836
|
+
background-color: var(--mdc-avatarbutton-overlay-background-color-active);
|
837
|
+
}
|
838
|
+
:host::part(presence) {
|
839
|
+
z-index: 2;
|
818
840
|
}
|
819
841
|
`,...N()],ws=bc;var _r=class extends uo(K(le)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role="button",this.type=_e.TYPE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(D).includes(e)?`${e}`:Gt.SIZE.toString())}render(){return p`
|
842
|
+
<div part="overlay" aria-hidden="true"></div>
|
820
843
|
<mdc-avatar
|
821
|
-
slot="prefixIcon"
|
822
844
|
?is-typing="${this.isTyping}"
|
823
845
|
counter="${A(this.counter)}"
|
824
846
|
icon-name="${A(this.iconName)}"
|
@@ -827,7 +849,7 @@
|
|
827
849
|
size="${A(this.size)}"
|
828
850
|
src="${A(this.src)}"
|
829
851
|
></mdc-avatar>
|
830
|
-
`}};_r.styles=[...ws],l([c({type:String,attribute:"aria-label"})],_r.prototype,"ariaLabel",2);var xi=_r;var _s=b.constructTagName("avatarbutton");xi.register(_s);var
|
852
|
+
`}};_r.styles=[...ws],l([c({type:String,attribute:"aria-label"})],_r.prototype,"ariaLabel",2);var xi=_r;var _s=b.constructTagName("avatarbutton");xi.register(_s);var vc=xi;var bo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ir=i=>(...r)=>({_$litDirective$:i,values:r}),qt=class{constructor(r){}get _$AU(){return this._$AM._$AU}_$AT(r,e,t){this.t=r,this._$AM=e,this.i=t}_$AS(r,e){return this.update(r,e)}update(r,e){return this.render(...e)}};var Xt=Ir(class extends qt{constructor(i){var r;if(super(i),i.type!==bo.ATTRIBUTE||i.name!=="class"||((r=i.strings)==null?void 0:r.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(r=>i[r]).join(" ")+" "}update(i,[r]){var t,o;if(this.st===void 0){this.st=new Set,i.strings!==void 0&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter(a=>a!=="")));for(let a in r)r[a]&&!((t=this.nt)!=null&&t.has(a))&&this.st.add(a);return this.render(r)}let e=i.element.classList;for(let a of this.st)a in r||(e.remove(a),this.st.delete(a));for(let a in r){let s=!!r[a];s===this.st.has(a)||(o=this.nt)!=null&&o.has(a)||(s?(e.add(a),this.st.add(a)):(e.remove(a),this.st.delete(a)))}return Oe}});var Is=b.constructTagName("badge"),ze={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},vo={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},go={PRIMARY:"primary",SECONDARY:"secondary"},kr={SUCCESS:"success",WARNING:"warning",ERROR:"error"},Pb={...go,...kr},Je={TYPE:ze.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:go.PRIMARY,ICON_SIZE:1};var gc=[C,f`
|
831
853
|
:host {
|
832
854
|
--mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
|
833
855
|
--mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
|
@@ -896,7 +918,7 @@
|
|
896
918
|
outline: 0.125rem solid;
|
897
919
|
}
|
898
920
|
}
|
899
|
-
`],
|
921
|
+
`],ks=gc;var Ie=class extends K(g){constructor(){super(...arguments);this.variant=Je.VARIANT;this.maxCounter=Je.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,t){return t===void 0||typeof t!="number"||e===0?"":t>e?`${e}+`:e>Je.MAX_COUNTER_LIMIT||t>Je.MAX_COUNTER_LIMIT?`${Je.MAX_COUNTER_LIMIT}+`:t.toString()}getBadgeIcon(e,t){return p`
|
900
922
|
<mdc-icon
|
901
923
|
class="mdc-badge-icon ${Xt({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${t}`]:!0})}"
|
902
924
|
name="${A(e)}"
|
@@ -905,12 +927,12 @@
|
|
905
927
|
`}getBadgeDot(){return p`<div class="mdc-badge-dot ${Xt({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return p`
|
906
928
|
<mdc-text
|
907
929
|
type="${w.BODY_SMALL_MEDIUM}"
|
908
|
-
tagname="${
|
930
|
+
tagname="${k.DIV}"
|
909
931
|
class="mdc-badge-text ${Xt({"mdc-badge-overlay":this.overlay})}"
|
910
932
|
>
|
911
933
|
${this.getCounterText(this.maxCounter,this.counter)}
|
912
934
|
</mdc-text>
|
913
|
-
`}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(
|
935
|
+
`}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(go).includes(this.variant)&&(this.variant=Je.VARIANT);let{iconName:e,type:t,variant:o}=this;switch(t){case ze.ICON:return this.getBadgeIcon(e||"",o);case ze.COUNTER:return this.getBadgeCounterText();case ze.SUCCESS:return this.getBadgeIcon(vo.SUCCESS_ICON_NAME,kr.SUCCESS);case ze.WARNING:return this.getBadgeIcon(vo.WARNING_ICON_NAME,kr.WARNING);case ze.ERROR:return this.getBadgeIcon(vo.ERROR_ICON_NAME,kr.ERROR);case ze.DOT:default:return this.type=ze.DOT,this.getBadgeDot()}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};Ie.styles=[...g.styles,...ks],l([c({type:String,reflect:!0})],Ie.prototype,"type",2),l([c({type:String,reflect:!0})],Ie.prototype,"variant",2),l([c({type:Number})],Ie.prototype,"counter",2),l([c({type:Number,attribute:"max-counter",reflect:!0})],Ie.prototype,"maxCounter",2),l([c({type:Boolean})],Ie.prototype,"overlay",2),l([c({type:String,attribute:"aria-label"})],Ie.prototype,"ariaLabel",2);var Ei=Ie;Ei.register(Is);var yc=Ei;var xc=f`
|
914
936
|
:host {
|
915
937
|
display: block;
|
916
938
|
height: 100%;
|
@@ -919,7 +941,7 @@
|
|
919
941
|
height: 100%;
|
920
942
|
width: 100%;
|
921
943
|
}
|
922
|
-
`,
|
944
|
+
`,Cs=[xc];var Ls=b.constructTagName("brandvisual"),Rs={NAME:void 0};var Zt=class extends g{constructor(){super(...arguments);this.name=Rs.NAME}async getBrandVisualData(){return this.name?import(`@momentum-design/brand-visuals/dist/logos/ts/${this.name}.ts`).then(e=>{this.handleBrandVisualLoadedSuccess(e.default())}).catch(e=>{this.handleBrandVisualLoadedFailure(e)}):(this.handleBrandVisualLoadedFailure(new Error("No brandvisual name provided.")),Promise.reject(new Error("No brandvisual name provided.")))}updated(e){super.updated(e),e.has("name")&&this.getBrandVisualData().catch(t=>{this.onerror&&this.onerror(t)})}handleBrandVisualLoadedSuccess(e){this.brandVisualData=e;let t=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(t)}handleBrandVisualLoadedFailure(e){let t=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(t)}render(){return p` ${this.brandVisualData} `}};Zt.styles=[...g.styles,...Cs],l([M()],Zt.prototype,"brandVisualData",2),l([c({type:String,reflect:!0})],Zt.prototype,"name",2);var Ti=Zt;Ti.register(Ls);var Ec=Ti;var Tc=f`
|
923
945
|
:host {
|
924
946
|
--mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
|
925
947
|
--mdc-bullet-size-small: 0.25rem;
|
@@ -940,7 +962,7 @@
|
|
940
962
|
:host([size="large"]) {
|
941
963
|
height: var(--mdc-bullet-size-large);
|
942
964
|
}
|
943
|
-
`,Ns=[Tc];var Os=b.constructTagName("bullet"),Ms={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var
|
965
|
+
`,Ns=[Tc];var Os=b.constructTagName("bullet"),Ms={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var Cr=class extends g{constructor(){super(...arguments);this.size=Ms.SMALL}};Cr.styles=[...g.styles,...Ns],l([c({type:String,reflect:!0})],Cr.prototype,"size",2);var Ai=Cr;Ai.register(Os);var Ac=Ai;var Sc=f`
|
944
966
|
:host {
|
945
967
|
background-color: transparent;
|
946
968
|
border-radius: 1.25rem;
|
@@ -1128,7 +1150,7 @@
|
|
1128
1150
|
length-unit="rem"
|
1129
1151
|
>
|
1130
1152
|
</mdc-icon>`:""}
|
1131
|
-
`}};ce.styles=[...le.styles,...Ds],l([c({type:String,attribute:"prefix-icon",reflect:!0})],ce.prototype,"prefixIcon",2),l([c({type:String,attribute:"postfix-icon",reflect:!0})],ce.prototype,"postfixIcon",2),l([c({type:String})],ce.prototype,"variant",2),l([c({type:Number})],ce.prototype,"size",2),l([c({type:String})],ce.prototype,"color",2),l([c({type:String,reflect:!0})],ce.prototype,"role",2),l([M()],ce.prototype,"typeInternal",2),l([M()],ce.prototype,"iconSize",2);var Rr=ce;Rr.register(Sr);var wc=Rr;var P=i=>{class r extends i{constructor(){super(...arguments);this.dataAriaLabel=null}}return l([c({type:String,reflect:!0,attribute:"data-aria-label"})],r.prototype,"dataAriaLabel",2),r};var G=[];for(let i=0;i<256;++i)G.push((i+256).toString(16).slice(1));function zs(i,r=0){return(G[i[r+0]]+G[i[r+1]]+G[i[r+2]]+G[i[r+3]]+"-"+G[i[r+4]]+G[i[r+5]]+"-"+G[i[r+6]]+G[i[r+7]]+"-"+G[i[r+8]]+G[i[r+9]]+"-"+G[i[r+10]]+G[i[r+11]]+G[i[r+12]]+G[i[r+13]]+G[i[r+14]]+G[i[r+15]]).toLowerCase()}var Si,_c=new Uint8Array(16);function wi(){if(!Si){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Si=crypto.getRandomValues.bind(crypto)}return Si(_c)}var Ic=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),_i={randomUUID:Ic};function
|
1153
|
+
`}};ce.styles=[...le.styles,...Ds],l([c({type:String,attribute:"prefix-icon",reflect:!0})],ce.prototype,"prefixIcon",2),l([c({type:String,attribute:"postfix-icon",reflect:!0})],ce.prototype,"postfixIcon",2),l([c({type:String})],ce.prototype,"variant",2),l([c({type:Number})],ce.prototype,"size",2),l([c({type:String})],ce.prototype,"color",2),l([c({type:String,reflect:!0})],ce.prototype,"role",2),l([M()],ce.prototype,"typeInternal",2),l([M()],ce.prototype,"iconSize",2);var Rr=ce;Rr.register(Sr);var wc=Rr;var P=i=>{class r extends i{constructor(){super(...arguments);this.dataAriaLabel=null}}return l([c({type:String,reflect:!0,attribute:"data-aria-label"})],r.prototype,"dataAriaLabel",2),r};var G=[];for(let i=0;i<256;++i)G.push((i+256).toString(16).slice(1));function zs(i,r=0){return(G[i[r+0]]+G[i[r+1]]+G[i[r+2]]+G[i[r+3]]+"-"+G[i[r+4]]+G[i[r+5]]+"-"+G[i[r+6]]+G[i[r+7]]+"-"+G[i[r+8]]+G[i[r+9]]+"-"+G[i[r+10]]+G[i[r+11]]+G[i[r+12]]+G[i[r+13]]+G[i[r+14]]+G[i[r+15]]).toLowerCase()}var Si,_c=new Uint8Array(16);function wi(){if(!Si){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Si=crypto.getRandomValues.bind(crypto)}return Si(_c)}var Ic=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),_i={randomUUID:Ic};function kc(i,r,e){var o,a,s;if(_i.randomUUID&&!r&&!i)return _i.randomUUID();i=i||{};let t=(s=(a=i.random)!=null?a:(o=i.rng)==null?void 0:o.call(i))!=null?s:wi();if(t.length<16)throw new Error("Random bytes length must be >= 16");if(t[6]=t[6]&15|64,t[8]=t[8]&63|128,r){if(e=e||0,e<0||e+16>r.length)throw new RangeError(`UUID byte range ${e}:${e+15} is out of buffer bounds`);for(let n=0;n<16;++n)r[e+n]=t[n];return r}return zs(t)}var Pe=kc;var Q=i=>{class r extends i{constructor(...o){super(o);this.name="";this.value="";this.internals=this.attachInternals(),this.id=`mdc-input-${Pe()}`}get form(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}setValidity(){this.inputElement&&this.internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement)}checkValidity(){return this.setValidity(),this.internals.checkValidity()}reportValidity(){return this.setValidity(),this.internals.reportValidity()}}return r.formAssociated=!0,l([c({reflect:!0,type:String})],r.prototype,"name",2),l([c({reflect:!0,type:String})],r.prototype,"value",2),l([c({reflect:!0,type:String,attribute:"validation-message"})],r.prototype,"validationMessage",2),l([De("input")],r.prototype,"inputElement",2),r};var Ps=b.constructTagName("formfieldwrapper"),H={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},V={VALIDATION:H.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id"},ht={TAGNAME:k.SPAN,TYPE:w.BODY_MIDSIZE_REGULAR,HEADER_TYPE:w.BODY_MIDSIZE_BOLD};var Cc=[C,f`
|
1132
1154
|
:host {
|
1133
1155
|
flex-direction: column;
|
1134
1156
|
align-items: flex-start;
|
@@ -1177,7 +1199,7 @@
|
|
1177
1199
|
:host([help-text-type='priority']) .mdc-help-text {
|
1178
1200
|
color: var(--mds-color-theme-text-accent-normal);
|
1179
1201
|
}
|
1180
|
-
`],Vs=
|
1202
|
+
`],Vs=Cc;var Us=i=>({[H.ERROR]:"error-legacy-badge-filled",[H.WARNING]:"warning-badge-filled",[H.SUCCESS]:"check-circle-badge-filled",[H.PRIORITY]:"priority-badge-filled",[H.DEFAULT]:""})[i]||"";var Ve=class extends ne(g){constructor(){super(...arguments);this.id="";this.helpTextType=V.VALIDATION;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?p`<label for="${this.id}" id="${V.HEADING_ID}" class="mdc-label" part="label">${this.label}</label>`:p` <mdc-text
|
1181
1203
|
id="${V.HEADING_ID}"
|
1182
1204
|
tagname="${ht.TAGNAME}"
|
1183
1205
|
type="${ht.HEADER_TYPE}"
|
@@ -1203,7 +1225,7 @@
|
|
1203
1225
|
</div>`:y}renderHelperText(){return this.helpText?p`<div class="mdc-help-text" part="mdc-help-text">
|
1204
1226
|
<slot name="help-icon">${this.renderHelpTextIcon()}</slot>
|
1205
1227
|
<slot name="help-text">${this.renderHelpText()}</slot>
|
1206
|
-
</div>`:y}};Ve.styles=[...
|
1228
|
+
</div>`:y}};Ve.styles=[...g.styles,...Vs],l([c({reflect:!0,type:String})],Ve.prototype,"label",2),l([c({type:String,reflect:!0,attribute:"required-label"})],Ve.prototype,"requiredLabel",2),l([c({type:String})],Ve.prototype,"id",2),l([c({reflect:!0,attribute:"help-text-type"})],Ve.prototype,"helpTextType",2),l([c({type:String,reflect:!0,attribute:"help-text"})],Ve.prototype,"helpText",2);var Z=Ve;var Fs=b.constructTagName("checkbox"),Ii={CHECKED:"check-bold",INDETERMINATE:"minus-bold"};var Lc=[f`
|
1207
1229
|
:host {
|
1208
1230
|
--mdc-checkbox-background-color-hover: var(--mds-color-theme-control-inactive-hover);
|
1209
1231
|
--mdc-checkbox-border-color: var(--mds-color-theme-outline-button-normal);
|
@@ -1340,7 +1362,7 @@
|
|
1340
1362
|
<div class="icon-container">${e}</div>
|
1341
1363
|
</div>
|
1342
1364
|
${this.renderLabelAndHelperText()}
|
1343
|
-
`}};ut.styles=[...Z.styles,...Bs],l([c({type:Boolean,reflect:!0})],ut.prototype,"checked",2),l([c({type:Boolean,reflect:!0})],ut.prototype,"indeterminate",2),l([c({type:Boolean,reflect:!0})],ut.prototype,"autofocus",2);var
|
1365
|
+
`}};ut.styles=[...Z.styles,...Bs],l([c({type:Boolean,reflect:!0})],ut.prototype,"checked",2),l([c({type:Boolean,reflect:!0})],ut.prototype,"indeterminate",2),l([c({type:Boolean,reflect:!0})],ut.prototype,"autofocus",2);var ki=ut;ki.register(Fs);var Rc=ki;var Nc=f`
|
1344
1366
|
:host {
|
1345
1367
|
height: 1.5rem;
|
1346
1368
|
gap: 0.25rem;
|
@@ -1477,7 +1499,7 @@
|
|
1477
1499
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
1478
1500
|
cursor: auto;
|
1479
1501
|
}
|
1480
|
-
`,Hs=[
|
1502
|
+
`,Hs=[C,Nc,...N()];var Gs=b.constructTagName("chip"),Oc={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},jt={COLOR:Oc.DEFAULT,TEXT_TYPE:w.BODY_MIDSIZE_REGULAR,TAG_NAME:k.SPAN,SIZE:yr[24],ROLE:"button"};var Kt=class extends K(le){constructor(){super(...arguments);this.color=jt.COLOR;this.label=""}connectedCallback(){super.connectedCallback(),this.role=jt.ROLE,this.size=jt.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?p`
|
1481
1503
|
<mdc-icon
|
1482
1504
|
name="${this.iconName}"
|
1483
1505
|
length-unit="rem"
|
@@ -1485,7 +1507,7 @@
|
|
1485
1507
|
`:y}render(){return p`
|
1486
1508
|
${this.renderIcon()}
|
1487
1509
|
<mdc-text type="${jt.TEXT_TYPE}" tagname="${jt.TAG_NAME}">${this.label}</mdc-text>
|
1488
|
-
`}};Kt.styles=[...v.styles,...Hs],l([c({type:String,reflect:!0})],Kt.prototype,"color",2),l([c({type:String})],Kt.prototype,"label",2);var Qt=Kt;Qt.register(Gs);var Mc=Qt;var Ce=Math.min,j=Math.max,Or=Math.round,Mr=Math.floor,ge=i=>({x:i,y:i}),Dc={left:"right",right:"left",bottom:"top",top:"bottom"},$c={start:"end",end:"start"};function xo(i,r,e){return j(i,Ce(r,e))}function ft(i,r){return typeof i=="function"?i(r):i}function Ue(i){return i.split("-")[0]}function bt(i){return i.split("-")[1]}function ki(i){return i==="x"?"y":"x"}function Eo(i){return i==="y"?"height":"width"}function et(i){return["top","bottom"].includes(Ue(i))?"y":"x"}function To(i){return ki(et(i))}function Ws(i,r,e){e===void 0&&(e=!1);let t=bt(i),o=To(i),a=Eo(o),s=o==="x"?t===(e?"end":"start")?"right":"left":t==="start"?"bottom":"top";return r.reference[a]>r.floating[a]&&(s=Nr(s)),[s,Nr(s)]}function Ys(i){let r=Nr(i);return[yo(i),r,yo(r)]}function yo(i){return i.replace(/start|end/g,r=>$c[r])}function zc(i,r,e){let t=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(i){case"top":case"bottom":return e?r?o:t:r?t:o;case"left":case"right":return r?a:s;default:return[]}}function qs(i,r,e,t){let o=bt(i),a=zc(Ue(i),e==="start",t);return o&&(a=a.map(s=>s+"-"+o),r&&(a=a.concat(a.map(yo)))),a}function Nr(i){return i.replace(/left|right|bottom|top/g,r=>Dc[r])}function Pc(i){return{top:0,right:0,bottom:0,left:0,...i}}function Li(i){return typeof i!="number"?Pc(i):{top:i,right:i,bottom:i,left:i}}function gt(i){let{x:r,y:e,width:t,height:o}=i;return{width:t,height:o,top:e,left:r,right:r+t,bottom:e+o,x:r,y:e}}function Xs(i,r,e){let{reference:t,floating:o}=i,a=et(r),s=To(r),n=Eo(s),d=Ue(r),m=a==="y",h=t.x+t.width/2-o.width/2,u=t.y+t.height/2-o.height/2,x=t[n]/2-o[n]/2,g;switch(d){case"top":g={x:h,y:t.y-o.height};break;case"bottom":g={x:h,y:t.y+t.height};break;case"right":g={x:t.x+t.width,y:u};break;case"left":g={x:t.x-o.width,y:u};break;default:g={x:t.x,y:t.y}}switch(bt(r)){case"start":g[s]-=x*(e&&m?-1:1);break;case"end":g[s]+=x*(e&&m?-1:1);break}return g}var Zs=async(i,r,e)=>{let{placement:t="bottom",strategy:o="absolute",middleware:a=[],platform:s}=e,n=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(r)),m=await s.getElementRects({reference:i,floating:r,strategy:o}),{x:h,y:u}=Xs(m,t,d),x=t,g={},E=0;for(let T=0;T<n.length;T++){let{name:_,fn:S}=n[T],{x:I,y:R,data:F,reset:z}=await S({x:h,y:u,initialPlacement:t,placement:x,strategy:o,middlewareData:g,rects:m,platform:s,elements:{reference:i,floating:r}});h=I!=null?I:h,u=R!=null?R:u,g={...g,[_]:{...g[_],...F}},z&&E<=50&&(E++,typeof z=="object"&&(z.placement&&(x=z.placement),z.rects&&(m=z.rects===!0?await s.getElementRects({reference:i,floating:r,strategy:o}):z.rects),{x:h,y:u}=Xs(m,x,d)),T=-1)}return{x:h,y:u,placement:x,strategy:o,middlewareData:g}};async function Ao(i,r){var e;r===void 0&&(r={});let{x:t,y:o,platform:a,rects:s,elements:n,strategy:d}=i,{boundary:m="clippingAncestors",rootBoundary:h="viewport",elementContext:u="floating",altBoundary:x=!1,padding:g=0}=ft(r,i),E=Li(g),_=n[x?u==="floating"?"reference":"floating":u],S=gt(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(_)))==null||e?_:_.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(n.floating)),boundary:m,rootBoundary:h,strategy:d})),I=u==="floating"?{x:t,y:o,width:s.floating.width,height:s.floating.height}:s.reference,R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(n.floating)),F=await(a.isElement==null?void 0:a.isElement(R))?await(a.getScale==null?void 0:a.getScale(R))||{x:1,y:1}:{x:1,y:1},z=gt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:n,rect:I,offsetParent:R,strategy:d}):I);return{top:(S.top-z.top+E.top)/F.y,bottom:(z.bottom-S.bottom+E.bottom)/F.y,left:(S.left-z.left+E.left)/F.x,right:(z.right-S.right+E.right)/F.x}}var js=i=>({name:"arrow",options:i,async fn(r){let{x:e,y:t,placement:o,rects:a,platform:s,elements:n,middlewareData:d}=r,{element:m,padding:h=0}=ft(i,r)||{};if(m==null)return{};let u=Li(h),x={x:e,y:t},g=To(o),E=Eo(g),T=await s.getDimensions(m),_=g==="y",S=_?"top":"left",I=_?"bottom":"right",R=_?"clientHeight":"clientWidth",F=a.reference[E]+a.reference[g]-x[g]-a.floating[E],z=x[g]-a.reference[g],se=await(s.getOffsetParent==null?void 0:s.getOffsetParent(m)),fe=se?se[R]:0;(!fe||!await(s.isElement==null?void 0:s.isElement(se)))&&(fe=n.floating[R]||a.floating[E]);let ke=F/2-z/2,xe=fe/2-T[E]/2-1,be=Ce(u[S],xe),We=Ce(u[I],xe),Ee=be,Ye=fe-T[E]-We,q=fe/2-T[E]/2+ke,Dt=xo(Ee,q,Ye),Le=!d.arrow&&bt(o)!=null&&q!==Dt&&a.reference[E]/2-(q<Ee?be:We)-T[E]/2<0,Te=Le?q<Ee?q-Ee:q-Ye:0;return{[g]:x[g]+Te,data:{[g]:Dt,centerOffset:q-Dt-Te,...Le&&{alignmentOffset:Te}},reset:Le}}});var Ks=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(r){var e,t;let{placement:o,middlewareData:a,rects:s,initialPlacement:n,platform:d,elements:m}=r,{mainAxis:h=!0,crossAxis:u=!0,fallbackPlacements:x,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:T=!0,..._}=ft(i,r);if((e=a.arrow)!=null&&e.alignmentOffset)return{};let S=Ue(o),I=et(n),R=Ue(n)===n,F=await(d.isRTL==null?void 0:d.isRTL(m.floating)),z=x||(R||!T?[Nr(n)]:Ys(n)),se=E!=="none";!x&&se&&z.push(...qs(n,T,E,F));let fe=[n,...z],ke=await Ao(r,_),xe=[],be=((t=a.flip)==null?void 0:t.overflows)||[];if(h&&xe.push(ke[S]),u){let q=Ws(o,s,F);xe.push(ke[q[0]],ke[q[1]])}if(be=[...be,{placement:o,overflows:xe}],!xe.every(q=>q<=0)){var We,Ee;let q=(((We=a.flip)==null?void 0:We.index)||0)+1,Dt=fe[q];if(Dt)return{data:{index:q,overflows:be},reset:{placement:Dt}};let Le=(Ee=be.filter(Te=>Te.overflows[0]<=0).sort((Te,qe)=>Te.overflows[1]-qe.overflows[1])[0])==null?void 0:Ee.placement;if(!Le)switch(g){case"bestFit":{var Ye;let Te=(Ye=be.filter(qe=>{if(se){let Xe=et(qe.placement);return Xe===I||Xe==="y"}return!0}).map(qe=>[qe.placement,qe.overflows.filter(Xe=>Xe>0).reduce((Xe,$l)=>Xe+$l,0)]).sort((qe,Xe)=>qe[1]-Xe[1])[0])==null?void 0:Ye[0];Te&&(Le=Te);break}case"initialPlacement":Le=n;break}if(o!==Le)return{reset:{placement:Le}}}return{}}}};async function Vc(i,r){let{placement:e,platform:t,elements:o}=i,a=await(t.isRTL==null?void 0:t.isRTL(o.floating)),s=Ue(e),n=bt(e),d=et(e)==="y",m=["left","top"].includes(s)?-1:1,h=a&&d?-1:1,u=ft(r,i),{mainAxis:x,crossAxis:g,alignmentAxis:E}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return n&&typeof E=="number"&&(g=n==="end"?E*-1:E),d?{x:g*h,y:x*m}:{x:x*m,y:g*h}}var Qs=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(r){var e,t;let{x:o,y:a,placement:s,middlewareData:n}=r,d=await Vc(r,i);return s===((e=n.offset)==null?void 0:e.placement)&&(t=n.arrow)!=null&&t.alignmentOffset?{}:{x:o+d.x,y:a+d.y,data:{...d,placement:s}}}}},Js=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(r){let{x:e,y:t,placement:o}=r,{mainAxis:a=!0,crossAxis:s=!1,limiter:n={fn:_=>{let{x:S,y:I}=_;return{x:S,y:I}}},...d}=ft(i,r),m={x:e,y:t},h=await Ao(r,d),u=et(Ue(o)),x=ki(u),g=m[x],E=m[u];if(a){let _=x==="y"?"top":"left",S=x==="y"?"bottom":"right",I=g+h[_],R=g-h[S];g=xo(I,g,R)}if(s){let _=u==="y"?"top":"left",S=u==="y"?"bottom":"right",I=E+h[_],R=E-h[S];E=xo(I,E,R)}let T=n.fn({...r,[x]:g,[u]:E});return{...T,data:{x:T.x-e,y:T.y-t,enabled:{[x]:a,[u]:s}}}}}};var en=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(r){var e,t;let{placement:o,rects:a,platform:s,elements:n}=r,{apply:d=()=>{},...m}=ft(i,r),h=await Ao(r,m),u=Ue(o),x=bt(o),g=et(o)==="y",{width:E,height:T}=a.floating,_,S;u==="top"||u==="bottom"?(_=u,S=x===(await(s.isRTL==null?void 0:s.isRTL(n.floating))?"start":"end")?"left":"right"):(S=u,_=x==="end"?"top":"bottom");let I=T-h.top-h.bottom,R=E-h.left-h.right,F=Ce(T-h[_],I),z=Ce(E-h[S],R),se=!r.middlewareData.shift,fe=F,ke=z;if((e=r.middlewareData.shift)!=null&&e.enabled.x&&(ke=R),(t=r.middlewareData.shift)!=null&&t.enabled.y&&(fe=I),se&&!x){let be=j(h.left,0),We=j(h.right,0),Ee=j(h.top,0),Ye=j(h.bottom,0);g?ke=E-2*(be!==0||We!==0?be+We:j(h.left,h.right)):fe=T-2*(Ee!==0||Ye!==0?Ee+Ye:j(h.top,h.bottom))}await d({...r,availableWidth:ke,availableHeight:fe});let xe=await s.getDimensions(n.floating);return E!==xe.width||T!==xe.height?{reset:{rects:!0}}:{}}}};function So(){return typeof window<"u"}function vt(i){return rn(i)?(i.nodeName||"").toLowerCase():"#document"}function J(i){var r;return(i==null||(r=i.ownerDocument)==null?void 0:r.defaultView)||window}function ve(i){var r;return(r=(rn(i)?i.ownerDocument:i.document)||window.document)==null?void 0:r.documentElement}function rn(i){return So()?i instanceof Node||i instanceof J(i).Node:!1}function de(i){return So()?i instanceof Element||i instanceof J(i).Element:!1}function ye(i){return So()?i instanceof HTMLElement||i instanceof J(i).HTMLElement:!1}function tn(i){return!So()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof J(i).ShadowRoot}function er(i){let{overflow:r,overflowX:e,overflowY:t,display:o}=me(i);return/auto|scroll|overlay|hidden|clip/.test(r+t+e)&&!["inline","contents"].includes(o)}function on(i){return["table","td","th"].includes(vt(i))}function Dr(i){return[":popover-open",":modal"].some(r=>{try{return i.matches(r)}catch{return!1}})}function wo(i){let r=_o(),e=de(i)?me(i):i;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!r&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!r&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(t=>(e.willChange||"").includes(t))||["paint","layout","strict","content"].some(t=>(e.contain||"").includes(t))}function an(i){let r=Fe(i);for(;ye(r)&&!yt(r);){if(wo(r))return r;if(Dr(r))return null;r=Fe(r)}return null}function _o(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function yt(i){return["html","body","#document"].includes(vt(i))}function me(i){return J(i).getComputedStyle(i)}function $r(i){return de(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function Fe(i){if(vt(i)==="html")return i;let r=i.assignedSlot||i.parentNode||tn(i)&&i.host||ve(i);return tn(r)?r.host:r}function sn(i){let r=Fe(i);return yt(r)?i.ownerDocument?i.ownerDocument.body:i.body:ye(r)&&er(r)?r:sn(r)}function Jt(i,r,e){var t;r===void 0&&(r=[]),e===void 0&&(e=!0);let o=sn(i),a=o===((t=i.ownerDocument)==null?void 0:t.body),s=J(o);if(a){let n=Io(s);return r.concat(s,s.visualViewport||[],er(o)?o:[],n&&e?Jt(n):[])}return r.concat(o,Jt(o,[],e))}function Io(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function cn(i){let r=me(i),e=parseFloat(r.width)||0,t=parseFloat(r.height)||0,o=ye(i),a=o?i.offsetWidth:e,s=o?i.offsetHeight:t,n=Or(e)!==a||Or(t)!==s;return n&&(e=a,t=s),{width:e,height:t,$:n}}function Ni(i){return de(i)?i:i.contextElement}function tr(i){let r=Ni(i);if(!ye(r))return ge(1);let e=r.getBoundingClientRect(),{width:t,height:o,$:a}=cn(r),s=(a?Or(e.width):e.width)/t,n=(a?Or(e.height):e.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!n||!Number.isFinite(n))&&(n=1),{x:s,y:n}}var Uc=ge(0);function dn(i){let r=J(i);return!_o()||!r.visualViewport?Uc:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function Fc(i,r,e){return r===void 0&&(r=!1),!e||r&&e!==J(i)?!1:r}function xt(i,r,e,t){r===void 0&&(r=!1),e===void 0&&(e=!1);let o=i.getBoundingClientRect(),a=Ni(i),s=ge(1);r&&(t?de(t)&&(s=tr(t)):s=tr(i));let n=Fc(a,e,t)?dn(a):ge(0),d=(o.left+n.x)/s.x,m=(o.top+n.y)/s.y,h=o.width/s.x,u=o.height/s.y;if(a){let x=J(a),g=t&&de(t)?J(t):t,E=x,T=Io(E);for(;T&&t&&g!==E;){let _=tr(T),S=T.getBoundingClientRect(),I=me(T),R=S.left+(T.clientLeft+parseFloat(I.paddingLeft))*_.x,F=S.top+(T.clientTop+parseFloat(I.paddingTop))*_.y;d*=_.x,m*=_.y,h*=_.x,u*=_.y,d+=R,m+=F,E=J(T),T=Io(E)}}return gt({width:h,height:u,x:d,y:m})}function Oi(i,r){let e=$r(i).scrollLeft;return r?r.left+e:xt(ve(i)).left+e}function mn(i,r,e){e===void 0&&(e=!1);let t=i.getBoundingClientRect(),o=t.left+r.scrollLeft-(e?0:Oi(i,t)),a=t.top+r.scrollTop;return{x:o,y:a}}function Bc(i){let{elements:r,rect:e,offsetParent:t,strategy:o}=i,a=o==="fixed",s=ve(t),n=r?Dr(r.floating):!1;if(t===s||n&&a)return e;let d={scrollLeft:0,scrollTop:0},m=ge(1),h=ge(0),u=ye(t);if((u||!u&&!a)&&((vt(t)!=="body"||er(s))&&(d=$r(t)),ye(t))){let g=xt(t);m=tr(t),h.x=g.x+t.clientLeft,h.y=g.y+t.clientTop}let x=s&&!u&&!a?mn(s,d,!0):ge(0);return{width:e.width*m.x,height:e.height*m.y,x:e.x*m.x-d.scrollLeft*m.x+h.x+x.x,y:e.y*m.y-d.scrollTop*m.y+h.y+x.y}}function Hc(i){return Array.from(i.getClientRects())}function Gc(i){let r=ve(i),e=$r(i),t=i.ownerDocument.body,o=j(r.scrollWidth,r.clientWidth,t.scrollWidth,t.clientWidth),a=j(r.scrollHeight,r.clientHeight,t.scrollHeight,t.clientHeight),s=-e.scrollLeft+Oi(i),n=-e.scrollTop;return me(t).direction==="rtl"&&(s+=j(r.clientWidth,t.clientWidth)-o),{width:o,height:a,x:s,y:n}}function Wc(i,r){let e=J(i),t=ve(i),o=e.visualViewport,a=t.clientWidth,s=t.clientHeight,n=0,d=0;if(o){a=o.width,s=o.height;let m=_o();(!m||m&&r==="fixed")&&(n=o.offsetLeft,d=o.offsetTop)}return{width:a,height:s,x:n,y:d}}function Yc(i,r){let e=xt(i,!0,r==="fixed"),t=e.top+i.clientTop,o=e.left+i.clientLeft,a=ye(i)?tr(i):ge(1),s=i.clientWidth*a.x,n=i.clientHeight*a.y,d=o*a.x,m=t*a.y;return{width:s,height:n,x:d,y:m}}function nn(i,r,e){let t;if(r==="viewport")t=Wc(i,e);else if(r==="document")t=Gc(ve(i));else if(de(r))t=Yc(r,e);else{let o=dn(i);t={x:r.x-o.x,y:r.y-o.y,width:r.width,height:r.height}}return gt(t)}function pn(i,r){let e=Fe(i);return e===r||!de(e)||yt(e)?!1:me(e).position==="fixed"||pn(e,r)}function qc(i,r){let e=r.get(i);if(e)return e;let t=Jt(i,[],!1).filter(n=>de(n)&&vt(n)!=="body"),o=null,a=me(i).position==="fixed",s=a?Fe(i):i;for(;de(s)&&!yt(s);){let n=me(s),d=wo(s);!d&&n.position==="fixed"&&(o=null),(a?!d&&!o:!d&&n.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||er(s)&&!d&&pn(i,s))?t=t.filter(h=>h!==s):o=n,s=Fe(s)}return r.set(i,t),t}function Xc(i){let{element:r,boundary:e,rootBoundary:t,strategy:o}=i,s=[...e==="clippingAncestors"?Dr(r)?[]:qc(r,this._c):[].concat(e),t],n=s[0],d=s.reduce((m,h)=>{let u=nn(r,h,o);return m.top=j(u.top,m.top),m.right=Ce(u.right,m.right),m.bottom=Ce(u.bottom,m.bottom),m.left=j(u.left,m.left),m},nn(r,n,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Zc(i){let{width:r,height:e}=cn(i);return{width:r,height:e}}function jc(i,r,e){let t=ye(r),o=ve(r),a=e==="fixed",s=xt(i,!0,a,r),n={scrollLeft:0,scrollTop:0},d=ge(0);if(t||!t&&!a)if((vt(r)!=="body"||er(o))&&(n=$r(r)),t){let x=xt(r,!0,a,r);d.x=x.x+r.clientLeft,d.y=x.y+r.clientTop}else o&&(d.x=Oi(o));let m=o&&!t&&!a?mn(o,n):ge(0),h=s.left+n.scrollLeft-d.x-m.x,u=s.top+n.scrollTop-d.y-m.y;return{x:h,y:u,width:s.width,height:s.height}}function Ri(i){return me(i).position==="static"}function ln(i,r){if(!ye(i)||me(i).position==="fixed")return null;if(r)return r(i);let e=i.offsetParent;return ve(i)===e&&(e=e.ownerDocument.body),e}function hn(i,r){let e=J(i);if(Dr(i))return e;if(!ye(i)){let o=Fe(i);for(;o&&!yt(o);){if(de(o)&&!Ri(o))return o;o=Fe(o)}return e}let t=ln(i,r);for(;t&&on(t)&&Ri(t);)t=ln(t,r);return t&&yt(t)&&Ri(t)&&!wo(t)?e:t||an(i)||e}var Kc=async function(i){let r=this.getOffsetParent||hn,e=this.getDimensions,t=await e(i.floating);return{reference:jc(i.reference,await r(i.floating),i.strategy),floating:{x:0,y:0,width:t.width,height:t.height}}};function Qc(i){return me(i).direction==="rtl"}var Jc={convertOffsetParentRelativeRectToViewportRelativeRect:Bc,getDocumentElement:ve,getClippingRect:Xc,getOffsetParent:hn,getElementRects:Kc,getClientRects:Hc,getDimensions:Zc,getScale:tr,isElement:de,isRTL:Qc};function ed(i,r){let e=null,t,o=ve(i);function a(){var n;clearTimeout(t),(n=e)==null||n.disconnect(),e=null}function s(n,d){n===void 0&&(n=!1),d===void 0&&(d=1),a();let{left:m,top:h,width:u,height:x}=i.getBoundingClientRect();if(n||r(),!u||!x)return;let g=Mr(h),E=Mr(o.clientWidth-(m+u)),T=Mr(o.clientHeight-(h+x)),_=Mr(m),I={rootMargin:-g+"px "+-E+"px "+-T+"px "+-_+"px",threshold:j(0,Ce(1,d))||1},R=!0;function F(z){let se=z[0].intersectionRatio;if(se!==d){if(!R)return s();se?s(!1,se):t=setTimeout(()=>{s(!1,1e-7)},1e3)}R=!1}try{e=new IntersectionObserver(F,{...I,root:o.ownerDocument})}catch{e=new IntersectionObserver(F,I)}e.observe(i)}return s(!0),a}function un(i,r,e,t){t===void 0&&(t={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:n=typeof IntersectionObserver=="function",animationFrame:d=!1}=t,m=Ni(i),h=o||a?[...m?Jt(m):[],...Jt(r)]:[];h.forEach(S=>{o&&S.addEventListener("scroll",e,{passive:!0}),a&&S.addEventListener("resize",e)});let u=m&&n?ed(m,e):null,x=-1,g=null;s&&(g=new ResizeObserver(S=>{let[I]=S;I&&I.target===m&&g&&(g.unobserve(r),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var R;(R=g)==null||R.observe(r)})),e()}),m&&!d&&g.observe(m),g.observe(r));let E,T=d?xt(i):null;d&&_();function _(){let S=xt(i);T&&(S.x!==T.x||S.y!==T.y||S.width!==T.width||S.height!==T.height)&&e(),T=S,E=requestAnimationFrame(_)}return e(),()=>{var S;h.forEach(I=>{o&&I.removeEventListener("scroll",e),a&&I.removeEventListener("resize",e)}),u==null||u(),(S=g)==null||S.disconnect(),g=null,d&&cancelAnimationFrame(E)}}var fn=Qs;var bn=Js,gn=Ks,vn=en;var yn=js;var xn=(i,r,e)=>{let t=new Map,o={platform:Jc,...e},a={...o.platform,_c:t};return Zs(i,r,{...o,platform:a})};var td=f`
|
1510
|
+
`}};Kt.styles=[...g.styles,...Hs],l([c({type:String,reflect:!0})],Kt.prototype,"color",2),l([c({type:String})],Kt.prototype,"label",2);var Qt=Kt;Qt.register(Gs);var Mc=Qt;var ke=Math.min,j=Math.max,Or=Math.round,Mr=Math.floor,ve=i=>({x:i,y:i}),Dc={left:"right",right:"left",bottom:"top",top:"bottom"},$c={start:"end",end:"start"};function xo(i,r,e){return j(i,ke(r,e))}function ft(i,r){return typeof i=="function"?i(r):i}function Ue(i){return i.split("-")[0]}function bt(i){return i.split("-")[1]}function Ci(i){return i==="x"?"y":"x"}function Eo(i){return i==="y"?"height":"width"}function et(i){return["top","bottom"].includes(Ue(i))?"y":"x"}function To(i){return Ci(et(i))}function Ws(i,r,e){e===void 0&&(e=!1);let t=bt(i),o=To(i),a=Eo(o),s=o==="x"?t===(e?"end":"start")?"right":"left":t==="start"?"bottom":"top";return r.reference[a]>r.floating[a]&&(s=Nr(s)),[s,Nr(s)]}function Ys(i){let r=Nr(i);return[yo(i),r,yo(r)]}function yo(i){return i.replace(/start|end/g,r=>$c[r])}function zc(i,r,e){let t=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(i){case"top":case"bottom":return e?r?o:t:r?t:o;case"left":case"right":return r?a:s;default:return[]}}function qs(i,r,e,t){let o=bt(i),a=zc(Ue(i),e==="start",t);return o&&(a=a.map(s=>s+"-"+o),r&&(a=a.concat(a.map(yo)))),a}function Nr(i){return i.replace(/left|right|bottom|top/g,r=>Dc[r])}function Pc(i){return{top:0,right:0,bottom:0,left:0,...i}}function Li(i){return typeof i!="number"?Pc(i):{top:i,right:i,bottom:i,left:i}}function vt(i){let{x:r,y:e,width:t,height:o}=i;return{width:t,height:o,top:e,left:r,right:r+t,bottom:e+o,x:r,y:e}}function Xs(i,r,e){let{reference:t,floating:o}=i,a=et(r),s=To(r),n=Eo(s),d=Ue(r),m=a==="y",h=t.x+t.width/2-o.width/2,u=t.y+t.height/2-o.height/2,x=t[n]/2-o[n]/2,v;switch(d){case"top":v={x:h,y:t.y-o.height};break;case"bottom":v={x:h,y:t.y+t.height};break;case"right":v={x:t.x+t.width,y:u};break;case"left":v={x:t.x-o.width,y:u};break;default:v={x:t.x,y:t.y}}switch(bt(r)){case"start":v[s]-=x*(e&&m?-1:1);break;case"end":v[s]+=x*(e&&m?-1:1);break}return v}var Zs=async(i,r,e)=>{let{placement:t="bottom",strategy:o="absolute",middleware:a=[],platform:s}=e,n=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(r)),m=await s.getElementRects({reference:i,floating:r,strategy:o}),{x:h,y:u}=Xs(m,t,d),x=t,v={},E=0;for(let T=0;T<n.length;T++){let{name:_,fn:S}=n[T],{x:I,y:R,data:F,reset:z}=await S({x:h,y:u,initialPlacement:t,placement:x,strategy:o,middlewareData:v,rects:m,platform:s,elements:{reference:i,floating:r}});h=I!=null?I:h,u=R!=null?R:u,v={...v,[_]:{...v[_],...F}},z&&E<=50&&(E++,typeof z=="object"&&(z.placement&&(x=z.placement),z.rects&&(m=z.rects===!0?await s.getElementRects({reference:i,floating:r,strategy:o}):z.rects),{x:h,y:u}=Xs(m,x,d)),T=-1)}return{x:h,y:u,placement:x,strategy:o,middlewareData:v}};async function Ao(i,r){var e;r===void 0&&(r={});let{x:t,y:o,platform:a,rects:s,elements:n,strategy:d}=i,{boundary:m="clippingAncestors",rootBoundary:h="viewport",elementContext:u="floating",altBoundary:x=!1,padding:v=0}=ft(r,i),E=Li(v),_=n[x?u==="floating"?"reference":"floating":u],S=vt(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(_)))==null||e?_:_.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(n.floating)),boundary:m,rootBoundary:h,strategy:d})),I=u==="floating"?{x:t,y:o,width:s.floating.width,height:s.floating.height}:s.reference,R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(n.floating)),F=await(a.isElement==null?void 0:a.isElement(R))?await(a.getScale==null?void 0:a.getScale(R))||{x:1,y:1}:{x:1,y:1},z=vt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:n,rect:I,offsetParent:R,strategy:d}):I);return{top:(S.top-z.top+E.top)/F.y,bottom:(z.bottom-S.bottom+E.bottom)/F.y,left:(S.left-z.left+E.left)/F.x,right:(z.right-S.right+E.right)/F.x}}var js=i=>({name:"arrow",options:i,async fn(r){let{x:e,y:t,placement:o,rects:a,platform:s,elements:n,middlewareData:d}=r,{element:m,padding:h=0}=ft(i,r)||{};if(m==null)return{};let u=Li(h),x={x:e,y:t},v=To(o),E=Eo(v),T=await s.getDimensions(m),_=v==="y",S=_?"top":"left",I=_?"bottom":"right",R=_?"clientHeight":"clientWidth",F=a.reference[E]+a.reference[v]-x[v]-a.floating[E],z=x[v]-a.reference[v],se=await(s.getOffsetParent==null?void 0:s.getOffsetParent(m)),fe=se?se[R]:0;(!fe||!await(s.isElement==null?void 0:s.isElement(se)))&&(fe=n.floating[R]||a.floating[E]);let Ce=F/2-z/2,xe=fe/2-T[E]/2-1,be=ke(u[S],xe),We=ke(u[I],xe),Ee=be,Ye=fe-T[E]-We,q=fe/2-T[E]/2+Ce,Dt=xo(Ee,q,Ye),Le=!d.arrow&&bt(o)!=null&&q!==Dt&&a.reference[E]/2-(q<Ee?be:We)-T[E]/2<0,Te=Le?q<Ee?q-Ee:q-Ye:0;return{[v]:x[v]+Te,data:{[v]:Dt,centerOffset:q-Dt-Te,...Le&&{alignmentOffset:Te}},reset:Le}}});var Ks=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(r){var e,t;let{placement:o,middlewareData:a,rects:s,initialPlacement:n,platform:d,elements:m}=r,{mainAxis:h=!0,crossAxis:u=!0,fallbackPlacements:x,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:T=!0,..._}=ft(i,r);if((e=a.arrow)!=null&&e.alignmentOffset)return{};let S=Ue(o),I=et(n),R=Ue(n)===n,F=await(d.isRTL==null?void 0:d.isRTL(m.floating)),z=x||(R||!T?[Nr(n)]:Ys(n)),se=E!=="none";!x&&se&&z.push(...qs(n,T,E,F));let fe=[n,...z],Ce=await Ao(r,_),xe=[],be=((t=a.flip)==null?void 0:t.overflows)||[];if(h&&xe.push(Ce[S]),u){let q=Ws(o,s,F);xe.push(Ce[q[0]],Ce[q[1]])}if(be=[...be,{placement:o,overflows:xe}],!xe.every(q=>q<=0)){var We,Ee;let q=(((We=a.flip)==null?void 0:We.index)||0)+1,Dt=fe[q];if(Dt)return{data:{index:q,overflows:be},reset:{placement:Dt}};let Le=(Ee=be.filter(Te=>Te.overflows[0]<=0).sort((Te,qe)=>Te.overflows[1]-qe.overflows[1])[0])==null?void 0:Ee.placement;if(!Le)switch(v){case"bestFit":{var Ye;let Te=(Ye=be.filter(qe=>{if(se){let Xe=et(qe.placement);return Xe===I||Xe==="y"}return!0}).map(qe=>[qe.placement,qe.overflows.filter(Xe=>Xe>0).reduce((Xe,$l)=>Xe+$l,0)]).sort((qe,Xe)=>qe[1]-Xe[1])[0])==null?void 0:Ye[0];Te&&(Le=Te);break}case"initialPlacement":Le=n;break}if(o!==Le)return{reset:{placement:Le}}}return{}}}};async function Vc(i,r){let{placement:e,platform:t,elements:o}=i,a=await(t.isRTL==null?void 0:t.isRTL(o.floating)),s=Ue(e),n=bt(e),d=et(e)==="y",m=["left","top"].includes(s)?-1:1,h=a&&d?-1:1,u=ft(r,i),{mainAxis:x,crossAxis:v,alignmentAxis:E}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return n&&typeof E=="number"&&(v=n==="end"?E*-1:E),d?{x:v*h,y:x*m}:{x:x*m,y:v*h}}var Qs=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(r){var e,t;let{x:o,y:a,placement:s,middlewareData:n}=r,d=await Vc(r,i);return s===((e=n.offset)==null?void 0:e.placement)&&(t=n.arrow)!=null&&t.alignmentOffset?{}:{x:o+d.x,y:a+d.y,data:{...d,placement:s}}}}},Js=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(r){let{x:e,y:t,placement:o}=r,{mainAxis:a=!0,crossAxis:s=!1,limiter:n={fn:_=>{let{x:S,y:I}=_;return{x:S,y:I}}},...d}=ft(i,r),m={x:e,y:t},h=await Ao(r,d),u=et(Ue(o)),x=Ci(u),v=m[x],E=m[u];if(a){let _=x==="y"?"top":"left",S=x==="y"?"bottom":"right",I=v+h[_],R=v-h[S];v=xo(I,v,R)}if(s){let _=u==="y"?"top":"left",S=u==="y"?"bottom":"right",I=E+h[_],R=E-h[S];E=xo(I,E,R)}let T=n.fn({...r,[x]:v,[u]:E});return{...T,data:{x:T.x-e,y:T.y-t,enabled:{[x]:a,[u]:s}}}}}};var en=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(r){var e,t;let{placement:o,rects:a,platform:s,elements:n}=r,{apply:d=()=>{},...m}=ft(i,r),h=await Ao(r,m),u=Ue(o),x=bt(o),v=et(o)==="y",{width:E,height:T}=a.floating,_,S;u==="top"||u==="bottom"?(_=u,S=x===(await(s.isRTL==null?void 0:s.isRTL(n.floating))?"start":"end")?"left":"right"):(S=u,_=x==="end"?"top":"bottom");let I=T-h.top-h.bottom,R=E-h.left-h.right,F=ke(T-h[_],I),z=ke(E-h[S],R),se=!r.middlewareData.shift,fe=F,Ce=z;if((e=r.middlewareData.shift)!=null&&e.enabled.x&&(Ce=R),(t=r.middlewareData.shift)!=null&&t.enabled.y&&(fe=I),se&&!x){let be=j(h.left,0),We=j(h.right,0),Ee=j(h.top,0),Ye=j(h.bottom,0);v?Ce=E-2*(be!==0||We!==0?be+We:j(h.left,h.right)):fe=T-2*(Ee!==0||Ye!==0?Ee+Ye:j(h.top,h.bottom))}await d({...r,availableWidth:Ce,availableHeight:fe});let xe=await s.getDimensions(n.floating);return E!==xe.width||T!==xe.height?{reset:{rects:!0}}:{}}}};function So(){return typeof window<"u"}function gt(i){return rn(i)?(i.nodeName||"").toLowerCase():"#document"}function J(i){var r;return(i==null||(r=i.ownerDocument)==null?void 0:r.defaultView)||window}function ge(i){var r;return(r=(rn(i)?i.ownerDocument:i.document)||window.document)==null?void 0:r.documentElement}function rn(i){return So()?i instanceof Node||i instanceof J(i).Node:!1}function de(i){return So()?i instanceof Element||i instanceof J(i).Element:!1}function ye(i){return So()?i instanceof HTMLElement||i instanceof J(i).HTMLElement:!1}function tn(i){return!So()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof J(i).ShadowRoot}function er(i){let{overflow:r,overflowX:e,overflowY:t,display:o}=me(i);return/auto|scroll|overlay|hidden|clip/.test(r+t+e)&&!["inline","contents"].includes(o)}function on(i){return["table","td","th"].includes(gt(i))}function Dr(i){return[":popover-open",":modal"].some(r=>{try{return i.matches(r)}catch{return!1}})}function wo(i){let r=_o(),e=de(i)?me(i):i;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!r&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!r&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(t=>(e.willChange||"").includes(t))||["paint","layout","strict","content"].some(t=>(e.contain||"").includes(t))}function an(i){let r=Fe(i);for(;ye(r)&&!yt(r);){if(wo(r))return r;if(Dr(r))return null;r=Fe(r)}return null}function _o(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function yt(i){return["html","body","#document"].includes(gt(i))}function me(i){return J(i).getComputedStyle(i)}function $r(i){return de(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function Fe(i){if(gt(i)==="html")return i;let r=i.assignedSlot||i.parentNode||tn(i)&&i.host||ge(i);return tn(r)?r.host:r}function sn(i){let r=Fe(i);return yt(r)?i.ownerDocument?i.ownerDocument.body:i.body:ye(r)&&er(r)?r:sn(r)}function Jt(i,r,e){var t;r===void 0&&(r=[]),e===void 0&&(e=!0);let o=sn(i),a=o===((t=i.ownerDocument)==null?void 0:t.body),s=J(o);if(a){let n=Io(s);return r.concat(s,s.visualViewport||[],er(o)?o:[],n&&e?Jt(n):[])}return r.concat(o,Jt(o,[],e))}function Io(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function cn(i){let r=me(i),e=parseFloat(r.width)||0,t=parseFloat(r.height)||0,o=ye(i),a=o?i.offsetWidth:e,s=o?i.offsetHeight:t,n=Or(e)!==a||Or(t)!==s;return n&&(e=a,t=s),{width:e,height:t,$:n}}function Ni(i){return de(i)?i:i.contextElement}function tr(i){let r=Ni(i);if(!ye(r))return ve(1);let e=r.getBoundingClientRect(),{width:t,height:o,$:a}=cn(r),s=(a?Or(e.width):e.width)/t,n=(a?Or(e.height):e.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!n||!Number.isFinite(n))&&(n=1),{x:s,y:n}}var Uc=ve(0);function dn(i){let r=J(i);return!_o()||!r.visualViewport?Uc:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function Fc(i,r,e){return r===void 0&&(r=!1),!e||r&&e!==J(i)?!1:r}function xt(i,r,e,t){r===void 0&&(r=!1),e===void 0&&(e=!1);let o=i.getBoundingClientRect(),a=Ni(i),s=ve(1);r&&(t?de(t)&&(s=tr(t)):s=tr(i));let n=Fc(a,e,t)?dn(a):ve(0),d=(o.left+n.x)/s.x,m=(o.top+n.y)/s.y,h=o.width/s.x,u=o.height/s.y;if(a){let x=J(a),v=t&&de(t)?J(t):t,E=x,T=Io(E);for(;T&&t&&v!==E;){let _=tr(T),S=T.getBoundingClientRect(),I=me(T),R=S.left+(T.clientLeft+parseFloat(I.paddingLeft))*_.x,F=S.top+(T.clientTop+parseFloat(I.paddingTop))*_.y;d*=_.x,m*=_.y,h*=_.x,u*=_.y,d+=R,m+=F,E=J(T),T=Io(E)}}return vt({width:h,height:u,x:d,y:m})}function Oi(i,r){let e=$r(i).scrollLeft;return r?r.left+e:xt(ge(i)).left+e}function mn(i,r,e){e===void 0&&(e=!1);let t=i.getBoundingClientRect(),o=t.left+r.scrollLeft-(e?0:Oi(i,t)),a=t.top+r.scrollTop;return{x:o,y:a}}function Bc(i){let{elements:r,rect:e,offsetParent:t,strategy:o}=i,a=o==="fixed",s=ge(t),n=r?Dr(r.floating):!1;if(t===s||n&&a)return e;let d={scrollLeft:0,scrollTop:0},m=ve(1),h=ve(0),u=ye(t);if((u||!u&&!a)&&((gt(t)!=="body"||er(s))&&(d=$r(t)),ye(t))){let v=xt(t);m=tr(t),h.x=v.x+t.clientLeft,h.y=v.y+t.clientTop}let x=s&&!u&&!a?mn(s,d,!0):ve(0);return{width:e.width*m.x,height:e.height*m.y,x:e.x*m.x-d.scrollLeft*m.x+h.x+x.x,y:e.y*m.y-d.scrollTop*m.y+h.y+x.y}}function Hc(i){return Array.from(i.getClientRects())}function Gc(i){let r=ge(i),e=$r(i),t=i.ownerDocument.body,o=j(r.scrollWidth,r.clientWidth,t.scrollWidth,t.clientWidth),a=j(r.scrollHeight,r.clientHeight,t.scrollHeight,t.clientHeight),s=-e.scrollLeft+Oi(i),n=-e.scrollTop;return me(t).direction==="rtl"&&(s+=j(r.clientWidth,t.clientWidth)-o),{width:o,height:a,x:s,y:n}}function Wc(i,r){let e=J(i),t=ge(i),o=e.visualViewport,a=t.clientWidth,s=t.clientHeight,n=0,d=0;if(o){a=o.width,s=o.height;let m=_o();(!m||m&&r==="fixed")&&(n=o.offsetLeft,d=o.offsetTop)}return{width:a,height:s,x:n,y:d}}function Yc(i,r){let e=xt(i,!0,r==="fixed"),t=e.top+i.clientTop,o=e.left+i.clientLeft,a=ye(i)?tr(i):ve(1),s=i.clientWidth*a.x,n=i.clientHeight*a.y,d=o*a.x,m=t*a.y;return{width:s,height:n,x:d,y:m}}function nn(i,r,e){let t;if(r==="viewport")t=Wc(i,e);else if(r==="document")t=Gc(ge(i));else if(de(r))t=Yc(r,e);else{let o=dn(i);t={x:r.x-o.x,y:r.y-o.y,width:r.width,height:r.height}}return vt(t)}function pn(i,r){let e=Fe(i);return e===r||!de(e)||yt(e)?!1:me(e).position==="fixed"||pn(e,r)}function qc(i,r){let e=r.get(i);if(e)return e;let t=Jt(i,[],!1).filter(n=>de(n)&>(n)!=="body"),o=null,a=me(i).position==="fixed",s=a?Fe(i):i;for(;de(s)&&!yt(s);){let n=me(s),d=wo(s);!d&&n.position==="fixed"&&(o=null),(a?!d&&!o:!d&&n.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||er(s)&&!d&&pn(i,s))?t=t.filter(h=>h!==s):o=n,s=Fe(s)}return r.set(i,t),t}function Xc(i){let{element:r,boundary:e,rootBoundary:t,strategy:o}=i,s=[...e==="clippingAncestors"?Dr(r)?[]:qc(r,this._c):[].concat(e),t],n=s[0],d=s.reduce((m,h)=>{let u=nn(r,h,o);return m.top=j(u.top,m.top),m.right=ke(u.right,m.right),m.bottom=ke(u.bottom,m.bottom),m.left=j(u.left,m.left),m},nn(r,n,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Zc(i){let{width:r,height:e}=cn(i);return{width:r,height:e}}function jc(i,r,e){let t=ye(r),o=ge(r),a=e==="fixed",s=xt(i,!0,a,r),n={scrollLeft:0,scrollTop:0},d=ve(0);if(t||!t&&!a)if((gt(r)!=="body"||er(o))&&(n=$r(r)),t){let x=xt(r,!0,a,r);d.x=x.x+r.clientLeft,d.y=x.y+r.clientTop}else o&&(d.x=Oi(o));let m=o&&!t&&!a?mn(o,n):ve(0),h=s.left+n.scrollLeft-d.x-m.x,u=s.top+n.scrollTop-d.y-m.y;return{x:h,y:u,width:s.width,height:s.height}}function Ri(i){return me(i).position==="static"}function ln(i,r){if(!ye(i)||me(i).position==="fixed")return null;if(r)return r(i);let e=i.offsetParent;return ge(i)===e&&(e=e.ownerDocument.body),e}function hn(i,r){let e=J(i);if(Dr(i))return e;if(!ye(i)){let o=Fe(i);for(;o&&!yt(o);){if(de(o)&&!Ri(o))return o;o=Fe(o)}return e}let t=ln(i,r);for(;t&&on(t)&&Ri(t);)t=ln(t,r);return t&&yt(t)&&Ri(t)&&!wo(t)?e:t||an(i)||e}var Kc=async function(i){let r=this.getOffsetParent||hn,e=this.getDimensions,t=await e(i.floating);return{reference:jc(i.reference,await r(i.floating),i.strategy),floating:{x:0,y:0,width:t.width,height:t.height}}};function Qc(i){return me(i).direction==="rtl"}var Jc={convertOffsetParentRelativeRectToViewportRelativeRect:Bc,getDocumentElement:ge,getClippingRect:Xc,getOffsetParent:hn,getElementRects:Kc,getClientRects:Hc,getDimensions:Zc,getScale:tr,isElement:de,isRTL:Qc};function ed(i,r){let e=null,t,o=ge(i);function a(){var n;clearTimeout(t),(n=e)==null||n.disconnect(),e=null}function s(n,d){n===void 0&&(n=!1),d===void 0&&(d=1),a();let{left:m,top:h,width:u,height:x}=i.getBoundingClientRect();if(n||r(),!u||!x)return;let v=Mr(h),E=Mr(o.clientWidth-(m+u)),T=Mr(o.clientHeight-(h+x)),_=Mr(m),I={rootMargin:-v+"px "+-E+"px "+-T+"px "+-_+"px",threshold:j(0,ke(1,d))||1},R=!0;function F(z){let se=z[0].intersectionRatio;if(se!==d){if(!R)return s();se?s(!1,se):t=setTimeout(()=>{s(!1,1e-7)},1e3)}R=!1}try{e=new IntersectionObserver(F,{...I,root:o.ownerDocument})}catch{e=new IntersectionObserver(F,I)}e.observe(i)}return s(!0),a}function un(i,r,e,t){t===void 0&&(t={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:n=typeof IntersectionObserver=="function",animationFrame:d=!1}=t,m=Ni(i),h=o||a?[...m?Jt(m):[],...Jt(r)]:[];h.forEach(S=>{o&&S.addEventListener("scroll",e,{passive:!0}),a&&S.addEventListener("resize",e)});let u=m&&n?ed(m,e):null,x=-1,v=null;s&&(v=new ResizeObserver(S=>{let[I]=S;I&&I.target===m&&v&&(v.unobserve(r),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var R;(R=v)==null||R.observe(r)})),e()}),m&&!d&&v.observe(m),v.observe(r));let E,T=d?xt(i):null;d&&_();function _(){let S=xt(i);T&&(S.x!==T.x||S.y!==T.y||S.width!==T.width||S.height!==T.height)&&e(),T=S,E=requestAnimationFrame(_)}return e(),()=>{var S;h.forEach(I=>{o&&I.removeEventListener("scroll",e),a&&I.removeEventListener("resize",e)}),u==null||u(),(S=v)==null||S.disconnect(),v=null,d&&cancelAnimationFrame(E)}}var fn=Qs;var bn=Js,vn=Ks,gn=en;var yn=js;var xn=(i,r,e)=>{let t=new Map,o={platform:Jc,...e},a={...o.platform,_c:t};return Zs(i,r,{...o,platform:a})};var td=f`
|
1489
1511
|
:host {
|
1490
1512
|
--mdc-popover-arrow-border-radius: 0.1875rem;
|
1491
1513
|
--mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
|
@@ -1592,7 +1614,7 @@
|
|
1592
1614
|
border-top-right-radius: var(--mdc-popover-arrow-border-radius);
|
1593
1615
|
border-bottom-left-radius: 100%;
|
1594
1616
|
}
|
1595
|
-
`,En=[td];var Tn=b.constructTagName("popover"),Be={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},zr={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Pr={TONAL:"tonal",CONTRAST:"contrast"},O={PLACEMENT:Be.BOTTOM,TRIGGER:zr.CLICK,COLOR:Pr.TONAL,OFFSET:4,VISIBLE:!1,ARROW:!1,CLOSE_BUTTON:!1,FOCUS_TRAP:!1,INTERACTIVE:!1,PREVENT_SCROLL:!1,HIDE_ON_ESCAPE:!1,HIDE_ON_BLUR:!1,HIDE_ON_CLICK_OUTSIDE:!1,FOCUS_BACK:!1,BACKDROP:!1,FLIP:!0,SIZE:!1,DELAY:"0,0",ROLE:"dialog",Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1};var An=i=>{class r extends i{constructor(...o){super(...o);this.enabledFocusTrap=O.FOCUS_TRAP;this.enabledPreventScroll=O.PREVENT_SCROLL;this.focusTrapIndex=-1;this.focusableElements=[];this.shouldWrapFocus=()=>!0;this.addEventListener("keydown",this.handleKeydown)}deactivateFocusTrap(){this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.focusTrapIndex=-1,document.body.style.overflow=""}hasNoClientRects(o){return o.getClientRects().length===0}hasZeroDimensions(o){let{width:a,height:s}=o.getBoundingClientRect(),{offsetWidth:n,offsetHeight:d}=o;return n+d+s+a===0}isNotVisible(o){return this.hasZeroDimensions(o)||this.hasNoClientRects(o)}hasHiddenStyle(o){let{display:a,opacity:s,visibility:n}=o.style;return a==="none"||s==="0"||n==="hidden"||n==="collapse"}hasComputedHidden(o){let a=getComputedStyle(o);return a.visibility==="hidden"||a.height==="0"||a.display==="none"}isHidden(o){return o.hasAttribute("hidden")||o.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(o)||this.isNotVisible(o)||this.hasComputedHidden(o)}isNotTabbable(o){return o.getAttribute("tabindex")==="-1"}isInteractiveElement(o){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(o.tagName)||o instanceof HTMLAnchorElement&&o.hasAttribute("href")||o instanceof HTMLInputElement&&o.type!=="hidden"||(o instanceof HTMLAudioElement||o instanceof HTMLVideoElement)&&o.hasAttribute("controls")||(o instanceof HTMLImageElement||o instanceof HTMLObjectElement)&&o.hasAttribute("usemap")||o.hasAttribute("tabindex")&&o.tabIndex>-1)}isFocusable(o){return this.isHidden(o)||this.isNotTabbable(o)?!1:this.isInteractiveElement(o)}findFocusable(o,a=new Set){return o instanceof HTMLElement&&this.isFocusable(o)&&a.add(o),Array.from(o.children).forEach(n=>{let d=n;this.isFocusable(d)&&a.add(d),d.shadowRoot?this.findFocusable(d.shadowRoot,a):d.tagName==="SLOT"?d.assignedElements({flatten:!0}).forEach(h=>{h instanceof HTMLElement&&this.findFocusable(h,a)}):this.findFocusable(d,a)}),[...a]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(o=0){this.focusableElements.length!==0&&(this.enabledPreventScroll&&(document.body.style.overflow="hidden"),this.focusableElements[o]&&(this.focusTrapIndex=o,this.focusableElements[o].focus()))}calculateNextIndex(o,a){let{length:s}=this.focusableElements,n=this.shouldWrapFocus();if(o===-1)return a>0?0:s-1;let d=o+a;return n?(d<0&&(d=s-1),d>=s&&(d=0)):(d<0&&(d=0),d>=s&&(d=s-1)),d}getDeepActiveElement(){var a;let o=document.activeElement||document.body;for(;o instanceof HTMLElement&&((a=o.shadowRoot)!=null&&a.activeElement);)o=o.shadowRoot.activeElement;return o||document.body}findElement(o){return this.focusableElements.findIndex(a=>this.isEqualFocusNode(o,a))}isEqualFocusNode(o,a){return o.nodeType>=0?a.isEqualNode(o)&&a===o:!1}trapFocus(o){if(this.focusableElements.length===0)return;let a=this.getDeepActiveElement(),s=this.findElement(a);o?this.focusTrapIndex=this.calculateNextIndex(s,-1):this.focusTrapIndex=this.calculateNextIndex(s,1);let n=this.focusableElements[this.focusTrapIndex];n&&n.focus()}handleKeydown(o){!this.enabledFocusTrap||!this.focusableElements.length||o.key==="Tab"&&(o.preventDefault(),this.trapFocus(o.shiftKey))}}return l([c({type:Boolean})],r.prototype,"enabledFocusTrap",2),l([c({type:Boolean})],r.prototype,"enabledPreventScroll",2),r};var Mi=class{constructor(){this.stack=[]}push(r){this.stack.push(r)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(r){this.stack=this.stack.filter(e=>e!==r)}clear(){this.stack=[]}},Et=new Mi;var Tt=class{static dispatchPopoverEvent(r,e){e.dispatchEvent(new CustomEvent(r,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowPopover(r){this.dispatchPopoverEvent("shown",r)}static onHidePopover(r){this.dispatchPopoverEvent("hidden",r)}static onCreatedPopover(r){this.dispatchPopoverEvent("created",r)}static onDestroyedPopover(r){this.dispatchPopoverEvent("destroyed",r)}};var
|
1617
|
+
`,En=[td];var Tn=b.constructTagName("popover"),Be={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},zr={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Pr={TONAL:"tonal",CONTRAST:"contrast"},O={PLACEMENT:Be.BOTTOM,TRIGGER:zr.CLICK,COLOR:Pr.TONAL,OFFSET:4,VISIBLE:!1,ARROW:!1,CLOSE_BUTTON:!1,FOCUS_TRAP:!1,INTERACTIVE:!1,PREVENT_SCROLL:!1,HIDE_ON_ESCAPE:!1,HIDE_ON_BLUR:!1,HIDE_ON_CLICK_OUTSIDE:!1,FOCUS_BACK:!1,BACKDROP:!1,FLIP:!0,SIZE:!1,DELAY:"0,0",ROLE:"dialog",Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1};var An=i=>{class r extends i{constructor(...o){super(...o);this.enabledFocusTrap=O.FOCUS_TRAP;this.enabledPreventScroll=O.PREVENT_SCROLL;this.focusTrapIndex=-1;this.focusableElements=[];this.shouldWrapFocus=()=>!0;this.addEventListener("keydown",this.handleKeydown)}deactivateFocusTrap(){this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.focusTrapIndex=-1,document.body.style.overflow=""}hasNoClientRects(o){return o.getClientRects().length===0}hasZeroDimensions(o){let{width:a,height:s}=o.getBoundingClientRect(),{offsetWidth:n,offsetHeight:d}=o;return n+d+s+a===0}isNotVisible(o){return this.hasZeroDimensions(o)||this.hasNoClientRects(o)}hasHiddenStyle(o){let{display:a,opacity:s,visibility:n}=o.style;return a==="none"||s==="0"||n==="hidden"||n==="collapse"}hasComputedHidden(o){let a=getComputedStyle(o);return a.visibility==="hidden"||a.height==="0"||a.display==="none"}isHidden(o){return o.hasAttribute("hidden")||o.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(o)||this.isNotVisible(o)||this.hasComputedHidden(o)}isNotTabbable(o){return o.getAttribute("tabindex")==="-1"}isInteractiveElement(o){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(o.tagName)||o instanceof HTMLAnchorElement&&o.hasAttribute("href")||o instanceof HTMLInputElement&&o.type!=="hidden"||(o instanceof HTMLAudioElement||o instanceof HTMLVideoElement)&&o.hasAttribute("controls")||(o instanceof HTMLImageElement||o instanceof HTMLObjectElement)&&o.hasAttribute("usemap")||o.hasAttribute("tabindex")&&o.tabIndex>-1)}isFocusable(o){return this.isHidden(o)||this.isNotTabbable(o)?!1:this.isInteractiveElement(o)}findFocusable(o,a=new Set){return o instanceof HTMLElement&&this.isFocusable(o)&&a.add(o),Array.from(o.children).forEach(n=>{let d=n;this.isFocusable(d)&&a.add(d),d.shadowRoot?this.findFocusable(d.shadowRoot,a):d.tagName==="SLOT"?d.assignedElements({flatten:!0}).forEach(h=>{h instanceof HTMLElement&&this.findFocusable(h,a)}):this.findFocusable(d,a)}),[...a]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(o=0){this.focusableElements.length!==0&&(this.enabledPreventScroll&&(document.body.style.overflow="hidden"),this.focusableElements[o]&&(this.focusTrapIndex=o,this.focusableElements[o].focus()))}calculateNextIndex(o,a){let{length:s}=this.focusableElements,n=this.shouldWrapFocus();if(o===-1)return a>0?0:s-1;let d=o+a;return n?(d<0&&(d=s-1),d>=s&&(d=0)):(d<0&&(d=0),d>=s&&(d=s-1)),d}getDeepActiveElement(){var a;let o=document.activeElement||document.body;for(;o instanceof HTMLElement&&((a=o.shadowRoot)!=null&&a.activeElement);)o=o.shadowRoot.activeElement;return o||document.body}findElement(o){return this.focusableElements.findIndex(a=>this.isEqualFocusNode(o,a))}isEqualFocusNode(o,a){return o.nodeType>=0?a.isEqualNode(o)&&a===o:!1}trapFocus(o){if(this.focusableElements.length===0)return;let a=this.getDeepActiveElement(),s=this.findElement(a);o?this.focusTrapIndex=this.calculateNextIndex(s,-1):this.focusTrapIndex=this.calculateNextIndex(s,1);let n=this.focusableElements[this.focusTrapIndex];n&&n.focus()}handleKeydown(o){!this.enabledFocusTrap||!this.focusableElements.length||o.key==="Tab"&&(o.preventDefault(),this.trapFocus(o.shiftKey))}}return l([c({type:Boolean})],r.prototype,"enabledFocusTrap",2),l([c({type:Boolean})],r.prototype,"enabledPreventScroll",2),r};var Mi=class{constructor(){this.stack=[]}push(r){this.stack.push(r)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(r){this.stack=this.stack.filter(e=>e!==r)}clear(){this.stack=[]}},Et=new Mi;var Tt=class{static dispatchPopoverEvent(r,e){e.dispatchEvent(new CustomEvent(r,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowPopover(r){this.dispatchPopoverEvent("shown",r)}static onHidePopover(r){this.dispatchPopoverEvent("hidden",r)}static onCreatedPopover(r){this.dispatchPopoverEvent("created",r)}static onDestroyedPopover(r){this.dispatchPopoverEvent("destroyed",r)}};var ko=class{constructor(r){this.arrowPixelChange=!1;this.popover=r}setupDelay(){try{let[r,e]=this.popover.delay.split(",").map(t=>{let o=parseInt(t,10);if(Number.isNaN(o)||o<0)throw new Error(`Invalid delay value: ${t}`);return o});return[r,e]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(r){let e=this.popover.renderRoot.querySelector(".popover-hover-bridge");Object.assign(e.style,{top:"",left:"",right:"",bottom:""});let t=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,o=this.popover.offsetHeight||0,a=this.popover.offsetWidth||0;if(e)switch(r.split("-")[0]){case"top":e.style.height=t,e.style.bottom=`calc(-1 * (${t}))`,e.style.left="50%",e.style.width=`${a}px`;break;case"left":e.style.height=`${o}px`,e.style.width=t,e.style.right=`calc(-1.5 * (${t}))`;break;case"right":e.style.height=`${o}px`,e.style.width=t,e.style.left=`calc(-0.5 * (${t}))`;break;case"bottom":default:e.style.height=t,e.style.top=`calc(-1 * (${t}))`,e.style.left="50%",e.style.width=`${a}px`;break}}setupAppendTo(){if(this.popover.appendTo){let r=document.getElementById(this.popover.appendTo);r&&r.appendChild(this.popover)}}setupAccessibility(){var r,e,t;this.popover.toggleAttribute("aria-modal",this.popover.interactive),this.popover.interactive&&(this.popover.ariaLabel||(this.popover.ariaLabel=((r=this.popover.triggerElement)==null?void 0:r.ariaLabel)||((e=this.popover.triggerElement)==null?void 0:e.textContent)||""),this.popover.ariaLabelledby||(this.popover.ariaLabelledby=((t=this.popover.triggerElement)==null?void 0:t.id)||""))}updateArrowStyle(r,e){var h;if(!this.popover.arrowElement)return;let t=e.split("-")[0],o={top:"bottom",right:"left",bottom:"top",left:"right"}[t],{x:a,y:s}=r,n=this.popover.arrowElement.getBoundingClientRect(),d=(h=this.popover.arrowElement.offsetParent)==null?void 0:h.getBoundingClientRect();if(!this.arrowPixelChange){let u=d!=null&&d[o]?12-Math.abs(n[o]-d[o]):0;Math.round(u)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let m=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",t),Object.assign(this.popover.arrowElement.style,{left:a!=null?`${a}px`:"",top:s!=null?`${s}px`:"",[o]:`${-this.popover.arrowElement.offsetHeight/2-m}px`})}updatePopoverStyle(r,e){Object.assign(this.popover.style,{left:`${r}px`,top:`${e}px`})}createBackdrop(){var r;if(!this.popover.backdropElement){let e=document.createElement("div");e.classList.add("popover-backdrop"),(r=this.popover.parentElement)==null||r.appendChild(e);let t=document.createElement("style");t.textContent=`
|
1596
1618
|
.popover-backdrop {
|
1597
1619
|
position: fixed;
|
1598
1620
|
top: 0;
|
@@ -1602,7 +1624,7 @@
|
|
1602
1624
|
background: transparent;
|
1603
1625
|
z-index: ${this.popover.zIndex-1};
|
1604
1626
|
}
|
1605
|
-
`,e.appendChild(t),this.popover.backdropElement=e}}};var L=class extends An(
|
1627
|
+
`,e.appendChild(t),this.popover.backdropElement=e}}};var L=class extends An(g){constructor(){super();this.id="";this.triggerID="";this.trigger=O.TRIGGER;this.placement=O.PLACEMENT;this.color=O.COLOR;this.visible=O.VISIBLE;this.offset=O.OFFSET;this.focusTrap=O.FOCUS_TRAP;this.preventScroll=O.PREVENT_SCROLL;this.showArrow=O.ARROW;this.closeButton=O.CLOSE_BUTTON;this.interactive=O.INTERACTIVE;this.delay=O.DELAY;this.hideOnEscape=O.HIDE_ON_ESCAPE;this.hideOnBlur=O.HIDE_ON_BLUR;this.hideOnOutsideClick=O.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=O.FOCUS_BACK;this.backdrop=O.BACKDROP;this.flip=O.FLIP;this.size=O.SIZE;this.zIndex=O.Z_INDEX;this.appendTo="";this.closeButtonAriaLabel=null;this.role=O.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=O.DISABLE_ARIA_EXPANDED;this.arrowElement=null;this.triggerElement=null;this.hoverTimer=null;this.isTriggerClicked=!1;this.openDelay=0;this.closeDelay=0;this.backdropElement=null;this.onOutsidePopoverClick=e=>{if(Et.peek()!==this)return;let t=!1,o=e.composedPath();t=this.contains(e.target)||o.includes(this.triggerElement);let a=this.backdropElement?o.includes(this.backdropElement):!1;(!t||a)&&this.hidePopover()};this.onEscapeKeydown=e=>{!this.visible||e.code!=="Escape"||(e.preventDefault(),this.hidePopover())};this.onPopoverFocusOut=e=>{this.contains(e.relatedTarget)||this.hidePopover()};this.startCloseDelay=()=>{if(!this.interactive)this.hidePopover();else{if(this.isTriggerClicked)return;this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay)}};this.cancelCloseDelay=()=>{this.hoverTimer&&(clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.showPopover=()=>{this.cancelCloseDelay(),setTimeout(()=>{this.visible=!0},this.openDelay)};this.hidePopover=()=>{Et.peek()===this&&setTimeout(()=>{this.visible=!1,this.isTriggerClicked=!1},this.closeDelay)};this.togglePopoverVisible=()=>{this.isTriggerClicked?this.hidePopover():(this.showPopover(),this.isTriggerClicked=!0)};this.utils=new ko(this)}async firstUpdated(e){super.firstUpdated(e),this.utils.setupAppendTo(),[this.openDelay,this.closeDelay]=this.utils.setupDelay(),this.setupTriggerListener(),this.utils.setupAccessibility(),this.style.zIndex=`${this.zIndex}`,Tt.onCreatedPopover(this),this.visible&&(this.positionPopover(),await this.handleCreatePopoverFirstUpdate())}async disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),Tt.onDestroyedPopover(this),Et.remove(this)}setupTriggerListener(){if(this.triggerID&&(this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerID}"]`),!!this.triggerElement)){if(this.trigger==="mouseenter"&&(this.interactive?this.trigger="mouseenter click":this.trigger="mouseenter focusin"),this.trigger.includes("click")&&this.triggerElement.addEventListener("click",this.togglePopoverVisible),this.trigger.includes("mouseenter")){let e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.addEventListener("mouseenter",this.showPopover),this.triggerElement.addEventListener("mouseleave",this.startCloseDelay),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),e==null||e.addEventListener("mouseenter",this.cancelCloseDelay)}this.trigger.includes("focusin")&&(this.triggerElement.addEventListener("focusin",this.showPopover),this.interactive||this.triggerElement.addEventListener("focusout",this.hidePopover)),this.addEventListener("focus-trap-exit",this.hidePopover)}}removeEventListeners(){if(!this.triggerElement)return;let e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.removeEventListener("click",this.togglePopoverVisible),this.triggerElement.removeEventListener("mouseenter",this.showPopover),this.triggerElement.removeEventListener("mouseleave",this.hidePopover),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),this.triggerElement.removeEventListener("focusin",this.showPopover),this.triggerElement.removeEventListener("focusout",this.hidePopover),e==null||e.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("focus-trap-exit",this.hidePopover)}async updated(e){if(super.updated(e),e.has("visible")){let t=e.get("visible")||!1;await this.isOpenUpdated(t,this.visible)}if(e.has("placement")&&this.setAttribute("placement",Object.values(Be).includes(this.placement)?this.placement:O.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){let o=this.trigger.split(" ").filter(a=>Object.values(zr).includes(a));this.setAttribute("trigger",o.length>0?this.trigger:O.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("color")&&this.setAttribute("color",Object.values(Pr).includes(this.color)?this.color:O.COLOR),e.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),e.has("append-to")&&this.utils.setupAppendTo(),(e.has("interactive")||e.has("aria-label")||e.has("aria-labelledby"))&&this.utils.setupAccessibility()}async isOpenUpdated(e,t){var o,a,s;e===t||!this.triggerElement||(t?(Et.peek()!==this&&Et.push(this),this.enabledFocusTrap=this.focusTrap,this.enabledPreventScroll=this.preventScroll,this.backdrop&&(this.utils.createBackdrop(),this.triggerElement.style.zIndex=`${this.zIndex}`),this.positionPopover(),await this.handleCreatePopoverFirstUpdate(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="none")),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.addEventListener("keydown",this.onEscapeKeydown),this.disableAriaExpanded||this.triggerElement.setAttribute("aria-expanded","true"),this.interactive&&this.triggerElement.setAttribute("aria-haspopup",this.triggerElement.getAttribute("aria-haspopup")||"dialog"),Tt.onShowPopover(this)):(Et.pop(),this.backdropElement&&((o=this.backdropElement)==null||o.remove(),this.backdropElement=null),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.removeEventListener("keydown",this.onEscapeKeydown),(a=this.deactivateFocusTrap)==null||a.call(this),this.disableAriaExpanded||this.triggerElement.removeAttribute("aria-expanded"),this.interactive&&this.triggerElement.removeAttribute("aria-haspopup"),this.focusBackToTrigger&&((s=this.triggerElement)==null||s.focus()),Tt.onHidePopover(this)))}async handleCreatePopoverFirstUpdate(){var e,t;this.visible&&this.interactive&&((e=this.setFocusableElements)==null||e.call(this),await this.updateComplete,(t=this.setInitialFocus)==null||t.call(this))}positionPopover(){if(!this.triggerElement)return;let e=[bn()],t=this.offset;if(this.flip&&e.push(vn()),this.size){let o=this.renderRoot.querySelector('[part="popover-content"]');e.push(gn({apply({availableHeight:a}){o&&Object.assign(o.style,{maxHeight:`${a}px`})},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){let o=this.arrowElement.offsetHeight;t=Math.sqrt(2*o**2)/2+this.offset,e.push(yn({element:this.arrowElement,padding:12}))}e.push(fn(t)),un(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:o,y:a,middlewareData:s,placement:n}=await xn(this.triggerElement,this,{placement:this.placement,middleware:e});this.utils.updatePopoverStyle(o,a),s.arrow&&this.arrowElement&&this.utils.updateArrowStyle(s.arrow,n),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(n)})}render(){return p`
|
1606
1628
|
<div class="popover-hover-bridge"></div>
|
1607
1629
|
${this.closeButton?p` <mdc-button
|
1608
1630
|
class="popover-close"
|
@@ -1616,7 +1638,7 @@
|
|
1616
1638
|
<div part="popover-content">
|
1617
1639
|
<slot></slot>
|
1618
1640
|
</div>
|
1619
|
-
`}};L.styles=[...
|
1641
|
+
`}};L.styles=[...g.styles,...En],l([c({type:String,reflect:!0})],L.prototype,"id",2),l([c({type:String,reflect:!0})],L.prototype,"triggerID",2),l([c({type:String,reflect:!0})],L.prototype,"trigger",2),l([c({type:String,reflect:!0})],L.prototype,"placement",2),l([c({type:String,reflect:!0})],L.prototype,"color",2),l([c({type:Boolean,reflect:!0})],L.prototype,"visible",2),l([c({type:Number,reflect:!0})],L.prototype,"offset",2),l([c({type:Boolean,reflect:!0,attribute:"focus-trap"})],L.prototype,"focusTrap",2),l([c({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],L.prototype,"preventScroll",2),l([c({type:Boolean,reflect:!0,attribute:"show-arrow"})],L.prototype,"showArrow",2),l([c({type:Boolean,reflect:!0,attribute:"close-button"})],L.prototype,"closeButton",2),l([c({type:Boolean,reflect:!0})],L.prototype,"interactive",2),l([c({type:String,reflect:!0})],L.prototype,"delay",2),l([c({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],L.prototype,"hideOnEscape",2),l([c({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],L.prototype,"hideOnBlur",2),l([c({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],L.prototype,"hideOnOutsideClick",2),l([c({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],L.prototype,"focusBackToTrigger",2),l([c({type:Boolean,reflect:!0})],L.prototype,"backdrop",2),l([c({type:Boolean,reflect:!0})],L.prototype,"flip",2),l([c({type:Boolean,reflect:!0})],L.prototype,"size",2),l([c({type:Number,reflect:!0,attribute:"z-index"})],L.prototype,"zIndex",2),l([c({type:String,reflect:!0,attribute:"append-to"})],L.prototype,"appendTo",2),l([c({type:String,attribute:"close-button-aria-label"})],L.prototype,"closeButtonAriaLabel",2),l([c({type:String,reflect:!0})],L.prototype,"role",2),l([c({type:String,reflect:!0,attribute:"aria-labelledby"})],L.prototype,"ariaLabelledby",2),l([c({type:String,reflect:!0,attribute:"aria-describedby"})],L.prototype,"ariaDescribedby",2),l([c({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],L.prototype,"disableAriaExpanded",2);var tt=L;var Sn=b.constructTagName("coachmark"),At={COLOR:Pr.CONTRAST,TRIGGER:zr.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var St=class extends tt{constructor(){super(...arguments);this.trigger=At.TRIGGER;this.showArrow=At.ARROW;this.closeButton=At.CLOSE_BUTTON;this.disableAriaExpanded=At.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=At.COLOR,this.showArrow=At.ARROW}};l([c({type:String,reflect:!0})],St.prototype,"trigger",2),l([c({type:Boolean,attribute:"show-arrow"})],St.prototype,"showArrow",2),l([c({type:Boolean,reflect:!0,attribute:"close-button"})],St.prototype,"closeButton",2),l([c({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],St.prototype,"disableAriaExpanded",2);var Di=St;Di.register(Sn);var rd=Di;var wn=b.constructTagName("divider"),Vr={HORIZONTAL:"horizontal",VERTICAL:"vertical"},$i={SOLID:"solid",GRADIENT:"gradient"},rt={POSITIVE:"positive",NEGATIVE:"negative"},Ur={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},wt={ORIENTATION:Vr.HORIZONTAL,VARIANT:$i.SOLID,ARROW_DIRECTION:rt.NEGATIVE,BUTTON_DIRECTION:rt.NEGATIVE};var od=[C,f`
|
1620
1642
|
:host {
|
1621
1643
|
--mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
|
1622
1644
|
--mdc-divider-width: 0.0625rem;
|
@@ -1827,11 +1849,11 @@
|
|
1827
1849
|
font-size: var(--mdc-divider-text-size);
|
1828
1850
|
line-height: var(--mdc-divider-text-line-height);
|
1829
1851
|
}
|
1830
|
-
`],_n=od;var ot=class extends
|
1852
|
+
`],_n=od;var ot=class extends g{constructor(){super(...arguments);this.orientation=wt.ORIENTATION;this.variant=wt.VARIANT;this.arrowDirection=wt.ARROW_DIRECTION;this.buttonPosition=wt.BUTTON_DIRECTION}setVariant(e){this.setAttribute("variant",Object.values($i).includes(e)?e:wt.VARIANT)}setOrientation(e){this.setAttribute("orientation",Object.values(Vr).includes(e)?e:wt.ORIENTATION)}ensureValidDirections(){let e=this.orientation===Vr.HORIZONTAL?rt.NEGATIVE:rt.POSITIVE;Object.values(rt).includes(this.buttonPosition)||(this.buttonPosition=e),Object.values(rt).includes(this.arrowDirection)||(this.arrowDirection=e)}setGrabberButton(){this.ensureValidDirections();let e=this.querySelector("mdc-button");if(e){let t=this.getArrowIcon();e.setAttribute("variant","secondary"),e.setAttribute("prefix-icon",t)}}getArrowIcon(){let e=this.orientation===Vr.HORIZONTAL,t=this.arrowDirection===rt.POSITIVE;return e?t?Ur.UP:Ur.DOWN:t?Ur.RIGHT:Ur.LEFT}update(e){super.update(e),e.has("orientation")&&this.setOrientation(this.orientation),e.has("variant")&&this.setVariant(this.variant),(e.has("orientation")||e.has("arrowDirection")||e.has("buttonPosition"))&&this.setGrabberButton()}inferDividerType(){var s;let e=(s=this.shadowRoot)==null?void 0:s.querySelector("slot"),t=(e==null?void 0:e.assignedElements({flatten:!0}))||[];if(t.length>1)return;let o=t.some(n=>n.tagName===xr.toUpperCase()),a=t.some(n=>n.tagName===Sr.toUpperCase());o&&!a?this.setAttribute("data-type","mdc-text-divider"):!o&&a&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return p`
|
1831
1853
|
<div></div>
|
1832
1854
|
<slot @slotchange=${this.inferDividerType}></slot>
|
1833
1855
|
<div></div>
|
1834
|
-
`}};ot.styles=[...
|
1856
|
+
`}};ot.styles=[...g.styles,..._n],l([c({type:String,reflect:!0})],ot.prototype,"orientation",2),l([c({type:String,reflect:!0})],ot.prototype,"variant",2),l([c({type:String,attribute:"arrow-direction",reflect:!0})],ot.prototype,"arrowDirection",2),l([c({type:String,attribute:"button-position",reflect:!0})],ot.prototype,"buttonPosition",2);var zi=ot;zi.register(wn);var id=zi;var ad=f`
|
1835
1857
|
:host([selected]){
|
1836
1858
|
border: 2px solid;
|
1837
1859
|
--mdc-chip-background-color: var(--mds-color-theme-background-label-default-active);
|
@@ -1851,7 +1873,7 @@
|
|
1851
1873
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
1852
1874
|
cursor: auto;
|
1853
1875
|
}
|
1854
|
-
`,In=[ad];var
|
1876
|
+
`,In=[ad];var kn=b.constructTagName("filterchip"),Pi={ICON_NAME:"check-bold",COLOR:"default"};var Fr=class extends Qt{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=Pi.COLOR}setSelected(e){e?(this.iconName=Pi.ICON_NAME,this.setAttribute("aria-pressed","true")):(this.iconName=void 0,this.setAttribute("aria-pressed","false"))}executeAction(){this.selected=!this.selected}update(e){super.update(e),e.has("selected")&&this.setSelected(this.selected)}};Fr.styles=[...Qt.styles,...In],l([c({type:Boolean,reflect:!0})],Fr.prototype,"selected",2);var Vi=Fr;Vi.register(kn);var sd=Vi;var Cn=b.constructTagName("formfieldgroup"),Ui={RADIOGROUP:"radiogroup",GROUP:"group"};var nd=f`
|
1855
1877
|
|
1856
1878
|
:host::part(container) {
|
1857
1879
|
display: flex;
|
@@ -1868,7 +1890,7 @@
|
|
1868
1890
|
:host::part(label-text){
|
1869
1891
|
font-weight: bold;
|
1870
1892
|
}
|
1871
|
-
`,Ln=[nd];var
|
1893
|
+
`,Ln=[nd];var Co=class extends P(Z){constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){super.connectedCallback(),this.shouldRenderLabel=!1,this.id="",this.helpTextType=void 0,this.disabled=void 0}render(){var e;return p`
|
1872
1894
|
<div
|
1873
1895
|
part="container"
|
1874
1896
|
role="${this.isRadio?Ui.RADIOGROUP:Ui.GROUP}"
|
@@ -1882,7 +1904,7 @@
|
|
1882
1904
|
</div>
|
1883
1905
|
<slot></slot>
|
1884
1906
|
</div>
|
1885
|
-
`}};
|
1907
|
+
`}};Co.styles=[...Z.styles,...Ln];var Fi=Co;Fi.register(Cn);var Lo=Fi;Er.register(co);var ld=Er;var cd=[f`
|
1886
1908
|
:host{
|
1887
1909
|
--mdc-input-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
|
1888
1910
|
--mdc-input-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -1998,7 +2020,7 @@
|
|
1998
2020
|
opacity: 0;
|
1999
2021
|
pointer-events: none;
|
2000
2022
|
}
|
2001
|
-
`,...N(!0)],Rn=cd;Z.register(Ps);var pe=Z;var Nn=b.constructTagName("input"),Ro={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},Bi={OFF:"off",ON:"on"},Hi={TEXT:"text",SEARCH:"search"},On={MAX_LENGTH:10,VALIDATION:H.ERROR},He={VALIDATION:H.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Qe.TERTIARY,CLEAR_BUTTON_SIZE:we[20],PREFIX_TEXT_TYPE:w.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:
|
2023
|
+
`,...N(!0)],Rn=cd;Z.register(Ps);var pe=Z;var Nn=b.constructTagName("input"),Ro={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},Bi={OFF:"off",ON:"on"},Hi={TEXT:"text",SEARCH:"search"},On={MAX_LENGTH:10,VALIDATION:H.ERROR},He={VALIDATION:H.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Qe.TERTIARY,CLEAR_BUTTON_SIZE:we[20],PREFIX_TEXT_TYPE:w.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:k.SPAN,AUTO_COMPLETE:Bi.OFF,INPUT_TYPE:Hi.TEXT};var U=class extends Q(P(pe)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=Ro.OFF;this.autocomplete=Bi.OFF;this.autofocus=!1;this.clearAriaLabel=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.inputElement.checkValidity(),this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(e=>{this.onerror&&this.onerror(e)})}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setInputValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&this.handleValueChange()}setInputValidity(){this.requiredLabel&&this.validationMessage&&this.value===""?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()}attributeChangedCallback(e,t,o){super.attributeChangedCallback(e,t,o),["maxlength","minlength","pattern","required"].includes(e)&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(s=>{this.onerror&&this.onerror(s)})}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value)}onInput(){this.updateValue(),this.setInputValidity()}onChange(e){this.updateValue(),this.setInputValidity();let t=e.constructor;this.dispatchEvent(new t(e.type,e))}handleKeyDown(e){var t;e.key==="Enter"&&((t=this.form)==null||t.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?p`
|
2002
2024
|
<mdc-icon
|
2003
2025
|
class="leading-icon"
|
2004
2026
|
part="leading-icon"
|
@@ -2092,7 +2114,7 @@
|
|
2092
2114
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
2093
2115
|
cursor: auto;
|
2094
2116
|
}
|
2095
|
-
`,Mn=[
|
2117
|
+
`,Mn=[C,md];var Dn=b.constructTagName("inputchip"),No={TEXT_TYPE:w.BODY_MIDSIZE_REGULAR,TAG_NAME:k.SPAN,CLOSE_ICON:"cancel-bold"};var _t=class extends K(ne(g)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderIcon(){return this.iconName?p`
|
2096
2118
|
<mdc-icon
|
2097
2119
|
name="${this.iconName}"
|
2098
2120
|
length-unit="rem"
|
@@ -2109,7 +2131,7 @@
|
|
2109
2131
|
size="20"
|
2110
2132
|
@click="${this.handleClose}"
|
2111
2133
|
></mdc-button>
|
2112
|
-
`}};_t.styles=[...
|
2134
|
+
`}};_t.styles=[...g.styles,...Mn],l([c({type:String})],_t.prototype,"label",2),l([c({type:Boolean})],_t.prototype,"error",2),l([c({type:String,attribute:"clear-aria-label"})],_t.prototype,"clearAriaLabel",2);var Gi=_t;Gi.register(Dn);var pd=Gi;var $n=b.constructTagName("link"),Oo={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Mo={LARGE:1,MIDSIZE:.875,SMALL:.75},Do={INLINE:!1,INVERTED:!1,LINK_SIZE:Oo.LARGE};var hd=[C,f`
|
2113
2135
|
|
2114
2136
|
:host {
|
2115
2137
|
|
@@ -2232,20 +2254,20 @@
|
|
2232
2254
|
:host(:active)::part(link-container) {
|
2233
2255
|
box-shadow: none;
|
2234
2256
|
}
|
2235
|
-
`],zn=hd;var It=class extends ne(K(
|
2257
|
+
`],zn=hd;var It=class extends ne(K(g)){constructor(){super(...arguments);this.inline=Do.INLINE;this.inverted=Do.INVERTED;this.size=Do.LINK_SIZE;this.prevTabindex=null}getIconSize(){switch(this.size){case Oo.SMALL:return Mo.SMALL;case Oo.MIDSIZE:return Mo.MIDSIZE;default:return Mo.LARGE}}setDisabled(e){e?(this.prevTabindex=this.hasAttribute("tabindex")?this.tabIndex:null,this.tabIndex=-1,this.setAttribute("aria-disabled","true")):this.prevTabindex===null?(this.removeAttribute("tabindex"),this.removeAttribute("aria-disabled")):(this.tabIndex=this.prevTabindex,this.removeAttribute("aria-disabled"))}updateTrailingIcon(){var o,a;let e=(a=(o=this.shadowRoot)==null?void 0:o.querySelector("slot"))==null?void 0:a.assignedElements({flatten:!0}).find(s=>s.tagName==="A"),t=this.getIconSize();if(this.iconName&&e){let s=document.createElement("mdc-icon");s.setAttribute("name",this.iconName),s.setAttribute("size",`${t}`),s.setAttribute("length-unit","rem"),e.appendChild(s)}}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this.disabled)}render(){return p`
|
2236
2258
|
<div part='link-container' class='mdc-focus-ring'>
|
2237
2259
|
<slot @slotchange=${this.updateTrailingIcon}></slot>
|
2238
2260
|
</div>
|
2239
|
-
`}};It.styles=[...
|
2261
|
+
`}};It.styles=[...g.styles,...zn],l([c({type:Boolean,reflect:!0})],It.prototype,"inline",2),l([c({type:Boolean,reflect:!0})],It.prototype,"inverted",2),l([c({type:String,reflect:!0})],It.prototype,"size",2);var Wi=It;Wi.register($n);var ud=Wi;var $o=b.constructTagName("listitem"),Yi={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},Pn={VARIANT:Yi.FULL_WIDTH};var Vn=b.constructTagName("list"),qi="header-id";var fd=f`
|
2240
2262
|
:host::part(header-text) {
|
2241
2263
|
padding: 0.5rem 0.75rem;
|
2242
2264
|
}
|
2243
|
-
`,Un=[fd];var $={ARROW_DOWN:"ArrowDown",ARROW_UP:"ArrowUp",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SPACE:" "};var or=class extends P(
|
2265
|
+
`,Un=[fd];var $={ARROW_DOWN:"ArrowDown",ARROW_UP:"ArrowUp",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SPACE:" "};var or=class extends P(g){constructor(){super(),this.addEventListener("keydown",this.handleKeyDown)}handleKeyDown(r){var o;let e=this.getCurrentIndex(r.target),t=this.getNewIndexBasedOnKey(r.key,e,this.listItems.length);t!==void 0&&((o=this.listItems[t])==null||o.focus(),this.resetTabIndexAndSetActiveTabIndex(t))}getCurrentIndex(r){return this.listItems.findIndex(e=>e===r||e===r.parentElement)}getNewIndexBasedOnKey(r,e,t){switch(r){case $.ARROW_DOWN:return(e+1)%t;case $.ARROW_UP:return(e-1+t)%t;case $.HOME:return 0;case $.END:return t-1;default:return}}handleMouseClick(r){let e=this.getCurrentIndex(r.target);this.resetTabIndexAndSetActiveTabIndex(e)}resetTabIndexAndSetActiveTabIndex(r){this.listItems.forEach((e,t)=>{let o=r===t?"0":"-1";e==null||e.setAttribute("tabindex",o)})}firstUpdated(){this.resetTabIndexAndSetActiveTabIndex(0)}render(){var e;let r=this.headerText?p`
|
2244
2266
|
<mdc-text
|
2245
2267
|
id="${qi}"
|
2246
2268
|
part="header-text"
|
2247
2269
|
type="${w.BODY_MIDSIZE_BOLD}"
|
2248
|
-
tagname="${
|
2270
|
+
tagname="${k.SPAN}"
|
2249
2271
|
>${this.headerText}</mdc-text>
|
2250
2272
|
`:y;return p`
|
2251
2273
|
<div
|
@@ -2256,7 +2278,7 @@
|
|
2256
2278
|
${r}
|
2257
2279
|
<slot role="presentation" @click="${this.handleMouseClick}"></slot>
|
2258
2280
|
</div>
|
2259
|
-
`}};or.styles=[...
|
2281
|
+
`}};or.styles=[...g.styles,...Un],l([te({selector:$o})],or.prototype,"listItems",2),l([c({type:String,attribute:"header-text",reflect:!0})],or.prototype,"headerText",2);var Xi=or;Xi.register(Vn);var bd=Xi;var vd=f`
|
2260
2282
|
:host {
|
2261
2283
|
--mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
|
2262
2284
|
--mdc-listitem-background-color-hover: var(--mds-color-theme-background-primary-hover);
|
@@ -2326,9 +2348,9 @@
|
|
2326
2348
|
display: flex;
|
2327
2349
|
flex-direction: row;
|
2328
2350
|
}
|
2329
|
-
`,Fn=[
|
2351
|
+
`,Fn=[vd,...N()];var he=class extends P(ne(lo(g))){constructor(){super(...arguments);this.variant=Pn.VARIANT}connectedCallback(){super.connectedCallback(),this.role=this.role||"listitem"}getText(e,t,o){return o?p`
|
2330
2352
|
<slot name="${e}">
|
2331
|
-
<mdc-text part="${e}" type="${t}" tagname="${
|
2353
|
+
<mdc-text part="${e}" type="${t}" tagname="${k.SPAN}">${o}</mdc-text>
|
2332
2354
|
</slot>
|
2333
2355
|
`:y}disableSlottedChildren(e){[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(t=>{e?t.setAttribute("disabled",""):t.removeAttribute("disabled")})}update(e){super.update(e),e.has("disabled")&&(this.tabIndex=this.disabled?-1:0,this.disableSlottedChildren(this.disabled))}render(){return p`
|
2334
2356
|
<div part="leading">
|
@@ -2346,7 +2368,7 @@
|
|
2346
2368
|
</div>
|
2347
2369
|
<slot name="trailing-controls"></slot>
|
2348
2370
|
</div>
|
2349
|
-
`}};he.styles=[...
|
2371
|
+
`}};he.styles=[...g.styles,...Fn],l([te({slot:"leading-controls"})],he.prototype,"leadingControlsSlot",2),l([te({slot:"trailing-controls"})],he.prototype,"trailingControlsSlot",2),l([c({type:String,reflect:!0})],he.prototype,"variant",2),l([c({type:String,reflect:!0})],he.prototype,"label",2),l([c({type:String,reflect:!0,attribute:"secondary-label"})],he.prototype,"secondaryLabel",2),l([c({type:String,reflect:!0,attribute:"tertiary-label"})],he.prototype,"tertiaryLabel",2),l([c({type:String,reflect:!0,attribute:"side-header-text"})],he.prototype,"sideHeaderText",2),l([c({type:String,reflect:!0,attribute:"subline-text"})],he.prototype,"sublineText",2);var ir=he;ir.register($o);var gd=ir;var yd=f`
|
2350
2372
|
:host {
|
2351
2373
|
--mdc-marker-width: 0.25rem;
|
2352
2374
|
--mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
|
@@ -2371,7 +2393,7 @@
|
|
2371
2393
|
var(--mdc-marker-striped-background-color) 0.375rem
|
2372
2394
|
);
|
2373
2395
|
}
|
2374
|
-
`,Bn=[yd];var Hn=b.constructTagName("marker"),Gn={SOLID:"solid",STRIPED:"striped"};var Br=class extends
|
2396
|
+
`,Bn=[yd];var Hn=b.constructTagName("marker"),Gn={SOLID:"solid",STRIPED:"striped"};var Br=class extends g{constructor(){super(...arguments);this.variant=Gn.SOLID}};Br.styles=[...g.styles,...Bn],l([c({type:String,reflect:!0})],Br.prototype,"variant",2);var Zi=Br;Zi.register(Hn);var xd=Zi;var zo=b.constructTagName("optgroup"),ji="header-id";var Ed=f`
|
2375
2397
|
:host {
|
2376
2398
|
--mdc-optgroup-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
2377
2399
|
}
|
@@ -2384,12 +2406,12 @@
|
|
2384
2406
|
color: var(--mdc-optgroup-disabled-color);
|
2385
2407
|
cursor: default;
|
2386
2408
|
}
|
2387
|
-
`,Wn=[Ed];var ar=class extends P(ne(
|
2409
|
+
`,Wn=[Ed];var ar=class extends P(ne(g)){setDisabledForAllOptions(){this.options.forEach(r=>{this.disabled?r.setAttribute("disabled",""):r.removeAttribute("disabled")})}updated(r){super.updated(r),r.has("disabled")&&this.setDisabledForAllOptions()}render(){var e;let r=this.label?p`
|
2388
2410
|
<mdc-text
|
2389
2411
|
id="${ji}"
|
2390
2412
|
part="header-text"
|
2391
2413
|
type="${w.BODY_MIDSIZE_BOLD}"
|
2392
|
-
tagname="${
|
2414
|
+
tagname="${k.SPAN}"
|
2393
2415
|
>${this.label}</mdc-text>
|
2394
2416
|
`:y;return p`
|
2395
2417
|
<div
|
@@ -2400,7 +2422,7 @@
|
|
2400
2422
|
${r}
|
2401
2423
|
<slot role="presentation"></slot>
|
2402
2424
|
</div>
|
2403
|
-
`}};ar.styles=[...
|
2425
|
+
`}};ar.styles=[...g.styles,...Wn],l([c({type:String,reflect:!0})],ar.prototype,"label",2),l([te({selector:"mdc-option"})],ar.prototype,"options",2);var Ki=ar;Ki.register(zo);var Td=Ki;var Po=b.constructTagName("tooltip"),ie={DESCRIPTION:"description",LABEL:"label",NONE:"none"},it={BACKDROP:!1,DELAY:"0,0",OFFSET:4,PLACEMENT:Be.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:ie.DESCRIPTION};var Ad=f`
|
2404
2426
|
|
2405
2427
|
:host {
|
2406
2428
|
--mdc-tooltip-max-width: 400px;
|
@@ -2425,7 +2447,7 @@
|
|
2425
2447
|
:host([color='contrast'])::part(popover-content) {
|
2426
2448
|
color: var(--mdc-tooltip-text-color-contrast);
|
2427
2449
|
}
|
2428
|
-
`,Yn=[Ad];var sr=class extends tt{constructor(){super(...arguments);this.tooltipType=it.TOOLTIP_TYPE}connectedCallback(){super.connectedCallback(),this.backdrop=!1,this.delay=it.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=it.OFFSET,this.placement=it.PLACEMENT,this.role="tooltip",this.
|
2450
|
+
`,Yn=[Ad];var sr=class extends tt{constructor(){super(...arguments);this.tooltipType=it.TOOLTIP_TYPE}connectedCallback(){super.connectedCallback(),this.backdrop=!1,this.delay=it.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=it.OFFSET,this.placement=it.PLACEMENT,this.role="tooltip",this.trigger="mouseenter focusin",this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.flip=!0,this.focusTrap=!1,this.preventScroll=!1,this.closeButton=!1,this.hideOnOutsideClick=!1,this.focusBackToTrigger=!1,this.size=!1,this.disableAriaExpanded=!0}getTooltipText(){var e,t;return((t=(e=this.defaultSlotNodes)==null?void 0:e.map(o=>o.textContent).join(" "))==null?void 0:t.trim())||""}setTooltipType(e){this.setAttribute("tooltip-type",Object.values(ie).includes(e)?e:it.TOOLTIP_TYPE)}onIdUpdated(){this.id.length===0&&(this.id=`mdc-tooltip-${Pe()}`);let e=document.getElementById(this.triggerID);if(e)switch(this.tooltipType){case ie.DESCRIPTION:e.setAttribute("aria-describedby",this.id);break;case ie.LABEL:e.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(Be).includes(this.placement)||(this.placement=it.PLACEMENT)}onTooltipTypeUpdated(e){let t=e.get("tooltipType");Object.values(ie).includes(this.tooltipType)||this.setTooltipType(it.TOOLTIP_TYPE);let o=document.getElementById(this.triggerID);if(o){let a=this.getTooltipText();switch(this.tooltipType){case ie.DESCRIPTION:t===ie.LABEL&&o.removeAttribute("aria-labelledby"),o.setAttribute("aria-describedby",this.id);break;case ie.LABEL:t===ie.DESCRIPTION&&o.removeAttribute("aria-describedby"),o.setAttribute("aria-labelledby",this.id);break;default:t===ie.DESCRIPTION?o.removeAttribute("aria-describedby"):t===ie.LABEL&&o.removeAttribute("aria-labelledby");break}a.length>0&&this.tooltipType!==ie.NONE&&!this.ariaLabel&&(this.ariaLabel=a)}}update(e){super.update(e),e.has("id")&&this.onIdUpdated(),e.has("placement")&&this.onPlacementUpdated(),e.has("tooltipType")&&this.onTooltipTypeUpdated(e)}};sr.styles=[...tt.styles,...Yn],l([c({type:String,attribute:"tooltip-type",reflect:!0})],sr.prototype,"tooltipType",2),l([qa()],sr.prototype,"defaultSlotNodes",2);var Qi=sr;Qi.register(Po);var Sd=Qi;var qn="check-bold",Ji="dynamic-option-tooltip-popover",Hr=b.constructTagName("option");var wd=f`
|
2429
2451
|
:host {
|
2430
2452
|
--mdc-option-icon-width: 1rem;
|
2431
2453
|
|
@@ -2454,7 +2476,7 @@
|
|
2454
2476
|
text-overflow: ellipsis;
|
2455
2477
|
white-space: nowrap;
|
2456
2478
|
}
|
2457
|
-
`,Xn=[wd];var
|
2479
|
+
`,Xn=[wd];var kt=class extends Q(ir){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role="option",this.variant=Yi.INSET_RECTANGLE,this.updateAttribute("aria-selected",`${this.selected}`),this.updateAttribute("aria-disabled",`${!!this.disabled}`),this.name=void 0,this.secondaryLabel=void 0,this.sideHeaderText=void 0,this.sublineText=void 0,this.dataAriaLabel=void 0,this.addEventListener("focusin",this.displayTooltipForLongText),this.addEventListener("mouseover",this.displayTooltipForLongText),this.addEventListener("focusout",this.hideTooltipOnLeave),this.addEventListener("mouseout",this.hideTooltipOnLeave),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",this.displayTooltipForLongText),this.removeEventListener("mouseover",this.displayTooltipForLongText),this.removeEventListener("focusout",this.hideTooltipOnLeave),this.removeEventListener("mouseout",this.hideTooltipOnLeave),this.removeEventListener("click",this.handleClick)}handleClick(){this.hideTooltipOnLeave()}displayTooltipForLongText(e){var s,n;let t=(s=e.target.shadowRoot)==null?void 0:s.querySelector('[part="leading-text-primary-label"]');if(t&&t.scrollWidth&&t.clientWidth&&t.scrollWidth<=(t==null?void 0:t.clientWidth))return;let o=document.createElement(Po);o.id=Ji,o.textContent=(n=this.label)!=null?n:"",o.setAttribute("triggerid",this.id),o.setAttribute("visible","");let a=this.closest("mdc-select")||this.parentElement;a==null||a.after(o)}hideTooltipOnLeave(){let e=document.querySelector(`#${Ji}`);e==null||e.remove()}handleDefaultSlotChange(){var t,o,a;let e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e&&!this.label&&(this.label=(a=(o=e.assignedNodes()[0])==null?void 0:o.textContent)==null?void 0:a.trim())}updateAttribute(e,t){this.setAttribute(e,t)}update(e){super.update(e),e.has("disabled")&&this.updateAttribute("aria-disabled",`${this.disabled}`),e.has("selected")&&this.updateAttribute("aria-selected",`${this.selected}`)}render(){let e=this.prefixIcon?p`
|
2458
2480
|
<div part="leading-icon">
|
2459
2481
|
<mdc-icon slot="leading-controls" name="${A(this.prefixIcon)}"></mdc-icon>
|
2460
2482
|
</div>
|
@@ -2469,7 +2491,7 @@
|
|
2469
2491
|
${t}
|
2470
2492
|
</div>
|
2471
2493
|
<slot part="default-slot" @slotchange="${this.handleDefaultSlotChange}"></slot>
|
2472
|
-
`}};
|
2494
|
+
`}};kt.styles=[...ir.styles,...Xn],l([c({type:Boolean,reflect:!0})],kt.prototype,"selected",2),l([c({type:String,reflect:!0,attribute:"prefix-icon"})],kt.prototype,"prefixIcon",2),l([c({type:String,reflect:!0,attribute:"aria-label"})],kt.prototype,"ariaLabel",2);var ea=kt;ea.register(Hr);var _d=ea;tt.register(Tn);var Id=tt;var kd=[f`
|
2473
2495
|
:host {
|
2474
2496
|
--mdc-progressbar-background-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
2475
2497
|
--mdc-progressbar-active-background-color: var(--mds-color-theme-control-active-normal);
|
@@ -2552,7 +2574,7 @@
|
|
2552
2574
|
:host::part(progress-container), :host::part(progress-bar) {
|
2553
2575
|
border: var(--mdc-progressbar-border);
|
2554
2576
|
}
|
2555
|
-
`],Zn=
|
2577
|
+
`],Zn=kd;var jn=b.constructTagName("progressbar"),Vo={DEFAULT:"default",INLINE:"inline"},Kn={VARIANT:Vo.DEFAULT,VALIDATION:H.DEFAULT};var Ct=class extends P(pe){constructor(){super(...arguments);this.variant=Kn.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var a;let e=this.getValidationVariant(),t=this.clampedValue>0&&this.clampedValue<100,o=this.error?"100":`${this.clampedValue}`;return p`
|
2556
2578
|
<div
|
2557
2579
|
part="progress-container ${t?"gap":""}"
|
2558
2580
|
role="progressbar"
|
@@ -2573,7 +2595,7 @@
|
|
2573
2595
|
${this.renderProgressbar()}
|
2574
2596
|
${this.renderHelperText()}
|
2575
2597
|
`}
|
2576
|
-
`}};
|
2598
|
+
`}};Ct.styles=[...pe.styles,...Zn],l([c({type:String,reflect:!0})],Ct.prototype,"variant",2),l([c({type:String,reflect:!0})],Ct.prototype,"value",2),l([c({type:Boolean,attribute:"error"})],Ct.prototype,"error",2);var ta=Ct;ta.register(jn);var Cd=ta;var Ld=[C,f`
|
2577
2599
|
:host{
|
2578
2600
|
--mdc-radio-inner-circle-size: 0.375rem;
|
2579
2601
|
--mdc-radio-text-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -2768,7 +2790,7 @@
|
|
2768
2790
|
display: none;
|
2769
2791
|
visibility: hidden;
|
2770
2792
|
}
|
2771
|
-
`],tl=Md;var Ge=class extends
|
2793
|
+
`],tl=Md;var Ge=class extends g{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=nr.ARIA_LIVE;this.delay=nr.DELAY;this.timeout=nr.TIMEOUT;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce(e,t,o,a){var s;if(e.length>0){let n=`mdc-screenreaderannouncer-announcement-${Pe()}`,d=document.createElement("div");d.id=n,d.ariaLive=a,(s=document.getElementById(this.identity))==null||s.appendChild(d);let m=window.setTimeout(()=>{let h=document.createElement("p");h.textContent=e,d.appendChild(h),this.ariaLiveAnnouncementIds.push(n);let u=window.setTimeout(()=>{var x;(x=document.getElementById(n))==null||x.remove()},o);this.timeOutIds.push(u)},t);this.timeOutIds.push(m)}}clearTimeOutsAndAnnouncements(){this.timeOutIds.forEach(e=>{window.clearTimeout(e)}),this.ariaLiveAnnouncementIds.forEach(e=>{var t;(t=document.getElementById(e))==null||t.remove()})}createAnnouncementAriaLiveRegion(){let e=document.getElementById(this.identity);if(!e){e=document.createElement("div"),e.id=this.identity;let t=document.createElement("style");t.textContent=`
|
2772
2794
|
.mdc-screenreaderannouncer__visually-hidden {
|
2773
2795
|
clip: rect(0 0 0 0);
|
2774
2796
|
clip-path: inset(50%);
|
@@ -2778,7 +2800,7 @@
|
|
2778
2800
|
white-space: nowrap;
|
2779
2801
|
width: 1px;
|
2780
2802
|
}
|
2781
|
-
`,e.appendChild(t),e.classList.add("mdc-screenreaderannouncer__visually-hidden"),document.body.appendChild(e)}}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=nr.IDENTITY),this.createAnnouncementAriaLiveRegion()}disconnectedCallback(){super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements()}updated(e){e.has("identity")&&this.identity.length===0&&(this.identity=nr.IDENTITY,this.createAnnouncementAriaLiveRegion()),e.has("announcement")&&this.announcement.length>0&&(this.announce(this.announcement,this.delay,this.timeout,this.dataAriaLive),this.announcement="")}};Ge.styles=[...
|
2803
|
+
`,e.appendChild(t),e.classList.add("mdc-screenreaderannouncer__visually-hidden"),document.body.appendChild(e)}}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=nr.IDENTITY),this.createAnnouncementAriaLiveRegion()}disconnectedCallback(){super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements()}updated(e){e.has("identity")&&this.identity.length===0&&(this.identity=nr.IDENTITY,this.createAnnouncementAriaLiveRegion()),e.has("announcement")&&this.announcement.length>0&&(this.announce(this.announcement,this.delay,this.timeout,this.dataAriaLive),this.announcement="")}};Ge.styles=[...g.styles,...tl],l([c({type:String,reflect:!0})],Ge.prototype,"announcement",2),l([c({type:String,reflect:!0})],Ge.prototype,"identity",2),l([c({type:String,reflect:!0,attribute:"data-aria-live"})],Ge.prototype,"dataAriaLive",2),l([c({type:Number,reflect:!0})],Ge.prototype,"delay",2),l([c({type:Number,reflect:!0})],Ge.prototype,"timeout",2);var ia=Ge;ia.register(el);var Dd=ia;var $d=f`
|
2782
2804
|
|
2783
2805
|
:host::part(filters-container){
|
2784
2806
|
display: flex;
|
@@ -2978,7 +3000,7 @@
|
|
2978
3000
|
<mdc-text
|
2979
3001
|
part="base-text ${this.selectedValueText?"selected":""}"
|
2980
3002
|
type="${w.BODY_MIDSIZE_REGULAR}"
|
2981
|
-
tagname="${
|
3003
|
+
tagname="${k.SPAN}"
|
2982
3004
|
>
|
2983
3005
|
${(e=this.selectedValueText)!=null?e:this.placeholder}
|
2984
3006
|
</mdc-text>
|
@@ -2990,7 +3012,7 @@
|
|
2990
3012
|
${this.getPopoverContent()}
|
2991
3013
|
</div>
|
2992
3014
|
${this.renderHelperText()}
|
2993
|
-
`}};ee.styles=[...Z.styles,...al],l([c({type:String})],ee.prototype,"placeholder",2),l([c({type:Boolean})],ee.prototype,"readonly",2),l([c({type:String,attribute:"height"})],ee.prototype,"height",2),l([te()],ee.prototype,"optionsList",2),l([M()],ee.prototype,"baseIconName",2),l([M()],ee.prototype,"selectedValueText",2),l([M()],ee.prototype,"selectedValue",2),l([M()],ee.prototype,"displayPopover",2),l([M()],ee.prototype,"activeDescendant",2),l([De("select")],ee.prototype,"inputElement",2);var sa=ee;sa.register(il);var Vd=sa;var Ud=[
|
3015
|
+
`}};ee.styles=[...Z.styles,...al],l([c({type:String})],ee.prototype,"placeholder",2),l([c({type:Boolean})],ee.prototype,"readonly",2),l([c({type:String,attribute:"height"})],ee.prototype,"height",2),l([te()],ee.prototype,"optionsList",2),l([M()],ee.prototype,"baseIconName",2),l([M()],ee.prototype,"selectedValueText",2),l([M()],ee.prototype,"selectedValue",2),l([M()],ee.prototype,"displayPopover",2),l([M()],ee.prototype,"activeDescendant",2),l([De("select")],ee.prototype,"inputElement",2);var sa=ee;sa.register(il);var Vd=sa;var Ud=[C,f`
|
2994
3016
|
:host {
|
2995
3017
|
--mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
|
2996
3018
|
--mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
|
@@ -3052,11 +3074,11 @@
|
|
3052
3074
|
stroke-dashoffset: -292;
|
3053
3075
|
}
|
3054
3076
|
}
|
3055
|
-
`],sl=Ud;var nl=b.constructTagName("spinner"),Fd={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Bd={STANDALONE:"standalone",BUTTON:"button"},Ho={VARIANT:Bd.STANDALONE,SIZE:Fd.MIDSIZE,INVERTED:!1};var at=class extends
|
3077
|
+
`],sl=Ud;var nl=b.constructTagName("spinner"),Fd={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Bd={STANDALONE:"standalone",BUTTON:"button"},Ho={VARIANT:Bd.STANDALONE,SIZE:Fd.MIDSIZE,INVERTED:!1};var at=class extends g{constructor(){super(...arguments);this.inverted=Ho.INVERTED;this.size=Ho.SIZE;this.ariaLabel=null;this.variant=Ho.VARIANT}updated(e){super.updated(e),e.has("ariaLabel")&&(this.role=this.ariaLabel?"img":null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return p`
|
3056
3078
|
<svg part="container" viewBox="0 0 100 100">
|
3057
3079
|
<circle part="circle" cx="50" cy="50" r="46"></circle>
|
3058
3080
|
</svg>
|
3059
|
-
`}};at.styles=[...
|
3081
|
+
`}};at.styles=[...g.styles,...sl],l([c({type:Boolean,reflect:!0})],at.prototype,"inverted",2),l([c({type:String,reflect:!0})],at.prototype,"size",2),l([c({type:String,attribute:"aria-label"})],at.prototype,"ariaLabel",2),l([c({type:String,reflect:!0})],at.prototype,"variant",2);var na=at;na.register(nl);var Hd=na;var Gd=[C,f`
|
3060
3082
|
|
3061
3083
|
:host {
|
3062
3084
|
--mdc-tab-content-gap: 0.5rem;
|
@@ -3305,7 +3327,7 @@
|
|
3305
3327
|
${this.iconName?p` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:y}
|
3306
3328
|
${this.text?p` <mdc-text
|
3307
3329
|
type=${this.active?w.BODY_MIDSIZE_BOLD:w.BODY_MIDSIZE_MEDIUM}
|
3308
|
-
tagname=${
|
3330
|
+
tagname=${k.SPAN}
|
3309
3331
|
data-text=${this.text}
|
3310
3332
|
part="text"
|
3311
3333
|
>${this.text}</mdc-text
|
@@ -3506,7 +3528,7 @@
|
|
3506
3528
|
* {
|
3507
3529
|
scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
|
3508
3530
|
}
|
3509
|
-
`,hl=[Xd];var cr=class extends Vt{constructor(){super({context:qo.context,initialValue:new qo(pa.THEMECLASS)});this.themeclass=pa.THEMECLASS}static get Context(){return qo.context}updated(e){super.updated(e),e.has("themeclass")&&(this.setThemeInClassList(),this.currentThemeClass=this.themeclass)}updateContext(){this.context.value.themeclass!==this.themeclass&&(this.context.value.themeclass=this.themeclass,this.context.updateObservers())}setThemeInClassList(){this.currentThemeClass&&this.classList.remove(...this.currentThemeClass.split(" ")),this.themeclass&&this.classList.add(...this.themeclass.split(" "))}};cr.styles=[...Vt.styles,...hl],l([M()],cr.prototype,"currentThemeClass",2),l([c({type:String})],cr.prototype,"themeclass",2);var ha=cr;ha.register(Wo);var Zd=ha;var jd=[
|
3531
|
+
`,hl=[Xd];var cr=class extends Vt{constructor(){super({context:qo.context,initialValue:new qo(pa.THEMECLASS)});this.themeclass=pa.THEMECLASS}static get Context(){return qo.context}updated(e){super.updated(e),e.has("themeclass")&&(this.setThemeInClassList(),this.currentThemeClass=this.themeclass)}updateContext(){this.context.value.themeclass!==this.themeclass&&(this.context.value.themeclass=this.themeclass,this.context.updateObservers())}setThemeInClassList(){this.currentThemeClass&&this.classList.remove(...this.currentThemeClass.split(" ")),this.themeclass&&this.classList.add(...this.themeclass.split(" "))}};cr.styles=[...Vt.styles,...hl],l([M()],cr.prototype,"currentThemeClass",2),l([c({type:String})],cr.prototype,"themeclass",2);var ha=cr;ha.register(Wo);var Zd=ha;var jd=[C,f`
|
3510
3532
|
:host {
|
3511
3533
|
--mdc-toggle-width: 3rem;
|
3512
3534
|
--mdc-toggle-height: 1.5rem;
|
@@ -3689,10 +3711,10 @@
|
|
3689
3711
|
</div>
|
3690
3712
|
${this.renderLabel()}
|
3691
3713
|
${this.renderHelperText()}
|
3692
|
-
`}};Nt.styles=[...pe.styles,...ul],l([c({type:Boolean,reflect:!0})],Nt.prototype,"checked",2),l([c({type:String,reflect:!0})],Nt.prototype,"size",2),l([c({type:Boolean,reflect:!0})],Nt.prototype,"autofocus",2);var
|
3714
|
+
`}};Nt.styles=[...pe.styles,...ul],l([c({type:Boolean,reflect:!0})],Nt.prototype,"checked",2),l([c({type:String,reflect:!0})],Nt.prototype,"size",2),l([c({type:Boolean,reflect:!0})],Nt.prototype,"autofocus",2);var va=Nt;va.register(fl);var Kd=va;function Ot(i,r,e){var a;let t=(a=e.initialDeps)!=null?a:[],o;return()=>{var s,n,d,m;let h;e.key&&((s=e.debug)!=null&&s.call(e))&&(h=Date.now());let u=i();if(!(u.length!==t.length||u.some((E,T)=>t[T]!==E)))return o;t=u;let v;if(e.key&&((n=e.debug)!=null&&n.call(e))&&(v=Date.now()),o=r(...u),e.key&&((d=e.debug)!=null&&d.call(e))){let E=Math.round((Date.now()-h)*100)/100,T=Math.round((Date.now()-v)*100)/100,_=T/16,S=(I,R)=>{for(I=String(I);I.length<R;)I=" "+I;return I};console.info(`%c\u23F1 ${S(T,5)} /${S(E,5)} ms`,`
|
3693
3715
|
font-size: .6rem;
|
3694
3716
|
font-weight: bold;
|
3695
|
-
color: hsl(${Math.max(0,Math.min(120-120*_,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(m=e==null?void 0:e.onChange)==null||m.call(e,o),o}}function Xo(i,r){if(i===void 0)throw new Error(`Unexpected undefined${r?`: ${r}`:""}`);return i}var gl=(i,r)=>Math.abs(i-r)<1,vl=(i,r,e)=>{let t;return function(...o){i.clearTimeout(t),t=i.setTimeout(()=>r.apply(this,o),e)}};var Qd=i=>i,Jd=i=>{let r=Math.max(i.startIndex-i.overscan,0),e=Math.min(i.endIndex+i.overscan,i.count-1),t=[];for(let o=r;o<=e;o++)t.push(o);return t},xl=(i,r)=>{let e=i.scrollElement;if(!e)return;let t=i.targetWindow;if(!t)return;let o=s=>{let{width:n,height:d}=s;r({width:Math.round(n),height:Math.round(d)})};if(o(e.getBoundingClientRect()),!t.ResizeObserver)return()=>{};let a=new t.ResizeObserver(s=>{let n=s[0];if(n!=null&&n.borderBoxSize){let d=n.borderBoxSize[0];if(d){o({width:d.inlineSize,height:d.blockSize});return}}o(e.getBoundingClientRect())});return a.observe(e,{box:"border-box"}),()=>{a.unobserve(e)}},yl={passive:!0};var em=typeof window>"u"?!0:"onscrollend"in window,El=(i,r)=>{let e=i.scrollElement;if(!e)return;let t=i.targetWindow;if(!t)return;let o=0,a=i.options.useScrollendEvent&&em?()=>{}:vl(t,()=>{r(o,!1)},i.options.isScrollingResetDelay),s=m=>()=>{let{horizontal:h,isRtl:u}=i.options;o=h?e.scrollLeft*(u&&-1||1):e.scrollTop,a(),r(o,m)},n=s(!0),d=s(!1);return d(),e.addEventListener("scroll",n,yl),e.addEventListener("scrollend",d,yl),()=>{e.removeEventListener("scroll",n),e.removeEventListener("scrollend",d)}};var tm=(i,r,e)=>{if(r!=null&&r.borderBoxSize){let t=r.borderBoxSize[0];if(t)return Math.round(t[e.options.horizontal?"inlineSize":"blockSize"])}return Math.round(i.getBoundingClientRect()[e.options.horizontal?"width":"height"])};var Tl=(i,{adjustments:r=0,behavior:e},t)=>{var o,a;let s=i+r;(a=(o=t.scrollElement)==null?void 0:o.scrollTo)==null||a.call(o,{[t.options.horizontal?"left":"top"]:s,behavior:e})},Zo=class{constructor(r){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,t=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(o=>{o.forEach(a=>{this._measureElement(a.target,a)})}));return{disconnect:()=>{var o;(o=t())==null||o.disconnect(),e=null},observe:o=>{var a;return(a=t())==null?void 0:a.observe(o,{box:"border-box"})},unobserve:o=>{var a;return(a=t())==null?void 0:a.unobserve(o)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,o])=>{typeof o>"u"&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Qd,rangeExtractor:Jd,onChange:()=>{},measureElement:tm,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...e}},this.notify=e=>{var t,o;(o=(t=this.options).onChange)==null||o.call(t,this,e)},this.maybeNotify=Ot(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var o;var e;let t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t){this.maybeNotify();return}this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(o=(e=this.scrollElement)==null?void 0:e.window)!=null?o:null,this.elementsCache.forEach(a=>{this.observer.observe(a)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(a,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<a?"forward":"backward":null,this.scrollOffset=a,this.isScrolling=s,this.maybeNotify()}))}},this.getSize=()=>{var e;return this.options.enabled?(this.scrollRect=(e=this.scrollRect)!=null?e:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var e;return this.options.enabled?(this.scrollOffset=(e=this.scrollOffset)!=null?e:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(e,t)=>{let o=new Map,a=new Map;for(let s=t-1;s>=0;s--){let n=e[s];if(o.has(n.lane))continue;let d=a.get(n.lane);if(d==null||n.end>d.end?a.set(n.lane,n):n.end<d.end&&o.set(n.lane,!0),o.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((s,n)=>s.end===n.end?s.index-n.index:s.end-n.end)[0]:void 0},this.getMeasurementOptions=Ot(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,t,o,a,s)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:o,getItemKey:a,enabled:s}),{key:!1}),this.getMeasurements=Ot(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:o,getItemKey:a,enabled:s},n)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(h=>{this.itemSizeCache.set(h.key,h.size)}));let d=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let m=this.measurementsCache.slice(0,d);for(let h=d;h<e;h++){let u=a(h),x=this.options.lanes===1?m[h-1]:this.getFurthestMeasurement(m,h),g=x?x.end+this.options.gap:t+o,E=n.get(u),T=typeof E=="number"?E:this.options.estimateSize(h),_=g+T,S=x?x.lane:h%this.options.lanes;m[h]={index:h,start:g,size:T,end:_,key:u,lane:S}}return this.measurementsCache=m,m},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Ot(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,t,o)=>this.range=e.length>0&&t>0?rm({measurements:e,outerSize:t,scrollOffset:o}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Ot(()=>{let e=null,t=null,o=this.calculateRange();return o&&(e=o.startIndex,t=o.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,o,a,s)=>a===null||s===null?[]:e({startIndex:a,endIndex:s,overscan:t,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,o=e.getAttribute(t);return o?parseInt(o,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{let o=this.indexFromElement(e),a=this.measurementsCache[o];if(!a)return;let s=a.key,n=this.elementsCache.get(s);n!==e&&(n&&this.observer.unobserve(n),this.observer.observe(e),this.elementsCache.set(s,e)),e.isConnected&&this.resizeItem(o,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{var n;let o=this.measurementsCache[e];if(!o)return;let a=(n=this.itemSizeCache.get(o.key))!=null?n:o.size,s=t-a;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,s,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=s,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,t)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((t,o)=>{t.isConnected||(this.observer.unobserve(t),this.elementsCache.delete(o))});return}this._measureElement(e,void 0)},this.getVirtualItems=Ot(()=>[this.getIndexes(),this.getMeasurements()],(e,t)=>{let o=[];for(let a=0,s=e.length;a<s;a++){let n=e[a],d=t[n];o.push(d)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(t.length!==0)return Xo(t[Al(0,t.length-1,o=>Xo(t[o]).start,e)])},this.getOffsetForAlignment=(e,t)=>{let o=this.getSize(),a=this.getScrollOffset();t==="auto"&&e>=a+o&&(t="end"),t==="end"&&(e-=o);let s=this.options.horizontal?"scrollWidth":"scrollHeight",d=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-o;return Math.max(Math.min(d,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let o=this.measurementsCache[e];if(!o)return;let a=this.getSize(),s=this.getScrollOffset();if(t==="auto")if(o.end>=s+a-this.options.scrollPaddingEnd)t="end";else if(o.start<=s+this.options.scrollPaddingStart)t="start";else return[s,t];let n=o.start-this.options.scrollPaddingStart+(o.size-a)/2;switch(t){case"center":return[this.getOffsetForAlignment(n,t),t];case"end":return[this.getOffsetForAlignment(o.end+this.options.scrollPaddingEnd,t),t];default:return[this.getOffsetForAlignment(o.start-this.options.scrollPaddingStart,t),t]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:t="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:o})},this.scrollToIndex=(e,{align:t="auto",behavior:o}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let a=this.getOffsetForIndex(e,t);if(!a)return;let[s,n]=a;this._scrollToOffset(s,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[m]=Xo(this.getOffsetForIndex(e,n));gl(m,this.getScrollOffset())||this.scrollToIndex(e,{align:n,behavior:o})}else this.scrollToIndex(e,{align:n,behavior:o})}))},this.scrollBy=(e,{behavior:t}={})=>{this.cancelScrollToIndex(),t==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{var a;var e;let t=this.getMeasurements(),o;return t.length===0?o=this.options.paddingStart:o=this.options.lanes===1?(a=(e=t[t.length-1])==null?void 0:e.end)!=null?a:0:Math.max(...t.slice(-this.options.lanes).map(s=>s.end)),Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:o})=>{this.options.scrollToFn(e,{behavior:o,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(r)}},Al=(i,r,e,t)=>{for(;i<=r;){let o=(i+r)/2|0,a=e(o);if(a<t)i=o+1;else if(a>t)r=o-1;else return o}return i>0?i-1:0};function rm({measurements:i,outerSize:r,scrollOffset:e}){let t=i.length-1,a=Al(0,t,n=>i[n].start,e),s=a;for(;s<t&&i[s].end<e+r;)s++;return{startIndex:a,endIndex:s}}var va=class{constructor(r,e){this.cleanup=()=>{},(this.host=r).addController(this);let t={...e,onChange:(o,a)=>{var s;this.host.updateComplete.then(()=>this.host.requestUpdate()),(s=e.onChange)==null||s.call(e,o,a)}};this.virtualizer=new Zo(t)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},jo=class extends va{constructor(r,e){super(r,{observeElementRect:xl,observeElementOffset:El,scrollToFn:Tl,...e})}};var{I:ok}=Ha;var Sl=i=>i.strings===void 0;var Wr=(i,r)=>{var t;let e=i._$AN;if(e===void 0)return!1;for(let o of e)(t=o._$AO)==null||t.call(o,r,!1),Wr(o,r);return!0},Ko=i=>{let r,e;do{if((r=i._$AM)===void 0)break;e=r._$AN,e.delete(i),i=r}while((e==null?void 0:e.size)===0)},wl=i=>{for(let r;r=i._$AM;i=r){let e=r._$AN;if(e===void 0)r._$AN=e=new Set;else if(e.has(i))break;e.add(i),am(r)}};function om(i){this._$AN!==void 0?(Ko(this),this._$AM=i,wl(this)):this._$AM=i}function im(i,r=!1,e=0){let t=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(r)if(Array.isArray(t))for(let a=e;a<t.length;a++)Wr(t[a],!1),Ko(t[a]);else t!=null&&(Wr(t,!1),Ko(t));else Wr(this,i)}var am=i=>{var r,e;i.type==bo.CHILD&&((r=i._$AP)!=null||(i._$AP=im),(e=i._$AQ)!=null||(i._$AQ=om))},Qo=class extends qt{constructor(){super(...arguments),this._$AN=void 0}_$AT(r,e,t){super._$AT(r,e,t),wl(this),this.isConnected=r._$AU}_$AO(r,e=!0){var t,o;r!==this.isConnected&&(this.isConnected=r,r?(t=this.reconnected)==null||t.call(this):(o=this.disconnected)==null||o.call(this)),e&&(Wr(this,r),Ko(this))}setValue(r){if(Sl(this.t))this.t._$AI(r,this);else{let e=[...this.t._$AH];e[this.i]=r,this.t._$AI(e,this,0)}}disconnected(){}reconnected(){}};var _l=()=>new xa,xa=class{},ya=new WeakMap,Il=Ir(class extends Qo{render(i){return y}update(i,[r]){var t;let e=r!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=r,this.ht=(t=i.options)==null?void 0:t.host,this.rt(this.ct=i.element)),y}rt(i){var r;if(this.isConnected||(i=void 0),typeof this.Y=="function"){let e=(r=this.ht)!=null?r:globalThis,t=ya.get(e);t===void 0&&(t=new WeakMap,ya.set(e,t)),t.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),t.set(this.Y,i),i!==void 0&&this.Y.call(this.ht,i)}else this.Y.value=i}get lt(){var i,r,e;return typeof this.Y=="function"?(r=ya.get((i=this.ht)!=null?i:globalThis))==null?void 0:r.get(this.Y):(e=this.Y)==null?void 0:e.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var sm=[f`
|
3717
|
+
color: hsl(${Math.max(0,Math.min(120-120*_,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(m=e==null?void 0:e.onChange)==null||m.call(e,o),o}}function Xo(i,r){if(i===void 0)throw new Error(`Unexpected undefined${r?`: ${r}`:""}`);return i}var vl=(i,r)=>Math.abs(i-r)<1,gl=(i,r,e)=>{let t;return function(...o){i.clearTimeout(t),t=i.setTimeout(()=>r.apply(this,o),e)}};var Qd=i=>i,Jd=i=>{let r=Math.max(i.startIndex-i.overscan,0),e=Math.min(i.endIndex+i.overscan,i.count-1),t=[];for(let o=r;o<=e;o++)t.push(o);return t},xl=(i,r)=>{let e=i.scrollElement;if(!e)return;let t=i.targetWindow;if(!t)return;let o=s=>{let{width:n,height:d}=s;r({width:Math.round(n),height:Math.round(d)})};if(o(e.getBoundingClientRect()),!t.ResizeObserver)return()=>{};let a=new t.ResizeObserver(s=>{let n=s[0];if(n!=null&&n.borderBoxSize){let d=n.borderBoxSize[0];if(d){o({width:d.inlineSize,height:d.blockSize});return}}o(e.getBoundingClientRect())});return a.observe(e,{box:"border-box"}),()=>{a.unobserve(e)}},yl={passive:!0};var em=typeof window>"u"?!0:"onscrollend"in window,El=(i,r)=>{let e=i.scrollElement;if(!e)return;let t=i.targetWindow;if(!t)return;let o=0,a=i.options.useScrollendEvent&&em?()=>{}:gl(t,()=>{r(o,!1)},i.options.isScrollingResetDelay),s=m=>()=>{let{horizontal:h,isRtl:u}=i.options;o=h?e.scrollLeft*(u&&-1||1):e.scrollTop,a(),r(o,m)},n=s(!0),d=s(!1);return d(),e.addEventListener("scroll",n,yl),e.addEventListener("scrollend",d,yl),()=>{e.removeEventListener("scroll",n),e.removeEventListener("scrollend",d)}};var tm=(i,r,e)=>{if(r!=null&&r.borderBoxSize){let t=r.borderBoxSize[0];if(t)return Math.round(t[e.options.horizontal?"inlineSize":"blockSize"])}return Math.round(i.getBoundingClientRect()[e.options.horizontal?"width":"height"])};var Tl=(i,{adjustments:r=0,behavior:e},t)=>{var o,a;let s=i+r;(a=(o=t.scrollElement)==null?void 0:o.scrollTo)==null||a.call(o,{[t.options.horizontal?"left":"top"]:s,behavior:e})},Zo=class{constructor(r){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,t=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(o=>{o.forEach(a=>{this._measureElement(a.target,a)})}));return{disconnect:()=>{var o;(o=t())==null||o.disconnect(),e=null},observe:o=>{var a;return(a=t())==null?void 0:a.observe(o,{box:"border-box"})},unobserve:o=>{var a;return(a=t())==null?void 0:a.unobserve(o)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,o])=>{typeof o>"u"&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Qd,rangeExtractor:Jd,onChange:()=>{},measureElement:tm,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...e}},this.notify=e=>{var t,o;(o=(t=this.options).onChange)==null||o.call(t,this,e)},this.maybeNotify=Ot(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var o;var e;let t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t){this.maybeNotify();return}this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(o=(e=this.scrollElement)==null?void 0:e.window)!=null?o:null,this.elementsCache.forEach(a=>{this.observer.observe(a)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(a,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<a?"forward":"backward":null,this.scrollOffset=a,this.isScrolling=s,this.maybeNotify()}))}},this.getSize=()=>{var e;return this.options.enabled?(this.scrollRect=(e=this.scrollRect)!=null?e:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var e;return this.options.enabled?(this.scrollOffset=(e=this.scrollOffset)!=null?e:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(e,t)=>{let o=new Map,a=new Map;for(let s=t-1;s>=0;s--){let n=e[s];if(o.has(n.lane))continue;let d=a.get(n.lane);if(d==null||n.end>d.end?a.set(n.lane,n):n.end<d.end&&o.set(n.lane,!0),o.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((s,n)=>s.end===n.end?s.index-n.index:s.end-n.end)[0]:void 0},this.getMeasurementOptions=Ot(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,t,o,a,s)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:o,getItemKey:a,enabled:s}),{key:!1}),this.getMeasurements=Ot(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:o,getItemKey:a,enabled:s},n)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(h=>{this.itemSizeCache.set(h.key,h.size)}));let d=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let m=this.measurementsCache.slice(0,d);for(let h=d;h<e;h++){let u=a(h),x=this.options.lanes===1?m[h-1]:this.getFurthestMeasurement(m,h),v=x?x.end+this.options.gap:t+o,E=n.get(u),T=typeof E=="number"?E:this.options.estimateSize(h),_=v+T,S=x?x.lane:h%this.options.lanes;m[h]={index:h,start:v,size:T,end:_,key:u,lane:S}}return this.measurementsCache=m,m},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Ot(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,t,o)=>this.range=e.length>0&&t>0?rm({measurements:e,outerSize:t,scrollOffset:o}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Ot(()=>{let e=null,t=null,o=this.calculateRange();return o&&(e=o.startIndex,t=o.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,o,a,s)=>a===null||s===null?[]:e({startIndex:a,endIndex:s,overscan:t,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,o=e.getAttribute(t);return o?parseInt(o,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{let o=this.indexFromElement(e),a=this.measurementsCache[o];if(!a)return;let s=a.key,n=this.elementsCache.get(s);n!==e&&(n&&this.observer.unobserve(n),this.observer.observe(e),this.elementsCache.set(s,e)),e.isConnected&&this.resizeItem(o,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{var n;let o=this.measurementsCache[e];if(!o)return;let a=(n=this.itemSizeCache.get(o.key))!=null?n:o.size,s=t-a;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,s,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=s,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,t)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((t,o)=>{t.isConnected||(this.observer.unobserve(t),this.elementsCache.delete(o))});return}this._measureElement(e,void 0)},this.getVirtualItems=Ot(()=>[this.getIndexes(),this.getMeasurements()],(e,t)=>{let o=[];for(let a=0,s=e.length;a<s;a++){let n=e[a],d=t[n];o.push(d)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(t.length!==0)return Xo(t[Al(0,t.length-1,o=>Xo(t[o]).start,e)])},this.getOffsetForAlignment=(e,t)=>{let o=this.getSize(),a=this.getScrollOffset();t==="auto"&&e>=a+o&&(t="end"),t==="end"&&(e-=o);let s=this.options.horizontal?"scrollWidth":"scrollHeight",d=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-o;return Math.max(Math.min(d,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let o=this.measurementsCache[e];if(!o)return;let a=this.getSize(),s=this.getScrollOffset();if(t==="auto")if(o.end>=s+a-this.options.scrollPaddingEnd)t="end";else if(o.start<=s+this.options.scrollPaddingStart)t="start";else return[s,t];let n=o.start-this.options.scrollPaddingStart+(o.size-a)/2;switch(t){case"center":return[this.getOffsetForAlignment(n,t),t];case"end":return[this.getOffsetForAlignment(o.end+this.options.scrollPaddingEnd,t),t];default:return[this.getOffsetForAlignment(o.start-this.options.scrollPaddingStart,t),t]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:t="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:o})},this.scrollToIndex=(e,{align:t="auto",behavior:o}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let a=this.getOffsetForIndex(e,t);if(!a)return;let[s,n]=a;this._scrollToOffset(s,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[m]=Xo(this.getOffsetForIndex(e,n));vl(m,this.getScrollOffset())||this.scrollToIndex(e,{align:n,behavior:o})}else this.scrollToIndex(e,{align:n,behavior:o})}))},this.scrollBy=(e,{behavior:t}={})=>{this.cancelScrollToIndex(),t==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{var a;var e;let t=this.getMeasurements(),o;return t.length===0?o=this.options.paddingStart:o=this.options.lanes===1?(a=(e=t[t.length-1])==null?void 0:e.end)!=null?a:0:Math.max(...t.slice(-this.options.lanes).map(s=>s.end)),Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:o})=>{this.options.scrollToFn(e,{behavior:o,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(r)}},Al=(i,r,e,t)=>{for(;i<=r;){let o=(i+r)/2|0,a=e(o);if(a<t)i=o+1;else if(a>t)r=o-1;else return o}return i>0?i-1:0};function rm({measurements:i,outerSize:r,scrollOffset:e}){let t=i.length-1,a=Al(0,t,n=>i[n].start,e),s=a;for(;s<t&&i[s].end<e+r;)s++;return{startIndex:a,endIndex:s}}var ga=class{constructor(r,e){this.cleanup=()=>{},(this.host=r).addController(this);let t={...e,onChange:(o,a)=>{var s;this.host.updateComplete.then(()=>this.host.requestUpdate()),(s=e.onChange)==null||s.call(e,o,a)}};this.virtualizer=new Zo(t)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},jo=class extends ga{constructor(r,e){super(r,{observeElementRect:xl,observeElementOffset:El,scrollToFn:Tl,...e})}};var{I:oC}=Ha;var Sl=i=>i.strings===void 0;var Wr=(i,r)=>{var t;let e=i._$AN;if(e===void 0)return!1;for(let o of e)(t=o._$AO)==null||t.call(o,r,!1),Wr(o,r);return!0},Ko=i=>{let r,e;do{if((r=i._$AM)===void 0)break;e=r._$AN,e.delete(i),i=r}while((e==null?void 0:e.size)===0)},wl=i=>{for(let r;r=i._$AM;i=r){let e=r._$AN;if(e===void 0)r._$AN=e=new Set;else if(e.has(i))break;e.add(i),am(r)}};function om(i){this._$AN!==void 0?(Ko(this),this._$AM=i,wl(this)):this._$AM=i}function im(i,r=!1,e=0){let t=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(r)if(Array.isArray(t))for(let a=e;a<t.length;a++)Wr(t[a],!1),Ko(t[a]);else t!=null&&(Wr(t,!1),Ko(t));else Wr(this,i)}var am=i=>{var r,e;i.type==bo.CHILD&&((r=i._$AP)!=null||(i._$AP=im),(e=i._$AQ)!=null||(i._$AQ=om))},Qo=class extends qt{constructor(){super(...arguments),this._$AN=void 0}_$AT(r,e,t){super._$AT(r,e,t),wl(this),this.isConnected=r._$AU}_$AO(r,e=!0){var t,o;r!==this.isConnected&&(this.isConnected=r,r?(t=this.reconnected)==null||t.call(this):(o=this.disconnected)==null||o.call(this)),e&&(Wr(this,r),Ko(this))}setValue(r){if(Sl(this.t))this.t._$AI(r,this);else{let e=[...this.t._$AH];e[this.i]=r,this.t._$AI(e,this,0)}}disconnected(){}reconnected(){}};var _l=()=>new xa,xa=class{},ya=new WeakMap,Il=Ir(class extends Qo{render(i){return y}update(i,[r]){var t;let e=r!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=r,this.ht=(t=i.options)==null?void 0:t.host,this.rt(this.ct=i.element)),y}rt(i){var r;if(this.isConnected||(i=void 0),typeof this.Y=="function"){let e=(r=this.ht)!=null?r:globalThis,t=ya.get(e);t===void 0&&(t=new WeakMap,ya.set(e,t)),t.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),t.set(this.Y,i),i!==void 0&&this.Y.call(this.ht,i)}else this.Y.value=i}get lt(){var i,r,e;return typeof this.Y=="function"?(r=ya.get((i=this.ht)!=null?i:globalThis))==null?void 0:r.get(this.Y):(e=this.Y)==null?void 0:e.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var sm=[f`
|
3696
3718
|
:host::part(scroll) {
|
3697
3719
|
height: 100%;
|
3698
3720
|
width: 100%;
|
@@ -3702,7 +3724,7 @@
|
|
3702
3724
|
position: relative;
|
3703
3725
|
width: 100%;
|
3704
3726
|
}
|
3705
|
-
`],
|
3727
|
+
`],kl=sm;var Cl=b.constructTagName("virtualizedlist"),yC=b.constructTagName("virtualizedwrapper"),Ll={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var Mt=class extends g{constructor(){super();this.virtualizerProps=Ll.VIRTUALIZER_PROPS;this.scrollElementRef=_l();this.virtualItems=[];this.virtualizerController=null,this.virtualizer=null,this.setlistdata=null,this.onscroll=null}update(e){super.update(e),e.get("virtualizerProps")&&this.setVirtualizerOptions()}firstUpdated(e){super.firstUpdated(e),this.setVirtualizerOptions()}setVirtualizerOptions(){var e;(e=this.virtualizer)==null||e.setOptions({...this.virtualizer.options,...this.virtualizerProps}),this.requestUpdate()}connectedCallback(){var e;this.virtualizerController=new jo(this,{count:this.virtualizerProps.count,estimateSize:(e=this.virtualizerProps)==null?void 0:e.estimateSize,getScrollElement:()=>this.scrollElementRef.value||null,...this.virtualizerProps}),super.connectedCallback()}getVirtualizedListWrapper(e){var n,d;this.virtualizer=e.getVirtualizer();let{getTotalSize:t,getVirtualItems:o,measureElement:a}=this.virtualizer,s=o();if(s!==this.virtualItems){this.virtualItems=s;let m=o(),h={position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${(d=(n=m[0])==null?void 0:n.start)!=null?d:0}px)`};this.setlistdata&&this.setlistdata({virtualItems:m,measureElement:a,listStyle:h})}return p`<div
|
3706
3728
|
part="container"
|
3707
3729
|
style="height: ${t()}px;"
|
3708
3730
|
>
|
@@ -3714,7 +3736,7 @@
|
|
3714
3736
|
>
|
3715
3737
|
${this.virtualizerController?this.getVirtualizedListWrapper(this.virtualizerController):p``}
|
3716
3738
|
</div>
|
3717
|
-
`}};Mt.styles=[...
|
3739
|
+
`}};Mt.styles=[...g.styles,...kl],l([c({type:Function,attribute:"onscroll"})],Mt.prototype,"onscroll",2),l([c({type:Object,attribute:"virtualizerprops"})],Mt.prototype,"virtualizerProps",2),l([c({type:Function,attribute:"setlistdata"})],Mt.prototype,"setlistdata",2);var Ea=Mt;Ea.register(Cl);var nm=Ea;var lm=[oo,f`
|
3718
3740
|
:host {
|
3719
3741
|
--mdc-tablist-focus-ring-outer-width: var(--mdc-focus-ring-outer-width);
|
3720
3742
|
--mdc-tablist-gap: 0.5rem;
|
@@ -3744,7 +3766,7 @@
|
|
3744
3766
|
:host mdc-button[prefix-icon="arrow-right-regular"] {
|
3745
3767
|
margin-left: var(--mdc-tablist-arrow-button-margin);
|
3746
3768
|
}
|
3747
|
-
`],Rl=[...lm];var Nl=b.constructTagName("tablist"),Yr={LEFT:"ArrowLeft",RIGHT:"ArrowRight",HOME:"Home",END:"End"},dr={FORWARD:"forward",BACKWARD:"backward"};var Jo=i=>i[0],Ta=i=>i[i.length-1],Ol=(i,r)=>{let e=i.findIndex(t=>r===t)-1;return i[(e+i.length)%i.length]},Ml=(i,r)=>{let e=i.findIndex(t=>r===t)+1;return i[e%i.length]},Dl=(i,r)=>i.find(e=>e.tabId===r),Aa=i=>i.find(r=>r.active);var ue=class extends
|
3769
|
+
`],Rl=[...lm];var Nl=b.constructTagName("tablist"),Yr={LEFT:"ArrowLeft",RIGHT:"ArrowRight",HOME:"Home",END:"End"},dr={FORWARD:"forward",BACKWARD:"backward"};var Jo=i=>i[0],Ta=i=>i[i.length-1],Ol=(i,r)=>{let e=i.findIndex(t=>r===t)-1;return i[(e+i.length)%i.length]},Ml=(i,r)=>{let e=i.findIndex(t=>r===t)+1;return i[e%i.length]},Dl=(i,r)=>i.find(e=>e.tabId===r),Aa=i=>i.find(r=>r.active);var ue=class extends g{constructor(){super();this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.isRtl=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"};this.setAriaLabelledByOrAriaLabel=()=>{var e,t,o,a;this.dataAriaLabelledby?((e=this.tabsContainer)==null||e.setAttribute("aria-labelledby",this.dataAriaLabelledby),(t=this.tabsContainer)==null||t.removeAttribute("aria-label")):((o=this.tabsContainer)==null||o.setAttribute("aria-label",this.dataAriaLabel||"Tab List"),(a=this.tabsContainer)==null||a.removeAttribute("aria-labelledby"))};this.fireTabChangeEvent=e=>{let t=new CustomEvent("change",{detail:e.tabId});this.dispatchEvent(t)};this.handleFocus=async e=>{if(e.relatedTarget instanceof ae||!(e.target instanceof ae))return;let t=Aa(this.tabs||[]);t instanceof ae&&await this.focusTab(t)};this.handleMousedown=e=>{e.target instanceof ae&&e.preventDefault()};this.handleNestedTabActiveChange=async e=>{let t=e.target;t instanceof ae&&(this.setActiveTab(t),await this.focusTab(t),this.activeTabId=t.tabId)};this.resetTabIndexAndSetNewTabIndex=e=>{var t;(t=this.tabs)==null||t.forEach(o=>{o.setAttribute("tabindex",o===e?"0":"-1")})};this.setActiveTab=e=>{var t;(t=this.tabs)==null||t.forEach(o=>{o===e?o.setAttribute("active",""):o.removeAttribute("active")})};this.focusTab=async e=>{var t;e instanceof ae&&(e!==((t=this.shadowRoot)==null?void 0:t.activeElement)&&(this.resetTabIndexAndSetNewTabIndex(e),e.focus()),e.scrollIntoView({behavior:"instant",block:"start",inline:"center"}),await this.handleArrowButtonVisibility())};this.handleKeydown=async e=>{let t=e.target;if(!(t instanceof ae)||!this.tabs)return;let o=Ol(this.tabs,t),a=Ml(this.tabs,t),s=Jo(this.tabs),n=Ta(this.tabs);switch(e.code){case Yr.LEFT:e.preventDefault(),await this.focusTab(this.isRtl()?a:o);break;case Yr.RIGHT:e.preventDefault(),await this.focusTab(this.isRtl()?o:a);break;case Yr.HOME:await this.focusTab(s);break;case Yr.END:await this.focusTab(n);break;default:}};this.shouldShowArrowButton=e=>e===dr.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton;this.switchFocus=async()=>{var e,t;await this.updateComplete,!this.showBackwardArrowButton&&!this.showForwardArrowButton?(e=Aa(this.tabs||[]))==null||e.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((t=this.notFocusedArrowButton)==null||t.focus())};this.handleArrowButtonVisibility=async()=>{var u,x,v;if(!this.tabs||!this.tabsContainer)return;let e=!1;((u=this.shadowRoot)==null?void 0:u.activeElement)instanceof Rr&&(e=!0);let t=Jo(this.tabs),o=Ta(this.tabs),a=t.getBoundingClientRect().left,s=(x=this.tabsContainer)==null?void 0:x.getBoundingClientRect().left,n=o.getBoundingClientRect().right,d=(v=this.tabsContainer)==null?void 0:v.getBoundingClientRect().right,m=t.getBoundingClientRect().right,h=o.getBoundingClientRect().left;if(!this.isRtl()){a<=s?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,n>d?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,e&&await this.switchFocus();return}m>d?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,h<s?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,e&&await this.switchFocus()};this.scrollTabs=async e=>{var a;let t=this.isRtl()?-1:1,o=this.isRtl()?1:-1;(a=this.tabsContainer)==null||a.scrollBy({left:this.tabsContainer.clientWidth*(e===dr.FORWARD?t:o),behavior:"instant"}),await this.handleArrowButtonVisibility()};this.addEventListener("keydown",this.handleKeydown),this.addEventListener("activechange",this.handleNestedTabActiveChange)}async firstUpdated(){var o,a,s;if(!this.tabs)return;if(Array.isArray(this.tabs)&&this.tabs.length===0){this.onerror&&this.onerror("The tablist component must have at least one child tab");return}let e=this.tabs.map(n=>n.tabId);new Set(e).size!==this.tabs.length&&this.onerror&&this.onerror("The tabs inside the tab list must have unique tab ids"),this.setAriaLabelledByOrAriaLabel(),new ResizeObserver(async()=>{var d,m;let n=(m=(d=this.tabsContainer)==null?void 0:d.shadowRoot)==null?void 0:m.activeElement;n instanceof ae&&n.scrollIntoView({behavior:"instant",block:"start",inline:"center"}),await this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(o=Jo(this.tabs))==null?void 0:o.tabId),(a=this.tabsContainer)==null||a.addEventListener("focusin",this.handleFocus),(s=this.tabsContainer)==null||s.addEventListener("mousedown",this.handleMousedown)}async update(e){if(super.update(e),(e.has("dataAriaLabelledby")||e.has("dataAriaLabel"))&&this.setAriaLabelledByOrAriaLabel(),e.has("activeTabId")){if(!this.tabs||!this.activeTabId)return;let t=Dl(this.tabs,this.activeTabId);if(!(t instanceof ae))return;this.setActiveTab(t),e.get("activeTabId")?(this.fireTabChangeEvent(t),await this.focusTab(t)):this.resetTabIndexAndSetNewTabIndex(t)}}render(){let e=this.isRtl()?"left":"right",t=this.isRtl()?"right":"left",o=a=>p` ${this.shouldShowArrowButton(a)?p`<mdc-button
|
3748
3770
|
variant="tertiary"
|
3749
3771
|
prefix-icon="arrow-${a===dr.FORWARD?e:t}-regular"
|
3750
3772
|
aria-label="Scroll tabs ${a===dr.FORWARD?e:t}"
|
@@ -3753,7 +3775,7 @@
|
|
3753
3775
|
<div class="container" role="tablist" tabindex="-1">
|
3754
3776
|
<slot></slot>
|
3755
3777
|
</div>
|
3756
|
-
${o(dr.FORWARD)}`}};ue.styles=[...
|
3778
|
+
${o(dr.FORWARD)}`}};ue.styles=[...g.styles,...Rl],l([c({type:String,attribute:"active-tab-id",reflect:!0})],ue.prototype,"activeTabId",2),l([c({type:String,attribute:"data-aria-labelledby"})],ue.prototype,"dataAriaLabelledby",2),l([c({type:String,attribute:"data-aria-label"})],ue.prototype,"dataAriaLabel",2),l([De(".container")],ue.prototype,"tabsContainer",2),l([De("mdc-button:not(:focus-visible)")],ue.prototype,"notFocusedArrowButton",2),l([te({selector:"mdc-tab"})],ue.prototype,"tabs",2),l([M()],ue.prototype,"showForwardArrowButton",2),l([M()],ue.prototype,"showBackwardArrowButton",2);var Sa=ue;Sa.register(Nl);var cm=Sa;})();
|
3757
3779
|
/*! Bundled license information:
|
3758
3780
|
|
3759
3781
|
@lit/reactive-element/css-tag.js:
|