@fluid-topics/ft-search-input 2.2.37 → 2.2.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-search-input.light.js +68 -68
- package/build/ft-search-input.min.js +211 -211
- package/package.json +13 -13
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
1
|
+
"use strict";(()=>{var Xp=Object.create;var ca=Object.defineProperty;var Zp=Object.getOwnPropertyDescriptor;var Jp=Object.getOwnPropertyNames;var eh=Object.getPrototypeOf,th=Object.prototype.hasOwnProperty;var Zr=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var rh=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Jp(e))!th.call(t,s)&&s!==r&&ca(t,s,{get:()=>e[s],enumerable:!(i=Zp(e,s))||i.enumerable});return t};var c=(t,e,r)=>(r=t!=null?Xp(eh(t)):{},rh(e||!t||!t.__esModule?ca(r,"default",{value:t,enumerable:!0}):r,t));var f=Zr((Qf,ua)=>{ua.exports=ftGlobals.wcUtils});var x=Zr((Yf,da)=>{da.exports=ftGlobals.lit});var V=Zr((Xf,pa)=>{pa.exports=ftGlobals.litDecorators});var Je=Zr((Zf,ha)=>{ha.exports=ftGlobals.litClassMap});var Uu=Zr((zx,Bu)=>{Bu.exports=ftGlobals.litUnsafeHTML});var hr=Zr((aE,sd)=>{sd.exports=ftGlobals.litRepeat});var Gp=c(f());var wi=c(x()),Ze=c(f());var rd=c(x()),Q=c(f());var Ft=c(f());var Sa=c(x()),Oe=c(V()),Ea=c(Je()),_i=c(f());var va=c(x()),he=c(f()),fa=he.FtCssVariableFactory.extend("--ft-ripple-color","",he.designSystemVariables.colorContent),U={color:fa,backgroundColor:he.FtCssVariableFactory.extend("--ft-ripple-background-color","",fa),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")},ma=he.FtCssVariableFactory.extend("--ft-ripple-color","",he.designSystemVariables.colorPrimary),ga={color:ma,backgroundColor:he.FtCssVariableFactory.extend("--ft-ripple-background-color","",ma)},ya=he.FtCssVariableFactory.extend("--ft-ripple-color","",he.designSystemVariables.colorSecondary),ba={color:ya,backgroundColor:he.FtCssVariableFactory.extend("--ft-ripple-background-color","",ya)},xa=va.css`
|
|
2
2
|
:host {
|
|
3
3
|
display: contents;
|
|
4
4
|
}
|
|
@@ -121,9 +121,9 @@
|
|
|
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"),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=xa;qe([(0,Oe.property)({type:Boolean})],D.prototype,"primary",void 0);qe([(0,Oe.property)({type:Boolean})],D.prototype,"secondary",void 0);qe([(0,Oe.property)({type:Boolean})],D.prototype,"unbounded",void 0);qe([(0,Oe.property)({type:Boolean})],D.prototype,"activated",void 0);qe([(0,Oe.property)({type:Boolean})],D.prototype,"selected",void 0);qe([(0,Oe.property)({type:Boolean})],D.prototype,"disabled",void 0);qe([(0,Oe.state)()],D.prototype,"hovered",void 0);qe([(0,Oe.state)()],D.prototype,"focused",void 0);qe([(0,Oe.state)()],D.prototype,"pressed",void 0);qe([(0,Oe.state)()],D.prototype,"rippling",void 0);qe([(0,Oe.state)()],D.prototype,"originX",void 0);qe([(0,Oe.state)()],D.prototype,"originY",void 0);qe([(0,Oe.query)(".ft-ripple")],D.prototype,"ripple",void 0);qe([(0,Oe.query)(".ft-ripple--effect")],D.prototype,"rippleEffect",void 0);var Ca=c(f());var Aa={"ft-ripple":D};(0,Ca.customElements)(Aa);var
|
|
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=xa;qe([(0,Oe.property)({type:Boolean})],D.prototype,"primary",void 0);qe([(0,Oe.property)({type:Boolean})],D.prototype,"secondary",void 0);qe([(0,Oe.property)({type:Boolean})],D.prototype,"unbounded",void 0);qe([(0,Oe.property)({type:Boolean})],D.prototype,"activated",void 0);qe([(0,Oe.property)({type:Boolean})],D.prototype,"selected",void 0);qe([(0,Oe.property)({type:Boolean})],D.prototype,"disabled",void 0);qe([(0,Oe.state)()],D.prototype,"hovered",void 0);qe([(0,Oe.state)()],D.prototype,"focused",void 0);qe([(0,Oe.state)()],D.prototype,"pressed",void 0);qe([(0,Oe.state)()],D.prototype,"rippling",void 0);qe([(0,Oe.state)()],D.prototype,"originX",void 0);qe([(0,Oe.state)()],D.prototype,"originY",void 0);qe([(0,Oe.query)(".ft-ripple")],D.prototype,"ripple",void 0);qe([(0,Oe.query)(".ft-ripple--effect")],D.prototype,"rippleEffect",void 0);var Ca=c(f());var Aa={"ft-ripple":D};(0,Ca.customElements)(Aa);var Iu=c(x()),mt=c(V()),ft=c(f());var Us=globalThis,wa=t=>t,mn=Us.trustedTypes,Oa=mn?mn.createPolicy("lit-html",{createHTML:t=>t}):void 0,$a="$lit$",Jt=`lit$${Math.random().toFixed(9).slice(2)}$`,Da="?"+Jt,ih=`<${Da}>`,Er=document,gn=()=>Er.createComment(""),Ti=t=>t===null||typeof t!="object"&&typeof t!="function",zs=Array.isArray,nh=t=>zs(t)||typeof t?.[Symbol.iterator]=="function",Is=`[
|
|
125
125
|
\f\r]`,Ri=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_a=/-->/g,Ra=/>/g,xr=RegExp(`>|${Is}(?:([^\\s"'>=/]+)(${Is}*=${Is}*(?:[^
|
|
126
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ta=/'/g,ka=/"/g,Ia=/^(?:script|style|textarea|title)$/i,Vs=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Pa=Vs(1),Ma=Vs(2),Na=Vs(3),ki=Symbol.for("lit-noChange"),fe=Symbol.for("lit-nothing"),La=new WeakMap,Sr=Er.createTreeWalker(Er,129);function Fa(t,e){if(!zs(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Oa!==void 0?Oa.createHTML(e):e}var nh=(t,e)=>{let r=t.length-1,i=[],s,n=e===2?"<svg>":e===3?"<math>":"",o=Ri;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===Ri?d[1]==="!--"?o=_a:d[1]!==void 0?o=Ra:d[2]!==void 0?(Ia.test(d[2])&&(s=RegExp("</"+d[2],"g")),o=xr):d[3]!==void 0&&(o=xr):o===xr?d[0]===">"?(o=s??Ri,p=-1):d[1]===void 0?p=-2:(p=o.lastIndex-d[2].length,u=d[1],o=d[3]===void 0?xr:d[3]==='"'?ka:Ta):o===ka||o===Ta?o=xr:o===_a||o===Ra?o=Ri:(o=xr,s=void 0);let b=o===xr&&t[a+1].startsWith("/>")?" ":"";n+=o===Ri?l+rh:p>=0?(i.push(u),l.slice(0,p)+$a+l.slice(p)+Jt+b):l+Jt+(p===-2?a:b)}return[Fa(t,n+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Li=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]=nh(e,r);if(this.el=t.createElement(u,i),Sr.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(s=Sr.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(let p of s.getAttributeNames())if(p.endsWith($a)){let h=d[o++],b=s.getAttribute(p).split(Jt),S=/([.?@])?(.*)/.exec(h);l.push({type:1,index:n,name:S[2],strings:b,ctor:S[1]==="."?Ms:S[1]==="?"?Ns:S[1]==="@"?Fs:ei}),s.removeAttribute(p)}else p.startsWith(Jt)&&(l.push({type:6,index:n}),s.removeAttribute(p));if(Ia.test(s.tagName)){let p=s.textContent.split(Jt),h=p.length-1;if(h>0){s.textContent=mn?mn.emptyScript:"";for(let b=0;b<h;b++)s.append(p[b],gn()),Sr.nextNode(),l.push({type:2,index:++n});s.append(p[h],gn())}}}else if(s.nodeType===8)if(s.data===Da)l.push({type:2,index:n});else{let p=-1;for(;(p=s.data.indexOf(Jt,p+1))!==-1;)l.push({type:7,index:n}),p+=Jt.length-1}n++}}static createElement(e,r){let i=Er.createElement("template");return i.innerHTML=e,i}};function Jr(t,e,r=t,i){if(e===ki)return e;let s=i!==void 0?r._$Co?.[i]:r._$Cl,n=Ti(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=Jr(t,s._$AS(t,e.values),s,i)),e}var Ps=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??Er).importNode(r,!0);Sr.currentNode=s;let n=Sr.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let u;l.type===2?u=new yn(n,n.nextSibling,this,e):l.type===1?u=new l.ctor(n,l.name,l.strings,this,e):l.type===6&&(u=new Bs(n,this,e)),this._$AV.push(u),l=i[++a]}o!==l?.index&&(n=Sr.nextNode(),o++)}return Sr.currentNode=Er,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++}},yn=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=Jr(this,e,r),Ti(e)?e===fe||e==null||e===""?(this._$AH!==fe&&this._$AR(),this._$AH=fe):e!==this._$AH&&e!==ki&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):ih(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&&Ti(this._$AH)?this._$AA.nextSibling.data=e:this.T(Er.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=Li.createElement(Fa(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===s)this._$AH.p(r);else{let n=new Ps(s,this),o=n.u(this.options);n.p(r),this.T(o),this._$AH=n}}_$AC(e){let r=La.get(e.strings);return r===void 0&&La.set(e.strings,r=new Li(e)),r}k(e){zs(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(gn()),this.O(gn()),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=wa(e).nextSibling;wa(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},ei=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=Jr(this,e,r,0),o=!Ti(e)||e!==this._$AH&&e!==ki,o&&(this._$AH=e);else{let a=e,l,u;for(e=n[0],l=0;l<n.length-1;l++)u=Jr(this,a[i+l],r,l),u===ki&&(u=this._$AH[l]),o||=!Ti(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??"")}},Ms=class extends ei{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===fe?void 0:e}},Ns=class extends ei{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==fe)}},Fs=class extends ei{constructor(e,r,i,s,n){super(e,r,i,s,n),this.type=5}_$AI(e,r=this){if((e=Jr(this,e,r,0)??fe)===ki)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)}},Bs=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){Jr(this,e)}};var sh=Us.litHtmlPolyfillSupport;sh?.(Li,yn),(Us.litHtmlVersions??=[]).push("3.3.3");var Ua=Symbol.for(""),oh=t=>{if(t?.r===Ua)return t?._$litStatic$},Hs=t=>({_$litStatic$:t,r:Ua});var Ba=new Map,js=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=oh(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=Ba.get(p))===void 0&&(o.raw=o,Ba.set(p,e=o)),r=a}return t(e,...r)},qs=js(Pa),dm=js(Ma),pm=js(Na);var Ws=c(V()),Za=c(f());var oe;(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"})(oe||(oe={}));var ut=c(x()),m=c(f()),za=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.titleFont),Wt=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.contentFont),y={fontFamily:Wt,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")},Ar={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-font-family","",za),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")},Cr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",za),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")},wr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Wt),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")},Or={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Wt),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")},$t={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Wt),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","",Wt),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")},We={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Wt),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")},_r={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Wt),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")},Rr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Wt),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")},xt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Wt),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")},Va=ut.css`
|
|
126
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ta=/'/g,ka=/"/g,Ia=/^(?:script|style|textarea|title)$/i,Vs=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Pa=Vs(1),Ma=Vs(2),Na=Vs(3),ki=Symbol.for("lit-noChange"),fe=Symbol.for("lit-nothing"),La=new WeakMap,Sr=Er.createTreeWalker(Er,129);function Fa(t,e){if(!zs(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Oa!==void 0?Oa.createHTML(e):e}var sh=(t,e)=>{let r=t.length-1,i=[],s,n=e===2?"<svg>":e===3?"<math>":"",o=Ri;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===Ri?d[1]==="!--"?o=_a:d[1]!==void 0?o=Ra:d[2]!==void 0?(Ia.test(d[2])&&(s=RegExp("</"+d[2],"g")),o=xr):d[3]!==void 0&&(o=xr):o===xr?d[0]===">"?(o=s??Ri,p=-1):d[1]===void 0?p=-2:(p=o.lastIndex-d[2].length,u=d[1],o=d[3]===void 0?xr:d[3]==='"'?ka:Ta):o===ka||o===Ta?o=xr:o===_a||o===Ra?o=Ri:(o=xr,s=void 0);let b=o===xr&&t[a+1].startsWith("/>")?" ":"";n+=o===Ri?l+ih:p>=0?(i.push(u),l.slice(0,p)+$a+l.slice(p)+Jt+b):l+Jt+(p===-2?a:b)}return[Fa(t,n+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Li=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]=sh(e,r);if(this.el=t.createElement(u,i),Sr.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(s=Sr.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(let p of s.getAttributeNames())if(p.endsWith($a)){let h=d[o++],b=s.getAttribute(p).split(Jt),S=/([.?@])?(.*)/.exec(h);l.push({type:1,index:n,name:S[2],strings:b,ctor:S[1]==="."?Ms:S[1]==="?"?Ns:S[1]==="@"?Fs:ei}),s.removeAttribute(p)}else p.startsWith(Jt)&&(l.push({type:6,index:n}),s.removeAttribute(p));if(Ia.test(s.tagName)){let p=s.textContent.split(Jt),h=p.length-1;if(h>0){s.textContent=mn?mn.emptyScript:"";for(let b=0;b<h;b++)s.append(p[b],gn()),Sr.nextNode(),l.push({type:2,index:++n});s.append(p[h],gn())}}}else if(s.nodeType===8)if(s.data===Da)l.push({type:2,index:n});else{let p=-1;for(;(p=s.data.indexOf(Jt,p+1))!==-1;)l.push({type:7,index:n}),p+=Jt.length-1}n++}}static createElement(e,r){let i=Er.createElement("template");return i.innerHTML=e,i}};function Jr(t,e,r=t,i){if(e===ki)return e;let s=i!==void 0?r._$Co?.[i]:r._$Cl,n=Ti(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=Jr(t,s._$AS(t,e.values),s,i)),e}var Ps=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??Er).importNode(r,!0);Sr.currentNode=s;let n=Sr.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let u;l.type===2?u=new yn(n,n.nextSibling,this,e):l.type===1?u=new l.ctor(n,l.name,l.strings,this,e):l.type===6&&(u=new Bs(n,this,e)),this._$AV.push(u),l=i[++a]}o!==l?.index&&(n=Sr.nextNode(),o++)}return Sr.currentNode=Er,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++}},yn=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=Jr(this,e,r),Ti(e)?e===fe||e==null||e===""?(this._$AH!==fe&&this._$AR(),this._$AH=fe):e!==this._$AH&&e!==ki&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):nh(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&&Ti(this._$AH)?this._$AA.nextSibling.data=e:this.T(Er.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=Li.createElement(Fa(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===s)this._$AH.p(r);else{let n=new Ps(s,this),o=n.u(this.options);n.p(r),this.T(o),this._$AH=n}}_$AC(e){let r=La.get(e.strings);return r===void 0&&La.set(e.strings,r=new Li(e)),r}k(e){zs(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(gn()),this.O(gn()),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=wa(e).nextSibling;wa(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},ei=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=Jr(this,e,r,0),o=!Ti(e)||e!==this._$AH&&e!==ki,o&&(this._$AH=e);else{let a=e,l,u;for(e=n[0],l=0;l<n.length-1;l++)u=Jr(this,a[i+l],r,l),u===ki&&(u=this._$AH[l]),o||=!Ti(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??"")}},Ms=class extends ei{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===fe?void 0:e}},Ns=class extends ei{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==fe)}},Fs=class extends ei{constructor(e,r,i,s,n){super(e,r,i,s,n),this.type=5}_$AI(e,r=this){if((e=Jr(this,e,r,0)??fe)===ki)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)}},Bs=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){Jr(this,e)}};var oh=Us.litHtmlPolyfillSupport;oh?.(Li,yn),(Us.litHtmlVersions??=[]).push("3.3.3");var Ua=Symbol.for(""),ah=t=>{if(t?.r===Ua)return t?._$litStatic$},Hs=t=>({_$litStatic$:t,r:Ua});var Ba=new Map,js=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=ah(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=Ba.get(p))===void 0&&(o.raw=o,Ba.set(p,e=o)),r=a}return t(e,...r)},qs=js(Pa),pm=js(Ma),hm=js(Na);var Ws=c(V()),Za=c(f());var oe;(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"})(oe||(oe={}));var ut=c(x()),m=c(f()),za=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.titleFont),Wt=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.contentFont),y={fontFamily:Wt,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")},Ar={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-font-family","",za),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")},Cr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",za),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")},wr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Wt),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")},Or={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Wt),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")},$t={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Wt),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","",Wt),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")},We={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Wt),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")},_r={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Wt),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")},Rr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Wt),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")},xt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Wt),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")},Va=ut.css`
|
|
127
127
|
.ft-typography--title {
|
|
128
128
|
font-family: ${Ar.fontFamily};
|
|
129
129
|
font-size: ${Ar.fontSize};
|
|
@@ -267,15 +267,15 @@
|
|
|
267
267
|
position: relative;
|
|
268
268
|
word-break: break-word;
|
|
269
269
|
}
|
|
270
|
-
`;var nl=["top","right","bottom","left"],il=["start","end"],Gs=nl.reduce((t,e)=>t.concat(e,e+"-"+il[0],e+"-"+il[1]),[]),Di=Math.min,ir=Math.max,Ii=Math.round;var Dt=t=>({x:t,y:t}),ah={left:"right",right:"left",bottom:"top",top:"bottom"};function sl(t,e,r){return ir(t,Di(e,r))}function bn(t,e){return typeof t=="function"?t(e):t}function Pi(t){return t.split("-")[0]}function nr(t){return t.split("-")[1]}function Qs(t){return t==="x"?"y":"x"}function Ys(t){return t==="y"?"height":"width"}function vn(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Xs(t){return Qs(vn(t))}function ol(t,e,r){r===void 0&&(r=!1);let i=nr(t),s=Xs(t),n=Ys(s),o=s==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[n]>e.floating[n]&&(o=Ks(o)),[o,Ks(o)]}function al(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Ks(t){let e=Pi(t);return ah[e]+t.slice(e.length)}function lh(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 ll(t){return typeof t!="number"?lh(t):{top:t,right:t,bottom:t,left:t}}function Tr(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 cl(t,e,r){let{reference:i,floating:s}=t,n=vn(e),o=Xs(e),a=Ys(o),l=Pi(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=nr(e);return S&&(b[o]+=h*(S==="end"?1:-1)*(r&&u?-1:1)),b}async function ul(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}=bn(e,t),S=ll(b),v=a[h?p==="floating"?"reference":"floating":p],$=Tr(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})),j=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},G=Tr(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:j,offsetParent:E,strategy:l}):j);return{top:($.top-G.top+S.top)/A.y,bottom:(G.bottom-$.bottom+S.bottom)/A.y,left:($.left-G.left+S.left)/A.x,right:(G.right-$.right+S.right)/A.x}}var ch=50,dl=async(t,e,r)=>{let{placement:i="bottom",strategy:s="absolute",middleware:n=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:ul},l=await(o.isRTL==null?void 0:o.isRTL(e)),u=await o.getElementRects({reference:t,floating:e,strategy:s}),{x:d,y:p}=cl(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:j}=v,{x:E,y:A,data:G,reset:z}=await j({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[$],...G},z&&b<ch&&(b++,typeof z=="object"&&(z.placement&&(h=z.placement),z.rects&&(u=z.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:s}):z.rects),{x:d,y:p}=cl(u,h,l)),R=-1)}return{x:d,y:p,placement:h,strategy:s,middlewareData:S}};function uh(t,e,r){return(t?[...r.filter(s=>nr(s)===t),...r.filter(s=>nr(s)!==t)]:r.filter(s=>Pi(s)===s)).filter(s=>t?nr(s)===t||(e?al(s)!==s:!1):!0)}var pl=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=Gs,autoAlignment:b=!0,...S}=bn(t,e),R=p!==void 0||h===Gs?uh(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 j=await l.detectOverflow(e,S),E=ol($,n,await(l.isRTL==null?void 0:l.isRTL(u.floating))),A=[j[Pi($)],j[E[0]],j[E[1]]],G=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:$,overflows:A}],z=R[v+1];if(z)return{data:{index:v+1,overflows:G},reset:{placement:z}};let ve=G.map(ct=>{let Oi=nr(ct.placement);return[ct.placement,Oi&&d?ct.overflows.slice(0,2).reduce((Gp,Qp)=>Gp+Qp,0):ct.overflows[0],ct.overflows]}).sort((ct,Oi)=>ct[1]-Oi[1]),fn=((s=ve.filter(ct=>ct[2].slice(0,nr(ct[0])?2:3).every(Oi=>Oi<=0))[0])==null?void 0:s[0])||ve[0][0];return fn!==a?{data:{index:v+1,overflows:G},reset:{placement:fn}}:{}}}};var hl=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:j=>{let{x:E,y:A}=j;return{x:E,y:A}}},...u}=bn(t,e),d={x:r,y:i},p=await n.detectOverflow(e,u),h=vn(s),b=Qs(h),S=d[b],R=d[h],v=(j,E)=>sl(E+p[j==="y"?"top":"left"],E,E-p[j==="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 Sn(){return typeof window<"u"}function Lr(t){return ml(t)?(t.nodeName||"").toLowerCase():"#document"}function Ke(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Kt(t){var e;return(e=(ml(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ml(t){return Sn()?t instanceof Node||t instanceof Ke(t).Node:!1}function St(t){return Sn()?t instanceof Element||t instanceof Ke(t).Element:!1}function Gt(t){return Sn()?t instanceof HTMLElement||t instanceof Ke(t).HTMLElement:!1}function fl(t){return!Sn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ke(t).ShadowRoot}function Mi(t){let{overflow:e,overflowX:r,overflowY:i,display:s}=Et(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&s!=="inline"&&s!=="contents"}function gl(t){return/^(table|td|th)$/.test(Lr(t))}function Ni(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var dh=/transform|translate|scale|rotate|perspective|filter/,ph=/paint|layout|strict|content/,kr=t=>!!t&&t!=="none",Zs;function ti(t){let e=St(t)?Et(t):t;return kr(e.transform)||kr(e.translate)||kr(e.scale)||kr(e.rotate)||kr(e.perspective)||!En()&&(kr(e.backdropFilter)||kr(e.filter))||dh.test(e.willChange||"")||ph.test(e.contain||"")}function yl(t){let e=sr(t);for(;Gt(e)&&!ri(e);){if(ti(e))return e;if(Ni(e))return null;e=sr(e)}return null}function En(){return Zs==null&&(Zs=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Zs}function ri(t){return/^(html|body|#document)$/.test(Lr(t))}function Et(t){return Ke(t).getComputedStyle(t)}function Fi(t){return St(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function sr(t){if(Lr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||fl(t)&&t.host||Kt(t);return fl(e)?e.host:e}function bl(t){let e=sr(t);return ri(e)?(t.ownerDocument||t).body:Gt(e)&&Mi(e)?e:bl(e)}function xn(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let s=bl(t),n=s===((i=t.ownerDocument)==null?void 0:i.body),o=Ke(s);if(n){let a=An(o);return e.concat(o,o.visualViewport||[],Mi(s)?s:[],a&&r?xn(a):[])}else return e.concat(s,xn(s,[],r))}function An(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Sl(t){let e=Et(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,s=Gt(t),n=s?t.offsetWidth:r,o=s?t.offsetHeight:i,a=Ii(r)!==n||Ii(i)!==o;return a&&(r=n,i=o),{width:r,height:i,$:a}}function El(t){return St(t)?t:t.contextElement}function ii(t){let e=El(t);if(!Gt(e))return Dt(1);let r=e.getBoundingClientRect(),{width:i,height:s,$:n}=Sl(e),o=(n?Ii(r.width):r.width)/i,a=(n?Ii(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var hh=Dt(0);function Al(t){let e=Ke(t);return!En()||!e.visualViewport?hh:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function fh(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Ke(t)}function Bi(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let s=t.getBoundingClientRect(),n=El(t),o=Dt(1);e&&(i?St(i)&&(o=ii(i)):o=ii(t));let a=fh(n,r,i)?Al(n):Dt(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=Ke(n),b=St(i)?Ke(i):i,S=h,R=An(S);for(;R&&b!==S;){let v=ii(R),$=R.getBoundingClientRect(),j=Et(R),E=$.left+(R.clientLeft+parseFloat(j.paddingLeft))*v.x,A=$.top+(R.clientTop+parseFloat(j.paddingTop))*v.y;l*=v.x,u*=v.y,d*=v.x,p*=v.y,l+=E,u+=A,S=Ke(R),R=An(S)}}return Tr({width:d,height:p,x:l,y:u})}function Cn(t,e){let r=Fi(t).scrollLeft;return e?e.left+r:Bi(Kt(t)).left+r}function Cl(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Cn(t,r),s=r.top+e.scrollTop;return{x:i,y:s}}function mh(t){let{elements:e,rect:r,offsetParent:i,strategy:s}=t,n=s==="fixed",o=Kt(i),a=e?Ni(e.floating):!1;if(i===o||a&&n)return r;let l={scrollLeft:0,scrollTop:0},u=Dt(1),d=Dt(0),p=Gt(i);if((p||!n)&&((Lr(i)!=="body"||Mi(o))&&(l=Fi(i)),p)){let b=Bi(i);u=ii(i),d.x=b.x+i.clientLeft,d.y=b.y+i.clientTop}let h=o&&!p&&!n?Cl(o,l):Dt(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 gh(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function yh(t){let e=Fi(t),r=t.ownerDocument.body,i=ir(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ir(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),n=-e.scrollLeft+Cn(t),o=-e.scrollTop;return Et(r).direction==="rtl"&&(n+=ir(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:n,y:o}}var bh=25;function vh(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",s=Ke(t),n=Kt(t),o=s.visualViewport,a=n.clientWidth,l=n.clientHeight,u=0,d=0;if(o){let h=!En()||e==="fixed";i?h||(u=-o.offsetLeft,d=-o.offsetTop):(a=o.width,l=o.height,h&&(u=o.offsetLeft,d=o.offsetTop))}if(Cn(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;$<=bh&&(a-=$)}return{width:a,height:l,x:u,y:d}}function xh(t,e){let r=Bi(t,!0,e==="fixed"),i=r.top+t.clientTop,s=r.left+t.clientLeft,n=ii(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 vl(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=vh(t,r,e);else if(e==="document")i=yh(Kt(t));else if(St(e))i=xh(e,r);else{let s=Al(t);i={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return Tr(i)}function Sh(t,e){let r=e.get(t);if(r)return r;let i=xn(t,[],!1).filter(a=>St(a)&&Lr(a)!=="body"),s=null,n=Et(t).position==="fixed",o=n?sr(t):t;for(;St(o)&&!ri(o);){let a=Et(o),l=ti(o),u=s?s.position:n?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&a.position==="static")?i=i.filter(p=>p!==o):s=a,o=sr(o)}return e.set(t,i),i}function Eh(t){let{element:e,boundary:r,rootBoundary:i,strategy:s}=t,o=[...r==="clippingAncestors"?Ni(e)?[]:Sh(e,this._c):[].concat(r),i],a=vl(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=vl(e,o[h],s);l=ir(b.top,l),u=Di(b.right,u),d=Di(b.bottom,d),p=ir(b.left,p)}return{width:u-p,height:d-l,x:p,y:l}}function Ah(t){let{width:e,height:r}=Sl(t);return{width:e,height:r}}function Ch(t,e,r){let i=Gt(e),s=Kt(e),n=r==="fixed",o=Bi(t,!0,n,e),a={scrollLeft:0,scrollTop:0},l=Dt(0);if((i||!n)&&((Lr(e)!=="body"||Mi(s))&&(a=Fi(e)),i)){let h=Bi(e,!0,n,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}!i&&s&&(l.x=Cn(s));let u=s&&!i&&!n?Cl(s,a):Dt(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 Js(t){return Et(t).position==="static"}function xl(t,e){if(!Gt(t)||Et(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Kt(t)===r&&(r=r.ownerDocument.body),r}function wl(t,e){let r=Ke(t);if(Ni(t))return r;if(!Gt(t)){let s=sr(t);for(;s&&!ri(s);){if(St(s)&&!Js(s))return s;s=sr(s)}return r}let i=xl(t,e);for(;i&&gl(i)&&Js(i);)i=xl(i,e);return i&&ri(i)&&Js(i)&&!ti(i)?r:i||yl(t)||r}var wh=async function(t){let e=this.getOffsetParent||wl,r=this.getDimensions,i=await r(t.floating);return{reference:Ch(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Oh(t){return Et(t).direction==="rtl"}var wn={convertOffsetParentRelativeRectToViewportRelativeRect:mh,getDocumentElement:Kt,getClippingRect:Eh,getOffsetParent:wl,getElementRects:wh,getClientRects:gh,getDimensions:Ah,getScale:ii,isElement:St,isRTL:Oh};var Ol=pl,_l=hl;var Rl=(t,e,r)=>{let i=new Map,s=r??{},n={...wn,...s.platform,_c:i};return dl(t,e,{...s,platform:n})};function Tl(t){return _h(t)}function eo(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function _h(t){for(let e=t;e;e=eo(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=eo(t);e;e=eo(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||ti(r)||e.tagName==="BODY"))return e}return null}async function kl(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},Rl(t,e,{strategy:i.strategy,platform:{...wn,getOffsetParent:s=>wn.getOffsetParent(s,Tl)},middleware:[_l({crossAxis:!0}),Ol({allowedPlacements:[i.placement]})]})}var hi=c(f());var Ao=c(V());var Ll=c(V(),1);var to=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},Rh=t=>({fromAttribute:e=>{if(e==null)return Ui(t);try{return JSON.parse(e)}catch{return Ui(t)}},toAttribute:e=>JSON.stringify(e)});function $l(t,e){return(0,Ll.property)({type:Object,converter:Rh(t),hasChanged:zi,...e??{}})}function Th(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(!ni(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(!ni(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(!ni(t[o],e[o]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function ni(t,e){try{return Th(t,e)}catch{return!1}}function zi(t,e){return!ni(t,e)}function Ui(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function On(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 Dl=c(V(),1);var ro=t=>{let e=t??{};return(r,i)=>{var s;let n={hasChanged:zi,attribute:!1,...e};(0,Dl.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 _n=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 $r=c(V(),1);var Rn=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 kn=c(x(),1);var Tn=class extends kn.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,kn.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){to(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 Il(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 oi=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},Fl,Pl=Symbol("constructorPrototype"),Ml=Symbol("constructorName"),Bl=Symbol("exportpartsDebouncer"),Nl=Symbol("dynamicDependenciesLoaded"),si=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};si.eventName="exportparts-updated";var It=class extends Tn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Fl]=new Rn(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[Bl].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[Ml]=this.constructor.name,this[Pl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ml]&&Object.setPrototypeOf(this,this[Pl])}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[Nl]||(r[Nl]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(si.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(si.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 si)})}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=Il(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(", ")}};Fl=Bl;oi([(0,$r.property)()],It.prototype,"exportpartsPrefix",void 0);oi([$l([])],It.prototype,"exportpartsPrefixes",void 0);oi([(0,$r.property)({reflect:!0})],It.prototype,"exportparts",void 0);oi([(0,$r.property)()],It.prototype,"customStylesheet",void 0);oi([(0,$r.property)()],It.prototype,"elementToFocus",void 0);oi([(0,$r.state)()],It.prototype,"useAdoptedStyleSheets",void 0);function Ln(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Vi=Symbol("internalReduxEventsUnsubscribers"),or=Symbol("internalStoresUnsubscribers"),Dr=Symbol("internalStores"),kh=On(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[Dr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Dr].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[Dr].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Dr].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[Dr].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Dr].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[or].has(o.store):this[or].size>0)&&(this[a]=o.selector(u.getState(),this))}})}subscribeToStore(o,a){var l,u;this[or].set(o,a.subscribe(()=>this.updateFromStores())),this[Vi].set(o,[]),Ln(a)&&(!((l=a.deprecatedKeys)===null||l===void 0)&&l.length&&this.reduxConstructor.reduxProperties.forEach((d,p)=>{this.getStore(d.store)===a&&a.deprecatedKeys.includes(p)&&console.warn("Element",this,"is subscribed to deprecated key",p,"in store",a.name)}),a.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((d,p)=>{if(typeof this[p]=="function"&&(!d.store||a.name===d.store)){let h=b=>this[p](b);a.addEventListener(d.eventName,h),this[Vi].get(o).push(()=>a.removeEventListener(d.eventName,h))}}))),this.onStoreAvailable(o)}unsubscribeFromStores(){this[or].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[or].has(o)&&this[or].get(o)(),this[or].delete(o),(a=this[Vi].get(o))===null||a===void 0||a.forEach(l=>l()),this[Vi].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=or,r=Dr,i=Vi,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),Ul=class extends kh(It){};function _e(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 Lh=typeof Symbol=="function"&&Symbol.observable||"@@observable",zl=Lh,io=()=>Math.random().toString(36).substring(7).split("").join("."),$h={INIT:`@@redux/INIT${io()}`,REPLACE:`@@redux/REPLACE${io()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${io()}`},$n=$h;function Dn(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 no(t,e,r){if(typeof t!="function")throw new Error(_e(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(_e(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(_e(1));return r(no)(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(_e(3));return s}function p(v){if(typeof v!="function")throw new Error(_e(4));if(l)throw new Error(_e(5));let $=!0;u();let j=a++;return o.set(j,v),function(){if($){if(l)throw new Error(_e(6));$=!1,u(),o.delete(j),n=null}}}function h(v){if(!Dn(v))throw new Error(_e(7));if(typeof v.type>"u")throw new Error(_e(8));if(typeof v.type!="string")throw new Error(_e(17));if(l)throw new Error(_e(9));try{l=!0,s=i(s,v)}finally{l=!1}return(n=o).forEach(j=>{j()}),v}function b(v){if(typeof v!="function")throw new Error(_e(10));i=v,h({type:$n.REPLACE})}function S(){let v=p;return{subscribe($){if(typeof $!="object"||$===null)throw new Error(_e(11));function j(){let A=$;A.next&&A.next(d())}return j(),{unsubscribe:v(j)}},[zl](){return this}}}return h({type:$n.INIT}),{dispatch:h,subscribe:p,getState:d,replaceReducer:b,[zl]:S}}function Dh(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:$n.INIT})>"u")throw new Error(_e(12));if(typeof r(void 0,{type:$n.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(_e(13))})}function so(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{Dh(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(_e(14))}d[h]=R,u=u||R!==S}return u=u||i.length!==Object.keys(a).length,u?d:a}}function Hi(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function Vl(...t){return e=>(r,i)=>{let s=e(r,i),n=()=>{throw new Error(_e(15))},o={getState:s.getState,dispatch:(l,...u)=>n(l,...u)},a=t.map(l=>l(o));return n=Hi(...a)(s.dispatch),{...s,dispatch:n}}}function Hl(t){return Dn(t)&&"type"in t&&typeof t.type=="string"}var Zl=Symbol.for("immer-nothing"),jl=Symbol.for("immer-draftable"),Ie=Symbol.for("immer-state");function At(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var et=Object,li=et.getPrototypeOf,Nn="constructor",Hn="prototype",co="configurable",Fn="enumerable",Pn="writable",ji="value",Pt=t=>!!t&&!!t[Ie];function tt(t){return t?Jl(t)||qn(t)||!!t[jl]||!!t[Nn]?.[jl]||Wn(t)||Gi(t):!1}var Ih=et[Hn][Nn].toString(),ql=new WeakMap;function Jl(t){if(!t||!bo(t))return!1;let e=li(t);if(e===null||e===et[Hn])return!0;let r=et.hasOwnProperty.call(e,Nn)&&e[Nn];if(r===Object)return!0;if(!ai(r))return!1;let i=ql.get(r);return i===void 0&&(i=Function.toString.call(r),ql.set(r,i)),i===Ih}function jn(t,e,r=!0){Ki(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 Ki(t){let e=t[Ie];return e?e.type_:qn(t)?1:Wn(t)?2:Gi(t)?3:0}var oo=(t,e,r=Ki(t))=>r===2?t.has(e):et[Hn].hasOwnProperty.call(t,e),uo=(t,e,r=Ki(t))=>r===2?t.get(e):t[e],Bn=(t,e,r,i=Ki(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 qn=Array.isArray,Wn=t=>t instanceof Map,Gi=t=>t instanceof Set,bo=t=>typeof t=="object",ai=t=>typeof t=="function",ao=t=>typeof t=="boolean";function Mh(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var Qt=t=>t.copy_||t.base_;var vo=t=>t.modified_?t.copy_:t.base_;function po(t,e){if(Wn(t))return new Map(t);if(Gi(t))return new Set(t);if(qn(t))return Array[Hn].slice.call(t);let r=Jl(t);if(e===!0||e==="class_only"&&!r){let i=et.getOwnPropertyDescriptors(t);delete i[Ie];let s=Reflect.ownKeys(i);for(let n=0;n<s.length;n++){let o=s[n],a=i[o];a[Pn]===!1&&(a[Pn]=!0,a[co]=!0),(a.get||a.set)&&(i[o]={[co]:!0,[Pn]:!0,[Fn]:a[Fn],[ji]:t[o]})}return et.create(li(t),i)}else{let i=li(t);if(i!==null&&r)return{...t};let s=et.create(i);return et.assign(s,t)}}function Kn(t,e=!1){return Gn(t)||Pt(t)||!tt(t)||(Ki(t)>1&&et.defineProperties(t,{set:In,add:In,clear:In,delete:In}),et.freeze(t),e&&jn(t,(r,i)=>{Kn(i,!0)},!1)),t}function Nh(){At(2)}var In={[ji]:Nh};function Gn(t){return t===null||!bo(t)?!0:et.isFrozen(t)}var Un="MapSet",ho="Patches",Wl="ArrayMethods",ec={};function Ir(t){let e=ec[t];return e||At(0,t),e}var Kl=t=>!!ec[t];var qi,tc=()=>qi,Fh=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Kl(Un)?Ir(Un):void 0,arrayMethodsPlugin_:Kl(Wl)?Ir(Wl):void 0});function Gl(t,e){e&&(t.patchPlugin_=Ir(ho),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function fo(t){mo(t),t.drafts_.forEach(Bh),t.drafts_=null}function mo(t){t===qi&&(qi=t.parent_)}var Ql=t=>qi=Fh(qi,t);function Bh(t){let e=t[Ie];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Yl(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[Ie].modified_&&(fo(e),At(4)),tt(t)&&(t=Xl(e,t));let{patchPlugin_:s}=e;s&&s.generateReplacementPatches_(r[Ie].base_,t,e)}else t=Xl(e,r);return Uh(e,t,!0),fo(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Zl?t:void 0}function Xl(t,e){if(Gn(e))return e;let r=e[Ie];if(!r)return zn(e,t.handledSet_,t);if(!Qn(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);nc(r,t)}return r.copy_}function Uh(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Kn(e,r)}function rc(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Qn=(t,e)=>t.scope_===e,zh=[];function ic(t,e,r,i){let s=Qt(t),n=t.type_;if(i!==void 0&&uo(s,i,n)===e){Bn(s,i,r,n);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;jn(s,(l,u)=>{if(Pt(u)){let d=a.get(u)||[];d.push(l),a.set(u,d)}})}let o=t.draftLocations_.get(e)??zh;for(let a of o)Bn(s,a,r,n)}function Vh(t,e,r){t.callbacks_.push(function(s){let n=e;if(!n||!Qn(n,s))return;s.mapSetPlugin_?.fixSetContents(n);let o=vo(n);ic(t,n.draft_??n,o,r),nc(n,s)})}function nc(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)}rc(t)}}function Hh(t,e,r){let{scope_:i}=t;if(Pt(r)){let s=r[Ie];Qn(s,i)&&s.callbacks_.push(function(){Mn(t);let o=vo(s);ic(t,r,o,e)})}else tt(r)&&t.callbacks_.push(function(){let n=Qt(t);t.type_===3?n.has(r)&&zn(r,i.handledSet_,i):uo(n,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&zn(uo(t.copy_,e,t.type_),i.handledSet_,i)})}function zn(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Pt(t)||e.has(t)||!tt(t)||Gn(t)||(e.add(t),jn(t,(i,s)=>{if(Pt(s)){let n=s[Ie];if(Qn(n,r)){let o=vo(n);Bn(t,i,o,t.type_),rc(n)}}else tt(s)&&zn(s,e,r)})),t}function jh(t,e){let r=qn(t),i={type_:r?1:0,scope_:e?e.scope_:tc(),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=Vn;r&&(s=[i],n=Wi);let{revoke:o,proxy:a}=Proxy.revocable(s,n);return i.draft_=a,i.revoke_=o,[a,i]}var Vn={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 s=Qt(t);if(!oo(s,e,t.type_))return Wh(t,s,e);let n=s[e];if(t.finalized_||!tt(n)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&Mh(e))return n;if(n===lo(t.base_,e)||qh(t,e,n)){Mn(t);let o=t.type_===1?+e:e,a=yo(t.scope_,n,t,o);return t.copy_[o]=a}return n},has(t,e){return e in Qt(t)},ownKeys(t){return Reflect.ownKeys(Qt(t))},set(t,e,r){let i=sc(Qt(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let s=lo(Qt(t),e),n=s?.[Ie];if(n&&n.base_===r)return t.copy_[e]=r,t.assigned_.delete(e),!0;if(Ph(r,s)&&(r!==void 0||oo(t.base_,e,t.type_)))return!0;Mn(t),go(t)}return t.copy_[e]===r&&(r!==void 0||oo(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),Hh(t,e,r)),!0},deleteProperty(t,e){return Mn(t),lo(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),go(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&&{[Pn]:!0,[co]:t.type_!==1||e!=="length",[Fn]:i[Fn],[ji]:r[e]}},defineProperty(){At(11)},getPrototypeOf(t){return li(t.base_)},setPrototypeOf(){At(12)}},Wi={};for(let t in Vn){let e=Vn[t];Wi[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}Wi.deleteProperty=function(t,e){return Wi.set.call(this,t,e,void 0)};Wi.set=function(t,e,r){return Vn.set.call(this,t[0],e,r,t[0])};function lo(t,e){let r=t[Ie];return(r?Qt(r):t)[e]}function qh(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||!tt(r)||r[Ie]?!1:t.baseRefs_.has(r)}function Wh(t,e,r){let i=sc(e,r);return i?ji in i?i[ji]:i.get?.call(t.draft_):void 0}function sc(t,e){if(!(e in t))return;let r=li(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=li(r)}}function go(t){t.modified_||(t.modified_=!0,t.parent_&&go(t.parent_))}function Mn(t){t.copy_||(t.assigned_=new Map,t.copy_=po(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Kh=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(ai(e)&&!ai(r)){let n=r;r=e;let o=this;return function(l=n,...u){return o.produce(l,d=>r.call(this,d,...u))}}ai(r)||At(6),i!==void 0&&!ai(i)&&At(7);let s;if(tt(e)){let n=Ql(this),o=yo(n,e,void 0),a=!0;try{s=r(o),a=!1}finally{a?fo(n):mo(n)}return Gl(n,i),Yl(s,n)}else if(!e||!bo(e)){if(s=r(e),s===void 0&&(s=e),s===Zl&&(s=void 0),this.autoFreeze_&&Kn(s,!0),i){let n=[],o=[];Ir(ho).generateReplacementPatches_(e,s,{patches_:n,inversePatches_:o}),i(n,o)}return s}else At(1,e)},this.produceWithPatches=(e,r)=>{if(ai(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]},ao(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),ao(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),ao(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){tt(t)||At(8),Pt(t)&&(t=oc(t));let e=Ql(this),r=yo(e,t,void 0);return r[Ie].isManual_=!0,mo(e),r}finishDraft(t,e){let r=t&&t[Ie];(!r||!r.isManual_)&&At(9);let{scope_:i}=r;return Gl(i,e),Yl(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=Ir(ho).applyPatches_;return Pt(t)?i(t,e):this.produce(t,s=>i(s,e))}};function yo(t,e,r,i){let[s,n]=Wn(e)?Ir(Un).proxyMap_(e,r):Gi(e)?Ir(Un).proxySet_(e,r):jh(e,r);return(r?.scope_??tc()).drafts_.push(s),n.callbacks_=r?.callbacks_??[],n.key_=i,r&&i!==void 0?Vh(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 oc(t){return Pt(t)||At(10,t),ac(t)}function ac(t){if(!tt(t)||Gn(t))return t;let e=t[Ie],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=po(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=po(t,!0);let s=r;return Gi(r)&&(r=new Set),jn(s,(n,o)=>{Bn(r,n,ac(o))},i),e&&(e.finalized_=!1),r}var Gh=globalThis.Iterator,Og=typeof Gh?.from=="function";var Qh=new Kh,xo=Qh.produce;function lc(t){return({dispatch:r,getState:i})=>s=>n=>typeof n=="function"?n(r,i,t):s(n)}var cc=lc(),uc=lc;var Yh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Hi:Hi.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Xh=t=>t&&typeof t.match=="function";function ar(t,e){function r(...i){if(e){let s=e(...i);if(!s)throw new Error(Mt(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=>Hl(i)&&i.type===t,r}var mc=class Qi extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Qi.prototype)}static get[Symbol.species](){return Qi}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Qi(...e[0].concat(this)):new Qi(...e.concat(this))}};function dc(t){return tt(t)?xo(t,()=>{}):t}function Yn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Zh(t){return typeof t=="boolean"}var Jh=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:s=!0,actionCreatorCheck:n=!0}=e??{},o=new mc;return r&&(Zh(r)?o.push(cc):o.push(uc(r.extraArgument))),o},ef="RTK_autoBatch";var pc=t=>e=>{setTimeout(e,t)},tf=(t,e)=>r=>{let i=!1,s,n,o=()=>{i||(i=!0,cancelAnimationFrame(s),clearTimeout(n),r())};s=t(o),n=setTimeout(o,e)},rf=(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?tf(window.requestAnimationFrame,100):pc(10):t.type==="callback"?t.queueNotification:pc(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?.[ef],n=!s,n&&(o||(o=!0,l(u))),i.dispatch(d)}finally{s=!0}}})},nf=t=>function(r){let{autoBatch:i=!0}=r??{},s=new mc(t);return i&&s.push(rf(typeof i=="object"?i:void 0)),s};function gc(t){let e=Jh(),{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(Dn(r))l=so(r);else throw new Error(Mt(1));let u;typeof i=="function"?u=i(e):u=e();let d=Hi;s&&(d=Yh({trace:!1,...typeof s=="object"&&s}));let p=Vl(...u),h=nf(p),b=typeof a=="function"?a(h):h(),S=d(...b);return no(l,o,S)}function yc(t){let e={},r=[],i,s={addCase(n,o){let a=typeof n=="string"?n:n.type;if(!a)throw new Error(Mt(28));if(a in e)throw new Error(Mt(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 sf(t){return typeof t=="function"}function of(t,e){let[r,i,s]=yc(e),n;if(sf(t))n=()=>dc(t());else{let a=dc(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(Pt(d)){let h=p(d,l);return h===void 0?d:h}else{if(tt(d))return xo(d,h=>p(h,l));{let h=p(d,l);if(h===void 0){if(d===null)return d;throw new Error(Mt(9))}return h}}return d},a)}return o.getInitialState=n,o}var af=(t,e)=>Xh(t)?t.match(e):t(e);function lf(...t){return e=>t.some(r=>af(r,e))}var cf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",uf=(t=21)=>{let e="",r=t;for(;r--;)e+=cf[Math.random()*64|0];return e},df=["name","message","stack","code"],So=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},hc=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},pf=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of df)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},fc="External signal was aborted",hf=(()=>{function t(e,r,i){let s=ar(e+"/fulfilled",(l,u,d,p)=>({payload:l,meta:{...p||{},arg:d,requestId:u,requestStatus:"fulfilled"}})),n=ar(e+"/pending",(l,u,d)=>({payload:void 0,meta:{...d||{},arg:u,requestId:l,requestStatus:"pending"}})),o=ar(e+"/rejected",(l,u,d,p,h)=>({payload:p,error:(i&&i.serializeError||pf)(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):uf(),S=new AbortController,R,v;function $(E){v=E,S.abort()}u&&(u.aborted?$(fc):u.addEventListener("abort",()=>$(fc),{once:!0}));let j=(async function(){let E;try{let A=i?.condition?.(l,{getState:p,extra:h});if(mf(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 G=new Promise((z,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([G,Promise.resolve(r(l,{dispatch:d,getState:p,extra:h,requestId:b,signal:S.signal,abort:$,rejectWithValue:((z,ve)=>new So(z,ve)),fulfillWithValue:((z,ve)=>new hc(z,ve))})).then(z=>{if(z instanceof So)throw z;return z instanceof hc?s(z.payload,b,l,z.meta):s(z,b,l)})])}catch(A){E=A instanceof So?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(j,{abort:$,requestId:b,arg:l,unwrap(){return j.then(ff)}})}}return Object.assign(a,{pending:n,rejected:o,fulfilled:s,settled:lf(o,s),typePrefix:e})}return t.withTypes=()=>t,t})();function ff(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function mf(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var bc=Symbol.for("rtk-slice-createasyncthunk"),Ig={[bc]:hf};function gf(t,e){return`${t}/${e}`}function yf({creators:t}={}){let e=t?.asyncThunk?.[bc];return function(i){let{name:s,reducerPath:n=s}=i;if(!s)throw new Error(Mt(11));typeof process<"u";let o=(typeof i.reducers=="function"?i.reducers(vf()):i.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(E,A){let G=typeof E=="string"?E:E.type;if(!G)throw new Error(Mt(12));if(G in l.sliceCaseReducersByType)throw new Error(Mt(13));return l.sliceCaseReducersByType[G]=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],G={reducerName:E,type:gf(s,E),createNotation:typeof i.reducers=="function"};Sf(A)?Af(G,A,u,e):xf(G,A,u)});function d(){let[E={},A=[],G=void 0]=typeof i.extraReducers=="function"?yc(i.extraReducers):[i.extraReducers],z={...E,...l.sliceCaseReducersByType};return of(i.initialState,ve=>{for(let De in z)ve.addCase(De,z[De]);for(let De of l.sliceMatchers)ve.addMatcher(De.matcher,De.reducer);for(let De of A)ve.addMatcher(De.matcher,De.reducer);G&&ve.addDefaultCase(G)})}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 G(ve){let De=ve[E];return typeof De>"u"&&A&&(De=Yn(b,G,v)),De}function z(ve=p){return Yn(Yn(h,A,()=>new WeakMap),ve,()=>{let De={};for(let[fn,ct]of Object.entries(i.selectors??{}))De[fn]=bf(ct,ve,()=>Yn(b,ve,v),A);return De})}return{reducerPath:E,getSelectors:z,get selectors(){return z(G)},selectSlice:G}}let j={name:s,reducer:R,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:v,...$(n),injectInto(E,{reducerPath:A,...G}={}){let z=A??n;return E.inject({reducerPath:z,reducer:R},G),{...j,...$(z,!0)}}};return j}}function bf(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 vc=yf();function vf(){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 xf({type:t,reducerName:e,createNotation:r},i,s){let n,o;if("reducer"in i){if(r&&!Ef(i))throw new Error(Mt(17));n=i.reducer,o=i.prepare}else n=i;s.addCase(t,n).exposeCaseReducer(e,n).exposeAction(e,o?ar(t,o):ar(t))}function Sf(t){return t._reducerDefinitionType==="asyncThunk"}function Ef(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Af({type:t,reducerName:e},r,i,s){if(!s)throw new Error(Mt(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||Xn,pending:a||Xn,rejected:l||Xn,settled:u||Xn})}function Xn(){}var xc="listener",Sc="completed",Ec="cancelled",Pg=`task-${Ec}`,Mg=`task-${Sc}`,Ng=`${xc}-${Ec}`,Fg=`${xc}-${Sc}`;var{assign:Ac}=Object;var Eo="listenerMiddleware";var Cf=Ac(ar(`${Eo}/add`),{withTypes:()=>Cf}),Bg=ar(`${Eo}/removeAll`),wf=Ac(ar(`${Eo}/remove`),{withTypes:()=>wf});function Mt(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 Of=On(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)}}}),Zn=class extends Of(Object){};window.ftReduxStores||(window.ftReduxStores={});var Cc=class t extends Zn{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(Ln(n))return n;if(s==null)return;let o=vc({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),a=gc({reducer:(l,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let d=Ui(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,s.deprecatedKeys)}constructor(e,r,i,s){super(),this.reduxSlice=e,this.reduxStore=r,this.deprecatedKeys=s,this.isFtReduxStore=!0,this.commands=new _n,this.injectInto=(o,a)=>this.reduxSlice.injectInto(o,a),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let n=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,a,l)=>{let u=a,d=o[u];return d?(...p)=>{let h=d(...p.map(n));return this.reduxStore.dispatch(h),h}:p=>{let h=u,b=this.getState()[h];ni(b,p)||this.setState({[h]:n(p)})}}}),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 Jn=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 es=c(f()),_f="ft-app-info",lr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};lr.eventName="authentication-change";var Yi=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Yi.eventName="ui-locale-changed";var Rf={session:(t,e)=>{(0,es.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>O.dispatchEvent(new lr(e.payload)),0))}},O=es.FtReduxStore.get({name:_f,reducers:Rf,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 wc=c(f()),ts=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},my=(0,wc.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=>Jn.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return ts([(0,Ao.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),ts([(0,Ao.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),ts([ro({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),ts([ro({store:O.name})],e.prototype,"uiLocale",void 0),e});var Oc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Oc||(Oc={}));var _c;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(_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.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"})(Tc||(Tc={}));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 Lc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Lc||(Lc={}));var $c;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})($c||($c={}));var Dc;(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"})(Dc||(Dc={}));var Ic;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Ic||(Ic={}));var Pc;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Pc||(Pc={}));var Mc;(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",t.DOC_DIFF="DOC_DIFF"})(Mc||(Mc={}));var Nc;(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"})(Nc||(Nc={}));var Fc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Fc||(Fc={}));var Bc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Bc||(Bc={}));var Uc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Uc||(Uc={}));var zc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(zc||(zc={}));var Vc;(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"})(Vc||(Vc={}));var Co;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Co||(Co={}));var Hc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Hc||(Hc={}));var jc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(jc||(jc={}));var wo;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(wo||(wo={}));var qc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(qc||(qc={}));var Wc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Wc||(Wc={}));var Kc;(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"})(Kc||(Kc={}));var Gc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Gc||(Gc={}));var Qc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Qc||(Qc={}));var Oo;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Oo||(Oo={}));var Yc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Yc||(Yc={}));var le;(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"})(le||(le={}));var dt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(dt||(dt={}));var Xc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Xc||(Xc={}));var Zc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Zc||(Zc={}));var Jc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Jc||(Jc={}));var eu;(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"})(eu||(eu={}));var tu;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(tu||(tu={}));var ru;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(ru||(ru={}));var iu;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(iu||(iu={}));var nu;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(nu||(nu={}));var su;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(su||(su={}));var ou;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(ou||(ou={}));var au;(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"})(au||(au={}));var lu;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(lu||(lu={}));var Tf={[le.PERSONAL_BOOK_SHARE_USER]:[le.PERSONAL_BOOK_USER],[le.HTML_EXPORT_USER]:[le.PERSONAL_BOOK_USER],[le.PDF_EXPORT_USER]:[le.PERSONAL_BOOK_USER],[le.KHUB_ADMIN]:[le.CONTENT_PUBLISHER],[le.ADMIN]:[le.KHUB_ADMIN,le.USERS_ADMIN,le.PORTAL_ADMIN,le.BEHAVIOR_DATA_USER],[le.GENERATIVE_AI_EXPORT_USER]:[le.GENERATIVE_AI_USER]};function cu(t,e){return t===e||(Tf[t]??[]).some(r=>cu(r,e))}function rs(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=>cu(i,e))}function uu(t,...e){return t==null?!1:e.some(r=>rs(t,r))}var as=c(f());var _o=c(f());var Pr=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 ci=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 Ge=class extends ci{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 _o.CacheRegistry,this.cache=e?s.commonCache:new _o.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 is=class extends Ge{async listMySearches(){let{session:e}=O.getState();return rs(e,le.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var ns=class extends Ge{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 ss=class extends Ge{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 os=class extends Ge{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 kf="ft-user-assets",Lf={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;To(t,r,[...Ro(t,r),s]),du(t,r,1,i),pu(t,s)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;To(t,r,Ro(t,r).map(s=>s.id===i.id?i:s)),pu(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:s}=e.payload;To(t,r,Ro(t,r).filter(n=>n.id!==s)),du(t,r,-1,i)}},hu={[dt.SEARCHES]:"savedSearches",[dt.BOOKMARKS]:"bookmarks",[dt.BOOKS]:void 0,[dt.COLLECTIONS]:void 0},Ro=(t,e)=>{var r;let i=hu[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},To=(t,e,r)=>{let i=hu[e];i&&(t[i]=r)},du=(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)}},pu=(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)},Ne=as.FtReduxStore.get({name:kf,reducers:Lf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(dt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),ko=class{constructor(e=new ss,r=new os){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=O.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ns,this.savedSearchesService=new is,O.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=O.getState();(0,as.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(),Ne.actions.clearAssetCount(),Ne.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ne.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ne.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Ne.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Ne.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Ne.getState().assetCounts.allAsset[e]!==r.count&&Ne.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Ne.getState().assetCounts.bookmarkByMap[e]!==r.count&&Ne.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Ne.getState().assetCounts.bookmarkByMap).length!==0;e===dt.BOOKMARKS&&r&&Ne.actions.clearBookmarkCountByMap(),Ne.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;Ne.actions.bookmarks(r)}}},$f=new ko;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=$f);var Lo=class{addCommand(e,r=!1){O.commands.add(e,r)}consumeCommand(e){return O.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Lo;var pt=c(f());var fu,ui=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Df=Symbol("clearAfterUnitTest"),ls=class extends(0,pt.withEventBus)(Ge){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[fu]=()=>{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 ui({loadedContexts:e})),this.dispatchEvent(new ui({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new ui({loadedContexts:[e]})),this.dispatchEvent(new ui({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,pt.delay)(0).then(()=>i()).catch(()=>null)))}};fu=Df;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends ls{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends ls{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var di=window.FluidTopicsI18nService,cs=window.FluidTopicsCustomI18nService;var mu=c(f()),$o=class{highlightHtml(e,r,i){(0,mu.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new $o;var gu=c(f());var Do=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 gu.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 Do;var yu=c(f());var Yt=class{static get(e,r,{baseUrl:i,localesConfiguration:s,availableContentLocales:n}=O.getState()){var o;if(!r||n.length>0&&!n.some(a=>a.lang===r)){let a=s?.defaultLocales.defaultContentLocale;r=a?`${a.lang}-${a.region}`:(o=n[0])===null||o===void 0?void 0:o.lang}return new yu.SearchPlaceConverter(i,e??20,s?.allLanguagesAllowed,r,n)}};var Io=class{urlToSearchRequest(e){return Yt.get().parse(e)}searchRequestToUrl(e){return Yt.get().serialize(e)}};window.FluidTopicsUrlService=new Io;var Xt=c(f());var Mr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Mr.eventName="before-location-change";var Nr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Nr.eventName="change";var Po=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))}},bu=new Po;var us=class t extends Xt.WithEventBus{static build(){return new t(window.history,bu,()=>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,Xt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Nr(this.currentItem())),0)}installProxies(){let e=r=>(i,s,[n,o,a])=>{let l=new Mr(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(Mr.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Mr.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Nr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Nr.eventName,e)}currentItem(){return(0,Xt.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,Xt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Xt.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,Xt.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=us.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 vu=c(x());var xu=vu.css`
|
|
271
|
-
`;var
|
|
270
|
+
`;var nl=["top","right","bottom","left"],il=["start","end"],Gs=nl.reduce((t,e)=>t.concat(e,e+"-"+il[0],e+"-"+il[1]),[]),Di=Math.min,ir=Math.max,Ii=Math.round;var Dt=t=>({x:t,y:t}),lh={left:"right",right:"left",bottom:"top",top:"bottom"};function sl(t,e,r){return ir(t,Di(e,r))}function bn(t,e){return typeof t=="function"?t(e):t}function Pi(t){return t.split("-")[0]}function nr(t){return t.split("-")[1]}function Qs(t){return t==="x"?"y":"x"}function Ys(t){return t==="y"?"height":"width"}function vn(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Xs(t){return Qs(vn(t))}function ol(t,e,r){r===void 0&&(r=!1);let i=nr(t),s=Xs(t),n=Ys(s),o=s==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[n]>e.floating[n]&&(o=Ks(o)),[o,Ks(o)]}function al(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Ks(t){let e=Pi(t);return lh[e]+t.slice(e.length)}function ch(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 ll(t){return typeof t!="number"?ch(t):{top:t,right:t,bottom:t,left:t}}function Tr(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 cl(t,e,r){let{reference:i,floating:s}=t,n=vn(e),o=Xs(e),a=Ys(o),l=Pi(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=nr(e);return S&&(b[o]+=h*(S==="end"?1:-1)*(r&&u?-1:1)),b}async function ul(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}=bn(e,t),S=ll(b),v=a[h?p==="floating"?"reference":"floating":p],$=Tr(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})),j=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},G=Tr(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:j,offsetParent:E,strategy:l}):j);return{top:($.top-G.top+S.top)/A.y,bottom:(G.bottom-$.bottom+S.bottom)/A.y,left:($.left-G.left+S.left)/A.x,right:(G.right-$.right+S.right)/A.x}}var uh=50,dl=async(t,e,r)=>{let{placement:i="bottom",strategy:s="absolute",middleware:n=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:ul},l=await(o.isRTL==null?void 0:o.isRTL(e)),u=await o.getElementRects({reference:t,floating:e,strategy:s}),{x:d,y:p}=cl(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:j}=v,{x:E,y:A,data:G,reset:z}=await j({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[$],...G},z&&b<uh&&(b++,typeof z=="object"&&(z.placement&&(h=z.placement),z.rects&&(u=z.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:s}):z.rects),{x:d,y:p}=cl(u,h,l)),R=-1)}return{x:d,y:p,placement:h,strategy:s,middlewareData:S}};function dh(t,e,r){return(t?[...r.filter(s=>nr(s)===t),...r.filter(s=>nr(s)!==t)]:r.filter(s=>Pi(s)===s)).filter(s=>t?nr(s)===t||(e?al(s)!==s:!1):!0)}var pl=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=Gs,autoAlignment:b=!0,...S}=bn(t,e),R=p!==void 0||h===Gs?dh(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 j=await l.detectOverflow(e,S),E=ol($,n,await(l.isRTL==null?void 0:l.isRTL(u.floating))),A=[j[Pi($)],j[E[0]],j[E[1]]],G=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:$,overflows:A}],z=R[v+1];if(z)return{data:{index:v+1,overflows:G},reset:{placement:z}};let ve=G.map(ct=>{let Oi=nr(ct.placement);return[ct.placement,Oi&&d?ct.overflows.slice(0,2).reduce((Qp,Yp)=>Qp+Yp,0):ct.overflows[0],ct.overflows]}).sort((ct,Oi)=>ct[1]-Oi[1]),fn=((s=ve.filter(ct=>ct[2].slice(0,nr(ct[0])?2:3).every(Oi=>Oi<=0))[0])==null?void 0:s[0])||ve[0][0];return fn!==a?{data:{index:v+1,overflows:G},reset:{placement:fn}}:{}}}};var hl=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:j=>{let{x:E,y:A}=j;return{x:E,y:A}}},...u}=bn(t,e),d={x:r,y:i},p=await n.detectOverflow(e,u),h=vn(s),b=Qs(h),S=d[b],R=d[h],v=(j,E)=>sl(E+p[j==="y"?"top":"left"],E,E-p[j==="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 Sn(){return typeof window<"u"}function Lr(t){return ml(t)?(t.nodeName||"").toLowerCase():"#document"}function Ke(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Kt(t){var e;return(e=(ml(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ml(t){return Sn()?t instanceof Node||t instanceof Ke(t).Node:!1}function St(t){return Sn()?t instanceof Element||t instanceof Ke(t).Element:!1}function Gt(t){return Sn()?t instanceof HTMLElement||t instanceof Ke(t).HTMLElement:!1}function fl(t){return!Sn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ke(t).ShadowRoot}function Mi(t){let{overflow:e,overflowX:r,overflowY:i,display:s}=Et(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&s!=="inline"&&s!=="contents"}function gl(t){return/^(table|td|th)$/.test(Lr(t))}function Ni(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var ph=/transform|translate|scale|rotate|perspective|filter/,hh=/paint|layout|strict|content/,kr=t=>!!t&&t!=="none",Zs;function ti(t){let e=St(t)?Et(t):t;return kr(e.transform)||kr(e.translate)||kr(e.scale)||kr(e.rotate)||kr(e.perspective)||!En()&&(kr(e.backdropFilter)||kr(e.filter))||ph.test(e.willChange||"")||hh.test(e.contain||"")}function yl(t){let e=sr(t);for(;Gt(e)&&!ri(e);){if(ti(e))return e;if(Ni(e))return null;e=sr(e)}return null}function En(){return Zs==null&&(Zs=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Zs}function ri(t){return/^(html|body|#document)$/.test(Lr(t))}function Et(t){return Ke(t).getComputedStyle(t)}function Fi(t){return St(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function sr(t){if(Lr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||fl(t)&&t.host||Kt(t);return fl(e)?e.host:e}function bl(t){let e=sr(t);return ri(e)?(t.ownerDocument||t).body:Gt(e)&&Mi(e)?e:bl(e)}function xn(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let s=bl(t),n=s===((i=t.ownerDocument)==null?void 0:i.body),o=Ke(s);if(n){let a=An(o);return e.concat(o,o.visualViewport||[],Mi(s)?s:[],a&&r?xn(a):[])}else return e.concat(s,xn(s,[],r))}function An(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Sl(t){let e=Et(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,s=Gt(t),n=s?t.offsetWidth:r,o=s?t.offsetHeight:i,a=Ii(r)!==n||Ii(i)!==o;return a&&(r=n,i=o),{width:r,height:i,$:a}}function El(t){return St(t)?t:t.contextElement}function ii(t){let e=El(t);if(!Gt(e))return Dt(1);let r=e.getBoundingClientRect(),{width:i,height:s,$:n}=Sl(e),o=(n?Ii(r.width):r.width)/i,a=(n?Ii(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var fh=Dt(0);function Al(t){let e=Ke(t);return!En()||!e.visualViewport?fh:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function mh(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Ke(t)}function Bi(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let s=t.getBoundingClientRect(),n=El(t),o=Dt(1);e&&(i?St(i)&&(o=ii(i)):o=ii(t));let a=mh(n,r,i)?Al(n):Dt(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=Ke(n),b=St(i)?Ke(i):i,S=h,R=An(S);for(;R&&b!==S;){let v=ii(R),$=R.getBoundingClientRect(),j=Et(R),E=$.left+(R.clientLeft+parseFloat(j.paddingLeft))*v.x,A=$.top+(R.clientTop+parseFloat(j.paddingTop))*v.y;l*=v.x,u*=v.y,d*=v.x,p*=v.y,l+=E,u+=A,S=Ke(R),R=An(S)}}return Tr({width:d,height:p,x:l,y:u})}function Cn(t,e){let r=Fi(t).scrollLeft;return e?e.left+r:Bi(Kt(t)).left+r}function Cl(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Cn(t,r),s=r.top+e.scrollTop;return{x:i,y:s}}function gh(t){let{elements:e,rect:r,offsetParent:i,strategy:s}=t,n=s==="fixed",o=Kt(i),a=e?Ni(e.floating):!1;if(i===o||a&&n)return r;let l={scrollLeft:0,scrollTop:0},u=Dt(1),d=Dt(0),p=Gt(i);if((p||!n)&&((Lr(i)!=="body"||Mi(o))&&(l=Fi(i)),p)){let b=Bi(i);u=ii(i),d.x=b.x+i.clientLeft,d.y=b.y+i.clientTop}let h=o&&!p&&!n?Cl(o,l):Dt(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 yh(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function bh(t){let e=Fi(t),r=t.ownerDocument.body,i=ir(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ir(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),n=-e.scrollLeft+Cn(t),o=-e.scrollTop;return Et(r).direction==="rtl"&&(n+=ir(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:n,y:o}}var vh=25;function xh(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",s=Ke(t),n=Kt(t),o=s.visualViewport,a=n.clientWidth,l=n.clientHeight,u=0,d=0;if(o){let h=!En()||e==="fixed";i?h||(u=-o.offsetLeft,d=-o.offsetTop):(a=o.width,l=o.height,h&&(u=o.offsetLeft,d=o.offsetTop))}if(Cn(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;$<=vh&&(a-=$)}return{width:a,height:l,x:u,y:d}}function Sh(t,e){let r=Bi(t,!0,e==="fixed"),i=r.top+t.clientTop,s=r.left+t.clientLeft,n=ii(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 vl(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=xh(t,r,e);else if(e==="document")i=bh(Kt(t));else if(St(e))i=Sh(e,r);else{let s=Al(t);i={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return Tr(i)}function Eh(t,e){let r=e.get(t);if(r)return r;let i=xn(t,[],!1).filter(a=>St(a)&&Lr(a)!=="body"),s=null,n=Et(t).position==="fixed",o=n?sr(t):t;for(;St(o)&&!ri(o);){let a=Et(o),l=ti(o),u=s?s.position:n?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&a.position==="static")?i=i.filter(p=>p!==o):s=a,o=sr(o)}return e.set(t,i),i}function Ah(t){let{element:e,boundary:r,rootBoundary:i,strategy:s}=t,o=[...r==="clippingAncestors"?Ni(e)?[]:Eh(e,this._c):[].concat(r),i],a=vl(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=vl(e,o[h],s);l=ir(b.top,l),u=Di(b.right,u),d=Di(b.bottom,d),p=ir(b.left,p)}return{width:u-p,height:d-l,x:p,y:l}}function Ch(t){let{width:e,height:r}=Sl(t);return{width:e,height:r}}function wh(t,e,r){let i=Gt(e),s=Kt(e),n=r==="fixed",o=Bi(t,!0,n,e),a={scrollLeft:0,scrollTop:0},l=Dt(0);if((i||!n)&&((Lr(e)!=="body"||Mi(s))&&(a=Fi(e)),i)){let h=Bi(e,!0,n,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}!i&&s&&(l.x=Cn(s));let u=s&&!i&&!n?Cl(s,a):Dt(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 Js(t){return Et(t).position==="static"}function xl(t,e){if(!Gt(t)||Et(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Kt(t)===r&&(r=r.ownerDocument.body),r}function wl(t,e){let r=Ke(t);if(Ni(t))return r;if(!Gt(t)){let s=sr(t);for(;s&&!ri(s);){if(St(s)&&!Js(s))return s;s=sr(s)}return r}let i=xl(t,e);for(;i&&gl(i)&&Js(i);)i=xl(i,e);return i&&ri(i)&&Js(i)&&!ti(i)?r:i||yl(t)||r}var Oh=async function(t){let e=this.getOffsetParent||wl,r=this.getDimensions,i=await r(t.floating);return{reference:wh(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function _h(t){return Et(t).direction==="rtl"}var wn={convertOffsetParentRelativeRectToViewportRelativeRect:gh,getDocumentElement:Kt,getClippingRect:Ah,getOffsetParent:wl,getElementRects:Oh,getClientRects:yh,getDimensions:Ch,getScale:ii,isElement:St,isRTL:_h};var Ol=pl,_l=hl;var Rl=(t,e,r)=>{let i=new Map,s=r??{},n={...wn,...s.platform,_c:i};return dl(t,e,{...s,platform:n})};function Tl(t){return Rh(t)}function eo(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Rh(t){for(let e=t;e;e=eo(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=eo(t);e;e=eo(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||ti(r)||e.tagName==="BODY"))return e}return null}async function kl(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},Rl(t,e,{strategy:i.strategy,platform:{...wn,getOffsetParent:s=>wn.getOffsetParent(s,Tl)},middleware:[_l({crossAxis:!0}),Ol({allowedPlacements:[i.placement]})]})}var hi=c(f());var Ao=c(V());var Ll=c(V(),1);var to=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},Th=t=>({fromAttribute:e=>{if(e==null)return Ui(t);try{return JSON.parse(e)}catch{return Ui(t)}},toAttribute:e=>JSON.stringify(e)});function $l(t,e){return(0,Ll.property)({type:Object,converter:Th(t),hasChanged:zi,...e??{}})}function kh(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(!ni(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(!ni(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(!ni(t[o],e[o]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function ni(t,e){try{return kh(t,e)}catch{return!1}}function zi(t,e){return!ni(t,e)}function Ui(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function On(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 Dl=c(V(),1);var ro=t=>{let e=t??{};return(r,i)=>{var s;let n={hasChanged:zi,attribute:!1,...e};(0,Dl.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 _n=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 $r=c(V(),1);var Rn=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 kn=c(x(),1);var Tn=class extends kn.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,kn.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){to(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 Il(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 oi=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},Fl,Pl=Symbol("constructorPrototype"),Ml=Symbol("constructorName"),Bl=Symbol("exportpartsDebouncer"),Nl=Symbol("dynamicDependenciesLoaded"),si=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};si.eventName="exportparts-updated";var It=class extends Tn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Fl]=new Rn(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[Bl].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[Ml]=this.constructor.name,this[Pl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ml]&&Object.setPrototypeOf(this,this[Pl])}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[Nl]||(r[Nl]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(si.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(si.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 si)})}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=Il(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(", ")}};Fl=Bl;oi([(0,$r.property)()],It.prototype,"exportpartsPrefix",void 0);oi([$l([])],It.prototype,"exportpartsPrefixes",void 0);oi([(0,$r.property)({reflect:!0})],It.prototype,"exportparts",void 0);oi([(0,$r.property)()],It.prototype,"customStylesheet",void 0);oi([(0,$r.property)()],It.prototype,"elementToFocus",void 0);oi([(0,$r.state)()],It.prototype,"useAdoptedStyleSheets",void 0);function Ln(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Vi=Symbol("internalReduxEventsUnsubscribers"),or=Symbol("internalStoresUnsubscribers"),Dr=Symbol("internalStores"),Lh=On(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[Dr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Dr].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[Dr].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Dr].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[Dr].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Dr].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[or].has(o.store):this[or].size>0)&&(this[a]=o.selector(u.getState(),this))}})}subscribeToStore(o,a){var l,u;this[or].set(o,a.subscribe(()=>this.updateFromStores())),this[Vi].set(o,[]),Ln(a)&&(!((l=a.deprecatedKeys)===null||l===void 0)&&l.length&&this.reduxConstructor.reduxProperties.forEach((d,p)=>{this.getStore(d.store)===a&&a.deprecatedKeys.includes(p)&&console.warn("Element",this,"is subscribed to deprecated key",p,"in store",a.name)}),a.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((d,p)=>{if(typeof this[p]=="function"&&(!d.store||a.name===d.store)){let h=b=>this[p](b);a.addEventListener(d.eventName,h),this[Vi].get(o).push(()=>a.removeEventListener(d.eventName,h))}}))),this.onStoreAvailable(o)}unsubscribeFromStores(){this[or].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[or].has(o)&&this[or].get(o)(),this[or].delete(o),(a=this[Vi].get(o))===null||a===void 0||a.forEach(l=>l()),this[Vi].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=or,r=Dr,i=Vi,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),Ul=class extends Lh(It){};function _e(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 $h=typeof Symbol=="function"&&Symbol.observable||"@@observable",zl=$h,io=()=>Math.random().toString(36).substring(7).split("").join("."),Dh={INIT:`@@redux/INIT${io()}`,REPLACE:`@@redux/REPLACE${io()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${io()}`},$n=Dh;function Dn(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 no(t,e,r){if(typeof t!="function")throw new Error(_e(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(_e(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(_e(1));return r(no)(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(_e(3));return s}function p(v){if(typeof v!="function")throw new Error(_e(4));if(l)throw new Error(_e(5));let $=!0;u();let j=a++;return o.set(j,v),function(){if($){if(l)throw new Error(_e(6));$=!1,u(),o.delete(j),n=null}}}function h(v){if(!Dn(v))throw new Error(_e(7));if(typeof v.type>"u")throw new Error(_e(8));if(typeof v.type!="string")throw new Error(_e(17));if(l)throw new Error(_e(9));try{l=!0,s=i(s,v)}finally{l=!1}return(n=o).forEach(j=>{j()}),v}function b(v){if(typeof v!="function")throw new Error(_e(10));i=v,h({type:$n.REPLACE})}function S(){let v=p;return{subscribe($){if(typeof $!="object"||$===null)throw new Error(_e(11));function j(){let A=$;A.next&&A.next(d())}return j(),{unsubscribe:v(j)}},[zl](){return this}}}return h({type:$n.INIT}),{dispatch:h,subscribe:p,getState:d,replaceReducer:b,[zl]:S}}function Ih(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:$n.INIT})>"u")throw new Error(_e(12));if(typeof r(void 0,{type:$n.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(_e(13))})}function so(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{Ih(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(_e(14))}d[h]=R,u=u||R!==S}return u=u||i.length!==Object.keys(a).length,u?d:a}}function Hi(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function Vl(...t){return e=>(r,i)=>{let s=e(r,i),n=()=>{throw new Error(_e(15))},o={getState:s.getState,dispatch:(l,...u)=>n(l,...u)},a=t.map(l=>l(o));return n=Hi(...a)(s.dispatch),{...s,dispatch:n}}}function Hl(t){return Dn(t)&&"type"in t&&typeof t.type=="string"}var Zl=Symbol.for("immer-nothing"),jl=Symbol.for("immer-draftable"),Ie=Symbol.for("immer-state");function At(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var et=Object,li=et.getPrototypeOf,Nn="constructor",Hn="prototype",co="configurable",Fn="enumerable",Pn="writable",ji="value",Pt=t=>!!t&&!!t[Ie];function tt(t){return t?Jl(t)||qn(t)||!!t[jl]||!!t[Nn]?.[jl]||Wn(t)||Gi(t):!1}var Ph=et[Hn][Nn].toString(),ql=new WeakMap;function Jl(t){if(!t||!bo(t))return!1;let e=li(t);if(e===null||e===et[Hn])return!0;let r=et.hasOwnProperty.call(e,Nn)&&e[Nn];if(r===Object)return!0;if(!ai(r))return!1;let i=ql.get(r);return i===void 0&&(i=Function.toString.call(r),ql.set(r,i)),i===Ph}function jn(t,e,r=!0){Ki(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 Ki(t){let e=t[Ie];return e?e.type_:qn(t)?1:Wn(t)?2:Gi(t)?3:0}var oo=(t,e,r=Ki(t))=>r===2?t.has(e):et[Hn].hasOwnProperty.call(t,e),uo=(t,e,r=Ki(t))=>r===2?t.get(e):t[e],Bn=(t,e,r,i=Ki(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function Mh(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var qn=Array.isArray,Wn=t=>t instanceof Map,Gi=t=>t instanceof Set,bo=t=>typeof t=="object",ai=t=>typeof t=="function",ao=t=>typeof t=="boolean";function Nh(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var Qt=t=>t.copy_||t.base_;var vo=t=>t.modified_?t.copy_:t.base_;function po(t,e){if(Wn(t))return new Map(t);if(Gi(t))return new Set(t);if(qn(t))return Array[Hn].slice.call(t);let r=Jl(t);if(e===!0||e==="class_only"&&!r){let i=et.getOwnPropertyDescriptors(t);delete i[Ie];let s=Reflect.ownKeys(i);for(let n=0;n<s.length;n++){let o=s[n],a=i[o];a[Pn]===!1&&(a[Pn]=!0,a[co]=!0),(a.get||a.set)&&(i[o]={[co]:!0,[Pn]:!0,[Fn]:a[Fn],[ji]:t[o]})}return et.create(li(t),i)}else{let i=li(t);if(i!==null&&r)return{...t};let s=et.create(i);return et.assign(s,t)}}function Kn(t,e=!1){return Gn(t)||Pt(t)||!tt(t)||(Ki(t)>1&&et.defineProperties(t,{set:In,add:In,clear:In,delete:In}),et.freeze(t),e&&jn(t,(r,i)=>{Kn(i,!0)},!1)),t}function Fh(){At(2)}var In={[ji]:Fh};function Gn(t){return t===null||!bo(t)?!0:et.isFrozen(t)}var Un="MapSet",ho="Patches",Wl="ArrayMethods",ec={};function Ir(t){let e=ec[t];return e||At(0,t),e}var Kl=t=>!!ec[t];var qi,tc=()=>qi,Bh=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Kl(Un)?Ir(Un):void 0,arrayMethodsPlugin_:Kl(Wl)?Ir(Wl):void 0});function Gl(t,e){e&&(t.patchPlugin_=Ir(ho),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function fo(t){mo(t),t.drafts_.forEach(Uh),t.drafts_=null}function mo(t){t===qi&&(qi=t.parent_)}var Ql=t=>qi=Bh(qi,t);function Uh(t){let e=t[Ie];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Yl(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[Ie].modified_&&(fo(e),At(4)),tt(t)&&(t=Xl(e,t));let{patchPlugin_:s}=e;s&&s.generateReplacementPatches_(r[Ie].base_,t,e)}else t=Xl(e,r);return zh(e,t,!0),fo(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Zl?t:void 0}function Xl(t,e){if(Gn(e))return e;let r=e[Ie];if(!r)return zn(e,t.handledSet_,t);if(!Qn(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);nc(r,t)}return r.copy_}function zh(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Kn(e,r)}function rc(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Qn=(t,e)=>t.scope_===e,Vh=[];function ic(t,e,r,i){let s=Qt(t),n=t.type_;if(i!==void 0&&uo(s,i,n)===e){Bn(s,i,r,n);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;jn(s,(l,u)=>{if(Pt(u)){let d=a.get(u)||[];d.push(l),a.set(u,d)}})}let o=t.draftLocations_.get(e)??Vh;for(let a of o)Bn(s,a,r,n)}function Hh(t,e,r){t.callbacks_.push(function(s){let n=e;if(!n||!Qn(n,s))return;s.mapSetPlugin_?.fixSetContents(n);let o=vo(n);ic(t,n.draft_??n,o,r),nc(n,s)})}function nc(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)}rc(t)}}function jh(t,e,r){let{scope_:i}=t;if(Pt(r)){let s=r[Ie];Qn(s,i)&&s.callbacks_.push(function(){Mn(t);let o=vo(s);ic(t,r,o,e)})}else tt(r)&&t.callbacks_.push(function(){let n=Qt(t);t.type_===3?n.has(r)&&zn(r,i.handledSet_,i):uo(n,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&zn(uo(t.copy_,e,t.type_),i.handledSet_,i)})}function zn(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Pt(t)||e.has(t)||!tt(t)||Gn(t)||(e.add(t),jn(t,(i,s)=>{if(Pt(s)){let n=s[Ie];if(Qn(n,r)){let o=vo(n);Bn(t,i,o,t.type_),rc(n)}}else tt(s)&&zn(s,e,r)})),t}function qh(t,e){let r=qn(t),i={type_:r?1:0,scope_:e?e.scope_:tc(),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=Vn;r&&(s=[i],n=Wi);let{revoke:o,proxy:a}=Proxy.revocable(s,n);return i.draft_=a,i.revoke_=o,[a,i]}var Vn={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 s=Qt(t);if(!oo(s,e,t.type_))return Kh(t,s,e);let n=s[e];if(t.finalized_||!tt(n)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&Nh(e))return n;if(n===lo(t.base_,e)||Wh(t,e,n)){Mn(t);let o=t.type_===1?+e:e,a=yo(t.scope_,n,t,o);return t.copy_[o]=a}return n},has(t,e){return e in Qt(t)},ownKeys(t){return Reflect.ownKeys(Qt(t))},set(t,e,r){let i=sc(Qt(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let s=lo(Qt(t),e),n=s?.[Ie];if(n&&n.base_===r)return t.copy_[e]=r,t.assigned_.delete(e),!0;if(Mh(r,s)&&(r!==void 0||oo(t.base_,e,t.type_)))return!0;Mn(t),go(t)}return t.copy_[e]===r&&(r!==void 0||oo(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),jh(t,e,r)),!0},deleteProperty(t,e){return Mn(t),lo(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),go(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&&{[Pn]:!0,[co]:t.type_!==1||e!=="length",[Fn]:i[Fn],[ji]:r[e]}},defineProperty(){At(11)},getPrototypeOf(t){return li(t.base_)},setPrototypeOf(){At(12)}},Wi={};for(let t in Vn){let e=Vn[t];Wi[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}Wi.deleteProperty=function(t,e){return Wi.set.call(this,t,e,void 0)};Wi.set=function(t,e,r){return Vn.set.call(this,t[0],e,r,t[0])};function lo(t,e){let r=t[Ie];return(r?Qt(r):t)[e]}function Wh(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||!tt(r)||r[Ie]?!1:t.baseRefs_.has(r)}function Kh(t,e,r){let i=sc(e,r);return i?ji in i?i[ji]:i.get?.call(t.draft_):void 0}function sc(t,e){if(!(e in t))return;let r=li(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=li(r)}}function go(t){t.modified_||(t.modified_=!0,t.parent_&&go(t.parent_))}function Mn(t){t.copy_||(t.assigned_=new Map,t.copy_=po(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Gh=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(ai(e)&&!ai(r)){let n=r;r=e;let o=this;return function(l=n,...u){return o.produce(l,d=>r.call(this,d,...u))}}ai(r)||At(6),i!==void 0&&!ai(i)&&At(7);let s;if(tt(e)){let n=Ql(this),o=yo(n,e,void 0),a=!0;try{s=r(o),a=!1}finally{a?fo(n):mo(n)}return Gl(n,i),Yl(s,n)}else if(!e||!bo(e)){if(s=r(e),s===void 0&&(s=e),s===Zl&&(s=void 0),this.autoFreeze_&&Kn(s,!0),i){let n=[],o=[];Ir(ho).generateReplacementPatches_(e,s,{patches_:n,inversePatches_:o}),i(n,o)}return s}else At(1,e)},this.produceWithPatches=(e,r)=>{if(ai(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]},ao(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),ao(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),ao(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){tt(t)||At(8),Pt(t)&&(t=oc(t));let e=Ql(this),r=yo(e,t,void 0);return r[Ie].isManual_=!0,mo(e),r}finishDraft(t,e){let r=t&&t[Ie];(!r||!r.isManual_)&&At(9);let{scope_:i}=r;return Gl(i,e),Yl(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=Ir(ho).applyPatches_;return Pt(t)?i(t,e):this.produce(t,s=>i(s,e))}};function yo(t,e,r,i){let[s,n]=Wn(e)?Ir(Un).proxyMap_(e,r):Gi(e)?Ir(Un).proxySet_(e,r):qh(e,r);return(r?.scope_??tc()).drafts_.push(s),n.callbacks_=r?.callbacks_??[],n.key_=i,r&&i!==void 0?Hh(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 oc(t){return Pt(t)||At(10,t),ac(t)}function ac(t){if(!tt(t)||Gn(t))return t;let e=t[Ie],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=po(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=po(t,!0);let s=r;return Gi(r)&&(r=new Set),jn(s,(n,o)=>{Bn(r,n,ac(o))},i),e&&(e.finalized_=!1),r}var Qh=globalThis.Iterator,_g=typeof Qh?.from=="function";var Yh=new Gh,xo=Yh.produce;function lc(t){return({dispatch:r,getState:i})=>s=>n=>typeof n=="function"?n(r,i,t):s(n)}var cc=lc(),uc=lc;var Xh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Hi:Hi.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Zh=t=>t&&typeof t.match=="function";function ar(t,e){function r(...i){if(e){let s=e(...i);if(!s)throw new Error(Mt(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=>Hl(i)&&i.type===t,r}var mc=class Qi extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Qi.prototype)}static get[Symbol.species](){return Qi}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Qi(...e[0].concat(this)):new Qi(...e.concat(this))}};function dc(t){return tt(t)?xo(t,()=>{}):t}function Yn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Jh(t){return typeof t=="boolean"}var ef=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:s=!0,actionCreatorCheck:n=!0}=e??{},o=new mc;return r&&(Jh(r)?o.push(cc):o.push(uc(r.extraArgument))),o},tf="RTK_autoBatch";var pc=t=>e=>{setTimeout(e,t)},rf=(t,e)=>r=>{let i=!1,s,n,o=()=>{i||(i=!0,cancelAnimationFrame(s),clearTimeout(n),r())};s=t(o),n=setTimeout(o,e)},nf=(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?rf(window.requestAnimationFrame,100):pc(10):t.type==="callback"?t.queueNotification:pc(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?.[tf],n=!s,n&&(o||(o=!0,l(u))),i.dispatch(d)}finally{s=!0}}})},sf=t=>function(r){let{autoBatch:i=!0}=r??{},s=new mc(t);return i&&s.push(nf(typeof i=="object"?i:void 0)),s};function gc(t){let e=ef(),{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(Dn(r))l=so(r);else throw new Error(Mt(1));let u;typeof i=="function"?u=i(e):u=e();let d=Hi;s&&(d=Xh({trace:!1,...typeof s=="object"&&s}));let p=Vl(...u),h=sf(p),b=typeof a=="function"?a(h):h(),S=d(...b);return no(l,o,S)}function yc(t){let e={},r=[],i,s={addCase(n,o){let a=typeof n=="string"?n:n.type;if(!a)throw new Error(Mt(28));if(a in e)throw new Error(Mt(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 of(t){return typeof t=="function"}function af(t,e){let[r,i,s]=yc(e),n;if(of(t))n=()=>dc(t());else{let a=dc(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(Pt(d)){let h=p(d,l);return h===void 0?d:h}else{if(tt(d))return xo(d,h=>p(h,l));{let h=p(d,l);if(h===void 0){if(d===null)return d;throw new Error(Mt(9))}return h}}return d},a)}return o.getInitialState=n,o}var lf=(t,e)=>Zh(t)?t.match(e):t(e);function cf(...t){return e=>t.some(r=>lf(r,e))}var uf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",df=(t=21)=>{let e="",r=t;for(;r--;)e+=uf[Math.random()*64|0];return e},pf=["name","message","stack","code"],So=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},hc=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},hf=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of pf)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},fc="External signal was aborted",ff=(()=>{function t(e,r,i){let s=ar(e+"/fulfilled",(l,u,d,p)=>({payload:l,meta:{...p||{},arg:d,requestId:u,requestStatus:"fulfilled"}})),n=ar(e+"/pending",(l,u,d)=>({payload:void 0,meta:{...d||{},arg:u,requestId:l,requestStatus:"pending"}})),o=ar(e+"/rejected",(l,u,d,p,h)=>({payload:p,error:(i&&i.serializeError||hf)(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):df(),S=new AbortController,R,v;function $(E){v=E,S.abort()}u&&(u.aborted?$(fc):u.addEventListener("abort",()=>$(fc),{once:!0}));let j=(async function(){let E;try{let A=i?.condition?.(l,{getState:p,extra:h});if(gf(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 G=new Promise((z,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([G,Promise.resolve(r(l,{dispatch:d,getState:p,extra:h,requestId:b,signal:S.signal,abort:$,rejectWithValue:((z,ve)=>new So(z,ve)),fulfillWithValue:((z,ve)=>new hc(z,ve))})).then(z=>{if(z instanceof So)throw z;return z instanceof hc?s(z.payload,b,l,z.meta):s(z,b,l)})])}catch(A){E=A instanceof So?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(j,{abort:$,requestId:b,arg:l,unwrap(){return j.then(mf)}})}}return Object.assign(a,{pending:n,rejected:o,fulfilled:s,settled:cf(o,s),typePrefix:e})}return t.withTypes=()=>t,t})();function mf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function gf(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var bc=Symbol.for("rtk-slice-createasyncthunk"),Pg={[bc]:ff};function yf(t,e){return`${t}/${e}`}function bf({creators:t}={}){let e=t?.asyncThunk?.[bc];return function(i){let{name:s,reducerPath:n=s}=i;if(!s)throw new Error(Mt(11));typeof process<"u";let o=(typeof i.reducers=="function"?i.reducers(xf()):i.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(E,A){let G=typeof E=="string"?E:E.type;if(!G)throw new Error(Mt(12));if(G in l.sliceCaseReducersByType)throw new Error(Mt(13));return l.sliceCaseReducersByType[G]=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],G={reducerName:E,type:yf(s,E),createNotation:typeof i.reducers=="function"};Ef(A)?Cf(G,A,u,e):Sf(G,A,u)});function d(){let[E={},A=[],G=void 0]=typeof i.extraReducers=="function"?yc(i.extraReducers):[i.extraReducers],z={...E,...l.sliceCaseReducersByType};return af(i.initialState,ve=>{for(let De in z)ve.addCase(De,z[De]);for(let De of l.sliceMatchers)ve.addMatcher(De.matcher,De.reducer);for(let De of A)ve.addMatcher(De.matcher,De.reducer);G&&ve.addDefaultCase(G)})}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 G(ve){let De=ve[E];return typeof De>"u"&&A&&(De=Yn(b,G,v)),De}function z(ve=p){return Yn(Yn(h,A,()=>new WeakMap),ve,()=>{let De={};for(let[fn,ct]of Object.entries(i.selectors??{}))De[fn]=vf(ct,ve,()=>Yn(b,ve,v),A);return De})}return{reducerPath:E,getSelectors:z,get selectors(){return z(G)},selectSlice:G}}let j={name:s,reducer:R,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:v,...$(n),injectInto(E,{reducerPath:A,...G}={}){let z=A??n;return E.inject({reducerPath:z,reducer:R},G),{...j,...$(z,!0)}}};return j}}function vf(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 vc=bf();function xf(){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 Sf({type:t,reducerName:e,createNotation:r},i,s){let n,o;if("reducer"in i){if(r&&!Af(i))throw new Error(Mt(17));n=i.reducer,o=i.prepare}else n=i;s.addCase(t,n).exposeCaseReducer(e,n).exposeAction(e,o?ar(t,o):ar(t))}function Ef(t){return t._reducerDefinitionType==="asyncThunk"}function Af(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Cf({type:t,reducerName:e},r,i,s){if(!s)throw new Error(Mt(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||Xn,pending:a||Xn,rejected:l||Xn,settled:u||Xn})}function Xn(){}var xc="listener",Sc="completed",Ec="cancelled",Mg=`task-${Ec}`,Ng=`task-${Sc}`,Fg=`${xc}-${Ec}`,Bg=`${xc}-${Sc}`;var{assign:Ac}=Object;var Eo="listenerMiddleware";var wf=Ac(ar(`${Eo}/add`),{withTypes:()=>wf}),Ug=ar(`${Eo}/removeAll`),Of=Ac(ar(`${Eo}/remove`),{withTypes:()=>Of});function Mt(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 _f=On(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)}}}),Zn=class extends _f(Object){};window.ftReduxStores||(window.ftReduxStores={});var Cc=class t extends Zn{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(Ln(n))return n;if(s==null)return;let o=vc({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),a=gc({reducer:(l,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let d=Ui(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,s.deprecatedKeys)}constructor(e,r,i,s){super(),this.reduxSlice=e,this.reduxStore=r,this.deprecatedKeys=s,this.isFtReduxStore=!0,this.commands=new _n,this.injectInto=(o,a)=>this.reduxSlice.injectInto(o,a),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let n=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,a,l)=>{let u=a,d=o[u];return d?(...p)=>{let h=d(...p.map(n));return this.reduxStore.dispatch(h),h}:p=>{let h=u,b=this.getState()[h];ni(b,p)||this.setState({[h]:n(p)})}}}),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 Jn=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 es=c(f()),Rf="ft-app-info",lr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};lr.eventName="authentication-change";var Yi=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Yi.eventName="ui-locale-changed";var Tf={session:(t,e)=>{(0,es.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>O.dispatchEvent(new lr(e.payload)),0))}},O=es.FtReduxStore.get({name:Rf,reducers:Tf,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 wc=c(f()),ts=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},gy=(0,wc.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=>Jn.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return ts([(0,Ao.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),ts([(0,Ao.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),ts([ro({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),ts([ro({store:O.name})],e.prototype,"uiLocale",void 0),e});var Oc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Oc||(Oc={}));var _c;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(_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.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"})(Tc||(Tc={}));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 Lc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Lc||(Lc={}));var $c;(function(t){t.PUBLISHED="PUBLISHED",t.AI="AI"})($c||($c={}));var Dc;(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"})(Dc||(Dc={}));var Ic;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Ic||(Ic={}));var Pc;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Pc||(Pc={}));var Mc;(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",t.DOC_DIFF="DOC_DIFF"})(Mc||(Mc={}));var Nc;(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"})(Nc||(Nc={}));var Fc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Fc||(Fc={}));var Bc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Bc||(Bc={}));var Uc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Uc||(Uc={}));var zc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(zc||(zc={}));var Vc;(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"})(Vc||(Vc={}));var Co;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Co||(Co={}));var Hc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Hc||(Hc={}));var jc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(jc||(jc={}));var wo;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(wo||(wo={}));var qc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(qc||(qc={}));var Wc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Wc||(Wc={}));var Kc;(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"})(Kc||(Kc={}));var Gc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Gc||(Gc={}));var Qc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Qc||(Qc={}));var Oo;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Oo||(Oo={}));var Yc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Yc||(Yc={}));var le;(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"})(le||(le={}));var dt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(dt||(dt={}));var Xc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Xc||(Xc={}));var Zc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Zc||(Zc={}));var Jc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(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.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"})(ru||(ru={}));var iu;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(iu||(iu={}));var nu;(function(t){t.CHAT="CHAT",t.COMPLETION="COMPLETION",t.RAG="RAG",t.AGENT="AGENT"})(nu||(nu={}));var su;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(su||(su={}));var ou;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(ou||(ou={}));var au;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(au||(au={}));var lu;(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"})(lu||(lu={}));var cu;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(cu||(cu={}));var kf={[le.PERSONAL_BOOK_SHARE_USER]:[le.PERSONAL_BOOK_USER],[le.HTML_EXPORT_USER]:[le.PERSONAL_BOOK_USER],[le.PDF_EXPORT_USER]:[le.PERSONAL_BOOK_USER],[le.KHUB_ADMIN]:[le.CONTENT_PUBLISHER],[le.ADMIN]:[le.KHUB_ADMIN,le.USERS_ADMIN,le.PORTAL_ADMIN,le.BEHAVIOR_DATA_USER],[le.GENERATIVE_AI_EXPORT_USER]:[le.GENERATIVE_AI_USER]};function uu(t,e){return t===e||(kf[t]??[]).some(r=>uu(r,e))}function rs(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=>uu(i,e))}function du(t,...e){return t==null?!1:e.some(r=>rs(t,r))}var as=c(f());var _o=c(f());var Pr=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 ci=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 Ge=class extends ci{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 _o.CacheRegistry,this.cache=e?s.commonCache:new _o.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 is=class extends Ge{async listMySearches(){let{session:e}=O.getState();return rs(e,le.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var ns=class extends Ge{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 ss=class extends Ge{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 os=class extends Ge{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 Lf="ft-user-assets",$f={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;To(t,r,[...Ro(t,r),s]),pu(t,r,1,i),hu(t,s)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;To(t,r,Ro(t,r).map(s=>s.id===i.id?i:s)),hu(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:s}=e.payload;To(t,r,Ro(t,r).filter(n=>n.id!==s)),pu(t,r,-1,i)}},fu={[dt.SEARCHES]:"savedSearches",[dt.BOOKMARKS]:"bookmarks",[dt.BOOKS]:void 0,[dt.COLLECTIONS]:void 0},Ro=(t,e)=>{var r;let i=fu[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},To=(t,e,r)=>{let i=fu[e];i&&(t[i]=r)},pu=(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)}},hu=(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)},Ne=as.FtReduxStore.get({name:Lf,reducers:$f,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(dt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),ko=class{constructor(e=new ss,r=new os){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=O.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ns,this.savedSearchesService=new is,O.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=O.getState();(0,as.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(),Ne.actions.clearAssetCount(),Ne.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ne.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ne.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Ne.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Ne.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Ne.getState().assetCounts.allAsset[e]!==r.count&&Ne.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Ne.getState().assetCounts.bookmarkByMap[e]!==r.count&&Ne.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Ne.getState().assetCounts.bookmarkByMap).length!==0;e===dt.BOOKMARKS&&r&&Ne.actions.clearBookmarkCountByMap(),Ne.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;Ne.actions.bookmarks(r)}}},Df=new ko;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Df);var Lo=class{addCommand(e,r=!1){O.commands.add(e,r)}consumeCommand(e){return O.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Lo;var pt=c(f());var mu,ui=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},If=Symbol("clearAfterUnitTest"),ls=class extends(0,pt.withEventBus)(Ge){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[mu]=()=>{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 ui({loadedContexts:e})),this.dispatchEvent(new ui({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new ui({loadedContexts:[e]})),this.dispatchEvent(new ui({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,pt.delay)(0).then(()=>i()).catch(()=>null)))}};mu=If;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends ls{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends ls{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var di=window.FluidTopicsI18nService,cs=window.FluidTopicsCustomI18nService;var gu=c(f()),$o=class{highlightHtml(e,r,i){(0,gu.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new $o;var yu=c(f());var Do=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 yu.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 Do;var bu=c(f());var Yt=class{static get(e,r,{baseUrl:i,localesConfiguration:s,availableContentLocales:n}=O.getState()){var o;if(!r||n.length>0&&!n.some(a=>a.lang===r)){let a=s?.defaultLocales.defaultContentLocale;r=a?`${a.lang}-${a.region}`:(o=n[0])===null||o===void 0?void 0:o.lang}return new bu.SearchPlaceConverter(i,e??20,s?.allLanguagesAllowed,r,n)}};var Io=class{urlToSearchRequest(e){return Yt.get().parse(e)}searchRequestToUrl(e){return Yt.get().serialize(e)}};window.FluidTopicsUrlService=new Io;var Xt=c(f());var Mr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Mr.eventName="before-location-change";var Nr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Nr.eventName="change";var Po=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))}},vu=new Po;var us=class t extends Xt.WithEventBus{static build(){return new t(window.history,vu,()=>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,Xt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Nr(this.currentItem())),0)}installProxies(){let e=r=>(i,s,[n,o,a])=>{let l=new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin!=="null"?window.location.origin:void 0),u=new Mr(l);this.dispatchEvent(u);let d=r(),p={...d===this.currentIndex?this.currentState:void 0,...n,index:d,href:u.detail.nextLocation.href};i.apply(s,[p,o,p.href]),this.setCurrentState(p,!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(Mr.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Mr.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Nr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Nr.eventName,e)}currentItem(){return(0,Xt.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,Xt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Xt.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,Xt.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=us.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 xu=c(x());var Su=xu.css`
|
|
271
|
+
`;var Au=c(x()),Fe=c(V()),Br=c(f());var Nt=c(f());function Eu(t,e){let{authenticationRequired:r,session:i}=O.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var ds=class extends ci{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Mo=class t extends Nt.FtStateManager{static build(e){return new t(O,e)}constructor(e,r){super(),this.store=e,this.cache=new Nt.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new ds,this.knownContexts=new Nt.AbstractRegistry,this.knownCustomComponents=new Nt.AbstractRegistry,this.cleanSessionDebouncer=new Nt.Debouncer,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new Nt.Debouncer(500),this.apiProvider=r??(()=>Pr.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(lr.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(lr.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",()=>Eu(()=>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 Yi(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 du(O.getState().session,...e)}},No=Mo.build();var Fr=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 Xi=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 Fr(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 Se=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},ie=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=No,this.contextRoot=new Xi}render(){return Au.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=>di.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())}};ie.elementDefinitions={};ie.styles=
|
|
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=>di.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())}};ie.elementDefinitions={};ie.styles=Su;Se([(0,Fe.property)()],ie.prototype,"baseUrl",void 0);Se([(0,Fe.property)()],ie.prototype,"tenantId",void 0);Se([(0,Fe.property)()],ie.prototype,"apiIntegrationIdentifier",void 0);Se([(0,Fe.property)()],ie.prototype,"apiIntegrationAppVersion",void 0);Se([(0,Fe.property)()],ie.prototype,"uiLocale",void 0);Se([(0,Br.jsonProperty)(null)],ie.prototype,"availableUiLocales",void 0);Se([(0,Br.jsonProperty)(null)],ie.prototype,"metadataConfiguration",void 0);Se([(0,Fe.property)({type:Boolean})],ie.prototype,"editorMode",void 0);Se([(0,Fe.property)({type:Boolean})],ie.prototype,"noCustom",void 0);Se([(0,Fe.property)({type:Boolean})],ie.prototype,"openExternalDocumentInNewTab",void 0);Se([(0,Fe.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ie.prototype,"noCustomComponent",void 0);Se([(0,Fe.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ie.prototype,"noCustomCode",void 0);Se([(0,Fe.property)({type:Boolean})],ie.prototype,"withManualResources",void 0);Se([(0,Fe.property)({type:Boolean})],ie.prototype,"navigatorOnline",void 0);Se([(0,Fe.property)({type:Boolean})],ie.prototype,"forcedOffline",void 0);Se([(0,Fe.property)({type:Boolean})],ie.prototype,"authenticationRequired",void 0);Se([(0,Br.jsonProperty)([])],ie.prototype,"messageContexts",void 0);Se([(0,Br.jsonProperty)(void 0)],ie.prototype,"session",void 0);var wu=c(f());var Cu={"ft-app-context":ie};(0,wu.customElements)(Cu);var Ou=c(V());var Fo=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-]+$/)}},pi=new Fo;var Nf=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},Ji=Symbol("i18nAttributes"),_u=Symbol("i18nListAttributes"),Ru=Symbol("i18nProperties"),ps=Symbol("i18nContexts"),Zi=Symbol("i18nUnsubs"),fi=(0,hi.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?cs:di}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(pi.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[Ji])===null||o===void 0||o.forEach((d,p)=>l[p]=u(d,p,l[p])),(a=this[_u])===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[Ru])===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[ps].set(l,{isCustomContext:a}),this[Zi].has(l)||this[Zi].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,o)}hasI18nContext(n){return this[ps].has(n.toLowerCase())}connectedCallback(){super.connectedCallback(),this[ps].forEach((n,o)=>this.addI18nContext(o,void 0,n.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Zi].forEach(n=>n()),this[Zi].clear()}}return e=ps,r=Zi,Nf([(0,Ou.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),hs=class extends fi(hi.FtLitElement){},fs=class extends fi(hi.FtLitElementRedux){};var Tu=c(f());var Bo=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?pi.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Ff=new Bo;var ms=(t,e)=>(r,i)=>{var s;r.constructor.createProperty(i,{type:Object,hasChanged:Tu.hasChanged,converter:pi,...e}),r[Ji]=(s=r[Ji])!==null&&s!==void 0?s:new Map,r[Ji].set(i,t??{})};var mi=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?cs:di}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 ku=c(x());var Lu=ku.css`
|
|
274
274
|
`;var gs=c(x()),yi=c(V()),ys=c(f());var 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},ht=class extends fs{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:gs.nothing:gs.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=
|
|
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=Lu;gi([(0,ys.redux)()],ht.prototype,"editorMode",void 0);gi([(0,yi.property)()],ht.prototype,"context",void 0);gi([(0,yi.property)()],ht.prototype,"key",void 0);gi([(0,ys.jsonProperty)([])],ht.prototype,"args",void 0);gi([(0,yi.property)()],ht.prototype,"defaultMessage",void 0);gi([(0,yi.state)()],ht.prototype,"editorMessage",void 0);var Du=c(f());var $u={"ft-i18n":ht};(0,Du.customElements)($u);var Ct=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},ce=class extends hs{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 Iu.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 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&&kl(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)}};ce.elementDefinitions={"ft-typography":q};ce.styles=rl;Ct([ms()],ce.prototype,"text",void 0);Ct([(0,mt.property)({type:Boolean})],ce.prototype,"manual",void 0);Ct([(0,mt.property)({type:Boolean})],ce.prototype,"inline",void 0);Ct([(0,ft.numberProperty)()],ce.prototype,"delay",void 0);Ct([(0,mt.property)()],ce.prototype,"position",void 0);Ct([(0,ft.jsonProperty)([])],ce.prototype,"ignoreMatchingElements",void 0);Ct([(0,mt.queryAssignedNodes)()],ce.prototype,"slotNodes",void 0);Ct([(0,mt.query)(".ft-tooltip--container")],ce.prototype,"container",void 0);Ct([(0,mt.query)(".ft-tooltip")],ce.prototype,"tooltip",void 0);Ct([(0,mt.query)(".ft-tooltip--content")],ce.prototype,"tooltipContent",void 0);Ct([(0,mt.state)()],ce.prototype,"visible",void 0);var
|
|
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&&kl(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)}};ce.elementDefinitions={"ft-typography":q};ce.styles=rl;Ct([ms()],ce.prototype,"text",void 0);Ct([(0,mt.property)({type:Boolean})],ce.prototype,"manual",void 0);Ct([(0,mt.property)({type:Boolean})],ce.prototype,"inline",void 0);Ct([(0,ft.numberProperty)()],ce.prototype,"delay",void 0);Ct([(0,mt.property)()],ce.prototype,"position",void 0);Ct([(0,ft.jsonProperty)([])],ce.prototype,"ignoreMatchingElements",void 0);Ct([(0,mt.queryAssignedNodes)()],ce.prototype,"slotNodes",void 0);Ct([(0,mt.query)(".ft-tooltip--container")],ce.prototype,"container",void 0);Ct([(0,mt.query)(".ft-tooltip")],ce.prototype,"tooltip",void 0);Ct([(0,mt.query)(".ft-tooltip--content")],ce.prototype,"tooltipContent",void 0);Ct([(0,mt.state)()],ce.prototype,"visible",void 0);var Mu=c(f());var Pu={"ft-tooltip":ce};(0,Mu.customElements)(Pu);var Nu=c(x()),wt=c(f()),Be={size:wt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:wt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",wt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:wt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",wt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:wt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",wt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:wt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Fu=[Nu.css`
|
|
294
294
|
:host, i.ft-icon {
|
|
295
295
|
display: inline-flex;
|
|
296
296
|
align-items: center;
|
|
@@ -338,12 +338,12 @@
|
|
|
338
338
|
.ft-icon--material {
|
|
339
339
|
font-family: ${Be.materialFontFamily}, "Material Icons", sans-serif;
|
|
340
340
|
}
|
|
341
|
-
`,wt.noTextSelect];var Ue;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ue||(Ue={}));var en=c(x()),cr=c(V()),Uu=c(f()),zu=c(Bu());var ge;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK="",t.BOOKMARK_SLASH="",t.CIRCLE_PAUSE="",t.CIRCLE_PLAY="",t.CIRCLE_STOP_PLAIN="",t.CIRCLE_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID="",t.FILE_CODE="",t.BOX_CODE="",t.TOPICS_SOLID="",t.PHOTO_FILM="",t.HYPHEN_SOLID="",t.CROSSHAIRS="",t.PERSON_CHALKBOARD="",t.CIRCLE_ARROW_DOWN_SLASH="",t.BOOK_OPEN_COVER="",t.LIGHTBULB="",t.MESSAGE_BOT_AGENTIC_SOLID="",t.CHART_LINE_USER="",t.SERVER_CIRCLE_ARROW_DOWN="",t.EYE="",t.SHARE="󨃱"})(ge||(ge={}));var g;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(g||(g={}));var Uo=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])]),Ff=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 bs(t,e){var r,i,s,n;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[o,a]=(((r=Ff.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(n=(s=(i=Uo.get(a))!==null&&i!==void 0?i:Uo.get(e))!==null&&s!==void 0?s:Uo.get(o))!==null&&n!==void 0?n: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 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},ee=class extends Uu.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=en.nothing}render(){let e=this.variant&&Object.values(Ue).includes(this.variant)?this.variant:Ue.fluid_topics,r=e!==Ue.material||!!this.value;return en.html`
|
|
341
|
+
`,wt.noTextSelect];var Ue;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ue||(Ue={}));var en=c(x()),cr=c(V()),zu=c(f()),Vu=c(Uu());var ge;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK="",t.BOOKMARK_SLASH="",t.CIRCLE_PAUSE="",t.CIRCLE_PLAY="",t.CIRCLE_STOP_PLAIN="",t.CIRCLE_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID="",t.FILE_CODE="",t.BOX_CODE="",t.TOPICS_SOLID="",t.PHOTO_FILM="",t.HYPHEN_SOLID="",t.CROSSHAIRS="",t.PERSON_CHALKBOARD="",t.CIRCLE_ARROW_DOWN_SLASH="",t.BOOK_OPEN_COVER="",t.LIGHTBULB="",t.MESSAGE_BOT_AGENTIC_SOLID="",t.CHART_LINE_USER="",t.SERVER_CIRCLE_ARROW_DOWN="",t.EYE="",t.SHARE="󨃱"})(ge||(ge={}));var g;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(g||(g={}));var Uo=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])]),Bf=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 bs(t,e){var r,i,s,n;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[o,a]=(((r=Bf.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(n=(s=(i=Uo.get(a))!==null&&i!==void 0?i:Uo.get(e))!==null&&s!==void 0?s:Uo.get(o))!==null&&n!==void 0?n:g.UNKNOWN}var Vx={[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 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},ee=class extends zu.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=en.nothing}render(){let e=this.variant&&Object.values(Ue).includes(this.variant)?this.variant:Ue.fluid_topics,r=e!==Ue.material||!!this.value;return en.html`
|
|
342
342
|
<i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
|
|
343
|
-
${(0,
|
|
343
|
+
${(0,Vu.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 Ue.file_format:this.resolvedIcon=(e=g[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Ue.material:this.resolvedIcon=this.value||en.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=
|
|
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 Ue.file_format:this.resolvedIcon=(e=g[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Ue.material:this.resolvedIcon=this.value||en.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=Fu;tn([(0,cr.property)()],ee.prototype,"variant",void 0);tn([(0,cr.property)()],ee.prototype,"value",void 0);tn([(0,cr.property)({reflect:!0,attribute:"aria-hidden"})],ee.prototype,"ariaHidden",void 0);tn([(0,cr.state)()],ee.prototype,"resolvedIcon",void 0);tn([(0,cr.query)("slot")],ee.prototype,"slottedContent",void 0);var ju=c(f());var Hu={"ft-icon":ee};(0,ju.customElements)(Hu);var qu=c(x()),rn=c(f()),Ur={color:rn.FtCssVariableFactory.extend("--ft-loader-color","",rn.designSystemVariables.colorPrimary),size:rn.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Wu=qu.css`
|
|
347
347
|
:host {
|
|
348
348
|
line-height: 0;
|
|
349
349
|
}
|
|
@@ -412,14 +412,14 @@
|
|
|
412
412
|
transform: translate(calc(0.35 * ${Ur.size}), 0);
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
`;var
|
|
415
|
+
`;var Ku=c(x()),Gu=c(f());var zr=class extends Gu.FtLitElement{render(){return Ku.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=
|
|
422
|
+
`}};zr.styles=Wu;var Yu=c(f());var Qu={"ft-loader":zr};(0,Yu.customElements)(Qu);var ur=c(x()),xs=c(Je()),W=c(V());var Ot=t=>t??fe;var vs=c(x()),k=c(f());var Xu=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:Xu,fontSize:k.FtCssVariableFactory.extend("--ft-button-font-size","",xt.fontSize),iconSize:k.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:k.FtCssVariableFactory.extend("--ft-button-ripple-color","",Xu),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")},Zu=k.FtCssVariableFactory.extend("--ft-button-primary-color","",k.FtCssVariableFactory.extend("--ft-button-color","",k.designSystemVariables.colorOnPrimary)),zo={backgroundColor:k.FtCssVariableFactory.extend("--ft-button-primary-background-color","",k.FtCssVariableFactory.extend("--ft-button-background-color","",k.designSystemVariables.colorPrimary)),color:Zu,rippleColor:k.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Zu)},_t={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")},Ju=vs.css`
|
|
423
423
|
:host {
|
|
424
424
|
display: inline-block;
|
|
425
425
|
max-width: 100%;
|
|
@@ -603,7 +603,7 @@
|
|
|
603
603
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
604
604
|
`:ur.html`
|
|
605
605
|
<slot part="icon" name="icon"></slot>
|
|
606
|
-
`}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":ce,"ft-icon":ee,"ft-loader":zr,"ft-typography":q};C.styles=[Ft.safariEllipsisFix,
|
|
606
|
+
`}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":ce,"ft-icon":ee,"ft-loader":zr,"ft-typography":q};C.styles=[Ft.safariEllipsisFix,Ju,Ft.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)}});Z([(0,W.property)({type:Boolean})],C.prototype,"primary",void 0);Z([(0,W.property)({type:Boolean})],C.prototype,"outlined",void 0);Z([(0,W.property)({type:Boolean})],C.prototype,"dense",void 0);Z([(0,W.property)({type:Boolean})],C.prototype,"round",void 0);Z([(0,W.property)({type:Boolean})],C.prototype,"disabled",void 0);Z([(0,W.property)()],C.prototype,"icon",void 0);Z([(0,W.property)()],C.prototype,"iconVariant",void 0);Z([(0,W.property)({type:Boolean})],C.prototype,"trailingIcon",void 0);Z([(0,W.property)()],C.prototype,"label",void 0);Z([(0,W.property)()],C.prototype,"type",void 0);Z([(0,W.property)()],C.prototype,"href",void 0);Z([(0,W.property)()],C.prototype,"target",void 0);Z([(0,W.property)({type:Boolean})],C.prototype,"loading",void 0);Z([(0,W.property)({attribute:"aria-label"})],C.prototype,"ariaLabel",void 0);Z([(0,W.property)()],C.prototype,"ariaHasPopup",void 0);Z([(0,W.property)({attribute:"aria-pressed"})],C.prototype,"ariaPressed",void 0);Z([(0,W.property)({attribute:"aria-expanded"})],C.prototype,"ariaExpanded",void 0);Z([(0,W.property)()],C.prototype,"tooltipPosition",void 0);Z([(0,W.property)({type:Boolean})],C.prototype,"hideTooltip",void 0);Z([(0,W.property)({type:Boolean})],C.prototype,"forceTooltip",void 0);Z([(0,W.property)({type:Boolean})],C.prototype,"activated",void 0);Z([(0,W.query)(".ft-button")],C.prototype,"button",void 0);Z([(0,W.query)(".ft-button--label")],C.prototype,"labelContainer",void 0);Z([(0,W.state)()],C.prototype,"hasTextContent",void 0);Z([(0,W.query)(".ft-button--label slot")],C.prototype,"slottedContent",void 0);Z([(0,W.query)("[part=tooltip]")],C.prototype,"tooltip",void 0);var td=c(f());var ed={"ft-button":C};(0,td.customElements)(ed);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)},id=rd.css`
|
|
607
607
|
* {
|
|
608
608
|
box-sizing: border-box;
|
|
609
609
|
${(0,Q.setVariable)(T.color,xe.buttonColor)};
|
|
@@ -677,7 +677,7 @@
|
|
|
677
677
|
height: 20px;
|
|
678
678
|
border-right: 1px solid ${xe.colorOutline};
|
|
679
679
|
}
|
|
680
|
-
`;var pr=c(f()),nn=c(V());var Vo;(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Vo||(Vo={}));var dr=c(f());var
|
|
680
|
+
`;var pr=c(f()),nn=c(V());var Vo;(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Vo||(Vo={}));var dr=c(f());var Uf=c(f());var Ss=class t extends Event{constructor(){super(t.eventName)}};Ss.eventName="search-context-clear-all-filters";var Ho=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 pr.FtContextRegistrationEvent{constructor(e){super("register-ft-search-component",e)}},nd=Symbol("registerInterval"),jo=Symbol("registerAttempts"),zf=40,Vf=(0,pr.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[jo]=0,this.tryToRegisterToContext(),this[nd]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[jo]>zf?window.clearInterval(this[nd]):(this[jo]++,this.dispatchEvent(new qo({target:this,registrationId:this.searchRegistrationId})))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Ho([(0,nn.state)()],e.prototype,"stateManager",void 0),Ho([(0,nn.state)({hasChanged:pr.hasChanged})],e.prototype,"neededSearchRequests",void 0),Ho([(0,nn.property)()],e.prototype,"searchRegistrationId",void 0),e}),Es=class extends Vf(pr.FtLitElementRedux){};var Zt=mi.build("designedSearchInput");var lt=c(V()),Wp=c(Je());var qp=c(f()),Xr=c(x());var Vp=c(x());var Hp=c(f());var H=c(x()),F=c(V()),hn=c(hr()),X=c(f());var ld=c(x()),Vr=c(V()),As=c(f());var gt;(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(gt||(gt={}));var od=c(x());var ad=od.css`
|
|
681
681
|
.ft-size-watcher--pixel {
|
|
682
682
|
width: 0;
|
|
683
683
|
height: 0;
|
|
@@ -696,11 +696,11 @@
|
|
|
696
696
|
.ft-size-watcher--local .ft-size-watcher--watcher {
|
|
697
697
|
width: 100%;
|
|
698
698
|
}
|
|
699
|
-
`;var sn=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},Wo=class extends CustomEvent{constructor(e,r){super("change",{detail:{size:e,category:r}})}},rt=class extends As.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 As.Debouncer}render(){return
|
|
699
|
+
`;var sn=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},Wo=class extends CustomEvent{constructor(e,r){super("change",{detail:{size:e,category:r}})}},rt=class extends As.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 As.Debouncer}render(){return ld.html`
|
|
700
700
|
<div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
|
|
701
701
|
<div class="ft-size-watcher--watcher"></div>
|
|
702
702
|
</div>
|
|
703
|
-
`}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 Wo(this.size,this.category)))},this.debounceTimeout)}};rt.elementDefinitions={};rt.styles=
|
|
703
|
+
`}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 Wo(this.size,this.category)))},this.debounceTimeout)}};rt.elementDefinitions={};rt.styles=ad;sn([(0,Vr.property)({type:Number})],rt.prototype,"debounceTimeout",void 0);sn([(0,Vr.property)({type:Boolean})],rt.prototype,"local",void 0);sn([(0,Vr.property)({type:Number,reflect:!0})],rt.prototype,"size",void 0);sn([(0,Vr.property)({type:String,reflect:!0})],rt.prototype,"category",void 0);sn([(0,Vr.query)(".ft-size-watcher--watcher")],rt.prototype,"watcher",void 0);var ud=c(f());var cd={"ft-size-watcher":rt};(0,ud.customElements)(cd);var Ko=c(f());function Cs(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function dd(t){return Cs(t).split("|").pop()}function pd(t){return Cs(t).split("|").join(" > ")}function hd(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>hd(r,t.selected)),value:t.value}}function fd(t){return(0,Ko.flatDeep)(t.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]}).filter(e=>e.selected).map(e=>e.label)}function Go(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>hd(e,!1))}}function md(t){return(0,Ko.flatDeep)(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var gd=c(x()),Y=c(f());var on={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")},yd=gd.css`
|
|
704
704
|
.ft-filter-level--container {
|
|
705
705
|
display: flex;
|
|
706
706
|
flex-direction: column;
|
|
@@ -771,7 +771,7 @@
|
|
|
771
771
|
margin: 10px 0;
|
|
772
772
|
color: ${on.colorOnSurfaceMedium};
|
|
773
773
|
}
|
|
774
|
-
`;var qr=c(x()),ae=c(V()),de=c(f());var st=c(x()),Re=c(V()),
|
|
774
|
+
`;var qr=c(x()),ae=c(V()),de=c(f());var st=c(x()),Re=c(V()),Pd=c(hr()),Ye=c(f());var ws=c(x()),yt=c(V()),xd=c(f()),Sd=c(Je());var Ee=c(f()),bd=c(x());var it={textColor:Ee.FtCssVariableFactory.extend("--ft-checkbox-text-color","",Ee.designSystemVariables.colorOnSurfaceHigh),fontSize:Ee.FtCssVariableFactory.extend("--ft-checkbox-font-size","",y.fontSize),activeColor:Ee.FtCssVariableFactory.extend("--ft-checkbox-active-color","",Ee.designSystemVariables.colorPrimary),checkColor:Ee.FtCssVariableFactory.extend("--ft-checkbox-check-color","",Ee.designSystemVariables.colorOnPrimary),borderColor:Ee.FtCssVariableFactory.extend("--ft-checkbox-border-color","",Ee.designSystemVariables.colorOnSurfaceMedium),disabledColor:Ee.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",Ee.designSystemVariables.colorOnSurfaceDisabled),errorColor:Ee.FtCssVariableFactory.extend("--ft-checkbox-error-color","",Ee.designSystemVariables.colorError)},vd=bd.css`
|
|
775
775
|
* {
|
|
776
776
|
box-sizing: border-box;
|
|
777
777
|
}
|
|
@@ -873,7 +873,7 @@
|
|
|
873
873
|
.ft-checkbox ft-typography {
|
|
874
874
|
padding-right: 2px;
|
|
875
875
|
}
|
|
876
|
-
`;var Bt=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){super("change",{detail:e})}},Ae=class extends
|
|
876
|
+
`;var Bt=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){super("change",{detail:e})}},Ae=class extends xd.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1,this.ariaLabel=null}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 ws.html`
|
|
877
877
|
<div class="ft-checkbox--box-container" part="checkbox-box-container">
|
|
878
878
|
<ft-ripple part="checkbox-ripple"
|
|
879
879
|
?disabled=${this.disabled}
|
|
@@ -897,7 +897,7 @@
|
|
|
897
897
|
>
|
|
898
898
|
</div>
|
|
899
899
|
`}render(){return ws.html`
|
|
900
|
-
<label class="${(0,
|
|
900
|
+
<label class="${(0,Sd.classMap)(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
|
|
901
901
|
${this.renderBoxContainer()}
|
|
902
902
|
<ft-typography variant="${oe.body2}" part="checkbox-body">
|
|
903
903
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
@@ -908,7 +908,7 @@
|
|
|
908
908
|
<path class="ft-checkbox--checkmark-path" fill="none"
|
|
909
909
|
d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
|
|
910
910
|
</svg>
|
|
911
|
-
`}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 Qo(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)}};Ae.elementDefinitions={"ft-ripple":D,"ft-typography":q};Ae.styles=
|
|
911
|
+
`}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 Qo(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)}};Ae.elementDefinitions={"ft-ripple":D,"ft-typography":q};Ae.styles=vd;Bt([(0,yt.property)()],Ae.prototype,"name",void 0);Bt([(0,yt.property)()],Ae.prototype,"value",void 0);Bt([(0,yt.property)({type:Boolean,reflect:!0})],Ae.prototype,"checked",void 0);Bt([(0,yt.property)({type:Boolean})],Ae.prototype,"indeterminate",void 0);Bt([(0,yt.property)({type:Boolean})],Ae.prototype,"disabled",void 0);Bt([(0,yt.property)({type:Boolean})],Ae.prototype,"error",void 0);Bt([(0,yt.property)({attribute:"aria-label"})],Ae.prototype,"ariaLabel",void 0);Bt([(0,yt.query)(".ft-checkbox")],Ae.prototype,"container",void 0);Bt([(0,yt.query)("ft-ripple")],Ae.prototype,"ripple",void 0);Bt([(0,yt.query)("input")],Ae.prototype,"input",void 0);var Ad=c(f());var Ed={"ft-checkbox":Ae};(0,Ad.customElements)(Ed);var Od=c(x()),Ut=c(V()),_d=c(f()),Rd=c(Je());var Cd=c(x()),Qe=c(f());var fr={textColor:Qe.FtCssVariableFactory.extend("--ft-radio-text-color","",Qe.designSystemVariables.colorOnSurfaceHigh),fontSize:Qe.FtCssVariableFactory.extend("--ft-radio-font-size","",y.fontSize),colorPrimary:Qe.FtCssVariableFactory.external(Qe.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:Qe.FtCssVariableFactory.external(Qe.designSystemVariables.colorOnPrimary,"Design system"),borderColor:Qe.FtCssVariableFactory.extend("--ft-radio-border-color","",Qe.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:Qe.FtCssVariableFactory.external(Qe.designSystemVariables.colorOnSurfaceDisabled,"Design system")},wd=Cd.css`
|
|
912
912
|
* {
|
|
913
913
|
box-sizing: border-box;
|
|
914
914
|
}
|
|
@@ -997,8 +997,8 @@
|
|
|
997
997
|
.ft-radio ft-typography {
|
|
998
998
|
padding-right: 2px;
|
|
999
999
|
}
|
|
1000
|
-
`;var mr=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},Os=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},Ce=class extends
|
|
1001
|
-
<div class="${(0,
|
|
1000
|
+
`;var mr=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},Os=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},Ce=class extends _d.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 Od.html`
|
|
1001
|
+
<div class="${(0,Rd.classMap)(this.radioClasses)}"
|
|
1002
1002
|
@click=${this.onClick}>
|
|
1003
1003
|
<div class="ft-radio--box-container">
|
|
1004
1004
|
<ft-ripple
|
|
@@ -1023,7 +1023,7 @@
|
|
|
1023
1023
|
</ft-typography>
|
|
1024
1024
|
</label>
|
|
1025
1025
|
</div>
|
|
1026
|
-
`}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 Os(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 Os(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":D,"ft-typography":q};Ce.styles=
|
|
1026
|
+
`}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 Os(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 Os(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":D,"ft-typography":q};Ce.styles=wd;mr([(0,Ut.property)()],Ce.prototype,"name",void 0);mr([(0,Ut.property)()],Ce.prototype,"value",void 0);mr([(0,Ut.property)({type:Boolean,reflect:!0})],Ce.prototype,"checked",void 0);mr([(0,Ut.property)({attribute:"aria-checked",reflect:!0})],Ce.prototype,"ariaChecked",void 0);mr([(0,Ut.property)({type:Boolean})],Ce.prototype,"disabled",void 0);mr([(0,Ut.query)(".ft-radio")],Ce.prototype,"container",void 0);mr([(0,Ut.query)("ft-ripple")],Ce.prototype,"ripple",void 0);mr([(0,Ut.query)("input")],Ce.prototype,"input",void 0);var Ld=c(f()),gr=c(V()),$d=c(x());var Td=c(x());var kd=Td.css`
|
|
1027
1027
|
:host {
|
|
1028
1028
|
display: block;
|
|
1029
1029
|
}
|
|
@@ -1031,12 +1031,12 @@
|
|
|
1031
1031
|
:host(:focus-visible) {
|
|
1032
1032
|
outline: none;
|
|
1033
1033
|
}
|
|
1034
|
-
`;var an=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
|
|
1034
|
+
`;var an=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 Ld.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 $d.html`
|
|
1035
1035
|
<slot @slotchange=${this.onSlotChange}
|
|
1036
1036
|
@change=${this.onChange}
|
|
1037
1037
|
@keydown=${this.onKeyDown}
|
|
1038
1038
|
></slot>
|
|
1039
|
-
`}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=
|
|
1039
|
+
`}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=kd;an([(0,gr.property)()],nt.prototype,"name",void 0);an([(0,gr.property)({reflect:!0,attribute:"role"})],nt.prototype,"role",void 0);an([(0,gr.property)({reflect:!0,attribute:"aria-labelledby"})],nt.prototype,"ariaLabelledBy",void 0);an([(0,gr.queryAssignedElements)()],nt.prototype,"assignedElements",void 0);an([(0,gr.state)()],nt.prototype,"currentSelectedIndex",void 0);var Id=c(f());var Dd={"ft-radio":Ce,"ft-radio-group":nt};(0,Id.customElements)(Dd);var Hr=mi.build("designedFilterComponent");var ze=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={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},ue=class extends(0,Ye.withAnalytics)(fi((0,Ye.withAriaNotification)(Ye.FtLitElement)),Yo){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.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new Ye.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`
|
|
1040
1040
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
1041
1041
|
${this.parent==null?null:st.html`
|
|
1042
1042
|
<div tabindex="0"
|
|
@@ -1057,7 +1057,7 @@
|
|
|
1057
1057
|
${Hr.messages.noFilterValuesAvailable()}
|
|
1058
1058
|
</ft-typography>
|
|
1059
1059
|
`:st.nothing}
|
|
1060
|
-
${(0,
|
|
1060
|
+
${(0,Pd.repeat)(e,r=>r.value,r=>{var i;return st.html`
|
|
1061
1061
|
<div class="ft-filter-level--option" part="options" tabindex="-1">
|
|
1062
1062
|
${this.multivalued?this.buildMultiValuedOption(r):this.buildMonoValuedOption(r)}
|
|
1063
1063
|
${this.preventNavigation||r.selected||((i=r.subOptions)!==null&&i!==void 0?i:[]).length===0?st.nothing:st.html`
|
|
@@ -1104,7 +1104,7 @@
|
|
|
1104
1104
|
@change=${r=>this.optionsChanged(r,e)}>
|
|
1105
1105
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1106
1106
|
</ft-radio>
|
|
1107
|
-
`}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)})}};ue.elementDefinitions={"ft-button":C,"ft-ripple":D,"ft-typography":q,"ft-checkbox":Ae,"ft-icon":ee,"ft-radio":Ce};ue.styles=
|
|
1107
|
+
`}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)})}};ue.elementDefinitions={"ft-button":C,"ft-ripple":D,"ft-typography":q,"ft-checkbox":Ae,"ft-icon":ee,"ft-radio":Ce};ue.styles=yd;ze([(0,Re.property)({type:String})],ue.prototype,"filterId",void 0);ze([(0,Re.property)({type:Object})],ue.prototype,"parent",void 0);ze([(0,Re.property)({type:Array,hasChanged:Ye.hasChanged})],ue.prototype,"options",void 0);ze([(0,Re.property)({type:Boolean})],ue.prototype,"multivalued",void 0);ze([(0,Re.property)({type:Boolean})],ue.prototype,"disabled",void 0);ze([(0,Re.property)({type:Boolean})],ue.prototype,"hideSelectedOptions",void 0);ze([(0,Re.property)({type:Boolean})],ue.prototype,"displayCount",void 0);ze([(0,Re.property)({type:Boolean})],ue.prototype,"preventNavigation",void 0);ze([(0,Re.property)({type:String})],ue.prototype,"filter",void 0);ze([(0,Re.property)()],ue.prototype,"filteredOptionsNumberAriaNotification",void 0);ze([(0,Ye.numberProperty)()],ue.prototype,"displayedValuesLimit",void 0);ze([(0,Re.query)(".ft-filter-level--container")],ue.prototype,"container",void 0);ze([(0,Re.state)()],ue.prototype,"radios",void 0);ze([(0,Re.state)()],ue.prototype,"displayedPages",void 0);ze([(0,Re.state)()],ue.prototype,"filteredOptions",void 0);var Fd=c(x()),ot=c(V()),jr=c(f());var Bd=c(Je());var Md=c(x()),Rt=c(f());var Ve={buttonsColor:Rt.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",Rt.designSystemVariables.colorPrimary),buttonsZIndex:Rt.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:Rt.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Rt.FtCssVariableFactory.external(Rt.designSystemVariables.colorSurface,"Design system")},Nd=Md.css`
|
|
1108
1108
|
.ft-snap-scroll {
|
|
1109
1109
|
box-sizing: border-box;
|
|
1110
1110
|
position: relative;
|
|
@@ -1229,7 +1229,7 @@
|
|
|
1229
1229
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1230
1230
|
background-color: ${Ve.colorSurface};
|
|
1231
1231
|
}
|
|
1232
|
-
`;var zt=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,r){super("current-element-change",{detail:{index:e,element:r}})}},ye=class extends jr.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 jr.Debouncer(200),this.updateScrollDebouncer=new jr.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,
|
|
1232
|
+
`;var zt=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,r){super("current-element-change",{detail:{index:e,element:r}})}},ye=class extends jr.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 jr.Debouncer(200),this.updateScrollDebouncer=new jr.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,Bd.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":jr.isSafari}),r=this.controls&&this.withScroll;return Fd.html`
|
|
1233
1233
|
<div part="container" class="${e}">
|
|
1234
1234
|
<ft-button
|
|
1235
1235
|
class="ft-snap-scroll--previous"
|
|
@@ -1253,7 +1253,7 @@
|
|
|
1253
1253
|
@click=${this.next}
|
|
1254
1254
|
></ft-button>
|
|
1255
1255
|
</div>
|
|
1256
|
-
`}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 Xo(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=
|
|
1256
|
+
`}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 Xo(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=Nd;zt([(0,ot.property)({type:Boolean})],ye.prototype,"horizontal",void 0);zt([(0,ot.property)({type:Boolean})],ye.prototype,"hideScrollbar",void 0);zt([(0,ot.property)({type:Boolean})],ye.prototype,"controls",void 0);zt([(0,ot.property)({type:Boolean})],ye.prototype,"limitSize",void 0);zt([(0,ot.state)()],ye.prototype,"elements",void 0);zt([(0,ot.state)()],ye.prototype,"currentElement",void 0);zt([(0,ot.state)()],ye.prototype,"withScroll",void 0);zt([(0,ot.state)()],ye.prototype,"startReached",void 0);zt([(0,ot.state)()],ye.prototype,"endReached",void 0);zt([(0,ot.query)(".ft-snap-scroll--content")],ye.prototype,"contentSlot",void 0);var zd=c(f());var Ud={"ft-snap-scroll":ye};(0,zd.customElements)(Ud);var Vd=c(x()),te=c(f());var Xe={colorOutline:te.FtCssVariableFactory.external(te.designSystemVariables.colorOutline,"Design system"),colorOnSurface:te.FtCssVariableFactory.external(te.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:te.FtCssVariableFactory.external(te.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:te.FtCssVariableFactory.external(te.designSystemVariables.colorPrimary,"Design system"),colorSurface:te.FtCssVariableFactory.external(te.designSystemVariables.colorSurface,"Design system"),transitionDuration:te.FtCssVariableFactory.external(te.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:te.FtCssVariableFactory.external(te.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:te.FtCssVariableFactory.extend("--ft-filter-label-color","",te.designSystemVariables.colorOnSurface),labelFontSize:te.FtCssVariableFactory.extend("--ft-filter-label-font-size","",y.fontSize,"16px")},Hd=[tr,te.noTextInputDefaultClearButton,Vd.css`
|
|
1257
1257
|
:host {
|
|
1258
1258
|
display: flex;
|
|
1259
1259
|
max-height: 100%;
|
|
@@ -1452,17 +1452,17 @@
|
|
|
1452
1452
|
.exportpartsPrefixes=${["values","available-values"]}
|
|
1453
1453
|
.filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
|
|
1454
1454
|
></ft-filter-level>
|
|
1455
|
-
`}goBack(e){this.slideOut=e.detail.value,(0,de.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,de.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,de.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,de.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new Zo(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)}};K.elementDefinitions={"ft-button":C,"ft-filter-level":ue,"ft-snap-scroll":ye,"ft-typography":q};K.styles=
|
|
1455
|
+
`}goBack(e){this.slideOut=e.detail.value,(0,de.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,de.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,de.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,de.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new Zo(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)}};K.elementDefinitions={"ft-button":C,"ft-filter-level":ue,"ft-snap-scroll":ye,"ft-typography":q};K.styles=Hd;pe([(0,ae.property)({type:String})],K.prototype,"id",void 0);pe([(0,ae.property)({type:String})],K.prototype,"label",void 0);pe([(0,de.jsonProperty)([])],K.prototype,"options",void 0);pe([(0,ae.property)({type:Boolean})],K.prototype,"multivalued",void 0);pe([(0,ae.property)({type:Boolean})],K.prototype,"disabled",void 0);pe([(0,ae.property)({type:Boolean})],K.prototype,"raiseSelectedOptions",void 0);pe([(0,ae.property)({type:Boolean})],K.prototype,"displayCount",void 0);pe([(0,de.numberProperty)()],K.prototype,"displayedValuesLimit",void 0);pe([(0,de.jsonProperty)(void 0)],K.prototype,"filteredOptionsNumberAriaNotification",void 0);pe([(0,ae.property)({type:Boolean})],K.prototype,"hideClearButton",void 0);pe([(0,ae.query)(".ft-filter--slot")],K.prototype,"slotElement",void 0);pe([(0,ae.query)(".ft-filter--container")],K.prototype,"container",void 0);pe([(0,ae.query)(".ft-filter--values")],K.prototype,"valuesContainer",void 0);pe([(0,ae.query)(".ft-filter--levels")],K.prototype,"levelsContainer",void 0);pe([(0,ae.state)()],K.prototype,"lastLevelHasHiddenvalues",void 0);pe([(0,ae.query)(".ft-filter--filter input")],K.prototype,"filterInput",void 0);pe([(0,ae.queryAll)(".ft-filter--levels ft-filter-level")],K.prototype,"levels",void 0);pe([(0,ae.state)()],K.prototype,"withScroll",void 0);pe([(0,ae.state)()],K.prototype,"filter",void 0);pe([(0,ae.state)()],K.prototype,"slideIn",void 0);pe([(0,ae.state)()],K.prototype,"slideOut",void 0);var _s=c(f()),Wr=c(V()),jd=c(x()),bi=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 _s.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return jd.html`
|
|
1456
1456
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1457
|
-
`}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={};bi([(0,Wr.property)({type:String})],at.prototype,"label",void 0);bi([(0,Wr.property)({type:Object,converter:t=>t})],at.prototype,"value",void 0);bi([(0,Wr.property)({type:Boolean,reflect:!0})],at.prototype,"selected",void 0);bi([(0,Wr.property)({type:Object})],at.prototype,"subOptions",void 0);bi([(0,_s.jsonProperty)({})],at.prototype,"renderOption",void 0);bi([(0,Wr.query)(".ft-filter-option--slot")],at.prototype,"slotElement",void 0);var
|
|
1457
|
+
`}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={};bi([(0,Wr.property)({type:String})],at.prototype,"label",void 0);bi([(0,Wr.property)({type:Object,converter:t=>t})],at.prototype,"value",void 0);bi([(0,Wr.property)({type:Boolean,reflect:!0})],at.prototype,"selected",void 0);bi([(0,Wr.property)({type:Object})],at.prototype,"subOptions",void 0);bi([(0,_s.jsonProperty)({})],at.prototype,"renderOption",void 0);bi([(0,Wr.query)(".ft-filter-option--slot")],at.prototype,"slotElement",void 0);var Wd=c(f());var qd={"ft-filter":K,"ft-filter-option":at};(0,Wd.customElements)(qd);var Yd=c(x()),Rs=c(V()),Xd=c(f());var Kd=c(x());var Gd=Kd.css`
|
|
1458
1458
|
.ft-accordion {
|
|
1459
1459
|
box-sizing: border-box;
|
|
1460
1460
|
}
|
|
1461
|
-
`;var
|
|
1461
|
+
`;var Qd=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},Vt=class extends Xd.FtLitElement{constructor(){super(...arguments),this.multi=!1}render(){return Yd.html`
|
|
1462
1462
|
<div class="ft-accordion">
|
|
1463
1463
|
<slot @activated=${this.onChange}></slot>
|
|
1464
1464
|
</div>
|
|
1465
|
-
`}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};Vt.elementDefinitions={};Vt.styles=
|
|
1465
|
+
`}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};Vt.elementDefinitions={};Vt.styles=Gd;Qd([(0,Rs.property)({type:Boolean})],Vt.prototype,"multi",void 0);Qd([(0,Rs.query)("slot")],Vt.prototype,"content",void 0);var ln=c(x()),cn=c(V()),ep=c(f());var Zd=c(x()),Gr=c(f()),Kr={horizontalSpacing:Gr.FtCssVariableFactory.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:Gr.FtCssVariableFactory.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:Gr.FtCssVariableFactory.external(Gr.designSystemVariables.colorOutline,"Design system"),backgroundColor:Gr.FtCssVariableFactory.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},Jd=Zd.css`
|
|
1466
1466
|
.ft-accordion-item {
|
|
1467
1467
|
display: flex;
|
|
1468
1468
|
flex-direction: column;
|
|
@@ -1508,7 +1508,7 @@
|
|
|
1508
1508
|
.ft-accordion-item--separator {
|
|
1509
1509
|
border-bottom: 1px solid ${Kr.colorOutline};
|
|
1510
1510
|
}
|
|
1511
|
-
`;var Ts=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
|
|
1511
|
+
`;var Ts=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 ep.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return ln.html`
|
|
1512
1512
|
<div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
|
|
1513
1513
|
<div class="ft-accordion-item--toggle"
|
|
1514
1514
|
part="toggle"
|
|
@@ -1538,7 +1538,7 @@
|
|
|
1538
1538
|
</div>
|
|
1539
1539
|
<div class="ft-accordion-item--separator" part="separator"></div>
|
|
1540
1540
|
</div>
|
|
1541
|
-
`}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)}};bt.elementDefinitions={"ft-ripple":D,"ft-typography":q,"ft-icon":ee};bt.styles=
|
|
1541
|
+
`}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)}};bt.elementDefinitions={"ft-ripple":D,"ft-typography":q,"ft-icon":ee};bt.styles=Jd;Ts([(0,cn.property)()],bt.prototype,"icon",void 0);Ts([(0,cn.property)()],bt.prototype,"iconVariant",void 0);Ts([(0,cn.property)()],bt.prototype,"label",void 0);Ts([(0,cn.property)({type:Boolean,reflect:!0})],bt.prototype,"active",void 0);var rp=c(f());var tp={"ft-accordion":Vt,"ft-accordion-item":bt};(0,rp.customElements)(tp);var Qr=c(x()),we=c(V()),ap=c(Je()),vi=c(f());var un=c(x()),M=c(f());var ip=M.FtCssVariableFactory.extend("--ft-chip-color","",M.designSystemVariables.colorOnSurface),Te={backgroundColor:M.FtCssVariableFactory.extend("--ft-chip-background-color","",M.designSystemVariables.colorSurface),color:ip,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","",ip),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")},np=M.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",M.FtCssVariableFactory.extend("--ft-chip-color","",M.designSystemVariables.colorOnPrimary)),Jo={backgroundColor:M.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",M.FtCssVariableFactory.extend("--ft-chip-background-color","",M.designSystemVariables.colorPrimary)),color:np,rippleColor:M.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",np)},sp={horizontalPadding:M.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:M.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},op=[M.noTextSelect,un.css`
|
|
1542
1542
|
:host {
|
|
1543
1543
|
display: inline-block;
|
|
1544
1544
|
max-width: 100%;
|
|
@@ -1578,8 +1578,8 @@
|
|
|
1578
1578
|
|
|
1579
1579
|
.ft-chip--dense {
|
|
1580
1580
|
--chip-internal-icon-padding: 3px;
|
|
1581
|
-
--chip-internal-vertical-padding: ${
|
|
1582
|
-
--chip-internal-horizontal-padding: ${
|
|
1581
|
+
--chip-internal-vertical-padding: ${sp.verticalPadding};
|
|
1582
|
+
--chip-internal-horizontal-padding: ${sp.horizontalPadding};
|
|
1583
1583
|
--chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
|
|
1584
1584
|
}
|
|
1585
1585
|
|
|
@@ -1679,7 +1679,7 @@
|
|
|
1679
1679
|
order: -1;
|
|
1680
1680
|
}
|
|
1681
1681
|
`];var Pe=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},ks=class extends CustomEvent{constructor(){super("icon-click")}},ne=class extends vi.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":vi.isSafari};return Qr.html`
|
|
1682
|
-
<div class="${(0,
|
|
1682
|
+
<div class="${(0,ap.classMap)(r)}"
|
|
1683
1683
|
aria-label="${this.labelOnIconOnly?Qr.nothing:this.getLabel()}"
|
|
1684
1684
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
1685
1685
|
@keyup=${this.onKeyUp}
|
|
@@ -1706,7 +1706,7 @@
|
|
|
1706
1706
|
<div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
|
|
1707
1707
|
<ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
|
|
1708
1708
|
</div>
|
|
1709
|
-
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new ks))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new ks))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,vi.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};ne.elementDefinitions={"ft-ripple":D,"ft-typography":q,"ft-icon":ee,"ft-button":C};ne.styles=
|
|
1709
|
+
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new ks))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new ks))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,vi.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};ne.elementDefinitions={"ft-ripple":D,"ft-typography":q,"ft-icon":ee,"ft-button":C};ne.styles=op;Pe([(0,we.property)({type:Boolean})],ne.prototype,"highlighted",void 0);Pe([(0,we.property)({type:Boolean})],ne.prototype,"removable",void 0);Pe([(0,we.property)({type:Boolean})],ne.prototype,"disabled",void 0);Pe([(0,we.property)({type:Boolean})],ne.prototype,"clickable",void 0);Pe([(0,we.property)({type:Boolean})],ne.prototype,"iconClickable",void 0);Pe([(0,we.property)({type:Boolean})],ne.prototype,"dense",void 0);Pe([(0,we.property)({type:Boolean})],ne.prototype,"multiLine",void 0);Pe([(0,we.property)()],ne.prototype,"label",void 0);Pe([(0,we.property)()],ne.prototype,"iconLabel",void 0);Pe([(0,we.property)({type:Boolean})],ne.prototype,"hideIconTooltip",void 0);Pe([(0,we.property)({type:Boolean})],ne.prototype,"accessibleLabelOnIcon",void 0);Pe([(0,we.property)()],ne.prototype,"icon",void 0);Pe([(0,we.property)()],ne.prototype,"iconVariant",void 0);Pe([(0,we.property)({type:Boolean})],ne.prototype,"trailingIcon",void 0);Pe([(0,we.property)()],ne.prototype,"typographyVariant",void 0);Pe([(0,we.query)("ft-typography slot")],ne.prototype,"slottedContent",void 0);var cp=c(f());var lp={"ft-chip":ne};(0,cp.customElements)(lp);var Si=c(x()),be=c(V()),Ep=c(Je()),Ap=c(hr());function dn(t,e,r){return t?e(t):r?.(t)}var vt=c(f());var Ls=c(V());var up=c(x()),re=c(f());var B={fontSize:re.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:re.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:re.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:re.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:re.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:re.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:re.FtCssVariableFactory.extend("--ft-input-label-border-color","",re.designSystemVariables.colorOutline),textColor:re.FtCssVariableFactory.extend("--ft-input-label-text-color","",re.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:re.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",re.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:re.FtCssVariableFactory.extend("--ft-input-label-background-color","",re.designSystemVariables.colorSurface),borderRadius:re.FtCssVariableFactory.extend("--ft-input-label-border-radius","",re.designSystemVariables.borderRadiusS),colorError:re.FtCssVariableFactory.external(re.designSystemVariables.colorError,"Design system")},dp=up.css`
|
|
1710
1710
|
.ft-input-label {
|
|
1711
1711
|
position: absolute;
|
|
1712
1712
|
inset: 0;
|
|
@@ -1800,8 +1800,8 @@
|
|
|
1800
1800
|
border-radius: ${B.borderRadius};
|
|
1801
1801
|
top: calc((${We.lineHeight} / -2) + 2px);
|
|
1802
1802
|
}
|
|
1803
|
-
`;var ea=c(x()),ta=c(V());var
|
|
1804
|
-
<div class="${(0,
|
|
1803
|
+
`;var ea=c(x()),ta=c(V());var hp=c(Je()),fp=c(f()),pp=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},Yr=class extends fp.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return ea.html`
|
|
1804
|
+
<div class="${(0,hp.classMap)(this.inputLabelClasses)}">
|
|
1805
1805
|
${dn(this.text,()=>ea.html`
|
|
1806
1806
|
<div class="ft-input-label--text ft-typography--caption">
|
|
1807
1807
|
<label class="ft-input-label--floating-text">${this.text}</label>
|
|
@@ -1809,7 +1809,7 @@
|
|
|
1809
1809
|
</div>
|
|
1810
1810
|
`)}
|
|
1811
1811
|
</div>
|
|
1812
|
-
`}};Yr.elementDefinitions={};
|
|
1812
|
+
`}};Yr.elementDefinitions={};pp([(0,ta.property)({type:String})],Yr.prototype,"text",void 0);pp([(0,ta.property)({type:Boolean})],Yr.prototype,"raised",void 0);var ra=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},Tt=class extends Yr{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}}};Tt.elementDefinitions={};Tt.styles=[tr,dp];ra([(0,Ls.property)({type:Boolean})],Tt.prototype,"outlined",void 0);ra([(0,Ls.property)({type:Boolean})],Tt.prototype,"error",void 0);ra([(0,Ls.property)({type:Boolean})],Tt.prototype,"disabled",void 0);var gp=c(f());var mp={"ft-input-label":Tt};(0,gp.customElements)(mp);var yp=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")},bp=yp.css`
|
|
1813
1813
|
*:focus {
|
|
1814
1814
|
outline: none;
|
|
1815
1815
|
}
|
|
@@ -1945,7 +1945,7 @@
|
|
|
1945
1945
|
.ft-select:not(.ft-select--has-option-selected) .ft-select--selected-option {
|
|
1946
1946
|
opacity: 0;
|
|
1947
1947
|
}
|
|
1948
|
-
`;var $s=c(f());var xi=c(x()),
|
|
1948
|
+
`;var $s=c(f());var xi=c(x()),Sp=c(Je()),yr=c(V());var ia=c(f());var vp=c(x()),xp=vp.css`
|
|
1949
1949
|
.ft-select--option {
|
|
1950
1950
|
${(0,ia.setVariable)(U.opacityContentOnSurfaceHover,"0.08")};
|
|
1951
1951
|
${(0,ia.setVariable)(U.opacityContentOnSurfacePressed,"0.04")};
|
|
@@ -1973,7 +1973,7 @@
|
|
|
1973
1973
|
}
|
|
1974
1974
|
|
|
1975
1975
|
`;var pn=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},Me=class extends $s.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 xi.html`
|
|
1976
|
-
<div class="${(0,
|
|
1976
|
+
<div class="${(0,Sp.classMap)(i)}"
|
|
1977
1977
|
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,"")}"
|
|
1978
1978
|
tabindex="0"
|
|
1979
1979
|
aria-label="${this.label}"
|
|
@@ -1984,8 +1984,8 @@
|
|
|
1984
1984
|
</slot>
|
|
1985
1985
|
${this.isSlotEmpty?xi.html`<span>${this.label}</span>`:xi.html``}
|
|
1986
1986
|
</div>
|
|
1987
|
-
`}onSlotChange(){this.isSlotEmpty=(0,$s.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":D};Me.shadowRootOptions={...xi.LitElement.shadowRootOptions,delegatesFocus:!0};Me.styles=[
|
|
1988
|
-
<div class="${(0,
|
|
1987
|
+
`}onSlotChange(){this.isSlotEmpty=(0,$s.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":D};Me.shadowRootOptions={...xi.LitElement.shadowRootOptions,delegatesFocus:!0};Me.styles=[xp,er];pn([(0,yr.property)({type:String})],Me.prototype,"label",void 0);pn([(0,yr.property)({type:Object,converter:t=>t})],Me.prototype,"value",void 0);pn([(0,yr.property)({type:Boolean,reflect:!0})],Me.prototype,"selected",void 0);pn([(0,yr.query)("slot")],Me.prototype,"slotElement",void 0);pn([(0,yr.state)()],Me.prototype,"isSlotEmpty",void 0);var ke=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 vt.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,vt.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 Si.html`
|
|
1988
|
+
<div class="${(0,Ep.classMap)(u)}" part="container">
|
|
1989
1989
|
<div class="ft-select--main-panel" part="main-panel">
|
|
1990
1990
|
<ft-input-label text="${this.label}"
|
|
1991
1991
|
part="label"
|
|
@@ -2025,7 +2025,7 @@
|
|
|
2025
2025
|
@option-change=${this.updateOptionsFromSlot}
|
|
2026
2026
|
>
|
|
2027
2027
|
</slot>
|
|
2028
|
-
${dn(this.isSlotEmpty,()=>(0,
|
|
2028
|
+
${dn(this.isSlotEmpty,()=>(0,Ap.repeat)(this.options,d=>d.value,d=>this.renderOption(d)))}
|
|
2029
2029
|
</div>
|
|
2030
2030
|
</div>
|
|
2031
2031
|
<slot name="helper" part="helper">
|
|
@@ -2040,7 +2040,7 @@
|
|
|
2040
2040
|
label="${e.label}"
|
|
2041
2041
|
.value=${e.value}
|
|
2042
2042
|
></ft-select-option>
|
|
2043
|
-
`}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,vt.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,vt.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,vt.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,vt.deepEqual)(s.value,e));i&&this.selectOption(i,r)}selectOption(e,r=!0){var i,s;if(!(0,vt.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":Tt,"ft-typography":q,"ft-ripple":D,"ft-icon":ee,"ft-select-option":Me};J.searchTimeoutMilliseconds=2e3;J.styles=[tr,
|
|
2043
|
+
`}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,vt.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,vt.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,vt.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,vt.deepEqual)(s.value,e));i&&this.selectOption(i,r)}selectOption(e,r=!0){var i,s;if(!(0,vt.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":Tt,"ft-typography":q,"ft-ripple":D,"ft-icon":ee,"ft-select-option":Me};J.searchTimeoutMilliseconds=2e3;J.styles=[tr,bp];ke([(0,be.property)({type:String})],J.prototype,"label",void 0);ke([(0,be.property)({type:String})],J.prototype,"ariaLabel",void 0);ke([(0,be.property)({type:String})],J.prototype,"helper",void 0);ke([(0,be.property)({type:Boolean})],J.prototype,"outlined",void 0);ke([(0,be.property)({type:Boolean})],J.prototype,"disabled",void 0);ke([(0,be.property)({type:Boolean})],J.prototype,"error",void 0);ke([(0,be.property)({type:Boolean})],J.prototype,"fixedMenuPosition",void 0);ke([(0,be.property)({type:Array})],J.prototype,"options",void 0);ke([(0,be.state)()],J.prototype,"selectedOption",void 0);ke([(0,be.state)()],J.prototype,"optionsDisplayed",void 0);ke([(0,be.state)()],J.prototype,"focusOptions",void 0);ke([(0,be.state)()],J.prototype,"currentSearch",void 0);ke([(0,be.state)()],J.prototype,"lastSearchInputDate",void 0);ke([(0,be.query)(".ft-select")],J.prototype,"container",void 0);ke([(0,be.query)(".ft-select--options")],J.prototype,"optionsMenu",void 0);ke([(0,be.query)(".ft-select--input-panel")],J.prototype,"mainPanel",void 0);ke([(0,be.query)("slot:not([name])")],J.prototype,"optionsSlot",void 0);var wp=c(f());var Cp={"ft-select":J,"ft-select-option":Me};(0,wp.customElements)(Cp);var L=c(f()),na=c(x());var Op=c(x()),kt=c(f()),Le={display:kt.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:kt.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:kt.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:kt.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:kt.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:kt.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:kt.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:kt.FtCssVariableFactory.external(kt.designSystemVariables.borderRadiusM,"Design system")},_p=Op.css`
|
|
2044
2044
|
:host {
|
|
2045
2045
|
width: ${Le.width};
|
|
2046
2046
|
height: ${Le.height};
|
|
@@ -2067,7 +2067,7 @@
|
|
|
2067
2067
|
background-position: calc(100vw + ${Le.glareWidth}) 0, calc(${Le.glareWidth} * -1) 0;
|
|
2068
2068
|
}
|
|
2069
2069
|
}
|
|
2070
|
-
`;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)},
|
|
2070
|
+
`;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)},Rp=na.css`
|
|
2071
2071
|
* {
|
|
2072
2072
|
box-sizing: border-box;
|
|
2073
2073
|
}
|
|
@@ -2260,7 +2260,7 @@
|
|
|
2260
2260
|
${(0,L.setVariable)(y.fontWeight,"bold")};
|
|
2261
2261
|
}
|
|
2262
2262
|
|
|
2263
|
-
`,
|
|
2263
|
+
`,Tp=na.css`
|
|
2264
2264
|
.ft-search-bar--presets {
|
|
2265
2265
|
min-width: 200px;
|
|
2266
2266
|
}
|
|
@@ -2421,8 +2421,8 @@
|
|
|
2421
2421
|
.ft-search-bar--desktop-menu .ft-search-bar--launch-search {
|
|
2422
2422
|
margin: 0;
|
|
2423
2423
|
}
|
|
2424
|
-
`;var
|
|
2425
|
-
`}};br.elementDefinitions={};br.styles=
|
|
2424
|
+
`;var kp=c(x()),Lp=c(f());var br=class extends Lp.FtLitElement{render(){return kp.html`
|
|
2425
|
+
`}};br.elementDefinitions={};br.styles=_p;var Dp=c(f());var $p={"ft-skeleton":br};(0,Dp.customElements)($p);var Ht=c(x()),sa=c(hr());var Ei=c(f());var jt=class{constructor(e,r=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new Ei.Debouncer(r)}render(){let e=this.recentSearchesMatchingQuery;return Ht.html`
|
|
2426
2426
|
<div class="ft-search-bar--suggestions ft-word-wrap ${this.shouldDisplaySuggestions?"ft-search-bar--suggestions-not-empty":""}"
|
|
2427
2427
|
id="${this.listboxId}"
|
|
2428
2428
|
role="listbox"
|
|
@@ -2578,7 +2578,7 @@
|
|
|
2578
2578
|
${this.getLocaleLabel(this.searchBar.contentLocale)}
|
|
2579
2579
|
</ft-chip>
|
|
2580
2580
|
`:null}
|
|
2581
|
-
${(0,oa.repeat)(this.searchBar.facets,s=>s.key,s=>{let n=
|
|
2581
|
+
${(0,oa.repeat)(this.searchBar.facets,s=>s.key,s=>{let n=md(s);return(0,oa.repeat)(n,o=>{let a=s.label+": "+pd(o),l=s.key.replace(":","-"),u=He.html`
|
|
2582
2582
|
<ft-chip
|
|
2583
2583
|
part="selected-filters selected-filter-${l}"
|
|
2584
2584
|
?dense=${this.searchBar.dense&&!e}
|
|
@@ -2591,7 +2591,7 @@
|
|
|
2591
2591
|
@icon-click=${()=>this.searchBar.setFilter(s.key,n.filter(d=>d!==o))}
|
|
2592
2592
|
data-key="${s.key}"
|
|
2593
2593
|
data-value="${o}">
|
|
2594
|
-
${
|
|
2594
|
+
${dd(o)}
|
|
2595
2595
|
</ft-chip>
|
|
2596
2596
|
`;return r?u:He.html`
|
|
2597
2597
|
<ft-tooltip inline text="${a}">
|
|
@@ -2647,8 +2647,8 @@
|
|
|
2647
2647
|
.ft-search-bar--selected-filters ft-chip {
|
|
2648
2648
|
flex-grow: 0;
|
|
2649
2649
|
}
|
|
2650
|
-
`;var Lt=c(x());var
|
|
2651
|
-
<div class="${(0,
|
|
2650
|
+
`;var Lt=c(x());var Ip=c(Je()),Pp=c(f()),Hf=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},Ai=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new qt(e),this.suggestManager=i??new jt(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 Lt.html`
|
|
2651
|
+
<div class="${(0,Ip.classMap)(r)}" part="container" tabindex="-1">
|
|
2652
2652
|
<div class="ft-search-bar" role="search">
|
|
2653
2653
|
<div class="ft-search-bar--input-container" part="input-container">
|
|
2654
2654
|
<div class="ft-search-bar--input-outline" part="input-outline">
|
|
@@ -2706,8 +2706,8 @@
|
|
|
2706
2706
|
</div>
|
|
2707
2707
|
`}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}};Ai.styles=Lt.css`
|
|
2708
2708
|
|
|
2709
|
-
`;
|
|
2710
|
-
<div class="${(0,
|
|
2709
|
+
`;Hf([(0,Pp.ignoreComposingEvents)()],Ai.prototype,"onSearchBarKeyDown",null);var je=c(x()),Mp=c(hr());var Np=c(Je()),Fp=c(f()),jf=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},Ci=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new qt(e),this.suggestManager=i??new jt(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 je.html`
|
|
2710
|
+
<div class="${(0,Np.classMap)(r)}" part="container" tabindex="-1">
|
|
2711
2711
|
<div class="ft-search-bar" part="search-bar" role="search">
|
|
2712
2712
|
${this.renderSearchBarLeftAction()}
|
|
2713
2713
|
<div class="ft-search-bar--input-container" part="input-container" tabindex="-1">
|
|
@@ -2754,7 +2754,7 @@
|
|
|
2754
2754
|
ariaLabel="${this.searchBar.labelResolver.resolve("selectLocale")}"
|
|
2755
2755
|
.exportpartsPrefixes=${["content-locale","select-ft-locale"]}
|
|
2756
2756
|
@change=${e=>this.searchBar.contentLocale=e.detail==null?void 0:e.detail}>
|
|
2757
|
-
${(0,
|
|
2757
|
+
${(0,Mp.repeat)(this.searchBar.availableContentLocales,e=>e.lang,e=>je.html`
|
|
2758
2758
|
<ft-select-option .value=${e.lang}
|
|
2759
2759
|
label="${e.label}"
|
|
2760
2760
|
?selected=${e.lang==this.searchBar.contentLocale}>
|
|
@@ -2785,7 +2785,7 @@
|
|
|
2785
2785
|
</div>
|
|
2786
2786
|
`}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)}};Ci.styles=je.css`
|
|
2787
2787
|
|
|
2788
|
-
`;
|
|
2788
|
+
`;jf([(0,Fp.ignoreComposingEvents)()],Ci.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 Bp={filtersButton:"Filters",inputPlaceHolder:"Search",clearInputButton:"Clear",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},aa=class extends CustomEvent{constructor(e){super("change",{detail:e})}},qf=()=>{},_=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(Bp,{}),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 jt(this),this.selectedFacetsManager=new qt(this),this.desktopSearchBarManager=new Ci(this),this.mobileSearchBarManager=new Ai(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()}focusInput(){var e;this.reactToFocus=!1,(e=this.input)===null||e===void 0||e.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return H.html`
|
|
2789
2789
|
<ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
|
|
2790
2790
|
<div class="sr-only" aria-live="polite" aria-atomic="true">
|
|
2791
2791
|
${this.renderLiveText()}
|
|
@@ -2813,7 +2813,7 @@
|
|
|
2813
2813
|
</div>
|
|
2814
2814
|
</ft-accordion-item>
|
|
2815
2815
|
`:null}
|
|
2816
|
-
${(0,hn.repeat)(this.facets,r=>r.key,r=>{let i=Go(r),s=r.key.replace(":","-"),n=
|
|
2816
|
+
${(0,hn.repeat)(this.facets,r=>r.key,r=>{let i=Go(r),s=r.key.replace(":","-"),n=fd(i);return r.rootNodes.length>0?H.html`
|
|
2817
2817
|
<ft-accordion-item data-facet-key="${r.key}">
|
|
2818
2818
|
<div class="ft-search-bar--filter-label" slot="toggle">
|
|
2819
2819
|
<ft-typography variant="button">${r.label}</ft-typography>
|
|
@@ -2918,14 +2918,14 @@
|
|
|
2918
2918
|
></ft-filter>
|
|
2919
2919
|
`})}
|
|
2920
2920
|
</ft-snap-scroll>
|
|
2921
|
-
`:H.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(
|
|
2921
|
+
`:H.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(Bp,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=>Cs(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 aa(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(qf)),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),O.addEventListener("authentication-change",this.initSearchData),this.initSearchData(),this.focusOnDisplay&&(0,X.waitFor)(()=>this.input,50).then(e=>{X.FocusHelper.allowAutoFocus(e)&&this.focusInput()})}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?H.nothing:H.html`
|
|
2922
2922
|
<div class="ft-search-bar--floating-panel"
|
|
2923
2923
|
id="ft-search-bar-floating-panel"
|
|
2924
2924
|
@keyup=${this.onFloatingContainerKeyUp}
|
|
2925
2925
|
part="floating-panel"
|
|
2926
2926
|
tabindex="-1">
|
|
2927
2927
|
${this.renderDesktopMenu()}
|
|
2928
|
-
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};_.elementDefinitions={"ft-accordion":Vt,"ft-accordion-item":bt,"ft-button":C,"ft-chip":ne,"ft-filter":K,"ft-filter-option":at,"ft-icon":ee,"ft-ripple":D,"ft-select":J,"ft-select-option":Me,"ft-size-watcher":rt,"ft-skeleton":br,"ft-snap-scroll":ye,"ft-tooltip":ce,"ft-typography":q,"ft-radio-group":nt,"ft-radio":Ce};_.styles=[er,X.noTextInputDefaultClearButton,
|
|
2928
|
+
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};_.elementDefinitions={"ft-accordion":Vt,"ft-accordion-item":bt,"ft-button":C,"ft-chip":ne,"ft-filter":K,"ft-filter-option":at,"ft-icon":ee,"ft-ripple":D,"ft-select":J,"ft-select-option":Me,"ft-size-watcher":rt,"ft-skeleton":br,"ft-snap-scroll":ye,"ft-tooltip":ce,"ft-typography":q,"ft-radio-group":nt,"ft-radio":Ce};_.styles=[er,X.noTextInputDefaultClearButton,Rp,Tp,qt.styles,jt.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 zp=c(f());var Up={"ft-search-bar":_};(0,zp.customElements)(Up);var jp=Vp.css`
|
|
2929
2929
|
* {
|
|
2930
2930
|
box-sizing: border-box;
|
|
2931
2931
|
}
|
|
@@ -2977,7 +2977,7 @@
|
|
|
2977
2977
|
}
|
|
2978
2978
|
|
|
2979
2979
|
ft-ripple {
|
|
2980
|
-
${(0,
|
|
2980
|
+
${(0,Hp.setVariable)(U.opacityContentOnSurfaceHover,U.opacityContentOnSurfaceSelected)}
|
|
2981
2981
|
}
|
|
2982
2982
|
`;var la=c(hr());var vr=class{constructor(e){this.ftSearchInput=e,this.listboxId="ft-search-input-suggestion"}render(){var e;let r=Yt.get(),{recentQuerySuggestions:i}=this.ftSearchInput;return Xr.html`
|
|
2983
2983
|
<div class="ft-search-input-suggestion ft-word-wrap"
|
|
@@ -3018,8 +3018,8 @@
|
|
|
3018
3018
|
</ft-button>
|
|
3019
3019
|
`:Xr.nothing}
|
|
3020
3020
|
</div>
|
|
3021
|
-
`}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()}};vr.elementDefinitions={"ft-ripple":D,"ft-typography":q,"ft-icon":ee,"ft-button":C};vr.styles=[
|
|
3022
|
-
<div class="${(0,
|
|
3021
|
+
`}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()}};vr.elementDefinitions={"ft-ripple":D,"ft-typography":q,"ft-icon":ee,"ft-button":C};vr.styles=[qp.wordWrap,jp];var $e=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},Wf=5;function Kf(t){let e=t.liveQuery.trim().toLowerCase();return t.recentQueries.filter(r=>r.toLowerCase().includes(e)).slice(0,Wf)}var se=class extends fi(Es){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 vr(this),this.showSuggestionsOnFocus=!0,this.onPointerDown=e=>{e.composedPath().some(s=>s===this||s===this.shadowRoot)||this.suggestions.closeBox()},this.addI18nContext(Zt)}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=Yt.get().serializeToCurrentPageIfPossible(s,n),a=!this.forceCloseSuggestion&&this.displaySuggestListbox&&r;return wi.html`
|
|
3022
|
+
<div class="${(0,Wp.classMap)(i)}" @focusout=${()=>this.forceCloseSuggestion=!1} role="search">
|
|
3023
3023
|
<div class="ft-search-input--input-container" part="input-container" tabindex="-1">
|
|
3024
3024
|
<div class="ft-search-input--input-outline" part="input-outline">
|
|
3025
3025
|
<input class="ft-search-input--input ft-typography--body2"
|
|
@@ -3065,7 +3065,7 @@
|
|
|
3065
3065
|
></ft-button>
|
|
3066
3066
|
</div>
|
|
3067
3067
|
</div>
|
|
3068
|
-
`}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}connectedCallback(){super.connectedCallback(),this.focusOnDisplay&&this.updateComplete.then(()=>{this.input&&Ze.FocusHelper.allowAutoFocus(this.input)&&(this.showSuggestionsOnFocus=!1,this.input.focus(),this.showSuggestionsOnFocus=!0)})}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("displaySuggestListbox")&&(this.displaySuggestListbox?document.addEventListener("pointerdown",this.onPointerDown):document.removeEventListener("pointerdown",this.onPointerDown))}};se.elementDefinitions={"ft-button":C,...vr.elementDefinitions};se.styles=[er,Ze.noTextInputDefaultClearButton,
|
|
3068
|
+
`}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}connectedCallback(){super.connectedCallback(),this.focusOnDisplay&&this.updateComplete.then(()=>{this.input&&Ze.FocusHelper.allowAutoFocus(this.input)&&(this.showSuggestionsOnFocus=!1,this.input.focus(),this.showSuggestionsOnFocus=!0)})}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("displaySuggestListbox")&&(this.displaySuggestListbox?document.addEventListener("pointerdown",this.onPointerDown):document.removeEventListener("pointerdown",this.onPointerDown))}};se.elementDefinitions={"ft-button":C,...vr.elementDefinitions};se.styles=[er,Ze.noTextInputDefaultClearButton,id,...vr.styles,Ze.screenReaderStyles];$e([(0,Ze.redux)()],se.prototype,"request",void 0);$e([(0,Ze.redux)()],se.prototype,"liveQuery",void 0);$e([(0,Ze.redux)()],se.prototype,"suggestResults",void 0);$e([(0,Ze.redux)({selector:Kf})],se.prototype,"recentQuerySuggestions",void 0);$e([(0,lt.state)()],se.prototype,"forceCloseSuggestion",void 0);$e([(0,lt.state)()],se.prototype,"displaySuggestListbox",void 0);$e([(0,lt.state)()],se.prototype,"selectedSuggestOptionIndex",void 0);$e([(0,lt.state)()],se.prototype,"selectedSuggestOptionRemove",void 0);$e([(0,lt.property)()],se.prototype,"launchSearchPath",void 0);$e([ms()],se.prototype,"placeholder",void 0);$e([(0,lt.property)({type:Boolean})],se.prototype,"useCustomSearchPath",void 0);$e([(0,lt.property)({type:Boolean})],se.prototype,"triggerSearchOnClear",void 0);$e([(0,lt.property)({type:Boolean})],se.prototype,"focusOnDisplay",void 0);$e([(0,lt.query)(".ft-search-input--input")],se.prototype,"input",void 0);$e([(0,lt.query)('[part="launch-search-in-input"]')],se.prototype,"launchSearchButton",void 0);$e([(0,Ze.ignoreComposingEvents)()],se.prototype,"onSearchBarKeyDown",null);$e([(0,Ze.ignoreComposingEvents)()],se.prototype,"onSearchBarKeyUp",null);var Kp={"ft-search-input":se};(0,Gp.customElements)(Kp);})();
|
|
3069
3069
|
/*! Bundled license information:
|
|
3070
3070
|
|
|
3071
3071
|
.store/lit-html-npm-3.3.3-0f054b825a/package/lit-html.js:
|