@momentum-design/components 0.51.4 → 0.52.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 +281 -192
- package/dist/browser/index.js.map +4 -4
- package/dist/components/progressbar/progressbar.component.d.ts +1 -1
- package/dist/components/progressspinner/index.d.ts +8 -0
- package/dist/components/progressspinner/index.js +5 -0
- package/dist/components/progressspinner/progressspiner.utils.d.ts +66 -0
- package/dist/components/progressspinner/progressspiner.utils.js +102 -0
- package/dist/components/progressspinner/progressspinner.component.d.ts +46 -0
- package/dist/components/progressspinner/progressspinner.component.js +125 -0
- package/dist/components/progressspinner/progressspinner.constants.d.ts +15 -0
- package/dist/components/progressspinner/progressspinner.constants.js +16 -0
- package/dist/components/progressspinner/progressspinner.styles.d.ts +2 -0
- package/dist/components/progressspinner/progressspinner.styles.js +47 -0
- package/dist/custom-elements.json +548 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.js +1 -0
- package/dist/react/progressspinner/index.d.ts +30 -0
- package/dist/react/progressspinner/index.js +39 -0
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
"use strict";(()=>{var
|
2
|
-
\f\r]`,
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
1
|
+
"use strict";(()=>{var ql=Object.defineProperty;var Zl=Object.getOwnPropertyDescriptor;var l=(i,t,e,r)=>{for(var o=r>1?void 0:r?Zl(t,e):t,a=i.length-1,s;a>=0;a--)(s=i[a])&&(o=(r?s(t,e,o):s(o))||o);return r&&o&&ql(t,e,o),o};var Xr=globalThis,jr=Xr.ShadowRoot&&(Xr.ShadyCSS===void 0||Xr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,oi=Symbol(),La=new WeakMap,pr=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==oi)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(jr&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=La.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&La.set(e,t))}return t}toString(){return this.cssText}},Ra=i=>new pr(typeof i=="string"?i:i+"",void 0,oi),f=(i,...t)=>{let e=i.length===1?i[0]:t.reduce((r,o,a)=>r+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+i[a+1],i[0]);return new pr(e,i,oi)},ii=(i,t)=>{if(jr)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),o=Xr.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=e.cssText,i.appendChild(r)}},Kr=jr?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return Ra(e)})(i):i;var{is:Xl,defineProperty:jl,getOwnPropertyDescriptor:Kl,getOwnPropertyNames:Ql,getOwnPropertySymbols:Jl,getPrototypeOf:ec}=Object,je=globalThis,Na=je.trustedTypes,tc=Na?Na.emptyScript:"",ai=je.reactiveElementPolyfillSupport,hr=(i,t)=>i,ur={toAttribute(i,t){switch(t){case Boolean:i=i?tc:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},Qr=(i,t)=>!Xl(i,t),Oa={attribute:!0,type:String,converter:ur,reflect:!1,hasChanged:Qr},Ma,Da;(Ma=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Da=je.litPropertyMetadata)!=null||(je.litPropertyMetadata=new WeakMap);var Ne=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=Oa){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),o=this.getPropertyDescriptor(t,r,e);o!==void 0&&jl(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){var s;let{get:o,set:a}=(s=Kl(this.prototype,t))!=null?s:{get(){return this[e]},set(n){this[e]=n}};return{get(){return o==null?void 0:o.call(this)},set(n){let d=o==null?void 0:o.call(this);a.call(this,n),this.requestUpdate(t,d,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:Oa}static _$Ei(){if(this.hasOwnProperty(hr("elementProperties")))return;let t=ec(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(hr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(hr("properties"))){let e=this.properties,r=[...Ql(e),...Jl(e)];for(let o of r)this.createProperty(o,e[o])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,o]of e)this.elementProperties.set(r,o)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let o=this._$Eu(e,r);o!==void 0&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let r=new Set(t.flat(1/0).reverse());for(let o of r)e.unshift(Kr(o))}else t!==void 0&&e.push(Kr(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 ii(t,this.constructor.elementStyles),t}connectedCallback(){var t,e;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(r=>{var o;return(o=r.hostConnected)==null?void 0:o.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostDisconnected)==null?void 0:r.call(e)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EC(t,e){var a;let r=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,r);if(o!==void 0&&r.reflect===!0){let s=(((a=r.converter)==null?void 0:a.toAttribute)!==void 0?r.converter:ur).toAttribute(e,r.type);this._$Em=t,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(t,e){var a;let r=this.constructor,o=r._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let s=r.getPropertyOptions(o),n=typeof s.converter=="function"?{fromAttribute:s.converter}:((a=s.converter)==null?void 0:a.fromAttribute)!==void 0?s.converter:ur;this._$Em=o,this[o]=n.fromAttribute(e,s.type),this._$Em=null}}requestUpdate(t,e,r){var o;if(t!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(t)),!((o=r.hasChanged)!=null?o:Qr)(this[t],e))return;this.P(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,r){var o;this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$Em!==t&&((o=this._$Ej)!=null?o:this._$Ej=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r,o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((r=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[s,n]of this._$Ep)this[s]=n;this._$Ep=void 0}let a=this.constructor.elementProperties;if(a.size>0)for(let[s,n]of a)n.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],n)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(o=this._$EO)==null||o.forEach(a=>{var s;return(s=a.hostUpdate)==null?void 0:s.call(a)}),this.update(e)):this._$EU()}catch(a){throw t=!1,this._$EU(),a}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(r=>{var o;return(o=r.hostUpdated)==null?void 0:o.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}},$a;Ne.elementStyles=[],Ne.shadowRootOptions={mode:"open"},Ne[hr("elementProperties")]=new Map,Ne[hr("finalized")]=new Map,ai==null||ai({ReactiveElement:Ne}),(($a=je.reactiveElementVersions)!=null?$a:je.reactiveElementVersions=[]).push("2.0.4");var br=globalThis,Jr=br.trustedTypes,za=Jr?Jr.createPolicy("lit-html",{createHTML:i=>i}):void 0,li="$lit$",Oe=`lit$${Math.random().toFixed(9).slice(2)}$`,ci="?"+Oe,rc=`<${ci}>`,ct=document,gr=()=>ct.createComment(""),vr=i=>i===null||typeof i!="object"&&typeof i!="function",di=Array.isArray,Ga=i=>di(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",si=`[
|
2
|
+
\f\r]`,fr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Pa=/-->/g,Va=/>/g,nt=RegExp(`>|${si}(?:([^\\s"'>=/]+)(${si}*=${si}*(?:[^
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ua=/'/g,Fa=/"/g,Wa=/^(?:script|style|textarea|title)$/i,mi=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),m=mi(1),wm=mi(2),Cm=mi(3),Me=Symbol.for("lit-noChange"),y=Symbol.for("lit-nothing"),Ba=new WeakMap,lt=ct.createTreeWalker(ct,129);function Ya(i,t){if(!di(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return za!==void 0?za.createHTML(t):t}var qa=(i,t)=>{let e=i.length-1,r=[],o,a=t===2?"<svg>":t===3?"<math>":"",s=fr;for(let n=0;n<e;n++){let d=i[n],p,h,u=-1,x=0;for(;x<d.length&&(s.lastIndex=x,h=s.exec(d),h!==null);)x=s.lastIndex,s===fr?h[1]==="!--"?s=Pa:h[1]!==void 0?s=Va:h[2]!==void 0?(Wa.test(h[2])&&(o=RegExp("</"+h[2],"g")),s=nt):h[3]!==void 0&&(s=nt):s===nt?h[0]===">"?(s=o!=null?o:fr,u=-1):h[1]===void 0?u=-2:(u=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?nt:h[3]==='"'?Fa:Ua):s===Fa||s===Ua?s=nt:s===Pa||s===Va?s=fr:(s=nt,o=void 0);let v=s===nt&&i[n+1].startsWith("/>")?" ":"";a+=s===fr?d+rc:u>=0?(r.push(p),d.slice(0,u)+li+d.slice(u)+Oe+v):d+Oe+(u===-2?n:v)}return[Ya(i,a+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},yr=class i{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let a=0,s=0,n=t.length-1,d=this.parts,[p,h]=qa(t,e);if(this.el=i.createElement(p,r),lt.currentNode=this.el.content,e===2||e===3){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(o=lt.nextNode())!==null&&d.length<n;){if(o.nodeType===1){if(o.hasAttributes())for(let u of o.getAttributeNames())if(u.endsWith(li)){let x=h[s++],v=o.getAttribute(u).split(Oe),E=/([.?@])?(.*)/.exec(x);d.push({type:1,index:a,name:E[2],strings:v,ctor:E[1]==="."?to:E[1]==="?"?ro:E[1]==="@"?oo:mt}),o.removeAttribute(u)}else u.startsWith(Oe)&&(d.push({type:6,index:a}),o.removeAttribute(u));if(Wa.test(o.tagName)){let u=o.textContent.split(Oe),x=u.length-1;if(x>0){o.textContent=Jr?Jr.emptyScript:"";for(let v=0;v<x;v++)o.append(u[v],gr()),lt.nextNode(),d.push({type:2,index:++a});o.append(u[x],gr())}}}else if(o.nodeType===8)if(o.data===ci)d.push({type:2,index:a});else{let u=-1;for(;(u=o.data.indexOf(Oe,u+1))!==-1;)d.push({type:7,index:a}),u+=Oe.length-1}a++}}static createElement(t,e){let r=ct.createElement("template");return r.innerHTML=t,r}};function dt(i,t,e=i,r){var s,n,d;if(t===Me)return t;let o=r!==void 0?(s=e.o)==null?void 0:s[r]:e.l,a=vr(t)?void 0:t._$litDirective$;return(o==null?void 0:o.constructor)!==a&&((n=o==null?void 0:o._$AO)==null||n.call(o,!1),a===void 0?o=void 0:(o=new a(i),o._$AT(i,e,r)),r!==void 0?((d=e.o)!=null?d:e.o=[])[r]=o:e.l=o),o!==void 0&&(t=dt(i,o._$AS(i,t.values),o,r)),t}var eo=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var p;let{el:{content:e},parts:r}=this._$AD,o=((p=t==null?void 0:t.creationScope)!=null?p:ct).importNode(e,!0);lt.currentNode=o;let a=lt.nextNode(),s=0,n=0,d=r[0];for(;d!==void 0;){if(s===d.index){let h;d.type===2?h=new zt(a,a.nextSibling,this,t):d.type===1?h=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(h=new io(a,this,t)),this._$AV.push(h),d=r[++n]}s!==(d==null?void 0:d.index)&&(a=lt.nextNode(),s++)}return lt.currentNode=ct,o}p(t){let e=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}},zt=class i{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this.v}constructor(t,e,r,o){var a;this.type=2,this._$AH=y,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this.v=(a=o==null?void 0:o.isConnected)!=null?a:!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=dt(this,t,e),vr(t)?t===y||t==null||t===""?(this._$AH!==y&&this._$AR(),this._$AH=y):t!==this._$AH&&t!==Me&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ga(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!==y&&vr(this._$AH)?this._$AA.nextSibling.data=t:this.T(ct.createTextNode(t)),this._$AH=t}$(t){var a;let{values:e,_$litType$:r}=t,o=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=yr.createElement(Ya(r.h,r.h[0]),this.options)),r);if(((a=this._$AH)==null?void 0:a._$AD)===o)this._$AH.p(e);else{let s=new eo(o,this),n=s.u(this.options);s.p(e),this.T(n),this._$AH=s}}_$AC(t){let e=Ba.get(t.strings);return e===void 0&&Ba.set(t.strings,e=new yr(t)),e}k(t){di(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,o=0;for(let a of t)o===e.length?e.push(r=new i(this.O(gr()),this.O(gr()),this,this.options)):r=e[o],r._$AI(a),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,e);t&&t!==this._$AB;){let o=t.nextSibling;t.remove(),t=o}}setConnected(t){var e;this._$AM===void 0&&(this.v=t,(e=this._$AP)==null||e.call(this,t))}},mt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,a){this.type=1,this._$AH=y,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=a,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=y}_$AI(t,e=this,r,o){let a=this.strings,s=!1;if(a===void 0)t=dt(this,t,e,0),s=!vr(t)||t!==this._$AH&&t!==Me,s&&(this._$AH=t);else{let n=t,d,p;for(t=a[0],d=0;d<a.length-1;d++)p=dt(this,n[r+d],e,d),p===Me&&(p=this._$AH[d]),s||(s=!vr(p)||p!==this._$AH[d]),p===y?t=y:t!==y&&(t+=(p!=null?p:"")+a[d+1]),this._$AH[d]=p}s&&!o&&this.j(t)}j(t){t===y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},to=class extends mt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===y?void 0:t}},ro=class extends mt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==y)}},oo=class extends mt{constructor(t,e,r,o,a){super(t,e,r,o,a),this.type=5}_$AI(t,e=this){var s;if((t=(s=dt(this,t,e,0))!=null?s:y)===Me)return;let r=this._$AH,o=t===y&&r!==y||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,a=t!==y&&(r===y||o);o&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,r;typeof this._$AH=="function"?this._$AH.call((r=(e=this.options)==null?void 0:e.host)!=null?r:this.element,t):this._$AH.handleEvent(t)}},io=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){dt(this,t)}},Za={M:li,P:Oe,A:ci,C:1,L:qa,R:eo,D:Ga,V:dt,I:zt,H:mt,N:ro,U:oo,B:to,F:io},ni=br.litHtmlPolyfillSupport,Ha;ni==null||ni(yr,zt),((Ha=br.litHtmlVersions)!=null?Ha:br.litHtmlVersions=[]).push("3.2.0");var Xa=(i,t,e)=>{var a,s;let r=(a=e==null?void 0:e.renderBefore)!=null?a:t,o=r._$litPart$;if(o===void 0){let n=(s=e==null?void 0:e.renderBefore)!=null?s:null;r._$litPart$=o=new zt(t.insertBefore(gr(),n),n,void 0,e!=null?e:{})}return o._$AI(i),o};var Ke=class extends Ne{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=Xa(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this.o)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.o)==null||t.setConnected(!1)}render(){return Me}},ja;Ke._$litElement$=!0,Ke.finalized=!0,(ja=globalThis.litElementHydrateSupport)==null||ja.call(globalThis,{LitElement:Ke});var pi=globalThis.litElementPolyfillSupport;pi==null||pi({LitElement:Ke});var Ka;((Ka=globalThis.litElementVersions)!=null?Ka:globalThis.litElementVersions=[]).push("4.1.0");var oc={attribute:!0,type:String,converter:ur,reflect:!1,hasChanged:Qr},ic=(i=oc,t,e)=>{let{kind:r,metadata:o}=e,a=globalThis.litPropertyMetadata.get(o);if(a===void 0&&globalThis.litPropertyMetadata.set(o,a=new Map),a.set(e.name,i),r==="accessor"){let{name:s}=e;return{set(n){let d=t.get.call(this);t.set.call(this,n),this.requestUpdate(s,d,i)},init(n){return n!==void 0&&this.P(s,void 0,i),n}}}if(r==="setter"){let{name:s}=e;return function(n){let d=this[s];t.call(this,n),this.requestUpdate(s,d,i)}}throw Error("Unsupported decorator location: "+r)};function c(i){return(t,e)=>typeof e=="object"?ic(i,t,e):((r,o,a)=>{let s=o.hasOwnProperty(a);return o.constructor.createProperty(a,s?{...r,wrapped:!0}:r),s?Object.getOwnPropertyDescriptor(o,a):void 0})(i,t,e)}function M(i){return c({...i,state:!0,attribute:!1})}var De=(i,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(i,t,e),e);function $e(i,t){return(e,r,o)=>{let a=s=>{var n,d;return(d=(n=s.renderRoot)==null?void 0:n.querySelector(i))!=null?d:null};if(t){let{get:s,set:n}=typeof r=="object"?e:o!=null?o:(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return De(e,r,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&n.call(this,d)),d}})}return De(e,r,{get(){return a(this)}})}}function re(i){return(t,e)=>{let{slot:r,selector:o}=i!=null?i:{},a="slot"+(r?`[name=${r}]`:":not([name])");return De(t,e,{get(){var d,p;let s=(d=this.renderRoot)==null?void 0:d.querySelector(a),n=(p=s==null?void 0:s.assignedElements(i))!=null?p:[];return o===void 0?n:n.filter(h=>h.matches(o))}})}}function Qa(i){return(t,e)=>{let{slot:r}=i!=null?i:{},o="slot"+(r?`[name=${r}]`:":not([name])");return De(t,e,{get(){var s,n;let a=(s=this.renderRoot)==null?void 0:s.querySelector(o);return(n=a==null?void 0:a.assignedNodes(i))!=null?n:[]}})}}var k=f`
|
4
4
|
:host {
|
5
5
|
align-items: center;
|
6
6
|
display: flex;
|
@@ -8,7 +8,7 @@
|
|
8
8
|
justify-content: center;
|
9
9
|
width: fit-content;
|
10
10
|
}
|
11
|
-
`,
|
11
|
+
`,ao=f`
|
12
12
|
:host {
|
13
13
|
--mdc-focus-ring-inner-color: var(--mds-color-theme-focus-default-0);
|
14
14
|
--mdc-focus-ring-middle-color: var(--mds-color-theme-focus-default-1);
|
@@ -21,10 +21,10 @@
|
|
21
21
|
--mdc-focus-ring-middle-offset: var(--mdc-focus-ring-inner-width);
|
22
22
|
--mdc-focus-ring-outer-offset: calc(var(--mdc-focus-ring-inner-width) + var(--mdc-focus-ring-middle-width));
|
23
23
|
}
|
24
|
-
`,N=(i=!1)=>{let
|
24
|
+
`,N=(i=!1)=>{let t=f`0 0 0 var(--mdc-focus-ring-inner-width) var(--mdc-focus-ring-inner-color),
|
25
25
|
0 0 0 var(--mdc-focus-ring-middle-width) var(--mdc-focus-ring-middle-color),
|
26
26
|
0 0 0 var(--mdc-focus-ring-outer-width) var(--mdc-focus-ring-outer-color)
|
27
|
-
`;return i?[
|
27
|
+
`;return i?[ao,f`
|
28
28
|
.mdc-focus-ring:focus-visible {
|
29
29
|
outline: none;
|
30
30
|
}
|
@@ -34,7 +34,7 @@
|
|
34
34
|
/* Add focus ring to parent when child is focused. The parent element must have class name mdc-focus-ring */
|
35
35
|
.mdc-focus-ring:focus-within {
|
36
36
|
position: relative;
|
37
|
-
box-shadow: ${
|
37
|
+
box-shadow: ${t};
|
38
38
|
}
|
39
39
|
/* Remove focus ring from parent when children has its own focus ring.
|
40
40
|
The child element must have class name own-focus-ring */
|
@@ -48,14 +48,14 @@
|
|
48
48
|
outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
|
49
49
|
}
|
50
50
|
}
|
51
|
-
`]:[
|
51
|
+
`]:[ao,f`
|
52
52
|
:host([disabled]:focus) {
|
53
53
|
box-shadow: none;
|
54
54
|
}
|
55
55
|
:host(:focus-visible) {
|
56
56
|
outline: none;
|
57
57
|
position: relative;
|
58
|
-
box-shadow: ${
|
58
|
+
box-shadow: ${t};
|
59
59
|
}
|
60
60
|
/* High Contrast Mode */
|
61
61
|
@media (forced-colors: active) {
|
@@ -63,7 +63,7 @@
|
|
63
63
|
outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
|
64
64
|
}
|
65
65
|
}
|
66
|
-
`]};var
|
66
|
+
`]};var ac=f`
|
67
67
|
:host {
|
68
68
|
height: 1.5rem;
|
69
69
|
gap: 0.25rem;
|
@@ -166,7 +166,7 @@
|
|
166
166
|
:host([variant="informational"]:active){
|
167
167
|
--mdc-chip-background-color: var(--mds-color-theme-background-alert-theme-active);
|
168
168
|
}
|
169
|
-
`,
|
169
|
+
`,Ja=[k,ac,...N()];var es=f`
|
170
170
|
:host {
|
171
171
|
box-sizing: border-box;
|
172
172
|
}
|
@@ -176,11 +176,11 @@
|
|
176
176
|
:host *::after {
|
177
177
|
box-sizing: inherit;
|
178
178
|
}
|
179
|
-
`;var
|
179
|
+
`;var so=class extends Ke{static register(t){customElements.get(t)||customElements.define(t,this)}};so.styles=[es];var ts=so;var g=ts;var Qe=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 Pt=class{constructor(t,e,r,o){var a;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(s,n)=>{this.unsubscribe&&(this.unsubscribe!==n&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=s,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(s,n)),this.unsubscribe=n},this.host=t,e.context!==void 0){let s=e;this.context=s.context,this.callback=s.callback,this.subscribe=(a=s.subscribe)!=null?a:!1}else this.context=e,this.callback=r,this.subscribe=o!=null?o:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Qe(this.context,this.t,this.subscribe))}};var no=class{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){let r=e||!Object.is(t,this.o);this.o=t,r&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(let[e,{disposer:r}]of this.subscriptions)e(this.o,r)},t!==void 0&&(this.value=t)}addCallback(t,e,r){if(!r)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});let{disposer:o}=this.subscriptions.get(t);t(this.value,o)}clearCallbacks(){this.subscriptions.clear()}};var hi=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},Vt=class extends no{constructor(t,e,r){var o,a;super(e.context!==void 0?e.initialValue:r),this.onContextRequest=s=>{let n=s.composedPath()[0];s.context===this.context&&n!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,n,s.subscribe))},this.onProviderRequest=s=>{let n=s.composedPath()[0];if(s.context!==this.context||n===this.host)return;let d=new Set;for(let[p,{consumerHost:h}]of this.subscriptions)d.has(p)||(d.add(p),h.dispatchEvent(new Qe(this.context,p,!0)));s.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(a=(o=this.host).addController)==null||a.call(o,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new hi(this.context))}};var sc=f`
|
180
180
|
:host {
|
181
181
|
display: contents;
|
182
182
|
}
|
183
|
-
`,
|
183
|
+
`,os=sc;var lo=class extends g{constructor({context:t,initialValue:e}){super(),this.context=new Vt(this,{context:t,initialValue:e})}render(){return this.updateContext(),m`<slot></slot>`}};lo.styles=[...g.styles,os];var is=lo;var Ut=is;var nc={PREFIX:"mdc",SEPARATOR:"-"},lc={NAMESPACE:nc},ui=lc;var cc=i=>[ui.NAMESPACE.PREFIX,i].join(ui.NAMESPACE.SEPARATOR),b={constructTagName:cc};var fh=b.constructTagName("buttonsimple"),xr={20:20,24:24,28:28,32:32,40:40,48:48,52:52,64:64,72:72,88:88,124:124},Ft={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},co={SIZE:xr[32],TYPE:Ft.BUTTON,ROLE:"button"};var Er=b.constructTagName("text"),_={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"},C={H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",P:"p",SMALL:"small",SPAN:"span",DIV:"div"},oe={TYPE:_.BODY_LARGE_REGULAR,TEXT_ELEMENT_TAGNAME:C.P,CSS_PART_TEXT:"text",CHILDREN:"The quick brown fox jumps over the lazy dog"};var as=b.constructTagName("alertchip"),pt={NEUTRAL:"neutral",ERROR:"error",SUCCESS:"success",WARNING:"warning",INFORMATIONAL:"informational"},Bt={VARIANT:pt.NEUTRAL,TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,TAG_NAME:C.SPAN,SIZE:xr[24],ROLE:"button"};var ss=i=>({[pt.ERROR]:"error-legacy-badge-filled",[pt.WARNING]:"warning-badge-filled",[pt.SUCCESS]:"check-circle-badge-filled",[pt.INFORMATIONAL]:"info-badge-filled",[pt.NEUTRAL]:"dnd-presence-badge-filled"})[i];var le=i=>{class t extends i{}return l([c({reflect:!0,type:Boolean})],t.prototype,"disabled",2),t};var mo=i=>{class t extends i{constructor(){super(...arguments);this.tabIndex=0}}return l([c({reflect:!0,type:Number})],t.prototype,"tabIndex",2),t};var dc=[k,f`
|
184
184
|
:host {
|
185
185
|
border: 0.0625rem solid transparent;
|
186
186
|
cursor: pointer;
|
@@ -236,12 +236,12 @@
|
|
236
236
|
:host([size="20"]){
|
237
237
|
height: var(--mdc-button-height-size-20);
|
238
238
|
}
|
239
|
-
`,...N()],
|
239
|
+
`,...N()],ns=dc;var Se=class extends mo(le(g)){constructor(){super();this.active=!1;this.softDisabled=!1;this.size=co.SIZE;this.role=co.ROLE;this.type=co.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===Ft.SUBMIT&&this.form&&this.form.requestSubmit(),this.type===Ft.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(),e.key===" "&&e.preventDefault())}handleKeyUp(e){["Enter"," "].includes(e.key)&&(this.classList.remove("pressed"),e.key===" "&&this.triggerClickEvent())}render(){return m`
|
240
240
|
<slot></slot>
|
241
|
-
`}};
|
242
|
-
<mdc-icon part="icon" name="${
|
243
|
-
<mdc-text part="label" type="${
|
244
|
-
`}};
|
241
|
+
`}};Se.formAssociated=!0,Se.styles=[...g.styles,...ns],l([c({type:Boolean,reflect:!0})],Se.prototype,"active",2),l([c({type:Boolean,attribute:"soft-disabled"})],Se.prototype,"softDisabled",2),l([c({type:Number,reflect:!0})],Se.prototype,"size",2),l([c({type:String,reflect:!0})],Se.prototype,"role",2),l([c({reflect:!0})],Se.prototype,"type",2);var ce=Se;var Ht=class extends ce{constructor(){super(...arguments);this.variant=Bt.VARIANT;this.label=""}connectedCallback(){super.connectedCallback(),this.disabled=void 0,this.softDisabled=void 0,this.active=void 0,this.size=Bt.SIZE,this.role=Bt.ROLE}render(){return m`
|
242
|
+
<mdc-icon part="icon" name="${ss(this.variant)}" length-unit="rem" size="1"></mdc-icon>
|
243
|
+
<mdc-text part="label" type="${Bt.TEXT_TYPE}" tagname="${Bt.TAG_NAME}">${this.label}</mdc-text>
|
244
|
+
`}};Ht.styles=[...g.styles,...Ja],l([c({type:String})],Ht.prototype,"variant",2),l([c({type:String})],Ht.prototype,"label",2);var fi=Ht;var ls=f`
|
245
245
|
:host::part(text) {
|
246
246
|
font-size: unset;
|
247
247
|
font-weight: unset;
|
@@ -484,14 +484,14 @@
|
|
484
484
|
text-decoration: var(--mds-font-apps-body-small-regular-text-decoration);
|
485
485
|
text-transform: var(--mds-font-apps-body-small-regular-text-case);
|
486
486
|
}
|
487
|
-
`;var
|
487
|
+
`;var mc=[f`
|
488
488
|
:host {
|
489
489
|
--mdc-text-font-family: var(--mdc-themeprovider-font-family);
|
490
490
|
|
491
491
|
display: block;
|
492
492
|
font-family: var(--mdc-text-font-family);
|
493
493
|
}
|
494
|
-
`,
|
494
|
+
`,ls],cs=mc;var Gt=class extends g{constructor(){super(...arguments);this.type=oe.TYPE;this.tagname=oe.TEXT_ELEMENT_TAGNAME}render(){switch(this.tagname){case C.H1:return m`<h1 part=${oe.CSS_PART_TEXT}><slot></slot></h1>`;case C.H2:return m`<h2 part=${oe.CSS_PART_TEXT}><slot></slot></h2>`;case C.H3:return m`<h3 part=${oe.CSS_PART_TEXT}><slot></slot></h3>`;case C.H4:return m`<h4 part=${oe.CSS_PART_TEXT}><slot></slot></h4>`;case C.H5:return m`<h5 part=${oe.CSS_PART_TEXT}><slot></slot></h5>`;case C.H6:return m`<h6 part=${oe.CSS_PART_TEXT}><slot></slot></h6>`;case C.DIV:return m`<div part=${oe.CSS_PART_TEXT}><slot></slot></div>`;case C.SPAN:return m`<span part=${oe.CSS_PART_TEXT}><slot></slot></span>`;case C.SMALL:return m`<small part=${oe.CSS_PART_TEXT}><slot></slot></small>`;case C.P:default:return m`<p part=${oe.CSS_PART_TEXT}><slot></slot></p>`}}};Gt.styles=[...g.styles,...cs],l([c({attribute:"type",reflect:!0,type:String})],Gt.prototype,"type",2),l([c({attribute:"tagname",reflect:!0,type:String})],Gt.prototype,"tagname",2);var bi=Gt;bi.register(Er);var pc=bi;var hc=[k,f`
|
495
495
|
:host {
|
496
496
|
--mdc-icon-fill-color: currentColor;
|
497
497
|
--mdc-icon-size: var(--computed-icon-size);
|
@@ -506,7 +506,7 @@
|
|
506
506
|
width: 100%;
|
507
507
|
fill: var(--mdc-icon-fill-color);
|
508
508
|
}
|
509
|
-
`,...N()],
|
509
|
+
`,...N()],ds=hc;var uc=i=>{let{host:t,context:e,subscribe:r}=i;return new Pt(t,{context:e,subscribe:r!=null?r:!0})},fc={consume:uc},ms=fc;var po=b.constructTagName("iconprovider"),ps=["svg"],hs=["em","rem","px","%"],bc={px:16,em:1,rem:1,"%":100},ze={FILE_EXTENSION:"svg",LENGTH_UNIT:"em",SIZE:bc.em,SHOULD_CACHE:!1,ICON_SET:"momentum-icons"};var ho=class{};ho.context=po;var uo=ho;var _e=class extends Ut{constructor(){super({context:uo.context,initialValue:new uo});this.iconSet=ze.ICON_SET;this.fileExtension=ze.FILE_EXTENSION;this.lengthUnit=ze.LENGTH_UNIT;this.size=ze.SIZE}static get Context(){return uo.context}updateValuesInContext(){this.fileExtension&&ps.includes(this.fileExtension)?this.context.value.fileExtension=this.fileExtension:(this.fileExtension=ze.FILE_EXTENSION,this.context.value.fileExtension=ze.FILE_EXTENSION),this.context.value.iconSet=this.iconSet,this.context.value.url=this.url,this.context.value.size=this.size,this.context.value.cacheName=this.cacheName,this.context.value.cacheStrategy=this.cacheStrategy,this.lengthUnit&&hs.includes(this.lengthUnit)?this.context.value.lengthUnit=this.lengthUnit:(this.lengthUnit=ze.LENGTH_UNIT,this.context.value.lengthUnit=ze.LENGTH_UNIT)}updateContext(){(this.context.value.fileExtension!==this.fileExtension||this.context.value.iconSet!==this.iconSet||this.context.value.url!==this.url||this.context.value.lengthUnit!==this.lengthUnit||this.context.value.size!==this.size||this.context.value.cacheName!==this.cacheName||this.context.value.cacheStrategy!==this.cacheStrategy)&&(this.updateValuesInContext(),this.context.updateObservers())}};l([c({type:String,attribute:"icon-set",reflect:!0})],_e.prototype,"iconSet",2),l([c({type:String})],_e.prototype,"url",2),l([c({type:String,attribute:"file-extension",reflect:!0})],_e.prototype,"fileExtension",2),l([c({type:String,attribute:"length-unit",reflect:!0})],_e.prototype,"lengthUnit",2),l([c({type:Number,reflect:!0})],_e.prototype,"size",2),l([c({type:String,attribute:"cache-strategy"})],_e.prototype,"cacheStrategy",2),l([c({type:String,attribute:"cache-name"})],_e.prototype,"cacheName",2);var Tr=_e;var Ar={},us=async i=>(Ar[i]===void 0&&(Ar[i]=new Map),{async set(t,e){Ar[i].set(t.url,await e.text())},async get(t){return Ar[i].get(t.url)},async delete(t){Ar[i].delete(t.url)}}),fs=async i=>{let t=await caches.open(i);return{set:async(e,r)=>{await t.put(e,r)},get:async e=>{let r=await t.match(e);return r==null?void 0:r.text()},delete:async e=>{await t.delete(e)}}},bs=async(i,t)=>t==="in-memory-cache"?us(i):fs(i);var gs=async i=>fetch(i).then(t=>{if(!t.ok)throw new Error("There was a problem while fetching the icon!");return t}),vs=async({url:i,name:t,fileExtension:e,cacheStrategy:r,cacheName:o,renewSignal:a})=>{let s=a(),n=new Request(`${i}/${t}.${e}`,{signal:s});return!o||!r||!["in-memory-cache","web-cache-api"].includes(r)?gs(n).then(d=>d.text()):bs(o,r).then(d=>d.get(n).then(p=>p||gs(n.clone()).then(h=>{var u;return h.status<400&&h.headers.has("content-type")?(u=d.set)==null?void 0:u.call(d,n,h.clone()).then(()=>h.text()):h.text()})).catch(p=>{throw new Error(`Error in caching the Icon ${t}, ${p}`)}))};var ys=b.constructTagName("icon"),gi={NAME:void 0,SIZE:1};var ie=class extends g{constructor(){super();this.name=gi.NAME;this.ariaLabel=null;this.ariaLabelledBy=null;this.iconProviderContext=ms.consume({host:this,context:Tr.Context});this.abortController=new AbortController}prepareIconElement(e){let r=new DOMParser().parseFromString(e,"text/html").body.children[0];return this.name&&r.setAttribute("data-name",this.name),r.setAttribute("part","icon"),r.setAttribute("aria-hidden","true"),r}async getIconData(){if(this.iconProviderContext.value){let{fileExtension:r,url:o,cacheName:a,iconSet:s,cacheStrategy:n}=this.iconProviderContext.value;if(s==="custom-icons"&&o&&r&&this.name){let d=()=>(this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal);return vs({url:o,name:this.name,fileExtension:r,cacheName:a,cacheStrategy:n,renewSignal:d}).then(p=>{let h=this.prepareIconElement(p);this.handleIconLoadedSuccess(h)}).catch(p=>{this.handleIconLoadedFailure(p)})}if(s==="momentum-icons"&&this.name)return import(`@momentum-design/icons/dist/ts/${this.name}.ts`).then(d=>{this.handleIconLoadedSuccess(d.default())}).catch(d=>{this.handleIconLoadedFailure(d)})}let e=new Error("IconProvider not found or not properly set up.");return this.handleIconLoadedFailure(e),Promise.reject(e)}handleIconLoadedSuccess(e){this.iconData=e;let r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleIconLoadedFailure(e){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(r)}updateSize(){var e;if(this.computedIconSize&&(this.lengthUnit||this.lengthUnitFromContext)){let r=`${this.computedIconSize}${(e=this.lengthUnit)!=null?e:this.lengthUnitFromContext}`;this.style.setProperty("--computed-icon-size",r)}}get computedIconSize(){var e,r;return(r=(e=this.size)!=null?e:this.sizeFromContext)!=null?r:gi.SIZE}updated(e){var r,o,a,s;super.updated(e),e.has("name")&&this.getIconData().catch(n=>{n.name!=="AbortError"&&this.onerror&&this.onerror(n)}),(e.has("ariaLabel")||e.has("ariaLabelledBy"))&&(this.role=this.ariaLabel||this.ariaLabelledBy?"img":null),(e.has("size")||e.has("lengthUnit"))&&this.updateSize(),this.lengthUnitFromContext!==((r=this.iconProviderContext.value)==null?void 0:r.lengthUnit)&&(this.lengthUnitFromContext=(o=this.iconProviderContext.value)==null?void 0:o.lengthUnit,this.updateSize()),this.sizeFromContext!==((a=this.iconProviderContext.value)==null?void 0:a.size)&&(this.sizeFromContext=(s=this.iconProviderContext.value)==null?void 0:s.size,this.updateSize())}render(){return m` ${this.iconData} `}};ie.styles=[...g.styles,...ds],l([M()],ie.prototype,"iconData",2),l([M()],ie.prototype,"lengthUnitFromContext",2),l([M()],ie.prototype,"sizeFromContext",2),l([c({type:String,reflect:!0})],ie.prototype,"name",2),l([c({type:Number})],ie.prototype,"size",2),l([c({type:String,attribute:"length-unit"})],ie.prototype,"lengthUnit",2),l([c({type:String,attribute:"aria-label"})],ie.prototype,"ariaLabel",2),l([c({type:String,attribute:"aria-labelledby"})],ie.prototype,"ariaLabelledBy",2),l([M()],ie.prototype,"abortController",2);var vi=ie;vi.register(ys);var gc=vi;fi.register(as);var vc=fi;var yc=f`
|
510
510
|
:host {
|
511
511
|
--mdc-appheader-height: 4rem;
|
512
512
|
}
|
@@ -540,7 +540,7 @@
|
|
540
540
|
:host::part(trailing-section) {
|
541
541
|
justify-content: flex-end;
|
542
542
|
}
|
543
|
-
`,
|
543
|
+
`,xs=[yc];var fo=class extends g{render(){return m`
|
544
544
|
<header part="container">
|
545
545
|
<div part="leading-section">
|
546
546
|
<slot name="leading"></slot>
|
@@ -551,7 +551,7 @@
|
|
551
551
|
<div part="trailing-section">
|
552
552
|
<slot name="trailing"></slot>
|
553
553
|
</div>
|
554
|
-
</header>`}};
|
554
|
+
</header>`}};fo.styles=[...g.styles,...xs];var yi=fo;var Es=b.constructTagName("appheader");yi.register(Es);var xc=yi;var A=i=>i!=null?i:y;var Ts=b.constructTagName("avatar"),X={COUNTER:"counter",ICON:"icon",PHOTO:"photo",TEXT:"text"},xi=99,Ec="user-regular",D={24:24,32:32,48:48,64:64,72:72,88:88,124:124},Wt={TYPE:X.PHOTO,SIZE:D[32],ICON_NAME:Ec};var bo=i=>{class t extends i{constructor(){super(...arguments);this.size=Wt.SIZE;this.isTyping=!1}}return l([c({type:String})],t.prototype,"src",2),l([c({type:String})],t.prototype,"initials",2),l([c({type:String})],t.prototype,"presence",2),l([c({type:Number,reflect:!0,attribute:"size"})],t.prototype,"size",2),l([c({type:Number})],t.prototype,"counter",2),l([c({type:Boolean,attribute:"is-typing"})],t.prototype,"isTyping",2),t};var Q=i=>{class t extends i{}return l([c({type:String,attribute:"icon-name"})],t.prototype,"iconName",2),t};var Tc=[k,f`
|
555
555
|
:host {
|
556
556
|
--mdc-avatar-default-background-color: var(--mds-color-theme-avatar-default);
|
557
557
|
--mdc-avatar-default-foreground-color: var(--mds-color-theme-common-text-primary-normal);
|
@@ -674,9 +674,9 @@
|
|
674
674
|
outline: 0.125rem solid;
|
675
675
|
}
|
676
676
|
}
|
677
|
-
`],
|
678
|
-
<mdc-presence part="presence" type="${this.presence}" size="${
|
679
|
-
`:y}handleOnLoad(){this.isPhotoLoaded=!0}handleOnError(){this.isPhotoLoaded=!1,this.onerror&&this.onerror("There was a problem while fetching the <img/>. Please check the src attribute and try again.")}photoTemplate(){return
|
677
|
+
`],As=Tc;var Ss=b.constructTagName("presence"),q={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"},H={XX_SMALL:"xx_small",X_SMALL:"x_small",SMALL:"small",MIDSIZE:"midsize",LARGE:"large",X_LARGE:"x_large",XX_LARGE:"xx_large"},Yt={TYPE:q.ACTIVE,SIZE:H.SMALL};var _s=i=>({[D[124]]:H.XX_LARGE,[D[88]]:H.X_LARGE,[D[72]]:H.LARGE,[D[64]]:H.MIDSIZE,[D[48]]:H.SMALL,[D[32]]:H.X_SMALL,[D[24]]:H.XX_SMALL})[i]||H.X_SMALL,Is=i=>({[D[124]]:4.75,[D[88]]:3,[D[72]]:2.5,[D[64]]:2.25,[D[48]]:1.75,[D[32]]:1.25,[D[24]]:1})[i]||1.25,ws=i=>({[D[124]]:_.HEADING_XLARGE_MEDIUM,[D[88]]:_.HEADING_LARGE_MEDIUM,[D[72]]:_.HEADING_MIDSIZE_MEDIUM,[D[64]]:_.HEADING_SMALL_MEDIUM,[D[48]]:_.HEADING_SMALL_MEDIUM,[D[32]]:_.BODY_MIDSIZE_MEDIUM,[D[24]]:_.BODY_SMALL_MEDIUM})[i]||_.BODY_MIDSIZE_MEDIUM;var Sr=class extends bo(Q(g)){constructor(){super(...arguments);this.isPhotoLoaded=!1}getPresenceTemplateBasedOnType(e){return e===X.COUNTER&&(this.counter||this.counter===0)||this.isTyping?y:this.presence?m`
|
678
|
+
<mdc-presence part="presence" type="${this.presence}" size="${_s(this.size)}"></mdc-presence>
|
679
|
+
`:y}handleOnLoad(){this.isPhotoLoaded=!0}handleOnError(){this.isPhotoLoaded=!1,this.onerror&&this.onerror("There was a problem while fetching the <img/>. Please check the src attribute and try again.")}photoTemplate(){return m`
|
680
680
|
<img
|
681
681
|
part="photo"
|
682
682
|
src="${A(this.src)}"
|
@@ -685,27 +685,27 @@
|
|
685
685
|
@load="${this.handleOnLoad}"
|
686
686
|
@error="${this.handleOnError}"
|
687
687
|
/>
|
688
|
-
`}iconTemplate(){let e=this.iconName||
|
688
|
+
`}iconTemplate(){let e=this.iconName||Wt.ICON_NAME;return m`
|
689
689
|
<mdc-icon
|
690
690
|
name="${A(e)}"
|
691
691
|
length-unit="rem"
|
692
|
-
size="${
|
692
|
+
size="${Is(this.size)}"
|
693
693
|
></mdc-icon>
|
694
|
-
`}textTemplate(e){return
|
694
|
+
`}textTemplate(e){return m`
|
695
695
|
<mdc-text
|
696
|
-
type="${
|
696
|
+
type="${ws(this.size)}"
|
697
697
|
tagname="span"
|
698
698
|
>
|
699
699
|
${e}
|
700
700
|
</mdc-text>
|
701
|
-
`}generateCounterText(e){return e<0?"0":e>
|
701
|
+
`}generateCounterText(e){return e<0?"0":e>xi?`${xi}+`:e.toString()}generateInitialsText(e){return e.toUpperCase().slice(0,2)}generateTextContent(e){let r="";return e===X.TEXT&&this.initials&&(r=this.generateInitialsText(this.initials)),e===X.COUNTER&&(this.counter||this.counter===0)&&(r=this.generateCounterText(this.counter)),this.textTemplate(r)}getTypeBasedOnInputs(){return this.src?X.PHOTO:this.iconName?X.ICON:this.initials?X.TEXT:this.counter||this.counter===0?X.COUNTER:X.ICON}getTemplateBasedOnType(e){switch(e){case X.PHOTO:return this.photoTemplate();case X.TEXT:case X.COUNTER:return this.generateTextContent(e);case X.ICON:default:return this.iconTemplate()}}getLoadingContent(){return this.isTyping?m`<div part="loading-wrapper"><div part="loader"></div></div>`:y}getPhotoPlaceHolderContent(e){return this.isPhotoLoaded?y:e===X.PHOTO?this.initials?this.textTemplate(this.generateInitialsText(this.initials)):this.iconTemplate():y}update(e){super.update(e),e.has("src")&&!this.src&&(this.isPhotoLoaded=!1)}render(){let e=this.getTypeBasedOnInputs();return m`
|
702
702
|
<div part="content" aria-hidden="true">
|
703
703
|
${this.getPhotoPlaceHolderContent(e)}
|
704
704
|
${this.getTemplateBasedOnType(e)}
|
705
705
|
${this.getLoadingContent()}
|
706
706
|
${this.getPresenceTemplateBasedOnType(e)}
|
707
707
|
</div>
|
708
|
-
`}};
|
708
|
+
`}};Sr.styles=[...g.styles,...As],l([M()],Sr.prototype,"isPhotoLoaded",2);var Ei=Sr;var Ac=[k,f`
|
709
709
|
:host {
|
710
710
|
--mdc-presence-active-background-color: var(--mds-color-theme-indicator-stable);
|
711
711
|
--mdc-presence-away-background-color: var(--mds-color-theme-indicator-locked);
|
@@ -799,7 +799,7 @@
|
|
799
799
|
.mdc-presence-icon__scheduled {
|
800
800
|
color: var(--mdc-presence-scheduled-background-color);
|
801
801
|
}
|
802
|
-
`],
|
802
|
+
`],Cs=Ac;var ks=i=>{switch(i){case q.AWAY:return"recents-presence-badge-filled";case q.AWAY_CALLING:return"away-calling-presence-filled";case q.BUSY:return"busy-presence-bold";case q.DND:return"dnd-presence-badge-filled";case q.MEETING:return"camera-filled";case q.ON_CALL:return"handset-filled";case q.ON_DEVICE:return"generic-device-video-badge-filled";case q.ON_MOBILE:return"phone-badge-filled";case q.PAUSE:return"pause-badge-filled";case q.PTO:return"pto-presence-filled";case q.PRESENTING:return"share-screen-badge-filled";case q.QUIET:return"quiet-hours-presence-filled";case q.SCHEDULED:return"meetings-presence-badge-filled";case q.ACTIVE:default:return"active-presence-small-filled"}};var ht=class extends g{constructor(){super(...arguments);this.type=Yt.TYPE;this.size=Yt.SIZE;this.currentIconType=Yt.TYPE}get iconSize(){switch(this.size){case H.MIDSIZE:return 1.16125;case H.LARGE:return 1.30625;case H.X_LARGE:return 1.596875;case H.XX_LARGE:return 2.25;case H.XX_SMALL:case H.X_SMALL:case H.SMALL:default:return this.size=Yt.SIZE,.875}}get icon(){let e=ks(this.type);return e==="active-presence-small-filled"&&(this.type=Yt.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 m`
|
803
803
|
<div class="mdc-presence mdc-presence__${this.size}">
|
804
804
|
<mdc-icon
|
805
805
|
class="mdc-presence-icon mdc-presence-icon__${this.currentIconType}"
|
@@ -809,7 +809,7 @@
|
|
809
809
|
@error="${this.handleOnError}"
|
810
810
|
></mdc-icon>
|
811
811
|
</div>
|
812
|
-
`}};
|
812
|
+
`}};ht.styles=[...g.styles,...Cs],l([c({type:String,reflect:!0})],ht.prototype,"type",2),l([c({type:String,reflect:!0})],ht.prototype,"size",2),l([M()],ht.prototype,"currentIconType",2);var Ti=ht;Ti.register(Ss);var Sc=Ti;Ei.register(Ts);var _c=Ei;var _r=b.constructTagName("button"),Je={PRIMARY:"primary",SECONDARY:"secondary",TERTIARY:"tertiary"},Ir={40:40,32:32,28:28,24:24},Ie={64:64,52:52,20:20,...Ir},go={POSITIVE:"positive",NEGATIVE:"negative",ACCENT:"accent",PROMOTIONAL:"promotional",DEFAULT:"default"},qt={PILL:"pill",ICON:"icon",PILL_WITH_ICON:"pill-with-icon"},we={VARIANT:Je.PRIMARY,SIZE:Ir[32],COLOR:go.DEFAULT,TYPE_INTERNAL:qt.ICON,TYPE:Ft.BUTTON};var Ic=[k,f`
|
813
813
|
:host {
|
814
814
|
--mdc-avatarbutton-overlay-background-color-rest: var(--mds-color-theme-avatar-ghost);
|
815
815
|
--mdc-avatarbutton-overlay-background-color-hover: var(--mds-color-theme-avatar-hover);
|
@@ -838,7 +838,7 @@
|
|
838
838
|
:host::part(presence) {
|
839
839
|
z-index: 2;
|
840
840
|
}
|
841
|
-
`,...N()],
|
841
|
+
`,...N()],Ls=Ic;var wr=class extends bo(Q(ce)){constructor(){super(...arguments);this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.active=void 0,this.disabled=void 0,this.softDisabled=void 0,this.role="button",this.type=we.TYPE}update(e){super.update(e),e.has("size")&&this.setSize(this.size)}setSize(e){this.setAttribute("size",Object.values(D).includes(e)?`${e}`:Wt.SIZE.toString())}render(){return m`
|
842
842
|
<div part="overlay" aria-hidden="true"></div>
|
843
843
|
<mdc-avatar
|
844
844
|
?is-typing="${this.isTyping}"
|
@@ -849,7 +849,7 @@
|
|
849
849
|
size="${A(this.size)}"
|
850
850
|
src="${A(this.src)}"
|
851
851
|
></mdc-avatar>
|
852
|
-
`}};
|
852
|
+
`}};wr.styles=[...Ls],l([c({type:String,attribute:"aria-label"})],wr.prototype,"ariaLabel",2);var Ai=wr;var Rs=b.constructTagName("avatarbutton");Ai.register(Rs);var wc=Ai;var vo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Cr=i=>(...t)=>({_$litDirective$:i,values:t}),Zt=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 Xt=Cr(class extends Zt{constructor(i){var t;if(super(i),i.type!==vo.ATTRIBUTE||i.name!=="class"||((t=i.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(i){return" "+Object.keys(i).filter(t=>i[t]).join(" ")+" "}update(i,[t]){var r,o;if(this.st===void 0){this.st=new Set,i.strings!==void 0&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter(a=>a!=="")));for(let a in t)t[a]&&!((r=this.nt)!=null&&r.has(a))&&this.st.add(a);return this.render(t)}let e=i.element.classList;for(let a of this.st)a in t||(e.remove(a),this.st.delete(a));for(let a in t){let s=!!t[a];s===this.st.has(a)||(o=this.nt)!=null&&o.has(a)||(s?(e.add(a),this.st.add(a)):(e.remove(a),this.st.delete(a)))}return Me}});var Ns=b.constructTagName("badge"),Pe={DOT:"dot",ICON:"icon",COUNTER:"counter",SUCCESS:"success",WARNING:"warning",ERROR:"error"},yo={SUCCESS_ICON_NAME:"check-circle-badge-filled",WARNING_ICON_NAME:"warning-badge-filled",ERROR_ICON_NAME:"error-legacy-badge-filled"},xo={PRIMARY:"primary",SECONDARY:"secondary"},kr={SUCCESS:"success",WARNING:"warning",ERROR:"error"},jb={...xo,...kr},et={TYPE:Pe.DOT,MAX_COUNTER:99,MAX_COUNTER_LIMIT:999,VARIANT:xo.PRIMARY,ICON_SIZE:1};var Cc=[k,f`
|
853
853
|
:host {
|
854
854
|
--mdc-badge-primary-foreground-color: var(--mds-color-theme-common-text-primary-normal);
|
855
855
|
--mdc-badge-primary-background-color: var(--mds-color-theme-background-accent-normal);
|
@@ -918,21 +918,21 @@
|
|
918
918
|
outline: 0.125rem solid;
|
919
919
|
}
|
920
920
|
}
|
921
|
-
`],
|
921
|
+
`],Os=Cc;var Ce=class extends Q(g){constructor(){super(...arguments);this.variant=et.VARIANT;this.maxCounter=et.MAX_COUNTER;this.overlay=!1;this.ariaLabel=null}getCounterText(e,r){return r===void 0||typeof r!="number"||e===0?"":r>e?`${e}+`:e>et.MAX_COUNTER_LIMIT||r>et.MAX_COUNTER_LIMIT?`${et.MAX_COUNTER_LIMIT}+`:r.toString()}getBadgeIcon(e,r){return m`
|
922
922
|
<mdc-icon
|
923
|
-
class="mdc-badge-icon ${Xt({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${
|
923
|
+
class="mdc-badge-icon ${Xt({"mdc-badge-overlay":this.overlay,[`mdc-badge-icon__${r}`]:!0})}"
|
924
924
|
name="${A(e)}"
|
925
|
-
size="${
|
925
|
+
size="${et.ICON_SIZE}"
|
926
926
|
></mdc-icon>
|
927
|
-
`}getBadgeDot(){return
|
927
|
+
`}getBadgeDot(){return m`<div class="mdc-badge-dot ${Xt({"mdc-badge-overlay":this.overlay})}"></div>`}getBadgeCounterText(){return m`
|
928
928
|
<mdc-text
|
929
|
-
type="${
|
930
|
-
tagname="${
|
929
|
+
type="${_.BODY_SMALL_MEDIUM}"
|
930
|
+
tagname="${C.DIV}"
|
931
931
|
class="mdc-badge-text ${Xt({"mdc-badge-overlay":this.overlay})}"
|
932
932
|
>
|
933
933
|
${this.getCounterText(this.maxCounter,this.counter)}
|
934
934
|
</mdc-text>
|
935
|
-
`}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(
|
935
|
+
`}setRoleByAriaLabel(){this.ariaLabel?this.role="img":this.role=null}getBadgeContentBasedOnType(){this.variant&&!Object.values(xo).includes(this.variant)&&(this.variant=et.VARIANT);let{iconName:e,type:r,variant:o}=this;switch(r){case Pe.ICON:return this.getBadgeIcon(e||"",o);case Pe.COUNTER:return this.getBadgeCounterText();case Pe.SUCCESS:return this.getBadgeIcon(yo.SUCCESS_ICON_NAME,kr.SUCCESS);case Pe.WARNING:return this.getBadgeIcon(yo.WARNING_ICON_NAME,kr.WARNING);case Pe.ERROR:return this.getBadgeIcon(yo.ERROR_ICON_NAME,kr.ERROR);case Pe.DOT:default:return this.type=Pe.DOT,this.getBadgeDot()}}update(e){super.update(e),e.has("ariaLabel")&&this.setRoleByAriaLabel()}render(){return this.getBadgeContentBasedOnType()}};Ce.styles=[...g.styles,...Os],l([c({type:String,reflect:!0})],Ce.prototype,"type",2),l([c({type:String,reflect:!0})],Ce.prototype,"variant",2),l([c({type:Number})],Ce.prototype,"counter",2),l([c({type:Number,attribute:"max-counter",reflect:!0})],Ce.prototype,"maxCounter",2),l([c({type:Boolean})],Ce.prototype,"overlay",2),l([c({type:String,attribute:"aria-label"})],Ce.prototype,"ariaLabel",2);var Si=Ce;Si.register(Ns);var kc=Si;var Lc=f`
|
936
936
|
:host {
|
937
937
|
display: block;
|
938
938
|
height: 100%;
|
@@ -941,7 +941,7 @@
|
|
941
941
|
height: 100%;
|
942
942
|
width: 100%;
|
943
943
|
}
|
944
|
-
`,
|
944
|
+
`,Ms=[Lc];var Ds=b.constructTagName("brandvisual"),$s={NAME:void 0};var jt=class extends g{constructor(){super(...arguments);this.name=$s.NAME}async getBrandVisualData(){return this.name?import(`@momentum-design/brand-visuals/dist/logos/ts/${this.name}.ts`).then(e=>{this.handleBrandVisualLoadedSuccess(e.default())}).catch(e=>{this.handleBrandVisualLoadedFailure(e)}):(this.handleBrandVisualLoadedFailure(new Error("No brandvisual name provided.")),Promise.reject(new Error("No brandvisual name provided.")))}updated(e){super.updated(e),e.has("name")&&this.getBrandVisualData().catch(r=>{this.onerror&&this.onerror(r)})}handleBrandVisualLoadedSuccess(e){this.brandVisualData=e;let r=new Event("load",{bubbles:!0,cancelable:!0});this.dispatchEvent(r)}handleBrandVisualLoadedFailure(e){let r=new CustomEvent("error",{bubbles:!0,cancelable:!0,detail:{error:e}});this.dispatchEvent(r)}render(){return m` ${this.brandVisualData} `}};jt.styles=[...g.styles,...Ms],l([M()],jt.prototype,"brandVisualData",2),l([c({type:String,reflect:!0})],jt.prototype,"name",2);var _i=jt;_i.register(Ds);var Rc=_i;var Nc=f`
|
945
945
|
:host {
|
946
946
|
--mdc-bullet-background-color: var(--mds-color-theme-outline-secondary-normal);
|
947
947
|
--mdc-bullet-size-small: 0.25rem;
|
@@ -962,7 +962,7 @@
|
|
962
962
|
:host([size="large"]) {
|
963
963
|
height: var(--mdc-bullet-size-large);
|
964
964
|
}
|
965
|
-
`,
|
965
|
+
`,zs=[Nc];var Ps=b.constructTagName("bullet"),Vs={SMALL:"small",MEDIUM:"medium",LARGE:"large"};var Lr=class extends g{constructor(){super(...arguments);this.size=Vs.SMALL}};Lr.styles=[...g.styles,...zs],l([c({type:String,reflect:!0})],Lr.prototype,"size",2);var Ii=Lr;Ii.register(Ps);var Oc=Ii;var Mc=f`
|
966
966
|
:host {
|
967
967
|
background-color: transparent;
|
968
968
|
border-radius: 1.25rem;
|
@@ -1134,8 +1134,8 @@
|
|
1134
1134
|
--mdc-button-secondary-hover-background-color: var(--mds-color-theme-button-secondary-hover);
|
1135
1135
|
--mdc-button-secondary-pressed-background-color: var(--mds-color-theme-button-secondary-pressed);
|
1136
1136
|
}
|
1137
|
-
`,
|
1138
|
-
${this.prefixIcon?
|
1137
|
+
`,Us=[Mc];var Fs=i=>{switch(i){case Ie[64]:return 2;case Ie[52]:return 1.75;case Ie[40]:return 1.25;default:return 1}},Rr=i=>{let t=i.split("-"),e=["bold","filled","regular","light"];return t.filter(r=>!e.includes(r)).join("-")};var de=class extends ce{constructor(){super(...arguments);this.variant=we.VARIANT;this.size=we.SIZE;this.color=we.COLOR;this.role="button";this.typeInternal=we.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=`${Rr(this.prefixIcon)}-filled`),this.postfixIcon&&(this.prevPostfixIcon=this.postfixIcon,this.postfixIcon=`${Rr(this.postfixIcon)}-filled`)):(this.prevPrefixIcon&&(this.prefixIcon=this.prevPrefixIcon),this.prevPostfixIcon&&(this.postfixIcon=this.prevPostfixIcon))}setVariant(e){this.setAttribute("variant",Object.values(Je).includes(e)?e:we.VARIANT)}setSize(e){let o=this.typeInternal===qt.ICON?Object.values(Ie).includes(e)&&!(e===Ie[20]&&this.variant!==Je.TERTIARY):Object.values(Ir).includes(e);this.setAttribute("size",o?`${e}`:`${we.SIZE}`),this.iconSize=Fs(e)}setColor(e){!Object.values(go).includes(e)||this.variant===Je.TERTIARY?this.setAttribute("color",`${we.COLOR}`):this.setAttribute("color",e)}inferButtonType(){var r,o;let e=(o=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"))==null?void 0:o.assignedNodes().filter(a=>{var s;return a.nodeType!==Node.TEXT_NODE||((s=a.textContent)==null?void 0:s.trim())}).length;e&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=qt.PILL_WITH_ICON,this.setAttribute("data-btn-type","pill-with-icon")):!e&&(this.prefixIcon||this.postfixIcon)?(this.typeInternal=qt.ICON,this.setAttribute("data-btn-type","icon")):(this.typeInternal=qt.PILL,this.setAttribute("data-btn-type","pill"))}render(){return m`
|
1138
|
+
${this.prefixIcon?m` <mdc-icon
|
1139
1139
|
name="${this.prefixIcon}"
|
1140
1140
|
part="prefix-icon"
|
1141
1141
|
size=${this.iconSize}
|
@@ -1143,14 +1143,14 @@
|
|
1143
1143
|
>
|
1144
1144
|
</mdc-icon>`:""}
|
1145
1145
|
<slot @slotchange=${this.inferButtonType}></slot>
|
1146
|
-
${this.postfixIcon?
|
1146
|
+
${this.postfixIcon?m` <mdc-icon
|
1147
1147
|
name="${this.postfixIcon}"
|
1148
1148
|
part="postfix-icon"
|
1149
1149
|
size=${this.iconSize}
|
1150
1150
|
length-unit="rem"
|
1151
1151
|
>
|
1152
1152
|
</mdc-icon>`:""}
|
1153
|
-
`}};
|
1153
|
+
`}};de.styles=[...ce.styles,...Us],l([c({type:String,attribute:"prefix-icon",reflect:!0})],de.prototype,"prefixIcon",2),l([c({type:String,attribute:"postfix-icon",reflect:!0})],de.prototype,"postfixIcon",2),l([c({type:String})],de.prototype,"variant",2),l([c({type:Number})],de.prototype,"size",2),l([c({type:String})],de.prototype,"color",2),l([c({type:String,reflect:!0})],de.prototype,"role",2),l([M()],de.prototype,"typeInternal",2),l([M()],de.prototype,"iconSize",2);var Nr=de;Nr.register(_r);var Dc=Nr;var P=i=>{class t extends i{constructor(){super(...arguments);this.dataAriaLabel=null}}return l([c({type:String,reflect:!0,attribute:"data-aria-label"})],t.prototype,"dataAriaLabel",2),t};var W=[];for(let i=0;i<256;++i)W.push((i+256).toString(16).slice(1));function Bs(i,t=0){return(W[i[t+0]]+W[i[t+1]]+W[i[t+2]]+W[i[t+3]]+"-"+W[i[t+4]]+W[i[t+5]]+"-"+W[i[t+6]]+W[i[t+7]]+"-"+W[i[t+8]]+W[i[t+9]]+"-"+W[i[t+10]]+W[i[t+11]]+W[i[t+12]]+W[i[t+13]]+W[i[t+14]]+W[i[t+15]]).toLowerCase()}var wi,$c=new Uint8Array(16);function Ci(){if(!wi){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");wi=crypto.getRandomValues.bind(crypto)}return wi($c)}var zc=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ki={randomUUID:zc};function Pc(i,t,e){var o,a,s;if(ki.randomUUID&&!t&&!i)return ki.randomUUID();i=i||{};let r=(s=(a=i.random)!=null?a:(o=i.rng)==null?void 0:o.call(i))!=null?s:Ci();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 n=0;n<16;++n)t[e+n]=r[n];return t}return Bs(r)}var Ve=Pc;var J=i=>{class t extends i{constructor(...o){super(o);this.name="";this.value="";this.internals=this.attachInternals(),this.id=`mdc-input-${Ve()}`}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([c({reflect:!0,type:String})],t.prototype,"name",2),l([c({reflect:!0,type:String})],t.prototype,"value",2),l([c({reflect:!0,type:String,attribute:"validation-message"})],t.prototype,"validationMessage",2),l([$e("input")],t.prototype,"inputElement",2),t};var Hs=b.constructTagName("formfieldwrapper"),G={DEFAULT:"default",ERROR:"error",PRIORITY:"priority",SUCCESS:"success",WARNING:"warning"},V={VALIDATION:G.DEFAULT,HELPER_TEXT_ID:"helper-text-id",HEADING_ID:"heading-id"},ut={TAGNAME:C.SPAN,TYPE:_.BODY_MIDSIZE_REGULAR,HEADER_TYPE:_.BODY_MIDSIZE_BOLD};var Vc=[k,f`
|
1154
1154
|
:host {
|
1155
1155
|
flex-direction: column;
|
1156
1156
|
align-items: flex-start;
|
@@ -1199,33 +1199,33 @@
|
|
1199
1199
|
:host([help-text-type='priority']) .mdc-help-text {
|
1200
1200
|
color: var(--mds-color-theme-text-accent-normal);
|
1201
1201
|
}
|
1202
|
-
`],
|
1202
|
+
`],Gs=Vc;var Ws=i=>({[G.ERROR]:"error-legacy-badge-filled",[G.WARNING]:"warning-badge-filled",[G.SUCCESS]:"check-circle-badge-filled",[G.PRIORITY]:"priority-badge-filled",[G.DEFAULT]:""})[i]||"";var Ue=class extends le(g){constructor(){super(...arguments);this.id="";this.helpTextType=V.VALIDATION;this.shouldRenderLabel=!0}renderLabelElement(){return this.label?this.shouldRenderLabel?m`<label for="${this.id}" id="${V.HEADING_ID}" class="mdc-label" part="label">${this.label}</label>`:m` <mdc-text
|
1203
1203
|
id="${V.HEADING_ID}"
|
1204
|
-
tagname="${
|
1205
|
-
type="${
|
1204
|
+
tagname="${ut.TAGNAME}"
|
1205
|
+
type="${ut.HEADER_TYPE}"
|
1206
1206
|
part="label"
|
1207
1207
|
>${this.label}</mdc-text
|
1208
|
-
>`:y}renderRequiredLabel(){return this.requiredLabel?
|
1209
|
-
<mdc-text part="required-label" tagname=${
|
1208
|
+
>`:y}renderRequiredLabel(){return this.requiredLabel?m`
|
1209
|
+
<mdc-text part="required-label" tagname=${ut.TAGNAME} type=${ut.TYPE}>
|
1210
1210
|
(${this.requiredLabel})
|
1211
1211
|
</mdc-text>
|
1212
|
-
`:y}renderHelpTextIcon(){if(!this.helpText)return y;let e=
|
1212
|
+
`:y}renderHelpTextIcon(){if(!this.helpText)return y;let e=Ws(this.helpTextType||V.VALIDATION);return e&&!this.disabled?m`<mdc-icon part="helper-icon" size="1" length-unit="rem" name=${e}></mdc-icon>`:y}renderHelpText(){return this.helpText?m`
|
1213
1213
|
<mdc-text
|
1214
1214
|
id="${V.HELPER_TEXT_ID}"
|
1215
1215
|
part="help-text"
|
1216
|
-
tagname=${
|
1217
|
-
type=${
|
1216
|
+
tagname=${ut.TAGNAME}
|
1217
|
+
type=${ut.TYPE}
|
1218
1218
|
>
|
1219
1219
|
${this.helpText}
|
1220
1220
|
</mdc-text>
|
1221
|
-
`:y}renderLabel(){return this.label?
|
1221
|
+
`:y}renderLabel(){return this.label?m`<div class="mdc-label-text" part="label-text">
|
1222
1222
|
<slot name="label">${this.renderLabelElement()}</slot>
|
1223
1223
|
<slot name="required-label">${this.renderRequiredLabel()}</slot>
|
1224
1224
|
<slot name="label-info"></slot>
|
1225
|
-
</div>`:y}renderHelperText(){return this.helpText?
|
1225
|
+
</div>`:y}renderHelperText(){return this.helpText?m`<div class="mdc-help-text" part="mdc-help-text">
|
1226
1226
|
<slot name="help-icon">${this.renderHelpTextIcon()}</slot>
|
1227
1227
|
<slot name="help-text">${this.renderHelpText()}</slot>
|
1228
|
-
</div>`:y}};
|
1228
|
+
</div>`:y}};Ue.styles=[...g.styles,...Gs],l([c({reflect:!0,type:String})],Ue.prototype,"label",2),l([c({type:String,reflect:!0,attribute:"required-label"})],Ue.prototype,"requiredLabel",2),l([c({type:String})],Ue.prototype,"id",2),l([c({reflect:!0,attribute:"help-text-type"})],Ue.prototype,"helpTextType",2),l([c({type:String,reflect:!0,attribute:"help-text"})],Ue.prototype,"helpText",2);var j=Ue;var Ys=b.constructTagName("checkbox"),Li={CHECKED:"check-bold",INDETERMINATE:"minus-bold"};var Uc=[f`
|
1229
1229
|
:host {
|
1230
1230
|
--mdc-checkbox-background-color-hover: var(--mds-color-theme-control-inactive-hover);
|
1231
1231
|
--mdc-checkbox-border-color: var(--mds-color-theme-outline-button-normal);
|
@@ -1329,17 +1329,17 @@
|
|
1329
1329
|
border: 0.0625rem solid var(--mdc-checkbox-border-color);
|
1330
1330
|
}
|
1331
1331
|
}
|
1332
|
-
`,...N(!0)],
|
1332
|
+
`,...N(!0)],qs=Uc;var ft=class extends J(P(j)){constructor(){super(...arguments);this.checked=!1;this.indeterminate=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?m`<div class="text-container">
|
1333
1333
|
${this.renderLabel()}
|
1334
1334
|
${this.renderHelperText()}
|
1335
|
-
</div>`:y}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}setFormValue(){let e=null;this.checked?e=this.value?this.value:"on":e=null,this.manageRequired(),this.internals.setFormValue(e)}manageRequired(){!this.checked&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.checked=!1,this.indeterminate=!1}formStateRestoreCallback(e){e&&(this.checked=!0)}toggleState(){this.disabled||(this.checked=!this.checked,this.indeterminate=!1)}handleKeyDown(e){var
|
1335
|
+
</div>`:y}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}setFormValue(){let e=null;this.checked?e=this.value?this.value:"on":e=null,this.manageRequired(),this.internals.setFormValue(e)}manageRequired(){!this.checked&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.checked=!1,this.indeterminate=!1}formStateRestoreCallback(e){e&&(this.checked=!0)}toggleState(){this.disabled||(this.checked=!this.checked,this.indeterminate=!1)}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}handleChange(e){this.toggleState();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}update(e){super.update(e),e.has("checked")&&this.setFormValue()}render(){var r;let e=this.checked||this.indeterminate?m`
|
1336
1336
|
<mdc-icon
|
1337
1337
|
class="icon"
|
1338
|
-
name="${this.indeterminate?
|
1338
|
+
name="${this.indeterminate?Li.INDETERMINATE:Li.CHECKED}"
|
1339
1339
|
size="1"
|
1340
1340
|
length-unit="rem"
|
1341
1341
|
></mdc-icon>
|
1342
|
-
`:y;return
|
1342
|
+
`:y;return m`
|
1343
1343
|
<div class="container mdc-focus-ring">
|
1344
1344
|
<input
|
1345
1345
|
id="${this.id}"
|
@@ -1353,7 +1353,7 @@
|
|
1353
1353
|
aria-checked="${this.indeterminate?"mixed":this.checked}"
|
1354
1354
|
.indeterminate="${this.indeterminate}"
|
1355
1355
|
.disabled="${this.disabled}"
|
1356
|
-
aria-label="${(
|
1356
|
+
aria-label="${(r=this.dataAriaLabel)!=null?r:""}"
|
1357
1357
|
tabindex="${this.disabled?-1:0}"
|
1358
1358
|
aria-describedby="${A(this.helpText?V.HELPER_TEXT_ID:"")}"
|
1359
1359
|
@change=${this.handleChange}
|
@@ -1362,7 +1362,7 @@
|
|
1362
1362
|
<div class="icon-container">${e}</div>
|
1363
1363
|
</div>
|
1364
1364
|
${this.renderLabelAndHelperText()}
|
1365
|
-
`}};
|
1365
|
+
`}};ft.styles=[...j.styles,...qs],l([c({type:Boolean,reflect:!0})],ft.prototype,"checked",2),l([c({type:Boolean,reflect:!0})],ft.prototype,"indeterminate",2),l([c({type:Boolean,reflect:!0})],ft.prototype,"autofocus",2);var Ri=ft;Ri.register(Ys);var Fc=Ri;var Bc=f`
|
1366
1366
|
:host {
|
1367
1367
|
height: 1.5rem;
|
1368
1368
|
gap: 0.25rem;
|
@@ -1499,15 +1499,15 @@
|
|
1499
1499
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
1500
1500
|
cursor: auto;
|
1501
1501
|
}
|
1502
|
-
`,
|
1502
|
+
`,Zs=[k,Bc,...N()];var Xs=b.constructTagName("chip"),Hc={DEFAULT:"default",COBALT:"cobalt",GOLD:"gold",LIME:"lime",MINT:"mint",PINK:"pink",PURPLE:"purple",SLATE:"slate",VIOLET:"violet"},Kt={COLOR:Hc.DEFAULT,TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,TAG_NAME:C.SPAN,SIZE:xr[24],ROLE:"button"};var Qt=class extends Q(ce){constructor(){super(...arguments);this.color=Kt.COLOR;this.label=""}connectedCallback(){super.connectedCallback(),this.role=Kt.ROLE,this.size=Kt.SIZE,this.active=void 0,this.softDisabled=void 0}renderIcon(){return this.iconName?m`
|
1503
1503
|
<mdc-icon
|
1504
1504
|
name="${this.iconName}"
|
1505
1505
|
length-unit="rem"
|
1506
1506
|
size="1"></mdc-icon>
|
1507
|
-
`:y}render(){return
|
1507
|
+
`:y}render(){return m`
|
1508
1508
|
${this.renderIcon()}
|
1509
|
-
<mdc-text type="${
|
1510
|
-
`}};Kt.styles=[...g.styles,...Hs],l([c({type:String,reflect:!0})],Kt.prototype,"color",2),l([c({type:String})],Kt.prototype,"label",2);var Qt=Kt;Qt.register(Gs);var Mc=Qt;var ke=Math.min,j=Math.max,Or=Math.round,Mr=Math.floor,ve=i=>({x:i,y:i}),Dc={left:"right",right:"left",bottom:"top",top:"bottom"},$c={start:"end",end:"start"};function xo(i,r,e){return j(i,ke(r,e))}function ft(i,r){return typeof i=="function"?i(r):i}function Ue(i){return i.split("-")[0]}function bt(i){return i.split("-")[1]}function Ci(i){return i==="x"?"y":"x"}function Eo(i){return i==="y"?"height":"width"}function et(i){return["top","bottom"].includes(Ue(i))?"y":"x"}function To(i){return Ci(et(i))}function Ws(i,r,e){e===void 0&&(e=!1);let t=bt(i),o=To(i),a=Eo(o),s=o==="x"?t===(e?"end":"start")?"right":"left":t==="start"?"bottom":"top";return r.reference[a]>r.floating[a]&&(s=Nr(s)),[s,Nr(s)]}function Ys(i){let r=Nr(i);return[yo(i),r,yo(r)]}function yo(i){return i.replace(/start|end/g,r=>$c[r])}function zc(i,r,e){let t=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(i){case"top":case"bottom":return e?r?o:t:r?t:o;case"left":case"right":return r?a:s;default:return[]}}function qs(i,r,e,t){let o=bt(i),a=zc(Ue(i),e==="start",t);return o&&(a=a.map(s=>s+"-"+o),r&&(a=a.concat(a.map(yo)))),a}function Nr(i){return i.replace(/left|right|bottom|top/g,r=>Dc[r])}function Pc(i){return{top:0,right:0,bottom:0,left:0,...i}}function Li(i){return typeof i!="number"?Pc(i):{top:i,right:i,bottom:i,left:i}}function vt(i){let{x:r,y:e,width:t,height:o}=i;return{width:t,height:o,top:e,left:r,right:r+t,bottom:e+o,x:r,y:e}}function Xs(i,r,e){let{reference:t,floating:o}=i,a=et(r),s=To(r),n=Eo(s),d=Ue(r),m=a==="y",h=t.x+t.width/2-o.width/2,u=t.y+t.height/2-o.height/2,x=t[n]/2-o[n]/2,v;switch(d){case"top":v={x:h,y:t.y-o.height};break;case"bottom":v={x:h,y:t.y+t.height};break;case"right":v={x:t.x+t.width,y:u};break;case"left":v={x:t.x-o.width,y:u};break;default:v={x:t.x,y:t.y}}switch(bt(r)){case"start":v[s]-=x*(e&&m?-1:1);break;case"end":v[s]+=x*(e&&m?-1:1);break}return v}var Zs=async(i,r,e)=>{let{placement:t="bottom",strategy:o="absolute",middleware:a=[],platform:s}=e,n=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(r)),m=await s.getElementRects({reference:i,floating:r,strategy:o}),{x:h,y:u}=Xs(m,t,d),x=t,v={},E=0;for(let T=0;T<n.length;T++){let{name:_,fn:S}=n[T],{x:I,y:R,data:F,reset:z}=await S({x:h,y:u,initialPlacement:t,placement:x,strategy:o,middlewareData:v,rects:m,platform:s,elements:{reference:i,floating:r}});h=I!=null?I:h,u=R!=null?R:u,v={...v,[_]:{...v[_],...F}},z&&E<=50&&(E++,typeof z=="object"&&(z.placement&&(x=z.placement),z.rects&&(m=z.rects===!0?await s.getElementRects({reference:i,floating:r,strategy:o}):z.rects),{x:h,y:u}=Xs(m,x,d)),T=-1)}return{x:h,y:u,placement:x,strategy:o,middlewareData:v}};async function Ao(i,r){var e;r===void 0&&(r={});let{x:t,y:o,platform:a,rects:s,elements:n,strategy:d}=i,{boundary:m="clippingAncestors",rootBoundary:h="viewport",elementContext:u="floating",altBoundary:x=!1,padding:v=0}=ft(r,i),E=Li(v),_=n[x?u==="floating"?"reference":"floating":u],S=vt(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(_)))==null||e?_:_.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(n.floating)),boundary:m,rootBoundary:h,strategy:d})),I=u==="floating"?{x:t,y:o,width:s.floating.width,height:s.floating.height}:s.reference,R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(n.floating)),F=await(a.isElement==null?void 0:a.isElement(R))?await(a.getScale==null?void 0:a.getScale(R))||{x:1,y:1}:{x:1,y:1},z=vt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:n,rect:I,offsetParent:R,strategy:d}):I);return{top:(S.top-z.top+E.top)/F.y,bottom:(z.bottom-S.bottom+E.bottom)/F.y,left:(S.left-z.left+E.left)/F.x,right:(z.right-S.right+E.right)/F.x}}var js=i=>({name:"arrow",options:i,async fn(r){let{x:e,y:t,placement:o,rects:a,platform:s,elements:n,middlewareData:d}=r,{element:m,padding:h=0}=ft(i,r)||{};if(m==null)return{};let u=Li(h),x={x:e,y:t},v=To(o),E=Eo(v),T=await s.getDimensions(m),_=v==="y",S=_?"top":"left",I=_?"bottom":"right",R=_?"clientHeight":"clientWidth",F=a.reference[E]+a.reference[v]-x[v]-a.floating[E],z=x[v]-a.reference[v],se=await(s.getOffsetParent==null?void 0:s.getOffsetParent(m)),fe=se?se[R]:0;(!fe||!await(s.isElement==null?void 0:s.isElement(se)))&&(fe=n.floating[R]||a.floating[E]);let Ce=F/2-z/2,xe=fe/2-T[E]/2-1,be=ke(u[S],xe),We=ke(u[I],xe),Ee=be,Ye=fe-T[E]-We,q=fe/2-T[E]/2+Ce,Dt=xo(Ee,q,Ye),Le=!d.arrow&&bt(o)!=null&&q!==Dt&&a.reference[E]/2-(q<Ee?be:We)-T[E]/2<0,Te=Le?q<Ee?q-Ee:q-Ye:0;return{[v]:x[v]+Te,data:{[v]:Dt,centerOffset:q-Dt-Te,...Le&&{alignmentOffset:Te}},reset:Le}}});var Ks=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(r){var e,t;let{placement:o,middlewareData:a,rects:s,initialPlacement:n,platform:d,elements:m}=r,{mainAxis:h=!0,crossAxis:u=!0,fallbackPlacements:x,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:T=!0,..._}=ft(i,r);if((e=a.arrow)!=null&&e.alignmentOffset)return{};let S=Ue(o),I=et(n),R=Ue(n)===n,F=await(d.isRTL==null?void 0:d.isRTL(m.floating)),z=x||(R||!T?[Nr(n)]:Ys(n)),se=E!=="none";!x&&se&&z.push(...qs(n,T,E,F));let fe=[n,...z],Ce=await Ao(r,_),xe=[],be=((t=a.flip)==null?void 0:t.overflows)||[];if(h&&xe.push(Ce[S]),u){let q=Ws(o,s,F);xe.push(Ce[q[0]],Ce[q[1]])}if(be=[...be,{placement:o,overflows:xe}],!xe.every(q=>q<=0)){var We,Ee;let q=(((We=a.flip)==null?void 0:We.index)||0)+1,Dt=fe[q];if(Dt)return{data:{index:q,overflows:be},reset:{placement:Dt}};let Le=(Ee=be.filter(Te=>Te.overflows[0]<=0).sort((Te,qe)=>Te.overflows[1]-qe.overflows[1])[0])==null?void 0:Ee.placement;if(!Le)switch(v){case"bestFit":{var Ye;let Te=(Ye=be.filter(qe=>{if(se){let Xe=et(qe.placement);return Xe===I||Xe==="y"}return!0}).map(qe=>[qe.placement,qe.overflows.filter(Xe=>Xe>0).reduce((Xe,$l)=>Xe+$l,0)]).sort((qe,Xe)=>qe[1]-Xe[1])[0])==null?void 0:Ye[0];Te&&(Le=Te);break}case"initialPlacement":Le=n;break}if(o!==Le)return{reset:{placement:Le}}}return{}}}};async function Vc(i,r){let{placement:e,platform:t,elements:o}=i,a=await(t.isRTL==null?void 0:t.isRTL(o.floating)),s=Ue(e),n=bt(e),d=et(e)==="y",m=["left","top"].includes(s)?-1:1,h=a&&d?-1:1,u=ft(r,i),{mainAxis:x,crossAxis:v,alignmentAxis:E}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return n&&typeof E=="number"&&(v=n==="end"?E*-1:E),d?{x:v*h,y:x*m}:{x:x*m,y:v*h}}var Qs=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(r){var e,t;let{x:o,y:a,placement:s,middlewareData:n}=r,d=await Vc(r,i);return s===((e=n.offset)==null?void 0:e.placement)&&(t=n.arrow)!=null&&t.alignmentOffset?{}:{x:o+d.x,y:a+d.y,data:{...d,placement:s}}}}},Js=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(r){let{x:e,y:t,placement:o}=r,{mainAxis:a=!0,crossAxis:s=!1,limiter:n={fn:_=>{let{x:S,y:I}=_;return{x:S,y:I}}},...d}=ft(i,r),m={x:e,y:t},h=await Ao(r,d),u=et(Ue(o)),x=Ci(u),v=m[x],E=m[u];if(a){let _=x==="y"?"top":"left",S=x==="y"?"bottom":"right",I=v+h[_],R=v-h[S];v=xo(I,v,R)}if(s){let _=u==="y"?"top":"left",S=u==="y"?"bottom":"right",I=E+h[_],R=E-h[S];E=xo(I,E,R)}let T=n.fn({...r,[x]:v,[u]:E});return{...T,data:{x:T.x-e,y:T.y-t,enabled:{[x]:a,[u]:s}}}}}};var en=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(r){var e,t;let{placement:o,rects:a,platform:s,elements:n}=r,{apply:d=()=>{},...m}=ft(i,r),h=await Ao(r,m),u=Ue(o),x=bt(o),v=et(o)==="y",{width:E,height:T}=a.floating,_,S;u==="top"||u==="bottom"?(_=u,S=x===(await(s.isRTL==null?void 0:s.isRTL(n.floating))?"start":"end")?"left":"right"):(S=u,_=x==="end"?"top":"bottom");let I=T-h.top-h.bottom,R=E-h.left-h.right,F=ke(T-h[_],I),z=ke(E-h[S],R),se=!r.middlewareData.shift,fe=F,Ce=z;if((e=r.middlewareData.shift)!=null&&e.enabled.x&&(Ce=R),(t=r.middlewareData.shift)!=null&&t.enabled.y&&(fe=I),se&&!x){let be=j(h.left,0),We=j(h.right,0),Ee=j(h.top,0),Ye=j(h.bottom,0);v?Ce=E-2*(be!==0||We!==0?be+We:j(h.left,h.right)):fe=T-2*(Ee!==0||Ye!==0?Ee+Ye:j(h.top,h.bottom))}await d({...r,availableWidth:Ce,availableHeight:fe});let xe=await s.getDimensions(n.floating);return E!==xe.width||T!==xe.height?{reset:{rects:!0}}:{}}}};function So(){return typeof window<"u"}function gt(i){return rn(i)?(i.nodeName||"").toLowerCase():"#document"}function J(i){var r;return(i==null||(r=i.ownerDocument)==null?void 0:r.defaultView)||window}function ge(i){var r;return(r=(rn(i)?i.ownerDocument:i.document)||window.document)==null?void 0:r.documentElement}function rn(i){return So()?i instanceof Node||i instanceof J(i).Node:!1}function de(i){return So()?i instanceof Element||i instanceof J(i).Element:!1}function ye(i){return So()?i instanceof HTMLElement||i instanceof J(i).HTMLElement:!1}function tn(i){return!So()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof J(i).ShadowRoot}function er(i){let{overflow:r,overflowX:e,overflowY:t,display:o}=me(i);return/auto|scroll|overlay|hidden|clip/.test(r+t+e)&&!["inline","contents"].includes(o)}function on(i){return["table","td","th"].includes(gt(i))}function Dr(i){return[":popover-open",":modal"].some(r=>{try{return i.matches(r)}catch{return!1}})}function wo(i){let r=_o(),e=de(i)?me(i):i;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!r&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!r&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(t=>(e.willChange||"").includes(t))||["paint","layout","strict","content"].some(t=>(e.contain||"").includes(t))}function an(i){let r=Fe(i);for(;ye(r)&&!yt(r);){if(wo(r))return r;if(Dr(r))return null;r=Fe(r)}return null}function _o(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function yt(i){return["html","body","#document"].includes(gt(i))}function me(i){return J(i).getComputedStyle(i)}function $r(i){return de(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function Fe(i){if(gt(i)==="html")return i;let r=i.assignedSlot||i.parentNode||tn(i)&&i.host||ge(i);return tn(r)?r.host:r}function sn(i){let r=Fe(i);return yt(r)?i.ownerDocument?i.ownerDocument.body:i.body:ye(r)&&er(r)?r:sn(r)}function Jt(i,r,e){var t;r===void 0&&(r=[]),e===void 0&&(e=!0);let o=sn(i),a=o===((t=i.ownerDocument)==null?void 0:t.body),s=J(o);if(a){let n=Io(s);return r.concat(s,s.visualViewport||[],er(o)?o:[],n&&e?Jt(n):[])}return r.concat(o,Jt(o,[],e))}function Io(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function cn(i){let r=me(i),e=parseFloat(r.width)||0,t=parseFloat(r.height)||0,o=ye(i),a=o?i.offsetWidth:e,s=o?i.offsetHeight:t,n=Or(e)!==a||Or(t)!==s;return n&&(e=a,t=s),{width:e,height:t,$:n}}function Ni(i){return de(i)?i:i.contextElement}function tr(i){let r=Ni(i);if(!ye(r))return ve(1);let e=r.getBoundingClientRect(),{width:t,height:o,$:a}=cn(r),s=(a?Or(e.width):e.width)/t,n=(a?Or(e.height):e.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!n||!Number.isFinite(n))&&(n=1),{x:s,y:n}}var Uc=ve(0);function dn(i){let r=J(i);return!_o()||!r.visualViewport?Uc:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function Fc(i,r,e){return r===void 0&&(r=!1),!e||r&&e!==J(i)?!1:r}function xt(i,r,e,t){r===void 0&&(r=!1),e===void 0&&(e=!1);let o=i.getBoundingClientRect(),a=Ni(i),s=ve(1);r&&(t?de(t)&&(s=tr(t)):s=tr(i));let n=Fc(a,e,t)?dn(a):ve(0),d=(o.left+n.x)/s.x,m=(o.top+n.y)/s.y,h=o.width/s.x,u=o.height/s.y;if(a){let x=J(a),v=t&&de(t)?J(t):t,E=x,T=Io(E);for(;T&&t&&v!==E;){let _=tr(T),S=T.getBoundingClientRect(),I=me(T),R=S.left+(T.clientLeft+parseFloat(I.paddingLeft))*_.x,F=S.top+(T.clientTop+parseFloat(I.paddingTop))*_.y;d*=_.x,m*=_.y,h*=_.x,u*=_.y,d+=R,m+=F,E=J(T),T=Io(E)}}return vt({width:h,height:u,x:d,y:m})}function Oi(i,r){let e=$r(i).scrollLeft;return r?r.left+e:xt(ge(i)).left+e}function mn(i,r,e){e===void 0&&(e=!1);let t=i.getBoundingClientRect(),o=t.left+r.scrollLeft-(e?0:Oi(i,t)),a=t.top+r.scrollTop;return{x:o,y:a}}function Bc(i){let{elements:r,rect:e,offsetParent:t,strategy:o}=i,a=o==="fixed",s=ge(t),n=r?Dr(r.floating):!1;if(t===s||n&&a)return e;let d={scrollLeft:0,scrollTop:0},m=ve(1),h=ve(0),u=ye(t);if((u||!u&&!a)&&((gt(t)!=="body"||er(s))&&(d=$r(t)),ye(t))){let v=xt(t);m=tr(t),h.x=v.x+t.clientLeft,h.y=v.y+t.clientTop}let x=s&&!u&&!a?mn(s,d,!0):ve(0);return{width:e.width*m.x,height:e.height*m.y,x:e.x*m.x-d.scrollLeft*m.x+h.x+x.x,y:e.y*m.y-d.scrollTop*m.y+h.y+x.y}}function Hc(i){return Array.from(i.getClientRects())}function Gc(i){let r=ge(i),e=$r(i),t=i.ownerDocument.body,o=j(r.scrollWidth,r.clientWidth,t.scrollWidth,t.clientWidth),a=j(r.scrollHeight,r.clientHeight,t.scrollHeight,t.clientHeight),s=-e.scrollLeft+Oi(i),n=-e.scrollTop;return me(t).direction==="rtl"&&(s+=j(r.clientWidth,t.clientWidth)-o),{width:o,height:a,x:s,y:n}}function Wc(i,r){let e=J(i),t=ge(i),o=e.visualViewport,a=t.clientWidth,s=t.clientHeight,n=0,d=0;if(o){a=o.width,s=o.height;let m=_o();(!m||m&&r==="fixed")&&(n=o.offsetLeft,d=o.offsetTop)}return{width:a,height:s,x:n,y:d}}function Yc(i,r){let e=xt(i,!0,r==="fixed"),t=e.top+i.clientTop,o=e.left+i.clientLeft,a=ye(i)?tr(i):ve(1),s=i.clientWidth*a.x,n=i.clientHeight*a.y,d=o*a.x,m=t*a.y;return{width:s,height:n,x:d,y:m}}function nn(i,r,e){let t;if(r==="viewport")t=Wc(i,e);else if(r==="document")t=Gc(ge(i));else if(de(r))t=Yc(r,e);else{let o=dn(i);t={x:r.x-o.x,y:r.y-o.y,width:r.width,height:r.height}}return vt(t)}function pn(i,r){let e=Fe(i);return e===r||!de(e)||yt(e)?!1:me(e).position==="fixed"||pn(e,r)}function qc(i,r){let e=r.get(i);if(e)return e;let t=Jt(i,[],!1).filter(n=>de(n)&>(n)!=="body"),o=null,a=me(i).position==="fixed",s=a?Fe(i):i;for(;de(s)&&!yt(s);){let n=me(s),d=wo(s);!d&&n.position==="fixed"&&(o=null),(a?!d&&!o:!d&&n.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||er(s)&&!d&&pn(i,s))?t=t.filter(h=>h!==s):o=n,s=Fe(s)}return r.set(i,t),t}function Xc(i){let{element:r,boundary:e,rootBoundary:t,strategy:o}=i,s=[...e==="clippingAncestors"?Dr(r)?[]:qc(r,this._c):[].concat(e),t],n=s[0],d=s.reduce((m,h)=>{let u=nn(r,h,o);return m.top=j(u.top,m.top),m.right=ke(u.right,m.right),m.bottom=ke(u.bottom,m.bottom),m.left=j(u.left,m.left),m},nn(r,n,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Zc(i){let{width:r,height:e}=cn(i);return{width:r,height:e}}function jc(i,r,e){let t=ye(r),o=ge(r),a=e==="fixed",s=xt(i,!0,a,r),n={scrollLeft:0,scrollTop:0},d=ve(0);if(t||!t&&!a)if((gt(r)!=="body"||er(o))&&(n=$r(r)),t){let x=xt(r,!0,a,r);d.x=x.x+r.clientLeft,d.y=x.y+r.clientTop}else o&&(d.x=Oi(o));let m=o&&!t&&!a?mn(o,n):ve(0),h=s.left+n.scrollLeft-d.x-m.x,u=s.top+n.scrollTop-d.y-m.y;return{x:h,y:u,width:s.width,height:s.height}}function Ri(i){return me(i).position==="static"}function ln(i,r){if(!ye(i)||me(i).position==="fixed")return null;if(r)return r(i);let e=i.offsetParent;return ge(i)===e&&(e=e.ownerDocument.body),e}function hn(i,r){let e=J(i);if(Dr(i))return e;if(!ye(i)){let o=Fe(i);for(;o&&!yt(o);){if(de(o)&&!Ri(o))return o;o=Fe(o)}return e}let t=ln(i,r);for(;t&&on(t)&&Ri(t);)t=ln(t,r);return t&&yt(t)&&Ri(t)&&!wo(t)?e:t||an(i)||e}var Kc=async function(i){let r=this.getOffsetParent||hn,e=this.getDimensions,t=await e(i.floating);return{reference:jc(i.reference,await r(i.floating),i.strategy),floating:{x:0,y:0,width:t.width,height:t.height}}};function Qc(i){return me(i).direction==="rtl"}var Jc={convertOffsetParentRelativeRectToViewportRelativeRect:Bc,getDocumentElement:ge,getClippingRect:Xc,getOffsetParent:hn,getElementRects:Kc,getClientRects:Hc,getDimensions:Zc,getScale:tr,isElement:de,isRTL:Qc};function ed(i,r){let e=null,t,o=ge(i);function a(){var n;clearTimeout(t),(n=e)==null||n.disconnect(),e=null}function s(n,d){n===void 0&&(n=!1),d===void 0&&(d=1),a();let{left:m,top:h,width:u,height:x}=i.getBoundingClientRect();if(n||r(),!u||!x)return;let v=Mr(h),E=Mr(o.clientWidth-(m+u)),T=Mr(o.clientHeight-(h+x)),_=Mr(m),I={rootMargin:-v+"px "+-E+"px "+-T+"px "+-_+"px",threshold:j(0,ke(1,d))||1},R=!0;function F(z){let se=z[0].intersectionRatio;if(se!==d){if(!R)return s();se?s(!1,se):t=setTimeout(()=>{s(!1,1e-7)},1e3)}R=!1}try{e=new IntersectionObserver(F,{...I,root:o.ownerDocument})}catch{e=new IntersectionObserver(F,I)}e.observe(i)}return s(!0),a}function un(i,r,e,t){t===void 0&&(t={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:n=typeof IntersectionObserver=="function",animationFrame:d=!1}=t,m=Ni(i),h=o||a?[...m?Jt(m):[],...Jt(r)]:[];h.forEach(S=>{o&&S.addEventListener("scroll",e,{passive:!0}),a&&S.addEventListener("resize",e)});let u=m&&n?ed(m,e):null,x=-1,v=null;s&&(v=new ResizeObserver(S=>{let[I]=S;I&&I.target===m&&v&&(v.unobserve(r),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var R;(R=v)==null||R.observe(r)})),e()}),m&&!d&&v.observe(m),v.observe(r));let E,T=d?xt(i):null;d&&_();function _(){let S=xt(i);T&&(S.x!==T.x||S.y!==T.y||S.width!==T.width||S.height!==T.height)&&e(),T=S,E=requestAnimationFrame(_)}return e(),()=>{var S;h.forEach(I=>{o&&I.removeEventListener("scroll",e),a&&I.removeEventListener("resize",e)}),u==null||u(),(S=v)==null||S.disconnect(),v=null,d&&cancelAnimationFrame(E)}}var fn=Qs;var bn=Js,vn=Ks,gn=en;var yn=js;var xn=(i,r,e)=>{let t=new Map,o={platform:Jc,...e},a={...o.platform,_c:t};return Zs(i,r,{...o,platform:a})};var td=f`
|
1509
|
+
<mdc-text type="${Kt.TEXT_TYPE}" tagname="${Kt.TAG_NAME}">${this.label}</mdc-text>
|
1510
|
+
`}};Qt.styles=[...g.styles,...Zs],l([c({type:String,reflect:!0})],Qt.prototype,"color",2),l([c({type:String})],Qt.prototype,"label",2);var Jt=Qt;Jt.register(Xs);var Gc=Jt;var ke=Math.min,K=Math.max,Mr=Math.round,Dr=Math.floor,ve=i=>({x:i,y:i}),Wc={left:"right",right:"left",bottom:"top",top:"bottom"},Yc={start:"end",end:"start"};function To(i,t,e){return K(i,ke(t,e))}function bt(i,t){return typeof i=="function"?i(t):i}function Fe(i){return i.split("-")[0]}function gt(i){return i.split("-")[1]}function Ni(i){return i==="x"?"y":"x"}function Ao(i){return i==="y"?"height":"width"}function tt(i){return["top","bottom"].includes(Fe(i))?"y":"x"}function So(i){return Ni(tt(i))}function js(i,t,e){e===void 0&&(e=!1);let r=gt(i),o=So(i),a=Ao(o),s=o==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Or(s)),[s,Or(s)]}function Ks(i){let t=Or(i);return[Eo(i),t,Eo(t)]}function Eo(i){return i.replace(/start|end/g,t=>Yc[t])}function qc(i,t,e){let r=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(i){case"top":case"bottom":return e?t?o:r:t?r:o;case"left":case"right":return t?a:s;default:return[]}}function Qs(i,t,e,r){let o=gt(i),a=qc(Fe(i),e==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Eo)))),a}function Or(i){return i.replace(/left|right|bottom|top/g,t=>Wc[t])}function Zc(i){return{top:0,right:0,bottom:0,left:0,...i}}function Oi(i){return typeof i!="number"?Zc(i):{top:i,right:i,bottom:i,left:i}}function vt(i){let{x:t,y:e,width:r,height:o}=i;return{width:r,height:o,top:e,left:t,right:t+r,bottom:e+o,x:t,y:e}}function Js(i,t,e){let{reference:r,floating:o}=i,a=tt(t),s=So(t),n=Ao(s),d=Fe(t),p=a==="y",h=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,x=r[n]/2-o[n]/2,v;switch(d){case"top":v={x:h,y:r.y-o.height};break;case"bottom":v={x:h,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:u};break;case"left":v={x:r.x-o.width,y:u};break;default:v={x:r.x,y:r.y}}switch(gt(t)){case"start":v[s]-=x*(e&&p?-1:1);break;case"end":v[s]+=x*(e&&p?-1:1);break}return v}var en=async(i,t,e)=>{let{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=e,n=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t)),p=await s.getElementRects({reference:i,floating:t,strategy:o}),{x:h,y:u}=Js(p,r,d),x=r,v={},E=0;for(let T=0;T<n.length;T++){let{name:I,fn:S}=n[T],{x:w,y:R,data:B,reset:z}=await S({x:h,y:u,initialPlacement:r,placement:x,strategy:o,middlewareData:v,rects:p,platform:s,elements:{reference:i,floating:t}});h=w!=null?w:h,u=R!=null?R:u,v={...v,[I]:{...v[I],...B}},z&&E<=50&&(E++,typeof z=="object"&&(z.placement&&(x=z.placement),z.rects&&(p=z.rects===!0?await s.getElementRects({reference:i,floating:t,strategy:o}):z.rects),{x:h,y:u}=Js(p,x,d)),T=-1)}return{x:h,y:u,placement:x,strategy:o,middlewareData:v}};async function _o(i,t){var e;t===void 0&&(t={});let{x:r,y:o,platform:a,rects:s,elements:n,strategy:d}=i,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:u="floating",altBoundary:x=!1,padding:v=0}=bt(t,i),E=Oi(v),I=n[x?u==="floating"?"reference":"floating":u],S=vt(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(I)))==null||e?I:I.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(n.floating)),boundary:p,rootBoundary:h,strategy:d})),w=u==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(n.floating)),B=await(a.isElement==null?void 0:a.isElement(R))?await(a.getScale==null?void 0:a.getScale(R))||{x:1,y:1}:{x:1,y:1},z=vt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:n,rect:w,offsetParent:R,strategy:d}):w);return{top:(S.top-z.top+E.top)/B.y,bottom:(z.bottom-S.bottom+E.bottom)/B.y,left:(S.left-z.left+E.left)/B.x,right:(z.right-S.right+E.right)/B.x}}var tn=i=>({name:"arrow",options:i,async fn(t){let{x:e,y:r,placement:o,rects:a,platform:s,elements:n,middlewareData:d}=t,{element:p,padding:h=0}=bt(i,t)||{};if(p==null)return{};let u=Oi(h),x={x:e,y:r},v=So(o),E=Ao(v),T=await s.getDimensions(p),I=v==="y",S=I?"top":"left",w=I?"bottom":"right",R=I?"clientHeight":"clientWidth",B=a.reference[E]+a.reference[v]-x[v]-a.floating[E],z=x[v]-a.reference[v],ne=await(s.getOffsetParent==null?void 0:s.getOffsetParent(p)),be=ne?ne[R]:0;(!be||!await(s.isElement==null?void 0:s.isElement(ne)))&&(be=n.floating[R]||a.floating[E]);let Le=B/2-z/2,Ee=be/2-T[E]/2-1,ge=ke(u[S],Ee),Ye=ke(u[w],Ee),Te=ge,qe=be-T[E]-Ye,Z=be/2-T[E]/2+Le,$t=To(Te,Z,qe),Re=!d.arrow&>(o)!=null&&Z!==$t&&a.reference[E]/2-(Z<Te?ge:Ye)-T[E]/2<0,Ae=Re?Z<Te?Z-Te:Z-qe:0;return{[v]:x[v]+Ae,data:{[v]:$t,centerOffset:Z-$t-Ae,...Re&&{alignmentOffset:Ae}},reset:Re}}});var rn=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(t){var e,r;let{placement:o,middlewareData:a,rects:s,initialPlacement:n,platform:d,elements:p}=t,{mainAxis:h=!0,crossAxis:u=!0,fallbackPlacements:x,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:T=!0,...I}=bt(i,t);if((e=a.arrow)!=null&&e.alignmentOffset)return{};let S=Fe(o),w=tt(n),R=Fe(n)===n,B=await(d.isRTL==null?void 0:d.isRTL(p.floating)),z=x||(R||!T?[Or(n)]:Ks(n)),ne=E!=="none";!x&&ne&&z.push(...Qs(n,T,E,B));let be=[n,...z],Le=await _o(t,I),Ee=[],ge=((r=a.flip)==null?void 0:r.overflows)||[];if(h&&Ee.push(Le[S]),u){let Z=js(o,s,B);Ee.push(Le[Z[0]],Le[Z[1]])}if(ge=[...ge,{placement:o,overflows:Ee}],!Ee.every(Z=>Z<=0)){var Ye,Te;let Z=(((Ye=a.flip)==null?void 0:Ye.index)||0)+1,$t=be[Z];if($t)return{data:{index:Z,overflows:ge},reset:{placement:$t}};let Re=(Te=ge.filter(Ae=>Ae.overflows[0]<=0).sort((Ae,Ze)=>Ae.overflows[1]-Ze.overflows[1])[0])==null?void 0:Te.placement;if(!Re)switch(v){case"bestFit":{var qe;let Ae=(qe=ge.filter(Ze=>{if(ne){let Xe=tt(Ze.placement);return Xe===w||Xe==="y"}return!0}).map(Ze=>[Ze.placement,Ze.overflows.filter(Xe=>Xe>0).reduce((Xe,Yl)=>Xe+Yl,0)]).sort((Ze,Xe)=>Ze[1]-Xe[1])[0])==null?void 0:qe[0];Ae&&(Re=Ae);break}case"initialPlacement":Re=n;break}if(o!==Re)return{reset:{placement:Re}}}return{}}}};async function Xc(i,t){let{placement:e,platform:r,elements:o}=i,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Fe(e),n=gt(e),d=tt(e)==="y",p=["left","top"].includes(s)?-1:1,h=a&&d?-1:1,u=bt(t,i),{mainAxis:x,crossAxis:v,alignmentAxis:E}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return n&&typeof E=="number"&&(v=n==="end"?E*-1:E),d?{x:v*h,y:x*p}:{x:x*p,y:v*h}}var on=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(t){var e,r;let{x:o,y:a,placement:s,middlewareData:n}=t,d=await Xc(t,i);return s===((e=n.offset)==null?void 0:e.placement)&&(r=n.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:a+d.y,data:{...d,placement:s}}}}},an=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(t){let{x:e,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:n={fn:I=>{let{x:S,y:w}=I;return{x:S,y:w}}},...d}=bt(i,t),p={x:e,y:r},h=await _o(t,d),u=tt(Fe(o)),x=Ni(u),v=p[x],E=p[u];if(a){let I=x==="y"?"top":"left",S=x==="y"?"bottom":"right",w=v+h[I],R=v-h[S];v=To(w,v,R)}if(s){let I=u==="y"?"top":"left",S=u==="y"?"bottom":"right",w=E+h[I],R=E-h[S];E=To(w,E,R)}let T=n.fn({...t,[x]:v,[u]:E});return{...T,data:{x:T.x-e,y:T.y-r,enabled:{[x]:a,[u]:s}}}}}};var sn=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(t){var e,r;let{placement:o,rects:a,platform:s,elements:n}=t,{apply:d=()=>{},...p}=bt(i,t),h=await _o(t,p),u=Fe(o),x=gt(o),v=tt(o)==="y",{width:E,height:T}=a.floating,I,S;u==="top"||u==="bottom"?(I=u,S=x===(await(s.isRTL==null?void 0:s.isRTL(n.floating))?"start":"end")?"left":"right"):(S=u,I=x==="end"?"top":"bottom");let w=T-h.top-h.bottom,R=E-h.left-h.right,B=ke(T-h[I],w),z=ke(E-h[S],R),ne=!t.middlewareData.shift,be=B,Le=z;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&(Le=R),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(be=w),ne&&!x){let ge=K(h.left,0),Ye=K(h.right,0),Te=K(h.top,0),qe=K(h.bottom,0);v?Le=E-2*(ge!==0||Ye!==0?ge+Ye:K(h.left,h.right)):be=T-2*(Te!==0||qe!==0?Te+qe:K(h.top,h.bottom))}await d({...t,availableWidth:Le,availableHeight:be});let Ee=await s.getDimensions(n.floating);return E!==Ee.width||T!==Ee.height?{reset:{rects:!0}}:{}}}};function Io(){return typeof window<"u"}function yt(i){return ln(i)?(i.nodeName||"").toLowerCase():"#document"}function ee(i){var t;return(i==null||(t=i.ownerDocument)==null?void 0:t.defaultView)||window}function ye(i){var t;return(t=(ln(i)?i.ownerDocument:i.document)||window.document)==null?void 0:t.documentElement}function ln(i){return Io()?i instanceof Node||i instanceof ee(i).Node:!1}function me(i){return Io()?i instanceof Element||i instanceof ee(i).Element:!1}function xe(i){return Io()?i instanceof HTMLElement||i instanceof ee(i).HTMLElement:!1}function nn(i){return!Io()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof ee(i).ShadowRoot}function tr(i){let{overflow:t,overflowX:e,overflowY:r,display:o}=pe(i);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!["inline","contents"].includes(o)}function cn(i){return["table","td","th"].includes(yt(i))}function $r(i){return[":popover-open",":modal"].some(t=>{try{return i.matches(t)}catch{return!1}})}function wo(i){let t=Co(),e=me(i)?pe(i):i;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(e.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(e.contain||"").includes(r))}function dn(i){let t=Be(i);for(;xe(t)&&!xt(t);){if(wo(t))return t;if($r(t))return null;t=Be(t)}return null}function Co(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function xt(i){return["html","body","#document"].includes(yt(i))}function pe(i){return ee(i).getComputedStyle(i)}function zr(i){return me(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function Be(i){if(yt(i)==="html")return i;let t=i.assignedSlot||i.parentNode||nn(i)&&i.host||ye(i);return nn(t)?t.host:t}function mn(i){let t=Be(i);return xt(t)?i.ownerDocument?i.ownerDocument.body:i.body:xe(t)&&tr(t)?t:mn(t)}function er(i,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);let o=mn(i),a=o===((r=i.ownerDocument)==null?void 0:r.body),s=ee(o);if(a){let n=ko(s);return t.concat(s,s.visualViewport||[],tr(o)?o:[],n&&e?er(n):[])}return t.concat(o,er(o,[],e))}function ko(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function un(i){let t=pe(i),e=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=xe(i),a=o?i.offsetWidth:e,s=o?i.offsetHeight:r,n=Mr(e)!==a||Mr(r)!==s;return n&&(e=a,r=s),{width:e,height:r,$:n}}function Di(i){return me(i)?i:i.contextElement}function rr(i){let t=Di(i);if(!xe(t))return ve(1);let e=t.getBoundingClientRect(),{width:r,height:o,$:a}=un(t),s=(a?Mr(e.width):e.width)/r,n=(a?Mr(e.height):e.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!n||!Number.isFinite(n))&&(n=1),{x:s,y:n}}var jc=ve(0);function fn(i){let t=ee(i);return!Co()||!t.visualViewport?jc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Kc(i,t,e){return t===void 0&&(t=!1),!e||t&&e!==ee(i)?!1:t}function Et(i,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);let o=i.getBoundingClientRect(),a=Di(i),s=ve(1);t&&(r?me(r)&&(s=rr(r)):s=rr(i));let n=Kc(a,e,r)?fn(a):ve(0),d=(o.left+n.x)/s.x,p=(o.top+n.y)/s.y,h=o.width/s.x,u=o.height/s.y;if(a){let x=ee(a),v=r&&me(r)?ee(r):r,E=x,T=ko(E);for(;T&&r&&v!==E;){let I=rr(T),S=T.getBoundingClientRect(),w=pe(T),R=S.left+(T.clientLeft+parseFloat(w.paddingLeft))*I.x,B=S.top+(T.clientTop+parseFloat(w.paddingTop))*I.y;d*=I.x,p*=I.y,h*=I.x,u*=I.y,d+=R,p+=B,E=ee(T),T=ko(E)}}return vt({width:h,height:u,x:d,y:p})}function $i(i,t){let e=zr(i).scrollLeft;return t?t.left+e:Et(ye(i)).left+e}function bn(i,t,e){e===void 0&&(e=!1);let r=i.getBoundingClientRect(),o=r.left+t.scrollLeft-(e?0:$i(i,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function Qc(i){let{elements:t,rect:e,offsetParent:r,strategy:o}=i,a=o==="fixed",s=ye(r),n=t?$r(t.floating):!1;if(r===s||n&&a)return e;let d={scrollLeft:0,scrollTop:0},p=ve(1),h=ve(0),u=xe(r);if((u||!u&&!a)&&((yt(r)!=="body"||tr(s))&&(d=zr(r)),xe(r))){let v=Et(r);p=rr(r),h.x=v.x+r.clientLeft,h.y=v.y+r.clientTop}let x=s&&!u&&!a?bn(s,d,!0):ve(0);return{width:e.width*p.x,height:e.height*p.y,x:e.x*p.x-d.scrollLeft*p.x+h.x+x.x,y:e.y*p.y-d.scrollTop*p.y+h.y+x.y}}function Jc(i){return Array.from(i.getClientRects())}function ed(i){let t=ye(i),e=zr(i),r=i.ownerDocument.body,o=K(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=K(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+$i(i),n=-e.scrollTop;return pe(r).direction==="rtl"&&(s+=K(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:n}}function td(i,t){let e=ee(i),r=ye(i),o=e.visualViewport,a=r.clientWidth,s=r.clientHeight,n=0,d=0;if(o){a=o.width,s=o.height;let p=Co();(!p||p&&t==="fixed")&&(n=o.offsetLeft,d=o.offsetTop)}return{width:a,height:s,x:n,y:d}}function rd(i,t){let e=Et(i,!0,t==="fixed"),r=e.top+i.clientTop,o=e.left+i.clientLeft,a=xe(i)?rr(i):ve(1),s=i.clientWidth*a.x,n=i.clientHeight*a.y,d=o*a.x,p=r*a.y;return{width:s,height:n,x:d,y:p}}function pn(i,t,e){let r;if(t==="viewport")r=td(i,e);else if(t==="document")r=ed(ye(i));else if(me(t))r=rd(t,e);else{let o=fn(i);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return vt(r)}function gn(i,t){let e=Be(i);return e===t||!me(e)||xt(e)?!1:pe(e).position==="fixed"||gn(e,t)}function od(i,t){let e=t.get(i);if(e)return e;let r=er(i,[],!1).filter(n=>me(n)&&yt(n)!=="body"),o=null,a=pe(i).position==="fixed",s=a?Be(i):i;for(;me(s)&&!xt(s);){let n=pe(s),d=wo(s);!d&&n.position==="fixed"&&(o=null),(a?!d&&!o:!d&&n.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||tr(s)&&!d&&gn(i,s))?r=r.filter(h=>h!==s):o=n,s=Be(s)}return t.set(i,r),r}function id(i){let{element:t,boundary:e,rootBoundary:r,strategy:o}=i,s=[...e==="clippingAncestors"?$r(t)?[]:od(t,this._c):[].concat(e),r],n=s[0],d=s.reduce((p,h)=>{let u=pn(t,h,o);return p.top=K(u.top,p.top),p.right=ke(u.right,p.right),p.bottom=ke(u.bottom,p.bottom),p.left=K(u.left,p.left),p},pn(t,n,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function ad(i){let{width:t,height:e}=un(i);return{width:t,height:e}}function sd(i,t,e){let r=xe(t),o=ye(t),a=e==="fixed",s=Et(i,!0,a,t),n={scrollLeft:0,scrollTop:0},d=ve(0);if(r||!r&&!a)if((yt(t)!=="body"||tr(o))&&(n=zr(t)),r){let x=Et(t,!0,a,t);d.x=x.x+t.clientLeft,d.y=x.y+t.clientTop}else o&&(d.x=$i(o));let p=o&&!r&&!a?bn(o,n):ve(0),h=s.left+n.scrollLeft-d.x-p.x,u=s.top+n.scrollTop-d.y-p.y;return{x:h,y:u,width:s.width,height:s.height}}function Mi(i){return pe(i).position==="static"}function hn(i,t){if(!xe(i)||pe(i).position==="fixed")return null;if(t)return t(i);let e=i.offsetParent;return ye(i)===e&&(e=e.ownerDocument.body),e}function vn(i,t){let e=ee(i);if($r(i))return e;if(!xe(i)){let o=Be(i);for(;o&&!xt(o);){if(me(o)&&!Mi(o))return o;o=Be(o)}return e}let r=hn(i,t);for(;r&&cn(r)&&Mi(r);)r=hn(r,t);return r&&xt(r)&&Mi(r)&&!wo(r)?e:r||dn(i)||e}var nd=async function(i){let t=this.getOffsetParent||vn,e=this.getDimensions,r=await e(i.floating);return{reference:sd(i.reference,await t(i.floating),i.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ld(i){return pe(i).direction==="rtl"}var cd={convertOffsetParentRelativeRectToViewportRelativeRect:Qc,getDocumentElement:ye,getClippingRect:id,getOffsetParent:vn,getElementRects:nd,getClientRects:Jc,getDimensions:ad,getScale:rr,isElement:me,isRTL:ld};function dd(i,t){let e=null,r,o=ye(i);function a(){var n;clearTimeout(r),(n=e)==null||n.disconnect(),e=null}function s(n,d){n===void 0&&(n=!1),d===void 0&&(d=1),a();let{left:p,top:h,width:u,height:x}=i.getBoundingClientRect();if(n||t(),!u||!x)return;let v=Dr(h),E=Dr(o.clientWidth-(p+u)),T=Dr(o.clientHeight-(h+x)),I=Dr(p),w={rootMargin:-v+"px "+-E+"px "+-T+"px "+-I+"px",threshold:K(0,ke(1,d))||1},R=!0;function B(z){let ne=z[0].intersectionRatio;if(ne!==d){if(!R)return s();ne?s(!1,ne):r=setTimeout(()=>{s(!1,1e-7)},1e3)}R=!1}try{e=new IntersectionObserver(B,{...w,root:o.ownerDocument})}catch{e=new IntersectionObserver(B,w)}e.observe(i)}return s(!0),a}function yn(i,t,e,r){r===void 0&&(r={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:n=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,p=Di(i),h=o||a?[...p?er(p):[],...er(t)]:[];h.forEach(S=>{o&&S.addEventListener("scroll",e,{passive:!0}),a&&S.addEventListener("resize",e)});let u=p&&n?dd(p,e):null,x=-1,v=null;s&&(v=new ResizeObserver(S=>{let[w]=S;w&&w.target===p&&v&&(v.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var R;(R=v)==null||R.observe(t)})),e()}),p&&!d&&v.observe(p),v.observe(t));let E,T=d?Et(i):null;d&&I();function I(){let S=Et(i);T&&(S.x!==T.x||S.y!==T.y||S.width!==T.width||S.height!==T.height)&&e(),T=S,E=requestAnimationFrame(I)}return e(),()=>{var S;h.forEach(w=>{o&&w.removeEventListener("scroll",e),a&&w.removeEventListener("resize",e)}),u==null||u(),(S=v)==null||S.disconnect(),v=null,d&&cancelAnimationFrame(E)}}var xn=on;var En=an,Tn=rn,An=sn;var Sn=tn;var _n=(i,t,e)=>{let r=new Map,o={platform:cd,...e},a={...o.platform,_c:r};return en(i,t,{...o,platform:a})};var md=f`
|
1511
1511
|
:host {
|
1512
1512
|
--mdc-popover-arrow-border-radius: 0.1875rem;
|
1513
1513
|
--mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
|
@@ -1614,7 +1614,7 @@
|
|
1614
1614
|
border-top-right-radius: var(--mdc-popover-arrow-border-radius);
|
1615
1615
|
border-bottom-left-radius: 100%;
|
1616
1616
|
}
|
1617
|
-
`,
|
1617
|
+
`,In=[md];var wn=b.constructTagName("popover"),He={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"},Vr={TONAL:"tonal",CONTRAST:"contrast"},O={PLACEMENT:He.BOTTOM,TRIGGER:Pr.CLICK,COLOR:Vr.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 Cn=i=>{class t extends i{constructor(...o){super(...o);this.enabledFocusTrap=O.FOCUS_TRAP;this.enabledPreventScroll=O.PREVENT_SCROLL;this.focusTrapIndex=-1;this.focusableElements=[];this.shouldWrapFocus=()=>!0;this.addEventListener("keydown",this.handleKeydown)}deactivateFocusTrap(){this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.focusTrapIndex=-1,document.body.style.overflow=""}hasNoClientRects(o){return o.getClientRects().length===0}hasZeroDimensions(o){let{width:a,height:s}=o.getBoundingClientRect(),{offsetWidth:n,offsetHeight:d}=o;return n+d+s+a===0}isNotVisible(o){return this.hasZeroDimensions(o)||this.hasNoClientRects(o)}hasHiddenStyle(o){let{display:a,opacity:s,visibility:n}=o.style;return a==="none"||s==="0"||n==="hidden"||n==="collapse"}hasComputedHidden(o){let a=getComputedStyle(o);return a.visibility==="hidden"||a.height==="0"||a.display==="none"}isHidden(o){return o.hasAttribute("hidden")||o.getAttribute("aria-hidden")==="true"||this.hasHiddenStyle(o)||this.isNotVisible(o)||this.hasComputedHidden(o)}isNotTabbable(o){return o.getAttribute("tabindex")==="-1"}isInteractiveElement(o){return!!(new Set(["BUTTON","DETAILS","EMBED","IFRAME","SELECT","TEXTAREA"]).has(o.tagName)||o instanceof HTMLAnchorElement&&o.hasAttribute("href")||o instanceof HTMLInputElement&&o.type!=="hidden"||(o instanceof HTMLAudioElement||o instanceof HTMLVideoElement)&&o.hasAttribute("controls")||(o instanceof HTMLImageElement||o instanceof HTMLObjectElement)&&o.hasAttribute("usemap")||o.hasAttribute("tabindex")&&o.tabIndex>-1)}isFocusable(o){return this.isHidden(o)||this.isNotTabbable(o)?!1:this.isInteractiveElement(o)}findFocusable(o,a=new Set){return o instanceof HTMLElement&&this.isFocusable(o)&&a.add(o),Array.from(o.children).forEach(n=>{let d=n;this.isFocusable(d)&&a.add(d),d.shadowRoot?this.findFocusable(d.shadowRoot,a):d.tagName==="SLOT"?d.assignedElements({flatten:!0}).forEach(h=>{h instanceof HTMLElement&&this.findFocusable(h,a)}):this.findFocusable(d,a)}),[...a]}setFocusableElements(){this.shadowRoot&&(this.focusableElements=this.findFocusable(this.shadowRoot,new Set))}setInitialFocus(o=0){this.focusableElements.length!==0&&(this.enabledPreventScroll&&(document.body.style.overflow="hidden"),this.focusableElements[o]&&(this.focusTrapIndex=o,this.focusableElements[o].focus()))}calculateNextIndex(o,a){let{length:s}=this.focusableElements,n=this.shouldWrapFocus();if(o===-1)return a>0?0:s-1;let d=o+a;return n?(d<0&&(d=s-1),d>=s&&(d=0)):(d<0&&(d=0),d>=s&&(d=s-1)),d}getDeepActiveElement(){var a;let o=document.activeElement||document.body;for(;o instanceof HTMLElement&&((a=o.shadowRoot)!=null&&a.activeElement);)o=o.shadowRoot.activeElement;return o||document.body}findElement(o){return this.focusableElements.findIndex(a=>this.isEqualFocusNode(o,a))}isEqualFocusNode(o,a){return o.nodeType>=0?a.isEqualNode(o)&&a===o:!1}trapFocus(o){if(this.focusableElements.length===0)return;let a=this.getDeepActiveElement(),s=this.findElement(a);o?this.focusTrapIndex=this.calculateNextIndex(s,-1):this.focusTrapIndex=this.calculateNextIndex(s,1);let n=this.focusableElements[this.focusTrapIndex];n&&n.focus()}handleKeydown(o){!this.enabledFocusTrap||!this.focusableElements.length||o.key==="Tab"&&(o.preventDefault(),this.trapFocus(o.shiftKey))}}return l([c({type:Boolean})],t.prototype,"enabledFocusTrap",2),l([c({type:Boolean})],t.prototype,"enabledPreventScroll",2),t};var zi=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=[]}},Tt=new zi;var At=class{static dispatchPopoverEvent(t,e){e.dispatchEvent(new CustomEvent(t,{detail:{show:e.visible},composed:!0,bubbles:!0}))}static onShowPopover(t){this.dispatchPopoverEvent("shown",t)}static onHidePopover(t){this.dispatchPopoverEvent("hidden",t)}static onCreatedPopover(t){this.dispatchPopoverEvent("created",t)}static onDestroyedPopover(t){this.dispatchPopoverEvent("destroyed",t)}};var Lo=class{constructor(t){this.arrowPixelChange=!1;this.popover=t}setupDelay(){try{let[t,e]=this.popover.delay.split(",").map(r=>{let o=parseInt(r,10);if(Number.isNaN(o)||o<0)throw new Error(`Invalid delay value: ${r}`);return o});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)`,o=this.popover.offsetHeight||0,a=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=`${a}px`;break;case"left":e.style.height=`${o}px`,e.style.width=r,e.style.right=`calc(-1.5 * (${r}))`;break;case"right":e.style.height=`${o}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=`${a}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],o={top:"bottom",right:"left",bottom:"top",left:"right"}[r],{x:a,y:s}=t,n=this.popover.arrowElement.getBoundingClientRect(),d=(h=this.popover.arrowElement.offsetParent)==null?void 0:h.getBoundingClientRect();if(!this.arrowPixelChange){let u=d!=null&&d[o]?12-Math.abs(n[o]-d[o]):0;Math.round(u)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let p=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",r),Object.assign(this.popover.arrowElement.style,{left:a!=null?`${a}px`:"",top:s!=null?`${s}px`:"",[o]:`${-this.popover.arrowElement.offsetHeight/2-p}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=`
|
1618
1618
|
.popover-backdrop {
|
1619
1619
|
position: fixed;
|
1620
1620
|
top: 0;
|
@@ -1624,9 +1624,9 @@
|
|
1624
1624
|
background: transparent;
|
1625
1625
|
z-index: ${this.popover.zIndex-1};
|
1626
1626
|
}
|
1627
|
-
`,e.appendChild(
|
1627
|
+
`,e.appendChild(r),this.popover.backdropElement=e}}};var L=class extends Cn(g){constructor(){super();this.id="";this.triggerID="";this.trigger=O.TRIGGER;this.placement=O.PLACEMENT;this.color=O.COLOR;this.visible=O.VISIBLE;this.offset=O.OFFSET;this.focusTrap=O.FOCUS_TRAP;this.preventScroll=O.PREVENT_SCROLL;this.showArrow=O.ARROW;this.closeButton=O.CLOSE_BUTTON;this.interactive=O.INTERACTIVE;this.delay=O.DELAY;this.hideOnEscape=O.HIDE_ON_ESCAPE;this.hideOnBlur=O.HIDE_ON_BLUR;this.hideOnOutsideClick=O.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=O.FOCUS_BACK;this.backdrop=O.BACKDROP;this.flip=O.FLIP;this.size=O.SIZE;this.zIndex=O.Z_INDEX;this.appendTo="";this.closeButtonAriaLabel=null;this.role=O.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=O.DISABLE_ARIA_EXPANDED;this.arrowElement=null;this.triggerElement=null;this.hoverTimer=null;this.isTriggerClicked=!1;this.openDelay=0;this.closeDelay=0;this.backdropElement=null;this.onOutsidePopoverClick=e=>{if(Tt.peek()!==this)return;let r=!1,o=e.composedPath();r=this.contains(e.target)||o.includes(this.triggerElement);let a=this.backdropElement?o.includes(this.backdropElement):!1;(!r||a)&&this.hidePopover()};this.onEscapeKeydown=e=>{!this.visible||e.code!=="Escape"||(e.preventDefault(),this.hidePopover())};this.onPopoverFocusOut=e=>{this.contains(e.relatedTarget)||this.hidePopover()};this.startCloseDelay=()=>{if(!this.interactive)this.hidePopover();else{if(this.isTriggerClicked)return;this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay)}};this.cancelCloseDelay=()=>{this.hoverTimer&&(clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.showPopover=()=>{this.cancelCloseDelay(),setTimeout(()=>{this.visible=!0},this.openDelay)};this.hidePopover=()=>{Tt.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 Lo(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}`,At.onCreatedPopover(this),this.visible&&(this.positionPopover(),await this.handleCreatePopoverFirstUpdate())}async disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),At.onDestroyedPopover(this),Tt.remove(this)}setupTriggerListener(){if(this.triggerID&&(this.triggerElement=this.getRootNode().querySelector(`[id="${this.triggerID}"]`),!!this.triggerElement)){if(this.trigger==="mouseenter"&&(this.interactive?this.trigger="mouseenter click":this.trigger="mouseenter focusin"),this.trigger.includes("click")&&this.triggerElement.addEventListener("click",this.togglePopoverVisible),this.trigger.includes("mouseenter")){let e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.addEventListener("mouseenter",this.showPopover),this.triggerElement.addEventListener("mouseleave",this.startCloseDelay),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),e==null||e.addEventListener("mouseenter",this.cancelCloseDelay)}this.trigger.includes("focusin")&&(this.triggerElement.addEventListener("focusin",this.showPopover),this.interactive||this.triggerElement.addEventListener("focusout",this.hidePopover)),this.addEventListener("focus-trap-exit",this.hidePopover)}}removeEventListeners(){if(!this.triggerElement)return;let e=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.removeEventListener("click",this.togglePopoverVisible),this.triggerElement.removeEventListener("mouseenter",this.showPopover),this.triggerElement.removeEventListener("mouseleave",this.hidePopover),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),this.triggerElement.removeEventListener("focusin",this.showPopover),this.triggerElement.removeEventListener("focusout",this.hidePopover),e==null||e.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("focus-trap-exit",this.hidePopover)}async updated(e){if(super.updated(e),e.has("visible")){let r=e.get("visible")||!1;await this.isOpenUpdated(r,this.visible)}if(e.has("placement")&&this.setAttribute("placement",Object.values(He).includes(this.placement)?this.placement:O.PLACEMENT),e.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),e.has("trigger")){let o=this.trigger.split(" ").filter(a=>Object.values(Pr).includes(a));this.setAttribute("trigger",o.length>0?this.trigger:O.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}e.has("color")&&this.setAttribute("color",Object.values(Vr).includes(this.color)?this.color:O.COLOR),e.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),e.has("append-to")&&this.utils.setupAppendTo(),(e.has("interactive")||e.has("aria-label")||e.has("aria-labelledby"))&&this.utils.setupAccessibility()}async isOpenUpdated(e,r){var o,a,s;e===r||!this.triggerElement||(r?(Tt.peek()!==this&&Tt.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"),At.onShowPopover(this)):(Tt.pop(),this.backdropElement&&((o=this.backdropElement)==null||o.remove(),this.backdropElement=null),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(this.triggerElement.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.removeEventListener("keydown",this.onEscapeKeydown),(a=this.deactivateFocusTrap)==null||a.call(this),this.disableAriaExpanded||this.triggerElement.removeAttribute("aria-expanded"),this.interactive&&this.triggerElement.removeAttribute("aria-haspopup"),this.focusBackToTrigger&&((s=this.triggerElement)==null||s.focus()),At.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=[En()],r=this.offset;if(this.flip&&e.push(Tn()),this.size){let o=this.renderRoot.querySelector('[part="popover-content"]');e.push(An({apply({availableHeight:a}){o&&Object.assign(o.style,{maxHeight:`${a}px`})},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){let o=this.arrowElement.offsetHeight;r=Math.sqrt(2*o**2)/2+this.offset,e.push(Sn({element:this.arrowElement,padding:12}))}e.push(xn(r)),yn(this.triggerElement,this,async()=>{if(!this.triggerElement)return;let{x:o,y:a,middlewareData:s,placement:n}=await _n(this.triggerElement,this,{placement:this.placement,middleware:e});this.utils.updatePopoverStyle(o,a),s.arrow&&this.arrowElement&&this.utils.updateArrowStyle(s.arrow,n),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(n)})}render(){return m`
|
1628
1628
|
<div class="popover-hover-bridge"></div>
|
1629
|
-
${this.closeButton?
|
1629
|
+
${this.closeButton?m` <mdc-button
|
1630
1630
|
class="popover-close"
|
1631
1631
|
prefix-icon="cancel-bold"
|
1632
1632
|
variant="tertiary"
|
@@ -1634,11 +1634,11 @@
|
|
1634
1634
|
aria-label=${A(this.closeButtonAriaLabel)||""}
|
1635
1635
|
@click="${this.hidePopover}"
|
1636
1636
|
></mdc-button>`:y}
|
1637
|
-
${this.showArrow?
|
1637
|
+
${this.showArrow?m`<div class="popover-arrow"></div>`:y}
|
1638
1638
|
<div part="popover-content">
|
1639
1639
|
<slot></slot>
|
1640
1640
|
</div>
|
1641
|
-
`}};L.styles=[...g.styles,...
|
1641
|
+
`}};L.styles=[...g.styles,...In],l([c({type:String,reflect:!0})],L.prototype,"id",2),l([c({type:String,reflect:!0})],L.prototype,"triggerID",2),l([c({type:String,reflect:!0})],L.prototype,"trigger",2),l([c({type:String,reflect:!0})],L.prototype,"placement",2),l([c({type:String,reflect:!0})],L.prototype,"color",2),l([c({type:Boolean,reflect:!0})],L.prototype,"visible",2),l([c({type:Number,reflect:!0})],L.prototype,"offset",2),l([c({type:Boolean,reflect:!0,attribute:"focus-trap"})],L.prototype,"focusTrap",2),l([c({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],L.prototype,"preventScroll",2),l([c({type:Boolean,reflect:!0,attribute:"show-arrow"})],L.prototype,"showArrow",2),l([c({type:Boolean,reflect:!0,attribute:"close-button"})],L.prototype,"closeButton",2),l([c({type:Boolean,reflect:!0})],L.prototype,"interactive",2),l([c({type:String,reflect:!0})],L.prototype,"delay",2),l([c({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],L.prototype,"hideOnEscape",2),l([c({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],L.prototype,"hideOnBlur",2),l([c({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],L.prototype,"hideOnOutsideClick",2),l([c({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],L.prototype,"focusBackToTrigger",2),l([c({type:Boolean,reflect:!0})],L.prototype,"backdrop",2),l([c({type:Boolean,reflect:!0})],L.prototype,"flip",2),l([c({type:Boolean,reflect:!0})],L.prototype,"size",2),l([c({type:Number,reflect:!0,attribute:"z-index"})],L.prototype,"zIndex",2),l([c({type:String,reflect:!0,attribute:"append-to"})],L.prototype,"appendTo",2),l([c({type:String,attribute:"close-button-aria-label"})],L.prototype,"closeButtonAriaLabel",2),l([c({type:String,reflect:!0})],L.prototype,"role",2),l([c({type:String,reflect:!0,attribute:"aria-labelledby"})],L.prototype,"ariaLabelledby",2),l([c({type:String,reflect:!0,attribute:"aria-describedby"})],L.prototype,"ariaDescribedby",2),l([c({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],L.prototype,"disableAriaExpanded",2);var rt=L;var kn=b.constructTagName("coachmark"),St={COLOR:Vr.CONTRAST,TRIGGER:Pr.MANUAL,ARROW:!0,CLOSE_BUTTON:!0,DISABLE_ARIA_EXPANDED:!0};var _t=class extends rt{constructor(){super(...arguments);this.trigger=St.TRIGGER;this.showArrow=St.ARROW;this.closeButton=St.CLOSE_BUTTON;this.disableAriaExpanded=St.DISABLE_ARIA_EXPANDED}connectedCallback(){super.connectedCallback(),this.color=St.COLOR,this.showArrow=St.ARROW}};l([c({type:String,reflect:!0})],_t.prototype,"trigger",2),l([c({type:Boolean,attribute:"show-arrow"})],_t.prototype,"showArrow",2),l([c({type:Boolean,reflect:!0,attribute:"close-button"})],_t.prototype,"closeButton",2),l([c({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],_t.prototype,"disableAriaExpanded",2);var Pi=_t;Pi.register(kn);var pd=Pi;var Ln=b.constructTagName("divider"),Ur={HORIZONTAL:"horizontal",VERTICAL:"vertical"},Vi={SOLID:"solid",GRADIENT:"gradient"},ot={POSITIVE:"positive",NEGATIVE:"negative"},Fr={UP:"arrow-up-regular",DOWN:"arrow-down-regular",LEFT:"arrow-left-regular",RIGHT:"arrow-right-regular"},It={ORIENTATION:Ur.HORIZONTAL,VARIANT:Vi.SOLID,ARROW_DIRECTION:ot.NEGATIVE,BUTTON_DIRECTION:ot.NEGATIVE};var hd=[k,f`
|
1642
1642
|
:host {
|
1643
1643
|
--mdc-divider-background-color: var(--mds-color-theme-outline-secondary-normal);
|
1644
1644
|
--mdc-divider-width: 0.0625rem;
|
@@ -1849,11 +1849,11 @@
|
|
1849
1849
|
font-size: var(--mdc-divider-text-size);
|
1850
1850
|
line-height: var(--mdc-divider-text-line-height);
|
1851
1851
|
}
|
1852
|
-
`],
|
1852
|
+
`],Rn=hd;var it=class extends g{constructor(){super(...arguments);this.orientation=It.ORIENTATION;this.variant=It.VARIANT;this.arrowDirection=It.ARROW_DIRECTION;this.buttonPosition=It.BUTTON_DIRECTION}setVariant(e){this.setAttribute("variant",Object.values(Vi).includes(e)?e:It.VARIANT)}setOrientation(e){this.setAttribute("orientation",Object.values(Ur).includes(e)?e:It.ORIENTATION)}ensureValidDirections(){let e=this.orientation===Ur.HORIZONTAL?ot.NEGATIVE:ot.POSITIVE;Object.values(ot).includes(this.buttonPosition)||(this.buttonPosition=e),Object.values(ot).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===ot.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 s;let e=(s=this.shadowRoot)==null?void 0:s.querySelector("slot"),r=(e==null?void 0:e.assignedElements({flatten:!0}))||[];if(r.length>1)return;let o=r.some(n=>n.tagName===Er.toUpperCase()),a=r.some(n=>n.tagName===_r.toUpperCase());o&&!a?this.setAttribute("data-type","mdc-text-divider"):!o&&a&&(this.setAttribute("data-type","mdc-grabber-divider"),this.setGrabberButton())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-type","mdc-primary-divider")}render(){return m`
|
1853
1853
|
<div></div>
|
1854
1854
|
<slot @slotchange=${this.inferDividerType}></slot>
|
1855
1855
|
<div></div>
|
1856
|
-
`}};
|
1856
|
+
`}};it.styles=[...g.styles,...Rn],l([c({type:String,reflect:!0})],it.prototype,"orientation",2),l([c({type:String,reflect:!0})],it.prototype,"variant",2),l([c({type:String,attribute:"arrow-direction",reflect:!0})],it.prototype,"arrowDirection",2),l([c({type:String,attribute:"button-position",reflect:!0})],it.prototype,"buttonPosition",2);var Ui=it;Ui.register(Ln);var ud=Ui;var fd=f`
|
1857
1857
|
:host([selected]){
|
1858
1858
|
border: 2px solid;
|
1859
1859
|
--mdc-chip-background-color: var(--mds-color-theme-background-label-default-active);
|
@@ -1873,7 +1873,7 @@
|
|
1873
1873
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
1874
1874
|
cursor: auto;
|
1875
1875
|
}
|
1876
|
-
`,
|
1876
|
+
`,Nn=[fd];var On=b.constructTagName("filterchip"),Fi={ICON_NAME:"check-bold",COLOR:"default"};var Br=class extends Jt{constructor(){super(...arguments);this.selected=!1}connectedCallback(){super.connectedCallback(),this.color=Fi.COLOR}setSelected(e){e?(this.iconName=Fi.ICON_NAME,this.setAttribute("aria-pressed","true")):(this.iconName=void 0,this.setAttribute("aria-pressed","false"))}executeAction(){this.selected=!this.selected}update(e){super.update(e),e.has("selected")&&this.setSelected(this.selected)}};Br.styles=[...Jt.styles,...Nn],l([c({type:Boolean,reflect:!0})],Br.prototype,"selected",2);var Bi=Br;Bi.register(On);var bd=Bi;var Mn=b.constructTagName("formfieldgroup"),Hi={RADIOGROUP:"radiogroup",GROUP:"group"};var gd=f`
|
1877
1877
|
|
1878
1878
|
:host::part(container) {
|
1879
1879
|
display: flex;
|
@@ -1890,10 +1890,10 @@
|
|
1890
1890
|
:host::part(label-text){
|
1891
1891
|
font-weight: bold;
|
1892
1892
|
}
|
1893
|
-
`,
|
1893
|
+
`,Dn=[gd];var Ro=class extends P(j){constructor(){super(...arguments);this.isRadio=!1}connectedCallback(){super.connectedCallback(),this.shouldRenderLabel=!1,this.id="",this.helpTextType=void 0,this.disabled=void 0}render(){var e;return m`
|
1894
1894
|
<div
|
1895
1895
|
part="container"
|
1896
|
-
role="${this.isRadio?
|
1896
|
+
role="${this.isRadio?Hi.RADIOGROUP:Hi.GROUP}"
|
1897
1897
|
aria-labelledby="${V.HEADING_ID}"
|
1898
1898
|
aria-describedby="${A(this.helpText?V.HELPER_TEXT_ID:"")}"
|
1899
1899
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
@@ -1904,7 +1904,7 @@
|
|
1904
1904
|
</div>
|
1905
1905
|
<slot></slot>
|
1906
1906
|
</div>
|
1907
|
-
`}};
|
1907
|
+
`}};Ro.styles=[...j.styles,...Dn];var Gi=Ro;Gi.register(Mn);var No=Gi;Tr.register(po);var vd=Tr;var yd=[f`
|
1908
1908
|
:host{
|
1909
1909
|
--mdc-input-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
|
1910
1910
|
--mdc-input-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -2020,36 +2020,36 @@
|
|
2020
2020
|
opacity: 0;
|
2021
2021
|
pointer-events: none;
|
2022
2022
|
}
|
2023
|
-
`,...N(!0)]
|
2023
|
+
`,...N(!0)],$n=yd;j.register(Hs);var he=j;var zn=b.constructTagName("input"),Oo={OFF:"off",NONE:"none",ON:"on",SENTENCES:"sentences",WORDS:"words",CHARACTERS:"characters"},Wi={OFF:"off",ON:"on"},Yi={TEXT:"text",SEARCH:"search"},Pn={MAX_LENGTH:10,VALIDATION:G.ERROR},Ge={VALIDATION:G.DEFAULT,ICON_SIZE_VALUE:1,ICON_SIZE_UNIT:"rem",CLEAR_BUTTON_ICON:"cancel-bold",CLEAR_BUTTON_VARIANT:Je.TERTIARY,CLEAR_BUTTON_SIZE:Ie[20],PREFIX_TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,PREFIX_TEXT_TAG:C.SPAN,AUTO_COMPLETE:Wi.OFF,INPUT_TYPE:Yi.TEXT};var U=class extends J(P(he)){constructor(){super(...arguments);this.placeholder="";this.readonly=!1;this.trailingButton=!1;this.autocapitalize=Oo.OFF;this.autocomplete=Wi.OFF;this.autofocus=!1;this.clearAriaLabel=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.inputElement&&(this.inputElement.checkValidity(),this.setInputValidity(),this.internals.setFormValue(this.inputElement.value))}).catch(e=>{this.onerror&&this.onerror(e)})}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setInputValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&this.handleValueChange()}setInputValidity(){this.requiredLabel&&this.validationMessage&&this.value===""?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()}attributeChangedCallback(e,r,o){super.attributeChangedCallback(e,r,o),["maxlength","minlength","pattern","required"].includes(e)&&this.updateComplete.then(()=>{this.setInputValidity()}).catch(s=>{this.onerror&&this.onerror(s)})}updateValue(){this.value=this.inputElement.value,this.internals.setFormValue(this.inputElement.value)}onInput(){this.updateValue(),this.setInputValidity()}onChange(e){this.updateValue(),this.setInputValidity();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}renderLeadingIcon(){return this.leadingIcon?m`
|
2024
2024
|
<mdc-icon
|
2025
2025
|
class="leading-icon"
|
2026
2026
|
part="leading-icon"
|
2027
2027
|
name=${this.leadingIcon}
|
2028
|
-
size="${
|
2029
|
-
length-unit="${
|
2028
|
+
size="${Ge.ICON_SIZE_VALUE}"
|
2029
|
+
length-unit="${Ge.ICON_SIZE_UNIT}">
|
2030
2030
|
</mdc-icon>
|
2031
|
-
`:y}renderPrefixText(){return this.prefixText?
|
2031
|
+
`:y}renderPrefixText(){return this.prefixText?m`
|
2032
2032
|
<mdc-text
|
2033
2033
|
class="prefix-text"
|
2034
|
-
tagname="${
|
2035
|
-
type="${
|
2034
|
+
tagname="${Ge.PREFIX_TEXT_TAG}"
|
2035
|
+
type="${Ge.PREFIX_TEXT_TYPE}"
|
2036
2036
|
aria-hidden="true"
|
2037
2037
|
>
|
2038
|
-
${this.prefixText.slice(0,
|
2038
|
+
${this.prefixText.slice(0,Pn.MAX_LENGTH)}
|
2039
2039
|
</mdc-text>
|
2040
|
-
`:y}clearInputText(){var e;this.value="",(e=this.inputElement)==null||e.focus()}renderTrailingButton(){return!this.trailingButton||!this.value?y:
|
2040
|
+
`:y}clearInputText(){var e;this.value="",(e=this.inputElement)==null||e.focus()}renderTrailingButton(){return!this.trailingButton||!this.value?y:m`
|
2041
2041
|
<mdc-button
|
2042
2042
|
part='trailing-button'
|
2043
2043
|
class='own-focus-ring ${this.value?"":"hidden"}'
|
2044
|
-
prefix-icon='${
|
2045
|
-
variant='${
|
2046
|
-
size="${
|
2044
|
+
prefix-icon='${Ge.CLEAR_BUTTON_ICON}'
|
2045
|
+
variant='${Ge.CLEAR_BUTTON_VARIANT}'
|
2046
|
+
size="${Ge.CLEAR_BUTTON_SIZE}"
|
2047
2047
|
aria-label="${this.clearAriaLabel}"
|
2048
2048
|
@click=${this.clearInputText}
|
2049
2049
|
?disabled=${this.disabled||this.readonly||!this.value}
|
2050
2050
|
></mdc-button>
|
2051
|
-
`}renderInputElement(e){var
|
2052
|
-
aria-label="${(
|
2051
|
+
`}renderInputElement(e){var r;return m`<input
|
2052
|
+
aria-label="${(r=this.dataAriaLabel)!=null?r:""}"
|
2053
2053
|
class='input'
|
2054
2054
|
part='input'
|
2055
2055
|
id="${this.id}"
|
@@ -2074,18 +2074,18 @@
|
|
2074
2074
|
@input=${this.onInput}
|
2075
2075
|
@change=${this.onChange}
|
2076
2076
|
@keydown=${this.handleKeyDown}
|
2077
|
-
/>`}render(){return
|
2077
|
+
/>`}render(){return m`
|
2078
2078
|
${this.renderLabel()}
|
2079
2079
|
<div class="input-container mdc-focus-ring" part="input-container">
|
2080
2080
|
<slot name="input-leading-icon">${this.renderLeadingIcon()}</slot>
|
2081
2081
|
<div class="input-section" part="input-section">
|
2082
2082
|
<slot name="input-prefix-text">${this.renderPrefixText()}</slot>
|
2083
|
-
<slot name="input">${this.renderInputElement(
|
2083
|
+
<slot name="input">${this.renderInputElement(Ge.INPUT_TYPE)}</slot>
|
2084
2084
|
</div>
|
2085
2085
|
<slot name="trailing-button">${this.renderTrailingButton()}</slot>
|
2086
2086
|
</div>
|
2087
2087
|
${this.helpText?this.renderHelperText():y}
|
2088
|
-
`}};U.styles=[...
|
2088
|
+
`}};U.styles=[...he.styles,...$n],l([c({type:String})],U.prototype,"placeholder",2),l([c({type:Boolean})],U.prototype,"readonly",2),l([c({type:String,attribute:"prefix-text"})],U.prototype,"prefixText",2),l([c({type:String,attribute:"leading-icon"})],U.prototype,"leadingIcon",2),l([c({type:Boolean,attribute:"trailing-button"})],U.prototype,"trailingButton",2),l([c({type:Number})],U.prototype,"maxlength",2),l([c({type:Number})],U.prototype,"minlength",2),l([c({type:String})],U.prototype,"autocapitalize",2),l([c({type:String})],U.prototype,"autocomplete",2),l([c({type:Boolean})],U.prototype,"autofocus",2),l([c({type:String})],U.prototype,"dirname",2),l([c({type:String})],U.prototype,"pattern",2),l([c({type:String})],U.prototype,"list",2),l([c({type:Number})],U.prototype,"size",2),l([c({type:String,attribute:"clear-aria-label"})],U.prototype,"clearAriaLabel",2);var or=U;or.register(zn);var xd=or;var Ed=f`
|
2089
2089
|
:host {
|
2090
2090
|
height: 1.5rem;
|
2091
2091
|
gap: 0.25rem;
|
@@ -2114,24 +2114,24 @@
|
|
2114
2114
|
--mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
|
2115
2115
|
cursor: auto;
|
2116
2116
|
}
|
2117
|
-
`,
|
2117
|
+
`,Vn=[k,Ed];var Un=b.constructTagName("inputchip"),Mo={TEXT_TYPE:_.BODY_MIDSIZE_REGULAR,TAG_NAME:C.SPAN,CLOSE_ICON:"cancel-bold"};var wt=class extends Q(le(g)){constructor(){super(...arguments);this.label="";this.error=!1;this.clearAriaLabel=""}renderIcon(){return this.iconName?m`
|
2118
2118
|
<mdc-icon
|
2119
2119
|
name="${this.iconName}"
|
2120
2120
|
length-unit="rem"
|
2121
2121
|
size="1"></mdc-icon>
|
2122
|
-
`:y}handleClose(){this.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))}render(){return
|
2122
|
+
`:y}handleClose(){this.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))}render(){return m`
|
2123
2123
|
${this.renderIcon()}
|
2124
|
-
<mdc-text part="label" type="${
|
2124
|
+
<mdc-text part="label" type="${Mo.TEXT_TYPE}" tagname="${Mo.TAG_NAME}">${this.label}</mdc-text>
|
2125
2125
|
<mdc-button
|
2126
2126
|
?disabled="${this.disabled}"
|
2127
2127
|
variant="tertiary"
|
2128
2128
|
part="close-icon"
|
2129
2129
|
aria-label="${this.clearAriaLabel}"
|
2130
|
-
prefix-icon="${
|
2130
|
+
prefix-icon="${Mo.CLOSE_ICON}"
|
2131
2131
|
size="20"
|
2132
2132
|
@click="${this.handleClose}"
|
2133
2133
|
></mdc-button>
|
2134
|
-
`}};
|
2134
|
+
`}};wt.styles=[...g.styles,...Vn],l([c({type:String})],wt.prototype,"label",2),l([c({type:Boolean})],wt.prototype,"error",2),l([c({type:String,attribute:"clear-aria-label"})],wt.prototype,"clearAriaLabel",2);var qi=wt;qi.register(Un);var Td=qi;var Fn=b.constructTagName("link"),Do={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},$o={LARGE:1,MIDSIZE:.875,SMALL:.75},zo={INLINE:!1,INVERTED:!1,LINK_SIZE:Do.LARGE};var Ad=[k,f`
|
2135
2135
|
|
2136
2136
|
:host {
|
2137
2137
|
|
@@ -2254,31 +2254,31 @@
|
|
2254
2254
|
:host(:active)::part(link-container) {
|
2255
2255
|
box-shadow: none;
|
2256
2256
|
}
|
2257
|
-
`],
|
2257
|
+
`],Bn=Ad;var Ct=class extends le(Q(g)){constructor(){super(...arguments);this.inline=zo.INLINE;this.inverted=zo.INVERTED;this.size=zo.LINK_SIZE;this.prevTabindex=null}getIconSize(){switch(this.size){case Do.SMALL:return $o.SMALL;case Do.MIDSIZE:return $o.MIDSIZE;default:return $o.LARGE}}setDisabled(e){e?(this.prevTabindex=this.hasAttribute("tabindex")?this.tabIndex:null,this.tabIndex=-1,this.setAttribute("aria-disabled","true")):this.prevTabindex===null?(this.removeAttribute("tabindex"),this.removeAttribute("aria-disabled")):(this.tabIndex=this.prevTabindex,this.removeAttribute("aria-disabled"))}updateTrailingIcon(){var o,a;let e=(a=(o=this.shadowRoot)==null?void 0:o.querySelector("slot"))==null?void 0:a.assignedElements({flatten:!0}).find(s=>s.tagName==="A"),r=this.getIconSize();if(this.iconName&&e){let s=document.createElement("mdc-icon");s.setAttribute("name",this.iconName),s.setAttribute("size",`${r}`),s.setAttribute("length-unit","rem"),e.appendChild(s)}}update(e){super.update(e),e.has("disabled")&&this.setDisabled(this.disabled)}render(){return m`
|
2258
2258
|
<div part='link-container' class='mdc-focus-ring'>
|
2259
2259
|
<slot @slotchange=${this.updateTrailingIcon}></slot>
|
2260
2260
|
</div>
|
2261
|
-
`}};
|
2261
|
+
`}};Ct.styles=[...g.styles,...Bn],l([c({type:Boolean,reflect:!0})],Ct.prototype,"inline",2),l([c({type:Boolean,reflect:!0})],Ct.prototype,"inverted",2),l([c({type:String,reflect:!0})],Ct.prototype,"size",2);var Zi=Ct;Zi.register(Fn);var Sd=Zi;var Po=b.constructTagName("listitem"),Xi={FULL_WIDTH:"full-width",INSET_PILL:"inset-pill",INSET_RECTANGLE:"inset-rectangle"},Hn={VARIANT:Xi.FULL_WIDTH};var Gn=b.constructTagName("list"),ji="header-id";var _d=f`
|
2262
2262
|
:host::part(header-text) {
|
2263
2263
|
padding: 0.5rem 0.75rem;
|
2264
2264
|
}
|
2265
|
-
`,
|
2265
|
+
`,Wn=[_d];var $={ARROW_DOWN:"ArrowDown",ARROW_UP:"ArrowUp",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SPACE:" "};var ir=class extends P(g){constructor(){super(),this.addEventListener("keydown",this.handleKeyDown)}handleKeyDown(t){var o;let e=this.getCurrentIndex(t.target),r=this.getNewIndexBasedOnKey(t.key,e,this.listItems.length);r!==void 0&&((o=this.listItems[r])==null||o.focus(),this.resetTabIndexAndSetActiveTabIndex(r))}getCurrentIndex(t){return this.listItems.findIndex(e=>e===t||e===t.parentElement)}getNewIndexBasedOnKey(t,e,r){switch(t){case $.ARROW_DOWN:return(e+1)%r;case $.ARROW_UP:return(e-1+r)%r;case $.HOME:return 0;case $.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 o=t===r?"0":"-1";e==null||e.setAttribute("tabindex",o)})}firstUpdated(){this.resetTabIndexAndSetActiveTabIndex(0)}render(){var e;let t=this.headerText?m`
|
2266
2266
|
<mdc-text
|
2267
|
-
id="${
|
2267
|
+
id="${ji}"
|
2268
2268
|
part="header-text"
|
2269
|
-
type="${
|
2270
|
-
tagname="${
|
2269
|
+
type="${_.BODY_MIDSIZE_BOLD}"
|
2270
|
+
tagname="${C.SPAN}"
|
2271
2271
|
>${this.headerText}</mdc-text>
|
2272
|
-
`:y;return
|
2272
|
+
`:y;return m`
|
2273
2273
|
<div
|
2274
2274
|
role="list"
|
2275
|
-
aria-labelledby="${this.headerText?
|
2275
|
+
aria-labelledby="${this.headerText?ji:""}"
|
2276
2276
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
2277
2277
|
>
|
2278
|
-
${
|
2278
|
+
${t}
|
2279
2279
|
<slot role="presentation" @click="${this.handleMouseClick}"></slot>
|
2280
2280
|
</div>
|
2281
|
-
`}};
|
2281
|
+
`}};ir.styles=[...g.styles,...Wn],l([re({selector:Po})],ir.prototype,"listItems",2),l([c({type:String,attribute:"header-text",reflect:!0})],ir.prototype,"headerText",2);var Ki=ir;Ki.register(Gn);var Id=Ki;var wd=f`
|
2282
2282
|
:host {
|
2283
2283
|
--mdc-listitem-default-background-color: var(--mds-color-theme-background-primary-ghost);
|
2284
2284
|
--mdc-listitem-background-color-hover: var(--mds-color-theme-background-primary-hover);
|
@@ -2348,27 +2348,27 @@
|
|
2348
2348
|
display: flex;
|
2349
2349
|
flex-direction: row;
|
2350
2350
|
}
|
2351
|
-
`,
|
2351
|
+
`,Yn=[wd,...N()];var ue=class extends P(le(mo(g))){constructor(){super(...arguments);this.variant=Hn.VARIANT}connectedCallback(){super.connectedCallback(),this.role=this.role||"listitem"}getText(e,r,o){return o?m`
|
2352
2352
|
<slot name="${e}">
|
2353
|
-
<mdc-text part="${e}" type="${
|
2353
|
+
<mdc-text part="${e}" type="${r}" tagname="${C.SPAN}">${o}</mdc-text>
|
2354
2354
|
</slot>
|
2355
|
-
`:y}disableSlottedChildren(e){[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(
|
2355
|
+
`:y}disableSlottedChildren(e){[...this.leadingControlsSlot,...this.trailingControlsSlot].forEach(r=>{e?r.setAttribute("disabled",""):r.removeAttribute("disabled")})}update(e){super.update(e),e.has("disabled")&&(this.tabIndex=this.disabled?-1:0,this.disableSlottedChildren(this.disabled))}render(){return m`
|
2356
2356
|
<div part="leading">
|
2357
2357
|
<slot name="leading-controls"></slot>
|
2358
2358
|
<div part="leading-text">
|
2359
|
-
${this.getText("leading-text-primary-label",
|
2360
|
-
${this.getText("leading-text-secondary-label",
|
2361
|
-
${this.getText("leading-text-tertiary-label",
|
2359
|
+
${this.getText("leading-text-primary-label",_.BODY_MIDSIZE_REGULAR,this.label)}
|
2360
|
+
${this.getText("leading-text-secondary-label",_.BODY_SMALL_REGULAR,this.secondaryLabel)}
|
2361
|
+
${this.getText("leading-text-tertiary-label",_.BODY_SMALL_REGULAR,this.tertiaryLabel)}
|
2362
2362
|
</div>
|
2363
2363
|
</div>
|
2364
2364
|
<div part="trailing">
|
2365
2365
|
<div part="trailing-text">
|
2366
|
-
${this.getText("trailing-text-side-header",
|
2367
|
-
${this.getText("trailing-text-subline",
|
2366
|
+
${this.getText("trailing-text-side-header",_.BODY_MIDSIZE_REGULAR,this.sideHeaderText)}
|
2367
|
+
${this.getText("trailing-text-subline",_.BODY_SMALL_REGULAR,this.sublineText)}
|
2368
2368
|
</div>
|
2369
2369
|
<slot name="trailing-controls"></slot>
|
2370
2370
|
</div>
|
2371
|
-
`}};
|
2371
|
+
`}};ue.styles=[...g.styles,...Yn],l([re({slot:"leading-controls"})],ue.prototype,"leadingControlsSlot",2),l([re({slot:"trailing-controls"})],ue.prototype,"trailingControlsSlot",2),l([c({type:String,reflect:!0})],ue.prototype,"variant",2),l([c({type:String,reflect:!0})],ue.prototype,"label",2),l([c({type:String,reflect:!0,attribute:"secondary-label"})],ue.prototype,"secondaryLabel",2),l([c({type:String,reflect:!0,attribute:"tertiary-label"})],ue.prototype,"tertiaryLabel",2),l([c({type:String,reflect:!0,attribute:"side-header-text"})],ue.prototype,"sideHeaderText",2),l([c({type:String,reflect:!0,attribute:"subline-text"})],ue.prototype,"sublineText",2);var ar=ue;ar.register(Po);var Cd=ar;var kd=f`
|
2372
2372
|
:host {
|
2373
2373
|
--mdc-marker-width: 0.25rem;
|
2374
2374
|
--mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
|
@@ -2393,7 +2393,7 @@
|
|
2393
2393
|
var(--mdc-marker-striped-background-color) 0.375rem
|
2394
2394
|
);
|
2395
2395
|
}
|
2396
|
-
`,
|
2396
|
+
`,qn=[kd];var Zn=b.constructTagName("marker"),Xn={SOLID:"solid",STRIPED:"striped"};var Hr=class extends g{constructor(){super(...arguments);this.variant=Xn.SOLID}};Hr.styles=[...g.styles,...qn],l([c({type:String,reflect:!0})],Hr.prototype,"variant",2);var Qi=Hr;Qi.register(Zn);var Ld=Qi;var Vo=b.constructTagName("optgroup"),Ji="header-id";var Rd=f`
|
2397
2397
|
:host {
|
2398
2398
|
--mdc-optgroup-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
2399
2399
|
}
|
@@ -2406,23 +2406,23 @@
|
|
2406
2406
|
color: var(--mdc-optgroup-disabled-color);
|
2407
2407
|
cursor: default;
|
2408
2408
|
}
|
2409
|
-
`,
|
2409
|
+
`,jn=[Rd];var sr=class extends P(le(g)){setDisabledForAllOptions(){this.options.forEach(t=>{this.disabled?t.setAttribute("disabled",""):t.removeAttribute("disabled")})}updated(t){super.updated(t),t.has("disabled")&&this.setDisabledForAllOptions()}render(){var e;let t=this.label?m`
|
2410
2410
|
<mdc-text
|
2411
|
-
id="${
|
2411
|
+
id="${Ji}"
|
2412
2412
|
part="header-text"
|
2413
|
-
type="${
|
2414
|
-
tagname="${
|
2413
|
+
type="${_.BODY_MIDSIZE_BOLD}"
|
2414
|
+
tagname="${C.SPAN}"
|
2415
2415
|
>${this.label}</mdc-text>
|
2416
|
-
`:y;return
|
2416
|
+
`:y;return m`
|
2417
2417
|
<div
|
2418
2418
|
role="group"
|
2419
|
-
aria-labelledby="${this.label?
|
2419
|
+
aria-labelledby="${this.label?Ji:""}"
|
2420
2420
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
2421
2421
|
>
|
2422
|
-
${
|
2422
|
+
${t}
|
2423
2423
|
<slot role="presentation"></slot>
|
2424
2424
|
</div>
|
2425
|
-
`}};
|
2425
|
+
`}};sr.styles=[...g.styles,...jn],l([c({type:String,reflect:!0})],sr.prototype,"label",2),l([re({selector:"mdc-option"})],sr.prototype,"options",2);var ea=sr;ea.register(Vo);var Nd=ea;var Uo=b.constructTagName("tooltip"),ae={DESCRIPTION:"description",LABEL:"label",NONE:"none"},at={BACKDROP:!1,DELAY:"0,0",OFFSET:4,PLACEMENT:He.TOP,SHOW_ARROW:!0,TOOLTIP_TYPE:ae.DESCRIPTION};var Od=f`
|
2426
2426
|
|
2427
2427
|
:host {
|
2428
2428
|
--mdc-tooltip-max-width: 400px;
|
@@ -2447,7 +2447,7 @@
|
|
2447
2447
|
:host([color='contrast'])::part(popover-content) {
|
2448
2448
|
color: var(--mdc-tooltip-text-color-contrast);
|
2449
2449
|
}
|
2450
|
-
`,
|
2450
|
+
`,Kn=[Od];var nr=class extends rt{constructor(){super(...arguments);this.tooltipType=at.TOOLTIP_TYPE}connectedCallback(){super.connectedCallback(),this.backdrop=!1,this.delay=at.DELAY,this.focusTrap=!1,this.hideOnBlur=!0,this.hideOnEscape=!0,this.interactive=!1,this.offset=at.OFFSET,this.placement=at.PLACEMENT,this.role="tooltip",this.trigger="mouseenter focusin",this.enabledFocusTrap=!1,this.enabledPreventScroll=!1,this.flip=!0,this.focusTrap=!1,this.preventScroll=!1,this.closeButton=!1,this.hideOnOutsideClick=!1,this.focusBackToTrigger=!1,this.size=!1,this.disableAriaExpanded=!0}getTooltipText(){var e,r;return((r=(e=this.defaultSlotNodes)==null?void 0:e.map(o=>o.textContent).join(" "))==null?void 0:r.trim())||""}setTooltipType(e){this.setAttribute("tooltip-type",Object.values(ae).includes(e)?e:at.TOOLTIP_TYPE)}onIdUpdated(){this.id.length===0&&(this.id=`mdc-tooltip-${Ve()}`);let e=document.getElementById(this.triggerID);if(e)switch(this.tooltipType){case ae.DESCRIPTION:e.setAttribute("aria-describedby",this.id);break;case ae.LABEL:e.setAttribute("aria-labelledby",this.id);break;default:break}}onPlacementUpdated(){Object.values(He).includes(this.placement)||(this.placement=at.PLACEMENT)}onTooltipTypeUpdated(e){let r=e.get("tooltipType");Object.values(ae).includes(this.tooltipType)||this.setTooltipType(at.TOOLTIP_TYPE);let o=document.getElementById(this.triggerID);if(o){let a=this.getTooltipText();switch(this.tooltipType){case ae.DESCRIPTION:r===ae.LABEL&&o.removeAttribute("aria-labelledby"),o.setAttribute("aria-describedby",this.id);break;case ae.LABEL:r===ae.DESCRIPTION&&o.removeAttribute("aria-describedby"),o.setAttribute("aria-labelledby",this.id);break;default:r===ae.DESCRIPTION?o.removeAttribute("aria-describedby"):r===ae.LABEL&&o.removeAttribute("aria-labelledby");break}a.length>0&&this.tooltipType!==ae.NONE&&!this.ariaLabel&&(this.ariaLabel=a)}}update(e){super.update(e),e.has("id")&&this.onIdUpdated(),e.has("placement")&&this.onPlacementUpdated(),e.has("tooltipType")&&this.onTooltipTypeUpdated(e)}};nr.styles=[...rt.styles,...Kn],l([c({type:String,attribute:"tooltip-type",reflect:!0})],nr.prototype,"tooltipType",2),l([Qa()],nr.prototype,"defaultSlotNodes",2);var ta=nr;ta.register(Uo);var Md=ta;var Qn="check-bold",ra="dynamic-option-tooltip-popover",Gr=b.constructTagName("option");var Dd=f`
|
2451
2451
|
:host {
|
2452
2452
|
--mdc-option-icon-width: 1rem;
|
2453
2453
|
|
@@ -2476,22 +2476,22 @@
|
|
2476
2476
|
text-overflow: ellipsis;
|
2477
2477
|
white-space: nowrap;
|
2478
2478
|
}
|
2479
|
-
`,
|
2479
|
+
`,Jn=[Dd];var kt=class extends J(ar){constructor(){super(...arguments);this.selected=!1;this.ariaLabel=null}connectedCallback(){super.connectedCallback(),this.role="option",this.variant=Xi.INSET_RECTANGLE,this.updateAttribute("aria-selected",`${this.selected}`),this.updateAttribute("aria-disabled",`${!!this.disabled}`),this.name=void 0,this.secondaryLabel=void 0,this.sideHeaderText=void 0,this.sublineText=void 0,this.dataAriaLabel=void 0,this.addEventListener("focusin",this.displayTooltipForLongText),this.addEventListener("mouseover",this.displayTooltipForLongText),this.addEventListener("focusout",this.hideTooltipOnLeave),this.addEventListener("mouseout",this.hideTooltipOnLeave),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",this.displayTooltipForLongText),this.removeEventListener("mouseover",this.displayTooltipForLongText),this.removeEventListener("focusout",this.hideTooltipOnLeave),this.removeEventListener("mouseout",this.hideTooltipOnLeave),this.removeEventListener("click",this.handleClick)}handleClick(){this.hideTooltipOnLeave()}displayTooltipForLongText(e){var s,n;let r=(s=e.target.shadowRoot)==null?void 0:s.querySelector('[part="leading-text-primary-label"]');if(r&&r.scrollWidth&&r.clientWidth&&r.scrollWidth<=(r==null?void 0:r.clientWidth))return;let o=document.createElement(Uo);o.id=ra,o.textContent=(n=this.label)!=null?n:"",o.setAttribute("triggerid",this.id),o.setAttribute("visible","");let a=this.closest("mdc-select")||this.parentElement;a==null||a.after(o)}hideTooltipOnLeave(){let e=document.querySelector(`#${ra}`);e==null||e.remove()}handleDefaultSlotChange(){var r,o,a;let e=(r=this.shadowRoot)==null?void 0:r.querySelector("slot");e&&!this.label&&(this.label=(a=(o=e.assignedNodes()[0])==null?void 0:o.textContent)==null?void 0:a.trim())}updateAttribute(e,r){this.setAttribute(e,r)}update(e){super.update(e),e.has("disabled")&&this.updateAttribute("aria-disabled",`${this.disabled}`),e.has("selected")&&this.updateAttribute("aria-selected",`${this.selected}`)}render(){let e=this.prefixIcon?m`
|
2480
2480
|
<div part="leading-icon">
|
2481
2481
|
<mdc-icon slot="leading-controls" name="${A(this.prefixIcon)}"></mdc-icon>
|
2482
2482
|
</div>
|
2483
|
-
`:y,
|
2484
|
-
<mdc-icon slot="trailing-controls" name="${
|
2485
|
-
`:y;return
|
2483
|
+
`:y,r=this.selected?m`
|
2484
|
+
<mdc-icon slot="trailing-controls" name="${Qn}"></mdc-icon>
|
2485
|
+
`:y;return m`
|
2486
2486
|
${e}
|
2487
2487
|
<div part="leading-text">
|
2488
|
-
${this.getText("leading-text-primary-label",
|
2488
|
+
${this.getText("leading-text-primary-label",_.BODY_MIDSIZE_REGULAR,this.label)}
|
2489
2489
|
</div>
|
2490
2490
|
<div part="trailing">
|
2491
|
-
${
|
2491
|
+
${r}
|
2492
2492
|
</div>
|
2493
2493
|
<slot part="default-slot" @slotchange="${this.handleDefaultSlotChange}"></slot>
|
2494
|
-
`}};kt.styles=[...
|
2494
|
+
`}};kt.styles=[...ar.styles,...Jn],l([c({type:Boolean,reflect:!0})],kt.prototype,"selected",2),l([c({type:String,reflect:!0,attribute:"prefix-icon"})],kt.prototype,"prefixIcon",2),l([c({type:String,reflect:!0,attribute:"aria-label"})],kt.prototype,"ariaLabel",2);var oa=kt;oa.register(Gr);var $d=oa;rt.register(wn);var zd=rt;var Pd=[f`
|
2495
2495
|
:host {
|
2496
2496
|
--mdc-progressbar-background-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
2497
2497
|
--mdc-progressbar-active-background-color: var(--mds-color-theme-control-active-normal);
|
@@ -2574,9 +2574,9 @@
|
|
2574
2574
|
:host::part(progress-container), :host::part(progress-bar) {
|
2575
2575
|
border: var(--mdc-progressbar-border);
|
2576
2576
|
}
|
2577
|
-
`],
|
2577
|
+
`],el=Pd;var tl=b.constructTagName("progressbar"),Fo={DEFAULT:"default",INLINE:"inline"},rl={VARIANT:Fo.DEFAULT,VALIDATION:G.DEFAULT};var Lt=class extends P(he){constructor(){super(...arguments);this.variant=rl.VARIANT;this.value="0";this.error=!1;this.renderProgressbar=()=>{var a;let e=this.getValidationVariant(),r=this.clampedValue>0&&this.clampedValue<100,o=this.error?"100":`${this.clampedValue}`;return m`
|
2578
2578
|
<div
|
2579
|
-
part="progress-container ${
|
2579
|
+
part="progress-container ${r?"gap":""}"
|
2580
2580
|
role="progressbar"
|
2581
2581
|
aria-valuenow="${this.clampedValue}"
|
2582
2582
|
aria-valuemin="0"
|
@@ -2586,16 +2586,105 @@
|
|
2586
2586
|
<div part="progress-bar ${e}" style="width: ${o}%"></div>
|
2587
2587
|
<div part="remaining"></div>
|
2588
2588
|
</div>
|
2589
|
-
`}}connectedCallback(){super.connectedCallback(),this.id=`mdc-progressbar-${
|
2590
|
-
${e?
|
2589
|
+
`}}connectedCallback(){super.connectedCallback(),this.id=`mdc-progressbar-${Ve()}`,this.disabled=void 0}get clampedValue(){let e=Number(this.value);return Number.isNaN(e)?0:Math.max(0,Math.min(100,e))}getValidationVariant(){return this.error?this.helpTextType=G.ERROR:this.clampedValue===100?this.helpTextType=G.SUCCESS:this.helpTextType=G.DEFAULT,this.helpTextType}render(){let e=this.variant===Fo.INLINE;return m`
|
2590
|
+
${e?m`<div part="inline-label-container">${this.renderLabelElement()} ${this.renderProgressbar()}</div>`:m`
|
2591
2591
|
<div part="label-container">
|
2592
2592
|
${this.renderLabelElement()}
|
2593
|
-
${this.variant===
|
2593
|
+
${this.variant===Fo.DEFAULT&&this.label?m`<span part="percentage">${this.clampedValue}%</span>`:""}
|
2594
2594
|
</div>
|
2595
2595
|
${this.renderProgressbar()}
|
2596
2596
|
${this.renderHelperText()}
|
2597
2597
|
`}
|
2598
|
-
`}};
|
2598
|
+
`}};Lt.styles=[...he.styles,...el],l([c({type:String,reflect:!0})],Lt.prototype,"variant",2),l([c({type:String,reflect:!0})],Lt.prototype,"value",2),l([c({type:Boolean,attribute:"error"})],Lt.prototype,"error",2);var Wr=Lt;Wr.register(tl);var Vd=Wr;var Ud=f`
|
2599
|
+
:host {
|
2600
|
+
--mdc-spinner-size: 3rem;
|
2601
|
+
--mdc-track-color: var(--mds-color-theme-control-indicator-inactive-normal);
|
2602
|
+
--mdc-progress-color: var(--mds-color-theme-control-active-normal);
|
2603
|
+
--mdc-progress-success-color: var(--mds-color-theme-text-success-normal);
|
2604
|
+
--mdc-progress-error-color: var(--mds-color-theme-text-error-normal);
|
2605
|
+
|
2606
|
+
display: block;
|
2607
|
+
}
|
2608
|
+
|
2609
|
+
:host::part(spinner-container) {
|
2610
|
+
width: 3rem;
|
2611
|
+
height: 3rem;
|
2612
|
+
position: relative;
|
2613
|
+
}
|
2614
|
+
|
2615
|
+
:host::part(spinner-base) {
|
2616
|
+
width: var(--mdc-spinner-size);
|
2617
|
+
height: var(--mdc-spinner-size);
|
2618
|
+
rotate: -90deg;
|
2619
|
+
}
|
2620
|
+
|
2621
|
+
:host::part(spinner-track) {
|
2622
|
+
stroke: var(--mdc-track-color);
|
2623
|
+
stroke-linecap: round;
|
2624
|
+
fill: none;
|
2625
|
+
}
|
2626
|
+
|
2627
|
+
:host::part(spinner-progress) {
|
2628
|
+
stroke: var(--mdc-progress-color);
|
2629
|
+
stroke-linecap: round;
|
2630
|
+
fill: none;
|
2631
|
+
transition: stroke-dasharray 0.3s ease-in-out;
|
2632
|
+
}
|
2633
|
+
|
2634
|
+
:host::part(success-icon) {
|
2635
|
+
color: var(--mdc-progress-success-color);
|
2636
|
+
}
|
2637
|
+
|
2638
|
+
:host::part(error-icon) {
|
2639
|
+
color: var(--mdc-progress-error-color);
|
2640
|
+
margin: 0.5rem;
|
2641
|
+
}
|
2642
|
+
`,ol=[Ud];var il=b.constructTagName("progressspinner"),F={RADIUS:20,CIRCUMFERENCE:2*Math.PI*20,STROKE_WIDTH:4,GAP_SIZE:7.5,ERROR_ICON_SIZE:2,SUCCESS_ICON_SIZE:3,ICON_LENGTH_UNIT:"em"},ia={CHECK_CIRCLE_BOLD:"check-circle-bold",ERROR_LEGACY_FILLED:"error-legacy-filled"};var aa=i=>{if(i===0)return 0;let t=i/100*F.CIRCUMFERENCE-F.GAP_SIZE;return Math.max(t,.1*i)},al=i=>{let t=F.CIRCUMFERENCE-aa(i)-2*F.GAP_SIZE;return i===0?F.CIRCUMFERENCE:t<0?0:t},sl=i=>i===0?0:F.GAP_SIZE*.5,nl=(i,t)=>{let e=t+F.GAP_SIZE*1.5;return i===0?0:e};var Bo=class extends Wr{connectedCallback(){super.connectedCallback(),this.id="",this.disabled=void 0,this.helpTextType=void 0,this.helpText=void 0,this.requiredLabel=void 0,this.variant=void 0,this.label=void 0}renderProgressSpinner(){var a;let t=aa(this.clampedValue),e=al(this.clampedValue),r=sl(this.clampedValue),o=nl(this.clampedValue,t);return m`
|
2643
|
+
<div
|
2644
|
+
part="spinner-container ${this.variant}"
|
2645
|
+
role="progressbar"
|
2646
|
+
aria-valuenow="${this.clampedValue}"
|
2647
|
+
aria-valuemin="0"
|
2648
|
+
aria-valuemax="100"
|
2649
|
+
aria-label="${(a=this.dataAriaLabel)!=null?a:""}"
|
2650
|
+
>
|
2651
|
+
<svg part="spinner-base">
|
2652
|
+
<circle
|
2653
|
+
part="spinner-track"
|
2654
|
+
cx="24"
|
2655
|
+
cy="24"
|
2656
|
+
r="${F.RADIUS}"
|
2657
|
+
stroke-width="${e===0?0:F.STROKE_WIDTH}"
|
2658
|
+
stroke-dasharray="${e} ${F.CIRCUMFERENCE}"
|
2659
|
+
stroke-dashoffset="-${o}"
|
2660
|
+
/>
|
2661
|
+
<circle
|
2662
|
+
part="spinner-progress"
|
2663
|
+
cx="24"
|
2664
|
+
cy="24"
|
2665
|
+
r="${F.RADIUS}"
|
2666
|
+
stroke-width="${t===0?0:F.STROKE_WIDTH}"
|
2667
|
+
stroke-dasharray="${t} ${F.CIRCUMFERENCE}"
|
2668
|
+
stroke-dashoffset="-${r}"
|
2669
|
+
/>
|
2670
|
+
</svg>
|
2671
|
+
</div>
|
2672
|
+
`}renderErrorState(){var t;return m`
|
2673
|
+
<mdc-icon
|
2674
|
+
part="error-icon"
|
2675
|
+
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
2676
|
+
name="${ia.ERROR_LEGACY_FILLED}"
|
2677
|
+
size="${F.ERROR_ICON_SIZE}"
|
2678
|
+
length-unit="${F.ICON_LENGTH_UNIT}"></mdc-icon>
|
2679
|
+
`}renderSuccessState(){var t;return m`
|
2680
|
+
<mdc-icon
|
2681
|
+
part="success-icon"
|
2682
|
+
aria-label="${(t=this.dataAriaLabel)!=null?t:""}"
|
2683
|
+
name="${ia.CHECK_CIRCLE_BOLD}"
|
2684
|
+
size="${F.SUCCESS_ICON_SIZE}"
|
2685
|
+
length-unit="${F.ICON_LENGTH_UNIT}"></mdc-icon>
|
2686
|
+
`}render(){return this.error?this.renderErrorState():this.clampedValue===100?this.renderSuccessState():m`
|
2687
|
+
${this.renderProgressSpinner()}`}};Bo.styles=[...g.styles,...ol];var sa=Bo;sa.register(il);var Fd=sa;var Bd=[k,f`
|
2599
2688
|
:host{
|
2600
2689
|
--mdc-radio-inner-circle-size: 0.375rem;
|
2601
2690
|
--mdc-radio-text-disabled-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -2757,10 +2846,10 @@
|
|
2757
2846
|
display: none;
|
2758
2847
|
}
|
2759
2848
|
|
2760
|
-
`,...N(!0)],
|
2849
|
+
`,...N(!0)],ll=Bd;var Rt=class extends J(P(j)){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.autofocus=!1;this.renderLabelAndHelperText=()=>this.label?m`<div class="mdc-radio__label-container">
|
2761
2850
|
${this.renderLabel()}
|
2762
2851
|
${this.renderHelperText()}
|
2763
|
-
</div>`:y}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(){this.updateTabIndex()}getAllRadiosWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-radio[name="${this.name}"]`))}dispatchChangeEvent(e){let
|
2852
|
+
</div>`:y}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}firstUpdated(){this.updateTabIndex()}getAllRadiosWithinSameGroup(){return Array.from(document.querySelectorAll(`mdc-radio[name="${this.name}"]`))}dispatchChangeEvent(e){let r=e.constructor;this.dispatchEvent(new r(e.type,e))}formResetCallback(){this.getAllRadiosWithinSameGroup().forEach(r=>{r.checked=!1}),this.updateComplete.then(()=>{this.setActualFormValue()}).catch(r=>{this.onerror&&this.onerror(r)})}formStateRestoreCallback(e){this.value===e&&e!==""&&(this.checked=!0)}setComponentValidity(e){e?this.internals.setValidity({}):this.requiredLabel&&!this.checked&&(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()),this.updateTabIndex()}setGroupValidity(e,r){this.updateComplete.then(()=>{e.forEach(o=>{o.setComponentValidity(r)})}).catch(o=>{this.onerror&&this.onerror(o)})}setActualFormValue(){let e="";this.checked?e=this.value?this.value:"on":e=null;let r=this.getAllRadiosWithinSameGroup();if(this.checked)this.setGroupValidity(r,!0);else{let o=r.some(n=>n.requiredLabel),a=!!r.find(n=>n.checked),s=o&&!a;this.setGroupValidity(r,!s)}this.internals.setFormValue(e)}handleChange(e){var a;if(this.disabled||this.readonly)return;this.getAllRadiosWithinSameGroup().forEach(s=>{var d;let n=(d=s.shadowRoot)==null?void 0:d.querySelector("input");n&&(s.checked=!1,n.checked=!1)}),this.checked=!0;let o=(a=this.shadowRoot)==null?void 0:a.querySelector("input");o&&(o.checked=!0),this.dispatchChangeEvent(e)}updateRadio(e,r,o){var a,s;(s=(a=e[r].shadowRoot)==null?void 0:a.querySelector("input"))==null||s.focus(),e[r].handleChange(o)}handleKeyDown(e){var s;if(this.disabled)return;let o=this.getAllRadiosWithinSameGroup().filter(n=>!n.disabled),a=o.indexOf(this);if(["ArrowDown","ArrowRight"].includes(e.key)){let n=(a+1)%o.length;this.updateRadio(o,n,e)}else if(["ArrowUp","ArrowLeft"].includes(e.key)){let n=(a-1+o.length)%o.length;this.updateRadio(o,n,e)}else e.key===" "&&this.updateRadio(o,a,e);this.updateTabIndex(),e.key==="Enter"&&((s=this.form)==null||s.requestSubmit())}updateTabIndex(){let e=this.getAllRadiosWithinSameGroup(),r=e.find(a=>a.checked),o=e.find(a=>!a.disabled);e.forEach(a=>{var n;let s=(n=a.shadowRoot)==null?void 0:n.querySelector("input");s&&(s.tabIndex=-1,(a===r||!r&&a===o)&&(s.tabIndex=0))})}update(e){super.update(e),e.has("checked")&&this.setActualFormValue()}render(){var e;return m`
|
2764
2853
|
<div class="mdc-radio__container">
|
2765
2854
|
<div class="mdc-radio__icon-container mdc-focus-ring">
|
2766
2855
|
<input
|
@@ -2785,12 +2874,12 @@
|
|
2785
2874
|
</div>
|
2786
2875
|
${this.renderLabelAndHelperText()}
|
2787
2876
|
</div>
|
2788
|
-
`}};
|
2877
|
+
`}};Rt.styles=[...j.styles,...ll],l([c({type:Boolean,reflect:!0})],Rt.prototype,"checked",2),l([c({type:Boolean,reflect:!0})],Rt.prototype,"readonly",2),l([c({type:Boolean,reflect:!0})],Rt.prototype,"autofocus",2);var na=Rt;var Ho=b.constructTagName("radio");na.register(Ho);var Hd=na;var Yr=class extends No{constructor(){super();this.name="";this.isRadio=!0}firstUpdated(){var e,r,o,a,s;(s=(a=(o=(r=Array.from(((e=this.shadowRoot)==null?void 0:e.querySelectorAll("slot"))||[]))==null?void 0:r.flatMap(n=>n.assignedElements({flatten:!0})))==null?void 0:o.filter(n=>n.tagName.toLowerCase()===Ho))==null?void 0:a.filter(n=>!n.hasAttribute("name")))==null||s.forEach(n=>{n.setAttribute("name",this.name),this.requiredLabel&&n.setAttribute("required-label",this.requiredLabel)})}};Yr.styles=[...No.styles],l([c({type:String})],Yr.prototype,"name",2);var la=Yr;var cl=b.constructTagName("radiogroup");la.register(cl);var Gd=la;var dl=b.constructTagName("screenreaderannouncer"),Wd={ASSERTIVE:"assertive",POLITE:"polite",OFF:"off"},lr={ARIA_LIVE:Wd.POLITE,DELAY:150,IDENTITY:"mdc-screenreaderannouncer-identity",TIMEOUT:2e4};var Yd=[f`
|
2789
2878
|
:host {
|
2790
2879
|
display: none;
|
2791
2880
|
visibility: hidden;
|
2792
2881
|
}
|
2793
|
-
`],
|
2882
|
+
`],ml=Yd;var We=class extends g{constructor(){super(...arguments);this.announcement="";this.identity="";this.dataAriaLive=lr.ARIA_LIVE;this.delay=lr.DELAY;this.timeout=lr.TIMEOUT;this.timeOutIds=[];this.ariaLiveAnnouncementIds=[]}announce(e,r,o,a){var s;if(e.length>0){let n=`mdc-screenreaderannouncer-announcement-${Ve()}`,d=document.createElement("div");d.id=n,d.ariaLive=a,(s=document.getElementById(this.identity))==null||s.appendChild(d);let p=window.setTimeout(()=>{let h=document.createElement("p");h.textContent=e,d.appendChild(h),this.ariaLiveAnnouncementIds.push(n);let u=window.setTimeout(()=>{var x;(x=document.getElementById(n))==null||x.remove()},o);this.timeOutIds.push(u)},r);this.timeOutIds.push(p)}}clearTimeOutsAndAnnouncements(){this.timeOutIds.forEach(e=>{window.clearTimeout(e)}),this.ariaLiveAnnouncementIds.forEach(e=>{var r;(r=document.getElementById(e))==null||r.remove()})}createAnnouncementAriaLiveRegion(){let e=document.getElementById(this.identity);if(!e){e=document.createElement("div"),e.id=this.identity;let r=document.createElement("style");r.textContent=`
|
2794
2883
|
.mdc-screenreaderannouncer__visually-hidden {
|
2795
2884
|
clip: rect(0 0 0 0);
|
2796
2885
|
clip-path: inset(50%);
|
@@ -2800,7 +2889,7 @@
|
|
2800
2889
|
white-space: nowrap;
|
2801
2890
|
width: 1px;
|
2802
2891
|
}
|
2803
|
-
`,e.appendChild(
|
2892
|
+
`,e.appendChild(r),e.classList.add("mdc-screenreaderannouncer__visually-hidden"),document.body.appendChild(e)}}connectedCallback(){super.connectedCallback(),this.identity.length===0&&(this.identity=lr.IDENTITY),this.createAnnouncementAriaLiveRegion()}disconnectedCallback(){super.disconnectedCallback(),this.clearTimeOutsAndAnnouncements()}updated(e){e.has("identity")&&this.identity.length===0&&(this.identity=lr.IDENTITY,this.createAnnouncementAriaLiveRegion()),e.has("announcement")&&this.announcement.length>0&&(this.announce(this.announcement,this.delay,this.timeout,this.dataAriaLive),this.announcement="")}};We.styles=[...g.styles,...ml],l([c({type:String,reflect:!0})],We.prototype,"announcement",2),l([c({type:String,reflect:!0})],We.prototype,"identity",2),l([c({type:String,reflect:!0,attribute:"data-aria-live"})],We.prototype,"dataAriaLive",2),l([c({type:Number,reflect:!0})],We.prototype,"delay",2),l([c({type:Number,reflect:!0})],We.prototype,"timeout",2);var ca=We;ca.register(dl);var qd=ca;var Zd=f`
|
2804
2893
|
|
2805
2894
|
:host::part(filters-container){
|
2806
2895
|
display: flex;
|
@@ -2827,7 +2916,7 @@
|
|
2827
2916
|
scrollbar-width: none;
|
2828
2917
|
}
|
2829
2918
|
|
2830
|
-
`,
|
2919
|
+
`,pl=[Zd];var hl=b.constructTagName("searchfield"),Go={TYPE:Yi.SEARCH,ICON:"search-bold",CLOSE_BTN:!0};var cr=class extends or{constructor(){super(...arguments);this.isInputFocused=!1}connectedCallback(){super.connectedCallback(),this.leadingIcon=Go.ICON,this.trailingButton=Go.CLOSE_BTN,this.helpText=void 0,this.helpTextType=void 0,this.requiredLabel=void 0,this.validationMessage=void 0,this.prefixText=void 0}renderInputChips(){this.inputChips&&this.inputChips.forEach(e=>{e.matches("mdc-inputchip")||e.remove()})}firstUpdated(){this.inputElement.onfocus=()=>{this.isInputFocused=!0},this.inputElement.onblur=()=>{this.isInputFocused=!1}}render(){return m`
|
2831
2920
|
${this.renderLabelElement()}
|
2832
2921
|
<div class="${Xt({"input-container":!0,"mdc-focus-ring":this.isInputFocused})}" part="input-container">
|
2833
2922
|
${this.renderLeadingIcon()}
|
@@ -2837,11 +2926,11 @@
|
|
2837
2926
|
@keydown=${e=>e.key==="Enter"?this.inputElement.focus():null}
|
2838
2927
|
@keyup=${e=>e.key===" "?this.inputElement.focus():null}>
|
2839
2928
|
<slot name="filters" @slotchange=${this.renderInputChips}></slot></div>
|
2840
|
-
${this.renderInputElement(
|
2929
|
+
${this.renderInputElement(Go.TYPE)}
|
2841
2930
|
</div>
|
2842
2931
|
${this.renderTrailingButton()}
|
2843
2932
|
</div>
|
2844
|
-
`}};
|
2933
|
+
`}};cr.styles=[...or.styles,...pl],l([re({slot:"filters"})],cr.prototype,"inputChips",2),l([M()],cr.prototype,"isInputFocused",2);var da=cr;da.register(hl);var Xd=da;var ul=b.constructTagName("select"),Wo={ARROW_UP:"arrow-up-bold",ARROW_DOWN:"arrow-down-bold"};var jd=f`
|
2845
2934
|
:host {
|
2846
2935
|
--mdc-select-background-color: var(--mds-color-theme-background-primary-ghost);
|
2847
2936
|
--mdc-select-icon-border-color: var(--mds-color-theme-outline-input-normal);
|
@@ -2940,7 +3029,7 @@
|
|
2940
3029
|
:host([help-text-type="warning"])::part(base-container) {
|
2941
3030
|
border-color: var(--mdc-select-warning-border-color);
|
2942
3031
|
}
|
2943
|
-
`,
|
3032
|
+
`,fl=[jd,...N(!0)];var te=class extends J(P(j)){constructor(){super(...arguments);this.readonly=!1;this.height="auto";this.baseIconName=Wo.ARROW_DOWN;this.selectedValue="";this.displayPopover=!1;this.activeDescendant=""}connectedCallback(){super.connectedCallback(),this.value=void 0,this.addEventListener("keydown",this.handleKeydown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeydown)}getAllValidOptions(){var e;return((e=this.optionsList)==null?void 0:e.map(r=>r.tagName.toLowerCase()===Gr?r:r.tagName.toLowerCase()===Vo?Array.from(r.children).filter(o=>o.tagName.toLowerCase()===Gr):[]).flat())||[]}handlePopoverOpen(){this.baseIconName=Wo.ARROW_UP}handlePopoverClose(){this.baseIconName=Wo.ARROW_DOWN}updateTabIndexForAllOptions(e){var o;let r=!1;this.getAllValidOptions().forEach(a=>{a===e?(this.setSelectedValue(a),r=!0,a.setAttribute("selected",""),a.setAttribute("tabindex","0")):(a==null||a.setAttribute("tabindex","-1"),a==null||a.removeAttribute("selected"))}),!r&&((o=this.getAllValidOptions()[0])==null||o.setAttribute("tabindex","0"))}handleOptionsClick(e){this.updateTabIndexForAllOptions(e.target)}setSelectedValue(e){var r,o,a,s;this.selectedValueText=(o=(r=e==null?void 0:e.getAttribute("label"))!=null?r:e==null?void 0:e.textContent)!=null?o:"",this.selectedValue=(s=(a=e==null?void 0:e.getAttribute("value"))!=null?a:e==null?void 0:e.textContent)!=null?s:"",this.internals.setFormValue(this.selectedValue),this.manageRequired(),this.dispatchChange(this.selectedValue)}manageRequired(){!this.selectedValue&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}formResetCallback(){this.selectedValue="",this.selectedValueText=void 0,this.internals.setFormValue(this.selectedValue),this.updateTabIndexForAllOptions()}formStateRestoreCallback(e){this.selectedValue=e,this.selectedValueText=e}dispatchChange(e){e&&this.dispatchEvent(new CustomEvent("change",{detail:{value:e},composed:!0,bubbles:!0}))}handleKeydown(e){this.displayPopover?this.handlePopoverOnOpen(e):this.handlePopoverOnClose(e)}handlePopoverOnOpen(e){var r;switch(e.key){case $.SPACE:this.updateTabIndexForAllOptions(e.target),this.closePopover();break;case $.ENTER:this.updateTabIndexForAllOptions(e.target),this.closePopover(),(r=this.form)==null||r.requestSubmit();break;case $.ESCAPE:this.closePopover();break;case $.HOME:this.setFocusAndTabIndex(0);break;case $.END:this.setFocusAndTabIndex(this.getAllValidOptions().length-1);break;case $.ARROW_DOWN:case $.ARROW_UP:case $.PAGE_DOWN:case $.PAGE_UP:this.handleOptionsNavigation(e),this.updateActivedescendant(e.target);break;default:break}}handlePopoverOnClose(e){switch(e.key){case $.ARROW_DOWN:case $.ARROW_UP:case $.ENTER:case $.SPACE:this.openPopover(),e.preventDefault();break;case $.HOME:this.openPopover(),this.setFocusAndTabIndex(0);break;case $.END:this.openPopover(),this.setFocusAndTabIndex(this.getAllValidOptions().length-1);break;default:break}}handleOptionsNavigation(e){let r=this.getAllValidOptions(),o=r.findIndex(s=>s===e.target),a=this.getNewIndexBasedOnKey(e.key,o,r.length);a!==-1&&(this.setFocusAndTabIndex(a),e.preventDefault())}getNewIndexBasedOnKey(e,r,o){return e===$.ARROW_DOWN&&r!==o-1?r+1:e===$.ARROW_UP&&r>0?r-1:e===$.PAGE_DOWN?r+10>o?o-1:r+10:e===$.PAGE_UP?r-10<0?0:r-10:-1}updateActivedescendant(e){var o,a;let r=this.getAllValidOptions().findIndex(s=>s===e);this.activeDescendant=(a=(o=this.getAllValidOptions()[r])==null?void 0:o.id)!=null?a:""}resetActivedescendant(){this.activeDescendant=""}setFocusAndTabIndex(e){var r;(r=this.getAllValidOptions()[e])==null||r.focus(),this.getAllValidOptions().forEach((o,a)=>{let s=e===a?"0":"-1";o==null||o.setAttribute("tabindex",s)})}openPopover(){this.displayPopover=!0,this.resetActivedescendant()}closePopover(){this.displayPopover=!1,this.resetActivedescendant()}firstUpdated(){let e=this.getAllValidOptions(),r=e.findIndex(o=>o==null?void 0:o.hasAttribute("selected"));r!==-1?(this.setSelectedValue(e[r]),this.updateTabIndexForAllOptions(e[r])):this.placeholder?this.placeholder&&this.manageRequired():(this.setSelectedValue(e[0]),this.updateTabIndexForAllOptions())}getNativeSelect(){var e;return m`
|
2944
3033
|
<select
|
2945
3034
|
part="native-select"
|
2946
3035
|
id="${this.id}"
|
@@ -2956,21 +3045,21 @@
|
|
2956
3045
|
aria-haspopup="listbox"
|
2957
3046
|
aria-label="${(e=this.dataAriaLabel)!=null?e:""}"
|
2958
3047
|
aria-labelledby="${this.label?V.HEADING_ID:""}"
|
2959
|
-
@mousedown="${
|
3048
|
+
@mousedown="${r=>r.preventDefault()}"
|
2960
3049
|
>
|
2961
3050
|
${this.getOptionsContentFromSlot()}
|
2962
3051
|
</select>
|
2963
|
-
`}getOptionsContentFromSlot(){return this.getAllValidOptions().map(e=>{var
|
3052
|
+
`}getOptionsContentFromSlot(){return this.getAllValidOptions().map(e=>{var r,o;return m`
|
2964
3053
|
<option
|
2965
3054
|
part="native-select"
|
2966
|
-
value="${(
|
3055
|
+
value="${(r=e.getAttribute("value"))!=null?r:""}"
|
2967
3056
|
label="${(o=e.getAttribute("label"))!=null?o:""}"
|
2968
3057
|
?disabled="${!!e.hasAttribute("disabled")}"
|
2969
3058
|
?selected="${!!e.hasAttribute("selected")}"
|
2970
3059
|
>
|
2971
3060
|
${e.textContent}
|
2972
3061
|
</option>
|
2973
|
-
`})}getPopoverContent(){return this.disabled||this.readonly?y:
|
3062
|
+
`})}getPopoverContent(){return this.disabled||this.readonly?y:m`
|
2974
3063
|
<mdc-popover
|
2975
3064
|
id="options-popover"
|
2976
3065
|
triggerid="select-base-triggerid"
|
@@ -2981,14 +3070,14 @@
|
|
2981
3070
|
focus-trap
|
2982
3071
|
prevent-scroll
|
2983
3072
|
role="listbox"
|
2984
|
-
placement="${
|
3073
|
+
placement="${He.BOTTOM_START}"
|
2985
3074
|
@shown="${this.handlePopoverOpen}"
|
2986
3075
|
@hidden="${this.handlePopoverClose}"
|
2987
3076
|
style="--mdc-popover-max-width: 100%; --mdc-popover-max-height: ${this.height};"
|
2988
3077
|
>
|
2989
3078
|
<slot @click="${this.handleOptionsClick}"></slot>
|
2990
3079
|
</mdc-popover>
|
2991
|
-
`}shouldFocusSelect(){return!(this.disabled||this.readonly)}updated(e){super.updated(e),(e.has("disabled")||e.has("readonly"))&&(this.closePopover(),this.handlePopoverClose())}render(){var e;return
|
3080
|
+
`}shouldFocusSelect(){return!(this.disabled||this.readonly)}updated(e){super.updated(e),(e.has("disabled")||e.has("readonly"))&&(this.closePopover(),this.handlePopoverClose())}render(){var e;return m`
|
2992
3081
|
${this.renderLabel()}
|
2993
3082
|
<div part="container">
|
2994
3083
|
<div
|
@@ -2999,8 +3088,8 @@
|
|
2999
3088
|
>
|
3000
3089
|
<mdc-text
|
3001
3090
|
part="base-text ${this.selectedValueText?"selected":""}"
|
3002
|
-
type="${
|
3003
|
-
tagname="${
|
3091
|
+
type="${_.BODY_MIDSIZE_REGULAR}"
|
3092
|
+
tagname="${C.SPAN}"
|
3004
3093
|
>
|
3005
3094
|
${(e=this.selectedValueText)!=null?e:this.placeholder}
|
3006
3095
|
</mdc-text>
|
@@ -3012,7 +3101,7 @@
|
|
3012
3101
|
${this.getPopoverContent()}
|
3013
3102
|
</div>
|
3014
3103
|
${this.renderHelperText()}
|
3015
|
-
`}};
|
3104
|
+
`}};te.styles=[...j.styles,...fl],l([c({type:String})],te.prototype,"placeholder",2),l([c({type:Boolean})],te.prototype,"readonly",2),l([c({type:String,attribute:"height"})],te.prototype,"height",2),l([re()],te.prototype,"optionsList",2),l([M()],te.prototype,"baseIconName",2),l([M()],te.prototype,"selectedValueText",2),l([M()],te.prototype,"selectedValue",2),l([M()],te.prototype,"displayPopover",2),l([M()],te.prototype,"activeDescendant",2),l([$e("select")],te.prototype,"inputElement",2);var ma=te;ma.register(ul);var Kd=ma;var Qd=[k,f`
|
3016
3105
|
:host {
|
3017
3106
|
--mdc-spinner-default-color: var(--mds-color-theme-control-active-normal);
|
3018
3107
|
--mdc-spinner-inverted-color: var(--mds-color-theme-inverted-control-active-normal);
|
@@ -3074,11 +3163,11 @@
|
|
3074
3163
|
stroke-dashoffset: -292;
|
3075
3164
|
}
|
3076
3165
|
}
|
3077
|
-
`],
|
3166
|
+
`],bl=Qd;var gl=b.constructTagName("spinner"),Jd={LARGE:"large",MIDSIZE:"midsize",SMALL:"small"},em={STANDALONE:"standalone",BUTTON:"button"},Yo={VARIANT:em.STANDALONE,SIZE:Jd.MIDSIZE,INVERTED:!1};var st=class extends g{constructor(){super(...arguments);this.inverted=Yo.INVERTED;this.size=Yo.SIZE;this.ariaLabel=null;this.variant=Yo.VARIANT}updated(e){super.updated(e),e.has("ariaLabel")&&(this.role=this.ariaLabel?"img":null,this.ariaHidden=this.ariaLabel?"false":"true")}render(){return m`
|
3078
3167
|
<svg part="container" viewBox="0 0 100 100">
|
3079
3168
|
<circle part="circle" cx="50" cy="50" r="46"></circle>
|
3080
3169
|
</svg>
|
3081
|
-
`}};
|
3170
|
+
`}};st.styles=[...g.styles,...bl],l([c({type:Boolean,reflect:!0})],st.prototype,"inverted",2),l([c({type:String,reflect:!0})],st.prototype,"size",2),l([c({type:String,attribute:"aria-label"})],st.prototype,"ariaLabel",2),l([c({type:String,reflect:!0})],st.prototype,"variant",2);var pa=st;pa.register(gl);var tm=pa;var rm=[k,f`
|
3082
3171
|
|
3083
3172
|
:host {
|
3084
3173
|
--mdc-tab-content-gap: 0.5rem;
|
@@ -3322,12 +3411,12 @@
|
|
3322
3411
|
color: var(--mdc-tab-pill-active-color-disabled);
|
3323
3412
|
}
|
3324
3413
|
|
3325
|
-
`,...N()],
|
3414
|
+
`,...N()],vl=rm;var yl=b.constructTagName("tab"),ha={GLASS:"glass",LINE:"line",PILL:"pill"},ua={VARIANT:ha.PILL};var Nt=class extends Q(ce){constructor(){super(...arguments);this.variant=ua.VARIANT;this.handleTabActiveChange=e=>{let r=new CustomEvent("activechange",{detail:{tabId:this.tabId,active:e},bubbles:!0});this.dispatchEvent(r)}}connectedCallback(){super.connectedCallback(),this.role="tab",this.softDisabled=void 0,this.size=void 0,this.type=void 0,!this.tabId&&this.onerror&&this.onerror("tab id is required")}modifyIconName(e){this.iconName&&(e?(this.prevIconName=this.iconName,this.iconName=`${Rr(this.iconName)}-filled`):this.prevIconName&&(this.iconName=this.prevIconName))}setVariant(e){this.setAttribute("variant",Object.values(ha).includes(e)?e:ua.VARIANT)}setActive(e,r){e.setAttribute("aria-selected",r?"true":"false"),this.modifyIconName(r)}executeAction(){this.handleTabActiveChange(this.active)}update(e){super.update(e),e.has("variant")&&this.setVariant(this.variant)}render(){return m`
|
3326
3415
|
<div part="container">
|
3327
|
-
${this.iconName?
|
3328
|
-
${this.text?
|
3329
|
-
type=${this.active?
|
3330
|
-
tagname=${
|
3416
|
+
${this.iconName?m` <mdc-icon name="${this.iconName}" size="1" length-unit="rem" part="icon"></mdc-icon>`:y}
|
3417
|
+
${this.text?m` <mdc-text
|
3418
|
+
type=${this.active?_.BODY_MIDSIZE_BOLD:_.BODY_MIDSIZE_MEDIUM}
|
3419
|
+
tagname=${C.SPAN}
|
3331
3420
|
data-text=${this.text}
|
3332
3421
|
part="text"
|
3333
3422
|
>${this.text}</mdc-text
|
@@ -3336,7 +3425,7 @@
|
|
3336
3425
|
<slot name="chip"></slot>
|
3337
3426
|
</div>
|
3338
3427
|
<div part="indicator"></div>
|
3339
|
-
`}};
|
3428
|
+
`}};Nt.styles=[...ce.styles,...vl],l([c({type:String,reflect:!0})],Nt.prototype,"text",2),l([c({type:String,reflect:!0})],Nt.prototype,"variant",2),l([c({type:String,reflect:!0,attribute:"tab-id"})],Nt.prototype,"tabId",2);var se=Nt;se.register(yl);var om=se;var im=[f`
|
3340
3429
|
:host {
|
3341
3430
|
--mdc-textarea-disabled-border-color: var(--mds-color-theme-outline-primary-disabled);
|
3342
3431
|
--mdc-textarea-disabled-text-color: var(--mds-color-theme-text-primary-disabled);
|
@@ -3457,20 +3546,20 @@
|
|
3457
3546
|
pointer-events: none;
|
3458
3547
|
}
|
3459
3548
|
|
3460
|
-
`,...N(!0)],
|
3549
|
+
`,...N(!0)],xl=im;var El=b.constructTagName("textarea"),fa={HARD:"hard",SOFT:"soft"},Tl={OFF:"off",ON:"on"},qo={CHARACTER_COUNTER_TYPE:_.BODY_MIDSIZE_REGULAR,ROWS:5,COLS:40,WRAP:fa.SOFT};var Y=class extends J(P(he)){constructor(){super(...arguments);this.readonly=!1;this.rows=qo.ROWS;this.cols=qo.COLS;this.wrap=fa.SOFT;this.autocapitalize=Oo.OFF;this.autocomplete=Tl.OFF;this.autofocus=!1;this.characterLimitExceedingFired=!1}get textarea(){return this.inputElement}connectedCallback(){var e;super.connectedCallback(),this.value=((e=this.textContent)==null?void 0:e.trim())||this.value,this.updateComplete.then(()=>{this.textarea&&(this.textarea.checkValidity(),this.setTextareaValidity(),this.internals.setFormValue(this.textarea.value))}).catch(r=>{this.onerror&&this.onerror(r)})}setTextareaValidity(){this.requiredLabel&&this.validationMessage&&this.value===""?this.textarea.setCustomValidity(this.validationMessage):this.maxCharacterLimit&&this.value.length>this.maxCharacterLimit&&this.helpTextType===G.ERROR&&this.helpText?this.textarea.setCustomValidity(this.helpText):this.textarea.setCustomValidity(""),this.setValidity()}formResetCallback(){this.value="",this.requestUpdate()}formStateRestoreCallback(e){this.value=e}handleValueChange(){this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(e=>{this.onerror&&this.onerror(e)})}updated(e){super.updated(e),e.has("value")&&(this.handleValueChange(),this.handleCharacterOverflowStateChange())}attributeChangedCallback(e,r,o){super.attributeChangedCallback(e,r,o),["maxlength","minlength","required"].includes(e)&&this.updateComplete.then(()=>{this.setTextareaValidity()}).catch(s=>{this.onerror&&this.onerror(s)})}dispatchCharacterOverflowStateChangeEvent(){this.dispatchEvent(new CustomEvent("limitexceeded",{detail:{currentCharacterCount:this.value.length,maxCharacterLimit:this.maxCharacterLimit,value:this.value},bubbles:!0,composed:!0}))}handleCharacterOverflowStateChange(){this.maxCharacterLimit&&(this.value.length>this.maxCharacterLimit&&!this.characterLimitExceedingFired?(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!0):this.value.length<=this.maxCharacterLimit&&this.characterLimitExceedingFired&&(this.dispatchCharacterOverflowStateChangeEvent(),this.characterLimitExceedingFired=!1))}updateValue(){this.value=this.textarea.value,this.internals.setFormValue(this.textarea.value)}onChange(e){this.updateValue();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}renderCharacterCounter(){return this.maxCharacterLimit?m`
|
3461
3550
|
<mdc-text
|
3462
3551
|
part="character-counter"
|
3463
3552
|
tagname="span"
|
3464
|
-
type=${
|
3553
|
+
type=${qo.CHARACTER_COUNTER_TYPE}
|
3465
3554
|
>
|
3466
3555
|
${this.value.length<10?`0${this.value.length}`:this.value.length}/${this.maxCharacterLimit}
|
3467
3556
|
</mdc-text>
|
3468
|
-
`:y}renderTextareaFooter(){return!this.helpText&&!this.maxCharacterLimit?y:
|
3557
|
+
`:y}renderTextareaFooter(){return!this.helpText&&!this.maxCharacterLimit?y:m`
|
3469
3558
|
<div part="textarea-footer">
|
3470
3559
|
${this.renderHelperText()}
|
3471
3560
|
${this.renderCharacterCounter()}
|
3472
3561
|
</div>
|
3473
|
-
`}render(){var e;return
|
3562
|
+
`}render(){var e;return m`
|
3474
3563
|
${this.renderLabel()}
|
3475
3564
|
<div class="textarea-container mdc-focus-ring" part="textarea-container">
|
3476
3565
|
<textarea
|
@@ -3499,7 +3588,7 @@
|
|
3499
3588
|
></textarea>
|
3500
3589
|
</div>
|
3501
3590
|
${this.renderTextareaFooter()}
|
3502
|
-
`}};
|
3591
|
+
`}};Y.styles=[...he.styles,...xl],l([c({type:String})],Y.prototype,"placeholder",2),l([c({type:Boolean})],Y.prototype,"readonly",2),l([c({type:Number})],Y.prototype,"rows",2),l([c({type:Number})],Y.prototype,"cols",2),l([c({type:String})],Y.prototype,"wrap",2),l([c({type:String})],Y.prototype,"autocapitalize",2),l([c({type:String})],Y.prototype,"autocomplete",2),l([c({type:Boolean})],Y.prototype,"autofocus",2),l([c({type:String})],Y.prototype,"dirname",2),l([c({type:Number})],Y.prototype,"maxlength",2),l([c({type:Number})],Y.prototype,"minlength",2),l([c({type:Number,attribute:"max-character-limit"})],Y.prototype,"maxCharacterLimit",2),l([$e("textarea")],Y.prototype,"inputElement",2);var ba=Y;ba.register(El);var am=ba;var Zo=b.constructTagName("themeprovider"),ga={THEMECLASS:"mds-theme-stable-darkWebex"};var Xo=class{constructor(t){this.themeclass=t}};Xo.context=Zo;var jo=Xo;var sm=f`
|
3503
3592
|
:host {
|
3504
3593
|
--mdc-themeprovider-color-default: var(--mds-color-theme-text-primary-normal);
|
3505
3594
|
--mdc-themeprovider-font-family: var(--mds-font-family-primary);
|
@@ -3528,7 +3617,7 @@
|
|
3528
3617
|
* {
|
3529
3618
|
scrollbar-color: var(--mdc-themeprovider-scrollbar-thumb-color) var(--mdc-themeprovider-scrollbar-track-color);
|
3530
3619
|
}
|
3531
|
-
`,
|
3620
|
+
`,Al=[sm];var dr=class extends Ut{constructor(){super({context:jo.context,initialValue:new jo(ga.THEMECLASS)});this.themeclass=ga.THEMECLASS}static get Context(){return jo.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(" "))}};dr.styles=[...Ut.styles,...Al],l([M()],dr.prototype,"currentThemeClass",2),l([c({type:String})],dr.prototype,"themeclass",2);var va=dr;va.register(Zo);var nm=va;var lm=[k,f`
|
3532
3621
|
:host {
|
3533
3622
|
--mdc-toggle-width: 3rem;
|
3534
3623
|
--mdc-toggle-height: 1.5rem;
|
@@ -3680,7 +3769,7 @@
|
|
3680
3769
|
border: var(--mdc-toggle-border);
|
3681
3770
|
}
|
3682
3771
|
}
|
3683
|
-
`,...N(!0)],
|
3772
|
+
`,...N(!0)],Sl=lm;var _l=b.constructTagName("toggle"),ya={DEFAULT:"default",COMPACT:"compact"},xa={CHECKED:"check-bold",UNCHECKED:"cancel-bold"},Il={compact:.75,default:1.25},Ea={SIZE:ya.DEFAULT,VALIDATION_MESSAGE:"Please toggle this switch if you want to proceed."};var Ot=class extends J(P(he)){constructor(){super(...arguments);this.checked=!1;this.size=Ea.SIZE;this.autofocus=!1}connectedCallback(){super.connectedCallback(),this.helpTextType=void 0}formResetCallback(){this.checked=!1}formStateRestoreCallback(e){e&&(this.checked=!0)}manageRequired(){!this.checked&&this.requiredLabel?(this.validationMessage?this.inputElement.setCustomValidity(this.validationMessage):this.inputElement.setCustomValidity(""),this.setValidity()):this.internals.setValidity({})}setFormValue(){let e=null;this.checked?e=this.value?this.value:"isActive":e=null,this.manageRequired(),this.internals.setFormValue(e)}toggleState(){this.disabled||(this.checked=!this.checked)}handleKeyDown(e){var r;e.key==="Enter"&&((r=this.form)==null||r.requestSubmit())}handleChange(e){this.toggleState();let r=e.constructor;this.dispatchEvent(new r(e.type,e))}setToggleSize(e){this.setAttribute("size",Object.values(ya).includes(e)?e:Ea.SIZE)}update(e){super.update(e),e.has("checked")&&this.setFormValue(),e.has("size")&&this.setToggleSize(this.size)}render(){var e;return m`
|
3684
3773
|
<div class="mdc-toggle__container mdc-focus-ring">
|
3685
3774
|
<input
|
3686
3775
|
id="${this.id}"
|
@@ -3702,19 +3791,19 @@
|
|
3702
3791
|
/>
|
3703
3792
|
<div class="mdc-toggle__slider">
|
3704
3793
|
<mdc-icon
|
3705
|
-
name="${this.checked?
|
3794
|
+
name="${this.checked?xa.CHECKED:xa.UNCHECKED}"
|
3706
3795
|
class="mdc-toggle__icon"
|
3707
3796
|
length-unit="rem"
|
3708
|
-
size="${
|
3797
|
+
size="${Il[this.size]}"
|
3709
3798
|
></mdc-icon>
|
3710
3799
|
</div>
|
3711
3800
|
</div>
|
3712
3801
|
${this.renderLabel()}
|
3713
3802
|
${this.renderHelperText()}
|
3714
|
-
`}};
|
3803
|
+
`}};Ot.styles=[...he.styles,...Sl],l([c({type:Boolean,reflect:!0})],Ot.prototype,"checked",2),l([c({type:String,reflect:!0})],Ot.prototype,"size",2),l([c({type:Boolean,reflect:!0})],Ot.prototype,"autofocus",2);var Ta=Ot;Ta.register(_l);var cm=Ta;function Mt(i,t,e){var a;let r=(a=e.initialDeps)!=null?a:[],o;return()=>{var s,n,d,p;let h;e.key&&((s=e.debug)!=null&&s.call(e))&&(h=Date.now());let u=i();if(!(u.length!==r.length||u.some((E,T)=>r[T]!==E)))return o;r=u;let v;if(e.key&&((n=e.debug)!=null&&n.call(e))&&(v=Date.now()),o=t(...u),e.key&&((d=e.debug)!=null&&d.call(e))){let E=Math.round((Date.now()-h)*100)/100,T=Math.round((Date.now()-v)*100)/100,I=T/16,S=(w,R)=>{for(w=String(w);w.length<R;)w=" "+w;return w};console.info(`%c\u23F1 ${S(T,5)} /${S(E,5)} ms`,`
|
3715
3804
|
font-size: .6rem;
|
3716
3805
|
font-weight: bold;
|
3717
|
-
color: hsl(${Math.max(0,Math.min(120-120*_,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(m=e==null?void 0:e.onChange)==null||m.call(e,o),o}}function Xo(i,r){if(i===void 0)throw new Error(`Unexpected undefined${r?`: ${r}`:""}`);return i}var vl=(i,r)=>Math.abs(i-r)<1,gl=(i,r,e)=>{let t;return function(...o){i.clearTimeout(t),t=i.setTimeout(()=>r.apply(this,o),e)}};var Qd=i=>i,Jd=i=>{let r=Math.max(i.startIndex-i.overscan,0),e=Math.min(i.endIndex+i.overscan,i.count-1),t=[];for(let o=r;o<=e;o++)t.push(o);return t},xl=(i,r)=>{let e=i.scrollElement;if(!e)return;let t=i.targetWindow;if(!t)return;let o=s=>{let{width:n,height:d}=s;r({width:Math.round(n),height:Math.round(d)})};if(o(e.getBoundingClientRect()),!t.ResizeObserver)return()=>{};let a=new t.ResizeObserver(s=>{let n=s[0];if(n!=null&&n.borderBoxSize){let d=n.borderBoxSize[0];if(d){o({width:d.inlineSize,height:d.blockSize});return}}o(e.getBoundingClientRect())});return a.observe(e,{box:"border-box"}),()=>{a.unobserve(e)}},yl={passive:!0};var em=typeof window>"u"?!0:"onscrollend"in window,El=(i,r)=>{let e=i.scrollElement;if(!e)return;let t=i.targetWindow;if(!t)return;let o=0,a=i.options.useScrollendEvent&&em?()=>{}:gl(t,()=>{r(o,!1)},i.options.isScrollingResetDelay),s=m=>()=>{let{horizontal:h,isRtl:u}=i.options;o=h?e.scrollLeft*(u&&-1||1):e.scrollTop,a(),r(o,m)},n=s(!0),d=s(!1);return d(),e.addEventListener("scroll",n,yl),e.addEventListener("scrollend",d,yl),()=>{e.removeEventListener("scroll",n),e.removeEventListener("scrollend",d)}};var tm=(i,r,e)=>{if(r!=null&&r.borderBoxSize){let t=r.borderBoxSize[0];if(t)return Math.round(t[e.options.horizontal?"inlineSize":"blockSize"])}return Math.round(i.getBoundingClientRect()[e.options.horizontal?"width":"height"])};var Tl=(i,{adjustments:r=0,behavior:e},t)=>{var o,a;let s=i+r;(a=(o=t.scrollElement)==null?void 0:o.scrollTo)==null||a.call(o,{[t.options.horizontal?"left":"top"]:s,behavior:e})},Zo=class{constructor(r){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,t=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(o=>{o.forEach(a=>{this._measureElement(a.target,a)})}));return{disconnect:()=>{var o;(o=t())==null||o.disconnect(),e=null},observe:o=>{var a;return(a=t())==null?void 0:a.observe(o,{box:"border-box"})},unobserve:o=>{var a;return(a=t())==null?void 0:a.unobserve(o)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,o])=>{typeof o>"u"&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Qd,rangeExtractor:Jd,onChange:()=>{},measureElement:tm,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...e}},this.notify=e=>{var t,o;(o=(t=this.options).onChange)==null||o.call(t,this,e)},this.maybeNotify=Ot(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var o;var e;let t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t){this.maybeNotify();return}this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(o=(e=this.scrollElement)==null?void 0:e.window)!=null?o:null,this.elementsCache.forEach(a=>{this.observer.observe(a)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(a,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<a?"forward":"backward":null,this.scrollOffset=a,this.isScrolling=s,this.maybeNotify()}))}},this.getSize=()=>{var e;return this.options.enabled?(this.scrollRect=(e=this.scrollRect)!=null?e:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var e;return this.options.enabled?(this.scrollOffset=(e=this.scrollOffset)!=null?e:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(e,t)=>{let o=new Map,a=new Map;for(let s=t-1;s>=0;s--){let n=e[s];if(o.has(n.lane))continue;let d=a.get(n.lane);if(d==null||n.end>d.end?a.set(n.lane,n):n.end<d.end&&o.set(n.lane,!0),o.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((s,n)=>s.end===n.end?s.index-n.index:s.end-n.end)[0]:void 0},this.getMeasurementOptions=Ot(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,t,o,a,s)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:o,getItemKey:a,enabled:s}),{key:!1}),this.getMeasurements=Ot(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:o,getItemKey:a,enabled:s},n)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(h=>{this.itemSizeCache.set(h.key,h.size)}));let d=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let m=this.measurementsCache.slice(0,d);for(let h=d;h<e;h++){let u=a(h),x=this.options.lanes===1?m[h-1]:this.getFurthestMeasurement(m,h),v=x?x.end+this.options.gap:t+o,E=n.get(u),T=typeof E=="number"?E:this.options.estimateSize(h),_=v+T,S=x?x.lane:h%this.options.lanes;m[h]={index:h,start:v,size:T,end:_,key:u,lane:S}}return this.measurementsCache=m,m},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Ot(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,t,o)=>this.range=e.length>0&&t>0?rm({measurements:e,outerSize:t,scrollOffset:o}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Ot(()=>{let e=null,t=null,o=this.calculateRange();return o&&(e=o.startIndex,t=o.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,o,a,s)=>a===null||s===null?[]:e({startIndex:a,endIndex:s,overscan:t,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,o=e.getAttribute(t);return o?parseInt(o,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{let o=this.indexFromElement(e),a=this.measurementsCache[o];if(!a)return;let s=a.key,n=this.elementsCache.get(s);n!==e&&(n&&this.observer.unobserve(n),this.observer.observe(e),this.elementsCache.set(s,e)),e.isConnected&&this.resizeItem(o,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{var n;let o=this.measurementsCache[e];if(!o)return;let a=(n=this.itemSizeCache.get(o.key))!=null?n:o.size,s=t-a;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,s,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=s,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,t)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((t,o)=>{t.isConnected||(this.observer.unobserve(t),this.elementsCache.delete(o))});return}this._measureElement(e,void 0)},this.getVirtualItems=Ot(()=>[this.getIndexes(),this.getMeasurements()],(e,t)=>{let o=[];for(let a=0,s=e.length;a<s;a++){let n=e[a],d=t[n];o.push(d)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(t.length!==0)return Xo(t[Al(0,t.length-1,o=>Xo(t[o]).start,e)])},this.getOffsetForAlignment=(e,t)=>{let o=this.getSize(),a=this.getScrollOffset();t==="auto"&&e>=a+o&&(t="end"),t==="end"&&(e-=o);let s=this.options.horizontal?"scrollWidth":"scrollHeight",d=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-o;return Math.max(Math.min(d,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let o=this.measurementsCache[e];if(!o)return;let a=this.getSize(),s=this.getScrollOffset();if(t==="auto")if(o.end>=s+a-this.options.scrollPaddingEnd)t="end";else if(o.start<=s+this.options.scrollPaddingStart)t="start";else return[s,t];let n=o.start-this.options.scrollPaddingStart+(o.size-a)/2;switch(t){case"center":return[this.getOffsetForAlignment(n,t),t];case"end":return[this.getOffsetForAlignment(o.end+this.options.scrollPaddingEnd,t),t];default:return[this.getOffsetForAlignment(o.start-this.options.scrollPaddingStart,t),t]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:t="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:o})},this.scrollToIndex=(e,{align:t="auto",behavior:o}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let a=this.getOffsetForIndex(e,t);if(!a)return;let[s,n]=a;this._scrollToOffset(s,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[m]=Xo(this.getOffsetForIndex(e,n));vl(m,this.getScrollOffset())||this.scrollToIndex(e,{align:n,behavior:o})}else this.scrollToIndex(e,{align:n,behavior:o})}))},this.scrollBy=(e,{behavior:t}={})=>{this.cancelScrollToIndex(),t==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{var a;var e;let t=this.getMeasurements(),o;return t.length===0?o=this.options.paddingStart:o=this.options.lanes===1?(a=(e=t[t.length-1])==null?void 0:e.end)!=null?a:0:Math.max(...t.slice(-this.options.lanes).map(s=>s.end)),Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:o})=>{this.options.scrollToFn(e,{behavior:o,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(r)}},Al=(i,r,e,t)=>{for(;i<=r;){let o=(i+r)/2|0,a=e(o);if(a<t)i=o+1;else if(a>t)r=o-1;else return o}return i>0?i-1:0};function rm({measurements:i,outerSize:r,scrollOffset:e}){let t=i.length-1,a=Al(0,t,n=>i[n].start,e),s=a;for(;s<t&&i[s].end<e+r;)s++;return{startIndex:a,endIndex:s}}var ga=class{constructor(r,e){this.cleanup=()=>{},(this.host=r).addController(this);let t={...e,onChange:(o,a)=>{var s;this.host.updateComplete.then(()=>this.host.requestUpdate()),(s=e.onChange)==null||s.call(e,o,a)}};this.virtualizer=new Zo(t)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},jo=class extends ga{constructor(r,e){super(r,{observeElementRect:xl,observeElementOffset:El,scrollToFn:Tl,...e})}};var{I:oC}=Ha;var Sl=i=>i.strings===void 0;var Wr=(i,r)=>{var t;let e=i._$AN;if(e===void 0)return!1;for(let o of e)(t=o._$AO)==null||t.call(o,r,!1),Wr(o,r);return!0},Ko=i=>{let r,e;do{if((r=i._$AM)===void 0)break;e=r._$AN,e.delete(i),i=r}while((e==null?void 0:e.size)===0)},wl=i=>{for(let r;r=i._$AM;i=r){let e=r._$AN;if(e===void 0)r._$AN=e=new Set;else if(e.has(i))break;e.add(i),am(r)}};function om(i){this._$AN!==void 0?(Ko(this),this._$AM=i,wl(this)):this._$AM=i}function im(i,r=!1,e=0){let t=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(r)if(Array.isArray(t))for(let a=e;a<t.length;a++)Wr(t[a],!1),Ko(t[a]);else t!=null&&(Wr(t,!1),Ko(t));else Wr(this,i)}var am=i=>{var r,e;i.type==bo.CHILD&&((r=i._$AP)!=null||(i._$AP=im),(e=i._$AQ)!=null||(i._$AQ=om))},Qo=class extends qt{constructor(){super(...arguments),this._$AN=void 0}_$AT(r,e,t){super._$AT(r,e,t),wl(this),this.isConnected=r._$AU}_$AO(r,e=!0){var t,o;r!==this.isConnected&&(this.isConnected=r,r?(t=this.reconnected)==null||t.call(this):(o=this.disconnected)==null||o.call(this)),e&&(Wr(this,r),Ko(this))}setValue(r){if(Sl(this.t))this.t._$AI(r,this);else{let e=[...this.t._$AH];e[this.i]=r,this.t._$AI(e,this,0)}}disconnected(){}reconnected(){}};var _l=()=>new xa,xa=class{},ya=new WeakMap,Il=Ir(class extends Qo{render(i){return y}update(i,[r]){var t;let e=r!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=r,this.ht=(t=i.options)==null?void 0:t.host,this.rt(this.ct=i.element)),y}rt(i){var r;if(this.isConnected||(i=void 0),typeof this.Y=="function"){let e=(r=this.ht)!=null?r:globalThis,t=ya.get(e);t===void 0&&(t=new WeakMap,ya.set(e,t)),t.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),t.set(this.Y,i),i!==void 0&&this.Y.call(this.ht,i)}else this.Y.value=i}get lt(){var i,r,e;return typeof this.Y=="function"?(r=ya.get((i=this.ht)!=null?i:globalThis))==null?void 0:r.get(this.Y):(e=this.Y)==null?void 0:e.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var sm=[f`
|
3806
|
+
color: hsl(${Math.max(0,Math.min(120-120*I,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(p=e==null?void 0:e.onChange)==null||p.call(e,o),o}}function Ko(i,t){if(i===void 0)throw new Error(`Unexpected undefined${t?`: ${t}`:""}`);return i}var wl=(i,t)=>Math.abs(i-t)<1,Cl=(i,t,e)=>{let r;return function(...o){i.clearTimeout(r),r=i.setTimeout(()=>t.apply(this,o),e)}};var dm=i=>i,mm=i=>{let t=Math.max(i.startIndex-i.overscan,0),e=Math.min(i.endIndex+i.overscan,i.count-1),r=[];for(let o=t;o<=e;o++)r.push(o);return r},Ll=(i,t)=>{let e=i.scrollElement;if(!e)return;let r=i.targetWindow;if(!r)return;let o=s=>{let{width:n,height:d}=s;t({width:Math.round(n),height:Math.round(d)})};if(o(e.getBoundingClientRect()),!r.ResizeObserver)return()=>{};let a=new r.ResizeObserver(s=>{let n=s[0];if(n!=null&&n.borderBoxSize){let d=n.borderBoxSize[0];if(d){o({width:d.inlineSize,height:d.blockSize});return}}o(e.getBoundingClientRect())});return a.observe(e,{box:"border-box"}),()=>{a.unobserve(e)}},kl={passive:!0};var pm=typeof window>"u"?!0:"onscrollend"in window,Rl=(i,t)=>{let e=i.scrollElement;if(!e)return;let r=i.targetWindow;if(!r)return;let o=0,a=i.options.useScrollendEvent&&pm?()=>{}:Cl(r,()=>{t(o,!1)},i.options.isScrollingResetDelay),s=p=>()=>{let{horizontal:h,isRtl:u}=i.options;o=h?e.scrollLeft*(u&&-1||1):e.scrollTop,a(),t(o,p)},n=s(!0),d=s(!1);return d(),e.addEventListener("scroll",n,kl),e.addEventListener("scrollend",d,kl),()=>{e.removeEventListener("scroll",n),e.removeEventListener("scrollend",d)}};var hm=(i,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(i.getBoundingClientRect()[e.options.horizontal?"width":"height"])};var Nl=(i,{adjustments:t=0,behavior:e},r)=>{var o,a;let s=i+t;(a=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||a.call(o,{[r.options.horizontal?"left":"top"]:s,behavior:e})},Qo=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(o=>{o.forEach(a=>{this._measureElement(a.target,a)})}));return{disconnect:()=>{var o;(o=r())==null||o.disconnect(),e=null},observe:o=>{var a;return(a=r())==null?void 0:a.observe(o,{box:"border-box"})},unobserve:o=>{var a;return(a=r())==null?void 0:a.unobserve(o)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([r,o])=>{typeof o>"u"&&delete e[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:dm,rangeExtractor:mm,onChange:()=>{},measureElement:hm,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,o;(o=(r=this.options).onChange)==null||o.call(r,this,e)},this.maybeNotify=Mt(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var o;var e;let 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=(o=(e=this.scrollElement)==null?void 0:e.window)!=null?o:null,this.elementsCache.forEach(a=>{this.observer.observe(a)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(a,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<a?"forward":"backward":null,this.scrollOffset=a,this.isScrolling=s,this.maybeNotify()}))}},this.getSize=()=>{var e;return this.options.enabled?(this.scrollRect=(e=this.scrollRect)!=null?e:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var e;return this.options.enabled?(this.scrollOffset=(e=this.scrollOffset)!=null?e:typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(e,r)=>{let o=new Map,a=new Map;for(let s=r-1;s>=0;s--){let n=e[s];if(o.has(n.lane))continue;let d=a.get(n.lane);if(d==null||n.end>d.end?a.set(n.lane,n):n.end<d.end&&o.set(n.lane,!0),o.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((s,n)=>s.end===n.end?s.index-n.index:s.end-n.end)[0]:void 0},this.getMeasurementOptions=Mt(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,r,o,a,s)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:r,scrollMargin:o,getItemKey:a,enabled:s}),{key:!1}),this.getMeasurements=Mt(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:r,scrollMargin:o,getItemKey:a,enabled:s},n)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(h=>{this.itemSizeCache.set(h.key,h.size)}));let d=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let p=this.measurementsCache.slice(0,d);for(let h=d;h<e;h++){let u=a(h),x=this.options.lanes===1?p[h-1]:this.getFurthestMeasurement(p,h),v=x?x.end+this.options.gap:r+o,E=n.get(u),T=typeof E=="number"?E:this.options.estimateSize(h),I=v+T,S=x?x.lane:h%this.options.lanes;p[h]={index:h,start:v,size:T,end:I,key:u,lane:S}}return this.measurementsCache=p,p},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Mt(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,r,o)=>this.range=e.length>0&&r>0?um({measurements:e,outerSize:r,scrollOffset:o}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Mt(()=>{let e=null,r=null,o=this.calculateRange();return o&&(e=o.startIndex,r=o.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,r]},(e,r,o,a,s)=>a===null||s===null?[]:e({startIndex:a,endIndex:s,overscan:r,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let r=this.options.indexAttribute,o=e.getAttribute(r);return o?parseInt(o,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(e,r)=>{let o=this.indexFromElement(e),a=this.measurementsCache[o];if(!a)return;let s=a.key,n=this.elementsCache.get(s);n!==e&&(n&&this.observer.unobserve(n),this.observer.observe(e),this.elementsCache.set(s,e)),e.isConnected&&this.resizeItem(o,this.options.measureElement(e,r,this))},this.resizeItem=(e,r)=>{var n;let o=this.measurementsCache[e];if(!o)return;let a=(n=this.itemSizeCache.get(o.key))!=null?n:o.size,s=r-a;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,s,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=s,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,r)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((r,o)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(o))});return}this._measureElement(e,void 0)},this.getVirtualItems=Mt(()=>[this.getIndexes(),this.getMeasurements()],(e,r)=>{let o=[];for(let a=0,s=e.length;a<s;a++){let n=e[a],d=r[n];o.push(d)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let r=this.getMeasurements();if(r.length!==0)return Ko(r[Ol(0,r.length-1,o=>Ko(r[o]).start,e)])},this.getOffsetForAlignment=(e,r)=>{let o=this.getSize(),a=this.getScrollOffset();r==="auto"&&e>=a+o&&(r="end"),r==="end"&&(e-=o);let s=this.options.horizontal?"scrollWidth":"scrollHeight",d=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-o;return Math.max(Math.min(d,e),0)},this.getOffsetForIndex=(e,r="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let o=this.measurementsCache[e];if(!o)return;let a=this.getSize(),s=this.getScrollOffset();if(r==="auto")if(o.end>=s+a-this.options.scrollPaddingEnd)r="end";else if(o.start<=s+this.options.scrollPaddingStart)r="start";else return[s,r];let n=o.start-this.options.scrollPaddingStart+(o.size-a)/2;switch(r){case"center":return[this.getOffsetForAlignment(n,r),r];case"end":return[this.getOffsetForAlignment(o.end+this.options.scrollPaddingEnd,r),r];default:return[this.getOffsetForAlignment(o.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:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,r),{adjustments:void 0,behavior:o})},this.scrollToIndex=(e,{align:r="auto",behavior:o}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let a=this.getOffsetForIndex(e,r);if(!a)return;let[s,n]=a;this._scrollToOffset(s,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[p]=Ko(this.getOffsetForIndex(e,n));wl(p,this.getScrollOffset())||this.scrollToIndex(e,{align:n,behavior:o})}else this.scrollToIndex(e,{align:n,behavior:o})}))},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 a;var e;let r=this.getMeasurements(),o;return r.length===0?o=this.options.paddingStart:o=this.options.lanes===1?(a=(e=r[r.length-1])==null?void 0:e.end)!=null?a:0:Math.max(...r.slice(-this.options.lanes).map(s=>s.end)),Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:r,behavior:o})=>{this.options.scrollToFn(e,{behavior:o,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}},Ol=(i,t,e,r)=>{for(;i<=t;){let o=(i+t)/2|0,a=e(o);if(a<r)i=o+1;else if(a>r)t=o-1;else return o}return i>0?i-1:0};function um({measurements:i,outerSize:t,scrollOffset:e}){let r=i.length-1,a=Ol(0,r,n=>i[n].start,e),s=a;for(;s<r&&i[s].end<e+t;)s++;return{startIndex:a,endIndex:s}}var Aa=class{constructor(t,e){this.cleanup=()=>{},(this.host=t).addController(this);let r={...e,onChange:(o,a)=>{var s;this.host.updateComplete.then(()=>this.host.requestUpdate()),(s=e.onChange)==null||s.call(e,o,a)}};this.virtualizer=new Qo(r)}getVirtualizer(){return this.virtualizer}async hostConnected(){this.cleanup=this.virtualizer._didMount()}hostUpdated(){this.virtualizer._willUpdate()}hostDisconnected(){this.cleanup()}},Jo=class extends Aa{constructor(t,e){super(t,{observeElementRect:Ll,observeElementOffset:Rl,scrollToFn:Nl,...e})}};var{I:Ok}=Za;var Ml=i=>i.strings===void 0;var qr=(i,t)=>{var r;let e=i._$AN;if(e===void 0)return!1;for(let o of e)(r=o._$AO)==null||r.call(o,t,!1),qr(o,t);return!0},ei=i=>{let t,e;do{if((t=i._$AM)===void 0)break;e=t._$AN,e.delete(i),i=t}while((e==null?void 0:e.size)===0)},Dl=i=>{for(let t;t=i._$AM;i=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(i))break;e.add(i),gm(t)}};function fm(i){this._$AN!==void 0?(ei(this),this._$AM=i,Dl(this)):this._$AM=i}function bm(i,t=!1,e=0){let r=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(t)if(Array.isArray(r))for(let a=e;a<r.length;a++)qr(r[a],!1),ei(r[a]);else r!=null&&(qr(r,!1),ei(r));else qr(this,i)}var gm=i=>{var t,e;i.type==vo.CHILD&&((t=i._$AP)!=null||(i._$AP=bm),(e=i._$AQ)!=null||(i._$AQ=fm))},ti=class extends Zt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),Dl(this),this.isConnected=t._$AU}_$AO(t,e=!0){var r,o;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)==null||r.call(this):(o=this.disconnected)==null||o.call(this)),e&&(qr(this,t),ei(this))}setValue(t){if(Ml(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 $l=()=>new _a,_a=class{},Sa=new WeakMap,zl=Cr(class extends ti{render(i){return y}update(i,[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=i.options)==null?void 0:r.host,this.rt(this.ct=i.element)),y}rt(i){var t;if(this.isConnected||(i=void 0),typeof this.Y=="function"){let e=(t=this.ht)!=null?t:globalThis,r=Sa.get(e);r===void 0&&(r=new WeakMap,Sa.set(e,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,i),i!==void 0&&this.Y.call(this.ht,i)}else this.Y.value=i}get lt(){var i,t,e;return typeof this.Y=="function"?(t=Sa.get((i=this.ht)!=null?i: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 vm=[f`
|
3718
3807
|
:host::part(scroll) {
|
3719
3808
|
height: 100%;
|
3720
3809
|
width: 100%;
|
@@ -3724,19 +3813,19 @@
|
|
3724
3813
|
position: relative;
|
3725
3814
|
width: 100%;
|
3726
3815
|
}
|
3727
|
-
`],
|
3816
|
+
`],Pl=vm;var Vl=b.constructTagName("virtualizedlist"),Xk=b.constructTagName("virtualizedwrapper"),Ul={VIRTUALIZER_PROPS:{count:0,estimateSize:()=>0}};var Dt=class extends g{constructor(){super();this.virtualizerProps=Ul.VIRTUALIZER_PROPS;this.scrollElementRef=$l();this.virtualItems=[];this.virtualizerController=null,this.virtualizer=null,this.setlistdata=null,this.onscroll=null}update(e){super.update(e),e.get("virtualizerProps")&&this.setVirtualizerOptions()}firstUpdated(e){super.firstUpdated(e),this.setVirtualizerOptions()}setVirtualizerOptions(){var e;(e=this.virtualizer)==null||e.setOptions({...this.virtualizer.options,...this.virtualizerProps}),this.requestUpdate()}connectedCallback(){var e;this.virtualizerController=new Jo(this,{count:this.virtualizerProps.count,estimateSize:(e=this.virtualizerProps)==null?void 0:e.estimateSize,getScrollElement:()=>this.scrollElementRef.value||null,...this.virtualizerProps}),super.connectedCallback()}getVirtualizedListWrapper(e){var n,d;this.virtualizer=e.getVirtualizer();let{getTotalSize:r,getVirtualItems:o,measureElement:a}=this.virtualizer,s=o();if(s!==this.virtualItems){this.virtualItems=s;let p=o(),h={position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${(d=(n=p[0])==null?void 0:n.start)!=null?d:0}px)`};this.setlistdata&&this.setlistdata({virtualItems:p,measureElement:a,listStyle:h})}return m`<div
|
3728
3817
|
part="container"
|
3729
|
-
style="height: ${
|
3818
|
+
style="height: ${r()}px;"
|
3730
3819
|
>
|
3731
3820
|
<slot></slot>
|
3732
|
-
</div>`}render(){return
|
3733
|
-
${
|
3821
|
+
</div>`}render(){return m`<div
|
3822
|
+
${zl(this.scrollElementRef)}
|
3734
3823
|
part="scroll"
|
3735
3824
|
@scroll=${this.onscroll&&this.onscroll}
|
3736
3825
|
>
|
3737
|
-
${this.virtualizerController?this.getVirtualizedListWrapper(this.virtualizerController):
|
3826
|
+
${this.virtualizerController?this.getVirtualizedListWrapper(this.virtualizerController):m``}
|
3738
3827
|
</div>
|
3739
|
-
`}};
|
3828
|
+
`}};Dt.styles=[...g.styles,...Pl],l([c({type:Function,attribute:"onscroll"})],Dt.prototype,"onscroll",2),l([c({type:Object,attribute:"virtualizerprops"})],Dt.prototype,"virtualizerProps",2),l([c({type:Function,attribute:"setlistdata"})],Dt.prototype,"setlistdata",2);var Ia=Dt;Ia.register(Vl);var ym=Ia;var xm=[ao,f`
|
3740
3829
|
:host {
|
3741
3830
|
--mdc-tablist-focus-ring-outer-width: var(--mdc-focus-ring-outer-width);
|
3742
3831
|
--mdc-tablist-gap: 0.5rem;
|
@@ -3766,16 +3855,16 @@
|
|
3766
3855
|
:host mdc-button[prefix-icon="arrow-right-regular"] {
|
3767
3856
|
margin-left: var(--mdc-tablist-arrow-button-margin);
|
3768
3857
|
}
|
3769
|
-
`],
|
3858
|
+
`],Fl=[...xm];var Bl=b.constructTagName("tablist"),Zr={LEFT:"ArrowLeft",RIGHT:"ArrowRight",HOME:"Home",END:"End"},mr={FORWARD:"forward",BACKWARD:"backward"};var ri=i=>i[0],wa=i=>i[i.length-1],Hl=(i,t)=>{let e=i.findIndex(r=>t===r)-1;return i[(e+i.length)%i.length]},Gl=(i,t)=>{let e=i.findIndex(r=>t===r)+1;return i[e%i.length]},Wl=(i,t)=>i.find(e=>e.tabId===t),Ca=i=>i.find(t=>t.active);var fe=class extends g{constructor(){super();this.showForwardArrowButton=!1;this.showBackwardArrowButton=!1;this.isRtl=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("dir"))==="rtl"||window.getComputedStyle(this).direction==="rtl"};this.setAriaLabelledByOrAriaLabel=()=>{var e,r,o,a;this.dataAriaLabelledby?((e=this.tabsContainer)==null||e.setAttribute("aria-labelledby",this.dataAriaLabelledby),(r=this.tabsContainer)==null||r.removeAttribute("aria-label")):((o=this.tabsContainer)==null||o.setAttribute("aria-label",this.dataAriaLabel||"Tab List"),(a=this.tabsContainer)==null||a.removeAttribute("aria-labelledby"))};this.fireTabChangeEvent=e=>{let r=new CustomEvent("change",{detail:e.tabId});this.dispatchEvent(r)};this.handleFocus=async e=>{if(e.relatedTarget instanceof se||!(e.target instanceof se))return;let r=Ca(this.tabs||[]);r instanceof se&&await this.focusTab(r)};this.handleMousedown=e=>{e.target instanceof se&&e.preventDefault()};this.handleNestedTabActiveChange=async e=>{let r=e.target;r instanceof se&&(this.setActiveTab(r),await this.focusTab(r),this.activeTabId=r.tabId)};this.resetTabIndexAndSetNewTabIndex=e=>{var r;(r=this.tabs)==null||r.forEach(o=>{o.setAttribute("tabindex",o===e?"0":"-1")})};this.setActiveTab=e=>{var r;(r=this.tabs)==null||r.forEach(o=>{o===e?o.setAttribute("active",""):o.removeAttribute("active")})};this.focusTab=async e=>{var r;e instanceof se&&(e!==((r=this.shadowRoot)==null?void 0:r.activeElement)&&(this.resetTabIndexAndSetNewTabIndex(e),e.focus()),e.scrollIntoView({behavior:"instant",block:"start",inline:"center"}),await this.handleArrowButtonVisibility())};this.handleKeydown=async e=>{let r=e.target;if(!(r instanceof se)||!this.tabs)return;let o=Hl(this.tabs,r),a=Gl(this.tabs,r),s=ri(this.tabs),n=wa(this.tabs);switch(e.code){case Zr.LEFT:e.preventDefault(),await this.focusTab(this.isRtl()?a:o);break;case Zr.RIGHT:e.preventDefault(),await this.focusTab(this.isRtl()?o:a);break;case Zr.HOME:await this.focusTab(s);break;case Zr.END:await this.focusTab(n);break;default:}};this.shouldShowArrowButton=e=>e===mr.FORWARD?this.showForwardArrowButton:this.showBackwardArrowButton;this.switchFocus=async()=>{var e,r;await this.updateComplete,!this.showBackwardArrowButton&&!this.showForwardArrowButton?(e=Ca(this.tabs||[]))==null||e.focus():(this.showBackwardArrowButton&&!this.showForwardArrowButton||this.showForwardArrowButton&&!this.showBackwardArrowButton)&&((r=this.notFocusedArrowButton)==null||r.focus())};this.handleArrowButtonVisibility=async()=>{var u,x,v;if(!this.tabs||!this.tabsContainer)return;let e=!1;((u=this.shadowRoot)==null?void 0:u.activeElement)instanceof Nr&&(e=!0);let r=ri(this.tabs),o=wa(this.tabs),a=r.getBoundingClientRect().left,s=(x=this.tabsContainer)==null?void 0:x.getBoundingClientRect().left,n=o.getBoundingClientRect().right,d=(v=this.tabsContainer)==null?void 0:v.getBoundingClientRect().right,p=r.getBoundingClientRect().right,h=o.getBoundingClientRect().left;if(!this.isRtl()){a<=s?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,n>d?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,e&&await this.switchFocus();return}p>d?this.showBackwardArrowButton=!0:this.showBackwardArrowButton=!1,h<s?this.showForwardArrowButton=!0:this.showForwardArrowButton=!1,e&&await this.switchFocus()};this.scrollTabs=async e=>{var a;let r=this.isRtl()?-1:1,o=this.isRtl()?1:-1;(a=this.tabsContainer)==null||a.scrollBy({left:this.tabsContainer.clientWidth*(e===mr.FORWARD?r:o),behavior:"instant"}),await this.handleArrowButtonVisibility()};this.addEventListener("keydown",this.handleKeydown),this.addEventListener("activechange",this.handleNestedTabActiveChange)}async firstUpdated(){var o,a,s;if(!this.tabs)return;if(Array.isArray(this.tabs)&&this.tabs.length===0){this.onerror&&this.onerror("The tablist component must have at least one child tab");return}let e=this.tabs.map(n=>n.tabId);new Set(e).size!==this.tabs.length&&this.onerror&&this.onerror("The tabs inside the tab list must have unique tab ids"),this.setAriaLabelledByOrAriaLabel(),new ResizeObserver(async()=>{var d,p;let n=(p=(d=this.tabsContainer)==null?void 0:d.shadowRoot)==null?void 0:p.activeElement;n instanceof se&&n.scrollIntoView({behavior:"instant",block:"start",inline:"center"}),await this.handleArrowButtonVisibility()}).observe(this),this.activeTabId||(this.activeTabId=(o=ri(this.tabs))==null?void 0:o.tabId),(a=this.tabsContainer)==null||a.addEventListener("focusin",this.handleFocus),(s=this.tabsContainer)==null||s.addEventListener("mousedown",this.handleMousedown)}async update(e){if(super.update(e),(e.has("dataAriaLabelledby")||e.has("dataAriaLabel"))&&this.setAriaLabelledByOrAriaLabel(),e.has("activeTabId")){if(!this.tabs||!this.activeTabId)return;let r=Wl(this.tabs,this.activeTabId);if(!(r instanceof se))return;this.setActiveTab(r),e.get("activeTabId")?(this.fireTabChangeEvent(r),await this.focusTab(r)):this.resetTabIndexAndSetNewTabIndex(r)}}render(){let e=this.isRtl()?"left":"right",r=this.isRtl()?"right":"left",o=a=>m` ${this.shouldShowArrowButton(a)?m`<mdc-button
|
3770
3859
|
variant="tertiary"
|
3771
|
-
prefix-icon="arrow-${a===
|
3772
|
-
aria-label="Scroll tabs ${a===
|
3860
|
+
prefix-icon="arrow-${a===mr.FORWARD?e:r}-regular"
|
3861
|
+
aria-label="Scroll tabs ${a===mr.FORWARD?e:r}"
|
3773
3862
|
@click="${()=>this.scrollTabs(a)}"
|
3774
|
-
></mdc-button>`:y}`;return
|
3863
|
+
></mdc-button>`:y}`;return m` ${o("backward")}
|
3775
3864
|
<div class="container" role="tablist" tabindex="-1">
|
3776
3865
|
<slot></slot>
|
3777
3866
|
</div>
|
3778
|
-
${o(
|
3867
|
+
${o(mr.FORWARD)}`}};fe.styles=[...g.styles,...Fl],l([c({type:String,attribute:"active-tab-id",reflect:!0})],fe.prototype,"activeTabId",2),l([c({type:String,attribute:"data-aria-labelledby"})],fe.prototype,"dataAriaLabelledby",2),l([c({type:String,attribute:"data-aria-label"})],fe.prototype,"dataAriaLabel",2),l([$e(".container")],fe.prototype,"tabsContainer",2),l([$e("mdc-button:not(:focus-visible)")],fe.prototype,"notFocusedArrowButton",2),l([re({selector:"mdc-tab"})],fe.prototype,"tabs",2),l([M()],fe.prototype,"showForwardArrowButton",2),l([M()],fe.prototype,"showBackwardArrowButton",2);var ka=fe;ka.register(Bl);var Em=ka;})();
|
3779
3868
|
/*! Bundled license information:
|
3780
3869
|
|
3781
3870
|
@lit/reactive-element/css-tag.js:
|