@fluid-topics/ft-text-field 2.2.8 → 2.2.10

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.
@@ -1,137 +1,137 @@
1
- "use strict";(()=>{var mi=Object.create;var Qe=Object.defineProperty;var yi=Object.getOwnPropertyDescriptor;var bi=Object.getOwnPropertyNames;var vi=Object.getPrototypeOf,Si=Object.prototype.hasOwnProperty;var pe=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(i){throw t=0,i}};var _i=(e,t,i,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of bi(t))!Si.call(e,r)&&r!==i&&Qe(e,r,{get:()=>t[r],enumerable:!(o=yi(t,r))||o.enumerable});return e};var c=(e,t,i)=>(i=e!=null?mi(vi(e)):{},_i(t||!e||!e.__esModule?Qe(i,"default",{value:e,enumerable:!0}):i,e));var T=pe((Ri,Je)=>{Je.exports=ftGlobals.wcUtils});var D=pe((Li,Fe)=>{Fe.exports=ftGlobals.lit});var j=pe((Ni,et)=>{et.exports=ftGlobals.litDecorators});var it=pe((wi,tt)=>{tt.exports=ftGlobals.litRepeat});var ue=pe((Di,ot)=>{ot.exports=ftGlobals.litClassMap});var ii=pe((zo,ti)=>{ti.exports=ftGlobals.litUnsafeHTML});var gi=c(T());var C=c(D()),g=c(j()),ui=c(it()),ci=c(ue());var Ue=globalThis,rt=e=>e,$e=Ue.trustedTypes,nt=$e?$e.createPolicy("lit-html",{createHTML:e=>e}):void 0,dt="$lit$",Y=`lit$${Math.random().toFixed(9).slice(2)}$`,ht="?"+Y,Ai=`<${ht}>`,Q=document,Ee=()=>Q.createComment(""),xe=e=>e===null||typeof e!="object"&&typeof e!="function",Ve=Array.isArray,$i=e=>Ve(e)||typeof e?.[Symbol.iterator]=="function",Pe=`[
2
- \f\r]`,ce=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,st=/-->/g,lt=/>/g,I=RegExp(`>|${Pe}(?:([^\\s"'>=/]+)(${Pe}*=${Pe}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),at=/'/g,pt=/"/g,ut=/^(?:script|style|textarea|title)$/i,ke=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),ct=ke(1),xt=ke(2),gt=ke(3),ge=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),ft=new WeakMap,q=Q.createTreeWalker(Q,129);function mt(e,t){if(!Ve(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return nt!==void 0?nt.createHTML(t):t}var Ei=(e,t)=>{let i=e.length-1,o=[],r,n=t===2?"<svg>":t===3?"<math>":"",s=ce;for(let f=0;f<i;f++){let u=e[f],b,E,v=-1,k=0;for(;k<u.length&&(s.lastIndex=k,E=s.exec(u),E!==null);)k=s.lastIndex,s===ce?E[1]==="!--"?s=st:E[1]!==void 0?s=lt:E[2]!==void 0?(ut.test(E[2])&&(r=RegExp("</"+E[2],"g")),s=I):E[3]!==void 0&&(s=I):s===I?E[0]===">"?(s=r??ce,v=-1):E[1]===void 0?v=-2:(v=s.lastIndex-E[2].length,b=E[1],s=E[3]===void 0?I:E[3]==='"'?pt:at):s===pt||s===at?s=I:s===st||s===lt?s=ce:(s=I,r=void 0);let K=s===I&&e[f+1].startsWith("/>")?" ":"";n+=s===ce?u+Ai:v>=0?(o.push(b),u.slice(0,v)+dt+u.slice(v)+Y+K):u+Y+(v===-2?f:K)}return[mt(e,n+(e[i]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]},me=class e{constructor({strings:t,_$litType$:i},o){let r;this.parts=[];let n=0,s=0,f=t.length-1,u=this.parts,[b,E]=Ei(t,i);if(this.el=e.createElement(b,o),q.currentNode=this.el.content,i===2||i===3){let v=this.el.content.firstChild;v.replaceWith(...v.childNodes)}for(;(r=q.nextNode())!==null&&u.length<f;){if(r.nodeType===1){if(r.hasAttributes())for(let v of r.getAttributeNames())if(v.endsWith(dt)){let k=E[s++],K=r.getAttribute(v).split(Y),Ae=/([.?@])?(.*)/.exec(k);u.push({type:1,index:n,name:Ae[2],strings:K,ctor:Ae[1]==="."?Me:Ae[1]==="?"?Be:Ae[1]==="@"?ze:de}),r.removeAttribute(v)}else v.startsWith(Y)&&(u.push({type:6,index:n}),r.removeAttribute(v));if(ut.test(r.tagName)){let v=r.textContent.split(Y),k=v.length-1;if(k>0){r.textContent=$e?$e.emptyScript:"";for(let K=0;K<k;K++)r.append(v[K],Ee()),q.nextNode(),u.push({type:2,index:++n});r.append(v[k],Ee())}}}else if(r.nodeType===8)if(r.data===ht)u.push({type:2,index:n});else{let v=-1;for(;(v=r.data.indexOf(Y,v+1))!==-1;)u.push({type:7,index:n}),v+=Y.length-1}n++}}static createElement(t,i){let o=Q.createElement("template");return o.innerHTML=t,o}};function fe(e,t,i=e,o){if(t===ge)return t;let r=o!==void 0?i._$Co?.[o]:i._$Cl,n=xe(t)?void 0:t._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),n===void 0?r=void 0:(r=new n(e),r._$AT(e,i,o)),o!==void 0?(i._$Co??=[])[o]=r:i._$Cl=r),r!==void 0&&(t=fe(e,r._$AS(e,t.values),r,o)),t}var He=class{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:i},parts:o}=this._$AD,r=(t?.creationScope??Q).importNode(i,!0);q.currentNode=r;let n=q.nextNode(),s=0,f=0,u=o[0];for(;u!==void 0;){if(s===u.index){let b;u.type===2?b=new Ce(n,n.nextSibling,this,t):u.type===1?b=new u.ctor(n,u.name,u.strings,this,t):u.type===6&&(b=new We(n,this,t)),this._$AV.push(b),u=o[++f]}s!==u?.index&&(n=q.nextNode(),s++)}return q.currentNode=Q,r}p(t){let i=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,i),i+=o.strings.length-2):o._$AI(t[i])),i++}},Ce=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,o,r){this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,i=this._$AM;return i!==void 0&&t?.nodeType===11&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=fe(this,t,i),xe(t)?t===A||t==null||t===""?(this._$AH!==A&&this._$AR(),this._$AH=A):t!==this._$AH&&t!==ge&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):$i(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!==A&&xe(this._$AH)?this._$AA.nextSibling.data=t:this.T(Q.createTextNode(t)),this._$AH=t}$(t){let{values:i,_$litType$:o}=t,r=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=me.createElement(mt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(i);else{let n=new He(r,this),s=n.u(this.options);n.p(i),this.T(s),this._$AH=n}}_$AC(t){let i=ft.get(t.strings);return i===void 0&&ft.set(t.strings,i=new me(t)),i}k(t){Ve(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,o,r=0;for(let n of t)r===i.length?i.push(o=new e(this.O(Ee()),this.O(Ee()),this,this.options)):o=i[r],o._$AI(n),r++;r<i.length&&(this._$AR(o&&o._$AB.nextSibling,r),i.length=r)}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);t!==this._$AB;){let o=rt(t).nextSibling;rt(t).remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},de=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,o,r,n){this.type=1,this._$AH=A,this._$AN=void 0,this.element=t,this.name=i,this._$AM=r,this.options=n,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=A}_$AI(t,i=this,o,r){let n=this.strings,s=!1;if(n===void 0)t=fe(this,t,i,0),s=!xe(t)||t!==this._$AH&&t!==ge,s&&(this._$AH=t);else{let f=t,u,b;for(t=n[0],u=0;u<n.length-1;u++)b=fe(this,f[o+u],i,u),b===ge&&(b=this._$AH[u]),s||=!xe(b)||b!==this._$AH[u],b===A?t=A:t!==A&&(t+=(b??"")+n[u+1]),this._$AH[u]=b}s&&!r&&this.j(t)}j(t){t===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Me=class extends de{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===A?void 0:t}},Be=class extends de{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==A)}},ze=class extends de{constructor(t,i,o,r,n){super(t,i,o,r,n),this.type=5}_$AI(t,i=this){if((t=fe(this,t,i,0)??A)===ge)return;let o=this._$AH,r=t===A&&o!==A||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==A&&(o===A||r);r&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},We=class{constructor(t,i,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){fe(this,t)}};var Ci=Ue.litHtmlPolyfillSupport;Ci?.(me,Ce),(Ue.litHtmlVersions??=[]).push("3.3.3");var ye=e=>e??A;var L=c(T());var bt=Symbol.for(""),Ti=e=>{if(e?.r===bt)return e?._$litStatic$},Ge=e=>({_$litStatic$:e,r:bt});var yt=new Map,Ke=e=>(t,...i)=>{let o=i.length,r,n,s=[],f=[],u,b=0,E=!1;for(;b<o;){for(u=t[b];b<o&&(n=i[b],(r=Ti(n))!==void 0);)u+=r+t[++b],E=!0;b!==o&&f.push(n),s.push(u),b++}if(b===o&&s.push(t[o]),E){let v=s.join("$$lit$$");(t=yt.get(v))===void 0&&(s.raw=s,yt.set(v,t=s)),i=f}return e(t,...i)},je=Ke(ct),Ui=Ke(xt),Vi=Ke(gt);var Ye=c(j()),Nt=c(T());var he;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button"})(he||(he={}));var P=c(D()),l=c(T()),vt=l.FtCssVariableFactory.extend("--ft-typography-font-family","",l.designSystemVariables.titleFont),G=l.FtCssVariableFactory.extend("--ft-typography-font-family","",l.designSystemVariables.contentFont),p={fontFamily:G,fontSize:l.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:l.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:l.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:l.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:l.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:l.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},J={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-title-font-family","",vt),fontSize:l.FtCssVariableFactory.extend("--ft-typography-title-font-size","",p.fontSize,"20px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",p.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",p.letterSpacing,"0.15px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-title-line-height","",p.lineHeight,"1.2"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",p.textTransform,"inherit"),textDecoration:l.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",p.textDecoration,"inherit")},F={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",vt),fontSize:l.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",p.fontSize,"14px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",p.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",p.letterSpacing,"0.105px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",p.lineHeight,"1.7"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",p.textTransform,"inherit"),textDecoration:l.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",p.textDecoration,"inherit")},ee={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",G),fontSize:l.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",p.fontSize,"16px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",p.fontWeight,"600"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",p.letterSpacing,"0.144px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",p.lineHeight,"1.5"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",p.textTransform,"inherit"),textDecoration:l.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",p.textDecoration,"inherit")},te={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",G),fontSize:l.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",p.fontSize,"14px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",p.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",p.letterSpacing,"0.098px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",p.lineHeight,"1.7"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",p.textTransform,"inherit"),textDecoration:l.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",p.textDecoration,"inherit")},U={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",G),fontSize:l.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",p.fontSize,"16px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",p.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",p.letterSpacing,"0.496px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",p.lineHeight,"1.5"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",p.textTransform,"inherit"),textDecoration:l.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",p.textDecoration,"inherit")},ie={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",G),fontSize:l.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",p.fontSize,"14px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",p.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",p.letterSpacing,"0.252px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",p.lineHeight,"1.4"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",p.textTransform,"inherit"),textDecoration:l.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",p.textDecoration,"inherit")},N={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",G),fontSize:l.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",p.fontSize,"12px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",p.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",p.letterSpacing,"0.396px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",p.lineHeight,"1.33"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",p.textTransform,"inherit"),textDecoration:l.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",p.textDecoration,"inherit")},oe={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",G),fontSize:l.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",p.fontSize,"10px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",p.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",p.letterSpacing,"0.33px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",p.lineHeight,"1.6"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",p.textTransform,"inherit"),textDecoration:l.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",p.textDecoration,"inherit")},re={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",G),fontSize:l.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",p.fontSize,"10px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",p.fontWeight,"normal"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",p.letterSpacing,"1.5px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",p.lineHeight,"1.6"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",p.textTransform,"uppercase"),textDecoration:l.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",p.textDecoration,"inherit")},ne={fontFamily:l.FtCssVariableFactory.extend("--ft-typography-button-font-family","",G),fontSize:l.FtCssVariableFactory.extend("--ft-typography-button-font-size","",p.fontSize,"14px"),fontWeight:l.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",p.fontWeight,"600"),letterSpacing:l.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",p.letterSpacing,"1.246px"),lineHeight:l.FtCssVariableFactory.extend("--ft-typography-button-line-height","",p.lineHeight,"1.15"),textTransform:l.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",p.textTransform,"uppercase"),textDecoration:l.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",p.textDecoration,"inherit")},St=P.css`
1
+ "use strict";(()=>{var fc=Object.create;var zn=Object.defineProperty;var hc=Object.getOwnPropertyDescriptor;var mc=Object.getOwnPropertyNames;var gc=Object.getPrototypeOf,yc=Object.prototype.hasOwnProperty;var Pt=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var xc=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of mc(t))!yc.call(e,n)&&n!==r&&zn(e,n,{get:()=>t[n],enumerable:!(i=hc(t,n))||i.enumerable});return e};var f=(e,t,r)=>(r=e!=null?fc(gc(e)):{},xc(t||!e||!e.__esModule?zn(r,"default",{value:e,enumerable:!0}):r,e));var A=Pt((td,jn)=>{jn.exports=ftGlobals.wcUtils});var V=Pt((rd,Wn)=>{Wn.exports=ftGlobals.lit});var J=Pt((id,Kn)=>{Kn.exports=ftGlobals.litDecorators});var qn=Pt((nd,Gn)=>{Gn.exports=ftGlobals.litRepeat});var Nt=Pt((sd,Yn)=>{Yn.exports=ftGlobals.litClassMap});var qs=Pt((cp,Gs)=>{Gs.exports=ftGlobals.litUnsafeHTML});var uc=f(A());var q=f(V()),L=f(J()),ac=f(qn()),lc=f(Nt());var Hi=globalThis,Xn=e=>e,Tr=Hi.trustedTypes,Zn=Tr?Tr.createPolicy("lit-html",{createHTML:e=>e}):void 0,is="$lit$",Ke=`lit$${Math.random().toFixed(9).slice(2)}$`,ns="?"+Ke,vc=`<${ns}>`,st=document,Or=()=>st.createComment(""),Zt=e=>e===null||typeof e!="object"&&typeof e!="function",Fi=Array.isArray,bc=e=>Fi(e)||typeof e?.[Symbol.iterator]=="function",ki=`[
2
+ \f\r]`,Xt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Jn=/-->/g,Qn=/>/g,it=RegExp(`>|${ki}(?:([^\\s"'>=/]+)(${ki}*=${ki}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),es=/'/g,ts=/"/g,ss=/^(?:script|style|textarea|title)$/i,Vi=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),os=Vi(1),as=Vi(2),ls=Vi(3),Jt=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),rs=new WeakMap,nt=st.createTreeWalker(st,129);function cs(e,t){if(!Fi(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Zn!==void 0?Zn.createHTML(t):t}var Sc=(e,t)=>{let r=e.length-1,i=[],n,s=t===2?"<svg>":t===3?"<math>":"",o=Xt;for(let a=0;a<r;a++){let l=e[a],c,u,d=-1,p=0;for(;p<l.length&&(o.lastIndex=p,u=o.exec(l),u!==null);)p=o.lastIndex,o===Xt?u[1]==="!--"?o=Jn:u[1]!==void 0?o=Qn:u[2]!==void 0?(ss.test(u[2])&&(n=RegExp("</"+u[2],"g")),o=it):u[3]!==void 0&&(o=it):o===it?u[0]===">"?(o=n??Xt,d=-1):u[1]===void 0?d=-2:(d=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?it:u[3]==='"'?ts:es):o===ts||o===es?o=it:o===Jn||o===Qn?o=Xt:(o=it,n=void 0);let g=o===it&&e[a+1].startsWith("/>")?" ":"";s+=o===Xt?l+vc:d>=0?(i.push(c),l.slice(0,d)+is+l.slice(d)+Ke+g):l+Ke+(d===-2?a:g)}return[cs(e,s+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]},Qt=class e{constructor({strings:t,_$litType$:r},i){let n;this.parts=[];let s=0,o=0,a=t.length-1,l=this.parts,[c,u]=Sc(t,r);if(this.el=e.createElement(c,i),nt.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=nt.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let d of n.getAttributeNames())if(d.endsWith(is)){let p=u[o++],g=n.getAttribute(d).split(Ke),v=/([.?@])?(.*)/.exec(p);l.push({type:1,index:s,name:v[2],strings:g,ctor:v[1]==="."?Ii:v[1]==="?"?$i:v[1]==="@"?Ui:kt}),n.removeAttribute(d)}else d.startsWith(Ke)&&(l.push({type:6,index:s}),n.removeAttribute(d));if(ss.test(n.tagName)){let d=n.textContent.split(Ke),p=d.length-1;if(p>0){n.textContent=Tr?Tr.emptyScript:"";for(let g=0;g<p;g++)n.append(d[g],Or()),nt.nextNode(),l.push({type:2,index:++s});n.append(d[p],Or())}}}else if(n.nodeType===8)if(n.data===ns)l.push({type:2,index:s});else{let d=-1;for(;(d=n.data.indexOf(Ke,d+1))!==-1;)l.push({type:7,index:s}),d+=Ke.length-1}s++}}static createElement(t,r){let i=st.createElement("template");return i.innerHTML=t,i}};function Dt(e,t,r=e,i){if(t===Jt)return t;let n=i!==void 0?r._$Co?.[i]:r._$Cl,s=Zt(t)?void 0:t._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(e),n._$AT(e,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(t=Dt(e,n._$AS(e,t.values),n,i)),t}var Mi=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:i}=this._$AD,n=(t?.creationScope??st).importNode(r,!0);nt.currentNode=n;let s=nt.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new Rr(s,s.nextSibling,this,t):l.type===1?c=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(c=new Bi(s,this,t)),this._$AV.push(c),l=i[++a]}o!==l?.index&&(s=nt.nextNode(),o++)}return nt.currentNode=st,n}p(t){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,r),r+=i.strings.length-2):i._$AI(t[r])),r++}},Rr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,i,n){this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Dt(this,t,r),Zt(t)?t===W||t==null||t===""?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==Jt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):bc(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!==W&&Zt(this._$AH)?this._$AA.nextSibling.data=t:this.T(st.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Qt.createElement(cs(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let s=new Mi(n,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(t){let r=rs.get(t.strings);return r===void 0&&rs.set(t.strings,r=new Qt(t)),r}k(t){Fi(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let s of t)n===r.length?r.push(i=new e(this.O(Or()),this.O(Or()),this,this.options)):i=r[n],i._$AI(s),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let i=Xn(t).nextSibling;Xn(t).remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},kt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,i,n,s){this.type=1,this._$AH=W,this._$AN=void 0,this.element=t,this.name=r,this._$AM=n,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=W}_$AI(t,r=this,i,n){let s=this.strings,o=!1;if(s===void 0)t=Dt(this,t,r,0),o=!Zt(t)||t!==this._$AH&&t!==Jt,o&&(this._$AH=t);else{let a=t,l,c;for(t=s[0],l=0;l<s.length-1;l++)c=Dt(this,a[i+l],r,l),c===Jt&&(c=this._$AH[l]),o||=!Zt(c)||c!==this._$AH[l],c===W?t=W:t!==W&&(t+=(c??"")+s[l+1]),this._$AH[l]=c}o&&!n&&this.j(t)}j(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Ii=class extends kt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===W?void 0:t}},$i=class extends kt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==W)}},Ui=class extends kt{constructor(t,r,i,n,s){super(t,r,i,n,s),this.type=5}_$AI(t,r=this){if((t=Dt(this,t,r,0)??W)===Jt)return;let i=this._$AH,n=t===W&&i!==W||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,s=t!==W&&(i===W||n);n&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Bi=class{constructor(t,r,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Dt(this,t)}};var Ec=Hi.litHtmlPolyfillSupport;Ec?.(Qt,Rr),(Hi.litHtmlVersions??=[]).push("3.3.3");var Pe=e=>e??W;var le=f(A());var ds=Symbol.for(""),Ac=e=>{if(e?.r===ds)return e?._$litStatic$},zi=e=>({_$litStatic$:e,r:ds});var us=new Map,ji=e=>(t,...r)=>{let i=r.length,n,s,o=[],a=[],l,c=0,u=!1;for(;c<i;){for(l=t[c];c<i&&(s=r[c],(n=Ac(s))!==void 0);)l+=n+t[++c],u=!0;c!==i&&a.push(s),o.push(l),c++}if(c===i&&o.push(t[i]),u){let d=o.join("$$lit$$");(t=us.get(d))===void 0&&(o.raw=o,us.set(d,t=o)),r=a}return e(t,...r)},Wi=ji(os),pd=ji(as),fd=ji(ls);var Ki=f(J()),As=f(A());var ye;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button"})(ye||(ye={}));var xe=f(V()),h=f(A()),ps=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),Be=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),y={fontFamily:Be,fontSize:h.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:h.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:h.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:h.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:h.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:h.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},ot={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-font-family","",ps),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-font-size","",y.fontSize,"20px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",y.letterSpacing,"0.15px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-line-height","",y.lineHeight,"1.2"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",y.textDecoration,"inherit")},at={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",ps),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",y.letterSpacing,"0.105px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",y.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",y.textDecoration,"inherit")},lt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Be),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",y.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",y.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",y.letterSpacing,"0.144px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",y.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",y.textDecoration,"inherit")},ct={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Be),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",y.letterSpacing,"0.098px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",y.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",y.textDecoration,"inherit")},Ne={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Be),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",y.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",y.letterSpacing,"0.496px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",y.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",y.textDecoration,"inherit")},ut={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Be),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",y.letterSpacing,"0.252px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",y.lineHeight,"1.4"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",y.textDecoration,"inherit")},ce={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Be),fontSize:h.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",y.fontSize,"12px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",y.letterSpacing,"0.396px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",y.lineHeight,"1.33"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",y.textDecoration,"inherit")},dt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Be),fontSize:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",y.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",y.letterSpacing,"0.33px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",y.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",y.textDecoration,"inherit")},pt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Be),fontSize:h.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",y.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",y.letterSpacing,"1.5px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",y.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",y.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",y.textDecoration,"inherit")},_e={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Be),fontSize:h.FtCssVariableFactory.extend("--ft-typography-button-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",y.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",y.letterSpacing,"1.246px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-button-line-height","",y.lineHeight,"1.15"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",y.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",y.textDecoration,"inherit")},fs=xe.css`
4
4
  .ft-typography--title {
5
- font-family: ${J.fontFamily};
6
- font-size: ${J.fontSize};
7
- font-weight: ${J.fontWeight};
8
- letter-spacing: ${J.letterSpacing};
9
- line-height: ${J.lineHeight};
10
- text-transform: ${J.textTransform};
11
- text-decoration: ${J.textDecoration};
12
- }
13
- `,_t=P.css`
5
+ font-family: ${ot.fontFamily};
6
+ font-size: ${ot.fontSize};
7
+ font-weight: ${ot.fontWeight};
8
+ letter-spacing: ${ot.letterSpacing};
9
+ line-height: ${ot.lineHeight};
10
+ text-transform: ${ot.textTransform};
11
+ text-decoration: ${ot.textDecoration};
12
+ }
13
+ `,hs=xe.css`
14
14
  .ft-typography--title-dense {
15
- font-family: ${F.fontFamily};
16
- font-size: ${F.fontSize};
17
- font-weight: ${F.fontWeight};
18
- letter-spacing: ${F.letterSpacing};
19
- line-height: ${F.lineHeight};
20
- text-transform: ${F.textTransform};
21
- text-decoration: ${F.textDecoration};
22
- }
23
- `,At=P.css`
15
+ font-family: ${at.fontFamily};
16
+ font-size: ${at.fontSize};
17
+ font-weight: ${at.fontWeight};
18
+ letter-spacing: ${at.letterSpacing};
19
+ line-height: ${at.lineHeight};
20
+ text-transform: ${at.textTransform};
21
+ text-decoration: ${at.textDecoration};
22
+ }
23
+ `,ms=xe.css`
24
24
  .ft-typography--subtitle1 {
25
- font-family: ${ee.fontFamily};
26
- font-size: ${ee.fontSize};
27
- font-weight: ${ee.fontWeight};
28
- letter-spacing: ${ee.letterSpacing};
29
- line-height: ${ee.lineHeight};
30
- text-transform: ${ee.textTransform};
31
- text-decoration: ${ee.textDecoration};
32
- }
33
- `,$t=P.css`
25
+ font-family: ${lt.fontFamily};
26
+ font-size: ${lt.fontSize};
27
+ font-weight: ${lt.fontWeight};
28
+ letter-spacing: ${lt.letterSpacing};
29
+ line-height: ${lt.lineHeight};
30
+ text-transform: ${lt.textTransform};
31
+ text-decoration: ${lt.textDecoration};
32
+ }
33
+ `,gs=xe.css`
34
34
  .ft-typography--subtitle2 {
35
- font-family: ${te.fontFamily};
36
- font-size: ${te.fontSize};
37
- font-weight: ${te.fontWeight};
38
- letter-spacing: ${te.letterSpacing};
39
- line-height: ${te.lineHeight};
40
- text-transform: ${te.textTransform};
41
- text-decoration: ${te.textDecoration};
35
+ font-family: ${ct.fontFamily};
36
+ font-size: ${ct.fontSize};
37
+ font-weight: ${ct.fontWeight};
38
+ letter-spacing: ${ct.letterSpacing};
39
+ line-height: ${ct.lineHeight};
40
+ text-transform: ${ct.textTransform};
41
+ text-decoration: ${ct.textDecoration};
42
42
  }
