@fluid-topics/ft-reader-search-in-document 2.2.31 → 2.2.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-reader-search-in-document.light.js +281 -279
- package/build/ft-reader-search-in-document.min.js +242 -240
- package/package.json +18 -18
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var $x=Object.create;var Pa=Object.defineProperty;var Ix=Object.getOwnPropertyDescriptor;var Dx=Object.getOwnPropertyNames;var Px=Object.getPrototypeOf,Mx=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 ji=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},ii=(t,e)=>{for(var r in e)Pa(t,r,{get:e[r],enumerable:!0})},Nx=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Dx(e))!Mx.call(t,s)&&s!==r&&Pa(t,s,{get:()=>e[s],enumerable:!(i=Ix(e,s))||i.enumerable});return t};var c=(t,e,r)=>(r=t!=null?$x(Px(t)):{},Nx(e||!t||!t.__esModule?Pa(r,"default",{value:t,enumerable:!0}):r,t));var f=ji((NE,Hu)=>{Hu.exports=ftGlobals.wcUtils});var y=ji((FE,ju)=>{ju.exports=ftGlobals.lit});var Xu,Ee,qu,V,Ku,Wu,Gu,Qu,Yu,
|
|
1
|
+
"use strict";(()=>{var $x=Object.create;var Pa=Object.defineProperty;var Ix=Object.getOwnPropertyDescriptor;var Dx=Object.getOwnPropertyNames;var Px=Object.getPrototypeOf,Mx=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 ji=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},ii=(t,e)=>{for(var r in e)Pa(t,r,{get:e[r],enumerable:!0})},Nx=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Dx(e))!Mx.call(t,s)&&s!==r&&Pa(t,s,{get:()=>e[s],enumerable:!(i=Ix(e,s))||i.enumerable});return t};var c=(t,e,r)=>(r=t!=null?$x(Px(t)):{},Nx(e||!t||!t.__esModule?Pa(r,"default",{value:t,enumerable:!0}):r,t));var f=ji((NE,Hu)=>{Hu.exports=ftGlobals.wcUtils});var y=ji((FE,ju)=>{ju.exports=ftGlobals.lit});var Xu,Ee,qu,V,Ku,Wu,Gu,Qu,Yu,Sr=l(()=>{"use strict";Xu=c(y()),Ee=c(f()),qu=Ee.FtCssVariableFactory.extend("--ft-ripple-color","",Ee.designSystemVariables.colorContent),V={color:qu,backgroundColor:Ee.FtCssVariableFactory.extend("--ft-ripple-background-color","",qu),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")},Ku=Ee.FtCssVariableFactory.extend("--ft-ripple-color","",Ee.designSystemVariables.colorPrimary),Wu={color:Ku,backgroundColor:Ee.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ku)},Gu=Ee.FtCssVariableFactory.extend("--ft-ripple-color","",Ee.designSystemVariables.colorSecondary),Qu={color:Gu,backgroundColor:Ee.FtCssVariableFactory.extend("--ft-ripple-background-color","",Gu)},Yu=Xu.css`
|
|
2
2
|
:host {
|
|
3
3
|
display: contents;
|
|
4
4
|
}
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
opacity: ${V.opacityContentOnSurfacePressed};
|
|
111
111
|
transform: translate(-50%, -50%) scale(1);
|
|
112
112
|
}
|
|
113
|
-
`});var F=ji((zE,ed)=>{ed.exports=ftGlobals.litDecorators});var
|
|
113
|
+
`});var F=ji((zE,ed)=>{ed.exports=ftGlobals.litDecorators});var st=ji((HE,td)=>{td.exports=ftGlobals.litClassMap});var rd,Pe,id,ko,nt,L,Ma=l(()=>{"use strict";rd=c(y()),Pe=c(F()),id=c(st()),ko=c(f());Sr();nt=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},L=class extends ko.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 ko.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 ko.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:s,y:o}=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(s!=null?s-n.x:n.width/2),this.originY=Math.round(o!=null?o-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 rd.html`
|
|
114
114
|
<style>
|
|
115
115
|
.ft-ripple .ft-ripple--effect {
|
|
116
116
|
left: ${this.originX}px;
|
|
@@ -121,9 +121,9 @@
|
|
|
121
121
|
<div class="ft-ripple--background"></div>
|
|
122
122
|
<div class="ft-ripple--effect"></div>
|
|
123
123
|
</div>
|
|
124
|
-
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>u=>{a.forEach(d=>window.addEventListener(d,this.endPress,{once:!0})),this.startPress(u)},i=r("mouseup","contextmenu"),s=r("touchend","touchcancel"),o=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",s,n),e.addEventListener("touchmove",this.moveRipple,n),e.addEventListener("keydown",o,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",s,n),e.removeEventListener("touchmove",this.moveRipple,n),e.removeEventListener("keydown",o,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,s,o;return r.x!=null?{x:s,y:o}=r:i.touches!=null&&(s=i.touches[0].clientX,o=i.touches[0].clientY),{x:s,y:o}}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=Yu;
|
|
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"),s=r("touchend","touchcancel"),o=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",s,n),e.addEventListener("touchmove",this.moveRipple,n),e.addEventListener("keydown",o,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",s,n),e.removeEventListener("touchmove",this.moveRipple,n),e.removeEventListener("keydown",o,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,s,o;return r.x!=null?{x:s,y:o}=r:i.touches!=null&&(s=i.touches[0].clientX,o=i.touches[0].clientY),{x:s,y:o}}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=Yu;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 od=l(()=>{"use strict"});var sd,nd=l(()=>{"use strict";Ma();sd={"ft-ripple":L}});var ad,ld=l(()=>{"use strict";ad=c(f());nd();(0,ad.customElements)(sd)});var Xe=l(()=>{"use strict";Ma();Sr();od();ld()});function Ed(t,e){if(!ja(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return ud!==void 0?ud.createHTML(e):e}function qi(t,e,r=t,i){if(e===Io)return e;let s=i!==void 0?r._$Co?.[i]:r._$Cl,o=$o(e)?void 0:e._$litDirective$;return s?.constructor!==o&&(s?._$AO?.(!1),o===void 0?s=void 0:(s=new o(t),s._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=s:r._$Cl=s),s!==void 0&&(e=qi(t,s._$AS(t,e.values),s,i)),e}var Ha,cd,ks,ud,gd,Dr,yd,Fx,ni,Ls,$o,ja,Bx,Na,Lo,dd,pd,oi,hd,fd,bd,qa,vd,xd,Sd,Io,Ce,md,si,Ux,Do,Fa,$s,Ki,Ba,Ua,Va,za,Vx,Ka=l(()=>{Ha=globalThis,cd=t=>t,ks=Ha.trustedTypes,ud=ks?ks.createPolicy("lit-html",{createHTML:t=>t}):void 0,gd="$lit$",Dr=`lit$${Math.random().toFixed(9).slice(2)}$`,yd="?"+Dr,Fx=`<${yd}>`,ni=document,Ls=()=>ni.createComment(""),$o=t=>t===null||typeof t!="object"&&typeof t!="function",ja=Array.isArray,Bx=t=>ja(t)||typeof t?.[Symbol.iterator]=="function",Na=`[
|
|
125
125
|
\f\r]`,Lo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,dd=/-->/g,pd=/>/g,oi=RegExp(`>|${Na}(?:([^\\s"'>=/]+)(${Na}*=${Na}*(?:[^
|
|
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),Io=Symbol.for("lit-noChange"),Ce=Symbol.for("lit-nothing"),md=new WeakMap,si=ni.createTreeWalker(ni,129);Ux=(t,e)=>{let r=t.length-1,i=[],s,o=e===2?"<svg>":e===3?"<math>":"",n=Lo;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===Lo?p[1]==="!--"?n=dd:p[1]!==void 0?n=pd:p[2]!==void 0?(bd.test(p[2])&&(s=RegExp("</"+p[2],"g")),n=oi):p[3]!==void 0&&(n=oi):n===oi?p[0]===">"?(n=s??Lo,h=-1):p[1]===void 0?h=-2:(h=n.lastIndex-p[2].length,d=p[1],n=p[3]===void 0?oi:p[3]==='"'?fd:hd):n===fd||n===hd?n=oi:n===dd||n===pd?n=Lo:(n=oi,s=void 0);let x=n===oi&&t[a+1].startsWith("/>")?" ":"";o+=n===Lo?u+Fx:h>=0?(i.push(d),u.slice(0,h)+gd+u.slice(h)+Dr+x):u+Dr+(h===-2?a:x)}return[Ed(t,o+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Do=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),si.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(s=si.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(Dr),C=/([.?@])?(.*)/.exec(m);u.push({type:1,index:o,name:C[2],strings:x,ctor:C[1]==="."?Ba:C[1]==="?"?Ua:C[1]==="@"?Va:Ki}),s.removeAttribute(h)}else h.startsWith(Dr)&&(u.push({type:6,index:o}),s.removeAttribute(h));if(bd.test(s.tagName)){let h=s.textContent.split(Dr),m=h.length-1;if(m>0){s.textContent=Ts?Ts.emptyScript:"";for(let x=0;x<m;x++)s.append(h[x],ks()),si.nextNode(),u.push({type:2,index:++o});s.append(h[m],ks())}}}else if(s.nodeType===8)if(s.data===yd)u.push({type:2,index:o});else{let h=-1;for(;(h=s.data.indexOf(Dr,h+1))!==-1;)u.push({type:7,index:o}),h+=Dr.length-1}o++}}static createElement(e,r){let i=ni.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??ni).importNode(r,!0);si.currentNode=s;let o=si.nextNode(),n=0,a=0,u=i[0];for(;u!==void 0;){if(n===u.index){let d;u.type===2?d=new Ls(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=si.nextNode(),n++)}return si.currentNode=ni,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++}},Ls=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=qi(this,e,r),$o(e)?e===Ce||e==null||e===""?(this._$AH!==Ce&&this._$AR(),this._$AH=Ce):e!==this._$AH&&e!==Io&&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&&$o(this._$AH)?this._$AA.nextSibling.data=e:this.T(ni.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=Do.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 Do(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(ks()),this.O(ks()),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))}},Ki=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=qi(this,e,r,0),n=!$o(e)||e!==this._$AH&&e!==Io,n&&(this._$AH=e);else{let a=e,u,d;for(e=o[0],u=0;u<o.length-1;u++)d=qi(this,a[i+u],r,u),d===Io&&(d=this._$AH[u]),n||=!$o(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 Ki{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Ce?void 0:e}},Ua=class extends Ki{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Ce)}},Va=class extends Ki{constructor(e,r,i,s,o){super(e,r,i,s,o),this.type=5}_$AI(e,r=this){if((e=qi(this,e,r,0)??Ce)===Io)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){qi(this,e)}},Vx=Ha.litHtmlPolyfillSupport;Vx?.(Do,Ls),(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,$s=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 Rt,g,_d,Sr,v,ai,li,ci,ui,ir,Ae,lt,di,pi,Bt,Rd,Td,kd,Ld,$d,Pr,Mr,Id,Dd,Pd,Md,Ut=l(()=>{"use strict";Rt=c(y()),g=c(f()),_d=g.FtCssVariableFactory.extend("--ft-typography-font-family","",g.designSystemVariables.titleFont),Sr=g.FtCssVariableFactory.extend("--ft-typography-font-family","",g.designSystemVariables.contentFont),v={fontFamily:Sr,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")},ai={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")},li={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")},ci={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Sr),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")},ui={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Sr),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")},ir={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Sr),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","",Sr),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")},lt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Sr),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")},di={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Sr),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")},pi={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Sr),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")},Bt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Sr),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=Rt.css`
|
|
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),Io=Symbol.for("lit-noChange"),Ce=Symbol.for("lit-nothing"),md=new WeakMap,si=ni.createTreeWalker(ni,129);Ux=(t,e)=>{let r=t.length-1,i=[],s,o=e===2?"<svg>":e===3?"<math>":"",n=Lo;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===Lo?p[1]==="!--"?n=dd:p[1]!==void 0?n=pd:p[2]!==void 0?(bd.test(p[2])&&(s=RegExp("</"+p[2],"g")),n=oi):p[3]!==void 0&&(n=oi):n===oi?p[0]===">"?(n=s??Lo,h=-1):p[1]===void 0?h=-2:(h=n.lastIndex-p[2].length,d=p[1],n=p[3]===void 0?oi:p[3]==='"'?fd:hd):n===fd||n===hd?n=oi:n===dd||n===pd?n=Lo:(n=oi,s=void 0);let x=n===oi&&t[a+1].startsWith("/>")?" ":"";o+=n===Lo?u+Fx:h>=0?(i.push(d),u.slice(0,h)+gd+u.slice(h)+Dr+x):u+Dr+(h===-2?a:x)}return[Ed(t,o+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Do=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),si.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(s=si.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(Dr),C=/([.?@])?(.*)/.exec(m);u.push({type:1,index:o,name:C[2],strings:x,ctor:C[1]==="."?Ba:C[1]==="?"?Ua:C[1]==="@"?Va:Ki}),s.removeAttribute(h)}else h.startsWith(Dr)&&(u.push({type:6,index:o}),s.removeAttribute(h));if(bd.test(s.tagName)){let h=s.textContent.split(Dr),m=h.length-1;if(m>0){s.textContent=ks?ks.emptyScript:"";for(let x=0;x<m;x++)s.append(h[x],Ls()),si.nextNode(),u.push({type:2,index:++o});s.append(h[m],Ls())}}}else if(s.nodeType===8)if(s.data===yd)u.push({type:2,index:o});else{let h=-1;for(;(h=s.data.indexOf(Dr,h+1))!==-1;)u.push({type:7,index:o}),h+=Dr.length-1}o++}}static createElement(e,r){let i=ni.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??ni).importNode(r,!0);si.currentNode=s;let o=si.nextNode(),n=0,a=0,u=i[0];for(;u!==void 0;){if(n===u.index){let d;u.type===2?d=new $s(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=si.nextNode(),n++)}return si.currentNode=ni,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++}},$s=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=qi(this,e,r),$o(e)?e===Ce||e==null||e===""?(this._$AH!==Ce&&this._$AR(),this._$AH=Ce):e!==this._$AH&&e!==Io&&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&&$o(this._$AH)?this._$AA.nextSibling.data=e:this.T(ni.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=Do.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 Do(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(Ls()),this.O(Ls()),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))}},Ki=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=qi(this,e,r,0),n=!$o(e)||e!==this._$AH&&e!==Io,n&&(this._$AH=e);else{let a=e,u,d;for(e=o[0],u=0;u<o.length-1;u++)d=qi(this,a[i+u],r,u),d===Io&&(d=this._$AH[u]),n||=!$o(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 Ki{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Ce?void 0:e}},Ua=class extends Ki{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Ce)}},Va=class extends Ki{constructor(e,r,i,s,o){super(e,r,i,s,o),this.type=5}_$AI(e,r=this){if((e=qi(this,e,r,0)??Ce)===Io)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){qi(this,e)}},Vx=Ha.litHtmlPolyfillSupport;Vx?.(Do,$s),(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,Is=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,Er,v,ai,li,ci,ui,or,Ae,at,di,pi,Vt,Rd,Td,kd,Ld,$d,Pr,Mr,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),Er=g.FtCssVariableFactory.extend("--ft-typography-font-family","",g.designSystemVariables.contentFont),v={fontFamily:Er,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")},ai={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")},li={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")},ci={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Er),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")},ui={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Er),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","",Er),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","",Er),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","",Er),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")},di={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Er),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")},pi={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Er),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","",Er),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`
|
|
127
127
|
.ft-typography--title {
|
|
128
128
|
font-family: ${ai.fontFamily};
|
|
129
129
|
font-size: ${ai.fontSize};
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
text-transform: ${ai.textTransform};
|
|
134
134
|
text-decoration: ${ai.textDecoration};
|
|
135
135
|
}
|
|
136
|
-
`,Td=
|
|
136
|
+
`,Td=Tt.css`
|
|
137
137
|
.ft-typography--title-dense {
|
|
138
138
|
font-family: ${li.fontFamily};
|
|
139
139
|
font-size: ${li.fontSize};
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
text-transform: ${li.textTransform};
|
|
144
144
|
text-decoration: ${li.textDecoration};
|
|
145
145
|
}
|
|
146
|
-
`,kd=
|
|
146
|
+
`,kd=Tt.css`
|
|
147
147
|
.ft-typography--subtitle1 {
|
|
148
148
|
font-family: ${ci.fontFamily};
|
|
149
149
|
font-size: ${ci.fontSize};
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
text-transform: ${ci.textTransform};
|
|
154
154
|
text-decoration: ${ci.textDecoration};
|
|
155
155
|
}
|
|
156
|
-
`,Ld=
|
|
156
|
+
`,Ld=Tt.css`
|
|
157
157
|
.ft-typography--subtitle2 {
|
|
158
158
|
font-family: ${ui.fontFamily};
|
|
159
159
|
font-size: ${ui.fontSize};
|
|
@@ -164,17 +164,17 @@
|
|
|
164
164
|
text-decoration: ${ui.textDecoration};
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
`,$d=
|
|
167
|
+
`,$d=Tt.css`
|
|
168
168
|
.ft-typography--body1 {
|
|
169
|
-
font-family: ${
|
|
170
|
-
font-size: ${
|
|
171
|
-
font-weight: ${
|
|
172
|
-
letter-spacing: ${
|
|
173
|
-
line-height: ${
|
|
174
|
-
text-transform: ${
|
|
175
|
-
text-decoration: ${
|
|
176
|
-
}
|
|
177
|
-
`,Pr=
|
|
169
|
+
font-family: ${or.fontFamily};
|
|
170
|
+
font-size: ${or.fontSize};
|
|
171
|
+
font-weight: ${or.fontWeight};
|
|
172
|
+
letter-spacing: ${or.letterSpacing};
|
|
173
|
+
line-height: ${or.lineHeight};
|
|
174
|
+
text-transform: ${or.textTransform};
|
|
175
|
+
text-decoration: ${or.textDecoration};
|
|
176
|
+
}
|
|
177
|
+
`,Pr=Tt.css`
|
|
178
178
|
.ft-typography--body2 {
|
|
179
179
|
font-family: ${Ae.fontFamily};
|
|
180
180
|
font-size: ${Ae.fontSize};
|
|
@@ -184,17 +184,17 @@
|
|
|
184
184
|
text-transform: ${Ae.textTransform};
|
|
185
185
|
text-decoration: ${Ae.textDecoration};
|
|
186
186
|
}
|
|
187
|
-
`,Mr=
|
|
187
|
+
`,Mr=Tt.css`
|
|
188
188
|
.ft-typography--caption {
|
|
189
|
-
font-family: ${
|
|
190
|
-
font-size: ${
|
|
191
|
-
font-weight: ${
|
|
192
|
-
letter-spacing: ${
|
|
193
|
-
line-height: ${
|
|
194
|
-
text-transform: ${
|
|
195
|
-
text-decoration: ${
|
|
196
|
-
}
|
|
197
|
-
`,Id=
|
|
189
|
+
font-family: ${at.fontFamily};
|
|
190
|
+
font-size: ${at.fontSize};
|
|
191
|
+
font-weight: ${at.fontWeight};
|
|
192
|
+
letter-spacing: ${at.letterSpacing};
|
|
193
|
+
line-height: ${at.lineHeight};
|
|
194
|
+
text-transform: ${at.textTransform};
|
|
195
|
+
text-decoration: ${at.textDecoration};
|
|
196
|
+
}
|
|
197
|
+
`,Id=Tt.css`
|
|
198
198
|
.ft-typography--breadcrumb {
|
|
199
199
|
font-family: ${di.fontFamily};
|
|
200
200
|
font-size: ${di.fontSize};
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
text-transform: ${di.textTransform};
|
|
205
205
|
text-decoration: ${di.textDecoration};
|
|
206
206
|
}
|
|
207
|
-
`,Dd=
|
|
207
|
+
`,Dd=Tt.css`
|
|
208
208
|
.ft-typography--overline {
|
|
209
209
|
font-family: ${pi.fontFamily};
|
|
210
210
|
font-size: ${pi.fontSize};
|
|
@@ -214,21 +214,21 @@
|
|
|
214
214
|
text-transform: ${pi.textTransform};
|
|
215
215
|
text-decoration: ${pi.textDecoration};
|
|
216
216
|
}
|
|
217
|
-
`,Pd=
|
|
217
|
+
`,Pd=Tt.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
|
-
`,Md=
|
|
219
|
+
font-family: ${Vt.fontFamily};
|
|
220
|
+
font-size: ${Vt.fontSize};
|
|
221
|
+
font-weight: ${Vt.fontWeight};
|
|
222
|
+
letter-spacing: ${Vt.letterSpacing};
|
|
223
|
+
line-height: ${Vt.lineHeight};
|
|
224
|
+
text-transform: ${Vt.textTransform};
|
|
225
|
+
text-decoration: ${Vt.textDecoration};
|
|
226
|
+
}
|
|
227
|
+
`,Md=Tt.css`
|
|
228
228
|
.ft-typography {
|
|
229
229
|
vertical-align: inherit;
|
|
230
230
|
}
|
|
231
|
-
`});var Xa,Fd,Nd,z,Ya=l(()=>{"use strict";Od();Xa=c(F()),Fd=c(f())
|
|
231
|
+
`});var Xa,Fd,Nd,z,Ya=l(()=>{"use strict";Od();Xa=c(F()),Fd=c(f());Is();zt();Nd=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},z=class extends Fd.FtLitElement{constructor(){super(...arguments),this.variant=X.body1}render(){return this.element?Qa`
|
|
232
232
|
<${Wa(this.element)}
|
|
233
233
|
part="text"
|
|
234
234
|
class="ft-typography ft-typography--${this.variant}">
|
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
</${Wa(this.element)}>
|
|
237
237
|
`:Qa`
|
|
238
238
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
239
|
-
`}};z.styles=[Rd,Td,kd,Ld,$d,Pr,Mr,Id,Dd,Pd,Md];Nd([(0,Xa.property)()],z.prototype,"element",void 0);Nd([(0,Xa.property)()],z.prototype,"variant",void 0)});var Bd,Ud=l(()=>{"use strict";Ya();Bd={"ft-typography":z}});var Vd,zd=l(()=>{"use strict";Vd=c(f());Ud();(0,Vd.customElements)(Bd)});var ve=l(()=>{"use strict";Ya();
|
|
239
|
+
`}};z.styles=[Rd,Td,kd,Ld,$d,Pr,Mr,Id,Dd,Pd,Md];Nd([(0,Xa.property)()],z.prototype,"element",void 0);Nd([(0,Xa.property)()],z.prototype,"variant",void 0)});var Bd,Ud=l(()=>{"use strict";Ya();Bd={"ft-typography":z}});var Vd,zd=l(()=>{"use strict";Vd=c(f());Ud();(0,Vd.customElements)(Bd)});var ve=l(()=>{"use strict";Ya();zt();Is();zd()});var Hd,Nr,Po,jd,Za=l(()=>{"use strict";Hd=c(y()),Nr=c(f()),Po={distance:Nr.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Nr.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Nr.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:Nr.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",Nr.designSystemVariables.borderRadiusS),maxWidth:Nr.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},jd=Hd.css`
|
|
240
240
|
.ft-tooltip--container {
|
|
241
241
|
display: block;
|
|
242
242
|
}
|
|
@@ -267,15 +267,15 @@
|
|
|
267
267
|
position: relative;
|
|
268
268
|
word-break: break-word;
|
|
269
269
|
}
|
|
270
|
-
`});function Wd(t,e,r){return Fr(t,Mo(e,r))}function Is(t,e){return typeof t=="function"?t(e):t}function Fo(t){return t.split("-")[0]}function Br(t){return t.split("-")[1]}function tl(t){return t==="x"?"y":"x"}function rl(t){return t==="y"?"height":"width"}function Ds(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function il(t){return tl(Ds(t))}function Gd(t,e,r){r===void 0&&(r=!1);let i=Br(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=Fo(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 hi(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,Mo,Fr,No,or,Hx,Ps=l(()=>{Kd=["top","right","bottom","left"],qd=["start","end"],el=Kd.reduce((t,e)=>t.concat(e,e+"-"+qd[0],e+"-"+qd[1]),[]),Mo=Math.min,Fr=Math.max,No=Math.round,or=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=Ds(e),n=il(e),a=rl(n),u=Fo(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=Br(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}=Is(e,t),C=Xd(x),E=a[m?h==="floating"?"reference":"floating":h],P=hi(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},J=hi(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:Q,offsetParent:A,strategy:u}):Q);return{top:(P.top-J.top+C.top)/_.y,bottom:(J.bottom-P.bottom+C.bottom)/_.y,left:(P.left-J.left+C.left)/_.x,right:(J.right-P.right+C.right)/_.x}}function Kx(t,e,r){return(t?[...r.filter(s=>Br(s)===t),...r.filter(s=>Br(s)!==t)]:r.filter(s=>Fo(s)===s)).filter(s=>t?Br(s)===t||(e?Qd(s)!==s:!1):!0)}var qx,Jd,ep,tp,rp=l(()=>{Ps();Ps();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:J,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],...J},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}=Is(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[Fo(P)],Q[A[0]],Q[A[1]]],J=[...((i=n.autoPlacement)==null?void 0:i.overflows)||[],{placement:P,overflows:_}],W=k[E+1];if(W)return{data:{index:E+1,overflows:J},reset:{placement:W}};let Re=J.map(_t=>{let To=Br(_t.placement);return[_t.placement,To&&p?_t.overflows.slice(0,2).reduce((kx,Lx)=>kx+Lx,0):_t.overflows[0],_t.overflows]}).sort((_t,To)=>_t[1]-To[1]),Rs=((s=Re.filter(_t=>_t[2].slice(0,Br(_t[0])?2:3).every(To=>To<=0))[0])==null?void 0:s[0])||Re[0][0];return Rs!==a?{data:{index:E+1,overflows:J},reset:{placement:Rs}}:{}}}},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}=Is(t,e),p={x:r,y:i},h=await o.detectOverflow(e,d),m=Ds(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 Ns(){return typeof window<"u"}function mi(t){return op(t)?(t.nodeName||"").toLowerCase():"#document"}function ct(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Er(t){var e;return(e=(op(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function op(t){return Ns()?t instanceof Node||t instanceof ct(t).Node:!1}function Vt(t){return Ns()?t instanceof Element||t instanceof ct(t).Element:!1}function Cr(t){return Ns()?t instanceof HTMLElement||t instanceof ct(t).HTMLElement:!1}function ip(t){return!Ns()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ct(t).ShadowRoot}function Bo(t){let{overflow:e,overflowX:r,overflowY:i,display:s}=zt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&s!=="inline"&&s!=="contents"}function sp(t){return/^(table|td|th)$/.test(mi(t))}function Uo(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}function Wi(t){let e=Vt(t)?zt(t):t;return fi(e.transform)||fi(e.translate)||fi(e.scale)||fi(e.rotate)||fi(e.perspective)||!Fs()&&(fi(e.backdropFilter)||fi(e.filter))||Wx.test(e.willChange||"")||Gx.test(e.contain||"")}function np(t){let e=Ur(t);for(;Cr(e)&&!Gi(e);){if(Wi(e))return e;if(Uo(e))return null;e=Ur(e)}return null}function Fs(){return ol==null&&(ol=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ol}function Gi(t){return/^(html|body|#document)$/.test(mi(t))}function zt(t){return ct(t).getComputedStyle(t)}function Vo(t){return Vt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ur(t){if(mi(t)==="html")return t;let e=t.assignedSlot||t.parentNode||ip(t)&&t.host||Er(t);return ip(e)?e.host:e}function ap(t){let e=Ur(t);return Gi(e)?(t.ownerDocument||t).body:Cr(e)&&Bo(e)?e:ap(e)}function Ms(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=ct(s);if(o){let a=Bs(n);return e.concat(n,n.visualViewport||[],Bo(s)?s:[],a&&r?Ms(a):[])}else return e.concat(s,Ms(s,[],r))}function Bs(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}var Wx,Gx,fi,ol,sl=l(()=>{Wx=/transform|translate|scale|rotate|perspective|filter/,Gx=/paint|layout|strict|content/,fi=t=>!!t&&t!=="none"});function up(t){let e=zt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,s=Cr(t),o=s?t.offsetWidth:r,n=s?t.offsetHeight:i,a=No(r)!==o||No(i)!==n;return a&&(r=o,i=n),{width:r,height:i,$:a}}function dp(t){return Vt(t)?t:t.contextElement}function Qi(t){let e=dp(t);if(!Cr(e))return or(1);let r=e.getBoundingClientRect(),{width:i,height:s,$:o}=up(e),n=(o?No(r.width):r.width)/i,a=(o?No(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=ct(t);return!Fs()||!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===ct(t)}function zo(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let s=t.getBoundingClientRect(),o=dp(t),n=or(1);e&&(i?Vt(i)&&(n=Qi(i)):n=Qi(t));let a=Xx(o,r,i)?pp(o):or(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=ct(o),x=Vt(i)?ct(i):i,C=m,k=Bs(C);for(;k&&x!==C;){let E=Qi(k),P=k.getBoundingClientRect(),Q=zt(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=ct(k),k=Bs(C)}}return hi({width:p,height:h,x:u,y:d})}function Us(t,e){let r=Vo(t).scrollLeft;return e?e.left+r:zo(Er(t)).left+r}function hp(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Us(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=Er(i),a=e?Uo(e.floating):!1;if(i===n||a&&o)return r;let u={scrollLeft:0,scrollTop:0},d=or(1),p=or(0),h=Cr(i);if((h||!o)&&((mi(i)!=="body"||Bo(n))&&(u=Vo(i)),h)){let x=zo(i);d=Qi(i),p.x=x.x+i.clientLeft,p.y=x.y+i.clientTop}let m=n&&!h&&!o?hp(n,u):or(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=Vo(t),r=t.ownerDocument.body,i=Fr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Fr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-e.scrollLeft+Us(t),n=-e.scrollTop;return zt(r).direction==="rtl"&&(o+=Fr(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=ct(t),o=Er(t),n=s.visualViewport,a=o.clientWidth,u=o.clientHeight,d=0,p=0;if(n){let m=!Fs()||e==="fixed";i?m||(d=-n.offsetLeft,p=-n.offsetTop):(a=n.width,u=n.height,m&&(d=n.offsetLeft,p=n.offsetTop))}if(Us(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=zo(t,!0,e==="fixed"),i=r.top+t.clientTop,s=r.left+t.clientLeft,o=Qi(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(Er(t));else if(Vt(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 hi(i)}function iS(t,e){let r=e.get(t);if(r)return r;let i=Ms(t,[],!1).filter(a=>Vt(a)&&mi(a)!=="body"),s=null,o=zt(t).position==="fixed",n=o?Ur(t):t;for(;Vt(n)&&!Gi(n);){let a=zt(n),u=Wi(n),d=s?s.position:o?"fixed":"";!u&&(d==="fixed"||d==="absolute"&&a.position==="static")?i=i.filter(h=>h!==n):s=a,n=Ur(n)}return e.set(t,i),i}function oS(t){let{element:e,boundary:r,rootBoundary:i,strategy:s}=t,n=[...r==="clippingAncestors"?Uo(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=Fr(x.top,u),d=Mo(x.right,d),p=Mo(x.bottom,p),h=Fr(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=Cr(e),s=Er(e),o=r==="fixed",n=zo(t,!0,o,e),a={scrollLeft:0,scrollTop:0},u=or(0);if((i||!o)&&((mi(e)!=="body"||Bo(s))&&(a=Vo(e)),i)){let m=zo(e,!0,o,e);u.x=m.x+e.clientLeft,u.y=m.y+e.clientTop}!i&&s&&(u.x=Us(s));let d=s&&!i&&!o?hp(s,a):or(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 zt(t).position==="static"}function cp(t,e){if(!Cr(t)||zt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Er(t)===r&&(r=r.ownerDocument.body),r}function fp(t,e){let r=ct(t);if(Uo(t))return r;if(!Cr(t)){let s=Ur(t);for(;s&&!Gi(s);){if(Vt(s)&&!nl(s))return s;s=Ur(s)}return r}let i=cp(t,e);for(;i&&sp(i)&&nl(i);)i=cp(i,e);return i&&Gi(i)&&nl(i)&&!Wi(i)?r:i||np(t)||r}function lS(t){return zt(t).direction==="rtl"}var Qx,eS,aS,Vs,mp,gp,yp,bp=l(()=>{rp();Ps();sl();Qx=or(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}}};Vs={convertOffsetParentRelativeRectToViewportRelativeRect:Yx,getDocumentElement:Er,getClippingRect:oS,getOffsetParent:fp,getElementRects:aS,getClientRects:Zx,getDimensions:sS,getScale:Qi,isElement:Vt,isRTL:lS},mp=ep,gp=tp,yp=(t,e,r)=>{let i=new Map,s=r??{},o={...Vs,...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"||Wi(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:{...Vs,getOffsetParent:s=>Vs.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:jo,...e??{}})}var Cp,ll,uS,zs=l(()=>{"use strict";Cp=c(F(),1);gi();ll=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},uS=t=>({fromAttribute:e=>{if(e==null)return Ho(t);try{return JSON.parse(e)}catch{return Ho(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(!Xi(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(!Xi(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(!Xi(t[n],e[n]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Xi(t,e){try{return dS(t,e)}catch{return!1}}function jo(t,e){return!Xi(t,e)}function Ho(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Hs(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 gi=l(()=>{"use strict";zs()});var wp,cl,Op=l(()=>{"use strict";gi();wp=c(F(),1),cl=t=>{let e=t??{};return(r,i)=>{var s;let o={hasChanged:jo,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 js,ul=l(()=>{"use strict";js=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 qs,_p=l(()=>{"use strict";qs=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 Ws,Ks,Rp=l(()=>{"use strict";Ws=c(y(),1);zs();Ks=class extends Ws.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return(0,Ws.adoptStyles)(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){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 yi,Zi,Dp,Lp,$p,Pp,Ip,Yi,sr,Mp=l(()=>{"use strict";yi=c(F(),1);zs();_p();Rp();kp();Zi=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"),Yi=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Yi.eventName="exportparts-updated";sr=class extends Ks{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Dp]=new qs(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(Yi.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Yi.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 Yi)})}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;Zi([(0,yi.property)()],sr.prototype,"exportpartsPrefix",void 0);Zi([Ap([])],sr.prototype,"exportpartsPrefixes",void 0);Zi([(0,yi.property)({reflect:!0})],sr.prototype,"exportparts",void 0);Zi([(0,yi.property)()],sr.prototype,"customStylesheet",void 0);Zi([(0,yi.property)()],sr.prototype,"elementToFocus",void 0);Zi([(0,yi.state)()],sr.prototype,"useAdoptedStyleSheets",void 0)});function Gs(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Qs=l(()=>{"use strict"});var qo,Vr,bi,pS,Np,Fp=l(()=>{"use strict";Mp();Qs();gi();qo=Symbol("internalReduxEventsUnsubscribers"),Vr=Symbol("internalStoresUnsubscribers"),bi=Symbol("internalStores"),pS=Hs(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[bi].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[bi].values()][0]}getStore(n){return n==null?this.getUnnamedStore():this[bi].get(n)}addStore(n,a){var u;a=(u=a??n.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(a),this[bi].set(a,n),this.subscribeToStore(a,n),this.updateFromStores()}removeStore(n){let a=typeof n=="string"?n:n.name;this.unsubscribeFromStore(a),this[bi].delete(a)}setupStores(){this.unsubscribeFromStores(),this[bi].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[Vr].has(n.store):this[Vr].size>0)&&(this[a]=n.selector(d.getState(),this))}})}subscribeToStore(n,a){var u,d;this[Vr].set(n,a.subscribe(()=>this.updateFromStores())),this[qo].set(n,[]),Gs(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[qo].get(n).push(()=>a.removeEventListener(p.eventName,m))}}))),this.onStoreAvailable(n)}unsubscribeFromStores(){this[Vr].forEach((n,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(n){var a;this[Vr].has(n)&&this[Vr].get(n)(),this[Vr].delete(n),(a=this[qo].get(n))===null||a===void 0||a.forEach(u=>u()),this[qo].delete(n)}onStoreAvailable(n){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Vr,r=bi,i=qo,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),Np=class extends pS(sr){}});function Pe(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}function Ys(t){if(typeof t!="object"||t===null)return!1;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(Pe(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Pe(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Pe(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(Pe(3));return s}function h(E){if(typeof E!="function")throw new Error(Pe(4));if(u)throw new Error(Pe(5));let P=!0;d();let Q=a++;return n.set(Q,E),function(){if(P){if(u)throw new Error(Pe(6));P=!1,d(),n.delete(Q),o=null}}}function m(E){if(!Ys(E))throw new Error(Pe(7));if(typeof E.type>"u")throw new Error(Pe(8));if(typeof E.type!="string")throw new Error(Pe(17));if(u)throw new Error(Pe(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(Pe(10));i=E,m({type:Xs.REPLACE})}function C(){let E=h;return{subscribe(P){if(typeof P!="object"||P===null)throw new Error(Pe(11));function Q(){let _=P;_.next&&_.next(p())}return Q(),{unsubscribe:E(Q)}},[Bp](){return this}}}return m({type:Xs.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:Xs.INIT})>"u")throw new Error(Pe(12));if(typeof r(void 0,{type:Xs.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Pe(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(Pe(14))}p[m]=k,d=d||k!==C}return d=d||i.length!==Object.keys(a).length,d?p:a}}function Ko(...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(Pe(15))},n={getState:s.getState,dispatch:(u,...d)=>o(u,...d)},a=t.map(u=>u(n));return o=Ko(...a)(s.dispatch),{...s,dispatch:o}}}function Vp(t){return Ys(t)&&"type"in t&&typeof t.type=="string"}var hS,Bp,dl,fS,Xs,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()}`},Xs=fS});function Ht(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}function gt(t){return t?Yp(t)||un(t)||!!t[zp]||!!t[tn]?.[zp]||dn(t)||pn(t):!1}function Yp(t){if(!t||!Ol(t))return!1;let e=eo(t);if(e===null||e===mt[ln])return!0;let r=mt.hasOwnProperty.call(e,tn)&&e[tn];if(r===Object)return!0;if(!Ji(r))return!1;let i=Hp.get(r);return i===void 0&&(i=Function.toString.call(r),Hp.set(r,i)),i===gS}function cn(t,e,r=!0){Xo(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 Xo(t){let e=t[je];return e?e.type_:un(t)?1:dn(t)?2:pn(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(dn(t))return new Map(t);if(pn(t))return new Set(t);if(un(t))return Array[ln].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[Js]===!1&&(a[Js]=!0,a[bl]=!0),(a.get||a.set)&&(i[n]={[bl]:!0,[Js]:!0,[rn]:a[rn],[Wo]:t[n]})}return mt.create(eo(t),i)}else{let i=eo(t);if(i!==null&&r)return{...t};let s=mt.create(i);return mt.assign(s,t)}}function hn(t,e=!1){return fn(t)||nr(t)||!gt(t)||(Xo(t)>1&&mt.defineProperties(t,{set:Zs,add:Zs,clear:Zs,delete:Zs}),mt.freeze(t),e&&cn(t,(r,i)=>{hn(i,!0)},!1)),t}function vS(){Ht(2)}function fn(t){return t===null||!Ol(t)?!0:mt.isFrozen(t)}function vi(t){let e=Zp[t];return e||Ht(0,t),e}function Kp(t,e){e&&(t.patchPlugin_=vi(Sl),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function El(t){Cl(t),t.drafts_.forEach(SS),t.drafts_=null}function Cl(t){t===Go&&(Go=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),Ht(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(fn(e))return e;let r=e[je];if(!r)return nn(e,t.handledSet_,t);if(!mn(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_&&hn(e,r)}function eh(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}function th(t,e,r,i){let s=Ar(t),o=t.type_;if(i!==void 0&&vl(s,i,o)===e){on(s,i,r,o);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;cn(s,(u,d)=>{if(nr(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)on(s,a,r,o)}function AS(t,e,r){t.callbacks_.push(function(s){let o=e;if(!o||!mn(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(nr(r)){let s=r[je];mn(s,i)&&s.callbacks_.push(function(){en(t);let n=_l(s);th(t,r,n,e)})}else gt(r)&&t.callbacks_.push(function(){let o=Ar(t);t.type_===3?o.has(r)&&nn(r,i.handledSet_,i):vl(o,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&nn(vl(t.copy_,e,t.type_),i.handledSet_,i)})}function nn(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||nr(t)||e.has(t)||!gt(t)||fn(t)||(e.add(t),cn(t,(i,s)=>{if(nr(s)){let o=s[je];if(mn(o,r)){let n=_l(o);on(t,i,n,t.type_),eh(o)}}else gt(s)&&nn(s,e,r)})),t}function OS(t,e){let r=un(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=an;r&&(s=[i],o=Qo);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?Ar(r):t)[e]}function _S(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!gt(r)||r[je]?!1:t.baseRefs_.has(r)}function RS(t,e,r){let i=ih(e,r);return i?Wo in i?i[Wo]:i.get?.call(t.draft_):void 0}function ih(t,e){if(!(e in t))return;let r=eo(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=eo(r)}}function Al(t){t.modified_||(t.modified_=!0,t.parent_&&Al(t.parent_))}function en(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]=dn(e)?vi(sn).proxyMap_(e,r):pn(e)?vi(sn).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 nr(t)||Ht(10,t),sh(t)}function sh(t){if(!gt(t)||fn(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);return cn(r,(s,o)=>{on(r,s,sh(o))},i),e&&(e.finalized_=!1),r}var Xp,zp,je,mt,eo,tn,ln,bl,rn,Js,Wo,nr,gS,Hp,ml,vl,on,un,dn,pn,Ol,Ji,gl,Ar,_l,Zs,sn,Sl,jp,Zp,qp,Go,Jp,xS,Wp,mn,CS,an,Qo,TS,kS,y0,LS,Rl,nh=l(()=>{Xp=Symbol.for("immer-nothing"),zp=Symbol.for("immer-draftable"),je=Symbol.for("immer-state");mt=Object,eo=mt.getPrototypeOf,tn="constructor",ln="prototype",bl="configurable",rn="enumerable",Js="writable",Wo="value",nr=t=>!!t&&!!t[je];gS=mt[ln][tn].toString(),Hp=new WeakMap;ml=(t,e,r=Xo(t))=>r===2?t.has(e):mt[ln].hasOwnProperty.call(t,e),vl=(t,e,r=Xo(t))=>r===2?t.get(e):t[e],on=(t,e,r,i=Xo(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};un=Array.isArray,dn=t=>t instanceof Map,pn=t=>t instanceof Set,Ol=t=>typeof t=="object",Ji=t=>typeof t=="function",gl=t=>typeof t=="boolean";Ar=t=>t.copy_||t.base_,_l=t=>t.modified_?t.copy_:t.base_;Zs={[Wo]:vS};sn="MapSet",Sl="Patches",jp="ArrayMethods",Zp={};qp=t=>!!Zp[t],Jp=()=>Go,xS=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:qp(sn)?vi(sn):void 0,arrayMethodsPlugin_:qp(jp)?vi(jp):void 0});Wp=t=>Go=xS(Go,t);mn=(t,e)=>t.scope_===e,CS=[];an={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=Ar(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)){en(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 Ar(t)},ownKeys(t){return Reflect.ownKeys(Ar(t))},set(t,e,r){let i=ih(Ar(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let s=yl(Ar(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;en(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 en(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=Ar(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[Js]:!0,[bl]:t.type_!==1||e!=="length",[rn]:i[rn],[Wo]:r[e]}},defineProperty(){Ht(11)},getPrototypeOf(t){return eo(t.base_)},setPrototypeOf(){Ht(12)}},Qo={};for(let t in an){let e=an[t];Qo[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}Qo.deleteProperty=function(t,e){return Qo.set.call(this,t,e,void 0)};Qo.set=function(t,e,r){return an.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(Ji(e)&&!Ji(r)){let o=r;r=e;let n=this;return function(u=o,...d){return n.produce(u,p=>r.call(this,p,...d))}}Ji(r)||Ht(6),i!==void 0&&!Ji(i)&&Ht(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_&&hn(s,!0),i){let o=[],n=[];vi(Sl).generateReplacementPatches_(e,s,{patches_:o,inversePatches_:n}),i(o,n)}return s}else Ht(1,e)},this.produceWithPatches=(e,r)=>{if(Ji(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)||Ht(8),nr(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_)&&Ht(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=vi(Sl).applyPatches_;return nr(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 zr(t,e){function r(...i){if(e){let s=e(...i);if(!s)throw new Error(ar(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 gn(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(Ys(r))u=hl(r);else throw new Error(ar(1));let d;typeof i=="function"?d=i(e):d=e();let p=Ko;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(ar(28));if(a in e)throw new Error(ar(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(nr(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(ar(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(ar(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 J=typeof A=="string"?A:A.type;if(!J)throw new Error(ar(12));if(J in u.sliceCaseReducersByType)throw new Error(ar(13));return u.sliceCaseReducersByType[J]=_,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],J={reducerName:A,type:YS(s,A),createNotation:typeof i.reducers=="function"};rE(_)?oE(J,_,d,e):tE(J,_,d)});function p(){let[A={},_=[],J=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);J&&Re.addDefaultCase(J)})}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 J(Re){let He=Re[A];return typeof He>"u"&&_&&(He=gn(x,J,E)),He}function W(Re=h){return gn(gn(m,_,()=>new WeakMap),Re,()=>{let He={};for(let[Rs,_t]of Object.entries(i.selectors??{}))He[Rs]=JS(_t,Re,()=>gn(x,Re,E),_);return He})}return{reducerPath:A,getSelectors:W,get selectors(){return W(J)},selectSlice:J}}let Q={name:s,reducer:k,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:E,...P(o),injectInto(A,{reducerPath:_,...J}={}){let W=_??o;return A.inject({reducerPath:W,reducer:k},J),{...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(ar(17));o=i.reducer,n=i.prepare}else o=i;s.addCase(t,o).exposeCaseReducer(e,o).exposeAction(e,n?zr(t,n):zr(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(ar(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||yn,pending:a||yn,rejected:u||yn,settled:d||yn})}function yn(){}function ar(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"?Ko:Ko.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;IS=t=>t&&typeof t.match=="function";mh=class Yo extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Yo.prototype)}static get[Symbol.species](){return Yo}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Yo(...e[0].concat(this)):new Yo(...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=zr(e+"/fulfilled",(u,d,p,h)=>({payload:u,meta:{...h||{},arg:p,requestId:d,requestStatus:"fulfilled"}})),o=zr(e+"/pending",(u,d,p)=>({payload:void 0,meta:{...p||{},arg:d,requestId:u,requestStatus:"pending"}})),n=zr(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 J=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([J,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(zr(`${kl}/add`),{withTypes:()=>sE}),k0=zr(`${kl}/removeAll`),nE=Ch(zr(`${kl}/remove`),{withTypes:()=>nE})});var aE,bn,wh=l(()=>{"use strict";gi();aE=Hs(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)}}}),bn=class extends aE(Object){}});var Oh,_h=l(()=>{"use strict";Ah();Qs();ul();wh();gi();window.ftReduxStores||(window.ftReduxStores={});Oh=class t extends bn{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(Gs(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=Ho(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 js,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];Xi(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";gi()});var Th=l(()=>{"use strict"});var kh=l(()=>{"use strict";Op();ul();Fp();_h();Qs();Rh();Th()});var vn,Lh=l(()=>{"use strict";vn=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 xn,lE,lr,Zo,cE,S,qe=l(()=>{"use strict";xn=c(f()),lE="ft-app-info",lr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};lr.eventName="authentication-change";Zo=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Zo.eventName="ui-locale-changed";cE={session:(t,e)=>{(0,xn.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>S.dispatchEvent(new lr(e.payload)),0))}},S=xn.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,Sn,nA,Ih=l(()=>{"use strict";Ll=c(F());kh();Lh();qe();$h=c(f()),Sn=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=>vn.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Sn([(0,Ll.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Sn([(0,Ll.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Sn([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),Sn([cl({store:S.name})],e.prototype,"uiLocale",void 0),e})});var $l=l(()=>{});var Dh,Ph,Mh,Hr,Nh,Fh,Bh,xi,Uh,Vh,zh,Hh,jh,qh,Kh,Wh,Gh,En,Qh,Xh,to,Yh,Cn,Zh,Jh,cr,ro,ef,ge,Tt,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"})(Hr||(Hr={}));(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"})(xi||(xi={}));(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"})(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"})(En||(En={}));(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"})(to||(to={}));(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"})(Cn||(Cn={}));(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"})(cr||(cr={}));(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ro||(ro={}));(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"})(Tt||(Tt={}));(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 Jo(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=>Jo(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 jr=l(()=>{$l();mf();bf();vf();$l()});var Si,Dl=l(()=>{"use strict";qe();Si=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 io,Pl=l(()=>{"use strict";Dl();io=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Si.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Si.await()}}});var Ml,Ke,qr=l(()=>{"use strict";Ml=c(f());Pl();Ke=class extends io{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 An,Nl=l(()=>{"use strict";qe();jr();qr();An=class extends Ke{async listMySearches(){let{session:e}=S.getState();return Jo(e,ge.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}}});var wn,Fl=l(()=>{"use strict";qe();qr();wn=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 On,xf=l(()=>{"use strict";qe();qr();On=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 _n,Sf=l(()=>{"use strict";qr();qe();_n=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 Rn,dE,pE,Af,Bl,Ul,Ef,Cf,Ze,Vl,hE,zl=l(()=>{"use strict";jr();Rn=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(Tt).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={[Tt.SEARCHES]:"savedSearches",[Tt.BOOKMARKS]:"bookmarks",[Tt.BOOKS]:void 0,[Tt.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===Tt.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)},Ze=Rn.FtReduxStore.get({name:dE,reducers:pE,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Tt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Vl=class{constructor(e=new On,r=new _n){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=S.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new wn,this.savedSearchesService=new An,S.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=S.getState();(0,Rn.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Ze.actions.clearAssetCount(),Ze.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ze.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ze.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Ze.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Ze.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Ze.getState().assetCounts.allAsset[e]!==r.count&&Ze.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Ze.getState().assetCounts.bookmarkByMap[e]!==r.count&&Ze.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Ze.getState().assetCounts.bookmarkByMap).length!==0;e===Tt.BOOKMARKS&&r&&Ze.actions.clearBookmarkCountByMap(),Ze.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;Ze.actions.bookmarks(r)}}},hE=new Vl;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=hE)});var wf=l(()=>{"use strict";jr();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 kt,_f,oo,fE,Tn,so,kn,Rf=l(()=>{"use strict";qe();kt=c(f());qr();oo=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},fE=Symbol("clearAfterUnitTest"),Tn=class extends(0,kt.withEventBus)(Ke){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[_f]=()=>{this.defaultMessages={},this.cache=new kt.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,kt.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 kt.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 kt.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 oo({loadedContexts:e})),this.dispatchEvent(new oo({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new oo({loadedContexts:[e]})),this.dispatchEvent(new oo({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,kt.delay)(0).then(()=>i()).catch(()=>null)))}};_f=fE;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Tn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Tn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});so=window.FluidTopicsI18nService,kn=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,wr,Kl=l(()=>{"use strict";If=c(f());qe();wr=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 Ln,Df=l(()=>{"use strict";qr();Ln=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 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 wr.get().parse(e)}searchRequestToUrl(e){return wr.get().serialize(e)}};window.FluidTopicsUrlService=new Wl});var Ei,Ci,Mf=l(()=>{"use strict";Ei=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Ei.eventName="before-location-change";Ci=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Ci.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 Or,$n,Bf=l(()=>{"use strict";Or=c(f());Mf();Ff();$n=class t extends Or.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,Or.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Ci(this.currentItem())),0)}installProxies(){let e=r=>(i,s,[o,n,a])=>{let u=new Ei(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(Ei.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Ei.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Ci.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Ci.eventName,e)}currentItem(){return(0,Or.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,Or.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Or.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,Or.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=$n.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 In=l(()=>{"use strict";Fl();Dl();Of();Rf();qr();kf();Nl();$f();Kl();Df();Pf();Uf();Vf()});var zf,Hf,Ql=l(()=>{"use strict";zf=c(y()),Hf=zf.css`
|
|
271
|
-
`});var jf=l(()=>{"use strict"});function qf(t,e){let{authenticationRequired:r,session:i}=S.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var Kf=l(()=>{"use strict";qe()});var
|
|
270
|
+
`});function Wd(t,e,r){return Fr(t,Mo(e,r))}function Ds(t,e){return typeof t=="function"?t(e):t}function Fo(t){return t.split("-")[0]}function Br(t){return t.split("-")[1]}function tl(t){return t==="x"?"y":"x"}function rl(t){return t==="y"?"height":"width"}function Ps(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function il(t){return tl(Ps(t))}function Gd(t,e,r){r===void 0&&(r=!1);let i=Br(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=Fo(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 hi(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,Mo,Fr,No,sr,Hx,Ms=l(()=>{Kd=["top","right","bottom","left"],qd=["start","end"],el=Kd.reduce((t,e)=>t.concat(e,e+"-"+qd[0],e+"-"+qd[1]),[]),Mo=Math.min,Fr=Math.max,No=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=Ps(e),n=il(e),a=rl(n),u=Fo(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=Br(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}=Ds(e,t),C=Xd(x),E=a[m?h==="floating"?"reference":"floating":h],P=hi(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=hi(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=>Br(s)===t),...r.filter(s=>Br(s)!==t)]:r.filter(s=>Fo(s)===s)).filter(s=>t?Br(s)===t||(e?Qd(s)!==s:!1):!0)}var qx,Jd,ep,tp,rp=l(()=>{Ms();Ms();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}=Ds(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[Fo(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 To=Br(Rt.placement);return[Rt.placement,To&&p?Rt.overflows.slice(0,2).reduce((kx,Lx)=>kx+Lx,0):Rt.overflows[0],Rt.overflows]}).sort((Rt,To)=>Rt[1]-To[1]),Ts=((s=Re.filter(Rt=>Rt[2].slice(0,Br(Rt[0])?2:3).every(To=>To<=0))[0])==null?void 0:s[0])||Re[0][0];return Ts!==a?{data:{index:E+1,overflows:ee},reset:{placement:Ts}}:{}}}},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}=Ds(t,e),p={x:r,y:i},h=await o.detectOverflow(e,d),m=Ps(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 Fs(){return typeof window<"u"}function mi(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 Cr(t){var e;return(e=(op(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function op(t){return Fs()?t instanceof Node||t instanceof lt(t).Node:!1}function Ht(t){return Fs()?t instanceof Element||t instanceof lt(t).Element:!1}function Ar(t){return Fs()?t instanceof HTMLElement||t instanceof lt(t).HTMLElement:!1}function ip(t){return!Fs()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof lt(t).ShadowRoot}function Bo(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(mi(t))}function Uo(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}function Wi(t){let e=Ht(t)?jt(t):t;return fi(e.transform)||fi(e.translate)||fi(e.scale)||fi(e.rotate)||fi(e.perspective)||!Bs()&&(fi(e.backdropFilter)||fi(e.filter))||Wx.test(e.willChange||"")||Gx.test(e.contain||"")}function np(t){let e=Ur(t);for(;Ar(e)&&!Gi(e);){if(Wi(e))return e;if(Uo(e))return null;e=Ur(e)}return null}function Bs(){return ol==null&&(ol=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ol}function Gi(t){return/^(html|body|#document)$/.test(mi(t))}function jt(t){return lt(t).getComputedStyle(t)}function Vo(t){return Ht(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ur(t){if(mi(t)==="html")return t;let e=t.assignedSlot||t.parentNode||ip(t)&&t.host||Cr(t);return ip(e)?e.host:e}function ap(t){let e=Ur(t);return Gi(e)?(t.ownerDocument||t).body:Ar(e)&&Bo(e)?e:ap(e)}function Ns(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=Us(n);return e.concat(n,n.visualViewport||[],Bo(s)?s:[],a&&r?Ns(a):[])}else return e.concat(s,Ns(s,[],r))}function Us(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}var Wx,Gx,fi,ol,sl=l(()=>{Wx=/transform|translate|scale|rotate|perspective|filter/,Gx=/paint|layout|strict|content/,fi=t=>!!t&&t!=="none"});function up(t){let e=jt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,s=Ar(t),o=s?t.offsetWidth:r,n=s?t.offsetHeight:i,a=No(r)!==o||No(i)!==n;return a&&(r=o,i=n),{width:r,height:i,$:a}}function dp(t){return Ht(t)?t:t.contextElement}function Qi(t){let e=dp(t);if(!Ar(e))return sr(1);let r=e.getBoundingClientRect(),{width:i,height:s,$:o}=up(e),n=(o?No(r.width):r.width)/i,a=(o?No(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!Bs()||!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 zo(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=Qi(i)):n=Qi(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=Us(C);for(;k&&x!==C;){let E=Qi(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=Us(C)}}return hi({width:p,height:h,x:u,y:d})}function Vs(t,e){let r=Vo(t).scrollLeft;return e?e.left+r:zo(Cr(t)).left+r}function hp(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Vs(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=Cr(i),a=e?Uo(e.floating):!1;if(i===n||a&&o)return r;let u={scrollLeft:0,scrollTop:0},d=sr(1),p=sr(0),h=Ar(i);if((h||!o)&&((mi(i)!=="body"||Bo(n))&&(u=Vo(i)),h)){let x=zo(i);d=Qi(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=Vo(t),r=t.ownerDocument.body,i=Fr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Fr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-e.scrollLeft+Vs(t),n=-e.scrollTop;return jt(r).direction==="rtl"&&(o+=Fr(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=Cr(t),n=s.visualViewport,a=o.clientWidth,u=o.clientHeight,d=0,p=0;if(n){let m=!Bs()||e==="fixed";i?m||(d=-n.offsetLeft,p=-n.offsetTop):(a=n.width,u=n.height,m&&(d=n.offsetLeft,p=n.offsetTop))}if(Vs(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=zo(t,!0,e==="fixed"),i=r.top+t.clientTop,s=r.left+t.clientLeft,o=Qi(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(Cr(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 hi(i)}function iS(t,e){let r=e.get(t);if(r)return r;let i=Ns(t,[],!1).filter(a=>Ht(a)&&mi(a)!=="body"),s=null,o=jt(t).position==="fixed",n=o?Ur(t):t;for(;Ht(n)&&!Gi(n);){let a=jt(n),u=Wi(n),d=s?s.position:o?"fixed":"";!u&&(d==="fixed"||d==="absolute"&&a.position==="static")?i=i.filter(h=>h!==n):s=a,n=Ur(n)}return e.set(t,i),i}function oS(t){let{element:e,boundary:r,rootBoundary:i,strategy:s}=t,n=[...r==="clippingAncestors"?Uo(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=Fr(x.top,u),d=Mo(x.right,d),p=Mo(x.bottom,p),h=Fr(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=Ar(e),s=Cr(e),o=r==="fixed",n=zo(t,!0,o,e),a={scrollLeft:0,scrollTop:0},u=sr(0);if((i||!o)&&((mi(e)!=="body"||Bo(s))&&(a=Vo(e)),i)){let m=zo(e,!0,o,e);u.x=m.x+e.clientLeft,u.y=m.y+e.clientTop}!i&&s&&(u.x=Vs(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(!Ar(t)||jt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Cr(t)===r&&(r=r.ownerDocument.body),r}function fp(t,e){let r=lt(t);if(Uo(t))return r;if(!Ar(t)){let s=Ur(t);for(;s&&!Gi(s);){if(Ht(s)&&!nl(s))return s;s=Ur(s)}return r}let i=cp(t,e);for(;i&&sp(i)&&nl(i);)i=cp(i,e);return i&&Gi(i)&&nl(i)&&!Wi(i)?r:i||np(t)||r}function lS(t){return jt(t).direction==="rtl"}var Qx,eS,aS,zs,mp,gp,yp,bp=l(()=>{rp();Ms();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}}};zs={convertOffsetParentRelativeRectToViewportRelativeRect:Yx,getDocumentElement:Cr,getClippingRect:oS,getOffsetParent:fp,getElementRects:aS,getClientRects:Zx,getDimensions:sS,getScale:Qi,isElement:Ht,isRTL:lS},mp=ep,gp=tp,yp=(t,e,r)=>{let i=new Map,s=r??{},o={...zs,...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"||Wi(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:{...zs,getOffsetParent:s=>zs.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:jo,...e??{}})}var Cp,ll,uS,Hs=l(()=>{"use strict";Cp=c(F(),1);gi();ll=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},uS=t=>({fromAttribute:e=>{if(e==null)return Ho(t);try{return JSON.parse(e)}catch{return Ho(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(!Xi(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(!Xi(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(!Xi(t[n],e[n]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Xi(t,e){try{return dS(t,e)}catch{return!1}}function jo(t,e){return!Xi(t,e)}function Ho(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function js(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 gi=l(()=>{"use strict";Hs()});var wp,cl,Op=l(()=>{"use strict";gi();wp=c(F(),1),cl=t=>{let e=t??{};return(r,i)=>{var s;let o={hasChanged:jo,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 Ks,_p=l(()=>{"use strict";Ks=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 Gs,Ws,Rp=l(()=>{"use strict";Gs=c(y(),1);Hs();Ws=class extends Gs.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,Gs.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 yi,Zi,Dp,Lp,$p,Pp,Ip,Yi,nr,Mp=l(()=>{"use strict";yi=c(F(),1);Hs();_p();Rp();kp();Zi=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"),Yi=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Yi.eventName="exportparts-updated";nr=class extends Ws{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Dp]=new Ks(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(Yi.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Yi.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 Yi)})}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;Zi([(0,yi.property)()],nr.prototype,"exportpartsPrefix",void 0);Zi([Ap([])],nr.prototype,"exportpartsPrefixes",void 0);Zi([(0,yi.property)({reflect:!0})],nr.prototype,"exportparts",void 0);Zi([(0,yi.property)()],nr.prototype,"customStylesheet",void 0);Zi([(0,yi.property)()],nr.prototype,"elementToFocus",void 0);Zi([(0,yi.state)()],nr.prototype,"useAdoptedStyleSheets",void 0)});function Qs(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Xs=l(()=>{"use strict"});var qo,Vr,bi,pS,Np,Fp=l(()=>{"use strict";Mp();Xs();gi();qo=Symbol("internalReduxEventsUnsubscribers"),Vr=Symbol("internalStoresUnsubscribers"),bi=Symbol("internalStores"),pS=js(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[bi].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[bi].values()][0]}getStore(n){return n==null?this.getUnnamedStore():this[bi].get(n)}addStore(n,a){var u;a=(u=a??n.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(a),this[bi].set(a,n),this.subscribeToStore(a,n),this.updateFromStores()}removeStore(n){let a=typeof n=="string"?n:n.name;this.unsubscribeFromStore(a),this[bi].delete(a)}setupStores(){this.unsubscribeFromStores(),this[bi].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[Vr].has(n.store):this[Vr].size>0)&&(this[a]=n.selector(d.getState(),this))}})}subscribeToStore(n,a){var u,d;this[Vr].set(n,a.subscribe(()=>this.updateFromStores())),this[qo].set(n,[]),Qs(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[qo].get(n).push(()=>a.removeEventListener(p.eventName,m))}}))),this.onStoreAvailable(n)}unsubscribeFromStores(){this[Vr].forEach((n,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(n){var a;this[Vr].has(n)&&this[Vr].get(n)(),this[Vr].delete(n),(a=this[qo].get(n))===null||a===void 0||a.forEach(u=>u()),this[qo].delete(n)}onStoreAvailable(n){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Vr,r=bi,i=qo,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 Zs(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(!Zs(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:Ys.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:Ys.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:Ys.INIT})>"u")throw new Error(Me(12));if(typeof r(void 0,{type:Ys.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 Ko(...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=Ko(...a)(s.dispatch),{...s,dispatch:o}}}function Vp(t){return Zs(t)&&"type"in t&&typeof t.type=="string"}var hS,Bp,dl,fS,Ys,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()}`},Ys=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)||dn(t)||!!t[zp]||!!t[rn]?.[zp]||pn(t)||hn(t):!1}function Yp(t){if(!t||!Ol(t))return!1;let e=eo(t);if(e===null||e===mt[cn])return!0;let r=mt.hasOwnProperty.call(e,rn)&&e[rn];if(r===Object)return!0;if(!Ji(r))return!1;let i=Hp.get(r);return i===void 0&&(i=Function.toString.call(r),Hp.set(r,i)),i===gS}function un(t,e,r=!0){Xo(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 Xo(t){let e=t[je];return e?e.type_:dn(t)?1:pn(t)?2:hn(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(pn(t))return new Map(t);if(hn(t))return new Set(t);if(dn(t))return Array[cn].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[en]===!1&&(a[en]=!0,a[bl]=!0),(a.get||a.set)&&(i[n]={[bl]:!0,[en]:!0,[on]:a[on],[Wo]:t[n]})}return mt.create(eo(t),i)}else{let i=eo(t);if(i!==null&&r)return{...t};let s=mt.create(i);return mt.assign(s,t)}}function fn(t,e=!1){return mn(t)||ar(t)||!gt(t)||(Xo(t)>1&&mt.defineProperties(t,{set:Js,add:Js,clear:Js,delete:Js}),mt.freeze(t),e&&un(t,(r,i)=>{fn(i,!0)},!1)),t}function vS(){qt(2)}function mn(t){return t===null||!Ol(t)?!0:mt.isFrozen(t)}function vi(t){let e=Zp[t];return e||qt(0,t),e}function Kp(t,e){e&&(t.patchPlugin_=vi(Sl),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function El(t){Cl(t),t.drafts_.forEach(SS),t.drafts_=null}function Cl(t){t===Go&&(Go=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(mn(e))return e;let r=e[je];if(!r)return an(e,t.handledSet_,t);if(!gn(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_&&fn(e,r)}function eh(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}function th(t,e,r,i){let s=wr(t),o=t.type_;if(i!==void 0&&vl(s,i,o)===e){sn(s,i,r,o);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;un(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)sn(s,a,r,o)}function AS(t,e,r){t.callbacks_.push(function(s){let o=e;if(!o||!gn(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];gn(s,i)&&s.callbacks_.push(function(){tn(t);let n=_l(s);th(t,r,n,e)})}else gt(r)&&t.callbacks_.push(function(){let o=wr(t);t.type_===3?o.has(r)&&an(r,i.handledSet_,i):vl(o,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&an(vl(t.copy_,e,t.type_),i.handledSet_,i)})}function an(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||ar(t)||e.has(t)||!gt(t)||mn(t)||(e.add(t),un(t,(i,s)=>{if(ar(s)){let o=s[je];if(gn(o,r)){let n=_l(o);sn(t,i,n,t.type_),eh(o)}}else gt(s)&&an(s,e,r)})),t}function OS(t,e){let r=dn(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=ln;r&&(s=[i],o=Qo);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?wr(r):t)[e]}function _S(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!gt(r)||r[je]?!1:t.baseRefs_.has(r)}function RS(t,e,r){let i=ih(e,r);return i?Wo in i?i[Wo]:i.get?.call(t.draft_):void 0}function ih(t,e){if(!(e in t))return;let r=eo(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=eo(r)}}function Al(t){t.modified_||(t.modified_=!0,t.parent_&&Al(t.parent_))}function tn(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]=pn(e)?vi(nn).proxyMap_(e,r):hn(e)?vi(nn).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)||mn(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);return un(r,(s,o)=>{sn(r,s,sh(o))},i),e&&(e.finalized_=!1),r}var Xp,zp,je,mt,eo,rn,cn,bl,on,en,Wo,ar,gS,Hp,ml,vl,sn,dn,pn,hn,Ol,Ji,gl,wr,_l,Js,nn,Sl,jp,Zp,qp,Go,Jp,xS,Wp,gn,CS,ln,Qo,TS,kS,y0,LS,Rl,nh=l(()=>{Xp=Symbol.for("immer-nothing"),zp=Symbol.for("immer-draftable"),je=Symbol.for("immer-state");mt=Object,eo=mt.getPrototypeOf,rn="constructor",cn="prototype",bl="configurable",on="enumerable",en="writable",Wo="value",ar=t=>!!t&&!!t[je];gS=mt[cn][rn].toString(),Hp=new WeakMap;ml=(t,e,r=Xo(t))=>r===2?t.has(e):mt[cn].hasOwnProperty.call(t,e),vl=(t,e,r=Xo(t))=>r===2?t.get(e):t[e],sn=(t,e,r,i=Xo(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};dn=Array.isArray,pn=t=>t instanceof Map,hn=t=>t instanceof Set,Ol=t=>typeof t=="object",Ji=t=>typeof t=="function",gl=t=>typeof t=="boolean";wr=t=>t.copy_||t.base_,_l=t=>t.modified_?t.copy_:t.base_;Js={[Wo]:vS};nn="MapSet",Sl="Patches",jp="ArrayMethods",Zp={};qp=t=>!!Zp[t],Jp=()=>Go,xS=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:qp(nn)?vi(nn):void 0,arrayMethodsPlugin_:qp(jp)?vi(jp):void 0});Wp=t=>Go=xS(Go,t);gn=(t,e)=>t.scope_===e,CS=[];ln={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=wr(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)){tn(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 wr(t)},ownKeys(t){return Reflect.ownKeys(wr(t))},set(t,e,r){let i=ih(wr(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let s=yl(wr(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;tn(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 tn(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=wr(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[en]:!0,[bl]:t.type_!==1||e!=="length",[on]:i[on],[Wo]:r[e]}},defineProperty(){qt(11)},getPrototypeOf(t){return eo(t.base_)},setPrototypeOf(){qt(12)}},Qo={};for(let t in ln){let e=ln[t];Qo[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}Qo.deleteProperty=function(t,e){return Qo.set.call(this,t,e,void 0)};Qo.set=function(t,e,r){return ln.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(Ji(e)&&!Ji(r)){let o=r;r=e;let n=this;return function(u=o,...d){return n.produce(u,p=>r.call(this,p,...d))}}Ji(r)||qt(6),i!==void 0&&!Ji(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_&&fn(s,!0),i){let o=[],n=[];vi(Sl).generateReplacementPatches_(e,s,{patches_:o,inversePatches_:n}),i(o,n)}return s}else qt(1,e)},this.produceWithPatches=(e,r)=>{if(Ji(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=vi(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 zr(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 yn(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(Zs(r))u=hl(r);else throw new Error(lr(1));let d;typeof i=="function"?d=i(e):d=e();let p=Ko;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=yn(x,ee,E)),He}function W(Re=h){return yn(yn(m,_,()=>new WeakMap),Re,()=>{let He={};for(let[Ts,Rt]of Object.entries(i.selectors??{}))He[Ts]=JS(Rt,Re,()=>yn(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?zr(t,n):zr(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||bn,pending:a||bn,rejected:u||bn,settled:d||bn})}function bn(){}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"?Ko:Ko.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;IS=t=>t&&typeof t.match=="function";mh=class Yo extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Yo.prototype)}static get[Symbol.species](){return Yo}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Yo(...e[0].concat(this)):new Yo(...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=zr(e+"/fulfilled",(u,d,p,h)=>({payload:u,meta:{...h||{},arg:p,requestId:d,requestStatus:"fulfilled"}})),o=zr(e+"/pending",(u,d,p)=>({payload:void 0,meta:{...p||{},arg:d,requestId:u,requestStatus:"pending"}})),n=zr(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(zr(`${kl}/add`),{withTypes:()=>sE}),k0=zr(`${kl}/removeAll`),nE=Ch(zr(`${kl}/remove`),{withTypes:()=>nE})});var aE,vn,wh=l(()=>{"use strict";gi();aE=js(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)}}}),vn=class extends aE(Object){}});var Oh,_h=l(()=>{"use strict";Ah();Xs();ul();wh();gi();window.ftReduxStores||(window.ftReduxStores={});Oh=class t extends vn{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(Qs(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=Ho(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];Xi(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";gi()});var Th=l(()=>{"use strict"});var kh=l(()=>{"use strict";Op();ul();Fp();_h();Xs();Rh();Th()});var xn,Lh=l(()=>{"use strict";xn=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 Sn,lE,cr,Zo,cE,S,qe=l(()=>{"use strict";Sn=c(f()),lE="ft-app-info",cr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};cr.eventName="authentication-change";Zo=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Zo.eventName="ui-locale-changed";cE={session:(t,e)=>{(0,Sn.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>S.dispatchEvent(new cr(e.payload)),0))}},S=Sn.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,En,nA,Ih=l(()=>{"use strict";Ll=c(F());kh();Lh();qe();$h=c(f()),En=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=>xn.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return En([(0,Ll.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),En([(0,Ll.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),En([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),En([cl({store:S.name})],e.prototype,"uiLocale",void 0),e})});var $l=l(()=>{});var Dh,Ph,Mh,Hr,Nh,Fh,Bh,xi,Uh,Vh,zh,Hh,jh,qh,Kh,Wh,Gh,Cn,Qh,Xh,to,Yh,An,Zh,Jh,ur,ro,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"})(Hr||(Hr={}));(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"})(xi||(xi={}));(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"})(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"})(Cn||(Cn={}));(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"})(to||(to={}));(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"})(An||(An={}));(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"})(ro||(ro={}));(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 Jo(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=>Jo(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 jr=l(()=>{$l();mf();bf();vf();$l()});var Si,Dl=l(()=>{"use strict";qe();Si=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 io,Pl=l(()=>{"use strict";Dl();io=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Si.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Si.await()}}});var Ml,Ke,qr=l(()=>{"use strict";Ml=c(f());Pl();Ke=class extends io{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 wn,Nl=l(()=>{"use strict";qe();jr();qr();wn=class extends Ke{async listMySearches(){let{session:e}=S.getState();return Jo(e,ge.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}}});var On,Fl=l(()=>{"use strict";qe();qr();On=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 _n,xf=l(()=>{"use strict";qe();qr();_n=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 Rn,Sf=l(()=>{"use strict";qr();qe();Rn=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 Tn,dE,pE,Af,Bl,Ul,Ef,Cf,Ye,Vl,hE,zl=l(()=>{"use strict";jr();Tn=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=Tn.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 _n,r=new Rn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=S.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new On,this.savedSearchesService=new wn,S.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=S.getState();(0,Tn.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";jr();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,oo,fE,kn,so,Ln,Rf=l(()=>{"use strict";qe();Lt=c(f());qr();oo=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},fE=Symbol("clearAfterUnitTest"),kn=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 oo({loadedContexts:e})),this.dispatchEvent(new oo({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new oo({loadedContexts:[e]})),this.dispatchEvent(new oo({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 kn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends kn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});so=window.FluidTopicsI18nService,Ln=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,Or,Kl=l(()=>{"use strict";If=c(f());qe();Or=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 $n,Df=l(()=>{"use strict";qr();$n=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 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 Or.get().parse(e)}searchRequestToUrl(e){return Or.get().serialize(e)}};window.FluidTopicsUrlService=new Wl});var Ei,Ci,Mf=l(()=>{"use strict";Ei=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Ei.eventName="before-location-change";Ci=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Ci.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 _r,In,Bf=l(()=>{"use strict";_r=c(f());Mf();Ff();In=class t extends _r.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,_r.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Ci(this.currentItem())),0)}installProxies(){let e=r=>(i,s,[o,n,a])=>{let u=new Ei(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(Ei.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Ei.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Ci.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Ci.eventName,e)}currentItem(){return(0,_r.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,_r.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,_r.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,_r.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=In.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 Dn=l(()=>{"use strict";Fl();Dl();Of();Rf();qr();kf();Nl();$f();Kl();Df();Pf();Uf();Vf()});var zf,Hf,Ql=l(()=>{"use strict";zf=c(y()),Hf=zf.css`
|
|
271
|
+
`});var jf=l(()=>{"use strict"});function qf(t,e){let{authenticationRequired:r,session:i}=S.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var Kf=l(()=>{"use strict";qe()});var Pn,Wf=l(()=>{"use strict";Pl();Pn=class extends io{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}}});var Ai,Xl,Mn,Yl=l(()=>{"use strict";Ai=c(f());qe();Kf();Dn();jr();Wf();Xl=class t extends Ai.FtStateManager{static build(e){return new t(S,e)}constructor(e,r){super(),this.store=e,this.cache=new Ai.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new Pn,this.cleanSessionDebouncer=new Ai.Debouncer,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new Ai.Debouncer(500),this.apiProvider=r??(()=>Si.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(cr.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(cr.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",()=>qf(()=>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 Zo(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 yf(S.getState().session,...e)}},Mn=Xl.build()});var wi,es=l(()=>{wi=class extends Event{constructor(e,r,i,s){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=s??!1}}});var Gf=l(()=>{});var Zl=l(()=>{es();});var Qf=l(()=>{});var Jl=l(()=>{es();Qf();});var ts,Xf=l(()=>{es();ts=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:i}=r;for(let{elementRef:s,callbackRef:o}of i){let n=s.deref(),a=o.deref();n===void 0||a===void 0||n.dispatchEvent(new wi(e.context,n,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,s=this.pendingContextRequests.get(e.context);s===void 0&&this.pendingContextRequests.set(e.context,s={callbacks:new WeakMap,requests:[]});let o=s.callbacks.get(r);o===void 0&&s.callbacks.set(r,o=new WeakSet),o.has(i)||(o.add(i),s.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}}});var Yf=l(()=>{Jl();});var Zf=l(()=>{Zl();});var Jf=l(()=>{es();Gf();Zl();Jl();Xf();Yf();Zf()});var em,Ze,Oi,ke,pe,ec=l(()=>{"use strict";em=c(y()),Ze=c(F()),Oi=c(f());Ql();Dn();Yl();Jf();ke=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},pe=class extends Oi.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=Mn,this.contextRoot=new ts}render(){return em.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=>so.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())}};pe.elementDefinitions={};pe.styles=Hf;ke([(0,
|
|
274
|
-
`});var fm=l(()=>{"use strict"});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=>so.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())}};pe.elementDefinitions={};pe.styles=Hf;ke([(0,Ze.property)()],pe.prototype,"baseUrl",void 0);ke([(0,Ze.property)()],pe.prototype,"tenantId",void 0);ke([(0,Ze.property)()],pe.prototype,"apiIntegrationIdentifier",void 0);ke([(0,Ze.property)()],pe.prototype,"apiIntegrationAppVersion",void 0);ke([(0,Ze.property)()],pe.prototype,"uiLocale",void 0);ke([(0,Oi.jsonProperty)(null)],pe.prototype,"availableUiLocales",void 0);ke([(0,Oi.jsonProperty)(null)],pe.prototype,"metadataConfiguration",void 0);ke([(0,Ze.property)({type:Boolean})],pe.prototype,"editorMode",void 0);ke([(0,Ze.property)({type:Boolean})],pe.prototype,"noCustom",void 0);ke([(0,Ze.property)({type:Boolean})],pe.prototype,"openExternalDocumentInNewTab",void 0);ke([(0,Ze.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],pe.prototype,"noCustomComponent",void 0);ke([(0,Ze.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],pe.prototype,"noCustomCode",void 0);ke([(0,Ze.property)({type:Boolean})],pe.prototype,"withManualResources",void 0);ke([(0,Ze.property)({type:Boolean})],pe.prototype,"navigatorOnline",void 0);ke([(0,Ze.property)({type:Boolean})],pe.prototype,"forcedOffline",void 0);ke([(0,Ze.property)({type:Boolean})],pe.prototype,"authenticationRequired",void 0);ke([(0,Oi.jsonProperty)([])],pe.prototype,"messageContexts",void 0);ke([(0,Oi.jsonProperty)(void 0)],pe.prototype,"session",void 0)});var tm,rm=l(()=>{"use strict";ec();tm={"ft-app-context":pe}});var im,om=l(()=>{"use strict";im=c(f());rm();(0,im.customElements)(tm)});var Kt=l(()=>{"use strict";Ih();qe();zl();wf();Dn();Ql();jf();ec();Yl();om()});var tc,no,Nn=l(()=>{"use strict";tc=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-]+$/)}},no=new tc});var ao,sm,yE,is,nm,am,Fn,rs,ct,Bn,Un,os=l(()=>{"use strict";ao=c(f());Kt();sm=c(F());Nn();yE=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},is=Symbol("i18nAttributes"),nm=Symbol("i18nListAttributes"),am=Symbol("i18nProperties"),Fn=Symbol("i18nContexts"),rs=Symbol("i18nUnsubs"),ct=(0,ao.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(o){return o??this.useCustomMessageContexts?Ln:so}i18n(o){let{context:n,key:a,message:u}=o,{custom:d,args:p,argsProvider:h}=o;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(o){let{context:n,custom:a}=o;return n&&await this.getI18nService(a).prepareContext(n),this.i18n(o)}customI18n(o,n){if(no.isI18nKey(o)){let[a,u]=o.split(".");return this.i18n({custom:!0,context:a,key:u,...n})||o}return o}firstUpdated(o){super.firstUpdated(o),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(o){super.update(o),this.updateI18nAttributes((n,a,u)=>o.has(a)||typeof n.argsProvider=="function"),this.updateI18nProperties(n=>typeof n.argsProvider=="function")}onI18nUpdate(o){this.updateI18nAttributes((n,a,u)=>{var d;return((d=u?.context)===null||d===void 0?void 0:d.toLowerCase())===o}),this.updateI18nProperties(n=>n.context.toLowerCase()===o),this.requestUpdate()}updateI18nAttributes(o){var n,a;let u=this,d=(p,h,m)=>m?.context&&m.key&&o(p,h,m)?{...m,message:this.i18n({context:m.context,key:m.key,custom:m.custom,...p})}:m;(n=this[is])===null||n===void 0||n.forEach((p,h)=>u[h]=d(p,h,u[h])),(a=this[nm])===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(o){var n;(n=this[am])===null||n===void 0||n.forEach((a,u)=>{o(a,u)&&(this[u]=this.i18n(a))})}addI18nMessages(o,n,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(o,n,a)}addI18nContext(o,n,a){let u=(typeof o=="string"?o:o.name).toLowerCase();a=typeof o=="string"?a:o.custom,this[Fn].set(u,{isCustomContext:a}),this[rs].has(u)||this[rs].set(u,this.getI18nService(a).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(a).prepareContext(u,n)}hasI18nContext(o){return this[Fn].has(o.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Fn].forEach((o,n)=>this.addI18nContext(n,void 0,o.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[rs].forEach(o=>o()),this[rs].clear()}}return e=Fn,r=rs,yE([(0,sm.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),Bn=class extends ct(ao.FtLitElement){},Un=class extends ct(ao.FtLitElementRedux){}});var rc,bE,lm=l(()=>{"use strict";Nn();rc=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?no.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},bE=new rc});var cm,lo,Vn=l(()=>{"use strict";os();cm=c(f());Nn();lm();lo=(t,e)=>(r,i)=>{var s;r.constructor.createProperty(i,{type:Object,hasChanged:cm.hasChanged,converter:no,...e}),r[is]=(s=r[is])!==null&&s!==void 0?s:new Map,r[is].set(i,t??{})}});var dr,um=l(()=>{"use strict";Kt();dr=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?Ln:so}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,s)=>{let o=s;return n=>({context:this.name,key:o,custom:this.custom,args:typeof n=="function"?void 0:n,argsProvider:typeof n=="function"?n:void 0})}}),this.messages=new Proxy({},{get:(i,s)=>(...o)=>this.service.resolveMessage(this.name,s,...o)}),this.rawMessages=new Proxy({},{get:(i,s)=>this.service.resolveRawMessage(this.name,s)}),this.keys=new Proxy({},{get:(i,s)=>()=>s}),this.attributes=new Proxy({},{get:(i,s)=>()=>({context:this.name,key:s,message:this.service.resolveRawMessage(this.name,s)})})}}});var dm=l(()=>{"use strict";os()});var pm,hm,ic=l(()=>{"use strict";pm=c(y()),hm=pm.css`
|
|
274
|
+
`});var fm=l(()=>{"use strict"});var zn,uo,Hn,co,$t,oc=l(()=>{"use strict";zn=c(y()),uo=c(F()),Hn=c(f());ic();os();Kt();co=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},$t=class extends Un{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:zn.nothing:zn.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:""})}};$t.elementDefinitions={};$t.styles=hm;co([(0,Hn.redux)()],$t.prototype,"editorMode",void 0);co([(0,uo.property)()],$t.prototype,"context",void 0);co([(0,uo.property)()],$t.prototype,"key",void 0);co([(0,Hn.jsonProperty)([])],$t.prototype,"args",void 0);co([(0,uo.property)()],$t.prototype,"defaultMessage",void 0);co([(0,uo.state)()],$t.prototype,"editorMessage",void 0)});var mm,gm=l(()=>{"use strict";oc();mm={"ft-i18n":$t}});var ym,bm=l(()=>{"use strict";ym=c(f());gm();(0,ym.customElements)(mm)});var It=l(()=>{"use strict";um();os();dm();ic();fm();oc();bm()});var vm,Pt,Dt,Wt,xe,sc=l(()=>{"use strict";vm=c(y()),Pt=c(F()),Dt=c(f());ve();Za();Ep();Vn();It();Wt=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},xe=class extends Bn{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 Dt.Debouncer,this.revealDebouncer=new Dt.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 vm.html`
|
|
279
279
|
<div part="container"
|
|
280
280
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
|
|
281
281
|
<slot part="slot"></slot>
|
|
@@ -290,7 +290,7 @@
|
|
|
290
290
|
</div>
|
|
291
291
|
</div>
|
|
292
292
|
</div>
|
|
293
|
-
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,i;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let s=this.text;this.text={message:e},await this.show(r),this.text=s,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&Sp(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 ${
|
|
293
|
+
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,i;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let s=this.text;this.text={message:e},await this.show(r),this.text=s,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&Sp(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 ${Dt.designSystemVariables.transitionDuration}, left ${Dt.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,Dt.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};xe.elementDefinitions={"ft-typography":z};xe.styles=jd;Wt([lo()],xe.prototype,"text",void 0);Wt([(0,Pt.property)({type:Boolean})],xe.prototype,"manual",void 0);Wt([(0,Pt.property)({type:Boolean})],xe.prototype,"inline",void 0);Wt([(0,Dt.numberProperty)()],xe.prototype,"delay",void 0);Wt([(0,Pt.property)()],xe.prototype,"position",void 0);Wt([(0,Dt.jsonProperty)([])],xe.prototype,"ignoreMatchingElements",void 0);Wt([(0,Pt.queryAssignedNodes)()],xe.prototype,"slotNodes",void 0);Wt([(0,Pt.query)(".ft-tooltip--container")],xe.prototype,"container",void 0);Wt([(0,Pt.query)(".ft-tooltip")],xe.prototype,"tooltip",void 0);Wt([(0,Pt.query)(".ft-tooltip--content")],xe.prototype,"tooltipContent",void 0);Wt([(0,Pt.state)()],xe.prototype,"visible",void 0)});var xm=l(()=>{"use strict"});var Sm,Em=l(()=>{"use strict";sc();Sm={"ft-tooltip":xe}});var Cm,Am=l(()=>{"use strict";Cm=c(f());Em();(0,Cm.customElements)(Sm)});var nc=l(()=>{"use strict";sc();Za();xm();Am()});var wm,Gt,Je,Om,po=l(()=>{"use strict";wm=c(y()),Gt=c(f()),Je={size:Gt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Gt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Gt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Gt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Gt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Gt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Gt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Gt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Om=[wm.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: ${Je.size};
|
|
303
|
+
height: ${Je.size};
|
|
304
304
|
}
|
|
305
305
|
|
|
306
306
|
i.ft-icon {
|
|
307
307
|
width: 100%;
|
|
308
308
|
height: 100%;
|
|
309
|
-
font-size: ${
|
|
309
|
+
font-size: ${Je.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: ${Je.verticalAlign};
|
|
321
321
|
}
|
|
322
322
|
|
|
323
323
|
i.ft-icon.ft-icon--fluid-topics {
|
|
324
|
-
font-family: ${
|
|
324
|
+
font-family: ${Je.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 * ${Je.size});
|
|
328
|
+
line-height: ${Je.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: ${Je.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
336
336
|
}
|
|
337
337
|
|
|
338
338
|
.ft-icon--material {
|
|
339
|
-
font-family: ${
|
|
339
|
+
font-family: ${Je.materialFontFamily}, "Material Icons", sans-serif;
|
|
340
340
|
}
|
|
341
|
-
`,Kt.noTextSelect]});var tt,ac=l(()=>{"use strict";(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(tt||(tt={}))});var Hn=ji((L_,_m)=>{_m.exports=ftGlobals.litUnsafeHTML});function jn(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 ss,Kr,Rm,Tm,ns,ae,uc=l(()=>{"use strict";ss=c(y()),Kr=c(F()),Rm=c(f()),Tm=c(Hn());cc();po();ac();ns=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},ae=class extends Rm.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=ss.nothing}render(){let e=this.variant&&Object.values(tt).includes(this.variant)?this.variant:tt.fluid_topics,r=e!==tt.material||!!this.value;return ss.html`
|
|
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 jn=ji((L_,_m)=>{_m.exports=ftGlobals.litUnsafeHTML});function qn(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 ss,Kr,Rm,Tm,ns,le,uc=l(()=>{"use strict";ss=c(y()),Kr=c(F()),Rm=c(f()),Tm=c(jn());cc();po();ac();ns=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=ss.nothing}render(){let e=this.variant&&Object.values(et).includes(this.variant)?this.variant:et.fluid_topics,r=e!==et.material||!!this.value;return ss.html`
|
|
342
342
|
<i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
|
|
343
343
|
${(0,Tm.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 et.file_format:this.resolvedIcon=(e=b[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case et.material:this.resolvedIcon=this.value||ss.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())}};le.elementDefinitions={};le.styles=Om;ns([(0,Kr.property)()],le.prototype,"variant",void 0);ns([(0,Kr.property)()],le.prototype,"value",void 0);ns([(0,Kr.property)({reflect:!0,attribute:"aria-hidden"})],le.prototype,"ariaHidden",void 0);ns([(0,Kr.state)()],le.prototype,"resolvedIcon",void 0);ns([(0,Kr.query)("slot")],le.prototype,"slottedContent",void 0)});var km,Lm=l(()=>{"use strict";uc();km={"ft-icon":le}});var $m,Im=l(()=>{"use strict";$m=c(f());Lm();(0,$m.customElements)(km)});var Rr=l(()=>{"use strict";po();ac();uc();cc();Im()});var Dm,as,_i,Pm,Kn=l(()=>{"use strict";Dm=c(y()),as=c(f()),_i={color:as.FtCssVariableFactory.extend("--ft-loader-color","",as.designSystemVariables.colorPrimary),size:as.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Pm=Dm.css`
|
|
347
347
|
:host {
|
|
348
348
|
line-height: 0;
|
|
349
349
|
}
|
|
@@ -412,14 +412,14 @@
|
|
|
412
412
|
transform: translate(calc(0.35 * ${_i.size}), 0);
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
`});var Mm=l(()=>{"use strict"});var Nm,Fm,Ri,dc=l(()=>{"use strict";Nm=c(y()),Fm=c(f());
|
|
415
|
+
`});var Mm=l(()=>{"use strict"});var Nm,Fm,Ri,dc=l(()=>{"use strict";Nm=c(y()),Fm=c(f());Kn();Ri=class extends Fm.FtLitElement{render(){return Nm.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
|
-
`}};Ri.styles=Pm});var Bm,Um=l(()=>{"use strict";dc();Bm={"ft-loader":Ri}});var Vm,zm=l(()=>{"use strict";Vm=c(f());Um();(0,Vm.customElements)(Bm)});var Hm=l(()=>{"use strict";
|
|
422
|
+
`}};Ri.styles=Pm});var Bm,Um=l(()=>{"use strict";dc();Bm={"ft-loader":Ri}});var Vm,zm=l(()=>{"use strict";Vm=c(f());Um();(0,Vm.customElements)(Bm)});var Hm=l(()=>{"use strict";Kn();Mm();dc();zm()});var yt,jm=l(()=>{Ka();yt=t=>t??Ce});var ls=l(()=>{jm()});var Wn,I,qm,$,Km,pc,Qt,Wm,Ti=l(()=>{"use strict";Wn=c(y()),I=c(f());Sr();zt();Kn();po();qm=I.FtCssVariableFactory.extend("--ft-button-color","",I.designSystemVariables.colorPrimary),$={backgroundColor:I.FtCssVariableFactory.extend("--ft-button-background-color","",I.designSystemVariables.colorSurface),borderRadius:I.FtCssVariableFactory.extend("--ft-button-border-radius","",I.designSystemVariables.borderRadiusL),color:qm,fontSize:I.FtCssVariableFactory.extend("--ft-button-font-size","",Vt.fontSize),iconSize:I.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:I.FtCssVariableFactory.extend("--ft-button-ripple-color","",qm),verticalPadding:I.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:I.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:I.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:I.FtCssVariableFactory.external(I.designSystemVariables.colorOpacityDisabled,"Design system")},Km=I.FtCssVariableFactory.extend("--ft-button-primary-color","",I.FtCssVariableFactory.extend("--ft-button-color","",I.designSystemVariables.colorOnPrimary)),pc={backgroundColor:I.FtCssVariableFactory.extend("--ft-button-primary-background-color","",I.FtCssVariableFactory.extend("--ft-button-background-color","",I.designSystemVariables.colorPrimary)),color:Km,rippleColor:I.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Km)},Qt={borderRadius:I.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",I.FtCssVariableFactory.extend("--ft-button-border-radius","",I.designSystemVariables.borderRadiusM)),verticalPadding:I.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:I.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:I.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Wm=Wn.css`
|
|
423
423
|
:host {
|
|
424
424
|
display: inline-block;
|
|
425
425
|
max-width: 100%;
|
|
@@ -442,7 +442,7 @@
|
|
|
442
442
|
|
|
443
443
|
--button-internal-line-height: max(calc(${$.fontSize} + 2px), ${$.iconSize});
|
|
444
444
|
--button-internal-color: ${$.color};
|
|
445
|
-
${(0,I.setVariable)(
|
|
445
|
+
${(0,I.setVariable)(Je.size,$.iconSize)};
|
|
446
446
|
${(0,I.setVariable)(V.color,$.rippleColor)};
|
|
447
447
|
${(0,I.setVariable)(V.borderRadius,$.borderRadius)};
|
|
448
448
|
|
|
@@ -458,8 +458,8 @@
|
|
|
458
458
|
text-overflow: ellipsis;
|
|
459
459
|
display: block;
|
|
460
460
|
margin: 0 ${$.iconPadding};
|
|
461
|
-
${(0,I.setVariable)(
|
|
462
|
-
${(0,I.setVariable)(
|
|
461
|
+
${(0,I.setVariable)(Vt.fontSize,"1em")};
|
|
462
|
+
${(0,I.setVariable)(Vt.lineHeight,"var(--button-internal-line-height)")};
|
|
463
463
|
}
|
|
464
464
|
|
|
465
465
|
[part="icon"] {
|
|
@@ -509,17 +509,17 @@
|
|
|
509
509
|
}
|
|
510
510
|
|
|
511
511
|
&.ft-button--dense {
|
|
512
|
-
padding: ${
|
|
513
|
-
border-radius: ${
|
|
514
|
-
${(0,I.setVariable)(V.borderRadius,
|
|
512
|
+
padding: ${Qt.verticalPadding} ${Qt.horizontalPadding};
|
|
513
|
+
border-radius: ${Qt.borderRadius};
|
|
514
|
+
${(0,I.setVariable)(V.borderRadius,Qt.borderRadius)};
|
|
515
515
|
|
|
516
516
|
.ft-button--label {
|
|
517
|
-
margin: 0 ${
|
|
517
|
+
margin: 0 ${Qt.iconPadding};
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
520
|
|
|
521
521
|
&.ft-button--dense.ft-button--outlined {
|
|
522
|
-
padding: calc(${
|
|
522
|
+
padding: calc(${Qt.verticalPadding} - 1px) calc(${Qt.horizontalPadding} - 1px);
|
|
523
523
|
}
|
|
524
524
|
|
|
525
525
|
&.ft-button--round {
|
|
@@ -528,8 +528,8 @@
|
|
|
528
528
|
}
|
|
529
529
|
|
|
530
530
|
&.ft-button--round.ft-button--dense {
|
|
531
|
-
border-radius: calc(var(--button-internal-line-height) / 2 + ${
|
|
532
|
-
${(0,I.setVariable)(V.borderRadius,Wn.css`calc(var(--button-internal-line-height) / 2 + ${
|
|
531
|
+
border-radius: calc(var(--button-internal-line-height) / 2 + ${Qt.verticalPadding});
|
|
532
|
+
${(0,I.setVariable)(V.borderRadius,Wn.css`calc(var(--button-internal-line-height) / 2 + ${Qt.verticalPadding})`)};
|
|
533
533
|
}
|
|
534
534
|
|
|
535
535
|
&.ft-button--no-text {
|
|
@@ -540,7 +540,7 @@
|
|
|
540
540
|
padding: ${$.verticalPadding};
|
|
541
541
|
|
|
542
542
|
&.ft-button--dense {
|
|
543
|
-
padding: ${
|
|
543
|
+
padding: ${Qt.verticalPadding};
|
|
544
544
|
}
|
|
545
545
|
|
|
546
546
|
&.ft-button--outlined {
|
|
@@ -548,7 +548,7 @@
|
|
|
548
548
|
}
|
|
549
549
|
|
|
550
550
|
&.ft-button--outlined.ft-button--dense {
|
|
551
|
-
padding: calc(${
|
|
551
|
+
padding: calc(${Qt.verticalPadding} - 1px);
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
|
|
@@ -561,7 +561,7 @@
|
|
|
561
561
|
${(0,I.setVariable)(_i.size,$.iconSize)};
|
|
562
562
|
${(0,I.setVariable)(_i.color,"var(--button-internal-color)")};
|
|
563
563
|
}
|
|
564
|
-
`});var pr,Wr,Gn,
|
|
564
|
+
`});var pr,Wr,Gn,Z,oe,w,hc=l(()=>{"use strict";pr=c(f());Xe();nc();Rr();Hm();Wr=c(y()),Gn=c(st()),Z=c(F());ls();ve();Ti();oe=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},w=class t extends(0,pr.toFtFormComponent)(pr.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 s={"ft-button--label":!0,"ft-safari-ellipsis-fix":pr.isSafari},o=Wr.html`
|
|
565
565
|
<ft-ripple part="ripple"
|
|
566
566
|
?disabled=${this.isDisabled()}
|
|
567
567
|
?activated=${this.activated}
|
|
@@ -578,16 +578,17 @@
|
|
|
578
578
|
target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
|
|
579
579
|
part="button"
|
|
580
580
|
class="${(0,Gn.classMap)(this.buttonClasses)}"
|
|
581
|
-
aria-label="${
|
|
581
|
+
aria-label="${yt((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
|
|
582
582
|
?disabled=${this.isDisabled()}>
|
|
583
583
|
${o}
|
|
584
584
|
</a>
|
|
585
585
|
`:Wr.html`
|
|
586
586
|
<button part="button"
|
|
587
587
|
class="${(0,Gn.classMap)(this.buttonClasses)}"
|
|
588
|
-
aria-label="${
|
|
589
|
-
aria-haspopup="${
|
|
590
|
-
aria-pressed="${
|
|
588
|
+
aria-label="${yt((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
|
|
589
|
+
aria-haspopup="${yt(this.ariaHasPopup)}"
|
|
590
|
+
aria-pressed="${yt(this.ariaPressed)}"
|
|
591
|
+
aria-expanded="${yt(this.ariaExpanded)}"
|
|
591
592
|
?disabled=${this.isDisabled()}>
|
|
592
593
|
${o}
|
|
593
594
|
</button>
|
|
@@ -602,11 +603,11 @@
|
|
|
602
603
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
603
604
|
`:Wr.html`
|
|
604
605
|
<slot part="icon" name="icon"></slot>
|
|
605
|
-
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};w.elementDefinitions={"ft-ripple":L,"ft-tooltip":xe,"ft-icon":
|
|
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":xe,"ft-icon":le,"ft-loader":Ri,"ft-typography":z};w.styles=[pr.safariEllipsisFix,Wm,pr.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)}});oe([(0,Z.property)({type:Boolean})],w.prototype,"primary",void 0);oe([(0,Z.property)({type:Boolean})],w.prototype,"outlined",void 0);oe([(0,Z.property)({type:Boolean})],w.prototype,"dense",void 0);oe([(0,Z.property)({type:Boolean})],w.prototype,"round",void 0);oe([(0,Z.property)({type:Boolean})],w.prototype,"disabled",void 0);oe([(0,Z.property)()],w.prototype,"icon",void 0);oe([(0,Z.property)()],w.prototype,"iconVariant",void 0);oe([(0,Z.property)({type:Boolean})],w.prototype,"trailingIcon",void 0);oe([(0,Z.property)()],w.prototype,"label",void 0);oe([(0,Z.property)()],w.prototype,"type",void 0);oe([(0,Z.property)()],w.prototype,"href",void 0);oe([(0,Z.property)()],w.prototype,"target",void 0);oe([(0,Z.property)({type:Boolean})],w.prototype,"loading",void 0);oe([(0,Z.property)({attribute:"aria-label"})],w.prototype,"ariaLabel",void 0);oe([(0,Z.property)()],w.prototype,"ariaHasPopup",void 0);oe([(0,Z.property)({attribute:"aria-pressed"})],w.prototype,"ariaPressed",void 0);oe([(0,Z.property)({attribute:"aria-expanded"})],w.prototype,"ariaExpanded",void 0);oe([(0,Z.property)()],w.prototype,"tooltipPosition",void 0);oe([(0,Z.property)({type:Boolean})],w.prototype,"hideTooltip",void 0);oe([(0,Z.property)({type:Boolean})],w.prototype,"forceTooltip",void 0);oe([(0,Z.property)({type:Boolean})],w.prototype,"activated",void 0);oe([(0,Z.query)(".ft-button")],w.prototype,"button",void 0);oe([(0,Z.query)(".ft-button--label")],w.prototype,"labelContainer",void 0);oe([(0,Z.state)()],w.prototype,"hasTextContent",void 0);oe([(0,Z.query)(".ft-button--label slot")],w.prototype,"slottedContent",void 0);oe([(0,Z.query)("[part=tooltip]")],w.prototype,"tooltip",void 0)});var Gm=l(()=>{"use strict"});var Qm,Xm=l(()=>{"use strict";hc();Qm={"ft-button":w}});var Ym,Zm=l(()=>{"use strict";Ym=c(f());Xm();(0,Ym.customElements)(Qm)});var Xt=l(()=>{"use strict";hc();Ti();Gm();Zm()});var Jm,te,se,fc,cs=l(()=>{"use strict";Jm=c(y()),te=c(f());Xt();se={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)},fc=Jm.css`
|
|
606
607
|
* {
|
|
607
608
|
box-sizing: border-box;
|
|
608
|
-
${(0,te.setVariable)($.color,
|
|
609
|
-
${(0,te.setVariable)($.rippleColor,
|
|
609
|
+
${(0,te.setVariable)($.color,se.buttonColor)};
|
|
610
|
+
${(0,te.setVariable)($.rippleColor,se.buttonRippleColor)};
|
|
610
611
|
}
|
|
611
612
|
|
|
612
613
|
.ft-search-input {
|
|
@@ -614,11 +615,11 @@
|
|
|
614
615
|
display: flex;
|
|
615
616
|
flex-direction: row;
|
|
616
617
|
align-items: center;
|
|
617
|
-
height: ${
|
|
618
|
+
height: ${se.height};
|
|
618
619
|
|
|
619
|
-
background: ${
|
|
620
|
-
border: 1px solid ${
|
|
621
|
-
border-radius: ${
|
|
620
|
+
background: ${se.colorSurface};
|
|
621
|
+
border: 1px solid ${se.colorOutline};
|
|
622
|
+
border-radius: ${se.borderRadius};
|
|
622
623
|
}
|
|
623
624
|
|
|
624
625
|
.ft-search-input--input-container {
|
|
@@ -633,11 +634,11 @@
|
|
|
633
634
|
width: 100%;
|
|
634
635
|
display: grid;
|
|
635
636
|
padding: 0 8px;
|
|
636
|
-
border-radius: ${
|
|
637
|
+
border-radius: ${se.borderRadius};
|
|
637
638
|
}
|
|
638
639
|
|
|
639
640
|
.ft-search-input--input-container:focus-within .ft-search-input--input-outline {
|
|
640
|
-
outline: 2px solid ${
|
|
641
|
+
outline: 2px solid ${se.focusOutlineColor};
|
|
641
642
|
}
|
|
642
643
|
|
|
643
644
|
.ft-search-input--input {
|
|
@@ -645,12 +646,12 @@
|
|
|
645
646
|
width: 100%;
|
|
646
647
|
border: none;
|
|
647
648
|
background-color: transparent;
|
|
648
|
-
color: ${
|
|
649
|
+
color: ${se.colorOnSurface};
|
|
649
650
|
outline: none;
|
|
650
651
|
}
|
|
651
652
|
|
|
652
653
|
.ft-search-input--input::placeholder {
|
|
653
|
-
color: ${
|
|
654
|
+
color: ${se.colorOnSurfaceMedium};
|
|
654
655
|
}
|
|
655
656
|
|
|
656
657
|
.ft-search-input--actions {
|
|
@@ -674,7 +675,7 @@
|
|
|
674
675
|
|
|
675
676
|
.ft-search-input--separator {
|
|
676
677
|
height: 20px;
|
|
677
|
-
border-right: 1px solid ${
|
|
678
|
+
border-right: 1px solid ${se.colorOutline};
|
|
678
679
|
}
|
|
679
680
|
`});var eg,tg,Qn,mc,Xn=l(()=>{"use strict";eg=c(y()),tg=c(f()),Qn={highlightBackgroundColor:tg.FtCssVariableFactory.create("--ft-sra-highlight-background-color","","COLOR","transparent")},mc=eg.css`
|
|
680
681
|
.kwicmatch {
|
|
@@ -695,11 +696,11 @@
|
|
|
695
696
|
a:focus {
|
|
696
697
|
outline: revert;
|
|
697
698
|
}
|
|
698
|
-
`});function cg(t){var e;return((e=(0,
|
|
699
|
-
`});var gg=l(()=>{"use strict"});var Qt,mo=l(()=>{"use strict";(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Qt||(Qt={}))});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 sa,xg=l(()=>{"use strict";jt();sa=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,go,Ac=l(()=>{"use strict";mo();ye=c(f());vg();jr();xg();ps();jt();Sg=t=>t.request.virtualField===to.TITLE_ONLY&&t.request.scope===ro.DOCUMENTS,Eg=t=>t.request.keywordMatch==En.MANDATORY,go=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==Qt.CLUSTERED_SEARCH&&this.launchSearch()},this.onStorageEvent=i=>{i.key===this.taruqaConfigStorageKey&&this.loadTaruqaTemplate()},this.loadTaruqaTemplate=()=>{var i;let s;if(Jo(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 sa,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(lr.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(lr.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&&Pn.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:to.TITLE_ONLY,scope:ro.DOCUMENTS},!0):this.updateSearchRequest({virtualField:to.EVERYWHERE,scope:ro.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 ds)}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(Qt.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 yo,hs,wc,_c,Cg,Oc,AE,wE,Pt,$i=l(()=>{"use strict";yo=c(f()),hs=c(F());mo();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 CustomEvent{constructor(e){super("register-ft-search-component",{bubbles:!0,composed:!0,detail:{registrationId:e}})}},Cg=Symbol("registerInterval"),Oc=Symbol("registerAttempts"),AE=40,wE=(0,yo.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(this.searchRegistrationId)))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return wc([(0,hs.state)()],e.prototype,"stateManager",void 0),wc([(0,hs.state)({hasChanged:yo.hasChanged})],e.prototype,"neededSearchRequests",void 0),wc([(0,hs.property)()],e.prototype,"searchRegistrationId",void 0),e}),Pt=class extends wE(yo.FtLitElementRedux){}});function fs(t){return t.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function ms(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 aa,na,Ag=l(()=>{"use strict";aa=c(f());jr();jt();Rc();na=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 Ln,this.resultsWatcher=(0,aa.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:xi.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:i.totalClustersCount},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:fs(e.metadataFilters),facets:e.metadataFilters.map(o=>ms(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:xi.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==cr.TOPIC&&(s={tocId:e.topic.tocId,title:e.topic.title});let o={offline:!1,appVersion:this.appVersion,appName:this.appName,name:xi.SEARCH_PAGE__SELECT,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:fs(i.metadataFilters),facets:i.metadataFilters.map(n=>ms(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==cr.TOPIC&&(s={tocId:e.topic.tocId,title:e.topic.title});let o={offline:!1,appVersion:this.appVersion,appName:this.appName,name:xi.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:fs(i.metadataFilters),facets:i.metadataFilters.map(n=>ms(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 cr.MAP:return{id:e.map.mapId,title:e.map.title,type:Hr.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case cr.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:Hr.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case cr.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:Hr.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};case cr.HTML_PACKAGE:return{id:e.htmlPackage.packageId,title:e.htmlPackage.title,type:Hr.HTML_PACKAGE,metadata:e.htmlPackage.metadata};case cr.HTML_PACKAGE_PAGE:return{id:e.htmlPackagePage.packageId,title:e.htmlPackagePage.title,type:Hr.HTML_PACKAGE,metadata:e.htmlPackagePage.metadata};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var r;return(r=(0,aa.accessResult)(e))===null||r===void 0?void 0:r.originUrl}}});var wg,yt,rt,be,Z,Tc=l(()=>{"use strict";wg=c(y()),yt=c(F()),rt=c(f());Cc();$i();jt();Ag();ps();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},Z=class extends rt.FtLitElementRedux{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=go.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 na(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 cg(t){var e;return((e=(0,us.accessResult)(t))===null||e===void 0?void 0:e.openMode)===An.EXTERNAL}function ta(t,e){return cg(t)?(0,us.accessResult)(t).originUrl:(0,us.accessResultUrl)(t,e)}function ug(t,e){return yt(e&&cg(t)?"_blank":void 0)}var us,xc=l(()=>{"use strict";jr();ls();us=c(f())});var Li,fo,ra,ia,oa,ps,hs=l(()=>{"use strict";Li=class extends CustomEvent{constructor(e,r){super("ft-search-result-click",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}},fo=class extends CustomEvent{constructor(e,r){super("ft-search-result-open-context-menu",{detail:{result:e,rank:r},bubbles:!0,composed:!0})}},ra=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e,composed:!0,bubbles:!0})}},ia=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e,composed:!0,bubbles:!0})}},oa=class extends CustomEvent{constructor(e,r,i){super("ft-search-results-change",{detail:{request:e,paging:r,spellcheck:i},composed:!0,bubbles:!0})}},ps=class t extends Event{constructor(){super(t.eventName)}};ps.eventName="search-context-clear-all-filters"});var mg,EE,Ec,Cc=l(()=>{"use strict";mg=c(y()),EE={},Ec=mg.css`
|
|
700
|
+
`});var gg=l(()=>{"use strict"});var Yt,mo=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 sa,xg=l(()=>{"use strict";Kt();sa=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,go,Ac=l(()=>{"use strict";mo();ye=c(f());vg();jr();xg();hs();Kt();Sg=t=>t.request.virtualField===to.TITLE_ONLY&&t.request.scope===ro.DOCUMENTS,Eg=t=>t.request.keywordMatch==Cn.MANDATORY,go=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(Jo(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 sa,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&&Mn.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:to.TITLE_ONLY,scope:ro.DOCUMENTS},!0):this.updateSearchRequest({virtualField:to.EVERYWHERE,scope:ro.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 ps)}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 yo,fs,wc,_c,Cg,Oc,AE,wE,Mt,$i=l(()=>{"use strict";yo=c(f()),fs=c(F());mo();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 CustomEvent{constructor(e){super("register-ft-search-component",{bubbles:!0,composed:!0,detail:{registrationId:e}})}},Cg=Symbol("registerInterval"),Oc=Symbol("registerAttempts"),AE=40,wE=(0,yo.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(this.searchRegistrationId)))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return wc([(0,fs.state)()],e.prototype,"stateManager",void 0),wc([(0,fs.state)({hasChanged:yo.hasChanged})],e.prototype,"neededSearchRequests",void 0),wc([(0,fs.property)()],e.prototype,"searchRegistrationId",void 0),e}),Mt=class extends wE(yo.FtLitElementRedux){}});function ms(t){return t.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function gs(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 aa,na,Ag=l(()=>{"use strict";aa=c(f());jr();Kt();Rc();na=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 $n,this.resultsWatcher=(0,aa.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:xi.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:i.totalClustersCount},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:ms(e.metadataFilters),facets:e.metadataFilters.map(o=>gs(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:xi.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:xi.SEARCH_PAGE__SELECT,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:ms(i.metadataFilters),facets:i.metadataFilters.map(n=>gs(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:xi.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:i.query,searchType:i.virtualField,lastUpdate:ms(i.metadataFilters),facets:i.metadataFilters.map(n=>gs(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:Hr.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case ur.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:Hr.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case ur.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:Hr.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};case ur.HTML_PACKAGE:return{id:e.htmlPackage.packageId,title:e.htmlPackage.title,type:Hr.HTML_PACKAGE,metadata:e.htmlPackage.metadata};case ur.HTML_PACKAGE_PAGE:return{id:e.htmlPackagePage.packageId,title:e.htmlPackagePage.title,type:Hr.HTML_PACKAGE,metadata:e.htmlPackagePage.metadata};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var r;return(r=(0,aa.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();$i();Kt();Ag();hs();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=go.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 na(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`
|
|
700
701
|
<slot @register-ft-search-component=${this.registerComponent} @ft-search-result-click=${this.onResultClicked}
|
|
701
702
|
@ft-search-result-open-context-menu=${this.onResultContextMenuOpened}></slot>
|
|
702
|
-
`}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(),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(),this.stateManager.removeListeners(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new ia(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new oa(this.request,this.paging,this.spellcheckAutocorrect))}registerComponent(e){var r;if(e.stopPropagation(),((r=e.detail)===null||r===void 0?void 0:r.registrationId)==this.registrationId){let i=e.composedPath()[0];this.register(i)}}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new ra(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)}};
|
|
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(),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(),this.stateManager.removeListeners(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new ia(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new oa(this.request,this.paging,this.spellcheckAutocorrect))}registerComponent(e){var r;if(e.stopPropagation(),((r=e.detail)===null||r===void 0?void 0:r.registrationId)==this.registrationId){let i=e.composedPath()[0];this.register(i)}}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new ra(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)}};J.elementDefinitions={};J.styles=Ec;be([(0,tt.redux)({store:S.name})],J.prototype,"session",void 0);be([(0,bt.property)()],J.prototype,"query",void 0);be([(0,bt.property)()],J.prototype,"contentLocale",void 0);be([(0,tt.numberProperty)()],J.prototype,"pageSize",void 0);be([(0,bt.property)({type:Boolean})],J.prototype,"searchInDocumentTitlesOnly",void 0);be([(0,bt.property)()],J.prototype,"keywordMatch",void 0);be([(0,bt.property)()],J.prototype,"scope",void 0);be([(0,bt.property)()],J.prototype,"virtualField",void 0);be([(0,bt.property)()],J.prototype,"registrationId",void 0);be([(0,bt.property)({type:Boolean})],J.prototype,"ignoreEmptyQuery",void 0);be([(0,bt.property)({type:Boolean})],J.prototype,"applyStickyFilters",void 0);be([(0,tt.redux)({store:S.name})],J.prototype,"openExternalDocumentInNewTab",void 0);be([(0,tt.jsonProperty)([])],J.prototype,"filters",void 0);be([(0,bt.property)()],J.prototype,"sortId",void 0);be([(0,tt.jsonProperty)([])],J.prototype,"sort",void 0);be([(0,tt.jsonProperty)({})],J.prototype,"otherQueryParams",void 0);be([(0,tt.redux)({store:"search"})],J.prototype,"request",void 0);be([(0,tt.redux)({store:"search"})],J.prototype,"paging",void 0);be([(0,tt.redux)({store:"search",selector:t=>t.spellcheck})],J.prototype,"spellcheckAutocorrect",void 0);be([(0,tt.redux)({store:S.name,selector:t=>t.apiIntegrationIdentifier!==void 0&&t.apiIntegrationAppVersion!==void 0})],J.prototype,"_appIntegrationInfoReady",void 0);be([(0,bt.property)({attribute:!1})],J.prototype,"searchServiceProvider",void 0);be([(0,bt.property)({type:Boolean})],J.prototype,"disableAnalyticsEvents",void 0)});var Og,_g=l(()=>{"use strict";Tc();Og={"ft-search-context":J}});var Rg,Tg=l(()=>{"use strict";Rg=c(f());_g();(0,Rg.customElements)(Og)});var kg={};ii(kg,{FtSearchContext:()=>J,FtSearchContextCssVariables:()=>EE,FtSearchStateManager:()=>go,convertMetadataFilterToAnalyticsFacet:()=>gs,getAnalyticsLastUpdate:()=>ms,keywordMatchSelector:()=>Eg,searchInDocumentTitlesOnlySelector:()=>Sg,styles:()=>Ec});var Lg=l(()=>{"use strict";Cc();gg();Tc();Ac();Rc();Tg()});var $g=l(()=>{"use strict"});var Tr,kc=l(()=>{"use strict";It();Tr=dr.build("designedSearchInput")});var kr=ji((HT,Ig)=>{Ig.exports=ftGlobals.litRepeat});var Nt,Lc=l(()=>{"use strict";(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(Nt||(Nt={}))});var Dg,Pg,$c=l(()=>{"use strict";Dg=c(y()),Pg=Dg.css`
|
|
703
704
|
.ft-size-watcher--pixel {
|
|
704
705
|
width: 0;
|
|
705
706
|
height: 0;
|
|
@@ -718,11 +719,11 @@
|
|
|
718
719
|
.ft-size-watcher--local .ft-size-watcher--watcher {
|
|
719
720
|
width: 100%;
|
|
720
721
|
}
|
|
721
|
-
`});var Mg,Ii,la,
|
|
722
|
+
`});var Mg,Ii,la,ys,Ic,vt,Dc=l(()=>{"use strict";Mg=c(y()),Ii=c(F()),la=c(f());Lc();$c();ys=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},Ic=class extends CustomEvent{constructor(e,r){super("change",{detail:{size:e,category:r}})}},vt=class extends la.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=Nt.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new la.Debouncer}render(){return Mg.html`
|
|
722
723
|
<div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
|
|
723
724
|
<div class="ft-size-watcher--watcher"></div>
|
|
724
725
|
</div>
|
|
725
|
-
`}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=Nt.S:this.size<976?this.category=Nt.M:this.size<1024?this.category=Nt.L:this.size<1440?this.category=Nt.XL:this.category=Nt.XXL,this.dispatchEvent(new Ic(this.size,this.category)))},this.debounceTimeout)}};vt.elementDefinitions={};vt.styles=Pg;ys([(0,Ii.property)({type:Number})],vt.prototype,"debounceTimeout",void 0);ys([(0,Ii.property)({type:Boolean})],vt.prototype,"local",void 0);ys([(0,Ii.property)({type:Number,reflect:!0})],vt.prototype,"size",void 0);ys([(0,Ii.property)({type:String,reflect:!0})],vt.prototype,"category",void 0);ys([(0,Ii.query)(".ft-size-watcher--watcher")],vt.prototype,"watcher",void 0)});var Ng,Fg=l(()=>{"use strict";Dc();Ng={"ft-size-watcher":vt}});var Bg,Ug=l(()=>{"use strict";Bg=c(f());Fg();(0,Bg.customElements)(Ng)});var Vg=l(()=>{"use strict";Dc();$c();Lc();Ug()});function ca(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function zg(t){return ca(t).split("|").pop()}function Hg(t){return ca(t).split("|").join(" > ")}function jg(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>jg(r,t.selected)),value:t.value}}function qg(t){return(0,Pc.flatDeep)(t.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]}).filter(e=>e.selected).map(e=>e.label)}function Mc(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>jg(e,!1))}}function Kg(t){return(0,Pc.flatDeep)(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var Pc,Nc=l(()=>{"use strict";Pc=c(f())});var Wg,re,bs,Gg,Fc=l(()=>{"use strict";Wg=c(y()),re=c(f());Ti();zt();bs={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")},Gg=Wg.css`
|
|
726
727
|
.ft-filter-level--container {
|
|
727
728
|
display: flex;
|
|
728
729
|
flex-direction: column;
|
|
@@ -737,14 +738,14 @@
|
|
|
737
738
|
flex-shrink: 0;
|
|
738
739
|
text-decoration: none;
|
|
739
740
|
position: relative;
|
|
740
|
-
border-radius: ${
|
|
741
|
+
border-radius: ${bs.borderRadiusM};
|
|
741
742
|
overflow: hidden;
|
|
742
743
|
display: flex;
|
|
743
744
|
align-items: center;
|
|
744
745
|
padding: 4px 4px;
|
|
745
746
|
gap: 4px;
|
|
746
747
|
cursor: pointer;
|
|
747
|
-
color: ${
|
|
748
|
+
color: ${bs.colorOnSurface};
|
|
748
749
|
}
|
|
749
750
|
|
|
750
751
|
.ft-filter-level--go-back:focus {
|
|
@@ -773,11 +774,11 @@
|
|
|
773
774
|
}
|
|
774
775
|
|
|
775
776
|
ft-button {
|
|
776
|
-
${(0,re.setVariable)($.color,
|
|
777
|
+
${(0,re.setVariable)($.color,bs.colorOnSurface)};
|
|
777
778
|
}
|
|
778
779
|
|
|
779
780
|
ft-button.ft-filter-level--display-more {
|
|
780
|
-
${(0,re.setVariable)($.color,
|
|
781
|
+
${(0,re.setVariable)($.color,bs.buttonMoreColor)};
|
|
781
782
|
}
|
|
782
783
|
|
|
783
784
|
ft-radio, ft-checkbox {
|
|
@@ -791,17 +792,17 @@
|
|
|
791
792
|
|
|
792
793
|
.ft-filter-level--no-values {
|
|
793
794
|
margin: 10px 0;
|
|
794
|
-
color: ${
|
|
795
|
+
color: ${bs.colorOnSurfaceMedium};
|
|
795
796
|
}
|
|
796
|
-
`});var Le,Qg,
|
|
797
|
+
`});var Le,Qg,xt,Xg,Bc=l(()=>{"use strict";Le=c(f()),Qg=c(y());ve();Xe();xt={textColor:Le.FtCssVariableFactory.extend("--ft-checkbox-text-color","",Le.designSystemVariables.colorOnSurfaceHigh),fontSize:Le.FtCssVariableFactory.extend("--ft-checkbox-font-size","",v.fontSize),activeColor:Le.FtCssVariableFactory.extend("--ft-checkbox-active-color","",Le.designSystemVariables.colorPrimary),checkColor:Le.FtCssVariableFactory.extend("--ft-checkbox-check-color","",Le.designSystemVariables.colorOnPrimary),borderColor:Le.FtCssVariableFactory.extend("--ft-checkbox-border-color","",Le.designSystemVariables.colorOnSurfaceMedium),disabledColor:Le.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",Le.designSystemVariables.colorOnSurfaceDisabled),errorColor:Le.FtCssVariableFactory.extend("--ft-checkbox-error-color","",Le.designSystemVariables.colorError)},Xg=Qg.css`
|
|
797
798
|
* {
|
|
798
799
|
box-sizing: border-box;
|
|
799
800
|
}
|
|
800
801
|
|
|
801
802
|
.ft-checkbox {
|
|
802
803
|
box-sizing: border-box;
|
|
803
|
-
color: ${
|
|
804
|
-
font-size: ${
|
|
804
|
+
color: ${xt.textColor};
|
|
805
|
+
font-size: ${xt.fontSize};
|
|
805
806
|
|
|
806
807
|
display: inline-flex;
|
|
807
808
|
align-items: center;
|
|
@@ -809,7 +810,7 @@
|
|
|
809
810
|
}
|
|
810
811
|
|
|
811
812
|
.ft-checkbox--disabled {
|
|
812
|
-
color: ${
|
|
813
|
+
color: ${xt.disabledColor};
|
|
813
814
|
}
|
|
814
815
|
|
|
815
816
|
input {
|
|
@@ -833,26 +834,26 @@
|
|
|
833
834
|
|
|
834
835
|
.ft-checkbox--box {
|
|
835
836
|
display: flex;
|
|
836
|
-
border: 2px solid ${
|
|
837
|
+
border: 2px solid ${xt.borderColor};
|
|
837
838
|
border-radius: 2px;
|
|
838
839
|
|
|
839
840
|
width: 18px;
|
|
840
841
|
height: 18px;
|
|
841
842
|
|
|
842
|
-
color: ${
|
|
843
|
+
color: ${xt.checkColor};
|
|
843
844
|
}
|
|
844
845
|
|
|
845
846
|
|
|
846
847
|
.ft-checkbox--checked .ft-checkbox--box,
|
|
847
848
|
.ft-checkbox--indeterminate .ft-checkbox--box {
|
|
848
|
-
border-color: ${
|
|
849
|
-
background-color: ${
|
|
849
|
+
border-color: ${xt.activeColor};
|
|
850
|
+
background-color: ${xt.activeColor};
|
|
850
851
|
}
|
|
851
852
|
|
|
852
853
|
.ft-checkbox--disabled .ft-checkbox--box {
|
|
853
|
-
border-color: ${
|
|
854
|
+
border-color: ${xt.disabledColor};
|
|
854
855
|
background-color: transparent;
|
|
855
|
-
color: ${
|
|
856
|
+
color: ${xt.disabledColor};
|
|
856
857
|
}
|
|
857
858
|
|
|
858
859
|
.ft-checkbox--checkmark {
|
|
@@ -873,16 +874,16 @@
|
|
|
873
874
|
}
|
|
874
875
|
|
|
875
876
|
.ft-checkbox.ft-checkbox--error {
|
|
876
|
-
color: ${
|
|
877
|
-
${(0,Le.setVariable)(V.color,
|
|
877
|
+
color: ${xt.errorColor};
|
|
878
|
+
${(0,Le.setVariable)(V.color,xt.errorColor)};
|
|
878
879
|
|
|
879
880
|
.ft-checkbox--box {
|
|
880
|
-
border-color: ${
|
|
881
|
+
border-color: ${xt.errorColor};
|
|
881
882
|
}
|
|
882
883
|
|
|
883
884
|
&.ft-checkbox--checked, &.ft-checkbox--indeterminate {
|
|
884
885
|
.ft-checkbox--box {
|
|
885
|
-
background-color: ${
|
|
886
|
+
background-color: ${xt.errorColor};
|
|
886
887
|
}
|
|
887
888
|
}
|
|
888
889
|
}
|
|
@@ -895,7 +896,7 @@
|
|
|
895
896
|
.ft-checkbox ft-typography {
|
|
896
897
|
padding-right: 2px;
|
|
897
898
|
}
|
|
898
|
-
`});var ua,
|
|
899
|
+
`});var ua,Ft,Yg,Zg,hr,Uc,$e,Vc=l(()=>{"use strict";ua=c(y()),Ft=c(F()),Yg=c(f()),Zg=c(st());ls();Xe();ve();Bc();hr=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},Uc=class extends CustomEvent{constructor(e){super("change",{detail:e})}},$e=class extends Yg.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 ua.html`
|
|
899
900
|
<div class="ft-checkbox--box-container" part="checkbox-box-container">
|
|
900
901
|
<ft-ripple part="checkbox-ripple"
|
|
901
902
|
?disabled=${this.disabled}
|
|
@@ -911,6 +912,7 @@
|
|
|
911
912
|
name="${this.name}"
|
|
912
913
|
aria-checked="${this.indeterminate?"mixed":this.checked?"true":"false"}"
|
|
913
914
|
role="checkbox"
|
|
915
|
+
aria-label="${yt(this.ariaLabel)}"
|
|
914
916
|
.checked=${this.indeterminate?!1:this.checked}
|
|
915
917
|
.indeterminate=${this.indeterminate}
|
|
916
918
|
.disabled=${this.disabled}
|
|
@@ -929,7 +931,7 @@
|
|
|
929
931
|
<path class="ft-checkbox--checkmark-path" fill="none"
|
|
930
932
|
d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
|
|
931
933
|
</svg>
|
|
932
|
-
`}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 Uc(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)}}
|
|
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 Uc(this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};$e.elementDefinitions={"ft-ripple":L,"ft-typography":z};$e.styles=Xg;hr([(0,Ft.property)()],$e.prototype,"name",void 0);hr([(0,Ft.property)()],$e.prototype,"value",void 0);hr([(0,Ft.property)({type:Boolean,reflect:!0})],$e.prototype,"checked",void 0);hr([(0,Ft.property)({type:Boolean})],$e.prototype,"indeterminate",void 0);hr([(0,Ft.property)({type:Boolean})],$e.prototype,"disabled",void 0);hr([(0,Ft.property)({type:Boolean})],$e.prototype,"error",void 0);hr([(0,Ft.property)({attribute:"aria-label"})],$e.prototype,"ariaLabel",void 0);hr([(0,Ft.query)(".ft-checkbox")],$e.prototype,"container",void 0);hr([(0,Ft.query)("ft-ripple")],$e.prototype,"ripple",void 0);hr([(0,Ft.query)("input")],$e.prototype,"input",void 0)});var Jg=l(()=>{"use strict"});var ey,ty=l(()=>{"use strict";Vc();ey={"ft-checkbox":$e}});var ry,iy=l(()=>{"use strict";ry=c(f());ty();(0,ry.customElements)(ey)});var oy=l(()=>{"use strict";Vc();Bc();Jg();iy()});var sy,dt,Gr,ny,zc=l(()=>{"use strict";sy=c(y()),dt=c(f());ve();Gr={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")},ny=sy.css`
|
|
933
935
|
* {
|
|
934
936
|
box-sizing: border-box;
|
|
935
937
|
}
|
|
@@ -1011,14 +1013,14 @@
|
|
|
1011
1013
|
}
|
|
1012
1014
|
|
|
1013
1015
|
.ft-radio:has(:focus-visible) {
|
|
1014
|
-
outline: 2px solid ${
|
|
1016
|
+
outline: 2px solid ${dt.designSystemVariables.colorPrimary};
|
|
1015
1017
|
outline-offset: -2px;
|
|
1016
1018
|
}
|
|
1017
1019
|
|
|
1018
1020
|
.ft-radio ft-typography {
|
|
1019
1021
|
padding-right: 2px;
|
|
1020
1022
|
}
|
|
1021
|
-
`});var ay,
|
|
1023
|
+
`});var ay,fr,ly,cy,Qr,da,Ie,Hc=l(()=>{"use strict";ay=c(y()),fr=c(F()),ly=c(f()),cy=c(st());Xe();ve();Is();zc();Qr=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},da=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},Ie=class extends ly.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 ay.html`
|
|
1022
1024
|
<div class="${(0,cy.classMap)(this.radioClasses)}"
|
|
1023
1025
|
@click=${this.onClick}>
|
|
1024
1026
|
<div class="ft-radio--box-container">
|
|
@@ -1044,7 +1046,7 @@
|
|
|
1044
1046
|
</ft-typography>
|
|
1045
1047
|
</label>
|
|
1046
1048
|
</div>
|
|
1047
|
-
`}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 da(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 da(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())}}
|
|
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 da(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 da(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":z};Ie.styles=ny;Qr([(0,fr.property)()],Ie.prototype,"name",void 0);Qr([(0,fr.property)()],Ie.prototype,"value",void 0);Qr([(0,fr.property)({type:Boolean,reflect:!0})],Ie.prototype,"checked",void 0);Qr([(0,fr.property)({attribute:"aria-checked",reflect:!0})],Ie.prototype,"ariaChecked",void 0);Qr([(0,fr.property)({type:Boolean})],Ie.prototype,"disabled",void 0);Qr([(0,fr.query)(".ft-radio")],Ie.prototype,"container",void 0);Qr([(0,fr.query)("ft-ripple")],Ie.prototype,"ripple",void 0);Qr([(0,fr.query)("input")],Ie.prototype,"input",void 0)});var uy=l(()=>{"use strict"});var dy,py,jc=l(()=>{"use strict";dy=c(y()),py=dy.css`
|
|
1048
1050
|
:host {
|
|
1049
1051
|
display: block;
|
|
1050
1052
|
}
|
|
@@ -1052,14 +1054,14 @@
|
|
|
1052
1054
|
:host(:focus-visible) {
|
|
1053
1055
|
outline: none;
|
|
1054
1056
|
}
|
|
1055
|
-
`});var hy,Xr,fy,
|
|
1057
|
+
`});var hy,Xr,fy,vs,St,qc=l(()=>{"use strict";hy=c(f()),Xr=c(F()),fy=c(y());jc();vs=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},St=class extends hy.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 fy.html`
|
|
1056
1058
|
<slot @slotchange=${this.onSlotChange}
|
|
1057
1059
|
@change=${this.onChange}
|
|
1058
1060
|
@keydown=${this.onKeyDown}
|
|
1059
1061
|
></slot>
|
|
1060
|
-
`}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()}};St.elementDefinitions={};St.styles=py;vs([(0,Xr.property)()],St.prototype,"name",void 0);vs([(0,Xr.property)({reflect:!0,attribute:"role"})],St.prototype,"role",void 0);vs([(0,Xr.property)({reflect:!0,attribute:"aria-labelledby"})],St.prototype,"ariaLabelledBy",void 0);vs([(0,Xr.queryAssignedElements)()],St.prototype,"assignedElements",void 0);vs([(0,Xr.state)()],St.prototype,"currentSelectedIndex",void 0)});var my=l(()=>{"use strict"});var gy,yy=l(()=>{"use strict";Hc();qc();gy={"ft-radio":Ie,"ft-radio-group":St}});var by,vy=l(()=>{"use strict";by=c(f());yy();(0,by.customElements)(gy)});var Kc=l(()=>{"use strict";Hc();uy();zc();qc();my();jc();vy()});var Et,Te,xy,pt,Ne,Wc,me,Sy=l(()=>{"use strict";Et=c(y()),Te=c(F()),xy=c(kr()),pt=c(f());Xt();ve();Xe();Rr();oy();Kc();Fc();It();Ne=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},Wc={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},me=class extends(0,pt.withAnalytics)(ct((0,pt.withAriaNotification)(pt.FtLitElement)),Wc){constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new 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 Et.html`
|
|
1061
1063
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
1062
|
-
${this.parent==null?null:
|
|
1064
|
+
${this.parent==null?null:Et.html`
|
|
1063
1065
|
<div tabindex="0"
|
|
1064
1066
|
part="controls go-back"
|
|
1065
1067
|
class="ft-filter-level--go-back"
|
|
@@ -1073,15 +1075,15 @@
|
|
|
1073
1075
|
<ft-typography variant="${X.body2}">${this.parent.label}</ft-typography>
|
|
1074
1076
|
</div>
|
|
1075
1077
|
`}
|
|
1076
|
-
${this.filteredOptions.length===0&&this.noValuesLabel?
|
|
1078
|
+
${this.filteredOptions.length===0&&this.noValuesLabel?Et.html`
|
|
1077
1079
|
<ft-typography class="ft-filter-level--no-values" element="span" variant="${X.body2}">
|
|
1078
1080
|
${this.noValuesLabel}
|
|
1079
1081
|
</ft-typography>
|
|
1080
|
-
`:
|
|
1081
|
-
${(0,xy.repeat)(e,r=>r.value,r=>{var i;return
|
|
1082
|
+
`:Et.nothing}
|
|
1083
|
+
${(0,xy.repeat)(e,r=>r.value,r=>{var i;return Et.html`
|
|
1082
1084
|
<div class="ft-filter-level--option" part="options" tabindex="-1">
|
|
1083
1085
|
${this.multivalued?this.buildMultiValuedOption(r):this.buildMonoValuedOption(r)}
|
|
1084
|
-
${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?Et.nothing:Et.html`
|
|
1085
1087
|
<ft-button icon="thin_arrow_right"
|
|
1086
1088
|
part="controls navigate-hierarchy"
|
|
1087
1089
|
aria-label="Expand node"
|
|
@@ -1092,7 +1094,7 @@
|
|
|
1092
1094
|
`}
|
|
1093
1095
|
</div>
|
|
1094
1096
|
`})}
|
|
1095
|
-
${e.length<this.filteredOptions.length?
|
|
1097
|
+
${e.length<this.filteredOptions.length?Et.html`
|
|
1096
1098
|
<ft-button
|
|
1097
1099
|
class="ft-filter-level--display-more"
|
|
1098
1100
|
icon="thin_arrow"
|
|
@@ -1101,20 +1103,20 @@
|
|
|
1101
1103
|
@click=${()=>{this.emitAnalyticsAction("more-filters-button-pressed",{}),this.displayMore()}}>
|
|
1102
1104
|
${this.moreValuesButtonLabel}
|
|
1103
1105
|
</ft-button>
|
|
1104
|
-
`:
|
|
1106
|
+
`:Et.nothing}
|
|
1105
1107
|
</div>
|
|
1106
|
-
`}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 Et.html`
|
|
1107
1109
|
<ft-checkbox name="${this.filterId}"
|
|
1108
1110
|
part="multivalued-option option"
|
|
1109
1111
|
.exportpartsPrefixes=${["multivalued-option","option"]}
|
|
1110
1112
|
data-value="${e.value}"
|
|
1111
1113
|
.checked=${e.selected}
|
|
1112
1114
|
.disabled=${this.disabled}
|
|
1113
|
-
.indeterminate=${(0,
|
|
1115
|
+
.indeterminate=${(0,pt.flatDeep)((r=e.subOptions)!==null&&r!==void 0?r:[],i=>{var s;return(s=i.subOptions)!==null&&s!==void 0?s:[]}).some(i=>i.selected)}
|
|
1114
1116
|
@change=${i=>this.optionsChanged(i,e)}>
|
|
1115
1117
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1116
1118
|
</ft-checkbox>
|
|
1117
|
-
`}buildMonoValuedOption(e){return
|
|
1119
|
+
`}buildMonoValuedOption(e){return Et.html`
|
|
1118
1120
|
<ft-radio name="${this.filterId+Math.round(Math.random()*1e6)}"
|
|
1119
1121
|
part="monovalued-option option"
|
|
1120
1122
|
data-value="${e.value}"
|
|
@@ -1125,7 +1127,7 @@
|
|
|
1125
1127
|
@change=${r=>this.optionsChanged(r,e)}>
|
|
1126
1128
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1127
1129
|
</ft-radio>
|
|
1128
|
-
`}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)})}};me.elementDefinitions={"ft-button":w,"ft-ripple":L,"ft-typography":z,"ft-checkbox"
|
|
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)})}};me.elementDefinitions={"ft-button":w,"ft-ripple":L,"ft-typography":z,"ft-checkbox":$e,"ft-icon":le,"ft-radio":Ie};me.styles=Gg;Ne([(0,Te.property)({type:String})],me.prototype,"filterId",void 0);Ne([(0,Te.property)({type:Object})],me.prototype,"parent",void 0);Ne([(0,Te.property)({type:Array,hasChanged:pt.hasChanged})],me.prototype,"options",void 0);Ne([(0,Te.property)({type:Boolean})],me.prototype,"multivalued",void 0);Ne([(0,Te.property)({type:Boolean})],me.prototype,"disabled",void 0);Ne([(0,Te.property)({type:Boolean})],me.prototype,"hideSelectedOptions",void 0);Ne([(0,Te.property)({type:Boolean})],me.prototype,"displayCount",void 0);Ne([(0,Te.property)({type:Boolean})],me.prototype,"preventNavigation",void 0);Ne([(0,Te.property)({type:String})],me.prototype,"filter",void 0);Ne([(0,Te.property)({type:String})],me.prototype,"moreValuesButtonLabel",void 0);Ne([(0,Te.property)({type:String})],me.prototype,"noValuesLabel",void 0);Ne([(0,Te.property)()],me.prototype,"filteredOptionsNumberAriaNotification",void 0);Ne([(0,pt.numberProperty)()],me.prototype,"displayedValuesLimit",void 0);Ne([(0,Te.query)(".ft-filter-level--container")],me.prototype,"container",void 0);Ne([(0,Te.state)()],me.prototype,"radios",void 0);Ne([(0,Te.state)()],me.prototype,"displayedPages",void 0);Ne([(0,Te.state)()],me.prototype,"filteredOptions",void 0)});var Ey,Zt,rt,Cy,pa=l(()=>{"use strict";Ey=c(y()),Zt=c(f());Ti();rt={buttonsColor:Zt.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",Zt.designSystemVariables.colorPrimary),buttonsZIndex:Zt.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:Zt.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Zt.FtCssVariableFactory.external(Zt.designSystemVariables.colorSurface,"Design system")},Cy=Ey.css`
|
|
1129
1131
|
.ft-snap-scroll {
|
|
1130
1132
|
box-sizing: border-box;
|
|
1131
1133
|
position: relative;
|
|
@@ -1160,7 +1162,7 @@
|
|
|
1160
1162
|
flex-wrap: nowrap;
|
|
1161
1163
|
align-items: flex-start;
|
|
1162
1164
|
justify-content: flex-start;
|
|
1163
|
-
gap: ${
|
|
1165
|
+
gap: ${rt.gap};
|
|
1164
1166
|
}
|
|
1165
1167
|
|
|
1166
1168
|
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
|
|
@@ -1203,11 +1205,11 @@
|
|
|
1203
1205
|
.ft-snap-scroll--next {
|
|
1204
1206
|
position: absolute;
|
|
1205
1207
|
display: flex;
|
|
1206
|
-
z-index: ${
|
|
1208
|
+
z-index: ${rt.buttonsZIndex};
|
|
1207
1209
|
opacity: 1;
|
|
1208
1210
|
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
1209
|
-
${(0,
|
|
1210
|
-
${(0,
|
|
1211
|
+
${(0,Zt.setVariable)($.backgroundColor,"transparent")};
|
|
1212
|
+
${(0,Zt.setVariable)($.color,rt.buttonsColor)};
|
|
1211
1213
|
}
|
|
1212
1214
|
|
|
1213
1215
|
.ft-snap-scroll--previous[hidden],
|
|
@@ -1220,37 +1222,37 @@
|
|
|
1220
1222
|
top: 0;
|
|
1221
1223
|
left: -1px;
|
|
1222
1224
|
bottom: 0;
|
|
1223
|
-
background: linear-gradient(to right, ${
|
|
1225
|
+
background: linear-gradient(to right, ${rt.colorSurface} 50%, var(--snap-scroll-transparent-color));
|
|
1224
1226
|
}
|
|
1225
1227
|
|
|
1226
1228
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous {
|
|
1227
1229
|
top: -1px;
|
|
1228
1230
|
left: 0;
|
|
1229
1231
|
right: 0;
|
|
1230
|
-
background: linear-gradient(to bottom, ${
|
|
1232
|
+
background: linear-gradient(to bottom, ${rt.colorSurface} 50%, var(--snap-scroll-transparent-color));
|
|
1231
1233
|
}
|
|
1232
1234
|
|
|
1233
1235
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next {
|
|
1234
1236
|
top: 0;
|
|
1235
1237
|
right: -1px;
|
|
1236
1238
|
bottom: 0;
|
|
1237
|
-
background: linear-gradient(to left, ${
|
|
1239
|
+
background: linear-gradient(to left, ${rt.colorSurface} 50%, var(--snap-scroll-transparent-color));
|
|
1238
1240
|
}
|
|
1239
1241
|
|
|
1240
1242
|
.ft-snap-scroll--vertical .ft-snap-scroll--next {
|
|
1241
1243
|
left: 0;
|
|
1242
1244
|
right: 0;
|
|
1243
1245
|
bottom: -1px;
|
|
1244
|
-
background: linear-gradient(to top, ${
|
|
1246
|
+
background: linear-gradient(to top, ${rt.colorSurface} 50%, var(--snap-scroll-transparent-color));
|
|
1245
1247
|
}
|
|
1246
1248
|
|
|
1247
1249
|
.ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
|
|
1248
1250
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
|
|
1249
1251
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
|
|
1250
1252
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1251
|
-
background-color: ${
|
|
1253
|
+
background-color: ${rt.colorSurface};
|
|
1252
1254
|
}
|
|
1253
|
-
`});var Ay,
|
|
1255
|
+
`});var Ay,Ct,Di,wy,mr,Gc,Oe,Qc=l(()=>{"use strict";Ay=c(y()),Ct=c(F()),Di=c(f());Xt();wy=c(st());pa();mr=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},Gc=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},Oe=class extends Di.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 Di.Debouncer(200),this.updateScrollDebouncer=new Di.Debouncer(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let r=this.elements[e];if(r){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,s=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<s||r[this.offsetAttribute]+r[this.sizeAttribute]>i)&&this.scrollToElement(r)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let e=(0,wy.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":Di.isSafari}),r=this.controls&&this.withScroll;return Ay.html`
|
|
1254
1256
|
<div part="container" class="${e}">
|
|
1255
1257
|
<ft-button
|
|
1256
1258
|
class="ft-snap-scroll--previous"
|
|
@@ -1274,7 +1276,7 @@
|
|
|
1274
1276
|
@click=${this.next}
|
|
1275
1277
|
></ft-button>
|
|
1276
1278
|
</div>
|
|
1277
|
-
`}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 Gc(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=Cy;
|
|
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 Gc(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=Cy;mr([(0,Ct.property)({type:Boolean})],Oe.prototype,"horizontal",void 0);mr([(0,Ct.property)({type:Boolean})],Oe.prototype,"hideScrollbar",void 0);mr([(0,Ct.property)({type:Boolean})],Oe.prototype,"controls",void 0);mr([(0,Ct.property)({type:Boolean})],Oe.prototype,"limitSize",void 0);mr([(0,Ct.state)()],Oe.prototype,"elements",void 0);mr([(0,Ct.state)()],Oe.prototype,"currentElement",void 0);mr([(0,Ct.state)()],Oe.prototype,"withScroll",void 0);mr([(0,Ct.state)()],Oe.prototype,"startReached",void 0);mr([(0,Ct.state)()],Oe.prototype,"endReached",void 0);mr([(0,Ct.query)(".ft-snap-scroll--content")],Oe.prototype,"contentSlot",void 0)});var Oy=l(()=>{"use strict"});var _y,Ry=l(()=>{"use strict";Qc();_y={"ft-snap-scroll":Oe}});var Ty,ky=l(()=>{"use strict";Ty=c(f());Ry();(0,Ty.customElements)(_y)});var ha=l(()=>{"use strict";Qc();pa();Oy();ky()});var Ly,ce,ht,$y,fa=l(()=>{"use strict";Ly=c(y()),ce=c(f());zt();Ti();ht={colorOutline:ce.FtCssVariableFactory.external(ce.designSystemVariables.colorOutline,"Design system"),colorOnSurface:ce.FtCssVariableFactory.external(ce.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:ce.FtCssVariableFactory.external(ce.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:ce.FtCssVariableFactory.external(ce.designSystemVariables.colorPrimary,"Design system"),colorSurface:ce.FtCssVariableFactory.external(ce.designSystemVariables.colorSurface,"Design system"),transitionDuration:ce.FtCssVariableFactory.external(ce.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:ce.FtCssVariableFactory.external(ce.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:ce.FtCssVariableFactory.extend("--ft-filter-label-color","",ce.designSystemVariables.colorOnSurface),labelFontSize:ce.FtCssVariableFactory.extend("--ft-filter-label-font-size","",v.fontSize,"16px")},$y=[Mr,ce.noTextInputDefaultClearButton,Ly.css`
|
|
1278
1280
|
:host {
|
|
1279
1281
|
display: flex;
|
|
1280
1282
|
max-height: 100%;
|
|
@@ -1314,8 +1316,8 @@
|
|
|
1314
1316
|
flex-shrink: 1;
|
|
1315
1317
|
flex-grow: 1;
|
|
1316
1318
|
word-break: break-word;
|
|
1317
|
-
color: ${
|
|
1318
|
-
font-size: ${
|
|
1319
|
+
color: ${ht.labelColor};
|
|
1320
|
+
font-size: ${ht.labelFontSize};
|
|
1319
1321
|
${(0,ce.setVariable)(v.lineHeight,"22px")};
|
|
1320
1322
|
${(0,ce.setVariable)(v.fontWeight,"bold")};
|
|
1321
1323
|
}
|
|
@@ -1328,8 +1330,8 @@
|
|
|
1328
1330
|
padding: 0 10px;
|
|
1329
1331
|
overflow: hidden;
|
|
1330
1332
|
height: 32px;
|
|
1331
|
-
transition: height ${
|
|
1332
|
-
margin ${
|
|
1333
|
+
transition: height ${ht.transitionDuration} ${ht.transitionTimingFunction},
|
|
1334
|
+
margin ${ht.transitionDuration} ${ht.transitionTimingFunction};
|
|
1333
1335
|
transition-delay: 500ms;
|
|
1334
1336
|
}
|
|
1335
1337
|
|
|
@@ -1342,15 +1344,15 @@
|
|
|
1342
1344
|
display: block;
|
|
1343
1345
|
width: 100%;
|
|
1344
1346
|
border-radius: 4px;
|
|
1345
|
-
border: 1px solid ${
|
|
1347
|
+
border: 1px solid ${ht.colorOutline};
|
|
1346
1348
|
padding: 4px;
|
|
1347
|
-
background-color: ${
|
|
1348
|
-
color: ${
|
|
1349
|
-
outline-color: ${
|
|
1349
|
+
background-color: ${ht.colorSurface};
|
|
1350
|
+
color: ${ht.colorOnSurface};
|
|
1351
|
+
outline-color: ${ht.colorPrimary};
|
|
1350
1352
|
}
|
|
1351
1353
|
|
|
1352
1354
|
input::placeholder {
|
|
1353
|
-
color: ${
|
|
1355
|
+
color: ${ht.colorOnSurfaceMedium};
|
|
1354
1356
|
}
|
|
1355
1357
|
|
|
1356
1358
|
input:placeholder-shown {
|
|
@@ -1366,7 +1368,7 @@
|
|
|
1366
1368
|
}
|
|
1367
1369
|
|
|
1368
1370
|
.ft-filter--separator {
|
|
1369
|
-
border-top: 1px solid ${
|
|
1371
|
+
border-top: 1px solid ${ht.colorOutline};
|
|
1370
1372
|
margin: 4px 10px;
|
|
1371
1373
|
}
|
|
1372
1374
|
|
|
@@ -1391,7 +1393,7 @@
|
|
|
1391
1393
|
slot:not([name]) {
|
|
1392
1394
|
display: none;
|
|
1393
1395
|
}
|
|
1394
|
-
`]});var Pi,
|
|
1396
|
+
`]});var Pi,ne,Se,ue,Xc,K,Yc=l(()=>{"use strict";Pi=c(y()),ne=c(F()),Se=c(f());ve();Sy();Xt();ha();fa();ue=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},Xc=class extends CustomEvent{constructor(e){super("change",{detail:e})}},K=class extends(0,Se.withAnalytics)(Se.FtLitElement,Wc){constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new Se.Debouncer(300),this.changeDebouncer=new Se.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,Se.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,Se.flatDeep)(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(s=>s.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return Pi.html`
|
|
1395
1397
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1396
1398
|
part="container">
|
|
1397
1399
|
${!this.label&&!e?null:Pi.html`
|
|
@@ -1475,17 +1477,17 @@
|
|
|
1475
1477
|
noValuesLabel="${this.noValuesLabel}"
|
|
1476
1478
|
.filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
|
|
1477
1479
|
></ft-filter-level>
|
|
1478
|
-
`}goBack(e){this.slideOut=e.detail.value,(0,Se.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,Se.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,Se.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(o=>o.value===e.detail.value);i.selected=!i.selected;let s=o=>{var n;o!==i&&(o.selected=!1),(n=o.subOptions)===null||n===void 0||n.forEach(s)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(s):this.options.forEach(s),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,Se.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new Xc(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};K.elementDefinitions={"ft-button":w,"ft-filter-level":me,"ft-snap-scroll":Oe,"ft-typography":z};K.styles=$y;ue([(0,
|
|
1480
|
+
`}goBack(e){this.slideOut=e.detail.value,(0,Se.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,Se.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,Se.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(o=>o.value===e.detail.value);i.selected=!i.selected;let s=o=>{var n;o!==i&&(o.selected=!1),(n=o.subOptions)===null||n===void 0||n.forEach(s)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(s):this.options.forEach(s),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,Se.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new Xc(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};K.elementDefinitions={"ft-button":w,"ft-filter-level":me,"ft-snap-scroll":Oe,"ft-typography":z};K.styles=$y;ue([(0,ne.property)({type:String})],K.prototype,"id",void 0);ue([(0,ne.property)({type:String})],K.prototype,"label",void 0);ue([(0,ne.property)({type:String})],K.prototype,"filterPlaceHolder",void 0);ue([(0,ne.property)({type:String})],K.prototype,"clearButtonLabel",void 0);ue([(0,ne.property)({type:String})],K.prototype,"moreValuesButtonLabel",void 0);ue([(0,ne.property)({type:String})],K.prototype,"noValuesLabel",void 0);ue([(0,Se.jsonProperty)([])],K.prototype,"options",void 0);ue([(0,ne.property)({type:Boolean})],K.prototype,"multivalued",void 0);ue([(0,ne.property)({type:Boolean})],K.prototype,"disabled",void 0);ue([(0,ne.property)({type:Boolean})],K.prototype,"raiseSelectedOptions",void 0);ue([(0,ne.property)({type:Boolean})],K.prototype,"displayCount",void 0);ue([(0,Se.numberProperty)()],K.prototype,"displayedValuesLimit",void 0);ue([(0,Se.jsonProperty)(void 0)],K.prototype,"filteredOptionsNumberAriaNotification",void 0);ue([(0,ne.property)({type:Boolean})],K.prototype,"hideClearButton",void 0);ue([(0,ne.query)(".ft-filter--slot")],K.prototype,"slotElement",void 0);ue([(0,ne.query)(".ft-filter--container")],K.prototype,"container",void 0);ue([(0,ne.query)(".ft-filter--values")],K.prototype,"valuesContainer",void 0);ue([(0,ne.query)(".ft-filter--levels")],K.prototype,"levelsContainer",void 0);ue([(0,ne.state)()],K.prototype,"lastLevelHasHiddenvalues",void 0);ue([(0,ne.query)(".ft-filter--filter input")],K.prototype,"filterInput",void 0);ue([(0,ne.queryAll)(".ft-filter--levels ft-filter-level")],K.prototype,"levels",void 0);ue([(0,ne.state)()],K.prototype,"withScroll",void 0);ue([(0,ne.state)()],K.prototype,"filter",void 0);ue([(0,ne.state)()],K.prototype,"slideIn",void 0);ue([(0,ne.state)()],K.prototype,"slideOut",void 0)});var Iy=l(()=>{"use strict"});var ma,Mi,Dy,bo,At,Zc=l(()=>{"use strict";ma=c(f()),Mi=c(F()),Dy=c(y()),bo=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},At=class extends ma.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Dy.html`
|
|
1479
1481
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
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}))}};
|
|
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}))}};At.elementDefinitions={};bo([(0,Mi.property)({type:String})],At.prototype,"label",void 0);bo([(0,Mi.property)({type:Object,converter:t=>t})],At.prototype,"value",void 0);bo([(0,Mi.property)({type:Boolean,reflect:!0})],At.prototype,"selected",void 0);bo([(0,Mi.property)({type:Object})],At.prototype,"subOptions",void 0);bo([(0,ma.jsonProperty)({})],At.prototype,"renderOption",void 0);bo([(0,Mi.query)(".ft-filter-option--slot")],At.prototype,"slotElement",void 0)});var Py=l(()=>{"use strict"});var My,Ny=l(()=>{"use strict";Yc();Zc();My={"ft-filter":K,"ft-filter-option":At}});var Fy,By=l(()=>{"use strict";Fy=c(f());Ny();(0,Fy.customElements)(My)});var Uy=l(()=>{"use strict";Fc();Yc();fa();Iy();Zc();Py();By()});var Vy,zy,Jc=l(()=>{"use strict";Vy=c(y()),zy=Vy.css`
|
|
1481
1483
|
.ft-accordion {
|
|
1482
1484
|
box-sizing: border-box;
|
|
1483
1485
|
}
|
|
1484
|
-
`});var jy,ga,qy,Hy,
|
|
1486
|
+
`});var jy,ga,qy,Hy,gr,eu=l(()=>{"use strict";jy=c(y()),ga=c(F()),qy=c(f());Jc();Hy=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},gr=class extends qy.FtLitElement{constructor(){super(...arguments),this.multi=!1}render(){return jy.html`
|
|
1485
1487
|
<div class="ft-accordion">
|
|
1486
1488
|
<slot @activated=${this.onChange}></slot>
|
|
1487
1489
|
</div>
|
|
1488
|
-
`}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};
|
|
1490
|
+
`}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};gr.elementDefinitions={};gr.styles=zy;Hy([(0,ga.property)({type:Boolean})],gr.prototype,"multi",void 0);Hy([(0,ga.query)("slot")],gr.prototype,"content",void 0)});var Ky=l(()=>{"use strict"});var Wy,Fi,Ni,Gy,tu=l(()=>{"use strict";Wy=c(y()),Fi=c(f()),Ni={horizontalSpacing:Fi.FtCssVariableFactory.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:Fi.FtCssVariableFactory.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:Fi.FtCssVariableFactory.external(Fi.designSystemVariables.colorOutline,"Design system"),backgroundColor:Fi.FtCssVariableFactory.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},Gy=Wy.css`
|
|
1489
1491
|
.ft-accordion-item {
|
|
1490
1492
|
display: flex;
|
|
1491
1493
|
flex-direction: column;
|
|
@@ -1531,7 +1533,7 @@
|
|
|
1531
1533
|
.ft-accordion-item--separator {
|
|
1532
1534
|
border-bottom: 1px solid ${Ni.colorOutline};
|
|
1533
1535
|
}
|
|
1534
|
-
`});var
|
|
1536
|
+
`});var xs,Ss,Qy,ya,Bt,ru=l(()=>{"use strict";xs=c(y()),Ss=c(F()),Qy=c(f());Xe();ve();Rr();tu();ya=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},Bt=class extends Qy.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return xs.html`
|
|
1535
1537
|
<div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
|
|
1536
1538
|
<div class="ft-accordion-item--toggle"
|
|
1537
1539
|
part="toggle"
|
|
@@ -1542,13 +1544,13 @@
|
|
|
1542
1544
|
aria-controls="ft-accordion-item-content"
|
|
1543
1545
|
aria-expanded="${this.active}">
|
|
1544
1546
|
<ft-ripple part="toggle-ripple"></ft-ripple>
|
|
1545
|
-
${this.icon?
|
|
1547
|
+
${this.icon?xs.html`
|
|
1546
1548
|
<ft-icon .variant=${this.iconVariant} value="${this.icon}"></ft-icon>
|
|
1547
1549
|
`:null}
|
|
1548
|
-
${this.label?
|
|
1550
|
+
${this.label?xs.html`
|
|
1549
1551
|
<ft-typography class="ft-accordion-item--label" variant="body1" part="label">${this.label}
|
|
1550
1552
|
</ft-typography>
|
|
1551
|
-
`:
|
|
1553
|
+
`:xs.html`
|
|
1552
1554
|
<slot class="ft-accordion-item--label" name="toggle" part="label"></slot>
|
|
1553
1555
|
`}
|
|
1554
1556
|
<ft-icon variant="material">${this.active?"expand_less":"expand_more"}</ft-icon>
|
|
@@ -1561,7 +1563,7 @@
|
|
|
1561
1563
|
</div>
|
|
1562
1564
|
<div class="ft-accordion-item--separator" part="separator"></div>
|
|
1563
1565
|
</div>
|
|
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)}};
|
|
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)}};Bt.elementDefinitions={"ft-ripple":L,"ft-typography":z,"ft-icon":le};Bt.styles=Gy;ya([(0,Ss.property)()],Bt.prototype,"icon",void 0);ya([(0,Ss.property)()],Bt.prototype,"iconVariant",void 0);ya([(0,Ss.property)()],Bt.prototype,"label",void 0);ya([(0,Ss.property)({type:Boolean,reflect:!0})],Bt.prototype,"active",void 0)});var Xy=l(()=>{"use strict"});var Yy,Zy=l(()=>{"use strict";eu();ru();Yy={"ft-accordion":gr,"ft-accordion-item":Bt}});var Jy,eb=l(()=>{"use strict";Jy=c(f());Zy();(0,Jy.customElements)(Yy)});var tb=l(()=>{"use strict";eu();Jc();Ky();ru();tu();Xy();eb()});var Es,B,rb,Fe,ib,iu,ob,sb,ou=l(()=>{"use strict";Es=c(y()),B=c(f());Sr();zt();po();Xt();rb=B.FtCssVariableFactory.extend("--ft-chip-color","",B.designSystemVariables.colorOnSurface),Fe={backgroundColor:B.FtCssVariableFactory.extend("--ft-chip-background-color","",B.designSystemVariables.colorSurface),color:rb,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","",rb),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")},ib=B.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",B.FtCssVariableFactory.extend("--ft-chip-color","",B.designSystemVariables.colorOnPrimary)),iu={backgroundColor:B.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",B.FtCssVariableFactory.extend("--ft-chip-background-color","",B.designSystemVariables.colorPrimary)),color:ib,rippleColor:B.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",ib)},ob={horizontalPadding:B.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:B.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},sb=[B.noTextSelect,Es.css`
|
|
1565
1567
|
:host {
|
|
1566
1568
|
display: inline-block;
|
|
1567
1569
|
max-width: 100%;
|
|
@@ -1580,7 +1582,7 @@
|
|
|
1580
1582
|
--chip-internal-font-size: ${Fe.fontSize};
|
|
1581
1583
|
--chip-internal-font-weight: ${Fe.fontWeight};
|
|
1582
1584
|
--chip-internal-line-height: max(20px, calc(var(--chip-internal-font-size) + 2px));
|
|
1583
|
-
${(0,B.setVariable)(
|
|
1585
|
+
${(0,B.setVariable)(Je.size,Fe.iconSize)};
|
|
1584
1586
|
--chip-internal-vertical-padding: ${Fe.verticalPadding};
|
|
1585
1587
|
--chip-internal-horizontal-padding: ${Fe.horizontalPadding};
|
|
1586
1588
|
--chip-internal-icon-padding: 3px;
|
|
@@ -1589,7 +1591,7 @@
|
|
|
1589
1591
|
border: 1px solid ${Fe.borderColor};
|
|
1590
1592
|
color: ${Fe.color};
|
|
1591
1593
|
${(0,B.setVariable)(V.color,Fe.rippleColor)};
|
|
1592
|
-
border-radius: var(${(0,
|
|
1594
|
+
border-radius: var(${(0,Es.unsafeCSS)(Fe.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
|
|
1593
1595
|
padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
|
|
1594
1596
|
background-color: ${Fe.backgroundColor};
|
|
1595
1597
|
line-height: var(--chip-internal-content-height);
|
|
@@ -1607,7 +1609,7 @@
|
|
|
1607
1609
|
}
|
|
1608
1610
|
|
|
1609
1611
|
.ft-chip--no-content {
|
|
1610
|
-
--chip-internal-horizontal-padding: ${Fe.horizontalPadding.get(
|
|
1612
|
+
--chip-internal-horizontal-padding: ${Fe.horizontalPadding.get(Es.css`var(--chip-internal-vertical-padding)`)};
|
|
1611
1613
|
}
|
|
1612
1614
|
|
|
1613
1615
|
.ft-chip--disabled {
|
|
@@ -1701,7 +1703,7 @@
|
|
|
1701
1703
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
1702
1704
|
order: -1;
|
|
1703
1705
|
}
|
|
1704
|
-
`]});var Bi,
|
|
1706
|
+
`]});var Bi,De,nb,vo,Ge,ba,he,su=l(()=>{"use strict";Bi=c(y()),De=c(F()),nb=c(st()),vo=c(f());Xe();ve();Rr();ou();Xt();Ge=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},ba=class extends CustomEvent{constructor(){super("icon-click")}},he=class extends vo.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":vo.isSafari};return Bi.html`
|
|
1705
1707
|
<div class="${(0,nb.classMap)(r)}"
|
|
1706
1708
|
aria-label="${this.labelOnIconOnly?Bi.nothing:this.getLabel()}"
|
|
1707
1709
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
@@ -1729,7 +1731,7 @@
|
|
|
1729
1731
|
<div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
|
|
1730
1732
|
<ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
|
|
1731
1733
|
</div>
|
|
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 ba))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new ba))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,vo.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};he.elementDefinitions={"ft-ripple":L,"ft-typography":z,"ft-icon":
|
|
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 ba))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new ba))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,vo.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};he.elementDefinitions={"ft-ripple":L,"ft-typography":z,"ft-icon":le,"ft-button":w};he.styles=sb;Ge([(0,De.property)({type:Boolean})],he.prototype,"highlighted",void 0);Ge([(0,De.property)({type:Boolean})],he.prototype,"removable",void 0);Ge([(0,De.property)({type:Boolean})],he.prototype,"disabled",void 0);Ge([(0,De.property)({type:Boolean})],he.prototype,"clickable",void 0);Ge([(0,De.property)({type:Boolean})],he.prototype,"iconClickable",void 0);Ge([(0,De.property)({type:Boolean})],he.prototype,"dense",void 0);Ge([(0,De.property)({type:Boolean})],he.prototype,"multiLine",void 0);Ge([(0,De.property)()],he.prototype,"label",void 0);Ge([(0,De.property)()],he.prototype,"iconLabel",void 0);Ge([(0,De.property)({type:Boolean})],he.prototype,"hideIconTooltip",void 0);Ge([(0,De.property)({type:Boolean})],he.prototype,"accessibleLabelOnIcon",void 0);Ge([(0,De.property)()],he.prototype,"icon",void 0);Ge([(0,De.property)()],he.prototype,"iconVariant",void 0);Ge([(0,De.property)({type:Boolean})],he.prototype,"trailingIcon",void 0);Ge([(0,De.property)()],he.prototype,"typographyVariant",void 0);Ge([(0,De.query)("ft-typography slot")],he.prototype,"slottedContent",void 0)});var ab=l(()=>{"use strict"});var lb,cb=l(()=>{"use strict";su();lb={"ft-chip":he}});var ub,db=l(()=>{"use strict";ub=c(f());cb();(0,ub.customElements)(lb)});var nu=l(()=>{"use strict";su();ou();ab();db()});function Cs(t,e,r){return t?e(t):r?.(t)}var pb=l(()=>{});var au=l(()=>{pb()});var hb,de,j,fb,As=l(()=>{"use strict";hb=c(y()),de=c(f());zt();j={fontSize:de.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:de.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:de.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:de.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:de.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:de.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:de.FtCssVariableFactory.extend("--ft-input-label-border-color","",de.designSystemVariables.colorOutline),textColor:de.FtCssVariableFactory.extend("--ft-input-label-text-color","",de.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:de.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",de.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:de.FtCssVariableFactory.extend("--ft-input-label-background-color","",de.designSystemVariables.colorSurface),borderRadius:de.FtCssVariableFactory.extend("--ft-input-label-border-radius","",de.designSystemVariables.borderRadiusS),colorError:de.FtCssVariableFactory.external(de.designSystemVariables.colorError,"Design system")},fb=hb.css`
|
|
1733
1735
|
.ft-input-label {
|
|
1734
1736
|
position: absolute;
|
|
1735
1737
|
inset: 0;
|
|
@@ -1775,8 +1777,8 @@
|
|
|
1775
1777
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
1776
1778
|
max-width: calc(${j.labelMaxWidth} - 2 * (${j.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
1777
1779
|
text-overflow: ellipsis;
|
|
1778
|
-
${(0,de.setVariable)(
|
|
1779
|
-
${(0,de.setVariable)(
|
|
1780
|
+
${(0,de.setVariable)(at.fontSize,j.fontSize)};
|
|
1781
|
+
${(0,de.setVariable)(at.lineHeight,j.fontSize)};
|
|
1780
1782
|
}
|
|
1781
1783
|
|
|
1782
1784
|
.ft-input-label--in-error .ft-input-label--text {
|
|
@@ -1796,7 +1798,7 @@
|
|
|
1796
1798
|
|
|
1797
1799
|
.ft-input-label--floating-text {
|
|
1798
1800
|
position: absolute;
|
|
1799
|
-
top: calc(50% - ${
|
|
1801
|
+
top: calc(50% - ${at.lineHeight} / 2);
|
|
1800
1802
|
transition: top 250ms;
|
|
1801
1803
|
overflow: hidden;
|
|
1802
1804
|
white-space: nowrap;
|
|
@@ -1808,8 +1810,8 @@
|
|
|
1808
1810
|
}
|
|
1809
1811
|
|
|
1810
1812
|
.ft-input-label--raised .ft-input-label--text {
|
|
1811
|
-
${(0,de.setVariable)(
|
|
1812
|
-
${(0,de.setVariable)(
|
|
1813
|
+
${(0,de.setVariable)(at.fontSize,j.raisedFontSize)};
|
|
1814
|
+
${(0,de.setVariable)(at.lineHeight,j.raisedFontSize)};
|
|
1813
1815
|
}
|
|
1814
1816
|
|
|
1815
1817
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
@@ -1821,18 +1823,18 @@
|
|
|
1821
1823
|
z-index: ${j.raisedZIndex};
|
|
1822
1824
|
background-color: ${j.backgroundColor};
|
|
1823
1825
|
border-radius: ${j.borderRadius};
|
|
1824
|
-
top: calc((${
|
|
1826
|
+
top: calc((${at.lineHeight} / -2) + 2px);
|
|
1825
1827
|
}
|
|
1826
|
-
`});var lu,cu,gb,yb,mb,Ui,bb=l(()=>{"use strict";lu=c(y()),cu=c(F());au();gb=c(
|
|
1828
|
+
`});var lu,cu,gb,yb,mb,Ui,bb=l(()=>{"use strict";lu=c(y()),cu=c(F());au();gb=c(st()),yb=c(f()),mb=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},Ui=class extends yb.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return lu.html`
|
|
1827
1829
|
<div class="${(0,gb.classMap)(this.inputLabelClasses)}">
|
|
1828
|
-
${
|
|
1830
|
+
${Cs(this.text,()=>lu.html`
|
|
1829
1831
|
<div class="ft-input-label--text ft-typography--caption">
|
|
1830
1832
|
<label class="ft-input-label--floating-text">${this.text}</label>
|
|
1831
1833
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
1832
1834
|
</div>
|
|
1833
1835
|
`)}
|
|
1834
1836
|
</div>
|
|
1835
|
-
`}};Ui.elementDefinitions={};mb([(0,cu.property)({type:String})],Ui.prototype,"text",void 0);mb([(0,cu.property)({type:Boolean})],Ui.prototype,"raised",void 0)});var va,uu,
|
|
1837
|
+
`}};Ui.elementDefinitions={};mb([(0,cu.property)({type:String})],Ui.prototype,"text",void 0);mb([(0,cu.property)({type:Boolean})],Ui.prototype,"raised",void 0)});var va,uu,Jt,du=l(()=>{"use strict";va=c(F());zt();As();bb();uu=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},Jt=class extends Ui{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}}};Jt.elementDefinitions={};Jt.styles=[Mr,fb];uu([(0,va.property)({type:Boolean})],Jt.prototype,"outlined",void 0);uu([(0,va.property)({type:Boolean})],Jt.prototype,"error",void 0);uu([(0,va.property)({type:Boolean})],Jt.prototype,"disabled",void 0)});var vb=l(()=>{"use strict"});var xb,Sb=l(()=>{"use strict";du();xb={"ft-input-label":Jt}});var Eb,Cb=l(()=>{"use strict";Eb=c(f());Sb();(0,Eb.customElements)(xb)});var Ab=l(()=>{"use strict";du();As();vb();Cb()});var wb,N,M,Ob,ws=l(()=>{"use strict";wb=c(y()),N=c(f());As();zt();Sr();po();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")},Ob=wb.css`
|
|
1836
1838
|
*:focus {
|
|
1837
1839
|
outline: none;
|
|
1838
1840
|
}
|
|
@@ -1889,7 +1891,7 @@
|
|
|
1889
1891
|
${(0,N.setVariable)(j.verticalSpacing,M.verticalSpacing)};
|
|
1890
1892
|
${(0,N.setVariable)(j.horizontalSpacing,M.horizontalSpacing)};
|
|
1891
1893
|
${(0,N.setVariable)(j.backgroundColor,M.backgroundColor)};
|
|
1892
|
-
${(0,N.setVariable)(j.labelMaxWidth,`calc(100% - ${
|
|
1894
|
+
${(0,N.setVariable)(j.labelMaxWidth,`calc(100% - ${Je.size} - 8px)`)};
|
|
1893
1895
|
}
|
|
1894
1896
|
|
|
1895
1897
|
.ft-select:not(.ft-select--disabled):focus-within ft-icon {
|
|
@@ -1908,8 +1910,8 @@
|
|
|
1908
1910
|
overflow: hidden;
|
|
1909
1911
|
white-space: nowrap;
|
|
1910
1912
|
text-overflow: ellipsis;
|
|
1911
|
-
${(0,N.setVariable)(
|
|
1912
|
-
${(0,N.setVariable)(
|
|
1913
|
+
${(0,N.setVariable)(or.fontSize,M.selectedOptionSize)};
|
|
1914
|
+
${(0,N.setVariable)(or.lineHeight,M.selectedOptionSize)};
|
|
1913
1915
|
}
|
|
1914
1916
|
|
|
1915
1917
|
.ft-select--in-error .ft-select--selected-option {
|
|
@@ -1968,7 +1970,7 @@
|
|
|
1968
1970
|
.ft-select:not(.ft-select--has-option-selected) .ft-select--selected-option {
|
|
1969
1971
|
opacity: 0;
|
|
1970
1972
|
}
|
|
1971
|
-
`});var pu,_b,Rb,Tb=l(()=>{"use strict";
|
|
1973
|
+
`});var pu,_b,Rb,Tb=l(()=>{"use strict";Sr();pu=c(f());ws();_b=c(y()),Rb=_b.css`
|
|
1972
1974
|
.ft-select--option {
|
|
1973
1975
|
${(0,pu.setVariable)(V.opacityContentOnSurfaceHover,"0.08")};
|
|
1974
1976
|
${(0,pu.setVariable)(V.opacityContentOnSurfacePressed,"0.04")};
|
|
@@ -1995,7 +1997,7 @@
|
|
|
1995
1997
|
overflow: hidden;
|
|
1996
1998
|
}
|
|
1997
1999
|
|
|
1998
|
-
`});var xa,xo,kb,Yr,
|
|
2000
|
+
`});var xa,xo,kb,Yr,Os,Qe,Lb=l(()=>{"use strict";xa=c(f());Xe();ve();xo=c(y()),kb=c(st()),Yr=c(F());Tb();Os=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},Qe=class extends xa.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 xo.html`
|
|
1999
2001
|
<div class="${(0,kb.classMap)(i)}"
|
|
2000
2002
|
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,"")}"
|
|
2001
2003
|
tabindex="0"
|
|
@@ -2007,7 +2009,7 @@
|
|
|
2007
2009
|
</slot>
|
|
2008
2010
|
${this.isSlotEmpty?xo.html`<span>${this.label}</span>`:xo.html``}
|
|
2009
2011
|
</div>
|
|
2010
|
-
`}onSlotChange(){this.isSlotEmpty=(0,xa.isSlotEmptyOrWithoutContent)(this.slotElement)}onClick(){this.dispatchEvent(new Event("select-option",{bubbles:!0,composed:!0}))}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Qe.elementDefinitions={"ft-ripple":L};Qe.shadowRootOptions={...xo.LitElement.shadowRootOptions,delegatesFocus:!0};Qe.styles=[Rb,Pr];
|
|
2012
|
+
`}onSlotChange(){this.isSlotEmpty=(0,xa.isSlotEmptyOrWithoutContent)(this.slotElement)}onClick(){this.dispatchEvent(new Event("select-option",{bubbles:!0,composed:!0}))}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Qe.elementDefinitions={"ft-ripple":L};Qe.shadowRootOptions={...xo.LitElement.shadowRootOptions,delegatesFocus:!0};Qe.styles=[Rb,Pr];Os([(0,Yr.property)({type:String})],Qe.prototype,"label",void 0);Os([(0,Yr.property)({type:Object,converter:t=>t})],Qe.prototype,"value",void 0);Os([(0,Yr.property)({type:Boolean,reflect:!0})],Qe.prototype,"selected",void 0);Os([(0,Yr.query)("slot")],Qe.prototype,"slotElement",void 0);Os([(0,Yr.state)()],Qe.prototype,"isSlotEmpty",void 0)});var So,_e,$b,Ib,Ut,Be,ae,hu=l(()=>{"use strict";So=c(y()),_e=c(F()),$b=c(st()),Ib=c(kr());au();ls();Ut=c(f());ve();Ab();Xe();Rr();ws();Lb();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},ae=class t extends Ut.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,Ut.last)(this.optionsList)}render(){var e,r,i,s,o;let n=this.hasOptionsMenuOpen,a=this.disabled||!this.hasOptions,u=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((s=(r=this.selectedOption)===null||r===void 0?void 0:r.label)!==null&&s!==void 0?s:"").length>0,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 So.html`
|
|
2011
2013
|
<div class="${(0,$b.classMap)(d)}" part="container">
|
|
2012
2014
|
<div class="ft-select--main-panel" part="main-panel">
|
|
2013
2015
|
<ft-input-label text="${this.label}"
|
|
@@ -2023,11 +2025,11 @@
|
|
|
2023
2025
|
tabindex="${a?"-1":"0"}"
|
|
2024
2026
|
@click=${()=>{this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=this.optionsDisplayed}}
|
|
2025
2027
|
@keydown=${this.onMainPanelKeyDown}
|
|
2026
|
-
aria-label="${
|
|
2027
|
-
aria-labelledby="${
|
|
2028
|
+
aria-label="${yt(this.ariaLabel)}"
|
|
2029
|
+
aria-labelledby="${Cs(!this.ariaLabel,()=>"label")}"
|
|
2028
2030
|
aria-haspopup="listbox"
|
|
2029
2031
|
aria-expanded="${n}"
|
|
2030
|
-
aria-activedescendant="${
|
|
2032
|
+
aria-activedescendant="${yt(this.getOptionId(this.selectedOption))}"
|
|
2031
2033
|
role="combobox">
|
|
2032
2034
|
<ft-ripple ?disabled=${a} ?activated=${!this.outlined}></ft-ripple>
|
|
2033
2035
|
<slot name="input-value">
|
|
@@ -2048,7 +2050,7 @@
|
|
|
2048
2050
|
@option-change=${this.updateOptionsFromSlot}
|
|
2049
2051
|
>
|
|
2050
2052
|
</slot>
|
|
2051
|
-
${
|
|
2053
|
+
${Cs(this.isSlotEmpty,()=>(0,Ib.repeat)(this.options,p=>p.value,p=>this.renderOption(p)))}
|
|
2052
2054
|
</div>
|
|
2053
2055
|
</div>
|
|
2054
2056
|
<slot name="helper" part="helper">
|
|
@@ -2063,7 +2065,7 @@
|
|
|
2063
2065
|
label="${e.label}"
|
|
2064
2066
|
.value=${e.value}
|
|
2065
2067
|
></ft-select-option>
|
|
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 s=["bottom","top"];(0,
|
|
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 s=["bottom","top"];(0,Ut.computeOffsetAutoPosition)(this.mainPanel,this.optionsMenu,"bottom",s,"fixed",M.optionsHeight,0).then(({x:o,y:n})=>{this.optionsMenu.style.left=`${o}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,Ut.isSlotEmptyOrWithoutContent)(this.optionsSlot);let i=(r=this.optionsSlot)===null||r===void 0?void 0:r.assignedElements().map(s=>s);i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(e){switch(e.key===" "&&(e.preventDefault(),e.stopPropagation()),e.key){case" ":case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var r,i;let s,o=this.focusedOption?this.optionsList.indexOf(this.focusedOption):0;switch(e.key){case" ":case"Enter":e.preventDefault(),e.stopPropagation(),this.onSelectOption(e),this.optionsDisplayed=!1,(r=this.mainPanel)===null||r===void 0||r.focus();break;case"Escape":this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),s=this.optionsList[(o-1+this.optionsList.length)%this.optionsList.length];break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),s=this.optionsList[(o+1)%this.optionsList.length];break;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(s=this.handleAlphanumericPress(e.key));break}s?.focus()}isKeyAlphanumeric(e){let r=e.charCodeAt(0);return r>47&&r<58||r>64&&r<91||r>96&&r<123}handleAlphanumericPress(e){let r=new Date;r.getTime()-this.lastSearchInputDate.getTime()>t.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let i=this.options.find(s=>{var o;return((o=s.label)===null||o===void 0?void 0:o.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});return this.lastSearchInputDate=r,i&&this.optionsList.find(s=>s.value===i.value)}getOptionId(e){if(!e)return;let r=this.options.findIndex(i=>(0,Ut.deepEqual)(i.value,e.value));if(r!==-1)return`option-${r}`}onSelectOption(e){e.stopPropagation(),this.setValue(e.target.value)}setValue(e,r=!0){let i=this.options.find(s=>(0,Ut.deepEqual)(s.value,e));i&&this.selectOption(i,r)}selectOption(e,r=!0){var i,s;if(!(0,Ut.deepEqual)((i=this.selectedOption)===null||i===void 0?void 0:i.value,e?.value)){this.selectedOption=e;for(let o of this.options)o.selected=o===e;r&&this.dispatchEvent(new CustomEvent("change",{detail:(s=this.selectedOption)===null||s===void 0?void 0:s.value}))}this.optionsDisplayed=!1}};ae.elementDefinitions={"ft-input-label":Jt,"ft-typography":z,"ft-ripple":L,"ft-icon":le,"ft-select-option":Qe};ae.searchTimeoutMilliseconds=2e3;ae.styles=[Mr,Ob];Be([(0,_e.property)({type:String})],ae.prototype,"label",void 0);Be([(0,_e.property)({type:String})],ae.prototype,"ariaLabel",void 0);Be([(0,_e.property)({type:String})],ae.prototype,"helper",void 0);Be([(0,_e.property)({type:Boolean})],ae.prototype,"outlined",void 0);Be([(0,_e.property)({type:Boolean})],ae.prototype,"disabled",void 0);Be([(0,_e.property)({type:Boolean})],ae.prototype,"error",void 0);Be([(0,_e.property)({type:Boolean})],ae.prototype,"fixedMenuPosition",void 0);Be([(0,_e.property)({type:Array})],ae.prototype,"options",void 0);Be([(0,_e.state)()],ae.prototype,"selectedOption",void 0);Be([(0,_e.state)()],ae.prototype,"optionsDisplayed",void 0);Be([(0,_e.state)()],ae.prototype,"focusOptions",void 0);Be([(0,_e.state)()],ae.prototype,"currentSearch",void 0);Be([(0,_e.state)()],ae.prototype,"lastSearchInputDate",void 0);Be([(0,_e.query)(".ft-select")],ae.prototype,"container",void 0);Be([(0,_e.query)(".ft-select--options")],ae.prototype,"optionsMenu",void 0);Be([(0,_e.query)(".ft-select--input-panel")],ae.prototype,"mainPanel",void 0);Be([(0,_e.query)("slot:not([name])")],ae.prototype,"optionsSlot",void 0)});var Db=l(()=>{"use strict"});var Pb,Mb=l(()=>{"use strict";hu();Pb={"ft-select":ae,"ft-select-option":Qe}});var Nb,Fb=l(()=>{"use strict";Nb=c(f());Mb();(0,Nb.customElements)(Pb)});var Bb=l(()=>{"use strict";hu();ws();Db();Fb()});var Ub,er,Ue,Vb,Sa=l(()=>{"use strict";Ub=c(y()),er=c(f()),Ue={display:er.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:er.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:er.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:er.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:er.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:er.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:er.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:er.FtCssVariableFactory.external(er.designSystemVariables.borderRadiusM,"Design system")},Vb=Ub.css`
|
|
2067
2069
|
:host {
|
|
2068
2070
|
width: ${Ue.width};
|
|
2069
2071
|
height: ${Ue.height};
|
|
@@ -2090,7 +2092,7 @@
|
|
|
2090
2092
|
background-position: calc(100vw + ${Ue.glareWidth}) 0, calc(${Ue.glareWidth} * -1) 0;
|
|
2091
2093
|
}
|
|
2092
2094
|
}
|
|
2093
|
-
`});var D,fu,R,zb,Hb,Ea=l(()=>{"use strict";D=c(f()),fu=c(y());Ti();
|
|
2095
|
+
`});var D,fu,R,zb,Hb,Ea=l(()=>{"use strict";D=c(f()),fu=c(y());Ti();As();ws();Sa();pa();fa();zt();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($.color,"Button"),buttonRippleColor:D.FtCssVariableFactory.external($.rippleColor,"Button"),activeItemBorderColor:D.FtCssVariableFactory.extend("--ft-search-bar-active-border-color","",D.designSystemVariables.colorPrimary)},zb=fu.css`
|
|
2094
2096
|
* {
|
|
2095
2097
|
box-sizing: border-box;
|
|
2096
2098
|
}
|
|
@@ -2253,7 +2255,7 @@
|
|
|
2253
2255
|
flex-direction: column;
|
|
2254
2256
|
max-height: 100%;
|
|
2255
2257
|
max-width: 100%;
|
|
2256
|
-
color: ${
|
|
2258
|
+
color: ${ht.colorOnSurface};
|
|
2257
2259
|
}
|
|
2258
2260
|
|
|
2259
2261
|
[part="content-locale-selector"] > ft-radio-group {
|
|
@@ -2344,7 +2346,7 @@
|
|
|
2344
2346
|
.ft-search-bar--desktop-menu .ft-search-bar--filters-container {
|
|
2345
2347
|
display: block;
|
|
2346
2348
|
height: ${R.desktopFiltersHeight};
|
|
2347
|
-
${(0,D.setVariable)(
|
|
2349
|
+
${(0,D.setVariable)(rt.gap,"16px")};
|
|
2348
2350
|
}
|
|
2349
2351
|
|
|
2350
2352
|
.ft-search-bar--desktop-menu ft-filter {
|
|
@@ -2359,15 +2361,15 @@
|
|
|
2359
2361
|
}
|
|
2360
2362
|
|
|
2361
2363
|
.ft-search-bar--desktop-menu [data-filters-count="2"] ft-filter {
|
|
2362
|
-
max-width: calc(50% - ${
|
|
2364
|
+
max-width: calc(50% - ${rt.gap} / 2);
|
|
2363
2365
|
}
|
|
2364
2366
|
|
|
2365
2367
|
.ft-search-bar--desktop-menu [data-filters-count="3"] ft-filter {
|
|
2366
|
-
max-width: max(250px, calc(33% - 2 * ${
|
|
2368
|
+
max-width: max(250px, calc(33% - 2 * ${rt.gap} / 3));
|
|
2367
2369
|
}
|
|
2368
2370
|
|
|
2369
2371
|
.ft-search-bar--desktop-menu [data-filters-count="4"] ft-filter {
|
|
2370
|
-
max-width: max(250px, calc(25% - 3 * ${
|
|
2372
|
+
max-width: max(250px, calc(25% - 3 * ${rt.gap} / 4));
|
|
2371
2373
|
}
|
|
2372
2374
|
|
|
2373
2375
|
.ft-search-bar--hierarchical-filter {
|
|
@@ -2445,15 +2447,15 @@
|
|
|
2445
2447
|
margin: 0;
|
|
2446
2448
|
}
|
|
2447
2449
|
`});var jb,qb,Zr,mu=l(()=>{"use strict";jb=c(y()),qb=c(f());Sa();Zr=class extends qb.FtLitElement{render(){return jb.html`
|
|
2448
|
-
`}};Zr.elementDefinitions={};Zr.styles=Vb});var Kb=l(()=>{"use strict"});var Wb,Gb=l(()=>{"use strict";mu();Wb={"ft-skeleton":Zr}});var Qb,Xb=l(()=>{"use strict";Qb=c(f());Gb();(0,Qb.customElements)(Wb)});var Yb=l(()=>{"use strict";mu();Sa();Kb();Xb()});var
|
|
2450
|
+
`}};Zr.elementDefinitions={};Zr.styles=Vb});var Kb=l(()=>{"use strict"});var Wb,Gb=l(()=>{"use strict";mu();Wb={"ft-skeleton":Zr}});var Qb,Xb=l(()=>{"use strict";Qb=c(f());Gb();(0,Qb.customElements)(Wb)});var Yb=l(()=>{"use strict";mu();Sa();Kb();Xb()});var yr,gu,Eo,br,Ca=l(()=>{"use strict";yr=c(y()),gu=c(kr());Rr();Eo=c(f());Ea();Xe();br=class{constructor(e,r=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new Eo.Debouncer(r)}render(){let e=this.recentSearchesMatchingQuery;return yr.html`
|
|
2449
2451
|
<div class="ft-search-bar--suggestions ft-word-wrap ${this.shouldDisplaySuggestions?"ft-search-bar--suggestions-not-empty":""}"
|
|
2450
2452
|
id="${this.listboxId}"
|
|
2451
2453
|
role="listbox"
|
|
2452
2454
|
aria-label="${this.searchBar.labelResolver.resolve("suggestionsAriaLabel")}"
|
|
2453
2455
|
part="suggestions-container">
|
|
2454
|
-
${(0,gu.repeat)(e.slice(0,5),r=>r,(r,i)=>
|
|
2456
|
+
${(0,gu.repeat)(e.slice(0,5),r=>r,(r,i)=>yr.html`
|
|
2455
2457
|
<div part="suggestion-container"
|
|
2456
|
-
class="${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)?"ft-search-bar--suggestions-selected":
|
|
2458
|
+
class="${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)?"ft-search-bar--suggestions-selected":yr.nothing}">
|
|
2457
2459
|
<a href="${this.getRequestWithQuery(r)}"
|
|
2458
2460
|
part="suggestions"
|
|
2459
2461
|
class="ft-search-bar--suggestion ft-search-bar--recent-search"
|
|
@@ -2480,9 +2482,9 @@
|
|
|
2480
2482
|
</ft-button>
|
|
2481
2483
|
</div>
|
|
2482
2484
|
`)}
|
|
2483
|
-
${(0,gu.repeat)(this.searchBar.suggestions,r=>r.value,(r,i)=>
|
|
2485
|
+
${(0,gu.repeat)(this.searchBar.suggestions,r=>r.value,(r,i)=>yr.html`
|
|
2484
2486
|
<div part="suggestion-container"
|
|
2485
|
-
class="${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)?"ft-search-bar--suggestions-selected":
|
|
2487
|
+
class="${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)?"ft-search-bar--suggestions-selected":yr.nothing}">
|
|
2486
2488
|
<a href="${this.getRequestWithQuery(r.value)}"
|
|
2487
2489
|
part="suggestions"
|
|
2488
2490
|
class="ft-search-bar--suggestion"
|
|
@@ -2498,9 +2500,9 @@
|
|
|
2498
2500
|
</div>
|
|
2499
2501
|
`)}
|
|
2500
2502
|
</div>
|
|
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"?
|
|
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"?et.file_format:et.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?we.BOOK:we.ARTICLE;break;case"DOCUMENT":i=qn(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 yr.html`
|
|
2502
2504
|
<ft-icon .variant=${r} .value=${i} part="suggestion-icon"></ft-icon>
|
|
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()))}};
|
|
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()))}};br.styles=[Eo.wordWrap,yr.css`
|
|
2504
2506
|
.ft-search-bar--mobile .ft-search-bar--suggestions {
|
|
2505
2507
|
flex-grow: 1;
|
|
2506
2508
|
flex-shrink: 1;
|
|
@@ -2590,8 +2592,8 @@
|
|
|
2590
2592
|
ft-ripple {
|
|
2591
2593
|
${(0,Eo.setVariable)(V.opacityContentOnSurfaceHover,V.opacityContentOnSurfaceSelected)}
|
|
2592
2594
|
}
|
|
2593
|
-
`]});var
|
|
2594
|
-
${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?
|
|
2595
|
+
`]});var it,yu,Aa,vr,wa=l(()=>{"use strict";it=c(y()),yu=c(kr());Nc();Aa=c(f());ha();nu();vr=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
|
+
${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?it.html`
|
|
2595
2597
|
<ft-chip part="selected-filters selected-filter-ft-locale"
|
|
2596
2598
|
?dense=${this.searchBar.dense&&!e}
|
|
2597
2599
|
?clickable=${e}
|
|
@@ -2601,46 +2603,46 @@
|
|
|
2601
2603
|
${this.getLocaleLabel(this.searchBar.contentLocale)}
|
|
2602
2604
|
</ft-chip>
|
|
2603
2605
|
`:null}
|
|
2604
|
-
${(0,yu.repeat)(this.searchBar.facets,s=>s.key,s=>{let o=Kg(s);return(0,yu.repeat)(o,n=>{let a=s.label+": "+Hg(n),u=s.key.replace(":","-"),d=
|
|
2606
|
+
${(0,yu.repeat)(this.searchBar.facets,s=>s.key,s=>{let o=Kg(s);return(0,yu.repeat)(o,n=>{let a=s.label+": "+Hg(n),u=s.key.replace(":","-"),d=it.html`
|
|
2605
2607
|
<ft-chip
|
|
2606
2608
|
part="selected-filters selected-filter-${u}"
|
|
2607
2609
|
?dense=${this.searchBar.dense&&!e}
|
|
2608
2610
|
?clickable=${e}
|
|
2609
2611
|
?removable=${!e}
|
|
2610
|
-
icon="${e?
|
|
2612
|
+
icon="${e?it.nothing:"close"}"
|
|
2611
2613
|
label="${a}"
|
|
2612
|
-
title="${r?a:
|
|
2614
|
+
title="${r?a:it.nothing}"
|
|
2613
2615
|
@click=${()=>this.openMobileFilters(s.key)}
|
|
2614
2616
|
@icon-click=${()=>this.searchBar.setFilter(s.key,o.filter(p=>p!==n))}
|
|
2615
2617
|
data-key="${s.key}"
|
|
2616
2618
|
data-value="${n}">
|
|
2617
2619
|
${zg(n)}
|
|
2618
2620
|
</ft-chip>
|
|
2619
|
-
`;return r?d:
|
|
2621
|
+
`;return r?d:it.html`
|
|
2620
2622
|
<ft-tooltip inline text="${a}">
|
|
2621
2623
|
${d}
|
|
2622
2624
|
</ft-tooltip>
|
|
2623
2625
|
`})})}
|
|
2624
|
-
${e?
|
|
2626
|
+
${e?it.html`
|
|
2625
2627
|
<ft-chip part="selected-filters mobile-filters-opener"
|
|
2626
2628
|
icon="plus"
|
|
2627
2629
|
clickable
|
|
2628
2630
|
@click=${()=>{this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0}}>
|
|
2629
2631
|
${this.searchBar.labelResolver.resolve("filtersButton")}
|
|
2630
2632
|
</ft-chip>
|
|
2631
|
-
`:
|
|
2632
|
-
`;return r?
|
|
2633
|
+
`:it.nothing}
|
|
2634
|
+
`;return r?it.html`
|
|
2633
2635
|
<ft-snap-scroll horizontal controls hideScrollbar limitSize
|
|
2634
2636
|
class="ft-search-bar--selected-filters"
|
|
2635
2637
|
part="selected-filters-container"
|
|
2636
2638
|
exportpartsPrefix="selected-filters-container">
|
|
2637
2639
|
${i}
|
|
2638
2640
|
</ft-snap-scroll>
|
|
2639
|
-
`:
|
|
2641
|
+
`:it.html`
|
|
2640
2642
|
<div class="ft-search-bar--selected-filters" part="selected-filters-container">
|
|
2641
2643
|
${i}
|
|
2642
2644
|
</div>
|
|
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 s;return((s=i.lang)!==null&&s!==void 0?s:"").toLowerCase()===(e??"").toLowerCase()}).map(i=>i.label).pop())!==null&&r!==void 0?r:e}};
|
|
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 s;return((s=i.lang)!==null&&s!==void 0?s:"").toLowerCase()===(e??"").toLowerCase()}).map(i=>i.label).pop())!==null&&r!==void 0?r:e}};vr.styles=it.css`
|
|
2644
2646
|
.ft-search-bar--selected-filters:not(ft-snap-scroll) {
|
|
2645
2647
|
flex-shrink: 0;
|
|
2646
2648
|
display: flex;
|
|
@@ -2651,7 +2653,7 @@
|
|
|
2651
2653
|
|
|
2652
2654
|
ft-snap-scroll.ft-search-bar--selected-filters {
|
|
2653
2655
|
overflow: hidden;
|
|
2654
|
-
${(0,Aa.setVariable)(
|
|
2656
|
+
${(0,Aa.setVariable)(rt.gap,"4px")};
|
|
2655
2657
|
}
|
|
2656
2658
|
|
|
2657
2659
|
ft-snap-scroll.ft-search-bar--selected-filters::part(content) {
|
|
@@ -2670,7 +2672,7 @@
|
|
|
2670
2672
|
.ft-search-bar--selected-filters ft-chip {
|
|
2671
2673
|
flex-grow: 0;
|
|
2672
2674
|
}
|
|
2673
|
-
`});var
|
|
2675
|
+
`});var tr,Zb,Jb,OE,Co,ev=l(()=>{"use strict";tr=c(y());wa();Ca();Zb=c(st()),Jb=c(f()),OE=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},Co=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new vr(e),this.suggestManager=i??new br(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 tr.html`
|
|
2674
2676
|
<div class="${(0,Zb.classMap)(r)}" part="container" tabindex="-1">
|
|
2675
2677
|
<div class="ft-search-bar" role="search">
|
|
2676
2678
|
<div class="ft-search-bar--input-container" part="input-container">
|
|
@@ -2680,7 +2682,7 @@
|
|
|
2680
2682
|
aria-autocomplete="list"
|
|
2681
2683
|
aria-controls="${this.suggestManager.listboxId}"
|
|
2682
2684
|
aria-expanded="${this.searchBar.displaySuggestListbox}"
|
|
2683
|
-
aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:
|
|
2685
|
+
aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:tr.nothing}"
|
|
2684
2686
|
part="input"
|
|
2685
2687
|
type="search"
|
|
2686
2688
|
placeholder="${this.searchBar.labelResolver.resolve("inputPlaceHolder")}"
|
|
@@ -2694,7 +2696,7 @@
|
|
|
2694
2696
|
</div>
|
|
2695
2697
|
${this.searchBar.displayFacets?this.searchBar.renderFacetsActions():this.selectedFacetsManager.render()}
|
|
2696
2698
|
${this.searchBar.displayFacets?this.searchBar.renderMobileFacets():this.suggestManager.render()}
|
|
2697
|
-
${this.searchBar.isMobileMenuOpen()||this.searchBar.displayFacets?
|
|
2699
|
+
${this.searchBar.isMobileMenuOpen()||this.searchBar.displayFacets?tr.html`
|
|
2698
2700
|
<ft-button class="ft-search-bar--launch-search"
|
|
2699
2701
|
href="${this.searchBar.searchRequestSerializer(this.searchBar.request)}"
|
|
2700
2702
|
part="launch-search-in-panel"
|
|
@@ -2702,11 +2704,11 @@
|
|
|
2702
2704
|
@click=${()=>this.searchBar.onLaunchSearch()}>
|
|
2703
2705
|
${this.searchBar.labelResolver.resolve("searchButton")}
|
|
2704
2706
|
</ft-button>
|
|
2705
|
-
`:
|
|
2707
|
+
`:tr.nothing}
|
|
2706
2708
|
</div>
|
|
2707
|
-
`}renderMobileSearchBarButtons(){let e=this.searchBar.query||this.searchBar.isMobileMenuOpen()&&!this.searchBar.forceMobileMenuOpen;return
|
|
2709
|
+
`}renderMobileSearchBarButtons(){let e=this.searchBar.query||this.searchBar.isMobileMenuOpen()&&!this.searchBar.forceMobileMenuOpen;return tr.html`
|
|
2708
2710
|
<div class="ft-search-bar--actions" part="search-bar-actions">
|
|
2709
|
-
${e?
|
|
2711
|
+
${e?tr.html`
|
|
2710
2712
|
<ft-button class="ft-search-bar--clear-query"
|
|
2711
2713
|
part="clear-query"
|
|
2712
2714
|
icon="close"
|
|
@@ -2716,7 +2718,7 @@
|
|
|
2716
2718
|
@click=${async()=>{this.searchBar.setQuery(""),this.searchBar.mobileMenuOpen=!1,this.searchBar.displayFacets=!1}}
|
|
2717
2719
|
></ft-button>
|
|
2718
2720
|
<div class="ft-search-bar--separator"></div>
|
|
2719
|
-
`:
|
|
2721
|
+
`:tr.nothing}
|
|
2720
2722
|
<ft-button class="ft-search-bar--launch-search"
|
|
2721
2723
|
href="${this.searchBar.isMobileMenuOpen()?this.searchBar.searchRequestSerializer(this.searchBar.request):""}"
|
|
2722
2724
|
part="launch-search-in-bar"
|
|
@@ -2727,21 +2729,21 @@
|
|
|
2727
2729
|
@click=${()=>{var r;return this.searchBar.isMobileMenuOpen()?this.searchBar.onLaunchSearch():(r=this.searchBar.input)===null||r===void 0?void 0:r.focus()}}
|
|
2728
2730
|
></ft-button>
|
|
2729
2731
|
</div>
|
|
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}};Co.styles=
|
|
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}};Co.styles=tr.css`
|
|
2731
2733
|
|
|
2732
|
-
`;OE([(0,Jb.ignoreComposingEvents)()],Co.prototype,"onSearchBarKeyDown",null)});var
|
|
2734
|
+
`;OE([(0,Jb.ignoreComposingEvents)()],Co.prototype,"onSearchBarKeyDown",null)});var ot,tv,rv,iv,_E,Ao,ov=l(()=>{"use strict";ot=c(y()),tv=c(kr());wa();Ca();rv=c(st()),iv=c(f()),_E=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},Ao=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new vr(e),this.suggestManager=i??new br(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 ot.html`
|
|
2733
2735
|
<div class="${(0,rv.classMap)(r)}" part="container" tabindex="-1">
|
|
2734
2736
|
<div class="ft-search-bar" part="search-bar" role="search">
|
|
2735
2737
|
${this.renderSearchBarLeftAction()}
|
|
2736
2738
|
<div class="ft-search-bar--input-container" part="input-container" tabindex="-1">
|
|
2737
2739
|
<div class="ft-search-bar--input-outline" part="input-outline">
|
|
2738
|
-
${this.searchBar.dense?this.selectedFacetsManager.render():
|
|
2740
|
+
${this.searchBar.dense?this.selectedFacetsManager.render():ot.nothing}
|
|
2739
2741
|
<input class="ft-search-bar--input ft-typography--body2"
|
|
2740
2742
|
role="combobox"
|
|
2741
2743
|
aria-autocomplete="list"
|
|
2742
2744
|
aria-controls="${this.suggestManager.listboxId}"
|
|
2743
2745
|
aria-expanded="${this.searchBar.displaySuggestListbox}"
|
|
2744
|
-
aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:
|
|
2746
|
+
aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:ot.nothing}"
|
|
2745
2747
|
part="input"
|
|
2746
2748
|
type="search"
|
|
2747
2749
|
placeholder="${this.searchBar.labelResolver.resolve("inputPlaceHolder")}"
|
|
@@ -2756,9 +2758,9 @@
|
|
|
2756
2758
|
${this.renderDesktopSearchBarButtons()}
|
|
2757
2759
|
${this.searchBar.renderDesktopFloatingMenu()}
|
|
2758
2760
|
</div>
|
|
2759
|
-
${this.searchBar.dense?
|
|
2761
|
+
${this.searchBar.dense?ot.nothing:this.searchBar.forceMenuOpen?this.searchBar.renderDesktopMenu():this.selectedFacetsManager.render()}
|
|
2760
2762
|
</div>
|
|
2761
|
-
`}renderSearchBarLeftAction(){return this.searchBar.hasFacets()?this.searchBar.forceMenuOpen?
|
|
2763
|
+
`}renderSearchBarLeftAction(){return this.searchBar.hasFacets()?this.searchBar.forceMenuOpen?ot.nothing:ot.html`
|
|
2762
2764
|
<ft-button class="ft-search-bar--filters-opener ft-search-bar--left-action"
|
|
2763
2765
|
part="filters-opener"
|
|
2764
2766
|
trailingIcon
|
|
@@ -2770,30 +2772,30 @@
|
|
|
2770
2772
|
>
|
|
2771
2773
|
${this.searchBar.labelResolver.resolve("filtersButton")}
|
|
2772
2774
|
</ft-button>
|
|
2773
|
-
`:this.searchBar.hasLocaleSelector()?
|
|
2775
|
+
`:this.searchBar.hasLocaleSelector()?ot.html`
|
|
2774
2776
|
<ft-select outlined
|
|
2775
2777
|
class="ft-search-bar--content-locale ft-search-bar--left-action"
|
|
2776
2778
|
part="content-locale select-ft-locale"
|
|
2777
2779
|
ariaLabel="${this.searchBar.labelResolver.resolve("selectLocale")}"
|
|
2778
2780
|
.exportpartsPrefixes=${["content-locale","select-ft-locale"]}
|
|
2779
2781
|
@change=${e=>this.searchBar.contentLocale=e.detail==null?void 0:e.detail}>
|
|
2780
|
-
${(0,tv.repeat)(this.searchBar.availableContentLocales,e=>e.lang,e=>
|
|
2782
|
+
${(0,tv.repeat)(this.searchBar.availableContentLocales,e=>e.lang,e=>ot.html`
|
|
2781
2783
|
<ft-select-option .value=${e.lang}
|
|
2782
2784
|
label="${e.label}"
|
|
2783
2785
|
?selected=${e.lang==this.searchBar.contentLocale}>
|
|
2784
2786
|
</ft-select-option>
|
|
2785
2787
|
`)}
|
|
2786
2788
|
</ft-select>
|
|
2787
|
-
`:
|
|
2789
|
+
`:ot.nothing}renderDesktopSearchBarButtons(){return ot.html`
|
|
2788
2790
|
<div class="ft-search-bar--actions"
|
|
2789
2791
|
part="search-bar-actions">
|
|
2790
|
-
${this.searchBar.query?
|
|
2792
|
+
${this.searchBar.query?ot.html`
|
|
2791
2793
|
<ft-button class="ft-search-bar--clear-query"
|
|
2792
2794
|
part="clear-query"
|
|
2793
2795
|
icon="close"
|
|
2794
2796
|
round dense
|
|
2795
2797
|
label="${this.searchBar.labelResolver.resolve("clearInputButton")}"
|
|
2796
|
-
@click=${async()=>{this.searchBar.setQuery(""),
|
|
2798
|
+
@click=${async()=>{this.searchBar.setQuery(""),this.searchBar.focusInput()}}
|
|
2797
2799
|
></ft-button>
|
|
2798
2800
|
<div class="ft-search-bar--separator"></div>
|
|
2799
2801
|
`:null}
|
|
@@ -2806,9 +2808,9 @@
|
|
|
2806
2808
|
@click=${()=>this.searchBar.onLaunchSearch()}
|
|
2807
2809
|
></ft-button>
|
|
2808
2810
|
</div>
|
|
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)}};Ao.styles=
|
|
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)}};Ao.styles=ot.css`
|
|
2810
2812
|
|
|
2811
|
-
`;_E([(0,iv.ignoreComposingEvents)()],Ao.prototype,"onSearchBarKeyDown",null)});var G,H,
|
|
2813
|
+
`;_E([(0,iv.ignoreComposingEvents)()],Ao.prototype,"onSearchBarKeyDown",null)});var G,H,_s,ie,U,sv,bu,RE,T,vu=l(()=>{"use strict";G=c(y()),H=c(F()),_s=c(kr()),ie=c(f());Vg();ve();Nc();Uy();Rr();tb();Xt();nu();Bb();ha();nc();Xe();Ea();Yb();Ca();wa();ev();ov();Kc();Kt();U=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};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");sv={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},bu=class extends CustomEvent{constructor(e){super("change",{detail:e})}},RE=()=>{},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(sv,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new ie.SearchPlaceConverter(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=Nt.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.reactToFocus=!0,this.displaySuggestListbox=!1,this.selectedSuggestRemoveRecent=!1,this.suggestManager=new br(this),this.selectedFacetsManager=new vr(this),this.desktopSearchBarManager=new Ao(this),this.mobileSearchBarManager=new Co(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(s=>s===this||s===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.compareUnknownFilters=(e,r)=>e.valueFilter&&r.valueFilter?this.compareValueFilters(e.valueFilter,r.valueFilter):e.dateFilter&&r.dateFilter?this.compareDateFilters(e.dateFilter,r.dateFilter):e.rangeFilter&&r.rangeFilter?this.compareRangeFilters(e.rangeFilter,r.rangeFilter):!1,this.compareValueFilters=(e,r)=>e.negative==r.negative&&e.values.length===r.values.length&&e.values.every(i=>r.values.includes(i)),this.compareDateFilters=(e,r)=>e.type===r.type,this.compareRangeFilters=(e,r)=>e.from===r.from&&e.to===r.to,this.compareFilters=(e,r)=>e.key===r.key&&this.compareUnknownFilters(e,r),this.compareRequests=(e,r)=>(e.contentLocale==null||r.contentLocale==null||e.contentLocale===r.contentLocale)&&e.metadataFilters.length===r.metadataFilters.length&&e.metadataFilters.every(i=>r.metadataFilters.some(s=>this.compareFilters(i,s)))}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,metadataFilters:this.metadataFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){let e=this.metadataFilters.filter(r=>{var i,s;return((s=(i=r.valueFilter)===null||i===void 0?void 0:i.values.length)!==null&&s!==void 0?s:0)>0&&!this.displayedFilters.includes(r.key)}).map(r=>({id:r.key}));return[...this.displayedFilters.map(r=>({id:r})),...e]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,metadataFilters:this.metadataFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===Nt.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var e;(e=this.container)===null||e===void 0||e.focus()}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 G.html`
|
|
2812
2814
|
<ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
|
|
2813
2815
|
<div class="sr-only" aria-live="polite" aria-atomic="true">
|
|
2814
2816
|
${this.renderLiveText()}
|
|
@@ -2836,7 +2838,7 @@
|
|
|
2836
2838
|
</div>
|
|
2837
2839
|
</ft-accordion-item>
|
|
2838
2840
|
`:null}
|
|
2839
|
-
${(0,
|
|
2841
|
+
${(0,_s.repeat)(this.facets,r=>r.key,r=>{let i=Mc(r),s=r.key.replace(":","-"),o=qg(i);return r.rootNodes.length>0?G.html`
|
|
2840
2842
|
<ft-accordion-item data-facet-key="${r.key}">
|
|
2841
2843
|
<div class="ft-search-bar--filter-label" slot="toggle">
|
|
2842
2844
|
<ft-typography variant="button">${r.label}</ft-typography>
|
|
@@ -2866,7 +2868,7 @@
|
|
|
2866
2868
|
`}getContentLocaleRadioGroup(){var e;return G.html`
|
|
2867
2869
|
<ft-radio-group aria-labelledby="content_locale_radio_group_label"
|
|
2868
2870
|
@change=${r=>{this.contentLocale=r.detail==="all"?void 0:r.detail,this.clearFilters()}}>
|
|
2869
|
-
${(0,
|
|
2871
|
+
${(0,_s.repeat)((e=this.availableContentLocales)!==null&&e!==void 0?e:[],r=>r.lang,r=>{var i;return G.html`
|
|
2870
2872
|
<ft-radio value="${(i=r.lang)!==null&&i!==void 0?i:"all"}"
|
|
2871
2873
|
?checked=${r.lang==this.contentLocale}>
|
|
2872
2874
|
${r.label}
|
|
@@ -2897,7 +2899,7 @@
|
|
|
2897
2899
|
label="${this.labelResolver.resolve("presetsSelector")}"
|
|
2898
2900
|
outlined
|
|
2899
2901
|
@change=${r=>this.selectedPreset=r.detail}>
|
|
2900
|
-
${(0,
|
|
2902
|
+
${(0,_s.repeat)((e=this.presets)!==null&&e!==void 0?e:[],r=>r.name,r=>G.html`
|
|
2901
2903
|
<ft-select-option value="${r.name}"
|
|
2902
2904
|
label="${r.name}"
|
|
2903
2905
|
?selected=${r.name===this.selectedPreset}>
|
|
@@ -2929,7 +2931,7 @@
|
|
|
2929
2931
|
${this.getContentLocaleRadioGroup()}
|
|
2930
2932
|
</div>
|
|
2931
2933
|
`:G.nothing}
|
|
2932
|
-
${(0,
|
|
2934
|
+
${(0,_s.repeat)(this.facets,e=>e.key,e=>{let r=Mc(e),i=r.options.some(o=>{var n,a;return((a=(n=o.subOptions)===null||n===void 0?void 0:n.length)!==null&&a!==void 0?a:0)>0}),s=e.key.replace(":","-");return G.html`
|
|
2933
2935
|
<ft-filter
|
|
2934
2936
|
class="${i?"ft-search-bar--hierarchical-filter":""}"
|
|
2935
2937
|
part="filters filter filter-${s}"
|
|
@@ -2948,28 +2950,28 @@
|
|
|
2948
2950
|
></ft-filter>
|
|
2949
2951
|
`})}
|
|
2950
2952
|
</ft-snap-scroll>
|
|
2951
|
-
`:G.nothing}firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",r=>{r.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var r,i,s,o,n;if(e.has("labels")&&(this.labelResolver=new ie.ParametrizedLabelResolver(sv,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")&&((s=this.presets)!==null&&s!==void 0?s:[]).forEach(a=>a.metadataFilters.forEach(u=>{u.valueFilter&&(u.valueFilter.values=u.valueFilter.values.map(d=>ca(d)))})),e.has("presets")||e.has("selectedPreset")){let a=((o=this.presets)!==null&&o!==void 0?o:[]).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 bu(this.request)))}updateFacets(){this.facetsRequest.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run(async()=>{await this.retrieveFacetsFromSearch(),this.facetsLoaded=!0,this.facetsInitialized=!0},this.facetsInitialized?500:10)):(this.facets=[],this.facetsLoaded=!0,this.facetsInitialized=!0)}contentAvailableCallback(e){var r,i,s;if(super.contentAvailableCallback(e),e.has("displayFacets")&&this.displayFacets&&((r=this.floatingContainer)===null||r===void 0||r.focus()),this.scrollToFacet!=null&&this.facetsLoaded){(i=this.scrollingFiltersContainer)===null||i===void 0||i.scrollIndexIntoView(this.facets.findIndex(n=>n.key===this.scrollToFacet));let o=(s=this.shadowRoot)===null||s===void 0?void 0:s.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);o&&(o.active=!0),this.scrollToFacet=void 0}}initApi(){this.api==null&&(this.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier,!0):void 0,setTimeout(()=>this.initApi(),10))}async retrieveFacetsFromSearch(){var e;if(this.facetsRequest.length==0){this.facets=[];return}let r=new Map;await((e=this.api)===null||e===void 0?void 0:e.search({...this.request,query:""}).then(i=>i.facets.forEach(s=>{this.knownFacetLabels.set(s.key,s.label),r.set(s.key,s)})).catch(RE)),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),
|
|
2953
|
+
`:G.nothing}firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",r=>{r.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var r,i,s,o,n;if(e.has("labels")&&(this.labelResolver=new ie.ParametrizedLabelResolver(sv,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")&&((s=this.presets)!==null&&s!==void 0?s:[]).forEach(a=>a.metadataFilters.forEach(u=>{u.valueFilter&&(u.valueFilter.values=u.valueFilter.values.map(d=>ca(d)))})),e.has("presets")||e.has("selectedPreset")){let a=((o=this.presets)!==null&&o!==void 0?o:[]).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 bu(this.request)))}updateFacets(){this.facetsRequest.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run(async()=>{await this.retrieveFacetsFromSearch(),this.facetsLoaded=!0,this.facetsInitialized=!0},this.facetsInitialized?500:10)):(this.facets=[],this.facetsLoaded=!0,this.facetsInitialized=!0)}contentAvailableCallback(e){var r,i,s;if(super.contentAvailableCallback(e),e.has("displayFacets")&&this.displayFacets&&((r=this.floatingContainer)===null||r===void 0||r.focus()),this.scrollToFacet!=null&&this.facetsLoaded){(i=this.scrollingFiltersContainer)===null||i===void 0||i.scrollIndexIntoView(this.facets.findIndex(n=>n.key===this.scrollToFacet));let o=(s=this.shadowRoot)===null||s===void 0?void 0:s.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);o&&(o.active=!0),this.scrollToFacet=void 0}}initApi(){this.api==null&&(this.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier,!0):void 0,setTimeout(()=>this.initApi(),10))}async retrieveFacetsFromSearch(){var e;if(this.facetsRequest.length==0){this.facets=[];return}let r=new Map;await((e=this.api)===null||e===void 0?void 0:e.search({...this.request,query:""}).then(i=>i.facets.forEach(s=>{this.knownFacetLabels.set(s.key,s.label),r.set(s.key,s)})).catch(RE)),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(s=>!s.valueFilter||s.key!==e);this.facets.forEach(s=>{s.key===e&&(0,ie.flatDeep)(s.rootNodes,o=>o.childNodes).forEach(o=>o.selected=r.includes(o.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?G.nothing:G.html`
|
|
2952
2954
|
<div class="ft-search-bar--floating-panel"
|
|
2953
2955
|
id="ft-search-bar-floating-panel"
|
|
2954
2956
|
@keyup=${this.onFloatingContainerKeyUp}
|
|
2955
2957
|
part="floating-panel"
|
|
2956
2958
|
tabindex="-1">
|
|
2957
2959
|
${this.renderDesktopMenu()}
|
|
2958
|
-
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};T.elementDefinitions={"ft-accordion":
|
|
2960
|
+
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};T.elementDefinitions={"ft-accordion":gr,"ft-accordion-item":Bt,"ft-button":w,"ft-chip":he,"ft-filter":K,"ft-filter-option":At,"ft-icon":le,"ft-ripple":L,"ft-select":ae,"ft-select-option":Qe,"ft-size-watcher":vt,"ft-skeleton":Zr,"ft-snap-scroll":Oe,"ft-tooltip":xe,"ft-typography":z,"ft-radio-group":St,"ft-radio":Ie};T.styles=[Pr,ie.noTextInputDefaultClearButton,zb,Hb,vr.styles,br.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 nv=l(()=>{"use strict"});var av,lv=l(()=>{"use strict";vu();av={"ft-search-bar":T}});var cv,uv=l(()=>{"use strict";cv=c(f());lv();(0,cv.customElements)(av)});var dv=l(()=>{"use strict";vu();Ea();nv();uv()});var pv,hv,fv,mv=l(()=>{"use strict";pv=c(y());cs();hv=c(f());Xe();dv();fv=pv.css`
|
|
2959
2961
|
* {
|
|
2960
2962
|
box-sizing: border-box;
|
|
2961
2963
|
}
|
|
2962
2964
|
|
|
2963
2965
|
.ft-search-input-suggestion {
|
|
2964
2966
|
position: absolute;
|
|
2965
|
-
z-index: ${
|
|
2967
|
+
z-index: ${se.floatingZIndex};
|
|
2966
2968
|
top: calc(100% + 2px);
|
|
2967
2969
|
left: -1px;
|
|
2968
2970
|
right: -1px;
|
|
2969
|
-
background: ${
|
|
2970
|
-
border: 1px solid ${
|
|
2971
|
-
border-radius: 0 0 ${
|
|
2972
|
-
box-shadow: ${
|
|
2971
|
+
background: ${se.colorSurface};
|
|
2972
|
+
border: 1px solid ${se.colorOutline};
|
|
2973
|
+
border-radius: 0 0 ${se.borderRadius} ${se.borderRadius};
|
|
2974
|
+
box-shadow: ${se.elevation02};
|
|
2973
2975
|
}
|
|
2974
2976
|
|
|
2975
2977
|
.ft-search-input-suggestion--container {
|
|
@@ -2991,7 +2993,7 @@
|
|
|
2991
2993
|
padding: 8px;
|
|
2992
2994
|
gap: 8px;
|
|
2993
2995
|
cursor: pointer;
|
|
2994
|
-
color: ${
|
|
2996
|
+
color: ${se.colorOnSurface};
|
|
2995
2997
|
min-height: 44px;
|
|
2996
2998
|
flex-grow: 1;
|
|
2997
2999
|
}
|
|
@@ -3009,16 +3011,16 @@
|
|
|
3009
3011
|
ft-ripple {
|
|
3010
3012
|
${(0,hv.setVariable)(V.opacityContentOnSurfaceHover,V.opacityContentOnSurfaceSelected)}
|
|
3011
3013
|
}
|
|
3012
|
-
`});var gv,Vi,xu,Jr,yv=l(()=>{"use strict";gv=c(f()),Vi=c(y());mv();xu=c(
|
|
3014
|
+
`});var gv,Vi,xu,Jr,yv=l(()=>{"use strict";gv=c(f()),Vi=c(y());mv();xu=c(kr());Rr();Xe();ve();Kt();kc();Xt();Jr=class{constructor(e){this.ftSearchInput=e,this.listboxId="ft-search-input-suggestion"}render(){var e;let r=Or.get(),{recentQuerySuggestions:i}=this.ftSearchInput;return Vi.html`
|
|
3013
3015
|
<div class="ft-search-input-suggestion ft-word-wrap"
|
|
3014
3016
|
id="${this.listboxId}"
|
|
3015
3017
|
role="listbox"
|
|
3016
|
-
aria-label="${
|
|
3018
|
+
aria-label="${Tr.messages.suggestionsLabel()}"
|
|
3017
3019
|
part="container">
|
|
3018
3020
|
${(0,xu.repeat)(i,s=>s,(s,o)=>this.renderRecentQuery(o,s,r))}
|
|
3019
3021
|
${(0,xu.repeat)((e=this.ftSearchInput.suggestResults)!==null&&e!==void 0?e:[],s=>s.value,(s,o)=>this.renderSuggestion(i.length+o,s,r))}
|
|
3020
3022
|
</div>
|
|
3021
|
-
`}renderRecentQuery(e,r,i){return this.renderOption(e,r,"history",
|
|
3023
|
+
`}renderRecentQuery(e,r,i){return this.renderOption(e,r,"history",et.material,!0,i)}renderSuggestion(e,r,i){let s=r.type==="DOCUMENT"?et.file_format:et.fluid_topics,o;switch(r.type){case"MAP":o=r.editorialType==="BOOK"?we.BOOK:we.ARTICLE;break;case"DOCUMENT":o=qn(r.mimeType,r.filenameExtension);break;case"TOPIC":o=we.TOPICS;break;case"HTML_PACKAGE":o=we.BOX_CODE;break;case"HTML_PACKAGE_PAGE":o=we.FILE_CODE;break}return this.renderOption(e,r.value,o,s,!1,i)}renderOption(e,r,i,s,o,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):Vi.nothing;return Vi.html`
|
|
3022
3024
|
<div part="suggestion-container"
|
|
3023
3025
|
class="ft-search-input-suggestion--container">
|
|
3024
3026
|
<a href="${d}"
|
|
@@ -3040,7 +3042,7 @@
|
|
|
3040
3042
|
part="remove-suggestion"
|
|
3041
3043
|
class="ft-search-input-suggestion--remove"
|
|
3042
3044
|
id="remove-suggestion-${e}"
|
|
3043
|
-
label="${
|
|
3045
|
+
label="${Tr.messages.removeRecentQuery(r)}"
|
|
3044
3046
|
tooltipPosition="left"
|
|
3045
3047
|
tabindex="-1"
|
|
3046
3048
|
?activated=${a&&u}
|
|
@@ -3048,14 +3050,14 @@
|
|
|
3048
3050
|
</ft-button>
|
|
3049
3051
|
`:Vi.nothing}
|
|
3050
3052
|
</div>
|
|
3051
|
-
`}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()}};Jr.elementDefinitions={"ft-ripple":L,"ft-typography":z,"ft-icon":
|
|
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()}};Jr.elementDefinitions={"ft-ripple":L,"ft-typography":z,"ft-icon":le,"ft-button":w};Jr.styles=[gv.wordWrap,fv]});function kE(t){let e=t.liveQuery.trim().toLowerCase();return t.recentQueries.filter(r=>r.toLowerCase().includes(e)).slice(0,TE)}var wo,ft,wt,bv,Ve,TE,fe,Su=l(()=>{"use strict";wo=c(y()),ft=c(f());cs();$i();It();kc();wt=c(F()),bv=c(st());yv();Xt();ve();Kt();Vn();Ve=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},TE=5;fe=class extends ct(Mt){constructor(){super(),this.liveQuery="",this.recentQuerySuggestions=[],this.forceCloseSuggestion=!1,this.displaySuggestListbox=!1,this.selectedSuggestOptionRemove=!1,this.useCustomSearchPath=!1,this.triggerSearchOnClear=!1,this.focusOnDisplay=!1,this.suggestions=new Jr(this),this.showSuggestionsOnFocus=!0,this.onPointerDown=e=>{e.composedPath().some(s=>s===this||s===this.shadowRoot)||this.suggestions.closeBox()},this.addI18nContext(Tr)}render(){var e;let r=this.suggestions.optionsCount()>0,i={"ft-search-input":!0,"ft-search-input--with-suggestions":r,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},s={...this.request,query:this.liveQuery},o=this.useCustomSearchPath?this.launchSearchPath:void 0,n=Or.get().serializeToCurrentPageIfPossible(s,o),a=!this.forceCloseSuggestion&&this.displaySuggestListbox&&r;return wo.html`
|
|
3052
3054
|
<div class="${(0,bv.classMap)(i)}" @focusout=${()=>this.forceCloseSuggestion=!1} role="search">
|
|
3053
3055
|
<div class="ft-search-input--input-container" part="input-container" tabindex="-1">
|
|
3054
3056
|
<div class="ft-search-input--input-outline" part="input-outline">
|
|
3055
3057
|
<input class="ft-search-input--input ft-typography--body2"
|
|
3056
3058
|
part="input"
|
|
3057
3059
|
type="search"
|
|
3058
|
-
placeholder="${this.placeholder?this.placeholder.message:
|
|
3060
|
+
placeholder="${this.placeholder?this.placeholder.message:Tr.messages.placeholder()}"
|
|
3059
3061
|
.value=${this.liveQuery}
|
|
3060
3062
|
role="combobox"
|
|
3061
3063
|
aria-autocomplete="list"
|
|
@@ -3069,7 +3071,7 @@
|
|
|
3069
3071
|
@keyup=${this.onSearchBarKeyUp}>
|
|
3070
3072
|
</div>
|
|
3071
3073
|
<div class="sr-only" aria-live="polite" aria-atomic="true">
|
|
3072
|
-
${a?
|
|
3074
|
+
${a?Tr.messages.ariaLiveSuggestions(this.suggestions.recentQueriesCount(),this.suggestions.suggestionsCount()):""}
|
|
3073
3075
|
</div>
|
|
3074
3076
|
${a?this.suggestions.render():wo.nothing}
|
|
3075
3077
|
</div>
|
|
@@ -3080,7 +3082,7 @@
|
|
|
3080
3082
|
part="clear-query"
|
|
3081
3083
|
icon="close"
|
|
3082
3084
|
round dense
|
|
3083
|
-
label="${
|
|
3085
|
+
label="${Tr.messages.clearButton()}"
|
|
3084
3086
|
@click=${()=>this.onClearInput()}
|
|
3085
3087
|
></ft-button>
|
|
3086
3088
|
<div class="ft-search-input--separator"></div>
|
|
@@ -3089,18 +3091,18 @@
|
|
|
3089
3091
|
part="launch-search-in-input"
|
|
3090
3092
|
icon="search"
|
|
3091
3093
|
round dense
|
|
3092
|
-
label="${
|
|
3094
|
+
label="${Tr.messages.searchButton()}"
|
|
3093
3095
|
href="${this.useCustomSearchPath?n:""}"
|
|
3094
3096
|
@click=${()=>this.launchSearch(this.liveQuery)}
|
|
3095
3097
|
></ft-button>
|
|
3096
3098
|
</div>
|
|
3097
3099
|
</div>
|
|
3098
|
-
`}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}
|
|
3099
|
-
`});var Ov=l(()=>{"use strict"});var Au,_v=l(()=>{"use strict"
|
|
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))}};fe.elementDefinitions={"ft-button":w,...Jr.elementDefinitions};fe.styles=[Pr,ft.noTextInputDefaultClearButton,fc,...Jr.styles,ft.screenReaderStyles];Ve([(0,ft.redux)()],fe.prototype,"request",void 0);Ve([(0,ft.redux)()],fe.prototype,"liveQuery",void 0);Ve([(0,ft.redux)()],fe.prototype,"suggestResults",void 0);Ve([(0,ft.redux)({selector:kE})],fe.prototype,"recentQuerySuggestions",void 0);Ve([(0,wt.state)()],fe.prototype,"forceCloseSuggestion",void 0);Ve([(0,wt.state)()],fe.prototype,"displaySuggestListbox",void 0);Ve([(0,wt.state)()],fe.prototype,"selectedSuggestOptionIndex",void 0);Ve([(0,wt.state)()],fe.prototype,"selectedSuggestOptionRemove",void 0);Ve([(0,wt.property)()],fe.prototype,"launchSearchPath",void 0);Ve([lo()],fe.prototype,"placeholder",void 0);Ve([(0,wt.property)({type:Boolean})],fe.prototype,"useCustomSearchPath",void 0);Ve([(0,wt.property)({type:Boolean})],fe.prototype,"triggerSearchOnClear",void 0);Ve([(0,wt.property)({type:Boolean})],fe.prototype,"focusOnDisplay",void 0);Ve([(0,wt.query)(".ft-search-input--input")],fe.prototype,"input",void 0);Ve([(0,wt.query)('[part="launch-search-in-input"]')],fe.prototype,"launchSearchButton",void 0);Ve([(0,ft.ignoreComposingEvents)()],fe.prototype,"onSearchBarKeyDown",null);Ve([(0,ft.ignoreComposingEvents)()],fe.prototype,"onSearchBarKeyUp",null)});var vv,xv=l(()=>{"use strict";Su();vv={"ft-search-input":fe}});var Sv,Ev=l(()=>{"use strict";Sv=c(f());xv();(0,Sv.customElements)(vv)});var Cv={};ii(Cv,{FtSearchInput:()=>fe,FtSearchInputCssVariables:()=>se,styles:()=>fc});var Av=l(()=>{"use strict";cs();$g();Su();Ev()});var wv,LE,Eu,Cu=l(()=>{"use strict";wv=c(y()),LE={},Eu=wv.css`
|
|
3101
|
+
`});var Ov=l(()=>{"use strict"});var Au,_v=l(()=>{"use strict";It();Au=dr.fromGwt("designedActionBlockAriaLabels")});var Oa,wu,Rv,Lr,Ou=l(()=>{"use strict";Oa=c(y()),wu=c(f());Cu();Xt();$i();It();_v();mo();Rv=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},Lr=class extends ct(Mt){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.neededSearchRequests=[Yt.CLUSTERED_SEARCH],this.addI18nContext(Au)}render(){return this.isLastPage?Oa.nothing:Oa.html`
|
|
3100
3102
|
<ft-button @click=${this.loadMore}>
|
|
3101
3103
|
${Au.messages.searchPageLoadMore()}
|
|
3102
3104
|
</ft-button>
|
|
3103
|
-
`}loadMore(){var e;(e=this.stateManager)===null||e===void 0||e.setPageNumber(this.currentPage+1)}};Lr.elementDefinitions={"ft-button":w};Lr.styles=Eu;Rv([(0,wu.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}})],Lr.prototype,"currentPage",void 0);Rv([(0,wu.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}})],Lr.prototype,"isLastPage",void 0)});var Tv,kv=l(()=>{"use strict";Ou();Tv={"ft-search-load-more-button":Lr}});var Lv,$v=l(()=>{"use strict";Lv=c(f());kv();(0,Lv.customElements)(Tv)});var Iv={};ii(Iv,{FtSearchLoadMoreButton:()=>Lr,FtSearchLoadMoreButtonCssVariables:()=>LE,styles:()=>Eu});var Dv=l(()=>{"use strict";Cu();Ov();Ou();$v()});var Pv=l(()=>{"use strict"});var Ta,Ra,_a,Ru,_u,$E,Oo,Tu=l(()=>{"use strict";Ta=c(f());$i();Ra=c(F()),_a=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},Ru=class extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}},_u=Symbol("registerInterval"),$E=(0,Ta.applyMixinOnce)(Symbol("toFtSearchResultComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setResultStateManager(s){this.resultStateManager=s}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[_u]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[_u]):this.dispatchEvent(new Ru)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=_u,_a([(0,Ra.property)({attribute:!1})],r.prototype,"cluster",void 0),_a([(0,Ra.property)({attribute:!1})],r.prototype,"result",void 0),_a([(0,Ta.numberProperty)()],r.prototype,"rank",void 0),_a([(0,Ra.property)({attribute:!1,type:Boolean})],r.prototype,"openResultInNewTab",void 0),r}),Oo=class extends $E(
|
|
3105
|
+
`}loadMore(){var e;(e=this.stateManager)===null||e===void 0||e.setPageNumber(this.currentPage+1)}};Lr.elementDefinitions={"ft-button":w};Lr.styles=Eu;Rv([(0,wu.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}})],Lr.prototype,"currentPage",void 0);Rv([(0,wu.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}})],Lr.prototype,"isLastPage",void 0)});var Tv,kv=l(()=>{"use strict";Ou();Tv={"ft-search-load-more-button":Lr}});var Lv,$v=l(()=>{"use strict";Lv=c(f());kv();(0,Lv.customElements)(Tv)});var Iv={};ii(Iv,{FtSearchLoadMoreButton:()=>Lr,FtSearchLoadMoreButtonCssVariables:()=>LE,styles:()=>Eu});var Dv=l(()=>{"use strict";Cu();Ov();Ou();$v()});var Pv=l(()=>{"use strict"});var Ta,Ra,_a,Ru,_u,$E,Oo,Tu=l(()=>{"use strict";Ta=c(f());$i();Ra=c(F()),_a=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},Ru=class extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}},_u=Symbol("registerInterval"),$E=(0,Ta.applyMixinOnce)(Symbol("toFtSearchResultComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setResultStateManager(s){this.resultStateManager=s}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[_u]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[_u]):this.dispatchEvent(new Ru)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=_u,_a([(0,Ra.property)({attribute:!1})],r.prototype,"cluster",void 0),_a([(0,Ra.property)({attribute:!1})],r.prototype,"result",void 0),_a([(0,Ta.numberProperty)()],r.prototype,"rank",void 0),_a([(0,Ra.property)({attribute:!1,type:Boolean})],r.prototype,"openResultInNewTab",void 0),r}),Oo=class extends $E(Mt){}});var ku,Mv,Nv,zi,Lu=l(()=>{"use strict";ku=c(y()),Mv=c(f());Tu();Xn();Nv=c(jn());ve();zi=class extends Oo{render(){var e;let r=(e=(0,Mv.accessResult)(this.result))===null||e===void 0?void 0:e.htmlExcerpt;return r?ku.html`
|
|
3104
3106
|
<ft-typography variant="${X.body1}" part="text">${(0,Nv.unsafeHTML)(r)}</ft-typography>
|
|
3105
3107
|
`:ku.html`
|
|
3106
3108
|
<style>
|
|
@@ -3108,7 +3110,7 @@
|
|
|
3108
3110
|
display: none !important;
|
|
3109
3111
|
}
|
|
3110
3112
|
</style>
|
|
3111
|
-
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(r=>r.setAttribute("part","kwicmatch"))}};zi.elementDefinitions={"ft-typography":z};zi.styles=mc});var Fv,Bv=l(()=>{"use strict";Lu();Fv={"ft-search-result-abstract":zi}});var Uv,$u=l(()=>{"use strict";Uv=c(f());Bv();(0,Uv.customElements)(Fv)});var Vv={};ii(Vv,{FtSearchResultAbstract:()=>zi,FtSearchResultAbstractCssVariables:()=>Qn,styles:()=>mc});var zv=l(()=>{"use strict";Xn();Pv();Lu();$u()});var Hv=l(()=>{"use strict"});var
|
|
3113
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(r=>r.setAttribute("part","kwicmatch"))}};zi.elementDefinitions={"ft-typography":z};zi.styles=mc});var Fv,Bv=l(()=>{"use strict";Lu();Fv={"ft-search-result-abstract":zi}});var Uv,$u=l(()=>{"use strict";Uv=c(f());Bv();(0,Uv.customElements)(Fv)});var Vv={};ii(Vv,{FtSearchResultAbstract:()=>zi,FtSearchResultAbstractCssVariables:()=>Qn,styles:()=>mc});var zv=l(()=>{"use strict";Xn();Pv();Lu();$u()});var Hv=l(()=>{"use strict"});var Rs,jv,qv,Kv,IE,ei,Iu=l(()=>{"use strict";Rs=c(y()),jv=c(F()),qv=c(f());Tu();Zn();ve();Kv=c(jn());xc();hs();IE=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},ei=class extends Oo{constructor(){super(...arguments),this.withoutLink=!1}render(){var e;return this.result?this.withoutLink?this.renderTitle():Rs.html`
|
|
3112
3114
|
<a href="${ta(this.result)}"
|
|
3113
3115
|
@click=${this.onResultClick}
|
|
3114
3116
|
@auxclick=${r=>this.onAuxClick(r)}
|
|
@@ -3117,7 +3119,7 @@
|
|
|
3117
3119
|
part="link">
|
|
3118
3120
|
${this.renderTitle()}
|
|
3119
3121
|
</a>
|
|
3120
|
-
`:
|
|
3122
|
+
`:Rs.nothing}onAuxClick(e){e.button==1&&this.onResultClick()}renderTitle(){var e;return Rs.html`
|
|
3121
3123
|
<ft-typography variant="${X.title}" part="text">${(0,Kv.unsafeHTML)((e=(0,qv.accessResult)(this.result))===null||e===void 0?void 0:e.htmlTitle)}</ft-typography>
|
|
3122
3124
|
`}onResultClick(){this.dispatchEvent(new Li(this.result,this.rank))}onContextMenu(){this.result.type!="HTML_PACKAGE"&&this.result.type!="HTML_PACKAGE_PAGE"&&this.dispatchEvent(new fo(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"})}};ei.elementDefinitions={"ft-typography":z};ei.styles=gc;IE([(0,jv.property)({type:Boolean})],ei.prototype,"withoutLink",void 0)});var Wv,Gv=l(()=>{"use strict";Iu();Wv={"ft-search-result-title":ei}});var Qv,Du=l(()=>{"use strict";Qv=c(f());Gv();(0,Qv.customElements)(Wv)});var Xv={};ii(Xv,{FtSearchResultTitle:()=>ei,FtSearchResultTitleCssVariables:()=>Yn,styles:()=>gc});var Yv=l(()=>{"use strict";Zn();Hv();Iu();Du()});var Zv,DE,Pu,Mu=l(()=>{"use strict";Zv=c(y()),DE={},Pu=Zv.css`
|
|
3123
3125
|
[part="no-results-message"] {
|
|
@@ -3129,25 +3131,25 @@
|
|
|
3129
3131
|
color: inherit;
|
|
3130
3132
|
text-decoration: inherit;
|
|
3131
3133
|
}
|
|
3132
|
-
`});var ka,ix=l(()=>{"use strict";ka=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 ox,_o,sx,La,Nu,
|
|
3134
|
+
`});var ka,ix=l(()=>{"use strict";ka=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 ox,_o,sx,La,Nu,xr,nx=l(()=>{"use strict";ox=c(y()),_o=c(F()),sx=c(f());rx();ix();La=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},Nu=class extends CustomEvent{constructor(e){super("ft-search-result-cluster-change",{detail:e,bubbles:!0,composed:!0})}},xr=class extends sx.FtLitElement{constructor(){super(...arguments),this.openResultInNewTab=!1,this.index=0,this.stateManager=new ka(e=>this.onResultSelected(e))}render(){return ox.html`
|
|
3133
3135
|
<slot @register-ft-search-result-component=${this.registerComponent}></slot>
|
|
3134
|
-
`}onResultSelected(e){this.result=e,this.dispatchEvent(new Nu(this.result))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){this.stateManager.registerComponent(e)}update(e){super.update(e),e.has("cluster")&&this.cluster&&this.stateManager.updateCluster(this.cluster,this.index+1),e.has("openResultInNewTab")&&this.stateManager.updateOpenResultInNewTab(this.openResultInNewTab)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clear()}};
|
|
3136
|
+
`}onResultSelected(e){this.result=e,this.dispatchEvent(new Nu(this.result))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){this.stateManager.registerComponent(e)}update(e){super.update(e),e.has("cluster")&&this.cluster&&this.stateManager.updateCluster(this.cluster,this.index+1),e.has("openResultInNewTab")&&this.stateManager.updateOpenResultInNewTab(this.openResultInNewTab)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clear()}};xr.elementDefinitions={};xr.styles=tx;La([(0,_o.property)({attribute:!1})],xr.prototype,"cluster",void 0);La([(0,_o.property)({attribute:!1,type:Boolean})],xr.prototype,"openResultInNewTab",void 0);La([(0,_o.state)()],xr.prototype,"result",void 0);La([(0,_o.property)()],xr.prototype,"index",void 0)});var ax,lx=l(()=>{"use strict";nx();ax={"ft-search-result-context":xr}});var cx,ux=l(()=>{"use strict";cx=c(f());lx();(0,cx.customElements)(ax)});var Ro,dx,Fu=l(()=>{"use strict";It();Ro=dr.build("searchResultsNumber"),dx={results:"{0} results","results[\\=1]":"1 result"}});var $a,px,Ia,rr,Hi,Ot,Bu=l(()=>{"use strict";$a=c(y()),px=c(kr()),Ia=c(F()),rr=c(f());Mu();$i();ux();Du();$u();It();Fu();mo();Hi=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},Ot=class extends ct(Mt){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>$a.html`
|
|
3135
3137
|
<ft-search-result-title></ft-search-result-title>
|
|
3136
3138
|
<ft-search-result-abstract></ft-search-result-abstract>
|
|
3137
|
-
`,this.clusterSortCriterion=[],this.selectedResultByCluster={},this.neededSearchRequests=[
|
|
3139
|
+
`,this.clusterSortCriterion=[],this.selectedResultByCluster={},this.neededSearchRequests=[Yt.CLUSTERED_SEARCH],this.addI18nContext(Ro)}render(){if(this.displayNoResultsMessage&&this.results!=null&&this.results.length==0)return $a.html`
|
|
3138
3140
|
<ft-typography part="no-results-message" variant="body1">${Ro.messages.results(0)}</ft-typography>
|
|
3139
3141
|
`;let e=this.buildClusters();return(0,px.repeat)(e,r=>r.id,(r,i)=>{var s;return $a.html`
|
|
3140
3142
|
<ft-search-result-context .cluster=${r} index="${i}"
|
|
3141
3143
|
@ft-search-result-cluster-change=${o=>this.onClusterChange(r.id,o.detail)}>
|
|
3142
3144
|
${this.renderResult((s=this.selectedResultByCluster[r.id])!==null&&s!==void 0?s:r.entries[0],i)}
|
|
3143
3145
|
</ft-search-result-context>
|
|
3144
|
-
`})}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&&
|
|
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&&rr.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,rr.accessResultId)(i.entries[0]),entries:i.entries})))!==null&&r!==void 0?r:[]}buildAllResultsClusters(){var e,r,i;let s=(r=(e=this.results)===null||e===void 0?void 0:e.flatMap(o=>o.entries.map(n=>({id:(0,rr.accessResultId)(n),entries:[n]}))))!==null&&r!==void 0?r:[];return this.paging&&this.paging.page===1?s.slice(0,(i=this.paging.perPage)!==null&&i!==void 0?i:20):s}};Ot.styles=Pu;Hi([(0,Ia.property)({type:String,attribute:"cluster-policy"})],Ot.prototype,"clusterPolicy",void 0);Hi([(0,Ia.property)({type:Boolean})],Ot.prototype,"displayNoResultsMessage",void 0);Hi([(0,Ia.property)({attribute:!1})],Ot.prototype,"renderResult",void 0);Hi([(0,rr.jsonProperty)([])],Ot.prototype,"clusterSortCriterion",void 0);Hi([(0,rr.redux)({selector:t=>({...t.request,paging:void 0,changedByConfiguration:void 0})})],Ot.prototype,"requestWithoutPaging",void 0);Hi([(0,rr.redux)({selector:t=>t.request.paging})],Ot.prototype,"paging",void 0);Hi([(0,rr.redux)()],Ot.prototype,"results",void 0)});var hx,fx=l(()=>{"use strict";Bu();hx={"ft-search-results":Ot}});var mx,gx=l(()=>{"use strict";mx=c(f());fx();(0,mx.customElements)(hx)});var yx={};ii(yx,{FtSearchResults:()=>Ot,FtSearchResultsCssVariables:()=>DE,styles:()=>Pu});var bx=l(()=>{"use strict";Mu();Jv();Bu();gx()});var vx,PE,Uu,Vu=l(()=>{"use strict";vx=c(y()),PE={},Uu=vx.css`
|
|
3145
3147
|
|
|
3146
|
-
`});var xx=l(()=>{"use strict"});var Da,ti,Sx,$r,zu=l(()=>{"use strict";Da=c(y()),ti=c(f());Vu();$i()
|
|
3148
|
+
`});var xx=l(()=>{"use strict"});var Da,ti,Sx,$r,zu=l(()=>{"use strict";Da=c(y()),ti=c(f());Vu();$i();It();Fu();ve();mo();Sx=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},$r=class extends(0,ti.withAriaNotification)(ct(Mt)){constructor(){super(),this.ariaNotificationDebouncer=new ti.Debouncer(100),this.searchNumberOfResults={context:"officialContext",key:"searchNumberOfResults",message:""},this.neededSearchRequests=[Yt.CLUSTERED_SEARCH],this.addI18nContext(Ro,dx)}render(){return this.paging==null?Da.nothing:Da.html`
|
|
3147
3149
|
<ft-typography variant="${X.body1}">
|
|
3148
3150
|
${Ro.messages.results(this.paging.totalClustersCount)}
|
|
3149
3151
|
</ft-typography>
|
|
3150
|
-
`}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":z};$r.styles=Uu;Sx([(0,ti.jsonProperty)({context:"officialContext",key:"searchNumberOfResults"})],$r.prototype,"searchNumberOfResults",void 0);Sx([(0,ti.redux)()],$r.prototype,"paging",void 0)});var Ex,Cx=l(()=>{"use strict";zu();Ex={"ft-search-results-number":$r}});var Ax,wx=l(()=>{"use strict";Ax=c(f());Cx();(0,Ax.customElements)(Ex)});var Ox={};ii(Ox,{FtSearchResultsNumber:()=>$r,FtSearchResultsNumberCssVariables:()=>PE,styles:()=>Uu});var _x=l(()=>{"use strict";Vu();xx();zu();wx()});var Tx=c(f());var
|
|
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)}})}};$r.elementDefinitions={"ft-typography":z};$r.styles=Uu;Sx([(0,ti.jsonProperty)({context:"officialContext",key:"searchNumberOfResults"})],$r.prototype,"searchNumberOfResults",void 0);Sx([(0,ti.redux)()],$r.prototype,"paging",void 0)});var Ex,Cx=l(()=>{"use strict";zu();Ex={"ft-search-results-number":$r}});var Ax,wx=l(()=>{"use strict";Ax=c(f());Cx();(0,Ax.customElements)(Ex)});var Ox={};ii(Ox,{FtSearchResultsNumber:()=>$r,FtSearchResultsNumberCssVariables:()=>PE,styles:()=>Uu});var _x=l(()=>{"use strict";Vu();xx();zu();wx()});var Tx=c(f());var _t=c(y()),ri=c(f());var yc=c(y()),O=c(f());var Zu=c(y()),q=c(f());Sr();var Y={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)},Ju=Zu.css`
|
|
3151
3153
|
:host {
|
|
3152
3154
|
display: block;
|
|
3153
3155
|
}
|
|
@@ -3236,7 +3238,7 @@
|
|
|
3236
3238
|
#action {
|
|
3237
3239
|
grid-area: actions;
|
|
3238
3240
|
}
|
|
3239
|
-
`;
|
|
3241
|
+
`;cs();Xn();Sr();Zn();var We={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)},og=yc.css`
|
|
3240
3242
|
.ft-search-in-doc--container {
|
|
3241
3243
|
display: flex;
|
|
3242
3244
|
flex-direction: column;
|
|
@@ -3244,11 +3246,11 @@
|
|
|
3244
3246
|
}
|
|
3245
3247
|
|
|
3246
3248
|
ft-search-input {
|
|
3247
|
-
${(0,O.setVariable)(
|
|
3248
|
-
${(0,O.setVariable)(
|
|
3249
|
-
${(0,O.setVariable)(
|
|
3250
|
-
${(0,O.setVariable)(
|
|
3251
|
-
${(0,O.setVariable)(
|
|
3249
|
+
${(0,O.setVariable)(se.colorSurface,We.searchFieldBackgroundColor)};
|
|
3250
|
+
${(0,O.setVariable)(se.colorOutline,We.searchFieldBorderColor)};
|
|
3251
|
+
${(0,O.setVariable)(se.colorOnSurface,We.searchFieldTextColor)};
|
|
3252
|
+
${(0,O.setVariable)(se.borderRadius,We.searchFieldBorderRadius)};
|
|
3253
|
+
${(0,O.setVariable)(se.buttonColor,We.searchButtonColor)};
|
|
3252
3254
|
}
|
|
3253
3255
|
|
|
3254
3256
|
ft-search-results-number {
|
|
@@ -3303,11 +3305,11 @@
|
|
|
3303
3305
|
text-decoration: none;
|
|
3304
3306
|
color: inherit;
|
|
3305
3307
|
}
|
|
3306
|
-
|
|
3308
|
+
`;It();var ea=c(f()),lg=c(F());var ng;(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"})(ng||(ng={}));var ag;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(ag||(ag={}));var xE=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},vc=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},bc=Symbol("registerInterval"),SE=(0,ea.applyMixinOnce)(Symbol("toFtReaderComponent"),function(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(s){this.clearStateManager(),this.stateManager=s,this.addStore(s.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var s;return(s=this.stateManager)===null||s===void 0?void 0:s.service}connectedCallback(){super.connectedCallback(),this[bc]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[bc]):this.dispatchEvent(new vc)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=bc,xE([(0,lg.state)()],r.prototype,"stateManager",void 0),r}),Jn=class extends SE(ea.FtLitElementRedux){};var Ir=c(F());xc();It();var Sc=dr.build("designedReaderSearchInDocument");var ds=c(y()),ki=c(F()),dg=c(f());Xe();ve();var pg=c(st()),ho=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},ut=class extends dg.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 ds.html`
|
|
3307
3309
|
<div id="container" part="container" class="${(0,pg.classMap)(e)}">
|
|
3308
|
-
${this.clickable?
|
|
3310
|
+
${this.clickable?ds.html`
|
|
3309
3311
|
<ft-ripple primary ?selected=${this.selected}></ft-ripple>
|
|
3310
|
-
`:
|
|
3312
|
+
`:ds.nothing}
|
|
3311
3313
|
<div id="header" part="header">
|
|
3312
3314
|
<ft-typography class="title" element="span" variant="title">${this.title}</ft-typography>
|
|
3313
3315
|
<slot name="header"></slot>
|
|
@@ -3321,27 +3323,27 @@
|
|
|
3321
3323
|
</ft-typography>
|
|
3322
3324
|
</div>
|
|
3323
3325
|
</div>
|
|
3324
|
-
`}};
|
|
3326
|
+
`}};ut.elementDefinitions={"ft-ripple":L,"ft-typography":z};ut.styles=Ju;ho([(0,ki.property)()],ut.prototype,"title",void 0);ho([(0,ki.property)({type:Boolean})],ut.prototype,"clickable",void 0);ho([(0,ki.property)({type:Boolean})],ut.prototype,"selected",void 0);ho([(0,ki.property)({type:Boolean})],ut.prototype,"noHeader",void 0);ho([(0,ki.property)({type:Boolean})],ut.prototype,"noContent",void 0);ho([(0,ki.property)({type:Boolean})],ut.prototype,"oneLineHeader",void 0);var fg=c(f());var hg={"ft-card":ut};(0,fg.customElements)(hg);hs();ve();Vn();var ir=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},ze=class t extends ct(Jn){constructor(){super(),this.searchInDocumentQuery="",this.hideResultTitle=!1,this.hideResultBreadcrumb=!1,this.hideResultAbstract=!1,this.hideResultsNumber=!1,this.emptyResultOnClear=!1,this.metadataFilters=[],this.uniqueId=(0,ri.randomId)(6,"search-in-document-"),this.addI18nContext(Sc)}get filters(){return[{key:"ft:publicationId",valueFilter:{negative:!1,values:[this.map.id]}},...this.metadataFilters]}renderResult(e,r){var i;return _t.html`
|
|
3325
3327
|
<style> ${sg}</style>
|
|
3326
3328
|
<a href="${ta(e,this.metadataFilters)}" @click=${s=>this.onLinkClick(s,e,r)}
|
|
3327
3329
|
@auxclick=${s=>this.onAuxClick(s,e,r)}
|
|
3328
3330
|
@contextmenu=${()=>this.onContextMenu(e,r)}>
|
|
3329
3331
|
<ft-card clickable noheader>
|
|
3330
3332
|
<div class="result-container">
|
|
3331
|
-
${this.hideResultTitle?
|
|
3333
|
+
${this.hideResultTitle?_t.nothing:_t.html`
|
|
3332
3334
|
<ft-search-result-title withoutLink="true"></ft-search-result-title>`}
|
|
3333
|
-
${this.hideResultBreadcrumb?
|
|
3335
|
+
${this.hideResultBreadcrumb?_t.nothing:_t.html`
|
|
3334
3336
|
<ft-typography class="breadcrumb" variant="${X.caption}">
|
|
3335
3337
|
${(i=e.topic)===null||i===void 0?void 0:i.breadcrumb.join(" > ")}
|
|
3336
3338
|
</ft-typography>
|
|
3337
3339
|
`}
|
|
3338
|
-
${this.hideResultAbstract?
|
|
3340
|
+
${this.hideResultAbstract?_t.nothing:_t.html`
|
|
3339
3341
|
<ft-search-result-abstract></ft-search-result-abstract>
|
|
3340
3342
|
`}
|
|
3341
3343
|
</div>
|
|
3342
3344
|
</ft-card>
|
|
3343
3345
|
</a>
|
|
3344
|
-
`}onAuxClick(e,r,i){e.button==1&&this.dispatchEvent(new Li(r,i))}onContextMenu(e,r){this.dispatchEvent(new fo(e,r))}render(){return this.map?
|
|
3346
|
+
`}onAuxClick(e,r,i){e.button==1&&this.dispatchEvent(new Li(r,i))}onContextMenu(e,r){this.dispatchEvent(new fo(e,r))}render(){return this.map?_t.html`
|
|
3345
3347
|
<ft-search-context id="${this.uniqueId}"
|
|
3346
3348
|
part="search-context"
|
|
3347
3349
|
contentLocale="${this.map.lang}"
|
|
@@ -3353,7 +3355,7 @@
|
|
|
3353
3355
|
<ft-search-input placeholder="${this.placeholder?this.placeholder.message:Sc.messages.placeholder()}"
|
|
3354
3356
|
?triggerSearchOnClear=${this.emptyResultOnClear}
|
|
3355
3357
|
@change=${e=>{var r;(r=this.stateManager)===null||r===void 0||r.setSearchInDocumentQuery(e.detail)}}></ft-search-input>
|
|
3356
|
-
${this.hideResultsNumber?
|
|
3358
|
+
${this.hideResultsNumber?_t.nothing:_t.html`
|
|
3357
3359
|
<ft-search-results-number></ft-search-results-number>
|
|
3358
3360
|
`}
|
|
3359
3361
|
<ft-search-results ?displayNoResultsMessage=${this.hideResultsNumber}
|
|
@@ -3365,7 +3367,7 @@
|
|
|
3365
3367
|
</slot>
|
|
3366
3368
|
</div>
|
|
3367
3369
|
</ft-search-context>
|
|
3368
|
-
`:
|
|
3370
|
+
`:_t.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,ri.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 s,o;this.dispatchEvent(new Li(r,i)),(s=this.stateManager)===null||s===void 0||s.navigateToTopic((o=r.topic)===null||o===void 0?void 0:o.tocId,void 0,void 0),e.preventDefault()}importDynamicDependencies(){super.importDynamicDependencies();let e=t.registry;Promise.resolve().then(()=>(Lg(),kg)).then(({FtSearchContext:r})=>e.define("ft-search-context",r)),Promise.resolve().then(()=>(Av(),Cv)).then(({FtSearchInput:r})=>e.define("ft-search-input",r)),Promise.resolve().then(()=>(Dv(),Iv)).then(({FtSearchLoadMoreButton:r})=>e.define("ft-search-load-more-button",r)),Promise.resolve().then(()=>(zv(),Vv)).then(({FtSearchResultAbstract:r})=>e.define("ft-search-result-abstract",r)),Promise.resolve().then(()=>(Yv(),Xv)).then(({FtSearchResultTitle:r})=>e.define("ft-search-result-title",r)),Promise.resolve().then(()=>(bx(),yx)).then(({FtSearchResults:r})=>e.define("ft-search-results",r)),Promise.resolve().then(()=>(_x(),Ox)).then(({FtSearchResultsNumber:r})=>e.define("ft-search-results-number",r))}};ze.elementDefinitions={"ft-card":ut};ze.styles=og;ir([(0,ri.redux)()],ze.prototype,"map",void 0);ir([(0,ri.redux)()],ze.prototype,"searchInDocumentQuery",void 0);ir([(0,Ir.query)("ft-search-results")],ze.prototype,"searchResults",void 0);ir([(0,Ir.property)({type:Boolean})],ze.prototype,"hideResultTitle",void 0);ir([(0,Ir.property)({type:Boolean})],ze.prototype,"hideResultBreadcrumb",void 0);ir([(0,Ir.property)({type:Boolean})],ze.prototype,"hideResultAbstract",void 0);ir([(0,Ir.property)({type:Boolean})],ze.prototype,"hideResultsNumber",void 0);ir([(0,Ir.property)({type:Boolean})],ze.prototype,"emptyResultOnClear",void 0);ir([(0,Ir.query)('[part="search-context"]')],ze.prototype,"searchContext",void 0);ir([lo()],ze.prototype,"placeholder",void 0);ir([(0,ri.redux)({store:"reader"})],ze.prototype,"metadataFilters",void 0);var Rx={"ft-reader-search-in-document":ze};(0,Tx.customElements)(Rx);})();
|
|
3369
3371
|
/*! Bundled license information:
|
|
3370
3372
|
|
|
3371
3373
|
.store/lit-html-npm-3.3.3-0f054b825a/package/lit-html.js:
|