@fluid-topics/ft-reader-search-in-document 2.1.1 → 2.1.3
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-reader-search-in-document.light.js +393 -385
- package/build/ft-reader-search-in-document.min.js +409 -401
- package/package.json +15 -15
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
1
|
+
"use strict";(()=>{var Tx=Object.create;var Ea=Object.defineProperty;var _x=Object.getOwnPropertyDescriptor;var Lx=Object.getOwnPropertyNames;var kx=Object.getPrototypeOf,Px=Object.prototype.hasOwnProperty;var l=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(i){throw r=[i],i}};var Hi=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},ni=(t,e)=>{for(var r in e)Ea(t,r,{get:e[r],enumerable:!0})},$x=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Lx(e))!Px.call(t,o)&&o!==r&&Ea(t,o,{get:()=>e[o],enumerable:!(i=_x(e,o))||i.enumerable});return t};var u=(t,e,r)=>(r=t!=null?Tx(kx(t)):{},$x(e||!t||!t.__esModule?Ea(r,"default",{value:t,enumerable:!0}):r,t));var m=Hi((x0,Bu)=>{Bu.exports=ftGlobals.wcUtils});var b=Hi((S0,Uu)=>{Uu.exports=ftGlobals.lit});var Ku,be,Hu,q,Vu,ju,zu,qu,Wu,yr=l(()=>{"use strict";Ku=u(b()),be=u(m()),Hu=be.FtCssVariableFactory.extend("--ft-ripple-color","",be.designSystemVariables.colorContent),q={color:Hu,backgroundColor:be.FtCssVariableFactory.extend("--ft-ripple-background-color","",Hu),opacityContentOnSurfacePressed:be.FtCssVariableFactory.external(be.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:be.FtCssVariableFactory.external(be.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:be.FtCssVariableFactory.external(be.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:be.FtCssVariableFactory.external(be.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:be.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Vu=be.FtCssVariableFactory.extend("--ft-ripple-color","",be.designSystemVariables.colorPrimary),ju={color:Vu,backgroundColor:be.FtCssVariableFactory.extend("--ft-ripple-background-color","",Vu)},zu=be.FtCssVariableFactory.extend("--ft-ripple-color","",be.designSystemVariables.colorSecondary),qu={color:zu,backgroundColor:be.FtCssVariableFactory.extend("--ft-ripple-background-color","",zu)},Wu=Ku.css`
|
|
2
2
|
:host {
|
|
3
3
|
display: contents;
|
|
4
4
|
}
|
|
@@ -53,19 +53,19 @@
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
56
|
-
background-color: ${
|
|
56
|
+
background-color: ${qu.backgroundColor};
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
60
|
-
background-color: ${
|
|
60
|
+
background-color: ${qu.color};
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
64
|
-
background-color: ${
|
|
64
|
+
background-color: ${ju.backgroundColor};
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
68
|
-
background-color: ${
|
|
68
|
+
background-color: ${ju.color};
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
.ft-ripple .ft-ripple--background {
|
|
@@ -110,30 +110,21 @@
|
|
|
110
110
|
opacity: ${q.opacityContentOnSurfacePressed};
|
|
111
111
|
transform: translate(-50%, -50%) scale(1);
|
|
112
112
|
}
|
|
113
|
-
`});var F=
|
|
113
|
+
`});var F=Hi((O0,Yu)=>{Yu.exports=ftGlobals.litDecorators});var it=Hi((w0,Xu)=>{Xu.exports=ftGlobals.litClassMap});var Zu,ke,Ju,Do,ot,k,Aa=l(()=>{"use strict";Zu=u(b()),ke=u(F()),Ju=u(it()),Do=u(m());yr();ot=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},k=class extends Do.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new Do.Debouncer(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new Do.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:o,y:n}=this.getCoordinates(e),s=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(o!=null?o-s.x:s.width/2),this.originY=Math.round(n!=null?n-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Zu.html`
|
|
114
114
|
<style>
|
|
115
115
|
.ft-ripple .ft-ripple--effect {
|
|
116
116
|
left: ${this.originX}px;
|
|
117
117
|
top: ${this.originY}px;
|
|
118
118
|
}
|
|
119
119
|
</style>
|
|
120
|
-
<div class="${(0,
|
|
120
|
+
<div class="${(0,Ju.classMap)(e)}">
|
|
121
121
|
<div class="ft-ripple--background"></div>
|
|
122
122
|
<div class="ft-ripple--effect"></div>
|
|
123
123
|
</div>
|
|
124
|
-
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>
|
|
125
|
-
\f\r]`,Mo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
126
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),sp=/'/g,ap=/"/g,pp=/^(?:script|style|textarea|title)$/i,$a=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),dp=$a(1),hp=$a(2),fp=$a(3),Fo=Symbol.for("lit-noChange"),xe=Symbol.for("lit-nothing"),lp=new WeakMap,ai=li.createTreeWalker(li,129);Dx=(t,e)=>{let r=t.length-1,i=[],o,n=e===2?"<svg>":e===3?"<math>":"",s=Mo;for(let a=0;a<r;a++){let u=t[a],p,d,h=-1,f=0;for(;f<u.length&&(s.lastIndex=f,d=s.exec(u),d!==null);)f=s.lastIndex,s===Mo?d[1]==="!--"?s=op:d[1]!==void 0?s=np:d[2]!==void 0?(pp.test(d[2])&&(o=RegExp("</"+d[2],"g")),s=si):d[3]!==void 0&&(s=si):s===si?d[0]===">"?(s=o??Mo,h=-1):d[1]===void 0?h=-2:(h=s.lastIndex-d[2].length,p=d[1],s=d[3]===void 0?si:d[3]==='"'?ap:sp):s===ap||s===sp?s=si:s===op||s===np?s=Mo:(s=si,o=void 0);let g=s===si&&t[a+1].startsWith("/>")?" ":"";n+=s===Mo?u+Px:h>=0?(i.push(p),u.slice(0,h)+cp+u.slice(h)+Pr+g):u+Pr+(h===-2?a:g)}return[mp(t,n+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Bo=class t{constructor({strings:e,_$litType$:r},i){let o;this.parts=[];let n=0,s=0,a=e.length-1,u=this.parts,[p,d]=Dx(e,r);if(this.el=t.createElement(p,i),ai.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(o=ai.nextNode())!==null&&u.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(let h of o.getAttributeNames())if(h.endsWith(cp)){let f=d[s++],g=o.getAttribute(h).split(Pr),v=/([.?@])?(.*)/.exec(f);u.push({type:1,index:n,name:v[2],strings:g,ctor:v[1]==="."?wa:v[1]==="?"?Ra:v[1]==="@"?Ta:ji}),o.removeAttribute(h)}else h.startsWith(Pr)&&(u.push({type:6,index:n}),o.removeAttribute(h));if(pp.test(o.tagName)){let h=o.textContent.split(Pr),f=h.length-1;if(f>0){o.textContent=_n?_n.emptyScript:"";for(let g=0;g<f;g++)o.append(h[g],Ln()),ai.nextNode(),u.push({type:2,index:++n});o.append(h[f],Ln())}}}else if(o.nodeType===8)if(o.data===up)u.push({type:2,index:n});else{let h=-1;for(;(h=o.data.indexOf(Pr,h+1))!==-1;)u.push({type:7,index:n}),h+=Pr.length-1}n++}}static createElement(e,r){let i=li.createElement("template");return i.innerHTML=e,i}};Oa=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,o=(e?.creationScope??li).importNode(r,!0);ai.currentNode=o;let n=ai.nextNode(),s=0,a=0,u=i[0];for(;u!==void 0;){if(s===u.index){let p;u.type===2?p=new kn(n,n.nextSibling,this,e):u.type===1?p=new u.ctor(n,u.name,u.strings,this,e):u.type===6&&(p=new _a(n,this,e)),this._$AV.push(p),u=i[++a]}s!==u?.index&&(n=ai.nextNode(),s++)}return ai.currentNode=li,o}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++}},kn=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,o){this.type=2,this._$AH=xe,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=o,this._$Cv=o?.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=Hi(this,e,r),No(e)?e===xe||e==null||e===""?(this._$AH!==xe&&this._$AR(),this._$AH=xe):e!==this._$AH&&e!==Fo&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ix(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!==xe&&No(this._$AH)?this._$AA.nextSibling.data=e:this.T(li.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,o=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Bo.createElement(mp(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(r);else{let n=new Oa(o,this),s=n.u(this.options);n.p(r),this.T(s),this._$AH=n}}_$AC(e){let r=lp.get(e.strings);return r===void 0&&lp.set(e.strings,r=new Bo(e)),r}k(e){ka(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,o=0;for(let n of e)o===r.length?r.push(i=new t(this.O(Ln()),this.O(Ln()),this,this.options)):i=r[o],i._$AI(n),o++;o<r.length&&(this._$AR(i&&i._$AB.nextSibling,o),r.length=o)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},ji=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,o,n){this.type=1,this._$AH=xe,this._$AN=void 0,this.element=e,this.name=r,this._$AM=o,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=xe}_$AI(e,r=this,i,o){let n=this.strings,s=!1;if(n===void 0)e=Hi(this,e,r,0),s=!No(e)||e!==this._$AH&&e!==Fo,s&&(this._$AH=e);else{let a=e,u,p;for(e=n[0],u=0;u<n.length-1;u++)p=Hi(this,a[i+u],r,u),p===Fo&&(p=this._$AH[u]),s||=!No(p)||p!==this._$AH[u],p===xe?e=xe:e!==xe&&(e+=(p??"")+n[u+1]),this._$AH[u]=p}s&&!o&&this.j(e)}j(e){e===xe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},wa=class extends ji{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===xe?void 0:e}},Ra=class extends ji{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==xe)}},Ta=class extends ji{constructor(e,r,i,o,n){super(e,r,i,o,n),this.type=5}_$AI(e,r=this){if((e=Hi(this,e,r,0)??xe)===Fo)return;let i=this._$AH,o=e===xe&&i!==xe||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,n=e!==xe&&(i===xe||o);o&&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)}},_a=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){Hi(this,e)}},Mx=La.litHtmlPolyfillSupport;Mx?.(Bo,kn),(La.litHtmlVersions??=[]).push("3.3.0")});var vp,Nx,Ia,gp,Da,Ma,D0,M0,yp=l(()=>{Pa();vp=Symbol.for(""),Nx=t=>{if(t?.r===vp)return t?._$litStatic$},Ia=t=>({_$litStatic$:t,r:vp}),gp=new Map,Da=t=>(e,...r)=>{let i=r.length,o,n,s=[],a=[],u,p=0,d=!1;for(;p<i;){for(u=e[p];p<i&&(n=r[p],(o=Nx(n))!==void 0);)u+=o+e[++p],d=!0;p!==i&&a.push(n),s.push(u),p++}if(p===i&&s.push(e[i]),d){let h=s.join("$$lit$$");(e=gp.get(h))===void 0&&(s.raw=s,gp.set(h,e=s)),r=a}return t(e,...r)},Ma=Da(dp),D0=Da(hp),M0=Da(fp)});var bp=l(()=>{yp()});var Y,$n=l(()=>{"use strict";(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"})(Y||(Y={}))});var Ot,S,xp,xr,E,Vi,zi,qi,Ki,br,Oe,ht,Wi,Gi,er,Sp,Ep,Cp,Ap,Op,Ir,Dr,wp,Rp,Tp,_p,Ut=l(()=>{"use strict";Ot=c(b()),S=c(m()),xp=S.FtCssVariableFactory.extend("--ft-typography-font-family","",S.designSystemVariables.titleFont),xr=S.FtCssVariableFactory.extend("--ft-typography-font-family","",S.designSystemVariables.contentFont),E={fontFamily:xr,fontSize:S.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:S.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:S.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:S.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:S.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Vi={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-title-font-family","",xp),fontSize:S.FtCssVariableFactory.extend("--ft-typography-title-font-size","",E.fontSize,"20px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",E.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",E.letterSpacing,"0.15px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-title-line-height","",E.lineHeight,"1.2"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",E.textTransform,"inherit")},zi={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",xp),fontSize:S.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",E.fontSize,"14px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",E.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",E.letterSpacing,"0.105px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",E.lineHeight,"1.7"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",E.textTransform,"inherit")},qi={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",xr),fontSize:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",E.fontSize,"16px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",E.fontWeight,"600"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",E.letterSpacing,"0.144px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",E.lineHeight,"1.5"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",E.textTransform,"inherit")},Ki={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",xr),fontSize:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",E.fontSize,"14px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",E.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",E.letterSpacing,"0.098px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",E.lineHeight,"1.7"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",E.textTransform,"inherit")},br={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",xr),fontSize:S.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",E.fontSize,"16px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",E.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",E.letterSpacing,"0.496px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",E.lineHeight,"1.5"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",E.textTransform,"inherit")},Oe={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",xr),fontSize:S.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",E.fontSize,"14px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",E.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",E.letterSpacing,"0.252px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",E.lineHeight,"1.4"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",E.textTransform,"inherit")},ht={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",xr),fontSize:S.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",E.fontSize,"12px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",E.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",E.letterSpacing,"0.396px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",E.lineHeight,"1.33"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",E.textTransform,"inherit")},Wi={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",xr),fontSize:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",E.fontSize,"10px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",E.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",E.letterSpacing,"0.33px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",E.lineHeight,"1.6"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",E.textTransform,"inherit")},Gi={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",xr),fontSize:S.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",E.fontSize,"10px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",E.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",E.letterSpacing,"1.5px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",E.lineHeight,"1.6"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",E.textTransform,"uppercase")},er={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-button-font-family","",xr),fontSize:S.FtCssVariableFactory.extend("--ft-typography-button-font-size","",E.fontSize,"14px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",E.fontWeight,"600"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",E.letterSpacing,"1.246px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-button-line-height","",E.lineHeight,"1.15"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",E.textTransform,"uppercase")},Sp=Ot.css`
|
|
124
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>c=>{a.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(c)},i=r("mouseup","contextmenu"),o=r("touchend","touchcancel"),n=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",o,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",n,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",o,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",n,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,o,n;return r.x!=null?{x:o,y:n}=r:i.touches!=null&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,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()}};k.elementDefinitions={};k.styles=Wu;ot([(0,ke.property)({type:Boolean})],k.prototype,"primary",void 0);ot([(0,ke.property)({type:Boolean})],k.prototype,"secondary",void 0);ot([(0,ke.property)({type:Boolean})],k.prototype,"unbounded",void 0);ot([(0,ke.property)({type:Boolean})],k.prototype,"activated",void 0);ot([(0,ke.property)({type:Boolean})],k.prototype,"selected",void 0);ot([(0,ke.property)({type:Boolean})],k.prototype,"disabled",void 0);ot([(0,ke.state)()],k.prototype,"hovered",void 0);ot([(0,ke.state)()],k.prototype,"focused",void 0);ot([(0,ke.state)()],k.prototype,"pressed",void 0);ot([(0,ke.state)()],k.prototype,"rippling",void 0);ot([(0,ke.state)()],k.prototype,"originX",void 0);ot([(0,ke.state)()],k.prototype,"originY",void 0);ot([(0,ke.query)(".ft-ripple")],k.prototype,"ripple",void 0);ot([(0,ke.query)(".ft-ripple--effect")],k.prototype,"rippleEffect",void 0)});var ep=l(()=>{"use strict"});var tp,rp=l(()=>{"use strict";Aa();tp={"ft-ripple":k}});var ip,op=l(()=>{"use strict";ip=u(m());rp();(0,ip.customElements)(tp)});var Ge=l(()=>{"use strict";Aa();yr();ep();op()});function vp(t,e){if(!Pa(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return np!==void 0?np.createHTML(e):e}function Vi(t,e,r=t,i){if(e===Fo)return e;let o=i!==void 0?r._$Co?.[i]:r._$Cl,n=No(e)?void 0:e._$litDirective$;return o?.constructor!==n&&(o?._$AO?.(!1),n===void 0?o=void 0:(o=new n(t),o._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=o:r._$Cl=o),o!==void 0&&(e=Vi(t,o._$AS(t,e.values),o,i)),e}var ka,_n,np,pp,Ir,dp,Ix,li,Ln,No,Pa,Dx,Oa,Mo,sp,ap,si,lp,cp,hp,$a,fp,mp,gp,Fo,xe,up,ai,Mx,Bo,wa,kn,ji,Ra,Ta,_a,La,Nx,Ia=l(()=>{ka=globalThis,_n=ka.trustedTypes,np=_n?_n.createPolicy("lit-html",{createHTML:t=>t}):void 0,pp="$lit$",Ir=`lit$${Math.random().toFixed(9).slice(2)}$`,dp="?"+Ir,Ix=`<${dp}>`,li=document,Ln=()=>li.createComment(""),No=t=>t===null||typeof t!="object"&&typeof t!="function",Pa=Array.isArray,Dx=t=>Pa(t)||typeof t?.[Symbol.iterator]=="function",Oa=`[
|
|
125
|
+
\f\r]`,Mo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,sp=/-->/g,ap=/>/g,si=RegExp(`>|${Oa}(?:([^\\s"'>=/]+)(${Oa}*=${Oa}*(?:[^
|
|
126
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),lp=/'/g,cp=/"/g,hp=/^(?:script|style|textarea|title)$/i,$a=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),fp=$a(1),mp=$a(2),gp=$a(3),Fo=Symbol.for("lit-noChange"),xe=Symbol.for("lit-nothing"),up=new WeakMap,ai=li.createTreeWalker(li,129);Mx=(t,e)=>{let r=t.length-1,i=[],o,n=e===2?"<svg>":e===3?"<math>":"",s=Mo;for(let a=0;a<r;a++){let c=t[a],p,d,h=-1,f=0;for(;f<c.length&&(s.lastIndex=f,d=s.exec(c),d!==null);)f=s.lastIndex,s===Mo?d[1]==="!--"?s=sp:d[1]!==void 0?s=ap:d[2]!==void 0?(hp.test(d[2])&&(o=RegExp("</"+d[2],"g")),s=si):d[3]!==void 0&&(s=si):s===si?d[0]===">"?(s=o??Mo,h=-1):d[1]===void 0?h=-2:(h=s.lastIndex-d[2].length,p=d[1],s=d[3]===void 0?si:d[3]==='"'?cp:lp):s===cp||s===lp?s=si:s===sp||s===ap?s=Mo:(s=si,o=void 0);let g=s===si&&t[a+1].startsWith("/>")?" ":"";n+=s===Mo?c+Ix:h>=0?(i.push(p),c.slice(0,h)+pp+c.slice(h)+Ir+g):c+Ir+(h===-2?a:g)}return[vp(t,n+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Bo=class t{constructor({strings:e,_$litType$:r},i){let o;this.parts=[];let n=0,s=0,a=e.length-1,c=this.parts,[p,d]=Mx(e,r);if(this.el=t.createElement(p,i),ai.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(o=ai.nextNode())!==null&&c.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(let h of o.getAttributeNames())if(h.endsWith(pp)){let f=d[s++],g=o.getAttribute(h).split(Ir),v=/([.?@])?(.*)/.exec(f);c.push({type:1,index:n,name:v[2],strings:g,ctor:v[1]==="."?Ra:v[1]==="?"?Ta:v[1]==="@"?_a:ji}),o.removeAttribute(h)}else h.startsWith(Ir)&&(c.push({type:6,index:n}),o.removeAttribute(h));if(hp.test(o.tagName)){let h=o.textContent.split(Ir),f=h.length-1;if(f>0){o.textContent=_n?_n.emptyScript:"";for(let g=0;g<f;g++)o.append(h[g],Ln()),ai.nextNode(),c.push({type:2,index:++n});o.append(h[f],Ln())}}}else if(o.nodeType===8)if(o.data===dp)c.push({type:2,index:n});else{let h=-1;for(;(h=o.data.indexOf(Ir,h+1))!==-1;)c.push({type:7,index:n}),h+=Ir.length-1}n++}}static createElement(e,r){let i=li.createElement("template");return i.innerHTML=e,i}};wa=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,o=(e?.creationScope??li).importNode(r,!0);ai.currentNode=o;let n=ai.nextNode(),s=0,a=0,c=i[0];for(;c!==void 0;){if(s===c.index){let p;c.type===2?p=new kn(n,n.nextSibling,this,e):c.type===1?p=new c.ctor(n,c.name,c.strings,this,e):c.type===6&&(p=new La(n,this,e)),this._$AV.push(p),c=i[++a]}s!==c?.index&&(n=ai.nextNode(),s++)}return ai.currentNode=li,o}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++}},kn=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,o){this.type=2,this._$AH=xe,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=o,this._$Cv=o?.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=Vi(this,e,r),No(e)?e===xe||e==null||e===""?(this._$AH!==xe&&this._$AR(),this._$AH=xe):e!==this._$AH&&e!==Fo&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Dx(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!==xe&&No(this._$AH)?this._$AA.nextSibling.data=e:this.T(li.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,o=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Bo.createElement(vp(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(r);else{let n=new wa(o,this),s=n.u(this.options);n.p(r),this.T(s),this._$AH=n}}_$AC(e){let r=up.get(e.strings);return r===void 0&&up.set(e.strings,r=new Bo(e)),r}k(e){Pa(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,o=0;for(let n of e)o===r.length?r.push(i=new t(this.O(Ln()),this.O(Ln()),this,this.options)):i=r[o],i._$AI(n),o++;o<r.length&&(this._$AR(i&&i._$AB.nextSibling,o),r.length=o)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},ji=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,o,n){this.type=1,this._$AH=xe,this._$AN=void 0,this.element=e,this.name=r,this._$AM=o,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=xe}_$AI(e,r=this,i,o){let n=this.strings,s=!1;if(n===void 0)e=Vi(this,e,r,0),s=!No(e)||e!==this._$AH&&e!==Fo,s&&(this._$AH=e);else{let a=e,c,p;for(e=n[0],c=0;c<n.length-1;c++)p=Vi(this,a[i+c],r,c),p===Fo&&(p=this._$AH[c]),s||=!No(p)||p!==this._$AH[c],p===xe?e=xe:e!==xe&&(e+=(p??"")+n[c+1]),this._$AH[c]=p}s&&!o&&this.j(e)}j(e){e===xe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ra=class extends ji{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===xe?void 0:e}},Ta=class extends ji{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==xe)}},_a=class extends ji{constructor(e,r,i,o,n){super(e,r,i,o,n),this.type=5}_$AI(e,r=this){if((e=Vi(this,e,r,0)??xe)===Fo)return;let i=this._$AH,o=e===xe&&i!==xe||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,n=e!==xe&&(i===xe||o);o&&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)}},La=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){Vi(this,e)}},Nx=ka.litHtmlPolyfillSupport;Nx?.(Bo,kn),(ka.litHtmlVersions??=[]).push("3.3.0")});var bp,Fx,Da,yp,Ma,Na,B0,U0,xp=l(()=>{Ia();bp=Symbol.for(""),Fx=t=>{if(t?.r===bp)return t?._$litStatic$},Da=t=>({_$litStatic$:t,r:bp}),yp=new Map,Ma=t=>(e,...r)=>{let i=r.length,o,n,s=[],a=[],c,p=0,d=!1;for(;p<i;){for(c=e[p];p<i&&(n=r[p],(o=Fx(n))!==void 0);)c+=o+e[++p],d=!0;p!==i&&a.push(n),s.push(c),p++}if(p===i&&s.push(e[i]),d){let h=s.join("$$lit$$");(e=yp.get(h))===void 0&&(s.raw=s,yp.set(h,e=s)),r=a}return t(e,...r)},Na=Ma(fp),B0=Ma(mp),U0=Ma(gp)});var Sp=l(()=>{xp()});var Q,Pn=l(()=>{"use strict";(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"})(Q||(Q={}))});var wt,S,Cp,xr,C,zi,qi,Ki,Wi,br,we,ht,Gi,Qi,tr,Ep,Ap,Op,wp,Rp,Dr,Mr,Tp,_p,Lp,kp,Ut=l(()=>{"use strict";wt=u(b()),S=u(m()),Cp=S.FtCssVariableFactory.extend("--ft-typography-font-family","",S.designSystemVariables.titleFont),xr=S.FtCssVariableFactory.extend("--ft-typography-font-family","",S.designSystemVariables.contentFont),C={fontFamily:xr,fontSize:S.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:S.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:S.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:S.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:S.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},zi={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Cp),fontSize:S.FtCssVariableFactory.extend("--ft-typography-title-font-size","",C.fontSize,"20px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",C.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",C.letterSpacing,"0.15px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-title-line-height","",C.lineHeight,"1.2"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",C.textTransform,"inherit")},qi={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Cp),fontSize:S.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",C.fontSize,"14px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",C.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",C.letterSpacing,"0.105px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",C.lineHeight,"1.7"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",C.textTransform,"inherit")},Ki={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",xr),fontSize:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",C.fontSize,"16px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",C.fontWeight,"600"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",C.letterSpacing,"0.144px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",C.lineHeight,"1.5"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",C.textTransform,"inherit")},Wi={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",xr),fontSize:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",C.fontSize,"14px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",C.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",C.letterSpacing,"0.098px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",C.lineHeight,"1.7"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",C.textTransform,"inherit")},br={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",xr),fontSize:S.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",C.fontSize,"16px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",C.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",C.letterSpacing,"0.496px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",C.lineHeight,"1.5"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",C.textTransform,"inherit")},we={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",xr),fontSize:S.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",C.fontSize,"14px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",C.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",C.letterSpacing,"0.252px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",C.lineHeight,"1.4"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",C.textTransform,"inherit")},ht={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",xr),fontSize:S.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",C.fontSize,"12px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",C.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",C.letterSpacing,"0.396px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",C.lineHeight,"1.33"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",C.textTransform,"inherit")},Gi={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",xr),fontSize:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",C.fontSize,"10px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",C.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",C.letterSpacing,"0.33px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",C.lineHeight,"1.6"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",C.textTransform,"inherit")},Qi={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",xr),fontSize:S.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",C.fontSize,"10px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",C.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",C.letterSpacing,"1.5px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",C.lineHeight,"1.6"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",C.textTransform,"uppercase")},tr={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-button-font-family","",xr),fontSize:S.FtCssVariableFactory.extend("--ft-typography-button-font-size","",C.fontSize,"14px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",C.fontWeight,"600"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",C.letterSpacing,"1.246px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-button-line-height","",C.lineHeight,"1.15"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",C.textTransform,"uppercase")},Ep=wt.css`
|
|
127
127
|
.ft-typography--title {
|
|
128
|
-
font-family: ${Vi.fontFamily};
|
|
129
|
-
font-size: ${Vi.fontSize};
|
|
130
|
-
font-weight: ${Vi.fontWeight};
|
|
131
|
-
letter-spacing: ${Vi.letterSpacing};
|
|
132
|
-
line-height: ${Vi.lineHeight};
|
|
133
|
-
text-transform: ${Vi.textTransform};
|
|
134
|
-
}
|
|
135
|
-
`,Ep=Ot.css`
|
|
136
|
-
.ft-typography--title-dense {
|
|
137
128
|
font-family: ${zi.fontFamily};
|
|
138
129
|
font-size: ${zi.fontSize};
|
|
139
130
|
font-weight: ${zi.fontWeight};
|
|
@@ -141,8 +132,8 @@
|
|
|
141
132
|
line-height: ${zi.lineHeight};
|
|
142
133
|
text-transform: ${zi.textTransform};
|
|
143
134
|
}
|
|
144
|
-
`,
|
|
145
|
-
.ft-typography--
|
|
135
|
+
`,Ap=wt.css`
|
|
136
|
+
.ft-typography--title-dense {
|
|
146
137
|
font-family: ${qi.fontFamily};
|
|
147
138
|
font-size: ${qi.fontSize};
|
|
148
139
|
font-weight: ${qi.fontWeight};
|
|
@@ -150,8 +141,8 @@
|
|
|
150
141
|
line-height: ${qi.lineHeight};
|
|
151
142
|
text-transform: ${qi.textTransform};
|
|
152
143
|
}
|
|
153
|
-
`,
|
|
154
|
-
.ft-typography--
|
|
144
|
+
`,Op=wt.css`
|
|
145
|
+
.ft-typography--subtitle1 {
|
|
155
146
|
font-family: ${Ki.fontFamily};
|
|
156
147
|
font-size: ${Ki.fontSize};
|
|
157
148
|
font-weight: ${Ki.fontWeight};
|
|
@@ -159,8 +150,17 @@
|
|
|
159
150
|
line-height: ${Ki.lineHeight};
|
|
160
151
|
text-transform: ${Ki.textTransform};
|
|
161
152
|
}
|
|
153
|
+
`,wp=wt.css`
|
|
154
|
+
.ft-typography--subtitle2 {
|
|
155
|
+
font-family: ${Wi.fontFamily};
|
|
156
|
+
font-size: ${Wi.fontSize};
|
|
157
|
+
font-weight: ${Wi.fontWeight};
|
|
158
|
+
letter-spacing: ${Wi.letterSpacing};
|
|
159
|
+
line-height: ${Wi.lineHeight};
|
|
160
|
+
text-transform: ${Wi.textTransform};
|
|
161
|
+
}
|
|
162
162
|
|
|
163
|
-
`,
|
|
163
|
+
`,Rp=wt.css`
|
|
164
164
|
.ft-typography--body1 {
|
|
165
165
|
font-family: ${br.fontFamily};
|
|
166
166
|
font-size: ${br.fontSize};
|
|
@@ -169,16 +169,16 @@
|
|
|
169
169
|
line-height: ${br.lineHeight};
|
|
170
170
|
text-transform: ${br.textTransform};
|
|
171
171
|
}
|
|
172
|
-
`,
|
|
172
|
+
`,Dr=wt.css`
|
|
173
173
|
.ft-typography--body2 {
|
|
174
|
-
font-family: ${
|
|
175
|
-
font-size: ${
|
|
176
|
-
font-weight: ${
|
|
177
|
-
letter-spacing: ${
|
|
178
|
-
line-height: ${
|
|
179
|
-
text-transform: ${
|
|
180
|
-
}
|
|
181
|
-
`,
|
|
174
|
+
font-family: ${we.fontFamily};
|
|
175
|
+
font-size: ${we.fontSize};
|
|
176
|
+
font-weight: ${we.fontWeight};
|
|
177
|
+
letter-spacing: ${we.letterSpacing};
|
|
178
|
+
line-height: ${we.lineHeight};
|
|
179
|
+
text-transform: ${we.textTransform};
|
|
180
|
+
}
|
|
181
|
+
`,Mr=wt.css`
|
|
182
182
|
.ft-typography--caption {
|
|
183
183
|
font-family: ${ht.fontFamily};
|
|
184
184
|
font-size: ${ht.fontSize};
|
|
@@ -187,17 +187,8 @@
|
|
|
187
187
|
line-height: ${ht.lineHeight};
|
|
188
188
|
text-transform: ${ht.textTransform};
|
|
189
189
|
}
|
|
190
|
-
`,
|
|
190
|
+
`,Tp=wt.css`
|
|
191
191
|
.ft-typography--breadcrumb {
|
|
192
|
-
font-family: ${Wi.fontFamily};
|
|
193
|
-
font-size: ${Wi.fontSize};
|
|
194
|
-
font-weight: ${Wi.fontWeight};
|
|
195
|
-
letter-spacing: ${Wi.letterSpacing};
|
|
196
|
-
line-height: ${Wi.lineHeight};
|
|
197
|
-
text-transform: ${Wi.textTransform};
|
|
198
|
-
}
|
|
199
|
-
`,Rp=Ot.css`
|
|
200
|
-
.ft-typography--overline {
|
|
201
192
|
font-family: ${Gi.fontFamily};
|
|
202
193
|
font-size: ${Gi.fontSize};
|
|
203
194
|
font-weight: ${Gi.fontWeight};
|
|
@@ -205,28 +196,37 @@
|
|
|
205
196
|
line-height: ${Gi.lineHeight};
|
|
206
197
|
text-transform: ${Gi.textTransform};
|
|
207
198
|
}
|
|
208
|
-
`,
|
|
199
|
+
`,_p=wt.css`
|
|
200
|
+
.ft-typography--overline {
|
|
201
|
+
font-family: ${Qi.fontFamily};
|
|
202
|
+
font-size: ${Qi.fontSize};
|
|
203
|
+
font-weight: ${Qi.fontWeight};
|
|
204
|
+
letter-spacing: ${Qi.letterSpacing};
|
|
205
|
+
line-height: ${Qi.lineHeight};
|
|
206
|
+
text-transform: ${Qi.textTransform};
|
|
207
|
+
}
|
|
208
|
+
`,Lp=wt.css`
|
|
209
209
|
.ft-typography--button {
|
|
210
|
-
font-family: ${
|
|
211
|
-
font-size: ${
|
|
212
|
-
font-weight: ${
|
|
213
|
-
letter-spacing: ${
|
|
214
|
-
line-height: ${
|
|
215
|
-
text-transform: ${
|
|
216
|
-
}
|
|
217
|
-
`,
|
|
210
|
+
font-family: ${tr.fontFamily};
|
|
211
|
+
font-size: ${tr.fontSize};
|
|
212
|
+
font-weight: ${tr.fontWeight};
|
|
213
|
+
letter-spacing: ${tr.letterSpacing};
|
|
214
|
+
line-height: ${tr.lineHeight};
|
|
215
|
+
text-transform: ${tr.textTransform};
|
|
216
|
+
}
|
|
217
|
+
`,kp=wt.css`
|
|
218
218
|
.ft-typography {
|
|
219
219
|
vertical-align: inherit;
|
|
220
220
|
}
|
|
221
|
-
`});var
|
|
222
|
-
<${
|
|
221
|
+
`});var Fa,$p,Pp,V,Ba=l(()=>{"use strict";Sp();Fa=u(F()),$p=u(m());Pn();Ut();Pp=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},V=class extends $p.FtLitElement{constructor(){super(...arguments),this.variant=Q.body1}render(){return this.element?Na`
|
|
222
|
+
<${Da(this.element)}
|
|
223
223
|
part="text"
|
|
224
224
|
class="ft-typography ft-typography--${this.variant}">
|
|
225
225
|
<slot></slot>
|
|
226
|
-
</${
|
|
227
|
-
`:
|
|
226
|
+
</${Da(this.element)}>
|
|
227
|
+
`:Na`
|
|
228
228
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
229
|
-
`}};
|
|
229
|
+
`}};V.styles=[Ep,Ap,Op,wp,Rp,Dr,Mr,Tp,_p,Lp,kp];Pp([(0,Fa.property)()],V.prototype,"element",void 0);Pp([(0,Fa.property)()],V.prototype,"variant",void 0)});var Ip,Dp=l(()=>{"use strict";Ba();Ip={"ft-typography":V}});var Mp,Np=l(()=>{"use strict";Mp=u(m());Dp();(0,Mp.customElements)(Ip)});var me=l(()=>{"use strict";Ba();Ut();Pn();Np()});var Fp,Nr,Uo,Bp,Ua=l(()=>{"use strict";Fp=u(b()),Nr=u(m()),Uo={distance:Nr.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Nr.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Nr.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:Nr.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",Nr.designSystemVariables.borderRadiusS),maxWidth:Nr.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Bp=Fp.css`
|
|
230
230
|
.ft-tooltip--container {
|
|
231
231
|
display: block;
|
|
232
232
|
}
|
|
@@ -257,15 +257,15 @@
|
|
|
257
257
|
position: relative;
|
|
258
258
|
word-break: break-word;
|
|
259
259
|
}
|
|
260
|
-
`});function ja(t,e,r){return Nr(t,Ho(e,r))}function Pn(t,e){return typeof t=="function"?t(e):t}function Qi(t){return t.split("-")[0]}function Fr(t){return t.split("-")[1]}function Va(t){return t==="x"?"y":"x"}function za(t){return t==="y"?"height":"width"}function In(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function qa(t){return Va(In(t))}function Up(t,e,r){r===void 0&&(r=!1);let i=Fr(t),o=qa(t),n=za(o),s=o==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[n]>e.floating[n]&&(s=Ua(s)),[s,Ua(s)]}function Hp(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Ua(t){let e=Qi(t);return Fx[e]+t.slice(e.length)}function Bx(t){return{top:0,right:0,bottom:0,left:0,...t}}function jp(t){return typeof t!="number"?Bx(t):{top:t,right:t,bottom:t,left:t}}function ci(t){let{x:e,y:r,width:i,height:o}=t;return{width:i,height:o,top:r,left:e,right:e+i,bottom:r+o,x:e,y:r}}var Bp,Fp,Ha,Ho,Nr,jo,Ht,Fx,Dn=l(()=>{Bp=["top","right","bottom","left"],Fp=["start","end"],Ha=Bp.reduce((t,e)=>t.concat(e,e+"-"+Fp[0],e+"-"+Fp[1]),[]),Ho=Math.min,Nr=Math.max,jo=Math.round,Ht=t=>({x:t,y:t}),Fx={left:"right",right:"left",bottom:"top",top:"bottom"}});function Vp(t,e,r){let{reference:i,floating:o}=t,n=In(e),s=qa(e),a=za(s),u=Qi(e),p=n==="y",d=i.x+i.width/2-o.width/2,h=i.y+i.height/2-o.height/2,f=i[a]/2-o[a]/2,g;switch(u){case"top":g={x:d,y:i.y-o.height};break;case"bottom":g={x:d,y:i.y+i.height};break;case"right":g={x:i.x+i.width,y:h};break;case"left":g={x:i.x-o.width,y:h};break;default:g={x:i.x,y:i.y}}switch(Fr(e)){case"start":g[s]-=f*(r&&p?-1:1);break;case"end":g[s]+=f*(r&&p?-1:1);break}return g}async function zp(t,e){var r;e===void 0&&(e={});let{x:i,y:o,platform:n,rects:s,elements:a,strategy:u}=t,{boundary:p="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:f=!1,padding:g=0}=Pn(e,t),v=jp(g),C=a[f?h==="floating"?"reference":"floating":h],A=ci(await n.getClippingRect({element:(r=await(n.isElement==null?void 0:n.isElement(C)))==null||r?C:C.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(a.floating)),boundary:p,rootBoundary:d,strategy:u})),O=h==="floating"?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,P=await(n.getOffsetParent==null?void 0:n.getOffsetParent(a.floating)),I=await(n.isElement==null?void 0:n.isElement(P))?await(n.getScale==null?void 0:n.getScale(P))||{x:1,y:1}:{x:1,y:1},Ae=ci(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:O,offsetParent:P,strategy:u}):O);return{top:(A.top-Ae.top+v.top)/I.y,bottom:(Ae.bottom-A.bottom+v.bottom)/I.y,left:(A.left-Ae.left+v.left)/I.x,right:(Ae.right-A.right+v.right)/I.x}}function Hx(t,e,r){return(t?[...r.filter(o=>Fr(o)===t),...r.filter(o=>Fr(o)!==t)]:r.filter(o=>Qi(o)===o)).filter(o=>t?Fr(o)===t||(e?Hp(o)!==o:!1):!0)}var Ux,qp,Kp,Wp,Gp=l(()=>{Dn();Dn();Ux=50,qp=async(t,e,r)=>{let{placement:i="bottom",strategy:o="absolute",middleware:n=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:zp},u=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:d,y:h}=Vp(p,i,u),f=i,g=0,v={};for(let y=0;y<n.length;y++){let C=n[y];if(!C)continue;let{name:A,fn:O}=C,{x:P,y:I,data:Ae,reset:ye}=await O({x:d,y:h,initialPlacement:i,placement:f,strategy:o,middlewareData:v,rects:p,platform:a,elements:{reference:t,floating:e}});d=P??d,h=I??h,v[A]={...v[A],...Ae},ye&&g<Ux&&(g++,typeof ye=="object"&&(ye.placement&&(f=ye.placement),ye.rects&&(p=ye.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:o}):ye.rects),{x:d,y:h}=Vp(p,f,u)),y=-1)}return{x:d,y:h,placement:f,strategy:o,middlewareData:v}};Kp=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,o;let{rects:n,middlewareData:s,placement:a,platform:u,elements:p}=e,{crossAxis:d=!1,alignment:h,allowedPlacements:f=Ha,autoAlignment:g=!0,...v}=Pn(t,e),y=h!==void 0||f===Ha?Hx(h||null,g,f):f,C=await u.detectOverflow(e,v),A=((r=s.autoPlacement)==null?void 0:r.index)||0,O=y[A];if(O==null)return{};let P=Up(O,n,await(u.isRTL==null?void 0:u.isRTL(p.floating)));if(a!==O)return{reset:{placement:y[0]}};let I=[C[Qi(O)],C[P[0]],C[P[1]]],Ae=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:O,overflows:I}],ye=y[A+1];if(ye)return{data:{index:A+1,overflows:Ae},reset:{placement:ye}};let kr=Ae.map(pt=>{let At=Fr(pt.placement);return[pt.placement,At&&d?pt.overflows.slice(0,2).reduce((dt,oi)=>dt+oi,0):pt.overflows[0],pt.overflows]}).sort((pt,At)=>pt[1]-At[1]),$r=((o=kr.filter(pt=>pt[2].slice(0,Fr(pt[0])?2:3).every(At=>At<=0))[0])==null?void 0:o[0])||kr[0][0];return $r!==a?{data:{index:A+1,overflows:Ae},reset:{placement:$r}}:{}}}},Wp=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:o,platform:n}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:u={fn:A=>{let{x:O,y:P}=A;return{x:O,y:P}}},...p}=Pn(t,e),d={x:r,y:i},h=await n.detectOverflow(e,p),f=In(Qi(o)),g=Va(f),v=d[g],y=d[f];if(s){let A=g==="y"?"top":"left",O=g==="y"?"bottom":"right",P=v+h[A],I=v-h[O];v=ja(P,v,I)}if(a){let A=f==="y"?"top":"left",O=f==="y"?"bottom":"right",P=y+h[A],I=y-h[O];y=ja(P,y,I)}let C=u.fn({...e,[g]:v,[f]:y});return{...C,data:{x:C.x-r,y:C.y-i,enabled:{[g]:s,[f]:a}}}}}}});function Nn(){return typeof window<"u"}function pi(t){return Yp(t)?(t.nodeName||"").toLowerCase():"#document"}function ot(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function tr(t){var e;return(e=(Yp(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Yp(t){return Nn()?t instanceof Node||t instanceof ot(t).Node:!1}function wt(t){return Nn()?t instanceof Element||t instanceof ot(t).Element:!1}function rr(t){return Nn()?t instanceof HTMLElement||t instanceof ot(t).HTMLElement:!1}function Qp(t){return!Nn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ot(t).ShadowRoot}function Yi(t){let{overflow:e,overflowX:r,overflowY:i,display:o}=Rt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&o!=="inline"&&o!=="contents"}function Xp(t){return/^(table|td|th)$/.test(pi(t))}function Vo(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}function Xi(t){let e=wt(t)?Rt(t):t;return ui(e.transform)||ui(e.translate)||ui(e.scale)||ui(e.rotate)||ui(e.perspective)||!Fn()&&(ui(e.backdropFilter)||ui(e.filter))||jx.test(e.willChange||"")||Vx.test(e.contain||"")}function Zp(t){let e=Sr(t);for(;rr(e)&&!di(e);){if(Xi(e))return e;if(Vo(e))return null;e=Sr(e)}return null}function Fn(){return Ka==null&&(Ka=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ka}function di(t){return/^(html|body|#document)$/.test(pi(t))}function Rt(t){return ot(t).getComputedStyle(t)}function zo(t){return wt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Sr(t){if(pi(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Qp(t)&&t.host||tr(t);return Qp(e)?e.host:e}function Jp(t){let e=Sr(t);return di(e)?t.ownerDocument?t.ownerDocument.body:t.body:rr(e)&&Yi(e)?e:Jp(e)}function Mn(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let o=Jp(t),n=o===((i=t.ownerDocument)==null?void 0:i.body),s=ot(o);if(n){let a=Bn(s);return e.concat(s,s.visualViewport||[],Yi(o)?o:[],a&&r?Mn(a):[])}else return e.concat(o,Mn(o,[],r))}function Bn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}var jx,Vx,ui,Ka,Wa=l(()=>{jx=/transform|translate|scale|rotate|perspective|filter/,Vx=/paint|layout|strict|content/,ui=t=>!!t&&t!=="none"});function id(t){let e=Rt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,o=rr(t),n=o?t.offsetWidth:r,s=o?t.offsetHeight:i,a=jo(r)!==n||jo(i)!==s;return a&&(r=n,i=s),{width:r,height:i,$:a}}function od(t){return wt(t)?t:t.contextElement}function Zi(t){let e=od(t);if(!rr(e))return Ht(1);let r=e.getBoundingClientRect(),{width:i,height:o,$:n}=id(e),s=(n?jo(r.width):r.width)/i,a=(n?jo(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}function nd(t){let e=ot(t);return!Fn()||!e.visualViewport?zx:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function qx(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==ot(t)?!1:e}function qo(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let o=t.getBoundingClientRect(),n=od(t),s=Ht(1);e&&(i?wt(i)&&(s=Zi(i)):s=Zi(t));let a=qx(n,r,i)?nd(n):Ht(0),u=(o.left+a.x)/s.x,p=(o.top+a.y)/s.y,d=o.width/s.x,h=o.height/s.y;if(n){let f=ot(n),g=i&&wt(i)?ot(i):i,v=f,y=Bn(v);for(;y&&i&&g!==v;){let C=Zi(y),A=y.getBoundingClientRect(),O=Rt(y),P=A.left+(y.clientLeft+parseFloat(O.paddingLeft))*C.x,I=A.top+(y.clientTop+parseFloat(O.paddingTop))*C.y;u*=C.x,p*=C.y,d*=C.x,h*=C.y,u+=P,p+=I,v=ot(y),y=Bn(v)}}return ci({width:d,height:h,x:u,y:p})}function Un(t,e){let r=zo(t).scrollLeft;return e?e.left+r:qo(tr(t)).left+r}function sd(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Un(t,r),o=r.top+e.scrollTop;return{x:i,y:o}}function Kx(t){let{elements:e,rect:r,offsetParent:i,strategy:o}=t,n=o==="fixed",s=tr(i),a=e?Vo(e.floating):!1;if(i===s||a&&n)return r;let u={scrollLeft:0,scrollTop:0},p=Ht(1),d=Ht(0),h=rr(i);if((h||!h&&!n)&&((pi(i)!=="body"||Yi(s))&&(u=zo(i)),h)){let g=qo(i);p=Zi(i),d.x=g.x+i.clientLeft,d.y=g.y+i.clientTop}let f=s&&!h&&!n?sd(s,u):Ht(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-u.scrollLeft*p.x+d.x+f.x,y:r.y*p.y-u.scrollTop*p.y+d.y+f.y}}function Wx(t){return Array.from(t.getClientRects())}function Gx(t){let e=tr(t),r=zo(t),i=t.ownerDocument.body,o=Nr(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=Nr(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+Un(t),a=-r.scrollTop;return Rt(i).direction==="rtl"&&(s+=Nr(e.clientWidth,i.clientWidth)-o),{width:o,height:n,x:s,y:a}}function Qx(t,e){let r=ot(t),i=tr(t),o=r.visualViewport,n=i.clientWidth,s=i.clientHeight,a=0,u=0;if(o){n=o.width,s=o.height;let d=Fn();(!d||d&&e==="fixed")&&(a=o.offsetLeft,u=o.offsetTop)}let p=Un(i);if(p<=0){let d=i.ownerDocument,h=d.body,f=getComputedStyle(h),g=d.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,v=Math.abs(i.clientWidth-h.clientWidth-g);v<=ed&&(n-=v)}else p<=ed&&(n+=p);return{width:n,height:s,x:a,y:u}}function Yx(t,e){let r=qo(t,!0,e==="fixed"),i=r.top+t.clientTop,o=r.left+t.clientLeft,n=rr(t)?Zi(t):Ht(1),s=t.clientWidth*n.x,a=t.clientHeight*n.y,u=o*n.x,p=i*n.y;return{width:s,height:a,x:u,y:p}}function td(t,e,r){let i;if(e==="viewport")i=Qx(t,r);else if(e==="document")i=Gx(tr(t));else if(wt(e))i=Yx(e,r);else{let o=nd(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return ci(i)}function ad(t,e){let r=Sr(t);return r===e||!wt(r)||di(r)?!1:Rt(r).position==="fixed"||ad(r,e)}function Xx(t,e){let r=e.get(t);if(r)return r;let i=Mn(t,[],!1).filter(a=>wt(a)&&pi(a)!=="body"),o=null,n=Rt(t).position==="fixed",s=n?Sr(t):t;for(;wt(s)&&!di(s);){let a=Rt(s),u=Xi(s);!u&&a.position==="fixed"&&(o=null),(n?!u&&!o:!u&&a.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||Yi(s)&&!u&&ad(t,s))?i=i.filter(d=>d!==s):o=a,s=Sr(s)}return e.set(t,i),i}function Zx(t){let{element:e,boundary:r,rootBoundary:i,strategy:o}=t,s=[...r==="clippingAncestors"?Vo(e)?[]:Xx(e,this._c):[].concat(r),i],a=td(e,s[0],o),u=a.top,p=a.right,d=a.bottom,h=a.left;for(let f=1;f<s.length;f++){let g=td(e,s[f],o);u=Nr(g.top,u),p=Ho(g.right,p),d=Ho(g.bottom,d),h=Nr(g.left,h)}return{width:p-h,height:d-u,x:h,y:u}}function Jx(t){let{width:e,height:r}=id(t);return{width:e,height:r}}function eS(t,e,r){let i=rr(e),o=tr(e),n=r==="fixed",s=qo(t,!0,n,e),a={scrollLeft:0,scrollTop:0},u=Ht(0);function p(){u.x=Un(o)}if(i||!i&&!n)if((pi(e)!=="body"||Yi(o))&&(a=zo(e)),i){let g=qo(e,!0,n,e);u.x=g.x+e.clientLeft,u.y=g.y+e.clientTop}else o&&p();n&&!i&&o&&p();let d=o&&!i&&!n?sd(o,a):Ht(0),h=s.left+a.scrollLeft-u.x-d.x,f=s.top+a.scrollTop-u.y-d.y;return{x:h,y:f,width:s.width,height:s.height}}function Ga(t){return Rt(t).position==="static"}function rd(t,e){if(!rr(t)||Rt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return tr(t)===r&&(r=r.ownerDocument.body),r}function ld(t,e){let r=ot(t);if(Vo(t))return r;if(!rr(t)){let o=Sr(t);for(;o&&!di(o);){if(wt(o)&&!Ga(o))return o;o=Sr(o)}return r}let i=rd(t,e);for(;i&&Xp(i)&&Ga(i);)i=rd(i,e);return i&&di(i)&&Ga(i)&&!Xi(i)?r:i||Zp(t)||r}function rS(t){return Rt(t).direction==="rtl"}var zx,ed,tS,Hn,cd,ud,pd,dd=l(()=>{Gp();Dn();Wa();zx=Ht(0);ed=25;tS=async function(t){let e=this.getOffsetParent||ld,r=this.getDimensions,i=await r(t.floating);return{reference:eS(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};Hn={convertOffsetParentRelativeRectToViewportRelativeRect:Kx,getDocumentElement:tr,getClippingRect:Zx,getOffsetParent:ld,getElementRects:tS,getClientRects:Wx,getDimensions:Jx,getScale:Zi,isElement:wt,isRTL:rS},cd=Kp,ud=Wp,pd=(t,e,r)=>{let i=new Map,o={platform:Hn,...r},n={...o.platform,_c:i};return qp(t,e,{...o,platform:n})}});function hd(t){return iS(t)}function Qa(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function iS(t){for(let e=t;e;e=Qa(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Qa(t);e;e=Qa(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Xi(r)||e.tagName==="BODY"))return e}return null}var fd=l(()=>{Wa()});async function md(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},pd(t,e,{strategy:i.strategy,platform:{...Hn,getOffsetParent:o=>Hn.getOffsetParent(o,hd)},middleware:[ud({crossAxis:!0}),cd({allowedPlacements:[i.placement]})]})}var gd=l(()=>{"use strict";dd();fd()});function yd(t,e){return(0,vd.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Ko(t);try{return JSON.parse(r)}catch{return Ko(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Wo,...e??{}})}var vd,Ya,jn=l(()=>{"use strict";vd=c(F(),1);hi();Ya=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)}});function oS(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(!Vn(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(!Vn(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 o=s=>Object.keys(s).filter(a=>s[a]!=null),n=o(t);if(r=n.length,r!==o(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 s=n[i];if(!Vn(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Vn(t,e){try{return oS(t,e)}catch{return!1}}function Wo(t,e){return!Vn(t,e)}function Ko(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function zn(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let o=e(i);return o[t]=!0,o}}var hi=l(()=>{"use strict";jn()});var bd,Xa,xd=l(()=>{"use strict";hi();bd=c(F(),1),Xa=t=>{let e=t??{};return(r,i)=>{var o;let n={hasChanged:Wo,attribute:!1,...e};(0,bd.property)(n)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(o=e.selector)!==null&&o!==void 0?o:(a=>a[i]),store:e.store})}}});var qn,Za=l(()=>{"use strict";qn=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 Kn,Sd=l(()=>{"use strict";Kn=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 o=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),n=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of i)try{await s()}catch(a){o(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 Wn,nS,Ed,Cd=l(()=>{Wn=globalThis,nS=Wn.ShadowRoot&&(Wn.ShadyCSS===void 0||Wn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ed=(t,e)=>{if(nS)t.adoptedStyleSheets=e.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(let r of e){let i=document.createElement("style"),o=Wn.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=r.cssText,t.appendChild(i)}}});var Ad,Gn,Od=l(()=>{"use strict";Ad=c(b(),1);Cd();jn();Gn=class extends Ad.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 Ed(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){Ya(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 wd(t,e,...r){var i;let o=t.querySelector(e);for(let n of r)o=(i=o?.shadowRoot)===null||i===void 0?void 0:i.querySelector(n);return o}var Rd=l(()=>{"use strict"});var fi,eo,kd,Td,_d,$d,Ld,Ji,ir,Pd=l(()=>{"use strict";fi=c(F(),1);jn();Sd();Od();Rd();eo=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Td=Symbol("constructorPrototype"),_d=Symbol("constructorName"),$d=Symbol("exportpartsDebouncer"),Ld=Symbol("dynamicDependenciesLoaded"),Ji=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Ji.eventName="exportparts-updated";ir=class extends Gn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[kd]=new Kn(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[$d].run(()=>{var o,n;!((o=this.exportpartsPrefix)===null||o===void 0)&&o.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[_d]=this.constructor.name,this[Td]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[_d]&&Object.setPrototypeOf(this,this[Td])}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[Ld]||(r[Ld]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Ji.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Ji.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 Ji)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:o}=this.elementToFocus;if(i!=null){let n=[...o??[],i];r=wd(this.shadowRoot,...n)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,o;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((o=this.customStylesheet)!==null&&o!==void 0?o:"")}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,o,n,s,a;let u=f=>f!=null&&f.trim().length>0,p=e.filter(u).map(f=>f.trim());if(p.length===0){this.exportparts=void 0;return}let d=new Set;for(let f of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let g=(n=(o=f.getAttribute("part"))===null||o===void 0?void 0:o.split(" "))!==null&&n!==void 0?n:[],v=(a=(s=f.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(C=>C.split(":")[1]))!==null&&a!==void 0?a:[],y=[...g,...v].filter(u).map(C=>C.trim());for(let C of y)d.add(C)}if(d.size===0){this.exportparts=void 0;return}let h=[...d.values()].flatMap(f=>p.map(g=>`${f}:${g}--${f}`));this.exportparts=[...this.part,...h].join(", ")}};kd=$d;eo([(0,fi.property)()],ir.prototype,"exportpartsPrefix",void 0);eo([yd([])],ir.prototype,"exportpartsPrefixes",void 0);eo([(0,fi.property)({reflect:!0})],ir.prototype,"exportparts",void 0);eo([(0,fi.property)()],ir.prototype,"customStylesheet",void 0);eo([(0,fi.property)()],ir.prototype,"elementToFocus",void 0);eo([(0,fi.state)()],ir.prototype,"useAdoptedStyleSheets",void 0)});function Qn(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Yn=l(()=>{"use strict"});var Go,Br,mi,sS,Id,Dd=l(()=>{"use strict";Pd();Yn();hi();Go=Symbol("internalReduxEventsUnsubscribers"),Br=Symbol("internalStoresUnsubscribers"),mi=Symbol("internalStores"),sS=zn(Symbol("withRedux"),function(t){var e,r,i;class o extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[mi].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[mi].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[mi].get(s)}addStore(s,a){var u;a=(u=a??s.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(a),this[mi].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[mi].delete(a)}setupStores(){this.unsubscribeFromStores(),this[mi].forEach((s,a)=>this.subscribeToStore(a,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,a)=>{let u=this.constructor.getPropertyOptions(a);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:a)){let p=this.getStore(s.store);p&&(s.store?this[Br].has(s.store):this[Br].size>0)&&(this[a]=s.selector(p.getState(),this))}})}subscribeToStore(s,a){var u;this[Br].set(s,a.subscribe(()=>this.updateFromStores())),this[Go].set(s,[]),Qn(a)&&a.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,d)=>{if(typeof this[d]=="function"&&(!p.store||a.name===p.store)){let h=f=>this[d](f);a.addEventListener(p.eventName,h),this[Go].get(s).push(()=>a.removeEventListener(p.eventName,h))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Br].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[Br].has(s)&&this[Br].get(s)(),this[Br].delete(s),(a=this[Go].get(s))===null||a===void 0||a.forEach(u=>u()),this[Go].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Br,r=mi,i=Go,o.reduxProperties=new Map,o.reduxReactiveProperties=new Set,o.reduxEventListeners=new Map,o}),Id=class extends sS(ir){}});function Tt(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];if(0)var o,n;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map((function(s){return"'"+s+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Er(t){return!!t&&!!t[ce]}function jt(t){var e;return!!t&&((function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var o=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===fS})(t)||Array.isArray(t)||!!t[jd]||!!(!((e=t.constructor)===null||e===void 0)&&e[jd])||al(t)||ll(t))}function gi(t,e,r){r===void 0&&(r=!1),io(t)===0?(r?Object.keys:ro)(t).forEach((function(i){r&&typeof i=="symbol"||e(i,t[i],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function io(t){var e=t[ce];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:al(t)?2:ll(t)?3:0}function to(t,e){return io(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function aS(t,e){return io(t)===2?t.get(e):t[e]}function Vd(t,e,r){var i=io(t);i===2?t.set(e,r):i===3?t.add(r):t[e]=r}function zd(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function al(t){return dS&&t instanceof Map}function ll(t){return hS&&t instanceof Set}function Ur(t){return t.o||t.t}function cl(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Wd(t);delete e[ce];for(var r=ro(e),i=0;i<r.length;i++){var o=r[i],n=e[o];n.writable===!1&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[o]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function ul(t,e){return e===void 0&&(e=!1),pl(t)||Er(t)||!jt(t)||(io(t)>1&&(t.set=t.add=t.clear=t.delete=lS),Object.freeze(t),e&&gi(t,(function(r,i){return ul(i,!0)}),!0)),t}function lS(){Tt(2)}function pl(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function or(t){var e=sl[t];return e||Tt(18,t),e}function cS(t,e){sl[t]||(sl[t]=e)}function il(){return Yo}function Ja(t,e){e&&(or("Patches"),t.u=[],t.s=[],t.v=e)}function Xn(t){ol(t),t.p.forEach(uS),t.p=null}function ol(t){t===Yo&&(Yo=t.l)}function Md(t){return Yo={p:[],l:Yo,h:t,m:!0,_:0}}function uS(t){var e=t[ce];e.i===0||e.i===1?e.j():e.g=!0}function el(t,e){e._=e.p.length;var r=e.p[0],i=t!==void 0&&t!==r;return e.h.O||or("ES5").S(e,t,i),i?(r[ce].P&&(Xn(e),Tt(4)),jt(t)&&(t=Zn(e,t),e.l||Jn(e,t)),e.u&&or("Patches").M(r[ce].t,t,e.u,e.s)):t=Zn(e,r,[]),Xn(e),e.u&&e.v(e.u,e.s),t!==Kd?t:void 0}function Zn(t,e,r){if(pl(e))return e;var i=e[ce];if(!i)return gi(e,(function(a,u){return Nd(t,i,e,a,u,r)}),!0),e;if(i.A!==t)return e;if(!i.P)return Jn(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var o=i.i===4||i.i===5?i.o=cl(i.k):i.o,n=o,s=!1;i.i===3&&(n=new Set(o),o.clear(),s=!0),gi(n,(function(a,u){return Nd(t,i,o,a,u,r,s)})),Jn(t,o,!1),r&&t.u&&or("Patches").N(i,r,t.u,t.s)}return i.o}function Nd(t,e,r,i,o,n,s){if(Er(o)){var a=Zn(t,o,n&&e&&e.i!==3&&!to(e.R,i)?n.concat(i):void 0);if(Vd(r,i,a),!Er(a))return;t.m=!1}else s&&r.add(o);if(jt(o)&&!pl(o)){if(!t.h.D&&t._<1)return;Zn(t,o),e&&e.A.l||Jn(t,o)}}function Jn(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&ul(e,r)}function tl(t,e){var r=t[ce];return(r?Ur(r):t)[e]}function Fd(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Object.getPrototypeOf(r)}}function Hr(t){t.P||(t.P=!0,t.l&&Hr(t.l))}function rl(t){t.o||(t.o=cl(t.t))}function nl(t,e,r){var i=al(e)?or("MapSet").F(e,r):ll(e)?or("MapSet").T(e,r):t.O?(function(o,n){var s=Array.isArray(o),a={i:s?1:0,A:n?n.A:il(),P:!1,I:!1,R:{},l:n,t:o,k:null,o:null,j:null,C:!1},u=a,p=Xo;s&&(u=[a],p=Qo);var d=Proxy.revocable(u,p),h=d.revoke,f=d.proxy;return a.k=f,a.j=h,f})(e,r):or("ES5").J(e,r);return(r?r.A:il()).p.push(i),i}function pS(t){return Er(t)||Tt(22,t),(function e(r){if(!jt(r))return r;var i,o=r[ce],n=io(r);if(o){if(!o.P&&(o.i<4||!or("ES5").K(o)))return o.t;o.I=!0,i=Bd(r,n),o.I=!1}else i=Bd(r,n);return gi(i,(function(s,a){o&&aS(o.t,s)===a||Vd(i,s,e(a))})),n===3?new Set(i):i})(t)}function Bd(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return cl(t)}function qd(){function t(s,a){var u=n[s];return u?u.enumerable=a:n[s]=u={configurable:!0,enumerable:a,get:function(){var p=this[ce];return Xo.get(p,s)},set:function(p){var d=this[ce];Xo.set(d,s,p)}},u}function e(s){for(var a=s.length-1;a>=0;a--){var u=s[a][ce];if(!u.P)switch(u.i){case 5:i(u)&&Hr(u);break;case 4:r(u)&&Hr(u)}}}function r(s){for(var a=s.t,u=s.k,p=ro(u),d=p.length-1;d>=0;d--){var h=p[d];if(h!==ce){var f=a[h];if(f===void 0&&!to(a,h))return!0;var g=u[h],v=g&&g[ce];if(v?v.t!==f:!zd(g,f))return!0}}var y=!!a[ce];return p.length!==ro(a).length+(y?0:1)}function i(s){var a=s.k;if(a.length!==s.t.length)return!0;var u=Object.getOwnPropertyDescriptor(a,a.length-1);if(u&&!u.get)return!0;for(var p=0;p<a.length;p++)if(!a.hasOwnProperty(p))return!0;return!1}function o(s){s.g&&Tt(3,JSON.stringify(Ur(s)))}var n={};cS("ES5",{J:function(s,a){var u=Array.isArray(s),p=(function(h,f){if(h){for(var g=Array(f.length),v=0;v<f.length;v++)Object.defineProperty(g,""+v,t(v,!0));return g}var y=Wd(f);delete y[ce];for(var C=ro(y),A=0;A<C.length;A++){var O=C[A];y[O]=t(O,h||!!y[O].enumerable)}return Object.create(Object.getPrototypeOf(f),y)})(u,s),d={i:u?5:4,A:a?a.A:il(),P:!1,I:!1,R:{},l:a,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,ce,{value:d,writable:!0}),p},S:function(s,a,u){u?Er(a)&&a[ce].A===s&&e(s.p):(s.u&&(function p(d){if(d&&typeof d=="object"){var h=d[ce];if(h){var f=h.t,g=h.k,v=h.R,y=h.i;if(y===4)gi(g,(function(I){I!==ce&&(f[I]!==void 0||to(f,I)?v[I]||p(g[I]):(v[I]=!0,Hr(h)))})),gi(f,(function(I){g[I]!==void 0||to(g,I)||(v[I]=!1,Hr(h))}));else if(y===5){if(i(h)&&(Hr(h),v.length=!0),g.length<f.length)for(var C=g.length;C<f.length;C++)v[C]=!1;else for(var A=f.length;A<g.length;A++)v[A]=!0;for(var O=Math.min(g.length,f.length),P=0;P<O;P++)g.hasOwnProperty(P)||(v[P]=!0),v[P]===void 0&&p(g[P])}}}})(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var Ud,Yo,dl,dS,hS,Hd,Kd,jd,ce,fS,ro,Wd,sl,Xo,Qo,mS,ft,gS,XE,ZE,JE,eC,tC,rC,es,ts=l(()=>{dl=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",dS=typeof Map<"u",hS=typeof Set<"u",Hd=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Kd=dl?Symbol.for("immer-nothing"):((Ud={})["immer-nothing"]=!0,Ud),jd=dl?Symbol.for("immer-draftable"):"__$immer_draftable",ce=dl?Symbol.for("immer-state"):"__$immer_state",fS=""+Object.prototype.constructor,ro=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Wd=Object.getOwnPropertyDescriptors||function(t){var e={};return ro(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},sl={},Xo={get:function(t,e){if(e===ce)return t;var r=Ur(t);if(!to(r,e))return(function(o,n,s){var a,u=Fd(n,s);return u?"value"in u?u.value:(a=u.get)===null||a===void 0?void 0:a.call(o.k):void 0})(t,r,e);var i=r[e];return t.I||!jt(i)?i:i===tl(t.t,e)?(rl(t),t.o[e]=nl(t.A.h,i,t)):i},has:function(t,e){return e in Ur(t)},ownKeys:function(t){return Reflect.ownKeys(Ur(t))},set:function(t,e,r){var i=Fd(Ur(t),e);if(i?.set)return i.set.call(t.k,r),!0;if(!t.P){var o=tl(Ur(t),e),n=o?.[ce];if(n&&n.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(zd(r,o)&&(r!==void 0||to(t.t,e)))return!0;rl(t),Hr(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return tl(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,rl(t),Hr(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Ur(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:r[e]}},defineProperty:function(){Tt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Tt(12)}},Qo={};gi(Xo,(function(t,e){Qo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Qo.deleteProperty=function(t,e){return Qo.set.call(this,t,e,void 0)},Qo.set=function(t,e,r){return Xo.set.call(this,t[0],e,r,t[0])};mS=(function(){function t(r){var i=this;this.O=Hd,this.D=!0,this.produce=function(o,n,s){if(typeof o=="function"&&typeof n!="function"){var a=n;n=o;var u=i;return function(y){var C=this;y===void 0&&(y=a);for(var A=arguments.length,O=Array(A>1?A-1:0),P=1;P<A;P++)O[P-1]=arguments[P];return u.produce(y,(function(I){var Ae;return(Ae=n).call.apply(Ae,[C,I].concat(O))}))}}var p;if(typeof n!="function"&&Tt(6),s!==void 0&&typeof s!="function"&&Tt(7),jt(o)){var d=Md(i),h=nl(i,o,void 0),f=!0;try{p=n(h),f=!1}finally{f?Xn(d):ol(d)}return typeof Promise<"u"&&p instanceof Promise?p.then((function(y){return Ja(d,s),el(y,d)}),(function(y){throw Xn(d),y})):(Ja(d,s),el(p,d))}if(!o||typeof o!="object"){if((p=n(o))===void 0&&(p=o),p===Kd&&(p=void 0),i.D&&ul(p,!0),s){var g=[],v=[];or("Patches").M(o,p,g,v),s(g,v)}return p}Tt(21,o)},this.produceWithPatches=function(o,n){if(typeof o=="function")return function(p){for(var d=arguments.length,h=Array(d>1?d-1:0),f=1;f<d;f++)h[f-1]=arguments[f];return i.produceWithPatches(p,(function(g){return o.apply(void 0,[g].concat(h))}))};var s,a,u=i.produce(o,n,(function(p,d){s=p,a=d}));return typeof Promise<"u"&&u instanceof Promise?u.then((function(p){return[p,s,a]})):[u,s,a]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){jt(r)||Tt(8),Er(r)&&(r=pS(r));var i=Md(this),o=nl(this,r,void 0);return o[ce].C=!0,ol(i),o},e.finishDraft=function(r,i){var o=r&&r[ce],n=o.A;return Ja(n,i),el(void 0,n)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Hd&&Tt(20),this.O=r},e.applyPatches=function(r,i){var o;for(o=i.length-1;o>=0;o--){var n=i[o];if(n.path.length===0&&n.op==="replace"){r=n.value;break}}o>-1&&(i=i.slice(o+1));var s=or("Patches").$;return Er(r)?s(r,i):this.produce(r,(function(a){return s(a,i)}))},t})(),ft=new mS,gS=ft.produce,XE=ft.produceWithPatches.bind(ft),ZE=ft.setAutoFreeze.bind(ft),JE=ft.setUseProxies.bind(ft),eC=ft.applyPatches.bind(ft),tC=ft.createDraft.bind(ft),rC=ft.finishDraft.bind(ft),es=gS});function vi(t){"@babel/helpers - typeof";return vi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vi(t)}var hl=l(()=>{});function Gd(t,e){if(vi(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(vi(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Qd=l(()=>{hl()});function Yd(t){var e=Gd(t,"string");return vi(e)=="symbol"?e:e+""}var Xd=l(()=>{hl();Qd()});function Zd(t,e,r){return(e=Yd(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Jd=l(()=>{Xd()});function eh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,i)}return r}function fl(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?eh(Object(r),!0).forEach(function(i){Zd(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):eh(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}var th=l(()=>{Jd()});function Be(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. "}function vS(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function gl(t,e,r){var i;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Be(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Be(1));return r(gl)(t,e)}if(typeof t!="function")throw new Error(Be(2));var o=t,n=e,s=[],a=s,u=!1;function p(){a===s&&(a=s.slice())}function d(){if(u)throw new Error(Be(3));return n}function h(y){if(typeof y!="function")throw new Error(Be(4));if(u)throw new Error(Be(5));var C=!0;return p(),a.push(y),function(){if(C){if(u)throw new Error(Be(6));C=!1,p();var O=a.indexOf(y);a.splice(O,1),s=null}}}function f(y){if(!vS(y))throw new Error(Be(7));if(typeof y.type>"u")throw new Error(Be(8));if(u)throw new Error(Be(9));try{u=!0,n=o(n,y)}finally{u=!1}for(var C=s=a,A=0;A<C.length;A++){var O=C[A];O()}return y}function g(y){if(typeof y!="function")throw new Error(Be(10));o=y,f({type:rs.REPLACE})}function v(){var y,C=h;return y={subscribe:function(O){if(typeof O!="object"||O===null)throw new Error(Be(11));function P(){O.next&&O.next(d())}P();var I=C(P);return{unsubscribe:I}}},y[rh]=function(){return this},y}return f({type:rs.INIT}),i={dispatch:f,subscribe:h,getState:d,replaceReducer:g},i[rh]=v,i}function yS(t){Object.keys(t).forEach(function(e){var r=t[e],i=r(void 0,{type:rs.INIT});if(typeof i>"u")throw new Error(Be(12));if(typeof r(void 0,{type:rs.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Be(13))})}function ih(t){for(var e=Object.keys(t),r={},i=0;i<e.length;i++){var o=e[i];typeof t[o]=="function"&&(r[o]=t[o])}var n=Object.keys(r),s,a;try{yS(r)}catch(u){a=u}return function(p,d){if(p===void 0&&(p={}),a)throw a;if(0)var h;for(var f=!1,g={},v=0;v<n.length;v++){var y=n[v],C=r[y],A=p[y],O=C(A,d);if(typeof O>"u"){var P=d&&d.type;throw new Error(Be(14))}g[y]=O,f=f||O!==A}return f=f||n.length!==Object.keys(p).length,f?g:p}}function oo(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,o){return function(){return i(o.apply(void 0,arguments))}})}function oh(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(i){return function(){var o=i.apply(void 0,arguments),n=function(){throw new Error(Be(15))},s={getState:o.getState,dispatch:function(){return n.apply(void 0,arguments)}},a=e.map(function(u){return u(s)});return n=oo.apply(void 0,a)(o.dispatch),fl(fl({},o),{},{dispatch:n})}}}var rh,ml,rs,is=l(()=>{th();rh=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),ml=function(){return Math.random().toString(36).substring(7).split("").join(".")},rs={INIT:"@@redux/INIT"+ml(),REPLACE:"@@redux/REPLACE"+ml(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ml()}}});function nh(t){var e=function(i){var o=i.dispatch,n=i.getState;return function(s){return function(a){return typeof a=="function"?a(o,n,t):s(a)}}};return e}var sh,vl,ah=l(()=>{sh=nh();sh.withExtraArgument=nh;vl=sh});function RS(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}function Vr(t,e){function r(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(e){var n=e.apply(void 0,i);if(!n)throw new Error("prepareAction did not return an object");return jr(jr({type:t,payload:n.payload},"meta"in n&&{meta:n.meta}),"error"in n&&{error:n.error})}return{type:t,payload:i[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(i){return i.type===t},r}function Sl(t){return jt(t)?es(t,function(){}):t}function LS(t){return typeof t=="boolean"}function kS(){return function(e){return $S(e)}}function $S(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,i=t.immutableCheck,o=i===void 0?!0:i,n=t.serializableCheck,s=n===void 0?!0:n,a=t.actionCreatorCheck,u=a===void 0?!0:a,p=new TS;if(r&&(LS(r)?p.push(vl):p.push(vl.withExtraArgument(r.extraArgument))),0){if(o)var d;if(s)var h;if(u)var f}return p}function hh(t){var e=kS(),r=t||{},i=r.reducer,o=i===void 0?void 0:i,n=r.middleware,s=n===void 0?e():n,a=r.devTools,u=a===void 0?!0:a,p=r.preloadedState,d=p===void 0?void 0:p,h=r.enhancers,f=h===void 0?void 0:h,g;if(typeof o=="function")g=o;else if(RS(o))g=ih(o);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var v=s;if(typeof v=="function"&&(v=v(e),!bl&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!bl&&v.some(function(I){return typeof I!="function"}))throw new Error("each middleware provided to configureStore must be a function");var y=oh.apply(void 0,v),C=oo;u&&(C=wS(jr({trace:!bl},typeof u=="object"&&u)));var A=new _S(y),O=A;Array.isArray(f)?O=no([y],f):typeof f=="function"&&(O=f(A));var P=C.apply(void 0,O);return gl(g,d,P)}function fh(t){var e={},r=[],i,o={addCase:function(n,s){var a=typeof n=="string"?n:n.type;if(!a)throw new Error("`builder.addCase` cannot be called with an empty action type");if(a in e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[a]=s,o},addMatcher:function(n,s){return r.push({matcher:n,reducer:s}),o},addDefaultCase:function(n){return i=n,o}};return t(o),[e,r,i]}function PS(t){return typeof t=="function"}function IS(t,e,r,i){r===void 0&&(r=[]);var o=typeof e=="function"?fh(e):[e,r,i],n=o[0],s=o[1],a=o[2],u;if(PS(t))u=function(){return Sl(t())};else{var p=Sl(t);u=function(){return p}}function d(h,f){h===void 0&&(h=u());var g=no([n[f.type]],s.filter(function(v){var y=v.matcher;return y(f)}).map(function(v){var y=v.reducer;return y}));return g.filter(function(v){return!!v}).length===0&&(g=[a]),g.reduce(function(v,y){if(y)if(Er(v)){var C=v,A=y(C,f);return A===void 0?v:A}else{if(jt(v))return es(v,function(O){return y(O,f)});var A=y(v,f);if(A===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}return v},h)}return d.getInitialState=u,d}function DS(t,e){return t+"/"+e}function mh(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Sl(t.initialState),i=t.reducers||{},o=Object.keys(i),n={},s={},a={};o.forEach(function(d){var h=i[d],f=DS(e,d),g,v;"reducer"in h?(g=h.reducer,v=h.prepare):g=h,n[d]=g,s[f]=g,a[d]=v?Vr(f,v):Vr(f)});function u(){var d=typeof t.extraReducers=="function"?fh(t.extraReducers):[t.extraReducers],h=d[0],f=h===void 0?{}:h,g=d[1],v=g===void 0?[]:g,y=d[2],C=y===void 0?void 0:y,A=jr(jr({},f),s);return IS(r,function(O){for(var P in A)O.addCase(P,A[P]);for(var I=0,Ae=v;I<Ae.length;I++){var ye=Ae[I];O.addMatcher(ye.matcher,ye.reducer)}C&&O.addDefaultCase(C)})}var p;return{name:e,reducer:function(d,h){return p||(p=u()),p(d,h)},actions:a,caseReducers:n,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}function US(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function HS(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var dh,bS,no,xS,SS,ES,lh,CS,AS,ch,jr,yl,OS,wS,xC,TS,_S,bl,MS,NS,FS,xl,uh,BS,AC,gh,vh,yh,OC,wC,RC,TC,El,_C,LC,kC,ph,$C,jS,PC,bh=l(()=>{ts();is();is();is();ah();ts();ts();dh=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(i[n]=o[n])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}})(),bS=function(t,e){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,o,n,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(p){return function(d){return u([p,d])}}function u(p){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,o&&(n=p[0]&2?o.return:p[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,p[1])).done)return n;switch(o=0,n&&(p=[p[0]&2,n.value]),p[0]){case 0:case 1:n=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,o=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!n||p[1]>n[0]&&p[1]<n[3])){r.label=p[1];break}if(p[0]===6&&r.label<n[1]){r.label=n[1],n=p;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(p);break}n[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(t,r)}catch(d){p=[6,d],o=0}finally{i=n=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},no=function(t,e){for(var r=0,i=e.length,o=t.length;r<i;r++,o++)t[o]=e[r];return t},xS=Object.defineProperty,SS=Object.defineProperties,ES=Object.getOwnPropertyDescriptors,lh=Object.getOwnPropertySymbols,CS=Object.prototype.hasOwnProperty,AS=Object.prototype.propertyIsEnumerable,ch=function(t,e,r){return e in t?xS(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},jr=function(t,e){for(var r in e||(e={}))CS.call(e,r)&&ch(t,r,e[r]);if(lh)for(var i=0,o=lh(e);i<o.length;i++){var r=o[i];AS.call(e,r)&&ch(t,r,e[r])}return t},yl=function(t,e){return SS(t,ES(e))},OS=function(t,e,r){return new Promise(function(i,o){var n=function(u){try{a(r.next(u))}catch(p){o(p)}},s=function(u){try{a(r.throw(u))}catch(p){o(p)}},a=function(u){return u.done?i(u.value):Promise.resolve(u.value).then(n,s)};a((r=r.apply(t,e)).next())})},wS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?oo:oo.apply(null,arguments)},xC=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};TS=(function(t){dh(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=t.apply(this,r)||this;return Object.setPrototypeOf(o,e.prototype),o}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,no([void 0],r[0].concat(this)))):new(e.bind.apply(e,no([void 0],r.concat(this))))},e})(Array),_S=(function(t){dh(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=t.apply(this,r)||this;return Object.setPrototypeOf(o,e.prototype),o}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,no([void 0],r[0].concat(this)))):new(e.bind.apply(e,no([void 0],r.concat(this))))},e})(Array);bl=!0;MS="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",NS=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=MS[Math.random()*64|0];return e},FS=["name","message","stack","code"],xl=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),uh=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),BS=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,i=FS;r<i.length;r++){var o=i[r];typeof t[o]=="string"&&(e[o]=t[o])}return e}return{message:String(t)}},AC=(function(){function t(e,r,i){var o=Vr(e+"/fulfilled",function(d,h,f,g){return{payload:d,meta:yl(jr({},g||{}),{arg:f,requestId:h,requestStatus:"fulfilled"})}}),n=Vr(e+"/pending",function(d,h,f){return{payload:void 0,meta:yl(jr({},f||{}),{arg:h,requestId:d,requestStatus:"pending"})}}),s=Vr(e+"/rejected",function(d,h,f,g,v){return{payload:g,error:(i&&i.serializeError||BS)(d||"Rejected"),meta:yl(jr({},v||{}),{arg:f,requestId:h,rejectedWithValue:!!g,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"})}}),a=!1,u=typeof AbortController<"u"?AbortController:(function(){function d(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return d.prototype.abort=function(){},d})();function p(d){return function(h,f,g){var v=i?.idGenerator?i.idGenerator(d):NS(),y=new u,C,A=!1;function O(I){C=I,y.abort()}var P=(function(){return OS(this,null,function(){var I,Ae,ye,kr,Sa,$r,pt;return bS(this,function(At){switch(At.label){case 0:return At.trys.push([0,4,,5]),kr=(I=i?.condition)==null?void 0:I.call(i,d,{getState:f,extra:g}),HS(kr)?[4,kr]:[3,2];case 1:kr=At.sent(),At.label=2;case 2:if(kr===!1||y.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return A=!0,Sa=new Promise(function(dt,oi){return y.signal.addEventListener("abort",function(){return oi({name:"AbortError",message:C||"Aborted"})})}),h(n(v,d,(Ae=i?.getPendingMeta)==null?void 0:Ae.call(i,{requestId:v,arg:d},{getState:f,extra:g}))),[4,Promise.race([Sa,Promise.resolve(r(d,{dispatch:h,getState:f,extra:g,requestId:v,signal:y.signal,abort:O,rejectWithValue:function(dt,oi){return new xl(dt,oi)},fulfillWithValue:function(dt,oi){return new uh(dt,oi)}})).then(function(dt){if(dt instanceof xl)throw dt;return dt instanceof uh?o(dt.payload,v,d,dt.meta):o(dt,v,d)})])];case 3:return ye=At.sent(),[3,5];case 4:return $r=At.sent(),ye=$r instanceof xl?s(null,v,d,$r.payload,$r.meta):s($r,v,d),[3,5];case 5:return pt=i&&!i.dispatchConditionRejection&&s.match(ye)&&ye.meta.condition,pt||h(ye),[2,ye]}})})})();return Object.assign(P,{abort:O,requestId:v,arg:d,unwrap:function(){return P.then(US)}})}}return Object.assign(p,{pending:n,rejected:s,fulfilled:o,typePrefix:e})}return t.withTypes=function(){return t},t})();gh="listener",vh="completed",yh="cancelled",OC="task-"+yh,wC="task-"+vh,RC=gh+"-"+yh,TC=gh+"-"+vh,El="listenerMiddleware",_C=Vr(El+"/add"),LC=Vr(El+"/removeAll"),kC=Vr(El+"/remove"),$C=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(ph||(ph=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},jS=function(t){return function(e){setTimeout(e,t)}},PC=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:jS(10);qd()});var VS,os,xh=l(()=>{"use strict";hi();VS=zn(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,o){this.eventBus.addEventListener(r,i,o)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,o){this.eventBus.removeEventListener(r,i,o)}}}),os=class extends VS(Object){}});var Sh,Eh=l(()=>{"use strict";bh();Yn();Za();xh();hi();window.ftReduxStores||(window.ftReduxStores={});Sh=class t extends os{static get(e){var r;let i=typeof e=="string"?e:e.name,o=typeof e=="string"?void 0:e,n=window.ftReduxStores[i];if(Qn(n))return n;if(o==null)return;let s=mh({...o,reducers:(r=o.reducers)!==null&&r!==void 0?r:{}}),a=hh({reducer:(u,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let d=Ko(s.getInitialState());for(let h of p.keeping)d[h]=(u??d)[h];return d}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...u,...p.overwrites};return s.reducer(u,p)}});return window.ftReduxStores[o.name]=new t(s,a,o.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new qn;let o=n=>n!=null?JSON.parse(JSON.stringify(n)):n;this.actions=new Proxy(this.reduxSlice.actions,{get:(n,s,a)=>{let u=s,p=n[u];return p?(...d)=>{let h=p(...d.map(o));return this.reduxStore.dispatch(h),h}:d=>{this.setState({[u]:o(d)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}});var Ch=l(()=>{"use strict";hi()});var Ah=l(()=>{"use strict"});var Oh=l(()=>{"use strict";xd();Za();Dd();Eh();Yn();Ch();Ah()});var ns,wh=l(()=>{"use strict";ns=class{static format(e,r,i,o,n){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,o,!!n)):this.getIntlDateTime(e,r,i,o,!!n)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,o,n){let s=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(s),u=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return n?u:o?`${a} ${u}`: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 ss,zS,so,Zo,qS,w,Ue=l(()=>{"use strict";ss=c(m()),zS="ft-app-info",so=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};so.eventName="authentication-change";Zo=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Zo.eventName="ui-locale-changed";qS={session:(t,e)=>{(0,ss.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>w.dispatchEvent(new so(e.payload)),0))}},w=ss.FtReduxStore.get({name:zS,reducers:qS,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,searchLanguageSetsUiLanguage:!1,uiLanguageSetsSearchLanguage:!1,uiLanguageSetsReaderLanguage:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}})});var Cl,Rh,as,aA,Th=l(()=>{"use strict";Cl=c(F());Oh();wh();Ue();Rh=c(m()),as=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},aA=(0,Rh.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(w)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var o,n;return((n=(o=this.metadataDescriptors.find(a=>a.key===i))===null||o===void 0?void 0:o.date)!==null&&n!==void 0?n:!1)?a=>ns.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return as([(0,Cl.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),as([(0,Cl.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),as([Xa({store:w.name,selector:r=>{var i,o;return(o=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&o!==void 0?o:[]}})],e.prototype,"metadataDescriptors",void 0),as([Xa({store:w.name})],e.prototype,"uiLocale",void 0),e})});var Al=l(()=>{});var _h,Lh,kh,zr,$h,Ph,Ih,yi,Dh,Mh,Nh,Fh,Bh,Uh,Hh,jh,ls,Vh,zh,ao,qh,cs,Kh,Wh,nr,lo,Gh,Se,_t,Qh,Ol=l(()=>{(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(_h||(_h={}));(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Lh||(Lh={}));(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"})(kh||(kh={}));(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"})(zr||(zr={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})($h||($h={}));(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Ph||(Ph={}));(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Ih||(Ih={}));(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"})(yi||(yi={}));(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Dh||(Dh={}));(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"})(Mh||(Mh={}));(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"})(Nh||(Nh={}));(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Fh||(Fh={}));(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Bh||(Bh={}));(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Uh||(Uh={}));(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Hh||(Hh={}));(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"})(jh||(jh={}));(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(ls||(ls={}));(function(t){t.ASC="ASC",t.DESC="DESC"})(Vh||(Vh={}));(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(zh||(zh={}));(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(ao||(ao={}));(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(qh||(qh={}));(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(cs||(cs={}));(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"})(Kh||(Kh={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Wh||(Wh={}));(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(nr||(nr={}));(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(lo||(lo={}));(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Gh||(Gh={}));(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"})(Se||(Se={}));(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(_t||(_t={}));(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Qh||(Qh={}))});var Yh,Xh,Zh,Jh,ef,tf,rf,of,nf,sf,af,lf=l(()=>{(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Yh||(Yh={}));(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Xh||(Xh={}));(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.OTHER="OTHER"})(Zh||(Zh={}));(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Jh||(Jh={}));(function(t){t.JSON="JSON",t.TEXT="TEXT"})(ef||(ef={}));(function(t){t.JSON="JSON",t.TEXT="TEXT"})(tf||(tf={}));(function(t){t.TEXT="TEXT",t.HTML="HTML"})(rf||(rf={}));(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(of||(of={}));(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(nf||(nf={}));(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"})(sf||(sf={}));(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(af||(af={}))});var cf=l(()=>{Ol();lf()});function uf(t,e){return t===e||(KS[t]??[]).some(r=>uf(r,e))}function pf(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=>uf(i,e))}var KS,df=l(()=>{Ol();KS={[Se.PERSONAL_BOOK_SHARE_USER]:[Se.PERSONAL_BOOK_USER],[Se.HTML_EXPORT_USER]:[Se.PERSONAL_BOOK_USER],[Se.PDF_EXPORT_USER]:[Se.PERSONAL_BOOK_USER],[Se.KHUB_ADMIN]:[Se.CONTENT_PUBLISHER],[Se.ADMIN]:[Se.KHUB_ADMIN,Se.USERS_ADMIN,Se.PORTAL_ADMIN,Se.BEHAVIOR_DATA_USER],[Se.GENERATIVE_AI_EXPORT_USER]:[Se.GENERATIVE_AI_USER]}});var hf=l(()=>{});var bi=l(()=>{Al();cf();df();hf();Al()});var xi,wl=l(()=>{"use strict";Ue();xi=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=w.getState(),o=e??i;if(r&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,o,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let o=w.subscribe(()=>{i=t.get(e),i&&(o(),r(i))})}})}}});var co,Rl=l(()=>{"use strict";wl();co=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:xi.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):xi.await()}}});var Tl,He,qr=l(()=>{"use strict";Tl=c(m());Rl();He=class extends co{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(n,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[u])=>a.localeCompare(u)));let o=this.constructor;o.commonCache=(i=o.commonCache)!==null&&i!==void 0?i:new Tl.CacheRegistry,this.cache=e?o.commonCache:new Tl.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 us,_l=l(()=>{"use strict";Ue();bi();qr();us=class extends He{async listMySearches(){let{session:e}=w.getState();return pf(e,Se.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}}});var ps,Ll=l(()=>{"use strict";Ue();qr();ps=class extends He{async listMyBookmarks(){let e=w.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}}});var ds,ff=l(()=>{"use strict";Ue();qr();ds=class extends He{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=w.getState().session;return!!e?.sessionAuthenticated}}});var hs,mf=l(()=>{"use strict";qr();Ue();hs=class extends He{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=w.getState().session;return!!e?.sessionAuthenticated}}});var fs,WS,GS,yf,kl,$l,gf,vf,We,Pl,Il,ms=l(()=>{"use strict";bi();fs=c(m());_l();Ll();Ue();ff();mf();WS="ft-user-assets",GS={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(_t).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:o}=e.payload;$l(t,r,[...kl(t,r),o]),gf(t,r,1,i),vf(t,o)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;$l(t,r,kl(t,r).map(o=>o.id===i.id?i:o)),vf(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:o}=e.payload;$l(t,r,kl(t,r).filter(n=>n.id!==o)),gf(t,r,-1,i)}},yf={[_t.SEARCHES]:"savedSearches",[_t.BOOKMARKS]:"bookmarks",[_t.BOOKS]:void 0,[_t.COLLECTIONS]:void 0},kl=(t,e)=>{var r;let i=yf[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},$l=(t,e,r)=>{let i=yf[e];i&&(t[i]=r)},gf=(t,e,r,i)=>{let o=t.assetCounts.allAsset[e];if(o!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,o+r),e===_t.BOOKMARKS&&i)){let n=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,n+r)}},vf=(t,e)=>{let r=t.assetLabels.map(o=>o.title),i=e.labels.filter(o=>!r.includes(o)).map(o=>({title:o}));t.assetLabels.push(...i)},We=fs.FtReduxStore.get({name:WS,reducers:GS,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(_t).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Pl=class{constructor(e=new ds,r=new hs){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ps,this.savedSearchesService=new us,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=w.getState();(0,fs.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(),We.actions.clearAssetCount(),We.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),We.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),We.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();We.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();We.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&We.getState().assetCounts.allAsset[e]!==r.count&&We.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&We.getState().assetCounts.bookmarkByMap[e]!==r.count&&We.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(We.getState().assetCounts.bookmarkByMap).length!==0;e===_t.BOOKMARKS&&r&&We.actions.clearBookmarkCountByMap(),We.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;We.actions.bookmarks(r)}}},Il=new Pl;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Il)});var bf=l(()=>{"use strict";bi();ms()});var Dl,xf=l(()=>{"use strict";Ue();Dl=class{addCommand(e,r=!1){w.commands.add(e,r)}consumeCommand(e){return w.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Dl});var Lt,Sf,uo,QS,gs,po,vs,Ef=l(()=>{"use strict";Ue();Lt=c(m());qr();uo=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},QS=Symbol("clearAfterUnitTest"),gs=class extends(0,Lt.withEventBus)(He){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Sf]=()=>{this.defaultMessages={},this.cache=new Lt.CacheRegistry,this.listeners={}},this.currentUiLocale=w.getState().uiLocale,w.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=w.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let o={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,Lt.deepEqual)(this.defaultMessages[e],o)||(this.defaultMessages[e]=o,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 o;let n=e.toLowerCase(),s=this.resolveContext(n);return new Lt.ParametrizedLabelResolver((o=this.defaultMessages[n])!==null&&o!==void 0?o:{},s).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(o){!(o instanceof Lt.CanceledPromiseError)&&r&&console.error(o)}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 o;return(o=this.listeners[e])===null||o===void 0?void 0:o.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new uo({loadedContexts:e})),this.dispatchEvent(new uo({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new uo({loadedContexts:[e]})),this.dispatchEvent(new uo({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,Lt.delay)(0).then(()=>i()).catch(()=>null)))}};Sf=QS;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends gs{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends gs{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});po=window.FluidTopicsI18nService,vs=window.FluidTopicsCustomI18nService});var Cf,Ml,Af=l(()=>{"use strict";Cf=c(m()),Ml=class{highlightHtml(e,r,i){(0,Cf.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Ml});var Of,Nl,wf=l(()=>{"use strict";Of=c(m());Ue();Nl=class{isDate(e){var r,i,o,n;return(n=(o=((i=(r=w.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===e))===null||o===void 0?void 0:o.date)!==null&&n!==void 0?n:!1}format(e,r){var i,o,n,s;if(e==null)return"";try{return Of.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:w.getState().uiLocale,(o=r?.longFormat)!==null&&o!==void 0?o:!1,(n=r?.withTime)!==null&&n!==void 0?n:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new Nl});var Rf,Cr,Fl=l(()=>{"use strict";Rf=c(m());Ue();Cr=class{static get(e,r){var i,o;let n=w.getState(),{lang:s,region:a}=(o=(i=n.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&o!==void 0?o:{lang:"en",region:"US"};return new Rf.SearchPlaceConverter(n.baseUrl,e??20,n.searchInAllLanguagesAllowed,r??`${s}-${a}`)}}});var ys,Tf=l(()=>{"use strict";qr();ys=class extends He{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}async sendDocumentOnDemandTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.on_demand_translate event")}async sendTopicAiTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.ai_translate event")}convertMapToAnalyticsDocument(e){let r;switch(e.editorialType){case"BOOK":r="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":r="SHARED_PERSONAL_BOOK";break;case"ARTICLE":r="RESOURCE";break;case"HTML_PACKAGE":r="HTML_PACKAGE";break;default:throw new TypeError("Unknown editorial type for map : "+e.editorialType)}return{id:e.id,title:e.title,type:r,metadata:e.metadata}}sortEventArrays(e){let r=Object.entries(e).map(([i,o])=>Array.isArray(o)?[i,o.map(n=>typeof n=="object"&&n!=null&&!Array.isArray(n)?this.sortEventArrays(n):n).sort((n,s)=>typeof n=="object"&&n!==null&&"key"in n?n.key.localeCompare(s.key):typeof n=="string"&&typeof s=="string"?n.localeCompare(s):String(n).localeCompare(String(s)))]:typeof o=="object"&&o!==null?[i,this.sortEventArrays(o)]:[i,o]);return Object.fromEntries(r)}sendEvents(e,r){let i="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>i).catch(o=>(console.info(r),console.debug(o),i)),1e3)}}});var Bl,_f=l(()=>{"use strict";Fl();Bl=class{urlToSearchRequest(e){return Cr.get().parse(e)}searchRequestToUrl(e){return Cr.get().serialize(e)}};window.FluidTopicsUrlService=new Bl});var Si,Lf=l(()=>{"use strict";Si=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Si.eventName="change"});var Ul,kf,$f=l(()=>{"use strict";Ul=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))}},kf=new Ul});var Ar,bs,Pf=l(()=>{"use strict";Ar=c(m());Lf();$f();bs=class t extends Ar.WithEventBus{static build(){return new t(window.history,kf,()=>window.location,!1)}constructor(e,r,i,o){var n,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(n=e.state)===null||n===void 0?void 0:n.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(o)}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,Ar.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Si(this.currentItem())),0)}installProxies(){let e=r=>(i,o,[n,s,a])=>{let u=r(),p={...u===this.currentIndex?this.currentState:void 0,...n,index:u,href:typeof a=="string"?a:(a??this.windowLocation()).href};i.apply(o,[p,s,a]),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)}addHistoryChangeListener(e){this.addEventListener(Si.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Si.eventName,e)}currentItem(){return(0,Ar.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,Ar.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Ar.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,Ar.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 o=e,n=e+1;for(;this.states.length>n&&!this.isDifferentMajorState(n,i);)this.hasState(n)&&(o=n),n++;return o}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 o=r??this.currentState.majorStateId,n=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return n==null||n!=o}}});var If=l(()=>{"use strict";Pf();window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=bs.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)})});var Df=l(()=>{"use strict";Ue()});var xs=l(()=>{"use strict";Ll();wl();xf();Ef();qr();Af();_l();wf();Fl();Tf();_f();If();Df()});var Mf,Nf,Hl=l(()=>{"use strict";Mf=c(b()),Nf=Mf.css`
|
|
261
|
-
`});var
|
|
260
|
+
`});function ja(t,e,r){return Fr(t,Ho(e,r))}function $n(t,e){return typeof t=="function"?t(e):t}function Yi(t){return t.split("-")[0]}function Br(t){return t.split("-")[1]}function za(t){return t==="x"?"y":"x"}function qa(t){return t==="y"?"height":"width"}function In(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Ka(t){return za(In(t))}function Vp(t,e,r){r===void 0&&(r=!1);let i=Br(t),o=Ka(t),n=qa(o),s=o==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[n]>e.floating[n]&&(s=Ha(s)),[s,Ha(s)]}function jp(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Ha(t){let e=Yi(t);return Bx[e]+t.slice(e.length)}function Ux(t){return{top:0,right:0,bottom:0,left:0,...t}}function zp(t){return typeof t!="number"?Ux(t):{top:t,right:t,bottom:t,left:t}}function ci(t){let{x:e,y:r,width:i,height:o}=t;return{width:i,height:o,top:r,left:e,right:e+i,bottom:r+o,x:e,y:r}}var Hp,Up,Va,Ho,Fr,Vo,Ht,Bx,Dn=l(()=>{Hp=["top","right","bottom","left"],Up=["start","end"],Va=Hp.reduce((t,e)=>t.concat(e,e+"-"+Up[0],e+"-"+Up[1]),[]),Ho=Math.min,Fr=Math.max,Vo=Math.round,Ht=t=>({x:t,y:t}),Bx={left:"right",right:"left",bottom:"top",top:"bottom"}});function qp(t,e,r){let{reference:i,floating:o}=t,n=In(e),s=Ka(e),a=qa(s),c=Yi(e),p=n==="y",d=i.x+i.width/2-o.width/2,h=i.y+i.height/2-o.height/2,f=i[a]/2-o[a]/2,g;switch(c){case"top":g={x:d,y:i.y-o.height};break;case"bottom":g={x:d,y:i.y+i.height};break;case"right":g={x:i.x+i.width,y:h};break;case"left":g={x:i.x-o.width,y:h};break;default:g={x:i.x,y:i.y}}switch(Br(e)){case"start":g[s]-=f*(r&&p?-1:1);break;case"end":g[s]+=f*(r&&p?-1:1);break}return g}async function Kp(t,e){var r;e===void 0&&(e={});let{x:i,y:o,platform:n,rects:s,elements:a,strategy:c}=t,{boundary:p="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:f=!1,padding:g=0}=$n(e,t),v=zp(g),E=a[f?h==="floating"?"reference":"floating":h],A=ci(await n.getClippingRect({element:(r=await(n.isElement==null?void 0:n.isElement(E)))==null||r?E:E.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(a.floating)),boundary:p,rootBoundary:d,strategy:c})),O=h==="floating"?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,$=await(n.getOffsetParent==null?void 0:n.getOffsetParent(a.floating)),I=await(n.isElement==null?void 0:n.isElement($))?await(n.getScale==null?void 0:n.getScale($))||{x:1,y:1}:{x:1,y:1},Oe=ci(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:O,offsetParent:$,strategy:c}):O);return{top:(A.top-Oe.top+v.top)/I.y,bottom:(Oe.bottom-A.bottom+v.bottom)/I.y,left:(A.left-Oe.left+v.left)/I.x,right:(Oe.right-A.right+v.right)/I.x}}function Vx(t,e,r){return(t?[...r.filter(o=>Br(o)===t),...r.filter(o=>Br(o)!==t)]:r.filter(o=>Yi(o)===o)).filter(o=>t?Br(o)===t||(e?jp(o)!==o:!1):!0)}var Hx,Wp,Gp,Qp,Yp=l(()=>{Dn();Dn();Hx=50,Wp=async(t,e,r)=>{let{placement:i="bottom",strategy:o="absolute",middleware:n=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:Kp},c=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:d,y:h}=qp(p,i,c),f=i,g=0,v={};for(let y=0;y<n.length;y++){let E=n[y];if(!E)continue;let{name:A,fn:O}=E,{x:$,y:I,data:Oe,reset:ye}=await O({x:d,y:h,initialPlacement:i,placement:f,strategy:o,middlewareData:v,rects:p,platform:a,elements:{reference:t,floating:e}});d=$??d,h=I??h,v[A]={...v[A],...Oe},ye&&g<Hx&&(g++,typeof ye=="object"&&(ye.placement&&(f=ye.placement),ye.rects&&(p=ye.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:o}):ye.rects),{x:d,y:h}=qp(p,f,c)),y=-1)}return{x:d,y:h,placement:f,strategy:o,middlewareData:v}};Gp=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,o;let{rects:n,middlewareData:s,placement:a,platform:c,elements:p}=e,{crossAxis:d=!1,alignment:h,allowedPlacements:f=Va,autoAlignment:g=!0,...v}=$n(t,e),y=h!==void 0||f===Va?Vx(h||null,g,f):f,E=await c.detectOverflow(e,v),A=((r=s.autoPlacement)==null?void 0:r.index)||0,O=y[A];if(O==null)return{};let $=Vp(O,n,await(c.isRTL==null?void 0:c.isRTL(p.floating)));if(a!==O)return{reset:{placement:y[0]}};let I=[E[Yi(O)],E[$[0]],E[$[1]]],Oe=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:O,overflows:I}],ye=y[A+1];if(ye)return{data:{index:A+1,overflows:Oe},reset:{placement:ye}};let Pr=Oe.map(pt=>{let Ot=Br(pt.placement);return[pt.placement,Ot&&d?pt.overflows.slice(0,2).reduce((dt,oi)=>dt+oi,0):pt.overflows[0],pt.overflows]}).sort((pt,Ot)=>pt[1]-Ot[1]),$r=((o=Pr.filter(pt=>pt[2].slice(0,Br(pt[0])?2:3).every(Ot=>Ot<=0))[0])==null?void 0:o[0])||Pr[0][0];return $r!==a?{data:{index:A+1,overflows:Oe},reset:{placement:$r}}:{}}}},Qp=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:o,platform:n}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:A=>{let{x:O,y:$}=A;return{x:O,y:$}}},...p}=$n(t,e),d={x:r,y:i},h=await n.detectOverflow(e,p),f=In(Yi(o)),g=za(f),v=d[g],y=d[f];if(s){let A=g==="y"?"top":"left",O=g==="y"?"bottom":"right",$=v+h[A],I=v-h[O];v=ja($,v,I)}if(a){let A=f==="y"?"top":"left",O=f==="y"?"bottom":"right",$=y+h[A],I=y-h[O];y=ja($,y,I)}let E=c.fn({...e,[g]:v,[f]:y});return{...E,data:{x:E.x-r,y:E.y-i,enabled:{[g]:s,[f]:a}}}}}}});function Nn(){return typeof window<"u"}function pi(t){return Zp(t)?(t.nodeName||"").toLowerCase():"#document"}function nt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function rr(t){var e;return(e=(Zp(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Zp(t){return Nn()?t instanceof Node||t instanceof nt(t).Node:!1}function Rt(t){return Nn()?t instanceof Element||t instanceof nt(t).Element:!1}function ir(t){return Nn()?t instanceof HTMLElement||t instanceof nt(t).HTMLElement:!1}function Xp(t){return!Nn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof nt(t).ShadowRoot}function Xi(t){let{overflow:e,overflowX:r,overflowY:i,display:o}=Tt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&o!=="inline"&&o!=="contents"}function Jp(t){return/^(table|td|th)$/.test(pi(t))}function jo(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}function Zi(t){let e=Rt(t)?Tt(t):t;return ui(e.transform)||ui(e.translate)||ui(e.scale)||ui(e.rotate)||ui(e.perspective)||!Fn()&&(ui(e.backdropFilter)||ui(e.filter))||jx.test(e.willChange||"")||zx.test(e.contain||"")}function ed(t){let e=Sr(t);for(;ir(e)&&!di(e);){if(Zi(e))return e;if(jo(e))return null;e=Sr(e)}return null}function Fn(){return Wa==null&&(Wa=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Wa}function di(t){return/^(html|body|#document)$/.test(pi(t))}function Tt(t){return nt(t).getComputedStyle(t)}function zo(t){return Rt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Sr(t){if(pi(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Xp(t)&&t.host||rr(t);return Xp(e)?e.host:e}function td(t){let e=Sr(t);return di(e)?t.ownerDocument?t.ownerDocument.body:t.body:ir(e)&&Xi(e)?e:td(e)}function Mn(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let o=td(t),n=o===((i=t.ownerDocument)==null?void 0:i.body),s=nt(o);if(n){let a=Bn(s);return e.concat(s,s.visualViewport||[],Xi(o)?o:[],a&&r?Mn(a):[])}else return e.concat(o,Mn(o,[],r))}function Bn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}var jx,zx,ui,Wa,Ga=l(()=>{jx=/transform|translate|scale|rotate|perspective|filter/,zx=/paint|layout|strict|content/,ui=t=>!!t&&t!=="none"});function nd(t){let e=Tt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,o=ir(t),n=o?t.offsetWidth:r,s=o?t.offsetHeight:i,a=Vo(r)!==n||Vo(i)!==s;return a&&(r=n,i=s),{width:r,height:i,$:a}}function sd(t){return Rt(t)?t:t.contextElement}function Ji(t){let e=sd(t);if(!ir(e))return Ht(1);let r=e.getBoundingClientRect(),{width:i,height:o,$:n}=nd(e),s=(n?Vo(r.width):r.width)/i,a=(n?Vo(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}function ad(t){let e=nt(t);return!Fn()||!e.visualViewport?qx:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Kx(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==nt(t)?!1:e}function qo(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let o=t.getBoundingClientRect(),n=sd(t),s=Ht(1);e&&(i?Rt(i)&&(s=Ji(i)):s=Ji(t));let a=Kx(n,r,i)?ad(n):Ht(0),c=(o.left+a.x)/s.x,p=(o.top+a.y)/s.y,d=o.width/s.x,h=o.height/s.y;if(n){let f=nt(n),g=i&&Rt(i)?nt(i):i,v=f,y=Bn(v);for(;y&&i&&g!==v;){let E=Ji(y),A=y.getBoundingClientRect(),O=Tt(y),$=A.left+(y.clientLeft+parseFloat(O.paddingLeft))*E.x,I=A.top+(y.clientTop+parseFloat(O.paddingTop))*E.y;c*=E.x,p*=E.y,d*=E.x,h*=E.y,c+=$,p+=I,v=nt(y),y=Bn(v)}}return ci({width:d,height:h,x:c,y:p})}function Un(t,e){let r=zo(t).scrollLeft;return e?e.left+r:qo(rr(t)).left+r}function ld(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Un(t,r),o=r.top+e.scrollTop;return{x:i,y:o}}function Wx(t){let{elements:e,rect:r,offsetParent:i,strategy:o}=t,n=o==="fixed",s=rr(i),a=e?jo(e.floating):!1;if(i===s||a&&n)return r;let c={scrollLeft:0,scrollTop:0},p=Ht(1),d=Ht(0),h=ir(i);if((h||!h&&!n)&&((pi(i)!=="body"||Xi(s))&&(c=zo(i)),h)){let g=qo(i);p=Ji(i),d.x=g.x+i.clientLeft,d.y=g.y+i.clientTop}let f=s&&!h&&!n?ld(s,c):Ht(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-c.scrollLeft*p.x+d.x+f.x,y:r.y*p.y-c.scrollTop*p.y+d.y+f.y}}function Gx(t){return Array.from(t.getClientRects())}function Qx(t){let e=rr(t),r=zo(t),i=t.ownerDocument.body,o=Fr(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=Fr(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+Un(t),a=-r.scrollTop;return Tt(i).direction==="rtl"&&(s+=Fr(e.clientWidth,i.clientWidth)-o),{width:o,height:n,x:s,y:a}}function Yx(t,e){let r=nt(t),i=rr(t),o=r.visualViewport,n=i.clientWidth,s=i.clientHeight,a=0,c=0;if(o){n=o.width,s=o.height;let d=Fn();(!d||d&&e==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}let p=Un(i);if(p<=0){let d=i.ownerDocument,h=d.body,f=getComputedStyle(h),g=d.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,v=Math.abs(i.clientWidth-h.clientWidth-g);v<=rd&&(n-=v)}else p<=rd&&(n+=p);return{width:n,height:s,x:a,y:c}}function Xx(t,e){let r=qo(t,!0,e==="fixed"),i=r.top+t.clientTop,o=r.left+t.clientLeft,n=ir(t)?Ji(t):Ht(1),s=t.clientWidth*n.x,a=t.clientHeight*n.y,c=o*n.x,p=i*n.y;return{width:s,height:a,x:c,y:p}}function id(t,e,r){let i;if(e==="viewport")i=Yx(t,r);else if(e==="document")i=Qx(rr(t));else if(Rt(e))i=Xx(e,r);else{let o=ad(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return ci(i)}function cd(t,e){let r=Sr(t);return r===e||!Rt(r)||di(r)?!1:Tt(r).position==="fixed"||cd(r,e)}function Zx(t,e){let r=e.get(t);if(r)return r;let i=Mn(t,[],!1).filter(a=>Rt(a)&&pi(a)!=="body"),o=null,n=Tt(t).position==="fixed",s=n?Sr(t):t;for(;Rt(s)&&!di(s);){let a=Tt(s),c=Zi(s);!c&&a.position==="fixed"&&(o=null),(n?!c&&!o:!c&&a.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||Xi(s)&&!c&&cd(t,s))?i=i.filter(d=>d!==s):o=a,s=Sr(s)}return e.set(t,i),i}function Jx(t){let{element:e,boundary:r,rootBoundary:i,strategy:o}=t,s=[...r==="clippingAncestors"?jo(e)?[]:Zx(e,this._c):[].concat(r),i],a=id(e,s[0],o),c=a.top,p=a.right,d=a.bottom,h=a.left;for(let f=1;f<s.length;f++){let g=id(e,s[f],o);c=Fr(g.top,c),p=Ho(g.right,p),d=Ho(g.bottom,d),h=Fr(g.left,h)}return{width:p-h,height:d-c,x:h,y:c}}function eS(t){let{width:e,height:r}=nd(t);return{width:e,height:r}}function tS(t,e,r){let i=ir(e),o=rr(e),n=r==="fixed",s=qo(t,!0,n,e),a={scrollLeft:0,scrollTop:0},c=Ht(0);function p(){c.x=Un(o)}if(i||!i&&!n)if((pi(e)!=="body"||Xi(o))&&(a=zo(e)),i){let g=qo(e,!0,n,e);c.x=g.x+e.clientLeft,c.y=g.y+e.clientTop}else o&&p();n&&!i&&o&&p();let d=o&&!i&&!n?ld(o,a):Ht(0),h=s.left+a.scrollLeft-c.x-d.x,f=s.top+a.scrollTop-c.y-d.y;return{x:h,y:f,width:s.width,height:s.height}}function Qa(t){return Tt(t).position==="static"}function od(t,e){if(!ir(t)||Tt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return rr(t)===r&&(r=r.ownerDocument.body),r}function ud(t,e){let r=nt(t);if(jo(t))return r;if(!ir(t)){let o=Sr(t);for(;o&&!di(o);){if(Rt(o)&&!Qa(o))return o;o=Sr(o)}return r}let i=od(t,e);for(;i&&Jp(i)&&Qa(i);)i=od(i,e);return i&&di(i)&&Qa(i)&&!Zi(i)?r:i||ed(t)||r}function iS(t){return Tt(t).direction==="rtl"}var qx,rd,rS,Hn,pd,dd,hd,fd=l(()=>{Yp();Dn();Ga();qx=Ht(0);rd=25;rS=async function(t){let e=this.getOffsetParent||ud,r=this.getDimensions,i=await r(t.floating);return{reference:tS(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};Hn={convertOffsetParentRelativeRectToViewportRelativeRect:Wx,getDocumentElement:rr,getClippingRect:Jx,getOffsetParent:ud,getElementRects:rS,getClientRects:Gx,getDimensions:eS,getScale:Ji,isElement:Rt,isRTL:iS},pd=Gp,dd=Qp,hd=(t,e,r)=>{let i=new Map,o={platform:Hn,...r},n={...o.platform,_c:i};return Wp(t,e,{...o,platform:n})}});function md(t){return oS(t)}function Ya(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function oS(t){for(let e=t;e;e=Ya(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Ya(t);e;e=Ya(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Zi(r)||e.tagName==="BODY"))return e}return null}var gd=l(()=>{Ga()});async function vd(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},hd(t,e,{strategy:i.strategy,platform:{...Hn,getOffsetParent:o=>Hn.getOffsetParent(o,md)},middleware:[dd({crossAxis:!0}),pd({allowedPlacements:[i.placement]})]})}var yd=l(()=>{"use strict";fd();gd()});function xd(t,e){return(0,bd.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Ko(t);try{return JSON.parse(r)}catch{return Ko(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Wo,...e??{}})}var bd,Xa,Vn=l(()=>{"use strict";bd=u(F(),1);hi();Xa=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)}});function nS(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(!jn(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(!jn(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 o=s=>Object.keys(s).filter(a=>s[a]!=null),n=o(t);if(r=n.length,r!==o(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 s=n[i];if(!jn(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function jn(t,e){try{return nS(t,e)}catch{return!1}}function Wo(t,e){return!jn(t,e)}function Ko(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function zn(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let o=e(i);return o[t]=!0,o}}var hi=l(()=>{"use strict";Vn()});var Sd,Za,Cd=l(()=>{"use strict";hi();Sd=u(F(),1),Za=t=>{let e=t??{};return(r,i)=>{var o;let n={hasChanged:Wo,attribute:!1,...e};(0,Sd.property)(n)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(o=e.selector)!==null&&o!==void 0?o:(a=>a[i]),store:e.store})}}});var qn,Ja=l(()=>{"use strict";qn=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 Kn,Ed=l(()=>{"use strict";Kn=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 o=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),n=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of i)try{await s()}catch(a){o(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 Wn,sS,Ad,Od=l(()=>{Wn=globalThis,sS=Wn.ShadowRoot&&(Wn.ShadyCSS===void 0||Wn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ad=(t,e)=>{if(sS)t.adoptedStyleSheets=e.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(let r of e){let i=document.createElement("style"),o=Wn.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=r.cssText,t.appendChild(i)}}});var wd,Gn,Rd=l(()=>{"use strict";wd=u(b(),1);Od();Vn();Gn=class extends wd.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 Ad(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){Xa(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 Td(t,e,...r){var i;let o=t.querySelector(e);for(let n of r)o=(i=o?.shadowRoot)===null||i===void 0?void 0:i.querySelector(n);return o}var _d=l(()=>{"use strict"});var fi,to,$d,Ld,kd,Id,Pd,eo,or,Dd=l(()=>{"use strict";fi=u(F(),1);Vn();Ed();Rd();_d();to=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Ld=Symbol("constructorPrototype"),kd=Symbol("constructorName"),Id=Symbol("exportpartsDebouncer"),Pd=Symbol("dynamicDependenciesLoaded"),eo=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};eo.eventName="exportparts-updated";or=class extends Gn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[$d]=new Kn(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[Id].run(()=>{var o,n;!((o=this.exportpartsPrefix)===null||o===void 0)&&o.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[kd]=this.constructor.name,this[Ld]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[kd]&&Object.setPrototypeOf(this,this[Ld])}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[Pd]||(r[Pd]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(eo.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(eo.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 eo)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:o}=this.elementToFocus;if(i!=null){let n=[...o??[],i];r=Td(this.shadowRoot,...n)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,o;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((o=this.customStylesheet)!==null&&o!==void 0?o:"")}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,o,n,s,a;let c=f=>f!=null&&f.trim().length>0,p=e.filter(c).map(f=>f.trim());if(p.length===0){this.exportparts=void 0;return}let d=new Set;for(let f of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let g=(n=(o=f.getAttribute("part"))===null||o===void 0?void 0:o.split(" "))!==null&&n!==void 0?n:[],v=(a=(s=f.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(E=>E.split(":")[1]))!==null&&a!==void 0?a:[],y=[...g,...v].filter(c).map(E=>E.trim());for(let E of y)d.add(E)}if(d.size===0){this.exportparts=void 0;return}let h=[...d.values()].flatMap(f=>p.map(g=>`${f}:${g}--${f}`));this.exportparts=[...this.part,...h].join(", ")}};$d=Id;to([(0,fi.property)()],or.prototype,"exportpartsPrefix",void 0);to([xd([])],or.prototype,"exportpartsPrefixes",void 0);to([(0,fi.property)({reflect:!0})],or.prototype,"exportparts",void 0);to([(0,fi.property)()],or.prototype,"customStylesheet",void 0);to([(0,fi.property)()],or.prototype,"elementToFocus",void 0);to([(0,fi.state)()],or.prototype,"useAdoptedStyleSheets",void 0)});function Qn(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Yn=l(()=>{"use strict"});var Go,Ur,mi,aS,Md,Nd=l(()=>{"use strict";Dd();Yn();hi();Go=Symbol("internalReduxEventsUnsubscribers"),Ur=Symbol("internalStoresUnsubscribers"),mi=Symbol("internalStores"),aS=zn(Symbol("withRedux"),function(t){var e,r,i;class o extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[mi].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[mi].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[mi].get(s)}addStore(s,a){var c;a=(c=a??s.name)!==null&&c!==void 0?c:"default-store",this.unsubscribeFromStore(a),this[mi].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[mi].delete(a)}setupStores(){this.unsubscribeFromStores(),this[mi].forEach((s,a)=>this.subscribeToStore(a,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,a)=>{let c=this.constructor.getPropertyOptions(a);if(!c?.attribute||!this.hasAttribute(typeof c?.attribute=="string"?c.attribute:a)){let p=this.getStore(s.store);p&&(s.store?this[Ur].has(s.store):this[Ur].size>0)&&(this[a]=s.selector(p.getState(),this))}})}subscribeToStore(s,a){var c;this[Ur].set(s,a.subscribe(()=>this.updateFromStores())),this[Go].set(s,[]),Qn(a)&&a.eventBus&&((c=this.reduxConstructor.reduxEventListeners)===null||c===void 0||c.forEach((p,d)=>{if(typeof this[d]=="function"&&(!p.store||a.name===p.store)){let h=f=>this[d](f);a.addEventListener(p.eventName,h),this[Go].get(s).push(()=>a.removeEventListener(p.eventName,h))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Ur].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[Ur].has(s)&&this[Ur].get(s)(),this[Ur].delete(s),(a=this[Go].get(s))===null||a===void 0||a.forEach(c=>c()),this[Go].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Ur,r=mi,i=Go,o.reduxProperties=new Map,o.reduxReactiveProperties=new Set,o.reduxEventListeners=new Map,o}),Md=class extends aS(or){}});function _t(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];if(0)var o,n;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map((function(s){return"'"+s+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Cr(t){return!!t&&!!t[ce]}function Vt(t){var e;return!!t&&((function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var o=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===mS})(t)||Array.isArray(t)||!!t[zd]||!!(!((e=t.constructor)===null||e===void 0)&&e[zd])||ll(t)||cl(t))}function gi(t,e,r){r===void 0&&(r=!1),oo(t)===0?(r?Object.keys:io)(t).forEach((function(i){r&&typeof i=="symbol"||e(i,t[i],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function oo(t){var e=t[ce];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ll(t)?2:cl(t)?3:0}function ro(t,e){return oo(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function lS(t,e){return oo(t)===2?t.get(e):t[e]}function qd(t,e,r){var i=oo(t);i===2?t.set(e,r):i===3?t.add(r):t[e]=r}function Kd(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function ll(t){return hS&&t instanceof Map}function cl(t){return fS&&t instanceof Set}function Hr(t){return t.o||t.t}function ul(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Qd(t);delete e[ce];for(var r=io(e),i=0;i<r.length;i++){var o=r[i],n=e[o];n.writable===!1&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[o]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function pl(t,e){return e===void 0&&(e=!1),dl(t)||Cr(t)||!Vt(t)||(oo(t)>1&&(t.set=t.add=t.clear=t.delete=cS),Object.freeze(t),e&&gi(t,(function(r,i){return pl(i,!0)}),!0)),t}function cS(){_t(2)}function dl(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function nr(t){var e=al[t];return e||_t(18,t),e}function uS(t,e){al[t]||(al[t]=e)}function ol(){return Yo}function el(t,e){e&&(nr("Patches"),t.u=[],t.s=[],t.v=e)}function Xn(t){nl(t),t.p.forEach(pS),t.p=null}function nl(t){t===Yo&&(Yo=t.l)}function Fd(t){return Yo={p:[],l:Yo,h:t,m:!0,_:0}}function pS(t){var e=t[ce];e.i===0||e.i===1?e.j():e.g=!0}function tl(t,e){e._=e.p.length;var r=e.p[0],i=t!==void 0&&t!==r;return e.h.O||nr("ES5").S(e,t,i),i?(r[ce].P&&(Xn(e),_t(4)),Vt(t)&&(t=Zn(e,t),e.l||Jn(e,t)),e.u&&nr("Patches").M(r[ce].t,t,e.u,e.s)):t=Zn(e,r,[]),Xn(e),e.u&&e.v(e.u,e.s),t!==Gd?t:void 0}function Zn(t,e,r){if(dl(e))return e;var i=e[ce];if(!i)return gi(e,(function(a,c){return Bd(t,i,e,a,c,r)}),!0),e;if(i.A!==t)return e;if(!i.P)return Jn(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var o=i.i===4||i.i===5?i.o=ul(i.k):i.o,n=o,s=!1;i.i===3&&(n=new Set(o),o.clear(),s=!0),gi(n,(function(a,c){return Bd(t,i,o,a,c,r,s)})),Jn(t,o,!1),r&&t.u&&nr("Patches").N(i,r,t.u,t.s)}return i.o}function Bd(t,e,r,i,o,n,s){if(Cr(o)){var a=Zn(t,o,n&&e&&e.i!==3&&!ro(e.R,i)?n.concat(i):void 0);if(qd(r,i,a),!Cr(a))return;t.m=!1}else s&&r.add(o);if(Vt(o)&&!dl(o)){if(!t.h.D&&t._<1)return;Zn(t,o),e&&e.A.l||Jn(t,o)}}function Jn(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&pl(e,r)}function rl(t,e){var r=t[ce];return(r?Hr(r):t)[e]}function Ud(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Object.getPrototypeOf(r)}}function Vr(t){t.P||(t.P=!0,t.l&&Vr(t.l))}function il(t){t.o||(t.o=ul(t.t))}function sl(t,e,r){var i=ll(e)?nr("MapSet").F(e,r):cl(e)?nr("MapSet").T(e,r):t.O?(function(o,n){var s=Array.isArray(o),a={i:s?1:0,A:n?n.A:ol(),P:!1,I:!1,R:{},l:n,t:o,k:null,o:null,j:null,C:!1},c=a,p=Xo;s&&(c=[a],p=Qo);var d=Proxy.revocable(c,p),h=d.revoke,f=d.proxy;return a.k=f,a.j=h,f})(e,r):nr("ES5").J(e,r);return(r?r.A:ol()).p.push(i),i}function dS(t){return Cr(t)||_t(22,t),(function e(r){if(!Vt(r))return r;var i,o=r[ce],n=oo(r);if(o){if(!o.P&&(o.i<4||!nr("ES5").K(o)))return o.t;o.I=!0,i=Hd(r,n),o.I=!1}else i=Hd(r,n);return gi(i,(function(s,a){o&&lS(o.t,s)===a||qd(i,s,e(a))})),n===3?new Set(i):i})(t)}function Hd(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ul(t)}function Wd(){function t(s,a){var c=n[s];return c?c.enumerable=a:n[s]=c={configurable:!0,enumerable:a,get:function(){var p=this[ce];return Xo.get(p,s)},set:function(p){var d=this[ce];Xo.set(d,s,p)}},c}function e(s){for(var a=s.length-1;a>=0;a--){var c=s[a][ce];if(!c.P)switch(c.i){case 5:i(c)&&Vr(c);break;case 4:r(c)&&Vr(c)}}}function r(s){for(var a=s.t,c=s.k,p=io(c),d=p.length-1;d>=0;d--){var h=p[d];if(h!==ce){var f=a[h];if(f===void 0&&!ro(a,h))return!0;var g=c[h],v=g&&g[ce];if(v?v.t!==f:!Kd(g,f))return!0}}var y=!!a[ce];return p.length!==io(a).length+(y?0:1)}function i(s){var a=s.k;if(a.length!==s.t.length)return!0;var c=Object.getOwnPropertyDescriptor(a,a.length-1);if(c&&!c.get)return!0;for(var p=0;p<a.length;p++)if(!a.hasOwnProperty(p))return!0;return!1}function o(s){s.g&&_t(3,JSON.stringify(Hr(s)))}var n={};uS("ES5",{J:function(s,a){var c=Array.isArray(s),p=(function(h,f){if(h){for(var g=Array(f.length),v=0;v<f.length;v++)Object.defineProperty(g,""+v,t(v,!0));return g}var y=Qd(f);delete y[ce];for(var E=io(y),A=0;A<E.length;A++){var O=E[A];y[O]=t(O,h||!!y[O].enumerable)}return Object.create(Object.getPrototypeOf(f),y)})(c,s),d={i:c?5:4,A:a?a.A:ol(),P:!1,I:!1,R:{},l:a,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,ce,{value:d,writable:!0}),p},S:function(s,a,c){c?Cr(a)&&a[ce].A===s&&e(s.p):(s.u&&(function p(d){if(d&&typeof d=="object"){var h=d[ce];if(h){var f=h.t,g=h.k,v=h.R,y=h.i;if(y===4)gi(g,(function(I){I!==ce&&(f[I]!==void 0||ro(f,I)?v[I]||p(g[I]):(v[I]=!0,Vr(h)))})),gi(f,(function(I){g[I]!==void 0||ro(g,I)||(v[I]=!1,Vr(h))}));else if(y===5){if(i(h)&&(Vr(h),v.length=!0),g.length<f.length)for(var E=g.length;E<f.length;E++)v[E]=!1;else for(var A=f.length;A<g.length;A++)v[A]=!0;for(var O=Math.min(g.length,f.length),$=0;$<O;$++)g.hasOwnProperty($)||(v[$]=!0),v[$]===void 0&&p(g[$])}}}})(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var Vd,Yo,hl,hS,fS,jd,Gd,zd,ce,mS,io,Qd,al,Xo,Qo,gS,ft,vS,tE,rE,iE,oE,nE,sE,es,ts=l(()=>{hl=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",hS=typeof Map<"u",fS=typeof Set<"u",jd=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Gd=hl?Symbol.for("immer-nothing"):((Vd={})["immer-nothing"]=!0,Vd),zd=hl?Symbol.for("immer-draftable"):"__$immer_draftable",ce=hl?Symbol.for("immer-state"):"__$immer_state",mS=""+Object.prototype.constructor,io=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Qd=Object.getOwnPropertyDescriptors||function(t){var e={};return io(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},al={},Xo={get:function(t,e){if(e===ce)return t;var r=Hr(t);if(!ro(r,e))return(function(o,n,s){var a,c=Ud(n,s);return c?"value"in c?c.value:(a=c.get)===null||a===void 0?void 0:a.call(o.k):void 0})(t,r,e);var i=r[e];return t.I||!Vt(i)?i:i===rl(t.t,e)?(il(t),t.o[e]=sl(t.A.h,i,t)):i},has:function(t,e){return e in Hr(t)},ownKeys:function(t){return Reflect.ownKeys(Hr(t))},set:function(t,e,r){var i=Ud(Hr(t),e);if(i?.set)return i.set.call(t.k,r),!0;if(!t.P){var o=rl(Hr(t),e),n=o?.[ce];if(n&&n.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Kd(r,o)&&(r!==void 0||ro(t.t,e)))return!0;il(t),Vr(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return rl(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,il(t),Vr(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Hr(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:r[e]}},defineProperty:function(){_t(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){_t(12)}},Qo={};gi(Xo,(function(t,e){Qo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Qo.deleteProperty=function(t,e){return Qo.set.call(this,t,e,void 0)},Qo.set=function(t,e,r){return Xo.set.call(this,t[0],e,r,t[0])};gS=(function(){function t(r){var i=this;this.O=jd,this.D=!0,this.produce=function(o,n,s){if(typeof o=="function"&&typeof n!="function"){var a=n;n=o;var c=i;return function(y){var E=this;y===void 0&&(y=a);for(var A=arguments.length,O=Array(A>1?A-1:0),$=1;$<A;$++)O[$-1]=arguments[$];return c.produce(y,(function(I){var Oe;return(Oe=n).call.apply(Oe,[E,I].concat(O))}))}}var p;if(typeof n!="function"&&_t(6),s!==void 0&&typeof s!="function"&&_t(7),Vt(o)){var d=Fd(i),h=sl(i,o,void 0),f=!0;try{p=n(h),f=!1}finally{f?Xn(d):nl(d)}return typeof Promise<"u"&&p instanceof Promise?p.then((function(y){return el(d,s),tl(y,d)}),(function(y){throw Xn(d),y})):(el(d,s),tl(p,d))}if(!o||typeof o!="object"){if((p=n(o))===void 0&&(p=o),p===Gd&&(p=void 0),i.D&&pl(p,!0),s){var g=[],v=[];nr("Patches").M(o,p,g,v),s(g,v)}return p}_t(21,o)},this.produceWithPatches=function(o,n){if(typeof o=="function")return function(p){for(var d=arguments.length,h=Array(d>1?d-1:0),f=1;f<d;f++)h[f-1]=arguments[f];return i.produceWithPatches(p,(function(g){return o.apply(void 0,[g].concat(h))}))};var s,a,c=i.produce(o,n,(function(p,d){s=p,a=d}));return typeof Promise<"u"&&c instanceof Promise?c.then((function(p){return[p,s,a]})):[c,s,a]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){Vt(r)||_t(8),Cr(r)&&(r=dS(r));var i=Fd(this),o=sl(this,r,void 0);return o[ce].C=!0,nl(i),o},e.finishDraft=function(r,i){var o=r&&r[ce],n=o.A;return el(n,i),tl(void 0,n)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!jd&&_t(20),this.O=r},e.applyPatches=function(r,i){var o;for(o=i.length-1;o>=0;o--){var n=i[o];if(n.path.length===0&&n.op==="replace"){r=n.value;break}}o>-1&&(i=i.slice(o+1));var s=nr("Patches").$;return Cr(r)?s(r,i):this.produce(r,(function(a){return s(a,i)}))},t})(),ft=new gS,vS=ft.produce,tE=ft.produceWithPatches.bind(ft),rE=ft.setAutoFreeze.bind(ft),iE=ft.setUseProxies.bind(ft),oE=ft.applyPatches.bind(ft),nE=ft.createDraft.bind(ft),sE=ft.finishDraft.bind(ft),es=vS});function vi(t){"@babel/helpers - typeof";return vi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vi(t)}var fl=l(()=>{});function Yd(t,e){if(vi(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(vi(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Xd=l(()=>{fl()});function Zd(t){var e=Yd(t,"string");return vi(e)=="symbol"?e:e+""}var Jd=l(()=>{fl();Xd()});function eh(t,e,r){return(e=Zd(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var th=l(()=>{Jd()});function rh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,i)}return r}function ml(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?rh(Object(r),!0).forEach(function(i){eh(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):rh(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}var ih=l(()=>{th()});function Ue(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. "}function yS(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function vl(t,e,r){var i;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Ue(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ue(1));return r(vl)(t,e)}if(typeof t!="function")throw new Error(Ue(2));var o=t,n=e,s=[],a=s,c=!1;function p(){a===s&&(a=s.slice())}function d(){if(c)throw new Error(Ue(3));return n}function h(y){if(typeof y!="function")throw new Error(Ue(4));if(c)throw new Error(Ue(5));var E=!0;return p(),a.push(y),function(){if(E){if(c)throw new Error(Ue(6));E=!1,p();var O=a.indexOf(y);a.splice(O,1),s=null}}}function f(y){if(!yS(y))throw new Error(Ue(7));if(typeof y.type>"u")throw new Error(Ue(8));if(c)throw new Error(Ue(9));try{c=!0,n=o(n,y)}finally{c=!1}for(var E=s=a,A=0;A<E.length;A++){var O=E[A];O()}return y}function g(y){if(typeof y!="function")throw new Error(Ue(10));o=y,f({type:rs.REPLACE})}function v(){var y,E=h;return y={subscribe:function(O){if(typeof O!="object"||O===null)throw new Error(Ue(11));function $(){O.next&&O.next(d())}$();var I=E($);return{unsubscribe:I}}},y[oh]=function(){return this},y}return f({type:rs.INIT}),i={dispatch:f,subscribe:h,getState:d,replaceReducer:g},i[oh]=v,i}function bS(t){Object.keys(t).forEach(function(e){var r=t[e],i=r(void 0,{type:rs.INIT});if(typeof i>"u")throw new Error(Ue(12));if(typeof r(void 0,{type:rs.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ue(13))})}function nh(t){for(var e=Object.keys(t),r={},i=0;i<e.length;i++){var o=e[i];typeof t[o]=="function"&&(r[o]=t[o])}var n=Object.keys(r),s,a;try{bS(r)}catch(c){a=c}return function(p,d){if(p===void 0&&(p={}),a)throw a;if(0)var h;for(var f=!1,g={},v=0;v<n.length;v++){var y=n[v],E=r[y],A=p[y],O=E(A,d);if(typeof O>"u"){var $=d&&d.type;throw new Error(Ue(14))}g[y]=O,f=f||O!==A}return f=f||n.length!==Object.keys(p).length,f?g:p}}function no(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,o){return function(){return i(o.apply(void 0,arguments))}})}function sh(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(i){return function(){var o=i.apply(void 0,arguments),n=function(){throw new Error(Ue(15))},s={getState:o.getState,dispatch:function(){return n.apply(void 0,arguments)}},a=e.map(function(c){return c(s)});return n=no.apply(void 0,a)(o.dispatch),ml(ml({},o),{},{dispatch:n})}}}var oh,gl,rs,is=l(()=>{ih();oh=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),gl=function(){return Math.random().toString(36).substring(7).split("").join(".")},rs={INIT:"@@redux/INIT"+gl(),REPLACE:"@@redux/REPLACE"+gl(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+gl()}}});function ah(t){var e=function(i){var o=i.dispatch,n=i.getState;return function(s){return function(a){return typeof a=="function"?a(o,n,t):s(a)}}};return e}var lh,yl,ch=l(()=>{lh=ah();lh.withExtraArgument=ah;yl=lh});function TS(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}function zr(t,e){function r(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(e){var n=e.apply(void 0,i);if(!n)throw new Error("prepareAction did not return an object");return jr(jr({type:t,payload:n.payload},"meta"in n&&{meta:n.meta}),"error"in n&&{error:n.error})}return{type:t,payload:i[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(i){return i.type===t},r}function Cl(t){return Vt(t)?es(t,function(){}):t}function kS(t){return typeof t=="boolean"}function PS(){return function(e){return $S(e)}}function $S(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,i=t.immutableCheck,o=i===void 0?!0:i,n=t.serializableCheck,s=n===void 0?!0:n,a=t.actionCreatorCheck,c=a===void 0?!0:a,p=new _S;if(r&&(kS(r)?p.push(yl):p.push(yl.withExtraArgument(r.extraArgument))),0){if(o)var d;if(s)var h;if(c)var f}return p}function mh(t){var e=PS(),r=t||{},i=r.reducer,o=i===void 0?void 0:i,n=r.middleware,s=n===void 0?e():n,a=r.devTools,c=a===void 0?!0:a,p=r.preloadedState,d=p===void 0?void 0:p,h=r.enhancers,f=h===void 0?void 0:h,g;if(typeof o=="function")g=o;else if(TS(o))g=nh(o);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var v=s;if(typeof v=="function"&&(v=v(e),!xl&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!xl&&v.some(function(I){return typeof I!="function"}))throw new Error("each middleware provided to configureStore must be a function");var y=sh.apply(void 0,v),E=no;c&&(E=RS(jr({trace:!xl},typeof c=="object"&&c)));var A=new LS(y),O=A;Array.isArray(f)?O=so([y],f):typeof f=="function"&&(O=f(A));var $=E.apply(void 0,O);return vl(g,d,$)}function gh(t){var e={},r=[],i,o={addCase:function(n,s){var a=typeof n=="string"?n:n.type;if(!a)throw new Error("`builder.addCase` cannot be called with an empty action type");if(a in e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[a]=s,o},addMatcher:function(n,s){return r.push({matcher:n,reducer:s}),o},addDefaultCase:function(n){return i=n,o}};return t(o),[e,r,i]}function IS(t){return typeof t=="function"}function DS(t,e,r,i){r===void 0&&(r=[]);var o=typeof e=="function"?gh(e):[e,r,i],n=o[0],s=o[1],a=o[2],c;if(IS(t))c=function(){return Cl(t())};else{var p=Cl(t);c=function(){return p}}function d(h,f){h===void 0&&(h=c());var g=so([n[f.type]],s.filter(function(v){var y=v.matcher;return y(f)}).map(function(v){var y=v.reducer;return y}));return g.filter(function(v){return!!v}).length===0&&(g=[a]),g.reduce(function(v,y){if(y)if(Cr(v)){var E=v,A=y(E,f);return A===void 0?v:A}else{if(Vt(v))return es(v,function(O){return y(O,f)});var A=y(v,f);if(A===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}return v},h)}return d.getInitialState=c,d}function MS(t,e){return t+"/"+e}function vh(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Cl(t.initialState),i=t.reducers||{},o=Object.keys(i),n={},s={},a={};o.forEach(function(d){var h=i[d],f=MS(e,d),g,v;"reducer"in h?(g=h.reducer,v=h.prepare):g=h,n[d]=g,s[f]=g,a[d]=v?zr(f,v):zr(f)});function c(){var d=typeof t.extraReducers=="function"?gh(t.extraReducers):[t.extraReducers],h=d[0],f=h===void 0?{}:h,g=d[1],v=g===void 0?[]:g,y=d[2],E=y===void 0?void 0:y,A=jr(jr({},f),s);return DS(r,function(O){for(var $ in A)O.addCase($,A[$]);for(var I=0,Oe=v;I<Oe.length;I++){var ye=Oe[I];O.addMatcher(ye.matcher,ye.reducer)}E&&O.addDefaultCase(E)})}var p;return{name:e,reducer:function(d,h){return p||(p=c()),p(d,h)},actions:a,caseReducers:n,getInitialState:function(){return p||(p=c()),p.getInitialState()}}}function HS(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function VS(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var fh,xS,so,SS,CS,ES,uh,AS,OS,ph,jr,bl,wS,RS,AE,_S,LS,xl,NS,FS,BS,Sl,dh,US,TE,yh,bh,xh,_E,LE,kE,PE,El,$E,IE,DE,hh,ME,jS,NE,Sh=l(()=>{ts();is();is();is();ch();ts();ts();fh=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(i[n]=o[n])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}})(),xS=function(t,e){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,o,n,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(p){return function(d){return c([p,d])}}function c(p){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,o&&(n=p[0]&2?o.return:p[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,p[1])).done)return n;switch(o=0,n&&(p=[p[0]&2,n.value]),p[0]){case 0:case 1:n=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,o=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!n||p[1]>n[0]&&p[1]<n[3])){r.label=p[1];break}if(p[0]===6&&r.label<n[1]){r.label=n[1],n=p;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(p);break}n[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(t,r)}catch(d){p=[6,d],o=0}finally{i=n=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},so=function(t,e){for(var r=0,i=e.length,o=t.length;r<i;r++,o++)t[o]=e[r];return t},SS=Object.defineProperty,CS=Object.defineProperties,ES=Object.getOwnPropertyDescriptors,uh=Object.getOwnPropertySymbols,AS=Object.prototype.hasOwnProperty,OS=Object.prototype.propertyIsEnumerable,ph=function(t,e,r){return e in t?SS(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},jr=function(t,e){for(var r in e||(e={}))AS.call(e,r)&&ph(t,r,e[r]);if(uh)for(var i=0,o=uh(e);i<o.length;i++){var r=o[i];OS.call(e,r)&&ph(t,r,e[r])}return t},bl=function(t,e){return CS(t,ES(e))},wS=function(t,e,r){return new Promise(function(i,o){var n=function(c){try{a(r.next(c))}catch(p){o(p)}},s=function(c){try{a(r.throw(c))}catch(p){o(p)}},a=function(c){return c.done?i(c.value):Promise.resolve(c.value).then(n,s)};a((r=r.apply(t,e)).next())})},RS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?no:no.apply(null,arguments)},AE=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};_S=(function(t){fh(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=t.apply(this,r)||this;return Object.setPrototypeOf(o,e.prototype),o}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,so([void 0],r[0].concat(this)))):new(e.bind.apply(e,so([void 0],r.concat(this))))},e})(Array),LS=(function(t){fh(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=t.apply(this,r)||this;return Object.setPrototypeOf(o,e.prototype),o}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,so([void 0],r[0].concat(this)))):new(e.bind.apply(e,so([void 0],r.concat(this))))},e})(Array);xl=!0;NS="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",FS=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=NS[Math.random()*64|0];return e},BS=["name","message","stack","code"],Sl=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),dh=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),US=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,i=BS;r<i.length;r++){var o=i[r];typeof t[o]=="string"&&(e[o]=t[o])}return e}return{message:String(t)}},TE=(function(){function t(e,r,i){var o=zr(e+"/fulfilled",function(d,h,f,g){return{payload:d,meta:bl(jr({},g||{}),{arg:f,requestId:h,requestStatus:"fulfilled"})}}),n=zr(e+"/pending",function(d,h,f){return{payload:void 0,meta:bl(jr({},f||{}),{arg:h,requestId:d,requestStatus:"pending"})}}),s=zr(e+"/rejected",function(d,h,f,g,v){return{payload:g,error:(i&&i.serializeError||US)(d||"Rejected"),meta:bl(jr({},v||{}),{arg:f,requestId:h,rejectedWithValue:!!g,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"})}}),a=!1,c=typeof AbortController<"u"?AbortController:(function(){function d(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return d.prototype.abort=function(){},d})();function p(d){return function(h,f,g){var v=i?.idGenerator?i.idGenerator(d):FS(),y=new c,E,A=!1;function O(I){E=I,y.abort()}var $=(function(){return wS(this,null,function(){var I,Oe,ye,Pr,Ca,$r,pt;return xS(this,function(Ot){switch(Ot.label){case 0:return Ot.trys.push([0,4,,5]),Pr=(I=i?.condition)==null?void 0:I.call(i,d,{getState:f,extra:g}),VS(Pr)?[4,Pr]:[3,2];case 1:Pr=Ot.sent(),Ot.label=2;case 2:if(Pr===!1||y.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return A=!0,Ca=new Promise(function(dt,oi){return y.signal.addEventListener("abort",function(){return oi({name:"AbortError",message:E||"Aborted"})})}),h(n(v,d,(Oe=i?.getPendingMeta)==null?void 0:Oe.call(i,{requestId:v,arg:d},{getState:f,extra:g}))),[4,Promise.race([Ca,Promise.resolve(r(d,{dispatch:h,getState:f,extra:g,requestId:v,signal:y.signal,abort:O,rejectWithValue:function(dt,oi){return new Sl(dt,oi)},fulfillWithValue:function(dt,oi){return new dh(dt,oi)}})).then(function(dt){if(dt instanceof Sl)throw dt;return dt instanceof dh?o(dt.payload,v,d,dt.meta):o(dt,v,d)})])];case 3:return ye=Ot.sent(),[3,5];case 4:return $r=Ot.sent(),ye=$r instanceof Sl?s(null,v,d,$r.payload,$r.meta):s($r,v,d),[3,5];case 5:return pt=i&&!i.dispatchConditionRejection&&s.match(ye)&&ye.meta.condition,pt||h(ye),[2,ye]}})})})();return Object.assign($,{abort:O,requestId:v,arg:d,unwrap:function(){return $.then(HS)}})}}return Object.assign(p,{pending:n,rejected:s,fulfilled:o,typePrefix:e})}return t.withTypes=function(){return t},t})();yh="listener",bh="completed",xh="cancelled",_E="task-"+xh,LE="task-"+bh,kE=yh+"-"+xh,PE=yh+"-"+bh,El="listenerMiddleware",$E=zr(El+"/add"),IE=zr(El+"/removeAll"),DE=zr(El+"/remove"),ME=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(hh||(hh=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},jS=function(t){return function(e){setTimeout(e,t)}},NE=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:jS(10);Wd()});var zS,os,Ch=l(()=>{"use strict";hi();zS=zn(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,o){this.eventBus.addEventListener(r,i,o)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,o){this.eventBus.removeEventListener(r,i,o)}}}),os=class extends zS(Object){}});var Eh,Ah=l(()=>{"use strict";Sh();Yn();Ja();Ch();hi();window.ftReduxStores||(window.ftReduxStores={});Eh=class t extends os{static get(e){var r;let i=typeof e=="string"?e:e.name,o=typeof e=="string"?void 0:e,n=window.ftReduxStores[i];if(Qn(n))return n;if(o==null)return;let s=vh({...o,reducers:(r=o.reducers)!==null&&r!==void 0?r:{}}),a=mh({reducer:(c,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let d=Ko(s.getInitialState());for(let h of p.keeping)d[h]=(c??d)[h];return d}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...c,...p.overwrites};return s.reducer(c,p)}});return window.ftReduxStores[o.name]=new t(s,a,o.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new qn;let o=n=>n!=null?JSON.parse(JSON.stringify(n)):n;this.actions=new Proxy(this.reduxSlice.actions,{get:(n,s,a)=>{let c=s,p=n[c];return p?(...d)=>{let h=p(...d.map(o));return this.reduxStore.dispatch(h),h}:d=>{this.setState({[c]:o(d)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}});var Oh=l(()=>{"use strict";hi()});var wh=l(()=>{"use strict"});var Rh=l(()=>{"use strict";Cd();Ja();Nd();Ah();Yn();Oh();wh()});var ns,Th=l(()=>{"use strict";ns=class{static format(e,r,i,o,n){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,o,!!n)):this.getIntlDateTime(e,r,i,o,!!n)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,o,n){let s=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(s),c=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return n?c:o?`${a} ${c}`: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 ss,qS,ao,Zo,KS,w,He=l(()=>{"use strict";ss=u(m()),qS="ft-app-info",ao=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ao.eventName="authentication-change";Zo=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Zo.eventName="ui-locale-changed";KS={session:(t,e)=>{(0,ss.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>w.dispatchEvent(new ao(e.payload)),0))}},w=ss.FtReduxStore.get({name:qS,reducers:KS,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,searchLanguageSetsUiLanguage:!1,uiLanguageSetsSearchLanguage:!1,uiLanguageSetsReaderLanguage:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}})});var Al,_h,as,pA,Lh=l(()=>{"use strict";Al=u(F());Rh();Th();He();_h=u(m()),as=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},pA=(0,_h.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(w)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var o,n;return((n=(o=this.metadataDescriptors.find(a=>a.key===i))===null||o===void 0?void 0:o.date)!==null&&n!==void 0?n:!1)?a=>ns.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return as([(0,Al.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),as([(0,Al.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),as([Za({store:w.name,selector:r=>{var i,o;return(o=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&o!==void 0?o:[]}})],e.prototype,"metadataDescriptors",void 0),as([Za({store:w.name})],e.prototype,"uiLocale",void 0),e})});var Ol=l(()=>{});var kh,Ph,$h,qr,Ih,Dh,Mh,yi,Nh,Fh,Bh,Uh,Hh,Vh,jh,zh,ls,qh,Kh,lo,Wh,cs,Gh,Qh,sr,co,Yh,Se,Lt,Xh,wl=l(()=>{(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(kh||(kh={}));(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Ph||(Ph={}));(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"})($h||($h={}));(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"})(qr||(qr={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ih||(Ih={}));(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Dh||(Dh={}));(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Mh||(Mh={}));(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"})(yi||(yi={}));(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Nh||(Nh={}));(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"})(Fh||(Fh={}));(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"})(Bh||(Bh={}));(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Uh||(Uh={}));(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Hh||(Hh={}));(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Vh||(Vh={}));(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(jh||(jh={}));(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"})(zh||(zh={}));(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(ls||(ls={}));(function(t){t.ASC="ASC",t.DESC="DESC"})(qh||(qh={}));(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Kh||(Kh={}));(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(lo||(lo={}));(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Wh||(Wh={}));(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(cs||(cs={}));(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"})(Gh||(Gh={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Qh||(Qh={}));(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(sr||(sr={}));(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(co||(co={}));(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Yh||(Yh={}));(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"})(Se||(Se={}));(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Lt||(Lt={}));(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Xh||(Xh={}))});var Zh,Jh,ef,tf,rf,of,nf,sf,af,lf,cf,uf=l(()=>{(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Zh||(Zh={}));(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Jh||(Jh={}));(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.OTHER="OTHER"})(ef||(ef={}));(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(tf||(tf={}));(function(t){t.JSON="JSON",t.TEXT="TEXT"})(rf||(rf={}));(function(t){t.JSON="JSON",t.TEXT="TEXT"})(of||(of={}));(function(t){t.TEXT="TEXT",t.HTML="HTML"})(nf||(nf={}));(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(sf||(sf={}));(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(af||(af={}));(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"})(lf||(lf={}));(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(cf||(cf={}))});var pf=l(()=>{wl();uf()});function df(t,e){return t===e||(WS[t]??[]).some(r=>df(r,e))}function hf(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=>df(i,e))}var WS,ff=l(()=>{wl();WS={[Se.PERSONAL_BOOK_SHARE_USER]:[Se.PERSONAL_BOOK_USER],[Se.HTML_EXPORT_USER]:[Se.PERSONAL_BOOK_USER],[Se.PDF_EXPORT_USER]:[Se.PERSONAL_BOOK_USER],[Se.KHUB_ADMIN]:[Se.CONTENT_PUBLISHER],[Se.ADMIN]:[Se.KHUB_ADMIN,Se.USERS_ADMIN,Se.PORTAL_ADMIN,Se.BEHAVIOR_DATA_USER],[Se.GENERATIVE_AI_EXPORT_USER]:[Se.GENERATIVE_AI_USER]}});var mf=l(()=>{});var bi=l(()=>{Ol();pf();ff();mf();Ol()});var xi,Rl=l(()=>{"use strict";He();xi=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=w.getState(),o=e??i;if(r&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,o,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let o=w.subscribe(()=>{i=t.get(e),i&&(o(),r(i))})}})}}});var uo,Tl=l(()=>{"use strict";Rl();uo=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:xi.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):xi.await()}}});var _l,Ve,Kr=l(()=>{"use strict";_l=u(m());Tl();Ve=class extends uo{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(n,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[c])=>a.localeCompare(c)));let o=this.constructor;o.commonCache=(i=o.commonCache)!==null&&i!==void 0?i:new _l.CacheRegistry,this.cache=e?o.commonCache:new _l.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 us,Ll=l(()=>{"use strict";He();bi();Kr();us=class extends Ve{async listMySearches(){let{session:e}=w.getState();return hf(e,Se.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}}});var ps,kl=l(()=>{"use strict";He();Kr();ps=class extends Ve{async listMyBookmarks(){let e=w.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}}});var ds,gf=l(()=>{"use strict";He();Kr();ds=class extends Ve{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=w.getState().session;return!!e?.sessionAuthenticated}}});var hs,vf=l(()=>{"use strict";Kr();He();hs=class extends Ve{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=w.getState().session;return!!e?.sessionAuthenticated}}});var fs,GS,QS,xf,Pl,$l,yf,bf,Qe,Il,Dl,ms=l(()=>{"use strict";bi();fs=u(m());Ll();kl();He();gf();vf();GS="ft-user-assets",QS={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(Lt).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:o}=e.payload;$l(t,r,[...Pl(t,r),o]),yf(t,r,1,i),bf(t,o)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;$l(t,r,Pl(t,r).map(o=>o.id===i.id?i:o)),bf(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:o}=e.payload;$l(t,r,Pl(t,r).filter(n=>n.id!==o)),yf(t,r,-1,i)}},xf={[Lt.SEARCHES]:"savedSearches",[Lt.BOOKMARKS]:"bookmarks",[Lt.BOOKS]:void 0,[Lt.COLLECTIONS]:void 0},Pl=(t,e)=>{var r;let i=xf[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},$l=(t,e,r)=>{let i=xf[e];i&&(t[i]=r)},yf=(t,e,r,i)=>{let o=t.assetCounts.allAsset[e];if(o!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,o+r),e===Lt.BOOKMARKS&&i)){let n=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,n+r)}},bf=(t,e)=>{let r=t.assetLabels.map(o=>o.title),i=e.labels.filter(o=>!r.includes(o)).map(o=>({title:o}));t.assetLabels.push(...i)},Qe=fs.FtReduxStore.get({name:GS,reducers:QS,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Lt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Il=class{constructor(e=new ds,r=new hs){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ps,this.savedSearchesService=new us,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=w.getState();(0,fs.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(),Qe.actions.clearAssetCount(),Qe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Qe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Qe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Qe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Qe.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Qe.getState().assetCounts.allAsset[e]!==r.count&&Qe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Qe.getState().assetCounts.bookmarkByMap[e]!==r.count&&Qe.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Qe.getState().assetCounts.bookmarkByMap).length!==0;e===Lt.BOOKMARKS&&r&&Qe.actions.clearBookmarkCountByMap(),Qe.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;Qe.actions.bookmarks(r)}}},Dl=new Il;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Dl)});var Sf=l(()=>{"use strict";bi();ms()});var Ml,Cf=l(()=>{"use strict";He();Ml=class{addCommand(e,r=!1){w.commands.add(e,r)}consumeCommand(e){return w.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Ml});var kt,Ef,po,YS,gs,ho,vs,Af=l(()=>{"use strict";He();kt=u(m());Kr();po=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},YS=Symbol("clearAfterUnitTest"),gs=class extends(0,kt.withEventBus)(Ve){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ef]=()=>{this.defaultMessages={},this.cache=new kt.CacheRegistry,this.listeners={}},this.currentUiLocale=w.getState().uiLocale,w.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=w.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let o={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,kt.deepEqual)(this.defaultMessages[e],o)||(this.defaultMessages[e]=o,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 o;let n=e.toLowerCase(),s=this.resolveContext(n);return new kt.ParametrizedLabelResolver((o=this.defaultMessages[n])!==null&&o!==void 0?o:{},s).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(o){!(o instanceof kt.CanceledPromiseError)&&r&&console.error(o)}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 o;return(o=this.listeners[e])===null||o===void 0?void 0:o.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new po({loadedContexts:e})),this.dispatchEvent(new po({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new po({loadedContexts:[e]})),this.dispatchEvent(new po({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,kt.delay)(0).then(()=>i()).catch(()=>null)))}};Ef=YS;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends gs{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends gs{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});ho=window.FluidTopicsI18nService,vs=window.FluidTopicsCustomI18nService});var Of,Nl,wf=l(()=>{"use strict";Of=u(m()),Nl=class{highlightHtml(e,r,i){(0,Of.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Nl});var Rf,Fl,Tf=l(()=>{"use strict";Rf=u(m());He();Fl=class{isDate(e){var r,i,o,n;return(n=(o=((i=(r=w.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===e))===null||o===void 0?void 0:o.date)!==null&&n!==void 0?n:!1}format(e,r){var i,o,n,s;if(e==null)return"";try{return Rf.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:w.getState().uiLocale,(o=r?.longFormat)!==null&&o!==void 0?o:!1,(n=r?.withTime)!==null&&n!==void 0?n:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new Fl});var _f,Er,Bl=l(()=>{"use strict";_f=u(m());He();Er=class{static get(e,r){var i,o;let n=w.getState(),{lang:s,region:a}=(o=(i=n.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&o!==void 0?o:{lang:"en",region:"US"};return new _f.SearchPlaceConverter(n.baseUrl,e??20,n.searchInAllLanguagesAllowed,r??`${s}-${a}`)}}});var ys,Lf=l(()=>{"use strict";Kr();ys=class extends Ve{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}async sendDocumentOnDemandTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.on_demand_translate event")}async sendTopicAiTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.ai_translate event")}convertMapToAnalyticsDocument(e){let r;switch(e.editorialType){case"BOOK":r="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":r="SHARED_PERSONAL_BOOK";break;case"ARTICLE":r="RESOURCE";break;case"HTML_PACKAGE":r="HTML_PACKAGE";break;default:throw new TypeError("Unknown editorial type for map : "+e.editorialType)}return{id:e.id,title:e.title,type:r,metadata:e.metadata}}sortEventArrays(e){let r=Object.entries(e).map(([i,o])=>Array.isArray(o)?[i,o.map(n=>typeof n=="object"&&n!=null&&!Array.isArray(n)?this.sortEventArrays(n):n).sort((n,s)=>typeof n=="object"&&n!==null&&"key"in n?n.key.localeCompare(s.key):typeof n=="string"&&typeof s=="string"?n.localeCompare(s):String(n).localeCompare(String(s)))]:typeof o=="object"&&o!==null?[i,this.sortEventArrays(o)]:[i,o]);return Object.fromEntries(r)}sendEvents(e,r){let i="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>i).catch(o=>(console.info(r),console.debug(o),i)),1e3)}}});var Ul,kf=l(()=>{"use strict";Bl();Ul=class{urlToSearchRequest(e){return Er.get().parse(e)}searchRequestToUrl(e){return Er.get().serialize(e)}};window.FluidTopicsUrlService=new Ul});var Si,Pf=l(()=>{"use strict";Si=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Si.eventName="change"});var Hl,$f,If=l(()=>{"use strict";Hl=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))}},$f=new Hl});var Ar,bs,Df=l(()=>{"use strict";Ar=u(m());Pf();If();bs=class t extends Ar.WithEventBus{static build(){return new t(window.history,$f,()=>window.location,!1)}constructor(e,r,i,o){var n,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(n=e.state)===null||n===void 0?void 0:n.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(o)}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,Ar.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Si(this.currentItem())),0)}installProxies(){let e=r=>(i,o,[n,s,a])=>{let c=r(),p={...c===this.currentIndex?this.currentState:void 0,...n,index:c,href:typeof a=="string"?a:(a??this.windowLocation()).href};i.apply(o,[p,s,a]),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)}addHistoryChangeListener(e){this.addEventListener(Si.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Si.eventName,e)}currentItem(){return(0,Ar.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,Ar.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Ar.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,Ar.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 o=e,n=e+1;for(;this.states.length>n&&!this.isDifferentMajorState(n,i);)this.hasState(n)&&(o=n),n++;return o}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 o=r??this.currentState.majorStateId,n=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return n==null||n!=o}}});var Mf=l(()=>{"use strict";Df();window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=bs.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)})});var Nf=l(()=>{"use strict";He()});var xs=l(()=>{"use strict";kl();Rl();Cf();Af();Kr();wf();Ll();Tf();Bl();Lf();kf();Mf();Nf()});var Ff,Bf,Vl=l(()=>{"use strict";Ff=u(b()),Bf=Ff.css`
|
|
261
|
+
`});var Uf=l(()=>{"use strict"});function Hf(t,e){let{authenticationRequired:r,session:i}=w.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var Vf=l(()=>{"use strict";He()});var Ss,jf=l(()=>{"use strict";Tl();Ss=class extends uo{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}}});var Ci,jl,Jo,zl=l(()=>{"use strict";Ci=u(m());He();Vf();xs();jf();jl=class t extends Ci.FtStateManager{static build(e){return new t(w,e)}constructor(e,r){super(),this.store=e,this.cache=new Ci.CacheRegistry,this.withManualResources=!0,this.localesConfiguration=null,this.userLocaleService=new Ss,this.cleanSessionDebouncer=new Ci.Debouncer,this.reloadDebouncer=new Ci.Debouncer(500),this.apiProvider=r??(()=>xi.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(ao.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.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",()=>Hf(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}reloadConfiguration(){var e;(e=this.cache)===null||e===void 0||e.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){var r,i,o,n,s;this.localesConfiguration=e,this.store.actions.defaultLocales(this.localesConfiguration.defaultLocales),this.store.actions.availableUiLocales((r=this.localesConfiguration.availableUiLocales)!==null&&r!==void 0?r:[]),this.store.actions.searchInAllLanguagesAllowed((i=this.localesConfiguration.allLanguagesAllowed)!==null&&i!==void 0?i:!1),this.store.actions.searchLanguageSetsUiLanguage((o=this.localesConfiguration.searchLanguageSetsUiLanguage)!==null&&o!==void 0?o:!1),this.store.actions.uiLanguageSetsSearchLanguage((n=this.localesConfiguration.uiLanguageSetsSearchLanguage)!==null&&n!==void 0?n:!1),this.store.actions.uiLanguageSetsReaderLanguage((s=this.localesConfiguration.uiLanguageSetsReaderLanguage)!==null&&s!==void 0?s:!1),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e){this.userLocaleService.updateUiLocale({uiLocale:e}).then(r=>{r.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Zo(r)))}).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)}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)}},Jo=jl.build()});var Ei,en=l(()=>{Ei=class extends Event{constructor(e,r,i,o){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=o??!1}}});var zf=l(()=>{});var ql=l(()=>{en();});var qf=l(()=>{});var Kl=l(()=>{en();qf();});var tn,Kf=l(()=>{en();tn=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:o,callbackRef:n}of i){let s=o.deref(),a=n.deref();s===void 0||a===void 0||s.dispatchEvent(new Ei(e.context,s,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,o=this.pendingContextRequests.get(e.context);o===void 0&&this.pendingContextRequests.set(e.context,o={callbacks:new WeakMap,requests:[]});let n=o.callbacks.get(r);n===void 0&&o.callbacks.set(r,n=new WeakSet),n.has(i)||(n.add(i),o.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 Wf=l(()=>{Kl();});var Gf=l(()=>{ql();});var Qf=l(()=>{en();zf();ql();Kl();Kf();Wf();Gf()});var Yf,mt,Ai,je,fe,Wl=l(()=>{"use strict";Yf=u(b()),mt=u(F()),Ai=u(m());Vl();xs();zl();Qf();je=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},fe=class extends Ai.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.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Jo,this.contextRoot=new tn}render(){return Yf.html`
|
|
262
262
|
<slot></slot>
|
|
263
|
-
`}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),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("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>
|
|
264
|
-
`});var
|
|
263
|
+
`}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),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("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>ho.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())}};fe.elementDefinitions={};fe.styles=Bf;je([(0,mt.property)()],fe.prototype,"baseUrl",void 0);je([(0,mt.property)()],fe.prototype,"apiIntegrationIdentifier",void 0);je([(0,mt.property)()],fe.prototype,"apiIntegrationAppVersion",void 0);je([(0,mt.property)()],fe.prototype,"uiLocale",void 0);je([(0,Ai.jsonProperty)(null)],fe.prototype,"availableUiLocales",void 0);je([(0,Ai.jsonProperty)(null)],fe.prototype,"metadataConfiguration",void 0);je([(0,mt.property)({type:Boolean})],fe.prototype,"editorMode",void 0);je([(0,mt.property)({type:Boolean})],fe.prototype,"noCustom",void 0);je([(0,mt.property)({type:Boolean})],fe.prototype,"openExternalDocumentInNewTab",void 0);je([(0,mt.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],fe.prototype,"noCustomComponent",void 0);je([(0,mt.property)({type:Boolean})],fe.prototype,"withManualResources",void 0);je([(0,mt.property)({type:Boolean})],fe.prototype,"navigatorOnline",void 0);je([(0,mt.property)({type:Boolean})],fe.prototype,"forcedOffline",void 0);je([(0,mt.property)({type:Boolean})],fe.prototype,"authenticationRequired",void 0);je([(0,Ai.jsonProperty)([])],fe.prototype,"messageContexts",void 0);je([(0,Ai.jsonProperty)(void 0)],fe.prototype,"session",void 0)});var Xf,Zf=l(()=>{"use strict";Wl();Xf={"ft-app-context":fe}});var Jf,em=l(()=>{"use strict";Jf=u(m());Zf();(0,Jf.customElements)(Xf)});var jt=l(()=>{"use strict";Lh();He();ms();Sf();xs();Vl();Uf();Wl();zl();em()});var Gl,fo,Cs=l(()=>{"use strict";Gl=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-]+$/)}},fo=new Gl});var mo,tm,JS,on,rm,im,Es,rn,st,As,Os,nn=l(()=>{"use strict";mo=u(m());jt();tm=u(F());Cs();JS=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},on=Symbol("i18nAttributes"),rm=Symbol("i18nListAttributes"),im=Symbol("i18nProperties"),Es=Symbol("i18nContexts"),rn=Symbol("i18nUnsubs"),st=(0,mo.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?vs:ho}i18n(n){let{context:s,key:a,message:c}=n,{custom:p,args:d,argsProvider:h}=n;if(s&&a){this.hasI18nContext(s)||this.addI18nContext(s,void 0,p);let f=d??(h?h(this):[]);return this.getI18nService(p).resolveMessage(s,a,...f)}return c}async awaitI18n(n){let{context:s,custom:a}=n;return s&&await this.getI18nService(a).prepareContext(s),this.i18n(n)}customI18n(n,s){if(fo.isI18nKey(n)){let[a,c]=n.split(".");return this.i18n({custom:!0,context:a,key:c,...s})||n}return n}firstUpdated(n){super.firstUpdated(n),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(n){super.update(n),this.updateI18nAttributes((s,a,c)=>n.has(a)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(n){this.updateI18nAttributes((s,a,c)=>{var p;return((p=c?.context)===null||p===void 0?void 0:p.toLowerCase())===n}),this.updateI18nProperties(s=>s.context.toLowerCase()===n),this.requestUpdate()}updateI18nAttributes(n){var s,a;let c=this,p=(d,h,f)=>f?.context&&f.key&&n(d,h,f)?{...f,message:this.i18n({context:f.context,key:f.key,custom:f.custom,...d})}:f;(s=this[on])===null||s===void 0||s.forEach((d,h)=>c[h]=p(d,h,c[h])),(a=this[rm])===null||a===void 0||a.forEach((d,h)=>{var f;return c[h]=(f=c[h])===null||f===void 0?void 0:f.map(g=>p(d,h,g))})}updateI18nProperties(n){var s;(s=this[im])===null||s===void 0||s.forEach((a,c)=>{n(a,c)&&(this[c]=this.i18n(a))})}addI18nMessages(n,s,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(n,s,a)}addI18nContext(n,s,a){let c=(typeof n=="string"?n:n.name).toLowerCase();a=typeof n=="string"?a:n.custom,this[Es].set(c,{isCustomContext:a}),this[rn].has(c)||this[rn].set(c,this.getI18nService(a).subscribe(c,()=>this.onI18nUpdate(c))),this.getI18nService(a).prepareContext(c,s)}hasI18nContext(n){return this[Es].has(n.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Es].forEach((n,s)=>this.addI18nContext(s,void 0,n.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[rn].forEach(n=>n()),this[rn].clear()}}return e=Es,r=rn,JS([(0,tm.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),As=class extends st(mo.FtLitElement){},Os=class extends st(mo.FtLitElementRedux){}});var Ql,e0,om=l(()=>{"use strict";Cs();Ql=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?fo.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},e0=new Ql});var nm,go,ws=l(()=>{"use strict";nn();nm=u(m());Cs();om();go=(t,e)=>(r,i)=>{var o;r.constructor.createProperty(i,{type:Object,hasChanged:nm.hasChanged,converter:fo,...e}),r[on]=(o=r[on])!==null&&o!==void 0?o:new Map,r[on].set(i,t??{})}});var ar,sm=l(()=>{"use strict";jt();ar=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?vs:ho}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,o)=>{let n=o;return s=>({context:this.name,key:n,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(i,o)=>(...n)=>this.service.resolveMessage(this.name,o,...n)}),this.rawMessages=new Proxy({},{get:(i,o)=>this.service.resolveRawMessage(this.name,o)}),this.keys=new Proxy({},{get:(i,o)=>()=>o}),this.attributes=new Proxy({},{get:(i,o)=>()=>({context:this.name,key:o,message:this.service.resolveRawMessage(this.name,o)})})}}});var am=l(()=>{"use strict";nn()});var lm,cm,Yl=l(()=>{"use strict";lm=u(b()),cm=lm.css`
|
|
264
|
+
`});var um=l(()=>{"use strict"});var Rs,Ts,_s,sn,zt,Xl=l(()=>{"use strict";Rs=u(b()),Ts=u(F()),_s=u(m());Yl();nn();jt();sn=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},zt=class extends Os{constructor(){super(),this.editorMode=!1,this.addStore(w)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Rs.nothing:Rs.html`
|
|
265
265
|
<span class="ft-i18n">
|
|
266
266
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
267
267
|
</span>
|
|
268
|
-
`}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:""})}};zt.elementDefinitions={};zt.styles=
|
|
268
|
+
`}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:""})}};zt.elementDefinitions={};zt.styles=cm;sn([(0,_s.redux)()],zt.prototype,"editorMode",void 0);sn([(0,Ts.property)()],zt.prototype,"context",void 0);sn([(0,Ts.property)()],zt.prototype,"key",void 0);sn([(0,_s.jsonProperty)([])],zt.prototype,"args",void 0);sn([(0,Ts.property)()],zt.prototype,"defaultMessage",void 0)});var pm,dm=l(()=>{"use strict";Xl();pm={"ft-i18n":zt}});var hm,fm=l(()=>{"use strict";hm=u(m());dm();(0,hm.customElements)(pm)});var Pt=l(()=>{"use strict";sm();nn();am();Yl();um();Xl();fm()});var mm,It,$t,qt,ge,Zl=l(()=>{"use strict";mm=u(b()),It=u(F()),$t=u(m());me();Ua();yd();ws();Pt();qt=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},ge=class extends As{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 $t.Debouncer,this.revealDebouncer=new $t.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.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 mm.html`
|
|
269
269
|
<div part="container"
|
|
270
270
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
|
|
271
271
|
<slot part="slot"></slot>
|
|
@@ -274,13 +274,13 @@
|
|
|
274
274
|
popover="manual">
|
|
275
275
|
<div part="tooltip-content" class="ft-tooltip--content">
|
|
276
276
|
<slot name="text"></slot>
|
|
277
|
-
<ft-typography variant="${
|
|
277
|
+
<ft-typography variant="${Q.caption}" ?hidden=${!(!((e=this.text)===null||e===void 0)&&e.message)}>
|
|
278
278
|
${(r=this.text)===null||r===void 0?void 0:r.message}
|
|
279
279
|
</ft-typography>
|
|
280
280
|
</div>
|
|
281
281
|
</div>
|
|
282
282
|
</div>
|
|
283
|
-
`}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 o=this.text;this.text={message:e},await this.show(r),this.text=o,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&&
|
|
283
|
+
`}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 o=this.text;this.text={message:e},await this.show(r),this.text=o,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&&vd(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 ${$t.designSystemVariables.transitionDuration}, left ${$t.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||(0,$t.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}};ge.elementDefinitions={"ft-typography":V};ge.styles=Bp;qt([go()],ge.prototype,"text",void 0);qt([(0,It.property)({type:Boolean})],ge.prototype,"manual",void 0);qt([(0,It.property)({type:Boolean})],ge.prototype,"inline",void 0);qt([(0,$t.numberProperty)()],ge.prototype,"delay",void 0);qt([(0,It.property)()],ge.prototype,"position",void 0);qt([(0,$t.jsonProperty)([])],ge.prototype,"ignoreMatchingElements",void 0);qt([(0,It.queryAssignedNodes)()],ge.prototype,"slotNodes",void 0);qt([(0,It.query)(".ft-tooltip--container")],ge.prototype,"container",void 0);qt([(0,It.query)(".ft-tooltip")],ge.prototype,"tooltip",void 0);qt([(0,It.query)(".ft-tooltip--content")],ge.prototype,"tooltipContent",void 0);qt([(0,It.state)()],ge.prototype,"visible",void 0)});var gm=l(()=>{"use strict"});var vm,ym=l(()=>{"use strict";Zl();vm={"ft-tooltip":ge}});var bm,xm=l(()=>{"use strict";bm=u(m());ym();(0,bm.customElements)(vm)});var Jl=l(()=>{"use strict";Zl();Ua();gm();xm()});var Sm,Kt,Ye,Cm,vo=l(()=>{"use strict";Sm=u(b()),Kt=u(m()),Ye={size:Kt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Kt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Kt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Kt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Kt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Kt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Kt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Kt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Cm=[Sm.css`
|
|
284
284
|
:host, i.ft-icon {
|
|
285
285
|
display: inline-flex;
|
|
286
286
|
align-items: center;
|
|
@@ -289,14 +289,14 @@
|
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
:host {
|
|
292
|
-
width: ${
|
|
293
|
-
height: ${
|
|
292
|
+
width: ${Ye.size};
|
|
293
|
+
height: ${Ye.size};
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
i.ft-icon {
|
|
297
297
|
width: 100%;
|
|
298
298
|
height: 100%;
|
|
299
|
-
font-size: ${
|
|
299
|
+
font-size: ${Ye.size};
|
|
300
300
|
line-height: 1;
|
|
301
301
|
font-weight: normal;
|
|
302
302
|
text-transform: none;
|
|
@@ -307,33 +307,33 @@
|
|
|
307
307
|
text-rendering: auto;
|
|
308
308
|
-webkit-font-smoothing: antialiased;
|
|
309
309
|
-moz-osx-font-smoothing: grayscale;
|
|
310
|
-
vertical-align: ${
|
|
310
|
+
vertical-align: ${Ye.verticalAlign};
|
|
311
311
|
}
|
|
312
312
|
|
|
313
313
|
i.ft-icon.ft-icon--fluid-topics {
|
|
314
|
-
font-family: ${
|
|
314
|
+
font-family: ${Ye.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
315
315
|
|
|
316
316
|
/* Ugly fix because font is broken */
|
|
317
|
-
font-size: calc(0.75 * ${
|
|
318
|
-
line-height: ${
|
|
317
|
+
font-size: calc(0.75 * ${Ye.size});
|
|
318
|
+
line-height: ${Ye.size};
|
|
319
319
|
position: relative;
|
|
320
320
|
top: -4%;
|
|
321
321
|
justify-content: center;
|
|
322
322
|
}
|
|
323
323
|
|
|
324
324
|
.ft-icon--file-format {
|
|
325
|
-
font-family: ${
|
|
325
|
+
font-family: ${Ye.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
326
326
|
}
|
|
327
327
|
|
|
328
328
|
.ft-icon--material {
|
|
329
|
-
font-family: ${
|
|
329
|
+
font-family: ${Ye.materialFontFamily}, "Material Icons", sans-serif;
|
|
330
330
|
}
|
|
331
|
-
`,Kt.noTextSelect]});var st,Jl=l(()=>{"use strict";(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(st||(st={}))});var Ls=Ui((kR,Sm)=>{Sm.exports=ftGlobals.litUnsafeHTML});function ks(t,e){var r,i,o,n;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,a]=(((r=e0.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(n=(o=(i=ec.get(a))!==null&&i!==void 0?i:ec.get(e))!==null&&o!==void 0?o:ec.get(s))!==null&&n!==void 0?n:x.UNKNOWN}var we,x,ec,e0,$R,tc=l(()=>{"use strict";(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="󨃱"})(we||(we={}));(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=""})(x||(x={}));ec=new Map([...["abw"].map(t=>[t,x.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,x.AUDIO]),...["avi"].map(t=>[t,x.AVI]),...["chm","xhs"].map(t=>[t,x.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,x.CODE]),...["csv"].map(t=>[t,x.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,x.DITA]),...["epub"].map(t=>[t,x.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,x.EXCEL]),...["flac"].map(t=>[t,x.FLAC]),...["gif"].map(t=>[t,x.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,x.GZIP]),...["html","htm","xhtml"].map(t=>[t,x.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,x.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,x.JPEG]),...["json"].map(t=>[t,x.JSON]),...["m4a","m4p"].map(t=>[t,x.M4A]),...["mov","qt"].map(t=>[t,x.MOV]),...["mp3"].map(t=>[t,x.MP3]),...["mp4","m4v"].map(t=>[t,x.MP4]),...["ogg","oga"].map(t=>[t,x.OGG]),...["pdf","ps"].map(t=>[t,x.PDF]),...["png"].map(t=>[t,x.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,x.POWERPOINT]),...["rar"].map(t=>[t,x.RAR]),...["stp"].map(t=>[t,x.STP]),...["txt","rtf","md","mdown"].map(t=>[t,x.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,x.VIDEO]),...["wav"].map(t=>[t,x.WAV]),...["wma"].map(t=>[t,x.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,x.WORD]),...["xml","xsl","rdf"].map(t=>[t,x.XML]),...["yaml","yml","x-yaml"].map(t=>[t,x.YAML]),...["zip"].map(t=>[t,x.ZIP])]),e0=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"]]);$R={[x.ABW]:"#91ABC6",[x.AUDIO]:"#1795E3",[x.AVI]:"#E63324",[x.CHM]:"#71C3EB",[x.CODE]:"#71C3EB",[x.CSV]:"#1F7345",[x.DITA]:"#71C3EB",[x.EPUB]:"#85B926",[x.EXCEL]:"#1F7345",[x.FLAC]:"#1795E3",[x.GIF]:"#59B031",[x.GZIP]:"#F8AB36",[x.HTML]:"#71C3EB",[x.IMAGE]:"#59B031",[x.JPEG]:"#59B031",[x.JSON]:"#71C3EB",[x.M4A]:"#1795E3",[x.MOV]:"#E63324",[x.MP3]:"#1795E3",[x.MP4]:"#E63324",[x.OGG]:"#1795E3",[x.PDF]:"#E44948",[x.PNG]:"#59B031",[x.POWERPOINT]:"#B54A2B",[x.RAR]:"#F8AB36",[x.STP]:"#3764B1",[x.TEXT]:"#3162AB",[x.UNKNOWN]:"#999999",[x.VIDEO]:"#E63324",[x.WAV]:"#1795E3",[x.WMA]:"#1795E3",[x.WORD]:"#3162AB",[x.XML]:"#71C3EB",[x.YAML]:"#71C3EB",[x.ZIP]:"#F8AB36"}});var an,Kr,Em,Cm,ln,oe,rc=l(()=>{"use strict";an=c(b()),Kr=c(F()),Em=c(m()),Cm=c(Ls());tc();go();Jl();ln=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},oe=class extends Em.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=an.nothing}render(){let e=this.variant&&Object.values(st).includes(this.variant)?this.variant:st.fluid_topics,r=e!==st.material||!!this.value;return an.html`
|
|
331
|
+
`,Kt.noTextSelect]});var Xe,ec=l(()=>{"use strict";(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Xe||(Xe={}))});var Ls=Hi((DR,Em)=>{Em.exports=ftGlobals.litUnsafeHTML});function ks(t,e){var r,i,o,n;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,a]=(((r=t0.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(n=(o=(i=tc.get(a))!==null&&i!==void 0?i:tc.get(e))!==null&&o!==void 0?o:tc.get(s))!==null&&n!==void 0?n:x.UNKNOWN}var Ce,x,tc,t0,MR,rc=l(()=>{"use strict";(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="󨃱"})(Ce||(Ce={}));(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=""})(x||(x={}));tc=new Map([...["abw"].map(t=>[t,x.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,x.AUDIO]),...["avi"].map(t=>[t,x.AVI]),...["chm","xhs"].map(t=>[t,x.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,x.CODE]),...["csv"].map(t=>[t,x.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,x.DITA]),...["epub"].map(t=>[t,x.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,x.EXCEL]),...["flac"].map(t=>[t,x.FLAC]),...["gif"].map(t=>[t,x.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,x.GZIP]),...["html","htm","xhtml"].map(t=>[t,x.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,x.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,x.JPEG]),...["json"].map(t=>[t,x.JSON]),...["m4a","m4p"].map(t=>[t,x.M4A]),...["mov","qt"].map(t=>[t,x.MOV]),...["mp3"].map(t=>[t,x.MP3]),...["mp4","m4v"].map(t=>[t,x.MP4]),...["ogg","oga"].map(t=>[t,x.OGG]),...["pdf","ps"].map(t=>[t,x.PDF]),...["png"].map(t=>[t,x.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,x.POWERPOINT]),...["rar"].map(t=>[t,x.RAR]),...["stp"].map(t=>[t,x.STP]),...["txt","rtf","md","mdown"].map(t=>[t,x.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,x.VIDEO]),...["wav"].map(t=>[t,x.WAV]),...["wma"].map(t=>[t,x.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,x.WORD]),...["xml","xsl","rdf"].map(t=>[t,x.XML]),...["yaml","yml","x-yaml"].map(t=>[t,x.YAML]),...["zip"].map(t=>[t,x.ZIP])]),t0=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"]]);MR={[x.ABW]:"#91ABC6",[x.AUDIO]:"#1795E3",[x.AVI]:"#E63324",[x.CHM]:"#71C3EB",[x.CODE]:"#71C3EB",[x.CSV]:"#1F7345",[x.DITA]:"#71C3EB",[x.EPUB]:"#85B926",[x.EXCEL]:"#1F7345",[x.FLAC]:"#1795E3",[x.GIF]:"#59B031",[x.GZIP]:"#F8AB36",[x.HTML]:"#71C3EB",[x.IMAGE]:"#59B031",[x.JPEG]:"#59B031",[x.JSON]:"#71C3EB",[x.M4A]:"#1795E3",[x.MOV]:"#E63324",[x.MP3]:"#1795E3",[x.MP4]:"#E63324",[x.OGG]:"#1795E3",[x.PDF]:"#E44948",[x.PNG]:"#59B031",[x.POWERPOINT]:"#B54A2B",[x.RAR]:"#F8AB36",[x.STP]:"#3764B1",[x.TEXT]:"#3162AB",[x.UNKNOWN]:"#999999",[x.VIDEO]:"#E63324",[x.WAV]:"#1795E3",[x.WMA]:"#1795E3",[x.WORD]:"#3162AB",[x.XML]:"#71C3EB",[x.YAML]:"#71C3EB",[x.ZIP]:"#F8AB36"}});var an,Wr,Am,Om,ln,oe,ic=l(()=>{"use strict";an=u(b()),Wr=u(F()),Am=u(m()),Om=u(Ls());rc();vo();ec();ln=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},oe=class extends Am.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=an.nothing}render(){let e=this.variant&&Object.values(Xe).includes(this.variant)?this.variant:Xe.fluid_topics,r=e!==Xe.material||!!this.value;return an.html`
|
|
332
332
|
<i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
|
|
333
|
-
${(0,
|
|
333
|
+
${(0,Om.unsafeHTML)(this.resolvedIcon)}
|
|
334
334
|
<slot ?hidden=${r}></slot>
|
|
335
335
|
</i>
|
|
336
|
-
`}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
|
|
336
|
+
`}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 Xe.file_format:this.resolvedIcon=(e=x[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Xe.material:this.resolvedIcon=this.value||an.nothing;break;default:this.resolvedIcon=(r=Ce[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};oe.elementDefinitions={};oe.styles=Cm;ln([(0,Wr.property)()],oe.prototype,"variant",void 0);ln([(0,Wr.property)()],oe.prototype,"value",void 0);ln([(0,Wr.property)({reflect:!0,attribute:"aria-hidden"})],oe.prototype,"ariaHidden",void 0);ln([(0,Wr.state)()],oe.prototype,"resolvedIcon",void 0);ln([(0,Wr.query)("slot")],oe.prototype,"slottedContent",void 0)});var wm,Rm=l(()=>{"use strict";ic();wm={"ft-icon":oe}});var Tm,_m=l(()=>{"use strict";Tm=u(m());Rm();(0,Tm.customElements)(wm)});var Or=l(()=>{"use strict";vo();ec();ic();rc();_m()});var Lm,cn,Oi,km,Ps=l(()=>{"use strict";Lm=u(b()),cn=u(m()),Oi={color:cn.FtCssVariableFactory.extend("--ft-loader-color","",cn.designSystemVariables.colorPrimary),size:cn.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},km=Lm.css`
|
|
337
337
|
:host {
|
|
338
338
|
line-height: 0;
|
|
339
339
|
}
|
|
@@ -402,14 +402,14 @@
|
|
|
402
402
|
transform: translate(calc(0.35 * ${Oi.size}), 0);
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
|
-
`});var
|
|
405
|
+
`});var Pm=l(()=>{"use strict"});var $m,Im,wi,oc=l(()=>{"use strict";$m=u(b()),Im=u(m());Ps();wi=class extends Im.FtLitElement{render(){return $m.html`
|
|
406
406
|
<div class="ft-loader">
|
|
407
407
|
<div></div>
|
|
408
408
|
<div></div>
|
|
409
409
|
<div></div>
|
|
410
410
|
<div></div>
|
|
411
411
|
</div>
|
|
412
|
-
`}};wi.styles=
|
|
412
|
+
`}};wi.styles=km});var Dm,Mm=l(()=>{"use strict";oc();Dm={"ft-loader":wi}});var Nm,Fm=l(()=>{"use strict";Nm=u(m());Mm();(0,Nm.customElements)(Dm)});var Bm=l(()=>{"use strict";Ps();Pm();oc();Fm()});var Gr,Um=l(()=>{Ia();Gr=t=>t??xe});var $s=l(()=>{Um()});var jm,j,Hm,D,Vm,nc,lr,zm,Ri=l(()=>{"use strict";jm=u(b()),j=u(m());yr();Ut();Ps();vo();Hm=j.FtCssVariableFactory.extend("--ft-button-color","",j.designSystemVariables.colorPrimary),D={backgroundColor:j.FtCssVariableFactory.extend("--ft-button-background-color","",j.designSystemVariables.colorSurface),borderRadius:j.FtCssVariableFactory.extend("--ft-button-border-radius","",j.designSystemVariables.borderRadiusL),color:Hm,fontSize:j.FtCssVariableFactory.extend("--ft-button-font-size","",tr.fontSize),iconSize:j.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:j.FtCssVariableFactory.extend("--ft-button-ripple-color","",Hm),verticalPadding:j.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:j.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:j.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:j.FtCssVariableFactory.external(j.designSystemVariables.colorOpacityDisabled,"Design system")},Vm=j.FtCssVariableFactory.extend("--ft-button-primary-color","",j.FtCssVariableFactory.extend("--ft-button-color","",j.designSystemVariables.colorOnPrimary)),nc={backgroundColor:j.FtCssVariableFactory.extend("--ft-button-primary-background-color","",j.FtCssVariableFactory.extend("--ft-button-background-color","",j.designSystemVariables.colorPrimary)),color:Vm,rippleColor:j.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Vm)},lr={borderRadius:j.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",j.FtCssVariableFactory.extend("--ft-button-border-radius","",j.designSystemVariables.borderRadiusM)),verticalPadding:j.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:j.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:j.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},zm=jm.css`
|
|
413
413
|
:host {
|
|
414
414
|
display: inline-block;
|
|
415
415
|
max-width: 100%;
|
|
@@ -452,8 +452,8 @@
|
|
|
452
452
|
|
|
453
453
|
--button-internal-line-height: max(calc(${D.fontSize} + 2px), ${D.iconSize});
|
|
454
454
|
--button-internal-color: ${D.color};
|
|
455
|
-
${(0,
|
|
456
|
-
${(0,
|
|
455
|
+
${(0,j.setVariable)(Ye.size,D.iconSize)};
|
|
456
|
+
${(0,j.setVariable)(q.color,D.rippleColor)};
|
|
457
457
|
|
|
458
458
|
border-radius: ${D.borderRadius};
|
|
459
459
|
padding: ${D.verticalPadding} ${D.horizontalPadding};
|
|
@@ -468,13 +468,13 @@
|
|
|
468
468
|
}
|
|
469
469
|
|
|
470
470
|
.ft-button.ft-button--dense {
|
|
471
|
-
padding: ${
|
|
472
|
-
border-radius: ${
|
|
473
|
-
gap: ${
|
|
471
|
+
padding: ${lr.verticalPadding} ${lr.horizontalPadding};
|
|
472
|
+
border-radius: ${lr.borderRadius};
|
|
473
|
+
gap: ${lr.iconPadding};
|
|
474
474
|
}
|
|
475
475
|
|
|
476
476
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
477
|
-
padding: calc(${
|
|
477
|
+
padding: calc(${lr.verticalPadding} - 1px) calc(${lr.horizontalPadding} - 1px);
|
|
478
478
|
}
|
|
479
479
|
|
|
480
480
|
.ft-button:not([disabled]):hover {
|
|
@@ -486,7 +486,7 @@
|
|
|
486
486
|
}
|
|
487
487
|
|
|
488
488
|
.ft-button--round.ft-button--dense {
|
|
489
|
-
border-radius: calc(var(--button-internal-line-height) / 2 + ${
|
|
489
|
+
border-radius: calc(var(--button-internal-line-height) / 2 + ${lr.verticalPadding});
|
|
490
490
|
}
|
|
491
491
|
|
|
492
492
|
.ft-button[disabled] {
|
|
@@ -495,9 +495,9 @@
|
|
|
495
495
|
}
|
|
496
496
|
|
|
497
497
|
.ft-button.ft-button--primary {
|
|
498
|
-
background-color: ${
|
|
499
|
-
--button-internal-color: ${
|
|
500
|
-
${(0,
|
|
498
|
+
background-color: ${nc.backgroundColor};
|
|
499
|
+
--button-internal-color: ${nc.color};
|
|
500
|
+
${(0,j.setVariable)(q.color,nc.rippleColor)};
|
|
501
501
|
}
|
|
502
502
|
|
|
503
503
|
.ft-button:focus {
|
|
@@ -511,12 +511,12 @@
|
|
|
511
511
|
text-overflow: ellipsis;
|
|
512
512
|
display: block;
|
|
513
513
|
margin: 0 ${D.iconPadding};
|
|
514
|
-
${(0,
|
|
515
|
-
${(0,
|
|
514
|
+
${(0,j.setVariable)(tr.fontSize,"1em")};
|
|
515
|
+
${(0,j.setVariable)(tr.lineHeight,"var(--button-internal-line-height)")};
|
|
516
516
|
}
|
|
517
517
|
|
|
518
518
|
.ft-button--dense .ft-button--label {
|
|
519
|
-
margin: 0 ${
|
|
519
|
+
margin: 0 ${lr.iconPadding};
|
|
520
520
|
}
|
|
521
521
|
|
|
522
522
|
.ft-button--label[hidden] {
|
|
@@ -534,8 +534,8 @@
|
|
|
534
534
|
}
|
|
535
535
|
|
|
536
536
|
.ft-button--dense .ft-button--label[hidden] + [part="icon"] {
|
|
537
|
-
margin: 0 calc(${
|
|
538
|
-
padding: 0 ${
|
|
537
|
+
margin: 0 calc(${lr.horizontalPadding} * -1);
|
|
538
|
+
padding: 0 ${lr.verticalPadding};
|
|
539
539
|
}
|
|
540
540
|
|
|
541
541
|
.ft-button:not(.ft-button--trailing-icon) [part="label"] {
|
|
@@ -543,52 +543,52 @@
|
|
|
543
543
|
}
|
|
544
544
|
|
|
545
545
|
ft-loader {
|
|
546
|
-
${(0,
|
|
547
|
-
${(0,
|
|
546
|
+
${(0,j.setVariable)(Oi.size,D.iconSize)};
|
|
547
|
+
${(0,j.setVariable)(Oi.color,"var(--button-internal-color)")};
|
|
548
548
|
}
|
|
549
|
-
`});var
|
|
549
|
+
`});var Dt,Qr,sc,ne,pe,_,ac=l(()=>{"use strict";Dt=u(m());Ge();Jl();Or();Bm();Qr=u(b()),sc=u(it()),ne=u(F());$s();me();Ri();pe=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},_=class extends(0,Dt.toFtFormComponent)(Dt.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.label="",this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let o=Qr.html`
|
|
550
550
|
<ft-ripple part="ripple"
|
|
551
551
|
?disabled=${this.isDisabled()}
|
|
552
552
|
?activated=${this.activated}
|
|
553
553
|
></ft-ripple>
|
|
554
554
|
<ft-typography part="label"
|
|
555
|
-
variant="${
|
|
555
|
+
variant="${Q.button}"
|
|
556
556
|
element="span"
|
|
557
|
-
class="ft-button--label ${
|
|
557
|
+
class="ft-button--label ${Dt.isSafari?"ft-safari-ellipsis-fix":""}"
|
|
558
558
|
?hidden=${!this.hasTextContent()}>
|
|
559
559
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
560
560
|
</ft-typography>
|
|
561
561
|
${this.resolveIcon()}
|
|
562
|
-
`,n=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(n?
|
|
562
|
+
`,n=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(n?Qr.html`
|
|
563
563
|
<a href="${n}"
|
|
564
564
|
target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
|
|
565
565
|
part="button"
|
|
566
|
-
class="${(0,
|
|
566
|
+
class="${(0,sc.classMap)(this.buttonClasses)}"
|
|
567
567
|
aria-label="${(r=this.ariaLabel)!==null&&r!==void 0?r:this.getLabel()}"
|
|
568
568
|
?disabled=${this.isDisabled()}>
|
|
569
569
|
${o}
|
|
570
570
|
</a>
|
|
571
|
-
`:
|
|
571
|
+
`:Qr.html`
|
|
572
572
|
<button part="button"
|
|
573
|
-
class="${(0,
|
|
573
|
+
class="${(0,sc.classMap)(this.buttonClasses)}"
|
|
574
574
|
aria-label="${(i=this.ariaLabel)!==null&&i!==void 0?i:this.getLabel()}"
|
|
575
|
-
aria-haspopup="${
|
|
576
|
-
aria-pressed="${
|
|
575
|
+
aria-haspopup="${Gr(this.ariaHasPopup)}"
|
|
576
|
+
aria-pressed="${Gr(this.ariaPressed)}"
|
|
577
577
|
?disabled=${this.isDisabled()}>
|
|
578
578
|
${o}
|
|
579
579
|
</button>
|
|
580
|
-
`)}addTooltipIfNeeded(e){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?
|
|
580
|
+
`)}addTooltipIfNeeded(e){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?Qr.html`
|
|
581
581
|
<ft-tooltip part="tooltip"
|
|
582
582
|
text="${this.getLabel()}"
|
|
583
583
|
position="${this.tooltipPosition}">
|
|
584
584
|
${e}
|
|
585
585
|
</ft-tooltip>
|
|
586
|
-
`:e}resolveIcon(){return this.loading?
|
|
587
|
-
<ft-loader part="loader icon"></ft-loader> `:this.icon?
|
|
586
|
+
`:e}resolveIcon(){return this.loading?Qr.html`
|
|
587
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?Qr.html`
|
|
588
588
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
589
|
-
`:
|
|
589
|
+
`:Qr.html`
|
|
590
590
|
<slot part="icon" name="icon"></slot>
|
|
591
|
-
`}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()}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,
|
|
591
|
+
`}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()}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,Dt.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};_.elementDefinitions={"ft-ripple":k,"ft-tooltip":ge,"ft-icon":oe,"ft-loader":wi,"ft-typography":V};_.styles=[Dt.safariEllipsisFix,zm,Dt.noTextSelect];pe([(0,ne.property)({type:Boolean})],_.prototype,"primary",void 0);pe([(0,ne.property)({type:Boolean})],_.prototype,"outlined",void 0);pe([(0,ne.property)({type:Boolean})],_.prototype,"dense",void 0);pe([(0,ne.property)({type:Boolean})],_.prototype,"round",void 0);pe([(0,ne.property)({type:Boolean})],_.prototype,"disabled",void 0);pe([(0,ne.property)()],_.prototype,"icon",void 0);pe([(0,ne.property)()],_.prototype,"iconVariant",void 0);pe([(0,ne.property)({type:Boolean})],_.prototype,"trailingIcon",void 0);pe([(0,ne.property)()],_.prototype,"label",void 0);pe([(0,ne.property)()],_.prototype,"type",void 0);pe([(0,ne.property)()],_.prototype,"href",void 0);pe([(0,ne.property)()],_.prototype,"target",void 0);pe([(0,ne.property)({type:Boolean})],_.prototype,"loading",void 0);pe([(0,ne.property)({attribute:"aria-label"})],_.prototype,"ariaLabel",void 0);pe([(0,ne.property)()],_.prototype,"ariaHasPopup",void 0);pe([(0,ne.property)({attribute:"aria-pressed"})],_.prototype,"ariaPressed",void 0);pe([(0,ne.property)()],_.prototype,"tooltipPosition",void 0);pe([(0,ne.property)({type:Boolean})],_.prototype,"hideTooltip",void 0);pe([(0,ne.property)({type:Boolean})],_.prototype,"forceTooltip",void 0);pe([(0,ne.property)({type:Boolean})],_.prototype,"activated",void 0);pe([(0,ne.query)(".ft-button")],_.prototype,"button",void 0);pe([(0,ne.query)(".ft-button--label slot")],_.prototype,"slottedContent",void 0);pe([(0,ne.query)("[part=tooltip]")],_.prototype,"tooltip",void 0)});var qm=l(()=>{"use strict"});var Km,Wm=l(()=>{"use strict";ac();Km={"ft-button":_}});var Gm,Qm=l(()=>{"use strict";Gm=u(m());Wm();(0,Gm.customElements)(Km)});var Wt=l(()=>{"use strict";ac();Ri();qm();Qm()});var Ym,X,ee,lc,un=l(()=>{"use strict";Ym=u(b()),X=u(m());Wt();ee={height:X.FtCssVariableFactory.create("--ft-search-input-height","","SIZE","38px"),borderRadius:X.FtCssVariableFactory.extend("--ft-search-input-border-radius","",X.designSystemVariables.borderRadiusS),desktopFiltersHeight:X.FtCssVariableFactory.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:X.FtCssVariableFactory.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:X.FtCssVariableFactory.extend("--ft-search-input-background-color","",X.designSystemVariables.colorSurface),colorOnSurface:X.FtCssVariableFactory.extend("--ft-search-input-color","",X.designSystemVariables.colorOnSurface),colorOnSurfaceMedium:X.FtCssVariableFactory.extend("--ft-search-input-placeholder-color","",X.designSystemVariables.colorOnSurfaceMedium),colorOutline:X.FtCssVariableFactory.extend("--ft-search-input-outline-color","",X.designSystemVariables.colorOutline),elevation02:X.FtCssVariableFactory.extend("--ft-search-input-elevation","",X.designSystemVariables.elevation02),focusOutlineColor:X.FtCssVariableFactory.extend("--ft-search-input-focused-outline-color","",X.designSystemVariables.colorPrimary),buttonColor:X.FtCssVariableFactory.extend("--ft-search-input-button-color","",X.designSystemVariables.colorPrimary),buttonRippleColor:X.FtCssVariableFactory.extend("--ft-search-input-button-ripple-color","",X.designSystemVariables.colorPrimary)},lc=Ym.css`
|
|
592
592
|
* {
|
|
593
593
|
box-sizing: border-box;
|
|
594
594
|
${(0,X.setVariable)(D.color,ee.buttonColor)};
|
|
@@ -662,12 +662,12 @@
|
|
|
662
662
|
height: 20px;
|
|
663
663
|
border-right: 1px solid ${ee.colorOutline};
|
|
664
664
|
}
|
|
665
|
-
`});var
|
|
665
|
+
`});var Xm,Zm,Is,cc,Ds=l(()=>{"use strict";Xm=u(b()),Zm=u(m()),Is={highlightBackgroundColor:Zm.FtCssVariableFactory.create("--ft-sra-highlight-background-color","","COLOR","transparent")},cc=Xm.css`
|
|
666
666
|
.kwicmatch {
|
|
667
667
|
font-weight: 700;
|
|
668
668
|
background-color: ${Is.highlightBackgroundColor};
|
|
669
669
|
}
|
|
670
|
-
`});var
|
|
670
|
+
`});var Jm,eg,Ms,uc,Ns=l(()=>{"use strict";Jm=u(b()),eg=u(m()),Ms={highlightBackgroundColor:eg.FtCssVariableFactory.create("--ft-srt-highlight-background-color","","COLOR","transparent")},uc=Jm.css`
|
|
671
671
|
.kwicmatch {
|
|
672
672
|
font-weight: 700;
|
|
673
673
|
background-color: ${Ms.highlightBackgroundColor};
|
|
@@ -681,11 +681,11 @@
|
|
|
681
681
|
a:focus {
|
|
682
682
|
outline: revert;
|
|
683
683
|
}
|
|
684
|
-
`});function
|
|
685
|
-
`});var pg=l(()=>{"use strict"});var Wt,xo=l(()=>{"use strict";(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Wt||(Wt={}))});var dg,o0,hg,fg=l(()=>{"use strict";dg=c(m()),o0={setRequest:(t,e)=>{t.request=e.payload}},hg=t=>dg.FtReduxStore.get({name:"ft-search-"+t,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],sortId:void 0,paging:{page:1,perPage:20},keywordMatch:void 0},liveQuery:"",paging:void 0,facets:void 0,spellcheck:void 0,locales:[],results:void 0,announcements:void 0,suggestResults:void 0,configuration:void 0},reducers:o0})});var zs,mg=l(()=>{"use strict";Vt();zs=class extends He{constructor(e){super(!0,e),this.cache.registerFinal("search-configuration",async()=>(await this.awaitApi).getSearchConfiguration())}async launchSearch(e){let r={...e,metadataFilters:this.sortFilters(e.metadataFilters),facets:[...e.facets].sort((i,o)=>i.id.localeCompare(o.id))};return this.cache.get("search-"+this.hash(r),async()=>(await this.awaitApi).search(e),120*1e3)}async launchSuggest(e){let r={...e,metadataFilters:this.sortFilters(e.metadataFilters)};return this.cache.get("suggest-"+this.hash(r),async()=>(await this.awaitApi).getSuggestions(e),120*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}async getConfiguration(){return this.cache.get("search-configuration")}sortFilters(e){return e.map(r=>r.valueFilter==null?r:{...r,valueFilter:{...r.valueFilter,values:[...r.valueFilter.values].sort((i,o)=>i.localeCompare(o))}}).sort((r,i)=>r.key.localeCompare(i.key))}}});var Re,gg,vg,So,vc=l(()=>{"use strict";xo();Re=c(m());fg();bi();mg();fn();Vt();gg=t=>t.request.virtualField===ao.TITLE_ONLY&&t.request.scope===lo.DOCUMENTS,vg=t=>t.request.keywordMatch==ls.MANDATORY,So=class t extends Re.FtStateManager{static build(e,r){return new t(hg(e.trim()||"context"),r)}constructor(e,r){super(),this.store=e,this.ignoreEmptyQuery=!1,this.canUpdateUiLocale=!1,this.openExternalDocumentInNewTab=!1,this.onNewNeededRequest=i=>{i==Wt.CLUSTERED_SEARCH&&this.launchSearch(this.buildSearchRequest(this.store.getState()))},this.localesDebouncer=new Re.Debouncer(10),this.searchDebouncer=new Re.Debouncer(100),this.launchSearch=i=>this.searchDebouncer.run(()=>this.fetchSearchData(i??this.buildSearchRequest(this.store.getState()))),this.buildSearchRequest=i=>({...i.request,facets:this.facetIds.map(o=>({id:o}))}),this.suggestDebouncer=new Re.Debouncer(1e3),this.launchSuggest=i=>this.suggestDebouncer.run(()=>this.fetchSuggestData(i??this.buildSuggestRequest(this.store.getState()))),this.buildSuggestRequest=i=>{var o;return{input:i.liveQuery,metadataFilters:i.request.metadataFilters,sort:(o=i.request.sort)!==null&&o!==void 0?o:[],sortId:i.request.sortId,contentLocale:i.request.contentLocale,scope:i.request.scope,keywordMatch:i.request.keywordMatch}},this.service=r??new zs,this.service.cache.addEventListener("clear-cache",i=>{i.detail.clearedKeys.includes("available-locales")&&this.updateLocales()}),this.searchWatcher=(0,Re.watch)(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=(0,Re.watch)(e,this.buildSuggestRequest,this.launchSuggest)}async initService(){return this.updateLocales(),this.service.getConfiguration().then(e=>{this.store.actions.configuration(e),this.setSortId(this.store.getState().request.sortId)}),this.launchSearch()}updateSearchRequest(e,r=!1){let i=(0,Re.deepCopy)(this.store.getState().request);delete i.changedByConfiguration,this.store.actions.setRequest({...i,paging:{perPage:i.paging.perPage,page:r?1:i.paging.page},...e})}setQuery(e){this.updateSearchRequest({query:e},!0),this.setLiveQuery(e)}setContentLocale(e){var r,i;let o=(r=this.store.getState().locales)!==null&&r!==void 0?r:[],n=this.store.getState().request.contentLocale;if(e!=n){if(o.length>0){let s=a=>o.some(u=>u.lang==a);s(e)||(e=s(n)?n:o[0].lang)}this.updateSearchRequest({contentLocale:e,metadataFilters:[]},!0),this.canUpdateUiLocale&&(!((i=Jo.localesConfiguration)===null||i===void 0)&&i.searchLanguageSetsUiLanguage)&&e&&Jo.requestUiLocaleUpdate(e)}return e}forceContentLocale(e){this.updateSearchRequest({contentLocale:e})}setPageSize(e){let r=this.store.getState().request;this.updateSearchRequest({paging:{...r.paging,perPage:isNaN(e)?20:(0,Re.minmax)(1,e,1e3)}})}setPageNumber(e){let r=this.store.getState().request;this.updateSearchRequest({paging:{...r.paging,page:isNaN(e)?1:Math.max(1,e)}})}get sortOptions(){var e,r;return(r=(e=this.store.getState().configuration)===null||e===void 0?void 0:e.sortOptions)!==null&&r!==void 0?r:[]}setSort(e){this.updateSearchRequest({sort:e},!0)}setSortId(e,r=!1){var i;let o=r?{changedByConfiguration:!0}:{};if(e==null||this.sortOptions.length==0)return this.updateSearchRequest({sortId:e,...o},!0),e;let n=(i=this.sortOptions.find(s=>s.id==e))!==null&&i!==void 0?i:this.sortOptions[0];return this.updateSearchRequest({sortId:n.id,...o},!0),n.id}setFilters(e){let r=e.filter(i=>!i.valueFilter||i.valueFilter.values.length>0);this.updateSearchRequest({metadataFilters:r},!0)}setClusterSortCriterion(e){this.updateSearchRequest({clusterSortCriterions:e})}setSearchInDocumentTitlesOnly(e){e?this.updateSearchRequest({virtualField:ao.TITLE_ONLY,scope:lo.DOCUMENTS},!0):this.updateSearchRequest({virtualField:ao.EVERYWHERE,scope:lo.DEFAULT},!0)}setKeywordMatch(e){this.updateSearchRequest({keywordMatch:e},!0)}setVirtualField(e){this.updateSearchRequest({virtualField:e},!0)}get searchInDocumentTitlesOnly(){return gg(this.store.getState())}get keywordMatch(){return vg(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new hn)}addFacet(e){this.facetIds=[...this.facetIds,e]}replaceFacet(e,r){let i=this.facetIds.filter(o=>o!=e);r&&i.push(r),this.facetIds=i}get facetIds(){var e;let r=this.store.getState().request;return[...new Set([...r.facets.map(i=>i.id),...((e=r.metadataFilters)!==null&&e!==void 0?e:[]).map(i=>i.key)])]}set facetIds(e){let i=[...new Set(e)].map(o=>({id:o}));this.updateSearchRequest({facets:i})}setFilter(e,r){this.setValueFilter(e,r)}setValueFilter(e,r){let i=this.store.getState().request.metadataFilters,o={key:e,valueFilter:{values:r,negative:!1}},n=[...i.filter(s=>!s.valueFilter),...i.filter(s=>s.valueFilter&&s.key!==o.key),o];this.setFilters(n)}setDateFilter(e,r){let i=this.store.getState().request.metadataFilters,o={key:e,dateFilter:{type:r}},n=[...i.filter(s=>!s.dateFilter),...i.filter(s=>s.dateFilter&&s.key!==o.key),o];this.setFilters(n)}removeDateFilter(e){let r=this.store.getState().request.metadataFilters,i=[...r.filter(o=>!o.dateFilter),...r.filter(o=>o.dateFilter&&o.key!==e)];this.setFilters(i)}setRangeFilter(e,r,i){let o=this.store.getState().request.metadataFilters,n={key:e,rangeFilter:{from:r,to:i}},s=[...o.filter(a=>!a.rangeFilter),...o.filter(a=>a.rangeFilter&&a.key!==n.key),n];this.setFilters(s)}removeRangeFilter(e){let r=this.store.getState().request.metadataFilters,i=[...r.filter(o=>!o.rangeFilter),...r.filter(o=>o.rangeFilter&&o.key!==e)];this.setFilters(i)}setLiveQuery(e){this.store.actions.liveQuery(e)}setRequest(e){this.updateSearchRequest({...e,facets:this.store.getState().request.facets},!0),this.setLiveQuery(e.query)}setScope(e){this.updateSearchRequest({scope:e})}setOtherQueryParams(e){this.updateSearchRequest({otherQueryParams:e})}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}setCanUpdateUiLocale(e){this.canUpdateUiLocale=e}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.locales((await this.service.getAvailableSearchLocales()).contentLocales))}async fetchSearchData(e){var r,i,o,n,s;if((r=this.cancelableSearch)===null||r===void 0||r.cancel(),!!this.isRequestNeeded(Wt.CLUSTERED_SEARCH))try{if(this.store.actions.paging(void 0),this.ignoreEmptyQuery&&e.query.length==0)this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0);else{!((i=this.store.getState().results)===null||i===void 0)&&i.length||this.store.actions.results(void 0),this.cancelableSearch=(0,Re.cancelable)(this.service.launchSearch(e));let a=await this.cancelableSearch;if(this.store.actions.announcements(a.announcements),a.paging.currentPage<=1)this.store.actions.results(a.results),this.store.actions.facets(a.facets),this.store.actions.spellcheck(a.spellcheck);else{let u=((o=this.store.getState().results)!==null&&o!==void 0?o:[]).concat(a.results);this.store.actions.results(u),this.store.commands.clear(/^focus-result-/),this.store.commands.add({type:`focus-result-${(a.paging.currentPage-1)*((n=e.paging.perPage)!==null&&n!==void 0?n:20)+1}`})}this.store.actions.paging(a.paging)}}catch(a){a instanceof Re.CanceledPromiseError||(console.error(a),(s=this.errorHandler)===null||s===void 0||s.call(this,a))}}async fetchSuggestData(e){var r;try{if((r=this.cancelableSuggest)===null||r===void 0||r.cancel(),e.input.length!=0&&e.input.length<3)return;this.cancelableSuggest=(0,Re.cancelable)(this.service.launchSuggest(e));let i=await this.cancelableSuggest;this.store.actions.suggestResults(i.suggestions)}catch(i){!(i instanceof Re.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(i)}}clear(){this.store.clear()}clearResults(){this.store.actions.paging(void 0),this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0)}}});var Eo,bc,yg,xc,bg,yc,n0,s0,Dt,_i=l(()=>{"use strict";Eo=c(m()),bc=c(F());xo();vc();yg=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},xc=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},bg=Symbol("registerInterval"),yc=Symbol("registerAttempts"),n0=40,s0=(0,Eo.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(i){var o,n,s;super.willUpdate(i),i.has("neededSearchRequests")&&((o=this.stateManager)===null||o===void 0||o.unregisterComponent(this,(n=i.get("neededSearchRequests"))!==null&&n!==void 0?n:[]),(s=this.stateManager)===null||s===void 0||s.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[yc]=0,this.tryToRegisterToContext(),this[bg]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[yc]>n0?window.clearInterval(this[bg]):(this[yc]++,this.dispatchEvent(new xc))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return yg([(0,bc.state)()],e.prototype,"stateManager",void 0),yg([(0,bc.state)({hasChanged:Eo.hasChanged})],e.prototype,"neededSearchRequests",void 0),e}),Dt=class extends s0(Eo.FtLitElementRedux){}});function mn(t){return t.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function gn(t){var e,r;return t.dateFilter?{key:t.key,type:"DATE",dateValue:t.dateFilter.type}:t.rangeFilter?{key:t.key,type:"RANGE",from:t.rangeFilter.from,to:t.rangeFilter.to}:{key:t.key,values:(e=t.valueFilter)===null||e===void 0?void 0:e.values,negative:(r=t.valueFilter)===null||r===void 0?void 0:r.negative}}var Sc=l(()=>{"use strict"});var Ks,qs,xg=l(()=>{"use strict";Ks=c(m());bi();Vt();Sc();qs=class{constructor(e,r){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.enableAnalyticsEvents=!0,this.appName=void 0,this.appVersion=void 0,this.document=void 0,this.sendEvent=([i,o])=>{if(!this.canSendEvent()||!i)return;let n=this.store.getState().request;this.document==null?this.sendKhubSearchEvent(n,i,o):this.sendDocumentSearchEvent(n,i,o)},this.eventsService=r??new ys,this.resultsWatcher=(0,Ks.watch)(e,i=>[i.results,i.paging],this.sendEvent)}setEnableAnalyticsEvents(e){this.enableAnalyticsEvents=e}setAppName(e){this.appName=e}setAppVersion(e){this.appVersion=e}setDocumentSearch(e){this.document=e}setDocumentSearchFromMap(e){this.setDocumentSearch(this.eventsService.convertMapToAnalyticsDocument(e))}initAppInfo(){let{apiIntegrationIdentifier:e,apiIntegrationAppVersion:r}=w.getState();this.setAppName(e??"unknown"),this.setAppVersion(r??"unknown")}canSendEvent(){if(this.appName==null||this.appVersion==null)return console.debug("ft-search-context.eventManager is not initialized. No events will be sent!"),!1;let{editorMode:e}=w.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,r,i){let o={offline:!1,appVersion:this.appVersion,appName:this.appName,name:yi.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:i?i.totalClustersCount:r.length},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:mn(e.metadataFilters),facets:e.metadataFilters.map(n=>gn(n))}};this.eventsService.sendKhubSearchEvent(o)}sendDocumentSearchEvent(e,r,i){if(e.metadataFilters.find(n=>{var s;return n.key==="ft:publicationId"&&((s=n.valueFilter)===null||s===void 0?void 0:s.values[0])===this.document.id})!==void 0){let n={offline:!1,appVersion:this.appVersion,appName:this.appName,name:yi.DOCUMENT__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:i?i.totalClustersCount:r.length},searchQuery:{terms:e.query},document:this.document};this.eventsService.sendDocumentSearchEvent(n)}}sendResultClickedEvent(e,r){if(!this.canSendEvent())return;let i=this.store.getState().request,o;e.type==nr.TOPIC&&(o={tocId:e.topic.tocId,title:e.topic.title});let n={offline:!1,appVersion:this.appVersion,appName:this.appName,name:yi.SEARCH_PAGE__SELECT,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:mn(i.metadataFilters),facets:i.metadataFilters.map(s=>gn(s))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:o},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchPageSelectEvent(n)}sendResultContextMenuOpenedEvent(e,r){if(!this.canSendEvent())return;let i=this.store.getState().request,o;e.type==nr.TOPIC&&(o={tocId:e.topic.tocId,title:e.topic.title});let n={offline:!1,appVersion:this.appVersion,appName:this.appName,name:yi.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:mn(i.metadataFilters),facets:i.metadataFilters.map(s=>gn(s))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:o},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchResultOpenContextMenuEvent(n)}convertDocument(e){switch(e.type){case nr.MAP:return{id:e.map.mapId,title:e.map.title,type:zr.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case nr.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:zr.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case nr.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:zr.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};case nr.HTML_PACKAGE:return{id:e.htmlPackage.packageId,title:e.htmlPackage.title,type:zr.HTML_PACKAGE,metadata:e.htmlPackage.metadata};case nr.HTML_PACKAGE_PAGE:return{id:e.htmlPackagePage.packageId,title:e.htmlPackagePage.title,type:zr.HTML_PACKAGE,metadata:e.htmlPackagePage.metadata};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var r;return(r=(0,Ks.accessResult)(e))===null||r===void 0?void 0:r.originUrl}}});var Sg,cr,Qe,Te,te,Ec=l(()=>{"use strict";Sg=c(b()),cr=c(F()),Qe=c(m());gc();_i();Vt();ms();xg();fn();Te=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},te=class extends Qe.FtLitElementRedux{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=So.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=r=>this.handleLoadError(r),this.addStore(this.stateManager.store,"search")}return this._stateManager}get eventManager(){return this._eventManager==null&&(this._eventManager=new qs(this.stateManager.store)),this._eventManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.otherQueryParams={},this._appIntegrationInfoReady=!1,this.addStore(w)}render(){return Sg.html`
|
|
684
|
+
`});function sg(t){var e;return((e=(0,pn.accessResult)(t))===null||e===void 0?void 0:e.openMode)===cs.EXTERNAL}function Us(t){return sg(t)?(0,pn.accessResult)(t).originUrl:(0,pn.accessResultUrl)(t)}function ag(t,e){return Gr(e&&sg(t)?"_blank":void 0)}var pn,fc=l(()=>{"use strict";bi();$s();pn=u(m())});var bo,xo,Hs,Vs,js,hn,fn=l(()=>{"use strict";bo=class extends CustomEvent{constructor(e,r){super("ft-search-result-click",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}},xo=class extends CustomEvent{constructor(e,r){super("ft-search-result-open-context-menu",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}},Hs=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e})}},Vs=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e})}},js=class extends CustomEvent{constructor(e,r,i){super("ft-search-results-change",{detail:{request:e,paging:r,spellcheck:i}})}},hn=class t extends Event{constructor(){super(t.eventName)}};hn.eventName="search-context-clear-all-filters"});var dg,o0,gc,vc=l(()=>{"use strict";dg=u(b()),o0={},gc=dg.css`
|
|
685
|
+
`});var hg=l(()=>{"use strict"});var Gt,So=l(()=>{"use strict";(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Gt||(Gt={}))});var fg,n0,mg,gg=l(()=>{"use strict";fg=u(m()),n0={setRequest:(t,e)=>{t.request=e.payload}},mg=t=>fg.FtReduxStore.get({name:"ft-search-"+t,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],sortId:void 0,paging:{page:1,perPage:20},keywordMatch:void 0},liveQuery:"",recentQueries:[],paging:void 0,facets:void 0,spellcheck:void 0,locales:[],results:void 0,announcements:void 0,suggestResults:void 0,configuration:void 0},reducers:n0})});var zs,vg=l(()=>{"use strict";jt();zs=class extends Ve{constructor(e){super(!0,e),this.cache.registerFinal("search-configuration",async()=>(await this.awaitApi).getSearchConfiguration())}async launchSearch(e){let r={...e,metadataFilters:this.sortFilters(e.metadataFilters),facets:[...e.facets].sort((i,o)=>i.id.localeCompare(o.id))};return this.cache.get("search-"+this.hash(r),async()=>(await this.awaitApi).search(e),120*1e3)}async launchSuggest(e){let r={...e,metadataFilters:this.sortFilters(e.metadataFilters)};return this.cache.get("suggest-"+this.hash(r),async()=>(await this.awaitApi).getSuggestions(e),120*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}async getConfiguration(){return this.cache.get("search-configuration")}sortFilters(e){return e.map(r=>r.valueFilter==null?r:{...r,valueFilter:{...r.valueFilter,values:[...r.valueFilter.values].sort((i,o)=>i.localeCompare(o))}}).sort((r,i)=>r.key.localeCompare(i.key))}}});var Re,yg,bg,qs,s0,Co,yc=l(()=>{"use strict";So();Re=u(m());gg();bi();vg();fn();jt();yg=t=>t.request.virtualField===lo.TITLE_ONLY&&t.request.scope===co.DOCUMENTS,bg=t=>t.request.keywordMatch==ls.MANDATORY,qs="ft-recent-queries",s0=20,Co=class t extends Re.FtStateManager{static build(e,r){return new t(mg(e.trim()||"context"),r)}constructor(e,r){super(),this.store=e,this.ignoreEmptyQuery=!1,this.canUpdateUiLocale=!1,this.openExternalDocumentInNewTab=!1,this.onNewNeededRequest=i=>{i==Gt.CLUSTERED_SEARCH&&this.launchSearch(this.buildSearchRequest(this.store.getState()))},this.onStorageEvent=i=>{i.key===qs&&this.loadRecentQueries()},this.localesDebouncer=new Re.Debouncer(10),this.searchDebouncer=new Re.Debouncer(100),this.launchSearch=i=>this.searchDebouncer.run(()=>this.fetchSearchData(i??this.buildSearchRequest(this.store.getState()))),this.buildSearchRequest=i=>({...i.request,facets:this.facetIds.map(o=>({id:o}))}),this.suggestDebouncer=new Re.Debouncer(1e3),this.launchSuggest=i=>this.suggestDebouncer.run(()=>this.fetchSuggestData(i??this.buildSuggestRequest(this.store.getState()))),this.buildSuggestRequest=i=>{var o;return{input:i.liveQuery,metadataFilters:i.request.metadataFilters,sort:(o=i.request.sort)!==null&&o!==void 0?o:[],sortId:i.request.sortId,contentLocale:i.request.contentLocale,scope:i.request.scope,keywordMatch:i.request.keywordMatch}},this.service=r??new zs,this.service.cache.addEventListener("clear-cache",i=>{i.detail.clearedKeys.includes("available-locales")&&this.updateLocales()}),this.searchWatcher=(0,Re.watch)(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=(0,Re.watch)(e,this.buildSuggestRequest,this.launchSuggest)}async initService(){return this.updateLocales(),this.service.getConfiguration().then(e=>{this.store.actions.configuration(e),this.setSortId(this.store.getState().request.sortId)}),this.loadRecentQueries(),this.launchSearch()}addWindowListeners(){window.addEventListener("storage",this.onStorageEvent)}removeWindowListeners(){window.removeEventListener("storage",this.onStorageEvent)}updateSearchRequest(e,r=!1){let i=(0,Re.deepCopy)(this.store.getState().request);delete i.changedByConfiguration,this.store.actions.setRequest({...i,paging:{perPage:i.paging.perPage,page:r?1:i.paging.page},...e})}setQuery(e){this.updateSearchRequest({query:e},!0),this.setLiveQuery(e)}setContentLocale(e){var r,i;let o=(r=this.store.getState().locales)!==null&&r!==void 0?r:[],n=this.store.getState().request.contentLocale;if(e!=n){if(o.length>0){let s=a=>o.some(c=>c.lang==a);s(e)||(e=s(n)?n:o[0].lang)}this.updateSearchRequest({contentLocale:e,metadataFilters:[]},!0),this.canUpdateUiLocale&&(!((i=Jo.localesConfiguration)===null||i===void 0)&&i.searchLanguageSetsUiLanguage)&&e&&Jo.requestUiLocaleUpdate(e)}return e}forceContentLocale(e){this.updateSearchRequest({contentLocale:e})}setPageSize(e){let r=this.store.getState().request;this.updateSearchRequest({paging:{...r.paging,perPage:isNaN(e)?20:(0,Re.minmax)(1,e,1e3)}})}setPageNumber(e){let r=this.store.getState().request;this.updateSearchRequest({paging:{...r.paging,page:isNaN(e)?1:Math.max(1,e)}})}get sortOptions(){var e,r;return(r=(e=this.store.getState().configuration)===null||e===void 0?void 0:e.sortOptions)!==null&&r!==void 0?r:[]}setSort(e){this.updateSearchRequest({sort:e},!0)}setSortId(e,r=!1){var i;let o=r?{changedByConfiguration:!0}:{};if(e==null||this.sortOptions.length==0)return this.updateSearchRequest({sortId:e,...o},!0),e;let n=(i=this.sortOptions.find(s=>s.id==e))!==null&&i!==void 0?i:this.sortOptions[0];return this.updateSearchRequest({sortId:n.id,...o},!0),n.id}setFilters(e){let r=e.filter(i=>!i.valueFilter||i.valueFilter.values.length>0);this.updateSearchRequest({metadataFilters:r},!0)}setClusterSortCriterion(e){this.updateSearchRequest({clusterSortCriterions:e})}setSearchInDocumentTitlesOnly(e){e?this.updateSearchRequest({virtualField:lo.TITLE_ONLY,scope:co.DOCUMENTS},!0):this.updateSearchRequest({virtualField:lo.EVERYWHERE,scope:co.DEFAULT},!0)}setKeywordMatch(e){this.updateSearchRequest({keywordMatch:e},!0)}setVirtualField(e){this.updateSearchRequest({virtualField:e},!0)}get searchInDocumentTitlesOnly(){return yg(this.store.getState())}get keywordMatch(){return bg(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new hn)}addFacet(e){this.facetIds=[...this.facetIds,e]}replaceFacet(e,r){let i=this.facetIds.filter(o=>o!=e);r&&i.push(r),this.facetIds=i}get facetIds(){var e;let r=this.store.getState().request;return[...new Set([...r.facets.map(i=>i.id),...((e=r.metadataFilters)!==null&&e!==void 0?e:[]).map(i=>i.key)])]}set facetIds(e){let i=[...new Set(e)].map(o=>({id:o}));this.updateSearchRequest({facets:i})}setFilter(e,r){this.setValueFilter(e,r)}setValueFilter(e,r){let i=this.store.getState().request.metadataFilters,o={key:e,valueFilter:{values:r,negative:!1}},n=[...i.filter(s=>!s.valueFilter),...i.filter(s=>s.valueFilter&&s.key!==o.key),o];this.setFilters(n)}setDateFilter(e,r){let i=this.store.getState().request.metadataFilters,o={key:e,dateFilter:{type:r}},n=[...i.filter(s=>!s.dateFilter),...i.filter(s=>s.dateFilter&&s.key!==o.key),o];this.setFilters(n)}removeDateFilter(e){let r=this.store.getState().request.metadataFilters,i=[...r.filter(o=>!o.dateFilter),...r.filter(o=>o.dateFilter&&o.key!==e)];this.setFilters(i)}setRangeFilter(e,r,i){let o=this.store.getState().request.metadataFilters,n={key:e,rangeFilter:{from:r,to:i}},s=[...o.filter(a=>!a.rangeFilter),...o.filter(a=>a.rangeFilter&&a.key!==n.key),n];this.setFilters(s)}removeRangeFilter(e){let r=this.store.getState().request.metadataFilters,i=[...r.filter(o=>!o.rangeFilter),...r.filter(o=>o.rangeFilter&&o.key!==e)];this.setFilters(i)}setLiveQuery(e){this.store.actions.liveQuery(e)}setRequest(e){this.updateSearchRequest({...e,facets:this.store.getState().request.facets},!0),this.setLiveQuery(e.query)}setScope(e){this.updateSearchRequest({scope:e})}setOtherQueryParams(e){this.updateSearchRequest({otherQueryParams:e})}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}setCanUpdateUiLocale(e){this.canUpdateUiLocale=e}loadRecentQueries(){var e;this.store.actions.recentQueries(JSON.parse((e=window.localStorage.getItem(qs))!==null&&e!==void 0?e:"[]"))}addRecentQuery(e){if(e=e.trim(),e.length===0)return;let r=e.toLowerCase(),i=this.store.getState().recentQueries.filter(o=>o.toLowerCase()!==r).slice(0,s0-1);i.unshift(e),this.setRecentQueries(i)}removeRecentQuery(e){let r=e.trim().toLowerCase(),i=this.store.getState().recentQueries,o=i.filter(n=>n.toLowerCase()!==r);i.length!==o.length&&this.setRecentQueries(o)}setRecentQueries(e){let r=JSON.stringify(e);window.localStorage.setItem(qs,r),window.dispatchEvent(new StorageEvent("storage",{key:qs,newValue:r,storageArea:window.localStorage,url:window.location.href}))}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.locales((await this.service.getAvailableSearchLocales()).contentLocales))}async fetchSearchData(e){var r,i,o,n,s;if((r=this.cancelableSearch)===null||r===void 0||r.cancel(),!!this.isRequestNeeded(Gt.CLUSTERED_SEARCH))try{if(this.store.actions.paging(void 0),this.ignoreEmptyQuery&&e.query.length==0)this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0);else{!((i=this.store.getState().results)===null||i===void 0)&&i.length||this.store.actions.results(void 0),this.cancelableSearch=(0,Re.cancelable)(this.service.launchSearch(e));let a=await this.cancelableSearch;if(this.store.actions.announcements(a.announcements),a.paging.currentPage<=1)this.store.actions.results(a.results),this.store.actions.facets(a.facets),this.store.actions.spellcheck(a.spellcheck);else{let c=((o=this.store.getState().results)!==null&&o!==void 0?o:[]).concat(a.results);this.store.actions.results(c),this.store.commands.clear(/^focus-result-/),this.store.commands.add({type:`focus-result-${(a.paging.currentPage-1)*((n=e.paging.perPage)!==null&&n!==void 0?n:20)+1}`})}this.store.actions.paging(a.paging)}}catch(a){a instanceof Re.CanceledPromiseError||(console.error(a),(s=this.errorHandler)===null||s===void 0||s.call(this,a))}}async fetchSuggestData(e){var r;try{if((r=this.cancelableSuggest)===null||r===void 0||r.cancel(),e.input.length<3){this.store.actions.suggestResults([]);return}this.cancelableSuggest=(0,Re.cancelable)(this.service.launchSuggest(e));let i=await this.cancelableSuggest;this.store.actions.suggestResults(i.suggestions)}catch(i){!(i instanceof Re.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(i)}}clear(){this.store.clear()}clearResults(){this.store.actions.paging(void 0),this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0)}}});var Eo,xc,xg,Sc,Sg,bc,a0,l0,Mt,_i=l(()=>{"use strict";Eo=u(m()),xc=u(F());So();yc();xg=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Sc=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Sg=Symbol("registerInterval"),bc=Symbol("registerAttempts"),a0=40,l0=(0,Eo.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(i){var o,n,s;super.willUpdate(i),i.has("neededSearchRequests")&&((o=this.stateManager)===null||o===void 0||o.unregisterComponent(this,(n=i.get("neededSearchRequests"))!==null&&n!==void 0?n:[]),(s=this.stateManager)===null||s===void 0||s.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[bc]=0,this.tryToRegisterToContext(),this[Sg]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[bc]>a0?window.clearInterval(this[Sg]):(this[bc]++,this.dispatchEvent(new Sc))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return xg([(0,xc.state)()],e.prototype,"stateManager",void 0),xg([(0,xc.state)({hasChanged:Eo.hasChanged})],e.prototype,"neededSearchRequests",void 0),e}),Mt=class extends l0(Eo.FtLitElementRedux){}});function mn(t){return t.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function gn(t){var e,r;return t.dateFilter?{key:t.key,type:"DATE",dateValue:t.dateFilter.type}:t.rangeFilter?{key:t.key,type:"RANGE",from:t.rangeFilter.from,to:t.rangeFilter.to}:{key:t.key,values:(e=t.valueFilter)===null||e===void 0?void 0:e.values,negative:(r=t.valueFilter)===null||r===void 0?void 0:r.negative}}var Cc=l(()=>{"use strict"});var Ws,Ks,Cg=l(()=>{"use strict";Ws=u(m());bi();jt();Cc();Ks=class{constructor(e,r){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.enableAnalyticsEvents=!0,this.appName=void 0,this.appVersion=void 0,this.document=void 0,this.sendEvent=([i,o])=>{if(!this.canSendEvent()||!i)return;let n=this.store.getState().request;this.document==null?this.sendKhubSearchEvent(n,i,o):this.sendDocumentSearchEvent(n,i,o)},this.eventsService=r??new ys,this.resultsWatcher=(0,Ws.watch)(e,i=>[i.results,i.paging],this.sendEvent)}setEnableAnalyticsEvents(e){this.enableAnalyticsEvents=e}setAppName(e){this.appName=e}setAppVersion(e){this.appVersion=e}setDocumentSearch(e){this.document=e}setDocumentSearchFromMap(e){this.setDocumentSearch(this.eventsService.convertMapToAnalyticsDocument(e))}initAppInfo(){let{apiIntegrationIdentifier:e,apiIntegrationAppVersion:r}=w.getState();this.setAppName(e??"unknown"),this.setAppVersion(r??"unknown")}canSendEvent(){if(this.appName==null||this.appVersion==null)return console.debug("ft-search-context.eventManager is not initialized. No events will be sent!"),!1;let{editorMode:e}=w.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,r,i){let o={offline:!1,appVersion:this.appVersion,appName:this.appName,name:yi.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:i?i.totalClustersCount:r.length},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:mn(e.metadataFilters),facets:e.metadataFilters.map(n=>gn(n))}};this.eventsService.sendKhubSearchEvent(o)}sendDocumentSearchEvent(e,r,i){if(e.metadataFilters.find(n=>{var s;return n.key==="ft:publicationId"&&((s=n.valueFilter)===null||s===void 0?void 0:s.values[0])===this.document.id})!==void 0){let n={offline:!1,appVersion:this.appVersion,appName:this.appName,name:yi.DOCUMENT__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:i?i.totalClustersCount:r.length},searchQuery:{terms:e.query},document:this.document};this.eventsService.sendDocumentSearchEvent(n)}}sendResultClickedEvent(e,r){if(!this.canSendEvent())return;let i=this.store.getState().request,o;e.type==sr.TOPIC&&(o={tocId:e.topic.tocId,title:e.topic.title});let n={offline:!1,appVersion:this.appVersion,appName:this.appName,name:yi.SEARCH_PAGE__SELECT,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:mn(i.metadataFilters),facets:i.metadataFilters.map(s=>gn(s))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:o},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchPageSelectEvent(n)}sendResultContextMenuOpenedEvent(e,r){if(!this.canSendEvent())return;let i=this.store.getState().request,o;e.type==sr.TOPIC&&(o={tocId:e.topic.tocId,title:e.topic.title});let n={offline:!1,appVersion:this.appVersion,appName:this.appName,name:yi.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:mn(i.metadataFilters),facets:i.metadataFilters.map(s=>gn(s))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:o},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchResultOpenContextMenuEvent(n)}convertDocument(e){switch(e.type){case sr.MAP:return{id:e.map.mapId,title:e.map.title,type:qr.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case sr.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:qr.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case sr.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:qr.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};case sr.HTML_PACKAGE:return{id:e.htmlPackage.packageId,title:e.htmlPackage.title,type:qr.HTML_PACKAGE,metadata:e.htmlPackage.metadata};case sr.HTML_PACKAGE_PAGE:return{id:e.htmlPackagePage.packageId,title:e.htmlPackagePage.title,type:qr.HTML_PACKAGE,metadata:e.htmlPackagePage.metadata};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var r;return(r=(0,Ws.accessResult)(e))===null||r===void 0?void 0:r.originUrl}}});var Eg,cr,Ze,Te,te,Ec=l(()=>{"use strict";Eg=u(b()),cr=u(F()),Ze=u(m());vc();_i();jt();ms();Cg();fn();Te=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},te=class extends Ze.FtLitElementRedux{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=Co.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=r=>this.handleLoadError(r),this.addStore(this.stateManager.store,"search")}return this._stateManager}get eventManager(){return this._eventManager==null&&(this._eventManager=new Ks(this.stateManager.store)),this._eventManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.otherQueryParams={},this._appIntegrationInfoReady=!1,this.addStore(w)}render(){return Eg.html`
|
|
686
686
|
<slot @register-ft-search-component=${this.registerComponent} @ft-search-result-click=${this.onResultClicked}
|
|
687
687
|
@ft-search-result-open-context-menu=${this.onResultContextMenuOpened}></slot>
|
|
688
|
-
`}willUpdate(e){super.willUpdate(e),e.has("_appIntegrationInfoReady")&&this._appIntegrationInfoReady&&this.eventManager.initAppInfo(),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.forceContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sortId")&&this.stateManager.setSortId(this.sortId),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("keywordMatch")&&this.stateManager.setKeywordMatch(this.keywordMatch),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("otherQueryParams")&&this.otherQueryParams!==void 0&&this.stateManager.setOtherQueryParams(this.otherQueryParams),e.has("session")&&this.session!==void 0&&e.get("session")!=null&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.stateManager.clearResults(),this.stateManager.setQuery(this.query),this.stateManager.forceContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort),this.stateManager.setOtherQueryParams(this.otherQueryParams)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new
|
|
688
|
+
`}willUpdate(e){super.willUpdate(e),e.has("_appIntegrationInfoReady")&&this._appIntegrationInfoReady&&this.eventManager.initAppInfo(),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.forceContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sortId")&&this.stateManager.setSortId(this.sortId),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("keywordMatch")&&this.stateManager.setKeywordMatch(this.keywordMatch),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("otherQueryParams")&&this.otherQueryParams!==void 0&&this.stateManager.setOtherQueryParams(this.otherQueryParams),e.has("session")&&this.session!==void 0&&e.get("session")!=null&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.stateManager.clearResults(),this.stateManager.setQuery(this.query),this.stateManager.forceContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort),this.stateManager.setOtherQueryParams(this.otherQueryParams),this.stateManager.addWindowListeners()}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeWindowListeners(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new Vs(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new js(this.request,this.paging,this.spellcheckAutocorrect))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new Hs(e))}reloadSavedSearches(){Dl.clearMySearches()}clear(){this.stateManager.clear()}onResultClicked(e){this.eventManager.sendResultClickedEvent(e.detail.result,e.detail.rank)}onResultContextMenuOpened(e){this.eventManager.sendResultContextMenuOpenedEvent(e.detail.result,e.detail.rank)}};te.elementDefinitions={};te.styles=gc;Te([(0,Ze.redux)({store:w.name})],te.prototype,"session",void 0);Te([(0,cr.property)()],te.prototype,"query",void 0);Te([(0,cr.property)()],te.prototype,"contentLocale",void 0);Te([(0,Ze.numberProperty)()],te.prototype,"pageSize",void 0);Te([(0,cr.property)({type:Boolean})],te.prototype,"searchInDocumentTitlesOnly",void 0);Te([(0,cr.property)()],te.prototype,"keywordMatch",void 0);Te([(0,cr.property)()],te.prototype,"scope",void 0);Te([(0,cr.property)()],te.prototype,"virtualField",void 0);Te([(0,cr.property)({type:Boolean})],te.prototype,"ignoreEmptyQuery",void 0);Te([(0,Ze.redux)({store:w.name})],te.prototype,"openExternalDocumentInNewTab",void 0);Te([(0,Ze.jsonProperty)([])],te.prototype,"filters",void 0);Te([(0,cr.property)()],te.prototype,"sortId",void 0);Te([(0,Ze.jsonProperty)([])],te.prototype,"sort",void 0);Te([(0,Ze.jsonProperty)({})],te.prototype,"otherQueryParams",void 0);Te([(0,Ze.redux)({store:"search"})],te.prototype,"request",void 0);Te([(0,Ze.redux)({store:"search"})],te.prototype,"paging",void 0);Te([(0,Ze.redux)({store:"search",selector:t=>t.spellcheck})],te.prototype,"spellcheckAutocorrect",void 0);Te([(0,Ze.redux)({store:w.name,selector:t=>t.apiIntegrationIdentifier!==void 0&&t.apiIntegrationAppVersion!==void 0})],te.prototype,"_appIntegrationInfoReady",void 0);Te([(0,cr.property)({attribute:!1})],te.prototype,"searchServiceProvider",void 0)});var Ag,Og=l(()=>{"use strict";Ec();Ag={"ft-search-context":te}});var wg,Rg=l(()=>{"use strict";wg=u(m());Og();(0,wg.customElements)(Ag)});var Tg={};ni(Tg,{FtSearchContext:()=>te,FtSearchContextCssVariables:()=>o0,FtSearchStateManager:()=>Co,convertMetadataFilterToAnalyticsFacet:()=>gn,getAnalyticsLastUpdate:()=>mn,keywordMatchSelector:()=>bg,searchInDocumentTitlesOnlySelector:()=>yg,styles:()=>gc});var _g=l(()=>{"use strict";vc();hg();Ec();yc();Cc();Rg()});var Lg=l(()=>{"use strict"});var wr,Ac=l(()=>{"use strict";Pt();wr=ar.build("designedSearchInput")});var Rr=Hi((G_,kg)=>{kg.exports=ftGlobals.litRepeat});var Nt,Oc=l(()=>{"use strict";(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(Nt||(Nt={}))});var Pg,$g,wc=l(()=>{"use strict";Pg=u(b()),$g=Pg.css`
|
|
689
689
|
.ft-size-watcher--pixel {
|
|
690
690
|
width: 0;
|
|
691
691
|
height: 0;
|
|
@@ -704,11 +704,11 @@
|
|
|
704
704
|
.ft-size-watcher--local .ft-size-watcher--watcher {
|
|
705
705
|
width: 100%;
|
|
706
706
|
}
|
|
707
|
-
`});var
|
|
707
|
+
`});var Ig,Li,Gs,vn,Rc,gt,Tc=l(()=>{"use strict";Ig=u(b()),Li=u(F()),Gs=u(m());Oc();wc();vn=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Rc=class extends CustomEvent{constructor(e,r){super("change",{detail:{size:e,category:r}})}},gt=class extends Gs.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=Nt.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new Gs.Debouncer}render(){return Ig.html`
|
|
708
708
|
<div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
|
|
709
709
|
<div class="ft-size-watcher--watcher"></div>
|
|
710
710
|
</div>
|
|
711
|
-
`}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=
|
|
711
|
+
`}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=Nt.S:this.size<976?this.category=Nt.M:this.size<1024?this.category=Nt.L:this.size<1440?this.category=Nt.XL:this.category=Nt.XXL,this.dispatchEvent(new Rc(this.size,this.category)))},this.debounceTimeout)}};gt.elementDefinitions={};gt.styles=$g;vn([(0,Li.property)({type:Number})],gt.prototype,"debounceTimeout",void 0);vn([(0,Li.property)({type:Boolean})],gt.prototype,"local",void 0);vn([(0,Li.property)({type:Number,reflect:!0})],gt.prototype,"size",void 0);vn([(0,Li.property)({type:String,reflect:!0})],gt.prototype,"category",void 0);vn([(0,Li.query)(".ft-size-watcher--watcher")],gt.prototype,"watcher",void 0)});var Dg,Mg=l(()=>{"use strict";Tc();Dg={"ft-size-watcher":gt}});var Ng,Fg=l(()=>{"use strict";Ng=u(m());Mg();(0,Ng.customElements)(Dg)});var Bg=l(()=>{"use strict";Tc();wc();Oc();Fg()});function Qs(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Ug(t){return Qs(t).split("|").pop()}function Hg(t){return Qs(t).split("|").join(" > ")}function Vg(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>Vg(r,t.selected)),value:t.value}}function jg(t){return(0,_c.flatDeep)(t.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]}).filter(e=>e.selected).map(e=>e.label)}function Lc(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>Vg(e,!1))}}function zg(t){return(0,_c.flatDeep)(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var _c,kc=l(()=>{"use strict";_c=u(m())});var qg,Z,yn,Kg,Pc=l(()=>{"use strict";qg=u(b()),Z=u(m());Ri();Ut();yn={buttonMoreColor:Z.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",Z.designSystemVariables.colorOnSurface),borderRadiusM:Z.FtCssVariableFactory.external(Z.designSystemVariables.borderRadiusM,"Design system"),colorOutline:Z.FtCssVariableFactory.external(Z.designSystemVariables.colorOutline,"Design system"),colorOnSurface:Z.FtCssVariableFactory.external(Z.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:Z.FtCssVariableFactory.external(Z.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:Z.FtCssVariableFactory.external(Z.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:Z.FtCssVariableFactory.external(Z.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:Z.FtCssVariableFactory.external(Z.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:Z.FtCssVariableFactory.external(we.fontFamily,"Body2 typography"),fontSize:Z.FtCssVariableFactory.external(we.fontSize,"Body2 typography"),fontWeight:Z.FtCssVariableFactory.external(we.fontWeight,"Body2 typography"),letterSpacing:Z.FtCssVariableFactory.external(we.letterSpacing,"Body2 typography"),lineHeight:Z.FtCssVariableFactory.external(we.lineHeight,"Body2 typography"),textTransform:Z.FtCssVariableFactory.external(we.textTransform,"Body2 typography")},Kg=qg.css`
|
|
712
712
|
.ft-filter-level--container {
|
|
713
713
|
display: flex;
|
|
714
714
|
flex-direction: column;
|
|
@@ -778,7 +778,7 @@
|
|
|
778
778
|
margin: 10px 0;
|
|
779
779
|
color: ${yn.colorOnSurfaceMedium};
|
|
780
780
|
}
|
|
781
|
-
`});var
|
|
781
|
+
`});var Pe,Wg,vt,Gg,$c=l(()=>{"use strict";Pe=u(m()),Wg=u(b());me();Ge();vt={textColor:Pe.FtCssVariableFactory.extend("--ft-checkbox-text-color","",Pe.designSystemVariables.colorOnSurfaceHigh),fontSize:Pe.FtCssVariableFactory.extend("--ft-checkbox-font-size","",C.fontSize),activeColor:Pe.FtCssVariableFactory.extend("--ft-checkbox-active-color","",Pe.designSystemVariables.colorPrimary),checkColor:Pe.FtCssVariableFactory.extend("--ft-checkbox-check-color","",Pe.designSystemVariables.colorOnPrimary),borderColor:Pe.FtCssVariableFactory.extend("--ft-checkbox-border-color","",Pe.designSystemVariables.colorOnSurfaceMedium),disabledColor:Pe.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",Pe.designSystemVariables.colorOnSurfaceDisabled),errorColor:Pe.FtCssVariableFactory.extend("--ft-checkbox-error-color","",Pe.designSystemVariables.colorError)},Gg=Wg.css`
|
|
782
782
|
* {
|
|
783
783
|
box-sizing: border-box;
|
|
784
784
|
}
|
|
@@ -859,7 +859,7 @@
|
|
|
859
859
|
|
|
860
860
|
.ft-checkbox.ft-checkbox--error {
|
|
861
861
|
color: ${vt.errorColor};
|
|
862
|
-
${(0
|
|
862
|
+
${(0,Pe.setVariable)(q.color,vt.errorColor)};
|
|
863
863
|
|
|
864
864
|
.ft-checkbox--box {
|
|
865
865
|
border-color: ${vt.errorColor};
|
|
@@ -871,7 +871,7 @@
|
|
|
871
871
|
}
|
|
872
872
|
}
|
|
873
873
|
}
|
|
874
|
-
`});var
|
|
874
|
+
`});var Ys,Qt,Qg,Yg,Tr,Ic,$e,Dc=l(()=>{"use strict";Ys=u(b()),Qt=u(F()),Qg=u(m()),Yg=u(it());Ge();me();$c();Tr=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Ic=class extends CustomEvent{constructor(e){super("change",{detail:e})}},$e=class extends Qg.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1}get checkboxClasses(){return{"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.indeterminate?!1:this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled}}renderBoxContainer(){return Ys.html`
|
|
875
875
|
<div class="ft-checkbox--box-container" part="checkbox-box-container">
|
|
876
876
|
<ft-ripple part="checkbox-ripple"
|
|
877
877
|
?disabled=${this.disabled}
|
|
@@ -893,19 +893,19 @@
|
|
|
893
893
|
@change=${this.onChange}
|
|
894
894
|
>
|
|
895
895
|
</div>
|
|
896
|
-
`}render(){return
|
|
897
|
-
<label class="${(0,
|
|
896
|
+
`}render(){return Ys.html`
|
|
897
|
+
<label class="${(0,Yg.classMap)(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
|
|
898
898
|
${this.renderBoxContainer()}
|
|
899
|
-
<ft-typography variant="${
|
|
899
|
+
<ft-typography variant="${Q.body2}" part="checkbox-body">
|
|
900
900
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
901
901
|
</ft-typography>
|
|
902
902
|
</label>
|
|
903
|
-
`}renderBoxIcon(){return
|
|
903
|
+
`}renderBoxIcon(){return Ys.html`
|
|
904
904
|
<svg class="ft-checkbox--checkmark" viewBox="0 0 24 24" part="checkbox-check" aria-hidden="true">
|
|
905
905
|
<path class="ft-checkbox--checkmark-path" fill="none"
|
|
906
906
|
d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
|
|
907
907
|
</svg>
|
|
908
|
-
`}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
|
|
908
|
+
`}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 Ic(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)}};$e.elementDefinitions={"ft-ripple":k,"ft-typography":V};$e.styles=Gg;Tr([(0,Qt.property)()],$e.prototype,"name",void 0);Tr([(0,Qt.property)()],$e.prototype,"value",void 0);Tr([(0,Qt.property)({type:Boolean,reflect:!0})],$e.prototype,"checked",void 0);Tr([(0,Qt.property)({type:Boolean})],$e.prototype,"indeterminate",void 0);Tr([(0,Qt.property)({type:Boolean})],$e.prototype,"disabled",void 0);Tr([(0,Qt.property)({type:Boolean})],$e.prototype,"error",void 0);Tr([(0,Qt.query)(".ft-checkbox")],$e.prototype,"container",void 0);Tr([(0,Qt.query)("ft-ripple")],$e.prototype,"ripple",void 0);Tr([(0,Qt.query)("input")],$e.prototype,"input",void 0)});var Xg=l(()=>{"use strict"});var Zg,Jg=l(()=>{"use strict";Dc();Zg={"ft-checkbox":$e}});var ev,tv=l(()=>{"use strict";ev=u(m());Jg();(0,ev.customElements)(Zg)});var rv=l(()=>{"use strict";Dc();$c();Xg();tv()});var iv,lt,Yr,ov,Mc=l(()=>{"use strict";iv=u(b()),lt=u(m());me();Yr={textColor:lt.FtCssVariableFactory.extend("--ft-radio-text-color","",lt.designSystemVariables.colorOnSurfaceHigh),fontSize:lt.FtCssVariableFactory.extend("--ft-radio-font-size","",C.fontSize),colorPrimary:lt.FtCssVariableFactory.external(lt.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:lt.FtCssVariableFactory.external(lt.designSystemVariables.colorOnPrimary,"Design system"),borderColor:lt.FtCssVariableFactory.extend("--ft-radio-border-color","",lt.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:lt.FtCssVariableFactory.external(lt.designSystemVariables.colorOnSurfaceDisabled,"Design system")},ov=iv.css`
|
|
909
909
|
* {
|
|
910
910
|
box-sizing: border-box;
|
|
911
911
|
}
|
|
@@ -994,8 +994,8 @@
|
|
|
994
994
|
.ft-radio ft-typography {
|
|
995
995
|
padding-right: 2px;
|
|
996
996
|
}
|
|
997
|
-
`});var
|
|
998
|
-
<div class="${(0,
|
|
997
|
+
`});var nv,ur,sv,av,Xr,Xs,Le,Nc=l(()=>{"use strict";nv=u(b()),ur=u(F()),sv=u(m()),av=u(it());Ge();me();Pn();Mc();Xr=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Xs=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},Le=class extends sv.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 nv.html`
|
|
998
|
+
<div class="${(0,av.classMap)(this.radioClasses)}"
|
|
999
999
|
@click=${this.onClick}>
|
|
1000
1000
|
<div class="ft-radio--box-container">
|
|
1001
1001
|
<ft-ripple
|
|
@@ -1015,12 +1015,12 @@
|
|
|
1015
1015
|
>
|
|
1016
1016
|
</div>
|
|
1017
1017
|
<label for="radio-button" inert>
|
|
1018
|
-
<ft-typography variant="${
|
|
1018
|
+
<ft-typography variant="${Q.body2}">
|
|
1019
1019
|
<slot></slot>
|
|
1020
1020
|
</ft-typography>
|
|
1021
1021
|
</label>
|
|
1022
1022
|
</div>
|
|
1023
|
-
`}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
|
|
1023
|
+
`}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 Xs(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 Xs(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())}};Le.elementDefinitions={"ft-ripple":k,"ft-typography":V};Le.styles=ov;Xr([(0,ur.property)()],Le.prototype,"name",void 0);Xr([(0,ur.property)()],Le.prototype,"value",void 0);Xr([(0,ur.property)({type:Boolean,reflect:!0})],Le.prototype,"checked",void 0);Xr([(0,ur.property)({attribute:"aria-checked",reflect:!0})],Le.prototype,"ariaChecked",void 0);Xr([(0,ur.property)({type:Boolean})],Le.prototype,"disabled",void 0);Xr([(0,ur.query)(".ft-radio")],Le.prototype,"container",void 0);Xr([(0,ur.query)("ft-ripple")],Le.prototype,"ripple",void 0);Xr([(0,ur.query)("input")],Le.prototype,"input",void 0)});var lv=l(()=>{"use strict"});var cv,uv,Fc=l(()=>{"use strict";cv=u(b()),uv=cv.css`
|
|
1024
1024
|
:host {
|
|
1025
1025
|
display: block;
|
|
1026
1026
|
}
|
|
@@ -1028,12 +1028,12 @@
|
|
|
1028
1028
|
:host(:focus-visible) {
|
|
1029
1029
|
outline: none;
|
|
1030
1030
|
}
|
|
1031
|
-
`});var
|
|
1031
|
+
`});var pv,Zr,dv,bn,yt,Bc=l(()=>{"use strict";pv=u(m()),Zr=u(F()),dv=u(b());Fc();bn=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},yt=class extends pv.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 dv.html`
|
|
1032
1032
|
<slot @slotchange=${this.onSlotChange}
|
|
1033
1033
|
@change=${this.onChange}
|
|
1034
1034
|
@keydown=${this.onKeyDown}
|
|
1035
1035
|
></slot>
|
|
1036
|
-
`}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()}};yt.elementDefinitions={};yt.styles=
|
|
1036
|
+
`}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()}};yt.elementDefinitions={};yt.styles=uv;bn([(0,Zr.property)()],yt.prototype,"name",void 0);bn([(0,Zr.property)({reflect:!0,attribute:"role"})],yt.prototype,"role",void 0);bn([(0,Zr.property)({reflect:!0,attribute:"aria-labelledby"})],yt.prototype,"ariaLabelledBy",void 0);bn([(0,Zr.queryAssignedElements)()],yt.prototype,"assignedElements",void 0);bn([(0,Zr.state)()],yt.prototype,"currentSelectedIndex",void 0)});var hv=l(()=>{"use strict"});var fv,mv=l(()=>{"use strict";Nc();Bc();fv={"ft-radio":Le,"ft-radio-group":yt}});var gv,vv=l(()=>{"use strict";gv=u(m());mv();(0,gv.customElements)(fv)});var Uc=l(()=>{"use strict";Nc();lv();Mc();Bc();hv();Fc();vv()});var bt,_e,yv,ct,Ie,Hc,de,bv=l(()=>{"use strict";bt=u(b()),_e=u(F()),yv=u(Rr()),ct=u(m());Wt();me();Ge();Or();rv();Uc();Pc();Pt();Ie=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Hc={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},de=class extends(0,ct.withAnalytics)(st((0,ct.withAriaNotification)(ct.FtLitElement)),Hc){constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new ct.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 bt.html`
|
|
1037
1037
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
1038
1038
|
${this.parent==null?null:bt.html`
|
|
1039
1039
|
<div tabindex="0"
|
|
@@ -1046,15 +1046,15 @@
|
|
|
1046
1046
|
@click=${this.goBackOnClick}>
|
|
1047
1047
|
<ft-ripple></ft-ripple>
|
|
1048
1048
|
<ft-icon>thin_arrow_left</ft-icon>
|
|
1049
|
-
<ft-typography variant="${
|
|
1049
|
+
<ft-typography variant="${Q.body2}">${this.parent.label}</ft-typography>
|
|
1050
1050
|
</div>
|
|
1051
1051
|
`}
|
|
1052
1052
|
${this.filteredOptions.length===0&&this.noValuesLabel?bt.html`
|
|
1053
|
-
<ft-typography class="ft-filter-level--no-values" element="span" variant="${
|
|
1053
|
+
<ft-typography class="ft-filter-level--no-values" element="span" variant="${Q.body2}">
|
|
1054
1054
|
${this.noValuesLabel}
|
|
1055
1055
|
</ft-typography>
|
|
1056
1056
|
`:bt.nothing}
|
|
1057
|
-
${(0,
|
|
1057
|
+
${(0,yv.repeat)(e,r=>r.value,r=>{var i;return bt.html`
|
|
1058
1058
|
<div class="ft-filter-level--option" part="options" tabindex="-1">
|
|
1059
1059
|
${this.multivalued?this.buildMultiValuedOption(r):this.buildMonoValuedOption(r)}
|
|
1060
1060
|
${this.preventNavigation||r.selected||((i=r.subOptions)!==null&&i!==void 0?i:[]).length===0?bt.nothing:bt.html`
|
|
@@ -1101,7 +1101,7 @@
|
|
|
1101
1101
|
@change=${r=>this.optionsChanged(r,e)}>
|
|
1102
1102
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1103
1103
|
</ft-radio>
|
|
1104
|
-
`}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)})}};
|
|
1104
|
+
`}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)})}};de.elementDefinitions={"ft-button":_,"ft-ripple":k,"ft-typography":V,"ft-checkbox":$e,"ft-icon":oe,"ft-radio":Le};de.styles=Kg;Ie([(0,_e.property)({type:String})],de.prototype,"filterId",void 0);Ie([(0,_e.property)({type:Object})],de.prototype,"parent",void 0);Ie([(0,_e.property)({type:Array,hasChanged:ct.hasChanged})],de.prototype,"options",void 0);Ie([(0,_e.property)({type:Boolean})],de.prototype,"multivalued",void 0);Ie([(0,_e.property)({type:Boolean})],de.prototype,"disabled",void 0);Ie([(0,_e.property)({type:Boolean})],de.prototype,"hideSelectedOptions",void 0);Ie([(0,_e.property)({type:Boolean})],de.prototype,"displayCount",void 0);Ie([(0,_e.property)({type:Boolean})],de.prototype,"preventNavigation",void 0);Ie([(0,_e.property)({type:String})],de.prototype,"filter",void 0);Ie([(0,_e.property)({type:String})],de.prototype,"moreValuesButtonLabel",void 0);Ie([(0,_e.property)({type:String})],de.prototype,"noValuesLabel",void 0);Ie([(0,_e.property)()],de.prototype,"filteredOptionsNumberAriaNotification",void 0);Ie([(0,ct.numberProperty)()],de.prototype,"displayedValuesLimit",void 0);Ie([(0,_e.query)(".ft-filter-level--container")],de.prototype,"container",void 0);Ie([(0,_e.state)()],de.prototype,"radios",void 0);Ie([(0,_e.state)()],de.prototype,"displayedPages",void 0);Ie([(0,_e.state)()],de.prototype,"filteredOptions",void 0)});var xv,Yt,Je,Sv,Zs=l(()=>{"use strict";xv=u(b()),Yt=u(m());Ri();Je={buttonsColor:Yt.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",Yt.designSystemVariables.colorPrimary),buttonsZIndex:Yt.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:Yt.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Yt.FtCssVariableFactory.external(Yt.designSystemVariables.colorSurface,"Design system")},Sv=xv.css`
|
|
1105
1105
|
.ft-snap-scroll {
|
|
1106
1106
|
box-sizing: border-box;
|
|
1107
1107
|
position: relative;
|
|
@@ -1136,7 +1136,7 @@
|
|
|
1136
1136
|
flex-wrap: nowrap;
|
|
1137
1137
|
align-items: flex-start;
|
|
1138
1138
|
justify-content: flex-start;
|
|
1139
|
-
gap: ${
|
|
1139
|
+
gap: ${Je.gap};
|
|
1140
1140
|
}
|
|
1141
1141
|
|
|
1142
1142
|
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
|
|
@@ -1179,11 +1179,11 @@
|
|
|
1179
1179
|
.ft-snap-scroll--next {
|
|
1180
1180
|
position: absolute;
|
|
1181
1181
|
display: flex;
|
|
1182
|
-
z-index: ${
|
|
1182
|
+
z-index: ${Je.buttonsZIndex};
|
|
1183
1183
|
opacity: 1;
|
|
1184
1184
|
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
1185
|
-
${(0,
|
|
1186
|
-
${(0,
|
|
1185
|
+
${(0,Yt.setVariable)(D.backgroundColor,"transparent")};
|
|
1186
|
+
${(0,Yt.setVariable)(D.color,Je.buttonsColor)};
|
|
1187
1187
|
}
|
|
1188
1188
|
|
|
1189
1189
|
.ft-snap-scroll--previous[hidden],
|
|
@@ -1196,37 +1196,37 @@
|
|
|
1196
1196
|
top: 0;
|
|
1197
1197
|
left: -1px;
|
|
1198
1198
|
bottom: 0;
|
|
1199
|
-
background: linear-gradient(to right, ${
|
|
1199
|
+
background: linear-gradient(to right, ${Je.colorSurface} 50%, var(--snap-scroll-transparent-color));
|
|
1200
1200
|
}
|
|
1201
1201
|
|
|
1202
1202
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous {
|
|
1203
1203
|
top: -1px;
|
|
1204
1204
|
left: 0;
|
|
1205
1205
|
right: 0;
|
|
1206
|
-
background: linear-gradient(to bottom, ${
|
|
1206
|
+
background: linear-gradient(to bottom, ${Je.colorSurface} 50%, var(--snap-scroll-transparent-color));
|
|
1207
1207
|
}
|
|
1208
1208
|
|
|
1209
1209
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next {
|
|
1210
1210
|
top: 0;
|
|
1211
1211
|
right: -1px;
|
|
1212
1212
|
bottom: 0;
|
|
1213
|
-
background: linear-gradient(to left, ${
|
|
1213
|
+
background: linear-gradient(to left, ${Je.colorSurface} 50%, var(--snap-scroll-transparent-color));
|
|
1214
1214
|
}
|
|
1215
1215
|
|
|
1216
1216
|
.ft-snap-scroll--vertical .ft-snap-scroll--next {
|
|
1217
1217
|
left: 0;
|
|
1218
1218
|
right: 0;
|
|
1219
1219
|
bottom: -1px;
|
|
1220
|
-
background: linear-gradient(to top, ${
|
|
1220
|
+
background: linear-gradient(to top, ${Je.colorSurface} 50%, var(--snap-scroll-transparent-color));
|
|
1221
1221
|
}
|
|
1222
1222
|
|
|
1223
1223
|
.ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
|
|
1224
1224
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
|
|
1225
1225
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
|
|
1226
1226
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1227
|
-
background-color: ${
|
|
1227
|
+
background-color: ${Je.colorSurface};
|
|
1228
1228
|
}
|
|
1229
|
-
`});var
|
|
1229
|
+
`});var Cv,xt,ki,Ev,pr,Vc,Ee,jc=l(()=>{"use strict";Cv=u(b()),xt=u(F()),ki=u(m());Wt();Ev=u(it());Zs();pr=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Vc=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},Ee=class extends ki.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 ki.Debouncer(200),this.updateScrollDebouncer=new ki.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,o=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<o||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,Ev.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":ki.isSafari}),r=this.controls&&this.withScroll;return Cv.html`
|
|
1230
1230
|
<div part="container" class="${e}">
|
|
1231
1231
|
<ft-button
|
|
1232
1232
|
class="ft-snap-scroll--previous"
|
|
@@ -1250,7 +1250,7 @@
|
|
|
1250
1250
|
@click=${this.next}
|
|
1251
1251
|
></ft-button>
|
|
1252
1252
|
</div>
|
|
1253
|
-
`}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
|
|
1253
|
+
`}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 Vc(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)}};Ee.elementDefinitions={"ft-button":_};Ee.styles=Sv;pr([(0,xt.property)({type:Boolean})],Ee.prototype,"horizontal",void 0);pr([(0,xt.property)({type:Boolean})],Ee.prototype,"hideScrollbar",void 0);pr([(0,xt.property)({type:Boolean})],Ee.prototype,"controls",void 0);pr([(0,xt.property)({type:Boolean})],Ee.prototype,"limitSize",void 0);pr([(0,xt.state)()],Ee.prototype,"elements",void 0);pr([(0,xt.state)()],Ee.prototype,"currentElement",void 0);pr([(0,xt.state)()],Ee.prototype,"withScroll",void 0);pr([(0,xt.state)()],Ee.prototype,"startReached",void 0);pr([(0,xt.state)()],Ee.prototype,"endReached",void 0);pr([(0,xt.query)(".ft-snap-scroll--content")],Ee.prototype,"contentSlot",void 0)});var Av=l(()=>{"use strict"});var Ov,wv=l(()=>{"use strict";jc();Ov={"ft-snap-scroll":Ee}});var Rv,Tv=l(()=>{"use strict";Rv=u(m());wv();(0,Rv.customElements)(Ov)});var Js=l(()=>{"use strict";jc();Zs();Av();Tv()});var _v,se,ut,Lv,ea=l(()=>{"use strict";_v=u(b()),se=u(m());Ut();Ri();ut={colorOutline:se.FtCssVariableFactory.external(se.designSystemVariables.colorOutline,"Design system"),colorOnSurface:se.FtCssVariableFactory.external(se.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:se.FtCssVariableFactory.external(se.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:se.FtCssVariableFactory.external(se.designSystemVariables.colorPrimary,"Design system"),colorSurface:se.FtCssVariableFactory.external(se.designSystemVariables.colorSurface,"Design system"),transitionDuration:se.FtCssVariableFactory.external(se.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:se.FtCssVariableFactory.external(se.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:se.FtCssVariableFactory.extend("--ft-filter-label-color","",se.designSystemVariables.colorOnSurface),labelFontSize:se.FtCssVariableFactory.extend("--ft-filter-label-font-size","",C.fontSize,"16px")},Lv=[Mr,se.noTextInputDefaultClearButton,_v.css`
|
|
1254
1254
|
:host {
|
|
1255
1255
|
display: flex;
|
|
1256
1256
|
max-height: 100%;
|
|
@@ -1292,8 +1292,8 @@
|
|
|
1292
1292
|
word-break: break-word;
|
|
1293
1293
|
color: ${ut.labelColor};
|
|
1294
1294
|
font-size: ${ut.labelFontSize};
|
|
1295
|
-
${(0,se.setVariable)(
|
|
1296
|
-
${(0,se.setVariable)(
|
|
1295
|
+
${(0,se.setVariable)(C.lineHeight,"22px")};
|
|
1296
|
+
${(0,se.setVariable)(C.fontWeight,"bold")};
|
|
1297
1297
|
}
|
|
1298
1298
|
|
|
1299
1299
|
.ft-filter--filter {
|
|
@@ -1367,19 +1367,19 @@
|
|
|
1367
1367
|
slot:not([name]) {
|
|
1368
1368
|
display: none;
|
|
1369
1369
|
}
|
|
1370
|
-
`]});var
|
|
1370
|
+
`]});var Pi,re,ve,ae,zc,W,qc=l(()=>{"use strict";Pi=u(b()),re=u(F()),ve=u(m());me();bv();Wt();Js();ea();ae=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},zc=class extends CustomEvent{constructor(e){super("change",{detail:e})}},W=class extends(0,ve.withAnalytics)(ve.FtLitElement,Hc){constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new ve.Debouncer(300),this.changeDebouncer=new ve.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,ve.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,ve.flatDeep)(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(o=>o.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return Pi.html`
|
|
1371
1371
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1372
1372
|
part="container">
|
|
1373
|
-
${!this.label&&!e?null
|
|
1373
|
+
${!this.label&&!e?null:Pi.html`
|
|
1374
1374
|
|
|
1375
1375
|
<div class="ft-filter--header" part="header">
|
|
1376
1376
|
<div class="filter-label" id="id-group-${this.id}">
|
|
1377
|
-
<ft-typography class="ft-filter--label" variant="${
|
|
1377
|
+
<ft-typography class="ft-filter--label" variant="${Q.overline}" part="label">
|
|
1378
1378
|
${this.label}
|
|
1379
1379
|
</ft-typography>
|
|
1380
1380
|
<slot name="label"></slot>
|
|
1381
1381
|
</div>
|
|
1382
|
-
${e&&!this.hideClearButton
|
|
1382
|
+
${e&&!this.hideClearButton?Pi.html`
|
|
1383
1383
|
<ft-button icon="close"
|
|
1384
1384
|
aria-label="${this.clearButtonLabel+" "+this.label}"
|
|
1385
1385
|
dense
|
|
@@ -1407,8 +1407,8 @@
|
|
|
1407
1407
|
@slotchange=${this.updateOptionsFromSlot}
|
|
1408
1408
|
@option-change=${this.optionsChanged}></slot>
|
|
1409
1409
|
</div>
|
|
1410
|
-
`}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(i=>i.value));this.displayedLevels=this.displayedLevels.filter(i=>r.has(i)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var r,i,o,n,s,a;super.contentAvailableCallback(e),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),e.has("options")&&(this.updateScroll(),(r=this.levelsContainer)===null||r===void 0||r.scrollToIndex(this.displayedLevels.length)),e.has("slideIn")&&this.slideIn&&((i=this.levelsContainer)===null||i===void 0||i.next(),setTimeout(()=>{this.slideIn=void 0},300)),e.has("slideOut")&&this.slideOut&&((o=this.levelsContainer)===null||o===void 0||o.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(a=(s=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||s===void 0?void 0:s.hasHiddenValues)!==null&&a!==void 0?a:!1}renderLevels(){let e=this.flatOptions,r=e.filter(n=>n.selected),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,o=i<0?"ft-filter--level-center":"ft-filter--level-left";return
|
|
1411
|
-
${this.raiseSelectedOptions&&r.length>0
|
|
1410
|
+
`}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(i=>i.value));this.displayedLevels=this.displayedLevels.filter(i=>r.has(i)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var r,i,o,n,s,a;super.contentAvailableCallback(e),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),e.has("options")&&(this.updateScroll(),(r=this.levelsContainer)===null||r===void 0||r.scrollToIndex(this.displayedLevels.length)),e.has("slideIn")&&this.slideIn&&((i=this.levelsContainer)===null||i===void 0||i.next(),setTimeout(()=>{this.slideIn=void 0},300)),e.has("slideOut")&&this.slideOut&&((o=this.levelsContainer)===null||o===void 0||o.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(a=(s=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||s===void 0?void 0:s.hasHiddenValues)!==null&&a!==void 0?a:!1}renderLevels(){let e=this.flatOptions,r=e.filter(n=>n.selected),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,o=i<0?"ft-filter--level-center":"ft-filter--level-left";return Pi.html`
|
|
1411
|
+
${this.raiseSelectedOptions&&r.length>0?Pi.html`
|
|
1412
1412
|
<ft-filter-level
|
|
1413
1413
|
filterId="${this.id}"
|
|
1414
1414
|
?multivalued=${this.multivalued}
|
|
@@ -1427,9 +1427,9 @@
|
|
|
1427
1427
|
class="ft-filter--levels"
|
|
1428
1428
|
@current-element-change=${n=>this.levelsScrollDebouncer.run(()=>{for(;n.detail.index<this.displayedLevels.length;)this.displayedLevels.pop();this.requestUpdate()})}>
|
|
1429
1429
|
${this.renderLevel(o,this.options)}
|
|
1430
|
-
${this.displayedLevels.map(n=>e.find(s=>s.value===n)).map((n,s)=>{var a;let
|
|
1430
|
+
${this.displayedLevels.map(n=>e.find(s=>s.value===n)).map((n,s)=>{var a;let c=n?.value===this.slideIn||n?.value===this.slideOut?"ft-filter--level-right":s===i?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(c,(a=n?.subOptions)!==null&&a!==void 0?a:[],n)})}
|
|
1431
1431
|
</ft-snap-scroll>
|
|
1432
|
-
`}renderLevel(e,r,i){return
|
|
1432
|
+
`}renderLevel(e,r,i){return Pi.html`
|
|
1433
1433
|
<ft-filter-level
|
|
1434
1434
|
class="${e}"
|
|
1435
1435
|
filterId="${this.id}"
|
|
@@ -1451,17 +1451,17 @@
|
|
|
1451
1451
|
noValuesLabel="${this.noValuesLabel}"
|
|
1452
1452
|
.filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
|
|
1453
1453
|
></ft-filter-level>
|
|
1454
|
-
`}goBack(e){this.slideOut=e.detail.value,(0,ve.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,ve.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,ve.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 o=n=>{var s;n!==i&&(n.selected=!1),(s=n.subOptions)===null||s===void 0||s.forEach(o)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(o):this.options.forEach(o),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,ve.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new
|
|
1454
|
+
`}goBack(e){this.slideOut=e.detail.value,(0,ve.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,ve.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,ve.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 o=n=>{var s;n!==i&&(n.selected=!1),(s=n.subOptions)===null||s===void 0||s.forEach(o)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(o):this.options.forEach(o),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,ve.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new zc(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)}};W.elementDefinitions={"ft-button":_,"ft-filter-level":de,"ft-snap-scroll":Ee,"ft-typography":V};W.styles=Lv;ae([(0,re.property)({type:String})],W.prototype,"id",void 0);ae([(0,re.property)({type:String})],W.prototype,"label",void 0);ae([(0,re.property)({type:String})],W.prototype,"filterPlaceHolder",void 0);ae([(0,re.property)({type:String})],W.prototype,"clearButtonLabel",void 0);ae([(0,re.property)({type:String})],W.prototype,"moreValuesButtonLabel",void 0);ae([(0,re.property)({type:String})],W.prototype,"noValuesLabel",void 0);ae([(0,ve.jsonProperty)([])],W.prototype,"options",void 0);ae([(0,re.property)({type:Boolean})],W.prototype,"multivalued",void 0);ae([(0,re.property)({type:Boolean})],W.prototype,"disabled",void 0);ae([(0,re.property)({type:Boolean})],W.prototype,"raiseSelectedOptions",void 0);ae([(0,re.property)({type:Boolean})],W.prototype,"displayCount",void 0);ae([(0,ve.numberProperty)()],W.prototype,"displayedValuesLimit",void 0);ae([(0,ve.jsonProperty)(void 0)],W.prototype,"filteredOptionsNumberAriaNotification",void 0);ae([(0,re.property)({type:Boolean})],W.prototype,"hideClearButton",void 0);ae([(0,re.query)(".ft-filter--slot")],W.prototype,"slotElement",void 0);ae([(0,re.query)(".ft-filter--container")],W.prototype,"container",void 0);ae([(0,re.query)(".ft-filter--values")],W.prototype,"valuesContainer",void 0);ae([(0,re.query)(".ft-filter--levels")],W.prototype,"levelsContainer",void 0);ae([(0,re.state)()],W.prototype,"lastLevelHasHiddenvalues",void 0);ae([(0,re.query)(".ft-filter--filter input")],W.prototype,"filterInput",void 0);ae([(0,re.queryAll)(".ft-filter--levels ft-filter-level")],W.prototype,"levels",void 0);ae([(0,re.state)()],W.prototype,"withScroll",void 0);ae([(0,re.state)()],W.prototype,"filter",void 0);ae([(0,re.state)()],W.prototype,"slideIn",void 0);ae([(0,re.state)()],W.prototype,"slideOut",void 0)});var kv=l(()=>{"use strict"});var ta,$i,Pv,Ao,St,Kc=l(()=>{"use strict";ta=u(m()),$i=u(F()),Pv=u(b()),Ao=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},St=class extends ta.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Pv.html`
|
|
1455
1455
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1456
|
-
`}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}))}};St.elementDefinitions={};
|
|
1456
|
+
`}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}))}};St.elementDefinitions={};Ao([(0,$i.property)({type:String})],St.prototype,"label",void 0);Ao([(0,$i.property)({type:Object,converter:t=>t})],St.prototype,"value",void 0);Ao([(0,$i.property)({type:Boolean,reflect:!0})],St.prototype,"selected",void 0);Ao([(0,$i.property)({type:Object})],St.prototype,"subOptions",void 0);Ao([(0,ta.jsonProperty)({})],St.prototype,"renderOption",void 0);Ao([(0,$i.query)(".ft-filter-option--slot")],St.prototype,"slotElement",void 0)});var $v=l(()=>{"use strict"});var Iv,Dv=l(()=>{"use strict";qc();Kc();Iv={"ft-filter":W,"ft-filter-option":St}});var Mv,Nv=l(()=>{"use strict";Mv=u(m());Dv();(0,Mv.customElements)(Iv)});var Fv=l(()=>{"use strict";Pc();qc();ea();kv();Kc();$v();Nv()});var Bv,Uv,Wc=l(()=>{"use strict";Bv=u(b()),Uv=Bv.css`
|
|
1457
1457
|
.ft-accordion {
|
|
1458
1458
|
box-sizing: border-box;
|
|
1459
1459
|
}
|
|
1460
|
-
`});var
|
|
1460
|
+
`});var Vv,ra,jv,Hv,dr,Gc=l(()=>{"use strict";Vv=u(b()),ra=u(F()),jv=u(m());Wc();Hv=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},dr=class extends jv.FtLitElement{constructor(){super(...arguments),this.multi=!1}render(){return Vv.html`
|
|
1461
1461
|
<div class="ft-accordion">
|
|
1462
1462
|
<slot @activated=${this.onChange}></slot>
|
|
1463
1463
|
</div>
|
|
1464
|
-
`}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};dr.elementDefinitions={};dr.styles=
|
|
1464
|
+
`}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};dr.elementDefinitions={};dr.styles=Uv;Hv([(0,ra.property)({type:Boolean})],dr.prototype,"multi",void 0);Hv([(0,ra.query)("slot")],dr.prototype,"content",void 0)});var zv=l(()=>{"use strict"});var qv,Di,Ii,Kv,Qc=l(()=>{"use strict";qv=u(b()),Di=u(m()),Ii={horizontalSpacing:Di.FtCssVariableFactory.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:Di.FtCssVariableFactory.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:Di.FtCssVariableFactory.external(Di.designSystemVariables.colorOutline,"Design system"),backgroundColor:Di.FtCssVariableFactory.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},Kv=qv.css`
|
|
1465
1465
|
.ft-accordion-item {
|
|
1466
1466
|
display: flex;
|
|
1467
1467
|
flex-direction: column;
|
|
@@ -1507,7 +1507,7 @@
|
|
|
1507
1507
|
.ft-accordion-item--separator {
|
|
1508
1508
|
border-bottom: 1px solid ${Ii.colorOutline};
|
|
1509
1509
|
}
|
|
1510
|
-
`});var xn,Sn,
|
|
1510
|
+
`});var xn,Sn,Wv,ia,Ft,Yc=l(()=>{"use strict";xn=u(b()),Sn=u(F()),Wv=u(m());Ge();me();Or();Qc();ia=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Ft=class extends Wv.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return xn.html`
|
|
1511
1511
|
<div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
|
|
1512
1512
|
<div class="ft-accordion-item--toggle"
|
|
1513
1513
|
part="toggle"
|
|
@@ -1537,7 +1537,7 @@
|
|
|
1537
1537
|
</div>
|
|
1538
1538
|
<div class="ft-accordion-item--separator" part="separator"></div>
|
|
1539
1539
|
</div>
|
|
1540
|
-
`}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)}};
|
|
1540
|
+
`}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)}};Ft.elementDefinitions={"ft-ripple":k,"ft-typography":V,"ft-icon":oe};Ft.styles=Kv;ia([(0,Sn.property)()],Ft.prototype,"icon",void 0);ia([(0,Sn.property)()],Ft.prototype,"iconVariant",void 0);ia([(0,Sn.property)()],Ft.prototype,"label",void 0);ia([(0,Sn.property)({type:Boolean,reflect:!0})],Ft.prototype,"active",void 0)});var Gv=l(()=>{"use strict"});var Qv,Yv=l(()=>{"use strict";Gc();Yc();Qv={"ft-accordion":dr,"ft-accordion-item":Ft}});var Xv,Zv=l(()=>{"use strict";Xv=u(m());Yv();(0,Xv.customElements)(Qv)});var Jv=l(()=>{"use strict";Gc();Wc();zv();Yc();Qc();Gv();Zv()});var Cn,B,ey,De,ty,Xc,ry,iy,Zc=l(()=>{"use strict";Cn=u(b()),B=u(m());yr();Ut();vo();Wt();ey=B.FtCssVariableFactory.extend("--ft-chip-color","",B.designSystemVariables.colorOnSurface),De={backgroundColor:B.FtCssVariableFactory.extend("--ft-chip-background-color","",B.designSystemVariables.colorSurface),color:ey,fontSize:B.FtCssVariableFactory.extend("--ft-chip-font-size","",we.fontSize),fontWeight:B.FtCssVariableFactory.extend("--ft-chip-font-weight","",we.fontWeight),iconSize:B.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:B.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:B.FtCssVariableFactory.extend("--ft-chip-ripple-color","",ey),horizontalPadding:B.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:B.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:B.FtCssVariableFactory.extend("--ft-chip-border-color","",B.designSystemVariables.colorOutline),opacityDisabled:B.FtCssVariableFactory.external(B.designSystemVariables.colorOpacityDisabled,"Design system")},ty=B.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",B.FtCssVariableFactory.extend("--ft-chip-color","",B.designSystemVariables.colorOnPrimary)),Xc={backgroundColor:B.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",B.FtCssVariableFactory.extend("--ft-chip-background-color","",B.designSystemVariables.colorPrimary)),color:ty,rippleColor:B.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",ty)},ry={horizontalPadding:B.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:B.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},iy=[B.noTextSelect,Cn.css`
|
|
1541
1541
|
:host {
|
|
1542
1542
|
display: inline-block;
|
|
1543
1543
|
max-width: 100%;
|
|
@@ -1556,7 +1556,7 @@
|
|
|
1556
1556
|
--chip-internal-font-size: ${De.fontSize};
|
|
1557
1557
|
--chip-internal-font-weight: ${De.fontWeight};
|
|
1558
1558
|
--chip-internal-line-height: max(20px, calc(var(--chip-internal-font-size) + 2px));
|
|
1559
|
-
${(0,B.setVariable)(
|
|
1559
|
+
${(0,B.setVariable)(Ye.size,De.iconSize)};
|
|
1560
1560
|
--chip-internal-vertical-padding: ${De.verticalPadding};
|
|
1561
1561
|
--chip-internal-horizontal-padding: ${De.horizontalPadding};
|
|
1562
1562
|
--chip-internal-icon-padding: 3px;
|
|
@@ -1565,7 +1565,7 @@
|
|
|
1565
1565
|
border: 1px solid ${De.borderColor};
|
|
1566
1566
|
color: ${De.color};
|
|
1567
1567
|
${(0,B.setVariable)(q.color,De.rippleColor)};
|
|
1568
|
-
border-radius: var(${(0,
|
|
1568
|
+
border-radius: var(${(0,Cn.unsafeCSS)(De.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
|
|
1569
1569
|
padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
|
|
1570
1570
|
background-color: ${De.backgroundColor};
|
|
1571
1571
|
line-height: var(--chip-internal-content-height);
|
|
@@ -1577,13 +1577,13 @@
|
|
|
1577
1577
|
|
|
1578
1578
|
.ft-chip--dense {
|
|
1579
1579
|
--chip-internal-icon-padding: 3px;
|
|
1580
|
-
--chip-internal-vertical-padding: ${
|
|
1581
|
-
--chip-internal-horizontal-padding: ${
|
|
1580
|
+
--chip-internal-vertical-padding: ${ry.verticalPadding};
|
|
1581
|
+
--chip-internal-horizontal-padding: ${ry.horizontalPadding};
|
|
1582
1582
|
--chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
|
|
1583
1583
|
}
|
|
1584
1584
|
|
|
1585
1585
|
.ft-chip--no-content {
|
|
1586
|
-
--chip-internal-horizontal-padding: ${De.horizontalPadding.get(
|
|
1586
|
+
--chip-internal-horizontal-padding: ${De.horizontalPadding.get(Cn.css`var(--chip-internal-vertical-padding)`)};
|
|
1587
1587
|
}
|
|
1588
1588
|
|
|
1589
1589
|
.ft-chip--disabled {
|
|
@@ -1596,9 +1596,9 @@
|
|
|
1596
1596
|
.ft-chip--highlighted {
|
|
1597
1597
|
border: none;
|
|
1598
1598
|
padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
|
|
1599
|
-
background-color: ${
|
|
1600
|
-
${(0,B.setVariable)(q.color,
|
|
1601
|
-
color: ${
|
|
1599
|
+
background-color: ${Xc.backgroundColor};
|
|
1600
|
+
${(0,B.setVariable)(q.color,Xc.rippleColor)};
|
|
1601
|
+
color: ${Xc.color};
|
|
1602
1602
|
}
|
|
1603
1603
|
|
|
1604
1604
|
.ft-chip--clickable {
|
|
@@ -1639,9 +1639,9 @@
|
|
|
1639
1639
|
vertical-align: bottom;
|
|
1640
1640
|
display: block;
|
|
1641
1641
|
margin: 0 var(--chip-internal-horizontal-padding);
|
|
1642
|
-
${(0,B.setVariable)(
|
|
1643
|
-
${(0,B.setVariable)(
|
|
1644
|
-
${(0,B.setVariable)(
|
|
1642
|
+
${(0,B.setVariable)(we.fontSize,"var(--chip-internal-font-size)")};
|
|
1643
|
+
${(0,B.setVariable)(we.fontWeight,"var(--chip-internal-font-weight)")};
|
|
1644
|
+
${(0,B.setVariable)(we.lineHeight,"var(--chip-internal-content-height)")};
|
|
1645
1645
|
}
|
|
1646
1646
|
|
|
1647
1647
|
.ft-chip--safari-fix .ft-chip--label {
|
|
@@ -1677,8 +1677,8 @@
|
|
|
1677
1677
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
1678
1678
|
order: -1;
|
|
1679
1679
|
}
|
|
1680
|
-
`]});var
|
|
1681
|
-
<div class="${(0,
|
|
1680
|
+
`]});var oa,Me,oy,Oo,et,na,he,Jc=l(()=>{"use strict";oa=u(b()),Me=u(F()),oy=u(it()),Oo=u(m());Ge();me();Or();Zc();Wt();et=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},na=class extends CustomEvent{constructor(){super("icon-click")}},he=class extends Oo.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let r={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Oo.isSafari};return oa.html`
|
|
1681
|
+
<div class="${(0,oy.classMap)(r)}"
|
|
1682
1682
|
aria-label="${this.getLabel()}"
|
|
1683
1683
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
1684
1684
|
@keyup=${this.onKeyUp}
|
|
@@ -1689,7 +1689,7 @@
|
|
|
1689
1689
|
</ft-typography>
|
|
1690
1690
|
${this.internalIcon?this.renderIcon():null}
|
|
1691
1691
|
</div>
|
|
1692
|
-
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?
|
|
1692
|
+
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?oa.html`
|
|
1693
1693
|
<ft-button round
|
|
1694
1694
|
class="ft-chip--icon-button"
|
|
1695
1695
|
@click=${this.onIconClick}
|
|
@@ -1700,11 +1700,11 @@
|
|
|
1700
1700
|
part="icon-button"
|
|
1701
1701
|
?hideTooltip=${this.hideIconTooltip}
|
|
1702
1702
|
></ft-button>
|
|
1703
|
-
`:
|
|
1703
|
+
`:oa.html`
|
|
1704
1704
|
<div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
|
|
1705
1705
|
<ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
|
|
1706
1706
|
</div>
|
|
1707
|
-
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new
|
|
1707
|
+
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new na))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new na))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,Oo.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};he.elementDefinitions={"ft-ripple":k,"ft-typography":V,"ft-icon":oe,"ft-button":_};he.styles=iy;et([(0,Me.property)({type:Boolean})],he.prototype,"highlighted",void 0);et([(0,Me.property)({type:Boolean})],he.prototype,"removable",void 0);et([(0,Me.property)({type:Boolean})],he.prototype,"disabled",void 0);et([(0,Me.property)({type:Boolean})],he.prototype,"clickable",void 0);et([(0,Me.property)({type:Boolean})],he.prototype,"iconClickable",void 0);et([(0,Me.property)({type:Boolean})],he.prototype,"dense",void 0);et([(0,Me.property)({type:Boolean})],he.prototype,"multiLine",void 0);et([(0,Me.property)()],he.prototype,"label",void 0);et([(0,Me.property)()],he.prototype,"iconLabel",void 0);et([(0,Me.property)({type:Boolean})],he.prototype,"hideIconTooltip",void 0);et([(0,Me.property)()],he.prototype,"icon",void 0);et([(0,Me.property)()],he.prototype,"iconVariant",void 0);et([(0,Me.property)({type:Boolean})],he.prototype,"trailingIcon",void 0);et([(0,Me.property)()],he.prototype,"typographyVariant",void 0);et([(0,Me.query)("ft-typography slot")],he.prototype,"slottedContent",void 0)});var ny=l(()=>{"use strict"});var sy,ay=l(()=>{"use strict";Jc();sy={"ft-chip":he}});var ly,cy=l(()=>{"use strict";ly=u(m());ay();(0,ly.customElements)(sy)});var eu=l(()=>{"use strict";Jc();Zc();ny();cy()});function En(t,e,r){return t?e(t):r?.(t)}var uy=l(()=>{});var tu=l(()=>{uy()});var py,le,U,dy,An=l(()=>{"use strict";py=u(b()),le=u(m());Ut();U={fontSize:le.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:le.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:le.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:le.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:le.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:le.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:le.FtCssVariableFactory.extend("--ft-input-label-border-color","",le.designSystemVariables.colorOutline),textColor:le.FtCssVariableFactory.extend("--ft-input-label-text-color","",le.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:le.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",le.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:le.FtCssVariableFactory.extend("--ft-input-label-background-color","",le.designSystemVariables.colorSurface),borderRadius:le.FtCssVariableFactory.extend("--ft-input-label-border-radius","",le.designSystemVariables.borderRadiusS),colorError:le.FtCssVariableFactory.external(le.designSystemVariables.colorError,"Design system")},dy=py.css`
|
|
1708
1708
|
.ft-input-label {
|
|
1709
1709
|
position: absolute;
|
|
1710
1710
|
inset: 0;
|
|
@@ -1826,16 +1826,16 @@
|
|
|
1826
1826
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
1827
1827
|
border-top: none;
|
|
1828
1828
|
}
|
|
1829
|
-
`});var
|
|
1830
|
-
<div class="${(0,
|
|
1831
|
-
${
|
|
1829
|
+
`});var ru,iu,fy,my,hy,Mi,gy=l(()=>{"use strict";ru=u(b()),iu=u(F());tu();fy=u(it()),my=u(m()),hy=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Mi=class extends my.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return ru.html`
|
|
1830
|
+
<div class="${(0,fy.classMap)(this.inputLabelClasses)}">
|
|
1831
|
+
${En(this.text,()=>ru.html`
|
|
1832
1832
|
<div class="ft-input-label--text ft-typography--caption">
|
|
1833
1833
|
<label class="ft-input-label--floating-text">${this.text}</label>
|
|
1834
1834
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
1835
1835
|
</div>
|
|
1836
1836
|
`)}
|
|
1837
1837
|
</div>
|
|
1838
|
-
`}};Mi.elementDefinitions={};
|
|
1838
|
+
`}};Mi.elementDefinitions={};hy([(0,iu.property)({type:String})],Mi.prototype,"text",void 0);hy([(0,iu.property)({type:Boolean})],Mi.prototype,"raised",void 0)});var sa,ou,Xt,nu=l(()=>{"use strict";sa=u(F());Ut();An();gy();ou=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Xt=class extends Mi{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}}};Xt.elementDefinitions={};Xt.styles=[Mr,dy];ou([(0,sa.property)({type:Boolean})],Xt.prototype,"outlined",void 0);ou([(0,sa.property)({type:Boolean})],Xt.prototype,"error",void 0);ou([(0,sa.property)({type:Boolean})],Xt.prototype,"disabled",void 0)});var vy=l(()=>{"use strict"});var yy,by=l(()=>{"use strict";nu();yy={"ft-input-label":Xt}});var xy,Sy=l(()=>{"use strict";xy=u(m());by();(0,xy.customElements)(yy)});var Cy=l(()=>{"use strict";nu();An();vy();Sy()});var Ey,N,M,Ay,On=l(()=>{"use strict";Ey=u(b()),N=u(m());An();Ut();yr();vo();M={labelSize:N.FtCssVariableFactory.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:N.FtCssVariableFactory.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:N.FtCssVariableFactory.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:N.FtCssVariableFactory.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:N.FtCssVariableFactory.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:N.FtCssVariableFactory.extend("--ft-select-selected-option-color","",N.designSystemVariables.colorOnSurface),helperColor:N.FtCssVariableFactory.extend("--ft-select-helper-color","",N.designSystemVariables.colorOnSurfaceMedium),optionsColor:N.FtCssVariableFactory.extend("--ft-select-options-color","",N.designSystemVariables.colorOnSurface),optionsZIndex:N.FtCssVariableFactory.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:N.FtCssVariableFactory.extend("--ft-select-background-color","",N.designSystemVariables.colorSurface),colorOnSurfaceDisabled:N.FtCssVariableFactory.external(N.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:N.FtCssVariableFactory.external(N.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:N.FtCssVariableFactory.external(N.designSystemVariables.borderRadiusS,"Design system"),elevation02:N.FtCssVariableFactory.external(N.designSystemVariables.elevation02,"Design system"),colorError:N.FtCssVariableFactory.external(N.designSystemVariables.colorError,"Design system")},Ay=Ey.css`
|
|
1839
1839
|
*:focus {
|
|
1840
1840
|
outline: none;
|
|
1841
1841
|
}
|
|
@@ -1892,7 +1892,7 @@
|
|
|
1892
1892
|
${(0,N.setVariable)(U.verticalSpacing,M.verticalSpacing)};
|
|
1893
1893
|
${(0,N.setVariable)(U.horizontalSpacing,M.horizontalSpacing)};
|
|
1894
1894
|
${(0,N.setVariable)(U.backgroundColor,M.backgroundColor)};
|
|
1895
|
-
${(0,N.setVariable)(U.labelMaxWidth,`calc(100% - ${
|
|
1895
|
+
${(0,N.setVariable)(U.labelMaxWidth,`calc(100% - ${Ye.size} - 8px)`)};
|
|
1896
1896
|
}
|
|
1897
1897
|
|
|
1898
1898
|
.ft-select:not(.ft-select--disabled):focus-within ft-icon {
|
|
@@ -1971,10 +1971,10 @@
|
|
|
1971
1971
|
.ft-select:not(.ft-select--has-option-selected) .ft-select--selected-option {
|
|
1972
1972
|
opacity: 0;
|
|
1973
1973
|
}
|
|
1974
|
-
`});var
|
|
1974
|
+
`});var su,Oy,wy,Ry=l(()=>{"use strict";yr();su=u(m());On();Oy=u(b()),wy=Oy.css`
|
|
1975
1975
|
.ft-select--option {
|
|
1976
|
-
${(0,
|
|
1977
|
-
${(0,
|
|
1976
|
+
${(0,su.setVariable)(q.opacityContentOnSurfaceHover,"0.08")};
|
|
1977
|
+
${(0,su.setVariable)(q.opacityContentOnSurfacePressed,"0.04")};
|
|
1978
1978
|
}
|
|
1979
1979
|
|
|
1980
1980
|
.ft-select--option > *:not(ft-ripple) {
|
|
@@ -1998,8 +1998,8 @@
|
|
|
1998
1998
|
overflow: hidden;
|
|
1999
1999
|
}
|
|
2000
2000
|
|
|
2001
|
-
`});var
|
|
2002
|
-
<div class="${(0,
|
|
2001
|
+
`});var aa,wo,Ty,Jr,wn,qe,_y=l(()=>{"use strict";aa=u(m());Ge();me();wo=u(b()),Ty=u(it()),Jr=u(F());Ry();wn=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},qe=class extends aa.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 wo.html`
|
|
2002
|
+
<div class="${(0,Ty.classMap)(i)}"
|
|
2003
2003
|
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,"")}"
|
|
2004
2004
|
tabindex="0"
|
|
2005
2005
|
aria-label="${this.label}"
|
|
@@ -2008,17 +2008,17 @@
|
|
|
2008
2008
|
<ft-ripple ?primary=${this.selected} ?activated=${this.selected}></ft-ripple>
|
|
2009
2009
|
<slot @slotchange=${this.onSlotChange}>
|
|
2010
2010
|
</slot>
|
|
2011
|
-
${this.isSlotEmpty?
|
|
2011
|
+
${this.isSlotEmpty?wo.html`<span>${this.label}</span>`:wo.html``}
|
|
2012
2012
|
</div>
|
|
2013
|
-
`}onSlotChange(){this.isSlotEmpty=(0,
|
|
2014
|
-
<div class="${(0,
|
|
2013
|
+
`}onSlotChange(){this.isSlotEmpty=(0,aa.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}))}};qe.elementDefinitions={"ft-ripple":k};qe.shadowRootOptions={...wo.LitElement.shadowRootOptions,delegatesFocus:!0};qe.styles=[wy,Dr];wn([(0,Jr.property)({type:String})],qe.prototype,"label",void 0);wn([(0,Jr.property)({type:Object,converter:t=>t})],qe.prototype,"value",void 0);wn([(0,Jr.property)({type:Boolean,reflect:!0})],qe.prototype,"selected",void 0);wn([(0,Jr.query)("slot")],qe.prototype,"slotElement",void 0);wn([(0,Jr.state)()],qe.prototype,"isSlotEmpty",void 0)});var Ro,Ae,Ly,ky,Bt,Ne,ie,au=l(()=>{"use strict";Ro=u(b()),Ae=u(F()),Ly=u(it()),ky=u(Rr());tu();$s();Bt=u(m());me();Cy();Ge();Or();On();_y();Ne=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},ie=class t extends Bt.FtLitElement{constructor(){super(...arguments),this.label="",this.ariaLabel=null,this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.currentSearch="",this.lastSearchInputDate=new Date("01/01/1970"),this.isSlotEmpty=!0,this.hideOptions=e=>this.optionsDisplayed=this.optionsDisplayed&&e.composedPath().includes(this.container)}get firstOption(){return this.optionsList[0]}get optionsList(){let e=[...this.querySelectorAll("ft-select-option")];return e.length>0?e:[...this.shadowRoot.querySelectorAll("ft-select-option")]}get focusedOption(){return this.optionsList.find(e=>e.matches(":focus-within"))}get selectedOptionElement(){return this.optionsList.find(e=>e.selected)}get lastOption(){return(0,Bt.last)(this.optionsList)}render(){var e,r,i,o,n;let s=this.hasOptionsMenuOpen,a=this.disabled||!this.hasOptions,c=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((i=(r=this.selectedOption)===null||r===void 0?void 0:r.label)!==null&&i!==void 0?i:"").length>0,p={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":a,"ft-select--options-displayed":s,"ft-select--has-option-selected":c,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return Ro.html`
|
|
2014
|
+
<div class="${(0,Ly.classMap)(p)}" part="container">
|
|
2015
2015
|
<div class="ft-select--main-panel" part="main-panel">
|
|
2016
2016
|
<ft-input-label text="${this.label}"
|
|
2017
2017
|
part="label"
|
|
2018
2018
|
id="label"
|
|
2019
2019
|
?disabled=${a}
|
|
2020
2020
|
?outlined=${this.outlined}
|
|
2021
|
-
?raised=${
|
|
2021
|
+
?raised=${c||s}
|
|
2022
2022
|
?error=${this.error}
|
|
2023
2023
|
></ft-input-label>
|
|
2024
2024
|
<div class="ft-select--input-panel"
|
|
@@ -2026,21 +2026,21 @@
|
|
|
2026
2026
|
tabindex="${a?"-1":"0"}"
|
|
2027
2027
|
@click=${()=>{this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=this.optionsDisplayed}}
|
|
2028
2028
|
@keydown=${this.onMainPanelKeyDown}
|
|
2029
|
-
aria-label="${
|
|
2030
|
-
aria-labelledby="${
|
|
2029
|
+
aria-label="${Gr(this.ariaLabel)}"
|
|
2030
|
+
aria-labelledby="${En(!this.ariaLabel,()=>"label")}"
|
|
2031
2031
|
aria-haspopup="listbox"
|
|
2032
2032
|
aria-expanded="${s}"
|
|
2033
|
-
aria-activedescendant="${
|
|
2033
|
+
aria-activedescendant="${Gr(this.getOptionId(this.selectedOption))}"
|
|
2034
2034
|
role="combobox">
|
|
2035
2035
|
<ft-ripple ?disabled=${a} ?activated=${!this.outlined}></ft-ripple>
|
|
2036
2036
|
<slot name="input-value">
|
|
2037
|
-
<ft-typography variant="${
|
|
2038
|
-
aria-hidden="${
|
|
2037
|
+
<ft-typography variant="${Q.body1}"
|
|
2038
|
+
aria-hidden="${c?"false":"true"}"
|
|
2039
2039
|
class="ft-select--selected-option">
|
|
2040
2040
|
${(n=(o=this.selectedOption)===null||o===void 0?void 0:o.label)!==null&&n!==void 0?n:this.label}
|
|
2041
2041
|
</ft-typography>
|
|
2042
2042
|
</slot>
|
|
2043
|
-
<ft-icon aria-hidden="true" .value=${s?
|
|
2043
|
+
<ft-icon aria-hidden="true" .value=${s?Ce.THIN_ARROW_UP:Ce.THIN_ARROW}></ft-icon>
|
|
2044
2044
|
</div>
|
|
2045
2045
|
<div class="ft-select--options"
|
|
2046
2046
|
part="options"
|
|
@@ -2051,22 +2051,22 @@
|
|
|
2051
2051
|
@option-change=${this.updateOptionsFromSlot}
|
|
2052
2052
|
>
|
|
2053
2053
|
</slot>
|
|
2054
|
-
${
|
|
2054
|
+
${En(this.isSlotEmpty,()=>(0,ky.repeat)(this.options,d=>d.value,d=>this.renderOption(d)))}
|
|
2055
2055
|
</div>
|
|
2056
2056
|
</div>
|
|
2057
2057
|
<slot name="helper" part="helper">
|
|
2058
|
-
${this.helper?
|
|
2059
|
-
<ft-typography class="ft-select--helper-text" variant="${
|
|
2060
|
-
</ft-typography>`:
|
|
2058
|
+
${this.helper?Ro.html`
|
|
2059
|
+
<ft-typography class="ft-select--helper-text" variant="${Q.caption}">${this.helper}
|
|
2060
|
+
</ft-typography>`:Ro.nothing}
|
|
2061
2061
|
</slot>
|
|
2062
2062
|
</div>
|
|
2063
|
-
`}renderOption(e){let r=this.selectedOption===e;return
|
|
2063
|
+
`}renderOption(e){let r=this.selectedOption===e;return Ro.html`
|
|
2064
2064
|
<ft-select-option
|
|
2065
2065
|
?selected=${r}
|
|
2066
2066
|
label="${e.label}"
|
|
2067
2067
|
.value=${e.value}
|
|
2068
2068
|
></ft-select-option>
|
|
2069
|
-
`}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&&((i=(r=this.selectedOptionElement)!==null&&r!==void 0?r:this.firstOption)===null||i===void 0||i.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let o=["bottom","top"];(0,
|
|
2069
|
+
`}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&&((i=(r=this.selectedOptionElement)!==null&&r!==void 0?r:this.firstOption)===null||i===void 0||i.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let o=["bottom","top"];(0,Bt.computeOffsetAutoPosition)(this.mainPanel,this.optionsMenu,"bottom",o,"fixed",M.optionsHeight,0).then(({x:n,y:s})=>{this.optionsMenu.style.left=`${n}px`,this.optionsMenu.style.top=`${s}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var r;e.stopPropagation(),this.isSlotEmpty=(0,Bt.isSlotEmptyOrWithoutContent)(this.optionsSlot);let i=(r=this.optionsSlot)===null||r===void 0?void 0:r.assignedElements().map(o=>o);i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(e){switch(e.key){case" ":e.preventDefault(),e.stopPropagation();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 o,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(),o=this.optionsList[(n-1+this.optionsList.length)%this.optionsList.length];break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),o=this.optionsList[(n+1)%this.optionsList.length];break;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(o=this.handleAlphanumericPress(e.key));break}o?.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(o=>{var n;return((n=o.label)===null||n===void 0?void 0:n.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});return this.lastSearchInputDate=r,i&&this.optionsList.find(o=>o.value===i.value)}getOptionId(e){if(!e)return;let r=this.options.findIndex(i=>(0,Bt.deepEqual)(i.value,e.value));if(r!==-1)return`option-${r}`}onSelectOption(e){e.stopPropagation(),this.setValue(e.target.value)}setValue(e,r=!0){let i=this.options.find(o=>(0,Bt.deepEqual)(o.value,e));i&&this.selectOption(i,r)}selectOption(e,r=!0){var i,o;if(!(0,Bt.deepEqual)((i=this.selectedOption)===null||i===void 0?void 0:i.value,e?.value)){this.selectedOption=e;for(let n of this.options)n.selected=n===e;r&&this.dispatchEvent(new CustomEvent("change",{detail:(o=this.selectedOption)===null||o===void 0?void 0:o.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}};ie.elementDefinitions={"ft-input-label":Xt,"ft-typography":V,"ft-ripple":k,"ft-icon":oe,"ft-select-option":qe};ie.searchTimeoutMilliseconds=2e3;ie.styles=[Mr,Ay];Ne([(0,Ae.property)({type:String})],ie.prototype,"label",void 0);Ne([(0,Ae.property)({type:String})],ie.prototype,"ariaLabel",void 0);Ne([(0,Ae.property)({type:String})],ie.prototype,"helper",void 0);Ne([(0,Ae.property)({type:Boolean})],ie.prototype,"outlined",void 0);Ne([(0,Ae.property)({type:Boolean})],ie.prototype,"disabled",void 0);Ne([(0,Ae.property)({type:Boolean})],ie.prototype,"error",void 0);Ne([(0,Ae.property)({type:Boolean})],ie.prototype,"fixedMenuPosition",void 0);Ne([(0,Ae.property)({type:Array})],ie.prototype,"options",void 0);Ne([(0,Ae.state)()],ie.prototype,"selectedOption",void 0);Ne([(0,Ae.state)()],ie.prototype,"optionsDisplayed",void 0);Ne([(0,Ae.state)()],ie.prototype,"focusOptions",void 0);Ne([(0,Ae.state)()],ie.prototype,"currentSearch",void 0);Ne([(0,Ae.state)()],ie.prototype,"lastSearchInputDate",void 0);Ne([(0,Ae.query)(".ft-select")],ie.prototype,"container",void 0);Ne([(0,Ae.query)(".ft-select--options")],ie.prototype,"optionsMenu",void 0);Ne([(0,Ae.query)(".ft-select--input-panel")],ie.prototype,"mainPanel",void 0);Ne([(0,Ae.query)("slot:not([name])")],ie.prototype,"optionsSlot",void 0)});var Py=l(()=>{"use strict"});var $y,Iy=l(()=>{"use strict";au();$y={"ft-select":ie,"ft-select-option":qe}});var Dy,My=l(()=>{"use strict";Dy=u(m());Iy();(0,Dy.customElements)($y)});var Ny=l(()=>{"use strict";au();On();Py();My()});var Fy,Zt,Fe,By,la=l(()=>{"use strict";Fy=u(b()),Zt=u(m()),Fe={display:Zt.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:Zt.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:Zt.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:Zt.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:Zt.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:Zt.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:Zt.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:Zt.FtCssVariableFactory.external(Zt.designSystemVariables.borderRadiusM,"Design system")},By=Fy.css`
|
|
2070
2070
|
:host {
|
|
2071
2071
|
width: ${Fe.width};
|
|
2072
2072
|
height: ${Fe.height};
|
|
@@ -2093,7 +2093,7 @@
|
|
|
2093
2093
|
background-position: calc(100vw + ${Fe.glareWidth}) 0, calc(${Fe.glareWidth} * -1) 0;
|
|
2094
2094
|
}
|
|
2095
2095
|
}
|
|
2096
|
-
`});var
|
|
2096
|
+
`});var P,lu,T,Uy,Hy,ca=l(()=>{"use strict";P=u(m()),lu=u(b());Ri();An();On();la();Zs();ea();Ut();T={height:P.FtCssVariableFactory.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:P.FtCssVariableFactory.extend("--ft-search-bar-border-radius","",P.designSystemVariables.borderRadiusS),mobileOpenPosition:P.FtCssVariableFactory.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:P.FtCssVariableFactory.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:P.FtCssVariableFactory.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:P.FtCssVariableFactory.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:P.FtCssVariableFactory.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:P.FtCssVariableFactory.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:P.FtCssVariableFactory.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:P.FtCssVariableFactory.external(P.designSystemVariables.colorSurface,"Design system"),colorOnSurface:P.FtCssVariableFactory.external(P.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:P.FtCssVariableFactory.external(P.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:P.FtCssVariableFactory.external(P.designSystemVariables.colorOutline,"Design system"),colorPrimary:P.FtCssVariableFactory.external(P.designSystemVariables.colorPrimary,"Design system"),elevation02:P.FtCssVariableFactory.external(P.designSystemVariables.elevation02,"Design system"),buttonColor:P.FtCssVariableFactory.external(D.color,"Button"),buttonRippleColor:P.FtCssVariableFactory.external(D.rippleColor,"Button"),activeItemBorderColor:P.FtCssVariableFactory.extend("--ft-search-bar-active-border-color","",P.designSystemVariables.colorPrimary)},Uy=lu.css`
|
|
2097
2097
|
* {
|
|
2098
2098
|
box-sizing: border-box;
|
|
2099
2099
|
}
|
|
@@ -2141,8 +2141,8 @@
|
|
|
2141
2141
|
}
|
|
2142
2142
|
|
|
2143
2143
|
.ft-search-bar--skeleton {
|
|
2144
|
-
${(0
|
|
2145
|
-
${(0
|
|
2144
|
+
${(0,P.setVariable)(Fe.height,T.height)};
|
|
2145
|
+
${(0,P.setVariable)(Fe.borderRadiusM,T.borderRadius)};
|
|
2146
2146
|
}
|
|
2147
2147
|
|
|
2148
2148
|
.ft-search-bar--floating-panel-open .ft-search-bar {
|
|
@@ -2200,11 +2200,11 @@
|
|
|
2200
2200
|
.ft-search-bar > ft-button,
|
|
2201
2201
|
.ft-search-bar--actions ft-button {
|
|
2202
2202
|
flex-shrink: 0;
|
|
2203
|
-
${(0
|
|
2203
|
+
${(0,P.setVariable)(D.backgroundColor,"transparent")};
|
|
2204
2204
|
}
|
|
2205
2205
|
|
|
2206
2206
|
.ft-search-bar--left-action {
|
|
2207
|
-
${(0
|
|
2207
|
+
${(0,P.setVariable)(D.borderRadius,`calc(${T.borderRadius} - 1px) 0 0 calc(${T.borderRadius} - 1px)`)};
|
|
2208
2208
|
border-right: 1px solid ${T.colorOutline};
|
|
2209
2209
|
height: 100%;
|
|
2210
2210
|
}
|
|
@@ -2214,7 +2214,7 @@
|
|
|
2214
2214
|
}
|
|
2215
2215
|
|
|
2216
2216
|
.ft-search-bar--floating-panel-open .ft-search-bar--left-action {
|
|
2217
|
-
${(0
|
|
2217
|
+
${(0,P.setVariable)(D.borderRadius,`calc(${T.borderRadius} - 1px) 0 0 0`)};
|
|
2218
2218
|
}
|
|
2219
2219
|
|
|
2220
2220
|
.ft-search-bar .ft-search-bar--launch-search,
|
|
@@ -2228,9 +2228,9 @@
|
|
|
2228
2228
|
}
|
|
2229
2229
|
|
|
2230
2230
|
.ft-search-bar--left-action.ft-search-bar--content-locale {
|
|
2231
|
-
${(0
|
|
2232
|
-
${(0
|
|
2233
|
-
${(0
|
|
2231
|
+
${(0,P.setVariable)(U.borderColor,"transparent")};
|
|
2232
|
+
${(0,P.setVariable)(U.borderRadius,`calc(${T.borderRadius} - 1px)`)};
|
|
2233
|
+
${(0,P.setVariable)(M.selectedOptionColor,T.buttonColor)};
|
|
2234
2234
|
}
|
|
2235
2235
|
|
|
2236
2236
|
.ft-search-bar--left-action.ft-search-bar--content-locale,
|
|
@@ -2274,7 +2274,7 @@
|
|
|
2274
2274
|
flex-shrink: 0;
|
|
2275
2275
|
padding: 0 10px;
|
|
2276
2276
|
margin-bottom: 8px;
|
|
2277
|
-
${(0
|
|
2277
|
+
${(0,P.setVariable)(C.fontSize,"14px")};
|
|
2278
2278
|
}
|
|
2279
2279
|
|
|
2280
2280
|
[part="content-locale-selector-label"] {
|
|
@@ -2282,18 +2282,18 @@
|
|
|
2282
2282
|
flex-shrink: 1;
|
|
2283
2283
|
flex-grow: 1;
|
|
2284
2284
|
word-break: break-word;
|
|
2285
|
-
${(0
|
|
2286
|
-
${(0
|
|
2285
|
+
${(0,P.setVariable)(C.lineHeight,"22px")};
|
|
2286
|
+
${(0,P.setVariable)(C.fontWeight,"bold")};
|
|
2287
2287
|
}
|
|
2288
2288
|
|
|
2289
|
-
`,
|
|
2289
|
+
`,Hy=lu.css`
|
|
2290
2290
|
.ft-search-bar--presets {
|
|
2291
2291
|
min-width: 200px;
|
|
2292
2292
|
}
|
|
2293
2293
|
|
|
2294
2294
|
.ft-search-bar--desktop-menu .ft-search-bar--presets {
|
|
2295
2295
|
margin-right: auto;
|
|
2296
|
-
${(0
|
|
2296
|
+
${(0,P.setVariable)(M.optionsZIndex,"2")};
|
|
2297
2297
|
}
|
|
2298
2298
|
|
|
2299
2299
|
.ft-search-bar--desktop-menu {
|
|
@@ -2347,7 +2347,7 @@
|
|
|
2347
2347
|
.ft-search-bar--desktop-menu .ft-search-bar--filters-container {
|
|
2348
2348
|
display: block;
|
|
2349
2349
|
height: ${T.desktopFiltersHeight};
|
|
2350
|
-
${(0
|
|
2350
|
+
${(0,P.setVariable)(Je.gap,"16px")};
|
|
2351
2351
|
}
|
|
2352
2352
|
|
|
2353
2353
|
.ft-search-bar--desktop-menu ft-filter {
|
|
@@ -2362,15 +2362,15 @@
|
|
|
2362
2362
|
}
|
|
2363
2363
|
|
|
2364
2364
|
.ft-search-bar--desktop-menu [data-filters-count="2"] ft-filter {
|
|
2365
|
-
max-width: calc(50% - ${
|
|
2365
|
+
max-width: calc(50% - ${Je.gap} / 2);
|
|
2366
2366
|
}
|
|
2367
2367
|
|
|
2368
2368
|
.ft-search-bar--desktop-menu [data-filters-count="3"] ft-filter {
|
|
2369
|
-
max-width: max(250px, calc(33% - 2 * ${
|
|
2369
|
+
max-width: max(250px, calc(33% - 2 * ${Je.gap} / 3));
|
|
2370
2370
|
}
|
|
2371
2371
|
|
|
2372
2372
|
.ft-search-bar--desktop-menu [data-filters-count="4"] ft-filter {
|
|
2373
|
-
max-width: max(250px, calc(25% - 3 * ${
|
|
2373
|
+
max-width: max(250px, calc(25% - 3 * ${Je.gap} / 4));
|
|
2374
2374
|
}
|
|
2375
2375
|
|
|
2376
2376
|
.ft-search-bar--hierarchical-filter {
|
|
@@ -2447,14 +2447,14 @@
|
|
|
2447
2447
|
.ft-search-bar--desktop-menu .ft-search-bar--launch-search {
|
|
2448
2448
|
margin: 0;
|
|
2449
2449
|
}
|
|
2450
|
-
`});var
|
|
2451
|
-
`}};ei.elementDefinitions={};ei.styles=
|
|
2450
|
+
`});var Vy,jy,ei,cu=l(()=>{"use strict";Vy=u(b()),jy=u(m());la();ei=class extends jy.FtLitElement{render(){return Vy.html`
|
|
2451
|
+
`}};ei.elementDefinitions={};ei.styles=By});var zy=l(()=>{"use strict"});var qy,Ky=l(()=>{"use strict";cu();qy={"ft-skeleton":ei}});var Wy,Gy=l(()=>{"use strict";Wy=u(m());Ky();(0,Wy.customElements)(qy)});var Qy=l(()=>{"use strict";cu();la();zy();Gy()});var hr,uu,To,fr,ua=l(()=>{"use strict";hr=u(b()),uu=u(Rr());Or();To=u(m());ca();Ge();fr=class{constructor(e,r=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new To.Debouncer(r)}render(){let e=this.recentSearchesMatchingQuery;return hr.html`
|
|
2452
2452
|
<div class="ft-search-bar--suggestions ft-word-wrap ${this.shouldDisplaySuggestions?"ft-search-bar--suggestions-not-empty":""}"
|
|
2453
2453
|
id="${this.listboxId}"
|
|
2454
2454
|
role="listbox"
|
|
2455
2455
|
aria-label="${this.searchBar.labelResolver.resolve("suggestionsAriaLabel")}"
|
|
2456
2456
|
part="suggestions-container">
|
|
2457
|
-
${(0,
|
|
2457
|
+
${(0,uu.repeat)(e.slice(0,5),r=>r,(r,i)=>hr.html`
|
|
2458
2458
|
<div part="suggestion-container"
|
|
2459
2459
|
class="${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)?"ft-search-bar--suggestions-selected":hr.nothing}">
|
|
2460
2460
|
<a href="${this.getRequestWithQuery(r)}"
|
|
@@ -2483,7 +2483,7 @@
|
|
|
2483
2483
|
</ft-button>
|
|
2484
2484
|
</div>
|
|
2485
2485
|
`)}
|
|
2486
|
-
${(0,
|
|
2486
|
+
${(0,uu.repeat)(this.searchBar.suggestions,r=>r.value,(r,i)=>hr.html`
|
|
2487
2487
|
<div part="suggestion-container"
|
|
2488
2488
|
class="${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)?"ft-search-bar--suggestions-selected":hr.nothing}">
|
|
2489
2489
|
<a href="${this.getRequestWithQuery(r.value)}"
|
|
@@ -2501,9 +2501,9 @@
|
|
|
2501
2501
|
</div>
|
|
2502
2502
|
`)}
|
|
2503
2503
|
</div>
|
|
2504
|
-
`}recentSearchId(e){return this.listboxId+"-recent-"+e}suggestionId(e){return this.listboxId+"-suggest-"+e}getRequestWithQuery(e){return this.searchBar.searchRequestSerializer({...this.searchBar.request,paging:{page:1},query:e})}update(){return new Promise((e,r)=>{this.updateDebouncer.run(async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then(i=>i.suggestions).catch(()=>[]):[],e()})})}onSuggestClick(e,r){this.searchBar.setQuery(r),this.searchBar.onLaunchSearch()}removeRecentSearch(e,r){e.preventDefault(),e.stopPropagation(),this.selectSuggestion(null),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(i=>i.toLowerCase()!==r.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let r=e.type==="DOCUMENT"?
|
|
2504
|
+
`}recentSearchId(e){return this.listboxId+"-recent-"+e}suggestionId(e){return this.listboxId+"-suggest-"+e}getRequestWithQuery(e){return this.searchBar.searchRequestSerializer({...this.searchBar.request,paging:{page:1},query:e})}update(){return new Promise((e,r)=>{this.updateDebouncer.run(async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then(i=>i.suggestions).catch(()=>[]):[],e()})})}onSuggestClick(e,r){this.searchBar.setQuery(r),this.searchBar.onLaunchSearch()}removeRecentSearch(e,r){e.preventDefault(),e.stopPropagation(),this.selectSuggestion(null),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(i=>i.toLowerCase()!==r.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let r=e.type==="DOCUMENT"?Xe.file_format:Xe.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?Ce.BOOK:Ce.ARTICLE;break;case"DOCUMENT":i=ks(e.mimeType,e.filenameExtension);break;case"TOPIC":i=Ce.TOPICS;break;case"HTML_PACKAGE":i=Ce.BOX_CODE;break;case"HTML_PACKAGE_PAGE":i=Ce.FILE_CODE;break}return hr.html`
|
|
2505
2505
|
<ft-icon .variant=${r} .value=${i} part="suggestion-icon"></ft-icon>
|
|
2506
|
-
`}focusNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}focusPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}getFirstSuggestionElement(){return this.searchBar.querySelector("[part=suggestion-container]")}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}get selectedSuggestOption(){var e;return(e=this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']"))===null||e===void 0?void 0:e.parentElement}get selectedSuggestOptionLink(){return this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']")}get selectedSuggestRemoveRecentButton(){var e;return(e=this.selectedSuggestOption)===null||e===void 0?void 0:e.querySelector("[part=remove-suggestion]")}getLastSuggestionElement(){let e=this.searchBar.querySelectorAll("[part=suggestion-container]");return e.length>0?e[e.length-1]:null}selectSuggestion(e){var r;this.searchBar.selectedSuggestRemoveRecent=!1,e?this.searchBar.selectedSuggestOptionId=(r=e.querySelector("[part=suggestions]"))===null||r===void 0?void 0:r.id:this.searchBar.selectedSuggestOptionId=void 0}focusArrowLeft(){this.searchBar.selectedSuggestRemoveRecent?this.searchBar.selectedSuggestRemoveRecent=!1:this.selectSuggestion(null)}focusArrowRight(){!this.searchBar.selectedSuggestRemoveRecent&&this.selectedSuggestRemoveRecentButton?this.searchBar.selectedSuggestRemoveRecent=!0:this.selectSuggestion(null)}get shouldDisplaySuggestions(){return this.searchBar.displaySuggestListbox&&(this.searchBar.suggestions.length>0||this.recentSearchesMatchingQuery.length>0)}get recentSearchesMatchingQuery(){return this.searchBar.recentSearches.filter(e=>e.toLowerCase().includes(this.searchBar.query.toLowerCase()))}};fr.styles=[
|
|
2506
|
+
`}focusNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}focusPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}getFirstSuggestionElement(){return this.searchBar.querySelector("[part=suggestion-container]")}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}get selectedSuggestOption(){var e;return(e=this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']"))===null||e===void 0?void 0:e.parentElement}get selectedSuggestOptionLink(){return this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']")}get selectedSuggestRemoveRecentButton(){var e;return(e=this.selectedSuggestOption)===null||e===void 0?void 0:e.querySelector("[part=remove-suggestion]")}getLastSuggestionElement(){let e=this.searchBar.querySelectorAll("[part=suggestion-container]");return e.length>0?e[e.length-1]:null}selectSuggestion(e){var r;this.searchBar.selectedSuggestRemoveRecent=!1,e?this.searchBar.selectedSuggestOptionId=(r=e.querySelector("[part=suggestions]"))===null||r===void 0?void 0:r.id:this.searchBar.selectedSuggestOptionId=void 0}focusArrowLeft(){this.searchBar.selectedSuggestRemoveRecent?this.searchBar.selectedSuggestRemoveRecent=!1:this.selectSuggestion(null)}focusArrowRight(){!this.searchBar.selectedSuggestRemoveRecent&&this.selectedSuggestRemoveRecentButton?this.searchBar.selectedSuggestRemoveRecent=!0:this.selectSuggestion(null)}get shouldDisplaySuggestions(){return this.searchBar.displaySuggestListbox&&(this.searchBar.suggestions.length>0||this.recentSearchesMatchingQuery.length>0)}get recentSearchesMatchingQuery(){return this.searchBar.recentSearches.filter(e=>e.toLowerCase().includes(this.searchBar.query.toLowerCase()))}};fr.styles=[To.wordWrap,hr.css`
|
|
2507
2507
|
.ft-search-bar--mobile .ft-search-bar--suggestions {
|
|
2508
2508
|
flex-grow: 1;
|
|
2509
2509
|
flex-shrink: 1;
|
|
@@ -2591,10 +2591,10 @@
|
|
|
2591
2591
|
}
|
|
2592
2592
|
|
|
2593
2593
|
ft-ripple {
|
|
2594
|
-
${(0,
|
|
2594
|
+
${(0,To.setVariable)(q.opacityContentOnSurfaceHover,q.opacityContentOnSurfaceSelected)}
|
|
2595
2595
|
}
|
|
2596
|
-
`]});var
|
|
2597
|
-
${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?
|
|
2596
|
+
`]});var tt,pu,pa,mr,da=l(()=>{"use strict";tt=u(b()),pu=u(Rr());kc();pa=u(m());Js();eu();mr=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return tt.html``;let e=this.searchBar.isMobile(),r=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),i=tt.html`
|
|
2597
|
+
${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?tt.html`
|
|
2598
2598
|
<ft-chip part="selected-filters selected-filter-ft-locale"
|
|
2599
2599
|
?dense=${this.searchBar.dense&&!e}
|
|
2600
2600
|
?clickable=${e}
|
|
@@ -2604,46 +2604,46 @@
|
|
|
2604
2604
|
${this.getLocaleLabel(this.searchBar.contentLocale)}
|
|
2605
2605
|
</ft-chip>
|
|
2606
2606
|
`:null}
|
|
2607
|
-
${(0,
|
|
2607
|
+
${(0,pu.repeat)(this.searchBar.facets,o=>o.key,o=>{let n=zg(o);return(0,pu.repeat)(n,s=>{let a=o.label+": "+Hg(s),c=o.key.replace(":","-"),p=tt.html`
|
|
2608
2608
|
<ft-chip
|
|
2609
|
-
part="selected-filters selected-filter-${
|
|
2609
|
+
part="selected-filters selected-filter-${c}"
|
|
2610
2610
|
?dense=${this.searchBar.dense&&!e}
|
|
2611
2611
|
?clickable=${e}
|
|
2612
2612
|
?removable=${!e}
|
|
2613
|
-
icon=${e?
|
|
2613
|
+
icon=${e?tt.nothing:"close"}
|
|
2614
2614
|
label="${a}"
|
|
2615
|
-
title=${r?a:
|
|
2615
|
+
title=${r?a:tt.nothing}
|
|
2616
2616
|
@click=${()=>this.openMobileFilters(o.key)}
|
|
2617
2617
|
@icon-click=${()=>this.searchBar.setFilter(o.key,n.filter(d=>d!==s))}
|
|
2618
2618
|
data-key="${o.key}"
|
|
2619
2619
|
data-value="${s}">
|
|
2620
|
-
${
|
|
2620
|
+
${Ug(s)}
|
|
2621
2621
|
</ft-chip>
|
|
2622
|
-
`;return r?p:
|
|
2622
|
+
`;return r?p:tt.html`
|
|
2623
2623
|
<ft-tooltip inline text="${a}">
|
|
2624
2624
|
${p}
|
|
2625
2625
|
</ft-tooltip>
|
|
2626
2626
|
`})})}
|
|
2627
|
-
${e?
|
|
2627
|
+
${e?tt.html`
|
|
2628
2628
|
<ft-chip part="selected-filters mobile-filters-opener"
|
|
2629
2629
|
icon="plus"
|
|
2630
2630
|
clickable
|
|
2631
2631
|
@click=${()=>{this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0}}>
|
|
2632
2632
|
${this.searchBar.labelResolver.resolve("filtersButton")}
|
|
2633
2633
|
</ft-chip>
|
|
2634
|
-
`:
|
|
2635
|
-
`;return r?
|
|
2634
|
+
`:tt.nothing}
|
|
2635
|
+
`;return r?tt.html`
|
|
2636
2636
|
<ft-snap-scroll horizontal controls hideScrollbar limitSize
|
|
2637
2637
|
class="ft-search-bar--selected-filters"
|
|
2638
2638
|
part="selected-filters-container"
|
|
2639
2639
|
exportpartsPrefix="selected-filters-container">
|
|
2640
2640
|
${i}
|
|
2641
2641
|
</ft-snap-scroll>
|
|
2642
|
-
`:
|
|
2642
|
+
`:tt.html`
|
|
2643
2643
|
<div class="ft-search-bar--selected-filters" part="selected-filters-container">
|
|
2644
2644
|
${i}
|
|
2645
2645
|
</div>
|
|
2646
|
-
`}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var r;return(r=this.searchBar.availableContentLocales.filter(i=>{var o;return((o=i.lang)!==null&&o!==void 0?o:"").toLowerCase()===(e??"").toLowerCase()}).map(i=>i.label).pop())!==null&&r!==void 0?r:e}};mr.styles=
|
|
2646
|
+
`}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var r;return(r=this.searchBar.availableContentLocales.filter(i=>{var o;return((o=i.lang)!==null&&o!==void 0?o:"").toLowerCase()===(e??"").toLowerCase()}).map(i=>i.label).pop())!==null&&r!==void 0?r:e}};mr.styles=tt.css`
|
|
2647
2647
|
.ft-search-bar--selected-filters:not(ft-snap-scroll) {
|
|
2648
2648
|
flex-shrink: 0;
|
|
2649
2649
|
display: flex;
|
|
@@ -2654,7 +2654,7 @@
|
|
|
2654
2654
|
|
|
2655
2655
|
ft-snap-scroll.ft-search-bar--selected-filters {
|
|
2656
2656
|
overflow: hidden;
|
|
2657
|
-
${(0,
|
|
2657
|
+
${(0,pa.setVariable)(Je.gap,"4px")};
|
|
2658
2658
|
}
|
|
2659
2659
|
|
|
2660
2660
|
ft-snap-scroll.ft-search-bar--selected-filters::part(content) {
|
|
@@ -2662,8 +2662,8 @@
|
|
|
2662
2662
|
}
|
|
2663
2663
|
|
|
2664
2664
|
.ft-search-bar--desktop ft-snap-scroll.ft-search-bar--selected-filters {
|
|
2665
|
-
${(0,
|
|
2666
|
-
${(0,
|
|
2665
|
+
${(0,pa.setVariable)(De.iconSize,"17px")};
|
|
2666
|
+
${(0,pa.setVariable)(De.fontSize,"12px")};
|
|
2667
2667
|
}
|
|
2668
2668
|
|
|
2669
2669
|
.ft-search-bar--selected-filters * {
|
|
@@ -2673,8 +2673,8 @@
|
|
|
2673
2673
|
.ft-search-bar--selected-filters ft-chip {
|
|
2674
2674
|
flex-grow: 0;
|
|
2675
2675
|
}
|
|
2676
|
-
`});var
|
|
2677
|
-
<div class="${(0,
|
|
2676
|
+
`});var Jt,Yy,Xy,c0,_o,Zy=l(()=>{"use strict";Jt=u(b());da();ua();Yy=u(it()),Xy=u(m()),c0=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},_o=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new mr(e),this.suggestManager=i??new fr(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 Jt.html`
|
|
2677
|
+
<div class="${(0,Yy.classMap)(r)}" part="container" tabindex="-1">
|
|
2678
2678
|
<div class="ft-search-bar" role="search">
|
|
2679
2679
|
<div class="ft-search-bar--input-container" part="input-container">
|
|
2680
2680
|
<div class="ft-search-bar--input-outline" part="input-outline">
|
|
@@ -2683,7 +2683,7 @@
|
|
|
2683
2683
|
aria-autocomplete="list"
|
|
2684
2684
|
aria-controls="${this.suggestManager.listboxId}"
|
|
2685
2685
|
aria-expanded="${this.searchBar.displaySuggestListbox}"
|
|
2686
|
-
aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:
|
|
2686
|
+
aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:Jt.nothing}"
|
|
2687
2687
|
part="input"
|
|
2688
2688
|
type="search"
|
|
2689
2689
|
placeholder="${this.searchBar.labelResolver.resolve("inputPlaceHolder")}"
|
|
@@ -2697,7 +2697,7 @@
|
|
|
2697
2697
|
</div>
|
|
2698
2698
|
${this.searchBar.displayFacets?this.searchBar.renderFacetsActions():this.selectedFacetsManager.render()}
|
|
2699
2699
|
${this.searchBar.displayFacets?this.searchBar.renderMobileFacets():this.suggestManager.render()}
|
|
2700
|
-
${this.searchBar.isMobileMenuOpen()||this.searchBar.displayFacets?
|
|
2700
|
+
${this.searchBar.isMobileMenuOpen()||this.searchBar.displayFacets?Jt.html`
|
|
2701
2701
|
<ft-button class="ft-search-bar--launch-search"
|
|
2702
2702
|
href="${this.searchBar.searchRequestSerializer(this.searchBar.request)}"
|
|
2703
2703
|
part="launch-search-in-panel"
|
|
@@ -2705,11 +2705,11 @@
|
|
|
2705
2705
|
@click=${()=>this.searchBar.onLaunchSearch()}>
|
|
2706
2706
|
${this.searchBar.labelResolver.resolve("searchButton")}
|
|
2707
2707
|
</ft-button>
|
|
2708
|
-
`:
|
|
2708
|
+
`:Jt.nothing}
|
|
2709
2709
|
</div>
|
|
2710
|
-
`}renderMobileSearchBarButtons(){let e=this.searchBar.query||this.searchBar.isMobileMenuOpen()&&!this.searchBar.forceMobileMenuOpen;return
|
|
2710
|
+
`}renderMobileSearchBarButtons(){let e=this.searchBar.query||this.searchBar.isMobileMenuOpen()&&!this.searchBar.forceMobileMenuOpen;return Jt.html`
|
|
2711
2711
|
<div class="ft-search-bar--actions" part="search-bar-actions">
|
|
2712
|
-
${e?
|
|
2712
|
+
${e?Jt.html`
|
|
2713
2713
|
<ft-button class="ft-search-bar--clear-query"
|
|
2714
2714
|
part="clear-query"
|
|
2715
2715
|
icon="close"
|
|
@@ -2719,7 +2719,7 @@
|
|
|
2719
2719
|
@click=${async()=>{this.searchBar.setQuery(""),this.searchBar.mobileMenuOpen=!1,this.searchBar.displayFacets=!1}}
|
|
2720
2720
|
></ft-button>
|
|
2721
2721
|
<div class="ft-search-bar--separator"></div>
|
|
2722
|
-
`:
|
|
2722
|
+
`:Jt.nothing}
|
|
2723
2723
|
<ft-button class="ft-search-bar--launch-search"
|
|
2724
2724
|
href="${this.searchBar.isMobileMenuOpen()?this.searchBar.searchRequestSerializer(this.searchBar.request):""}"
|
|
2725
2725
|
part="launch-search-in-bar"
|
|
@@ -2730,21 +2730,21 @@
|
|
|
2730
2730
|
@click=${()=>{var r;return this.searchBar.isMobileMenuOpen()?this.searchBar.onLaunchSearch():(r=this.searchBar.input)===null||r===void 0?void 0:r.focus()}}
|
|
2731
2731
|
></ft-button>
|
|
2732
2732
|
</div>
|
|
2733
|
-
`}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}};
|
|
2733
|
+
`}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}};_o.styles=Jt.css`
|
|
2734
2734
|
|
|
2735
|
-
`;
|
|
2736
|
-
<div class="${(0,
|
|
2735
|
+
`;c0([(0,Xy.ignoreComposingEvents)()],_o.prototype,"onSearchBarKeyDown",null)});var rt,Jy,eb,tb,u0,Lo,rb=l(()=>{"use strict";rt=u(b()),Jy=u(Rr());da();ua();eb=u(it()),tb=u(m()),u0=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Lo=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new mr(e),this.suggestManager=i??new fr(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 rt.html`
|
|
2736
|
+
<div class="${(0,eb.classMap)(r)}" part="container" tabindex="-1">
|
|
2737
2737
|
<div class="ft-search-bar" part="search-bar" role="search">
|
|
2738
2738
|
${this.renderSearchBarLeftAction()}
|
|
2739
2739
|
<div class="ft-search-bar--input-container" part="input-container" tabindex="-1">
|
|
2740
2740
|
<div class="ft-search-bar--input-outline" part="input-outline">
|
|
2741
|
-
${this.searchBar.dense?this.selectedFacetsManager.render():
|
|
2741
|
+
${this.searchBar.dense?this.selectedFacetsManager.render():rt.nothing}
|
|
2742
2742
|
<input class="ft-search-bar--input ft-typography--body2"
|
|
2743
2743
|
role="combobox"
|
|
2744
2744
|
aria-autocomplete="list"
|
|
2745
2745
|
aria-controls="${this.suggestManager.listboxId}"
|
|
2746
2746
|
aria-expanded="${this.searchBar.displaySuggestListbox}"
|
|
2747
|
-
aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:
|
|
2747
|
+
aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:rt.nothing}"
|
|
2748
2748
|
part="input"
|
|
2749
2749
|
type="search"
|
|
2750
2750
|
placeholder="${this.searchBar.labelResolver.resolve("inputPlaceHolder")}"
|
|
@@ -2759,9 +2759,9 @@
|
|
|
2759
2759
|
${this.renderDesktopSearchBarButtons()}
|
|
2760
2760
|
${this.searchBar.renderDesktopFloatingMenu()}
|
|
2761
2761
|
</div>
|
|
2762
|
-
${this.searchBar.dense?
|
|
2762
|
+
${this.searchBar.dense?rt.nothing:this.searchBar.forceMenuOpen?this.searchBar.renderDesktopMenu():this.selectedFacetsManager.render()}
|
|
2763
2763
|
</div>
|
|
2764
|
-
`}renderSearchBarLeftAction(){return this.searchBar.hasFacets()?this.searchBar.forceMenuOpen?
|
|
2764
|
+
`}renderSearchBarLeftAction(){return this.searchBar.hasFacets()?this.searchBar.forceMenuOpen?rt.nothing:rt.html`
|
|
2765
2765
|
<ft-button class="ft-search-bar--filters-opener ft-search-bar--left-action"
|
|
2766
2766
|
part="filters-opener"
|
|
2767
2767
|
trailingIcon
|
|
@@ -2773,24 +2773,24 @@
|
|
|
2773
2773
|
>
|
|
2774
2774
|
${this.searchBar.labelResolver.resolve("filtersButton")}
|
|
2775
2775
|
</ft-button>
|
|
2776
|
-
`:this.searchBar.hasLocaleSelector()?
|
|
2776
|
+
`:this.searchBar.hasLocaleSelector()?rt.html`
|
|
2777
2777
|
<ft-select outlined
|
|
2778
2778
|
class="ft-search-bar--content-locale ft-search-bar--left-action"
|
|
2779
2779
|
part="content-locale select-ft-locale"
|
|
2780
2780
|
ariaLabel="${this.searchBar.labelResolver.resolve("selectLocale")}"
|
|
2781
2781
|
.exportpartsPrefixes=${["content-locale","select-ft-locale"]}
|
|
2782
2782
|
@change=${e=>this.searchBar.contentLocale=e.detail==null?void 0:e.detail}>
|
|
2783
|
-
${(0,
|
|
2783
|
+
${(0,Jy.repeat)(this.searchBar.availableContentLocales,e=>e.lang,e=>rt.html`
|
|
2784
2784
|
<ft-select-option .value=${e.lang}
|
|
2785
2785
|
label="${e.label}"
|
|
2786
2786
|
?selected=${e.lang==this.searchBar.contentLocale}>
|
|
2787
2787
|
</ft-select-option>
|
|
2788
2788
|
`)}
|
|
2789
2789
|
</ft-select>
|
|
2790
|
-
`:
|
|
2790
|
+
`:rt.nothing}renderDesktopSearchBarButtons(){return rt.html`
|
|
2791
2791
|
<div class="ft-search-bar--actions"
|
|
2792
2792
|
part="search-bar-actions">
|
|
2793
|
-
${this.searchBar.query?
|
|
2793
|
+
${this.searchBar.query?rt.html`
|
|
2794
2794
|
<ft-button class="ft-search-bar--clear-query"
|
|
2795
2795
|
part="clear-query"
|
|
2796
2796
|
icon="close"
|
|
@@ -2809,9 +2809,9 @@
|
|
|
2809
2809
|
@click=${()=>this.searchBar.onLaunchSearch()}
|
|
2810
2810
|
></ft-button>
|
|
2811
2811
|
</div>
|
|
2812
|
-
`}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)}};
|
|
2812
|
+
`}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)}};Lo.styles=rt.css`
|
|
2813
2813
|
|
|
2814
|
-
`;
|
|
2814
|
+
`;u0([(0,tb.ignoreComposingEvents)()],Lo.prototype,"onSearchBarKeyDown",null)});var G,z,Rn,J,H,ib,du,p0,L,hu=l(()=>{"use strict";G=u(b()),z=u(F()),Rn=u(Rr()),J=u(m());Bg();me();kc();Fv();Or();Jv();Wt();eu();Ny();Js();Jl();Ge();ca();Qy();ua();da();Zy();rb();Uc();jt();H=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>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");ib={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},du=class extends CustomEvent{constructor(e){super("change",{detail:e})}},p0=()=>{},L=class extends J.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 J.ParametrizedLabelResolver(ib,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new J.SearchPlaceConverter(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=Nt.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 fr(this),this.selectedFacetsManager=new mr(this),this.desktopSearchBarManager=new Lo(this),this.mobileSearchBarManager=new _o(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new J.Debouncer(10),this.updateLocalesDebouncer=new J.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 J.Debouncer(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(r=>r===this.floatingContainer))},this.closeSuggestListbox=e=>{e.composedPath().some(o=>o===this||o===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(o=>this.compareFilters(i,o)))}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,o;return((o=(i=r.valueFilter)===null||i===void 0?void 0:i.values.length)!==null&&o!==void 0?o: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===Nt.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var e;(e=this.container)===null||e===void 0||e.focus()}async focusInput(e=!1){this.reactToFocus=e,await(0,J.waitFor)(()=>this.input,50),this.input.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return G.html`
|
|
2815
2815
|
<ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
|
|
2816
2816
|
<div class="sr-only" aria-live="polite" aria-atomic="true">
|
|
2817
2817
|
${this.renderLiveText()}
|
|
@@ -2839,7 +2839,7 @@
|
|
|
2839
2839
|
</div>
|
|
2840
2840
|
</ft-accordion-item>
|
|
2841
2841
|
`:null}
|
|
2842
|
-
${(0,Rn.repeat)(this.facets,r=>r.key,r=>{let i=
|
|
2842
|
+
${(0,Rn.repeat)(this.facets,r=>r.key,r=>{let i=Lc(r),o=r.key.replace(":","-"),n=jg(i);return r.rootNodes.length>0?G.html`
|
|
2843
2843
|
<ft-accordion-item data-facet-key="${r.key}">
|
|
2844
2844
|
<div class="ft-search-bar--filter-label" slot="toggle">
|
|
2845
2845
|
<ft-typography variant="button">${r.label}</ft-typography>
|
|
@@ -2932,7 +2932,7 @@
|
|
|
2932
2932
|
${this.getContentLocaleRadioGroup()}
|
|
2933
2933
|
</div>
|
|
2934
2934
|
`:G.nothing}
|
|
2935
|
-
${(0,Rn.repeat)(this.facets,e=>e.key,e=>{let r=
|
|
2935
|
+
${(0,Rn.repeat)(this.facets,e=>e.key,e=>{let r=Lc(e),i=r.options.some(n=>{var s,a;return((a=(s=n.subOptions)===null||s===void 0?void 0:s.length)!==null&&a!==void 0?a:0)>0}),o=e.key.replace(":","-");return G.html`
|
|
2936
2936
|
<ft-filter
|
|
2937
2937
|
class="${i?"ft-search-bar--hierarchical-filter":""}"
|
|
2938
2938
|
part="filters filter filter-${o}"
|
|
@@ -2951,14 +2951,14 @@
|
|
|
2951
2951
|
></ft-filter>
|
|
2952
2952
|
`})}
|
|
2953
2953
|
</ft-snap-scroll>
|
|
2954
|
-
`:G.nothing}async firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",r=>{r.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var r,i,o,n,s;if(e.has("labels")&&(this.labelResolver=new J.ParametrizedLabelResolver(
|
|
2954
|
+
`:G.nothing}async firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",r=>{r.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var r,i,o,n,s;if(e.has("labels")&&(this.labelResolver=new J.ParametrizedLabelResolver(ib,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=c=>this.availableContentLocales.some(p=>p.lang==c);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")&&((i=this.presets)!==null&&i!==void 0?i:[]).forEach(a=>a.metadataFilters.forEach(c=>{c.valueFilter&&(c.valueFilter.values=c.valueFilter.values.map(p=>Qs(p)))})),e.has("presets")||e.has("selectedPreset")){let a=((o=this.presets)!==null&&o!==void 0?o:[]).find(c=>c.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=(s=((n=this.presets)!==null&&n!==void 0?n:[]).find(a=>this.compareRequests(a,this.request)))===null||s===void 0?void 0:s.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 du(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,o;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(s=>s.key===this.scrollToFacet));let n=(o=this.shadowRoot)===null||o===void 0?void 0:o.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(o=>{this.knownFacetLabels.set(o.key,o.label),r.set(o.key,o)})).catch(p0)),this.facets=[];for(let i of this.facetsRequest)r.has(i.id)?this.facets.push(r.get(i.id)):this.knownFacetLabels.has(i.id)&&this.facets.push({key:i.id,label:this.knownFacetLabels.get(i.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1})}onFloatingContainerKeyUp(e){var r;e.key==="Escape"&&(this.displayFacets=!1,(r=this.filtersOpener)===null||r===void 0||r.focus())}setQuery(e){this.input&&(this.input.value=e),this.query=e}onLaunchSearch(){if(this.query){let e=this.recentSearches.filter(r=>r.toLowerCase()!==this.query.toLowerCase()).filter((r,i)=>i<20);this.recentSearches=[this.query,...e],this.saveRecentSearches()}this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}initRecentSearches(){var e;this.recentSearches=JSON.parse((e=window.localStorage.getItem(this.recentSearchesStorageKey))!==null&&e!==void 0?e:"[]")}saveRecentSearches(){let e=JSON.stringify(this.recentSearches);window.localStorage.setItem(this.recentSearchesStorageKey,e),window.dispatchEvent(new StorageEvent("storage",{key:this.recentSearchesStorageKey,newValue:e,storageArea:window.localStorage,url:window.location.href}))}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer),this.focusOnDisplay&&!J.isTouchScreen&&this.focusInput(),w.addEventListener("authentication-change",this.initSearchData),this.initSearchData()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox),document.removeEventListener("focusin",this.closeFloatingContainer),document.removeEventListener("click",this.closeFloatingContainer),w.removeEventListener("authentication-change",this.initSearchData)}updateSize(e){this.sizeCategory=e.detail.category}setFilter(e,r){let i=this.metadataFilters.filter(o=>!o.valueFilter||o.key!==e);this.facets.forEach(o=>{o.key===e&&(0,J.flatDeep)(o.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,J.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?G.nothing:G.html`
|
|
2955
2955
|
<div class="ft-search-bar--floating-panel"
|
|
2956
2956
|
id="ft-search-bar-floating-panel"
|
|
2957
2957
|
@keyup=${this.onFloatingContainerKeyUp}
|
|
2958
2958
|
part="floating-panel"
|
|
2959
2959
|
tabindex="-1">
|
|
2960
2960
|
${this.renderDesktopMenu()}
|
|
2961
|
-
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};
|
|
2961
|
+
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};L.elementDefinitions={"ft-accordion":dr,"ft-accordion-item":Ft,"ft-button":_,"ft-chip":he,"ft-filter":W,"ft-filter-option":St,"ft-icon":oe,"ft-ripple":k,"ft-select":ie,"ft-select-option":qe,"ft-size-watcher":gt,"ft-skeleton":ei,"ft-snap-scroll":Ee,"ft-tooltip":ge,"ft-typography":V,"ft-radio-group":yt,"ft-radio":Le};L.styles=[Dr,J.noTextInputDefaultClearButton,Uy,Hy,mr.styles,fr.styles,J.screenReaderStyles];H([(0,z.property)({type:Boolean})],L.prototype,"dense",void 0);H([(0,z.property)()],L.prototype,"mode",void 0);H([(0,z.property)({type:Boolean})],L.prototype,"forceMobileMenuOpen",void 0);H([(0,z.property)({type:Boolean})],L.prototype,"forceMenuOpen",void 0);H([(0,z.property)()],L.prototype,"baseUrl",void 0);H([(0,z.property)()],L.prototype,"apiIntegrationIdentifier",void 0);H([(0,z.property)()],L.prototype,"contentLocale",void 0);H([(0,z.state)()],L.prototype,"availableContentLocales",void 0);H([(0,z.state)()],L.prototype,"availableContentLocalesInitialized",void 0);H([(0,z.property)()],L.prototype,"uiLocale",void 0);H([(0,J.jsonProperty)({})],L.prototype,"labels",void 0);H([(0,J.jsonProperty)([])],L.prototype,"displayedFilters",void 0);H([(0,J.jsonProperty)([])],L.prototype,"presets",void 0);H([(0,z.property)({type:String,reflect:!0})],L.prototype,"selectedPreset",void 0);H([(0,J.jsonProperty)([])],L.prototype,"priors",void 0);H([(0,z.property)()],L.prototype,"searchRequestSerializer",void 0);H([(0,z.property)({type:Boolean})],L.prototype,"focusOnDisplay",void 0);H([(0,z.state)()],L.prototype,"metadataFilters",void 0);H([(0,z.state)()],L.prototype,"sizeCategory",void 0);H([(0,z.state)()],L.prototype,"displayFacets",void 0);H([(0,z.state)()],L.prototype,"mobileMenuOpen",void 0);H([(0,z.state)()],L.prototype,"facets",void 0);H([(0,z.state)()],L.prototype,"facetsInitialized",void 0);H([(0,z.query)(".ft-search-bar--container")],L.prototype,"container",void 0);H([(0,z.query)(".ft-search-bar--filters-opener")],L.prototype,"filtersOpener",void 0);H([(0,z.query)(".ft-search-bar--floating-panel")],L.prototype,"floatingContainer",void 0);H([(0,z.query)("ft-snap-scroll.ft-search-bar--filters-container")],L.prototype,"scrollingFiltersContainer",void 0);H([(0,z.query)(".ft-search-bar--input")],L.prototype,"input",void 0);H([(0,z.query)(".ft-search-bar--launch-search")],L.prototype,"launchSearchButton",void 0);H([(0,z.state)()],L.prototype,"query",void 0);H([(0,z.state)()],L.prototype,"suggestions",void 0);H([(0,z.state)()],L.prototype,"recentSearches",void 0);H([(0,z.state)()],L.prototype,"scrollToFacet",void 0);H([(0,z.state)()],L.prototype,"api",void 0);H([(0,z.state)()],L.prototype,"displaySuggestListbox",void 0);H([(0,z.state)()],L.prototype,"selectedSuggestOptionId",void 0);H([(0,z.state)()],L.prototype,"selectedSuggestRemoveRecent",void 0);H([(0,z.state)()],L.prototype,"facetsLoaded",void 0)});var ob=l(()=>{"use strict"});var nb,sb=l(()=>{"use strict";hu();nb={"ft-search-bar":L}});var ab,lb=l(()=>{"use strict";ab=u(m());sb();(0,ab.customElements)(nb)});var cb=l(()=>{"use strict";hu();ca();ob();lb()});var ub,pb,db,hb=l(()=>{"use strict";ub=u(b());un();pb=u(m());Ge();cb();db=ub.css`
|
|
2962
2962
|
* {
|
|
2963
2963
|
box-sizing: border-box;
|
|
2964
2964
|
}
|
|
@@ -2975,6 +2975,17 @@
|
|
|
2975
2975
|
box-shadow: ${ee.elevation02};
|
|
2976
2976
|
}
|
|
2977
2977
|
|
|
2978
|
+
.ft-search-input-suggestion--container {
|
|
2979
|
+
display: flex;
|
|
2980
|
+
align-items: center;
|
|
2981
|
+
}
|
|
2982
|
+
|
|
2983
|
+
.ft-search-input-suggestion--container:has([aria-selected="true"]),
|
|
2984
|
+
.ft-search-input-suggestion--container:hover {
|
|
2985
|
+
outline: none;
|
|
2986
|
+
box-shadow: inset 3px 0 0 ${T.activeItemBorderColor};
|
|
2987
|
+
}
|
|
2988
|
+
|
|
2978
2989
|
.ft-search-input-suggestion--suggestion {
|
|
2979
2990
|
text-decoration: none;
|
|
2980
2991
|
position: relative;
|
|
@@ -2985,19 +2996,13 @@
|
|
|
2985
2996
|
cursor: pointer;
|
|
2986
2997
|
color: ${ee.colorOnSurface};
|
|
2987
2998
|
min-height: 44px;
|
|
2999
|
+
flex-grow: 1;
|
|
2988
3000
|
}
|
|
2989
3001
|
|
|
2990
3002
|
.ft-search-input-suggestion--suggestion > *:not(ft-ripple) {
|
|
2991
3003
|
position: relative;
|
|
2992
3004
|
}
|
|
2993
3005
|
|
|
2994
|
-
.ft-search-input-suggestion--suggestion[aria-selected="true"],
|
|
2995
|
-
.ft-search-input-suggestion--suggestion:hover {
|
|
2996
|
-
outline: none;
|
|
2997
|
-
box-shadow: inset 3px 0 0 ${T.activeItemBorderColor};
|
|
2998
|
-
|
|
2999
|
-
}
|
|
3000
|
-
|
|
3001
3006
|
.ft-search-input-suggestion--suggestion ft-typography {
|
|
3002
3007
|
display: block;
|
|
3003
3008
|
flex-grow: 1;
|
|
@@ -3005,58 +3010,61 @@
|
|
|
3005
3010
|
}
|
|
3006
3011
|
|
|
3007
3012
|
ft-ripple {
|
|
3008
|
-
${(0,
|
|
3013
|
+
${(0,pb.setVariable)(q.opacityContentOnSurfaceHover,q.opacityContentOnSurfaceSelected)}
|
|
3009
3014
|
}
|
|
3010
|
-
`});var
|
|
3015
|
+
`});var fb,Ni,fu,ti,mb=l(()=>{"use strict";fb=u(m()),Ni=u(b());hb();fu=u(Rr());Or();Ge();me();jt();Ac();Wt();ti=class{constructor(e){this.ftSearchInput=e,this.listboxId="ft-search-input-suggestion"}render(){var e;let r=Er.get(),{recentQuerySuggestions:i}=this.ftSearchInput;return Ni.html`
|
|
3011
3016
|
<div class="ft-search-input-suggestion ft-word-wrap"
|
|
3012
3017
|
id="${this.listboxId}"
|
|
3013
3018
|
role="listbox"
|
|
3014
|
-
aria-label="${
|
|
3019
|
+
aria-label="${wr.messages.suggestionsLabel()}"
|
|
3015
3020
|
part="container">
|
|
3016
|
-
${(0,
|
|
3021
|
+
${(0,fu.repeat)(i,o=>o,(o,n)=>this.renderRecentQuery(n,o,r))}
|
|
3022
|
+
${(0,fu.repeat)((e=this.ftSearchInput.suggestResults)!==null&&e!==void 0?e:[],o=>o.value,(o,n)=>this.renderSuggestion(i.length+n,o,r))}
|
|
3017
3023
|
</div>
|
|
3018
|
-
`}renderSuggestion(e,r,i){let o
|
|
3019
|
-
<
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
`;if(this.ftSearchInput.launchSearchPath){let s={...this.ftSearchInput.request,query:r.value},a=i.serializeToCurrentPageIfPossible(s,this.ftSearchInput.launchSearchPath);return Lo.html`
|
|
3023
|
-
<a href="${a}"
|
|
3024
|
+
`}renderRecentQuery(e,r,i){return this.renderOption(e,r,"history",Xe.material,!0,i)}renderSuggestion(e,r,i){let o=r.type==="DOCUMENT"?Xe.file_format:Xe.fluid_topics,n;switch(r.type){case"MAP":n=r.editorialType==="BOOK"?Ce.BOOK:Ce.ARTICLE;break;case"DOCUMENT":n=ks(r.mimeType,r.filenameExtension);break;case"TOPIC":n=Ce.TOPICS;break;case"HTML_PACKAGE":n=Ce.BOX_CODE;break;case"HTML_PACKAGE_PAGE":n=Ce.FILE_CODE;break}return this.renderOption(e,r.value,n,o,!1,i)}renderOption(e,r,i,o,n,s){let a=this.ftSearchInput.selectedSuggestOptionIndex===e,c=this.ftSearchInput.selectedSuggestOptionRemove,p=this.ftSearchInput.launchSearchPath?s.serializeToCurrentPageIfPossible({...this.ftSearchInput.request,query:r},this.ftSearchInput.launchSearchPath):Ni.nothing;return Ni.html`
|
|
3025
|
+
<div part="suggestion-container"
|
|
3026
|
+
class="ft-search-input-suggestion--container">
|
|
3027
|
+
<a href="${p}"
|
|
3024
3028
|
part="suggestion"
|
|
3025
3029
|
class="ft-search-input-suggestion--suggestion"
|
|
3026
3030
|
role="option"
|
|
3027
|
-
id="
|
|
3028
|
-
aria-selected="${
|
|
3031
|
+
id="suggestion-${e}"
|
|
3032
|
+
aria-selected="${a}"
|
|
3029
3033
|
tabindex="-1"
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3034
|
+
@click=${()=>this.onSelectOption(r)}
|
|
3035
|
+
>
|
|
3036
|
+
<ft-ripple ?activated=${a&&!c}></ft-ripple>
|
|
3037
|
+
<ft-icon variant="${o}" value="${i}" part="suggestion-icon"></ft-icon>
|
|
3038
|
+
<ft-typography variant="${Q.body1}">${r}</ft-typography>
|
|
3033
3039
|
</a>
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3040
|
+
${n?Ni.html`
|
|
3041
|
+
<ft-button icon="${Ce.CLOSE}"
|
|
3042
|
+
round
|
|
3043
|
+
part="remove-suggestion"
|
|
3044
|
+
class="ft-search-input-suggestion--remove"
|
|
3045
|
+
id="remove-suggestion-${e}"
|
|
3046
|
+
label="${wr.messages.removeRecentQuery(r)}"
|
|
3047
|
+
tooltipPosition="left"
|
|
3048
|
+
tabindex="-1"
|
|
3049
|
+
?activated=${a&&c}
|
|
3050
|
+
@click=${()=>this.onRemoveRecentQuery(r)}>
|
|
3051
|
+
</ft-button>
|
|
3052
|
+
`:Ni.nothing}
|
|
3043
3053
|
</div>
|
|
3044
|
-
`}
|
|
3045
|
-
<
|
|
3046
|
-
`}get selectedSuggestOption(){return this.ftSearchInput.shadowRoot.querySelector(`#${this.ftSearchInput.selectedSuggestOptionId}`)}getLastSuggestionElement(){let e=this.ftSearchInput.shadowRoot.querySelectorAll("[role=option]");return e.length>0?e[e.length-1]:null}getFirstSuggestionElement(){return this.ftSearchInput.shadowRoot.querySelector("[role=option]")}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}selectSuggestion(e){e?this.ftSearchInput.selectedSuggestOptionId=e.id:this.ftSearchInput.selectedSuggestOptionId=void 0}selectNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}selectPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}clearSelection(){this.selectSuggestion(null)}};ti.elementDefinitions={"ft-ripple":k,"ft-typography":j,"ft-icon":oe};ti.styles=[db.wordWrap,ub]});var ko,tt,Bt,mb,et,fe,hu=l(()=>{"use strict";ko=c(b()),tt=c(m());un();_i();kt();Cc();Bt=c(F()),mb=c(rt());fb();lr();me();Vt();ws();et=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},fe=class extends nt(Dt){constructor(){super(),this.liveQuery="",this.forceCloseSuggestion=!1,this.displaySuggestListbox=!1,this.useCustomSearchPath=!1,this.triggerSearchOnClear=!1,this.focusOnDisplay=!1,this.suggestions=new ti(this),this.showSuggestionsOnFocus=!0,this.closeSuggestListbox=e=>{e.composedPath().some(o=>o===this||o===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.addI18nContext(Qr)}render(){var e,r,i;let o={"ft-search-input":!0,"ft-search-input--with-suggestions":(r=(e=this.suggestResults)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:!1,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},n={...this.request,query:this.liveQuery},s=this.useCustomSearchPath?this.launchSearchPath:void 0,a=Cr.get().serializeToCurrentPageIfPossible(n,s);return ko.html`
|
|
3047
|
-
<div class="${(0,mb.classMap)(o)}" @focusout=${()=>this.forceCloseSuggestion=!1} role="search">
|
|
3054
|
+
`}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()}};ti.elementDefinitions={"ft-ripple":k,"ft-typography":V,"ft-icon":oe,"ft-button":_};ti.styles=[fb.wordWrap,db]});function h0(t){let e=t.liveQuery.trim().toLowerCase();return t.recentQueries.filter(r=>r.toLowerCase().includes(e)).slice(0,d0)}var ko,Ke,Ct,gb,Be,d0,ue,mu=l(()=>{"use strict";ko=u(b()),Ke=u(m());un();_i();Pt();Ac();Ct=u(F()),gb=u(it());mb();Wt();me();jt();ws();Be=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},d0=5;ue=class extends st(Mt){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 ti(this),this.showSuggestionsOnFocus=!0,this.onPointerDown=e=>{e.composedPath().some(o=>o===this||o===this.shadowRoot)||this.suggestions.closeBox()},this.addI18nContext(wr)}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},o={...this.request,query:this.liveQuery},n=this.useCustomSearchPath?this.launchSearchPath:void 0,s=Er.get().serializeToCurrentPageIfPossible(o,n),a=!this.forceCloseSuggestion&&this.displaySuggestListbox&&r;return ko.html`
|
|
3055
|
+
<div class="${(0,gb.classMap)(i)}" @focusout=${()=>this.forceCloseSuggestion=!1} role="search">
|
|
3048
3056
|
<div class="ft-search-input--input-container" part="input-container" tabindex="-1">
|
|
3049
3057
|
<div class="ft-search-input--input-outline" part="input-outline">
|
|
3050
3058
|
<input class="ft-search-input--input ft-typography--body2"
|
|
3051
3059
|
part="input"
|
|
3052
3060
|
type="search"
|
|
3053
|
-
placeholder="${this.placeholder?this.placeholder.message:
|
|
3054
|
-
|
|
3061
|
+
placeholder="${this.placeholder?this.placeholder.message:wr.messages.placeholder()}"
|
|
3062
|
+
value="${this.liveQuery}"
|
|
3055
3063
|
role="combobox"
|
|
3056
3064
|
aria-autocomplete="list"
|
|
3057
3065
|
aria-controls="${this.suggestions.listboxId}"
|
|
3058
3066
|
aria-expanded="${this.displaySuggestListbox}"
|
|
3059
|
-
aria-activedescendant="${(
|
|
3067
|
+
aria-activedescendant="${(e=this.suggestions.activeElementId)!==null&&e!==void 0?e:ko.nothing}"
|
|
3060
3068
|
@input=${this.onInput}
|
|
3061
3069
|
@click=${this.onClick}
|
|
3062
3070
|
@focus=${this.onFocus}
|
|
@@ -3064,9 +3072,9 @@
|
|
|
3064
3072
|
@keyup=${this.onSearchBarKeyUp}>
|
|
3065
3073
|
</div>
|
|
3066
3074
|
<div class="sr-only" aria-live="polite" aria-atomic="true">
|
|
3067
|
-
${this.
|
|
3075
|
+
${a?wr.messages.ariaLiveSuggestions(this.suggestions.recentQueriesCount(),this.suggestions.suggestionsCount()):""}
|
|
3068
3076
|
</div>
|
|
3069
|
-
${
|
|
3077
|
+
${a?this.suggestions.render():ko.nothing}
|
|
3070
3078
|
</div>
|
|
3071
3079
|
<div class="ft-search-input--actions" part="actions">
|
|
3072
3080
|
${this.liveQuery?ko.html`
|
|
@@ -3075,7 +3083,7 @@
|
|
|
3075
3083
|
part="clear-query"
|
|
3076
3084
|
icon="close"
|
|
3077
3085
|
round dense
|
|
3078
|
-
label="${
|
|
3086
|
+
label="${wr.messages.clearButton()}"
|
|
3079
3087
|
@click=${()=>this.onClearInput()}
|
|
3080
3088
|
></ft-button>
|
|
3081
3089
|
<div class="ft-search-input--separator"></div>
|
|
@@ -3084,80 +3092,80 @@
|
|
|
3084
3092
|
part="launch-search-in-input"
|
|
3085
3093
|
icon="search"
|
|
3086
3094
|
round dense
|
|
3087
|
-
label="${
|
|
3088
|
-
href="${this.useCustomSearchPath?
|
|
3095
|
+
label="${wr.messages.searchButton()}"
|
|
3096
|
+
href="${this.useCustomSearchPath?s:""}"
|
|
3089
3097
|
@click=${()=>this.launchSearch(this.liveQuery)}
|
|
3090
3098
|
></ft-button>
|
|
3091
3099
|
</div>
|
|
3092
3100
|
</div>
|
|
3093
|
-
`}
|
|
3094
|
-
`});var
|
|
3101
|
+
`}onSearchBarKeyDown(e){switch(this.forceCloseSuggestion=!1,["Escape","Tab","Shift"].includes(e.key)||(this.displaySuggestListbox=!0),e.key){case"Tab":this.suggestions.closeBox();break;case"Escape":this.displaySuggestListbox&&this.suggestions.optionsCount()>0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.closeBox());break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestions.selectNext();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestions.selectPrevious();break;case"ArrowLeft":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectLeft());break;case"ArrowRight":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectRight());break;case"Enter":{let r=this.suggestions.activeElement;if(r){r.click();break}this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break}case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){e.key==="Backspace"&&e.stopPropagation()}onInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}onClearInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(""),this.triggerSearchOnClear&&this.launchSearch(""),this.input.focus()}launchSearch(e){var r,i;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(r=this.stateManager)===null||r===void 0||r.setQuery(e),(i=this.stateManager)===null||i===void 0||i.addRecentQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.suggestions.closeBox()}onClick(){this.onFocus()}onFocus(){this.showSuggestionsOnFocus&&(this.displaySuggestListbox=!0),this.forceCloseSuggestion=!1}async focusInput(e=!0){this.showSuggestionsOnFocus=e,await(0,Ke.waitFor)(()=>this.input,50),this.input.focus(),this.showSuggestionsOnFocus=!0}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.onPointerDown),this.focusOnDisplay&&!Ke.isTouchScreen&&this.focusInput(!1)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.onPointerDown)}};ue.elementDefinitions={"ft-button":_,...ti.elementDefinitions};ue.styles=[Dr,Ke.noTextInputDefaultClearButton,lc,...ti.styles,Ke.screenReaderStyles];Be([(0,Ke.redux)()],ue.prototype,"request",void 0);Be([(0,Ke.redux)()],ue.prototype,"liveQuery",void 0);Be([(0,Ke.redux)()],ue.prototype,"suggestResults",void 0);Be([(0,Ke.redux)({selector:h0})],ue.prototype,"recentQuerySuggestions",void 0);Be([(0,Ct.state)()],ue.prototype,"forceCloseSuggestion",void 0);Be([(0,Ct.state)()],ue.prototype,"displaySuggestListbox",void 0);Be([(0,Ct.state)()],ue.prototype,"selectedSuggestOptionIndex",void 0);Be([(0,Ct.state)()],ue.prototype,"selectedSuggestOptionRemove",void 0);Be([(0,Ct.property)()],ue.prototype,"launchSearchPath",void 0);Be([go()],ue.prototype,"placeholder",void 0);Be([(0,Ct.property)({type:Boolean})],ue.prototype,"useCustomSearchPath",void 0);Be([(0,Ct.property)({type:Boolean})],ue.prototype,"triggerSearchOnClear",void 0);Be([(0,Ct.property)({type:Boolean})],ue.prototype,"focusOnDisplay",void 0);Be([(0,Ct.query)(".ft-search-input--input")],ue.prototype,"input",void 0);Be([(0,Ct.query)('[part="launch-search-in-input"]')],ue.prototype,"launchSearchButton",void 0);Be([(0,Ke.ignoreComposingEvents)()],ue.prototype,"onSearchBarKeyDown",null);Be([(0,Ke.ignoreComposingEvents)()],ue.prototype,"onSearchBarKeyUp",null)});var vb,yb=l(()=>{"use strict";mu();vb={"ft-search-input":ue}});var bb,xb=l(()=>{"use strict";bb=u(m());yb();(0,bb.customElements)(vb)});var Sb={};ni(Sb,{FtSearchInput:()=>ue,FtSearchInputCssVariables:()=>ee,styles:()=>lc});var Cb=l(()=>{"use strict";un();Lg();mu();xb()});var Eb,f0,gu,vu=l(()=>{"use strict";Eb=u(b()),f0={},gu=Eb.css`
|
|
3102
|
+
`});var Ab=l(()=>{"use strict"});var yu,Ob=l(()=>{"use strict";Pt();yu=ar.fromGwt("designedActionBlockAriaLabels")});var ha,bu,wb,_r,xu=l(()=>{"use strict";ha=u(b()),bu=u(m());vu();Wt();_i();Pt();Ob();So();wb=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},_r=class extends st(Mt){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.neededSearchRequests=[Gt.CLUSTERED_SEARCH],this.addI18nContext(yu)}render(){return this.isLastPage?ha.nothing:ha.html`
|
|
3095
3103
|
<ft-button @click=${this.loadMore}>
|
|
3096
|
-
${
|
|
3104
|
+
${yu.messages.searchPageLoadMore()}
|
|
3097
3105
|
</ft-button>
|
|
3098
|
-
`}loadMore(){var e;(e=this.stateManager)===null||e===void 0||e.setPageNumber(this.currentPage+1)}};
|
|
3099
|
-
<ft-typography variant="${
|
|
3100
|
-
`:
|
|
3106
|
+
`}loadMore(){var e;(e=this.stateManager)===null||e===void 0||e.setPageNumber(this.currentPage+1)}};_r.elementDefinitions={"ft-button":_};_r.styles=gu;wb([(0,bu.redux)({store:"search",selector:t=>{var e,r;return(r=(e=t.paging)===null||e===void 0?void 0:e.currentPage)!==null&&r!==void 0?r:1}})],_r.prototype,"currentPage",void 0);wb([(0,bu.redux)({store:"search",selector:t=>{var e,r;return(r=(e=t.paging)===null||e===void 0?void 0:e.isLastPage)!==null&&r!==void 0?r:!0}})],_r.prototype,"isLastPage",void 0)});var Rb,Tb=l(()=>{"use strict";xu();Rb={"ft-search-load-more-button":_r}});var _b,Lb=l(()=>{"use strict";_b=u(m());Tb();(0,_b.customElements)(Rb)});var kb={};ni(kb,{FtSearchLoadMoreButton:()=>_r,FtSearchLoadMoreButtonCssVariables:()=>f0,styles:()=>gu});var Pb=l(()=>{"use strict";vu();Ab();xu();Lb()});var $b=l(()=>{"use strict"});var ga,ma,fa,Cu,Su,m0,Po,Eu=l(()=>{"use strict";ga=u(m());_i();ma=u(F()),fa=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Cu=class extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}},Su=Symbol("registerInterval"),m0=(0,ga.applyMixinOnce)(Symbol("toFtSearchResultComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setResultStateManager(o){this.resultStateManager=o}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Su]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[Su]):this.dispatchEvent(new Cu)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=Su,fa([(0,ma.property)({attribute:!1})],r.prototype,"cluster",void 0),fa([(0,ma.property)({attribute:!1})],r.prototype,"result",void 0),fa([(0,ga.numberProperty)()],r.prototype,"rank",void 0),fa([(0,ma.property)({attribute:!1,type:Boolean})],r.prototype,"openResultInNewTab",void 0),r}),Po=class extends m0(Mt){}});var Au,Ib,Db,Fi,Ou=l(()=>{"use strict";Au=u(b()),Ib=u(m());Eu();Ds();Db=u(Ls());me();Fi=class extends Po{render(){var e;let r=(e=(0,Ib.accessResult)(this.result))===null||e===void 0?void 0:e.htmlExcerpt;return r?Au.html`
|
|
3107
|
+
<ft-typography variant="${Q.body1}" part="text">${(0,Db.unsafeHTML)(r)}</ft-typography>
|
|
3108
|
+
`:Au.html`
|
|
3101
3109
|
<style>
|
|
3102
3110
|
:host {
|
|
3103
3111
|
display: none !important;
|
|
3104
3112
|
}
|
|
3105
3113
|
</style>
|
|
3106
|
-
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(r=>r.setAttribute("part","kwicmatch"))}};
|
|
3114
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(r=>r.setAttribute("part","kwicmatch"))}};Fi.elementDefinitions={"ft-typography":V};Fi.styles=cc});var Mb,Nb=l(()=>{"use strict";Ou();Mb={"ft-search-result-abstract":Fi}});var Fb,Bb=l(()=>{"use strict";Fb=u(m());Nb();(0,Fb.customElements)(Mb)});var Ub={};ni(Ub,{FtSearchResultAbstract:()=>Fi,FtSearchResultAbstractCssVariables:()=>Is,styles:()=>cc});var wu=l(()=>{"use strict";Ds();$b();Ou();Bb()});var Hb=l(()=>{"use strict"});var Tn,Vb,jb,zb,g0,ri,Ru=l(()=>{"use strict";Tn=u(b()),Vb=u(F()),jb=u(m());Eu();Ns();me();zb=u(Ls());fc();fn();g0=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},ri=class extends Po{constructor(){super(...arguments),this.withoutLink=!1}render(){var e;return this.result?this.withoutLink?this.renderTitle():Tn.html`
|
|
3107
3115
|
<a href="${Us(this.result)}"
|
|
3108
3116
|
@click=${this.onResultClick}
|
|
3109
3117
|
@auxclick=${r=>this.onAuxClick(r)}
|
|
3110
3118
|
@contextmenu=${this.onContextMenu}
|
|
3111
|
-
target="${
|
|
3119
|
+
target="${ag(this.result,(e=this.stateManager)===null||e===void 0?void 0:e.openExternalDocumentInNewTab)}"
|
|
3112
3120
|
part="link">
|
|
3113
3121
|
${this.renderTitle()}
|
|
3114
3122
|
</a>
|
|
3115
3123
|
`:Tn.nothing}onAuxClick(e){e.button==1&&this.onResultClick()}renderTitle(){var e;return Tn.html`
|
|
3116
|
-
<ft-typography variant="${
|
|
3117
|
-
`}onResultClick(){this.dispatchEvent(new
|
|
3124
|
+
<ft-typography variant="${Q.title}" part="text">${(0,zb.unsafeHTML)((e=(0,jb.accessResult)(this.result))===null||e===void 0?void 0:e.htmlTitle)}</ft-typography>
|
|
3125
|
+
`}onResultClick(){this.dispatchEvent(new bo(this.result,this.rank))}onContextMenu(){this.result.type!="HTML_PACKAGE"&&this.result.type!="HTML_PACKAGE_PAGE"&&this.dispatchEvent(new xo(this.result,this.rank))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(i=>i.setAttribute("part","kwicmatch")),!this.withoutLink&&e.has("rank")&&this.rank!=null&&!((r=this.stateManager)===null||r===void 0)&&r.store.commands.consume(`focus-result-${this.rank}`)&&(this.elementToFocus={selector:"a"})}};ri.elementDefinitions={"ft-typography":V};ri.styles=uc;g0([(0,Vb.property)({type:Boolean})],ri.prototype,"withoutLink",void 0)});var qb,Kb=l(()=>{"use strict";Ru();qb={"ft-search-result-title":ri}});var Wb,Gb=l(()=>{"use strict";Wb=u(m());Kb();(0,Wb.customElements)(qb)});var Qb={};ni(Qb,{FtSearchResultTitle:()=>ri,FtSearchResultTitleCssVariables:()=>Ms,styles:()=>uc});var Tu=l(()=>{"use strict";Ns();Hb();Ru();Gb()});var Yb,v0,_u,Lu=l(()=>{"use strict";Yb=u(b()),v0={},_u=Yb.css`
|
|
3118
3126
|
[part="no-results-message"] {
|
|
3119
3127
|
text-align: center;
|
|
3120
3128
|
padding: 12px;
|
|
3121
3129
|
}
|
|
3122
|
-
`});var
|
|
3130
|
+
`});var Xb=l(()=>{"use strict"});var Zb,Jb,ku=l(()=>{"use strict";Zb=u(b()),Jb=Zb.css`
|
|
3123
3131
|
a {
|
|
3124
3132
|
color: inherit;
|
|
3125
3133
|
text-decoration: inherit;
|
|
3126
3134
|
}
|
|
3127
|
-
`});var
|
|
3135
|
+
`});var ex=l(()=>{"use strict"});var va,tx=l(()=>{"use strict";va=class{constructor(e){this.onResultSelected=e,this.registeredComponents=[],this.registeredMetadata=new Set}registerComponent(e){e.setResultStateManager(this),this.registeredComponents.push(e),this.bindComponent(e)}unregisterComponent(e){this.registeredComponents.splice(this.registeredComponents.indexOf(e),1),e.cluster=void 0,e.result=void 0,e.rank=void 0}registerMetadata(e){this.registeredMetadata.add(e)}unregisterMetadata(e){this.registeredMetadata.delete(e)}updateCluster(e,r){this.cluster=e,this.rank=r,this.selectResult(this.cluster.entries[0])}updateOpenResultInNewTab(e){this.openResultInNewTab=e}selectResult(e){this.result=e,this.onResultSelected(e),this.registeredComponents.forEach(r=>this.bindComponent(r))}clear(){this.registeredComponents=[]}bindComponent(e){e.cluster=this.cluster,e.result=this.result,e.rank=this.rank,e.openResultInNewTab=this.openResultInNewTab}}});var rx,$o,ix,ya,Pu,gr,$u=l(()=>{"use strict";rx=u(b()),$o=u(F()),ix=u(m());ku();tx();ya=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Pu=class extends CustomEvent{constructor(e){super("ft-search-result-cluster-change",{detail:e,bubbles:!0,composed:!0})}},gr=class extends ix.FtLitElement{constructor(){super(...arguments),this.openResultInNewTab=!1,this.index=0,this.stateManager=new va(e=>this.onResultSelected(e))}render(){return rx.html`
|
|
3128
3136
|
<slot @register-ft-search-result-component=${this.registerComponent}></slot>
|
|
3129
|
-
`}onResultSelected(e){this.result=e,this.dispatchEvent(new
|
|
3137
|
+
`}onResultSelected(e){this.result=e,this.dispatchEvent(new Pu(this.result))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){this.stateManager.registerComponent(e)}update(e){super.update(e),e.has("cluster")&&this.cluster&&this.stateManager.updateCluster(this.cluster,this.index+1),e.has("openResultInNewTab")&&this.stateManager.updateOpenResultInNewTab(this.openResultInNewTab)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clear()}};gr.elementDefinitions={};gr.styles=Jb;ya([(0,$o.property)({attribute:!1})],gr.prototype,"cluster",void 0);ya([(0,$o.property)({attribute:!1,type:Boolean})],gr.prototype,"openResultInNewTab",void 0);ya([(0,$o.state)()],gr.prototype,"result",void 0);ya([(0,$o.property)()],gr.prototype,"index",void 0)});var ox,nx=l(()=>{"use strict";$u();ox={"ft-search-result-context":gr}});var sx,ax=l(()=>{"use strict";sx=u(m());nx();(0,sx.customElements)(ox)});var lx=l(()=>{"use strict";ku();ex();$u();ax()});var Io,cx,Iu=l(()=>{"use strict";Pt();Io=ar.build("searchResultsNumber"),cx={results:"{0} results","results[\\=1]":"1 result"}});var ba,ux,xa,er,Bi,Et,Du=l(()=>{"use strict";ba=u(b()),ux=u(Rr()),xa=u(F()),er=u(m());Lu();_i();lx();Tu();wu();Pt();Iu();So();Bi=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Et=class extends st(Mt){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>ba.html`
|
|
3130
3138
|
<ft-search-result-title></ft-search-result-title>
|
|
3131
3139
|
<ft-search-result-abstract></ft-search-result-abstract>
|
|
3132
|
-
`,this.clusterSortCriterion=[],this.selectedResultByCluster={},this.neededSearchRequests=[
|
|
3140
|
+
`,this.clusterSortCriterion=[],this.selectedResultByCluster={},this.neededSearchRequests=[Gt.CLUSTERED_SEARCH],this.addI18nContext(Io)}render(){if(this.displayNoResultsMessage&&this.results!=null&&this.results.length==0)return ba.html`
|
|
3133
3141
|
<ft-typography part="no-results-message" variant="body1">${Io.messages.results(0)}</ft-typography>
|
|
3134
|
-
`;let e=this.buildClusters();return(0,
|
|
3142
|
+
`;let e=this.buildClusters();return(0,ux.repeat)(e,r=>r.id,(r,i)=>{var o;return ba.html`
|
|
3135
3143
|
<ft-search-result-context .cluster=${r} index="${i}"
|
|
3136
3144
|
@ft-search-result-cluster-change=${n=>this.onClusterChange(r.id,n.detail)}>
|
|
3137
3145
|
${this.renderResult((o=this.selectedResultByCluster[r.id])!==null&&o!==void 0?o:r.entries[0],i)}
|
|
3138
3146
|
</ft-search-result-context>
|
|
3139
|
-
`})}update(e){var r;super.update(e),(e.has("clusterSortCriterion")||e.has("stateManager"))&&this.clusterSortCriterion&&((r=this.stateManager)===null||r===void 0||r.setClusterSortCriterion(this.clusterSortCriterion))}contentAvailableCallback(e){var r;if(super.contentAvailableCallback(e),e.has("requestWithoutPaging")){let i=(r=this.renderRoot)===null||r===void 0?void 0:r.querySelector("ft-search-result-context");i&&
|
|
3147
|
+
`})}update(e){var r;super.update(e),(e.has("clusterSortCriterion")||e.has("stateManager"))&&this.clusterSortCriterion&&((r=this.stateManager)===null||r===void 0||r.setClusterSortCriterion(this.clusterSortCriterion))}contentAvailableCallback(e){var r;if(super.contentAvailableCallback(e),e.has("requestWithoutPaging")){let i=(r=this.renderRoot)===null||r===void 0?void 0:r.querySelector("ft-search-result-context");i&&er.scrollHelper.scrollIntoViewIfPossible(i,{position:1,behavior:"smooth"})}}onClusterChange(e,r){this.selectedResultByCluster[e]=r}buildClusters(){return this.clusterPolicy==="display-all-results"?this.buildAllResultsClusters():this.buildFullClusters()}buildFullClusters(){var e,r;return(r=(e=this.results)===null||e===void 0?void 0:e.map(i=>({id:(0,er.accessResultId)(i.entries[0]),entries:i.entries})))!==null&&r!==void 0?r:[]}buildAllResultsClusters(){var e,r,i;let o=(r=(e=this.results)===null||e===void 0?void 0:e.flatMap(n=>n.entries.map(s=>({id:(0,er.accessResultId)(s),entries:[s]}))))!==null&&r!==void 0?r:[];return this.paging&&this.paging.page===1?o.slice(0,(i=this.paging.perPage)!==null&&i!==void 0?i:20):o}};Et.styles=_u;Bi([(0,xa.property)({type:String,attribute:"cluster-policy"})],Et.prototype,"clusterPolicy",void 0);Bi([(0,xa.property)({type:Boolean})],Et.prototype,"displayNoResultsMessage",void 0);Bi([(0,xa.property)({attribute:!1})],Et.prototype,"renderResult",void 0);Bi([(0,er.jsonProperty)([])],Et.prototype,"clusterSortCriterion",void 0);Bi([(0,er.redux)({selector:t=>({...t.request,paging:void 0})})],Et.prototype,"requestWithoutPaging",void 0);Bi([(0,er.redux)({selector:t=>t.request.paging})],Et.prototype,"paging",void 0);Bi([(0,er.redux)()],Et.prototype,"results",void 0)});var px,dx=l(()=>{"use strict";Du();px={"ft-search-results":Et}});var hx,fx=l(()=>{"use strict";hx=u(m());dx();(0,hx.customElements)(px)});var mx={};ni(mx,{FtSearchResults:()=>Et,FtSearchResultsCssVariables:()=>v0,styles:()=>_u});var gx=l(()=>{"use strict";Lu();Xb();Du();fx()});var vx,y0,Mu,Nu=l(()=>{"use strict";vx=u(b()),y0={},Mu=vx.css`
|
|
3140
3148
|
|
|
3141
|
-
`});var
|
|
3142
|
-
<ft-typography variant="${
|
|
3149
|
+
`});var yx=l(()=>{"use strict"});var Sa,ii,bx,Lr,Fu=l(()=>{"use strict";Sa=u(b()),ii=u(m());Nu();_i();Pt();Iu();me();So();bx=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Lr=class extends(0,ii.withAriaNotification)(st(Mt)){constructor(){super(),this.ariaNotificationDebouncer=new ii.Debouncer(100),this.searchNumberOfResults={context:"officialContext",key:"searchNumberOfResults",message:""},this.neededSearchRequests=[Gt.CLUSTERED_SEARCH],this.addI18nContext(Io,cx)}render(){return this.paging==null?Sa.nothing:Sa.html`
|
|
3150
|
+
<ft-typography variant="${Q.body1}">
|
|
3143
3151
|
${Io.messages.results(this.paging.totalClustersCount)}
|
|
3144
3152
|
</ft-typography>
|
|
3145
|
-
`}willUpdate(e){super.willUpdate(e),e.has("paging")&&this.ariaNotificationDebouncer.run(async()=>{if(this.paging!==void 0){let r=await this.awaitI18n({...this.searchNumberOfResults,args:[this.paging.totalClustersCount]});this.sendAriaNotification(r)}})}};
|
|
3153
|
+
`}willUpdate(e){super.willUpdate(e),e.has("paging")&&this.ariaNotificationDebouncer.run(async()=>{if(this.paging!==void 0){let r=await this.awaitI18n({...this.searchNumberOfResults,args:[this.paging.totalClustersCount]});this.sendAriaNotification(r)}})}};Lr.elementDefinitions={"ft-typography":V};Lr.styles=Mu;bx([(0,ii.jsonProperty)({context:"officialContext",key:"searchNumberOfResults"})],Lr.prototype,"searchNumberOfResults",void 0);bx([(0,ii.redux)()],Lr.prototype,"paging",void 0)});var xx,Sx=l(()=>{"use strict";Fu();xx={"ft-search-results-number":Lr}});var Cx,Ex=l(()=>{"use strict";Cx=u(m());Sx();(0,Cx.customElements)(xx)});var Ax={};ni(Ax,{FtSearchResultsNumber:()=>Lr,FtSearchResultsNumberCssVariables:()=>y0,styles:()=>Mu});var Ox=l(()=>{"use strict";Nu();yx();Fu();Ex()});var Rx=u(m());var At=u(b()),Ui=u(m());var pc=u(b()),R=u(m());var Gu=u(b()),K=u(m());yr();var Y={padding:K.FtCssVariableFactory.create("--ft-card-padding","","SIZE","12px"),borderRadius:K.FtCssVariableFactory.extend("--ft-card-border-radius","",K.designSystemVariables.borderRadiusM),borderStyle:K.FtCssVariableFactory.create("--ft-card-border-style","","UNKNOWN","none"),borderColor:K.FtCssVariableFactory.extend("--ft-card-border-color","",K.designSystemVariables.colorOutline),hoverBorderColor:K.FtCssVariableFactory.extend("--ft-card-hover-border-color","",K.designSystemVariables.colorPrimary),outlineStyle:K.FtCssVariableFactory.create("--ft-card-outline-style","","UNKNOWN","solid"),outlineWidth:K.FtCssVariableFactory.create("--ft-card-outline-width","","SIZE","0"),outlineColor:K.FtCssVariableFactory.extend("--ft-card-outline-color","",K.designSystemVariables.colorPrimary),selectedOutlineStyle:K.FtCssVariableFactory.create("--ft-card-selected-outline-style","","UNKNOWN","solid"),selectedOutlineWidth:K.FtCssVariableFactory.create("--ft-card-selected-outline-width","","SIZE","2px"),selectedOutlineColor:K.FtCssVariableFactory.extend("--ft-card-selected-outline-color","",K.designSystemVariables.colorPrimary),selectedBorderRadius:K.FtCssVariableFactory.extend("--ft-card-selected-border-radius","",K.designSystemVariables.borderRadiusM),colorSurface:K.FtCssVariableFactory.extend("--ft-card-background-color","",K.designSystemVariables.colorSurface),colorOnSurfaceMedium:K.FtCssVariableFactory.extend("--ft-card-content-color","",K.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceHigh:K.FtCssVariableFactory.extend("--ft-card-title-color","",K.designSystemVariables.colorOnSurfaceHigh),elevation02:K.FtCssVariableFactory.extend("--ft-card-elevation","",K.designSystemVariables.elevation02),elevation04:K.FtCssVariableFactory.extend("--ft-card-selected-elevation","",K.designSystemVariables.elevation04)},Qu=Gu.css`
|
|
3146
3154
|
:host {
|
|
3147
3155
|
display: block;
|
|
3148
3156
|
}
|
|
3149
3157
|
|
|
3150
3158
|
#container {
|
|
3151
|
-
padding: ${
|
|
3152
|
-
outline-style: ${
|
|
3153
|
-
outline-width: ${
|
|
3154
|
-
outline-color: ${
|
|
3155
|
-
border-color: ${
|
|
3156
|
-
border-style: ${
|
|
3159
|
+
padding: ${Y.padding};
|
|
3160
|
+
outline-style: ${Y.outlineStyle};
|
|
3161
|
+
outline-width: ${Y.outlineWidth};
|
|
3162
|
+
outline-color: ${Y.outlineColor};
|
|
3163
|
+
border-color: ${Y.borderColor};
|
|
3164
|
+
border-style: ${Y.borderStyle};
|
|
3157
3165
|
border-width: 1px;
|
|
3158
|
-
border-radius: ${
|
|
3159
|
-
${(0,K.setVariable)(q.borderRadius,
|
|
3160
|
-
box-shadow: ${
|
|
3166
|
+
border-radius: ${Y.borderRadius};
|
|
3167
|
+
${(0,K.setVariable)(q.borderRadius,Y.borderRadius)};
|
|
3168
|
+
box-shadow: ${Y.elevation02};
|
|
3161
3169
|
position: relative;
|
|
3162
3170
|
width: 100%;
|
|
3163
3171
|
height: 100%;
|
|
@@ -3169,7 +3177,7 @@
|
|
|
3169
3177
|
grid-template-rows: max-content minmax(0, 1fr);
|
|
3170
3178
|
grid-gap: 8px;
|
|
3171
3179
|
box-sizing: border-box;
|
|
3172
|
-
background-color: ${
|
|
3180
|
+
background-color: ${Y.colorSurface};
|
|
3173
3181
|
transition: box-shadow 0.2s linear, color 0.2s linear;
|
|
3174
3182
|
}
|
|
3175
3183
|
|
|
@@ -3191,12 +3199,12 @@
|
|
|
3191
3199
|
}
|
|
3192
3200
|
|
|
3193
3201
|
#container.selected {
|
|
3194
|
-
outline-style: ${
|
|
3195
|
-
outline-width: ${
|
|
3196
|
-
outline-color: ${
|
|
3197
|
-
border-radius: ${
|
|
3198
|
-
${(0,K.setVariable)(q.borderRadius,
|
|
3199
|
-
box-shadow: ${
|
|
3202
|
+
outline-style: ${Y.selectedOutlineStyle};
|
|
3203
|
+
outline-width: ${Y.selectedOutlineWidth};
|
|
3204
|
+
outline-color: ${Y.selectedOutlineColor};
|
|
3205
|
+
border-radius: ${Y.selectedBorderRadius};
|
|
3206
|
+
${(0,K.setVariable)(q.borderRadius,Y.selectedBorderRadius)};
|
|
3207
|
+
box-shadow: ${Y.elevation04};
|
|
3200
3208
|
}
|
|
3201
3209
|
|
|
3202
3210
|
#container.clickable {
|
|
@@ -3204,13 +3212,13 @@
|
|
|
3204
3212
|
}
|
|
3205
3213
|
|
|
3206
3214
|
#container.clickable:hover {
|
|
3207
|
-
box-shadow: ${
|
|
3208
|
-
border-color: ${
|
|
3215
|
+
box-shadow: ${Y.elevation04};
|
|
3216
|
+
border-color: ${Y.hoverBorderColor};
|
|
3209
3217
|
}
|
|
3210
3218
|
|
|
3211
3219
|
#header {
|
|
3212
3220
|
grid-area: header;
|
|
3213
|
-
color: ${
|
|
3221
|
+
color: ${Y.colorOnSurfaceHigh};
|
|
3214
3222
|
text-overflow: ellipsis;
|
|
3215
3223
|
overflow: hidden;
|
|
3216
3224
|
word-break: break-word;
|
|
@@ -3225,13 +3233,13 @@
|
|
|
3225
3233
|
word-break: break-word;
|
|
3226
3234
|
min-width: 0; /* like with flexbox, some items have a hard time shrinking when necessary */
|
|
3227
3235
|
grid-area: content;
|
|
3228
|
-
color: ${
|
|
3236
|
+
color: ${Y.colorOnSurfaceMedium};
|
|
3229
3237
|
}
|
|
3230
3238
|
|
|
3231
3239
|
#action {
|
|
3232
3240
|
grid-area: actions;
|
|
3233
3241
|
}
|
|
3234
|
-
`;un();Ds();yr();Ns();var
|
|
3242
|
+
`;un();Ds();yr();Ns();var ze={searchFieldBackgroundColor:R.FtCssVariableFactory.extend("--ft-rsid-search-field-background-color","",R.designSystemVariables.colorSurface),searchFieldBorderColor:R.FtCssVariableFactory.extend("--ft-rsid-search-field-border-color","",R.designSystemVariables.colorOutline),searchFieldTextColor:R.FtCssVariableFactory.extend("--ft-rsid-search-field-text-color","",R.designSystemVariables.colorOnSurface),searchFieldBorderRadius:R.FtCssVariableFactory.extend("--ft-rsid-search-field-border-radius","",R.designSystemVariables.borderRadiusS),searchButtonColor:R.FtCssVariableFactory.extend("--ft-rsid-search-field-button-color","",R.designSystemVariables.colorPrimary),resultsNumberColor:R.FtCssVariableFactory.extend("--ft-rsid-results-number-color","",R.designSystemVariables.colorOnSurfaceMedium),resultBackgroundColor:R.FtCssVariableFactory.extend("--ft-rsid-result-background-color","",R.designSystemVariables.colorSurface),resultBorderColor:R.FtCssVariableFactory.extend("--ft-rsid-result-border-color","",R.designSystemVariables.colorOutline),resultBorderRadius:R.FtCssVariableFactory.extend("--ft-rsid-result-border-radius","",R.designSystemVariables.borderRadiusS),resultTitleTextColor:R.FtCssVariableFactory.extend("--ft-rsid-result-title-text-color","",R.designSystemVariables.colorOnSurface),resultBreadcrumbTextColor:R.FtCssVariableFactory.extend("--ft-rsid-result-breadcrumb-text-color","",R.designSystemVariables.colorOnSurfaceMedium),resultContentTextColor:R.FtCssVariableFactory.extend("--ft-rsid-result-content-text-color","",R.designSystemVariables.colorOnSurface),resultHighlightBackgroundColor:R.FtCssVariableFactory.create("--ft-rsid-result-highlight-background-color","","COLOR","#FFF26E"),resultHoverBackgroundColor:R.FtCssVariableFactory.extend("--ft-rsid-result-hover-background-color","",R.designSystemVariables.colorPrimary),resultHoverBorderColor:R.FtCssVariableFactory.extend("--ft-rsid-result-hover-border-color","",R.designSystemVariables.colorPrimary)},tg=pc.css`
|
|
3235
3243
|
.ft-search-in-doc--container {
|
|
3236
3244
|
display: flex;
|
|
3237
3245
|
flex-direction: column;
|
|
@@ -3239,11 +3247,11 @@
|
|
|
3239
3247
|
}
|
|
3240
3248
|
|
|
3241
3249
|
ft-search-input {
|
|
3242
|
-
${(0,R.setVariable)(ee.colorSurface,
|
|
3243
|
-
${(0,R.setVariable)(ee.colorOutline,
|
|
3244
|
-
${(0,R.setVariable)(ee.colorOnSurface,
|
|
3245
|
-
${(0,R.setVariable)(ee.borderRadius,
|
|
3246
|
-
${(0,R.setVariable)(ee.buttonColor,
|
|
3250
|
+
${(0,R.setVariable)(ee.colorSurface,ze.searchFieldBackgroundColor)};
|
|
3251
|
+
${(0,R.setVariable)(ee.colorOutline,ze.searchFieldBorderColor)};
|
|
3252
|
+
${(0,R.setVariable)(ee.colorOnSurface,ze.searchFieldTextColor)};
|
|
3253
|
+
${(0,R.setVariable)(ee.borderRadius,ze.searchFieldBorderRadius)};
|
|
3254
|
+
${(0,R.setVariable)(ee.buttonColor,ze.searchButtonColor)};
|
|
3247
3255
|
}
|
|
3248
3256
|
|
|
3249
3257
|
ft-search-results-number {
|
|
@@ -3251,41 +3259,41 @@
|
|
|
3251
3259
|
}
|
|
3252
3260
|
|
|
3253
3261
|
ft-search-results-number, ft-search-results::part(no-results-message) {
|
|
3254
|
-
color: ${
|
|
3262
|
+
color: ${ze.resultsNumberColor};
|
|
3255
3263
|
}
|
|
3256
3264
|
|
|
3257
3265
|
ft-search-load-more-button {
|
|
3258
3266
|
margin: auto;
|
|
3259
3267
|
}
|
|
3260
|
-
`,
|
|
3268
|
+
`,rg=pc.css`
|
|
3261
3269
|
ft-card {
|
|
3262
3270
|
margin-bottom: 8px;
|
|
3263
|
-
${(0,R.setVariable)(
|
|
3264
|
-
${(0,R.setVariable)(
|
|
3265
|
-
${(0,R.setVariable)(
|
|
3266
|
-
${(0,R.setVariable)(
|
|
3267
|
-
${(0,R.setVariable)(
|
|
3268
|
-
${(0,R.setVariable)(
|
|
3269
|
-
${(0,R.setVariable)(
|
|
3271
|
+
${(0,R.setVariable)(Y.elevation04,"none")};
|
|
3272
|
+
${(0,R.setVariable)(Y.elevation02,"none")};
|
|
3273
|
+
${(0,R.setVariable)(Y.borderStyle,"solid")};
|
|
3274
|
+
${(0,R.setVariable)(Y.borderRadius,R.designSystemVariables.borderRadiusS)};
|
|
3275
|
+
${(0,R.setVariable)(Y.colorSurface,ze.resultBackgroundColor)};
|
|
3276
|
+
${(0,R.setVariable)(Y.borderColor,ze.resultBorderColor)};
|
|
3277
|
+
${(0,R.setVariable)(Y.borderRadius,ze.resultBorderRadius)};
|
|
3270
3278
|
}
|
|
3271
3279
|
|
|
3272
3280
|
ft-search-result-title {
|
|
3273
|
-
color: ${
|
|
3274
|
-
${(0,R.setVariable)(Ms.highlightBackgroundColor,
|
|
3281
|
+
color: ${ze.resultTitleTextColor};
|
|
3282
|
+
${(0,R.setVariable)(Ms.highlightBackgroundColor,ze.resultHighlightBackgroundColor)};
|
|
3275
3283
|
}
|
|
3276
3284
|
|
|
3277
3285
|
.breadcrumb {
|
|
3278
|
-
color: ${
|
|
3286
|
+
color: ${ze.resultBreadcrumbTextColor};
|
|
3279
3287
|
}
|
|
3280
3288
|
|
|
3281
3289
|
ft-search-result-abstract {
|
|
3282
|
-
color: ${
|
|
3283
|
-
${(0,R.setVariable)(Is.highlightBackgroundColor,
|
|
3290
|
+
color: ${ze.resultContentTextColor};
|
|
3291
|
+
${(0,R.setVariable)(Is.highlightBackgroundColor,ze.resultHighlightBackgroundColor)};
|
|
3284
3292
|
}
|
|
3285
3293
|
|
|
3286
3294
|
ft-card:hover {
|
|
3287
|
-
${(0,R.setVariable)(
|
|
3288
|
-
${(0,R.setVariable)(q.color,
|
|
3295
|
+
${(0,R.setVariable)(Y.hoverBorderColor,ze.resultHoverBorderColor)};
|
|
3296
|
+
${(0,R.setVariable)(q.color,ze.resultHoverBackgroundColor)};
|
|
3289
3297
|
}
|
|
3290
3298
|
|
|
3291
3299
|
.result-container {
|
|
@@ -3298,8 +3306,8 @@
|
|
|
3298
3306
|
text-decoration: none;
|
|
3299
3307
|
color: inherit;
|
|
3300
3308
|
}
|
|
3301
|
-
`;
|
|
3302
|
-
<div id="container" part="container" class="${(0,
|
|
3309
|
+
`;Pt();var Bs=u(m()),ng=u(F());var ig;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change",t.requestedTopicNotFound="requested-topic-not-found"})(ig||(ig={}));var og;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(og||(og={}));var r0=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},hc=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},dc=Symbol("registerInterval"),i0=(0,Bs.applyMixinOnce)(Symbol("toFtReaderComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(o){this.clearStateManager(),this.stateManager=o,this.addStore(o.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var o;return(o=this.stateManager)===null||o===void 0?void 0:o.service}connectedCallback(){super.connectedCallback(),this[dc]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[dc]):this.dispatchEvent(new hc)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=dc,r0([(0,ng.state)()],r.prototype,"stateManager",void 0),r}),Fs=class extends i0(Bs.FtLitElementRedux){};var kr=u(F());fc();Pt();var mc=ar.build("designedReaderSearchInDocument");var dn=u(b()),Ti=u(F()),lg=u(m());Ge();me();var cg=u(it()),yo=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},at=class extends lg.FtLitElement{constructor(){super(...arguments),this.title="",this.clickable=!1,this.selected=!1,this.noHeader=!1,this.noContent=!1,this.oneLineHeader=!1}render(){let e={selected:this.selected,clickable:this.clickable,"no-header":this.noHeader,"no-content":this.noContent,"one-line-header":this.oneLineHeader};return dn.html`
|
|
3310
|
+
<div id="container" part="container" class="${(0,cg.classMap)(e)}">
|
|
3303
3311
|
${this.clickable?dn.html`
|
|
3304
3312
|
<ft-ripple primary ?selected=${this.selected}></ft-ripple>
|
|
3305
3313
|
`:dn.nothing}
|
|
@@ -3316,25 +3324,25 @@
|
|
|
3316
3324
|
</ft-typography>
|
|
3317
3325
|
</div>
|
|
3318
3326
|
</div>
|
|
3319
|
-
`}};at.elementDefinitions={"ft-ripple":k,"ft-typography":
|
|
3320
|
-
<style> ${
|
|
3327
|
+
`}};at.elementDefinitions={"ft-ripple":k,"ft-typography":V};at.styles=Qu;yo([(0,Ti.property)()],at.prototype,"title",void 0);yo([(0,Ti.property)({type:Boolean})],at.prototype,"clickable",void 0);yo([(0,Ti.property)({type:Boolean})],at.prototype,"selected",void 0);yo([(0,Ti.property)({type:Boolean})],at.prototype,"noHeader",void 0);yo([(0,Ti.property)({type:Boolean})],at.prototype,"noContent",void 0);yo([(0,Ti.property)({type:Boolean})],at.prototype,"oneLineHeader",void 0);var pg=u(m());var ug={"ft-card":at};(0,pg.customElements)(ug);fn();me();ws();var vr=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;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--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},We=class t extends st(Fs){constructor(){super(),this.searchInDocumentQuery="",this.hideResultTitle=!1,this.hideResultBreadcrumb=!1,this.hideResultAbstract=!1,this.hideResultsNumber=!1,this.emptyResultOnClear=!1,this.uniqueId=(0,Ui.randomId)(6,"search-in-document-"),this.addI18nContext(mc)}get filters(){return[{key:"ft:publicationId",valueFilter:{negative:!1,values:[this.map.id]}}]}renderResult(e,r){var i;return At.html`
|
|
3328
|
+
<style> ${rg}</style>
|
|
3321
3329
|
<a href="${Us(e)}" @click=${()=>this.onLinkClick(e,r)}
|
|
3322
3330
|
@auxclick=${o=>this.onAuxClick(o,e,r)}
|
|
3323
3331
|
@contextmenu=${()=>this.onContextMenu(e,r)}>
|
|
3324
3332
|
<ft-card clickable noheader>
|
|
3325
3333
|
<div class="result-container">
|
|
3326
|
-
${this.hideResultTitle?
|
|
3334
|
+
${this.hideResultTitle?At.nothing:At.html`
|
|
3327
3335
|
<ft-search-result-title withoutLink="true"></ft-search-result-title>`}
|
|
3328
|
-
${this.hideResultBreadcrumb?
|
|
3329
|
-
<ft-typography class="breadcrumb" variant="${
|
|
3336
|
+
${this.hideResultBreadcrumb?At.nothing:At.html`
|
|
3337
|
+
<ft-typography class="breadcrumb" variant="${Q.caption}">${(i=e.topic)===null||i===void 0?void 0:i.breadcrumb.join(" > ")}</ft-typography>
|
|
3330
3338
|
`}
|
|
3331
|
-
${this.hideResultAbstract?
|
|
3339
|
+
${this.hideResultAbstract?At.nothing:At.html`
|
|
3332
3340
|
<ft-search-result-abstract></ft-search-result-abstract>
|
|
3333
3341
|
`}
|
|
3334
3342
|
</div>
|
|
3335
3343
|
</ft-card>
|
|
3336
3344
|
</a>
|
|
3337
|
-
`}onAuxClick(e,r,i){e.button==1&&this.onLinkClick(r,i)}onContextMenu(e,r){this.dispatchEvent(new
|
|
3345
|
+
`}onAuxClick(e,r,i){e.button==1&&this.onLinkClick(r,i)}onContextMenu(e,r){this.dispatchEvent(new xo(e,r))}render(){return this.map?At.html`
|
|
3338
3346
|
<ft-search-context id="${this.uniqueId}"
|
|
3339
3347
|
part="search-context"
|
|
3340
3348
|
contentLocale="${this.map.lang}"
|
|
@@ -3343,10 +3351,10 @@
|
|
|
3343
3351
|
scope="ALL_TOPICS"
|
|
3344
3352
|
ignoreEmptyQuery>
|
|
3345
3353
|
<div class="ft-search-in-doc--container">
|
|
3346
|
-
<ft-search-input placeholder="${this.placeholder?this.placeholder.message:
|
|
3354
|
+
<ft-search-input placeholder="${this.placeholder?this.placeholder.message:mc.messages.placeholder()}"
|
|
3347
3355
|
?triggerSearchOnClear=${this.emptyResultOnClear}
|
|
3348
3356
|
@change=${e=>{var r;(r=this.stateManager)===null||r===void 0||r.setSearchInDocumentQuery(e.detail)}}></ft-search-input>
|
|
3349
|
-
${this.hideResultsNumber?
|
|
3357
|
+
${this.hideResultsNumber?At.nothing:At.html`
|
|
3350
3358
|
<ft-search-results-number></ft-search-results-number>
|
|
3351
3359
|
`}
|
|
3352
3360
|
<ft-search-results ?displayNoResultsMessage=${this.hideResultsNumber}
|
|
@@ -3358,7 +3366,7 @@
|
|
|
3358
3366
|
</slot>
|
|
3359
3367
|
</div>
|
|
3360
3368
|
</ft-search-context>
|
|
3361
|
-
`:
|
|
3369
|
+
`:At.nothing}willUpdate(e){super.willUpdate(e),e.has("map")&&this.map&&this.initEventManager(),["hideResultTitle","hideResultBreadcrumb","hideResultAbstract"].some(r=>e.has(r))&&this.searchResults&&this.searchResults.requestUpdate()}initEventManager(){(0,Ui.waitFor)(()=>{var e;return(e=this.searchContext)===null||e===void 0?void 0:e.eventManager}).then(e=>{e.setDocumentSearchFromMap(this.map),e.initAppInfo()})}onLinkClick(e,r){this.dispatchEvent(new bo(e,r))}importDynamicDependencies(){super.importDynamicDependencies();let e=t.registry;Promise.resolve().then(()=>(_g(),Tg)).then(({FtSearchContext:r})=>e.define("ft-search-context",r)),Promise.resolve().then(()=>(Cb(),Sb)).then(({FtSearchInput:r})=>e.define("ft-search-input",r)),Promise.resolve().then(()=>(Pb(),kb)).then(({FtSearchLoadMoreButton:r})=>e.define("ft-search-load-more-button",r)),Promise.resolve().then(()=>(wu(),Ub)).then(({FtSearchResultAbstract:r})=>e.define("ft-search-result-abstract",r)),Promise.resolve().then(()=>(Tu(),Qb)).then(({FtSearchResultTitle:r})=>e.define("ft-search-result-title",r)),Promise.resolve().then(()=>(gx(),mx)).then(({FtSearchResults:r})=>e.define("ft-search-results",r)),Promise.resolve().then(()=>(Ox(),Ax)).then(({FtSearchResultsNumber:r})=>e.define("ft-search-results-number",r))}};We.elementDefinitions={"ft-card":at};We.styles=tg;vr([(0,Ui.redux)()],We.prototype,"map",void 0);vr([(0,Ui.redux)()],We.prototype,"searchInDocumentQuery",void 0);vr([(0,kr.query)("ft-search-results")],We.prototype,"searchResults",void 0);vr([(0,kr.property)({type:Boolean})],We.prototype,"hideResultTitle",void 0);vr([(0,kr.property)({type:Boolean})],We.prototype,"hideResultBreadcrumb",void 0);vr([(0,kr.property)({type:Boolean})],We.prototype,"hideResultAbstract",void 0);vr([(0,kr.property)({type:Boolean})],We.prototype,"hideResultsNumber",void 0);vr([(0,kr.property)({type:Boolean})],We.prototype,"emptyResultOnClear",void 0);vr([(0,kr.query)('[part="search-context"]')],We.prototype,"searchContext",void 0);vr([go()],We.prototype,"placeholder",void 0);var wx={"ft-reader-search-in-document":We};(0,Rx.customElements)(wx);})();
|
|
3362
3370
|
/*! Bundled license information:
|
|
3363
3371
|
|
|
3364
3372
|
lit-html/lit-html.js:
|