@fluid-topics/ft-reader-search-in-document 2.2.36 → 2.2.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
1
|
+
"use strict";(()=>{var Px=Object.create;var Ma=Object.defineProperty;var Mx=Object.getOwnPropertyDescriptor;var Nx=Object.getOwnPropertyNames;var Fx=Object.getPrototypeOf,Bx=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 Wi=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},oi=(t,e)=>{for(var r in e)Ma(t,r,{get:e[r],enumerable:!0})},Ux=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Nx(e))!Bx.call(t,o)&&o!==r&&Ma(t,o,{get:()=>e[o],enumerable:!(i=Mx(e,o))||i.enumerable});return t};var c=(t,e,r)=>(r=t!=null?Px(Fx(t)):{},Ux(e||!t||!t.__esModule?Ma(r,"default",{value:t,enumerable:!0}):r,t));var f=Wi((UE,qu)=>{qu.exports=ftGlobals.wcUtils});var y=Wi((zE,Ku)=>{Ku.exports=ftGlobals.lit});var Zu,Ee,Wu,z,Gu,Qu,Xu,Yu,Ju,Er=l(()=>{"use strict";Zu=c(y()),Ee=c(f()),Wu=Ee.FtCssVariableFactory.extend("--ft-ripple-color","",Ee.designSystemVariables.colorContent),z={color:Wu,backgroundColor:Ee.FtCssVariableFactory.extend("--ft-ripple-background-color","",Wu),opacityContentOnSurfacePressed:Ee.FtCssVariableFactory.external(Ee.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ee.FtCssVariableFactory.external(Ee.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ee.FtCssVariableFactory.external(Ee.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ee.FtCssVariableFactory.external(Ee.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ee.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Gu=Ee.FtCssVariableFactory.extend("--ft-ripple-color","",Ee.designSystemVariables.colorPrimary),Qu={color:Gu,backgroundColor:Ee.FtCssVariableFactory.extend("--ft-ripple-background-color","",Gu)},Xu=Ee.FtCssVariableFactory.extend("--ft-ripple-color","",Ee.designSystemVariables.colorSecondary),Yu={color:Xu,backgroundColor:Ee.FtCssVariableFactory.extend("--ft-ripple-background-color","",Xu)},Ju=Zu.css`
|
|
2
2
|
:host {
|
|
3
3
|
display: contents;
|
|
4
4
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
13
13
|
overflow: hidden;
|
|
14
|
-
border-radius: ${
|
|
14
|
+
border-radius: ${z.borderRadius};
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.ft-ripple .ft-ripple--background,
|
|
@@ -45,27 +45,27 @@
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.ft-ripple .ft-ripple--background {
|
|
48
|
-
background-color: ${
|
|
48
|
+
background-color: ${z.backgroundColor};
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.ft-ripple .ft-ripple--effect {
|
|
52
|
-
background-color: ${
|
|
52
|
+
background-color: ${z.color};
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
56
|
-
background-color: ${
|
|
56
|
+
background-color: ${Yu.backgroundColor};
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
60
|
-
background-color: ${
|
|
60
|
+
background-color: ${Yu.color};
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
64
|
-
background-color: ${
|
|
64
|
+
background-color: ${Qu.backgroundColor};
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
68
|
-
background-color: ${
|
|
68
|
+
background-color: ${Qu.color};
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
.ft-ripple .ft-ripple--background {
|
|
@@ -95,35 +95,35 @@
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
98
|
-
opacity: ${
|
|
98
|
+
opacity: ${z.opacityContentOnSurfaceHover};
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
102
|
-
opacity: ${
|
|
102
|
+
opacity: ${z.opacityContentOnSurfaceSelected};
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
106
|
-
opacity: ${
|
|
106
|
+
opacity: ${z.opacityContentOnSurfaceFocused};
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
110
|
-
opacity: ${
|
|
110
|
+
opacity: ${z.opacityContentOnSurfacePressed};
|
|
111
111
|
transform: translate(-50%, -50%) scale(1);
|
|
112
112
|
}
|
|
113
|
-
`});var F=
|
|
113
|
+
`});var F=Wi((qE,rd)=>{rd.exports=ftGlobals.litDecorators});var ot=Wi((KE,id)=>{id.exports=ftGlobals.litClassMap});var sd,Pe,od,$s,nt,L,Na=l(()=>{"use strict";sd=c(y()),Pe=c(F()),od=c(ot()),$s=c(f());Er();nt=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},L=class extends $s.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 $s.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 $s.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:o,y:s}=this.getCoordinates(e),n=(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-n.x:n.width/2),this.originY=Math.round(s!=null?s-n.y:n.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 sd.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,od.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)=>u=>{a.forEach(d=>window.addEventListener(d,this.endPress,{once:!0})),this.startPress(u)},i=r("mouseup","contextmenu"),
|
|
125
|
-
\f\r]`,
|
|
126
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),hd=/'/g,fd=/"/g,bd=/^(?:script|style|textarea|title)$/i,qa=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),vd=qa(1),xd=qa(2),Sd=qa(3),Mo=Symbol.for("lit-noChange"),Ce=Symbol.for("lit-nothing"),md=new WeakMap,ai=li.createTreeWalker(li,129);Ux=(t,e)=>{let r=t.length-1,i=[],s,o=e===2?"<svg>":e===3?"<math>":"",n=Do;for(let a=0;a<r;a++){let u=t[a],d,p,h=-1,m=0;for(;m<u.length&&(n.lastIndex=m,p=n.exec(u),p!==null);)m=n.lastIndex,n===Do?p[1]==="!--"?n=dd:p[1]!==void 0?n=pd:p[2]!==void 0?(bd.test(p[2])&&(s=RegExp("</"+p[2],"g")),n=ni):p[3]!==void 0&&(n=ni):n===ni?p[0]===">"?(n=s??Do,h=-1):p[1]===void 0?h=-2:(h=n.lastIndex-p[2].length,d=p[1],n=p[3]===void 0?ni:p[3]==='"'?fd:hd):n===fd||n===hd?n=ni:n===dd||n===pd?n=Do:(n=ni,s=void 0);let x=n===ni&&t[a+1].startsWith("/>")?" ":"";o+=n===Do?u+Fx:h>=0?(i.push(d),u.slice(0,h)+gd+u.slice(h)+Pr+x):u+Pr+(h===-2?a:x)}return[Ed(t,o+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},No=class t{constructor({strings:e,_$litType$:r},i){let s;this.parts=[];let o=0,n=0,a=e.length-1,u=this.parts,[d,p]=Ux(e,r);if(this.el=t.createElement(d,i),ai.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(s=ai.nextNode())!==null&&u.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(let h of s.getAttributeNames())if(h.endsWith(gd)){let m=p[n++],x=s.getAttribute(h).split(Pr),C=/([.?@])?(.*)/.exec(m);u.push({type:1,index:o,name:C[2],strings:x,ctor:C[1]==="."?Ba:C[1]==="?"?Ua:C[1]==="@"?Va:Gi}),s.removeAttribute(h)}else h.startsWith(Pr)&&(u.push({type:6,index:o}),s.removeAttribute(h));if(bd.test(s.tagName)){let h=s.textContent.split(Pr),m=h.length-1;if(m>0){s.textContent=Ds?Ds.emptyScript:"";for(let x=0;x<m;x++)s.append(h[x],Ps()),ai.nextNode(),u.push({type:2,index:++o});s.append(h[m],Ps())}}}else if(s.nodeType===8)if(s.data===yd)u.push({type:2,index:o});else{let h=-1;for(;(h=s.data.indexOf(Pr,h+1))!==-1;)u.push({type:7,index:o}),h+=Pr.length-1}o++}}static createElement(e,r){let i=li.createElement("template");return i.innerHTML=e,i}};Fa=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,s=(e?.creationScope??li).importNode(r,!0);ai.currentNode=s;let o=ai.nextNode(),n=0,a=0,u=i[0];for(;u!==void 0;){if(n===u.index){let d;u.type===2?d=new Ms(o,o.nextSibling,this,e):u.type===1?d=new u.ctor(o,u.name,u.strings,this,e):u.type===6&&(d=new za(o,this,e)),this._$AV.push(d),u=i[++a]}n!==u?.index&&(o=ai.nextNode(),n++)}return ai.currentNode=li,s}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},Ms=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,s){this.type=2,this._$AH=Ce,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Wi(this,e,r),Po(e)?e===Ce||e==null||e===""?(this._$AH!==Ce&&this._$AR(),this._$AH=Ce):e!==this._$AH&&e!==Mo&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Bx(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!==Ce&&Po(this._$AH)?this._$AA.nextSibling.data=e:this.T(li.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,s=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=No.createElement(Ed(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===s)this._$AH.p(r);else{let o=new Fa(s,this),n=o.u(this.options);o.p(r),this.T(n),this._$AH=o}}_$AC(e){let r=md.get(e.strings);return r===void 0&&md.set(e.strings,r=new No(e)),r}k(e){ja(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,s=0;for(let o of e)s===r.length?r.push(i=new t(this.O(Ps()),this.O(Ps()),this,this.options)):i=r[s],i._$AI(o),s++;s<r.length&&(this._$AR(i&&i._$AB.nextSibling,s),r.length=s)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=cd(e).nextSibling;cd(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Gi=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,s,o){this.type=1,this._$AH=Ce,this._$AN=void 0,this.element=e,this.name=r,this._$AM=s,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Ce}_$AI(e,r=this,i,s){let o=this.strings,n=!1;if(o===void 0)e=Wi(this,e,r,0),n=!Po(e)||e!==this._$AH&&e!==Mo,n&&(this._$AH=e);else{let a=e,u,d;for(e=o[0],u=0;u<o.length-1;u++)d=Wi(this,a[i+u],r,u),d===Mo&&(d=this._$AH[u]),n||=!Po(d)||d!==this._$AH[u],d===Ce?e=Ce:e!==Ce&&(e+=(d??"")+o[u+1]),this._$AH[u]=d}n&&!s&&this.j(e)}j(e){e===Ce?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ba=class extends Gi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Ce?void 0:e}},Ua=class extends Gi{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Ce)}},Va=class extends Gi{constructor(e,r,i,s,o){super(e,r,i,s,o),this.type=5}_$AI(e,r=this){if((e=Wi(this,e,r,0)??Ce)===Mo)return;let i=this._$AH,s=e===Ce&&i!==Ce||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,o=e!==Ce&&(i===Ce||s);s&&this.element.removeEventListener(this.name,this,i),o&&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)}},za=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){Wi(this,e)}},Vx=Ha.litHtmlPolyfillSupport;Vx?.(No,Ms),(Ha.litHtmlVersions??=[]).push("3.3.3")});var Ad,zx,Wa,Cd,Ga,Qa,rC,iC,wd=l(()=>{Ka();Ad=Symbol.for(""),zx=t=>{if(t?.r===Ad)return t?._$litStatic$},Wa=t=>({_$litStatic$:t,r:Ad}),Cd=new Map,Ga=t=>(e,...r)=>{let i=r.length,s,o,n=[],a=[],u,d=0,p=!1;for(;d<i;){for(u=e[d];d<i&&(o=r[d],(s=zx(o))!==void 0);)u+=s+e[++d],p=!0;d!==i&&a.push(o),n.push(u),d++}if(d===i&&n.push(e[i]),p){let h=n.join("$$lit$$");(e=Cd.get(h))===void 0&&(n.raw=n,Cd.set(h,e=n)),r=a}return t(e,...r)},Qa=Ga(vd),rC=Ga(xd),iC=Ga(Sd)});var Od=l(()=>{wd()});var X,Ns=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"})(X||(X={}))});var Tt,g,_d,Cr,v,ci,ui,di,pi,or,Ae,at,hi,fi,Vt,Rd,Td,kd,Ld,$d,Mr,Nr,Id,Dd,Pd,Md,zt=l(()=>{"use strict";Tt=c(y()),g=c(f()),_d=g.FtCssVariableFactory.extend("--ft-typography-font-family","",g.designSystemVariables.titleFont),Cr=g.FtCssVariableFactory.extend("--ft-typography-font-family","",g.designSystemVariables.contentFont),v={fontFamily:Cr,fontSize:g.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:g.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:g.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:g.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:g.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:g.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},ci={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-title-font-family","",_d),fontSize:g.FtCssVariableFactory.extend("--ft-typography-title-font-size","",v.fontSize,"20px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",v.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",v.letterSpacing,"0.15px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-title-line-height","",v.lineHeight,"1.2"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",v.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",v.textDecoration,"inherit")},ui={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",_d),fontSize:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",v.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",v.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",v.letterSpacing,"0.105px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",v.lineHeight,"1.7"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",v.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",v.textDecoration,"inherit")},di={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Cr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",v.fontSize,"16px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",v.fontWeight,"600"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",v.letterSpacing,"0.144px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",v.lineHeight,"1.5"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",v.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",v.textDecoration,"inherit")},pi={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Cr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",v.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",v.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",v.letterSpacing,"0.098px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",v.lineHeight,"1.7"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",v.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",v.textDecoration,"inherit")},or={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Cr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",v.fontSize,"16px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",v.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",v.letterSpacing,"0.496px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",v.lineHeight,"1.5"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",v.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",v.textDecoration,"inherit")},Ae={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Cr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",v.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",v.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",v.letterSpacing,"0.252px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",v.lineHeight,"1.4"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",v.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",v.textDecoration,"inherit")},at={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Cr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",v.fontSize,"12px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",v.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",v.letterSpacing,"0.396px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",v.lineHeight,"1.33"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",v.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",v.textDecoration,"inherit")},hi={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Cr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",v.fontSize,"10px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",v.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",v.letterSpacing,"0.33px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",v.lineHeight,"1.6"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",v.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",v.textDecoration,"inherit")},fi={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Cr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",v.fontSize,"10px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",v.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",v.letterSpacing,"1.5px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",v.lineHeight,"1.6"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",v.textTransform,"uppercase"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",v.textDecoration,"inherit")},Vt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Cr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-button-font-size","",v.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",v.fontWeight,"600"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",v.letterSpacing,"1.246px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-button-line-height","",v.lineHeight,"1.15"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",v.textTransform,"uppercase"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",v.textDecoration,"inherit")},Rd=Tt.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)=>u=>{a.forEach(d=>window.addEventListener(d,this.endPress,{once:!0})),this.startPress(u)},i=r("mouseup","contextmenu"),o=r("touchend","touchcancel"),s=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},n={passive:!0};e.addEventListener("mouseover",this.startHover,n),e.addEventListener("mousemove",this.moveRipple,n),e.addEventListener("mouseleave",this.endHover,n),e.addEventListener("mousedown",i,n),e.addEventListener("touchstart",o,n),e.addEventListener("touchmove",this.moveRipple,n),e.addEventListener("keydown",s,n),e.addEventListener("focus",this.startFocus,n),e.addEventListener("blur",this.endFocus,n),e.addEventListener("focusin",this.startFocus,n),e.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,n),e.removeEventListener("mousemove",this.moveRipple,n),e.removeEventListener("mouseleave",this.endHover,n),e.removeEventListener("mousedown",i,n),e.removeEventListener("touchstart",o,n),e.removeEventListener("touchmove",this.moveRipple,n),e.removeEventListener("keydown",s,n),e.removeEventListener("focus",this.startFocus,n),e.removeEventListener("blur",this.endFocus,n),e.removeEventListener("focusin",this.startFocus,n),e.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,o,s;return r.x!=null?{x:o,y:s}=r:i.touches!=null&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};L.elementDefinitions={};L.styles=Ju;nt([(0,Pe.property)({type:Boolean})],L.prototype,"primary",void 0);nt([(0,Pe.property)({type:Boolean})],L.prototype,"secondary",void 0);nt([(0,Pe.property)({type:Boolean})],L.prototype,"unbounded",void 0);nt([(0,Pe.property)({type:Boolean})],L.prototype,"activated",void 0);nt([(0,Pe.property)({type:Boolean})],L.prototype,"selected",void 0);nt([(0,Pe.property)({type:Boolean})],L.prototype,"disabled",void 0);nt([(0,Pe.state)()],L.prototype,"hovered",void 0);nt([(0,Pe.state)()],L.prototype,"focused",void 0);nt([(0,Pe.state)()],L.prototype,"pressed",void 0);nt([(0,Pe.state)()],L.prototype,"rippling",void 0);nt([(0,Pe.state)()],L.prototype,"originX",void 0);nt([(0,Pe.state)()],L.prototype,"originY",void 0);nt([(0,Pe.query)(".ft-ripple")],L.prototype,"ripple",void 0);nt([(0,Pe.query)(".ft-ripple--effect")],L.prototype,"rippleEffect",void 0)});var nd=l(()=>{"use strict"});var ad,ld=l(()=>{"use strict";Na();ad={"ft-ripple":L}});var cd,ud=l(()=>{"use strict";cd=c(f());ld();(0,cd.customElements)(ad)});var Qe=l(()=>{"use strict";Na();Er();nd();ud()});function Ad(t,e){if(!qa(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return pd!==void 0?pd.createHTML(e):e}function Gi(t,e,r=t,i){if(e===Ms)return e;let o=i!==void 0?r._$Co?.[i]:r._$Cl,s=Ps(e)?void 0:e._$litDirective$;return o?.constructor!==s&&(o?._$AO?.(!1),s===void 0?o=void 0:(o=new s(t),o._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=o:r._$Cl=o),o!==void 0&&(e=Gi(t,o._$AS(t,e.values),o,i)),e}var ja,dd,Po,pd,bd,Mr,vd,zx,li,Mo,Ps,qa,Vx,Fa,Ds,hd,fd,ni,md,gd,xd,Ka,Sd,Ed,Cd,Ms,Ce,yd,ai,Hx,Ns,Ba,No,Qi,Ua,za,Va,Ha,jx,Wa=l(()=>{ja=globalThis,dd=t=>t,Po=ja.trustedTypes,pd=Po?Po.createPolicy("lit-html",{createHTML:t=>t}):void 0,bd="$lit$",Mr=`lit$${Math.random().toFixed(9).slice(2)}$`,vd="?"+Mr,zx=`<${vd}>`,li=document,Mo=()=>li.createComment(""),Ps=t=>t===null||typeof t!="object"&&typeof t!="function",qa=Array.isArray,Vx=t=>qa(t)||typeof t?.[Symbol.iterator]=="function",Fa=`[
|
|
125
|
+
\f\r]`,Ds=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,hd=/-->/g,fd=/>/g,ni=RegExp(`>|${Fa}(?:([^\\s"'>=/]+)(${Fa}*=${Fa}*(?:[^
|
|
126
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),md=/'/g,gd=/"/g,xd=/^(?:script|style|textarea|title)$/i,Ka=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Sd=Ka(1),Ed=Ka(2),Cd=Ka(3),Ms=Symbol.for("lit-noChange"),Ce=Symbol.for("lit-nothing"),yd=new WeakMap,ai=li.createTreeWalker(li,129);Hx=(t,e)=>{let r=t.length-1,i=[],o,s=e===2?"<svg>":e===3?"<math>":"",n=Ds;for(let a=0;a<r;a++){let u=t[a],d,p,h=-1,m=0;for(;m<u.length&&(n.lastIndex=m,p=n.exec(u),p!==null);)m=n.lastIndex,n===Ds?p[1]==="!--"?n=hd:p[1]!==void 0?n=fd:p[2]!==void 0?(xd.test(p[2])&&(o=RegExp("</"+p[2],"g")),n=ni):p[3]!==void 0&&(n=ni):n===ni?p[0]===">"?(n=o??Ds,h=-1):p[1]===void 0?h=-2:(h=n.lastIndex-p[2].length,d=p[1],n=p[3]===void 0?ni:p[3]==='"'?gd:md):n===gd||n===md?n=ni:n===hd||n===fd?n=Ds:(n=ni,o=void 0);let x=n===ni&&t[a+1].startsWith("/>")?" ":"";s+=n===Ds?u+zx:h>=0?(i.push(d),u.slice(0,h)+bd+u.slice(h)+Mr+x):u+Mr+(h===-2?a:x)}return[Ad(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Ns=class t{constructor({strings:e,_$litType$:r},i){let o;this.parts=[];let s=0,n=0,a=e.length-1,u=this.parts,[d,p]=Hx(e,r);if(this.el=t.createElement(d,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(bd)){let m=p[n++],x=o.getAttribute(h).split(Mr),C=/([.?@])?(.*)/.exec(m);u.push({type:1,index:s,name:C[2],strings:x,ctor:C[1]==="."?Ua:C[1]==="?"?za:C[1]==="@"?Va:Qi}),o.removeAttribute(h)}else h.startsWith(Mr)&&(u.push({type:6,index:s}),o.removeAttribute(h));if(xd.test(o.tagName)){let h=o.textContent.split(Mr),m=h.length-1;if(m>0){o.textContent=Po?Po.emptyScript:"";for(let x=0;x<m;x++)o.append(h[x],Mo()),ai.nextNode(),u.push({type:2,index:++s});o.append(h[m],Mo())}}}else if(o.nodeType===8)if(o.data===vd)u.push({type:2,index:s});else{let h=-1;for(;(h=o.data.indexOf(Mr,h+1))!==-1;)u.push({type:7,index:s}),h+=Mr.length-1}s++}}static createElement(e,r){let i=li.createElement("template");return i.innerHTML=e,i}};Ba=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 s=ai.nextNode(),n=0,a=0,u=i[0];for(;u!==void 0;){if(n===u.index){let d;u.type===2?d=new No(s,s.nextSibling,this,e):u.type===1?d=new u.ctor(s,u.name,u.strings,this,e):u.type===6&&(d=new Ha(s,this,e)),this._$AV.push(d),u=i[++a]}n!==u?.index&&(s=ai.nextNode(),n++)}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++}},No=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,o){this.type=2,this._$AH=Ce,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=Gi(this,e,r),Ps(e)?e===Ce||e==null||e===""?(this._$AH!==Ce&&this._$AR(),this._$AH=Ce):e!==this._$AH&&e!==Ms&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Vx(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!==Ce&&Ps(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=Ns.createElement(Ad(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(r);else{let s=new Ba(o,this),n=s.u(this.options);s.p(r),this.T(n),this._$AH=s}}_$AC(e){let r=yd.get(e.strings);return r===void 0&&yd.set(e.strings,r=new Ns(e)),r}k(e){qa(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,o=0;for(let s of e)o===r.length?r.push(i=new t(this.O(Mo()),this.O(Mo()),this,this.options)):i=r[o],i._$AI(s),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!==this._$AB;){let i=dd(e).nextSibling;dd(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Qi=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,o,s){this.type=1,this._$AH=Ce,this._$AN=void 0,this.element=e,this.name=r,this._$AM=o,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Ce}_$AI(e,r=this,i,o){let s=this.strings,n=!1;if(s===void 0)e=Gi(this,e,r,0),n=!Ps(e)||e!==this._$AH&&e!==Ms,n&&(this._$AH=e);else{let a=e,u,d;for(e=s[0],u=0;u<s.length-1;u++)d=Gi(this,a[i+u],r,u),d===Ms&&(d=this._$AH[u]),n||=!Ps(d)||d!==this._$AH[u],d===Ce?e=Ce:e!==Ce&&(e+=(d??"")+s[u+1]),this._$AH[u]=d}n&&!o&&this.j(e)}j(e){e===Ce?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ua=class extends Qi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Ce?void 0:e}},za=class extends Qi{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Ce)}},Va=class extends Qi{constructor(e,r,i,o,s){super(e,r,i,o,s),this.type=5}_$AI(e,r=this){if((e=Gi(this,e,r,0)??Ce)===Ms)return;let i=this._$AH,o=e===Ce&&i!==Ce||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,s=e!==Ce&&(i===Ce||o);o&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Ha=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){Gi(this,e)}},jx=ja.litHtmlPolyfillSupport;jx?.(Ns,No),(ja.litHtmlVersions??=[]).push("3.3.3")});var Od,qx,Ga,wd,Qa,Xa,oC,nC,_d=l(()=>{Wa();Od=Symbol.for(""),qx=t=>{if(t?.r===Od)return t?._$litStatic$},Ga=t=>({_$litStatic$:t,r:Od}),wd=new Map,Qa=t=>(e,...r)=>{let i=r.length,o,s,n=[],a=[],u,d=0,p=!1;for(;d<i;){for(u=e[d];d<i&&(s=r[d],(o=qx(s))!==void 0);)u+=o+e[++d],p=!0;d!==i&&a.push(s),n.push(u),d++}if(d===i&&n.push(e[i]),p){let h=n.join("$$lit$$");(e=wd.get(h))===void 0&&(n.raw=n,wd.set(h,e=n)),r=a}return t(e,...r)},Xa=Qa(Sd),oC=Qa(Ed),nC=Qa(Cd)});var Rd=l(()=>{_d()});var Q,Fo=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 kt,g,Td,Cr,v,ci,ui,di,pi,or,Ae,at,hi,fi,Ht,kd,Ld,Id,$d,Dd,Nr,Fr,Pd,Md,Nd,Fd,jt=l(()=>{"use strict";kt=c(y()),g=c(f()),Td=g.FtCssVariableFactory.extend("--ft-typography-font-family","",g.designSystemVariables.titleFont),Cr=g.FtCssVariableFactory.extend("--ft-typography-font-family","",g.designSystemVariables.contentFont),v={fontFamily:Cr,fontSize:g.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:g.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:g.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:g.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:g.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:g.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},ci={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Td),fontSize:g.FtCssVariableFactory.extend("--ft-typography-title-font-size","",v.fontSize,"20px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",v.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",v.letterSpacing,"0.15px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-title-line-height","",v.lineHeight,"1.2"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",v.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",v.textDecoration,"inherit")},ui={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Td),fontSize:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",v.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",v.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",v.letterSpacing,"0.105px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",v.lineHeight,"1.7"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",v.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",v.textDecoration,"inherit")},di={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Cr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",v.fontSize,"16px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",v.fontWeight,"600"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",v.letterSpacing,"0.144px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",v.lineHeight,"1.5"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",v.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",v.textDecoration,"inherit")},pi={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Cr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",v.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",v.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",v.letterSpacing,"0.098px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",v.lineHeight,"1.7"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",v.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",v.textDecoration,"inherit")},or={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Cr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",v.fontSize,"16px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",v.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",v.letterSpacing,"0.496px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",v.lineHeight,"1.5"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",v.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",v.textDecoration,"inherit")},Ae={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Cr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",v.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",v.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",v.letterSpacing,"0.252px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",v.lineHeight,"1.4"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",v.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",v.textDecoration,"inherit")},at={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Cr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",v.fontSize,"12px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",v.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",v.letterSpacing,"0.396px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",v.lineHeight,"1.33"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",v.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",v.textDecoration,"inherit")},hi={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Cr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",v.fontSize,"10px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",v.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",v.letterSpacing,"0.33px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",v.lineHeight,"1.6"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",v.textTransform,"inherit"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",v.textDecoration,"inherit")},fi={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Cr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",v.fontSize,"10px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",v.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",v.letterSpacing,"1.5px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",v.lineHeight,"1.6"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",v.textTransform,"uppercase"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",v.textDecoration,"inherit")},Ht={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Cr),fontSize:g.FtCssVariableFactory.extend("--ft-typography-button-font-size","",v.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",v.fontWeight,"600"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",v.letterSpacing,"1.246px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-button-line-height","",v.lineHeight,"1.15"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",v.textTransform,"uppercase"),textDecoration:g.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",v.textDecoration,"inherit")},kd=kt.css`
|
|
127
127
|
.ft-typography--title {
|
|
128
128
|
font-family: ${ci.fontFamily};
|
|
129
129
|
font-size: ${ci.fontSize};
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
text-transform: ${ci.textTransform};
|
|
134
134
|
text-decoration: ${ci.textDecoration};
|
|
135
135
|
}
|
|
136
|
-
`,
|
|
136
|
+
`,Ld=kt.css`
|
|
137
137
|
.ft-typography--title-dense {
|
|
138
138
|
font-family: ${ui.fontFamily};
|
|
139
139
|
font-size: ${ui.fontSize};
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
text-transform: ${ui.textTransform};
|
|
144
144
|
text-decoration: ${ui.textDecoration};
|
|
145
145
|
}
|
|
146
|
-
`,
|
|
146
|
+
`,Id=kt.css`
|
|
147
147
|
.ft-typography--subtitle1 {
|
|
148
148
|
font-family: ${di.fontFamily};
|
|
149
149
|
font-size: ${di.fontSize};
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
text-transform: ${di.textTransform};
|
|
154
154
|
text-decoration: ${di.textDecoration};
|
|
155
155
|
}
|
|
156
|
-
|
|
156
|
+
`,$d=kt.css`
|
|
157
157
|
.ft-typography--subtitle2 {
|
|
158
158
|
font-family: ${pi.fontFamily};
|
|
159
159
|
font-size: ${pi.fontSize};
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
text-decoration: ${pi.textDecoration};
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
|
|
167
|
+
`,Dd=kt.css`
|
|
168
168
|
.ft-typography--body1 {
|
|
169
169
|
font-family: ${or.fontFamily};
|
|
170
170
|
font-size: ${or.fontSize};
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
text-transform: ${or.textTransform};
|
|
175
175
|
text-decoration: ${or.textDecoration};
|
|
176
176
|
}
|
|
177
|
-
`,
|
|
177
|
+
`,Nr=kt.css`
|
|
178
178
|
.ft-typography--body2 {
|
|
179
179
|
font-family: ${Ae.fontFamily};
|
|
180
180
|
font-size: ${Ae.fontSize};
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
text-transform: ${Ae.textTransform};
|
|
185
185
|
text-decoration: ${Ae.textDecoration};
|
|
186
186
|
}
|
|
187
|
-
`,
|
|
187
|
+
`,Fr=kt.css`
|
|
188
188
|
.ft-typography--caption {
|
|
189
189
|
font-family: ${at.fontFamily};
|
|
190
190
|
font-size: ${at.fontSize};
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
text-transform: ${at.textTransform};
|
|
195
195
|
text-decoration: ${at.textDecoration};
|
|
196
196
|
}
|
|
197
|
-
`,
|
|
197
|
+
`,Pd=kt.css`
|
|
198
198
|
.ft-typography--breadcrumb {
|
|
199
199
|
font-family: ${hi.fontFamily};
|
|
200
200
|
font-size: ${hi.fontSize};
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
text-transform: ${hi.textTransform};
|
|
205
205
|
text-decoration: ${hi.textDecoration};
|
|
206
206
|
}
|
|
207
|
-
`,
|
|
207
|
+
`,Md=kt.css`
|
|
208
208
|
.ft-typography--overline {
|
|
209
209
|
font-family: ${fi.fontFamily};
|
|
210
210
|
font-size: ${fi.fontSize};
|
|
@@ -214,29 +214,29 @@
|
|
|
214
214
|
text-transform: ${fi.textTransform};
|
|
215
215
|
text-decoration: ${fi.textDecoration};
|
|
216
216
|
}
|
|
217
|
-
`,
|
|
217
|
+
`,Nd=kt.css`
|
|
218
218
|
.ft-typography--button {
|
|
219
|
-
font-family: ${
|
|
220
|
-
font-size: ${
|
|
221
|
-
font-weight: ${
|
|
222
|
-
letter-spacing: ${
|
|
223
|
-
line-height: ${
|
|
224
|
-
text-transform: ${
|
|
225
|
-
text-decoration: ${
|
|
226
|
-
}
|
|
227
|
-
`,
|
|
219
|
+
font-family: ${Ht.fontFamily};
|
|
220
|
+
font-size: ${Ht.fontSize};
|
|
221
|
+
font-weight: ${Ht.fontWeight};
|
|
222
|
+
letter-spacing: ${Ht.letterSpacing};
|
|
223
|
+
line-height: ${Ht.lineHeight};
|
|
224
|
+
text-transform: ${Ht.textTransform};
|
|
225
|
+
text-decoration: ${Ht.textDecoration};
|
|
226
|
+
}
|
|
227
|
+
`,Fd=kt.css`
|
|
228
228
|
.ft-typography {
|
|
229
229
|
vertical-align: inherit;
|
|
230
230
|
}
|
|
231
|
-
`});var
|
|
232
|
-
<${
|
|
231
|
+
`});var Ya,Ud,Bd,V,Za=l(()=>{"use strict";Rd();Ya=c(F()),Ud=c(f());Fo();jt();Bd=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},V=class extends Ud.FtLitElement{constructor(){super(...arguments),this.variant=Q.body1}render(){return this.element?Xa`
|
|
232
|
+
<${Ga(this.element)}
|
|
233
233
|
part="text"
|
|
234
234
|
class="ft-typography ft-typography--${this.variant}">
|
|
235
235
|
<slot></slot>
|
|
236
|
-
</${
|
|
237
|
-
`:
|
|
236
|
+
</${Ga(this.element)}>
|
|
237
|
+
`:Xa`
|
|
238
238
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
239
|
-
`}};
|
|
239
|
+
`}};V.styles=[kd,Ld,Id,$d,Dd,Nr,Fr,Pd,Md,Nd,Fd];Bd([(0,Ya.property)()],V.prototype,"element",void 0);Bd([(0,Ya.property)()],V.prototype,"variant",void 0)});var zd,Vd=l(()=>{"use strict";Za();zd={"ft-typography":V}});var Hd,jd=l(()=>{"use strict";Hd=c(f());Vd();(0,Hd.customElements)(zd)});var ye=l(()=>{"use strict";Za();jt();Fo();jd()});var qd,Br,Fs,Kd,Ja=l(()=>{"use strict";qd=c(y()),Br=c(f()),Fs={distance:Br.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Br.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Br.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:Br.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",Br.designSystemVariables.borderRadiusS),maxWidth:Br.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Kd=qd.css`
|
|
240
240
|
.ft-tooltip--container {
|
|
241
241
|
display: block;
|
|
242
242
|
}
|
|
@@ -254,28 +254,28 @@
|
|
|
254
254
|
box-sizing: border-box;
|
|
255
255
|
overflow: hidden;
|
|
256
256
|
width: max-content;
|
|
257
|
-
max-width: ${
|
|
257
|
+
max-width: ${Fs.maxWidth};
|
|
258
258
|
text-align: center;
|
|
259
|
-
padding: ${
|
|
259
|
+
padding: ${Fs.distance};
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
.ft-tooltip--content {
|
|
263
263
|
padding: 4px 8px;
|
|
264
|
-
border-radius: ${
|
|
265
|
-
background-color: ${
|
|
266
|
-
color: ${
|
|
264
|
+
border-radius: ${Fs.borderRadiusS};
|
|
265
|
+
background-color: ${Fs.backgroundColor};
|
|
266
|
+
color: ${Fs.color};
|
|
267
267
|
position: relative;
|
|
268
268
|
word-break: break-word;
|
|
269
269
|
}
|
|
270
|
-
`});function Wd(t,e,r){return Br(t,Bo(e,r))}function Fs(t,e){return typeof t=="function"?t(e):t}function Vo(t){return t.split("-")[0]}function Ur(t){return t.split("-")[1]}function tl(t){return t==="x"?"y":"x"}function rl(t){return t==="y"?"height":"width"}function Bs(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function il(t){return tl(Bs(t))}function Gd(t,e,r){r===void 0&&(r=!1);let i=Ur(t),s=il(t),o=rl(s),n=s==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(n=Ja(n)),[n,Ja(n)]}function Qd(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Ja(t){let e=Vo(t);return Hx[e]+t.slice(e.length)}function jx(t){var e,r,i,s;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(s=t.left)!=null?s:0}}function Xd(t){return typeof t!="number"?jx(t):{top:t,right:t,bottom:t,left:t}}function mi(t){let{x:e,y:r,width:i,height:s}=t;return{width:i,height:s,top:r,left:e,right:e+i,bottom:r+s,x:e,y:r}}var Kd,qd,el,Bo,Br,Uo,sr,Hx,Us=l(()=>{Kd=["top","right","bottom","left"],qd=["start","end"],el=Kd.reduce((t,e)=>t.concat(e,e+"-"+qd[0],e+"-"+qd[1]),[]),Bo=Math.min,Br=Math.max,Uo=Math.round,sr=t=>({x:t,y:t}),Hx={left:"right",right:"left",bottom:"top",top:"bottom"}});function Yd(t,e,r){let{reference:i,floating:s}=t,o=Bs(e),n=il(e),a=rl(n),u=Vo(e),d=o==="y",p=i.x+i.width/2-s.width/2,h=i.y+i.height/2-s.height/2,m=i[a]/2-s[a]/2,x;switch(u){case"top":x={x:p,y:i.y-s.height};break;case"bottom":x={x:p,y:i.y+i.height};break;case"right":x={x:i.x+i.width,y:h};break;case"left":x={x:i.x-s.width,y:h};break;default:x={x:i.x,y:i.y}}let C=Ur(e);return C&&(x[n]+=m*(C==="end"?1:-1)*(r&&d?-1:1)),x}async function Zd(t,e){var r;e===void 0&&(e={});let{x:i,y:s,platform:o,rects:n,elements:a,strategy:u}=t,{boundary:d="clippingAncestors",rootBoundary:p="viewport",elementContext:h="floating",altBoundary:m=!1,padding:x=0}=Fs(e,t),C=Xd(x),E=a[m?h==="floating"?"reference":"floating":h],P=mi(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(E)))==null||r?E:E.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:d,rootBoundary:p,strategy:u})),Q=h==="floating"?{x:i,y:s,width:n.floating.width,height:n.floating.height}:n.reference,A=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),_=await(o.isElement==null?void 0:o.isElement(A))&&await(o.getScale==null?void 0:o.getScale(A))||{x:1,y:1},ee=mi(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:Q,offsetParent:A,strategy:u}):Q);return{top:(P.top-ee.top+C.top)/_.y,bottom:(ee.bottom-P.bottom+C.bottom)/_.y,left:(P.left-ee.left+C.left)/_.x,right:(ee.right-P.right+C.right)/_.x}}function Kx(t,e,r){return(t?[...r.filter(s=>Ur(s)===t),...r.filter(s=>Ur(s)!==t)]:r.filter(s=>Vo(s)===s)).filter(s=>t?Ur(s)===t||(e?Qd(s)!==s:!1):!0)}var qx,Jd,ep,tp,rp=l(()=>{Us();Us();qx=50,Jd=async(t,e,r)=>{let{placement:i="bottom",strategy:s="absolute",middleware:o=[],platform:n}=r,a=n.detectOverflow?n:{...n,detectOverflow:Zd},u=await(n.isRTL==null?void 0:n.isRTL(e)),d=await n.getElementRects({reference:t,floating:e,strategy:s}),{x:p,y:h}=Yd(d,i,u),m=i,x=0,C={};for(let k=0;k<o.length;k++){let E=o[k];if(!E)continue;let{name:P,fn:Q}=E,{x:A,y:_,data:ee,reset:W}=await Q({x:p,y:h,initialPlacement:i,placement:m,strategy:s,middlewareData:C,rects:d,platform:a,elements:{reference:t,floating:e}});p=A??p,h=_??h,C[P]={...C[P],...ee},W&&x<qx&&(x++,typeof W=="object"&&(W.placement&&(m=W.placement),W.rects&&(d=W.rects===!0?await n.getElementRects({reference:t,floating:e,strategy:s}):W.rects),{x:p,y:h}=Yd(d,m,u)),k=-1)}return{x:p,y:h,placement:m,strategy:s,middlewareData:C}};ep=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,s;let{rects:o,middlewareData:n,placement:a,platform:u,elements:d}=e,{crossAxis:p=!1,alignment:h,allowedPlacements:m=el,autoAlignment:x=!0,...C}=Fs(t,e),k=h!==void 0||m===el?Kx(h||null,x,m):m,E=((r=n.autoPlacement)==null?void 0:r.index)||0,P=k[E];if(P==null)return{};if(a!==P)return{reset:{placement:k[0]}};let Q=await u.detectOverflow(e,C),A=Gd(P,o,await(u.isRTL==null?void 0:u.isRTL(d.floating))),_=[Q[Vo(P)],Q[A[0]],Q[A[1]]],ee=[...((i=n.autoPlacement)==null?void 0:i.overflows)||[],{placement:P,overflows:_}],W=k[E+1];if(W)return{data:{index:E+1,overflows:ee},reset:{placement:W}};let Re=ee.map(Rt=>{let $o=Ur(Rt.placement);return[Rt.placement,$o&&p?Rt.overflows.slice(0,2).reduce((kx,Lx)=>kx+Lx,0):Rt.overflows[0],Rt.overflows]}).sort((Rt,$o)=>Rt[1]-$o[1]),Is=((s=Re.filter(Rt=>Rt[2].slice(0,Ur(Rt[0])?2:3).every($o=>$o<=0))[0])==null?void 0:s[0])||Re[0][0];return Is!==a?{data:{index:E+1,overflows:ee},reset:{placement:Is}}:{}}}},tp=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:s,platform:o}=e,{mainAxis:n=!0,crossAxis:a=!1,limiter:u={fn:Q=>{let{x:A,y:_}=Q;return{x:A,y:_}}},...d}=Fs(t,e),p={x:r,y:i},h=await o.detectOverflow(e,d),m=Bs(s),x=tl(m),C=p[x],k=p[m],E=(Q,A)=>Wd(A+h[Q==="y"?"top":"left"],A,A-h[Q==="y"?"bottom":"right"]);n&&(C=E(x,C)),a&&(k=E(m,k));let P=u.fn({...e,[x]:C,[m]:k});return{...P,data:{x:P.x-r,y:P.y-i,enabled:{[x]:n,[m]:a}}}}}}});function zs(){return typeof window<"u"}function yi(t){return op(t)?(t.nodeName||"").toLowerCase():"#document"}function lt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ar(t){var e;return(e=(op(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function op(t){return zs()?t instanceof Node||t instanceof lt(t).Node:!1}function Ht(t){return zs()?t instanceof Element||t instanceof lt(t).Element:!1}function wr(t){return zs()?t instanceof HTMLElement||t instanceof lt(t).HTMLElement:!1}function ip(t){return!zs()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof lt(t).ShadowRoot}function zo(t){let{overflow:e,overflowX:r,overflowY:i,display:s}=jt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&s!=="inline"&&s!=="contents"}function sp(t){return/^(table|td|th)$/.test(yi(t))}function Ho(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}function Qi(t){let e=Ht(t)?jt(t):t;return gi(e.transform)||gi(e.translate)||gi(e.scale)||gi(e.rotate)||gi(e.perspective)||!Hs()&&(gi(e.backdropFilter)||gi(e.filter))||Wx.test(e.willChange||"")||Gx.test(e.contain||"")}function np(t){let e=Vr(t);for(;wr(e)&&!Xi(e);){if(Qi(e))return e;if(Ho(e))return null;e=Vr(e)}return null}function Hs(){return ol==null&&(ol=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ol}function Xi(t){return/^(html|body|#document)$/.test(yi(t))}function jt(t){return lt(t).getComputedStyle(t)}function jo(t){return Ht(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Vr(t){if(yi(t)==="html")return t;let e=t.assignedSlot||t.parentNode||ip(t)&&t.host||Ar(t);return ip(e)?e.host:e}function ap(t){let e=Vr(t);return Xi(e)?(t.ownerDocument||t).body:wr(e)&&zo(e)?e:ap(e)}function Vs(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let s=ap(t),o=s===((i=t.ownerDocument)==null?void 0:i.body),n=lt(s);if(o){let a=js(n);return e.concat(n,n.visualViewport||[],zo(s)?s:[],a&&r?Vs(a):[])}else return e.concat(s,Vs(s,[],r))}function js(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}var Wx,Gx,gi,ol,sl=l(()=>{Wx=/transform|translate|scale|rotate|perspective|filter/,Gx=/paint|layout|strict|content/,gi=t=>!!t&&t!=="none"});function up(t){let e=jt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,s=wr(t),o=s?t.offsetWidth:r,n=s?t.offsetHeight:i,a=Uo(r)!==o||Uo(i)!==n;return a&&(r=o,i=n),{width:r,height:i,$:a}}function dp(t){return Ht(t)?t:t.contextElement}function Yi(t){let e=dp(t);if(!wr(e))return sr(1);let r=e.getBoundingClientRect(),{width:i,height:s,$:o}=up(e),n=(o?Uo(r.width):r.width)/i,a=(o?Uo(r.height):r.height)/s;return(!n||!Number.isFinite(n))&&(n=1),(!a||!Number.isFinite(a))&&(a=1),{x:n,y:a}}function pp(t){let e=lt(t);return!Hs()||!e.visualViewport?Qx:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Xx(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===lt(t)}function qo(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let s=t.getBoundingClientRect(),o=dp(t),n=sr(1);e&&(i?Ht(i)&&(n=Yi(i)):n=Yi(t));let a=Xx(o,r,i)?pp(o):sr(0),u=(s.left+a.x)/n.x,d=(s.top+a.y)/n.y,p=s.width/n.x,h=s.height/n.y;if(o&&i){let m=lt(o),x=Ht(i)?lt(i):i,C=m,k=js(C);for(;k&&x!==C;){let E=Yi(k),P=k.getBoundingClientRect(),Q=jt(k),A=P.left+(k.clientLeft+parseFloat(Q.paddingLeft))*E.x,_=P.top+(k.clientTop+parseFloat(Q.paddingTop))*E.y;u*=E.x,d*=E.y,p*=E.x,h*=E.y,u+=A,d+=_,C=lt(k),k=js(C)}}return mi({width:p,height:h,x:u,y:d})}function qs(t,e){let r=jo(t).scrollLeft;return e?e.left+r:qo(Ar(t)).left+r}function hp(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-qs(t,r),s=r.top+e.scrollTop;return{x:i,y:s}}function Yx(t){let{elements:e,rect:r,offsetParent:i,strategy:s}=t,o=s==="fixed",n=Ar(i),a=e?Ho(e.floating):!1;if(i===n||a&&o)return r;let u={scrollLeft:0,scrollTop:0},d=sr(1),p=sr(0),h=wr(i);if((h||!o)&&((yi(i)!=="body"||zo(n))&&(u=jo(i)),h)){let x=qo(i);d=Yi(i),p.x=x.x+i.clientLeft,p.y=x.y+i.clientTop}let m=n&&!h&&!o?hp(n,u):sr(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-u.scrollLeft*d.x+p.x+m.x,y:r.y*d.y-u.scrollTop*d.y+p.y+m.y}}function Zx(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Jx(t){let e=jo(t),r=t.ownerDocument.body,i=Br(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Br(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-e.scrollLeft+qs(t),n=-e.scrollTop;return jt(r).direction==="rtl"&&(o+=Br(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:n}}function tS(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",s=lt(t),o=Ar(t),n=s.visualViewport,a=o.clientWidth,u=o.clientHeight,d=0,p=0;if(n){let m=!Hs()||e==="fixed";i?m||(d=-n.offsetLeft,p=-n.offsetTop):(a=n.width,u=n.height,m&&(d=n.offsetLeft,p=n.offsetTop))}if(qs(o)<=0){let m=o.ownerDocument,x=m.body,C=getComputedStyle(x),k=m.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,E=Math.abs(o.clientWidth-x.clientWidth-k),P=getComputedStyle(o).scrollbarGutter==="stable both-edges"?E/2:E;P<=eS&&(a-=P)}return{width:a,height:u,x:d,y:p}}function rS(t,e){let r=qo(t,!0,e==="fixed"),i=r.top+t.clientTop,s=r.left+t.clientLeft,o=Yi(t),n=t.clientWidth*o.x,a=t.clientHeight*o.y,u=s*o.x,d=i*o.y;return{width:n,height:a,x:u,y:d}}function lp(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=tS(t,r,e);else if(e==="document")i=Jx(Ar(t));else if(Ht(e))i=rS(e,r);else{let s=pp(t);i={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return mi(i)}function iS(t,e){let r=e.get(t);if(r)return r;let i=Vs(t,[],!1).filter(a=>Ht(a)&&yi(a)!=="body"),s=null,o=jt(t).position==="fixed",n=o?Vr(t):t;for(;Ht(n)&&!Xi(n);){let a=jt(n),u=Qi(n),d=s?s.position:o?"fixed":"";!u&&(d==="fixed"||d==="absolute"&&a.position==="static")?i=i.filter(h=>h!==n):s=a,n=Vr(n)}return e.set(t,i),i}function oS(t){let{element:e,boundary:r,rootBoundary:i,strategy:s}=t,n=[...r==="clippingAncestors"?Ho(e)?[]:iS(e,this._c):[].concat(r),i],a=lp(e,n[0],s),u=a.top,d=a.right,p=a.bottom,h=a.left;for(let m=1;m<n.length;m++){let x=lp(e,n[m],s);u=Br(x.top,u),d=Bo(x.right,d),p=Bo(x.bottom,p),h=Br(x.left,h)}return{width:d-h,height:p-u,x:h,y:u}}function sS(t){let{width:e,height:r}=up(t);return{width:e,height:r}}function nS(t,e,r){let i=wr(e),s=Ar(e),o=r==="fixed",n=qo(t,!0,o,e),a={scrollLeft:0,scrollTop:0},u=sr(0);if((i||!o)&&((yi(e)!=="body"||zo(s))&&(a=jo(e)),i)){let m=qo(e,!0,o,e);u.x=m.x+e.clientLeft,u.y=m.y+e.clientTop}!i&&s&&(u.x=qs(s));let d=s&&!i&&!o?hp(s,a):sr(0),p=n.left+a.scrollLeft-u.x-d.x,h=n.top+a.scrollTop-u.y-d.y;return{x:p,y:h,width:n.width,height:n.height}}function nl(t){return jt(t).position==="static"}function cp(t,e){if(!wr(t)||jt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Ar(t)===r&&(r=r.ownerDocument.body),r}function fp(t,e){let r=lt(t);if(Ho(t))return r;if(!wr(t)){let s=Vr(t);for(;s&&!Xi(s);){if(Ht(s)&&!nl(s))return s;s=Vr(s)}return r}let i=cp(t,e);for(;i&&sp(i)&&nl(i);)i=cp(i,e);return i&&Xi(i)&&nl(i)&&!Qi(i)?r:i||np(t)||r}function lS(t){return jt(t).direction==="rtl"}var Qx,eS,aS,Ks,mp,gp,yp,bp=l(()=>{rp();Us();sl();Qx=sr(0);eS=25;aS=async function(t){let e=this.getOffsetParent||fp,r=this.getDimensions,i=await r(t.floating);return{reference:nS(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};Ks={convertOffsetParentRelativeRectToViewportRelativeRect:Yx,getDocumentElement:Ar,getClippingRect:oS,getOffsetParent:fp,getElementRects:aS,getClientRects:Zx,getDimensions:sS,getScale:Yi,isElement:Ht,isRTL:lS},mp=ep,gp=tp,yp=(t,e,r)=>{let i=new Map,s=r??{},o={...Ks,...s.platform,_c:i};return Jd(t,e,{...s,platform:o})}});function vp(t){return cS(t)}function al(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function cS(t){for(let e=t;e;e=al(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=al(t);e;e=al(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Qi(r)||e.tagName==="BODY"))return e}return null}var xp=l(()=>{sl()});async function Sp(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},yp(t,e,{strategy:i.strategy,platform:{...Ks,getOffsetParent:s=>Ks.getOffsetParent(s,vp)},middleware:[gp({crossAxis:!0}),mp({allowedPlacements:[i.placement]})]})}var Ep=l(()=>{"use strict";bp();xp()});function Ap(t,e){return(0,Cp.property)({type:Object,converter:uS(t),hasChanged:Wo,...e??{}})}var Cp,ll,uS,Ws=l(()=>{"use strict";Cp=c(F(),1);bi();ll=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},uS=t=>({fromAttribute:e=>{if(e==null)return Ko(t);try{return JSON.parse(e)}catch{return Ko(t)}},toAttribute:e=>JSON.stringify(e)})});function dS(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(!Zi(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(!Zi(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let s=n=>Object.keys(n).filter(a=>n[a]!=null),o=s(t);if(r=o.length,r!==s(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[i]))return!1;for(i=r;i--!==0;){let n=o[i];if(!Zi(t[n],e[n]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Zi(t,e){try{return dS(t,e)}catch{return!1}}function Wo(t,e){return!Zi(t,e)}function Ko(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Gs(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let s=e(i);return s[t]=!0,s}}var bi=l(()=>{"use strict";Ws()});var wp,cl,Op=l(()=>{"use strict";bi();wp=c(F(),1),cl=t=>{let e=t??{};return(r,i)=>{var s;let o={hasChanged:Wo,attribute:!1,...e};(0,wp.property)(o)(r,i);let n=r.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(i,{selector:(s=e.selector)!==null&&s!==void 0?s:(a=>a[i]),store:e.store})}}});var Qs,ul=l(()=>{"use strict";Qs=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 Xs,_p=l(()=>{"use strict";Xs=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let s=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),o=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let n of i)try{await n()}catch(a){s(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}});var Zs,Ys,Rp=l(()=>{"use strict";Zs=c(y(),1);Ws();Ys=class extends Zs.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return(0,Zs.adoptStyles)(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){ll(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 Tp(t,e,...r){var i;let s=t.querySelector(e);for(let o of r)s=(i=s?.shadowRoot)===null||i===void 0?void 0:i.querySelector(o);return s}var kp=l(()=>{"use strict"});var vi,eo,Dp,Lp,$p,Pp,Ip,Ji,nr,Mp=l(()=>{"use strict";vi=c(F(),1);Ws();_p();Rp();kp();eo=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},Lp=Symbol("constructorPrototype"),$p=Symbol("constructorName"),Pp=Symbol("exportpartsDebouncer"),Ip=Symbol("dynamicDependenciesLoaded"),Ji=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Ji.eventName="exportparts-updated";nr=class extends Ys{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Dp]=new Xs(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[Pp].run(()=>{var s,o;!((s=this.exportpartsPrefix)===null||s===void 0)&&s.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[$p]=this.constructor.name,this[Lp]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[$p]&&Object.setPrototypeOf(this,this[Lp])}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[Ip]||(r[Ip]=!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:s}=this.elementToFocus;if(i!=null){let o=[...s??[],i];r=Tp(this.shadowRoot,...o)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,s;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(o=>o.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((s=this.customStylesheet)!==null&&s!==void 0?s:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(e){var r,i,s,o,n,a;let u=m=>m!=null&&m.trim().length>0,d=e.filter(u).map(m=>m.trim());if(d.length===0){this.exportparts=void 0;return}let p=new Set;for(let m of(o=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let x=(n=(i=m.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&n!==void 0?n:[],C=(a=(s=m.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(E=>E.split(":")[1]))!==null&&a!==void 0?a:[],k=[...x,...C].filter(u).map(E=>E.trim());for(let E of k)p.add(E)}if(p.size===0){this.exportparts=void 0;return}let h=[...p.values()].flatMap(m=>d.map(x=>`${m}:${x}--${m}`));this.exportparts=[...this.part,...h].join(", ")}};Dp=Pp;eo([(0,vi.property)()],nr.prototype,"exportpartsPrefix",void 0);eo([Ap([])],nr.prototype,"exportpartsPrefixes",void 0);eo([(0,vi.property)({reflect:!0})],nr.prototype,"exportparts",void 0);eo([(0,vi.property)()],nr.prototype,"customStylesheet",void 0);eo([(0,vi.property)()],nr.prototype,"elementToFocus",void 0);eo([(0,vi.state)()],nr.prototype,"useAdoptedStyleSheets",void 0)});function Js(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var en=l(()=>{"use strict"});var Go,zr,xi,pS,Np,Fp=l(()=>{"use strict";Mp();en();bi();Go=Symbol("internalReduxEventsUnsubscribers"),zr=Symbol("internalStoresUnsubscribers"),xi=Symbol("internalStores"),pS=Gs(Symbol("withRedux"),function(t){var e,r,i;class s extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(n){super.willUpdate(n),[...this.reduxConstructor.reduxReactiveProperties].some(a=>n.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[xi].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[xi].values()][0]}getStore(n){return n==null?this.getUnnamedStore():this[xi].get(n)}addStore(n,a){var u;a=(u=a??n.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(a),this[xi].set(a,n),this.subscribeToStore(a,n),this.updateFromStores()}removeStore(n){let a=typeof n=="string"?n:n.name;this.unsubscribeFromStore(a),this[xi].delete(a)}setupStores(){this.unsubscribeFromStores(),this[xi].forEach((n,a)=>this.subscribeToStore(a,n)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((n,a)=>{let u=this.constructor.getPropertyOptions(a);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:a)){let d=this.getStore(n.store);d&&(n.store?this[zr].has(n.store):this[zr].size>0)&&(this[a]=n.selector(d.getState(),this))}})}subscribeToStore(n,a){var u,d;this[zr].set(n,a.subscribe(()=>this.updateFromStores())),this[Go].set(n,[]),Js(a)&&(!((u=a.deprecatedKeys)===null||u===void 0)&&u.length&&this.reduxConstructor.reduxProperties.forEach((p,h)=>{this.getStore(p.store)===a&&a.deprecatedKeys.includes(h)&&console.warn("Element",this,"is subscribed to deprecated key",h,"in store",a.name)}),a.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((p,h)=>{if(typeof this[h]=="function"&&(!p.store||a.name===p.store)){let m=x=>this[h](x);a.addEventListener(p.eventName,m),this[Go].get(n).push(()=>a.removeEventListener(p.eventName,m))}}))),this.onStoreAvailable(n)}unsubscribeFromStores(){this[zr].forEach((n,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(n){var a;this[zr].has(n)&&this[zr].get(n)(),this[zr].delete(n),(a=this[Go].get(n))===null||a===void 0||a.forEach(u=>u()),this[Go].delete(n)}onStoreAvailable(n){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=zr,r=xi,i=Go,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),Np=class extends pS(nr){}});function Me(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 rn(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function pl(t,e,r){if(typeof t!="function")throw new Error(Me(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Me(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Me(1));return r(pl)(t,e)}let i=t,s=e,o=new Map,n=o,a=0,u=!1;function d(){n===o&&(n=new Map,o.forEach((E,P)=>{n.set(P,E)}))}function p(){if(u)throw new Error(Me(3));return s}function h(E){if(typeof E!="function")throw new Error(Me(4));if(u)throw new Error(Me(5));let P=!0;d();let Q=a++;return n.set(Q,E),function(){if(P){if(u)throw new Error(Me(6));P=!1,d(),n.delete(Q),o=null}}}function m(E){if(!rn(E))throw new Error(Me(7));if(typeof E.type>"u")throw new Error(Me(8));if(typeof E.type!="string")throw new Error(Me(17));if(u)throw new Error(Me(9));try{u=!0,s=i(s,E)}finally{u=!1}return(o=n).forEach(Q=>{Q()}),E}function x(E){if(typeof E!="function")throw new Error(Me(10));i=E,m({type:tn.REPLACE})}function C(){let E=h;return{subscribe(P){if(typeof P!="object"||P===null)throw new Error(Me(11));function Q(){let _=P;_.next&&_.next(p())}return Q(),{unsubscribe:E(Q)}},[Bp](){return this}}}return m({type:tn.INIT}),{dispatch:m,subscribe:h,getState:p,replaceReducer:x,[Bp]:C}}function mS(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:tn.INIT})>"u")throw new Error(Me(12));if(typeof r(void 0,{type:tn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Me(13))})}function hl(t){let e=Object.keys(t),r={};for(let n=0;n<e.length;n++){let a=e[n];typeof t[a]=="function"&&(r[a]=t[a])}let i=Object.keys(r),s,o;try{mS(r)}catch(n){o=n}return function(a={},u){if(o)throw o;let d=!1,p={};for(let h=0;h<i.length;h++){let m=i[h],x=r[m],C=a[m],k=x(C,u);if(typeof k>"u"){let E=u&&u.type;throw new Error(Me(14))}p[m]=k,d=d||k!==C}return d=d||i.length!==Object.keys(a).length,d?p:a}}function Qo(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function Up(...t){return e=>(r,i)=>{let s=e(r,i),o=()=>{throw new Error(Me(15))},n={getState:s.getState,dispatch:(u,...d)=>o(u,...d)},a=t.map(u=>u(n));return o=Qo(...a)(s.dispatch),{...s,dispatch:o}}}function Vp(t){return rn(t)&&"type"in t&&typeof t.type=="string"}var hS,Bp,dl,fS,tn,fl=l(()=>{hS=typeof Symbol=="function"&&Symbol.observable||"@@observable",Bp=hS,dl=()=>Math.random().toString(36).substring(7).split("").join("."),fS={INIT:`@@redux/INIT${dl()}`,REPLACE:`@@redux/REPLACE${dl()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${dl()}`},tn=fS});function qt(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}function gt(t){return t?Yp(t)||mn(t)||!!t[zp]||!!t[an]?.[zp]||gn(t)||es(t):!1}function Yp(t){if(!t||!Ol(t))return!1;let e=ro(t);if(e===null||e===mt[hn])return!0;let r=mt.hasOwnProperty.call(e,an)&&e[an];if(r===Object)return!0;if(!to(r))return!1;let i=Hp.get(r);return i===void 0&&(i=Function.toString.call(r),Hp.set(r,i)),i===gS}function fn(t,e,r=!0){Jo(t)===0?(r?Reflect.ownKeys(t):mt.keys(t)).forEach(s=>{e(s,t[s],t)}):t.forEach((i,s)=>e(s,i,t))}function Jo(t){let e=t[je];return e?e.type_:mn(t)?1:gn(t)?2:es(t)?3:0}function yS(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}function bS(t){let e=+t;return Number.isInteger(e)&&String(e)===t}function xl(t,e){if(gn(t))return new Map(t);if(es(t))return new Set(t);if(mn(t))return Array[hn].slice.call(t);let r=Yp(t);if(e===!0||e==="class_only"&&!r){let i=mt.getOwnPropertyDescriptors(t);delete i[je];let s=Reflect.ownKeys(i);for(let o=0;o<s.length;o++){let n=s[o],a=i[n];a[sn]===!1&&(a[sn]=!0,a[bl]=!0),(a.get||a.set)&&(i[n]={[bl]:!0,[sn]:!0,[ln]:a[ln],[Xo]:t[n]})}return mt.create(ro(t),i)}else{let i=ro(t);if(i!==null&&r)return{...t};let s=mt.create(i);return mt.assign(s,t)}}function yn(t,e=!1){return bn(t)||ar(t)||!gt(t)||(Jo(t)>1&&mt.defineProperties(t,{set:on,add:on,clear:on,delete:on}),mt.freeze(t),e&&fn(t,(r,i)=>{yn(i,!0)},!1)),t}function vS(){qt(2)}function bn(t){return t===null||!Ol(t)?!0:mt.isFrozen(t)}function Si(t){let e=Zp[t];return e||qt(0,t),e}function Kp(t,e){e&&(t.patchPlugin_=Si(Sl),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function El(t){Cl(t),t.drafts_.forEach(SS),t.drafts_=null}function Cl(t){t===Yo&&(Yo=t.parent_)}function SS(t){let e=t[je];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Gp(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[je].modified_&&(El(e),qt(4)),gt(t)&&(t=Qp(e,t));let{patchPlugin_:s}=e;s&&s.generateReplacementPatches_(r[je].base_,t,e)}else t=Qp(e,r);return ES(e,t,!0),El(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Xp?t:void 0}function Qp(t,e){if(bn(e))return e;let r=e[je];if(!r)return dn(e,t.handledSet_,t);if(!vn(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);rh(r,t)}return r.copy_}function ES(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&yn(e,r)}function eh(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}function th(t,e,r,i){let s=Or(t),o=t.type_;if(i!==void 0&&vl(s,i,o)===e){cn(s,i,r,o);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;fn(s,(u,d)=>{if(ar(d)){let p=a.get(d)||[];p.push(u),a.set(d,p)}})}let n=t.draftLocations_.get(e)??CS;for(let a of n)cn(s,a,r,o)}function AS(t,e,r){t.callbacks_.push(function(s){let o=e;if(!o||!vn(o,s))return;s.mapSetPlugin_?.fixSetContents(o);let n=_l(o);th(t,o.draft_??o,n,r),rh(o,s)})}function rh(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let s=i.getPath(t);s&&i.generatePatches_(t,s,e)}eh(t)}}function wS(t,e,r){let{scope_:i}=t;if(ar(r)){let s=r[je];vn(s,i)&&s.callbacks_.push(function(){nn(t);let n=_l(s);th(t,r,n,e)})}else gt(r)&&t.callbacks_.push(function(){let o=Or(t);t.type_===3?o.has(r)&&dn(r,i.handledSet_,i):vl(o,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&dn(vl(t.copy_,e,t.type_),i.handledSet_,i)})}function dn(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||ar(t)||e.has(t)||!gt(t)||bn(t)||(e.add(t),fn(t,(i,s)=>{if(ar(s)){let o=s[je];if(vn(o,r)){let n=_l(o);cn(t,i,n,t.type_),eh(o)}}else gt(s)&&dn(s,e,r)})),t}function OS(t,e){let r=mn(t),i={type_:r?1:0,scope_:e?e.scope_:Jp(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},s=i,o=pn;r&&(s=[i],o=Zo);let{revoke:n,proxy:a}=Proxy.revocable(s,o);return i.draft_=a,i.revoke_=n,[a,i]}function yl(t,e){let r=t[je];return(r?Or(r):t)[e]}function _S(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||!gt(r)||r[je]?!1:t.baseRefs_.has(r)}function RS(t,e,r){let i=ih(e,r);return i?Xo in i?i[Xo]:i.get?.call(t.draft_):void 0}function ih(t,e){if(!(e in t))return;let r=ro(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=ro(r)}}function Al(t){t.modified_||(t.modified_=!0,t.parent_&&Al(t.parent_))}function nn(t){t.copy_||(t.assigned_=new Map,t.copy_=xl(t.base_,t.scope_.immer_.useStrictShallowCopy_))}function wl(t,e,r,i){let[s,o]=gn(e)?Si(un).proxyMap_(e,r):es(e)?Si(un).proxySet_(e,r):OS(e,r);return(r?.scope_??Jp()).drafts_.push(s),o.callbacks_=r?.callbacks_??[],o.key_=i,r&&i!==void 0?AS(r,o,i):o.callbacks_.push(function(u){u.mapSetPlugin_?.fixSetContents(o);let{patchPlugin_:d}=u;o.modified_&&d&&d.generatePatches_(o,[],u)}),s}function oh(t){return ar(t)||qt(10,t),sh(t)}function sh(t){if(!gt(t)||bn(t))return t;let e=t[je],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=xl(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=xl(t,!0);let s=r;return es(r)&&(r=new Set),fn(s,(o,n)=>{cn(r,o,sh(n))},i),e&&(e.finalized_=!1),r}var Xp,zp,je,mt,ro,an,hn,bl,ln,sn,Xo,ar,gS,Hp,ml,vl,cn,mn,gn,es,Ol,to,gl,Or,_l,on,un,Sl,jp,Zp,qp,Yo,Jp,xS,Wp,vn,CS,pn,Zo,TS,kS,y0,LS,Rl,nh=l(()=>{Xp=Symbol.for("immer-nothing"),zp=Symbol.for("immer-draftable"),je=Symbol.for("immer-state");mt=Object,ro=mt.getPrototypeOf,an="constructor",hn="prototype",bl="configurable",ln="enumerable",sn="writable",Xo="value",ar=t=>!!t&&!!t[je];gS=mt[hn][an].toString(),Hp=new WeakMap;ml=(t,e,r=Jo(t))=>r===2?t.has(e):mt[hn].hasOwnProperty.call(t,e),vl=(t,e,r=Jo(t))=>r===2?t.get(e):t[e],cn=(t,e,r,i=Jo(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};mn=Array.isArray,gn=t=>t instanceof Map,es=t=>t instanceof Set,Ol=t=>typeof t=="object",to=t=>typeof t=="function",gl=t=>typeof t=="boolean";Or=t=>t.copy_||t.base_,_l=t=>t.modified_?t.copy_:t.base_;on={[Xo]:vS};un="MapSet",Sl="Patches",jp="ArrayMethods",Zp={};qp=t=>!!Zp[t],Jp=()=>Yo,xS=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:qp(un)?Si(un):void 0,arrayMethodsPlugin_:qp(jp)?Si(jp):void 0});Wp=t=>Yo=xS(Yo,t);vn=(t,e)=>t.scope_===e,CS=[];pn={get(t,e){if(e===je)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let s=Or(t);if(!ml(s,e,t.type_))return RS(t,s,e);let o=s[e];if(t.finalized_||!gt(o)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&bS(e))return o;if(o===yl(t.base_,e)||_S(t,e,o)){nn(t);let n=t.type_===1?+e:e,a=wl(t.scope_,o,t,n);return t.copy_[n]=a}return o},has(t,e){return e in Or(t)},ownKeys(t){return Reflect.ownKeys(Or(t))},set(t,e,r){let i=ih(Or(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let s=yl(Or(t),e),o=s?.[je];if(o&&o.base_===r)return t.copy_[e]=r,t.assigned_.delete(e),!0;if(yS(r,s)&&(r!==void 0||ml(t.base_,e,t.type_)))return!0;nn(t),Al(t)}return t.copy_[e]===r&&(r!==void 0||ml(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),wS(t,e,r)),!0},deleteProperty(t,e){return nn(t),yl(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),Al(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=Or(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[sn]:!0,[bl]:t.type_!==1||e!=="length",[ln]:i[ln],[Xo]:r[e]}},defineProperty(){qt(11)},getPrototypeOf(t){return ro(t.base_)},setPrototypeOf(){qt(12)}},Zo={};for(let t in pn){let e=pn[t];Zo[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}Zo.deleteProperty=function(t,e){return Zo.set.call(this,t,e,void 0)};Zo.set=function(t,e,r){return pn.set.call(this,t[0],e,r,t[0])};TS=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(to(e)&&!to(r)){let o=r;r=e;let n=this;return function(u=o,...d){return n.produce(u,p=>r.call(this,p,...d))}}to(r)||qt(6),i!==void 0&&!to(i)&&qt(7);let s;if(gt(e)){let o=Wp(this),n=wl(o,e,void 0),a=!0;try{s=r(n),a=!1}finally{a?El(o):Cl(o)}return Kp(o,i),Gp(s,o)}else if(!e||!Ol(e)){if(s=r(e),s===void 0&&(s=e),s===Xp&&(s=void 0),this.autoFreeze_&&yn(s,!0),i){let o=[],n=[];Si(Sl).generateReplacementPatches_(e,s,{patches_:o,inversePatches_:n}),i(o,n)}return s}else qt(1,e)},this.produceWithPatches=(e,r)=>{if(to(e))return(n,...a)=>this.produceWithPatches(n,u=>e(u,...a));let i,s;return[this.produce(e,r,(n,a)=>{i=n,s=a}),i,s]},gl(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),gl(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),gl(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){gt(t)||qt(8),ar(t)&&(t=oh(t));let e=Wp(this),r=wl(e,t,void 0);return r[je].isManual_=!0,Cl(e),r}finishDraft(t,e){let r=t&&t[je];(!r||!r.isManual_)&&qt(9);let{scope_:i}=r;return Kp(i,e),Gp(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let s=e[r];if(s.path.length===0&&s.op==="replace"){t=s.value;break}}r>-1&&(e=e.slice(r+1));let i=Si(Sl).applyPatches_;return ar(t)?i(t,e):this.produce(t,s=>i(s,e))}};kS=globalThis.Iterator,y0=typeof kS?.from=="function",LS=new TS,Rl=LS.produce});function ah(t){return({dispatch:r,getState:i})=>s=>o=>typeof o=="function"?o(r,i,t):s(o)}var lh,ch,uh=l(()=>{lh=ah(),ch=ah});function Hr(t,e){function r(...i){if(e){let s=e(...i);if(!s)throw new Error(lr(0));return{type:t,payload:s.payload,..."meta"in s&&{meta:s.meta},..."error"in s&&{error:s.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>Vp(i)&&i.type===t,r}function dh(t){return gt(t)?Rl(t,()=>{}):t}function xn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function DS(t){return typeof t=="boolean"}function gh(t){let e=PS(),{reducer:r=void 0,middleware:i,devTools:s=!0,duplicateMiddlewareCheck:o=!0,preloadedState:n=void 0,enhancers:a=void 0}=t||{},u;if(typeof r=="function")u=r;else if(rn(r))u=hl(r);else throw new Error(lr(1));let d;typeof i=="function"?d=i(e):d=e();let p=Qo;s&&(p=$S({trace:!1,...typeof s=="object"&&s}));let h=Up(...d),m=BS(h),x=typeof a=="function"?a(m):m(),C=p(...x);return pl(u,n,C)}function yh(t){let e={},r=[],i,s={addCase(o,n){let a=typeof o=="string"?o:o.type;if(!a)throw new Error(lr(28));if(a in e)throw new Error(lr(29));return e[a]=n,s},addAsyncThunk(o,n){return n.pending&&(e[o.pending.type]=n.pending),n.rejected&&(e[o.rejected.type]=n.rejected),n.fulfilled&&(e[o.fulfilled.type]=n.fulfilled),n.settled&&r.push({matcher:o.settled,reducer:n.settled}),s},addMatcher(o,n){return r.push({matcher:o,reducer:n}),s},addDefaultCase(o){return i=o,s}};return t(s),[e,r,i]}function US(t){return typeof t=="function"}function VS(t,e){let[r,i,s]=yh(e),o;if(US(t))o=()=>dh(t());else{let a=dh(t);o=()=>a}function n(a=o(),u){let d=[r[u.type],...i.filter(({matcher:p})=>p(u)).map(({reducer:p})=>p)];return d.filter(p=>!!p).length===0&&(d=[s]),d.reduce((p,h)=>{if(h)if(ar(p)){let m=h(p,u);return m===void 0?p:m}else{if(gt(p))return Rl(p,m=>h(m,u));{let m=h(p,u);if(m===void 0){if(p===null)return p;throw new Error(lr(9))}return m}}return p},a)}return n.getInitialState=o,n}function HS(...t){return e=>t.some(r=>zS(r,e))}function QS(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function XS(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}function YS(t,e){return`${t}/${e}`}function ZS({creators:t}={}){let e=t?.asyncThunk?.[bh];return function(i){let{name:s,reducerPath:o=s}=i;if(!s)throw new Error(lr(11));typeof process<"u";let n=(typeof i.reducers=="function"?i.reducers(eE()):i.reducers)||{},a=Object.keys(n),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(A,_){let ee=typeof A=="string"?A:A.type;if(!ee)throw new Error(lr(12));if(ee in u.sliceCaseReducersByType)throw new Error(lr(13));return u.sliceCaseReducersByType[ee]=_,d},addMatcher(A,_){return u.sliceMatchers.push({matcher:A,reducer:_}),d},exposeAction(A,_){return u.actionCreators[A]=_,d},exposeCaseReducer(A,_){return u.sliceCaseReducersByName[A]=_,d}};a.forEach(A=>{let _=n[A],ee={reducerName:A,type:YS(s,A),createNotation:typeof i.reducers=="function"};rE(_)?oE(ee,_,d,e):tE(ee,_,d)});function p(){let[A={},_=[],ee=void 0]=typeof i.extraReducers=="function"?yh(i.extraReducers):[i.extraReducers],W={...A,...u.sliceCaseReducersByType};return VS(i.initialState,Re=>{for(let He in W)Re.addCase(He,W[He]);for(let He of u.sliceMatchers)Re.addMatcher(He.matcher,He.reducer);for(let He of _)Re.addMatcher(He.matcher,He.reducer);ee&&Re.addDefaultCase(ee)})}let h=A=>A,m=new Map,x=new WeakMap,C;function k(A,_){return C||(C=p()),C(A,_)}function E(){return C||(C=p()),C.getInitialState()}function P(A,_=!1){function ee(Re){let He=Re[A];return typeof He>"u"&&_&&(He=xn(x,ee,E)),He}function W(Re=h){return xn(xn(m,_,()=>new WeakMap),Re,()=>{let He={};for(let[Is,Rt]of Object.entries(i.selectors??{}))He[Is]=JS(Rt,Re,()=>xn(x,Re,E),_);return He})}return{reducerPath:A,getSelectors:W,get selectors(){return W(ee)},selectSlice:ee}}let Q={name:s,reducer:k,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:E,...P(o),injectInto(A,{reducerPath:_,...ee}={}){let W=_??o;return A.inject({reducerPath:W,reducer:k},ee),{...Q,...P(W,!0)}}};return Q}}function JS(t,e,r,i){function s(o,...n){let a=e(o);return typeof a>"u"&&i&&(a=r()),t(a,...n)}return s.unwrapped=t,s}function eE(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function tE({type:t,reducerName:e,createNotation:r},i,s){let o,n;if("reducer"in i){if(r&&!iE(i))throw new Error(lr(17));o=i.reducer,n=i.prepare}else o=i;s.addCase(t,o).exposeCaseReducer(e,o).exposeAction(e,n?Hr(t,n):Hr(t))}function rE(t){return t._reducerDefinitionType==="asyncThunk"}function iE(t){return t._reducerDefinitionType==="reducerWithPrepare"}function oE({type:t,reducerName:e},r,i,s){if(!s)throw new Error(lr(18));let{payloadCreator:o,fulfilled:n,pending:a,rejected:u,settled:d,options:p}=r,h=s(t,o,p);i.exposeAction(e,h),n&&i.addCase(h.fulfilled,n),a&&i.addCase(h.pending,a),u&&i.addCase(h.rejected,u),d&&i.addMatcher(h.settled,d),i.exposeCaseReducer(e,{fulfilled:n||Sn,pending:a||Sn,rejected:u||Sn,settled:d||Sn})}function Sn(){}function lr(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var $S,IS,mh,PS,MS,ph,NS,FS,BS,zS,jS,qS,KS,Tl,hh,WS,fh,GS,bh,w0,vh,xh,Sh,Eh,O0,_0,R0,T0,Ch,kl,sE,k0,nE,Ah=l(()=>{fl();nh();uh();fl();$S=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Qo:Qo.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;IS=t=>t&&typeof t.match=="function";mh=class ts extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,ts.prototype)}static get[Symbol.species](){return ts}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new ts(...e[0].concat(this)):new ts(...e.concat(this))}};PS=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:s=!0,actionCreatorCheck:o=!0}=e??{},n=new mh;return r&&(DS(r)?n.push(lh):n.push(ch(r.extraArgument))),n},MS="RTK_autoBatch",ph=t=>e=>{setTimeout(e,t)},NS=(t,e)=>r=>{let i=!1,s,o,n=()=>{i||(i=!0,cancelAnimationFrame(s),clearTimeout(o),r())};s=t(n),o=setTimeout(n,e)},FS=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),s=!0,o=!1,n=!1,a=new Set,u=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?NS(window.requestAnimationFrame,100):ph(10):t.type==="callback"?t.queueNotification:ph(t.timeout),d=()=>{n=!1,o&&(o=!1,a.forEach(p=>p()))};return Object.assign({},i,{subscribe(p){let h=()=>s&&p(),m=i.subscribe(h);return a.add(p),()=>{m(),a.delete(p)}},dispatch(p){try{return s=!p?.meta?.[MS],o=!s,o&&(n||(n=!0,u(d))),i.dispatch(p)}finally{s=!0}}})},BS=t=>function(r){let{autoBatch:i=!0}=r??{},s=new mh(t);return i&&s.push(FS(typeof i=="object"?i:void 0)),s};zS=(t,e)=>IS(t)?t.match(e):t(e);jS="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",qS=(t=21)=>{let e="",r=t;for(;r--;)e+=jS[Math.random()*64|0];return e},KS=["name","message","stack","code"],Tl=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},hh=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},WS=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of KS)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},fh="External signal was aborted",GS=(()=>{function t(e,r,i){let s=Hr(e+"/fulfilled",(u,d,p,h)=>({payload:u,meta:{...h||{},arg:p,requestId:d,requestStatus:"fulfilled"}})),o=Hr(e+"/pending",(u,d,p)=>({payload:void 0,meta:{...p||{},arg:d,requestId:u,requestStatus:"pending"}})),n=Hr(e+"/rejected",(u,d,p,h,m)=>({payload:h,error:(i&&i.serializeError||WS)(u||"Rejected"),meta:{...m||{},arg:p,requestId:d,rejectedWithValue:h!==void 0,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"}}));function a(u,{signal:d}={}){return(p,h,m)=>{let x=i?.idGenerator?i.idGenerator(u):qS(),C=new AbortController,k,E;function P(A){E=A,C.abort()}d&&(d.aborted?P(fh):d.addEventListener("abort",()=>P(fh),{once:!0}));let Q=(async function(){let A;try{let _=i?.condition?.(u,{getState:h,extra:m});if(XS(_)&&(_=await _),_===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(C.signal.aborted)throw{name:"AbortError",message:E||"Aborted"};let ee=new Promise((W,Re)=>{k=()=>{Re({name:"AbortError",message:E||"Aborted"})},C.signal.addEventListener("abort",k,{once:!0})});p(o(x,u,i?.getPendingMeta?.({requestId:x,arg:u},{getState:h,extra:m}))),A=await Promise.race([ee,Promise.resolve(r(u,{dispatch:p,getState:h,extra:m,requestId:x,signal:C.signal,abort:P,rejectWithValue:((W,Re)=>new Tl(W,Re)),fulfillWithValue:((W,Re)=>new hh(W,Re))})).then(W=>{if(W instanceof Tl)throw W;return W instanceof hh?s(W.payload,x,u,W.meta):s(W,x,u)})])}catch(_){A=_ instanceof Tl?n(null,x,u,_.payload,_.meta):n(_,x,u)}finally{k&&C.signal.removeEventListener("abort",k)}return i&&!i.dispatchConditionRejection&&n.match(A)&&A.meta.condition||p(A),A})();return Object.assign(Q,{abort:P,requestId:x,arg:u,unwrap(){return Q.then(QS)}})}}return Object.assign(a,{pending:o,rejected:n,fulfilled:s,settled:HS(n,s),typePrefix:e})}return t.withTypes=()=>t,t})();bh=Symbol.for("rtk-slice-createasyncthunk"),w0={[bh]:GS};vh=ZS();xh="listener",Sh="completed",Eh="cancelled",O0=`task-${Eh}`,_0=`task-${Sh}`,R0=`${xh}-${Eh}`,T0=`${xh}-${Sh}`,{assign:Ch}=Object,kl="listenerMiddleware",sE=Ch(Hr(`${kl}/add`),{withTypes:()=>sE}),k0=Hr(`${kl}/removeAll`),nE=Ch(Hr(`${kl}/remove`),{withTypes:()=>nE})});var aE,En,wh=l(()=>{"use strict";bi();aE=Gs(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,s){this.eventBus.addEventListener(r,i,s)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,s){this.eventBus.removeEventListener(r,i,s)}}}),En=class extends aE(Object){}});var Oh,_h=l(()=>{"use strict";Ah();en();ul();wh();bi();window.ftReduxStores||(window.ftReduxStores={});Oh=class t extends En{static get(e){var r;let i=typeof e=="string"?e:e.name,s=typeof e=="string"?void 0:e,o=window.ftReduxStores[i];if(Js(o))return o;if(s==null)return;let n=vh({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),a=gh({reducer:(u,d)=>{if(d.type==="CLEAR_FT_REDUX_STORE"){let p=Ko(n.getInitialState());for(let h of d.keeping)p[h]=(u??p)[h];return p}else if(typeof d.type=="string"&&d.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...u,...d.overwrites};return n.reducer(u,d)}});return window.ftReduxStores[s.name]=new t(n,a,s.eventBus,s.deprecatedKeys)}constructor(e,r,i,s){super(),this.reduxSlice=e,this.reduxStore=r,this.deprecatedKeys=s,this.isFtReduxStore=!0,this.commands=new Qs,this.injectInto=(n,a)=>this.reduxSlice.injectInto(n,a),this.selectSlice=n=>this.reduxSlice.selectSlice(n);let o=n=>n!=null?JSON.parse(JSON.stringify(n)):n;this.actions=new Proxy(this.reduxSlice.actions,{get:(n,a,u)=>{let d=a,p=n[d];return p?(...h)=>{let m=p(...h.map(o));return this.reduxStore.dispatch(m),m}:h=>{let m=d,x=this.getState()[m];Zi(x,h)||this.setState({[m]:o(h)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}}});var Rh=l(()=>{"use strict";bi()});var Th=l(()=>{"use strict"});var kh=l(()=>{"use strict";Op();ul();Fp();_h();en();Rh();Th()});var Cn,Lh=l(()=>{"use strict";Cn=class{static format(e,r,i,s,o){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,s,!!o)):this.getIntlDateTime(e,r,i,s,!!o)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,s,o){let n=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(n),u=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(n);return o?u:s?`${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 An,lE,cr,rs,cE,S,qe=l(()=>{"use strict";An=c(f()),lE="ft-app-info",cr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};cr.eventName="authentication-change";rs=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};rs.eventName="ui-locale-changed";cE={session:(t,e)=>{(0,An.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>S.dispatchEvent(new cr(e.payload)),0))}},S=An.FtReduxStore.get({name:lE,reducers:cE,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}})});var Ll,$h,wn,nA,Ih=l(()=>{"use strict";Ll=c(F());kh();Lh();qe();$h=c(f()),wn=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},nA=(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(S)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var s,o;return((o=(s=this.metadataDescriptors.find(a=>a.key===i))===null||s===void 0?void 0:s.date)!==null&&o!==void 0?o:!1)?a=>Cn.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return wn([(0,Ll.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),wn([(0,Ll.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),wn([cl({store:S.name,selector:r=>{var i,s;return(s=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&s!==void 0?s:[]}})],e.prototype,"metadataDescriptors",void 0),wn([cl({store:S.name})],e.prototype,"uiLocale",void 0),e})});var $l=l(()=>{});var Dh,Ph,Mh,jr,Nh,Fh,Bh,Ei,Uh,Vh,zh,Hh,jh,qh,Kh,Wh,Gh,On,Qh,Xh,io,Yh,_n,Zh,Jh,ur,oo,ef,ge,kt,tf,Il=l(()=>{(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Dh||(Dh={}));(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"})(Mh||(Mh={}));(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"})(jr||(jr={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Nh||(Nh={}));(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Fh||(Fh={}));(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Bh||(Bh={}));(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"})(Ei||(Ei={}));(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Uh||(Uh={}));(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Vh||(Vh={}));(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER",t.DOC_DIFF="DOC_DIFF"})(zh||(zh={}));(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"})(Hh||(Hh={}));(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(jh||(jh={}));(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(qh||(qh={}));(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Kh||(Kh={}));(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Wh||(Wh={}));(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"})(Gh||(Gh={}));(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(On||(On={}));(function(t){t.ASC="ASC",t.DESC="DESC"})(Qh||(Qh={}));(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Xh||(Xh={}));(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(io||(io={}));(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Yh||(Yh={}));(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(_n||(_n={}));(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"})(Zh||(Zh={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Jh||(Jh={}));(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(ur||(ur={}));(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(oo||(oo={}));(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(ef||(ef={}));(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"})(ge||(ge={}));(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(kt||(kt={}));(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(tf||(tf={}))});var rf,of,sf,nf,af,lf,cf,uf,df,pf,hf,ff=l(()=>{(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(rf||(rf={}));(function(t){t.VALID="VALID",t.INVALID="INVALID"})(of||(of={}));(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(sf||(sf={}));(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(nf||(nf={}));(function(t){t.JSON="JSON",t.TEXT="TEXT"})(af||(af={}));(function(t){t.JSON="JSON",t.TEXT="TEXT"})(lf||(lf={}));(function(t){t.TEXT="TEXT",t.HTML="HTML"})(cf||(cf={}));(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(uf||(uf={}));(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(df||(df={}));(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"})(pf||(pf={}));(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(hf||(hf={}))});var mf=l(()=>{Il();ff()});function gf(t,e){return t===e||(uE[t]??[]).some(r=>gf(r,e))}function is(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=>gf(i,e))}function yf(t,...e){return t==null?!1:e.some(r=>is(t,r))}var uE,bf=l(()=>{Il();uE={[ge.PERSONAL_BOOK_SHARE_USER]:[ge.PERSONAL_BOOK_USER],[ge.HTML_EXPORT_USER]:[ge.PERSONAL_BOOK_USER],[ge.PDF_EXPORT_USER]:[ge.PERSONAL_BOOK_USER],[ge.KHUB_ADMIN]:[ge.CONTENT_PUBLISHER],[ge.ADMIN]:[ge.KHUB_ADMIN,ge.USERS_ADMIN,ge.PORTAL_ADMIN,ge.BEHAVIOR_DATA_USER],[ge.GENERATIVE_AI_EXPORT_USER]:[ge.GENERATIVE_AI_USER]}});var vf=l(()=>{});var qr=l(()=>{$l();mf();bf();vf();$l()});var Ci,Dl=l(()=>{"use strict";qe();Ci=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=S.getState(),s=e??i;if(r&&s&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,s,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let s=S.subscribe(()=>{i=t.get(e),i&&(s(),r(i))})}})}}});var so,Pl=l(()=>{"use strict";Dl();so=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ci.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ci.await()}}});var Ml,Ke,Kr=l(()=>{"use strict";Ml=c(f());Pl();Ke=class extends so{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(o,n)=>typeof n!="object"||n==null||Array.isArray(n)?n:Object.fromEntries(Object.entries(n).sort(([a],[u])=>a.localeCompare(u)));let s=this.constructor;s.commonCache=(i=s.commonCache)!==null&&i!==void 0?i:new Ml.CacheRegistry,this.cache=e?s.commonCache:new Ml.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 Rn,Nl=l(()=>{"use strict";qe();qr();Kr();Rn=class extends Ke{async listMySearches(){let{session:e}=S.getState();return is(e,ge.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}}});var Tn,Fl=l(()=>{"use strict";qe();Kr();Tn=class extends Ke{async listMyBookmarks(){let e=S.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}}});var kn,xf=l(()=>{"use strict";qe();Kr();kn=class extends Ke{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=S.getState().session;return!!e?.sessionAuthenticated}}});var Ln,Sf=l(()=>{"use strict";Kr();qe();Ln=class extends Ke{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=S.getState().session;return!!e?.sessionAuthenticated}}});var $n,dE,pE,Af,Bl,Ul,Ef,Cf,Ye,Vl,hE,zl=l(()=>{"use strict";qr();$n=c(f());Nl();Fl();qe();xf();Sf();dE="ft-user-assets",pE={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(kt).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:s}=e.payload;Ul(t,r,[...Bl(t,r),s]),Ef(t,r,1,i),Cf(t,s)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Ul(t,r,Bl(t,r).map(s=>s.id===i.id?i:s)),Cf(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:s}=e.payload;Ul(t,r,Bl(t,r).filter(o=>o.id!==s)),Ef(t,r,-1,i)}},Af={[kt.SEARCHES]:"savedSearches",[kt.BOOKMARKS]:"bookmarks",[kt.BOOKS]:void 0,[kt.COLLECTIONS]:void 0},Bl=(t,e)=>{var r;let i=Af[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Ul=(t,e,r)=>{let i=Af[e];i&&(t[i]=r)},Ef=(t,e,r,i)=>{let s=t.assetCounts.allAsset[e];if(s!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,s+r),e===kt.BOOKMARKS&&i)){let o=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,o+r)}},Cf=(t,e)=>{let r=t.assetLabels.map(s=>s.title),i=e.labels.filter(s=>!r.includes(s)).map(s=>({title:s}));t.assetLabels.push(...i)},Ye=$n.FtReduxStore.get({name:dE,reducers:pE,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(kt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Vl=class{constructor(e=new kn,r=new Ln){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=S.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Tn,this.savedSearchesService=new Rn,S.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=S.getState();(0,$n.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(),Ye.actions.clearAssetCount(),Ye.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ye.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ye.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Ye.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Ye.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Ye.getState().assetCounts.allAsset[e]!==r.count&&Ye.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Ye.getState().assetCounts.bookmarkByMap[e]!==r.count&&Ye.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Ye.getState().assetCounts.bookmarkByMap).length!==0;e===kt.BOOKMARKS&&r&&Ye.actions.clearBookmarkCountByMap(),Ye.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;Ye.actions.bookmarks(r)}}},hE=new Vl;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=hE)});var wf=l(()=>{"use strict";qr();zl()});var Hl,Of=l(()=>{"use strict";qe();Hl=class{addCommand(e,r=!1){S.commands.add(e,r)}consumeCommand(e){return S.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Hl});var Lt,_f,no,fE,In,ao,Dn,Rf=l(()=>{"use strict";qe();Lt=c(f());Kr();no=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},fE=Symbol("clearAfterUnitTest"),In=class extends(0,Lt.withEventBus)(Ke){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[_f]=()=>{this.defaultMessages={},this.cache=new Lt.CacheRegistry,this.listeners={}},this.currentUiLocale=S.getState().uiLocale,S.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=S.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let s={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,Lt.deepEqual)(this.defaultMessages[e],s)||(this.defaultMessages[e]=s,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var s;let o=e.toLowerCase(),n=this.resolveContext(o);return new Lt.ParametrizedLabelResolver((s=this.defaultMessages[o])!==null&&s!==void 0?s:{},n).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(s){!(s instanceof Lt.CanceledPromiseError)&&r&&console.error(s)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var s;return(s=this.listeners[e])===null||s===void 0?void 0:s.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new no({loadedContexts:e})),this.dispatchEvent(new no({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new no({loadedContexts:[e]})),this.dispatchEvent(new no({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,Lt.delay)(0).then(()=>i()).catch(()=>null)))}};_f=fE;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends In{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends In{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});ao=window.FluidTopicsI18nService,Dn=window.FluidTopicsCustomI18nService});var Tf,jl,kf=l(()=>{"use strict";Tf=c(f()),jl=class{highlightHtml(e,r,i){(0,Tf.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new jl});var Lf,ql,$f=l(()=>{"use strict";Lf=c(f());qe();ql=class{isDate(e){var r,i,s,o;return(o=(i=((s=(r=S.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&s!==void 0?s:[]).find(a=>a.key===e))===null||i===void 0?void 0:i.date)!==null&&o!==void 0?o:!1}format(e,r){var i,s,o,n;if(e==null)return"";try{return Lf.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:S.getState().uiLocale,(s=r?.longFormat)!==null&&s!==void 0?s:!1,(o=r?.withTime)!==null&&o!==void 0?o:!1,(n=r?.onlyTime)!==null&&n!==void 0?n:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new ql});var If,_r,Kl=l(()=>{"use strict";If=c(f());qe();_r=class{static get(e,r,{baseUrl:i,localesConfiguration:s,availableContentLocales:o}=S.getState()){var n;if(!r||o.length>0&&!o.some(a=>a.lang===r)){let a=s?.defaultLocales.defaultContentLocale;r=a?`${a.lang}-${a.region}`:(n=o[0])===null||n===void 0?void 0:n.lang}return new If.SearchPlaceConverter(i,e??20,s?.allLanguagesAllowed,r,o)}}});var Pn,Df=l(()=>{"use strict";Kr();Pn=class extends Ke{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,s])=>Array.isArray(s)?[i,s.map(o=>typeof o=="object"&&o!=null&&!Array.isArray(o)?this.sortEventArrays(o):o).sort((o,n)=>typeof o=="object"&&o!==null&&"key"in o?o.key.localeCompare(n.key):typeof o=="string"&&typeof n=="string"?o.localeCompare(n):String(o).localeCompare(String(n)))]:typeof s=="object"&&s!==null?[i,this.sortEventArrays(s)]:[i,s]);return Object.fromEntries(r)}sendEvents(e,r){let i="anything not undefined";return document.dispatchEvent(new CustomEvent("ft:analytics:userevents",{detail:e})),this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>i).catch(s=>(console.info(r),console.debug(s),i)),1e3)}}});var Wl,Pf=l(()=>{"use strict";Kl();Wl=class{urlToSearchRequest(e){return _r.get().parse(e)}searchRequestToUrl(e){return _r.get().serialize(e)}};window.FluidTopicsUrlService=new Wl});var Ai,wi,Mf=l(()=>{"use strict";Ai=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Ai.eventName="before-location-change";wi=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};wi.eventName="change"});var Gl,Nf,Ff=l(()=>{"use strict";Gl=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))}},Nf=new Gl});var Rr,Mn,Bf=l(()=>{"use strict";Rr=c(f());Mf();Ff();Mn=class t extends Rr.WithEventBus{static build(){return new t(window.history,Nf,()=>window.location,!1)}constructor(e,r,i,s){var o,n;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(n=(o=e.state)===null||o===void 0?void 0:o.index)!==null&&n!==void 0?n:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(s)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Rr.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new wi(this.currentItem())),0)}installProxies(){let e=r=>(i,s,[o,n,a])=>{let u=new Ai(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(u);let d=r(),p={...d===this.currentIndex?this.currentState:void 0,...o,index:d,href:u.detail.nextLocation.href};i.apply(s,[p,n,p.href]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addBeforeLocationChangeListener(e){this.addEventListener(Ai.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Ai.eventName,e)}addHistoryChangeListener(e){this.addEventListener(wi.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(wi.eventName,e)}currentItem(){return(0,Rr.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,Rr.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Rr.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,Rr.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let s=e,o=e+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,i);)this.hasState(o)&&(s=o),o++;return s}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let s=r??this.currentState.majorStateId,o=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return o==null||o!=s}}});var Uf=l(()=>{"use strict";Bf();window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Mn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)})});var Vf=l(()=>{"use strict";qe()});var Nn=l(()=>{"use strict";Fl();Dl();Of();Rf();Kr();kf();Nl();$f();Kl();Df();Pf();Uf();Vf()});var zf,Hf,Ql=l(()=>{"use strict";zf=c(y()),Hf=zf.css`
|
|
271
|
-
`});var
|
|
270
|
+
`});function Qd(t,e,r){return Ur(t,Bs(e,r))}function Bo(t,e){return typeof t=="function"?t(e):t}function zs(t){return t.split("-")[0]}function zr(t){return t.split("-")[1]}function rl(t){return t==="x"?"y":"x"}function il(t){return t==="y"?"height":"width"}function Uo(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function sl(t){return rl(Uo(t))}function Xd(t,e,r){r===void 0&&(r=!1);let i=zr(t),o=sl(t),s=il(o),n=o==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(n=el(n)),[n,el(n)]}function Yd(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function el(t){let e=zs(t);return Kx[e]+t.slice(e.length)}function Wx(t){var e,r,i,o;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(o=t.left)!=null?o:0}}function Zd(t){return typeof t!="number"?Wx(t):{top:t,right:t,bottom:t,left:t}}function mi(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 Gd,Wd,tl,Bs,Ur,Us,nr,Kx,zo=l(()=>{Gd=["top","right","bottom","left"],Wd=["start","end"],tl=Gd.reduce((t,e)=>t.concat(e,e+"-"+Wd[0],e+"-"+Wd[1]),[]),Bs=Math.min,Ur=Math.max,Us=Math.round,nr=t=>({x:t,y:t}),Kx={left:"right",right:"left",bottom:"top",top:"bottom"}});function Jd(t,e,r){let{reference:i,floating:o}=t,s=Uo(e),n=sl(e),a=il(n),u=zs(e),d=s==="y",p=i.x+i.width/2-o.width/2,h=i.y+i.height/2-o.height/2,m=i[a]/2-o[a]/2,x;switch(u){case"top":x={x:p,y:i.y-o.height};break;case"bottom":x={x:p,y:i.y+i.height};break;case"right":x={x:i.x+i.width,y:h};break;case"left":x={x:i.x-o.width,y:h};break;default:x={x:i.x,y:i.y}}let C=zr(e);return C&&(x[n]+=m*(C==="end"?1:-1)*(r&&d?-1:1)),x}async function ep(t,e){var r;e===void 0&&(e={});let{x:i,y:o,platform:s,rects:n,elements:a,strategy:u}=t,{boundary:d="clippingAncestors",rootBoundary:p="viewport",elementContext:h="floating",altBoundary:m=!1,padding:x=0}=Bo(e,t),C=Zd(x),E=a[m?h==="floating"?"reference":"floating":h],P=mi(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(E)))==null||r?E:E.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:d,rootBoundary:p,strategy:u})),G=h==="floating"?{x:i,y:o,width:n.floating.width,height:n.floating.height}:n.reference,A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),_=await(s.isElement==null?void 0:s.isElement(A))&&await(s.getScale==null?void 0:s.getScale(A))||{x:1,y:1},ee=mi(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:G,offsetParent:A,strategy:u}):G);return{top:(P.top-ee.top+C.top)/_.y,bottom:(ee.bottom-P.bottom+C.bottom)/_.y,left:(P.left-ee.left+C.left)/_.x,right:(ee.right-P.right+C.right)/_.x}}function Qx(t,e,r){return(t?[...r.filter(o=>zr(o)===t),...r.filter(o=>zr(o)!==t)]:r.filter(o=>zs(o)===o)).filter(o=>t?zr(o)===t||(e?Yd(o)!==o:!1):!0)}var Gx,tp,rp,ip,sp=l(()=>{zo();zo();Gx=50,tp=async(t,e,r)=>{let{placement:i="bottom",strategy:o="absolute",middleware:s=[],platform:n}=r,a=n.detectOverflow?n:{...n,detectOverflow:ep},u=await(n.isRTL==null?void 0:n.isRTL(e)),d=await n.getElementRects({reference:t,floating:e,strategy:o}),{x:p,y:h}=Jd(d,i,u),m=i,x=0,C={};for(let k=0;k<s.length;k++){let E=s[k];if(!E)continue;let{name:P,fn:G}=E,{x:A,y:_,data:ee,reset:K}=await G({x:p,y:h,initialPlacement:i,placement:m,strategy:o,middlewareData:C,rects:d,platform:a,elements:{reference:t,floating:e}});p=A??p,h=_??h,C[P]={...C[P],...ee},K&&x<Gx&&(x++,typeof K=="object"&&(K.placement&&(m=K.placement),K.rects&&(d=K.rects===!0?await n.getElementRects({reference:t,floating:e,strategy:o}):K.rects),{x:p,y:h}=Jd(d,m,u)),k=-1)}return{x:p,y:h,placement:m,strategy:o,middlewareData:C}};rp=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,o;let{rects:s,middlewareData:n,placement:a,platform:u,elements:d}=e,{crossAxis:p=!1,alignment:h,allowedPlacements:m=tl,autoAlignment:x=!0,...C}=Bo(t,e),k=h!==void 0||m===tl?Qx(h||null,x,m):m,E=((r=n.autoPlacement)==null?void 0:r.index)||0,P=k[E];if(P==null)return{};if(a!==P)return{reset:{placement:k[0]}};let G=await u.detectOverflow(e,C),A=Xd(P,s,await(u.isRTL==null?void 0:u.isRTL(d.floating))),_=[G[zs(P)],G[A[0]],G[A[1]]],ee=[...((i=n.autoPlacement)==null?void 0:i.overflows)||[],{placement:P,overflows:_}],K=k[E+1];if(K)return{data:{index:E+1,overflows:ee},reset:{placement:K}};let Re=ee.map(Tt=>{let Is=zr(Tt.placement);return[Tt.placement,Is&&p?Tt.overflows.slice(0,2).reduce(($x,Dx)=>$x+Dx,0):Tt.overflows[0],Tt.overflows]}).sort((Tt,Is)=>Tt[1]-Is[1]),Do=((o=Re.filter(Tt=>Tt[2].slice(0,zr(Tt[0])?2:3).every(Is=>Is<=0))[0])==null?void 0:o[0])||Re[0][0];return Do!==a?{data:{index:E+1,overflows:ee},reset:{placement:Do}}:{}}}},ip=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:o,platform:s}=e,{mainAxis:n=!0,crossAxis:a=!1,limiter:u={fn:G=>{let{x:A,y:_}=G;return{x:A,y:_}}},...d}=Bo(t,e),p={x:r,y:i},h=await s.detectOverflow(e,d),m=Uo(o),x=rl(m),C=p[x],k=p[m],E=(G,A)=>Qd(A+h[G==="y"?"top":"left"],A,A-h[G==="y"?"bottom":"right"]);n&&(C=E(x,C)),a&&(k=E(m,k));let P=u.fn({...e,[x]:C,[m]:k});return{...P,data:{x:P.x-r,y:P.y-i,enabled:{[x]:n,[m]:a}}}}}}});function Ho(){return typeof window<"u"}function yi(t){return np(t)?(t.nodeName||"").toLowerCase():"#document"}function lt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ar(t){var e;return(e=(np(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function np(t){return Ho()?t instanceof Node||t instanceof lt(t).Node:!1}function qt(t){return Ho()?t instanceof Element||t instanceof lt(t).Element:!1}function wr(t){return Ho()?t instanceof HTMLElement||t instanceof lt(t).HTMLElement:!1}function op(t){return!Ho()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof lt(t).ShadowRoot}function Vs(t){let{overflow:e,overflowX:r,overflowY:i,display:o}=Kt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&o!=="inline"&&o!=="contents"}function ap(t){return/^(table|td|th)$/.test(yi(t))}function Hs(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}function Xi(t){let e=qt(t)?Kt(t):t;return gi(e.transform)||gi(e.translate)||gi(e.scale)||gi(e.rotate)||gi(e.perspective)||!jo()&&(gi(e.backdropFilter)||gi(e.filter))||Xx.test(e.willChange||"")||Yx.test(e.contain||"")}function lp(t){let e=Vr(t);for(;wr(e)&&!Yi(e);){if(Xi(e))return e;if(Hs(e))return null;e=Vr(e)}return null}function jo(){return ol==null&&(ol=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ol}function Yi(t){return/^(html|body|#document)$/.test(yi(t))}function Kt(t){return lt(t).getComputedStyle(t)}function js(t){return qt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Vr(t){if(yi(t)==="html")return t;let e=t.assignedSlot||t.parentNode||op(t)&&t.host||Ar(t);return op(e)?e.host:e}function cp(t){let e=Vr(t);return Yi(e)?(t.ownerDocument||t).body:wr(e)&&Vs(e)?e:cp(e)}function Vo(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let o=cp(t),s=o===((i=t.ownerDocument)==null?void 0:i.body),n=lt(o);if(s){let a=qo(n);return e.concat(n,n.visualViewport||[],Vs(o)?o:[],a&&r?Vo(a):[])}else return e.concat(o,Vo(o,[],r))}function qo(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}var Xx,Yx,gi,ol,nl=l(()=>{Xx=/transform|translate|scale|rotate|perspective|filter/,Yx=/paint|layout|strict|content/,gi=t=>!!t&&t!=="none"});function pp(t){let e=Kt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,o=wr(t),s=o?t.offsetWidth:r,n=o?t.offsetHeight:i,a=Us(r)!==s||Us(i)!==n;return a&&(r=s,i=n),{width:r,height:i,$:a}}function hp(t){return qt(t)?t:t.contextElement}function Zi(t){let e=hp(t);if(!wr(e))return nr(1);let r=e.getBoundingClientRect(),{width:i,height:o,$:s}=pp(e),n=(s?Us(r.width):r.width)/i,a=(s?Us(r.height):r.height)/o;return(!n||!Number.isFinite(n))&&(n=1),(!a||!Number.isFinite(a))&&(a=1),{x:n,y:a}}function fp(t){let e=lt(t);return!jo()||!e.visualViewport?Zx:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Jx(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===lt(t)}function qs(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let o=t.getBoundingClientRect(),s=hp(t),n=nr(1);e&&(i?qt(i)&&(n=Zi(i)):n=Zi(t));let a=Jx(s,r,i)?fp(s):nr(0),u=(o.left+a.x)/n.x,d=(o.top+a.y)/n.y,p=o.width/n.x,h=o.height/n.y;if(s&&i){let m=lt(s),x=qt(i)?lt(i):i,C=m,k=qo(C);for(;k&&x!==C;){let E=Zi(k),P=k.getBoundingClientRect(),G=Kt(k),A=P.left+(k.clientLeft+parseFloat(G.paddingLeft))*E.x,_=P.top+(k.clientTop+parseFloat(G.paddingTop))*E.y;u*=E.x,d*=E.y,p*=E.x,h*=E.y,u+=A,d+=_,C=lt(k),k=qo(C)}}return mi({width:p,height:h,x:u,y:d})}function Ko(t,e){let r=js(t).scrollLeft;return e?e.left+r:qs(Ar(t)).left+r}function mp(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Ko(t,r),o=r.top+e.scrollTop;return{x:i,y:o}}function eS(t){let{elements:e,rect:r,offsetParent:i,strategy:o}=t,s=o==="fixed",n=Ar(i),a=e?Hs(e.floating):!1;if(i===n||a&&s)return r;let u={scrollLeft:0,scrollTop:0},d=nr(1),p=nr(0),h=wr(i);if((h||!s)&&((yi(i)!=="body"||Vs(n))&&(u=js(i)),h)){let x=qs(i);d=Zi(i),p.x=x.x+i.clientLeft,p.y=x.y+i.clientTop}let m=n&&!h&&!s?mp(n,u):nr(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-u.scrollLeft*d.x+p.x+m.x,y:r.y*d.y-u.scrollTop*d.y+p.y+m.y}}function tS(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function rS(t){let e=js(t),r=t.ownerDocument.body,i=Ur(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Ur(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+Ko(t),n=-e.scrollTop;return Kt(r).direction==="rtl"&&(s+=Ur(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:n}}function sS(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",o=lt(t),s=Ar(t),n=o.visualViewport,a=s.clientWidth,u=s.clientHeight,d=0,p=0;if(n){let m=!jo()||e==="fixed";i?m||(d=-n.offsetLeft,p=-n.offsetTop):(a=n.width,u=n.height,m&&(d=n.offsetLeft,p=n.offsetTop))}if(Ko(s)<=0){let m=s.ownerDocument,x=m.body,C=getComputedStyle(x),k=m.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,E=Math.abs(s.clientWidth-x.clientWidth-k),P=getComputedStyle(s).scrollbarGutter==="stable both-edges"?E/2:E;P<=iS&&(a-=P)}return{width:a,height:u,x:d,y:p}}function oS(t,e){let r=qs(t,!0,e==="fixed"),i=r.top+t.clientTop,o=r.left+t.clientLeft,s=Zi(t),n=t.clientWidth*s.x,a=t.clientHeight*s.y,u=o*s.x,d=i*s.y;return{width:n,height:a,x:u,y:d}}function up(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=sS(t,r,e);else if(e==="document")i=rS(Ar(t));else if(qt(e))i=oS(e,r);else{let o=fp(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return mi(i)}function nS(t,e){let r=e.get(t);if(r)return r;let i=Vo(t,[],!1).filter(a=>qt(a)&&yi(a)!=="body"),o=null,s=Kt(t).position==="fixed",n=s?Vr(t):t;for(;qt(n)&&!Yi(n);){let a=Kt(n),u=Xi(n),d=o?o.position:s?"fixed":"";!u&&(d==="fixed"||d==="absolute"&&a.position==="static")?i=i.filter(h=>h!==n):o=a,n=Vr(n)}return e.set(t,i),i}function aS(t){let{element:e,boundary:r,rootBoundary:i,strategy:o}=t,n=[...r==="clippingAncestors"?Hs(e)?[]:nS(e,this._c):[].concat(r),i],a=up(e,n[0],o),u=a.top,d=a.right,p=a.bottom,h=a.left;for(let m=1;m<n.length;m++){let x=up(e,n[m],o);u=Ur(x.top,u),d=Bs(x.right,d),p=Bs(x.bottom,p),h=Ur(x.left,h)}return{width:d-h,height:p-u,x:h,y:u}}function lS(t){let{width:e,height:r}=pp(t);return{width:e,height:r}}function cS(t,e,r){let i=wr(e),o=Ar(e),s=r==="fixed",n=qs(t,!0,s,e),a={scrollLeft:0,scrollTop:0},u=nr(0);if((i||!s)&&((yi(e)!=="body"||Vs(o))&&(a=js(e)),i)){let m=qs(e,!0,s,e);u.x=m.x+e.clientLeft,u.y=m.y+e.clientTop}!i&&o&&(u.x=Ko(o));let d=o&&!i&&!s?mp(o,a):nr(0),p=n.left+a.scrollLeft-u.x-d.x,h=n.top+a.scrollTop-u.y-d.y;return{x:p,y:h,width:n.width,height:n.height}}function al(t){return Kt(t).position==="static"}function dp(t,e){if(!wr(t)||Kt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Ar(t)===r&&(r=r.ownerDocument.body),r}function gp(t,e){let r=lt(t);if(Hs(t))return r;if(!wr(t)){let o=Vr(t);for(;o&&!Yi(o);){if(qt(o)&&!al(o))return o;o=Vr(o)}return r}let i=dp(t,e);for(;i&&ap(i)&&al(i);)i=dp(i,e);return i&&Yi(i)&&al(i)&&!Xi(i)?r:i||lp(t)||r}function dS(t){return Kt(t).direction==="rtl"}var Zx,iS,uS,Wo,yp,bp,vp,xp=l(()=>{sp();zo();nl();Zx=nr(0);iS=25;uS=async function(t){let e=this.getOffsetParent||gp,r=this.getDimensions,i=await r(t.floating);return{reference:cS(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};Wo={convertOffsetParentRelativeRectToViewportRelativeRect:eS,getDocumentElement:Ar,getClippingRect:aS,getOffsetParent:gp,getElementRects:uS,getClientRects:tS,getDimensions:lS,getScale:Zi,isElement:qt,isRTL:dS},yp=rp,bp=ip,vp=(t,e,r)=>{let i=new Map,o=r??{},s={...Wo,...o.platform,_c:i};return tp(t,e,{...o,platform:s})}});function Sp(t){return pS(t)}function ll(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function pS(t){for(let e=t;e;e=ll(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=ll(t);e;e=ll(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 Ep=l(()=>{nl()});async function Cp(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},vp(t,e,{strategy:i.strategy,platform:{...Wo,getOffsetParent:o=>Wo.getOffsetParent(o,Sp)},middleware:[bp({crossAxis:!0}),yp({allowedPlacements:[i.placement]})]})}var Ap=l(()=>{"use strict";xp();Ep()});function Op(t,e){return(0,wp.property)({type:Object,converter:hS(t),hasChanged:Ws,...e??{}})}var wp,cl,hS,Go=l(()=>{"use strict";wp=c(F(),1);bi();cl=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},hS=t=>({fromAttribute:e=>{if(e==null)return Ks(t);try{return JSON.parse(e)}catch{return Ks(t)}},toAttribute:e=>JSON.stringify(e)})});function fS(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(!Ji(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(!Ji(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=n=>Object.keys(n).filter(a=>n[a]!=null),s=o(t);if(r=s.length,r!==o(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,s[i]))return!1;for(i=r;i--!==0;){let n=s[i];if(!Ji(t[n],e[n]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Ji(t,e){try{return fS(t,e)}catch{return!1}}function Ws(t,e){return!Ji(t,e)}function Ks(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Qo(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 bi=l(()=>{"use strict";Go()});var _p,ul,Rp=l(()=>{"use strict";bi();_p=c(F(),1),ul=t=>{let e=t??{};return(r,i)=>{var o;let s={hasChanged:Ws,attribute:!1,...e};(0,_p.property)(s)(r,i);let n=r.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(i,{selector:(o=e.selector)!==null&&o!==void 0?o:(a=>a[i]),store:e.store})}}});var Xo,dl=l(()=>{"use strict";Xo=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 Yo,Tp=l(()=>{"use strict";Yo=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),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let n of i)try{await n()}catch(a){o(a);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}});var Jo,Zo,kp=l(()=>{"use strict";Jo=c(y(),1);Go();Zo=class extends Jo.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return(0,Jo.adoptStyles)(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){cl(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 Lp(t,e,...r){var i;let o=t.querySelector(e);for(let s of r)o=(i=o?.shadowRoot)===null||i===void 0?void 0:i.querySelector(s);return o}var Ip=l(()=>{"use strict"});var vi,ts,Mp,$p,Dp,Np,Pp,es,ar,Fp=l(()=>{"use strict";vi=c(F(),1);Go();Tp();kp();Ip();ts=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},$p=Symbol("constructorPrototype"),Dp=Symbol("constructorName"),Np=Symbol("exportpartsDebouncer"),Pp=Symbol("dynamicDependenciesLoaded"),es=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};es.eventName="exportparts-updated";ar=class extends Zo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Mp]=new Yo(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[Np].run(()=>{var o,s;!((o=this.exportpartsPrefix)===null||o===void 0)&&o.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Dp]=this.constructor.name,this[$p]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Dp]&&Object.setPrototypeOf(this,this[$p])}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[Pp]||(r[Pp]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(es.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(es.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 es)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:o}=this.elementToFocus;if(i!=null){let s=[...o??[],i];r=Lp(this.shadowRoot,...s)}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(s=>s.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((o=this.customStylesheet)!==null&&o!==void 0?o:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(e){var r,i,o,s,n,a;let u=m=>m!=null&&m.trim().length>0,d=e.filter(u).map(m=>m.trim());if(d.length===0){this.exportparts=void 0;return}let p=new Set;for(let m of(s=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&s!==void 0?s:[]){let x=(n=(i=m.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&n!==void 0?n:[],C=(a=(o=m.getAttribute("exportparts"))===null||o===void 0?void 0:o.split(",").map(E=>E.split(":")[1]))!==null&&a!==void 0?a:[],k=[...x,...C].filter(u).map(E=>E.trim());for(let E of k)p.add(E)}if(p.size===0){this.exportparts=void 0;return}let h=[...p.values()].flatMap(m=>d.map(x=>`${m}:${x}--${m}`));this.exportparts=[...this.part,...h].join(", ")}};Mp=Np;ts([(0,vi.property)()],ar.prototype,"exportpartsPrefix",void 0);ts([Op([])],ar.prototype,"exportpartsPrefixes",void 0);ts([(0,vi.property)({reflect:!0})],ar.prototype,"exportparts",void 0);ts([(0,vi.property)()],ar.prototype,"customStylesheet",void 0);ts([(0,vi.property)()],ar.prototype,"elementToFocus",void 0);ts([(0,vi.state)()],ar.prototype,"useAdoptedStyleSheets",void 0)});function en(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var tn=l(()=>{"use strict"});var Gs,Hr,xi,mS,Bp,Up=l(()=>{"use strict";Fp();tn();bi();Gs=Symbol("internalReduxEventsUnsubscribers"),Hr=Symbol("internalStoresUnsubscribers"),xi=Symbol("internalStores"),mS=Qo(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(n){super.willUpdate(n),[...this.reduxConstructor.reduxReactiveProperties].some(a=>n.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[xi].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[xi].values()][0]}getStore(n){return n==null?this.getUnnamedStore():this[xi].get(n)}addStore(n,a){var u;a=(u=a??n.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(a),this[xi].set(a,n),this.subscribeToStore(a,n),this.updateFromStores()}removeStore(n){let a=typeof n=="string"?n:n.name;this.unsubscribeFromStore(a),this[xi].delete(a)}setupStores(){this.unsubscribeFromStores(),this[xi].forEach((n,a)=>this.subscribeToStore(a,n)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((n,a)=>{let u=this.constructor.getPropertyOptions(a);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:a)){let d=this.getStore(n.store);d&&(n.store?this[Hr].has(n.store):this[Hr].size>0)&&(this[a]=n.selector(d.getState(),this))}})}subscribeToStore(n,a){var u,d;this[Hr].set(n,a.subscribe(()=>this.updateFromStores())),this[Gs].set(n,[]),en(a)&&(!((u=a.deprecatedKeys)===null||u===void 0)&&u.length&&this.reduxConstructor.reduxProperties.forEach((p,h)=>{this.getStore(p.store)===a&&a.deprecatedKeys.includes(h)&&console.warn("Element",this,"is subscribed to deprecated key",h,"in store",a.name)}),a.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((p,h)=>{if(typeof this[h]=="function"&&(!p.store||a.name===p.store)){let m=x=>this[h](x);a.addEventListener(p.eventName,m),this[Gs].get(n).push(()=>a.removeEventListener(p.eventName,m))}}))),this.onStoreAvailable(n)}unsubscribeFromStores(){this[Hr].forEach((n,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(n){var a;this[Hr].has(n)&&this[Hr].get(n)(),this[Hr].delete(n),(a=this[Gs].get(n))===null||a===void 0||a.forEach(u=>u()),this[Gs].delete(n)}onStoreAvailable(n){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Hr,r=xi,i=Gs,o.reduxProperties=new Map,o.reduxReactiveProperties=new Set,o.reduxEventListeners=new Map,o}),Bp=class extends mS(ar){}});function Me(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 sn(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function hl(t,e,r){if(typeof t!="function")throw new Error(Me(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Me(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Me(1));return r(hl)(t,e)}let i=t,o=e,s=new Map,n=s,a=0,u=!1;function d(){n===s&&(n=new Map,s.forEach((E,P)=>{n.set(P,E)}))}function p(){if(u)throw new Error(Me(3));return o}function h(E){if(typeof E!="function")throw new Error(Me(4));if(u)throw new Error(Me(5));let P=!0;d();let G=a++;return n.set(G,E),function(){if(P){if(u)throw new Error(Me(6));P=!1,d(),n.delete(G),s=null}}}function m(E){if(!sn(E))throw new Error(Me(7));if(typeof E.type>"u")throw new Error(Me(8));if(typeof E.type!="string")throw new Error(Me(17));if(u)throw new Error(Me(9));try{u=!0,o=i(o,E)}finally{u=!1}return(s=n).forEach(G=>{G()}),E}function x(E){if(typeof E!="function")throw new Error(Me(10));i=E,m({type:rn.REPLACE})}function C(){let E=h;return{subscribe(P){if(typeof P!="object"||P===null)throw new Error(Me(11));function G(){let _=P;_.next&&_.next(p())}return G(),{unsubscribe:E(G)}},[zp](){return this}}}return m({type:rn.INIT}),{dispatch:m,subscribe:h,getState:p,replaceReducer:x,[zp]:C}}function bS(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:rn.INIT})>"u")throw new Error(Me(12));if(typeof r(void 0,{type:rn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Me(13))})}function fl(t){let e=Object.keys(t),r={};for(let n=0;n<e.length;n++){let a=e[n];typeof t[a]=="function"&&(r[a]=t[a])}let i=Object.keys(r),o,s;try{bS(r)}catch(n){s=n}return function(a={},u){if(s)throw s;let d=!1,p={};for(let h=0;h<i.length;h++){let m=i[h],x=r[m],C=a[m],k=x(C,u);if(typeof k>"u"){let E=u&&u.type;throw new Error(Me(14))}p[m]=k,d=d||k!==C}return d=d||i.length!==Object.keys(a).length,d?p:a}}function Qs(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function Vp(...t){return e=>(r,i)=>{let o=e(r,i),s=()=>{throw new Error(Me(15))},n={getState:o.getState,dispatch:(u,...d)=>s(u,...d)},a=t.map(u=>u(n));return s=Qs(...a)(o.dispatch),{...o,dispatch:s}}}function Hp(t){return sn(t)&&"type"in t&&typeof t.type=="string"}var gS,zp,pl,yS,rn,ml=l(()=>{gS=typeof Symbol=="function"&&Symbol.observable||"@@observable",zp=gS,pl=()=>Math.random().toString(36).substring(7).split("").join("."),yS={INIT:`@@redux/INIT${pl()}`,REPLACE:`@@redux/REPLACE${pl()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${pl()}`},rn=yS});function Wt(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}function gt(t){return t?Jp(t)||gn(t)||!!t[jp]||!!t[ln]?.[jp]||yn(t)||eo(t):!1}function Jp(t){if(!t||!_l(t))return!1;let e=is(t);if(e===null||e===mt[fn])return!0;let r=mt.hasOwnProperty.call(e,ln)&&e[ln];if(r===Object)return!0;if(!rs(r))return!1;let i=qp.get(r);return i===void 0&&(i=Function.toString.call(r),qp.set(r,i)),i===vS}function mn(t,e,r=!0){Js(t)===0?(r?Reflect.ownKeys(t):mt.keys(t)).forEach(o=>{e(o,t[o],t)}):t.forEach((i,o)=>e(o,i,t))}function Js(t){let e=t[He];return e?e.type_:gn(t)?1:yn(t)?2:eo(t)?3:0}function xS(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}function SS(t){let e=+t;return Number.isInteger(e)&&String(e)===t}function Sl(t,e){if(yn(t))return new Map(t);if(eo(t))return new Set(t);if(gn(t))return Array[fn].slice.call(t);let r=Jp(t);if(e===!0||e==="class_only"&&!r){let i=mt.getOwnPropertyDescriptors(t);delete i[He];let o=Reflect.ownKeys(i);for(let s=0;s<o.length;s++){let n=o[s],a=i[n];a[nn]===!1&&(a[nn]=!0,a[vl]=!0),(a.get||a.set)&&(i[n]={[vl]:!0,[nn]:!0,[cn]:a[cn],[Xs]:t[n]})}return mt.create(is(t),i)}else{let i=is(t);if(i!==null&&r)return{...t};let o=mt.create(i);return mt.assign(o,t)}}function bn(t,e=!1){return vn(t)||lr(t)||!gt(t)||(Js(t)>1&&mt.defineProperties(t,{set:on,add:on,clear:on,delete:on}),mt.freeze(t),e&&mn(t,(r,i)=>{bn(i,!0)},!1)),t}function ES(){Wt(2)}function vn(t){return t===null||!_l(t)?!0:mt.isFrozen(t)}function Si(t){let e=eh[t];return e||Wt(0,t),e}function Gp(t,e){e&&(t.patchPlugin_=Si(El),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Cl(t){Al(t),t.drafts_.forEach(AS),t.drafts_=null}function Al(t){t===Ys&&(Ys=t.parent_)}function AS(t){let e=t[He];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Xp(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[He].modified_&&(Cl(e),Wt(4)),gt(t)&&(t=Yp(e,t));let{patchPlugin_:o}=e;o&&o.generateReplacementPatches_(r[He].base_,t,e)}else t=Yp(e,r);return wS(e,t,!0),Cl(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Zp?t:void 0}function Yp(t,e){if(vn(e))return e;let r=e[He];if(!r)return pn(e,t.handledSet_,t);if(!xn(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);sh(r,t)}return r.copy_}function wS(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&bn(e,r)}function rh(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}function ih(t,e,r,i){let o=Or(t),s=t.type_;if(i!==void 0&&xl(o,i,s)===e){un(o,i,r,s);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;mn(o,(u,d)=>{if(lr(d)){let p=a.get(d)||[];p.push(u),a.set(d,p)}})}let n=t.draftLocations_.get(e)??OS;for(let a of n)un(o,a,r,s)}function _S(t,e,r){t.callbacks_.push(function(o){let s=e;if(!s||!xn(s,o))return;o.mapSetPlugin_?.fixSetContents(s);let n=Rl(s);ih(t,s.draft_??s,n,r),sh(s,o)})}function sh(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let o=i.getPath(t);o&&i.generatePatches_(t,o,e)}rh(t)}}function RS(t,e,r){let{scope_:i}=t;if(lr(r)){let o=r[He];xn(o,i)&&o.callbacks_.push(function(){an(t);let n=Rl(o);ih(t,r,n,e)})}else gt(r)&&t.callbacks_.push(function(){let s=Or(t);t.type_===3?s.has(r)&&pn(r,i.handledSet_,i):xl(s,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&pn(xl(t.copy_,e,t.type_),i.handledSet_,i)})}function pn(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||lr(t)||e.has(t)||!gt(t)||vn(t)||(e.add(t),mn(t,(i,o)=>{if(lr(o)){let s=o[He];if(xn(s,r)){let n=Rl(s);un(t,i,n,t.type_),rh(s)}}else gt(o)&&pn(o,e,r)})),t}function TS(t,e){let r=gn(t),i={type_:r?1:0,scope_:e?e.scope_:th(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},o=i,s=hn;r&&(o=[i],s=Zs);let{revoke:n,proxy:a}=Proxy.revocable(o,s);return i.draft_=a,i.revoke_=n,[a,i]}function bl(t,e){let r=t[He];return(r?Or(r):t)[e]}function kS(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||!gt(r)||r[He]?!1:t.baseRefs_.has(r)}function LS(t,e,r){let i=oh(e,r);return i?Xs in i?i[Xs]:i.get?.call(t.draft_):void 0}function oh(t,e){if(!(e in t))return;let r=is(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=is(r)}}function wl(t){t.modified_||(t.modified_=!0,t.parent_&&wl(t.parent_))}function an(t){t.copy_||(t.assigned_=new Map,t.copy_=Sl(t.base_,t.scope_.immer_.useStrictShallowCopy_))}function Ol(t,e,r,i){let[o,s]=yn(e)?Si(dn).proxyMap_(e,r):eo(e)?Si(dn).proxySet_(e,r):TS(e,r);return(r?.scope_??th()).drafts_.push(o),s.callbacks_=r?.callbacks_??[],s.key_=i,r&&i!==void 0?_S(r,s,i):s.callbacks_.push(function(u){u.mapSetPlugin_?.fixSetContents(s);let{patchPlugin_:d}=u;s.modified_&&d&&d.generatePatches_(s,[],u)}),o}function nh(t){return lr(t)||Wt(10,t),ah(t)}function ah(t){if(!gt(t)||vn(t))return t;let e=t[He],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=Sl(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=Sl(t,!0);let o=r;return eo(r)&&(r=new Set),mn(o,(s,n)=>{un(r,s,ah(n))},i),e&&(e.finalized_=!1),r}var Zp,jp,He,mt,is,ln,fn,vl,cn,nn,Xs,lr,vS,qp,gl,xl,un,gn,yn,eo,_l,rs,yl,Or,Rl,on,dn,El,Kp,eh,Wp,Ys,th,CS,Qp,xn,OS,hn,Zs,IS,$S,x0,DS,Tl,lh=l(()=>{Zp=Symbol.for("immer-nothing"),jp=Symbol.for("immer-draftable"),He=Symbol.for("immer-state");mt=Object,is=mt.getPrototypeOf,ln="constructor",fn="prototype",vl="configurable",cn="enumerable",nn="writable",Xs="value",lr=t=>!!t&&!!t[He];vS=mt[fn][ln].toString(),qp=new WeakMap;gl=(t,e,r=Js(t))=>r===2?t.has(e):mt[fn].hasOwnProperty.call(t,e),xl=(t,e,r=Js(t))=>r===2?t.get(e):t[e],un=(t,e,r,i=Js(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};gn=Array.isArray,yn=t=>t instanceof Map,eo=t=>t instanceof Set,_l=t=>typeof t=="object",rs=t=>typeof t=="function",yl=t=>typeof t=="boolean";Or=t=>t.copy_||t.base_,Rl=t=>t.modified_?t.copy_:t.base_;on={[Xs]:ES};dn="MapSet",El="Patches",Kp="ArrayMethods",eh={};Wp=t=>!!eh[t],th=()=>Ys,CS=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Wp(dn)?Si(dn):void 0,arrayMethodsPlugin_:Wp(Kp)?Si(Kp):void 0});Qp=t=>Ys=CS(Ys,t);xn=(t,e)=>t.scope_===e,OS=[];hn={get(t,e){if(e===He)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let o=Or(t);if(!gl(o,e,t.type_))return LS(t,o,e);let s=o[e];if(t.finalized_||!gt(s)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&SS(e))return s;if(s===bl(t.base_,e)||kS(t,e,s)){an(t);let n=t.type_===1?+e:e,a=Ol(t.scope_,s,t,n);return t.copy_[n]=a}return s},has(t,e){return e in Or(t)},ownKeys(t){return Reflect.ownKeys(Or(t))},set(t,e,r){let i=oh(Or(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let o=bl(Or(t),e),s=o?.[He];if(s&&s.base_===r)return t.copy_[e]=r,t.assigned_.delete(e),!0;if(xS(r,o)&&(r!==void 0||gl(t.base_,e,t.type_)))return!0;an(t),wl(t)}return t.copy_[e]===r&&(r!==void 0||gl(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),RS(t,e,r)),!0},deleteProperty(t,e){return an(t),bl(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),wl(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=Or(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[nn]:!0,[vl]:t.type_!==1||e!=="length",[cn]:i[cn],[Xs]:r[e]}},defineProperty(){Wt(11)},getPrototypeOf(t){return is(t.base_)},setPrototypeOf(){Wt(12)}},Zs={};for(let t in hn){let e=hn[t];Zs[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}Zs.deleteProperty=function(t,e){return Zs.set.call(this,t,e,void 0)};Zs.set=function(t,e,r){return hn.set.call(this,t[0],e,r,t[0])};IS=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(rs(e)&&!rs(r)){let s=r;r=e;let n=this;return function(u=s,...d){return n.produce(u,p=>r.call(this,p,...d))}}rs(r)||Wt(6),i!==void 0&&!rs(i)&&Wt(7);let o;if(gt(e)){let s=Qp(this),n=Ol(s,e,void 0),a=!0;try{o=r(n),a=!1}finally{a?Cl(s):Al(s)}return Gp(s,i),Xp(o,s)}else if(!e||!_l(e)){if(o=r(e),o===void 0&&(o=e),o===Zp&&(o=void 0),this.autoFreeze_&&bn(o,!0),i){let s=[],n=[];Si(El).generateReplacementPatches_(e,o,{patches_:s,inversePatches_:n}),i(s,n)}return o}else Wt(1,e)},this.produceWithPatches=(e,r)=>{if(rs(e))return(n,...a)=>this.produceWithPatches(n,u=>e(u,...a));let i,o;return[this.produce(e,r,(n,a)=>{i=n,o=a}),i,o]},yl(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),yl(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),yl(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){gt(t)||Wt(8),lr(t)&&(t=nh(t));let e=Qp(this),r=Ol(e,t,void 0);return r[He].isManual_=!0,Al(e),r}finishDraft(t,e){let r=t&&t[He];(!r||!r.isManual_)&&Wt(9);let{scope_:i}=r;return Gp(i,e),Xp(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let o=e[r];if(o.path.length===0&&o.op==="replace"){t=o.value;break}}r>-1&&(e=e.slice(r+1));let i=Si(El).applyPatches_;return lr(t)?i(t,e):this.produce(t,o=>i(o,e))}};$S=globalThis.Iterator,x0=typeof $S?.from=="function",DS=new IS,Tl=DS.produce});function ch(t){return({dispatch:r,getState:i})=>o=>s=>typeof s=="function"?s(r,i,t):o(s)}var uh,dh,ph=l(()=>{uh=ch(),dh=ch});function jr(t,e){function r(...i){if(e){let o=e(...i);if(!o)throw new Error(cr(0));return{type:t,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>Hp(i)&&i.type===t,r}function hh(t){return gt(t)?Tl(t,()=>{}):t}function Sn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function NS(t){return typeof t=="boolean"}function bh(t){let e=FS(),{reducer:r=void 0,middleware:i,devTools:o=!0,duplicateMiddlewareCheck:s=!0,preloadedState:n=void 0,enhancers:a=void 0}=t||{},u;if(typeof r=="function")u=r;else if(sn(r))u=fl(r);else throw new Error(cr(1));let d;typeof i=="function"?d=i(e):d=e();let p=Qs;o&&(p=PS({trace:!1,...typeof o=="object"&&o}));let h=Vp(...d),m=VS(h),x=typeof a=="function"?a(m):m(),C=p(...x);return hl(u,n,C)}function vh(t){let e={},r=[],i,o={addCase(s,n){let a=typeof s=="string"?s:s.type;if(!a)throw new Error(cr(28));if(a in e)throw new Error(cr(29));return e[a]=n,o},addAsyncThunk(s,n){return n.pending&&(e[s.pending.type]=n.pending),n.rejected&&(e[s.rejected.type]=n.rejected),n.fulfilled&&(e[s.fulfilled.type]=n.fulfilled),n.settled&&r.push({matcher:s.settled,reducer:n.settled}),o},addMatcher(s,n){return r.push({matcher:s,reducer:n}),o},addDefaultCase(s){return i=s,o}};return t(o),[e,r,i]}function HS(t){return typeof t=="function"}function jS(t,e){let[r,i,o]=vh(e),s;if(HS(t))s=()=>hh(t());else{let a=hh(t);s=()=>a}function n(a=s(),u){let d=[r[u.type],...i.filter(({matcher:p})=>p(u)).map(({reducer:p})=>p)];return d.filter(p=>!!p).length===0&&(d=[o]),d.reduce((p,h)=>{if(h)if(lr(p)){let m=h(p,u);return m===void 0?p:m}else{if(gt(p))return Tl(p,m=>h(m,u));{let m=h(p,u);if(m===void 0){if(p===null)return p;throw new Error(cr(9))}return m}}return p},a)}return n.getInitialState=s,n}function KS(...t){return e=>t.some(r=>qS(r,e))}function ZS(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function JS(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}function eE(t,e){return`${t}/${e}`}function tE({creators:t}={}){let e=t?.asyncThunk?.[xh];return function(i){let{name:o,reducerPath:s=o}=i;if(!o)throw new Error(cr(11));typeof process<"u";let n=(typeof i.reducers=="function"?i.reducers(iE()):i.reducers)||{},a=Object.keys(n),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(A,_){let ee=typeof A=="string"?A:A.type;if(!ee)throw new Error(cr(12));if(ee in u.sliceCaseReducersByType)throw new Error(cr(13));return u.sliceCaseReducersByType[ee]=_,d},addMatcher(A,_){return u.sliceMatchers.push({matcher:A,reducer:_}),d},exposeAction(A,_){return u.actionCreators[A]=_,d},exposeCaseReducer(A,_){return u.sliceCaseReducersByName[A]=_,d}};a.forEach(A=>{let _=n[A],ee={reducerName:A,type:eE(o,A),createNotation:typeof i.reducers=="function"};oE(_)?aE(ee,_,d,e):sE(ee,_,d)});function p(){let[A={},_=[],ee=void 0]=typeof i.extraReducers=="function"?vh(i.extraReducers):[i.extraReducers],K={...A,...u.sliceCaseReducersByType};return jS(i.initialState,Re=>{for(let Ve in K)Re.addCase(Ve,K[Ve]);for(let Ve of u.sliceMatchers)Re.addMatcher(Ve.matcher,Ve.reducer);for(let Ve of _)Re.addMatcher(Ve.matcher,Ve.reducer);ee&&Re.addDefaultCase(ee)})}let h=A=>A,m=new Map,x=new WeakMap,C;function k(A,_){return C||(C=p()),C(A,_)}function E(){return C||(C=p()),C.getInitialState()}function P(A,_=!1){function ee(Re){let Ve=Re[A];return typeof Ve>"u"&&_&&(Ve=Sn(x,ee,E)),Ve}function K(Re=h){return Sn(Sn(m,_,()=>new WeakMap),Re,()=>{let Ve={};for(let[Do,Tt]of Object.entries(i.selectors??{}))Ve[Do]=rE(Tt,Re,()=>Sn(x,Re,E),_);return Ve})}return{reducerPath:A,getSelectors:K,get selectors(){return K(ee)},selectSlice:ee}}let G={name:o,reducer:k,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:E,...P(s),injectInto(A,{reducerPath:_,...ee}={}){let K=_??s;return A.inject({reducerPath:K,reducer:k},ee),{...G,...P(K,!0)}}};return G}}function rE(t,e,r,i){function o(s,...n){let a=e(s);return typeof a>"u"&&i&&(a=r()),t(a,...n)}return o.unwrapped=t,o}function iE(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function sE({type:t,reducerName:e,createNotation:r},i,o){let s,n;if("reducer"in i){if(r&&!nE(i))throw new Error(cr(17));s=i.reducer,n=i.prepare}else s=i;o.addCase(t,s).exposeCaseReducer(e,s).exposeAction(e,n?jr(t,n):jr(t))}function oE(t){return t._reducerDefinitionType==="asyncThunk"}function nE(t){return t._reducerDefinitionType==="reducerWithPrepare"}function aE({type:t,reducerName:e},r,i,o){if(!o)throw new Error(cr(18));let{payloadCreator:s,fulfilled:n,pending:a,rejected:u,settled:d,options:p}=r,h=o(t,s,p);i.exposeAction(e,h),n&&i.addCase(h.fulfilled,n),a&&i.addCase(h.pending,a),u&&i.addCase(h.rejected,u),d&&i.addMatcher(h.settled,d),i.exposeCaseReducer(e,{fulfilled:n||En,pending:a||En,rejected:u||En,settled:d||En})}function En(){}function cr(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var PS,MS,yh,FS,BS,fh,US,zS,VS,qS,WS,GS,QS,kl,mh,XS,gh,YS,xh,R0,Sh,Eh,Ch,Ah,T0,k0,L0,I0,wh,Ll,lE,$0,cE,Oh=l(()=>{ml();lh();ph();ml();PS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Qs:Qs.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;MS=t=>t&&typeof t.match=="function";yh=class to extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,to.prototype)}static get[Symbol.species](){return to}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new to(...e[0].concat(this)):new to(...e.concat(this))}};FS=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:o=!0,actionCreatorCheck:s=!0}=e??{},n=new yh;return r&&(NS(r)?n.push(uh):n.push(dh(r.extraArgument))),n},BS="RTK_autoBatch",fh=t=>e=>{setTimeout(e,t)},US=(t,e)=>r=>{let i=!1,o,s,n=()=>{i||(i=!0,cancelAnimationFrame(o),clearTimeout(s),r())};o=t(n),s=setTimeout(n,e)},zS=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),o=!0,s=!1,n=!1,a=new Set,u=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?US(window.requestAnimationFrame,100):fh(10):t.type==="callback"?t.queueNotification:fh(t.timeout),d=()=>{n=!1,s&&(s=!1,a.forEach(p=>p()))};return Object.assign({},i,{subscribe(p){let h=()=>o&&p(),m=i.subscribe(h);return a.add(p),()=>{m(),a.delete(p)}},dispatch(p){try{return o=!p?.meta?.[BS],s=!o,s&&(n||(n=!0,u(d))),i.dispatch(p)}finally{o=!0}}})},VS=t=>function(r){let{autoBatch:i=!0}=r??{},o=new yh(t);return i&&o.push(zS(typeof i=="object"?i:void 0)),o};qS=(t,e)=>MS(t)?t.match(e):t(e);WS="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",GS=(t=21)=>{let e="",r=t;for(;r--;)e+=WS[Math.random()*64|0];return e},QS=["name","message","stack","code"],kl=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},mh=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},XS=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of QS)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},gh="External signal was aborted",YS=(()=>{function t(e,r,i){let o=jr(e+"/fulfilled",(u,d,p,h)=>({payload:u,meta:{...h||{},arg:p,requestId:d,requestStatus:"fulfilled"}})),s=jr(e+"/pending",(u,d,p)=>({payload:void 0,meta:{...p||{},arg:d,requestId:u,requestStatus:"pending"}})),n=jr(e+"/rejected",(u,d,p,h,m)=>({payload:h,error:(i&&i.serializeError||XS)(u||"Rejected"),meta:{...m||{},arg:p,requestId:d,rejectedWithValue:h!==void 0,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"}}));function a(u,{signal:d}={}){return(p,h,m)=>{let x=i?.idGenerator?i.idGenerator(u):GS(),C=new AbortController,k,E;function P(A){E=A,C.abort()}d&&(d.aborted?P(gh):d.addEventListener("abort",()=>P(gh),{once:!0}));let G=(async function(){let A;try{let _=i?.condition?.(u,{getState:h,extra:m});if(JS(_)&&(_=await _),_===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(C.signal.aborted)throw{name:"AbortError",message:E||"Aborted"};let ee=new Promise((K,Re)=>{k=()=>{Re({name:"AbortError",message:E||"Aborted"})},C.signal.addEventListener("abort",k,{once:!0})});p(s(x,u,i?.getPendingMeta?.({requestId:x,arg:u},{getState:h,extra:m}))),A=await Promise.race([ee,Promise.resolve(r(u,{dispatch:p,getState:h,extra:m,requestId:x,signal:C.signal,abort:P,rejectWithValue:((K,Re)=>new kl(K,Re)),fulfillWithValue:((K,Re)=>new mh(K,Re))})).then(K=>{if(K instanceof kl)throw K;return K instanceof mh?o(K.payload,x,u,K.meta):o(K,x,u)})])}catch(_){A=_ instanceof kl?n(null,x,u,_.payload,_.meta):n(_,x,u)}finally{k&&C.signal.removeEventListener("abort",k)}return i&&!i.dispatchConditionRejection&&n.match(A)&&A.meta.condition||p(A),A})();return Object.assign(G,{abort:P,requestId:x,arg:u,unwrap(){return G.then(ZS)}})}}return Object.assign(a,{pending:s,rejected:n,fulfilled:o,settled:KS(n,o),typePrefix:e})}return t.withTypes=()=>t,t})();xh=Symbol.for("rtk-slice-createasyncthunk"),R0={[xh]:YS};Sh=tE();Eh="listener",Ch="completed",Ah="cancelled",T0=`task-${Ah}`,k0=`task-${Ch}`,L0=`${Eh}-${Ah}`,I0=`${Eh}-${Ch}`,{assign:wh}=Object,Ll="listenerMiddleware",lE=wh(jr(`${Ll}/add`),{withTypes:()=>lE}),$0=jr(`${Ll}/removeAll`),cE=wh(jr(`${Ll}/remove`),{withTypes:()=>cE})});var uE,Cn,_h=l(()=>{"use strict";bi();uE=Qo(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)}}}),Cn=class extends uE(Object){}});var Rh,Th=l(()=>{"use strict";Oh();tn();dl();_h();bi();window.ftReduxStores||(window.ftReduxStores={});Rh=class t extends Cn{static get(e){var r;let i=typeof e=="string"?e:e.name,o=typeof e=="string"?void 0:e,s=window.ftReduxStores[i];if(en(s))return s;if(o==null)return;let n=Sh({...o,reducers:(r=o.reducers)!==null&&r!==void 0?r:{}}),a=bh({reducer:(u,d)=>{if(d.type==="CLEAR_FT_REDUX_STORE"){let p=Ks(n.getInitialState());for(let h of d.keeping)p[h]=(u??p)[h];return p}else if(typeof d.type=="string"&&d.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...u,...d.overwrites};return n.reducer(u,d)}});return window.ftReduxStores[o.name]=new t(n,a,o.eventBus,o.deprecatedKeys)}constructor(e,r,i,o){super(),this.reduxSlice=e,this.reduxStore=r,this.deprecatedKeys=o,this.isFtReduxStore=!0,this.commands=new Xo,this.injectInto=(n,a)=>this.reduxSlice.injectInto(n,a),this.selectSlice=n=>this.reduxSlice.selectSlice(n);let s=n=>n!=null?JSON.parse(JSON.stringify(n)):n;this.actions=new Proxy(this.reduxSlice.actions,{get:(n,a,u)=>{let d=a,p=n[d];return p?(...h)=>{let m=p(...h.map(s));return this.reduxStore.dispatch(m),m}:h=>{let m=d,x=this.getState()[m];Ji(x,h)||this.setState({[m]:s(h)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}}});var kh=l(()=>{"use strict";bi()});var Lh=l(()=>{"use strict"});var Ih=l(()=>{"use strict";Rp();dl();Up();Th();tn();kh();Lh()});var An,$h=l(()=>{"use strict";An=class{static format(e,r,i,o,s){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,o,!!s)):this.getIntlDateTime(e,r,i,o,!!s)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,o,s){let n=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(n),u=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(n);return s?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 wn,dE,ur,ro,pE,S,je=l(()=>{"use strict";wn=c(f()),dE="ft-app-info",ur=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ur.eventName="authentication-change";ro=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ro.eventName="ui-locale-changed";pE={session:(t,e)=>{(0,wn.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>S.dispatchEvent(new ur(e.payload)),0))}},S=wn.FtReduxStore.get({name:dE,reducers:pE,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}})});var Il,Dh,On,cA,Ph=l(()=>{"use strict";Il=c(F());Ih();$h();je();Dh=c(f()),On=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},cA=(0,Dh.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(S)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var o,s;return((s=(o=this.metadataDescriptors.find(a=>a.key===i))===null||o===void 0?void 0:o.date)!==null&&s!==void 0?s:!1)?a=>An.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return On([(0,Il.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),On([(0,Il.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),On([ul({store:S.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),On([ul({store:S.name})],e.prototype,"uiLocale",void 0),e})});var $l=l(()=>{});var Mh,Nh,Fh,qr,Bh,Uh,zh,Ei,Vh,Hh,jh,qh,Kh,Wh,Gh,Qh,Xh,_n,Yh,Zh,ss,Jh,Rn,ef,tf,dr,os,rf,he,Lt,sf,Dl=l(()=>{(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Mh||(Mh={}));(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Nh||(Nh={}));(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"})(Fh||(Fh={}));(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"})(Bh||(Bh={}));(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Uh||(Uh={}));(function(t){t.PUBLISHED="PUBLISHED",t.AI="AI"})(zh||(zh={}));(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"})(Ei||(Ei={}));(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Vh||(Vh={}));(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Hh||(Hh={}));(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER",t.DOC_DIFF="DOC_DIFF"})(jh||(jh={}));(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"})(qh||(qh={}));(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Kh||(Kh={}));(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Wh||(Wh={}));(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Gh||(Gh={}));(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Qh||(Qh={}));(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"})(Xh||(Xh={}));(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(_n||(_n={}));(function(t){t.ASC="ASC",t.DESC="DESC"})(Yh||(Yh={}));(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Zh||(Zh={}));(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(ss||(ss={}));(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Jh||(Jh={}));(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Rn||(Rn={}));(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"})(ef||(ef={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(tf||(tf={}));(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(dr||(dr={}));(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(os||(os={}));(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(rf||(rf={}));(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"})(he||(he={}));(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"})(sf||(sf={}))});var of,nf,af,lf,cf,uf,df,pf,hf,ff,mf,gf,yf=l(()=>{(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(of||(of={}));(function(t){t.VALID="VALID",t.INVALID="INVALID"})(nf||(nf={}));(function(t){t.JSON="JSON",t.TEXT="TEXT"})(af||(af={}));(function(t){t.JSON="JSON",t.TEXT="TEXT"})(lf||(lf={}));(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(cf||(cf={}));(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(uf||(uf={}));(function(t){t.CHAT="CHAT",t.COMPLETION="COMPLETION",t.RAG="RAG",t.AGENT="AGENT"})(df||(df={}));(function(t){t.TEXT="TEXT",t.HTML="HTML"})(pf||(pf={}));(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(hf||(hf={}));(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(ff||(ff={}));(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"})(mf||(mf={}));(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(gf||(gf={}))});var bf=l(()=>{Dl();yf()});function vf(t,e){return t===e||(hE[t]??[]).some(r=>vf(r,e))}function io(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=>vf(i,e))}function xf(t,...e){return t==null?!1:e.some(r=>io(t,r))}var hE,Sf=l(()=>{Dl();hE={[he.PERSONAL_BOOK_SHARE_USER]:[he.PERSONAL_BOOK_USER],[he.HTML_EXPORT_USER]:[he.PERSONAL_BOOK_USER],[he.PDF_EXPORT_USER]:[he.PERSONAL_BOOK_USER],[he.KHUB_ADMIN]:[he.CONTENT_PUBLISHER],[he.ADMIN]:[he.KHUB_ADMIN,he.USERS_ADMIN,he.PORTAL_ADMIN,he.BEHAVIOR_DATA_USER],[he.GENERATIVE_AI_EXPORT_USER]:[he.GENERATIVE_AI_USER]}});var Ef=l(()=>{});var Kr=l(()=>{$l();bf();Sf();Ef();$l()});var Ci,Pl=l(()=>{"use strict";je();Ci=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=S.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=S.subscribe(()=>{i=t.get(e),i&&(o(),r(i))})}})}}});var ns,Ml=l(()=>{"use strict";Pl();ns=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ci.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ci.await()}}});var Nl,qe,Wr=l(()=>{"use strict";Nl=c(f());Ml();qe=class extends ns{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(s,n)=>typeof n!="object"||n==null||Array.isArray(n)?n:Object.fromEntries(Object.entries(n).sort(([a],[u])=>a.localeCompare(u)));let o=this.constructor;o.commonCache=(i=o.commonCache)!==null&&i!==void 0?i:new Nl.CacheRegistry,this.cache=e?o.commonCache:new Nl.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 Tn,Fl=l(()=>{"use strict";je();Kr();Wr();Tn=class extends qe{async listMySearches(){let{session:e}=S.getState();return io(e,he.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}}});var kn,Bl=l(()=>{"use strict";je();Wr();kn=class extends qe{async listMyBookmarks(){let e=S.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}}});var Ln,Cf=l(()=>{"use strict";je();Wr();Ln=class extends qe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=S.getState().session;return!!e?.sessionAuthenticated}}});var In,Af=l(()=>{"use strict";Wr();je();In=class extends qe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=S.getState().session;return!!e?.sessionAuthenticated}}});var $n,fE,mE,_f,Ul,zl,wf,Of,Xe,Vl,gE,Hl=l(()=>{"use strict";Kr();$n=c(f());Fl();Bl();je();Cf();Af();fE="ft-user-assets",mE={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;zl(t,r,[...Ul(t,r),o]),wf(t,r,1,i),Of(t,o)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;zl(t,r,Ul(t,r).map(o=>o.id===i.id?i:o)),Of(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:o}=e.payload;zl(t,r,Ul(t,r).filter(s=>s.id!==o)),wf(t,r,-1,i)}},_f={[Lt.SEARCHES]:"savedSearches",[Lt.BOOKMARKS]:"bookmarks",[Lt.BOOKS]:void 0,[Lt.COLLECTIONS]:void 0},Ul=(t,e)=>{var r;let i=_f[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},zl=(t,e,r)=>{let i=_f[e];i&&(t[i]=r)},wf=(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 s=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,s+r)}},Of=(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)},Xe=$n.FtReduxStore.get({name:fE,reducers:mE,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Lt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Vl=class{constructor(e=new Ln,r=new In){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=S.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new kn,this.savedSearchesService=new Tn,S.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=S.getState();(0,$n.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(),Xe.actions.clearAssetCount(),Xe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Xe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Xe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Xe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Xe.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Xe.getState().assetCounts.allAsset[e]!==r.count&&Xe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Xe.getState().assetCounts.bookmarkByMap[e]!==r.count&&Xe.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Xe.getState().assetCounts.bookmarkByMap).length!==0;e===Lt.BOOKMARKS&&r&&Xe.actions.clearBookmarkCountByMap(),Xe.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;Xe.actions.bookmarks(r)}}},gE=new Vl;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=gE)});var Rf=l(()=>{"use strict";Kr();Hl()});var jl,Tf=l(()=>{"use strict";je();jl=class{addCommand(e,r=!1){S.commands.add(e,r)}consumeCommand(e){return S.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new jl});var It,kf,as,yE,Dn,ls,Pn,Lf=l(()=>{"use strict";je();It=c(f());Wr();as=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},yE=Symbol("clearAfterUnitTest"),Dn=class extends(0,It.withEventBus)(qe){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[kf]=()=>{this.defaultMessages={},this.cache=new It.CacheRegistry,this.listeners={}},this.currentUiLocale=S.getState().uiLocale,S.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=S.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,It.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 s=e.toLowerCase(),n=this.resolveContext(s);return new It.ParametrizedLabelResolver((o=this.defaultMessages[s])!==null&&o!==void 0?o:{},n).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 It.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 as({loadedContexts:e})),this.dispatchEvent(new as({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new as({loadedContexts:[e]})),this.dispatchEvent(new as({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,It.delay)(0).then(()=>i()).catch(()=>null)))}};kf=yE;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Dn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Dn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});ls=window.FluidTopicsI18nService,Pn=window.FluidTopicsCustomI18nService});var If,ql,$f=l(()=>{"use strict";If=c(f()),ql=class{highlightHtml(e,r,i){(0,If.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new ql});var Df,Kl,Pf=l(()=>{"use strict";Df=c(f());je();Kl=class{isDate(e){var r,i,o,s;return(s=(i=((o=(r=S.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&o!==void 0?o:[]).find(a=>a.key===e))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1}format(e,r){var i,o,s,n;if(e==null)return"";try{return Df.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:S.getState().uiLocale,(o=r?.longFormat)!==null&&o!==void 0?o:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(n=r?.onlyTime)!==null&&n!==void 0?n:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new Kl});var Mf,_r,Wl=l(()=>{"use strict";Mf=c(f());je();_r=class{static get(e,r,{baseUrl:i,localesConfiguration:o,availableContentLocales:s}=S.getState()){var n;if(!r||s.length>0&&!s.some(a=>a.lang===r)){let a=o?.defaultLocales.defaultContentLocale;r=a?`${a.lang}-${a.region}`:(n=s[0])===null||n===void 0?void 0:n.lang}return new Mf.SearchPlaceConverter(i,e??20,o?.allLanguagesAllowed,r,s)}}});var Mn,Nf=l(()=>{"use strict";Wr();Mn=class extends qe{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(s=>typeof s=="object"&&s!=null&&!Array.isArray(s)?this.sortEventArrays(s):s).sort((s,n)=>typeof s=="object"&&s!==null&&"key"in s?s.key.localeCompare(n.key):typeof s=="string"&&typeof n=="string"?s.localeCompare(n):String(s).localeCompare(String(n)))]:typeof o=="object"&&o!==null?[i,this.sortEventArrays(o)]:[i,o]);return Object.fromEntries(r)}sendEvents(e,r){let i="anything not undefined";return document.dispatchEvent(new CustomEvent("ft:analytics:userevents",{detail:e})),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 Gl,Ff=l(()=>{"use strict";Wl();Gl=class{urlToSearchRequest(e){return _r.get().parse(e)}searchRequestToUrl(e){return _r.get().serialize(e)}};window.FluidTopicsUrlService=new Gl});var Ai,wi,Bf=l(()=>{"use strict";Ai=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Ai.eventName="before-location-change";wi=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};wi.eventName="change"});var Ql,Uf,zf=l(()=>{"use strict";Ql=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))}},Uf=new Ql});var Rr,Nn,Vf=l(()=>{"use strict";Rr=c(f());Bf();zf();Nn=class t extends Rr.WithEventBus{static build(){return new t(window.history,Uf,()=>window.location,!1)}constructor(e,r,i,o){var s,n;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(n=(s=e.state)===null||s===void 0?void 0:s.index)!==null&&n!==void 0?n: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,Rr.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new wi(this.currentItem())),0)}installProxies(){let e=r=>(i,o,[s,n,a])=>{let u=new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin!=="null"?window.location.origin:void 0),d=new Ai(u);this.dispatchEvent(d);let p=r(),h={...p===this.currentIndex?this.currentState:void 0,...s,index:p,href:d.detail.nextLocation.href};i.apply(o,[h,n,h.href]),this.setCurrentState(h,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addBeforeLocationChangeListener(e){this.addEventListener(Ai.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Ai.eventName,e)}addHistoryChangeListener(e){this.addEventListener(wi.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(wi.eventName,e)}currentItem(){return(0,Rr.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,Rr.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Rr.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,Rr.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,s=e+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,i);)this.hasState(s)&&(o=s),s++;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,s=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return s==null||s!=o}}});var Hf=l(()=>{"use strict";Vf();window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Nn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)})});var jf=l(()=>{"use strict";je()});var Fn=l(()=>{"use strict";Bl();Pl();Tf();Lf();Wr();$f();Fl();Pf();Wl();Nf();Ff();Hf();jf()});var qf,Kf,Xl=l(()=>{"use strict";qf=c(y()),Kf=qf.css`
|
|
271
|
+
`});var Wf=l(()=>{"use strict"});function Gf(t,e){let{authenticationRequired:r,session:i}=S.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var Qf=l(()=>{"use strict";je()});var Bn,Xf=l(()=>{"use strict";Ml();Bn=class extends ns{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}}});var pr,Yl,Oi,Zl=l(()=>{"use strict";pr=c(f());je();Qf();Fn();Kr();Xf();Yl=class t extends pr.FtStateManager{static build(e){return new t(S,e)}constructor(e,r){super(),this.store=e,this.cache=new pr.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new Bn,this.knownContexts=new pr.AbstractRegistry,this.knownCustomComponents=new pr.AbstractRegistry,this.cleanSessionDebouncer=new pr.Debouncer,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new pr.Debouncer(500),this.apiProvider=r??(()=>Ci.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(ur.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(ur.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let r=await this.cache.get("availableContentLocales",()=>Gf(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}setStickyFilters(e){this.store.actions.stickyFilters(e)}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new ro(i)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setNoCustomCode(e){this.store.actions.noCustomCode(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}userHasAnyRole(...e){return xf(S.getState().session,...e)}},Oi=Yl.build()});var _i,so=l(()=>{_i=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 Yf=l(()=>{});var Jl=l(()=>{so();});var Zf=l(()=>{});var ec=l(()=>{so();Zf();});var oo,Jf=l(()=>{so();oo=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:s}of i){let n=o.deref(),a=s.deref();n===void 0||a===void 0||n.dispatchEvent(new _i(e.context,n,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 s=o.callbacks.get(r);s===void 0&&o.callbacks.set(r,s=new WeakSet),s.has(i)||(s.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 em=l(()=>{ec();});var tm=l(()=>{Jl();});var rm=l(()=>{so();Yf();Jl();ec();Jf();em();tm()});var im,Ye,Ri,Te,ue,tc=l(()=>{"use strict";im=c(y()),Ye=c(F()),Ri=c(f());Xl();Fn();Zl();rm();Te=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},ue=class extends Ri.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Oi,this.contextRoot=new oo}render(){return im.html`
|
|
272
272
|
<slot></slot>
|
|
273
|
-
`}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>
|
|
274
|
-
`});var
|
|
273
|
+
`}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>ls.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())}};ue.elementDefinitions={};ue.styles=Kf;Te([(0,Ye.property)()],ue.prototype,"baseUrl",void 0);Te([(0,Ye.property)()],ue.prototype,"tenantId",void 0);Te([(0,Ye.property)()],ue.prototype,"apiIntegrationIdentifier",void 0);Te([(0,Ye.property)()],ue.prototype,"apiIntegrationAppVersion",void 0);Te([(0,Ye.property)()],ue.prototype,"uiLocale",void 0);Te([(0,Ri.jsonProperty)(null)],ue.prototype,"availableUiLocales",void 0);Te([(0,Ri.jsonProperty)(null)],ue.prototype,"metadataConfiguration",void 0);Te([(0,Ye.property)({type:Boolean})],ue.prototype,"editorMode",void 0);Te([(0,Ye.property)({type:Boolean})],ue.prototype,"noCustom",void 0);Te([(0,Ye.property)({type:Boolean})],ue.prototype,"openExternalDocumentInNewTab",void 0);Te([(0,Ye.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ue.prototype,"noCustomComponent",void 0);Te([(0,Ye.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ue.prototype,"noCustomCode",void 0);Te([(0,Ye.property)({type:Boolean})],ue.prototype,"withManualResources",void 0);Te([(0,Ye.property)({type:Boolean})],ue.prototype,"navigatorOnline",void 0);Te([(0,Ye.property)({type:Boolean})],ue.prototype,"forcedOffline",void 0);Te([(0,Ye.property)({type:Boolean})],ue.prototype,"authenticationRequired",void 0);Te([(0,Ri.jsonProperty)([])],ue.prototype,"messageContexts",void 0);Te([(0,Ri.jsonProperty)(void 0)],ue.prototype,"session",void 0)});var sm,om=l(()=>{"use strict";tc();sm={"ft-app-context":ue}});var nm,am=l(()=>{"use strict";nm=c(f());om();(0,nm.customElements)(sm)});var Gt=l(()=>{"use strict";Ph();je();Hl();Rf();Fn();Xl();Wf();tc();Zl();am()});var rc,cs,Un=l(()=>{"use strict";rc=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-]+$/)}},cs=new rc});var us,lm,xE,ao,cm,um,zn,no,ct,Vn,Hn,lo=l(()=>{"use strict";us=c(f());Gt();lm=c(F());Un();xE=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},ao=Symbol("i18nAttributes"),cm=Symbol("i18nListAttributes"),um=Symbol("i18nProperties"),zn=Symbol("i18nContexts"),no=Symbol("i18nUnsubs"),ct=(0,us.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?Pn:ls}i18n(s){let{context:n,key:a,message:u}=s,{custom:d,args:p,argsProvider:h}=s;if(n&&a){this.hasI18nContext(n)||this.addI18nContext(n,void 0,d);let m=p??(h?h(this):[]);return this.getI18nService(d).resolveMessage(n,a,...m)}return u}async awaitI18n(s){let{context:n,custom:a}=s;return n&&await this.getI18nService(a).prepareContext(n),this.i18n(s)}customI18n(s,n){if(cs.isI18nKey(s)){let[a,u]=s.split(".");return this.i18n({custom:!0,context:a,key:u,...n})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((n,a,u)=>s.has(a)||typeof n.argsProvider=="function"),this.updateI18nProperties(n=>typeof n.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((n,a,u)=>{var d;return((d=u?.context)===null||d===void 0?void 0:d.toLowerCase())===s}),this.updateI18nProperties(n=>n.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var n,a;let u=this,d=(p,h,m)=>m?.context&&m.key&&s(p,h,m)?{...m,message:this.i18n({context:m.context,key:m.key,custom:m.custom,...p})}:m;(n=this[ao])===null||n===void 0||n.forEach((p,h)=>u[h]=d(p,h,u[h])),(a=this[cm])===null||a===void 0||a.forEach((p,h)=>{var m;return u[h]=(m=u[h])===null||m===void 0?void 0:m.map(x=>d(p,h,x))})}updateI18nProperties(s){var n;(n=this[um])===null||n===void 0||n.forEach((a,u)=>{s(a,u)&&(this[u]=this.i18n(a))})}addI18nMessages(s,n,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,n,a)}addI18nContext(s,n,a){let u=(typeof s=="string"?s:s.name).toLowerCase();a=typeof s=="string"?a:s.custom,this[zn].set(u,{isCustomContext:a}),this[no].has(u)||this[no].set(u,this.getI18nService(a).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(a).prepareContext(u,n)}hasI18nContext(s){return this[zn].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[zn].forEach((s,n)=>this.addI18nContext(n,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[no].forEach(s=>s()),this[no].clear()}}return e=zn,r=no,xE([(0,lm.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),Vn=class extends ct(us.FtLitElement){},Hn=class extends ct(us.FtLitElementRedux){}});var ic,SE,dm=l(()=>{"use strict";Un();ic=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?cs.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},SE=new ic});var pm,ds,jn=l(()=>{"use strict";lo();pm=c(f());Un();dm();ds=(t,e)=>(r,i)=>{var o;r.constructor.createProperty(i,{type:Object,hasChanged:pm.hasChanged,converter:cs,...e}),r[ao]=(o=r[ao])!==null&&o!==void 0?o:new Map,r[ao].set(i,t??{})}});var $t,hm=l(()=>{"use strict";Gt();$t=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?Pn:ls}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,o)=>{let s=o;return n=>({context:this.name,key:s,custom:this.custom,args:typeof n=="function"?void 0:n,argsProvider:typeof n=="function"?n:void 0})}}),this.messages=new Proxy({},{get:(i,o)=>(...s)=>this.service.resolveMessage(this.name,o,...s)}),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 fm=l(()=>{"use strict";lo()});var mm,gm,sc=l(()=>{"use strict";mm=c(y()),gm=mm.css`
|
|
274
|
+
`});var ym=l(()=>{"use strict"});var qn,hs,Kn,ps,Dt,oc=l(()=>{"use strict";qn=c(y()),hs=c(F()),Kn=c(f());sc();lo();Gt();ps=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},Dt=class extends Hn{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(S)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:qn.nothing:qn.html`
|
|
275
275
|
<span class="ft-i18n">
|
|
276
276
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
277
277
|
</span>
|
|
278
|
-
`}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}}
|
|
278
|
+
`}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Dt.elementDefinitions={};Dt.styles=gm;ps([(0,Kn.redux)()],Dt.prototype,"editorMode",void 0);ps([(0,hs.property)()],Dt.prototype,"context",void 0);ps([(0,hs.property)()],Dt.prototype,"key",void 0);ps([(0,Kn.jsonProperty)([])],Dt.prototype,"args",void 0);ps([(0,hs.property)()],Dt.prototype,"defaultMessage",void 0);ps([(0,hs.state)()],Dt.prototype,"editorMessage",void 0)});var bm,vm=l(()=>{"use strict";oc();bm={"ft-i18n":Dt}});var xm,Sm=l(()=>{"use strict";xm=c(f());vm();(0,xm.customElements)(bm)});var yt=l(()=>{"use strict";hm();lo();fm();sc();ym();oc();Sm()});var Em,Mt,Pt,Qt,be,nc=l(()=>{"use strict";Em=c(y()),Mt=c(F()),Pt=c(f());ye();Ja();Ap();jn();yt();Qt=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},be=class extends Vn{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 Pt.Debouncer,this.revealDebouncer=new Pt.Debouncer,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)?this.matchesIgnored(e)&&this.hide():this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,r;return Em.html`
|
|
279
279
|
<div part="container"
|
|
280
280
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
|
|
281
281
|
<slot part="slot"></slot>
|
|
@@ -284,13 +284,13 @@
|
|
|
284
284
|
popover="manual">
|
|
285
285
|
<div part="tooltip-content" class="ft-tooltip--content">
|
|
286
286
|
<slot name="text"></slot>
|
|
287
|
-
<ft-typography variant="${
|
|
287
|
+
<ft-typography variant="${Q.caption}" ?hidden=${!(!((e=this.text)===null||e===void 0)&&e.message)}>
|
|
288
288
|
${(r=this.text)===null||r===void 0?void 0:r.message}
|
|
289
289
|
</ft-typography>
|
|
290
290
|
</div>
|
|
291
291
|
</div>
|
|
292
292
|
</div>
|
|
293
|
-
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,i;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let
|
|
293
|
+
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,i;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let 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&&Cp(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 ${Pt.designSystemVariables.transitionDuration}, left ${Pt.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,Pt.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};be.elementDefinitions={"ft-typography":V};be.styles=Kd;Qt([ds()],be.prototype,"text",void 0);Qt([(0,Mt.property)({type:Boolean})],be.prototype,"manual",void 0);Qt([(0,Mt.property)({type:Boolean})],be.prototype,"inline",void 0);Qt([(0,Pt.numberProperty)()],be.prototype,"delay",void 0);Qt([(0,Mt.property)()],be.prototype,"position",void 0);Qt([(0,Pt.jsonProperty)([])],be.prototype,"ignoreMatchingElements",void 0);Qt([(0,Mt.queryAssignedNodes)()],be.prototype,"slotNodes",void 0);Qt([(0,Mt.query)(".ft-tooltip--container")],be.prototype,"container",void 0);Qt([(0,Mt.query)(".ft-tooltip")],be.prototype,"tooltip",void 0);Qt([(0,Mt.query)(".ft-tooltip--content")],be.prototype,"tooltipContent",void 0);Qt([(0,Mt.state)()],be.prototype,"visible",void 0)});var Cm=l(()=>{"use strict"});var Am,wm=l(()=>{"use strict";nc();Am={"ft-tooltip":be}});var Om,_m=l(()=>{"use strict";Om=c(f());wm();(0,Om.customElements)(Am)});var ac=l(()=>{"use strict";nc();Ja();Cm();_m()});var Rm,Xt,Ze,Tm,fs=l(()=>{"use strict";Rm=c(y()),Xt=c(f()),Ze={size:Xt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Xt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Xt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Xt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Xt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Xt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Xt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Xt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Tm=[Rm.css`
|
|
294
294
|
:host, i.ft-icon {
|
|
295
295
|
display: inline-flex;
|
|
296
296
|
align-items: center;
|
|
@@ -299,14 +299,14 @@
|
|
|
299
299
|
}
|
|
300
300
|
|
|
301
301
|
:host {
|
|
302
|
-
width: ${
|
|
303
|
-
height: ${
|
|
302
|
+
width: ${Ze.size};
|
|
303
|
+
height: ${Ze.size};
|
|
304
304
|
}
|
|
305
305
|
|
|
306
306
|
i.ft-icon {
|
|
307
307
|
width: 100%;
|
|
308
308
|
height: 100%;
|
|
309
|
-
font-size: ${
|
|
309
|
+
font-size: ${Ze.size};
|
|
310
310
|
line-height: 1;
|
|
311
311
|
font-weight: normal;
|
|
312
312
|
text-transform: none;
|
|
@@ -317,33 +317,33 @@
|
|
|
317
317
|
text-rendering: auto;
|
|
318
318
|
-webkit-font-smoothing: antialiased;
|
|
319
319
|
-moz-osx-font-smoothing: grayscale;
|
|
320
|
-
vertical-align: ${
|
|
320
|
+
vertical-align: ${Ze.verticalAlign};
|
|
321
321
|
}
|
|
322
322
|
|
|
323
323
|
i.ft-icon.ft-icon--fluid-topics {
|
|
324
|
-
font-family: ${
|
|
324
|
+
font-family: ${Ze.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
325
325
|
|
|
326
326
|
/* Ugly fix because font is broken */
|
|
327
|
-
font-size: calc(0.75 * ${
|
|
328
|
-
line-height: ${
|
|
327
|
+
font-size: calc(0.75 * ${Ze.size});
|
|
328
|
+
line-height: ${Ze.size};
|
|
329
329
|
position: relative;
|
|
330
330
|
top: -4%;
|
|
331
331
|
justify-content: center;
|
|
332
332
|
}
|
|
333
333
|
|
|
334
334
|
.ft-icon--file-format {
|
|
335
|
-
font-family: ${
|
|
335
|
+
font-family: ${Ze.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
336
336
|
}
|
|
337
337
|
|
|
338
338
|
.ft-icon--material {
|
|
339
|
-
font-family: ${
|
|
339
|
+
font-family: ${Ze.materialFontFamily}, "Material Icons", sans-serif;
|
|
340
340
|
}
|
|
341
|
-
`,Gt.noTextSelect]});var et,ac=l(()=>{"use strict";(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(et||(et={}))});var Kn=Ki((L_,_m)=>{_m.exports=ftGlobals.litUnsafeHTML});function Wn(t,e){var r,i,s,o;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[n,a]=(((r=vE.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(o=(s=(i=lc.get(a))!==null&&i!==void 0?i:lc.get(e))!==null&&s!==void 0?s:lc.get(n))!==null&&o!==void 0?o:b.UNKNOWN}var we,b,lc,vE,$_,cc=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=""})(b||(b={}));lc=new Map([...["abw"].map(t=>[t,b.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,b.AUDIO]),...["avi"].map(t=>[t,b.AVI]),...["chm","xhs"].map(t=>[t,b.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,b.CODE]),...["csv"].map(t=>[t,b.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,b.DITA]),...["epub"].map(t=>[t,b.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,b.EXCEL]),...["flac"].map(t=>[t,b.FLAC]),...["gif"].map(t=>[t,b.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,b.GZIP]),...["html","htm","xhtml"].map(t=>[t,b.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,b.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,b.JPEG]),...["json"].map(t=>[t,b.JSON]),...["m4a","m4p"].map(t=>[t,b.M4A]),...["mov","qt"].map(t=>[t,b.MOV]),...["mp3"].map(t=>[t,b.MP3]),...["mp4","m4v"].map(t=>[t,b.MP4]),...["ogg","oga"].map(t=>[t,b.OGG]),...["pdf","ps"].map(t=>[t,b.PDF]),...["png"].map(t=>[t,b.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,b.POWERPOINT]),...["rar"].map(t=>[t,b.RAR]),...["stp"].map(t=>[t,b.STP]),...["txt","rtf","md","mdown"].map(t=>[t,b.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,b.VIDEO]),...["wav"].map(t=>[t,b.WAV]),...["wma"].map(t=>[t,b.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,b.WORD]),...["xml","xsl","rdf"].map(t=>[t,b.XML]),...["yaml","yml","x-yaml"].map(t=>[t,b.YAML]),...["zip"].map(t=>[t,b.ZIP])]),vE=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"]]);$_={[b.ABW]:"#91ABC6",[b.AUDIO]:"#1795E3",[b.AVI]:"#E63324",[b.CHM]:"#71C3EB",[b.CODE]:"#71C3EB",[b.CSV]:"#1F7345",[b.DITA]:"#71C3EB",[b.EPUB]:"#85B926",[b.EXCEL]:"#1F7345",[b.FLAC]:"#1795E3",[b.GIF]:"#59B031",[b.GZIP]:"#F8AB36",[b.HTML]:"#71C3EB",[b.IMAGE]:"#59B031",[b.JPEG]:"#59B031",[b.JSON]:"#71C3EB",[b.M4A]:"#1795E3",[b.MOV]:"#E63324",[b.MP3]:"#1795E3",[b.MP4]:"#E63324",[b.OGG]:"#1795E3",[b.PDF]:"#E44948",[b.PNG]:"#59B031",[b.POWERPOINT]:"#B54A2B",[b.RAR]:"#F8AB36",[b.STP]:"#3764B1",[b.TEXT]:"#3162AB",[b.UNKNOWN]:"#999999",[b.VIDEO]:"#E63324",[b.WAV]:"#1795E3",[b.WMA]:"#1795E3",[b.WORD]:"#3162AB",[b.XML]:"#71C3EB",[b.YAML]:"#71C3EB",[b.ZIP]:"#F8AB36"}});var cs,Wr,Rm,Tm,us,le,uc=l(()=>{"use strict";cs=c(y()),Wr=c(F()),Rm=c(f()),Tm=c(Kn());cc();fo();ac();us=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},le=class extends Rm.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=cs.nothing}render(){let e=this.variant&&Object.values(et).includes(this.variant)?this.variant:et.fluid_topics,r=e!==et.material||!!this.value;return cs.html`
|
|
341
|
+
`,Xt.noTextSelect]});var Je,lc=l(()=>{"use strict";(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Je||(Je={}))});var Wn=Wi((D_,km)=>{km.exports=ftGlobals.litUnsafeHTML});function Gn(t,e){var r,i,o,s;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[n,a]=(((r=EE.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(s=(o=(i=cc.get(a))!==null&&i!==void 0?i:cc.get(e))!==null&&o!==void 0?o:cc.get(n))!==null&&s!==void 0?s:b.UNKNOWN}var we,b,cc,EE,P_,uc=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=""})(b||(b={}));cc=new Map([...["abw"].map(t=>[t,b.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,b.AUDIO]),...["avi"].map(t=>[t,b.AVI]),...["chm","xhs"].map(t=>[t,b.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,b.CODE]),...["csv"].map(t=>[t,b.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,b.DITA]),...["epub"].map(t=>[t,b.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,b.EXCEL]),...["flac"].map(t=>[t,b.FLAC]),...["gif"].map(t=>[t,b.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,b.GZIP]),...["html","htm","xhtml"].map(t=>[t,b.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,b.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,b.JPEG]),...["json"].map(t=>[t,b.JSON]),...["m4a","m4p"].map(t=>[t,b.M4A]),...["mov","qt"].map(t=>[t,b.MOV]),...["mp3"].map(t=>[t,b.MP3]),...["mp4","m4v"].map(t=>[t,b.MP4]),...["ogg","oga"].map(t=>[t,b.OGG]),...["pdf","ps"].map(t=>[t,b.PDF]),...["png"].map(t=>[t,b.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,b.POWERPOINT]),...["rar"].map(t=>[t,b.RAR]),...["stp"].map(t=>[t,b.STP]),...["txt","rtf","md","mdown"].map(t=>[t,b.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,b.VIDEO]),...["wav"].map(t=>[t,b.WAV]),...["wma"].map(t=>[t,b.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,b.WORD]),...["xml","xsl","rdf"].map(t=>[t,b.XML]),...["yaml","yml","x-yaml"].map(t=>[t,b.YAML]),...["zip"].map(t=>[t,b.ZIP])]),EE=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"]]);P_={[b.ABW]:"#91ABC6",[b.AUDIO]:"#1795E3",[b.AVI]:"#E63324",[b.CHM]:"#71C3EB",[b.CODE]:"#71C3EB",[b.CSV]:"#1F7345",[b.DITA]:"#71C3EB",[b.EPUB]:"#85B926",[b.EXCEL]:"#1F7345",[b.FLAC]:"#1795E3",[b.GIF]:"#59B031",[b.GZIP]:"#F8AB36",[b.HTML]:"#71C3EB",[b.IMAGE]:"#59B031",[b.JPEG]:"#59B031",[b.JSON]:"#71C3EB",[b.M4A]:"#1795E3",[b.MOV]:"#E63324",[b.MP3]:"#1795E3",[b.MP4]:"#E63324",[b.OGG]:"#1795E3",[b.PDF]:"#E44948",[b.PNG]:"#59B031",[b.POWERPOINT]:"#B54A2B",[b.RAR]:"#F8AB36",[b.STP]:"#3764B1",[b.TEXT]:"#3162AB",[b.UNKNOWN]:"#999999",[b.VIDEO]:"#E63324",[b.WAV]:"#1795E3",[b.WMA]:"#1795E3",[b.WORD]:"#3162AB",[b.XML]:"#71C3EB",[b.YAML]:"#71C3EB",[b.ZIP]:"#F8AB36"}});var co,Gr,Lm,Im,uo,ae,dc=l(()=>{"use strict";co=c(y()),Gr=c(F()),Lm=c(f()),Im=c(Wn());uc();fs();lc();uo=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},ae=class extends Lm.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=co.nothing}render(){let e=this.variant&&Object.values(Je).includes(this.variant)?this.variant:Je.fluid_topics,r=e!==Je.material||!!this.value;return co.html`
|
|
342
342
|
<i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
|
|
343
|
-
${(0,
|
|
343
|
+
${(0,Im.unsafeHTML)(this.resolvedIcon)}
|
|
344
344
|
<slot ?hidden=${r}></slot>
|
|
345
345
|
</i>
|
|
346
|
-
`}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.getTextContent();switch(this.variant){case
|
|
346
|
+
`}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.getTextContent();switch(this.variant){case Je.file_format:this.resolvedIcon=(e=b[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Je.material:this.resolvedIcon=this.value||co.nothing;break;default:this.resolvedIcon=(r=we[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};ae.elementDefinitions={};ae.styles=Tm;uo([(0,Gr.property)()],ae.prototype,"variant",void 0);uo([(0,Gr.property)()],ae.prototype,"value",void 0);uo([(0,Gr.property)({reflect:!0,attribute:"aria-hidden"})],ae.prototype,"ariaHidden",void 0);uo([(0,Gr.state)()],ae.prototype,"resolvedIcon",void 0);uo([(0,Gr.query)("slot")],ae.prototype,"slottedContent",void 0)});var $m,Dm=l(()=>{"use strict";dc();$m={"ft-icon":ae}});var Pm,Mm=l(()=>{"use strict";Pm=c(f());Dm();(0,Pm.customElements)($m)});var Tr=l(()=>{"use strict";fs();lc();dc();uc();Mm()});var Nm,po,Ti,Fm,Qn=l(()=>{"use strict";Nm=c(y()),po=c(f()),Ti={color:po.FtCssVariableFactory.extend("--ft-loader-color","",po.designSystemVariables.colorPrimary),size:po.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Fm=Nm.css`
|
|
347
347
|
:host {
|
|
348
348
|
line-height: 0;
|
|
349
349
|
}
|
|
@@ -412,14 +412,14 @@
|
|
|
412
412
|
transform: translate(calc(0.35 * ${Ti.size}), 0);
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
`});var
|
|
415
|
+
`});var Bm=l(()=>{"use strict"});var Um,zm,ki,pc=l(()=>{"use strict";Um=c(y()),zm=c(f());Qn();ki=class extends zm.FtLitElement{render(){return Um.html`
|
|
416
416
|
<div class="ft-loader">
|
|
417
417
|
<div></div>
|
|
418
418
|
<div></div>
|
|
419
419
|
<div></div>
|
|
420
420
|
<div></div>
|
|
421
421
|
</div>
|
|
422
|
-
`}};ki.styles=
|
|
422
|
+
`}};ki.styles=Fm});var Vm,Hm=l(()=>{"use strict";pc();Vm={"ft-loader":ki}});var jm,qm=l(()=>{"use strict";jm=c(f());Hm();(0,jm.customElements)(Vm)});var Km=l(()=>{"use strict";Qn();Bm();pc();qm()});var bt,Wm=l(()=>{Wa();bt=t=>t??Ce});var ho=l(()=>{Wm()});var Xn,$,Gm,I,Qm,hc,Yt,Xm,Li=l(()=>{"use strict";Xn=c(y()),$=c(f());Er();jt();Qn();fs();Gm=$.FtCssVariableFactory.extend("--ft-button-color","",$.designSystemVariables.colorPrimary),I={backgroundColor:$.FtCssVariableFactory.extend("--ft-button-background-color","",$.designSystemVariables.colorSurface),borderRadius:$.FtCssVariableFactory.extend("--ft-button-border-radius","",$.designSystemVariables.borderRadiusL),color:Gm,fontSize:$.FtCssVariableFactory.extend("--ft-button-font-size","",Ht.fontSize),iconSize:$.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:$.FtCssVariableFactory.extend("--ft-button-ripple-color","",Gm),verticalPadding:$.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:$.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:$.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:$.FtCssVariableFactory.external($.designSystemVariables.colorOpacityDisabled,"Design system")},Qm=$.FtCssVariableFactory.extend("--ft-button-primary-color","",$.FtCssVariableFactory.extend("--ft-button-color","",$.designSystemVariables.colorOnPrimary)),hc={backgroundColor:$.FtCssVariableFactory.extend("--ft-button-primary-background-color","",$.FtCssVariableFactory.extend("--ft-button-background-color","",$.designSystemVariables.colorPrimary)),color:Qm,rippleColor:$.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Qm)},Yt={borderRadius:$.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",$.FtCssVariableFactory.extend("--ft-button-border-radius","",$.designSystemVariables.borderRadiusM)),verticalPadding:$.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:$.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:$.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Xm=Xn.css`
|
|
423
423
|
:host {
|
|
424
424
|
display: inline-block;
|
|
425
425
|
max-width: 100%;
|
|
@@ -429,7 +429,7 @@
|
|
|
429
429
|
.ft-button {
|
|
430
430
|
box-shadow: 0px 0px 0px transparent;
|
|
431
431
|
text-shadow: 0px 0px 0px transparent;
|
|
432
|
-
font-size: ${
|
|
432
|
+
font-size: ${I.fontSize};
|
|
433
433
|
text-decoration: none;
|
|
434
434
|
position: relative;
|
|
435
435
|
display: flex;
|
|
@@ -440,15 +440,15 @@
|
|
|
440
440
|
border: none;
|
|
441
441
|
pointer-events: auto;
|
|
442
442
|
|
|
443
|
-
--button-internal-line-height: max(calc(${
|
|
444
|
-
--button-internal-color: ${
|
|
445
|
-
${(0
|
|
446
|
-
${(0
|
|
447
|
-
${(0
|
|
443
|
+
--button-internal-line-height: max(calc(${I.fontSize} + 2px), ${I.iconSize});
|
|
444
|
+
--button-internal-color: ${I.color};
|
|
445
|
+
${(0,$.setVariable)(Ze.size,I.iconSize)};
|
|
446
|
+
${(0,$.setVariable)(z.color,I.rippleColor)};
|
|
447
|
+
${(0,$.setVariable)(z.borderRadius,I.borderRadius)};
|
|
448
448
|
|
|
449
|
-
border-radius: ${
|
|
450
|
-
padding: ${
|
|
451
|
-
background-color: ${
|
|
449
|
+
border-radius: ${I.borderRadius};
|
|
450
|
+
padding: ${I.verticalPadding} ${I.horizontalPadding};
|
|
451
|
+
background-color: ${I.backgroundColor};
|
|
452
452
|
color: var(--button-internal-color);
|
|
453
453
|
|
|
454
454
|
.ft-button--label {
|
|
@@ -457,9 +457,9 @@
|
|
|
457
457
|
white-space: nowrap;
|
|
458
458
|
text-overflow: ellipsis;
|
|
459
459
|
display: block;
|
|
460
|
-
margin: 0 ${
|
|
461
|
-
${(0
|
|
462
|
-
${(0
|
|
460
|
+
margin: 0 ${I.iconPadding};
|
|
461
|
+
${(0,$.setVariable)(Ht.fontSize,"1em")};
|
|
462
|
+
${(0,$.setVariable)(Ht.lineHeight,"var(--button-internal-line-height)")};
|
|
463
463
|
}
|
|
464
464
|
|
|
465
465
|
[part="icon"] {
|
|
@@ -488,48 +488,48 @@
|
|
|
488
488
|
}
|
|
489
489
|
|
|
490
490
|
&:focus-visible {
|
|
491
|
-
outline: 2px solid ${
|
|
491
|
+
outline: 2px solid ${$.designSystemVariables.colorPrimary};
|
|
492
492
|
outline-offset: 2px;
|
|
493
493
|
}
|
|
494
494
|
|
|
495
495
|
&[disabled] {
|
|
496
496
|
filter: grayscale(1);
|
|
497
|
-
opacity: ${
|
|
497
|
+
opacity: ${I.opacityDisabled};
|
|
498
498
|
}
|
|
499
499
|
|
|
500
500
|
&.ft-button--primary {
|
|
501
|
-
background-color: ${
|
|
502
|
-
--button-internal-color: ${
|
|
503
|
-
${(0
|
|
501
|
+
background-color: ${hc.backgroundColor};
|
|
502
|
+
--button-internal-color: ${hc.color};
|
|
503
|
+
${(0,$.setVariable)(z.color,hc.rippleColor)};
|
|
504
504
|
}
|
|
505
505
|
|
|
506
506
|
&.ft-button--outlined {
|
|
507
507
|
border: 1px solid var(--button-internal-color);
|
|
508
|
-
padding: calc(${
|
|
508
|
+
padding: calc(${I.verticalPadding} - 1px) calc(${I.horizontalPadding} - 1px);
|
|
509
509
|
}
|
|
510
510
|
|
|
511
511
|
&.ft-button--dense {
|
|
512
|
-
padding: ${
|
|
513
|
-
border-radius: ${
|
|
514
|
-
${(0
|
|
512
|
+
padding: ${Yt.verticalPadding} ${Yt.horizontalPadding};
|
|
513
|
+
border-radius: ${Yt.borderRadius};
|
|
514
|
+
${(0,$.setVariable)(z.borderRadius,Yt.borderRadius)};
|
|
515
515
|
|
|
516
516
|
.ft-button--label {
|
|
517
|
-
margin: 0 ${
|
|
517
|
+
margin: 0 ${Yt.iconPadding};
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
520
|
|
|
521
521
|
&.ft-button--dense.ft-button--outlined {
|
|
522
|
-
padding: calc(${
|
|
522
|
+
padding: calc(${Yt.verticalPadding} - 1px) calc(${Yt.horizontalPadding} - 1px);
|
|
523
523
|
}
|
|
524
524
|
|
|
525
525
|
&.ft-button--round {
|
|
526
|
-
border-radius: calc(var(--button-internal-line-height) / 2 + ${
|
|
527
|
-
${(0
|
|
526
|
+
border-radius: calc(var(--button-internal-line-height) / 2 + ${I.verticalPadding});
|
|
527
|
+
${(0,$.setVariable)(z.borderRadius,Xn.css`calc(var(--button-internal-line-height) / 2 + ${I.verticalPadding})`)};
|
|
528
528
|
}
|
|
529
529
|
|
|
530
530
|
&.ft-button--round.ft-button--dense {
|
|
531
|
-
border-radius: calc(var(--button-internal-line-height) / 2 + ${
|
|
532
|
-
${(0
|
|
531
|
+
border-radius: calc(var(--button-internal-line-height) / 2 + ${Yt.verticalPadding});
|
|
532
|
+
${(0,$.setVariable)(z.borderRadius,Xn.css`calc(var(--button-internal-line-height) / 2 + ${Yt.verticalPadding})`)};
|
|
533
533
|
}
|
|
534
534
|
|
|
535
535
|
&.ft-button--no-text {
|
|
@@ -537,18 +537,18 @@
|
|
|
537
537
|
margin: 0;
|
|
538
538
|
}
|
|
539
539
|
|
|
540
|
-
padding: ${
|
|
540
|
+
padding: ${I.verticalPadding};
|
|
541
541
|
|
|
542
542
|
&.ft-button--dense {
|
|
543
|
-
padding: ${
|
|
543
|
+
padding: ${Yt.verticalPadding};
|
|
544
544
|
}
|
|
545
545
|
|
|
546
546
|
&.ft-button--outlined {
|
|
547
|
-
padding: calc(${
|
|
547
|
+
padding: calc(${I.verticalPadding} - 1px);
|
|
548
548
|
}
|
|
549
549
|
|
|
550
550
|
&.ft-button--outlined.ft-button--dense {
|
|
551
|
-
padding: calc(${
|
|
551
|
+
padding: calc(${Yt.verticalPadding} - 1px);
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
|
|
@@ -558,56 +558,56 @@
|
|
|
558
558
|
}
|
|
559
559
|
|
|
560
560
|
ft-loader {
|
|
561
|
-
${(0
|
|
562
|
-
${(0
|
|
561
|
+
${(0,$.setVariable)(Ti.size,I.iconSize)};
|
|
562
|
+
${(0,$.setVariable)(Ti.color,"var(--button-internal-color)")};
|
|
563
563
|
}
|
|
564
|
-
`});var hr,
|
|
564
|
+
`});var hr,Qr,Yn,Y,se,w,fc=l(()=>{"use strict";hr=c(f());Qe();ac();Tr();Km();Qr=c(y()),Yn=c(ot()),Y=c(F());ho();ye();Li();se=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},w=class t extends(0,hr.toFtFormComponent)(hr.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--no-text":!this.hasTextContent,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.ariaExpanded=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let o={"ft-button--label":!0,"ft-safari-ellipsis-fix":hr.isSafari},s=Qr.html`
|
|
565
565
|
<ft-ripple part="ripple"
|
|
566
566
|
?disabled=${this.isDisabled()}
|
|
567
567
|
?activated=${this.activated}
|
|
568
568
|
></ft-ripple>
|
|
569
569
|
<ft-typography part="label"
|
|
570
|
-
variant="${
|
|
570
|
+
variant="${Q.button}"
|
|
571
571
|
element="span"
|
|
572
|
-
class="${(0,
|
|
572
|
+
class="${(0,Yn.classMap)(o)}">
|
|
573
573
|
<slot></slot>
|
|
574
574
|
</ft-typography>
|
|
575
575
|
${this.resolveIcon()}
|
|
576
|
-
`,n=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(n?
|
|
576
|
+
`,n=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(n?Qr.html`
|
|
577
577
|
<a href="${n}"
|
|
578
578
|
target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
|
|
579
579
|
part="button"
|
|
580
|
-
class="${(0,
|
|
581
|
-
aria-label="${
|
|
580
|
+
class="${(0,Yn.classMap)(this.buttonClasses)}"
|
|
581
|
+
aria-label="${bt((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
|
|
582
582
|
?disabled=${this.isDisabled()}>
|
|
583
|
-
${
|
|
583
|
+
${s}
|
|
584
584
|
</a>
|
|
585
|
-
`:
|
|
585
|
+
`:Qr.html`
|
|
586
586
|
<button part="button"
|
|
587
|
-
class="${(0,
|
|
588
|
-
aria-label="${
|
|
589
|
-
aria-haspopup="${
|
|
590
|
-
aria-pressed="${
|
|
591
|
-
aria-expanded="${
|
|
587
|
+
class="${(0,Yn.classMap)(this.buttonClasses)}"
|
|
588
|
+
aria-label="${bt((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
|
|
589
|
+
aria-haspopup="${bt(this.ariaHasPopup)}"
|
|
590
|
+
aria-pressed="${bt(this.ariaPressed)}"
|
|
591
|
+
aria-expanded="${bt(this.ariaExpanded)}"
|
|
592
592
|
?disabled=${this.isDisabled()}>
|
|
593
|
-
${
|
|
593
|
+
${s}
|
|
594
594
|
</button>
|
|
595
|
-
`)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?
|
|
595
|
+
`)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?Qr.html`
|
|
596
596
|
<ft-tooltip part="tooltip"
|
|
597
597
|
text="${this.label}"
|
|
598
598
|
position="${this.tooltipPosition}">
|
|
599
599
|
${e}
|
|
600
600
|
</ft-tooltip>
|
|
601
|
-
`:e}resolveIcon(){return this.loading?
|
|
602
|
-
<ft-loader part="loader icon"></ft-loader> `:this.icon?
|
|
601
|
+
`:e}resolveIcon(){return this.loading?Qr.html`
|
|
602
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?Qr.html`
|
|
603
603
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
604
|
-
`:
|
|
604
|
+
`:Qr.html`
|
|
605
605
|
<slot part="icon" name="icon"></slot>
|
|
606
|
-
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};w.elementDefinitions={"ft-ripple":L,"ft-tooltip":
|
|
606
|
+
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};w.elementDefinitions={"ft-ripple":L,"ft-tooltip":be,"ft-icon":ae,"ft-loader":ki,"ft-typography":V};w.styles=[hr.safariEllipsisFix,Xm,hr.noTextSelect];w.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r instanceof ShadowRoot&&r.host?r.host.hasTextContent=e.boundingClientRect.width>0:w.labelsObserver.unobserve(e.target)}});se([(0,Y.property)({type:Boolean})],w.prototype,"primary",void 0);se([(0,Y.property)({type:Boolean})],w.prototype,"outlined",void 0);se([(0,Y.property)({type:Boolean})],w.prototype,"dense",void 0);se([(0,Y.property)({type:Boolean})],w.prototype,"round",void 0);se([(0,Y.property)({type:Boolean})],w.prototype,"disabled",void 0);se([(0,Y.property)()],w.prototype,"icon",void 0);se([(0,Y.property)()],w.prototype,"iconVariant",void 0);se([(0,Y.property)({type:Boolean})],w.prototype,"trailingIcon",void 0);se([(0,Y.property)()],w.prototype,"label",void 0);se([(0,Y.property)()],w.prototype,"type",void 0);se([(0,Y.property)()],w.prototype,"href",void 0);se([(0,Y.property)()],w.prototype,"target",void 0);se([(0,Y.property)({type:Boolean})],w.prototype,"loading",void 0);se([(0,Y.property)({attribute:"aria-label"})],w.prototype,"ariaLabel",void 0);se([(0,Y.property)()],w.prototype,"ariaHasPopup",void 0);se([(0,Y.property)({attribute:"aria-pressed"})],w.prototype,"ariaPressed",void 0);se([(0,Y.property)({attribute:"aria-expanded"})],w.prototype,"ariaExpanded",void 0);se([(0,Y.property)()],w.prototype,"tooltipPosition",void 0);se([(0,Y.property)({type:Boolean})],w.prototype,"hideTooltip",void 0);se([(0,Y.property)({type:Boolean})],w.prototype,"forceTooltip",void 0);se([(0,Y.property)({type:Boolean})],w.prototype,"activated",void 0);se([(0,Y.query)(".ft-button")],w.prototype,"button",void 0);se([(0,Y.query)(".ft-button--label")],w.prototype,"labelContainer",void 0);se([(0,Y.state)()],w.prototype,"hasTextContent",void 0);se([(0,Y.query)(".ft-button--label slot")],w.prototype,"slottedContent",void 0);se([(0,Y.query)("[part=tooltip]")],w.prototype,"tooltip",void 0)});var Ym=l(()=>{"use strict"});var Zm,Jm=l(()=>{"use strict";fc();Zm={"ft-button":w}});var eg,tg=l(()=>{"use strict";eg=c(f());Jm();(0,eg.customElements)(Zm)});var Zt=l(()=>{"use strict";fc();Li();Ym();tg()});var rg,te,oe,mc,fo=l(()=>{"use strict";rg=c(y()),te=c(f());Zt();oe={height:te.FtCssVariableFactory.create("--ft-search-input-height","","SIZE","38px"),borderRadius:te.FtCssVariableFactory.extend("--ft-search-input-border-radius","",te.designSystemVariables.borderRadiusS),desktopFiltersHeight:te.FtCssVariableFactory.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:te.FtCssVariableFactory.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:te.FtCssVariableFactory.extend("--ft-search-input-background-color","",te.designSystemVariables.colorSurface),colorOnSurface:te.FtCssVariableFactory.extend("--ft-search-input-color","",te.designSystemVariables.colorOnSurface),colorOnSurfaceMedium:te.FtCssVariableFactory.extend("--ft-search-input-placeholder-color","",te.designSystemVariables.colorOnSurfaceMedium),colorOutline:te.FtCssVariableFactory.extend("--ft-search-input-outline-color","",te.designSystemVariables.colorOutline),elevation02:te.FtCssVariableFactory.extend("--ft-search-input-elevation","",te.designSystemVariables.elevation02),focusOutlineColor:te.FtCssVariableFactory.extend("--ft-search-input-focused-outline-color","",te.designSystemVariables.colorPrimary),buttonColor:te.FtCssVariableFactory.extend("--ft-search-input-button-color","",te.designSystemVariables.colorPrimary),buttonRippleColor:te.FtCssVariableFactory.extend("--ft-search-input-button-ripple-color","",te.designSystemVariables.colorPrimary)},mc=rg.css`
|
|
607
607
|
* {
|
|
608
608
|
box-sizing: border-box;
|
|
609
|
-
${(0,te.setVariable)(
|
|
610
|
-
${(0,te.setVariable)(
|
|
609
|
+
${(0,te.setVariable)(I.color,oe.buttonColor)};
|
|
610
|
+
${(0,te.setVariable)(I.rippleColor,oe.buttonRippleColor)};
|
|
611
611
|
}
|
|
612
612
|
|
|
613
613
|
.ft-search-input {
|
|
@@ -615,11 +615,11 @@
|
|
|
615
615
|
display: flex;
|
|
616
616
|
flex-direction: row;
|
|
617
617
|
align-items: center;
|
|
618
|
-
height: ${
|
|
618
|
+
height: ${oe.height};
|
|
619
619
|
|
|
620
|
-
background: ${
|
|
621
|
-
border: 1px solid ${
|
|
622
|
-
border-radius: ${
|
|
620
|
+
background: ${oe.colorSurface};
|
|
621
|
+
border: 1px solid ${oe.colorOutline};
|
|
622
|
+
border-radius: ${oe.borderRadius};
|
|
623
623
|
}
|
|
624
624
|
|
|
625
625
|
.ft-search-input--input-container {
|
|
@@ -634,11 +634,11 @@
|
|
|
634
634
|
width: 100%;
|
|
635
635
|
display: grid;
|
|
636
636
|
padding: 0 8px;
|
|
637
|
-
border-radius: ${
|
|
637
|
+
border-radius: ${oe.borderRadius};
|
|
638
638
|
}
|
|
639
639
|
|
|
640
640
|
.ft-search-input--input-container:focus-within .ft-search-input--input-outline {
|
|
641
|
-
outline: 2px solid ${
|
|
641
|
+
outline: 2px solid ${oe.focusOutlineColor};
|
|
642
642
|
}
|
|
643
643
|
|
|
644
644
|
.ft-search-input--input {
|
|
@@ -646,12 +646,12 @@
|
|
|
646
646
|
width: 100%;
|
|
647
647
|
border: none;
|
|
648
648
|
background-color: transparent;
|
|
649
|
-
color: ${
|
|
649
|
+
color: ${oe.colorOnSurface};
|
|
650
650
|
outline: none;
|
|
651
651
|
}
|
|
652
652
|
|
|
653
653
|
.ft-search-input--input::placeholder {
|
|
654
|
-
color: ${
|
|
654
|
+
color: ${oe.colorOnSurfaceMedium};
|
|
655
655
|
}
|
|
656
656
|
|
|
657
657
|
.ft-search-input--actions {
|
|
@@ -665,7 +665,7 @@
|
|
|
665
665
|
.ft-search-input > ft-button,
|
|
666
666
|
.ft-search-input--actions ft-button {
|
|
667
667
|
flex-shrink: 0;
|
|
668
|
-
${(0,te.setVariable)(
|
|
668
|
+
${(0,te.setVariable)(I.backgroundColor,"transparent")};
|
|
669
669
|
}
|
|
670
670
|
|
|
671
671
|
.ft-search-input .ft-search-input--launch-search,
|
|
@@ -675,17 +675,17 @@
|
|
|
675
675
|
|
|
676
676
|
.ft-search-input--separator {
|
|
677
677
|
height: 20px;
|
|
678
|
-
border-right: 1px solid ${
|
|
678
|
+
border-right: 1px solid ${oe.colorOutline};
|
|
679
679
|
}
|
|
680
|
-
`});var
|
|
680
|
+
`});var ig,sg,Zn,gc,Jn=l(()=>{"use strict";ig=c(y()),sg=c(f()),Zn={highlightBackgroundColor:sg.FtCssVariableFactory.create("--ft-sra-highlight-background-color","","COLOR","transparent")},gc=ig.css`
|
|
681
681
|
.kwicmatch {
|
|
682
682
|
font-weight: 700;
|
|
683
|
-
background-color: ${
|
|
683
|
+
background-color: ${Zn.highlightBackgroundColor};
|
|
684
684
|
}
|
|
685
|
-
`});var
|
|
685
|
+
`});var og,ng,ea,yc,ta=l(()=>{"use strict";og=c(y()),ng=c(f()),ea={highlightBackgroundColor:ng.FtCssVariableFactory.create("--ft-srt-highlight-background-color","","COLOR","transparent")},yc=og.css`
|
|
686
686
|
.kwicmatch {
|
|
687
687
|
font-weight: 700;
|
|
688
|
-
background-color: ${
|
|
688
|
+
background-color: ${ea.highlightBackgroundColor};
|
|
689
689
|
}
|
|
690
690
|
|
|
691
691
|
a {
|
|
@@ -696,11 +696,11 @@
|
|
|
696
696
|
a:focus {
|
|
697
697
|
outline: revert;
|
|
698
698
|
}
|
|
699
|
-
`});function
|
|
700
|
-
`});var gg=l(()=>{"use strict"});var Yt,bo=l(()=>{"use strict";(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Yt||(Yt={}))});var yg,CE,bg,vg=l(()=>{"use strict";yg=c(f()),CE={setRequest:(t,e)=>{t.request=e.payload}},bg=t=>yg.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,propagatedFacets:[]},reducers:CE,deprecatedKeys:["locales"]})});var na,xg=l(()=>{"use strict";Kt();na=class extends Ke{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,s)=>i.id.localeCompare(s.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 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,s)=>i.localeCompare(s))}}).sort((r,i)=>r.key.localeCompare(i.key))}}});var ye,Sg,Eg,vo,Ac=l(()=>{"use strict";bo();ye=c(f());vg();qr();xg();ys();Kt();Sg=t=>t.request.virtualField===io.TITLE_ONLY&&t.request.scope===oo.DOCUMENTS,Eg=t=>t.request.keywordMatch==On.MANDATORY,vo=class t extends ye.FtStateManager{static build(e,r){return new t(bg(e.trim()||"context"),r)}constructor(e,r){super(),this.store=e,this.ignoreEmptyQuery=!1,this.canUpdateUiLocale=!1,this.openExternalDocumentInNewTab=!1,this.applyStickyFilters=!1,this.history=new ye.QueryHistoryStorage(this.store.actions.recentQueries),this.onNewNeededRequest=i=>{i==Yt.CLUSTERED_SEARCH&&this.launchSearch()},this.onStorageEvent=i=>{i.key===this.taruqaConfigStorageKey&&this.loadTaruqaTemplate()},this.loadTaruqaTemplate=()=>{var i;let s;if(is(S.getState().session,ge.DEBUG_USER)){let o=JSON.parse((i=window.localStorage.getItem(this.taruqaConfigStorageKey))!==null&&i!==void 0?i:"{}");s=o.overrideEnabled?o.template:void 0}this.updateSearchRequest({taruqaTemplateOverride:s,changedByConfiguration:!0})},this.updateLocales=(i=S.getState().availableContentLocales)=>{this.store.actions.locales(i),i.length>0&&this.forceContentLocale(this.store.getState().request.contentLocale)},this.searchDebouncer=new ye.Debouncer(100),this.launchSearch=i=>this.searchDebouncer.run(()=>this.fetchSearchData(i??this.buildSearchRequest())),this.buildSearchRequest=(i=this.store.getState())=>{var s;return{...i.request,facets:this.facetIds.map(o=>({id:o})),stickyFiltersId:this.applyStickyFilters?(s=S.getState().stickyFilters)===null||s===void 0?void 0:s.id:void 0}},this.suggestDebouncer=new ye.Debouncer(1e3),this.launchSuggest=i=>this.suggestDebouncer.run(()=>this.fetchSuggestData(i??this.buildSuggestRequest())),this.buildSuggestRequest=(i=this.store.getState())=>{var s,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,stickyFiltersId:this.applyStickyFilters?(s=S.getState().stickyFilters)===null||s===void 0?void 0:s.id:void 0}},this.service=r??new na,this.searchWatcher=new ye.ReduxWatcher(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=new ye.ReduxWatcher(e,this.buildSuggestRequest,this.launchSuggest),this.localesWatcher=new ye.ReduxWatcher(S,i=>i.availableContentLocales,this.updateLocales),this.stickyFiltersIdWatcher=new ye.ReduxWatcher(S,i=>{var s;return(s=i.stickyFilters)===null||s===void 0?void 0:s.id},()=>{this.applyStickyFilters&&(this.launchSearch(),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.loadTaruqaTemplate(),this.launchSearch()}addListeners(){window.addEventListener("storage",this.onStorageEvent),S.addEventListener(cr.eventName,this.loadTaruqaTemplate),this.searchWatcher.watch(),this.suggestWatcher.watch(),this.localesWatcher.watch(),this.stickyFiltersIdWatcher.watch(),this.history.enable(S.getState().tenantId+"-ft-recent-queries")}removeListeners(){window.removeEventListener("storage",this.onStorageEvent),S.removeEventListener(cr.eventName,this.loadTaruqaTemplate),this.searchWatcher.stop(),this.suggestWatcher.stop(),this.localesWatcher.stop(),this.stickyFiltersIdWatcher.stop(),this.history.disable()}get taruqaConfigStorageKey(){return S.getState().tenantId+"-taruqa-experiment-conf"}updateSearchRequest(e,r=!1){let i=(0,ye.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;let i=this.store.getState().request.contentLocale;return e!==i&&(e=t.findKnownContentLocale(e,i),this.updateSearchRequest({contentLocale:e,metadataFilters:[]},!0),this.canUpdateUiLocale&&(!((r=S.getState().localesConfiguration)===null||r===void 0)&&r.searchLanguageSetsUiLanguage)&&e&&Oi.requestUiLocaleUpdate(e,e)),e}static findKnownContentLocale(...e){let{availableContentLocales:r,localesConfiguration:i}=S.getState();if(r.length===0)return e[0];let s=n=>r.some(a=>a.lang==n);for(let n of e)if(s(n))return n;let o=i?.defaultLocales.defaultContentLocale;return o?`${o.lang}-${o.region}`:r[0].lang}forceContentLocale(e){this.updateSearchRequest({contentLocale:t.findKnownContentLocale(e)})}setPageSize(e){let r=this.store.getState().request;this.updateSearchRequest({paging:{...r.paging,perPage:isNaN(e)?20:(0,ye.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 s=r?{changedByConfiguration:!0}:{};if(e==null||this.sortOptions.length==0)return this.updateSearchRequest({sortId:e,...s},!0),e;let o=(i=this.sortOptions.find(n=>n.id==e))!==null&&i!==void 0?i:this.sortOptions[0];return this.updateSearchRequest({sortId:o.id,...s},!0),o.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:io.TITLE_ONLY,scope:oo.DOCUMENTS},!0):this.updateSearchRequest({virtualField:io.EVERYWHERE,scope:oo.DEFAULT},!0)}setKeywordMatch(e){this.updateSearchRequest({keywordMatch:e},!0)}setVirtualField(e){this.updateSearchRequest({virtualField:e},!0)}get searchInDocumentTitlesOnly(){return Sg(this.store.getState())}get keywordMatch(){return Eg(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new gs)}addFacet(e){this.facetIds=[...this.facetIds,e]}replaceFacet(e,r){let i=this.facetIds.filter(s=>s!=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(s=>({id:s}));this.updateSearchRequest({facets:i})}addPropagatedFacet(e){let r=new Set(this.store.getState().propagatedFacets);r.add(e),this.store.actions.propagatedFacets([...r])}setFilter(e,r){this.setValueFilter(e,r)}setValueFilter(e,r){let i=this.store.getState().request.metadataFilters,s={key:e,valueFilter:{values:r,negative:!1}},o=[...i.filter(n=>!n.valueFilter),...i.filter(n=>n.valueFilter&&n.key!==s.key),s];this.setFilters(o)}setDateFilter(e,r){let i=this.store.getState().request.metadataFilters,s={key:e,dateFilter:{type:r}},o=[...i.filter(n=>!n.dateFilter),...i.filter(n=>n.dateFilter&&n.key!==s.key),s];this.setFilters(o)}removeDateFilter(e){let r=this.store.getState().request.metadataFilters,i=[...r.filter(s=>!s.dateFilter),...r.filter(s=>s.dateFilter&&s.key!==e)];this.setFilters(i)}setRangeFilter(e,r,i){let s=this.store.getState().request.metadataFilters,o={key:e,rangeFilter:{from:r,to:i}},n=[...s.filter(a=>!a.rangeFilter),...s.filter(a=>a.rangeFilter&&a.key!==o.key),o];this.setFilters(n)}removeRangeFilter(e){let r=this.store.getState().request.metadataFilters,i=[...r.filter(s=>!s.rangeFilter),...r.filter(s=>s.rangeFilter&&s.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}setApplyStickyFilters(e){this.applyStickyFilters=e,this.launchSearch(),this.launchSuggest()}addRecentQuery(e){this.history.addRecentQuery(e)}removeRecentQuery(e){this.history.removeRecentQuery(e)}async fetchSearchData(e){var r,i,s,o,n;if((r=this.cancelableSearch)===null||r===void 0||r.cancel(),!!this.isRequestNeeded(Yt.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,ye.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 ye.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,ye.cancelable)(this.service.launchSuggest(e));let i=await this.cancelableSuggest;this.store.actions.suggestResults(i.suggestions)}catch(i){!(i instanceof ye.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 Qr,bs,wc,_c,Cg,Oc,AE,wE,Mt,Di=l(()=>{"use strict";Qr=c(f()),bs=c(F());bo();Ac();wc=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},_c=class extends Qr.FtContextRegistrationEvent{constructor(e){super("register-ft-search-component",e)}},Cg=Symbol("registerInterval"),Oc=Symbol("registerAttempts"),AE=40,wE=(0,Qr.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(i){var s,o,n;super.willUpdate(i),i.has("neededSearchRequests")&&((s=this.stateManager)===null||s===void 0||s.unregisterComponent(this,(n=i.get("neededSearchRequests"))!==null&&n!==void 0?n:[]),(o=this.stateManager)===null||o===void 0||o.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[Oc]=0,this.tryToRegisterToContext(),this[Cg]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Oc]>AE?window.clearInterval(this[Cg]):(this[Oc]++,this.dispatchEvent(new _c({target:this,registrationId:this.searchRegistrationId})))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return wc([(0,bs.state)()],e.prototype,"stateManager",void 0),wc([(0,bs.state)({hasChanged:Qr.hasChanged})],e.prototype,"neededSearchRequests",void 0),wc([(0,bs.property)()],e.prototype,"searchRegistrationId",void 0),e}),Mt=class extends wE(Qr.FtLitElementRedux){}});function vs(t){return t.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function xs(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 Rc=l(()=>{"use strict"});var la,aa,Ag=l(()=>{"use strict";la=c(f());qr();Kt();Rc();aa=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,s])=>{if(!this.canSendEvent()||!i||!s)return;let o=this.store.getState().request;this.document==null?this.sendKhubSearchEvent(o,i,s):this.sendDocumentSearchEvent(o,i,s)},this.eventsService=r??new Pn,this.resultsWatcher=(0,la.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}=S.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}=S.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,r,i){let s={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Ei.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:i.totalClustersCount},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:vs(e.metadataFilters),facets:e.metadataFilters.map(o=>xs(o))}};this.eventsService.sendKhubSearchEvent(s)}sendDocumentSearchEvent(e,r,i){if(e.metadataFilters.find(o=>{var n;return o.key==="ft:publicationId"&&((n=o.valueFilter)===null||n===void 0?void 0:n.values[0])===this.document.id})!==void 0){let o={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Ei.DOCUMENT__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:i.totalClustersCount},searchQuery:{terms:e.query},document:this.document};this.eventsService.sendDocumentSearchEvent(o)}}sendResultClickedEvent(e,r){if(!this.canSendEvent())return;let i=this.store.getState().request,s;e.type==ur.TOPIC&&(s={tocId:e.topic.tocId,title:e.topic.title});let o={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Ei.SEARCH_PAGE__SELECT,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:vs(i.metadataFilters),facets:i.metadataFilters.map(n=>xs(n))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:s},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchPageSelectEvent(o)}sendResultContextMenuOpenedEvent(e,r){if(!this.canSendEvent())return;let i=this.store.getState().request,s;e.type==ur.TOPIC&&(s={tocId:e.topic.tocId,title:e.topic.title});let o={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Ei.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:vs(i.metadataFilters),facets:i.metadataFilters.map(n=>xs(n))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:s},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchResultOpenContextMenuEvent(o)}convertDocument(e){switch(e.type){case ur.MAP:return{id:e.map.mapId,title:e.map.title,type:jr.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case ur.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:jr.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case ur.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:jr.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};case ur.HTML_PACKAGE:return{id:e.htmlPackage.packageId,title:e.htmlPackage.title,type:jr.HTML_PACKAGE,metadata:e.htmlPackage.metadata};case ur.HTML_PACKAGE_PAGE:return{id:e.htmlPackagePage.packageId,title:e.htmlPackagePage.title,type:jr.HTML_PACKAGE,metadata:e.htmlPackagePage.metadata};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var r;return(r=(0,la.accessResult)(e))===null||r===void 0?void 0:r.originUrl}}});var wg,bt,tt,be,J,Tc=l(()=>{"use strict";wg=c(y()),bt=c(F()),tt=c(f());Cc();Di();Kt();Ag();ys();be=function(t,e,r,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},J=class extends tt.FtLitElementRedux{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=vo.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 aa(this.stateManager.store)),this._eventManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.applyStickyFilters=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.otherQueryParams={},this._appIntegrationInfoReady=!1,this.disableAnalyticsEvents=!1,this.addStore(S)}render(){return wg.html`
|
|
699
|
+
`});function pg(t){var e;return((e=(0,mo.accessResult)(t))===null||e===void 0?void 0:e.openMode)===Rn.EXTERNAL}function ia(t,e){return pg(t)?(0,mo.accessResult)(t).originUrl:(0,mo.accessResultUrl)(t,e)}function hg(t,e){return bt(e&&pg(t)?"_blank":void 0)}var mo,Sc=l(()=>{"use strict";Kr();ho();mo=c(f())});var $i,ys,sa,oa,na,yo,bo=l(()=>{"use strict";$i=class extends CustomEvent{constructor(e,r){super("ft-search-result-click",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}},ys=class extends CustomEvent{constructor(e,r){super("ft-search-result-open-context-menu",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}},sa=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e,composed:!0,bubbles:!0})}},oa=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e,composed:!0,bubbles:!0})}},na=class extends CustomEvent{constructor(e,r,i){super("ft-search-results-change",{detail:{request:e,paging:r,spellcheck:i},composed:!0,bubbles:!0})}},yo=class t extends Event{constructor(){super(t.eventName)}};yo.eventName="search-context-clear-all-filters"});var bg,wE,Cc,Ac=l(()=>{"use strict";bg=c(y()),wE={},Cc=bg.css`
|
|
700
|
+
`});var vg=l(()=>{"use strict"});var Jt,bs=l(()=>{"use strict";(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Jt||(Jt={}))});var xg,OE,Sg,Eg=l(()=>{"use strict";xg=c(f()),OE={setRequest:(t,e)=>{t.request=e.payload}},Sg=t=>xg.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,propagatedFacets:[]},reducers:OE,deprecatedKeys:["locales"]})});var aa,Cg=l(()=>{"use strict";Gt();aa=class extends qe{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 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 fe,Ag,wg,vs,wc=l(()=>{"use strict";bs();fe=c(f());Eg();Kr();Cg();bo();Gt();Ag=t=>t.request.virtualField===ss.TITLE_ONLY&&t.request.scope===os.DOCUMENTS,wg=t=>t.request.keywordMatch==_n.MANDATORY,vs=class t extends fe.FtStateManager{static build(e,r){return new t(Sg(e.trim()||"context"),r)}constructor(e,r){super(),this.store=e,this.ignoreEmptyQuery=!1,this.canUpdateUiLocale=!1,this.openExternalDocumentInNewTab=!1,this.applyStickyFilters=!1,this.history=new fe.QueryHistoryStorage(this.store.actions.recentQueries),this.onNewNeededRequest=i=>{i==Jt.CLUSTERED_SEARCH&&this.launchSearch()},this.onStorageEvent=i=>{i.key===this.taruqaConfigStorageKey&&this.loadTaruqaTemplate()},this.loadTaruqaTemplate=()=>{var i;let o;if(io(S.getState().session,he.DEBUG_USER)){let s=JSON.parse((i=window.localStorage.getItem(this.taruqaConfigStorageKey))!==null&&i!==void 0?i:"{}");o=s.overrideEnabled?s.template:void 0}this.updateSearchRequest({taruqaTemplateOverride:o,changedByConfiguration:!0})},this.updateLocales=(i=S.getState().availableContentLocales)=>{this.store.actions.locales(i),i.length>0&&this.forceContentLocale(this.store.getState().request.contentLocale)},this.searchDebouncer=new fe.Debouncer(100),this.launchSearch=i=>this.searchDebouncer.run(()=>this.fetchSearchData(i??this.buildSearchRequest())),this.buildSearchRequest=(i=this.store.getState())=>{var o;return{...i.request,facets:this.facetIds.map(s=>({id:s})),stickyFiltersId:this.applyStickyFilters?(o=S.getState().stickyFilters)===null||o===void 0?void 0:o.id:void 0}},this.suggestDebouncer=new fe.Debouncer(1e3),this.launchSuggest=i=>this.suggestDebouncer.run(()=>this.fetchSuggestData(i??this.buildSuggestRequest())),this.buildSuggestRequest=(i=this.store.getState())=>{var o,s;return{input:i.liveQuery,metadataFilters:i.request.metadataFilters,sort:(s=i.request.sort)!==null&&s!==void 0?s:[],sortId:i.request.sortId,contentLocale:i.request.contentLocale,scope:i.request.scope,keywordMatch:i.request.keywordMatch,stickyFiltersId:this.applyStickyFilters?(o=S.getState().stickyFilters)===null||o===void 0?void 0:o.id:void 0}},this.service=r??new aa,this.searchWatcher=new fe.ReduxWatcher(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=new fe.ReduxWatcher(e,this.buildSuggestRequest,this.launchSuggest),this.localesWatcher=new fe.ReduxWatcher(S,i=>i.availableContentLocales,this.updateLocales),this.stickyFiltersIdWatcher=new fe.ReduxWatcher(S,i=>{var o;return(o=i.stickyFilters)===null||o===void 0?void 0:o.id},()=>{this.applyStickyFilters&&(this.launchSearch(),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.loadTaruqaTemplate(),this.launchSearch()}addListeners(){window.addEventListener("storage",this.onStorageEvent),S.addEventListener(ur.eventName,this.loadTaruqaTemplate),this.searchWatcher.watch(),this.suggestWatcher.watch(),this.localesWatcher.watch(),this.stickyFiltersIdWatcher.watch(),this.history.enable(S.getState().tenantId+"-ft-recent-queries")}removeListeners(){window.removeEventListener("storage",this.onStorageEvent),S.removeEventListener(ur.eventName,this.loadTaruqaTemplate),this.searchWatcher.stop(),this.suggestWatcher.stop(),this.localesWatcher.stop(),this.stickyFiltersIdWatcher.stop(),this.history.disable()}get taruqaConfigStorageKey(){return S.getState().tenantId+"-taruqa-experiment-conf"}updateSearchRequest(e,r=!1){let i=(0,fe.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;let i=this.store.getState().request.contentLocale;return e!==i&&(e=t.findKnownContentLocale(e,i),this.updateSearchRequest({contentLocale:e,metadataFilters:[]},!0),this.canUpdateUiLocale&&(!((r=S.getState().localesConfiguration)===null||r===void 0)&&r.searchLanguageSetsUiLanguage)&&e&&Oi.requestUiLocaleUpdate(e,e)),e}static findKnownContentLocale(...e){let{availableContentLocales:r,localesConfiguration:i}=S.getState();if(r.length===0)return e[0];let o=n=>r.some(a=>a.lang==n);for(let n of e)if(o(n))return n;let s=i?.defaultLocales.defaultContentLocale;return s?`${s.lang}-${s.region}`:r[0].lang}forceContentLocale(e){this.updateSearchRequest({contentLocale:t.findKnownContentLocale(e)})}setPageSize(e){let r=this.store.getState().request;this.updateSearchRequest({paging:{...r.paging,perPage:isNaN(e)?20:(0,fe.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 s=(i=this.sortOptions.find(n=>n.id==e))!==null&&i!==void 0?i:this.sortOptions[0];return this.updateSearchRequest({sortId:s.id,...o},!0),s.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:ss.TITLE_ONLY,scope:os.DOCUMENTS},!0):this.updateSearchRequest({virtualField:ss.EVERYWHERE,scope:os.DEFAULT},!0)}setKeywordMatch(e){this.updateSearchRequest({keywordMatch:e},!0)}setVirtualField(e){this.updateSearchRequest({virtualField:e},!0)}get searchInDocumentTitlesOnly(){return Ag(this.store.getState())}get keywordMatch(){return wg(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new yo)}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})}addPropagatedFacet(e){let r=new Set(this.store.getState().propagatedFacets);r.add(e),this.store.actions.propagatedFacets([...r])}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}},s=[...i.filter(n=>!n.valueFilter),...i.filter(n=>n.valueFilter&&n.key!==o.key),o];this.setFilters(s)}setDateFilter(e,r){let i=this.store.getState().request.metadataFilters,o={key:e,dateFilter:{type:r}},s=[...i.filter(n=>!n.dateFilter),...i.filter(n=>n.dateFilter&&n.key!==o.key),o];this.setFilters(s)}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,s={key:e,rangeFilter:{from:r,to:i}},n=[...o.filter(a=>!a.rangeFilter),...o.filter(a=>a.rangeFilter&&a.key!==s.key),s];this.setFilters(n)}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}setApplyStickyFilters(e){this.applyStickyFilters=e,this.launchSearch(),this.launchSuggest()}addRecentQuery(e){this.history.addRecentQuery(e)}removeRecentQuery(e){this.history.removeRecentQuery(e)}async fetchSearchData(e){var r,i,o,s,n;if((r=this.cancelableSearch)===null||r===void 0||r.cancel(),!!this.isRequestNeeded(Jt.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,fe.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=((s=this.store.getState().results)!==null&&s!==void 0?s:[]).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 fe.CanceledPromiseError||(console.error(a),(o=this.errorHandler)===null||o===void 0||o.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,fe.cancelable)(this.service.launchSuggest(e));let i=await this.cancelableSuggest;this.store.actions.suggestResults(i.suggestions)}catch(i){!(i instanceof fe.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 Xr,vo,Oc,Rc,Og,_c,_E,RE,Nt,Di=l(()=>{"use strict";Xr=c(f()),vo=c(F());bs();wc();Oc=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},Rc=class extends Xr.FtContextRegistrationEvent{constructor(e){super("register-ft-search-component",e)}},Og=Symbol("registerInterval"),_c=Symbol("registerAttempts"),_E=40,RE=(0,Xr.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(i){var o,s,n;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[_c]=0,this.tryToRegisterToContext(),this[Og]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[_c]>_E?window.clearInterval(this[Og]):(this[_c]++,this.dispatchEvent(new Rc({target:this,registrationId:this.searchRegistrationId})))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Oc([(0,vo.state)()],e.prototype,"stateManager",void 0),Oc([(0,vo.state)({hasChanged:Xr.hasChanged})],e.prototype,"neededSearchRequests",void 0),Oc([(0,vo.property)()],e.prototype,"searchRegistrationId",void 0),e}),Nt=class extends RE(Xr.FtLitElementRedux){}});function xo(t){return t.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function So(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 Tc=l(()=>{"use strict"});var ca,la,_g=l(()=>{"use strict";ca=c(f());Kr();Gt();Tc();la=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||!o)return;let s=this.store.getState().request;this.document==null?this.sendKhubSearchEvent(s,i,o):this.sendDocumentSearchEvent(s,i,o)},this.eventsService=r??new Mn,this.resultsWatcher=(0,ca.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}=S.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}=S.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,r,i){let o={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Ei.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:i.totalClustersCount},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:xo(e.metadataFilters),facets:e.metadataFilters.map(s=>So(s))}};this.eventsService.sendKhubSearchEvent(o)}sendDocumentSearchEvent(e,r,i){if(e.metadataFilters.find(s=>{var n;return s.key==="ft:publicationId"&&((n=s.valueFilter)===null||n===void 0?void 0:n.values[0])===this.document.id})!==void 0){let s={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Ei.DOCUMENT__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:i.totalClustersCount},searchQuery:{terms:e.query},document:this.document};this.eventsService.sendDocumentSearchEvent(s)}}sendResultClickedEvent(e,r){if(!this.canSendEvent())return;let i=this.store.getState().request,o;e.type==dr.TOPIC&&(o={tocId:e.topic.tocId,title:e.topic.title});let s={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Ei.SEARCH_PAGE__SELECT,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:xo(i.metadataFilters),facets:i.metadataFilters.map(n=>So(n))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:o},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchPageSelectEvent(s)}sendResultContextMenuOpenedEvent(e,r){if(!this.canSendEvent())return;let i=this.store.getState().request,o;e.type==dr.TOPIC&&(o={tocId:e.topic.tocId,title:e.topic.title});let s={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Ei.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:xo(i.metadataFilters),facets:i.metadataFilters.map(n=>So(n))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:o},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchResultOpenContextMenuEvent(s)}convertDocument(e){switch(e.type){case dr.MAP:return{id:e.map.mapId,title:e.map.title,type:qr.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case dr.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:qr.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case dr.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:qr.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};case dr.HTML_PACKAGE:return{id:e.htmlPackage.packageId,title:e.htmlPackage.title,type:qr.HTML_PACKAGE,metadata:e.htmlPackage.metadata};case dr.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,ca.accessResult)(e))===null||r===void 0?void 0:r.originUrl}}});var Rg,vt,et,me,Z,kc=l(()=>{"use strict";Rg=c(y()),vt=c(F()),et=c(f());Ac();Di();Gt();_g();bo();me=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},Z=class extends et.FtLitElementRedux{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=vs.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 la(this.stateManager.store)),this._eventManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.applyStickyFilters=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.otherQueryParams={},this._appIntegrationInfoReady=!1,this.disableAnalyticsEvents=!1,this.addStore(S)}render(){return Rg.html`
|
|
701
701
|
<slot @register-ft-search-component=${this.registerComponent} @ft-search-result-click=${this.onResultClicked}
|
|
702
702
|
@ft-search-result-open-context-menu=${this.onResultContextMenuOpened}></slot>
|
|
703
|
-
`}willUpdate(e){super.willUpdate(e),e.has("_appIntegrationInfoReady")&&this._appIntegrationInfoReady&&this.eventManager.initAppInfo(),e.has("disableAnalyticsEvents")&&this.eventManager.setEnableAnalyticsEvents(!this.disableAnalyticsEvents),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("applyStickyFilters")&&this.stateManager.setApplyStickyFilters(this.applyStickyFilters),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(),Oi.knownContexts.register(this),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.addListeners()}disconnectedCallback(){super.disconnectedCallback(),Oi.knownContexts.unregister(this),this.stateManager.removeListeners(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new oa(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new
|
|
703
|
+
`}willUpdate(e){super.willUpdate(e),e.has("_appIntegrationInfoReady")&&this._appIntegrationInfoReady&&this.eventManager.initAppInfo(),e.has("disableAnalyticsEvents")&&this.eventManager.setEnableAnalyticsEvents(!this.disableAnalyticsEvents),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("applyStickyFilters")&&this.stateManager.setApplyStickyFilters(this.applyStickyFilters),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(),Oi.knownContexts.register(this),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.addListeners()}disconnectedCallback(){super.disconnectedCallback(),Oi.knownContexts.unregister(this),this.stateManager.removeListeners(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new oa(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new na(this.request,this.paging,this.spellcheckAutocorrect))}registerComponent(e){var r,i,o;if(e.stopPropagation(),((r=e.detail)===null||r===void 0?void 0:r.registrationId)==this.registrationId){let s=(o=(i=e.detail)===null||i===void 0?void 0:i.target)!==null&&o!==void 0?o:e.composedPath()[0];this.register(s)}}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new sa(e))}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)}};Z.elementDefinitions={};Z.styles=Cc;me([(0,et.redux)({store:S.name})],Z.prototype,"session",void 0);me([(0,vt.property)()],Z.prototype,"query",void 0);me([(0,vt.property)()],Z.prototype,"contentLocale",void 0);me([(0,et.numberProperty)()],Z.prototype,"pageSize",void 0);me([(0,vt.property)({type:Boolean})],Z.prototype,"searchInDocumentTitlesOnly",void 0);me([(0,vt.property)()],Z.prototype,"keywordMatch",void 0);me([(0,vt.property)()],Z.prototype,"scope",void 0);me([(0,vt.property)()],Z.prototype,"virtualField",void 0);me([(0,vt.property)()],Z.prototype,"registrationId",void 0);me([(0,vt.property)({type:Boolean})],Z.prototype,"ignoreEmptyQuery",void 0);me([(0,vt.property)({type:Boolean})],Z.prototype,"applyStickyFilters",void 0);me([(0,et.redux)({store:S.name})],Z.prototype,"openExternalDocumentInNewTab",void 0);me([(0,et.jsonProperty)([])],Z.prototype,"filters",void 0);me([(0,vt.property)()],Z.prototype,"sortId",void 0);me([(0,et.jsonProperty)([])],Z.prototype,"sort",void 0);me([(0,et.jsonProperty)({})],Z.prototype,"otherQueryParams",void 0);me([(0,et.redux)({store:"search"})],Z.prototype,"request",void 0);me([(0,et.redux)({store:"search"})],Z.prototype,"paging",void 0);me([(0,et.redux)({store:"search",selector:t=>t.spellcheck})],Z.prototype,"spellcheckAutocorrect",void 0);me([(0,et.redux)({store:S.name,selector:t=>t.apiIntegrationIdentifier!==void 0&&t.apiIntegrationAppVersion!==void 0})],Z.prototype,"_appIntegrationInfoReady",void 0);me([(0,vt.property)({attribute:!1})],Z.prototype,"searchServiceProvider",void 0);me([(0,vt.property)({type:Boolean})],Z.prototype,"disableAnalyticsEvents",void 0)});var Tg,kg=l(()=>{"use strict";kc();Tg={"ft-search-context":Z}});var Lg,Ig=l(()=>{"use strict";Lg=c(f());kg();(0,Lg.customElements)(Tg)});var $g={};oi($g,{FtSearchContext:()=>Z,FtSearchContextCssVariables:()=>wE,FtSearchStateManager:()=>vs,convertMetadataFilterToAnalyticsFacet:()=>So,getAnalyticsLastUpdate:()=>xo,keywordMatchSelector:()=>wg,searchInDocumentTitlesOnlySelector:()=>Ag,styles:()=>Cc});var Dg=l(()=>{"use strict";Ac();vg();kc();wc();Tc();Ig()});var Pg=l(()=>{"use strict"});var kr,Lc=l(()=>{"use strict";yt();kr=$t.build("designedSearchInput")});var Lr=Wi((KT,Mg)=>{Mg.exports=ftGlobals.litRepeat});var Ft,Ic=l(()=>{"use strict";(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(Ft||(Ft={}))});var Ng,Fg,$c=l(()=>{"use strict";Ng=c(y()),Fg=Ng.css`
|
|
704
704
|
.ft-size-watcher--pixel {
|
|
705
705
|
width: 0;
|
|
706
706
|
height: 0;
|
|
@@ -719,11 +719,11 @@
|
|
|
719
719
|
.ft-size-watcher--local .ft-size-watcher--watcher {
|
|
720
720
|
width: 100%;
|
|
721
721
|
}
|
|
722
|
-
`});var
|
|
722
|
+
`});var Bg,Pi,ua,Eo,Dc,xt,Pc=l(()=>{"use strict";Bg=c(y()),Pi=c(F()),ua=c(f());Ic();$c();Eo=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},Dc=class extends CustomEvent{constructor(e,r){super("change",{detail:{size:e,category:r}})}},xt=class extends ua.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=Ft.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new ua.Debouncer}render(){return Bg.html`
|
|
723
723
|
<div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
|
|
724
724
|
<div class="ft-size-watcher--watcher"></div>
|
|
725
725
|
</div>
|
|
726
|
-
`}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=
|
|
726
|
+
`}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=Ft.S:this.size<976?this.category=Ft.M:this.size<1024?this.category=Ft.L:this.size<1440?this.category=Ft.XL:this.category=Ft.XXL,this.dispatchEvent(new Dc(this.size,this.category)))},this.debounceTimeout)}};xt.elementDefinitions={};xt.styles=Fg;Eo([(0,Pi.property)({type:Number})],xt.prototype,"debounceTimeout",void 0);Eo([(0,Pi.property)({type:Boolean})],xt.prototype,"local",void 0);Eo([(0,Pi.property)({type:Number,reflect:!0})],xt.prototype,"size",void 0);Eo([(0,Pi.property)({type:String,reflect:!0})],xt.prototype,"category",void 0);Eo([(0,Pi.query)(".ft-size-watcher--watcher")],xt.prototype,"watcher",void 0)});var Ug,zg=l(()=>{"use strict";Pc();Ug={"ft-size-watcher":xt}});var Vg,Hg=l(()=>{"use strict";Vg=c(f());zg();(0,Vg.customElements)(Ug)});var jg=l(()=>{"use strict";Pc();$c();Ic();Hg()});function da(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function qg(t){return da(t).split("|").pop()}function Kg(t){return da(t).split("|").join(" > ")}function Wg(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>Wg(r,t.selected)),value:t.value}}function Gg(t){return(0,Mc.flatDeep)(t.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]}).filter(e=>e.selected).map(e=>e.label)}function Nc(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>Wg(e,!1))}}function Qg(t){return(0,Mc.flatDeep)(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var Mc,Fc=l(()=>{"use strict";Mc=c(f())});var Xg,re,Co,Yg,Bc=l(()=>{"use strict";Xg=c(y()),re=c(f());Li();jt();Co={buttonMoreColor:re.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",re.designSystemVariables.colorOnSurface),borderRadiusM:re.FtCssVariableFactory.external(re.designSystemVariables.borderRadiusM,"Design system"),colorOutline:re.FtCssVariableFactory.external(re.designSystemVariables.colorOutline,"Design system"),colorOnSurface:re.FtCssVariableFactory.external(re.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:re.FtCssVariableFactory.external(re.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:re.FtCssVariableFactory.external(re.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:re.FtCssVariableFactory.external(re.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:re.FtCssVariableFactory.external(re.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:re.FtCssVariableFactory.external(Ae.fontFamily,"Body2 typography"),fontSize:re.FtCssVariableFactory.external(Ae.fontSize,"Body2 typography"),fontWeight:re.FtCssVariableFactory.external(Ae.fontWeight,"Body2 typography"),letterSpacing:re.FtCssVariableFactory.external(Ae.letterSpacing,"Body2 typography"),lineHeight:re.FtCssVariableFactory.external(Ae.lineHeight,"Body2 typography"),textTransform:re.FtCssVariableFactory.external(Ae.textTransform,"Body2 typography")},Yg=Xg.css`
|
|
727
727
|
.ft-filter-level--container {
|
|
728
728
|
display: flex;
|
|
729
729
|
flex-direction: column;
|
|
@@ -738,14 +738,14 @@
|
|
|
738
738
|
flex-shrink: 0;
|
|
739
739
|
text-decoration: none;
|
|
740
740
|
position: relative;
|
|
741
|
-
border-radius: ${
|
|
741
|
+
border-radius: ${Co.borderRadiusM};
|
|
742
742
|
overflow: hidden;
|
|
743
743
|
display: flex;
|
|
744
744
|
align-items: center;
|
|
745
745
|
padding: 4px 4px;
|
|
746
746
|
gap: 4px;
|
|
747
747
|
cursor: pointer;
|
|
748
|
-
color: ${
|
|
748
|
+
color: ${Co.colorOnSurface};
|
|
749
749
|
}
|
|
750
750
|
|
|
751
751
|
.ft-filter-level--go-back:focus {
|
|
@@ -774,11 +774,11 @@
|
|
|
774
774
|
}
|
|
775
775
|
|
|
776
776
|
ft-button {
|
|
777
|
-
${(0,re.setVariable)(
|
|
777
|
+
${(0,re.setVariable)(I.color,Co.colorOnSurface)};
|
|
778
778
|
}
|
|
779
779
|
|
|
780
780
|
ft-button.ft-filter-level--display-more {
|
|
781
|
-
${(0,re.setVariable)(
|
|
781
|
+
${(0,re.setVariable)(I.color,Co.buttonMoreColor)};
|
|
782
782
|
}
|
|
783
783
|
|
|
784
784
|
ft-radio, ft-checkbox {
|
|
@@ -792,17 +792,17 @@
|
|
|
792
792
|
|
|
793
793
|
.ft-filter-level--no-values {
|
|
794
794
|
margin: 10px 0;
|
|
795
|
-
color: ${
|
|
795
|
+
color: ${Co.colorOnSurfaceMedium};
|
|
796
796
|
}
|
|
797
|
-
`});var
|
|
797
|
+
`});var ke,Zg,St,Jg,Uc=l(()=>{"use strict";ke=c(f()),Zg=c(y());ye();Qe();St={textColor:ke.FtCssVariableFactory.extend("--ft-checkbox-text-color","",ke.designSystemVariables.colorOnSurfaceHigh),fontSize:ke.FtCssVariableFactory.extend("--ft-checkbox-font-size","",v.fontSize),activeColor:ke.FtCssVariableFactory.extend("--ft-checkbox-active-color","",ke.designSystemVariables.colorPrimary),checkColor:ke.FtCssVariableFactory.extend("--ft-checkbox-check-color","",ke.designSystemVariables.colorOnPrimary),borderColor:ke.FtCssVariableFactory.extend("--ft-checkbox-border-color","",ke.designSystemVariables.colorOnSurfaceMedium),disabledColor:ke.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",ke.designSystemVariables.colorOnSurfaceDisabled),errorColor:ke.FtCssVariableFactory.extend("--ft-checkbox-error-color","",ke.designSystemVariables.colorError)},Jg=Zg.css`
|
|
798
798
|
* {
|
|
799
799
|
box-sizing: border-box;
|
|
800
800
|
}
|
|
801
801
|
|
|
802
802
|
.ft-checkbox {
|
|
803
803
|
box-sizing: border-box;
|
|
804
|
-
color: ${
|
|
805
|
-
font-size: ${
|
|
804
|
+
color: ${St.textColor};
|
|
805
|
+
font-size: ${St.fontSize};
|
|
806
806
|
|
|
807
807
|
display: inline-flex;
|
|
808
808
|
align-items: center;
|
|
@@ -810,7 +810,7 @@
|
|
|
810
810
|
}
|
|
811
811
|
|
|
812
812
|
.ft-checkbox--disabled {
|
|
813
|
-
color: ${
|
|
813
|
+
color: ${St.disabledColor};
|
|
814
814
|
}
|
|
815
815
|
|
|
816
816
|
input {
|
|
@@ -834,26 +834,26 @@
|
|
|
834
834
|
|
|
835
835
|
.ft-checkbox--box {
|
|
836
836
|
display: flex;
|
|
837
|
-
border: 2px solid ${
|
|
837
|
+
border: 2px solid ${St.borderColor};
|
|
838
838
|
border-radius: 2px;
|
|
839
839
|
|
|
840
840
|
width: 18px;
|
|
841
841
|
height: 18px;
|
|
842
842
|
|
|
843
|
-
color: ${
|
|
843
|
+
color: ${St.checkColor};
|
|
844
844
|
}
|
|
845
845
|
|
|
846
846
|
|
|
847
847
|
.ft-checkbox--checked .ft-checkbox--box,
|
|
848
848
|
.ft-checkbox--indeterminate .ft-checkbox--box {
|
|
849
|
-
border-color: ${
|
|
850
|
-
background-color: ${
|
|
849
|
+
border-color: ${St.activeColor};
|
|
850
|
+
background-color: ${St.activeColor};
|
|
851
851
|
}
|
|
852
852
|
|
|
853
853
|
.ft-checkbox--disabled .ft-checkbox--box {
|
|
854
|
-
border-color: ${
|
|
854
|
+
border-color: ${St.disabledColor};
|
|
855
855
|
background-color: transparent;
|
|
856
|
-
color: ${
|
|
856
|
+
color: ${St.disabledColor};
|
|
857
857
|
}
|
|
858
858
|
|
|
859
859
|
.ft-checkbox--checkmark {
|
|
@@ -874,29 +874,29 @@
|
|
|
874
874
|
}
|
|
875
875
|
|
|
876
876
|
.ft-checkbox.ft-checkbox--error {
|
|
877
|
-
color: ${
|
|
878
|
-
${(0,
|
|
877
|
+
color: ${St.errorColor};
|
|
878
|
+
${(0,ke.setVariable)(z.color,St.errorColor)};
|
|
879
879
|
|
|
880
880
|
.ft-checkbox--box {
|
|
881
|
-
border-color: ${
|
|
881
|
+
border-color: ${St.errorColor};
|
|
882
882
|
}
|
|
883
883
|
|
|
884
884
|
&.ft-checkbox--checked, &.ft-checkbox--indeterminate {
|
|
885
885
|
.ft-checkbox--box {
|
|
886
|
-
background-color: ${
|
|
886
|
+
background-color: ${St.errorColor};
|
|
887
887
|
}
|
|
888
888
|
}
|
|
889
889
|
}
|
|
890
890
|
|
|
891
891
|
.ft-checkbox:has(:focus-visible) {
|
|
892
|
-
outline: 2px solid ${
|
|
892
|
+
outline: 2px solid ${ke.designSystemVariables.colorPrimary};
|
|
893
893
|
outline-offset: -2px;
|
|
894
894
|
}
|
|
895
895
|
|
|
896
896
|
.ft-checkbox ft-typography {
|
|
897
897
|
padding-right: 2px;
|
|
898
898
|
}
|
|
899
|
-
`});var
|
|
899
|
+
`});var pa,Bt,ey,ty,fr,zc,Le,Vc=l(()=>{"use strict";pa=c(y()),Bt=c(F()),ey=c(f()),ty=c(ot());ho();Qe();ye();Uc();fr=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},zc=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Le=class extends ey.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1,this.ariaLabel=null}get checkboxClasses(){return{"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.indeterminate?!1:this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled}}renderBoxContainer(){return pa.html`
|
|
900
900
|
<div class="ft-checkbox--box-container" part="checkbox-box-container">
|
|
901
901
|
<ft-ripple part="checkbox-ripple"
|
|
902
902
|
?disabled=${this.disabled}
|
|
@@ -912,34 +912,34 @@
|
|
|
912
912
|
name="${this.name}"
|
|
913
913
|
aria-checked="${this.indeterminate?"mixed":this.checked?"true":"false"}"
|
|
914
914
|
role="checkbox"
|
|
915
|
-
aria-label="${
|
|
915
|
+
aria-label="${bt(this.ariaLabel)}"
|
|
916
916
|
.checked=${this.indeterminate?!1:this.checked}
|
|
917
917
|
.indeterminate=${this.indeterminate}
|
|
918
918
|
.disabled=${this.disabled}
|
|
919
919
|
@change=${this.onChange}
|
|
920
920
|
>
|
|
921
921
|
</div>
|
|
922
|
-
`}render(){return
|
|
923
|
-
<label class="${(0,
|
|
922
|
+
`}render(){return pa.html`
|
|
923
|
+
<label class="${(0,ty.classMap)(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
|
|
924
924
|
${this.renderBoxContainer()}
|
|
925
|
-
<ft-typography variant="${
|
|
925
|
+
<ft-typography variant="${Q.body2}" part="checkbox-body">
|
|
926
926
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
927
927
|
</ft-typography>
|
|
928
928
|
</label>
|
|
929
|
-
`}renderBoxIcon(){return
|
|
929
|
+
`}renderBoxIcon(){return pa.html`
|
|
930
930
|
<svg class="ft-checkbox--checkmark" viewBox="0 0 24 24" part="checkbox-check" aria-hidden="true">
|
|
931
931
|
<path class="ft-checkbox--checkmark-path" fill="none"
|
|
932
932
|
d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
|
|
933
933
|
</svg>
|
|
934
|
-
`}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
|
|
934
|
+
`}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 zc(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)}};Le.elementDefinitions={"ft-ripple":L,"ft-typography":V};Le.styles=Jg;fr([(0,Bt.property)()],Le.prototype,"name",void 0);fr([(0,Bt.property)()],Le.prototype,"value",void 0);fr([(0,Bt.property)({type:Boolean,reflect:!0})],Le.prototype,"checked",void 0);fr([(0,Bt.property)({type:Boolean})],Le.prototype,"indeterminate",void 0);fr([(0,Bt.property)({type:Boolean})],Le.prototype,"disabled",void 0);fr([(0,Bt.property)({type:Boolean})],Le.prototype,"error",void 0);fr([(0,Bt.property)({attribute:"aria-label"})],Le.prototype,"ariaLabel",void 0);fr([(0,Bt.query)(".ft-checkbox")],Le.prototype,"container",void 0);fr([(0,Bt.query)("ft-ripple")],Le.prototype,"ripple",void 0);fr([(0,Bt.query)("input")],Le.prototype,"input",void 0)});var ry=l(()=>{"use strict"});var iy,sy=l(()=>{"use strict";Vc();iy={"ft-checkbox":Le}});var oy,ny=l(()=>{"use strict";oy=c(f());sy();(0,oy.customElements)(iy)});var ay=l(()=>{"use strict";Vc();Uc();ry();ny()});var ly,dt,Yr,cy,Hc=l(()=>{"use strict";ly=c(y()),dt=c(f());ye();Yr={textColor:dt.FtCssVariableFactory.extend("--ft-radio-text-color","",dt.designSystemVariables.colorOnSurfaceHigh),fontSize:dt.FtCssVariableFactory.extend("--ft-radio-font-size","",v.fontSize),colorPrimary:dt.FtCssVariableFactory.external(dt.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:dt.FtCssVariableFactory.external(dt.designSystemVariables.colorOnPrimary,"Design system"),borderColor:dt.FtCssVariableFactory.extend("--ft-radio-border-color","",dt.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:dt.FtCssVariableFactory.external(dt.designSystemVariables.colorOnSurfaceDisabled,"Design system")},cy=ly.css`
|
|
935
935
|
* {
|
|
936
936
|
box-sizing: border-box;
|
|
937
937
|
}
|
|
938
938
|
|
|
939
939
|
.ft-radio {
|
|
940
940
|
box-sizing: border-box;
|
|
941
|
-
color: ${
|
|
942
|
-
font-size: ${
|
|
941
|
+
color: ${Yr.textColor};
|
|
942
|
+
font-size: ${Yr.fontSize};
|
|
943
943
|
|
|
944
944
|
display: inline-flex;
|
|
945
945
|
align-items: center;
|
|
@@ -947,7 +947,7 @@
|
|
|
947
947
|
}
|
|
948
948
|
|
|
949
949
|
.ft-radio--disabled {
|
|
950
|
-
color: ${
|
|
950
|
+
color: ${Yr.colorOnSurfaceDisabled};
|
|
951
951
|
}
|
|
952
952
|
|
|
953
953
|
input {
|
|
@@ -970,7 +970,7 @@
|
|
|
970
970
|
}
|
|
971
971
|
|
|
972
972
|
.ft-radio--box {
|
|
973
|
-
border: 2px solid ${
|
|
973
|
+
border: 2px solid ${Yr.borderColor};
|
|
974
974
|
border-radius: 50%;
|
|
975
975
|
|
|
976
976
|
display: flex;
|
|
@@ -983,7 +983,7 @@
|
|
|
983
983
|
|
|
984
984
|
.ft-radio--box:after {
|
|
985
985
|
content: " ";
|
|
986
|
-
background-color: ${
|
|
986
|
+
background-color: ${Yr.colorPrimary};
|
|
987
987
|
|
|
988
988
|
border-radius: 50%;
|
|
989
989
|
|
|
@@ -995,7 +995,7 @@
|
|
|
995
995
|
}
|
|
996
996
|
|
|
997
997
|
.ft-radio--checked .ft-radio--box {
|
|
998
|
-
border-color: ${
|
|
998
|
+
border-color: ${Yr.colorPrimary};
|
|
999
999
|
}
|
|
1000
1000
|
|
|
1001
1001
|
|
|
@@ -1004,12 +1004,12 @@
|
|
|
1004
1004
|
}
|
|
1005
1005
|
|
|
1006
1006
|
.ft-radio--disabled .ft-radio--box {
|
|
1007
|
-
border-color: ${
|
|
1007
|
+
border-color: ${Yr.colorOnSurfaceDisabled};
|
|
1008
1008
|
background-color: transparent;
|
|
1009
1009
|
}
|
|
1010
1010
|
|
|
1011
1011
|
.ft-radio--disabled .ft-radio--box:after {
|
|
1012
|
-
background-color: ${
|
|
1012
|
+
background-color: ${Yr.colorOnSurfaceDisabled};
|
|
1013
1013
|
}
|
|
1014
1014
|
|
|
1015
1015
|
.ft-radio:has(:focus-visible) {
|
|
@@ -1020,8 +1020,8 @@
|
|
|
1020
1020
|
.ft-radio ft-typography {
|
|
1021
1021
|
padding-right: 2px;
|
|
1022
1022
|
}
|
|
1023
|
-
`});var
|
|
1024
|
-
<div class="${(0,
|
|
1023
|
+
`});var uy,mr,dy,py,Zr,ha,Ie,jc=l(()=>{"use strict";uy=c(y()),mr=c(F()),dy=c(f()),py=c(ot());Qe();ye();Fo();Hc();Zr=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},ha=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},Ie=class extends dy.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 uy.html`
|
|
1024
|
+
<div class="${(0,py.classMap)(this.radioClasses)}"
|
|
1025
1025
|
@click=${this.onClick}>
|
|
1026
1026
|
<div class="ft-radio--box-container">
|
|
1027
1027
|
<ft-ripple
|
|
@@ -1041,12 +1041,12 @@
|
|
|
1041
1041
|
>
|
|
1042
1042
|
</div>
|
|
1043
1043
|
<label for="radio-button" inert>
|
|
1044
|
-
<ft-typography variant="${
|
|
1044
|
+
<ft-typography variant="${Q.body2}">
|
|
1045
1045
|
<slot></slot>
|
|
1046
1046
|
</ft-typography>
|
|
1047
1047
|
</label>
|
|
1048
1048
|
</div>
|
|
1049
|
-
`}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
|
|
1049
|
+
`}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 ha(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 ha(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())}};Ie.elementDefinitions={"ft-ripple":L,"ft-typography":V};Ie.styles=cy;Zr([(0,mr.property)()],Ie.prototype,"name",void 0);Zr([(0,mr.property)()],Ie.prototype,"value",void 0);Zr([(0,mr.property)({type:Boolean,reflect:!0})],Ie.prototype,"checked",void 0);Zr([(0,mr.property)({attribute:"aria-checked",reflect:!0})],Ie.prototype,"ariaChecked",void 0);Zr([(0,mr.property)({type:Boolean})],Ie.prototype,"disabled",void 0);Zr([(0,mr.query)(".ft-radio")],Ie.prototype,"container",void 0);Zr([(0,mr.query)("ft-ripple")],Ie.prototype,"ripple",void 0);Zr([(0,mr.query)("input")],Ie.prototype,"input",void 0)});var hy=l(()=>{"use strict"});var fy,my,qc=l(()=>{"use strict";fy=c(y()),my=fy.css`
|
|
1050
1050
|
:host {
|
|
1051
1051
|
display: block;
|
|
1052
1052
|
}
|
|
@@ -1054,14 +1054,14 @@
|
|
|
1054
1054
|
:host(:focus-visible) {
|
|
1055
1055
|
outline: none;
|
|
1056
1056
|
}
|
|
1057
|
-
`});var
|
|
1057
|
+
`});var gy,Jr,yy,Ao,Et,Kc=l(()=>{"use strict";gy=c(f()),Jr=c(F()),yy=c(y());qc();Ao=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},Et=class extends gy.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 yy.html`
|
|
1058
1058
|
<slot @slotchange=${this.onSlotChange}
|
|
1059
1059
|
@change=${this.onChange}
|
|
1060
1060
|
@keydown=${this.onKeyDown}
|
|
1061
1061
|
></slot>
|
|
1062
|
-
`}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()}};
|
|
1062
|
+
`}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()}};Et.elementDefinitions={};Et.styles=my;Ao([(0,Jr.property)()],Et.prototype,"name",void 0);Ao([(0,Jr.property)({reflect:!0,attribute:"role"})],Et.prototype,"role",void 0);Ao([(0,Jr.property)({reflect:!0,attribute:"aria-labelledby"})],Et.prototype,"ariaLabelledBy",void 0);Ao([(0,Jr.queryAssignedElements)()],Et.prototype,"assignedElements",void 0);Ao([(0,Jr.state)()],Et.prototype,"currentSelectedIndex",void 0)});var by=l(()=>{"use strict"});var vy,xy=l(()=>{"use strict";jc();Kc();vy={"ft-radio":Ie,"ft-radio-group":Et}});var Sy,Ey=l(()=>{"use strict";Sy=c(f());xy();(0,Sy.customElements)(vy)});var Wc=l(()=>{"use strict";jc();hy();Hc();Kc();by();qc();Ey()});var Mi,Gc=l(()=>{"use strict";yt();Mi=$t.build("designedFilterComponent")});var Ct,Ne,Cy,pt,tt,Qc,ve,Ay=l(()=>{"use strict";Ct=c(y()),Ne=c(F()),Cy=c(Lr()),pt=c(f());Zt();ye();Qe();Tr();ay();Wc();Bc();yt();Gc();tt=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},Qc={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},ve=class extends(0,pt.withAnalytics)(ct((0,pt.withAriaNotification)(pt.FtLitElement)),Qc){constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new pt.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 Ct.html`
|
|
1063
1063
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
1064
|
-
${this.parent==null?null:
|
|
1064
|
+
${this.parent==null?null:Ct.html`
|
|
1065
1065
|
<div tabindex="0"
|
|
1066
1066
|
part="controls go-back"
|
|
1067
1067
|
class="ft-filter-level--go-back"
|
|
@@ -1072,18 +1072,18 @@
|
|
|
1072
1072
|
@click=${this.goBackOnClick}>
|
|
1073
1073
|
<ft-ripple></ft-ripple>
|
|
1074
1074
|
<ft-icon>thin_arrow_left</ft-icon>
|
|
1075
|
-
<ft-typography variant="${
|
|
1075
|
+
<ft-typography variant="${Q.body2}">${this.parent.label}</ft-typography>
|
|
1076
1076
|
</div>
|
|
1077
1077
|
`}
|
|
1078
|
-
${this.filteredOptions.length===0
|
|
1079
|
-
<ft-typography class="ft-filter-level--no-values" element="span" variant="${
|
|
1080
|
-
${
|
|
1078
|
+
${this.filteredOptions.length===0?Ct.html`
|
|
1079
|
+
<ft-typography class="ft-filter-level--no-values" element="span" variant="${Q.body2}">
|
|
1080
|
+
${Mi.messages.noFilterValuesAvailable()}
|
|
1081
1081
|
</ft-typography>
|
|
1082
|
-
`:
|
|
1083
|
-
${(0,
|
|
1082
|
+
`:Ct.nothing}
|
|
1083
|
+
${(0,Cy.repeat)(e,r=>r.value,r=>{var i;return Ct.html`
|
|
1084
1084
|
<div class="ft-filter-level--option" part="options" tabindex="-1">
|
|
1085
1085
|
${this.multivalued?this.buildMultiValuedOption(r):this.buildMonoValuedOption(r)}
|
|
1086
|
-
${this.preventNavigation||r.selected||((i=r.subOptions)!==null&&i!==void 0?i:[]).length===0?
|
|
1086
|
+
${this.preventNavigation||r.selected||((i=r.subOptions)!==null&&i!==void 0?i:[]).length===0?Ct.nothing:Ct.html`
|
|
1087
1087
|
<ft-button icon="thin_arrow_right"
|
|
1088
1088
|
part="controls navigate-hierarchy"
|
|
1089
1089
|
aria-label="Expand node"
|
|
@@ -1094,29 +1094,29 @@
|
|
|
1094
1094
|
`}
|
|
1095
1095
|
</div>
|
|
1096
1096
|
`})}
|
|
1097
|
-
${e.length<this.filteredOptions.length?
|
|
1097
|
+
${e.length<this.filteredOptions.length?Ct.html`
|
|
1098
1098
|
<ft-button
|
|
1099
1099
|
class="ft-filter-level--display-more"
|
|
1100
1100
|
icon="thin_arrow"
|
|
1101
1101
|
dense trailingIcon
|
|
1102
1102
|
part="controls display-more"
|
|
1103
1103
|
@click=${()=>{this.emitAnalyticsAction("more-filters-button-pressed",{}),this.displayMore()}}>
|
|
1104
|
-
${
|
|
1104
|
+
${Mi.messages.displayMoreFilterValuesButton()}
|
|
1105
1105
|
</ft-button>
|
|
1106
|
-
`:
|
|
1106
|
+
`:Ct.nothing}
|
|
1107
1107
|
</div>
|
|
1108
|
-
`}goBackOnKeyPress(e){(e.key==="Enter"||e.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){var e;let r=(e=this.limit)!==null&&e!==void 0?e:0,i=this.parent!=null;this.displayedPages++,this.elementToFocus={selector:`.ft-filter-level--option:nth-child(${r+(i?2:1)}) [part~="option"]`}}buildMultiValuedOption(e){var r;return
|
|
1108
|
+
`}goBackOnKeyPress(e){(e.key==="Enter"||e.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){var e;let r=(e=this.limit)!==null&&e!==void 0?e:0,i=this.parent!=null;this.displayedPages++,this.elementToFocus={selector:`.ft-filter-level--option:nth-child(${r+(i?2:1)}) [part~="option"]`}}buildMultiValuedOption(e){var r;return Ct.html`
|
|
1109
1109
|
<ft-checkbox name="${this.filterId}"
|
|
1110
1110
|
part="multivalued-option option"
|
|
1111
1111
|
.exportpartsPrefixes=${["multivalued-option","option"]}
|
|
1112
1112
|
data-value="${e.value}"
|
|
1113
1113
|
.checked=${e.selected}
|
|
1114
1114
|
.disabled=${this.disabled}
|
|
1115
|
-
.indeterminate=${(0,pt.flatDeep)((r=e.subOptions)!==null&&r!==void 0?r:[],i=>{var
|
|
1115
|
+
.indeterminate=${(0,pt.flatDeep)((r=e.subOptions)!==null&&r!==void 0?r:[],i=>{var o;return(o=i.subOptions)!==null&&o!==void 0?o:[]}).some(i=>i.selected)}
|
|
1116
1116
|
@change=${i=>this.optionsChanged(i,e)}>
|
|
1117
1117
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1118
1118
|
</ft-checkbox>
|
|
1119
|
-
`}buildMonoValuedOption(e){return
|
|
1119
|
+
`}buildMonoValuedOption(e){return Ct.html`
|
|
1120
1120
|
<ft-radio name="${this.filterId+Math.round(Math.random()*1e6)}"
|
|
1121
1121
|
part="monovalued-option option"
|
|
1122
1122
|
data-value="${e.value}"
|
|
@@ -1127,7 +1127,7 @@
|
|
|
1127
1127
|
@change=${r=>this.optionsChanged(r,e)}>
|
|
1128
1128
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1129
1129
|
</ft-radio>
|
|
1130
|
-
`}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)})}};
|
|
1130
|
+
`}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)})}};ve.elementDefinitions={"ft-button":w,"ft-ripple":L,"ft-typography":V,"ft-checkbox":Le,"ft-icon":ae,"ft-radio":Ie};ve.styles=Yg;tt([(0,Ne.property)({type:String})],ve.prototype,"filterId",void 0);tt([(0,Ne.property)({type:Object})],ve.prototype,"parent",void 0);tt([(0,Ne.property)({type:Array,hasChanged:pt.hasChanged})],ve.prototype,"options",void 0);tt([(0,Ne.property)({type:Boolean})],ve.prototype,"multivalued",void 0);tt([(0,Ne.property)({type:Boolean})],ve.prototype,"disabled",void 0);tt([(0,Ne.property)({type:Boolean})],ve.prototype,"hideSelectedOptions",void 0);tt([(0,Ne.property)({type:Boolean})],ve.prototype,"displayCount",void 0);tt([(0,Ne.property)({type:Boolean})],ve.prototype,"preventNavigation",void 0);tt([(0,Ne.property)({type:String})],ve.prototype,"filter",void 0);tt([(0,Ne.property)()],ve.prototype,"filteredOptionsNumberAriaNotification",void 0);tt([(0,pt.numberProperty)()],ve.prototype,"displayedValuesLimit",void 0);tt([(0,Ne.query)(".ft-filter-level--container")],ve.prototype,"container",void 0);tt([(0,Ne.state)()],ve.prototype,"radios",void 0);tt([(0,Ne.state)()],ve.prototype,"displayedPages",void 0);tt([(0,Ne.state)()],ve.prototype,"filteredOptions",void 0)});var wy,er,rt,Oy,fa=l(()=>{"use strict";wy=c(y()),er=c(f());Li();rt={buttonsColor:er.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",er.designSystemVariables.colorPrimary),buttonsZIndex:er.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:er.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:er.FtCssVariableFactory.external(er.designSystemVariables.colorSurface,"Design system")},Oy=wy.css`
|
|
1131
1131
|
.ft-snap-scroll {
|
|
1132
1132
|
box-sizing: border-box;
|
|
1133
1133
|
position: relative;
|
|
@@ -1208,8 +1208,8 @@
|
|
|
1208
1208
|
z-index: ${rt.buttonsZIndex};
|
|
1209
1209
|
opacity: 1;
|
|
1210
1210
|
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
1211
|
-
${(0,
|
|
1212
|
-
${(0,
|
|
1211
|
+
${(0,er.setVariable)(I.backgroundColor,"transparent")};
|
|
1212
|
+
${(0,er.setVariable)(I.color,rt.buttonsColor)};
|
|
1213
1213
|
}
|
|
1214
1214
|
|
|
1215
1215
|
.ft-snap-scroll--previous[hidden],
|
|
@@ -1252,7 +1252,7 @@
|
|
|
1252
1252
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1253
1253
|
background-color: ${rt.colorSurface};
|
|
1254
1254
|
}
|
|
1255
|
-
`});var
|
|
1255
|
+
`});var _y,At,Ni,Ry,gr,Xc,Oe,Yc=l(()=>{"use strict";_y=c(y()),At=c(F()),Ni=c(f());Zt();Ry=c(ot());fa();gr=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},Xc=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},Oe=class extends Ni.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 Ni.Debouncer(200),this.updateScrollDebouncer=new Ni.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,Ry.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":Ni.isSafari}),r=this.controls&&this.withScroll;return _y.html`
|
|
1256
1256
|
<div part="container" class="${e}">
|
|
1257
1257
|
<ft-button
|
|
1258
1258
|
class="ft-snap-scroll--previous"
|
|
@@ -1276,7 +1276,7 @@
|
|
|
1276
1276
|
@click=${this.next}
|
|
1277
1277
|
></ft-button>
|
|
1278
1278
|
</div>
|
|
1279
|
-
`}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
|
|
1279
|
+
`}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 Xc(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)}};Oe.elementDefinitions={"ft-button":w};Oe.styles=Oy;gr([(0,At.property)({type:Boolean})],Oe.prototype,"horizontal",void 0);gr([(0,At.property)({type:Boolean})],Oe.prototype,"hideScrollbar",void 0);gr([(0,At.property)({type:Boolean})],Oe.prototype,"controls",void 0);gr([(0,At.property)({type:Boolean})],Oe.prototype,"limitSize",void 0);gr([(0,At.state)()],Oe.prototype,"elements",void 0);gr([(0,At.state)()],Oe.prototype,"currentElement",void 0);gr([(0,At.state)()],Oe.prototype,"withScroll",void 0);gr([(0,At.state)()],Oe.prototype,"startReached",void 0);gr([(0,At.state)()],Oe.prototype,"endReached",void 0);gr([(0,At.query)(".ft-snap-scroll--content")],Oe.prototype,"contentSlot",void 0)});var Ty=l(()=>{"use strict"});var ky,Ly=l(()=>{"use strict";Yc();ky={"ft-snap-scroll":Oe}});var Iy,$y=l(()=>{"use strict";Iy=c(f());Ly();(0,Iy.customElements)(ky)});var ma=l(()=>{"use strict";Yc();fa();Ty();$y()});var Dy,le,ht,Py,ga=l(()=>{"use strict";Dy=c(y()),le=c(f());jt();Li();ht={colorOutline:le.FtCssVariableFactory.external(le.designSystemVariables.colorOutline,"Design system"),colorOnSurface:le.FtCssVariableFactory.external(le.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:le.FtCssVariableFactory.external(le.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:le.FtCssVariableFactory.external(le.designSystemVariables.colorPrimary,"Design system"),colorSurface:le.FtCssVariableFactory.external(le.designSystemVariables.colorSurface,"Design system"),transitionDuration:le.FtCssVariableFactory.external(le.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:le.FtCssVariableFactory.external(le.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:le.FtCssVariableFactory.extend("--ft-filter-label-color","",le.designSystemVariables.colorOnSurface),labelFontSize:le.FtCssVariableFactory.extend("--ft-filter-label-font-size","",v.fontSize,"16px")},Py=[Fr,le.noTextInputDefaultClearButton,Dy.css`
|
|
1280
1280
|
:host {
|
|
1281
1281
|
display: flex;
|
|
1282
1282
|
max-height: 100%;
|
|
@@ -1304,7 +1304,7 @@
|
|
|
1304
1304
|
.ft-filter--header ft-button {
|
|
1305
1305
|
flex-shrink: 0;
|
|
1306
1306
|
margin-left: auto;
|
|
1307
|
-
${(0,
|
|
1307
|
+
${(0,le.setVariable)(I.iconSize,"18px")};
|
|
1308
1308
|
}
|
|
1309
1309
|
|
|
1310
1310
|
.filter-label {
|
|
@@ -1318,8 +1318,8 @@
|
|
|
1318
1318
|
word-break: break-word;
|
|
1319
1319
|
color: ${ht.labelColor};
|
|
1320
1320
|
font-size: ${ht.labelFontSize};
|
|
1321
|
-
${(0,
|
|
1322
|
-
${(0,
|
|
1321
|
+
${(0,le.setVariable)(v.lineHeight,"22px")};
|
|
1322
|
+
${(0,le.setVariable)(v.fontWeight,"bold")};
|
|
1323
1323
|
}
|
|
1324
1324
|
|
|
1325
1325
|
.ft-filter--filter {
|
|
@@ -1393,25 +1393,25 @@
|
|
|
1393
1393
|
slot:not([name]) {
|
|
1394
1394
|
display: none;
|
|
1395
1395
|
}
|
|
1396
|
-
`]});var
|
|
1396
|
+
`]});var Fi,ge,xe,Se,Zc,J,Jc=l(()=>{"use strict";Fi=c(y()),ge=c(F()),xe=c(f());ye();Ay();Zt();ma();ga();Gc();Se=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},Zc=class extends CustomEvent{constructor(e){super("change",{detail:e})}},J=class extends(0,xe.withAnalytics)(xe.FtLitElement,Qc){constructor(){super(...arguments),this.id="",this.label="",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 xe.Debouncer(300),this.changeDebouncer=new xe.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,xe.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,xe.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=Mi.messages.filterInputPlaceHolder(this.label);return Fi.html`
|
|
1397
1397
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1398
1398
|
part="container">
|
|
1399
|
-
${!this.label&&!e?null:
|
|
1399
|
+
${!this.label&&!e?null:Fi.html`
|
|
1400
1400
|
|
|
1401
1401
|
<div class="ft-filter--header" part="header">
|
|
1402
1402
|
<div class="filter-label" id="id-group-${this.id}">
|
|
1403
|
-
<ft-typography class="ft-filter--label" variant="${
|
|
1403
|
+
<ft-typography class="ft-filter--label" variant="${Q.overline}" part="label">
|
|
1404
1404
|
${this.label}
|
|
1405
1405
|
</ft-typography>
|
|
1406
1406
|
<slot name="label"></slot>
|
|
1407
1407
|
</div>
|
|
1408
|
-
${e&&!this.hideClearButton?
|
|
1408
|
+
${e&&!this.hideClearButton?Fi.html`
|
|
1409
1409
|
<ft-button icon="close"
|
|
1410
|
-
aria-label="${
|
|
1410
|
+
aria-label="${Mi.messages.clearFilterButton()+" "+this.label}"
|
|
1411
1411
|
dense
|
|
1412
1412
|
@click=${()=>{this.clear(),this.focusOnFirstOption()}}
|
|
1413
1413
|
part="clear-button">
|
|
1414
|
-
${
|
|
1414
|
+
${Mi.messages.clearFilterButton()}
|
|
1415
1415
|
</ft-button>
|
|
1416
1416
|
`:null}
|
|
1417
1417
|
</div>
|
|
@@ -1433,8 +1433,8 @@
|
|
|
1433
1433
|
@slotchange=${this.updateOptionsFromSlot}
|
|
1434
1434
|
@option-change=${this.optionsChanged}></slot>
|
|
1435
1435
|
</div>
|
|
1436
|
-
`}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(i=>i.value));this.displayedLevels=this.displayedLevels.filter(i=>r.has(i)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var r,i,s,
|
|
1437
|
-
${this.raiseSelectedOptions&&r.length>0?
|
|
1436
|
+
`}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,s,n,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=(n=(s=this.shadowRoot)===null||s===void 0?void 0:s.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||n===void 0?void 0:n.hasHiddenValues)!==null&&a!==void 0?a:!1}renderLevels(){let e=this.flatOptions,r=e.filter(s=>s.selected),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,o=i<0?"ft-filter--level-center":"ft-filter--level-left";return Fi.html`
|
|
1437
|
+
${this.raiseSelectedOptions&&r.length>0?Fi.html`
|
|
1438
1438
|
<ft-filter-level
|
|
1439
1439
|
filterId="${this.id}"
|
|
1440
1440
|
?multivalued=${this.multivalued}
|
|
@@ -1451,17 +1451,16 @@
|
|
|
1451
1451
|
`:null}
|
|
1452
1452
|
<ft-snap-scroll horizontal hideScrollbar
|
|
1453
1453
|
class="ft-filter--levels"
|
|
1454
|
-
@current-element-change=${
|
|
1455
|
-
${this.renderLevel(
|
|
1456
|
-
${this.displayedLevels.map(
|
|
1454
|
+
@current-element-change=${s=>this.levelsScrollDebouncer.run(()=>{for(;s.detail.index<this.displayedLevels.length;)this.displayedLevels.pop();this.requestUpdate()})}>
|
|
1455
|
+
${this.renderLevel(o,this.options)}
|
|
1456
|
+
${this.displayedLevels.map(s=>e.find(n=>n.value===s)).map((s,n)=>{var a;let u=s?.value===this.slideIn||s?.value===this.slideOut?"ft-filter--level-right":n===i?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(u,(a=s?.subOptions)!==null&&a!==void 0?a:[],s)})}
|
|
1457
1457
|
</ft-snap-scroll>
|
|
1458
|
-
`}renderLevel(e,r,i){return
|
|
1458
|
+
`}renderLevel(e,r,i){return Fi.html`
|
|
1459
1459
|
<ft-filter-level
|
|
1460
1460
|
class="${e}"
|
|
1461
1461
|
filterId="${this.id}"
|
|
1462
1462
|
.filter=${this.filter}
|
|
1463
1463
|
.configuredAnalyticsActions=${this.configuredAnalyticsActions}
|
|
1464
|
-
moreValuesButtonLabel="${this.moreValuesButtonLabel}"
|
|
1465
1464
|
?multivalued=${this.multivalued}
|
|
1466
1465
|
?disabled=${this.disabled||e!=="ft-filter--level-center"}
|
|
1467
1466
|
?hideSelectedOptions=${this.raiseSelectedOptions}
|
|
@@ -1474,24 +1473,23 @@
|
|
|
1474
1473
|
@display-level=${this.onDisplayLevel}
|
|
1475
1474
|
part="values available-values"
|
|
1476
1475
|
.exportpartsPrefixes=${["values","available-values"]}
|
|
1477
|
-
noValuesLabel="${this.noValuesLabel}"
|
|
1478
1476
|
.filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
|
|
1479
1477
|
></ft-filter-level>
|
|
1480
|
-
`}goBack(e){this.slideOut=e.detail.value,(0,
|
|
1478
|
+
`}goBack(e){this.slideOut=e.detail.value,(0,xe.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,xe.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,xe.waitUntil)(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let i=this.flatOptions.find(s=>s.value===e.detail.value);i.selected=!i.selected;let o=s=>{var n;s!==i&&(s.selected=!1),(n=s.subOptions)===null||n===void 0||n.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,xe.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)}};J.elementDefinitions={"ft-button":w,"ft-filter-level":ve,"ft-snap-scroll":Oe,"ft-typography":V};J.styles=Py;Se([(0,ge.property)({type:String})],J.prototype,"id",void 0);Se([(0,ge.property)({type:String})],J.prototype,"label",void 0);Se([(0,xe.jsonProperty)([])],J.prototype,"options",void 0);Se([(0,ge.property)({type:Boolean})],J.prototype,"multivalued",void 0);Se([(0,ge.property)({type:Boolean})],J.prototype,"disabled",void 0);Se([(0,ge.property)({type:Boolean})],J.prototype,"raiseSelectedOptions",void 0);Se([(0,ge.property)({type:Boolean})],J.prototype,"displayCount",void 0);Se([(0,xe.numberProperty)()],J.prototype,"displayedValuesLimit",void 0);Se([(0,xe.jsonProperty)(void 0)],J.prototype,"filteredOptionsNumberAriaNotification",void 0);Se([(0,ge.property)({type:Boolean})],J.prototype,"hideClearButton",void 0);Se([(0,ge.query)(".ft-filter--slot")],J.prototype,"slotElement",void 0);Se([(0,ge.query)(".ft-filter--container")],J.prototype,"container",void 0);Se([(0,ge.query)(".ft-filter--values")],J.prototype,"valuesContainer",void 0);Se([(0,ge.query)(".ft-filter--levels")],J.prototype,"levelsContainer",void 0);Se([(0,ge.state)()],J.prototype,"lastLevelHasHiddenvalues",void 0);Se([(0,ge.query)(".ft-filter--filter input")],J.prototype,"filterInput",void 0);Se([(0,ge.queryAll)(".ft-filter--levels ft-filter-level")],J.prototype,"levels",void 0);Se([(0,ge.state)()],J.prototype,"withScroll",void 0);Se([(0,ge.state)()],J.prototype,"filter",void 0);Se([(0,ge.state)()],J.prototype,"slideIn",void 0);Se([(0,ge.state)()],J.prototype,"slideOut",void 0)});var My=l(()=>{"use strict"});var ya,Bi,Ny,xs,wt,eu=l(()=>{"use strict";ya=c(f()),Bi=c(F()),Ny=c(y()),xs=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},wt=class extends ya.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Ny.html`
|
|
1481
1479
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1482
|
-
`}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}))}};
|
|
1480
|
+
`}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}))}};wt.elementDefinitions={};xs([(0,Bi.property)({type:String})],wt.prototype,"label",void 0);xs([(0,Bi.property)({type:Object,converter:t=>t})],wt.prototype,"value",void 0);xs([(0,Bi.property)({type:Boolean,reflect:!0})],wt.prototype,"selected",void 0);xs([(0,Bi.property)({type:Object})],wt.prototype,"subOptions",void 0);xs([(0,ya.jsonProperty)({})],wt.prototype,"renderOption",void 0);xs([(0,Bi.query)(".ft-filter-option--slot")],wt.prototype,"slotElement",void 0)});var Fy=l(()=>{"use strict"});var By,Uy=l(()=>{"use strict";Jc();eu();By={"ft-filter":J,"ft-filter-option":wt}});var zy,Vy=l(()=>{"use strict";zy=c(f());Uy();(0,zy.customElements)(By)});var Hy=l(()=>{"use strict";Bc();Jc();ga();My();eu();Fy();Vy()});var jy,qy,tu=l(()=>{"use strict";jy=c(y()),qy=jy.css`
|
|
1483
1481
|
.ft-accordion {
|
|
1484
1482
|
box-sizing: border-box;
|
|
1485
1483
|
}
|
|
1486
|
-
`});var
|
|
1484
|
+
`});var Wy,ba,Gy,Ky,yr,ru=l(()=>{"use strict";Wy=c(y()),ba=c(F()),Gy=c(f());tu();Ky=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},yr=class extends Gy.FtLitElement{constructor(){super(...arguments),this.multi=!1}render(){return Wy.html`
|
|
1487
1485
|
<div class="ft-accordion">
|
|
1488
1486
|
<slot @activated=${this.onChange}></slot>
|
|
1489
1487
|
</div>
|
|
1490
|
-
`}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};yr.elementDefinitions={};yr.styles=
|
|
1488
|
+
`}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};yr.elementDefinitions={};yr.styles=qy;Ky([(0,ba.property)({type:Boolean})],yr.prototype,"multi",void 0);Ky([(0,ba.query)("slot")],yr.prototype,"content",void 0)});var Qy=l(()=>{"use strict"});var Xy,zi,Ui,Yy,iu=l(()=>{"use strict";Xy=c(y()),zi=c(f()),Ui={horizontalSpacing:zi.FtCssVariableFactory.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:zi.FtCssVariableFactory.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:zi.FtCssVariableFactory.external(zi.designSystemVariables.colorOutline,"Design system"),backgroundColor:zi.FtCssVariableFactory.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},Yy=Xy.css`
|
|
1491
1489
|
.ft-accordion-item {
|
|
1492
1490
|
display: flex;
|
|
1493
1491
|
flex-direction: column;
|
|
1494
|
-
background-color: ${
|
|
1492
|
+
background-color: ${Ui.backgroundColor};
|
|
1495
1493
|
}
|
|
1496
1494
|
|
|
1497
1495
|
.ft-accordion-item--toggle {
|
|
@@ -1501,8 +1499,8 @@
|
|
|
1501
1499
|
display: flex;
|
|
1502
1500
|
align-items: center;
|
|
1503
1501
|
cursor: pointer;
|
|
1504
|
-
padding: ${
|
|
1505
|
-
gap: calc(${
|
|
1502
|
+
padding: ${Ui.verticalSpacing} ${Ui.horizontalSpacing};
|
|
1503
|
+
gap: calc(${Ui.horizontalSpacing} / 2);
|
|
1506
1504
|
outline: none;
|
|
1507
1505
|
}
|
|
1508
1506
|
|
|
@@ -1527,13 +1525,13 @@
|
|
|
1527
1525
|
.ft-accordion-item--active .ft-accordion-item--content {
|
|
1528
1526
|
height: initial;
|
|
1529
1527
|
overflow: visible;
|
|
1530
|
-
padding: ${
|
|
1528
|
+
padding: ${Ui.verticalSpacing} ${Ui.horizontalSpacing};
|
|
1531
1529
|
}
|
|
1532
1530
|
|
|
1533
1531
|
.ft-accordion-item--separator {
|
|
1534
|
-
border-bottom: 1px solid ${
|
|
1532
|
+
border-bottom: 1px solid ${Ui.colorOutline};
|
|
1535
1533
|
}
|
|
1536
|
-
`});var
|
|
1534
|
+
`});var wo,Oo,Zy,va,Ut,su=l(()=>{"use strict";wo=c(y()),Oo=c(F()),Zy=c(f());Qe();ye();Tr();iu();va=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},Ut=class extends Zy.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return wo.html`
|
|
1537
1535
|
<div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
|
|
1538
1536
|
<div class="ft-accordion-item--toggle"
|
|
1539
1537
|
part="toggle"
|
|
@@ -1544,13 +1542,13 @@
|
|
|
1544
1542
|
aria-controls="ft-accordion-item-content"
|
|
1545
1543
|
aria-expanded="${this.active}">
|
|
1546
1544
|
<ft-ripple part="toggle-ripple"></ft-ripple>
|
|
1547
|
-
${this.icon?
|
|
1545
|
+
${this.icon?wo.html`
|
|
1548
1546
|
<ft-icon .variant=${this.iconVariant} value="${this.icon}"></ft-icon>
|
|
1549
1547
|
`:null}
|
|
1550
|
-
${this.label?
|
|
1548
|
+
${this.label?wo.html`
|
|
1551
1549
|
<ft-typography class="ft-accordion-item--label" variant="body1" part="label">${this.label}
|
|
1552
1550
|
</ft-typography>
|
|
1553
|
-
`:
|
|
1551
|
+
`:wo.html`
|
|
1554
1552
|
<slot class="ft-accordion-item--label" name="toggle" part="label"></slot>
|
|
1555
1553
|
`}
|
|
1556
1554
|
<ft-icon variant="material">${this.active?"expand_less":"expand_more"}</ft-icon>
|
|
@@ -1563,7 +1561,7 @@
|
|
|
1563
1561
|
</div>
|
|
1564
1562
|
<div class="ft-accordion-item--separator" part="separator"></div>
|
|
1565
1563
|
</div>
|
|
1566
|
-
`}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)}};
|
|
1564
|
+
`}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)}};Ut.elementDefinitions={"ft-ripple":L,"ft-typography":V,"ft-icon":ae};Ut.styles=Yy;va([(0,Oo.property)()],Ut.prototype,"icon",void 0);va([(0,Oo.property)()],Ut.prototype,"iconVariant",void 0);va([(0,Oo.property)()],Ut.prototype,"label",void 0);va([(0,Oo.property)({type:Boolean,reflect:!0})],Ut.prototype,"active",void 0)});var Jy=l(()=>{"use strict"});var eb,tb=l(()=>{"use strict";ru();su();eb={"ft-accordion":yr,"ft-accordion-item":Ut}});var rb,ib=l(()=>{"use strict";rb=c(f());tb();(0,rb.customElements)(eb)});var sb=l(()=>{"use strict";ru();tu();Qy();su();iu();Jy();ib()});var _o,B,ob,Fe,nb,ou,ab,lb,nu=l(()=>{"use strict";_o=c(y()),B=c(f());Er();jt();fs();Zt();ob=B.FtCssVariableFactory.extend("--ft-chip-color","",B.designSystemVariables.colorOnSurface),Fe={backgroundColor:B.FtCssVariableFactory.extend("--ft-chip-background-color","",B.designSystemVariables.colorSurface),color:ob,fontSize:B.FtCssVariableFactory.extend("--ft-chip-font-size","",Ae.fontSize),fontWeight:B.FtCssVariableFactory.extend("--ft-chip-font-weight","",Ae.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","",ob),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")},nb=B.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",B.FtCssVariableFactory.extend("--ft-chip-color","",B.designSystemVariables.colorOnPrimary)),ou={backgroundColor:B.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",B.FtCssVariableFactory.extend("--ft-chip-background-color","",B.designSystemVariables.colorPrimary)),color:nb,rippleColor:B.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",nb)},ab={horizontalPadding:B.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:B.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},lb=[B.noTextSelect,_o.css`
|
|
1567
1565
|
:host {
|
|
1568
1566
|
display: inline-block;
|
|
1569
1567
|
max-width: 100%;
|
|
@@ -1582,7 +1580,7 @@
|
|
|
1582
1580
|
--chip-internal-font-size: ${Fe.fontSize};
|
|
1583
1581
|
--chip-internal-font-weight: ${Fe.fontWeight};
|
|
1584
1582
|
--chip-internal-line-height: max(20px, calc(var(--chip-internal-font-size) + 2px));
|
|
1585
|
-
${(0,B.setVariable)(
|
|
1583
|
+
${(0,B.setVariable)(Ze.size,Fe.iconSize)};
|
|
1586
1584
|
--chip-internal-vertical-padding: ${Fe.verticalPadding};
|
|
1587
1585
|
--chip-internal-horizontal-padding: ${Fe.horizontalPadding};
|
|
1588
1586
|
--chip-internal-icon-padding: 3px;
|
|
@@ -1590,8 +1588,8 @@
|
|
|
1590
1588
|
|
|
1591
1589
|
border: 1px solid ${Fe.borderColor};
|
|
1592
1590
|
color: ${Fe.color};
|
|
1593
|
-
${(0,B.setVariable)(
|
|
1594
|
-
border-radius: var(${(0,
|
|
1591
|
+
${(0,B.setVariable)(z.color,Fe.rippleColor)};
|
|
1592
|
+
border-radius: var(${(0,_o.unsafeCSS)(Fe.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
|
|
1595
1593
|
padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
|
|
1596
1594
|
background-color: ${Fe.backgroundColor};
|
|
1597
1595
|
line-height: var(--chip-internal-content-height);
|
|
@@ -1603,13 +1601,13 @@
|
|
|
1603
1601
|
|
|
1604
1602
|
.ft-chip--dense {
|
|
1605
1603
|
--chip-internal-icon-padding: 3px;
|
|
1606
|
-
--chip-internal-vertical-padding: ${
|
|
1607
|
-
--chip-internal-horizontal-padding: ${
|
|
1604
|
+
--chip-internal-vertical-padding: ${ab.verticalPadding};
|
|
1605
|
+
--chip-internal-horizontal-padding: ${ab.horizontalPadding};
|
|
1608
1606
|
--chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
|
|
1609
1607
|
}
|
|
1610
1608
|
|
|
1611
1609
|
.ft-chip--no-content {
|
|
1612
|
-
--chip-internal-horizontal-padding: ${Fe.horizontalPadding.get(
|
|
1610
|
+
--chip-internal-horizontal-padding: ${Fe.horizontalPadding.get(_o.css`var(--chip-internal-vertical-padding)`)};
|
|
1613
1611
|
}
|
|
1614
1612
|
|
|
1615
1613
|
.ft-chip--disabled {
|
|
@@ -1622,9 +1620,9 @@
|
|
|
1622
1620
|
.ft-chip--highlighted {
|
|
1623
1621
|
border: none;
|
|
1624
1622
|
padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
|
|
1625
|
-
background-color: ${
|
|
1626
|
-
${(0,B.setVariable)(
|
|
1627
|
-
color: ${
|
|
1623
|
+
background-color: ${ou.backgroundColor};
|
|
1624
|
+
${(0,B.setVariable)(z.color,ou.rippleColor)};
|
|
1625
|
+
color: ${ou.color};
|
|
1628
1626
|
}
|
|
1629
1627
|
|
|
1630
1628
|
.ft-chip--clickable {
|
|
@@ -1655,9 +1653,9 @@
|
|
|
1655
1653
|
}
|
|
1656
1654
|
|
|
1657
1655
|
.ft-chip--icon-button {
|
|
1658
|
-
${(0,B.setVariable)(
|
|
1659
|
-
${(0,B.setVariable)(
|
|
1660
|
-
${(0,B.setVariable)(
|
|
1656
|
+
${(0,B.setVariable)(I.iconSize,Fe.iconSize)};
|
|
1657
|
+
${(0,B.setVariable)(I.horizontalPadding,"var(--chip-internal-icon-padding)")};
|
|
1658
|
+
${(0,B.setVariable)(I.verticalPadding,"var(--chip-internal-icon-padding)")};
|
|
1661
1659
|
margin: calc((-1) * var(--chip-internal-icon-padding));
|
|
1662
1660
|
}
|
|
1663
1661
|
|
|
@@ -1703,8 +1701,8 @@
|
|
|
1703
1701
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
1704
1702
|
order: -1;
|
|
1705
1703
|
}
|
|
1706
|
-
`]});var Vi,
|
|
1707
|
-
<div class="${(0,
|
|
1704
|
+
`]});var Vi,$e,cb,Ss,We,xa,de,au=l(()=>{"use strict";Vi=c(y()),$e=c(F()),cb=c(ot()),Ss=c(f());Qe();ye();Tr();nu();Zt();We=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},xa=class extends CustomEvent{constructor(){super("icon-click")}},de=class extends Ss.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.accessibleLabelOnIcon=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let r={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Ss.isSafari};return Vi.html`
|
|
1705
|
+
<div class="${(0,cb.classMap)(r)}"
|
|
1708
1706
|
aria-label="${this.labelOnIconOnly?Vi.nothing:this.getLabel()}"
|
|
1709
1707
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
1710
1708
|
@keyup=${this.onKeyUp}
|
|
@@ -1731,7 +1729,7 @@
|
|
|
1731
1729
|
<div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
|
|
1732
1730
|
<ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
|
|
1733
1731
|
</div>
|
|
1734
|
-
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new
|
|
1732
|
+
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new xa))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new xa))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,Ss.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};de.elementDefinitions={"ft-ripple":L,"ft-typography":V,"ft-icon":ae,"ft-button":w};de.styles=lb;We([(0,$e.property)({type:Boolean})],de.prototype,"highlighted",void 0);We([(0,$e.property)({type:Boolean})],de.prototype,"removable",void 0);We([(0,$e.property)({type:Boolean})],de.prototype,"disabled",void 0);We([(0,$e.property)({type:Boolean})],de.prototype,"clickable",void 0);We([(0,$e.property)({type:Boolean})],de.prototype,"iconClickable",void 0);We([(0,$e.property)({type:Boolean})],de.prototype,"dense",void 0);We([(0,$e.property)({type:Boolean})],de.prototype,"multiLine",void 0);We([(0,$e.property)()],de.prototype,"label",void 0);We([(0,$e.property)()],de.prototype,"iconLabel",void 0);We([(0,$e.property)({type:Boolean})],de.prototype,"hideIconTooltip",void 0);We([(0,$e.property)({type:Boolean})],de.prototype,"accessibleLabelOnIcon",void 0);We([(0,$e.property)()],de.prototype,"icon",void 0);We([(0,$e.property)()],de.prototype,"iconVariant",void 0);We([(0,$e.property)({type:Boolean})],de.prototype,"trailingIcon",void 0);We([(0,$e.property)()],de.prototype,"typographyVariant",void 0);We([(0,$e.query)("ft-typography slot")],de.prototype,"slottedContent",void 0)});var ub=l(()=>{"use strict"});var db,pb=l(()=>{"use strict";au();db={"ft-chip":de}});var hb,fb=l(()=>{"use strict";hb=c(f());pb();(0,hb.customElements)(db)});var lu=l(()=>{"use strict";au();nu();ub();fb()});function Ro(t,e,r){return t?e(t):r?.(t)}var mb=l(()=>{});var cu=l(()=>{mb()});var gb,ce,j,yb,To=l(()=>{"use strict";gb=c(y()),ce=c(f());jt();j={fontSize:ce.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:ce.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:ce.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:ce.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:ce.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:ce.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:ce.FtCssVariableFactory.extend("--ft-input-label-border-color","",ce.designSystemVariables.colorOutline),textColor:ce.FtCssVariableFactory.extend("--ft-input-label-text-color","",ce.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:ce.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",ce.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:ce.FtCssVariableFactory.extend("--ft-input-label-background-color","",ce.designSystemVariables.colorSurface),borderRadius:ce.FtCssVariableFactory.extend("--ft-input-label-border-radius","",ce.designSystemVariables.borderRadiusS),colorError:ce.FtCssVariableFactory.external(ce.designSystemVariables.colorError,"Design system")},yb=gb.css`
|
|
1735
1733
|
.ft-input-label {
|
|
1736
1734
|
position: absolute;
|
|
1737
1735
|
inset: 0;
|
|
@@ -1777,8 +1775,8 @@
|
|
|
1777
1775
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
1778
1776
|
max-width: calc(${j.labelMaxWidth} - 2 * (${j.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
1779
1777
|
text-overflow: ellipsis;
|
|
1780
|
-
${(0,
|
|
1781
|
-
${(0,
|
|
1778
|
+
${(0,ce.setVariable)(at.fontSize,j.fontSize)};
|
|
1779
|
+
${(0,ce.setVariable)(at.lineHeight,j.fontSize)};
|
|
1782
1780
|
}
|
|
1783
1781
|
|
|
1784
1782
|
.ft-input-label--in-error .ft-input-label--text {
|
|
@@ -1810,8 +1808,8 @@
|
|
|
1810
1808
|
}
|
|
1811
1809
|
|
|
1812
1810
|
.ft-input-label--raised .ft-input-label--text {
|
|
1813
|
-
${(0,
|
|
1814
|
-
${(0,
|
|
1811
|
+
${(0,ce.setVariable)(at.fontSize,j.raisedFontSize)};
|
|
1812
|
+
${(0,ce.setVariable)(at.lineHeight,j.raisedFontSize)};
|
|
1815
1813
|
}
|
|
1816
1814
|
|
|
1817
1815
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
@@ -1825,16 +1823,16 @@
|
|
|
1825
1823
|
border-radius: ${j.borderRadius};
|
|
1826
1824
|
top: calc((${at.lineHeight} / -2) + 2px);
|
|
1827
1825
|
}
|
|
1828
|
-
`});var
|
|
1829
|
-
<div class="${(0,
|
|
1830
|
-
${
|
|
1826
|
+
`});var uu,du,vb,xb,bb,Hi,Sb=l(()=>{"use strict";uu=c(y()),du=c(F());cu();vb=c(ot()),xb=c(f()),bb=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},Hi=class extends xb.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return uu.html`
|
|
1827
|
+
<div class="${(0,vb.classMap)(this.inputLabelClasses)}">
|
|
1828
|
+
${Ro(this.text,()=>uu.html`
|
|
1831
1829
|
<div class="ft-input-label--text ft-typography--caption">
|
|
1832
1830
|
<label class="ft-input-label--floating-text">${this.text}</label>
|
|
1833
1831
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
1834
1832
|
</div>
|
|
1835
1833
|
`)}
|
|
1836
1834
|
</div>
|
|
1837
|
-
`}};
|
|
1835
|
+
`}};Hi.elementDefinitions={};bb([(0,du.property)({type:String})],Hi.prototype,"text",void 0);bb([(0,du.property)({type:Boolean})],Hi.prototype,"raised",void 0)});var Sa,pu,tr,hu=l(()=>{"use strict";Sa=c(F());jt();To();Sb();pu=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},tr=class extends Hi{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}}};tr.elementDefinitions={};tr.styles=[Fr,yb];pu([(0,Sa.property)({type:Boolean})],tr.prototype,"outlined",void 0);pu([(0,Sa.property)({type:Boolean})],tr.prototype,"error",void 0);pu([(0,Sa.property)({type:Boolean})],tr.prototype,"disabled",void 0)});var Eb=l(()=>{"use strict"});var Cb,Ab=l(()=>{"use strict";hu();Cb={"ft-input-label":tr}});var wb,Ob=l(()=>{"use strict";wb=c(f());Ab();(0,wb.customElements)(Cb)});var _b=l(()=>{"use strict";hu();To();Eb();Ob()});var Rb,N,M,Tb,ko=l(()=>{"use strict";Rb=c(y()),N=c(f());To();jt();Er();fs();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")},Tb=Rb.css`
|
|
1838
1836
|
*:focus {
|
|
1839
1837
|
outline: none;
|
|
1840
1838
|
}
|
|
@@ -1862,13 +1860,13 @@
|
|
|
1862
1860
|
padding-right: ${M.horizontalSpacing};
|
|
1863
1861
|
gap: 8px;
|
|
1864
1862
|
color: ${M.selectedOptionColor};
|
|
1865
|
-
${(0,N.setVariable)(
|
|
1863
|
+
${(0,N.setVariable)(z.color,M.selectedOptionColor)};
|
|
1866
1864
|
}
|
|
1867
1865
|
|
|
1868
1866
|
.ft-select--input-panel,
|
|
1869
1867
|
.ft-select--options {
|
|
1870
|
-
${(0,N.setVariable)(
|
|
1871
|
-
${(0,N.setVariable)(
|
|
1868
|
+
${(0,N.setVariable)(z.opacityContentOnSurfaceHover,"0.08")};
|
|
1869
|
+
${(0,N.setVariable)(z.opacityContentOnSurfacePressed,"0.04")};
|
|
1872
1870
|
}
|
|
1873
1871
|
|
|
1874
1872
|
.ft-select--input-panel > *:not(ft-ripple) {
|
|
@@ -1891,7 +1889,7 @@
|
|
|
1891
1889
|
${(0,N.setVariable)(j.verticalSpacing,M.verticalSpacing)};
|
|
1892
1890
|
${(0,N.setVariable)(j.horizontalSpacing,M.horizontalSpacing)};
|
|
1893
1891
|
${(0,N.setVariable)(j.backgroundColor,M.backgroundColor)};
|
|
1894
|
-
${(0,N.setVariable)(j.labelMaxWidth,`calc(100% - ${
|
|
1892
|
+
${(0,N.setVariable)(j.labelMaxWidth,`calc(100% - ${Ze.size} - 8px)`)};
|
|
1895
1893
|
}
|
|
1896
1894
|
|
|
1897
1895
|
.ft-select:not(.ft-select--disabled):focus-within ft-icon {
|
|
@@ -1970,10 +1968,10 @@
|
|
|
1970
1968
|
.ft-select:not(.ft-select--has-option-selected) .ft-select--selected-option {
|
|
1971
1969
|
opacity: 0;
|
|
1972
1970
|
}
|
|
1973
|
-
`});var
|
|
1971
|
+
`});var fu,kb,Lb,Ib=l(()=>{"use strict";Er();fu=c(f());ko();kb=c(y()),Lb=kb.css`
|
|
1974
1972
|
.ft-select--option {
|
|
1975
|
-
${(0,
|
|
1976
|
-
${(0,
|
|
1973
|
+
${(0,fu.setVariable)(z.opacityContentOnSurfaceHover,"0.08")};
|
|
1974
|
+
${(0,fu.setVariable)(z.opacityContentOnSurfacePressed,"0.04")};
|
|
1977
1975
|
}
|
|
1978
1976
|
|
|
1979
1977
|
.ft-select--option > *:not(ft-ripple) {
|
|
@@ -1997,8 +1995,8 @@
|
|
|
1997
1995
|
overflow: hidden;
|
|
1998
1996
|
}
|
|
1999
1997
|
|
|
2000
|
-
`});var
|
|
2001
|
-
<div class="${(0
|
|
1998
|
+
`});var Ea,Es,$b,ei,Lo,Ge,Db=l(()=>{"use strict";Ea=c(f());Qe();ye();Es=c(y()),$b=c(ot()),ei=c(F());Ib();Lo=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},Ge=class extends Ea.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 Es.html`
|
|
1999
|
+
<div class="${(0,$b.classMap)(i)}"
|
|
2002
2000
|
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,"")}"
|
|
2003
2001
|
tabindex="0"
|
|
2004
2002
|
aria-label="${this.label}"
|
|
@@ -2007,10 +2005,10 @@
|
|
|
2007
2005
|
<ft-ripple ?primary=${this.selected} ?activated=${this.selected}></ft-ripple>
|
|
2008
2006
|
<slot @slotchange=${this.onSlotChange}>
|
|
2009
2007
|
</slot>
|
|
2010
|
-
${this.isSlotEmpty?
|
|
2008
|
+
${this.isSlotEmpty?Es.html`<span>${this.label}</span>`:Es.html``}
|
|
2011
2009
|
</div>
|
|
2012
|
-
`}onSlotChange(){this.isSlotEmpty=(0,
|
|
2013
|
-
<div class="${(0
|
|
2010
|
+
`}onSlotChange(){this.isSlotEmpty=(0,Ea.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}))}};Ge.elementDefinitions={"ft-ripple":L};Ge.shadowRootOptions={...Es.LitElement.shadowRootOptions,delegatesFocus:!0};Ge.styles=[Lb,Nr];Lo([(0,ei.property)({type:String})],Ge.prototype,"label",void 0);Lo([(0,ei.property)({type:Object,converter:t=>t})],Ge.prototype,"value",void 0);Lo([(0,ei.property)({type:Boolean,reflect:!0})],Ge.prototype,"selected",void 0);Lo([(0,ei.query)("slot")],Ge.prototype,"slotElement",void 0);Lo([(0,ei.state)()],Ge.prototype,"isSlotEmpty",void 0)});var Cs,_e,Pb,Mb,zt,Be,ne,mu=l(()=>{"use strict";Cs=c(y()),_e=c(F()),Pb=c(ot()),Mb=c(Lr());cu();ho();zt=c(f());ye();_b();Qe();Tr();ko();Db();Be=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},ne=class t extends zt.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,zt.last)(this.optionsList)}render(){var e,r,i,o,s;let n=this.hasOptionsMenuOpen,a=this.disabled||!this.hasOptions,u=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((o=(r=this.selectedOption)===null||r===void 0?void 0:r.label)!==null&&o!==void 0?o:"").length>0,d={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":a,"ft-select--options-displayed":n,"ft-select--has-option-selected":u,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return Cs.html`
|
|
2011
|
+
<div class="${(0,Pb.classMap)(d)}" part="container">
|
|
2014
2012
|
<div class="ft-select--main-panel" part="main-panel">
|
|
2015
2013
|
<ft-input-label text="${this.label}"
|
|
2016
2014
|
part="label"
|
|
@@ -2025,18 +2023,18 @@
|
|
|
2025
2023
|
tabindex="${a?"-1":"0"}"
|
|
2026
2024
|
@click=${()=>{this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=this.optionsDisplayed}}
|
|
2027
2025
|
@keydown=${this.onMainPanelKeyDown}
|
|
2028
|
-
aria-label="${
|
|
2029
|
-
aria-labelledby="${
|
|
2026
|
+
aria-label="${bt(this.ariaLabel)}"
|
|
2027
|
+
aria-labelledby="${Ro(!this.ariaLabel,()=>"label")}"
|
|
2030
2028
|
aria-haspopup="listbox"
|
|
2031
2029
|
aria-expanded="${n}"
|
|
2032
|
-
aria-activedescendant="${
|
|
2030
|
+
aria-activedescendant="${bt(this.getOptionId(this.selectedOption))}"
|
|
2033
2031
|
role="combobox">
|
|
2034
2032
|
<ft-ripple ?disabled=${a} ?activated=${!this.outlined}></ft-ripple>
|
|
2035
2033
|
<slot name="input-value">
|
|
2036
|
-
<ft-typography variant="${
|
|
2034
|
+
<ft-typography variant="${Q.body1}"
|
|
2037
2035
|
aria-hidden="${u?"false":"true"}"
|
|
2038
2036
|
class="ft-select--selected-option">
|
|
2039
|
-
${(
|
|
2037
|
+
${(s=(i=this.selectedOption)===null||i===void 0?void 0:i.label)!==null&&s!==void 0?s:this.label}
|
|
2040
2038
|
</ft-typography>
|
|
2041
2039
|
</slot>
|
|
2042
2040
|
<ft-icon aria-hidden="true" .value=${n?we.THIN_ARROW_UP:we.THIN_ARROW}></ft-icon>
|
|
@@ -2050,22 +2048,22 @@
|
|
|
2050
2048
|
@option-change=${this.updateOptionsFromSlot}
|
|
2051
2049
|
>
|
|
2052
2050
|
</slot>
|
|
2053
|
-
${
|
|
2051
|
+
${Ro(this.isSlotEmpty,()=>(0,Mb.repeat)(this.options,p=>p.value,p=>this.renderOption(p)))}
|
|
2054
2052
|
</div>
|
|
2055
2053
|
</div>
|
|
2056
2054
|
<slot name="helper" part="helper">
|
|
2057
|
-
${this.helper?
|
|
2058
|
-
<ft-typography class="ft-select--helper-text" variant="${
|
|
2059
|
-
</ft-typography>`:
|
|
2055
|
+
${this.helper?Cs.html`
|
|
2056
|
+
<ft-typography class="ft-select--helper-text" variant="${Q.caption}">${this.helper}
|
|
2057
|
+
</ft-typography>`:Cs.nothing}
|
|
2060
2058
|
</slot>
|
|
2061
2059
|
</div>
|
|
2062
|
-
`}renderOption(e){let r=this.selectedOption===e;return
|
|
2060
|
+
`}renderOption(e){let r=this.selectedOption===e;return Cs.html`
|
|
2063
2061
|
<ft-select-option
|
|
2064
2062
|
?selected=${r}
|
|
2065
2063
|
label="${e.label}"
|
|
2066
2064
|
.value=${e.value}
|
|
2067
2065
|
></ft-select-option>
|
|
2068
|
-
`}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((r=(i=this.selectedOptionElement)!==null&&i!==void 0?i:this.firstOption)===null||r===void 0||r.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&(this.optionsDisplayed?document.addEventListener("click",this.hideOptions):document.removeEventListener("click",this.hideOptions)),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let
|
|
2066
|
+
`}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((r=(i=this.selectedOptionElement)!==null&&i!==void 0?i:this.firstOption)===null||r===void 0||r.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&(this.optionsDisplayed?document.addEventListener("click",this.hideOptions):document.removeEventListener("click",this.hideOptions)),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let o=["bottom","top"];(0,zt.computeOffsetAutoPosition)(this.mainPanel,this.optionsMenu,"bottom",o,"fixed",M.optionsHeight,0).then(({x:s,y:n})=>{this.optionsMenu.style.left=`${s}px`,this.optionsMenu.style.top=`${n}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,zt.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===" "&&(e.preventDefault(),e.stopPropagation()),e.key){case" ":case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var r,i;let o,s=this.focusedOption?this.optionsList.indexOf(this.focusedOption):0;switch(e.key){case" ":case"Enter":e.preventDefault(),e.stopPropagation(),this.onSelectOption(e),this.optionsDisplayed=!1,(r=this.mainPanel)===null||r===void 0||r.focus();break;case"Escape":this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),o=this.optionsList[(s-1+this.optionsList.length)%this.optionsList.length];break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),o=this.optionsList[(s+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 s;return((s=o.label)===null||s===void 0?void 0:s.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,zt.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,zt.deepEqual)(o.value,e));i&&this.selectOption(i,r)}selectOption(e,r=!0){var i,o;if(!(0,zt.deepEqual)((i=this.selectedOption)===null||i===void 0?void 0:i.value,e?.value)){this.selectedOption=e;for(let s of this.options)s.selected=s===e;r&&this.dispatchEvent(new CustomEvent("change",{detail:(o=this.selectedOption)===null||o===void 0?void 0:o.value}))}this.optionsDisplayed=!1}};ne.elementDefinitions={"ft-input-label":tr,"ft-typography":V,"ft-ripple":L,"ft-icon":ae,"ft-select-option":Ge};ne.searchTimeoutMilliseconds=2e3;ne.styles=[Fr,Tb];Be([(0,_e.property)({type:String})],ne.prototype,"label",void 0);Be([(0,_e.property)({type:String})],ne.prototype,"ariaLabel",void 0);Be([(0,_e.property)({type:String})],ne.prototype,"helper",void 0);Be([(0,_e.property)({type:Boolean})],ne.prototype,"outlined",void 0);Be([(0,_e.property)({type:Boolean})],ne.prototype,"disabled",void 0);Be([(0,_e.property)({type:Boolean})],ne.prototype,"error",void 0);Be([(0,_e.property)({type:Boolean})],ne.prototype,"fixedMenuPosition",void 0);Be([(0,_e.property)({type:Array})],ne.prototype,"options",void 0);Be([(0,_e.state)()],ne.prototype,"selectedOption",void 0);Be([(0,_e.state)()],ne.prototype,"optionsDisplayed",void 0);Be([(0,_e.state)()],ne.prototype,"focusOptions",void 0);Be([(0,_e.state)()],ne.prototype,"currentSearch",void 0);Be([(0,_e.state)()],ne.prototype,"lastSearchInputDate",void 0);Be([(0,_e.query)(".ft-select")],ne.prototype,"container",void 0);Be([(0,_e.query)(".ft-select--options")],ne.prototype,"optionsMenu",void 0);Be([(0,_e.query)(".ft-select--input-panel")],ne.prototype,"mainPanel",void 0);Be([(0,_e.query)("slot:not([name])")],ne.prototype,"optionsSlot",void 0)});var Nb=l(()=>{"use strict"});var Fb,Bb=l(()=>{"use strict";mu();Fb={"ft-select":ne,"ft-select-option":Ge}});var Ub,zb=l(()=>{"use strict";Ub=c(f());Bb();(0,Ub.customElements)(Fb)});var Vb=l(()=>{"use strict";mu();ko();Nb();zb()});var Hb,rr,Ue,jb,Ca=l(()=>{"use strict";Hb=c(y()),rr=c(f()),Ue={display:rr.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:rr.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:rr.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:rr.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:rr.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:rr.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:rr.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:rr.FtCssVariableFactory.external(rr.designSystemVariables.borderRadiusM,"Design system")},jb=Hb.css`
|
|
2069
2067
|
:host {
|
|
2070
2068
|
width: ${Ue.width};
|
|
2071
2069
|
height: ${Ue.height};
|
|
@@ -2092,7 +2090,7 @@
|
|
|
2092
2090
|
background-position: calc(100vw + ${Ue.glareWidth}) 0, calc(${Ue.glareWidth} * -1) 0;
|
|
2093
2091
|
}
|
|
2094
2092
|
}
|
|
2095
|
-
`});var D,
|
|
2093
|
+
`});var D,gu,R,qb,Kb,Aa=l(()=>{"use strict";D=c(f()),gu=c(y());Li();To();ko();Ca();fa();ga();jt();R={height:D.FtCssVariableFactory.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:D.FtCssVariableFactory.extend("--ft-search-bar-border-radius","",D.designSystemVariables.borderRadiusS),mobileOpenPosition:D.FtCssVariableFactory.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:D.FtCssVariableFactory.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:D.FtCssVariableFactory.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:D.FtCssVariableFactory.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:D.FtCssVariableFactory.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:D.FtCssVariableFactory.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:D.FtCssVariableFactory.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:D.FtCssVariableFactory.external(D.designSystemVariables.colorSurface,"Design system"),colorOnSurface:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:D.FtCssVariableFactory.external(D.designSystemVariables.colorOutline,"Design system"),colorPrimary:D.FtCssVariableFactory.external(D.designSystemVariables.colorPrimary,"Design system"),elevation02:D.FtCssVariableFactory.external(D.designSystemVariables.elevation02,"Design system"),buttonColor:D.FtCssVariableFactory.external(I.color,"Button"),buttonRippleColor:D.FtCssVariableFactory.external(I.rippleColor,"Button"),activeItemBorderColor:D.FtCssVariableFactory.extend("--ft-search-bar-active-border-color","",D.designSystemVariables.colorPrimary)},qb=gu.css`
|
|
2096
2094
|
* {
|
|
2097
2095
|
box-sizing: border-box;
|
|
2098
2096
|
}
|
|
@@ -2199,11 +2197,11 @@
|
|
|
2199
2197
|
.ft-search-bar > ft-button,
|
|
2200
2198
|
.ft-search-bar--actions ft-button {
|
|
2201
2199
|
flex-shrink: 0;
|
|
2202
|
-
${(0,D.setVariable)(
|
|
2200
|
+
${(0,D.setVariable)(I.backgroundColor,"transparent")};
|
|
2203
2201
|
}
|
|
2204
2202
|
|
|
2205
2203
|
.ft-search-bar--left-action {
|
|
2206
|
-
${(0,D.setVariable)(
|
|
2204
|
+
${(0,D.setVariable)(I.borderRadius,`calc(${R.borderRadius} - 1px) 0 0 calc(${R.borderRadius} - 1px)`)};
|
|
2207
2205
|
border-right: 1px solid ${R.colorOutline};
|
|
2208
2206
|
height: 100%;
|
|
2209
2207
|
}
|
|
@@ -2213,7 +2211,7 @@
|
|
|
2213
2211
|
}
|
|
2214
2212
|
|
|
2215
2213
|
.ft-search-bar--floating-panel-open .ft-search-bar--left-action {
|
|
2216
|
-
${(0,D.setVariable)(
|
|
2214
|
+
${(0,D.setVariable)(I.borderRadius,`calc(${R.borderRadius} - 1px) 0 0 0`)};
|
|
2217
2215
|
}
|
|
2218
2216
|
|
|
2219
2217
|
.ft-search-bar .ft-search-bar--launch-search,
|
|
@@ -2285,7 +2283,7 @@
|
|
|
2285
2283
|
${(0,D.setVariable)(v.fontWeight,"bold")};
|
|
2286
2284
|
}
|
|
2287
2285
|
|
|
2288
|
-
`,
|
|
2286
|
+
`,Kb=gu.css`
|
|
2289
2287
|
.ft-search-bar--presets {
|
|
2290
2288
|
min-width: 200px;
|
|
2291
2289
|
}
|
|
@@ -2446,14 +2444,14 @@
|
|
|
2446
2444
|
.ft-search-bar--desktop-menu .ft-search-bar--launch-search {
|
|
2447
2445
|
margin: 0;
|
|
2448
2446
|
}
|
|
2449
|
-
`});var
|
|
2450
|
-
`}};
|
|
2447
|
+
`});var Wb,Gb,ti,yu=l(()=>{"use strict";Wb=c(y()),Gb=c(f());Ca();ti=class extends Gb.FtLitElement{render(){return Wb.html`
|
|
2448
|
+
`}};ti.elementDefinitions={};ti.styles=jb});var Qb=l(()=>{"use strict"});var Xb,Yb=l(()=>{"use strict";yu();Xb={"ft-skeleton":ti}});var Zb,Jb=l(()=>{"use strict";Zb=c(f());Yb();(0,Zb.customElements)(Xb)});var ev=l(()=>{"use strict";yu();Ca();Qb();Jb()});var br,bu,As,vr,wa=l(()=>{"use strict";br=c(y()),bu=c(Lr());Tr();As=c(f());Aa();Qe();vr=class{constructor(e,r=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new As.Debouncer(r)}render(){let e=this.recentSearchesMatchingQuery;return br.html`
|
|
2451
2449
|
<div class="ft-search-bar--suggestions ft-word-wrap ${this.shouldDisplaySuggestions?"ft-search-bar--suggestions-not-empty":""}"
|
|
2452
2450
|
id="${this.listboxId}"
|
|
2453
2451
|
role="listbox"
|
|
2454
2452
|
aria-label="${this.searchBar.labelResolver.resolve("suggestionsAriaLabel")}"
|
|
2455
2453
|
part="suggestions-container">
|
|
2456
|
-
${(0,
|
|
2454
|
+
${(0,bu.repeat)(e.slice(0,5),r=>r,(r,i)=>br.html`
|
|
2457
2455
|
<div part="suggestion-container"
|
|
2458
2456
|
class="${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)?"ft-search-bar--suggestions-selected":br.nothing}">
|
|
2459
2457
|
<a href="${this.getRequestWithQuery(r)}"
|
|
@@ -2464,7 +2462,7 @@
|
|
|
2464
2462
|
aria-selected="${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)}"
|
|
2465
2463
|
tabindex="-1"
|
|
2466
2464
|
aria-label="${r}"
|
|
2467
|
-
@click=${
|
|
2465
|
+
@click=${o=>this.onSuggestClick(o,r)}>
|
|
2468
2466
|
<ft-ripple ?activated=${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)&&!this.searchBar.selectedSuggestRemoveRecent}></ft-ripple>
|
|
2469
2467
|
<ft-icon variant="material" value="history" part="suggestion-icon"></ft-icon>
|
|
2470
2468
|
<ft-typography variant="body1">${r}</ft-typography>
|
|
@@ -2478,11 +2476,11 @@
|
|
|
2478
2476
|
tooltipPosition="left"
|
|
2479
2477
|
tabindex="-1"
|
|
2480
2478
|
?activated=${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)&&this.searchBar.selectedSuggestRemoveRecent}
|
|
2481
|
-
@click=${
|
|
2479
|
+
@click=${o=>this.removeRecentSearch(o,r)}>
|
|
2482
2480
|
</ft-button>
|
|
2483
2481
|
</div>
|
|
2484
2482
|
`)}
|
|
2485
|
-
${(0,
|
|
2483
|
+
${(0,bu.repeat)(this.searchBar.suggestions,r=>r.value,(r,i)=>br.html`
|
|
2486
2484
|
<div part="suggestion-container"
|
|
2487
2485
|
class="${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)?"ft-search-bar--suggestions-selected":br.nothing}">
|
|
2488
2486
|
<a href="${this.getRequestWithQuery(r.value)}"
|
|
@@ -2492,7 +2490,7 @@
|
|
|
2492
2490
|
aria-selected="${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)}"
|
|
2493
2491
|
role="option"
|
|
2494
2492
|
tabindex="-1"
|
|
2495
|
-
@click=${
|
|
2493
|
+
@click=${o=>this.onSuggestClick(o,r.value)}>
|
|
2496
2494
|
<ft-ripple ?activated=${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)}></ft-ripple>
|
|
2497
2495
|
${this.getIcon(r)}
|
|
2498
2496
|
<ft-typography variant="body1">${r.value}</ft-typography>
|
|
@@ -2500,9 +2498,9 @@
|
|
|
2500
2498
|
</div>
|
|
2501
2499
|
`)}
|
|
2502
2500
|
</div>
|
|
2503
|
-
`}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"?
|
|
2501
|
+
`}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"?Je.file_format:Je.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?we.BOOK:we.ARTICLE;break;case"DOCUMENT":i=Gn(e.mimeType,e.filenameExtension);break;case"TOPIC":i=we.TOPICS;break;case"HTML_PACKAGE":i=we.BOX_CODE;break;case"HTML_PACKAGE_PAGE":i=we.FILE_CODE;break}return br.html`
|
|
2504
2502
|
<ft-icon .variant=${r} .value=${i} part="suggestion-icon"></ft-icon>
|
|
2505
|
-
`}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()))}};vr.styles=[
|
|
2503
|
+
`}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()))}};vr.styles=[As.wordWrap,br.css`
|
|
2506
2504
|
.ft-search-bar--mobile .ft-search-bar--suggestions {
|
|
2507
2505
|
flex-grow: 1;
|
|
2508
2506
|
flex-shrink: 1;
|
|
@@ -2590,9 +2588,9 @@
|
|
|
2590
2588
|
}
|
|
2591
2589
|
|
|
2592
2590
|
ft-ripple {
|
|
2593
|
-
${(0,
|
|
2591
|
+
${(0,As.setVariable)(z.opacityContentOnSurfaceHover,z.opacityContentOnSurfaceSelected)}
|
|
2594
2592
|
}
|
|
2595
|
-
`]});var it,
|
|
2593
|
+
`]});var it,vu,Oa,xr,_a=l(()=>{"use strict";it=c(y()),vu=c(Lr());Fc();Oa=c(f());ma();lu();xr=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return it.html``;let e=this.searchBar.isMobile(),r=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),i=it.html`
|
|
2596
2594
|
${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?it.html`
|
|
2597
2595
|
<ft-chip part="selected-filters selected-filter-ft-locale"
|
|
2598
2596
|
?dense=${this.searchBar.dense&&!e}
|
|
@@ -2603,7 +2601,7 @@
|
|
|
2603
2601
|
${this.getLocaleLabel(this.searchBar.contentLocale)}
|
|
2604
2602
|
</ft-chip>
|
|
2605
2603
|
`:null}
|
|
2606
|
-
${(0,
|
|
2604
|
+
${(0,vu.repeat)(this.searchBar.facets,o=>o.key,o=>{let s=Qg(o);return(0,vu.repeat)(s,n=>{let a=o.label+": "+Kg(n),u=o.key.replace(":","-"),d=it.html`
|
|
2607
2605
|
<ft-chip
|
|
2608
2606
|
part="selected-filters selected-filter-${u}"
|
|
2609
2607
|
?dense=${this.searchBar.dense&&!e}
|
|
@@ -2612,11 +2610,11 @@
|
|
|
2612
2610
|
icon="${e?it.nothing:"close"}"
|
|
2613
2611
|
label="${a}"
|
|
2614
2612
|
title="${r?a:it.nothing}"
|
|
2615
|
-
@click=${()=>this.openMobileFilters(
|
|
2616
|
-
@icon-click=${()=>this.searchBar.setFilter(
|
|
2617
|
-
data-key="${
|
|
2613
|
+
@click=${()=>this.openMobileFilters(o.key)}
|
|
2614
|
+
@icon-click=${()=>this.searchBar.setFilter(o.key,s.filter(p=>p!==n))}
|
|
2615
|
+
data-key="${o.key}"
|
|
2618
2616
|
data-value="${n}">
|
|
2619
|
-
${
|
|
2617
|
+
${qg(n)}
|
|
2620
2618
|
</ft-chip>
|
|
2621
2619
|
`;return r?d:it.html`
|
|
2622
2620
|
<ft-tooltip inline text="${a}">
|
|
@@ -2642,7 +2640,7 @@
|
|
|
2642
2640
|
<div class="ft-search-bar--selected-filters" part="selected-filters-container">
|
|
2643
2641
|
${i}
|
|
2644
2642
|
</div>
|
|
2645
|
-
`}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
|
|
2643
|
+
`}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}};xr.styles=it.css`
|
|
2646
2644
|
.ft-search-bar--selected-filters:not(ft-snap-scroll) {
|
|
2647
2645
|
flex-shrink: 0;
|
|
2648
2646
|
display: flex;
|
|
@@ -2653,7 +2651,7 @@
|
|
|
2653
2651
|
|
|
2654
2652
|
ft-snap-scroll.ft-search-bar--selected-filters {
|
|
2655
2653
|
overflow: hidden;
|
|
2656
|
-
${(0,
|
|
2654
|
+
${(0,Oa.setVariable)(rt.gap,"4px")};
|
|
2657
2655
|
}
|
|
2658
2656
|
|
|
2659
2657
|
ft-snap-scroll.ft-search-bar--selected-filters::part(content) {
|
|
@@ -2661,8 +2659,8 @@
|
|
|
2661
2659
|
}
|
|
2662
2660
|
|
|
2663
2661
|
.ft-search-bar--desktop ft-snap-scroll.ft-search-bar--selected-filters {
|
|
2664
|
-
${(0,
|
|
2665
|
-
${(0,
|
|
2662
|
+
${(0,Oa.setVariable)(Fe.iconSize,"17px")};
|
|
2663
|
+
${(0,Oa.setVariable)(Fe.fontSize,"12px")};
|
|
2666
2664
|
}
|
|
2667
2665
|
|
|
2668
2666
|
.ft-search-bar--selected-filters * {
|
|
@@ -2672,8 +2670,8 @@
|
|
|
2672
2670
|
.ft-search-bar--selected-filters ft-chip {
|
|
2673
2671
|
flex-grow: 0;
|
|
2674
2672
|
}
|
|
2675
|
-
`});var
|
|
2676
|
-
<div class="${(0,
|
|
2673
|
+
`});var ir,tv,rv,TE,ws,iv=l(()=>{"use strict";ir=c(y());_a();wa();tv=c(ot()),rv=c(f()),TE=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},ws=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new xr(e),this.suggestManager=i??new vr(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 ir.html`
|
|
2674
|
+
<div class="${(0,tv.classMap)(r)}" part="container" tabindex="-1">
|
|
2677
2675
|
<div class="ft-search-bar" role="search">
|
|
2678
2676
|
<div class="ft-search-bar--input-container" part="input-container">
|
|
2679
2677
|
<div class="ft-search-bar--input-outline" part="input-outline">
|
|
@@ -2682,7 +2680,7 @@
|
|
|
2682
2680
|
aria-autocomplete="list"
|
|
2683
2681
|
aria-controls="${this.suggestManager.listboxId}"
|
|
2684
2682
|
aria-expanded="${this.searchBar.displaySuggestListbox}"
|
|
2685
|
-
aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:
|
|
2683
|
+
aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:ir.nothing}"
|
|
2686
2684
|
part="input"
|
|
2687
2685
|
type="search"
|
|
2688
2686
|
placeholder="${this.searchBar.labelResolver.resolve("inputPlaceHolder")}"
|
|
@@ -2696,7 +2694,7 @@
|
|
|
2696
2694
|
</div>
|
|
2697
2695
|
${this.searchBar.displayFacets?this.searchBar.renderFacetsActions():this.selectedFacetsManager.render()}
|
|
2698
2696
|
${this.searchBar.displayFacets?this.searchBar.renderMobileFacets():this.suggestManager.render()}
|
|
2699
|
-
${this.searchBar.isMobileMenuOpen()||this.searchBar.displayFacets?
|
|
2697
|
+
${this.searchBar.isMobileMenuOpen()||this.searchBar.displayFacets?ir.html`
|
|
2700
2698
|
<ft-button class="ft-search-bar--launch-search"
|
|
2701
2699
|
href="${this.searchBar.searchRequestSerializer(this.searchBar.request)}"
|
|
2702
2700
|
part="launch-search-in-panel"
|
|
@@ -2704,11 +2702,11 @@
|
|
|
2704
2702
|
@click=${()=>this.searchBar.onLaunchSearch()}>
|
|
2705
2703
|
${this.searchBar.labelResolver.resolve("searchButton")}
|
|
2706
2704
|
</ft-button>
|
|
2707
|
-
`:
|
|
2705
|
+
`:ir.nothing}
|
|
2708
2706
|
</div>
|
|
2709
|
-
`}renderMobileSearchBarButtons(){let e=this.searchBar.query||this.searchBar.isMobileMenuOpen()&&!this.searchBar.forceMobileMenuOpen;return
|
|
2707
|
+
`}renderMobileSearchBarButtons(){let e=this.searchBar.query||this.searchBar.isMobileMenuOpen()&&!this.searchBar.forceMobileMenuOpen;return ir.html`
|
|
2710
2708
|
<div class="ft-search-bar--actions" part="search-bar-actions">
|
|
2711
|
-
${e?
|
|
2709
|
+
${e?ir.html`
|
|
2712
2710
|
<ft-button class="ft-search-bar--clear-query"
|
|
2713
2711
|
part="clear-query"
|
|
2714
2712
|
icon="close"
|
|
@@ -2718,7 +2716,7 @@
|
|
|
2718
2716
|
@click=${async()=>{this.searchBar.setQuery(""),this.searchBar.mobileMenuOpen=!1,this.searchBar.displayFacets=!1}}
|
|
2719
2717
|
></ft-button>
|
|
2720
2718
|
<div class="ft-search-bar--separator"></div>
|
|
2721
|
-
`:
|
|
2719
|
+
`:ir.nothing}
|
|
2722
2720
|
<ft-button class="ft-search-bar--launch-search"
|
|
2723
2721
|
href="${this.searchBar.isMobileMenuOpen()?this.searchBar.searchRequestSerializer(this.searchBar.request):""}"
|
|
2724
2722
|
part="launch-search-in-bar"
|
|
@@ -2729,21 +2727,21 @@
|
|
|
2729
2727
|
@click=${()=>{var r;return this.searchBar.isMobileMenuOpen()?this.searchBar.onLaunchSearch():(r=this.searchBar.input)===null||r===void 0?void 0:r.focus()}}
|
|
2730
2728
|
></ft-button>
|
|
2731
2729
|
</div>
|
|
2732
|
-
`}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}};
|
|
2730
|
+
`}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}};ws.styles=ir.css`
|
|
2733
2731
|
|
|
2734
|
-
`;
|
|
2735
|
-
<div class="${(0,
|
|
2732
|
+
`;TE([(0,rv.ignoreComposingEvents)()],ws.prototype,"onSearchBarKeyDown",null)});var st,sv,ov,nv,kE,Os,av=l(()=>{"use strict";st=c(y()),sv=c(Lr());_a();wa();ov=c(ot()),nv=c(f()),kE=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},Os=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new xr(e),this.suggestManager=i??new vr(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 st.html`
|
|
2733
|
+
<div class="${(0,ov.classMap)(r)}" part="container" tabindex="-1">
|
|
2736
2734
|
<div class="ft-search-bar" part="search-bar" role="search">
|
|
2737
2735
|
${this.renderSearchBarLeftAction()}
|
|
2738
2736
|
<div class="ft-search-bar--input-container" part="input-container" tabindex="-1">
|
|
2739
2737
|
<div class="ft-search-bar--input-outline" part="input-outline">
|
|
2740
|
-
${this.searchBar.dense?this.selectedFacetsManager.render():
|
|
2738
|
+
${this.searchBar.dense?this.selectedFacetsManager.render():st.nothing}
|
|
2741
2739
|
<input class="ft-search-bar--input ft-typography--body2"
|
|
2742
2740
|
role="combobox"
|
|
2743
2741
|
aria-autocomplete="list"
|
|
2744
2742
|
aria-controls="${this.suggestManager.listboxId}"
|
|
2745
2743
|
aria-expanded="${this.searchBar.displaySuggestListbox}"
|
|
2746
|
-
aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:
|
|
2744
|
+
aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:st.nothing}"
|
|
2747
2745
|
part="input"
|
|
2748
2746
|
type="search"
|
|
2749
2747
|
placeholder="${this.searchBar.labelResolver.resolve("inputPlaceHolder")}"
|
|
@@ -2758,9 +2756,9 @@
|
|
|
2758
2756
|
${this.renderDesktopSearchBarButtons()}
|
|
2759
2757
|
${this.searchBar.renderDesktopFloatingMenu()}
|
|
2760
2758
|
</div>
|
|
2761
|
-
${this.searchBar.dense?
|
|
2759
|
+
${this.searchBar.dense?st.nothing:this.searchBar.forceMenuOpen?this.searchBar.renderDesktopMenu():this.selectedFacetsManager.render()}
|
|
2762
2760
|
</div>
|
|
2763
|
-
`}renderSearchBarLeftAction(){return this.searchBar.hasFacets()?this.searchBar.forceMenuOpen?
|
|
2761
|
+
`}renderSearchBarLeftAction(){return this.searchBar.hasFacets()?this.searchBar.forceMenuOpen?st.nothing:st.html`
|
|
2764
2762
|
<ft-button class="ft-search-bar--filters-opener ft-search-bar--left-action"
|
|
2765
2763
|
part="filters-opener"
|
|
2766
2764
|
trailingIcon
|
|
@@ -2772,24 +2770,24 @@
|
|
|
2772
2770
|
>
|
|
2773
2771
|
${this.searchBar.labelResolver.resolve("filtersButton")}
|
|
2774
2772
|
</ft-button>
|
|
2775
|
-
`:this.searchBar.hasLocaleSelector()?
|
|
2773
|
+
`:this.searchBar.hasLocaleSelector()?st.html`
|
|
2776
2774
|
<ft-select outlined
|
|
2777
2775
|
class="ft-search-bar--content-locale ft-search-bar--left-action"
|
|
2778
2776
|
part="content-locale select-ft-locale"
|
|
2779
2777
|
ariaLabel="${this.searchBar.labelResolver.resolve("selectLocale")}"
|
|
2780
2778
|
.exportpartsPrefixes=${["content-locale","select-ft-locale"]}
|
|
2781
2779
|
@change=${e=>this.searchBar.contentLocale=e.detail==null?void 0:e.detail}>
|
|
2782
|
-
${(0,
|
|
2780
|
+
${(0,sv.repeat)(this.searchBar.availableContentLocales,e=>e.lang,e=>st.html`
|
|
2783
2781
|
<ft-select-option .value=${e.lang}
|
|
2784
2782
|
label="${e.label}"
|
|
2785
2783
|
?selected=${e.lang==this.searchBar.contentLocale}>
|
|
2786
2784
|
</ft-select-option>
|
|
2787
2785
|
`)}
|
|
2788
2786
|
</ft-select>
|
|
2789
|
-
`:
|
|
2787
|
+
`:st.nothing}renderDesktopSearchBarButtons(){return st.html`
|
|
2790
2788
|
<div class="ft-search-bar--actions"
|
|
2791
2789
|
part="search-bar-actions">
|
|
2792
|
-
${this.searchBar.query?
|
|
2790
|
+
${this.searchBar.query?st.html`
|
|
2793
2791
|
<ft-button class="ft-search-bar--clear-query"
|
|
2794
2792
|
part="clear-query"
|
|
2795
2793
|
icon="close"
|
|
@@ -2808,54 +2806,51 @@
|
|
|
2808
2806
|
@click=${()=>this.searchBar.onLaunchSearch()}
|
|
2809
2807
|
></ft-button>
|
|
2810
2808
|
</div>
|
|
2811
|
-
`}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)}};
|
|
2809
|
+
`}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)}};Os.styles=st.css`
|
|
2812
2810
|
|
|
2813
|
-
`;
|
|
2811
|
+
`;kE([(0,nv.ignoreComposingEvents)()],Os.prototype,"onSearchBarKeyDown",null)});var W,H,Io,ie,U,lv,xu,LE,T,Su=l(()=>{"use strict";W=c(y()),H=c(F()),Io=c(Lr()),ie=c(f());jg();ye();Fc();Hy();Tr();sb();Zt();lu();Vb();ma();ac();Qe();Aa();ev();wa();_a();iv();av();Wc();Gt();U=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};window.fluidtopics==null&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");lv={filtersButton:"Filters",inputPlaceHolder:"Search",clearInputButton:"Clear",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},xu=class extends CustomEvent{constructor(e){super("change",{detail:e})}},LE=()=>{},T=class extends ie.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 ie.ParametrizedLabelResolver(lv,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new ie.SearchPlaceConverter(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=Ft.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 vr(this),this.selectedFacetsManager=new xr(this),this.desktopSearchBarManager=new Os(this),this.mobileSearchBarManager=new ws(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new ie.Debouncer(10),this.updateLocalesDebouncer=new ie.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 ie.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===Ft.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var e;(e=this.container)===null||e===void 0||e.focus()}focusInput(){var e;this.reactToFocus=!1,(e=this.input)===null||e===void 0||e.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return W.html`
|
|
2814
2812
|
<ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
|
|
2815
2813
|
<div class="sr-only" aria-live="polite" aria-atomic="true">
|
|
2816
2814
|
${this.renderLiveText()}
|
|
2817
2815
|
</div>
|
|
2818
2816
|
${this.renderSearchBar()}
|
|
2819
|
-
`}renderLiveText(){return this.suggestManager.shouldDisplaySuggestions?this.labelResolver.resolve("ariaLiveSuggestions",this.suggestManager.recentSearchesMatchingQuery.length,this.suggestions.length):""}renderSearchBar(){return this.facetsInitialized&&this.availableContentLocalesInitialized?this.isMobile()?this.mobileSearchBarManager.render():this.desktopSearchBarManager.render():
|
|
2817
|
+
`}renderLiveText(){return this.suggestManager.shouldDisplaySuggestions?this.labelResolver.resolve("ariaLiveSuggestions",this.suggestManager.recentSearchesMatchingQuery.length,this.suggestions.length):""}renderSearchBar(){return this.facetsInitialized&&this.availableContentLocalesInitialized?this.isMobile()?this.mobileSearchBarManager.render():this.desktopSearchBarManager.render():W.html`
|
|
2820
2818
|
<ft-skeleton class="ft-search-bar--container ft-search-bar--skeleton"
|
|
2821
2819
|
part="loader"
|
|
2822
2820
|
tabindex="-1"></ft-skeleton>
|
|
2823
|
-
`}renderMobileFacets(){let e=this.availableContentLocales.filter(r=>r.lang===this.contentLocale).pop();return
|
|
2821
|
+
`}renderMobileFacets(){let e=this.availableContentLocales.filter(r=>r.lang===this.contentLocale).pop();return W.html`
|
|
2824
2822
|
<ft-accordion class="ft-search-bar--filters-container">
|
|
2825
|
-
${this.hasLocaleSelector()?
|
|
2823
|
+
${this.hasLocaleSelector()?W.html`
|
|
2826
2824
|
<ft-accordion-item data-facet-key="ft:locale">
|
|
2827
2825
|
<div class="ft-search-bar--filter-label" slot="toggle">
|
|
2828
2826
|
<ft-typography variant="button">${this.labelResolver.resolve("contentLocaleSelector")}
|
|
2829
2827
|
</ft-typography>
|
|
2830
|
-
${e?.label?
|
|
2828
|
+
${e?.label?W.html`
|
|
2831
2829
|
<ft-typography class="ft-search-bar--filter-label-values" variant="body2">
|
|
2832
2830
|
${e?.label}
|
|
2833
2831
|
</ft-typography>
|
|
2834
|
-
`:
|
|
2832
|
+
`:W.nothing}
|
|
2835
2833
|
</div>
|
|
2836
2834
|
<div part="content-locale-selector">
|
|
2837
2835
|
${this.getContentLocaleRadioGroup()}
|
|
2838
2836
|
</div>
|
|
2839
2837
|
</ft-accordion-item>
|
|
2840
2838
|
`:null}
|
|
2841
|
-
${(0,
|
|
2839
|
+
${(0,Io.repeat)(this.facets,r=>r.key,r=>{let i=Nc(r),o=r.key.replace(":","-"),s=Gg(i);return r.rootNodes.length>0?W.html`
|
|
2842
2840
|
<ft-accordion-item data-facet-key="${r.key}">
|
|
2843
2841
|
<div class="ft-search-bar--filter-label" slot="toggle">
|
|
2844
2842
|
<ft-typography variant="button">${r.label}</ft-typography>
|
|
2845
|
-
${
|
|
2843
|
+
${s.length>0?W.html`
|
|
2846
2844
|
<ft-typography class="ft-search-bar--filter-label-values" variant="body2">
|
|
2847
|
-
${
|
|
2845
|
+
${s.join(", ")}
|
|
2848
2846
|
</ft-typography>
|
|
2849
|
-
`:
|
|
2847
|
+
`:W.nothing}
|
|
2850
2848
|
</div>
|
|
2851
2849
|
<ft-filter
|
|
2852
|
-
part="filters filter filter-${
|
|
2853
|
-
.
|
|
2850
|
+
part="filters filter filter-${o}"
|
|
2851
|
+
label="${r.label}"
|
|
2852
|
+
.exportpartsPrefixes=${["filter","filter-"+o]}
|
|
2854
2853
|
id="${i.id}"
|
|
2855
|
-
filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",i.label)}"
|
|
2856
|
-
clearButtonLabel="${this.labelResolver.resolve("clearFilterButton")}"
|
|
2857
|
-
moreValuesButtonLabel="${this.labelResolver.resolve("displayMoreFilterValuesButton")}"
|
|
2858
|
-
noValuesLabel="${this.labelResolver.resolve("noFilterValuesAvailable")}"
|
|
2859
2854
|
?multivalued=${i.multivalued}
|
|
2860
2855
|
raiseSelectedOptions
|
|
2861
2856
|
.options=${i.options}
|
|
@@ -2863,24 +2858,24 @@
|
|
|
2863
2858
|
@change=${n=>this.setFilter(i.id,n.detail)}
|
|
2864
2859
|
></ft-filter>
|
|
2865
2860
|
</ft-accordion-item>
|
|
2866
|
-
`:
|
|
2861
|
+
`:W.nothing})}
|
|
2867
2862
|
</ft-accordion>
|
|
2868
|
-
`}getContentLocaleRadioGroup(){var e;return
|
|
2863
|
+
`}getContentLocaleRadioGroup(){var e;return W.html`
|
|
2869
2864
|
<ft-radio-group aria-labelledby="content_locale_radio_group_label"
|
|
2870
2865
|
@change=${r=>{this.contentLocale=r.detail==="all"?void 0:r.detail,this.clearFilters()}}>
|
|
2871
|
-
${(0,
|
|
2866
|
+
${(0,Io.repeat)((e=this.availableContentLocales)!==null&&e!==void 0?e:[],r=>r.lang,r=>{var i;return W.html`
|
|
2872
2867
|
<ft-radio value="${(i=r.lang)!==null&&i!==void 0?i:"all"}"
|
|
2873
2868
|
?checked=${r.lang==this.contentLocale}>
|
|
2874
2869
|
${r.label}
|
|
2875
2870
|
</ft-radio>
|
|
2876
2871
|
`})}
|
|
2877
2872
|
</ft-radio-group>
|
|
2878
|
-
`}renderDesktopMenu(){return this.hasFacets()?
|
|
2873
|
+
`}renderDesktopMenu(){return this.hasFacets()?W.html`
|
|
2879
2874
|
<div class="ft-search-bar--desktop-menu">
|
|
2880
2875
|
${this.renderFacetsActions()}
|
|
2881
2876
|
${this.renderDesktopFacets()}
|
|
2882
2877
|
<div class="ft-search-bar--facets-actions">
|
|
2883
|
-
${this.forceMenuOpen?this.renderDesktopClearFilters():
|
|
2878
|
+
${this.forceMenuOpen?this.renderDesktopClearFilters():W.nothing}
|
|
2884
2879
|
<ft-button class="ft-search-bar--launch-search"
|
|
2885
2880
|
href="${this.searchRequestSerializer(this.request)}"
|
|
2886
2881
|
part="launch-search-in-panel"
|
|
@@ -2890,38 +2885,38 @@
|
|
|
2890
2885
|
</ft-button>
|
|
2891
2886
|
</div>
|
|
2892
2887
|
</div>
|
|
2893
|
-
`:
|
|
2888
|
+
`:W.nothing}renderFacetsActions(){var e;return W.html`
|
|
2894
2889
|
<div class="ft-search-bar--facets-actions">
|
|
2895
|
-
${this.hasPresets?
|
|
2890
|
+
${this.hasPresets?W.html`
|
|
2896
2891
|
<ft-select
|
|
2897
2892
|
class="ft-search-bar--presets"
|
|
2898
2893
|
part="presets"
|
|
2899
2894
|
label="${this.labelResolver.resolve("presetsSelector")}"
|
|
2900
2895
|
outlined
|
|
2901
2896
|
@change=${r=>this.selectedPreset=r.detail}>
|
|
2902
|
-
${(0,
|
|
2897
|
+
${(0,Io.repeat)((e=this.presets)!==null&&e!==void 0?e:[],r=>r.name,r=>W.html`
|
|
2903
2898
|
<ft-select-option value="${r.name}"
|
|
2904
2899
|
label="${r.name}"
|
|
2905
2900
|
?selected=${r.name===this.selectedPreset}>
|
|
2906
2901
|
</ft-select-option>
|
|
2907
2902
|
`)}
|
|
2908
2903
|
</ft-select>
|
|
2909
|
-
`:
|
|
2904
|
+
`:W.nothing}
|
|
2910
2905
|
<slot name="facets-actions"></slot>
|
|
2911
|
-
${this.forceMenuOpen&&!this.isMobile()?
|
|
2906
|
+
${this.forceMenuOpen&&!this.isMobile()?W.nothing:this.renderDesktopClearFilters()}
|
|
2912
2907
|
</div>
|
|
2913
|
-
`}renderDesktopClearFilters(){return this.metadataFilters.length>0?
|
|
2908
|
+
`}renderDesktopClearFilters(){return this.metadataFilters.length>0?W.html`
|
|
2914
2909
|
<ft-button part="facets-actions"
|
|
2915
2910
|
@click=${this.clearFilters}>
|
|
2916
2911
|
${this.labelResolver.resolve("clearFilters")}
|
|
2917
2912
|
</ft-button>
|
|
2918
|
-
`:
|
|
2913
|
+
`:W.nothing}renderDesktopFacets(){return this.hasFacets()?W.html`
|
|
2919
2914
|
<ft-snap-scroll horizontal limitSize controls
|
|
2920
2915
|
class="ft-search-bar--filters-container"
|
|
2921
2916
|
part="filters-container"
|
|
2922
2917
|
exportpartsPrefix="filters-container"
|
|
2923
2918
|
data-filters-count="${this.facets.length+(this.hasLocaleSelector()?1:0)}">
|
|
2924
|
-
${this.hasLocaleSelector()?
|
|
2919
|
+
${this.hasLocaleSelector()?W.html`
|
|
2925
2920
|
<div part="content-locale-selector">
|
|
2926
2921
|
<div part="content-locale-selector-header">
|
|
2927
2922
|
<ft-typography variant="overline" id="content_locale_radio_group_label" part="content-locale-selector-label">
|
|
@@ -2930,48 +2925,44 @@
|
|
|
2930
2925
|
</div>
|
|
2931
2926
|
${this.getContentLocaleRadioGroup()}
|
|
2932
2927
|
</div>
|
|
2933
|
-
`:
|
|
2934
|
-
${(0,
|
|
2928
|
+
`:W.nothing}
|
|
2929
|
+
${(0,Io.repeat)(this.facets,e=>e.key,e=>{let r=Nc(e),i=r.options.some(s=>{var n,a;return((a=(n=s.subOptions)===null||n===void 0?void 0:n.length)!==null&&a!==void 0?a:0)>0}),o=e.key.replace(":","-");return W.html`
|
|
2935
2930
|
<ft-filter
|
|
2936
2931
|
class="${i?"ft-search-bar--hierarchical-filter":""}"
|
|
2937
|
-
part="filters filter filter-${
|
|
2938
|
-
.exportpartsPrefixes=${["filter","filter-"+
|
|
2932
|
+
part="filters filter filter-${o}"
|
|
2933
|
+
.exportpartsPrefixes=${["filter","filter-"+o]}
|
|
2939
2934
|
id="${r.id}"
|
|
2940
2935
|
label="${r.label}"
|
|
2941
|
-
filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",r.label)}"
|
|
2942
|
-
clearButtonLabel="${this.labelResolver.resolve("clearFilterButton")}"
|
|
2943
|
-
moreValuesButtonLabel="${this.labelResolver.resolve("displayMoreFilterValuesButton")}"
|
|
2944
|
-
noValuesLabel="${this.labelResolver.resolve("noFilterValuesAvailable")}"
|
|
2945
2936
|
?multivalued=${r.multivalued}
|
|
2946
2937
|
raiseSelectedOptions
|
|
2947
2938
|
.options=${r.options}
|
|
2948
2939
|
.displayedValuesLimit=${10}
|
|
2949
|
-
@change=${
|
|
2940
|
+
@change=${s=>this.setFilter(r.id,s.detail)}
|
|
2950
2941
|
></ft-filter>
|
|
2951
2942
|
`})}
|
|
2952
2943
|
</ft-snap-scroll>
|
|
2953
|
-
`:
|
|
2944
|
+
`:W.nothing}firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",r=>{r.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var r,i,o,s,n;if(e.has("labels")&&(this.labelResolver=new ie.ParametrizedLabelResolver(lv,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=u=>this.availableContentLocales.some(d=>d.lang==u);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")&&((o=this.presets)!==null&&o!==void 0?o:[]).forEach(a=>a.metadataFilters.forEach(u=>{u.valueFilter&&(u.valueFilter.values=u.valueFilter.values.map(d=>da(d)))})),e.has("presets")||e.has("selectedPreset")){let a=((s=this.presets)!==null&&s!==void 0?s:[]).find(u=>u.name===this.selectedPreset);a&&!this.compareRequests(this.request,a)&&this.setFiltersFromPreset(a)}e.has("contentLocale")&&this.contentLocale!=null&&(this.knownFacetLabels=new Map),["contentLocale","metadataFilters"].some(a=>e.has(a))&&(this.selectedPreset=(i=((n=this.presets)!==null&&n!==void 0?n:[]).find(a=>this.compareRequests(a,this.request)))===null||i===void 0?void 0:i.name),["baseUrl","apiIntegrationIdentifier"].some(a=>e.has(a))&&(this.api=void 0,this.initApi()),e.has("api")&&this.api&&this.initSearchData(),["uiLocale","contentLocale","metadataFilters","displayedFilters"].some(a=>e.has(a))&&this.updateFacets(),["query","uiLocale","contentLocale","metadataFilters","displayedFilters","api"].some(a=>e.has(a))&&this.suggestManager.update(),["query","uiLocale","contentLocale","metadataFilters"].some(a=>e.has(a))&&this.dispatchStateChangeEvent()}dispatchStateChangeEvent(){this.stateChangeEventDebouncer.run(()=>this.dispatchEvent(new xu(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(n=>n.key===this.scrollToFacet));let s=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);s&&(s.active=!0),this.scrollToFacet=void 0}}initApi(){this.api==null&&(this.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier,!0):void 0,setTimeout(()=>this.initApi(),10))}async retrieveFacetsFromSearch(){var e;if(this.facetsRequest.length==0){this.facets=[];return}let r=new Map;await((e=this.api)===null||e===void 0?void 0:e.search({...this.request,query:""}).then(i=>i.facets.forEach(o=>{this.knownFacetLabels.set(o.key,o.label),r.set(o.key,o)})).catch(LE)),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),S.addEventListener("authentication-change",this.initSearchData),this.initSearchData(),this.focusOnDisplay&&(0,ie.waitFor)(()=>this.input,50).then(e=>{ie.FocusHelper.allowAutoFocus(e)&&this.focusInput()})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox),document.removeEventListener("focusin",this.closeFloatingContainer),document.removeEventListener("click",this.closeFloatingContainer),S.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,ie.flatDeep)(o.rootNodes,s=>s.childNodes).forEach(s=>s.selected=r.includes(s.value))}),r.length&&i.push({key:e,valueFilter:{negative:!1,values:r}}),this.metadataFilters=i,this.scrollToFacet=e}setFiltersFromPreset(e){e!=null&&(e.contentLocale!=null&&(this.contentLocale=e.contentLocale),this.metadataFilters=e.metadataFilters)}clearFilters(){this.facets.forEach(r=>(0,ie.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?W.nothing:W.html`
|
|
2954
2945
|
<div class="ft-search-bar--floating-panel"
|
|
2955
2946
|
id="ft-search-bar-floating-panel"
|
|
2956
2947
|
@keyup=${this.onFloatingContainerKeyUp}
|
|
2957
2948
|
part="floating-panel"
|
|
2958
2949
|
tabindex="-1">
|
|
2959
2950
|
${this.renderDesktopMenu()}
|
|
2960
|
-
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};T.elementDefinitions={"ft-accordion":yr,"ft-accordion-item":
|
|
2951
|
+
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};T.elementDefinitions={"ft-accordion":yr,"ft-accordion-item":Ut,"ft-button":w,"ft-chip":de,"ft-filter":J,"ft-filter-option":wt,"ft-icon":ae,"ft-ripple":L,"ft-select":ne,"ft-select-option":Ge,"ft-size-watcher":xt,"ft-skeleton":ti,"ft-snap-scroll":Oe,"ft-tooltip":be,"ft-typography":V,"ft-radio-group":Et,"ft-radio":Ie};T.styles=[Nr,ie.noTextInputDefaultClearButton,qb,Kb,xr.styles,vr.styles,ie.screenReaderStyles];U([(0,H.property)({type:Boolean})],T.prototype,"dense",void 0);U([(0,H.property)()],T.prototype,"mode",void 0);U([(0,H.property)({type:Boolean})],T.prototype,"forceMobileMenuOpen",void 0);U([(0,H.property)({type:Boolean})],T.prototype,"forceMenuOpen",void 0);U([(0,H.property)()],T.prototype,"baseUrl",void 0);U([(0,H.property)()],T.prototype,"apiIntegrationIdentifier",void 0);U([(0,H.property)()],T.prototype,"contentLocale",void 0);U([(0,H.state)()],T.prototype,"availableContentLocales",void 0);U([(0,H.state)()],T.prototype,"availableContentLocalesInitialized",void 0);U([(0,H.property)()],T.prototype,"uiLocale",void 0);U([(0,ie.jsonProperty)({})],T.prototype,"labels",void 0);U([(0,ie.jsonProperty)([])],T.prototype,"displayedFilters",void 0);U([(0,ie.jsonProperty)([])],T.prototype,"presets",void 0);U([(0,H.property)({type:String,reflect:!0})],T.prototype,"selectedPreset",void 0);U([(0,ie.jsonProperty)([])],T.prototype,"priors",void 0);U([(0,H.property)()],T.prototype,"searchRequestSerializer",void 0);U([(0,H.property)({type:Boolean})],T.prototype,"focusOnDisplay",void 0);U([(0,H.state)()],T.prototype,"metadataFilters",void 0);U([(0,H.state)()],T.prototype,"sizeCategory",void 0);U([(0,H.state)()],T.prototype,"displayFacets",void 0);U([(0,H.state)()],T.prototype,"mobileMenuOpen",void 0);U([(0,H.state)()],T.prototype,"facets",void 0);U([(0,H.state)()],T.prototype,"facetsInitialized",void 0);U([(0,H.query)(".ft-search-bar--container")],T.prototype,"container",void 0);U([(0,H.query)(".ft-search-bar--filters-opener")],T.prototype,"filtersOpener",void 0);U([(0,H.query)(".ft-search-bar--floating-panel")],T.prototype,"floatingContainer",void 0);U([(0,H.query)("ft-snap-scroll.ft-search-bar--filters-container")],T.prototype,"scrollingFiltersContainer",void 0);U([(0,H.query)(".ft-search-bar--input")],T.prototype,"input",void 0);U([(0,H.query)(".ft-search-bar--launch-search")],T.prototype,"launchSearchButton",void 0);U([(0,H.state)()],T.prototype,"query",void 0);U([(0,H.state)()],T.prototype,"suggestions",void 0);U([(0,H.state)()],T.prototype,"recentSearches",void 0);U([(0,H.state)()],T.prototype,"scrollToFacet",void 0);U([(0,H.state)()],T.prototype,"api",void 0);U([(0,H.state)()],T.prototype,"displaySuggestListbox",void 0);U([(0,H.state)()],T.prototype,"selectedSuggestOptionId",void 0);U([(0,H.state)()],T.prototype,"selectedSuggestRemoveRecent",void 0);U([(0,H.state)()],T.prototype,"facetsLoaded",void 0)});var cv=l(()=>{"use strict"});var uv,dv=l(()=>{"use strict";Su();uv={"ft-search-bar":T}});var pv,hv=l(()=>{"use strict";pv=c(f());dv();(0,pv.customElements)(uv)});var fv=l(()=>{"use strict";Su();Aa();cv();hv()});var mv,gv,yv,bv=l(()=>{"use strict";mv=c(y());fo();gv=c(f());Qe();fv();yv=mv.css`
|
|
2961
2952
|
* {
|
|
2962
2953
|
box-sizing: border-box;
|
|
2963
2954
|
}
|
|
2964
2955
|
|
|
2965
2956
|
.ft-search-input-suggestion {
|
|
2966
2957
|
position: absolute;
|
|
2967
|
-
z-index: ${
|
|
2958
|
+
z-index: ${oe.floatingZIndex};
|
|
2968
2959
|
top: calc(100% + 2px);
|
|
2969
2960
|
left: -1px;
|
|
2970
2961
|
right: -1px;
|
|
2971
|
-
background: ${
|
|
2972
|
-
border: 1px solid ${
|
|
2973
|
-
border-radius: 0 0 ${
|
|
2974
|
-
box-shadow: ${
|
|
2962
|
+
background: ${oe.colorSurface};
|
|
2963
|
+
border: 1px solid ${oe.colorOutline};
|
|
2964
|
+
border-radius: 0 0 ${oe.borderRadius} ${oe.borderRadius};
|
|
2965
|
+
box-shadow: ${oe.elevation02};
|
|
2975
2966
|
}
|
|
2976
2967
|
|
|
2977
2968
|
.ft-search-input-suggestion--container {
|
|
@@ -2993,7 +2984,7 @@
|
|
|
2993
2984
|
padding: 8px;
|
|
2994
2985
|
gap: 8px;
|
|
2995
2986
|
cursor: pointer;
|
|
2996
|
-
color: ${
|
|
2987
|
+
color: ${oe.colorOnSurface};
|
|
2997
2988
|
min-height: 44px;
|
|
2998
2989
|
flex-grow: 1;
|
|
2999
2990
|
}
|
|
@@ -3009,18 +3000,18 @@
|
|
|
3009
3000
|
}
|
|
3010
3001
|
|
|
3011
3002
|
ft-ripple {
|
|
3012
|
-
${(0,
|
|
3003
|
+
${(0,gv.setVariable)(z.opacityContentOnSurfaceHover,z.opacityContentOnSurfaceSelected)}
|
|
3013
3004
|
}
|
|
3014
|
-
`});var
|
|
3005
|
+
`});var vv,ji,Eu,ri,xv=l(()=>{"use strict";vv=c(f()),ji=c(y());bv();Eu=c(Lr());Tr();Qe();ye();Gt();Lc();Zt();ri=class{constructor(e){this.ftSearchInput=e,this.listboxId="ft-search-input-suggestion"}render(){var e;let r=_r.get(),{recentQuerySuggestions:i}=this.ftSearchInput;return ji.html`
|
|
3015
3006
|
<div class="ft-search-input-suggestion ft-word-wrap"
|
|
3016
3007
|
id="${this.listboxId}"
|
|
3017
3008
|
role="listbox"
|
|
3018
3009
|
aria-label="${kr.messages.suggestionsLabel()}"
|
|
3019
3010
|
part="container">
|
|
3020
|
-
${(0,
|
|
3021
|
-
${(0,
|
|
3011
|
+
${(0,Eu.repeat)(i,o=>o,(o,s)=>this.renderRecentQuery(s,o,r))}
|
|
3012
|
+
${(0,Eu.repeat)((e=this.ftSearchInput.suggestResults)!==null&&e!==void 0?e:[],o=>o.value,(o,s)=>this.renderSuggestion(i.length+s,o,r))}
|
|
3022
3013
|
</div>
|
|
3023
|
-
`}renderRecentQuery(e,r,i){return this.renderOption(e,r,"history",
|
|
3014
|
+
`}renderRecentQuery(e,r,i){return this.renderOption(e,r,"history",Je.material,!0,i)}renderSuggestion(e,r,i){let o=r.type==="DOCUMENT"?Je.file_format:Je.fluid_topics,s;switch(r.type){case"MAP":s=r.editorialType==="BOOK"?we.BOOK:we.ARTICLE;break;case"DOCUMENT":s=Gn(r.mimeType,r.filenameExtension);break;case"TOPIC":s=we.TOPICS;break;case"HTML_PACKAGE":s=we.BOX_CODE;break;case"HTML_PACKAGE_PAGE":s=we.FILE_CODE;break}return this.renderOption(e,r.value,s,o,!1,i)}renderOption(e,r,i,o,s,n){let a=this.ftSearchInput.selectedSuggestOptionIndex===e,u=this.ftSearchInput.selectedSuggestOptionRemove,d=this.ftSearchInput.launchSearchPath?n.serializeToCurrentPageIfPossible({...this.ftSearchInput.request,query:r},this.ftSearchInput.launchSearchPath):ji.nothing;return ji.html`
|
|
3024
3015
|
<div part="suggestion-container"
|
|
3025
3016
|
class="ft-search-input-suggestion--container">
|
|
3026
3017
|
<a href="${d}"
|
|
@@ -3033,10 +3024,10 @@
|
|
|
3033
3024
|
@click=${()=>this.onSelectOption(r)}
|
|
3034
3025
|
>
|
|
3035
3026
|
<ft-ripple ?activated=${a&&!u}></ft-ripple>
|
|
3036
|
-
<ft-icon variant="${
|
|
3037
|
-
<ft-typography variant="${
|
|
3027
|
+
<ft-icon variant="${o}" value="${i}" part="suggestion-icon"></ft-icon>
|
|
3028
|
+
<ft-typography variant="${Q.body1}">${r}</ft-typography>
|
|
3038
3029
|
</a>
|
|
3039
|
-
${
|
|
3030
|
+
${s?ji.html`
|
|
3040
3031
|
<ft-button icon="${we.CLOSE}"
|
|
3041
3032
|
round
|
|
3042
3033
|
part="remove-suggestion"
|
|
@@ -3048,10 +3039,10 @@
|
|
|
3048
3039
|
?activated=${a&&u}
|
|
3049
3040
|
@click=${()=>this.onRemoveRecentQuery(r)}>
|
|
3050
3041
|
</ft-button>
|
|
3051
|
-
`:
|
|
3042
|
+
`:ji.nothing}
|
|
3052
3043
|
</div>
|
|
3053
|
-
`}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()}};
|
|
3054
|
-
<div class="${(0,
|
|
3044
|
+
`}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()}};ri.elementDefinitions={"ft-ripple":L,"ft-typography":V,"ft-icon":ae,"ft-button":w};ri.styles=[vv.wordWrap,yv]});function $E(t){let e=t.liveQuery.trim().toLowerCase();return t.recentQueries.filter(r=>r.toLowerCase().includes(e)).slice(0,IE)}var _s,ft,Ot,Sv,ze,IE,pe,Cu=l(()=>{"use strict";_s=c(y()),ft=c(f());fo();Di();yt();Lc();Ot=c(F()),Sv=c(ot());xv();Zt();ye();Gt();jn();ze=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},IE=5;pe=class extends ct(Nt){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 ri(this),this.showSuggestionsOnFocus=!0,this.onPointerDown=e=>{e.composedPath().some(o=>o===this||o===this.shadowRoot)||this.suggestions.closeBox()},this.addI18nContext(kr)}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},s=this.useCustomSearchPath?this.launchSearchPath:void 0,n=_r.get().serializeToCurrentPageIfPossible(o,s),a=!this.forceCloseSuggestion&&this.displaySuggestListbox&&r;return _s.html`
|
|
3045
|
+
<div class="${(0,Sv.classMap)(i)}" @focusout=${()=>this.forceCloseSuggestion=!1} role="search">
|
|
3055
3046
|
<div class="ft-search-input--input-container" part="input-container" tabindex="-1">
|
|
3056
3047
|
<div class="ft-search-input--input-outline" part="input-outline">
|
|
3057
3048
|
<input class="ft-search-input--input ft-typography--body2"
|
|
@@ -3063,7 +3054,7 @@
|
|
|
3063
3054
|
aria-autocomplete="list"
|
|
3064
3055
|
aria-controls="${this.suggestions.listboxId}"
|
|
3065
3056
|
aria-expanded="${this.displaySuggestListbox}"
|
|
3066
|
-
aria-activedescendant="${(e=this.suggestions.activeElementId)!==null&&e!==void 0?e:
|
|
3057
|
+
aria-activedescendant="${(e=this.suggestions.activeElementId)!==null&&e!==void 0?e:_s.nothing}"
|
|
3067
3058
|
@input=${this.onInput}
|
|
3068
3059
|
@click=${this.onClick}
|
|
3069
3060
|
@focus=${this.onFocus}
|
|
@@ -3073,10 +3064,10 @@
|
|
|
3073
3064
|
<div class="sr-only" aria-live="polite" aria-atomic="true">
|
|
3074
3065
|
${a?kr.messages.ariaLiveSuggestions(this.suggestions.recentQueriesCount(),this.suggestions.suggestionsCount()):""}
|
|
3075
3066
|
</div>
|
|
3076
|
-
${a?this.suggestions.render():
|
|
3067
|
+
${a?this.suggestions.render():_s.nothing}
|
|
3077
3068
|
</div>
|
|
3078
3069
|
<div class="ft-search-input--actions" part="actions">
|
|
3079
|
-
${this.liveQuery?
|
|
3070
|
+
${this.liveQuery?_s.html`
|
|
3080
3071
|
<ft-button id="clear-button"
|
|
3081
3072
|
class="ft-search-input--clear-query"
|
|
3082
3073
|
part="clear-query"
|
|
@@ -3097,74 +3088,74 @@
|
|
|
3097
3088
|
></ft-button>
|
|
3098
3089
|
</div>
|
|
3099
3090
|
</div>
|
|
3100
|
-
`}onSearchBarKeyDown(e){switch(this.forceCloseSuggestion=!1,["Escape","Tab","Shift"].includes(e.key)||(this.displaySuggestListbox=!0),e.key){case"Tab":this.suggestions.closeBox();break;case"Escape":this.displaySuggestListbox&&this.suggestions.optionsCount()>0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.closeBox());break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestions.selectNext();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestions.selectPrevious();break;case"ArrowLeft":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectLeft());break;case"ArrowRight":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectRight());break;case"Enter":{let r=this.suggestions.activeElement;if(r){r.click();break}this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break}case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){e.key==="Backspace"&&e.stopPropagation()}onInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}onClearInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(""),this.triggerSearchOnClear&&this.launchSearch(""),this.input.focus()}launchSearch(e){var r,i;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(r=this.stateManager)===null||r===void 0||r.setQuery(e),(i=this.stateManager)===null||i===void 0||i.addRecentQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.suggestions.closeBox()}onClick(){this.onFocus()}onFocus(){this.showSuggestionsOnFocus&&(this.displaySuggestListbox=!0),this.forceCloseSuggestion=!1}connectedCallback(){super.connectedCallback(),this.focusOnDisplay&&this.updateComplete.then(()=>{this.input&&ft.FocusHelper.allowAutoFocus(this.input)&&(this.showSuggestionsOnFocus=!1,this.input.focus(),this.showSuggestionsOnFocus=!0)})}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("displaySuggestListbox")&&(this.displaySuggestListbox?document.addEventListener("pointerdown",this.onPointerDown):document.removeEventListener("pointerdown",this.onPointerDown))}};
|
|
3101
|
-
`});var
|
|
3091
|
+
`}onSearchBarKeyDown(e){switch(this.forceCloseSuggestion=!1,["Escape","Tab","Shift"].includes(e.key)||(this.displaySuggestListbox=!0),e.key){case"Tab":this.suggestions.closeBox();break;case"Escape":this.displaySuggestListbox&&this.suggestions.optionsCount()>0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.closeBox());break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestions.selectNext();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestions.selectPrevious();break;case"ArrowLeft":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectLeft());break;case"ArrowRight":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectRight());break;case"Enter":{let r=this.suggestions.activeElement;if(r){r.click();break}this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break}case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){e.key==="Backspace"&&e.stopPropagation()}onInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}onClearInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(""),this.triggerSearchOnClear&&this.launchSearch(""),this.input.focus()}launchSearch(e){var r,i;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(r=this.stateManager)===null||r===void 0||r.setQuery(e),(i=this.stateManager)===null||i===void 0||i.addRecentQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.suggestions.closeBox()}onClick(){this.onFocus()}onFocus(){this.showSuggestionsOnFocus&&(this.displaySuggestListbox=!0),this.forceCloseSuggestion=!1}connectedCallback(){super.connectedCallback(),this.focusOnDisplay&&this.updateComplete.then(()=>{this.input&&ft.FocusHelper.allowAutoFocus(this.input)&&(this.showSuggestionsOnFocus=!1,this.input.focus(),this.showSuggestionsOnFocus=!0)})}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("displaySuggestListbox")&&(this.displaySuggestListbox?document.addEventListener("pointerdown",this.onPointerDown):document.removeEventListener("pointerdown",this.onPointerDown))}};pe.elementDefinitions={"ft-button":w,...ri.elementDefinitions};pe.styles=[Nr,ft.noTextInputDefaultClearButton,mc,...ri.styles,ft.screenReaderStyles];ze([(0,ft.redux)()],pe.prototype,"request",void 0);ze([(0,ft.redux)()],pe.prototype,"liveQuery",void 0);ze([(0,ft.redux)()],pe.prototype,"suggestResults",void 0);ze([(0,ft.redux)({selector:$E})],pe.prototype,"recentQuerySuggestions",void 0);ze([(0,Ot.state)()],pe.prototype,"forceCloseSuggestion",void 0);ze([(0,Ot.state)()],pe.prototype,"displaySuggestListbox",void 0);ze([(0,Ot.state)()],pe.prototype,"selectedSuggestOptionIndex",void 0);ze([(0,Ot.state)()],pe.prototype,"selectedSuggestOptionRemove",void 0);ze([(0,Ot.property)()],pe.prototype,"launchSearchPath",void 0);ze([ds()],pe.prototype,"placeholder",void 0);ze([(0,Ot.property)({type:Boolean})],pe.prototype,"useCustomSearchPath",void 0);ze([(0,Ot.property)({type:Boolean})],pe.prototype,"triggerSearchOnClear",void 0);ze([(0,Ot.property)({type:Boolean})],pe.prototype,"focusOnDisplay",void 0);ze([(0,Ot.query)(".ft-search-input--input")],pe.prototype,"input",void 0);ze([(0,Ot.query)('[part="launch-search-in-input"]')],pe.prototype,"launchSearchButton",void 0);ze([(0,ft.ignoreComposingEvents)()],pe.prototype,"onSearchBarKeyDown",null);ze([(0,ft.ignoreComposingEvents)()],pe.prototype,"onSearchBarKeyUp",null)});var Ev,Cv=l(()=>{"use strict";Cu();Ev={"ft-search-input":pe}});var Av,wv=l(()=>{"use strict";Av=c(f());Cv();(0,Av.customElements)(Ev)});var Ov={};oi(Ov,{FtSearchInput:()=>pe,FtSearchInputCssVariables:()=>oe,styles:()=>mc});var _v=l(()=>{"use strict";fo();Pg();Cu();wv()});var Rv,DE,Au,wu=l(()=>{"use strict";Rv=c(y()),DE={},Au=Rv.css`
|
|
3092
|
+
`});var Tv=l(()=>{"use strict"});var Ou,kv=l(()=>{"use strict";yt();Ou=$t.fromGwt("designedActionBlockAriaLabels")});var Ra,_u,Lv,Ir,Ru=l(()=>{"use strict";Ra=c(y()),_u=c(f());wu();Zt();Di();yt();kv();bs();Lv=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},Ir=class extends ct(Nt){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.neededSearchRequests=[Jt.CLUSTERED_SEARCH],this.addI18nContext(Ou)}render(){return this.isLastPage?Ra.nothing:Ra.html`
|
|
3102
3093
|
<ft-button @click=${this.loadMore}>
|
|
3103
|
-
${
|
|
3094
|
+
${Ou.messages.searchPageLoadMore()}
|
|
3104
3095
|
</ft-button>
|
|
3105
|
-
`}loadMore(){var e;(e=this.stateManager)===null||e===void 0||e.setPageNumber(this.currentPage+1)}}
|
|
3106
|
-
<ft-typography variant="${
|
|
3107
|
-
`:
|
|
3096
|
+
`}loadMore(){var e;(e=this.stateManager)===null||e===void 0||e.setPageNumber(this.currentPage+1)}};Ir.elementDefinitions={"ft-button":w};Ir.styles=Au;Lv([(0,_u.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}})],Ir.prototype,"currentPage",void 0);Lv([(0,_u.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}})],Ir.prototype,"isLastPage",void 0)});var Iv,$v=l(()=>{"use strict";Ru();Iv={"ft-search-load-more-button":Ir}});var Dv,Pv=l(()=>{"use strict";Dv=c(f());$v();(0,Dv.customElements)(Iv)});var Mv={};oi(Mv,{FtSearchLoadMoreButton:()=>Ir,FtSearchLoadMoreButtonCssVariables:()=>DE,styles:()=>Au});var Nv=l(()=>{"use strict";wu();Tv();Ru();Pv()});var Fv=l(()=>{"use strict"});var Ts,ka,Ta,ku,Tu,PE,Rs,Lu=l(()=>{"use strict";Ts=c(f());Di();ka=c(F()),Ta=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},ku=class extends Ts.FtContextRegistrationEvent{constructor(e){super("register-ft-search-result-component",e)}},Tu=Symbol("registerInterval"),PE=(0,Ts.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[Tu]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[Tu]):this.dispatchEvent(new ku({target:this}))}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=Tu,Ta([(0,ka.property)({attribute:!1})],r.prototype,"cluster",void 0),Ta([(0,ka.property)({attribute:!1})],r.prototype,"result",void 0),Ta([(0,Ts.numberProperty)()],r.prototype,"rank",void 0),Ta([(0,ka.property)({attribute:!1,type:Boolean})],r.prototype,"openResultInNewTab",void 0),r}),Rs=class extends PE(Nt){}});var Iu,Bv,Uv,qi,$u=l(()=>{"use strict";Iu=c(y()),Bv=c(f());Lu();Jn();Uv=c(Wn());ye();qi=class extends Rs{render(){var e;let r=(e=(0,Bv.accessResult)(this.result))===null||e===void 0?void 0:e.htmlExcerpt;return r?Iu.html`
|
|
3097
|
+
<ft-typography variant="${Q.body1}" part="text">${(0,Uv.unsafeHTML)(r)}</ft-typography>
|
|
3098
|
+
`:Iu.html`
|
|
3108
3099
|
<style>
|
|
3109
3100
|
:host {
|
|
3110
3101
|
display: none !important;
|
|
3111
3102
|
}
|
|
3112
3103
|
</style>
|
|
3113
|
-
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(r=>r.setAttribute("part","kwicmatch"))}};
|
|
3114
|
-
<a href="${
|
|
3104
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(r=>r.setAttribute("part","kwicmatch"))}};qi.elementDefinitions={"ft-typography":V};qi.styles=gc});var zv,Vv=l(()=>{"use strict";$u();zv={"ft-search-result-abstract":qi}});var Hv,Du=l(()=>{"use strict";Hv=c(f());Vv();(0,Hv.customElements)(zv)});var jv={};oi(jv,{FtSearchResultAbstract:()=>qi,FtSearchResultAbstractCssVariables:()=>Zn,styles:()=>gc});var qv=l(()=>{"use strict";Jn();Fv();$u();Du()});var Kv=l(()=>{"use strict"});var $o,Wv,Gv,Qv,ME,ii,Pu=l(()=>{"use strict";$o=c(y()),Wv=c(F()),Gv=c(f());Lu();ta();ye();Qv=c(Wn());Sc();bo();ME=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},ii=class extends Rs{constructor(){super(...arguments),this.withoutLink=!1}render(){var e;return this.result?this.withoutLink?this.renderTitle():$o.html`
|
|
3105
|
+
<a href="${ia(this.result)}"
|
|
3115
3106
|
@click=${this.onResultClick}
|
|
3116
3107
|
@auxclick=${r=>this.onAuxClick(r)}
|
|
3117
3108
|
@contextmenu=${this.onContextMenu}
|
|
3118
|
-
target="${
|
|
3109
|
+
target="${hg(this.result,(e=this.stateManager)===null||e===void 0?void 0:e.openExternalDocumentInNewTab)}"
|
|
3119
3110
|
part="link">
|
|
3120
3111
|
${this.renderTitle()}
|
|
3121
3112
|
</a>
|
|
3122
|
-
`:$
|
|
3123
|
-
<ft-typography variant="${
|
|
3124
|
-
`}onResultClick(){this.dispatchEvent(new
|
|
3113
|
+
`:$o.nothing}onAuxClick(e){e.button==1&&this.onResultClick()}renderTitle(){var e;return $o.html`
|
|
3114
|
+
<ft-typography variant="${Q.title}" part="text">${(0,Qv.unsafeHTML)((e=(0,Gv.accessResult)(this.result))===null||e===void 0?void 0:e.htmlTitle)}</ft-typography>
|
|
3115
|
+
`}onResultClick(){this.dispatchEvent(new $i(this.result,this.rank))}onContextMenu(){this.result.type!="HTML_PACKAGE"&&this.result.type!="HTML_PACKAGE_PAGE"&&this.dispatchEvent(new ys(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"})}};ii.elementDefinitions={"ft-typography":V};ii.styles=yc;ME([(0,Wv.property)({type:Boolean})],ii.prototype,"withoutLink",void 0)});var Xv,Yv=l(()=>{"use strict";Pu();Xv={"ft-search-result-title":ii}});var Zv,Mu=l(()=>{"use strict";Zv=c(f());Yv();(0,Zv.customElements)(Xv)});var Jv={};oi(Jv,{FtSearchResultTitle:()=>ii,FtSearchResultTitleCssVariables:()=>ea,styles:()=>yc});var ex=l(()=>{"use strict";ta();Kv();Pu();Mu()});var tx,NE,Nu,Fu=l(()=>{"use strict";tx=c(y()),NE={},Nu=tx.css`
|
|
3125
3116
|
[part="no-results-message"] {
|
|
3126
3117
|
text-align: center;
|
|
3127
3118
|
padding: 12px;
|
|
3128
3119
|
}
|
|
3129
|
-
`});var
|
|
3120
|
+
`});var rx=l(()=>{"use strict"});var ix,sx,ox=l(()=>{"use strict";ix=c(y()),sx=ix.css`
|
|
3130
3121
|
a {
|
|
3131
3122
|
color: inherit;
|
|
3132
3123
|
text-decoration: inherit;
|
|
3133
3124
|
}
|
|
3134
|
-
`});var
|
|
3125
|
+
`});var La,nx=l(()=>{"use strict";La=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 ax,ks,lx,Ia,Bu,Sr,cx=l(()=>{"use strict";ax=c(y()),ks=c(F()),lx=c(f());ox();nx();Ia=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},Bu=class extends CustomEvent{constructor(e){super("ft-search-result-cluster-change",{detail:e,bubbles:!0,composed:!0})}},Sr=class extends lx.FtLitElement{constructor(){super(...arguments),this.openResultInNewTab=!1,this.index=0,this.stateManager=new La(e=>this.onResultSelected(e))}render(){return ax.html`
|
|
3135
3126
|
<slot @register-ft-search-result-component=${this.registerComponent}></slot>
|
|
3136
|
-
`}onResultSelected(e){this.result=e,this.dispatchEvent(new
|
|
3127
|
+
`}onResultSelected(e){this.result=e,this.dispatchEvent(new Bu(this.result))}registerComponent(e){var r,i;e.stopPropagation();let o=(i=(r=e.detail)===null||r===void 0?void 0:r.target)!==null&&i!==void 0?i:e.composedPath()[0];this.register(o)}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()}};Sr.elementDefinitions={};Sr.styles=sx;Ia([(0,ks.property)({attribute:!1})],Sr.prototype,"cluster",void 0);Ia([(0,ks.property)({attribute:!1,type:Boolean})],Sr.prototype,"openResultInNewTab",void 0);Ia([(0,ks.state)()],Sr.prototype,"result",void 0);Ia([(0,ks.property)()],Sr.prototype,"index",void 0)});var ux,dx=l(()=>{"use strict";cx();ux={"ft-search-result-context":Sr}});var px,hx=l(()=>{"use strict";px=c(f());dx();(0,px.customElements)(ux)});var Ls,fx,Uu=l(()=>{"use strict";yt();Ls=$t.build("searchResultsNumber"),fx={results:"{0} results","results[\\=1]":"1 result"}});var $a,mx,Da,sr,Ki,_t,zu=l(()=>{"use strict";$a=c(y()),mx=c(Lr()),Da=c(F()),sr=c(f());Fu();Di();hx();Mu();Du();yt();Uu();bs();Ki=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},_t=class extends ct(Nt){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>$a.html`
|
|
3137
3128
|
<ft-search-result-title></ft-search-result-title>
|
|
3138
3129
|
<ft-search-result-abstract></ft-search-result-abstract>
|
|
3139
|
-
`,this.clusterSortCriterion=[],this.selectedResultByCluster={},this.neededSearchRequests=[
|
|
3140
|
-
<ft-typography part="no-results-message" variant="body1">${
|
|
3141
|
-
`;let e=this.buildClusters();return(0,
|
|
3130
|
+
`,this.clusterSortCriterion=[],this.selectedResultByCluster={},this.neededSearchRequests=[Jt.CLUSTERED_SEARCH],this.addI18nContext(Ls)}render(){if(this.displayNoResultsMessage&&this.results!=null&&this.results.length==0)return $a.html`
|
|
3131
|
+
<ft-typography part="no-results-message" variant="body1">${Ls.messages.results(0)}</ft-typography>
|
|
3132
|
+
`;let e=this.buildClusters();return(0,mx.repeat)(e,r=>r.id,(r,i)=>{var o;return $a.html`
|
|
3142
3133
|
<ft-search-result-context .cluster=${r} index="${i}"
|
|
3143
|
-
@ft-search-result-cluster-change=${
|
|
3144
|
-
${this.renderResult((
|
|
3134
|
+
@ft-search-result-cluster-change=${s=>this.onClusterChange(r.id,s.detail)}>
|
|
3135
|
+
${this.renderResult((o=this.selectedResultByCluster[r.id])!==null&&o!==void 0?o:r.entries[0],i)}
|
|
3145
3136
|
</ft-search-result-context>
|
|
3146
|
-
`})}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&&
|
|
3137
|
+
`})}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&&sr.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,sr.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(s=>s.entries.map(n=>({id:(0,sr.accessResultId)(n),entries:[n]}))))!==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}};_t.styles=Nu;Ki([(0,Da.property)({type:String,attribute:"cluster-policy"})],_t.prototype,"clusterPolicy",void 0);Ki([(0,Da.property)({type:Boolean})],_t.prototype,"displayNoResultsMessage",void 0);Ki([(0,Da.property)({attribute:!1})],_t.prototype,"renderResult",void 0);Ki([(0,sr.jsonProperty)([])],_t.prototype,"clusterSortCriterion",void 0);Ki([(0,sr.redux)({selector:t=>({...t.request,paging:void 0,changedByConfiguration:void 0})})],_t.prototype,"requestWithoutPaging",void 0);Ki([(0,sr.redux)({selector:t=>t.request.paging})],_t.prototype,"paging",void 0);Ki([(0,sr.redux)()],_t.prototype,"results",void 0)});var gx,yx=l(()=>{"use strict";zu();gx={"ft-search-results":_t}});var bx,vx=l(()=>{"use strict";bx=c(f());yx();(0,bx.customElements)(gx)});var xx={};oi(xx,{FtSearchResults:()=>_t,FtSearchResultsCssVariables:()=>NE,styles:()=>Nu});var Sx=l(()=>{"use strict";Fu();rx();zu();vx()});var Ex,FE,Vu,Hu=l(()=>{"use strict";Ex=c(y()),FE={},Vu=Ex.css`
|
|
3147
3138
|
|
|
3148
|
-
`});var
|
|
3149
|
-
<ft-typography variant="${
|
|
3150
|
-
${
|
|
3139
|
+
`});var Cx=l(()=>{"use strict"});var Pa,si,Ax,$r,ju=l(()=>{"use strict";Pa=c(y()),si=c(f());Hu();Di();yt();Uu();ye();bs();Ax=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},$r=class extends(0,si.withAriaNotification)(ct(Nt)){constructor(){super(),this.ariaNotificationDebouncer=new si.Debouncer(100),this.searchNumberOfResults={context:"officialContext",key:"searchNumberOfResults",message:""},this.neededSearchRequests=[Jt.CLUSTERED_SEARCH],this.addI18nContext(Ls,fx)}render(){return this.paging==null?Pa.nothing:Pa.html`
|
|
3140
|
+
<ft-typography variant="${Q.body1}">
|
|
3141
|
+
${Ls.messages.results(this.paging.totalClustersCount)}
|
|
3151
3142
|
</ft-typography>
|
|
3152
|
-
`}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)}})}}
|
|
3143
|
+
`}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)}})}};$r.elementDefinitions={"ft-typography":V};$r.styles=Vu;Ax([(0,si.jsonProperty)({context:"officialContext",key:"searchNumberOfResults"})],$r.prototype,"searchNumberOfResults",void 0);Ax([(0,si.redux)()],$r.prototype,"paging",void 0)});var wx,Ox=l(()=>{"use strict";ju();wx={"ft-search-results-number":$r}});var _x,Rx=l(()=>{"use strict";_x=c(f());Ox();(0,_x.customElements)(wx)});var Tx={};oi(Tx,{FtSearchResultsNumber:()=>$r,FtSearchResultsNumberCssVariables:()=>FE,styles:()=>Vu});var kx=l(()=>{"use strict";Hu();Cx();ju();Rx()});var Ix=c(f());var Rt=c(y()),Dr=c(f());var bc=c(y()),O=c(f());var ed=c(y()),q=c(f());Er();var X={padding:q.FtCssVariableFactory.create("--ft-card-padding","","SIZE","12px"),borderRadius:q.FtCssVariableFactory.extend("--ft-card-border-radius","",q.designSystemVariables.borderRadiusM),borderStyle:q.FtCssVariableFactory.create("--ft-card-border-style","","UNKNOWN","none"),borderColor:q.FtCssVariableFactory.extend("--ft-card-border-color","",q.designSystemVariables.colorOutline),hoverBorderColor:q.FtCssVariableFactory.extend("--ft-card-hover-border-color","",q.designSystemVariables.colorPrimary),outlineStyle:q.FtCssVariableFactory.create("--ft-card-outline-style","","UNKNOWN","solid"),outlineWidth:q.FtCssVariableFactory.create("--ft-card-outline-width","","SIZE","0"),outlineColor:q.FtCssVariableFactory.extend("--ft-card-outline-color","",q.designSystemVariables.colorPrimary),selectedOutlineStyle:q.FtCssVariableFactory.create("--ft-card-selected-outline-style","","UNKNOWN","solid"),selectedOutlineWidth:q.FtCssVariableFactory.create("--ft-card-selected-outline-width","","SIZE","2px"),selectedOutlineColor:q.FtCssVariableFactory.extend("--ft-card-selected-outline-color","",q.designSystemVariables.colorPrimary),selectedBorderRadius:q.FtCssVariableFactory.extend("--ft-card-selected-border-radius","",q.designSystemVariables.borderRadiusM),colorSurface:q.FtCssVariableFactory.extend("--ft-card-background-color","",q.designSystemVariables.colorSurface),colorOnSurfaceMedium:q.FtCssVariableFactory.extend("--ft-card-content-color","",q.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceHigh:q.FtCssVariableFactory.extend("--ft-card-title-color","",q.designSystemVariables.colorOnSurfaceHigh),elevation02:q.FtCssVariableFactory.extend("--ft-card-elevation","",q.designSystemVariables.elevation02),elevation04:q.FtCssVariableFactory.extend("--ft-card-selected-elevation","",q.designSystemVariables.elevation04)},td=ed.css`
|
|
3153
3144
|
:host {
|
|
3154
3145
|
display: block;
|
|
3155
3146
|
}
|
|
3156
3147
|
|
|
3157
3148
|
#container {
|
|
3158
|
-
padding: ${
|
|
3159
|
-
outline-style: ${
|
|
3160
|
-
outline-width: ${
|
|
3161
|
-
outline-color: ${
|
|
3162
|
-
border-color: ${
|
|
3163
|
-
border-style: ${
|
|
3149
|
+
padding: ${X.padding};
|
|
3150
|
+
outline-style: ${X.outlineStyle};
|
|
3151
|
+
outline-width: ${X.outlineWidth};
|
|
3152
|
+
outline-color: ${X.outlineColor};
|
|
3153
|
+
border-color: ${X.borderColor};
|
|
3154
|
+
border-style: ${X.borderStyle};
|
|
3164
3155
|
border-width: 1px;
|
|
3165
|
-
border-radius: ${
|
|
3166
|
-
${(0,q.setVariable)(
|
|
3167
|
-
box-shadow: ${
|
|
3156
|
+
border-radius: ${X.borderRadius};
|
|
3157
|
+
${(0,q.setVariable)(z.borderRadius,X.borderRadius)};
|
|
3158
|
+
box-shadow: ${X.elevation02};
|
|
3168
3159
|
position: relative;
|
|
3169
3160
|
width: 100%;
|
|
3170
3161
|
height: 100%;
|
|
@@ -3176,7 +3167,7 @@
|
|
|
3176
3167
|
grid-template-rows: max-content minmax(0, 1fr);
|
|
3177
3168
|
grid-gap: 8px;
|
|
3178
3169
|
box-sizing: border-box;
|
|
3179
|
-
background-color: ${
|
|
3170
|
+
background-color: ${X.colorSurface};
|
|
3180
3171
|
transition: box-shadow 0.2s linear, color 0.2s linear;
|
|
3181
3172
|
}
|
|
3182
3173
|
|
|
@@ -3198,12 +3189,12 @@
|
|
|
3198
3189
|
}
|
|
3199
3190
|
|
|
3200
3191
|
#container.selected {
|
|
3201
|
-
outline-style: ${
|
|
3202
|
-
outline-width: ${
|
|
3203
|
-
outline-color: ${
|
|
3204
|
-
border-radius: ${
|
|
3205
|
-
${(0,q.setVariable)(
|
|
3206
|
-
box-shadow: ${
|
|
3192
|
+
outline-style: ${X.selectedOutlineStyle};
|
|
3193
|
+
outline-width: ${X.selectedOutlineWidth};
|
|
3194
|
+
outline-color: ${X.selectedOutlineColor};
|
|
3195
|
+
border-radius: ${X.selectedBorderRadius};
|
|
3196
|
+
${(0,q.setVariable)(z.borderRadius,X.selectedBorderRadius)};
|
|
3197
|
+
box-shadow: ${X.elevation04};
|
|
3207
3198
|
}
|
|
3208
3199
|
|
|
3209
3200
|
#container.clickable {
|
|
@@ -3211,13 +3202,13 @@
|
|
|
3211
3202
|
}
|
|
3212
3203
|
|
|
3213
3204
|
#container.clickable:hover {
|
|
3214
|
-
box-shadow: ${
|
|
3215
|
-
border-color: ${
|
|
3205
|
+
box-shadow: ${X.elevation04};
|
|
3206
|
+
border-color: ${X.hoverBorderColor};
|
|
3216
3207
|
}
|
|
3217
3208
|
|
|
3218
3209
|
#header {
|
|
3219
3210
|
grid-area: header;
|
|
3220
|
-
color: ${
|
|
3211
|
+
color: ${X.colorOnSurfaceHigh};
|
|
3221
3212
|
text-overflow: ellipsis;
|
|
3222
3213
|
overflow: hidden;
|
|
3223
3214
|
word-break: break-word;
|
|
@@ -3232,13 +3223,13 @@
|
|
|
3232
3223
|
word-break: break-word;
|
|
3233
3224
|
min-width: 0; /* like with flexbox, some items have a hard time shrinking when necessary */
|
|
3234
3225
|
grid-area: content;
|
|
3235
|
-
color: ${
|
|
3226
|
+
color: ${X.colorOnSurfaceMedium};
|
|
3236
3227
|
}
|
|
3237
3228
|
|
|
3238
3229
|
#action {
|
|
3239
3230
|
grid-area: actions;
|
|
3240
3231
|
}
|
|
3241
|
-
`;
|
|
3232
|
+
`;fo();Jn();Er();ta();var Ke={searchFieldBackgroundColor:O.FtCssVariableFactory.extend("--ft-rsid-search-field-background-color","",O.designSystemVariables.colorSurface),searchFieldBorderColor:O.FtCssVariableFactory.extend("--ft-rsid-search-field-border-color","",O.designSystemVariables.colorOutline),searchFieldTextColor:O.FtCssVariableFactory.extend("--ft-rsid-search-field-text-color","",O.designSystemVariables.colorOnSurface),searchFieldBorderRadius:O.FtCssVariableFactory.extend("--ft-rsid-search-field-border-radius","",O.designSystemVariables.borderRadiusS),searchButtonColor:O.FtCssVariableFactory.extend("--ft-rsid-search-field-button-color","",O.designSystemVariables.colorPrimary),resultsNumberColor:O.FtCssVariableFactory.extend("--ft-rsid-results-number-color","",O.designSystemVariables.colorOnSurfaceMedium),resultBackgroundColor:O.FtCssVariableFactory.extend("--ft-rsid-result-background-color","",O.designSystemVariables.colorSurface),resultBorderColor:O.FtCssVariableFactory.extend("--ft-rsid-result-border-color","",O.designSystemVariables.colorOutline),resultBorderRadius:O.FtCssVariableFactory.extend("--ft-rsid-result-border-radius","",O.designSystemVariables.borderRadiusS),resultTitleTextColor:O.FtCssVariableFactory.extend("--ft-rsid-result-title-text-color","",O.designSystemVariables.colorOnSurface),resultBreadcrumbTextColor:O.FtCssVariableFactory.extend("--ft-rsid-result-breadcrumb-text-color","",O.designSystemVariables.colorOnSurfaceMedium),resultContentTextColor:O.FtCssVariableFactory.extend("--ft-rsid-result-content-text-color","",O.designSystemVariables.colorOnSurface),resultHighlightBackgroundColor:O.FtCssVariableFactory.create("--ft-rsid-result-highlight-background-color","","COLOR","#FFF26E"),resultHoverBackgroundColor:O.FtCssVariableFactory.extend("--ft-rsid-result-hover-background-color","",O.designSystemVariables.colorPrimary),resultHoverBorderColor:O.FtCssVariableFactory.extend("--ft-rsid-result-hover-border-color","",O.designSystemVariables.colorPrimary)},ag=bc.css`
|
|
3242
3233
|
.ft-search-in-doc--container {
|
|
3243
3234
|
display: flex;
|
|
3244
3235
|
flex-direction: column;
|
|
@@ -3246,11 +3237,11 @@
|
|
|
3246
3237
|
}
|
|
3247
3238
|
|
|
3248
3239
|
ft-search-input {
|
|
3249
|
-
${(0,O.setVariable)(
|
|
3250
|
-
${(0,O.setVariable)(
|
|
3251
|
-
${(0,O.setVariable)(
|
|
3252
|
-
${(0,O.setVariable)(
|
|
3253
|
-
${(0,O.setVariable)(
|
|
3240
|
+
${(0,O.setVariable)(oe.colorSurface,Ke.searchFieldBackgroundColor)};
|
|
3241
|
+
${(0,O.setVariable)(oe.colorOutline,Ke.searchFieldBorderColor)};
|
|
3242
|
+
${(0,O.setVariable)(oe.colorOnSurface,Ke.searchFieldTextColor)};
|
|
3243
|
+
${(0,O.setVariable)(oe.borderRadius,Ke.searchFieldBorderRadius)};
|
|
3244
|
+
${(0,O.setVariable)(oe.buttonColor,Ke.searchButtonColor)};
|
|
3254
3245
|
}
|
|
3255
3246
|
|
|
3256
3247
|
ft-search-results-number {
|
|
@@ -3258,41 +3249,41 @@
|
|
|
3258
3249
|
}
|
|
3259
3250
|
|
|
3260
3251
|
ft-search-results-number, ft-search-results::part(no-results-message) {
|
|
3261
|
-
color: ${
|
|
3252
|
+
color: ${Ke.resultsNumberColor};
|
|
3262
3253
|
}
|
|
3263
3254
|
|
|
3264
3255
|
ft-search-load-more-button {
|
|
3265
3256
|
margin: auto;
|
|
3266
3257
|
}
|
|
3267
|
-
`,
|
|
3258
|
+
`,lg=bc.css`
|
|
3268
3259
|
ft-card {
|
|
3269
3260
|
margin-bottom: 8px;
|
|
3270
|
-
${(0,O.setVariable)(
|
|
3271
|
-
${(0,O.setVariable)(
|
|
3272
|
-
${(0,O.setVariable)(
|
|
3273
|
-
${(0,O.setVariable)(
|
|
3274
|
-
${(0,O.setVariable)(
|
|
3275
|
-
${(0,O.setVariable)(
|
|
3276
|
-
${(0,O.setVariable)(
|
|
3261
|
+
${(0,O.setVariable)(X.elevation04,"none")};
|
|
3262
|
+
${(0,O.setVariable)(X.elevation02,"none")};
|
|
3263
|
+
${(0,O.setVariable)(X.borderStyle,"solid")};
|
|
3264
|
+
${(0,O.setVariable)(X.borderRadius,O.designSystemVariables.borderRadiusS)};
|
|
3265
|
+
${(0,O.setVariable)(X.colorSurface,Ke.resultBackgroundColor)};
|
|
3266
|
+
${(0,O.setVariable)(X.borderColor,Ke.resultBorderColor)};
|
|
3267
|
+
${(0,O.setVariable)(X.borderRadius,Ke.resultBorderRadius)};
|
|
3277
3268
|
}
|
|
3278
3269
|
|
|
3279
3270
|
ft-search-result-title {
|
|
3280
|
-
color: ${
|
|
3281
|
-
${(0,O.setVariable)(
|
|
3271
|
+
color: ${Ke.resultTitleTextColor};
|
|
3272
|
+
${(0,O.setVariable)(ea.highlightBackgroundColor,Ke.resultHighlightBackgroundColor)};
|
|
3282
3273
|
}
|
|
3283
3274
|
|
|
3284
3275
|
.breadcrumb {
|
|
3285
|
-
color: ${
|
|
3276
|
+
color: ${Ke.resultBreadcrumbTextColor};
|
|
3286
3277
|
}
|
|
3287
3278
|
|
|
3288
3279
|
ft-search-result-abstract {
|
|
3289
|
-
color: ${
|
|
3290
|
-
${(0,O.setVariable)(
|
|
3280
|
+
color: ${Ke.resultContentTextColor};
|
|
3281
|
+
${(0,O.setVariable)(Zn.highlightBackgroundColor,Ke.resultHighlightBackgroundColor)};
|
|
3291
3282
|
}
|
|
3292
3283
|
|
|
3293
3284
|
ft-card:hover {
|
|
3294
|
-
${(0,O.setVariable)(
|
|
3295
|
-
${(0,O.setVariable)(
|
|
3285
|
+
${(0,O.setVariable)(X.hoverBorderColor,Ke.resultHoverBorderColor)};
|
|
3286
|
+
${(0,O.setVariable)(z.color,Ke.resultHoverBackgroundColor)};
|
|
3296
3287
|
}
|
|
3297
3288
|
|
|
3298
3289
|
.result-container {
|
|
@@ -3305,11 +3296,11 @@
|
|
|
3305
3296
|
text-decoration: none;
|
|
3306
3297
|
color: inherit;
|
|
3307
3298
|
}
|
|
3308
|
-
`;
|
|
3309
|
-
<div id="container" part="container" class="${(0,
|
|
3310
|
-
${this.clickable?
|
|
3299
|
+
`;yt();var ms=c(f()),dg=c(F());var cg;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change",t.requestedTopicNotFound="requested-topic-not-found",t.requestedTopicFiltered="requested-topic-filtered"})(cg||(cg={}));var ug;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(ug||(ug={}));var CE=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},xc=class extends ms.FtContextRegistrationEvent{constructor(e){super("register-ft-reader-component",e)}},vc=Symbol("registerInterval"),AE=(0,ms.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[vc]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[vc]):this.dispatchEvent(new xc({target:this}))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=vc,CE([(0,dg.state)()],r.prototype,"stateManager",void 0),r}),ra=class extends AE(ms.FtLitElementRedux){};var Pr=c(F());Sc();yt();var Ec=$t.build("designedReaderSearchInDocument");var go=c(y()),Ii=c(F()),fg=c(f());Qe();ye();var mg=c(ot()),gs=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},ut=class extends fg.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 go.html`
|
|
3300
|
+
<div id="container" part="container" class="${(0,mg.classMap)(e)}">
|
|
3301
|
+
${this.clickable?go.html`
|
|
3311
3302
|
<ft-ripple primary ?selected=${this.selected}></ft-ripple>
|
|
3312
|
-
`:
|
|
3303
|
+
`:go.nothing}
|
|
3313
3304
|
<div id="header" part="header">
|
|
3314
3305
|
<ft-typography class="title" element="span" variant="title">${this.title}</ft-typography>
|
|
3315
3306
|
<slot name="header"></slot>
|
|
@@ -3323,39 +3314,40 @@
|
|
|
3323
3314
|
</ft-typography>
|
|
3324
3315
|
</div>
|
|
3325
3316
|
</div>
|
|
3326
|
-
`}};ut.elementDefinitions={"ft-ripple":L,"ft-typography":
|
|
3327
|
-
<style> ${
|
|
3328
|
-
<a href="${
|
|
3329
|
-
@auxclick=${
|
|
3317
|
+
`}};ut.elementDefinitions={"ft-ripple":L,"ft-typography":V};ut.styles=td;gs([(0,Ii.property)()],ut.prototype,"title",void 0);gs([(0,Ii.property)({type:Boolean})],ut.prototype,"clickable",void 0);gs([(0,Ii.property)({type:Boolean})],ut.prototype,"selected",void 0);gs([(0,Ii.property)({type:Boolean})],ut.prototype,"noHeader",void 0);gs([(0,Ii.property)({type:Boolean})],ut.prototype,"noContent",void 0);gs([(0,Ii.property)({type:Boolean})],ut.prototype,"oneLineHeader",void 0);var yg=c(f());var gg={"ft-card":ut};(0,yg.customElements)(gg);bo();ye();jn();var Vt=function(t,e,r,i){var o=arguments.length,s=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,r,s):n(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},De=class t extends ct(ra){constructor(){super(),this.searchInDocumentQuery="",this.hideResultTitle=!1,this.hideResultBreadcrumb=!1,this.hideResultAbstract=!1,this.hideResultsNumber=!1,this.emptyResultOnClear=!1,this.metadataFilters=[],this.uniqueId=(0,Dr.randomId)(6,"search-in-document-"),this.addI18nContext(Ec)}get filters(){return[{key:"ft:publicationId",valueFilter:{negative:!1,values:[this.map.id]}},...this.metadataFilters]}renderResult(e,r){var i;return Rt.html`
|
|
3318
|
+
<style> ${lg}</style>
|
|
3319
|
+
<a href="${ia(e,this.metadataFilters)}" @click=${o=>this.onLinkClick(o,e,r)}
|
|
3320
|
+
@auxclick=${o=>this.onAuxClick(o,e,r)}
|
|
3330
3321
|
@contextmenu=${()=>this.onContextMenu(e,r)}>
|
|
3331
3322
|
<ft-card clickable noheader>
|
|
3332
3323
|
<div class="result-container">
|
|
3333
|
-
${this.hideResultTitle?
|
|
3324
|
+
${this.hideResultTitle?Rt.nothing:Rt.html`
|
|
3334
3325
|
<ft-search-result-title withoutLink="true"></ft-search-result-title>`}
|
|
3335
|
-
${this.hideResultBreadcrumb?
|
|
3336
|
-
<ft-typography class="breadcrumb" variant="${
|
|
3326
|
+
${this.hideResultBreadcrumb?Rt.nothing:Rt.html`
|
|
3327
|
+
<ft-typography class="breadcrumb" variant="${Q.caption}">
|
|
3337
3328
|
${(i=e.topic)===null||i===void 0?void 0:i.breadcrumb.join(" > ")}
|
|
3338
3329
|
</ft-typography>
|
|
3339
3330
|
`}
|
|
3340
|
-
${this.hideResultAbstract?
|
|
3331
|
+
${this.hideResultAbstract?Rt.nothing:Rt.html`
|
|
3341
3332
|
<ft-search-result-abstract></ft-search-result-abstract>
|
|
3342
3333
|
`}
|
|
3343
3334
|
</div>
|
|
3344
3335
|
</ft-card>
|
|
3345
3336
|
</a>
|
|
3346
|
-
`}onAuxClick(e,r,i){e.button==1&&this.dispatchEvent(new
|
|
3337
|
+
`}onAuxClick(e,r,i){e.button==1&&this.dispatchEvent(new $i(r,i))}onContextMenu(e,r){this.dispatchEvent(new ys(e,r))}render(){return this.map?Rt.html`
|
|
3347
3338
|
<ft-search-context id="${this.uniqueId}"
|
|
3348
3339
|
part="search-context"
|
|
3349
3340
|
contentLocale="${this.map.lang}"
|
|
3350
3341
|
query="${this.searchInDocumentQuery}"
|
|
3342
|
+
?applyStickyFilters=${this.applyStickyFilters}
|
|
3351
3343
|
.filters=${this.filters}
|
|
3352
3344
|
scope="ALL_TOPICS"
|
|
3353
3345
|
ignoreEmptyQuery>
|
|
3354
3346
|
<div class="ft-search-in-doc--container">
|
|
3355
|
-
<ft-search-input placeholder="${this.placeholder?this.placeholder.message:
|
|
3347
|
+
<ft-search-input placeholder="${this.placeholder?this.placeholder.message:Ec.messages.placeholder()}"
|
|
3356
3348
|
?triggerSearchOnClear=${this.emptyResultOnClear}
|
|
3357
3349
|
@change=${e=>{var r;(r=this.stateManager)===null||r===void 0||r.setSearchInDocumentQuery(e.detail)}}></ft-search-input>
|
|
3358
|
-
${this.hideResultsNumber?
|
|
3350
|
+
${this.hideResultsNumber?Rt.nothing:Rt.html`
|
|
3359
3351
|
<ft-search-results-number></ft-search-results-number>
|
|
3360
3352
|
`}
|
|
3361
3353
|
<ft-search-results ?displayNoResultsMessage=${this.hideResultsNumber}
|
|
@@ -3367,7 +3359,7 @@
|
|
|
3367
3359
|
</slot>
|
|
3368
3360
|
</div>
|
|
3369
3361
|
</ft-search-context>
|
|
3370
|
-
`:
|
|
3362
|
+
`:Rt.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,Dr.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,i){var o,s;this.dispatchEvent(new $i(r,i)),(o=this.stateManager)===null||o===void 0||o.navigateToTopic((s=r.topic)===null||s===void 0?void 0:s.tocId,void 0,void 0),e.preventDefault()}importDynamicDependencies(){super.importDynamicDependencies();let e=t.registry;Promise.resolve().then(()=>(Dg(),$g)).then(({FtSearchContext:r})=>e.define("ft-search-context",r)),Promise.resolve().then(()=>(_v(),Ov)).then(({FtSearchInput:r})=>e.define("ft-search-input",r)),Promise.resolve().then(()=>(Nv(),Mv)).then(({FtSearchLoadMoreButton:r})=>e.define("ft-search-load-more-button",r)),Promise.resolve().then(()=>(qv(),jv)).then(({FtSearchResultAbstract:r})=>e.define("ft-search-result-abstract",r)),Promise.resolve().then(()=>(ex(),Jv)).then(({FtSearchResultTitle:r})=>e.define("ft-search-result-title",r)),Promise.resolve().then(()=>(Sx(),xx)).then(({FtSearchResults:r})=>e.define("ft-search-results",r)),Promise.resolve().then(()=>(kx(),Tx)).then(({FtSearchResultsNumber:r})=>e.define("ft-search-results-number",r))}};De.elementDefinitions={"ft-card":ut};De.styles=ag;Vt([(0,Dr.redux)()],De.prototype,"map",void 0);Vt([(0,Dr.redux)()],De.prototype,"searchInDocumentQuery",void 0);Vt([(0,Dr.redux)()],De.prototype,"applyStickyFilters",void 0);Vt([(0,Pr.query)("ft-search-results")],De.prototype,"searchResults",void 0);Vt([(0,Pr.property)({type:Boolean})],De.prototype,"hideResultTitle",void 0);Vt([(0,Pr.property)({type:Boolean})],De.prototype,"hideResultBreadcrumb",void 0);Vt([(0,Pr.property)({type:Boolean})],De.prototype,"hideResultAbstract",void 0);Vt([(0,Pr.property)({type:Boolean})],De.prototype,"hideResultsNumber",void 0);Vt([(0,Pr.property)({type:Boolean})],De.prototype,"emptyResultOnClear",void 0);Vt([(0,Pr.query)('[part="search-context"]')],De.prototype,"searchContext",void 0);Vt([ds()],De.prototype,"placeholder",void 0);Vt([(0,Dr.redux)({store:"reader"})],De.prototype,"metadataFilters",void 0);var Lx={"ft-reader-search-in-document":De};(0,Ix.customElements)(Lx);})();
|
|
3371
3363
|
/*! Bundled license information:
|
|
3372
3364
|
|
|
3373
3365
|
.store/lit-html-npm-3.3.3-0f054b825a/package/lit-html.js:
|