43
43
 
44
- `,Te=P.css`
44
+ `,Lr=xe.css`
45
45
  .ft-typography--body1 {
46
- font-family: ${U.fontFamily};
47
- font-size: ${U.fontSize};
48
- font-weight: ${U.fontWeight};
49
- letter-spacing: ${U.letterSpacing};
50
- line-height: ${U.lineHeight};
51
- text-transform: ${U.textTransform};
52
- text-decoration: ${U.textDecoration};
53
- }
54
- `,Et=P.css`
46
+ font-family: ${Ne.fontFamily};
47
+ font-size: ${Ne.fontSize};
48
+ font-weight: ${Ne.fontWeight};
49
+ letter-spacing: ${Ne.letterSpacing};
50
+ line-height: ${Ne.lineHeight};
51
+ text-transform: ${Ne.textTransform};
52
+ text-decoration: ${Ne.textDecoration};
53
+ }
54
+ `,ys=xe.css`
55
55
  .ft-typography--body2 {
56
- font-family: ${ie.fontFamily};
57
- font-size: ${ie.fontSize};
58
- font-weight: ${ie.fontWeight};
59
- letter-spacing: ${ie.letterSpacing};
60
- line-height: ${ie.lineHeight};
61
- text-transform: ${ie.textTransform};
62
- text-decoration: ${ie.textDecoration};
63
- }
64
- `,Oe=P.css`
56
+ font-family: ${ut.fontFamily};
57
+ font-size: ${ut.fontSize};
58
+ font-weight: ${ut.fontWeight};
59
+ letter-spacing: ${ut.letterSpacing};
60
+ line-height: ${ut.lineHeight};
61
+ text-transform: ${ut.textTransform};
62
+ text-decoration: ${ut.textDecoration};
63
+ }
64
+ `,Pr=xe.css`
65
65
  .ft-typography--caption {
66
- font-family: ${N.fontFamily};
67
- font-size: ${N.fontSize};
68
- font-weight: ${N.fontWeight};
69
- letter-spacing: ${N.letterSpacing};
70
- line-height: ${N.lineHeight};
71
- text-transform: ${N.textTransform};
72
- text-decoration: ${N.textDecoration};
73
- }
74
- `,Ct=P.css`
66
+ font-family: ${ce.fontFamily};
67
+ font-size: ${ce.fontSize};
68
+ font-weight: ${ce.fontWeight};
69
+ letter-spacing: ${ce.letterSpacing};
70
+ line-height: ${ce.lineHeight};
71
+ text-transform: ${ce.textTransform};
72
+ text-decoration: ${ce.textDecoration};
73
+ }
74
+ `,xs=xe.css`
75
75
  .ft-typography--breadcrumb {
76
- font-family: ${oe.fontFamily};
77
- font-size: ${oe.fontSize};
78
- font-weight: ${oe.fontWeight};
79
- letter-spacing: ${oe.letterSpacing};
80
- line-height: ${oe.lineHeight};
81
- text-transform: ${oe.textTransform};
82
- text-decoration: ${oe.textDecoration};
83
- }
84
- `,Tt=P.css`
76
+ font-family: ${dt.fontFamily};
77
+ font-size: ${dt.fontSize};
78
+ font-weight: ${dt.fontWeight};
79
+ letter-spacing: ${dt.letterSpacing};
80
+ line-height: ${dt.lineHeight};
81
+ text-transform: ${dt.textTransform};
82
+ text-decoration: ${dt.textDecoration};
83
+ }
84
+ `,vs=xe.css`
85
85
  .ft-typography--overline {
86
- font-family: ${re.fontFamily};
87
- font-size: ${re.fontSize};
88
- font-weight: ${re.fontWeight};
89
- letter-spacing: ${re.letterSpacing};
90
- line-height: ${re.lineHeight};
91
- text-transform: ${re.textTransform};
92
- text-decoration: ${re.textDecoration};
93
- }
94
- `,Ot=P.css`
86
+ font-family: ${pt.fontFamily};
87
+ font-size: ${pt.fontSize};
88
+ font-weight: ${pt.fontWeight};
89
+ letter-spacing: ${pt.letterSpacing};
90
+ line-height: ${pt.lineHeight};
91
+ text-transform: ${pt.textTransform};
92
+ text-decoration: ${pt.textDecoration};
93
+ }
94
+ `,bs=xe.css`
95
95
  .ft-typography--button {
96
- font-family: ${ne.fontFamily};
97
- font-size: ${ne.fontSize};
98
- font-weight: ${ne.fontWeight};
99
- letter-spacing: ${ne.letterSpacing};
100
- line-height: ${ne.lineHeight};
101
- text-transform: ${ne.textTransform};
102
- text-decoration: ${ne.textDecoration};
103
- }
104
- `,Rt=P.css`
96
+ font-family: ${_e.fontFamily};
97
+ font-size: ${_e.fontSize};
98
+ font-weight: ${_e.fontWeight};
99
+ letter-spacing: ${_e.letterSpacing};
100
+ line-height: ${_e.lineHeight};
101
+ text-transform: ${_e.textTransform};
102
+ text-decoration: ${_e.textDecoration};
103
+ }
104
+ `,Ss=xe.css`
105
105
  .ft-typography {
106
106
  vertical-align: inherit;
107
107
  }
108
- `;var Lt=function(e,t,i,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,i):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,i,o);else for(var f=e.length-1;f>=0;f--)(s=e[f])&&(n=(r<3?s(n):r>3?s(t,i,n):s(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n},M=class extends Nt.FtLitElement{constructor(){super(...arguments),this.variant=he.body1}render(){return this.element?je`
109
- <${Ge(this.element)}
108
+ `;var Es=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},ie=class extends As.FtLitElement{constructor(){super(...arguments),this.variant=ye.body1}render(){return this.element?Wi`
109
+ <${zi(this.element)}
110
110
  part="text"
111
111
  class="ft-typography ft-typography--${this.variant}">
112
112
  <slot></slot>
113
- </${Ge(this.element)}>
114
- `:je`
113
+ </${zi(this.element)}>
114
+ `:Wi`
115
115
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
116
- `}};M.styles=[St,_t,At,$t,Te,Et,Oe,Ct,Tt,Ot,Rt];Lt([(0,Ye.property)()],M.prototype,"element",void 0);Lt([(0,Ye.property)()],M.prototype,"variant",void 0);var Dt=c(T());var wt={"ft-typography":M};(0,Dt.customElements)(wt);var Re=c(j());var Pt=c(D()),S=c(T());var m={fontSize:S.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:S.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:S.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:S.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:S.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:S.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:S.FtCssVariableFactory.extend("--ft-input-label-border-color","",S.designSystemVariables.colorOutline),textColor:S.FtCssVariableFactory.extend("--ft-input-label-text-color","",S.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:S.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",S.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:S.FtCssVariableFactory.extend("--ft-input-label-background-color","",S.designSystemVariables.colorSurface),borderRadius:S.FtCssVariableFactory.extend("--ft-input-label-border-radius","",S.designSystemVariables.borderRadiusS),colorError:S.FtCssVariableFactory.external(S.designSystemVariables.colorError,"Design system")},Ht=Pt.css`
116
+ `}};ie.styles=[fs,hs,ms,gs,Lr,ys,Pr,xs,vs,bs,Ss];Es([(0,Ki.property)()],ie.prototype,"element",void 0);Es([(0,Ki.property)()],ie.prototype,"variant",void 0);var Cs=f(A());var _s={"ft-typography":ie};(0,Cs.customElements)(_s);var Nr=f(J());var ws=f(V()),B=f(A());var N={fontSize:B.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:B.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:B.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:B.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:B.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:B.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:B.FtCssVariableFactory.extend("--ft-input-label-border-color","",B.designSystemVariables.colorOutline),textColor:B.FtCssVariableFactory.extend("--ft-input-label-text-color","",B.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:B.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",B.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:B.FtCssVariableFactory.extend("--ft-input-label-background-color","",B.designSystemVariables.colorSurface),borderRadius:B.FtCssVariableFactory.extend("--ft-input-label-border-radius","",B.designSystemVariables.borderRadiusS),colorError:B.FtCssVariableFactory.external(B.designSystemVariables.colorError,"Design system")},Ts=ws.css`
117
117
  .ft-input-label {
118
118
  position: absolute;
119
119
  inset: 0;
120
120
  display: flex;
121
- background-color: ${m.backgroundColor};
122
- border-radius: ${m.borderRadius} ${m.borderRadius} 0 0;
121
+ background-color: ${N.backgroundColor};
122
+ border-radius: ${N.borderRadius} ${N.borderRadius} 0 0;
123
123
  }
124
124
 
125
125
  .ft-input-label--outlined {
126
- border-radius: ${m.borderRadius};
126
+ border-radius: ${N.borderRadius};
127
127
  }
128
128
 
129
129
  .ft-input-label {
130
- border-color: ${m.borderColor};
130
+ border-color: ${N.borderColor};
131
131
  }
132
132
 
133
133
  .ft-input-label.ft-input-label--in-error {
134
- border-color: ${m.colorError}
134
+ border-color: ${N.colorError}
135
135
  }
136
136
 
137
137
  .ft-input-label:before,
@@ -144,7 +144,7 @@
144
144
  }
145
145
 
146
146
  .ft-input-label:before {
147
- width: calc(${m.horizontalSpacing} - 4px);
147
+ width: calc(${N.horizontalSpacing} - 4px);
148
148
  flex-shrink: 0;
149
149
  }
150
150
 
@@ -160,20 +160,20 @@
160
160
  border-bottom-width: 1px;
161
161
  border-bottom-style: solid;
162
162
  border-color: inherit;
163
- color: ${m.textColor};
163
+ color: ${N.textColor};
164
164
  transition: font-size 250ms, line-height 250ms, color 250ms;
