@fluid-topics/ft-search-input 2.2.8 → 2.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-search-input.light.js +123 -123
- package/package.json +11 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var Qp=Object.create;var
|
|
1
|
+
"use strict";(()=>{var Qp=Object.create;var na=Object.defineProperty;var Yp=Object.getOwnPropertyDescriptor;var Xp=Object.getOwnPropertyNames;var Zp=Object.getPrototypeOf,Jp=Object.prototype.hasOwnProperty;var Yr=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var eh=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Xp(e))!Jp.call(t,n)&&n!==r&&na(t,n,{get:()=>e[n],enumerable:!(i=Yp(e,n))||i.enumerable});return t};var c=(t,e,r)=>(r=t!=null?Qp(Zp(t)):{},eh(e||!t||!t.__esModule?na(r,"default",{value:t,enumerable:!0}):r,t));var f=Yr((Kf,oa)=>{oa.exports=ftGlobals.wcUtils});var v=Yr((Gf,aa)=>{aa.exports=ftGlobals.lit});var V=Yr((Qf,la)=>{la.exports=ftGlobals.litDecorators});var Je=Yr((Yf,ca)=>{ca.exports=ftGlobals.litClassMap});var Mu=Yr((zx,Iu)=>{Iu.exports=ftGlobals.litUnsafeHTML});var dr=Yr((aE,id)=>{id.exports=ftGlobals.litRepeat});var Wp=c(f());var Ci=c(v()),Ne=c(f());var Ju=c(v()),G=c(f());var It=c(f());var ya=c(v()),we=c(V()),ba=c(Je()),wi=c(f());var ma=c(v()),me=c(f()),ua=me.FtCssVariableFactory.extend("--ft-ripple-color","",me.designSystemVariables.colorContent),q={color:ua,backgroundColor:me.FtCssVariableFactory.extend("--ft-ripple-background-color","",ua),opacityContentOnSurfacePressed:me.FtCssVariableFactory.external(me.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:me.FtCssVariableFactory.external(me.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:me.FtCssVariableFactory.external(me.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:me.FtCssVariableFactory.external(me.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:me.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},da=me.FtCssVariableFactory.extend("--ft-ripple-color","",me.designSystemVariables.colorPrimary),pa={color:da,backgroundColor:me.FtCssVariableFactory.extend("--ft-ripple-background-color","",da)},ha=me.FtCssVariableFactory.extend("--ft-ripple-color","",me.designSystemVariables.colorSecondary),fa={color:ha,backgroundColor:me.FtCssVariableFactory.extend("--ft-ripple-background-color","",ha)},ga=ma.css`
|
|
2
2
|
:host {
|
|
3
3
|
display: contents;
|
|
4
4
|
}
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
opacity: ${q.opacityContentOnSurfacePressed};
|
|
111
111
|
transform: translate(-50%, -50%) scale(1);
|
|
112
112
|
}
|
|
113
|
-
`;var We=function(t,e,r,i){var
|
|
113
|
+
`;var We=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},L=class extends wi.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new wi.Debouncer(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new wi.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:n,y:s}=this.getCoordinates(e),o=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-o.x:o.width/2),this.originY=Math.round(s!=null?s-o.y:o.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return ya.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)=>l=>{a.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),
|
|
125
|
-
\f\r]`,Oi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ca=/-->/g,Aa=/>/g,vr=RegExp(`>|${
|
|
126
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),wa=/'/g,Oa=/"/g,ka=/^(?:script|style|textarea|title)$/i,Ns=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),La=Ns(1),$a=Ns(2),Da=Ns(3),Ri=Symbol.for("lit-noChange"),ge=Symbol.for("lit-nothing"),_a=new WeakMap,xr=Sr.createTreeWalker(Sr,129);function Pa(t,e){if(!Ms(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ea!==void 0?Ea.createHTML(e):e}var ih=(t,e)=>{let r=t.length-1,i=[],s,n=e===2?"<svg>":e===3?"<math>":"",o=Oi;for(let a=0;a<r;a++){let l=t[a],u,d,p=-1,h=0;for(;h<l.length&&(o.lastIndex=h,d=o.exec(l),d!==null);)h=o.lastIndex,o===Oi?d[1]==="!--"?o=Ca:d[1]!==void 0?o=Aa:d[2]!==void 0?(ka.test(d[2])&&(s=RegExp("</"+d[2],"g")),o=vr):d[3]!==void 0&&(o=vr):o===vr?d[0]===">"?(o=s??Oi,p=-1):d[1]===void 0?p=-2:(p=o.lastIndex-d[2].length,u=d[1],o=d[3]===void 0?vr:d[3]==='"'?Oa:wa):o===Oa||o===wa?o=vr:o===Ca||o===Aa?o=Oi:(o=vr,s=void 0);let b=o===vr&&t[a+1].startsWith("/>")?" ":"";n+=o===Oi?l+th:p>=0?(i.push(u),l.slice(0,p)+Ra+l.slice(p)+Xt+b):l+Xt+(p===-2?a:b)}return[Pa(t,n+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Ti=class t{constructor({strings:e,_$litType$:r},i){let s;this.parts=[];let n=0,o=0,a=e.length-1,l=this.parts,[u,d]=ih(e,r);if(this.el=t.createElement(u,i),xr.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(s=xr.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(let p of s.getAttributeNames())if(p.endsWith(Ra)){let h=d[o++],b=s.getAttribute(p).split(Xt),S=/([.?@])?(.*)/.exec(h);l.push({type:1,index:n,name:S[2],strings:b,ctor:S[1]==="."?Ls:S[1]==="?"?$s:S[1]==="@"?Ds:Zr}),s.removeAttribute(p)}else p.startsWith(Xt)&&(l.push({type:6,index:n}),s.removeAttribute(p));if(ka.test(s.tagName)){let p=s.textContent.split(Xt),h=p.length-1;if(h>0){s.textContent=un?un.emptyScript:"";for(let b=0;b<h;b++)s.append(p[b],dn()),xr.nextNode(),l.push({type:2,index:++n});s.append(p[h],dn())}}}else if(s.nodeType===8)if(s.data===Ta)l.push({type:2,index:n});else{let p=-1;for(;(p=s.data.indexOf(Xt,p+1))!==-1;)l.push({type:7,index:n}),p+=Xt.length-1}n++}}static createElement(e,r){let i=Sr.createElement("template");return i.innerHTML=e,i}};function Xr(t,e,r=t,i){if(e===Ri)return e;let s=i!==void 0?r._$Co?.[i]:r._$Cl,n=_i(e)?void 0:e._$litDirective$;return s?.constructor!==n&&(s?._$AO?.(!1),n===void 0?s=void 0:(s=new n(t),s._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=s:r._$Cl=s),s!==void 0&&(e=Xr(t,s._$AS(t,e.values),s,i)),e}var ks=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??Sr).importNode(r,!0);xr.currentNode=s;let n=xr.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let u;l.type===2?u=new pn(n,n.nextSibling,this,e):l.type===1?u=new l.ctor(n,l.name,l.strings,this,e):l.type===6&&(u=new Ps(n,this,e)),this._$AV.push(u),l=i[++a]}o!==l?.index&&(n=xr.nextNode(),o++)}return xr.currentNode=Sr,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++}},pn=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,s){this.type=2,this._$AH=ge,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Xr(this,e,r),_i(e)?e===ge||e==null||e===""?(this._$AH!==ge&&this._$AR(),this._$AH=ge):e!==this._$AH&&e!==Ri&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):rh(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==ge&&_i(this._$AH)?this._$AA.nextSibling.data=e:this.T(Sr.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,s=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Ti.createElement(Pa(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===s)this._$AH.p(r);else{let n=new ks(s,this),o=n.u(this.options);n.p(r),this.T(o),this._$AH=n}}_$AC(e){let r=_a.get(e.strings);return r===void 0&&_a.set(e.strings,r=new Ti(e)),r}k(e){Ms(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,s=0;for(let n of e)s===r.length?r.push(i=new t(this.O(dn()),this.O(dn()),this,this.options)):i=r[s],i._$AI(n),s++;s<r.length&&(this._$AR(i&&i._$AB.nextSibling,s),r.length=s)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=Sa(e).nextSibling;Sa(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Zr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,s,n){this.type=1,this._$AH=ge,this._$AN=void 0,this.element=e,this.name=r,this._$AM=s,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ge}_$AI(e,r=this,i,s){let n=this.strings,o=!1;if(n===void 0)e=Xr(this,e,r,0),o=!_i(e)||e!==this._$AH&&e!==Ri,o&&(this._$AH=e);else{let a=e,l,u;for(e=n[0],l=0;l<n.length-1;l++)u=Xr(this,a[i+l],r,l),u===Ri&&(u=this._$AH[l]),o||=!_i(u)||u!==this._$AH[l],u===ge?e=ge:e!==ge&&(e+=(u??"")+n[l+1]),this._$AH[l]=u}o&&!s&&this.j(e)}j(e){e===ge?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ls=class extends Zr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ge?void 0:e}},$s=class extends Zr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ge)}},Ds=class extends Zr{constructor(e,r,i,s,n){super(e,r,i,s,n),this.type=5}_$AI(e,r=this){if((e=Xr(this,e,r,0)??ge)===Ri)return;let i=this._$AH,s=e===ge&&i!==ge||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,n=e!==ge&&(i===ge||s);s&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Ps=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Xr(this,e)}};var nh=Is.litHtmlPolyfillSupport;nh?.(Ti,pn),(Is.litHtmlVersions??=[]).push("3.3.3");var Ma=Symbol.for(""),sh=t=>{if(t?.r===Ma)return t?._$litStatic$},Fs=t=>({_$litStatic$:t,r:Ma});var Ia=new Map,Bs=t=>(e,...r)=>{let i=r.length,s,n,o=[],a=[],l,u=0,d=!1;for(;u<i;){for(l=e[u];u<i&&(n=r[u],(s=sh(n))!==void 0);)l+=s+e[++u],d=!0;u!==i&&a.push(n),o.push(l),u++}if(u===i&&o.push(e[i]),d){let p=o.join("$$lit$$");(e=Ia.get(p))===void 0&&(o.raw=o,Ia.set(p,e=o)),r=a}return t(e,...r)},Us=Bs(La),um=Bs($a),dm=Bs(Da);var zs=c(V()),Ga=c(f());var ce;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(ce||(ce={}));var ut=c(v()),m=c(f()),Na=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.titleFont),Vt=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.contentFont),y={fontFamily:Vt,fontSize:m.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:m.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:m.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:m.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:m.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:m.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},Er={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Na),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-font-size","",y.fontSize,"20px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",y.letterSpacing,"0.15px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-line-height","",y.lineHeight,"1.2"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",y.textDecoration,"inherit")},Cr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Na),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",y.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",y.letterSpacing,"0.105px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",y.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",y.textDecoration,"inherit")},Ar={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Vt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",y.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",y.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",y.letterSpacing,"0.144px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",y.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",y.textDecoration,"inherit")},wr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Vt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",y.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",y.letterSpacing,"0.098px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",y.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",y.textDecoration,"inherit")},kt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Vt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",y.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",y.letterSpacing,"0.496px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",y.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",y.textDecoration,"inherit")},ye={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Vt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",y.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",y.letterSpacing,"0.252px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",y.lineHeight,"1.4"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",y.textDecoration,"inherit")},Ke={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Vt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",y.fontSize,"12px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",y.letterSpacing,"0.396px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",y.lineHeight,"1.33"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",y.textDecoration,"inherit")},Or={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Vt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",y.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",y.letterSpacing,"0.33px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",y.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",y.textDecoration,"inherit")},_r={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Vt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",y.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",y.letterSpacing,"1.5px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",y.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",y.textTransform,"uppercase"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",y.textDecoration,"inherit")},vt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Vt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-button-font-size","",y.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",y.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",y.letterSpacing,"1.246px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-button-line-height","",y.lineHeight,"1.15"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",y.textTransform,"uppercase"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",y.textDecoration,"inherit")},Fa=ut.css`
|
|
124
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),s=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},o={passive:!0};e.addEventListener("mouseover",this.startHover,o),e.addEventListener("mousemove",this.moveRipple,o),e.addEventListener("mouseleave",this.endHover,o),e.addEventListener("mousedown",i,o),e.addEventListener("touchstart",n,o),e.addEventListener("touchmove",this.moveRipple,o),e.addEventListener("keydown",s,o),e.addEventListener("focus",this.startFocus,o),e.addEventListener("blur",this.endFocus,o),e.addEventListener("focusin",this.startFocus,o),e.addEventListener("focusout",this.endFocus,o),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,o),e.removeEventListener("mousemove",this.moveRipple,o),e.removeEventListener("mouseleave",this.endHover,o),e.removeEventListener("mousedown",i,o),e.removeEventListener("touchstart",n,o),e.removeEventListener("touchmove",this.moveRipple,o),e.removeEventListener("keydown",s,o),e.removeEventListener("focus",this.startFocus,o),e.removeEventListener("blur",this.endFocus,o),e.removeEventListener("focusin",this.startFocus,o),e.removeEventListener("focusout",this.endFocus,o),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,s;return r.x!=null?{x:n,y:s}=r:i.touches!=null&&(n=i.touches[0].clientX,s=i.touches[0].clientY),{x:n,y:s}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};L.elementDefinitions={};L.styles=ga;We([(0,we.property)({type:Boolean})],L.prototype,"primary",void 0);We([(0,we.property)({type:Boolean})],L.prototype,"secondary",void 0);We([(0,we.property)({type:Boolean})],L.prototype,"unbounded",void 0);We([(0,we.property)({type:Boolean})],L.prototype,"activated",void 0);We([(0,we.property)({type:Boolean})],L.prototype,"selected",void 0);We([(0,we.property)({type:Boolean})],L.prototype,"disabled",void 0);We([(0,we.state)()],L.prototype,"hovered",void 0);We([(0,we.state)()],L.prototype,"focused",void 0);We([(0,we.state)()],L.prototype,"pressed",void 0);We([(0,we.state)()],L.prototype,"rippling",void 0);We([(0,we.state)()],L.prototype,"originX",void 0);We([(0,we.state)()],L.prototype,"originY",void 0);We([(0,we.query)(".ft-ripple")],L.prototype,"ripple",void 0);We([(0,we.query)(".ft-ripple--effect")],L.prototype,"rippleEffect",void 0);var xa=c(f());var va={"ft-ripple":L};(0,xa.customElements)(va);var ku=c(v()),mt=c(V()),ft=c(f());var In=globalThis,Sa=t=>t,cs=In.trustedTypes,Ea=cs?cs.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ra="$lit$",Xt=`lit$${Math.random().toFixed(9).slice(2)}$`,Ta="?"+Xt,th=`<${Ta}>`,Sr=document,us=()=>Sr.createComment(""),_i=t=>t===null||typeof t!="object"&&typeof t!="function",Mn=Array.isArray,rh=t=>Mn(t)||typeof t?.[Symbol.iterator]=="function",Tn=`[
|
|
125
|
+
\f\r]`,Oi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ca=/-->/g,Aa=/>/g,vr=RegExp(`>|${Tn}(?:([^\\s"'>=/]+)(${Tn}*=${Tn}*(?:[^
|
|
126
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),wa=/'/g,Oa=/"/g,ka=/^(?:script|style|textarea|title)$/i,Nn=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),La=Nn(1),$a=Nn(2),Da=Nn(3),Ri=Symbol.for("lit-noChange"),ge=Symbol.for("lit-nothing"),_a=new WeakMap,xr=Sr.createTreeWalker(Sr,129);function Pa(t,e){if(!Mn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ea!==void 0?Ea.createHTML(e):e}var ih=(t,e)=>{let r=t.length-1,i=[],n,s=e===2?"<svg>":e===3?"<math>":"",o=Oi;for(let a=0;a<r;a++){let l=t[a],u,d,p=-1,h=0;for(;h<l.length&&(o.lastIndex=h,d=o.exec(l),d!==null);)h=o.lastIndex,o===Oi?d[1]==="!--"?o=Ca:d[1]!==void 0?o=Aa:d[2]!==void 0?(ka.test(d[2])&&(n=RegExp("</"+d[2],"g")),o=vr):d[3]!==void 0&&(o=vr):o===vr?d[0]===">"?(o=n??Oi,p=-1):d[1]===void 0?p=-2:(p=o.lastIndex-d[2].length,u=d[1],o=d[3]===void 0?vr:d[3]==='"'?Oa:wa):o===Oa||o===wa?o=vr:o===Ca||o===Aa?o=Oi:(o=vr,n=void 0);let b=o===vr&&t[a+1].startsWith("/>")?" ":"";s+=o===Oi?l+th:p>=0?(i.push(u),l.slice(0,p)+Ra+l.slice(p)+Xt+b):l+Xt+(p===-2?a:b)}return[Pa(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Ti=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let s=0,o=0,a=e.length-1,l=this.parts,[u,d]=ih(e,r);if(this.el=t.createElement(u,i),xr.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(n=xr.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let p of n.getAttributeNames())if(p.endsWith(Ra)){let h=d[o++],b=n.getAttribute(p).split(Xt),S=/([.?@])?(.*)/.exec(h);l.push({type:1,index:s,name:S[2],strings:b,ctor:S[1]==="."?Ln:S[1]==="?"?$n:S[1]==="@"?Dn:Zr}),n.removeAttribute(p)}else p.startsWith(Xt)&&(l.push({type:6,index:s}),n.removeAttribute(p));if(ka.test(n.tagName)){let p=n.textContent.split(Xt),h=p.length-1;if(h>0){n.textContent=cs?cs.emptyScript:"";for(let b=0;b<h;b++)n.append(p[b],us()),xr.nextNode(),l.push({type:2,index:++s});n.append(p[h],us())}}}else if(n.nodeType===8)if(n.data===Ta)l.push({type:2,index:s});else{let p=-1;for(;(p=n.data.indexOf(Xt,p+1))!==-1;)l.push({type:7,index:s}),p+=Xt.length-1}s++}}static createElement(e,r){let i=Sr.createElement("template");return i.innerHTML=e,i}};function Xr(t,e,r=t,i){if(e===Ri)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,s=_i(e)?void 0:e._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=Xr(t,n._$AS(t,e.values),n,i)),e}var kn=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??Sr).importNode(r,!0);xr.currentNode=n;let s=xr.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let u;l.type===2?u=new ds(s,s.nextSibling,this,e):l.type===1?u=new l.ctor(s,l.name,l.strings,this,e):l.type===6&&(u=new Pn(s,this,e)),this._$AV.push(u),l=i[++a]}o!==l?.index&&(s=xr.nextNode(),o++)}return xr.currentNode=Sr,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},ds=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=ge,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Xr(this,e,r),_i(e)?e===ge||e==null||e===""?(this._$AH!==ge&&this._$AR(),this._$AH=ge):e!==this._$AH&&e!==Ri&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):rh(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==ge&&_i(this._$AH)?this._$AA.nextSibling.data=e:this.T(Sr.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Ti.createElement(Pa(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let s=new kn(n,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(e){let r=_a.get(e.strings);return r===void 0&&_a.set(e.strings,r=new Ti(e)),r}k(e){Mn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let s of e)n===r.length?r.push(i=new t(this.O(us()),this.O(us()),this,this.options)):i=r[n],i._$AI(s),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=Sa(e).nextSibling;Sa(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Zr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,s){this.type=1,this._$AH=ge,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ge}_$AI(e,r=this,i,n){let s=this.strings,o=!1;if(s===void 0)e=Xr(this,e,r,0),o=!_i(e)||e!==this._$AH&&e!==Ri,o&&(this._$AH=e);else{let a=e,l,u;for(e=s[0],l=0;l<s.length-1;l++)u=Xr(this,a[i+l],r,l),u===Ri&&(u=this._$AH[l]),o||=!_i(u)||u!==this._$AH[l],u===ge?e=ge:e!==ge&&(e+=(u??"")+s[l+1]),this._$AH[l]=u}o&&!n&&this.j(e)}j(e){e===ge?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ln=class extends Zr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ge?void 0:e}},$n=class extends Zr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ge)}},Dn=class extends Zr{constructor(e,r,i,n,s){super(e,r,i,n,s),this.type=5}_$AI(e,r=this){if((e=Xr(this,e,r,0)??ge)===Ri)return;let i=this._$AH,n=e===ge&&i!==ge||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,s=e!==ge&&(i===ge||n);n&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Pn=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Xr(this,e)}};var sh=In.litHtmlPolyfillSupport;sh?.(Ti,ds),(In.litHtmlVersions??=[]).push("3.3.3");var Ma=Symbol.for(""),nh=t=>{if(t?.r===Ma)return t?._$litStatic$},Fn=t=>({_$litStatic$:t,r:Ma});var Ia=new Map,Bn=t=>(e,...r)=>{let i=r.length,n,s,o=[],a=[],l,u=0,d=!1;for(;u<i;){for(l=e[u];u<i&&(s=r[u],(n=nh(s))!==void 0);)l+=n+e[++u],d=!0;u!==i&&a.push(s),o.push(l),u++}if(u===i&&o.push(e[i]),d){let p=o.join("$$lit$$");(e=Ia.get(p))===void 0&&(o.raw=o,Ia.set(p,e=o)),r=a}return t(e,...r)},Un=Bn(La),um=Bn($a),dm=Bn(Da);var zn=c(V()),Ga=c(f());var ce;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(ce||(ce={}));var ut=c(v()),m=c(f()),Na=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.titleFont),Vt=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.contentFont),y={fontFamily:Vt,fontSize:m.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:m.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:m.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:m.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:m.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:m.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},Er={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Na),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-font-size","",y.fontSize,"20px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",y.letterSpacing,"0.15px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-line-height","",y.lineHeight,"1.2"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",y.textDecoration,"inherit")},Cr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Na),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",y.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",y.letterSpacing,"0.105px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",y.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",y.textDecoration,"inherit")},Ar={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Vt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",y.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",y.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",y.letterSpacing,"0.144px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",y.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",y.textDecoration,"inherit")},wr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Vt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",y.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",y.letterSpacing,"0.098px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",y.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",y.textDecoration,"inherit")},kt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Vt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",y.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",y.letterSpacing,"0.496px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",y.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",y.textDecoration,"inherit")},ye={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Vt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",y.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",y.letterSpacing,"0.252px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",y.lineHeight,"1.4"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",y.textDecoration,"inherit")},Ke={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Vt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",y.fontSize,"12px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",y.letterSpacing,"0.396px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",y.lineHeight,"1.33"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",y.textDecoration,"inherit")},Or={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Vt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",y.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",y.letterSpacing,"0.33px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",y.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",y.textDecoration,"inherit")},_r={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Vt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",y.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",y.letterSpacing,"1.5px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",y.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",y.textTransform,"uppercase"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",y.textDecoration,"inherit")},vt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Vt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-button-font-size","",y.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",y.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",y.letterSpacing,"1.246px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-button-line-height","",y.lineHeight,"1.15"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",y.textTransform,"uppercase"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",y.textDecoration,"inherit")},Fa=ut.css`
|
|
127
127
|
.ft-typography--title {
|
|
128
128
|
font-family: ${Er.fontFamily};
|
|
129
129
|
font-size: ${Er.fontSize};
|
|
@@ -228,15 +228,15 @@
|
|
|
228
228
|
.ft-typography {
|
|
229
229
|
vertical-align: inherit;
|
|
230
230
|
}
|
|
231
|
-
`;var Ka=function(t,e,r,i){var
|
|
232
|
-
<${
|
|
231
|
+
`;var Ka=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},W=class extends Ga.FtLitElement{constructor(){super(...arguments),this.variant=ce.body1}render(){return this.element?Un`
|
|
232
|
+
<${Fn(this.element)}
|
|
233
233
|
part="text"
|
|
234
234
|
class="ft-typography ft-typography--${this.variant}">
|
|
235
235
|
<slot></slot>
|
|
236
|
-
</${
|
|
237
|
-
`:
|
|
236
|
+
</${Fn(this.element)}>
|
|
237
|
+
`:Un`
|
|
238
238
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
239
|
-
`}};W.styles=[Fa,Ba,Ua,za,Va,Zt,Jt,Ha,ja,qa,Wa];Ka([(0,
|
|
239
|
+
`}};W.styles=[Fa,Ba,Ua,za,Va,Zt,Jt,Ha,ja,qa,Wa];Ka([(0,zn.property)()],W.prototype,"element",void 0);Ka([(0,zn.property)()],W.prototype,"variant",void 0);var Ya=c(f());var Qa={"ft-typography":W};(0,Ya.customElements)(Qa);var Xa=c(v()),er=c(f()),ki={distance:er.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:er.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:er.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:er.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",er.designSystemVariables.borderRadiusS),maxWidth:er.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Za=Xa.css`
|
|
240
240
|
.ft-tooltip--container {
|
|
241
241
|
display: block;
|
|
242
242
|
}
|
|
@@ -267,15 +267,15 @@
|
|
|
267
267
|
position: relative;
|
|
268
268
|
word-break: break-word;
|
|
269
269
|
}
|
|
270
|
-
`;var el=["top","right","bottom","left"],Ja=["start","end"],Hs=el.reduce((t,e)=>t.concat(e,e+"-"+Ja[0],e+"-"+Ja[1]),[]),Li=Math.min,tr=Math.max,$i=Math.round;var Lt=t=>({x:t,y:t}),oh={left:"right",right:"left",bottom:"top",top:"bottom"};function tl(t,e,r){return tr(t,Li(e,r))}function hn(t,e){return typeof t=="function"?t(e):t}function Di(t){return t.split("-")[0]}function rr(t){return t.split("-")[1]}function js(t){return t==="x"?"y":"x"}function qs(t){return t==="y"?"height":"width"}function fn(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Ws(t){return js(fn(t))}function rl(t,e,r){r===void 0&&(r=!1);let i=rr(t),s=Ws(t),n=qs(s),o=s==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[n]>e.floating[n]&&(o=Vs(o)),[o,Vs(o)]}function il(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Vs(t){let e=Di(t);return oh[e]+t.slice(e.length)}function ah(t){var e,r,i,s;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(s=t.left)!=null?s:0}}function nl(t){return typeof t!="number"?ah(t):{top:t,right:t,bottom:t,left:t}}function Rr(t){let{x:e,y:r,width:i,height:s}=t;return{width:i,height:s,top:r,left:e,right:e+i,bottom:r+s,x:e,y:r}}function sl(t,e,r){let{reference:i,floating:s}=t,n=fn(e),o=Ws(e),a=qs(o),l=Di(e),u=n==="y",d=i.x+i.width/2-s.width/2,p=i.y+i.height/2-s.height/2,h=i[a]/2-s[a]/2,b;switch(l){case"top":b={x:d,y:i.y-s.height};break;case"bottom":b={x:d,y:i.y+i.height};break;case"right":b={x:i.x+i.width,y:p};break;case"left":b={x:i.x-s.width,y:p};break;default:b={x:i.x,y:i.y}}let S=rr(e);return S&&(b[o]+=h*(S==="end"?1:-1)*(r&&u?-1:1)),b}async function ol(t,e){var r;e===void 0&&(e={});let{x:i,y:s,platform:n,rects:o,elements:a,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:b=0}=hn(e,t),S=nl(b),x=a[h?p==="floating"?"reference":"floating":p],T=Rr(await n.getClippingRect({element:(r=await(n.isElement==null?void 0:n.isElement(x)))==null||r?x:x.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),j=p==="floating"?{x:i,y:s,width:o.floating.width,height:o.floating.height}:o.reference,E=await(n.getOffsetParent==null?void 0:n.getOffsetParent(a.floating)),I=await(n.isElement==null?void 0:n.isElement(E))&&await(n.getScale==null?void 0:n.getScale(E))||{x:1,y:1},U=Rr(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:j,offsetParent:E,strategy:l}):j);return{top:(T.top-U.top+S.top)/I.y,bottom:(U.bottom-T.bottom+S.bottom)/I.y,left:(T.left-U.left+S.left)/I.x,right:(U.right-T.right+S.right)/I.x}}var lh=50,al=async(t,e,r)=>{let{placement:i="bottom",strategy:s="absolute",middleware:n=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:ol},l=await(o.isRTL==null?void 0:o.isRTL(e)),u=await o.getElementRects({reference:t,floating:e,strategy:s}),{x:d,y:p}=sl(u,i,l),h=i,b=0,S={};for(let _=0;_<n.length;_++){let x=n[_];if(!x)continue;let{name:T,fn:j}=x,{x:E,y:I,data:U,reset:ue}=await j({x:d,y:p,initialPlacement:i,placement:h,strategy:s,middlewareData:S,rects:u,platform:a,elements:{reference:t,floating:e}});d=E??d,p=I??p,S[T]={...S[T],...U},ue&&b<lh&&(b++,typeof ue=="object"&&(ue.placement&&(h=ue.placement),ue.rects&&(u=ue.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:s}):ue.rects),{x:d,y:p}=sl(u,h,l)),_=-1)}return{x:d,y:p,placement:h,strategy:s,middlewareData:S}};function ch(t,e,r){return(t?[...r.filter(s=>rr(s)===t),...r.filter(s=>rr(s)!==t)]:r.filter(s=>Di(s)===s)).filter(s=>t?rr(s)===t||(e?il(s)!==s:!1):!0)}var ll=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,s;let{rects:n,middlewareData:o,placement:a,platform:l,elements:u}=e,{crossAxis:d=!1,alignment:p,allowedPlacements:h=Hs,autoAlignment:b=!0,...S}=hn(t,e),_=p!==void 0||h===Hs?ch(p||null,b,h):h,x=((r=o.autoPlacement)==null?void 0:r.index)||0,T=_[x];if(T==null)return{};if(a!==T)return{reset:{placement:_[0]}};let j=await l.detectOverflow(e,S),E=rl(T,n,await(l.isRTL==null?void 0:l.isRTL(u.floating))),I=[j[Di(T)],j[E[0]],j[E[1]]],U=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:T,overflows:I}],ue=_[x+1];if(ue)return{data:{index:x+1,overflows:U},reset:{placement:ue}};let J=U.map(ct=>{let br=rr(ct.placement);return[ct.placement,br&&d?ct.overflows.slice(0,2).reduce((Kp,Gp)=>Kp+Gp,0):ct.overflows[0],ct.overflows]}).sort((ct,br)=>ct[1]-br[1]),Ai=((s=J.filter(ct=>ct[2].slice(0,rr(ct[0])?2:3).every(br=>br<=0))[0])==null?void 0:s[0])||J[0][0];return Ai!==a?{data:{index:x+1,overflows:U},reset:{placement:Ai}}:{}}}};var cl=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:s,platform:n}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:j=>{let{x:E,y:I}=j;return{x:E,y:I}}},...u}=hn(t,e),d={x:r,y:i},p=await n.detectOverflow(e,u),h=fn(s),b=js(h),S=d[b],_=d[h],x=(j,E)=>tl(E+p[j==="y"?"top":"left"],E,E-p[j==="y"?"bottom":"right"]);o&&(S=x(b,S)),a&&(_=x(h,_));let T=l.fn({...e,[b]:S,[h]:_});return{...T,data:{x:T.x-r,y:T.y-i,enabled:{[b]:o,[h]:a}}}}}};function gn(){return typeof window<"u"}function kr(t){return dl(t)?(t.nodeName||"").toLowerCase():"#document"}function Ge(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ht(t){var e;return(e=(dl(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function dl(t){return gn()?t instanceof Node||t instanceof Ge(t).Node:!1}function xt(t){return gn()?t instanceof Element||t instanceof Ge(t).Element:!1}function jt(t){return gn()?t instanceof HTMLElement||t instanceof Ge(t).HTMLElement:!1}function ul(t){return!gn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ge(t).ShadowRoot}function Pi(t){let{overflow:e,overflowX:r,overflowY:i,display:s}=St(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&s!=="inline"&&s!=="contents"}function pl(t){return/^(table|td|th)$/.test(kr(t))}function Ii(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var uh=/transform|translate|scale|rotate|perspective|filter/,dh=/paint|layout|strict|content/,Tr=t=>!!t&&t!=="none",Ks;function Jr(t){let e=xt(t)?St(t):t;return Tr(e.transform)||Tr(e.translate)||Tr(e.scale)||Tr(e.rotate)||Tr(e.perspective)||!yn()&&(Tr(e.backdropFilter)||Tr(e.filter))||uh.test(e.willChange||"")||dh.test(e.contain||"")}function hl(t){let e=ir(t);for(;jt(e)&&!ei(e);){if(Jr(e))return e;if(Ii(e))return null;e=ir(e)}return null}function yn(){return Ks==null&&(Ks=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ks}function ei(t){return/^(html|body|#document)$/.test(kr(t))}function St(t){return Ge(t).getComputedStyle(t)}function Mi(t){return xt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ir(t){if(kr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||ul(t)&&t.host||Ht(t);return ul(e)?e.host:e}function fl(t){let e=ir(t);return ei(e)?(t.ownerDocument||t).body:jt(e)&&Pi(e)?e:fl(e)}function mn(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let s=fl(t),n=s===((i=t.ownerDocument)==null?void 0:i.body),o=Ge(s);if(n){let a=bn(o);return e.concat(o,o.visualViewport||[],Pi(s)?s:[],a&&r?mn(a):[])}else return e.concat(s,mn(s,[],r))}function bn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function yl(t){let e=St(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,s=jt(t),n=s?t.offsetWidth:r,o=s?t.offsetHeight:i,a=$i(r)!==n||$i(i)!==o;return a&&(r=n,i=o),{width:r,height:i,$:a}}function bl(t){return xt(t)?t:t.contextElement}function ti(t){let e=bl(t);if(!jt(e))return Lt(1);let r=e.getBoundingClientRect(),{width:i,height:s,$:n}=yl(e),o=(n?$i(r.width):r.width)/i,a=(n?$i(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var ph=Lt(0);function vl(t){let e=Ge(t);return!yn()||!e.visualViewport?ph:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function hh(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Ge(t)}function Ni(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let s=t.getBoundingClientRect(),n=bl(t),o=Lt(1);e&&(i?xt(i)&&(o=ti(i)):o=ti(t));let a=hh(n,r,i)?vl(n):Lt(0),l=(s.left+a.x)/o.x,u=(s.top+a.y)/o.y,d=s.width/o.x,p=s.height/o.y;if(n&&i){let h=Ge(n),b=xt(i)?Ge(i):i,S=h,_=bn(S);for(;_&&b!==S;){let x=ti(_),T=_.getBoundingClientRect(),j=St(_),E=T.left+(_.clientLeft+parseFloat(j.paddingLeft))*x.x,I=T.top+(_.clientTop+parseFloat(j.paddingTop))*x.y;l*=x.x,u*=x.y,d*=x.x,p*=x.y,l+=E,u+=I,S=Ge(_),_=bn(S)}}return Rr({width:d,height:p,x:l,y:u})}function vn(t,e){let r=Mi(t).scrollLeft;return e?e.left+r:Ni(Ht(t)).left+r}function xl(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-vn(t,r),s=r.top+e.scrollTop;return{x:i,y:s}}function fh(t){let{elements:e,rect:r,offsetParent:i,strategy:s}=t,n=s==="fixed",o=Ht(i),a=e?Ii(e.floating):!1;if(i===o||a&&n)return r;let l={scrollLeft:0,scrollTop:0},u=Lt(1),d=Lt(0),p=jt(i);if((p||!n)&&((kr(i)!=="body"||Pi(o))&&(l=Mi(i)),p)){let b=Ni(i);u=ti(i),d.x=b.x+i.clientLeft,d.y=b.y+i.clientTop}let h=o&&!p&&!n?xl(o,l):Lt(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+d.x+h.x,y:r.y*u.y-l.scrollTop*u.y+d.y+h.y}}function mh(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function gh(t){let e=Mi(t),r=t.ownerDocument.body,i=tr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=tr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),n=-e.scrollLeft+vn(t),o=-e.scrollTop;return St(r).direction==="rtl"&&(n+=tr(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:n,y:o}}var yh=25;function bh(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",s=Ge(t),n=Ht(t),o=s.visualViewport,a=n.clientWidth,l=n.clientHeight,u=0,d=0;if(o){let h=!yn()||e==="fixed";i?h||(u=-o.offsetLeft,d=-o.offsetTop):(a=o.width,l=o.height,h&&(u=o.offsetLeft,d=o.offsetTop))}if(vn(n)<=0){let h=n.ownerDocument,b=h.body,S=getComputedStyle(b),_=h.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,x=Math.abs(n.clientWidth-b.clientWidth-_),T=getComputedStyle(n).scrollbarGutter==="stable both-edges"?x/2:x;T<=yh&&(a-=T)}return{width:a,height:l,x:u,y:d}}function vh(t,e){let r=Ni(t,!0,e==="fixed"),i=r.top+t.clientTop,s=r.left+t.clientLeft,n=ti(t),o=t.clientWidth*n.x,a=t.clientHeight*n.y,l=s*n.x,u=i*n.y;return{width:o,height:a,x:l,y:u}}function ml(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=bh(t,r,e);else if(e==="document")i=gh(Ht(t));else if(xt(e))i=vh(e,r);else{let s=vl(t);i={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return Rr(i)}function xh(t,e){let r=e.get(t);if(r)return r;let i=mn(t,[],!1).filter(a=>xt(a)&&kr(a)!=="body"),s=null,n=St(t).position==="fixed",o=n?ir(t):t;for(;xt(o)&&!ei(o);){let a=St(o),l=Jr(o),u=s?s.position:n?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&a.position==="static")?i=i.filter(p=>p!==o):s=a,o=ir(o)}return e.set(t,i),i}function Sh(t){let{element:e,boundary:r,rootBoundary:i,strategy:s}=t,o=[...r==="clippingAncestors"?Ii(e)?[]:xh(e,this._c):[].concat(r),i],a=ml(e,o[0],s),l=a.top,u=a.right,d=a.bottom,p=a.left;for(let h=1;h<o.length;h++){let b=ml(e,o[h],s);l=tr(b.top,l),u=Li(b.right,u),d=Li(b.bottom,d),p=tr(b.left,p)}return{width:u-p,height:d-l,x:p,y:l}}function Eh(t){let{width:e,height:r}=yl(t);return{width:e,height:r}}function Ch(t,e,r){let i=jt(e),s=Ht(e),n=r==="fixed",o=Ni(t,!0,n,e),a={scrollLeft:0,scrollTop:0},l=Lt(0);if((i||!n)&&((kr(e)!=="body"||Pi(s))&&(a=Mi(e)),i)){let h=Ni(e,!0,n,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}!i&&s&&(l.x=vn(s));let u=s&&!i&&!n?xl(s,a):Lt(0),d=o.left+a.scrollLeft-l.x-u.x,p=o.top+a.scrollTop-l.y-u.y;return{x:d,y:p,width:o.width,height:o.height}}function Gs(t){return St(t).position==="static"}function gl(t,e){if(!jt(t)||St(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Ht(t)===r&&(r=r.ownerDocument.body),r}function Sl(t,e){let r=Ge(t);if(Ii(t))return r;if(!jt(t)){let s=ir(t);for(;s&&!ei(s);){if(xt(s)&&!Gs(s))return s;s=ir(s)}return r}let i=gl(t,e);for(;i&&pl(i)&&Gs(i);)i=gl(i,e);return i&&ei(i)&&Gs(i)&&!Jr(i)?r:i||hl(t)||r}var Ah=async function(t){let e=this.getOffsetParent||Sl,r=this.getDimensions,i=await r(t.floating);return{reference:Ch(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function wh(t){return St(t).direction==="rtl"}var xn={convertOffsetParentRelativeRectToViewportRelativeRect:fh,getDocumentElement:Ht,getClippingRect:Sh,getOffsetParent:Sl,getElementRects:Ah,getClientRects:mh,getDimensions:Eh,getScale:ti,isElement:xt,isRTL:wh};var El=ll,Cl=cl;var Al=(t,e,r)=>{let i=new Map,s=r??{},n={...xn,...s.platform,_c:i};return al(t,e,{...s,platform:n})};function wl(t){return Oh(t)}function Qs(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Oh(t){for(let e=t;e;e=Qs(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Qs(t);e;e=Qs(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Jr(r)||e.tagName==="BODY"))return e}return null}async function Ol(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},Al(t,e,{strategy:i.strategy,platform:{...xn,getOffsetParent:s=>xn.getOffsetParent(s,wl)},middleware:[Cl({crossAxis:!0}),El({allowedPlacements:[i.placement]})]})}var di=c(f());var bo=c(V());var _l=c(V(),1);var Ys=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function Rl(t,e){return(0,_l.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Fi(t);try{return JSON.parse(r)}catch{return Fi(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Bi,...e??{}})}function _h(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!ri(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!ri(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let s=o=>Object.keys(o).filter(a=>o[a]!=null),n=s(t);if(r=n.length,r!==s(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=r;i--!==0;){let o=n[i];if(!ri(t[o],e[o]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function ri(t,e){try{return _h(t,e)}catch{return!1}}function Bi(t,e){return!ri(t,e)}function Fi(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Sn(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 Tl=c(V(),1);var Xs=t=>{let e=t??{};return(r,i)=>{var s;let n={hasChanged:Bi,attribute:!1,...e};(0,Tl.property)(n)(r,i);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(i,{selector:(s=e.selector)!==null&&s!==void 0?s:(a=>a[i]),store:e.store})}};var En=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var Lr=c(V(),1);var Cn=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let s=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),n=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of i)try{await o()}catch(a){s(a);return}n(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Ll=c(v(),1);var An=globalThis,Rh=An.ShadowRoot&&(An.ShadyCSS===void 0||An.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var kl=(t,e)=>{if(Rh)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),s=An.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=r.cssText,t.appendChild(i)}};var wn=class extends Ll.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 kl(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){Ys(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 $l(t,e,...r){var i;let s=t.querySelector(e);for(let n of r)s=(i=s?.shadowRoot)===null||i===void 0?void 0:i.querySelector(n);return s}var ni=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Ml,Dl=Symbol("constructorPrototype"),Pl=Symbol("constructorName"),Nl=Symbol("exportpartsDebouncer"),Il=Symbol("dynamicDependenciesLoaded"),ii=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};ii.eventName="exportparts-updated";var $t=class extends wn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ml]=new Cn(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[Nl].run(()=>{var s,n;!((s=this.exportpartsPrefix)===null||s===void 0)&&s.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((n=this.exportpartsPrefixes)===null||n===void 0?void 0:n.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Pl]=this.constructor.name,this[Dl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Pl]&&Object.setPrototypeOf(this,this[Dl])}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[Il]||(r[Il]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(ii.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(ii.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new ii)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:s}=this.elementToFocus;if(i!=null){let n=[...s??[],i];r=$l(this.shadowRoot,...n)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,s;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(n=>n.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((s=this.customStylesheet)!==null&&s!==void 0?s:"")}catch(n){console.error(n,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let n=document.createElement("style");n.classList.add("ft-lit-element--custom-stylesheet"),n.innerHTML=this.customStylesheet,this.shadowRoot.append(n)}}setExportpartsAttribute(e){var r,i,s,n,o,a;let l=h=>h!=null&&h.trim().length>0,u=e.filter(l).map(h=>h.trim());if(u.length===0){this.exportparts=void 0;return}let d=new Set;for(let h of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let b=(n=(s=h.getAttribute("part"))===null||s===void 0?void 0:s.split(" "))!==null&&n!==void 0?n:[],S=(a=(o=h.getAttribute("exportparts"))===null||o===void 0?void 0:o.split(",").map(x=>x.split(":")[1]))!==null&&a!==void 0?a:[],_=[...b,...S].filter(l).map(x=>x.trim());for(let x of _)d.add(x)}if(d.size===0){this.exportparts=void 0;return}let p=[...d.values()].flatMap(h=>u.map(b=>`${h}:${b}--${h}`));this.exportparts=[...this.part,...p].join(", ")}};Ml=Nl;ni([(0,Lr.property)()],$t.prototype,"exportpartsPrefix",void 0);ni([Rl([])],$t.prototype,"exportpartsPrefixes",void 0);ni([(0,Lr.property)({reflect:!0})],$t.prototype,"exportparts",void 0);ni([(0,Lr.property)()],$t.prototype,"customStylesheet",void 0);ni([(0,Lr.property)()],$t.prototype,"elementToFocus",void 0);ni([(0,Lr.state)()],$t.prototype,"useAdoptedStyleSheets",void 0);function On(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ui=Symbol("internalReduxEventsUnsubscribers"),nr=Symbol("internalStoresUnsubscribers"),$r=Symbol("internalStores"),Th=Sn(Symbol("withRedux"),function(t){var e,r,i;class s extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(o){super.willUpdate(o),[...this.reduxConstructor.reduxReactiveProperties].some(a=>o.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[$r].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[$r].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[$r].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[$r].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[$r].delete(a)}setupStores(){this.unsubscribeFromStores(),this[$r].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let u=this.getStore(o.store);u&&(o.store?this[nr].has(o.store):this[nr].size>0)&&(this[a]=o.selector(u.getState(),this))}})}subscribeToStore(o,a){var l;this[nr].set(o,a.subscribe(()=>this.updateFromStores())),this[Ui].set(o,[]),On(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((u,d)=>{if(typeof this[d]=="function"&&(!u.store||a.name===u.store)){let p=h=>this[d](h);a.addEventListener(u.eventName,p),this[Ui].get(o).push(()=>a.removeEventListener(u.eventName,p))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[nr].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[nr].has(o)&&this[nr].get(o)(),this[nr].delete(o),(a=this[Ui].get(o))===null||a===void 0||a.forEach(l=>l()),this[Ui].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=nr,r=$r,i=Ui,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),Fl=class extends Th($t){};function Oe(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var kh=typeof Symbol=="function"&&Symbol.observable||"@@observable",Bl=kh,Zs=()=>Math.random().toString(36).substring(7).split("").join("."),Lh={INIT:`@@redux/INIT${Zs()}`,REPLACE:`@@redux/REPLACE${Zs()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Zs()}`},_n=Lh;function Rn(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function Js(t,e,r){if(typeof t!="function")throw new Error(Oe(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Oe(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Oe(1));return r(Js)(t,e)}let i=t,s=e,n=new Map,o=n,a=0,l=!1;function u(){o===n&&(o=new Map,n.forEach((x,T)=>{o.set(T,x)}))}function d(){if(l)throw new Error(Oe(3));return s}function p(x){if(typeof x!="function")throw new Error(Oe(4));if(l)throw new Error(Oe(5));let T=!0;u();let j=a++;return o.set(j,x),function(){if(T){if(l)throw new Error(Oe(6));T=!1,u(),o.delete(j),n=null}}}function h(x){if(!Rn(x))throw new Error(Oe(7));if(typeof x.type>"u")throw new Error(Oe(8));if(typeof x.type!="string")throw new Error(Oe(17));if(l)throw new Error(Oe(9));try{l=!0,s=i(s,x)}finally{l=!1}return(n=o).forEach(j=>{j()}),x}function b(x){if(typeof x!="function")throw new Error(Oe(10));i=x,h({type:_n.REPLACE})}function S(){let x=p;return{subscribe(T){if(typeof T!="object"||T===null)throw new Error(Oe(11));function j(){let I=T;I.next&&I.next(d())}return j(),{unsubscribe:x(j)}},[Bl](){return this}}}return h({type:_n.INIT}),{dispatch:h,subscribe:p,getState:d,replaceReducer:b,[Bl]:S}}function $h(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:_n.INIT})>"u")throw new Error(Oe(12));if(typeof r(void 0,{type:_n.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Oe(13))})}function Ul(t){let e=Object.keys(t),r={};for(let o=0;o<e.length;o++){let a=e[o];typeof t[a]=="function"&&(r[a]=t[a])}let i=Object.keys(r),s,n;try{$h(r)}catch(o){n=o}return function(a={},l){if(n)throw n;let u=!1,d={};for(let p=0;p<i.length;p++){let h=i[p],b=r[h],S=a[h],_=b(S,l);if(typeof _>"u"){let x=l&&l.type;throw new Error(Oe(14))}d[h]=_,u=u||_!==S}return u=u||i.length!==Object.keys(a).length,u?d:a}}function zi(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function zl(...t){return e=>(r,i)=>{let s=e(r,i),n=()=>{throw new Error(Oe(15))},o={getState:s.getState,dispatch:(l,...u)=>n(l,...u)},a=t.map(l=>l(o));return n=zi(...a)(s.dispatch),{...s,dispatch:n}}}function Vl(t){return Rn(t)&&"type"in t&&typeof t.type=="string"}var Xl=Symbol.for("immer-nothing"),Hl=Symbol.for("immer-draftable"),Ie=Symbol.for("immer-state");function Et(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var et=Object,oi=et.getPrototypeOf,$n="constructor",Fn="prototype",io="configurable",Dn="enumerable",kn="writable",Vi="value",Dt=t=>!!t&&!!t[Ie];function tt(t){return t?Zl(t)||Un(t)||!!t[Hl]||!!t[$n]?.[Hl]||zn(t)||Vn(t):!1}var Dh=et[Fn][$n].toString(),jl=new WeakMap;function Zl(t){if(!t||!po(t))return!1;let e=oi(t);if(e===null||e===et[Fn])return!0;let r=et.hasOwnProperty.call(e,$n)&&e[$n];if(r===Object)return!0;if(!si(r))return!1;let i=jl.get(r);return i===void 0&&(i=Function.toString.call(r),jl.set(r,i)),i===Dh}function Bn(t,e,r=!0){qi(t)===0?(r?Reflect.ownKeys(t):et.keys(t)).forEach(s=>{e(s,t[s],t)}):t.forEach((i,s)=>e(s,i,t))}function qi(t){let e=t[Ie];return e?e.type_:Un(t)?1:zn(t)?2:Vn(t)?3:0}var eo=(t,e,r=qi(t))=>r===2?t.has(e):et[Fn].hasOwnProperty.call(t,e),no=(t,e,r=qi(t))=>r===2?t.get(e):t[e],Pn=(t,e,r,i=qi(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function Ph(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Un=Array.isArray,zn=t=>t instanceof Map,Vn=t=>t instanceof Set,po=t=>typeof t=="object",si=t=>typeof t=="function",to=t=>typeof t=="boolean";function Ih(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var qt=t=>t.copy_||t.base_;var ho=t=>t.modified_?t.copy_:t.base_;function so(t,e){if(zn(t))return new Map(t);if(Vn(t))return new Set(t);if(Un(t))return Array[Fn].slice.call(t);let r=Zl(t);if(e===!0||e==="class_only"&&!r){let i=et.getOwnPropertyDescriptors(t);delete i[Ie];let s=Reflect.ownKeys(i);for(let n=0;n<s.length;n++){let o=s[n],a=i[o];a[kn]===!1&&(a[kn]=!0,a[io]=!0),(a.get||a.set)&&(i[o]={[io]:!0,[kn]:!0,[Dn]:a[Dn],[Vi]:t[o]})}return et.create(oi(t),i)}else{let i=oi(t);if(i!==null&&r)return{...t};let s=et.create(i);return et.assign(s,t)}}function fo(t,e=!1){return Hn(t)||Dt(t)||!tt(t)||(qi(t)>1&&et.defineProperties(t,{set:Tn,add:Tn,clear:Tn,delete:Tn}),et.freeze(t),e&&Bn(t,(r,i)=>{fo(i,!0)},!1)),t}function Mh(){Et(2)}var Tn={[Vi]:Mh};function Hn(t){return t===null||!po(t)?!0:et.isFrozen(t)}var In="MapSet",oo="Patches",ql="ArrayMethods",Jl={};function Dr(t){let e=Jl[t];return e||Et(0,t),e}var Wl=t=>!!Jl[t];var Hi,ec=()=>Hi,Nh=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Wl(In)?Dr(In):void 0,arrayMethodsPlugin_:Wl(ql)?Dr(ql):void 0});function Kl(t,e){e&&(t.patchPlugin_=Dr(oo),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function ao(t){lo(t),t.drafts_.forEach(Fh),t.drafts_=null}function lo(t){t===Hi&&(Hi=t.parent_)}var Gl=t=>Hi=Nh(Hi,t);function Fh(t){let e=t[Ie];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Ql(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[Ie].modified_&&(ao(e),Et(4)),tt(t)&&(t=Yl(e,t));let{patchPlugin_:s}=e;s&&s.generateReplacementPatches_(r[Ie].base_,t,e)}else t=Yl(e,r);return Bh(e,t,!0),ao(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Xl?t:void 0}function Yl(t,e){if(Hn(e))return e;let r=e[Ie];if(!r)return Mn(e,t.handledSet_,t);if(!jn(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);ic(r,t)}return r.copy_}function Bh(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&fo(e,r)}function tc(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var jn=(t,e)=>t.scope_===e,Uh=[];function rc(t,e,r,i){let s=qt(t),n=t.type_;if(i!==void 0&&no(s,i,n)===e){Pn(s,i,r,n);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;Bn(s,(l,u)=>{if(Dt(u)){let d=a.get(u)||[];d.push(l),a.set(u,d)}})}let o=t.draftLocations_.get(e)??Uh;for(let a of o)Pn(s,a,r,n)}function zh(t,e,r){t.callbacks_.push(function(s){let n=e;if(!n||!jn(n,s))return;s.mapSetPlugin_?.fixSetContents(n);let o=ho(n);rc(t,n.draft_??n,o,r),ic(n,s)})}function ic(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let s=i.getPath(t);s&&i.generatePatches_(t,s,e)}tc(t)}}function Vh(t,e,r){let{scope_:i}=t;if(Dt(r)){let s=r[Ie];jn(s,i)&&s.callbacks_.push(function(){Ln(t);let o=ho(s);rc(t,r,o,e)})}else tt(r)&&t.callbacks_.push(function(){let n=qt(t);t.type_===3?n.has(r)&&Mn(r,i.handledSet_,i):no(n,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Mn(no(t.copy_,e,t.type_),i.handledSet_,i)})}function Mn(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Dt(t)||e.has(t)||!tt(t)||Hn(t)||(e.add(t),Bn(t,(i,s)=>{if(Dt(s)){let n=s[Ie];if(jn(n,r)){let o=ho(n);Pn(t,i,o,t.type_),tc(n)}}else tt(s)&&Mn(s,e,r)})),t}function Hh(t,e){let r=Un(t),i={type_:r?1:0,scope_:e?e.scope_:ec(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},s=i,n=Nn;r&&(s=[i],n=ji);let{revoke:o,proxy:a}=Proxy.revocable(s,n);return i.draft_=a,i.revoke_=o,[a,i]}var Nn={get(t,e){if(e===Ie)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let s=qt(t);if(!eo(s,e,t.type_))return qh(t,s,e);let n=s[e];if(t.finalized_||!tt(n)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&Ih(e))return n;if(n===ro(t.base_,e)||jh(t,e,n)){Ln(t);let o=t.type_===1?+e:e,a=uo(t.scope_,n,t,o);return t.copy_[o]=a}return n},has(t,e){return e in qt(t)},ownKeys(t){return Reflect.ownKeys(qt(t))},set(t,e,r){let i=nc(qt(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let s=ro(qt(t),e),n=s?.[Ie];if(n&&n.base_===r)return t.copy_[e]=r,t.assigned_.set(e,!1),!0;if(Ph(r,s)&&(r!==void 0||eo(t.base_,e,t.type_)))return!0;Ln(t),co(t)}return t.copy_[e]===r&&(r!==void 0||eo(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),Vh(t,e,r)),!0},deleteProperty(t,e){return Ln(t),ro(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),co(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=qt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[kn]:!0,[io]:t.type_!==1||e!=="length",[Dn]:i[Dn],[Vi]:r[e]}},defineProperty(){Et(11)},getPrototypeOf(t){return oi(t.base_)},setPrototypeOf(){Et(12)}},ji={};for(let t in Nn){let e=Nn[t];ji[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}ji.deleteProperty=function(t,e){return ji.set.call(this,t,e,void 0)};ji.set=function(t,e,r){return Nn.set.call(this,t[0],e,r,t[0])};function ro(t,e){let r=t[Ie];return(r?qt(r):t)[e]}function jh(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!tt(r)||r[Ie]?!1:t.baseRefs_.has(r)}function qh(t,e,r){let i=nc(e,r);return i?Vi in i?i[Vi]:i.get?.call(t.draft_):void 0}function nc(t,e){if(!(e in t))return;let r=oi(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=oi(r)}}function co(t){t.modified_||(t.modified_=!0,t.parent_&&co(t.parent_))}function Ln(t){t.copy_||(t.assigned_=new Map,t.copy_=so(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Wh=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(si(e)&&!si(r)){let n=r;r=e;let o=this;return function(l=n,...u){return o.produce(l,d=>r.call(this,d,...u))}}si(r)||Et(6),i!==void 0&&!si(i)&&Et(7);let s;if(tt(e)){let n=Gl(this),o=uo(n,e,void 0),a=!0;try{s=r(o),a=!1}finally{a?ao(n):lo(n)}return Kl(n,i),Ql(s,n)}else if(!e||!po(e)){if(s=r(e),s===void 0&&(s=e),s===Xl&&(s=void 0),this.autoFreeze_&&fo(s,!0),i){let n=[],o=[];Dr(oo).generateReplacementPatches_(e,s,{patches_:n,inversePatches_:o}),i(n,o)}return s}else Et(1,e)},this.produceWithPatches=(e,r)=>{if(si(e))return(o,...a)=>this.produceWithPatches(o,l=>e(l,...a));let i,s;return[this.produce(e,r,(o,a)=>{i=o,s=a}),i,s]},to(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),to(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),to(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){tt(t)||Et(8),Dt(t)&&(t=sc(t));let e=Gl(this),r=uo(e,t,void 0);return r[Ie].isManual_=!0,lo(e),r}finishDraft(t,e){let r=t&&t[Ie];(!r||!r.isManual_)&&Et(9);let{scope_:i}=r;return Kl(i,e),Ql(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let s=e[r];if(s.path.length===0&&s.op==="replace"){t=s.value;break}}r>-1&&(e=e.slice(r+1));let i=Dr(oo).applyPatches_;return Dt(t)?i(t,e):this.produce(t,s=>i(s,e))}};function uo(t,e,r,i){let[s,n]=zn(e)?Dr(In).proxyMap_(e,r):Vn(e)?Dr(In).proxySet_(e,r):Hh(e,r);return(r?.scope_??ec()).drafts_.push(s),n.callbacks_=r?.callbacks_??[],n.key_=i,r&&i!==void 0?zh(r,n,i):n.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(n);let{patchPlugin_:u}=l;n.modified_&&u&&u.generatePatches_(n,[],l)}),s}function sc(t){return Dt(t)||Et(10,t),oc(t)}function oc(t){if(!tt(t)||Hn(t))return t;let e=t[Ie],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=so(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=so(t,!0);return Bn(r,(s,n)=>{Pn(r,s,oc(n))},i),e&&(e.finalized_=!1),r}var Kh=globalThis.Iterator,_g=typeof Kh?.from=="function";var Gh=new Wh,mo=Gh.produce;function ac(t){return({dispatch:r,getState:i})=>s=>n=>typeof n=="function"?n(r,i,t):s(n)}var lc=ac(),cc=ac;var Qh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?zi:zi.apply(null,arguments)},Pg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},Yh=t=>t&&typeof t.match=="function";function sr(t,e){function r(...i){if(e){let s=e(...i);if(!s)throw new Error(Wt(0));return{type:t,payload:s.payload,..."meta"in s&&{meta:s.meta},..."error"in s&&{error:s.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>Vl(i)&&i.type===t,r}var fc=class Wi extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Wi.prototype)}static get[Symbol.species](){return Wi}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Wi(...e[0].concat(this)):new Wi(...e.concat(this))}};function uc(t){return tt(t)?mo(t,()=>{}):t}function qn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Xh(t){return typeof t=="boolean"}var Zh=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:s=!0,actionCreatorCheck:n=!0}=e??{},o=new fc;return r&&(Xh(r)?o.push(lc):o.push(cc(r.extraArgument))),o},Jh="RTK_autoBatch";var dc=t=>e=>{setTimeout(e,t)},ef=(t,e)=>r=>{let i=!1,s=()=>{i||(i=!0,cancelAnimationFrame(n),clearTimeout(o),r())},n=t(s),o=setTimeout(s,e)},tf=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),s=!0,n=!1,o=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?ef(window.requestAnimationFrame,100):dc(10):t.type==="callback"?t.queueNotification:dc(t.timeout),u=()=>{o=!1,n&&(n=!1,a.forEach(d=>d()))};return Object.assign({},i,{subscribe(d){let p=()=>s&&d(),h=i.subscribe(p);return a.add(d),()=>{h(),a.delete(d)}},dispatch(d){try{return s=!d?.meta?.[Jh],n=!s,n&&(o||(o=!0,l(u))),i.dispatch(d)}finally{s=!0}}})},rf=t=>function(r){let{autoBatch:i=!0}=r??{},s=new fc(t);return i&&s.push(tf(typeof i=="object"?i:void 0)),s};function mc(t){let e=Zh(),{reducer:r=void 0,middleware:i,devTools:s=!0,duplicateMiddlewareCheck:n=!0,preloadedState:o=void 0,enhancers:a=void 0}=t||{},l;if(typeof r=="function")l=r;else if(Rn(r))l=Ul(r);else throw new Error(Wt(1));let u;typeof i=="function"?u=i(e):u=e();let d=zi;s&&(d=Qh({trace:!1,...typeof s=="object"&&s}));let p=zl(...u),h=rf(p),b=typeof a=="function"?a(h):h(),S=d(...b);return Js(l,o,S)}function gc(t){let e={},r=[],i,s={addCase(n,o){let a=typeof n=="string"?n:n.type;if(!a)throw new Error(Wt(28));if(a in e)throw new Error(Wt(29));return e[a]=o,s},addAsyncThunk(n,o){return o.pending&&(e[n.pending.type]=o.pending),o.rejected&&(e[n.rejected.type]=o.rejected),o.fulfilled&&(e[n.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:n.settled,reducer:o.settled}),s},addMatcher(n,o){return r.push({matcher:n,reducer:o}),s},addDefaultCase(n){return i=n,s}};return t(s),[e,r,i]}function nf(t){return typeof t=="function"}function sf(t,e){let[r,i,s]=gc(e),n;if(nf(t))n=()=>uc(t());else{let a=uc(t);n=()=>a}function o(a=n(),l){let u=[r[l.type],...i.filter(({matcher:d})=>d(l)).map(({reducer:d})=>d)];return u.filter(d=>!!d).length===0&&(u=[s]),u.reduce((d,p)=>{if(p)if(Dt(d)){let b=p(d,l);return b===void 0?d:b}else{if(tt(d))return mo(d,h=>p(h,l));{let h=p(d,l);if(h===void 0){if(d===null)return d;throw Error("A case reducer on a non-draftable value must not return undefined")}return h}}return d},a)}return o.getInitialState=n,o}var of=(t,e)=>Yh(t)?t.match(e):t(e);function af(...t){return e=>t.some(r=>of(r,e))}var lf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",cf=(t=21)=>{let e="",r=t;for(;r--;)e+=lf[Math.random()*64|0];return e},uf=["name","message","stack","code"],go=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},pc=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},df=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of uf)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},hc="External signal was aborted",pf=(()=>{function t(e,r,i){let s=sr(e+"/fulfilled",(l,u,d,p)=>({payload:l,meta:{...p||{},arg:d,requestId:u,requestStatus:"fulfilled"}})),n=sr(e+"/pending",(l,u,d)=>({payload:void 0,meta:{...d||{},arg:u,requestId:l,requestStatus:"pending"}})),o=sr(e+"/rejected",(l,u,d,p,h)=>({payload:p,error:(i&&i.serializeError||df)(l||"Rejected"),meta:{...h||{},arg:d,requestId:u,rejectedWithValue:!!p,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:u}={}){return(d,p,h)=>{let b=i?.idGenerator?i.idGenerator(l):cf(),S=new AbortController,_,x;function T(E){x=E,S.abort()}u&&(u.aborted?T(hc):u.addEventListener("abort",()=>T(hc),{once:!0}));let j=(async function(){let E;try{let U=i?.condition?.(l,{getState:p,extra:h});if(ff(U)&&(U=await U),U===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let ue=new Promise((J,de)=>{_=()=>{de({name:"AbortError",message:x||"Aborted"})},S.signal.addEventListener("abort",_,{once:!0})});d(n(b,l,i?.getPendingMeta?.({requestId:b,arg:l},{getState:p,extra:h}))),E=await Promise.race([ue,Promise.resolve(r(l,{dispatch:d,getState:p,extra:h,requestId:b,signal:S.signal,abort:T,rejectWithValue:((J,de)=>new go(J,de)),fulfillWithValue:((J,de)=>new pc(J,de))})).then(J=>{if(J instanceof go)throw J;return J instanceof pc?s(J.payload,b,l,J.meta):s(J,b,l)})])}catch(U){E=U instanceof go?o(null,b,l,U.payload,U.meta):o(U,b,l)}finally{_&&S.signal.removeEventListener("abort",_)}return i&&!i.dispatchConditionRejection&&o.match(E)&&E.meta.condition||d(E),E})();return Object.assign(j,{abort:T,requestId:b,arg:l,unwrap(){return j.then(hf)}})}}return Object.assign(a,{pending:n,rejected:o,fulfilled:s,settled:af(o,s),typePrefix:e})}return t.withTypes=()=>t,t})();function hf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function ff(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var yc=Symbol.for("rtk-slice-createasyncthunk"),Mg={[yc]:pf};function mf(t,e){return`${t}/${e}`}function gf({creators:t}={}){let e=t?.asyncThunk?.[yc];return function(i){let{name:s,reducerPath:n=s}=i;if(!s)throw new Error(Wt(11));typeof process<"u";let o=(typeof i.reducers=="function"?i.reducers(bf()):i.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(E,I){let U=typeof E=="string"?E:E.type;if(!U)throw new Error(Wt(12));if(U in l.sliceCaseReducersByType)throw new Error(Wt(13));return l.sliceCaseReducersByType[U]=I,u},addMatcher(E,I){return l.sliceMatchers.push({matcher:E,reducer:I}),u},exposeAction(E,I){return l.actionCreators[E]=I,u},exposeCaseReducer(E,I){return l.sliceCaseReducersByName[E]=I,u}};a.forEach(E=>{let I=o[E],U={reducerName:E,type:mf(s,E),createNotation:typeof i.reducers=="function"};xf(I)?Ef(U,I,u,e):vf(U,I,u)});function d(){let[E={},I=[],U=void 0]=typeof i.extraReducers=="function"?gc(i.extraReducers):[i.extraReducers],ue={...E,...l.sliceCaseReducersByType};return sf(i.initialState,J=>{for(let de in ue)J.addCase(de,ue[de]);for(let de of l.sliceMatchers)J.addMatcher(de.matcher,de.reducer);for(let de of I)J.addMatcher(de.matcher,de.reducer);U&&J.addDefaultCase(U)})}let p=E=>E,h=new Map,b=new WeakMap,S;function _(E,I){return S||(S=d()),S(E,I)}function x(){return S||(S=d()),S.getInitialState()}function T(E,I=!1){function U(J){let de=J[E];return typeof de>"u"&&I&&(de=qn(b,U,x)),de}function ue(J=p){let de=qn(h,I,()=>new WeakMap);return qn(de,J,()=>{let Ai={};for(let[ct,br]of Object.entries(i.selectors??{}))Ai[ct]=yf(br,J,()=>qn(b,J,x),I);return Ai})}return{reducerPath:E,getSelectors:ue,get selectors(){return ue(U)},selectSlice:U}}let j={name:s,reducer:_,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:x,...T(n),injectInto(E,{reducerPath:I,...U}={}){let ue=I??n;return E.inject({reducerPath:ue,reducer:_},U),{...j,...T(ue,!0)}}};return j}}function yf(t,e,r,i){function s(n,...o){let a=e(n);return typeof a>"u"&&i&&(a=r()),t(a,...o)}return s.unwrapped=t,s}var bc=gf();function bf(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function vf({type:t,reducerName:e,createNotation:r},i,s){let n,o;if("reducer"in i){if(r&&!Sf(i))throw new Error(Wt(17));n=i.reducer,o=i.prepare}else n=i;s.addCase(t,n).exposeCaseReducer(e,n).exposeAction(e,o?sr(t,o):sr(t))}function xf(t){return t._reducerDefinitionType==="asyncThunk"}function Sf(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Ef({type:t,reducerName:e},r,i,s){if(!s)throw new Error(Wt(18));let{payloadCreator:n,fulfilled:o,pending:a,rejected:l,settled:u,options:d}=r,p=s(t,n,d);i.exposeAction(e,p),o&&i.addCase(p.fulfilled,o),a&&i.addCase(p.pending,a),l&&i.addCase(p.rejected,l),u&&i.addMatcher(p.settled,u),i.exposeCaseReducer(e,{fulfilled:o||Wn,pending:a||Wn,rejected:l||Wn,settled:u||Wn})}function Wn(){}var vc="listener",xc="completed",Sc="cancelled",Ng=`task-${Sc}`,Fg=`task-${xc}`,Bg=`${vc}-${Sc}`,Ug=`${vc}-${xc}`;var{assign:Ec}=Object;var yo="listenerMiddleware";var Cf=Ec(sr(`${yo}/add`),{withTypes:()=>Cf}),zg=sr(`${yo}/removeAll`),Af=Ec(sr(`${yo}/remove`),{withTypes:()=>Af});function Wt(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var wf=Sn(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)}}}),Kn=class extends wf(Object){};window.ftReduxStores||(window.ftReduxStores={});var Cc=class t extends Kn{static get(e){var r;let i=typeof e=="string"?e:e.name,s=typeof e=="string"?void 0:e,n=window.ftReduxStores[i];if(On(n))return n;if(s==null)return;let o=bc({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),a=mc({reducer:(l,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let d=Fi(o.getInitialState());for(let p of u.keeping)d[p]=(l??d)[p];return d}else if(typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...u.overwrites};return o.reducer(l,u)}});return window.ftReduxStores[s.name]=new t(o,a,s.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new En,this.injectInto=(n,o)=>this.reduxSlice.injectInto(n,o),this.selectSlice=n=>this.reduxSlice.selectSlice(n);let s=n=>n!=null?JSON.parse(JSON.stringify(n)):n;this.actions=new Proxy(this.reduxSlice.actions,{get:(n,o,a)=>{let l=o,u=n[l];return u?(...d)=>{let p=u(...d.map(s));return this.reduxStore.dispatch(p),p}:d=>{let p=l,h=this.getState()[p];ri(h,d)||this.setState({[p]:s(d)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var Gn=class{static format(e,r,i,s,n){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,s,!!n)):this.getIntlDateTime(e,r,i,s,!!n)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,s,n){let o=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(o),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return n?l:s?`${a} ${l}`:a}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var Qn=c(f()),Of="ft-app-info",or=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};or.eventName="authentication-change";var Ki=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Ki.eventName="ui-locale-changed";var _f={session:(t,e)=>{(0,Qn.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>O.dispatchEvent(new or(e.payload)),0))}},O=Qn.FtReduxStore.get({name:Of,reducers:_f,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var Ac=c(f()),Yn=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},yy=(0,Ac.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(O)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var s,n;return((n=(s=this.metadataDescriptors.find(a=>a.key===i))===null||s===void 0?void 0:s.date)!==null&&n!==void 0?n:!1)?a=>Gn.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Yn([(0,bo.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Yn([(0,bo.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Yn([Xs({store:O.name,selector:r=>{var i,s;return(s=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&s!==void 0?s:[]}})],e.prototype,"metadataDescriptors",void 0),Yn([Xs({store:O.name})],e.prototype,"uiLocale",void 0),e});var wc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(wc||(wc={}));var Oc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Oc||(Oc={}));var _c;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(_c||(_c={}));var Rc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Rc||(Rc={}));var Tc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Tc||(Tc={}));var kc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(kc||(kc={}));var Lc;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Lc||(Lc={}));var $c;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})($c||($c={}));var Dc;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Dc||(Dc={}));var Pc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(Pc||(Pc={}));var Ic;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(Ic||(Ic={}));var Mc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Mc||(Mc={}));var Nc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Nc||(Nc={}));var Fc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Fc||(Fc={}));var Bc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Bc||(Bc={}));var Uc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Uc||(Uc={}));var vo;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(vo||(vo={}));var zc;(function(t){t.ASC="ASC",t.DESC="DESC"})(zc||(zc={}));var Vc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Vc||(Vc={}));var xo;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(xo||(xo={}));var Hc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Hc||(Hc={}));var jc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(jc||(jc={}));var qc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(qc||(qc={}));var Wc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Wc||(Wc={}));var Kc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Kc||(Kc={}));var So;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(So||(So={}));var Gc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Gc||(Gc={}));var pe;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(pe||(pe={}));var dt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(dt||(dt={}));var Qc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Qc||(Qc={}));var Yc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Yc||(Yc={}));var Xc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Xc||(Xc={}));var Zc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Zc||(Zc={}));var Jc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Jc||(Jc={}));var eu;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(eu||(eu={}));var tu;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(tu||(tu={}));var ru;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(ru||(ru={}));var iu;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(iu||(iu={}));var nu;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(nu||(nu={}));var su;(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"})(su||(su={}));var ou;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(ou||(ou={}));var Rf={[pe.PERSONAL_BOOK_SHARE_USER]:[pe.PERSONAL_BOOK_USER],[pe.HTML_EXPORT_USER]:[pe.PERSONAL_BOOK_USER],[pe.PDF_EXPORT_USER]:[pe.PERSONAL_BOOK_USER],[pe.KHUB_ADMIN]:[pe.CONTENT_PUBLISHER],[pe.ADMIN]:[pe.KHUB_ADMIN,pe.USERS_ADMIN,pe.PORTAL_ADMIN,pe.BEHAVIOR_DATA_USER],[pe.GENERATIVE_AI_EXPORT_USER]:[pe.GENERATIVE_AI_USER]};function au(t,e){return t===e||(Rf[t]??[]).some(r=>au(r,e))}function Eo(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>au(i,e))}var ts=c(f());var Co=c(f());var Pr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=O.getState(),s=e??i;if(r&&s&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,s,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let s=O.subscribe(()=>{i=t.get(e),i&&(s(),r(i))})}})}};var ai=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Pr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Pr.await()}};var Qe=class extends ai{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(n,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[l])=>a.localeCompare(l)));let s=this.constructor;s.commonCache=(i=s.commonCache)!==null&&i!==void 0?i:new Co.CacheRegistry,this.cache=e?s.commonCache:new Co.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var Xn=class extends Qe{async listMySearches(){let{session:e}=O.getState();return Eo(e,pe.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Zn=class extends Qe{async listMyBookmarks(){let e=O.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Jn=class extends Qe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=O.getState().session;return!!e?.sessionAuthenticated}};var es=class extends Qe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=O.getState().session;return!!e?.sessionAuthenticated}};var Tf="ft-user-assets",kf={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(dt).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:s}=e.payload;wo(t,r,[...Ao(t,r),s]),lu(t,r,1,i),cu(t,s)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;wo(t,r,Ao(t,r).map(s=>s.id===i.id?i:s)),cu(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:s}=e.payload;wo(t,r,Ao(t,r).filter(n=>n.id!==s)),lu(t,r,-1,i)}},uu={[dt.SEARCHES]:"savedSearches",[dt.BOOKMARKS]:"bookmarks",[dt.BOOKS]:void 0,[dt.COLLECTIONS]:void 0},Ao=(t,e)=>{var r;let i=uu[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},wo=(t,e,r)=>{let i=uu[e];i&&(t[i]=r)},lu=(t,e,r,i)=>{let s=t.assetCounts.allAsset[e];if(s!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,s+r),e===dt.BOOKMARKS&&i)){let n=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,n+r)}},cu=(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)},Fe=ts.FtReduxStore.get({name:Tf,reducers:kf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(dt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Oo=class{constructor(e=new Jn,r=new es){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=O.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Zn,this.savedSearchesService=new Xn,O.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=O.getState();(0,ts.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Fe.actions.clearAssetCount(),Fe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Fe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Fe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Fe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Fe.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Fe.getState().assetCounts.allAsset[e]!==r.count&&Fe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Fe.getState().assetCounts.bookmarkByMap[e]!==r.count&&Fe.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Fe.getState().assetCounts.bookmarkByMap).length!==0;e===dt.BOOKMARKS&&r&&Fe.actions.clearBookmarkCountByMap(),Fe.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Fe.actions.bookmarks(r)}}},Lf=new Oo;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Lf);var _o=class{addCommand(e,r=!1){O.commands.add(e,r)}consumeCommand(e){return O.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new _o;var pt=c(f());var du,li=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},$f=Symbol("clearAfterUnitTest"),rs=class extends(0,pt.withEventBus)(Qe){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[du]=()=>{this.defaultMessages={},this.cache=new pt.CacheRegistry,this.listeners={}},this.currentUiLocale=O.getState().uiLocale,O.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=O.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let s={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,pt.deepEqual)(this.defaultMessages[e],s)||(this.defaultMessages[e]=s,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var s;let n=e.toLowerCase(),o=this.resolveContext(n);return new pt.ParametrizedLabelResolver((s=this.defaultMessages[n])!==null&&s!==void 0?s:{},o).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(s){!(s instanceof pt.CanceledPromiseError)&&r&&console.error(s)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var s;return(s=this.listeners[e])===null||s===void 0?void 0:s.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new li({loadedContexts:e})),this.dispatchEvent(new li({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new li({loadedContexts:[e]})),this.dispatchEvent(new li({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,pt.delay)(0).then(()=>i()).catch(()=>null)))}};du=$f;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends rs{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends rs{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var ci=window.FluidTopicsI18nService,is=window.FluidTopicsCustomI18nService;var pu=c(f()),Ro=class{highlightHtml(e,r,i){(0,pu.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Ro;var hu=c(f());var To=class{isDate(e){var r,i,s,n;return(n=(s=((i=(r=O.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===e))===null||s===void 0?void 0:s.date)!==null&&n!==void 0?n:!1}format(e,r){var i,s,n,o;if(e==null)return"";try{return hu.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:O.getState().uiLocale,(s=r?.longFormat)!==null&&s!==void 0?s:!1,(n=r?.withTime)!==null&&n!==void 0?n:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new To;var fu=c(f());var Kt=class{static get(e,r){var i,s,n,o;let a=O.getState(),{lang:l,region:u}=(n=(s=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||s===void 0?void 0:s.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new fu.SearchPlaceConverter(a.baseUrl,e??20,(o=a.localesConfiguration)===null||o===void 0?void 0:o.allLanguagesAllowed,r??`${l}-${u}`)}};var ko=class{urlToSearchRequest(e){return Kt.get().parse(e)}searchRequestToUrl(e){return Kt.get().serialize(e)}};window.FluidTopicsUrlService=new ko;var Gt=c(f());var Ir=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Ir.eventName="before-location-change";var Mr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Mr.eventName="change";var Lo=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))}},mu=new Lo;var ns=class t extends Gt.WithEventBus{static build(){return new t(window.history,mu,()=>window.location,!1)}constructor(e,r,i,s){var n,o;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(o=(n=e.state)===null||n===void 0?void 0:n.index)!==null&&o!==void 0?o:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(s)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Gt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Mr(this.currentItem())),0)}installProxies(){let e=r=>(i,s,[n,o,a])=>{let l=new Ir(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(l);let u=r(),d={...u===this.currentIndex?this.currentState:void 0,...n,index:u,href:l.detail.nextLocation.href};i.apply(s,[d,o,d.href]),this.setCurrentState(d,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addBeforeLocationChangeListener(e){this.addEventListener(Ir.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Ir.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Mr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Mr.eventName,e)}currentItem(){return(0,Gt.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Gt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Gt.deepCopy)(r.find(i=>e(i)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,Gt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let s=e,n=e+1;for(;this.states.length>n&&!this.isDifferentMajorState(n,i);)this.hasState(n)&&(s=n),n++;return s}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let s=r??this.currentState.majorStateId,n=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return n==null||n!=s}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=ns.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 gu=c(v());var yu=gu.css`
|
|
271
|
-
`;var vu=c(v()),Be=c(V()),Br=c(f());var Nr=c(f());function bu(t,e){let{authenticationRequired:r,session:i}=O.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var
|
|
270
|
+
`;var el=["top","right","bottom","left"],Ja=["start","end"],Hn=el.reduce((t,e)=>t.concat(e,e+"-"+Ja[0],e+"-"+Ja[1]),[]),Li=Math.min,tr=Math.max,$i=Math.round;var Lt=t=>({x:t,y:t}),oh={left:"right",right:"left",bottom:"top",top:"bottom"};function tl(t,e,r){return tr(t,Li(e,r))}function ps(t,e){return typeof t=="function"?t(e):t}function Di(t){return t.split("-")[0]}function rr(t){return t.split("-")[1]}function jn(t){return t==="x"?"y":"x"}function qn(t){return t==="y"?"height":"width"}function hs(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Wn(t){return jn(hs(t))}function rl(t,e,r){r===void 0&&(r=!1);let i=rr(t),n=Wn(t),s=qn(n),o=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=Vn(o)),[o,Vn(o)]}function il(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Vn(t){let e=Di(t);return oh[e]+t.slice(e.length)}function ah(t){var e,r,i,n;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(n=t.left)!=null?n:0}}function sl(t){return typeof t!="number"?ah(t):{top:t,right:t,bottom:t,left:t}}function Rr(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function nl(t,e,r){let{reference:i,floating:n}=t,s=hs(e),o=Wn(e),a=qn(o),l=Di(e),u=s==="y",d=i.x+i.width/2-n.width/2,p=i.y+i.height/2-n.height/2,h=i[a]/2-n[a]/2,b;switch(l){case"top":b={x:d,y:i.y-n.height};break;case"bottom":b={x:d,y:i.y+i.height};break;case"right":b={x:i.x+i.width,y:p};break;case"left":b={x:i.x-n.width,y:p};break;default:b={x:i.x,y:i.y}}let S=rr(e);return S&&(b[o]+=h*(S==="end"?1:-1)*(r&&u?-1:1)),b}async function ol(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:s,rects:o,elements:a,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:b=0}=ps(e,t),S=sl(b),x=a[h?p==="floating"?"reference":"floating":p],T=Rr(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(x)))==null||r?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),j=p==="floating"?{x:i,y:n,width:o.floating.width,height:o.floating.height}:o.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),I=await(s.isElement==null?void 0:s.isElement(E))&&await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1},U=Rr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:j,offsetParent:E,strategy:l}):j);return{top:(T.top-U.top+S.top)/I.y,bottom:(U.bottom-T.bottom+S.bottom)/I.y,left:(T.left-U.left+S.left)/I.x,right:(U.right-T.right+S.right)/I.x}}var lh=50,al=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:s=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:ol},l=await(o.isRTL==null?void 0:o.isRTL(e)),u=await o.getElementRects({reference:t,floating:e,strategy:n}),{x:d,y:p}=nl(u,i,l),h=i,b=0,S={};for(let _=0;_<s.length;_++){let x=s[_];if(!x)continue;let{name:T,fn:j}=x,{x:E,y:I,data:U,reset:ue}=await j({x:d,y:p,initialPlacement:i,placement:h,strategy:n,middlewareData:S,rects:u,platform:a,elements:{reference:t,floating:e}});d=E??d,p=I??p,S[T]={...S[T],...U},ue&&b<lh&&(b++,typeof ue=="object"&&(ue.placement&&(h=ue.placement),ue.rects&&(u=ue.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:n}):ue.rects),{x:d,y:p}=nl(u,h,l)),_=-1)}return{x:d,y:p,placement:h,strategy:n,middlewareData:S}};function ch(t,e,r){return(t?[...r.filter(n=>rr(n)===t),...r.filter(n=>rr(n)!==t)]:r.filter(n=>Di(n)===n)).filter(n=>t?rr(n)===t||(e?il(n)!==n:!1):!0)}var ll=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:s,middlewareData:o,placement:a,platform:l,elements:u}=e,{crossAxis:d=!1,alignment:p,allowedPlacements:h=Hn,autoAlignment:b=!0,...S}=ps(t,e),_=p!==void 0||h===Hn?ch(p||null,b,h):h,x=((r=o.autoPlacement)==null?void 0:r.index)||0,T=_[x];if(T==null)return{};if(a!==T)return{reset:{placement:_[0]}};let j=await l.detectOverflow(e,S),E=rl(T,s,await(l.isRTL==null?void 0:l.isRTL(u.floating))),I=[j[Di(T)],j[E[0]],j[E[1]]],U=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:T,overflows:I}],ue=_[x+1];if(ue)return{data:{index:x+1,overflows:U},reset:{placement:ue}};let J=U.map(ct=>{let br=rr(ct.placement);return[ct.placement,br&&d?ct.overflows.slice(0,2).reduce((Kp,Gp)=>Kp+Gp,0):ct.overflows[0],ct.overflows]}).sort((ct,br)=>ct[1]-br[1]),Ai=((n=J.filter(ct=>ct[2].slice(0,rr(ct[0])?2:3).every(br=>br<=0))[0])==null?void 0:n[0])||J[0][0];return Ai!==a?{data:{index:x+1,overflows:U},reset:{placement:Ai}}:{}}}};var cl=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n,platform:s}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:j=>{let{x:E,y:I}=j;return{x:E,y:I}}},...u}=ps(t,e),d={x:r,y:i},p=await s.detectOverflow(e,u),h=hs(n),b=jn(h),S=d[b],_=d[h],x=(j,E)=>tl(E+p[j==="y"?"top":"left"],E,E-p[j==="y"?"bottom":"right"]);o&&(S=x(b,S)),a&&(_=x(h,_));let T=l.fn({...e,[b]:S,[h]:_});return{...T,data:{x:T.x-r,y:T.y-i,enabled:{[b]:o,[h]:a}}}}}};function ms(){return typeof window<"u"}function kr(t){return dl(t)?(t.nodeName||"").toLowerCase():"#document"}function Ge(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ht(t){var e;return(e=(dl(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function dl(t){return ms()?t instanceof Node||t instanceof Ge(t).Node:!1}function xt(t){return ms()?t instanceof Element||t instanceof Ge(t).Element:!1}function jt(t){return ms()?t instanceof HTMLElement||t instanceof Ge(t).HTMLElement:!1}function ul(t){return!ms()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ge(t).ShadowRoot}function Pi(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=St(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function pl(t){return/^(table|td|th)$/.test(kr(t))}function Ii(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var uh=/transform|translate|scale|rotate|perspective|filter/,dh=/paint|layout|strict|content/,Tr=t=>!!t&&t!=="none",Kn;function Jr(t){let e=xt(t)?St(t):t;return Tr(e.transform)||Tr(e.translate)||Tr(e.scale)||Tr(e.rotate)||Tr(e.perspective)||!gs()&&(Tr(e.backdropFilter)||Tr(e.filter))||uh.test(e.willChange||"")||dh.test(e.contain||"")}function hl(t){let e=ir(t);for(;jt(e)&&!ei(e);){if(Jr(e))return e;if(Ii(e))return null;e=ir(e)}return null}function gs(){return Kn==null&&(Kn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Kn}function ei(t){return/^(html|body|#document)$/.test(kr(t))}function St(t){return Ge(t).getComputedStyle(t)}function Mi(t){return xt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ir(t){if(kr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||ul(t)&&t.host||Ht(t);return ul(e)?e.host:e}function fl(t){let e=ir(t);return ei(e)?(t.ownerDocument||t).body:jt(e)&&Pi(e)?e:fl(e)}function fs(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=fl(t),s=n===((i=t.ownerDocument)==null?void 0:i.body),o=Ge(n);if(s){let a=ys(o);return e.concat(o,o.visualViewport||[],Pi(n)?n:[],a&&r?fs(a):[])}else return e.concat(n,fs(n,[],r))}function ys(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function yl(t){let e=St(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=jt(t),s=n?t.offsetWidth:r,o=n?t.offsetHeight:i,a=$i(r)!==s||$i(i)!==o;return a&&(r=s,i=o),{width:r,height:i,$:a}}function bl(t){return xt(t)?t:t.contextElement}function ti(t){let e=bl(t);if(!jt(e))return Lt(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:s}=yl(e),o=(s?$i(r.width):r.width)/i,a=(s?$i(r.height):r.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var ph=Lt(0);function vl(t){let e=Ge(t);return!gs()||!e.visualViewport?ph:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function hh(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Ge(t)}function Ni(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),s=bl(t),o=Lt(1);e&&(i?xt(i)&&(o=ti(i)):o=ti(t));let a=hh(s,r,i)?vl(s):Lt(0),l=(n.left+a.x)/o.x,u=(n.top+a.y)/o.y,d=n.width/o.x,p=n.height/o.y;if(s&&i){let h=Ge(s),b=xt(i)?Ge(i):i,S=h,_=ys(S);for(;_&&b!==S;){let x=ti(_),T=_.getBoundingClientRect(),j=St(_),E=T.left+(_.clientLeft+parseFloat(j.paddingLeft))*x.x,I=T.top+(_.clientTop+parseFloat(j.paddingTop))*x.y;l*=x.x,u*=x.y,d*=x.x,p*=x.y,l+=E,u+=I,S=Ge(_),_=ys(S)}}return Rr({width:d,height:p,x:l,y:u})}function bs(t,e){let r=Mi(t).scrollLeft;return e?e.left+r:Ni(Ht(t)).left+r}function xl(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-bs(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function fh(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,s=n==="fixed",o=Ht(i),a=e?Ii(e.floating):!1;if(i===o||a&&s)return r;let l={scrollLeft:0,scrollTop:0},u=Lt(1),d=Lt(0),p=jt(i);if((p||!s)&&((kr(i)!=="body"||Pi(o))&&(l=Mi(i)),p)){let b=Ni(i);u=ti(i),d.x=b.x+i.clientLeft,d.y=b.y+i.clientTop}let h=o&&!p&&!s?xl(o,l):Lt(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+d.x+h.x,y:r.y*u.y-l.scrollTop*u.y+d.y+h.y}}function mh(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function gh(t){let e=Mi(t),r=t.ownerDocument.body,i=tr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=tr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+bs(t),o=-e.scrollTop;return St(r).direction==="rtl"&&(s+=tr(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:s,y:o}}var yh=25;function bh(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=Ge(t),s=Ht(t),o=n.visualViewport,a=s.clientWidth,l=s.clientHeight,u=0,d=0;if(o){let h=!gs()||e==="fixed";i?h||(u=-o.offsetLeft,d=-o.offsetTop):(a=o.width,l=o.height,h&&(u=o.offsetLeft,d=o.offsetTop))}if(bs(s)<=0){let h=s.ownerDocument,b=h.body,S=getComputedStyle(b),_=h.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,x=Math.abs(s.clientWidth-b.clientWidth-_),T=getComputedStyle(s).scrollbarGutter==="stable both-edges"?x/2:x;T<=yh&&(a-=T)}return{width:a,height:l,x:u,y:d}}function vh(t,e){let r=Ni(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,s=ti(t),o=t.clientWidth*s.x,a=t.clientHeight*s.y,l=n*s.x,u=i*s.y;return{width:o,height:a,x:l,y:u}}function ml(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=bh(t,r,e);else if(e==="document")i=gh(Ht(t));else if(xt(e))i=vh(e,r);else{let n=vl(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return Rr(i)}function xh(t,e){let r=e.get(t);if(r)return r;let i=fs(t,[],!1).filter(a=>xt(a)&&kr(a)!=="body"),n=null,s=St(t).position==="fixed",o=s?ir(t):t;for(;xt(o)&&!ei(o);){let a=St(o),l=Jr(o),u=n?n.position:s?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&a.position==="static")?i=i.filter(p=>p!==o):n=a,o=ir(o)}return e.set(t,i),i}function Sh(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,o=[...r==="clippingAncestors"?Ii(e)?[]:xh(e,this._c):[].concat(r),i],a=ml(e,o[0],n),l=a.top,u=a.right,d=a.bottom,p=a.left;for(let h=1;h<o.length;h++){let b=ml(e,o[h],n);l=tr(b.top,l),u=Li(b.right,u),d=Li(b.bottom,d),p=tr(b.left,p)}return{width:u-p,height:d-l,x:p,y:l}}function Eh(t){let{width:e,height:r}=yl(t);return{width:e,height:r}}function Ch(t,e,r){let i=jt(e),n=Ht(e),s=r==="fixed",o=Ni(t,!0,s,e),a={scrollLeft:0,scrollTop:0},l=Lt(0);if((i||!s)&&((kr(e)!=="body"||Pi(n))&&(a=Mi(e)),i)){let h=Ni(e,!0,s,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}!i&&n&&(l.x=bs(n));let u=n&&!i&&!s?xl(n,a):Lt(0),d=o.left+a.scrollLeft-l.x-u.x,p=o.top+a.scrollTop-l.y-u.y;return{x:d,y:p,width:o.width,height:o.height}}function Gn(t){return St(t).position==="static"}function gl(t,e){if(!jt(t)||St(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Ht(t)===r&&(r=r.ownerDocument.body),r}function Sl(t,e){let r=Ge(t);if(Ii(t))return r;if(!jt(t)){let n=ir(t);for(;n&&!ei(n);){if(xt(n)&&!Gn(n))return n;n=ir(n)}return r}let i=gl(t,e);for(;i&&pl(i)&&Gn(i);)i=gl(i,e);return i&&ei(i)&&Gn(i)&&!Jr(i)?r:i||hl(t)||r}var Ah=async function(t){let e=this.getOffsetParent||Sl,r=this.getDimensions,i=await r(t.floating);return{reference:Ch(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function wh(t){return St(t).direction==="rtl"}var vs={convertOffsetParentRelativeRectToViewportRelativeRect:fh,getDocumentElement:Ht,getClippingRect:Sh,getOffsetParent:Sl,getElementRects:Ah,getClientRects:mh,getDimensions:Eh,getScale:ti,isElement:xt,isRTL:wh};var El=ll,Cl=cl;var Al=(t,e,r)=>{let i=new Map,n=r??{},s={...vs,...n.platform,_c:i};return al(t,e,{...n,platform:s})};function wl(t){return Oh(t)}function Qn(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Oh(t){for(let e=t;e;e=Qn(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Qn(t);e;e=Qn(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Jr(r)||e.tagName==="BODY"))return e}return null}async function Ol(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},Al(t,e,{strategy:i.strategy,platform:{...vs,getOffsetParent:n=>vs.getOffsetParent(n,wl)},middleware:[Cl({crossAxis:!0}),El({allowedPlacements:[i.placement]})]})}var di=c(f());var bo=c(V());var _l=c(V(),1);var Yn=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function Rl(t,e){return(0,_l.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Fi(t);try{return JSON.parse(r)}catch{return Fi(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Bi,...e??{}})}function _h(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!ri(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!ri(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=o=>Object.keys(o).filter(a=>o[a]!=null),s=n(t);if(r=s.length,r!==n(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,s[i]))return!1;for(i=r;i--!==0;){let o=s[i];if(!ri(t[o],e[o]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function ri(t,e){try{return _h(t,e)}catch{return!1}}function Bi(t,e){return!ri(t,e)}function Fi(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function xs(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}var Tl=c(V(),1);var Xn=t=>{let e=t??{};return(r,i)=>{var n;let s={hasChanged:Bi,attribute:!1,...e};(0,Tl.property)(s)(r,i);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:(a=>a[i]),store:e.store})}};var Ss=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var Lr=c(V(),1);var Es=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of i)try{await o()}catch(a){n(a);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Ll=c(v(),1);var Cs=globalThis,Rh=Cs.ShadowRoot&&(Cs.ShadyCSS===void 0||Cs.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var kl=(t,e)=>{if(Rh)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=Cs.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}};var As=class extends Ll.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 kl(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){Yn(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 $l(t,e,...r){var i;let n=t.querySelector(e);for(let s of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(s);return n}var si=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Ml,Dl=Symbol("constructorPrototype"),Pl=Symbol("constructorName"),Nl=Symbol("exportpartsDebouncer"),Il=Symbol("dynamicDependenciesLoaded"),ii=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};ii.eventName="exportparts-updated";var $t=class extends As{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ml]=new Es(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[Nl].run(()=>{var n,s;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Pl]=this.constructor.name,this[Dl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Pl]&&Object.setPrototypeOf(this,this[Dl])}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[Il]||(r[Il]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(ii.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(ii.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new ii)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let s=[...n??[],i];r=$l(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(e){var r,i,n,s,o,a;let l=h=>h!=null&&h.trim().length>0,u=e.filter(l).map(h=>h.trim());if(u.length===0){this.exportparts=void 0;return}let d=new Set;for(let h of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let b=(s=(n=h.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&s!==void 0?s:[],S=(a=(o=h.getAttribute("exportparts"))===null||o===void 0?void 0:o.split(",").map(x=>x.split(":")[1]))!==null&&a!==void 0?a:[],_=[...b,...S].filter(l).map(x=>x.trim());for(let x of _)d.add(x)}if(d.size===0){this.exportparts=void 0;return}let p=[...d.values()].flatMap(h=>u.map(b=>`${h}:${b}--${h}`));this.exportparts=[...this.part,...p].join(", ")}};Ml=Nl;si([(0,Lr.property)()],$t.prototype,"exportpartsPrefix",void 0);si([Rl([])],$t.prototype,"exportpartsPrefixes",void 0);si([(0,Lr.property)({reflect:!0})],$t.prototype,"exportparts",void 0);si([(0,Lr.property)()],$t.prototype,"customStylesheet",void 0);si([(0,Lr.property)()],$t.prototype,"elementToFocus",void 0);si([(0,Lr.state)()],$t.prototype,"useAdoptedStyleSheets",void 0);function ws(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ui=Symbol("internalReduxEventsUnsubscribers"),sr=Symbol("internalStoresUnsubscribers"),$r=Symbol("internalStores"),Th=xs(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(o){super.willUpdate(o),[...this.reduxConstructor.reduxReactiveProperties].some(a=>o.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[$r].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[$r].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[$r].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[$r].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[$r].delete(a)}setupStores(){this.unsubscribeFromStores(),this[$r].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let u=this.getStore(o.store);u&&(o.store?this[sr].has(o.store):this[sr].size>0)&&(this[a]=o.selector(u.getState(),this))}})}subscribeToStore(o,a){var l;this[sr].set(o,a.subscribe(()=>this.updateFromStores())),this[Ui].set(o,[]),ws(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((u,d)=>{if(typeof this[d]=="function"&&(!u.store||a.name===u.store)){let p=h=>this[d](h);a.addEventListener(u.eventName,p),this[Ui].get(o).push(()=>a.removeEventListener(u.eventName,p))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[sr].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[sr].has(o)&&this[sr].get(o)(),this[sr].delete(o),(a=this[Ui].get(o))===null||a===void 0||a.forEach(l=>l()),this[Ui].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=sr,r=$r,i=Ui,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Fl=class extends Th($t){};function Oe(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var kh=typeof Symbol=="function"&&Symbol.observable||"@@observable",Bl=kh,Zn=()=>Math.random().toString(36).substring(7).split("").join("."),Lh={INIT:`@@redux/INIT${Zn()}`,REPLACE:`@@redux/REPLACE${Zn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Zn()}`},Os=Lh;function _s(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 Jn(t,e,r){if(typeof t!="function")throw new Error(Oe(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Oe(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Oe(1));return r(Jn)(t,e)}let i=t,n=e,s=new Map,o=s,a=0,l=!1;function u(){o===s&&(o=new Map,s.forEach((x,T)=>{o.set(T,x)}))}function d(){if(l)throw new Error(Oe(3));return n}function p(x){if(typeof x!="function")throw new Error(Oe(4));if(l)throw new Error(Oe(5));let T=!0;u();let j=a++;return o.set(j,x),function(){if(T){if(l)throw new Error(Oe(6));T=!1,u(),o.delete(j),s=null}}}function h(x){if(!_s(x))throw new Error(Oe(7));if(typeof x.type>"u")throw new Error(Oe(8));if(typeof x.type!="string")throw new Error(Oe(17));if(l)throw new Error(Oe(9));try{l=!0,n=i(n,x)}finally{l=!1}return(s=o).forEach(j=>{j()}),x}function b(x){if(typeof x!="function")throw new Error(Oe(10));i=x,h({type:Os.REPLACE})}function S(){let x=p;return{subscribe(T){if(typeof T!="object"||T===null)throw new Error(Oe(11));function j(){let I=T;I.next&&I.next(d())}return j(),{unsubscribe:x(j)}},[Bl](){return this}}}return h({type:Os.INIT}),{dispatch:h,subscribe:p,getState:d,replaceReducer:b,[Bl]:S}}function $h(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:Os.INIT})>"u")throw new Error(Oe(12));if(typeof r(void 0,{type:Os.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Oe(13))})}function Ul(t){let e=Object.keys(t),r={};for(let o=0;o<e.length;o++){let a=e[o];typeof t[a]=="function"&&(r[a]=t[a])}let i=Object.keys(r),n,s;try{$h(r)}catch(o){s=o}return function(a={},l){if(s)throw s;let u=!1,d={};for(let p=0;p<i.length;p++){let h=i[p],b=r[h],S=a[h],_=b(S,l);if(typeof _>"u"){let x=l&&l.type;throw new Error(Oe(14))}d[h]=_,u=u||_!==S}return u=u||i.length!==Object.keys(a).length,u?d:a}}function zi(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function zl(...t){return e=>(r,i)=>{let n=e(r,i),s=()=>{throw new Error(Oe(15))},o={getState:n.getState,dispatch:(l,...u)=>s(l,...u)},a=t.map(l=>l(o));return s=zi(...a)(n.dispatch),{...n,dispatch:s}}}function Vl(t){return _s(t)&&"type"in t&&typeof t.type=="string"}var Xl=Symbol.for("immer-nothing"),Hl=Symbol.for("immer-draftable"),Ie=Symbol.for("immer-state");function Et(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var et=Object,oi=et.getPrototypeOf,Ls="constructor",Ns="prototype",io="configurable",$s="enumerable",Ts="writable",Vi="value",Dt=t=>!!t&&!!t[Ie];function tt(t){return t?Zl(t)||Bs(t)||!!t[Hl]||!!t[Ls]?.[Hl]||Us(t)||zs(t):!1}var Dh=et[Ns][Ls].toString(),jl=new WeakMap;function Zl(t){if(!t||!po(t))return!1;let e=oi(t);if(e===null||e===et[Ns])return!0;let r=et.hasOwnProperty.call(e,Ls)&&e[Ls];if(r===Object)return!0;if(!ni(r))return!1;let i=jl.get(r);return i===void 0&&(i=Function.toString.call(r),jl.set(r,i)),i===Dh}function Fs(t,e,r=!0){qi(t)===0?(r?Reflect.ownKeys(t):et.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((i,n)=>e(n,i,t))}function qi(t){let e=t[Ie];return e?e.type_:Bs(t)?1:Us(t)?2:zs(t)?3:0}var eo=(t,e,r=qi(t))=>r===2?t.has(e):et[Ns].hasOwnProperty.call(t,e),so=(t,e,r=qi(t))=>r===2?t.get(e):t[e],Ds=(t,e,r,i=qi(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function Ph(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Bs=Array.isArray,Us=t=>t instanceof Map,zs=t=>t instanceof Set,po=t=>typeof t=="object",ni=t=>typeof t=="function",to=t=>typeof t=="boolean";function Ih(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var qt=t=>t.copy_||t.base_;var ho=t=>t.modified_?t.copy_:t.base_;function no(t,e){if(Us(t))return new Map(t);if(zs(t))return new Set(t);if(Bs(t))return Array[Ns].slice.call(t);let r=Zl(t);if(e===!0||e==="class_only"&&!r){let i=et.getOwnPropertyDescriptors(t);delete i[Ie];let n=Reflect.ownKeys(i);for(let s=0;s<n.length;s++){let o=n[s],a=i[o];a[Ts]===!1&&(a[Ts]=!0,a[io]=!0),(a.get||a.set)&&(i[o]={[io]:!0,[Ts]:!0,[$s]:a[$s],[Vi]:t[o]})}return et.create(oi(t),i)}else{let i=oi(t);if(i!==null&&r)return{...t};let n=et.create(i);return et.assign(n,t)}}function fo(t,e=!1){return Vs(t)||Dt(t)||!tt(t)||(qi(t)>1&&et.defineProperties(t,{set:Rs,add:Rs,clear:Rs,delete:Rs}),et.freeze(t),e&&Fs(t,(r,i)=>{fo(i,!0)},!1)),t}function Mh(){Et(2)}var Rs={[Vi]:Mh};function Vs(t){return t===null||!po(t)?!0:et.isFrozen(t)}var Ps="MapSet",oo="Patches",ql="ArrayMethods",Jl={};function Dr(t){let e=Jl[t];return e||Et(0,t),e}var Wl=t=>!!Jl[t];var Hi,ec=()=>Hi,Nh=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Wl(Ps)?Dr(Ps):void 0,arrayMethodsPlugin_:Wl(ql)?Dr(ql):void 0});function Kl(t,e){e&&(t.patchPlugin_=Dr(oo),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function ao(t){lo(t),t.drafts_.forEach(Fh),t.drafts_=null}function lo(t){t===Hi&&(Hi=t.parent_)}var Gl=t=>Hi=Nh(Hi,t);function Fh(t){let e=t[Ie];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Ql(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[Ie].modified_&&(ao(e),Et(4)),tt(t)&&(t=Yl(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(r[Ie].base_,t,e)}else t=Yl(e,r);return Bh(e,t,!0),ao(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Xl?t:void 0}function Yl(t,e){if(Vs(e))return e;let r=e[Ie];if(!r)return Is(e,t.handledSet_,t);if(!Hs(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);ic(r,t)}return r.copy_}function Bh(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&fo(e,r)}function tc(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Hs=(t,e)=>t.scope_===e,Uh=[];function rc(t,e,r,i){let n=qt(t),s=t.type_;if(i!==void 0&&so(n,i,s)===e){Ds(n,i,r,s);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;Fs(n,(l,u)=>{if(Dt(u)){let d=a.get(u)||[];d.push(l),a.set(u,d)}})}let o=t.draftLocations_.get(e)??Uh;for(let a of o)Ds(n,a,r,s)}function zh(t,e,r){t.callbacks_.push(function(n){let s=e;if(!s||!Hs(s,n))return;n.mapSetPlugin_?.fixSetContents(s);let o=ho(s);rc(t,s.draft_??s,o,r),ic(s,n)})}function ic(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let n=i.getPath(t);n&&i.generatePatches_(t,n,e)}tc(t)}}function Vh(t,e,r){let{scope_:i}=t;if(Dt(r)){let n=r[Ie];Hs(n,i)&&n.callbacks_.push(function(){ks(t);let o=ho(n);rc(t,r,o,e)})}else tt(r)&&t.callbacks_.push(function(){let s=qt(t);t.type_===3?s.has(r)&&Is(r,i.handledSet_,i):so(s,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Is(so(t.copy_,e,t.type_),i.handledSet_,i)})}function Is(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Dt(t)||e.has(t)||!tt(t)||Vs(t)||(e.add(t),Fs(t,(i,n)=>{if(Dt(n)){let s=n[Ie];if(Hs(s,r)){let o=ho(s);Ds(t,i,o,t.type_),tc(s)}}else tt(n)&&Is(n,e,r)})),t}function Hh(t,e){let r=Bs(t),i={type_:r?1:0,scope_:e?e.scope_:ec(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=i,s=Ms;r&&(n=[i],s=ji);let{revoke:o,proxy:a}=Proxy.revocable(n,s);return i.draft_=a,i.revoke_=o,[a,i]}var Ms={get(t,e){if(e===Ie)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let n=qt(t);if(!eo(n,e,t.type_))return qh(t,n,e);let s=n[e];if(t.finalized_||!tt(s)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&Ih(e))return s;if(s===ro(t.base_,e)||jh(t,e,s)){ks(t);let o=t.type_===1?+e:e,a=uo(t.scope_,s,t,o);return t.copy_[o]=a}return s},has(t,e){return e in qt(t)},ownKeys(t){return Reflect.ownKeys(qt(t))},set(t,e,r){let i=sc(qt(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let n=ro(qt(t),e),s=n?.[Ie];if(s&&s.base_===r)return t.copy_[e]=r,t.assigned_.set(e,!1),!0;if(Ph(r,n)&&(r!==void 0||eo(t.base_,e,t.type_)))return!0;ks(t),co(t)}return t.copy_[e]===r&&(r!==void 0||eo(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),Vh(t,e,r)),!0},deleteProperty(t,e){return ks(t),ro(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),co(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=qt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[Ts]:!0,[io]:t.type_!==1||e!=="length",[$s]:i[$s],[Vi]:r[e]}},defineProperty(){Et(11)},getPrototypeOf(t){return oi(t.base_)},setPrototypeOf(){Et(12)}},ji={};for(let t in Ms){let e=Ms[t];ji[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}ji.deleteProperty=function(t,e){return ji.set.call(this,t,e,void 0)};ji.set=function(t,e,r){return Ms.set.call(this,t[0],e,r,t[0])};function ro(t,e){let r=t[Ie];return(r?qt(r):t)[e]}function jh(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!tt(r)||r[Ie]?!1:t.baseRefs_.has(r)}function qh(t,e,r){let i=sc(e,r);return i?Vi in i?i[Vi]:i.get?.call(t.draft_):void 0}function sc(t,e){if(!(e in t))return;let r=oi(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=oi(r)}}function co(t){t.modified_||(t.modified_=!0,t.parent_&&co(t.parent_))}function ks(t){t.copy_||(t.assigned_=new Map,t.copy_=no(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Wh=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(ni(e)&&!ni(r)){let s=r;r=e;let o=this;return function(l=s,...u){return o.produce(l,d=>r.call(this,d,...u))}}ni(r)||Et(6),i!==void 0&&!ni(i)&&Et(7);let n;if(tt(e)){let s=Gl(this),o=uo(s,e,void 0),a=!0;try{n=r(o),a=!1}finally{a?ao(s):lo(s)}return Kl(s,i),Ql(n,s)}else if(!e||!po(e)){if(n=r(e),n===void 0&&(n=e),n===Xl&&(n=void 0),this.autoFreeze_&&fo(n,!0),i){let s=[],o=[];Dr(oo).generateReplacementPatches_(e,n,{patches_:s,inversePatches_:o}),i(s,o)}return n}else Et(1,e)},this.produceWithPatches=(e,r)=>{if(ni(e))return(o,...a)=>this.produceWithPatches(o,l=>e(l,...a));let i,n;return[this.produce(e,r,(o,a)=>{i=o,n=a}),i,n]},to(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),to(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),to(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){tt(t)||Et(8),Dt(t)&&(t=nc(t));let e=Gl(this),r=uo(e,t,void 0);return r[Ie].isManual_=!0,lo(e),r}finishDraft(t,e){let r=t&&t[Ie];(!r||!r.isManual_)&&Et(9);let{scope_:i}=r;return Kl(i,e),Ql(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let n=e[r];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}r>-1&&(e=e.slice(r+1));let i=Dr(oo).applyPatches_;return Dt(t)?i(t,e):this.produce(t,n=>i(n,e))}};function uo(t,e,r,i){let[n,s]=Us(e)?Dr(Ps).proxyMap_(e,r):zs(e)?Dr(Ps).proxySet_(e,r):Hh(e,r);return(r?.scope_??ec()).drafts_.push(n),s.callbacks_=r?.callbacks_??[],s.key_=i,r&&i!==void 0?zh(r,s,i):s.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(s);let{patchPlugin_:u}=l;s.modified_&&u&&u.generatePatches_(s,[],l)}),n}function nc(t){return Dt(t)||Et(10,t),oc(t)}function oc(t){if(!tt(t)||Vs(t))return t;let e=t[Ie],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=no(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=no(t,!0);return Fs(r,(n,s)=>{Ds(r,n,oc(s))},i),e&&(e.finalized_=!1),r}var Kh=globalThis.Iterator,_g=typeof Kh?.from=="function";var Gh=new Wh,mo=Gh.produce;function ac(t){return({dispatch:r,getState:i})=>n=>s=>typeof s=="function"?s(r,i,t):n(s)}var lc=ac(),cc=ac;var Qh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?zi:zi.apply(null,arguments)},Pg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},Yh=t=>t&&typeof t.match=="function";function nr(t,e){function r(...i){if(e){let n=e(...i);if(!n)throw new Error(Wt(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>Vl(i)&&i.type===t,r}var fc=class Wi extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Wi.prototype)}static get[Symbol.species](){return Wi}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Wi(...e[0].concat(this)):new Wi(...e.concat(this))}};function uc(t){return tt(t)?mo(t,()=>{}):t}function js(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Xh(t){return typeof t=="boolean"}var Zh=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:s=!0}=e??{},o=new fc;return r&&(Xh(r)?o.push(lc):o.push(cc(r.extraArgument))),o},Jh="RTK_autoBatch";var dc=t=>e=>{setTimeout(e,t)},ef=(t,e)=>r=>{let i=!1,n=()=>{i||(i=!0,cancelAnimationFrame(s),clearTimeout(o),r())},s=t(n),o=setTimeout(n,e)},tf=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),n=!0,s=!1,o=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?ef(window.requestAnimationFrame,100):dc(10):t.type==="callback"?t.queueNotification:dc(t.timeout),u=()=>{o=!1,s&&(s=!1,a.forEach(d=>d()))};return Object.assign({},i,{subscribe(d){let p=()=>n&&d(),h=i.subscribe(p);return a.add(d),()=>{h(),a.delete(d)}},dispatch(d){try{return n=!d?.meta?.[Jh],s=!n,s&&(o||(o=!0,l(u))),i.dispatch(d)}finally{n=!0}}})},rf=t=>function(r){let{autoBatch:i=!0}=r??{},n=new fc(t);return i&&n.push(tf(typeof i=="object"?i:void 0)),n};function mc(t){let e=Zh(),{reducer:r=void 0,middleware:i,devTools:n=!0,duplicateMiddlewareCheck:s=!0,preloadedState:o=void 0,enhancers:a=void 0}=t||{},l;if(typeof r=="function")l=r;else if(_s(r))l=Ul(r);else throw new Error(Wt(1));let u;typeof i=="function"?u=i(e):u=e();let d=zi;n&&(d=Qh({trace:!1,...typeof n=="object"&&n}));let p=zl(...u),h=rf(p),b=typeof a=="function"?a(h):h(),S=d(...b);return Jn(l,o,S)}function gc(t){let e={},r=[],i,n={addCase(s,o){let a=typeof s=="string"?s:s.type;if(!a)throw new Error(Wt(28));if(a in e)throw new Error(Wt(29));return e[a]=o,n},addAsyncThunk(s,o){return o.pending&&(e[s.pending.type]=o.pending),o.rejected&&(e[s.rejected.type]=o.rejected),o.fulfilled&&(e[s.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:s.settled,reducer:o.settled}),n},addMatcher(s,o){return r.push({matcher:s,reducer:o}),n},addDefaultCase(s){return i=s,n}};return t(n),[e,r,i]}function sf(t){return typeof t=="function"}function nf(t,e){let[r,i,n]=gc(e),s;if(sf(t))s=()=>uc(t());else{let a=uc(t);s=()=>a}function o(a=s(),l){let u=[r[l.type],...i.filter(({matcher:d})=>d(l)).map(({reducer:d})=>d)];return u.filter(d=>!!d).length===0&&(u=[n]),u.reduce((d,p)=>{if(p)if(Dt(d)){let b=p(d,l);return b===void 0?d:b}else{if(tt(d))return mo(d,h=>p(h,l));{let h=p(d,l);if(h===void 0){if(d===null)return d;throw Error("A case reducer on a non-draftable value must not return undefined")}return h}}return d},a)}return o.getInitialState=s,o}var of=(t,e)=>Yh(t)?t.match(e):t(e);function af(...t){return e=>t.some(r=>of(r,e))}var lf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",cf=(t=21)=>{let e="",r=t;for(;r--;)e+=lf[Math.random()*64|0];return e},uf=["name","message","stack","code"],go=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},pc=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},df=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of uf)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},hc="External signal was aborted",pf=(()=>{function t(e,r,i){let n=nr(e+"/fulfilled",(l,u,d,p)=>({payload:l,meta:{...p||{},arg:d,requestId:u,requestStatus:"fulfilled"}})),s=nr(e+"/pending",(l,u,d)=>({payload:void 0,meta:{...d||{},arg:u,requestId:l,requestStatus:"pending"}})),o=nr(e+"/rejected",(l,u,d,p,h)=>({payload:p,error:(i&&i.serializeError||df)(l||"Rejected"),meta:{...h||{},arg:d,requestId:u,rejectedWithValue:!!p,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:u}={}){return(d,p,h)=>{let b=i?.idGenerator?i.idGenerator(l):cf(),S=new AbortController,_,x;function T(E){x=E,S.abort()}u&&(u.aborted?T(hc):u.addEventListener("abort",()=>T(hc),{once:!0}));let j=(async function(){let E;try{let U=i?.condition?.(l,{getState:p,extra:h});if(ff(U)&&(U=await U),U===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let ue=new Promise((J,de)=>{_=()=>{de({name:"AbortError",message:x||"Aborted"})},S.signal.addEventListener("abort",_,{once:!0})});d(s(b,l,i?.getPendingMeta?.({requestId:b,arg:l},{getState:p,extra:h}))),E=await Promise.race([ue,Promise.resolve(r(l,{dispatch:d,getState:p,extra:h,requestId:b,signal:S.signal,abort:T,rejectWithValue:((J,de)=>new go(J,de)),fulfillWithValue:((J,de)=>new pc(J,de))})).then(J=>{if(J instanceof go)throw J;return J instanceof pc?n(J.payload,b,l,J.meta):n(J,b,l)})])}catch(U){E=U instanceof go?o(null,b,l,U.payload,U.meta):o(U,b,l)}finally{_&&S.signal.removeEventListener("abort",_)}return i&&!i.dispatchConditionRejection&&o.match(E)&&E.meta.condition||d(E),E})();return Object.assign(j,{abort:T,requestId:b,arg:l,unwrap(){return j.then(hf)}})}}return Object.assign(a,{pending:s,rejected:o,fulfilled:n,settled:af(o,n),typePrefix:e})}return t.withTypes=()=>t,t})();function hf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function ff(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var yc=Symbol.for("rtk-slice-createasyncthunk"),Mg={[yc]:pf};function mf(t,e){return`${t}/${e}`}function gf({creators:t}={}){let e=t?.asyncThunk?.[yc];return function(i){let{name:n,reducerPath:s=n}=i;if(!n)throw new Error(Wt(11));typeof process<"u";let o=(typeof i.reducers=="function"?i.reducers(bf()):i.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(E,I){let U=typeof E=="string"?E:E.type;if(!U)throw new Error(Wt(12));if(U in l.sliceCaseReducersByType)throw new Error(Wt(13));return l.sliceCaseReducersByType[U]=I,u},addMatcher(E,I){return l.sliceMatchers.push({matcher:E,reducer:I}),u},exposeAction(E,I){return l.actionCreators[E]=I,u},exposeCaseReducer(E,I){return l.sliceCaseReducersByName[E]=I,u}};a.forEach(E=>{let I=o[E],U={reducerName:E,type:mf(n,E),createNotation:typeof i.reducers=="function"};xf(I)?Ef(U,I,u,e):vf(U,I,u)});function d(){let[E={},I=[],U=void 0]=typeof i.extraReducers=="function"?gc(i.extraReducers):[i.extraReducers],ue={...E,...l.sliceCaseReducersByType};return nf(i.initialState,J=>{for(let de in ue)J.addCase(de,ue[de]);for(let de of l.sliceMatchers)J.addMatcher(de.matcher,de.reducer);for(let de of I)J.addMatcher(de.matcher,de.reducer);U&&J.addDefaultCase(U)})}let p=E=>E,h=new Map,b=new WeakMap,S;function _(E,I){return S||(S=d()),S(E,I)}function x(){return S||(S=d()),S.getInitialState()}function T(E,I=!1){function U(J){let de=J[E];return typeof de>"u"&&I&&(de=js(b,U,x)),de}function ue(J=p){let de=js(h,I,()=>new WeakMap);return js(de,J,()=>{let Ai={};for(let[ct,br]of Object.entries(i.selectors??{}))Ai[ct]=yf(br,J,()=>js(b,J,x),I);return Ai})}return{reducerPath:E,getSelectors:ue,get selectors(){return ue(U)},selectSlice:U}}let j={name:n,reducer:_,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:x,...T(s),injectInto(E,{reducerPath:I,...U}={}){let ue=I??s;return E.inject({reducerPath:ue,reducer:_},U),{...j,...T(ue,!0)}}};return j}}function yf(t,e,r,i){function n(s,...o){let a=e(s);return typeof a>"u"&&i&&(a=r()),t(a,...o)}return n.unwrapped=t,n}var bc=gf();function bf(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function vf({type:t,reducerName:e,createNotation:r},i,n){let s,o;if("reducer"in i){if(r&&!Sf(i))throw new Error(Wt(17));s=i.reducer,o=i.prepare}else s=i;n.addCase(t,s).exposeCaseReducer(e,s).exposeAction(e,o?nr(t,o):nr(t))}function xf(t){return t._reducerDefinitionType==="asyncThunk"}function Sf(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Ef({type:t,reducerName:e},r,i,n){if(!n)throw new Error(Wt(18));let{payloadCreator:s,fulfilled:o,pending:a,rejected:l,settled:u,options:d}=r,p=n(t,s,d);i.exposeAction(e,p),o&&i.addCase(p.fulfilled,o),a&&i.addCase(p.pending,a),l&&i.addCase(p.rejected,l),u&&i.addMatcher(p.settled,u),i.exposeCaseReducer(e,{fulfilled:o||qs,pending:a||qs,rejected:l||qs,settled:u||qs})}function qs(){}var vc="listener",xc="completed",Sc="cancelled",Ng=`task-${Sc}`,Fg=`task-${xc}`,Bg=`${vc}-${Sc}`,Ug=`${vc}-${xc}`;var{assign:Ec}=Object;var yo="listenerMiddleware";var Cf=Ec(nr(`${yo}/add`),{withTypes:()=>Cf}),zg=nr(`${yo}/removeAll`),Af=Ec(nr(`${yo}/remove`),{withTypes:()=>Af});function Wt(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var wf=xs(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),Ws=class extends wf(Object){};window.ftReduxStores||(window.ftReduxStores={});var Cc=class t extends Ws{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,s=window.ftReduxStores[i];if(ws(s))return s;if(n==null)return;let o=bc({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),a=mc({reducer:(l,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let d=Fi(o.getInitialState());for(let p of u.keeping)d[p]=(l??d)[p];return d}else if(typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...u.overwrites};return o.reducer(l,u)}});return window.ftReduxStores[n.name]=new t(o,a,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Ss,this.injectInto=(s,o)=>this.reduxSlice.injectInto(s,o),this.selectSlice=s=>this.reduxSlice.selectSlice(s);let n=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,o,a)=>{let l=o,u=s[l];return u?(...d)=>{let p=u(...d.map(n));return this.reduxStore.dispatch(p),p}:d=>{let p=l,h=this.getState()[p];ri(h,d)||this.setState({[p]:n(d)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var Ks=class{static format(e,r,i,n,s){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n,!!s)):this.getIntlDateTime(e,r,i,n,!!s)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n,s){let o=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(o),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return s?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var Gs=c(f()),Of="ft-app-info",or=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};or.eventName="authentication-change";var Ki=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Ki.eventName="ui-locale-changed";var _f={session:(t,e)=>{(0,Gs.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>O.dispatchEvent(new or(e.payload)),0))}},O=Gs.FtReduxStore.get({name:Of,reducers:_f,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var Ac=c(f()),Qs=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},yy=(0,Ac.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(O)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,s;return((s=(n=this.metadataDescriptors.find(a=>a.key===i))===null||n===void 0?void 0:n.date)!==null&&s!==void 0?s:!1)?a=>Ks.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Qs([(0,bo.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Qs([(0,bo.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Qs([Xn({store:O.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Qs([Xn({store:O.name})],e.prototype,"uiLocale",void 0),e});var wc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(wc||(wc={}));var Oc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Oc||(Oc={}));var _c;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(_c||(_c={}));var Rc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Rc||(Rc={}));var Tc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Tc||(Tc={}));var kc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(kc||(kc={}));var Lc;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Lc||(Lc={}));var $c;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})($c||($c={}));var Dc;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Dc||(Dc={}));var Pc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(Pc||(Pc={}));var Ic;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(Ic||(Ic={}));var Mc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Mc||(Mc={}));var Nc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Nc||(Nc={}));var Fc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Fc||(Fc={}));var Bc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Bc||(Bc={}));var Uc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Uc||(Uc={}));var vo;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(vo||(vo={}));var zc;(function(t){t.ASC="ASC",t.DESC="DESC"})(zc||(zc={}));var Vc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Vc||(Vc={}));var xo;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(xo||(xo={}));var Hc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Hc||(Hc={}));var jc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(jc||(jc={}));var qc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(qc||(qc={}));var Wc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Wc||(Wc={}));var Kc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Kc||(Kc={}));var So;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(So||(So={}));var Gc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Gc||(Gc={}));var pe;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(pe||(pe={}));var dt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(dt||(dt={}));var Qc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Qc||(Qc={}));var Yc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Yc||(Yc={}));var Xc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Xc||(Xc={}));var Zc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Zc||(Zc={}));var Jc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Jc||(Jc={}));var eu;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(eu||(eu={}));var tu;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(tu||(tu={}));var ru;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(ru||(ru={}));var iu;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(iu||(iu={}));var su;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(su||(su={}));var nu;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(nu||(nu={}));var ou;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(ou||(ou={}));var Rf={[pe.PERSONAL_BOOK_SHARE_USER]:[pe.PERSONAL_BOOK_USER],[pe.HTML_EXPORT_USER]:[pe.PERSONAL_BOOK_USER],[pe.PDF_EXPORT_USER]:[pe.PERSONAL_BOOK_USER],[pe.KHUB_ADMIN]:[pe.CONTENT_PUBLISHER],[pe.ADMIN]:[pe.KHUB_ADMIN,pe.USERS_ADMIN,pe.PORTAL_ADMIN,pe.BEHAVIOR_DATA_USER],[pe.GENERATIVE_AI_EXPORT_USER]:[pe.GENERATIVE_AI_USER]};function au(t,e){return t===e||(Rf[t]??[]).some(r=>au(r,e))}function Eo(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>au(i,e))}var en=c(f());var Co=c(f());var Pr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=O.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=O.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var ai=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Pr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Pr.await()}};var Qe=class extends ai{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(s,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Co.CacheRegistry,this.cache=e?n.commonCache:new Co.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var Ys=class extends Qe{async listMySearches(){let{session:e}=O.getState();return Eo(e,pe.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Xs=class extends Qe{async listMyBookmarks(){let e=O.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Zs=class extends Qe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=O.getState().session;return!!e?.sessionAuthenticated}};var Js=class extends Qe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=O.getState().session;return!!e?.sessionAuthenticated}};var Tf="ft-user-assets",kf={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(dt).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:n}=e.payload;wo(t,r,[...Ao(t,r),n]),lu(t,r,1,i),cu(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;wo(t,r,Ao(t,r).map(n=>n.id===i.id?i:n)),cu(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;wo(t,r,Ao(t,r).filter(s=>s.id!==n)),lu(t,r,-1,i)}},uu={[dt.SEARCHES]:"savedSearches",[dt.BOOKMARKS]:"bookmarks",[dt.BOOKS]:void 0,[dt.COLLECTIONS]:void 0},Ao=(t,e)=>{var r;let i=uu[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},wo=(t,e,r)=>{let i=uu[e];i&&(t[i]=r)},lu=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===dt.BOOKMARKS&&i)){let s=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,s+r)}},cu=(t,e)=>{let r=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},Fe=en.FtReduxStore.get({name:Tf,reducers:kf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(dt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Oo=class{constructor(e=new Zs,r=new Js){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=O.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Xs,this.savedSearchesService=new Ys,O.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=O.getState();(0,en.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Fe.actions.clearAssetCount(),Fe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Fe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Fe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Fe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Fe.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Fe.getState().assetCounts.allAsset[e]!==r.count&&Fe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Fe.getState().assetCounts.bookmarkByMap[e]!==r.count&&Fe.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Fe.getState().assetCounts.bookmarkByMap).length!==0;e===dt.BOOKMARKS&&r&&Fe.actions.clearBookmarkCountByMap(),Fe.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Fe.actions.bookmarks(r)}}},Lf=new Oo;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Lf);var _o=class{addCommand(e,r=!1){O.commands.add(e,r)}consumeCommand(e){return O.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new _o;var pt=c(f());var du,li=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},$f=Symbol("clearAfterUnitTest"),tn=class extends(0,pt.withEventBus)(Qe){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[du]=()=>{this.defaultMessages={},this.cache=new pt.CacheRegistry,this.listeners={}},this.currentUiLocale=O.getState().uiLocale,O.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=O.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,pt.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let s=e.toLowerCase(),o=this.resolveContext(s);return new pt.ParametrizedLabelResolver((n=this.defaultMessages[s])!==null&&n!==void 0?n:{},o).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof pt.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new li({loadedContexts:e})),this.dispatchEvent(new li({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new li({loadedContexts:[e]})),this.dispatchEvent(new li({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,pt.delay)(0).then(()=>i()).catch(()=>null)))}};du=$f;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))}});var ci=window.FluidTopicsI18nService,rn=window.FluidTopicsCustomI18nService;var pu=c(f()),Ro=class{highlightHtml(e,r,i){(0,pu.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Ro;var hu=c(f());var To=class{isDate(e){var r,i,n,s;return(s=(n=((i=(r=O.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===e))===null||n===void 0?void 0:n.date)!==null&&s!==void 0?s:!1}format(e,r){var i,n,s,o;if(e==null)return"";try{return hu.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:O.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new To;var fu=c(f());var Kt=class{static get(e,r){var i,n,s,o;let a=O.getState(),{lang:l,region:u}=(s=(n=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&s!==void 0?s:{lang:"en",region:"US"};return new fu.SearchPlaceConverter(a.baseUrl,e??20,(o=a.localesConfiguration)===null||o===void 0?void 0:o.allLanguagesAllowed,r??`${l}-${u}`)}};var ko=class{urlToSearchRequest(e){return Kt.get().parse(e)}searchRequestToUrl(e){return Kt.get().serialize(e)}};window.FluidTopicsUrlService=new ko;var Gt=c(f());var Ir=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Ir.eventName="before-location-change";var Mr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Mr.eventName="change";var Lo=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))}},mu=new Lo;var sn=class t extends Gt.WithEventBus{static build(){return new t(window.history,mu,()=>window.location,!1)}constructor(e,r,i,n){var s,o;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(o=(s=e.state)===null||s===void 0?void 0:s.index)!==null&&o!==void 0?o:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Gt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Mr(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[s,o,a])=>{let l=new Ir(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(l);let u=r(),d={...u===this.currentIndex?this.currentState:void 0,...s,index:u,href:l.detail.nextLocation.href};i.apply(n,[d,o,d.href]),this.setCurrentState(d,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addBeforeLocationChangeListener(e){this.addEventListener(Ir.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Ir.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Mr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Mr.eventName,e)}currentItem(){return(0,Gt.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Gt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Gt.deepCopy)(r.find(i=>e(i)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,Gt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,s=e+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,i);)this.hasState(s)&&(n=s),s++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,s=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return s==null||s!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=sn.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 gu=c(v());var yu=gu.css`
|
|
271
|
+
`;var vu=c(v()),Be=c(V()),Br=c(f());var Nr=c(f());function bu(t,e){let{authenticationRequired:r,session:i}=O.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var nn=class extends ai{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var $o=class t extends Nr.FtStateManager{static build(e){return new t(O,e)}constructor(e,r){super(),this.store=e,this.cache=new Nr.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new nn,this.cleanSessionDebouncer=new Nr.Debouncer,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new Nr.Debouncer(500),this.apiProvider=r??(()=>Pr.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(or.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(or.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let r=await this.cache.get("availableContentLocales",()=>bu(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}setStickyFilters(e){this.store.actions.stickyFilters(e)}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Ki(i)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setNoCustomCode(e){this.store.actions.noCustomCode(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}},Do=$o.build();var Fr=class extends Event{constructor(e,r,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=n??!1}};var Gi=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:i}=r;for(let{elementRef:n,callbackRef:s}of i){let o=n.deref(),a=s.deref();o===void 0||a===void 0||o.dispatchEvent(new Fr(e.context,o,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let s=n.callbacks.get(r);s===void 0&&n.callbacks.set(r,s=new WeakSet),s.has(i)||(s.add(i),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var Ce=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},ne=class extends Br.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Do,this.contextRoot=new Gi}render(){return vu.html`
|
|
272
272
|
<slot></slot>
|
|
273
|
-
`}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>ci.addContext(i)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};
|
|
274
|
-
`;var
|
|
273
|
+
`}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>ci.addContext(i)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};ne.elementDefinitions={};ne.styles=yu;Ce([(0,Be.property)()],ne.prototype,"baseUrl",void 0);Ce([(0,Be.property)()],ne.prototype,"tenantId",void 0);Ce([(0,Be.property)()],ne.prototype,"apiIntegrationIdentifier",void 0);Ce([(0,Be.property)()],ne.prototype,"apiIntegrationAppVersion",void 0);Ce([(0,Be.property)()],ne.prototype,"uiLocale",void 0);Ce([(0,Br.jsonProperty)(null)],ne.prototype,"availableUiLocales",void 0);Ce([(0,Br.jsonProperty)(null)],ne.prototype,"metadataConfiguration",void 0);Ce([(0,Be.property)({type:Boolean})],ne.prototype,"editorMode",void 0);Ce([(0,Be.property)({type:Boolean})],ne.prototype,"noCustom",void 0);Ce([(0,Be.property)({type:Boolean})],ne.prototype,"openExternalDocumentInNewTab",void 0);Ce([(0,Be.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ne.prototype,"noCustomComponent",void 0);Ce([(0,Be.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ne.prototype,"noCustomCode",void 0);Ce([(0,Be.property)({type:Boolean})],ne.prototype,"withManualResources",void 0);Ce([(0,Be.property)({type:Boolean})],ne.prototype,"navigatorOnline",void 0);Ce([(0,Be.property)({type:Boolean})],ne.prototype,"forcedOffline",void 0);Ce([(0,Be.property)({type:Boolean})],ne.prototype,"authenticationRequired",void 0);Ce([(0,Br.jsonProperty)([])],ne.prototype,"messageContexts",void 0);Ce([(0,Br.jsonProperty)(void 0)],ne.prototype,"session",void 0);var Su=c(f());var xu={"ft-app-context":ne};(0,Su.customElements)(xu);var Eu=c(V());var Po=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,i]=e.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},ui=new Po;var If=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Yi=Symbol("i18nAttributes"),Cu=Symbol("i18nListAttributes"),Au=Symbol("i18nProperties"),on=Symbol("i18nContexts"),Qi=Symbol("i18nUnsubs"),pi=(0,di.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?rn:ci}i18n(s){let{context:o,key:a,message:l}=s,{custom:u,args:d,argsProvider:p}=s;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,u);let h=d??(p?p(this):[]);return this.getI18nService(u).resolveMessage(o,a,...h)}return l}async awaitI18n(s){let{context:o,custom:a}=s;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(s)}customI18n(s,o){if(ui.isI18nKey(s)){let[a,l]=s.split(".");return this.i18n({custom:!0,context:a,key:l,...o})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((o,a,l)=>s.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((o,a,l)=>{var u;return((u=l?.context)===null||u===void 0?void 0:u.toLowerCase())===s}),this.updateI18nProperties(o=>o.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var o,a;let l=this,u=(d,p,h)=>h?.context&&h.key&&s(d,p,h)?{...h,message:this.i18n({context:h.context,key:h.key,custom:h.custom,...d})}:h;(o=this[Yi])===null||o===void 0||o.forEach((d,p)=>l[p]=u(d,p,l[p])),(a=this[Cu])===null||a===void 0||a.forEach((d,p)=>{var h;return l[p]=(h=l[p])===null||h===void 0?void 0:h.map(b=>u(d,p,b))})}updateI18nProperties(s){var o;(o=this[Au])===null||o===void 0||o.forEach((a,l)=>{s(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(s,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,o,a)}addI18nContext(s,o,a){let l=(typeof s=="string"?s:s.name).toLowerCase();a=typeof s=="string"?a:s.custom,this[on].set(l,{isCustomContext:a}),this[Qi].has(l)||this[Qi].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,o)}hasI18nContext(s){return this[on].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[on].forEach((s,o)=>this.addI18nContext(o,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Qi].forEach(s=>s()),this[Qi].clear()}}return e=on,r=Qi,If([(0,Eu.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),an=class extends pi(di.FtLitElement){},ln=class extends pi(di.FtLitElementRedux){};var wu=c(f());var Io=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?ui.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Mf=new Io;var cn=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:wu.hasChanged,converter:ui,...e}),r[Yi]=(n=r[Yi])!==null&&n!==void 0?n:new Map,r[Yi].set(i,t??{})};var un=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?rn:ci}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let s=n;return o=>({context:this.name,key:s,custom:this.custom,args:typeof o=="function"?void 0:o,argsProvider:typeof o=="function"?o:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...s)=>this.service.resolveMessage(this.name,n,...s)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var Ou=c(v());var _u=Ou.css`
|
|
274
|
+
`;var dn=c(v()),fi=c(V()),pn=c(f());var hi=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},ht=class extends ln{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(O)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:dn.nothing:dn.html`
|
|
275
275
|
<span class="ft-i18n">
|
|
276
276
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
277
277
|
</span>
|
|
278
|
-
`}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};ht.elementDefinitions={};ht.styles=_u;hi([(0,
|
|
278
|
+
`}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};ht.elementDefinitions={};ht.styles=_u;hi([(0,pn.redux)()],ht.prototype,"editorMode",void 0);hi([(0,fi.property)()],ht.prototype,"context",void 0);hi([(0,fi.property)()],ht.prototype,"key",void 0);hi([(0,pn.jsonProperty)([])],ht.prototype,"args",void 0);hi([(0,fi.property)()],ht.prototype,"defaultMessage",void 0);hi([(0,fi.state)()],ht.prototype,"editorMessage",void 0);var Tu=c(f());var Ru={"ft-i18n":ht};(0,Tu.customElements)(Ru);var Ct=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},he=class extends an{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new ft.Debouncer,this.revealDebouncer=new ft.Debouncer,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)?this.matchesIgnored(e)&&this.hide():this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,r;return ku.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
|
|
293
|
+
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,i;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&Ol(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${ft.designSystemVariables.transitionDuration}, left ${ft.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,ft.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};he.elementDefinitions={"ft-typography":W};he.styles=Za;Ct([cn()],he.prototype,"text",void 0);Ct([(0,mt.property)({type:Boolean})],he.prototype,"manual",void 0);Ct([(0,mt.property)({type:Boolean})],he.prototype,"inline",void 0);Ct([(0,ft.numberProperty)()],he.prototype,"delay",void 0);Ct([(0,mt.property)()],he.prototype,"position",void 0);Ct([(0,ft.jsonProperty)([])],he.prototype,"ignoreMatchingElements",void 0);Ct([(0,mt.queryAssignedNodes)()],he.prototype,"slotNodes",void 0);Ct([(0,mt.query)(".ft-tooltip--container")],he.prototype,"container",void 0);Ct([(0,mt.query)(".ft-tooltip")],he.prototype,"tooltip",void 0);Ct([(0,mt.query)(".ft-tooltip--content")],he.prototype,"tooltipContent",void 0);Ct([(0,mt.state)()],he.prototype,"visible",void 0);var $u=c(f());var Lu={"ft-tooltip":he};(0,$u.customElements)(Lu);var Du=c(v()),At=c(f()),Ue={size:At.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:At.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",At.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:At.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",At.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:At.FtCssVariableFactory.extend("--ft-icon-material-font-family","",At.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:At.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Pu=[Du.css`
|
|
294
294
|
:host, i.ft-icon {
|
|
295
295
|
display: inline-flex;
|
|
296
296
|
align-items: center;
|
|
@@ -338,7 +338,7 @@
|
|
|
338
338
|
.ft-icon--material {
|
|
339
339
|
font-family: ${Ue.materialFontFamily}, "Material Icons", sans-serif;
|
|
340
340
|
}
|
|
341
|
-
`,At.noTextSelect];var ze;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(ze||(ze={}));var Xi=c(v()),ar=c(V()),Nu=c(f()),Fu=c(Mu());var be;(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="󨃱"})(be||(be={}));var g;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(g||(g={}));var Mo=new Map([...["abw"].map(t=>[t,g.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,g.AUDIO]),...["avi"].map(t=>[t,g.AVI]),...["chm","xhs"].map(t=>[t,g.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,g.CODE]),...["csv"].map(t=>[t,g.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,g.DITA]),...["epub"].map(t=>[t,g.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,g.EXCEL]),...["flac"].map(t=>[t,g.FLAC]),...["gif"].map(t=>[t,g.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,g.GZIP]),...["html","htm","xhtml"].map(t=>[t,g.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,g.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,g.JPEG]),...["json"].map(t=>[t,g.JSON]),...["m4a","m4p"].map(t=>[t,g.M4A]),...["mov","qt"].map(t=>[t,g.MOV]),...["mp3"].map(t=>[t,g.MP3]),...["mp4","m4v"].map(t=>[t,g.MP4]),...["ogg","oga"].map(t=>[t,g.OGG]),...["pdf","ps"].map(t=>[t,g.PDF]),...["png"].map(t=>[t,g.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,g.POWERPOINT]),...["rar"].map(t=>[t,g.RAR]),...["stp"].map(t=>[t,g.STP]),...["txt","rtf","md","mdown"].map(t=>[t,g.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,g.VIDEO]),...["wav"].map(t=>[t,g.WAV]),...["wma"].map(t=>[t,g.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,g.WORD]),...["xml","xsl","rdf"].map(t=>[t,g.XML]),...["yaml","yml","x-yaml"].map(t=>[t,g.YAML]),...["zip"].map(t=>[t,g.ZIP])]),Nf=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function hs(t,e){var r,i,s,n;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[o,a]=(((r=Nf.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(n=(s=(i=Mo.get(a))!==null&&i!==void 0?i:Mo.get(e))!==null&&s!==void 0?s:Mo.get(o))!==null&&n!==void 0?n:g.UNKNOWN}var Vx={[g.ABW]:"#91ABC6",[g.AUDIO]:"#1795E3",[g.AVI]:"#E63324",[g.CHM]:"#71C3EB",[g.CODE]:"#71C3EB",[g.CSV]:"#1F7345",[g.DITA]:"#71C3EB",[g.EPUB]:"#85B926",[g.EXCEL]:"#1F7345",[g.FLAC]:"#1795E3",[g.GIF]:"#59B031",[g.GZIP]:"#F8AB36",[g.HTML]:"#71C3EB",[g.IMAGE]:"#59B031",[g.JPEG]:"#59B031",[g.JSON]:"#71C3EB",[g.M4A]:"#1795E3",[g.MOV]:"#E63324",[g.MP3]:"#1795E3",[g.MP4]:"#E63324",[g.OGG]:"#1795E3",[g.PDF]:"#E44948",[g.PNG]:"#59B031",[g.POWERPOINT]:"#B54A2B",[g.RAR]:"#F8AB36",[g.STP]:"#3764B1",[g.TEXT]:"#3162AB",[g.UNKNOWN]:"#999999",[g.VIDEO]:"#E63324",[g.WAV]:"#1795E3",[g.WMA]:"#1795E3",[g.WORD]:"#3162AB",[g.XML]:"#71C3EB",[g.YAML]:"#71C3EB",[g.ZIP]:"#F8AB36"};var Zi=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},ee=class extends Nu.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Xi.nothing}render(){let e=this.variant&&Object.values(ze).includes(this.variant)?this.variant:ze.fluid_topics,r=e!==ze.material||!!this.value;return Xi.html`
|
|
341
|
+
`,At.noTextSelect];var ze;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(ze||(ze={}));var Xi=c(v()),ar=c(V()),Nu=c(f()),Fu=c(Mu());var be;(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="󨃱"})(be||(be={}));var g;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(g||(g={}));var Mo=new Map([...["abw"].map(t=>[t,g.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,g.AUDIO]),...["avi"].map(t=>[t,g.AVI]),...["chm","xhs"].map(t=>[t,g.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,g.CODE]),...["csv"].map(t=>[t,g.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,g.DITA]),...["epub"].map(t=>[t,g.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,g.EXCEL]),...["flac"].map(t=>[t,g.FLAC]),...["gif"].map(t=>[t,g.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,g.GZIP]),...["html","htm","xhtml"].map(t=>[t,g.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,g.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,g.JPEG]),...["json"].map(t=>[t,g.JSON]),...["m4a","m4p"].map(t=>[t,g.M4A]),...["mov","qt"].map(t=>[t,g.MOV]),...["mp3"].map(t=>[t,g.MP3]),...["mp4","m4v"].map(t=>[t,g.MP4]),...["ogg","oga"].map(t=>[t,g.OGG]),...["pdf","ps"].map(t=>[t,g.PDF]),...["png"].map(t=>[t,g.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,g.POWERPOINT]),...["rar"].map(t=>[t,g.RAR]),...["stp"].map(t=>[t,g.STP]),...["txt","rtf","md","mdown"].map(t=>[t,g.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,g.VIDEO]),...["wav"].map(t=>[t,g.WAV]),...["wma"].map(t=>[t,g.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,g.WORD]),...["xml","xsl","rdf"].map(t=>[t,g.XML]),...["yaml","yml","x-yaml"].map(t=>[t,g.YAML]),...["zip"].map(t=>[t,g.ZIP])]),Nf=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function hn(t,e){var r,i,n,s;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[o,a]=(((r=Nf.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(s=(n=(i=Mo.get(a))!==null&&i!==void 0?i:Mo.get(e))!==null&&n!==void 0?n:Mo.get(o))!==null&&s!==void 0?s:g.UNKNOWN}var Vx={[g.ABW]:"#91ABC6",[g.AUDIO]:"#1795E3",[g.AVI]:"#E63324",[g.CHM]:"#71C3EB",[g.CODE]:"#71C3EB",[g.CSV]:"#1F7345",[g.DITA]:"#71C3EB",[g.EPUB]:"#85B926",[g.EXCEL]:"#1F7345",[g.FLAC]:"#1795E3",[g.GIF]:"#59B031",[g.GZIP]:"#F8AB36",[g.HTML]:"#71C3EB",[g.IMAGE]:"#59B031",[g.JPEG]:"#59B031",[g.JSON]:"#71C3EB",[g.M4A]:"#1795E3",[g.MOV]:"#E63324",[g.MP3]:"#1795E3",[g.MP4]:"#E63324",[g.OGG]:"#1795E3",[g.PDF]:"#E44948",[g.PNG]:"#59B031",[g.POWERPOINT]:"#B54A2B",[g.RAR]:"#F8AB36",[g.STP]:"#3764B1",[g.TEXT]:"#3162AB",[g.UNKNOWN]:"#999999",[g.VIDEO]:"#E63324",[g.WAV]:"#1795E3",[g.WMA]:"#1795E3",[g.WORD]:"#3162AB",[g.XML]:"#71C3EB",[g.YAML]:"#71C3EB",[g.ZIP]:"#F8AB36"};var Zi=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},ee=class extends Nu.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Xi.nothing}render(){let e=this.variant&&Object.values(ze).includes(this.variant)?this.variant:ze.fluid_topics,r=e!==ze.material||!!this.value;return Xi.html`
|
|
342
342
|
<i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
|
|
343
343
|
${(0,Fu.unsafeHTML)(this.resolvedIcon)}
|
|
344
344
|
<slot ?hidden=${r}></slot>
|
|
@@ -419,7 +419,7 @@
|
|
|
419
419
|
<div></div>
|
|
420
420
|
<div></div>
|
|
421
421
|
</div>
|
|
422
|
-
`}};zr.styles=Vu;var Wu=c(f());var qu={"ft-loader":zr};(0,Wu.customElements)(qu);var cr=c(v()),
|
|
422
|
+
`}};zr.styles=Vu;var Wu=c(f());var qu={"ft-loader":zr};(0,Wu.customElements)(qu);var cr=c(v()),fn=c(Je()),K=c(V());var lr=t=>t??ge;var Qu=c(v()),$=c(f());var Ku=$.FtCssVariableFactory.extend("--ft-button-color","",$.designSystemVariables.colorPrimary),k={backgroundColor:$.FtCssVariableFactory.extend("--ft-button-background-color","",$.designSystemVariables.colorSurface),borderRadius:$.FtCssVariableFactory.extend("--ft-button-border-radius","",$.designSystemVariables.borderRadiusL),color:Ku,fontSize:$.FtCssVariableFactory.extend("--ft-button-font-size","",vt.fontSize),iconSize:$.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:$.FtCssVariableFactory.extend("--ft-button-ripple-color","",Ku),verticalPadding:$.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:$.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:$.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:$.FtCssVariableFactory.external($.designSystemVariables.colorOpacityDisabled,"Design system")},Gu=$.FtCssVariableFactory.extend("--ft-button-primary-color","",$.FtCssVariableFactory.extend("--ft-button-color","",$.designSystemVariables.colorOnPrimary)),No={backgroundColor:$.FtCssVariableFactory.extend("--ft-button-primary-background-color","",$.FtCssVariableFactory.extend("--ft-button-background-color","",$.designSystemVariables.colorPrimary)),color:Gu,rippleColor:$.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Gu)},Pt={borderRadius:$.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",$.FtCssVariableFactory.extend("--ft-button-border-radius","",$.designSystemVariables.borderRadiusM)),verticalPadding:$.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:$.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:$.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Yu=Qu.css`
|
|
423
423
|
:host {
|
|
424
424
|
display: inline-block;
|
|
425
425
|
max-width: 100%;
|
|
@@ -556,7 +556,7 @@
|
|
|
556
556
|
${(0,$.setVariable)(Ur.size,k.iconSize)};
|
|
557
557
|
${(0,$.setVariable)(Ur.color,"var(--button-internal-color)")};
|
|
558
558
|
}
|
|
559
|
-
`;var te=function(t,e,r,i){var
|
|
559
|
+
`;var te=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},C=class t extends(0,It.toFtFormComponent)(It.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let n={"ft-button--label":!0,"ft-safari-ellipsis-fix":It.isSafari,"ft-button--label-no-text":!this.hasTextContent},s=cr.html`
|
|
560
560
|
<ft-ripple part="ripple"
|
|
561
561
|
?disabled=${this.isDisabled()}
|
|
562
562
|
?activated=${this.activated}
|
|
@@ -564,7 +564,7 @@
|
|
|
564
564
|
<ft-typography part="label"
|
|
565
565
|
variant="${ce.button}"
|
|
566
566
|
element="span"
|
|
567
|
-
class="${(0,
|
|
567
|
+
class="${(0,fn.classMap)(n)}">
|
|
568
568
|
<slot></slot>
|
|
569
569
|
</ft-typography>
|
|
570
570
|
${this.resolveIcon()}
|
|
@@ -572,19 +572,19 @@
|
|
|
572
572
|
<a href="${o}"
|
|
573
573
|
target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
|
|
574
574
|
part="button"
|
|
575
|
-
class="${(0,
|
|
575
|
+
class="${(0,fn.classMap)(this.buttonClasses)}"
|
|
576
576
|
aria-label="${lr((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
|
|
577
577
|
?disabled=${this.isDisabled()}>
|
|
578
|
-
${
|
|
578
|
+
${s}
|
|
579
579
|
</a>
|
|
580
580
|
`:cr.html`
|
|
581
581
|
<button part="button"
|
|
582
|
-
class="${(0,
|
|
582
|
+
class="${(0,fn.classMap)(this.buttonClasses)}"
|
|
583
583
|
aria-label="${lr((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
|
|
584
584
|
aria-haspopup="${lr(this.ariaHasPopup)}"
|
|
585
585
|
aria-pressed="${lr(this.ariaPressed)}"
|
|
586
586
|
?disabled=${this.isDisabled()}>
|
|
587
|
-
${
|
|
587
|
+
${s}
|
|
588
588
|
</button>
|
|
589
589
|
`)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?cr.html`
|
|
590
590
|
<ft-tooltip part="tooltip"
|
|
@@ -671,7 +671,7 @@
|
|
|
671
671
|
height: 20px;
|
|
672
672
|
border-right: 1px solid ${Se.colorOutline};
|
|
673
673
|
}
|
|
674
|
-
`;var mi=c(f()),Uo=c(V());var Fo;(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Fo||(Fo={}));var ur=c(f());var Ff=c(f());var
|
|
674
|
+
`;var mi=c(f()),Uo=c(V());var Fo;(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Fo||(Fo={}));var ur=c(f());var Ff=c(f());var mn=class t extends Event{constructor(){super(t.eventName)}};mn.eventName="search-context-clear-all-filters";var td=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},zo=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},rd=Symbol("registerInterval"),Bo=Symbol("registerAttempts"),Bf=40,Uf=(0,mi.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(i){var n,s,o;super.willUpdate(i),i.has("neededSearchRequests")&&((n=this.stateManager)===null||n===void 0||n.unregisterComponent(this,(s=i.get("neededSearchRequests"))!==null&&s!==void 0?s:[]),(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[Bo]=0,this.tryToRegisterToContext(),this[rd]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Bo]>Bf?window.clearInterval(this[rd]):(this[Bo]++,this.dispatchEvent(new zo))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return td([(0,Uo.state)()],e.prototype,"stateManager",void 0),td([(0,Uo.state)({hasChanged:mi.hasChanged})],e.prototype,"neededSearchRequests",void 0),e}),gn=class extends Uf(mi.FtLitElementRedux){};var Qt=un.build("designedSearchInput");var lt=c(V()),jp=c(Je());var Hp=c(f()),Qr=c(v());var Up=c(v());var zp=c(f());var H=c(v()),B=c(V()),ls=c(dr()),Y=c(f());var od=c(v()),Vr=c(V()),yn=c(f());var gt;(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(gt||(gt={}));var sd=c(v());var nd=sd.css`
|
|
675
675
|
.ft-size-watcher--pixel {
|
|
676
676
|
width: 0;
|
|
677
677
|
height: 0;
|
|
@@ -690,11 +690,11 @@
|
|
|
690
690
|
.ft-size-watcher--local .ft-size-watcher--watcher {
|
|
691
691
|
width: 100%;
|
|
692
692
|
}
|
|
693
|
-
`;var
|
|
693
|
+
`;var es=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Vo=class extends CustomEvent{constructor(e,r){super("change",{detail:{size:e,category:r}})}},rt=class extends yn.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=gt.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new yn.Debouncer}render(){return od.html`
|
|
694
694
|
<div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
|
|
695
695
|
<div class="ft-size-watcher--watcher"></div>
|
|
696
696
|
</div>
|
|
697
|
-
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run(()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=gt.S:this.size<976?this.category=gt.M:this.size<1024?this.category=gt.L:this.size<1440?this.category=gt.XL:this.category=gt.XXL,this.dispatchEvent(new Vo(this.size,this.category)))},this.debounceTimeout)}};rt.elementDefinitions={};rt.styles=
|
|
697
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run(()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=gt.S:this.size<976?this.category=gt.M:this.size<1024?this.category=gt.L:this.size<1440?this.category=gt.XL:this.category=gt.XXL,this.dispatchEvent(new Vo(this.size,this.category)))},this.debounceTimeout)}};rt.elementDefinitions={};rt.styles=nd;es([(0,Vr.property)({type:Number})],rt.prototype,"debounceTimeout",void 0);es([(0,Vr.property)({type:Boolean})],rt.prototype,"local",void 0);es([(0,Vr.property)({type:Number,reflect:!0})],rt.prototype,"size",void 0);es([(0,Vr.property)({type:String,reflect:!0})],rt.prototype,"category",void 0);es([(0,Vr.query)(".ft-size-watcher--watcher")],rt.prototype,"watcher",void 0);var ld=c(f());var ad={"ft-size-watcher":rt};(0,ld.customElements)(ad);var Ho=c(f());function bn(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function cd(t){return bn(t).split("|").pop()}function ud(t){return bn(t).split("|").join(" > ")}function dd(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>dd(r,t.selected)),value:t.value}}function pd(t){return(0,Ho.flatDeep)(t.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]}).filter(e=>e.selected).map(e=>e.label)}function jo(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>dd(e,!1))}}function hd(t){return(0,Ho.flatDeep)(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var fd=c(v()),Q=c(f());var ts={buttonMoreColor:Q.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",Q.designSystemVariables.colorOnSurface),borderRadiusM:Q.FtCssVariableFactory.external(Q.designSystemVariables.borderRadiusM,"Design system"),colorOutline:Q.FtCssVariableFactory.external(Q.designSystemVariables.colorOutline,"Design system"),colorOnSurface:Q.FtCssVariableFactory.external(Q.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:Q.FtCssVariableFactory.external(Q.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:Q.FtCssVariableFactory.external(Q.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:Q.FtCssVariableFactory.external(Q.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:Q.FtCssVariableFactory.external(Q.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:Q.FtCssVariableFactory.external(ye.fontFamily,"Body2 typography"),fontSize:Q.FtCssVariableFactory.external(ye.fontSize,"Body2 typography"),fontWeight:Q.FtCssVariableFactory.external(ye.fontWeight,"Body2 typography"),letterSpacing:Q.FtCssVariableFactory.external(ye.letterSpacing,"Body2 typography"),lineHeight:Q.FtCssVariableFactory.external(ye.lineHeight,"Body2 typography"),textTransform:Q.FtCssVariableFactory.external(ye.textTransform,"Body2 typography")},md=fd.css`
|
|
698
698
|
.ft-filter-level--container {
|
|
699
699
|
display: flex;
|
|
700
700
|
flex-direction: column;
|
|
@@ -709,14 +709,14 @@
|
|
|
709
709
|
flex-shrink: 0;
|
|
710
710
|
text-decoration: none;
|
|
711
711
|
position: relative;
|
|
712
|
-
border-radius: ${
|
|
712
|
+
border-radius: ${ts.borderRadiusM};
|
|
713
713
|
overflow: hidden;
|
|
714
714
|
display: flex;
|
|
715
715
|
align-items: center;
|
|
716
716
|
padding: 4px 4px;
|
|
717
717
|
gap: 4px;
|
|
718
718
|
cursor: pointer;
|
|
719
|
-
color: ${
|
|
719
|
+
color: ${ts.colorOnSurface};
|
|
720
720
|
}
|
|
721
721
|
|
|
722
722
|
.ft-filter-level--go-back:focus {
|
|
@@ -745,11 +745,11 @@
|
|
|
745
745
|
}
|
|
746
746
|
|
|
747
747
|
ft-button {
|
|
748
|
-
${(0,Q.setVariable)(k.color,
|
|
748
|
+
${(0,Q.setVariable)(k.color,ts.colorOnSurface)};
|
|
749
749
|
}
|
|
750
750
|
|
|
751
751
|
ft-button.ft-filter-level--display-more {
|
|
752
|
-
${(0,Q.setVariable)(k.color,
|
|
752
|
+
${(0,Q.setVariable)(k.color,ts.buttonMoreColor)};
|
|
753
753
|
}
|
|
754
754
|
|
|
755
755
|
ft-radio, ft-checkbox {
|
|
@@ -763,9 +763,9 @@
|
|
|
763
763
|
|
|
764
764
|
.ft-filter-level--no-values {
|
|
765
765
|
margin: 10px 0;
|
|
766
|
-
color: ${
|
|
766
|
+
color: ${ts.colorOnSurfaceMedium};
|
|
767
767
|
}
|
|
768
|
-
`;var jr=c(v()),X=c(V()),fe=c(f());var
|
|
768
|
+
`;var jr=c(v()),X=c(V()),fe=c(f());var nt=c(v()),Ee=c(V()),Dd=c(dr()),Xe=c(f());var vn=c(v()),wt=c(V()),bd=c(f()),vd=c(Je());var _e=c(f()),gd=c(v());var it={textColor:_e.FtCssVariableFactory.extend("--ft-checkbox-text-color","",_e.designSystemVariables.colorOnSurfaceHigh),fontSize:_e.FtCssVariableFactory.extend("--ft-checkbox-font-size","",y.fontSize),activeColor:_e.FtCssVariableFactory.extend("--ft-checkbox-active-color","",_e.designSystemVariables.colorPrimary),checkColor:_e.FtCssVariableFactory.extend("--ft-checkbox-check-color","",_e.designSystemVariables.colorOnPrimary),borderColor:_e.FtCssVariableFactory.extend("--ft-checkbox-border-color","",_e.designSystemVariables.colorOnSurfaceMedium),disabledColor:_e.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",_e.designSystemVariables.colorOnSurfaceDisabled),errorColor:_e.FtCssVariableFactory.extend("--ft-checkbox-error-color","",_e.designSystemVariables.colorError)},yd=gd.css`
|
|
769
769
|
* {
|
|
770
770
|
box-sizing: border-box;
|
|
771
771
|
}
|
|
@@ -858,7 +858,7 @@
|
|
|
858
858
|
}
|
|
859
859
|
}
|
|
860
860
|
}
|
|
861
|
-
`;var Yt=function(t,e,r,i){var
|
|
861
|
+
`;var Yt=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},qo=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Re=class extends bd.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1}get checkboxClasses(){return{"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.indeterminate?!1:this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled}}renderBoxContainer(){return vn.html`
|
|
862
862
|
<div class="ft-checkbox--box-container" part="checkbox-box-container">
|
|
863
863
|
<ft-ripple part="checkbox-ripple"
|
|
864
864
|
?disabled=${this.disabled}
|
|
@@ -880,14 +880,14 @@
|
|
|
880
880
|
@change=${this.onChange}
|
|
881
881
|
>
|
|
882
882
|
</div>
|
|
883
|
-
`}render(){return
|
|
883
|
+
`}render(){return vn.html`
|
|
884
884
|
<label class="${(0,vd.classMap)(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
|
|
885
885
|
${this.renderBoxContainer()}
|
|
886
886
|
<ft-typography variant="${ce.body2}" part="checkbox-body">
|
|
887
887
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
888
888
|
</ft-typography>
|
|
889
889
|
</label>
|
|
890
|
-
`}renderBoxIcon(){return
|
|
890
|
+
`}renderBoxIcon(){return vn.html`
|
|
891
891
|
<svg class="ft-checkbox--checkmark" viewBox="0 0 24 24" part="checkbox-check" aria-hidden="true">
|
|
892
892
|
<path class="ft-checkbox--checkmark-path" fill="none"
|
|
893
893
|
d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
|
|
@@ -981,7 +981,7 @@
|
|
|
981
981
|
.ft-radio ft-typography {
|
|
982
982
|
padding-right: 2px;
|
|
983
983
|
}
|
|
984
|
-
`;var hr=function(t,e,r,i){var
|
|
984
|
+
`;var hr=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},xn=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},Ae=class extends wd.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.ariaChecked="false",this.disabled=!1}get radioClasses(){return{"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled}}render(){return Ad.html`
|
|
985
985
|
<div class="${(0,Od.classMap)(this.radioClasses)}"
|
|
986
986
|
@click=${this.onClick}>
|
|
987
987
|
<div class="ft-radio--box-container">
|
|
@@ -1007,7 +1007,7 @@
|
|
|
1007
1007
|
</ft-typography>
|
|
1008
1008
|
</label>
|
|
1009
1009
|
</div>
|
|
1010
|
-
`}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new
|
|
1010
|
+
`}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new xn(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 xn(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(e){var r;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};Ae.elementDefinitions={"ft-ripple":L,"ft-typography":W};Ae.styles=Cd;hr([(0,Mt.property)()],Ae.prototype,"name",void 0);hr([(0,Mt.property)()],Ae.prototype,"value",void 0);hr([(0,Mt.property)({type:Boolean,reflect:!0})],Ae.prototype,"checked",void 0);hr([(0,Mt.property)({attribute:"aria-checked",reflect:!0})],Ae.prototype,"ariaChecked",void 0);hr([(0,Mt.property)({type:Boolean})],Ae.prototype,"disabled",void 0);hr([(0,Mt.query)(".ft-radio")],Ae.prototype,"container",void 0);hr([(0,Mt.query)("ft-ripple")],Ae.prototype,"ripple",void 0);hr([(0,Mt.query)("input")],Ae.prototype,"input",void 0);var Td=c(f()),fr=c(V()),kd=c(v());var _d=c(v());var Rd=_d.css`
|
|
1011
1011
|
:host {
|
|
1012
1012
|
display: block;
|
|
1013
1013
|
}
|
|
@@ -1015,14 +1015,14 @@
|
|
|
1015
1015
|
:host(:focus-visible) {
|
|
1016
1016
|
outline: none;
|
|
1017
1017
|
}
|
|
1018
|
-
`;var
|
|
1018
|
+
`;var rs=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},st=class extends Td.FtLitElement{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)}}get radioButtons(){var e,r;return(r=(e=this.assignedElements)===null||e===void 0?void 0:e.flatMap(i=>i.matches("ft-radio,ftds-radio")?[i]:[...i.querySelectorAll("ft-radio,ftds-radio")]))!==null&&r!==void 0?r:[]}render(){return kd.html`
|
|
1019
1019
|
<slot @slotchange=${this.onSlotChange}
|
|
1020
1020
|
@change=${this.onChange}
|
|
1021
1021
|
@keydown=${this.onKeyDown}
|
|
1022
1022
|
></slot>
|
|
1023
|
-
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};
|
|
1023
|
+
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};st.elementDefinitions={};st.styles=Rd;rs([(0,fr.property)()],st.prototype,"name",void 0);rs([(0,fr.property)({reflect:!0,attribute:"role"})],st.prototype,"role",void 0);rs([(0,fr.property)({reflect:!0,attribute:"aria-labelledby"})],st.prototype,"ariaLabelledBy",void 0);rs([(0,fr.queryAssignedElements)()],st.prototype,"assignedElements",void 0);rs([(0,fr.state)()],st.prototype,"currentSelectedIndex",void 0);var $d=c(f());var Ld={"ft-radio":Ae,"ft-radio-group":st};(0,$d.customElements)(Ld);var Te=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Wo={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},oe=class extends(0,Xe.withAnalytics)(pi((0,Xe.withAriaNotification)(Xe.FtLitElement)),Wo){constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new Xe.Debouncer(500)}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,r;return(r=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(e){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${e}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(e){super.willUpdate(e),(e.has("options")||e.has("hideSelectedOptions")||e.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(r=>!r.selected)),this.filter&&(e=e.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=e}render(){let e=this.filteredOptions.slice(0,this.limit);return nt.html`
|
|
1024
1024
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
1025
|
-
${this.parent==null?null:
|
|
1025
|
+
${this.parent==null?null:nt.html`
|
|
1026
1026
|
<div tabindex="0"
|
|
1027
1027
|
part="controls go-back"
|
|
1028
1028
|
class="ft-filter-level--go-back"
|
|
@@ -1036,15 +1036,15 @@
|
|
|
1036
1036
|
<ft-typography variant="${ce.body2}">${this.parent.label}</ft-typography>
|
|
1037
1037
|
</div>
|
|
1038
1038
|
`}
|
|
1039
|
-
${this.filteredOptions.length===0&&this.noValuesLabel?
|
|
1039
|
+
${this.filteredOptions.length===0&&this.noValuesLabel?nt.html`
|
|
1040
1040
|
<ft-typography class="ft-filter-level--no-values" element="span" variant="${ce.body2}">
|
|
1041
1041
|
${this.noValuesLabel}
|
|
1042
1042
|
</ft-typography>
|
|
1043
|
-
`:
|
|
1044
|
-
${(0,Dd.repeat)(e,r=>r.value,r=>{var i;return
|
|
1043
|
+
`:nt.nothing}
|
|
1044
|
+
${(0,Dd.repeat)(e,r=>r.value,r=>{var i;return nt.html`
|
|
1045
1045
|
<div class="ft-filter-level--option" part="options" tabindex="-1">
|
|
1046
1046
|
${this.multivalued?this.buildMultiValuedOption(r):this.buildMonoValuedOption(r)}
|
|
1047
|
-
${this.preventNavigation||r.selected||((i=r.subOptions)!==null&&i!==void 0?i:[]).length===0?
|
|
1047
|
+
${this.preventNavigation||r.selected||((i=r.subOptions)!==null&&i!==void 0?i:[]).length===0?nt.nothing:nt.html`
|
|
1048
1048
|
<ft-button icon="thin_arrow_right"
|
|
1049
1049
|
part="controls navigate-hierarchy"
|
|
1050
1050
|
aria-label="Expand node"
|
|
@@ -1055,7 +1055,7 @@
|
|
|
1055
1055
|
`}
|
|
1056
1056
|
</div>
|
|
1057
1057
|
`})}
|
|
1058
|
-
${e.length<this.filteredOptions.length?
|
|
1058
|
+
${e.length<this.filteredOptions.length?nt.html`
|
|
1059
1059
|
<ft-button
|
|
1060
1060
|
class="ft-filter-level--display-more"
|
|
1061
1061
|
icon="thin_arrow"
|
|
@@ -1064,20 +1064,20 @@
|
|
|
1064
1064
|
@click=${()=>{this.emitAnalyticsAction("more-filters-button-pressed",{}),this.displayMore()}}>
|
|
1065
1065
|
${this.moreValuesButtonLabel}
|
|
1066
1066
|
</ft-button>
|
|
1067
|
-
`:
|
|
1067
|
+
`:nt.nothing}
|
|
1068
1068
|
</div>
|
|
1069
|
-
`}goBackOnKeyPress(e){(e.key==="Enter"||e.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){var e;let r=(e=this.limit)!==null&&e!==void 0?e:0,i=this.parent!=null;this.displayedPages++,this.elementToFocus={selector:`.ft-filter-level--option:nth-child(${r+(i?2:1)}) [part~="option"]`}}buildMultiValuedOption(e){var r;return
|
|
1069
|
+
`}goBackOnKeyPress(e){(e.key==="Enter"||e.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){var e;let r=(e=this.limit)!==null&&e!==void 0?e:0,i=this.parent!=null;this.displayedPages++,this.elementToFocus={selector:`.ft-filter-level--option:nth-child(${r+(i?2:1)}) [part~="option"]`}}buildMultiValuedOption(e){var r;return nt.html`
|
|
1070
1070
|
<ft-checkbox name="${this.filterId}"
|
|
1071
1071
|
part="multivalued-option option"
|
|
1072
1072
|
.exportpartsPrefixes=${["multivalued-option","option"]}
|
|
1073
1073
|
data-value="${e.value}"
|
|
1074
1074
|
.checked=${e.selected}
|
|
1075
1075
|
.disabled=${this.disabled}
|
|
1076
|
-
.indeterminate=${(0,Xe.flatDeep)((r=e.subOptions)!==null&&r!==void 0?r:[],i=>{var
|
|
1076
|
+
.indeterminate=${(0,Xe.flatDeep)((r=e.subOptions)!==null&&r!==void 0?r:[],i=>{var n;return(n=i.subOptions)!==null&&n!==void 0?n:[]}).some(i=>i.selected)}
|
|
1077
1077
|
@change=${i=>this.optionsChanged(i,e)}>
|
|
1078
1078
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1079
1079
|
</ft-checkbox>
|
|
1080
|
-
`}buildMonoValuedOption(e){return
|
|
1080
|
+
`}buildMonoValuedOption(e){return nt.html`
|
|
1081
1081
|
<ft-radio name="${this.filterId+Math.round(Math.random()*1e6)}"
|
|
1082
1082
|
part="monovalued-option option"
|
|
1083
1083
|
data-value="${e.value}"
|
|
@@ -1213,7 +1213,7 @@
|
|
|
1213
1213
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1214
1214
|
background-color: ${Ve.colorSurface};
|
|
1215
1215
|
}
|
|
1216
|
-
`;var Nt=function(t,e,r,i){var
|
|
1216
|
+
`;var Nt=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Ko=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},ve=class extends Hr.FtLitElement{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver(()=>this.scheduleUpdateScroll()),this.scrollDebouncer=new Hr.Debouncer(200),this.updateScrollDebouncer=new Hr.Debouncer(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let r=this.elements[e];if(r){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,n=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<n||r[this.offsetAttribute]+r[this.sizeAttribute]>i)&&this.scrollToElement(r)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let e=(0,Nd.classMap)({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":Hr.isSafari}),r=this.controls&&this.withScroll;return Md.html`
|
|
1217
1217
|
<div part="container" class="${e}">
|
|
1218
1218
|
<ft-button
|
|
1219
1219
|
class="ft-snap-scroll--previous"
|
|
@@ -1354,7 +1354,7 @@
|
|
|
1354
1354
|
slot:not([name]) {
|
|
1355
1355
|
display: none;
|
|
1356
1356
|
}
|
|
1357
|
-
`];var ie=function(t,e,r,i){var
|
|
1357
|
+
`];var ie=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Go=class extends CustomEvent{constructor(e){super("change",{detail:e})}},z=class extends(0,fe.withAnalytics)(fe.FtLitElement,Wo){constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new fe.Debouncer(300),this.changeDebouncer=new fe.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,fe.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,fe.flatDeep)(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(n=>n.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return jr.html`
|
|
1358
1358
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1359
1359
|
part="container">
|
|
1360
1360
|
${!this.label&&!e?null:jr.html`
|
|
@@ -1394,7 +1394,7 @@
|
|
|
1394
1394
|
@slotchange=${this.updateOptionsFromSlot}
|
|
1395
1395
|
@option-change=${this.optionsChanged}></slot>
|
|
1396
1396
|
</div>
|
|
1397
|
-
`}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(i=>i.value));this.displayedLevels=this.displayedLevels.filter(i=>r.has(i)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var r,i,s,
|
|
1397
|
+
`}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(i=>i.value));this.displayedLevels=this.displayedLevels.filter(i=>r.has(i)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var r,i,n,s,o,a;super.contentAvailableCallback(e),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),e.has("options")&&(this.updateScroll(),(r=this.levelsContainer)===null||r===void 0||r.scrollToIndex(this.displayedLevels.length)),e.has("slideIn")&&this.slideIn&&((i=this.levelsContainer)===null||i===void 0||i.next(),setTimeout(()=>{this.slideIn=void 0},300)),e.has("slideOut")&&this.slideOut&&((n=this.levelsContainer)===null||n===void 0||n.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(a=(o=(s=this.shadowRoot)===null||s===void 0?void 0:s.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||o===void 0?void 0:o.hasHiddenValues)!==null&&a!==void 0?a:!1}renderLevels(){let e=this.flatOptions,r=e.filter(s=>s.selected),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,n=i<0?"ft-filter--level-center":"ft-filter--level-left";return jr.html`
|
|
1398
1398
|
${this.raiseSelectedOptions&&r.length>0?jr.html`
|
|
1399
1399
|
<ft-filter-level
|
|
1400
1400
|
filterId="${this.id}"
|
|
@@ -1412,9 +1412,9 @@
|
|
|
1412
1412
|
`:null}
|
|
1413
1413
|
<ft-snap-scroll horizontal hideScrollbar
|
|
1414
1414
|
class="ft-filter--levels"
|
|
1415
|
-
@current-element-change=${
|
|
1416
|
-
${this.renderLevel(
|
|
1417
|
-
${this.displayedLevels.map(
|
|
1415
|
+
@current-element-change=${s=>this.levelsScrollDebouncer.run(()=>{for(;s.detail.index<this.displayedLevels.length;)this.displayedLevels.pop();this.requestUpdate()})}>
|
|
1416
|
+
${this.renderLevel(n,this.options)}
|
|
1417
|
+
${this.displayedLevels.map(s=>e.find(o=>o.value===s)).map((s,o)=>{var a;let l=s?.value===this.slideIn||s?.value===this.slideOut?"ft-filter--level-right":o===i?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(l,(a=s?.subOptions)!==null&&a!==void 0?a:[],s)})}
|
|
1418
1418
|
</ft-snap-scroll>
|
|
1419
1419
|
`}renderLevel(e,r,i){return jr.html`
|
|
1420
1420
|
<ft-filter-level
|
|
@@ -1438,17 +1438,17 @@
|
|
|
1438
1438
|
noValuesLabel="${this.noValuesLabel}"
|
|
1439
1439
|
.filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
|
|
1440
1440
|
></ft-filter-level>
|
|
1441
|
-
`}goBack(e){this.slideOut=e.detail.value,(0,fe.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,(0,fe.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){(0,fe.waitUntil)(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let i=this.flatOptions.find(
|
|
1441
|
+
`}goBack(e){this.slideOut=e.detail.value,(0,fe.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,(0,fe.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){(0,fe.waitUntil)(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let i=this.flatOptions.find(s=>s.value===e.detail.value);i.selected=!i.selected;let n=s=>{var o;s!==i&&(s.selected=!1),(o=s.subOptions)===null||o===void 0||o.forEach(n)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,fe.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new Go(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};z.elementDefinitions={"ft-button":C,"ft-filter-level":oe,"ft-snap-scroll":ve,"ft-typography":W};z.styles=zd;ie([(0,X.property)({type:String})],z.prototype,"id",void 0);ie([(0,X.property)({type:String})],z.prototype,"label",void 0);ie([(0,X.property)({type:String})],z.prototype,"filterPlaceHolder",void 0);ie([(0,X.property)({type:String})],z.prototype,"clearButtonLabel",void 0);ie([(0,X.property)({type:String})],z.prototype,"moreValuesButtonLabel",void 0);ie([(0,X.property)({type:String})],z.prototype,"noValuesLabel",void 0);ie([(0,fe.jsonProperty)([])],z.prototype,"options",void 0);ie([(0,X.property)({type:Boolean})],z.prototype,"multivalued",void 0);ie([(0,X.property)({type:Boolean})],z.prototype,"disabled",void 0);ie([(0,X.property)({type:Boolean})],z.prototype,"raiseSelectedOptions",void 0);ie([(0,X.property)({type:Boolean})],z.prototype,"displayCount",void 0);ie([(0,fe.numberProperty)()],z.prototype,"displayedValuesLimit",void 0);ie([(0,fe.jsonProperty)(void 0)],z.prototype,"filteredOptionsNumberAriaNotification",void 0);ie([(0,X.property)({type:Boolean})],z.prototype,"hideClearButton",void 0);ie([(0,X.query)(".ft-filter--slot")],z.prototype,"slotElement",void 0);ie([(0,X.query)(".ft-filter--container")],z.prototype,"container",void 0);ie([(0,X.query)(".ft-filter--values")],z.prototype,"valuesContainer",void 0);ie([(0,X.query)(".ft-filter--levels")],z.prototype,"levelsContainer",void 0);ie([(0,X.state)()],z.prototype,"lastLevelHasHiddenvalues",void 0);ie([(0,X.query)(".ft-filter--filter input")],z.prototype,"filterInput",void 0);ie([(0,X.queryAll)(".ft-filter--levels ft-filter-level")],z.prototype,"levels",void 0);ie([(0,X.state)()],z.prototype,"withScroll",void 0);ie([(0,X.state)()],z.prototype,"filter",void 0);ie([(0,X.state)()],z.prototype,"slideIn",void 0);ie([(0,X.state)()],z.prototype,"slideOut",void 0);var Sn=c(f()),qr=c(V()),Vd=c(v()),gi=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},at=class extends Sn.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Vd.html`
|
|
1442
1442
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1443
|
-
`}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};at.elementDefinitions={};gi([(0,qr.property)({type:String})],at.prototype,"label",void 0);gi([(0,qr.property)({type:Object,converter:t=>t})],at.prototype,"value",void 0);gi([(0,qr.property)({type:Boolean,reflect:!0})],at.prototype,"selected",void 0);gi([(0,qr.property)({type:Object})],at.prototype,"subOptions",void 0);gi([(0,
|
|
1443
|
+
`}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};at.elementDefinitions={};gi([(0,qr.property)({type:String})],at.prototype,"label",void 0);gi([(0,qr.property)({type:Object,converter:t=>t})],at.prototype,"value",void 0);gi([(0,qr.property)({type:Boolean,reflect:!0})],at.prototype,"selected",void 0);gi([(0,qr.property)({type:Object})],at.prototype,"subOptions",void 0);gi([(0,Sn.jsonProperty)({})],at.prototype,"renderOption",void 0);gi([(0,qr.query)(".ft-filter-option--slot")],at.prototype,"slotElement",void 0);var jd=c(f());var Hd={"ft-filter":z,"ft-filter-option":at};(0,jd.customElements)(Hd);var Gd=c(v()),En=c(V()),Qd=c(f());var qd=c(v());var Wd=qd.css`
|
|
1444
1444
|
.ft-accordion {
|
|
1445
1445
|
box-sizing: border-box;
|
|
1446
1446
|
}
|
|
1447
|
-
`;var Kd=function(t,e,r,i){var
|
|
1447
|
+
`;var Kd=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Ft=class extends Qd.FtLitElement{constructor(){super(...arguments),this.multi=!1}render(){return Gd.html`
|
|
1448
1448
|
<div class="ft-accordion">
|
|
1449
1449
|
<slot @activated=${this.onChange}></slot>
|
|
1450
1450
|
</div>
|
|
1451
|
-
`}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};Ft.elementDefinitions={};Ft.styles=Wd;Kd([(0,
|
|
1451
|
+
`}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};Ft.elementDefinitions={};Ft.styles=Wd;Kd([(0,En.property)({type:Boolean})],Ft.prototype,"multi",void 0);Kd([(0,En.query)("slot")],Ft.prototype,"content",void 0);var is=c(v()),ss=c(V()),Zd=c(f());var Yd=c(v()),Kr=c(f()),Wr={horizontalSpacing:Kr.FtCssVariableFactory.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:Kr.FtCssVariableFactory.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:Kr.FtCssVariableFactory.external(Kr.designSystemVariables.colorOutline,"Design system"),backgroundColor:Kr.FtCssVariableFactory.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},Xd=Yd.css`
|
|
1452
1452
|
.ft-accordion-item {
|
|
1453
1453
|
display: flex;
|
|
1454
1454
|
flex-direction: column;
|
|
@@ -1494,7 +1494,7 @@
|
|
|
1494
1494
|
.ft-accordion-item--separator {
|
|
1495
1495
|
border-bottom: 1px solid ${Wr.colorOutline};
|
|
1496
1496
|
}
|
|
1497
|
-
`;var
|
|
1497
|
+
`;var Cn=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},yt=class extends Zd.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return is.html`
|
|
1498
1498
|
<div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
|
|
1499
1499
|
<div class="ft-accordion-item--toggle"
|
|
1500
1500
|
part="toggle"
|
|
@@ -1505,13 +1505,13 @@
|
|
|
1505
1505
|
aria-controls="ft-accordion-item-content"
|
|
1506
1506
|
aria-expanded="${this.active}">
|
|
1507
1507
|
<ft-ripple part="toggle-ripple"></ft-ripple>
|
|
1508
|
-
${this.icon?
|
|
1508
|
+
${this.icon?is.html`
|
|
1509
1509
|
<ft-icon .variant=${this.iconVariant} value="${this.icon}"></ft-icon>
|
|
1510
1510
|
`:null}
|
|
1511
|
-
${this.label?
|
|
1511
|
+
${this.label?is.html`
|
|
1512
1512
|
<ft-typography class="ft-accordion-item--label" variant="body1" part="label">${this.label}
|
|
1513
1513
|
</ft-typography>
|
|
1514
|
-
`:
|
|
1514
|
+
`:is.html`
|
|
1515
1515
|
<slot class="ft-accordion-item--label" name="toggle" part="label"></slot>
|
|
1516
1516
|
`}
|
|
1517
1517
|
<ft-icon variant="material">${this.active?"expand_less":"expand_more"}</ft-icon>
|
|
@@ -1524,7 +1524,7 @@
|
|
|
1524
1524
|
</div>
|
|
1525
1525
|
<div class="ft-accordion-item--separator" part="separator"></div>
|
|
1526
1526
|
</div>
|
|
1527
|
-
`}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};yt.elementDefinitions={"ft-ripple":L,"ft-typography":W,"ft-icon":ee};yt.styles=Xd;
|
|
1527
|
+
`}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};yt.elementDefinitions={"ft-ripple":L,"ft-typography":W,"ft-icon":ee};yt.styles=Xd;Cn([(0,ss.property)()],yt.prototype,"icon",void 0);Cn([(0,ss.property)()],yt.prototype,"iconVariant",void 0);Cn([(0,ss.property)()],yt.prototype,"label",void 0);Cn([(0,ss.property)({type:Boolean,reflect:!0})],yt.prototype,"active",void 0);var ep=c(f());var Jd={"ft-accordion":Ft,"ft-accordion-item":yt};(0,ep.customElements)(Jd);var An=c(v()),Le=c(V()),np=c(Je()),yi=c(f());var ns=c(v()),M=c(f());var tp=M.FtCssVariableFactory.extend("--ft-chip-color","",M.designSystemVariables.colorOnSurface),ke={backgroundColor:M.FtCssVariableFactory.extend("--ft-chip-background-color","",M.designSystemVariables.colorSurface),color:tp,fontSize:M.FtCssVariableFactory.extend("--ft-chip-font-size","",ye.fontSize),fontWeight:M.FtCssVariableFactory.extend("--ft-chip-font-weight","",ye.fontWeight),iconSize:M.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:M.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:M.FtCssVariableFactory.extend("--ft-chip-ripple-color","",tp),horizontalPadding:M.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:M.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:M.FtCssVariableFactory.extend("--ft-chip-border-color","",M.designSystemVariables.colorOutline),opacityDisabled:M.FtCssVariableFactory.external(M.designSystemVariables.colorOpacityDisabled,"Design system")},rp=M.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",M.FtCssVariableFactory.extend("--ft-chip-color","",M.designSystemVariables.colorOnPrimary)),Qo={backgroundColor:M.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",M.FtCssVariableFactory.extend("--ft-chip-background-color","",M.designSystemVariables.colorPrimary)),color:rp,rippleColor:M.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",rp)},ip={horizontalPadding:M.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:M.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},sp=[M.noTextSelect,ns.css`
|
|
1528
1528
|
:host {
|
|
1529
1529
|
display: inline-block;
|
|
1530
1530
|
max-width: 100%;
|
|
@@ -1552,7 +1552,7 @@
|
|
|
1552
1552
|
border: 1px solid ${ke.borderColor};
|
|
1553
1553
|
color: ${ke.color};
|
|
1554
1554
|
${(0,M.setVariable)(q.color,ke.rippleColor)};
|
|
1555
|
-
border-radius: var(${(0,
|
|
1555
|
+
border-radius: var(${(0,ns.unsafeCSS)(ke.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
|
|
1556
1556
|
padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
|
|
1557
1557
|
background-color: ${ke.backgroundColor};
|
|
1558
1558
|
line-height: var(--chip-internal-content-height);
|
|
@@ -1570,7 +1570,7 @@
|
|
|
1570
1570
|
}
|
|
1571
1571
|
|
|
1572
1572
|
.ft-chip--no-content {
|
|
1573
|
-
--chip-internal-horizontal-padding: ${ke.horizontalPadding.get(
|
|
1573
|
+
--chip-internal-horizontal-padding: ${ke.horizontalPadding.get(ns.css`var(--chip-internal-vertical-padding)`)};
|
|
1574
1574
|
}
|
|
1575
1575
|
|
|
1576
1576
|
.ft-chip--disabled {
|
|
@@ -1664,8 +1664,8 @@
|
|
|
1664
1664
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
1665
1665
|
order: -1;
|
|
1666
1666
|
}
|
|
1667
|
-
`];var He=function(t,e,r,i){var
|
|
1668
|
-
<div class="${(0,
|
|
1667
|
+
`];var He=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},wn=class extends CustomEvent{constructor(){super("icon-click")}},ae=class extends yi.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let r={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":yi.isSafari};return An.html`
|
|
1668
|
+
<div class="${(0,np.classMap)(r)}"
|
|
1669
1669
|
aria-label="${this.getLabel()}"
|
|
1670
1670
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
1671
1671
|
@keyup=${this.onKeyUp}
|
|
@@ -1676,7 +1676,7 @@
|
|
|
1676
1676
|
</ft-typography>
|
|
1677
1677
|
${this.internalIcon?this.renderIcon():null}
|
|
1678
1678
|
</div>
|
|
1679
|
-
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?
|
|
1679
|
+
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?An.html`
|
|
1680
1680
|
<ft-button round
|
|
1681
1681
|
class="ft-chip--icon-button"
|
|
1682
1682
|
@click=${this.onIconClick}
|
|
@@ -1687,11 +1687,11 @@
|
|
|
1687
1687
|
part="icon-button"
|
|
1688
1688
|
?hideTooltip=${this.hideIconTooltip}
|
|
1689
1689
|
></ft-button>
|
|
1690
|
-
`:
|
|
1690
|
+
`:An.html`
|
|
1691
1691
|
<div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
|
|
1692
1692
|
<ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
|
|
1693
1693
|
</div>
|
|
1694
|
-
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new
|
|
1694
|
+
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new wn))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new wn))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,yi.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};ae.elementDefinitions={"ft-ripple":L,"ft-typography":W,"ft-icon":ee,"ft-button":C};ae.styles=sp;He([(0,Le.property)({type:Boolean})],ae.prototype,"highlighted",void 0);He([(0,Le.property)({type:Boolean})],ae.prototype,"removable",void 0);He([(0,Le.property)({type:Boolean})],ae.prototype,"disabled",void 0);He([(0,Le.property)({type:Boolean})],ae.prototype,"clickable",void 0);He([(0,Le.property)({type:Boolean})],ae.prototype,"iconClickable",void 0);He([(0,Le.property)({type:Boolean})],ae.prototype,"dense",void 0);He([(0,Le.property)({type:Boolean})],ae.prototype,"multiLine",void 0);He([(0,Le.property)()],ae.prototype,"label",void 0);He([(0,Le.property)()],ae.prototype,"iconLabel",void 0);He([(0,Le.property)({type:Boolean})],ae.prototype,"hideIconTooltip",void 0);He([(0,Le.property)()],ae.prototype,"icon",void 0);He([(0,Le.property)()],ae.prototype,"iconVariant",void 0);He([(0,Le.property)({type:Boolean})],ae.prototype,"trailingIcon",void 0);He([(0,Le.property)()],ae.prototype,"typographyVariant",void 0);He([(0,Le.query)("ft-typography slot")],ae.prototype,"slottedContent",void 0);var ap=c(f());var op={"ft-chip":ae};(0,ap.customElements)(op);var vi=c(v()),xe=c(V()),xp=c(Je()),Sp=c(dr());function os(t,e,r){return t?e(t):r?.(t)}var bt=c(f());var On=c(V());var lp=c(v()),se=c(f());var N={fontSize:se.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:se.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:se.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:se.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:se.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:se.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:se.FtCssVariableFactory.extend("--ft-input-label-border-color","",se.designSystemVariables.colorOutline),textColor:se.FtCssVariableFactory.extend("--ft-input-label-text-color","",se.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:se.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",se.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:se.FtCssVariableFactory.extend("--ft-input-label-background-color","",se.designSystemVariables.colorSurface),borderRadius:se.FtCssVariableFactory.extend("--ft-input-label-border-radius","",se.designSystemVariables.borderRadiusS),colorError:se.FtCssVariableFactory.external(se.designSystemVariables.colorError,"Design system")},cp=lp.css`
|
|
1695
1695
|
.ft-input-label {
|
|
1696
1696
|
position: absolute;
|
|
1697
1697
|
inset: 0;
|
|
@@ -1742,8 +1742,8 @@
|
|
|
1742
1742
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
1743
1743
|
max-width: calc(${N.labelMaxWidth} - 2 * (${N.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
1744
1744
|
text-overflow: ellipsis;
|
|
1745
|
-
${(0,
|
|
1746
|
-
${(0,
|
|
1745
|
+
${(0,se.setVariable)(Ke.fontSize,N.fontSize)};
|
|
1746
|
+
${(0,se.setVariable)(Ke.lineHeight,N.fontSize)};
|
|
1747
1747
|
}
|
|
1748
1748
|
|
|
1749
1749
|
.ft-input-label--in-error .ft-input-label--text {
|
|
@@ -1775,8 +1775,8 @@
|
|
|
1775
1775
|
}
|
|
1776
1776
|
|
|
1777
1777
|
.ft-input-label--raised .ft-input-label--text {
|
|
1778
|
-
${(0,
|
|
1779
|
-
${(0,
|
|
1778
|
+
${(0,se.setVariable)(Ke.fontSize,N.raisedFontSize)};
|
|
1779
|
+
${(0,se.setVariable)(Ke.lineHeight,N.raisedFontSize)};
|
|
1780
1780
|
}
|
|
1781
1781
|
|
|
1782
1782
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
@@ -1813,16 +1813,16 @@
|
|
|
1813
1813
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
1814
1814
|
border-top: none;
|
|
1815
1815
|
}
|
|
1816
|
-
`;var Yo=c(v()),Xo=c(V());var dp=c(Je()),pp=c(f()),up=function(t,e,r,i){var
|
|
1816
|
+
`;var Yo=c(v()),Xo=c(V());var dp=c(Je()),pp=c(f()),up=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Gr=class extends pp.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return Yo.html`
|
|
1817
1817
|
<div class="${(0,dp.classMap)(this.inputLabelClasses)}">
|
|
1818
|
-
${
|
|
1818
|
+
${os(this.text,()=>Yo.html`
|
|
1819
1819
|
<div class="ft-input-label--text ft-typography--caption">
|
|
1820
1820
|
<label class="ft-input-label--floating-text">${this.text}</label>
|
|
1821
1821
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
1822
1822
|
</div>
|
|
1823
1823
|
`)}
|
|
1824
1824
|
</div>
|
|
1825
|
-
`}};Gr.elementDefinitions={};up([(0,Xo.property)({type:String})],Gr.prototype,"text",void 0);up([(0,Xo.property)({type:Boolean})],Gr.prototype,"raised",void 0);var Zo=function(t,e,r,i){var
|
|
1825
|
+
`}};Gr.elementDefinitions={};up([(0,Xo.property)({type:String})],Gr.prototype,"text",void 0);up([(0,Xo.property)({type:Boolean})],Gr.prototype,"raised",void 0);var Zo=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},_t=class extends Gr{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};_t.elementDefinitions={};_t.styles=[Jt,cp];Zo([(0,On.property)({type:Boolean})],_t.prototype,"outlined",void 0);Zo([(0,On.property)({type:Boolean})],_t.prototype,"error",void 0);Zo([(0,On.property)({type:Boolean})],_t.prototype,"disabled",void 0);var fp=c(f());var hp={"ft-input-label":_t};(0,fp.customElements)(hp);var mp=c(v()),P=c(f());var D={labelSize:P.FtCssVariableFactory.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:P.FtCssVariableFactory.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:P.FtCssVariableFactory.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:P.FtCssVariableFactory.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:P.FtCssVariableFactory.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:P.FtCssVariableFactory.extend("--ft-select-selected-option-color","",P.designSystemVariables.colorOnSurface),helperColor:P.FtCssVariableFactory.extend("--ft-select-helper-color","",P.designSystemVariables.colorOnSurfaceMedium),optionsColor:P.FtCssVariableFactory.extend("--ft-select-options-color","",P.designSystemVariables.colorOnSurface),optionsZIndex:P.FtCssVariableFactory.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:P.FtCssVariableFactory.extend("--ft-select-background-color","",P.designSystemVariables.colorSurface),colorOnSurfaceDisabled:P.FtCssVariableFactory.external(P.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:P.FtCssVariableFactory.external(P.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:P.FtCssVariableFactory.external(P.designSystemVariables.borderRadiusS,"Design system"),elevation02:P.FtCssVariableFactory.external(P.designSystemVariables.elevation02,"Design system"),colorError:P.FtCssVariableFactory.external(P.designSystemVariables.colorError,"Design system")},gp=mp.css`
|
|
1826
1826
|
*:focus {
|
|
1827
1827
|
outline: none;
|
|
1828
1828
|
}
|
|
@@ -1958,7 +1958,7 @@
|
|
|
1958
1958
|
.ft-select:not(.ft-select--has-option-selected) .ft-select--selected-option {
|
|
1959
1959
|
opacity: 0;
|
|
1960
1960
|
}
|
|
1961
|
-
`;var
|
|
1961
|
+
`;var _n=c(f());var bi=c(v()),vp=c(Je()),mr=c(V());var Jo=c(f());var yp=c(v()),bp=yp.css`
|
|
1962
1962
|
.ft-select--option {
|
|
1963
1963
|
${(0,Jo.setVariable)(q.opacityContentOnSurfaceHover,"0.08")};
|
|
1964
1964
|
${(0,Jo.setVariable)(q.opacityContentOnSurfacePressed,"0.04")};
|
|
@@ -1985,7 +1985,7 @@
|
|
|
1985
1985
|
overflow: hidden;
|
|
1986
1986
|
}
|
|
1987
1987
|
|
|
1988
|
-
`;var
|
|
1988
|
+
`;var as=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Me=class extends _n.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.isSlotEmpty=!0}render(){var e,r;let i={"ft-select--option":!0,"ft-select--option-selected":this.selected,"ft-typography--body2":!0};return bi.html`
|
|
1989
1989
|
<div class="${(0,vp.classMap)(i)}"
|
|
1990
1990
|
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,"")}"
|
|
1991
1991
|
tabindex="0"
|
|
@@ -1997,7 +1997,7 @@
|
|
|
1997
1997
|
</slot>
|
|
1998
1998
|
${this.isSlotEmpty?bi.html`<span>${this.label}</span>`:bi.html``}
|
|
1999
1999
|
</div>
|
|
2000
|
-
`}onSlotChange(){this.isSlotEmpty=(0,
|
|
2000
|
+
`}onSlotChange(){this.isSlotEmpty=(0,_n.isSlotEmptyOrWithoutContent)(this.slotElement)}onClick(){this.dispatchEvent(new Event("select-option",{bubbles:!0,composed:!0}))}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Me.elementDefinitions={"ft-ripple":L};Me.shadowRootOptions={...bi.LitElement.shadowRootOptions,delegatesFocus:!0};Me.styles=[bp,Zt];as([(0,mr.property)({type:String})],Me.prototype,"label",void 0);as([(0,mr.property)({type:Object,converter:t=>t})],Me.prototype,"value",void 0);as([(0,mr.property)({type:Boolean,reflect:!0})],Me.prototype,"selected",void 0);as([(0,mr.query)("slot")],Me.prototype,"slotElement",void 0);as([(0,mr.state)()],Me.prototype,"isSlotEmpty",void 0);var $e=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s};var Z=class t extends bt.FtLitElement{constructor(){super(...arguments),this.label="",this.ariaLabel=null,this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.currentSearch="",this.lastSearchInputDate=new Date("01/01/1970"),this.isSlotEmpty=!0,this.hideOptions=e=>this.optionsDisplayed=this.optionsDisplayed&&e.composedPath().includes(this.container)}get firstOption(){return this.optionsList[0]}get optionsList(){let e=[...this.querySelectorAll("ft-select-option")];return e.length>0?e:[...this.shadowRoot.querySelectorAll("ft-select-option")]}get focusedOption(){return this.optionsList.find(e=>e.matches(":focus-within"))}get selectedOptionElement(){return this.optionsList.find(e=>e.selected)}get lastOption(){return(0,bt.last)(this.optionsList)}render(){var e,r,i,n,s;let o=this.hasOptionsMenuOpen,a=this.disabled||!this.hasOptions,l=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((i=(r=this.selectedOption)===null||r===void 0?void 0:r.label)!==null&&i!==void 0?i:"").length>0,u={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":a,"ft-select--options-displayed":o,"ft-select--has-option-selected":l,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return vi.html`
|
|
2001
2001
|
<div class="${(0,xp.classMap)(u)}" part="container">
|
|
2002
2002
|
<div class="ft-select--main-panel" part="main-panel">
|
|
2003
2003
|
<ft-input-label text="${this.label}"
|
|
@@ -2014,7 +2014,7 @@
|
|
|
2014
2014
|
@click=${()=>{this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=this.optionsDisplayed}}
|
|
2015
2015
|
@keydown=${this.onMainPanelKeyDown}
|
|
2016
2016
|
aria-label="${lr(this.ariaLabel)}"
|
|
2017
|
-
aria-labelledby="${
|
|
2017
|
+
aria-labelledby="${os(!this.ariaLabel,()=>"label")}"
|
|
2018
2018
|
aria-haspopup="listbox"
|
|
2019
2019
|
aria-expanded="${o}"
|
|
2020
2020
|
aria-activedescendant="${lr(this.getOptionId(this.selectedOption))}"
|
|
@@ -2024,7 +2024,7 @@
|
|
|
2024
2024
|
<ft-typography variant="${ce.body1}"
|
|
2025
2025
|
aria-hidden="${l?"false":"true"}"
|
|
2026
2026
|
class="ft-select--selected-option">
|
|
2027
|
-
${(
|
|
2027
|
+
${(s=(n=this.selectedOption)===null||n===void 0?void 0:n.label)!==null&&s!==void 0?s:this.label}
|
|
2028
2028
|
</ft-typography>
|
|
2029
2029
|
</slot>
|
|
2030
2030
|
<ft-icon aria-hidden="true" .value=${o?be.THIN_ARROW_UP:be.THIN_ARROW}></ft-icon>
|
|
@@ -2038,7 +2038,7 @@
|
|
|
2038
2038
|
@option-change=${this.updateOptionsFromSlot}
|
|
2039
2039
|
>
|
|
2040
2040
|
</slot>
|
|
2041
|
-
${
|
|
2041
|
+
${os(this.isSlotEmpty,()=>(0,Sp.repeat)(this.options,d=>d.value,d=>this.renderOption(d)))}
|
|
2042
2042
|
</div>
|
|
2043
2043
|
</div>
|
|
2044
2044
|
<slot name="helper" part="helper">
|
|
@@ -2053,7 +2053,7 @@
|
|
|
2053
2053
|
label="${e.label}"
|
|
2054
2054
|
.value=${e.value}
|
|
2055
2055
|
></ft-select-option>
|
|
2056
|
-
`}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((i=(r=this.selectedOptionElement)!==null&&r!==void 0?r:this.firstOption)===null||i===void 0||i.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&(this.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
|
|
2056
|
+
`}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((i=(r=this.selectedOptionElement)!==null&&r!==void 0?r:this.firstOption)===null||i===void 0||i.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&(this.optionsDisplayed?document.addEventListener("click",this.hideOptions):document.removeEventListener("click",this.hideOptions)),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let n=["bottom","top"];(0,bt.computeOffsetAutoPosition)(this.mainPanel,this.optionsMenu,"bottom",n,"fixed",D.optionsHeight,0).then(({x:s,y:o})=>{this.optionsMenu.style.left=`${s}px`,this.optionsMenu.style.top=`${o}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var r;e.stopPropagation(),this.isSlotEmpty=(0,bt.isSlotEmptyOrWithoutContent)(this.optionsSlot);let i=(r=this.optionsSlot)===null||r===void 0?void 0:r.assignedElements().map(n=>n);i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(e){switch(e.key===" "&&(e.preventDefault(),e.stopPropagation()),e.key){case" ":case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var r,i;let n,s=this.focusedOption?this.optionsList.indexOf(this.focusedOption):0;switch(e.key){case" ":case"Enter":e.preventDefault(),e.stopPropagation(),this.onSelectOption(e),this.optionsDisplayed=!1,(r=this.mainPanel)===null||r===void 0||r.focus();break;case"Escape":this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),n=this.optionsList[(s-1+this.optionsList.length)%this.optionsList.length];break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),n=this.optionsList[(s+1)%this.optionsList.length];break;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(n=this.handleAlphanumericPress(e.key));break}n?.focus()}isKeyAlphanumeric(e){let r=e.charCodeAt(0);return r>47&&r<58||r>64&&r<91||r>96&&r<123}handleAlphanumericPress(e){let r=new Date;r.getTime()-this.lastSearchInputDate.getTime()>t.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let i=this.options.find(n=>{var s;return((s=n.label)===null||s===void 0?void 0:s.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});return this.lastSearchInputDate=r,i&&this.optionsList.find(n=>n.value===i.value)}getOptionId(e){if(!e)return;let r=this.options.findIndex(i=>(0,bt.deepEqual)(i.value,e.value));if(r!==-1)return`option-${r}`}onSelectOption(e){e.stopPropagation(),this.setValue(e.target.value)}setValue(e,r=!0){let i=this.options.find(n=>(0,bt.deepEqual)(n.value,e));i&&this.selectOption(i,r)}selectOption(e,r=!0){var i,n;if(!(0,bt.deepEqual)((i=this.selectedOption)===null||i===void 0?void 0:i.value,e?.value)){this.selectedOption=e;for(let s of this.options)s.selected=s===e;r&&this.dispatchEvent(new CustomEvent("change",{detail:(n=this.selectedOption)===null||n===void 0?void 0:n.value}))}this.optionsDisplayed=!1}};Z.elementDefinitions={"ft-input-label":_t,"ft-typography":W,"ft-ripple":L,"ft-icon":ee,"ft-select-option":Me};Z.searchTimeoutMilliseconds=2e3;Z.styles=[Jt,gp];$e([(0,xe.property)({type:String})],Z.prototype,"label",void 0);$e([(0,xe.property)({type:String})],Z.prototype,"ariaLabel",void 0);$e([(0,xe.property)({type:String})],Z.prototype,"helper",void 0);$e([(0,xe.property)({type:Boolean})],Z.prototype,"outlined",void 0);$e([(0,xe.property)({type:Boolean})],Z.prototype,"disabled",void 0);$e([(0,xe.property)({type:Boolean})],Z.prototype,"error",void 0);$e([(0,xe.property)({type:Boolean})],Z.prototype,"fixedMenuPosition",void 0);$e([(0,xe.property)({type:Array})],Z.prototype,"options",void 0);$e([(0,xe.state)()],Z.prototype,"selectedOption",void 0);$e([(0,xe.state)()],Z.prototype,"optionsDisplayed",void 0);$e([(0,xe.state)()],Z.prototype,"focusOptions",void 0);$e([(0,xe.state)()],Z.prototype,"currentSearch",void 0);$e([(0,xe.state)()],Z.prototype,"lastSearchInputDate",void 0);$e([(0,xe.query)(".ft-select")],Z.prototype,"container",void 0);$e([(0,xe.query)(".ft-select--options")],Z.prototype,"optionsMenu",void 0);$e([(0,xe.query)(".ft-select--input-panel")],Z.prototype,"mainPanel",void 0);$e([(0,xe.query)("slot:not([name])")],Z.prototype,"optionsSlot",void 0);var Cp=c(f());var Ep={"ft-select":Z,"ft-select-option":Me};(0,Cp.customElements)(Ep);var R=c(f()),ea=c(v());var Ap=c(v()),Rt=c(f()),De={display:Rt.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:Rt.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:Rt.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:Rt.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:Rt.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:Rt.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:Rt.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:Rt.FtCssVariableFactory.external(Rt.designSystemVariables.borderRadiusM,"Design system")},wp=Ap.css`
|
|
2057
2057
|
:host {
|
|
2058
2058
|
width: ${De.width};
|
|
2059
2059
|
height: ${De.height};
|
|
@@ -2452,7 +2452,7 @@
|
|
|
2452
2452
|
aria-selected="${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)}"
|
|
2453
2453
|
tabindex="-1"
|
|
2454
2454
|
aria-label="${r}"
|
|
2455
|
-
@click=${
|
|
2455
|
+
@click=${n=>this.onSuggestClick(n,r)}>
|
|
2456
2456
|
<ft-ripple ?activated=${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)&&!this.searchBar.selectedSuggestRemoveRecent}></ft-ripple>
|
|
2457
2457
|
<ft-icon variant="material" value="history" part="suggestion-icon"></ft-icon>
|
|
2458
2458
|
<ft-typography variant="body1">${r}</ft-typography>
|
|
@@ -2466,7 +2466,7 @@
|
|
|
2466
2466
|
tooltipPosition="left"
|
|
2467
2467
|
tabindex="-1"
|
|
2468
2468
|
?activated=${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)&&this.searchBar.selectedSuggestRemoveRecent}
|
|
2469
|
-
@click=${
|
|
2469
|
+
@click=${n=>this.removeRecentSearch(n,r)}>
|
|
2470
2470
|
</ft-button>
|
|
2471
2471
|
</div>
|
|
2472
2472
|
`)}
|
|
@@ -2480,7 +2480,7 @@
|
|
|
2480
2480
|
aria-selected="${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)}"
|
|
2481
2481
|
role="option"
|
|
2482
2482
|
tabindex="-1"
|
|
2483
|
-
@click=${
|
|
2483
|
+
@click=${n=>this.onSuggestClick(n,r.value)}>
|
|
2484
2484
|
<ft-ripple ?activated=${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)}></ft-ripple>
|
|
2485
2485
|
${this.getIcon(r)}
|
|
2486
2486
|
<ft-typography variant="body1">${r.value}</ft-typography>
|
|
@@ -2488,7 +2488,7 @@
|
|
|
2488
2488
|
</div>
|
|
2489
2489
|
`)}
|
|
2490
2490
|
</div>
|
|
2491
|
-
`}recentSearchId(e){return this.listboxId+"-recent-"+e}suggestionId(e){return this.listboxId+"-suggest-"+e}getRequestWithQuery(e){return this.searchBar.searchRequestSerializer({...this.searchBar.request,paging:{page:1},query:e})}update(){return new Promise((e,r)=>{this.updateDebouncer.run(async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then(i=>i.suggestions).catch(()=>[]):[],e()})})}onSuggestClick(e,r){this.searchBar.setQuery(r),this.searchBar.onLaunchSearch()}removeRecentSearch(e,r){e.preventDefault(),e.stopPropagation(),this.selectSuggestion(null),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(i=>i.toLowerCase()!==r.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let r=e.type==="DOCUMENT"?ze.file_format:ze.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?be.BOOK:be.ARTICLE;break;case"DOCUMENT":i=
|
|
2491
|
+
`}recentSearchId(e){return this.listboxId+"-recent-"+e}suggestionId(e){return this.listboxId+"-suggest-"+e}getRequestWithQuery(e){return this.searchBar.searchRequestSerializer({...this.searchBar.request,paging:{page:1},query:e})}update(){return new Promise((e,r)=>{this.updateDebouncer.run(async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then(i=>i.suggestions).catch(()=>[]):[],e()})})}onSuggestClick(e,r){this.searchBar.setQuery(r),this.searchBar.onLaunchSearch()}removeRecentSearch(e,r){e.preventDefault(),e.stopPropagation(),this.selectSuggestion(null),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(i=>i.toLowerCase()!==r.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let r=e.type==="DOCUMENT"?ze.file_format:ze.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?be.BOOK:be.ARTICLE;break;case"DOCUMENT":i=hn(e.mimeType,e.filenameExtension);break;case"TOPIC":i=be.TOPICS;break;case"HTML_PACKAGE":i=be.BOX_CODE;break;case"HTML_PACKAGE_PAGE":i=be.FILE_CODE;break}return Bt.html`
|
|
2492
2492
|
<ft-icon .variant=${r} .value=${i} part="suggestion-icon"></ft-icon>
|
|
2493
2493
|
`}focusNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}focusPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}getFirstSuggestionElement(){return this.searchBar.querySelector("[part=suggestion-container]")}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}get selectedSuggestOption(){var e;return(e=this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']"))===null||e===void 0?void 0:e.parentElement}get selectedSuggestOptionLink(){return this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']")}get selectedSuggestRemoveRecentButton(){var e;return(e=this.selectedSuggestOption)===null||e===void 0?void 0:e.querySelector("[part=remove-suggestion]")}getLastSuggestionElement(){let e=this.searchBar.querySelectorAll("[part=suggestion-container]");return e.length>0?e[e.length-1]:null}selectSuggestion(e){var r;this.searchBar.selectedSuggestRemoveRecent=!1,e?this.searchBar.selectedSuggestOptionId=(r=e.querySelector("[part=suggestions]"))===null||r===void 0?void 0:r.id:this.searchBar.selectedSuggestOptionId=void 0}focusArrowLeft(){this.searchBar.selectedSuggestRemoveRecent?this.searchBar.selectedSuggestRemoveRecent=!1:this.selectSuggestion(null)}focusArrowRight(){!this.searchBar.selectedSuggestRemoveRecent&&this.selectedSuggestRemoveRecentButton?this.searchBar.selectedSuggestRemoveRecent=!0:this.selectSuggestion(null)}get shouldDisplaySuggestions(){return this.searchBar.displaySuggestListbox&&(this.searchBar.suggestions.length>0||this.recentSearchesMatchingQuery.length>0)}get recentSearchesMatchingQuery(){return this.searchBar.recentSearches.filter(e=>e.toLowerCase().includes(this.searchBar.query.toLowerCase()))}};Ut.styles=[xi.wordWrap,Bt.css`
|
|
2494
2494
|
.ft-search-bar--mobile .ft-search-bar--suggestions {
|
|
@@ -2580,7 +2580,7 @@
|
|
|
2580
2580
|
ft-ripple {
|
|
2581
2581
|
${(0,xi.setVariable)(q.opacityContentOnSurfaceHover,q.opacityContentOnSurfaceSelected)}
|
|
2582
2582
|
}
|
|
2583
|
-
`];var je=c(v()),ra=c(dr());var
|
|
2583
|
+
`];var je=c(v()),ra=c(dr());var Rn=c(f());var zt=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return je.html``;let e=this.searchBar.isMobile(),r=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),i=je.html`
|
|
2584
2584
|
${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?je.html`
|
|
2585
2585
|
<ft-chip part="selected-filters selected-filter-ft-locale"
|
|
2586
2586
|
?dense=${this.searchBar.dense&&!e}
|
|
@@ -2591,7 +2591,7 @@
|
|
|
2591
2591
|
${this.getLocaleLabel(this.searchBar.contentLocale)}
|
|
2592
2592
|
</ft-chip>
|
|
2593
2593
|
`:null}
|
|
2594
|
-
${(0,ra.repeat)(this.searchBar.facets,
|
|
2594
|
+
${(0,ra.repeat)(this.searchBar.facets,n=>n.key,n=>{let s=hd(n);return(0,ra.repeat)(s,o=>{let a=n.label+": "+ud(o),l=n.key.replace(":","-"),u=je.html`
|
|
2595
2595
|
<ft-chip
|
|
2596
2596
|
part="selected-filters selected-filter-${l}"
|
|
2597
2597
|
?dense=${this.searchBar.dense&&!e}
|
|
@@ -2600,9 +2600,9 @@
|
|
|
2600
2600
|
icon="${e?je.nothing:"close"}"
|
|
2601
2601
|
label="${a}"
|
|
2602
2602
|
title="${r?a:je.nothing}"
|
|
2603
|
-
@click=${()=>this.openMobileFilters(
|
|
2604
|
-
@icon-click=${()=>this.searchBar.setFilter(
|
|
2605
|
-
data-key="${
|
|
2603
|
+
@click=${()=>this.openMobileFilters(n.key)}
|
|
2604
|
+
@icon-click=${()=>this.searchBar.setFilter(n.key,s.filter(d=>d!==o))}
|
|
2605
|
+
data-key="${n.key}"
|
|
2606
2606
|
data-value="${o}">
|
|
2607
2607
|
${cd(o)}
|
|
2608
2608
|
</ft-chip>
|
|
@@ -2630,7 +2630,7 @@
|
|
|
2630
2630
|
<div class="ft-search-bar--selected-filters" part="selected-filters-container">
|
|
2631
2631
|
${i}
|
|
2632
2632
|
</div>
|
|
2633
|
-
`}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
|
|
2633
|
+
`}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var r;return(r=this.searchBar.availableContentLocales.filter(i=>{var n;return((n=i.lang)!==null&&n!==void 0?n:"").toLowerCase()===(e??"").toLowerCase()}).map(i=>i.label).pop())!==null&&r!==void 0?r:e}};zt.styles=je.css`
|
|
2634
2634
|
.ft-search-bar--selected-filters:not(ft-snap-scroll) {
|
|
2635
2635
|
flex-shrink: 0;
|
|
2636
2636
|
display: flex;
|
|
@@ -2641,7 +2641,7 @@
|
|
|
2641
2641
|
|
|
2642
2642
|
ft-snap-scroll.ft-search-bar--selected-filters {
|
|
2643
2643
|
overflow: hidden;
|
|
2644
|
-
${(0,
|
|
2644
|
+
${(0,Rn.setVariable)(Ve.gap,"4px")};
|
|
2645
2645
|
}
|
|
2646
2646
|
|
|
2647
2647
|
ft-snap-scroll.ft-search-bar--selected-filters::part(content) {
|
|
@@ -2649,8 +2649,8 @@
|
|
|
2649
2649
|
}
|
|
2650
2650
|
|
|
2651
2651
|
.ft-search-bar--desktop ft-snap-scroll.ft-search-bar--selected-filters {
|
|
2652
|
-
${(0,
|
|
2653
|
-
${(0,
|
|
2652
|
+
${(0,Rn.setVariable)(ke.iconSize,"17px")};
|
|
2653
|
+
${(0,Rn.setVariable)(ke.fontSize,"12px")};
|
|
2654
2654
|
}
|
|
2655
2655
|
|
|
2656
2656
|
.ft-search-bar--selected-filters * {
|
|
@@ -2660,7 +2660,7 @@
|
|
|
2660
2660
|
.ft-search-bar--selected-filters ft-chip {
|
|
2661
2661
|
flex-grow: 0;
|
|
2662
2662
|
}
|
|
2663
|
-
`;var Tt=c(v());var $p=c(Je()),Dp=c(f()),zf=function(t,e,r,i){var
|
|
2663
|
+
`;var Tt=c(v());var $p=c(Je()),Dp=c(f()),zf=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Si=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new zt(e),this.suggestManager=i??new Ut(e)}render(){var e;let r={"ft-search-bar--container":!0,"ft-search-bar--mobile":!0,"ft-search-bar--mobile-menu-open":this.searchBar.isMobileMenuOpen(),"ft-search-bar--forced-open":this.searchBar.forceMobileMenuOpen};return Tt.html`
|
|
2664
2664
|
<div class="${(0,$p.classMap)(r)}" part="container" tabindex="-1">
|
|
2665
2665
|
<div class="ft-search-bar" role="search">
|
|
2666
2666
|
<div class="ft-search-bar--input-container" part="input-container">
|
|
@@ -2719,7 +2719,7 @@
|
|
|
2719
2719
|
</div>
|
|
2720
2720
|
`}onSearchBarKeyDown(e){var r;switch(e.key){case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(r=this.suggestManager.selectedSuggestRemoveRecentButton)===null||r===void 0||r.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}};Si.styles=Tt.css`
|
|
2721
2721
|
|
|
2722
|
-
`;zf([(0,Dp.ignoreComposingEvents)()],Si.prototype,"onSearchBarKeyDown",null);var qe=c(v()),Pp=c(dr());var Ip=c(Je()),Mp=c(f()),Vf=function(t,e,r,i){var
|
|
2722
|
+
`;zf([(0,Dp.ignoreComposingEvents)()],Si.prototype,"onSearchBarKeyDown",null);var qe=c(v()),Pp=c(dr());var Ip=c(Je()),Mp=c(f()),Vf=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Ei=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new zt(e),this.suggestManager=i??new Ut(e)}render(){var e;let r={"ft-search-bar--container":!0,"ft-search-bar--dense":this.searchBar.dense,"ft-search-bar--desktop":!0,"ft-search-bar--floating-panel-open":this.searchBar.displayFacets&&!this.searchBar.forceMenuOpen,"ft-search-bar--forced-open":this.searchBar.forceMenuOpen};return qe.html`
|
|
2723
2723
|
<div class="${(0,Ip.classMap)(r)}" part="container" tabindex="-1">
|
|
2724
2724
|
<div class="ft-search-bar" part="search-bar" role="search">
|
|
2725
2725
|
${this.renderSearchBarLeftAction()}
|
|
@@ -2798,7 +2798,7 @@
|
|
|
2798
2798
|
</div>
|
|
2799
2799
|
`}onSearchBarKeyDown(e){var r;switch(["Escape","Tab","Shift"].includes(e.key)||(this.searchBar.displaySuggestListbox=!0),e.key){case"Tab":this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0;break;case"Escape":this.suggestManager.shouldDisplaySuggestions&&(e.stopPropagation(),e.preventDefault(),this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0),this.searchBar.mobileMenuOpen=!1;break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(r=this.suggestManager.selectedSuggestRemoveRecentButton)===null||r===void 0||r.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}onClick(){this.onFocus()}onFocus(){this.searchBar.reactToFocus&&(this.searchBar.displaySuggestListbox=!0)}};Ei.styles=qe.css`
|
|
2800
2800
|
|
|
2801
|
-
`;Vf([(0,Mp.ignoreComposingEvents)()],Ei.prototype,"onSearchBarKeyDown",null);var F=function(t,e,r,i){var
|
|
2801
|
+
`;Vf([(0,Mp.ignoreComposingEvents)()],Ei.prototype,"onSearchBarKeyDown",null);var F=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s};window.fluidtopics==null&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");var Np={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},ia=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Hf=()=>{},w=class extends Y.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.forceMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new Y.ParametrizedLabelResolver(Np,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new Y.SearchPlaceConverter(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=gt.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.reactToFocus=!0,this.displaySuggestListbox=!1,this.selectedSuggestRemoveRecent=!1,this.suggestManager=new Ut(this),this.selectedFacetsManager=new zt(this),this.desktopSearchBarManager=new Ei(this),this.mobileSearchBarManager=new Si(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new Y.Debouncer(10),this.updateLocalesDebouncer=new Y.Debouncer(10),this.initSearchData=()=>{this.availableContentLocalesInitialized=!1,this.facetsLoaded=!1,this.facetsInitialized=!1,this.updateLocalesDebouncer.run(()=>{var e;(e=this.api)===null||e===void 0||e.getAvailableSearchLocales().then(r=>r.contentLocales).catch(()=>[]).then(r=>{this.availableContentLocales=r,this.availableContentLocalesInitialized=!0})}),this.updateFacets()},this.facetsLoaded=!1,this.updateFacetsDebouncer=new Y.Debouncer(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(r=>r===this.floatingContainer))},this.closeSuggestListbox=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.compareUnknownFilters=(e,r)=>e.valueFilter&&r.valueFilter?this.compareValueFilters(e.valueFilter,r.valueFilter):e.dateFilter&&r.dateFilter?this.compareDateFilters(e.dateFilter,r.dateFilter):e.rangeFilter&&r.rangeFilter?this.compareRangeFilters(e.rangeFilter,r.rangeFilter):!1,this.compareValueFilters=(e,r)=>e.negative==r.negative&&e.values.length===r.values.length&&e.values.every(i=>r.values.includes(i)),this.compareDateFilters=(e,r)=>e.type===r.type,this.compareRangeFilters=(e,r)=>e.from===r.from&&e.to===r.to,this.compareFilters=(e,r)=>e.key===r.key&&this.compareUnknownFilters(e,r),this.compareRequests=(e,r)=>(e.contentLocale==null||r.contentLocale==null||e.contentLocale===r.contentLocale)&&e.metadataFilters.length===r.metadataFilters.length&&e.metadataFilters.every(i=>r.metadataFilters.some(n=>this.compareFilters(i,n)))}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,metadataFilters:this.metadataFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){let e=this.metadataFilters.filter(r=>{var i,n;return((n=(i=r.valueFilter)===null||i===void 0?void 0:i.values.length)!==null&&n!==void 0?n:0)>0&&!this.displayedFilters.includes(r.key)}).map(r=>({id:r.key}));return[...this.displayedFilters.map(r=>({id:r})),...e]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,metadataFilters:this.metadataFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===gt.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var e;(e=this.container)===null||e===void 0||e.focus()}async focusInput(e=!1){this.reactToFocus=e,await(0,Y.waitFor)(()=>this.input,50),this.input.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return H.html`
|
|
2802
2802
|
<ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
|
|
2803
2803
|
<div class="sr-only" aria-live="polite" aria-atomic="true">
|
|
2804
2804
|
${this.renderLiveText()}
|
|
@@ -2826,19 +2826,19 @@
|
|
|
2826
2826
|
</div>
|
|
2827
2827
|
</ft-accordion-item>
|
|
2828
2828
|
`:null}
|
|
2829
|
-
${(0,
|
|
2829
|
+
${(0,ls.repeat)(this.facets,r=>r.key,r=>{let i=jo(r),n=r.key.replace(":","-"),s=pd(i);return r.rootNodes.length>0?H.html`
|
|
2830
2830
|
<ft-accordion-item data-facet-key="${r.key}">
|
|
2831
2831
|
<div class="ft-search-bar--filter-label" slot="toggle">
|
|
2832
2832
|
<ft-typography variant="button">${r.label}</ft-typography>
|
|
2833
|
-
${
|
|
2833
|
+
${s.length>0?H.html`
|
|
2834
2834
|
<ft-typography class="ft-search-bar--filter-label-values" variant="body2">
|
|
2835
|
-
${
|
|
2835
|
+
${s.join(", ")}
|
|
2836
2836
|
</ft-typography>
|
|
2837
2837
|
`:H.nothing}
|
|
2838
2838
|
</div>
|
|
2839
2839
|
<ft-filter
|
|
2840
|
-
part="filters filter filter-${
|
|
2841
|
-
.exportpartsPrefixes=${["filter","filter-"+
|
|
2840
|
+
part="filters filter filter-${n}"
|
|
2841
|
+
.exportpartsPrefixes=${["filter","filter-"+n]}
|
|
2842
2842
|
id="${i.id}"
|
|
2843
2843
|
filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",i.label)}"
|
|
2844
2844
|
clearButtonLabel="${this.labelResolver.resolve("clearFilterButton")}"
|
|
@@ -2856,7 +2856,7 @@
|
|
|
2856
2856
|
`}getContentLocaleRadioGroup(){var e;return H.html`
|
|
2857
2857
|
<ft-radio-group aria-labelledby="content_locale_radio_group_label"
|
|
2858
2858
|
@change=${r=>{this.contentLocale=r.detail==="all"?void 0:r.detail,this.clearFilters()}}>
|
|
2859
|
-
${(0,
|
|
2859
|
+
${(0,ls.repeat)((e=this.availableContentLocales)!==null&&e!==void 0?e:[],r=>r.lang,r=>{var i;return H.html`
|
|
2860
2860
|
<ft-radio value="${(i=r.lang)!==null&&i!==void 0?i:"all"}"
|
|
2861
2861
|
?checked=${r.lang==this.contentLocale}>
|
|
2862
2862
|
${r.label}
|
|
@@ -2887,7 +2887,7 @@
|
|
|
2887
2887
|
label="${this.labelResolver.resolve("presetsSelector")}"
|
|
2888
2888
|
outlined
|
|
2889
2889
|
@change=${r=>this.selectedPreset=r.detail}>
|
|
2890
|
-
${(0,
|
|
2890
|
+
${(0,ls.repeat)((e=this.presets)!==null&&e!==void 0?e:[],r=>r.name,r=>H.html`
|
|
2891
2891
|
<ft-select-option value="${r.name}"
|
|
2892
2892
|
label="${r.name}"
|
|
2893
2893
|
?selected=${r.name===this.selectedPreset}>
|
|
@@ -2919,11 +2919,11 @@
|
|
|
2919
2919
|
${this.getContentLocaleRadioGroup()}
|
|
2920
2920
|
</div>
|
|
2921
2921
|
`:H.nothing}
|
|
2922
|
-
${(0,
|
|
2922
|
+
${(0,ls.repeat)(this.facets,e=>e.key,e=>{let r=jo(e),i=r.options.some(s=>{var o,a;return((a=(o=s.subOptions)===null||o===void 0?void 0:o.length)!==null&&a!==void 0?a:0)>0}),n=e.key.replace(":","-");return H.html`
|
|
2923
2923
|
<ft-filter
|
|
2924
2924
|
class="${i?"ft-search-bar--hierarchical-filter":""}"
|
|
2925
|
-
part="filters filter filter-${
|
|
2926
|
-
.exportpartsPrefixes=${["filter","filter-"+
|
|
2925
|
+
part="filters filter filter-${n}"
|
|
2926
|
+
.exportpartsPrefixes=${["filter","filter-"+n]}
|
|
2927
2927
|
id="${r.id}"
|
|
2928
2928
|
label="${r.label}"
|
|
2929
2929
|
filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",r.label)}"
|
|
@@ -2934,18 +2934,18 @@
|
|
|
2934
2934
|
raiseSelectedOptions
|
|
2935
2935
|
.options=${r.options}
|
|
2936
2936
|
.displayedValuesLimit=${10}
|
|
2937
|
-
@change=${
|
|
2937
|
+
@change=${s=>this.setFilter(r.id,s.detail)}
|
|
2938
2938
|
></ft-filter>
|
|
2939
2939
|
`})}
|
|
2940
2940
|
</ft-snap-scroll>
|
|
2941
|
-
`:H.nothing}firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",r=>{r.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var r,i,s,
|
|
2941
|
+
`:H.nothing}firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",r=>{r.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var r,i,n,s,o;if(e.has("labels")&&(this.labelResolver=new Y.ParametrizedLabelResolver(Np,this.labels)),e.has("sizeCategory")&&(this.mobileMenuOpen=!1,this.displayFacets=this.displayFacets&&!this.isMobile()),super.update(e),(e.has("availableContentLocales")||e.has("contentLocale"))&&this.availableContentLocales.length>0){let a=l=>this.availableContentLocales.some(u=>u.lang==l);a(this.contentLocale)||(this.contentLocale=e.has("contentLocale")&&a(e.get("contentLocale"))?e.get("contentLocale"):(r=this.availableContentLocales[0])===null||r===void 0?void 0:r.lang)}if(e.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.initRecentSearches()),e.has("presets")&&((i=this.presets)!==null&&i!==void 0?i:[]).forEach(a=>a.metadataFilters.forEach(l=>{l.valueFilter&&(l.valueFilter.values=l.valueFilter.values.map(u=>bn(u)))})),e.has("presets")||e.has("selectedPreset")){let a=((n=this.presets)!==null&&n!==void 0?n:[]).find(l=>l.name===this.selectedPreset);a&&!this.compareRequests(this.request,a)&&this.setFiltersFromPreset(a)}e.has("contentLocale")&&this.contentLocale!=null&&(this.knownFacetLabels=new Map),["contentLocale","metadataFilters"].some(a=>e.has(a))&&(this.selectedPreset=(o=((s=this.presets)!==null&&s!==void 0?s:[]).find(a=>this.compareRequests(a,this.request)))===null||o===void 0?void 0:o.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 ia(this.request)))}updateFacets(){this.facetsRequest.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run(async()=>{await this.retrieveFacetsFromSearch(),this.facetsLoaded=!0,this.facetsInitialized=!0},this.facetsInitialized?500:10)):(this.facets=[],this.facetsLoaded=!0,this.facetsInitialized=!0)}contentAvailableCallback(e){var r,i,n;if(super.contentAvailableCallback(e),e.has("displayFacets")&&this.displayFacets&&((r=this.floatingContainer)===null||r===void 0||r.focus()),this.scrollToFacet!=null&&this.facetsLoaded){(i=this.scrollingFiltersContainer)===null||i===void 0||i.scrollIndexIntoView(this.facets.findIndex(o=>o.key===this.scrollToFacet));let s=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);s&&(s.active=!0),this.scrollToFacet=void 0}}initApi(){this.api==null&&(this.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier,!0):void 0,setTimeout(()=>this.initApi(),10))}async retrieveFacetsFromSearch(){var e;if(this.facetsRequest.length==0){this.facets=[];return}let r=new Map;await((e=this.api)===null||e===void 0?void 0:e.search({...this.request,query:""}).then(i=>i.facets.forEach(n=>{this.knownFacetLabels.set(n.key,n.label),r.set(n.key,n)})).catch(Hf)),this.facets=[];for(let i of this.facetsRequest)r.has(i.id)?this.facets.push(r.get(i.id)):this.knownFacetLabels.has(i.id)&&this.facets.push({key:i.id,label:this.knownFacetLabels.get(i.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1})}onFloatingContainerKeyUp(e){var r;e.key==="Escape"&&(this.displayFacets=!1,(r=this.filtersOpener)===null||r===void 0||r.focus())}setQuery(e){this.input&&(this.input.value=e),this.query=e}onLaunchSearch(){if(this.query){let e=this.recentSearches.filter(r=>r.toLowerCase()!==this.query.toLowerCase()).filter((r,i)=>i<20);this.recentSearches=[this.query,...e],this.saveRecentSearches()}this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}initRecentSearches(){var e;this.recentSearches=JSON.parse((e=window.localStorage.getItem(this.recentSearchesStorageKey))!==null&&e!==void 0?e:"[]")}saveRecentSearches(){let e=JSON.stringify(this.recentSearches);window.localStorage.setItem(this.recentSearchesStorageKey,e),window.dispatchEvent(new StorageEvent("storage",{key:this.recentSearchesStorageKey,newValue:e,storageArea:window.localStorage,url:window.location.href}))}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer),this.focusOnDisplay&&!Y.isTouchScreen&&this.focusInput(),O.addEventListener("authentication-change",this.initSearchData),this.initSearchData()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox),document.removeEventListener("focusin",this.closeFloatingContainer),document.removeEventListener("click",this.closeFloatingContainer),O.removeEventListener("authentication-change",this.initSearchData)}updateSize(e){this.sizeCategory=e.detail.category}setFilter(e,r){let i=this.metadataFilters.filter(n=>!n.valueFilter||n.key!==e);this.facets.forEach(n=>{n.key===e&&(0,Y.flatDeep)(n.rootNodes,s=>s.childNodes).forEach(s=>s.selected=r.includes(s.value))}),r.length&&i.push({key:e,valueFilter:{negative:!1,values:r}}),this.metadataFilters=i,this.scrollToFacet=e}setFiltersFromPreset(e){e!=null&&(e.contentLocale!=null&&(this.contentLocale=e.contentLocale),this.metadataFilters=e.metadataFilters)}clearFilters(){this.facets.forEach(r=>(0,Y.flatDeep)(r.rootNodes,i=>i.childNodes).forEach(i=>i.selected=!1)),this.metadataFilters=[];let e=this.facets[0];this.scrollToFacet=e?.key}querySelector(e){return this.shadowRoot.querySelector(e)}querySelectorAll(e){return this.shadowRoot.querySelectorAll(e)}renderDesktopFloatingMenu(){return this.forceMenuOpen?H.nothing:H.html`
|
|
2942
2942
|
<div class="ft-search-bar--floating-panel"
|
|
2943
2943
|
id="ft-search-bar-floating-panel"
|
|
2944
2944
|
@keyup=${this.onFloatingContainerKeyUp}
|
|
2945
2945
|
part="floating-panel"
|
|
2946
2946
|
tabindex="-1">
|
|
2947
2947
|
${this.renderDesktopMenu()}
|
|
2948
|
-
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};w.elementDefinitions={"ft-accordion":Ft,"ft-accordion-item":yt,"ft-button":C,"ft-chip":ae,"ft-filter":z,"ft-filter-option":at,"ft-icon":ee,"ft-ripple":L,"ft-select":Z,"ft-select-option":Me,"ft-size-watcher":rt,"ft-skeleton":gr,"ft-snap-scroll":ve,"ft-tooltip":he,"ft-typography":W,"ft-radio-group":
|
|
2948
|
+
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};w.elementDefinitions={"ft-accordion":Ft,"ft-accordion-item":yt,"ft-button":C,"ft-chip":ae,"ft-filter":z,"ft-filter-option":at,"ft-icon":ee,"ft-ripple":L,"ft-select":Z,"ft-select-option":Me,"ft-size-watcher":rt,"ft-skeleton":gr,"ft-snap-scroll":ve,"ft-tooltip":he,"ft-typography":W,"ft-radio-group":st,"ft-radio":Ae};w.styles=[Zt,Y.noTextInputDefaultClearButton,Op,_p,zt.styles,Ut.styles,Y.screenReaderStyles];F([(0,B.property)({type:Boolean})],w.prototype,"dense",void 0);F([(0,B.property)()],w.prototype,"mode",void 0);F([(0,B.property)({type:Boolean})],w.prototype,"forceMobileMenuOpen",void 0);F([(0,B.property)({type:Boolean})],w.prototype,"forceMenuOpen",void 0);F([(0,B.property)()],w.prototype,"baseUrl",void 0);F([(0,B.property)()],w.prototype,"apiIntegrationIdentifier",void 0);F([(0,B.property)()],w.prototype,"contentLocale",void 0);F([(0,B.state)()],w.prototype,"availableContentLocales",void 0);F([(0,B.state)()],w.prototype,"availableContentLocalesInitialized",void 0);F([(0,B.property)()],w.prototype,"uiLocale",void 0);F([(0,Y.jsonProperty)({})],w.prototype,"labels",void 0);F([(0,Y.jsonProperty)([])],w.prototype,"displayedFilters",void 0);F([(0,Y.jsonProperty)([])],w.prototype,"presets",void 0);F([(0,B.property)({type:String,reflect:!0})],w.prototype,"selectedPreset",void 0);F([(0,Y.jsonProperty)([])],w.prototype,"priors",void 0);F([(0,B.property)()],w.prototype,"searchRequestSerializer",void 0);F([(0,B.property)({type:Boolean})],w.prototype,"focusOnDisplay",void 0);F([(0,B.state)()],w.prototype,"metadataFilters",void 0);F([(0,B.state)()],w.prototype,"sizeCategory",void 0);F([(0,B.state)()],w.prototype,"displayFacets",void 0);F([(0,B.state)()],w.prototype,"mobileMenuOpen",void 0);F([(0,B.state)()],w.prototype,"facets",void 0);F([(0,B.state)()],w.prototype,"facetsInitialized",void 0);F([(0,B.query)(".ft-search-bar--container")],w.prototype,"container",void 0);F([(0,B.query)(".ft-search-bar--filters-opener")],w.prototype,"filtersOpener",void 0);F([(0,B.query)(".ft-search-bar--floating-panel")],w.prototype,"floatingContainer",void 0);F([(0,B.query)("ft-snap-scroll.ft-search-bar--filters-container")],w.prototype,"scrollingFiltersContainer",void 0);F([(0,B.query)(".ft-search-bar--input")],w.prototype,"input",void 0);F([(0,B.query)(".ft-search-bar--launch-search")],w.prototype,"launchSearchButton",void 0);F([(0,B.state)()],w.prototype,"query",void 0);F([(0,B.state)()],w.prototype,"suggestions",void 0);F([(0,B.state)()],w.prototype,"recentSearches",void 0);F([(0,B.state)()],w.prototype,"scrollToFacet",void 0);F([(0,B.state)()],w.prototype,"api",void 0);F([(0,B.state)()],w.prototype,"displaySuggestListbox",void 0);F([(0,B.state)()],w.prototype,"selectedSuggestOptionId",void 0);F([(0,B.state)()],w.prototype,"selectedSuggestRemoveRecent",void 0);F([(0,B.state)()],w.prototype,"facetsLoaded",void 0);var Bp=c(f());var Fp={"ft-search-bar":w};(0,Bp.customElements)(Fp);var Vp=Up.css`
|
|
2949
2949
|
* {
|
|
2950
2950
|
box-sizing: border-box;
|
|
2951
2951
|
}
|
|
@@ -2999,16 +2999,16 @@
|
|
|
2999
2999
|
ft-ripple {
|
|
3000
3000
|
${(0,zp.setVariable)(q.opacityContentOnSurfaceHover,q.opacityContentOnSurfaceSelected)}
|
|
3001
3001
|
}
|
|
3002
|
-
`;var
|
|
3002
|
+
`;var sa=c(dr());var yr=class{constructor(e){this.ftSearchInput=e,this.listboxId="ft-search-input-suggestion"}render(){var e;let r=Kt.get(),{recentQuerySuggestions:i}=this.ftSearchInput;return Qr.html`
|
|
3003
3003
|
<div class="ft-search-input-suggestion ft-word-wrap"
|
|
3004
3004
|
id="${this.listboxId}"
|
|
3005
3005
|
role="listbox"
|
|
3006
3006
|
aria-label="${Qt.messages.suggestionsLabel()}"
|
|
3007
3007
|
part="container">
|
|
3008
|
-
${(0,
|
|
3009
|
-
${(0,
|
|
3008
|
+
${(0,sa.repeat)(i,n=>n,(n,s)=>this.renderRecentQuery(s,n,r))}
|
|
3009
|
+
${(0,sa.repeat)((e=this.ftSearchInput.suggestResults)!==null&&e!==void 0?e:[],n=>n.value,(n,s)=>this.renderSuggestion(i.length+s,n,r))}
|
|
3010
3010
|
</div>
|
|
3011
|
-
`}renderRecentQuery(e,r,i){return this.renderOption(e,r,"history",ze.material,!0,i)}renderSuggestion(e,r,i){let
|
|
3011
|
+
`}renderRecentQuery(e,r,i){return this.renderOption(e,r,"history",ze.material,!0,i)}renderSuggestion(e,r,i){let n=r.type==="DOCUMENT"?ze.file_format:ze.fluid_topics,s;switch(r.type){case"MAP":s=r.editorialType==="BOOK"?be.BOOK:be.ARTICLE;break;case"DOCUMENT":s=hn(r.mimeType,r.filenameExtension);break;case"TOPIC":s=be.TOPICS;break;case"HTML_PACKAGE":s=be.BOX_CODE;break;case"HTML_PACKAGE_PAGE":s=be.FILE_CODE;break}return this.renderOption(e,r.value,s,n,!1,i)}renderOption(e,r,i,n,s,o){let a=this.ftSearchInput.selectedSuggestOptionIndex===e,l=this.ftSearchInput.selectedSuggestOptionRemove,u=this.ftSearchInput.launchSearchPath?o.serializeToCurrentPageIfPossible({...this.ftSearchInput.request,query:r},this.ftSearchInput.launchSearchPath):Qr.nothing;return Qr.html`
|
|
3012
3012
|
<div part="suggestion-container"
|
|
3013
3013
|
class="ft-search-input-suggestion--container">
|
|
3014
3014
|
<a href="${u}"
|
|
@@ -3021,10 +3021,10 @@
|
|
|
3021
3021
|
@click=${()=>this.onSelectOption(r)}
|
|
3022
3022
|
>
|
|
3023
3023
|
<ft-ripple ?activated=${a&&!l}></ft-ripple>
|
|
3024
|
-
<ft-icon variant="${
|
|
3024
|
+
<ft-icon variant="${n}" value="${i}" part="suggestion-icon"></ft-icon>
|
|
3025
3025
|
<ft-typography variant="${ce.body1}">${r}</ft-typography>
|
|
3026
3026
|
</a>
|
|
3027
|
-
${
|
|
3027
|
+
${s?Qr.html`
|
|
3028
3028
|
<ft-button icon="${be.CLOSE}"
|
|
3029
3029
|
round
|
|
3030
3030
|
part="remove-suggestion"
|
|
@@ -3038,7 +3038,7 @@
|
|
|
3038
3038
|
</ft-button>
|
|
3039
3039
|
`:Qr.nothing}
|
|
3040
3040
|
</div>
|
|
3041
|
-
`}onRemoveRecentQuery(e){var r;(r=this.ftSearchInput.stateManager)===null||r===void 0||r.removeRecentQuery(e)}onSelectOption(e){this.ftSearchInput.onSuggestionSelected(e)}get activeElementId(){let{selectedSuggestOptionIndex:e,selectedSuggestOptionRemove:r}=this.ftSearchInput;if(e!==void 0)return(r?"remove-suggestion-":"suggestion-")+e}get activeElement(){var e;let r=this.activeElementId;if(r!==void 0)return(e=this.ftSearchInput.shadowRoot.getElementById(r))!==null&&e!==void 0?e:void 0}recentQueriesCount(){return this.ftSearchInput.recentQuerySuggestions.length}suggestionsCount(){var e,r;return(r=(e=this.ftSearchInput.suggestResults)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:0}optionsCount(){return this.recentQueriesCount()+this.suggestionsCount()}clearSelection(){this.ftSearchInput.selectedSuggestOptionIndex=void 0,this.ftSearchInput.selectedSuggestOptionRemove=!1}selectNext(){this.ftSearchInput.selectedSuggestOptionIndex===void 0?this.ftSearchInput.selectedSuggestOptionIndex=0:(this.ftSearchInput.selectedSuggestOptionIndex++,this.ftSearchInput.selectedSuggestOptionIndex>=this.optionsCount()&&this.clearSelection())}selectPrevious(){this.ftSearchInput.selectedSuggestOptionIndex===void 0?this.ftSearchInput.selectedSuggestOptionIndex=this.optionsCount()-1:(this.ftSearchInput.selectedSuggestOptionIndex--,this.ftSearchInput.selectedSuggestOptionIndex<0&&this.clearSelection())}selectLeft(){this.ftSearchInput.selectedSuggestOptionIndex!==void 0&&(this.ftSearchInput.selectedSuggestOptionRemove?this.ftSearchInput.selectedSuggestOptionRemove=!1:this.clearSelection())}isRemovable(e){return e<this.recentQueriesCount()}selectRight(){let e=this.ftSearchInput.selectedSuggestOptionIndex;e!==void 0&&(!this.ftSearchInput.selectedSuggestOptionRemove&&this.isRemovable(e)?this.ftSearchInput.selectedSuggestOptionRemove=!0:this.clearSelection())}closeBox(){this.ftSearchInput.displaySuggestListbox=!1,this.clearSelection()}};yr.elementDefinitions={"ft-ripple":L,"ft-typography":W,"ft-icon":ee,"ft-button":C};yr.styles=[Hp.wordWrap,Vp];var Pe=function(t,e,r,i){var
|
|
3041
|
+
`}onRemoveRecentQuery(e){var r;(r=this.ftSearchInput.stateManager)===null||r===void 0||r.removeRecentQuery(e)}onSelectOption(e){this.ftSearchInput.onSuggestionSelected(e)}get activeElementId(){let{selectedSuggestOptionIndex:e,selectedSuggestOptionRemove:r}=this.ftSearchInput;if(e!==void 0)return(r?"remove-suggestion-":"suggestion-")+e}get activeElement(){var e;let r=this.activeElementId;if(r!==void 0)return(e=this.ftSearchInput.shadowRoot.getElementById(r))!==null&&e!==void 0?e:void 0}recentQueriesCount(){return this.ftSearchInput.recentQuerySuggestions.length}suggestionsCount(){var e,r;return(r=(e=this.ftSearchInput.suggestResults)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:0}optionsCount(){return this.recentQueriesCount()+this.suggestionsCount()}clearSelection(){this.ftSearchInput.selectedSuggestOptionIndex=void 0,this.ftSearchInput.selectedSuggestOptionRemove=!1}selectNext(){this.ftSearchInput.selectedSuggestOptionIndex===void 0?this.ftSearchInput.selectedSuggestOptionIndex=0:(this.ftSearchInput.selectedSuggestOptionIndex++,this.ftSearchInput.selectedSuggestOptionIndex>=this.optionsCount()&&this.clearSelection())}selectPrevious(){this.ftSearchInput.selectedSuggestOptionIndex===void 0?this.ftSearchInput.selectedSuggestOptionIndex=this.optionsCount()-1:(this.ftSearchInput.selectedSuggestOptionIndex--,this.ftSearchInput.selectedSuggestOptionIndex<0&&this.clearSelection())}selectLeft(){this.ftSearchInput.selectedSuggestOptionIndex!==void 0&&(this.ftSearchInput.selectedSuggestOptionRemove?this.ftSearchInput.selectedSuggestOptionRemove=!1:this.clearSelection())}isRemovable(e){return e<this.recentQueriesCount()}selectRight(){let e=this.ftSearchInput.selectedSuggestOptionIndex;e!==void 0&&(!this.ftSearchInput.selectedSuggestOptionRemove&&this.isRemovable(e)?this.ftSearchInput.selectedSuggestOptionRemove=!0:this.clearSelection())}closeBox(){this.ftSearchInput.displaySuggestListbox=!1,this.clearSelection()}};yr.elementDefinitions={"ft-ripple":L,"ft-typography":W,"ft-icon":ee,"ft-button":C};yr.styles=[Hp.wordWrap,Vp];var Pe=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},jf=5;function qf(t){let e=t.liveQuery.trim().toLowerCase();return t.recentQueries.filter(r=>r.toLowerCase().includes(e)).slice(0,jf)}var le=class extends pi(gn){constructor(){super(),this.liveQuery="",this.recentQuerySuggestions=[],this.forceCloseSuggestion=!1,this.displaySuggestListbox=!1,this.selectedSuggestOptionRemove=!1,this.useCustomSearchPath=!1,this.triggerSearchOnClear=!1,this.focusOnDisplay=!1,this.suggestions=new yr(this),this.showSuggestionsOnFocus=!0,this.onPointerDown=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||this.suggestions.closeBox()},this.addI18nContext(Qt)}render(){var e;let r=this.suggestions.optionsCount()>0,i={"ft-search-input":!0,"ft-search-input--with-suggestions":r,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},n={...this.request,query:this.liveQuery},s=this.useCustomSearchPath?this.launchSearchPath:void 0,o=Kt.get().serializeToCurrentPageIfPossible(n,s),a=!this.forceCloseSuggestion&&this.displaySuggestListbox&&r;return Ci.html`
|
|
3042
3042
|
<div class="${(0,jp.classMap)(i)}" @focusout=${()=>this.forceCloseSuggestion=!1} role="search">
|
|
3043
3043
|
<div class="ft-search-input--input-container" part="input-container" tabindex="-1">
|
|
3044
3044
|
<div class="ft-search-input--input-outline" part="input-outline">
|
|
@@ -3085,7 +3085,7 @@
|
|
|
3085
3085
|
></ft-button>
|
|
3086
3086
|
</div>
|
|
3087
3087
|
</div>
|
|
3088
|
-
`}onSearchBarKeyDown(e){switch(this.forceCloseSuggestion=!1,["Escape","Tab","Shift"].includes(e.key)||(this.displaySuggestListbox=!0),e.key){case"Tab":this.suggestions.closeBox();break;case"Escape":this.displaySuggestListbox&&this.suggestions.optionsCount()>0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.closeBox());break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestions.selectNext();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestions.selectPrevious();break;case"ArrowLeft":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectLeft());break;case"ArrowRight":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectRight());break;case"Enter":{let r=this.suggestions.activeElement;if(r){r.click();break}this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break}case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){e.key==="Backspace"&&e.stopPropagation()}onInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}onClearInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(""),this.triggerSearchOnClear&&this.launchSearch(""),this.input.focus()}launchSearch(e){var r,i;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(r=this.stateManager)===null||r===void 0||r.setQuery(e),(i=this.stateManager)===null||i===void 0||i.addRecentQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.suggestions.closeBox()}onClick(){this.onFocus()}onFocus(){this.showSuggestionsOnFocus&&(this.displaySuggestListbox=!0),this.forceCloseSuggestion=!1}async focusInput(e=!0){this.showSuggestionsOnFocus=e,await(0,Ne.waitFor)(()=>this.input,50),this.input.focus(),this.showSuggestionsOnFocus=!0}async connectedCallback(){super.connectedCallback(),this.focusOnDisplay&&!Ne.isTouchScreen&&this.focusInput(!1)}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("displaySuggestListbox")&&(this.displaySuggestListbox?document.addEventListener("pointerdown",this.onPointerDown):document.removeEventListener("pointerdown",this.onPointerDown))}};le.elementDefinitions={"ft-button":C,...yr.elementDefinitions};le.styles=[Zt,Ne.noTextInputDefaultClearButton,ed,...yr.styles,Ne.screenReaderStyles];Pe([(0,Ne.redux)()],le.prototype,"request",void 0);Pe([(0,Ne.redux)()],le.prototype,"liveQuery",void 0);Pe([(0,Ne.redux)()],le.prototype,"suggestResults",void 0);Pe([(0,Ne.redux)({selector:qf})],le.prototype,"recentQuerySuggestions",void 0);Pe([(0,lt.state)()],le.prototype,"forceCloseSuggestion",void 0);Pe([(0,lt.state)()],le.prototype,"displaySuggestListbox",void 0);Pe([(0,lt.state)()],le.prototype,"selectedSuggestOptionIndex",void 0);Pe([(0,lt.state)()],le.prototype,"selectedSuggestOptionRemove",void 0);Pe([(0,lt.property)()],le.prototype,"launchSearchPath",void 0);Pe([
|
|
3088
|
+
`}onSearchBarKeyDown(e){switch(this.forceCloseSuggestion=!1,["Escape","Tab","Shift"].includes(e.key)||(this.displaySuggestListbox=!0),e.key){case"Tab":this.suggestions.closeBox();break;case"Escape":this.displaySuggestListbox&&this.suggestions.optionsCount()>0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.closeBox());break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestions.selectNext();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestions.selectPrevious();break;case"ArrowLeft":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectLeft());break;case"ArrowRight":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectRight());break;case"Enter":{let r=this.suggestions.activeElement;if(r){r.click();break}this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break}case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){e.key==="Backspace"&&e.stopPropagation()}onInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}onClearInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(""),this.triggerSearchOnClear&&this.launchSearch(""),this.input.focus()}launchSearch(e){var r,i;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(r=this.stateManager)===null||r===void 0||r.setQuery(e),(i=this.stateManager)===null||i===void 0||i.addRecentQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.suggestions.closeBox()}onClick(){this.onFocus()}onFocus(){this.showSuggestionsOnFocus&&(this.displaySuggestListbox=!0),this.forceCloseSuggestion=!1}async focusInput(e=!0){this.showSuggestionsOnFocus=e,await(0,Ne.waitFor)(()=>this.input,50),this.input.focus(),this.showSuggestionsOnFocus=!0}async connectedCallback(){super.connectedCallback(),this.focusOnDisplay&&!Ne.isTouchScreen&&this.focusInput(!1)}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("displaySuggestListbox")&&(this.displaySuggestListbox?document.addEventListener("pointerdown",this.onPointerDown):document.removeEventListener("pointerdown",this.onPointerDown))}};le.elementDefinitions={"ft-button":C,...yr.elementDefinitions};le.styles=[Zt,Ne.noTextInputDefaultClearButton,ed,...yr.styles,Ne.screenReaderStyles];Pe([(0,Ne.redux)()],le.prototype,"request",void 0);Pe([(0,Ne.redux)()],le.prototype,"liveQuery",void 0);Pe([(0,Ne.redux)()],le.prototype,"suggestResults",void 0);Pe([(0,Ne.redux)({selector:qf})],le.prototype,"recentQuerySuggestions",void 0);Pe([(0,lt.state)()],le.prototype,"forceCloseSuggestion",void 0);Pe([(0,lt.state)()],le.prototype,"displaySuggestListbox",void 0);Pe([(0,lt.state)()],le.prototype,"selectedSuggestOptionIndex",void 0);Pe([(0,lt.state)()],le.prototype,"selectedSuggestOptionRemove",void 0);Pe([(0,lt.property)()],le.prototype,"launchSearchPath",void 0);Pe([cn()],le.prototype,"placeholder",void 0);Pe([(0,lt.property)({type:Boolean})],le.prototype,"useCustomSearchPath",void 0);Pe([(0,lt.property)({type:Boolean})],le.prototype,"triggerSearchOnClear",void 0);Pe([(0,lt.property)({type:Boolean})],le.prototype,"focusOnDisplay",void 0);Pe([(0,lt.query)(".ft-search-input--input")],le.prototype,"input",void 0);Pe([(0,lt.query)('[part="launch-search-in-input"]')],le.prototype,"launchSearchButton",void 0);Pe([(0,Ne.ignoreComposingEvents)()],le.prototype,"onSearchBarKeyDown",null);Pe([(0,Ne.ignoreComposingEvents)()],le.prototype,"onSearchBarKeyUp",null);var qp={"ft-search-input":le};(0,Wp.customElements)(qp);})();
|
|
3089
3089
|
/*! Bundled license information:
|
|
3090
3090
|
|
|
3091
3091
|
lit-html/lit-html.js:
|