@momentum-design/components 0.35.0 → 0.36.0
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 +217 -217
- package/dist/browser/index.js.map +4 -4
- package/dist/components/coachmark/coachmark.component.d.ts +52 -0
- package/dist/components/coachmark/coachmark.component.js +82 -0
- package/dist/components/coachmark/coachmark.constants.d.ts +9 -0
- package/dist/components/coachmark/coachmark.constants.js +11 -0
- package/dist/components/coachmark/index.d.ts +8 -0
- package/dist/components/coachmark/index.js +5 -0
- package/dist/custom-elements.json +2517 -966
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/react/coachmark/index.d.ts +23 -0
- package/dist/react/coachmark/index.js +32 -0
- package/dist/react/index.d.ts +2 -1
- package/dist/react/index.js +2 -1
- 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 ma=Object.defineProperty;var ha=Object.getOwnPropertyDescriptor;var l=(o,t,e,r)=>{for(var i=r>1?void 0:r?ha(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&&ma(t,e,i),i};var xr=globalThis,Er=xr.ShadowRoot&&(xr.ShadyCSS===void 0||xr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,yo=Symbol(),Li=new WeakMap,Ht=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==yo)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(Er&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=Li.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&Li.set(e,t))}return t}toString(){return this.cssText}},Ri=o=>new Ht(typeof o=="string"?o:o+"",void 0,yo),g=(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 Ht(e,o,yo)},xo=(o,t)=>{if(Er)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),i=xr.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=e.cssText,o.appendChild(r)}},Tr=Er?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return Ri(e)})(o):o;var{is:pa,defineProperty:ua,getOwnPropertyDescriptor:fa,getOwnPropertyNames:ga,getOwnPropertySymbols:ba,getPrototypeOf:va}=Object,Ue=globalThis,ki=Ue.trustedTypes,ya=ki?ki.emptyScript:"",Eo=Ue.reactiveElementPolyfillSupport,Bt=(o,t)=>o,Gt={toAttribute(o,t){switch(t){case Boolean:o=o?ya: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}},Ar=(o,t)=>!pa(o,t),Ni={attribute:!0,type:String,converter:Gt,reflect:!1,hasChanged:Ar},Oi,Mi;(Oi=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Mi=Ue.litPropertyMetadata)!=null||(Ue.litPropertyMetadata=new WeakMap);var Ae=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=Ni){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&&ua(this.prototype,t,i)}}static getPropertyDescriptor(t,e,r){var n;let{get:i,set:s}=(n=fa(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:Ni}static _$Ei(){if(this.hasOwnProperty(Bt("elementProperties")))return;let t=va(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Bt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Bt("properties"))){let e=this.properties,r=[...ga(e),...ba(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(Tr(i))}else t!==void 0&&e.push(Tr(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 xo(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:Gt).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:Gt;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:Ar)(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){}},zi;Ae.elementStyles=[],Ae.shadowRootOptions={mode:"open"},Ae[Bt("elementProperties")]=new Map,Ae[Bt("finalized")]=new Map,Eo==null||Eo({ReactiveElement:Ae}),((zi=Ue.reactiveElementVersions)!=null?zi:Ue.reactiveElementVersions=[]).push("2.0.4");var qt=globalThis,Sr=qt.trustedTypes,Di=Sr?Sr.createPolicy("lit-html",{createHTML:o=>o}):void 0,So="$lit$",Se=`lit$${Math.random().toFixed(9).slice(2)}$`,_o="?"+Se,xa=`<${_o}>`,Je=document,Wt=()=>Je.createComment(""),Xt=o=>o===null||typeof o!="object"&&typeof o!="function",Io=Array.isArray,Bi=o=>Io(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",To=`[
|
2
|
+
\f\r]`,Yt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,$i=/-->/g,Pi=/>/g,Ke=RegExp(`>|${To}(?:([^\\s"'>=/]+)(${To}*=${To}*(?:[^
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ui=/'/g,Vi=/"/g,Gi=/^(?:script|style|textarea|title)$/i,wo=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),u=wo(1),vc=wo(2),yc=wo(3),_e=Symbol.for("lit-noChange"),b=Symbol.for("lit-nothing"),Fi=new WeakMap,Qe=Je.createTreeWalker(Je,129);function Yi(o,t){if(!Io(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Di!==void 0?Di.createHTML(t):t}var qi=(o,t)=>{let e=o.length-1,r=[],i,s=t===2?"<svg>":t===3?"<math>":"",n=Yt;for(let a=0;a<e;a++){let c=o[a],m,h,p=-1,y=0;for(;y<c.length&&(n.lastIndex=y,h=n.exec(c),h!==null);)y=n.lastIndex,n===Yt?h[1]==="!--"?n=$i:h[1]!==void 0?n=Pi:h[2]!==void 0?(Gi.test(h[2])&&(i=RegExp("</"+h[2],"g")),n=Ke):h[3]!==void 0&&(n=Ke):n===Ke?h[0]===">"?(n=i!=null?i:Yt,p=-1):h[1]===void 0?p=-2:(p=n.lastIndex-h[2].length,m=h[1],n=h[3]===void 0?Ke:h[3]==='"'?Vi:Ui):n===Vi||n===Ui?n=Ke:n===$i||n===Pi?n=Yt:(n=Ke,i=void 0);let f=n===Ke&&o[a+1].startsWith("/>")?" ":"";s+=n===Yt?c+xa:p>=0?(r.push(m),c.slice(0,p)+So+c.slice(p)+Se+f):c+Se+(p===-2?a:f)}return[Yi(o,s+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},Zt=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,h]=qi(t,e);if(this.el=o.createElement(m,r),Qe.currentNode=this.el.content,e===2||e===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(i=Qe.nextNode())!==null&&c.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let p of i.getAttributeNames())if(p.endsWith(So)){let y=h[n++],f=i.getAttribute(p).split(Se),x=/([.?@])?(.*)/.exec(y);c.push({type:1,index:s,name:x[2],strings:f,ctor:x[1]==="."?Ir:x[1]==="?"?wr:x[1]==="@"?Cr:tt}),i.removeAttribute(p)}else p.startsWith(Se)&&(c.push({type:6,index:s}),i.removeAttribute(p));if(Gi.test(i.tagName)){let p=i.textContent.split(Se),y=p.length-1;if(y>0){i.textContent=Sr?Sr.emptyScript:"";for(let f=0;f<y;f++)i.append(p[f],Wt()),Qe.nextNode(),c.push({type:2,index:++s});i.append(p[y],Wt())}}}else if(i.nodeType===8)if(i.data===_o)c.push({type:2,index:s});else{let p=-1;for(;(p=i.data.indexOf(Se,p+1))!==-1;)c.push({type:7,index:s}),p+=Se.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===_e)return t;let i=r!==void 0?(n=e.o)==null?void 0:n[r]:e.l,s=Xt(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 _r=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 h;c.type===2?h=new _t(s,s.nextSibling,this,t):c.type===1?h=new c.ctor(s,c.name,c.strings,this,t):c.type===6&&(h=new Lr(s,this,t)),this._$AV.push(h),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++}},_t=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),Xt(t)?t===b||t==null||t===""?(this._$AH!==b&&this._$AR(),this._$AH=b):t!==this._$AH&&t!==_e&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Bi(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&&Xt(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=Zt.createElement(Yi(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 _r(i,this),a=n.u(this.options);n.p(e),this.T(a),this._$AH=n}}_$AC(t){let e=Fi.get(t.strings);return e===void 0&&Fi.set(t.strings,e=new Zt(t)),e}k(t){Io(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(Wt()),this.O(Wt()),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=!Xt(t)||t!==this._$AH&&t!==_e,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===_e&&(m=this._$AH[c]),n||(n=!Xt(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:"")}},Ir=class extends tt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===b?void 0:t}},wr=class extends tt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==b)}},Cr=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)===_e)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)}},Lr=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)}},Wi={M:So,P:Se,A:_o,C:1,L:qi,R:_r,D:Bi,V:et,I:_t,H:tt,N:wr,U:Cr,B:Ir,F:Lr},Ao=qt.litHtmlPolyfillSupport,Hi;Ao==null||Ao(Zt,_t),((Hi=qt.litHtmlVersions)!=null?Hi:qt.litHtmlVersions=[]).push("3.2.0");var Xi=(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 _t(t.insertBefore(Wt(),a),a,void 0,e!=null?e:{})}return i._$AI(o),i};var Ve=class extends Ae{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=Xi(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 _e}},Zi;Ve._$litElement$=!0,Ve.finalized=!0,(Zi=globalThis.litElementHydrateSupport)==null||Zi.call(globalThis,{LitElement:Ve});var Co=globalThis.litElementPolyfillSupport;Co==null||Co({LitElement:Ve});var ji;((ji=globalThis.litElementVersions)!=null?ji:globalThis.litElementVersions=[]).push("4.1.0");var Ea={attribute:!0,type:String,converter:Gt,reflect:!1,hasChanged:Ar},Ta=(o=Ea,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"?Ta(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 Ie=(o,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(o,t,e),e);function Rr(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 Ie(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 Ie(e,r,{get(){return s(this)}})}}function jt(o){return(t,e)=>{let{slot:r,selector:i}=o!=null?o:{},s="slot"+(r?`[name=${r}]`:":not([name])");return Ie(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(h=>h.matches(i))}})}}function Ki(o){return(t,e)=>{let{slot:r}=o!=null?o:{},i="slot"+(r?`[name=${r}]`:":not([name])");return Ie(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 Qi=g`
|
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 kr=class extends Ve{static register(t){customElements.get(t)||customElements.define(t,this)}};kr.styles=[Qi];var Ji=kr;var E=Ji;var Fe=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 It=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 Fe(this.context,this.t,this.subscribe))}};var Nr=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 Lo=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},wt=class extends Nr{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:h}]of this.subscriptions)c.has(m)||(c.add(m),h.dispatchEvent(new Fe(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 Lo(this.context))}};var Aa=g`
|
14
14
|
:host {
|
15
15
|
display: contents;
|
16
16
|
}
|
17
|
-
`,
|
17
|
+
`,ts=Aa;var Or=class extends E{constructor({context:t,initialValue:e}){super(),this.context=new wt(this,{context:t,initialValue:e})}render(){return this.updateContext(),u`<slot></slot>`}};Or.styles=[...E.styles,ts];var rs=Or;var Ct=rs;var Sa={PREFIX:"mdc",SEPARATOR:"-"},_a={NAMESPACE:Sa},Ro=_a;var Ia=o=>[Ro.NAMESPACE.PREFIX,o].join(Ro.NAMESPACE.SEPARATOR),v={constructTagName:Ia};var os=v.constructTagName("avatar"),Y={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},ko=99,wa="user-regular",N={24:24,32:32,48:48,64:64,72:72,88:88,124:124},Lt={TYPE:Y.PHOTO,SIZE:N[32],ICON_NAME:wa};var Mr=o=>{class t extends o{constructor(){super(...arguments);this.size=Lt.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 ue=o=>{class t extends o{}return l([d({type:String,attribute:"icon-name"})],t.prototype,"iconName",2),t};var k=g`
|
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
|
-
`,
|
25
|
+
`,z=(o=!1)=>{let t=g`
|
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);
|
@@ -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 Ca=[k,g`
|
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,8 +202,8 @@
|
|
202
202
|
outline: 0.125rem solid;
|
203
203
|
}
|
204
204
|
}
|
205
|
-
`],
|
206
|
-
<mdc-presence part="presence" type="${this.presence}" size="${
|
205
|
+
`],is=Ca;var ss=v.constructTagName("presence"),H={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"},Rt={TYPE:H.ACTIVE,SIZE:U.SMALL};var Kt=v.constructTagName("text"),C={BODY_SMALL_REGULAR:"body-small-regular",BODY_SMALL_MEDIUM:"body-small-medium",BODY_SMALL_BOLD:"body-small-bold",BODY_MIDSIZE_REGULAR:"body-midsize-regular",BODY_MIDSIZE_MEDIUM:"body-midsize-medium",BODY_MIDSIZE_BOLD:"body-midsize-bold",BODY_LARGE_REGULAR:"body-large-regular",BODY_LARGE_MEDIUM:"body-large-medium",BODY_LARGE_BOLD:"body-large-bold",BODY_SMALL_REGULAR_UNDERLINE:"body-small-regular-underline",BODY_SMALL_MEDIUM_UNDERLINE:"body-small-medium-underline",BODY_MIDSIZE_REGULAR_UNDERLINE:"body-midsize-regular-underline",BODY_MIDSIZE_MEDIUM_UNDERLINE:"body-midsize-medium-underline",BODY_LARGE_REGULAR_UNDERLINE:"body-large-regular-underline",BODY_LARGE_MEDIUM_UNDERLINE:"body-large-medium-underline",HEADING_SMALL_REGULAR:"heading-small-regular",HEADING_SMALL_MEDIUM:"heading-small-medium",HEADING_SMALL_BOLD:"heading-small-bold",HEADING_MIDSIZE_REGULAR:"heading-midsize-regular",HEADING_MIDSIZE_MEDIUM:"heading-midsize-medium",HEADING_MIDSIZE_BOLD:"heading-midsize-bold",HEADING_LARGE_REGULAR:"heading-large-regular",HEADING_LARGE_MEDIUM:"heading-large-medium",HEADING_LARGE_BOLD:"heading-large-bold",HEADING_XLARGE_REGULAR:"heading-xlarge-regular",HEADING_XLARGE_MEDIUM:"heading-xlarge-medium",HEADING_XLARGE_BOLD:"heading-xlarge-bold",HEADLINE_SMALL_LIGHT:"headline-small-light",HEADLINE_SMALL_REGULAR:"headline-small-regular"},O={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},Z={TYPE:C.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:O.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var ns=o=>({[N[124]]:U.XX_LARGE,[N[88]]:U.X_LARGE,[N[72]]:U.LARGE,[N[64]]:U.MIDSIZE,[N[48]]:U.SMALL,[N[32]]:U.X_SMALL,[N[24]]:U.XX_SMALL})[o]||U.X_SMALL,as=o=>({[N[124]]:4.75,[N[88]]:3,[N[72]]:2.5,[N[64]]:2.25,[N[48]]:1.75,[N[32]]:1.25,[N[24]]:1})[o]||1.25,ls=o=>({[N[124]]:C.HEADING_XLARGE_MEDIUM,[N[88]]:C.HEADING_LARGE_MEDIUM,[N[72]]:C.HEADING_MIDSIZE_MEDIUM,[N[64]]:C.HEADING_SMALL_MEDIUM,[N[48]]:C.HEADING_SMALL_MEDIUM,[N[32]]:C.BODY_MIDSIZE_MEDIUM,[N[24]]:C.BODY_SMALL_MEDIUM})[o]||C.BODY_MIDSIZE_MEDIUM;var Qt=class extends Mr(ue(E)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===Y.COUNTER&&(this.counter||this.counter===0)?b:this.presence?u`
|
206
|
+
<mdc-presence part="presence" type="${this.presence}" size="${ns(this.size)}"></mdc-presence>
|
207
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 u`
|
208
208
|
<img
|
209
209
|
part="photo"
|
@@ -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||Lt.ICON_NAME;return u`
|
217
217
|
<mdc-icon
|
218
218
|
name="${A(e)}"
|
219
219
|
length-unit="rem"
|
220
|
-
size="${
|
220
|
+
size="${as(this.size)}"
|
221
221
|
></mdc-icon>
|
222
222
|
`}textTemplate(e){return u`
|
223
223
|
<mdc-text
|
224
|
-
type="${
|
224
|
+
type="${ls(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>ko?`${ko}+`: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?u`<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 u`
|
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
|
+
`}};Qt.styles=[...E.styles,...is],l([W()],Qt.prototype,"isPhotoLoaded",2);var No=Qt;var La=[k,g`
|
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
|
-
`,...
|
251
|
+
`,...z()],cs=La;var Ra=o=>{let{host:t,context:e,subscribe:r}=o;return new It(t,{context:e,subscribe:r!=null?r:!0})},ka={consume:Ra},ds=ka;var zr=v.constructTagName("iconprovider"),ms=["svg"],hs=["em","rem","px","%"],Na={px:16,em:1,rem:1,"%":100},we={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:Na.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var Dr=class{};Dr.context=zr;var $r=Dr;var fe=class extends Ct{constructor(){super({context:$r.context,initialValue:new $r});this.iconSet=we.ICON_SET;this.fileExtension=we.FILE_EXTENSION;this.lengthUnit=we.LENGTH_UNIT;this.size=we.SIZE}static get Context(){return $r.context}updateValuesInContext(){this.fileExtension&&ms.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=we.FILE_EXTENSION,this.context.value.fileExtension=we.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&&hs.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=we.LENGTH_UNIT,this.context.value.lengthUnit=we.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})],fe.prototype,"iconSet",2),l([d({type:String})],fe.prototype,"url",2),l([d({type:String,attribute:"file-extension",reflect:!0})],fe.prototype,"fileExtension",2),l([d({type:String,attribute:"length-unit",reflect:!0})],fe.prototype,"lengthUnit",2),l([d({type:Number,reflect:!0})],fe.prototype,"size",2),l([d({type:String,attribute:"cache-strategy"})],fe.prototype,"cacheStrategy",2),l([d({type:String,attribute:"cache-name"})],fe.prototype,"cacheName",2);var Jt=fe;var er={},ps=async o=>(er[o]===void 0&&(er[o]=new Map),{async set(t,e){er[o].set(t.url,await e.text())},async get(t){return er[o].get(t.url)},async delete(t){er[o].delete(t.url)}}),us=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)}}},fs=async(o,t)=>t==="in-memory-cache"?ps(o):us(o);var gs=async o=>fetch(o).then(t=>{if(!t.ok)throw new Error("There was a problem while fetching the icon!");return t}),bs=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)?gs(a).then(c=>c.text()):fs(i,r).then(c=>c.get(a).then(m=>m||gs(a.clone()).then(h=>{var p;return h.status<400&&h.headers.has("content-type")?(p=c.set)==null?void 0:p.call(c,a,h.clone()).then(()=>h.text()):h.text()})).catch(m=>{throw new Error(`Error in caching the Icon ${t}, ${m}`)}))};var vs=v.constructTagName("icon"),Oo={NAME:void 0,SIZE:1};var j=class extends E{constructor(){super();this.name=Oo.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=ds.consume({host:this,context:Jt.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 bs({url:i,name:this.name,fileExtension:r,cacheName:s,cacheStrategy:a,renewSignal:c}).then(m=>{let h=this.prepareIconElement(m);this.handleIconLoadedSuccess(h)}).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:Oo.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 u` ${this.iconData} `}};j.styles=[...E.styles,...cs],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 Mo=j;Mo.register(vs);var Oa=Mo;var Ma=[k,g`
|
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
|
+
`],ys=Ma;var xs=o=>{switch(o){case H.AWAY:return"recents-presence-badge-filled";case H.AWAY_CALLING:return"away-calling-presence-filled";case H.BUSY:return"busy-presence-bold";case H.DND:return"dnd-presence-badge-filled";case H.MEETING:return"camera-filled";case H.ON_CALL:return"handset-filled";case H.ON_DEVICE:return"generic-device-video-badge-filled";case H.ON_MOBILE:return"phone-badge-filled";case H.PAUSE:return"pause-badge-filled";case H.PTO:return"pto-presence-filled";case H.PRESENTING:return"share-screen-badge-filled";case H.QUIET:return"quiet-hours-presence-filled";case H.SCHEDULED:return"meetings-presence-badge-filled";case H.ACTIVE:default:return"active-presence-small-filled"}};var rt=class extends E{constructor(){super(...arguments);this.type=Rt.TYPE;this.size=Rt.SIZE;this.currentIconType=Rt.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=Rt.SIZE,.875}}get icon(){let e=xs(this.type);return e==="active-presence-small-filled"&&(this.type=Rt.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 u`
|
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
|
+
`}};rt.styles=[...E.styles,...ys],l([d({type:String,reflect:!0})],rt.prototype,"type",2),l([d({type:String,reflect:!0})],rt.prototype,"size",2),l([W()],rt.prototype,"currentIconType",2);var zo=rt;zo.register(ss);var za=zo;var Es=g`
|
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 Da=[g`
|
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
|
+
`,Es],Ts=Da;var kt=class extends E{constructor(){super(...arguments);this.type=Z.TYPE;this.tagname=Z.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case O.H1:return u`<h1 part=${Z.CSS_PART_TEXT}><slot></slot></h1>`;case O.H2:return u`<h2 part=${Z.CSS_PART_TEXT}><slot></slot></h2>`;case O.H3:return u`<h3 part=${Z.CSS_PART_TEXT}><slot></slot></h3>`;case O.H4:return u`<h4 part=${Z.CSS_PART_TEXT}><slot></slot></h4>`;case O.H5:return u`<h5 part=${Z.CSS_PART_TEXT}><slot></slot></h5>`;case O.H6:return u`<h6 part=${Z.CSS_PART_TEXT}><slot></slot></h6>`;case O.DIV:return u`<div part=${Z.CSS_PART_TEXT}><slot></slot></div>`;case O.SPAN:return u`<span part=${Z.CSS_PART_TEXT}><slot></slot></span>`;case O.SMALL:return u`<small part=${Z.CSS_PART_TEXT}><slot></slot></small>`;case O.P:default:return u`<p part=${Z.CSS_PART_TEXT}><slot></slot></p>`}}};kt.styles=[...E.styles,...Ts],l([d({attribute:"type",reflect:!0,type:String})],kt.prototype,"type",2),l([d({attribute:"tagname",reflect:!0,type:String})],kt.prototype,"tagname",2);var Do=kt;Do.register(Kt);var $a=Do;No.register(os);var Pa=No;var ap=v.constructTagName("buttonsimple"),Ua={20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},Nt={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},Pr={SIZE:Ua[32],TYPE:Nt.BUTTON,ROLE:"button"};var tr=v.constructTagName("button"),Ce={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Ur={40:40,32:32,28:28,24:24},ae={64:64,52:52,20:20,...Ur},$o={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},Ot={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},ge={VARIANT:Ce.PRIMARY,SIZE:Ur[32],COLOR:$o.DEFAULT,TYPE_INTERNAL:Ot.ICON,TYPE:Nt.BUTTON};var He=o=>{class t extends o{constructor(){super(...arguments);this.disabled=!1}}return l([d({reflect:!0,type:Boolean})],t.prototype,"disabled",2),t};var Vr=o=>{class t extends o{constructor(){super(...arguments);this.tabIndex=0}}return l([d({reflect:!0,type:Number})],t.prototype,"tabIndex",2),t};var Va=[k,g`
|
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
|
-
`,...
|
661
|
+
`,...z()],As=Va;var be=class extends Vr(He(E)){constructor(){super();this.active=!1;this.softDisabled=!1;this.size=Pr.SIZE;this.role=Pr.ROLE;this.type=Pr.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===Nt.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===Nt.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 u`
|
662
662
|
<slot></slot>
|
663
|
-
`}};be.formAssociated=!0,be.styles=[...E.styles,...
|
663
|
+
`}};be.formAssociated=!0,be.styles=[...E.styles,...As],l([d({type:Boolean,reflect:!0})],be.prototype,"active",2),l([d({type:Boolean,attribute:"soft-disabled"})],be.prototype,"softDisabled",2),l([d({type:Number,reflect:!0})],be.prototype,"size",2),l([d({type:String,reflect:!0})],be.prototype,"role",2),l([d({reflect:!0})],be.prototype,"type",2);var Be=be;var Fa=[k,g`
|
664
664
|
:host {
|
665
665
|
padding: unset;
|
666
666
|
margin: unset;
|
667
667
|
outline: none;
|
668
668
|
border-radius: 0.25rem;
|
669
669
|
}
|
670
|
-
`,...
|
670
|
+
`,...z()],Ss=Fa;var rr=class extends Mr(ue(Be)){constructor(){super();this.ariaLabel=null;this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role="button",this.type=ge.TYPE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(N).includes(e)?`${e}`:Lt.SIZE.toString())}render(){return u`
|
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
|
+
`}};rr.styles=[...Ss],l([d({type:String,attribute:"aria-label"})],rr.prototype,"ariaLabel",2);var Po=rr;var _s=v.constructTagName("avatarbutton");Po.register(_s);var Ha=Po;var Fr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},or=o=>(...t)=>({_$litDirective$:o,values:t}),Mt=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 Hr=or(class extends Mt{constructor(o){var t;if(super(o),o.type!==Fr.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 _e}});var Is=v.constructTagName("badge"),Le={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},Br={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},Gr={PRIMARY:"primary",SECONDARY:"secondary"},ir={SUCCESS:"success",WARNING:"warning",ERROR:"error"},iu={...Gr,...ir},Ge={TYPE:Le.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:Gr.PRIMARY,ICON_SIZE:1};var Ba=[k,g`
|
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
|
+
`],ws=Ba;var ve=class extends ue(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 u`
|
751
751
|
<mdc-icon
|
752
|
-
class="mdc-badge-icon ${
|
752
|
+
class="mdc-badge-icon ${Hr({"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 u`<div class="mdc-badge-dot ${
|
756
|
+
`}getBadgeDot(){return u`<div class="mdc-badge-dot ${Hr({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return u`
|
757
757
|
<mdc-text
|
758
758
|
type="${C.BODY_SMALL_MEDIUM}"
|
759
759
|
tagname="${O.DIV}"
|
760
|
-
class="mdc-badge-text ${
|
760
|
+
class="mdc-badge-text ${Hr({"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(Gr).includes(this.variant)&&(this.variant=Ge.VARIANT);let{iconName:e,type:r,variant:i}=this;switch(r){case Le.ICON:return this.getBadgeIcon(e||"",i);case Le.COUNTER:return this.getBadgeCounterText();case Le.SUCCESS:return this.getBadgeIcon(Br.SUCCESS_ICON_NAME,ir.SUCCESS);case Le.WARNING:return this.getBadgeIcon(Br.WARNING_ICON_NAME,ir.WARNING);case Le.ERROR:return this.getBadgeIcon(Br.ERROR_ICON_NAME,ir.ERROR);case Le.DOT:default:return this.type=Le.DOT,this.getBadgeDot()}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};ve.styles=[...E.styles,...ws],l([d({type:String,reflect:!0})],ve.prototype,"type",2),l([d({type:String,reflect:!0})],ve.prototype,"variant",2),l([d({type:Number})],ve.prototype,"counter",2),l([d({type:Number,attribute:"max-counter",reflect:!0})],ve.prototype,"maxCounter",2),l([d({type:Boolean})],ve.prototype,"overlay",2),l([d({type:String,attribute:"aria-label"})],ve.prototype,"ariaLabel",2);var Uo=ve;Uo.register(Is);var Ga=Uo;var Ya=g`
|
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
|
+
`,Cs=[Ya];var Ls=v.constructTagName("bullet"),Rs={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var sr=class extends E{constructor(){super(...arguments);this.size=Rs.SMALL}};sr.styles=[...E.styles,...Cs],l([d({type:String,reflect:!0})],sr.prototype,"size",2);var Vo=sr;Vo.register(Ls);var qa=Vo;var Wa=g`
|
786
786
|
:host {
|
787
787
|
background-color: transparent;
|
788
788
|
border-radius: 1.25rem;
|
@@ -954,7 +954,7 @@
|
|
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
|
-
`,
|
957
|
+
`,ks=[Wa];var Ns=o=>{switch(o){case ae[64]:return 2;case ae[52]:return 1.75;case ae[40]:return 1.25;default:return 1}},nr=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=ge.VARIANT;this.size=ge.SIZE;this.color=ge.COLOR;this.role="button";this.typeInternal=ge.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=`${nr(this.prefixIcon)}-filled`),this.postfixIcon&&(this.prevPostfixIcon=this.postfixIcon,this.postfixIcon=`${nr(this.postfixIcon)}-filled`)):(this.prevPrefixIcon&&(this.prefixIcon=this.prevPrefixIcon),this.prevPostfixIcon&&(this.postfixIcon=this.prevPostfixIcon))}setVariant(e){this.setAttribute("variant",Object.values(Ce).includes(e)?e:ge.VARIANT)}setSize(e){let i=this.typeInternal===Ot.ICON?Object.values(ae).includes(e)&&!(e===ae[20]&&this.variant!==Ce.TERTIARY):Object.values(Ur).includes(e);this.setAttribute("size",i?`${e}`:`${ge.SIZE}`),this.iconSize=Ns(e)}setColor(e){!Object.values($o).includes(e)||this.variant===Ce.TERTIARY?this.setAttribute("color",`${ge.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=Ot.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!e&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=Ot.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=Ot.PILL,this.setAttribute("data-btn-type","pill"))}render(){return u`
|
958
958
|
${this.prefixIcon?u` <mdc-icon
|
959
959
|
name="${this.prefixIcon}"
|
960
960
|
part="prefix-icon"
|
@@ -970,7 +970,7 @@
|
|
970
970
|
length-unit="rem"
|
971
971
|
>
|
972
972
|
</mdc-icon>`:""}
|
973
|
-
`}};J.styles=[...Be.styles,...
|
973
|
+
`}};J.styles=[...Be.styles,...ks],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 Fo=J;Fo.register(tr);var Xa=Fo;var B=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 F=[];for(let o=0;o<256;++o)F.push((o+256).toString(16).slice(1));function Os(o,t=0){return(F[o[t+0]]+F[o[t+1]]+F[o[t+2]]+F[o[t+3]]+"-"+F[o[t+4]]+F[o[t+5]]+"-"+F[o[t+6]]+F[o[t+7]]+"-"+F[o[t+8]]+F[o[t+9]]+"-"+F[o[t+10]]+F[o[t+11]]+F[o[t+12]]+F[o[t+13]]+F[o[t+14]]+F[o[t+15]]).toLowerCase()}var Ho,Za=new Uint8Array(16);function Bo(){if(!Ho){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ho=crypto.getRandomValues.bind(crypto)}return Ho(Za)}var ja=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Go={randomUUID:ja};function Ka(o,t,e){var i,s,n;if(Go.randomUUID&&!t&&!o)return Go.randomUUID();o=o||{};let r=(n=(s=o.random)!=null?s:(i=o.rng)==null?void 0:i.call(o))!=null?n:Bo();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 Os(r)}var ar=Ka;var ye=o=>{class t extends o{constructor(...i){super(i);this.name="";this.value="";this.internals=this.attachInternals(),this.id=`mdc-input-${ar()}`}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([Rr("input")],t.prototype,"inputElement",2),t};var Ms=v.constructTagName("formfieldwrapper"),ee={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},V={VALIDATION:ee.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id"},ot={TAGNAME:O.SPAN,TYPE:C.BODY_MIDSIZE_REGULAR,HEADER_TYPE:C.BODY_MIDSIZE_BOLD};var Qa=[k,g`
|
974
974
|
:host {
|
975
975
|
flex-direction: column;
|
976
976
|
align-items: flex-start;
|
@@ -1019,22 +1019,22 @@
|
|
1019
1019
|
:host([help-text-type='priority']) .mdc-help-text {
|
1020
1020
|
color: var(--mds-color-theme-text-accent-normal);
|
1021
1021
|
}
|
1022
|
-
`],
|
1022
|
+
`],zs=Qa;var Ds=o=>({[ee.ERROR]:"error-legacy-badge-filled",[ee.WARNING]:"warning-badge-filled",[ee.SUCCESS]:"check-circle-badge-filled",[ee.PRIORITY]:"priority-badge-filled",[ee.DEFAULT]:""})[o]||"";var Re=class extends He(E){constructor(){super(...arguments);this.id="";this.helpTextType=V.VALIDATION;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?u`<label for="${this.id}" class="mdc-label" part="label">${this.label}</label>`:u` <mdc-text
|
1023
1023
|
id="${V.HEADING_ID}"
|
1024
|
-
tagname="${
|
1025
|
-
type="${
|
1024
|
+
tagname="${ot.TAGNAME}"
|
1025
|
+
type="${ot.HEADER_TYPE}"
|
1026
1026
|
part="label"
|
1027
1027
|
>${this.label}</mdc-text
|
1028
1028
|
>`:b}renderRequiredLabel(){return this.requiredLabel?u`
|
1029
|
-
<mdc-text part="required-label" tagname=${
|
1029
|
+
<mdc-text part="required-label" tagname=${ot.TAGNAME} type=${ot.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=Ds(this.helpTextType||V.VALIDATION);return e&&!this.disabled?u`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${e}></mdc-icon>`:b}renderHelpText(){return this.helpText?u`
|
1033
1033
|
<mdc-text
|
1034
1034
|
id="${V.HELPER_TEXT_ID}"
|
1035
1035
|
part="help-text"
|
1036
|
-
tagname=${
|
1037
|
-
type=${
|
1036
|
+
tagname=${ot.TAGNAME}
|
1037
|
+
type=${ot.TYPE}
|
1038
1038
|
>
|
1039
1039
|
${this.helpText}
|
1040
1040
|
</mdc-text>
|
@@ -1045,7 +1045,7 @@
|
|
1045
1045
|
</div>`:b}renderHelperText(){return this.helpText?u`<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}};Re.styles=[...E.styles,...zs],l([d({reflect:!0,type:String})],Re.prototype,"label",2),l([d({type:String,reflect:!0,attribute:"required-label"})],Re.prototype,"requiredLabel",2),l([d({type:String})],Re.prototype,"id",2),l([d({reflect:!0,attribute:"help-text-type"})],Re.prototype,"helpTextType",2),l([d({type:String,reflect:!0,attribute:"help-text"})],Re.prototype,"helpText",2);var te=Re;var $s=v.constructTagName("checkbox"),Yo={CHECKED:"check-bold",INDETERMINATE:"minus-bold"};var Ja=[g`
|
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,13 +1149,13 @@
|
|
1149
1149
|
border: 0.0625rem solid var(--mdc-checkbox-border-color);
|
1150
1150
|
}
|
1151
1151
|
}
|
1152
|
-
`,...
|
1152
|
+
`,...z(!0)],Ps=Ja;var it=class extends ye(B(te)){constructor(){super();this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?u`<div class="text-container">
|
1153
1153
|
${this.renderLabel()}
|
1154
1154
|
${this.renderHelperText()}
|
1155
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?u`
|
1156
1156
|
<mdc-icon
|
1157
1157
|
class="icon"
|
1158
|
-
name="${this.indeterminate?
|
1158
|
+
name="${this.indeterminate?Yo.INDETERMINATE:Yo.CHECKED}"
|
1159
1159
|
size="1"
|
1160
1160
|
length-unit="rem"
|
1161
1161
|
></mdc-icon>
|
@@ -1182,7 +1182,134 @@
|
|
1182
1182
|
<div class="icon-container">${e}</div>
|
1183
1183
|
</div>
|
1184
1184
|
${this.renderLabelAndHelperText()}
|
1185
|
-
`}};ot.styles=[...te.styles,...Ms],c([d({type:Boolean,reflect:!0})],ot.prototype,"checked",2),c([d({type:Boolean,reflect:!0})],ot.prototype,"indeterminate",2),c([d({type:Boolean,reflect:!0})],ot.prototype,"autofocus",2);var Bo=ot;Bo.register(zs);var ja=Bo;var Ds=y.constructTagName("divider"),sr={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Go={SOLID:"solid",GRADIENT:"gradient"},Ye={POSITIVE:"positive",NEGATIVE:"negative"},nr={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},it={ORIENTATION:sr.HORIZONTAL,VARIANT:Go.SOLID,ARROW_DIRECTION:Ye.NEGATIVE,BUTTON_DIRECTION:Ye.NEGATIVE};var Ka=[R,g`
|
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`
|
1186
|
+
:host {
|
1187
|
+
--mdc-popover-arrow-border-radius: 0.1875rem;
|
1188
|
+
--mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
|
1189
|
+
|
1190
|
+
--mdc-popover-primary-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
1191
|
+
--mdc-popover-border-color: var(--mds-color-theme-outline-secondary-normal);
|
1192
|
+
--mdc-popover-inverted-background-color: var(--mds-color-theme-inverted-background-normal);
|
1193
|
+
--mdc-popover-inverted-border-color: var(--mds-color-theme-inverted-outline-primary-normal);
|
1194
|
+
--mdc-popover-inverted-text-color: var(--mds-color-theme-inverted-text-primary-normal);
|
1195
|
+
--mdc-popover-elevation-3: var(--mds-elevation-3);
|
1196
|
+
|
1197
|
+
display: none;
|
1198
|
+
position: absolute;
|
1199
|
+
box-sizing: content-box;
|
1200
|
+
background-color: var(--mdc-popover-primary-background-color);
|
1201
|
+
border-radius: 0.5rem;
|
1202
|
+
border: 0.0625rem solid var(--mdc-popover-border-color);
|
1203
|
+
filter: var(--mdc-popover-elevation-3);
|
1204
|
+
}
|
1205
|
+
|
1206
|
+
:host([visible]) {
|
1207
|
+
display: block;
|
1208
|
+
}
|
1209
|
+
|
1210
|
+
:host([color='contrast']) {
|
1211
|
+
background-color: var(--mdc-popover-inverted-background-color);
|
1212
|
+
border-color: var(--mdc-popover-inverted-border-color);
|
1213
|
+
color: var(--mdc-popover-inverted-text-color);
|
1214
|
+
}
|
1215
|
+
|
1216
|
+
:host([color='contrast']) {
|
1217
|
+
|
1218
|
+
.popover-arrow {
|
1219
|
+
background-color: var(--mdc-popover-inverted-background-color);
|
1220
|
+
border-color: var(--mdc-popover-inverted-border-color);
|
1221
|
+
}
|
1222
|
+
|
1223
|
+
.popover-close {
|
1224
|
+
color: var(--mdc-popover-inverted-text-color);
|
1225
|
+
}
|
1226
|
+
}
|
1227
|
+
|
1228
|
+
:host::part(popover-content) {
|
1229
|
+
position: relative;
|
1230
|
+
padding: 0.75rem;
|
1231
|
+
overflow-y: auto;
|
1232
|
+
min-width: max-content;
|
1233
|
+
z-index: 9998;
|
1234
|
+
}
|
1235
|
+
|
1236
|
+
.popover-hover-bridge {
|
1237
|
+
position: absolute;
|
1238
|
+
transform: translateX(-50%);
|
1239
|
+
background: transparent;
|
1240
|
+
pointer-events: auto;
|
1241
|
+
}
|
1242
|
+
|
1243
|
+
.popover-arrow {
|
1244
|
+
position: absolute;
|
1245
|
+
width: 1rem;
|
1246
|
+
height: 1rem;
|
1247
|
+
background-color: var(--mdc-popover-primary-background-color);
|
1248
|
+
transform: rotate(45deg);
|
1249
|
+
pointer-events: none;
|
1250
|
+
border: var(--mdc-popover-arrow-border);
|
1251
|
+
}
|
1252
|
+
|
1253
|
+
.popover-close {
|
1254
|
+
position: absolute;
|
1255
|
+
right: 0.75rem;
|
1256
|
+
top: 0.75rem;
|
1257
|
+
cursor: pointer;
|
1258
|
+
z-index: 9999;
|
1259
|
+
}
|
1260
|
+
|
1261
|
+
.popover-arrow[data-side='top'] {
|
1262
|
+
border-top: none;
|
1263
|
+
border-left: none;
|
1264
|
+
border-bottom-right-radius: var(--mdc-popover-arrow-border-radius);
|
1265
|
+
border-top-left-radius: 100%;
|
1266
|
+
}
|
1267
|
+
|
1268
|
+
.popover-arrow[data-side='bottom'] {
|
1269
|
+
border-bottom: none;
|
1270
|
+
border-right: none;
|
1271
|
+
border-top-left-radius: var(--mdc-popover-arrow-border-radius);
|
1272
|
+
border-bottom-right-radius: 100%;
|
1273
|
+
}
|
1274
|
+
|
1275
|
+
.popover-arrow[data-side='right'] {
|
1276
|
+
border-top: none;
|
1277
|
+
border-right: none;
|
1278
|
+
border-bottom-left-radius: var(--mdc-popover-arrow-border-radius);
|
1279
|
+
border-top-right-radius: 100%;
|
1280
|
+
}
|
1281
|
+
|
1282
|
+
.popover-arrow[data-side='left'] {
|
1283
|
+
border-bottom: none;
|
1284
|
+
border-left: none;
|
1285
|
+
border-top-right-radius: var(--mdc-popover-arrow-border-radius);
|
1286
|
+
border-bottom-left-radius: 100%;
|
1287
|
+
}
|
1288
|
+
`,fn=[El];var gn=v.constructTagName("popover"),mt={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"},pr={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},ht={TONAL:"tonal",CONTRAST:"contrast"},R={PLACEMENT:mt.BOTTOM,TRIGGER:pr.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 bn=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(h=>{h instanceof HTMLElement&&this.findFocusable(h,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 Qo=class{constructor(){this.stack=[]}push(t){this.stack.push(t)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(t){this.stack=this.stack.filter(e=>e!==t)}clear(){this.stack=[]}},pt=new Qo;var ut=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 eo=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 h;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=(h=this.popover.arrowElement.offsetParent)==null?void 0:h.getBoundingClientRect();if(!this.arrowPixelChange){let p=c!=null&&c[i]?12-Math.abs(a[i]-c[i]):0;Math.round(p)===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
|
+
.popover-backdrop {
|
1290
|
+
position: fixed;
|
1291
|
+
top: 0;
|
1292
|
+
left: 0;
|
1293
|
+
width: 100%;
|
1294
|
+
height: 100%;
|
1295
|
+
background: transparent;
|
1296
|
+
z-index: ${this.popover.zIndex-1};
|
1297
|
+
}
|
1298
|
+
`,e.appendChild(r),this.popover.backdropElement=e}}};var w=class extends bn(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(pt.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=()=>{pt.peek()===this&&setTimeout(()=>{this.visible=!1,this.isTriggerClicked=!1},this.closeDelay)};this.togglePopoverVisible=()=>{this.isTriggerClicked?this.hidePopover():(this.showPopover(),this.isTriggerClicked=!0)};this.utils=new eo(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}`,ut.onCreatedPopover(this),this.visible&&(this.positionPopover(),await this.handleCreatePopoverFirstUpdate())}async disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),ut.onDestroyedPopover(this),pt.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(mt).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(pr).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?(pt.peek()!==this&&pt.push(this),this.enabledFocusTrap=this.focusTrap,this.enabledPreventScroll=this.preventScroll,this.backdrop&&(this.utils.createBackdrop(),this.triggerElement.style.zIndex=`${this.zIndex}`),this.positionPopover(),await this.handleCreatePopoverFirstUpdate(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="none")),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.addEventListener("keydown",this.onEscapeKeydown),this.disableAriaExpanded||this.triggerElement.setAttribute("aria-expanded","true"),this.interactive&&this.triggerElement.setAttribute("aria-haspopup",this.triggerElement.getAttribute("aria-haspopup")||"dialog"),ut.onShowPopover(this)):(pt.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()),ut.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=[dn()],r=this.offset;if(this.flip&&e.push(mn()),this.size){let i=this.renderRoot.querySelector('[part="popover-content"]');e.push(hn({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(pn({element:this.arrowElement,padding:12}))}e.push(cn(r)),ln(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:i,y:s,middlewareData:n,placement:a}=await un(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 u`
|
1299
|
+
<div class="popover-hover-bridge"></div>
|
1300
|
+
${this.closeButton?u` <mdc-button
|
1301
|
+
class="popover-close"
|
1302
|
+
prefix-icon="cancel-bold"
|
1303
|
+
variant="tertiary"
|
1304
|
+
size="20"
|
1305
|
+
aria-label=${A(this.closeButtonAriaLabel)}
|
1306
|
+
@click="${this.hidePopover}"
|
1307
|
+
></mdc-button>`:b}
|
1308
|
+
${this.showArrow?u`<div class="popover-arrow"></div>`:b}
|
1309
|
+
<div part="popover-content">
|
1310
|
+
<slot></slot>
|
1311
|
+
</div>
|
1312
|
+
`}};w.styles=[...E.styles,...fn],l([d({type:String})],w.prototype,"id",2),l([d({type:String})],w.prototype,"triggerID",2),l([d({type:String,reflect:!0})],w.prototype,"trigger",2),l([d({type:String,reflect:!0})],w.prototype,"placement",2),l([d({type:String,reflect:!0})],w.prototype,"color",2),l([d({type:Boolean,reflect:!0})],w.prototype,"visible",2),l([d({type:Number,reflect:!0})],w.prototype,"offset",2),l([d({type:Boolean,reflect:!0,attribute:"focus-trap"})],w.prototype,"focusTrap",2),l([d({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],w.prototype,"preventScroll",2),l([d({type:Boolean,reflect:!0,attribute:"show-arrow"})],w.prototype,"showArrow",2),l([d({type:Boolean,reflect:!0,attribute:"close-button"})],w.prototype,"closeButton",2),l([d({type:Boolean,reflect:!0})],w.prototype,"interactive",2),l([d({type:String,reflect:!0})],w.prototype,"delay",2),l([d({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],w.prototype,"hideOnEscape",2),l([d({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],w.prototype,"hideOnBlur",2),l([d({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],w.prototype,"hideOnOutsideClick",2),l([d({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],w.prototype,"focusBackToTrigger",2),l([d({type:Boolean,reflect:!0})],w.prototype,"backdrop",2),l([d({type:Boolean,reflect:!0})],w.prototype,"flip",2),l([d({type:Boolean,reflect:!0})],w.prototype,"size",2),l([d({type:Number,reflect:!0,attribute:"z-index"})],w.prototype,"zIndex",2),l([d({type:String,reflect:!0,attribute:"append-to"})],w.prototype,"appendTo",2),l([d({type:String,attribute:"close-button-aria-label"})],w.prototype,"closeButtonAriaLabel",2),l([d({type:String,reflect:!0})],w.prototype,"role",2),l([d({type:String,reflect:!0,attribute:"aria-labelledby"})],w.prototype,"ariaLabelledby",2),l([d({type:String,reflect:!0,attribute:"aria-describedby"})],w.prototype,"ariaDescribedby",2),l([d({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],w.prototype,"disableAriaExpanded",2);var qe=w;var vn=v.constructTagName("coachmark"),ft={COLOR:ht.CONTRAST,TRIGGER:pr.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var gt=class extends qe{constructor(){super();this.trigger=ft.TRIGGER;this.showArrow=ft.ARROW;this.closeButton=ft.CLOSE_BUTTON;this.disableAriaExpanded=ft.DISABLE_ARIA_EXPANDED;this.color=ft.COLOR,this.showArrow=ft.ARROW}};l([d({type:String,reflect:!0})],gt.prototype,"trigger",2),l([d({type:Boolean,attribute:"show-arrow"})],gt.prototype,"showArrow",2),l([d({type:Boolean,reflect:!0,attribute:"close-button"})],gt.prototype,"closeButton",2),l([d({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],gt.prototype,"disableAriaExpanded",2);var Jo=gt;Jo.register(vn);var Tl=Jo;var yn=v.constructTagName("divider"),ur={HORIZONTAL:"horizontal",VERTICAL:"vertical"},ei={SOLID:"solid",GRADIENT:"gradient"},We={POSITIVE:"positive",NEGATIVE:"negative"},fr={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},bt={ORIENTATION:ur.HORIZONTAL,VARIANT:ei.SOLID,ARROW_DIRECTION:We.NEGATIVE,BUTTON_DIRECTION:We.NEGATIVE};var Al=[k,g`
|
1186
1313
|
:host {
|
1187
1314
|
--mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
|
1188
1315
|
--mdc-divider-width: 0.0625rem;
|
@@ -1393,11 +1520,11 @@
|
|
1393
1520
|
font-size: var(--mdc-divider-text-size);
|
1394
1521
|
line-height: var(--mdc-divider-text-line-height);
|
1395
1522
|
}
|
1396
|
-
`]
|
1523
|
+
`],xn=Al;var Xe=class extends E{constructor(){super();this.orientation=bt.ORIENTATION;this.variant=bt.VARIANT;this.arrowDirection=bt.ARROW_DIRECTION;this.buttonPosition=bt.BUTTON_DIRECTION;this.setAttribute("data-type","mdc-primary-divider")}setVariant(e){this.setAttribute("variant",Object.values(ei).includes(e)?e:bt.VARIANT)}setOrientation(e){this.setAttribute("orientation",Object.values(ur).includes(e)?e:bt.ORIENTATION)}ensureValidDirections(){let e=this.orientation===ur.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===ur.HORIZONTAL,r=this.arrowDirection===We.POSITIVE;return e?r?fr.UP:fr.DOWN:r?fr.RIGHT:fr.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===Kt.toUpperCase()),s=r.some(a=>a.tagName===tr.toUpperCase());i&&!s?this.setAttribute("data-type","mdc-text-divider"):!i&&s&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}render(){return u`
|
1397
1524
|
<div></div>
|
1398
1525
|
<slot @slotchange=${this.inferDividerType}></slot>
|
1399
1526
|
<div></div>
|
1400
|
-
`}};
|
1527
|
+
`}};Xe.styles=[...E.styles,...xn],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 ti=Xe;ti.register(yn);var Sl=ti;var En=v.constructTagName("formfieldgroup"),ri={RADIOGROUP:"radiogroup",GROUP:"group"};var _l=g`
|
1401
1528
|
|
1402
1529
|
:host::part(container) {
|
1403
1530
|
display: flex;
|
@@ -1414,10 +1541,10 @@
|
|
1414
1541
|
:host::part(label-text){
|
1415
1542
|
font-weight: bold;
|
1416
1543
|
}
|
1417
|
-
`,
|
1544
|
+
`,Tn=[_l];var to=class extends B(te){constructor(){super();this.isRadio=!1;this.shouldRenderLabel=!1,this.id="",this.helpTextType=void 0,this.disabled=void 0}render(){var e;return u`
|
1418
1545
|
<div
|
1419
1546
|
part="container"
|
1420
|
-
role="${this.isRadio?
|
1547
|
+
role="${this.isRadio?ri.RADIOGROUP:ri.GROUP}"
|
1421
1548
|
aria-labelledby="${V.HEADING_ID}"
|
1422
1549
|
aria-describedby="${A(this.helpText?V.HELPER_TEXT_ID:"")}"
|
1423
1550
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
@@ -1428,7 +1555,7 @@
|
|
1428
1555
|
</div>
|
1429
1556
|
<slot></slot>
|
1430
1557
|
</div>
|
1431
|
-
`}};
|
1558
|
+
`}};to.styles=[...te.styles,...Tn];var oi=to;oi.register(En);var ro=oi;Jt.register(zr);var Il=Jt;var wl=[g`
|
1432
1559
|
:host{
|
1433
1560
|
--mdc-input-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
|
1434
1561
|
--mdc-input-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -1543,30 +1670,30 @@
|
|
1543
1670
|
opacity: 0;
|
1544
1671
|
pointer-events: none;
|
1545
1672
|
}
|
1546
|
-
`,...
|
1673
|
+
`,...z(!0)],An=wl;te.register(Ms);var Oe=te;var Sn=v.constructTagName("input"),oo={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},_n={MAX_LENGTH:10,HELPERTEXT:"Prefix text should not exceed 10 characters",VALIDATION:ee.ERROR},Ze={VALIDATION:ee.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Ce.TERTIARY,CLEAR_BUTTON_SIZE:ae[20],PREFIX_TEXT_TYPE:C.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:O.SPAN};var D=class extends ye(B(Oe)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=oo.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?u`
|
1547
1674
|
<mdc-icon
|
1548
1675
|
class="leading-icon"
|
1549
1676
|
part="leading-icon"
|
1550
1677
|
name=${this.leadingIcon}
|
1551
|
-
size="${
|
1552
|
-
length-unit="${
|
1678
|
+
size="${Ze.ICON_SIZE_VALUE}"
|
1679
|
+
length-unit="${Ze.ICON_SIZE_UNIT}">
|
1553
1680
|
</mdc-icon>
|
1554
1681
|
`:b}renderPrefixText(){return this.prefixText?u`
|
1555
1682
|
<mdc-text
|
1556
1683
|
class="prefix-text"
|
1557
|
-
tagname="${
|
1558
|
-
type="${
|
1684
|
+
tagname="${Ze.PREFIX_TEXT_TAG}"
|
1685
|
+
type="${Ze.PREFIX_TEXT_TYPE}"
|
1559
1686
|
aria-hidden="true"
|
1560
1687
|
>
|
1561
|
-
${this.prefixText.slice(0,
|
1688
|
+
${this.prefixText.slice(0,_n.MAX_LENGTH)}
|
1562
1689
|
</mdc-text>
|
1563
1690
|
`:b}clearInputText(){var e;this.value="",(e=this.inputElement)==null||e.focus()}renderTrailingButton(){return this.trailingButton?u`
|
1564
1691
|
<mdc-button
|
1565
1692
|
part='trailing-button'
|
1566
1693
|
class='own-focus-ring ${this.value?"":"hidden"}'
|
1567
|
-
prefix-icon='${
|
1568
|
-
variant='${
|
1569
|
-
size="${
|
1694
|
+
prefix-icon='${Ze.CLEAR_BUTTON_ICON}'
|
1695
|
+
variant='${Ze.CLEAR_BUTTON_VARIANT}'
|
1696
|
+
size="${Ze.CLEAR_BUTTON_SIZE}"
|
1570
1697
|
aria-label="${this.clearAriaLabel}"
|
1571
1698
|
@click=${this.clearInputText}
|
1572
1699
|
?disabled=${this.disabled||this.readonly||!this.value}
|
@@ -1610,7 +1737,7 @@
|
|
1610
1737
|
<slot name="trailing-button">${this.renderTrailingButton()}</slot>
|
1611
1738
|
</div>
|
1612
1739
|
${this.helpText?this.renderHelperText():b}
|
1613
|
-
`}};D.styles=[...
|
1740
|
+
`}};D.styles=[...Oe.styles,...An],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 ii=D;ii.register(Sn);var Cl=ii;var In=v.constructTagName("link"),io={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},so={LARGE:1,MIDSIZE:.875,SMALL:.75},no={INLINE:!1,INVERTED:!1,LINK_SIZE:io.LARGE};var Ll=[k,g`
|
1614
1741
|
|
1615
1742
|
:host {
|
1616
1743
|
|
@@ -1729,21 +1856,21 @@
|
|
1729
1856
|
:host([inverted][disabled])::part(link-container) {
|
1730
1857
|
color: var(--mdc-link-inverted-color-disabled);
|
1731
1858
|
}
|
1732
|
-
`,...
|
1859
|
+
`,...z(!0),g`
|
1733
1860
|
:host(:active)::part(link-container) {
|
1734
1861
|
box-shadow: none;
|
1735
1862
|
}
|
1736
|
-
`],
|
1863
|
+
`],wn=Ll;var vt=class extends He(ue(E)){constructor(){super(...arguments);this.inline=no.INLINE;this.inverted=no.INVERTED;this.size=no.LINK_SIZE;this.prevTabindex=null}getIconSize(){switch(this.size){case io.SMALL:return so.SMALL;case io.MIDSIZE:return so.MIDSIZE;default:return so.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 u`
|
1737
1864
|
<div part='link-container' class='mdc-focus-ring'>
|
1738
1865
|
<slot @slotchange=${this.updateTrailingIcon}></slot>
|
1739
1866
|
</div>
|
1740
|
-
`}};
|
1867
|
+
`}};vt.styles=[...E.styles,...wn],l([d({type:Boolean,reflect:!0})],vt.prototype,"inline",2),l([d({type:Boolean,reflect:!0})],vt.prototype,"inverted",2),l([d({type:String,reflect:!0})],vt.prototype,"size",2);var si=vt;si.register(In);var Rl=si;var ao=v.constructTagName("listitem"),kl={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},Cn={VARIANT:kl.FULL_WIDTH};var Ln=v.constructTagName("list"),gr={ARROW_DOWN:"ArrowDown",ARROW_UP:"ArrowUp",HOME:"Home",END:"End"},ni="header-id";var Nl=g`
|
1741
1868
|
:host::part(header-text) {
|
1742
1869
|
padding: 0.5rem 0.75rem;
|
1743
1870
|
}
|
1744
|
-
`,
|
1871
|
+
`,Rn=[Nl];var Pt=class extends B(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 gr.ARROW_DOWN:return(e+1)%r;case gr.ARROW_UP:return(e-1+r)%r;case gr.HOME:return 0;case gr.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?u`
|
1745
1872
|
<mdc-text
|
1746
|
-
id="${
|
1873
|
+
id="${ni}"
|
1747
1874
|
part="header-text"
|
1748
1875
|
type="${C.BODY_MIDSIZE_BOLD}"
|
1749
1876
|
tagname="${O.SPAN}"
|
@@ -1751,13 +1878,13 @@
|
|
1751
1878
|
`:b;return u`
|
1752
1879
|
<div
|
1753
1880
|
role="list"
|
1754
|
-
aria-labelledby="${this.headerText?
|
1881
|
+
aria-labelledby="${this.headerText?ni:""}"
|
1755
1882
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
1756
1883
|
>
|
1757
1884
|
${t}
|
1758
1885
|
<slot role="presentation" @click="${this.handleMouseClick}"></slot>
|
1759
1886
|
</div>
|
1760
|
-
`}};
|
1887
|
+
`}};Pt.styles=[...E.styles,...Rn],l([jt({selector:ao})],Pt.prototype,"listItems",2),l([d({type:String,attribute:"header-text",reflect:!0})],Pt.prototype,"headerText",2);var ai=Pt;ai.register(Ln);var Ol=ai;var Ml=g`
|
1761
1888
|
:host {
|
1762
1889
|
--mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
|
1763
1890
|
--mdc-listitem-background-color-hover: var(--mds-color-theme-background-primary-hover);
|
@@ -1823,7 +1950,7 @@
|
|
1823
1950
|
display: flex;
|
1824
1951
|
flex-direction: row;
|
1825
1952
|
}
|
1826
|
-
`,
|
1953
|
+
`,kn=[Ml,...z()];var ie=class extends B(He(Vr(E))){constructor(){super();this.variant=Cn.VARIANT;this.role="listitem"}getText(e,r,i){return i?u`
|
1827
1954
|
<slot name="${e}">
|
1828
1955
|
<mdc-text part="${e}" type="${r}" tagname="${O.SPAN}">${i}</mdc-text>
|
1829
1956
|
</slot>
|
@@ -1843,7 +1970,7 @@
|
|
1843
1970
|
</div>
|
1844
1971
|
<slot name="trailing-controls"></slot>
|
1845
1972
|
</div>
|
1846
|
-
`}};
|
1973
|
+
`}};ie.styles=[...E.styles,...kn],l([jt({slot:"leading-controls"})],ie.prototype,"leadingControlsSlot",2),l([jt({slot:"trailing-controls"})],ie.prototype,"trailingControlsSlot",2),l([d({type:String,reflect:!0})],ie.prototype,"variant",2),l([d({type:String,reflect:!0})],ie.prototype,"label",2),l([d({type:String,reflect:!0,attribute:"secondary-label"})],ie.prototype,"secondaryLabel",2),l([d({type:String,reflect:!0,attribute:"tertiary-label"})],ie.prototype,"tertiaryLabel",2),l([d({type:String,reflect:!0,attribute:"side-header-text"})],ie.prototype,"sideHeaderText",2),l([d({type:String,reflect:!0,attribute:"subline-text"})],ie.prototype,"sublineText",2);var li=ie;li.register(ao);var zl=li;var Dl=g`
|
1847
1974
|
:host {
|
1848
1975
|
--mdc-marker-width: 0.25rem;
|
1849
1976
|
--mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
|
@@ -1868,134 +1995,7 @@
|
|
1868
1995
|
var(--mdc-marker-striped-background-color) 0.375rem
|
1869
1996
|
);
|
1870
1997
|
}
|
1871
|
-
`,Zs=[dl];var js=y.constructTagName("marker"),Ks={SOLID:"solid",STRIPED:"striped"};var lr=class extends E{constructor(){super(...arguments);this.variant=Ks.SOLID}};lr.styles=[...E.styles,...Zs],c([d({type:String,reflect:!0})],lr.prototype,"variant",2);var Jo=lr;Jo.register(js);var ml=Jo;var xe=Math.min,q=Math.max,dr=Math.round,mr=Math.floor,le=o=>({x:o,y:o}),hl={left:"right",right:"left",bottom:"top",top:"bottom"},pl={start:"end",end:"start"};function jr(o,t,e){return q(o,xe(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 ei(o){return o==="x"?"y":"x"}function Kr(o){return o==="y"?"height":"width"}function Xe(o){return["top","bottom"].includes(Ne(o))?"y":"x"}function Qr(o){return ei(Xe(o))}function Qs(o,t,e){e===void 0&&(e=!1);let r=at(o),i=Qr(o),s=Kr(i),n=i==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(n=cr(n)),[n,cr(n)]}function Js(o){let t=cr(o);return[Zr(o),t,Zr(t)]}function Zr(o){return o.replace(/start|end/g,t=>pl[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 en(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(Zr)))),s}function cr(o){return o.replace(/left|right|bottom|top/g,t=>hl[t])}function fl(o){return{top:0,right:0,bottom:0,left:0,...o}}function ti(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 tn(o,t,e){let{reference:r,floating:i}=o,s=Xe(t),n=Qr(t),a=Kr(n),l=Ne(t),m=s==="y",h=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,v=r[a]/2-i[a]/2,f;switch(l){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(at(t)){case"start":f[n]-=v*(e&&m?-1:1);break;case"end":f[n]+=v*(e&&m?-1:1);break}return f}var rn=async(o,t,e)=>{let{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:n}=e,a=s.filter(Boolean),l=await(n.isRTL==null?void 0:n.isRTL(t)),m=await n.getElementRects({reference:o,floating:t,strategy:i}),{x:h,y:p}=tn(m,r,l),v=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:z}=await S({x:h,y:p,initialPlacement:r,placement:v,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}},z&&x<=50&&(x++,typeof z=="object"&&(z.placement&&(v=z.placement),z.rects&&(m=z.rects===!0?await n.getElementRects({reference:o,floating:t,strategy:i}):z.rects),{x:h,y:p}=tn(m,v,l)),T=-1)}return{x:h,y:p,placement:v,strategy:i,middlewareData:f}};async function Jr(o,t){var e;t===void 0&&(t={});let{x:r,y:i,platform:s,rects:n,elements:a,strategy:l}=o,{boundary:m="clippingAncestors",rootBoundary:h="viewport",elementContext:p="floating",altBoundary:v=!1,padding:f=0}=nt(t,o),x=ti(f),_=a[v?p==="floating"?"reference":"floating":p],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:h,strategy:l})),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},z=lt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:I,offsetParent:L,strategy:l}):I);return{top:(S.top-z.top+x.top)/P.y,bottom:(z.bottom-S.bottom+x.bottom)/P.y,left:(S.left-z.left+x.left)/P.x,right:(z.right-S.right+x.right)/P.x}}var on=o=>({name:"arrow",options:o,async fn(t){let{x:e,y:r,placement:i,rects:s,platform:n,elements:a,middlewareData:l}=t,{element:m,padding:h=0}=nt(o,t)||{};if(m==null)return{};let p=ti(h),v={x:e,y:r},f=Qr(i),x=Kr(f),T=await n.getDimensions(m),_=f==="y",S=_?"top":"left",I=_?"bottom":"right",L=_?"clientHeight":"clientWidth",P=s.reference[x]+s.reference[f]-v[f]-s.floating[x],z=v[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-z/2,me=se/2-T[x]/2-1,ne=xe(p[S],me),Me=xe(p[I],me),he=ne,De=se-T[x]-Me,G=se/2-T[x]/2+Ee,xt=jr(he,G,De),Te=!l.arrow&&at(i)!=null&&G!==xt&&s.reference[x]/2-(G<he?ne:Me)-T[x]/2<0,pe=Te?G<he?G-he:G-De:0;return{[f]:v[f]+pe,data:{[f]:xt,centerOffset:G-xt-pe,...Te&&{alignmentOffset:pe}},reset:Te}}});var sn=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:l,elements:m}=t,{mainAxis:h=!0,crossAxis:p=!0,fallbackPlacements:v,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:T=!0,..._}=nt(o,t);if((e=s.arrow)!=null&&e.alignmentOffset)return{};let S=Ne(i),I=Xe(a),L=Ne(a)===a,P=await(l.isRTL==null?void 0:l.isRTL(m.floating)),z=v||(L||!T?[cr(a)]:Js(a)),Q=x!=="none";!v&&Q&&z.push(...en(a,T,x,P));let se=[a,...z],Ee=await Jr(t,_),me=[],ne=((r=s.flip)==null?void 0:r.overflows)||[];if(h&&me.push(Ee[S]),p){let G=Qs(i,n,P);me.push(Ee[G[0]],Ee[G[1]])}if(ne=[...ne,{placement:i,overflows:me}],!me.every(G=>G<=0)){var Me,he;let G=(((Me=s.flip)==null?void 0:Me.index)||0)+1,xt=se[G];if(xt)return{data:{index:G,overflows:ne},reset:{placement:xt}};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=Xe($e.placement);return Pe===I||Pe==="y"}return!0}).map($e=>[$e.placement,$e.overflows.filter(Pe=>Pe>0).reduce((Pe,na)=>Pe+na,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 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),l=Xe(e)==="y",m=["left","top"].includes(n)?-1:1,h=s&&l?-1:1,p=nt(t,o),{mainAxis:v,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),l?{x:f*h,y:v*m}:{x:v*m,y:f*h}}var nn=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,l=await gl(t,o);return n===((e=a.offset)==null?void 0:e.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:n}}}}},an=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}}},...l}=nt(o,t),m={x:e,y:r},h=await Jr(t,l),p=Xe(Ne(i)),v=ei(p),f=m[v],x=m[p];if(s){let _=v==="y"?"top":"left",S=v==="y"?"bottom":"right",I=f+h[_],L=f-h[S];f=jr(I,f,L)}if(n){let _=p==="y"?"top":"left",S=p==="y"?"bottom":"right",I=x+h[_],L=x-h[S];x=jr(I,x,L)}let T=a.fn({...t,[v]:f,[p]:x});return{...T,data:{x:T.x-e,y:T.y-r,enabled:{[v]:s,[p]:n}}}}}};var ln=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:l=()=>{},...m}=nt(o,t),h=await Jr(t,m),p=Ne(i),v=at(i),f=Xe(i)==="y",{width:x,height:T}=s.floating,_,S;p==="top"||p==="bottom"?(_=p,S=v===(await(n.isRTL==null?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(S=p,_=v==="end"?"top":"bottom");let I=T-h.top-h.bottom,L=x-h.left-h.right,P=xe(T-h[_],I),z=xe(x-h[S],L),Q=!t.middlewareData.shift,se=P,Ee=z;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&(Ee=L),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(se=I),Q&&!v){let ne=q(h.left,0),Me=q(h.right,0),he=q(h.top,0),De=q(h.bottom,0);f?Ee=x-2*(ne!==0||Me!==0?ne+Me:q(h.left,h.right)):se=T-2*(he!==0||De!==0?he+De:q(h.top,h.bottom))}await l({...t,availableWidth:Ee,availableHeight:se});let me=await n.getDimensions(a.floating);return x!==me.width||T!==me.height?{reset:{rects:!0}}:{}}}};function eo(){return typeof window<"u"}function ct(o){return dn(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=(dn(o)?o.ownerDocument:o.document)||window.document)==null?void 0:t.documentElement}function dn(o){return eo()?o instanceof Node||o instanceof X(o).Node:!1}function oe(o){return eo()?o instanceof Element||o instanceof X(o).Element:!1}function de(o){return eo()?o instanceof HTMLElement||o instanceof X(o).HTMLElement:!1}function cn(o){return!eo()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof X(o).ShadowRoot}function Ot(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 mn(o){return["table","td","th"].includes(ct(o))}function hr(o){return[":popover-open",":modal"].some(t=>{try{return o.matches(t)}catch{return!1}})}function to(o){let t=ro(),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 hn(o){let t=Oe(o);for(;de(t)&&!dt(t);){if(to(t))return t;if(hr(t))return null;t=Oe(t)}return null}function ro(){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 pr(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||cn(o)&&o.host||ce(o);return cn(t)?t.host:t}function pn(o){let t=Oe(o);return dt(t)?o.ownerDocument?o.ownerDocument.body:o.body:de(t)&&Ot(t)?t:pn(t)}function Nt(o,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let i=pn(o),s=i===((r=o.ownerDocument)==null?void 0:r.body),n=X(i);if(s){let a=oo(n);return t.concat(n,n.visualViewport||[],Ot(i)?i:[],a&&e?Nt(a):[])}return t.concat(i,Nt(i,[],e))}function oo(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function gn(o){let t=ie(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=dr(e)!==s||dr(r)!==n;return a&&(e=s,r=n),{width:e,height:r,$:a}}function oi(o){return oe(o)?o:o.contextElement}function zt(o){let t=oi(o);if(!de(t))return le(1);let e=t.getBoundingClientRect(),{width:r,height:i,$:s}=gn(t),n=(s?dr(e.width):e.width)/r,a=(s?dr(e.height):e.height)/i;return(!n||!Number.isFinite(n))&&(n=1),(!a||!Number.isFinite(a))&&(a=1),{x:n,y:a}}var bl=le(0);function bn(o){let t=X(o);return!ro()||!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=oi(o),n=le(1);t&&(r?oe(r)&&(n=zt(r)):n=zt(o));let a=vl(s,e,r)?bn(s):le(0),l=(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 v=X(s),f=r&&oe(r)?X(r):r,x=v,T=oo(x);for(;T&&r&&f!==x;){let _=zt(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;l*=_.x,m*=_.y,h*=_.x,p*=_.y,l+=L,m+=P,x=X(T),T=oo(x)}}return lt({width:h,height:p,x:l,y:m})}function ii(o,t){let e=pr(o).scrollLeft;return t?t.left+e:mt(ce(o)).left+e}function vn(o,t,e){e===void 0&&(e=!1);let r=o.getBoundingClientRect(),i=r.left+t.scrollLeft-(e?0:ii(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=ce(r),a=t?hr(t.floating):!1;if(r===n||a&&s)return e;let l={scrollLeft:0,scrollTop:0},m=le(1),h=le(0),p=de(r);if((p||!p&&!s)&&((ct(r)!=="body"||Ot(n))&&(l=pr(r)),de(r))){let f=mt(r);m=zt(r),h.x=f.x+r.clientLeft,h.y=f.y+r.clientTop}let v=n&&!p&&!s?vn(n,l,!0):le(0);return{width:e.width*m.x,height:e.height*m.y,x:e.x*m.x-l.scrollLeft*m.x+h.x+v.x,y:e.y*m.y-l.scrollTop*m.y+h.y+v.y}}function xl(o){return Array.from(o.getClientRects())}function El(o){let t=ce(o),e=pr(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+ii(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=ce(o),i=e.visualViewport,s=r.clientWidth,n=r.clientHeight,a=0,l=0;if(i){s=i.width,n=i.height;let m=ro();(!m||m&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:n,x:a,y:l}}function Al(o,t){let e=mt(o,!0,t==="fixed"),r=e.top+o.clientTop,i=e.left+o.clientLeft,s=de(o)?zt(o):le(1),n=o.clientWidth*s.x,a=o.clientHeight*s.y,l=i*s.x,m=r*s.y;return{width:n,height:a,x:l,y:m}}function un(o,t,e){let r;if(t==="viewport")r=Tl(o,e);else if(t==="document")r=El(ce(o));else if(oe(t))r=Al(t,e);else{let i=bn(o);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return lt(r)}function yn(o,t){let e=Oe(o);return e===t||!oe(e)||dt(e)?!1:ie(e).position==="fixed"||yn(e,t)}function Sl(o,t){let e=t.get(o);if(e)return e;let r=Nt(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),l=to(n);!l&&a.position==="fixed"&&(i=null),(s?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Ot(n)&&!l&&yn(o,n))?r=r.filter(h=>h!==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"?hr(t)?[]:Sl(t,this._c):[].concat(e),r],a=n[0],l=n.reduce((m,h)=>{let p=un(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},un(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Il(o){let{width:t,height:e}=gn(o);return{width:t,height:e}}function wl(o,t,e){let r=de(t),i=ce(t),s=e==="fixed",n=mt(o,!0,s,t),a={scrollLeft:0,scrollTop:0},l=le(0);if(r||!r&&!s)if((ct(t)!=="body"||Ot(i))&&(a=pr(t)),r){let v=mt(t,!0,s,t);l.x=v.x+t.clientLeft,l.y=v.y+t.clientTop}else i&&(l.x=ii(i));let m=i&&!r&&!s?vn(i,a):le(0),h=n.left+a.scrollLeft-l.x-m.x,p=n.top+a.scrollTop-l.y-m.y;return{x:h,y:p,width:n.width,height:n.height}}function ri(o){return ie(o).position==="static"}function fn(o,t){if(!de(o)||ie(o).position==="fixed")return null;if(t)return t(o);let e=o.offsetParent;return ce(o)===e&&(e=e.ownerDocument.body),e}function xn(o,t){let e=X(o);if(hr(o))return e;if(!de(o)){let i=Oe(o);for(;i&&!dt(i);){if(oe(i)&&!ri(i))return i;i=Oe(i)}return e}let r=fn(o,t);for(;r&&mn(r)&&ri(r);)r=fn(r,t);return r&&dt(r)&&ri(r)&&!to(r)?e:r||hn(o)||e}var Cl=async function(o){let t=this.getOffsetParent||xn,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 kl={convertOffsetParentRelativeRectToViewportRelativeRect:yl,getDocumentElement:ce,getClippingRect:_l,getOffsetParent:xn,getElementRects:Cl,getClientRects:xl,getDimensions:Il,getScale:zt,isElement:oe,isRTL:Ll};function Rl(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,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();let{left:m,top:h,width:p,height:v}=o.getBoundingClientRect();if(a||t(),!p||!v)return;let f=mr(h),x=mr(i.clientWidth-(m+p)),T=mr(i.clientHeight-(h+v)),_=mr(m),I={rootMargin:-f+"px "+-x+"px "+-T+"px "+-_+"px",threshold:q(0,xe(1,l))||1},L=!0;function P(z){let Q=z[0].intersectionRatio;if(Q!==l){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 En(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:l=!1}=r,m=oi(o),h=i||s?[...m?Nt(m):[],...Nt(t)]:[];h.forEach(S=>{i&&S.addEventListener("scroll",e,{passive:!0}),s&&S.addEventListener("resize",e)});let p=m&&a?Rl(m,e):null,v=-1,f=null;n&&(f=new ResizeObserver(S=>{let[I]=S;I&&I.target===m&&f&&(f.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var L;(L=f)==null||L.observe(t)})),e()}),m&&!l&&f.observe(m),f.observe(t));let x,T=l?mt(o):null;l&&_();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;h.forEach(I=>{i&&I.removeEventListener("scroll",e),s&&I.removeEventListener("resize",e)}),p==null||p(),(S=f)==null||S.disconnect(),f=null,l&&cancelAnimationFrame(x)}}var Tn=nn;var An=an,Sn=sn,_n=ln;var In=on;var wn=(o,t,e)=>{let r=new Map,i={platform:kl,...e},s={...i.platform,_c:r};return rn(o,t,{...i,platform:s})};var Nl=g`
|
1872
|
-
:host {
|
1873
|
-
--mdc-popover-arrow-border-radius: 0.1875rem;
|
1874
|
-
--mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
|
1875
|
-
|
1876
|
-
--mdc-popover-primary-background-color: var(--mds-color-theme-background-solid-primary-normal);
|
1877
|
-
--mdc-popover-border-color: var(--mds-color-theme-outline-secondary-normal);
|
1878
|
-
--mdc-popover-inverted-background-color: var(--mds-color-theme-inverted-background-normal);
|
1879
|
-
--mdc-popover-inverted-border-color: var(--mds-color-theme-inverted-outline-primary-normal);
|
1880
|
-
--mdc-popover-inverted-text-color: var(--mds-color-theme-inverted-text-primary-normal);
|
1881
|
-
--mdc-popover-elevation-3: var(--mds-elevation-3);
|
1882
|
-
|
1883
|
-
display: none;
|
1884
|
-
position: absolute;
|
1885
|
-
box-sizing: content-box;
|
1886
|
-
background-color: var(--mdc-popover-primary-background-color);
|
1887
|
-
border-radius: 0.5rem;
|
1888
|
-
border: 0.0625rem solid var(--mdc-popover-border-color);
|
1889
|
-
filter: var(--mdc-popover-elevation-3);
|
1890
|
-
}
|
1891
|
-
|
1892
|
-
:host([visible]) {
|
1893
|
-
display: block;
|
1894
|
-
}
|
1895
|
-
|
1896
|
-
:host([color='contrast']) {
|
1897
|
-
background-color: var(--mdc-popover-inverted-background-color);
|
1898
|
-
border-color: var(--mdc-popover-inverted-border-color);
|
1899
|
-
color: var(--mdc-popover-inverted-text-color);
|
1900
|
-
}
|
1901
|
-
|
1902
|
-
:host([color='contrast']) {
|
1903
|
-
|
1904
|
-
.popover-arrow {
|
1905
|
-
background-color: var(--mdc-popover-inverted-background-color);
|
1906
|
-
border-color: var(--mdc-popover-inverted-border-color);
|
1907
|
-
}
|
1908
|
-
|
1909
|
-
.popover-close {
|
1910
|
-
color: var(--mdc-popover-inverted-text-color);
|
1911
|
-
}
|
1912
|
-
}
|
1913
|
-
|
1914
|
-
:host::part(popover-content) {
|
1915
|
-
position: relative;
|
1916
|
-
padding: 0.75rem;
|
1917
|
-
overflow-y: auto;
|
1918
|
-
min-width: max-content;
|
1919
|
-
z-index: 9998;
|
1920
|
-
}
|
1921
|
-
|
1922
|
-
.popover-hover-bridge {
|
1923
|
-
position: absolute;
|
1924
|
-
transform: translateX(-50%);
|
1925
|
-
background: transparent;
|
1926
|
-
pointer-events: auto;
|
1927
|
-
}
|
1928
|
-
|
1929
|
-
.popover-arrow {
|
1930
|
-
position: absolute;
|
1931
|
-
width: 1rem;
|
1932
|
-
height: 1rem;
|
1933
|
-
background-color: var(--mdc-popover-primary-background-color);
|
1934
|
-
transform: rotate(45deg);
|
1935
|
-
pointer-events: none;
|
1936
|
-
border: var(--mdc-popover-arrow-border);
|
1937
|
-
}
|
1938
|
-
|
1939
|
-
.popover-close {
|
1940
|
-
position: absolute;
|
1941
|
-
right: 0.75rem;
|
1942
|
-
top: 0.75rem;
|
1943
|
-
cursor: pointer;
|
1944
|
-
z-index: 9999;
|
1945
|
-
}
|
1946
|
-
|
1947
|
-
.popover-arrow[data-side='top'] {
|
1948
|
-
border-top: none;
|
1949
|
-
border-left: none;
|
1950
|
-
border-bottom-right-radius: var(--mdc-popover-arrow-border-radius);
|
1951
|
-
border-top-left-radius: 100%;
|
1952
|
-
}
|
1953
|
-
|
1954
|
-
.popover-arrow[data-side='bottom'] {
|
1955
|
-
border-bottom: none;
|
1956
|
-
border-right: none;
|
1957
|
-
border-top-left-radius: var(--mdc-popover-arrow-border-radius);
|
1958
|
-
border-bottom-right-radius: 100%;
|
1959
|
-
}
|
1960
|
-
|
1961
|
-
.popover-arrow[data-side='right'] {
|
1962
|
-
border-top: none;
|
1963
|
-
border-right: none;
|
1964
|
-
border-bottom-left-radius: var(--mdc-popover-arrow-border-radius);
|
1965
|
-
border-top-right-radius: 100%;
|
1966
|
-
}
|
1967
|
-
|
1968
|
-
.popover-arrow[data-side='left'] {
|
1969
|
-
border-bottom: none;
|
1970
|
-
border-left: none;
|
1971
|
-
border-top-right-radius: var(--mdc-popover-arrow-border-radius);
|
1972
|
-
border-bottom-left-radius: 100%;
|
1973
|
-
}
|
1974
|
-
`,Cn=[Nl];var Ln=y.constructTagName("popover"),ht={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"},si={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},ur={TONAL:"tonal",CONTRAST:"contrast"},k={PLACEMENT:ht.BOTTOM,TRIGGER:si.CLICK,COLOR:ur.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 kn=o=>{class t extends o{constructor(...i){super(...i);this.enabledFocusTrap=k.FOCUS_TRAP;this.enabledPreventScroll=k.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:l}=i;return a+l+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 l=a;this.isFocusable(l)&&s.add(l),l.shadowRoot?this.findFocusable(l.shadowRoot,s):l.tagName==="SLOT"?l.assignedElements({flatten:!0}).forEach(h=>{h instanceof HTMLElement&&this.findFocusable(h,s)}):this.findFocusable(l,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 l=i+s;return a?(l<0&&(l=n-1),l>=n&&(l=0)):(l<0&&(l=0),l>=n&&(l=n-1)),l}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 c([d({type:Boolean})],t.prototype,"enabledFocusTrap",2),c([d({type:Boolean})],t.prototype,"enabledPreventScroll",2),t};var ni=class{constructor(){this.stack=[]}push(t){this.stack.push(t)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(t){this.stack=this.stack.filter(e=>e!==t)}clear(){this.stack=[]}},pt=new ni;var ut=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 io=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 h;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(),l=(h=this.popover.arrowElement.offsetParent)==null?void 0:h.getBoundingClientRect();if(!this.arrowPixelChange){let p=l!=null&&l[i]?12-Math.abs(a[i]-l[i]):0;Math.round(p)===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=`
|
1975
|
-
.popover-backdrop {
|
1976
|
-
position: fixed;
|
1977
|
-
top: 0;
|
1978
|
-
left: 0;
|
1979
|
-
width: 100%;
|
1980
|
-
height: 100%;
|
1981
|
-
background: transparent;
|
1982
|
-
z-index: ${this.popover.zIndex-1};
|
1983
|
-
}
|
1984
|
-
`,e.appendChild(r),this.popover.backdropElement=e}}};var w=class extends kn(E){constructor(){super();this.id="";this.triggerID="";this.trigger=k.TRIGGER;this.placement=k.PLACEMENT;this.color=k.COLOR;this.visible=k.VISIBLE;this.offset=k.OFFSET;this.focusTrap=k.FOCUS_TRAP;this.preventScroll=k.PREVENT_SCROLL;this.showArrow=k.ARROW;this.closeButton=k.CLOSE_BUTTON;this.interactive=k.INTERACTIVE;this.delay=k.DELAY;this.hideOnEscape=k.HIDE_ON_ESCAPE;this.hideOnBlur=k.HIDE_ON_BLUR;this.hideOnOutsideClick=k.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=k.FOCUS_BACK;this.backdrop=k.BACKDROP;this.flip=k.FLIP;this.size=k.SIZE;this.zIndex=k.Z_INDEX;this.appendTo="";this.closeButtonAriaLabel=null;this.role=k.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=k.DISABLE_ARIA_EXPANDED;this.arrowElement=null;this.triggerElement=null;this.hoverTimer=null;this.isTriggerClicked=!1;this.openDelay=0;this.closeDelay=0;this.backdropElement=null;this.onOutsidePopoverClick=e=>{if(pt.peek()!==this)return;let r=!1,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=()=>{pt.peek()===this&&setTimeout(()=>{this.visible=!1,this.isTriggerClicked=!1},this.closeDelay)};this.togglePopoverVisible=()=>{this.isTriggerClicked?this.hidePopover():(this.showPopover(),this.isTriggerClicked=!0)};this.utils=new io(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}`,ut.onCreatedPopover(this),this.visible&&(this.positionPopover(),await this.handleCreatePopoverFirstUpdate())}async disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),ut.onDestroyedPopover(this),pt.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(ht).includes(this.placement)?this.placement:k.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){let i=this.trigger.split(" ").filter(s=>Object.values(si).includes(s));this.setAttribute("trigger",i.length>0?this.trigger:k.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("color")&&this.setAttribute("color",Object.values(ur).includes(this.color)?this.color:k.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?(pt.peek()!==this&&pt.push(this),this.enabledFocusTrap=this.focusTrap,this.enabledPreventScroll=this.preventScroll,this.backdrop&&(this.utils.createBackdrop(),this.triggerElement.style.zIndex=`${this.zIndex}`),this.positionPopover(),await this.handleCreatePopoverFirstUpdate(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="none")),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.addEventListener("keydown",this.onEscapeKeydown),this.disableAriaExpanded||this.triggerElement.setAttribute("aria-expanded","true"),this.interactive&&this.triggerElement.setAttribute("aria-haspopup",this.triggerElement.getAttribute("aria-haspopup")||"dialog"),ut.onShowPopover(this)):(pt.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()),ut.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=[An()],r=this.offset;if(this.flip&&e.push(Sn()),this.size){let i=this.renderRoot.querySelector('[part="popover-content"]');e.push(_n({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(In({element:this.arrowElement,padding:12}))}e.push(Tn(r)),En(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:i,y:s,middlewareData:n,placement:a}=await wn(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 u`
|
1985
|
-
<div class="popover-hover-bridge"></div>
|
1986
|
-
${this.closeButton?u` <mdc-button
|
1987
|
-
class="popover-close"
|
1988
|
-
prefix-icon="cancel-bold"
|
1989
|
-
variant="tertiary"
|
1990
|
-
size="20"
|
1991
|
-
aria-label=${A(this.closeButtonAriaLabel)}
|
1992
|
-
@click="${this.hidePopover}"
|
1993
|
-
></mdc-button>`:b}
|
1994
|
-
${this.showArrow?u`<div class="popover-arrow"></div>`:b}
|
1995
|
-
<div part="popover-content">
|
1996
|
-
<slot></slot>
|
1997
|
-
</div>
|
1998
|
-
`}};w.styles=[...E.styles,...Cn],c([d({type:String})],w.prototype,"id",2),c([d({type:String})],w.prototype,"triggerID",2),c([d({type:String,reflect:!0})],w.prototype,"trigger",2),c([d({type:String,reflect:!0})],w.prototype,"placement",2),c([d({type:String,reflect:!0})],w.prototype,"color",2),c([d({type:Boolean,reflect:!0})],w.prototype,"visible",2),c([d({type:Number,reflect:!0})],w.prototype,"offset",2),c([d({type:Boolean,reflect:!0,attribute:"focus-trap"})],w.prototype,"focusTrap",2),c([d({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],w.prototype,"preventScroll",2),c([d({type:Boolean,reflect:!0,attribute:"show-arrow"})],w.prototype,"showArrow",2),c([d({type:Boolean,reflect:!0,attribute:"close-button"})],w.prototype,"closeButton",2),c([d({type:Boolean,reflect:!0})],w.prototype,"interactive",2),c([d({type:String,reflect:!0})],w.prototype,"delay",2),c([d({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],w.prototype,"hideOnEscape",2),c([d({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],w.prototype,"hideOnBlur",2),c([d({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],w.prototype,"hideOnOutsideClick",2),c([d({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],w.prototype,"focusBackToTrigger",2),c([d({type:Boolean,reflect:!0})],w.prototype,"backdrop",2),c([d({type:Boolean,reflect:!0})],w.prototype,"flip",2),c([d({type:Boolean,reflect:!0})],w.prototype,"size",2),c([d({type:Number,reflect:!0,attribute:"z-index"})],w.prototype,"zIndex",2),c([d({type:String,reflect:!0,attribute:"append-to"})],w.prototype,"appendTo",2),c([d({type:String,attribute:"close-button-aria-label"})],w.prototype,"closeButtonAriaLabel",2),c([d({type:String,reflect:!0})],w.prototype,"role",2),c([d({type:String,reflect:!0,attribute:"aria-labelledby"})],w.prototype,"ariaLabelledby",2),c([d({type:String,reflect:!0,attribute:"aria-describedby"})],w.prototype,"ariaDescribedby",2),c([d({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],w.prototype,"disableAriaExpanded",2);var Mt=w;Mt.register(Ln);var Ol=Mt;var zl=[R,g`
|
1998
|
+
`,Nn=[Dl];var On=v.constructTagName("marker"),Mn={SOLID:"solid",STRIPED:"striped"};var br=class extends E{constructor(){super(...arguments);this.variant=Mn.SOLID}};br.styles=[...E.styles,...Nn],l([d({type:String,reflect:!0})],br.prototype,"variant",2);var ci=br;ci.register(On);var $l=ci;qe.register(gn);var Pl=qe;var Ul=[k,g`
|
1999
1999
|
:host{
|
2000
2000
|
--mdc-radio-inner-circle-size: 0.375rem;
|
2001
2001
|
--mdc-radio-text-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -2157,10 +2157,10 @@
|
|
2157
2157
|
display: none;
|
2158
2158
|
}
|
2159
2159
|
|
2160
|
-
`,...
|
2160
|
+
`,...z(!0)],zn=Ul;var yt=class extends ye(B(te)){constructor(){super();this.checked=!1;this.readonly=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?u`<div class="mdc-radio__label-container">
|
2161
2161
|
${this.renderLabel()}
|
2162
2162
|
${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
|
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 u`
|
2164
2164
|
<div class="mdc-radio__container">
|
2165
2165
|
<div class="mdc-radio__icon-container mdc-focus-ring">
|
2166
2166
|
<input
|
@@ -2185,7 +2185,7 @@
|
|
2185
2185
|
</div>
|
2186
2186
|
${this.renderLabelAndHelperText()}
|
2187
2187
|
</div>
|
2188
|
-
`}};
|
2188
|
+
`}};yt.styles=[...te.styles,...zn],l([d({type:Boolean,reflect:!0})],yt.prototype,"checked",2),l([d({type:Boolean,reflect:!0})],yt.prototype,"readonly",2),l([d({type:Boolean,reflect:!0})],yt.prototype,"autofocus",2);var di=yt;var lo=v.constructTagName("radio");di.register(lo);var Vl=di;var vr=class extends ro{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()===lo))==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)})}};vr.styles=[...ro.styles],l([d({type:String})],vr.prototype,"name",2);var mi=vr;var Dn=v.constructTagName("radiogroup");mi.register(Dn);var Fl=mi;var Hl=[k,g`
|
2189
2189
|
:host {
|
2190
2190
|
--mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
|
2191
2191
|
--mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
|
@@ -2247,11 +2247,11 @@
|
|
2247
2247
|
stroke-dashoffset: -292;
|
2248
2248
|
}
|
2249
2249
|
}
|
2250
|
-
`]
|
2250
|
+
`],$n=Hl;var Pn=v.constructTagName("spinner"),Bl={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},Gl={STANDALONE:"standalone",BUTTON:"button"},co={VARIANT:Gl.STANDALONE,SIZE:Bl.MIDSIZE,INVERTED:!1};var je=class extends E{constructor(){super(...arguments);this.inverted=co.INVERTED;this.size=co.SIZE;this.ariaLabel=null;this.variant=co.VARIANT}updated(e){super.updated(e),e.has("ariaLabel")&&(this.role=this.ariaLabel?"img":null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return u`
|
2251
2251
|
<svg part="container" viewBox="0 0 100 100">
|
2252
2252
|
<circle part="circle" cx="50" cy="50" r="46"></circle>
|
2253
2253
|
</svg>
|
2254
|
-
`}};
|
2254
|
+
`}};je.styles=[...E.styles,...$n],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 hi=je;hi.register(Pn);var Yl=hi;var ql=[k,g`
|
2255
2255
|
|
2256
2256
|
:host {
|
2257
2257
|
--mdc-tab-content-gap: 0.5rem;
|
@@ -2494,7 +2494,7 @@
|
|
2494
2494
|
color: var(--mdc-tab-pill-active-color-disabled);
|
2495
2495
|
}
|
2496
2496
|
|
2497
|
-
`,...
|
2497
|
+
`,...z()],Un=ql;var Vn=v.constructTagName("tab"),pi={GLASS:"glass",LINE:"line",PILL:"pill"},ui={VARIANT:pi.PILL};var Ut=class extends ue(Be){constructor(){super();this.variant=ui.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=`${nr(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(e){this.setAttribute("variant",Object.values(pi).includes(e)?e:ui.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 u`
|
2498
2498
|
<div part="container">
|
2499
2499
|
${this.iconName?u` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:b}
|
2500
2500
|
${this.text?u` <mdc-text
|
@@ -2508,7 +2508,7 @@
|
|
2508
2508
|
<slot name="chip"></slot>
|
2509
2509
|
</div>
|
2510
2510
|
<div part="indicator"></div>
|
2511
|
-
`}};
|
2511
|
+
`}};Ut.styles=[...Be.styles,...Un],l([d({type:String,reflect:!0})],Ut.prototype,"text",2),l([d({type:String,reflect:!0})],Ut.prototype,"variant",2);var fi=Ut;fi.register(Vn);var Wl=fi;var mo=v.constructTagName("themeprovider"),gi={THEMECLASS:"mds-theme-stable-darkWebex"};var ho=class{constructor(t){this.themeclass=t}};ho.context=mo;var po=ho;var Xl=g`
|
2512
2512
|
:host {
|
2513
2513
|
--mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
|
2514
2514
|
--mdc-themeprovider-font-family: var(--mds-font-family-primary);
|
@@ -2537,7 +2537,7 @@
|
|
2537
2537
|
* {
|
2538
2538
|
scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
|
2539
2539
|
}
|
2540
|
-
|
2540
|
+
`,Fn=[Xl];var Vt=class extends Ct{constructor(){super({context:po.context,initialValue:new po(gi.THEMECLASS)});this.themeclass=gi.THEMECLASS}static get Context(){return po.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(" "))}};Vt.styles=[...Ct.styles,...Fn],l([W()],Vt.prototype,"currentThemeClass",2),l([d({type:String})],Vt.prototype,"themeclass",2);var bi=Vt;bi.register(mo);var Zl=bi;var jl=[k,g`
|
2541
2541
|
:host {
|
2542
2542
|
--mdc-toggle-width: 3rem;
|
2543
2543
|
--mdc-toggle-height: 1.5rem;
|
@@ -2689,7 +2689,7 @@
|
|
2689
2689
|
border: var(--mdc-toggle-border);
|
2690
2690
|
}
|
2691
2691
|
}
|
2692
|
-
`,...
|
2692
|
+
`,...z(!0)],Hn=jl;var Bn=v.constructTagName("toggle"),vi={DEFAULT:"default",COMPACT:"compact"},yi={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},Gn={compact:.75,default:1.25},xi={SIZE:vi.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var xt=class extends ye(B(Oe)){constructor(){super();this.checked=!1;this.size=xi.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(vi).includes(e)?e:xi.SIZE)}update(e){super.update(e),e.has("checked")&&this.setFormValue(),e.has("size")&&this.setToggleSize(this.size)}render(){var e;return u`
|
2693
2693
|
<div class="mdc-toggle__container mdc-focus-ring">
|
2694
2694
|
<input
|
2695
2695
|
id="${this.id}"
|
@@ -2711,16 +2711,16 @@
|
|
2711
2711
|
/>
|
2712
2712
|
<div class="mdc-toggle__slider">
|
2713
2713
|
<mdc-icon
|
2714
|
-
name="${this.checked?
|
2714
|
+
name="${this.checked?yi.CHECKED:yi.UNCHECKED}"
|
2715
2715
|
class="mdc-toggle__icon"
|
2716
2716
|
length-unit="rem"
|
2717
|
-
size="${
|
2717
|
+
size="${Gn[this.size]}"
|
2718
2718
|
></mdc-icon>
|
2719
2719
|
</div>
|
2720
2720
|
</div>
|
2721
2721
|
${this.renderLabel()}
|
2722
2722
|
${this.renderHelperText()}
|
2723
|
-
`}};
|
2723
|
+
`}};xt.styles=[...Oe.styles,...Hn],l([d({type:Boolean,reflect:!0})],xt.prototype,"checked",2),l([d({type:String,reflect:!0})],xt.prototype,"size",2),l([d({type:Boolean,reflect:!0})],xt.prototype,"autofocus",2);var Ei=xt;Ei.register(Bn);var Kl=Ei;var Yn=v.constructTagName("tooltip"),K={DESCRIPTION:"description",LABEL:"label",NONE:"none"},Me={BACKDROP:!1,COLOR:ht.TONAL,DELAY:"0,0",OFFSET:4,PLACEMENT:mt.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:K.DESCRIPTION};var Ql=g`
|
2724
2724
|
|
2725
2725
|
:host {
|
2726
2726
|
--mdc-tooltip-max-width: 400px;
|
@@ -2745,10 +2745,10 @@
|
|
2745
2745
|
:host([color='contrast'])::part(popover-content) {
|
2746
2746
|
color: var(--mdc-tooltip-text-color-contrast);
|
2747
2747
|
}
|
2748
|
-
`,
|
2748
|
+
`,qn=[Ql];var Ft=class extends qe{constructor(){super();this.tooltipType=Me.TOOLTIP_TYPE;this.backdrop=!1,this.color=Me.COLOR,this.delay=Me.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=Me.OFFSET,this.placement=Me.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:Me.TOOLTIP_TYPE)}onIdUpdated(){this.id.length===0&&(this.id=`mdc-tooltip-${ar()}`);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(mt).includes(this.placement)||(this.placement=Me.PLACEMENT)}onTooltipTypeUpdated(e){let r=e.get("tooltipType");Object.values(K).includes(this.tooltipType)||this.setTooltipType(Me.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)}};Ft.styles=[...qe.styles,...qn],l([d({type:String,attribute:"tooltip-type",reflect:!0})],Ft.prototype,"tooltipType",2),l([Ki()],Ft.prototype,"defaultSlotNodes",2);var Ti=Ft;Ti.register(Yn);var Jl=Ti;function Et(o,t,e){var s;let r=(s=e.initialDeps)!=null?s:[],i;return()=>{var n,a,c,m;let h;e.key&&((n=e.debug)!=null&&n.call(e))&&(h=Date.now());let p=o();if(!(p.length!==r.length||p.some((x,T)=>r[T]!==x)))return i;r=p;let f;if(e.key&&((a=e.debug)!=null&&a.call(e))&&(f=Date.now()),i=t(...p),e.key&&((c=e.debug)!=null&&c.call(e))){let x=Math.round((Date.now()-h)*100)/100,T=Math.round((Date.now()-f)*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
2749
|
font-size: .6rem;
|
2750
2750
|
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 mo(o,t){if(o===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return o}var Bn=(o,t)=>Math.abs(o-t)<1,Gn=(o,t,e)=>{let r;return function(...i){o.clearTimeout(r),r=o.setTimeout(()=>t.apply(this,i),e)}};var Zl=o=>o,jl=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},qn=(o,t)=>{let e=o.scrollElement;if(!e)return;let r=o.targetWindow;if(!r)return;let i=n=>{let{width:a,height:l}=n;t({width:Math.round(a),height:Math.round(l)})};if(i(e.getBoundingClientRect()),!r.ResizeObserver)return()=>{};let s=new r.ResizeObserver(n=>{let a=n[0];if(a!=null&&a.borderBoxSize){let l=a.borderBoxSize[0];if(l){i({width:l.inlineSize,height:l.blockSize});return}}i(e.getBoundingClientRect())});return s.observe(e,{box:"border-box"}),()=>{s.unobserve(e)}},Yn={passive:!0};var Kl=typeof window>"u"?!0:"onscrollend"in window,Wn=(o,t)=>{let e=o.scrollElement;if(!e)return;let r=o.targetWindow;if(!r)return;let i=0,s=o.options.useScrollendEvent&&Kl?()=>{}:Gn(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),l=n(!1);return l(),e.addEventListener("scroll",a,Yn),e.addEventListener("scrollend",l,Yn),()=>{e.removeEventListener("scroll",a),e.removeEventListener("scrollend",l)}};var Ql=(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 Xn=(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})},ho=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:Zl,rangeExtractor:jl,onChange:()=>{},measureElement:Ql,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=bt(()=>(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 l=s.get(a.lane);if(l==null||a.end>l.end?s.set(a.lane,a):a.end<l.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=bt(()=>[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=bt(()=>[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 l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let m=this.measurementsCache.slice(0,l);for(let h=l;h<e;h++){let p=s(h),v=this.options.lanes===1?m[h-1]:this.getFurthestMeasurement(m,h),f=v?v.end+this.options.gap:r+i,x=a.get(p),T=typeof x=="number"?x:this.options.estimateSize(h),_=f+T,S=v?v.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=bt(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,r,i)=>this.range=e.length>0&&r>0?Jl({measurements:e,outerSize:r,scrollOffset:i}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=bt(()=>{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=bt(()=>[this.getIndexes(),this.getMeasurements()],(e,r)=>{let i=[];for(let s=0,n=e.length;s<n;s++){let a=e[s],l=r[a];i.push(l)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let r=this.getMeasurements();if(r.length!==0)return mo(r[Zn(0,r.length-1,i=>mo(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",l=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[n]:this.scrollElement[n]:0)-i;return Math.max(Math.min(l,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]=mo(this.getOffsetForIndex(e,a));Bn(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)}},Zn=(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 Jl({measurements:o,outerSize:t,scrollOffset:e}){let r=o.length-1,s=Zn(0,r,a=>o[a].start,e),n=s;for(;n<r&&o[n].end<e+t;)n++;return{startIndex:s,endIndex:n}}var xi=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 ho(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},po=class extends xi{constructor(t,e){super(t,{observeElementRect:qn,observeElementOffset:Wn,scrollToFn:Xn,...e})}};var{I:KE}=Gi;var jn=o=>o.strings===void 0;var gr=(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),gr(i,t);return!0},uo=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)},Kn=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),rc(t)}};function ec(o){this._$AN!==void 0?(uo(this),this._$AM=o,Kn(this)):this._$AM=o}function tc(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++)gr(r[s],!1),uo(r[s]);else r!=null&&(gr(r,!1),uo(r));else gr(this,o)}var rc=o=>{var t,e;o.type==Pr.CHILD&&((t=o._$AP)!=null||(o._$AP=tc),(e=o._$AQ)!=null||(o._$AQ=ec))},fo=class extends kt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),Kn(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&&(gr(this,t),uo(this))}setValue(t){if(jn(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 Qn=()=>new Ti,Ti=class{},Ei=new WeakMap,Jn=er(class extends fo{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=Ei.get(e);r===void 0&&(r=new WeakMap,Ei.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=Ei.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 oc=[g`
|
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`
|
2752
2752
|
:host::part(scroll) {
|
2753
2753
|
height: 100%;
|
2754
2754
|
width: 100%;
|
@@ -2758,19 +2758,19 @@
|
|
2758
2758
|
position: relative;
|
2759
2759
|
width: 100%;
|
2760
2760
|
}
|
2761
|
-
`],
|
2761
|
+
`],ia=lc;var sa=v.constructTagName("virtualizedlist"),RT=v.constructTagName("virtualizedwrapper"),na={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var Tt=class extends E{constructor(){super();this.virtualizerProps=na.VIRTUALIZER_PROPS;this.scrollElementRef=ra();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 go(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(),h={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:h})}return u`<div
|
2762
2762
|
part="container"
|
2763
2763
|
style="height: ${r()}px;"
|
2764
2764
|
>
|
2765
2765
|
<slot></slot>
|
2766
2766
|
</div>`}render(){return u`<div
|
2767
|
-
${
|
2767
|
+
${oa(this.scrollElementRef)}
|
2768
2768
|
part="scroll"
|
2769
2769
|
@scroll=${this.onscroll&&this.onscroll}
|
2770
2770
|
>
|
2771
2771
|
${this.virtualizerController?this.getVirtualizedListWrapper(this.virtualizerController):u``}
|
2772
2772
|
</div>
|
2773
|
-
`}};
|
2773
|
+
`}};Tt.styles=[...E.styles,...ia],l([d({type:Function,attribute:"onscroll"})],Tt.prototype,"onscroll",2),l([d({type:Object,attribute:"virtualizerprops"})],Tt.prototype,"virtualizerProps",2),l([d({type:Function,attribute:"setlistdata"})],Tt.prototype,"setlistdata",2);var Ii=Tt;Ii.register(sa);var cc=Ii;var dc=[g`
|
2774
2774
|
:host {
|
2775
2775
|
--mdc-textarea-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
|
2776
2776
|
--mdc-textarea-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -2888,13 +2888,13 @@
|
|
2888
2888
|
pointer-events: none;
|
2889
2889
|
}
|
2890
2890
|
|
2891
|
-
`,...
|
2891
|
+
`,...z(!0)],aa=dc;var la=v.constructTagName("textarea"),mc="cancel-bold",wi={HARD:"hard",SOFT:"soft"},ca={OFF:"off",ON:"on"},At={ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:mc,CLEAR_BUTTON_VARIANT:Ce.TERTIARY,CLEAR_BUTTON_SIZE:ae[20],CHARACTER_COUNTER_TYPE:C.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:wi.SOFT};var $=class extends ye(B(Oe)){constructor(){var e;super();this.readonly=!1;this.rows=At.ROWS;this.cols=At.COLS;this.wrap=wi.SOFT;this.autocapitalize=oo.OFF;this.autocomplete=ca.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===ee.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?u`
|
2892
2892
|
<mdc-button
|
2893
2893
|
part='clear-button'
|
2894
2894
|
class='own-focus-ring ${this.value?"":"hidden"}'
|
2895
|
-
prefix-icon='${
|
2896
|
-
variant='${
|
2897
|
-
size="${
|
2895
|
+
prefix-icon='${At.CLEAR_BUTTON_ICON}'
|
2896
|
+
variant='${At.CLEAR_BUTTON_VARIANT}'
|
2897
|
+
size="${At.CLEAR_BUTTON_SIZE}"
|
2898
2898
|
aria-label="${this.clearAriaLabel}"
|
2899
2899
|
?disabled=${this.disabled||this.readonly||!this.value}
|
2900
2900
|
@click=${this.clearInputText}
|
@@ -2904,7 +2904,7 @@
|
|
2904
2904
|
<mdc-text
|
2905
2905
|
part="character-counter"
|
2906
2906
|
tagname="span"
|
2907
|
-
type=${
|
2907
|
+
type=${At.CHARACTER_COUNTER_TYPE}
|
2908
2908
|
>
|
2909
2909
|
${this.value.length<10?`0${this.value.length}`:this.value.length}/${this.maxCharacterLimit}
|
2910
2910
|
</mdc-text>
|
@@ -2943,7 +2943,7 @@
|
|
2943
2943
|
${this.renderClearButton()}
|
2944
2944
|
</div>
|
2945
2945
|
${this.renderTextareaFooter()}
|
2946
|
-
`}};$.styles=[...
|
2946
|
+
`}};$.styles=[...Oe.styles,...aa],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([Rr("textarea")],$.prototype,"inputElement",2);var Ci=$;Ci.register(la);var hc=Ci;})();
|
2947
2947
|
/*! Bundled license information:
|
2948
2948
|
|
2949
2949
|
@lit/reactive-element/css-tag.js:
|