@momentum-design/components 0.36.1 → 0.36.2
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 +187 -133
- package/dist/browser/index.js.map +4 -4
- package/dist/components/listitem/listitem.component.d.ts +3 -2
- package/dist/components/listitem/listitem.component.js +1 -1
- package/dist/components/listitem/listitem.styles.js +3 -0
- package/dist/components/optgroup/index.d.ts +8 -0
- package/dist/components/optgroup/index.js +5 -0
- package/dist/components/optgroup/optgroup.component.d.ts +28 -0
- package/dist/components/optgroup/optgroup.component.js +77 -0
- package/dist/components/optgroup/optgroup.constants.d.ts +3 -0
- package/dist/components/optgroup/optgroup.constants.js +4 -0
- package/dist/components/optgroup/optgroup.styles.d.ts +2 -0
- package/dist/components/optgroup/optgroup.styles.js +16 -0
- package/dist/components/option/index.d.ts +8 -0
- package/dist/components/option/index.js +5 -0
- package/dist/components/option/option.component.d.ts +46 -0
- package/dist/components/option/option.component.js +115 -0
- package/dist/components/option/option.constants.d.ts +4 -0
- package/dist/components/option/option.constants.js +4 -0
- package/dist/components/option/option.styles.d.ts +2 -0
- package/dist/components/option/option.styles.js +10 -0
- package/dist/custom-elements.json +888 -6
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/react/index.d.ts +2 -0
- package/dist/react/index.js +2 -0
- package/dist/react/optgroup/index.d.ts +14 -0
- package/dist/react/optgroup/index.js +23 -0
- package/dist/react/option/index.d.ts +21 -0
- package/dist/react/option/index.js +30 -0
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
"use strict";(()=>{var
|
2
|
-
\f\r]`,
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
1
|
+
"use strict";(()=>{var Ta=Object.defineProperty;var Aa=Object.getOwnPropertyDescriptor;var l=(o,t,e,r)=>{for(var i=r>1?void 0:r?Aa(t,e):t,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(t,e,i):n(i))||i);return r&&i&&Ta(t,e,i),i};var Ar=globalThis,Sr=Ar.ShadowRoot&&(Ar.ShadyCSS===void 0||Ar.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,To=Symbol(),zi=new WeakMap,qt=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==To)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Sr&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=zi.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&zi.set(e,t))}return t}toString(){return this.cssText}},Di=o=>new qt(typeof o=="string"?o:o+"",void 0,To),f=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((r,i,s)=>r+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+o[s+1],o[0]);return new qt(e,o,To)},Ao=(o,t)=>{if(Sr)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),i=Ar.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=e.cssText,o.appendChild(r)}},_r=Sr?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return Di(e)})(o):o;var{is:Sa,defineProperty:_a,getOwnPropertyDescriptor:Ia,getOwnPropertyNames:wa,getOwnPropertySymbols:Ca,getPrototypeOf:La}=Object,Ve=globalThis,$i=Ve.trustedTypes,Ra=$i?$i.emptyScript:"",So=Ve.reactiveElementPolyfillSupport,Wt=(o,t)=>o,Xt={toAttribute(o,t){switch(t){case Boolean:o=o?Ra:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},Ir=(o,t)=>!Sa(o,t),Pi={attribute:!0,type:String,converter:Xt,reflect:!1,hasChanged:Ir},Ui,Vi;(Ui=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Vi=Ve.litPropertyMetadata)!=null||(Ve.litPropertyMetadata=new WeakMap);var Se=class extends HTMLElement{static addInitializer(t){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Pi){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),i=this.getPropertyDescriptor(t,r,e);i!==void 0&&_a(this.prototype,t,i)}}static getPropertyDescriptor(t,e,r){var n;let{get:i,set:s}=(n=Ia(this.prototype,t))!=null?n:{get(){return this[e]},set(a){this[e]=a}};return{get(){return i==null?void 0:i.call(this)},set(a){let c=i==null?void 0:i.call(this);s.call(this,a),this.requestUpdate(t,c,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:Pi}static _$Ei(){if(this.hasOwnProperty(Wt("elementProperties")))return;let t=La(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Wt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Wt("properties"))){let e=this.properties,r=[...wa(e),...Ca(e)];for(let i of r)this.createProperty(i,e[i])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,i]of e)this.elementProperties.set(r,i)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let i=this._$Eu(e,r);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let r=new Set(t.flat(1/0).reverse());for(let i of r)e.unshift(_r(i))}else t!==void 0&&e.push(_r(t));return e}static _$Eu(t,e){let r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e,r;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((r=t.hostConnected)==null||r.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var e;let t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Ao(t,this.constructor.elementStyles),t}connectedCallback(){var t,e;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(r=>{var i;return(i=r.hostConnected)==null?void 0:i.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostDisconnected)==null?void 0:r.call(e)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EC(t,e){var s;let r=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,r);if(i!==void 0&&r.reflect===!0){let n=(((s=r.converter)==null?void 0:s.toAttribute)!==void 0?r.converter:Xt).toAttribute(e,r.type);this._$Em=t,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){var s;let r=this.constructor,i=r._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let n=r.getPropertyOptions(i),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((s=n.converter)==null?void 0:s.fromAttribute)!==void 0?n.converter:Xt;this._$Em=i,this[i]=a.fromAttribute(e,n.type),this._$Em=null}}requestUpdate(t,e,r){var i;if(t!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(t)),!((i=r.hasChanged)!=null?i:Ir)(this[t],e))return;this.P(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,r){var i;this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$Em!==t&&((i=this._$Ej)!=null?i:this._$Ej=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[n,a]of s)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],a)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(s=>{var n;return(n=s.hostUpdate)==null?void 0:n.call(s)}),this.update(e)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(r=>{var i;return(i=r.hostUpdated)==null?void 0:i.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}},Fi;Se.elementStyles=[],Se.shadowRootOptions={mode:"open"},Se[Wt("elementProperties")]=new Map,Se[Wt("finalized")]=new Map,So==null||So({ReactiveElement:Se}),((Fi=Ve.reactiveElementVersions)!=null?Fi:Ve.reactiveElementVersions=[]).push("2.0.4");var jt=globalThis,wr=jt.trustedTypes,Hi=wr?wr.createPolicy("lit-html",{createHTML:o=>o}):void 0,wo="$lit$",_e=`lit$${Math.random().toFixed(9).slice(2)}$`,Co="?"+_e,ka=`<${Co}>`,Je=document,Kt=()=>Je.createComment(""),Qt=o=>o===null||typeof o!="object"&&typeof o!="function",Lo=Array.isArray,Zi=o=>Lo(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",_o=`[
|
2
|
+
\f\r]`,Zt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Bi=/-->/g,Gi=/>/g,Ke=RegExp(`>|${_o}(?:([^\\s"'>=/]+)(${_o}*=${_o}*(?:[^
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Yi=/'/g,qi=/"/g,ji=/^(?:script|style|textarea|title)$/i,Ro=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),h=Ro(1),Nc=Ro(2),Oc=Ro(3),Ie=Symbol.for("lit-noChange"),b=Symbol.for("lit-nothing"),Wi=new WeakMap,Qe=Je.createTreeWalker(Je,129);function Ki(o,t){if(!Lo(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Hi!==void 0?Hi.createHTML(t):t}var Qi=(o,t)=>{let e=o.length-1,r=[],i,s=t===2?"<svg>":t===3?"<math>":"",n=Zt;for(let a=0;a<e;a++){let c=o[a],m,p,u=-1,y=0;for(;y<c.length&&(n.lastIndex=y,p=n.exec(c),p!==null);)y=n.lastIndex,n===Zt?p[1]==="!--"?n=Bi:p[1]!==void 0?n=Gi:p[2]!==void 0?(ji.test(p[2])&&(i=RegExp("</"+p[2],"g")),n=Ke):p[3]!==void 0&&(n=Ke):n===Ke?p[0]===">"?(n=i!=null?i:Zt,u=-1):p[1]===void 0?u=-2:(u=n.lastIndex-p[2].length,m=p[1],n=p[3]===void 0?Ke:p[3]==='"'?qi:Yi):n===qi||n===Yi?n=Ke:n===Bi||n===Gi?n=Zt:(n=Ke,i=void 0);let g=n===Ke&&o[a+1].startsWith("/>")?" ":"";s+=n===Zt?c+ka:u>=0?(r.push(m),c.slice(0,u)+wo+c.slice(u)+_e+g):c+_e+(u===-2?a:g)}return[Ki(o,s+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},Jt=class o{constructor({strings:t,_$litType$:e},r){let i;this.parts=[];let s=0,n=0,a=t.length-1,c=this.parts,[m,p]=Qi(t,e);if(this.el=o.createElement(m,r),Qe.currentNode=this.el.content,e===2||e===3){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(i=Qe.nextNode())!==null&&c.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let u of i.getAttributeNames())if(u.endsWith(wo)){let y=p[n++],g=i.getAttribute(u).split(_e),x=/([.?@])?(.*)/.exec(y);c.push({type:1,index:s,name:x[2],strings:g,ctor:x[1]==="."?Lr:x[1]==="?"?Rr:x[1]==="@"?kr:tt}),i.removeAttribute(u)}else u.startsWith(_e)&&(c.push({type:6,index:s}),i.removeAttribute(u));if(ji.test(i.tagName)){let u=i.textContent.split(_e),y=u.length-1;if(y>0){i.textContent=wr?wr.emptyScript:"";for(let g=0;g<y;g++)i.append(u[g],Kt()),Qe.nextNode(),c.push({type:2,index:++s});i.append(u[y],Kt())}}}else if(i.nodeType===8)if(i.data===Co)c.push({type:2,index:s});else{let u=-1;for(;(u=i.data.indexOf(_e,u+1))!==-1;)c.push({type:7,index:s}),u+=_e.length-1}s++}}static createElement(t,e){let r=Je.createElement("template");return r.innerHTML=t,r}};function et(o,t,e=o,r){var n,a,c;if(t===Ie)return t;let i=r!==void 0?(n=e.o)==null?void 0:n[r]:e.l,s=Qt(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==s&&((a=i==null?void 0:i._$AO)==null||a.call(i,!1),s===void 0?i=void 0:(i=new s(o),i._$AT(o,e,r)),r!==void 0?((c=e.o)!=null?c:e.o=[])[r]=i:e.l=i),i!==void 0&&(t=et(o,i._$AS(o,t.values),i,r)),t}var Cr=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var m;let{el:{content:e},parts:r}=this._$AD,i=((m=t==null?void 0:t.creationScope)!=null?m:Je).importNode(e,!0);Qe.currentNode=i;let s=Qe.nextNode(),n=0,a=0,c=r[0];for(;c!==void 0;){if(n===c.index){let p;c.type===2?p=new wt(s,s.nextSibling,this,t):c.type===1?p=new c.ctor(s,c.name,c.strings,this,t):c.type===6&&(p=new Nr(s,this,t)),this._$AV.push(p),c=r[++a]}n!==(c==null?void 0:c.index)&&(s=Qe.nextNode(),n++)}return Qe.currentNode=Je,i}p(t){let e=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}},wt=class o{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this.v}constructor(t,e,r,i){var s;this.type=2,this._$AH=b,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=i,this.v=(s=i==null?void 0:i.isConnected)!=null?s:!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=et(this,t,e),Qt(t)?t===b||t==null||t===""?(this._$AH!==b&&this._$AR(),this._$AH=b):t!==this._$AH&&t!==Ie&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Zi(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==b&&Qt(this._$AH)?this._$AA.nextSibling.data=t:this.T(Je.createTextNode(t)),this._$AH=t}$(t){var s;let{values:e,_$litType$:r}=t,i=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=Jt.createElement(Ki(r.h,r.h[0]),this.options)),r);if(((s=this._$AH)==null?void 0:s._$AD)===i)this._$AH.p(e);else{let n=new Cr(i,this),a=n.u(this.options);n.p(e),this.T(a),this._$AH=n}}_$AC(t){let e=Wi.get(t.strings);return e===void 0&&Wi.set(t.strings,e=new Jt(t)),e}k(t){Lo(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,i=0;for(let s of t)i===e.length?e.push(r=new o(this.O(Kt()),this.O(Kt()),this,this.options)):r=e[i],r._$AI(s),i++;i<e.length&&(this._$AR(r&&r._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,e);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this.v=t,(e=this._$AP)==null||e.call(this,t))}},tt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,i,s){this.type=1,this._$AH=b,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=b}_$AI(t,e=this,r,i){let s=this.strings,n=!1;if(s===void 0)t=et(this,t,e,0),n=!Qt(t)||t!==this._$AH&&t!==Ie,n&&(this._$AH=t);else{let a=t,c,m;for(t=s[0],c=0;c<s.length-1;c++)m=et(this,a[r+c],e,c),m===Ie&&(m=this._$AH[c]),n||(n=!Qt(m)||m!==this._$AH[c]),m===b?t=b:t!==b&&(t+=(m!=null?m:"")+s[c+1]),this._$AH[c]=m}n&&!i&&this.j(t)}j(t){t===b?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},Lr=class extends tt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===b?void 0:t}},Rr=class extends tt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==b)}},kr=class extends tt{constructor(t,e,r,i,s){super(t,e,r,i,s),this.type=5}_$AI(t,e=this){var n;if((t=(n=et(this,t,e,0))!=null?n:b)===Ie)return;let r=this._$AH,i=t===b&&r!==b||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==b&&(r===b||i);i&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,r;typeof this._$AH=="function"?this._$AH.call((r=(e=this.options)==null?void 0:e.host)!=null?r:this.element,t):this._$AH.handleEvent(t)}},Nr=class{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){et(this,t)}},Ji={M:wo,P:_e,A:Co,C:1,L:Qi,R:Cr,D:Zi,V:et,I:wt,H:tt,N:Rr,U:kr,B:Lr,F:Nr},Io=jt.litHtmlPolyfillSupport,Xi;Io==null||Io(Jt,wt),((Xi=jt.litHtmlVersions)!=null?Xi:jt.litHtmlVersions=[]).push("3.2.0");var es=(o,t,e)=>{var s,n;let r=(s=e==null?void 0:e.renderBefore)!=null?s:t,i=r._$litPart$;if(i===void 0){let a=(n=e==null?void 0:e.renderBefore)!=null?n:null;r._$litPart$=i=new wt(t.insertBefore(Kt(),a),a,void 0,e!=null?e:{})}return i._$AI(o),i};var Fe=class extends Se{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var e,r;let t=super.createRenderRoot();return(r=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this.o=es(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this.o)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.o)==null||t.setConnected(!1)}render(){return Ie}},ts;Fe._$litElement$=!0,Fe.finalized=!0,(ts=globalThis.litElementHydrateSupport)==null||ts.call(globalThis,{LitElement:Fe});var ko=globalThis.litElementPolyfillSupport;ko==null||ko({LitElement:Fe});var rs;((rs=globalThis.litElementVersions)!=null?rs:globalThis.litElementVersions=[]).push("4.1.0");var Na={attribute:!0,type:String,converter:Xt,reflect:!1,hasChanged:Ir},Oa=(o=Na,t,e)=>{let{kind:r,metadata:i}=e,s=globalThis.litPropertyMetadata.get(i);if(s===void 0&&globalThis.litPropertyMetadata.set(i,s=new Map),s.set(e.name,o),r==="accessor"){let{name:n}=e;return{set(a){let c=t.get.call(this);t.set.call(this,a),this.requestUpdate(n,c,o)},init(a){return a!==void 0&&this.P(n,void 0,o),a}}}if(r==="setter"){let{name:n}=e;return function(a){let c=this[n];t.call(this,a),this.requestUpdate(n,c,o)}}throw Error("Unsupported decorator location: "+r)};function d(o){return(t,e)=>typeof e=="object"?Oa(o,t,e):((r,i,s)=>{let n=i.hasOwnProperty(s);return i.constructor.createProperty(s,n?{...r,wrapped:!0}:r),n?Object.getOwnPropertyDescriptor(i,s):void 0})(o,t,e)}function W(o){return d({...o,state:!0,attribute:!1})}var we=(o,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(o,t,e),e);function Or(o,t){return(e,r,i)=>{let s=n=>{var a,c;return(c=(a=n.renderRoot)==null?void 0:a.querySelector(o))!=null?c:null};if(t){let{get:n,set:a}=typeof r=="object"?e:i!=null?i:(()=>{let c=Symbol();return{get(){return this[c]},set(m){this[c]=m}}})();return we(e,r,{get(){let c=n.call(this);return c===void 0&&(c=s(this),(c!==null||this.hasUpdated)&&a.call(this,c)),c}})}return we(e,r,{get(){return s(this)}})}}function rt(o){return(t,e)=>{let{slot:r,selector:i}=o!=null?o:{},s="slot"+(r?`[name=${r}]`:":not([name])");return we(t,e,{get(){var c,m;let n=(c=this.renderRoot)==null?void 0:c.querySelector(s),a=(m=n==null?void 0:n.assignedElements(o))!=null?m:[];return i===void 0?a:a.filter(p=>p.matches(i))}})}}function os(o){return(t,e)=>{let{slot:r}=o!=null?o:{},i="slot"+(r?`[name=${r}]`:":not([name])");return we(t,e,{get(){var n,a;let s=(n=this.renderRoot)==null?void 0:n.querySelector(i);return(a=s==null?void 0:s.assignedNodes(o))!=null?a:[]}})}}var A=o=>o!=null?o:b;var is=f`
|
4
4
|
:host {
|
5
5
|
box-sizing: border-box;
|
6
6
|
}
|
@@ -10,11 +10,11 @@
|
|
10
10
|
:host *::after {
|
11
11
|
box-sizing: inherit;
|
12
12
|
}
|
13
|
-
`;var
|
13
|
+
`;var Mr=class extends Fe{static register(t){customElements.get(t)||customElements.define(t,this)}};Mr.styles=[is];var ss=Mr;var E=ss;var He=class extends Event{constructor(t,e,r){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=e,this.subscribe=r!=null?r:!1}};var Ct=class{constructor(t,e,r,i){var s;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(n,a)=>{this.unsubscribe&&(this.unsubscribe!==a&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=n,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(n,a)),this.unsubscribe=a},this.host=t,e.context!==void 0){let n=e;this.context=n.context,this.callback=n.callback,this.subscribe=(s=n.subscribe)!=null?s:!1}else this.context=e,this.callback=r,this.subscribe=i!=null?i:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new He(this.context,this.t,this.subscribe))}};var zr=class{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){let r=e||!Object.is(t,this.o);this.o=t,r&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(let[e,{disposer:r}]of this.subscriptions)e(this.o,r)},t!==void 0&&(this.value=t)}addCallback(t,e,r){if(!r)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});let{disposer:i}=this.subscriptions.get(t);t(this.value,i)}clearCallbacks(){this.subscriptions.clear()}};var No=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},Lt=class extends zr{constructor(t,e,r){var i,s;super(e.context!==void 0?e.initialValue:r),this.onContextRequest=n=>{let a=n.composedPath()[0];n.context===this.context&&a!==this.host&&(n.stopPropagation(),this.addCallback(n.callback,a,n.subscribe))},this.onProviderRequest=n=>{let a=n.composedPath()[0];if(n.context!==this.context||a===this.host)return;let c=new Set;for(let[m,{consumerHost:p}]of this.subscriptions)c.has(m)||(c.add(m),p.dispatchEvent(new He(this.context,m,!0)));n.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(s=(i=this.host).addController)==null||s.call(i,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new No(this.context))}};var Ma=f`
|
14
14
|
:host {
|
15
15
|
display: contents;
|
16
16
|
}
|
17
|
-
`,
|
17
|
+
`,as=Ma;var Dr=class extends E{constructor({context:t,initialValue:e}){super(),this.context=new Lt(this,{context:t,initialValue:e})}render(){return this.updateContext(),h`<slot></slot>`}};Dr.styles=[...E.styles,as];var ls=Dr;var Rt=ls;var za={PREFIX:"mdc",SEPARATOR:"-"},Da={NAMESPACE:za},Oo=Da;var $a=o=>[Oo.NAMESPACE.PREFIX,o].join(Oo.NAMESPACE.SEPARATOR),v={constructTagName:$a};var cs=v.constructTagName("avatar"),Y={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},Mo=99,Pa="user-regular",O={24:24,32:32,48:48,64:64,72:72,88:88,124:124},kt={TYPE:Y.PHOTO,SIZE:O[32],ICON_NAME:Pa};var $r=o=>{class t extends o{constructor(){super(...arguments);this.size=kt.SIZE;this.isTyping=!1}}return l([d({type:String})],t.prototype,"src",2),l([d({type:String})],t.prototype,"initials",2),l([d({type:String})],t.prototype,"presence",2),l([d({type:Number,reflect:!0,attribute:"size"})],t.prototype,"size",2),l([d({type:Number})],t.prototype,"counter",2),l([d({type:Boolean,attribute:"is-typing"})],t.prototype,"isTyping",2),t};var fe=o=>{class t extends o{}return l([d({type:String,attribute:"icon-name"})],t.prototype,"iconName",2),t};var k=f`
|
18
18
|
:host {
|
19
19
|
align-items: center;
|
20
20
|
display: flex;
|
@@ -22,7 +22,7 @@
|
|
22
22
|
justify-content: center;
|
23
23
|
width: fit-content;
|
24
24
|
}
|
25
|
-
`,z=(o=!1)=>{let t=
|
25
|
+
`,z=(o=!1)=>{let t=f`
|
26
26
|
:host {
|
27
27
|
--mdc-focus-ring-inner-color: var(--mds-color-theme-focus-default-0);
|
28
28
|
--mdc-focus-ring-middle-color: var(--mds-color-theme-focus-default-1);
|
@@ -35,10 +35,10 @@
|
|
35
35
|
--mdc-focus-ring-middle-offset: var(--mdc-focus-ring-inner-width);
|
36
36
|
--mdc-focus-ring-outer-offset: calc(var(--mdc-focus-ring-inner-width) + var(--mdc-focus-ring-middle-width));
|
37
37
|
}
|
38
|
-
`,e=
|
38
|
+
`,e=f`0 0 0 var(--mdc-focus-ring-inner-width) var(--mdc-focus-ring-inner-color),
|
39
39
|
0 0 0 var(--mdc-focus-ring-middle-width) var(--mdc-focus-ring-middle-color),
|
40
40
|
0 0 0 var(--mdc-focus-ring-outer-width) var(--mdc-focus-ring-outer-color)
|
41
|
-
`;return o?[t,
|
41
|
+
`;return o?[t,f`
|
42
42
|
.mdc-focus-ring:focus-visible {
|
43
43
|
outline: none;
|
44
44
|
}
|
@@ -62,7 +62,7 @@
|
|
62
62
|
outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
|
63
63
|
}
|
64
64
|
}
|
65
|
-
`]:[t,
|
65
|
+
`]:[t,f`
|
66
66
|
:host(:focus-visible) {
|
67
67
|
outline: none;
|
68
68
|
}
|
@@ -79,7 +79,7 @@
|
|
79
79
|
outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
|
80
80
|
}
|
81
81
|
}
|
82
|
-
`]};var
|
82
|
+
`]};var Ua=[k,f`
|
83
83
|
:host {
|
84
84
|
--mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
|
85
85
|
--mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
|
@@ -202,9 +202,9 @@
|
|
202
202
|
outline: 0.125rem solid;
|
203
203
|
}
|
204
204
|
}
|
205
|
-
`],
|
206
|
-
<mdc-presence part="presence" type="${this.presence}" size="${
|
207
|
-
`:b}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
|
205
|
+
`],ds=Ua;var ms=v.constructTagName("presence"),B={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"},U={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},Nt={TYPE:B.ACTIVE,SIZE:U.SMALL};var er=v.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"},N={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},Z={TYPE:w.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:N.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var ps=o=>({[O[124]]:U.XX_LARGE,[O[88]]:U.X_LARGE,[O[72]]:U.LARGE,[O[64]]:U.MIDSIZE,[O[48]]:U.SMALL,[O[32]]:U.X_SMALL,[O[24]]:U.XX_SMALL})[o]||U.X_SMALL,hs=o=>({[O[124]]:4.75,[O[88]]:3,[O[72]]:2.5,[O[64]]:2.25,[O[48]]:1.75,[O[32]]:1.25,[O[24]]:1})[o]||1.25,us=o=>({[O[124]]:w.HEADING_XLARGE_MEDIUM,[O[88]]:w.HEADING_LARGE_MEDIUM,[O[72]]:w.HEADING_MIDSIZE_MEDIUM,[O[64]]:w.HEADING_SMALL_MEDIUM,[O[48]]:w.HEADING_SMALL_MEDIUM,[O[32]]:w.BODY_MIDSIZE_MEDIUM,[O[24]]:w.BODY_SMALL_MEDIUM})[o]||w.BODY_MIDSIZE_MEDIUM;var tr=class extends $r(fe(E)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===Y.COUNTER&&(this.counter||this.counter===0)?b:this.presence?h`
|
206
|
+
<mdc-presence part="presence" type="${this.presence}" size="${ps(this.size)}"></mdc-presence>
|
207
|
+
`:b}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 h`
|
208
208
|
<img
|
209
209
|
part="photo"
|
210
210
|
src="${A(this.src)}"
|
@@ -213,27 +213,27 @@
|
|
213
213
|
@load="${this.handleOnLoad}"
|
214
214
|
@error="${this.handleOnError}"
|
215
215
|
/>
|
216
|
-
`}iconTemplate(){let e=this.iconName||
|
216
|
+
`}iconTemplate(){let e=this.iconName||kt.ICON_NAME;return h`
|
217
217
|
<mdc-icon
|
218
218
|
name="${A(e)}"
|
219
219
|
length-unit="rem"
|
220
|
-
size="${
|
220
|
+
size="${hs(this.size)}"
|
221
221
|
></mdc-icon>
|
222
|
-
`}textTemplate(e){return
|
222
|
+
`}textTemplate(e){return h`
|
223
223
|
<mdc-text
|
224
|
-
type="${
|
224
|
+
type="${us(this.size)}"
|
225
225
|
tagname="span"
|
226
226
|
>
|
227
227
|
${e}
|
228
228
|
</mdc-text>
|
229
|
-
`}generateCounterText(e){return e<0?"0":e>
|
229
|
+
`}generateCounterText(e){return e<0?"0":e>Mo?`${Mo}+`:e.toString()}generateInitialsText(e){return e.toUpperCase().slice(0,2)}generateTextContent(e){let r="";return e===Y.TEXT&&this.initials&&(r=this.generateInitialsText(this.initials)),e===Y.COUNTER&&(this.counter||this.counter===0)&&(r=this.generateCounterText(this.counter)),this.textTemplate(r)}getTypeBasedOnInputs(){return this.src?Y.PHOTO:this.iconName?Y.ICON:this.initials?Y.TEXT:this.counter||this.counter===0?Y.COUNTER:Y.ICON}getTemplateBasedOnType(e){switch(e){case Y.PHOTO:return this.photoTemplate();case Y.TEXT:case Y.COUNTER:return this.generateTextContent(e);case Y.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?h`<div part="loading-wrapper"><div part="loader"></div></div>`:b}getPhotoPlaceHolderContent(e){return this.isPhotoLoaded?b:e===Y.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():b}update(e){super.update(e),e.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let e=this.getTypeBasedOnInputs();return h`
|
230
230
|
<div part="content" aria-hidden="true">
|
231
231
|
${this.getPhotoPlaceHolderContent(e)}
|
232
232
|
${this.getTemplateBasedOnType(e)}
|
233
233
|
${this.getLoadingContent()}
|
234
234
|
${this.getPresenceTemplateBasedOnType(e)}
|
235
235
|
</div>
|
236
|
-
`}};
|
236
|
+
`}};tr.styles=[...E.styles,...ds],l([W()],tr.prototype,"isPhotoLoaded",2);var zo=tr;var Va=[k,f`
|
237
237
|
:host {
|
238
238
|
--mdc-icon-fill-color: currentColor;
|
239
239
|
--mdc-icon-size: var(--computed-icon-size);
|
@@ -248,7 +248,7 @@
|
|
248
248
|
width: 100%;
|
249
249
|
fill: var(--mdc-icon-fill-color);
|
250
250
|
}
|
251
|
-
`,...z()],
|
251
|
+
`,...z()],fs=Va;var Fa=o=>{let{host:t,context:e,subscribe:r}=o;return new Ct(t,{context:e,subscribe:r!=null?r:!0})},Ha={consume:Fa},gs=Ha;var Pr=v.constructTagName("iconprovider"),bs=["svg"],vs=["em","rem","px","%"],Ba={px:16,em:1,rem:1,"%":100},Ce={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Ba.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var Ur=class{};Ur.context=Pr;var Vr=Ur;var ge=class extends Rt{constructor(){super({context:Vr.context,initialValue:new Vr});this.iconSet=Ce.ICON_SET;this.fileExtension=Ce.FILE_EXTENSION;this.lengthUnit=Ce.LENGTH_UNIT;this.size=Ce.SIZE}static get Context(){return Vr.context}updateValuesInContext(){this.fileExtension&&bs.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=Ce.FILE_EXTENSION,this.context.value.fileExtension=Ce.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&&vs.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=Ce.LENGTH_UNIT,this.context.value.lengthUnit=Ce.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([d({type:String,attribute:"icon-set",reflect:!0})],ge.prototype,"iconSet",2),l([d({type:String})],ge.prototype,"url",2),l([d({type:String,attribute:"file-extension",reflect:!0})],ge.prototype,"fileExtension",2),l([d({type:String,attribute:"length-unit",reflect:!0})],ge.prototype,"lengthUnit",2),l([d({type:Number,reflect:!0})],ge.prototype,"size",2),l([d({type:String,attribute:"cache-strategy"})],ge.prototype,"cacheStrategy",2),l([d({type:String,attribute:"cache-name"})],ge.prototype,"cacheName",2);var rr=ge;var or={},ys=async o=>(or[o]===void 0&&(or[o]=new Map),{async set(t,e){or[o].set(t.url,await e.text())},async get(t){return or[o].get(t.url)},async delete(t){or[o].delete(t.url)}}),xs=async o=>{let t=await caches.open(o);return{set:async(e,r)=>{await t.put(e,r)},get:async e=>{let r=await t.match(e);return r==null?void 0:r.text()},delete:async e=>{await t.delete(e)}}},Es=async(o,t)=>t==="in-memory-cache"?ys(o):xs(o);var Ts=async o=>fetch(o).then(t=>{if(!t.ok)throw new Error("There was a problem while fetching the icon!");return t}),As=async({url:o,name:t,fileExtension:e,cacheStrategy:r,cacheName:i,renewSignal:s})=>{let n=s(),a=new Request(`${o}/${t}.${e}`,{signal:n});return!i||!r||!["in-memory-cache","web-cache-api"].includes(r)?Ts(a).then(c=>c.text()):Es(i,r).then(c=>c.get(a).then(m=>m||Ts(a.clone()).then(p=>{var u;return p.status<400&&p.headers.has("content-type")?(u=c.set)==null?void 0:u.call(c,a,p.clone()).then(()=>p.text()):p.text()})).catch(m=>{throw new Error(`Error in caching the Icon ${t}, ${m}`)}))};var Ss=v.constructTagName("icon"),Do={NAME:void 0,SIZE:1};var j=class extends E{constructor(){super();this.name=Do.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=gs.consume({host:this,context:rr.Context});this.abortController=new AbortController}prepareIconElement(e){let r=new DOMParser().parseFromString(e,"text/html").body.children[0];return this.name&&r.setAttribute("data-name",this.name),r.setAttribute("part","icon"),r.setAttribute("aria-hidden","true"),r}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:r,url:i,cacheName:s,iconSet:n,cacheStrategy:a}=this.iconProviderContext.value;if(n==="custom-icons"&&i&&r&&this.name){let c=()=>(this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal);return As({url:i,name:this.name,fileExtension:r,cacheName:s,cacheStrategy:a,renewSignal:c}).then(m=>{let p=this.prepareIconElement(m);this.handleIconLoadedSuccess(p)}).catch(m=>{this.handleIconLoadedFailure(m)})}if(n==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(c=>{this.handleIconLoadedSuccess(c.default())}).catch(c=>{this.handleIconLoadedFailure(c)})}let e=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(e),Promise.reject(e)}handleIconLoadedSuccess(e){this.iconData=e;let r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleIconLoadedFailure(e){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(r)}updateSize(){var e;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let r=`${this.computedIconSize}${(e=this.lengthUnit)!=null?e:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",r)}}get computedIconSize(){var e,r;return(r=(e=this.size)!=null?e:this.sizeFromContext)!=null?r:Do.SIZE}updated(e){var r,i,s,n;super.updated(e),e.has("name")&&this.getIconData().catch(a=>{a.name!=="AbortError"&&this.onerror&&this.onerror(a)}),(e.has("ariaLabel")||e.has("ariaLabelledBy"))&&(this.role=this.ariaLabel||this.ariaLabelledBy?"img":null),(e.has("size")||e.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((r=this.iconProviderContext.value)==null?void 0:r.lengthUnit)&&(this.lengthUnitFromContext=(i=this.iconProviderContext.value)==null?void 0:i.lengthUnit,this.updateSize()),this.sizeFromContext!==((s=this.iconProviderContext.value)==null?void 0:s.size)&&(this.sizeFromContext=(n=this.iconProviderContext.value)==null?void 0:n.size,this.updateSize())}render(){return h` ${this.iconData} `}};j.styles=[...E.styles,...fs],l([W()],j.prototype,"iconData",2),l([W()],j.prototype,"lengthUnitFromContext",2),l([W()],j.prototype,"sizeFromContext",2),l([d({type:String,reflect:!0})],j.prototype,"name",2),l([d({type:Number})],j.prototype,"size",2),l([d({type:String,attribute:"length-unit"})],j.prototype,"lengthUnit",2),l([d({type:String,attribute:"aria-label"})],j.prototype,"ariaLabel",2),l([d({type:String,attribute:"aria-labelledby"})],j.prototype,"ariaLabelledBy",2),l([W()],j.prototype,"abortController",2);var $o=j;$o.register(Ss);var Ga=$o;var Ya=[k,f`
|
252
252
|
:host {
|
253
253
|
--mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
|
254
254
|
--mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
|
@@ -342,7 +342,7 @@
|
|
342
342
|
.mdc-presence-icon__scheduled {
|
343
343
|
color: var(--mdc-presence-scheduled-background-color);
|
344
344
|
}
|
345
|
-
`],
|
345
|
+
`],_s=Ya;var Is=o=>{switch(o){case B.AWAY:return"recents-presence-badge-filled";case B.AWAY_CALLING:return"away-calling-presence-filled";case B.BUSY:return"busy-presence-bold";case B.DND:return"dnd-presence-badge-filled";case B.MEETING:return"camera-filled";case B.ON_CALL:return"handset-filled";case B.ON_DEVICE:return"generic-device-video-badge-filled";case B.ON_MOBILE:return"phone-badge-filled";case B.PAUSE:return"pause-badge-filled";case B.PTO:return"pto-presence-filled";case B.PRESENTING:return"share-screen-badge-filled";case B.QUIET:return"quiet-hours-presence-filled";case B.SCHEDULED:return"meetings-presence-badge-filled";case B.ACTIVE:default:return"active-presence-small-filled"}};var ot=class extends E{constructor(){super(...arguments);this.type=Nt.TYPE;this.size=Nt.SIZE;this.currentIconType=Nt.TYPE}get iconSize(){switch(this.size){case U.MIDSIZE:return 1.16125;case U.LARGE:return 1.30625;case U.X_LARGE:return 1.596875;case U.XX_LARGE:return 2.25;case U.XX_SMALL:case U.X_SMALL:case U.SMALL:default:return this.size=Nt.SIZE,.875}}get icon(){let e=Is(this.type);return e==="active-presence-small-filled"&&(this.type=Nt.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 h`
|
346
346
|
<div class="mdc-presence mdc-presence__${this.size}">
|
347
347
|
<mdc-icon
|
348
348
|
class="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
|
@@ -352,7 +352,7 @@
|
|
352
352
|
@error="${this.handleOnError}"
|
353
353
|
></mdc-icon>
|
354
354
|
</div>
|
355
|
-
`}};
|
355
|
+
`}};ot.styles=[...E.styles,..._s],l([d({type:String,reflect:!0})],ot.prototype,"type",2),l([d({type:String,reflect:!0})],ot.prototype,"size",2),l([W()],ot.prototype,"currentIconType",2);var Po=ot;Po.register(ms);var qa=Po;var ws=f`
|
356
356
|
:host::part(text) {
|
357
357
|
font-size: unset;
|
358
358
|
font-weight: unset;
|
@@ -595,14 +595,14 @@
|
|
595
595
|
text-decoration: var(--mds-font-apps-body-small-regular-text-decoration);
|
596
596
|
text-transform: var(--mds-font-apps-body-small-regular-text-case);
|
597
597
|
}
|
598
|
-
`;var
|
598
|
+
`;var Wa=[f`
|
599
599
|
:host {
|
600
600
|
--mdc-text-font-family: var(--mdc-themeprovider-font-family);
|
601
601
|
|
602
602
|
display: block;
|
603
603
|
font-family: var(--mdc-text-font-family);
|
604
604
|
}
|
605
|
-
`,
|
605
|
+
`,ws],Cs=Wa;var Ot=class extends E{constructor(){super(...arguments);this.type=Z.TYPE;this.tagname=Z.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case N.H1:return h`<h1 part=${Z.CSS_PART_TEXT}><slot></slot></h1>`;case N.H2:return h`<h2 part=${Z.CSS_PART_TEXT}><slot></slot></h2>`;case N.H3:return h`<h3 part=${Z.CSS_PART_TEXT}><slot></slot></h3>`;case N.H4:return h`<h4 part=${Z.CSS_PART_TEXT}><slot></slot></h4>`;case N.H5:return h`<h5 part=${Z.CSS_PART_TEXT}><slot></slot></h5>`;case N.H6:return h`<h6 part=${Z.CSS_PART_TEXT}><slot></slot></h6>`;case N.DIV:return h`<div part=${Z.CSS_PART_TEXT}><slot></slot></div>`;case N.SPAN:return h`<span part=${Z.CSS_PART_TEXT}><slot></slot></span>`;case N.SMALL:return h`<small part=${Z.CSS_PART_TEXT}><slot></slot></small>`;case N.P:default:return h`<p part=${Z.CSS_PART_TEXT}><slot></slot></p>`}}};Ot.styles=[...E.styles,...Cs],l([d({attribute:"type",reflect:!0,type:String})],Ot.prototype,"type",2),l([d({attribute:"tagname",reflect:!0,type:String})],Ot.prototype,"tagname",2);var Uo=Ot;Uo.register(er);var Xa=Uo;zo.register(cs);var Za=zo;var Eh=v.constructTagName("buttonsimple"),ja={20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},Mt={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Fr={SIZE:ja[32],TYPE:Mt.BUTTON,ROLE:"button"};var ir=v.constructTagName("button"),Le={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Hr={40:40,32:32,28:28,24:24},le={64:64,52:52,20:20,...Hr},Vo={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},zt={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},be={VARIANT:Le.PRIMARY,SIZE:Hr[32],COLOR:Vo.DEFAULT,TYPE_INTERNAL:zt.ICON,TYPE:Mt.BUTTON};var ve=o=>{class t extends o{constructor(){super(...arguments);this.disabled=!1}}return l([d({reflect:!0,type:Boolean})],t.prototype,"disabled",2),t};var Br=o=>{class t extends o{constructor(){super(...arguments);this.tabIndex=0}}return l([d({reflect:!0,type:Number})],t.prototype,"tabIndex",2),t};var Ka=[k,f`
|
606
606
|
:host {
|
607
607
|
border: 0.0625rem solid transparent;
|
608
608
|
cursor: pointer;
|
@@ -658,16 +658,16 @@
|
|
658
658
|
:host([size="20"]){
|
659
659
|
height: var(--mdc-button-height-size-20);
|
660
660
|
}
|
661
|
-
`,...z()],
|
661
|
+
`,...z()],Ls=Ka;var ye=class extends Br(ve(E)){constructor(){super();this.active=!1;this.softDisabled=!1;this.size=Fr.SIZE;this.role=Fr.ROLE;this.type=Fr.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===Mt.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===Mt.RESET&&this.form&&this.form.reset()}setActive(e,r){r?e.setAttribute("aria-pressed","true"):e.removeAttribute("aria-pressed")}setSoftDisabled(e,r){r?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled")}setDisabled(e,r){r?(e.setAttribute("aria-disabled","true"),this.prevTabindex=this.tabIndex,this.tabIndex=-1):(this.tabIndex===-1&&(this.tabIndex=this.prevTabindex),e.removeAttribute("aria-disabled"))}triggerClickEvent(){let e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});this.dispatchEvent(e)}handleBlur(){this.classList.contains("pressed")&&this.classList.remove("pressed")}handleKeyDown(e){["Enter"," "].includes(e.key)&&(this.classList.add("pressed"),e.key==="Enter"&&this.triggerClickEvent())}handleKeyUp(e){["Enter"," "].includes(e.key)&&(this.classList.remove("pressed"),e.key===" "&&this.triggerClickEvent())}render(){return h`
|
662
662
|
<slot></slot>
|
663
|
-
`}};
|
663
|
+
`}};ye.formAssociated=!0,ye.styles=[...E.styles,...Ls],l([d({type:Boolean,reflect:!0})],ye.prototype,"active",2),l([d({type:Boolean,attribute:"soft-disabled"})],ye.prototype,"softDisabled",2),l([d({type:Number,reflect:!0})],ye.prototype,"size",2),l([d({type:String,reflect:!0})],ye.prototype,"role",2),l([d({reflect:!0})],ye.prototype,"type",2);var Be=ye;var Qa=[k,f`
|
664
664
|
:host {
|
665
665
|
padding: unset;
|
666
666
|
margin: unset;
|
667
667
|
outline: none;
|
668
668
|
border-radius: 0.25rem;
|
669
669
|
}
|
670
|
-
`,...z()],
|
670
|
+
`,...z()],Rs=Qa;var sr=class extends $r(fe(Be)){constructor(){super();this.ariaLabel=null;this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role="button",this.type=be.TYPE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(O).includes(e)?`${e}`:kt.SIZE.toString())}render(){return h`
|
671
671
|
<mdc-avatar
|
672
672
|
slot="prefixIcon"
|
673
673
|
?is-typing="${this.isTyping}"
|
@@ -678,7 +678,7 @@
|
|
678
678
|
size="${A(this.size)}"
|
679
679
|
src="${A(this.src)}"
|
680
680
|
></mdc-avatar>
|
681
|
-
`}};
|
681
|
+
`}};sr.styles=[...Rs],l([d({type:String,attribute:"aria-label"})],sr.prototype,"ariaLabel",2);var Fo=sr;var ks=v.constructTagName("avatarbutton");Fo.register(ks);var Ja=Fo;var Gr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},nr=o=>(...t)=>({_$litDirective$:o,values:t}),Dt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this.t=t,this._$AM=e,this.i=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var Yr=nr(class extends Dt{constructor(o){var t;if(super(o),o.type!==Gr.ATTRIBUTE||o.name!=="class"||((t=o.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(t=>o[t]).join(" ")+" "}update(o,[t]){var r,i;if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(let s in t)t[s]&&!((r=this.nt)!=null&&r.has(s))&&this.st.add(s);return this.render(t)}let e=o.element.classList;for(let s of this.st)s in t||(e.remove(s),this.st.delete(s));for(let s in t){let n=!!t[s];n===this.st.has(s)||(i=this.nt)!=null&&i.has(s)||(n?(e.add(s),this.st.add(s)):(e.remove(s),this.st.delete(s)))}return Ie}});var Ns=v.constructTagName("badge"),Re={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},qr={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},Wr={PRIMARY:"primary",SECONDARY:"secondary"},ar={SUCCESS:"success",WARNING:"warning",ERROR:"error"},vu={...Wr,...ar},Ge={TYPE:Re.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:Wr.PRIMARY,ICON_SIZE:1};var el=[k,f`
|
682
682
|
:host {
|
683
683
|
--mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
|
684
684
|
--mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
|
@@ -747,21 +747,21 @@
|
|
747
747
|
outline: 0.125rem solid;
|
748
748
|
}
|
749
749
|
}
|
750
|
-
`],
|
750
|
+
`],Os=el;var xe=class extends fe(E){constructor(){super(...arguments);this.variant=Ge.VARIANT;this.maxCounter=Ge.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,r){return r===void 0||typeof r!="number"||e===0?"":r>e?`${e}+`:e>Ge.MAX_COUNTER_LIMIT||r>Ge.MAX_COUNTER_LIMIT?`${Ge.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(e,r){return h`
|
751
751
|
<mdc-icon
|
752
|
-
class="mdc-badge-icon ${
|
752
|
+
class="mdc-badge-icon ${Yr({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${r}`]:!0})}"
|
753
753
|
name="${A(e)}"
|
754
754
|
size="${Ge.ICON_SIZE}"
|
755
755
|
></mdc-icon>
|
756
|
-
`}getBadgeDot(){return
|
756
|
+
`}getBadgeDot(){return h`<div class="mdc-badge-dot ${Yr({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return h`
|
757
757
|
<mdc-text
|
758
|
-
type="${
|
759
|
-
tagname="${
|
760
|
-
class="mdc-badge-text ${
|
758
|
+
type="${w.BODY_SMALL_MEDIUM}"
|
759
|
+
tagname="${N.DIV}"
|
760
|
+
class="mdc-badge-text ${Yr({"mdc-badge-overlay":this.overlay})}"
|
761
761
|
>
|
762
762
|
${this.getCounterText(this.maxCounter,this.counter)}
|
763
763
|
</mdc-text>
|
764
|
-
`}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(
|
764
|
+
`}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(Wr).includes(this.variant)&&(this.variant=Ge.VARIANT);let{iconName:e,type:r,variant:i}=this;switch(r){case Re.ICON:return this.getBadgeIcon(e||"",i);case Re.COUNTER:return this.getBadgeCounterText();case Re.SUCCESS:return this.getBadgeIcon(qr.SUCCESS_ICON_NAME,ar.SUCCESS);case Re.WARNING:return this.getBadgeIcon(qr.WARNING_ICON_NAME,ar.WARNING);case Re.ERROR:return this.getBadgeIcon(qr.ERROR_ICON_NAME,ar.ERROR);case Re.DOT:default:return this.type=Re.DOT,this.getBadgeDot()}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};xe.styles=[...E.styles,...Os],l([d({type:String,reflect:!0})],xe.prototype,"type",2),l([d({type:String,reflect:!0})],xe.prototype,"variant",2),l([d({type:Number})],xe.prototype,"counter",2),l([d({type:Number,attribute:"max-counter",reflect:!0})],xe.prototype,"maxCounter",2),l([d({type:Boolean})],xe.prototype,"overlay",2),l([d({type:String,attribute:"aria-label"})],xe.prototype,"ariaLabel",2);var Ho=xe;Ho.register(Ns);var tl=Ho;var rl=f`
|
765
765
|
:host {
|
766
766
|
--mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
|
767
767
|
--mdc-bullet-size-small: 0.25rem;
|
@@ -782,7 +782,7 @@
|
|
782
782
|
:host([size="large"]) {
|
783
783
|
height: var(--mdc-bullet-size-large);
|
784
784
|
}
|
785
|
-
`,
|
785
|
+
`,Ms=[rl];var zs=v.constructTagName("bullet"),Ds={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var lr=class extends E{constructor(){super(...arguments);this.size=Ds.SMALL}};lr.styles=[...E.styles,...Ms],l([d({type:String,reflect:!0})],lr.prototype,"size",2);var Bo=lr;Bo.register(zs);var ol=Bo;var il=f`
|
786
786
|
:host {
|
787
787
|
background-color: transparent;
|
788
788
|
border-radius: 1.25rem;
|
@@ -954,8 +954,8 @@
|
|
954
954
|
--mdc-button-secondary-hover-background-color: var(--mds-color-theme-button-secondary-hover);
|
955
955
|
--mdc-button-secondary-pressed-background-color: var(--mds-color-theme-button-secondary-pressed);
|
956
956
|
}
|
957
|
-
|
958
|
-
${this.prefixIcon?
|
957
|
+
`,$s=[il];var Ps=o=>{switch(o){case le[64]:return 2;case le[52]:return 1.75;case le[40]:return 1.25;default:return 1}},cr=o=>{let t=o.split("-"),e=["bold","filled","regular","light"];return t.filter(r=>!e.includes(r)).join("-")};var J=class extends Be{constructor(){super(...arguments);this.variant=be.VARIANT;this.size=be.SIZE;this.color=be.COLOR;this.role="button";this.typeInternal=be.TYPE_INTERNAL;this.iconSize=1}update(e){super.update(e),e.has("active")&&this.modifyIconName(this.active),e.has("size")&&this.setSize(this.size),e.has("variant")&&(this.setVariant(this.variant),this.setSize(this.size)),e.has("color")&&this.setColor(this.color),e.has("typeInternal")&&this.setSize(this.size),(e.has("prefixIcon")||e.has("postfixIcon"))&&this.inferButtonType()}modifyIconName(e){e?(this.prefixIcon&&(this.prevPrefixIcon=this.prefixIcon,this.prefixIcon=`${cr(this.prefixIcon)}-filled`),this.postfixIcon&&(this.prevPostfixIcon=this.postfixIcon,this.postfixIcon=`${cr(this.postfixIcon)}-filled`)):(this.prevPrefixIcon&&(this.prefixIcon=this.prevPrefixIcon),this.prevPostfixIcon&&(this.postfixIcon=this.prevPostfixIcon))}setVariant(e){this.setAttribute("variant",Object.values(Le).includes(e)?e:be.VARIANT)}setSize(e){let i=this.typeInternal===zt.ICON?Object.values(le).includes(e)&&!(e===le[20]&&this.variant!==Le.TERTIARY):Object.values(Hr).includes(e);this.setAttribute("size",i?`${e}`:`${be.SIZE}`),this.iconSize=Ps(e)}setColor(e){!Object.values(Vo).includes(e)||this.variant===Le.TERTIARY?this.setAttribute("color",`${be.COLOR}`):this.setAttribute("color",e)}inferButtonType(){var r,i;let e=(i=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"))==null?void 0:i.assignedNodes().filter(s=>{var n;return s.nodeType!==Node.TEXT_NODE||((n=s.textContent)==null?void 0:n.trim())}).length;e&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=zt.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!e&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=zt.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=zt.PILL,this.setAttribute("data-btn-type","pill"))}render(){return h`
|
958
|
+
${this.prefixIcon?h` <mdc-icon
|
959
959
|
name="${this.prefixIcon}"
|
960
960
|
part="prefix-icon"
|
961
961
|
size=${this.iconSize}
|
@@ -963,14 +963,14 @@
|
|
963
963
|
>
|
964
964
|
</mdc-icon>`:""}
|
965
965
|
<slot @slotchange=${this.inferButtonType}></slot>
|
966
|
-
${this.postfixIcon?
|
966
|
+
${this.postfixIcon?h` <mdc-icon
|
967
967
|
name="${this.postfixIcon}"
|
968
968
|
part="postfix-icon"
|
969
969
|
size=${this.iconSize}
|
970
970
|
length-unit="rem"
|
971
971
|
>
|
972
972
|
</mdc-icon>`:""}
|
973
|
-
`}};J.styles=[...Be.styles
|
973
|
+
`}};J.styles=[...Be.styles,...$s],l([d({type:String,attribute:"prefix-icon",reflect:!0})],J.prototype,"prefixIcon",2),l([d({type:String,attribute:"postfix-icon",reflect:!0})],J.prototype,"postfixIcon",2),l([d({type:String})],J.prototype,"variant",2),l([d({type:Number})],J.prototype,"size",2),l([d({type:String})],J.prototype,"color",2),l([d({type:String,reflect:!0})],J.prototype,"role",2),l([W()],J.prototype,"typeInternal",2),l([W()],J.prototype,"iconSize",2);var Go=J;Go.register(ir);var sl=Go;var V=o=>{class t extends o{constructor(){super(...arguments);this.dataAriaLabel=null}}return l([d({type:String,reflect:!0,attribute:"data-aria-label"})],t.prototype,"dataAriaLabel",2),t};var H=[];for(let o=0;o<256;++o)H.push((o+256).toString(16).slice(1));function Us(o,t=0){return(H[o[t+0]]+H[o[t+1]]+H[o[t+2]]+H[o[t+3]]+"-"+H[o[t+4]]+H[o[t+5]]+"-"+H[o[t+6]]+H[o[t+7]]+"-"+H[o[t+8]]+H[o[t+9]]+"-"+H[o[t+10]]+H[o[t+11]]+H[o[t+12]]+H[o[t+13]]+H[o[t+14]]+H[o[t+15]]).toLowerCase()}var Yo,nl=new Uint8Array(16);function qo(){if(!Yo){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Yo=crypto.getRandomValues.bind(crypto)}return Yo(nl)}var al=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Wo={randomUUID:al};function ll(o,t,e){var i,s,n;if(Wo.randomUUID&&!t&&!o)return Wo.randomUUID();o=o||{};let r=(n=(s=o.random)!=null?s:(i=o.rng)==null?void 0:i.call(o))!=null?n:qo();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(e=e||0,e<0||e+16>t.length)throw new RangeError(`UUID byte range ${e}:${e+15} is out of buffer bounds`);for(let a=0;a<16;++a)t[e+a]=r[a];return t}return Us(r)}var dr=ll;var ee=o=>{class t extends o{constructor(...i){super(i);this.name="";this.value="";this.internals=this.attachInternals(),this.id=`mdc-input-${dr()}`}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 t.formAssociated=!0,l([d({reflect:!0,type:String})],t.prototype,"name",2),l([d({reflect:!0,type:String})],t.prototype,"value",2),l([d({reflect:!0,type:String,attribute:"validation-message"})],t.prototype,"validationMessage",2),l([Or("input")],t.prototype,"inputElement",2),t};var Vs=v.constructTagName("formfieldwrapper"),te={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},F={VALIDATION:te.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id"},it={TAGNAME:N.SPAN,TYPE:w.BODY_MIDSIZE_REGULAR,HEADER_TYPE:w.BODY_MIDSIZE_BOLD};var cl=[k,f`
|
974
974
|
:host {
|
975
975
|
flex-direction: column;
|
976
976
|
align-items: flex-start;
|
@@ -1019,33 +1019,33 @@
|
|
1019
1019
|
:host([help-text-type='priority']) .mdc-help-text {
|
1020
1020
|
color: var(--mds-color-theme-text-accent-normal);
|
1021
1021
|
}
|
1022
|
-
`],
|
1023
|
-
id="${
|
1024
|
-
tagname="${
|
1025
|
-
type="${
|
1022
|
+
`],Fs=cl;var Hs=o=>({[te.ERROR]:"error-legacy-badge-filled",[te.WARNING]:"warning-badge-filled",[te.SUCCESS]:"check-circle-badge-filled",[te.PRIORITY]:"priority-badge-filled",[te.DEFAULT]:""})[o]||"";var ke=class extends ve(E){constructor(){super(...arguments);this.id="";this.helpTextType=F.VALIDATION;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?h`<label for="${this.id}" class="mdc-label" part="label">${this.label}</label>`:h` <mdc-text
|
1023
|
+
id="${F.HEADING_ID}"
|
1024
|
+
tagname="${it.TAGNAME}"
|
1025
|
+
type="${it.HEADER_TYPE}"
|
1026
1026
|
part="label"
|
1027
1027
|
>${this.label}</mdc-text
|
1028
|
-
>`:b}renderRequiredLabel(){return this.requiredLabel?
|
1029
|
-
<mdc-text part="required-label" tagname=${
|
1028
|
+
>`:b}renderRequiredLabel(){return this.requiredLabel?h`
|
1029
|
+
<mdc-text part="required-label" tagname=${it.TAGNAME} type=${it.TYPE}>
|
1030
1030
|
(${this.requiredLabel})
|
1031
1031
|
</mdc-text>
|
1032
|
-
`:b}renderHelpTextIcon(){if(!this.helpText)return b;let e=
|
1032
|
+
`:b}renderHelpTextIcon(){if(!this.helpText)return b;let e=Hs(this.helpTextType||F.VALIDATION);return e&&!this.disabled?h`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${e}></mdc-icon>`:b}renderHelpText(){return this.helpText?h`
|
1033
1033
|
<mdc-text
|
1034
|
-
id="${
|
1034
|
+
id="${F.HELPER_TEXT_ID}"
|
1035
1035
|
part="help-text"
|
1036
|
-
tagname=${
|
1037
|
-
type=${
|
1036
|
+
tagname=${it.TAGNAME}
|
1037
|
+
type=${it.TYPE}
|
1038
1038
|
>
|
1039
1039
|
${this.helpText}
|
1040
1040
|
</mdc-text>
|
1041
|
-
`:b}renderLabel(){return this.label?
|
1041
|
+
`:b}renderLabel(){return this.label?h`<div class="mdc-label-text" part="label-text">
|
1042
1042
|
<slot name="label">${this.renderLabelElement()}</slot>
|
1043
1043
|
<slot name="required-label">${this.renderRequiredLabel()}</slot>
|
1044
1044
|
<slot name="label-info"></slot>
|
1045
|
-
</div>`:b}renderHelperText(){return this.helpText?
|
1045
|
+
</div>`:b}renderHelperText(){return this.helpText?h`<div class="mdc-help-text" part="mdc-help-text">
|
1046
1046
|
<slot name="help-icon">${this.renderHelpTextIcon()}</slot>
|
1047
1047
|
<slot name="help-text">${this.renderHelpText()}</slot>
|
1048
|
-
</div>`:b}};
|
1048
|
+
</div>`:b}};ke.styles=[...E.styles,...Fs],l([d({reflect:!0,type:String})],ke.prototype,"label",2),l([d({type:String,reflect:!0,attribute:"required-label"})],ke.prototype,"requiredLabel",2),l([d({type:String})],ke.prototype,"id",2),l([d({reflect:!0,attribute:"help-text-type"})],ke.prototype,"helpTextType",2),l([d({type:String,reflect:!0,attribute:"help-text"})],ke.prototype,"helpText",2);var re=ke;var Bs=v.constructTagName("checkbox"),Xo={CHECKED:"check-bold",INDETERMINATE:"minus-bold"};var dl=[f`
|
1049
1049
|
:host {
|
1050
1050
|
--mdc-checkbox-background-color-hover: var(--mds-color-theme-control-inactive-hover);
|
1051
1051
|
--mdc-checkbox-border-color: var(--mds-color-theme-outline-button-normal);
|
@@ -1149,17 +1149,17 @@
|
|
1149
1149
|
border: 0.0625rem solid var(--mdc-checkbox-border-color);
|
1150
1150
|
}
|
1151
1151
|
}
|
1152
|
-
`,...z(!0)],
|
1152
|
+
`,...z(!0)],Gs=dl;var st=class extends ee(V(re)){constructor(){super();this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?h`<div class="text-container">
|
1153
1153
|
${this.renderLabel()}
|
1154
1154
|
${this.renderHelperText()}
|
1155
|
-
</div>`:b;this.helpTextType=void 0}setFormValue(){let e=null;this.checked?e=this.value?this.value:"on":e=null,this.manageRequired(),this.internals.setFormValue(e)}manageRequired(){!this.checked&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.checked=!1,this.indeterminate=!1}formStateRestoreCallback(e){e&&(this.checked=!0)}toggleState(){this.disabled||(this.checked=!this.checked,this.indeterminate=!1)}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}handleChange(e){this.toggleState();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}update(e){super.update(e),e.has("checked")&&this.setFormValue()}render(){var r;let e=this.checked||this.indeterminate?
|
1155
|
+
</div>`:b;this.helpTextType=void 0}setFormValue(){let e=null;this.checked?e=this.value?this.value:"on":e=null,this.manageRequired(),this.internals.setFormValue(e)}manageRequired(){!this.checked&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.checked=!1,this.indeterminate=!1}formStateRestoreCallback(e){e&&(this.checked=!0)}toggleState(){this.disabled||(this.checked=!this.checked,this.indeterminate=!1)}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}handleChange(e){this.toggleState();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}update(e){super.update(e),e.has("checked")&&this.setFormValue()}render(){var r;let e=this.checked||this.indeterminate?h`
|
1156
1156
|
<mdc-icon
|
1157
1157
|
class="icon"
|
1158
|
-
name="${this.indeterminate?
|
1158
|
+
name="${this.indeterminate?Xo.INDETERMINATE:Xo.CHECKED}"
|
1159
1159
|
size="1"
|
1160
1160
|
length-unit="rem"
|
1161
1161
|
></mdc-icon>
|
1162
|
-
`:b;return
|
1162
|
+
`:b;return h`
|
1163
1163
|
<div class="container mdc-focus-ring">
|
1164
1164
|
<input
|
1165
1165
|
id="${this.id}"
|
@@ -1175,14 +1175,14 @@
|
|
1175
1175
|
.disabled="${this.disabled}"
|
1176
1176
|
aria-label="${(r=this.dataAriaLabel)!=null?r:""}"
|
1177
1177
|
tabindex="${this.disabled?-1:0}"
|
1178
|
-
aria-describedby="${A(this.helpText?
|
1178
|
+
aria-describedby="${A(this.helpText?F.HELPER_TEXT_ID:"")}"
|
1179
1179
|
@change=${this.handleChange}
|
1180
1180
|
@keydown=${this.handleKeyDown}
|
1181
1181
|
/>
|
1182
1182
|
<div class="icon-container">${e}</div>
|
1183
1183
|
</div>
|
1184
1184
|
${this.renderLabelAndHelperText()}
|
1185
|
-
`}};it.styles=[...te.styles,...Ps],l([d({type:Boolean,reflect:!0})],it.prototype,"checked",2),l([d({type:Boolean,reflect:!0})],it.prototype,"indeterminate",2),l([d({type:Boolean,reflect:!0})],it.prototype,"autofocus",2);var qo=it;qo.register($s);var el=qo;var xe=Math.min,q=Math.max,cr=Math.round,dr=Math.floor,le=o=>({x:o,y:o}),tl={left:"right",right:"left",bottom:"top",top:"bottom"},rl={start:"end",end:"start"};function qr(o,t,e){return q(o,xe(t,e))}function st(o,t){return typeof o=="function"?o(t):o}function ke(o){return o.split("-")[0]}function nt(o){return o.split("-")[1]}function Wo(o){return o==="x"?"y":"x"}function Wr(o){return o==="y"?"height":"width"}function Ye(o){return["top","bottom"].includes(ke(o))?"y":"x"}function Xr(o){return Wo(Ye(o))}function Us(o,t,e){e===void 0&&(e=!1);let r=nt(o),i=Xr(o),s=Wr(i),n=i==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(n=lr(n)),[n,lr(n)]}function Vs(o){let t=lr(o);return[Yr(o),t,Yr(t)]}function Yr(o){return o.replace(/start|end/g,t=>rl[t])}function ol(o,t,e){let r=["left","right"],i=["right","left"],s=["top","bottom"],n=["bottom","top"];switch(o){case"top":case"bottom":return e?t?i:r:t?r:i;case"left":case"right":return t?s:n;default:return[]}}function Fs(o,t,e,r){let i=nt(o),s=ol(ke(o),e==="start",r);return i&&(s=s.map(n=>n+"-"+i),t&&(s=s.concat(s.map(Yr)))),s}function lr(o){return o.replace(/left|right|bottom|top/g,t=>tl[t])}function il(o){return{top:0,right:0,bottom:0,left:0,...o}}function Xo(o){return typeof o!="number"?il(o):{top:o,right:o,bottom:o,left:o}}function at(o){let{x:t,y:e,width:r,height:i}=o;return{width:r,height:i,top:e,left:t,right:t+r,bottom:e+i,x:t,y:e}}function Hs(o,t,e){let{reference:r,floating:i}=o,s=Ye(t),n=Xr(t),a=Wr(n),c=ke(t),m=s==="y",h=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,y=r[a]/2-i[a]/2,f;switch(c){case"top":f={x:h,y:r.y-i.height};break;case"bottom":f={x:h,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:p};break;case"left":f={x:r.x-i.width,y:p};break;default:f={x:r.x,y:r.y}}switch(nt(t)){case"start":f[n]-=y*(e&&m?-1:1);break;case"end":f[n]+=y*(e&&m?-1:1);break}return f}var Bs=async(o,t,e)=>{let{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:n}=e,a=s.filter(Boolean),c=await(n.isRTL==null?void 0:n.isRTL(t)),m=await n.getElementRects({reference:o,floating:t,strategy:i}),{x:h,y:p}=Hs(m,r,c),y=r,f={},x=0;for(let T=0;T<a.length;T++){let{name:_,fn:S}=a[T],{x:I,y:L,data:P,reset:M}=await S({x:h,y:p,initialPlacement:r,placement:y,strategy:i,middlewareData:f,rects:m,platform:n,elements:{reference:o,floating:t}});h=I!=null?I:h,p=L!=null?L:p,f={...f,[_]:{...f[_],...P}},M&&x<=50&&(x++,typeof M=="object"&&(M.placement&&(y=M.placement),M.rects&&(m=M.rects===!0?await n.getElementRects({reference:o,floating:t,strategy:i}):M.rects),{x:h,y:p}=Hs(m,y,c)),T=-1)}return{x:h,y:p,placement:y,strategy:i,middlewareData:f}};async function Zr(o,t){var e;t===void 0&&(t={});let{x:r,y:i,platform:s,rects:n,elements:a,strategy:c}=o,{boundary:m="clippingAncestors",rootBoundary:h="viewport",elementContext:p="floating",altBoundary:y=!1,padding:f=0}=st(t,o),x=Xo(f),_=a[y?p==="floating"?"reference":"floating":p],S=at(await s.getClippingRect({element:(e=await(s.isElement==null?void 0:s.isElement(_)))==null||e?_:_.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:m,rootBoundary:h,strategy:c})),I=p==="floating"?{x:r,y:i,width:n.floating.width,height:n.floating.height}:n.reference,L=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),P=await(s.isElement==null?void 0:s.isElement(L))?await(s.getScale==null?void 0:s.getScale(L))||{x:1,y:1}:{x:1,y:1},M=at(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:I,offsetParent:L,strategy:c}):I);return{top:(S.top-M.top+x.top)/P.y,bottom:(M.bottom-S.bottom+x.bottom)/P.y,left:(S.left-M.left+x.left)/P.x,right:(M.right-S.right+x.right)/P.x}}var Gs=o=>({name:"arrow",options:o,async fn(t){let{x:e,y:r,placement:i,rects:s,platform:n,elements:a,middlewareData:c}=t,{element:m,padding:h=0}=st(o,t)||{};if(m==null)return{};let p=Xo(h),y={x:e,y:r},f=Xr(i),x=Wr(f),T=await n.getDimensions(m),_=f==="y",S=_?"top":"left",I=_?"bottom":"right",L=_?"clientHeight":"clientWidth",P=s.reference[x]+s.reference[f]-y[f]-s.floating[x],M=y[f]-s.reference[f],Q=await(n.getOffsetParent==null?void 0:n.getOffsetParent(m)),se=Q?Q[L]:0;(!se||!await(n.isElement==null?void 0:n.isElement(Q)))&&(se=a.floating[L]||s.floating[x]);let Ee=P/2-M/2,me=se/2-T[x]/2-1,ne=xe(p[S],me),ze=xe(p[I],me),he=ne,De=se-T[x]-ze,G=se/2-T[x]/2+Ee,St=qr(he,G,De),Te=!c.arrow&&nt(i)!=null&&G!==St&&s.reference[x]/2-(G<he?ne:ze)-T[x]/2<0,pe=Te?G<he?G-he:G-De:0;return{[f]:y[f]+pe,data:{[f]:St,centerOffset:G-St-pe,...Te&&{alignmentOffset:pe}},reset:Te}}});var Ys=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(t){var e,r;let{placement:i,middlewareData:s,rects:n,initialPlacement:a,platform:c,elements:m}=t,{mainAxis:h=!0,crossAxis:p=!0,fallbackPlacements:y,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:T=!0,..._}=st(o,t);if((e=s.arrow)!=null&&e.alignmentOffset)return{};let S=ke(i),I=Ye(a),L=ke(a)===a,P=await(c.isRTL==null?void 0:c.isRTL(m.floating)),M=y||(L||!T?[lr(a)]:Vs(a)),Q=x!=="none";!y&&Q&&M.push(...Fs(a,T,x,P));let se=[a,...M],Ee=await Zr(t,_),me=[],ne=((r=s.flip)==null?void 0:r.overflows)||[];if(h&&me.push(Ee[S]),p){let G=Us(i,n,P);me.push(Ee[G[0]],Ee[G[1]])}if(ne=[...ne,{placement:i,overflows:me}],!me.every(G=>G<=0)){var ze,he;let G=(((ze=s.flip)==null?void 0:ze.index)||0)+1,St=se[G];if(St)return{data:{index:G,overflows:ne},reset:{placement:St}};let Te=(he=ne.filter(pe=>pe.overflows[0]<=0).sort((pe,$e)=>pe.overflows[1]-$e.overflows[1])[0])==null?void 0:he.placement;if(!Te)switch(f){case"bestFit":{var De;let pe=(De=ne.filter($e=>{if(Q){let Pe=Ye($e.placement);return Pe===I||Pe==="y"}return!0}).map($e=>[$e.placement,$e.overflows.filter(Pe=>Pe>0).reduce((Pe,da)=>Pe+da,0)]).sort(($e,Pe)=>$e[1]-Pe[1])[0])==null?void 0:De[0];pe&&(Te=pe);break}case"initialPlacement":Te=a;break}if(i!==Te)return{reset:{placement:Te}}}return{}}}};async function sl(o,t){let{placement:e,platform:r,elements:i}=o,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),n=ke(e),a=nt(e),c=Ye(e)==="y",m=["left","top"].includes(n)?-1:1,h=s&&c?-1:1,p=st(t,o),{mainAxis:y,crossAxis:f,alignmentAxis:x}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof x=="number"&&(f=a==="end"?x*-1:x),c?{x:f*h,y:y*m}:{x:y*m,y:f*h}}var qs=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(t){var e,r;let{x:i,y:s,placement:n,middlewareData:a}=t,c=await sl(t,o);return n===((e=a.offset)==null?void 0:e.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:s+c.y,data:{...c,placement:n}}}}},Ws=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(t){let{x:e,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:n=!1,limiter:a={fn:_=>{let{x:S,y:I}=_;return{x:S,y:I}}},...c}=st(o,t),m={x:e,y:r},h=await Zr(t,c),p=Ye(ke(i)),y=Wo(p),f=m[y],x=m[p];if(s){let _=y==="y"?"top":"left",S=y==="y"?"bottom":"right",I=f+h[_],L=f-h[S];f=qr(I,f,L)}if(n){let _=p==="y"?"top":"left",S=p==="y"?"bottom":"right",I=x+h[_],L=x-h[S];x=qr(I,x,L)}let T=a.fn({...t,[y]:f,[p]:x});return{...T,data:{x:T.x-e,y:T.y-r,enabled:{[y]:s,[p]:n}}}}}};var Xs=function(o){return o===void 0&&(o={}),{name:"size",options:o,async fn(t){var e,r;let{placement:i,rects:s,platform:n,elements:a}=t,{apply:c=()=>{},...m}=st(o,t),h=await Zr(t,m),p=ke(i),y=nt(i),f=Ye(i)==="y",{width:x,height:T}=s.floating,_,S;p==="top"||p==="bottom"?(_=p,S=y===(await(n.isRTL==null?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(S=p,_=y==="end"?"top":"bottom");let I=T-h.top-h.bottom,L=x-h.left-h.right,P=xe(T-h[_],I),M=xe(x-h[S],L),Q=!t.middlewareData.shift,se=P,Ee=M;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&(Ee=L),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(se=I),Q&&!y){let ne=q(h.left,0),ze=q(h.right,0),he=q(h.top,0),De=q(h.bottom,0);f?Ee=x-2*(ne!==0||ze!==0?ne+ze:q(h.left,h.right)):se=T-2*(he!==0||De!==0?he+De:q(h.top,h.bottom))}await c({...t,availableWidth:Ee,availableHeight:se});let me=await n.getDimensions(a.floating);return x!==me.width||T!==me.height?{reset:{rects:!0}}:{}}}};function jr(){return typeof window<"u"}function lt(o){return js(o)?(o.nodeName||"").toLowerCase():"#document"}function X(o){var t;return(o==null||(t=o.ownerDocument)==null?void 0:t.defaultView)||window}function ce(o){var t;return(t=(js(o)?o.ownerDocument:o.document)||window.document)==null?void 0:t.documentElement}function js(o){return jr()?o instanceof Node||o instanceof X(o).Node:!1}function re(o){return jr()?o instanceof Element||o instanceof X(o).Element:!1}function de(o){return jr()?o instanceof HTMLElement||o instanceof X(o).HTMLElement:!1}function Zs(o){return!jr()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof X(o).ShadowRoot}function Dt(o){let{overflow:t,overflowX:e,overflowY:r,display:i}=oe(o);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(i)}function Ks(o){return["table","td","th"].includes(lt(o))}function mr(o){return[":popover-open",":modal"].some(t=>{try{return o.matches(t)}catch{return!1}})}function Kr(o){let t=Qr(),e=re(o)?oe(o):o;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(e.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(e.contain||"").includes(r))}function Qs(o){let t=Ne(o);for(;de(t)&&!ct(t);){if(Kr(t))return t;if(mr(t))return null;t=Ne(t)}return null}function Qr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ct(o){return["html","body","#document"].includes(lt(o))}function oe(o){return X(o).getComputedStyle(o)}function hr(o){return re(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function Ne(o){if(lt(o)==="html")return o;let t=o.assignedSlot||o.parentNode||Zs(o)&&o.host||ce(o);return Zs(t)?t.host:t}function Js(o){let t=Ne(o);return ct(t)?o.ownerDocument?o.ownerDocument.body:o.body:de(t)&&Dt(t)?t:Js(t)}function zt(o,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let i=Js(o),s=i===((r=o.ownerDocument)==null?void 0:r.body),n=X(i);if(s){let a=Jr(n);return t.concat(n,n.visualViewport||[],Dt(i)?i:[],a&&e?zt(a):[])}return t.concat(i,zt(i,[],e))}function Jr(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function rn(o){let t=oe(o),e=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=de(o),s=i?o.offsetWidth:e,n=i?o.offsetHeight:r,a=cr(e)!==s||cr(r)!==n;return a&&(e=s,r=n),{width:e,height:r,$:a}}function jo(o){return re(o)?o:o.contextElement}function $t(o){let t=jo(o);if(!de(t))return le(1);let e=t.getBoundingClientRect(),{width:r,height:i,$:s}=rn(t),n=(s?cr(e.width):e.width)/r,a=(s?cr(e.height):e.height)/i;return(!n||!Number.isFinite(n))&&(n=1),(!a||!Number.isFinite(a))&&(a=1),{x:n,y:a}}var nl=le(0);function on(o){let t=X(o);return!Qr()||!t.visualViewport?nl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function al(o,t,e){return t===void 0&&(t=!1),!e||t&&e!==X(o)?!1:t}function dt(o,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let i=o.getBoundingClientRect(),s=jo(o),n=le(1);t&&(r?re(r)&&(n=$t(r)):n=$t(o));let a=al(s,e,r)?on(s):le(0),c=(i.left+a.x)/n.x,m=(i.top+a.y)/n.y,h=i.width/n.x,p=i.height/n.y;if(s){let y=X(s),f=r&&re(r)?X(r):r,x=y,T=Jr(x);for(;T&&r&&f!==x;){let _=$t(T),S=T.getBoundingClientRect(),I=oe(T),L=S.left+(T.clientLeft+parseFloat(I.paddingLeft))*_.x,P=S.top+(T.clientTop+parseFloat(I.paddingTop))*_.y;c*=_.x,m*=_.y,h*=_.x,p*=_.y,c+=L,m+=P,x=X(T),T=Jr(x)}}return at({width:h,height:p,x:c,y:m})}function Ko(o,t){let e=hr(o).scrollLeft;return t?t.left+e:dt(ce(o)).left+e}function sn(o,t,e){e===void 0&&(e=!1);let r=o.getBoundingClientRect(),i=r.left+t.scrollLeft-(e?0:Ko(o,r)),s=r.top+t.scrollTop;return{x:i,y:s}}function ll(o){let{elements:t,rect:e,offsetParent:r,strategy:i}=o,s=i==="fixed",n=ce(r),a=t?mr(t.floating):!1;if(r===n||a&&s)return e;let c={scrollLeft:0,scrollTop:0},m=le(1),h=le(0),p=de(r);if((p||!p&&!s)&&((lt(r)!=="body"||Dt(n))&&(c=hr(r)),de(r))){let f=dt(r);m=$t(r),h.x=f.x+r.clientLeft,h.y=f.y+r.clientTop}let y=n&&!p&&!s?sn(n,c,!0):le(0);return{width:e.width*m.x,height:e.height*m.y,x:e.x*m.x-c.scrollLeft*m.x+h.x+y.x,y:e.y*m.y-c.scrollTop*m.y+h.y+y.y}}function cl(o){return Array.from(o.getClientRects())}function dl(o){let t=ce(o),e=hr(o),r=o.ownerDocument.body,i=q(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=q(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),n=-e.scrollLeft+Ko(o),a=-e.scrollTop;return oe(r).direction==="rtl"&&(n+=q(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:n,y:a}}function ml(o,t){let e=X(o),r=ce(o),i=e.visualViewport,s=r.clientWidth,n=r.clientHeight,a=0,c=0;if(i){s=i.width,n=i.height;let m=Qr();(!m||m&&t==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}return{width:s,height:n,x:a,y:c}}function hl(o,t){let e=dt(o,!0,t==="fixed"),r=e.top+o.clientTop,i=e.left+o.clientLeft,s=de(o)?$t(o):le(1),n=o.clientWidth*s.x,a=o.clientHeight*s.y,c=i*s.x,m=r*s.y;return{width:n,height:a,x:c,y:m}}function en(o,t,e){let r;if(t==="viewport")r=ml(o,e);else if(t==="document")r=dl(ce(o));else if(re(t))r=hl(t,e);else{let i=on(o);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return at(r)}function nn(o,t){let e=Ne(o);return e===t||!re(e)||ct(e)?!1:oe(e).position==="fixed"||nn(e,t)}function pl(o,t){let e=t.get(o);if(e)return e;let r=zt(o,[],!1).filter(a=>re(a)&<(a)!=="body"),i=null,s=oe(o).position==="fixed",n=s?Ne(o):o;for(;re(n)&&!ct(n);){let a=oe(n),c=Kr(n);!c&&a.position==="fixed"&&(i=null),(s?!c&&!i:!c&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Dt(n)&&!c&&nn(o,n))?r=r.filter(h=>h!==n):i=a,n=Ne(n)}return t.set(o,r),r}function ul(o){let{element:t,boundary:e,rootBoundary:r,strategy:i}=o,n=[...e==="clippingAncestors"?mr(t)?[]:pl(t,this._c):[].concat(e),r],a=n[0],c=n.reduce((m,h)=>{let p=en(t,h,i);return m.top=q(p.top,m.top),m.right=xe(p.right,m.right),m.bottom=xe(p.bottom,m.bottom),m.left=q(p.left,m.left),m},en(t,a,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function fl(o){let{width:t,height:e}=rn(o);return{width:t,height:e}}function gl(o,t,e){let r=de(t),i=ce(t),s=e==="fixed",n=dt(o,!0,s,t),a={scrollLeft:0,scrollTop:0},c=le(0);if(r||!r&&!s)if((lt(t)!=="body"||Dt(i))&&(a=hr(t)),r){let y=dt(t,!0,s,t);c.x=y.x+t.clientLeft,c.y=y.y+t.clientTop}else i&&(c.x=Ko(i));let m=i&&!r&&!s?sn(i,a):le(0),h=n.left+a.scrollLeft-c.x-m.x,p=n.top+a.scrollTop-c.y-m.y;return{x:h,y:p,width:n.width,height:n.height}}function Zo(o){return oe(o).position==="static"}function tn(o,t){if(!de(o)||oe(o).position==="fixed")return null;if(t)return t(o);let e=o.offsetParent;return ce(o)===e&&(e=e.ownerDocument.body),e}function an(o,t){let e=X(o);if(mr(o))return e;if(!de(o)){let i=Ne(o);for(;i&&!ct(i);){if(re(i)&&!Zo(i))return i;i=Ne(i)}return e}let r=tn(o,t);for(;r&&Ks(r)&&Zo(r);)r=tn(r,t);return r&&ct(r)&&Zo(r)&&!Kr(r)?e:r||Qs(o)||e}var bl=async function(o){let t=this.getOffsetParent||an,e=this.getDimensions,r=await e(o.floating);return{reference:gl(o.reference,await t(o.floating),o.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function vl(o){return oe(o).direction==="rtl"}var yl={convertOffsetParentRelativeRectToViewportRelativeRect:ll,getDocumentElement:ce,getClippingRect:ul,getOffsetParent:an,getElementRects:bl,getClientRects:cl,getDimensions:fl,getScale:$t,isElement:re,isRTL:vl};function xl(o,t){let e=null,r,i=ce(o);function s(){var a;clearTimeout(r),(a=e)==null||a.disconnect(),e=null}function n(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();let{left:m,top:h,width:p,height:y}=o.getBoundingClientRect();if(a||t(),!p||!y)return;let f=dr(h),x=dr(i.clientWidth-(m+p)),T=dr(i.clientHeight-(h+y)),_=dr(m),I={rootMargin:-f+"px "+-x+"px "+-T+"px "+-_+"px",threshold:q(0,xe(1,c))||1},L=!0;function P(M){let Q=M[0].intersectionRatio;if(Q!==c){if(!L)return n();Q?n(!1,Q):r=setTimeout(()=>{n(!1,1e-7)},1e3)}L=!1}try{e=new IntersectionObserver(P,{...I,root:i.ownerDocument})}catch{e=new IntersectionObserver(P,I)}e.observe(o)}return n(!0),s}function ln(o,t,e,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:n=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,m=jo(o),h=i||s?[...m?zt(m):[],...zt(t)]:[];h.forEach(S=>{i&&S.addEventListener("scroll",e,{passive:!0}),s&&S.addEventListener("resize",e)});let p=m&&a?xl(m,e):null,y=-1,f=null;n&&(f=new ResizeObserver(S=>{let[I]=S;I&&I.target===m&&f&&(f.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var L;(L=f)==null||L.observe(t)})),e()}),m&&!c&&f.observe(m),f.observe(t));let x,T=c?dt(o):null;c&&_();function _(){let S=dt(o);T&&(S.x!==T.x||S.y!==T.y||S.width!==T.width||S.height!==T.height)&&e(),T=S,x=requestAnimationFrame(_)}return e(),()=>{var S;h.forEach(I=>{i&&I.removeEventListener("scroll",e),s&&I.removeEventListener("resize",e)}),p==null||p(),(S=f)==null||S.disconnect(),f=null,c&&cancelAnimationFrame(x)}}var cn=qs;var dn=Ws,mn=Ys,hn=Xs;var pn=Gs;var un=(o,t,e)=>{let r=new Map,i={platform:yl,...e},s={...i.platform,_c:r};return Bs(o,t,{...i,platform:s})};var El=g`
|
1185
|
+
`}};st.styles=[...re.styles,...Gs],l([d({type:Boolean,reflect:!0})],st.prototype,"checked",2),l([d({type:Boolean,reflect:!0})],st.prototype,"indeterminate",2),l([d({type:Boolean,reflect:!0})],st.prototype,"autofocus",2);var Zo=st;Zo.register(Bs);var ml=Zo;var Ee=Math.min,q=Math.max,pr=Math.round,hr=Math.floor,ce=o=>({x:o,y:o}),pl={left:"right",right:"left",bottom:"top",top:"bottom"},hl={start:"end",end:"start"};function Zr(o,t,e){return q(o,Ee(t,e))}function nt(o,t){return typeof o=="function"?o(t):o}function Ne(o){return o.split("-")[0]}function at(o){return o.split("-")[1]}function jo(o){return o==="x"?"y":"x"}function jr(o){return o==="y"?"height":"width"}function Ye(o){return["top","bottom"].includes(Ne(o))?"y":"x"}function Kr(o){return jo(Ye(o))}function Ys(o,t,e){e===void 0&&(e=!1);let r=at(o),i=Kr(o),s=jr(i),n=i==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(n=mr(n)),[n,mr(n)]}function qs(o){let t=mr(o);return[Xr(o),t,Xr(t)]}function Xr(o){return o.replace(/start|end/g,t=>hl[t])}function ul(o,t,e){let r=["left","right"],i=["right","left"],s=["top","bottom"],n=["bottom","top"];switch(o){case"top":case"bottom":return e?t?i:r:t?r:i;case"left":case"right":return t?s:n;default:return[]}}function Ws(o,t,e,r){let i=at(o),s=ul(Ne(o),e==="start",r);return i&&(s=s.map(n=>n+"-"+i),t&&(s=s.concat(s.map(Xr)))),s}function mr(o){return o.replace(/left|right|bottom|top/g,t=>pl[t])}function fl(o){return{top:0,right:0,bottom:0,left:0,...o}}function Ko(o){return typeof o!="number"?fl(o):{top:o,right:o,bottom:o,left:o}}function lt(o){let{x:t,y:e,width:r,height:i}=o;return{width:r,height:i,top:e,left:t,right:t+r,bottom:e+i,x:t,y:e}}function Xs(o,t,e){let{reference:r,floating:i}=o,s=Ye(t),n=Kr(t),a=jr(n),c=Ne(t),m=s==="y",p=r.x+r.width/2-i.width/2,u=r.y+r.height/2-i.height/2,y=r[a]/2-i[a]/2,g;switch(c){case"top":g={x:p,y:r.y-i.height};break;case"bottom":g={x:p,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:u};break;case"left":g={x:r.x-i.width,y:u};break;default:g={x:r.x,y:r.y}}switch(at(t)){case"start":g[n]-=y*(e&&m?-1:1);break;case"end":g[n]+=y*(e&&m?-1:1);break}return g}var Zs=async(o,t,e)=>{let{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:n}=e,a=s.filter(Boolean),c=await(n.isRTL==null?void 0:n.isRTL(t)),m=await n.getElementRects({reference:o,floating:t,strategy:i}),{x:p,y:u}=Xs(m,r,c),y=r,g={},x=0;for(let T=0;T<a.length;T++){let{name:_,fn:S}=a[T],{x:I,y:L,data:P,reset:M}=await S({x:p,y:u,initialPlacement:r,placement:y,strategy:i,middlewareData:g,rects:m,platform:n,elements:{reference:o,floating:t}});p=I!=null?I:p,u=L!=null?L:u,g={...g,[_]:{...g[_],...P}},M&&x<=50&&(x++,typeof M=="object"&&(M.placement&&(y=M.placement),M.rects&&(m=M.rects===!0?await n.getElementRects({reference:o,floating:t,strategy:i}):M.rects),{x:p,y:u}=Xs(m,y,c)),T=-1)}return{x:p,y:u,placement:y,strategy:i,middlewareData:g}};async function Qr(o,t){var e;t===void 0&&(t={});let{x:r,y:i,platform:s,rects:n,elements:a,strategy:c}=o,{boundary:m="clippingAncestors",rootBoundary:p="viewport",elementContext:u="floating",altBoundary:y=!1,padding:g=0}=nt(t,o),x=Ko(g),_=a[y?u==="floating"?"reference":"floating":u],S=lt(await s.getClippingRect({element:(e=await(s.isElement==null?void 0:s.isElement(_)))==null||e?_:_.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:m,rootBoundary:p,strategy:c})),I=u==="floating"?{x:r,y:i,width:n.floating.width,height:n.floating.height}:n.reference,L=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),P=await(s.isElement==null?void 0:s.isElement(L))?await(s.getScale==null?void 0:s.getScale(L))||{x:1,y:1}:{x:1,y:1},M=lt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:I,offsetParent:L,strategy:c}):I);return{top:(S.top-M.top+x.top)/P.y,bottom:(M.bottom-S.bottom+x.bottom)/P.y,left:(S.left-M.left+x.left)/P.x,right:(M.right-S.right+x.right)/P.x}}var js=o=>({name:"arrow",options:o,async fn(t){let{x:e,y:r,placement:i,rects:s,platform:n,elements:a,middlewareData:c}=t,{element:m,padding:p=0}=nt(o,t)||{};if(m==null)return{};let u=Ko(p),y={x:e,y:r},g=Kr(i),x=jr(g),T=await n.getDimensions(m),_=g==="y",S=_?"top":"left",I=_?"bottom":"right",L=_?"clientHeight":"clientWidth",P=s.reference[x]+s.reference[g]-y[g]-s.floating[x],M=y[g]-s.reference[g],Q=await(n.getOffsetParent==null?void 0:n.getOffsetParent(m)),ne=Q?Q[L]:0;(!ne||!await(n.isElement==null?void 0:n.isElement(Q)))&&(ne=a.floating[L]||s.floating[x]);let Te=P/2-M/2,pe=ne/2-T[x]/2-1,ae=Ee(u[S],pe),De=Ee(u[I],pe),he=ae,$e=ne-T[x]-De,G=ne/2-T[x]/2+Te,It=Zr(he,G,$e),Ae=!c.arrow&&at(i)!=null&&G!==It&&s.reference[x]/2-(G<he?ae:De)-T[x]/2<0,ue=Ae?G<he?G-he:G-$e:0;return{[g]:y[g]+ue,data:{[g]:It,centerOffset:G-It-ue,...Ae&&{alignmentOffset:ue}},reset:Ae}}});var Ks=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(t){var e,r;let{placement:i,middlewareData:s,rects:n,initialPlacement:a,platform:c,elements:m}=t,{mainAxis:p=!0,crossAxis:u=!0,fallbackPlacements:y,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:T=!0,..._}=nt(o,t);if((e=s.arrow)!=null&&e.alignmentOffset)return{};let S=Ne(i),I=Ye(a),L=Ne(a)===a,P=await(c.isRTL==null?void 0:c.isRTL(m.floating)),M=y||(L||!T?[mr(a)]:qs(a)),Q=x!=="none";!y&&Q&&M.push(...Ws(a,T,x,P));let ne=[a,...M],Te=await Qr(t,_),pe=[],ae=((r=s.flip)==null?void 0:r.overflows)||[];if(p&&pe.push(Te[S]),u){let G=Ys(i,n,P);pe.push(Te[G[0]],Te[G[1]])}if(ae=[...ae,{placement:i,overflows:pe}],!pe.every(G=>G<=0)){var De,he;let G=(((De=s.flip)==null?void 0:De.index)||0)+1,It=ne[G];if(It)return{data:{index:G,overflows:ae},reset:{placement:It}};let Ae=(he=ae.filter(ue=>ue.overflows[0]<=0).sort((ue,Pe)=>ue.overflows[1]-Pe.overflows[1])[0])==null?void 0:he.placement;if(!Ae)switch(g){case"bestFit":{var $e;let ue=($e=ae.filter(Pe=>{if(Q){let Ue=Ye(Pe.placement);return Ue===I||Ue==="y"}return!0}).map(Pe=>[Pe.placement,Pe.overflows.filter(Ue=>Ue>0).reduce((Ue,Ea)=>Ue+Ea,0)]).sort((Pe,Ue)=>Pe[1]-Ue[1])[0])==null?void 0:$e[0];ue&&(Ae=ue);break}case"initialPlacement":Ae=a;break}if(i!==Ae)return{reset:{placement:Ae}}}return{}}}};async function gl(o,t){let{placement:e,platform:r,elements:i}=o,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),n=Ne(e),a=at(e),c=Ye(e)==="y",m=["left","top"].includes(n)?-1:1,p=s&&c?-1:1,u=nt(t,o),{mainAxis:y,crossAxis:g,alignmentAxis:x}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&typeof x=="number"&&(g=a==="end"?x*-1:x),c?{x:g*p,y:y*m}:{x:y*m,y:g*p}}var Qs=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(t){var e,r;let{x:i,y:s,placement:n,middlewareData:a}=t,c=await gl(t,o);return n===((e=a.offset)==null?void 0:e.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:s+c.y,data:{...c,placement:n}}}}},Js=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(t){let{x:e,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:n=!1,limiter:a={fn:_=>{let{x:S,y:I}=_;return{x:S,y:I}}},...c}=nt(o,t),m={x:e,y:r},p=await Qr(t,c),u=Ye(Ne(i)),y=jo(u),g=m[y],x=m[u];if(s){let _=y==="y"?"top":"left",S=y==="y"?"bottom":"right",I=g+p[_],L=g-p[S];g=Zr(I,g,L)}if(n){let _=u==="y"?"top":"left",S=u==="y"?"bottom":"right",I=x+p[_],L=x-p[S];x=Zr(I,x,L)}let T=a.fn({...t,[y]:g,[u]:x});return{...T,data:{x:T.x-e,y:T.y-r,enabled:{[y]:s,[u]:n}}}}}};var en=function(o){return o===void 0&&(o={}),{name:"size",options:o,async fn(t){var e,r;let{placement:i,rects:s,platform:n,elements:a}=t,{apply:c=()=>{},...m}=nt(o,t),p=await Qr(t,m),u=Ne(i),y=at(i),g=Ye(i)==="y",{width:x,height:T}=s.floating,_,S;u==="top"||u==="bottom"?(_=u,S=y===(await(n.isRTL==null?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(S=u,_=y==="end"?"top":"bottom");let I=T-p.top-p.bottom,L=x-p.left-p.right,P=Ee(T-p[_],I),M=Ee(x-p[S],L),Q=!t.middlewareData.shift,ne=P,Te=M;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&(Te=L),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(ne=I),Q&&!y){let ae=q(p.left,0),De=q(p.right,0),he=q(p.top,0),$e=q(p.bottom,0);g?Te=x-2*(ae!==0||De!==0?ae+De:q(p.left,p.right)):ne=T-2*(he!==0||$e!==0?he+$e:q(p.top,p.bottom))}await c({...t,availableWidth:Te,availableHeight:ne});let pe=await n.getDimensions(a.floating);return x!==pe.width||T!==pe.height?{reset:{rects:!0}}:{}}}};function Jr(){return typeof window<"u"}function ct(o){return rn(o)?(o.nodeName||"").toLowerCase():"#document"}function X(o){var t;return(o==null||(t=o.ownerDocument)==null?void 0:t.defaultView)||window}function de(o){var t;return(t=(rn(o)?o.ownerDocument:o.document)||window.document)==null?void 0:t.documentElement}function rn(o){return Jr()?o instanceof Node||o instanceof X(o).Node:!1}function oe(o){return Jr()?o instanceof Element||o instanceof X(o).Element:!1}function me(o){return Jr()?o instanceof HTMLElement||o instanceof X(o).HTMLElement:!1}function tn(o){return!Jr()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof X(o).ShadowRoot}function Pt(o){let{overflow:t,overflowX:e,overflowY:r,display:i}=ie(o);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(i)}function on(o){return["table","td","th"].includes(ct(o))}function ur(o){return[":popover-open",":modal"].some(t=>{try{return o.matches(t)}catch{return!1}})}function eo(o){let t=to(),e=oe(o)?ie(o):o;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(e.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(e.contain||"").includes(r))}function sn(o){let t=Oe(o);for(;me(t)&&!dt(t);){if(eo(t))return t;if(ur(t))return null;t=Oe(t)}return null}function to(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function dt(o){return["html","body","#document"].includes(ct(o))}function ie(o){return X(o).getComputedStyle(o)}function fr(o){return oe(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function Oe(o){if(ct(o)==="html")return o;let t=o.assignedSlot||o.parentNode||tn(o)&&o.host||de(o);return tn(t)?t.host:t}function nn(o){let t=Oe(o);return dt(t)?o.ownerDocument?o.ownerDocument.body:o.body:me(t)&&Pt(t)?t:nn(t)}function $t(o,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let i=nn(o),s=i===((r=o.ownerDocument)==null?void 0:r.body),n=X(i);if(s){let a=ro(n);return t.concat(n,n.visualViewport||[],Pt(i)?i:[],a&&e?$t(a):[])}return t.concat(i,$t(i,[],e))}function ro(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function cn(o){let t=ie(o),e=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=me(o),s=i?o.offsetWidth:e,n=i?o.offsetHeight:r,a=pr(e)!==s||pr(r)!==n;return a&&(e=s,r=n),{width:e,height:r,$:a}}function Jo(o){return oe(o)?o:o.contextElement}function Ut(o){let t=Jo(o);if(!me(t))return ce(1);let e=t.getBoundingClientRect(),{width:r,height:i,$:s}=cn(t),n=(s?pr(e.width):e.width)/r,a=(s?pr(e.height):e.height)/i;return(!n||!Number.isFinite(n))&&(n=1),(!a||!Number.isFinite(a))&&(a=1),{x:n,y:a}}var bl=ce(0);function dn(o){let t=X(o);return!to()||!t.visualViewport?bl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function vl(o,t,e){return t===void 0&&(t=!1),!e||t&&e!==X(o)?!1:t}function mt(o,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let i=o.getBoundingClientRect(),s=Jo(o),n=ce(1);t&&(r?oe(r)&&(n=Ut(r)):n=Ut(o));let a=vl(s,e,r)?dn(s):ce(0),c=(i.left+a.x)/n.x,m=(i.top+a.y)/n.y,p=i.width/n.x,u=i.height/n.y;if(s){let y=X(s),g=r&&oe(r)?X(r):r,x=y,T=ro(x);for(;T&&r&&g!==x;){let _=Ut(T),S=T.getBoundingClientRect(),I=ie(T),L=S.left+(T.clientLeft+parseFloat(I.paddingLeft))*_.x,P=S.top+(T.clientTop+parseFloat(I.paddingTop))*_.y;c*=_.x,m*=_.y,p*=_.x,u*=_.y,c+=L,m+=P,x=X(T),T=ro(x)}}return lt({width:p,height:u,x:c,y:m})}function ei(o,t){let e=fr(o).scrollLeft;return t?t.left+e:mt(de(o)).left+e}function mn(o,t,e){e===void 0&&(e=!1);let r=o.getBoundingClientRect(),i=r.left+t.scrollLeft-(e?0:ei(o,r)),s=r.top+t.scrollTop;return{x:i,y:s}}function yl(o){let{elements:t,rect:e,offsetParent:r,strategy:i}=o,s=i==="fixed",n=de(r),a=t?ur(t.floating):!1;if(r===n||a&&s)return e;let c={scrollLeft:0,scrollTop:0},m=ce(1),p=ce(0),u=me(r);if((u||!u&&!s)&&((ct(r)!=="body"||Pt(n))&&(c=fr(r)),me(r))){let g=mt(r);m=Ut(r),p.x=g.x+r.clientLeft,p.y=g.y+r.clientTop}let y=n&&!u&&!s?mn(n,c,!0):ce(0);return{width:e.width*m.x,height:e.height*m.y,x:e.x*m.x-c.scrollLeft*m.x+p.x+y.x,y:e.y*m.y-c.scrollTop*m.y+p.y+y.y}}function xl(o){return Array.from(o.getClientRects())}function El(o){let t=de(o),e=fr(o),r=o.ownerDocument.body,i=q(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=q(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),n=-e.scrollLeft+ei(o),a=-e.scrollTop;return ie(r).direction==="rtl"&&(n+=q(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:n,y:a}}function Tl(o,t){let e=X(o),r=de(o),i=e.visualViewport,s=r.clientWidth,n=r.clientHeight,a=0,c=0;if(i){s=i.width,n=i.height;let m=to();(!m||m&&t==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}return{width:s,height:n,x:a,y:c}}function Al(o,t){let e=mt(o,!0,t==="fixed"),r=e.top+o.clientTop,i=e.left+o.clientLeft,s=me(o)?Ut(o):ce(1),n=o.clientWidth*s.x,a=o.clientHeight*s.y,c=i*s.x,m=r*s.y;return{width:n,height:a,x:c,y:m}}function an(o,t,e){let r;if(t==="viewport")r=Tl(o,e);else if(t==="document")r=El(de(o));else if(oe(t))r=Al(t,e);else{let i=dn(o);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return lt(r)}function pn(o,t){let e=Oe(o);return e===t||!oe(e)||dt(e)?!1:ie(e).position==="fixed"||pn(e,t)}function Sl(o,t){let e=t.get(o);if(e)return e;let r=$t(o,[],!1).filter(a=>oe(a)&&ct(a)!=="body"),i=null,s=ie(o).position==="fixed",n=s?Oe(o):o;for(;oe(n)&&!dt(n);){let a=ie(n),c=eo(n);!c&&a.position==="fixed"&&(i=null),(s?!c&&!i:!c&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Pt(n)&&!c&&pn(o,n))?r=r.filter(p=>p!==n):i=a,n=Oe(n)}return t.set(o,r),r}function _l(o){let{element:t,boundary:e,rootBoundary:r,strategy:i}=o,n=[...e==="clippingAncestors"?ur(t)?[]:Sl(t,this._c):[].concat(e),r],a=n[0],c=n.reduce((m,p)=>{let u=an(t,p,i);return m.top=q(u.top,m.top),m.right=Ee(u.right,m.right),m.bottom=Ee(u.bottom,m.bottom),m.left=q(u.left,m.left),m},an(t,a,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Il(o){let{width:t,height:e}=cn(o);return{width:t,height:e}}function wl(o,t,e){let r=me(t),i=de(t),s=e==="fixed",n=mt(o,!0,s,t),a={scrollLeft:0,scrollTop:0},c=ce(0);if(r||!r&&!s)if((ct(t)!=="body"||Pt(i))&&(a=fr(t)),r){let y=mt(t,!0,s,t);c.x=y.x+t.clientLeft,c.y=y.y+t.clientTop}else i&&(c.x=ei(i));let m=i&&!r&&!s?mn(i,a):ce(0),p=n.left+a.scrollLeft-c.x-m.x,u=n.top+a.scrollTop-c.y-m.y;return{x:p,y:u,width:n.width,height:n.height}}function Qo(o){return ie(o).position==="static"}function ln(o,t){if(!me(o)||ie(o).position==="fixed")return null;if(t)return t(o);let e=o.offsetParent;return de(o)===e&&(e=e.ownerDocument.body),e}function hn(o,t){let e=X(o);if(ur(o))return e;if(!me(o)){let i=Oe(o);for(;i&&!dt(i);){if(oe(i)&&!Qo(i))return i;i=Oe(i)}return e}let r=ln(o,t);for(;r&&on(r)&&Qo(r);)r=ln(r,t);return r&&dt(r)&&Qo(r)&&!eo(r)?e:r||sn(o)||e}var Cl=async function(o){let t=this.getOffsetParent||hn,e=this.getDimensions,r=await e(o.floating);return{reference:wl(o.reference,await t(o.floating),o.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ll(o){return ie(o).direction==="rtl"}var Rl={convertOffsetParentRelativeRectToViewportRelativeRect:yl,getDocumentElement:de,getClippingRect:_l,getOffsetParent:hn,getElementRects:Cl,getClientRects:xl,getDimensions:Il,getScale:Ut,isElement:oe,isRTL:Ll};function kl(o,t){let e=null,r,i=de(o);function s(){var a;clearTimeout(r),(a=e)==null||a.disconnect(),e=null}function n(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();let{left:m,top:p,width:u,height:y}=o.getBoundingClientRect();if(a||t(),!u||!y)return;let g=hr(p),x=hr(i.clientWidth-(m+u)),T=hr(i.clientHeight-(p+y)),_=hr(m),I={rootMargin:-g+"px "+-x+"px "+-T+"px "+-_+"px",threshold:q(0,Ee(1,c))||1},L=!0;function P(M){let Q=M[0].intersectionRatio;if(Q!==c){if(!L)return n();Q?n(!1,Q):r=setTimeout(()=>{n(!1,1e-7)},1e3)}L=!1}try{e=new IntersectionObserver(P,{...I,root:i.ownerDocument})}catch{e=new IntersectionObserver(P,I)}e.observe(o)}return n(!0),s}function un(o,t,e,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:n=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,m=Jo(o),p=i||s?[...m?$t(m):[],...$t(t)]:[];p.forEach(S=>{i&&S.addEventListener("scroll",e,{passive:!0}),s&&S.addEventListener("resize",e)});let u=m&&a?kl(m,e):null,y=-1,g=null;n&&(g=new ResizeObserver(S=>{let[I]=S;I&&I.target===m&&g&&(g.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var L;(L=g)==null||L.observe(t)})),e()}),m&&!c&&g.observe(m),g.observe(t));let x,T=c?mt(o):null;c&&_();function _(){let S=mt(o);T&&(S.x!==T.x||S.y!==T.y||S.width!==T.width||S.height!==T.height)&&e(),T=S,x=requestAnimationFrame(_)}return e(),()=>{var S;p.forEach(I=>{i&&I.removeEventListener("scroll",e),s&&I.removeEventListener("resize",e)}),u==null||u(),(S=g)==null||S.disconnect(),g=null,c&&cancelAnimationFrame(x)}}var fn=Qs;var gn=Js,bn=Ks,vn=en;var yn=js;var xn=(o,t,e)=>{let r=new Map,i={platform:Rl,...e},s={...i.platform,_c:r};return Zs(o,t,{...i,platform:s})};var Nl=f`
|
1186
1186
|
:host {
|
1187
1187
|
--mdc-popover-arrow-border-radius: 0.1875rem;
|
1188
1188
|
--mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
|
@@ -1285,7 +1285,7 @@
|
|
1285
1285
|
border-top-right-radius: var(--mdc-popover-arrow-border-radius);
|
1286
1286
|
border-bottom-left-radius: 100%;
|
1287
1287
|
}
|
1288
|
-
`,
|
1288
|
+
`,En=[Nl];var Tn=v.constructTagName("popover"),pt={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"},gr={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},ht={TONAL:"tonal",CONTRAST:"contrast"},R={PLACEMENT:pt.BOTTOM,TRIGGER:gr.CLICK,COLOR:ht.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=o=>{class t extends o{constructor(...i){super(...i);this.enabledFocusTrap=R.FOCUS_TRAP;this.enabledPreventScroll=R.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(i){return i.getClientRects().length===0}hasZeroDimensions(i){let{width:s,height:n}=i.getBoundingClientRect(),{offsetWidth:a,offsetHeight:c}=i;return a+c+n+s===0}isNotVisible(i){return this.hasZeroDimensions(i)||this.hasNoClientRects(i)}hasHiddenStyle(i){let{display:s,opacity:n,visibility:a}=i.style;return s==="none"||n==="0"||a==="hidden"||a==="collapse"}hasComputedHidden(i){let s=getComputedStyle(i);return s.visibility==="hidden"||s.height==="0"||s.display==="none"}isHidden(i){return i.hasAttribute("hidden")||i.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(i)||this.isNotVisible(i)||this.hasComputedHidden(i)}isNotTabbable(i){return i.getAttribute("tabindex")==="-1"}isInteractiveElement(i){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(i.tagName)||i instanceof HTMLAnchorElement&&i.hasAttribute("href")||i instanceof HTMLInputElement&&i.type!=="hidden"||(i instanceof HTMLAudioElement||i instanceof HTMLVideoElement)&&i.hasAttribute("controls")||(i instanceof HTMLImageElement||i instanceof HTMLObjectElement)&&i.hasAttribute("usemap")||i.hasAttribute("tabindex")&&i.tabIndex>-1)}isFocusable(i){return this.isHidden(i)||this.isNotTabbable(i)?!1:this.isInteractiveElement(i)}findFocusable(i,s=new Set){return i instanceof HTMLElement&&this.isFocusable(i)&&s.add(i),Array.from(i.children).forEach(a=>{let c=a;this.isFocusable(c)&&s.add(c),c.shadowRoot?this.findFocusable(c.shadowRoot,s):c.tagName==="SLOT"?c.assignedElements({flatten:!0}).forEach(p=>{p instanceof HTMLElement&&this.findFocusable(p,s)}):this.findFocusable(c,s)}),[...s]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(i=0){this.focusableElements.length!==0&&(this.enabledPreventScroll&&(document.body.style.overflow="hidden"),this.focusableElements[i]&&(this.focusTrapIndex=i,this.focusableElements[i].focus()))}calculateNextIndex(i,s){let{length:n}=this.focusableElements,a=this.shouldWrapFocus();if(i===-1)return s>0?0:n-1;let c=i+s;return a?(c<0&&(c=n-1),c>=n&&(c=0)):(c<0&&(c=0),c>=n&&(c=n-1)),c}getDeepActiveElement(){var s;let i=document.activeElement||document.body;for(;i instanceof HTMLElement&&((s=i.shadowRoot)!=null&&s.activeElement);)i=i.shadowRoot.activeElement;return i||document.body}findElement(i){return this.focusableElements.findIndex(s=>this.isEqualFocusNode(i,s))}isEqualFocusNode(i,s){return i.nodeType>=0?s.isEqualNode(i)&&s===i:!1}trapFocus(i){if(this.focusableElements.length===0)return;let s=this.getDeepActiveElement(),n=this.findElement(s);i?this.focusTrapIndex=this.calculateNextIndex(n,-1):this.focusTrapIndex=this.calculateNextIndex(n,1);let a=this.focusableElements[this.focusTrapIndex];a&&a.focus()}handleKeydown(i){!this.enabledFocusTrap||!this.focusableElements.length||i.key==="Tab"&&(i.preventDefault(),this.trapFocus(i.shiftKey))}}return l([d({type:Boolean})],t.prototype,"enabledFocusTrap",2),l([d({type:Boolean})],t.prototype,"enabledPreventScroll",2),t};var ti=class{constructor(){this.stack=[]}push(t){this.stack.push(t)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(t){this.stack=this.stack.filter(e=>e!==t)}clear(){this.stack=[]}},ut=new ti;var ft=class{static dispatchPopoverEvent(t,e){e.dispatchEvent(new CustomEvent(t,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowPopover(t){this.dispatchPopoverEvent("popover-on-show",t)}static onHidePopover(t){this.dispatchPopoverEvent("popover-on-hide",t)}static onCreatedPopover(t){this.dispatchPopoverEvent("popover-on-created",t)}static onDestroyedPopover(t){this.dispatchPopoverEvent("popover-on-destroyed",t)}};var oo=class{constructor(t){this.arrowPixelChange=!1;this.popover=t}setupDelay(){try{let[t,e]=this.popover.delay.split(",").map(r=>{let i=parseInt(r,10);if(Number.isNaN(i)||i<0)throw new Error(`Invalid delay value: ${r}`);return i});return[t,e]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(t){let e=this.popover.renderRoot.querySelector(".popover-hover-bridge");Object.assign(e.style,{top:"",left:"",right:"",bottom:""});let r=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,i=this.popover.offsetHeight||0,s=this.popover.offsetWidth||0;if(e)switch(t.split("-")[0]){case"top":e.style.height=r,e.style.bottom=`calc(-1 * (${r}))`,e.style.left="50%",e.style.width=`${s}px`;break;case"left":e.style.height=`${i}px`,e.style.width=r,e.style.right=`calc(-1.5 * (${r}))`;break;case"right":e.style.height=`${i}px`,e.style.width=r,e.style.left=`calc(-0.5 * (${r}))`;break;case"bottom":default:e.style.height=r,e.style.top=`calc(-1 * (${r}))`,e.style.left="50%",e.style.width=`${s}px`;break}}setupAppendTo(){if(this.popover.appendTo){let t=document.getElementById(this.popover.appendTo);t&&t.appendChild(this.popover)}}setupAccessibility(){var t,e,r;this.popover.toggleAttribute("aria-modal",this.popover.interactive),this.popover.interactive&&(this.popover.ariaLabel||(this.popover.ariaLabel=((t=this.popover.triggerElement)==null?void 0:t.ariaLabel)||((e=this.popover.triggerElement)==null?void 0:e.textContent)||""),this.popover.ariaLabelledby||(this.popover.ariaLabelledby=((r=this.popover.triggerElement)==null?void 0:r.id)||""))}updateArrowStyle(t,e){var p;if(!this.popover.arrowElement)return;let r=e.split("-")[0],i={top:"bottom",right:"left",bottom:"top",left:"right"}[r],{x:s,y:n}=t,a=this.popover.arrowElement.getBoundingClientRect(),c=(p=this.popover.arrowElement.offsetParent)==null?void 0:p.getBoundingClientRect();if(!this.arrowPixelChange){let u=c!=null&&c[i]?12-Math.abs(a[i]-c[i]):0;Math.round(u)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let m=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",r),Object.assign(this.popover.arrowElement.style,{left:s!=null?`${s}px`:"",top:n!=null?`${n}px`:"",[i]:`${-this.popover.arrowElement.offsetHeight/2-m}px`})}updatePopoverStyle(t,e){Object.assign(this.popover.style,{left:`${t}px`,top:`${e}px`})}createBackdrop(){var t;if(!this.popover.backdropElement){let e=document.createElement("div");e.classList.add("popover-backdrop"),(t=this.popover.parentElement)==null||t.appendChild(e);let r=document.createElement("style");r.textContent=`
|
1289
1289
|
.popover-backdrop {
|
1290
1290
|
position: fixed;
|
1291
1291
|
top: 0;
|
@@ -1295,9 +1295,9 @@
|
|
1295
1295
|
background: transparent;
|
1296
1296
|
z-index: ${this.popover.zIndex-1};
|
1297
1297
|
}
|
1298
|
-
`,e.appendChild(r),this.popover.backdropElement=e}}};var
|
1298
|
+
`,e.appendChild(r),this.popover.backdropElement=e}}};var C=class extends An(E){constructor(){super();this.id="";this.triggerID="";this.trigger=R.TRIGGER;this.placement=R.PLACEMENT;this.color=R.COLOR;this.visible=R.VISIBLE;this.offset=R.OFFSET;this.focusTrap=R.FOCUS_TRAP;this.preventScroll=R.PREVENT_SCROLL;this.showArrow=R.ARROW;this.closeButton=R.CLOSE_BUTTON;this.interactive=R.INTERACTIVE;this.delay=R.DELAY;this.hideOnEscape=R.HIDE_ON_ESCAPE;this.hideOnBlur=R.HIDE_ON_BLUR;this.hideOnOutsideClick=R.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=R.FOCUS_BACK;this.backdrop=R.BACKDROP;this.flip=R.FLIP;this.size=R.SIZE;this.zIndex=R.Z_INDEX;this.appendTo="";this.closeButtonAriaLabel=null;this.role=R.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=R.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(ut.peek()!==this)return;let r=!1,i=e.composedPath();r=this.contains(e.target)||i.includes(this.triggerElement);let s=this.backdropElement?i.includes(this.backdropElement):!1;(!r||s)&&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=()=>{ut.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 oo(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}`,ft.onCreatedPopover(this),this.visible&&(this.positionPopover(),await this.handleCreatePopoverFirstUpdate())}async disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),ft.onDestroyedPopover(this),ut.remove(this)}setupTriggerListener(){if(this.triggerID&&(this.triggerElement=this.getRootNode().querySelector(`#${this.triggerID}`),!!this.triggerElement)){if(this.trigger==="mouseenter"&&(this.interactive?this.trigger="mouseenter click":this.trigger="mouseenter focusin"),this.trigger.includes("click")&&this.triggerElement.addEventListener("click",this.togglePopoverVisible),this.trigger.includes("mouseenter")){let e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.addEventListener("mouseenter",this.showPopover),this.triggerElement.addEventListener("mouseleave",this.startCloseDelay),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),e==null||e.addEventListener("mouseenter",this.cancelCloseDelay)}this.trigger.includes("focusin")&&(this.triggerElement.addEventListener("focusin",this.showPopover),this.interactive||this.triggerElement.addEventListener("focusout",this.hidePopover)),this.addEventListener("focus-trap-exit",this.hidePopover)}}removeEventListeners(){if(!this.triggerElement)return;let e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.removeEventListener("click",this.togglePopoverVisible),this.triggerElement.removeEventListener("mouseenter",this.showPopover),this.triggerElement.removeEventListener("mouseleave",this.hidePopover),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),this.triggerElement.removeEventListener("focusin",this.showPopover),this.triggerElement.removeEventListener("focusout",this.hidePopover),e==null||e.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("focus-trap-exit",this.hidePopover)}async updated(e){if(super.updated(e),e.has("visible")){let r=e.get("visible");await this.isOpenUpdated(r,this.visible)}if(e.has("placement")&&this.setAttribute("placement",Object.values(pt).includes(this.placement)?this.placement:R.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){let i=this.trigger.split(" ").filter(s=>Object.values(gr).includes(s));this.setAttribute("trigger",i.length>0?this.trigger:R.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("color")&&this.setAttribute("color",Object.values(ht).includes(this.color)?this.color:R.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,r){var i,s,n;e===r||!this.triggerElement||(r?(ut.peek()!==this&&ut.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"),ft.onShowPopover(this)):(ut.pop(),this.backdropElement&&((i=this.backdropElement)==null||i.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),(s=this.deactivateFocusTrap)==null||s.call(this),this.disableAriaExpanded||this.triggerElement.removeAttribute("aria-expanded"),this.interactive&&this.triggerElement.removeAttribute("aria-haspopup"),this.focusBackToTrigger&&((n=this.triggerElement)==null||n.focus()),ft.onHidePopover(this)))}async handleCreatePopoverFirstUpdate(){var e,r;this.visible&&this.interactive&&((e=this.setFocusableElements)==null||e.call(this),await this.updateComplete,(r=this.setInitialFocus)==null||r.call(this))}positionPopover(){if(!this.triggerElement)return;let e=[gn()],r=this.offset;if(this.flip&&e.push(bn()),this.size){let i=this.renderRoot.querySelector('[part="popover-content"]');e.push(vn({apply({availableHeight:s}){i&&Object.assign(i.style,{maxHeight:`${s}px`})},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){let i=this.arrowElement.offsetHeight;r=Math.sqrt(2*i**2)/2+this.offset,e.push(yn({element:this.arrowElement,padding:12}))}e.push(fn(r)),un(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:i,y:s,middlewareData:n,placement:a}=await xn(this.triggerElement,this,{placement:this.placement,middleware:e});this.utils.updatePopoverStyle(i,s),n.arrow&&this.arrowElement&&this.utils.updateArrowStyle(n.arrow,a),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(a)})}render(){return h`
|
1299
1299
|
<div class="popover-hover-bridge"></div>
|
1300
|
-
${this.closeButton?
|
1300
|
+
${this.closeButton?h` <mdc-button
|
1301
1301
|
class="popover-close"
|
1302
1302
|
prefix-icon="cancel-bold"
|
1303
1303
|
variant="tertiary"
|
@@ -1305,11 +1305,11 @@
|
|
1305
1305
|
aria-label=${A(this.closeButtonAriaLabel)}
|
1306
1306
|
@click="${this.hidePopover}"
|
1307
1307
|
></mdc-button>`:b}
|
1308
|
-
${this.showArrow?
|
1308
|
+
${this.showArrow?h`<div class="popover-arrow"></div>`:b}
|
1309
1309
|
<div part="popover-content">
|
1310
1310
|
<slot></slot>
|
1311
1311
|
</div>
|
1312
|
-
`}};
|
1312
|
+
`}};C.styles=[...E.styles,...En],l([d({type:String,reflect:!0})],C.prototype,"id",2),l([d({type:String,reflect:!0})],C.prototype,"triggerID",2),l([d({type:String,reflect:!0})],C.prototype,"trigger",2),l([d({type:String,reflect:!0})],C.prototype,"placement",2),l([d({type:String,reflect:!0})],C.prototype,"color",2),l([d({type:Boolean,reflect:!0})],C.prototype,"visible",2),l([d({type:Number,reflect:!0})],C.prototype,"offset",2),l([d({type:Boolean,reflect:!0,attribute:"focus-trap"})],C.prototype,"focusTrap",2),l([d({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],C.prototype,"preventScroll",2),l([d({type:Boolean,reflect:!0,attribute:"show-arrow"})],C.prototype,"showArrow",2),l([d({type:Boolean,reflect:!0,attribute:"close-button"})],C.prototype,"closeButton",2),l([d({type:Boolean,reflect:!0})],C.prototype,"interactive",2),l([d({type:String,reflect:!0})],C.prototype,"delay",2),l([d({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],C.prototype,"hideOnEscape",2),l([d({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],C.prototype,"hideOnBlur",2),l([d({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],C.prototype,"hideOnOutsideClick",2),l([d({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],C.prototype,"focusBackToTrigger",2),l([d({type:Boolean,reflect:!0})],C.prototype,"backdrop",2),l([d({type:Boolean,reflect:!0})],C.prototype,"flip",2),l([d({type:Boolean,reflect:!0})],C.prototype,"size",2),l([d({type:Number,reflect:!0,attribute:"z-index"})],C.prototype,"zIndex",2),l([d({type:String,reflect:!0,attribute:"append-to"})],C.prototype,"appendTo",2),l([d({type:String,attribute:"close-button-aria-label"})],C.prototype,"closeButtonAriaLabel",2),l([d({type:String,reflect:!0})],C.prototype,"role",2),l([d({type:String,reflect:!0,attribute:"aria-labelledby"})],C.prototype,"ariaLabelledby",2),l([d({type:String,reflect:!0,attribute:"aria-describedby"})],C.prototype,"ariaDescribedby",2),l([d({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],C.prototype,"disableAriaExpanded",2);var qe=C;var Sn=v.constructTagName("coachmark"),gt={COLOR:ht.CONTRAST,TRIGGER:gr.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var bt=class extends qe{constructor(){super();this.trigger=gt.TRIGGER;this.showArrow=gt.ARROW;this.closeButton=gt.CLOSE_BUTTON;this.disableAriaExpanded=gt.DISABLE_ARIA_EXPANDED;this.color=gt.COLOR,this.showArrow=gt.ARROW}};l([d({type:String,reflect:!0})],bt.prototype,"trigger",2),l([d({type:Boolean,attribute:"show-arrow"})],bt.prototype,"showArrow",2),l([d({type:Boolean,reflect:!0,attribute:"close-button"})],bt.prototype,"closeButton",2),l([d({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],bt.prototype,"disableAriaExpanded",2);var ri=bt;ri.register(Sn);var Ol=ri;var _n=v.constructTagName("divider"),br={HORIZONTAL:"horizontal",VERTICAL:"vertical"},oi={SOLID:"solid",GRADIENT:"gradient"},We={POSITIVE:"positive",NEGATIVE:"negative"},vr={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},vt={ORIENTATION:br.HORIZONTAL,VARIANT:oi.SOLID,ARROW_DIRECTION:We.NEGATIVE,BUTTON_DIRECTION:We.NEGATIVE};var Ml=[k,f`
|
1313
1313
|
:host {
|
1314
1314
|
--mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
|
1315
1315
|
--mdc-divider-width: 0.0625rem;
|
@@ -1520,11 +1520,11 @@
|
|
1520
1520
|
font-size: var(--mdc-divider-text-size);
|
1521
1521
|
line-height: var(--mdc-divider-text-line-height);
|
1522
1522
|
}
|
1523
|
-
`],
|
1523
|
+
`],In=Ml;var Xe=class extends E{constructor(){super();this.orientation=vt.ORIENTATION;this.variant=vt.VARIANT;this.arrowDirection=vt.ARROW_DIRECTION;this.buttonPosition=vt.BUTTON_DIRECTION;this.setAttribute("data-type","mdc-primary-divider")}setVariant(e){this.setAttribute("variant",Object.values(oi).includes(e)?e:vt.VARIANT)}setOrientation(e){this.setAttribute("orientation",Object.values(br).includes(e)?e:vt.ORIENTATION)}ensureValidDirections(){let e=this.orientation===br.HORIZONTAL?We.NEGATIVE:We.POSITIVE;Object.values(We).includes(this.buttonPosition)||(this.buttonPosition=e),Object.values(We).includes(this.arrowDirection)||(this.arrowDirection=e)}setGrabberButton(){this.ensureValidDirections();let e=this.querySelector("mdc-button");if(e){let r=this.getArrowIcon();e.setAttribute("variant","secondary"),e.setAttribute("prefix-icon",r)}}getArrowIcon(){let e=this.orientation===br.HORIZONTAL,r=this.arrowDirection===We.POSITIVE;return e?r?vr.UP:vr.DOWN:r?vr.RIGHT:vr.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 n;let e=(n=this.shadowRoot)==null?void 0:n.querySelector("slot"),r=(e==null?void 0:e.assignedElements({flatten:!0}))||[];if(r.length>1)return;let i=r.some(a=>a.tagName===er.toUpperCase()),s=r.some(a=>a.tagName===ir.toUpperCase());i&&!s?this.setAttribute("data-type","mdc-text-divider"):!i&&s&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}render(){return h`
|
1524
1524
|
<div></div>
|
1525
1525
|
<slot @slotchange=${this.inferDividerType}></slot>
|
1526
1526
|
<div></div>
|
1527
|
-
`}};Xe.styles=[...E.styles,...
|
1527
|
+
`}};Xe.styles=[...E.styles,...In],l([d({type:String,reflect:!0})],Xe.prototype,"orientation",2),l([d({type:String,reflect:!0})],Xe.prototype,"variant",2),l([d({type:String,attribute:"arrow-direction",reflect:!0})],Xe.prototype,"arrowDirection",2),l([d({type:String,attribute:"button-position",reflect:!0})],Xe.prototype,"buttonPosition",2);var ii=Xe;ii.register(_n);var zl=ii;var wn=v.constructTagName("formfieldgroup"),si={RADIOGROUP:"radiogroup",GROUP:"group"};var Dl=f`
|
1528
1528
|
|
1529
1529
|
:host::part(container) {
|
1530
1530
|
display: flex;
|
@@ -1541,12 +1541,12 @@
|
|
1541
1541
|
:host::part(label-text){
|
1542
1542
|
font-weight: bold;
|
1543
1543
|
}
|
1544
|
-
`,
|
1544
|
+
`,Cn=[Dl];var io=class extends V(re){constructor(){super();this.isRadio=!1;this.shouldRenderLabel=!1,this.id="",this.helpTextType=void 0,this.disabled=void 0}render(){var e;return h`
|
1545
1545
|
<div
|
1546
1546
|
part="container"
|
1547
|
-
role="${this.isRadio?
|
1548
|
-
aria-labelledby="${
|
1549
|
-
aria-describedby="${A(this.helpText?
|
1547
|
+
role="${this.isRadio?si.RADIOGROUP:si.GROUP}"
|
1548
|
+
aria-labelledby="${F.HEADING_ID}"
|
1549
|
+
aria-describedby="${A(this.helpText?F.HELPER_TEXT_ID:"")}"
|
1550
1550
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
1551
1551
|
>
|
1552
1552
|
<div part="group-header">
|
@@ -1555,7 +1555,7 @@
|
|
1555
1555
|
</div>
|
1556
1556
|
<slot></slot>
|
1557
1557
|
</div>
|
1558
|
-
`}};
|
1558
|
+
`}};io.styles=[...re.styles,...Cn];var ni=io;ni.register(wn);var so=ni;rr.register(Pr);var $l=rr;var Pl=[f`
|
1559
1559
|
:host{
|
1560
1560
|
--mdc-input-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
|
1561
1561
|
--mdc-input-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -1670,7 +1670,7 @@
|
|
1670
1670
|
opacity: 0;
|
1671
1671
|
pointer-events: none;
|
1672
1672
|
}
|
1673
|
-
`,...z(!0)],
|
1673
|
+
`,...z(!0)],Ln=Pl;re.register(Vs);var Me=re;var Rn=v.constructTagName("input"),no={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},kn={MAX_LENGTH:10,HELPERTEXT:"Prefix text should not exceed 10 characters",VALIDATION:te.ERROR},Ze={VALIDATION:te.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Le.TERTIARY,CLEAR_BUTTON_SIZE:le[20],PREFIX_TEXT_TYPE:w.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:N.SPAN};var D=class extends ee(V(Me)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=no.OFF;this.autocomplete="off";this.autofocus=!1;this.clearAriaLabel=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.inputElement.checkValidity(),this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(e=>{this.onerror&&this.onerror(e)})}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setInputValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&this.handleValueChange()}setInputValidity(){this.requiredLabel&&this.validationMessage&&this.value===""?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()}attributeChangedCallback(e,r,i){super.attributeChangedCallback(e,r,i),["maxlength","minlength","pattern","required"].includes(e)&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(n=>{this.onerror&&this.onerror(n)})}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value)}onInput(){this.updateValue(),this.setInputValidity()}onChange(e){this.updateValue(),this.setInputValidity();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?h`
|
1674
1674
|
<mdc-icon
|
1675
1675
|
class="leading-icon"
|
1676
1676
|
part="leading-icon"
|
@@ -1678,16 +1678,16 @@
|
|
1678
1678
|
size="${Ze.ICON_SIZE_VALUE}"
|
1679
1679
|
length-unit="${Ze.ICON_SIZE_UNIT}">
|
1680
1680
|
</mdc-icon>
|
1681
|
-
`:b}renderPrefixText(){return this.prefixText?
|
1681
|
+
`:b}renderPrefixText(){return this.prefixText?h`
|
1682
1682
|
<mdc-text
|
1683
1683
|
class="prefix-text"
|
1684
1684
|
tagname="${Ze.PREFIX_TEXT_TAG}"
|
1685
1685
|
type="${Ze.PREFIX_TEXT_TYPE}"
|
1686
1686
|
aria-hidden="true"
|
1687
1687
|
>
|
1688
|
-
${this.prefixText.slice(0,
|
1688
|
+
${this.prefixText.slice(0,kn.MAX_LENGTH)}
|
1689
1689
|
</mdc-text>
|
1690
|
-
`:b}clearInputText(){var e;this.value="",(e=this.inputElement)==null||e.focus()}renderTrailingButton(){return this.trailingButton?
|
1690
|
+
`:b}clearInputText(){var e;this.value="",(e=this.inputElement)==null||e.focus()}renderTrailingButton(){return this.trailingButton?h`
|
1691
1691
|
<mdc-button
|
1692
1692
|
part='trailing-button'
|
1693
1693
|
class='own-focus-ring ${this.value?"":"hidden"}'
|
@@ -1698,7 +1698,7 @@
|
|
1698
1698
|
@click=${this.clearInputText}
|
1699
1699
|
?disabled=${this.disabled||this.readonly||!this.value}
|
1700
1700
|
></mdc-button>
|
1701
|
-
`:b}render(){var e;return
|
1701
|
+
`:b}render(){var e;return h`
|
1702
1702
|
${this.renderLabel()}
|
1703
1703
|
<div class="input-container mdc-focus-ring" part="input-container">
|
1704
1704
|
<slot name="input-leading-icon">${this.renderLeadingIcon()}</slot>
|
@@ -1716,7 +1716,7 @@
|
|
1716
1716
|
?readonly="${this.readonly}"
|
1717
1717
|
?required="${!!this.requiredLabel}"
|
1718
1718
|
type="text"
|
1719
|
-
aria-describedby="${A(this.helpText?
|
1719
|
+
aria-describedby="${A(this.helpText?F.HELPER_TEXT_ID:"")}"
|
1720
1720
|
aria-invalid="${this.helpTextType==="error"?"true":"false"}"
|
1721
1721
|
placeholder=${A(this.placeholder)}
|
1722
1722
|
minlength=${A(this.minlength)}
|
@@ -1737,7 +1737,7 @@
|
|
1737
1737
|
<slot name="trailing-button">${this.renderTrailingButton()}</slot>
|
1738
1738
|
</div>
|
1739
1739
|
${this.helpText?this.renderHelperText():b}
|
1740
|
-
`}};D.styles=[...
|
1740
|
+
`}};D.styles=[...Me.styles,...Ln],l([d({type:String})],D.prototype,"placeholder",2),l([d({type:Boolean})],D.prototype,"readonly",2),l([d({type:String,attribute:"prefix-text"})],D.prototype,"prefixText",2),l([d({type:String,attribute:"leading-icon"})],D.prototype,"leadingIcon",2),l([d({type:Boolean,attribute:"trailing-button"})],D.prototype,"trailingButton",2),l([d({type:Number})],D.prototype,"maxlength",2),l([d({type:Number})],D.prototype,"minlength",2),l([d({type:String})],D.prototype,"autocapitalize",2),l([d({type:String})],D.prototype,"autocomplete",2),l([d({type:Boolean})],D.prototype,"autofocus",2),l([d({type:String})],D.prototype,"dirname",2),l([d({type:String})],D.prototype,"pattern",2),l([d({type:String})],D.prototype,"list",2),l([d({type:Number})],D.prototype,"size",2),l([d({type:String,attribute:"clear-aria-label"})],D.prototype,"clearAriaLabel",2);var ai=D;ai.register(Rn);var Ul=ai;var Nn=v.constructTagName("link"),ao={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},lo={LARGE:1,MIDSIZE:.875,SMALL:.75},co={INLINE:!1,INVERTED:!1,LINK_SIZE:ao.LARGE};var Vl=[k,f`
|
1741
1741
|
|
1742
1742
|
:host {
|
1743
1743
|
|
@@ -1856,35 +1856,35 @@
|
|
1856
1856
|
:host([inverted][disabled])::part(link-container) {
|
1857
1857
|
color: var(--mdc-link-inverted-color-disabled);
|
1858
1858
|
}
|
1859
|
-
`,...z(!0),
|
1859
|
+
`,...z(!0),f`
|
1860
1860
|
:host(:active)::part(link-container) {
|
1861
1861
|
box-shadow: none;
|
1862
1862
|
}
|
1863
|
-
`],
|
1863
|
+
`],On=Vl;var yt=class extends ve(fe(E)){constructor(){super(...arguments);this.inline=co.INLINE;this.inverted=co.INVERTED;this.size=co.LINK_SIZE;this.prevTabindex=null}getIconSize(){switch(this.size){case ao.SMALL:return lo.SMALL;case ao.MIDSIZE:return lo.MIDSIZE;default:return lo.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 i,s;let e=(s=(i=this.shadowRoot)==null?void 0:i.querySelector("slot"))==null?void 0:s.assignedElements({flatten:!0}).find(n=>n.tagName==="A"),r=this.getIconSize();if(this.iconName&&e){let n=document.createElement("mdc-icon");n.setAttribute("name",this.iconName),n.setAttribute("size",`${r}`),n.setAttribute("length-unit","rem"),e.appendChild(n)}}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this.disabled)}render(){return h`
|
1864
1864
|
<div part='link-container' class='mdc-focus-ring'>
|
1865
1865
|
<slot @slotchange=${this.updateTrailingIcon}></slot>
|
1866
1866
|
</div>
|
1867
|
-
`}};
|
1867
|
+
`}};yt.styles=[...E.styles,...On],l([d({type:Boolean,reflect:!0})],yt.prototype,"inline",2),l([d({type:Boolean,reflect:!0})],yt.prototype,"inverted",2),l([d({type:String,reflect:!0})],yt.prototype,"size",2);var li=yt;li.register(Nn);var Fl=li;var mo=v.constructTagName("listitem"),ci={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},Mn={VARIANT:ci.FULL_WIDTH};var zn=v.constructTagName("list"),yr={ARROW_DOWN:"ArrowDown",ARROW_UP:"ArrowUp",HOME:"Home",END:"End"},di="header-id";var Hl=f`
|
1868
1868
|
:host::part(header-text) {
|
1869
1869
|
padding: 0.5rem 0.75rem;
|
1870
1870
|
}
|
1871
|
-
`,
|
1871
|
+
`,Dn=[Hl];var Vt=class extends V(E){constructor(){super(),this.addEventListener("keydown",this.handleKeyDown)}handleKeyDown(t){var i;let e=this.getCurrentIndex(t.target),r=this.getNewIndexBasedOnKey(t.key,e,this.listItems.length);r!==void 0&&((i=this.listItems[r])==null||i.focus(),this.resetTabIndexAndSetActiveTabIndex(r))}getCurrentIndex(t){return this.listItems.findIndex(e=>e===t||e===t.parentElement)}getNewIndexBasedOnKey(t,e,r){switch(t){case yr.ARROW_DOWN:return(e+1)%r;case yr.ARROW_UP:return(e-1+r)%r;case yr.HOME:return 0;case yr.END:return r-1;default:return}}handleMouseClick(t){let e=this.getCurrentIndex(t.target);this.resetTabIndexAndSetActiveTabIndex(e)}resetTabIndexAndSetActiveTabIndex(t){this.listItems.forEach((e,r)=>{let i=t===r?"0":"-1";e==null||e.setAttribute("tabindex",i)})}firstUpdated(){this.resetTabIndexAndSetActiveTabIndex(0)}render(){var e;let t=this.headerText?h`
|
1872
1872
|
<mdc-text
|
1873
|
-
id="${
|
1873
|
+
id="${di}"
|
1874
1874
|
part="header-text"
|
1875
|
-
type="${
|
1876
|
-
tagname="${
|
1875
|
+
type="${w.BODY_MIDSIZE_BOLD}"
|
1876
|
+
tagname="${N.SPAN}"
|
1877
1877
|
>${this.headerText}</mdc-text>
|
1878
|
-
`:b;return
|
1878
|
+
`:b;return h`
|
1879
1879
|
<div
|
1880
1880
|
role="list"
|
1881
|
-
aria-labelledby="${this.headerText?
|
1881
|
+
aria-labelledby="${this.headerText?di:""}"
|
1882
1882
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
1883
1883
|
>
|
1884
1884
|
${t}
|
1885
1885
|
<slot role="presentation" @click="${this.handleMouseClick}"></slot>
|
1886
1886
|
</div>
|
1887
|
-
`}};
|
1887
|
+
`}};Vt.styles=[...E.styles,...Dn],l([rt({selector:mo})],Vt.prototype,"listItems",2),l([d({type:String,attribute:"header-text",reflect:!0})],Vt.prototype,"headerText",2);var mi=Vt;mi.register(zn);var Bl=mi;var Gl=f`
|
1888
1888
|
:host {
|
1889
1889
|
--mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
|
1890
1890
|
--mdc-listitem-background-color-hover: var(--mds-color-theme-background-primary-hover);
|
@@ -1909,11 +1909,14 @@
|
|
1909
1909
|
border-radius: 3.125rem;
|
1910
1910
|
}
|
1911
1911
|
:host([disabled]),
|
1912
|
+
:host([disabled]:hover),
|
1913
|
+
:host([disabled]:active),
|
1912
1914
|
:host([disabled])::part(leading-text-secondary-label),
|
1913
1915
|
:host([disabled])::part(leading-text-tertiary-label),
|
1914
1916
|
:host([disabled])::part(leading-text-primary-label),
|
1915
1917
|
:host([disabled])::part(trailing-text-side-header),
|
1916
1918
|
:host([disabled])::part(trailing-text-subline) {
|
1919
|
+
background-color: unset;
|
1917
1920
|
color: var(--mdc-listitem-disabled-color);
|
1918
1921
|
cursor: default;
|
1919
1922
|
}
|
@@ -1950,27 +1953,27 @@
|
|
1950
1953
|
display: flex;
|
1951
1954
|
flex-direction: row;
|
1952
1955
|
}
|
1953
|
-
|
1956
|
+
`,$n=[Gl,...z()];var se=class extends V(ve(Br(E))){constructor(){super();this.variant=Mn.VARIANT;this.role=this.role||"listitem"}getText(e,r,i){return i?h`
|
1954
1957
|
<slot name="${e}">
|
1955
|
-
<mdc-text part="${e}" type="${r}" tagname="${
|
1958
|
+
<mdc-text part="${e}" type="${r}" tagname="${N.SPAN}">${i}</mdc-text>
|
1956
1959
|
</slot>
|
1957
|
-
`:b}disableSlottedChildren(e){[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(r=>{e?r.setAttribute("disabled",""):r.removeAttribute("disabled")})}update(e){super.update(e),e.has("disabled")&&(this.tabIndex=this.disabled?-1:0,this.disableSlottedChildren(this.disabled))}render(){return
|
1960
|
+
`:b}disableSlottedChildren(e){[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(r=>{e?r.setAttribute("disabled",""):r.removeAttribute("disabled")})}update(e){super.update(e),e.has("disabled")&&(this.tabIndex=this.disabled?-1:0,this.disableSlottedChildren(this.disabled))}render(){return h`
|
1958
1961
|
<div part="leading">
|
1959
1962
|
<slot name="leading-controls"></slot>
|
1960
1963
|
<div part="leading-text">
|
1961
|
-
${this.getText("leading-text-primary-label",
|
1962
|
-
${this.getText("leading-text-secondary-label",
|
1963
|
-
${this.getText("leading-text-tertiary-label",
|
1964
|
+
${this.getText("leading-text-primary-label",w.BODY_MIDSIZE_REGULAR,this.label)}
|
1965
|
+
${this.getText("leading-text-secondary-label",w.BODY_SMALL_REGULAR,this.secondaryLabel)}
|
1966
|
+
${this.getText("leading-text-tertiary-label",w.BODY_SMALL_REGULAR,this.tertiaryLabel)}
|
1964
1967
|
</div>
|
1965
1968
|
</div>
|
1966
1969
|
<div part="trailing">
|
1967
1970
|
<div part="trailing-text">
|
1968
|
-
${this.getText("trailing-text-side-header",
|
1969
|
-
${this.getText("trailing-text-subline",
|
1971
|
+
${this.getText("trailing-text-side-header",w.BODY_MIDSIZE_REGULAR,this.sideHeaderText)}
|
1972
|
+
${this.getText("trailing-text-subline",w.BODY_SMALL_REGULAR,this.sublineText)}
|
1970
1973
|
</div>
|
1971
1974
|
<slot name="trailing-controls"></slot>
|
1972
1975
|
</div>
|
1973
|
-
`}};
|
1976
|
+
`}};se.styles=[...E.styles,...$n],l([rt({slot:"leading-controls"})],se.prototype,"leadingControlsSlot",2),l([rt({slot:"trailing-controls"})],se.prototype,"trailingControlsSlot",2),l([d({type:String,reflect:!0})],se.prototype,"variant",2),l([d({type:String,reflect:!0})],se.prototype,"label",2),l([d({type:String,reflect:!0,attribute:"secondary-label"})],se.prototype,"secondaryLabel",2),l([d({type:String,reflect:!0,attribute:"tertiary-label"})],se.prototype,"tertiaryLabel",2),l([d({type:String,reflect:!0,attribute:"side-header-text"})],se.prototype,"sideHeaderText",2),l([d({type:String,reflect:!0,attribute:"subline-text"})],se.prototype,"sublineText",2);var Ft=se;Ft.register(mo);var Yl=Ft;var ql=f`
|
1974
1977
|
:host {
|
1975
1978
|
--mdc-marker-width: 0.25rem;
|
1976
1979
|
--mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
|
@@ -1995,7 +1998,7 @@
|
|
1995
1998
|
var(--mdc-marker-striped-background-color) 0.375rem
|
1996
1999
|
);
|
1997
2000
|
}
|
1998
|
-
`,
|
2001
|
+
`,Pn=[ql];var Un=v.constructTagName("marker"),Vn={SOLID:"solid",STRIPED:"striped"};var xr=class extends E{constructor(){super(...arguments);this.variant=Vn.SOLID}};xr.styles=[...E.styles,...Pn],l([d({type:String,reflect:!0})],xr.prototype,"variant",2);var pi=xr;pi.register(Un);var Wl=pi;qe.register(Tn);var Xl=qe;var Zl=[k,f`
|
1999
2002
|
:host{
|
2000
2003
|
--mdc-radio-inner-circle-size: 0.375rem;
|
2001
2004
|
--mdc-radio-text-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -2157,10 +2160,10 @@
|
|
2157
2160
|
display: none;
|
2158
2161
|
}
|
2159
2162
|
|
2160
|
-
`,...z(!0)],
|
2163
|
+
`,...z(!0)],Fn=Zl;var xt=class extends ee(V(re)){constructor(){super();this.checked=!1;this.readonly=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?h`<div class="mdc-radio__label-container">
|
2161
2164
|
${this.renderLabel()}
|
2162
2165
|
${this.renderHelperText()}
|
2163
|
-
</div>`:b;this.helpTextType=void 0}firstUpdated(){this.updateTabIndex()}getAllRadiosWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-radio[name="${this.name}"]`))}dispatchChangeEvent(e){let r=e.constructor;this.dispatchEvent(new r(e.type,e))}formResetCallback(){this.getAllRadiosWithinSameGroup().forEach(r=>{r.checked=!1}),this.updateComplete.then(()=>{this.setActualFormValue()}).catch(r=>{this.onerror&&this.onerror(r)})}formStateRestoreCallback(e){this.value===e&&e!==""&&(this.checked=!0)}setComponentValidity(e){e?this.internals.setValidity({}):this.requiredLabel&&!this.checked&&(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()),this.updateTabIndex()}setGroupValidity(e,r){this.updateComplete.then(()=>{e.forEach(i=>{i.setComponentValidity(r)})}).catch(i=>{this.onerror&&this.onerror(i)})}setActualFormValue(){let e="";this.checked?e=this.value?this.value:"on":e=null;let r=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(r,!0);else{let i=r.some(a=>a.requiredLabel),s=!!r.find(a=>a.checked),n=i&&!s;this.setGroupValidity(r,!n)}this.internals.setFormValue(e)}handleChange(e){var s;if(this.disabled||this.readonly)return;this.getAllRadiosWithinSameGroup().forEach(n=>{var c;let a=(c=n.shadowRoot)==null?void 0:c.querySelector("input");a&&(n.checked=!1,a.checked=!1)}),this.checked=!0;let i=(s=this.shadowRoot)==null?void 0:s.querySelector("input");i&&(i.checked=!0),this.dispatchChangeEvent(e)}updateRadio(e,r,i){var s,n;(n=(s=e[r].shadowRoot)==null?void 0:s.querySelector("input"))==null||n.focus(),e[r].handleChange(i)}handleKeyDown(e){var n;if(this.disabled)return;let i=this.getAllRadiosWithinSameGroup().filter(a=>!a.disabled),s=i.indexOf(this);if(["ArrowDown","ArrowRight"].includes(e.key)){let a=(s+1)%i.length;this.updateRadio(i,a,e)}else if(["ArrowUp","ArrowLeft"].includes(e.key)){let a=(s-1+i.length)%i.length;this.updateRadio(i,a,e)}else e.key===" "&&this.updateRadio(i,s,e);this.updateTabIndex(),e.key==="Enter"&&((n=this.form)==null||n.requestSubmit())}updateTabIndex(){let e=this.getAllRadiosWithinSameGroup(),r=e.find(s=>s.checked),i=e.find(s=>!s.disabled);e.forEach(s=>{var a;let n=(a=s.shadowRoot)==null?void 0:a.querySelector("input");n&&(n.tabIndex=-1,(s===r||!r&&s===i)&&(n.tabIndex=0))})}update(e){super.update(e),e.has("checked")&&this.setActualFormValue()}render(){var e;return
|
2166
|
+
</div>`:b;this.helpTextType=void 0}firstUpdated(){this.updateTabIndex()}getAllRadiosWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-radio[name="${this.name}"]`))}dispatchChangeEvent(e){let r=e.constructor;this.dispatchEvent(new r(e.type,e))}formResetCallback(){this.getAllRadiosWithinSameGroup().forEach(r=>{r.checked=!1}),this.updateComplete.then(()=>{this.setActualFormValue()}).catch(r=>{this.onerror&&this.onerror(r)})}formStateRestoreCallback(e){this.value===e&&e!==""&&(this.checked=!0)}setComponentValidity(e){e?this.internals.setValidity({}):this.requiredLabel&&!this.checked&&(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()),this.updateTabIndex()}setGroupValidity(e,r){this.updateComplete.then(()=>{e.forEach(i=>{i.setComponentValidity(r)})}).catch(i=>{this.onerror&&this.onerror(i)})}setActualFormValue(){let e="";this.checked?e=this.value?this.value:"on":e=null;let r=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(r,!0);else{let i=r.some(a=>a.requiredLabel),s=!!r.find(a=>a.checked),n=i&&!s;this.setGroupValidity(r,!n)}this.internals.setFormValue(e)}handleChange(e){var s;if(this.disabled||this.readonly)return;this.getAllRadiosWithinSameGroup().forEach(n=>{var c;let a=(c=n.shadowRoot)==null?void 0:c.querySelector("input");a&&(n.checked=!1,a.checked=!1)}),this.checked=!0;let i=(s=this.shadowRoot)==null?void 0:s.querySelector("input");i&&(i.checked=!0),this.dispatchChangeEvent(e)}updateRadio(e,r,i){var s,n;(n=(s=e[r].shadowRoot)==null?void 0:s.querySelector("input"))==null||n.focus(),e[r].handleChange(i)}handleKeyDown(e){var n;if(this.disabled)return;let i=this.getAllRadiosWithinSameGroup().filter(a=>!a.disabled),s=i.indexOf(this);if(["ArrowDown","ArrowRight"].includes(e.key)){let a=(s+1)%i.length;this.updateRadio(i,a,e)}else if(["ArrowUp","ArrowLeft"].includes(e.key)){let a=(s-1+i.length)%i.length;this.updateRadio(i,a,e)}else e.key===" "&&this.updateRadio(i,s,e);this.updateTabIndex(),e.key==="Enter"&&((n=this.form)==null||n.requestSubmit())}updateTabIndex(){let e=this.getAllRadiosWithinSameGroup(),r=e.find(s=>s.checked),i=e.find(s=>!s.disabled);e.forEach(s=>{var a;let n=(a=s.shadowRoot)==null?void 0:a.querySelector("input");n&&(n.tabIndex=-1,(s===r||!r&&s===i)&&(n.tabIndex=0))})}update(e){super.update(e),e.has("checked")&&this.setActualFormValue()}render(){var e;return h`
|
2164
2167
|
<div class="mdc-radio__container">
|
2165
2168
|
<div class="mdc-radio__icon-container mdc-focus-ring">
|
2166
2169
|
<input
|
@@ -2178,14 +2181,14 @@
|
|
2178
2181
|
?disabled=${this.disabled}
|
2179
2182
|
class="mdc-radio__input"
|
2180
2183
|
aria-checked="${this.checked}"
|
2181
|
-
aria-describedby="${A(this.helpText?
|
2184
|
+
aria-describedby="${A(this.helpText?F.HELPER_TEXT_ID:"")}"
|
2182
2185
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
2183
2186
|
/>
|
2184
2187
|
<span class="mdc-radio__icon"></span>
|
2185
2188
|
</div>
|
2186
2189
|
${this.renderLabelAndHelperText()}
|
2187
2190
|
</div>
|
2188
|
-
`}};
|
2191
|
+
`}};xt.styles=[...re.styles,...Fn],l([d({type:Boolean,reflect:!0})],xt.prototype,"checked",2),l([d({type:Boolean,reflect:!0})],xt.prototype,"readonly",2),l([d({type:Boolean,reflect:!0})],xt.prototype,"autofocus",2);var hi=xt;var po=v.constructTagName("radio");hi.register(po);var jl=hi;var Er=class extends so{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var e,r,i,s,n;(n=(s=(i=(r=Array.from(((e=this.shadowRoot)==null?void 0:e.querySelectorAll("slot"))||[]))==null?void 0:r.flatMap(a=>a.assignedElements({flatten:!0})))==null?void 0:i.filter(a=>a.tagName.toLowerCase()===po))==null?void 0:s.filter(a=>!a.hasAttribute("name")))==null||n.forEach(a=>{a.setAttribute("name",this.name),this.requiredLabel&&a.setAttribute("required-label",this.requiredLabel)})}};Er.styles=[...so.styles],l([d({type:String})],Er.prototype,"name",2);var ui=Er;var Hn=v.constructTagName("radiogroup");ui.register(Hn);var Kl=ui;var Ql=[k,f`
|
2189
2192
|
:host {
|
2190
2193
|
--mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
|
2191
2194
|
--mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
|
@@ -2247,11 +2250,11 @@
|
|
2247
2250
|
stroke-dashoffset: -292;
|
2248
2251
|
}
|
2249
2252
|
}
|
2250
|
-
`]
|
2253
|
+
`],Bn=Ql;var Gn=v.constructTagName("spinner"),Jl={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},ec={STANDALONE:"standalone",BUTTON:"button"},ho={VARIANT:ec.STANDALONE,SIZE:Jl.MIDSIZE,INVERTED:!1};var je=class extends E{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 h`
|
2251
2254
|
<svg part="container" viewBox="0 0 100 100">
|
2252
2255
|
<circle part="circle" cx="50" cy="50" r="46"></circle>
|
2253
2256
|
</svg>
|
2254
|
-
`}};je.styles=[...E.styles
|
2257
|
+
`}};je.styles=[...E.styles,...Bn],l([d({type:Boolean,reflect:!0})],je.prototype,"inverted",2),l([d({type:String,reflect:!0})],je.prototype,"size",2),l([d({type:String,attribute:"aria-label"})],je.prototype,"ariaLabel",2),l([d({type:String,reflect:!0})],je.prototype,"variant",2);var fi=je;fi.register(Gn);var tc=fi;var rc=[k,f`
|
2255
2258
|
|
2256
2259
|
:host {
|
2257
2260
|
--mdc-tab-content-gap: 0.5rem;
|
@@ -2494,12 +2497,12 @@
|
|
2494
2497
|
color: var(--mdc-tab-pill-active-color-disabled);
|
2495
2498
|
}
|
2496
2499
|
|
2497
|
-
`,...z()],
|
2500
|
+
`,...z()],Yn=rc;var qn=v.constructTagName("tab"),gi={GLASS:"glass",LINE:"line",PILL:"pill"},bi={VARIANT:gi.PILL};var Ht=class extends fe(Be){constructor(){super();this.variant=bi.VARIANT;this.role="tab",this.softDisabled=void 0,this.size=void 0,this.type=void 0}modifyIconName(e){this.iconName&&(e?(this.prevIconName=this.iconName,this.iconName=`${cr(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(e){this.setAttribute("variant",Object.values(gi).includes(e)?e:bi.VARIANT)}setActive(e,r){e.setAttribute("aria-selected",r?"true":"false"),this.modifyIconName(r)}executeAction(){this.active=!this.active}update(e){super.update(e),e.has("variant")&&this.setVariant(this.variant)}render(){return h`
|
2498
2501
|
<div part="container">
|
2499
|
-
${this.iconName?
|
2500
|
-
${this.text?
|
2501
|
-
type=${this.active?
|
2502
|
-
tagname=${
|
2502
|
+
${this.iconName?h` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:b}
|
2503
|
+
${this.text?h` <mdc-text
|
2504
|
+
type=${this.active?w.BODY_MIDSIZE_BOLD:w.BODY_MIDSIZE_MEDIUM}
|
2505
|
+
tagname=${N.SPAN}
|
2503
2506
|
data-text=${this.text}
|
2504
2507
|
part="text"
|
2505
2508
|
>${this.text}</mdc-text
|
@@ -2508,7 +2511,7 @@
|
|
2508
2511
|
<slot name="chip"></slot>
|
2509
2512
|
</div>
|
2510
2513
|
<div part="indicator"></div>
|
2511
|
-
`}};
|
2514
|
+
`}};Ht.styles=[...Be.styles,...Yn],l([d({type:String,reflect:!0})],Ht.prototype,"text",2),l([d({type:String,reflect:!0})],Ht.prototype,"variant",2);var vi=Ht;vi.register(qn);var oc=vi;var uo=v.constructTagName("themeprovider"),yi={THEMECLASS:"mds-theme-stable-darkWebex"};var fo=class{constructor(t){this.themeclass=t}};fo.context=uo;var go=fo;var ic=f`
|
2512
2515
|
:host {
|
2513
2516
|
--mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
|
2514
2517
|
--mdc-themeprovider-font-family: var(--mds-font-family-primary);
|
@@ -2537,7 +2540,7 @@
|
|
2537
2540
|
* {
|
2538
2541
|
scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
|
2539
2542
|
}
|
2540
|
-
`,
|
2543
|
+
`,Wn=[ic];var Bt=class extends Rt{constructor(){super({context:go.context,initialValue:new go(yi.THEMECLASS)});this.themeclass=yi.THEMECLASS}static get Context(){return go.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(" "))}};Bt.styles=[...Rt.styles,...Wn],l([W()],Bt.prototype,"currentThemeClass",2),l([d({type:String})],Bt.prototype,"themeclass",2);var xi=Bt;xi.register(uo);var sc=xi;var nc=[k,f`
|
2541
2544
|
:host {
|
2542
2545
|
--mdc-toggle-width: 3rem;
|
2543
2546
|
--mdc-toggle-height: 1.5rem;
|
@@ -2689,7 +2692,7 @@
|
|
2689
2692
|
border: var(--mdc-toggle-border);
|
2690
2693
|
}
|
2691
2694
|
}
|
2692
|
-
`,...z(!0)],
|
2695
|
+
`,...z(!0)],Xn=nc;var Zn=v.constructTagName("toggle"),Ei={DEFAULT:"default",COMPACT:"compact"},Ti={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},jn={compact:.75,default:1.25},Ai={SIZE:Ei.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var Et=class extends ee(V(Me)){constructor(){super();this.checked=!1;this.size=Ai.SIZE;this.autofocus=!1;this.helpTextType=void 0}formResetCallback(){this.checked=!1}formStateRestoreCallback(e){e&&(this.checked=!0)}manageRequired(){!this.checked&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}setFormValue(){let e=null;this.checked?e=this.value?this.value:"isActive":e=null,this.manageRequired(),this.internals.setFormValue(e)}toggleState(){this.disabled||(this.checked=!this.checked)}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}handleChange(e){this.toggleState();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}setToggleSize(e){this.setAttribute("size",Object.values(Ei).includes(e)?e:Ai.SIZE)}update(e){super.update(e),e.has("checked")&&this.setFormValue(),e.has("size")&&this.setToggleSize(this.size)}render(){var e;return h`
|
2693
2696
|
<div class="mdc-toggle__container mdc-focus-ring">
|
2694
2697
|
<input
|
2695
2698
|
id="${this.id}"
|
@@ -2703,7 +2706,7 @@
|
|
2703
2706
|
.checked="${this.checked}"
|
2704
2707
|
aria-checked="${this.checked}"
|
2705
2708
|
.disabled="${this.disabled}"
|
2706
|
-
aria-describedby="${A(this.helpText?
|
2709
|
+
aria-describedby="${A(this.helpText?F.HELPER_TEXT_ID:"")}"
|
2707
2710
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
2708
2711
|
tabindex="${this.disabled?-1:0}"
|
2709
2712
|
@change="${this.handleChange}"
|
@@ -2711,16 +2714,16 @@
|
|
2711
2714
|
/>
|
2712
2715
|
<div class="mdc-toggle__slider">
|
2713
2716
|
<mdc-icon
|
2714
|
-
name="${this.checked?
|
2717
|
+
name="${this.checked?Ti.CHECKED:Ti.UNCHECKED}"
|
2715
2718
|
class="mdc-toggle__icon"
|
2716
2719
|
length-unit="rem"
|
2717
|
-
size="${
|
2720
|
+
size="${jn[this.size]}"
|
2718
2721
|
></mdc-icon>
|
2719
2722
|
</div>
|
2720
2723
|
</div>
|
2721
2724
|
${this.renderLabel()}
|
2722
2725
|
${this.renderHelperText()}
|
2723
|
-
`}};
|
2726
|
+
`}};Et.styles=[...Me.styles,...Xn],l([d({type:Boolean,reflect:!0})],Et.prototype,"checked",2),l([d({type:String,reflect:!0})],Et.prototype,"size",2),l([d({type:Boolean,reflect:!0})],Et.prototype,"autofocus",2);var Si=Et;Si.register(Zn);var ac=Si;var Kn=v.constructTagName("tooltip"),K={DESCRIPTION:"description",LABEL:"label",NONE:"none"},ze={BACKDROP:!1,COLOR:ht.TONAL,DELAY:"0,0",OFFSET:4,PLACEMENT:pt.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:K.DESCRIPTION};var lc=f`
|
2724
2727
|
|
2725
2728
|
:host {
|
2726
2729
|
--mdc-tooltip-max-width: 400px;
|
@@ -2745,10 +2748,10 @@
|
|
2745
2748
|
:host([color='contrast'])::part(popover-content) {
|
2746
2749
|
color: var(--mdc-tooltip-text-color-contrast);
|
2747
2750
|
}
|
2748
|
-
`,
|
2751
|
+
`,Qn=[lc];var Gt=class extends qe{constructor(){super();this.tooltipType=ze.TOOLTIP_TYPE;this.backdrop=!1,this.color=ze.COLOR,this.delay=ze.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=ze.OFFSET,this.placement=ze.PLACEMENT,this.role="tooltip",this.showArrow=!0,this.trigger="mouseenter focusin",this.visible=!1,this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.flip=!0,this.focusTrap=!1,this.preventScroll=!1,this.closeButton=!1,this.hideOnOutsideClick=!1,this.focusBackToTrigger=!1,this.size=!1,this.disableAriaExpanded=!0}getTooltipText(){var e,r;return((r=(e=this.defaultSlotNodes)==null?void 0:e.map(i=>i.textContent).join(" "))==null?void 0:r.trim())||""}setTooltipType(e){this.setAttribute("tooltip-type",Object.values(K).includes(e)?e:ze.TOOLTIP_TYPE)}onIdUpdated(){this.id.length===0&&(this.id=`mdc-tooltip-${dr()}`);let e=document.getElementById(this.triggerID);if(e)switch(this.tooltipType){case K.DESCRIPTION:e.setAttribute("aria-describedby",this.id);break;case K.LABEL:e.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(pt).includes(this.placement)||(this.placement=ze.PLACEMENT)}onTooltipTypeUpdated(e){let r=e.get("tooltipType");Object.values(K).includes(this.tooltipType)||this.setTooltipType(ze.TOOLTIP_TYPE);let i=document.getElementById(this.triggerID);if(i){let s=this.getTooltipText();switch(this.tooltipType){case K.DESCRIPTION:r===K.LABEL&&i.removeAttribute("aria-labelledby"),i.setAttribute("aria-describedby",this.id);break;case K.LABEL:r===K.DESCRIPTION&&i.removeAttribute("aria-describedby"),i.setAttribute("aria-labelledby",this.id);break;default:r===K.DESCRIPTION?i.removeAttribute("aria-describedby"):r===K.LABEL&&i.removeAttribute("aria-labelledby");break}s.length>0&&this.tooltipType!==K.NONE&&!this.ariaLabel&&(this.ariaLabel=s)}}update(e){super.update(e),e.has("id")&&this.onIdUpdated(),e.has("placement")&&this.onPlacementUpdated(),e.has("tooltipType")&&this.onTooltipTypeUpdated(e)}};Gt.styles=[...qe.styles,...Qn],l([d({type:String,attribute:"tooltip-type",reflect:!0})],Gt.prototype,"tooltipType",2),l([os()],Gt.prototype,"defaultSlotNodes",2);var _i=Gt;_i.register(Kn);var cc=_i;function Tt(o,t,e){var s;let r=(s=e.initialDeps)!=null?s:[],i;return()=>{var n,a,c,m;let p;e.key&&((n=e.debug)!=null&&n.call(e))&&(p=Date.now());let u=o();if(!(u.length!==r.length||u.some((x,T)=>r[T]!==x)))return i;r=u;let g;if(e.key&&((a=e.debug)!=null&&a.call(e))&&(g=Date.now()),i=t(...u),e.key&&((c=e.debug)!=null&&c.call(e))){let x=Math.round((Date.now()-p)*100)/100,T=Math.round((Date.now()-g)*100)/100,_=T/16,S=(I,L)=>{for(I=String(I);I.length<L;)I=" "+I;return I};console.info(`%c\u23F1 ${S(T,5)} /${S(x,5)} ms`,`
|
2749
2752
|
font-size: .6rem;
|
2750
2753
|
font-weight: bold;
|
2751
|
-
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,i),i}}function uo(o,t){if(o===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return o}var Wn=(o,t)=>Math.abs(o-t)<1,Xn=(o,t,e)=>{let r;return function(...i){o.clearTimeout(r),r=o.setTimeout(()=>t.apply(this,i),e)}};var ec=o=>o,tc=o=>{let t=Math.max(o.startIndex-o.overscan,0),e=Math.min(o.endIndex+o.overscan,o.count-1),r=[];for(let i=t;i<=e;i++)r.push(i);return r},jn=(o,t)=>{let e=o.scrollElement;if(!e)return;let r=o.targetWindow;if(!r)return;let i=n=>{let{width:a,height:c}=n;t({width:Math.round(a),height:Math.round(c)})};if(i(e.getBoundingClientRect()),!r.ResizeObserver)return()=>{};let s=new r.ResizeObserver(n=>{let a=n[0];if(a!=null&&a.borderBoxSize){let c=a.borderBoxSize[0];if(c){i({width:c.inlineSize,height:c.blockSize});return}}i(e.getBoundingClientRect())});return s.observe(e,{box:"border-box"}),()=>{s.unobserve(e)}},Zn={passive:!0};var rc=typeof window>"u"?!0:"onscrollend"in window,Kn=(o,t)=>{let e=o.scrollElement;if(!e)return;let r=o.targetWindow;if(!r)return;let i=0,s=o.options.useScrollendEvent&&rc?()=>{}:Xn(r,()=>{t(i,!1)},o.options.isScrollingResetDelay),n=m=>()=>{let{horizontal:h,isRtl:p}=o.options;i=h?e.scrollLeft*(p&&-1||1):e.scrollTop,s(),t(i,m)},a=n(!0),c=n(!1);return c(),e.addEventListener("scroll",a,Zn),e.addEventListener("scrollend",c,Zn),()=>{e.removeEventListener("scroll",a),e.removeEventListener("scrollend",c)}};var oc=(o,t,e)=>{if(t!=null&&t.borderBoxSize){let r=t.borderBoxSize[0];if(r)return Math.round(r[e.options.horizontal?"inlineSize":"blockSize"])}return Math.round(o.getBoundingClientRect()[e.options.horizontal?"width":"height"])};var Qn=(o,{adjustments:t=0,behavior:e},r)=>{var i,s;let n=o+t;(s=(i=r.scrollElement)==null?void 0:i.scrollTo)==null||s.call(i,{[r.options.horizontal?"left":"top"]:n,behavior:e})},fo=class{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,r=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(i=>{i.forEach(s=>{this._measureElement(s.target,s)})}));return{disconnect:()=>{var i;(i=r())==null||i.disconnect(),e=null},observe:i=>{var s;return(s=r())==null?void 0:s.observe(i,{box:"border-box"})},unobserve:i=>{var s;return(s=r())==null?void 0:s.unobserve(i)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([r,i])=>{typeof i>"u"&&delete e[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:ec,rangeExtractor:tc,onChange:()=>{},measureElement:oc,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...e}},this.notify=e=>{var r,i;(i=(r=this.options).onChange)==null||i.call(r,this,e)},this.maybeNotify=Et(()=>(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 i;var e;let r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(i=(e=this.scrollElement)==null?void 0:e.window)!=null?i:null,this.elementsCache.forEach(s=>{this.observer.observe(s)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,s=>{this.scrollRect=s,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(s,n)=>{this.scrollAdjustments=0,this.scrollDirection=n?this.getScrollOffset()<s?"forward":"backward":null,this.scrollOffset=s,this.isScrolling=n,this.maybeNotify()}))}},this.getSize=()=>{var e;return this.options.enabled?(this.scrollRect=(e=this.scrollRect)!=null?e:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var e;return this.options.enabled?(this.scrollOffset=(e=this.scrollOffset)!=null?e:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(e,r)=>{let i=new Map,s=new Map;for(let n=r-1;n>=0;n--){let a=e[n];if(i.has(a.lane))continue;let c=s.get(a.lane);if(c==null||a.end>c.end?s.set(a.lane,a):a.end<c.end&&i.set(a.lane,!0),i.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((n,a)=>n.end===a.end?n.index-a.index:n.end-a.end)[0]:void 0},this.getMeasurementOptions=Et(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,r,i,s,n)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:r,scrollMargin:i,getItemKey:s,enabled:n}),{key:!1}),this.getMeasurements=Et(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:r,scrollMargin:i,getItemKey:s,enabled:n},a)=>{if(!n)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 c=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let m=this.measurementsCache.slice(0,c);for(let h=c;h<e;h++){let p=s(h),y=this.options.lanes===1?m[h-1]:this.getFurthestMeasurement(m,h),f=y?y.end+this.options.gap:r+i,x=a.get(p),T=typeof x=="number"?x:this.options.estimateSize(h),_=f+T,S=y?y.lane:h%this.options.lanes;m[h]={index:h,start:f,size:T,end:_,key:p,lane:S}}return this.measurementsCache=m,m},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Et(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,r,i)=>this.range=e.length>0&&r>0?ic({measurements:e,outerSize:r,scrollOffset:i}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Et(()=>{let e=null,r=null,i=this.calculateRange();return i&&(e=i.startIndex,r=i.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,r]},(e,r,i,s,n)=>s===null||n===null?[]:e({startIndex:s,endIndex:n,overscan:r,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let r=this.options.indexAttribute,i=e.getAttribute(r);return i?parseInt(i,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(e,r)=>{let i=this.indexFromElement(e),s=this.measurementsCache[i];if(!s)return;let n=s.key,a=this.elementsCache.get(n);a!==e&&(a&&this.observer.unobserve(a),this.observer.observe(e),this.elementsCache.set(n,e)),e.isConnected&&this.resizeItem(i,this.options.measureElement(e,r,this))},this.resizeItem=(e,r)=>{var a;let i=this.measurementsCache[e];if(!i)return;let s=(a=this.itemSizeCache.get(i.key))!=null?a:i.size,n=r-s;n!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,n,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=n,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,r)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((r,i)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(i))});return}this._measureElement(e,void 0)},this.getVirtualItems=Et(()=>[this.getIndexes(),this.getMeasurements()],(e,r)=>{let i=[];for(let s=0,n=e.length;s<n;s++){let a=e[s],c=r[a];i.push(c)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let r=this.getMeasurements();if(r.length!==0)return uo(r[Jn(0,r.length-1,i=>uo(r[i]).start,e)])},this.getOffsetForAlignment=(e,r)=>{let i=this.getSize(),s=this.getScrollOffset();r==="auto"&&e>=s+i&&(r="end"),r==="end"&&(e-=i);let n=this.options.horizontal?"scrollWidth":"scrollHeight",c=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[n]:this.scrollElement[n]:0)-i;return Math.max(Math.min(c,e),0)},this.getOffsetForIndex=(e,r="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let i=this.measurementsCache[e];if(!i)return;let s=this.getSize(),n=this.getScrollOffset();if(r==="auto")if(i.end>=n+s-this.options.scrollPaddingEnd)r="end";else if(i.start<=n+this.options.scrollPaddingStart)r="start";else return[n,r];let a=i.start-this.options.scrollPaddingStart+(i.size-s)/2;switch(r){case"center":return[this.getOffsetForAlignment(a,r),r];case"end":return[this.getOffsetForAlignment(i.end+this.options.scrollPaddingEnd,r),r];default:return[this.getOffsetForAlignment(i.start-this.options.scrollPaddingStart,r),r]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:r="start",behavior:i}={})=>{this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,r),{adjustments:void 0,behavior:i})},this.scrollToIndex=(e,{align:r="auto",behavior:i}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let s=this.getOffsetForIndex(e,r);if(!s)return;let[n,a]=s;this._scrollToOffset(n,{adjustments:void 0,behavior:i}),i!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[m]=uo(this.getOffsetForIndex(e,a));Wn(m,this.getScrollOffset())||this.scrollToIndex(e,{align:a,behavior:i})}else this.scrollToIndex(e,{align:a,behavior:i})}))},this.scrollBy=(e,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var s;var e;let r=this.getMeasurements(),i;return r.length===0?i=this.options.paddingStart:i=this.options.lanes===1?(s=(e=r[r.length-1])==null?void 0:e.end)!=null?s:0:Math.max(...r.slice(-this.options.lanes).map(n=>n.end)),Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:r,behavior:i})=>{this.options.scrollToFn(e,{behavior:i,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}},Jn=(o,t,e,r)=>{for(;o<=t;){let i=(o+t)/2|0,s=e(i);if(s<r)o=i+1;else if(s>r)t=i-1;else return i}return o>0?o-1:0};function ic({measurements:o,outerSize:t,scrollOffset:e}){let r=o.length-1,s=Jn(0,r,a=>o[a].start,e),n=s;for(;n<r&&o[n].end<e+t;)n++;return{startIndex:s,endIndex:n}}var Ai=class{constructor(t,e){this.cleanup=()=>{},(this.host=t).addController(this);let r={...e,onChange:(i,s)=>{var n;this.host.updateComplete.then(()=>this.host.requestUpdate()),(n=e.onChange)==null||n.call(e,i,s)}};this.virtualizer=new fo(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},go=class extends Ai{constructor(t,e){super(t,{observeElementRect:jn,observeElementOffset:Kn,scrollToFn:Qn,...e})}};var{I:uT}=Wi;var ea=o=>o.strings===void 0;var yr=(o,t)=>{var r;let e=o._$AN;if(e===void 0)return!1;for(let i of e)(r=i._$AO)==null||r.call(i,t,!1),yr(i,t);return!0},bo=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while((e==null?void 0:e.size)===0)},ta=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),ac(t)}};function sc(o){this._$AN!==void 0?(bo(this),this._$AM=o,ta(this)):this._$AM=o}function nc(o,t=!1,e=0){let r=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(r))for(let s=e;s<r.length;s++)yr(r[s],!1),bo(r[s]);else r!=null&&(yr(r,!1),bo(r));else yr(this,o)}var ac=o=>{var t,e;o.type==Fr.CHILD&&((t=o._$AP)!=null||(o._$AP=nc),(e=o._$AQ)!=null||(o._$AQ=sc))},vo=class extends Mt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),ta(this),this.isConnected=t._$AU}_$AO(t,e=!0){var r,i;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)==null||r.call(this):(i=this.disconnected)==null||i.call(this)),e&&(yr(this,t),bo(this))}setValue(t){if(ea(this.t))this.t._$AI(t,this);else{let e=[...this.t._$AH];e[this.i]=t,this.t._$AI(e,this,0)}}disconnected(){}reconnected(){}};var ra=()=>new _i,_i=class{},Si=new WeakMap,oa=or(class extends vo{render(o){return b}update(o,[t]){var r;let e=t!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=t,this.ht=(r=o.options)==null?void 0:r.host,this.rt(this.ct=o.element)),b}rt(o){var t;if(this.isConnected||(o=void 0),typeof this.Y=="function"){let e=(t=this.ht)!=null?t:globalThis,r=Si.get(e);r===void 0&&(r=new WeakMap,Si.set(e,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,o),o!==void 0&&this.Y.call(this.ht,o)}else this.Y.value=o}get lt(){var o,t,e;return typeof this.Y=="function"?(t=Si.get((o=this.ht)!=null?o:globalThis))==null?void 0:t.get(this.Y):(e=this.Y)==null?void 0:e.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var lc=[g`
|
2754
|
+
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,i),i}}function bo(o,t){if(o===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return o}var Jn=(o,t)=>Math.abs(o-t)<1,ea=(o,t,e)=>{let r;return function(...i){o.clearTimeout(r),r=o.setTimeout(()=>t.apply(this,i),e)}};var dc=o=>o,mc=o=>{let t=Math.max(o.startIndex-o.overscan,0),e=Math.min(o.endIndex+o.overscan,o.count-1),r=[];for(let i=t;i<=e;i++)r.push(i);return r},ra=(o,t)=>{let e=o.scrollElement;if(!e)return;let r=o.targetWindow;if(!r)return;let i=n=>{let{width:a,height:c}=n;t({width:Math.round(a),height:Math.round(c)})};if(i(e.getBoundingClientRect()),!r.ResizeObserver)return()=>{};let s=new r.ResizeObserver(n=>{let a=n[0];if(a!=null&&a.borderBoxSize){let c=a.borderBoxSize[0];if(c){i({width:c.inlineSize,height:c.blockSize});return}}i(e.getBoundingClientRect())});return s.observe(e,{box:"border-box"}),()=>{s.unobserve(e)}},ta={passive:!0};var pc=typeof window>"u"?!0:"onscrollend"in window,oa=(o,t)=>{let e=o.scrollElement;if(!e)return;let r=o.targetWindow;if(!r)return;let i=0,s=o.options.useScrollendEvent&&pc?()=>{}:ea(r,()=>{t(i,!1)},o.options.isScrollingResetDelay),n=m=>()=>{let{horizontal:p,isRtl:u}=o.options;i=p?e.scrollLeft*(u&&-1||1):e.scrollTop,s(),t(i,m)},a=n(!0),c=n(!1);return c(),e.addEventListener("scroll",a,ta),e.addEventListener("scrollend",c,ta),()=>{e.removeEventListener("scroll",a),e.removeEventListener("scrollend",c)}};var hc=(o,t,e)=>{if(t!=null&&t.borderBoxSize){let r=t.borderBoxSize[0];if(r)return Math.round(r[e.options.horizontal?"inlineSize":"blockSize"])}return Math.round(o.getBoundingClientRect()[e.options.horizontal?"width":"height"])};var ia=(o,{adjustments:t=0,behavior:e},r)=>{var i,s;let n=o+t;(s=(i=r.scrollElement)==null?void 0:i.scrollTo)==null||s.call(i,{[r.options.horizontal?"left":"top"]:n,behavior:e})},vo=class{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,r=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(i=>{i.forEach(s=>{this._measureElement(s.target,s)})}));return{disconnect:()=>{var i;(i=r())==null||i.disconnect(),e=null},observe:i=>{var s;return(s=r())==null?void 0:s.observe(i,{box:"border-box"})},unobserve:i=>{var s;return(s=r())==null?void 0:s.unobserve(i)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([r,i])=>{typeof i>"u"&&delete e[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:dc,rangeExtractor:mc,onChange:()=>{},measureElement:hc,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...e}},this.notify=e=>{var r,i;(i=(r=this.options).onChange)==null||i.call(r,this,e)},this.maybeNotify=Tt(()=>(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 i;var e;let r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(i=(e=this.scrollElement)==null?void 0:e.window)!=null?i:null,this.elementsCache.forEach(s=>{this.observer.observe(s)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,s=>{this.scrollRect=s,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(s,n)=>{this.scrollAdjustments=0,this.scrollDirection=n?this.getScrollOffset()<s?"forward":"backward":null,this.scrollOffset=s,this.isScrolling=n,this.maybeNotify()}))}},this.getSize=()=>{var e;return this.options.enabled?(this.scrollRect=(e=this.scrollRect)!=null?e:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var e;return this.options.enabled?(this.scrollOffset=(e=this.scrollOffset)!=null?e:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(e,r)=>{let i=new Map,s=new Map;for(let n=r-1;n>=0;n--){let a=e[n];if(i.has(a.lane))continue;let c=s.get(a.lane);if(c==null||a.end>c.end?s.set(a.lane,a):a.end<c.end&&i.set(a.lane,!0),i.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((n,a)=>n.end===a.end?n.index-a.index:n.end-a.end)[0]:void 0},this.getMeasurementOptions=Tt(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,r,i,s,n)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:r,scrollMargin:i,getItemKey:s,enabled:n}),{key:!1}),this.getMeasurements=Tt(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:r,scrollMargin:i,getItemKey:s,enabled:n},a)=>{if(!n)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(p=>{this.itemSizeCache.set(p.key,p.size)}));let c=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let m=this.measurementsCache.slice(0,c);for(let p=c;p<e;p++){let u=s(p),y=this.options.lanes===1?m[p-1]:this.getFurthestMeasurement(m,p),g=y?y.end+this.options.gap:r+i,x=a.get(u),T=typeof x=="number"?x:this.options.estimateSize(p),_=g+T,S=y?y.lane:p%this.options.lanes;m[p]={index:p,start:g,size:T,end:_,key:u,lane:S}}return this.measurementsCache=m,m},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Tt(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,r,i)=>this.range=e.length>0&&r>0?uc({measurements:e,outerSize:r,scrollOffset:i}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Tt(()=>{let e=null,r=null,i=this.calculateRange();return i&&(e=i.startIndex,r=i.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,r]},(e,r,i,s,n)=>s===null||n===null?[]:e({startIndex:s,endIndex:n,overscan:r,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let r=this.options.indexAttribute,i=e.getAttribute(r);return i?parseInt(i,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(e,r)=>{let i=this.indexFromElement(e),s=this.measurementsCache[i];if(!s)return;let n=s.key,a=this.elementsCache.get(n);a!==e&&(a&&this.observer.unobserve(a),this.observer.observe(e),this.elementsCache.set(n,e)),e.isConnected&&this.resizeItem(i,this.options.measureElement(e,r,this))},this.resizeItem=(e,r)=>{var a;let i=this.measurementsCache[e];if(!i)return;let s=(a=this.itemSizeCache.get(i.key))!=null?a:i.size,n=r-s;n!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,n,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=n,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,r)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((r,i)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(i))});return}this._measureElement(e,void 0)},this.getVirtualItems=Tt(()=>[this.getIndexes(),this.getMeasurements()],(e,r)=>{let i=[];for(let s=0,n=e.length;s<n;s++){let a=e[s],c=r[a];i.push(c)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let r=this.getMeasurements();if(r.length!==0)return bo(r[sa(0,r.length-1,i=>bo(r[i]).start,e)])},this.getOffsetForAlignment=(e,r)=>{let i=this.getSize(),s=this.getScrollOffset();r==="auto"&&e>=s+i&&(r="end"),r==="end"&&(e-=i);let n=this.options.horizontal?"scrollWidth":"scrollHeight",c=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[n]:this.scrollElement[n]:0)-i;return Math.max(Math.min(c,e),0)},this.getOffsetForIndex=(e,r="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let i=this.measurementsCache[e];if(!i)return;let s=this.getSize(),n=this.getScrollOffset();if(r==="auto")if(i.end>=n+s-this.options.scrollPaddingEnd)r="end";else if(i.start<=n+this.options.scrollPaddingStart)r="start";else return[n,r];let a=i.start-this.options.scrollPaddingStart+(i.size-s)/2;switch(r){case"center":return[this.getOffsetForAlignment(a,r),r];case"end":return[this.getOffsetForAlignment(i.end+this.options.scrollPaddingEnd,r),r];default:return[this.getOffsetForAlignment(i.start-this.options.scrollPaddingStart,r),r]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:r="start",behavior:i}={})=>{this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,r),{adjustments:void 0,behavior:i})},this.scrollToIndex=(e,{align:r="auto",behavior:i}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let s=this.getOffsetForIndex(e,r);if(!s)return;let[n,a]=s;this._scrollToOffset(n,{adjustments:void 0,behavior:i}),i!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[m]=bo(this.getOffsetForIndex(e,a));Jn(m,this.getScrollOffset())||this.scrollToIndex(e,{align:a,behavior:i})}else this.scrollToIndex(e,{align:a,behavior:i})}))},this.scrollBy=(e,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var s;var e;let r=this.getMeasurements(),i;return r.length===0?i=this.options.paddingStart:i=this.options.lanes===1?(s=(e=r[r.length-1])==null?void 0:e.end)!=null?s:0:Math.max(...r.slice(-this.options.lanes).map(n=>n.end)),Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:r,behavior:i})=>{this.options.scrollToFn(e,{behavior:i,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}},sa=(o,t,e,r)=>{for(;o<=t;){let i=(o+t)/2|0,s=e(i);if(s<r)o=i+1;else if(s>r)t=i-1;else return i}return o>0?o-1:0};function uc({measurements:o,outerSize:t,scrollOffset:e}){let r=o.length-1,s=sa(0,r,a=>o[a].start,e),n=s;for(;n<r&&o[n].end<e+t;)n++;return{startIndex:s,endIndex:n}}var Ii=class{constructor(t,e){this.cleanup=()=>{},(this.host=t).addController(this);let r={...e,onChange:(i,s)=>{var n;this.host.updateComplete.then(()=>this.host.requestUpdate()),(n=e.onChange)==null||n.call(e,i,s)}};this.virtualizer=new vo(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},yo=class extends Ii{constructor(t,e){super(t,{observeElementRect:ra,observeElementOffset:oa,scrollToFn:ia,...e})}};var{I:CT}=Ji;var na=o=>o.strings===void 0;var Tr=(o,t)=>{var r;let e=o._$AN;if(e===void 0)return!1;for(let i of e)(r=i._$AO)==null||r.call(i,t,!1),Tr(i,t);return!0},xo=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while((e==null?void 0:e.size)===0)},aa=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),bc(t)}};function fc(o){this._$AN!==void 0?(xo(this),this._$AM=o,aa(this)):this._$AM=o}function gc(o,t=!1,e=0){let r=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(r))for(let s=e;s<r.length;s++)Tr(r[s],!1),xo(r[s]);else r!=null&&(Tr(r,!1),xo(r));else Tr(this,o)}var bc=o=>{var t,e;o.type==Gr.CHILD&&((t=o._$AP)!=null||(o._$AP=gc),(e=o._$AQ)!=null||(o._$AQ=fc))},Eo=class extends Dt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),aa(this),this.isConnected=t._$AU}_$AO(t,e=!0){var r,i;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)==null||r.call(this):(i=this.disconnected)==null||i.call(this)),e&&(Tr(this,t),xo(this))}setValue(t){if(na(this.t))this.t._$AI(t,this);else{let e=[...this.t._$AH];e[this.i]=t,this.t._$AI(e,this,0)}}disconnected(){}reconnected(){}};var la=()=>new Ci,Ci=class{},wi=new WeakMap,ca=nr(class extends Eo{render(o){return b}update(o,[t]){var r;let e=t!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=t,this.ht=(r=o.options)==null?void 0:r.host,this.rt(this.ct=o.element)),b}rt(o){var t;if(this.isConnected||(o=void 0),typeof this.Y=="function"){let e=(t=this.ht)!=null?t:globalThis,r=wi.get(e);r===void 0&&(r=new WeakMap,wi.set(e,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,o),o!==void 0&&this.Y.call(this.ht,o)}else this.Y.value=o}get lt(){var o,t,e;return typeof this.Y=="function"?(t=wi.get((o=this.ht)!=null?o:globalThis))==null?void 0:t.get(this.Y):(e=this.Y)==null?void 0:e.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var vc=[f`
|
2752
2755
|
:host::part(scroll) {
|
2753
2756
|
height: 100%;
|
2754
2757
|
width: 100%;
|
@@ -2758,19 +2761,70 @@
|
|
2758
2761
|
position: relative;
|
2759
2762
|
width: 100%;
|
2760
2763
|
}
|
2761
|
-
`],
|
2764
|
+
`],da=vc;var ma=v.constructTagName("virtualizedlist"),GT=v.constructTagName("virtualizedwrapper"),pa={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var At=class extends E{constructor(){super();this.virtualizerProps=pa.VIRTUALIZER_PROPS;this.scrollElementRef=la();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 yo(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 a,c;this.virtualizer=e.getVirtualizer();let{getTotalSize:r,getVirtualItems:i,measureElement:s}=this.virtualizer,n=i();if(n!==this.virtualItems){this.virtualItems=n;let m=i(),p={position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${(c=(a=m[0])==null?void 0:a.start)!=null?c:0}px)`};this.setlistdata&&this.setlistdata({virtualItems:m,measureElement:s,listStyle:p})}return h`<div
|
2762
2765
|
part="container"
|
2763
2766
|
style="height: ${r()}px;"
|
2764
2767
|
>
|
2765
2768
|
<slot></slot>
|
2766
|
-
</div>`}render(){return
|
2767
|
-
${
|
2769
|
+
</div>`}render(){return h`<div
|
2770
|
+
${ca(this.scrollElementRef)}
|
2768
2771
|
part="scroll"
|
2769
2772
|
@scroll=${this.onscroll&&this.onscroll}
|
2770
2773
|
>
|
2771
|
-
${this.virtualizerController?this.getVirtualizedListWrapper(this.virtualizerController):
|
2774
|
+
${this.virtualizerController?this.getVirtualizedListWrapper(this.virtualizerController):h``}
|
2772
2775
|
</div>
|
2773
|
-
`}};
|
2776
|
+
`}};At.styles=[...E.styles,...da],l([d({type:Function,attribute:"onscroll"})],At.prototype,"onscroll",2),l([d({type:Object,attribute:"virtualizerprops"})],At.prototype,"virtualizerProps",2),l([d({type:Function,attribute:"setlistdata"})],At.prototype,"setlistdata",2);var Li=At;Li.register(ma);var yc=Li;var ha="check-bold",ua=v.constructTagName("option");var xc=f`
|
2777
|
+
:host::part(list-item) {
|
2778
|
+
height: 2.25rem;
|
2779
|
+
}
|
2780
|
+
:host::part(default-slot) {
|
2781
|
+
display: none;
|
2782
|
+
}
|
2783
|
+
`,fa=[xc];var St=class extends ee(Ft){constructor(){super();this.selected=!1;this.ariaLabel=null;this.role="option",this.variant=ci.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}handleDefaultSlotChange(){var r,i,s;let e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");e&&!this.label&&(this.label=(s=(i=e.assignedNodes()[0])==null?void 0:i.textContent)==null?void 0:s.trim())}updateAttribute(e,r){this.setAttribute(e,r)}update(e){super.update(e),e.has("disabled")&&this.updateAttribute("aria-disabled",`${this.disabled}`),e.has("selected")&&this.updateAttribute("aria-selected",`${this.selected}`)}render(){let e=this.selected?h`
|
2784
|
+
<mdc-icon slot="trailing-controls" name="${ha}"></mdc-icon>
|
2785
|
+
`:b,r=this.prefixIcon?h`
|
2786
|
+
<mdc-icon slot="leading-controls" name="${A(this.prefixIcon)}"></mdc-icon>
|
2787
|
+
`:b;return h`
|
2788
|
+
<div part="leading">
|
2789
|
+
${r}
|
2790
|
+
<div part="leading-text">
|
2791
|
+
${this.getText("leading-text-primary-label",w.BODY_MIDSIZE_REGULAR,this.label)}
|
2792
|
+
</div>
|
2793
|
+
</div>
|
2794
|
+
<div part="trailing">
|
2795
|
+
${e}
|
2796
|
+
</div>
|
2797
|
+
<slot part="default-slot" @slotchange="${this.handleDefaultSlotChange}"></slot>
|
2798
|
+
`}};St.styles=[...Ft.styles,...fa],l([d({type:Boolean,reflect:!0})],St.prototype,"selected",2),l([d({type:String,reflect:!0,attribute:"prefix-icon"})],St.prototype,"prefixIcon",2),l([d({type:String,reflect:!0,attribute:"aria-label"})],St.prototype,"ariaLabel",2);var Ri=St;Ri.register(ua);var Ec=Ri;var ga=v.constructTagName("optgroup"),ki="header-id";var Tc=f`
|
2799
|
+
:host {
|
2800
|
+
--mdc-optgroup-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
2801
|
+
}
|
2802
|
+
:host::part(header-text) {
|
2803
|
+
padding: 0.5rem 0.75rem;
|
2804
|
+
height: 2.25rem;
|
2805
|
+
}
|
2806
|
+
:host([disabled]),
|
2807
|
+
:host([disabled])::part(header-text) {
|
2808
|
+
color: var(--mdc-optgroup-disabled-color);
|
2809
|
+
cursor: default;
|
2810
|
+
}
|
2811
|
+
`,ba=[Tc];var Yt=class extends V(ve(E)){setDisabledForAllOptions(){this.options.forEach(t=>{this.disabled?t.setAttribute("disabled",""):t.removeAttribute("disabled")})}updated(t){super.updated(t),t.has("disabled")&&this.setDisabledForAllOptions()}render(){var e;let t=this.label?h`
|
2812
|
+
<mdc-text
|
2813
|
+
id="${ki}"
|
2814
|
+
part="header-text"
|
2815
|
+
type="${w.BODY_MIDSIZE_BOLD}"
|
2816
|
+
tagname="${N.SPAN}"
|
2817
|
+
>${this.label}</mdc-text>
|
2818
|
+
`:b;return h`
|
2819
|
+
<div
|
2820
|
+
role="group"
|
2821
|
+
aria-labelledby="${this.label?ki:""}"
|
2822
|
+
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
2823
|
+
>
|
2824
|
+
${t}
|
2825
|
+
<slot role="presentation"></slot>
|
2826
|
+
</div>
|
2827
|
+
`}};Yt.styles=[...E.styles,...ba],l([d({type:String,reflect:!0})],Yt.prototype,"label",2),l([rt({selector:"mdc-option"})],Yt.prototype,"options",2);var Ni=Yt;Ni.register(ga);var Ac=Ni;var Sc=[f`
|
2774
2828
|
:host {
|
2775
2829
|
--mdc-textarea-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
|
2776
2830
|
--mdc-textarea-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -2888,32 +2942,32 @@
|
|
2888
2942
|
pointer-events: none;
|
2889
2943
|
}
|
2890
2944
|
|
2891
|
-
`,...z(!0)],
|
2945
|
+
`,...z(!0)],va=Sc;var ya=v.constructTagName("textarea"),_c="cancel-bold",Oi={HARD:"hard",SOFT:"soft"},xa={OFF:"off",ON:"on"},_t={ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:_c,CLEAR_BUTTON_VARIANT:Le.TERTIARY,CLEAR_BUTTON_SIZE:le[20],CHARACTER_COUNTER_TYPE:w.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:Oi.SOFT};var $=class extends ee(V(Me)){constructor(){var e;super();this.readonly=!1;this.rows=_t.ROWS;this.cols=_t.COLS;this.wrap=Oi.SOFT;this.autocapitalize=no.OFF;this.autocomplete=xa.OFF;this.autofocus=!1;this.clearButton=!1;this.clearAriaLabel="";this.characterLimitExceedingFired=!1;this.value=((e=this.textContent)==null?void 0:e.trim())||this.value}get textarea(){return this.inputElement}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.textarea&&(this.textarea.checkValidity(),this.setTextareaValidity(),this.internals.setFormValue(this.textarea.value))}).catch(e=>{this.onerror&&this.onerror(e)})}setTextareaValidity(){this.requiredLabel&&this.validationMessage&&this.value===""?this.textarea.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===te.ERROR&&this.helpText?this.textarea.setCustomValidity(this.helpText):this.textarea.setCustomValidity(""),this.setValidity()}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&(this.handleValueChange(),this.handleCharacterOverflowStateChange())}attributeChangedCallback(e,r,i){super.attributeChangedCallback(e,r,i),["maxlength","minlength","required"].includes(e)&&this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(n=>{this.onerror&&this.onerror(n)})}dispatchCharacterOverflowStateChangeEvent(){this.dispatchEvent(new CustomEvent("limitexceeded",{detail:{currentCharacterCount:this.value.length,maxCharacterLimit:this.maxCharacterLimit,value:this.value},bubbles:!0,composed:!0}))}handleCharacterOverflowStateChange(){this.maxCharacterLimit&&(this.value.length>this.maxCharacterLimit&&!this.characterLimitExceedingFired?(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!0):this.value.length<=this.maxCharacterLimit&&this.characterLimitExceedingFired&&(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!1))}updateValue(){this.value=this.textarea.value,this.internals.setFormValue(this.textarea.value)}onChange(e){this.updateValue();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}handleKeyDown(e){["Enter"].includes(e.key)&&(e.preventDefault(),this.clearInputText())}clearInputText(){this.value="",this.textarea.focus()}renderClearButton(){return this.clearButton?h`
|
2892
2946
|
<mdc-button
|
2893
2947
|
part='clear-button'
|
2894
2948
|
class='own-focus-ring ${this.value?"":"hidden"}'
|
2895
|
-
prefix-icon='${
|
2896
|
-
variant='${
|
2897
|
-
size="${
|
2949
|
+
prefix-icon='${_t.CLEAR_BUTTON_ICON}'
|
2950
|
+
variant='${_t.CLEAR_BUTTON_VARIANT}'
|
2951
|
+
size="${_t.CLEAR_BUTTON_SIZE}"
|
2898
2952
|
aria-label="${this.clearAriaLabel}"
|
2899
2953
|
?disabled=${this.disabled||this.readonly||!this.value}
|
2900
2954
|
@click=${this.clearInputText}
|
2901
2955
|
@keydown=${this.handleKeyDown}
|
2902
2956
|
></mdc-button>
|
2903
|
-
`:b}renderCharacterCounter(){return this.maxCharacterLimit?
|
2957
|
+
`:b}renderCharacterCounter(){return this.maxCharacterLimit?h`
|
2904
2958
|
<mdc-text
|
2905
2959
|
part="character-counter"
|
2906
2960
|
tagname="span"
|
2907
|
-
type=${
|
2961
|
+
type=${_t.CHARACTER_COUNTER_TYPE}
|
2908
2962
|
>
|
2909
2963
|
${this.value.length<10?`0${this.value.length}`:this.value.length}/${this.maxCharacterLimit}
|
2910
2964
|
</mdc-text>
|
2911
|
-
`:b}renderTextareaFooter(){return!this.helpText&&!this.maxCharacterLimit?b:
|
2965
|
+
`:b}renderTextareaFooter(){return!this.helpText&&!this.maxCharacterLimit?b:h`
|
2912
2966
|
<div part="textarea-footer">
|
2913
2967
|
${this.renderHelperText()}
|
2914
2968
|
${this.renderCharacterCounter()}
|
2915
2969
|
</div>
|
2916
|
-
`}render(){var e;return
|
2970
|
+
`}render(){var e;return h`
|
2917
2971
|
${this.renderLabel()}
|
2918
2972
|
<div class="textarea-container mdc-focus-ring" part="textarea-container">
|
2919
2973
|
<textarea
|
@@ -2937,13 +2991,13 @@
|
|
2937
2991
|
dirname=${A(this.dirname)}
|
2938
2992
|
@input=${this.updateValue}
|
2939
2993
|
@change=${this.onChange}
|
2940
|
-
aria-describedby="${A(this.helpText?
|
2994
|
+
aria-describedby="${A(this.helpText?F.HELPER_TEXT_ID:"")}"
|
2941
2995
|
aria-invalid="${this.helpTextType==="error"?"true":"false"}"
|
2942
2996
|
></textarea>
|
2943
2997
|
${this.renderClearButton()}
|
2944
2998
|
</div>
|
2945
2999
|
${this.renderTextareaFooter()}
|
2946
|
-
`}};$.styles=[...
|
3000
|
+
`}};$.styles=[...Me.styles,...va],l([d({type:String})],$.prototype,"placeholder",2),l([d({type:Boolean})],$.prototype,"readonly",2),l([d({type:Number})],$.prototype,"rows",2),l([d({type:Number})],$.prototype,"cols",2),l([d({type:String})],$.prototype,"wrap",2),l([d({type:String})],$.prototype,"autocapitalize",2),l([d({type:String})],$.prototype,"autocomplete",2),l([d({type:Boolean})],$.prototype,"autofocus",2),l([d({type:String})],$.prototype,"dirname",2),l([d({type:Number})],$.prototype,"maxlength",2),l([d({type:Number})],$.prototype,"minlength",2),l([d({type:Boolean,attribute:"clear-button"})],$.prototype,"clearButton",2),l([d({type:String,attribute:"clear-aria-label"})],$.prototype,"clearAriaLabel",2),l([d({type:Number,attribute:"max-character-limit"})],$.prototype,"maxCharacterLimit",2),l([Or("textarea")],$.prototype,"inputElement",2);var Mi=$;Mi.register(ya);var Ic=Mi;})();
|
2947
3001
|
/*! Bundled license information:
|
2948
3002
|
|
2949
3003
|
@lit/reactive-element/css-tag.js:
|