165
- max-width: calc(${m.labelMaxWidth} - 2 * (${m.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
165
+ max-width: calc(${N.labelMaxWidth} - 2 * (${N.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
166
166
  text-overflow: ellipsis;
167
- ${(0,S.setVariable)(N.fontSize,m.fontSize)};
168
- ${(0,S.setVariable)(N.lineHeight,m.fontSize)};
167
+ ${(0,B.setVariable)(ce.fontSize,N.fontSize)};
168
+ ${(0,B.setVariable)(ce.lineHeight,N.fontSize)};
169
169
  }
170
170
 
171
171
  .ft-input-label--in-error .ft-input-label--text {
172
- color: ${m.colorError}
172
+ color: ${N.colorError}
173
173
  }
174
174
 
175
175
  .ft-input-label--disabled .ft-input-label--text {
176
- color: ${m.disabledTextColor};
176
+ color: ${N.disabledTextColor};
177
177
  }
178
178
 
179
179
  .ft-input-label--hidden-text {
@@ -185,24 +185,24 @@
185
185
 
186
186
  .ft-input-label--floating-text {
187
187
  position: absolute;
188
- top: calc(50% - ${N.lineHeight} / 2);
188
+ top: calc(50% - ${ce.lineHeight} / 2);
189
189
  transition: top 250ms;
190
190
  overflow: hidden;
191
191
  white-space: nowrap;
192
192
  text-overflow: ellipsis;
193
- padding: ${m.verticalSpacing} 4px;
194
- margin: calc(${m.verticalSpacing} * -1) 0;
193
+ padding: ${N.verticalSpacing} 4px;
194
+ margin: calc(${N.verticalSpacing} * -1) 0;
195
195
  max-width: 100%;
196
196
  box-sizing: border-box;
197
197
  }
198
198
 
199
199
  .ft-input-label--raised .ft-input-label--text {
200
- ${(0,S.setVariable)(N.fontSize,m.raisedFontSize)};
201
- ${(0,S.setVariable)(N.lineHeight,m.raisedFontSize)};
200
+ ${(0,B.setVariable)(ce.fontSize,N.raisedFontSize)};
201
+ ${(0,B.setVariable)(ce.lineHeight,N.raisedFontSize)};
202
202
  }
203
203
 
204
204
  .ft-input-label--raised .ft-input-label--floating-text {
205
- top: ${m.verticalSpacing};
205
+ top: ${N.verticalSpacing};
206
206
  }
207
207
 
208
208
  .ft-input-label--outlined .ft-input-label--text,
@@ -215,36 +215,36 @@
215
215
  .ft-input-label--outlined:before {
216
216
  border-left-width: 1px;
217
217
  border-left-style: solid;
218
- border-radius: ${m.borderRadius} 0 0 ${m.borderRadius};
218
+ border-radius: ${N.borderRadius} 0 0 ${N.borderRadius};
219
219
  }
220
220
 
221
221
  .ft-input-label--outlined:after {
222
222
  border-right-width: 1px;
223
223
  border-right-style: solid;
224
- border-radius: 0 ${m.borderRadius} ${m.borderRadius} 0;
224
+ border-radius: 0 ${N.borderRadius} ${N.borderRadius} 0;
225
225
  }
226
226
 
227
227
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
228
228
  padding: 2px 4px;
229
- z-index: ${m.raisedZIndex};
230
- background-color: ${m.backgroundColor};
231
- border-radius: ${m.borderRadius};
232
- top: calc((${N.lineHeight} / -2) + 2px);
229
+ z-index: ${N.raisedZIndex};
230
+ background-color: ${N.backgroundColor};
231
+ border-radius: ${N.borderRadius};
232
+ top: calc((${ce.lineHeight} / -2) + 2px);
233
233
  }
234
234
 
235
235
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
236
236
  border-top: none;
237
237
  }
238
- `;var Ze=c(D()),Xe=c(j());function Mt(e,t,i){return e?t(e):i?.(e)}var zt=c(ue()),Wt=c(T()),Bt=function(e,t,i,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,i):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,i,o);else for(var f=e.length-1;f>=0;f--)(s=e[f])&&(n=(r<3?s(n):r>3?s(t,i,n):s(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n},se=class extends Wt.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return Ze.html`
239
- <div class="${(0,zt.classMap)(this.inputLabelClasses)}">
240
- ${Mt(this.text,()=>Ze.html`
238
+ `;var Gi=f(V()),qi=f(J());function Os(e,t,r){return e?t(e):r?.(e)}var Ls=f(Nt()),Ps=f(A()),Rs=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},ft=class extends Ps.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return Gi.html`
239
+ <div class="${(0,Ls.classMap)(this.inputLabelClasses)}">
240
+ ${Os(this.text,()=>Gi.html`
241
241
  <div class="ft-input-label--text ft-typography--caption">
242
242
  <label class="ft-input-label--floating-text">${this.text}</label>
243
243
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
244
244
  </div>
245
245
  `)}
246
246
  </div>
247
- `}};se.elementDefinitions={};Bt([(0,Xe.property)({type:String})],se.prototype,"text",void 0);Bt([(0,Xe.property)({type:Boolean})],se.prototype,"raised",void 0);var Ie=function(e,t,i,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,i):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,i,o);else for(var f=e.length-1;f>=0;f--)(s=e[f])&&(n=(r<3?s(n):r>3?s(t,i,n):s(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n},B=class extends se{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};B.elementDefinitions={};B.styles=[Oe,Ht];Ie([(0,Re.property)({type:Boolean})],B.prototype,"outlined",void 0);Ie([(0,Re.property)({type:Boolean})],B.prototype,"error",void 0);Ie([(0,Re.property)({type:Boolean})],B.prototype,"disabled",void 0);var Vt=c(T());var Ut={"ft-input-label":B};(0,Vt.customElements)(Ut);var It=c(D()),O=c(j()),qt=c(ue()),be=c(T());var Zt=c(D()),$=c(T()),kt=$.FtCssVariableFactory.extend("--ft-ripple-color","",$.designSystemVariables.colorContent),V={color:kt,backgroundColor:$.FtCssVariableFactory.extend("--ft-ripple-background-color","",kt),opacityContentOnSurfacePressed:$.FtCssVariableFactory.external($.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:$.FtCssVariableFactory.external($.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:$.FtCssVariableFactory.external($.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:$.FtCssVariableFactory.external($.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:$.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Gt=$.FtCssVariableFactory.extend("--ft-ripple-color","",$.designSystemVariables.colorPrimary),Kt={color:Gt,backgroundColor:$.FtCssVariableFactory.extend("--ft-ripple-background-color","",Gt)},jt=$.FtCssVariableFactory.extend("--ft-ripple-color","",$.designSystemVariables.colorSecondary),Yt={color:jt,backgroundColor:$.FtCssVariableFactory.extend("--ft-ripple-background-color","",jt)},Xt=Zt.css`
247
+ `}};ft.elementDefinitions={};Rs([(0,qi.property)({type:String})],ft.prototype,"text",void 0);Rs([(0,qi.property)({type:Boolean})],ft.prototype,"raised",void 0);var Yi=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},Ce=class extends ft{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};Ce.elementDefinitions={};Ce.styles=[Pr,Ts];Yi([(0,Nr.property)({type:Boolean})],Ce.prototype,"outlined",void 0);Yi([(0,Nr.property)({type:Boolean})],Ce.prototype,"error",void 0);Yi([(0,Nr.property)({type:Boolean})],Ce.prototype,"disabled",void 0);var Ds=f(A());var Ns={"ft-input-label":Ce};(0,Ds.customElements)(Ns);var Fs=f(V()),Q=f(J()),Vs=f(Nt()),er=f(A());var Bs=f(V()),K=f(A()),ks=K.FtCssVariableFactory.extend("--ft-ripple-color","",K.designSystemVariables.colorContent),ne={color:ks,backgroundColor:K.FtCssVariableFactory.extend("--ft-ripple-background-color","",ks),opacityContentOnSurfacePressed:K.FtCssVariableFactory.external(K.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:K.FtCssVariableFactory.external(K.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:K.FtCssVariableFactory.external(K.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:K.FtCssVariableFactory.external(K.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:K.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Ms=K.FtCssVariableFactory.extend("--ft-ripple-color","",K.designSystemVariables.colorPrimary),Is={color:Ms,backgroundColor:K.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ms)},$s=K.FtCssVariableFactory.extend("--ft-ripple-color","",K.designSystemVariables.colorSecondary),Us={color:$s,backgroundColor:K.FtCssVariableFactory.extend("--ft-ripple-background-color","",$s)},Hs=Bs.css`
248
248
  :host {
249
249
  display: contents;
250
250
  }
@@ -257,7 +257,7 @@
257
257
 
258
258
  .ft-ripple:not(.ft-ripple--unbounded) {
259
259
  overflow: hidden;
260
- border-radius: ${V.borderRadius};
260
+ border-radius: ${ne.borderRadius};
261
261
  }
262
262
 
263
263
  .ft-ripple .ft-ripple--background,
@@ -291,27 +291,27 @@
291
291
  }
292
292
 
293
293
  .ft-ripple .ft-ripple--background {
294
- background-color: ${V.backgroundColor};
294
+ background-color: ${ne.backgroundColor};
295
295
  }
296
296
 
297
297
  .ft-ripple .ft-ripple--effect {
298
- background-color: ${V.color};
298
+ background-color: ${ne.color};
299
299
  }
300
300
 
301
301
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
302
- background-color: ${Yt.backgroundColor};
302
+ background-color: ${Us.backgroundColor};
303
303
  }
304
304
 
305
305
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
306
- background-color: ${Yt.color};
306
+ background-color: ${Us.color};
307
307
  }
308
308
 
309
309
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
310
- background-color: ${Kt.backgroundColor};
310
+ background-color: ${Is.backgroundColor};
311
311
  }
312
312
 
313
313
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
314
- background-color: ${Kt.color};
314
+ background-color: ${Is.color};
315
315
  }
316
316
 
317
317
  .ft-ripple .ft-ripple--background {
@@ -341,33 +341,33 @@
341
341
  }
342
342
 
343
343
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
344
- opacity: ${V.opacityContentOnSurfaceHover};
344
+ opacity: ${ne.opacityContentOnSurfaceHover};
345
345
  }
346
346
 
347
347
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
348
- opacity: ${V.opacityContentOnSurfaceSelected};
348
+ opacity: ${ne.opacityContentOnSurfaceSelected};
349
349
  }
350
350
 
351
351
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
352
- opacity: ${V.opacityContentOnSurfaceFocused};
352
+ opacity: ${ne.opacityContentOnSurfaceFocused};
353
353
  }
354
354
 
355
355
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
356
- opacity: ${V.opacityContentOnSurfacePressed};
356
+ opacity: ${ne.opacityContentOnSurfacePressed};
357
357
  transform: translate(-50%, -50%) scale(1);
358
358
  }
359
- `;var w=function(e,t,i,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,i):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,i,o);else for(var f=e.length-1;f>=0;f--)(s=e[f])&&(n=(r<3?s(n):r>3?s(t,i,n):s(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n},_=class extends be.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new be.Debouncer(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new be.Debouncer(10),this.moveRipple=t=>{var i,o;let{x:r,y:n}=this.getCoordinates(t),s=(o=(i=this.ripple)===null||i===void 0?void 0:i.getBoundingClientRect())!==null&&o!==void 0?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(r!=null?r-s.x:s.width/2),this.originY=Math.round(n!=null?n-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return It.html`
359
+ `;var ue=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},$=class extends er.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new er.Debouncer(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new er.Debouncer(10),this.moveRipple=t=>{var r,i;let{x:n,y:s}=this.getCoordinates(t),o=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-o.x:o.width/2),this.originY=Math.round(s!=null?s-o.y:o.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Fs.html`
360
360
  <style>
361
361
  .ft-ripple .ft-ripple--effect {
362
362
  left: ${this.originX}px;
363
363
  top: ${this.originY}px;
364
364
  }
365
365
  </style>
366
- <div class="${(0,qt.classMap)(t)}">
366
+ <div class="${(0,Vs.classMap)(t)}">
367
367
  <div class="ft-ripple--background"></div>
368
368
  <div class="ft-ripple--effect"></div>
369
369
  </div>
370
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var i,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(i=this.target)===null||i===void 0||i.removeAttribute("data-is-ft-ripple-target")):(o=this.target)===null||o===void 0||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,i;let o=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;o&&this.setupFor((i=this.target)!==null&&i!==void 0?i:o)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let i=(...f)=>u=>{f.forEach(b=>window.addEventListener(b,this.endPress,{once:!0})),this.startPress(u)},o=i("mouseup","contextmenu"),r=i("touchend","touchcancel"),n=f=>{["Enter"," "].includes(f.key)&&i("keyup")(f)},s={passive:!0};t.addEventListener("mouseover",this.startHover,s),t.addEventListener("mousemove",this.moveRipple,s),t.addEventListener("mouseleave",this.endHover,s),t.addEventListener("mousedown",o,s),t.addEventListener("touchstart",r,s),t.addEventListener("touchmove",this.moveRipple,s),t.addEventListener("keydown",n,s),t.addEventListener("focus",this.startFocus,s),t.addEventListener("blur",this.endFocus,s),t.addEventListener("focusin",this.startFocus,s),t.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,s),t.removeEventListener("mousemove",this.moveRipple,s),t.removeEventListener("mouseleave",this.endHover,s),t.removeEventListener("mousedown",o,s),t.removeEventListener("touchstart",r,s),t.removeEventListener("touchmove",this.moveRipple,s),t.removeEventListener("keydown",n,s),t.removeEventListener("focus",this.startFocus,s),t.removeEventListener("blur",this.endFocus,s),t.removeEventListener("focusin",this.startFocus,s),t.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let i=t,o=t,r,n;return i.x!=null?{x:r,y:n}=i:o.touches!=null&&(r=o.touches[0].clientX,n=o.touches[0].clientY),{x:r,y:n}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};_.elementDefinitions={};_.styles=Xt;w([(0,O.property)({type:Boolean})],_.prototype,"primary",void 0);w([(0,O.property)({type:Boolean})],_.prototype,"secondary",void 0);w([(0,O.property)({type:Boolean})],_.prototype,"unbounded",void 0);w([(0,O.property)({type:Boolean})],_.prototype,"activated",void 0);w([(0,O.property)({type:Boolean})],_.prototype,"selected",void 0);w([(0,O.property)({type:Boolean})],_.prototype,"disabled",void 0);w([(0,O.state)()],_.prototype,"hovered",void 0);w([(0,O.state)()],_.prototype,"focused",void 0);w([(0,O.state)()],_.prototype,"pressed",void 0);w([(0,O.state)()],_.prototype,"rippling",void 0);w([(0,O.state)()],_.prototype,"originX",void 0);w([(0,O.state)()],_.prototype,"originY",void 0);w([(0,O.query)(".ft-ripple")],_.prototype,"ripple",void 0);w([(0,O.query)(".ft-ripple--effect")],_.prototype,"rippleEffect",void 0);var Jt=c(T());var Qt={"ft-ripple":_};(0,Jt.customElements)(Qt);var Ft=c(D()),W=c(T()),z={size:W.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:W.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",W.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:W.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",W.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:W.FtCssVariableFactory.extend("--ft-icon-material-font-family","",W.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:W.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},ei=[Ft.css`
370
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var r,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,r;let i=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),s=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},o={passive:!0};t.addEventListener("mouseover",this.startHover,o),t.addEventListener("mousemove",this.moveRipple,o),t.addEventListener("mouseleave",this.endHover,o),t.addEventListener("mousedown",i,o),t.addEventListener("touchstart",n,o),t.addEventListener("touchmove",this.moveRipple,o),t.addEventListener("keydown",s,o),t.addEventListener("focus",this.startFocus,o),t.addEventListener("blur",this.endFocus,o),t.addEventListener("focusin",this.startFocus,o),t.addEventListener("focusout",this.endFocus,o),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,o),t.removeEventListener("mousemove",this.moveRipple,o),t.removeEventListener("mouseleave",this.endHover,o),t.removeEventListener("mousedown",i,o),t.removeEventListener("touchstart",n,o),t.removeEventListener("touchmove",this.moveRipple,o),t.removeEventListener("keydown",s,o),t.removeEventListener("focus",this.startFocus,o),t.removeEventListener("blur",this.endFocus,o),t.removeEventListener("focusin",this.startFocus,o),t.removeEventListener("focusout",this.endFocus,o),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let r=t,i=t,n,s;return r.x!=null?{x:n,y:s}=r:i.touches!=null&&(n=i.touches[0].clientX,s=i.touches[0].clientY),{x:n,y:s}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let r of t.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};$.elementDefinitions={};$.styles=Hs;ue([(0,Q.property)({type:Boolean})],$.prototype,"primary",void 0);ue([(0,Q.property)({type:Boolean})],$.prototype,"secondary",void 0);ue([(0,Q.property)({type:Boolean})],$.prototype,"unbounded",void 0);ue([(0,Q.property)({type:Boolean})],$.prototype,"activated",void 0);ue([(0,Q.property)({type:Boolean})],$.prototype,"selected",void 0);ue([(0,Q.property)({type:Boolean})],$.prototype,"disabled",void 0);ue([(0,Q.state)()],$.prototype,"hovered",void 0);ue([(0,Q.state)()],$.prototype,"focused",void 0);ue([(0,Q.state)()],$.prototype,"pressed",void 0);ue([(0,Q.state)()],$.prototype,"rippling",void 0);ue([(0,Q.state)()],$.prototype,"originX",void 0);ue([(0,Q.state)()],$.prototype,"originY",void 0);ue([(0,Q.query)(".ft-ripple")],$.prototype,"ripple",void 0);ue([(0,Q.query)(".ft-ripple--effect")],$.prototype,"rippleEffect",void 0);var js=f(A());var zs={"ft-ripple":$};(0,js.customElements)(zs);var Ws=f(V()),we=f(A()),pe={size:we.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:we.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",we.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:we.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",we.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:we.FtCssVariableFactory.extend("--ft-icon-material-font-family","",we.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:we.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Ks=[Ws.css`
371
371
  :host, i.ft-icon {
372
372
  display: inline-flex;
373
373
  align-items: center;
@@ -376,14 +376,14 @@
376
376
  }
377
377
 
378
378
  :host {
379
- width: ${z.size};
380
- height: ${z.size};
379
+ width: ${pe.size};
380
+ height: ${pe.size};
381
381
  }
382
382
 
383
383
  i.ft-icon {
384
384
  width: 100%;
385
385
  height: 100%;
386
- font-size: ${z.size};
386
+ font-size: ${pe.size};
387
387
  line-height: 1;
388
388
  font-weight: normal;
389
389
  text-transform: none;
@@ -394,33 +394,33 @@
394
394
  text-rendering: auto;
395
395
  -webkit-font-smoothing: antialiased;
396
396
  -moz-osx-font-smoothing: grayscale;
397
- vertical-align: ${z.verticalAlign};
397
+ vertical-align: ${pe.verticalAlign};
398
398
  }
399
399
 
400
400
  i.ft-icon.ft-icon--fluid-topics {
401
- font-family: ${z.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
401
+ font-family: ${pe.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
402
402
 
403
403
  /* Ugly fix because font is broken */
404
- font-size: calc(0.75 * ${z.size});
405
- line-height: ${z.size};
404
+ font-size: calc(0.75 * ${pe.size});
405
+ line-height: ${pe.size};
406
406
  position: relative;
407
407
  top: -4%;
408
408
  justify-content: center;
409
409
  }
410
410
 
411
411
  .ft-icon--file-format {
412
- font-family: ${z.fileFormatFontFamily}, ft-mime, sans-serif;
412
+ font-family: ${pe.fileFormatFontFamily}, ft-mime, sans-serif;
413
413
  }
414
414
 
415
415
  .ft-icon--material {
416
- font-family: ${z.materialFontFamily}, "Material Icons", sans-serif;
416
+ font-family: ${pe.materialFontFamily}, "Material Icons", sans-serif;
417
417
  }
418
- `,W.noTextSelect];var Z;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Z||(Z={}));var ve=c(D()),X=c(j()),oi=c(T()),ri=c(ii());var le;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.COMPRESS="&#xe9a2;",e.EXPAND="&#xe9a3;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.MOBILE_SMALL="&#xe9a5;",e.SPARKLES="&#xe9a6;",e.HAND_SOLID="&#xe9a7;",e.CLOCK_SOLID="&#xe9a8;",e.CONTEXT_MENU_CURSOR="&#xe9a9;",e.LANGUAGE_SLASH="&#xe9aa;",e.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",e.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",e.BOOKMARK_SLASH="&#xe9ad;",e.CIRCLE_PAUSE="&#xe9ae;",e.CIRCLE_PLAY="&#xe9af;",e.CIRCLE_STOP_PLAIN="&#xe9b0;",e.CIRCLE_ARROW_DOWN="&#xe9b1;",e.SHARE_NODES="&#xe9b2;",e.BELL="&#xe9b3;",e.BELL_SLASH="&#xe9b4;",e.FILE="&#xe9b5;",e.HAND="&#xe9b6;",e.SQUARE_INFO_SOLID="&#xe9b7;",e.FILE_CODE="&#xe9b8;",e.BOX_CODE="&#xe9b9;",e.TOPICS_SOLID="&#xe9ba;",e.PHOTO_FILM="&#xe9bb;",e.HYPHEN_SOLID="&#xe9bc;",e.CROSSHAIRS="&#xe9bd;",e.PERSON_CHALKBOARD="&#xe9be;",e.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",e.BOOK_OPEN_COVER="&#xe9c0;",e.LIGHTBULB="&#xe9c1;",e.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",e.CHART_LINE_USER="&#xe9c3;",e.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;"})(le||(le={}));var a;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(a||(a={}));var Wo=new Map([...["abw"].map(e=>[e,a.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,a.AUDIO]),...["avi"].map(e=>[e,a.AVI]),...["chm","xhs"].map(e=>[e,a.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,a.CODE]),...["csv"].map(e=>[e,a.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,a.DITA]),...["epub"].map(e=>[e,a.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,a.EXCEL]),...["flac"].map(e=>[e,a.FLAC]),...["gif"].map(e=>[e,a.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,a.GZIP]),...["html","htm","xhtml"].map(e=>[e,a.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,a.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,a.JPEG]),...["json"].map(e=>[e,a.JSON]),...["m4a","m4p"].map(e=>[e,a.M4A]),...["mov","qt"].map(e=>[e,a.MOV]),...["mp3"].map(e=>[e,a.MP3]),...["mp4","m4v"].map(e=>[e,a.MP4]),...["ogg","oga"].map(e=>[e,a.OGG]),...["pdf","ps"].map(e=>[e,a.PDF]),...["png"].map(e=>[e,a.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,a.POWERPOINT]),...["rar"].map(e=>[e,a.RAR]),...["stp"].map(e=>[e,a.STP]),...["txt","rtf","md","mdown"].map(e=>[e,a.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,a.VIDEO]),...["wav"].map(e=>[e,a.WAV]),...["wma"].map(e=>[e,a.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,a.WORD]),...["xml","xsl","rdf"].map(e=>[e,a.XML]),...["yaml","yml","x-yaml"].map(e=>[e,a.YAML]),...["zip"].map(e=>[e,a.ZIP])]);var Uo={[a.ABW]:"#91ABC6",[a.AUDIO]:"#1795E3",[a.AVI]:"#E63324",[a.CHM]:"#71C3EB",[a.CODE]:"#71C3EB",[a.CSV]:"#1F7345",[a.DITA]:"#71C3EB",[a.EPUB]:"#85B926",[a.EXCEL]:"#1F7345",[a.FLAC]:"#1795E3",[a.GIF]:"#59B031",[a.GZIP]:"#F8AB36",[a.HTML]:"#71C3EB",[a.IMAGE]:"#59B031",[a.JPEG]:"#59B031",[a.JSON]:"#71C3EB",[a.M4A]:"#1795E3",[a.MOV]:"#E63324",[a.MP3]:"#1795E3",[a.MP4]:"#E63324",[a.OGG]:"#1795E3",[a.PDF]:"#E44948",[a.PNG]:"#59B031",[a.POWERPOINT]:"#B54A2B",[a.RAR]:"#F8AB36",[a.STP]:"#3764B1",[a.TEXT]:"#3162AB",[a.UNKNOWN]:"#999999",[a.VIDEO]:"#E63324",[a.WAV]:"#1795E3",[a.WMA]:"#1795E3",[a.WORD]:"#3162AB",[a.XML]:"#71C3EB",[a.YAML]:"#71C3EB",[a.ZIP]:"#F8AB36"};var Se=function(e,t,i,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,i):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,i,o);else for(var f=e.length-1;f>=0;f--)(s=e[f])&&(n=(r<3?s(n):r>3?s(t,i,n):s(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n},R=class extends oi.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=ve.nothing}render(){let t=this.variant&&Object.values(Z).includes(this.variant)?this.variant:Z.fluid_topics,i=t!==Z.material||!!this.value;return ve.html`
418
+ `,we.noTextSelect];var Ge;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Ge||(Ge={}));var tr=f(V()),qe=f(J()),Ys=f(A()),Xs=f(qs());var He;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.COMPRESS="&#xe9a2;",e.EXPAND="&#xe9a3;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.MOBILE_SMALL="&#xe9a5;",e.SPARKLES="&#xe9a6;",e.HAND_SOLID="&#xe9a7;",e.CLOCK_SOLID="&#xe9a8;",e.CONTEXT_MENU_CURSOR="&#xe9a9;",e.LANGUAGE_SLASH="&#xe9aa;",e.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",e.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",e.BOOKMARK_SLASH="&#xe9ad;",e.CIRCLE_PAUSE="&#xe9ae;",e.CIRCLE_PLAY="&#xe9af;",e.CIRCLE_STOP_PLAIN="&#xe9b0;",e.CIRCLE_ARROW_DOWN="&#xe9b1;",e.SHARE_NODES="&#xe9b2;",e.BELL="&#xe9b3;",e.BELL_SLASH="&#xe9b4;",e.FILE="&#xe9b5;",e.HAND="&#xe9b6;",e.SQUARE_INFO_SOLID="&#xe9b7;",e.FILE_CODE="&#xe9b8;",e.BOX_CODE="&#xe9b9;",e.TOPICS_SOLID="&#xe9ba;",e.PHOTO_FILM="&#xe9bb;",e.HYPHEN_SOLID="&#xe9bc;",e.CROSSHAIRS="&#xe9bd;",e.PERSON_CHALKBOARD="&#xe9be;",e.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",e.BOOK_OPEN_COVER="&#xe9c0;",e.LIGHTBULB="&#xe9c1;",e.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",e.CHART_LINE_USER="&#xe9c3;",e.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;"})(He||(He={}));var m;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(m||(m={}));var up=new Map([...["abw"].map(e=>[e,m.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,m.AUDIO]),...["avi"].map(e=>[e,m.AVI]),...["chm","xhs"].map(e=>[e,m.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,m.CODE]),...["csv"].map(e=>[e,m.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,m.DITA]),...["epub"].map(e=>[e,m.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,m.EXCEL]),...["flac"].map(e=>[e,m.FLAC]),...["gif"].map(e=>[e,m.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,m.GZIP]),...["html","htm","xhtml"].map(e=>[e,m.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,m.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,m.JPEG]),...["json"].map(e=>[e,m.JSON]),...["m4a","m4p"].map(e=>[e,m.M4A]),...["mov","qt"].map(e=>[e,m.MOV]),...["mp3"].map(e=>[e,m.MP3]),...["mp4","m4v"].map(e=>[e,m.MP4]),...["ogg","oga"].map(e=>[e,m.OGG]),...["pdf","ps"].map(e=>[e,m.PDF]),...["png"].map(e=>[e,m.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,m.POWERPOINT]),...["rar"].map(e=>[e,m.RAR]),...["stp"].map(e=>[e,m.STP]),...["txt","rtf","md","mdown"].map(e=>[e,m.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,m.VIDEO]),...["wav"].map(e=>[e,m.WAV]),...["wma"].map(e=>[e,m.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,m.WORD]),...["xml","xsl","rdf"].map(e=>[e,m.XML]),...["yaml","yml","x-yaml"].map(e=>[e,m.YAML]),...["zip"].map(e=>[e,m.ZIP])]);var dp={[m.ABW]:"#91ABC6",[m.AUDIO]:"#1795E3",[m.AVI]:"#E63324",[m.CHM]:"#71C3EB",[m.CODE]:"#71C3EB",[m.CSV]:"#1F7345",[m.DITA]:"#71C3EB",[m.EPUB]:"#85B926",[m.EXCEL]:"#1F7345",[m.FLAC]:"#1795E3",[m.GIF]:"#59B031",[m.GZIP]:"#F8AB36",[m.HTML]:"#71C3EB",[m.IMAGE]:"#59B031",[m.JPEG]:"#59B031",[m.JSON]:"#71C3EB",[m.M4A]:"#1795E3",[m.MOV]:"#E63324",[m.MP3]:"#1795E3",[m.MP4]:"#E63324",[m.OGG]:"#1795E3",[m.PDF]:"#E44948",[m.PNG]:"#59B031",[m.POWERPOINT]:"#B54A2B",[m.RAR]:"#F8AB36",[m.STP]:"#3764B1",[m.TEXT]:"#3162AB",[m.UNKNOWN]:"#999999",[m.VIDEO]:"#E63324",[m.WAV]:"#1795E3",[m.WMA]:"#1795E3",[m.WORD]:"#3162AB",[m.XML]:"#71C3EB",[m.YAML]:"#71C3EB",[m.ZIP]:"#F8AB36"};var rr=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},ee=class extends Ys.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=tr.nothing}render(){let t=this.variant&&Object.values(Ge).includes(this.variant)?this.variant:Ge.fluid_topics,r=t!==Ge.material||!!this.value;return tr.html`
419
419
  <i class="ft-icon ft-icon--${t} ft-no-text-select" part="icon icon-${t}">
420
- ${(0,ri.unsafeHTML)(this.resolvedIcon)}
421
- <slot ?hidden=${i}></slot>
420
+ ${(0,Xs.unsafeHTML)(this.resolvedIcon)}
421
+ <slot ?hidden=${r}></slot>
422
422
  </i>
423
- `}getTextContent(){var t,i;return(i=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&i!==void 0?i:""}update(t){super.update(t),["value","variant"].some(i=>t.has(i))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.getTextContent();switch(this.variant){case Z.file_format:this.resolvedIcon=(t=a[o.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:o;break;case Z.material:this.resolvedIcon=this.value||ve.nothing;break;default:this.resolvedIcon=(i=le[o.replace("-","_").toUpperCase()])!==null&&i!==void 0?i:o;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};R.elementDefinitions={};R.styles=ei;Se([(0,X.property)()],R.prototype,"variant",void 0);Se([(0,X.property)()],R.prototype,"value",void 0);Se([(0,X.property)({reflect:!0,attribute:"aria-hidden"})],R.prototype,"ariaHidden",void 0);Se([(0,X.state)()],R.prototype,"resolvedIcon",void 0);Se([(0,X.query)("slot")],R.prototype,"slottedContent",void 0);var si=c(T());var ni={"ft-icon":R};(0,si.customElements)(ni);var li=c(D()),d=c(T());var x={fontSize:d.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:d.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:d.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:d.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:d.FtCssVariableFactory.extend("--ft-text-field-helper-color","",d.designSystemVariables.colorOnSurfaceMedium),colorPrimary:d.FtCssVariableFactory.external(d.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:d.FtCssVariableFactory.external(d.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:d.FtCssVariableFactory.external(d.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:d.FtCssVariableFactory.external(d.designSystemVariables.borderRadiusS,"Design system"),colorError:d.FtCssVariableFactory.external(d.designSystemVariables.colorError,"Design system"),prefixColor:d.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",d.designSystemVariables.colorOnSurfaceMedium),iconColor:d.FtCssVariableFactory.extend("--ft-text-field-icon-color","",d.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:d.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:d.FtCssVariableFactory.extend("--ft-text-field-background-color","",d.designSystemVariables.colorSurface),colorOutline:d.FtCssVariableFactory.external(d.designSystemVariables.colorOutline,"Design system"),elevation02:d.FtCssVariableFactory.external(d.designSystemVariables.elevation02,"Design system"),suggestSize:d.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},ai=li.css`
423
+ `}getTextContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let i=this.value||this.getTextContent();switch(this.variant){case Ge.file_format:this.resolvedIcon=(t=m[i.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:i;break;case Ge.material:this.resolvedIcon=this.value||tr.nothing;break;default:this.resolvedIcon=(r=He[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};ee.elementDefinitions={};ee.styles=Ks;rr([(0,qe.property)()],ee.prototype,"variant",void 0);rr([(0,qe.property)()],ee.prototype,"value",void 0);rr([(0,qe.property)({reflect:!0,attribute:"aria-hidden"})],ee.prototype,"ariaHidden",void 0);rr([(0,qe.state)()],ee.prototype,"resolvedIcon",void 0);rr([(0,qe.query)("slot")],ee.prototype,"slottedContent",void 0);var Js=f(A());var Zs={"ft-icon":ee};(0,Js.customElements)(Zs);var Qs=f(V()),S=f(A());var O={fontSize:S.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:S.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:S.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:S.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:S.FtCssVariableFactory.extend("--ft-text-field-helper-color","",S.designSystemVariables.colorOnSurfaceMedium),colorPrimary:S.FtCssVariableFactory.external(S.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:S.FtCssVariableFactory.external(S.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:S.FtCssVariableFactory.external(S.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:S.FtCssVariableFactory.external(S.designSystemVariables.borderRadiusS,"Design system"),colorError:S.FtCssVariableFactory.external(S.designSystemVariables.colorError,"Design system"),prefixColor:S.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",S.designSystemVariables.colorOnSurfaceMedium),iconColor:S.FtCssVariableFactory.extend("--ft-text-field-icon-color","",S.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:S.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:S.FtCssVariableFactory.extend("--ft-text-field-background-color","",S.designSystemVariables.colorSurface),colorOutline:S.FtCssVariableFactory.external(S.designSystemVariables.colorOutline,"Design system"),elevation02:S.FtCssVariableFactory.external(S.designSystemVariables.elevation02,"Design system"),suggestSize:S.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},eo=Qs.css`
424
424
  *:focus {
425
425
  outline: none;
426
426
  }
@@ -430,21 +430,21 @@
430
430
  flex-direction: column;
431
431
  align-items: stretch;
432
432
  position: relative;
433
- --text-field-internal-suggest-size: ${x.suggestSize};
433
+ --text-field-internal-suggest-size: ${O.suggestSize};
434
434
  }
435
435
 
436
436
  ft-input-label {
437
- ${(0,d.setVariable)(m.fontSize,x.fontSize)};
438
- ${(0,d.setVariable)(m.raisedFontSize,x.labelSize)};
439
- ${(0,d.setVariable)(m.verticalSpacing,x.verticalSpacing)};
440
- ${(0,d.setVariable)(m.horizontalSpacing,x.horizontalSpacing)};
441
- ${(0,d.setVariable)(m.backgroundColor,x.backgroundColor)};
437
+ ${(0,S.setVariable)(N.fontSize,O.fontSize)};
438
+ ${(0,S.setVariable)(N.raisedFontSize,O.labelSize)};
439
+ ${(0,S.setVariable)(N.verticalSpacing,O.verticalSpacing)};
440
+ ${(0,S.setVariable)(N.horizontalSpacing,O.horizontalSpacing)};
441
+ ${(0,S.setVariable)(N.backgroundColor,O.backgroundColor)};
442
442
  }
443
443
 
444
444
  .ft-text-field--main-panel {
445
445
  position: relative;
446
446
  display: flex;
447
- height: calc(4 * ${x.verticalSpacing} + ${x.labelSize} + ${x.fontSize});
447
+ height: calc(4 * ${O.verticalSpacing} + ${O.labelSize} + ${O.fontSize});
448
448
  }
449
449
 
450
450
  .ft-text-field--input-panel {
@@ -453,24 +453,24 @@
453
453
  display: flex;
454
454
  align-items: center;
455
455
  overflow: hidden;
456
- padding: 0 ${x.horizontalSpacing};
456
+ padding: 0 ${O.horizontalSpacing};
457
457
 
458
- ${(0,d.setVariable)(U.fontSize,x.fontSize)};
459
- ${(0,d.setVariable)(U.lineHeight,x.fontSize)};
458
+ ${(0,S.setVariable)(Ne.fontSize,O.fontSize)};
459
+ ${(0,S.setVariable)(Ne.lineHeight,O.fontSize)};
460
460
  }
461
461
 
462
462
  .ft-text-field--input-panel ft-ripple {
463
- ${(0,d.setVariable)(V.opacityContentOnSurfaceHover,"0.08")};
464
- ${(0,d.setVariable)(V.opacityContentOnSurfacePressed,"0.04")};
463
+ ${(0,S.setVariable)(ne.opacityContentOnSurfaceHover,"0.08")};
464
+ ${(0,S.setVariable)(ne.opacityContentOnSurfacePressed,"0.04")};
465
465
  }
466
466
 
467
467
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
468
468
  align-items: flex-end;
469
- padding: 0 ${x.horizontalSpacing} ${x.verticalSpacing} ${x.horizontalSpacing};
469
+ padding: 0 ${O.horizontalSpacing} ${O.verticalSpacing} ${O.horizontalSpacing};
470
470
  }
471
471
 
472
472
  .ft-text-field--prefix {
473
- color: ${x.prefixColor};
473
+ color: ${O.prefixColor};
474
474
  margin-right: 2px;
475
475
  flex-shrink: 1;
476
476
  overflow: hidden;
@@ -489,22 +489,22 @@
489
489
  flex-shrink: 1;
490
490
  min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
491
491
 
492
- color: ${x.colorOnSurface};
493
- padding: calc(2 * ${x.verticalSpacing}) 0;
492
+ color: ${O.colorOnSurface};
493
+ padding: calc(2 * ${O.verticalSpacing}) 0;
494
494
  border: none;
495
495
  background: none;
496
496
 
497
497
  &:-webkit-autofill,
498
498
  &:-webkit-autofill:hover,
499
499
  &:-webkit-autofill:focus {
500
- -webkit-text-fill-color: ${x.colorOnSurface};
500
+ -webkit-text-fill-color: ${O.colorOnSurface};
501
501
  transition: background-color 50000000s ease-in-out 100000s;
502
502
  }
503
503
  }
504
504
 
505
505
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
506
506
  padding-bottom: 0;
507
- padding-top: calc(${x.labelSize} + 2 * ${x.verticalSpacing});
507
+ padding-top: calc(${O.labelSize} + 2 * ${O.verticalSpacing});
508
508
  }
509
509
 
510
510
  .ft-text-field--input::-webkit-calendar-picker-indicator,
@@ -513,37 +513,37 @@
513
513
  }
514
514
 
515
515
  .ft-text-field--disabled .ft-text-field--input {
516
- color: ${x.colorOnSurfaceDisabled};
516
+ color: ${O.colorOnSurfaceDisabled};
517
517
  }
518
518
 
519
519
  .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
520
- ${(0,d.setVariable)(m.borderColor,x.colorPrimary)};
521
- ${(0,d.setVariable)(m.textColor,x.colorPrimary)};
520
+ ${(0,S.setVariable)(N.borderColor,O.colorPrimary)};
521
+ ${(0,S.setVariable)(N.textColor,O.colorPrimary)};
522
522
  }
523
523
 
524
524
  .ft-text-field--filled .ft-text-field--input-panel {
525
- border-radius: ${x.borderRadiusS} ${x.borderRadiusS} 0 0;
525
+ border-radius: ${O.borderRadiusS} ${O.borderRadiusS} 0 0;
526
526
  }
527
527
 
528
528
  .ft-text-field--outlined .ft-text-field--input-panel {
529
- border-radius: ${x.borderRadiusS};
529
+ border-radius: ${O.borderRadiusS};
530
530
  }
531
531
 
532
532
  .ft-text-field--helper-text {
533
- padding: 0 12px 0 ${x.horizontalSpacing};
534
- color: ${x.helperColor};
533
+ padding: 0 12px 0 ${O.horizontalSpacing};
534
+ color: ${O.helperColor};
535
535
  }
536
536
 
537
537
  .ft-text-field--in-error .ft-text-field--input,
538
538
  .ft-text-field--in-error .ft-text-field--helper-text,
539
539
  .ft-text-field--in-error .ft-text-field--prefix {
540
- color: ${x.colorError};
540
+ color: ${O.colorError};
541
541
  }
542
542
 
543
543
  .ft-text-field--icon {
544
544
  align-self: center;
545
545
  margin-left: 8px;
546
- color: ${x.iconColor};
546
+ color: ${O.iconColor};
547
547
  }
548
548
 
549
549
  .ft-text-field--container {
@@ -554,11 +554,11 @@
554
554
  display: none;
555
555
  flex-direction: column;
556
556
  position: absolute;
557
- z-index: ${x.floatingZIndex};
558
- background: ${x.backgroundColor};
559
- border: 1px solid ${x.colorOutline};
560
- border-radius: 0 0 ${x.borderRadiusS} ${x.borderRadiusS};
561
- box-shadow: ${x.elevation02};
557
+ z-index: ${O.floatingZIndex};
558
+ background: ${O.backgroundColor};
559
+ border: 1px solid ${O.colorOutline};
560
+ border-radius: 0 0 ${O.borderRadiusS} ${O.borderRadiusS};
561
+ box-shadow: ${O.elevation02};
562
562
  outline: none;
563
563
  max-height: var(--text-field-internal-suggest-size);
564
564
  overflow-y: auto;
@@ -573,35 +573,41 @@
573
573
  }
574
574
 
575
575
  .ft-text-field--with-icon {
576
- ${(0,d.setVariable)(m.labelMaxWidth,`calc(100% - ${z.size} - ${m.horizontalSpacing})`)};
576
+ ${(0,S.setVariable)(N.labelMaxWidth,`calc(100% - ${pe.size} - ${N.horizontalSpacing})`)};
577
577
  }
578
578
 
579
579
  .ft-text-field--with-password ft-icon:hover {
580
580
  cursor: pointer;
581
581
  }
582
- `;var di=c(T()),_e=c(D()),ae=c(j());var pi=c(D());var fi=pi.css`
583
- .ft-text-field-suggestion {
582
+ `;var sc=f(A()),Rt=f(V()),Ue=f(J());var to=f(V());var ro=to.css`
583
+ .ft-text-field-suggestion--suggestion {
584
584
  position: relative;
585
585
  padding: 8px 16px;
586
586
  cursor: pointer;
587
587
  min-height: 44px;
588
588
  box-sizing: border-box;
589
+ }
590
+
591
+ .ft-text-field-suggestion--suggestion,
592
+ .ft-text-field-suggestion--remove {
589
593
  outline: none;
590
594
  }
591
595
 
592
596
  .ft-text-field-suggestion,
597
+ .ft-text-field-suggestion--suggestion,
593
598
  .ft-text-field-suggestion--label {
594
599
  display: flex;
595
600
  align-items: center;
596
- gap: 8px;
597
601
  }
598
602
 
603
+ .ft-text-field-suggestion--suggestion,
599
604
  .ft-text-field-suggestion--label {
600
605
  flex-grow: 1;
601
606
  flex-shrink: 1;
607
+ gap: 8px;
602
608
  }
603
609
 
604
- .ft-text-field-suggestion--with-helper {
610
+ .ft-text-field-suggestion--with-helper > .ft-text-field-suggestion--suggestion {
605
611
  display: flex;
606
612
  flex-direction: column;
607
613
  align-items: flex-start;
@@ -609,30 +615,354 @@
609
615
  }
610
616
 
611
617
  .ft-text-field-suggestion--helper-text {
612
- color: ${x.helperColor};
618
+ color: ${O.helperColor};
613
619
  }
614
620
 
615
621
  slot {
616
622
  pointer-events: none;
617
623
  }
618
- `;var hi=c(ue()),Le=function(e,t,i,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,i):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,i,o);else for(var f=e.length-1;f>=0;f--)(s=e[f])&&(n=(r<3?s(n):r>3?s(t,i,n):s(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n},qe=class extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}},H=class extends di.FtLitElement{render(){let t={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return _e.html`
619
- <div class="${(0,hi.classMap)(t)}"
620
- tabindex="-1"
621
- @keydown=${this.onKeyDown}
622
- @click=${this.confirmSuggestion}>
623
- <ft-ripple></ft-ripple>
624
- ${this.helper?_e.html`
625
- <ft-typography class="ft-text-field-suggestion--helper-text" variant="caption">
626
- ${this.helper}
627
- </ft-typography>`:_e.nothing}
628
- <ft-typography part="label"
629
- variant="body1"
630
- class="ft-text-field-suggestion--label">
631
- <slot></slot>
632
- </ft-typography>
624
+ `;var oc=f(Nt());var $e=f(A());var jl=f(V()),Ae=f(J()),Ee=f(A());var io=f(V()),Ye=f(A()),ir={distance:Ye.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Ye.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Ye.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:Ye.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",Ye.designSystemVariables.borderRadiusS),maxWidth:Ye.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},no=io.css`
625
+ .ft-tooltip--container {
626
+ display: block;
627
+ }
628
+
629
+ .ft-tooltip--inline {
630
+ display: inline-block;
631
+ max-width: 100%;
632
+ }
633
+
634
+ .ft-tooltip {
635
+ inset: 0;
636
+ margin: 0;
637
+ border: none;
638
+ background: transparent;
639
+ box-sizing: border-box;
640
+ overflow: hidden;
641
+ width: max-content;
642
+ max-width: ${ir.maxWidth};
643
+ text-align: center;
644
+ padding: ${ir.distance};
645
+ }
646
+
647
+ .ft-tooltip--content {
648
+ padding: 4px 8px;
649
+ border-radius: ${ir.borderRadiusS};
650
+ background-color: ${ir.backgroundColor};
651
+ color: ${ir.color};
652
+ position: relative;
653
+ word-break: break-word;
654
+ }
655
+ `;var oo=["top","right","bottom","left"],so=["start","end"],Zi=oo.reduce((e,t)=>e.concat(t,t+"-"+so[0],t+"-"+so[1]),[]),nr=Math.min,Xe=Math.max,sr=Math.round;var De=e=>({x:e,y:e}),_c={left:"right",right:"left",bottom:"top",top:"bottom"};function ao(e,t,r){return Xe(e,nr(t,r))}function Dr(e,t){return typeof e=="function"?e(t):e}function or(e){return e.split("-")[0]}function Ze(e){return e.split("-")[1]}function Ji(e){return e==="x"?"y":"x"}function Qi(e){return e==="y"?"height":"width"}function kr(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function en(e){return Ji(kr(e))}function lo(e,t,r){r===void 0&&(r=!1);let i=Ze(e),n=en(e),s=Qi(n),o=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=Xi(o)),[o,Xi(o)]}function co(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function Xi(e){let t=or(e);return _c[t]+e.slice(t.length)}function Cc(e){var t,r,i,n;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(i=e.bottom)!=null?i:0,left:(n=e.left)!=null?n:0}}function uo(e){return typeof e!="number"?Cc(e):{top:e,right:e,bottom:e,left:e}}function ht(e){let{x:t,y:r,width:i,height:n}=e;return{width:i,height:n,top:r,left:t,right:t+i,bottom:r+n,x:t,y:r}}function po(e,t,r){let{reference:i,floating:n}=e,s=kr(t),o=en(t),a=Qi(o),l=or(t),c=s==="y",u=i.x+i.width/2-n.width/2,d=i.y+i.height/2-n.height/2,p=i[a]/2-n[a]/2,g;switch(l){case"top":g={x:u,y:i.y-n.height};break;case"bottom":g={x:u,y:i.y+i.height};break;case"right":g={x:i.x+i.width,y:d};break;case"left":g={x:i.x-n.width,y:d};break;default:g={x:i.x,y:i.y}}let v=Ze(t);return v&&(g[o]+=p*(v==="end"?1:-1)*(r&&c?-1:1)),g}async function fo(e,t){var r;t===void 0&&(t={});let{x:i,y:n,platform:s,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:g=0}=Dr(t,e),v=uo(g),x=a[p?d==="floating"?"reference":"floating":d],C=ht(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(x)))==null||r?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),M=d==="floating"?{x:i,y:n,width:o.floating.width,height:o.floating.height}:o.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),T=await(s.isElement==null?void 0:s.isElement(b))&&await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1},P=ht(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:M,offsetParent:b,strategy:l}):M);return{top:(C.top-P.top+v.top)/T.y,bottom:(P.bottom-C.bottom+v.bottom)/T.y,left:(C.left-P.left+v.left)/T.x,right:(P.right-C.right+v.right)/T.x}}var wc=50,ho=async(e,t,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:s=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:fo},l=await(o.isRTL==null?void 0:o.isRTL(t)),c=await o.getElementRects({reference:e,floating:t,strategy:n}),{x:u,y:d}=po(c,i,l),p=i,g=0,v={};for(let E=0;E<s.length;E++){let x=s[E];if(!x)continue;let{name:C,fn:M}=x,{x:b,y:T,data:P,reset:z}=await M({x:u,y:d,initialPlacement:i,placement:p,strategy:n,middlewareData:v,rects:c,platform:a,elements:{reference:e,floating:t}});u=b??u,d=T??d,v[C]={...v[C],...P},z&&g<wc&&(g++,typeof z=="object"&&(z.placement&&(p=z.placement),z.rects&&(c=z.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:n}):z.rects),{x:u,y:d}=po(c,p,l)),E=-1)}return{x:u,y:d,placement:p,strategy:n,middlewareData:v}};function Tc(e,t,r){return(e?[...r.filter(n=>Ze(n)===e),...r.filter(n=>Ze(n)!==e)]:r.filter(n=>or(n)===n)).filter(n=>e?Ze(n)===e||(t?co(n)!==n:!1):!0)}var mo=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,i,n;let{rects:s,middlewareData:o,placement:a,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:p=Zi,autoAlignment:g=!0,...v}=Dr(e,t),E=d!==void 0||p===Zi?Tc(d||null,g,p):p,x=((r=o.autoPlacement)==null?void 0:r.index)||0,C=E[x];if(C==null)return{};if(a!==C)return{reset:{placement:E[0]}};let M=await l.detectOverflow(t,v),b=lo(C,s,await(l.isRTL==null?void 0:l.isRTL(c.floating))),T=[M[or(C)],M[b[0]],M[b[1]]],P=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:C,overflows:T}],z=E[x+1];if(z)return{data:{index:x+1,overflows:P},reset:{placement:z}};let U=P.map(ge=>{let rt=Ze(ge.placement);return[ge.placement,rt&&u?ge.overflows.slice(0,2).reduce((dc,pc)=>dc+pc,0):ge.overflows[0],ge.overflows]}).sort((ge,rt)=>ge[1]-rt[1]),Yt=((n=U.filter(ge=>ge[2].slice(0,Ze(ge[0])?2:3).every(rt=>rt<=0))[0])==null?void 0:n[0])||U[0][0];return Yt!==a?{data:{index:x+1,overflows:P},reset:{placement:Yt}}:{}}}};var go=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:i,placement:n,platform:s}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:M=>{let{x:b,y:T}=M;return{x:b,y:T}}},...c}=Dr(e,t),u={x:r,y:i},d=await s.detectOverflow(t,c),p=kr(n),g=Ji(p),v=u[g],E=u[p],x=(M,b)=>ao(b+d[M==="y"?"top":"left"],b,b-d[M==="y"?"bottom":"right"]);o&&(v=x(g,v)),a&&(E=x(p,E));let C=l.fn({...t,[g]:v,[p]:E});return{...C,data:{x:C.x-r,y:C.y-i,enabled:{[g]:o,[p]:a}}}}}};function Ir(){return typeof window<"u"}function gt(e){return xo(e)?(e.nodeName||"").toLowerCase():"#document"}function de(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Fe(e){var t;return(t=(xo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function xo(e){return Ir()?e instanceof Node||e instanceof de(e).Node:!1}function Te(e){return Ir()?e instanceof Element||e instanceof de(e).Element:!1}function Ve(e){return Ir()?e instanceof HTMLElement||e instanceof de(e).HTMLElement:!1}function yo(e){return!Ir()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof de(e).ShadowRoot}function ar(e){let{overflow:t,overflowX:r,overflowY:i,display:n}=Oe(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&n!=="inline"&&n!=="contents"}function vo(e){return/^(table|td|th)$/.test(gt(e))}function lr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var Oc=/transform|translate|scale|rotate|perspective|filter/,Rc=/paint|layout|strict|content/,mt=e=>!!e&&e!=="none",tn;function Mt(e){let t=Te(e)?Oe(e):e;return mt(t.transform)||mt(t.translate)||mt(t.scale)||mt(t.rotate)||mt(t.perspective)||!$r()&&(mt(t.backdropFilter)||mt(t.filter))||Oc.test(t.willChange||"")||Rc.test(t.contain||"")}function bo(e){let t=Je(e);for(;Ve(t)&&!It(t);){if(Mt(t))return t;if(lr(t))return null;t=Je(t)}return null}function $r(){return tn==null&&(tn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),tn}function It(e){return/^(html|body|#document)$/.test(gt(e))}function Oe(e){return de(e).getComputedStyle(e)}function cr(e){return Te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Je(e){if(gt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||yo(e)&&e.host||Fe(e);return yo(t)?t.host:t}function So(e){let t=Je(e);return It(t)?(e.ownerDocument||e).body:Ve(t)&&ar(t)?t:So(t)}function Mr(e,t,r){var i;t===void 0&&(t=[]),r===void 0&&(r=!0);let n=So(e),s=n===((i=e.ownerDocument)==null?void 0:i.body),o=de(n);if(s){let a=Ur(o);return t.concat(o,o.visualViewport||[],ar(n)?n:[],a&&r?Mr(a):[])}else return t.concat(n,Mr(n,[],r))}function Ur(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function _o(e){let t=Oe(e),r=parseFloat(t.width)||0,i=parseFloat(t.height)||0,n=Ve(e),s=n?e.offsetWidth:r,o=n?e.offsetHeight:i,a=sr(r)!==s||sr(i)!==o;return a&&(r=s,i=o),{width:r,height:i,$:a}}function Co(e){return Te(e)?e:e.contextElement}function $t(e){let t=Co(e);if(!Ve(t))return De(1);let r=t.getBoundingClientRect(),{width:i,height:n,$:s}=_o(t),o=(s?sr(r.width):r.width)/i,a=(s?sr(r.height):r.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var Lc=De(0);function wo(e){let t=de(e);return!$r()||!t.visualViewport?Lc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Pc(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===de(e)}function ur(e,t,r,i){t===void 0&&(t=!1),r===void 0&&(r=!1);let n=e.getBoundingClientRect(),s=Co(e),o=De(1);t&&(i?Te(i)&&(o=$t(i)):o=$t(e));let a=Pc(s,r,i)?wo(s):De(0),l=(n.left+a.x)/o.x,c=(n.top+a.y)/o.y,u=n.width/o.x,d=n.height/o.y;if(s&&i){let p=de(s),g=Te(i)?de(i):i,v=p,E=Ur(v);for(;E&&g!==v;){let x=$t(E),C=E.getBoundingClientRect(),M=Oe(E),b=C.left+(E.clientLeft+parseFloat(M.paddingLeft))*x.x,T=C.top+(E.clientTop+parseFloat(M.paddingTop))*x.y;l*=x.x,c*=x.y,u*=x.x,d*=x.y,l+=b,c+=T,v=de(E),E=Ur(v)}}return ht({width:u,height:d,x:l,y:c})}function Br(e,t){let r=cr(e).scrollLeft;return t?t.left+r:ur(Fe(e)).left+r}function To(e,t){let r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-Br(e,r),n=r.top+t.scrollTop;return{x:i,y:n}}function Nc(e){let{elements:t,rect:r,offsetParent:i,strategy:n}=e,s=n==="fixed",o=Fe(i),a=t?lr(t.floating):!1;if(i===o||a&&s)return r;let l={scrollLeft:0,scrollTop:0},c=De(1),u=De(0),d=Ve(i);if((d||!s)&&((gt(i)!=="body"||ar(o))&&(l=cr(i)),d)){let g=ur(i);c=$t(i),u.x=g.x+i.clientLeft,u.y=g.y+i.clientTop}let p=o&&!d&&!s?To(o,l):De(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}}function Dc(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function kc(e){let t=cr(e),r=e.ownerDocument.body,i=Xe(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),n=Xe(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),s=-t.scrollLeft+Br(e),o=-t.scrollTop;return Oe(r).direction==="rtl"&&(s+=Xe(e.clientWidth,r.clientWidth)-i),{width:i,height:n,x:s,y:o}}var Mc=25;function Ic(e,t,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=de(e),s=Fe(e),o=n.visualViewport,a=s.clientWidth,l=s.clientHeight,c=0,u=0;if(o){let p=!$r()||t==="fixed";i?p||(c=-o.offsetLeft,u=-o.offsetTop):(a=o.width,l=o.height,p&&(c=o.offsetLeft,u=o.offsetTop))}if(Br(s)<=0){let p=s.ownerDocument,g=p.body,v=getComputedStyle(g),E=p.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,x=Math.abs(s.clientWidth-g.clientWidth-E),C=getComputedStyle(s).scrollbarGutter==="stable both-edges"?x/2:x;C<=Mc&&(a-=C)}return{width:a,height:l,x:c,y:u}}function $c(e,t){let r=ur(e,!0,t==="fixed"),i=r.top+e.clientTop,n=r.left+e.clientLeft,s=$t(e),o=e.clientWidth*s.x,a=e.clientHeight*s.y,l=n*s.x,c=i*s.y;return{width:o,height:a,x:l,y:c}}function Eo(e,t,r){let i;if(t==="viewport"||t==="layoutViewport")i=Ic(e,r,t);else if(t==="document")i=kc(Fe(e));else if(Te(t))i=$c(t,r);else{let n=wo(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ht(i)}function Uc(e,t){let r=t.get(e);if(r)return r;let i=Mr(e,[],!1).filter(a=>Te(a)&&gt(a)!=="body"),n=null,s=Oe(e).position==="fixed",o=s?Je(e):e;for(;Te(o)&&!It(o);){let a=Oe(o),l=Mt(o),c=n?n.position:s?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(d=>d!==o):n=a,o=Je(o)}return t.set(e,i),i}function Bc(e){let{element:t,boundary:r,rootBoundary:i,strategy:n}=e,o=[...r==="clippingAncestors"?lr(t)?[]:Uc(t,this._c):[].concat(r),i],a=Eo(t,o[0],n),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<o.length;p++){let g=Eo(t,o[p],n);l=Xe(g.top,l),c=nr(g.right,c),u=nr(g.bottom,u),d=Xe(g.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function Hc(e){let{width:t,height:r}=_o(e);return{width:t,height:r}}function Fc(e,t,r){let i=Ve(t),n=Fe(t),s=r==="fixed",o=ur(e,!0,s,t),a={scrollLeft:0,scrollTop:0},l=De(0);if((i||!s)&&((gt(t)!=="body"||ar(n))&&(a=cr(t)),i)){let p=ur(t,!0,s,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}!i&&n&&(l.x=Br(n));let c=n&&!i&&!s?To(n,a):De(0),u=o.left+a.scrollLeft-l.x-c.x,d=o.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:o.width,height:o.height}}function rn(e){return Oe(e).position==="static"}function Ao(e,t){if(!Ve(e)||Oe(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Fe(e)===r&&(r=r.ownerDocument.body),r}function Oo(e,t){let r=de(e);if(lr(e))return r;if(!Ve(e)){let n=Je(e);for(;n&&!It(n);){if(Te(n)&&!rn(n))return n;n=Je(n)}return r}let i=Ao(e,t);for(;i&&vo(i)&&rn(i);)i=Ao(i,t);return i&&It(i)&&rn(i)&&!Mt(i)?r:i||bo(e)||r}var Vc=async function(e){let t=this.getOffsetParent||Oo,r=this.getDimensions,i=await r(e.floating);return{reference:Fc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function zc(e){return Oe(e).direction==="rtl"}var Hr={convertOffsetParentRelativeRectToViewportRelativeRect:Nc,getDocumentElement:Fe,getClippingRect:Bc,getOffsetParent:Oo,getElementRects:Vc,getClientRects:Dc,getDimensions:Hc,getScale:$t,isElement:Te,isRTL:zc};var Ro=mo,Lo=go;var Po=(e,t,r)=>{let i=new Map,n=r??{},s={...Hr,...n.platform,_c:i};return ho(e,t,{...n,platform:s})};function No(e){return jc(e)}function nn(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function jc(e){for(let t=e;t;t=nn(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=nn(e);t;t=nn(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||Mt(r)||t.tagName==="BODY"))return t}return null}async function Do(e,t,r){let i;return typeof r=="object"?i=r:i={placement:r},Po(e,t,{strategy:i.strategy,platform:{...Hr,getOffsetParent:n=>Hr.getOffsetParent(n,No)},middleware:[Lo({crossAxis:!0}),Ro({allowedPlacements:[i.placement]})]})}var Kt=f(A());var wn=f(J());var ko=f(J(),1);var sn=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function Mo(e,t){return(0,ko.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return dr(e);try{return JSON.parse(r)}catch{return dr(e)}},toAttribute:r=>JSON.stringify(r)},hasChanged:pr,...t??{}})}function Wc(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let r,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(!Ut(e[i],t[i]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;for(i of e.entries())if(!Ut(i[1],t.get(i[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let n=o=>Object.keys(o).filter(a=>o[a]!=null),s=n(e);if(r=s.length,r!==n(t).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[i]))return!1;for(i=r;i--!==0;){let o=s[i];if(!Ut(e[o],t[o]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Ut(e,t){try{return Wc(e,t)}catch{return!1}}function pr(e,t){return!Ut(e,t)}function dr(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function Fr(e,t){let r=i=>i[e]===!0;return i=>{if(r(i))return i;let n=t(i);return n[e]=!0,n}}var Io=f(J(),1);var on=e=>{let t=e??{};return(r,i)=>{var n;let s={hasChanged:pr,attribute:!1,...t};(0,Io.property)(s)(r,i);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(i,{selector:(n=t.selector)!==null&&n!==void 0?n:(a=>a[i]),store:t.store})}};var Vr=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(i=>i.type===t);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var yt=f(J(),1);var zr=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let i=[...this.callbacks];this.callbacks=[];let n=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of i)try{await o()}catch(a){n(a);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Uo=f(V(),1);var jr=globalThis,Kc=jr.ShadowRoot&&(jr.ShadyCSS===void 0||jr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var $o=(e,t)=>{if(Kc)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let i=document.createElement("style"),n=jr.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,e.appendChild(i)}};var Wr=class extends Uo.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let t=this.scopedRegistryConstructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,t.defineScopedElements(t.elementDefinitions));let r={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return $o(i,t.elementStyles),i}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(t,r){sn(t)(r),this.canDefineScopedElement(t)&&this.registry.define(t,r)}canDefineScopedElement(t){return this.scopedRegistryConstructor.canDefineScopedElement(t)}defineScopedElements(t){this.scopedRegistryConstructor.defineScopedElements(t)}defineScopedElement(t,r){this.scopedRegistryConstructor.defineScopedElement(t,r)}};function Bo(e,t,...r){var i;let n=e.querySelector(t);for(let s of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(s);return n}var Ht=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},zo,Ho=Symbol("constructorPrototype"),Fo=Symbol("constructorName"),jo=Symbol("exportpartsDebouncer"),Vo=Symbol("dynamicDependenciesLoaded"),Bt=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Bt.eventName="exportparts-updated";var ke=class extends Wr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[zo]=new zr(5),this.scheduleExportpartsUpdate=()=>{var t,r,i;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[jo].run(()=>{var n,s;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Fo]=this.constructor.name,this[Ho]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Fo]&&Object.setPrototypeOf(this,this[Ho])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[Vo]||(r[Vo]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(Bt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Bt.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new Bt)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let s=[...n??[],i];r=Bo(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(t){var r,i,n,s,o,a;let l=p=>p!=null&&p.trim().length>0,c=t.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let g=(s=(n=p.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&s!==void 0?s:[],v=(a=(o=p.getAttribute("exportparts"))===null||o===void 0?void 0:o.split(",").map(x=>x.split(":")[1]))!==null&&a!==void 0?a:[],E=[...g,...v].filter(l).map(x=>x.trim());for(let x of E)u.add(x)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(g=>`${p}:${g}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};zo=jo;Ht([(0,yt.property)()],ke.prototype,"exportpartsPrefix",void 0);Ht([Mo([])],ke.prototype,"exportpartsPrefixes",void 0);Ht([(0,yt.property)({reflect:!0})],ke.prototype,"exportparts",void 0);Ht([(0,yt.property)()],ke.prototype,"customStylesheet",void 0);Ht([(0,yt.property)()],ke.prototype,"elementToFocus",void 0);Ht([(0,yt.state)()],ke.prototype,"useAdoptedStyleSheets",void 0);function Kr(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var fr=Symbol("internalReduxEventsUnsubscribers"),Qe=Symbol("internalStoresUnsubscribers"),xt=Symbol("internalStores"),Gc=Fr(Symbol("withRedux"),function(e){var t,r,i;class n extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(o){super.willUpdate(o),[...this.reduxConstructor.reduxReactiveProperties].some(a=>o.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[xt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[xt].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[xt].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[xt].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[xt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[xt].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(o.store);c&&(o.store?this[Qe].has(o.store):this[Qe].size>0)&&(this[a]=o.selector(c.getState(),this))}})}subscribeToStore(o,a){var l;this[Qe].set(o,a.subscribe(()=>this.updateFromStores())),this[fr].set(o,[]),Kr(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((c,u)=>{if(typeof this[u]=="function"&&(!c.store||a.name===c.store)){let d=p=>this[u](p);a.addEventListener(c.eventName,d),this[fr].get(o).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[Qe].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[Qe].has(o)&&this[Qe].get(o)(),this[Qe].delete(o),(a=this[fr].get(o))===null||a===void 0||a.forEach(l=>l()),this[fr].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=Qe,r=xt,i=fr,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Wo=class extends Gc(ke){};function te(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var qc=typeof Symbol=="function"&&Symbol.observable||"@@observable",Ko=qc,an=()=>Math.random().toString(36).substring(7).split("").join("."),Yc={INIT:`@@redux/INIT${an()}`,REPLACE:`@@redux/REPLACE${an()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${an()}`},Gr=Yc;function qr(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function ln(e,t,r){if(typeof e!="function")throw new Error(te(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(te(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(te(1));return r(ln)(e,t)}let i=e,n=t,s=new Map,o=s,a=0,l=!1;function c(){o===s&&(o=new Map,s.forEach((x,C)=>{o.set(C,x)}))}function u(){if(l)throw new Error(te(3));return n}function d(x){if(typeof x!="function")throw new Error(te(4));if(l)throw new Error(te(5));let C=!0;c();let M=a++;return o.set(M,x),function(){if(C){if(l)throw new Error(te(6));C=!1,c(),o.delete(M),s=null}}}function p(x){if(!qr(x))throw new Error(te(7));if(typeof x.type>"u")throw new Error(te(8));if(typeof x.type!="string")throw new Error(te(17));if(l)throw new Error(te(9));try{l=!0,n=i(n,x)}finally{l=!1}return(s=o).forEach(M=>{M()}),x}function g(x){if(typeof x!="function")throw new Error(te(10));i=x,p({type:Gr.REPLACE})}function v(){let x=d;return{subscribe(C){if(typeof C!="object"||C===null)throw new Error(te(11));function M(){let T=C;T.next&&T.next(u())}return M(),{unsubscribe:x(M)}},[Ko](){return this}}}return p({type:Gr.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:g,[Ko]:v}}function Xc(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:Gr.INIT})>"u")throw new Error(te(12));if(typeof r(void 0,{type:Gr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(te(13))})}function Go(e){let t=Object.keys(e),r={};for(let o=0;o<t.length;o++){let a=t[o];typeof e[a]=="function"&&(r[a]=e[a])}let i=Object.keys(r),n,s;try{Xc(r)}catch(o){s=o}return function(a={},l){if(s)throw s;let c=!1,u={};for(let d=0;d<i.length;d++){let p=i[d],g=r[p],v=a[p],E=g(v,l);if(typeof E>"u"){let x=l&&l.type;throw new Error(te(14))}u[p]=E,c=c||E!==v}return c=c||i.length!==Object.keys(a).length,c?u:a}}function hr(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...i)=>t(r(...i)))}function qo(...e){return t=>(r,i)=>{let n=t(r,i),s=()=>{throw new Error(te(15))},o={getState:n.getState,dispatch:(l,...c)=>s(l,...c)},a=e.map(l=>l(o));return s=hr(...a)(n.dispatch),{...n,dispatch:s}}}function Yo(e){return qr(e)&&"type"in e&&typeof e.type=="string"}var na=Symbol.for("immer-nothing"),Xo=Symbol.for("immer-draftable"),re=Symbol.for("immer-state");function Re(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var fe=Object,Vt=fe.getPrototypeOf,Jr="constructor",ni="prototype",pn="configurable",Qr="enumerable",Xr="writable",mr="value",Me=e=>!!e&&!!e[re];function he(e){return e?sa(e)||oi(e)||!!e[Xo]||!!e[Jr]?.[Xo]||ai(e)||li(e):!1}var Zc=fe[ni][Jr].toString(),Zo=new WeakMap;function sa(e){if(!e||!bn(e))return!1;let t=Vt(e);if(t===null||t===fe[ni])return!0;let r=fe.hasOwnProperty.call(t,Jr)&&t[Jr];if(r===Object)return!0;if(!Ft(r))return!1;let i=Zo.get(r);return i===void 0&&(i=Function.toString.call(r),Zo.set(r,i)),i===Zc}function si(e,t,r=!0){xr(e)===0?(r?Reflect.ownKeys(e):fe.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((i,n)=>t(n,i,e))}function xr(e){let t=e[re];return t?t.type_:oi(e)?1:ai(e)?2:li(e)?3:0}var cn=(e,t,r=xr(e))=>r===2?e.has(t):fe[ni].hasOwnProperty.call(e,t),fn=(e,t,r=xr(e))=>r===2?e.get(t):e[t],ei=(e,t,r,i=xr(e))=>{i===2?e.set(t,r):i===3?e.add(r):e[t]=r};function Jc(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var oi=Array.isArray,ai=e=>e instanceof Map,li=e=>e instanceof Set,bn=e=>typeof e=="object",Ft=e=>typeof e=="function",un=e=>typeof e=="boolean";function Qc(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var ze=e=>e.copy_||e.base_;var Sn=e=>e.modified_?e.copy_:e.base_;function hn(e,t){if(ai(e))return new Map(e);if(li(e))return new Set(e);if(oi(e))return Array[ni].slice.call(e);let r=sa(e);if(t===!0||t==="class_only"&&!r){let i=fe.getOwnPropertyDescriptors(e);delete i[re];let n=Reflect.ownKeys(i);for(let s=0;s<n.length;s++){let o=n[s],a=i[o];a[Xr]===!1&&(a[Xr]=!0,a[pn]=!0),(a.get||a.set)&&(i[o]={[pn]:!0,[Xr]:!0,[Qr]:a[Qr],[mr]:e[o]})}return fe.create(Vt(e),i)}else{let i=Vt(e);if(i!==null&&r)return{...e};let n=fe.create(i);return fe.assign(n,e)}}function En(e,t=!1){return ci(e)||Me(e)||!he(e)||(xr(e)>1&&fe.defineProperties(e,{set:Yr,add:Yr,clear:Yr,delete:Yr}),fe.freeze(e),t&&si(e,(r,i)=>{En(i,!0)},!1)),e}function eu(){Re(2)}var Yr={[mr]:eu};function ci(e){return e===null||!bn(e)?!0:fe.isFrozen(e)}var ti="MapSet",mn="Patches",Jo="ArrayMethods",oa={};function vt(e){let t=oa[e];return t||Re(0,e),t}var Qo=e=>!!oa[e];var gr,aa=()=>gr,tu=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Qo(ti)?vt(ti):void 0,arrayMethodsPlugin_:Qo(Jo)?vt(Jo):void 0});function ea(e,t){t&&(e.patchPlugin_=vt(mn),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function gn(e){yn(e),e.drafts_.forEach(ru),e.drafts_=null}function yn(e){e===gr&&(gr=e.parent_)}var ta=e=>gr=tu(gr,e);function ru(e){let t=e[re];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ra(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[re].modified_&&(gn(t),Re(4)),he(e)&&(e=ia(t,e));let{patchPlugin_:n}=t;n&&n.generateReplacementPatches_(r[re].base_,e,t)}else e=ia(t,r);return iu(t,e,!0),gn(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==na?e:void 0}function ia(e,t){if(ci(t))return t;let r=t[re];if(!r)return ri(t,e.handledSet_,e);if(!ui(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(e);ua(r,e)}return r.copy_}function iu(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&En(t,r)}function la(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var ui=(e,t)=>e.scope_===t,nu=[];function ca(e,t,r,i){let n=ze(e),s=e.type_;if(i!==void 0&&fn(n,i,s)===t){ei(n,i,r,s);return}if(!e.draftLocations_){let a=e.draftLocations_=new Map;si(n,(l,c)=>{if(Me(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let o=e.draftLocations_.get(t)??nu;for(let a of o)ei(n,a,r,s)}function su(e,t,r){e.callbacks_.push(function(n){let s=t;if(!s||!ui(s,n))return;n.mapSetPlugin_?.fixSetContents(s);let o=Sn(s);ca(e,s.draft_??s,o,r),ua(s,n)})}function ua(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:i}=t;if(i){let n=i.getPath(e);n&&i.generatePatches_(e,n,t)}la(e)}}function ou(e,t,r){let{scope_:i}=e;if(Me(r)){let n=r[re];ui(n,i)&&n.callbacks_.push(function(){Zr(e);let o=Sn(n);ca(e,r,o,t)})}else he(r)&&e.callbacks_.push(function(){let s=ze(e);e.type_===3?s.has(r)&&ri(r,i.handledSet_,i):fn(s,t,e.type_)===r&&i.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&ri(fn(e.copy_,t,e.type_),i.handledSet_,i)})}function ri(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Me(e)||t.has(e)||!he(e)||ci(e)||(t.add(e),si(e,(i,n)=>{if(Me(n)){let s=n[re];if(ui(s,r)){let o=Sn(s);ei(e,i,o,e.type_),la(s)}}else he(n)&&ri(n,t,r)})),e}function au(e,t){let r=oi(e),i={type_:r?1:0,scope_:t?t.scope_:aa(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=i,s=ii;r&&(n=[i],s=yr);let{revoke:o,proxy:a}=Proxy.revocable(n,s);return i.draft_=a,i.revoke_=o,[a,i]}var ii={get(e,t){if(t===re)return e;let r=e.scope_.arrayMethodsPlugin_,i=e.type_===1&&typeof t=="string";if(i&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let n=ze(e);if(!cn(n,t,e.type_))return cu(e,n,t);let s=n[t];if(e.finalized_||!he(s)||i&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&Qc(t))return s;if(s===dn(e.base_,t)||lu(e,t,s)){Zr(e);let o=e.type_===1?+t:t,a=vn(e.scope_,s,e,o);return e.copy_[o]=a}return s},has(e,t){return t in ze(e)},ownKeys(e){return Reflect.ownKeys(ze(e))},set(e,t,r){let i=da(ze(e),t);if(i?.set)return i.set.call(e.draft_,r),!0;if(!e.modified_){let n=dn(ze(e),t),s=n?.[re];if(s&&s.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(Jc(r,n)&&(r!==void 0||cn(e.base_,t,e.type_)))return!0;Zr(e),xn(e)}return e.copy_[t]===r&&(r!==void 0||cn(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),ou(e,t,r)),!0},deleteProperty(e,t){return Zr(e),dn(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),xn(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=ze(e),i=Reflect.getOwnPropertyDescriptor(r,t);return i&&{[Xr]:!0,[pn]:e.type_!==1||t!=="length",[Qr]:i[Qr],[mr]:r[t]}},defineProperty(){Re(11)},getPrototypeOf(e){return Vt(e.base_)},setPrototypeOf(){Re(12)}},yr={};for(let e in ii){let t=ii[e];yr[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}yr.deleteProperty=function(e,t){return yr.set.call(this,e,t,void 0)};yr.set=function(e,t,r){return ii.set.call(this,e[0],t,r,e[0])};function dn(e,t){let r=e[re];return(r?ze(r):e)[t]}function lu(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!he(r)||r[re]?!1:e.baseRefs_.has(r)}function cu(e,t,r){let i=da(t,r);return i?mr in i?i[mr]:i.get?.call(e.draft_):void 0}function da(e,t){if(!(t in e))return;let r=Vt(e);for(;r;){let i=Object.getOwnPropertyDescriptor(r,t);if(i)return i;r=Vt(r)}}function xn(e){e.modified_||(e.modified_=!0,e.parent_&&xn(e.parent_))}function Zr(e){e.copy_||(e.assigned_=new Map,e.copy_=hn(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var uu=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,i)=>{if(Ft(t)&&!Ft(r)){let s=r;r=t;let o=this;return function(l=s,...c){return o.produce(l,u=>r.call(this,u,...c))}}Ft(r)||Re(6),i!==void 0&&!Ft(i)&&Re(7);let n;if(he(t)){let s=ta(this),o=vn(s,t,void 0),a=!0;try{n=r(o),a=!1}finally{a?gn(s):yn(s)}return ea(s,i),ra(n,s)}else if(!t||!bn(t)){if(n=r(t),n===void 0&&(n=t),n===na&&(n=void 0),this.autoFreeze_&&En(n,!0),i){let s=[],o=[];vt(mn).generateReplacementPatches_(t,n,{patches_:s,inversePatches_:o}),i(s,o)}return n}else Re(1,t)},this.produceWithPatches=(t,r)=>{if(Ft(t))return(o,...a)=>this.produceWithPatches(o,l=>t(l,...a));let i,n;return[this.produce(t,r,(o,a)=>{i=o,n=a}),i,n]},un(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),un(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),un(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){he(e)||Re(8),Me(e)&&(e=pa(e));let t=ta(this),r=vn(t,e,void 0);return r[re].isManual_=!0,yn(t),r}finishDraft(e,t){let r=e&&e[re];(!r||!r.isManual_)&&Re(9);let{scope_:i}=r;return ea(i,t),ra(void 0,i)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let n=t[r];if(n.path.length===0&&n.op==="replace"){e=n.value;break}}r>-1&&(t=t.slice(r+1));let i=vt(mn).applyPatches_;return Me(e)?i(e,t):this.produce(e,n=>i(n,t))}};function vn(e,t,r,i){let[n,s]=ai(t)?vt(ti).proxyMap_(t,r):li(t)?vt(ti).proxySet_(t,r):au(t,r);return(r?.scope_??aa()).drafts_.push(n),s.callbacks_=r?.callbacks_??[],s.key_=i,r&&i!==void 0?su(r,s,i):s.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(s);let{patchPlugin_:c}=l;s.modified_&&c&&c.generatePatches_(s,[],l)}),n}function pa(e){return Me(e)||Re(10,e),fa(e)}function fa(e){if(!he(e)||ci(e))return e;let t=e[re],r,i=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=hn(e,t.scope_.immer_.useStrictShallowCopy_),i=t.scope_.immer_.shouldUseStrictIteration()}else r=hn(e,!0);return si(r,(n,s)=>{ei(r,n,fa(s))},i),t&&(t.finalized_=!1),r}var du=globalThis.Iterator,Nf=typeof du?.from=="function";var pu=new uu,An=pu.produce;function ha(e){return({dispatch:r,getState:i})=>n=>s=>typeof s=="function"?s(r,i,e):n(s)}var ma=ha(),ga=ha;var fu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?hr:hr.apply(null,arguments)},Bf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},hu=e=>e&&typeof e.match=="function";function et(e,t){function r(...i){if(t){let n=t(...i);if(!n)throw new Error(je(0));return{type:e,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:e,payload:i[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=i=>Yo(i)&&i.type===e,r}var Sa=class vr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,vr.prototype)}static get[Symbol.species](){return vr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new vr(...t[0].concat(this)):new vr(...t.concat(this))}};function ya(e){return he(e)?An(e,()=>{}):e}function di(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function mu(e){return typeof e=="boolean"}var gu=()=>function(t){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:s=!0}=t??{},o=new Sa;return r&&(mu(r)?o.push(ma):o.push(ga(r.extraArgument))),o},yu="RTK_autoBatch";var xa=e=>t=>{setTimeout(t,e)},xu=(e,t)=>r=>{let i=!1,n=()=>{i||(i=!0,cancelAnimationFrame(s),clearTimeout(o),r())},s=e(n),o=setTimeout(n,t)},vu=(e={type:"raf"})=>t=>(...r)=>{let i=t(...r),n=!0,s=!1,o=!1,a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?xu(window.requestAnimationFrame,100):xa(10):e.type==="callback"?e.queueNotification:xa(e.timeout),c=()=>{o=!1,s&&(s=!1,a.forEach(u=>u()))};return Object.assign({},i,{subscribe(u){let d=()=>n&&u(),p=i.subscribe(d);return a.add(u),()=>{p(),a.delete(u)}},dispatch(u){try{return n=!u?.meta?.[yu],s=!n,s&&(o||(o=!0,l(c))),i.dispatch(u)}finally{n=!0}}})},bu=e=>function(r){let{autoBatch:i=!0}=r??{},n=new Sa(e);return i&&n.push(vu(typeof i=="object"?i:void 0)),n};function Ea(e){let t=gu(),{reducer:r=void 0,middleware:i,devTools:n=!0,duplicateMiddlewareCheck:s=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{},l;if(typeof r=="function")l=r;else if(qr(r))l=Go(r);else throw new Error(je(1));let c;typeof i=="function"?c=i(t):c=t();let u=hr;n&&(u=fu({trace:!1,...typeof n=="object"&&n}));let d=qo(...c),p=bu(d),g=typeof a=="function"?a(p):p(),v=u(...g);return ln(l,o,v)}function Aa(e){let t={},r=[],i,n={addCase(s,o){let a=typeof s=="string"?s:s.type;if(!a)throw new Error(je(28));if(a in t)throw new Error(je(29));return t[a]=o,n},addAsyncThunk(s,o){return o.pending&&(t[s.pending.type]=o.pending),o.rejected&&(t[s.rejected.type]=o.rejected),o.fulfilled&&(t[s.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:s.settled,reducer:o.settled}),n},addMatcher(s,o){return r.push({matcher:s,reducer:o}),n},addDefaultCase(s){return i=s,n}};return e(n),[t,r,i]}function Su(e){return typeof e=="function"}function Eu(e,t){let[r,i,n]=Aa(t),s;if(Su(e))s=()=>ya(e());else{let a=ya(e);s=()=>a}function o(a=s(),l){let c=[r[l.type],...i.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[n]),c.reduce((u,d)=>{if(d)if(Me(u)){let g=d(u,l);return g===void 0?u:g}else{if(he(u))return An(u,p=>d(p,l));{let p=d(u,l);if(p===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return u},a)}return o.getInitialState=s,o}var Au=(e,t)=>hu(e)?e.match(t):e(t);function _u(...e){return t=>e.some(r=>Au(r,t))}var Cu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",wu=(e=21)=>{let t="",r=e;for(;r--;)t+=Cu[Math.random()*64|0];return t},Tu=["name","message","stack","code"],_n=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},va=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},Ou=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of Tu)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},ba="External signal was aborted",Ru=(()=>{function e(t,r,i){let n=et(t+"/fulfilled",(l,c,u,d)=>({payload:l,meta:{...d||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),s=et(t+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),o=et(t+"/rejected",(l,c,u,d,p)=>({payload:d,error:(i&&i.serializeError||Ou)(l||"Rejected"),meta:{...p||{},arg:u,requestId:c,rejectedWithValue:!!d,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(u,d,p)=>{let g=i?.idGenerator?i.idGenerator(l):wu(),v=new AbortController,E,x;function C(b){x=b,v.abort()}c&&(c.aborted?C(ba):c.addEventListener("abort",()=>C(ba),{once:!0}));let M=(async function(){let b;try{let P=i?.condition?.(l,{getState:d,extra:p});if(Pu(P)&&(P=await P),P===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let z=new Promise((U,j)=>{E=()=>{j({name:"AbortError",message:x||"Aborted"})},v.signal.addEventListener("abort",E,{once:!0})});u(s(g,l,i?.getPendingMeta?.({requestId:g,arg:l},{getState:d,extra:p}))),b=await Promise.race([z,Promise.resolve(r(l,{dispatch:u,getState:d,extra:p,requestId:g,signal:v.signal,abort:C,rejectWithValue:((U,j)=>new _n(U,j)),fulfillWithValue:((U,j)=>new va(U,j))})).then(U=>{if(U instanceof _n)throw U;return U instanceof va?n(U.payload,g,l,U.meta):n(U,g,l)})])}catch(P){b=P instanceof _n?o(null,g,l,P.payload,P.meta):o(P,g,l)}finally{E&&v.signal.removeEventListener("abort",E)}return i&&!i.dispatchConditionRejection&&o.match(b)&&b.meta.condition||u(b),b})();return Object.assign(M,{abort:C,requestId:g,arg:l,unwrap(){return M.then(Lu)}})}}return Object.assign(a,{pending:s,rejected:o,fulfilled:n,settled:_u(o,n),typePrefix:t})}return e.withTypes=()=>e,e})();function Lu(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Pu(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var _a=Symbol.for("rtk-slice-createasyncthunk"),Ff={[_a]:Ru};function Nu(e,t){return`${e}/${t}`}function Du({creators:e}={}){let t=e?.asyncThunk?.[_a];return function(i){let{name:n,reducerPath:s=n}=i;if(!n)throw new Error(je(11));typeof process<"u";let o=(typeof i.reducers=="function"?i.reducers(Mu()):i.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(b,T){let P=typeof b=="string"?b:b.type;if(!P)throw new Error(je(12));if(P in l.sliceCaseReducersByType)throw new Error(je(13));return l.sliceCaseReducersByType[P]=T,c},addMatcher(b,T){return l.sliceMatchers.push({matcher:b,reducer:T}),c},exposeAction(b,T){return l.actionCreators[b]=T,c},exposeCaseReducer(b,T){return l.sliceCaseReducersByName[b]=T,c}};a.forEach(b=>{let T=o[b],P={reducerName:b,type:Nu(n,b),createNotation:typeof i.reducers=="function"};$u(T)?Bu(P,T,c,t):Iu(P,T,c)});function u(){let[b={},T=[],P=void 0]=typeof i.extraReducers=="function"?Aa(i.extraReducers):[i.extraReducers],z={...b,...l.sliceCaseReducersByType};return Eu(i.initialState,U=>{for(let j in z)U.addCase(j,z[j]);for(let j of l.sliceMatchers)U.addMatcher(j.matcher,j.reducer);for(let j of T)U.addMatcher(j.matcher,j.reducer);P&&U.addDefaultCase(P)})}let d=b=>b,p=new Map,g=new WeakMap,v;function E(b,T){return v||(v=u()),v(b,T)}function x(){return v||(v=u()),v.getInitialState()}function C(b,T=!1){function P(U){let j=U[b];return typeof j>"u"&&T&&(j=di(g,P,x)),j}function z(U=d){let j=di(p,T,()=>new WeakMap);return di(j,U,()=>{let Yt={};for(let[ge,rt]of Object.entries(i.selectors??{}))Yt[ge]=ku(rt,U,()=>di(g,U,x),T);return Yt})}return{reducerPath:b,getSelectors:z,get selectors(){return z(P)},selectSlice:P}}let M={name:n,reducer:E,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:x,...C(s),injectInto(b,{reducerPath:T,...P}={}){let z=T??s;return b.inject({reducerPath:z,reducer:E},P),{...M,...C(z,!0)}}};return M}}function ku(e,t,r,i){function n(s,...o){let a=t(s);return typeof a>"u"&&i&&(a=r()),e(a,...o)}return n.unwrapped=e,n}var Ca=Du();function Mu(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function Iu({type:e,reducerName:t,createNotation:r},i,n){let s,o;if("reducer"in i){if(r&&!Uu(i))throw new Error(je(17));s=i.reducer,o=i.prepare}else s=i;n.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,o?et(e,o):et(e))}function $u(e){return e._reducerDefinitionType==="asyncThunk"}function Uu(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Bu({type:e,reducerName:t},r,i,n){if(!n)throw new Error(je(18));let{payloadCreator:s,fulfilled:o,pending:a,rejected:l,settled:c,options:u}=r,d=n(e,s,u);i.exposeAction(t,d),o&&i.addCase(d.fulfilled,o),a&&i.addCase(d.pending,a),l&&i.addCase(d.rejected,l),c&&i.addMatcher(d.settled,c),i.exposeCaseReducer(t,{fulfilled:o||pi,pending:a||pi,rejected:l||pi,settled:c||pi})}function pi(){}var wa="listener",Ta="completed",Oa="cancelled",Vf=`task-${Oa}`,zf=`task-${Ta}`,jf=`${wa}-${Oa}`,Wf=`${wa}-${Ta}`;var{assign:Ra}=Object;var Cn="listenerMiddleware";var Hu=Ra(et(`${Cn}/add`),{withTypes:()=>Hu}),Kf=et(`${Cn}/removeAll`),Fu=Ra(et(`${Cn}/remove`),{withTypes:()=>Fu});function je(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Vu=Fr(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),fi=class extends Vu(Object){};window.ftReduxStores||(window.ftReduxStores={});var La=class e extends fi{static get(t){var r;let i=typeof t=="string"?t:t.name,n=typeof t=="string"?void 0:t,s=window.ftReduxStores[i];if(Kr(s))return s;if(n==null)return;let o=Ca({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),a=Ea({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=dr(o.getInitialState());for(let d of c.keeping)u[d]=(l??u)[d];return u}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return o.reducer(l,c)}});return window.ftReduxStores[n.name]=new e(o,a,n.eventBus)}constructor(t,r,i){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Vr,this.injectInto=(s,o)=>this.reduxSlice.injectInto(s,o),this.selectSlice=s=>this.reduxSlice.selectSlice(s);let n=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,o,a)=>{let l=o,c=s[l];return c?(...u)=>{let d=c(...u.map(n));return this.reduxStore.dispatch(d),d}:u=>{let d=l,p=this.getState()[d];Ut(p,u)||this.setState({[d]:n(u)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var hi=class{static format(t,r,i,n,s){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(i,n,!!s)):this.getIntlDateTime(t,r,i,n,!!s)}static getMomentDateFormat(t,r,i){return i?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,i,n,s){let o=typeof t=="string"?new Date(t):t,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(o),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return s?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let t=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var mi=f(A()),zu="ft-app-info",bt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};bt.eventName="authentication-change";var br=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};br.eventName="ui-locale-changed";var ju={session:(e,t)=>{(0,mi.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>R.dispatchEvent(new bt(t.payload)),0))}},R=mi.FtReduxStore.get({name:zu,reducers:ju,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var Pa=f(A()),gi=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},Eh=(0,Pa.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(R)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,s;return((s=(n=this.metadataDescriptors.find(a=>a.key===i))===null||n===void 0?void 0:n.date)!==null&&s!==void 0?s:!1)?a=>hi.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return gi([(0,wn.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),gi([(0,wn.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),gi([on({store:R.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],t.prototype,"metadataDescriptors",void 0),gi([on({store:R.name})],t.prototype,"uiLocale",void 0),t});var Na;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Na||(Na={}));var Da;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Da||(Da={}));var ka;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(ka||(ka={}));var Ma;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Ma||(Ma={}));var Ia;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Ia||(Ia={}));var $a;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})($a||($a={}));var Ua;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(Ua||(Ua={}));var Ba;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(Ba||(Ba={}));var Ha;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(Ha||(Ha={}));var Fa;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Fa||(Fa={}));var Va;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(Va||(Va={}));var za;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(za||(za={}));var ja;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(ja||(ja={}));var Wa;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Wa||(Wa={}));var Ka;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Ka||(Ka={}));var Ga;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Ga||(Ga={}));var qa;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(qa||(qa={}));var Ya;(function(e){e.ASC="ASC",e.DESC="DESC"})(Ya||(Ya={}));var Xa;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Xa||(Xa={}));var Za;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Za||(Za={}));var Ja;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Ja||(Ja={}));var Qa;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Qa||(Qa={}));var el;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(el||(el={}));var tl;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(tl||(tl={}));var rl;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(rl||(rl={}));var il;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(il||(il={}));var nl;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(nl||(nl={}));var G;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(G||(G={}));var ve;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(ve||(ve={}));var sl;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(sl||(sl={}));var ol;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(ol||(ol={}));var al;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(al||(al={}));var ll;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(ll||(ll={}));var cl;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(cl||(cl={}));var ul;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(ul||(ul={}));var dl;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(dl||(dl={}));var pl;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(pl||(pl={}));var fl;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(fl||(fl={}));var hl;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(hl||(hl={}));var ml;(function(e){e.SOURCES="SOURCES",e.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",e.VOCABULARIES="VOCABULARIES",e.METADATA="METADATA",e.PRETTY_URL="PRETTY_URL",e.ACCESS_RULE="ACCESS_RULE",e.DESIGNED_PAGES="DESIGNED_PAGES",e.THEME_STUDIO="THEME_STUDIO",e.PORTAL_GENERAL="PORTAL_GENERAL",e.ASSETS="ASSETS",e.CODE_LIBRARY="CODE_LIBRARY",e.THEME="THEME",e.CONTENT_STYLES="CONTENT_STYLES",e.HOMEPAGE="HOMEPAGE",e.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",e.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",e.PORTAL_METADATA="PORTAL_METADATA",e.LANGUAGES="LANGUAGES",e.PRINT_TEMPLATES="PRINT_TEMPLATES",e.OFFLINE="OFFLINE",e.CUSTOM_JS="CUSTOM_JS",e.CONFIDENTIALITY="CONFIDENTIALITY",e.NOTIFICATIONS="NOTIFICATIONS"})(ml||(ml={}));var gl;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(gl||(gl={}));var Wu={[G.PERSONAL_BOOK_SHARE_USER]:[G.PERSONAL_BOOK_USER],[G.HTML_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.PDF_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.KHUB_ADMIN]:[G.CONTENT_PUBLISHER],[G.ADMIN]:[G.KHUB_ADMIN,G.USERS_ADMIN,G.PORTAL_ADMIN,G.BEHAVIOR_DATA_USER],[G.GENERATIVE_AI_EXPORT_USER]:[G.GENERATIVE_AI_USER]};function yl(e,t){return e===t||(Wu[e]??[]).some(r=>yl(r,t))}function xl(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(i=>yl(i,t))}var Si=f(A());var Tn=f(A());var St=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:i}=R.getState(),n=t??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(t){return new Promise(r=>{let i=e.get(t);if(i)r(i);else{let n=R.subscribe(()=>{i=e.get(t),i&&(n(),r(i))})}})}};var zt=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:St.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):St.await()}};var me=class extends zt{constructor(t=!0,r){var i;super(r),this.sortObjectFields=(s,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Tn.CacheRegistry,this.cache=t?n.commonCache:new Tn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var yi=class extends me{async listMySearches(){let{session:t}=R.getState();return xl(t,G.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var xi=class extends me{async listMyBookmarks(){let t=R.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var vi=class extends me{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=R.getState().session;return!!t?.sessionAuthenticated}};var bi=class extends me{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let t=R.getState().session;return!!t?.sessionAuthenticated}};var Ku="ft-user-assets",Gu={setAssetCount:(e,t)=>{let{userAssetType:r,count:i}=t.payload.assetCount;e.assetCounts.allAsset[r]=i},clearAssetCount:e=>{Object.values(ve).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:r,mapId:i,asset:n}=t.payload;Rn(e,r,[...On(e,r),n]),vl(e,r,1,i),bl(e,n)},editAsset:(e,t)=>{let{assetType:r,asset:i}=t.payload;Rn(e,r,On(e,r).map(n=>n.id===i.id?i:n)),bl(e,i)},removeAsset:(e,t)=>{let{assetType:r,mapId:i,assetId:n}=t.payload;Rn(e,r,On(e,r).filter(s=>s.id!==n)),vl(e,r,-1,i)}},Sl={[ve.SEARCHES]:"savedSearches",[ve.BOOKMARKS]:"bookmarks",[ve.BOOKS]:void 0,[ve.COLLECTIONS]:void 0},On=(e,t)=>{var r;let i=Sl[t];return i?(r=e[i])!==null&&r!==void 0?r:[]:[]},Rn=(e,t,r)=>{let i=Sl[t];i&&(e[i]=r)},vl=(e,t,r,i)=>{let n=e.assetCounts.allAsset[t];if(n!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,n+r),t===ve.BOOKMARKS&&i)){let s=e.assetCounts.bookmarkByMap[i];e.assetCounts.bookmarkByMap[i]=Math.max(0,s+r)}},bl=(e,t)=>{let r=e.assetLabels.map(n=>n.title),i=t.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));e.assetLabels.push(...i)},se=Si.FtReduxStore.get({name:Ku,reducers:Gu,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ve).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Ln=class{constructor(t=new vi,r=new bi){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=R.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new xi,this.savedSearchesService=new yi,R.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=R.getState();(0,Si.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),se.actions.clearAssetCount(),se.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),se.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),se.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();se.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();se.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&se.getState().assetCounts.allAsset[t]!==r.count&&se.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&se.getState().assetCounts.bookmarkByMap[t]!==r.count&&se.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(se.getState().assetCounts.bookmarkByMap).length!==0;t===ve.BOOKMARKS&&r&&se.actions.clearBookmarkCountByMap(),se.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;se.actions.bookmarks(r)}}},qu=new Ln;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=qu);var Pn=class{addCommand(t,r=!1){R.commands.add(t,r)}consumeCommand(t){return R.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Pn;var be=f(A());var El,jt=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Yu=Symbol("clearAfterUnitTest"),Ei=class extends(0,be.withEventBus)(me){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[El]=()=>{this.defaultMessages={},this.cache=new be.CacheRegistry,this.listeners={}},this.currentUiLocale=R.getState().uiLocale,R.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=R.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var i;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[t])!==null&&i!==void 0?i:{},...r};(0,be.deepEqual)(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,i;return this.fetchContext(t),(i=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(t,r){let i=t.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(t,r,...i){var n;let s=t.toLowerCase(),o=this.resolveContext(s);return new be.ParametrizedLabelResolver((n=this.defaultMessages[s])!==null&&n!==void 0?n:{},o).resolve(r,...i)}async fetchContext(t){let r=!this.cache.has(t),i;try{i=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(n){!(n instanceof be.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(t,r){var i;return t=t.toLowerCase(),this.listeners[t]=(i=this.listeners[t])!==null&&i!==void 0?i:new Set,this.listeners[t].add(r),()=>{var n;return(n=this.listeners[t])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new jt({loadedContexts:t})),this.dispatchEvent(new jt({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new jt({loadedContexts:[t]})),this.dispatchEvent(new jt({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(i=>(0,be.delay)(0).then(()=>i()).catch(()=>null)))}};El=Yu;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Ei{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Ei{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Sr=window.FluidTopicsI18nService,Nn=window.FluidTopicsCustomI18nService;var Al=f(A()),Dn=class{highlightHtml(t,r,i){(0,Al.highlightHtml)(t,r,i)}};window.FluidTopicsHighlightHtmlService=new Dn;var _l=f(A());var kn=class{isDate(t){var r,i,n,s;return(s=(n=((i=(r=R.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===t))===null||n===void 0?void 0:n.date)!==null&&s!==void 0?s:!1}format(t,r){var i,n,s,o;if(t==null)return"";try{return _l.DateFormatter.format(t,(i=r?.locale)!==null&&i!==void 0?i:R.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(t)} is not valid`,a),a}}};window.FluidTopicsDateService=new kn;var Cl=f(A());var Er=class{static get(t,r){var i,n,s,o;let a=R.getState(),{lang:l,region:c}=(s=(n=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&s!==void 0?s:{lang:"en",region:"US"};return new Cl.SearchPlaceConverter(a.baseUrl,t??20,(o=a.localesConfiguration)===null||o===void 0?void 0:o.allLanguagesAllowed,r??`${l}-${c}`)}};var Mn=class{urlToSearchRequest(t){return Er.get().parse(t)}searchRequestToUrl(t){return Er.get().serialize(t)}};window.FluidTopicsUrlService=new Mn;var We=f(A());var Et=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{nextLocation:t}})}};Et.eventName="before-location-change";var At=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};At.eventName="change";var In=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},wl=new In;var Ai=class e extends We.WithEventBus{static build(){return new e(window.history,wl,()=>window.location,!1)}constructor(t,r,i,n){var s,o;super(),this.history=t,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(o=(s=t.state)===null||s===void 0?void 0:s.index)!==null&&o!==void 0?o:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(t,r=!1){let i=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,We.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new At(this.currentItem())),0)}installProxies(){let t=r=>(i,n,[s,o,a])=>{let l=new Et(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(l);let c=r(),u={...c===this.currentIndex?this.currentState:void 0,...s,index:c,href:l.detail.nextLocation.href};i.apply(n,[u,o,u.href]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let i={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addBeforeLocationChangeListener(t){this.addEventListener(Et.eventName,t)}removeBeforeLocationChangeListener(t){this.removeEventListener(Et.eventName,t)}addHistoryChangeListener(t){this.addEventListener(At.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(At.eventName,t)}currentItem(){return(0,We.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,We.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,We.deepCopy)(r.find(i=>t(i)))}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,We.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let i=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!i)return t;let n=t,s=t+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,i);)this.hasState(s)&&(n=s),s++;return n}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var i;if(!this.hasState(t))return!1;let n=r??this.currentState.majorStateId,s=(i=this.states[t])===null||i===void 0?void 0:i.majorStateId;return s==null||s!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Ai.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:e=>window.FluidTopicsInternalHistoryService.backwardItemMatching(e),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e),addBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(e),removeBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(e)});var Tl=f(V());var Ol=Tl.css`
656
+ `;var Pl=f(V()),oe=f(J()),wt=f(A());var _t=f(A());function Rl(e,t){let{authenticationRequired:r,session:i}=R.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(t):e()}var _i=class extends zt{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var $n=class e extends _t.FtStateManager{static build(t){return new e(R,t)}constructor(t,r){super(),this.store=t,this.cache=new _t.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new _i,this.cleanSessionDebouncer=new _t.Debouncer,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new _t.Debouncer(500),this.apiProvider=r??(()=>St.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}addListeners(){this.store.addEventListener(bt.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(bt.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let t=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(t)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var t;let r=await this.cache.get("availableContentLocales",()=>Rl(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=r.contentLocales)!==null&&t!==void 0?t:[])}setStickyFilters(t){this.store.actions.stickyFilters(t)}setBaseUrl(t){this.store.actions.baseUrl(t),window.fluidTopicsBaseUrl=t}setTenantId(t){this.store.actions.tenantId(t)}setApiIntegrationIdentifier(t){this.store.actions.apiIntegrationIdentifier(t)}setApiIntegrationAppVersion(t){this.store.actions.apiIntegrationAppVersion(t)}setUiLocale(t){this.store.actions.uiLocale(t)}setLocalesConfiguration(t){this.store.actions.localesConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(t){this.store.actions.availableContentLocales(t),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(t,r){this.userLocaleService.updateUiLocale({uiLocale:t,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new br(i)))}).catch(()=>{})}setMetadataConfiguration(t){this.store.actions.metadataConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setNoCustom(t){this.store.actions.noCustom(t)}setEditorMode(t){this.store.actions.editorMode(t)}setNoCustomComponent(t){this.store.actions.noCustomComponent(t)}setNoCustomCode(t){this.store.actions.noCustomCode(t)}setSession(t){this.store.actions.session(t),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(t){this.store.actions.openExternalDocumentInNewTab(t)}setNavigatorOnline(t){this.store.actions.navigatorOnline(t)}setForcedOffline(t){this.store.actions.forcedOffline(t)}setAuthenticationRequired(t){this.store.actions.authenticationRequired(t)}},Ll=$n.build();var Ct=class extends Event{constructor(t,r,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=i,this.subscribe=n??!1}};var Ar=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=t=>{let r=this.pendingContextRequests.get(t.context);if(r===void 0)return;this.pendingContextRequests.delete(t.context);let{requests:i}=r;for(let{elementRef:n,callbackRef:s}of i){let o=n.deref(),a=s.deref();o===void 0||a===void 0||o.dispatchEvent(new Ct(t.context,o,a,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],i=t.callback,n=this.pendingContextRequests.get(t.context);n===void 0&&this.pendingContextRequests.set(t.context,n={callbacks:new WeakMap,requests:[]});let s=n.callbacks.get(r);s===void 0&&n.callbacks.set(r,s=new WeakSet),s.has(i)||(s.add(i),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(t){t.addEventListener("context-request",this.onContextRequest),t.addEventListener("context-provider",this.onContextProvider)}detach(t){t.removeEventListener("context-request",this.onContextRequest),t.removeEventListener("context-provider",this.onContextProvider)}};var Z=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},F=class extends wt.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Ll,this.contextRoot=new Ar}render(){return Pl.html`
657
+ <slot></slot>
658
+ `}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(t){var r;super.update(t),t.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),t.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),t.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),t.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),t.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),t.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),t.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>Sr.addContext(i)),t.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),t.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),t.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};F.elementDefinitions={};F.styles=Ol;Z([(0,oe.property)()],F.prototype,"baseUrl",void 0);Z([(0,oe.property)()],F.prototype,"tenantId",void 0);Z([(0,oe.property)()],F.prototype,"apiIntegrationIdentifier",void 0);Z([(0,oe.property)()],F.prototype,"apiIntegrationAppVersion",void 0);Z([(0,oe.property)()],F.prototype,"uiLocale",void 0);Z([(0,wt.jsonProperty)(null)],F.prototype,"availableUiLocales",void 0);Z([(0,wt.jsonProperty)(null)],F.prototype,"metadataConfiguration",void 0);Z([(0,oe.property)({type:Boolean})],F.prototype,"editorMode",void 0);Z([(0,oe.property)({type:Boolean})],F.prototype,"noCustom",void 0);Z([(0,oe.property)({type:Boolean})],F.prototype,"openExternalDocumentInNewTab",void 0);Z([(0,oe.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],F.prototype,"noCustomComponent",void 0);Z([(0,oe.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],F.prototype,"noCustomCode",void 0);Z([(0,oe.property)({type:Boolean})],F.prototype,"withManualResources",void 0);Z([(0,oe.property)({type:Boolean})],F.prototype,"navigatorOnline",void 0);Z([(0,oe.property)({type:Boolean})],F.prototype,"forcedOffline",void 0);Z([(0,oe.property)({type:Boolean})],F.prototype,"authenticationRequired",void 0);Z([(0,wt.jsonProperty)([])],F.prototype,"messageContexts",void 0);Z([(0,wt.jsonProperty)(void 0)],F.prototype,"session",void 0);var Dl=f(A());var Nl={"ft-app-context":F};(0,Dl.customElements)(Nl);var kl=f(J());var Un=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}fromAttribute(t){if(t!=null)try{return JSON.parse(t)}catch{if(this.isI18nKey(t)){let[r,i]=t.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},Wt=new Un;var Ju=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},Cr=Symbol("i18nAttributes"),Ml=Symbol("i18nListAttributes"),Il=Symbol("i18nProperties"),Ci=Symbol("i18nContexts"),_r=Symbol("i18nUnsubs"),$l=(0,Kt.applyMixinOnce)(Symbol("withI18n"),function(e){var t,r;class i extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?Nn:Sr}i18n(s){let{context:o,key:a,message:l}=s,{custom:c,args:u,argsProvider:d}=s;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,c);let p=u??(d?d(this):[]);return this.getI18nService(c).resolveMessage(o,a,...p)}return l}async awaitI18n(s){let{context:o,custom:a}=s;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(s)}customI18n(s,o){if(Wt.isI18nKey(s)){let[a,l]=s.split(".");return this.i18n({custom:!0,context:a,key:l,...o})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((o,a,l)=>s.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((o,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===s}),this.updateI18nProperties(o=>o.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var o,a;let l=this,c=(u,d,p)=>p?.context&&p.key&&s(u,d,p)?{...p,message:this.i18n({context:p.context,key:p.key,custom:p.custom,...u})}:p;(o=this[Cr])===null||o===void 0||o.forEach((u,d)=>l[d]=c(u,d,l[d])),(a=this[Ml])===null||a===void 0||a.forEach((u,d)=>{var p;return l[d]=(p=l[d])===null||p===void 0?void 0:p.map(g=>c(u,d,g))})}updateI18nProperties(s){var o;(o=this[Il])===null||o===void 0||o.forEach((a,l)=>{s(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(s,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,o,a)}addI18nContext(s,o,a){let l=(typeof s=="string"?s:s.name).toLowerCase();a=typeof s=="string"?a:s.custom,this[Ci].set(l,{isCustomContext:a}),this[_r].has(l)||this[_r].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,o)}hasI18nContext(s){return this[Ci].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Ci].forEach((s,o)=>this.addI18nContext(o,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[_r].forEach(s=>s()),this[_r].clear()}}return t=Ci,r=_r,Ju([(0,kl.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),wi=class extends $l(Kt.FtLitElement){},Ti=class extends $l(Kt.FtLitElementRedux){};var Ul=f(A());var Bn=class{fromAttribute(t){if(!t)return[];try{let r=JSON.parse(t);return Array.isArray(r)?r.map(i=>typeof i=="string"?Wt.fromAttribute(i):i):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},Qu=new Bn;var Bl=(e,t)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:Ul.hasChanged,converter:Wt,...t}),r[Cr]=(n=r[Cr])!==null&&n!==void 0?n:new Map,r[Cr].set(i,e??{})};var Hl=f(V());var Fl=Hl.css`
659
+ `;var Oi=f(V()),qt=f(J()),Ri=f(A());var Gt=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},Se=class extends Ti{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(R)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:Oi.nothing:Oi.html`
660
+ <span class="ft-i18n">
661
+ ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
662
+ </span>
663
+ `}update(t){var r;super.update(t),["context","key","defaultMessage"].some(i=>t.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Se.elementDefinitions={};Se.styles=Fl;Gt([(0,Ri.redux)()],Se.prototype,"editorMode",void 0);Gt([(0,qt.property)()],Se.prototype,"context",void 0);Gt([(0,qt.property)()],Se.prototype,"key",void 0);Gt([(0,Ri.jsonProperty)([])],Se.prototype,"args",void 0);Gt([(0,qt.property)()],Se.prototype,"defaultMessage",void 0);Gt([(0,qt.state)()],Se.prototype,"editorMessage",void 0);var zl=f(A());var Vl={"ft-i18n":Se};(0,zl.customElements)(Vl);var Le=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},Y=class extends wi{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new Ee.Debouncer,this.revealDebouncer=new Ee.Debouncer,this.onTouch=t=>{this.isIgnored(t)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=t=>{this.isIgnored(t)?this.matchesIgnored(t)&&this.hide():this.show()},this.onFocusIn=t=>{!this.isIgnored(t)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var t,r;return jl.html`
664
+ <div part="container"
665
+ class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
666
+ <slot part="slot"></slot>
667
+ <div part="tooltip" role="tooltip" inert
668
+ class="ft-tooltip ft-tooltip--${this.validPosition}"
669
+ popover="manual">
670
+ <div part="tooltip-content" class="ft-tooltip--content">
671
+ <slot name="text"></slot>
672
+ <ft-typography variant="${ye.caption}" ?hidden=${!(!((t=this.text)===null||t===void 0)&&t.message)}>
673
+ ${(r=this.text)===null||r===void 0?void 0:r.message}
674
+ </ft-typography>
675
+ </div>
676
+ </div>
677
+ </div>
678
+ `}setupFor(t){this.eventsTarget!==t&&(this.removeHandlers(),this.eventsTarget=t,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(t){var r,i;t.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,r){let i=this.manual;this.manual=!0;let n=this.text;this.text={message:t},await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&Do(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:t,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${t}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${Ee.designSystemVariables.transitionDuration}, left ${Ee.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(t){return(0,Ee.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(t){return this.manual||this.matchesIgnored(t)}};Y.elementDefinitions={"ft-typography":ie};Y.styles=no;Le([Bl()],Y.prototype,"text",void 0);Le([(0,Ae.property)({type:Boolean})],Y.prototype,"manual",void 0);Le([(0,Ae.property)({type:Boolean})],Y.prototype,"inline",void 0);Le([(0,Ee.numberProperty)()],Y.prototype,"delay",void 0);Le([(0,Ae.property)()],Y.prototype,"position",void 0);Le([(0,Ee.jsonProperty)([])],Y.prototype,"ignoreMatchingElements",void 0);Le([(0,Ae.queryAssignedNodes)()],Y.prototype,"slotNodes",void 0);Le([(0,Ae.query)(".ft-tooltip--container")],Y.prototype,"container",void 0);Le([(0,Ae.query)(".ft-tooltip")],Y.prototype,"tooltip",void 0);Le([(0,Ae.query)(".ft-tooltip--content")],Y.prototype,"tooltipContent",void 0);Le([(0,Ae.state)()],Y.prototype,"visible",void 0);var Kl=f(A());var Wl={"ft-tooltip":Y};(0,Kl.customElements)(Wl);var Gl=f(V()),wr=f(A()),Tt={color:wr.FtCssVariableFactory.extend("--ft-loader-color","",wr.designSystemVariables.colorPrimary),size:wr.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},ql=Gl.css`
679
+ :host {
680
+ line-height: 0;
681
+ }
682
+
683
+ .ft-loader {
684
+ display: inline-block;
685
+ position: relative;
686
+
687
+ width: ${Tt.size};
688
+ height: ${Tt.size};
689
+ }
690
+
691
+ .ft-loader div {
692
+ position: absolute;
693
+ top: 37.5%;
694
+ width: 25%;
695
+ height: 25%;
696
+ border-radius: 50%;
697
+ background: ${Tt.color};
698
+ animation-timing-function: cubic-bezier(0, 1, 1, 0);
699
+ }
700
+
701
+ .ft-loader div:nth-child(1) {
702
+ left: 2.5%;
703
+ animation: appear 0.6s infinite;
704
+ }
705
+
706
+ .ft-loader div:nth-child(2) {
707
+ left: 2.5%;
708
+ animation: move 0.6s infinite;
709
+ }
710
+
711
+ .ft-loader div:nth-child(3) {
712
+ left: 37.5%;
713
+ animation: move 0.6s infinite;
714
+ }
715
+
716
+ .ft-loader div:nth-child(4) {
717
+ left: 72.5%;
718
+ animation: disappear 0.6s infinite;
719
+ }
720
+
721
+ @keyframes appear {
722
+ 0% {
723
+ transform: scale(0);
724
+ }
725
+ 100% {
726
+ transform: scale(1);
727
+ }
728
+ }
729
+
730
+ @keyframes disappear {
731
+ 0% {
732
+ transform: scale(1);
733
+ }
734
+ 100% {
735
+ transform: scale(0);
736
+ }
737
+ }
738
+
739
+ @keyframes move {
740
+ 0% {
741
+ transform: translate(0, 0);
742
+ }
743
+ 100% {
744
+ transform: translate(calc(0.35 * ${Tt.size}), 0);
745
+ }
746
+ }
747
+ `;var Yl=f(V()),Xl=f(A());var Ot=class extends Xl.FtLitElement{render(){return Yl.html`
748
+ <div class="ft-loader">
749
+ <div></div>
750
+ <div></div>
751
+ <div></div>
752
+ <div></div>
753
+ </div>
754
+ `}};Ot.styles=ql;var Jl=f(A());var Zl={"ft-loader":Ot};(0,Jl.customElements)(Zl);var tt=f(V()),Li=f(Nt()),I=f(J());var tc=f(V()),w=f(A());var Ql=w.FtCssVariableFactory.extend("--ft-button-color","",w.designSystemVariables.colorPrimary),X={backgroundColor:w.FtCssVariableFactory.extend("--ft-button-background-color","",w.designSystemVariables.colorSurface),borderRadius:w.FtCssVariableFactory.extend("--ft-button-border-radius","",w.designSystemVariables.borderRadiusL),color:Ql,fontSize:w.FtCssVariableFactory.extend("--ft-button-font-size","",_e.fontSize),iconSize:w.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:w.FtCssVariableFactory.extend("--ft-button-ripple-color","",Ql),verticalPadding:w.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:w.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:w.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:w.FtCssVariableFactory.external(w.designSystemVariables.colorOpacityDisabled,"Design system")},ec=w.FtCssVariableFactory.extend("--ft-button-primary-color","",w.FtCssVariableFactory.extend("--ft-button-color","",w.designSystemVariables.colorOnPrimary)),Hn={backgroundColor:w.FtCssVariableFactory.extend("--ft-button-primary-background-color","",w.FtCssVariableFactory.extend("--ft-button-background-color","",w.designSystemVariables.colorPrimary)),color:ec,rippleColor:w.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",ec)},Ie={borderRadius:w.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",w.FtCssVariableFactory.extend("--ft-button-border-radius","",w.designSystemVariables.borderRadiusM)),verticalPadding:w.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:w.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:w.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},rc=tc.css`
755
+ :host {
756
+ display: inline-block;
757
+ max-width: 100%;
758
+ pointer-events: none;
759
+ }
760
+
761
+ .ft-button {
762
+ box-shadow: 0px 0px 0px transparent;
763
+ border: 0px solid transparent;
764
+ text-shadow: 0px 0px 0px transparent;
765
+ font-size: ${X.fontSize};
766
+ text-decoration: none;
767
+ }
768
+
769
+ .ft-button:hover {
770
+ box-shadow: 0px 0px 0px transparent;
771
+ border: 0px solid transparent;
772
+ text-shadow: 0px 0px 0px transparent;
773
+ }
774
+
775
+ .ft-button:active {
776
+ outline: none;
777
+ border: none;
778
+ }
779
+
780
+ .ft-button:focus {
781
+ outline: none;
782
+ }
783
+
784
+ .ft-button:focus-visible {
785
+ outline: 2px solid ${w.designSystemVariables.colorPrimary};
786
+ outline-offset: 2px;
787
+ }
788
+
789
+ .ft-button {
790
+ position: relative;
791
+ display: flex;
792
+ justify-content: center;
793
+ align-items: center;
794
+ width: 100%;
795
+ box-sizing: border-box;
796
+ border: none;
797
+ pointer-events: auto;
798
+
799
+ --button-internal-line-height: max(calc(${X.fontSize} + 2px), ${X.iconSize});
800
+ --button-internal-color: ${X.color};
801
+ ${(0,w.setVariable)(pe.size,X.iconSize)};
802
+ ${(0,w.setVariable)(ne.color,X.rippleColor)};
803
+ ${(0,w.setVariable)(ne.borderRadius,X.borderRadius)};
804
+
805
+ border-radius: ${X.borderRadius};
806
+ padding: ${X.verticalPadding} ${X.horizontalPadding};
807
+ background-color: ${X.backgroundColor};
808
+ color: var(--button-internal-color);
809
+ }
810
+
811
+ .ft-button.ft-button--outlined {
812
+ border: 1px solid var(--button-internal-color);
813
+ padding: calc(${X.verticalPadding} - 1px) calc(${X.horizontalPadding} - 1px);
814
+ }
815
+
816
+ .ft-button.ft-button--dense {
817
+ padding: ${Ie.verticalPadding} ${Ie.horizontalPadding};
818
+ border-radius: ${Ie.borderRadius};
819
+ ${(0,w.setVariable)(ne.borderRadius,Ie.borderRadius)};
820
+ }
821
+
822
+ .ft-button.ft-button--dense.ft-button--outlined {
823
+ padding: calc(${Ie.verticalPadding} - 1px) calc(${Ie.horizontalPadding} - 1px);
824
+ }
825
+
826
+ .ft-button:not([disabled]):hover {
827
+ cursor: pointer;
828
+ }
829
+
830
+ .ft-button--round {
831
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${X.verticalPadding});
832
+ }
833
+
834
+ .ft-button--round.ft-button--dense {
835
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${Ie.verticalPadding});
836
+ }
837
+
838
+ .ft-button[disabled] {
839
+ filter: grayscale(1);
840
+ opacity: ${X.opacityDisabled};
841
+ }
842
+
843
+ .ft-button.ft-button--primary {
844
+ background-color: ${Hn.backgroundColor};
845
+ --button-internal-color: ${Hn.color};
846
+ ${(0,w.setVariable)(ne.color,Hn.rippleColor)};
847
+ }
848
+
849
+ .ft-button--label {
850
+ position: relative;
851
+ overflow: hidden;
852
+ white-space: nowrap;
853
+ text-overflow: ellipsis;
854
+ display: block;
855
+ margin: 0 ${X.iconPadding};
856
+ ${(0,w.setVariable)(_e.fontSize,"1em")};
857
+ ${(0,w.setVariable)(_e.lineHeight,"var(--button-internal-line-height)")};
858
+ }
859
+
860
+ .ft-button--dense .ft-button--label {
861
+ margin: 0 ${Ie.iconPadding};
862
+ }
863
+
864
+ .ft-button--label.ft-button--label-no-text {
865
+ margin: 0;
866
+ }
867
+
868
+ [part="icon"] {
869
+ flex-shrink: 0;
870
+ position: relative;
871
+ }
872
+
873
+ .ft-button--label[hidden] + [part="icon"] {
874
+ margin: 0 calc(${X.horizontalPadding} * -1);
875
+ padding: 0 ${X.verticalPadding};
876
+ }
877
+
878
+ .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
879
+ margin: 0 calc(${Ie.horizontalPadding} * -1);
880
+ padding: 0 ${Ie.verticalPadding};
881
+ }
882
+
883
+ .ft-button:not(.ft-button--trailing-icon) [part="label"] {
884
+ order: 2;
885
+ }
886
+
887
+ ft-loader {
888
+ ${(0,w.setVariable)(Tt.size,X.iconSize)};
889
+ ${(0,w.setVariable)(Tt.color,"var(--button-internal-color)")};
890
+ }
891
+ `;var H=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},k=class e extends(0,$e.toFtFormComponent)($e.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",t=>{var r;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var t,r,i;let n={"ft-button--label":!0,"ft-safari-ellipsis-fix":$e.isSafari,"ft-button--label-no-text":!this.hasTextContent},s=tt.html`
892
+ <ft-ripple part="ripple"
893
+ ?disabled=${this.isDisabled()}
894
+ ?activated=${this.activated}
895
+ ></ft-ripple>
896
+ <ft-typography part="label"
897
+ variant="${ye.button}"
898
+ element="span"
899
+ class="${(0,Li.classMap)(n)}">
900
+ <slot></slot>
901
+ </ft-typography>
902
+ ${this.resolveIcon()}
903
+ `,o=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(o?tt.html`
904
+ <a href="${o}"
905
+ target="${(t=this.target)!==null&&t!==void 0?t:"_self"}"
906
+ part="button"
907
+ class="${(0,Li.classMap)(this.buttonClasses)}"
908
+ aria-label="${Pe((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
909
+ ?disabled=${this.isDisabled()}>
910
+ ${s}
911
+ </a>
912
+ `:tt.html`
913
+ <button part="button"
914
+ class="${(0,Li.classMap)(this.buttonClasses)}"
915
+ aria-label="${Pe((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
916
+ aria-haspopup="${Pe(this.ariaHasPopup)}"
917
+ aria-pressed="${Pe(this.ariaPressed)}"
918
+ ?disabled=${this.isDisabled()}>
919
+ ${s}
920
+ </button>
921
+ `)}addTooltipIfNeeded(t){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?tt.html`
922
+ <ft-tooltip part="tooltip"
923
+ text="${this.label}"
924
+ position="${this.tooltipPosition}">
925
+ ${t}
926
+ </ft-tooltip>
927
+ `:t}resolveIcon(){return this.loading?tt.html`
928
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?tt.html`
929
+ <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
930
+ `:tt.html`
931
+ <slot part="icon" name="icon"></slot>
932
+ `}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}showTooltip(){var t;(t=this.tooltip)===null||t===void 0||t.show()}showTemporaryTooltip(t,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(t,r)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(t){super.contentAvailableCallback(t),this.labelContainer&&e.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&e.labelsObserver.unobserve(this.labelContainer)}};k.elementDefinitions={"ft-ripple":$,"ft-tooltip":Y,"ft-icon":ee,"ft-loader":Ot,"ft-typography":ie};k.styles=[$e.safariEllipsisFix,rc,$e.noTextSelect];k.labelsObserver=new IntersectionObserver(e=>{for(let t of e){let r=t.target.getRootNode();r.host?r.host.hasTextContent=t.boundingClientRect.width>0:k.labelsObserver.unobserve(t.target)}});H([(0,I.property)({type:Boolean})],k.prototype,"primary",void 0);H([(0,I.property)({type:Boolean})],k.prototype,"outlined",void 0);H([(0,I.property)({type:Boolean})],k.prototype,"dense",void 0);H([(0,I.property)({type:Boolean})],k.prototype,"round",void 0);H([(0,I.property)({type:Boolean})],k.prototype,"disabled",void 0);H([(0,I.property)()],k.prototype,"icon",void 0);H([(0,I.property)()],k.prototype,"iconVariant",void 0);H([(0,I.property)({type:Boolean})],k.prototype,"trailingIcon",void 0);H([(0,I.property)()],k.prototype,"label",void 0);H([(0,I.property)()],k.prototype,"type",void 0);H([(0,I.property)()],k.prototype,"href",void 0);H([(0,I.property)()],k.prototype,"target",void 0);H([(0,I.property)({type:Boolean})],k.prototype,"loading",void 0);H([(0,I.property)({attribute:"aria-label"})],k.prototype,"ariaLabel",void 0);H([(0,I.property)()],k.prototype,"ariaHasPopup",void 0);H([(0,I.property)({attribute:"aria-pressed"})],k.prototype,"ariaPressed",void 0);H([(0,I.property)()],k.prototype,"tooltipPosition",void 0);H([(0,I.property)({type:Boolean})],k.prototype,"hideTooltip",void 0);H([(0,I.property)({type:Boolean})],k.prototype,"forceTooltip",void 0);H([(0,I.property)({type:Boolean})],k.prototype,"activated",void 0);H([(0,I.query)(".ft-button")],k.prototype,"button",void 0);H([(0,I.query)(".ft-button--label")],k.prototype,"labelContainer",void 0);H([(0,I.state)()],k.prototype,"hasTextContent",void 0);H([(0,I.query)(".ft-button--label slot")],k.prototype,"slottedContent",void 0);H([(0,I.query)("[part=tooltip]")],k.prototype,"tooltip",void 0);var nc=f(A());var ic={"ft-button":k};(0,nc.customElements)(ic);var Lt=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},Fn=class extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}},Vn=class extends CustomEvent{constructor(t){super("suggestion-removed",{detail:t,bubbles:!0,composed:!0})}},ae=class extends sc.FtLitElement{constructor(){super(...arguments),this.removable=!1}render(){let t={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return Rt.html`
933
+ <div class="${(0,oc.classMap)(t)}">
934
+ <div
935
+ class="ft-text-field-suggestion--suggestion"
936
+ tabindex="-1"
937
+ @keydown=${this.suggestionKeyDown}
938
+ @click=${this.selectSuggestion}
939
+ >
940
+ <ft-ripple></ft-ripple>
941
+ ${this.helper?Rt.html`
942
+ <ft-typography class="ft-text-field-suggestion--helper-text" variant="caption">
943
+ ${this.helper}
944
+ </ft-typography>`:Rt.nothing}
945
+ <ft-typography part="label"
946
+ variant="${ye.body1}"
947
+ class="ft-text-field-suggestion--label">
948
+ <slot></slot>
949
+ </ft-typography>
950
+ </div>
951
+ ${this.removable?Rt.html`
952
+ <ft-button icon="${He.CLOSE}"
953
+ part="remove-button"
954
+ class="ft-text-field-suggestion--remove"
955
+ round
956
+ label="${this.removeButtonLabel}"
957
+ tooltipPosition="left"
958
+ tabindex="-1"
959
+ @keydown=${this.removeButtonKeyDown}
960
+ @click=${this.removeSuggestion}>
961
+ </ft-button>
962
+ `:Rt.nothing}
633
963
  </div>
634
- `}focus(t){var i;(i=this.container)===null||i===void 0||i.focus(t)}click(){var t;(t=this.container)===null||t===void 0||t.click()}confirmSuggestion(){this.dispatchEvent(new qe(this.getValue()))}getValue(){return this.value||this.getTextContent()}getTextContent(){return this.assignedNodes.map(t=>t.textContent).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}};H.elementDefinitions={"ft-ripple":_,"ft-typography":M,"ft-icon":R};H.styles=fi;Le([(0,ae.property)()],H.prototype,"value",void 0);Le([(0,ae.property)()],H.prototype,"helper",void 0);Le([(0,ae.query)(".ft-text-field-suggestion")],H.prototype,"container",void 0);Le([(0,ae.queryAssignedNodes)()],H.prototype,"assignedNodes",void 0);var Ne=class extends CustomEvent{constructor(t){super("live-change",{detail:t})}},we=class extends CustomEvent{constructor(t){super("change",{detail:t})}},De=class extends CustomEvent{constructor(t){super("invalid",{detail:t})}};var y=function(e,t,i,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,i):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,i,o);else for(var f=e.length-1;f>=0;f--)(s=e[f])&&(n=(r<3?s(n):r>3?s(t,i,n):s(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n},h=class extends(0,L.toFtFormComponent)(L.FtLitElement){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=le.EYE_SLASH,this.passwordRevealedIcon=le.EYE,this.filterSuggestions=!1,this.password=!1,this.hideCurrentValueSuggestion=!1,this.focused=!1,this.inputValid=!0,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[],this.providedSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){let i=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",i)}focus(){var t;(t=this.input)===null||t===void 0||t.focus()}blur(){var t;(t=this.input)===null||t===void 0||t.blur()}render(){var t;let i={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":!this.inputValid||this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":!this.suggestionsShouldBeDisplayed(),"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.isPasswordField()},o=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(f=>f.label).includes(this.value),n=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||o,s=this.inputValid?this.helper:(t=this.input)===null||t===void 0?void 0:t.validationMessage;return C.html`
635
- <div class="${(0,ci.classMap)(i)}">
964
+ `}focus(t,r){var i,n;r&&this.removable?(i=this.removeButton)===null||i===void 0||i.focus():(n=this.suggestion)===null||n===void 0||n.focus(t)}click(t){var r;(r=t?this.removeButton:this.suggestion)===null||r===void 0||r.click()}isRemoveButtonFocused(){var t,r;return(r=(t=this.removeButton)===null||t===void 0?void 0:t.matches(":focus-within"))!==null&&r!==void 0?r:!1}selectSuggestion(){this.dispatchEvent(new Fn(this.getValue()))}removeSuggestion(){this.dispatchEvent(new Vn(this.getValue()))}getValue(){return this.value||this.getTextContent()}getTextContent(){return this.assignedNodes.map(t=>t.textContent).join("").trim()}suggestionKeyDown(t){var r;switch(t.key){case"Enter":case" ":t.preventDefault(),t.stopPropagation(),this.selectSuggestion();break;case"ArrowRight":this.removable&&(t.preventDefault(),t.stopPropagation(),(r=this.removeButton)===null||r===void 0||r.focus());break}}removeButtonKeyDown(t){var r;switch(t.key){case"Enter":case" ":t.preventDefault(),t.stopPropagation(),this.removeSuggestion();break;case"ArrowLeft":t.preventDefault(),t.stopPropagation(),(r=this.suggestion)===null||r===void 0||r.focus();break}}};ae.elementDefinitions={"ft-ripple":$,"ft-typography":ie,"ft-icon":ee,"ft-button":k};ae.styles=ro;Lt([(0,Ue.property)()],ae.prototype,"value",void 0);Lt([(0,Ue.property)()],ae.prototype,"helper",void 0);Lt([(0,Ue.property)({type:Boolean})],ae.prototype,"removable",void 0);Lt([(0,Ue.property)()],ae.prototype,"removeButtonLabel",void 0);Lt([(0,Ue.query)(".ft-text-field-suggestion--suggestion")],ae.prototype,"suggestion",void 0);Lt([(0,Ue.query)(".ft-text-field-suggestion--remove")],ae.prototype,"removeButton",void 0);Lt([(0,Ue.queryAssignedNodes)()],ae.prototype,"assignedNodes",void 0);var Pi=class extends CustomEvent{constructor(t){super("live-change",{detail:t})}},Ni=class extends CustomEvent{constructor(t){super("change",{detail:t})}},Di=class extends CustomEvent{constructor(t){super("invalid",{detail:t})}};var D=function(e,t,r,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},_=class extends(0,le.toFtFormComponent)(le.FtLitElement){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=He.EYE_SLASH,this.passwordRevealedIcon=He.EYE,this.filterSuggestions=!1,this.password=!1,this.hideCurrentValueSuggestion=!1,this.focused=!1,this.inputValid=!0,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[],this.providedSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){let r=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",r)}focus(){var t;(t=this.input)===null||t===void 0||t.focus()}blur(){var t;(t=this.input)===null||t===void 0||t.blur()}render(){var t;let r={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":!this.inputValid||this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":!this.suggestionsShouldBeDisplayed(),"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.isPasswordField()},i=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(a=>a.label).includes(this.value),s=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||i,o=this.inputValid?this.helper:(t=this.input)===null||t===void 0?void 0:t.validationMessage;return q.html`
965
+ <div class="${(0,lc.classMap)(r)}">
636
966
  <div class="ft-text-field--main-panel"
637
967
  @keydown=${this.handleKeyboardNavigation}
638
968
  @focusout=${this.onMainPanelBlur}>
@@ -642,21 +972,21 @@
642
972
  ?raised=${this.focused||this.value!=""}
643
973
  ?error=${!this.inputValid||this.error}></ft-input-label>
644
974
  <div class="ft-text-field--input-panel">
645
- ${this.outlined?C.nothing:C.html`
975
+ ${this.outlined?q.nothing:q.html`
646
976
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
647
977
  `}
648
- ${this.prefix?C.html`
978
+ ${this.prefix?q.html`
649
979
  <ft-typography class="ft-text-field--prefix" variant="body1">
650
980
  ${this.prefix}
651
981
  </ft-typography>
652
- `:C.nothing}
982
+ `:q.nothing}
653
983
  <input type="${this.resolveInputType()}"
654
- name="${ye(this.name)}"
655
- maxlength="${ye(this.maxLength||void 0)}"
984
+ name="${Pe(this.name)}"
985
+ maxlength="${Pe(this.maxLength||void 0)}"
656
986
  aria-label="${this.label}"
657
- aria-describedby="${ye(this.helper?"helper":void 0)}"
987
+ aria-describedby="${Pe(this.helper?"helper":void 0)}"
658
988
  aria-invalid="${this.error}"
659
- autocomplete="${ye(this.autocomplete)}"
989
+ autocomplete="${Pe(this.autocomplete)}"
660
990
  class="ft-typography--body1 ft-text-field--input"
661
991
  part="input"
662
992
  ?disabled=${this.disabled}
@@ -670,49 +1000,54 @@
670
1000
  </div>
671
1001
  <div class="ft-text-field--suggestions"
672
1002
  part="suggestions"
673
- @suggestion-selected=${this.onSuggestionSelected}>
1003
+ @suggestion-selected=${this.onSuggestionSelected}
1004
+ @suggestion-removed=${this.onSuggestionRemoved}
1005
+ >
674
1006
  ${this.renderSuggestions()}
675
- ${!this.hideCurrentValueSuggestion&&n?C.html`
1007
+ ${!this.hideCurrentValueSuggestion&&s?q.html`
676
1008
  <ft-text-field-suggestion
677
1009
  class="ft-text-field-suggestion--new-value"
678
1010
  part="suggestion current-value-suggestion"
679
1011
  helper="${this.suggestionsHelper}">
680
1012
  ${this.value}
681
1013
  </ft-text-field-suggestion>
682
- `:C.nothing}
1014
+ `:q.nothing}
683
1015
  </div>
684
1016
  </div>
685
- ${s?C.html`
686
- <ft-typography class="ft-text-field--helper-text" variant="${he.caption}" id="helper" role="alert">
687
- ${s}
1017
+ ${o?q.html`
1018
+ <ft-typography class="ft-text-field--helper-text" variant="${ye.caption}" id="helper" role="alert">
1019
+ ${o}
688
1020
  </ft-typography>
689
- `:C.nothing}
1021
+ `:q.nothing}
690
1022
  </div>
691
- `}resolveInputType(){var t;return this.isPasswordField()?this.hidePassword?"password":"text":(t=this.type)!==null&&t!==void 0?t:"text"}renderSuggestions(){return this.suggestionsProvider?C.html`
692
- ${(0,ui.repeat)(this.providedSuggestions,t=>C.html`
693
- <ft-text-field-suggestion part="suggestion" value="${t.value}" @click=${i=>this.onSuggestionClick(i,t.clickHandler)}>
694
- ${t.icon?C.html`
695
- <ft-icon .value=${t.icon}></ft-icon>
696
- `:C.nothing}
1023
+ `}resolveInputType(){var t;return this.isPasswordField()?this.hidePassword?"password":"text":(t=this.type)!==null&&t!==void 0?t:"text"}renderSuggestions(){return this.suggestionsProvider?q.html`
1024
+ ${(0,ac.repeat)(this.providedSuggestions,t=>{var r;return q.html`
1025
+ <ft-text-field-suggestion part="suggestion"
1026
+ value="${t.value}"
1027
+ ?removable=${t.removable} }
1028
+ removeButtonLabel="${(r=t.removeButtonLabel)!==null&&r!==void 0?r:q.nothing}"
1029
+ >
1030
+ ${t.icon?q.html`<ft-icon .value=${t.icon}></ft-icon>`:q.nothing}
697
1031
  ${t.label}
698
1032
  </ft-text-field-suggestion>
699
- `)}
700
- `:C.html`
1033
+ `})}
1034
+ `:q.html`
701
1035
  <slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
702
- `}onSuggestionClick(t,i){i&&(t.preventDefault(),i(t))}renderPasswordIcon(){return C.html`
1036
+ `}renderPasswordIcon(){return q.html`
703
1037
  <ft-icon class="ft-text-field--icon"
704
1038
  .variant=${this.iconVariant}
705
1039
  .value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
706
1040
  @click=${()=>this.togglePasswordVisibility()}></ft-icon>
707
- `}renderIcon(){return this.isPasswordField()?this.renderPasswordIcon():this.icon?C.html`
1041
+ `}renderIcon(){return this.isPasswordField()?this.renderPasswordIcon():this.icon?q.html`
708
1042
  <ft-icon class="ft-text-field--icon"
709
1043
  .variant=${this.iconVariant}
710
1044
  .value=${this.icon}
711
1045
  @click=${()=>{var t;return(t=this.input)===null||t===void 0?void 0:t.focus()}}></ft-icon>
712
- `:C.nothing}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions")||t.has("suggestionsProvider"))&&this.updateSuggestions(),t.has("value")&&t.get("value")!=null&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&t.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}async updateSuggestions(){var t;if(this.suggestionsProvider){(t=this.cancelableSuggest)===null||t===void 0||t.cancel();let i=this.suggestionsProvider(this.value);i instanceof Promise?(this.cancelableSuggest=(0,L.cancelable)(i),this.providedSuggestions=await this.cancelableSuggest):(this.cancelableSuggest=void 0,this.providedSuggestions=i)}else this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(t=>!t.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),t.has("value")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),t.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var t;this.clearWatchAutofill(),((t=this.autocomplete)!==null&&t!==void 0?t:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var i,o,r;!((i=this.input)===null||i===void 0)&&i.matches(":autofill")&&this.dispatchedValue!==((o=this.input)===null||o===void 0?void 0:o.value)&&this.setValue((r=this.input)===null||r===void 0?void 0:r.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(t,i=!1){var o,r;this.value!==t&&(this.inputValid=!0,this.setInternalValue(t),this.dispatchEvent(new Ne(t))),i&&this.dispatchedValue!==t&&(this.inputValid=(r=(o=this.input)===null||o===void 0?void 0:o.checkValidity())!==null&&r!==void 0?r:!0,this.inputValid?(this.dispatchedValue=t,this.dispatchEvent(new we(t))):this.dispatchEvent(new De(this.input.validationMessage)))}handleInput(t){var i;let o=((i=this.input)===null||i===void 0?void 0:i.value)||"";this.setValue(o,t.key=="Escape"||t.key=="Enter")}catchComposingEvents(t){}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var i;if(t.key==="ArrowDown"||t.key==="ArrowUp"){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;let o=this.visibleSuggestions.findIndex(n=>n.matches(":focus-within")),r;t.key==="ArrowDown"?r=o<this.visibleSuggestions.length-1?o+1:0:r=o>0?o-1:this.visibleSuggestions.length-1,(i=this.visibleSuggestions[r])===null||i===void 0||i.focus()}(t.key=="Escape"||t.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(t){var i;this.setValue(t.detail,!0),(i=this.input)===null||i===void 0||i.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,i;!((t=this.mainPanel)===null||t===void 0)&&t.matches(":focus-within")||(this.focused=!1,this.setValue(((i=this.input)===null||i===void 0?void 0:i.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let t=["bottom","top"];(0,L.computeOffsetAutoPosition)(this.mainPanel,this.suggestionsContainer,"bottom",t,"fixed","--text-field-internal-suggest-size",0).then(({x:i,y:o})=>{this.suggestionsContainer.style.left=`${i}px`,this.suggestionsContainer.style.top=`${o}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};h.elementDefinitions={"ft-input-label":B,"ft-ripple":_,"ft-typography":M,"ft-icon":R,"ft-text-field-suggestion":H};h.styles=[Te,L.noTextInputDefaultClearButton,ai];y([(0,g.property)()],h.prototype,"label",void 0);y([(0,g.property)({noAccessor:!0})],h.prototype,"value",null);y([(0,g.state)()],h.prototype,"dispatchedValue",void 0);y([(0,g.property)()],h.prototype,"helper",void 0);y([(0,g.property)()],h.prototype,"suggestionsHelper",void 0);y([(0,g.property)({type:Boolean})],h.prototype,"outlined",void 0);y([(0,g.property)({type:Boolean})],h.prototype,"disabled",void 0);y([(0,g.property)({type:Boolean})],h.prototype,"error",void 0);y([(0,g.property)({type:Boolean})],h.prototype,"fixedMenuPosition",void 0);y([(0,g.property)()],h.prototype,"prefix",void 0);y([(0,g.property)()],h.prototype,"icon",void 0);y([(0,g.property)()],h.prototype,"name",void 0);y([(0,g.property)()],h.prototype,"type",void 0);y([(0,g.property)()],h.prototype,"passwordHiddenIcon",void 0);y([(0,g.property)()],h.prototype,"passwordRevealedIcon",void 0);y([(0,g.property)()],h.prototype,"iconVariant",void 0);y([(0,g.property)({type:Boolean})],h.prototype,"filterSuggestions",void 0);y([(0,L.numberProperty)()],h.prototype,"maxLength",void 0);y([(0,g.property)({type:Boolean})],h.prototype,"password",void 0);y([(0,g.property)({type:String})],h.prototype,"autocomplete",void 0);y([(0,g.property)({attribute:!1})],h.prototype,"suggestionsProvider",void 0);y([(0,g.property)({type:Boolean})],h.prototype,"hideCurrentValueSuggestion",void 0);y([(0,g.state)()],h.prototype,"focused",void 0);y([(0,g.state)()],h.prototype,"inputValid",void 0);y([(0,g.state)()],h.prototype,"hidePassword",void 0);y([(0,g.state)()],h.prototype,"hideSuggestions",void 0);y([(0,g.state)()],h.prototype,"visibleSuggestions",void 0);y([(0,g.state)()],h.prototype,"providedSuggestions",void 0);y([(0,g.query)(".ft-text-field--main-panel")],h.prototype,"mainPanel",void 0);y([(0,g.query)(".ft-text-field--input")],h.prototype,"input",void 0);y([(0,g.query)(".ft-text-field-suggestion--new-value")],h.prototype,"newValueSuggestion",void 0);y([(0,g.query)(".ft-text-field--suggestions")],h.prototype,"suggestionsContainer",void 0);y([(0,g.queryAll)("ft-text-field-suggestion")],h.prototype,"providedSuggestionsInDom",void 0);y([(0,g.queryAssignedElements)({selector:"ft-text-field-suggestion"})],h.prototype,"slottedSuggestions",void 0);y([(0,L.ignoreComposingEvents)()],h.prototype,"handleInput",null);y([(0,L.ignoreComposingEvents)()],h.prototype,"catchComposingEvents",null);var xi={"ft-text-field":h,"ft-text-field-suggestion":H};(0,gi.customElements)(xi);})();
1046
+ `:q.nothing}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions")||t.has("suggestionsProvider"))&&this.updateSuggestions(),t.has("value")&&t.get("value")!=null&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&t.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}async updateSuggestions(){var t;if(this.suggestionsProvider){(t=this.cancelableSuggest)===null||t===void 0||t.cancel();let r=this.suggestionsProvider(this.value);r instanceof Promise?(this.cancelableSuggest=(0,le.cancelable)(r),this.providedSuggestions=await this.cancelableSuggest):(this.cancelableSuggest=void 0,this.providedSuggestions=r)}else this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(t=>!t.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),t.has("providedSuggestions")&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),t.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var t;this.clearWatchAutofill(),((t=this.autocomplete)!==null&&t!==void 0?t:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var r,i,n;!((r=this.input)===null||r===void 0)&&r.matches(":autofill")&&this.dispatchedValue!==((i=this.input)===null||i===void 0?void 0:i.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(t,r=!1){var i,n;this.value!==t&&(this.inputValid=!0,this.setInternalValue(t),this.dispatchEvent(new Pi(t))),r&&this.dispatchedValue!==t&&(this.inputValid=(n=(i=this.input)===null||i===void 0?void 0:i.checkValidity())!==null&&n!==void 0?n:!0,this.inputValid?(this.dispatchedValue=t,this.dispatchEvent(new Ni(t))):this.dispatchEvent(new Di(this.input.validationMessage)))}handleInput(t){var r;let i=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(i,t.key=="Escape"||t.key=="Enter")}catchComposingEvents(t){}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var r,i;if(t.key==="ArrowDown"||t.key==="ArrowUp"){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;let n=this.visibleSuggestions.findIndex(o=>o.matches(":focus-within")),s;t.key==="ArrowDown"?s=n<this.visibleSuggestions.length-1?n+1:0:s=n>0?n-1:this.visibleSuggestions.length-1,(r=this.visibleSuggestions[s])===null||r===void 0||r.focus(void 0,(i=this.visibleSuggestions[n])===null||i===void 0?void 0:i.isRemoveButtonFocused())}(t.key=="Escape"||t.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(t){var r;this.setValue(t.detail,!0),(r=this.input)===null||r===void 0||r.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onSuggestionRemoved(){setTimeout(()=>this.updateSuggestions())}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,r;!((t=this.mainPanel)===null||t===void 0)&&t.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let t=["bottom","top"];(0,le.computeOffsetAutoPosition)(this.mainPanel,this.suggestionsContainer,"bottom",t,"fixed","--text-field-internal-suggest-size",0).then(({x:r,y:i})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${i}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};_.elementDefinitions={"ft-input-label":Ce,"ft-ripple":$,"ft-typography":ie,"ft-icon":ee,"ft-text-field-suggestion":ae};_.styles=[Lr,le.noTextInputDefaultClearButton,eo];D([(0,L.property)()],_.prototype,"label",void 0);D([(0,L.property)({noAccessor:!0})],_.prototype,"value",null);D([(0,L.state)()],_.prototype,"dispatchedValue",void 0);D([(0,L.property)()],_.prototype,"helper",void 0);D([(0,L.property)()],_.prototype,"suggestionsHelper",void 0);D([(0,L.property)({type:Boolean})],_.prototype,"outlined",void 0);D([(0,L.property)({type:Boolean})],_.prototype,"disabled",void 0);D([(0,L.property)({type:Boolean})],_.prototype,"error",void 0);D([(0,L.property)({type:Boolean})],_.prototype,"fixedMenuPosition",void 0);D([(0,L.property)()],_.prototype,"prefix",void 0);D([(0,L.property)()],_.prototype,"icon",void 0);D([(0,L.property)()],_.prototype,"name",void 0);D([(0,L.property)()],_.prototype,"type",void 0);D([(0,L.property)()],_.prototype,"passwordHiddenIcon",void 0);D([(0,L.property)()],_.prototype,"passwordRevealedIcon",void 0);D([(0,L.property)()],_.prototype,"iconVariant",void 0);D([(0,L.property)({type:Boolean})],_.prototype,"filterSuggestions",void 0);D([(0,le.numberProperty)()],_.prototype,"maxLength",void 0);D([(0,L.property)({type:Boolean})],_.prototype,"password",void 0);D([(0,L.property)({type:String})],_.prototype,"autocomplete",void 0);D([(0,L.property)({attribute:!1})],_.prototype,"suggestionsProvider",void 0);D([(0,L.property)({type:Boolean})],_.prototype,"hideCurrentValueSuggestion",void 0);D([(0,L.state)()],_.prototype,"focused",void 0);D([(0,L.state)()],_.prototype,"inputValid",void 0);D([(0,L.state)()],_.prototype,"hidePassword",void 0);D([(0,L.state)()],_.prototype,"hideSuggestions",void 0);D([(0,L.state)()],_.prototype,"visibleSuggestions",void 0);D([(0,L.state)()],_.prototype,"providedSuggestions",void 0);D([(0,L.query)(".ft-text-field--main-panel")],_.prototype,"mainPanel",void 0);D([(0,L.query)(".ft-text-field--input")],_.prototype,"input",void 0);D([(0,L.query)(".ft-text-field-suggestion--new-value")],_.prototype,"newValueSuggestion",void 0);D([(0,L.query)(".ft-text-field--suggestions")],_.prototype,"suggestionsContainer",void 0);D([(0,L.queryAll)("ft-text-field-suggestion")],_.prototype,"providedSuggestionsInDom",void 0);D([(0,L.queryAssignedElements)({selector:"ft-text-field-suggestion"})],_.prototype,"slottedSuggestions",void 0);D([(0,le.ignoreComposingEvents)()],_.prototype,"handleInput",null);D([(0,le.ignoreComposingEvents)()],_.prototype,"catchComposingEvents",null);var cc={"ft-text-field":_,"ft-text-field-suggestion":ae};(0,uc.customElements)(cc);})();
713
1047
  /*! Bundled license information:
714
1048
 
715
1049
  lit-html/lit-html.js:
1050
+ @lit/context/lib/decorators/provide.js:
716
1051
  (**
717
1052
  * @license
718
1053
  * Copyright 2017 Google LLC
@@ -734,9 +1069,29 @@ lit-html/static.js:
734
1069
  *)
735
1070
 
736
1071
  lit-html/directives/when.js:
1072
+ @lit/context/lib/context-request-event.js:
1073
+ @lit/context/lib/create-context.js:
1074
+ @lit/context/lib/controllers/context-consumer.js:
1075
+ @lit/context/lib/value-notifier.js:
1076
+ @lit/context/lib/controllers/context-provider.js:
1077
+ @lit/context/lib/context-root.js:
737
1078
  (**
738
1079
  * @license
739
1080
  * Copyright 2021 Google LLC
740
1081
  * SPDX-License-Identifier: BSD-3-Clause
741
1082
  *)
1083
+
1084
+ @lit/reactive-element/css-tag.js:
1085
+ (**
1086
+ * @license
1087
+ * Copyright 2019 Google LLC
1088
+ * SPDX-License-Identifier: BSD-3-Clause
1089
+ *)
1090
+
1091
+ @lit/context/lib/decorators/consume.js:
1092
+ (**
1093
+ * @license
1094
+ * Copyright 2022 Google LLC
1095
+ * SPDX-License-Identifier: BSD-3-Clause
1096
+ *)
742
1097
  */