@fluid-topics/ft-search-input 2.2.25 → 2.2.26

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,4 +1,4 @@
1
- "use strict";(()=>{var Qp=Object.create;var oa=Object.defineProperty;var Yp=Object.getOwnPropertyDescriptor;var Xp=Object.getOwnPropertyNames;var Zp=Object.getPrototypeOf,Jp=Object.prototype.hasOwnProperty;var Yr=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var eh=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Xp(e))!Jp.call(t,n)&&n!==r&&oa(t,n,{get:()=>e[n],enumerable:!(i=Yp(e,n))||i.enumerable});return t};var c=(t,e,r)=>(r=t!=null?Qp(Zp(t)):{},eh(e||!t||!t.__esModule?oa(r,"default",{value:t,enumerable:!0}):r,t));var f=Yr((Kf,aa)=>{aa.exports=ftGlobals.wcUtils});var v=Yr((Gf,la)=>{la.exports=ftGlobals.lit});var V=Yr((Qf,ca)=>{ca.exports=ftGlobals.litDecorators});var Je=Yr((Yf,ua)=>{ua.exports=ftGlobals.litClassMap});var Nu=Yr((Ux,Mu)=>{Mu.exports=ftGlobals.litUnsafeHTML});var dr=Yr((oE,id)=>{id.exports=ftGlobals.litRepeat});var Wp=c(f());var Ai=c(v()),Ne=c(f());var ed=c(v()),G=c(f());var It=c(f());var ba=c(v()),we=c(V()),va=c(Je()),wi=c(f());var ga=c(v()),me=c(f()),da=me.FtCssVariableFactory.extend("--ft-ripple-color","",me.designSystemVariables.colorContent),q={color:da,backgroundColor:me.FtCssVariableFactory.extend("--ft-ripple-background-color","",da),opacityContentOnSurfacePressed:me.FtCssVariableFactory.external(me.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:me.FtCssVariableFactory.external(me.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:me.FtCssVariableFactory.external(me.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:me.FtCssVariableFactory.external(me.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:me.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},pa=me.FtCssVariableFactory.extend("--ft-ripple-color","",me.designSystemVariables.colorPrimary),ha={color:pa,backgroundColor:me.FtCssVariableFactory.extend("--ft-ripple-background-color","",pa)},fa=me.FtCssVariableFactory.extend("--ft-ripple-color","",me.designSystemVariables.colorSecondary),ma={color:fa,backgroundColor:me.FtCssVariableFactory.extend("--ft-ripple-background-color","",fa)},ya=ga.css`
1
+ "use strict";(()=>{var Qp=Object.create;var la=Object.defineProperty;var Yp=Object.getOwnPropertyDescriptor;var Xp=Object.getOwnPropertyNames;var Zp=Object.getPrototypeOf,Jp=Object.prototype.hasOwnProperty;var Yr=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var eh=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Xp(e))!Jp.call(t,s)&&s!==r&&la(t,s,{get:()=>e[s],enumerable:!(i=Yp(e,s))||i.enumerable});return t};var c=(t,e,r)=>(r=t!=null?Qp(Zp(t)):{},eh(e||!t||!t.__esModule?la(r,"default",{value:t,enumerable:!0}):r,t));var f=Yr((Kf,ca)=>{ca.exports=ftGlobals.wcUtils});var x=Yr((Gf,ua)=>{ua.exports=ftGlobals.lit});var H=Yr((Qf,da)=>{da.exports=ftGlobals.litDecorators});var Je=Yr((Yf,pa)=>{pa.exports=ftGlobals.litClassMap});var Fu=Yr((Bx,Nu)=>{Nu.exports=ftGlobals.litUnsafeHTML});var dr=Yr((sE,id)=>{id.exports=ftGlobals.litRepeat});var Wp=c(f());var Ai=c(x()),Fe=c(f());var ed=c(x()),Q=c(f());var Mt=c(f());var xa=c(x()),we=c(H()),Sa=c(Je()),wi=c(f());var ba=c(x()),he=c(f()),ha=he.FtCssVariableFactory.extend("--ft-ripple-color","",he.designSystemVariables.colorContent),z={color:ha,backgroundColor:he.FtCssVariableFactory.extend("--ft-ripple-background-color","",ha),opacityContentOnSurfacePressed:he.FtCssVariableFactory.external(he.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:he.FtCssVariableFactory.external(he.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:he.FtCssVariableFactory.external(he.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:he.FtCssVariableFactory.external(he.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:he.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},fa=he.FtCssVariableFactory.extend("--ft-ripple-color","",he.designSystemVariables.colorPrimary),ma={color:fa,backgroundColor:he.FtCssVariableFactory.extend("--ft-ripple-background-color","",fa)},ga=he.FtCssVariableFactory.extend("--ft-ripple-color","",he.designSystemVariables.colorSecondary),ya={color:ga,backgroundColor:he.FtCssVariableFactory.extend("--ft-ripple-background-color","",ga)},va=ba.css`
2
2
  :host {
3
3
  display: contents;
4
4
  }
@@ -11,7 +11,7 @@
11
11
 
12
12
  .ft-ripple:not(.ft-ripple--unbounded) {
13
13
  overflow: hidden;
14
- border-radius: ${q.borderRadius};
14
+ border-radius: ${z.borderRadius};
15
15
  }
16
16
 
17
17
  .ft-ripple .ft-ripple--background,
@@ -45,27 +45,27 @@
45
45
  }
46
46
 
47
47
  .ft-ripple .ft-ripple--background {
48
- background-color: ${q.backgroundColor};
48
+ background-color: ${z.backgroundColor};
49
49
  }
50
50
 
51
51
  .ft-ripple .ft-ripple--effect {
52
- background-color: ${q.color};
52
+ background-color: ${z.color};
53
53
  }
54
54
 
55
55
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
56
- background-color: ${ma.backgroundColor};
56
+ background-color: ${ya.backgroundColor};
57
57
  }
58
58
 
59
59
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
60
- background-color: ${ma.color};
60
+ background-color: ${ya.color};
61
61
  }
62
62
 
63
63
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
64
- background-color: ${ha.backgroundColor};
64
+ background-color: ${ma.backgroundColor};
65
65
  }
66
66
 
67
67
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
68
- background-color: ${ha.color};
68
+ background-color: ${ma.color};
69
69
  }
70
70
 
71
71
  .ft-ripple .ft-ripple--background {
@@ -95,36 +95,46 @@
95
95
  }
96
96
 
97
97
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
98
- opacity: ${q.opacityContentOnSurfaceHover};
98
+ opacity: ${z.opacityContentOnSurfaceHover};
99
99
  }
100
100
 
101
101
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
102
- opacity: ${q.opacityContentOnSurfaceSelected};
102
+ opacity: ${z.opacityContentOnSurfaceSelected};
103
103
  }
104
104
 
105
105
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
106
- opacity: ${q.opacityContentOnSurfaceFocused};
106
+ opacity: ${z.opacityContentOnSurfaceFocused};
107
107
  }
108
108
 
109
109
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
110
- opacity: ${q.opacityContentOnSurfacePressed};
110
+ opacity: ${z.opacityContentOnSurfacePressed};
111
111
  transform: translate(-50%, -50%) scale(1);
112
112
  }
113
- `;var We=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},L=class extends wi.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 wi.Debouncer(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new wi.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:n,y:s}=this.getCoordinates(e),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=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"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 ba.html`
113
+ `;var We=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},D=class extends wi.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 wi.Debouncer(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new wi.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:s,y:n}=this.getCoordinates(e),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(s!=null?s-o.x:o.width/2),this.originY=Math.round(n!=null?n-o.y:o.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"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 xa.html`
114
114
  <style>
115
115
  .ft-ripple .ft-ripple--effect {
116
116
  left: ${this.originX}px;
117
117
  top: ${this.originY}px;
118
118
  }
119
119
  </style>
120
- <div class="${(0,va.classMap)(e)}">
120
+ <div class="${(0,Sa.classMap)(e)}">
121
121
  <div class="ft-ripple--background"></div>
122
122
  <div class="ft-ripple--effect"></div>
123
123
  </div>
124
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.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 e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(u=>window.addEventListener(u,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};e.addEventListener("mouseover",this.startHover,o),e.addEventListener("mousemove",this.moveRipple,o),e.addEventListener("mouseleave",this.endHover,o),e.addEventListener("mousedown",i,o),e.addEventListener("touchstart",n,o),e.addEventListener("touchmove",this.moveRipple,o),e.addEventListener("keydown",s,o),e.addEventListener("focus",this.startFocus,o),e.addEventListener("blur",this.endFocus,o),e.addEventListener("focusin",this.startFocus,o),e.addEventListener("focusout",this.endFocus,o),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,o),e.removeEventListener("mousemove",this.moveRipple,o),e.removeEventListener("mouseleave",this.endHover,o),e.removeEventListener("mousedown",i,o),e.removeEventListener("touchstart",n,o),e.removeEventListener("touchmove",this.moveRipple,o),e.removeEventListener("keydown",s,o),e.removeEventListener("focus",this.startFocus,o),e.removeEventListener("blur",this.endFocus,o),e.removeEventListener("focusin",this.startFocus,o),e.removeEventListener("focusout",this.endFocus,o),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,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(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.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()}};L.elementDefinitions={};L.styles=ya;We([(0,we.property)({type:Boolean})],L.prototype,"primary",void 0);We([(0,we.property)({type:Boolean})],L.prototype,"secondary",void 0);We([(0,we.property)({type:Boolean})],L.prototype,"unbounded",void 0);We([(0,we.property)({type:Boolean})],L.prototype,"activated",void 0);We([(0,we.property)({type:Boolean})],L.prototype,"selected",void 0);We([(0,we.property)({type:Boolean})],L.prototype,"disabled",void 0);We([(0,we.state)()],L.prototype,"hovered",void 0);We([(0,we.state)()],L.prototype,"focused",void 0);We([(0,we.state)()],L.prototype,"pressed",void 0);We([(0,we.state)()],L.prototype,"rippling",void 0);We([(0,we.state)()],L.prototype,"originX",void 0);We([(0,we.state)()],L.prototype,"originY",void 0);We([(0,we.query)(".ft-ripple")],L.prototype,"ripple",void 0);We([(0,we.query)(".ft-ripple--effect")],L.prototype,"rippleEffect",void 0);var Sa=c(f());var xa={"ft-ripple":L};(0,Sa.customElements)(xa);var Lu=c(v()),mt=c(V()),ft=c(f());var Nn=globalThis,Ea=t=>t,us=Nn.trustedTypes,Aa=us?us.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ta="$lit$",Xt=`lit$${Math.random().toFixed(9).slice(2)}$`,ka="?"+Xt,th=`<${ka}>`,Sr=document,ds=()=>Sr.createComment(""),_i=t=>t===null||typeof t!="object"&&typeof t!="function",Fn=Array.isArray,rh=t=>Fn(t)||typeof t?.[Symbol.iterator]=="function",Ln=`[
125
- \f\r]`,Oi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ca=/-->/g,wa=/>/g,vr=RegExp(`>|${Ln}(?:([^\\s"'>=/]+)(${Ln}*=${Ln}*(?:[^
126
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Oa=/'/g,_a=/"/g,La=/^(?:script|style|textarea|title)$/i,Bn=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),$a=Bn(1),Da=Bn(2),Pa=Bn(3),Ri=Symbol.for("lit-noChange"),ge=Symbol.for("lit-nothing"),Ra=new WeakMap,xr=Sr.createTreeWalker(Sr,129);function Ia(t,e){if(!Fn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Aa!==void 0?Aa.createHTML(e):e}var ih=(t,e)=>{let r=t.length-1,i=[],n,s=e===2?"<svg>":e===3?"<math>":"",o=Oi;for(let a=0;a<r;a++){let l=t[a],u,d,p=-1,h=0;for(;h<l.length&&(o.lastIndex=h,d=o.exec(l),d!==null);)h=o.lastIndex,o===Oi?d[1]==="!--"?o=Ca:d[1]!==void 0?o=wa:d[2]!==void 0?(La.test(d[2])&&(n=RegExp("</"+d[2],"g")),o=vr):d[3]!==void 0&&(o=vr):o===vr?d[0]===">"?(o=n??Oi,p=-1):d[1]===void 0?p=-2:(p=o.lastIndex-d[2].length,u=d[1],o=d[3]===void 0?vr:d[3]==='"'?_a:Oa):o===_a||o===Oa?o=vr:o===Ca||o===wa?o=Oi:(o=vr,n=void 0);let b=o===vr&&t[a+1].startsWith("/>")?" ":"";s+=o===Oi?l+th:p>=0?(i.push(u),l.slice(0,p)+Ta+l.slice(p)+Xt+b):l+Xt+(p===-2?a:b)}return[Ia(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Ti=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let s=0,o=0,a=e.length-1,l=this.parts,[u,d]=ih(e,r);if(this.el=t.createElement(u,i),xr.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(n=xr.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let p of n.getAttributeNames())if(p.endsWith(Ta)){let h=d[o++],b=n.getAttribute(p).split(Xt),S=/([.?@])?(.*)/.exec(h);l.push({type:1,index:s,name:S[2],strings:b,ctor:S[1]==="."?Dn:S[1]==="?"?Pn:S[1]==="@"?In:Zr}),n.removeAttribute(p)}else p.startsWith(Xt)&&(l.push({type:6,index:s}),n.removeAttribute(p));if(La.test(n.tagName)){let p=n.textContent.split(Xt),h=p.length-1;if(h>0){n.textContent=us?us.emptyScript:"";for(let b=0;b<h;b++)n.append(p[b],ds()),xr.nextNode(),l.push({type:2,index:++s});n.append(p[h],ds())}}}else if(n.nodeType===8)if(n.data===ka)l.push({type:2,index:s});else{let p=-1;for(;(p=n.data.indexOf(Xt,p+1))!==-1;)l.push({type:7,index:s}),p+=Xt.length-1}s++}}static createElement(e,r){let i=Sr.createElement("template");return i.innerHTML=e,i}};function Xr(t,e,r=t,i){if(e===Ri)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,s=_i(e)?void 0:e._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=Xr(t,n._$AS(t,e.values),n,i)),e}var $n=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??Sr).importNode(r,!0);xr.currentNode=n;let s=xr.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let u;l.type===2?u=new ps(s,s.nextSibling,this,e):l.type===1?u=new l.ctor(s,l.name,l.strings,this,e):l.type===6&&(u=new Mn(s,this,e)),this._$AV.push(u),l=i[++a]}o!==l?.index&&(s=xr.nextNode(),o++)}return xr.currentNode=Sr,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},ps=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=ge,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Xr(this,e,r),_i(e)?e===ge||e==null||e===""?(this._$AH!==ge&&this._$AR(),this._$AH=ge):e!==this._$AH&&e!==Ri&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):rh(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==ge&&_i(this._$AH)?this._$AA.nextSibling.data=e:this.T(Sr.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Ti.createElement(Ia(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let s=new $n(n,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(e){let r=Ra.get(e.strings);return r===void 0&&Ra.set(e.strings,r=new Ti(e)),r}k(e){Fn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let s of e)n===r.length?r.push(i=new t(this.O(ds()),this.O(ds()),this,this.options)):i=r[n],i._$AI(s),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=Ea(e).nextSibling;Ea(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Zr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,s){this.type=1,this._$AH=ge,this._$AN=void 0,this.element=e,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=ge}_$AI(e,r=this,i,n){let s=this.strings,o=!1;if(s===void 0)e=Xr(this,e,r,0),o=!_i(e)||e!==this._$AH&&e!==Ri,o&&(this._$AH=e);else{let a=e,l,u;for(e=s[0],l=0;l<s.length-1;l++)u=Xr(this,a[i+l],r,l),u===Ri&&(u=this._$AH[l]),o||=!_i(u)||u!==this._$AH[l],u===ge?e=ge:e!==ge&&(e+=(u??"")+s[l+1]),this._$AH[l]=u}o&&!n&&this.j(e)}j(e){e===ge?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Dn=class extends Zr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ge?void 0:e}},Pn=class extends Zr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ge)}},In=class extends Zr{constructor(e,r,i,n,s){super(e,r,i,n,s),this.type=5}_$AI(e,r=this){if((e=Xr(this,e,r,0)??ge)===Ri)return;let i=this._$AH,n=e===ge&&i!==ge||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,s=e!==ge&&(i===ge||n);n&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Mn=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Xr(this,e)}};var sh=Nn.litHtmlPolyfillSupport;sh?.(Ti,ps),(Nn.litHtmlVersions??=[]).push("3.3.3");var Na=Symbol.for(""),nh=t=>{if(t?.r===Na)return t?._$litStatic$},Un=t=>({_$litStatic$:t,r:Na});var Ma=new Map,zn=t=>(e,...r)=>{let i=r.length,n,s,o=[],a=[],l,u=0,d=!1;for(;u<i;){for(l=e[u];u<i&&(s=r[u],(n=nh(s))!==void 0);)l+=n+e[++u],d=!0;u!==i&&a.push(s),o.push(l),u++}if(u===i&&o.push(e[i]),d){let p=o.join("$$lit$$");(e=Ma.get(p))===void 0&&(o.raw=o,Ma.set(p,e=o)),r=a}return t(e,...r)},Vn=zn($a),um=zn(Da),dm=zn(Pa);var Hn=c(V()),Qa=c(f());var ce;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(ce||(ce={}));var ut=c(v()),m=c(f()),Fa=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.titleFont),Vt=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.contentFont),y={fontFamily:Vt,fontSize:m.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:m.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:m.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:m.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:m.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:m.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},Er={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Fa),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-font-size","",y.fontSize,"20px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",y.letterSpacing,"0.15px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-line-height","",y.lineHeight,"1.2"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",y.textDecoration,"inherit")},Ar={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Fa),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",y.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",y.letterSpacing,"0.105px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",y.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",y.textDecoration,"inherit")},Cr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Vt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",y.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",y.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",y.letterSpacing,"0.144px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",y.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",y.textDecoration,"inherit")},wr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Vt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",y.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",y.letterSpacing,"0.098px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",y.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",y.textDecoration,"inherit")},kt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Vt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",y.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",y.letterSpacing,"0.496px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",y.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",y.textDecoration,"inherit")},ye={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Vt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",y.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",y.letterSpacing,"0.252px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",y.lineHeight,"1.4"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",y.textDecoration,"inherit")},Ke={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Vt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",y.fontSize,"12px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",y.letterSpacing,"0.396px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",y.lineHeight,"1.33"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",y.textDecoration,"inherit")},Or={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Vt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",y.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",y.letterSpacing,"0.33px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",y.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",y.textDecoration,"inherit")},_r={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Vt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",y.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",y.letterSpacing,"1.5px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",y.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",y.textTransform,"uppercase"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",y.textDecoration,"inherit")},vt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Vt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-button-font-size","",y.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",y.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",y.letterSpacing,"1.246px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-button-line-height","",y.lineHeight,"1.15"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",y.textTransform,"uppercase"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",y.textDecoration,"inherit")},Ba=ut.css`
124
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.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 e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),s=r("touchend","touchcancel"),n=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},o={passive:!0};e.addEventListener("mouseover",this.startHover,o),e.addEventListener("mousemove",this.moveRipple,o),e.addEventListener("mouseleave",this.endHover,o),e.addEventListener("mousedown",i,o),e.addEventListener("touchstart",s,o),e.addEventListener("touchmove",this.moveRipple,o),e.addEventListener("keydown",n,o),e.addEventListener("focus",this.startFocus,o),e.addEventListener("blur",this.endFocus,o),e.addEventListener("focusin",this.startFocus,o),e.addEventListener("focusout",this.endFocus,o),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,o),e.removeEventListener("mousemove",this.moveRipple,o),e.removeEventListener("mouseleave",this.endHover,o),e.removeEventListener("mousedown",i,o),e.removeEventListener("touchstart",s,o),e.removeEventListener("touchmove",this.moveRipple,o),e.removeEventListener("keydown",n,o),e.removeEventListener("focus",this.startFocus,o),e.removeEventListener("blur",this.endFocus,o),e.removeEventListener("focusin",this.startFocus,o),e.removeEventListener("focusout",this.endFocus,o),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,s,n;return r.x!=null?{x:s,y:n}=r:i.touches!=null&&(s=i.touches[0].clientX,n=i.touches[0].clientY),{x:s,y:n}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.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()}};D.elementDefinitions={};D.styles=va;We([(0,we.property)({type:Boolean})],D.prototype,"primary",void 0);We([(0,we.property)({type:Boolean})],D.prototype,"secondary",void 0);We([(0,we.property)({type:Boolean})],D.prototype,"unbounded",void 0);We([(0,we.property)({type:Boolean})],D.prototype,"activated",void 0);We([(0,we.property)({type:Boolean})],D.prototype,"selected",void 0);We([(0,we.property)({type:Boolean})],D.prototype,"disabled",void 0);We([(0,we.state)()],D.prototype,"hovered",void 0);We([(0,we.state)()],D.prototype,"focused",void 0);We([(0,we.state)()],D.prototype,"pressed",void 0);We([(0,we.state)()],D.prototype,"rippling",void 0);We([(0,we.state)()],D.prototype,"originX",void 0);We([(0,we.state)()],D.prototype,"originY",void 0);We([(0,we.query)(".ft-ripple")],D.prototype,"ripple",void 0);We([(0,we.query)(".ft-ripple--effect")],D.prototype,"rippleEffect",void 0);var Aa=c(f());var Ea={"ft-ripple":D};(0,Aa.customElements)(Ea);var $u=c(x()),mt=c(H()),ft=c(f());var Bs=globalThis,Ca=t=>t,pn=Bs.trustedTypes,wa=pn?pn.createPolicy("lit-html",{createHTML:t=>t}):void 0,La="$lit$",Xt=`lit$${Math.random().toFixed(9).slice(2)}$`,$a="?"+Xt,th=`<${$a}>`,xr=document,hn=()=>xr.createComment(""),_i=t=>t===null||typeof t!="object"&&typeof t!="function",Us=Array.isArray,rh=t=>Us(t)||typeof t?.[Symbol.iterator]=="function",Ds=`[
125
+ \f\r]`,Oi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Oa=/-->/g,_a=/>/g,br=RegExp(`>|${Ds}(?:([^\\s"'>=/]+)(${Ds}*=${Ds}*(?:[^
126
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ra=/'/g,Ta=/"/g,Da=/^(?:script|style|textarea|title)$/i,zs=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Ia=zs(1),Pa=zs(2),Ma=zs(3),Ri=Symbol.for("lit-noChange"),fe=Symbol.for("lit-nothing"),ka=new WeakMap,vr=xr.createTreeWalker(xr,129);function Na(t,e){if(!Us(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return wa!==void 0?wa.createHTML(e):e}var ih=(t,e)=>{let r=t.length-1,i=[],s,n=e===2?"<svg>":e===3?"<math>":"",o=Oi;for(let a=0;a<r;a++){let l=t[a],u,d,p=-1,h=0;for(;h<l.length&&(o.lastIndex=h,d=o.exec(l),d!==null);)h=o.lastIndex,o===Oi?d[1]==="!--"?o=Oa:d[1]!==void 0?o=_a:d[2]!==void 0?(Da.test(d[2])&&(s=RegExp("</"+d[2],"g")),o=br):d[3]!==void 0&&(o=br):o===br?d[0]===">"?(o=s??Oi,p=-1):d[1]===void 0?p=-2:(p=o.lastIndex-d[2].length,u=d[1],o=d[3]===void 0?br:d[3]==='"'?Ta:Ra):o===Ta||o===Ra?o=br:o===Oa||o===_a?o=Oi:(o=br,s=void 0);let b=o===br&&t[a+1].startsWith("/>")?" ":"";n+=o===Oi?l+th:p>=0?(i.push(u),l.slice(0,p)+La+l.slice(p)+Xt+b):l+Xt+(p===-2?a:b)}return[Na(t,n+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Ti=class t{constructor({strings:e,_$litType$:r},i){let s;this.parts=[];let n=0,o=0,a=e.length-1,l=this.parts,[u,d]=ih(e,r);if(this.el=t.createElement(u,i),vr.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(s=vr.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(let p of s.getAttributeNames())if(p.endsWith(La)){let h=d[o++],b=s.getAttribute(p).split(Xt),S=/([.?@])?(.*)/.exec(h);l.push({type:1,index:n,name:S[2],strings:b,ctor:S[1]==="."?Ps:S[1]==="?"?Ms:S[1]==="@"?Ns:Zr}),s.removeAttribute(p)}else p.startsWith(Xt)&&(l.push({type:6,index:n}),s.removeAttribute(p));if(Da.test(s.tagName)){let p=s.textContent.split(Xt),h=p.length-1;if(h>0){s.textContent=pn?pn.emptyScript:"";for(let b=0;b<h;b++)s.append(p[b],hn()),vr.nextNode(),l.push({type:2,index:++n});s.append(p[h],hn())}}}else if(s.nodeType===8)if(s.data===$a)l.push({type:2,index:n});else{let p=-1;for(;(p=s.data.indexOf(Xt,p+1))!==-1;)l.push({type:7,index:n}),p+=Xt.length-1}n++}}static createElement(e,r){let i=xr.createElement("template");return i.innerHTML=e,i}};function Xr(t,e,r=t,i){if(e===Ri)return e;let s=i!==void 0?r._$Co?.[i]:r._$Cl,n=_i(e)?void 0:e._$litDirective$;return s?.constructor!==n&&(s?._$AO?.(!1),n===void 0?s=void 0:(s=new n(t),s._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=s:r._$Cl=s),s!==void 0&&(e=Xr(t,s._$AS(t,e.values),s,i)),e}var Is=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,s=(e?.creationScope??xr).importNode(r,!0);vr.currentNode=s;let n=vr.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let u;l.type===2?u=new fn(n,n.nextSibling,this,e):l.type===1?u=new l.ctor(n,l.name,l.strings,this,e):l.type===6&&(u=new Fs(n,this,e)),this._$AV.push(u),l=i[++a]}o!==l?.index&&(n=vr.nextNode(),o++)}return vr.currentNode=xr,s}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},fn=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,s){this.type=2,this._$AH=fe,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Xr(this,e,r),_i(e)?e===fe||e==null||e===""?(this._$AH!==fe&&this._$AR(),this._$AH=fe):e!==this._$AH&&e!==Ri&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):rh(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==fe&&_i(this._$AH)?this._$AA.nextSibling.data=e:this.T(xr.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,s=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Ti.createElement(Na(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===s)this._$AH.p(r);else{let n=new Is(s,this),o=n.u(this.options);n.p(r),this.T(o),this._$AH=n}}_$AC(e){let r=ka.get(e.strings);return r===void 0&&ka.set(e.strings,r=new Ti(e)),r}k(e){Us(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,s=0;for(let n of e)s===r.length?r.push(i=new t(this.O(hn()),this.O(hn()),this,this.options)):i=r[s],i._$AI(n),s++;s<r.length&&(this._$AR(i&&i._$AB.nextSibling,s),r.length=s)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=Ca(e).nextSibling;Ca(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Zr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,s,n){this.type=1,this._$AH=fe,this._$AN=void 0,this.element=e,this.name=r,this._$AM=s,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=fe}_$AI(e,r=this,i,s){let n=this.strings,o=!1;if(n===void 0)e=Xr(this,e,r,0),o=!_i(e)||e!==this._$AH&&e!==Ri,o&&(this._$AH=e);else{let a=e,l,u;for(e=n[0],l=0;l<n.length-1;l++)u=Xr(this,a[i+l],r,l),u===Ri&&(u=this._$AH[l]),o||=!_i(u)||u!==this._$AH[l],u===fe?e=fe:e!==fe&&(e+=(u??"")+n[l+1]),this._$AH[l]=u}o&&!s&&this.j(e)}j(e){e===fe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ps=class extends Zr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===fe?void 0:e}},Ms=class extends Zr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==fe)}},Ns=class extends Zr{constructor(e,r,i,s,n){super(e,r,i,s,n),this.type=5}_$AI(e,r=this){if((e=Xr(this,e,r,0)??fe)===Ri)return;let i=this._$AH,s=e===fe&&i!==fe||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,n=e!==fe&&(i===fe||s);s&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Fs=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Xr(this,e)}};var nh=Bs.litHtmlPolyfillSupport;nh?.(Ti,fn),(Bs.litHtmlVersions??=[]).push("3.3.3");var Ba=Symbol.for(""),sh=t=>{if(t?.r===Ba)return t?._$litStatic$},Vs=t=>({_$litStatic$:t,r:Ba});var Fa=new Map,Hs=t=>(e,...r)=>{let i=r.length,s,n,o=[],a=[],l,u=0,d=!1;for(;u<i;){for(l=e[u];u<i&&(n=r[u],(s=sh(n))!==void 0);)l+=s+e[++u],d=!0;u!==i&&a.push(n),o.push(l),u++}if(u===i&&o.push(e[i]),d){let p=o.join("$$lit$$");(e=Fa.get(p))===void 0&&(o.raw=o,Fa.set(p,e=o)),r=a}return t(e,...r)},js=Hs(Ia),um=Hs(Pa),dm=Hs(Ma);var qs=c(H()),Xa=c(f());var ce;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(ce||(ce={}));var ut=c(x()),m=c(f()),Ua=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.titleFont),Ht=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.contentFont),y={fontFamily:Ht,fontSize:m.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:m.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:m.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:m.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:m.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:m.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},Sr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Ua),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-font-size","",y.fontSize,"20px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",y.letterSpacing,"0.15px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-line-height","",y.lineHeight,"1.2"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",y.textDecoration,"inherit")},Er={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Ua),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",y.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",y.letterSpacing,"0.105px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",y.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",y.textDecoration,"inherit")},Ar={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Ht),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",y.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",y.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",y.letterSpacing,"0.144px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",y.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",y.textDecoration,"inherit")},Cr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Ht),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",y.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",y.letterSpacing,"0.098px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",y.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",y.textDecoration,"inherit")},Lt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Ht),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",y.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",y.letterSpacing,"0.496px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",y.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",y.textDecoration,"inherit")},me={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Ht),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",y.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",y.letterSpacing,"0.252px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",y.lineHeight,"1.4"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",y.textDecoration,"inherit")},Ke={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Ht),fontSize:m.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",y.fontSize,"12px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",y.letterSpacing,"0.396px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",y.lineHeight,"1.33"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",y.textDecoration,"inherit")},wr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Ht),fontSize:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",y.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",y.letterSpacing,"0.33px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",y.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",y.textDecoration,"inherit")},Or={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Ht),fontSize:m.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",y.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",y.letterSpacing,"1.5px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",y.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",y.textTransform,"uppercase"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",y.textDecoration,"inherit")},vt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Ht),fontSize:m.FtCssVariableFactory.extend("--ft-typography-button-font-size","",y.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",y.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",y.letterSpacing,"1.246px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-button-line-height","",y.lineHeight,"1.15"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",y.textTransform,"uppercase"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",y.textDecoration,"inherit")},za=ut.css`
127
127
  .ft-typography--title {
128
+ font-family: ${Sr.fontFamily};
129
+ font-size: ${Sr.fontSize};
130
+ font-weight: ${Sr.fontWeight};
131
+ letter-spacing: ${Sr.letterSpacing};
132
+ line-height: ${Sr.lineHeight};
133
+ text-transform: ${Sr.textTransform};
134
+ text-decoration: ${Sr.textDecoration};
135
+ }
136
+ `,Va=ut.css`
137
+ .ft-typography--title-dense {
128
138
  font-family: ${Er.fontFamily};
129
139
  font-size: ${Er.fontSize};
130
140
  font-weight: ${Er.fontWeight};
@@ -133,8 +143,8 @@
133
143
  text-transform: ${Er.textTransform};
134
144
  text-decoration: ${Er.textDecoration};
135
145
  }
136
- `,Ua=ut.css`
137
- .ft-typography--title-dense {
146
+ `,Ha=ut.css`
147
+ .ft-typography--subtitle1 {
138
148
  font-family: ${Ar.fontFamily};
139
149
  font-size: ${Ar.fontSize};
140
150
  font-weight: ${Ar.fontWeight};
@@ -143,8 +153,8 @@
143
153
  text-transform: ${Ar.textTransform};
144
154
  text-decoration: ${Ar.textDecoration};
145
155
  }
146
- `,za=ut.css`
147
- .ft-typography--subtitle1 {
156
+ `,ja=ut.css`
157
+ .ft-typography--subtitle2 {
148
158
  font-family: ${Cr.fontFamily};
149
159
  font-size: ${Cr.fontSize};
150
160
  font-weight: ${Cr.fontWeight};
@@ -153,36 +163,26 @@
153
163
  text-transform: ${Cr.textTransform};
154
164
  text-decoration: ${Cr.textDecoration};
155
165
  }
156
- `,Va=ut.css`
157
- .ft-typography--subtitle2 {
158
- font-family: ${wr.fontFamily};
159
- font-size: ${wr.fontSize};
160
- font-weight: ${wr.fontWeight};
161
- letter-spacing: ${wr.letterSpacing};
162
- line-height: ${wr.lineHeight};
163
- text-transform: ${wr.textTransform};
164
- text-decoration: ${wr.textDecoration};
165
- }
166
166
 
167
- `,Ha=ut.css`
167
+ `,qa=ut.css`
168
168
  .ft-typography--body1 {
169
- font-family: ${kt.fontFamily};
170
- font-size: ${kt.fontSize};
171
- font-weight: ${kt.fontWeight};
172
- letter-spacing: ${kt.letterSpacing};
173
- line-height: ${kt.lineHeight};
174
- text-transform: ${kt.textTransform};
175
- text-decoration: ${kt.textDecoration};
169
+ font-family: ${Lt.fontFamily};
170
+ font-size: ${Lt.fontSize};
171
+ font-weight: ${Lt.fontWeight};
172
+ letter-spacing: ${Lt.letterSpacing};
173
+ line-height: ${Lt.lineHeight};
174
+ text-transform: ${Lt.textTransform};
175
+ text-decoration: ${Lt.textDecoration};
176
176
  }
177
177
  `,Zt=ut.css`
178
178
  .ft-typography--body2 {
179
- font-family: ${ye.fontFamily};
180
- font-size: ${ye.fontSize};
181
- font-weight: ${ye.fontWeight};
182
- letter-spacing: ${ye.letterSpacing};
183
- line-height: ${ye.lineHeight};
184
- text-transform: ${ye.textTransform};
185
- text-decoration: ${ye.textDecoration};
179
+ font-family: ${me.fontFamily};
180
+ font-size: ${me.fontSize};
181
+ font-weight: ${me.fontWeight};
182
+ letter-spacing: ${me.letterSpacing};
183
+ line-height: ${me.lineHeight};
184
+ text-transform: ${me.textTransform};
185
+ text-decoration: ${me.textDecoration};
186
186
  }
187
187
  `,Jt=ut.css`
188
188
  .ft-typography--caption {
@@ -194,8 +194,18 @@
194
194
  text-transform: ${Ke.textTransform};
195
195
  text-decoration: ${Ke.textDecoration};
196
196
  }
197
- `,ja=ut.css`
197
+ `,Wa=ut.css`
198
198
  .ft-typography--breadcrumb {
199
+ font-family: ${wr.fontFamily};
200
+ font-size: ${wr.fontSize};
201
+ font-weight: ${wr.fontWeight};
202
+ letter-spacing: ${wr.letterSpacing};
203
+ line-height: ${wr.lineHeight};
204
+ text-transform: ${wr.textTransform};
205
+ text-decoration: ${wr.textDecoration};
206
+ }
207
+ `,Ka=ut.css`
208
+ .ft-typography--overline {
199
209
  font-family: ${Or.fontFamily};
200
210
  font-size: ${Or.fontSize};
201
211
  font-weight: ${Or.fontWeight};
@@ -204,17 +214,7 @@
204
214
  text-transform: ${Or.textTransform};
205
215
  text-decoration: ${Or.textDecoration};
206
216
  }
207
- `,qa=ut.css`
208
- .ft-typography--overline {
209
- font-family: ${_r.fontFamily};
210
- font-size: ${_r.fontSize};
211
- font-weight: ${_r.fontWeight};
212
- letter-spacing: ${_r.letterSpacing};
213
- line-height: ${_r.lineHeight};
214
- text-transform: ${_r.textTransform};
215
- text-decoration: ${_r.textDecoration};
216
- }
217
- `,Wa=ut.css`
217
+ `,Ga=ut.css`
218
218
  .ft-typography--button {
219
219
  font-family: ${vt.fontFamily};
220
220
  font-size: ${vt.fontSize};
@@ -224,19 +224,19 @@
224
224
  text-transform: ${vt.textTransform};
225
225
  text-decoration: ${vt.textDecoration};
226
226
  }
227
- `,Ka=ut.css`
227
+ `,Qa=ut.css`
228
228
  .ft-typography {
229
229
  vertical-align: inherit;
230
230
  }
231
- `;var Ga=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},W=class extends Qa.FtLitElement{constructor(){super(...arguments),this.variant=ce.body1}render(){return this.element?Vn`
232
- <${Un(this.element)}
231
+ `;var Ya=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},W=class extends Xa.FtLitElement{constructor(){super(...arguments),this.variant=ce.body1}render(){return this.element?js`
232
+ <${Vs(this.element)}
233
233
  part="text"
234
234
  class="ft-typography ft-typography--${this.variant}">
235
235
  <slot></slot>
236
- </${Un(this.element)}>
237
- `:Vn`
236
+ </${Vs(this.element)}>
237
+ `:js`
238
238
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
239
- `}};W.styles=[Ba,Ua,za,Va,Ha,Zt,Jt,ja,qa,Wa,Ka];Ga([(0,Hn.property)()],W.prototype,"element",void 0);Ga([(0,Hn.property)()],W.prototype,"variant",void 0);var Xa=c(f());var Ya={"ft-typography":W};(0,Xa.customElements)(Ya);var Za=c(v()),er=c(f()),ki={distance:er.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:er.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:er.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:er.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",er.designSystemVariables.borderRadiusS),maxWidth:er.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Ja=Za.css`
239
+ `}};W.styles=[za,Va,Ha,ja,qa,Zt,Jt,Wa,Ka,Ga,Qa];Ya([(0,qs.property)()],W.prototype,"element",void 0);Ya([(0,qs.property)()],W.prototype,"variant",void 0);var Ja=c(f());var Za={"ft-typography":W};(0,Ja.customElements)(Za);var el=c(x()),er=c(f()),ki={distance:er.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:er.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:er.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:er.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",er.designSystemVariables.borderRadiusS),maxWidth:er.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},tl=el.css`
240
240
  .ft-tooltip--container {
241
241
  display: block;
242
242
  }
@@ -267,15 +267,15 @@
267
267
  position: relative;
268
268
  word-break: break-word;
269
269
  }
270
- `;var tl=["top","right","bottom","left"],el=["start","end"],qn=tl.reduce((t,e)=>t.concat(e,e+"-"+el[0],e+"-"+el[1]),[]),Li=Math.min,tr=Math.max,$i=Math.round;var Lt=t=>({x:t,y:t}),oh={left:"right",right:"left",bottom:"top",top:"bottom"};function rl(t,e,r){return tr(t,Li(e,r))}function hs(t,e){return typeof t=="function"?t(e):t}function Di(t){return t.split("-")[0]}function rr(t){return t.split("-")[1]}function Wn(t){return t==="x"?"y":"x"}function Kn(t){return t==="y"?"height":"width"}function fs(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Gn(t){return Wn(fs(t))}function il(t,e,r){r===void 0&&(r=!1);let i=rr(t),n=Gn(t),s=Kn(n),o=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=jn(o)),[o,jn(o)]}function sl(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function jn(t){let e=Di(t);return oh[e]+t.slice(e.length)}function ah(t){var e,r,i,n;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(n=t.left)!=null?n:0}}function nl(t){return typeof t!="number"?ah(t):{top:t,right:t,bottom:t,left:t}}function Rr(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function ol(t,e,r){let{reference:i,floating:n}=t,s=fs(e),o=Gn(e),a=Kn(o),l=Di(e),u=s==="y",d=i.x+i.width/2-n.width/2,p=i.y+i.height/2-n.height/2,h=i[a]/2-n[a]/2,b;switch(l){case"top":b={x:d,y:i.y-n.height};break;case"bottom":b={x:d,y:i.y+i.height};break;case"right":b={x:i.x+i.width,y:p};break;case"left":b={x:i.x-n.width,y:p};break;default:b={x:i.x,y:i.y}}let S=rr(e);return S&&(b[o]+=h*(S==="end"?1:-1)*(r&&u?-1:1)),b}async function al(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:s,rects:o,elements:a,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:b=0}=hs(e,t),S=nl(b),x=a[h?p==="floating"?"reference":"floating":p],T=Rr(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:u,rootBoundary:d,strategy:l})),j=p==="floating"?{x:i,y:n,width:o.floating.width,height:o.floating.height}:o.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),I=await(s.isElement==null?void 0:s.isElement(E))&&await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1},B=Rr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:j,offsetParent:E,strategy:l}):j);return{top:(T.top-B.top+S.top)/I.y,bottom:(B.bottom-T.bottom+S.bottom)/I.y,left:(T.left-B.left+S.left)/I.x,right:(B.right-T.right+S.right)/I.x}}var lh=50,ll=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:s=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:al},l=await(o.isRTL==null?void 0:o.isRTL(e)),u=await o.getElementRects({reference:t,floating:e,strategy:n}),{x:d,y:p}=ol(u,i,l),h=i,b=0,S={};for(let _=0;_<s.length;_++){let x=s[_];if(!x)continue;let{name:T,fn:j}=x,{x:E,y:I,data:B,reset:ue}=await j({x:d,y:p,initialPlacement:i,placement:h,strategy:n,middlewareData:S,rects:u,platform:a,elements:{reference:t,floating:e}});d=E??d,p=I??p,S[T]={...S[T],...B},ue&&b<lh&&(b++,typeof ue=="object"&&(ue.placement&&(h=ue.placement),ue.rects&&(u=ue.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:n}):ue.rects),{x:d,y:p}=ol(u,h,l)),_=-1)}return{x:d,y:p,placement:h,strategy:n,middlewareData:S}};function ch(t,e,r){return(t?[...r.filter(n=>rr(n)===t),...r.filter(n=>rr(n)!==t)]:r.filter(n=>Di(n)===n)).filter(n=>t?rr(n)===t||(e?sl(n)!==n:!1):!0)}var cl=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:s,middlewareData:o,placement:a,platform:l,elements:u}=e,{crossAxis:d=!1,alignment:p,allowedPlacements:h=qn,autoAlignment:b=!0,...S}=hs(t,e),_=p!==void 0||h===qn?ch(p||null,b,h):h,x=((r=o.autoPlacement)==null?void 0:r.index)||0,T=_[x];if(T==null)return{};if(a!==T)return{reset:{placement:_[0]}};let j=await l.detectOverflow(e,S),E=il(T,s,await(l.isRTL==null?void 0:l.isRTL(u.floating))),I=[j[Di(T)],j[E[0]],j[E[1]]],B=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:T,overflows:I}],ue=_[x+1];if(ue)return{data:{index:x+1,overflows:B},reset:{placement:ue}};let J=B.map(ct=>{let br=rr(ct.placement);return[ct.placement,br&&d?ct.overflows.slice(0,2).reduce((Kp,Gp)=>Kp+Gp,0):ct.overflows[0],ct.overflows]}).sort((ct,br)=>ct[1]-br[1]),Ci=((n=J.filter(ct=>ct[2].slice(0,rr(ct[0])?2:3).every(br=>br<=0))[0])==null?void 0:n[0])||J[0][0];return Ci!==a?{data:{index:x+1,overflows:B},reset:{placement:Ci}}:{}}}};var ul=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n,platform:s}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:j=>{let{x:E,y:I}=j;return{x:E,y:I}}},...u}=hs(t,e),d={x:r,y:i},p=await s.detectOverflow(e,u),h=fs(n),b=Wn(h),S=d[b],_=d[h],x=(j,E)=>rl(E+p[j==="y"?"top":"left"],E,E-p[j==="y"?"bottom":"right"]);o&&(S=x(b,S)),a&&(_=x(h,_));let T=l.fn({...e,[b]:S,[h]:_});return{...T,data:{x:T.x-r,y:T.y-i,enabled:{[b]:o,[h]:a}}}}}};function gs(){return typeof window<"u"}function kr(t){return pl(t)?(t.nodeName||"").toLowerCase():"#document"}function Ge(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ht(t){var e;return(e=(pl(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function pl(t){return gs()?t instanceof Node||t instanceof Ge(t).Node:!1}function xt(t){return gs()?t instanceof Element||t instanceof Ge(t).Element:!1}function jt(t){return gs()?t instanceof HTMLElement||t instanceof Ge(t).HTMLElement:!1}function dl(t){return!gs()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ge(t).ShadowRoot}function Pi(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=St(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function hl(t){return/^(table|td|th)$/.test(kr(t))}function Ii(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var uh=/transform|translate|scale|rotate|perspective|filter/,dh=/paint|layout|strict|content/,Tr=t=>!!t&&t!=="none",Qn;function Jr(t){let e=xt(t)?St(t):t;return Tr(e.transform)||Tr(e.translate)||Tr(e.scale)||Tr(e.rotate)||Tr(e.perspective)||!ys()&&(Tr(e.backdropFilter)||Tr(e.filter))||uh.test(e.willChange||"")||dh.test(e.contain||"")}function fl(t){let e=ir(t);for(;jt(e)&&!ei(e);){if(Jr(e))return e;if(Ii(e))return null;e=ir(e)}return null}function ys(){return Qn==null&&(Qn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Qn}function ei(t){return/^(html|body|#document)$/.test(kr(t))}function St(t){return Ge(t).getComputedStyle(t)}function Mi(t){return xt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ir(t){if(kr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||dl(t)&&t.host||Ht(t);return dl(e)?e.host:e}function ml(t){let e=ir(t);return ei(e)?(t.ownerDocument||t).body:jt(e)&&Pi(e)?e:ml(e)}function ms(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=ml(t),s=n===((i=t.ownerDocument)==null?void 0:i.body),o=Ge(n);if(s){let a=bs(o);return e.concat(o,o.visualViewport||[],Pi(n)?n:[],a&&r?ms(a):[])}else return e.concat(n,ms(n,[],r))}function bs(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function bl(t){let e=St(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=jt(t),s=n?t.offsetWidth:r,o=n?t.offsetHeight:i,a=$i(r)!==s||$i(i)!==o;return a&&(r=s,i=o),{width:r,height:i,$:a}}function vl(t){return xt(t)?t:t.contextElement}function ti(t){let e=vl(t);if(!jt(e))return Lt(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:s}=bl(e),o=(s?$i(r.width):r.width)/i,a=(s?$i(r.height):r.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var ph=Lt(0);function xl(t){let e=Ge(t);return!ys()||!e.visualViewport?ph:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function hh(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Ge(t)}function Ni(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),s=vl(t),o=Lt(1);e&&(i?xt(i)&&(o=ti(i)):o=ti(t));let a=hh(s,r,i)?xl(s):Lt(0),l=(n.left+a.x)/o.x,u=(n.top+a.y)/o.y,d=n.width/o.x,p=n.height/o.y;if(s&&i){let h=Ge(s),b=xt(i)?Ge(i):i,S=h,_=bs(S);for(;_&&b!==S;){let x=ti(_),T=_.getBoundingClientRect(),j=St(_),E=T.left+(_.clientLeft+parseFloat(j.paddingLeft))*x.x,I=T.top+(_.clientTop+parseFloat(j.paddingTop))*x.y;l*=x.x,u*=x.y,d*=x.x,p*=x.y,l+=E,u+=I,S=Ge(_),_=bs(S)}}return Rr({width:d,height:p,x:l,y:u})}function vs(t,e){let r=Mi(t).scrollLeft;return e?e.left+r:Ni(Ht(t)).left+r}function Sl(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-vs(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function fh(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,s=n==="fixed",o=Ht(i),a=e?Ii(e.floating):!1;if(i===o||a&&s)return r;let l={scrollLeft:0,scrollTop:0},u=Lt(1),d=Lt(0),p=jt(i);if((p||!s)&&((kr(i)!=="body"||Pi(o))&&(l=Mi(i)),p)){let b=Ni(i);u=ti(i),d.x=b.x+i.clientLeft,d.y=b.y+i.clientTop}let h=o&&!p&&!s?Sl(o,l):Lt(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+d.x+h.x,y:r.y*u.y-l.scrollTop*u.y+d.y+h.y}}function mh(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function gh(t){let e=Mi(t),r=t.ownerDocument.body,i=tr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=tr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+vs(t),o=-e.scrollTop;return St(r).direction==="rtl"&&(s+=tr(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:s,y:o}}var yh=25;function bh(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=Ge(t),s=Ht(t),o=n.visualViewport,a=s.clientWidth,l=s.clientHeight,u=0,d=0;if(o){let h=!ys()||e==="fixed";i?h||(u=-o.offsetLeft,d=-o.offsetTop):(a=o.width,l=o.height,h&&(u=o.offsetLeft,d=o.offsetTop))}if(vs(s)<=0){let h=s.ownerDocument,b=h.body,S=getComputedStyle(b),_=h.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,x=Math.abs(s.clientWidth-b.clientWidth-_),T=getComputedStyle(s).scrollbarGutter==="stable both-edges"?x/2:x;T<=yh&&(a-=T)}return{width:a,height:l,x:u,y:d}}function vh(t,e){let r=Ni(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,s=ti(t),o=t.clientWidth*s.x,a=t.clientHeight*s.y,l=n*s.x,u=i*s.y;return{width:o,height:a,x:l,y:u}}function gl(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=bh(t,r,e);else if(e==="document")i=gh(Ht(t));else if(xt(e))i=vh(e,r);else{let n=xl(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return Rr(i)}function xh(t,e){let r=e.get(t);if(r)return r;let i=ms(t,[],!1).filter(a=>xt(a)&&kr(a)!=="body"),n=null,s=St(t).position==="fixed",o=s?ir(t):t;for(;xt(o)&&!ei(o);){let a=St(o),l=Jr(o),u=n?n.position:s?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&a.position==="static")?i=i.filter(p=>p!==o):n=a,o=ir(o)}return e.set(t,i),i}function Sh(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,o=[...r==="clippingAncestors"?Ii(e)?[]:xh(e,this._c):[].concat(r),i],a=gl(e,o[0],n),l=a.top,u=a.right,d=a.bottom,p=a.left;for(let h=1;h<o.length;h++){let b=gl(e,o[h],n);l=tr(b.top,l),u=Li(b.right,u),d=Li(b.bottom,d),p=tr(b.left,p)}return{width:u-p,height:d-l,x:p,y:l}}function Eh(t){let{width:e,height:r}=bl(t);return{width:e,height:r}}function Ah(t,e,r){let i=jt(e),n=Ht(e),s=r==="fixed",o=Ni(t,!0,s,e),a={scrollLeft:0,scrollTop:0},l=Lt(0);if((i||!s)&&((kr(e)!=="body"||Pi(n))&&(a=Mi(e)),i)){let h=Ni(e,!0,s,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}!i&&n&&(l.x=vs(n));let u=n&&!i&&!s?Sl(n,a):Lt(0),d=o.left+a.scrollLeft-l.x-u.x,p=o.top+a.scrollTop-l.y-u.y;return{x:d,y:p,width:o.width,height:o.height}}function Yn(t){return St(t).position==="static"}function yl(t,e){if(!jt(t)||St(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Ht(t)===r&&(r=r.ownerDocument.body),r}function El(t,e){let r=Ge(t);if(Ii(t))return r;if(!jt(t)){let n=ir(t);for(;n&&!ei(n);){if(xt(n)&&!Yn(n))return n;n=ir(n)}return r}let i=yl(t,e);for(;i&&hl(i)&&Yn(i);)i=yl(i,e);return i&&ei(i)&&Yn(i)&&!Jr(i)?r:i||fl(t)||r}var Ch=async function(t){let e=this.getOffsetParent||El,r=this.getDimensions,i=await r(t.floating);return{reference:Ah(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function wh(t){return St(t).direction==="rtl"}var xs={convertOffsetParentRelativeRectToViewportRelativeRect:fh,getDocumentElement:Ht,getClippingRect:Sh,getOffsetParent:El,getElementRects:Ch,getClientRects:mh,getDimensions:Eh,getScale:ti,isElement:xt,isRTL:wh};var Al=cl,Cl=ul;var wl=(t,e,r)=>{let i=new Map,n=r??{},s={...xs,...n.platform,_c:i};return ll(t,e,{...n,platform:s})};function Ol(t){return Oh(t)}function Xn(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Oh(t){for(let e=t;e;e=Xn(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Xn(t);e;e=Xn(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Jr(r)||e.tagName==="BODY"))return e}return null}async function _l(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},wl(t,e,{strategy:i.strategy,platform:{...xs,getOffsetParent:n=>xs.getOffsetParent(n,Ol)},middleware:[Cl({crossAxis:!0}),Al({allowedPlacements:[i.placement]})]})}var di=c(f());var xo=c(V());var Rl=c(V(),1);var Zn=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},_h=t=>({fromAttribute:e=>{if(e==null)return Fi(t);try{return JSON.parse(e)}catch{return Fi(t)}},toAttribute:e=>JSON.stringify(e)});function Tl(t,e){return(0,Rl.property)({type:Object,converter:_h(t),hasChanged:Bi,...e??{}})}function Rh(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!ri(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!ri(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=o=>Object.keys(o).filter(a=>o[a]!=null),s=n(t);if(r=s.length,r!==n(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,s[i]))return!1;for(i=r;i--!==0;){let o=s[i];if(!ri(t[o],e[o]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function ri(t,e){try{return Rh(t,e)}catch{return!1}}function Bi(t,e){return!ri(t,e)}function Fi(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Ss(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}var kl=c(V(),1);var Jn=t=>{let e=t??{};return(r,i)=>{var n;let s={hasChanged:Bi,attribute:!1,...e};(0,kl.property)(s)(r,i);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:(a=>a[i]),store:e.store})}};var Es=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var Lr=c(V(),1);var As=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>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 ws=c(v(),1);var Cs=class extends ws.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return(0,ws.adoptStyles)(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){Zn(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};function Ll(t,e,...r){var i;let n=t.querySelector(e);for(let s of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(s);return n}var si=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Il,$l=Symbol("constructorPrototype"),Dl=Symbol("constructorName"),Ml=Symbol("exportpartsDebouncer"),Pl=Symbol("dynamicDependenciesLoaded"),ii=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};ii.eventName="exportparts-updated";var $t=class extends Cs{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Il]=new As(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Ml].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[Dl]=this.constructor.name,this[$l]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Dl]&&Object.setPrototypeOf(this,this[$l])}connectedCallback(){var e;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[Pl]||(r[Pl]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(ii.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(ii.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new ii)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let s=[...n??[],i];r=Ll(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){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(e.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(e){var r,i,n,s,o,a;let l=h=>h!=null&&h.trim().length>0,u=e.filter(l).map(h=>h.trim());if(u.length===0){this.exportparts=void 0;return}let d=new Set;for(let h of(s=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&s!==void 0?s:[]){let b=(o=(i=h.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&o!==void 0?o:[],S=(a=(n=h.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(x=>x.split(":")[1]))!==null&&a!==void 0?a:[],_=[...b,...S].filter(l).map(x=>x.trim());for(let x of _)d.add(x)}if(d.size===0){this.exportparts=void 0;return}let p=[...d.values()].flatMap(h=>u.map(b=>`${h}:${b}--${h}`));this.exportparts=[...this.part,...p].join(", ")}};Il=Ml;si([(0,Lr.property)()],$t.prototype,"exportpartsPrefix",void 0);si([Tl([])],$t.prototype,"exportpartsPrefixes",void 0);si([(0,Lr.property)({reflect:!0})],$t.prototype,"exportparts",void 0);si([(0,Lr.property)()],$t.prototype,"customStylesheet",void 0);si([(0,Lr.property)()],$t.prototype,"elementToFocus",void 0);si([(0,Lr.state)()],$t.prototype,"useAdoptedStyleSheets",void 0);function Os(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ui=Symbol("internalReduxEventsUnsubscribers"),sr=Symbol("internalStoresUnsubscribers"),$r=Symbol("internalStores"),Th=Ss(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=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[$r].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[$r].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[$r].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[$r].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[$r].delete(a)}setupStores(){this.unsubscribeFromStores(),this[$r].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 u=this.getStore(o.store);u&&(o.store?this[sr].has(o.store):this[sr].size>0)&&(this[a]=o.selector(u.getState(),this))}})}subscribeToStore(o,a){var l;this[sr].set(o,a.subscribe(()=>this.updateFromStores())),this[Ui].set(o,[]),Os(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((u,d)=>{if(typeof this[d]=="function"&&(!u.store||a.name===u.store)){let p=h=>this[d](h);a.addEventListener(u.eventName,p),this[Ui].get(o).push(()=>a.removeEventListener(u.eventName,p))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[sr].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[sr].has(o)&&this[sr].get(o)(),this[sr].delete(o),(a=this[Ui].get(o))===null||a===void 0||a.forEach(l=>l()),this[Ui].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=sr,r=$r,i=Ui,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Nl=class extends Th($t){};function Oe(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var kh=typeof Symbol=="function"&&Symbol.observable||"@@observable",Fl=kh,eo=()=>Math.random().toString(36).substring(7).split("").join("."),Lh={INIT:`@@redux/INIT${eo()}`,REPLACE:`@@redux/REPLACE${eo()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${eo()}`},_s=Lh;function Rs(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function to(t,e,r){if(typeof t!="function")throw new Error(Oe(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Oe(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Oe(1));return r(to)(t,e)}let i=t,n=e,s=new Map,o=s,a=0,l=!1;function u(){o===s&&(o=new Map,s.forEach((x,T)=>{o.set(T,x)}))}function d(){if(l)throw new Error(Oe(3));return n}function p(x){if(typeof x!="function")throw new Error(Oe(4));if(l)throw new Error(Oe(5));let T=!0;u();let j=a++;return o.set(j,x),function(){if(T){if(l)throw new Error(Oe(6));T=!1,u(),o.delete(j),s=null}}}function h(x){if(!Rs(x))throw new Error(Oe(7));if(typeof x.type>"u")throw new Error(Oe(8));if(typeof x.type!="string")throw new Error(Oe(17));if(l)throw new Error(Oe(9));try{l=!0,n=i(n,x)}finally{l=!1}return(s=o).forEach(j=>{j()}),x}function b(x){if(typeof x!="function")throw new Error(Oe(10));i=x,h({type:_s.REPLACE})}function S(){let x=p;return{subscribe(T){if(typeof T!="object"||T===null)throw new Error(Oe(11));function j(){let I=T;I.next&&I.next(d())}return j(),{unsubscribe:x(j)}},[Fl](){return this}}}return h({type:_s.INIT}),{dispatch:h,subscribe:p,getState:d,replaceReducer:b,[Fl]:S}}function $h(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:_s.INIT})>"u")throw new Error(Oe(12));if(typeof r(void 0,{type:_s.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Oe(13))})}function Bl(t){let e=Object.keys(t),r={};for(let o=0;o<e.length;o++){let a=e[o];typeof t[a]=="function"&&(r[a]=t[a])}let i=Object.keys(r),n,s;try{$h(r)}catch(o){s=o}return function(a={},l){if(s)throw s;let u=!1,d={};for(let p=0;p<i.length;p++){let h=i[p],b=r[h],S=a[h],_=b(S,l);if(typeof _>"u"){let x=l&&l.type;throw new Error(Oe(14))}d[h]=_,u=u||_!==S}return u=u||i.length!==Object.keys(a).length,u?d:a}}function zi(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function Ul(...t){return e=>(r,i)=>{let n=e(r,i),s=()=>{throw new Error(Oe(15))},o={getState:n.getState,dispatch:(l,...u)=>s(l,...u)},a=t.map(l=>l(o));return s=zi(...a)(n.dispatch),{...n,dispatch:s}}}function zl(t){return Rs(t)&&"type"in t&&typeof t.type=="string"}var Yl=Symbol.for("immer-nothing"),Vl=Symbol.for("immer-draftable"),Ie=Symbol.for("immer-state");function Et(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var et=Object,oi=et.getPrototypeOf,$s="constructor",Fs="prototype",no="configurable",Ds="enumerable",ks="writable",Vi="value",Dt=t=>!!t&&!!t[Ie];function tt(t){return t?Xl(t)||Us(t)||!!t[Vl]||!!t[$s]?.[Vl]||zs(t)||Vs(t):!1}var Dh=et[Fs][$s].toString(),Hl=new WeakMap;function Xl(t){if(!t||!fo(t))return!1;let e=oi(t);if(e===null||e===et[Fs])return!0;let r=et.hasOwnProperty.call(e,$s)&&e[$s];if(r===Object)return!0;if(!ni(r))return!1;let i=Hl.get(r);return i===void 0&&(i=Function.toString.call(r),Hl.set(r,i)),i===Dh}function Bs(t,e,r=!0){qi(t)===0?(r?Reflect.ownKeys(t):et.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((i,n)=>e(n,i,t))}function qi(t){let e=t[Ie];return e?e.type_:Us(t)?1:zs(t)?2:Vs(t)?3:0}var ro=(t,e,r=qi(t))=>r===2?t.has(e):et[Fs].hasOwnProperty.call(t,e),oo=(t,e,r=qi(t))=>r===2?t.get(e):t[e],Ps=(t,e,r,i=qi(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function Ph(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Us=Array.isArray,zs=t=>t instanceof Map,Vs=t=>t instanceof Set,fo=t=>typeof t=="object",ni=t=>typeof t=="function",io=t=>typeof t=="boolean";function Ih(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var qt=t=>t.copy_||t.base_;var mo=t=>t.modified_?t.copy_:t.base_;function ao(t,e){if(zs(t))return new Map(t);if(Vs(t))return new Set(t);if(Us(t))return Array[Fs].slice.call(t);let r=Xl(t);if(e===!0||e==="class_only"&&!r){let i=et.getOwnPropertyDescriptors(t);delete i[Ie];let n=Reflect.ownKeys(i);for(let s=0;s<n.length;s++){let o=n[s],a=i[o];a[ks]===!1&&(a[ks]=!0,a[no]=!0),(a.get||a.set)&&(i[o]={[no]:!0,[ks]:!0,[Ds]:a[Ds],[Vi]:t[o]})}return et.create(oi(t),i)}else{let i=oi(t);if(i!==null&&r)return{...t};let n=et.create(i);return et.assign(n,t)}}function go(t,e=!1){return Hs(t)||Dt(t)||!tt(t)||(qi(t)>1&&et.defineProperties(t,{set:Ts,add:Ts,clear:Ts,delete:Ts}),et.freeze(t),e&&Bs(t,(r,i)=>{go(i,!0)},!1)),t}function Mh(){Et(2)}var Ts={[Vi]:Mh};function Hs(t){return t===null||!fo(t)?!0:et.isFrozen(t)}var Is="MapSet",lo="Patches",jl="ArrayMethods",Zl={};function Dr(t){let e=Zl[t];return e||Et(0,t),e}var ql=t=>!!Zl[t];var Hi,Jl=()=>Hi,Nh=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ql(Is)?Dr(Is):void 0,arrayMethodsPlugin_:ql(jl)?Dr(jl):void 0});function Wl(t,e){e&&(t.patchPlugin_=Dr(lo),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function co(t){uo(t),t.drafts_.forEach(Fh),t.drafts_=null}function uo(t){t===Hi&&(Hi=t.parent_)}var Kl=t=>Hi=Nh(Hi,t);function Fh(t){let e=t[Ie];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Gl(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[Ie].modified_&&(co(e),Et(4)),tt(t)&&(t=Ql(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(r[Ie].base_,t,e)}else t=Ql(e,r);return Bh(e,t,!0),co(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Yl?t:void 0}function Ql(t,e){if(Hs(e))return e;let r=e[Ie];if(!r)return Ms(e,t.handledSet_,t);if(!js(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);rc(r,t)}return r.copy_}function Bh(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&go(e,r)}function ec(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var js=(t,e)=>t.scope_===e,Uh=[];function tc(t,e,r,i){let n=qt(t),s=t.type_;if(i!==void 0&&oo(n,i,s)===e){Ps(n,i,r,s);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;Bs(n,(l,u)=>{if(Dt(u)){let d=a.get(u)||[];d.push(l),a.set(u,d)}})}let o=t.draftLocations_.get(e)??Uh;for(let a of o)Ps(n,a,r,s)}function zh(t,e,r){t.callbacks_.push(function(n){let s=e;if(!s||!js(s,n))return;n.mapSetPlugin_?.fixSetContents(s);let o=mo(s);tc(t,s.draft_??s,o,r),rc(s,n)})}function rc(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let n=i.getPath(t);n&&i.generatePatches_(t,n,e)}ec(t)}}function Vh(t,e,r){let{scope_:i}=t;if(Dt(r)){let n=r[Ie];js(n,i)&&n.callbacks_.push(function(){Ls(t);let o=mo(n);tc(t,r,o,e)})}else tt(r)&&t.callbacks_.push(function(){let s=qt(t);t.type_===3?s.has(r)&&Ms(r,i.handledSet_,i):oo(s,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Ms(oo(t.copy_,e,t.type_),i.handledSet_,i)})}function Ms(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Dt(t)||e.has(t)||!tt(t)||Hs(t)||(e.add(t),Bs(t,(i,n)=>{if(Dt(n)){let s=n[Ie];if(js(s,r)){let o=mo(s);Ps(t,i,o,t.type_),ec(s)}}else tt(n)&&Ms(n,e,r)})),t}function Hh(t,e){let r=Us(t),i={type_:r?1:0,scope_:e?e.scope_:Jl(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=i,s=Ns;r&&(n=[i],s=ji);let{revoke:o,proxy:a}=Proxy.revocable(n,s);return i.draft_=a,i.revoke_=o,[a,i]}var Ns={get(t,e){if(e===Ie)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let n=qt(t);if(!ro(n,e,t.type_))return qh(t,n,e);let s=n[e];if(t.finalized_||!tt(s)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&Ih(e))return s;if(s===so(t.base_,e)||jh(t,e,s)){Ls(t);let o=t.type_===1?+e:e,a=ho(t.scope_,s,t,o);return t.copy_[o]=a}return s},has(t,e){return e in qt(t)},ownKeys(t){return Reflect.ownKeys(qt(t))},set(t,e,r){let i=ic(qt(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let n=so(qt(t),e),s=n?.[Ie];if(s&&s.base_===r)return t.copy_[e]=r,t.assigned_.set(e,!1),!0;if(Ph(r,n)&&(r!==void 0||ro(t.base_,e,t.type_)))return!0;Ls(t),po(t)}return t.copy_[e]===r&&(r!==void 0||ro(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),Vh(t,e,r)),!0},deleteProperty(t,e){return Ls(t),so(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),po(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=qt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[ks]:!0,[no]:t.type_!==1||e!=="length",[Ds]:i[Ds],[Vi]:r[e]}},defineProperty(){Et(11)},getPrototypeOf(t){return oi(t.base_)},setPrototypeOf(){Et(12)}},ji={};for(let t in Ns){let e=Ns[t];ji[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}ji.deleteProperty=function(t,e){return ji.set.call(this,t,e,void 0)};ji.set=function(t,e,r){return Ns.set.call(this,t[0],e,r,t[0])};function so(t,e){let r=t[Ie];return(r?qt(r):t)[e]}function jh(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!tt(r)||r[Ie]?!1:t.baseRefs_.has(r)}function qh(t,e,r){let i=ic(e,r);return i?Vi in i?i[Vi]:i.get?.call(t.draft_):void 0}function ic(t,e){if(!(e in t))return;let r=oi(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=oi(r)}}function po(t){t.modified_||(t.modified_=!0,t.parent_&&po(t.parent_))}function Ls(t){t.copy_||(t.assigned_=new Map,t.copy_=ao(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Wh=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(ni(e)&&!ni(r)){let s=r;r=e;let o=this;return function(l=s,...u){return o.produce(l,d=>r.call(this,d,...u))}}ni(r)||Et(6),i!==void 0&&!ni(i)&&Et(7);let n;if(tt(e)){let s=Kl(this),o=ho(s,e,void 0),a=!0;try{n=r(o),a=!1}finally{a?co(s):uo(s)}return Wl(s,i),Gl(n,s)}else if(!e||!fo(e)){if(n=r(e),n===void 0&&(n=e),n===Yl&&(n=void 0),this.autoFreeze_&&go(n,!0),i){let s=[],o=[];Dr(lo).generateReplacementPatches_(e,n,{patches_:s,inversePatches_:o}),i(s,o)}return n}else Et(1,e)},this.produceWithPatches=(e,r)=>{if(ni(e))return(o,...a)=>this.produceWithPatches(o,l=>e(l,...a));let i,n;return[this.produce(e,r,(o,a)=>{i=o,n=a}),i,n]},io(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),io(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),io(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){tt(t)||Et(8),Dt(t)&&(t=sc(t));let e=Kl(this),r=ho(e,t,void 0);return r[Ie].isManual_=!0,uo(e),r}finishDraft(t,e){let r=t&&t[Ie];(!r||!r.isManual_)&&Et(9);let{scope_:i}=r;return Wl(i,e),Gl(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let n=e[r];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}r>-1&&(e=e.slice(r+1));let i=Dr(lo).applyPatches_;return Dt(t)?i(t,e):this.produce(t,n=>i(n,e))}};function ho(t,e,r,i){let[n,s]=zs(e)?Dr(Is).proxyMap_(e,r):Vs(e)?Dr(Is).proxySet_(e,r):Hh(e,r);return(r?.scope_??Jl()).drafts_.push(n),s.callbacks_=r?.callbacks_??[],s.key_=i,r&&i!==void 0?zh(r,s,i):s.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(s);let{patchPlugin_:u}=l;s.modified_&&u&&u.generatePatches_(s,[],l)}),n}function sc(t){return Dt(t)||Et(10,t),nc(t)}function nc(t){if(!tt(t)||Hs(t))return t;let e=t[Ie],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=ao(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=ao(t,!0);return Bs(r,(n,s)=>{Ps(r,n,nc(s))},i),e&&(e.finalized_=!1),r}var Kh=globalThis.Iterator,wg=typeof Kh?.from=="function";var Gh=new Wh,yo=Gh.produce;function oc(t){return({dispatch:r,getState:i})=>n=>s=>typeof s=="function"?s(r,i,t):n(s)}var ac=oc(),lc=oc;var Qh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?zi:zi.apply(null,arguments)},$g=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},Yh=t=>t&&typeof t.match=="function";function nr(t,e){function r(...i){if(e){let n=e(...i);if(!n)throw new Error(Wt(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>zl(i)&&i.type===t,r}var hc=class Wi extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Wi.prototype)}static get[Symbol.species](){return Wi}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Wi(...e[0].concat(this)):new Wi(...e.concat(this))}};function cc(t){return tt(t)?yo(t,()=>{}):t}function qs(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Xh(t){return typeof t=="boolean"}var Zh=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:s=!0}=e??{},o=new hc;return r&&(Xh(r)?o.push(ac):o.push(lc(r.extraArgument))),o},Jh="RTK_autoBatch";var uc=t=>e=>{setTimeout(e,t)},ef=(t,e)=>r=>{let i=!1,n=()=>{i||(i=!0,cancelAnimationFrame(s),clearTimeout(o),r())},s=t(n),o=setTimeout(n,e)},tf=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),n=!0,s=!1,o=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?ef(window.requestAnimationFrame,100):uc(10):t.type==="callback"?t.queueNotification:uc(t.timeout),u=()=>{o=!1,s&&(s=!1,a.forEach(d=>d()))};return Object.assign({},i,{subscribe(d){let p=()=>n&&d(),h=i.subscribe(p);return a.add(d),()=>{h(),a.delete(d)}},dispatch(d){try{return n=!d?.meta?.[Jh],s=!n,s&&(o||(o=!0,l(u))),i.dispatch(d)}finally{n=!0}}})},rf=t=>function(r){let{autoBatch:i=!0}=r??{},n=new hc(t);return i&&n.push(tf(typeof i=="object"?i:void 0)),n};function fc(t){let e=Zh(),{reducer:r=void 0,middleware:i,devTools:n=!0,duplicateMiddlewareCheck:s=!0,preloadedState:o=void 0,enhancers:a=void 0}=t||{},l;if(typeof r=="function")l=r;else if(Rs(r))l=Bl(r);else throw new Error(Wt(1));let u;typeof i=="function"?u=i(e):u=e();let d=zi;n&&(d=Qh({trace:!1,...typeof n=="object"&&n}));let p=Ul(...u),h=rf(p),b=typeof a=="function"?a(h):h(),S=d(...b);return to(l,o,S)}function mc(t){let e={},r=[],i,n={addCase(s,o){let a=typeof s=="string"?s:s.type;if(!a)throw new Error(Wt(28));if(a in e)throw new Error(Wt(29));return e[a]=o,n},addAsyncThunk(s,o){return o.pending&&(e[s.pending.type]=o.pending),o.rejected&&(e[s.rejected.type]=o.rejected),o.fulfilled&&(e[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 t(n),[e,r,i]}function sf(t){return typeof t=="function"}function nf(t,e){let[r,i,n]=mc(e),s;if(sf(t))s=()=>cc(t());else{let a=cc(t);s=()=>a}function o(a=s(),l){let u=[r[l.type],...i.filter(({matcher:d})=>d(l)).map(({reducer:d})=>d)];return u.filter(d=>!!d).length===0&&(u=[n]),u.reduce((d,p)=>{if(p)if(Dt(d)){let b=p(d,l);return b===void 0?d:b}else{if(tt(d))return yo(d,h=>p(h,l));{let h=p(d,l);if(h===void 0){if(d===null)return d;throw Error("A case reducer on a non-draftable value must not return undefined")}return h}}return d},a)}return o.getInitialState=s,o}var of=(t,e)=>Yh(t)?t.match(e):t(e);function af(...t){return e=>t.some(r=>of(r,e))}var lf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",cf=(t=21)=>{let e="",r=t;for(;r--;)e+=lf[Math.random()*64|0];return e},uf=["name","message","stack","code"],bo=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},dc=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},df=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of uf)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},pc="External signal was aborted",pf=(()=>{function t(e,r,i){let n=nr(e+"/fulfilled",(l,u,d,p)=>({payload:l,meta:{...p||{},arg:d,requestId:u,requestStatus:"fulfilled"}})),s=nr(e+"/pending",(l,u,d)=>({payload:void 0,meta:{...d||{},arg:u,requestId:l,requestStatus:"pending"}})),o=nr(e+"/rejected",(l,u,d,p,h)=>({payload:p,error:(i&&i.serializeError||df)(l||"Rejected"),meta:{...h||{},arg:d,requestId:u,rejectedWithValue:!!p,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:u}={}){return(d,p,h)=>{let b=i?.idGenerator?i.idGenerator(l):cf(),S=new AbortController,_,x;function T(E){x=E,S.abort()}u&&(u.aborted?T(pc):u.addEventListener("abort",()=>T(pc),{once:!0}));let j=(async function(){let E;try{let B=i?.condition?.(l,{getState:p,extra:h});if(ff(B)&&(B=await B),B===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let ue=new Promise((J,de)=>{_=()=>{de({name:"AbortError",message:x||"Aborted"})},S.signal.addEventListener("abort",_,{once:!0})});d(s(b,l,i?.getPendingMeta?.({requestId:b,arg:l},{getState:p,extra:h}))),E=await Promise.race([ue,Promise.resolve(r(l,{dispatch:d,getState:p,extra:h,requestId:b,signal:S.signal,abort:T,rejectWithValue:((J,de)=>new bo(J,de)),fulfillWithValue:((J,de)=>new dc(J,de))})).then(J=>{if(J instanceof bo)throw J;return J instanceof dc?n(J.payload,b,l,J.meta):n(J,b,l)})])}catch(B){E=B instanceof bo?o(null,b,l,B.payload,B.meta):o(B,b,l)}finally{_&&S.signal.removeEventListener("abort",_)}return i&&!i.dispatchConditionRejection&&o.match(E)&&E.meta.condition||d(E),E})();return Object.assign(j,{abort:T,requestId:b,arg:l,unwrap(){return j.then(hf)}})}}return Object.assign(a,{pending:s,rejected:o,fulfilled:n,settled:af(o,n),typePrefix:e})}return t.withTypes=()=>t,t})();function hf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function ff(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var gc=Symbol.for("rtk-slice-createasyncthunk"),Pg={[gc]:pf};function mf(t,e){return`${t}/${e}`}function gf({creators:t}={}){let e=t?.asyncThunk?.[gc];return function(i){let{name:n,reducerPath:s=n}=i;if(!n)throw new Error(Wt(11));typeof process<"u";let o=(typeof i.reducers=="function"?i.reducers(bf()):i.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(E,I){let B=typeof E=="string"?E:E.type;if(!B)throw new Error(Wt(12));if(B in l.sliceCaseReducersByType)throw new Error(Wt(13));return l.sliceCaseReducersByType[B]=I,u},addMatcher(E,I){return l.sliceMatchers.push({matcher:E,reducer:I}),u},exposeAction(E,I){return l.actionCreators[E]=I,u},exposeCaseReducer(E,I){return l.sliceCaseReducersByName[E]=I,u}};a.forEach(E=>{let I=o[E],B={reducerName:E,type:mf(n,E),createNotation:typeof i.reducers=="function"};xf(I)?Ef(B,I,u,e):vf(B,I,u)});function d(){let[E={},I=[],B=void 0]=typeof i.extraReducers=="function"?mc(i.extraReducers):[i.extraReducers],ue={...E,...l.sliceCaseReducersByType};return nf(i.initialState,J=>{for(let de in ue)J.addCase(de,ue[de]);for(let de of l.sliceMatchers)J.addMatcher(de.matcher,de.reducer);for(let de of I)J.addMatcher(de.matcher,de.reducer);B&&J.addDefaultCase(B)})}let p=E=>E,h=new Map,b=new WeakMap,S;function _(E,I){return S||(S=d()),S(E,I)}function x(){return S||(S=d()),S.getInitialState()}function T(E,I=!1){function B(J){let de=J[E];return typeof de>"u"&&I&&(de=qs(b,B,x)),de}function ue(J=p){let de=qs(h,I,()=>new WeakMap);return qs(de,J,()=>{let Ci={};for(let[ct,br]of Object.entries(i.selectors??{}))Ci[ct]=yf(br,J,()=>qs(b,J,x),I);return Ci})}return{reducerPath:E,getSelectors:ue,get selectors(){return ue(B)},selectSlice:B}}let j={name:n,reducer:_,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:x,...T(s),injectInto(E,{reducerPath:I,...B}={}){let ue=I??s;return E.inject({reducerPath:ue,reducer:_},B),{...j,...T(ue,!0)}}};return j}}function yf(t,e,r,i){function n(s,...o){let a=e(s);return typeof a>"u"&&i&&(a=r()),t(a,...o)}return n.unwrapped=t,n}var yc=gf();function bf(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function vf({type:t,reducerName:e,createNotation:r},i,n){let s,o;if("reducer"in i){if(r&&!Sf(i))throw new Error(Wt(17));s=i.reducer,o=i.prepare}else s=i;n.addCase(t,s).exposeCaseReducer(e,s).exposeAction(e,o?nr(t,o):nr(t))}function xf(t){return t._reducerDefinitionType==="asyncThunk"}function Sf(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Ef({type:t,reducerName:e},r,i,n){if(!n)throw new Error(Wt(18));let{payloadCreator:s,fulfilled:o,pending:a,rejected:l,settled:u,options:d}=r,p=n(t,s,d);i.exposeAction(e,p),o&&i.addCase(p.fulfilled,o),a&&i.addCase(p.pending,a),l&&i.addCase(p.rejected,l),u&&i.addMatcher(p.settled,u),i.exposeCaseReducer(e,{fulfilled:o||Ws,pending:a||Ws,rejected:l||Ws,settled:u||Ws})}function Ws(){}var bc="listener",vc="completed",xc="cancelled",Ig=`task-${xc}`,Mg=`task-${vc}`,Ng=`${bc}-${xc}`,Fg=`${bc}-${vc}`;var{assign:Sc}=Object;var vo="listenerMiddleware";var Af=Sc(nr(`${vo}/add`),{withTypes:()=>Af}),Bg=nr(`${vo}/removeAll`),Cf=Sc(nr(`${vo}/remove`),{withTypes:()=>Cf});function Wt(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var wf=Ss(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??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)}}}),Ks=class extends wf(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ec=class t extends Ks{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,s=window.ftReduxStores[i];if(Os(s))return s;if(n==null)return;let o=yc({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),a=fc({reducer:(l,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let d=Fi(o.getInitialState());for(let p of u.keeping)d[p]=(l??d)[p];return d}else if(typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...u.overwrites};return o.reducer(l,u)}});return window.ftReduxStores[n.name]=new t(o,a,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Es,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,u=s[l];return u?(...d)=>{let p=u(...d.map(n));return this.reduxStore.dispatch(p),p}:d=>{let p=l,h=this.getState()[p];ri(h,d)||this.setState({[p]:n(d)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}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(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}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 Gs=class{static format(e,r,i,n,s){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n,!!s)):this.getIntlDateTime(e,r,i,n,!!s)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n,s){let o=typeof e=="string"?new Date(e):e,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 e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var Qs=c(f()),Of="ft-app-info",or=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};or.eventName="authentication-change";var Ki=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Ki.eventName="ui-locale-changed";var _f={session:(t,e)=>{(0,Qs.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>w.dispatchEvent(new or(e.payload)),0))}},w=Qs.FtReduxStore.get({name:Of,reducers:_f,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 Ac=c(f()),Ys=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},my=(0,Ac.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(w)}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=>Gs.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ys([(0,xo.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Ys([(0,xo.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Ys([Jn({store:w.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Ys([Jn({store:w.name})],e.prototype,"uiLocale",void 0),e});var Cc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Cc||(Cc={}));var wc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(wc||(wc={}));var Oc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Oc||(Oc={}));var _c;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(_c||(_c={}));var Rc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Rc||(Rc={}));var Tc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Tc||(Tc={}));var kc;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(kc||(kc={}));var Lc;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(Lc||(Lc={}));var $c;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})($c||($c={}));var Dc;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Dc||(Dc={}));var Pc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(Pc||(Pc={}));var Ic;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(Ic||(Ic={}));var Mc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Mc||(Mc={}));var Nc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Nc||(Nc={}));var Fc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Fc||(Fc={}));var Bc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Bc||(Bc={}));var Uc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Uc||(Uc={}));var So;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(So||(So={}));var zc;(function(t){t.ASC="ASC",t.DESC="DESC"})(zc||(zc={}));var Vc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Vc||(Vc={}));var Eo;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Eo||(Eo={}));var Hc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Hc||(Hc={}));var jc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(jc||(jc={}));var qc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(qc||(qc={}));var Wc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Wc||(Wc={}));var Kc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Kc||(Kc={}));var Ao;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Ao||(Ao={}));var Gc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Gc||(Gc={}));var pe;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(pe||(pe={}));var dt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(dt||(dt={}));var Qc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Qc||(Qc={}));var Yc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Yc||(Yc={}));var Xc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Xc||(Xc={}));var Zc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Zc||(Zc={}));var Jc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Jc||(Jc={}));var eu;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(eu||(eu={}));var tu;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(tu||(tu={}));var ru;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(ru||(ru={}));var iu;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(iu||(iu={}));var su;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(su||(su={}));var nu;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(nu||(nu={}));var ou;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(ou||(ou={}));var Rf={[pe.PERSONAL_BOOK_SHARE_USER]:[pe.PERSONAL_BOOK_USER],[pe.HTML_EXPORT_USER]:[pe.PERSONAL_BOOK_USER],[pe.PDF_EXPORT_USER]:[pe.PERSONAL_BOOK_USER],[pe.KHUB_ADMIN]:[pe.CONTENT_PUBLISHER],[pe.ADMIN]:[pe.KHUB_ADMIN,pe.USERS_ADMIN,pe.PORTAL_ADMIN,pe.BEHAVIOR_DATA_USER],[pe.GENERATIVE_AI_EXPORT_USER]:[pe.GENERATIVE_AI_USER]};function au(t,e){return t===e||(Rf[t]??[]).some(r=>au(r,e))}function Xs(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>au(i,e))}function lu(t,...e){return t==null?!1:e.some(r=>Xs(t,r))}var rn=c(f());var Co=c(f());var Pr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=w.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=w.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var ai=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Pr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Pr.await()}};var Qe=class extends ai{constructor(e=!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 Co.CacheRegistry,this.cache=e?n.commonCache:new Co.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var Zs=class extends Qe{async listMySearches(){let{session:e}=w.getState();return Xs(e,pe.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Js=class extends Qe{async listMyBookmarks(){let e=w.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var en=class extends Qe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=w.getState().session;return!!e?.sessionAuthenticated}};var tn=class extends Qe{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 e=w.getState().session;return!!e?.sessionAuthenticated}};var Tf="ft-user-assets",kf={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(dt).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:n}=e.payload;Oo(t,r,[...wo(t,r),n]),cu(t,r,1,i),uu(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Oo(t,r,wo(t,r).map(n=>n.id===i.id?i:n)),uu(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;Oo(t,r,wo(t,r).filter(s=>s.id!==n)),cu(t,r,-1,i)}},du={[dt.SEARCHES]:"savedSearches",[dt.BOOKMARKS]:"bookmarks",[dt.BOOKS]:void 0,[dt.COLLECTIONS]:void 0},wo=(t,e)=>{var r;let i=du[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Oo=(t,e,r)=>{let i=du[e];i&&(t[i]=r)},cu=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===dt.BOOKMARKS&&i)){let s=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,s+r)}},uu=(t,e)=>{let r=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},Fe=rn.FtReduxStore.get({name:Tf,reducers:kf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(dt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),_o=class{constructor(e=new en,r=new tn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Js,this.savedSearchesService=new Zs,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=w.getState();(0,rn.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Fe.actions.clearAssetCount(),Fe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Fe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Fe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Fe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Fe.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Fe.getState().assetCounts.allAsset[e]!==r.count&&Fe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Fe.getState().assetCounts.bookmarkByMap[e]!==r.count&&Fe.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Fe.getState().assetCounts.bookmarkByMap).length!==0;e===dt.BOOKMARKS&&r&&Fe.actions.clearBookmarkCountByMap(),Fe.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Fe.actions.bookmarks(r)}}},Lf=new _o;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Lf);var Ro=class{addCommand(e,r=!1){w.commands.add(e,r)}consumeCommand(e){return w.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Ro;var pt=c(f());var pu,li=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},$f=Symbol("clearAfterUnitTest"),sn=class extends(0,pt.withEventBus)(Qe){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[pu]=()=>{this.defaultMessages={},this.cache=new pt.CacheRegistry,this.listeners={}},this.currentUiLocale=w.getState().uiLocale,w.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=w.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,pt.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let s=e.toLowerCase(),o=this.resolveContext(s);return new pt.ParametrizedLabelResolver((n=this.defaultMessages[s])!==null&&n!==void 0?n:{},o).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof pt.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new li({loadedContexts:e})),this.dispatchEvent(new li({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new li({loadedContexts:[e]})),this.dispatchEvent(new li({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,pt.delay)(0).then(()=>i()).catch(()=>null)))}};pu=$f;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends sn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends sn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var ci=window.FluidTopicsI18nService,nn=window.FluidTopicsCustomI18nService;var hu=c(f()),To=class{highlightHtml(e,r,i){(0,hu.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new To;var fu=c(f());var ko=class{isDate(e){var r,i,n,s;return(s=(i=((n=(r=w.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===e))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1}format(e,r){var i,n,s,o;if(e==null)return"";try{return fu.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:w.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(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new ko;var mu=c(f());var Kt=class{static get(e,r){var i,n,s,o;let a=w.getState(),{lang:l,region:u}=(o=(n=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&o!==void 0?o:{lang:"en",region:"US"};return new mu.SearchPlaceConverter(a.baseUrl,e??20,(s=a.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${l}-${u}`)}};var Lo=class{urlToSearchRequest(e){return Kt.get().parse(e)}searchRequestToUrl(e){return Kt.get().serialize(e)}};window.FluidTopicsUrlService=new Lo;var Gt=c(f());var Ir=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Ir.eventName="before-location-change";var Mr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Mr.eventName="change";var $o=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},gu=new $o;var on=class t extends Gt.WithEventBus{static build(){return new t(window.history,gu,()=>window.location,!1)}constructor(e,r,i,n){var s,o;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(o=(s=e.state)===null||s===void 0?void 0:s.index)!==null&&o!==void 0?o:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},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,Gt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Mr(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[s,o,a])=>{let l=new Ir(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(l);let u=r(),d={...u===this.currentIndex?this.currentState:void 0,...s,index:u,href:l.detail.nextLocation.href};i.apply(n,[d,o,d.href]),this.setCurrentState(d,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.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(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addBeforeLocationChangeListener(e){this.addEventListener(Ir.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Ir.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Mr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Mr.eventName,e)}currentItem(){return(0,Gt.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Gt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Gt.deepCopy)(r.find(i=>e(i)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,Gt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,s=e+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,i);)this.hasState(s)&&(n=s),s++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,s=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return s==null||s!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=on.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)});var yu=c(v());var bu=yu.css`
271
- `;var xu=c(v()),Be=c(V()),Br=c(f());var Nr=c(f());function vu(t,e){let{authenticationRequired:r,session:i}=w.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var an=class extends ai{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Do=class t extends Nr.FtStateManager{static build(e){return new t(w,e)}constructor(e,r){super(),this.store=e,this.cache=new Nr.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new an,this.cleanSessionDebouncer=new Nr.Debouncer,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new Nr.Debouncer(500),this.apiProvider=r??(()=>Pr.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(or.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(or.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 e=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(e)}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 e;let r=await this.cache.get("availableContentLocales",()=>vu(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}setStickyFilters(e){this.store.actions.stickyFilters(e)}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Ki(i)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setNoCustomCode(e){this.store.actions.noCustomCode(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}userHasAnyRole(...e){return lu(w.getState().session,...e)}},Po=Do.build();var Fr=class extends Event{constructor(e,r,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=n??!1}};var Gi=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.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 Fr(e.context,o,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.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(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var Ae=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},ne=class extends Br.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=Po,this.contextRoot=new Gi}render(){return xu.html`
270
+ `;var il=["top","right","bottom","left"],rl=["start","end"],Ks=il.reduce((t,e)=>t.concat(e,e+"-"+rl[0],e+"-"+rl[1]),[]),Li=Math.min,tr=Math.max,$i=Math.round;var $t=t=>({x:t,y:t}),oh={left:"right",right:"left",bottom:"top",top:"bottom"};function nl(t,e,r){return tr(t,Li(e,r))}function mn(t,e){return typeof t=="function"?t(e):t}function Di(t){return t.split("-")[0]}function rr(t){return t.split("-")[1]}function Gs(t){return t==="x"?"y":"x"}function Qs(t){return t==="y"?"height":"width"}function gn(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Ys(t){return Gs(gn(t))}function sl(t,e,r){r===void 0&&(r=!1);let i=rr(t),s=Ys(t),n=Qs(s),o=s==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[n]>e.floating[n]&&(o=Ws(o)),[o,Ws(o)]}function ol(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Ws(t){let e=Di(t);return oh[e]+t.slice(e.length)}function ah(t){var e,r,i,s;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(s=t.left)!=null?s:0}}function al(t){return typeof t!="number"?ah(t):{top:t,right:t,bottom:t,left:t}}function _r(t){let{x:e,y:r,width:i,height:s}=t;return{width:i,height:s,top:r,left:e,right:e+i,bottom:r+s,x:e,y:r}}function ll(t,e,r){let{reference:i,floating:s}=t,n=gn(e),o=Ys(e),a=Qs(o),l=Di(e),u=n==="y",d=i.x+i.width/2-s.width/2,p=i.y+i.height/2-s.height/2,h=i[a]/2-s[a]/2,b;switch(l){case"top":b={x:d,y:i.y-s.height};break;case"bottom":b={x:d,y:i.y+i.height};break;case"right":b={x:i.x+i.width,y:p};break;case"left":b={x:i.x-s.width,y:p};break;default:b={x:i.x,y:i.y}}let S=rr(e);return S&&(b[o]+=h*(S==="end"?1:-1)*(r&&u?-1:1)),b}async function cl(t,e){var r;e===void 0&&(e={});let{x:i,y:s,platform:n,rects:o,elements:a,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:b=0}=mn(e,t),S=al(b),v=a[h?p==="floating"?"reference":"floating":p],$=_r(await n.getClippingRect({element:(r=await(n.isElement==null?void 0:n.isElement(v)))==null||r?v:v.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),q=p==="floating"?{x:i,y:s,width:o.floating.width,height:o.floating.height}:o.reference,E=await(n.getOffsetParent==null?void 0:n.getOffsetParent(a.floating)),A=await(n.isElement==null?void 0:n.isElement(E))&&await(n.getScale==null?void 0:n.getScale(E))||{x:1,y:1},K=_r(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:q,offsetParent:E,strategy:l}):q);return{top:($.top-K.top+S.top)/A.y,bottom:(K.bottom-$.bottom+S.bottom)/A.y,left:($.left-K.left+S.left)/A.x,right:(K.right-$.right+S.right)/A.x}}var lh=50,ul=async(t,e,r)=>{let{placement:i="bottom",strategy:s="absolute",middleware:n=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:cl},l=await(o.isRTL==null?void 0:o.isRTL(e)),u=await o.getElementRects({reference:t,floating:e,strategy:s}),{x:d,y:p}=ll(u,i,l),h=i,b=0,S={};for(let R=0;R<n.length;R++){let v=n[R];if(!v)continue;let{name:$,fn:q}=v,{x:E,y:A,data:K,reset:V}=await q({x:d,y:p,initialPlacement:i,placement:h,strategy:s,middlewareData:S,rects:u,platform:a,elements:{reference:t,floating:e}});d=E??d,p=A??p,S[$]={...S[$],...K},V&&b<lh&&(b++,typeof V=="object"&&(V.placement&&(h=V.placement),V.rects&&(u=V.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:s}):V.rects),{x:d,y:p}=ll(u,h,l)),R=-1)}return{x:d,y:p,placement:h,strategy:s,middlewareData:S}};function ch(t,e,r){return(t?[...r.filter(s=>rr(s)===t),...r.filter(s=>rr(s)!==t)]:r.filter(s=>Di(s)===s)).filter(s=>t?rr(s)===t||(e?ol(s)!==s:!1):!0)}var dl=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,s;let{rects:n,middlewareData:o,placement:a,platform:l,elements:u}=e,{crossAxis:d=!1,alignment:p,allowedPlacements:h=Ks,autoAlignment:b=!0,...S}=mn(t,e),R=p!==void 0||h===Ks?ch(p||null,b,h):h,v=((r=o.autoPlacement)==null?void 0:r.index)||0,$=R[v];if($==null)return{};if(a!==$)return{reset:{placement:R[0]}};let q=await l.detectOverflow(e,S),E=sl($,n,await(l.isRTL==null?void 0:l.isRTL(u.floating))),A=[q[Di($)],q[E[0]],q[E[1]]],K=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:$,overflows:A}],V=R[v+1];if(V)return{data:{index:v+1,overflows:K},reset:{placement:V}};let ve=K.map(ct=>{let Ci=rr(ct.placement);return[ct.placement,Ci&&d?ct.overflows.slice(0,2).reduce((Kp,Gp)=>Kp+Gp,0):ct.overflows[0],ct.overflows]}).sort((ct,Ci)=>ct[1]-Ci[1]),dn=((s=ve.filter(ct=>ct[2].slice(0,rr(ct[0])?2:3).every(Ci=>Ci<=0))[0])==null?void 0:s[0])||ve[0][0];return dn!==a?{data:{index:v+1,overflows:K},reset:{placement:dn}}:{}}}};var pl=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:s,platform:n}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:q=>{let{x:E,y:A}=q;return{x:E,y:A}}},...u}=mn(t,e),d={x:r,y:i},p=await n.detectOverflow(e,u),h=gn(s),b=Gs(h),S=d[b],R=d[h],v=(q,E)=>nl(E+p[q==="y"?"top":"left"],E,E-p[q==="y"?"bottom":"right"]);o&&(S=v(b,S)),a&&(R=v(h,R));let $=l.fn({...e,[b]:S,[h]:R});return{...$,data:{x:$.x-r,y:$.y-i,enabled:{[b]:o,[h]:a}}}}}};function bn(){return typeof window<"u"}function Tr(t){return fl(t)?(t.nodeName||"").toLowerCase():"#document"}function Ge(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function jt(t){var e;return(e=(fl(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function fl(t){return bn()?t instanceof Node||t instanceof Ge(t).Node:!1}function xt(t){return bn()?t instanceof Element||t instanceof Ge(t).Element:!1}function qt(t){return bn()?t instanceof HTMLElement||t instanceof Ge(t).HTMLElement:!1}function hl(t){return!bn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ge(t).ShadowRoot}function Ii(t){let{overflow:e,overflowX:r,overflowY:i,display:s}=St(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&s!=="inline"&&s!=="contents"}function ml(t){return/^(table|td|th)$/.test(Tr(t))}function Pi(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var uh=/transform|translate|scale|rotate|perspective|filter/,dh=/paint|layout|strict|content/,Rr=t=>!!t&&t!=="none",Xs;function Jr(t){let e=xt(t)?St(t):t;return Rr(e.transform)||Rr(e.translate)||Rr(e.scale)||Rr(e.rotate)||Rr(e.perspective)||!vn()&&(Rr(e.backdropFilter)||Rr(e.filter))||uh.test(e.willChange||"")||dh.test(e.contain||"")}function gl(t){let e=ir(t);for(;qt(e)&&!ei(e);){if(Jr(e))return e;if(Pi(e))return null;e=ir(e)}return null}function vn(){return Xs==null&&(Xs=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Xs}function ei(t){return/^(html|body|#document)$/.test(Tr(t))}function St(t){return Ge(t).getComputedStyle(t)}function Mi(t){return xt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ir(t){if(Tr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||hl(t)&&t.host||jt(t);return hl(e)?e.host:e}function yl(t){let e=ir(t);return ei(e)?(t.ownerDocument||t).body:qt(e)&&Ii(e)?e:yl(e)}function yn(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let s=yl(t),n=s===((i=t.ownerDocument)==null?void 0:i.body),o=Ge(s);if(n){let a=xn(o);return e.concat(o,o.visualViewport||[],Ii(s)?s:[],a&&r?yn(a):[])}else return e.concat(s,yn(s,[],r))}function xn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function xl(t){let e=St(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,s=qt(t),n=s?t.offsetWidth:r,o=s?t.offsetHeight:i,a=$i(r)!==n||$i(i)!==o;return a&&(r=n,i=o),{width:r,height:i,$:a}}function Sl(t){return xt(t)?t:t.contextElement}function ti(t){let e=Sl(t);if(!qt(e))return $t(1);let r=e.getBoundingClientRect(),{width:i,height:s,$:n}=xl(e),o=(n?$i(r.width):r.width)/i,a=(n?$i(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var ph=$t(0);function El(t){let e=Ge(t);return!vn()||!e.visualViewport?ph:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function hh(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Ge(t)}function Ni(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let s=t.getBoundingClientRect(),n=Sl(t),o=$t(1);e&&(i?xt(i)&&(o=ti(i)):o=ti(t));let a=hh(n,r,i)?El(n):$t(0),l=(s.left+a.x)/o.x,u=(s.top+a.y)/o.y,d=s.width/o.x,p=s.height/o.y;if(n&&i){let h=Ge(n),b=xt(i)?Ge(i):i,S=h,R=xn(S);for(;R&&b!==S;){let v=ti(R),$=R.getBoundingClientRect(),q=St(R),E=$.left+(R.clientLeft+parseFloat(q.paddingLeft))*v.x,A=$.top+(R.clientTop+parseFloat(q.paddingTop))*v.y;l*=v.x,u*=v.y,d*=v.x,p*=v.y,l+=E,u+=A,S=Ge(R),R=xn(S)}}return _r({width:d,height:p,x:l,y:u})}function Sn(t,e){let r=Mi(t).scrollLeft;return e?e.left+r:Ni(jt(t)).left+r}function Al(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Sn(t,r),s=r.top+e.scrollTop;return{x:i,y:s}}function fh(t){let{elements:e,rect:r,offsetParent:i,strategy:s}=t,n=s==="fixed",o=jt(i),a=e?Pi(e.floating):!1;if(i===o||a&&n)return r;let l={scrollLeft:0,scrollTop:0},u=$t(1),d=$t(0),p=qt(i);if((p||!n)&&((Tr(i)!=="body"||Ii(o))&&(l=Mi(i)),p)){let b=Ni(i);u=ti(i),d.x=b.x+i.clientLeft,d.y=b.y+i.clientTop}let h=o&&!p&&!n?Al(o,l):$t(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+d.x+h.x,y:r.y*u.y-l.scrollTop*u.y+d.y+h.y}}function mh(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function gh(t){let e=Mi(t),r=t.ownerDocument.body,i=tr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=tr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),n=-e.scrollLeft+Sn(t),o=-e.scrollTop;return St(r).direction==="rtl"&&(n+=tr(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:n,y:o}}var yh=25;function bh(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",s=Ge(t),n=jt(t),o=s.visualViewport,a=n.clientWidth,l=n.clientHeight,u=0,d=0;if(o){let h=!vn()||e==="fixed";i?h||(u=-o.offsetLeft,d=-o.offsetTop):(a=o.width,l=o.height,h&&(u=o.offsetLeft,d=o.offsetTop))}if(Sn(n)<=0){let h=n.ownerDocument,b=h.body,S=getComputedStyle(b),R=h.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,v=Math.abs(n.clientWidth-b.clientWidth-R),$=getComputedStyle(n).scrollbarGutter==="stable both-edges"?v/2:v;$<=yh&&(a-=$)}return{width:a,height:l,x:u,y:d}}function vh(t,e){let r=Ni(t,!0,e==="fixed"),i=r.top+t.clientTop,s=r.left+t.clientLeft,n=ti(t),o=t.clientWidth*n.x,a=t.clientHeight*n.y,l=s*n.x,u=i*n.y;return{width:o,height:a,x:l,y:u}}function bl(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=bh(t,r,e);else if(e==="document")i=gh(jt(t));else if(xt(e))i=vh(e,r);else{let s=El(t);i={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return _r(i)}function xh(t,e){let r=e.get(t);if(r)return r;let i=yn(t,[],!1).filter(a=>xt(a)&&Tr(a)!=="body"),s=null,n=St(t).position==="fixed",o=n?ir(t):t;for(;xt(o)&&!ei(o);){let a=St(o),l=Jr(o),u=s?s.position:n?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&a.position==="static")?i=i.filter(p=>p!==o):s=a,o=ir(o)}return e.set(t,i),i}function Sh(t){let{element:e,boundary:r,rootBoundary:i,strategy:s}=t,o=[...r==="clippingAncestors"?Pi(e)?[]:xh(e,this._c):[].concat(r),i],a=bl(e,o[0],s),l=a.top,u=a.right,d=a.bottom,p=a.left;for(let h=1;h<o.length;h++){let b=bl(e,o[h],s);l=tr(b.top,l),u=Li(b.right,u),d=Li(b.bottom,d),p=tr(b.left,p)}return{width:u-p,height:d-l,x:p,y:l}}function Eh(t){let{width:e,height:r}=xl(t);return{width:e,height:r}}function Ah(t,e,r){let i=qt(e),s=jt(e),n=r==="fixed",o=Ni(t,!0,n,e),a={scrollLeft:0,scrollTop:0},l=$t(0);if((i||!n)&&((Tr(e)!=="body"||Ii(s))&&(a=Mi(e)),i)){let h=Ni(e,!0,n,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}!i&&s&&(l.x=Sn(s));let u=s&&!i&&!n?Al(s,a):$t(0),d=o.left+a.scrollLeft-l.x-u.x,p=o.top+a.scrollTop-l.y-u.y;return{x:d,y:p,width:o.width,height:o.height}}function Zs(t){return St(t).position==="static"}function vl(t,e){if(!qt(t)||St(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return jt(t)===r&&(r=r.ownerDocument.body),r}function Cl(t,e){let r=Ge(t);if(Pi(t))return r;if(!qt(t)){let s=ir(t);for(;s&&!ei(s);){if(xt(s)&&!Zs(s))return s;s=ir(s)}return r}let i=vl(t,e);for(;i&&ml(i)&&Zs(i);)i=vl(i,e);return i&&ei(i)&&Zs(i)&&!Jr(i)?r:i||gl(t)||r}var Ch=async function(t){let e=this.getOffsetParent||Cl,r=this.getDimensions,i=await r(t.floating);return{reference:Ah(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function wh(t){return St(t).direction==="rtl"}var En={convertOffsetParentRelativeRectToViewportRelativeRect:fh,getDocumentElement:jt,getClippingRect:Sh,getOffsetParent:Cl,getElementRects:Ch,getClientRects:mh,getDimensions:Eh,getScale:ti,isElement:xt,isRTL:wh};var wl=dl,Ol=pl;var _l=(t,e,r)=>{let i=new Map,s=r??{},n={...En,...s.platform,_c:i};return ul(t,e,{...s,platform:n})};function Rl(t){return Oh(t)}function Js(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Oh(t){for(let e=t;e;e=Js(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Js(t);e;e=Js(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Jr(r)||e.tagName==="BODY"))return e}return null}async function Tl(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},_l(t,e,{strategy:i.strategy,platform:{...En,getOffsetParent:s=>En.getOffsetParent(s,Rl)},middleware:[Ol({crossAxis:!0}),wl({allowedPlacements:[i.placement]})]})}var di=c(f());var Eo=c(H());var kl=c(H(),1);var eo=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},_h=t=>({fromAttribute:e=>{if(e==null)return Fi(t);try{return JSON.parse(e)}catch{return Fi(t)}},toAttribute:e=>JSON.stringify(e)});function Ll(t,e){return(0,kl.property)({type:Object,converter:_h(t),hasChanged:Bi,...e??{}})}function Rh(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!ri(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!ri(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let s=o=>Object.keys(o).filter(a=>o[a]!=null),n=s(t);if(r=n.length,r!==s(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=r;i--!==0;){let o=n[i];if(!ri(t[o],e[o]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function ri(t,e){try{return Rh(t,e)}catch{return!1}}function Bi(t,e){return!ri(t,e)}function Fi(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function An(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let s=e(i);return s[t]=!0,s}}var $l=c(H(),1);var to=t=>{let e=t??{};return(r,i)=>{var s;let n={hasChanged:Bi,attribute:!1,...e};(0,$l.property)(n)(r,i);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(i,{selector:(s=e.selector)!==null&&s!==void 0?s:(a=>a[i]),store:e.store})}};var Cn=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var kr=c(H(),1);var wn=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let s=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),n=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of i)try{await o()}catch(a){s(a);return}n(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var _n=c(x(),1);var On=class extends _n.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return(0,_n.adoptStyles)(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){eo(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};function Dl(t,e,...r){var i;let s=t.querySelector(e);for(let n of r)s=(i=s?.shadowRoot)===null||i===void 0?void 0:i.querySelector(n);return s}var ni=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Nl,Il=Symbol("constructorPrototype"),Pl=Symbol("constructorName"),Fl=Symbol("exportpartsDebouncer"),Ml=Symbol("dynamicDependenciesLoaded"),ii=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};ii.eventName="exportparts-updated";var Dt=class extends On{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Nl]=new wn(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Fl].run(()=>{var s,n;!((s=this.exportpartsPrefix)===null||s===void 0)&&s.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((n=this.exportpartsPrefixes)===null||n===void 0?void 0:n.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Pl]=this.constructor.name,this[Il]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Pl]&&Object.setPrototypeOf(this,this[Il])}connectedCallback(){var e;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[Ml]||(r[Ml]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(ii.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(ii.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new ii)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:s}=this.elementToFocus;if(i!=null){let n=[...s??[],i];r=Dl(this.shadowRoot,...n)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,s;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(n=>n.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((s=this.customStylesheet)!==null&&s!==void 0?s:"")}catch(n){console.error(n,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let n=document.createElement("style");n.classList.add("ft-lit-element--custom-stylesheet"),n.innerHTML=this.customStylesheet,this.shadowRoot.append(n)}}setExportpartsAttribute(e){var r,i,s,n,o,a;let l=h=>h!=null&&h.trim().length>0,u=e.filter(l).map(h=>h.trim());if(u.length===0){this.exportparts=void 0;return}let d=new Set;for(let h of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let b=(o=(i=h.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&o!==void 0?o:[],S=(a=(s=h.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(v=>v.split(":")[1]))!==null&&a!==void 0?a:[],R=[...b,...S].filter(l).map(v=>v.trim());for(let v of R)d.add(v)}if(d.size===0){this.exportparts=void 0;return}let p=[...d.values()].flatMap(h=>u.map(b=>`${h}:${b}--${h}`));this.exportparts=[...this.part,...p].join(", ")}};Nl=Fl;ni([(0,kr.property)()],Dt.prototype,"exportpartsPrefix",void 0);ni([Ll([])],Dt.prototype,"exportpartsPrefixes",void 0);ni([(0,kr.property)({reflect:!0})],Dt.prototype,"exportparts",void 0);ni([(0,kr.property)()],Dt.prototype,"customStylesheet",void 0);ni([(0,kr.property)()],Dt.prototype,"elementToFocus",void 0);ni([(0,kr.state)()],Dt.prototype,"useAdoptedStyleSheets",void 0);function Rn(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ui=Symbol("internalReduxEventsUnsubscribers"),nr=Symbol("internalStoresUnsubscribers"),Lr=Symbol("internalStores"),Th=An(Symbol("withRedux"),function(t){var e,r,i;class s extends t{constructor(){super(...arguments),this[e]=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[Lr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Lr].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[Lr].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Lr].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[Lr].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Lr].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 u=this.getStore(o.store);u&&(o.store?this[nr].has(o.store):this[nr].size>0)&&(this[a]=o.selector(u.getState(),this))}})}subscribeToStore(o,a){var l;this[nr].set(o,a.subscribe(()=>this.updateFromStores())),this[Ui].set(o,[]),Rn(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((u,d)=>{if(typeof this[d]=="function"&&(!u.store||a.name===u.store)){let p=h=>this[d](h);a.addEventListener(u.eventName,p),this[Ui].get(o).push(()=>a.removeEventListener(u.eventName,p))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[nr].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[nr].has(o)&&this[nr].get(o)(),this[nr].delete(o),(a=this[Ui].get(o))===null||a===void 0||a.forEach(l=>l()),this[Ui].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=nr,r=Lr,i=Ui,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),Bl=class extends Th(Dt){};function Oe(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var kh=typeof Symbol=="function"&&Symbol.observable||"@@observable",Ul=kh,ro=()=>Math.random().toString(36).substring(7).split("").join("."),Lh={INIT:`@@redux/INIT${ro()}`,REPLACE:`@@redux/REPLACE${ro()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ro()}`},Tn=Lh;function kn(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function io(t,e,r){if(typeof t!="function")throw new Error(Oe(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Oe(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Oe(1));return r(io)(t,e)}let i=t,s=e,n=new Map,o=n,a=0,l=!1;function u(){o===n&&(o=new Map,n.forEach((v,$)=>{o.set($,v)}))}function d(){if(l)throw new Error(Oe(3));return s}function p(v){if(typeof v!="function")throw new Error(Oe(4));if(l)throw new Error(Oe(5));let $=!0;u();let q=a++;return o.set(q,v),function(){if($){if(l)throw new Error(Oe(6));$=!1,u(),o.delete(q),n=null}}}function h(v){if(!kn(v))throw new Error(Oe(7));if(typeof v.type>"u")throw new Error(Oe(8));if(typeof v.type!="string")throw new Error(Oe(17));if(l)throw new Error(Oe(9));try{l=!0,s=i(s,v)}finally{l=!1}return(n=o).forEach(q=>{q()}),v}function b(v){if(typeof v!="function")throw new Error(Oe(10));i=v,h({type:Tn.REPLACE})}function S(){let v=p;return{subscribe($){if(typeof $!="object"||$===null)throw new Error(Oe(11));function q(){let A=$;A.next&&A.next(d())}return q(),{unsubscribe:v(q)}},[Ul](){return this}}}return h({type:Tn.INIT}),{dispatch:h,subscribe:p,getState:d,replaceReducer:b,[Ul]:S}}function $h(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:Tn.INIT})>"u")throw new Error(Oe(12));if(typeof r(void 0,{type:Tn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Oe(13))})}function no(t){let e=Object.keys(t),r={};for(let o=0;o<e.length;o++){let a=e[o];typeof t[a]=="function"&&(r[a]=t[a])}let i=Object.keys(r),s,n;try{$h(r)}catch(o){n=o}return function(a={},l){if(n)throw n;let u=!1,d={};for(let p=0;p<i.length;p++){let h=i[p],b=r[h],S=a[h],R=b(S,l);if(typeof R>"u"){let v=l&&l.type;throw new Error(Oe(14))}d[h]=R,u=u||R!==S}return u=u||i.length!==Object.keys(a).length,u?d:a}}function zi(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function zl(...t){return e=>(r,i)=>{let s=e(r,i),n=()=>{throw new Error(Oe(15))},o={getState:s.getState,dispatch:(l,...u)=>n(l,...u)},a=t.map(l=>l(o));return n=zi(...a)(s.dispatch),{...s,dispatch:n}}}function Vl(t){return kn(t)&&"type"in t&&typeof t.type=="string"}var Xl=Symbol.for("immer-nothing"),Hl=Symbol.for("immer-draftable"),Pe=Symbol.for("immer-state");function Et(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var et=Object,oi=et.getPrototypeOf,In="constructor",Un="prototype",lo="configurable",Pn="enumerable",$n="writable",Vi="value",It=t=>!!t&&!!t[Pe];function tt(t){return t?Zl(t)||Vn(t)||!!t[Hl]||!!t[In]?.[Hl]||Hn(t)||jn(t):!1}var Dh=et[Un][In].toString(),jl=new WeakMap;function Zl(t){if(!t||!yo(t))return!1;let e=oi(t);if(e===null||e===et[Un])return!0;let r=et.hasOwnProperty.call(e,In)&&e[In];if(r===Object)return!0;if(!si(r))return!1;let i=jl.get(r);return i===void 0&&(i=Function.toString.call(r),jl.set(r,i)),i===Dh}function zn(t,e,r=!0){qi(t)===0?(r?Reflect.ownKeys(t):et.keys(t)).forEach(s=>{e(s,t[s],t)}):t.forEach((i,s)=>e(s,i,t))}function qi(t){let e=t[Pe];return e?e.type_:Vn(t)?1:Hn(t)?2:jn(t)?3:0}var so=(t,e,r=qi(t))=>r===2?t.has(e):et[Un].hasOwnProperty.call(t,e),co=(t,e,r=qi(t))=>r===2?t.get(e):t[e],Mn=(t,e,r,i=qi(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function Ih(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Vn=Array.isArray,Hn=t=>t instanceof Map,jn=t=>t instanceof Set,yo=t=>typeof t=="object",si=t=>typeof t=="function",oo=t=>typeof t=="boolean";function Ph(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var Wt=t=>t.copy_||t.base_;var bo=t=>t.modified_?t.copy_:t.base_;function uo(t,e){if(Hn(t))return new Map(t);if(jn(t))return new Set(t);if(Vn(t))return Array[Un].slice.call(t);let r=Zl(t);if(e===!0||e==="class_only"&&!r){let i=et.getOwnPropertyDescriptors(t);delete i[Pe];let s=Reflect.ownKeys(i);for(let n=0;n<s.length;n++){let o=s[n],a=i[o];a[$n]===!1&&(a[$n]=!0,a[lo]=!0),(a.get||a.set)&&(i[o]={[lo]:!0,[$n]:!0,[Pn]:a[Pn],[Vi]:t[o]})}return et.create(oi(t),i)}else{let i=oi(t);if(i!==null&&r)return{...t};let s=et.create(i);return et.assign(s,t)}}function qn(t,e=!1){return Wn(t)||It(t)||!tt(t)||(qi(t)>1&&et.defineProperties(t,{set:Ln,add:Ln,clear:Ln,delete:Ln}),et.freeze(t),e&&zn(t,(r,i)=>{qn(i,!0)},!1)),t}function Mh(){Et(2)}var Ln={[Vi]:Mh};function Wn(t){return t===null||!yo(t)?!0:et.isFrozen(t)}var Nn="MapSet",po="Patches",ql="ArrayMethods",Jl={};function $r(t){let e=Jl[t];return e||Et(0,t),e}var Wl=t=>!!Jl[t];var Hi,ec=()=>Hi,Nh=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Wl(Nn)?$r(Nn):void 0,arrayMethodsPlugin_:Wl(ql)?$r(ql):void 0});function Kl(t,e){e&&(t.patchPlugin_=$r(po),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function ho(t){fo(t),t.drafts_.forEach(Fh),t.drafts_=null}function fo(t){t===Hi&&(Hi=t.parent_)}var Gl=t=>Hi=Nh(Hi,t);function Fh(t){let e=t[Pe];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Ql(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[Pe].modified_&&(ho(e),Et(4)),tt(t)&&(t=Yl(e,t));let{patchPlugin_:s}=e;s&&s.generateReplacementPatches_(r[Pe].base_,t,e)}else t=Yl(e,r);return Bh(e,t,!0),ho(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Xl?t:void 0}function Yl(t,e){if(Wn(e))return e;let r=e[Pe];if(!r)return Fn(e,t.handledSet_,t);if(!Kn(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);ic(r,t)}return r.copy_}function Bh(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&qn(e,r)}function tc(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Kn=(t,e)=>t.scope_===e,Uh=[];function rc(t,e,r,i){let s=Wt(t),n=t.type_;if(i!==void 0&&co(s,i,n)===e){Mn(s,i,r,n);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;zn(s,(l,u)=>{if(It(u)){let d=a.get(u)||[];d.push(l),a.set(u,d)}})}let o=t.draftLocations_.get(e)??Uh;for(let a of o)Mn(s,a,r,n)}function zh(t,e,r){t.callbacks_.push(function(s){let n=e;if(!n||!Kn(n,s))return;s.mapSetPlugin_?.fixSetContents(n);let o=bo(n);rc(t,n.draft_??n,o,r),ic(n,s)})}function ic(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let s=i.getPath(t);s&&i.generatePatches_(t,s,e)}tc(t)}}function Vh(t,e,r){let{scope_:i}=t;if(It(r)){let s=r[Pe];Kn(s,i)&&s.callbacks_.push(function(){Dn(t);let o=bo(s);rc(t,r,o,e)})}else tt(r)&&t.callbacks_.push(function(){let n=Wt(t);t.type_===3?n.has(r)&&Fn(r,i.handledSet_,i):co(n,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Fn(co(t.copy_,e,t.type_),i.handledSet_,i)})}function Fn(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||It(t)||e.has(t)||!tt(t)||Wn(t)||(e.add(t),zn(t,(i,s)=>{if(It(s)){let n=s[Pe];if(Kn(n,r)){let o=bo(n);Mn(t,i,o,t.type_),tc(n)}}else tt(s)&&Fn(s,e,r)})),t}function Hh(t,e){let r=Vn(t),i={type_:r?1:0,scope_:e?e.scope_:ec(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},s=i,n=Bn;r&&(s=[i],n=ji);let{revoke:o,proxy:a}=Proxy.revocable(s,n);return i.draft_=a,i.revoke_=o,[a,i]}var Bn={get(t,e){if(e===Pe)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let s=Wt(t);if(!so(s,e,t.type_))return qh(t,s,e);let n=s[e];if(t.finalized_||!tt(n)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&Ph(e))return n;if(n===ao(t.base_,e)||jh(t,e,n)){Dn(t);let o=t.type_===1?+e:e,a=go(t.scope_,n,t,o);return t.copy_[o]=a}return n},has(t,e){return e in Wt(t)},ownKeys(t){return Reflect.ownKeys(Wt(t))},set(t,e,r){let i=nc(Wt(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let s=ao(Wt(t),e),n=s?.[Pe];if(n&&n.base_===r)return t.copy_[e]=r,t.assigned_.delete(e),!0;if(Ih(r,s)&&(r!==void 0||so(t.base_,e,t.type_)))return!0;Dn(t),mo(t)}return t.copy_[e]===r&&(r!==void 0||so(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),Vh(t,e,r)),!0},deleteProperty(t,e){return Dn(t),ao(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),mo(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=Wt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[$n]:!0,[lo]:t.type_!==1||e!=="length",[Pn]:i[Pn],[Vi]:r[e]}},defineProperty(){Et(11)},getPrototypeOf(t){return oi(t.base_)},setPrototypeOf(){Et(12)}},ji={};for(let t in Bn){let e=Bn[t];ji[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}ji.deleteProperty=function(t,e){return ji.set.call(this,t,e,void 0)};ji.set=function(t,e,r){return Bn.set.call(this,t[0],e,r,t[0])};function ao(t,e){let r=t[Pe];return(r?Wt(r):t)[e]}function jh(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!tt(r)||r[Pe]?!1:t.baseRefs_.has(r)}function qh(t,e,r){let i=nc(e,r);return i?Vi in i?i[Vi]:i.get?.call(t.draft_):void 0}function nc(t,e){if(!(e in t))return;let r=oi(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=oi(r)}}function mo(t){t.modified_||(t.modified_=!0,t.parent_&&mo(t.parent_))}function Dn(t){t.copy_||(t.assigned_=new Map,t.copy_=uo(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Wh=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(si(e)&&!si(r)){let n=r;r=e;let o=this;return function(l=n,...u){return o.produce(l,d=>r.call(this,d,...u))}}si(r)||Et(6),i!==void 0&&!si(i)&&Et(7);let s;if(tt(e)){let n=Gl(this),o=go(n,e,void 0),a=!0;try{s=r(o),a=!1}finally{a?ho(n):fo(n)}return Kl(n,i),Ql(s,n)}else if(!e||!yo(e)){if(s=r(e),s===void 0&&(s=e),s===Xl&&(s=void 0),this.autoFreeze_&&qn(s,!0),i){let n=[],o=[];$r(po).generateReplacementPatches_(e,s,{patches_:n,inversePatches_:o}),i(n,o)}return s}else Et(1,e)},this.produceWithPatches=(e,r)=>{if(si(e))return(o,...a)=>this.produceWithPatches(o,l=>e(l,...a));let i,s;return[this.produce(e,r,(o,a)=>{i=o,s=a}),i,s]},oo(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),oo(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),oo(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){tt(t)||Et(8),It(t)&&(t=sc(t));let e=Gl(this),r=go(e,t,void 0);return r[Pe].isManual_=!0,fo(e),r}finishDraft(t,e){let r=t&&t[Pe];(!r||!r.isManual_)&&Et(9);let{scope_:i}=r;return Kl(i,e),Ql(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let s=e[r];if(s.path.length===0&&s.op==="replace"){t=s.value;break}}r>-1&&(e=e.slice(r+1));let i=$r(po).applyPatches_;return It(t)?i(t,e):this.produce(t,s=>i(s,e))}};function go(t,e,r,i){let[s,n]=Hn(e)?$r(Nn).proxyMap_(e,r):jn(e)?$r(Nn).proxySet_(e,r):Hh(e,r);return(r?.scope_??ec()).drafts_.push(s),n.callbacks_=r?.callbacks_??[],n.key_=i,r&&i!==void 0?zh(r,n,i):n.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(n);let{patchPlugin_:u}=l;n.modified_&&u&&u.generatePatches_(n,[],l)}),s}function sc(t){return It(t)||Et(10,t),oc(t)}function oc(t){if(!tt(t)||Wn(t))return t;let e=t[Pe],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=uo(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=uo(t,!0);return zn(r,(s,n)=>{Mn(r,s,oc(n))},i),e&&(e.finalized_=!1),r}var Kh=globalThis.Iterator,wg=typeof Kh?.from=="function";var Gh=new Wh,vo=Gh.produce;function ac(t){return({dispatch:r,getState:i})=>s=>n=>typeof n=="function"?n(r,i,t):s(n)}var lc=ac(),cc=ac;var Qh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?zi:zi.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Yh=t=>t&&typeof t.match=="function";function sr(t,e){function r(...i){if(e){let s=e(...i);if(!s)throw new Error(Pt(0));return{type:t,payload:s.payload,..."meta"in s&&{meta:s.meta},..."error"in s&&{error:s.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>Vl(i)&&i.type===t,r}var fc=class Wi extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Wi.prototype)}static get[Symbol.species](){return Wi}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Wi(...e[0].concat(this)):new Wi(...e.concat(this))}};function uc(t){return tt(t)?vo(t,()=>{}):t}function Gn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Xh(t){return typeof t=="boolean"}var Zh=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:s=!0,actionCreatorCheck:n=!0}=e??{},o=new fc;return r&&(Xh(r)?o.push(lc):o.push(cc(r.extraArgument))),o},Jh="RTK_autoBatch";var dc=t=>e=>{setTimeout(e,t)},ef=(t,e)=>r=>{let i=!1,s,n,o=()=>{i||(i=!0,cancelAnimationFrame(s),clearTimeout(n),r())};s=t(o),n=setTimeout(o,e)},tf=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),s=!0,n=!1,o=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?ef(window.requestAnimationFrame,100):dc(10):t.type==="callback"?t.queueNotification:dc(t.timeout),u=()=>{o=!1,n&&(n=!1,a.forEach(d=>d()))};return Object.assign({},i,{subscribe(d){let p=()=>s&&d(),h=i.subscribe(p);return a.add(d),()=>{h(),a.delete(d)}},dispatch(d){try{return s=!d?.meta?.[Jh],n=!s,n&&(o||(o=!0,l(u))),i.dispatch(d)}finally{s=!0}}})},rf=t=>function(r){let{autoBatch:i=!0}=r??{},s=new fc(t);return i&&s.push(tf(typeof i=="object"?i:void 0)),s};function mc(t){let e=Zh(),{reducer:r=void 0,middleware:i,devTools:s=!0,duplicateMiddlewareCheck:n=!0,preloadedState:o=void 0,enhancers:a=void 0}=t||{},l;if(typeof r=="function")l=r;else if(kn(r))l=no(r);else throw new Error(Pt(1));let u;typeof i=="function"?u=i(e):u=e();let d=zi;s&&(d=Qh({trace:!1,...typeof s=="object"&&s}));let p=zl(...u),h=rf(p),b=typeof a=="function"?a(h):h(),S=d(...b);return io(l,o,S)}function gc(t){let e={},r=[],i,s={addCase(n,o){let a=typeof n=="string"?n:n.type;if(!a)throw new Error(Pt(28));if(a in e)throw new Error(Pt(29));return e[a]=o,s},addAsyncThunk(n,o){return o.pending&&(e[n.pending.type]=o.pending),o.rejected&&(e[n.rejected.type]=o.rejected),o.fulfilled&&(e[n.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:n.settled,reducer:o.settled}),s},addMatcher(n,o){return r.push({matcher:n,reducer:o}),s},addDefaultCase(n){return i=n,s}};return t(s),[e,r,i]}function nf(t){return typeof t=="function"}function sf(t,e){let[r,i,s]=gc(e),n;if(nf(t))n=()=>uc(t());else{let a=uc(t);n=()=>a}function o(a=n(),l){let u=[r[l.type],...i.filter(({matcher:d})=>d(l)).map(({reducer:d})=>d)];return u.filter(d=>!!d).length===0&&(u=[s]),u.reduce((d,p)=>{if(p)if(It(d)){let h=p(d,l);return h===void 0?d:h}else{if(tt(d))return vo(d,h=>p(h,l));{let h=p(d,l);if(h===void 0){if(d===null)return d;throw new Error(Pt(9))}return h}}return d},a)}return o.getInitialState=n,o}var of=(t,e)=>Yh(t)?t.match(e):t(e);function af(...t){return e=>t.some(r=>of(r,e))}var lf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",cf=(t=21)=>{let e="",r=t;for(;r--;)e+=lf[Math.random()*64|0];return e},uf=["name","message","stack","code"],xo=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},pc=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},df=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of uf)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},hc="External signal was aborted",pf=(()=>{function t(e,r,i){let s=sr(e+"/fulfilled",(l,u,d,p)=>({payload:l,meta:{...p||{},arg:d,requestId:u,requestStatus:"fulfilled"}})),n=sr(e+"/pending",(l,u,d)=>({payload:void 0,meta:{...d||{},arg:u,requestId:l,requestStatus:"pending"}})),o=sr(e+"/rejected",(l,u,d,p,h)=>({payload:p,error:(i&&i.serializeError||df)(l||"Rejected"),meta:{...h||{},arg:d,requestId:u,rejectedWithValue:p!==void 0,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:u}={}){return(d,p,h)=>{let b=i?.idGenerator?i.idGenerator(l):cf(),S=new AbortController,R,v;function $(E){v=E,S.abort()}u&&(u.aborted?$(hc):u.addEventListener("abort",()=>$(hc),{once:!0}));let q=(async function(){let E;try{let A=i?.condition?.(l,{getState:p,extra:h});if(ff(A)&&(A=await A),A===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(S.signal.aborted)throw{name:"AbortError",message:v||"Aborted"};let K=new Promise((V,ve)=>{R=()=>{ve({name:"AbortError",message:v||"Aborted"})},S.signal.addEventListener("abort",R,{once:!0})});d(n(b,l,i?.getPendingMeta?.({requestId:b,arg:l},{getState:p,extra:h}))),E=await Promise.race([K,Promise.resolve(r(l,{dispatch:d,getState:p,extra:h,requestId:b,signal:S.signal,abort:$,rejectWithValue:((V,ve)=>new xo(V,ve)),fulfillWithValue:((V,ve)=>new pc(V,ve))})).then(V=>{if(V instanceof xo)throw V;return V instanceof pc?s(V.payload,b,l,V.meta):s(V,b,l)})])}catch(A){E=A instanceof xo?o(null,b,l,A.payload,A.meta):o(A,b,l)}finally{R&&S.signal.removeEventListener("abort",R)}return i&&!i.dispatchConditionRejection&&o.match(E)&&E.meta.condition||d(E),E})();return Object.assign(q,{abort:$,requestId:b,arg:l,unwrap(){return q.then(hf)}})}}return Object.assign(a,{pending:n,rejected:o,fulfilled:s,settled:af(o,s),typePrefix:e})}return t.withTypes=()=>t,t})();function hf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function ff(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var yc=Symbol.for("rtk-slice-createasyncthunk"),Dg={[yc]:pf};function mf(t,e){return`${t}/${e}`}function gf({creators:t}={}){let e=t?.asyncThunk?.[yc];return function(i){let{name:s,reducerPath:n=s}=i;if(!s)throw new Error(Pt(11));typeof process<"u";let o=(typeof i.reducers=="function"?i.reducers(bf()):i.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(E,A){let K=typeof E=="string"?E:E.type;if(!K)throw new Error(Pt(12));if(K in l.sliceCaseReducersByType)throw new Error(Pt(13));return l.sliceCaseReducersByType[K]=A,u},addMatcher(E,A){return l.sliceMatchers.push({matcher:E,reducer:A}),u},exposeAction(E,A){return l.actionCreators[E]=A,u},exposeCaseReducer(E,A){return l.sliceCaseReducersByName[E]=A,u}};a.forEach(E=>{let A=o[E],K={reducerName:E,type:mf(s,E),createNotation:typeof i.reducers=="function"};xf(A)?Ef(K,A,u,e):vf(K,A,u)});function d(){let[E={},A=[],K=void 0]=typeof i.extraReducers=="function"?gc(i.extraReducers):[i.extraReducers],V={...E,...l.sliceCaseReducersByType};return sf(i.initialState,ve=>{for(let Ie in V)ve.addCase(Ie,V[Ie]);for(let Ie of l.sliceMatchers)ve.addMatcher(Ie.matcher,Ie.reducer);for(let Ie of A)ve.addMatcher(Ie.matcher,Ie.reducer);K&&ve.addDefaultCase(K)})}let p=E=>E,h=new Map,b=new WeakMap,S;function R(E,A){return S||(S=d()),S(E,A)}function v(){return S||(S=d()),S.getInitialState()}function $(E,A=!1){function K(ve){let Ie=ve[E];return typeof Ie>"u"&&A&&(Ie=Gn(b,K,v)),Ie}function V(ve=p){return Gn(Gn(h,A,()=>new WeakMap),ve,()=>{let Ie={};for(let[dn,ct]of Object.entries(i.selectors??{}))Ie[dn]=yf(ct,ve,()=>Gn(b,ve,v),A);return Ie})}return{reducerPath:E,getSelectors:V,get selectors(){return V(K)},selectSlice:K}}let q={name:s,reducer:R,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:v,...$(n),injectInto(E,{reducerPath:A,...K}={}){let V=A??n;return E.inject({reducerPath:V,reducer:R},K),{...q,...$(V,!0)}}};return q}}function yf(t,e,r,i){function s(n,...o){let a=e(n);return typeof a>"u"&&i&&(a=r()),t(a,...o)}return s.unwrapped=t,s}var bc=gf();function bf(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function vf({type:t,reducerName:e,createNotation:r},i,s){let n,o;if("reducer"in i){if(r&&!Sf(i))throw new Error(Pt(17));n=i.reducer,o=i.prepare}else n=i;s.addCase(t,n).exposeCaseReducer(e,n).exposeAction(e,o?sr(t,o):sr(t))}function xf(t){return t._reducerDefinitionType==="asyncThunk"}function Sf(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Ef({type:t,reducerName:e},r,i,s){if(!s)throw new Error(Pt(18));let{payloadCreator:n,fulfilled:o,pending:a,rejected:l,settled:u,options:d}=r,p=s(t,n,d);i.exposeAction(e,p),o&&i.addCase(p.fulfilled,o),a&&i.addCase(p.pending,a),l&&i.addCase(p.rejected,l),u&&i.addMatcher(p.settled,u),i.exposeCaseReducer(e,{fulfilled:o||Qn,pending:a||Qn,rejected:l||Qn,settled:u||Qn})}function Qn(){}var vc="listener",xc="completed",Sc="cancelled",Ig=`task-${Sc}`,Pg=`task-${xc}`,Mg=`${vc}-${Sc}`,Ng=`${vc}-${xc}`;var{assign:Ec}=Object;var So="listenerMiddleware";var Af=Ec(sr(`${So}/add`),{withTypes:()=>Af}),Fg=sr(`${So}/removeAll`),Cf=Ec(sr(`${So}/remove`),{withTypes:()=>Cf});function Pt(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var wf=An(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,s){this.eventBus.addEventListener(r,i,s)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,s){this.eventBus.removeEventListener(r,i,s)}}}),Yn=class extends wf(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ac=class t extends Yn{static get(e){var r;let i=typeof e=="string"?e:e.name,s=typeof e=="string"?void 0:e,n=window.ftReduxStores[i];if(Rn(n))return n;if(s==null)return;let o=bc({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),a=mc({reducer:(l,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let d=Fi(o.getInitialState());for(let p of u.keeping)d[p]=(l??d)[p];return d}else if(typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...u.overwrites};return o.reducer(l,u)}});return window.ftReduxStores[s.name]=new t(o,a,s.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Cn,this.injectInto=(n,o)=>this.reduxSlice.injectInto(n,o),this.selectSlice=n=>this.reduxSlice.selectSlice(n);let s=n=>n!=null?JSON.parse(JSON.stringify(n)):n;this.actions=new Proxy(this.reduxSlice.actions,{get:(n,o,a)=>{let l=o,u=n[l];return u?(...d)=>{let p=u(...d.map(s));return this.reduxStore.dispatch(p),p}:d=>{let p=l,h=this.getState()[p];ri(h,d)||this.setState({[p]:s(d)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}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(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}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 Xn=class{static format(e,r,i,s,n){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,s,!!n)):this.getIntlDateTime(e,r,i,s,!!n)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,s,n){let o=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(o),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return n?l:s?`${a} ${l}`:a}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var Zn=c(f()),Of="ft-app-info",or=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};or.eventName="authentication-change";var Ki=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Ki.eventName="ui-locale-changed";var _f={session:(t,e)=>{(0,Zn.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>O.dispatchEvent(new or(e.payload)),0))}},O=Zn.FtReduxStore.get({name:Of,reducers:_f,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 Cc=c(f()),Jn=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},fy=(0,Cc.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(O)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var s,n;return((n=(s=this.metadataDescriptors.find(a=>a.key===i))===null||s===void 0?void 0:s.date)!==null&&n!==void 0?n:!1)?a=>Xn.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Jn([(0,Eo.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Jn([(0,Eo.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Jn([to({store:O.name,selector:r=>{var i,s;return(s=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&s!==void 0?s:[]}})],e.prototype,"metadataDescriptors",void 0),Jn([to({store:O.name})],e.prototype,"uiLocale",void 0),e});var wc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(wc||(wc={}));var Oc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Oc||(Oc={}));var _c;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(_c||(_c={}));var Rc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Rc||(Rc={}));var Tc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Tc||(Tc={}));var kc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(kc||(kc={}));var Lc;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Lc||(Lc={}));var $c;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})($c||($c={}));var Dc;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Dc||(Dc={}));var Ic;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Ic||(Ic={}));var Pc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(Pc||(Pc={}));var Mc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(Mc||(Mc={}));var Nc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Nc||(Nc={}));var Fc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Fc||(Fc={}));var Bc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Bc||(Bc={}));var Uc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Uc||(Uc={}));var zc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(zc||(zc={}));var Ao;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Ao||(Ao={}));var Vc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Vc||(Vc={}));var Hc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Hc||(Hc={}));var Co;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Co||(Co={}));var jc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(jc||(jc={}));var qc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(qc||(qc={}));var Wc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Wc||(Wc={}));var Kc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Kc||(Kc={}));var Gc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Gc||(Gc={}));var wo;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(wo||(wo={}));var Qc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Qc||(Qc={}));var ue;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(ue||(ue={}));var dt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(dt||(dt={}));var Yc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Yc||(Yc={}));var Xc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Xc||(Xc={}));var Zc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Zc||(Zc={}));var Jc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Jc||(Jc={}));var eu;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(eu||(eu={}));var tu;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(tu||(tu={}));var ru;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(ru||(ru={}));var iu;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(iu||(iu={}));var nu;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(nu||(nu={}));var su;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(su||(su={}));var ou;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(ou||(ou={}));var au;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(au||(au={}));var Rf={[ue.PERSONAL_BOOK_SHARE_USER]:[ue.PERSONAL_BOOK_USER],[ue.HTML_EXPORT_USER]:[ue.PERSONAL_BOOK_USER],[ue.PDF_EXPORT_USER]:[ue.PERSONAL_BOOK_USER],[ue.KHUB_ADMIN]:[ue.CONTENT_PUBLISHER],[ue.ADMIN]:[ue.KHUB_ADMIN,ue.USERS_ADMIN,ue.PORTAL_ADMIN,ue.BEHAVIOR_DATA_USER],[ue.GENERATIVE_AI_EXPORT_USER]:[ue.GENERATIVE_AI_USER]};function lu(t,e){return t===e||(Rf[t]??[]).some(r=>lu(r,e))}function es(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>lu(i,e))}function cu(t,...e){return t==null?!1:e.some(r=>es(t,r))}var ss=c(f());var Oo=c(f());var Dr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=O.getState(),s=e??i;if(r&&s&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,s,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let s=O.subscribe(()=>{i=t.get(e),i&&(s(),r(i))})}})}};var ai=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Dr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Dr.await()}};var Qe=class extends ai{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(n,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[l])=>a.localeCompare(l)));let s=this.constructor;s.commonCache=(i=s.commonCache)!==null&&i!==void 0?i:new Oo.CacheRegistry,this.cache=e?s.commonCache:new Oo.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var ts=class extends Qe{async listMySearches(){let{session:e}=O.getState();return es(e,ue.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var rs=class extends Qe{async listMyBookmarks(){let e=O.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var is=class extends Qe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=O.getState().session;return!!e?.sessionAuthenticated}};var ns=class extends Qe{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 e=O.getState().session;return!!e?.sessionAuthenticated}};var Tf="ft-user-assets",kf={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(dt).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:s}=e.payload;Ro(t,r,[..._o(t,r),s]),uu(t,r,1,i),du(t,s)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Ro(t,r,_o(t,r).map(s=>s.id===i.id?i:s)),du(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:s}=e.payload;Ro(t,r,_o(t,r).filter(n=>n.id!==s)),uu(t,r,-1,i)}},pu={[dt.SEARCHES]:"savedSearches",[dt.BOOKMARKS]:"bookmarks",[dt.BOOKS]:void 0,[dt.COLLECTIONS]:void 0},_o=(t,e)=>{var r;let i=pu[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Ro=(t,e,r)=>{let i=pu[e];i&&(t[i]=r)},uu=(t,e,r,i)=>{let s=t.assetCounts.allAsset[e];if(s!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,s+r),e===dt.BOOKMARKS&&i)){let n=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,n+r)}},du=(t,e)=>{let r=t.assetLabels.map(s=>s.title),i=e.labels.filter(s=>!r.includes(s)).map(s=>({title:s}));t.assetLabels.push(...i)},Be=ss.FtReduxStore.get({name:Tf,reducers:kf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(dt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),To=class{constructor(e=new is,r=new ns){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=O.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new rs,this.savedSearchesService=new ts,O.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=O.getState();(0,ss.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Be.actions.clearAssetCount(),Be.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Be.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Be.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Be.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Be.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Be.getState().assetCounts.allAsset[e]!==r.count&&Be.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Be.getState().assetCounts.bookmarkByMap[e]!==r.count&&Be.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Be.getState().assetCounts.bookmarkByMap).length!==0;e===dt.BOOKMARKS&&r&&Be.actions.clearBookmarkCountByMap(),Be.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Be.actions.bookmarks(r)}}},Lf=new To;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Lf);var ko=class{addCommand(e,r=!1){O.commands.add(e,r)}consumeCommand(e){return O.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ko;var pt=c(f());var hu,li=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},$f=Symbol("clearAfterUnitTest"),os=class extends(0,pt.withEventBus)(Qe){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[hu]=()=>{this.defaultMessages={},this.cache=new pt.CacheRegistry,this.listeners={}},this.currentUiLocale=O.getState().uiLocale,O.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=O.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let s={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,pt.deepEqual)(this.defaultMessages[e],s)||(this.defaultMessages[e]=s,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var s;let n=e.toLowerCase(),o=this.resolveContext(n);return new pt.ParametrizedLabelResolver((s=this.defaultMessages[n])!==null&&s!==void 0?s:{},o).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(s){!(s instanceof pt.CanceledPromiseError)&&r&&console.error(s)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var s;return(s=this.listeners[e])===null||s===void 0?void 0:s.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new li({loadedContexts:e})),this.dispatchEvent(new li({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new li({loadedContexts:[e]})),this.dispatchEvent(new li({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,pt.delay)(0).then(()=>i()).catch(()=>null)))}};hu=$f;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends os{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends os{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var ci=window.FluidTopicsI18nService,as=window.FluidTopicsCustomI18nService;var fu=c(f()),Lo=class{highlightHtml(e,r,i){(0,fu.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Lo;var mu=c(f());var $o=class{isDate(e){var r,i,s,n;return(n=(i=((s=(r=O.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&s!==void 0?s:[]).find(a=>a.key===e))===null||i===void 0?void 0:i.date)!==null&&n!==void 0?n:!1}format(e,r){var i,s,n,o;if(e==null)return"";try{return mu.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:O.getState().uiLocale,(s=r?.longFormat)!==null&&s!==void 0?s:!1,(n=r?.withTime)!==null&&n!==void 0?n:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new $o;var gu=c(f());var Kt=class{static get(e,r){var i,s,n,o;let a=O.getState(),{lang:l,region:u}=(o=(s=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||s===void 0?void 0:s.defaultContentLocale)!==null&&o!==void 0?o:{lang:"en",region:"US"};return new gu.SearchPlaceConverter(a.baseUrl,e??20,(n=a.localesConfiguration)===null||n===void 0?void 0:n.allLanguagesAllowed,r??`${l}-${u}`)}};var Do=class{urlToSearchRequest(e){return Kt.get().parse(e)}searchRequestToUrl(e){return Kt.get().serialize(e)}};window.FluidTopicsUrlService=new Do;var Gt=c(f());var Ir=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Ir.eventName="before-location-change";var Pr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Pr.eventName="change";var Io=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},yu=new Io;var ls=class t extends Gt.WithEventBus{static build(){return new t(window.history,yu,()=>window.location,!1)}constructor(e,r,i,s){var n,o;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(o=(n=e.state)===null||n===void 0?void 0:n.index)!==null&&o!==void 0?o:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(s)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},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,Gt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Pr(this.currentItem())),0)}installProxies(){let e=r=>(i,s,[n,o,a])=>{let l=new Ir(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(l);let u=r(),d={...u===this.currentIndex?this.currentState:void 0,...n,index:u,href:l.detail.nextLocation.href};i.apply(s,[d,o,d.href]),this.setCurrentState(d,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.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(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addBeforeLocationChangeListener(e){this.addEventListener(Ir.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Ir.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Pr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Pr.eventName,e)}currentItem(){return(0,Gt.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Gt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Gt.deepCopy)(r.find(i=>e(i)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,Gt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let s=e,n=e+1;for(;this.states.length>n&&!this.isDifferentMajorState(n,i);)this.hasState(n)&&(s=n),n++;return s}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let s=r??this.currentState.majorStateId,n=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return n==null||n!=s}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=ls.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)});var bu=c(x());var vu=bu.css`
271
+ `;var Su=c(x()),Ue=c(H()),Fr=c(f());var Mr=c(f());function xu(t,e){let{authenticationRequired:r,session:i}=O.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var cs=class extends ai{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Po=class t extends Mr.FtStateManager{static build(e){return new t(O,e)}constructor(e,r){super(),this.store=e,this.cache=new Mr.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new cs,this.cleanSessionDebouncer=new Mr.Debouncer,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new Mr.Debouncer(500),this.apiProvider=r??(()=>Dr.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(or.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(or.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 e=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(e)}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 e;let r=await this.cache.get("availableContentLocales",()=>xu(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}setStickyFilters(e){this.store.actions.stickyFilters(e)}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Ki(i)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setNoCustomCode(e){this.store.actions.noCustomCode(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}userHasAnyRole(...e){return cu(O.getState().session,...e)}},Mo=Po.build();var Nr=class extends Event{constructor(e,r,i,s){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=s??!1}};var Gi=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:i}=r;for(let{elementRef:s,callbackRef:n}of i){let o=s.deref(),a=n.deref();o===void 0||a===void 0||o.dispatchEvent(new Nr(e.context,o,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,s=this.pendingContextRequests.get(e.context);s===void 0&&this.pendingContextRequests.set(e.context,s={callbacks:new WeakMap,requests:[]});let n=s.callbacks.get(r);n===void 0&&s.callbacks.set(r,n=new WeakSet),n.has(i)||(n.add(i),s.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var Ee=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},se=class extends Fr.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=Mo,this.contextRoot=new Gi}render(){return Su.html`
272
272
  <slot></slot>
273
- `}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>ci.addContext(i)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};ne.elementDefinitions={};ne.styles=bu;Ae([(0,Be.property)()],ne.prototype,"baseUrl",void 0);Ae([(0,Be.property)()],ne.prototype,"tenantId",void 0);Ae([(0,Be.property)()],ne.prototype,"apiIntegrationIdentifier",void 0);Ae([(0,Be.property)()],ne.prototype,"apiIntegrationAppVersion",void 0);Ae([(0,Be.property)()],ne.prototype,"uiLocale",void 0);Ae([(0,Br.jsonProperty)(null)],ne.prototype,"availableUiLocales",void 0);Ae([(0,Br.jsonProperty)(null)],ne.prototype,"metadataConfiguration",void 0);Ae([(0,Be.property)({type:Boolean})],ne.prototype,"editorMode",void 0);Ae([(0,Be.property)({type:Boolean})],ne.prototype,"noCustom",void 0);Ae([(0,Be.property)({type:Boolean})],ne.prototype,"openExternalDocumentInNewTab",void 0);Ae([(0,Be.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ne.prototype,"noCustomComponent",void 0);Ae([(0,Be.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ne.prototype,"noCustomCode",void 0);Ae([(0,Be.property)({type:Boolean})],ne.prototype,"withManualResources",void 0);Ae([(0,Be.property)({type:Boolean})],ne.prototype,"navigatorOnline",void 0);Ae([(0,Be.property)({type:Boolean})],ne.prototype,"forcedOffline",void 0);Ae([(0,Be.property)({type:Boolean})],ne.prototype,"authenticationRequired",void 0);Ae([(0,Br.jsonProperty)([])],ne.prototype,"messageContexts",void 0);Ae([(0,Br.jsonProperty)(void 0)],ne.prototype,"session",void 0);var Eu=c(f());var Su={"ft-app-context":ne};(0,Eu.customElements)(Su);var Au=c(V());var Io=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,i]=e.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},ui=new Io;var If=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Yi=Symbol("i18nAttributes"),Cu=Symbol("i18nListAttributes"),wu=Symbol("i18nProperties"),ln=Symbol("i18nContexts"),Qi=Symbol("i18nUnsubs"),pi=(0,di.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?nn:ci}i18n(s){let{context:o,key:a,message:l}=s,{custom:u,args:d,argsProvider:p}=s;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,u);let h=d??(p?p(this):[]);return this.getI18nService(u).resolveMessage(o,a,...h)}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(ui.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 u;return((u=l?.context)===null||u===void 0?void 0:u.toLowerCase())===s}),this.updateI18nProperties(o=>o.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var o,a;let l=this,u=(d,p,h)=>h?.context&&h.key&&s(d,p,h)?{...h,message:this.i18n({context:h.context,key:h.key,custom:h.custom,...d})}:h;(o=this[Yi])===null||o===void 0||o.forEach((d,p)=>l[p]=u(d,p,l[p])),(a=this[Cu])===null||a===void 0||a.forEach((d,p)=>{var h;return l[p]=(h=l[p])===null||h===void 0?void 0:h.map(b=>u(d,p,b))})}updateI18nProperties(s){var o;(o=this[wu])===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[ln].set(l,{isCustomContext:a}),this[Qi].has(l)||this[Qi].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,o)}hasI18nContext(s){return this[ln].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[ln].forEach((s,o)=>this.addI18nContext(o,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Qi].forEach(s=>s()),this[Qi].clear()}}return e=ln,r=Qi,If([(0,Au.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),cn=class extends pi(di.FtLitElement){},un=class extends pi(di.FtLitElementRedux){};var Ou=c(f());var Mo=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?ui.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Mf=new Mo;var dn=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:Ou.hasChanged,converter:ui,...e}),r[Yi]=(n=r[Yi])!==null&&n!==void 0?n:new Map,r[Yi].set(i,t??{})};var pn=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?nn:ci}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let s=n;return o=>({context:this.name,key:s,custom:this.custom,args:typeof o=="function"?void 0:o,argsProvider:typeof o=="function"?o:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...s)=>this.service.resolveMessage(this.name,n,...s)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var _u=c(v());var Ru=_u.css`
274
- `;var hn=c(v()),fi=c(V()),fn=c(f());var hi=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},ht=class extends un{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(w)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:hn.nothing:hn.html`
273
+ `}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>ci.addContext(i)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};se.elementDefinitions={};se.styles=vu;Ee([(0,Ue.property)()],se.prototype,"baseUrl",void 0);Ee([(0,Ue.property)()],se.prototype,"tenantId",void 0);Ee([(0,Ue.property)()],se.prototype,"apiIntegrationIdentifier",void 0);Ee([(0,Ue.property)()],se.prototype,"apiIntegrationAppVersion",void 0);Ee([(0,Ue.property)()],se.prototype,"uiLocale",void 0);Ee([(0,Fr.jsonProperty)(null)],se.prototype,"availableUiLocales",void 0);Ee([(0,Fr.jsonProperty)(null)],se.prototype,"metadataConfiguration",void 0);Ee([(0,Ue.property)({type:Boolean})],se.prototype,"editorMode",void 0);Ee([(0,Ue.property)({type:Boolean})],se.prototype,"noCustom",void 0);Ee([(0,Ue.property)({type:Boolean})],se.prototype,"openExternalDocumentInNewTab",void 0);Ee([(0,Ue.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],se.prototype,"noCustomComponent",void 0);Ee([(0,Ue.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],se.prototype,"noCustomCode",void 0);Ee([(0,Ue.property)({type:Boolean})],se.prototype,"withManualResources",void 0);Ee([(0,Ue.property)({type:Boolean})],se.prototype,"navigatorOnline",void 0);Ee([(0,Ue.property)({type:Boolean})],se.prototype,"forcedOffline",void 0);Ee([(0,Ue.property)({type:Boolean})],se.prototype,"authenticationRequired",void 0);Ee([(0,Fr.jsonProperty)([])],se.prototype,"messageContexts",void 0);Ee([(0,Fr.jsonProperty)(void 0)],se.prototype,"session",void 0);var Au=c(f());var Eu={"ft-app-context":se};(0,Au.customElements)(Eu);var Cu=c(H());var No=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,i]=e.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},ui=new No;var Pf=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Yi=Symbol("i18nAttributes"),wu=Symbol("i18nListAttributes"),Ou=Symbol("i18nProperties"),us=Symbol("i18nContexts"),Qi=Symbol("i18nUnsubs"),pi=(0,di.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(n){return n??this.useCustomMessageContexts?as:ci}i18n(n){let{context:o,key:a,message:l}=n,{custom:u,args:d,argsProvider:p}=n;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,u);let h=d??(p?p(this):[]);return this.getI18nService(u).resolveMessage(o,a,...h)}return l}async awaitI18n(n){let{context:o,custom:a}=n;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(n)}customI18n(n,o){if(ui.isI18nKey(n)){let[a,l]=n.split(".");return this.i18n({custom:!0,context:a,key:l,...o})||n}return n}firstUpdated(n){super.firstUpdated(n),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(n){super.update(n),this.updateI18nAttributes((o,a,l)=>n.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(n){this.updateI18nAttributes((o,a,l)=>{var u;return((u=l?.context)===null||u===void 0?void 0:u.toLowerCase())===n}),this.updateI18nProperties(o=>o.context.toLowerCase()===n),this.requestUpdate()}updateI18nAttributes(n){var o,a;let l=this,u=(d,p,h)=>h?.context&&h.key&&n(d,p,h)?{...h,message:this.i18n({context:h.context,key:h.key,custom:h.custom,...d})}:h;(o=this[Yi])===null||o===void 0||o.forEach((d,p)=>l[p]=u(d,p,l[p])),(a=this[wu])===null||a===void 0||a.forEach((d,p)=>{var h;return l[p]=(h=l[p])===null||h===void 0?void 0:h.map(b=>u(d,p,b))})}updateI18nProperties(n){var o;(o=this[Ou])===null||o===void 0||o.forEach((a,l)=>{n(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(n,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(n,o,a)}addI18nContext(n,o,a){let l=(typeof n=="string"?n:n.name).toLowerCase();a=typeof n=="string"?a:n.custom,this[us].set(l,{isCustomContext:a}),this[Qi].has(l)||this[Qi].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,o)}hasI18nContext(n){return this[us].has(n.toLowerCase())}connectedCallback(){super.connectedCallback(),this[us].forEach((n,o)=>this.addI18nContext(o,void 0,n.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Qi].forEach(n=>n()),this[Qi].clear()}}return e=us,r=Qi,Pf([(0,Cu.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),ds=class extends pi(di.FtLitElement){},ps=class extends pi(di.FtLitElementRedux){};var _u=c(f());var Fo=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?ui.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Mf=new Fo;var hs=(t,e)=>(r,i)=>{var s;r.constructor.createProperty(i,{type:Object,hasChanged:_u.hasChanged,converter:ui,...e}),r[Yi]=(s=r[Yi])!==null&&s!==void 0?s:new Map,r[Yi].set(i,t??{})};var fs=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?as:ci}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,s)=>{let n=s;return o=>({context:this.name,key:n,custom:this.custom,args:typeof o=="function"?void 0:o,argsProvider:typeof o=="function"?o:void 0})}}),this.messages=new Proxy({},{get:(i,s)=>(...n)=>this.service.resolveMessage(this.name,s,...n)}),this.rawMessages=new Proxy({},{get:(i,s)=>this.service.resolveRawMessage(this.name,s)}),this.keys=new Proxy({},{get:(i,s)=>()=>s}),this.attributes=new Proxy({},{get:(i,s)=>()=>({context:this.name,key:s,message:this.service.resolveRawMessage(this.name,s)})})}};var Ru=c(x());var Tu=Ru.css`
274
+ `;var ms=c(x()),fi=c(H()),gs=c(f());var hi=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},ht=class extends ps{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(O)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:ms.nothing:ms.html`
275
275
  <span class="ft-i18n">
276
276
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
277
277
  </span>
278
- `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};ht.elementDefinitions={};ht.styles=Ru;hi([(0,fn.redux)()],ht.prototype,"editorMode",void 0);hi([(0,fi.property)()],ht.prototype,"context",void 0);hi([(0,fi.property)()],ht.prototype,"key",void 0);hi([(0,fn.jsonProperty)([])],ht.prototype,"args",void 0);hi([(0,fi.property)()],ht.prototype,"defaultMessage",void 0);hi([(0,fi.state)()],ht.prototype,"editorMessage",void 0);var ku=c(f());var Tu={"ft-i18n":ht};(0,ku.customElements)(Tu);var At=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},he=class extends cn{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 ft.Debouncer,this.revealDebouncer=new ft.Debouncer,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)?this.matchesIgnored(e)&&this.hide():this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,r;return Lu.html`
278
+ `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};ht.elementDefinitions={};ht.styles=Tu;hi([(0,gs.redux)()],ht.prototype,"editorMode",void 0);hi([(0,fi.property)()],ht.prototype,"context",void 0);hi([(0,fi.property)()],ht.prototype,"key",void 0);hi([(0,gs.jsonProperty)([])],ht.prototype,"args",void 0);hi([(0,fi.property)()],ht.prototype,"defaultMessage",void 0);hi([(0,fi.state)()],ht.prototype,"editorMessage",void 0);var Lu=c(f());var ku={"ft-i18n":ht};(0,Lu.customElements)(ku);var At=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},de=class extends ds{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 ft.Debouncer,this.revealDebouncer=new ft.Debouncer,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)?this.matchesIgnored(e)&&this.hide():this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,r;return $u.html`
279
279
  <div part="container"
280
280
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
281
281
  <slot part="slot"></slot>
@@ -290,7 +290,7 @@
290
290
  </div>
291
291
  </div>
292
292
  </div>
293
- `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,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(e){var r,i;e.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(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let n=this.text;this.text={message:e},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 e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&_l(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${ft.designSystemVariables.transitionDuration}, left ${ft.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,ft.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};he.elementDefinitions={"ft-typography":W};he.styles=Ja;At([dn()],he.prototype,"text",void 0);At([(0,mt.property)({type:Boolean})],he.prototype,"manual",void 0);At([(0,mt.property)({type:Boolean})],he.prototype,"inline",void 0);At([(0,ft.numberProperty)()],he.prototype,"delay",void 0);At([(0,mt.property)()],he.prototype,"position",void 0);At([(0,ft.jsonProperty)([])],he.prototype,"ignoreMatchingElements",void 0);At([(0,mt.queryAssignedNodes)()],he.prototype,"slotNodes",void 0);At([(0,mt.query)(".ft-tooltip--container")],he.prototype,"container",void 0);At([(0,mt.query)(".ft-tooltip")],he.prototype,"tooltip",void 0);At([(0,mt.query)(".ft-tooltip--content")],he.prototype,"tooltipContent",void 0);At([(0,mt.state)()],he.prototype,"visible",void 0);var Du=c(f());var $u={"ft-tooltip":he};(0,Du.customElements)($u);var Pu=c(v()),Ct=c(f()),Ue={size:Ct.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ct.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Ct.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ct.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Ct.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ct.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Ct.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ct.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Iu=[Pu.css`
293
+ `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,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(e){var r,i;e.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(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let s=this.text;this.text={message:e},await this.show(r),this.text=s,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&Tl(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${ft.designSystemVariables.transitionDuration}, left ${ft.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,ft.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};de.elementDefinitions={"ft-typography":W};de.styles=tl;At([hs()],de.prototype,"text",void 0);At([(0,mt.property)({type:Boolean})],de.prototype,"manual",void 0);At([(0,mt.property)({type:Boolean})],de.prototype,"inline",void 0);At([(0,ft.numberProperty)()],de.prototype,"delay",void 0);At([(0,mt.property)()],de.prototype,"position",void 0);At([(0,ft.jsonProperty)([])],de.prototype,"ignoreMatchingElements",void 0);At([(0,mt.queryAssignedNodes)()],de.prototype,"slotNodes",void 0);At([(0,mt.query)(".ft-tooltip--container")],de.prototype,"container",void 0);At([(0,mt.query)(".ft-tooltip")],de.prototype,"tooltip",void 0);At([(0,mt.query)(".ft-tooltip--content")],de.prototype,"tooltipContent",void 0);At([(0,mt.state)()],de.prototype,"visible",void 0);var Iu=c(f());var Du={"ft-tooltip":de};(0,Iu.customElements)(Du);var Pu=c(x()),Ct=c(f()),ze={size:Ct.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ct.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Ct.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ct.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Ct.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ct.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Ct.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ct.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Mu=[Pu.css`
294
294
  :host, i.ft-icon {
295
295
  display: inline-flex;
296
296
  align-items: center;
@@ -299,14 +299,14 @@
299
299
  }
300
300
 
301
301
  :host {
302
- width: ${Ue.size};
303
- height: ${Ue.size};
302
+ width: ${ze.size};
303
+ height: ${ze.size};
304
304
  }
305
305
 
306
306
  i.ft-icon {
307
307
  width: 100%;
308
308
  height: 100%;
309
- font-size: ${Ue.size};
309
+ font-size: ${ze.size};
310
310
  line-height: 1;
311
311
  font-weight: normal;
312
312
  text-transform: none;
@@ -317,33 +317,33 @@
317
317
  text-rendering: auto;
318
318
  -webkit-font-smoothing: antialiased;
319
319
  -moz-osx-font-smoothing: grayscale;
320
- vertical-align: ${Ue.verticalAlign};
320
+ vertical-align: ${ze.verticalAlign};
321
321
  }
322
322
 
323
323
  i.ft-icon.ft-icon--fluid-topics {
324
- font-family: ${Ue.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
324
+ font-family: ${ze.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
325
325
 
326
326
  /* Ugly fix because font is broken */
327
- font-size: calc(0.75 * ${Ue.size});
328
- line-height: ${Ue.size};
327
+ font-size: calc(0.75 * ${ze.size});
328
+ line-height: ${ze.size};
329
329
  position: relative;
330
330
  top: -4%;
331
331
  justify-content: center;
332
332
  }
333
333
 
334
334
  .ft-icon--file-format {
335
- font-family: ${Ue.fileFormatFontFamily}, ft-mime, sans-serif;
335
+ font-family: ${ze.fileFormatFontFamily}, ft-mime, sans-serif;
336
336
  }
337
337
 
338
338
  .ft-icon--material {
339
- font-family: ${Ue.materialFontFamily}, "Material Icons", sans-serif;
339
+ font-family: ${ze.materialFontFamily}, "Material Icons", sans-serif;
340
340
  }
341
- `,Ct.noTextSelect];var ze;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(ze||(ze={}));var Xi=c(v()),ar=c(V()),Fu=c(f()),Bu=c(Nu());var be;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CIRCLE_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;",t.FILE_CODE="&#xe9b8;",t.BOX_CODE="&#xe9b9;",t.TOPICS_SOLID="&#xe9ba;",t.PHOTO_FILM="&#xe9bb;",t.HYPHEN_SOLID="&#xe9bc;",t.CROSSHAIRS="&#xe9bd;",t.PERSON_CHALKBOARD="&#xe9be;",t.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",t.BOOK_OPEN_COVER="&#xe9c0;",t.LIGHTBULB="&#xe9c1;",t.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",t.CHART_LINE_USER="&#xe9c3;",t.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;"})(be||(be={}));var g;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(g||(g={}));var No=new Map([...["abw"].map(t=>[t,g.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(t=>[t,g.AUDIO]),...["avi"].map(t=>[t,g.AVI]),...["chm","xhs"].map(t=>[t,g.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(t=>[t,g.CODE]),...["csv"].map(t=>[t,g.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,g.DITA]),...["epub"].map(t=>[t,g.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,g.EXCEL]),...["flac"].map(t=>[t,g.FLAC]),...["gif"].map(t=>[t,g.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,g.GZIP]),...["html","htm","xhtml"].map(t=>[t,g.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(t=>[t,g.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,g.JPEG]),...["json"].map(t=>[t,g.JSON]),...["m4a","m4p"].map(t=>[t,g.M4A]),...["mov","qt"].map(t=>[t,g.MOV]),...["mp3"].map(t=>[t,g.MP3]),...["mp4","m4v"].map(t=>[t,g.MP4]),...["ogg","oga"].map(t=>[t,g.OGG]),...["pdf","ps"].map(t=>[t,g.PDF]),...["png"].map(t=>[t,g.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,g.POWERPOINT]),...["rar"].map(t=>[t,g.RAR]),...["stp"].map(t=>[t,g.STP]),...["txt","rtf","md","mdown"].map(t=>[t,g.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(t=>[t,g.VIDEO]),...["wav"].map(t=>[t,g.WAV]),...["wma"].map(t=>[t,g.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,g.WORD]),...["xml","xsl","rdf"].map(t=>[t,g.XML]),...["yaml","yml","x-yaml"].map(t=>[t,g.YAML]),...["zip"].map(t=>[t,g.ZIP])]),Nf=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function mn(t,e){var r,i,n,s;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[o,a]=(((r=Nf.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(s=(n=(i=No.get(a))!==null&&i!==void 0?i:No.get(e))!==null&&n!==void 0?n:No.get(o))!==null&&s!==void 0?s:g.UNKNOWN}var zx={[g.ABW]:"#91ABC6",[g.AUDIO]:"#1795E3",[g.AVI]:"#E63324",[g.CHM]:"#71C3EB",[g.CODE]:"#71C3EB",[g.CSV]:"#1F7345",[g.DITA]:"#71C3EB",[g.EPUB]:"#85B926",[g.EXCEL]:"#1F7345",[g.FLAC]:"#1795E3",[g.GIF]:"#59B031",[g.GZIP]:"#F8AB36",[g.HTML]:"#71C3EB",[g.IMAGE]:"#59B031",[g.JPEG]:"#59B031",[g.JSON]:"#71C3EB",[g.M4A]:"#1795E3",[g.MOV]:"#E63324",[g.MP3]:"#1795E3",[g.MP4]:"#E63324",[g.OGG]:"#1795E3",[g.PDF]:"#E44948",[g.PNG]:"#59B031",[g.POWERPOINT]:"#B54A2B",[g.RAR]:"#F8AB36",[g.STP]:"#3764B1",[g.TEXT]:"#3162AB",[g.UNKNOWN]:"#999999",[g.VIDEO]:"#E63324",[g.WAV]:"#1795E3",[g.WMA]:"#1795E3",[g.WORD]:"#3162AB",[g.XML]:"#71C3EB",[g.YAML]:"#71C3EB",[g.ZIP]:"#F8AB36"};var Zi=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},ee=class extends Fu.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Xi.nothing}render(){let e=this.variant&&Object.values(ze).includes(this.variant)?this.variant:ze.fluid_topics,r=e!==ze.material||!!this.value;return Xi.html`
341
+ `,Ct.noTextSelect];var Ve;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ve||(Ve={}));var Xi=c(x()),ar=c(H()),Bu=c(f()),Uu=c(Fu());var ge;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CIRCLE_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;",t.FILE_CODE="&#xe9b8;",t.BOX_CODE="&#xe9b9;",t.TOPICS_SOLID="&#xe9ba;",t.PHOTO_FILM="&#xe9bb;",t.HYPHEN_SOLID="&#xe9bc;",t.CROSSHAIRS="&#xe9bd;",t.PERSON_CHALKBOARD="&#xe9be;",t.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",t.BOOK_OPEN_COVER="&#xe9c0;",t.LIGHTBULB="&#xe9c1;",t.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",t.CHART_LINE_USER="&#xe9c3;",t.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;"})(ge||(ge={}));var g;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(g||(g={}));var Bo=new Map([...["abw"].map(t=>[t,g.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(t=>[t,g.AUDIO]),...["avi"].map(t=>[t,g.AVI]),...["chm","xhs"].map(t=>[t,g.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(t=>[t,g.CODE]),...["csv"].map(t=>[t,g.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,g.DITA]),...["epub"].map(t=>[t,g.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,g.EXCEL]),...["flac"].map(t=>[t,g.FLAC]),...["gif"].map(t=>[t,g.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,g.GZIP]),...["html","htm","xhtml"].map(t=>[t,g.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(t=>[t,g.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,g.JPEG]),...["json"].map(t=>[t,g.JSON]),...["m4a","m4p"].map(t=>[t,g.M4A]),...["mov","qt"].map(t=>[t,g.MOV]),...["mp3"].map(t=>[t,g.MP3]),...["mp4","m4v"].map(t=>[t,g.MP4]),...["ogg","oga"].map(t=>[t,g.OGG]),...["pdf","ps"].map(t=>[t,g.PDF]),...["png"].map(t=>[t,g.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,g.POWERPOINT]),...["rar"].map(t=>[t,g.RAR]),...["stp"].map(t=>[t,g.STP]),...["txt","rtf","md","mdown"].map(t=>[t,g.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(t=>[t,g.VIDEO]),...["wav"].map(t=>[t,g.WAV]),...["wma"].map(t=>[t,g.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,g.WORD]),...["xml","xsl","rdf"].map(t=>[t,g.XML]),...["yaml","yml","x-yaml"].map(t=>[t,g.YAML]),...["zip"].map(t=>[t,g.ZIP])]),Nf=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function ys(t,e){var r,i,s,n;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[o,a]=(((r=Nf.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(n=(s=(i=Bo.get(a))!==null&&i!==void 0?i:Bo.get(e))!==null&&s!==void 0?s:Bo.get(o))!==null&&n!==void 0?n:g.UNKNOWN}var Ux={[g.ABW]:"#91ABC6",[g.AUDIO]:"#1795E3",[g.AVI]:"#E63324",[g.CHM]:"#71C3EB",[g.CODE]:"#71C3EB",[g.CSV]:"#1F7345",[g.DITA]:"#71C3EB",[g.EPUB]:"#85B926",[g.EXCEL]:"#1F7345",[g.FLAC]:"#1795E3",[g.GIF]:"#59B031",[g.GZIP]:"#F8AB36",[g.HTML]:"#71C3EB",[g.IMAGE]:"#59B031",[g.JPEG]:"#59B031",[g.JSON]:"#71C3EB",[g.M4A]:"#1795E3",[g.MOV]:"#E63324",[g.MP3]:"#1795E3",[g.MP4]:"#E63324",[g.OGG]:"#1795E3",[g.PDF]:"#E44948",[g.PNG]:"#59B031",[g.POWERPOINT]:"#B54A2B",[g.RAR]:"#F8AB36",[g.STP]:"#3764B1",[g.TEXT]:"#3162AB",[g.UNKNOWN]:"#999999",[g.VIDEO]:"#E63324",[g.WAV]:"#1795E3",[g.WMA]:"#1795E3",[g.WORD]:"#3162AB",[g.XML]:"#71C3EB",[g.YAML]:"#71C3EB",[g.ZIP]:"#F8AB36"};var Zi=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},ee=class extends Bu.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Xi.nothing}render(){let e=this.variant&&Object.values(Ve).includes(this.variant)?this.variant:Ve.fluid_topics,r=e!==Ve.material||!!this.value;return Xi.html`
342
342
  <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
343
- ${(0,Bu.unsafeHTML)(this.resolvedIcon)}
343
+ ${(0,Uu.unsafeHTML)(this.resolvedIcon)}
344
344
  <slot ?hidden=${r}></slot>
345
345
  </i>
346
- `}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.getTextContent();switch(this.variant){case ze.file_format:this.resolvedIcon=(e=g[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case ze.material:this.resolvedIcon=this.value||Xi.nothing;break;default:this.resolvedIcon=(r=be[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};ee.elementDefinitions={};ee.styles=Iu;Zi([(0,ar.property)()],ee.prototype,"variant",void 0);Zi([(0,ar.property)()],ee.prototype,"value",void 0);Zi([(0,ar.property)({reflect:!0,attribute:"aria-hidden"})],ee.prototype,"ariaHidden",void 0);Zi([(0,ar.state)()],ee.prototype,"resolvedIcon",void 0);Zi([(0,ar.query)("slot")],ee.prototype,"slottedContent",void 0);var zu=c(f());var Uu={"ft-icon":ee};(0,zu.customElements)(Uu);var Vu=c(v()),Ji=c(f()),Ur={color:Ji.FtCssVariableFactory.extend("--ft-loader-color","",Ji.designSystemVariables.colorPrimary),size:Ji.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Hu=Vu.css`
346
+ `}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.getTextContent();switch(this.variant){case Ve.file_format:this.resolvedIcon=(e=g[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Ve.material:this.resolvedIcon=this.value||Xi.nothing;break;default:this.resolvedIcon=(r=ge[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};ee.elementDefinitions={};ee.styles=Mu;Zi([(0,ar.property)()],ee.prototype,"variant",void 0);Zi([(0,ar.property)()],ee.prototype,"value",void 0);Zi([(0,ar.property)({reflect:!0,attribute:"aria-hidden"})],ee.prototype,"ariaHidden",void 0);Zi([(0,ar.state)()],ee.prototype,"resolvedIcon",void 0);Zi([(0,ar.query)("slot")],ee.prototype,"slottedContent",void 0);var Vu=c(f());var zu={"ft-icon":ee};(0,Vu.customElements)(zu);var Hu=c(x()),Ji=c(f()),Br={color:Ji.FtCssVariableFactory.extend("--ft-loader-color","",Ji.designSystemVariables.colorPrimary),size:Ji.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},ju=Hu.css`
347
347
  :host {
348
348
  line-height: 0;
349
349
  }
@@ -352,8 +352,8 @@
352
352
  display: inline-block;
353
353
  position: relative;
354
354
 
355
- width: ${Ur.size};
356
- height: ${Ur.size};
355
+ width: ${Br.size};
356
+ height: ${Br.size};
357
357
  }
358
358
 
359
359
  .ft-loader div {
@@ -362,7 +362,7 @@
362
362
  width: 25%;
363
363
  height: 25%;
364
364
  border-radius: 50%;
365
- background: ${Ur.color};
365
+ background: ${Br.color};
366
366
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
367
367
  }
368
368
 
@@ -409,17 +409,17 @@
409
409
  transform: translate(0, 0);
410
410
  }
411
411
  100% {
412
- transform: translate(calc(0.35 * ${Ur.size}), 0);
412
+ transform: translate(calc(0.35 * ${Br.size}), 0);
413
413
  }
414
414
  }
415
- `;var ju=c(v()),qu=c(f());var zr=class extends qu.FtLitElement{render(){return ju.html`
415
+ `;var qu=c(x()),Wu=c(f());var Ur=class extends Wu.FtLitElement{render(){return qu.html`
416
416
  <div class="ft-loader">
417
417
  <div></div>
418
418
  <div></div>
419
419
  <div></div>
420
420
  <div></div>
421
421
  </div>
422
- `}};zr.styles=Hu;var Ku=c(f());var Wu={"ft-loader":zr};(0,Ku.customElements)(Wu);var cr=c(v()),gn=c(Je()),K=c(V());var lr=t=>t??ge;var Yu=c(v()),$=c(f());var Gu=$.FtCssVariableFactory.extend("--ft-button-color","",$.designSystemVariables.colorPrimary),k={backgroundColor:$.FtCssVariableFactory.extend("--ft-button-background-color","",$.designSystemVariables.colorSurface),borderRadius:$.FtCssVariableFactory.extend("--ft-button-border-radius","",$.designSystemVariables.borderRadiusL),color:Gu,fontSize:$.FtCssVariableFactory.extend("--ft-button-font-size","",vt.fontSize),iconSize:$.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:$.FtCssVariableFactory.extend("--ft-button-ripple-color","",Gu),verticalPadding:$.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:$.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:$.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:$.FtCssVariableFactory.external($.designSystemVariables.colorOpacityDisabled,"Design system")},Qu=$.FtCssVariableFactory.extend("--ft-button-primary-color","",$.FtCssVariableFactory.extend("--ft-button-color","",$.designSystemVariables.colorOnPrimary)),Fo={backgroundColor:$.FtCssVariableFactory.extend("--ft-button-primary-background-color","",$.FtCssVariableFactory.extend("--ft-button-background-color","",$.designSystemVariables.colorPrimary)),color:Qu,rippleColor:$.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Qu)},Pt={borderRadius:$.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",$.FtCssVariableFactory.extend("--ft-button-border-radius","",$.designSystemVariables.borderRadiusM)),verticalPadding:$.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:$.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:$.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Xu=Yu.css`
422
+ `}};Ur.styles=ju;var Gu=c(f());var Ku={"ft-loader":Ur};(0,Gu.customElements)(Ku);var cr=c(x()),vs=c(Je()),G=c(H());var lr=t=>t??fe;var bs=c(x()),k=c(f());var Qu=k.FtCssVariableFactory.extend("--ft-button-color","",k.designSystemVariables.colorPrimary),T={backgroundColor:k.FtCssVariableFactory.extend("--ft-button-background-color","",k.designSystemVariables.colorSurface),borderRadius:k.FtCssVariableFactory.extend("--ft-button-border-radius","",k.designSystemVariables.borderRadiusL),color:Qu,fontSize:k.FtCssVariableFactory.extend("--ft-button-font-size","",vt.fontSize),iconSize:k.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:k.FtCssVariableFactory.extend("--ft-button-ripple-color","",Qu),verticalPadding:k.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:k.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:k.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:k.FtCssVariableFactory.external(k.designSystemVariables.colorOpacityDisabled,"Design system")},Yu=k.FtCssVariableFactory.extend("--ft-button-primary-color","",k.FtCssVariableFactory.extend("--ft-button-color","",k.designSystemVariables.colorOnPrimary)),Uo={backgroundColor:k.FtCssVariableFactory.extend("--ft-button-primary-background-color","",k.FtCssVariableFactory.extend("--ft-button-background-color","",k.designSystemVariables.colorPrimary)),color:Yu,rippleColor:k.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Yu)},wt={borderRadius:k.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",k.FtCssVariableFactory.extend("--ft-button-border-radius","",k.designSystemVariables.borderRadiusM)),verticalPadding:k.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:k.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:k.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Xu=bs.css`
423
423
  :host {
424
424
  display: inline-block;
425
425
  max-width: 100%;
@@ -428,33 +428,9 @@
428
428
 
429
429
  .ft-button {
430
430
  box-shadow: 0px 0px 0px transparent;
431
- border: 0px solid transparent;
432
431
  text-shadow: 0px 0px 0px transparent;
433
- font-size: ${k.fontSize};
432
+ font-size: ${T.fontSize};
434
433
  text-decoration: none;
435
- }
436
-
437
- .ft-button:hover {
438
- box-shadow: 0px 0px 0px transparent;
439
- border: 0px solid transparent;
440
- text-shadow: 0px 0px 0px transparent;
441
- }
442
-
443
- .ft-button:active {
444
- outline: none;
445
- border: none;
446
- }
447
-
448
- .ft-button:focus {
449
- outline: none;
450
- }
451
-
452
- .ft-button:focus-visible {
453
- outline: 2px solid ${$.designSystemVariables.colorPrimary};
454
- outline-offset: 2px;
455
- }
456
-
457
- .ft-button {
458
434
  position: relative;
459
435
  display: flex;
460
436
  justify-content: center;
@@ -464,99 +440,128 @@
464
440
  border: none;
465
441
  pointer-events: auto;
466
442
 
467
- --button-internal-line-height: max(calc(${k.fontSize} + 2px), ${k.iconSize});
468
- --button-internal-color: ${k.color};
469
- ${(0,$.setVariable)(Ue.size,k.iconSize)};
470
- ${(0,$.setVariable)(q.color,k.rippleColor)};
471
- ${(0,$.setVariable)(q.borderRadius,k.borderRadius)};
443
+ --button-internal-line-height: max(calc(${T.fontSize} + 2px), ${T.iconSize});
444
+ --button-internal-color: ${T.color};
445
+ ${(0,k.setVariable)(ze.size,T.iconSize)};
446
+ ${(0,k.setVariable)(z.color,T.rippleColor)};
447
+ ${(0,k.setVariable)(z.borderRadius,T.borderRadius)};
472
448
 
473
- border-radius: ${k.borderRadius};
474
- padding: ${k.verticalPadding} ${k.horizontalPadding};
475
- background-color: ${k.backgroundColor};
449
+ border-radius: ${T.borderRadius};
450
+ padding: ${T.verticalPadding} ${T.horizontalPadding};
451
+ background-color: ${T.backgroundColor};
476
452
  color: var(--button-internal-color);
477
- }
478
453
 
479
- .ft-button.ft-button--outlined {
480
- border: 1px solid var(--button-internal-color);
481
- padding: calc(${k.verticalPadding} - 1px) calc(${k.horizontalPadding} - 1px);
482
- }
454
+ .ft-button--label {
455
+ position: relative;
456
+ overflow: hidden;
457
+ white-space: nowrap;
458
+ text-overflow: ellipsis;
459
+ display: block;
460
+ margin: 0 ${T.iconPadding};
461
+ ${(0,k.setVariable)(vt.fontSize,"1em")};
462
+ ${(0,k.setVariable)(vt.lineHeight,"var(--button-internal-line-height)")};
463
+ }
483
464
 
484
- .ft-button.ft-button--dense {
485
- padding: ${Pt.verticalPadding} ${Pt.horizontalPadding};
486
- border-radius: ${Pt.borderRadius};
487
- ${(0,$.setVariable)(q.borderRadius,Pt.borderRadius)};
488
- }
465
+ [part="icon"] {
466
+ flex-shrink: 0;
467
+ position: relative;
468
+ }
489
469
 
490
- .ft-button.ft-button--dense.ft-button--outlined {
491
- padding: calc(${Pt.verticalPadding} - 1px) calc(${Pt.horizontalPadding} - 1px);
492
- }
470
+ &:hover {
471
+ box-shadow: 0px 0px 0px transparent;
472
+ border: 0px solid transparent;
473
+ text-shadow: 0px 0px 0px transparent;
493
474
 
494
- .ft-button:not([disabled]):hover {
495
- cursor: pointer;
496
- }
497
475
 
498
- .ft-button--round {
499
- border-radius: calc(var(--button-internal-line-height) / 2 + ${k.verticalPadding});
500
- }
476
+ &:not([disabled]) {
477
+ cursor: pointer;
478
+ }
479
+ }
501
480
 
502
- .ft-button--round.ft-button--dense {
503
- border-radius: calc(var(--button-internal-line-height) / 2 + ${Pt.verticalPadding});
504
- }
481
+ &:active {
482
+ outline: none;
483
+ border: none;
484
+ }
505
485
 
506
- .ft-button[disabled] {
507
- filter: grayscale(1);
508
- opacity: ${k.opacityDisabled};
509
- }
486
+ &:focus {
487
+ outline: none;
488
+ }
510
489
 
511
- .ft-button.ft-button--primary {
512
- background-color: ${Fo.backgroundColor};
513
- --button-internal-color: ${Fo.color};
514
- ${(0,$.setVariable)(q.color,Fo.rippleColor)};
515
- }
490
+ &:focus-visible {
491
+ outline: 2px solid ${k.designSystemVariables.colorPrimary};
492
+ outline-offset: 2px;
493
+ }
516
494
 
517
- .ft-button--label {
518
- position: relative;
519
- overflow: hidden;
520
- white-space: nowrap;
521
- text-overflow: ellipsis;
522
- display: block;
523
- margin: 0 ${k.iconPadding};
524
- ${(0,$.setVariable)(vt.fontSize,"1em")};
525
- ${(0,$.setVariable)(vt.lineHeight,"var(--button-internal-line-height)")};
526
- }
495
+ &[disabled] {
496
+ filter: grayscale(1);
497
+ opacity: ${T.opacityDisabled};
498
+ }
527
499
 
528
- .ft-button--dense .ft-button--label {
529
- margin: 0 ${Pt.iconPadding};
530
- }
500
+ &.ft-button--primary {
501
+ background-color: ${Uo.backgroundColor};
502
+ --button-internal-color: ${Uo.color};
503
+ ${(0,k.setVariable)(z.color,Uo.rippleColor)};
504
+ }
531
505
 
532
- .ft-button--label.ft-button--label-no-text {
533
- margin: 0;
534
- }
506
+ &.ft-button--outlined {
507
+ border: 1px solid var(--button-internal-color);
508
+ padding: calc(${T.verticalPadding} - 1px) calc(${T.horizontalPadding} - 1px);
509
+ }
535
510
 
536
- [part="icon"] {
537
- flex-shrink: 0;
538
- position: relative;
539
- }
511
+ &.ft-button--dense {
512
+ padding: ${wt.verticalPadding} ${wt.horizontalPadding};
513
+ border-radius: ${wt.borderRadius};
514
+ ${(0,k.setVariable)(z.borderRadius,wt.borderRadius)};
540
515
 
541
- .ft-button--label[hidden] + [part="icon"] {
542
- margin: 0 calc(${k.horizontalPadding} * -1);
543
- padding: 0 ${k.verticalPadding};
544
- }
516
+ .ft-button--label {
517
+ margin: 0 ${wt.iconPadding};
518
+ }
519
+ }
545
520
 
546
- .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
547
- margin: 0 calc(${Pt.horizontalPadding} * -1);
548
- padding: 0 ${Pt.verticalPadding};
549
- }
521
+ &.ft-button--dense.ft-button--outlined {
522
+ padding: calc(${wt.verticalPadding} - 1px) calc(${wt.horizontalPadding} - 1px);
523
+ }
550
524
 
551
- .ft-button:not(.ft-button--trailing-icon) [part="label"] {
552
- order: 2;
525
+ &.ft-button--round {
526
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${T.verticalPadding});
527
+ ${(0,k.setVariable)(z.borderRadius,bs.css`calc(var(--button-internal-line-height) / 2 + ${T.verticalPadding})`)};
528
+ }
529
+
530
+ &.ft-button--round.ft-button--dense {
531
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${wt.verticalPadding});
532
+ ${(0,k.setVariable)(z.borderRadius,bs.css`calc(var(--button-internal-line-height) / 2 + ${wt.verticalPadding})`)};
533
+ }
534
+
535
+ &.ft-button--no-text {
536
+ .ft-button--label {
537
+ margin: 0;
538
+ }
539
+
540
+ padding: ${T.verticalPadding};
541
+
542
+ &.ft-button--dense {
543
+ padding: ${wt.verticalPadding};
544
+ }
545
+
546
+ &.ft-button--outlined {
547
+ padding: calc(${T.verticalPadding} - 1px);
548
+ }
549
+
550
+ &.ft-button--outlined.ft-button--dense {
551
+ padding: calc(${wt.verticalPadding} - 1px);
552
+ }
553
+ }
554
+
555
+ &:not(.ft-button--trailing-icon) [part="label"] {
556
+ order: 2;
557
+ }
553
558
  }
554
559
 
555
560
  ft-loader {
556
- ${(0,$.setVariable)(Ur.size,k.iconSize)};
557
- ${(0,$.setVariable)(Ur.color,"var(--button-internal-color)")};
561
+ ${(0,k.setVariable)(Br.size,T.iconSize)};
562
+ ${(0,k.setVariable)(Br.color,"var(--button-internal-color)")};
558
563
  }
559
- `;var te=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},A=class t extends(0,It.toFtFormComponent)(It.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",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let n={"ft-button--label":!0,"ft-safari-ellipsis-fix":It.isSafari,"ft-button--label-no-text":!this.hasTextContent},s=cr.html`
564
+ `;var te=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},C=class t extends(0,Mt.toFtFormComponent)(Mt.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-button--no-text":!this.hasTextContent,"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",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let s={"ft-button--label":!0,"ft-safari-ellipsis-fix":Mt.isSafari},n=cr.html`
560
565
  <ft-ripple part="ripple"
561
566
  ?disabled=${this.isDisabled()}
562
567
  ?activated=${this.activated}
@@ -564,7 +569,7 @@
564
569
  <ft-typography part="label"
565
570
  variant="${ce.button}"
566
571
  element="span"
567
- class="${(0,gn.classMap)(n)}">
572
+ class="${(0,vs.classMap)(s)}">
568
573
  <slot></slot>
569
574
  </ft-typography>
570
575
  ${this.resolveIcon()}
@@ -572,19 +577,19 @@
572
577
  <a href="${o}"
573
578
  target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
574
579
  part="button"
575
- class="${(0,gn.classMap)(this.buttonClasses)}"
580
+ class="${(0,vs.classMap)(this.buttonClasses)}"
576
581
  aria-label="${lr((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
577
582
  ?disabled=${this.isDisabled()}>
578
- ${s}
583
+ ${n}
579
584
  </a>
580
585
  `:cr.html`
581
586
  <button part="button"
582
- class="${(0,gn.classMap)(this.buttonClasses)}"
587
+ class="${(0,vs.classMap)(this.buttonClasses)}"
583
588
  aria-label="${lr((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
584
589
  aria-haspopup="${lr(this.ariaHasPopup)}"
585
590
  aria-pressed="${lr(this.ariaPressed)}"
586
591
  ?disabled=${this.isDisabled()}>
587
- ${s}
592
+ ${n}
588
593
  </button>
589
594
  `)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?cr.html`
590
595
  <ft-tooltip part="tooltip"
@@ -597,11 +602,11 @@
597
602
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
598
603
  `:cr.html`
599
604
  <slot part="icon" name="icon"></slot>
600
- `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};A.elementDefinitions={"ft-ripple":L,"ft-tooltip":he,"ft-icon":ee,"ft-loader":zr,"ft-typography":W};A.styles=[It.safariEllipsisFix,Xu,It.noTextSelect];A.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r instanceof ShadowRoot&&r.host?r.host.hasTextContent=e.boundingClientRect.width>0:A.labelsObserver.unobserve(e.target)}});te([(0,K.property)({type:Boolean})],A.prototype,"primary",void 0);te([(0,K.property)({type:Boolean})],A.prototype,"outlined",void 0);te([(0,K.property)({type:Boolean})],A.prototype,"dense",void 0);te([(0,K.property)({type:Boolean})],A.prototype,"round",void 0);te([(0,K.property)({type:Boolean})],A.prototype,"disabled",void 0);te([(0,K.property)()],A.prototype,"icon",void 0);te([(0,K.property)()],A.prototype,"iconVariant",void 0);te([(0,K.property)({type:Boolean})],A.prototype,"trailingIcon",void 0);te([(0,K.property)()],A.prototype,"label",void 0);te([(0,K.property)()],A.prototype,"type",void 0);te([(0,K.property)()],A.prototype,"href",void 0);te([(0,K.property)()],A.prototype,"target",void 0);te([(0,K.property)({type:Boolean})],A.prototype,"loading",void 0);te([(0,K.property)({attribute:"aria-label"})],A.prototype,"ariaLabel",void 0);te([(0,K.property)()],A.prototype,"ariaHasPopup",void 0);te([(0,K.property)({attribute:"aria-pressed"})],A.prototype,"ariaPressed",void 0);te([(0,K.property)()],A.prototype,"tooltipPosition",void 0);te([(0,K.property)({type:Boolean})],A.prototype,"hideTooltip",void 0);te([(0,K.property)({type:Boolean})],A.prototype,"forceTooltip",void 0);te([(0,K.property)({type:Boolean})],A.prototype,"activated",void 0);te([(0,K.query)(".ft-button")],A.prototype,"button",void 0);te([(0,K.query)(".ft-button--label")],A.prototype,"labelContainer",void 0);te([(0,K.state)()],A.prototype,"hasTextContent",void 0);te([(0,K.query)(".ft-button--label slot")],A.prototype,"slottedContent",void 0);te([(0,K.query)("[part=tooltip]")],A.prototype,"tooltip",void 0);var Ju=c(f());var Zu={"ft-button":A};(0,Ju.customElements)(Zu);var Se={height:G.FtCssVariableFactory.create("--ft-search-input-height","","SIZE","38px"),borderRadius:G.FtCssVariableFactory.extend("--ft-search-input-border-radius","",G.designSystemVariables.borderRadiusS),desktopFiltersHeight:G.FtCssVariableFactory.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:G.FtCssVariableFactory.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:G.FtCssVariableFactory.extend("--ft-search-input-background-color","",G.designSystemVariables.colorSurface),colorOnSurface:G.FtCssVariableFactory.extend("--ft-search-input-color","",G.designSystemVariables.colorOnSurface),colorOnSurfaceMedium:G.FtCssVariableFactory.extend("--ft-search-input-placeholder-color","",G.designSystemVariables.colorOnSurfaceMedium),colorOutline:G.FtCssVariableFactory.extend("--ft-search-input-outline-color","",G.designSystemVariables.colorOutline),elevation02:G.FtCssVariableFactory.extend("--ft-search-input-elevation","",G.designSystemVariables.elevation02),focusOutlineColor:G.FtCssVariableFactory.extend("--ft-search-input-focused-outline-color","",G.designSystemVariables.colorPrimary),buttonColor:G.FtCssVariableFactory.extend("--ft-search-input-button-color","",G.designSystemVariables.colorPrimary),buttonRippleColor:G.FtCssVariableFactory.extend("--ft-search-input-button-ripple-color","",G.designSystemVariables.colorPrimary)},td=ed.css`
605
+ `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};C.elementDefinitions={"ft-ripple":D,"ft-tooltip":de,"ft-icon":ee,"ft-loader":Ur,"ft-typography":W};C.styles=[Mt.safariEllipsisFix,Xu,Mt.noTextSelect];C.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r instanceof ShadowRoot&&r.host?r.host.hasTextContent=e.boundingClientRect.width>0:C.labelsObserver.unobserve(e.target)}});te([(0,G.property)({type:Boolean})],C.prototype,"primary",void 0);te([(0,G.property)({type:Boolean})],C.prototype,"outlined",void 0);te([(0,G.property)({type:Boolean})],C.prototype,"dense",void 0);te([(0,G.property)({type:Boolean})],C.prototype,"round",void 0);te([(0,G.property)({type:Boolean})],C.prototype,"disabled",void 0);te([(0,G.property)()],C.prototype,"icon",void 0);te([(0,G.property)()],C.prototype,"iconVariant",void 0);te([(0,G.property)({type:Boolean})],C.prototype,"trailingIcon",void 0);te([(0,G.property)()],C.prototype,"label",void 0);te([(0,G.property)()],C.prototype,"type",void 0);te([(0,G.property)()],C.prototype,"href",void 0);te([(0,G.property)()],C.prototype,"target",void 0);te([(0,G.property)({type:Boolean})],C.prototype,"loading",void 0);te([(0,G.property)({attribute:"aria-label"})],C.prototype,"ariaLabel",void 0);te([(0,G.property)()],C.prototype,"ariaHasPopup",void 0);te([(0,G.property)({attribute:"aria-pressed"})],C.prototype,"ariaPressed",void 0);te([(0,G.property)()],C.prototype,"tooltipPosition",void 0);te([(0,G.property)({type:Boolean})],C.prototype,"hideTooltip",void 0);te([(0,G.property)({type:Boolean})],C.prototype,"forceTooltip",void 0);te([(0,G.property)({type:Boolean})],C.prototype,"activated",void 0);te([(0,G.query)(".ft-button")],C.prototype,"button",void 0);te([(0,G.query)(".ft-button--label")],C.prototype,"labelContainer",void 0);te([(0,G.state)()],C.prototype,"hasTextContent",void 0);te([(0,G.query)(".ft-button--label slot")],C.prototype,"slottedContent",void 0);te([(0,G.query)("[part=tooltip]")],C.prototype,"tooltip",void 0);var Ju=c(f());var Zu={"ft-button":C};(0,Ju.customElements)(Zu);var xe={height:Q.FtCssVariableFactory.create("--ft-search-input-height","","SIZE","38px"),borderRadius:Q.FtCssVariableFactory.extend("--ft-search-input-border-radius","",Q.designSystemVariables.borderRadiusS),desktopFiltersHeight:Q.FtCssVariableFactory.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:Q.FtCssVariableFactory.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:Q.FtCssVariableFactory.extend("--ft-search-input-background-color","",Q.designSystemVariables.colorSurface),colorOnSurface:Q.FtCssVariableFactory.extend("--ft-search-input-color","",Q.designSystemVariables.colorOnSurface),colorOnSurfaceMedium:Q.FtCssVariableFactory.extend("--ft-search-input-placeholder-color","",Q.designSystemVariables.colorOnSurfaceMedium),colorOutline:Q.FtCssVariableFactory.extend("--ft-search-input-outline-color","",Q.designSystemVariables.colorOutline),elevation02:Q.FtCssVariableFactory.extend("--ft-search-input-elevation","",Q.designSystemVariables.elevation02),focusOutlineColor:Q.FtCssVariableFactory.extend("--ft-search-input-focused-outline-color","",Q.designSystemVariables.colorPrimary),buttonColor:Q.FtCssVariableFactory.extend("--ft-search-input-button-color","",Q.designSystemVariables.colorPrimary),buttonRippleColor:Q.FtCssVariableFactory.extend("--ft-search-input-button-ripple-color","",Q.designSystemVariables.colorPrimary)},td=ed.css`
601
606
  * {
602
607
  box-sizing: border-box;
603
- ${(0,G.setVariable)(k.color,Se.buttonColor)};
604
- ${(0,G.setVariable)(k.rippleColor,Se.buttonRippleColor)};
608
+ ${(0,Q.setVariable)(T.color,xe.buttonColor)};
609
+ ${(0,Q.setVariable)(T.rippleColor,xe.buttonRippleColor)};
605
610
  }
606
611
 
607
612
  .ft-search-input {
@@ -609,11 +614,11 @@
609
614
  display: flex;
610
615
  flex-direction: row;
611
616
  align-items: center;
612
- height: ${Se.height};
617
+ height: ${xe.height};
613
618
 
614
- background: ${Se.colorSurface};
615
- border: 1px solid ${Se.colorOutline};
616
- border-radius: ${Se.borderRadius};
619
+ background: ${xe.colorSurface};
620
+ border: 1px solid ${xe.colorOutline};
621
+ border-radius: ${xe.borderRadius};
617
622
  }
618
623
 
619
624
  .ft-search-input--input-container {
@@ -628,11 +633,11 @@
628
633
  width: 100%;
629
634
  display: grid;
630
635
  padding: 0 8px;
631
- border-radius: ${Se.borderRadius};
636
+ border-radius: ${xe.borderRadius};
632
637
  }
633
638
 
634
639
  .ft-search-input--input-container:focus-within .ft-search-input--input-outline {
635
- outline: 2px solid ${Se.focusOutlineColor};
640
+ outline: 2px solid ${xe.focusOutlineColor};
636
641
  }
637
642
 
638
643
  .ft-search-input--input {
@@ -640,12 +645,12 @@
640
645
  width: 100%;
641
646
  border: none;
642
647
  background-color: transparent;
643
- color: ${Se.colorOnSurface};
648
+ color: ${xe.colorOnSurface};
644
649
  outline: none;
645
650
  }
646
651
 
647
652
  .ft-search-input--input::placeholder {
648
- color: ${Se.colorOnSurfaceMedium};
653
+ color: ${xe.colorOnSurfaceMedium};
649
654
  }
650
655
 
651
656
  .ft-search-input--actions {
@@ -659,7 +664,7 @@
659
664
  .ft-search-input > ft-button,
660
665
  .ft-search-input--actions ft-button {
661
666
  flex-shrink: 0;
662
- ${(0,G.setVariable)(k.backgroundColor,"transparent")};
667
+ ${(0,Q.setVariable)(T.backgroundColor,"transparent")};
663
668
  }
664
669
 
665
670
  .ft-search-input .ft-search-input--launch-search,
@@ -669,9 +674,9 @@
669
674
 
670
675
  .ft-search-input--separator {
671
676
  height: 20px;
672
- border-right: 1px solid ${Se.colorOutline};
677
+ border-right: 1px solid ${xe.colorOutline};
673
678
  }
674
- `;var mi=c(f()),es=c(V());var Bo;(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Bo||(Bo={}));var ur=c(f());var Ff=c(f());var yn=class t extends Event{constructor(){super(t.eventName)}};yn.eventName="search-context-clear-all-filters";var Uo=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Vo=class extends CustomEvent{constructor(e){super("register-ft-search-component",{bubbles:!0,composed:!0,detail:{registrationId:e}})}},rd=Symbol("registerInterval"),zo=Symbol("registerAttempts"),Bf=40,Uf=(0,mi.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(i){var n,s,o;super.willUpdate(i),i.has("neededSearchRequests")&&((n=this.stateManager)===null||n===void 0||n.unregisterComponent(this,(o=i.get("neededSearchRequests"))!==null&&o!==void 0?o:[]),(s=this.stateManager)===null||s===void 0||s.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[zo]=0,this.tryToRegisterToContext(),this[rd]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[zo]>Bf?window.clearInterval(this[rd]):(this[zo]++,this.dispatchEvent(new Vo(this.searchRegistrationId)))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Uo([(0,es.state)()],e.prototype,"stateManager",void 0),Uo([(0,es.state)({hasChanged:mi.hasChanged})],e.prototype,"neededSearchRequests",void 0),Uo([(0,es.property)()],e.prototype,"searchRegistrationId",void 0),e}),bn=class extends Uf(mi.FtLitElementRedux){};var Qt=pn.build("designedSearchInput");var lt=c(V()),jp=c(Je());var Hp=c(f()),Qr=c(v());var Up=c(v());var zp=c(f());var H=c(v()),F=c(V()),cs=c(dr()),Y=c(f());var od=c(v()),Vr=c(V()),vn=c(f());var gt;(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(gt||(gt={}));var sd=c(v());var nd=sd.css`
679
+ `;var mi=c(f()),en=c(H());var zo;(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(zo||(zo={}));var ur=c(f());var Ff=c(f());var xs=class t extends Event{constructor(){super(t.eventName)}};xs.eventName="search-context-clear-all-filters";var Vo=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},jo=class extends CustomEvent{constructor(e){super("register-ft-search-component",{bubbles:!0,composed:!0,detail:{registrationId:e}})}},rd=Symbol("registerInterval"),Ho=Symbol("registerAttempts"),Bf=40,Uf=(0,mi.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(i){var s,n,o;super.willUpdate(i),i.has("neededSearchRequests")&&((s=this.stateManager)===null||s===void 0||s.unregisterComponent(this,(o=i.get("neededSearchRequests"))!==null&&o!==void 0?o:[]),(n=this.stateManager)===null||n===void 0||n.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Ho]=0,this.tryToRegisterToContext(),this[rd]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Ho]>Bf?window.clearInterval(this[rd]):(this[Ho]++,this.dispatchEvent(new jo(this.searchRegistrationId)))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Vo([(0,en.state)()],e.prototype,"stateManager",void 0),Vo([(0,en.state)({hasChanged:mi.hasChanged})],e.prototype,"neededSearchRequests",void 0),Vo([(0,en.property)()],e.prototype,"searchRegistrationId",void 0),e}),Ss=class extends Uf(mi.FtLitElementRedux){};var Qt=fs.build("designedSearchInput");var lt=c(H()),jp=c(Je());var Hp=c(f()),Qr=c(x());var Up=c(x());var zp=c(f());var j=c(x()),F=c(H()),un=c(dr()),X=c(f());var od=c(x()),zr=c(H()),Es=c(f());var gt;(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(gt||(gt={}));var nd=c(x());var sd=nd.css`
675
680
  .ft-size-watcher--pixel {
676
681
  width: 0;
677
682
  height: 0;
@@ -690,11 +695,11 @@
690
695
  .ft-size-watcher--local .ft-size-watcher--watcher {
691
696
  width: 100%;
692
697
  }
693
- `;var ts=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Ho=class extends CustomEvent{constructor(e,r){super("change",{detail:{size:e,category:r}})}},rt=class extends vn.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=gt.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new vn.Debouncer}render(){return od.html`
698
+ `;var tn=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},qo=class extends CustomEvent{constructor(e,r){super("change",{detail:{size:e,category:r}})}},rt=class extends Es.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=gt.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new Es.Debouncer}render(){return od.html`
694
699
  <div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
695
700
  <div class="ft-size-watcher--watcher"></div>
696
701
  </div>
697
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run(()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=gt.S:this.size<976?this.category=gt.M:this.size<1024?this.category=gt.L:this.size<1440?this.category=gt.XL:this.category=gt.XXL,this.dispatchEvent(new Ho(this.size,this.category)))},this.debounceTimeout)}};rt.elementDefinitions={};rt.styles=nd;ts([(0,Vr.property)({type:Number})],rt.prototype,"debounceTimeout",void 0);ts([(0,Vr.property)({type:Boolean})],rt.prototype,"local",void 0);ts([(0,Vr.property)({type:Number,reflect:!0})],rt.prototype,"size",void 0);ts([(0,Vr.property)({type:String,reflect:!0})],rt.prototype,"category",void 0);ts([(0,Vr.query)(".ft-size-watcher--watcher")],rt.prototype,"watcher",void 0);var ld=c(f());var ad={"ft-size-watcher":rt};(0,ld.customElements)(ad);var jo=c(f());function xn(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function cd(t){return xn(t).split("|").pop()}function ud(t){return xn(t).split("|").join(" > ")}function dd(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>dd(r,t.selected)),value:t.value}}function pd(t){return(0,jo.flatDeep)(t.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]}).filter(e=>e.selected).map(e=>e.label)}function qo(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>dd(e,!1))}}function hd(t){return(0,jo.flatDeep)(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var fd=c(v()),Q=c(f());var rs={buttonMoreColor:Q.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",Q.designSystemVariables.colorOnSurface),borderRadiusM:Q.FtCssVariableFactory.external(Q.designSystemVariables.borderRadiusM,"Design system"),colorOutline:Q.FtCssVariableFactory.external(Q.designSystemVariables.colorOutline,"Design system"),colorOnSurface:Q.FtCssVariableFactory.external(Q.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:Q.FtCssVariableFactory.external(Q.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:Q.FtCssVariableFactory.external(Q.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:Q.FtCssVariableFactory.external(Q.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:Q.FtCssVariableFactory.external(Q.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:Q.FtCssVariableFactory.external(ye.fontFamily,"Body2 typography"),fontSize:Q.FtCssVariableFactory.external(ye.fontSize,"Body2 typography"),fontWeight:Q.FtCssVariableFactory.external(ye.fontWeight,"Body2 typography"),letterSpacing:Q.FtCssVariableFactory.external(ye.letterSpacing,"Body2 typography"),lineHeight:Q.FtCssVariableFactory.external(ye.lineHeight,"Body2 typography"),textTransform:Q.FtCssVariableFactory.external(ye.textTransform,"Body2 typography")},md=fd.css`
702
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run(()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=gt.S:this.size<976?this.category=gt.M:this.size<1024?this.category=gt.L:this.size<1440?this.category=gt.XL:this.category=gt.XXL,this.dispatchEvent(new qo(this.size,this.category)))},this.debounceTimeout)}};rt.elementDefinitions={};rt.styles=sd;tn([(0,zr.property)({type:Number})],rt.prototype,"debounceTimeout",void 0);tn([(0,zr.property)({type:Boolean})],rt.prototype,"local",void 0);tn([(0,zr.property)({type:Number,reflect:!0})],rt.prototype,"size",void 0);tn([(0,zr.property)({type:String,reflect:!0})],rt.prototype,"category",void 0);tn([(0,zr.query)(".ft-size-watcher--watcher")],rt.prototype,"watcher",void 0);var ld=c(f());var ad={"ft-size-watcher":rt};(0,ld.customElements)(ad);var Wo=c(f());function As(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function cd(t){return As(t).split("|").pop()}function ud(t){return As(t).split("|").join(" > ")}function dd(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>dd(r,t.selected)),value:t.value}}function pd(t){return(0,Wo.flatDeep)(t.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]}).filter(e=>e.selected).map(e=>e.label)}function Ko(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>dd(e,!1))}}function hd(t){return(0,Wo.flatDeep)(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var fd=c(x()),Y=c(f());var rn={buttonMoreColor:Y.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",Y.designSystemVariables.colorOnSurface),borderRadiusM:Y.FtCssVariableFactory.external(Y.designSystemVariables.borderRadiusM,"Design system"),colorOutline:Y.FtCssVariableFactory.external(Y.designSystemVariables.colorOutline,"Design system"),colorOnSurface:Y.FtCssVariableFactory.external(Y.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:Y.FtCssVariableFactory.external(Y.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:Y.FtCssVariableFactory.external(Y.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:Y.FtCssVariableFactory.external(Y.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:Y.FtCssVariableFactory.external(Y.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:Y.FtCssVariableFactory.external(me.fontFamily,"Body2 typography"),fontSize:Y.FtCssVariableFactory.external(me.fontSize,"Body2 typography"),fontWeight:Y.FtCssVariableFactory.external(me.fontWeight,"Body2 typography"),letterSpacing:Y.FtCssVariableFactory.external(me.letterSpacing,"Body2 typography"),lineHeight:Y.FtCssVariableFactory.external(me.lineHeight,"Body2 typography"),textTransform:Y.FtCssVariableFactory.external(me.textTransform,"Body2 typography")},md=fd.css`
698
703
  .ft-filter-level--container {
699
704
  display: flex;
700
705
  flex-direction: column;
@@ -709,14 +714,14 @@
709
714
  flex-shrink: 0;
710
715
  text-decoration: none;
711
716
  position: relative;
712
- border-radius: ${rs.borderRadiusM};
717
+ border-radius: ${rn.borderRadiusM};
713
718
  overflow: hidden;
714
719
  display: flex;
715
720
  align-items: center;
716
721
  padding: 4px 4px;
717
722
  gap: 4px;
718
723
  cursor: pointer;
719
- color: ${rs.colorOnSurface};
724
+ color: ${rn.colorOnSurface};
720
725
  }
721
726
 
722
727
  .ft-filter-level--go-back:focus {
@@ -745,11 +750,11 @@
745
750
  }
746
751
 
747
752
  ft-button {
748
- ${(0,Q.setVariable)(k.color,rs.colorOnSurface)};
753
+ ${(0,Y.setVariable)(T.color,rn.colorOnSurface)};
749
754
  }
750
755
 
751
756
  ft-button.ft-filter-level--display-more {
752
- ${(0,Q.setVariable)(k.color,rs.buttonMoreColor)};
757
+ ${(0,Y.setVariable)(T.color,rn.buttonMoreColor)};
753
758
  }
754
759
 
755
760
  ft-radio, ft-checkbox {
@@ -763,9 +768,9 @@
763
768
 
764
769
  .ft-filter-level--no-values {
765
770
  margin: 10px 0;
766
- color: ${rs.colorOnSurfaceMedium};
771
+ color: ${rn.colorOnSurfaceMedium};
767
772
  }
768
- `;var jr=c(v()),X=c(V()),fe=c(f());var nt=c(v()),Ee=c(V()),Dd=c(dr()),Xe=c(f());var Sn=c(v()),wt=c(V()),bd=c(f()),vd=c(Je());var _e=c(f()),gd=c(v());var it={textColor:_e.FtCssVariableFactory.extend("--ft-checkbox-text-color","",_e.designSystemVariables.colorOnSurfaceHigh),fontSize:_e.FtCssVariableFactory.extend("--ft-checkbox-font-size","",y.fontSize),activeColor:_e.FtCssVariableFactory.extend("--ft-checkbox-active-color","",_e.designSystemVariables.colorPrimary),checkColor:_e.FtCssVariableFactory.extend("--ft-checkbox-check-color","",_e.designSystemVariables.colorOnPrimary),borderColor:_e.FtCssVariableFactory.extend("--ft-checkbox-border-color","",_e.designSystemVariables.colorOnSurfaceMedium),disabledColor:_e.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",_e.designSystemVariables.colorOnSurfaceDisabled),errorColor:_e.FtCssVariableFactory.extend("--ft-checkbox-error-color","",_e.designSystemVariables.colorError)},yd=gd.css`
773
+ `;var Hr=c(x()),Z=c(H()),pe=c(f());var st=c(x()),Se=c(H()),Dd=c(dr()),Xe=c(f());var Cs=c(x()),Ot=c(H()),bd=c(f()),vd=c(Je());var _e=c(f()),gd=c(x());var it={textColor:_e.FtCssVariableFactory.extend("--ft-checkbox-text-color","",_e.designSystemVariables.colorOnSurfaceHigh),fontSize:_e.FtCssVariableFactory.extend("--ft-checkbox-font-size","",y.fontSize),activeColor:_e.FtCssVariableFactory.extend("--ft-checkbox-active-color","",_e.designSystemVariables.colorPrimary),checkColor:_e.FtCssVariableFactory.extend("--ft-checkbox-check-color","",_e.designSystemVariables.colorOnPrimary),borderColor:_e.FtCssVariableFactory.extend("--ft-checkbox-border-color","",_e.designSystemVariables.colorOnSurfaceMedium),disabledColor:_e.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",_e.designSystemVariables.colorOnSurfaceDisabled),errorColor:_e.FtCssVariableFactory.extend("--ft-checkbox-error-color","",_e.designSystemVariables.colorError)},yd=gd.css`
769
774
  * {
770
775
  box-sizing: border-box;
771
776
  }
@@ -846,7 +851,7 @@
846
851
 
847
852
  .ft-checkbox.ft-checkbox--error {
848
853
  color: ${it.errorColor};
849
- ${(0,_e.setVariable)(q.color,it.errorColor)};
854
+ ${(0,_e.setVariable)(z.color,it.errorColor)};
850
855
 
851
856
  .ft-checkbox--box {
852
857
  border-color: ${it.errorColor};
@@ -858,7 +863,7 @@
858
863
  }
859
864
  }
860
865
  }
861
- `;var Yt=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Wo=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Re=class extends bd.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1}get checkboxClasses(){return{"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.indeterminate?!1:this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled}}renderBoxContainer(){return Sn.html`
866
+ `;var Yt=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Go=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Re=class extends bd.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1}get checkboxClasses(){return{"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.indeterminate?!1:this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled}}renderBoxContainer(){return Cs.html`
862
867
  <div class="ft-checkbox--box-container" part="checkbox-box-container">
863
868
  <ft-ripple part="checkbox-ripple"
864
869
  ?disabled=${this.disabled}
@@ -880,19 +885,19 @@
880
885
  @change=${this.onChange}
881
886
  >
882
887
  </div>
883
- `}render(){return Sn.html`
888
+ `}render(){return Cs.html`
884
889
  <label class="${(0,vd.classMap)(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
885
890
  ${this.renderBoxContainer()}
886
891
  <ft-typography variant="${ce.body2}" part="checkbox-body">
887
892
  <slot @slotchange=${this.onSlotchange}></slot>
888
893
  </ft-typography>
889
894
  </label>
890
- `}renderBoxIcon(){return Sn.html`
895
+ `}renderBoxIcon(){return Cs.html`
891
896
  <svg class="ft-checkbox--checkmark" viewBox="0 0 24 24" part="checkbox-check" aria-hidden="true">
892
897
  <path class="ft-checkbox--checkmark-path" fill="none"
893
898
  d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
894
899
  </svg>
895
- `}onSlotchange(){this.requestUpdate()}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new Wo(this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};Re.elementDefinitions={"ft-ripple":L,"ft-typography":W};Re.styles=yd;Yt([(0,wt.property)()],Re.prototype,"name",void 0);Yt([(0,wt.property)()],Re.prototype,"value",void 0);Yt([(0,wt.property)({type:Boolean,reflect:!0})],Re.prototype,"checked",void 0);Yt([(0,wt.property)({type:Boolean})],Re.prototype,"indeterminate",void 0);Yt([(0,wt.property)({type:Boolean})],Re.prototype,"disabled",void 0);Yt([(0,wt.property)({type:Boolean})],Re.prototype,"error",void 0);Yt([(0,wt.query)(".ft-checkbox")],Re.prototype,"container",void 0);Yt([(0,wt.query)("ft-ripple")],Re.prototype,"ripple",void 0);Yt([(0,wt.query)("input")],Re.prototype,"input",void 0);var Sd=c(f());var xd={"ft-checkbox":Re};(0,Sd.customElements)(xd);var Cd=c(v()),Mt=c(V()),wd=c(f()),Od=c(Je());var Ed=c(v()),Ye=c(f());var pr={textColor:Ye.FtCssVariableFactory.extend("--ft-radio-text-color","",Ye.designSystemVariables.colorOnSurfaceHigh),fontSize:Ye.FtCssVariableFactory.extend("--ft-radio-font-size","",y.fontSize),colorPrimary:Ye.FtCssVariableFactory.external(Ye.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:Ye.FtCssVariableFactory.external(Ye.designSystemVariables.colorOnPrimary,"Design system"),borderColor:Ye.FtCssVariableFactory.extend("--ft-radio-border-color","",Ye.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:Ye.FtCssVariableFactory.external(Ye.designSystemVariables.colorOnSurfaceDisabled,"Design system")},Ad=Ed.css`
900
+ `}onSlotchange(){this.requestUpdate()}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new Go(this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};Re.elementDefinitions={"ft-ripple":D,"ft-typography":W};Re.styles=yd;Yt([(0,Ot.property)()],Re.prototype,"name",void 0);Yt([(0,Ot.property)()],Re.prototype,"value",void 0);Yt([(0,Ot.property)({type:Boolean,reflect:!0})],Re.prototype,"checked",void 0);Yt([(0,Ot.property)({type:Boolean})],Re.prototype,"indeterminate",void 0);Yt([(0,Ot.property)({type:Boolean})],Re.prototype,"disabled",void 0);Yt([(0,Ot.property)({type:Boolean})],Re.prototype,"error",void 0);Yt([(0,Ot.query)(".ft-checkbox")],Re.prototype,"container",void 0);Yt([(0,Ot.query)("ft-ripple")],Re.prototype,"ripple",void 0);Yt([(0,Ot.query)("input")],Re.prototype,"input",void 0);var Sd=c(f());var xd={"ft-checkbox":Re};(0,Sd.customElements)(xd);var Cd=c(x()),Nt=c(H()),wd=c(f()),Od=c(Je());var Ed=c(x()),Ye=c(f());var pr={textColor:Ye.FtCssVariableFactory.extend("--ft-radio-text-color","",Ye.designSystemVariables.colorOnSurfaceHigh),fontSize:Ye.FtCssVariableFactory.extend("--ft-radio-font-size","",y.fontSize),colorPrimary:Ye.FtCssVariableFactory.external(Ye.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:Ye.FtCssVariableFactory.external(Ye.designSystemVariables.colorOnPrimary,"Design system"),borderColor:Ye.FtCssVariableFactory.extend("--ft-radio-border-color","",Ye.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:Ye.FtCssVariableFactory.external(Ye.designSystemVariables.colorOnSurfaceDisabled,"Design system")},Ad=Ed.css`
896
901
  * {
897
902
  box-sizing: border-box;
898
903
  }
@@ -981,7 +986,7 @@
981
986
  .ft-radio ft-typography {
982
987
  padding-right: 2px;
983
988
  }
984
- `;var hr=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},En=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},Ce=class extends wd.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.ariaChecked="false",this.disabled=!1}get radioClasses(){return{"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled}}render(){return Cd.html`
989
+ `;var hr=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},ws=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},Ae=class extends wd.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.ariaChecked="false",this.disabled=!1}get radioClasses(){return{"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled}}render(){return Cd.html`
985
990
  <div class="${(0,Od.classMap)(this.radioClasses)}"
986
991
  @click=${this.onClick}>
987
992
  <div class="ft-radio--box-container">
@@ -1007,7 +1012,7 @@
1007
1012
  </ft-typography>
1008
1013
  </label>
1009
1014
  </div>
1010
- `}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new En(this.value,this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new En(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(e){var r;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};Ce.elementDefinitions={"ft-ripple":L,"ft-typography":W};Ce.styles=Ad;hr([(0,Mt.property)()],Ce.prototype,"name",void 0);hr([(0,Mt.property)()],Ce.prototype,"value",void 0);hr([(0,Mt.property)({type:Boolean,reflect:!0})],Ce.prototype,"checked",void 0);hr([(0,Mt.property)({attribute:"aria-checked",reflect:!0})],Ce.prototype,"ariaChecked",void 0);hr([(0,Mt.property)({type:Boolean})],Ce.prototype,"disabled",void 0);hr([(0,Mt.query)(".ft-radio")],Ce.prototype,"container",void 0);hr([(0,Mt.query)("ft-ripple")],Ce.prototype,"ripple",void 0);hr([(0,Mt.query)("input")],Ce.prototype,"input",void 0);var Td=c(f()),fr=c(V()),kd=c(v());var _d=c(v());var Rd=_d.css`
1015
+ `}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new ws(this.value,this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new ws(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(e){var r;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};Ae.elementDefinitions={"ft-ripple":D,"ft-typography":W};Ae.styles=Ad;hr([(0,Nt.property)()],Ae.prototype,"name",void 0);hr([(0,Nt.property)()],Ae.prototype,"value",void 0);hr([(0,Nt.property)({type:Boolean,reflect:!0})],Ae.prototype,"checked",void 0);hr([(0,Nt.property)({attribute:"aria-checked",reflect:!0})],Ae.prototype,"ariaChecked",void 0);hr([(0,Nt.property)({type:Boolean})],Ae.prototype,"disabled",void 0);hr([(0,Nt.query)(".ft-radio")],Ae.prototype,"container",void 0);hr([(0,Nt.query)("ft-ripple")],Ae.prototype,"ripple",void 0);hr([(0,Nt.query)("input")],Ae.prototype,"input",void 0);var Td=c(f()),fr=c(H()),kd=c(x());var _d=c(x());var Rd=_d.css`
1011
1016
  :host {
1012
1017
  display: block;
1013
1018
  }
@@ -1015,14 +1020,14 @@
1015
1020
  :host(:focus-visible) {
1016
1021
  outline: none;
1017
1022
  }
1018
- `;var is=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},st=class extends Td.FtLitElement{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)}}get radioButtons(){var e,r;return(r=(e=this.assignedElements)===null||e===void 0?void 0:e.flatMap(i=>i.matches("ft-radio,ftds-radio")?[i]:[...i.querySelectorAll("ft-radio,ftds-radio")]))!==null&&r!==void 0?r:[]}render(){return kd.html`
1023
+ `;var nn=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},nt=class extends Td.FtLitElement{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)}}get radioButtons(){var e,r;return(r=(e=this.assignedElements)===null||e===void 0?void 0:e.flatMap(i=>i.matches("ft-radio,ftds-radio")?[i]:[...i.querySelectorAll("ft-radio,ftds-radio")]))!==null&&r!==void 0?r:[]}render(){return kd.html`
1019
1024
  <slot @slotchange=${this.onSlotChange}
1020
1025
  @change=${this.onChange}
1021
1026
  @keydown=${this.onKeyDown}
1022
1027
  ></slot>
1023
- `}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};st.elementDefinitions={};st.styles=Rd;is([(0,fr.property)()],st.prototype,"name",void 0);is([(0,fr.property)({reflect:!0,attribute:"role"})],st.prototype,"role",void 0);is([(0,fr.property)({reflect:!0,attribute:"aria-labelledby"})],st.prototype,"ariaLabelledBy",void 0);is([(0,fr.queryAssignedElements)()],st.prototype,"assignedElements",void 0);is([(0,fr.state)()],st.prototype,"currentSelectedIndex",void 0);var $d=c(f());var Ld={"ft-radio":Ce,"ft-radio-group":st};(0,$d.customElements)(Ld);var Te=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Ko={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},oe=class extends(0,Xe.withAnalytics)(pi((0,Xe.withAriaNotification)(Xe.FtLitElement)),Ko){constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new Xe.Debouncer(500)}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,r;return(r=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(e){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${e}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(e){super.willUpdate(e),(e.has("options")||e.has("hideSelectedOptions")||e.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(r=>!r.selected)),this.filter&&(e=e.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=e}render(){let e=this.filteredOptions.slice(0,this.limit);return nt.html`
1028
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};nt.elementDefinitions={};nt.styles=Rd;nn([(0,fr.property)()],nt.prototype,"name",void 0);nn([(0,fr.property)({reflect:!0,attribute:"role"})],nt.prototype,"role",void 0);nn([(0,fr.property)({reflect:!0,attribute:"aria-labelledby"})],nt.prototype,"ariaLabelledBy",void 0);nn([(0,fr.queryAssignedElements)()],nt.prototype,"assignedElements",void 0);nn([(0,fr.state)()],nt.prototype,"currentSelectedIndex",void 0);var $d=c(f());var Ld={"ft-radio":Ae,"ft-radio-group":nt};(0,$d.customElements)(Ld);var Te=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Qo={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},ae=class extends(0,Xe.withAnalytics)(pi((0,Xe.withAriaNotification)(Xe.FtLitElement)),Qo){constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new Xe.Debouncer(500)}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,r;return(r=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(e){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${e}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(e){super.willUpdate(e),(e.has("options")||e.has("hideSelectedOptions")||e.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(r=>!r.selected)),this.filter&&(e=e.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=e}render(){let e=this.filteredOptions.slice(0,this.limit);return st.html`
1024
1029
  <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
1025
- ${this.parent==null?null:nt.html`
1030
+ ${this.parent==null?null:st.html`
1026
1031
  <div tabindex="0"
1027
1032
  part="controls go-back"
1028
1033
  class="ft-filter-level--go-back"
@@ -1036,15 +1041,15 @@
1036
1041
  <ft-typography variant="${ce.body2}">${this.parent.label}</ft-typography>
1037
1042
  </div>
1038
1043
  `}
1039
- ${this.filteredOptions.length===0&&this.noValuesLabel?nt.html`
1044
+ ${this.filteredOptions.length===0&&this.noValuesLabel?st.html`
1040
1045
  <ft-typography class="ft-filter-level--no-values" element="span" variant="${ce.body2}">
1041
1046
  ${this.noValuesLabel}
1042
1047
  </ft-typography>
1043
- `:nt.nothing}
1044
- ${(0,Dd.repeat)(e,r=>r.value,r=>{var i;return nt.html`
1048
+ `:st.nothing}
1049
+ ${(0,Dd.repeat)(e,r=>r.value,r=>{var i;return st.html`
1045
1050
  <div class="ft-filter-level--option" part="options" tabindex="-1">
1046
1051
  ${this.multivalued?this.buildMultiValuedOption(r):this.buildMonoValuedOption(r)}
1047
- ${this.preventNavigation||r.selected||((i=r.subOptions)!==null&&i!==void 0?i:[]).length===0?nt.nothing:nt.html`
1052
+ ${this.preventNavigation||r.selected||((i=r.subOptions)!==null&&i!==void 0?i:[]).length===0?st.nothing:st.html`
1048
1053
  <ft-button icon="thin_arrow_right"
1049
1054
  part="controls navigate-hierarchy"
1050
1055
  aria-label="Expand node"
@@ -1055,7 +1060,7 @@
1055
1060
  `}
1056
1061
  </div>
1057
1062
  `})}
1058
- ${e.length<this.filteredOptions.length?nt.html`
1063
+ ${e.length<this.filteredOptions.length?st.html`
1059
1064
  <ft-button
1060
1065
  class="ft-filter-level--display-more"
1061
1066
  icon="thin_arrow"
@@ -1064,20 +1069,20 @@
1064
1069
  @click=${()=>{this.emitAnalyticsAction("more-filters-button-pressed",{}),this.displayMore()}}>
1065
1070
  ${this.moreValuesButtonLabel}
1066
1071
  </ft-button>
1067
- `:nt.nothing}
1072
+ `:st.nothing}
1068
1073
  </div>
1069
- `}goBackOnKeyPress(e){(e.key==="Enter"||e.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){var e;let r=(e=this.limit)!==null&&e!==void 0?e:0,i=this.parent!=null;this.displayedPages++,this.elementToFocus={selector:`.ft-filter-level--option:nth-child(${r+(i?2:1)}) [part~="option"]`}}buildMultiValuedOption(e){var r;return nt.html`
1074
+ `}goBackOnKeyPress(e){(e.key==="Enter"||e.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){var e;let r=(e=this.limit)!==null&&e!==void 0?e:0,i=this.parent!=null;this.displayedPages++,this.elementToFocus={selector:`.ft-filter-level--option:nth-child(${r+(i?2:1)}) [part~="option"]`}}buildMultiValuedOption(e){var r;return st.html`
1070
1075
  <ft-checkbox name="${this.filterId}"
1071
1076
  part="multivalued-option option"
1072
1077
  .exportpartsPrefixes=${["multivalued-option","option"]}
1073
1078
  data-value="${e.value}"
1074
1079
  .checked=${e.selected}
1075
1080
  .disabled=${this.disabled}
1076
- .indeterminate=${(0,Xe.flatDeep)((r=e.subOptions)!==null&&r!==void 0?r:[],i=>{var n;return(n=i.subOptions)!==null&&n!==void 0?n:[]}).some(i=>i.selected)}
1081
+ .indeterminate=${(0,Xe.flatDeep)((r=e.subOptions)!==null&&r!==void 0?r:[],i=>{var s;return(s=i.subOptions)!==null&&s!==void 0?s:[]}).some(i=>i.selected)}
1077
1082
  @change=${i=>this.optionsChanged(i,e)}>
1078
1083
  ${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
1079
1084
  </ft-checkbox>
1080
- `}buildMonoValuedOption(e){return nt.html`
1085
+ `}buildMonoValuedOption(e){return st.html`
1081
1086
  <ft-radio name="${this.filterId+Math.round(Math.random()*1e6)}"
1082
1087
  part="monovalued-option option"
1083
1088
  data-value="${e.value}"
@@ -1088,7 +1093,7 @@
1088
1093
  @change=${r=>this.optionsChanged(r,e)}>
1089
1094
  ${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
1090
1095
  </ft-radio>
1091
- `}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};oe.elementDefinitions={"ft-button":A,"ft-ripple":L,"ft-typography":W,"ft-checkbox":Re,"ft-icon":ee,"ft-radio":Ce};oe.styles=md;Te([(0,Ee.property)({type:String})],oe.prototype,"filterId",void 0);Te([(0,Ee.property)({type:Object})],oe.prototype,"parent",void 0);Te([(0,Ee.property)({type:Array,hasChanged:Xe.hasChanged})],oe.prototype,"options",void 0);Te([(0,Ee.property)({type:Boolean})],oe.prototype,"multivalued",void 0);Te([(0,Ee.property)({type:Boolean})],oe.prototype,"disabled",void 0);Te([(0,Ee.property)({type:Boolean})],oe.prototype,"hideSelectedOptions",void 0);Te([(0,Ee.property)({type:Boolean})],oe.prototype,"displayCount",void 0);Te([(0,Ee.property)({type:Boolean})],oe.prototype,"preventNavigation",void 0);Te([(0,Ee.property)({type:String})],oe.prototype,"filter",void 0);Te([(0,Ee.property)({type:String})],oe.prototype,"moreValuesButtonLabel",void 0);Te([(0,Ee.property)({type:String})],oe.prototype,"noValuesLabel",void 0);Te([(0,Ee.property)()],oe.prototype,"filteredOptionsNumberAriaNotification",void 0);Te([(0,Xe.numberProperty)()],oe.prototype,"displayedValuesLimit",void 0);Te([(0,Ee.query)(".ft-filter-level--container")],oe.prototype,"container",void 0);Te([(0,Ee.state)()],oe.prototype,"radios",void 0);Te([(0,Ee.state)()],oe.prototype,"displayedPages",void 0);Te([(0,Ee.state)()],oe.prototype,"filteredOptions",void 0);var Md=c(v()),ot=c(V()),Hr=c(f());var Nd=c(Je());var Pd=c(v()),Ot=c(f());var Ve={buttonsColor:Ot.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",Ot.designSystemVariables.colorPrimary),buttonsZIndex:Ot.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:Ot.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Ot.FtCssVariableFactory.external(Ot.designSystemVariables.colorSurface,"Design system")},Id=Pd.css`
1096
+ `}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};ae.elementDefinitions={"ft-button":C,"ft-ripple":D,"ft-typography":W,"ft-checkbox":Re,"ft-icon":ee,"ft-radio":Ae};ae.styles=md;Te([(0,Se.property)({type:String})],ae.prototype,"filterId",void 0);Te([(0,Se.property)({type:Object})],ae.prototype,"parent",void 0);Te([(0,Se.property)({type:Array,hasChanged:Xe.hasChanged})],ae.prototype,"options",void 0);Te([(0,Se.property)({type:Boolean})],ae.prototype,"multivalued",void 0);Te([(0,Se.property)({type:Boolean})],ae.prototype,"disabled",void 0);Te([(0,Se.property)({type:Boolean})],ae.prototype,"hideSelectedOptions",void 0);Te([(0,Se.property)({type:Boolean})],ae.prototype,"displayCount",void 0);Te([(0,Se.property)({type:Boolean})],ae.prototype,"preventNavigation",void 0);Te([(0,Se.property)({type:String})],ae.prototype,"filter",void 0);Te([(0,Se.property)({type:String})],ae.prototype,"moreValuesButtonLabel",void 0);Te([(0,Se.property)({type:String})],ae.prototype,"noValuesLabel",void 0);Te([(0,Se.property)()],ae.prototype,"filteredOptionsNumberAriaNotification",void 0);Te([(0,Xe.numberProperty)()],ae.prototype,"displayedValuesLimit",void 0);Te([(0,Se.query)(".ft-filter-level--container")],ae.prototype,"container",void 0);Te([(0,Se.state)()],ae.prototype,"radios",void 0);Te([(0,Se.state)()],ae.prototype,"displayedPages",void 0);Te([(0,Se.state)()],ae.prototype,"filteredOptions",void 0);var Md=c(x()),ot=c(H()),Vr=c(f());var Nd=c(Je());var Id=c(x()),_t=c(f());var He={buttonsColor:_t.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",_t.designSystemVariables.colorPrimary),buttonsZIndex:_t.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:_t.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:_t.FtCssVariableFactory.external(_t.designSystemVariables.colorSurface,"Design system")},Pd=Id.css`
1092
1097
  .ft-snap-scroll {
1093
1098
  box-sizing: border-box;
1094
1099
  position: relative;
@@ -1123,7 +1128,7 @@
1123
1128
  flex-wrap: nowrap;
1124
1129
  align-items: flex-start;
1125
1130
  justify-content: flex-start;
1126
- gap: ${Ve.gap};
1131
+ gap: ${He.gap};
1127
1132
  }
1128
1133
 
1129
1134
  .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
@@ -1166,11 +1171,11 @@
1166
1171
  .ft-snap-scroll--next {
1167
1172
  position: absolute;
1168
1173
  display: flex;
1169
- z-index: ${Ve.buttonsZIndex};
1174
+ z-index: ${He.buttonsZIndex};
1170
1175
  opacity: 1;
1171
1176
  transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
1172
- ${(0,Ot.setVariable)(k.backgroundColor,"transparent")};
1173
- ${(0,Ot.setVariable)(k.color,Ve.buttonsColor)};
1177
+ ${(0,_t.setVariable)(T.backgroundColor,"transparent")};
1178
+ ${(0,_t.setVariable)(T.color,He.buttonsColor)};
1174
1179
  }
1175
1180
 
1176
1181
  .ft-snap-scroll--previous[hidden],
@@ -1183,37 +1188,37 @@
1183
1188
  top: 0;
1184
1189
  left: -1px;
1185
1190
  bottom: 0;
1186
- background: linear-gradient(to right, ${Ve.colorSurface} 50%, var(--snap-scroll-transparent-color));
1191
+ background: linear-gradient(to right, ${He.colorSurface} 50%, var(--snap-scroll-transparent-color));
1187
1192
  }
1188
1193
 
1189
1194
  .ft-snap-scroll--vertical .ft-snap-scroll--previous {
1190
1195
  top: -1px;
1191
1196
  left: 0;
1192
1197
  right: 0;
1193
- background: linear-gradient(to bottom, ${Ve.colorSurface} 50%, var(--snap-scroll-transparent-color));
1198
+ background: linear-gradient(to bottom, ${He.colorSurface} 50%, var(--snap-scroll-transparent-color));
1194
1199
  }
1195
1200
 
1196
1201
  .ft-snap-scroll--horizontal .ft-snap-scroll--next {
1197
1202
  top: 0;
1198
1203
  right: -1px;
1199
1204
  bottom: 0;
1200
- background: linear-gradient(to left, ${Ve.colorSurface} 50%, var(--snap-scroll-transparent-color));
1205
+ background: linear-gradient(to left, ${He.colorSurface} 50%, var(--snap-scroll-transparent-color));
1201
1206
  }
1202
1207
 
1203
1208
  .ft-snap-scroll--vertical .ft-snap-scroll--next {
1204
1209
  left: 0;
1205
1210
  right: 0;
1206
1211
  bottom: -1px;
1207
- background: linear-gradient(to top, ${Ve.colorSurface} 50%, var(--snap-scroll-transparent-color));
1212
+ background: linear-gradient(to top, ${He.colorSurface} 50%, var(--snap-scroll-transparent-color));
1208
1213
  }
1209
1214
 
1210
1215
  .ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
1211
1216
  .ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
1212
1217
  .ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
1213
1218
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1214
- background-color: ${Ve.colorSurface};
1219
+ background-color: ${He.colorSurface};
1215
1220
  }
1216
- `;var Nt=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Go=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},ve=class extends Hr.FtLitElement{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver(()=>this.scheduleUpdateScroll()),this.scrollDebouncer=new Hr.Debouncer(200),this.updateScrollDebouncer=new Hr.Debouncer(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let r=this.elements[e];if(r){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,n=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<n||r[this.offsetAttribute]+r[this.sizeAttribute]>i)&&this.scrollToElement(r)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let e=(0,Nd.classMap)({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":Hr.isSafari}),r=this.controls&&this.withScroll;return Md.html`
1221
+ `;var Ft=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Yo=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},ye=class extends Vr.FtLitElement{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver(()=>this.scheduleUpdateScroll()),this.scrollDebouncer=new Vr.Debouncer(200),this.updateScrollDebouncer=new Vr.Debouncer(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let r=this.elements[e];if(r){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,s=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<s||r[this.offsetAttribute]+r[this.sizeAttribute]>i)&&this.scrollToElement(r)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let e=(0,Nd.classMap)({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":Vr.isSafari}),r=this.controls&&this.withScroll;return Md.html`
1217
1222
  <div part="container" class="${e}">
1218
1223
  <ft-button
1219
1224
  class="ft-snap-scroll--previous"
@@ -1237,7 +1242,7 @@
1237
1242
  @click=${this.next}
1238
1243
  ></ft-button>
1239
1244
  </div>
1240
- `}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new Go(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let r=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var r,i;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,r;this.elements=(r=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(i=>i))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let r=0;r<this.elements.length;r++)(e<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[e]))&&(e=r);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let r=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-r)}};ve.elementDefinitions={"ft-button":A};ve.styles=Id;Nt([(0,ot.property)({type:Boolean})],ve.prototype,"horizontal",void 0);Nt([(0,ot.property)({type:Boolean})],ve.prototype,"hideScrollbar",void 0);Nt([(0,ot.property)({type:Boolean})],ve.prototype,"controls",void 0);Nt([(0,ot.property)({type:Boolean})],ve.prototype,"limitSize",void 0);Nt([(0,ot.state)()],ve.prototype,"elements",void 0);Nt([(0,ot.state)()],ve.prototype,"currentElement",void 0);Nt([(0,ot.state)()],ve.prototype,"withScroll",void 0);Nt([(0,ot.state)()],ve.prototype,"startReached",void 0);Nt([(0,ot.state)()],ve.prototype,"endReached",void 0);Nt([(0,ot.query)(".ft-snap-scroll--content")],ve.prototype,"contentSlot",void 0);var Bd=c(f());var Fd={"ft-snap-scroll":ve};(0,Bd.customElements)(Fd);var Ud=c(v()),re=c(f());var Ze={colorOutline:re.FtCssVariableFactory.external(re.designSystemVariables.colorOutline,"Design system"),colorOnSurface:re.FtCssVariableFactory.external(re.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:re.FtCssVariableFactory.external(re.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:re.FtCssVariableFactory.external(re.designSystemVariables.colorPrimary,"Design system"),colorSurface:re.FtCssVariableFactory.external(re.designSystemVariables.colorSurface,"Design system"),transitionDuration:re.FtCssVariableFactory.external(re.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:re.FtCssVariableFactory.external(re.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:re.FtCssVariableFactory.extend("--ft-filter-label-color","",re.designSystemVariables.colorOnSurface),labelFontSize:re.FtCssVariableFactory.extend("--ft-filter-label-font-size","",y.fontSize,"16px")},zd=[Jt,re.noTextInputDefaultClearButton,Ud.css`
1245
+ `}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new Yo(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let r=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var r,i;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,r;this.elements=(r=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(i=>i))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let r=0;r<this.elements.length;r++)(e<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[e]))&&(e=r);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let r=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-r)}};ye.elementDefinitions={"ft-button":C};ye.styles=Pd;Ft([(0,ot.property)({type:Boolean})],ye.prototype,"horizontal",void 0);Ft([(0,ot.property)({type:Boolean})],ye.prototype,"hideScrollbar",void 0);Ft([(0,ot.property)({type:Boolean})],ye.prototype,"controls",void 0);Ft([(0,ot.property)({type:Boolean})],ye.prototype,"limitSize",void 0);Ft([(0,ot.state)()],ye.prototype,"elements",void 0);Ft([(0,ot.state)()],ye.prototype,"currentElement",void 0);Ft([(0,ot.state)()],ye.prototype,"withScroll",void 0);Ft([(0,ot.state)()],ye.prototype,"startReached",void 0);Ft([(0,ot.state)()],ye.prototype,"endReached",void 0);Ft([(0,ot.query)(".ft-snap-scroll--content")],ye.prototype,"contentSlot",void 0);var Bd=c(f());var Fd={"ft-snap-scroll":ye};(0,Bd.customElements)(Fd);var Ud=c(x()),re=c(f());var Ze={colorOutline:re.FtCssVariableFactory.external(re.designSystemVariables.colorOutline,"Design system"),colorOnSurface:re.FtCssVariableFactory.external(re.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:re.FtCssVariableFactory.external(re.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:re.FtCssVariableFactory.external(re.designSystemVariables.colorPrimary,"Design system"),colorSurface:re.FtCssVariableFactory.external(re.designSystemVariables.colorSurface,"Design system"),transitionDuration:re.FtCssVariableFactory.external(re.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:re.FtCssVariableFactory.external(re.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:re.FtCssVariableFactory.extend("--ft-filter-label-color","",re.designSystemVariables.colorOnSurface),labelFontSize:re.FtCssVariableFactory.extend("--ft-filter-label-font-size","",y.fontSize,"16px")},zd=[Jt,re.noTextInputDefaultClearButton,Ud.css`
1241
1246
  :host {
1242
1247
  display: flex;
1243
1248
  max-height: 100%;
@@ -1265,7 +1270,7 @@
1265
1270
  .ft-filter--header ft-button {
1266
1271
  flex-shrink: 0;
1267
1272
  margin-left: auto;
1268
- ${(0,re.setVariable)(k.iconSize,"18px")};
1273
+ ${(0,re.setVariable)(T.iconSize,"18px")};
1269
1274
  }
1270
1275
 
1271
1276
  .filter-label {
@@ -1354,10 +1359,10 @@
1354
1359
  slot:not([name]) {
1355
1360
  display: none;
1356
1361
  }
1357
- `];var ie=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Qo=class extends CustomEvent{constructor(e){super("change",{detail:e})}},z=class extends(0,fe.withAnalytics)(fe.FtLitElement,Ko){constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new fe.Debouncer(300),this.changeDebouncer=new fe.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,fe.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,fe.flatDeep)(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(n=>n.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return jr.html`
1362
+ `];var ie=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Xo=class extends CustomEvent{constructor(e){super("change",{detail:e})}},U=class extends(0,pe.withAnalytics)(pe.FtLitElement,Qo){constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new pe.Debouncer(300),this.changeDebouncer=new pe.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,pe.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,pe.flatDeep)(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(s=>s.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return Hr.html`
1358
1363
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1359
1364
  part="container">
1360
- ${!this.label&&!e?null:jr.html`
1365
+ ${!this.label&&!e?null:Hr.html`
1361
1366
 
1362
1367
  <div class="ft-filter--header" part="header">
1363
1368
  <div class="filter-label" id="id-group-${this.id}">
@@ -1366,7 +1371,7 @@
1366
1371
  </ft-typography>
1367
1372
  <slot name="label"></slot>
1368
1373
  </div>
1369
- ${e&&!this.hideClearButton?jr.html`
1374
+ ${e&&!this.hideClearButton?Hr.html`
1370
1375
  <ft-button icon="close"
1371
1376
  aria-label="${this.clearButtonLabel+" "+this.label}"
1372
1377
  dense
@@ -1394,8 +1399,8 @@
1394
1399
  @slotchange=${this.updateOptionsFromSlot}
1395
1400
  @option-change=${this.optionsChanged}></slot>
1396
1401
  </div>
1397
- `}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(i=>i.value));this.displayedLevels=this.displayedLevels.filter(i=>r.has(i)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var r,i,n,s,o,a;super.contentAvailableCallback(e),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),e.has("options")&&(this.updateScroll(),(r=this.levelsContainer)===null||r===void 0||r.scrollToIndex(this.displayedLevels.length)),e.has("slideIn")&&this.slideIn&&((i=this.levelsContainer)===null||i===void 0||i.next(),setTimeout(()=>{this.slideIn=void 0},300)),e.has("slideOut")&&this.slideOut&&((n=this.levelsContainer)===null||n===void 0||n.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(a=(o=(s=this.shadowRoot)===null||s===void 0?void 0:s.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||o===void 0?void 0:o.hasHiddenValues)!==null&&a!==void 0?a:!1}renderLevels(){let e=this.flatOptions,r=e.filter(s=>s.selected),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,n=i<0?"ft-filter--level-center":"ft-filter--level-left";return jr.html`
1398
- ${this.raiseSelectedOptions&&r.length>0?jr.html`
1402
+ `}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(i=>i.value));this.displayedLevels=this.displayedLevels.filter(i=>r.has(i)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var r,i,s,n,o,a;super.contentAvailableCallback(e),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),e.has("options")&&(this.updateScroll(),(r=this.levelsContainer)===null||r===void 0||r.scrollToIndex(this.displayedLevels.length)),e.has("slideIn")&&this.slideIn&&((i=this.levelsContainer)===null||i===void 0||i.next(),setTimeout(()=>{this.slideIn=void 0},300)),e.has("slideOut")&&this.slideOut&&((s=this.levelsContainer)===null||s===void 0||s.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(a=(o=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||o===void 0?void 0:o.hasHiddenValues)!==null&&a!==void 0?a:!1}renderLevels(){let e=this.flatOptions,r=e.filter(n=>n.selected),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,s=i<0?"ft-filter--level-center":"ft-filter--level-left";return Hr.html`
1403
+ ${this.raiseSelectedOptions&&r.length>0?Hr.html`
1399
1404
  <ft-filter-level
1400
1405
  filterId="${this.id}"
1401
1406
  ?multivalued=${this.multivalued}
@@ -1412,11 +1417,11 @@
1412
1417
  `:null}
1413
1418
  <ft-snap-scroll horizontal hideScrollbar
1414
1419
  class="ft-filter--levels"
1415
- @current-element-change=${s=>this.levelsScrollDebouncer.run(()=>{for(;s.detail.index<this.displayedLevels.length;)this.displayedLevels.pop();this.requestUpdate()})}>
1416
- ${this.renderLevel(n,this.options)}
1417
- ${this.displayedLevels.map(s=>e.find(o=>o.value===s)).map((s,o)=>{var a;let l=s?.value===this.slideIn||s?.value===this.slideOut?"ft-filter--level-right":o===i?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(l,(a=s?.subOptions)!==null&&a!==void 0?a:[],s)})}
1420
+ @current-element-change=${n=>this.levelsScrollDebouncer.run(()=>{for(;n.detail.index<this.displayedLevels.length;)this.displayedLevels.pop();this.requestUpdate()})}>
1421
+ ${this.renderLevel(s,this.options)}
1422
+ ${this.displayedLevels.map(n=>e.find(o=>o.value===n)).map((n,o)=>{var a;let l=n?.value===this.slideIn||n?.value===this.slideOut?"ft-filter--level-right":o===i?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(l,(a=n?.subOptions)!==null&&a!==void 0?a:[],n)})}
1418
1423
  </ft-snap-scroll>
1419
- `}renderLevel(e,r,i){return jr.html`
1424
+ `}renderLevel(e,r,i){return Hr.html`
1420
1425
  <ft-filter-level
1421
1426
  class="${e}"
1422
1427
  filterId="${this.id}"
@@ -1438,21 +1443,21 @@
1438
1443
  noValuesLabel="${this.noValuesLabel}"
1439
1444
  .filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
1440
1445
  ></ft-filter-level>
1441
- `}goBack(e){this.slideOut=e.detail.value,(0,fe.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,(0,fe.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){(0,fe.waitUntil)(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let i=this.flatOptions.find(s=>s.value===e.detail.value);i.selected=!i.selected;let n=s=>{var o;s!==i&&(s.selected=!1),(o=s.subOptions)===null||o===void 0||o.forEach(n)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,fe.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new Qo(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};z.elementDefinitions={"ft-button":A,"ft-filter-level":oe,"ft-snap-scroll":ve,"ft-typography":W};z.styles=zd;ie([(0,X.property)({type:String})],z.prototype,"id",void 0);ie([(0,X.property)({type:String})],z.prototype,"label",void 0);ie([(0,X.property)({type:String})],z.prototype,"filterPlaceHolder",void 0);ie([(0,X.property)({type:String})],z.prototype,"clearButtonLabel",void 0);ie([(0,X.property)({type:String})],z.prototype,"moreValuesButtonLabel",void 0);ie([(0,X.property)({type:String})],z.prototype,"noValuesLabel",void 0);ie([(0,fe.jsonProperty)([])],z.prototype,"options",void 0);ie([(0,X.property)({type:Boolean})],z.prototype,"multivalued",void 0);ie([(0,X.property)({type:Boolean})],z.prototype,"disabled",void 0);ie([(0,X.property)({type:Boolean})],z.prototype,"raiseSelectedOptions",void 0);ie([(0,X.property)({type:Boolean})],z.prototype,"displayCount",void 0);ie([(0,fe.numberProperty)()],z.prototype,"displayedValuesLimit",void 0);ie([(0,fe.jsonProperty)(void 0)],z.prototype,"filteredOptionsNumberAriaNotification",void 0);ie([(0,X.property)({type:Boolean})],z.prototype,"hideClearButton",void 0);ie([(0,X.query)(".ft-filter--slot")],z.prototype,"slotElement",void 0);ie([(0,X.query)(".ft-filter--container")],z.prototype,"container",void 0);ie([(0,X.query)(".ft-filter--values")],z.prototype,"valuesContainer",void 0);ie([(0,X.query)(".ft-filter--levels")],z.prototype,"levelsContainer",void 0);ie([(0,X.state)()],z.prototype,"lastLevelHasHiddenvalues",void 0);ie([(0,X.query)(".ft-filter--filter input")],z.prototype,"filterInput",void 0);ie([(0,X.queryAll)(".ft-filter--levels ft-filter-level")],z.prototype,"levels",void 0);ie([(0,X.state)()],z.prototype,"withScroll",void 0);ie([(0,X.state)()],z.prototype,"filter",void 0);ie([(0,X.state)()],z.prototype,"slideIn",void 0);ie([(0,X.state)()],z.prototype,"slideOut",void 0);var An=c(f()),qr=c(V()),Vd=c(v()),gi=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},at=class extends An.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Vd.html`
1446
+ `}goBack(e){this.slideOut=e.detail.value,(0,pe.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,(0,pe.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){(0,pe.waitUntil)(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let i=this.flatOptions.find(n=>n.value===e.detail.value);i.selected=!i.selected;let s=n=>{var o;n!==i&&(n.selected=!1),(o=n.subOptions)===null||o===void 0||o.forEach(s)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(s):this.options.forEach(s),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,pe.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new Xo(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};U.elementDefinitions={"ft-button":C,"ft-filter-level":ae,"ft-snap-scroll":ye,"ft-typography":W};U.styles=zd;ie([(0,Z.property)({type:String})],U.prototype,"id",void 0);ie([(0,Z.property)({type:String})],U.prototype,"label",void 0);ie([(0,Z.property)({type:String})],U.prototype,"filterPlaceHolder",void 0);ie([(0,Z.property)({type:String})],U.prototype,"clearButtonLabel",void 0);ie([(0,Z.property)({type:String})],U.prototype,"moreValuesButtonLabel",void 0);ie([(0,Z.property)({type:String})],U.prototype,"noValuesLabel",void 0);ie([(0,pe.jsonProperty)([])],U.prototype,"options",void 0);ie([(0,Z.property)({type:Boolean})],U.prototype,"multivalued",void 0);ie([(0,Z.property)({type:Boolean})],U.prototype,"disabled",void 0);ie([(0,Z.property)({type:Boolean})],U.prototype,"raiseSelectedOptions",void 0);ie([(0,Z.property)({type:Boolean})],U.prototype,"displayCount",void 0);ie([(0,pe.numberProperty)()],U.prototype,"displayedValuesLimit",void 0);ie([(0,pe.jsonProperty)(void 0)],U.prototype,"filteredOptionsNumberAriaNotification",void 0);ie([(0,Z.property)({type:Boolean})],U.prototype,"hideClearButton",void 0);ie([(0,Z.query)(".ft-filter--slot")],U.prototype,"slotElement",void 0);ie([(0,Z.query)(".ft-filter--container")],U.prototype,"container",void 0);ie([(0,Z.query)(".ft-filter--values")],U.prototype,"valuesContainer",void 0);ie([(0,Z.query)(".ft-filter--levels")],U.prototype,"levelsContainer",void 0);ie([(0,Z.state)()],U.prototype,"lastLevelHasHiddenvalues",void 0);ie([(0,Z.query)(".ft-filter--filter input")],U.prototype,"filterInput",void 0);ie([(0,Z.queryAll)(".ft-filter--levels ft-filter-level")],U.prototype,"levels",void 0);ie([(0,Z.state)()],U.prototype,"withScroll",void 0);ie([(0,Z.state)()],U.prototype,"filter",void 0);ie([(0,Z.state)()],U.prototype,"slideIn",void 0);ie([(0,Z.state)()],U.prototype,"slideOut",void 0);var Os=c(f()),jr=c(H()),Vd=c(x()),gi=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},at=class extends Os.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Vd.html`
1442
1447
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1443
- `}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};at.elementDefinitions={};gi([(0,qr.property)({type:String})],at.prototype,"label",void 0);gi([(0,qr.property)({type:Object,converter:t=>t})],at.prototype,"value",void 0);gi([(0,qr.property)({type:Boolean,reflect:!0})],at.prototype,"selected",void 0);gi([(0,qr.property)({type:Object})],at.prototype,"subOptions",void 0);gi([(0,An.jsonProperty)({})],at.prototype,"renderOption",void 0);gi([(0,qr.query)(".ft-filter-option--slot")],at.prototype,"slotElement",void 0);var jd=c(f());var Hd={"ft-filter":z,"ft-filter-option":at};(0,jd.customElements)(Hd);var Gd=c(v()),Cn=c(V()),Qd=c(f());var qd=c(v());var Wd=qd.css`
1448
+ `}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};at.elementDefinitions={};gi([(0,jr.property)({type:String})],at.prototype,"label",void 0);gi([(0,jr.property)({type:Object,converter:t=>t})],at.prototype,"value",void 0);gi([(0,jr.property)({type:Boolean,reflect:!0})],at.prototype,"selected",void 0);gi([(0,jr.property)({type:Object})],at.prototype,"subOptions",void 0);gi([(0,Os.jsonProperty)({})],at.prototype,"renderOption",void 0);gi([(0,jr.query)(".ft-filter-option--slot")],at.prototype,"slotElement",void 0);var jd=c(f());var Hd={"ft-filter":U,"ft-filter-option":at};(0,jd.customElements)(Hd);var Gd=c(x()),_s=c(H()),Qd=c(f());var qd=c(x());var Wd=qd.css`
1444
1449
  .ft-accordion {
1445
1450
  box-sizing: border-box;
1446
1451
  }
1447
- `;var Kd=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Ft=class extends Qd.FtLitElement{constructor(){super(...arguments),this.multi=!1}render(){return Gd.html`
1452
+ `;var Kd=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Bt=class extends Qd.FtLitElement{constructor(){super(...arguments),this.multi=!1}render(){return Gd.html`
1448
1453
  <div class="ft-accordion">
1449
1454
  <slot @activated=${this.onChange}></slot>
1450
1455
  </div>
1451
- `}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};Ft.elementDefinitions={};Ft.styles=Wd;Kd([(0,Cn.property)({type:Boolean})],Ft.prototype,"multi",void 0);Kd([(0,Cn.query)("slot")],Ft.prototype,"content",void 0);var ss=c(v()),ns=c(V()),Zd=c(f());var Yd=c(v()),Kr=c(f()),Wr={horizontalSpacing:Kr.FtCssVariableFactory.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:Kr.FtCssVariableFactory.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:Kr.FtCssVariableFactory.external(Kr.designSystemVariables.colorOutline,"Design system"),backgroundColor:Kr.FtCssVariableFactory.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},Xd=Yd.css`
1456
+ `}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};Bt.elementDefinitions={};Bt.styles=Wd;Kd([(0,_s.property)({type:Boolean})],Bt.prototype,"multi",void 0);Kd([(0,_s.query)("slot")],Bt.prototype,"content",void 0);var sn=c(x()),on=c(H()),Zd=c(f());var Yd=c(x()),Wr=c(f()),qr={horizontalSpacing:Wr.FtCssVariableFactory.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:Wr.FtCssVariableFactory.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:Wr.FtCssVariableFactory.external(Wr.designSystemVariables.colorOutline,"Design system"),backgroundColor:Wr.FtCssVariableFactory.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},Xd=Yd.css`
1452
1457
  .ft-accordion-item {
1453
1458
  display: flex;
1454
1459
  flex-direction: column;
1455
- background-color: ${Wr.backgroundColor};
1460
+ background-color: ${qr.backgroundColor};
1456
1461
  }
1457
1462
 
1458
1463
  .ft-accordion-item--toggle {
@@ -1462,8 +1467,8 @@
1462
1467
  display: flex;
1463
1468
  align-items: center;
1464
1469
  cursor: pointer;
1465
- padding: ${Wr.verticalSpacing} ${Wr.horizontalSpacing};
1466
- gap: calc(${Wr.horizontalSpacing} / 2);
1470
+ padding: ${qr.verticalSpacing} ${qr.horizontalSpacing};
1471
+ gap: calc(${qr.horizontalSpacing} / 2);
1467
1472
  outline: none;
1468
1473
  }
1469
1474
 
@@ -1488,13 +1493,13 @@
1488
1493
  .ft-accordion-item--active .ft-accordion-item--content {
1489
1494
  height: initial;
1490
1495
  overflow: visible;
1491
- padding: ${Wr.verticalSpacing} ${Wr.horizontalSpacing};
1496
+ padding: ${qr.verticalSpacing} ${qr.horizontalSpacing};
1492
1497
  }
1493
1498
 
1494
1499
  .ft-accordion-item--separator {
1495
- border-bottom: 1px solid ${Wr.colorOutline};
1500
+ border-bottom: 1px solid ${qr.colorOutline};
1496
1501
  }
1497
- `;var wn=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},yt=class extends Zd.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return ss.html`
1502
+ `;var Rs=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},yt=class extends Zd.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return sn.html`
1498
1503
  <div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
1499
1504
  <div class="ft-accordion-item--toggle"
1500
1505
  part="toggle"
@@ -1505,13 +1510,13 @@
1505
1510
  aria-controls="ft-accordion-item-content"
1506
1511
  aria-expanded="${this.active}">
1507
1512
  <ft-ripple part="toggle-ripple"></ft-ripple>
1508
- ${this.icon?ss.html`
1513
+ ${this.icon?sn.html`
1509
1514
  <ft-icon .variant=${this.iconVariant} value="${this.icon}"></ft-icon>
1510
1515
  `:null}
1511
- ${this.label?ss.html`
1516
+ ${this.label?sn.html`
1512
1517
  <ft-typography class="ft-accordion-item--label" variant="body1" part="label">${this.label}
1513
1518
  </ft-typography>
1514
- `:ss.html`
1519
+ `:sn.html`
1515
1520
  <slot class="ft-accordion-item--label" name="toggle" part="label"></slot>
1516
1521
  `}
1517
1522
  <ft-icon variant="material">${this.active?"expand_less":"expand_more"}</ft-icon>
@@ -1524,7 +1529,7 @@
1524
1529
  </div>
1525
1530
  <div class="ft-accordion-item--separator" part="separator"></div>
1526
1531
  </div>
1527
- `}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};yt.elementDefinitions={"ft-ripple":L,"ft-typography":W,"ft-icon":ee};yt.styles=Xd;wn([(0,ns.property)()],yt.prototype,"icon",void 0);wn([(0,ns.property)()],yt.prototype,"iconVariant",void 0);wn([(0,ns.property)()],yt.prototype,"label",void 0);wn([(0,ns.property)({type:Boolean,reflect:!0})],yt.prototype,"active",void 0);var ep=c(f());var Jd={"ft-accordion":Ft,"ft-accordion-item":yt};(0,ep.customElements)(Jd);var On=c(v()),Le=c(V()),np=c(Je()),yi=c(f());var os=c(v()),M=c(f());var tp=M.FtCssVariableFactory.extend("--ft-chip-color","",M.designSystemVariables.colorOnSurface),ke={backgroundColor:M.FtCssVariableFactory.extend("--ft-chip-background-color","",M.designSystemVariables.colorSurface),color:tp,fontSize:M.FtCssVariableFactory.extend("--ft-chip-font-size","",ye.fontSize),fontWeight:M.FtCssVariableFactory.extend("--ft-chip-font-weight","",ye.fontWeight),iconSize:M.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:M.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:M.FtCssVariableFactory.extend("--ft-chip-ripple-color","",tp),horizontalPadding:M.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:M.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:M.FtCssVariableFactory.extend("--ft-chip-border-color","",M.designSystemVariables.colorOutline),opacityDisabled:M.FtCssVariableFactory.external(M.designSystemVariables.colorOpacityDisabled,"Design system")},rp=M.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",M.FtCssVariableFactory.extend("--ft-chip-color","",M.designSystemVariables.colorOnPrimary)),Yo={backgroundColor:M.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",M.FtCssVariableFactory.extend("--ft-chip-background-color","",M.designSystemVariables.colorPrimary)),color:rp,rippleColor:M.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",rp)},ip={horizontalPadding:M.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:M.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},sp=[M.noTextSelect,os.css`
1532
+ `}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};yt.elementDefinitions={"ft-ripple":D,"ft-typography":W,"ft-icon":ee};yt.styles=Xd;Rs([(0,on.property)()],yt.prototype,"icon",void 0);Rs([(0,on.property)()],yt.prototype,"iconVariant",void 0);Rs([(0,on.property)()],yt.prototype,"label",void 0);Rs([(0,on.property)({type:Boolean,reflect:!0})],yt.prototype,"active",void 0);var ep=c(f());var Jd={"ft-accordion":Bt,"ft-accordion-item":yt};(0,ep.customElements)(Jd);var Kr=c(x()),Ce=c(H()),sp=c(Je()),yi=c(f());var an=c(x()),M=c(f());var tp=M.FtCssVariableFactory.extend("--ft-chip-color","",M.designSystemVariables.colorOnSurface),ke={backgroundColor:M.FtCssVariableFactory.extend("--ft-chip-background-color","",M.designSystemVariables.colorSurface),color:tp,fontSize:M.FtCssVariableFactory.extend("--ft-chip-font-size","",me.fontSize),fontWeight:M.FtCssVariableFactory.extend("--ft-chip-font-weight","",me.fontWeight),iconSize:M.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:M.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:M.FtCssVariableFactory.extend("--ft-chip-ripple-color","",tp),horizontalPadding:M.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:M.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:M.FtCssVariableFactory.extend("--ft-chip-border-color","",M.designSystemVariables.colorOutline),opacityDisabled:M.FtCssVariableFactory.external(M.designSystemVariables.colorOpacityDisabled,"Design system")},rp=M.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",M.FtCssVariableFactory.extend("--ft-chip-color","",M.designSystemVariables.colorOnPrimary)),Zo={backgroundColor:M.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",M.FtCssVariableFactory.extend("--ft-chip-background-color","",M.designSystemVariables.colorPrimary)),color:rp,rippleColor:M.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",rp)},ip={horizontalPadding:M.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:M.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},np=[M.noTextSelect,an.css`
1528
1533
  :host {
1529
1534
  display: inline-block;
1530
1535
  max-width: 100%;
@@ -1543,7 +1548,7 @@
1543
1548
  --chip-internal-font-size: ${ke.fontSize};
1544
1549
  --chip-internal-font-weight: ${ke.fontWeight};
1545
1550
  --chip-internal-line-height: max(20px, calc(var(--chip-internal-font-size) + 2px));
1546
- ${(0,M.setVariable)(Ue.size,ke.iconSize)};
1551
+ ${(0,M.setVariable)(ze.size,ke.iconSize)};
1547
1552
  --chip-internal-vertical-padding: ${ke.verticalPadding};
1548
1553
  --chip-internal-horizontal-padding: ${ke.horizontalPadding};
1549
1554
  --chip-internal-icon-padding: 3px;
@@ -1551,8 +1556,8 @@
1551
1556
 
1552
1557
  border: 1px solid ${ke.borderColor};
1553
1558
  color: ${ke.color};
1554
- ${(0,M.setVariable)(q.color,ke.rippleColor)};
1555
- border-radius: var(${(0,os.unsafeCSS)(ke.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
1559
+ ${(0,M.setVariable)(z.color,ke.rippleColor)};
1560
+ border-radius: var(${(0,an.unsafeCSS)(ke.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
1556
1561
  padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
1557
1562
  background-color: ${ke.backgroundColor};
1558
1563
  line-height: var(--chip-internal-content-height);
@@ -1570,7 +1575,7 @@
1570
1575
  }
1571
1576
 
1572
1577
  .ft-chip--no-content {
1573
- --chip-internal-horizontal-padding: ${ke.horizontalPadding.get(os.css`var(--chip-internal-vertical-padding)`)};
1578
+ --chip-internal-horizontal-padding: ${ke.horizontalPadding.get(an.css`var(--chip-internal-vertical-padding)`)};
1574
1579
  }
1575
1580
 
1576
1581
  .ft-chip--disabled {
@@ -1583,9 +1588,9 @@
1583
1588
  .ft-chip--highlighted {
1584
1589
  border: none;
1585
1590
  padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
1586
- background-color: ${Yo.backgroundColor};
1587
- ${(0,M.setVariable)(q.color,Yo.rippleColor)};
1588
- color: ${Yo.color};
1591
+ background-color: ${Zo.backgroundColor};
1592
+ ${(0,M.setVariable)(z.color,Zo.rippleColor)};
1593
+ color: ${Zo.color};
1589
1594
  }
1590
1595
 
1591
1596
  .ft-chip--clickable {
@@ -1616,9 +1621,9 @@
1616
1621
  }
1617
1622
 
1618
1623
  .ft-chip--icon-button {
1619
- ${(0,M.setVariable)(k.iconSize,ke.iconSize)};
1620
- ${(0,M.setVariable)(k.horizontalPadding,"var(--chip-internal-icon-padding)")};
1621
- ${(0,M.setVariable)(k.verticalPadding,"var(--chip-internal-icon-padding)")};
1624
+ ${(0,M.setVariable)(T.iconSize,ke.iconSize)};
1625
+ ${(0,M.setVariable)(T.horizontalPadding,"var(--chip-internal-icon-padding)")};
1626
+ ${(0,M.setVariable)(T.verticalPadding,"var(--chip-internal-icon-padding)")};
1622
1627
  margin: calc((-1) * var(--chip-internal-icon-padding));
1623
1628
  }
1624
1629
 
@@ -1626,9 +1631,9 @@
1626
1631
  vertical-align: bottom;
1627
1632
  display: block;
1628
1633
  margin: 0 var(--chip-internal-horizontal-padding);
1629
- ${(0,M.setVariable)(ye.fontSize,"var(--chip-internal-font-size)")};
1630
- ${(0,M.setVariable)(ye.fontWeight,"var(--chip-internal-font-weight)")};
1631
- ${(0,M.setVariable)(ye.lineHeight,"var(--chip-internal-content-height)")};
1634
+ ${(0,M.setVariable)(me.fontSize,"var(--chip-internal-font-size)")};
1635
+ ${(0,M.setVariable)(me.fontWeight,"var(--chip-internal-font-weight)")};
1636
+ ${(0,M.setVariable)(me.lineHeight,"var(--chip-internal-content-height)")};
1632
1637
  }
1633
1638
 
1634
1639
  .ft-chip--safari-fix .ft-chip--label {
@@ -1664,19 +1669,20 @@
1664
1669
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
1665
1670
  order: -1;
1666
1671
  }
1667
- `];var He=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},_n=class extends CustomEvent{constructor(){super("icon-click")}},ae=class extends yi.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let r={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":yi.isSafari};return On.html`
1668
- <div class="${(0,np.classMap)(r)}"
1669
- aria-label="${this.getLabel()}"
1672
+ `];var Me=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Ts=class extends CustomEvent{constructor(){super("icon-click")}},oe=class extends yi.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.accessibleLabelOnIcon=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let r={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":yi.isSafari};return Kr.html`
1673
+ <div class="${(0,sp.classMap)(r)}"
1674
+ aria-label="${this.labelOnIconOnly?Kr.nothing:this.getLabel()}"
1670
1675
  tabindex="${this.interactionsOnChip?0:-1}"
1671
1676
  @keyup=${this.onKeyUp}
1672
1677
  part="chip">
1673
1678
  <ft-ripple ?disabled=${!this.interactionsOnChip}></ft-ripple>
1674
- <ft-typography variant="${(e=this.typographyVariant)!==null&&e!==void 0?e:"body2"}" element="span" class="ft-chip--label" part="label">
1679
+ <ft-typography variant="${(e=this.typographyVariant)!==null&&e!==void 0?e:"body2"}" element="span" class="ft-chip--label" part="label"
1680
+ aria-hidden="${this.labelOnIconOnly?"true":Kr.nothing}">
1675
1681
  <slot @slotchange=${this.onSlotchange}></slot>
1676
1682
  </ft-typography>
1677
1683
  ${this.internalIcon?this.renderIcon():null}
1678
1684
  </div>
1679
- `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?On.html`
1685
+ `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}get labelOnIconOnly(){return this.accessibleLabelOnIcon&&this.interactionsOnIcon}renderIcon(){return this.interactionsOnIcon?Kr.html`
1680
1686
  <ft-button round
1681
1687
  class="ft-chip--icon-button"
1682
1688
  @click=${this.onIconClick}
@@ -1687,30 +1693,30 @@
1687
1693
  part="icon-button"
1688
1694
  ?hideTooltip=${this.hideIconTooltip}
1689
1695
  ></ft-button>
1690
- `:On.html`
1696
+ `:Kr.html`
1691
1697
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
1692
1698
  <ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
1693
1699
  </div>
1694
- `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new _n))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new _n))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,yi.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};ae.elementDefinitions={"ft-ripple":L,"ft-typography":W,"ft-icon":ee,"ft-button":A};ae.styles=sp;He([(0,Le.property)({type:Boolean})],ae.prototype,"highlighted",void 0);He([(0,Le.property)({type:Boolean})],ae.prototype,"removable",void 0);He([(0,Le.property)({type:Boolean})],ae.prototype,"disabled",void 0);He([(0,Le.property)({type:Boolean})],ae.prototype,"clickable",void 0);He([(0,Le.property)({type:Boolean})],ae.prototype,"iconClickable",void 0);He([(0,Le.property)({type:Boolean})],ae.prototype,"dense",void 0);He([(0,Le.property)({type:Boolean})],ae.prototype,"multiLine",void 0);He([(0,Le.property)()],ae.prototype,"label",void 0);He([(0,Le.property)()],ae.prototype,"iconLabel",void 0);He([(0,Le.property)({type:Boolean})],ae.prototype,"hideIconTooltip",void 0);He([(0,Le.property)()],ae.prototype,"icon",void 0);He([(0,Le.property)()],ae.prototype,"iconVariant",void 0);He([(0,Le.property)({type:Boolean})],ae.prototype,"trailingIcon",void 0);He([(0,Le.property)()],ae.prototype,"typographyVariant",void 0);He([(0,Le.query)("ft-typography slot")],ae.prototype,"slottedContent",void 0);var ap=c(f());var op={"ft-chip":ae};(0,ap.customElements)(op);var vi=c(v()),xe=c(V()),xp=c(Je()),Sp=c(dr());function as(t,e,r){return t?e(t):r?.(t)}var bt=c(f());var Rn=c(V());var lp=c(v()),se=c(f());var U={fontSize:se.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:se.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:se.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:se.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:se.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:se.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:se.FtCssVariableFactory.extend("--ft-input-label-border-color","",se.designSystemVariables.colorOutline),textColor:se.FtCssVariableFactory.extend("--ft-input-label-text-color","",se.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:se.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",se.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:se.FtCssVariableFactory.extend("--ft-input-label-background-color","",se.designSystemVariables.colorSurface),borderRadius:se.FtCssVariableFactory.extend("--ft-input-label-border-radius","",se.designSystemVariables.borderRadiusS),colorError:se.FtCssVariableFactory.external(se.designSystemVariables.colorError,"Design system")},cp=lp.css`
1700
+ `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Ts))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Ts))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,yi.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};oe.elementDefinitions={"ft-ripple":D,"ft-typography":W,"ft-icon":ee,"ft-button":C};oe.styles=np;Me([(0,Ce.property)({type:Boolean})],oe.prototype,"highlighted",void 0);Me([(0,Ce.property)({type:Boolean})],oe.prototype,"removable",void 0);Me([(0,Ce.property)({type:Boolean})],oe.prototype,"disabled",void 0);Me([(0,Ce.property)({type:Boolean})],oe.prototype,"clickable",void 0);Me([(0,Ce.property)({type:Boolean})],oe.prototype,"iconClickable",void 0);Me([(0,Ce.property)({type:Boolean})],oe.prototype,"dense",void 0);Me([(0,Ce.property)({type:Boolean})],oe.prototype,"multiLine",void 0);Me([(0,Ce.property)()],oe.prototype,"label",void 0);Me([(0,Ce.property)()],oe.prototype,"iconLabel",void 0);Me([(0,Ce.property)({type:Boolean})],oe.prototype,"hideIconTooltip",void 0);Me([(0,Ce.property)({type:Boolean})],oe.prototype,"accessibleLabelOnIcon",void 0);Me([(0,Ce.property)()],oe.prototype,"icon",void 0);Me([(0,Ce.property)()],oe.prototype,"iconVariant",void 0);Me([(0,Ce.property)({type:Boolean})],oe.prototype,"trailingIcon",void 0);Me([(0,Ce.property)()],oe.prototype,"typographyVariant",void 0);Me([(0,Ce.query)("ft-typography slot")],oe.prototype,"slottedContent",void 0);var ap=c(f());var op={"ft-chip":oe};(0,ap.customElements)(op);var vi=c(x()),be=c(H()),xp=c(Je()),Sp=c(dr());function ln(t,e,r){return t?e(t):r?.(t)}var bt=c(f());var ks=c(H());var lp=c(x()),ne=c(f());var B={fontSize:ne.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:ne.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:ne.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:ne.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:ne.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:ne.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:ne.FtCssVariableFactory.extend("--ft-input-label-border-color","",ne.designSystemVariables.colorOutline),textColor:ne.FtCssVariableFactory.extend("--ft-input-label-text-color","",ne.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:ne.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",ne.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:ne.FtCssVariableFactory.extend("--ft-input-label-background-color","",ne.designSystemVariables.colorSurface),borderRadius:ne.FtCssVariableFactory.extend("--ft-input-label-border-radius","",ne.designSystemVariables.borderRadiusS),colorError:ne.FtCssVariableFactory.external(ne.designSystemVariables.colorError,"Design system")},cp=lp.css`
1695
1701
  .ft-input-label {
1696
1702
  position: absolute;
1697
1703
  inset: 0;
1698
1704
  display: flex;
1699
- background-color: ${U.backgroundColor};
1700
- border-radius: ${U.borderRadius} ${U.borderRadius} 0 0;
1701
- border-color: ${U.borderColor};
1705
+ background-color: ${B.backgroundColor};
1706
+ border-radius: ${B.borderRadius} ${B.borderRadius} 0 0;
1707
+ border-color: ${B.borderColor};
1702
1708
  border-bottom-width: 1px;
1703
1709
  border-bottom-style: solid;
1704
1710
  }
1705
1711
 
1706
1712
  .ft-input-label--outlined {
1707
- border-radius: ${U.borderRadius};
1713
+ border-radius: ${B.borderRadius};
1708
1714
  border-width: 1px;
1709
1715
  border-style: solid;
1710
1716
  }
1711
1717
 
1712
1718
  .ft-input-label.ft-input-label--in-error {
1713
- border-color: ${U.colorError}
1719
+ border-color: ${B.colorError}
1714
1720
  }
1715
1721
 
1716
1722
  .ft-input-label:before,
@@ -1720,7 +1726,7 @@
1720
1726
  }
1721
1727
 
1722
1728
  .ft-input-label:before {
1723
- width: calc(${U.horizontalSpacing} - 4px);
1729
+ width: calc(${B.horizontalSpacing} - 4px);
1724
1730
  flex-shrink: 0;
1725
1731
  }
1726
1732
 
@@ -1733,20 +1739,20 @@
1733
1739
  display: flex;
1734
1740
  flex-shrink: 1;
1735
1741
  position: relative;
1736
- color: ${U.textColor};
1742
+ color: ${B.textColor};
1737
1743
  transition: font-size 250ms, line-height 250ms, color 250ms;
1738
- max-width: calc(${U.labelMaxWidth} - 2 * (${U.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
1744
+ max-width: calc(${B.labelMaxWidth} - 2 * (${B.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
1739
1745
  text-overflow: ellipsis;
1740
- ${(0,se.setVariable)(Ke.fontSize,U.fontSize)};
1741
- ${(0,se.setVariable)(Ke.lineHeight,U.fontSize)};
1746
+ ${(0,ne.setVariable)(Ke.fontSize,B.fontSize)};
1747
+ ${(0,ne.setVariable)(Ke.lineHeight,B.fontSize)};
1742
1748
  }
1743
1749
 
1744
1750
  .ft-input-label--in-error .ft-input-label--text {
1745
- color: ${U.colorError}
1751
+ color: ${B.colorError}
1746
1752
  }
1747
1753
 
1748
1754
  .ft-input-label--disabled .ft-input-label--text {
1749
- color: ${U.disabledTextColor};
1755
+ color: ${B.disabledTextColor};
1750
1756
  }
1751
1757
 
1752
1758
  .ft-input-label--hidden-text {
@@ -1763,38 +1769,38 @@
1763
1769
  overflow: hidden;
1764
1770
  white-space: nowrap;
1765
1771
  text-overflow: ellipsis;
1766
- padding: ${U.verticalSpacing} 4px;
1767
- margin: calc(${U.verticalSpacing} * -1) 0;
1772
+ padding: ${B.verticalSpacing} 4px;
1773
+ margin: calc(${B.verticalSpacing} * -1) 0;
1768
1774
  max-width: 100%;
1769
1775
  box-sizing: border-box;
1770
1776
  }
1771
1777
 
1772
1778
  .ft-input-label--raised .ft-input-label--text {
1773
- ${(0,se.setVariable)(Ke.fontSize,U.raisedFontSize)};
1774
- ${(0,se.setVariable)(Ke.lineHeight,U.raisedFontSize)};
1779
+ ${(0,ne.setVariable)(Ke.fontSize,B.raisedFontSize)};
1780
+ ${(0,ne.setVariable)(Ke.lineHeight,B.raisedFontSize)};
1775
1781
  }
1776
1782
 
1777
1783
  .ft-input-label--raised .ft-input-label--floating-text {
1778
- top: ${U.verticalSpacing};
1784
+ top: ${B.verticalSpacing};
1779
1785
  }
1780
1786
 
1781
1787
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
1782
1788
  padding: 2px 4px;
1783
- z-index: ${U.raisedZIndex};
1784
- background-color: ${U.backgroundColor};
1785
- border-radius: ${U.borderRadius};
1789
+ z-index: ${B.raisedZIndex};
1790
+ background-color: ${B.backgroundColor};
1791
+ border-radius: ${B.borderRadius};
1786
1792
  top: calc((${Ke.lineHeight} / -2) + 2px);
1787
1793
  }
1788
- `;var Xo=c(v()),Zo=c(V());var dp=c(Je()),pp=c(f()),up=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Gr=class extends pp.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return Xo.html`
1794
+ `;var Jo=c(x()),ea=c(H());var dp=c(Je()),pp=c(f()),up=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Gr=class extends pp.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return Jo.html`
1789
1795
  <div class="${(0,dp.classMap)(this.inputLabelClasses)}">
1790
- ${as(this.text,()=>Xo.html`
1796
+ ${ln(this.text,()=>Jo.html`
1791
1797
  <div class="ft-input-label--text ft-typography--caption">
1792
1798
  <label class="ft-input-label--floating-text">${this.text}</label>
1793
1799
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
1794
1800
  </div>
1795
1801
  `)}
1796
1802
  </div>
1797
- `}};Gr.elementDefinitions={};up([(0,Zo.property)({type:String})],Gr.prototype,"text",void 0);up([(0,Zo.property)({type:Boolean})],Gr.prototype,"raised",void 0);var Jo=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},_t=class extends Gr{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}}};_t.elementDefinitions={};_t.styles=[Jt,cp];Jo([(0,Rn.property)({type:Boolean})],_t.prototype,"outlined",void 0);Jo([(0,Rn.property)({type:Boolean})],_t.prototype,"error",void 0);Jo([(0,Rn.property)({type:Boolean})],_t.prototype,"disabled",void 0);var fp=c(f());var hp={"ft-input-label":_t};(0,fp.customElements)(hp);var mp=c(v()),P=c(f());var D={labelSize:P.FtCssVariableFactory.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:P.FtCssVariableFactory.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:P.FtCssVariableFactory.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:P.FtCssVariableFactory.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:P.FtCssVariableFactory.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:P.FtCssVariableFactory.extend("--ft-select-selected-option-color","",P.designSystemVariables.colorOnSurface),helperColor:P.FtCssVariableFactory.extend("--ft-select-helper-color","",P.designSystemVariables.colorOnSurfaceMedium),optionsColor:P.FtCssVariableFactory.extend("--ft-select-options-color","",P.designSystemVariables.colorOnSurface),optionsZIndex:P.FtCssVariableFactory.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:P.FtCssVariableFactory.extend("--ft-select-background-color","",P.designSystemVariables.colorSurface),colorOnSurfaceDisabled:P.FtCssVariableFactory.external(P.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:P.FtCssVariableFactory.external(P.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:P.FtCssVariableFactory.external(P.designSystemVariables.borderRadiusS,"Design system"),elevation02:P.FtCssVariableFactory.external(P.designSystemVariables.elevation02,"Design system"),colorError:P.FtCssVariableFactory.external(P.designSystemVariables.colorError,"Design system")},gp=mp.css`
1803
+ `}};Gr.elementDefinitions={};up([(0,ea.property)({type:String})],Gr.prototype,"text",void 0);up([(0,ea.property)({type:Boolean})],Gr.prototype,"raised",void 0);var ta=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Rt=class extends Gr{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}}};Rt.elementDefinitions={};Rt.styles=[Jt,cp];ta([(0,ks.property)({type:Boolean})],Rt.prototype,"outlined",void 0);ta([(0,ks.property)({type:Boolean})],Rt.prototype,"error",void 0);ta([(0,ks.property)({type:Boolean})],Rt.prototype,"disabled",void 0);var fp=c(f());var hp={"ft-input-label":Rt};(0,fp.customElements)(hp);var mp=c(x()),P=c(f());var I={labelSize:P.FtCssVariableFactory.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:P.FtCssVariableFactory.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:P.FtCssVariableFactory.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:P.FtCssVariableFactory.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:P.FtCssVariableFactory.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:P.FtCssVariableFactory.extend("--ft-select-selected-option-color","",P.designSystemVariables.colorOnSurface),helperColor:P.FtCssVariableFactory.extend("--ft-select-helper-color","",P.designSystemVariables.colorOnSurfaceMedium),optionsColor:P.FtCssVariableFactory.extend("--ft-select-options-color","",P.designSystemVariables.colorOnSurface),optionsZIndex:P.FtCssVariableFactory.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:P.FtCssVariableFactory.extend("--ft-select-background-color","",P.designSystemVariables.colorSurface),colorOnSurfaceDisabled:P.FtCssVariableFactory.external(P.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:P.FtCssVariableFactory.external(P.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:P.FtCssVariableFactory.external(P.designSystemVariables.borderRadiusS,"Design system"),elevation02:P.FtCssVariableFactory.external(P.designSystemVariables.elevation02,"Design system"),colorError:P.FtCssVariableFactory.external(P.designSystemVariables.colorError,"Design system")},gp=mp.css`
1798
1804
  *:focus {
1799
1805
  outline: none;
1800
1806
  }
@@ -1809,7 +1815,7 @@
1809
1815
  .ft-select--main-panel {
1810
1816
  position: relative;
1811
1817
  display: flex;
1812
- height: calc(4 * ${D.verticalSpacing} + ${D.labelSize} + ${D.selectedOptionSize});
1818
+ height: calc(4 * ${I.verticalSpacing} + ${I.labelSize} + ${I.selectedOptionSize});
1813
1819
  }
1814
1820
 
1815
1821
  .ft-select--input-panel {
@@ -1818,17 +1824,17 @@
1818
1824
  display: flex;
1819
1825
  align-items: center;
1820
1826
  overflow: hidden;
1821
- padding-left: ${D.horizontalSpacing};
1822
- padding-right: ${D.horizontalSpacing};
1827
+ padding-left: ${I.horizontalSpacing};
1828
+ padding-right: ${I.horizontalSpacing};
1823
1829
  gap: 8px;
1824
- color: ${D.selectedOptionColor};
1825
- ${(0,P.setVariable)(q.color,D.selectedOptionColor)};
1830
+ color: ${I.selectedOptionColor};
1831
+ ${(0,P.setVariable)(z.color,I.selectedOptionColor)};
1826
1832
  }
1827
1833
 
1828
1834
  .ft-select--input-panel,
1829
1835
  .ft-select--options {
1830
- ${(0,P.setVariable)(q.opacityContentOnSurfaceHover,"0.08")};
1831
- ${(0,P.setVariable)(q.opacityContentOnSurfacePressed,"0.04")};
1836
+ ${(0,P.setVariable)(z.opacityContentOnSurfaceHover,"0.08")};
1837
+ ${(0,P.setVariable)(z.opacityContentOnSurfacePressed,"0.04")};
1832
1838
  }
1833
1839
 
1834
1840
  .ft-select--input-panel > *:not(ft-ripple) {
@@ -1837,7 +1843,7 @@
1837
1843
 
1838
1844
  .ft-select--disabled .ft-select--input-panel,
1839
1845
  .ft-select--disabled .ft-select--options {
1840
- color: ${D.colorOnSurfaceDisabled};
1846
+ color: ${I.colorOnSurfaceDisabled};
1841
1847
  }
1842
1848
 
1843
1849
  .ft-select:not(.ft-select--disabled) .ft-select--input-panel,
@@ -1846,21 +1852,21 @@
1846
1852
  }
1847
1853
 
1848
1854
  ft-input-label {
1849
- ${(0,P.setVariable)(U.fontSize,D.selectedOptionSize)};
1850
- ${(0,P.setVariable)(U.raisedFontSize,D.labelSize)};
1851
- ${(0,P.setVariable)(U.verticalSpacing,D.verticalSpacing)};
1852
- ${(0,P.setVariable)(U.horizontalSpacing,D.horizontalSpacing)};
1853
- ${(0,P.setVariable)(U.backgroundColor,D.backgroundColor)};
1854
- ${(0,P.setVariable)(U.labelMaxWidth,`calc(100% - ${Ue.size} - 8px)`)};
1855
+ ${(0,P.setVariable)(B.fontSize,I.selectedOptionSize)};
1856
+ ${(0,P.setVariable)(B.raisedFontSize,I.labelSize)};
1857
+ ${(0,P.setVariable)(B.verticalSpacing,I.verticalSpacing)};
1858
+ ${(0,P.setVariable)(B.horizontalSpacing,I.horizontalSpacing)};
1859
+ ${(0,P.setVariable)(B.backgroundColor,I.backgroundColor)};
1860
+ ${(0,P.setVariable)(B.labelMaxWidth,`calc(100% - ${ze.size} - 8px)`)};
1855
1861
  }
1856
1862
 
1857
1863
  .ft-select:not(.ft-select--disabled):focus-within ft-icon {
1858
- color: ${D.colorPrimary};
1864
+ color: ${I.colorPrimary};
1859
1865
  }
1860
1866
 
1861
1867
  .ft-select:not(.ft-select--disabled):focus-within ft-input-label {
1862
- ${(0,P.setVariable)(U.borderColor,D.colorPrimary)};
1863
- ${(0,P.setVariable)(U.textColor,D.colorPrimary)};
1868
+ ${(0,P.setVariable)(B.borderColor,I.colorPrimary)};
1869
+ ${(0,P.setVariable)(B.textColor,I.colorPrimary)};
1864
1870
  }
1865
1871
 
1866
1872
  .ft-select--selected-option {
@@ -1870,12 +1876,12 @@
1870
1876
  overflow: hidden;
1871
1877
  white-space: nowrap;
1872
1878
  text-overflow: ellipsis;
1873
- ${(0,P.setVariable)(kt.fontSize,D.selectedOptionSize)};
1874
- ${(0,P.setVariable)(kt.lineHeight,D.selectedOptionSize)};
1879
+ ${(0,P.setVariable)(Lt.fontSize,I.selectedOptionSize)};
1880
+ ${(0,P.setVariable)(Lt.lineHeight,I.selectedOptionSize)};
1875
1881
  }
1876
1882
 
1877
1883
  .ft-select--in-error .ft-select--selected-option {
1878
- color: ${D.colorError};
1884
+ color: ${I.colorError};
1879
1885
  }
1880
1886
 
1881
1887
  ft-icon {
@@ -1885,26 +1891,26 @@
1885
1891
 
1886
1892
 
1887
1893
  .ft-select--filled .ft-select--input-panel {
1888
- border-radius: ${D.borderRadiusS} ${D.borderRadiusS} 0 0;
1894
+ border-radius: ${I.borderRadiusS} ${I.borderRadiusS} 0 0;
1889
1895
  }
1890
1896
 
1891
1897
  .ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
1892
1898
  align-self: stretch;
1893
- padding-top: calc(${D.labelSize} + 2 * ${D.verticalSpacing});
1899
+ padding-top: calc(${I.labelSize} + 2 * ${I.verticalSpacing});
1894
1900
  }
1895
1901
 
1896
1902
  .ft-select--outlined .ft-select--input-panel {
1897
- border-radius: ${D.borderRadiusS};
1903
+ border-radius: ${I.borderRadiusS};
1898
1904
  }
1899
1905
 
1900
1906
  .ft-select--options {
1901
1907
  display: none;
1902
1908
  position: absolute;
1903
1909
  top: 100%;
1904
- color: ${D.optionsColor};
1905
- background: ${D.backgroundColor};
1906
- z-index: ${D.optionsZIndex};
1907
- box-shadow: ${D.elevation02};
1910
+ color: ${I.optionsColor};
1911
+ background: ${I.backgroundColor};
1912
+ z-index: ${I.optionsZIndex};
1913
+ box-shadow: ${I.elevation02};
1908
1914
  width: max-content;
1909
1915
  }
1910
1916
 
@@ -1914,26 +1920,26 @@
1914
1920
 
1915
1921
  .ft-select--options-displayed .ft-select--options {
1916
1922
  display: block;
1917
- max-height: ${D.optionsHeight};
1923
+ max-height: ${I.optionsHeight};
1918
1924
  overflow-y: auto;
1919
1925
  }
1920
1926
 
1921
1927
  .ft-select--helper-text {
1922
- padding: 0 ${D.horizontalSpacing};
1923
- color: ${D.helperColor};
1928
+ padding: 0 ${I.horizontalSpacing};
1929
+ color: ${I.helperColor};
1924
1930
  }
1925
1931
 
1926
1932
  .ft-select--in-error .ft-select--helper-text {
1927
- color: ${D.colorError};
1933
+ color: ${I.colorError};
1928
1934
  }
1929
1935
 
1930
1936
  .ft-select:not(.ft-select--has-option-selected) .ft-select--selected-option {
1931
1937
  opacity: 0;
1932
1938
  }
1933
- `;var Tn=c(f());var bi=c(v()),vp=c(Je()),mr=c(V());var ea=c(f());var yp=c(v()),bp=yp.css`
1939
+ `;var Ls=c(f());var bi=c(x()),vp=c(Je()),mr=c(H());var ra=c(f());var yp=c(x()),bp=yp.css`
1934
1940
  .ft-select--option {
1935
- ${(0,ea.setVariable)(q.opacityContentOnSurfaceHover,"0.08")};
1936
- ${(0,ea.setVariable)(q.opacityContentOnSurfacePressed,"0.04")};
1941
+ ${(0,ra.setVariable)(z.opacityContentOnSurfaceHover,"0.08")};
1942
+ ${(0,ra.setVariable)(z.opacityContentOnSurfacePressed,"0.04")};
1937
1943
  }
1938
1944
 
1939
1945
  .ft-select--option > *:not(ft-ripple) {
@@ -1942,14 +1948,14 @@
1942
1948
 
1943
1949
  .ft-select--option {
1944
1950
  position: relative;
1945
- padding: 4px ${D.horizontalSpacing};
1951
+ padding: 4px ${I.horizontalSpacing};
1946
1952
  min-height: 32px;
1947
1953
  display: flex;
1948
1954
  align-items: center;
1949
1955
  }
1950
1956
 
1951
1957
  .ft-select--option:hover {
1952
- border-left: 2px ${D.colorPrimary} solid;
1958
+ border-left: 2px ${I.colorPrimary} solid;
1953
1959
  }
1954
1960
 
1955
1961
  .ft-select--option span {
@@ -1957,7 +1963,7 @@
1957
1963
  overflow: hidden;
1958
1964
  }
1959
1965
 
1960
- `;var ls=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Me=class extends Tn.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.isSlotEmpty=!0}render(){var e,r;let i={"ft-select--option":!0,"ft-select--option-selected":this.selected,"ft-typography--body2":!0};return bi.html`
1966
+ `;var cn=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Ne=class extends Ls.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.isSlotEmpty=!0}render(){var e,r;let i={"ft-select--option":!0,"ft-select--option-selected":this.selected,"ft-typography--body2":!0};return bi.html`
1961
1967
  <div class="${(0,vp.classMap)(i)}"
1962
1968
  part="option option-${(r=(e=this.value)===null||e===void 0?void 0:e.toString())===null||r===void 0?void 0:r.replace(/[^\w-]/g,"")}"
1963
1969
  tabindex="0"
@@ -1969,7 +1975,7 @@
1969
1975
  </slot>
1970
1976
  ${this.isSlotEmpty?bi.html`<span>${this.label}</span>`:bi.html``}
1971
1977
  </div>
1972
- `}onSlotChange(){this.isSlotEmpty=(0,Tn.isSlotEmptyOrWithoutContent)(this.slotElement)}onClick(){this.dispatchEvent(new Event("select-option",{bubbles:!0,composed:!0}))}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Me.elementDefinitions={"ft-ripple":L};Me.shadowRootOptions={...bi.LitElement.shadowRootOptions,delegatesFocus:!0};Me.styles=[bp,Zt];ls([(0,mr.property)({type:String})],Me.prototype,"label",void 0);ls([(0,mr.property)({type:Object,converter:t=>t})],Me.prototype,"value",void 0);ls([(0,mr.property)({type:Boolean,reflect:!0})],Me.prototype,"selected",void 0);ls([(0,mr.query)("slot")],Me.prototype,"slotElement",void 0);ls([(0,mr.state)()],Me.prototype,"isSlotEmpty",void 0);var $e=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s};var Z=class t extends bt.FtLitElement{constructor(){super(...arguments),this.label="",this.ariaLabel=null,this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.currentSearch="",this.lastSearchInputDate=new Date("01/01/1970"),this.isSlotEmpty=!0,this.hideOptions=e=>this.optionsDisplayed=this.optionsDisplayed&&e.composedPath().includes(this.container)}get firstOption(){return this.optionsList[0]}get optionsList(){let e=[...this.querySelectorAll("ft-select-option")];return e.length>0?e:[...this.shadowRoot.querySelectorAll("ft-select-option")]}get focusedOption(){return this.optionsList.find(e=>e.matches(":focus-within"))}get selectedOptionElement(){return this.optionsList.find(e=>e.selected)}get lastOption(){return(0,bt.last)(this.optionsList)}render(){var e,r,i,n,s;let o=this.hasOptionsMenuOpen,a=this.disabled||!this.hasOptions,l=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((n=(r=this.selectedOption)===null||r===void 0?void 0:r.label)!==null&&n!==void 0?n:"").length>0,u={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":a,"ft-select--options-displayed":o,"ft-select--has-option-selected":l,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return vi.html`
1978
+ `}onSlotChange(){this.isSlotEmpty=(0,Ls.isSlotEmptyOrWithoutContent)(this.slotElement)}onClick(){this.dispatchEvent(new Event("select-option",{bubbles:!0,composed:!0}))}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Ne.elementDefinitions={"ft-ripple":D};Ne.shadowRootOptions={...bi.LitElement.shadowRootOptions,delegatesFocus:!0};Ne.styles=[bp,Zt];cn([(0,mr.property)({type:String})],Ne.prototype,"label",void 0);cn([(0,mr.property)({type:Object,converter:t=>t})],Ne.prototype,"value",void 0);cn([(0,mr.property)({type:Boolean,reflect:!0})],Ne.prototype,"selected",void 0);cn([(0,mr.query)("slot")],Ne.prototype,"slotElement",void 0);cn([(0,mr.state)()],Ne.prototype,"isSlotEmpty",void 0);var Le=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n};var J=class t extends bt.FtLitElement{constructor(){super(...arguments),this.label="",this.ariaLabel=null,this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.currentSearch="",this.lastSearchInputDate=new Date("01/01/1970"),this.isSlotEmpty=!0,this.hideOptions=e=>this.optionsDisplayed=this.optionsDisplayed&&e.composedPath().includes(this.container)}get firstOption(){return this.optionsList[0]}get optionsList(){let e=[...this.querySelectorAll("ft-select-option")];return e.length>0?e:[...this.shadowRoot.querySelectorAll("ft-select-option")]}get focusedOption(){return this.optionsList.find(e=>e.matches(":focus-within"))}get selectedOptionElement(){return this.optionsList.find(e=>e.selected)}get lastOption(){return(0,bt.last)(this.optionsList)}render(){var e,r,i,s,n;let o=this.hasOptionsMenuOpen,a=this.disabled||!this.hasOptions,l=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((s=(r=this.selectedOption)===null||r===void 0?void 0:r.label)!==null&&s!==void 0?s:"").length>0,u={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":a,"ft-select--options-displayed":o,"ft-select--has-option-selected":l,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return vi.html`
1973
1979
  <div class="${(0,xp.classMap)(u)}" part="container">
1974
1980
  <div class="ft-select--main-panel" part="main-panel">
1975
1981
  <ft-input-label text="${this.label}"
@@ -1986,7 +1992,7 @@
1986
1992
  @click=${()=>{this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=this.optionsDisplayed}}
1987
1993
  @keydown=${this.onMainPanelKeyDown}
1988
1994
  aria-label="${lr(this.ariaLabel)}"
1989
- aria-labelledby="${as(!this.ariaLabel,()=>"label")}"
1995
+ aria-labelledby="${ln(!this.ariaLabel,()=>"label")}"
1990
1996
  aria-haspopup="listbox"
1991
1997
  aria-expanded="${o}"
1992
1998
  aria-activedescendant="${lr(this.getOptionId(this.selectedOption))}"
@@ -1996,10 +2002,10 @@
1996
2002
  <ft-typography variant="${ce.body1}"
1997
2003
  aria-hidden="${l?"false":"true"}"
1998
2004
  class="ft-select--selected-option">
1999
- ${(s=(i=this.selectedOption)===null||i===void 0?void 0:i.label)!==null&&s!==void 0?s:this.label}
2005
+ ${(n=(i=this.selectedOption)===null||i===void 0?void 0:i.label)!==null&&n!==void 0?n:this.label}
2000
2006
  </ft-typography>
2001
2007
  </slot>
2002
- <ft-icon aria-hidden="true" .value=${o?be.THIN_ARROW_UP:be.THIN_ARROW}></ft-icon>
2008
+ <ft-icon aria-hidden="true" .value=${o?ge.THIN_ARROW_UP:ge.THIN_ARROW}></ft-icon>
2003
2009
  </div>
2004
2010
  <div class="ft-select--options"
2005
2011
  part="options"
@@ -2010,7 +2016,7 @@
2010
2016
  @option-change=${this.updateOptionsFromSlot}
2011
2017
  >
2012
2018
  </slot>
2013
- ${as(this.isSlotEmpty,()=>(0,Sp.repeat)(this.options,d=>d.value,d=>this.renderOption(d)))}
2019
+ ${ln(this.isSlotEmpty,()=>(0,Sp.repeat)(this.options,d=>d.value,d=>this.renderOption(d)))}
2014
2020
  </div>
2015
2021
  </div>
2016
2022
  <slot name="helper" part="helper">
@@ -2025,34 +2031,34 @@
2025
2031
  label="${e.label}"
2026
2032
  .value=${e.value}
2027
2033
  ></ft-select-option>
2028
- `}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((r=(i=this.selectedOptionElement)!==null&&i!==void 0?i:this.firstOption)===null||r===void 0||r.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&(this.optionsDisplayed?document.addEventListener("click",this.hideOptions):document.removeEventListener("click",this.hideOptions)),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let n=["bottom","top"];(0,bt.computeOffsetAutoPosition)(this.mainPanel,this.optionsMenu,"bottom",n,"fixed",D.optionsHeight,0).then(({x:s,y:o})=>{this.optionsMenu.style.left=`${s}px`,this.optionsMenu.style.top=`${o}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var r;e.stopPropagation(),this.isSlotEmpty=(0,bt.isSlotEmptyOrWithoutContent)(this.optionsSlot);let i=(r=this.optionsSlot)===null||r===void 0?void 0:r.assignedElements().map(n=>n);i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(e){switch(e.key===" "&&(e.preventDefault(),e.stopPropagation()),e.key){case" ":case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var r,i;let n,s=this.focusedOption?this.optionsList.indexOf(this.focusedOption):0;switch(e.key){case" ":case"Enter":e.preventDefault(),e.stopPropagation(),this.onSelectOption(e),this.optionsDisplayed=!1,(r=this.mainPanel)===null||r===void 0||r.focus();break;case"Escape":this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),n=this.optionsList[(s-1+this.optionsList.length)%this.optionsList.length];break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),n=this.optionsList[(s+1)%this.optionsList.length];break;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(n=this.handleAlphanumericPress(e.key));break}n?.focus()}isKeyAlphanumeric(e){let r=e.charCodeAt(0);return r>47&&r<58||r>64&&r<91||r>96&&r<123}handleAlphanumericPress(e){let r=new Date;r.getTime()-this.lastSearchInputDate.getTime()>t.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let i=this.options.find(n=>{var s;return((s=n.label)===null||s===void 0?void 0:s.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});return this.lastSearchInputDate=r,i&&this.optionsList.find(n=>n.value===i.value)}getOptionId(e){if(!e)return;let r=this.options.findIndex(i=>(0,bt.deepEqual)(i.value,e.value));if(r!==-1)return`option-${r}`}onSelectOption(e){e.stopPropagation(),this.setValue(e.target.value)}setValue(e,r=!0){let i=this.options.find(n=>(0,bt.deepEqual)(n.value,e));i&&this.selectOption(i,r)}selectOption(e,r=!0){var i,n;if(!(0,bt.deepEqual)((i=this.selectedOption)===null||i===void 0?void 0:i.value,e?.value)){this.selectedOption=e;for(let s of this.options)s.selected=s===e;r&&this.dispatchEvent(new CustomEvent("change",{detail:(n=this.selectedOption)===null||n===void 0?void 0:n.value}))}this.optionsDisplayed=!1}};Z.elementDefinitions={"ft-input-label":_t,"ft-typography":W,"ft-ripple":L,"ft-icon":ee,"ft-select-option":Me};Z.searchTimeoutMilliseconds=2e3;Z.styles=[Jt,gp];$e([(0,xe.property)({type:String})],Z.prototype,"label",void 0);$e([(0,xe.property)({type:String})],Z.prototype,"ariaLabel",void 0);$e([(0,xe.property)({type:String})],Z.prototype,"helper",void 0);$e([(0,xe.property)({type:Boolean})],Z.prototype,"outlined",void 0);$e([(0,xe.property)({type:Boolean})],Z.prototype,"disabled",void 0);$e([(0,xe.property)({type:Boolean})],Z.prototype,"error",void 0);$e([(0,xe.property)({type:Boolean})],Z.prototype,"fixedMenuPosition",void 0);$e([(0,xe.property)({type:Array})],Z.prototype,"options",void 0);$e([(0,xe.state)()],Z.prototype,"selectedOption",void 0);$e([(0,xe.state)()],Z.prototype,"optionsDisplayed",void 0);$e([(0,xe.state)()],Z.prototype,"focusOptions",void 0);$e([(0,xe.state)()],Z.prototype,"currentSearch",void 0);$e([(0,xe.state)()],Z.prototype,"lastSearchInputDate",void 0);$e([(0,xe.query)(".ft-select")],Z.prototype,"container",void 0);$e([(0,xe.query)(".ft-select--options")],Z.prototype,"optionsMenu",void 0);$e([(0,xe.query)(".ft-select--input-panel")],Z.prototype,"mainPanel",void 0);$e([(0,xe.query)("slot:not([name])")],Z.prototype,"optionsSlot",void 0);var Ap=c(f());var Ep={"ft-select":Z,"ft-select-option":Me};(0,Ap.customElements)(Ep);var R=c(f()),ta=c(v());var Cp=c(v()),Rt=c(f()),De={display:Rt.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:Rt.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:Rt.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:Rt.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:Rt.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:Rt.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:Rt.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:Rt.FtCssVariableFactory.external(Rt.designSystemVariables.borderRadiusM,"Design system")},wp=Cp.css`
2034
+ `}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((r=(i=this.selectedOptionElement)!==null&&i!==void 0?i:this.firstOption)===null||r===void 0||r.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&(this.optionsDisplayed?document.addEventListener("click",this.hideOptions):document.removeEventListener("click",this.hideOptions)),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let s=["bottom","top"];(0,bt.computeOffsetAutoPosition)(this.mainPanel,this.optionsMenu,"bottom",s,"fixed",I.optionsHeight,0).then(({x:n,y:o})=>{this.optionsMenu.style.left=`${n}px`,this.optionsMenu.style.top=`${o}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var r;e.stopPropagation(),this.isSlotEmpty=(0,bt.isSlotEmptyOrWithoutContent)(this.optionsSlot);let i=(r=this.optionsSlot)===null||r===void 0?void 0:r.assignedElements().map(s=>s);i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(e){switch(e.key===" "&&(e.preventDefault(),e.stopPropagation()),e.key){case" ":case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var r,i;let s,n=this.focusedOption?this.optionsList.indexOf(this.focusedOption):0;switch(e.key){case" ":case"Enter":e.preventDefault(),e.stopPropagation(),this.onSelectOption(e),this.optionsDisplayed=!1,(r=this.mainPanel)===null||r===void 0||r.focus();break;case"Escape":this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),s=this.optionsList[(n-1+this.optionsList.length)%this.optionsList.length];break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),s=this.optionsList[(n+1)%this.optionsList.length];break;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(s=this.handleAlphanumericPress(e.key));break}s?.focus()}isKeyAlphanumeric(e){let r=e.charCodeAt(0);return r>47&&r<58||r>64&&r<91||r>96&&r<123}handleAlphanumericPress(e){let r=new Date;r.getTime()-this.lastSearchInputDate.getTime()>t.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let i=this.options.find(s=>{var n;return((n=s.label)===null||n===void 0?void 0:n.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});return this.lastSearchInputDate=r,i&&this.optionsList.find(s=>s.value===i.value)}getOptionId(e){if(!e)return;let r=this.options.findIndex(i=>(0,bt.deepEqual)(i.value,e.value));if(r!==-1)return`option-${r}`}onSelectOption(e){e.stopPropagation(),this.setValue(e.target.value)}setValue(e,r=!0){let i=this.options.find(s=>(0,bt.deepEqual)(s.value,e));i&&this.selectOption(i,r)}selectOption(e,r=!0){var i,s;if(!(0,bt.deepEqual)((i=this.selectedOption)===null||i===void 0?void 0:i.value,e?.value)){this.selectedOption=e;for(let n of this.options)n.selected=n===e;r&&this.dispatchEvent(new CustomEvent("change",{detail:(s=this.selectedOption)===null||s===void 0?void 0:s.value}))}this.optionsDisplayed=!1}};J.elementDefinitions={"ft-input-label":Rt,"ft-typography":W,"ft-ripple":D,"ft-icon":ee,"ft-select-option":Ne};J.searchTimeoutMilliseconds=2e3;J.styles=[Jt,gp];Le([(0,be.property)({type:String})],J.prototype,"label",void 0);Le([(0,be.property)({type:String})],J.prototype,"ariaLabel",void 0);Le([(0,be.property)({type:String})],J.prototype,"helper",void 0);Le([(0,be.property)({type:Boolean})],J.prototype,"outlined",void 0);Le([(0,be.property)({type:Boolean})],J.prototype,"disabled",void 0);Le([(0,be.property)({type:Boolean})],J.prototype,"error",void 0);Le([(0,be.property)({type:Boolean})],J.prototype,"fixedMenuPosition",void 0);Le([(0,be.property)({type:Array})],J.prototype,"options",void 0);Le([(0,be.state)()],J.prototype,"selectedOption",void 0);Le([(0,be.state)()],J.prototype,"optionsDisplayed",void 0);Le([(0,be.state)()],J.prototype,"focusOptions",void 0);Le([(0,be.state)()],J.prototype,"currentSearch",void 0);Le([(0,be.state)()],J.prototype,"lastSearchInputDate",void 0);Le([(0,be.query)(".ft-select")],J.prototype,"container",void 0);Le([(0,be.query)(".ft-select--options")],J.prototype,"optionsMenu",void 0);Le([(0,be.query)(".ft-select--input-panel")],J.prototype,"mainPanel",void 0);Le([(0,be.query)("slot:not([name])")],J.prototype,"optionsSlot",void 0);var Ap=c(f());var Ep={"ft-select":J,"ft-select-option":Ne};(0,Ap.customElements)(Ep);var L=c(f()),ia=c(x());var Cp=c(x()),Tt=c(f()),$e={display:Tt.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:Tt.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:Tt.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:Tt.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:Tt.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:Tt.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:Tt.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:Tt.FtCssVariableFactory.external(Tt.designSystemVariables.borderRadiusM,"Design system")},wp=Cp.css`
2029
2035
  :host {
2030
- width: ${De.width};
2031
- height: ${De.height};
2032
- display: ${De.display};
2036
+ width: ${$e.width};
2037
+ height: ${$e.height};
2038
+ display: ${$e.display};
2033
2039
  overflow: hidden;
2034
- border-radius: ${De.borderRadiusM};
2040
+ border-radius: ${$e.borderRadiusM};
2035
2041
  background: linear-gradient(
2036
2042
  90deg,
2037
2043
  transparent,
2038
- ${De.glareColor} calc(0.45 * ${De.glareWidth}),
2039
- ${De.glareColor} calc(0.55 * ${De.glareWidth}),
2040
- transparent ${De.glareWidth}
2041
- ), ${De.backgroundColor};
2044
+ ${$e.glareColor} calc(0.45 * ${$e.glareWidth}),
2045
+ ${$e.glareColor} calc(0.55 * ${$e.glareWidth}),
2046
+ transparent ${$e.glareWidth}
2047
+ ), ${$e.backgroundColor};
2042
2048
  background-repeat: repeat-y;
2043
2049
  background-size: 100vw 100vh;
2044
2050
  background-attachment: fixed;
2045
- background-position: calc(${De.glareWidth} * -1) 0;
2046
- animation: shine ${De.animationDuration} infinite;
2051
+ background-position: calc(${$e.glareWidth} * -1) 0;
2052
+ animation: shine ${$e.animationDuration} infinite;
2047
2053
  animation-timing-function: linear;
2048
2054
  }
2049
2055
 
2050
2056
  @keyframes shine {
2051
2057
  to {
2052
- background-position: calc(100vw + ${De.glareWidth}) 0, calc(${De.glareWidth} * -1) 0;
2058
+ background-position: calc(100vw + ${$e.glareWidth}) 0, calc(${$e.glareWidth} * -1) 0;
2053
2059
  }
2054
2060
  }
2055
- `;var C={height:R.FtCssVariableFactory.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:R.FtCssVariableFactory.extend("--ft-search-bar-border-radius","",R.designSystemVariables.borderRadiusS),mobileOpenPosition:R.FtCssVariableFactory.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:R.FtCssVariableFactory.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:R.FtCssVariableFactory.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:R.FtCssVariableFactory.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:R.FtCssVariableFactory.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:R.FtCssVariableFactory.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:R.FtCssVariableFactory.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:R.FtCssVariableFactory.external(R.designSystemVariables.colorSurface,"Design system"),colorOnSurface:R.FtCssVariableFactory.external(R.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:R.FtCssVariableFactory.external(R.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:R.FtCssVariableFactory.external(R.designSystemVariables.colorOutline,"Design system"),colorPrimary:R.FtCssVariableFactory.external(R.designSystemVariables.colorPrimary,"Design system"),elevation02:R.FtCssVariableFactory.external(R.designSystemVariables.elevation02,"Design system"),buttonColor:R.FtCssVariableFactory.external(k.color,"Button"),buttonRippleColor:R.FtCssVariableFactory.external(k.rippleColor,"Button"),activeItemBorderColor:R.FtCssVariableFactory.extend("--ft-search-bar-active-border-color","",R.designSystemVariables.colorPrimary)},Op=ta.css`
2061
+ `;var w={height:L.FtCssVariableFactory.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:L.FtCssVariableFactory.extend("--ft-search-bar-border-radius","",L.designSystemVariables.borderRadiusS),mobileOpenPosition:L.FtCssVariableFactory.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:L.FtCssVariableFactory.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:L.FtCssVariableFactory.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:L.FtCssVariableFactory.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:L.FtCssVariableFactory.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:L.FtCssVariableFactory.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:L.FtCssVariableFactory.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:L.FtCssVariableFactory.external(L.designSystemVariables.colorSurface,"Design system"),colorOnSurface:L.FtCssVariableFactory.external(L.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:L.FtCssVariableFactory.external(L.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:L.FtCssVariableFactory.external(L.designSystemVariables.colorOutline,"Design system"),colorPrimary:L.FtCssVariableFactory.external(L.designSystemVariables.colorPrimary,"Design system"),elevation02:L.FtCssVariableFactory.external(L.designSystemVariables.elevation02,"Design system"),buttonColor:L.FtCssVariableFactory.external(T.color,"Button"),buttonRippleColor:L.FtCssVariableFactory.external(T.rippleColor,"Button"),activeItemBorderColor:L.FtCssVariableFactory.extend("--ft-search-bar-active-border-color","",L.designSystemVariables.colorPrimary)},Op=ia.css`
2056
2062
  * {
2057
2063
  box-sizing: border-box;
2058
2064
  }
@@ -2061,7 +2067,7 @@
2061
2067
  display: flex;
2062
2068
  flex-direction: column;
2063
2069
  gap: 8px;
2064
- color: ${C.colorOnSurface};
2070
+ color: ${w.colorOnSurface};
2065
2071
  outline: none;
2066
2072
  }
2067
2073
 
@@ -2070,21 +2076,21 @@
2070
2076
  }
2071
2077
 
2072
2078
  .ft-search-bar--mobile-menu-open {
2073
- position: ${C.mobileOpenPosition};
2074
- top: ${C.mobileOpenTop};
2075
- bottom: ${C.mobileOpenBottom};
2076
- left: ${C.mobileOpenLeft};
2077
- right: ${C.mobileOpenRight};
2078
- z-index: ${C.floatingZIndex};
2079
+ position: ${w.mobileOpenPosition};
2080
+ top: ${w.mobileOpenTop};
2081
+ bottom: ${w.mobileOpenBottom};
2082
+ left: ${w.mobileOpenLeft};
2083
+ right: ${w.mobileOpenRight};
2084
+ z-index: ${w.floatingZIndex};
2079
2085
  padding: 16px;
2080
2086
  }
2081
2087
 
2082
2088
  .ft-search-bar--mobile-menu-open:not(.ft-search-bar--forced-open) {
2083
- background: ${C.colorSurface};
2089
+ background: ${w.colorSurface};
2084
2090
  }
2085
2091
 
2086
2092
  .ft-search-bar--mobile-menu-open.ft-search-bar--forced-open {
2087
- position: ${C.mobileOpenPosition.get("static")};
2093
+ position: ${w.mobileOpenPosition.get("static")};
2088
2094
  }
2089
2095
 
2090
2096
  .ft-search-bar {
@@ -2092,20 +2098,20 @@
2092
2098
  display: flex;
2093
2099
  flex-direction: row;
2094
2100
  align-items: center;
2095
- height: ${C.height};
2101
+ height: ${w.height};
2096
2102
 
2097
- background: ${C.colorSurface};
2098
- border: 1px solid ${C.colorOutline};
2099
- border-radius: ${C.borderRadius};
2103
+ background: ${w.colorSurface};
2104
+ border: 1px solid ${w.colorOutline};
2105
+ border-radius: ${w.borderRadius};
2100
2106
  }
2101
2107
 
2102
2108
  .ft-search-bar--skeleton {
2103
- ${(0,R.setVariable)(De.height,C.height)};
2104
- ${(0,R.setVariable)(De.borderRadiusM,C.borderRadius)};
2109
+ ${(0,L.setVariable)($e.height,w.height)};
2110
+ ${(0,L.setVariable)($e.borderRadiusM,w.borderRadius)};
2105
2111
  }
2106
2112
 
2107
2113
  .ft-search-bar--floating-panel-open .ft-search-bar {
2108
- border-radius: ${C.borderRadius} ${C.borderRadius} 0 0;
2114
+ border-radius: ${w.borderRadius} ${w.borderRadius} 0 0;
2109
2115
  }
2110
2116
 
2111
2117
  .ft-search-bar--input-container {
@@ -2123,7 +2129,7 @@
2123
2129
  align-self: stretch;
2124
2130
  display: grid;
2125
2131
  padding: 0 8px;
2126
- border-radius: ${C.borderRadius};
2132
+ border-radius: ${w.borderRadius};
2127
2133
  }
2128
2134
 
2129
2135
  .ft-search-bar--dense .ft-search-bar--input-outline {
@@ -2132,7 +2138,7 @@
2132
2138
  }
2133
2139
 
2134
2140
  .ft-search-bar--input-container:focus-within .ft-search-bar--input-outline {
2135
- outline: 2px solid ${C.colorPrimary};
2141
+ outline: 2px solid ${w.colorPrimary};
2136
2142
  }
2137
2143
 
2138
2144
  .ft-search-bar--input {
@@ -2140,12 +2146,12 @@
2140
2146
  flex-grow: 1;
2141
2147
  border: none;
2142
2148
  background-color: transparent;
2143
- color: ${C.colorOnSurface};
2149
+ color: ${w.colorOnSurface};
2144
2150
  outline: none;
2145
2151
  }
2146
2152
 
2147
2153
  .ft-search-bar--input::placeholder {
2148
- color: ${C.colorOnSurfaceMedium};
2154
+ color: ${w.colorOnSurfaceMedium};
2149
2155
  }
2150
2156
 
2151
2157
  .ft-search-bar--actions {
@@ -2159,12 +2165,12 @@
2159
2165
  .ft-search-bar > ft-button,
2160
2166
  .ft-search-bar--actions ft-button {
2161
2167
  flex-shrink: 0;
2162
- ${(0,R.setVariable)(k.backgroundColor,"transparent")};
2168
+ ${(0,L.setVariable)(T.backgroundColor,"transparent")};
2163
2169
  }
2164
2170
 
2165
2171
  .ft-search-bar--left-action {
2166
- ${(0,R.setVariable)(k.borderRadius,`calc(${C.borderRadius} - 1px) 0 0 calc(${C.borderRadius} - 1px)`)};
2167
- border-right: 1px solid ${C.colorOutline};
2172
+ ${(0,L.setVariable)(T.borderRadius,`calc(${w.borderRadius} - 1px) 0 0 calc(${w.borderRadius} - 1px)`)};
2173
+ border-right: 1px solid ${w.colorOutline};
2168
2174
  height: 100%;
2169
2175
  }
2170
2176
 
@@ -2173,7 +2179,7 @@
2173
2179
  }
2174
2180
 
2175
2181
  .ft-search-bar--floating-panel-open .ft-search-bar--left-action {
2176
- ${(0,R.setVariable)(k.borderRadius,`calc(${C.borderRadius} - 1px) 0 0 0`)};
2182
+ ${(0,L.setVariable)(T.borderRadius,`calc(${w.borderRadius} - 1px) 0 0 0`)};
2177
2183
  }
2178
2184
 
2179
2185
  .ft-search-bar .ft-search-bar--launch-search,
@@ -2183,13 +2189,13 @@
2183
2189
 
2184
2190
  .ft-search-bar--separator {
2185
2191
  height: 20px;
2186
- border-right: 1px solid ${C.colorOutline};
2192
+ border-right: 1px solid ${w.colorOutline};
2187
2193
  }
2188
2194
 
2189
2195
  .ft-search-bar--left-action.ft-search-bar--content-locale {
2190
- ${(0,R.setVariable)(U.borderColor,"transparent")};
2191
- ${(0,R.setVariable)(U.borderRadius,`calc(${C.borderRadius} - 1px)`)};
2192
- ${(0,R.setVariable)(D.selectedOptionColor,C.buttonColor)};
2196
+ ${(0,L.setVariable)(B.borderColor,"transparent")};
2197
+ ${(0,L.setVariable)(B.borderRadius,`calc(${w.borderRadius} - 1px)`)};
2198
+ ${(0,L.setVariable)(I.selectedOptionColor,w.buttonColor)};
2193
2199
  }
2194
2200
 
2195
2201
  .ft-search-bar--left-action.ft-search-bar--content-locale,
@@ -2206,7 +2212,7 @@
2206
2212
  }
2207
2213
 
2208
2214
  .ft-search-bar--left-action.ft-search-bar--content-locale::part(selected-value) {
2209
- border-radius: calc(${C.borderRadius} - 1px) 0 0 calc(${C.borderRadius} - 1px);
2215
+ border-radius: calc(${w.borderRadius} - 1px) 0 0 calc(${w.borderRadius} - 1px);
2210
2216
  }
2211
2217
 
2212
2218
  [part="content-locale-selector"] {
@@ -2233,7 +2239,7 @@
2233
2239
  flex-shrink: 0;
2234
2240
  padding: 0 10px;
2235
2241
  margin-bottom: 8px;
2236
- ${(0,R.setVariable)(y.fontSize,"14px")};
2242
+ ${(0,L.setVariable)(y.fontSize,"14px")};
2237
2243
  }
2238
2244
 
2239
2245
  [part="content-locale-selector-label"] {
@@ -2241,18 +2247,18 @@
2241
2247
  flex-shrink: 1;
2242
2248
  flex-grow: 1;
2243
2249
  word-break: break-word;
2244
- ${(0,R.setVariable)(y.lineHeight,"22px")};
2245
- ${(0,R.setVariable)(y.fontWeight,"bold")};
2250
+ ${(0,L.setVariable)(y.lineHeight,"22px")};
2251
+ ${(0,L.setVariable)(y.fontWeight,"bold")};
2246
2252
  }
2247
2253
 
2248
- `,_p=ta.css`
2254
+ `,_p=ia.css`
2249
2255
  .ft-search-bar--presets {
2250
2256
  min-width: 200px;
2251
2257
  }
2252
2258
 
2253
2259
  .ft-search-bar--desktop-menu .ft-search-bar--presets {
2254
2260
  margin-right: auto;
2255
- ${(0,R.setVariable)(D.optionsZIndex,"2")};
2261
+ ${(0,L.setVariable)(I.optionsZIndex,"2")};
2256
2262
  }
2257
2263
 
2258
2264
  .ft-search-bar--desktop-menu {
@@ -2305,8 +2311,8 @@
2305
2311
 
2306
2312
  .ft-search-bar--desktop-menu .ft-search-bar--filters-container {
2307
2313
  display: block;
2308
- height: ${C.desktopFiltersHeight};
2309
- ${(0,R.setVariable)(Ve.gap,"16px")};
2314
+ height: ${w.desktopFiltersHeight};
2315
+ ${(0,L.setVariable)(He.gap,"16px")};
2310
2316
  }
2311
2317
 
2312
2318
  .ft-search-bar--desktop-menu ft-filter {
@@ -2321,15 +2327,15 @@
2321
2327
  }
2322
2328
 
2323
2329
  .ft-search-bar--desktop-menu [data-filters-count="2"] ft-filter {
2324
- max-width: calc(50% - ${Ve.gap} / 2);
2330
+ max-width: calc(50% - ${He.gap} / 2);
2325
2331
  }
2326
2332
 
2327
2333
  .ft-search-bar--desktop-menu [data-filters-count="3"] ft-filter {
2328
- max-width: max(250px, calc(33% - 2 * ${Ve.gap} / 3));
2334
+ max-width: max(250px, calc(33% - 2 * ${He.gap} / 3));
2329
2335
  }
2330
2336
 
2331
2337
  .ft-search-bar--desktop-menu [data-filters-count="4"] ft-filter {
2332
- max-width: max(250px, calc(25% - 3 * ${Ve.gap} / 4));
2338
+ max-width: max(250px, calc(25% - 3 * ${He.gap} / 4));
2333
2339
  }
2334
2340
 
2335
2341
  .ft-search-bar--hierarchical-filter {
@@ -2386,7 +2392,7 @@
2386
2392
  .ft-search-bar--filter-label-values {
2387
2393
  flex-grow: 0;
2388
2394
  flex-shrink: 1;
2389
- color: ${C.colorOnSurfaceMedium};
2395
+ color: ${w.colorOnSurfaceMedium};
2390
2396
  }
2391
2397
 
2392
2398
  ft-accordion-item::part(toggle) {
@@ -2406,16 +2412,16 @@
2406
2412
  .ft-search-bar--desktop-menu .ft-search-bar--launch-search {
2407
2413
  margin: 0;
2408
2414
  }
2409
- `;var Rp=c(v()),Tp=c(f());var gr=class extends Tp.FtLitElement{render(){return Rp.html`
2410
- `}};gr.elementDefinitions={};gr.styles=wp;var Lp=c(f());var kp={"ft-skeleton":gr};(0,Lp.customElements)(kp);var Bt=c(v()),ra=c(dr());var xi=c(f());var Ut=class{constructor(e,r=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new xi.Debouncer(r)}render(){let e=this.recentSearchesMatchingQuery;return Bt.html`
2415
+ `;var Rp=c(x()),Tp=c(f());var gr=class extends Tp.FtLitElement{render(){return Rp.html`
2416
+ `}};gr.elementDefinitions={};gr.styles=wp;var Lp=c(f());var kp={"ft-skeleton":gr};(0,Lp.customElements)(kp);var Ut=c(x()),na=c(dr());var xi=c(f());var zt=class{constructor(e,r=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new xi.Debouncer(r)}render(){let e=this.recentSearchesMatchingQuery;return Ut.html`
2411
2417
  <div class="ft-search-bar--suggestions ft-word-wrap ${this.shouldDisplaySuggestions?"ft-search-bar--suggestions-not-empty":""}"
2412
2418
  id="${this.listboxId}"
2413
2419
  role="listbox"
2414
2420
  aria-label="${this.searchBar.labelResolver.resolve("suggestionsAriaLabel")}"
2415
2421
  part="suggestions-container">
2416
- ${(0,ra.repeat)(e.slice(0,5),r=>r,(r,i)=>Bt.html`
2422
+ ${(0,na.repeat)(e.slice(0,5),r=>r,(r,i)=>Ut.html`
2417
2423
  <div part="suggestion-container"
2418
- class="${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)?"ft-search-bar--suggestions-selected":Bt.nothing}">
2424
+ class="${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)?"ft-search-bar--suggestions-selected":Ut.nothing}">
2419
2425
  <a href="${this.getRequestWithQuery(r)}"
2420
2426
  part="suggestions"
2421
2427
  class="ft-search-bar--suggestion ft-search-bar--recent-search"
@@ -2424,7 +2430,7 @@
2424
2430
  aria-selected="${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)}"
2425
2431
  tabindex="-1"
2426
2432
  aria-label="${r}"
2427
- @click=${n=>this.onSuggestClick(n,r)}>
2433
+ @click=${s=>this.onSuggestClick(s,r)}>
2428
2434
  <ft-ripple ?activated=${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)&&!this.searchBar.selectedSuggestRemoveRecent}></ft-ripple>
2429
2435
  <ft-icon variant="material" value="history" part="suggestion-icon"></ft-icon>
2430
2436
  <ft-typography variant="body1">${r}</ft-typography>
@@ -2438,13 +2444,13 @@
2438
2444
  tooltipPosition="left"
2439
2445
  tabindex="-1"
2440
2446
  ?activated=${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)&&this.searchBar.selectedSuggestRemoveRecent}
2441
- @click=${n=>this.removeRecentSearch(n,r)}>
2447
+ @click=${s=>this.removeRecentSearch(s,r)}>
2442
2448
  </ft-button>
2443
2449
  </div>
2444
2450
  `)}
2445
- ${(0,ra.repeat)(this.searchBar.suggestions,r=>r.value,(r,i)=>Bt.html`
2451
+ ${(0,na.repeat)(this.searchBar.suggestions,r=>r.value,(r,i)=>Ut.html`
2446
2452
  <div part="suggestion-container"
2447
- class="${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)?"ft-search-bar--suggestions-selected":Bt.nothing}">
2453
+ class="${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)?"ft-search-bar--suggestions-selected":Ut.nothing}">
2448
2454
  <a href="${this.getRequestWithQuery(r.value)}"
2449
2455
  part="suggestions"
2450
2456
  class="ft-search-bar--suggestion"
@@ -2452,7 +2458,7 @@
2452
2458
  aria-selected="${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)}"
2453
2459
  role="option"
2454
2460
  tabindex="-1"
2455
- @click=${n=>this.onSuggestClick(n,r.value)}>
2461
+ @click=${s=>this.onSuggestClick(s,r.value)}>
2456
2462
  <ft-ripple ?activated=${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)}></ft-ripple>
2457
2463
  ${this.getIcon(r)}
2458
2464
  <ft-typography variant="body1">${r.value}</ft-typography>
@@ -2460,9 +2466,9 @@
2460
2466
  </div>
2461
2467
  `)}
2462
2468
  </div>
2463
- `}recentSearchId(e){return this.listboxId+"-recent-"+e}suggestionId(e){return this.listboxId+"-suggest-"+e}getRequestWithQuery(e){return this.searchBar.searchRequestSerializer({...this.searchBar.request,paging:{page:1},query:e})}update(){return new Promise((e,r)=>{this.updateDebouncer.run(async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then(i=>i.suggestions).catch(()=>[]):[],e()})})}onSuggestClick(e,r){this.searchBar.setQuery(r),this.searchBar.onLaunchSearch()}removeRecentSearch(e,r){e.preventDefault(),e.stopPropagation(),this.selectSuggestion(null),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(i=>i.toLowerCase()!==r.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let r=e.type==="DOCUMENT"?ze.file_format:ze.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?be.BOOK:be.ARTICLE;break;case"DOCUMENT":i=mn(e.mimeType,e.filenameExtension);break;case"TOPIC":i=be.TOPICS;break;case"HTML_PACKAGE":i=be.BOX_CODE;break;case"HTML_PACKAGE_PAGE":i=be.FILE_CODE;break}return Bt.html`
2469
+ `}recentSearchId(e){return this.listboxId+"-recent-"+e}suggestionId(e){return this.listboxId+"-suggest-"+e}getRequestWithQuery(e){return this.searchBar.searchRequestSerializer({...this.searchBar.request,paging:{page:1},query:e})}update(){return new Promise((e,r)=>{this.updateDebouncer.run(async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then(i=>i.suggestions).catch(()=>[]):[],e()})})}onSuggestClick(e,r){this.searchBar.setQuery(r),this.searchBar.onLaunchSearch()}removeRecentSearch(e,r){e.preventDefault(),e.stopPropagation(),this.selectSuggestion(null),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(i=>i.toLowerCase()!==r.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let r=e.type==="DOCUMENT"?Ve.file_format:Ve.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?ge.BOOK:ge.ARTICLE;break;case"DOCUMENT":i=ys(e.mimeType,e.filenameExtension);break;case"TOPIC":i=ge.TOPICS;break;case"HTML_PACKAGE":i=ge.BOX_CODE;break;case"HTML_PACKAGE_PAGE":i=ge.FILE_CODE;break}return Ut.html`
2464
2470
  <ft-icon .variant=${r} .value=${i} part="suggestion-icon"></ft-icon>
2465
- `}focusNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}focusPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}getFirstSuggestionElement(){return this.searchBar.querySelector("[part=suggestion-container]")}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}get selectedSuggestOption(){var e;return(e=this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']"))===null||e===void 0?void 0:e.parentElement}get selectedSuggestOptionLink(){return this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']")}get selectedSuggestRemoveRecentButton(){var e;return(e=this.selectedSuggestOption)===null||e===void 0?void 0:e.querySelector("[part=remove-suggestion]")}getLastSuggestionElement(){let e=this.searchBar.querySelectorAll("[part=suggestion-container]");return e.length>0?e[e.length-1]:null}selectSuggestion(e){var r;this.searchBar.selectedSuggestRemoveRecent=!1,e?this.searchBar.selectedSuggestOptionId=(r=e.querySelector("[part=suggestions]"))===null||r===void 0?void 0:r.id:this.searchBar.selectedSuggestOptionId=void 0}focusArrowLeft(){this.searchBar.selectedSuggestRemoveRecent?this.searchBar.selectedSuggestRemoveRecent=!1:this.selectSuggestion(null)}focusArrowRight(){!this.searchBar.selectedSuggestRemoveRecent&&this.selectedSuggestRemoveRecentButton?this.searchBar.selectedSuggestRemoveRecent=!0:this.selectSuggestion(null)}get shouldDisplaySuggestions(){return this.searchBar.displaySuggestListbox&&(this.searchBar.suggestions.length>0||this.recentSearchesMatchingQuery.length>0)}get recentSearchesMatchingQuery(){return this.searchBar.recentSearches.filter(e=>e.toLowerCase().includes(this.searchBar.query.toLowerCase()))}};Ut.styles=[xi.wordWrap,Bt.css`
2471
+ `}focusNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}focusPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}getFirstSuggestionElement(){return this.searchBar.querySelector("[part=suggestion-container]")}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}get selectedSuggestOption(){var e;return(e=this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']"))===null||e===void 0?void 0:e.parentElement}get selectedSuggestOptionLink(){return this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']")}get selectedSuggestRemoveRecentButton(){var e;return(e=this.selectedSuggestOption)===null||e===void 0?void 0:e.querySelector("[part=remove-suggestion]")}getLastSuggestionElement(){let e=this.searchBar.querySelectorAll("[part=suggestion-container]");return e.length>0?e[e.length-1]:null}selectSuggestion(e){var r;this.searchBar.selectedSuggestRemoveRecent=!1,e?this.searchBar.selectedSuggestOptionId=(r=e.querySelector("[part=suggestions]"))===null||r===void 0?void 0:r.id:this.searchBar.selectedSuggestOptionId=void 0}focusArrowLeft(){this.searchBar.selectedSuggestRemoveRecent?this.searchBar.selectedSuggestRemoveRecent=!1:this.selectSuggestion(null)}focusArrowRight(){!this.searchBar.selectedSuggestRemoveRecent&&this.selectedSuggestRemoveRecentButton?this.searchBar.selectedSuggestRemoveRecent=!0:this.selectSuggestion(null)}get shouldDisplaySuggestions(){return this.searchBar.displaySuggestListbox&&(this.searchBar.suggestions.length>0||this.recentSearchesMatchingQuery.length>0)}get recentSearchesMatchingQuery(){return this.searchBar.recentSearches.filter(e=>e.toLowerCase().includes(this.searchBar.query.toLowerCase()))}};zt.styles=[xi.wordWrap,Ut.css`
2466
2472
  .ft-search-bar--mobile .ft-search-bar--suggestions {
2467
2473
  flex-grow: 1;
2468
2474
  flex-shrink: 1;
@@ -2471,7 +2477,7 @@
2471
2477
  }
2472
2478
 
2473
2479
  .ft-search-bar--mobile-menu-open .ft-search-bar--suggestions {
2474
- border-top: 1px solid ${C.colorOutline};
2480
+ border-top: 1px solid ${w.colorOutline};
2475
2481
  }
2476
2482
 
2477
2483
  .ft-search-bar--mobile-menu-open .ft-search-bar--suggestions {
@@ -2481,15 +2487,15 @@
2481
2487
  .ft-search-bar--floating-panel,
2482
2488
  .ft-search-bar--desktop .ft-search-bar--suggestions {
2483
2489
  position: absolute;
2484
- z-index: ${C.floatingZIndex};
2490
+ z-index: ${w.floatingZIndex};
2485
2491
  top: 100%;
2486
2492
  left: -1px;
2487
2493
  right: -1px;
2488
2494
  display: none;
2489
- background: ${C.colorSurface};
2490
- border: 1px solid ${C.colorOutline};
2491
- border-radius: 0 0 ${C.borderRadius} ${C.borderRadius};
2492
- box-shadow: ${C.elevation02};
2495
+ background: ${w.colorSurface};
2496
+ border: 1px solid ${w.colorOutline};
2497
+ border-radius: 0 0 ${w.borderRadius} ${w.borderRadius};
2498
+ box-shadow: ${w.elevation02};
2493
2499
  outline: none;
2494
2500
  }
2495
2501
 
@@ -2508,10 +2514,10 @@
2508
2514
 
2509
2515
  [part~="suggestion-container"].ft-search-bar--suggestions-selected {
2510
2516
  outline: none;
2511
- box-shadow: inset 3px 0 0 ${C.activeItemBorderColor};
2517
+ box-shadow: inset 3px 0 0 ${w.activeItemBorderColor};
2512
2518
  }
2513
2519
  [part~="suggestion-container"]:hover {
2514
- box-shadow: inset 3px 0 0 ${C.activeItemBorderColor};
2520
+ box-shadow: inset 3px 0 0 ${w.activeItemBorderColor};
2515
2521
  }
2516
2522
 
2517
2523
  [part~="remove-suggestion"] {
@@ -2527,7 +2533,7 @@
2527
2533
  gap: 8px;
2528
2534
  cursor: pointer;
2529
2535
  flex-grow: 1;
2530
- color: ${C.colorOnSurface};
2536
+ color: ${w.colorOnSurface};
2531
2537
  min-height: 52px;
2532
2538
  }
2533
2539
 
@@ -2540,7 +2546,7 @@
2540
2546
  }
2541
2547
 
2542
2548
  .ft-search-bar--recent-search + .ft-search-bar--suggestion:not(.ft-search-bar--recent-search) {
2543
- border-top: 1px solid ${C.colorOutline};
2549
+ border-top: 1px solid ${w.colorOutline};
2544
2550
  }
2545
2551
 
2546
2552
  .ft-search-bar--suggestion ft-typography {
@@ -2550,9 +2556,9 @@
2550
2556
  }
2551
2557
 
2552
2558
  ft-ripple {
2553
- ${(0,xi.setVariable)(q.opacityContentOnSurfaceHover,q.opacityContentOnSurfaceSelected)}
2559
+ ${(0,xi.setVariable)(z.opacityContentOnSurfaceHover,z.opacityContentOnSurfaceSelected)}
2554
2560
  }
2555
- `];var je=c(v()),ia=c(dr());var kn=c(f());var zt=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return je.html``;let e=this.searchBar.isMobile(),r=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),i=je.html`
2561
+ `];var je=c(x()),sa=c(dr());var $s=c(f());var Vt=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return je.html``;let e=this.searchBar.isMobile(),r=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),i=je.html`
2556
2562
  ${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?je.html`
2557
2563
  <ft-chip part="selected-filters selected-filter-ft-locale"
2558
2564
  ?dense=${this.searchBar.dense&&!e}
@@ -2563,7 +2569,7 @@
2563
2569
  ${this.getLocaleLabel(this.searchBar.contentLocale)}
2564
2570
  </ft-chip>
2565
2571
  `:null}
2566
- ${(0,ia.repeat)(this.searchBar.facets,n=>n.key,n=>{let s=hd(n);return(0,ia.repeat)(s,o=>{let a=n.label+": "+ud(o),l=n.key.replace(":","-"),u=je.html`
2572
+ ${(0,sa.repeat)(this.searchBar.facets,s=>s.key,s=>{let n=hd(s);return(0,sa.repeat)(n,o=>{let a=s.label+": "+ud(o),l=s.key.replace(":","-"),u=je.html`
2567
2573
  <ft-chip
2568
2574
  part="selected-filters selected-filter-${l}"
2569
2575
  ?dense=${this.searchBar.dense&&!e}
@@ -2572,9 +2578,9 @@
2572
2578
  icon="${e?je.nothing:"close"}"
2573
2579
  label="${a}"
2574
2580
  title="${r?a:je.nothing}"
2575
- @click=${()=>this.openMobileFilters(n.key)}
2576
- @icon-click=${()=>this.searchBar.setFilter(n.key,s.filter(d=>d!==o))}
2577
- data-key="${n.key}"
2581
+ @click=${()=>this.openMobileFilters(s.key)}
2582
+ @icon-click=${()=>this.searchBar.setFilter(s.key,n.filter(d=>d!==o))}
2583
+ data-key="${s.key}"
2578
2584
  data-value="${o}">
2579
2585
  ${cd(o)}
2580
2586
  </ft-chip>
@@ -2602,7 +2608,7 @@
2602
2608
  <div class="ft-search-bar--selected-filters" part="selected-filters-container">
2603
2609
  ${i}
2604
2610
  </div>
2605
- `}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var r;return(r=this.searchBar.availableContentLocales.filter(i=>{var n;return((n=i.lang)!==null&&n!==void 0?n:"").toLowerCase()===(e??"").toLowerCase()}).map(i=>i.label).pop())!==null&&r!==void 0?r:e}};zt.styles=je.css`
2611
+ `}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var r;return(r=this.searchBar.availableContentLocales.filter(i=>{var s;return((s=i.lang)!==null&&s!==void 0?s:"").toLowerCase()===(e??"").toLowerCase()}).map(i=>i.label).pop())!==null&&r!==void 0?r:e}};Vt.styles=je.css`
2606
2612
  .ft-search-bar--selected-filters:not(ft-snap-scroll) {
2607
2613
  flex-shrink: 0;
2608
2614
  display: flex;
@@ -2613,7 +2619,7 @@
2613
2619
 
2614
2620
  ft-snap-scroll.ft-search-bar--selected-filters {
2615
2621
  overflow: hidden;
2616
- ${(0,kn.setVariable)(Ve.gap,"4px")};
2622
+ ${(0,$s.setVariable)(He.gap,"4px")};
2617
2623
  }
2618
2624
 
2619
2625
  ft-snap-scroll.ft-search-bar--selected-filters::part(content) {
@@ -2621,8 +2627,8 @@
2621
2627
  }
2622
2628
 
2623
2629
  .ft-search-bar--desktop ft-snap-scroll.ft-search-bar--selected-filters {
2624
- ${(0,kn.setVariable)(ke.iconSize,"17px")};
2625
- ${(0,kn.setVariable)(ke.fontSize,"12px")};
2630
+ ${(0,$s.setVariable)(ke.iconSize,"17px")};
2631
+ ${(0,$s.setVariable)(ke.fontSize,"12px")};
2626
2632
  }
2627
2633
 
2628
2634
  .ft-search-bar--selected-filters * {
@@ -2632,7 +2638,7 @@
2632
2638
  .ft-search-bar--selected-filters ft-chip {
2633
2639
  flex-grow: 0;
2634
2640
  }
2635
- `;var Tt=c(v());var $p=c(Je()),Dp=c(f()),zf=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Si=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new zt(e),this.suggestManager=i??new Ut(e)}render(){var e;let r={"ft-search-bar--container":!0,"ft-search-bar--mobile":!0,"ft-search-bar--mobile-menu-open":this.searchBar.isMobileMenuOpen(),"ft-search-bar--forced-open":this.searchBar.forceMobileMenuOpen};return Tt.html`
2641
+ `;var kt=c(x());var $p=c(Je()),Dp=c(f()),zf=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Si=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new Vt(e),this.suggestManager=i??new zt(e)}render(){var e;let r={"ft-search-bar--container":!0,"ft-search-bar--mobile":!0,"ft-search-bar--mobile-menu-open":this.searchBar.isMobileMenuOpen(),"ft-search-bar--forced-open":this.searchBar.forceMobileMenuOpen};return kt.html`
2636
2642
  <div class="${(0,$p.classMap)(r)}" part="container" tabindex="-1">
2637
2643
  <div class="ft-search-bar" role="search">
2638
2644
  <div class="ft-search-bar--input-container" part="input-container">
@@ -2642,7 +2648,7 @@
2642
2648
  aria-autocomplete="list"
2643
2649
  aria-controls="${this.suggestManager.listboxId}"
2644
2650
  aria-expanded="${this.searchBar.displaySuggestListbox}"
2645
- aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:Tt.nothing}"
2651
+ aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:kt.nothing}"
2646
2652
  part="input"
2647
2653
  type="search"
2648
2654
  placeholder="${this.searchBar.labelResolver.resolve("inputPlaceHolder")}"
@@ -2656,7 +2662,7 @@
2656
2662
  </div>
2657
2663
  ${this.searchBar.displayFacets?this.searchBar.renderFacetsActions():this.selectedFacetsManager.render()}
2658
2664
  ${this.searchBar.displayFacets?this.searchBar.renderMobileFacets():this.suggestManager.render()}
2659
- ${this.searchBar.isMobileMenuOpen()||this.searchBar.displayFacets?Tt.html`
2665
+ ${this.searchBar.isMobileMenuOpen()||this.searchBar.displayFacets?kt.html`
2660
2666
  <ft-button class="ft-search-bar--launch-search"
2661
2667
  href="${this.searchBar.searchRequestSerializer(this.searchBar.request)}"
2662
2668
  part="launch-search-in-panel"
@@ -2664,11 +2670,11 @@
2664
2670
  @click=${()=>this.searchBar.onLaunchSearch()}>
2665
2671
  ${this.searchBar.labelResolver.resolve("searchButton")}
2666
2672
  </ft-button>
2667
- `:Tt.nothing}
2673
+ `:kt.nothing}
2668
2674
  </div>
2669
- `}renderMobileSearchBarButtons(){let e=this.searchBar.query||this.searchBar.isMobileMenuOpen()&&!this.searchBar.forceMobileMenuOpen;return Tt.html`
2675
+ `}renderMobileSearchBarButtons(){let e=this.searchBar.query||this.searchBar.isMobileMenuOpen()&&!this.searchBar.forceMobileMenuOpen;return kt.html`
2670
2676
  <div class="ft-search-bar--actions" part="search-bar-actions">
2671
- ${e?Tt.html`
2677
+ ${e?kt.html`
2672
2678
  <ft-button class="ft-search-bar--clear-query"
2673
2679
  part="clear-query"
2674
2680
  icon="close"
@@ -2678,7 +2684,7 @@
2678
2684
  @click=${async()=>{this.searchBar.setQuery(""),this.searchBar.mobileMenuOpen=!1,this.searchBar.displayFacets=!1}}
2679
2685
  ></ft-button>
2680
2686
  <div class="ft-search-bar--separator"></div>
2681
- `:Tt.nothing}
2687
+ `:kt.nothing}
2682
2688
  <ft-button class="ft-search-bar--launch-search"
2683
2689
  href="${this.searchBar.isMobileMenuOpen()?this.searchBar.searchRequestSerializer(this.searchBar.request):""}"
2684
2690
  part="launch-search-in-bar"
@@ -2689,10 +2695,10 @@
2689
2695
  @click=${()=>{var r;return this.searchBar.isMobileMenuOpen()?this.searchBar.onLaunchSearch():(r=this.searchBar.input)===null||r===void 0?void 0:r.focus()}}
2690
2696
  ></ft-button>
2691
2697
  </div>
2692
- `}onSearchBarKeyDown(e){var r;switch(e.key){case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(r=this.suggestManager.selectedSuggestRemoveRecentButton)===null||r===void 0||r.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}};Si.styles=Tt.css`
2698
+ `}onSearchBarKeyDown(e){var r;switch(e.key){case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(r=this.suggestManager.selectedSuggestRemoveRecentButton)===null||r===void 0||r.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}};Si.styles=kt.css`
2693
2699
 
2694
- `;zf([(0,Dp.ignoreComposingEvents)()],Si.prototype,"onSearchBarKeyDown",null);var qe=c(v()),Pp=c(dr());var Ip=c(Je()),Mp=c(f()),Vf=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Ei=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new zt(e),this.suggestManager=i??new Ut(e)}render(){var e;let r={"ft-search-bar--container":!0,"ft-search-bar--dense":this.searchBar.dense,"ft-search-bar--desktop":!0,"ft-search-bar--floating-panel-open":this.searchBar.displayFacets&&!this.searchBar.forceMenuOpen,"ft-search-bar--forced-open":this.searchBar.forceMenuOpen};return qe.html`
2695
- <div class="${(0,Ip.classMap)(r)}" part="container" tabindex="-1">
2700
+ `;zf([(0,Dp.ignoreComposingEvents)()],Si.prototype,"onSearchBarKeyDown",null);var qe=c(x()),Ip=c(dr());var Pp=c(Je()),Mp=c(f()),Vf=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Ei=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new Vt(e),this.suggestManager=i??new zt(e)}render(){var e;let r={"ft-search-bar--container":!0,"ft-search-bar--dense":this.searchBar.dense,"ft-search-bar--desktop":!0,"ft-search-bar--floating-panel-open":this.searchBar.displayFacets&&!this.searchBar.forceMenuOpen,"ft-search-bar--forced-open":this.searchBar.forceMenuOpen};return qe.html`
2701
+ <div class="${(0,Pp.classMap)(r)}" part="container" tabindex="-1">
2696
2702
  <div class="ft-search-bar" part="search-bar" role="search">
2697
2703
  ${this.renderSearchBarLeftAction()}
2698
2704
  <div class="ft-search-bar--input-container" part="input-container" tabindex="-1">
@@ -2739,7 +2745,7 @@
2739
2745
  ariaLabel="${this.searchBar.labelResolver.resolve("selectLocale")}"
2740
2746
  .exportpartsPrefixes=${["content-locale","select-ft-locale"]}
2741
2747
  @change=${e=>this.searchBar.contentLocale=e.detail==null?void 0:e.detail}>
2742
- ${(0,Pp.repeat)(this.searchBar.availableContentLocales,e=>e.lang,e=>qe.html`
2748
+ ${(0,Ip.repeat)(this.searchBar.availableContentLocales,e=>e.lang,e=>qe.html`
2743
2749
  <ft-select-option .value=${e.lang}
2744
2750
  label="${e.label}"
2745
2751
  ?selected=${e.lang==this.searchBar.contentLocale}>
@@ -2770,47 +2776,47 @@
2770
2776
  </div>
2771
2777
  `}onSearchBarKeyDown(e){var r;switch(["Escape","Tab","Shift"].includes(e.key)||(this.searchBar.displaySuggestListbox=!0),e.key){case"Tab":this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0;break;case"Escape":this.suggestManager.shouldDisplaySuggestions&&(e.stopPropagation(),e.preventDefault(),this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0),this.searchBar.mobileMenuOpen=!1;break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(r=this.suggestManager.selectedSuggestRemoveRecentButton)===null||r===void 0||r.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}onClick(){this.onFocus()}onFocus(){this.searchBar.reactToFocus&&(this.searchBar.displaySuggestListbox=!0)}};Ei.styles=qe.css`
2772
2778
 
2773
- `;Vf([(0,Mp.ignoreComposingEvents)()],Ei.prototype,"onSearchBarKeyDown",null);var N=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s};window.fluidtopics==null&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");var Np={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},sa=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Hf=()=>{},O=class extends Y.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.forceMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new Y.ParametrizedLabelResolver(Np,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new Y.SearchPlaceConverter(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=gt.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.reactToFocus=!0,this.displaySuggestListbox=!1,this.selectedSuggestRemoveRecent=!1,this.suggestManager=new Ut(this),this.selectedFacetsManager=new zt(this),this.desktopSearchBarManager=new Ei(this),this.mobileSearchBarManager=new Si(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new Y.Debouncer(10),this.updateLocalesDebouncer=new Y.Debouncer(10),this.initSearchData=()=>{this.availableContentLocalesInitialized=!1,this.facetsLoaded=!1,this.facetsInitialized=!1,this.updateLocalesDebouncer.run(()=>{var e;(e=this.api)===null||e===void 0||e.getAvailableSearchLocales().then(r=>r.contentLocales).catch(()=>[]).then(r=>{this.availableContentLocales=r,this.availableContentLocalesInitialized=!0})}),this.updateFacets()},this.facetsLoaded=!1,this.updateFacetsDebouncer=new Y.Debouncer(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(r=>r===this.floatingContainer))},this.closeSuggestListbox=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.compareUnknownFilters=(e,r)=>e.valueFilter&&r.valueFilter?this.compareValueFilters(e.valueFilter,r.valueFilter):e.dateFilter&&r.dateFilter?this.compareDateFilters(e.dateFilter,r.dateFilter):e.rangeFilter&&r.rangeFilter?this.compareRangeFilters(e.rangeFilter,r.rangeFilter):!1,this.compareValueFilters=(e,r)=>e.negative==r.negative&&e.values.length===r.values.length&&e.values.every(i=>r.values.includes(i)),this.compareDateFilters=(e,r)=>e.type===r.type,this.compareRangeFilters=(e,r)=>e.from===r.from&&e.to===r.to,this.compareFilters=(e,r)=>e.key===r.key&&this.compareUnknownFilters(e,r),this.compareRequests=(e,r)=>(e.contentLocale==null||r.contentLocale==null||e.contentLocale===r.contentLocale)&&e.metadataFilters.length===r.metadataFilters.length&&e.metadataFilters.every(i=>r.metadataFilters.some(n=>this.compareFilters(i,n)))}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,metadataFilters:this.metadataFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){let e=this.metadataFilters.filter(r=>{var i,n;return((n=(i=r.valueFilter)===null||i===void 0?void 0:i.values.length)!==null&&n!==void 0?n:0)>0&&!this.displayedFilters.includes(r.key)}).map(r=>({id:r.key}));return[...this.displayedFilters.map(r=>({id:r})),...e]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,metadataFilters:this.metadataFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===gt.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var e;(e=this.container)===null||e===void 0||e.focus()}async focusInput(e=!1){this.reactToFocus=e,await(0,Y.waitFor)(()=>this.input,50),this.input.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return H.html`
2779
+ `;Vf([(0,Mp.ignoreComposingEvents)()],Ei.prototype,"onSearchBarKeyDown",null);var N=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n};window.fluidtopics==null&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");var Np={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},oa=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Hf=()=>{},_=class extends X.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.forceMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new X.ParametrizedLabelResolver(Np,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new X.SearchPlaceConverter(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=gt.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.reactToFocus=!0,this.displaySuggestListbox=!1,this.selectedSuggestRemoveRecent=!1,this.suggestManager=new zt(this),this.selectedFacetsManager=new Vt(this),this.desktopSearchBarManager=new Ei(this),this.mobileSearchBarManager=new Si(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new X.Debouncer(10),this.updateLocalesDebouncer=new X.Debouncer(10),this.initSearchData=()=>{this.availableContentLocalesInitialized=!1,this.facetsLoaded=!1,this.facetsInitialized=!1,this.updateLocalesDebouncer.run(()=>{var e;(e=this.api)===null||e===void 0||e.getAvailableSearchLocales().then(r=>r.contentLocales).catch(()=>[]).then(r=>{this.availableContentLocales=r,this.availableContentLocalesInitialized=!0})}),this.updateFacets()},this.facetsLoaded=!1,this.updateFacetsDebouncer=new X.Debouncer(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(r=>r===this.floatingContainer))},this.closeSuggestListbox=e=>{e.composedPath().some(s=>s===this||s===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.compareUnknownFilters=(e,r)=>e.valueFilter&&r.valueFilter?this.compareValueFilters(e.valueFilter,r.valueFilter):e.dateFilter&&r.dateFilter?this.compareDateFilters(e.dateFilter,r.dateFilter):e.rangeFilter&&r.rangeFilter?this.compareRangeFilters(e.rangeFilter,r.rangeFilter):!1,this.compareValueFilters=(e,r)=>e.negative==r.negative&&e.values.length===r.values.length&&e.values.every(i=>r.values.includes(i)),this.compareDateFilters=(e,r)=>e.type===r.type,this.compareRangeFilters=(e,r)=>e.from===r.from&&e.to===r.to,this.compareFilters=(e,r)=>e.key===r.key&&this.compareUnknownFilters(e,r),this.compareRequests=(e,r)=>(e.contentLocale==null||r.contentLocale==null||e.contentLocale===r.contentLocale)&&e.metadataFilters.length===r.metadataFilters.length&&e.metadataFilters.every(i=>r.metadataFilters.some(s=>this.compareFilters(i,s)))}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,metadataFilters:this.metadataFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){let e=this.metadataFilters.filter(r=>{var i,s;return((s=(i=r.valueFilter)===null||i===void 0?void 0:i.values.length)!==null&&s!==void 0?s:0)>0&&!this.displayedFilters.includes(r.key)}).map(r=>({id:r.key}));return[...this.displayedFilters.map(r=>({id:r})),...e]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,metadataFilters:this.metadataFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===gt.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var e;(e=this.container)===null||e===void 0||e.focus()}async focusInput(e=!1){this.reactToFocus=e,await(0,X.waitFor)(()=>this.input,50),this.input.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return j.html`
2774
2780
  <ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
2775
2781
  <div class="sr-only" aria-live="polite" aria-atomic="true">
2776
2782
  ${this.renderLiveText()}
2777
2783
  </div>
2778
2784
  ${this.renderSearchBar()}
2779
- `}renderLiveText(){return this.suggestManager.shouldDisplaySuggestions?this.labelResolver.resolve("ariaLiveSuggestions",this.suggestManager.recentSearchesMatchingQuery.length,this.suggestions.length):""}renderSearchBar(){return this.facetsInitialized&&this.availableContentLocalesInitialized?this.isMobile()?this.mobileSearchBarManager.render():this.desktopSearchBarManager.render():H.html`
2785
+ `}renderLiveText(){return this.suggestManager.shouldDisplaySuggestions?this.labelResolver.resolve("ariaLiveSuggestions",this.suggestManager.recentSearchesMatchingQuery.length,this.suggestions.length):""}renderSearchBar(){return this.facetsInitialized&&this.availableContentLocalesInitialized?this.isMobile()?this.mobileSearchBarManager.render():this.desktopSearchBarManager.render():j.html`
2780
2786
  <ft-skeleton class="ft-search-bar--container ft-search-bar--skeleton"
2781
2787
  part="loader"
2782
2788
  tabindex="-1"></ft-skeleton>
2783
- `}renderMobileFacets(){let e=this.availableContentLocales.filter(r=>r.lang===this.contentLocale).pop();return H.html`
2789
+ `}renderMobileFacets(){let e=this.availableContentLocales.filter(r=>r.lang===this.contentLocale).pop();return j.html`
2784
2790
  <ft-accordion class="ft-search-bar--filters-container">
2785
- ${this.hasLocaleSelector()?H.html`
2791
+ ${this.hasLocaleSelector()?j.html`
2786
2792
  <ft-accordion-item data-facet-key="ft:locale">
2787
2793
  <div class="ft-search-bar--filter-label" slot="toggle">
2788
2794
  <ft-typography variant="button">${this.labelResolver.resolve("contentLocaleSelector")}
2789
2795
  </ft-typography>
2790
- ${e?.label?H.html`
2796
+ ${e?.label?j.html`
2791
2797
  <ft-typography class="ft-search-bar--filter-label-values" variant="body2">
2792
2798
  ${e?.label}
2793
2799
  </ft-typography>
2794
- `:H.nothing}
2800
+ `:j.nothing}
2795
2801
  </div>
2796
2802
  <div part="content-locale-selector">
2797
2803
  ${this.getContentLocaleRadioGroup()}
2798
2804
  </div>
2799
2805
  </ft-accordion-item>
2800
2806
  `:null}
2801
- ${(0,cs.repeat)(this.facets,r=>r.key,r=>{let i=qo(r),n=r.key.replace(":","-"),s=pd(i);return r.rootNodes.length>0?H.html`
2807
+ ${(0,un.repeat)(this.facets,r=>r.key,r=>{let i=Ko(r),s=r.key.replace(":","-"),n=pd(i);return r.rootNodes.length>0?j.html`
2802
2808
  <ft-accordion-item data-facet-key="${r.key}">
2803
2809
  <div class="ft-search-bar--filter-label" slot="toggle">
2804
2810
  <ft-typography variant="button">${r.label}</ft-typography>
2805
- ${s.length>0?H.html`
2811
+ ${n.length>0?j.html`
2806
2812
  <ft-typography class="ft-search-bar--filter-label-values" variant="body2">
2807
- ${s.join(", ")}
2813
+ ${n.join(", ")}
2808
2814
  </ft-typography>
2809
- `:H.nothing}
2815
+ `:j.nothing}
2810
2816
  </div>
2811
2817
  <ft-filter
2812
- part="filters filter filter-${n}"
2813
- .exportpartsPrefixes=${["filter","filter-"+n]}
2818
+ part="filters filter filter-${s}"
2819
+ .exportpartsPrefixes=${["filter","filter-"+s]}
2814
2820
  id="${i.id}"
2815
2821
  filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",i.label)}"
2816
2822
  clearButtonLabel="${this.labelResolver.resolve("clearFilterButton")}"
@@ -2823,24 +2829,24 @@
2823
2829
  @change=${o=>this.setFilter(i.id,o.detail)}
2824
2830
  ></ft-filter>
2825
2831
  </ft-accordion-item>
2826
- `:H.nothing})}
2832
+ `:j.nothing})}
2827
2833
  </ft-accordion>
2828
- `}getContentLocaleRadioGroup(){var e;return H.html`
2834
+ `}getContentLocaleRadioGroup(){var e;return j.html`
2829
2835
  <ft-radio-group aria-labelledby="content_locale_radio_group_label"
2830
2836
  @change=${r=>{this.contentLocale=r.detail==="all"?void 0:r.detail,this.clearFilters()}}>
2831
- ${(0,cs.repeat)((e=this.availableContentLocales)!==null&&e!==void 0?e:[],r=>r.lang,r=>{var i;return H.html`
2837
+ ${(0,un.repeat)((e=this.availableContentLocales)!==null&&e!==void 0?e:[],r=>r.lang,r=>{var i;return j.html`
2832
2838
  <ft-radio value="${(i=r.lang)!==null&&i!==void 0?i:"all"}"
2833
2839
  ?checked=${r.lang==this.contentLocale}>
2834
2840
  ${r.label}
2835
2841
  </ft-radio>
2836
2842
  `})}
2837
2843
  </ft-radio-group>
2838
- `}renderDesktopMenu(){return this.hasFacets()?H.html`
2844
+ `}renderDesktopMenu(){return this.hasFacets()?j.html`
2839
2845
  <div class="ft-search-bar--desktop-menu">
2840
2846
  ${this.renderFacetsActions()}
2841
2847
  ${this.renderDesktopFacets()}
2842
2848
  <div class="ft-search-bar--facets-actions">
2843
- ${this.forceMenuOpen?this.renderDesktopClearFilters():H.nothing}
2849
+ ${this.forceMenuOpen?this.renderDesktopClearFilters():j.nothing}
2844
2850
  <ft-button class="ft-search-bar--launch-search"
2845
2851
  href="${this.searchRequestSerializer(this.request)}"
2846
2852
  part="launch-search-in-panel"
@@ -2850,38 +2856,38 @@
2850
2856
  </ft-button>
2851
2857
  </div>
2852
2858
  </div>
2853
- `:H.nothing}renderFacetsActions(){var e;return H.html`
2859
+ `:j.nothing}renderFacetsActions(){var e;return j.html`
2854
2860
  <div class="ft-search-bar--facets-actions">
2855
- ${this.hasPresets?H.html`
2861
+ ${this.hasPresets?j.html`
2856
2862
  <ft-select
2857
2863
  class="ft-search-bar--presets"
2858
2864
  part="presets"
2859
2865
  label="${this.labelResolver.resolve("presetsSelector")}"
2860
2866
  outlined
2861
2867
  @change=${r=>this.selectedPreset=r.detail}>
2862
- ${(0,cs.repeat)((e=this.presets)!==null&&e!==void 0?e:[],r=>r.name,r=>H.html`
2868
+ ${(0,un.repeat)((e=this.presets)!==null&&e!==void 0?e:[],r=>r.name,r=>j.html`
2863
2869
  <ft-select-option value="${r.name}"
2864
2870
  label="${r.name}"
2865
2871
  ?selected=${r.name===this.selectedPreset}>
2866
2872
  </ft-select-option>
2867
2873
  `)}
2868
2874
  </ft-select>
2869
- `:H.nothing}
2875
+ `:j.nothing}
2870
2876
  <slot name="facets-actions"></slot>
2871
- ${this.forceMenuOpen&&!this.isMobile()?H.nothing:this.renderDesktopClearFilters()}
2877
+ ${this.forceMenuOpen&&!this.isMobile()?j.nothing:this.renderDesktopClearFilters()}
2872
2878
  </div>
2873
- `}renderDesktopClearFilters(){return this.metadataFilters.length>0?H.html`
2879
+ `}renderDesktopClearFilters(){return this.metadataFilters.length>0?j.html`
2874
2880
  <ft-button part="facets-actions"
2875
2881
  @click=${this.clearFilters}>
2876
2882
  ${this.labelResolver.resolve("clearFilters")}
2877
2883
  </ft-button>
2878
- `:H.nothing}renderDesktopFacets(){return this.hasFacets()?H.html`
2884
+ `:j.nothing}renderDesktopFacets(){return this.hasFacets()?j.html`
2879
2885
  <ft-snap-scroll horizontal limitSize controls
2880
2886
  class="ft-search-bar--filters-container"
2881
2887
  part="filters-container"
2882
2888
  exportpartsPrefix="filters-container"
2883
2889
  data-filters-count="${this.facets.length+(this.hasLocaleSelector()?1:0)}">
2884
- ${this.hasLocaleSelector()?H.html`
2890
+ ${this.hasLocaleSelector()?j.html`
2885
2891
  <div part="content-locale-selector">
2886
2892
  <div part="content-locale-selector-header">
2887
2893
  <ft-typography variant="overline" id="content_locale_radio_group_label" part="content-locale-selector-label">
@@ -2890,12 +2896,12 @@
2890
2896
  </div>
2891
2897
  ${this.getContentLocaleRadioGroup()}
2892
2898
  </div>
2893
- `:H.nothing}
2894
- ${(0,cs.repeat)(this.facets,e=>e.key,e=>{let r=qo(e),i=r.options.some(s=>{var o,a;return((a=(o=s.subOptions)===null||o===void 0?void 0:o.length)!==null&&a!==void 0?a:0)>0}),n=e.key.replace(":","-");return H.html`
2899
+ `:j.nothing}
2900
+ ${(0,un.repeat)(this.facets,e=>e.key,e=>{let r=Ko(e),i=r.options.some(n=>{var o,a;return((a=(o=n.subOptions)===null||o===void 0?void 0:o.length)!==null&&a!==void 0?a:0)>0}),s=e.key.replace(":","-");return j.html`
2895
2901
  <ft-filter
2896
2902
  class="${i?"ft-search-bar--hierarchical-filter":""}"
2897
- part="filters filter filter-${n}"
2898
- .exportpartsPrefixes=${["filter","filter-"+n]}
2903
+ part="filters filter filter-${s}"
2904
+ .exportpartsPrefixes=${["filter","filter-"+s]}
2899
2905
  id="${r.id}"
2900
2906
  label="${r.label}"
2901
2907
  filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",r.label)}"
@@ -2906,32 +2912,32 @@
2906
2912
  raiseSelectedOptions
2907
2913
  .options=${r.options}
2908
2914
  .displayedValuesLimit=${10}
2909
- @change=${s=>this.setFilter(r.id,s.detail)}
2915
+ @change=${n=>this.setFilter(r.id,n.detail)}
2910
2916
  ></ft-filter>
2911
2917
  `})}
2912
2918
  </ft-snap-scroll>
2913
- `:H.nothing}firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",r=>{r.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var r,i,n,s,o;if(e.has("labels")&&(this.labelResolver=new Y.ParametrizedLabelResolver(Np,this.labels)),e.has("sizeCategory")&&(this.mobileMenuOpen=!1,this.displayFacets=this.displayFacets&&!this.isMobile()),super.update(e),(e.has("availableContentLocales")||e.has("contentLocale"))&&this.availableContentLocales.length>0){let a=l=>this.availableContentLocales.some(u=>u.lang==l);a(this.contentLocale)||(this.contentLocale=e.has("contentLocale")&&a(e.get("contentLocale"))?e.get("contentLocale"):(r=this.availableContentLocales[0])===null||r===void 0?void 0:r.lang)}if(e.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.initRecentSearches()),e.has("presets")&&((n=this.presets)!==null&&n!==void 0?n:[]).forEach(a=>a.metadataFilters.forEach(l=>{l.valueFilter&&(l.valueFilter.values=l.valueFilter.values.map(u=>xn(u)))})),e.has("presets")||e.has("selectedPreset")){let a=((s=this.presets)!==null&&s!==void 0?s:[]).find(l=>l.name===this.selectedPreset);a&&!this.compareRequests(this.request,a)&&this.setFiltersFromPreset(a)}e.has("contentLocale")&&this.contentLocale!=null&&(this.knownFacetLabels=new Map),["contentLocale","metadataFilters"].some(a=>e.has(a))&&(this.selectedPreset=(i=((o=this.presets)!==null&&o!==void 0?o:[]).find(a=>this.compareRequests(a,this.request)))===null||i===void 0?void 0:i.name),["baseUrl","apiIntegrationIdentifier"].some(a=>e.has(a))&&(this.api=void 0,this.initApi()),e.has("api")&&this.api&&this.initSearchData(),["uiLocale","contentLocale","metadataFilters","displayedFilters"].some(a=>e.has(a))&&this.updateFacets(),["query","uiLocale","contentLocale","metadataFilters","displayedFilters","api"].some(a=>e.has(a))&&this.suggestManager.update(),["query","uiLocale","contentLocale","metadataFilters"].some(a=>e.has(a))&&this.dispatchStateChangeEvent()}dispatchStateChangeEvent(){this.stateChangeEventDebouncer.run(()=>this.dispatchEvent(new sa(this.request)))}updateFacets(){this.facetsRequest.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run(async()=>{await this.retrieveFacetsFromSearch(),this.facetsLoaded=!0,this.facetsInitialized=!0},this.facetsInitialized?500:10)):(this.facets=[],this.facetsLoaded=!0,this.facetsInitialized=!0)}contentAvailableCallback(e){var r,i,n;if(super.contentAvailableCallback(e),e.has("displayFacets")&&this.displayFacets&&((r=this.floatingContainer)===null||r===void 0||r.focus()),this.scrollToFacet!=null&&this.facetsLoaded){(i=this.scrollingFiltersContainer)===null||i===void 0||i.scrollIndexIntoView(this.facets.findIndex(o=>o.key===this.scrollToFacet));let s=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);s&&(s.active=!0),this.scrollToFacet=void 0}}initApi(){this.api==null&&(this.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier,!0):void 0,setTimeout(()=>this.initApi(),10))}async retrieveFacetsFromSearch(){var e;if(this.facetsRequest.length==0){this.facets=[];return}let r=new Map;await((e=this.api)===null||e===void 0?void 0:e.search({...this.request,query:""}).then(i=>i.facets.forEach(n=>{this.knownFacetLabels.set(n.key,n.label),r.set(n.key,n)})).catch(Hf)),this.facets=[];for(let i of this.facetsRequest)r.has(i.id)?this.facets.push(r.get(i.id)):this.knownFacetLabels.has(i.id)&&this.facets.push({key:i.id,label:this.knownFacetLabels.get(i.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1})}onFloatingContainerKeyUp(e){var r;e.key==="Escape"&&(this.displayFacets=!1,(r=this.filtersOpener)===null||r===void 0||r.focus())}setQuery(e){this.input&&(this.input.value=e),this.query=e}onLaunchSearch(){if(this.query){let e=this.recentSearches.filter(r=>r.toLowerCase()!==this.query.toLowerCase()).filter((r,i)=>i<20);this.recentSearches=[this.query,...e],this.saveRecentSearches()}this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}initRecentSearches(){var e;this.recentSearches=JSON.parse((e=window.localStorage.getItem(this.recentSearchesStorageKey))!==null&&e!==void 0?e:"[]")}saveRecentSearches(){let e=JSON.stringify(this.recentSearches);window.localStorage.setItem(this.recentSearchesStorageKey,e),window.dispatchEvent(new StorageEvent("storage",{key:this.recentSearchesStorageKey,newValue:e,storageArea:window.localStorage,url:window.location.href}))}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer),this.focusOnDisplay&&!Y.isTouchScreen&&this.focusInput(),w.addEventListener("authentication-change",this.initSearchData),this.initSearchData()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox),document.removeEventListener("focusin",this.closeFloatingContainer),document.removeEventListener("click",this.closeFloatingContainer),w.removeEventListener("authentication-change",this.initSearchData)}updateSize(e){this.sizeCategory=e.detail.category}setFilter(e,r){let i=this.metadataFilters.filter(n=>!n.valueFilter||n.key!==e);this.facets.forEach(n=>{n.key===e&&(0,Y.flatDeep)(n.rootNodes,s=>s.childNodes).forEach(s=>s.selected=r.includes(s.value))}),r.length&&i.push({key:e,valueFilter:{negative:!1,values:r}}),this.metadataFilters=i,this.scrollToFacet=e}setFiltersFromPreset(e){e!=null&&(e.contentLocale!=null&&(this.contentLocale=e.contentLocale),this.metadataFilters=e.metadataFilters)}clearFilters(){this.facets.forEach(r=>(0,Y.flatDeep)(r.rootNodes,i=>i.childNodes).forEach(i=>i.selected=!1)),this.metadataFilters=[];let e=this.facets[0];this.scrollToFacet=e?.key}querySelector(e){return this.shadowRoot.querySelector(e)}querySelectorAll(e){return this.shadowRoot.querySelectorAll(e)}renderDesktopFloatingMenu(){return this.forceMenuOpen?H.nothing:H.html`
2919
+ `:j.nothing}firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",r=>{r.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var r,i,s,n,o;if(e.has("labels")&&(this.labelResolver=new X.ParametrizedLabelResolver(Np,this.labels)),e.has("sizeCategory")&&(this.mobileMenuOpen=!1,this.displayFacets=this.displayFacets&&!this.isMobile()),super.update(e),(e.has("availableContentLocales")||e.has("contentLocale"))&&this.availableContentLocales.length>0){let a=l=>this.availableContentLocales.some(u=>u.lang==l);a(this.contentLocale)||(this.contentLocale=e.has("contentLocale")&&a(e.get("contentLocale"))?e.get("contentLocale"):(r=this.availableContentLocales[0])===null||r===void 0?void 0:r.lang)}if(e.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.initRecentSearches()),e.has("presets")&&((s=this.presets)!==null&&s!==void 0?s:[]).forEach(a=>a.metadataFilters.forEach(l=>{l.valueFilter&&(l.valueFilter.values=l.valueFilter.values.map(u=>As(u)))})),e.has("presets")||e.has("selectedPreset")){let a=((n=this.presets)!==null&&n!==void 0?n:[]).find(l=>l.name===this.selectedPreset);a&&!this.compareRequests(this.request,a)&&this.setFiltersFromPreset(a)}e.has("contentLocale")&&this.contentLocale!=null&&(this.knownFacetLabels=new Map),["contentLocale","metadataFilters"].some(a=>e.has(a))&&(this.selectedPreset=(i=((o=this.presets)!==null&&o!==void 0?o:[]).find(a=>this.compareRequests(a,this.request)))===null||i===void 0?void 0:i.name),["baseUrl","apiIntegrationIdentifier"].some(a=>e.has(a))&&(this.api=void 0,this.initApi()),e.has("api")&&this.api&&this.initSearchData(),["uiLocale","contentLocale","metadataFilters","displayedFilters"].some(a=>e.has(a))&&this.updateFacets(),["query","uiLocale","contentLocale","metadataFilters","displayedFilters","api"].some(a=>e.has(a))&&this.suggestManager.update(),["query","uiLocale","contentLocale","metadataFilters"].some(a=>e.has(a))&&this.dispatchStateChangeEvent()}dispatchStateChangeEvent(){this.stateChangeEventDebouncer.run(()=>this.dispatchEvent(new oa(this.request)))}updateFacets(){this.facetsRequest.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run(async()=>{await this.retrieveFacetsFromSearch(),this.facetsLoaded=!0,this.facetsInitialized=!0},this.facetsInitialized?500:10)):(this.facets=[],this.facetsLoaded=!0,this.facetsInitialized=!0)}contentAvailableCallback(e){var r,i,s;if(super.contentAvailableCallback(e),e.has("displayFacets")&&this.displayFacets&&((r=this.floatingContainer)===null||r===void 0||r.focus()),this.scrollToFacet!=null&&this.facetsLoaded){(i=this.scrollingFiltersContainer)===null||i===void 0||i.scrollIndexIntoView(this.facets.findIndex(o=>o.key===this.scrollToFacet));let n=(s=this.shadowRoot)===null||s===void 0?void 0:s.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);n&&(n.active=!0),this.scrollToFacet=void 0}}initApi(){this.api==null&&(this.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier,!0):void 0,setTimeout(()=>this.initApi(),10))}async retrieveFacetsFromSearch(){var e;if(this.facetsRequest.length==0){this.facets=[];return}let r=new Map;await((e=this.api)===null||e===void 0?void 0:e.search({...this.request,query:""}).then(i=>i.facets.forEach(s=>{this.knownFacetLabels.set(s.key,s.label),r.set(s.key,s)})).catch(Hf)),this.facets=[];for(let i of this.facetsRequest)r.has(i.id)?this.facets.push(r.get(i.id)):this.knownFacetLabels.has(i.id)&&this.facets.push({key:i.id,label:this.knownFacetLabels.get(i.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1})}onFloatingContainerKeyUp(e){var r;e.key==="Escape"&&(this.displayFacets=!1,(r=this.filtersOpener)===null||r===void 0||r.focus())}setQuery(e){this.input&&(this.input.value=e),this.query=e}onLaunchSearch(){if(this.query){let e=this.recentSearches.filter(r=>r.toLowerCase()!==this.query.toLowerCase()).filter((r,i)=>i<20);this.recentSearches=[this.query,...e],this.saveRecentSearches()}this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}initRecentSearches(){var e;this.recentSearches=JSON.parse((e=window.localStorage.getItem(this.recentSearchesStorageKey))!==null&&e!==void 0?e:"[]")}saveRecentSearches(){let e=JSON.stringify(this.recentSearches);window.localStorage.setItem(this.recentSearchesStorageKey,e),window.dispatchEvent(new StorageEvent("storage",{key:this.recentSearchesStorageKey,newValue:e,storageArea:window.localStorage,url:window.location.href}))}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer),this.focusOnDisplay&&!X.isTouchScreen&&this.focusInput(),O.addEventListener("authentication-change",this.initSearchData),this.initSearchData()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox),document.removeEventListener("focusin",this.closeFloatingContainer),document.removeEventListener("click",this.closeFloatingContainer),O.removeEventListener("authentication-change",this.initSearchData)}updateSize(e){this.sizeCategory=e.detail.category}setFilter(e,r){let i=this.metadataFilters.filter(s=>!s.valueFilter||s.key!==e);this.facets.forEach(s=>{s.key===e&&(0,X.flatDeep)(s.rootNodes,n=>n.childNodes).forEach(n=>n.selected=r.includes(n.value))}),r.length&&i.push({key:e,valueFilter:{negative:!1,values:r}}),this.metadataFilters=i,this.scrollToFacet=e}setFiltersFromPreset(e){e!=null&&(e.contentLocale!=null&&(this.contentLocale=e.contentLocale),this.metadataFilters=e.metadataFilters)}clearFilters(){this.facets.forEach(r=>(0,X.flatDeep)(r.rootNodes,i=>i.childNodes).forEach(i=>i.selected=!1)),this.metadataFilters=[];let e=this.facets[0];this.scrollToFacet=e?.key}querySelector(e){return this.shadowRoot.querySelector(e)}querySelectorAll(e){return this.shadowRoot.querySelectorAll(e)}renderDesktopFloatingMenu(){return this.forceMenuOpen?j.nothing:j.html`
2914
2920
  <div class="ft-search-bar--floating-panel"
2915
2921
  id="ft-search-bar-floating-panel"
2916
2922
  @keyup=${this.onFloatingContainerKeyUp}
2917
2923
  part="floating-panel"
2918
2924
  tabindex="-1">
2919
2925
  ${this.renderDesktopMenu()}
2920
- </div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};O.elementDefinitions={"ft-accordion":Ft,"ft-accordion-item":yt,"ft-button":A,"ft-chip":ae,"ft-filter":z,"ft-filter-option":at,"ft-icon":ee,"ft-ripple":L,"ft-select":Z,"ft-select-option":Me,"ft-size-watcher":rt,"ft-skeleton":gr,"ft-snap-scroll":ve,"ft-tooltip":he,"ft-typography":W,"ft-radio-group":st,"ft-radio":Ce};O.styles=[Zt,Y.noTextInputDefaultClearButton,Op,_p,zt.styles,Ut.styles,Y.screenReaderStyles];N([(0,F.property)({type:Boolean})],O.prototype,"dense",void 0);N([(0,F.property)()],O.prototype,"mode",void 0);N([(0,F.property)({type:Boolean})],O.prototype,"forceMobileMenuOpen",void 0);N([(0,F.property)({type:Boolean})],O.prototype,"forceMenuOpen",void 0);N([(0,F.property)()],O.prototype,"baseUrl",void 0);N([(0,F.property)()],O.prototype,"apiIntegrationIdentifier",void 0);N([(0,F.property)()],O.prototype,"contentLocale",void 0);N([(0,F.state)()],O.prototype,"availableContentLocales",void 0);N([(0,F.state)()],O.prototype,"availableContentLocalesInitialized",void 0);N([(0,F.property)()],O.prototype,"uiLocale",void 0);N([(0,Y.jsonProperty)({})],O.prototype,"labels",void 0);N([(0,Y.jsonProperty)([])],O.prototype,"displayedFilters",void 0);N([(0,Y.jsonProperty)([])],O.prototype,"presets",void 0);N([(0,F.property)({type:String,reflect:!0})],O.prototype,"selectedPreset",void 0);N([(0,Y.jsonProperty)([])],O.prototype,"priors",void 0);N([(0,F.property)()],O.prototype,"searchRequestSerializer",void 0);N([(0,F.property)({type:Boolean})],O.prototype,"focusOnDisplay",void 0);N([(0,F.state)()],O.prototype,"metadataFilters",void 0);N([(0,F.state)()],O.prototype,"sizeCategory",void 0);N([(0,F.state)()],O.prototype,"displayFacets",void 0);N([(0,F.state)()],O.prototype,"mobileMenuOpen",void 0);N([(0,F.state)()],O.prototype,"facets",void 0);N([(0,F.state)()],O.prototype,"facetsInitialized",void 0);N([(0,F.query)(".ft-search-bar--container")],O.prototype,"container",void 0);N([(0,F.query)(".ft-search-bar--filters-opener")],O.prototype,"filtersOpener",void 0);N([(0,F.query)(".ft-search-bar--floating-panel")],O.prototype,"floatingContainer",void 0);N([(0,F.query)("ft-snap-scroll.ft-search-bar--filters-container")],O.prototype,"scrollingFiltersContainer",void 0);N([(0,F.query)(".ft-search-bar--input")],O.prototype,"input",void 0);N([(0,F.query)(".ft-search-bar--launch-search")],O.prototype,"launchSearchButton",void 0);N([(0,F.state)()],O.prototype,"query",void 0);N([(0,F.state)()],O.prototype,"suggestions",void 0);N([(0,F.state)()],O.prototype,"recentSearches",void 0);N([(0,F.state)()],O.prototype,"scrollToFacet",void 0);N([(0,F.state)()],O.prototype,"api",void 0);N([(0,F.state)()],O.prototype,"displaySuggestListbox",void 0);N([(0,F.state)()],O.prototype,"selectedSuggestOptionId",void 0);N([(0,F.state)()],O.prototype,"selectedSuggestRemoveRecent",void 0);N([(0,F.state)()],O.prototype,"facetsLoaded",void 0);var Bp=c(f());var Fp={"ft-search-bar":O};(0,Bp.customElements)(Fp);var Vp=Up.css`
2926
+ </div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};_.elementDefinitions={"ft-accordion":Bt,"ft-accordion-item":yt,"ft-button":C,"ft-chip":oe,"ft-filter":U,"ft-filter-option":at,"ft-icon":ee,"ft-ripple":D,"ft-select":J,"ft-select-option":Ne,"ft-size-watcher":rt,"ft-skeleton":gr,"ft-snap-scroll":ye,"ft-tooltip":de,"ft-typography":W,"ft-radio-group":nt,"ft-radio":Ae};_.styles=[Zt,X.noTextInputDefaultClearButton,Op,_p,Vt.styles,zt.styles,X.screenReaderStyles];N([(0,F.property)({type:Boolean})],_.prototype,"dense",void 0);N([(0,F.property)()],_.prototype,"mode",void 0);N([(0,F.property)({type:Boolean})],_.prototype,"forceMobileMenuOpen",void 0);N([(0,F.property)({type:Boolean})],_.prototype,"forceMenuOpen",void 0);N([(0,F.property)()],_.prototype,"baseUrl",void 0);N([(0,F.property)()],_.prototype,"apiIntegrationIdentifier",void 0);N([(0,F.property)()],_.prototype,"contentLocale",void 0);N([(0,F.state)()],_.prototype,"availableContentLocales",void 0);N([(0,F.state)()],_.prototype,"availableContentLocalesInitialized",void 0);N([(0,F.property)()],_.prototype,"uiLocale",void 0);N([(0,X.jsonProperty)({})],_.prototype,"labels",void 0);N([(0,X.jsonProperty)([])],_.prototype,"displayedFilters",void 0);N([(0,X.jsonProperty)([])],_.prototype,"presets",void 0);N([(0,F.property)({type:String,reflect:!0})],_.prototype,"selectedPreset",void 0);N([(0,X.jsonProperty)([])],_.prototype,"priors",void 0);N([(0,F.property)()],_.prototype,"searchRequestSerializer",void 0);N([(0,F.property)({type:Boolean})],_.prototype,"focusOnDisplay",void 0);N([(0,F.state)()],_.prototype,"metadataFilters",void 0);N([(0,F.state)()],_.prototype,"sizeCategory",void 0);N([(0,F.state)()],_.prototype,"displayFacets",void 0);N([(0,F.state)()],_.prototype,"mobileMenuOpen",void 0);N([(0,F.state)()],_.prototype,"facets",void 0);N([(0,F.state)()],_.prototype,"facetsInitialized",void 0);N([(0,F.query)(".ft-search-bar--container")],_.prototype,"container",void 0);N([(0,F.query)(".ft-search-bar--filters-opener")],_.prototype,"filtersOpener",void 0);N([(0,F.query)(".ft-search-bar--floating-panel")],_.prototype,"floatingContainer",void 0);N([(0,F.query)("ft-snap-scroll.ft-search-bar--filters-container")],_.prototype,"scrollingFiltersContainer",void 0);N([(0,F.query)(".ft-search-bar--input")],_.prototype,"input",void 0);N([(0,F.query)(".ft-search-bar--launch-search")],_.prototype,"launchSearchButton",void 0);N([(0,F.state)()],_.prototype,"query",void 0);N([(0,F.state)()],_.prototype,"suggestions",void 0);N([(0,F.state)()],_.prototype,"recentSearches",void 0);N([(0,F.state)()],_.prototype,"scrollToFacet",void 0);N([(0,F.state)()],_.prototype,"api",void 0);N([(0,F.state)()],_.prototype,"displaySuggestListbox",void 0);N([(0,F.state)()],_.prototype,"selectedSuggestOptionId",void 0);N([(0,F.state)()],_.prototype,"selectedSuggestRemoveRecent",void 0);N([(0,F.state)()],_.prototype,"facetsLoaded",void 0);var Bp=c(f());var Fp={"ft-search-bar":_};(0,Bp.customElements)(Fp);var Vp=Up.css`
2921
2927
  * {
2922
2928
  box-sizing: border-box;
2923
2929
  }
2924
2930
 
2925
2931
  .ft-search-input-suggestion {
2926
2932
  position: absolute;
2927
- z-index: ${Se.floatingZIndex};
2933
+ z-index: ${xe.floatingZIndex};
2928
2934
  top: calc(100% + 2px);
2929
2935
  left: -1px;
2930
2936
  right: -1px;
2931
- background: ${Se.colorSurface};
2932
- border: 1px solid ${Se.colorOutline};
2933
- border-radius: 0 0 ${Se.borderRadius} ${Se.borderRadius};
2934
- box-shadow: ${Se.elevation02};
2937
+ background: ${xe.colorSurface};
2938
+ border: 1px solid ${xe.colorOutline};
2939
+ border-radius: 0 0 ${xe.borderRadius} ${xe.borderRadius};
2940
+ box-shadow: ${xe.elevation02};
2935
2941
  }
2936
2942
 
2937
2943
  .ft-search-input-suggestion--container {
@@ -2942,7 +2948,7 @@
2942
2948
  .ft-search-input-suggestion--container:has([aria-selected="true"]),
2943
2949
  .ft-search-input-suggestion--container:hover {
2944
2950
  outline: none;
2945
- box-shadow: inset 3px 0 0 ${C.activeItemBorderColor};
2951
+ box-shadow: inset 3px 0 0 ${w.activeItemBorderColor};
2946
2952
  }
2947
2953
 
2948
2954
  .ft-search-input-suggestion--suggestion {
@@ -2953,7 +2959,7 @@
2953
2959
  padding: 8px;
2954
2960
  gap: 8px;
2955
2961
  cursor: pointer;
2956
- color: ${Se.colorOnSurface};
2962
+ color: ${xe.colorOnSurface};
2957
2963
  min-height: 44px;
2958
2964
  flex-grow: 1;
2959
2965
  }
@@ -2969,18 +2975,18 @@
2969
2975
  }
2970
2976
 
2971
2977
  ft-ripple {
2972
- ${(0,zp.setVariable)(q.opacityContentOnSurfaceHover,q.opacityContentOnSurfaceSelected)}
2978
+ ${(0,zp.setVariable)(z.opacityContentOnSurfaceHover,z.opacityContentOnSurfaceSelected)}
2973
2979
  }
2974
- `;var na=c(dr());var yr=class{constructor(e){this.ftSearchInput=e,this.listboxId="ft-search-input-suggestion"}render(){var e;let r=Kt.get(),{recentQuerySuggestions:i}=this.ftSearchInput;return Qr.html`
2980
+ `;var aa=c(dr());var yr=class{constructor(e){this.ftSearchInput=e,this.listboxId="ft-search-input-suggestion"}render(){var e;let r=Kt.get(),{recentQuerySuggestions:i}=this.ftSearchInput;return Qr.html`
2975
2981
  <div class="ft-search-input-suggestion ft-word-wrap"
2976
2982
  id="${this.listboxId}"
2977
2983
  role="listbox"
2978
2984
  aria-label="${Qt.messages.suggestionsLabel()}"
2979
2985
  part="container">
2980
- ${(0,na.repeat)(i,n=>n,(n,s)=>this.renderRecentQuery(s,n,r))}
2981
- ${(0,na.repeat)((e=this.ftSearchInput.suggestResults)!==null&&e!==void 0?e:[],n=>n.value,(n,s)=>this.renderSuggestion(i.length+s,n,r))}
2986
+ ${(0,aa.repeat)(i,s=>s,(s,n)=>this.renderRecentQuery(n,s,r))}
2987
+ ${(0,aa.repeat)((e=this.ftSearchInput.suggestResults)!==null&&e!==void 0?e:[],s=>s.value,(s,n)=>this.renderSuggestion(i.length+n,s,r))}
2982
2988
  </div>
2983
- `}renderRecentQuery(e,r,i){return this.renderOption(e,r,"history",ze.material,!0,i)}renderSuggestion(e,r,i){let n=r.type==="DOCUMENT"?ze.file_format:ze.fluid_topics,s;switch(r.type){case"MAP":s=r.editorialType==="BOOK"?be.BOOK:be.ARTICLE;break;case"DOCUMENT":s=mn(r.mimeType,r.filenameExtension);break;case"TOPIC":s=be.TOPICS;break;case"HTML_PACKAGE":s=be.BOX_CODE;break;case"HTML_PACKAGE_PAGE":s=be.FILE_CODE;break}return this.renderOption(e,r.value,s,n,!1,i)}renderOption(e,r,i,n,s,o){let a=this.ftSearchInput.selectedSuggestOptionIndex===e,l=this.ftSearchInput.selectedSuggestOptionRemove,u=this.ftSearchInput.launchSearchPath?o.serializeToCurrentPageIfPossible({...this.ftSearchInput.request,query:r},this.ftSearchInput.launchSearchPath):Qr.nothing;return Qr.html`
2989
+ `}renderRecentQuery(e,r,i){return this.renderOption(e,r,"history",Ve.material,!0,i)}renderSuggestion(e,r,i){let s=r.type==="DOCUMENT"?Ve.file_format:Ve.fluid_topics,n;switch(r.type){case"MAP":n=r.editorialType==="BOOK"?ge.BOOK:ge.ARTICLE;break;case"DOCUMENT":n=ys(r.mimeType,r.filenameExtension);break;case"TOPIC":n=ge.TOPICS;break;case"HTML_PACKAGE":n=ge.BOX_CODE;break;case"HTML_PACKAGE_PAGE":n=ge.FILE_CODE;break}return this.renderOption(e,r.value,n,s,!1,i)}renderOption(e,r,i,s,n,o){let a=this.ftSearchInput.selectedSuggestOptionIndex===e,l=this.ftSearchInput.selectedSuggestOptionRemove,u=this.ftSearchInput.launchSearchPath?o.serializeToCurrentPageIfPossible({...this.ftSearchInput.request,query:r},this.ftSearchInput.launchSearchPath):Qr.nothing;return Qr.html`
2984
2990
  <div part="suggestion-container"
2985
2991
  class="ft-search-input-suggestion--container">
2986
2992
  <a href="${u}"
@@ -2993,11 +2999,11 @@
2993
2999
  @click=${()=>this.onSelectOption(r)}
2994
3000
  >
2995
3001
  <ft-ripple ?activated=${a&&!l}></ft-ripple>
2996
- <ft-icon variant="${n}" value="${i}" part="suggestion-icon"></ft-icon>
3002
+ <ft-icon variant="${s}" value="${i}" part="suggestion-icon"></ft-icon>
2997
3003
  <ft-typography variant="${ce.body1}">${r}</ft-typography>
2998
3004
  </a>
2999
- ${s?Qr.html`
3000
- <ft-button icon="${be.CLOSE}"
3005
+ ${n?Qr.html`
3006
+ <ft-button icon="${ge.CLOSE}"
3001
3007
  round
3002
3008
  part="remove-suggestion"
3003
3009
  class="ft-search-input-suggestion--remove"
@@ -3010,7 +3016,7 @@
3010
3016
  </ft-button>
3011
3017
  `:Qr.nothing}
3012
3018
  </div>
3013
- `}onRemoveRecentQuery(e){var r;(r=this.ftSearchInput.stateManager)===null||r===void 0||r.removeRecentQuery(e)}onSelectOption(e){this.ftSearchInput.onSuggestionSelected(e)}get activeElementId(){let{selectedSuggestOptionIndex:e,selectedSuggestOptionRemove:r}=this.ftSearchInput;if(e!==void 0)return(r?"remove-suggestion-":"suggestion-")+e}get activeElement(){var e;let r=this.activeElementId;if(r!==void 0)return(e=this.ftSearchInput.shadowRoot.getElementById(r))!==null&&e!==void 0?e:void 0}recentQueriesCount(){return this.ftSearchInput.recentQuerySuggestions.length}suggestionsCount(){var e,r;return(r=(e=this.ftSearchInput.suggestResults)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:0}optionsCount(){return this.recentQueriesCount()+this.suggestionsCount()}clearSelection(){this.ftSearchInput.selectedSuggestOptionIndex=void 0,this.ftSearchInput.selectedSuggestOptionRemove=!1}selectNext(){this.ftSearchInput.selectedSuggestOptionIndex===void 0?this.ftSearchInput.selectedSuggestOptionIndex=0:(this.ftSearchInput.selectedSuggestOptionIndex++,this.ftSearchInput.selectedSuggestOptionIndex>=this.optionsCount()&&this.clearSelection())}selectPrevious(){this.ftSearchInput.selectedSuggestOptionIndex===void 0?this.ftSearchInput.selectedSuggestOptionIndex=this.optionsCount()-1:(this.ftSearchInput.selectedSuggestOptionIndex--,this.ftSearchInput.selectedSuggestOptionIndex<0&&this.clearSelection())}selectLeft(){this.ftSearchInput.selectedSuggestOptionIndex!==void 0&&(this.ftSearchInput.selectedSuggestOptionRemove?this.ftSearchInput.selectedSuggestOptionRemove=!1:this.clearSelection())}isRemovable(e){return e<this.recentQueriesCount()}selectRight(){let e=this.ftSearchInput.selectedSuggestOptionIndex;e!==void 0&&(!this.ftSearchInput.selectedSuggestOptionRemove&&this.isRemovable(e)?this.ftSearchInput.selectedSuggestOptionRemove=!0:this.clearSelection())}closeBox(){this.ftSearchInput.displaySuggestListbox=!1,this.clearSelection()}};yr.elementDefinitions={"ft-ripple":L,"ft-typography":W,"ft-icon":ee,"ft-button":A};yr.styles=[Hp.wordWrap,Vp];var Pe=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},jf=5;function qf(t){let e=t.liveQuery.trim().toLowerCase();return t.recentQueries.filter(r=>r.toLowerCase().includes(e)).slice(0,jf)}var le=class extends pi(bn){constructor(){super(),this.liveQuery="",this.recentQuerySuggestions=[],this.forceCloseSuggestion=!1,this.displaySuggestListbox=!1,this.selectedSuggestOptionRemove=!1,this.useCustomSearchPath=!1,this.triggerSearchOnClear=!1,this.focusOnDisplay=!1,this.suggestions=new yr(this),this.showSuggestionsOnFocus=!0,this.onPointerDown=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||this.suggestions.closeBox()},this.addI18nContext(Qt)}render(){var e;let r=this.suggestions.optionsCount()>0,i={"ft-search-input":!0,"ft-search-input--with-suggestions":r,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},n={...this.request,query:this.liveQuery},s=this.useCustomSearchPath?this.launchSearchPath:void 0,o=Kt.get().serializeToCurrentPageIfPossible(n,s),a=!this.forceCloseSuggestion&&this.displaySuggestListbox&&r;return Ai.html`
3019
+ `}onRemoveRecentQuery(e){var r;(r=this.ftSearchInput.stateManager)===null||r===void 0||r.removeRecentQuery(e)}onSelectOption(e){this.ftSearchInput.onSuggestionSelected(e)}get activeElementId(){let{selectedSuggestOptionIndex:e,selectedSuggestOptionRemove:r}=this.ftSearchInput;if(e!==void 0)return(r?"remove-suggestion-":"suggestion-")+e}get activeElement(){var e;let r=this.activeElementId;if(r!==void 0)return(e=this.ftSearchInput.shadowRoot.getElementById(r))!==null&&e!==void 0?e:void 0}recentQueriesCount(){return this.ftSearchInput.recentQuerySuggestions.length}suggestionsCount(){var e,r;return(r=(e=this.ftSearchInput.suggestResults)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:0}optionsCount(){return this.recentQueriesCount()+this.suggestionsCount()}clearSelection(){this.ftSearchInput.selectedSuggestOptionIndex=void 0,this.ftSearchInput.selectedSuggestOptionRemove=!1}selectNext(){this.ftSearchInput.selectedSuggestOptionIndex===void 0?this.ftSearchInput.selectedSuggestOptionIndex=0:(this.ftSearchInput.selectedSuggestOptionIndex++,this.ftSearchInput.selectedSuggestOptionIndex>=this.optionsCount()&&this.clearSelection())}selectPrevious(){this.ftSearchInput.selectedSuggestOptionIndex===void 0?this.ftSearchInput.selectedSuggestOptionIndex=this.optionsCount()-1:(this.ftSearchInput.selectedSuggestOptionIndex--,this.ftSearchInput.selectedSuggestOptionIndex<0&&this.clearSelection())}selectLeft(){this.ftSearchInput.selectedSuggestOptionIndex!==void 0&&(this.ftSearchInput.selectedSuggestOptionRemove?this.ftSearchInput.selectedSuggestOptionRemove=!1:this.clearSelection())}isRemovable(e){return e<this.recentQueriesCount()}selectRight(){let e=this.ftSearchInput.selectedSuggestOptionIndex;e!==void 0&&(!this.ftSearchInput.selectedSuggestOptionRemove&&this.isRemovable(e)?this.ftSearchInput.selectedSuggestOptionRemove=!0:this.clearSelection())}closeBox(){this.ftSearchInput.displaySuggestListbox=!1,this.clearSelection()}};yr.elementDefinitions={"ft-ripple":D,"ft-typography":W,"ft-icon":ee,"ft-button":C};yr.styles=[Hp.wordWrap,Vp];var De=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},jf=5;function qf(t){let e=t.liveQuery.trim().toLowerCase();return t.recentQueries.filter(r=>r.toLowerCase().includes(e)).slice(0,jf)}var le=class extends pi(Ss){constructor(){super(),this.liveQuery="",this.recentQuerySuggestions=[],this.forceCloseSuggestion=!1,this.displaySuggestListbox=!1,this.selectedSuggestOptionRemove=!1,this.useCustomSearchPath=!1,this.triggerSearchOnClear=!1,this.focusOnDisplay=!1,this.suggestions=new yr(this),this.showSuggestionsOnFocus=!0,this.onPointerDown=e=>{e.composedPath().some(s=>s===this||s===this.shadowRoot)||this.suggestions.closeBox()},this.addI18nContext(Qt)}render(){var e;let r=this.suggestions.optionsCount()>0,i={"ft-search-input":!0,"ft-search-input--with-suggestions":r,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},s={...this.request,query:this.liveQuery},n=this.useCustomSearchPath?this.launchSearchPath:void 0,o=Kt.get().serializeToCurrentPageIfPossible(s,n),a=!this.forceCloseSuggestion&&this.displaySuggestListbox&&r;return Ai.html`
3014
3020
  <div class="${(0,jp.classMap)(i)}" @focusout=${()=>this.forceCloseSuggestion=!1} role="search">
3015
3021
  <div class="ft-search-input--input-container" part="input-container" tabindex="-1">
3016
3022
  <div class="ft-search-input--input-outline" part="input-outline">
@@ -3057,7 +3063,7 @@
3057
3063
  ></ft-button>
3058
3064
  </div>
3059
3065
  </div>
3060
- `}onSearchBarKeyDown(e){switch(this.forceCloseSuggestion=!1,["Escape","Tab","Shift"].includes(e.key)||(this.displaySuggestListbox=!0),e.key){case"Tab":this.suggestions.closeBox();break;case"Escape":this.displaySuggestListbox&&this.suggestions.optionsCount()>0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.closeBox());break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestions.selectNext();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestions.selectPrevious();break;case"ArrowLeft":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectLeft());break;case"ArrowRight":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectRight());break;case"Enter":{let r=this.suggestions.activeElement;if(r){r.click();break}this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break}case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){e.key==="Backspace"&&e.stopPropagation()}onInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}onClearInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(""),this.triggerSearchOnClear&&this.launchSearch(""),this.input.focus()}launchSearch(e){var r,i;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(r=this.stateManager)===null||r===void 0||r.setQuery(e),(i=this.stateManager)===null||i===void 0||i.addRecentQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.suggestions.closeBox()}onClick(){this.onFocus()}onFocus(){this.showSuggestionsOnFocus&&(this.displaySuggestListbox=!0),this.forceCloseSuggestion=!1}async focusInput(e=!0){this.showSuggestionsOnFocus=e,await(0,Ne.waitFor)(()=>this.input,50),this.input.focus(),this.showSuggestionsOnFocus=!0}async connectedCallback(){super.connectedCallback(),this.focusOnDisplay&&!Ne.isTouchScreen&&this.focusInput(!1)}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("displaySuggestListbox")&&(this.displaySuggestListbox?document.addEventListener("pointerdown",this.onPointerDown):document.removeEventListener("pointerdown",this.onPointerDown))}};le.elementDefinitions={"ft-button":A,...yr.elementDefinitions};le.styles=[Zt,Ne.noTextInputDefaultClearButton,td,...yr.styles,Ne.screenReaderStyles];Pe([(0,Ne.redux)()],le.prototype,"request",void 0);Pe([(0,Ne.redux)()],le.prototype,"liveQuery",void 0);Pe([(0,Ne.redux)()],le.prototype,"suggestResults",void 0);Pe([(0,Ne.redux)({selector:qf})],le.prototype,"recentQuerySuggestions",void 0);Pe([(0,lt.state)()],le.prototype,"forceCloseSuggestion",void 0);Pe([(0,lt.state)()],le.prototype,"displaySuggestListbox",void 0);Pe([(0,lt.state)()],le.prototype,"selectedSuggestOptionIndex",void 0);Pe([(0,lt.state)()],le.prototype,"selectedSuggestOptionRemove",void 0);Pe([(0,lt.property)()],le.prototype,"launchSearchPath",void 0);Pe([dn()],le.prototype,"placeholder",void 0);Pe([(0,lt.property)({type:Boolean})],le.prototype,"useCustomSearchPath",void 0);Pe([(0,lt.property)({type:Boolean})],le.prototype,"triggerSearchOnClear",void 0);Pe([(0,lt.property)({type:Boolean})],le.prototype,"focusOnDisplay",void 0);Pe([(0,lt.query)(".ft-search-input--input")],le.prototype,"input",void 0);Pe([(0,lt.query)('[part="launch-search-in-input"]')],le.prototype,"launchSearchButton",void 0);Pe([(0,Ne.ignoreComposingEvents)()],le.prototype,"onSearchBarKeyDown",null);Pe([(0,Ne.ignoreComposingEvents)()],le.prototype,"onSearchBarKeyUp",null);var qp={"ft-search-input":le};(0,Wp.customElements)(qp);})();
3066
+ `}onSearchBarKeyDown(e){switch(this.forceCloseSuggestion=!1,["Escape","Tab","Shift"].includes(e.key)||(this.displaySuggestListbox=!0),e.key){case"Tab":this.suggestions.closeBox();break;case"Escape":this.displaySuggestListbox&&this.suggestions.optionsCount()>0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.closeBox());break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestions.selectNext();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestions.selectPrevious();break;case"ArrowLeft":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectLeft());break;case"ArrowRight":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectRight());break;case"Enter":{let r=this.suggestions.activeElement;if(r){r.click();break}this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break}case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){e.key==="Backspace"&&e.stopPropagation()}onInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}onClearInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(""),this.triggerSearchOnClear&&this.launchSearch(""),this.input.focus()}launchSearch(e){var r,i;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(r=this.stateManager)===null||r===void 0||r.setQuery(e),(i=this.stateManager)===null||i===void 0||i.addRecentQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.suggestions.closeBox()}onClick(){this.onFocus()}onFocus(){this.showSuggestionsOnFocus&&(this.displaySuggestListbox=!0),this.forceCloseSuggestion=!1}async focusInput(e=!0){this.showSuggestionsOnFocus=e,await(0,Fe.waitFor)(()=>this.input,50),this.input.focus(),this.showSuggestionsOnFocus=!0}async connectedCallback(){super.connectedCallback(),this.focusOnDisplay&&!Fe.isTouchScreen&&this.focusInput(!1)}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("displaySuggestListbox")&&(this.displaySuggestListbox?document.addEventListener("pointerdown",this.onPointerDown):document.removeEventListener("pointerdown",this.onPointerDown))}};le.elementDefinitions={"ft-button":C,...yr.elementDefinitions};le.styles=[Zt,Fe.noTextInputDefaultClearButton,td,...yr.styles,Fe.screenReaderStyles];De([(0,Fe.redux)()],le.prototype,"request",void 0);De([(0,Fe.redux)()],le.prototype,"liveQuery",void 0);De([(0,Fe.redux)()],le.prototype,"suggestResults",void 0);De([(0,Fe.redux)({selector:qf})],le.prototype,"recentQuerySuggestions",void 0);De([(0,lt.state)()],le.prototype,"forceCloseSuggestion",void 0);De([(0,lt.state)()],le.prototype,"displaySuggestListbox",void 0);De([(0,lt.state)()],le.prototype,"selectedSuggestOptionIndex",void 0);De([(0,lt.state)()],le.prototype,"selectedSuggestOptionRemove",void 0);De([(0,lt.property)()],le.prototype,"launchSearchPath",void 0);De([hs()],le.prototype,"placeholder",void 0);De([(0,lt.property)({type:Boolean})],le.prototype,"useCustomSearchPath",void 0);De([(0,lt.property)({type:Boolean})],le.prototype,"triggerSearchOnClear",void 0);De([(0,lt.property)({type:Boolean})],le.prototype,"focusOnDisplay",void 0);De([(0,lt.query)(".ft-search-input--input")],le.prototype,"input",void 0);De([(0,lt.query)('[part="launch-search-in-input"]')],le.prototype,"launchSearchButton",void 0);De([(0,Fe.ignoreComposingEvents)()],le.prototype,"onSearchBarKeyDown",null);De([(0,Fe.ignoreComposingEvents)()],le.prototype,"onSearchBarKeyUp",null);var qp={"ft-search-input":le};(0,Wp.customElements)(qp);})();
3061
3067
  /*! Bundled license information:
3062
3068
 
3063
3069
  .store/lit-html-npm-3.3.3-0f054b825a/package/lit-html.js: