@fluid-topics/ft-search-input 2.2.47 → 2.2.48
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 +461 -461
- package/build/ft-search-input.min.js +319 -319
- package/package.json +13 -13
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
1
|
+
"use strict";(()=>{var Kp=Object.create;var la=Object.defineProperty;var Gp=Object.getOwnPropertyDescriptor;var Qp=Object.getOwnPropertyNames;var Yp=Object.getPrototypeOf,Xp=Object.prototype.hasOwnProperty;var Xr=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var Zp=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Qp(e))!Xp.call(t,n)&&n!==r&&la(t,n,{get:()=>e[n],enumerable:!(i=Gp(e,n))||i.enumerable});return t};var c=(t,e,r)=>(r=t!=null?Kp(Yp(t)):{},Zp(e||!t||!t.__esModule?la(r,"default",{value:t,enumerable:!0}):r,t));var f=Xr((Mf,ca)=>{ca.exports=ftGlobals.wcUtils});var v=Xr((Nf,ua)=>{ua.exports=ftGlobals.lit});var z=Xr((Ff,da)=>{da.exports=ftGlobals.litDecorators});var et=Xr((Bf,pa)=>{pa.exports=ftGlobals.litClassMap});var Mu=Xr((wx,Pu)=>{Pu.exports=ftGlobals.litUnsafeHTML});var pr=Xr((qS,td)=>{td.exports=ftGlobals.litRepeat});var jp=c(f());var Ci=c(v()),Ze=c(f());var Zu=c(v()),K=c(f());var Ft=c(f());var xa=c(v()),Oe=c(z()),Sa=c(et()),Oi=c(f());var ba=c(v()),pe=c(f()),ha=pe.FtCssVariableFactory.extend("--ft-ripple-color","",pe.designSystemVariables.colorContent),U={color:ha,backgroundColor:pe.FtCssVariableFactory.extend("--ft-ripple-background-color","",ha),opacityContentOnSurfacePressed:pe.FtCssVariableFactory.external(pe.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:pe.FtCssVariableFactory.external(pe.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:pe.FtCssVariableFactory.external(pe.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:pe.FtCssVariableFactory.external(pe.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:pe.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},fa=pe.FtCssVariableFactory.extend("--ft-ripple-color","",pe.designSystemVariables.colorPrimary),ma={color:fa,backgroundColor:pe.FtCssVariableFactory.extend("--ft-ripple-background-color","",fa)},ga=pe.FtCssVariableFactory.extend("--ft-ripple-color","",pe.designSystemVariables.colorSecondary),ya={color:ga,backgroundColor:pe.FtCssVariableFactory.extend("--ft-ripple-background-color","",ga)},va=ba.css`
|
|
2
2
|
:host {
|
|
3
3
|
display: contents;
|
|
4
4
|
/* Chrome 153+ UA stylesheet hides [unbounded]:not(:unbounded) elements (crbug.com/579043456) */
|
|
@@ -55,19 +55,19 @@
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
58
|
-
background-color: ${
|
|
58
|
+
background-color: ${ya.backgroundColor};
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
62
|
-
background-color: ${
|
|
62
|
+
background-color: ${ya.color};
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
66
|
-
background-color: ${
|
|
66
|
+
background-color: ${ma.backgroundColor};
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
70
|
-
background-color: ${
|
|
70
|
+
background-color: ${ma.color};
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
.ft-ripple .ft-ripple--background {
|
|
@@ -112,21 +112,31 @@
|
|
|
112
112
|
opacity: ${U.opacityContentOnSurfacePressed};
|
|
113
113
|
transform: translate(-50%, -50%) scale(1);
|
|
114
114
|
}
|
|
115
|
-
`;var
|
|
115
|
+
`;var qe=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},k=class extends Oi.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 Oi.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 Oi.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 xa.html`
|
|
116
116
|
<style>
|
|
117
117
|
.ft-ripple .ft-ripple--effect {
|
|
118
118
|
left: ${this.originX}px;
|
|
119
119
|
top: ${this.originY}px;
|
|
120
120
|
}
|
|
121
121
|
</style>
|
|
122
|
-
<div class="${(0,
|
|
122
|
+
<div class="${(0,Sa.classMap)(e)}">
|
|
123
123
|
<div class="ft-ripple--background"></div>
|
|
124
124
|
<div class="ft-ripple--effect"></div>
|
|
125
125
|
</div>
|
|
126
|
-
`}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()}};
|
|
127
|
-
\f\r]`,
|
|
128
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ta=/'/g,ka=/"/g,Da=/^(?:script|style|textarea|title)$/i,Vs=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Pa=Vs(1),Ma=Vs(2),Na=Vs(3),ki=Symbol.for("lit-noChange"),fe=Symbol.for("lit-nothing"),La=new WeakMap,Er=Ar.createTreeWalker(Ar,129);function Fa(t,e){if(!zs(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Oa!==void 0?Oa.createHTML(e):e}var sh=(t,e)=>{let r=t.length-1,i=[],n,s=e===2?"<svg>":e===3?"<math>":"",o=Ri;for(let a=0;a<r;a++){let l=t[a],u,d,p=-1,h=0;for(;h<l.length&&(o.lastIndex=h,d=o.exec(l),d!==null);)h=o.lastIndex,o===Ri?d[1]==="!--"?o=_a:d[1]!==void 0?o=Ra:d[2]!==void 0?(Da.test(d[2])&&(n=RegExp("</"+d[2],"g")),o=Sr):d[3]!==void 0&&(o=Sr):o===Sr?d[0]===">"?(o=n??Ri,p=-1):d[1]===void 0?p=-2:(p=o.lastIndex-d[2].length,u=d[1],o=d[3]===void 0?Sr:d[3]==='"'?ka:Ta):o===ka||o===Ta?o=Sr:o===_a||o===Ra?o=Ri:(o=Sr,n=void 0);let b=o===Sr&&t[a+1].startsWith("/>")?" ":"";s+=o===Ri?l+ih:p>=0?(i.push(u),l.slice(0,p)+$a+l.slice(p)+Jt+b):l+Jt+(p===-2?a:b)}return[Fa(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Li=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]=sh(e,r);if(this.el=t.createElement(u,i),Er.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(n=Er.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let p of n.getAttributeNames())if(p.endsWith($a)){let h=d[o++],b=n.getAttribute(p).split(Jt),S=/([.?@])?(.*)/.exec(h);l.push({type:1,index:s,name:S[2],strings:b,ctor:S[1]==="."?Ms:S[1]==="?"?Ns:S[1]==="@"?Fs:ei}),n.removeAttribute(p)}else p.startsWith(Jt)&&(l.push({type:6,index:s}),n.removeAttribute(p));if(Da.test(n.tagName)){let p=n.textContent.split(Jt),h=p.length-1;if(h>0){n.textContent=gn?gn.emptyScript:"";for(let b=0;b<h;b++)n.append(p[b],yn()),Er.nextNode(),l.push({type:2,index:++s});n.append(p[h],yn())}}}else if(n.nodeType===8)if(n.data===Ia)l.push({type:2,index:s});else{let p=-1;for(;(p=n.data.indexOf(Jt,p+1))!==-1;)l.push({type:7,index:s}),p+=Jt.length-1}s++}}static createElement(e,r){let i=Ar.createElement("template");return i.innerHTML=e,i}};function Jr(t,e,r=t,i){if(e===ki)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,s=Ti(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=Jr(t,n._$AS(t,e.values),n,i)),e}var Ps=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??Ar).importNode(r,!0);Er.currentNode=n;let s=Er.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let u;l.type===2?u=new bn(s,s.nextSibling,this,e):l.type===1?u=new l.ctor(s,l.name,l.strings,this,e):l.type===6&&(u=new Bs(s,this,e)),this._$AV.push(u),l=i[++a]}o!==l?.index&&(s=Er.nextNode(),o++)}return Er.currentNode=Ar,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++}},bn=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=fe,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=Jr(this,e,r),Ti(e)?e===fe||e==null||e===""?(this._$AH!==fe&&this._$AR(),this._$AH=fe):e!==this._$AH&&e!==ki&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):nh(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==fe&&Ti(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ar.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=Li.createElement(Fa(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let s=new Ps(n,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(e){let r=La.get(e.strings);return r===void 0&&La.set(e.strings,r=new Li(e)),r}k(e){zs(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let s of e)n===r.length?r.push(i=new t(this.O(yn()),this.O(yn()),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=wa(e).nextSibling;wa(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},ei=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,s){this.type=1,this._$AH=fe,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=fe}_$AI(e,r=this,i,n){let s=this.strings,o=!1;if(s===void 0)e=Jr(this,e,r,0),o=!Ti(e)||e!==this._$AH&&e!==ki,o&&(this._$AH=e);else{let a=e,l,u;for(e=s[0],l=0;l<s.length-1;l++)u=Jr(this,a[i+l],r,l),u===ki&&(u=this._$AH[l]),o||=!Ti(u)||u!==this._$AH[l],u===fe?e=fe:e!==fe&&(e+=(u??"")+s[l+1]),this._$AH[l]=u}o&&!n&&this.j(e)}j(e){e===fe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ms=class extends ei{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===fe?void 0:e}},Ns=class extends ei{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==fe)}},Fs=class extends ei{constructor(e,r,i,n,s){super(e,r,i,n,s),this.type=5}_$AI(e,r=this){if((e=Jr(this,e,r,0)??fe)===ki)return;let i=this._$AH,n=e===fe&&i!==fe||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,s=e!==fe&&(i===fe||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)}},Bs=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Jr(this,e)}};var oh=Us.litHtmlPolyfillSupport;oh?.(Li,bn),(Us.litHtmlVersions??=[]).push("3.3.3");var Ua=Symbol.for(""),ah=t=>{if(t?.r===Ua)return t?._$litStatic$},Hs=t=>({_$litStatic$:t,r:Ua});var Ba=new Map,js=t=>(e,...r)=>{let i=r.length,n,s,o=[],a=[],l,u=0,d=!1;for(;u<i;){for(l=e[u];u<i&&(s=r[u],(n=ah(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=Ba.get(p))===void 0&&(o.raw=o,Ba.set(p,e=o)),r=a}return t(e,...r)},qs=js(Pa),pm=js(Ma),hm=js(Na);var Ws=c(V()),Za=c(f());var oe;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(oe||(oe={}));var ut=c(x()),m=c(f()),za=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.titleFont),Wt=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.contentFont),y={fontFamily:Wt,fontSize:m.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:m.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:m.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:m.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:m.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:m.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},Cr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-font-family","",za),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-font-size","",y.fontSize,"20px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",y.letterSpacing,"0.15px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-line-height","",y.lineHeight,"1.2"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",y.textDecoration,"inherit")},wr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",za),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",y.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",y.letterSpacing,"0.105px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",y.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",y.textDecoration,"inherit")},Or={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Wt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",y.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",y.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",y.letterSpacing,"0.144px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",y.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",y.textDecoration,"inherit")},_r={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Wt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",y.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",y.letterSpacing,"0.098px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",y.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",y.textDecoration,"inherit")},$t={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Wt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",y.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",y.letterSpacing,"0.496px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",y.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",y.textDecoration,"inherit")},me={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Wt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",y.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",y.letterSpacing,"0.252px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",y.lineHeight,"1.4"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",y.textDecoration,"inherit")},Ke={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Wt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",y.fontSize,"12px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",y.letterSpacing,"0.396px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",y.lineHeight,"1.33"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",y.textDecoration,"inherit")},Rr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Wt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",y.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",y.letterSpacing,"0.33px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",y.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",y.textDecoration,"inherit")},Tr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Wt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",y.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",y.letterSpacing,"1.5px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",y.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",y.textTransform,"uppercase"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",y.textDecoration,"inherit")},xt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Wt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-button-font-size","",y.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",y.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",y.letterSpacing,"1.246px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-button-line-height","",y.lineHeight,"1.15"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",y.textTransform,"uppercase"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",y.textDecoration,"inherit")},Va=ut.css`
|
|
126
|
+
`}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()}};k.elementDefinitions={};k.styles=va;qe([(0,Oe.property)({type:Boolean})],k.prototype,"primary",void 0);qe([(0,Oe.property)({type:Boolean})],k.prototype,"secondary",void 0);qe([(0,Oe.property)({type:Boolean})],k.prototype,"unbounded",void 0);qe([(0,Oe.property)({type:Boolean})],k.prototype,"activated",void 0);qe([(0,Oe.property)({type:Boolean})],k.prototype,"selected",void 0);qe([(0,Oe.property)({type:Boolean})],k.prototype,"disabled",void 0);qe([(0,Oe.state)()],k.prototype,"hovered",void 0);qe([(0,Oe.state)()],k.prototype,"focused",void 0);qe([(0,Oe.state)()],k.prototype,"pressed",void 0);qe([(0,Oe.state)()],k.prototype,"rippling",void 0);qe([(0,Oe.state)()],k.prototype,"originX",void 0);qe([(0,Oe.state)()],k.prototype,"originY",void 0);qe([(0,Oe.query)(".ft-ripple")],k.prototype,"ripple",void 0);qe([(0,Oe.query)(".ft-ripple--effect")],k.prototype,"rippleEffect",void 0);var Aa=c(f());var Ea={"ft-ripple":k};(0,Aa.customElements)(Ea);var ku=c(v()),mt=c(z()),ft=c(f());var Us=globalThis,Ca=t=>t,gn=Us.trustedTypes,wa=gn?gn.createPolicy("lit-html",{createHTML:t=>t}):void 0,La="$lit$",Jt=`lit$${Math.random().toFixed(9).slice(2)}$`,$a="?"+Jt,Jp=`<${$a}>`,Er=document,yn=()=>Er.createComment(""),Ri=t=>t===null||typeof t!="object"&&typeof t!="function",zs=Array.isArray,eh=t=>zs(t)||typeof t?.[Symbol.iterator]=="function",Ds=`[
|
|
127
|
+
\f\r]`,_i=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Oa=/-->/g,_a=/>/g,xr=RegExp(`>|${Ds}(?:([^\\s"'>=/]+)(${Ds}*=${Ds}*(?:[^
|
|
128
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ra=/'/g,Ta=/"/g,Ia=/^(?:script|style|textarea|title)$/i,Vs=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Da=Vs(1),Pa=Vs(2),Ma=Vs(3),Ti=Symbol.for("lit-noChange"),he=Symbol.for("lit-nothing"),ka=new WeakMap,Sr=Er.createTreeWalker(Er,129);function Na(t,e){if(!zs(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return wa!==void 0?wa.createHTML(e):e}var th=(t,e)=>{let r=t.length-1,i=[],n,s=e===2?"<svg>":e===3?"<math>":"",o=_i;for(let a=0;a<r;a++){let l=t[a],u,p,d=-1,h=0;for(;h<l.length&&(o.lastIndex=h,p=o.exec(l),p!==null);)h=o.lastIndex,o===_i?p[1]==="!--"?o=Oa:p[1]!==void 0?o=_a:p[2]!==void 0?(Ia.test(p[2])&&(n=RegExp("</"+p[2],"g")),o=xr):p[3]!==void 0&&(o=xr):o===xr?p[0]===">"?(o=n??_i,d=-1):p[1]===void 0?d=-2:(d=o.lastIndex-p[2].length,u=p[1],o=p[3]===void 0?xr:p[3]==='"'?Ta:Ra):o===Ta||o===Ra?o=xr:o===Oa||o===_a?o=_i:(o=xr,n=void 0);let b=o===xr&&t[a+1].startsWith("/>")?" ":"";s+=o===_i?l+Jp:d>=0?(i.push(u),l.slice(0,d)+La+l.slice(d)+Jt+b):l+Jt+(d===-2?a:b)}return[Na(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},ki=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,p]=th(e,r);if(this.el=t.createElement(u,i),Sr.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=Sr.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let d of n.getAttributeNames())if(d.endsWith(La)){let h=p[o++],b=n.getAttribute(d).split(Jt),E=/([.?@])?(.*)/.exec(h);l.push({type:1,index:s,name:E[2],strings:b,ctor:E[1]==="."?Ms:E[1]==="?"?Ns:E[1]==="@"?Fs:Jr}),n.removeAttribute(d)}else d.startsWith(Jt)&&(l.push({type:6,index:s}),n.removeAttribute(d));if(Ia.test(n.tagName)){let d=n.textContent.split(Jt),h=d.length-1;if(h>0){n.textContent=gn?gn.emptyScript:"";for(let b=0;b<h;b++)n.append(d[b],yn()),Sr.nextNode(),l.push({type:2,index:++s});n.append(d[h],yn())}}}else if(n.nodeType===8)if(n.data===$a)l.push({type:2,index:s});else{let d=-1;for(;(d=n.data.indexOf(Jt,d+1))!==-1;)l.push({type:7,index:s}),d+=Jt.length-1}s++}}static createElement(e,r){let i=Er.createElement("template");return i.innerHTML=e,i}};function Zr(t,e,r=t,i){if(e===Ti)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,s=Ri(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=Zr(t,n._$AS(t,e.values),n,i)),e}var Ps=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??Er).importNode(r,!0);Sr.currentNode=n;let s=Sr.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let u;l.type===2?u=new bn(s,s.nextSibling,this,e):l.type===1?u=new l.ctor(s,l.name,l.strings,this,e):l.type===6&&(u=new Bs(s,this,e)),this._$AV.push(u),l=i[++a]}o!==l?.index&&(s=Sr.nextNode(),o++)}return Sr.currentNode=Er,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++}},bn=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=he,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=Zr(this,e,r),Ri(e)?e===he||e==null||e===""?(this._$AH!==he&&this._$AR(),this._$AH=he):e!==this._$AH&&e!==Ti&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):eh(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!==he&&Ri(this._$AH)?this._$AA.nextSibling.data=e:this.T(Er.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=ki.createElement(Na(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let s=new Ps(n,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(e){let r=ka.get(e.strings);return r===void 0&&ka.set(e.strings,r=new ki(e)),r}k(e){zs(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(yn()),this.O(yn()),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=Ca(e).nextSibling;Ca(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Jr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,s){this.type=1,this._$AH=he,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=he}_$AI(e,r=this,i,n){let s=this.strings,o=!1;if(s===void 0)e=Zr(this,e,r,0),o=!Ri(e)||e!==this._$AH&&e!==Ti,o&&(this._$AH=e);else{let a=e,l,u;for(e=s[0],l=0;l<s.length-1;l++)u=Zr(this,a[i+l],r,l),u===Ti&&(u=this._$AH[l]),o||=!Ri(u)||u!==this._$AH[l],u===he?e=he:e!==he&&(e+=(u??"")+s[l+1]),this._$AH[l]=u}o&&!n&&this.j(e)}j(e){e===he?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ms=class extends Jr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===he?void 0:e}},Ns=class extends Jr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==he)}},Fs=class extends Jr{constructor(e,r,i,n,s){super(e,r,i,n,s),this.type=5}_$AI(e,r=this){if((e=Zr(this,e,r,0)??he)===Ti)return;let i=this._$AH,n=e===he&&i!==he||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,s=e!==he&&(i===he||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)}},Bs=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Zr(this,e)}};var rh=Us.litHtmlPolyfillSupport;rh?.(ki,bn),(Us.litHtmlVersions??=[]).push("3.3.3");var Ba=Symbol.for(""),ih=t=>{if(t?.r===Ba)return t?._$litStatic$},Hs=t=>({_$litStatic$:t,r:Ba});var Fa=new Map,js=t=>(e,...r)=>{let i=r.length,n,s,o=[],a=[],l,u=0,p=!1;for(;u<i;){for(l=e[u];u<i&&(s=r[u],(n=ih(s))!==void 0);)l+=n+e[++u],p=!0;u!==i&&a.push(s),o.push(l),u++}if(u===i&&o.push(e[i]),p){let d=o.join("$$lit$$");(e=Fa.get(d))===void 0&&(o.raw=o,Fa.set(d,e=o)),r=a}return t(e,...r)},qs=js(Da),Jf=js(Pa),em=js(Ma);var Ws=c(z()),Xa=c(f());var se;(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"})(se||(se={}));var ut=c(v()),m=c(f()),Ua=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.titleFont),Wt=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.contentFont),y={fontFamily:Wt,fontSize:m.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:m.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:m.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:m.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:m.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:m.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},Ar={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Ua),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","",Ua),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",y.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",y.letterSpacing,"0.105px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",y.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",y.textDecoration,"inherit")},wr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Wt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",y.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",y.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",y.letterSpacing,"0.144px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",y.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",y.textDecoration,"inherit")},Or={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Wt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",y.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",y.letterSpacing,"0.098px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",y.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",y.textDecoration,"inherit")},$t={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Wt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",y.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",y.letterSpacing,"0.496px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",y.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",y.textDecoration,"inherit")},fe={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Wt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",y.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",y.letterSpacing,"0.252px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",y.lineHeight,"1.4"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",y.textDecoration,"inherit")},We={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Wt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",y.fontSize,"12px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",y.letterSpacing,"0.396px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",y.lineHeight,"1.33"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",y.textDecoration,"inherit")},_r={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Wt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",y.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",y.letterSpacing,"0.33px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",y.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",y.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",y.textDecoration,"inherit")},Rr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Wt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",y.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",y.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",y.letterSpacing,"1.5px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",y.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",y.textTransform,"uppercase"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",y.textDecoration,"inherit")},xt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Wt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-button-font-size","",y.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",y.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",y.letterSpacing,"1.246px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-button-line-height","",y.lineHeight,"1.15"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",y.textTransform,"uppercase"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",y.textDecoration,"inherit")},za=ut.css`
|
|
129
129
|
.ft-typography--title {
|
|
130
|
+
font-family: ${Ar.fontFamily};
|
|
131
|
+
font-size: ${Ar.fontSize};
|
|
132
|
+
font-weight: ${Ar.fontWeight};
|
|
133
|
+
letter-spacing: ${Ar.letterSpacing};
|
|
134
|
+
line-height: ${Ar.lineHeight};
|
|
135
|
+
text-transform: ${Ar.textTransform};
|
|
136
|
+
text-decoration: ${Ar.textDecoration};
|
|
137
|
+
}
|
|
138
|
+
`,Va=ut.css`
|
|
139
|
+
.ft-typography--title-dense {
|
|
130
140
|
font-family: ${Cr.fontFamily};
|
|
131
141
|
font-size: ${Cr.fontSize};
|
|
132
142
|
font-weight: ${Cr.fontWeight};
|
|
@@ -136,7 +146,7 @@
|
|
|
136
146
|
text-decoration: ${Cr.textDecoration};
|
|
137
147
|
}
|
|
138
148
|
`,Ha=ut.css`
|
|
139
|
-
.ft-typography--
|
|
149
|
+
.ft-typography--subtitle1 {
|
|
140
150
|
font-family: ${wr.fontFamily};
|
|
141
151
|
font-size: ${wr.fontSize};
|
|
142
152
|
font-weight: ${wr.fontWeight};
|
|
@@ -146,7 +156,7 @@
|
|
|
146
156
|
text-decoration: ${wr.textDecoration};
|
|
147
157
|
}
|
|
148
158
|
`,ja=ut.css`
|
|
149
|
-
.ft-typography--
|
|
159
|
+
.ft-typography--subtitle2 {
|
|
150
160
|
font-family: ${Or.fontFamily};
|
|
151
161
|
font-size: ${Or.fontSize};
|
|
152
162
|
font-weight: ${Or.fontWeight};
|
|
@@ -155,18 +165,8 @@
|
|
|
155
165
|
text-transform: ${Or.textTransform};
|
|
156
166
|
text-decoration: ${Or.textDecoration};
|
|
157
167
|
}
|
|
158
|
-
`,qa=ut.css`
|
|
159
|
-
.ft-typography--subtitle2 {
|
|
160
|
-
font-family: ${_r.fontFamily};
|
|
161
|
-
font-size: ${_r.fontSize};
|
|
162
|
-
font-weight: ${_r.fontWeight};
|
|
163
|
-
letter-spacing: ${_r.letterSpacing};
|
|
164
|
-
line-height: ${_r.lineHeight};
|
|
165
|
-
text-transform: ${_r.textTransform};
|
|
166
|
-
text-decoration: ${_r.textDecoration};
|
|
167
|
-
}
|
|
168
168
|
|
|
169
|
-
`,
|
|
169
|
+
`,qa=ut.css`
|
|
170
170
|
.ft-typography--body1 {
|
|
171
171
|
font-family: ${$t.fontFamily};
|
|
172
172
|
font-size: ${$t.fontSize};
|
|
@@ -178,26 +178,36 @@
|
|
|
178
178
|
}
|
|
179
179
|
`,er=ut.css`
|
|
180
180
|
.ft-typography--body2 {
|
|
181
|
-
font-family: ${
|
|
182
|
-
font-size: ${
|
|
183
|
-
font-weight: ${
|
|
184
|
-
letter-spacing: ${
|
|
185
|
-
line-height: ${
|
|
186
|
-
text-transform: ${
|
|
187
|
-
text-decoration: ${
|
|
181
|
+
font-family: ${fe.fontFamily};
|
|
182
|
+
font-size: ${fe.fontSize};
|
|
183
|
+
font-weight: ${fe.fontWeight};
|
|
184
|
+
letter-spacing: ${fe.letterSpacing};
|
|
185
|
+
line-height: ${fe.lineHeight};
|
|
186
|
+
text-transform: ${fe.textTransform};
|
|
187
|
+
text-decoration: ${fe.textDecoration};
|
|
188
188
|
}
|
|
189
189
|
`,tr=ut.css`
|
|
190
190
|
.ft-typography--caption {
|
|
191
|
-
font-family: ${
|
|
192
|
-
font-size: ${
|
|
193
|
-
font-weight: ${
|
|
194
|
-
letter-spacing: ${
|
|
195
|
-
line-height: ${
|
|
196
|
-
text-transform: ${
|
|
197
|
-
text-decoration: ${
|
|
191
|
+
font-family: ${We.fontFamily};
|
|
192
|
+
font-size: ${We.fontSize};
|
|
193
|
+
font-weight: ${We.fontWeight};
|
|
194
|
+
letter-spacing: ${We.letterSpacing};
|
|
195
|
+
line-height: ${We.lineHeight};
|
|
196
|
+
text-transform: ${We.textTransform};
|
|
197
|
+
text-decoration: ${We.textDecoration};
|
|
198
198
|
}
|
|
199
|
-
`,
|
|
199
|
+
`,Wa=ut.css`
|
|
200
200
|
.ft-typography--breadcrumb {
|
|
201
|
+
font-family: ${_r.fontFamily};
|
|
202
|
+
font-size: ${_r.fontSize};
|
|
203
|
+
font-weight: ${_r.fontWeight};
|
|
204
|
+
letter-spacing: ${_r.letterSpacing};
|
|
205
|
+
line-height: ${_r.lineHeight};
|
|
206
|
+
text-transform: ${_r.textTransform};
|
|
207
|
+
text-decoration: ${_r.textDecoration};
|
|
208
|
+
}
|
|
209
|
+
`,Ka=ut.css`
|
|
210
|
+
.ft-typography--overline {
|
|
201
211
|
font-family: ${Rr.fontFamily};
|
|
202
212
|
font-size: ${Rr.fontSize};
|
|
203
213
|
font-weight: ${Rr.fontWeight};
|
|
@@ -207,16 +217,6 @@
|
|
|
207
217
|
text-decoration: ${Rr.textDecoration};
|
|
208
218
|
}
|
|
209
219
|
`,Ga=ut.css`
|
|
210
|
-
.ft-typography--overline {
|
|
211
|
-
font-family: ${Tr.fontFamily};
|
|
212
|
-
font-size: ${Tr.fontSize};
|
|
213
|
-
font-weight: ${Tr.fontWeight};
|
|
214
|
-
letter-spacing: ${Tr.letterSpacing};
|
|
215
|
-
line-height: ${Tr.lineHeight};
|
|
216
|
-
text-transform: ${Tr.textTransform};
|
|
217
|
-
text-decoration: ${Tr.textDecoration};
|
|
218
|
-
}
|
|
219
|
-
`,Qa=ut.css`
|
|
220
220
|
.ft-typography--button {
|
|
221
221
|
font-family: ${xt.fontFamily};
|
|
222
222
|
font-size: ${xt.fontSize};
|
|
@@ -226,11 +226,11 @@
|
|
|
226
226
|
text-transform: ${xt.textTransform};
|
|
227
227
|
text-decoration: ${xt.textDecoration};
|
|
228
228
|
}
|
|
229
|
-
`,
|
|
229
|
+
`,Qa=ut.css`
|
|
230
230
|
.ft-typography {
|
|
231
231
|
vertical-align: inherit;
|
|
232
232
|
}
|
|
233
|
-
`;var
|
|
233
|
+
`;var Ya=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},H=class extends Xa.FtLitElement{constructor(){super(...arguments),this.variant=se.body1}render(){return this.element?qs`
|
|
234
234
|
<${Hs(this.element)}
|
|
235
235
|
part="text"
|
|
236
236
|
class="ft-typography ft-typography--${this.variant}">
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
</${Hs(this.element)}>
|
|
239
239
|
`:qs`
|
|
240
240
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
241
|
-
`}};
|
|
241
|
+
`}};H.styles=[za,Va,Ha,ja,qa,er,tr,Wa,Ka,Ga,Qa];Ya([(0,Ws.property)()],H.prototype,"element",void 0);Ya([(0,Ws.property)()],H.prototype,"variant",void 0);var Ja=c(f());var Za={"ft-typography":H};(0,Ja.customElements)(Za);var el=c(v()),rr=c(f()),Li={distance:rr.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:rr.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:rr.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:rr.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",rr.designSystemVariables.borderRadiusS),maxWidth:rr.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},tl=el.css`
|
|
242
242
|
.ft-tooltip--container {
|
|
243
243
|
display: block;
|
|
244
244
|
}
|
|
@@ -256,28 +256,28 @@
|
|
|
256
256
|
box-sizing: border-box;
|
|
257
257
|
overflow: hidden;
|
|
258
258
|
width: max-content;
|
|
259
|
-
max-width: ${
|
|
259
|
+
max-width: ${Li.maxWidth};
|
|
260
260
|
text-align: center;
|
|
261
|
-
padding: ${
|
|
261
|
+
padding: ${Li.distance};
|
|
262
262
|
}
|
|
263
263
|
|
|
264
264
|
.ft-tooltip--content {
|
|
265
265
|
padding: 4px 8px;
|
|
266
|
-
border-radius: ${
|
|
267
|
-
background-color: ${
|
|
268
|
-
color: ${
|
|
266
|
+
border-radius: ${Li.borderRadiusS};
|
|
267
|
+
background-color: ${Li.backgroundColor};
|
|
268
|
+
color: ${Li.color};
|
|
269
269
|
position: relative;
|
|
270
270
|
word-break: break-word;
|
|
271
271
|
}
|
|
272
|
-
`;var nl=["top","right","bottom","left"],il=["start","end"],Gs=nl.reduce((t,e)=>t.concat(e,e+"-"+il[0],e+"-"+il[1]),[]),Ii=Math.min,ir=Math.max,Di=Math.round;var It=t=>({x:t,y:t}),lh={left:"right",right:"left",bottom:"top",top:"bottom"};function sl(t,e,r){return ir(t,Ii(e,r))}function vn(t,e){return typeof t=="function"?t(e):t}function Pi(t){return t.split("-")[0]}function nr(t){return t.split("-")[1]}function Qs(t){return t==="x"?"y":"x"}function Ys(t){return t==="y"?"height":"width"}function xn(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Xs(t){return Qs(xn(t))}function ol(t,e,r){r===void 0&&(r=!1);let i=nr(t),n=Xs(t),s=Ys(n),o=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=Ks(o)),[o,Ks(o)]}function al(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Ks(t){let e=Pi(t);return lh[e]+t.slice(e.length)}function ch(t){var e,r,i,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 ll(t){return typeof t!="number"?ch(t):{top:t,right:t,bottom:t,left:t}}function kr(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 cl(t,e,r){let{reference:i,floating:n}=t,s=xn(e),o=Xs(e),a=Ys(o),l=Pi(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=nr(e);return S&&(b[o]+=h*(S==="end"?1:-1)*(r&&u?-1:1)),b}async function ul(t,e){var r;e===void 0&&(e={});let{x:i,y: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}=vn(e,t),S=ll(b),v=a[h?p==="floating"?"reference":"floating":p],$=kr(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(v)))==null||r?v:v.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)),A=await(s.isElement==null?void 0:s.isElement(E))&&await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1},G=kr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:j,offsetParent:E,strategy:l}):j);return{top:($.top-G.top+S.top)/A.y,bottom:(G.bottom-$.bottom+S.bottom)/A.y,left:($.left-G.left+S.left)/A.x,right:(G.right-$.right+S.right)/A.x}}var uh=50,dl=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:s=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:ul},l=await(o.isRTL==null?void 0:o.isRTL(e)),u=await o.getElementRects({reference:t,floating:e,strategy:n}),{x:d,y:p}=cl(u,i,l),h=i,b=0,S={};for(let R=0;R<s.length;R++){let v=s[R];if(!v)continue;let{name:$,fn:j}=v,{x:E,y:A,data:G,reset:z}=await j({x:d,y:p,initialPlacement:i,placement:h,strategy:n,middlewareData:S,rects:u,platform:a,elements:{reference:t,floating:e}});d=E??d,p=A??p,S[$]={...S[$],...G},z&&b<uh&&(b++,typeof z=="object"&&(z.placement&&(h=z.placement),z.rects&&(u=z.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:n}):z.rects),{x:d,y:p}=cl(u,h,l)),R=-1)}return{x:d,y:p,placement:h,strategy:n,middlewareData:S}};function dh(t,e,r){return(t?[...r.filter(n=>nr(n)===t),...r.filter(n=>nr(n)!==t)]:r.filter(n=>Pi(n)===n)).filter(n=>t?nr(n)===t||(e?al(n)!==n:!1):!0)}var pl=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=Gs,autoAlignment:b=!0,...S}=vn(t,e),R=p!==void 0||h===Gs?dh(p||null,b,h):h,v=((r=o.autoPlacement)==null?void 0:r.index)||0,$=R[v];if($==null)return{};if(a!==$)return{reset:{placement:R[0]}};let j=await l.detectOverflow(e,S),E=ol($,s,await(l.isRTL==null?void 0:l.isRTL(u.floating))),A=[j[Pi($)],j[E[0]],j[E[1]]],G=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:$,overflows:A}],z=R[v+1];if(z)return{data:{index:v+1,overflows:G},reset:{placement:z}};let ve=G.map(ct=>{let Oi=nr(ct.placement);return[ct.placement,Oi&&d?ct.overflows.slice(0,2).reduce((Qp,Yp)=>Qp+Yp,0):ct.overflows[0],ct.overflows]}).sort((ct,Oi)=>ct[1]-Oi[1]),mn=((n=ve.filter(ct=>ct[2].slice(0,nr(ct[0])?2:3).every(Oi=>Oi<=0))[0])==null?void 0:n[0])||ve[0][0];return mn!==a?{data:{index:v+1,overflows:G},reset:{placement:mn}}:{}}}};var hl=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:A}=j;return{x:E,y:A}}},...u}=vn(t,e),d={x:r,y:i},p=await s.detectOverflow(e,u),h=xn(n),b=Qs(h),S=d[b],R=d[h],v=(j,E)=>sl(E+p[j==="y"?"top":"left"],E,E-p[j==="y"?"bottom":"right"]);o&&(S=v(b,S)),a&&(R=v(h,R));let $=l.fn({...e,[b]:S,[h]:R});return{...$,data:{x:$.x-r,y:$.y-i,enabled:{[b]:o,[h]:a}}}}}};function En(){return typeof window<"u"}function $r(t){return ml(t)?(t.nodeName||"").toLowerCase():"#document"}function Ge(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Kt(t){var e;return(e=(ml(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ml(t){return En()?t instanceof Node||t instanceof Ge(t).Node:!1}function St(t){return En()?t instanceof Element||t instanceof Ge(t).Element:!1}function Gt(t){return En()?t instanceof HTMLElement||t instanceof Ge(t).HTMLElement:!1}function fl(t){return!En()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ge(t).ShadowRoot}function Mi(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=Et(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function gl(t){return/^(table|td|th)$/.test($r(t))}function Ni(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var ph=/transform|translate|scale|rotate|perspective|filter/,hh=/paint|layout|strict|content/,Lr=t=>!!t&&t!=="none",Zs;function ti(t){let e=St(t)?Et(t):t;return Lr(e.transform)||Lr(e.translate)||Lr(e.scale)||Lr(e.rotate)||Lr(e.perspective)||!An()&&(Lr(e.backdropFilter)||Lr(e.filter))||ph.test(e.willChange||"")||hh.test(e.contain||"")}function yl(t){let e=sr(t);for(;Gt(e)&&!ri(e);){if(ti(e))return e;if(Ni(e))return null;e=sr(e)}return null}function An(){return Zs==null&&(Zs=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Zs}function ri(t){return/^(html|body|#document)$/.test($r(t))}function Et(t){return Ge(t).getComputedStyle(t)}function Fi(t){return St(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function sr(t){if($r(t)==="html")return t;let e=t.assignedSlot||t.parentNode||fl(t)&&t.host||Kt(t);return fl(e)?e.host:e}function bl(t){let e=sr(t);return ri(e)?(t.ownerDocument||t).body:Gt(e)&&Mi(e)?e:bl(e)}function Sn(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=bl(t),s=n===((i=t.ownerDocument)==null?void 0:i.body),o=Ge(n);if(s){let a=Cn(o);return e.concat(o,o.visualViewport||[],Mi(n)?n:[],a&&r?Sn(a):[])}else return e.concat(n,Sn(n,[],r))}function Cn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Sl(t){let e=Et(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=Gt(t),s=n?t.offsetWidth:r,o=n?t.offsetHeight:i,a=Di(r)!==s||Di(i)!==o;return a&&(r=s,i=o),{width:r,height:i,$:a}}function El(t){return St(t)?t:t.contextElement}function ii(t){let e=El(t);if(!Gt(e))return It(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:s}=Sl(e),o=(s?Di(r.width):r.width)/i,a=(s?Di(r.height):r.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var fh=It(0);function Al(t){let e=Ge(t);return!An()||!e.visualViewport?fh:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function mh(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Ge(t)}function Bi(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),s=El(t),o=It(1);e&&(i?St(i)&&(o=ii(i)):o=ii(t));let a=mh(s,r,i)?Al(s):It(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=St(i)?Ge(i):i,S=h,R=Cn(S);for(;R&&b!==S;){let v=ii(R),$=R.getBoundingClientRect(),j=Et(R),E=$.left+(R.clientLeft+parseFloat(j.paddingLeft))*v.x,A=$.top+(R.clientTop+parseFloat(j.paddingTop))*v.y;l*=v.x,u*=v.y,d*=v.x,p*=v.y,l+=E,u+=A,S=Ge(R),R=Cn(S)}}return kr({width:d,height:p,x:l,y:u})}function wn(t,e){let r=Fi(t).scrollLeft;return e?e.left+r:Bi(Kt(t)).left+r}function Cl(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-wn(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function gh(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,s=n==="fixed",o=Kt(i),a=e?Ni(e.floating):!1;if(i===o||a&&s)return r;let l={scrollLeft:0,scrollTop:0},u=It(1),d=It(0),p=Gt(i);if((p||!s)&&(($r(i)!=="body"||Mi(o))&&(l=Fi(i)),p)){let b=Bi(i);u=ii(i),d.x=b.x+i.clientLeft,d.y=b.y+i.clientTop}let h=o&&!p&&!s?Cl(o,l):It(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+d.x+h.x,y:r.y*u.y-l.scrollTop*u.y+d.y+h.y}}function yh(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function bh(t){let e=Fi(t),r=t.ownerDocument.body,i=ir(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=ir(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+wn(t),o=-e.scrollTop;return Et(r).direction==="rtl"&&(s+=ir(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:s,y:o}}var vh=25;function xh(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=Ge(t),s=Kt(t),o=n.visualViewport,a=s.clientWidth,l=s.clientHeight,u=0,d=0;if(o){let h=!An()||e==="fixed";i?h||(u=-o.offsetLeft,d=-o.offsetTop):(a=o.width,l=o.height,h&&(u=o.offsetLeft,d=o.offsetTop))}if(wn(s)<=0){let h=s.ownerDocument,b=h.body,S=getComputedStyle(b),R=h.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,v=Math.abs(s.clientWidth-b.clientWidth-R),$=getComputedStyle(s).scrollbarGutter==="stable both-edges"?v/2:v;$<=vh&&(a-=$)}return{width:a,height:l,x:u,y:d}}function Sh(t,e){let r=Bi(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,s=ii(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 vl(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=xh(t,r,e);else if(e==="document")i=bh(Kt(t));else if(St(e))i=Sh(e,r);else{let n=Al(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return kr(i)}function Eh(t,e){let r=e.get(t);if(r)return r;let i=Sn(t,[],!1).filter(a=>St(a)&&$r(a)!=="body"),n=null,s=Et(t).position==="fixed",o=s?sr(t):t;for(;St(o)&&!ri(o);){let a=Et(o),l=ti(o),u=n?n.position:s?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&a.position==="static")?i=i.filter(p=>p!==o):n=a,o=sr(o)}return e.set(t,i),i}function Ah(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,o=[...r==="clippingAncestors"?Ni(e)?[]:Eh(e,this._c):[].concat(r),i],a=vl(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=vl(e,o[h],n);l=ir(b.top,l),u=Ii(b.right,u),d=Ii(b.bottom,d),p=ir(b.left,p)}return{width:u-p,height:d-l,x:p,y:l}}function Ch(t){let{width:e,height:r}=Sl(t);return{width:e,height:r}}function wh(t,e,r){let i=Gt(e),n=Kt(e),s=r==="fixed",o=Bi(t,!0,s,e),a={scrollLeft:0,scrollTop:0},l=It(0);if((i||!s)&&(($r(e)!=="body"||Mi(n))&&(a=Fi(e)),i)){let h=Bi(e,!0,s,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}!i&&n&&(l.x=wn(n));let u=n&&!i&&!s?Cl(n,a):It(0),d=o.left+a.scrollLeft-l.x-u.x,p=o.top+a.scrollTop-l.y-u.y;return{x:d,y:p,width:o.width,height:o.height}}function Js(t){return Et(t).position==="static"}function xl(t,e){if(!Gt(t)||Et(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Kt(t)===r&&(r=r.ownerDocument.body),r}function wl(t,e){let r=Ge(t);if(Ni(t))return r;if(!Gt(t)){let n=sr(t);for(;n&&!ri(n);){if(St(n)&&!Js(n))return n;n=sr(n)}return r}let i=xl(t,e);for(;i&&gl(i)&&Js(i);)i=xl(i,e);return i&&ri(i)&&Js(i)&&!ti(i)?r:i||yl(t)||r}var Oh=async function(t){let e=this.getOffsetParent||wl,r=this.getDimensions,i=await r(t.floating);return{reference:wh(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function _h(t){return Et(t).direction==="rtl"}var On={convertOffsetParentRelativeRectToViewportRelativeRect:gh,getDocumentElement:Kt,getClippingRect:Ah,getOffsetParent:wl,getElementRects:Oh,getClientRects:yh,getDimensions:Ch,getScale:ii,isElement:St,isRTL:_h};var Ol=pl,_l=hl;var Rl=(t,e,r)=>{let i=new Map,n=r??{},s={...On,...n.platform,_c:i};return dl(t,e,{...n,platform:s})};function Tl(t){return Rh(t)}function eo(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Rh(t){for(let e=t;e;e=eo(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=eo(t);e;e=eo(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||ti(r)||e.tagName==="BODY"))return e}return null}async function kl(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},Rl(t,e,{strategy:i.strategy,platform:{...On,getOffsetParent:n=>On.getOffsetParent(n,Tl)},middleware:[_l({crossAxis:!0}),Ol({allowedPlacements:[i.placement]})]})}var hi=c(f());var Ao=c(V());var Ll=c(V(),1);var to=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},Th=t=>({fromAttribute:e=>{if(e==null)return Ui(t);try{return JSON.parse(e)}catch{return Ui(t)}},toAttribute:e=>JSON.stringify(e)});function $l(t,e){return(0,Ll.property)({type:Object,converter:Th(t),hasChanged:zi,...e??{}})}function kh(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!ni(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!ni(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let 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(!ni(t[o],e[o]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function ni(t,e){try{return kh(t,e)}catch{return!1}}function zi(t,e){return!ni(t,e)}function Ui(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function _n(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 Il=c(V(),1);var ro=t=>{let e=t??{};return(r,i)=>{var n;let s={hasChanged:zi,attribute:!1,...e};(0,Il.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 Rn=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 Ir=c(V(),1);var Tn=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 Ln=c(x(),1);var kn=class extends Ln.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return(0,Ln.adoptStyles)(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){to(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};function Dl(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 oi=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},Fl,Pl=Symbol("constructorPrototype"),Ml=Symbol("constructorName"),Bl=Symbol("exportpartsDebouncer"),Nl=Symbol("dynamicDependenciesLoaded"),si=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};si.eventName="exportparts-updated";var Dt=class extends kn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Fl]=new Tn(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Bl].run(()=>{var 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[Ml]=this.constructor.name,this[Pl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ml]&&Object.setPrototypeOf(this,this[Pl])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[Nl]||(r[Nl]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(si.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(si.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new si)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let s=[...n??[],i];r=Dl(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(s=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&s!==void 0?s:[]){let b=(o=(i=h.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&o!==void 0?o:[],S=(a=(n=h.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(v=>v.split(":")[1]))!==null&&a!==void 0?a:[],R=[...b,...S].filter(l).map(v=>v.trim());for(let v of R)d.add(v)}if(d.size===0){this.exportparts=void 0;return}let p=[...d.values()].flatMap(h=>u.map(b=>`${h}:${b}--${h}`));this.exportparts=[...this.part,...p].join(", ")}};Fl=Bl;oi([(0,Ir.property)()],Dt.prototype,"exportpartsPrefix",void 0);oi([$l([])],Dt.prototype,"exportpartsPrefixes",void 0);oi([(0,Ir.property)({reflect:!0})],Dt.prototype,"exportparts",void 0);oi([(0,Ir.property)()],Dt.prototype,"customStylesheet",void 0);oi([(0,Ir.property)()],Dt.prototype,"elementToFocus",void 0);oi([(0,Ir.state)()],Dt.prototype,"useAdoptedStyleSheets",void 0);function $n(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Vi=Symbol("internalReduxEventsUnsubscribers"),or=Symbol("internalStoresUnsubscribers"),Dr=Symbol("internalStores"),Lh=_n(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[Dr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Dr].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[Dr].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Dr].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[Dr].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Dr].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let u=this.getStore(o.store);u&&(o.store?this[or].has(o.store):this[or].size>0)&&(this[a]=o.selector(u.getState(),this))}})}subscribeToStore(o,a){var l,u;this[or].set(o,a.subscribe(()=>this.updateFromStores())),this[Vi].set(o,[]),$n(a)&&(!((l=a.deprecatedKeys)===null||l===void 0)&&l.length&&this.reduxConstructor.reduxProperties.forEach((d,p)=>{this.getStore(d.store)===a&&a.deprecatedKeys.includes(p)&&console.warn("Element",this,"is subscribed to deprecated key",p,"in store",a.name)}),a.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((d,p)=>{if(typeof this[p]=="function"&&(!d.store||a.name===d.store)){let h=b=>this[p](b);a.addEventListener(d.eventName,h),this[Vi].get(o).push(()=>a.removeEventListener(d.eventName,h))}}))),this.onStoreAvailable(o)}unsubscribeFromStores(){this[or].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[or].has(o)&&this[or].get(o)(),this[or].delete(o),(a=this[Vi].get(o))===null||a===void 0||a.forEach(l=>l()),this[Vi].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=or,r=Dr,i=Vi,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Ul=class extends Lh(Dt){};function Re(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var $h=typeof Symbol=="function"&&Symbol.observable||"@@observable",zl=$h,io=()=>Math.random().toString(36).substring(7).split("").join("."),Ih={INIT:`@@redux/INIT${io()}`,REPLACE:`@@redux/REPLACE${io()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${io()}`},In=Ih;function Dn(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function no(t,e,r){if(typeof t!="function")throw new Error(Re(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Re(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Re(1));return r(no)(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((v,$)=>{o.set($,v)}))}function d(){if(l)throw new Error(Re(3));return n}function p(v){if(typeof v!="function")throw new Error(Re(4));if(l)throw new Error(Re(5));let $=!0;u();let j=a++;return o.set(j,v),function(){if($){if(l)throw new Error(Re(6));$=!1,u(),o.delete(j),s=null}}}function h(v){if(!Dn(v))throw new Error(Re(7));if(typeof v.type>"u")throw new Error(Re(8));if(typeof v.type!="string")throw new Error(Re(17));if(l)throw new Error(Re(9));try{l=!0,n=i(n,v)}finally{l=!1}return(s=o).forEach(j=>{j()}),v}function b(v){if(typeof v!="function")throw new Error(Re(10));i=v,h({type:In.REPLACE})}function S(){let v=p;return{subscribe($){if(typeof $!="object"||$===null)throw new Error(Re(11));function j(){let A=$;A.next&&A.next(d())}return j(),{unsubscribe:v(j)}},[zl](){return this}}}return h({type:In.INIT}),{dispatch:h,subscribe:p,getState:d,replaceReducer:b,[zl]:S}}function Dh(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:In.INIT})>"u")throw new Error(Re(12));if(typeof r(void 0,{type:In.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Re(13))})}function so(t){let e=Object.keys(t),r={};for(let o=0;o<e.length;o++){let a=e[o];typeof t[a]=="function"&&(r[a]=t[a])}let i=Object.keys(r),n,s;try{Dh(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],R=b(S,l);if(typeof R>"u"){let v=l&&l.type;throw new Error(Re(14))}d[h]=R,u=u||R!==S}return u=u||i.length!==Object.keys(a).length,u?d:a}}function Hi(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function Vl(...t){return e=>(r,i)=>{let n=e(r,i),s=()=>{throw new Error(Re(15))},o={getState:n.getState,dispatch:(l,...u)=>s(l,...u)},a=t.map(l=>l(o));return s=Hi(...a)(n.dispatch),{...n,dispatch:s}}}function Hl(t){return Dn(t)&&"type"in t&&typeof t.type=="string"}var Zl=Symbol.for("immer-nothing"),jl=Symbol.for("immer-draftable"),Pe=Symbol.for("immer-state");function At(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var tt=Object,li=tt.getPrototypeOf,Fn="constructor",jn="prototype",co="configurable",Bn="enumerable",Mn="writable",ji="value",Pt=t=>!!t&&!!t[Pe];function rt(t){return t?Jl(t)||Wn(t)||!!t[jl]||!!t[Fn]?.[jl]||Kn(t)||Gi(t):!1}var Ph=tt[jn][Fn].toString(),ql=new WeakMap;function Jl(t){if(!t||!bo(t))return!1;let e=li(t);if(e===null||e===tt[jn])return!0;let r=tt.hasOwnProperty.call(e,Fn)&&e[Fn];if(r===Object)return!0;if(!ai(r))return!1;let i=ql.get(r);return i===void 0&&(i=Function.toString.call(r),ql.set(r,i)),i===Ph}function qn(t,e,r=!0){Ki(t)===0?(r?Reflect.ownKeys(t):tt.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((i,n)=>e(n,i,t))}function Ki(t){let e=t[Pe];return e?e.type_:Wn(t)?1:Kn(t)?2:Gi(t)?3:0}var oo=(t,e,r=Ki(t))=>r===2?t.has(e):tt[jn].hasOwnProperty.call(t,e),uo=(t,e,r=Ki(t))=>r===2?t.get(e):t[e],Un=(t,e,r,i=Ki(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function Mh(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Wn=Array.isArray,Kn=t=>t instanceof Map,Gi=t=>t instanceof Set,bo=t=>typeof t=="object",ai=t=>typeof t=="function",ao=t=>typeof t=="boolean";function Nh(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var Qt=t=>t.copy_||t.base_;var vo=t=>t.modified_?t.copy_:t.base_;function po(t,e){if(Kn(t))return new Map(t);if(Gi(t))return new Set(t);if(Wn(t))return Array[jn].slice.call(t);let r=Jl(t);if(e===!0||e==="class_only"&&!r){let i=tt.getOwnPropertyDescriptors(t);delete i[Pe];let n=Reflect.ownKeys(i);for(let s=0;s<n.length;s++){let o=n[s],a=i[o];a[Mn]===!1&&(a[Mn]=!0,a[co]=!0),(a.get||a.set)&&(i[o]={[co]:!0,[Mn]:!0,[Bn]:a[Bn],[ji]:t[o]})}return tt.create(li(t),i)}else{let i=li(t);if(i!==null&&r)return{...t};let n=tt.create(i);return tt.assign(n,t)}}function Gn(t,e=!1){return Qn(t)||Pt(t)||!rt(t)||(Ki(t)>1&&tt.defineProperties(t,{set:Pn,add:Pn,clear:Pn,delete:Pn}),tt.freeze(t),e&&qn(t,(r,i)=>{Gn(i,!0)},!1)),t}function Fh(){At(2)}var Pn={[ji]:Fh};function Qn(t){return t===null||!bo(t)?!0:tt.isFrozen(t)}var zn="MapSet",ho="Patches",Wl="ArrayMethods",ec={};function Pr(t){let e=ec[t];return e||At(0,t),e}var Kl=t=>!!ec[t];var qi,tc=()=>qi,Bh=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Kl(zn)?Pr(zn):void 0,arrayMethodsPlugin_:Kl(Wl)?Pr(Wl):void 0});function Gl(t,e){e&&(t.patchPlugin_=Pr(ho),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function fo(t){mo(t),t.drafts_.forEach(Uh),t.drafts_=null}function mo(t){t===qi&&(qi=t.parent_)}var Ql=t=>qi=Bh(qi,t);function Uh(t){let e=t[Pe];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Yl(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[Pe].modified_&&(fo(e),At(4)),rt(t)&&(t=Xl(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(r[Pe].base_,t,e)}else t=Xl(e,r);return zh(e,t,!0),fo(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Zl?t:void 0}function Xl(t,e){if(Qn(e))return e;let r=e[Pe];if(!r)return Vn(e,t.handledSet_,t);if(!Yn(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);nc(r,t)}return r.copy_}function zh(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Gn(e,r)}function rc(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Yn=(t,e)=>t.scope_===e,Vh=[];function ic(t,e,r,i){let n=Qt(t),s=t.type_;if(i!==void 0&&uo(n,i,s)===e){Un(n,i,r,s);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;qn(n,(l,u)=>{if(Pt(u)){let d=a.get(u)||[];d.push(l),a.set(u,d)}})}let o=t.draftLocations_.get(e)??Vh;for(let a of o)Un(n,a,r,s)}function Hh(t,e,r){t.callbacks_.push(function(n){let s=e;if(!s||!Yn(s,n))return;n.mapSetPlugin_?.fixSetContents(s);let o=vo(s);ic(t,s.draft_??s,o,r),nc(s,n)})}function nc(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let n=i.getPath(t);n&&i.generatePatches_(t,n,e)}rc(t)}}function jh(t,e,r){let{scope_:i}=t;if(Pt(r)){let n=r[Pe];Yn(n,i)&&n.callbacks_.push(function(){Nn(t);let o=vo(n);ic(t,r,o,e)})}else rt(r)&&t.callbacks_.push(function(){let s=Qt(t);t.type_===3?s.has(r)&&Vn(r,i.handledSet_,i):uo(s,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Vn(uo(t.copy_,e,t.type_),i.handledSet_,i)})}function Vn(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Pt(t)||e.has(t)||!rt(t)||Qn(t)||(e.add(t),qn(t,(i,n)=>{if(Pt(n)){let s=n[Pe];if(Yn(s,r)){let o=vo(s);Un(t,i,o,t.type_),rc(s)}}else rt(n)&&Vn(n,e,r)})),t}function qh(t,e){let r=Wn(t),i={type_:r?1:0,scope_:e?e.scope_:tc(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=i,s=Hn;r&&(n=[i],s=Wi);let{revoke:o,proxy:a}=Proxy.revocable(n,s);return i.draft_=a,i.revoke_=o,[a,i]}var Hn={get(t,e){if(e===Pe)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(!oo(n,e,t.type_))return Kh(t,n,e);let s=n[e];if(t.finalized_||!rt(s)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&Nh(e))return s;if(s===lo(t.base_,e)||Wh(t,e,s)){Nn(t);let o=t.type_===1?+e:e,a=yo(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=lo(Qt(t),e),s=n?.[Pe];if(s&&s.base_===r)return t.copy_[e]=r,t.assigned_.delete(e),!0;if(Mh(r,n)&&(r!==void 0||oo(t.base_,e,t.type_)))return!0;Nn(t),go(t)}return t.copy_[e]===r&&(r!==void 0||oo(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),jh(t,e,r)),!0},deleteProperty(t,e){return Nn(t),lo(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),go(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=Qt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[Mn]:!0,[co]:t.type_!==1||e!=="length",[Bn]:i[Bn],[ji]:r[e]}},defineProperty(){At(11)},getPrototypeOf(t){return li(t.base_)},setPrototypeOf(){At(12)}},Wi={};for(let t in Hn){let e=Hn[t];Wi[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}Wi.deleteProperty=function(t,e){return Wi.set.call(this,t,e,void 0)};Wi.set=function(t,e,r){return Hn.set.call(this,t[0],e,r,t[0])};function lo(t,e){let r=t[Pe];return(r?Qt(r):t)[e]}function Wh(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||!rt(r)||r[Pe]?!1:t.baseRefs_.has(r)}function Kh(t,e,r){let i=sc(e,r);return i?ji in i?i[ji]:i.get?.call(t.draft_):void 0}function sc(t,e){if(!(e in t))return;let r=li(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=li(r)}}function go(t){t.modified_||(t.modified_=!0,t.parent_&&go(t.parent_))}function Nn(t){t.copy_||(t.assigned_=new Map,t.copy_=po(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Gh=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(ai(e)&&!ai(r)){let s=r;r=e;let o=this;return function(l=s,...u){return o.produce(l,d=>r.call(this,d,...u))}}ai(r)||At(6),i!==void 0&&!ai(i)&&At(7);let n;if(rt(e)){let s=Ql(this),o=yo(s,e,void 0),a=!0;try{n=r(o),a=!1}finally{a?fo(s):mo(s)}return Gl(s,i),Yl(n,s)}else if(!e||!bo(e)){if(n=r(e),n===void 0&&(n=e),n===Zl&&(n=void 0),this.autoFreeze_&&Gn(n,!0),i){let s=[],o=[];Pr(ho).generateReplacementPatches_(e,n,{patches_:s,inversePatches_:o}),i(s,o)}return n}else At(1,e)},this.produceWithPatches=(e,r)=>{if(ai(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]},ao(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),ao(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),ao(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){rt(t)||At(8),Pt(t)&&(t=oc(t));let e=Ql(this),r=yo(e,t,void 0);return r[Pe].isManual_=!0,mo(e),r}finishDraft(t,e){let r=t&&t[Pe];(!r||!r.isManual_)&&At(9);let{scope_:i}=r;return Gl(i,e),Yl(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let n=e[r];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}r>-1&&(e=e.slice(r+1));let i=Pr(ho).applyPatches_;return Pt(t)?i(t,e):this.produce(t,n=>i(n,e))}};function yo(t,e,r,i){let[n,s]=Kn(e)?Pr(zn).proxyMap_(e,r):Gi(e)?Pr(zn).proxySet_(e,r):qh(e,r);return(r?.scope_??tc()).drafts_.push(n),s.callbacks_=r?.callbacks_??[],s.key_=i,r&&i!==void 0?Hh(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 oc(t){return Pt(t)||At(10,t),ac(t)}function ac(t){if(!rt(t)||Qn(t))return t;let e=t[Pe],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=po(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=po(t,!0);let n=r;return Gi(r)&&(r=new Set),qn(n,(s,o)=>{Un(r,s,ac(o))},i),e&&(e.finalized_=!1),r}var Qh=globalThis.Iterator,_g=typeof Qh?.from=="function";var Yh=new Gh,xo=Yh.produce;function lc(t){return({dispatch:r,getState:i})=>n=>s=>typeof s=="function"?s(r,i,t):n(s)}var cc=lc(),uc=lc;var Xh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Hi:Hi.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Zh=t=>t&&typeof t.match=="function";function ar(t,e){function r(...i){if(e){let n=e(...i);if(!n)throw new Error(Mt(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=>Hl(i)&&i.type===t,r}var mc=class Qi extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Qi.prototype)}static get[Symbol.species](){return Qi}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Qi(...e[0].concat(this)):new Qi(...e.concat(this))}};function dc(t){return rt(t)?xo(t,()=>{}):t}function Xn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Jh(t){return typeof t=="boolean"}var ef=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:s=!0}=e??{},o=new mc;return r&&(Jh(r)?o.push(cc):o.push(uc(r.extraArgument))),o},tf="RTK_autoBatch";var pc=t=>e=>{setTimeout(e,t)},rf=(t,e)=>r=>{let i=!1,n,s,o=()=>{i||(i=!0,cancelAnimationFrame(n),clearTimeout(s),r())};n=t(o),s=setTimeout(o,e)},nf=(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?rf(window.requestAnimationFrame,100):pc(10):t.type==="callback"?t.queueNotification:pc(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?.[tf],s=!n,s&&(o||(o=!0,l(u))),i.dispatch(d)}finally{n=!0}}})},sf=t=>function(r){let{autoBatch:i=!0}=r??{},n=new mc(t);return i&&n.push(nf(typeof i=="object"?i:void 0)),n};function gc(t){let e=ef(),{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(Dn(r))l=so(r);else throw new Error(Mt(1));let u;typeof i=="function"?u=i(e):u=e();let d=Hi;n&&(d=Xh({trace:!1,...typeof n=="object"&&n}));let p=Vl(...u),h=sf(p),b=typeof a=="function"?a(h):h(),S=d(...b);return no(l,o,S)}function yc(t){let e={},r=[],i,n={addCase(s,o){let a=typeof s=="string"?s:s.type;if(!a)throw new Error(Mt(28));if(a in e)throw new Error(Mt(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 of(t){return typeof t=="function"}function af(t,e){let[r,i,n]=yc(e),s;if(of(t))s=()=>dc(t());else{let a=dc(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(Pt(d)){let h=p(d,l);return h===void 0?d:h}else{if(rt(d))return xo(d,h=>p(h,l));{let h=p(d,l);if(h===void 0){if(d===null)return d;throw new Error(Mt(9))}return h}}return d},a)}return o.getInitialState=s,o}var lf=(t,e)=>Zh(t)?t.match(e):t(e);function cf(...t){return e=>t.some(r=>lf(r,e))}var uf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",df=(t=21)=>{let e="",r=t;for(;r--;)e+=uf[Math.random()*64|0];return e},pf=["name","message","stack","code"],So=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},hc=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},hf=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of pf)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},fc="External signal was aborted",ff=(()=>{function t(e,r,i){let n=ar(e+"/fulfilled",(l,u,d,p)=>({payload:l,meta:{...p||{},arg:d,requestId:u,requestStatus:"fulfilled"}})),s=ar(e+"/pending",(l,u,d)=>({payload:void 0,meta:{...d||{},arg:u,requestId:l,requestStatus:"pending"}})),o=ar(e+"/rejected",(l,u,d,p,h)=>({payload:p,error:(i&&i.serializeError||hf)(l||"Rejected"),meta:{...h||{},arg:d,requestId:u,rejectedWithValue:p!==void 0,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:u}={}){return(d,p,h)=>{let b=i?.idGenerator?i.idGenerator(l):df(),S=new AbortController,R,v;function $(E){v=E,S.abort()}u&&(u.aborted?$(fc):u.addEventListener("abort",()=>$(fc),{once:!0}));let j=(async function(){let E;try{let A=i?.condition?.(l,{getState:p,extra:h});if(gf(A)&&(A=await A),A===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(S.signal.aborted)throw{name:"AbortError",message:v||"Aborted"};let G=new Promise((z,ve)=>{R=()=>{ve({name:"AbortError",message:v||"Aborted"})},S.signal.addEventListener("abort",R,{once:!0})});d(s(b,l,i?.getPendingMeta?.({requestId:b,arg:l},{getState:p,extra:h}))),E=await Promise.race([G,Promise.resolve(r(l,{dispatch:d,getState:p,extra:h,requestId:b,signal:S.signal,abort:$,rejectWithValue:((z,ve)=>new So(z,ve)),fulfillWithValue:((z,ve)=>new hc(z,ve))})).then(z=>{if(z instanceof So)throw z;return z instanceof hc?n(z.payload,b,l,z.meta):n(z,b,l)})])}catch(A){E=A instanceof So?o(null,b,l,A.payload,A.meta):o(A,b,l)}finally{R&&S.signal.removeEventListener("abort",R)}return i&&!i.dispatchConditionRejection&&o.match(E)&&E.meta.condition||d(E),E})();return Object.assign(j,{abort:$,requestId:b,arg:l,unwrap(){return j.then(mf)}})}}return Object.assign(a,{pending:s,rejected:o,fulfilled:n,settled:cf(o,n),typePrefix:e})}return t.withTypes=()=>t,t})();function mf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function gf(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var bc=Symbol.for("rtk-slice-createasyncthunk"),Pg={[bc]:ff};function yf(t,e){return`${t}/${e}`}function bf({creators:t}={}){let e=t?.asyncThunk?.[bc];return function(i){let{name:n,reducerPath:s=n}=i;if(!n)throw new Error(Mt(11));typeof process<"u";let o=(typeof i.reducers=="function"?i.reducers(xf()):i.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(E,A){let G=typeof E=="string"?E:E.type;if(!G)throw new Error(Mt(12));if(G in l.sliceCaseReducersByType)throw new Error(Mt(13));return l.sliceCaseReducersByType[G]=A,u},addMatcher(E,A){return l.sliceMatchers.push({matcher:E,reducer:A}),u},exposeAction(E,A){return l.actionCreators[E]=A,u},exposeCaseReducer(E,A){return l.sliceCaseReducersByName[E]=A,u}};a.forEach(E=>{let A=o[E],G={reducerName:E,type:yf(n,E),createNotation:typeof i.reducers=="function"};Ef(A)?Cf(G,A,u,e):Sf(G,A,u)});function d(){let[E={},A=[],G=void 0]=typeof i.extraReducers=="function"?yc(i.extraReducers):[i.extraReducers],z={...E,...l.sliceCaseReducersByType};return af(i.initialState,ve=>{for(let De in z)ve.addCase(De,z[De]);for(let De of l.sliceMatchers)ve.addMatcher(De.matcher,De.reducer);for(let De of A)ve.addMatcher(De.matcher,De.reducer);G&&ve.addDefaultCase(G)})}let p=E=>E,h=new Map,b=new WeakMap,S;function R(E,A){return S||(S=d()),S(E,A)}function v(){return S||(S=d()),S.getInitialState()}function $(E,A=!1){function G(ve){let De=ve[E];return typeof De>"u"&&A&&(De=Xn(b,G,v)),De}function z(ve=p){return Xn(Xn(h,A,()=>new WeakMap),ve,()=>{let De={};for(let[mn,ct]of Object.entries(i.selectors??{}))De[mn]=vf(ct,ve,()=>Xn(b,ve,v),A);return De})}return{reducerPath:E,getSelectors:z,get selectors(){return z(G)},selectSlice:G}}let j={name:n,reducer:R,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:v,...$(s),injectInto(E,{reducerPath:A,...G}={}){let z=A??s;return E.inject({reducerPath:z,reducer:R},G),{...j,...$(z,!0)}}};return j}}function vf(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 vc=bf();function xf(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function Sf({type:t,reducerName:e,createNotation:r},i,n){let s,o;if("reducer"in i){if(r&&!Af(i))throw new Error(Mt(17));s=i.reducer,o=i.prepare}else s=i;n.addCase(t,s).exposeCaseReducer(e,s).exposeAction(e,o?ar(t,o):ar(t))}function Ef(t){return t._reducerDefinitionType==="asyncThunk"}function Af(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Cf({type:t,reducerName:e},r,i,n){if(!n)throw new Error(Mt(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||Zn,pending:a||Zn,rejected:l||Zn,settled:u||Zn})}function Zn(){}var xc="listener",Sc="completed",Ec="cancelled",Mg=`task-${Ec}`,Ng=`task-${Sc}`,Fg=`${xc}-${Ec}`,Bg=`${xc}-${Sc}`;var{assign:Ac}=Object;var Eo="listenerMiddleware";var wf=Ac(ar(`${Eo}/add`),{withTypes:()=>wf}),Ug=ar(`${Eo}/removeAll`),Of=Ac(ar(`${Eo}/remove`),{withTypes:()=>Of});function Mt(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var _f=_n(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)}}}),Jn=class extends _f(Object){};window.ftReduxStores||(window.ftReduxStores={});var Cc=class t extends Jn{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($n(s))return s;if(n==null)return;let o=vc({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),a=gc({reducer:(l,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let d=Ui(o.getInitialState());for(let p of u.keeping)d[p]=(l??d)[p];return d}else if(typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...u.overwrites};return o.reducer(l,u)}});return window.ftReduxStores[n.name]=new t(o,a,n.eventBus,n.deprecatedKeys)}constructor(e,r,i,n){super(),this.reduxSlice=e,this.reduxStore=r,this.deprecatedKeys=n,this.isFtReduxStore=!0,this.commands=new Rn,this.injectInto=(o,a)=>this.reduxSlice.injectInto(o,a),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let s=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,a,l)=>{let u=a,d=o[u];return d?(...p)=>{let h=d(...p.map(s));return this.reduxStore.dispatch(h),h}:p=>{let h=u,b=this.getState()[h];ni(b,p)||this.setState({[h]:s(p)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var es=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 ts=c(f()),Rf="ft-app-info",lr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};lr.eventName="authentication-change";var Yi=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Yi.eventName="ui-locale-changed";var Tf={session:(t,e)=>{(0,ts.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>O.dispatchEvent(new lr(e.payload)),0))}},O=ts.FtReduxStore.get({name:Rf,reducers:Tf,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var wc=c(f()),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},gy=(0,wc.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(O)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var 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=>es.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return rs([(0,Ao.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),rs([(0,Ao.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),rs([ro({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),rs([ro({store:O.name})],e.prototype,"uiLocale",void 0),e});var Oc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Oc||(Oc={}));var _c;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(_c||(_c={}));var Rc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Rc||(Rc={}));var Tc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Tc||(Tc={}));var kc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(kc||(kc={}));var Lc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Lc||(Lc={}));var $c;(function(t){t.PUBLISHED="PUBLISHED",t.AI="AI"})($c||($c={}));var Ic;(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"})(Ic||(Ic={}));var Dc;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Dc||(Dc={}));var Pc;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Pc||(Pc={}));var Mc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER",t.DOC_DIFF="DOC_DIFF"})(Mc||(Mc={}));var Nc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(Nc||(Nc={}));var Fc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Fc||(Fc={}));var Bc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Bc||(Bc={}));var Uc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Uc||(Uc={}));var zc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(zc||(zc={}));var Vc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Vc||(Vc={}));var Co;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Co||(Co={}));var Hc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Hc||(Hc={}));var jc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(jc||(jc={}));var wo;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(wo||(wo={}));var qc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(qc||(qc={}));var Wc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Wc||(Wc={}));var Kc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Kc||(Kc={}));var Gc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Gc||(Gc={}));var Qc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Qc||(Qc={}));var Oo;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Oo||(Oo={}));var Yc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Yc||(Yc={}));var le;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(le||(le={}));var dt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(dt||(dt={}));var Xc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Xc||(Xc={}));var Zc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Zc||(Zc={}));var Jc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Jc||(Jc={}));var eu;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(eu||(eu={}));var tu;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(tu||(tu={}));var ru;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(ru||(ru={}));var iu;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(iu||(iu={}));var nu;(function(t){t.CHAT="CHAT",t.COMPLETION="COMPLETION",t.RAG="RAG",t.AGENT="AGENT"})(nu||(nu={}));var su;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(su||(su={}));var ou;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(ou||(ou={}));var au;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(au||(au={}));var lu;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(lu||(lu={}));var cu;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(cu||(cu={}));var kf={[le.PERSONAL_BOOK_SHARE_USER]:[le.PERSONAL_BOOK_USER],[le.HTML_EXPORT_USER]:[le.PERSONAL_BOOK_USER],[le.PDF_EXPORT_USER]:[le.PERSONAL_BOOK_USER],[le.KHUB_ADMIN]:[le.CONTENT_PUBLISHER],[le.ADMIN]:[le.KHUB_ADMIN,le.USERS_ADMIN,le.PORTAL_ADMIN,le.BEHAVIOR_DATA_USER],[le.GENERATIVE_AI_EXPORT_USER]:[le.GENERATIVE_AI_USER]};function uu(t,e){return t===e||(kf[t]??[]).some(r=>uu(r,e))}function is(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>uu(i,e))}function du(t,...e){return t==null?!1:e.some(r=>is(t,r))}var ls=c(f());var _o=c(f());var Mr=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 ci=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Mr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Mr.await()}};var Qe=class extends ci{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 _o.CacheRegistry,this.cache=e?n.commonCache:new _o.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var ns=class extends Qe{async listMySearches(){let{session:e}=O.getState();return is(e,le.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var ss=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 os=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 as=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 Lf="ft-user-assets",$f={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(dt).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:n}=e.payload;To(t,r,[...Ro(t,r),n]),pu(t,r,1,i),hu(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;To(t,r,Ro(t,r).map(n=>n.id===i.id?i:n)),hu(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;To(t,r,Ro(t,r).filter(s=>s.id!==n)),pu(t,r,-1,i)}},fu={[dt.SEARCHES]:"savedSearches",[dt.BOOKMARKS]:"bookmarks",[dt.BOOKS]:void 0,[dt.COLLECTIONS]:void 0},Ro=(t,e)=>{var r;let i=fu[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},To=(t,e,r)=>{let i=fu[e];i&&(t[i]=r)},pu=(t,e,r,i)=>{let 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)}},hu=(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=ls.FtReduxStore.get({name:Lf,reducers:$f,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(dt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),ko=class{constructor(e=new os,r=new as){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=O.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ss,this.savedSearchesService=new ns,O.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=O.getState();(0,ls.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)}}},If=new ko;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=If);var Lo=class{addCommand(e,r=!1){O.commands.add(e,r)}consumeCommand(e){return O.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Lo;var pt=c(f());var mu,ui=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Df=Symbol("clearAfterUnitTest"),cs=class extends(0,pt.withEventBus)(Qe){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[mu]=()=>{this.defaultMessages={},this.cache=new pt.CacheRegistry,this.listeners={}},this.currentUiLocale=O.getState().uiLocale,O.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=O.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let 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 ui({loadedContexts:e})),this.dispatchEvent(new ui({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new ui({loadedContexts:[e]})),this.dispatchEvent(new ui({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,pt.delay)(0).then(()=>i()).catch(()=>null)))}};mu=Df;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends cs{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends cs{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var di=window.FluidTopicsI18nService,us=window.FluidTopicsCustomI18nService;var gu=c(f()),$o=class{highlightHtml(e,r,i){(0,gu.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new $o;var yu=c(f());var Io=class{isDate(e){var r,i,n,s;return(s=(i=((n=(r=O.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===e))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1}format(e,r){var i,n,s,o;if(e==null)return"";try{return yu.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 Io;var bu=c(f());var Yt=class{static get(e,r,{baseUrl:i,localesConfiguration:n,availableContentLocales:s}=O.getState()){var o;if(r==="all"&&n?.allLanguagesAllowed)r=void 0;else if(!r||s.length>0&&!s.some(a=>a.lang===r)){let a=n?.defaultLocales.defaultContentLocale;r=a?`${a.lang}-${a.region}`:(o=s[0])===null||o===void 0?void 0:o.lang}return new bu.SearchPlaceConverter(i,e??20,n?.allLanguagesAllowed,r,s)}};var Do=class{urlToSearchRequest(e){return Yt.get().parse(e)}searchRequestToUrl(e){return Yt.get().serialize(e)}};window.FluidTopicsUrlService=new Do;var Xt=c(f());var Nr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Nr.eventName="before-location-change";var Fr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Fr.eventName="change";var Po=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},vu=new Po;var ds=class t extends Xt.WithEventBus{static build(){return new t(window.history,vu,()=>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,Xt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Fr(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[s,o,a])=>{let l=new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin!=="null"?window.location.origin:void 0),u=new Nr(l);this.dispatchEvent(u);let d=r(),p={...d===this.currentIndex?this.currentState:void 0,...s,index:d,href:u.detail.nextLocation.href};i.apply(n,[p,o,p.href]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addBeforeLocationChangeListener(e){this.addEventListener(Nr.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Nr.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Fr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Fr.eventName,e)}currentItem(){return(0,Xt.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Xt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Xt.deepCopy)(r.find(i=>e(i)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,Xt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let 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=ds.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)});var xu=c(x());var Su=xu.css`
|
|
273
|
-
`;var
|
|
272
|
+
`;var il=["top","right","bottom","left"],rl=["start","end"],Gs=il.reduce((t,e)=>t.concat(e,e+"-"+rl[0],e+"-"+rl[1]),[]),$i=Math.min,ir=Math.max,Ii=Math.round;var It=t=>({x:t,y:t}),nh={left:"right",right:"left",bottom:"top",top:"bottom"};function nl(t,e,r){return ir(t,$i(e,r))}function vn(t,e){return typeof t=="function"?t(e):t}function Di(t){return t.split("-")[0]}function nr(t){return t.split("-")[1]}function Qs(t){return t==="x"?"y":"x"}function Ys(t){return t==="y"?"height":"width"}function xn(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Xs(t){return Qs(xn(t))}function sl(t,e,r){r===void 0&&(r=!1);let i=nr(t),n=Xs(t),s=Ys(n),o=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=Ks(o)),[o,Ks(o)]}function ol(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Ks(t){let e=Di(t);return nh[e]+t.slice(e.length)}function sh(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 al(t){return typeof t!="number"?sh(t):{top:t,right:t,bottom:t,left:t}}function Tr(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 ll(t,e,r){let{reference:i,floating:n}=t,s=xn(e),o=Xs(e),a=Ys(o),l=Di(e),u=s==="y",p=i.x+i.width/2-n.width/2,d=i.y+i.height/2-n.height/2,h=i[a]/2-n[a]/2,b;switch(l){case"top":b={x:p,y:i.y-n.height};break;case"bottom":b={x:p,y:i.y+i.height};break;case"right":b={x:i.x+i.width,y:d};break;case"left":b={x:i.x-n.width,y:d};break;default:b={x:i.x,y:i.y}}let E=nr(e);return E&&(b[o]+=h*(E==="end"?1:-1)*(r&&u?-1:1)),b}async function cl(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:p="viewport",elementContext:d="floating",altBoundary:h=!1,padding:b=0}=vn(e,t),E=al(b),x=a[h?d==="floating"?"reference":"floating":d],F=Tr(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:p,strategy:l})),W=d==="floating"?{x:i,y:n,width:o.floating.width,height:o.floating.height}:o.reference,C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),D=await(s.isElement==null?void 0:s.isElement(C))&&await(s.getScale==null?void 0:s.getScale(C))||{x:1,y:1},Y=Tr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:W,offsetParent:C,strategy:l}):W);return{top:(F.top-Y.top+E.top)/D.y,bottom:(Y.bottom-F.bottom+E.bottom)/D.y,left:(F.left-Y.left+E.left)/D.x,right:(Y.right-F.right+E.right)/D.x}}var oh=50,ul=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:s=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:cl},l=await(o.isRTL==null?void 0:o.isRTL(e)),u=await o.getElementRects({reference:t,floating:e,strategy:n}),{x:p,y:d}=ll(u,i,l),h=i,b=0,E={};for(let M=0;M<s.length;M++){let x=s[M];if(!x)continue;let{name:F,fn:W}=x,{x:C,y:D,data:Y,reset:be}=await W({x:p,y:d,initialPlacement:i,placement:h,strategy:n,middlewareData:E,rects:u,platform:a,elements:{reference:t,floating:e}});p=C??p,d=D??d,E[F]={...E[F],...Y},be&&b<oh&&(b++,typeof be=="object"&&(be.placement&&(h=be.placement),be.rects&&(u=be.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:n}):be.rects),{x:p,y:d}=ll(u,h,l)),M=-1)}return{x:p,y:d,placement:h,strategy:n,middlewareData:E}};function ah(t,e,r){return(t?[...r.filter(n=>nr(n)===t),...r.filter(n=>nr(n)!==t)]:r.filter(n=>Di(n)===n)).filter(n=>t?nr(n)===t||(e?ol(n)!==n:!1):!0)}var dl=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:p=!1,alignment:d,allowedPlacements:h=Gs,autoAlignment:b=!0,...E}=vn(t,e),M=d!==void 0||h===Gs?ah(d||null,b,h):h,x=((r=o.autoPlacement)==null?void 0:r.index)||0,F=M[x];if(F==null)return{};if(a!==F)return{reset:{placement:M[0]}};let W=await l.detectOverflow(e,E),C=sl(F,s,await(l.isRTL==null?void 0:l.isRTL(u.floating))),D=[W[Di(F)],W[C[0]],W[C[1]]],Y=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:F,overflows:D}],be=M[x+1];if(be)return{data:{index:x+1,overflows:Y},reset:{placement:be}};let Je=Y.map(ct=>{let wi=nr(ct.placement);return[ct.placement,wi&&p?ct.overflows.slice(0,2).reduce((qp,Wp)=>qp+Wp,0):ct.overflows[0],ct.overflows]}).sort((ct,wi)=>ct[1]-wi[1]),mn=((n=Je.filter(ct=>ct[2].slice(0,nr(ct[0])?2:3).every(wi=>wi<=0))[0])==null?void 0:n[0])||Je[0][0];return mn!==a?{data:{index:x+1,overflows:Y},reset:{placement:mn}}:{}}}};var pl=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:W=>{let{x:C,y:D}=W;return{x:C,y:D}}},...u}=vn(t,e),p={x:r,y:i},d=await s.detectOverflow(e,u),h=xn(n),b=Qs(h),E=p[b],M=p[h],x=(W,C)=>nl(C+d[W==="y"?"top":"left"],C,C-d[W==="y"?"bottom":"right"]);o&&(E=x(b,E)),a&&(M=x(h,M));let F=l.fn({...e,[b]:E,[h]:M});return{...F,data:{x:F.x-r,y:F.y-i,enabled:{[b]:o,[h]:a}}}}}};function En(){return typeof window<"u"}function Lr(t){return fl(t)?(t.nodeName||"").toLowerCase():"#document"}function Ke(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Kt(t){var e;return(e=(fl(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function fl(t){return En()?t instanceof Node||t instanceof Ke(t).Node:!1}function St(t){return En()?t instanceof Element||t instanceof Ke(t).Element:!1}function Gt(t){return En()?t instanceof HTMLElement||t instanceof Ke(t).HTMLElement:!1}function hl(t){return!En()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ke(t).ShadowRoot}function Pi(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=Et(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function ml(t){return/^(table|td|th)$/.test(Lr(t))}function Mi(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var lh=/transform|translate|scale|rotate|perspective|filter/,ch=/paint|layout|strict|content/,kr=t=>!!t&&t!=="none",Zs;function ei(t){let e=St(t)?Et(t):t;return kr(e.transform)||kr(e.translate)||kr(e.scale)||kr(e.rotate)||kr(e.perspective)||!An()&&(kr(e.backdropFilter)||kr(e.filter))||lh.test(e.willChange||"")||ch.test(e.contain||"")}function gl(t){let e=sr(t);for(;Gt(e)&&!ti(e);){if(ei(e))return e;if(Mi(e))return null;e=sr(e)}return null}function An(){return Zs==null&&(Zs=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Zs}function ti(t){return/^(html|body|#document)$/.test(Lr(t))}function Et(t){return Ke(t).getComputedStyle(t)}function Ni(t){return St(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function sr(t){if(Lr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||hl(t)&&t.host||Kt(t);return hl(e)?e.host:e}function yl(t){let e=sr(t);return ti(e)?(t.ownerDocument||t).body:Gt(e)&&Pi(e)?e:yl(e)}function Sn(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=yl(t),s=n===((i=t.ownerDocument)==null?void 0:i.body),o=Ke(n);if(s){let a=Cn(o);return e.concat(o,o.visualViewport||[],Pi(n)?n:[],a&&r?Sn(a):[])}else return e.concat(n,Sn(n,[],r))}function Cn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function xl(t){let e=Et(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=Gt(t),s=n?t.offsetWidth:r,o=n?t.offsetHeight:i,a=Ii(r)!==s||Ii(i)!==o;return a&&(r=s,i=o),{width:r,height:i,$:a}}function Sl(t){return St(t)?t:t.contextElement}function ri(t){let e=Sl(t);if(!Gt(e))return It(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:s}=xl(e),o=(s?Ii(r.width):r.width)/i,a=(s?Ii(r.height):r.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var uh=It(0);function El(t){let e=Ke(t);return!An()||!e.visualViewport?uh:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function dh(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Ke(t)}function Fi(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),s=Sl(t),o=It(1);e&&(i?St(i)&&(o=ri(i)):o=ri(t));let a=dh(s,r,i)?El(s):It(0),l=(n.left+a.x)/o.x,u=(n.top+a.y)/o.y,p=n.width/o.x,d=n.height/o.y;if(s&&i){let h=Ke(s),b=St(i)?Ke(i):i,E=h,M=Cn(E);for(;M&&b!==E;){let x=ri(M),F=M.getBoundingClientRect(),W=Et(M),C=F.left+(M.clientLeft+parseFloat(W.paddingLeft))*x.x,D=F.top+(M.clientTop+parseFloat(W.paddingTop))*x.y;l*=x.x,u*=x.y,p*=x.x,d*=x.y,l+=C,u+=D,E=Ke(M),M=Cn(E)}}return Tr({width:p,height:d,x:l,y:u})}function wn(t,e){let r=Ni(t).scrollLeft;return e?e.left+r:Fi(Kt(t)).left+r}function Al(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-wn(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function ph(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,s=n==="fixed",o=Kt(i),a=e?Mi(e.floating):!1;if(i===o||a&&s)return r;let l={scrollLeft:0,scrollTop:0},u=It(1),p=It(0),d=Gt(i);if((d||!s)&&((Lr(i)!=="body"||Pi(o))&&(l=Ni(i)),d)){let b=Fi(i);u=ri(i),p.x=b.x+i.clientLeft,p.y=b.y+i.clientTop}let h=o&&!d&&!s?Al(o,l):It(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+p.x+h.x,y:r.y*u.y-l.scrollTop*u.y+p.y+h.y}}function hh(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function fh(t){let e=Ni(t),r=t.ownerDocument.body,i=ir(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=ir(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+wn(t),o=-e.scrollTop;return Et(r).direction==="rtl"&&(s+=ir(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:s,y:o}}var mh=25;function gh(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=Ke(t),s=Kt(t),o=n.visualViewport,a=s.clientWidth,l=s.clientHeight,u=0,p=0;if(o){let h=!An()||e==="fixed";i?h||(u=-o.offsetLeft,p=-o.offsetTop):(a=o.width,l=o.height,h&&(u=o.offsetLeft,p=o.offsetTop))}if(wn(s)<=0){let h=s.ownerDocument,b=h.body,E=getComputedStyle(b),M=h.compatMode==="CSS1Compat"&&parseFloat(E.marginLeft)+parseFloat(E.marginRight)||0,x=Math.abs(s.clientWidth-b.clientWidth-M),F=getComputedStyle(s).scrollbarGutter==="stable both-edges"?x/2:x;F<=mh&&(a-=F)}return{width:a,height:l,x:u,y:p}}function yh(t,e){let r=Fi(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,s=ri(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 bl(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=gh(t,r,e);else if(e==="document")i=fh(Kt(t));else if(St(e))i=yh(e,r);else{let n=El(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return Tr(i)}function bh(t,e){let r=e.get(t);if(r)return r;let i=Sn(t,[],!1).filter(a=>St(a)&&Lr(a)!=="body"),n=null,s=Et(t).position==="fixed",o=s?sr(t):t;for(;St(o)&&!ti(o);){let a=Et(o),l=ei(o),u=n?n.position:s?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&a.position==="static")?i=i.filter(d=>d!==o):n=a,o=sr(o)}return e.set(t,i),i}function vh(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,o=[...r==="clippingAncestors"?Mi(e)?[]:bh(e,this._c):[].concat(r),i],a=bl(e,o[0],n),l=a.top,u=a.right,p=a.bottom,d=a.left;for(let h=1;h<o.length;h++){let b=bl(e,o[h],n);l=ir(b.top,l),u=$i(b.right,u),p=$i(b.bottom,p),d=ir(b.left,d)}return{width:u-d,height:p-l,x:d,y:l}}function xh(t){let{width:e,height:r}=xl(t);return{width:e,height:r}}function Sh(t,e,r){let i=Gt(e),n=Kt(e),s=r==="fixed",o=Fi(t,!0,s,e),a={scrollLeft:0,scrollTop:0},l=It(0);if((i||!s)&&((Lr(e)!=="body"||Pi(n))&&(a=Ni(e)),i)){let h=Fi(e,!0,s,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}!i&&n&&(l.x=wn(n));let u=n&&!i&&!s?Al(n,a):It(0),p=o.left+a.scrollLeft-l.x-u.x,d=o.top+a.scrollTop-l.y-u.y;return{x:p,y:d,width:o.width,height:o.height}}function Js(t){return Et(t).position==="static"}function vl(t,e){if(!Gt(t)||Et(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Kt(t)===r&&(r=r.ownerDocument.body),r}function Cl(t,e){let r=Ke(t);if(Mi(t))return r;if(!Gt(t)){let n=sr(t);for(;n&&!ti(n);){if(St(n)&&!Js(n))return n;n=sr(n)}return r}let i=vl(t,e);for(;i&&ml(i)&&Js(i);)i=vl(i,e);return i&&ti(i)&&Js(i)&&!ei(i)?r:i||gl(t)||r}var Eh=async function(t){let e=this.getOffsetParent||Cl,r=this.getDimensions,i=await r(t.floating);return{reference:Sh(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Ah(t){return Et(t).direction==="rtl"}var On={convertOffsetParentRelativeRectToViewportRelativeRect:ph,getDocumentElement:Kt,getClippingRect:vh,getOffsetParent:Cl,getElementRects:Eh,getClientRects:hh,getDimensions:xh,getScale:ri,isElement:St,isRTL:Ah};var wl=dl,Ol=pl;var _l=(t,e,r)=>{let i=new Map,n=r??{},s={...On,...n.platform,_c:i};return ul(t,e,{...n,platform:s})};function Rl(t){return Ch(t)}function eo(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Ch(t){for(let e=t;e;e=eo(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=eo(t);e;e=eo(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||ei(r)||e.tagName==="BODY"))return e}return null}async function Tl(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},_l(t,e,{strategy:i.strategy,platform:{...On,getOffsetParent:n=>On.getOffsetParent(n,Rl)},middleware:[Ol({crossAxis:!0}),wl({allowedPlacements:[i.placement]})]})}var pi=c(f());var Eo=c(z());var kl=c(z(),1);var to=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},wh=t=>({fromAttribute:e=>{if(e==null)return Bi(t);try{return JSON.parse(e)}catch{return Bi(t)}},toAttribute:e=>JSON.stringify(e)});function Ll(t,e){return(0,kl.property)({type:Object,converter:wh(t),hasChanged:Ui,...e??{}})}function Oh(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(!ii(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(!ii(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(!ii(t[o],e[o]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function ii(t,e){try{return Oh(t,e)}catch{return!1}}function Ui(t,e){return!ii(t,e)}function Bi(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function _n(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 $l=c(z(),1);var ro=t=>{let e=t??{};return(r,i)=>{var n;let s={hasChanged:Ui,attribute:!1,...e};(0,$l.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 Rn=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var $r=c(z(),1);var Tn=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 Ln=c(v(),1);var kn=class extends Ln.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return(0,Ln.adoptStyles)(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){to(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};function Il(t,e,...r){var i;let 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},Nl,Dl=Symbol("constructorPrototype"),Pl=Symbol("constructorName"),Fl=Symbol("exportpartsDebouncer"),Ml=Symbol("dynamicDependenciesLoaded"),ni=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};ni.eventName="exportparts-updated";var Dt=class extends kn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Nl]=new Tn(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[Fl].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[Ml]||(r[Ml]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(ni.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(ni.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 ni)})}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=Il(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 p=new Set;for(let h of(s=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&s!==void 0?s:[]){let b=(o=(i=h.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&o!==void 0?o:[],E=(a=(n=h.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(x=>x.split(":")[1]))!==null&&a!==void 0?a:[],M=[...b,...E].filter(l).map(x=>x.trim());for(let x of M)p.add(x)}if(p.size===0){this.exportparts=void 0;return}let d=[...p.values()].flatMap(h=>u.map(b=>`${h}:${b}--${h}`));this.exportparts=[...this.part,...d].join(", ")}};Nl=Fl;si([(0,$r.property)()],Dt.prototype,"exportpartsPrefix",void 0);si([Ll([])],Dt.prototype,"exportpartsPrefixes",void 0);si([(0,$r.property)({reflect:!0})],Dt.prototype,"exportparts",void 0);si([(0,$r.property)()],Dt.prototype,"customStylesheet",void 0);si([(0,$r.property)()],Dt.prototype,"elementToFocus",void 0);si([(0,$r.state)()],Dt.prototype,"useAdoptedStyleSheets",void 0);function $n(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var zi=Symbol("internalReduxEventsUnsubscribers"),or=Symbol("internalStoresUnsubscribers"),Ir=Symbol("internalStores"),_h=_n(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[Ir].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ir].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[Ir].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Ir].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[Ir].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Ir].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let u=this.getStore(o.store);u&&(o.store?this[or].has(o.store):this[or].size>0)&&(this[a]=o.selector(u.getState(),this))}})}subscribeToStore(o,a){var l,u;this[or].set(o,a.subscribe(()=>this.updateFromStores())),this[zi].set(o,[]),$n(a)&&(!((l=a.deprecatedKeys)===null||l===void 0)&&l.length&&this.reduxConstructor.reduxProperties.forEach((p,d)=>{this.getStore(p.store)===a&&a.deprecatedKeys.includes(d)&&console.warn("Element",this,"is subscribed to deprecated key",d,"in store",a.name)}),a.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,d)=>{if(typeof this[d]=="function"&&(!p.store||a.name===p.store)){let h=b=>this[d](b);a.addEventListener(p.eventName,h),this[zi].get(o).push(()=>a.removeEventListener(p.eventName,h))}}))),this.onStoreAvailable(o)}unsubscribeFromStores(){this[or].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[or].has(o)&&this[or].get(o)(),this[or].delete(o),(a=this[zi].get(o))===null||a===void 0||a.forEach(l=>l()),this[zi].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=or,r=Ir,i=zi,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Bl=class extends _h(Dt){};function _e(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var Rh=typeof Symbol=="function"&&Symbol.observable||"@@observable",Ul=Rh,io=()=>Math.random().toString(36).substring(7).split("").join("."),Th={INIT:`@@redux/INIT${io()}`,REPLACE:`@@redux/REPLACE${io()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${io()}`},In=Th;function Dn(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function no(t,e,r){if(typeof t!="function")throw new Error(_e(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(_e(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(_e(1));return r(no)(t,e)}let i=t,n=e,s=new Map,o=s,a=0,l=!1;function u(){o===s&&(o=new Map,s.forEach((x,F)=>{o.set(F,x)}))}function p(){if(l)throw new Error(_e(3));return n}function d(x){if(typeof x!="function")throw new Error(_e(4));if(l)throw new Error(_e(5));let F=!0;u();let W=a++;return o.set(W,x),function(){if(F){if(l)throw new Error(_e(6));F=!1,u(),o.delete(W),s=null}}}function h(x){if(!Dn(x))throw new Error(_e(7));if(typeof x.type>"u")throw new Error(_e(8));if(typeof x.type!="string")throw new Error(_e(17));if(l)throw new Error(_e(9));try{l=!0,n=i(n,x)}finally{l=!1}return(s=o).forEach(W=>{W()}),x}function b(x){if(typeof x!="function")throw new Error(_e(10));i=x,h({type:In.REPLACE})}function E(){let x=d;return{subscribe(F){if(typeof F!="object"||F===null)throw new Error(_e(11));function W(){let D=F;D.next&&D.next(p())}return W(),{unsubscribe:x(W)}},[Ul](){return this}}}return h({type:In.INIT}),{dispatch:h,subscribe:d,getState:p,replaceReducer:b,[Ul]:E}}function kh(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:In.INIT})>"u")throw new Error(_e(12));if(typeof r(void 0,{type:In.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(_e(13))})}function so(t){let e=Object.keys(t),r={};for(let o=0;o<e.length;o++){let a=e[o];typeof t[a]=="function"&&(r[a]=t[a])}let i=Object.keys(r),n,s;try{kh(r)}catch(o){s=o}return function(a={},l){if(s)throw s;let u=!1,p={};for(let d=0;d<i.length;d++){let h=i[d],b=r[h],E=a[h],M=b(E,l);if(typeof M>"u"){let x=l&&l.type;throw new Error(_e(14))}p[h]=M,u=u||M!==E}return u=u||i.length!==Object.keys(a).length,u?p:a}}function Vi(...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(_e(15))},o={getState:n.getState,dispatch:(l,...u)=>s(l,...u)},a=t.map(l=>l(o));return s=Vi(...a)(n.dispatch),{...n,dispatch:s}}}function Vl(t){return Dn(t)&&"type"in t&&typeof t.type=="string"}var Xl=Symbol.for("immer-nothing"),Hl=Symbol.for("immer-draftable"),De=Symbol.for("immer-state");function At(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var tt=Object,ai=tt.getPrototypeOf,Fn="constructor",jn="prototype",co="configurable",Bn="enumerable",Mn="writable",Hi="value",Pt=t=>!!t&&!!t[De];function rt(t){return t?Zl(t)||Wn(t)||!!t[Hl]||!!t[Fn]?.[Hl]||Kn(t)||Ki(t):!1}var Lh=tt[jn][Fn].toString(),jl=new WeakMap;function Zl(t){if(!t||!bo(t))return!1;let e=ai(t);if(e===null||e===tt[jn])return!0;let r=tt.hasOwnProperty.call(e,Fn)&&e[Fn];if(r===Object)return!0;if(!oi(r))return!1;let i=jl.get(r);return i===void 0&&(i=Function.toString.call(r),jl.set(r,i)),i===Lh}function qn(t,e,r=!0){Wi(t)===0?(r?Reflect.ownKeys(t):tt.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((i,n)=>e(n,i,t))}function Wi(t){let e=t[De];return e?e.type_:Wn(t)?1:Kn(t)?2:Ki(t)?3:0}var oo=(t,e,r=Wi(t))=>r===2?t.has(e):tt[jn].hasOwnProperty.call(t,e),uo=(t,e,r=Wi(t))=>r===2?t.get(e):t[e],Un=(t,e,r,i=Wi(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function $h(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Wn=Array.isArray,Kn=t=>t instanceof Map,Ki=t=>t instanceof Set,bo=t=>typeof t=="object",oi=t=>typeof t=="function",ao=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 vo=t=>t.modified_?t.copy_:t.base_;function po(t,e){if(Kn(t))return new Map(t);if(Ki(t))return new Set(t);if(Wn(t))return Array[jn].slice.call(t);let r=Zl(t);if(e===!0||e==="class_only"&&!r){let i=tt.getOwnPropertyDescriptors(t);delete i[De];let n=Reflect.ownKeys(i);for(let s=0;s<n.length;s++){let o=n[s],a=i[o];a[Mn]===!1&&(a[Mn]=!0,a[co]=!0),(a.get||a.set)&&(i[o]={[co]:!0,[Mn]:!0,[Bn]:a[Bn],[Hi]:t[o]})}return tt.create(ai(t),i)}else{let i=ai(t);if(i!==null&&r)return{...t};let n=tt.create(i);return tt.assign(n,t)}}function Gn(t,e=!1){return Qn(t)||Pt(t)||!rt(t)||(Wi(t)>1&&tt.defineProperties(t,{set:Pn,add:Pn,clear:Pn,delete:Pn}),tt.freeze(t),e&&qn(t,(r,i)=>{Gn(i,!0)},!1)),t}function Dh(){At(2)}var Pn={[Hi]:Dh};function Qn(t){return t===null||!bo(t)?!0:tt.isFrozen(t)}var zn="MapSet",ho="Patches",ql="ArrayMethods",Jl={};function Dr(t){let e=Jl[t];return e||At(0,t),e}var Wl=t=>!!Jl[t];var ji,ec=()=>ji,Ph=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Wl(zn)?Dr(zn):void 0,arrayMethodsPlugin_:Wl(ql)?Dr(ql):void 0});function Kl(t,e){e&&(t.patchPlugin_=Dr(ho),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function fo(t){mo(t),t.drafts_.forEach(Mh),t.drafts_=null}function mo(t){t===ji&&(ji=t.parent_)}var Gl=t=>ji=Ph(ji,t);function Mh(t){let e=t[De];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[De].modified_&&(fo(e),At(4)),rt(t)&&(t=Yl(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(r[De].base_,t,e)}else t=Yl(e,r);return Nh(e,t,!0),fo(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Xl?t:void 0}function Yl(t,e){if(Qn(e))return e;let r=e[De];if(!r)return Vn(e,t.handledSet_,t);if(!Yn(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 Nh(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Gn(e,r)}function tc(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Yn=(t,e)=>t.scope_===e,Fh=[];function rc(t,e,r,i){let n=Qt(t),s=t.type_;if(i!==void 0&&uo(n,i,s)===e){Un(n,i,r,s);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;qn(n,(l,u)=>{if(Pt(u)){let p=a.get(u)||[];p.push(l),a.set(u,p)}})}let o=t.draftLocations_.get(e)??Fh;for(let a of o)Un(n,a,r,s)}function Bh(t,e,r){t.callbacks_.push(function(n){let s=e;if(!s||!Yn(s,n))return;n.mapSetPlugin_?.fixSetContents(s);let o=vo(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 Uh(t,e,r){let{scope_:i}=t;if(Pt(r)){let n=r[De];Yn(n,i)&&n.callbacks_.push(function(){Nn(t);let o=vo(n);rc(t,r,o,e)})}else rt(r)&&t.callbacks_.push(function(){let s=Qt(t);t.type_===3?s.has(r)&&Vn(r,i.handledSet_,i):uo(s,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Vn(uo(t.copy_,e,t.type_),i.handledSet_,i)})}function Vn(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Pt(t)||e.has(t)||!rt(t)||Qn(t)||(e.add(t),qn(t,(i,n)=>{if(Pt(n)){let s=n[De];if(Yn(s,r)){let o=vo(s);Un(t,i,o,t.type_),tc(s)}}else rt(n)&&Vn(n,e,r)})),t}function zh(t,e){let r=Wn(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=Hn;r&&(n=[i],s=qi);let{revoke:o,proxy:a}=Proxy.revocable(n,s);return i.draft_=a,i.revoke_=o,[a,i]}var Hn={get(t,e){if(e===De)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(!oo(n,e,t.type_))return Hh(t,n,e);let s=n[e];if(t.finalized_||!rt(s)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&Ih(e))return s;if(s===lo(t.base_,e)||Vh(t,e,s)){Nn(t);let o=t.type_===1?+e:e,a=yo(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=nc(Qt(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let n=lo(Qt(t),e),s=n?.[De];if(s&&s.base_===r)return t.copy_[e]=r,t.assigned_.delete(e),!0;if($h(r,n)&&(r!==void 0||oo(t.base_,e,t.type_)))return!0;Nn(t),go(t)}return t.copy_[e]===r&&(r!==void 0||oo(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),Uh(t,e,r)),!0},deleteProperty(t,e){return Nn(t),lo(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),go(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=Qt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[Mn]:!0,[co]:t.type_!==1||e!=="length",[Bn]:i[Bn],[Hi]:r[e]}},defineProperty(){At(11)},getPrototypeOf(t){return ai(t.base_)},setPrototypeOf(){At(12)}},qi={};for(let t in Hn){let e=Hn[t];qi[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}qi.deleteProperty=function(t,e){return qi.set.call(this,t,e,void 0)};qi.set=function(t,e,r){return Hn.set.call(this,t[0],e,r,t[0])};function lo(t,e){let r=t[De];return(r?Qt(r):t)[e]}function Vh(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||!rt(r)||r[De]?!1:t.baseRefs_.has(r)}function Hh(t,e,r){let i=nc(e,r);return i?Hi in i?i[Hi]:i.get?.call(t.draft_):void 0}function nc(t,e){if(!(e in t))return;let r=ai(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=ai(r)}}function go(t){t.modified_||(t.modified_=!0,t.parent_&&go(t.parent_))}function Nn(t){t.copy_||(t.assigned_=new Map,t.copy_=po(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var jh=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(oi(e)&&!oi(r)){let s=r;r=e;let o=this;return function(l=s,...u){return o.produce(l,p=>r.call(this,p,...u))}}oi(r)||At(6),i!==void 0&&!oi(i)&&At(7);let n;if(rt(e)){let s=Gl(this),o=yo(s,e,void 0),a=!0;try{n=r(o),a=!1}finally{a?fo(s):mo(s)}return Kl(s,i),Ql(n,s)}else if(!e||!bo(e)){if(n=r(e),n===void 0&&(n=e),n===Xl&&(n=void 0),this.autoFreeze_&&Gn(n,!0),i){let s=[],o=[];Dr(ho).generateReplacementPatches_(e,n,{patches_:s,inversePatches_:o}),i(s,o)}return n}else At(1,e)},this.produceWithPatches=(e,r)=>{if(oi(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]},ao(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),ao(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),ao(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){rt(t)||At(8),Pt(t)&&(t=sc(t));let e=Gl(this),r=yo(e,t,void 0);return r[De].isManual_=!0,mo(e),r}finishDraft(t,e){let r=t&&t[De];(!r||!r.isManual_)&&At(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(ho).applyPatches_;return Pt(t)?i(t,e):this.produce(t,n=>i(n,e))}};function yo(t,e,r,i){let[n,s]=Kn(e)?Dr(zn).proxyMap_(e,r):Ki(e)?Dr(zn).proxySet_(e,r):zh(e,r);return(r?.scope_??ec()).drafts_.push(n),s.callbacks_=r?.callbacks_??[],s.key_=i,r&&i!==void 0?Bh(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 sc(t){return Pt(t)||At(10,t),oc(t)}function oc(t){if(!rt(t)||Qn(t))return t;let e=t[De],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=po(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=po(t,!0);let n=r;return Ki(r)&&(r=new Set),qn(n,(s,o)=>{Un(r,s,oc(o))},i),e&&(e.finalized_=!1),r}var qh=globalThis.Iterator,fg=typeof qh?.from=="function";var Wh=new jh,xo=Wh.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 Kh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Vi:Vi.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function Qi(t,e){function r(...i){if(e){let n=e(...i);if(!n)throw new Error(Mt(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=>i!=null&&i.type===t&&Vl(i),r}var pc=class Gi extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Gi.prototype)}static get[Symbol.species](){return Gi}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Gi(...e[0].concat(this)):new Gi(...e.concat(this))}};function uc(t){return rt(t)?xo(t,()=>{}):t}function Xn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Gh(t){return typeof t=="boolean"}var Qh=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:s=!0}=e??{},o=new pc;return r&&(Gh(r)?o.push(lc):o.push(cc(r.extraArgument))),o},Yh="RTK_autoBatch";var dc=t=>e=>{setTimeout(e,t)},Xh=(t,e,r)=>i=>{let n=!1,s,o,a=()=>{n||(n=!0,e?.(s),clearTimeout(o),i())};s=t(a),o=setTimeout(a,r)},Zh=(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?Xh(window.requestAnimationFrame,window.cancelAnimationFrame,100):dc(10):t.type==="callback"?t.queueNotification:dc(t.timeout),u=()=>{o=!1,s&&(s=!1,a.forEach(p=>p()))};return Object.assign({},i,{subscribe(p){let d=()=>n&&p(),h=i.subscribe(d);return a.add(p),()=>{h(),a.delete(p)}},dispatch(p){try{return n=!p?.meta?.[Yh],s=!n,s&&(o||(o=!0,l(u))),i.dispatch(p)}finally{n=!0}}})},Jh=t=>function(r){let{autoBatch:i=!0}=r??{},n=new pc(t);return i&&n.push(Zh(typeof i=="object"?i:void 0)),n};function hc(t){let e=Qh(),{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(Dn(r))l=so(r);else throw new Error(Mt(1));let u;typeof i=="function"?u=i(e):u=e();let p=Vi;n&&(p=Kh({trace:!1,...typeof n=="object"&&n}));let d=zl(...u),h=Jh(d),b=typeof a=="function"?a(h):h(),E=p(...b);return no(l,o,E)}function fc(t){let e={},r=[],i,n={addCase(s,o){let a=typeof s=="string"?s:s.type;if(!a)throw new Error(Mt(28));if(a in e)throw new Error(Mt(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 ef(t){return typeof t=="function"}function tf(t,e){let[r,i,n]=fc(e),s;if(ef(t))s=()=>uc(t());else{let l=uc(t);s=()=>l}function o(l,u,p){if(Pt(l)){let d=u(l,p);return d===void 0?l:d}else{if(rt(l))return xo(l,d=>u(d,p));{let d=u(l,p);if(d===void 0){if(l===null)return l;throw new Error(Mt(9))}return d}}}function a(l=s(),u){let p=r[u.type],d;for(let{matcher:h,reducer:b}of i)h(u)&&b&&(d??=[]).push(b);if(!p&&!d)return n?o(l,n,u):l;if(p&&(l=o(l,p,u)),d)for(let h of d)l=o(l,h,u);return l}return a.getInitialState=s,a}var rf=Symbol.for("rtk-slice-createasyncthunk");function nf(t,e){return`${t}/${e}`}function sf({creators:t}={}){let e=t?.asyncThunk?.[rf];return function(i){let{name:n,reducerPath:s=n}=i;if(!n)throw new Error(Mt(11));typeof process<"u";let o=(typeof i.reducers=="function"?i.reducers(af()):i.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(C,D){let Y=typeof C=="string"?C:C.type;if(!Y)throw new Error(Mt(12));if(Y in l.sliceCaseReducersByType)throw new Error(Mt(13));return l.sliceCaseReducersByType[Y]=D,u},addMatcher(C,D){return l.sliceMatchers.push({matcher:C,reducer:D}),u},exposeAction(C,D){return l.actionCreators[C]=D,u},exposeCaseReducer(C,D){return l.sliceCaseReducersByName[C]=D,u}};a.forEach(C=>{let D=o[C],Y={reducerName:C,type:nf(n,C),createNotation:typeof i.reducers=="function"};cf(D)?df(Y,D,u,e):lf(Y,D,u)});function p(){let[C={},D=[],Y=void 0]=typeof i.extraReducers=="function"?fc(i.extraReducers):[i.extraReducers],be={...C,...l.sliceCaseReducersByType};return tf(i.initialState,Je=>{for(let Ie in be)Je.addCase(Ie,be[Ie]);for(let Ie of l.sliceMatchers)Je.addMatcher(Ie.matcher,Ie.reducer);for(let Ie of D)Je.addMatcher(Ie.matcher,Ie.reducer);Y&&Je.addDefaultCase(Y)})}let d=C=>C,h=new Map,b=new WeakMap,E;function M(C,D){return E||(E=p()),E(C,D)}function x(){return E||(E=p()),E.getInitialState()}function F(C,D=!1){function Y(Je){let Ie=Je[C];return typeof Ie>"u"&&D&&(Ie=Xn(b,Y,x)),Ie}function be(Je=d){return Xn(Xn(h,D,()=>new WeakMap),Je,()=>{let Ie={};for(let[mn,ct]of Object.entries(i.selectors??{}))Ie[mn]=of(ct,Je,()=>Xn(b,Je,x),D);return Ie})}return{reducerPath:C,getSelectors:be,get selectors(){return be(Y)},selectSlice:Y}}let W={name:n,reducer:M,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:x,...F(s),injectInto(C,{reducerPath:D,...Y}={}){let be=D??s;return C.inject({reducerPath:be,reducer:M},Y),{...W,...F(be,!0)}}};return W}}function of(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 mc=sf();function af(){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 lf({type:t,reducerName:e,createNotation:r},i,n){let s,o;if("reducer"in i){if(r&&!uf(i))throw new Error(Mt(17));s=i.reducer,o=i.prepare}else s=i;n.addCase(t,s).exposeCaseReducer(e,s).exposeAction(e,o?Qi(t,o):Qi(t))}function cf(t){return t._reducerDefinitionType==="asyncThunk"}function uf(t){return t._reducerDefinitionType==="reducerWithPrepare"}function df({type:t,reducerName:e},r,i,n){if(!n)throw new Error(Mt(18));let{payloadCreator:s,fulfilled:o,pending:a,rejected:l,settled:u,options:p}=r,d=n(t,s,p);i.exposeAction(e,d),o&&i.addCase(d.fulfilled,o),a&&i.addCase(d.pending,a),l&&i.addCase(d.rejected,l),u&&i.addMatcher(d.settled,u),i.exposeCaseReducer(e,{fulfilled:o||Zn,pending:a||Zn,rejected:l||Zn,settled:u||Zn})}function Zn(){}var gc="listener",yc="completed",bc="cancelled",Eg=`task-${bc}`,Ag=`task-${yc}`,Cg=`${gc}-${bc}`,wg=`${gc}-${yc}`;var{assign:vc}=Object;var So="listenerMiddleware";var pf=vc(Qi(`${So}/add`),{withTypes:()=>pf}),Og=Qi(`${So}/removeAll`),hf=vc(Qi(`${So}/remove`),{withTypes:()=>hf});function Mt(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var ff=_n(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)}}}),Jn=class extends ff(Object){};window.ftReduxStores||(window.ftReduxStores={});var xc=class t extends Jn{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($n(s))return s;if(n==null)return;let o=mc({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),a=hc({reducer:(l,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let p=Bi(o.getInitialState());for(let d of u.keeping)p[d]=(l??p)[d];return p}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,n.deprecatedKeys)}constructor(e,r,i,n){super(),this.reduxSlice=e,this.reduxStore=r,this.deprecatedKeys=n,this.isFtReduxStore=!0,this.commands=new Rn,this.injectInto=(o,a)=>this.reduxSlice.injectInto(o,a),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let s=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,a,l)=>{let u=a,p=o[u];return p?(...d)=>{let h=p(...d.map(s));return this.reduxStore.dispatch(h),h}:d=>{let h=u,b=this.getState()[h];ii(b,d)||this.setState({[h]: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 es=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 ts=c(f()),mf="ft-app-info",ar=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ar.eventName="authentication-change";var Yi=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Yi.eventName="ui-locale-changed";var gf={session:(t,e)=>{(0,ts.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>w.dispatchEvent(new ar(e.payload)),0))}},w=ts.FtReduxStore.get({name:mf,reducers:gf,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 Sc=c(f()),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},ey=(0,Sc.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(w)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var 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=>es.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return rs([(0,Eo.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),rs([(0,Eo.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),rs([ro({store:w.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),rs([ro({store:w.name})],e.prototype,"uiLocale",void 0),e});var Ec;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Ec||(Ec={}));var Ac;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Ac||(Ac={}));var Cc;(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"})(Cc||(Cc={}));var wc;(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"})(wc||(wc={}));var Oc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Oc||(Oc={}));var _c;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(_c||(_c={}));var Rc;(function(t){t.PUBLISHED="PUBLISHED",t.AI="AI"})(Rc||(Rc={}));var Tc;(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"})(Tc||(Tc={}));var kc;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(kc||(kc={}));var Lc;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Lc||(Lc={}));var $c;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER",t.DOC_DIFF="DOC_DIFF"})($c||($c={}));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 Dc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Dc||(Dc={}));var Pc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Pc||(Pc={}));var Mc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Mc||(Mc={}));var Nc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Nc||(Nc={}));var Fc;(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"})(Fc||(Fc={}));var Ao;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Ao||(Ao={}));var Bc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Bc||(Bc={}));var Uc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Uc||(Uc={}));var Co;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Co||(Co={}));var zc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(zc||(zc={}));var Vc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Vc||(Vc={}));var Hc;(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"})(Hc||(Hc={}));var jc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(jc||(jc={}));var qc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(qc||(qc={}));var wo;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(wo||(wo={}));var Wc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Wc||(Wc={}));var ae;(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"})(ae||(ae={}));var dt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(dt||(dt={}));var Kc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Kc||(Kc={}));var Gc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Gc||(Gc={}));var Qc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Qc||(Qc={}));var Yc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Yc||(Yc={}));var Xc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Xc||(Xc={}));var Zc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(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.CHAT="CHAT",t.COMPLETION="COMPLETION",t.RAG="RAG",t.AGENT="AGENT"})(eu||(eu={}));var tu;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(tu||(tu={}));var ru;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(ru||(ru={}));var iu;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(iu||(iu={}));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 su;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(su||(su={}));var yf={[ae.PERSONAL_BOOK_SHARE_USER]:[ae.PERSONAL_BOOK_USER],[ae.HTML_EXPORT_USER]:[ae.PERSONAL_BOOK_USER],[ae.PDF_EXPORT_USER]:[ae.PERSONAL_BOOK_USER],[ae.KHUB_ADMIN]:[ae.CONTENT_PUBLISHER],[ae.ADMIN]:[ae.KHUB_ADMIN,ae.USERS_ADMIN,ae.PORTAL_ADMIN,ae.BEHAVIOR_DATA_USER],[ae.GENERATIVE_AI_EXPORT_USER]:[ae.GENERATIVE_AI_USER]};function ou(t,e){return t===e||(yf[t]??[]).some(r=>ou(r,e))}function is(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>ou(i,e))}function au(t,...e){return t==null?!1:e.some(r=>is(t,r))}var ls=c(f());var Oo=c(f());var Pr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=w.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=w.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var li=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Pr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Pr.await()}};var Ge=class extends li{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 Oo.CacheRegistry,this.cache=e?n.commonCache:new Oo.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 ns=class extends Ge{async listMySearches(){let{session:e}=w.getState();return is(e,ae.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var ss=class extends Ge{async listMyBookmarks(){let e=w.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var os=class extends Ge{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=w.getState().session;return!!e?.sessionAuthenticated}};var as=class extends Ge{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=w.getState().session;return!!e?.sessionAuthenticated}};var bf="ft-user-assets",vf={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;Ro(t,r,[..._o(t,r),n]),lu(t,r,1,i),cu(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Ro(t,r,_o(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;Ro(t,r,_o(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},_o=(t,e)=>{var r;let i=uu[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Ro=(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)},Ne=ls.FtReduxStore.get({name:bf,reducers:vf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(dt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),To=class{constructor(e=new os,r=new as){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ss,this.savedSearchesService=new ns,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=w.getState();(0,ls.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Ne.actions.clearAssetCount(),Ne.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ne.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ne.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Ne.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Ne.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Ne.getState().assetCounts.allAsset[e]!==r.count&&Ne.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Ne.getState().assetCounts.bookmarkByMap[e]!==r.count&&Ne.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Ne.getState().assetCounts.bookmarkByMap).length!==0;e===dt.BOOKMARKS&&r&&Ne.actions.clearBookmarkCountByMap(),Ne.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Ne.actions.bookmarks(r)}}},xf=new To;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=xf);var ko=class{addCommand(e,r=!1){w.commands.add(e,r)}consumeCommand(e){return w.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ko;var pt=c(f());var du,ci=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Sf=Symbol("clearAfterUnitTest"),cs=class extends(0,pt.withEventBus)(Ge){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=w.getState().uiLocale,w.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=w.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let 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 ci({loadedContexts:e})),this.dispatchEvent(new ci({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new ci({loadedContexts:[e]})),this.dispatchEvent(new ci({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,pt.delay)(0).then(()=>i()).catch(()=>null)))}};du=Sf;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends cs{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends cs{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var ui=window.FluidTopicsI18nService,us=window.FluidTopicsCustomI18nService;var pu=c(f()),Lo=class{highlightHtml(e,r,i){(0,pu.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Lo;var hu=c(f());var $o=class{isDate(e){var r,i,n,s;return(s=(i=((n=(r=w.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===e))===null||i===void 0?void 0:i.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:w.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 $o;var fu=c(f());var Yt=class{static get(e,r,{baseUrl:i,localesConfiguration:n,availableContentLocales:s}=w.getState()){var o;if(r==="all"&&n?.allLanguagesAllowed)r=void 0;else if(!r||s.length>0&&!s.some(a=>a.lang===r)){let a=n?.defaultLocales.defaultContentLocale;r=a?`${a.lang}-${a.region}`:(o=s[0])===null||o===void 0?void 0:o.lang}return new fu.SearchPlaceConverter(i,e??20,n?.allLanguagesAllowed,r,s)}};var Io=class{urlToSearchRequest(e){return Yt.get().parse(e)}searchRequestToUrl(e){return Yt.get().serialize(e)}};window.FluidTopicsUrlService=new Io;var Xt=c(f());var Mr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Mr.eventName="before-location-change";var Nr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Nr.eventName="change";var Do=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 Do;var ds=class t extends Xt.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,Xt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Nr(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[s,o,a])=>{let l=new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin!=="null"?window.location.origin:void 0),u=new Mr(l);this.dispatchEvent(u);let p=r(),d={...p===this.currentIndex?this.currentState:void 0,...s,index:p,href:u.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(Mr.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Mr.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Nr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Nr.eventName,e)}currentItem(){return(0,Xt.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Xt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Xt.deepCopy)(r.find(i=>e(i)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,Xt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let 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=ds.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`
|
|
273
|
+
`;var vu=c(v()),Fe=c(z()),Br=c(f());var Nt=c(f());function bu(t,e){let{authenticationRequired:r,session:i}=w.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var ps=class extends li{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Po=class t extends Nt.FtStateManager{static build(e){return new t(w,e)}constructor(e,r){super(),this.store=e,this.cache=new Nt.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new ps,this.knownContexts=new Nt.AbstractRegistry,this.knownCustomComponents=new Nt.AbstractRegistry,this.cleanSessionDebouncer=new Nt.Debouncer,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new Nt.Debouncer(500),this.apiProvider=r??(()=>Pr.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(ar.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(ar.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 Yi(i)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setNoCustomCode(e){this.store.actions.noCustomCode(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}userHasAnyRole(...e){return au(w.getState().session,...e)}},Mo=Po.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 Xi=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:i}=r;for(let{elementRef: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 xe=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},re=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=Mo,this.contextRoot=new Xi}render(){return vu.html`
|
|
274
274
|
<slot></slot>
|
|
275
|
-
`}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=>
|
|
276
|
-
`;var gs=c(
|
|
275
|
+
`}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=>ui.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())}};re.elementDefinitions={};re.styles=yu;xe([(0,Fe.property)()],re.prototype,"baseUrl",void 0);xe([(0,Fe.property)()],re.prototype,"tenantId",void 0);xe([(0,Fe.property)()],re.prototype,"apiIntegrationIdentifier",void 0);xe([(0,Fe.property)()],re.prototype,"apiIntegrationAppVersion",void 0);xe([(0,Fe.property)()],re.prototype,"uiLocale",void 0);xe([(0,Br.jsonProperty)(null)],re.prototype,"availableUiLocales",void 0);xe([(0,Br.jsonProperty)(null)],re.prototype,"metadataConfiguration",void 0);xe([(0,Fe.property)({type:Boolean})],re.prototype,"editorMode",void 0);xe([(0,Fe.property)({type:Boolean})],re.prototype,"noCustom",void 0);xe([(0,Fe.property)({type:Boolean})],re.prototype,"openExternalDocumentInNewTab",void 0);xe([(0,Fe.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],re.prototype,"noCustomComponent",void 0);xe([(0,Fe.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],re.prototype,"noCustomCode",void 0);xe([(0,Fe.property)({type:Boolean})],re.prototype,"withManualResources",void 0);xe([(0,Fe.property)({type:Boolean})],re.prototype,"navigatorOnline",void 0);xe([(0,Fe.property)({type:Boolean})],re.prototype,"forcedOffline",void 0);xe([(0,Fe.property)({type:Boolean})],re.prototype,"authenticationRequired",void 0);xe([(0,Br.jsonProperty)([])],re.prototype,"messageContexts",void 0);xe([(0,Br.jsonProperty)(void 0)],re.prototype,"session",void 0);var Su=c(f());var xu={"ft-app-context":re};(0,Su.customElements)(xu);var Eu=c(z());var No=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-]+$/)}},di=new No;var Cf=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},Ji=Symbol("i18nAttributes"),Au=Symbol("i18nListAttributes"),Cu=Symbol("i18nProperties"),hs=Symbol("i18nContexts"),Zi=Symbol("i18nUnsubs"),hi=(0,pi.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?us:ui}i18n(s){let{context:o,key:a,message:l}=s,{custom:u,args:p,argsProvider:d}=s;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,u);let h=p??(d?d(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(di.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=(p,d,h)=>h?.context&&h.key&&s(p,d,h)?{...h,message:this.i18n({context:h.context,key:h.key,custom:h.custom,...p})}:h;(o=this[Ji])===null||o===void 0||o.forEach((p,d)=>l[d]=u(p,d,l[d])),(a=this[Au])===null||a===void 0||a.forEach((p,d)=>{var h;return l[d]=(h=l[d])===null||h===void 0?void 0:h.map(b=>u(p,d,b))})}updateI18nProperties(s){var o;(o=this[Cu])===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[hs].set(l,{isCustomContext:a}),this[Zi].has(l)||this[Zi].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,o)}hasI18nContext(s){return this[hs].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[hs].forEach((s,o)=>this.addI18nContext(o,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Zi].forEach(s=>s()),this[Zi].clear()}}return e=hs,r=Zi,Cf([(0,Eu.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),fs=class extends hi(pi.FtLitElement){},ms=class extends hi(pi.FtLitElementRedux){};var wu=c(f());var Fo=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?di.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},wf=new Fo;var en=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:wu.hasChanged,converter:di,...e}),r[Ji]=(n=r[Ji])!==null&&n!==void 0?n:new Map,r[Ji].set(i,t??{})};var fi=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?us:ui}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`
|
|
276
|
+
`;var gs=c(v()),gi=c(z()),ys=c(f());var mi=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 ms{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(w)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:gs.nothing:gs.html`
|
|
277
277
|
<span class="ft-i18n">
|
|
278
278
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
279
279
|
</span>
|
|
280
|
-
`}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=
|
|
280
|
+
`}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;mi([(0,ys.redux)()],ht.prototype,"editorMode",void 0);mi([(0,gi.property)()],ht.prototype,"context",void 0);mi([(0,gi.property)()],ht.prototype,"key",void 0);mi([(0,ys.jsonProperty)([])],ht.prototype,"args",void 0);mi([(0,gi.property)()],ht.prototype,"defaultMessage",void 0);mi([(0,gi.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},le=class extends fs{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`
|
|
281
281
|
<div part="container"
|
|
282
282
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
|
|
283
283
|
<slot part="slot"></slot>
|
|
@@ -286,13 +286,13 @@
|
|
|
286
286
|
popover="manual">
|
|
287
287
|
<div part="tooltip-content" class="ft-tooltip--content">
|
|
288
288
|
<slot name="text"></slot>
|
|
289
|
-
<ft-typography variant="${
|
|
289
|
+
<ft-typography variant="${se.caption}" ?hidden=${!(!((e=this.text)===null||e===void 0)&&e.message)}>
|
|
290
290
|
${(r=this.text)===null||r===void 0?void 0:r.message}
|
|
291
291
|
</ft-typography>
|
|
292
292
|
</div>
|
|
293
293
|
</div>
|
|
294
294
|
</div>
|
|
295
|
-
`}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&&
|
|
295
|
+
`}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&&Tl(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)}};le.elementDefinitions={"ft-typography":H};le.styles=tl;Ct([en()],le.prototype,"text",void 0);Ct([(0,mt.property)({type:Boolean})],le.prototype,"manual",void 0);Ct([(0,mt.property)({type:Boolean})],le.prototype,"inline",void 0);Ct([(0,ft.numberProperty)()],le.prototype,"delay",void 0);Ct([(0,mt.property)()],le.prototype,"position",void 0);Ct([(0,ft.jsonProperty)([])],le.prototype,"ignoreMatchingElements",void 0);Ct([(0,mt.queryAssignedNodes)()],le.prototype,"slotNodes",void 0);Ct([(0,mt.query)(".ft-tooltip--container")],le.prototype,"container",void 0);Ct([(0,mt.query)(".ft-tooltip")],le.prototype,"tooltip",void 0);Ct([(0,mt.query)(".ft-tooltip--content")],le.prototype,"tooltipContent",void 0);Ct([(0,mt.state)()],le.prototype,"visible",void 0);var $u=c(f());var Lu={"ft-tooltip":le};(0,$u.customElements)(Lu);var Iu=c(v()),wt=c(f()),Be={size:wt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:wt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",wt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:wt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",wt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:wt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",wt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:wt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Du=[Iu.css`
|
|
296
296
|
:host, i.ft-icon {
|
|
297
297
|
display: inline-flex;
|
|
298
298
|
align-items: center;
|
|
@@ -301,14 +301,14 @@
|
|
|
301
301
|
}
|
|
302
302
|
|
|
303
303
|
:host {
|
|
304
|
-
width: ${
|
|
305
|
-
height: ${
|
|
304
|
+
width: ${Be.size};
|
|
305
|
+
height: ${Be.size};
|
|
306
306
|
}
|
|
307
307
|
|
|
308
308
|
i.ft-icon {
|
|
309
309
|
width: 100%;
|
|
310
310
|
height: 100%;
|
|
311
|
-
font-size: ${
|
|
311
|
+
font-size: ${Be.size};
|
|
312
312
|
line-height: 1;
|
|
313
313
|
font-weight: normal;
|
|
314
314
|
text-transform: none;
|
|
@@ -319,33 +319,33 @@
|
|
|
319
319
|
text-rendering: auto;
|
|
320
320
|
-webkit-font-smoothing: antialiased;
|
|
321
321
|
-moz-osx-font-smoothing: grayscale;
|
|
322
|
-
vertical-align: ${
|
|
322
|
+
vertical-align: ${Be.verticalAlign};
|
|
323
323
|
}
|
|
324
324
|
|
|
325
325
|
i.ft-icon.ft-icon--fluid-topics {
|
|
326
|
-
font-family: ${
|
|
326
|
+
font-family: ${Be.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
327
327
|
|
|
328
328
|
/* Ugly fix because font is broken */
|
|
329
|
-
font-size: calc(0.75 * ${
|
|
330
|
-
line-height: ${
|
|
329
|
+
font-size: calc(0.75 * ${Be.size});
|
|
330
|
+
line-height: ${Be.size};
|
|
331
331
|
position: relative;
|
|
332
332
|
top: -4%;
|
|
333
333
|
justify-content: center;
|
|
334
334
|
}
|
|
335
335
|
|
|
336
336
|
.ft-icon--file-format {
|
|
337
|
-
font-family: ${
|
|
337
|
+
font-family: ${Be.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
338
338
|
}
|
|
339
339
|
|
|
340
340
|
.ft-icon--material {
|
|
341
|
-
font-family: ${
|
|
341
|
+
font-family: ${Be.materialFontFamily}, "Material Icons", sans-serif;
|
|
342
342
|
}
|
|
343
|
-
`,wt.noTextSelect];var ze;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(ze||(ze={}));var tn=c(x()),cr=c(V()),zu=c(f()),Vu=c(Uu());var ge;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK="",t.BOOKMARK_SLASH="",t.CIRCLE_PAUSE="",t.CIRCLE_PLAY="",t.CIRCLE_STOP_PLAIN="",t.CIRCLE_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID="",t.FILE_CODE="",t.BOX_CODE="",t.TOPICS_SOLID="",t.PHOTO_FILM="",t.HYPHEN_SOLID="",t.CROSSHAIRS="",t.PERSON_CHALKBOARD="",t.CIRCLE_ARROW_DOWN_SLASH="",t.BOOK_OPEN_COVER="",t.LIGHTBULB="",t.MESSAGE_BOT_AGENTIC_SOLID="",t.CHART_LINE_USER="",t.SERVER_CIRCLE_ARROW_DOWN="",t.EYE="",t.SHARE="󨃱"})(ge||(ge={}));var g;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(g||(g={}));var Uo=new Map([...["abw"].map(t=>[t,g.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,g.AUDIO]),...["avi"].map(t=>[t,g.AVI]),...["chm","xhs"].map(t=>[t,g.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,g.CODE]),...["csv"].map(t=>[t,g.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,g.DITA]),...["epub"].map(t=>[t,g.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,g.EXCEL]),...["flac"].map(t=>[t,g.FLAC]),...["gif"].map(t=>[t,g.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,g.GZIP]),...["html","htm","xhtml"].map(t=>[t,g.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,g.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,g.JPEG]),...["json"].map(t=>[t,g.JSON]),...["m4a","m4p"].map(t=>[t,g.M4A]),...["mov","qt"].map(t=>[t,g.MOV]),...["mp3"].map(t=>[t,g.MP3]),...["mp4","m4v"].map(t=>[t,g.MP4]),...["ogg","oga"].map(t=>[t,g.OGG]),...["pdf","ps"].map(t=>[t,g.PDF]),...["png"].map(t=>[t,g.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,g.POWERPOINT]),...["rar"].map(t=>[t,g.RAR]),...["stp"].map(t=>[t,g.STP]),...["txt","rtf","md","mdown"].map(t=>[t,g.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,g.VIDEO]),...["wav"].map(t=>[t,g.WAV]),...["wma"].map(t=>[t,g.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,g.WORD]),...["xml","xsl","rdf"].map(t=>[t,g.XML]),...["yaml","yml","x-yaml"].map(t=>[t,g.YAML]),...["zip"].map(t=>[t,g.ZIP])]),Bf=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function bs(t,e){var r,i,n,s;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[o,a]=(((r=Bf.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(s=(n=(i=Uo.get(a))!==null&&i!==void 0?i:Uo.get(e))!==null&&n!==void 0?n:Uo.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 rn=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 zu.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=tn.nothing}render(){let e=this.variant&&Object.values(ze).includes(this.variant)?this.variant:ze.fluid_topics,r=e!==ze.material||!!this.value;return tn.html`
|
|
343
|
+
`,wt.noTextSelect];var Ue;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ue||(Ue={}));var tn=c(v()),lr=c(z()),Nu=c(f()),Fu=c(Mu());var me;(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="󨃱"})(me||(me={}));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 Bo=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])]),Of=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function bs(t,e){var r,i,n,s;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[o,a]=(((r=Of.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(s=(n=(i=Bo.get(a))!==null&&i!==void 0?i:Bo.get(e))!==null&&n!==void 0?n:Bo.get(o))!==null&&s!==void 0?s:g.UNKNOWN}var Ox={[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 rn=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},J=class extends Nu.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=tn.nothing}render(){let e=this.variant&&Object.values(Ue).includes(this.variant)?this.variant:Ue.fluid_topics,r=e!==Ue.material||!!this.value;return tn.html`
|
|
344
344
|
<i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
|
|
345
|
-
${(0,
|
|
345
|
+
${(0,Fu.unsafeHTML)(this.resolvedIcon)}
|
|
346
346
|
<slot ?hidden=${r}></slot>
|
|
347
347
|
</i>
|
|
348
|
-
`}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.getTextContent();switch(this.variant){case
|
|
348
|
+
`}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.getTextContent();switch(this.variant){case Ue.file_format:this.resolvedIcon=(e=g[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Ue.material:this.resolvedIcon=this.value||tn.nothing;break;default:this.resolvedIcon=(r=me[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};J.elementDefinitions={};J.styles=Du;rn([(0,lr.property)()],J.prototype,"variant",void 0);rn([(0,lr.property)()],J.prototype,"value",void 0);rn([(0,lr.property)({reflect:!0,attribute:"aria-hidden"})],J.prototype,"ariaHidden",void 0);rn([(0,lr.state)()],J.prototype,"resolvedIcon",void 0);rn([(0,lr.query)("slot")],J.prototype,"slottedContent",void 0);var Uu=c(f());var Bu={"ft-icon":J};(0,Uu.customElements)(Bu);var zu=c(v()),nn=c(f()),Ur={color:nn.FtCssVariableFactory.extend("--ft-loader-color","",nn.designSystemVariables.colorPrimary),size:nn.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Vu=zu.css`
|
|
349
349
|
:host {
|
|
350
350
|
line-height: 0;
|
|
351
351
|
}
|
|
@@ -354,8 +354,8 @@
|
|
|
354
354
|
display: inline-block;
|
|
355
355
|
position: relative;
|
|
356
356
|
|
|
357
|
-
width: ${
|
|
358
|
-
height: ${
|
|
357
|
+
width: ${Ur.size};
|
|
358
|
+
height: ${Ur.size};
|
|
359
359
|
}
|
|
360
360
|
|
|
361
361
|
.ft-loader div {
|
|
@@ -364,7 +364,7 @@
|
|
|
364
364
|
width: 25%;
|
|
365
365
|
height: 25%;
|
|
366
366
|
border-radius: 50%;
|
|
367
|
-
background: ${
|
|
367
|
+
background: ${Ur.color};
|
|
368
368
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
369
369
|
}
|
|
370
370
|
|
|
@@ -411,17 +411,17 @@
|
|
|
411
411
|
transform: translate(0, 0);
|
|
412
412
|
}
|
|
413
413
|
100% {
|
|
414
|
-
transform: translate(calc(0.35 * ${
|
|
414
|
+
transform: translate(calc(0.35 * ${Ur.size}), 0);
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
-
`;var
|
|
417
|
+
`;var Hu=c(v()),ju=c(f());var zr=class extends ju.FtLitElement{render(){return Hu.html`
|
|
418
418
|
<div class="ft-loader">
|
|
419
419
|
<div></div>
|
|
420
420
|
<div></div>
|
|
421
421
|
<div></div>
|
|
422
422
|
<div></div>
|
|
423
423
|
</div>
|
|
424
|
-
`}};
|
|
424
|
+
`}};zr.styles=Vu;var Wu=c(f());var qu={"ft-loader":zr};(0,Wu.customElements)(qu);var cr=c(v()),xs=c(et()),j=c(z());var Ot=t=>t??he;var vs=c(v()),R=c(f());var Ku=R.FtCssVariableFactory.extend("--ft-button-color","",R.designSystemVariables.colorPrimary),_={backgroundColor:R.FtCssVariableFactory.extend("--ft-button-background-color","",R.designSystemVariables.colorSurface),borderRadius:R.FtCssVariableFactory.extend("--ft-button-border-radius","",R.designSystemVariables.borderRadiusL),color:Ku,fontSize:R.FtCssVariableFactory.extend("--ft-button-font-size","",xt.fontSize),iconSize:R.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:R.FtCssVariableFactory.extend("--ft-button-ripple-color","",Ku),verticalPadding:R.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:R.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:R.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:R.FtCssVariableFactory.external(R.designSystemVariables.colorOpacityDisabled,"Design system")},Gu=R.FtCssVariableFactory.extend("--ft-button-primary-color","",R.FtCssVariableFactory.extend("--ft-button-color","",R.designSystemVariables.colorOnPrimary)),Uo={backgroundColor:R.FtCssVariableFactory.extend("--ft-button-primary-background-color","",R.FtCssVariableFactory.extend("--ft-button-background-color","",R.designSystemVariables.colorPrimary)),color:Gu,rippleColor:R.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Gu)},_t={borderRadius:R.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",R.FtCssVariableFactory.extend("--ft-button-border-radius","",R.designSystemVariables.borderRadiusM)),verticalPadding:R.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:R.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:R.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Qu=vs.css`
|
|
425
425
|
:host {
|
|
426
426
|
display: inline-block;
|
|
427
427
|
max-width: 100%;
|
|
@@ -431,7 +431,7 @@
|
|
|
431
431
|
.ft-button {
|
|
432
432
|
box-shadow: 0px 0px 0px transparent;
|
|
433
433
|
text-shadow: 0px 0px 0px transparent;
|
|
434
|
-
font-size: ${
|
|
434
|
+
font-size: ${_.fontSize};
|
|
435
435
|
text-decoration: none;
|
|
436
436
|
position: relative;
|
|
437
437
|
display: flex;
|
|
@@ -442,15 +442,15 @@
|
|
|
442
442
|
border: none;
|
|
443
443
|
pointer-events: auto;
|
|
444
444
|
|
|
445
|
-
--button-internal-line-height: max(calc(${
|
|
446
|
-
--button-internal-color: ${
|
|
447
|
-
${(0,
|
|
448
|
-
${(0,
|
|
449
|
-
${(0,
|
|
445
|
+
--button-internal-line-height: max(calc(${_.fontSize} + 2px), ${_.iconSize});
|
|
446
|
+
--button-internal-color: ${_.color};
|
|
447
|
+
${(0,R.setVariable)(Be.size,_.iconSize)};
|
|
448
|
+
${(0,R.setVariable)(U.color,_.rippleColor)};
|
|
449
|
+
${(0,R.setVariable)(U.borderRadius,_.borderRadius)};
|
|
450
450
|
|
|
451
|
-
border-radius: ${
|
|
452
|
-
padding: ${
|
|
453
|
-
background-color: ${
|
|
451
|
+
border-radius: ${_.borderRadius};
|
|
452
|
+
padding: ${_.verticalPadding} ${_.horizontalPadding};
|
|
453
|
+
background-color: ${_.backgroundColor};
|
|
454
454
|
color: var(--button-internal-color);
|
|
455
455
|
|
|
456
456
|
.ft-button--label {
|
|
@@ -459,9 +459,9 @@
|
|
|
459
459
|
white-space: nowrap;
|
|
460
460
|
text-overflow: ellipsis;
|
|
461
461
|
display: block;
|
|
462
|
-
margin: 0 ${
|
|
463
|
-
${(0,
|
|
464
|
-
${(0,
|
|
462
|
+
margin: 0 ${_.iconPadding};
|
|
463
|
+
${(0,R.setVariable)(xt.fontSize,"1em")};
|
|
464
|
+
${(0,R.setVariable)(xt.lineHeight,"var(--button-internal-line-height)")};
|
|
465
465
|
}
|
|
466
466
|
|
|
467
467
|
[part="icon"] {
|
|
@@ -490,30 +490,30 @@
|
|
|
490
490
|
}
|
|
491
491
|
|
|
492
492
|
&:focus-visible {
|
|
493
|
-
outline: 2px solid ${
|
|
493
|
+
outline: 2px solid ${R.designSystemVariables.colorPrimary};
|
|
494
494
|
outline-offset: 2px;
|
|
495
495
|
}
|
|
496
496
|
|
|
497
497
|
&[disabled] {
|
|
498
498
|
filter: grayscale(1);
|
|
499
|
-
opacity: ${
|
|
499
|
+
opacity: ${_.opacityDisabled};
|
|
500
500
|
}
|
|
501
501
|
|
|
502
502
|
&.ft-button--primary {
|
|
503
|
-
background-color: ${
|
|
504
|
-
--button-internal-color: ${
|
|
505
|
-
${(0,
|
|
503
|
+
background-color: ${Uo.backgroundColor};
|
|
504
|
+
--button-internal-color: ${Uo.color};
|
|
505
|
+
${(0,R.setVariable)(U.color,Uo.rippleColor)};
|
|
506
506
|
}
|
|
507
507
|
|
|
508
508
|
&.ft-button--outlined {
|
|
509
509
|
border: 1px solid var(--button-internal-color);
|
|
510
|
-
padding: calc(${
|
|
510
|
+
padding: calc(${_.verticalPadding} - 1px) calc(${_.horizontalPadding} - 1px);
|
|
511
511
|
}
|
|
512
512
|
|
|
513
513
|
&.ft-button--dense {
|
|
514
514
|
padding: ${_t.verticalPadding} ${_t.horizontalPadding};
|
|
515
515
|
border-radius: ${_t.borderRadius};
|
|
516
|
-
${(0,
|
|
516
|
+
${(0,R.setVariable)(U.borderRadius,_t.borderRadius)};
|
|
517
517
|
|
|
518
518
|
.ft-button--label {
|
|
519
519
|
margin: 0 ${_t.iconPadding};
|
|
@@ -525,13 +525,13 @@
|
|
|
525
525
|
}
|
|
526
526
|
|
|
527
527
|
&.ft-button--round {
|
|
528
|
-
border-radius: calc(var(--button-internal-line-height) / 2 + ${
|
|
529
|
-
${(0,
|
|
528
|
+
border-radius: calc(var(--button-internal-line-height) / 2 + ${_.verticalPadding});
|
|
529
|
+
${(0,R.setVariable)(U.borderRadius,vs.css`calc(var(--button-internal-line-height) / 2 + ${_.verticalPadding})`)};
|
|
530
530
|
}
|
|
531
531
|
|
|
532
532
|
&.ft-button--round.ft-button--dense {
|
|
533
533
|
border-radius: calc(var(--button-internal-line-height) / 2 + ${_t.verticalPadding});
|
|
534
|
-
${(0,
|
|
534
|
+
${(0,R.setVariable)(U.borderRadius,vs.css`calc(var(--button-internal-line-height) / 2 + ${_t.verticalPadding})`)};
|
|
535
535
|
}
|
|
536
536
|
|
|
537
537
|
&.ft-button--no-text {
|
|
@@ -539,14 +539,14 @@
|
|
|
539
539
|
margin: 0;
|
|
540
540
|
}
|
|
541
541
|
|
|
542
|
-
padding: ${
|
|
542
|
+
padding: ${_.verticalPadding};
|
|
543
543
|
|
|
544
544
|
&.ft-button--dense {
|
|
545
545
|
padding: ${_t.verticalPadding};
|
|
546
546
|
}
|
|
547
547
|
|
|
548
548
|
&.ft-button--outlined {
|
|
549
|
-
padding: calc(${
|
|
549
|
+
padding: calc(${_.verticalPadding} - 1px);
|
|
550
550
|
}
|
|
551
551
|
|
|
552
552
|
&.ft-button--outlined.ft-button--dense {
|
|
@@ -560,22 +560,22 @@
|
|
|
560
560
|
}
|
|
561
561
|
|
|
562
562
|
ft-loader {
|
|
563
|
-
${(0,
|
|
564
|
-
${(0,
|
|
563
|
+
${(0,R.setVariable)(Ur.size,_.iconSize)};
|
|
564
|
+
${(0,R.setVariable)(Ur.color,"var(--button-internal-color)")};
|
|
565
565
|
}
|
|
566
|
-
`;var
|
|
566
|
+
`;var X=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},S=class t extends(0,Ft.toFtFormComponent)(Ft.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--no-text":!this.hasTextContent,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.ariaExpanded=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let n={"ft-button--label":!0,"ft-safari-ellipsis-fix":Ft.isSafari},s=cr.html`
|
|
567
567
|
<ft-ripple part="ripple"
|
|
568
568
|
?disabled=${this.isDisabled()}
|
|
569
569
|
?activated=${this.activated}
|
|
570
570
|
></ft-ripple>
|
|
571
571
|
<ft-typography part="label"
|
|
572
|
-
variant="${
|
|
572
|
+
variant="${se.button}"
|
|
573
573
|
element="span"
|
|
574
574
|
class="${(0,xs.classMap)(n)}">
|
|
575
575
|
<slot></slot>
|
|
576
576
|
</ft-typography>
|
|
577
577
|
${this.resolveIcon()}
|
|
578
|
-
`,o=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(o?
|
|
578
|
+
`,o=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(o?cr.html`
|
|
579
579
|
<a href="${o}"
|
|
580
580
|
target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
|
|
581
581
|
part="button"
|
|
@@ -584,7 +584,7 @@
|
|
|
584
584
|
?disabled=${this.isDisabled()}>
|
|
585
585
|
${s}
|
|
586
586
|
</a>
|
|
587
|
-
`:
|
|
587
|
+
`:cr.html`
|
|
588
588
|
<button part="button"
|
|
589
589
|
class="${(0,xs.classMap)(this.buttonClasses)}"
|
|
590
590
|
aria-label="${Ot((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
|
|
@@ -594,22 +594,22 @@
|
|
|
594
594
|
?disabled=${this.isDisabled()}>
|
|
595
595
|
${s}
|
|
596
596
|
</button>
|
|
597
|
-
`)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?
|
|
597
|
+
`)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?cr.html`
|
|
598
598
|
<ft-tooltip part="tooltip"
|
|
599
599
|
text="${this.label}"
|
|
600
600
|
position="${this.tooltipPosition}">
|
|
601
601
|
${e}
|
|
602
602
|
</ft-tooltip>
|
|
603
|
-
`:e}resolveIcon(){return this.loading?
|
|
604
|
-
<ft-loader part="loader icon"></ft-loader> `:this.icon?
|
|
603
|
+
`:e}resolveIcon(){return this.loading?cr.html`
|
|
604
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?cr.html`
|
|
605
605
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
606
|
-
`:
|
|
606
|
+
`:cr.html`
|
|
607
607
|
<slot part="icon" name="icon"></slot>
|
|
608
|
-
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};
|
|
608
|
+
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};S.elementDefinitions={"ft-ripple":k,"ft-tooltip":le,"ft-icon":J,"ft-loader":zr,"ft-typography":H};S.styles=[Ft.safariEllipsisFix,Qu,Ft.noTextSelect];S.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r instanceof ShadowRoot&&r.host?r.host.hasTextContent=e.boundingClientRect.width>0:S.labelsObserver.unobserve(e.target)}});X([(0,j.property)({type:Boolean})],S.prototype,"primary",void 0);X([(0,j.property)({type:Boolean})],S.prototype,"outlined",void 0);X([(0,j.property)({type:Boolean})],S.prototype,"dense",void 0);X([(0,j.property)({type:Boolean})],S.prototype,"round",void 0);X([(0,j.property)({type:Boolean})],S.prototype,"disabled",void 0);X([(0,j.property)()],S.prototype,"icon",void 0);X([(0,j.property)()],S.prototype,"iconVariant",void 0);X([(0,j.property)({type:Boolean})],S.prototype,"trailingIcon",void 0);X([(0,j.property)()],S.prototype,"label",void 0);X([(0,j.property)()],S.prototype,"type",void 0);X([(0,j.property)()],S.prototype,"href",void 0);X([(0,j.property)()],S.prototype,"target",void 0);X([(0,j.property)({type:Boolean})],S.prototype,"loading",void 0);X([(0,j.property)({attribute:"aria-label"})],S.prototype,"ariaLabel",void 0);X([(0,j.property)()],S.prototype,"ariaHasPopup",void 0);X([(0,j.property)({attribute:"aria-pressed"})],S.prototype,"ariaPressed",void 0);X([(0,j.property)({attribute:"aria-expanded"})],S.prototype,"ariaExpanded",void 0);X([(0,j.property)()],S.prototype,"tooltipPosition",void 0);X([(0,j.property)({type:Boolean})],S.prototype,"hideTooltip",void 0);X([(0,j.property)({type:Boolean})],S.prototype,"forceTooltip",void 0);X([(0,j.property)({type:Boolean})],S.prototype,"activated",void 0);X([(0,j.query)(".ft-button")],S.prototype,"button",void 0);X([(0,j.query)(".ft-button--label")],S.prototype,"labelContainer",void 0);X([(0,j.state)()],S.prototype,"hasTextContent",void 0);X([(0,j.query)(".ft-button--label slot")],S.prototype,"slottedContent",void 0);X([(0,j.query)("[part=tooltip]")],S.prototype,"tooltip",void 0);var Xu=c(f());var Yu={"ft-button":S};(0,Xu.customElements)(Yu);var ve={height:K.FtCssVariableFactory.create("--ft-search-input-height","","SIZE","38px"),borderRadius:K.FtCssVariableFactory.extend("--ft-search-input-border-radius","",K.designSystemVariables.borderRadiusS),desktopFiltersHeight:K.FtCssVariableFactory.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:K.FtCssVariableFactory.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:K.FtCssVariableFactory.extend("--ft-search-input-background-color","",K.designSystemVariables.colorSurface),colorOnSurface:K.FtCssVariableFactory.extend("--ft-search-input-color","",K.designSystemVariables.colorOnSurface),colorOnSurfaceMedium:K.FtCssVariableFactory.extend("--ft-search-input-placeholder-color","",K.designSystemVariables.colorOnSurfaceMedium),colorOutline:K.FtCssVariableFactory.extend("--ft-search-input-outline-color","",K.designSystemVariables.colorOutline),elevation02:K.FtCssVariableFactory.extend("--ft-search-input-elevation","",K.designSystemVariables.elevation02),focusOutlineColor:K.FtCssVariableFactory.extend("--ft-search-input-focused-outline-color","",K.designSystemVariables.colorPrimary),buttonColor:K.FtCssVariableFactory.extend("--ft-search-input-button-color","",K.designSystemVariables.colorPrimary),buttonRippleColor:K.FtCssVariableFactory.extend("--ft-search-input-button-ripple-color","",K.designSystemVariables.colorPrimary)},Ju=Zu.css`
|
|
609
609
|
* {
|
|
610
610
|
box-sizing: border-box;
|
|
611
|
-
${(0,
|
|
612
|
-
${(0,
|
|
611
|
+
${(0,K.setVariable)(_.color,ve.buttonColor)};
|
|
612
|
+
${(0,K.setVariable)(_.rippleColor,ve.buttonRippleColor)};
|
|
613
613
|
}
|
|
614
614
|
|
|
615
615
|
.ft-search-input {
|
|
@@ -617,11 +617,11 @@
|
|
|
617
617
|
display: flex;
|
|
618
618
|
flex-direction: row;
|
|
619
619
|
align-items: center;
|
|
620
|
-
height: ${
|
|
620
|
+
height: ${ve.height};
|
|
621
621
|
|
|
622
|
-
background: ${
|
|
623
|
-
border: 1px solid ${
|
|
624
|
-
border-radius: ${
|
|
622
|
+
background: ${ve.colorSurface};
|
|
623
|
+
border: 1px solid ${ve.colorOutline};
|
|
624
|
+
border-radius: ${ve.borderRadius};
|
|
625
625
|
}
|
|
626
626
|
|
|
627
627
|
.ft-search-input--input-container {
|
|
@@ -636,11 +636,11 @@
|
|
|
636
636
|
width: 100%;
|
|
637
637
|
display: grid;
|
|
638
638
|
padding: 0 8px;
|
|
639
|
-
border-radius: ${
|
|
639
|
+
border-radius: ${ve.borderRadius};
|
|
640
640
|
}
|
|
641
641
|
|
|
642
642
|
.ft-search-input--input-container:focus-within .ft-search-input--input-outline {
|
|
643
|
-
outline: 2px solid ${
|
|
643
|
+
outline: 2px solid ${ve.focusOutlineColor};
|
|
644
644
|
}
|
|
645
645
|
|
|
646
646
|
.ft-search-input--input {
|
|
@@ -648,12 +648,12 @@
|
|
|
648
648
|
width: 100%;
|
|
649
649
|
border: none;
|
|
650
650
|
background-color: transparent;
|
|
651
|
-
color: ${
|
|
651
|
+
color: ${ve.colorOnSurface};
|
|
652
652
|
outline: none;
|
|
653
653
|
}
|
|
654
654
|
|
|
655
655
|
.ft-search-input--input::placeholder {
|
|
656
|
-
color: ${
|
|
656
|
+
color: ${ve.colorOnSurfaceMedium};
|
|
657
657
|
}
|
|
658
658
|
|
|
659
659
|
.ft-search-input--actions {
|
|
@@ -667,7 +667,7 @@
|
|
|
667
667
|
.ft-search-input > ft-button,
|
|
668
668
|
.ft-search-input--actions ft-button {
|
|
669
669
|
flex-shrink: 0;
|
|
670
|
-
${(0,
|
|
670
|
+
${(0,K.setVariable)(_.backgroundColor,"transparent")};
|
|
671
671
|
}
|
|
672
672
|
|
|
673
673
|
.ft-search-input .ft-search-input--launch-search,
|
|
@@ -677,9 +677,9 @@
|
|
|
677
677
|
|
|
678
678
|
.ft-search-input--separator {
|
|
679
679
|
height: 20px;
|
|
680
|
-
border-right: 1px solid ${
|
|
680
|
+
border-right: 1px solid ${ve.colorOutline};
|
|
681
681
|
}
|
|
682
|
-
`;var
|
|
682
|
+
`;var dr=c(f()),sn=c(z());var zo;(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(zo||(zo={}));var ur=c(f());var _f=c(f());var Ss=class t extends Event{constructor(){super(t.eventName)}};Ss.eventName="search-context-clear-all-filters";var Vo=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},jo=class extends dr.FtContextRegistrationEvent{constructor(e){super("register-ft-search-component",e)}},ed=Symbol("registerInterval"),Ho=Symbol("registerAttempts"),Rf=40,Tf=(0,dr.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,(o=i.get("neededSearchRequests"))!==null&&o!==void 0?o:[]),(s=this.stateManager)===null||s===void 0||s.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Ho]=0,this.tryToRegisterToContext(),this[ed]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Ho]>Rf?window.clearInterval(this[ed]):(this[Ho]++,this.dispatchEvent(new jo({target:this,registrationId:this.searchRegistrationId})))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Vo([(0,sn.state)()],e.prototype,"stateManager",void 0),Vo([(0,sn.state)({hasChanged:dr.hasChanged})],e.prototype,"neededSearchRequests",void 0),Vo([(0,sn.property)()],e.prototype,"searchRegistrationId",void 0),e}),Es=class extends Tf(dr.FtLitElementRedux){};var Zt=fi.build("designedSearchInput");var lt=c(z()),Vp=c(et());var zp=c(f()),Yr=c(v());var Fp=c(v());var Bp=c(f());var V=c(v()),N=c(z()),fn=c(pr()),Q=c(f());var nd=c(v()),Vr=c(z()),As=c(f());var gt;(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(gt||(gt={}));var rd=c(v());var id=rd.css`
|
|
683
683
|
.ft-size-watcher--pixel {
|
|
684
684
|
width: 0;
|
|
685
685
|
height: 0;
|
|
@@ -698,11 +698,11 @@
|
|
|
698
698
|
.ft-size-watcher--local .ft-size-watcher--watcher {
|
|
699
699
|
width: 100%;
|
|
700
700
|
}
|
|
701
|
-
`;var on=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},
|
|
701
|
+
`;var on=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,r){super("change",{detail:{size:e,category:r}})}},it=class extends As.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=gt.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new As.Debouncer}render(){return nd.html`
|
|
702
702
|
<div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
|
|
703
703
|
<div class="ft-size-watcher--watcher"></div>
|
|
704
704
|
</div>
|
|
705
|
-
`}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
|
|
705
|
+
`}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 qo(this.size,this.category)))},this.debounceTimeout)}};it.elementDefinitions={};it.styles=id;on([(0,Vr.property)({type:Number})],it.prototype,"debounceTimeout",void 0);on([(0,Vr.property)({type:Boolean})],it.prototype,"local",void 0);on([(0,Vr.property)({type:Number,reflect:!0})],it.prototype,"size",void 0);on([(0,Vr.property)({type:String,reflect:!0})],it.prototype,"category",void 0);on([(0,Vr.query)(".ft-size-watcher--watcher")],it.prototype,"watcher",void 0);var od=c(f());var sd={"ft-size-watcher":it};(0,od.customElements)(sd);var Wo=c(f());function Cs(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function ad(t){return Cs(t).split("|").pop()}function ld(t){return Cs(t).split("|").join(" > ")}function cd(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>cd(r,t.selected)),value:t.value}}function ud(t){return(0,Wo.flatDeep)(t.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]}).filter(e=>e.selected).map(e=>e.label)}function Ko(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>cd(e,!1))}}function dd(t){return(0,Wo.flatDeep)(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var pd=c(v()),G=c(f());var an={buttonMoreColor:G.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",G.designSystemVariables.colorOnSurface),borderRadiusM:G.FtCssVariableFactory.external(G.designSystemVariables.borderRadiusM,"Design system"),colorOutline:G.FtCssVariableFactory.external(G.designSystemVariables.colorOutline,"Design system"),colorOnSurface:G.FtCssVariableFactory.external(G.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:G.FtCssVariableFactory.external(G.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:G.FtCssVariableFactory.external(G.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:G.FtCssVariableFactory.external(G.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:G.FtCssVariableFactory.external(G.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:G.FtCssVariableFactory.external(fe.fontFamily,"Body2 typography"),fontSize:G.FtCssVariableFactory.external(fe.fontSize,"Body2 typography"),fontWeight:G.FtCssVariableFactory.external(fe.fontWeight,"Body2 typography"),letterSpacing:G.FtCssVariableFactory.external(fe.letterSpacing,"Body2 typography"),lineHeight:G.FtCssVariableFactory.external(fe.lineHeight,"Body2 typography"),textTransform:G.FtCssVariableFactory.external(fe.textTransform,"Body2 typography")},hd=pd.css`
|
|
706
706
|
.ft-filter-level--container {
|
|
707
707
|
display: flex;
|
|
708
708
|
flex-direction: column;
|
|
@@ -753,7 +753,7 @@
|
|
|
753
753
|
}
|
|
754
754
|
|
|
755
755
|
ft-button {
|
|
756
|
-
${(0,
|
|
756
|
+
${(0,G.setVariable)(_.color,an.colorOnSurface)};
|
|
757
757
|
}
|
|
758
758
|
|
|
759
759
|
.ft-filter-level--display-buttons {
|
|
@@ -765,7 +765,7 @@
|
|
|
765
765
|
ft-button.ft-filter-level--display-less {
|
|
766
766
|
flex: 1 1 0;
|
|
767
767
|
min-width: 0;
|
|
768
|
-
${(0,
|
|
768
|
+
${(0,G.setVariable)(_.color,an.buttonMoreColor)};
|
|
769
769
|
}
|
|
770
770
|
|
|
771
771
|
ft-radio, ft-checkbox {
|
|
@@ -781,7 +781,7 @@
|
|
|
781
781
|
margin: 10px 0;
|
|
782
782
|
color: ${an.colorOnSurfaceMedium};
|
|
783
783
|
}
|
|
784
|
-
`;var
|
|
784
|
+
`;var jr=c(v()),oe=c(z()),ue=c(f());var Re=c(v()),Te=c(z()),Ld=c(pr()),Ye=c(f());var ws=c(v()),yt=c(z()),gd=c(f()),yd=c(et());var Se=c(f()),fd=c(v());var nt={textColor:Se.FtCssVariableFactory.extend("--ft-checkbox-text-color","",Se.designSystemVariables.colorOnSurfaceHigh),fontSize:Se.FtCssVariableFactory.extend("--ft-checkbox-font-size","",y.fontSize),activeColor:Se.FtCssVariableFactory.extend("--ft-checkbox-active-color","",Se.designSystemVariables.colorPrimary),checkColor:Se.FtCssVariableFactory.extend("--ft-checkbox-check-color","",Se.designSystemVariables.colorOnPrimary),borderColor:Se.FtCssVariableFactory.extend("--ft-checkbox-border-color","",Se.designSystemVariables.colorOnSurfaceMedium),disabledColor:Se.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",Se.designSystemVariables.colorOnSurfaceDisabled),errorColor:Se.FtCssVariableFactory.extend("--ft-checkbox-error-color","",Se.designSystemVariables.colorError)},md=fd.css`
|
|
785
785
|
* {
|
|
786
786
|
box-sizing: border-box;
|
|
787
787
|
}
|
|
@@ -862,7 +862,7 @@
|
|
|
862
862
|
|
|
863
863
|
.ft-checkbox.ft-checkbox--error {
|
|
864
864
|
color: ${nt.errorColor};
|
|
865
|
-
${(0,
|
|
865
|
+
${(0,Se.setVariable)(U.color,nt.errorColor)};
|
|
866
866
|
|
|
867
867
|
.ft-checkbox--box {
|
|
868
868
|
border-color: ${nt.errorColor};
|
|
@@ -876,14 +876,14 @@
|
|
|
876
876
|
}
|
|
877
877
|
|
|
878
878
|
.ft-checkbox:has(:focus-visible) {
|
|
879
|
-
outline: 2px solid ${
|
|
879
|
+
outline: 2px solid ${Se.designSystemVariables.colorPrimary};
|
|
880
880
|
outline-offset: -2px;
|
|
881
881
|
}
|
|
882
882
|
|
|
883
883
|
.ft-checkbox ft-typography {
|
|
884
884
|
padding-right: 2px;
|
|
885
885
|
}
|
|
886
|
-
`;var Bt=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},
|
|
886
|
+
`;var Bt=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})}},Ee=class extends gd.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1,this.ariaLabel=null}get checkboxClasses(){return{"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.indeterminate?!1:this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled}}renderBoxContainer(){return ws.html`
|
|
887
887
|
<div class="ft-checkbox--box-container" part="checkbox-box-container">
|
|
888
888
|
<ft-ripple part="checkbox-ripple"
|
|
889
889
|
?disabled=${this.disabled}
|
|
@@ -907,9 +907,9 @@
|
|
|
907
907
|
>
|
|
908
908
|
</div>
|
|
909
909
|
`}render(){return ws.html`
|
|
910
|
-
<label class="${(0,
|
|
910
|
+
<label class="${(0,yd.classMap)(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
|
|
911
911
|
${this.renderBoxContainer()}
|
|
912
|
-
<ft-typography variant="${
|
|
912
|
+
<ft-typography variant="${se.body2}" part="checkbox-body">
|
|
913
913
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
914
914
|
</ft-typography>
|
|
915
915
|
</label>
|
|
@@ -918,15 +918,15 @@
|
|
|
918
918
|
<path class="ft-checkbox--checkmark-path" fill="none"
|
|
919
919
|
d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
|
|
920
920
|
</svg>
|
|
921
|
-
`}onSlotchange(){this.requestUpdate()}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new
|
|
921
|
+
`}onSlotchange(){this.requestUpdate()}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new Go(this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};Ee.elementDefinitions={"ft-ripple":k,"ft-typography":H};Ee.styles=md;Bt([(0,yt.property)()],Ee.prototype,"name",void 0);Bt([(0,yt.property)()],Ee.prototype,"value",void 0);Bt([(0,yt.property)({type:Boolean,reflect:!0})],Ee.prototype,"checked",void 0);Bt([(0,yt.property)({type:Boolean})],Ee.prototype,"indeterminate",void 0);Bt([(0,yt.property)({type:Boolean})],Ee.prototype,"disabled",void 0);Bt([(0,yt.property)({type:Boolean})],Ee.prototype,"error",void 0);Bt([(0,yt.property)({attribute:"aria-label"})],Ee.prototype,"ariaLabel",void 0);Bt([(0,yt.query)(".ft-checkbox")],Ee.prototype,"container",void 0);Bt([(0,yt.query)("ft-ripple")],Ee.prototype,"ripple",void 0);Bt([(0,yt.query)("input")],Ee.prototype,"input",void 0);var vd=c(f());var bd={"ft-checkbox":Ee};(0,vd.customElements)(bd);var Ed=c(v()),Ut=c(z()),Ad=c(f()),Cd=c(et());var xd=c(v()),Qe=c(f());var hr={textColor:Qe.FtCssVariableFactory.extend("--ft-radio-text-color","",Qe.designSystemVariables.colorOnSurfaceHigh),fontSize:Qe.FtCssVariableFactory.extend("--ft-radio-font-size","",y.fontSize),colorPrimary:Qe.FtCssVariableFactory.external(Qe.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:Qe.FtCssVariableFactory.external(Qe.designSystemVariables.colorOnPrimary,"Design system"),borderColor:Qe.FtCssVariableFactory.extend("--ft-radio-border-color","",Qe.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:Qe.FtCssVariableFactory.external(Qe.designSystemVariables.colorOnSurfaceDisabled,"Design system")},Sd=xd.css`
|
|
922
922
|
* {
|
|
923
923
|
box-sizing: border-box;
|
|
924
924
|
}
|
|
925
925
|
|
|
926
926
|
.ft-radio {
|
|
927
927
|
box-sizing: border-box;
|
|
928
|
-
color: ${
|
|
929
|
-
font-size: ${
|
|
928
|
+
color: ${hr.textColor};
|
|
929
|
+
font-size: ${hr.fontSize};
|
|
930
930
|
|
|
931
931
|
display: inline-flex;
|
|
932
932
|
align-items: center;
|
|
@@ -934,7 +934,7 @@
|
|
|
934
934
|
}
|
|
935
935
|
|
|
936
936
|
.ft-radio--disabled {
|
|
937
|
-
color: ${
|
|
937
|
+
color: ${hr.colorOnSurfaceDisabled};
|
|
938
938
|
}
|
|
939
939
|
|
|
940
940
|
input {
|
|
@@ -957,7 +957,7 @@
|
|
|
957
957
|
}
|
|
958
958
|
|
|
959
959
|
.ft-radio--box {
|
|
960
|
-
border: 2px solid ${
|
|
960
|
+
border: 2px solid ${hr.borderColor};
|
|
961
961
|
border-radius: 50%;
|
|
962
962
|
|
|
963
963
|
display: flex;
|
|
@@ -970,7 +970,7 @@
|
|
|
970
970
|
|
|
971
971
|
.ft-radio--box:after {
|
|
972
972
|
content: " ";
|
|
973
|
-
background-color: ${
|
|
973
|
+
background-color: ${hr.colorPrimary};
|
|
974
974
|
|
|
975
975
|
border-radius: 50%;
|
|
976
976
|
|
|
@@ -982,7 +982,7 @@
|
|
|
982
982
|
}
|
|
983
983
|
|
|
984
984
|
.ft-radio--checked .ft-radio--box {
|
|
985
|
-
border-color: ${
|
|
985
|
+
border-color: ${hr.colorPrimary};
|
|
986
986
|
}
|
|
987
987
|
|
|
988
988
|
|
|
@@ -991,24 +991,24 @@
|
|
|
991
991
|
}
|
|
992
992
|
|
|
993
993
|
.ft-radio--disabled .ft-radio--box {
|
|
994
|
-
border-color: ${
|
|
994
|
+
border-color: ${hr.colorOnSurfaceDisabled};
|
|
995
995
|
background-color: transparent;
|
|
996
996
|
}
|
|
997
997
|
|
|
998
998
|
.ft-radio--disabled .ft-radio--box:after {
|
|
999
|
-
background-color: ${
|
|
999
|
+
background-color: ${hr.colorOnSurfaceDisabled};
|
|
1000
1000
|
}
|
|
1001
1001
|
|
|
1002
1002
|
.ft-radio:has(:focus-visible) {
|
|
1003
|
-
outline: 2px solid ${
|
|
1003
|
+
outline: 2px solid ${Qe.designSystemVariables.colorPrimary};
|
|
1004
1004
|
outline-offset: -2px;
|
|
1005
1005
|
}
|
|
1006
1006
|
|
|
1007
1007
|
.ft-radio ft-typography {
|
|
1008
1008
|
padding-right: 2px;
|
|
1009
1009
|
}
|
|
1010
|
-
`;var
|
|
1011
|
-
<div class="${(0,
|
|
1010
|
+
`;var fr=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},Os=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},Ae=class extends Ad.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 Ed.html`
|
|
1011
|
+
<div class="${(0,Cd.classMap)(this.radioClasses)}"
|
|
1012
1012
|
@click=${this.onClick}>
|
|
1013
1013
|
<div class="ft-radio--box-container">
|
|
1014
1014
|
<ft-ripple
|
|
@@ -1028,12 +1028,12 @@
|
|
|
1028
1028
|
>
|
|
1029
1029
|
</div>
|
|
1030
1030
|
<label for="radio-button" inert>
|
|
1031
|
-
<ft-typography variant="${
|
|
1031
|
+
<ft-typography variant="${se.body2}">
|
|
1032
1032
|
<slot></slot>
|
|
1033
1033
|
</ft-typography>
|
|
1034
1034
|
</label>
|
|
1035
1035
|
</div>
|
|
1036
|
-
`}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new Os(this.value,this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Os(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(e){var r;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};
|
|
1036
|
+
`}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new Os(this.value,this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Os(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(e){var r;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};Ae.elementDefinitions={"ft-ripple":k,"ft-typography":H};Ae.styles=Sd;fr([(0,Ut.property)()],Ae.prototype,"name",void 0);fr([(0,Ut.property)()],Ae.prototype,"value",void 0);fr([(0,Ut.property)({type:Boolean,reflect:!0})],Ae.prototype,"checked",void 0);fr([(0,Ut.property)({attribute:"aria-checked",reflect:!0})],Ae.prototype,"ariaChecked",void 0);fr([(0,Ut.property)({type:Boolean})],Ae.prototype,"disabled",void 0);fr([(0,Ut.query)(".ft-radio")],Ae.prototype,"container",void 0);fr([(0,Ut.query)("ft-ripple")],Ae.prototype,"ripple",void 0);fr([(0,Ut.query)("input")],Ae.prototype,"input",void 0);var _d=c(f()),mr=c(z()),Rd=c(v());var wd=c(v());var Od=wd.css`
|
|
1037
1037
|
:host {
|
|
1038
1038
|
display: block;
|
|
1039
1039
|
}
|
|
@@ -1041,14 +1041,14 @@
|
|
|
1041
1041
|
:host(:focus-visible) {
|
|
1042
1042
|
outline: none;
|
|
1043
1043
|
}
|
|
1044
|
-
`;var ln=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
|
|
1044
|
+
`;var ln=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 _d.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 Rd.html`
|
|
1045
1045
|
<slot @slotchange=${this.onSlotChange}
|
|
1046
1046
|
@change=${this.onChange}
|
|
1047
1047
|
@keydown=${this.onKeyDown}
|
|
1048
1048
|
></slot>
|
|
1049
|
-
`}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=
|
|
1049
|
+
`}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=Od;ln([(0,mr.property)()],st.prototype,"name",void 0);ln([(0,mr.property)({reflect:!0,attribute:"role"})],st.prototype,"role",void 0);ln([(0,mr.property)({reflect:!0,attribute:"aria-labelledby"})],st.prototype,"ariaLabelledBy",void 0);ln([(0,mr.queryAssignedElements)()],st.prototype,"assignedElements",void 0);ln([(0,mr.state)()],st.prototype,"currentSelectedIndex",void 0);var kd=c(f());var Td={"ft-radio":Ae,"ft-radio-group":st};(0,kd.customElements)(Td);var gr=fi.build("designedFilterComponent");var ze=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={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"},"less-filters-button-pressed":{label:"Revealing less filters",defaultEventName:"filters-click_see_less",defaultComponentId:"ft-filter-level"}},ce=class extends(0,Ye.withAnalytics)(hi((0,Ye.withAriaNotification)(Ye.FtLitElement)),Qo){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.displayedValuesMinimum=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new Ye.Debouncer(500)}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesMinimum>0?this.displayedPages*this.displayedValuesMinimum: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),r=e.length<this.filteredOptions.length,i=this.displayedValuesMinimum>0&&e.length>this.displayedValuesMinimum;return Re.html`
|
|
1050
1050
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
1051
|
-
${this.parent==null?null:
|
|
1051
|
+
${this.parent==null?null:Re.html`
|
|
1052
1052
|
<div tabindex="0"
|
|
1053
1053
|
part="controls go-back"
|
|
1054
1054
|
class="ft-filter-level--go-back"
|
|
@@ -1059,18 +1059,18 @@
|
|
|
1059
1059
|
@click=${this.goBackOnClick}>
|
|
1060
1060
|
<ft-ripple></ft-ripple>
|
|
1061
1061
|
<ft-icon>thin_arrow_left</ft-icon>
|
|
1062
|
-
<ft-typography variant="${
|
|
1062
|
+
<ft-typography variant="${se.body2}">${this.parent.label}</ft-typography>
|
|
1063
1063
|
</div>
|
|
1064
1064
|
`}
|
|
1065
|
-
${this.filteredOptions.length===0?
|
|
1066
|
-
<ft-typography class="ft-filter-level--no-values" element="span" variant="${
|
|
1067
|
-
${
|
|
1065
|
+
${this.filteredOptions.length===0?Re.html`
|
|
1066
|
+
<ft-typography class="ft-filter-level--no-values" element="span" variant="${se.body2}">
|
|
1067
|
+
${gr.messages.noFilterValuesAvailable()}
|
|
1068
1068
|
</ft-typography>
|
|
1069
|
-
`:
|
|
1070
|
-
${(0,
|
|
1069
|
+
`:Re.nothing}
|
|
1070
|
+
${(0,Ld.repeat)(e,n=>n.value,n=>{var s;return Re.html`
|
|
1071
1071
|
<div class="ft-filter-level--option" part="options" tabindex="-1">
|
|
1072
1072
|
${this.multivalued?this.buildMultiValuedOption(n):this.buildMonoValuedOption(n)}
|
|
1073
|
-
${this.preventNavigation||n.selected||((s=n.subOptions)!==null&&s!==void 0?s:[]).length===0?
|
|
1073
|
+
${this.preventNavigation||n.selected||((s=n.subOptions)!==null&&s!==void 0?s:[]).length===0?Re.nothing:Re.html`
|
|
1074
1074
|
<ft-button icon="thin_arrow_right"
|
|
1075
1075
|
part="controls navigate-hierarchy"
|
|
1076
1076
|
aria-label="Expand node"
|
|
@@ -1081,43 +1081,43 @@
|
|
|
1081
1081
|
`}
|
|
1082
1082
|
</div>
|
|
1083
1083
|
`})}
|
|
1084
|
-
${r||i?
|
|
1084
|
+
${r||i?Re.html`
|
|
1085
1085
|
<div class="ft-filter-level--display-buttons" part="controls-container">
|
|
1086
|
-
${i?
|
|
1086
|
+
${i?Re.html`
|
|
1087
1087
|
<ft-button
|
|
1088
1088
|
class="ft-filter-level--display-less"
|
|
1089
1089
|
icon="thin_arrow_up"
|
|
1090
1090
|
dense trailingIcon
|
|
1091
1091
|
part="controls display-less"
|
|
1092
1092
|
@click=${()=>{this.emitAnalyticsAction("less-filters-button-pressed",{}),this.displayLess()}}>
|
|
1093
|
-
${
|
|
1093
|
+
${gr.messages.displayLessFilterValuesButton()}
|
|
1094
1094
|
</ft-button>
|
|
1095
|
-
`:
|
|
1096
|
-
${r?
|
|
1095
|
+
`:Re.nothing}
|
|
1096
|
+
${r?Re.html`
|
|
1097
1097
|
<ft-button
|
|
1098
1098
|
class="ft-filter-level--display-more"
|
|
1099
1099
|
icon="thin_arrow"
|
|
1100
1100
|
dense trailingIcon
|
|
1101
1101
|
part="controls display-more"
|
|
1102
1102
|
@click=${()=>{this.emitAnalyticsAction("more-filters-button-pressed",{}),this.displayMore()}}>
|
|
1103
|
-
${
|
|
1103
|
+
${gr.messages.displayMoreFilterValuesButton()}
|
|
1104
1104
|
</ft-button>
|
|
1105
|
-
`:
|
|
1105
|
+
`:Re.nothing}
|
|
1106
1106
|
</div>
|
|
1107
|
-
`:
|
|
1107
|
+
`:Re.nothing}
|
|
1108
1108
|
</div>
|
|
1109
|
-
`}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"]`}}displayLess(){this.displayedPages=1,this.elementToFocus={selector:".ft-filter-level--display-more"}}buildMultiValuedOption(e){var r;return
|
|
1109
|
+
`}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"]`}}displayLess(){this.displayedPages=1,this.elementToFocus={selector:".ft-filter-level--display-more"}}buildMultiValuedOption(e){var r;return Re.html`
|
|
1110
1110
|
<ft-checkbox name="${this.filterId}"
|
|
1111
1111
|
part="multivalued-option option"
|
|
1112
1112
|
.exportpartsPrefixes=${["multivalued-option","option"]}
|
|
1113
1113
|
data-value="${e.value}"
|
|
1114
1114
|
.checked=${e.selected}
|
|
1115
1115
|
.disabled=${this.disabled}
|
|
1116
|
-
.indeterminate=${(0,
|
|
1116
|
+
.indeterminate=${(0,Ye.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)}
|
|
1117
1117
|
@change=${i=>this.optionsChanged(i,e)}>
|
|
1118
1118
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1119
1119
|
</ft-checkbox>
|
|
1120
|
-
`}buildMonoValuedOption(e){return
|
|
1120
|
+
`}buildMonoValuedOption(e){return Re.html`
|
|
1121
1121
|
<ft-radio name="${this.filterId+Math.round(Math.random()*1e6)}"
|
|
1122
1122
|
part="monovalued-option option"
|
|
1123
1123
|
data-value="${e.value}"
|
|
@@ -1128,7 +1128,7 @@
|
|
|
1128
1128
|
@change=${r=>this.optionsChanged(r,e)}>
|
|
1129
1129
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1130
1130
|
</ft-radio>
|
|
1131
|
-
`}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};
|
|
1131
|
+
`}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};ce.elementDefinitions={"ft-button":S,"ft-ripple":k,"ft-typography":H,"ft-checkbox":Ee,"ft-icon":J,"ft-radio":Ae};ce.styles=hd;ze([(0,Te.property)({type:String})],ce.prototype,"filterId",void 0);ze([(0,Te.property)({type:Object})],ce.prototype,"parent",void 0);ze([(0,Te.property)({type:Array,hasChanged:Ye.hasChanged})],ce.prototype,"options",void 0);ze([(0,Te.property)({type:Boolean})],ce.prototype,"multivalued",void 0);ze([(0,Te.property)({type:Boolean})],ce.prototype,"disabled",void 0);ze([(0,Te.property)({type:Boolean})],ce.prototype,"hideSelectedOptions",void 0);ze([(0,Te.property)({type:Boolean})],ce.prototype,"displayCount",void 0);ze([(0,Te.property)({type:Boolean})],ce.prototype,"preventNavigation",void 0);ze([(0,Te.property)({type:String})],ce.prototype,"filter",void 0);ze([(0,Te.property)()],ce.prototype,"filteredOptionsNumberAriaNotification",void 0);ze([(0,Ye.numberProperty)()],ce.prototype,"displayedValuesMinimum",void 0);ze([(0,Te.query)(".ft-filter-level--container")],ce.prototype,"container",void 0);ze([(0,Te.state)()],ce.prototype,"radios",void 0);ze([(0,Te.state)()],ce.prototype,"displayedPages",void 0);ze([(0,Te.state)()],ce.prototype,"filteredOptions",void 0);var Dd=c(v()),ot=c(z()),Hr=c(f());var Pd=c(et());var $d=c(v()),Rt=c(f());var Ve={buttonsColor:Rt.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",Rt.designSystemVariables.colorPrimary),buttonsZIndex:Rt.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:Rt.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Rt.FtCssVariableFactory.external(Rt.designSystemVariables.colorSurface,"Design system")},Id=$d.css`
|
|
1132
1132
|
.ft-snap-scroll {
|
|
1133
1133
|
box-sizing: border-box;
|
|
1134
1134
|
position: relative;
|
|
@@ -1163,7 +1163,7 @@
|
|
|
1163
1163
|
flex-wrap: nowrap;
|
|
1164
1164
|
align-items: flex-start;
|
|
1165
1165
|
justify-content: flex-start;
|
|
1166
|
-
gap: ${
|
|
1166
|
+
gap: ${Ve.gap};
|
|
1167
1167
|
}
|
|
1168
1168
|
|
|
1169
1169
|
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
|
|
@@ -1206,11 +1206,11 @@
|
|
|
1206
1206
|
.ft-snap-scroll--next {
|
|
1207
1207
|
position: absolute;
|
|
1208
1208
|
display: flex;
|
|
1209
|
-
z-index: ${
|
|
1209
|
+
z-index: ${Ve.buttonsZIndex};
|
|
1210
1210
|
opacity: 1;
|
|
1211
1211
|
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
1212
|
-
${(0,Rt.setVariable)(
|
|
1213
|
-
${(0,Rt.setVariable)(
|
|
1212
|
+
${(0,Rt.setVariable)(_.backgroundColor,"transparent")};
|
|
1213
|
+
${(0,Rt.setVariable)(_.color,Ve.buttonsColor)};
|
|
1214
1214
|
}
|
|
1215
1215
|
|
|
1216
1216
|
.ft-snap-scroll--previous[hidden],
|
|
@@ -1223,37 +1223,37 @@
|
|
|
1223
1223
|
top: 0;
|
|
1224
1224
|
left: -1px;
|
|
1225
1225
|
bottom: 0;
|
|
1226
|
-
background: linear-gradient(to right, ${
|
|
1226
|
+
background: linear-gradient(to right, ${Ve.colorSurface} 50%, var(--snap-scroll-transparent-color));
|
|
1227
1227
|
}
|
|
1228
1228
|
|
|
1229
1229
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous {
|
|
1230
1230
|
top: -1px;
|
|
1231
1231
|
left: 0;
|
|
1232
1232
|
right: 0;
|
|
1233
|
-
background: linear-gradient(to bottom, ${
|
|
1233
|
+
background: linear-gradient(to bottom, ${Ve.colorSurface} 50%, var(--snap-scroll-transparent-color));
|
|
1234
1234
|
}
|
|
1235
1235
|
|
|
1236
1236
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next {
|
|
1237
1237
|
top: 0;
|
|
1238
1238
|
right: -1px;
|
|
1239
1239
|
bottom: 0;
|
|
1240
|
-
background: linear-gradient(to left, ${
|
|
1240
|
+
background: linear-gradient(to left, ${Ve.colorSurface} 50%, var(--snap-scroll-transparent-color));
|
|
1241
1241
|
}
|
|
1242
1242
|
|
|
1243
1243
|
.ft-snap-scroll--vertical .ft-snap-scroll--next {
|
|
1244
1244
|
left: 0;
|
|
1245
1245
|
right: 0;
|
|
1246
1246
|
bottom: -1px;
|
|
1247
|
-
background: linear-gradient(to top, ${
|
|
1247
|
+
background: linear-gradient(to top, ${Ve.colorSurface} 50%, var(--snap-scroll-transparent-color));
|
|
1248
1248
|
}
|
|
1249
1249
|
|
|
1250
1250
|
.ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
|
|
1251
1251
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
|
|
1252
1252
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
|
|
1253
1253
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1254
|
-
background-color: ${
|
|
1254
|
+
background-color: ${Ve.colorSurface};
|
|
1255
1255
|
}
|
|
1256
|
-
`;var zt=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},
|
|
1256
|
+
`;var zt=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},Yo=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},ge=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,Pd.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 Dd.html`
|
|
1257
1257
|
<div part="container" class="${e}">
|
|
1258
1258
|
<ft-button
|
|
1259
1259
|
class="ft-snap-scroll--previous"
|
|
@@ -1277,7 +1277,7 @@
|
|
|
1277
1277
|
@click=${this.next}
|
|
1278
1278
|
></ft-button>
|
|
1279
1279
|
</div>
|
|
1280
|
-
`}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new
|
|
1280
|
+
`}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new Yo(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let r=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var r,i;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,r;this.elements=(r=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(i=>i))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let r=0;r<this.elements.length;r++)(e<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[e]))&&(e=r);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let r=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-r)}};ge.elementDefinitions={"ft-button":S};ge.styles=Id;zt([(0,ot.property)({type:Boolean})],ge.prototype,"horizontal",void 0);zt([(0,ot.property)({type:Boolean})],ge.prototype,"hideScrollbar",void 0);zt([(0,ot.property)({type:Boolean})],ge.prototype,"controls",void 0);zt([(0,ot.property)({type:Boolean})],ge.prototype,"limitSize",void 0);zt([(0,ot.state)()],ge.prototype,"elements",void 0);zt([(0,ot.state)()],ge.prototype,"currentElement",void 0);zt([(0,ot.state)()],ge.prototype,"withScroll",void 0);zt([(0,ot.state)()],ge.prototype,"startReached",void 0);zt([(0,ot.state)()],ge.prototype,"endReached",void 0);zt([(0,ot.query)(".ft-snap-scroll--content")],ge.prototype,"contentSlot",void 0);var Nd=c(f());var Md={"ft-snap-scroll":ge};(0,Nd.customElements)(Md);var Fd=c(v()),ee=c(f());var Xe={colorOutline:ee.FtCssVariableFactory.external(ee.designSystemVariables.colorOutline,"Design system"),colorOnSurface:ee.FtCssVariableFactory.external(ee.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:ee.FtCssVariableFactory.external(ee.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:ee.FtCssVariableFactory.external(ee.designSystemVariables.colorPrimary,"Design system"),colorSurface:ee.FtCssVariableFactory.external(ee.designSystemVariables.colorSurface,"Design system"),transitionDuration:ee.FtCssVariableFactory.external(ee.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:ee.FtCssVariableFactory.external(ee.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:ee.FtCssVariableFactory.extend("--ft-filter-label-color","",ee.designSystemVariables.colorOnSurface),labelFontSize:ee.FtCssVariableFactory.extend("--ft-filter-label-font-size","",y.fontSize,"16px")},Bd=[tr,ee.noTextInputDefaultClearButton,Fd.css`
|
|
1281
1281
|
:host {
|
|
1282
1282
|
display: flex;
|
|
1283
1283
|
max-height: 100%;
|
|
@@ -1305,7 +1305,7 @@
|
|
|
1305
1305
|
.ft-filter--header ft-button {
|
|
1306
1306
|
flex-shrink: 0;
|
|
1307
1307
|
margin-left: auto;
|
|
1308
|
-
${(0,
|
|
1308
|
+
${(0,ee.setVariable)(_.iconSize,"18px")};
|
|
1309
1309
|
}
|
|
1310
1310
|
|
|
1311
1311
|
.filter-label {
|
|
@@ -1317,10 +1317,10 @@
|
|
|
1317
1317
|
flex-shrink: 1;
|
|
1318
1318
|
flex-grow: 1;
|
|
1319
1319
|
word-break: break-word;
|
|
1320
|
-
color: ${
|
|
1321
|
-
font-size: ${
|
|
1322
|
-
${(0,
|
|
1323
|
-
${(0,
|
|
1320
|
+
color: ${Xe.labelColor};
|
|
1321
|
+
font-size: ${Xe.labelFontSize};
|
|
1322
|
+
${(0,ee.setVariable)(y.lineHeight,"22px")};
|
|
1323
|
+
${(0,ee.setVariable)(y.fontWeight,"bold")};
|
|
1324
1324
|
}
|
|
1325
1325
|
|
|
1326
1326
|
.ft-filter--filter {
|
|
@@ -1331,8 +1331,8 @@
|
|
|
1331
1331
|
padding: 0 10px;
|
|
1332
1332
|
overflow: hidden;
|
|
1333
1333
|
height: 32px;
|
|
1334
|
-
transition: height ${
|
|
1335
|
-
margin ${
|
|
1334
|
+
transition: height ${Xe.transitionDuration} ${Xe.transitionTimingFunction},
|
|
1335
|
+
margin ${Xe.transitionDuration} ${Xe.transitionTimingFunction};
|
|
1336
1336
|
transition-delay: 500ms;
|
|
1337
1337
|
}
|
|
1338
1338
|
|
|
@@ -1345,15 +1345,15 @@
|
|
|
1345
1345
|
display: block;
|
|
1346
1346
|
width: 100%;
|
|
1347
1347
|
border-radius: 4px;
|
|
1348
|
-
border: 1px solid ${
|
|
1348
|
+
border: 1px solid ${Xe.colorOutline};
|
|
1349
1349
|
padding: 4px;
|
|
1350
|
-
background-color: ${
|
|
1351
|
-
color: ${
|
|
1352
|
-
outline-color: ${
|
|
1350
|
+
background-color: ${Xe.colorSurface};
|
|
1351
|
+
color: ${Xe.colorOnSurface};
|
|
1352
|
+
outline-color: ${Xe.colorPrimary};
|
|
1353
1353
|
}
|
|
1354
1354
|
|
|
1355
1355
|
input::placeholder {
|
|
1356
|
-
color: ${
|
|
1356
|
+
color: ${Xe.colorOnSurfaceMedium};
|
|
1357
1357
|
}
|
|
1358
1358
|
|
|
1359
1359
|
input:placeholder-shown {
|
|
@@ -1369,7 +1369,7 @@
|
|
|
1369
1369
|
}
|
|
1370
1370
|
|
|
1371
1371
|
.ft-filter--separator {
|
|
1372
|
-
border-top: 1px solid ${
|
|
1372
|
+
border-top: 1px solid ${Xe.colorOutline};
|
|
1373
1373
|
margin: 4px 10px;
|
|
1374
1374
|
}
|
|
1375
1375
|
|
|
@@ -1394,25 +1394,25 @@
|
|
|
1394
1394
|
slot:not([name]) {
|
|
1395
1395
|
display: none;
|
|
1396
1396
|
}
|
|
1397
|
-
`];var
|
|
1397
|
+
`];var de=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},Xo=class extends CustomEvent{constructor(e){super("change",{detail:e})}},q=class extends(0,ue.withAnalytics)(ue.FtLitElement,Qo){constructor(){super(...arguments),this.id="",this.label="",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesMinimum=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new ue.Debouncer(300),this.changeDebouncer=new ue.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,ue.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,ue.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=gr.messages.filterInputPlaceHolder(this.label);return jr.html`
|
|
1398
1398
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1399
1399
|
part="container">
|
|
1400
|
-
${!this.label&&!e?null:
|
|
1400
|
+
${!this.label&&!e?null:jr.html`
|
|
1401
1401
|
|
|
1402
1402
|
<div class="ft-filter--header" part="header">
|
|
1403
1403
|
<div class="filter-label" id="id-group-${this.id}">
|
|
1404
|
-
<ft-typography class="ft-filter--label" variant="${
|
|
1404
|
+
<ft-typography class="ft-filter--label" variant="${se.overline}" part="label">
|
|
1405
1405
|
${this.label}
|
|
1406
1406
|
</ft-typography>
|
|
1407
1407
|
<slot name="label"></slot>
|
|
1408
1408
|
</div>
|
|
1409
|
-
${e&&!this.hideClearButton?
|
|
1409
|
+
${e&&!this.hideClearButton?jr.html`
|
|
1410
1410
|
<ft-button icon="close"
|
|
1411
|
-
aria-label="${
|
|
1411
|
+
aria-label="${gr.messages.clearFilterButton()+" "+this.label}"
|
|
1412
1412
|
dense
|
|
1413
1413
|
@click=${()=>{this.clear(),this.focusOnFirstOption()}}
|
|
1414
1414
|
part="clear-button">
|
|
1415
|
-
${
|
|
1415
|
+
${gr.messages.clearFilterButton()}
|
|
1416
1416
|
</ft-button>
|
|
1417
1417
|
`:null}
|
|
1418
1418
|
</div>
|
|
@@ -1435,8 +1435,8 @@
|
|
|
1435
1435
|
@slotchange=${this.updateOptionsFromSlot}
|
|
1436
1436
|
@option-change=${this.optionsChanged}></slot>
|
|
1437
1437
|
</div>
|
|
1438
|
-
`}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
|
|
1439
|
-
${this.raiseSelectedOptions&&r.length>0?
|
|
1438
|
+
`}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`
|
|
1439
|
+
${this.raiseSelectedOptions&&r.length>0?jr.html`
|
|
1440
1440
|
<ft-filter-level
|
|
1441
1441
|
filterId="${this.id}"
|
|
1442
1442
|
?multivalued=${this.multivalued}
|
|
@@ -1457,7 +1457,7 @@
|
|
|
1457
1457
|
${this.renderLevel(n,this.options)}
|
|
1458
1458
|
${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)})}
|
|
1459
1459
|
</ft-snap-scroll>
|
|
1460
|
-
`}renderLevel(e,r,i){return
|
|
1460
|
+
`}renderLevel(e,r,i){return jr.html`
|
|
1461
1461
|
<ft-filter-level
|
|
1462
1462
|
class="${e}"
|
|
1463
1463
|
filterId="${this.id}"
|
|
@@ -1477,21 +1477,21 @@
|
|
|
1477
1477
|
.exportpartsPrefixes=${["values","available-values"]}
|
|
1478
1478
|
.filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
|
|
1479
1479
|
></ft-filter-level>
|
|
1480
|
-
`}goBack(e){this.slideOut=e.detail.value,(0,
|
|
1480
|
+
`}goBack(e){this.slideOut=e.detail.value,(0,ue.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,ue.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,ue.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,ue.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new Xo(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)}};q.elementDefinitions={"ft-button":S,"ft-filter-level":ce,"ft-snap-scroll":ge,"ft-typography":H};q.styles=Bd;de([(0,oe.property)({type:String})],q.prototype,"id",void 0);de([(0,oe.property)({type:String})],q.prototype,"label",void 0);de([(0,ue.jsonProperty)([])],q.prototype,"options",void 0);de([(0,oe.property)({type:Boolean})],q.prototype,"multivalued",void 0);de([(0,oe.property)({type:Boolean})],q.prototype,"disabled",void 0);de([(0,oe.property)({type:Boolean})],q.prototype,"raiseSelectedOptions",void 0);de([(0,oe.property)({type:Boolean})],q.prototype,"displayCount",void 0);de([(0,ue.numberProperty)()],q.prototype,"displayedValuesMinimum",void 0);de([(0,ue.jsonProperty)(void 0)],q.prototype,"filteredOptionsNumberAriaNotification",void 0);de([(0,oe.property)({type:Boolean})],q.prototype,"hideClearButton",void 0);de([(0,oe.query)(".ft-filter--slot")],q.prototype,"slotElement",void 0);de([(0,oe.query)(".ft-filter--container")],q.prototype,"container",void 0);de([(0,oe.query)(".ft-filter--values")],q.prototype,"valuesContainer",void 0);de([(0,oe.query)(".ft-filter--levels")],q.prototype,"levelsContainer",void 0);de([(0,oe.state)()],q.prototype,"lastLevelHasHiddenvalues",void 0);de([(0,oe.query)(".ft-filter--filter input")],q.prototype,"filterInput",void 0);de([(0,oe.queryAll)(".ft-filter--levels ft-filter-level")],q.prototype,"levels",void 0);de([(0,oe.state)()],q.prototype,"withScroll",void 0);de([(0,oe.state)()],q.prototype,"filter",void 0);de([(0,oe.state)()],q.prototype,"slideIn",void 0);de([(0,oe.state)()],q.prototype,"slideOut",void 0);var _s=c(f()),qr=c(z()),Ud=c(v()),yi=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 _s.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Ud.html`
|
|
1481
1481
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1482
|
-
`}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};at.elementDefinitions={};
|
|
1482
|
+
`}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};at.elementDefinitions={};yi([(0,qr.property)({type:String})],at.prototype,"label",void 0);yi([(0,qr.property)({type:Object,converter:t=>t})],at.prototype,"value",void 0);yi([(0,qr.property)({type:Boolean,reflect:!0})],at.prototype,"selected",void 0);yi([(0,qr.property)({type:Object})],at.prototype,"subOptions",void 0);yi([(0,_s.jsonProperty)({})],at.prototype,"renderOption",void 0);yi([(0,qr.query)(".ft-filter-option--slot")],at.prototype,"slotElement",void 0);var Vd=c(f());var zd={"ft-filter":q,"ft-filter-option":at};(0,Vd.customElements)(zd);var Wd=c(v()),Rs=c(z()),Kd=c(f());var Hd=c(v());var jd=Hd.css`
|
|
1483
1483
|
.ft-accordion {
|
|
1484
1484
|
box-sizing: border-box;
|
|
1485
1485
|
}
|
|
1486
|
-
`;var
|
|
1486
|
+
`;var qd=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},Vt=class extends Kd.FtLitElement{constructor(){super(...arguments),this.multi=!1}render(){return Wd.html`
|
|
1487
1487
|
<div class="ft-accordion">
|
|
1488
1488
|
<slot @activated=${this.onChange}></slot>
|
|
1489
1489
|
</div>
|
|
1490
|
-
`}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};Vt.elementDefinitions={};Vt.styles=
|
|
1490
|
+
`}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};Vt.elementDefinitions={};Vt.styles=jd;qd([(0,Rs.property)({type:Boolean})],Vt.prototype,"multi",void 0);qd([(0,Rs.query)("slot")],Vt.prototype,"content",void 0);var cn=c(v()),un=c(z()),Yd=c(f());var Gd=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")},Qd=Gd.css`
|
|
1491
1491
|
.ft-accordion-item {
|
|
1492
1492
|
display: flex;
|
|
1493
1493
|
flex-direction: column;
|
|
1494
|
-
background-color: ${
|
|
1494
|
+
background-color: ${Wr.backgroundColor};
|
|
1495
1495
|
}
|
|
1496
1496
|
|
|
1497
1497
|
.ft-accordion-item--toggle {
|
|
@@ -1501,8 +1501,8 @@
|
|
|
1501
1501
|
display: flex;
|
|
1502
1502
|
align-items: center;
|
|
1503
1503
|
cursor: pointer;
|
|
1504
|
-
padding: ${
|
|
1505
|
-
gap: calc(${
|
|
1504
|
+
padding: ${Wr.verticalSpacing} ${Wr.horizontalSpacing};
|
|
1505
|
+
gap: calc(${Wr.horizontalSpacing} / 2);
|
|
1506
1506
|
outline: none;
|
|
1507
1507
|
}
|
|
1508
1508
|
|
|
@@ -1527,13 +1527,13 @@
|
|
|
1527
1527
|
.ft-accordion-item--active .ft-accordion-item--content {
|
|
1528
1528
|
height: initial;
|
|
1529
1529
|
overflow: visible;
|
|
1530
|
-
padding: ${
|
|
1530
|
+
padding: ${Wr.verticalSpacing} ${Wr.horizontalSpacing};
|
|
1531
1531
|
}
|
|
1532
1532
|
|
|
1533
1533
|
.ft-accordion-item--separator {
|
|
1534
|
-
border-bottom: 1px solid ${
|
|
1534
|
+
border-bottom: 1px solid ${Wr.colorOutline};
|
|
1535
1535
|
}
|
|
1536
|
-
`;var Ts=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},bt=class extends
|
|
1536
|
+
`;var Ts=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},bt=class extends Yd.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return cn.html`
|
|
1537
1537
|
<div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
|
|
1538
1538
|
<div class="ft-accordion-item--toggle"
|
|
1539
1539
|
part="toggle"
|
|
@@ -1563,7 +1563,7 @@
|
|
|
1563
1563
|
</div>
|
|
1564
1564
|
<div class="ft-accordion-item--separator" part="separator"></div>
|
|
1565
1565
|
</div>
|
|
1566
|
-
`}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};bt.elementDefinitions={"ft-ripple":
|
|
1566
|
+
`}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};bt.elementDefinitions={"ft-ripple":k,"ft-typography":H,"ft-icon":J};bt.styles=Qd;Ts([(0,un.property)()],bt.prototype,"icon",void 0);Ts([(0,un.property)()],bt.prototype,"iconVariant",void 0);Ts([(0,un.property)()],bt.prototype,"label",void 0);Ts([(0,un.property)({type:Boolean,reflect:!0})],bt.prototype,"active",void 0);var Zd=c(f());var Xd={"ft-accordion":Vt,"ft-accordion-item":bt};(0,Zd.customElements)(Xd);var Gr=c(v()),Ce=c(z()),ip=c(et()),bi=c(f());var dn=c(v()),I=c(f());var Jd=I.FtCssVariableFactory.extend("--ft-chip-color","",I.designSystemVariables.colorOnSurface),ke={backgroundColor:I.FtCssVariableFactory.extend("--ft-chip-background-color","",I.designSystemVariables.colorSurface),color:Jd,fontSize:I.FtCssVariableFactory.extend("--ft-chip-font-size","",fe.fontSize),fontWeight:I.FtCssVariableFactory.extend("--ft-chip-font-weight","",fe.fontWeight),iconSize:I.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:I.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:I.FtCssVariableFactory.extend("--ft-chip-ripple-color","",Jd),horizontalPadding:I.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:I.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:I.FtCssVariableFactory.extend("--ft-chip-border-color","",I.designSystemVariables.colorOutline),opacityDisabled:I.FtCssVariableFactory.external(I.designSystemVariables.colorOpacityDisabled,"Design system")},ep=I.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",I.FtCssVariableFactory.extend("--ft-chip-color","",I.designSystemVariables.colorOnPrimary)),Zo={backgroundColor:I.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",I.FtCssVariableFactory.extend("--ft-chip-background-color","",I.designSystemVariables.colorPrimary)),color:ep,rippleColor:I.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",ep)},tp={horizontalPadding:I.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:I.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},rp=[I.noTextSelect,dn.css`
|
|
1567
1567
|
:host {
|
|
1568
1568
|
display: inline-block;
|
|
1569
1569
|
max-width: 100%;
|
|
@@ -1579,21 +1579,21 @@
|
|
|
1579
1579
|
box-sizing: border-box;
|
|
1580
1580
|
pointer-events: auto;
|
|
1581
1581
|
|
|
1582
|
-
--chip-internal-font-size: ${
|
|
1583
|
-
--chip-internal-font-weight: ${
|
|
1582
|
+
--chip-internal-font-size: ${ke.fontSize};
|
|
1583
|
+
--chip-internal-font-weight: ${ke.fontWeight};
|
|
1584
1584
|
--chip-internal-line-height: max(20px, calc(var(--chip-internal-font-size) + 2px));
|
|
1585
|
-
${(0,
|
|
1586
|
-
--chip-internal-vertical-padding: ${
|
|
1587
|
-
--chip-internal-horizontal-padding: ${
|
|
1585
|
+
${(0,I.setVariable)(Be.size,ke.iconSize)};
|
|
1586
|
+
--chip-internal-vertical-padding: ${ke.verticalPadding};
|
|
1587
|
+
--chip-internal-horizontal-padding: ${ke.horizontalPadding};
|
|
1588
1588
|
--chip-internal-icon-padding: 3px;
|
|
1589
|
-
--chip-internal-content-height: max(var(--chip-internal-line-height), ${
|
|
1589
|
+
--chip-internal-content-height: max(var(--chip-internal-line-height), ${ke.iconSize});
|
|
1590
1590
|
|
|
1591
|
-
border: 1px solid ${
|
|
1592
|
-
color: ${
|
|
1593
|
-
${(0,
|
|
1594
|
-
border-radius: var(${(0,dn.unsafeCSS)(
|
|
1591
|
+
border: 1px solid ${ke.borderColor};
|
|
1592
|
+
color: ${ke.color};
|
|
1593
|
+
${(0,I.setVariable)(U.color,ke.rippleColor)};
|
|
1594
|
+
border-radius: var(${(0,dn.unsafeCSS)(ke.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
|
|
1595
1595
|
padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
|
|
1596
|
-
background-color: ${
|
|
1596
|
+
background-color: ${ke.backgroundColor};
|
|
1597
1597
|
line-height: var(--chip-internal-content-height);
|
|
1598
1598
|
}
|
|
1599
1599
|
|
|
@@ -1603,28 +1603,28 @@
|
|
|
1603
1603
|
|
|
1604
1604
|
.ft-chip--dense {
|
|
1605
1605
|
--chip-internal-icon-padding: 3px;
|
|
1606
|
-
--chip-internal-vertical-padding: ${
|
|
1607
|
-
--chip-internal-horizontal-padding: ${
|
|
1606
|
+
--chip-internal-vertical-padding: ${tp.verticalPadding};
|
|
1607
|
+
--chip-internal-horizontal-padding: ${tp.horizontalPadding};
|
|
1608
1608
|
--chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
|
|
1609
1609
|
}
|
|
1610
1610
|
|
|
1611
1611
|
.ft-chip--no-content {
|
|
1612
|
-
--chip-internal-horizontal-padding: ${
|
|
1612
|
+
--chip-internal-horizontal-padding: ${ke.horizontalPadding.get(dn.css`var(--chip-internal-vertical-padding)`)};
|
|
1613
1613
|
}
|
|
1614
1614
|
|
|
1615
1615
|
.ft-chip--disabled {
|
|
1616
1616
|
cursor: default;
|
|
1617
1617
|
pointer-events: none;
|
|
1618
1618
|
filter: grayscale(1);
|
|
1619
|
-
opacity: ${
|
|
1619
|
+
opacity: ${ke.opacityDisabled};
|
|
1620
1620
|
}
|
|
1621
1621
|
|
|
1622
1622
|
.ft-chip--highlighted {
|
|
1623
1623
|
border: none;
|
|
1624
1624
|
padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
|
|
1625
|
-
background-color: ${
|
|
1626
|
-
${(0,
|
|
1627
|
-
color: ${
|
|
1625
|
+
background-color: ${Zo.backgroundColor};
|
|
1626
|
+
${(0,I.setVariable)(U.color,Zo.rippleColor)};
|
|
1627
|
+
color: ${Zo.color};
|
|
1628
1628
|
}
|
|
1629
1629
|
|
|
1630
1630
|
.ft-chip--clickable {
|
|
@@ -1633,7 +1633,7 @@
|
|
|
1633
1633
|
}
|
|
1634
1634
|
|
|
1635
1635
|
.ft-chip:focus {
|
|
1636
|
-
outline: 2px solid ${
|
|
1636
|
+
outline: 2px solid ${I.designSystemVariables.colorPrimary};
|
|
1637
1637
|
outline-offset: 2px;
|
|
1638
1638
|
}
|
|
1639
1639
|
|
|
@@ -1655,9 +1655,9 @@
|
|
|
1655
1655
|
}
|
|
1656
1656
|
|
|
1657
1657
|
.ft-chip--icon-button {
|
|
1658
|
-
${(0,
|
|
1659
|
-
${(0,
|
|
1660
|
-
${(0,
|
|
1658
|
+
${(0,I.setVariable)(_.iconSize,ke.iconSize)};
|
|
1659
|
+
${(0,I.setVariable)(_.horizontalPadding,"var(--chip-internal-icon-padding)")};
|
|
1660
|
+
${(0,I.setVariable)(_.verticalPadding,"var(--chip-internal-icon-padding)")};
|
|
1661
1661
|
margin: calc((-1) * var(--chip-internal-icon-padding));
|
|
1662
1662
|
}
|
|
1663
1663
|
|
|
@@ -1665,9 +1665,9 @@
|
|
|
1665
1665
|
vertical-align: bottom;
|
|
1666
1666
|
display: block;
|
|
1667
1667
|
margin: 0 var(--chip-internal-horizontal-padding);
|
|
1668
|
-
${(0,
|
|
1669
|
-
${(0,
|
|
1670
|
-
${(0,
|
|
1668
|
+
${(0,I.setVariable)(fe.fontSize,"var(--chip-internal-font-size)")};
|
|
1669
|
+
${(0,I.setVariable)(fe.fontWeight,"var(--chip-internal-font-weight)")};
|
|
1670
|
+
${(0,I.setVariable)(fe.lineHeight,"var(--chip-internal-content-height)")};
|
|
1671
1671
|
}
|
|
1672
1672
|
|
|
1673
1673
|
.ft-chip--safari-fix .ft-chip--label {
|
|
@@ -1703,20 +1703,20 @@
|
|
|
1703
1703
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
1704
1704
|
order: -1;
|
|
1705
1705
|
}
|
|
1706
|
-
`];var
|
|
1707
|
-
<div class="${(0,
|
|
1708
|
-
aria-label="${this.labelOnIconOnly?
|
|
1706
|
+
`];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},ks=class extends CustomEvent{constructor(){super("icon-click")}},ie=class extends bi.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.accessibleLabelOnIcon=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let r={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":bi.isSafari};return Gr.html`
|
|
1707
|
+
<div class="${(0,ip.classMap)(r)}"
|
|
1708
|
+
aria-label="${this.labelOnIconOnly?Gr.nothing:this.getLabel()}"
|
|
1709
1709
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
1710
1710
|
@keyup=${this.onKeyUp}
|
|
1711
1711
|
part="chip">
|
|
1712
1712
|
<ft-ripple ?disabled=${!this.interactionsOnChip}></ft-ripple>
|
|
1713
1713
|
<ft-typography variant="${(e=this.typographyVariant)!==null&&e!==void 0?e:"body2"}" element="span" class="ft-chip--label" part="label"
|
|
1714
|
-
aria-hidden="${this.labelOnIconOnly?"true":
|
|
1714
|
+
aria-hidden="${this.labelOnIconOnly?"true":Gr.nothing}">
|
|
1715
1715
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
1716
1716
|
</ft-typography>
|
|
1717
1717
|
${this.internalIcon?this.renderIcon():null}
|
|
1718
1718
|
</div>
|
|
1719
|
-
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}get labelOnIconOnly(){return this.accessibleLabelOnIcon&&this.interactionsOnIcon}renderIcon(){return this.interactionsOnIcon?
|
|
1719
|
+
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}get labelOnIconOnly(){return this.accessibleLabelOnIcon&&this.interactionsOnIcon}renderIcon(){return this.interactionsOnIcon?Gr.html`
|
|
1720
1720
|
<ft-button round
|
|
1721
1721
|
class="ft-chip--icon-button"
|
|
1722
1722
|
@click=${this.onIconClick}
|
|
@@ -1727,11 +1727,11 @@
|
|
|
1727
1727
|
part="icon-button"
|
|
1728
1728
|
?hideTooltip=${this.hideIconTooltip}
|
|
1729
1729
|
></ft-button>
|
|
1730
|
-
`:
|
|
1730
|
+
`:Gr.html`
|
|
1731
1731
|
<div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
|
|
1732
1732
|
<ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
|
|
1733
1733
|
</div>
|
|
1734
|
-
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new ks))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new ks))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,
|
|
1734
|
+
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new ks))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new ks))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,bi.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};ie.elementDefinitions={"ft-ripple":k,"ft-typography":H,"ft-icon":J,"ft-button":S};ie.styles=rp;Pe([(0,Ce.property)({type:Boolean})],ie.prototype,"highlighted",void 0);Pe([(0,Ce.property)({type:Boolean})],ie.prototype,"removable",void 0);Pe([(0,Ce.property)({type:Boolean})],ie.prototype,"disabled",void 0);Pe([(0,Ce.property)({type:Boolean})],ie.prototype,"clickable",void 0);Pe([(0,Ce.property)({type:Boolean})],ie.prototype,"iconClickable",void 0);Pe([(0,Ce.property)({type:Boolean})],ie.prototype,"dense",void 0);Pe([(0,Ce.property)({type:Boolean})],ie.prototype,"multiLine",void 0);Pe([(0,Ce.property)()],ie.prototype,"label",void 0);Pe([(0,Ce.property)()],ie.prototype,"iconLabel",void 0);Pe([(0,Ce.property)({type:Boolean})],ie.prototype,"hideIconTooltip",void 0);Pe([(0,Ce.property)({type:Boolean})],ie.prototype,"accessibleLabelOnIcon",void 0);Pe([(0,Ce.property)()],ie.prototype,"icon",void 0);Pe([(0,Ce.property)()],ie.prototype,"iconVariant",void 0);Pe([(0,Ce.property)({type:Boolean})],ie.prototype,"trailingIcon",void 0);Pe([(0,Ce.property)()],ie.prototype,"typographyVariant",void 0);Pe([(0,Ce.query)("ft-typography slot")],ie.prototype,"slottedContent",void 0);var sp=c(f());var np={"ft-chip":ie};(0,sp.customElements)(np);var xi=c(v()),ye=c(z()),bp=c(et()),vp=c(pr());function pn(t,e,r){return t?e(t):r?.(t)}var vt=c(f());var Ls=c(z());var op=c(v()),te=c(f());var B={fontSize:te.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:te.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:te.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:te.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:te.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:te.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:te.FtCssVariableFactory.extend("--ft-input-label-border-color","",te.designSystemVariables.colorOutline),textColor:te.FtCssVariableFactory.extend("--ft-input-label-text-color","",te.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:te.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",te.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:te.FtCssVariableFactory.extend("--ft-input-label-background-color","",te.designSystemVariables.colorSurface),borderRadius:te.FtCssVariableFactory.extend("--ft-input-label-border-radius","",te.designSystemVariables.borderRadiusS),colorError:te.FtCssVariableFactory.external(te.designSystemVariables.colorError,"Design system")},ap=op.css`
|
|
1735
1735
|
.ft-input-label {
|
|
1736
1736
|
position: absolute;
|
|
1737
1737
|
inset: 0;
|
|
@@ -1777,8 +1777,8 @@
|
|
|
1777
1777
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
1778
1778
|
max-width: calc(${B.labelMaxWidth} - 2 * (${B.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
1779
1779
|
text-overflow: ellipsis;
|
|
1780
|
-
${(0,
|
|
1781
|
-
${(0,
|
|
1780
|
+
${(0,te.setVariable)(We.fontSize,B.fontSize)};
|
|
1781
|
+
${(0,te.setVariable)(We.lineHeight,B.fontSize)};
|
|
1782
1782
|
}
|
|
1783
1783
|
|
|
1784
1784
|
.ft-input-label--in-error .ft-input-label--text {
|
|
@@ -1798,7 +1798,7 @@
|
|
|
1798
1798
|
|
|
1799
1799
|
.ft-input-label--floating-text {
|
|
1800
1800
|
position: absolute;
|
|
1801
|
-
top: calc(50% - ${
|
|
1801
|
+
top: calc(50% - ${We.lineHeight} / 2);
|
|
1802
1802
|
transition: top 250ms;
|
|
1803
1803
|
overflow: hidden;
|
|
1804
1804
|
white-space: nowrap;
|
|
@@ -1810,8 +1810,8 @@
|
|
|
1810
1810
|
}
|
|
1811
1811
|
|
|
1812
1812
|
.ft-input-label--raised .ft-input-label--text {
|
|
1813
|
-
${(0,
|
|
1814
|
-
${(0,
|
|
1813
|
+
${(0,te.setVariable)(We.fontSize,B.raisedFontSize)};
|
|
1814
|
+
${(0,te.setVariable)(We.lineHeight,B.raisedFontSize)};
|
|
1815
1815
|
}
|
|
1816
1816
|
|
|
1817
1817
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
@@ -1823,18 +1823,18 @@
|
|
|
1823
1823
|
z-index: ${B.raisedZIndex};
|
|
1824
1824
|
background-color: ${B.backgroundColor};
|
|
1825
1825
|
border-radius: ${B.borderRadius};
|
|
1826
|
-
top: calc((${
|
|
1826
|
+
top: calc((${We.lineHeight} / -2) + 2px);
|
|
1827
1827
|
}
|
|
1828
|
-
`;var
|
|
1829
|
-
<div class="${(0,
|
|
1830
|
-
${pn(this.text,()=>
|
|
1828
|
+
`;var Jo=c(v()),ea=c(z());var cp=c(et()),up=c(f()),lp=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},Qr=class extends up.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return Jo.html`
|
|
1829
|
+
<div class="${(0,cp.classMap)(this.inputLabelClasses)}">
|
|
1830
|
+
${pn(this.text,()=>Jo.html`
|
|
1831
1831
|
<div class="ft-input-label--text ft-typography--caption">
|
|
1832
1832
|
<label class="ft-input-label--floating-text">${this.text}</label>
|
|
1833
1833
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
1834
1834
|
</div>
|
|
1835
1835
|
`)}
|
|
1836
1836
|
</div>
|
|
1837
|
-
`}};
|
|
1837
|
+
`}};Qr.elementDefinitions={};lp([(0,ea.property)({type:String})],Qr.prototype,"text",void 0);lp([(0,ea.property)({type:Boolean})],Qr.prototype,"raised",void 0);var ta=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},Tt=class extends Qr{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};Tt.elementDefinitions={};Tt.styles=[tr,ap];ta([(0,Ls.property)({type:Boolean})],Tt.prototype,"outlined",void 0);ta([(0,Ls.property)({type:Boolean})],Tt.prototype,"error",void 0);ta([(0,Ls.property)({type:Boolean})],Tt.prototype,"disabled",void 0);var pp=c(f());var dp={"ft-input-label":Tt};(0,pp.customElements)(dp);var hp=c(v()),$=c(f());var L={labelSize:$.FtCssVariableFactory.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:$.FtCssVariableFactory.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:$.FtCssVariableFactory.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:$.FtCssVariableFactory.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:$.FtCssVariableFactory.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:$.FtCssVariableFactory.extend("--ft-select-selected-option-color","",$.designSystemVariables.colorOnSurface),helperColor:$.FtCssVariableFactory.extend("--ft-select-helper-color","",$.designSystemVariables.colorOnSurfaceMedium),optionsColor:$.FtCssVariableFactory.extend("--ft-select-options-color","",$.designSystemVariables.colorOnSurface),optionsZIndex:$.FtCssVariableFactory.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:$.FtCssVariableFactory.extend("--ft-select-background-color","",$.designSystemVariables.colorSurface),colorOnSurfaceDisabled:$.FtCssVariableFactory.external($.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:$.FtCssVariableFactory.external($.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:$.FtCssVariableFactory.external($.designSystemVariables.borderRadiusS,"Design system"),elevation02:$.FtCssVariableFactory.external($.designSystemVariables.elevation02,"Design system"),colorError:$.FtCssVariableFactory.external($.designSystemVariables.colorError,"Design system")},fp=hp.css`
|
|
1838
1838
|
*:focus {
|
|
1839
1839
|
outline: none;
|
|
1840
1840
|
}
|
|
@@ -1849,7 +1849,7 @@
|
|
|
1849
1849
|
.ft-select--main-panel {
|
|
1850
1850
|
position: relative;
|
|
1851
1851
|
display: flex;
|
|
1852
|
-
height: calc(4 * ${
|
|
1852
|
+
height: calc(4 * ${L.verticalSpacing} + ${L.labelSize} + ${L.selectedOptionSize});
|
|
1853
1853
|
}
|
|
1854
1854
|
|
|
1855
1855
|
.ft-select--input-panel {
|
|
@@ -1858,17 +1858,17 @@
|
|
|
1858
1858
|
display: flex;
|
|
1859
1859
|
align-items: center;
|
|
1860
1860
|
overflow: hidden;
|
|
1861
|
-
padding-left: ${
|
|
1862
|
-
padding-right: ${
|
|
1861
|
+
padding-left: ${L.horizontalSpacing};
|
|
1862
|
+
padding-right: ${L.horizontalSpacing};
|
|
1863
1863
|
gap: 8px;
|
|
1864
|
-
color: ${
|
|
1865
|
-
${(0
|
|
1864
|
+
color: ${L.selectedOptionColor};
|
|
1865
|
+
${(0,$.setVariable)(U.color,L.selectedOptionColor)};
|
|
1866
1866
|
}
|
|
1867
1867
|
|
|
1868
1868
|
.ft-select--input-panel,
|
|
1869
1869
|
.ft-select--options {
|
|
1870
|
-
${(0
|
|
1871
|
-
${(0
|
|
1870
|
+
${(0,$.setVariable)(U.opacityContentOnSurfaceHover,"0.08")};
|
|
1871
|
+
${(0,$.setVariable)(U.opacityContentOnSurfacePressed,"0.04")};
|
|
1872
1872
|
}
|
|
1873
1873
|
|
|
1874
1874
|
.ft-select--input-panel > *:not(ft-ripple) {
|
|
@@ -1877,7 +1877,7 @@
|
|
|
1877
1877
|
|
|
1878
1878
|
.ft-select--disabled .ft-select--input-panel,
|
|
1879
1879
|
.ft-select--disabled .ft-select--options {
|
|
1880
|
-
color: ${
|
|
1880
|
+
color: ${L.colorOnSurfaceDisabled};
|
|
1881
1881
|
}
|
|
1882
1882
|
|
|
1883
1883
|
.ft-select:not(.ft-select--disabled) .ft-select--input-panel,
|
|
@@ -1886,21 +1886,21 @@
|
|
|
1886
1886
|
}
|
|
1887
1887
|
|
|
1888
1888
|
ft-input-label {
|
|
1889
|
-
${(0
|
|
1890
|
-
${(0
|
|
1891
|
-
${(0
|
|
1892
|
-
${(0
|
|
1893
|
-
${(0
|
|
1894
|
-
${(0
|
|
1889
|
+
${(0,$.setVariable)(B.fontSize,L.selectedOptionSize)};
|
|
1890
|
+
${(0,$.setVariable)(B.raisedFontSize,L.labelSize)};
|
|
1891
|
+
${(0,$.setVariable)(B.verticalSpacing,L.verticalSpacing)};
|
|
1892
|
+
${(0,$.setVariable)(B.horizontalSpacing,L.horizontalSpacing)};
|
|
1893
|
+
${(0,$.setVariable)(B.backgroundColor,L.backgroundColor)};
|
|
1894
|
+
${(0,$.setVariable)(B.labelMaxWidth,`calc(100% - ${Be.size} - 8px)`)};
|
|
1895
1895
|
}
|
|
1896
1896
|
|
|
1897
1897
|
.ft-select:not(.ft-select--disabled):focus-within ft-icon {
|
|
1898
|
-
color: ${
|
|
1898
|
+
color: ${L.colorPrimary};
|
|
1899
1899
|
}
|
|
1900
1900
|
|
|
1901
1901
|
.ft-select:not(.ft-select--disabled):focus-within ft-input-label {
|
|
1902
|
-
${(0
|
|
1903
|
-
${(0
|
|
1902
|
+
${(0,$.setVariable)(B.borderColor,L.colorPrimary)};
|
|
1903
|
+
${(0,$.setVariable)(B.textColor,L.colorPrimary)};
|
|
1904
1904
|
}
|
|
1905
1905
|
|
|
1906
1906
|
.ft-select--selected-option {
|
|
@@ -1910,12 +1910,12 @@
|
|
|
1910
1910
|
overflow: hidden;
|
|
1911
1911
|
white-space: nowrap;
|
|
1912
1912
|
text-overflow: ellipsis;
|
|
1913
|
-
${(0
|
|
1914
|
-
${(0
|
|
1913
|
+
${(0,$.setVariable)($t.fontSize,L.selectedOptionSize)};
|
|
1914
|
+
${(0,$.setVariable)($t.lineHeight,L.selectedOptionSize)};
|
|
1915
1915
|
}
|
|
1916
1916
|
|
|
1917
1917
|
.ft-select--in-error .ft-select--selected-option {
|
|
1918
|
-
color: ${
|
|
1918
|
+
color: ${L.colorError};
|
|
1919
1919
|
}
|
|
1920
1920
|
|
|
1921
1921
|
ft-icon {
|
|
@@ -1925,26 +1925,26 @@
|
|
|
1925
1925
|
|
|
1926
1926
|
|
|
1927
1927
|
.ft-select--filled .ft-select--input-panel {
|
|
1928
|
-
border-radius: ${
|
|
1928
|
+
border-radius: ${L.borderRadiusS} ${L.borderRadiusS} 0 0;
|
|
1929
1929
|
}
|
|
1930
1930
|
|
|
1931
1931
|
.ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
|
|
1932
1932
|
align-self: stretch;
|
|
1933
|
-
padding-top: calc(${
|
|
1933
|
+
padding-top: calc(${L.labelSize} + 2 * ${L.verticalSpacing});
|
|
1934
1934
|
}
|
|
1935
1935
|
|
|
1936
1936
|
.ft-select--outlined .ft-select--input-panel {
|
|
1937
|
-
border-radius: ${
|
|
1937
|
+
border-radius: ${L.borderRadiusS};
|
|
1938
1938
|
}
|
|
1939
1939
|
|
|
1940
1940
|
.ft-select--options {
|
|
1941
1941
|
display: none;
|
|
1942
1942
|
position: absolute;
|
|
1943
1943
|
top: 100%;
|
|
1944
|
-
color: ${
|
|
1945
|
-
background: ${
|
|
1946
|
-
z-index: ${
|
|
1947
|
-
box-shadow: ${
|
|
1944
|
+
color: ${L.optionsColor};
|
|
1945
|
+
background: ${L.backgroundColor};
|
|
1946
|
+
z-index: ${L.optionsZIndex};
|
|
1947
|
+
box-shadow: ${L.elevation02};
|
|
1948
1948
|
width: max-content;
|
|
1949
1949
|
}
|
|
1950
1950
|
|
|
@@ -1954,26 +1954,26 @@
|
|
|
1954
1954
|
|
|
1955
1955
|
.ft-select--options-displayed .ft-select--options {
|
|
1956
1956
|
display: block;
|
|
1957
|
-
max-height: ${
|
|
1957
|
+
max-height: ${L.optionsHeight};
|
|
1958
1958
|
overflow-y: auto;
|
|
1959
1959
|
}
|
|
1960
1960
|
|
|
1961
1961
|
.ft-select--helper-text {
|
|
1962
|
-
padding: 0 ${
|
|
1963
|
-
color: ${
|
|
1962
|
+
padding: 0 ${L.horizontalSpacing};
|
|
1963
|
+
color: ${L.helperColor};
|
|
1964
1964
|
}
|
|
1965
1965
|
|
|
1966
1966
|
.ft-select--in-error .ft-select--helper-text {
|
|
1967
|
-
color: ${
|
|
1967
|
+
color: ${L.colorError};
|
|
1968
1968
|
}
|
|
1969
1969
|
|
|
1970
1970
|
.ft-select:not(.ft-select--has-option-selected) .ft-select--selected-option {
|
|
1971
1971
|
opacity: 0;
|
|
1972
1972
|
}
|
|
1973
|
-
`;var $s=c(f());var
|
|
1973
|
+
`;var $s=c(f());var vi=c(v()),yp=c(et()),yr=c(z());var ra=c(f());var mp=c(v()),gp=mp.css`
|
|
1974
1974
|
.ft-select--option {
|
|
1975
|
-
${(0,
|
|
1976
|
-
${(0,
|
|
1975
|
+
${(0,ra.setVariable)(U.opacityContentOnSurfaceHover,"0.08")};
|
|
1976
|
+
${(0,ra.setVariable)(U.opacityContentOnSurfacePressed,"0.04")};
|
|
1977
1977
|
}
|
|
1978
1978
|
|
|
1979
1979
|
.ft-select--option > *:not(ft-ripple) {
|
|
@@ -1982,14 +1982,14 @@
|
|
|
1982
1982
|
|
|
1983
1983
|
.ft-select--option {
|
|
1984
1984
|
position: relative;
|
|
1985
|
-
padding: 4px ${
|
|
1985
|
+
padding: 4px ${L.horizontalSpacing};
|
|
1986
1986
|
min-height: 32px;
|
|
1987
1987
|
display: flex;
|
|
1988
1988
|
align-items: center;
|
|
1989
1989
|
}
|
|
1990
1990
|
|
|
1991
1991
|
.ft-select--option:hover {
|
|
1992
|
-
border-left: 2px ${
|
|
1992
|
+
border-left: 2px ${L.colorPrimary} solid;
|
|
1993
1993
|
}
|
|
1994
1994
|
|
|
1995
1995
|
.ft-select--option span {
|
|
@@ -1997,8 +1997,8 @@
|
|
|
1997
1997
|
overflow: hidden;
|
|
1998
1998
|
}
|
|
1999
1999
|
|
|
2000
|
-
`;var hn=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},
|
|
2001
|
-
<div class="${(0,
|
|
2000
|
+
`;var hn=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 $s.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.isSlotEmpty=!0}render(){var e,r;let i={"ft-select--option":!0,"ft-select--option-selected":this.selected,"ft-typography--body2":!0};return vi.html`
|
|
2001
|
+
<div class="${(0,yp.classMap)(i)}"
|
|
2002
2002
|
part="option option-${(r=(e=this.value)===null||e===void 0?void 0:e.toString())===null||r===void 0?void 0:r.replace(/[^\w-]/g,"")}"
|
|
2003
2003
|
tabindex="0"
|
|
2004
2004
|
aria-label="${this.label}"
|
|
@@ -2007,10 +2007,10 @@
|
|
|
2007
2007
|
<ft-ripple ?primary=${this.selected} ?activated=${this.selected}></ft-ripple>
|
|
2008
2008
|
<slot @slotchange=${this.onSlotChange}>
|
|
2009
2009
|
</slot>
|
|
2010
|
-
${this.isSlotEmpty?
|
|
2010
|
+
${this.isSlotEmpty?vi.html`<span>${this.label}</span>`:vi.html``}
|
|
2011
2011
|
</div>
|
|
2012
|
-
`}onSlotChange(){this.isSlotEmpty=(0,$s.isSlotEmptyOrWithoutContent)(this.slotElement)}onClick(){this.dispatchEvent(new Event("select-option",{bubbles:!0,composed:!0}))}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};
|
|
2013
|
-
<div class="${(0,
|
|
2012
|
+
`}onSlotChange(){this.isSlotEmpty=(0,$s.isSlotEmptyOrWithoutContent)(this.slotElement)}onClick(){this.dispatchEvent(new Event("select-option",{bubbles:!0,composed:!0}))}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Me.elementDefinitions={"ft-ripple":k};Me.shadowRootOptions={...vi.LitElement.shadowRootOptions,delegatesFocus:!0};Me.styles=[gp,er];hn([(0,yr.property)({type:String})],Me.prototype,"label",void 0);hn([(0,yr.property)({type:Object,converter:t=>t})],Me.prototype,"value",void 0);hn([(0,yr.property)({type:Boolean,reflect:!0})],Me.prototype,"selected",void 0);hn([(0,yr.query)("slot")],Me.prototype,"slotElement",void 0);hn([(0,yr.state)()],Me.prototype,"isSlotEmpty",void 0);var Le=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 vt.FtLitElement{constructor(){super(...arguments),this.label="",this.ariaLabel=null,this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.currentSearch="",this.lastSearchInputDate=new Date("01/01/1970"),this.isSlotEmpty=!0,this.hideOptions=e=>this.optionsDisplayed=this.optionsDisplayed&&e.composedPath().includes(this.container)}get firstOption(){return this.optionsList[0]}get optionsList(){let e=[...this.querySelectorAll("ft-select-option")];return e.length>0?e:[...this.shadowRoot.querySelectorAll("ft-select-option")]}get focusedOption(){return this.optionsList.find(e=>e.matches(":focus-within"))}get selectedOptionElement(){return this.optionsList.find(e=>e.selected)}get lastOption(){return(0,vt.last)(this.optionsList)}render(){var e,r,i,n,s;let o=this.hasOptionsMenuOpen,a=this.disabled||!this.hasOptions,l=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((n=(r=this.selectedOption)===null||r===void 0?void 0:r.label)!==null&&n!==void 0?n:"").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 xi.html`
|
|
2013
|
+
<div class="${(0,bp.classMap)(u)}" part="container">
|
|
2014
2014
|
<div class="ft-select--main-panel" part="main-panel">
|
|
2015
2015
|
<ft-input-label text="${this.label}"
|
|
2016
2016
|
part="label"
|
|
@@ -2033,13 +2033,13 @@
|
|
|
2033
2033
|
role="combobox">
|
|
2034
2034
|
<ft-ripple ?disabled=${a} ?activated=${!this.outlined}></ft-ripple>
|
|
2035
2035
|
<slot name="input-value">
|
|
2036
|
-
<ft-typography variant="${
|
|
2036
|
+
<ft-typography variant="${se.body1}"
|
|
2037
2037
|
aria-hidden="${l?"false":"true"}"
|
|
2038
2038
|
class="ft-select--selected-option">
|
|
2039
2039
|
${(s=(i=this.selectedOption)===null||i===void 0?void 0:i.label)!==null&&s!==void 0?s:this.label}
|
|
2040
2040
|
</ft-typography>
|
|
2041
2041
|
</slot>
|
|
2042
|
-
<ft-icon aria-hidden="true" .value=${o?
|
|
2042
|
+
<ft-icon aria-hidden="true" .value=${o?me.THIN_ARROW_UP:me.THIN_ARROW}></ft-icon>
|
|
2043
2043
|
</div>
|
|
2044
2044
|
<div class="ft-select--options"
|
|
2045
2045
|
part="options"
|
|
@@ -2050,49 +2050,49 @@
|
|
|
2050
2050
|
@option-change=${this.updateOptionsFromSlot}
|
|
2051
2051
|
>
|
|
2052
2052
|
</slot>
|
|
2053
|
-
${pn(this.isSlotEmpty,()=>(0,
|
|
2053
|
+
${pn(this.isSlotEmpty,()=>(0,vp.repeat)(this.options,p=>p.value,p=>this.renderOption(p)))}
|
|
2054
2054
|
</div>
|
|
2055
2055
|
</div>
|
|
2056
2056
|
<slot name="helper" part="helper">
|
|
2057
|
-
${this.helper?
|
|
2058
|
-
<ft-typography class="ft-select--helper-text" variant="${
|
|
2059
|
-
</ft-typography>`:
|
|
2057
|
+
${this.helper?xi.html`
|
|
2058
|
+
<ft-typography class="ft-select--helper-text" variant="${se.caption}">${this.helper}
|
|
2059
|
+
</ft-typography>`:xi.nothing}
|
|
2060
2060
|
</slot>
|
|
2061
2061
|
</div>
|
|
2062
|
-
`}renderOption(e){let r=this.selectedOption===e;return
|
|
2062
|
+
`}renderOption(e){let r=this.selectedOption===e;return xi.html`
|
|
2063
2063
|
<ft-select-option
|
|
2064
2064
|
?selected=${r}
|
|
2065
2065
|
label="${e.label}"
|
|
2066
2066
|
.value=${e.value}
|
|
2067
2067
|
></ft-select-option>
|
|
2068
|
-
`}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((r=(i=this.selectedOptionElement)!==null&&i!==void 0?i:this.firstOption)===null||r===void 0||r.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&(this.optionsDisplayed?document.addEventListener("click",this.hideOptions):document.removeEventListener("click",this.hideOptions)),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let n=["bottom","top"];(0,vt.computeOffsetAutoPosition)(this.mainPanel,this.optionsMenu,"bottom",n,"fixed",
|
|
2068
|
+
`}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((r=(i=this.selectedOptionElement)!==null&&i!==void 0?i:this.firstOption)===null||r===void 0||r.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&(this.optionsDisplayed?document.addEventListener("click",this.hideOptions):document.removeEventListener("click",this.hideOptions)),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let n=["bottom","top"];(0,vt.computeOffsetAutoPosition)(this.mainPanel,this.optionsMenu,"bottom",n,"fixed",L.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,vt.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,vt.deepEqual)(i.value,e.value));if(r!==-1)return`option-${r}`}onSelectOption(e){e.stopPropagation(),this.setValue(e.target.value)}setValue(e,r=!0){let i=this.options.find(n=>(0,vt.deepEqual)(n.value,e));i&&this.selectOption(i,r)}selectOption(e,r=!0){var i,n;if(!(0,vt.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":Tt,"ft-typography":H,"ft-ripple":k,"ft-icon":J,"ft-select-option":Me};Z.searchTimeoutMilliseconds=2e3;Z.styles=[tr,fp];Le([(0,ye.property)({type:String})],Z.prototype,"label",void 0);Le([(0,ye.property)({type:String})],Z.prototype,"ariaLabel",void 0);Le([(0,ye.property)({type:String})],Z.prototype,"helper",void 0);Le([(0,ye.property)({type:Boolean})],Z.prototype,"outlined",void 0);Le([(0,ye.property)({type:Boolean})],Z.prototype,"disabled",void 0);Le([(0,ye.property)({type:Boolean})],Z.prototype,"error",void 0);Le([(0,ye.property)({type:Boolean})],Z.prototype,"fixedMenuPosition",void 0);Le([(0,ye.property)({type:Array})],Z.prototype,"options",void 0);Le([(0,ye.state)()],Z.prototype,"selectedOption",void 0);Le([(0,ye.state)()],Z.prototype,"optionsDisplayed",void 0);Le([(0,ye.state)()],Z.prototype,"focusOptions",void 0);Le([(0,ye.state)()],Z.prototype,"currentSearch",void 0);Le([(0,ye.state)()],Z.prototype,"lastSearchInputDate",void 0);Le([(0,ye.query)(".ft-select")],Z.prototype,"container",void 0);Le([(0,ye.query)(".ft-select--options")],Z.prototype,"optionsMenu",void 0);Le([(0,ye.query)(".ft-select--input-panel")],Z.prototype,"mainPanel",void 0);Le([(0,ye.query)("slot:not([name])")],Z.prototype,"optionsSlot",void 0);var Sp=c(f());var xp={"ft-select":Z,"ft-select-option":Me};(0,Sp.customElements)(xp);var T=c(f()),ia=c(v());var Ep=c(v()),kt=c(f()),$e={display:kt.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:kt.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:kt.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:kt.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:kt.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:kt.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:kt.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:kt.FtCssVariableFactory.external(kt.designSystemVariables.borderRadiusM,"Design system")},Ap=Ep.css`
|
|
2069
2069
|
:host {
|
|
2070
|
-
width: ${
|
|
2071
|
-
height: ${
|
|
2072
|
-
display: ${
|
|
2070
|
+
width: ${$e.width};
|
|
2071
|
+
height: ${$e.height};
|
|
2072
|
+
display: ${$e.display};
|
|
2073
2073
|
overflow: hidden;
|
|
2074
|
-
border-radius: ${
|
|
2074
|
+
border-radius: ${$e.borderRadiusM};
|
|
2075
2075
|
background: linear-gradient(
|
|
2076
2076
|
90deg,
|
|
2077
2077
|
transparent,
|
|
2078
|
-
${
|
|
2079
|
-
${
|
|
2080
|
-
transparent ${
|
|
2081
|
-
), ${
|
|
2078
|
+
${$e.glareColor} calc(0.45 * ${$e.glareWidth}),
|
|
2079
|
+
${$e.glareColor} calc(0.55 * ${$e.glareWidth}),
|
|
2080
|
+
transparent ${$e.glareWidth}
|
|
2081
|
+
), ${$e.backgroundColor};
|
|
2082
2082
|
background-repeat: repeat-y;
|
|
2083
2083
|
background-size: 100vw 100vh;
|
|
2084
2084
|
background-attachment: fixed;
|
|
2085
|
-
background-position: calc(${
|
|
2086
|
-
animation: shine ${
|
|
2085
|
+
background-position: calc(${$e.glareWidth} * -1) 0;
|
|
2086
|
+
animation: shine ${$e.animationDuration} infinite;
|
|
2087
2087
|
animation-timing-function: linear;
|
|
2088
2088
|
}
|
|
2089
2089
|
|
|
2090
2090
|
@keyframes shine {
|
|
2091
2091
|
to {
|
|
2092
|
-
background-position: calc(100vw + ${
|
|
2092
|
+
background-position: calc(100vw + ${$e.glareWidth}) 0, calc(${$e.glareWidth} * -1) 0;
|
|
2093
2093
|
}
|
|
2094
2094
|
}
|
|
2095
|
-
`;var
|
|
2095
|
+
`;var A={height:T.FtCssVariableFactory.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:T.FtCssVariableFactory.extend("--ft-search-bar-border-radius","",T.designSystemVariables.borderRadiusS),mobileOpenPosition:T.FtCssVariableFactory.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:T.FtCssVariableFactory.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:T.FtCssVariableFactory.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:T.FtCssVariableFactory.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:T.FtCssVariableFactory.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:T.FtCssVariableFactory.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:T.FtCssVariableFactory.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:T.FtCssVariableFactory.external(T.designSystemVariables.colorSurface,"Design system"),colorOnSurface:T.FtCssVariableFactory.external(T.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:T.FtCssVariableFactory.external(T.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:T.FtCssVariableFactory.external(T.designSystemVariables.colorOutline,"Design system"),colorPrimary:T.FtCssVariableFactory.external(T.designSystemVariables.colorPrimary,"Design system"),elevation02:T.FtCssVariableFactory.external(T.designSystemVariables.elevation02,"Design system"),buttonColor:T.FtCssVariableFactory.external(_.color,"Button"),buttonRippleColor:T.FtCssVariableFactory.external(_.rippleColor,"Button"),activeItemBorderColor:T.FtCssVariableFactory.extend("--ft-search-bar-active-border-color","",T.designSystemVariables.colorPrimary)},Cp=ia.css`
|
|
2096
2096
|
* {
|
|
2097
2097
|
box-sizing: border-box;
|
|
2098
2098
|
}
|
|
@@ -2101,7 +2101,7 @@
|
|
|
2101
2101
|
display: flex;
|
|
2102
2102
|
flex-direction: column;
|
|
2103
2103
|
gap: 8px;
|
|
2104
|
-
color: ${
|
|
2104
|
+
color: ${A.colorOnSurface};
|
|
2105
2105
|
outline: none;
|
|
2106
2106
|
}
|
|
2107
2107
|
|
|
@@ -2110,21 +2110,21 @@
|
|
|
2110
2110
|
}
|
|
2111
2111
|
|
|
2112
2112
|
.ft-search-bar--mobile-menu-open {
|
|
2113
|
-
position: ${
|
|
2114
|
-
top: ${
|
|
2115
|
-
bottom: ${
|
|
2116
|
-
left: ${
|
|
2117
|
-
right: ${
|
|
2118
|
-
z-index: ${
|
|
2113
|
+
position: ${A.mobileOpenPosition};
|
|
2114
|
+
top: ${A.mobileOpenTop};
|
|
2115
|
+
bottom: ${A.mobileOpenBottom};
|
|
2116
|
+
left: ${A.mobileOpenLeft};
|
|
2117
|
+
right: ${A.mobileOpenRight};
|
|
2118
|
+
z-index: ${A.floatingZIndex};
|
|
2119
2119
|
padding: 16px;
|
|
2120
2120
|
}
|
|
2121
2121
|
|
|
2122
2122
|
.ft-search-bar--mobile-menu-open:not(.ft-search-bar--forced-open) {
|
|
2123
|
-
background: ${
|
|
2123
|
+
background: ${A.colorSurface};
|
|
2124
2124
|
}
|
|
2125
2125
|
|
|
2126
2126
|
.ft-search-bar--mobile-menu-open.ft-search-bar--forced-open {
|
|
2127
|
-
position: ${
|
|
2127
|
+
position: ${A.mobileOpenPosition.get("static")};
|
|
2128
2128
|
}
|
|
2129
2129
|
|
|
2130
2130
|
.ft-search-bar {
|
|
@@ -2132,20 +2132,20 @@
|
|
|
2132
2132
|
display: flex;
|
|
2133
2133
|
flex-direction: row;
|
|
2134
2134
|
align-items: center;
|
|
2135
|
-
height: ${
|
|
2135
|
+
height: ${A.height};
|
|
2136
2136
|
|
|
2137
|
-
background: ${
|
|
2138
|
-
border: 1px solid ${
|
|
2139
|
-
border-radius: ${
|
|
2137
|
+
background: ${A.colorSurface};
|
|
2138
|
+
border: 1px solid ${A.colorOutline};
|
|
2139
|
+
border-radius: ${A.borderRadius};
|
|
2140
2140
|
}
|
|
2141
2141
|
|
|
2142
2142
|
.ft-search-bar--skeleton {
|
|
2143
|
-
${(0,
|
|
2144
|
-
${(0,
|
|
2143
|
+
${(0,T.setVariable)($e.height,A.height)};
|
|
2144
|
+
${(0,T.setVariable)($e.borderRadiusM,A.borderRadius)};
|
|
2145
2145
|
}
|
|
2146
2146
|
|
|
2147
2147
|
.ft-search-bar--floating-panel-open .ft-search-bar {
|
|
2148
|
-
border-radius: ${
|
|
2148
|
+
border-radius: ${A.borderRadius} ${A.borderRadius} 0 0;
|
|
2149
2149
|
}
|
|
2150
2150
|
|
|
2151
2151
|
.ft-search-bar--input-container {
|
|
@@ -2163,7 +2163,7 @@
|
|
|
2163
2163
|
align-self: stretch;
|
|
2164
2164
|
display: grid;
|
|
2165
2165
|
padding: 0 8px;
|
|
2166
|
-
border-radius: ${
|
|
2166
|
+
border-radius: ${A.borderRadius};
|
|
2167
2167
|
}
|
|
2168
2168
|
|
|
2169
2169
|
.ft-search-bar--dense .ft-search-bar--input-outline {
|
|
@@ -2172,7 +2172,7 @@
|
|
|
2172
2172
|
}
|
|
2173
2173
|
|
|
2174
2174
|
.ft-search-bar--input-container:focus-within .ft-search-bar--input-outline {
|
|
2175
|
-
outline: 2px solid ${
|
|
2175
|
+
outline: 2px solid ${A.colorPrimary};
|
|
2176
2176
|
}
|
|
2177
2177
|
|
|
2178
2178
|
.ft-search-bar--input {
|
|
@@ -2180,12 +2180,12 @@
|
|
|
2180
2180
|
flex-grow: 1;
|
|
2181
2181
|
border: none;
|
|
2182
2182
|
background-color: transparent;
|
|
2183
|
-
color: ${
|
|
2183
|
+
color: ${A.colorOnSurface};
|
|
2184
2184
|
outline: none;
|
|
2185
2185
|
}
|
|
2186
2186
|
|
|
2187
2187
|
.ft-search-bar--input::placeholder {
|
|
2188
|
-
color: ${
|
|
2188
|
+
color: ${A.colorOnSurfaceMedium};
|
|
2189
2189
|
}
|
|
2190
2190
|
|
|
2191
2191
|
.ft-search-bar--actions {
|
|
@@ -2199,12 +2199,12 @@
|
|
|
2199
2199
|
.ft-search-bar > ft-button,
|
|
2200
2200
|
.ft-search-bar--actions ft-button {
|
|
2201
2201
|
flex-shrink: 0;
|
|
2202
|
-
${(0,
|
|
2202
|
+
${(0,T.setVariable)(_.backgroundColor,"transparent")};
|
|
2203
2203
|
}
|
|
2204
2204
|
|
|
2205
2205
|
.ft-search-bar--left-action {
|
|
2206
|
-
${(0,
|
|
2207
|
-
border-right: 1px solid ${
|
|
2206
|
+
${(0,T.setVariable)(_.borderRadius,`calc(${A.borderRadius} - 1px) 0 0 calc(${A.borderRadius} - 1px)`)};
|
|
2207
|
+
border-right: 1px solid ${A.colorOutline};
|
|
2208
2208
|
height: 100%;
|
|
2209
2209
|
}
|
|
2210
2210
|
|
|
@@ -2213,7 +2213,7 @@
|
|
|
2213
2213
|
}
|
|
2214
2214
|
|
|
2215
2215
|
.ft-search-bar--floating-panel-open .ft-search-bar--left-action {
|
|
2216
|
-
${(0,
|
|
2216
|
+
${(0,T.setVariable)(_.borderRadius,`calc(${A.borderRadius} - 1px) 0 0 0`)};
|
|
2217
2217
|
}
|
|
2218
2218
|
|
|
2219
2219
|
.ft-search-bar .ft-search-bar--launch-search,
|
|
@@ -2223,13 +2223,13 @@
|
|
|
2223
2223
|
|
|
2224
2224
|
.ft-search-bar--separator {
|
|
2225
2225
|
height: 20px;
|
|
2226
|
-
border-right: 1px solid ${
|
|
2226
|
+
border-right: 1px solid ${A.colorOutline};
|
|
2227
2227
|
}
|
|
2228
2228
|
|
|
2229
2229
|
.ft-search-bar--left-action.ft-search-bar--content-locale {
|
|
2230
|
-
${(0,
|
|
2231
|
-
${(0,
|
|
2232
|
-
${(0,
|
|
2230
|
+
${(0,T.setVariable)(B.borderColor,"transparent")};
|
|
2231
|
+
${(0,T.setVariable)(B.borderRadius,`calc(${A.borderRadius} - 1px)`)};
|
|
2232
|
+
${(0,T.setVariable)(L.selectedOptionColor,A.buttonColor)};
|
|
2233
2233
|
}
|
|
2234
2234
|
|
|
2235
2235
|
.ft-search-bar--left-action.ft-search-bar--content-locale,
|
|
@@ -2246,7 +2246,7 @@
|
|
|
2246
2246
|
}
|
|
2247
2247
|
|
|
2248
2248
|
.ft-search-bar--left-action.ft-search-bar--content-locale::part(selected-value) {
|
|
2249
|
-
border-radius: calc(${
|
|
2249
|
+
border-radius: calc(${A.borderRadius} - 1px) 0 0 calc(${A.borderRadius} - 1px);
|
|
2250
2250
|
}
|
|
2251
2251
|
|
|
2252
2252
|
[part="content-locale-selector"] {
|
|
@@ -2255,7 +2255,7 @@
|
|
|
2255
2255
|
flex-direction: column;
|
|
2256
2256
|
max-height: 100%;
|
|
2257
2257
|
max-width: 100%;
|
|
2258
|
-
color: ${
|
|
2258
|
+
color: ${Xe.colorOnSurface};
|
|
2259
2259
|
}
|
|
2260
2260
|
|
|
2261
2261
|
[part="content-locale-selector"] > ft-radio-group {
|
|
@@ -2273,7 +2273,7 @@
|
|
|
2273
2273
|
flex-shrink: 0;
|
|
2274
2274
|
padding: 0 10px;
|
|
2275
2275
|
margin-bottom: 8px;
|
|
2276
|
-
${(0,
|
|
2276
|
+
${(0,T.setVariable)(y.fontSize,"14px")};
|
|
2277
2277
|
}
|
|
2278
2278
|
|
|
2279
2279
|
[part="content-locale-selector-label"] {
|
|
@@ -2281,18 +2281,18 @@
|
|
|
2281
2281
|
flex-shrink: 1;
|
|
2282
2282
|
flex-grow: 1;
|
|
2283
2283
|
word-break: break-word;
|
|
2284
|
-
${(0,
|
|
2285
|
-
${(0,
|
|
2284
|
+
${(0,T.setVariable)(y.lineHeight,"22px")};
|
|
2285
|
+
${(0,T.setVariable)(y.fontWeight,"bold")};
|
|
2286
2286
|
}
|
|
2287
2287
|
|
|
2288
|
-
`,
|
|
2288
|
+
`,wp=ia.css`
|
|
2289
2289
|
.ft-search-bar--presets {
|
|
2290
2290
|
min-width: 200px;
|
|
2291
2291
|
}
|
|
2292
2292
|
|
|
2293
2293
|
.ft-search-bar--desktop-menu .ft-search-bar--presets {
|
|
2294
2294
|
margin-right: auto;
|
|
2295
|
-
${(0,
|
|
2295
|
+
${(0,T.setVariable)(L.optionsZIndex,"2")};
|
|
2296
2296
|
}
|
|
2297
2297
|
|
|
2298
2298
|
.ft-search-bar--desktop-menu {
|
|
@@ -2345,8 +2345,8 @@
|
|
|
2345
2345
|
|
|
2346
2346
|
.ft-search-bar--desktop-menu .ft-search-bar--filters-container {
|
|
2347
2347
|
display: block;
|
|
2348
|
-
height: ${
|
|
2349
|
-
${(0,
|
|
2348
|
+
height: ${A.desktopFiltersHeight};
|
|
2349
|
+
${(0,T.setVariable)(Ve.gap,"16px")};
|
|
2350
2350
|
}
|
|
2351
2351
|
|
|
2352
2352
|
.ft-search-bar--desktop-menu ft-filter {
|
|
@@ -2361,15 +2361,15 @@
|
|
|
2361
2361
|
}
|
|
2362
2362
|
|
|
2363
2363
|
.ft-search-bar--desktop-menu [data-filters-count="2"] ft-filter {
|
|
2364
|
-
max-width: calc(50% - ${
|
|
2364
|
+
max-width: calc(50% - ${Ve.gap} / 2);
|
|
2365
2365
|
}
|
|
2366
2366
|
|
|
2367
2367
|
.ft-search-bar--desktop-menu [data-filters-count="3"] ft-filter {
|
|
2368
|
-
max-width: max(250px, calc(33% - 2 * ${
|
|
2368
|
+
max-width: max(250px, calc(33% - 2 * ${Ve.gap} / 3));
|
|
2369
2369
|
}
|
|
2370
2370
|
|
|
2371
2371
|
.ft-search-bar--desktop-menu [data-filters-count="4"] ft-filter {
|
|
2372
|
-
max-width: max(250px, calc(25% - 3 * ${
|
|
2372
|
+
max-width: max(250px, calc(25% - 3 * ${Ve.gap} / 4));
|
|
2373
2373
|
}
|
|
2374
2374
|
|
|
2375
2375
|
.ft-search-bar--hierarchical-filter {
|
|
@@ -2426,7 +2426,7 @@
|
|
|
2426
2426
|
.ft-search-bar--filter-label-values {
|
|
2427
2427
|
flex-grow: 0;
|
|
2428
2428
|
flex-shrink: 1;
|
|
2429
|
-
color: ${
|
|
2429
|
+
color: ${A.colorOnSurfaceMedium};
|
|
2430
2430
|
}
|
|
2431
2431
|
|
|
2432
2432
|
ft-accordion-item::part(toggle) {
|
|
@@ -2446,14 +2446,14 @@
|
|
|
2446
2446
|
.ft-search-bar--desktop-menu .ft-search-bar--launch-search {
|
|
2447
2447
|
margin: 0;
|
|
2448
2448
|
}
|
|
2449
|
-
`;var
|
|
2450
|
-
`}};
|
|
2449
|
+
`;var Op=c(v()),_p=c(f());var br=class extends _p.FtLitElement{render(){return Op.html`
|
|
2450
|
+
`}};br.elementDefinitions={};br.styles=Ap;var Tp=c(f());var Rp={"ft-skeleton":br};(0,Tp.customElements)(Rp);var Ht=c(v()),na=c(pr());var Si=c(f());var jt=class{constructor(e,r=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new Si.Debouncer(r)}render(){let e=this.recentSearchesMatchingQuery;return Ht.html`
|
|
2451
2451
|
<div class="ft-search-bar--suggestions ft-word-wrap ${this.shouldDisplaySuggestions?"ft-search-bar--suggestions-not-empty":""}"
|
|
2452
2452
|
id="${this.listboxId}"
|
|
2453
2453
|
role="listbox"
|
|
2454
2454
|
aria-label="${this.searchBar.labelResolver.resolve("suggestionsAriaLabel")}"
|
|
2455
2455
|
part="suggestions-container">
|
|
2456
|
-
${(0,
|
|
2456
|
+
${(0,na.repeat)(e.slice(0,5),r=>r,(r,i)=>Ht.html`
|
|
2457
2457
|
<div part="suggestion-container"
|
|
2458
2458
|
class="${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)?"ft-search-bar--suggestions-selected":Ht.nothing}">
|
|
2459
2459
|
<a href="${this.getRequestWithQuery(r)}"
|
|
@@ -2482,7 +2482,7 @@
|
|
|
2482
2482
|
</ft-button>
|
|
2483
2483
|
</div>
|
|
2484
2484
|
`)}
|
|
2485
|
-
${(0,
|
|
2485
|
+
${(0,na.repeat)(this.searchBar.suggestions,r=>r.value,(r,i)=>Ht.html`
|
|
2486
2486
|
<div part="suggestion-container"
|
|
2487
2487
|
class="${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)?"ft-search-bar--suggestions-selected":Ht.nothing}">
|
|
2488
2488
|
<a href="${this.getRequestWithQuery(r.value)}"
|
|
@@ -2500,9 +2500,9 @@
|
|
|
2500
2500
|
</div>
|
|
2501
2501
|
`)}
|
|
2502
2502
|
</div>
|
|
2503
|
-
`}recentSearchId(e){return this.listboxId+"-recent-"+e}suggestionId(e){return this.listboxId+"-suggest-"+e}getRequestWithQuery(e){return this.searchBar.searchRequestSerializer({...this.searchBar.request,paging:{page:1},query:e})}update(){return new Promise((e,r)=>{this.updateDebouncer.run(async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then(i=>i.suggestions).catch(()=>[]):[],e()})})}onSuggestClick(e,r){this.searchBar.setQuery(r),this.searchBar.onLaunchSearch()}removeRecentSearch(e,r){e.preventDefault(),e.stopPropagation(),this.selectSuggestion(null),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(i=>i.toLowerCase()!==r.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let r=e.type==="DOCUMENT"?
|
|
2503
|
+
`}recentSearchId(e){return this.listboxId+"-recent-"+e}suggestionId(e){return this.listboxId+"-suggest-"+e}getRequestWithQuery(e){return this.searchBar.searchRequestSerializer({...this.searchBar.request,paging:{page:1},query:e})}update(){return new Promise((e,r)=>{this.updateDebouncer.run(async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then(i=>i.suggestions).catch(()=>[]):[],e()})})}onSuggestClick(e,r){this.searchBar.setQuery(r),this.searchBar.onLaunchSearch()}removeRecentSearch(e,r){e.preventDefault(),e.stopPropagation(),this.selectSuggestion(null),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(i=>i.toLowerCase()!==r.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let r=e.type==="DOCUMENT"?Ue.file_format:Ue.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?me.BOOK:me.ARTICLE;break;case"DOCUMENT":i=bs(e.mimeType,e.filenameExtension);break;case"TOPIC":i=me.TOPICS;break;case"HTML_PACKAGE":i=me.BOX_CODE;break;case"HTML_PACKAGE_PAGE":i=me.FILE_CODE;break}return Ht.html`
|
|
2504
2504
|
<ft-icon .variant=${r} .value=${i} part="suggestion-icon"></ft-icon>
|
|
2505
|
-
`}focusNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}focusPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}getFirstSuggestionElement(){return this.searchBar.querySelector("[part=suggestion-container]")}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}get selectedSuggestOption(){var e;return(e=this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']"))===null||e===void 0?void 0:e.parentElement}get selectedSuggestOptionLink(){return this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']")}get selectedSuggestRemoveRecentButton(){var e;return(e=this.selectedSuggestOption)===null||e===void 0?void 0:e.querySelector("[part=remove-suggestion]")}getLastSuggestionElement(){let e=this.searchBar.querySelectorAll("[part=suggestion-container]");return e.length>0?e[e.length-1]:null}selectSuggestion(e){var r;this.searchBar.selectedSuggestRemoveRecent=!1,e?this.searchBar.selectedSuggestOptionId=(r=e.querySelector("[part=suggestions]"))===null||r===void 0?void 0:r.id:this.searchBar.selectedSuggestOptionId=void 0}focusArrowLeft(){this.searchBar.selectedSuggestRemoveRecent?this.searchBar.selectedSuggestRemoveRecent=!1:this.selectSuggestion(null)}focusArrowRight(){!this.searchBar.selectedSuggestRemoveRecent&&this.selectedSuggestRemoveRecentButton?this.searchBar.selectedSuggestRemoveRecent=!0:this.selectSuggestion(null)}get shouldDisplaySuggestions(){return this.searchBar.displaySuggestListbox&&(this.searchBar.suggestions.length>0||this.recentSearchesMatchingQuery.length>0)}get recentSearchesMatchingQuery(){return this.searchBar.recentSearches.filter(e=>e.toLowerCase().includes(this.searchBar.query.toLowerCase()))}};jt.styles=[
|
|
2505
|
+
`}focusNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}focusPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}getFirstSuggestionElement(){return this.searchBar.querySelector("[part=suggestion-container]")}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}get selectedSuggestOption(){var e;return(e=this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']"))===null||e===void 0?void 0:e.parentElement}get selectedSuggestOptionLink(){return this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']")}get selectedSuggestRemoveRecentButton(){var e;return(e=this.selectedSuggestOption)===null||e===void 0?void 0:e.querySelector("[part=remove-suggestion]")}getLastSuggestionElement(){let e=this.searchBar.querySelectorAll("[part=suggestion-container]");return e.length>0?e[e.length-1]:null}selectSuggestion(e){var r;this.searchBar.selectedSuggestRemoveRecent=!1,e?this.searchBar.selectedSuggestOptionId=(r=e.querySelector("[part=suggestions]"))===null||r===void 0?void 0:r.id:this.searchBar.selectedSuggestOptionId=void 0}focusArrowLeft(){this.searchBar.selectedSuggestRemoveRecent?this.searchBar.selectedSuggestRemoveRecent=!1:this.selectSuggestion(null)}focusArrowRight(){!this.searchBar.selectedSuggestRemoveRecent&&this.selectedSuggestRemoveRecentButton?this.searchBar.selectedSuggestRemoveRecent=!0:this.selectSuggestion(null)}get shouldDisplaySuggestions(){return this.searchBar.displaySuggestListbox&&(this.searchBar.suggestions.length>0||this.recentSearchesMatchingQuery.length>0)}get recentSearchesMatchingQuery(){return this.searchBar.recentSearches.filter(e=>e.toLowerCase().includes(this.searchBar.query.toLowerCase()))}};jt.styles=[Si.wordWrap,Ht.css`
|
|
2506
2506
|
.ft-search-bar--mobile .ft-search-bar--suggestions {
|
|
2507
2507
|
flex-grow: 1;
|
|
2508
2508
|
flex-shrink: 1;
|
|
@@ -2511,7 +2511,7 @@
|
|
|
2511
2511
|
}
|
|
2512
2512
|
|
|
2513
2513
|
.ft-search-bar--mobile-menu-open .ft-search-bar--suggestions {
|
|
2514
|
-
border-top: 1px solid ${
|
|
2514
|
+
border-top: 1px solid ${A.colorOutline};
|
|
2515
2515
|
}
|
|
2516
2516
|
|
|
2517
2517
|
.ft-search-bar--mobile-menu-open .ft-search-bar--suggestions {
|
|
@@ -2521,15 +2521,15 @@
|
|
|
2521
2521
|
.ft-search-bar--floating-panel,
|
|
2522
2522
|
.ft-search-bar--desktop .ft-search-bar--suggestions {
|
|
2523
2523
|
position: absolute;
|
|
2524
|
-
z-index: ${
|
|
2524
|
+
z-index: ${A.floatingZIndex};
|
|
2525
2525
|
top: 100%;
|
|
2526
2526
|
left: -1px;
|
|
2527
2527
|
right: -1px;
|
|
2528
2528
|
display: none;
|
|
2529
|
-
background: ${
|
|
2530
|
-
border: 1px solid ${
|
|
2531
|
-
border-radius: 0 0 ${
|
|
2532
|
-
box-shadow: ${
|
|
2529
|
+
background: ${A.colorSurface};
|
|
2530
|
+
border: 1px solid ${A.colorOutline};
|
|
2531
|
+
border-radius: 0 0 ${A.borderRadius} ${A.borderRadius};
|
|
2532
|
+
box-shadow: ${A.elevation02};
|
|
2533
2533
|
outline: none;
|
|
2534
2534
|
}
|
|
2535
2535
|
|
|
@@ -2548,10 +2548,10 @@
|
|
|
2548
2548
|
|
|
2549
2549
|
[part~="suggestion-container"].ft-search-bar--suggestions-selected {
|
|
2550
2550
|
outline: none;
|
|
2551
|
-
box-shadow: inset 3px 0 0 ${
|
|
2551
|
+
box-shadow: inset 3px 0 0 ${A.activeItemBorderColor};
|
|
2552
2552
|
}
|
|
2553
2553
|
[part~="suggestion-container"]:hover {
|
|
2554
|
-
box-shadow: inset 3px 0 0 ${
|
|
2554
|
+
box-shadow: inset 3px 0 0 ${A.activeItemBorderColor};
|
|
2555
2555
|
}
|
|
2556
2556
|
|
|
2557
2557
|
[part~="remove-suggestion"] {
|
|
@@ -2567,7 +2567,7 @@
|
|
|
2567
2567
|
gap: 8px;
|
|
2568
2568
|
cursor: pointer;
|
|
2569
2569
|
flex-grow: 1;
|
|
2570
|
-
color: ${
|
|
2570
|
+
color: ${A.colorOnSurface};
|
|
2571
2571
|
min-height: 52px;
|
|
2572
2572
|
}
|
|
2573
2573
|
|
|
@@ -2580,7 +2580,7 @@
|
|
|
2580
2580
|
}
|
|
2581
2581
|
|
|
2582
2582
|
.ft-search-bar--recent-search + .ft-search-bar--suggestion:not(.ft-search-bar--recent-search) {
|
|
2583
|
-
border-top: 1px solid ${
|
|
2583
|
+
border-top: 1px solid ${A.colorOutline};
|
|
2584
2584
|
}
|
|
2585
2585
|
|
|
2586
2586
|
.ft-search-bar--suggestion ft-typography {
|
|
@@ -2590,10 +2590,10 @@
|
|
|
2590
2590
|
}
|
|
2591
2591
|
|
|
2592
2592
|
ft-ripple {
|
|
2593
|
-
${(0,
|
|
2593
|
+
${(0,Si.setVariable)(U.opacityContentOnSurfaceHover,U.opacityContentOnSurfaceSelected)}
|
|
2594
2594
|
}
|
|
2595
|
-
`];var
|
|
2596
|
-
${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?
|
|
2595
|
+
`];var He=c(v()),sa=c(pr());var Is=c(f());var qt=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return He.html``;let e=this.searchBar.isMobile(),r=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),i=He.html`
|
|
2596
|
+
${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?He.html`
|
|
2597
2597
|
<ft-chip part="selected-filters selected-filter-ft-locale"
|
|
2598
2598
|
?dense=${this.searchBar.dense&&!e}
|
|
2599
2599
|
?clickable=${e}
|
|
@@ -2603,46 +2603,46 @@
|
|
|
2603
2603
|
${this.getLocaleLabel(this.searchBar.contentLocale)}
|
|
2604
2604
|
</ft-chip>
|
|
2605
2605
|
`:null}
|
|
2606
|
-
${(0,
|
|
2606
|
+
${(0,sa.repeat)(this.searchBar.facets,n=>n.key,n=>{let s=dd(n);return(0,sa.repeat)(s,o=>{let a=n.label+": "+ld(o),l=n.key.replace(":","-"),u=He.html`
|
|
2607
2607
|
<ft-chip
|
|
2608
2608
|
part="selected-filters selected-filter-${l}"
|
|
2609
2609
|
?dense=${this.searchBar.dense&&!e}
|
|
2610
2610
|
?clickable=${e}
|
|
2611
2611
|
?removable=${!e}
|
|
2612
|
-
icon="${e?
|
|
2612
|
+
icon="${e?He.nothing:"close"}"
|
|
2613
2613
|
label="${a}"
|
|
2614
|
-
title="${r?a:
|
|
2614
|
+
title="${r?a:He.nothing}"
|
|
2615
2615
|
@click=${()=>this.openMobileFilters(n.key)}
|
|
2616
|
-
@icon-click=${()=>this.searchBar.setFilter(n.key,s.filter(
|
|
2616
|
+
@icon-click=${()=>this.searchBar.setFilter(n.key,s.filter(p=>p!==o))}
|
|
2617
2617
|
data-key="${n.key}"
|
|
2618
2618
|
data-value="${o}">
|
|
2619
|
-
${
|
|
2619
|
+
${ad(o)}
|
|
2620
2620
|
</ft-chip>
|
|
2621
|
-
`;return r?u:
|
|
2621
|
+
`;return r?u:He.html`
|
|
2622
2622
|
<ft-tooltip inline text="${a}">
|
|
2623
2623
|
${u}
|
|
2624
2624
|
</ft-tooltip>
|
|
2625
2625
|
`})})}
|
|
2626
|
-
${e?
|
|
2626
|
+
${e?He.html`
|
|
2627
2627
|
<ft-chip part="selected-filters mobile-filters-opener"
|
|
2628
2628
|
icon="plus"
|
|
2629
2629
|
clickable
|
|
2630
2630
|
@click=${()=>{this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0}}>
|
|
2631
2631
|
${this.searchBar.labelResolver.resolve("filtersButton")}
|
|
2632
2632
|
</ft-chip>
|
|
2633
|
-
`:
|
|
2634
|
-
`;return r?
|
|
2633
|
+
`:He.nothing}
|
|
2634
|
+
`;return r?He.html`
|
|
2635
2635
|
<ft-snap-scroll horizontal controls hideScrollbar limitSize
|
|
2636
2636
|
class="ft-search-bar--selected-filters"
|
|
2637
2637
|
part="selected-filters-container"
|
|
2638
2638
|
exportpartsPrefix="selected-filters-container">
|
|
2639
2639
|
${i}
|
|
2640
2640
|
</ft-snap-scroll>
|
|
2641
|
-
`:
|
|
2641
|
+
`:He.html`
|
|
2642
2642
|
<div class="ft-search-bar--selected-filters" part="selected-filters-container">
|
|
2643
2643
|
${i}
|
|
2644
2644
|
</div>
|
|
2645
|
-
`}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var r;return(r=this.searchBar.availableContentLocales.filter(i=>{var n;return((n=i.lang)!==null&&n!==void 0?n:"").toLowerCase()===(e??"").toLowerCase()}).map(i=>i.label).pop())!==null&&r!==void 0?r:e}};qt.styles=
|
|
2645
|
+
`}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var r;return(r=this.searchBar.availableContentLocales.filter(i=>{var n;return((n=i.lang)!==null&&n!==void 0?n:"").toLowerCase()===(e??"").toLowerCase()}).map(i=>i.label).pop())!==null&&r!==void 0?r:e}};qt.styles=He.css`
|
|
2646
2646
|
.ft-search-bar--selected-filters:not(ft-snap-scroll) {
|
|
2647
2647
|
flex-shrink: 0;
|
|
2648
2648
|
display: flex;
|
|
@@ -2653,7 +2653,7 @@
|
|
|
2653
2653
|
|
|
2654
2654
|
ft-snap-scroll.ft-search-bar--selected-filters {
|
|
2655
2655
|
overflow: hidden;
|
|
2656
|
-
${(0,Is.setVariable)(
|
|
2656
|
+
${(0,Is.setVariable)(Ve.gap,"4px")};
|
|
2657
2657
|
}
|
|
2658
2658
|
|
|
2659
2659
|
ft-snap-scroll.ft-search-bar--selected-filters::part(content) {
|
|
@@ -2661,8 +2661,8 @@
|
|
|
2661
2661
|
}
|
|
2662
2662
|
|
|
2663
2663
|
.ft-search-bar--desktop ft-snap-scroll.ft-search-bar--selected-filters {
|
|
2664
|
-
${(0,Is.setVariable)(
|
|
2665
|
-
${(0,Is.setVariable)(
|
|
2664
|
+
${(0,Is.setVariable)(ke.iconSize,"17px")};
|
|
2665
|
+
${(0,Is.setVariable)(ke.fontSize,"12px")};
|
|
2666
2666
|
}
|
|
2667
2667
|
|
|
2668
2668
|
.ft-search-bar--selected-filters * {
|
|
@@ -2672,8 +2672,8 @@
|
|
|
2672
2672
|
.ft-search-bar--selected-filters ft-chip {
|
|
2673
2673
|
flex-grow: 0;
|
|
2674
2674
|
}
|
|
2675
|
-
`;var Lt=c(
|
|
2676
|
-
<div class="${(0,
|
|
2675
|
+
`;var Lt=c(v());var kp=c(et()),Lp=c(f()),kf=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 qt(e),this.suggestManager=i??new jt(e)}render(){var e;let r={"ft-search-bar--container":!0,"ft-search-bar--mobile":!0,"ft-search-bar--mobile-menu-open":this.searchBar.isMobileMenuOpen(),"ft-search-bar--forced-open":this.searchBar.forceMobileMenuOpen};return Lt.html`
|
|
2676
|
+
<div class="${(0,kp.classMap)(r)}" part="container" tabindex="-1">
|
|
2677
2677
|
<div class="ft-search-bar" role="search">
|
|
2678
2678
|
<div class="ft-search-bar--input-container" part="input-container">
|
|
2679
2679
|
<div class="ft-search-bar--input-outline" part="input-outline">
|
|
@@ -2729,21 +2729,21 @@
|
|
|
2729
2729
|
@click=${()=>{var r;return this.searchBar.isMobileMenuOpen()?this.searchBar.onLaunchSearch():(r=this.searchBar.input)===null||r===void 0?void 0:r.focus()}}
|
|
2730
2730
|
></ft-button>
|
|
2731
2731
|
</div>
|
|
2732
|
-
`}onSearchBarKeyDown(e){var r;switch(e.key){case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(r=this.suggestManager.selectedSuggestRemoveRecentButton)===null||r===void 0||r.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}};
|
|
2732
|
+
`}onSearchBarKeyDown(e){var r;switch(e.key){case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(r=this.suggestManager.selectedSuggestRemoveRecentButton)===null||r===void 0||r.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}};Ei.styles=Lt.css`
|
|
2733
2733
|
|
|
2734
|
-
`;
|
|
2735
|
-
<div class="${(0,
|
|
2734
|
+
`;kf([(0,Lp.ignoreComposingEvents)()],Ei.prototype,"onSearchBarKeyDown",null);var je=c(v()),$p=c(pr());var Ip=c(et()),Dp=c(f()),Lf=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},Ai=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new qt(e),this.suggestManager=i??new jt(e)}render(){var e;let r={"ft-search-bar--container":!0,"ft-search-bar--dense":this.searchBar.dense,"ft-search-bar--desktop":!0,"ft-search-bar--floating-panel-open":this.searchBar.displayFacets&&!this.searchBar.forceMenuOpen,"ft-search-bar--forced-open":this.searchBar.forceMenuOpen};return je.html`
|
|
2735
|
+
<div class="${(0,Ip.classMap)(r)}" part="container" tabindex="-1">
|
|
2736
2736
|
<div class="ft-search-bar" part="search-bar" role="search">
|
|
2737
2737
|
${this.renderSearchBarLeftAction()}
|
|
2738
2738
|
<div class="ft-search-bar--input-container" part="input-container" tabindex="-1">
|
|
2739
2739
|
<div class="ft-search-bar--input-outline" part="input-outline">
|
|
2740
|
-
${this.searchBar.dense?this.selectedFacetsManager.render():
|
|
2740
|
+
${this.searchBar.dense?this.selectedFacetsManager.render():je.nothing}
|
|
2741
2741
|
<input class="ft-search-bar--input ft-typography--body2"
|
|
2742
2742
|
role="combobox"
|
|
2743
2743
|
aria-autocomplete="list"
|
|
2744
2744
|
aria-controls="${this.suggestManager.listboxId}"
|
|
2745
2745
|
aria-expanded="${this.searchBar.displaySuggestListbox}"
|
|
2746
|
-
aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:
|
|
2746
|
+
aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:je.nothing}"
|
|
2747
2747
|
part="input"
|
|
2748
2748
|
type="search"
|
|
2749
2749
|
placeholder="${this.searchBar.labelResolver.resolve("inputPlaceHolder")}"
|
|
@@ -2758,9 +2758,9 @@
|
|
|
2758
2758
|
${this.renderDesktopSearchBarButtons()}
|
|
2759
2759
|
${this.searchBar.renderDesktopFloatingMenu()}
|
|
2760
2760
|
</div>
|
|
2761
|
-
${this.searchBar.dense?
|
|
2761
|
+
${this.searchBar.dense?je.nothing:this.searchBar.forceMenuOpen?this.searchBar.renderDesktopMenu():this.selectedFacetsManager.render()}
|
|
2762
2762
|
</div>
|
|
2763
|
-
`}renderSearchBarLeftAction(){return this.searchBar.hasFacets()?this.searchBar.forceMenuOpen?
|
|
2763
|
+
`}renderSearchBarLeftAction(){return this.searchBar.hasFacets()?this.searchBar.forceMenuOpen?je.nothing:je.html`
|
|
2764
2764
|
<ft-button class="ft-search-bar--filters-opener ft-search-bar--left-action"
|
|
2765
2765
|
part="filters-opener"
|
|
2766
2766
|
trailingIcon
|
|
@@ -2772,24 +2772,24 @@
|
|
|
2772
2772
|
>
|
|
2773
2773
|
${this.searchBar.labelResolver.resolve("filtersButton")}
|
|
2774
2774
|
</ft-button>
|
|
2775
|
-
`:this.searchBar.hasLocaleSelector()?
|
|
2775
|
+
`:this.searchBar.hasLocaleSelector()?je.html`
|
|
2776
2776
|
<ft-select outlined
|
|
2777
2777
|
class="ft-search-bar--content-locale ft-search-bar--left-action"
|
|
2778
2778
|
part="content-locale select-ft-locale"
|
|
2779
2779
|
ariaLabel="${this.searchBar.labelResolver.resolve("selectLocale")}"
|
|
2780
2780
|
.exportpartsPrefixes=${["content-locale","select-ft-locale"]}
|
|
2781
2781
|
@change=${e=>this.searchBar.contentLocale=e.detail==null?void 0:e.detail}>
|
|
2782
|
-
${(0
|
|
2782
|
+
${(0,$p.repeat)(this.searchBar.availableContentLocales,e=>e.lang,e=>je.html`
|
|
2783
2783
|
<ft-select-option .value=${e.lang}
|
|
2784
2784
|
label="${e.label}"
|
|
2785
2785
|
?selected=${e.lang==this.searchBar.contentLocale}>
|
|
2786
2786
|
</ft-select-option>
|
|
2787
2787
|
`)}
|
|
2788
2788
|
</ft-select>
|
|
2789
|
-
`:
|
|
2789
|
+
`:je.nothing}renderDesktopSearchBarButtons(){return je.html`
|
|
2790
2790
|
<div class="ft-search-bar--actions"
|
|
2791
2791
|
part="search-bar-actions">
|
|
2792
|
-
${this.searchBar.query?
|
|
2792
|
+
${this.searchBar.query?je.html`
|
|
2793
2793
|
<ft-button class="ft-search-bar--clear-query"
|
|
2794
2794
|
part="clear-query"
|
|
2795
2795
|
icon="close"
|
|
@@ -2808,45 +2808,45 @@
|
|
|
2808
2808
|
@click=${()=>this.searchBar.onLaunchSearch()}
|
|
2809
2809
|
></ft-button>
|
|
2810
2810
|
</div>
|
|
2811
|
-
`}onSearchBarKeyDown(e){var r;switch(["Escape","Tab","Shift"].includes(e.key)||(this.searchBar.displaySuggestListbox=!0),e.key){case"Tab":this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0;break;case"Escape":this.suggestManager.shouldDisplaySuggestions&&(e.stopPropagation(),e.preventDefault(),this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0),this.searchBar.mobileMenuOpen=!1;break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(r=this.suggestManager.selectedSuggestRemoveRecentButton)===null||r===void 0||r.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}onClick(){this.onFocus()}onFocus(){this.searchBar.reactToFocus&&(this.searchBar.displaySuggestListbox=!0)}};
|
|
2811
|
+
`}onSearchBarKeyDown(e){var r;switch(["Escape","Tab","Shift"].includes(e.key)||(this.searchBar.displaySuggestListbox=!0),e.key){case"Tab":this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0;break;case"Escape":this.suggestManager.shouldDisplaySuggestions&&(e.stopPropagation(),e.preventDefault(),this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0),this.searchBar.mobileMenuOpen=!1;break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(r=this.suggestManager.selectedSuggestRemoveRecentButton)===null||r===void 0||r.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}onClick(){this.onFocus()}onFocus(){this.searchBar.reactToFocus&&(this.searchBar.displaySuggestListbox=!0)}};Ai.styles=je.css`
|
|
2812
2812
|
|
|
2813
|
-
`;
|
|
2813
|
+
`;Lf([(0,Dp.ignoreComposingEvents)()],Ai.prototype,"onSearchBarKeyDown",null);var P=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 Pp={filtersButton:"Filters",inputPlaceHolder:"Search",clearInputButton:"Clear",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},oa=class extends CustomEvent{constructor(e){super("change",{detail:e})}},$f=()=>{},O=class extends Q.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 Q.ParametrizedLabelResolver(Pp,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new Q.SearchPlaceConverter(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=gt.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.reactToFocus=!0,this.displaySuggestListbox=!1,this.selectedSuggestRemoveRecent=!1,this.suggestManager=new jt(this),this.selectedFacetsManager=new qt(this),this.desktopSearchBarManager=new Ai(this),this.mobileSearchBarManager=new Ei(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new Q.Debouncer(10),this.updateLocalesDebouncer=new Q.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 Q.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()}focusInput(){var e;this.reactToFocus=!1,(e=this.input)===null||e===void 0||e.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return V.html`
|
|
2814
2814
|
<ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
|
|
2815
2815
|
<div class="sr-only" aria-live="polite" aria-atomic="true">
|
|
2816
2816
|
${this.renderLiveText()}
|
|
2817
2817
|
</div>
|
|
2818
2818
|
${this.renderSearchBar()}
|
|
2819
|
-
`}renderLiveText(){return this.suggestManager.shouldDisplaySuggestions?this.labelResolver.resolve("ariaLiveSuggestions",this.suggestManager.recentSearchesMatchingQuery.length,this.suggestions.length):""}renderSearchBar(){return this.facetsInitialized&&this.availableContentLocalesInitialized?this.isMobile()?this.mobileSearchBarManager.render():this.desktopSearchBarManager.render():
|
|
2819
|
+
`}renderLiveText(){return this.suggestManager.shouldDisplaySuggestions?this.labelResolver.resolve("ariaLiveSuggestions",this.suggestManager.recentSearchesMatchingQuery.length,this.suggestions.length):""}renderSearchBar(){return this.facetsInitialized&&this.availableContentLocalesInitialized?this.isMobile()?this.mobileSearchBarManager.render():this.desktopSearchBarManager.render():V.html`
|
|
2820
2820
|
<ft-skeleton class="ft-search-bar--container ft-search-bar--skeleton"
|
|
2821
2821
|
part="loader"
|
|
2822
2822
|
tabindex="-1"></ft-skeleton>
|
|
2823
|
-
`}renderMobileFacets(){let e=this.availableContentLocales.filter(r=>r.lang===this.contentLocale).pop();return
|
|
2823
|
+
`}renderMobileFacets(){let e=this.availableContentLocales.filter(r=>r.lang===this.contentLocale).pop();return V.html`
|
|
2824
2824
|
<ft-accordion class="ft-search-bar--filters-container">
|
|
2825
|
-
${this.hasLocaleSelector()?
|
|
2825
|
+
${this.hasLocaleSelector()?V.html`
|
|
2826
2826
|
<ft-accordion-item data-facet-key="ft:locale">
|
|
2827
2827
|
<div class="ft-search-bar--filter-label" slot="toggle">
|
|
2828
2828
|
<ft-typography variant="button">${this.labelResolver.resolve("contentLocaleSelector")}
|
|
2829
2829
|
</ft-typography>
|
|
2830
|
-
${e?.label?
|
|
2830
|
+
${e?.label?V.html`
|
|
2831
2831
|
<ft-typography class="ft-search-bar--filter-label-values" variant="body2">
|
|
2832
2832
|
${e?.label}
|
|
2833
2833
|
</ft-typography>
|
|
2834
|
-
`:
|
|
2834
|
+
`:V.nothing}
|
|
2835
2835
|
</div>
|
|
2836
2836
|
<div part="content-locale-selector">
|
|
2837
2837
|
${this.getContentLocaleRadioGroup()}
|
|
2838
2838
|
</div>
|
|
2839
2839
|
</ft-accordion-item>
|
|
2840
2840
|
`:null}
|
|
2841
|
-
${(0,fn.repeat)(this.facets,r=>r.key,r=>{let i=
|
|
2841
|
+
${(0,fn.repeat)(this.facets,r=>r.key,r=>{let i=Ko(r),n=r.key.replace(":","-"),s=ud(i);return r.rootNodes.length>0?V.html`
|
|
2842
2842
|
<ft-accordion-item data-facet-key="${r.key}">
|
|
2843
2843
|
<div class="ft-search-bar--filter-label" slot="toggle">
|
|
2844
2844
|
<ft-typography variant="button">${r.label}</ft-typography>
|
|
2845
|
-
${s.length>0?
|
|
2845
|
+
${s.length>0?V.html`
|
|
2846
2846
|
<ft-typography class="ft-search-bar--filter-label-values" variant="body2">
|
|
2847
2847
|
${s.join(", ")}
|
|
2848
2848
|
</ft-typography>
|
|
2849
|
-
`:
|
|
2849
|
+
`:V.nothing}
|
|
2850
2850
|
</div>
|
|
2851
2851
|
<ft-filter
|
|
2852
2852
|
part="filters filter filter-${n}"
|
|
@@ -2860,24 +2860,24 @@
|
|
|
2860
2860
|
@change=${o=>this.setFilter(i.id,o.detail)}
|
|
2861
2861
|
></ft-filter>
|
|
2862
2862
|
</ft-accordion-item>
|
|
2863
|
-
`:
|
|
2863
|
+
`:V.nothing})}
|
|
2864
2864
|
</ft-accordion>
|
|
2865
|
-
`}getContentLocaleRadioGroup(){var e;return
|
|
2865
|
+
`}getContentLocaleRadioGroup(){var e;return V.html`
|
|
2866
2866
|
<ft-radio-group aria-labelledby="content_locale_radio_group_label"
|
|
2867
2867
|
@change=${r=>{this.contentLocale=r.detail==="all"?void 0:r.detail,this.clearFilters()}}>
|
|
2868
|
-
${(0,fn.repeat)((e=this.availableContentLocales)!==null&&e!==void 0?e:[],r=>r.lang,r=>{var i;return
|
|
2868
|
+
${(0,fn.repeat)((e=this.availableContentLocales)!==null&&e!==void 0?e:[],r=>r.lang,r=>{var i;return V.html`
|
|
2869
2869
|
<ft-radio value="${(i=r.lang)!==null&&i!==void 0?i:"all"}"
|
|
2870
2870
|
?checked=${r.lang==this.contentLocale}>
|
|
2871
2871
|
${r.label}
|
|
2872
2872
|
</ft-radio>
|
|
2873
2873
|
`})}
|
|
2874
2874
|
</ft-radio-group>
|
|
2875
|
-
`}renderDesktopMenu(){return this.hasFacets()?
|
|
2875
|
+
`}renderDesktopMenu(){return this.hasFacets()?V.html`
|
|
2876
2876
|
<div class="ft-search-bar--desktop-menu">
|
|
2877
2877
|
${this.renderFacetsActions()}
|
|
2878
2878
|
${this.renderDesktopFacets()}
|
|
2879
2879
|
<div class="ft-search-bar--facets-actions">
|
|
2880
|
-
${this.forceMenuOpen?this.renderDesktopClearFilters():
|
|
2880
|
+
${this.forceMenuOpen?this.renderDesktopClearFilters():V.nothing}
|
|
2881
2881
|
<ft-button class="ft-search-bar--launch-search"
|
|
2882
2882
|
href="${this.searchRequestSerializer(this.request)}"
|
|
2883
2883
|
part="launch-search-in-panel"
|
|
@@ -2887,38 +2887,38 @@
|
|
|
2887
2887
|
</ft-button>
|
|
2888
2888
|
</div>
|
|
2889
2889
|
</div>
|
|
2890
|
-
`:
|
|
2890
|
+
`:V.nothing}renderFacetsActions(){var e;return V.html`
|
|
2891
2891
|
<div class="ft-search-bar--facets-actions">
|
|
2892
|
-
${this.hasPresets?
|
|
2892
|
+
${this.hasPresets?V.html`
|
|
2893
2893
|
<ft-select
|
|
2894
2894
|
class="ft-search-bar--presets"
|
|
2895
2895
|
part="presets"
|
|
2896
2896
|
label="${this.labelResolver.resolve("presetsSelector")}"
|
|
2897
2897
|
outlined
|
|
2898
2898
|
@change=${r=>this.selectedPreset=r.detail}>
|
|
2899
|
-
${(0,fn.repeat)((e=this.presets)!==null&&e!==void 0?e:[],r=>r.name,r=>
|
|
2899
|
+
${(0,fn.repeat)((e=this.presets)!==null&&e!==void 0?e:[],r=>r.name,r=>V.html`
|
|
2900
2900
|
<ft-select-option value="${r.name}"
|
|
2901
2901
|
label="${r.name}"
|
|
2902
2902
|
?selected=${r.name===this.selectedPreset}>
|
|
2903
2903
|
</ft-select-option>
|
|
2904
2904
|
`)}
|
|
2905
2905
|
</ft-select>
|
|
2906
|
-
`:
|
|
2906
|
+
`:V.nothing}
|
|
2907
2907
|
<slot name="facets-actions"></slot>
|
|
2908
|
-
${this.forceMenuOpen&&!this.isMobile()?
|
|
2908
|
+
${this.forceMenuOpen&&!this.isMobile()?V.nothing:this.renderDesktopClearFilters()}
|
|
2909
2909
|
</div>
|
|
2910
|
-
`}renderDesktopClearFilters(){return this.metadataFilters.length>0?
|
|
2910
|
+
`}renderDesktopClearFilters(){return this.metadataFilters.length>0?V.html`
|
|
2911
2911
|
<ft-button part="facets-actions"
|
|
2912
2912
|
@click=${this.clearFilters}>
|
|
2913
2913
|
${this.labelResolver.resolve("clearFilters")}
|
|
2914
2914
|
</ft-button>
|
|
2915
|
-
`:
|
|
2915
|
+
`:V.nothing}renderDesktopFacets(){return this.hasFacets()?V.html`
|
|
2916
2916
|
<ft-snap-scroll horizontal limitSize controls
|
|
2917
2917
|
class="ft-search-bar--filters-container"
|
|
2918
2918
|
part="filters-container"
|
|
2919
2919
|
exportpartsPrefix="filters-container"
|
|
2920
2920
|
data-filters-count="${this.facets.length+(this.hasLocaleSelector()?1:0)}">
|
|
2921
|
-
${this.hasLocaleSelector()?
|
|
2921
|
+
${this.hasLocaleSelector()?V.html`
|
|
2922
2922
|
<div part="content-locale-selector">
|
|
2923
2923
|
<div part="content-locale-selector-header">
|
|
2924
2924
|
<ft-typography variant="overline" id="content_locale_radio_group_label" part="content-locale-selector-label">
|
|
@@ -2927,8 +2927,8 @@
|
|
|
2927
2927
|
</div>
|
|
2928
2928
|
${this.getContentLocaleRadioGroup()}
|
|
2929
2929
|
</div>
|
|
2930
|
-
`:
|
|
2931
|
-
${(0,fn.repeat)(this.facets,e=>e.key,e=>{let r=
|
|
2930
|
+
`:V.nothing}
|
|
2931
|
+
${(0,fn.repeat)(this.facets,e=>e.key,e=>{let r=Ko(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 V.html`
|
|
2932
2932
|
<ft-filter
|
|
2933
2933
|
class="${i?"ft-search-bar--hierarchical-filter":""}"
|
|
2934
2934
|
part="filters filter filter-${n}"
|
|
@@ -2943,28 +2943,28 @@
|
|
|
2943
2943
|
></ft-filter>
|
|
2944
2944
|
`})}
|
|
2945
2945
|
</ft-snap-scroll>
|
|
2946
|
-
`:
|
|
2946
|
+
`:V.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 Q.ParametrizedLabelResolver(Pp,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")&&((n=this.presets)!==null&&n!==void 0?n:[]).forEach(a=>a.metadataFilters.forEach(l=>{l.valueFilter&&(l.valueFilter.values=l.valueFilter.values.map(u=>Cs(u)))})),e.has("presets")||e.has("selectedPreset")){let a=((s=this.presets)!==null&&s!==void 0?s:[]).find(l=>l.name===this.selectedPreset);a&&!this.compareRequests(this.request,a)&&this.setFiltersFromPreset(a)}e.has("contentLocale")&&this.contentLocale!=null&&(this.knownFacetLabels=new Map),["contentLocale","metadataFilters"].some(a=>e.has(a))&&(this.selectedPreset=(i=((o=this.presets)!==null&&o!==void 0?o:[]).find(a=>this.compareRequests(a,this.request)))===null||i===void 0?void 0:i.name),["baseUrl","apiIntegrationIdentifier"].some(a=>e.has(a))&&(this.api=void 0,this.initApi()),e.has("api")&&this.api&&this.initSearchData(),["uiLocale","contentLocale","metadataFilters","displayedFilters"].some(a=>e.has(a))&&this.updateFacets(),["query","uiLocale","contentLocale","metadataFilters","displayedFilters","api"].some(a=>e.has(a))&&this.suggestManager.update(),["query","uiLocale","contentLocale","metadataFilters"].some(a=>e.has(a))&&this.dispatchStateChangeEvent()}dispatchStateChangeEvent(){this.stateChangeEventDebouncer.run(()=>this.dispatchEvent(new oa(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($f)),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),w.addEventListener("authentication-change",this.initSearchData),this.initSearchData(),this.focusOnDisplay&&(0,Q.waitFor)(()=>this.input,50).then(e=>{Q.FocusHelper.allowAutoFocus(e)&&this.focusInput()})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox),document.removeEventListener("focusin",this.closeFloatingContainer),document.removeEventListener("click",this.closeFloatingContainer),w.removeEventListener("authentication-change",this.initSearchData)}updateSize(e){this.sizeCategory=e.detail.category}setFilter(e,r){let i=this.metadataFilters.filter(n=>!n.valueFilter||n.key!==e);this.facets.forEach(n=>{n.key===e&&(0,Q.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,Q.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?V.nothing:V.html`
|
|
2947
2947
|
<div class="ft-search-bar--floating-panel"
|
|
2948
2948
|
id="ft-search-bar-floating-panel"
|
|
2949
2949
|
@keyup=${this.onFloatingContainerKeyUp}
|
|
2950
2950
|
part="floating-panel"
|
|
2951
2951
|
tabindex="-1">
|
|
2952
2952
|
${this.renderDesktopMenu()}
|
|
2953
|
-
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};
|
|
2953
|
+
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};O.elementDefinitions={"ft-accordion":Vt,"ft-accordion-item":bt,"ft-button":S,"ft-chip":ie,"ft-filter":q,"ft-filter-option":at,"ft-icon":J,"ft-ripple":k,"ft-select":Z,"ft-select-option":Me,"ft-size-watcher":it,"ft-skeleton":br,"ft-snap-scroll":ge,"ft-tooltip":le,"ft-typography":H,"ft-radio-group":st,"ft-radio":Ae};O.styles=[er,Q.noTextInputDefaultClearButton,Cp,wp,qt.styles,jt.styles,Q.screenReaderStyles];P([(0,N.property)({type:Boolean})],O.prototype,"dense",void 0);P([(0,N.property)()],O.prototype,"mode",void 0);P([(0,N.property)({type:Boolean})],O.prototype,"forceMobileMenuOpen",void 0);P([(0,N.property)({type:Boolean})],O.prototype,"forceMenuOpen",void 0);P([(0,N.property)()],O.prototype,"baseUrl",void 0);P([(0,N.property)()],O.prototype,"apiIntegrationIdentifier",void 0);P([(0,N.property)()],O.prototype,"contentLocale",void 0);P([(0,N.state)()],O.prototype,"availableContentLocales",void 0);P([(0,N.state)()],O.prototype,"availableContentLocalesInitialized",void 0);P([(0,N.property)()],O.prototype,"uiLocale",void 0);P([(0,Q.jsonProperty)({})],O.prototype,"labels",void 0);P([(0,Q.jsonProperty)([])],O.prototype,"displayedFilters",void 0);P([(0,Q.jsonProperty)([])],O.prototype,"presets",void 0);P([(0,N.property)({type:String,reflect:!0})],O.prototype,"selectedPreset",void 0);P([(0,Q.jsonProperty)([])],O.prototype,"priors",void 0);P([(0,N.property)()],O.prototype,"searchRequestSerializer",void 0);P([(0,N.property)({type:Boolean})],O.prototype,"focusOnDisplay",void 0);P([(0,N.state)()],O.prototype,"metadataFilters",void 0);P([(0,N.state)()],O.prototype,"sizeCategory",void 0);P([(0,N.state)()],O.prototype,"displayFacets",void 0);P([(0,N.state)()],O.prototype,"mobileMenuOpen",void 0);P([(0,N.state)()],O.prototype,"facets",void 0);P([(0,N.state)()],O.prototype,"facetsInitialized",void 0);P([(0,N.query)(".ft-search-bar--container")],O.prototype,"container",void 0);P([(0,N.query)(".ft-search-bar--filters-opener")],O.prototype,"filtersOpener",void 0);P([(0,N.query)(".ft-search-bar--floating-panel")],O.prototype,"floatingContainer",void 0);P([(0,N.query)("ft-snap-scroll.ft-search-bar--filters-container")],O.prototype,"scrollingFiltersContainer",void 0);P([(0,N.query)(".ft-search-bar--input")],O.prototype,"input",void 0);P([(0,N.query)(".ft-search-bar--launch-search")],O.prototype,"launchSearchButton",void 0);P([(0,N.state)()],O.prototype,"query",void 0);P([(0,N.state)()],O.prototype,"suggestions",void 0);P([(0,N.state)()],O.prototype,"recentSearches",void 0);P([(0,N.state)()],O.prototype,"scrollToFacet",void 0);P([(0,N.state)()],O.prototype,"api",void 0);P([(0,N.state)()],O.prototype,"displaySuggestListbox",void 0);P([(0,N.state)()],O.prototype,"selectedSuggestOptionId",void 0);P([(0,N.state)()],O.prototype,"selectedSuggestRemoveRecent",void 0);P([(0,N.state)()],O.prototype,"facetsLoaded",void 0);var Np=c(f());var Mp={"ft-search-bar":O};(0,Np.customElements)(Mp);var Up=Fp.css`
|
|
2954
2954
|
* {
|
|
2955
2955
|
box-sizing: border-box;
|
|
2956
2956
|
}
|
|
2957
2957
|
|
|
2958
2958
|
.ft-search-input-suggestion {
|
|
2959
2959
|
position: absolute;
|
|
2960
|
-
z-index: ${
|
|
2960
|
+
z-index: ${ve.floatingZIndex};
|
|
2961
2961
|
top: calc(100% + 2px);
|
|
2962
2962
|
left: -1px;
|
|
2963
2963
|
right: -1px;
|
|
2964
|
-
background: ${
|
|
2965
|
-
border: 1px solid ${
|
|
2966
|
-
border-radius: 0 0 ${
|
|
2967
|
-
box-shadow: ${
|
|
2964
|
+
background: ${ve.colorSurface};
|
|
2965
|
+
border: 1px solid ${ve.colorOutline};
|
|
2966
|
+
border-radius: 0 0 ${ve.borderRadius} ${ve.borderRadius};
|
|
2967
|
+
box-shadow: ${ve.elevation02};
|
|
2968
2968
|
}
|
|
2969
2969
|
|
|
2970
2970
|
.ft-search-input-suggestion--container {
|
|
@@ -2975,7 +2975,7 @@
|
|
|
2975
2975
|
.ft-search-input-suggestion--container:has([aria-selected="true"]),
|
|
2976
2976
|
.ft-search-input-suggestion--container:hover {
|
|
2977
2977
|
outline: none;
|
|
2978
|
-
box-shadow: inset 3px 0 0 ${
|
|
2978
|
+
box-shadow: inset 3px 0 0 ${A.activeItemBorderColor};
|
|
2979
2979
|
}
|
|
2980
2980
|
|
|
2981
2981
|
.ft-search-input-suggestion--suggestion {
|
|
@@ -2986,7 +2986,7 @@
|
|
|
2986
2986
|
padding: 8px;
|
|
2987
2987
|
gap: 8px;
|
|
2988
2988
|
cursor: pointer;
|
|
2989
|
-
color: ${
|
|
2989
|
+
color: ${ve.colorOnSurface};
|
|
2990
2990
|
min-height: 44px;
|
|
2991
2991
|
flex-grow: 1;
|
|
2992
2992
|
}
|
|
@@ -3002,18 +3002,18 @@
|
|
|
3002
3002
|
}
|
|
3003
3003
|
|
|
3004
3004
|
ft-ripple {
|
|
3005
|
-
${(0,
|
|
3005
|
+
${(0,Bp.setVariable)(U.opacityContentOnSurfaceHover,U.opacityContentOnSurfaceSelected)}
|
|
3006
3006
|
}
|
|
3007
|
-
`;var
|
|
3007
|
+
`;var aa=c(pr());var vr=class{constructor(e){this.ftSearchInput=e,this.listboxId="ft-search-input-suggestion"}render(){var e;let r=Yt.get(),{recentQuerySuggestions:i}=this.ftSearchInput;return Yr.html`
|
|
3008
3008
|
<div class="ft-search-input-suggestion ft-word-wrap"
|
|
3009
3009
|
id="${this.listboxId}"
|
|
3010
3010
|
role="listbox"
|
|
3011
3011
|
aria-label="${Zt.messages.suggestionsLabel()}"
|
|
3012
3012
|
part="container">
|
|
3013
|
-
${(0,
|
|
3014
|
-
${(0,
|
|
3013
|
+
${(0,aa.repeat)(i,n=>n,(n,s)=>this.renderRecentQuery(s,n,r))}
|
|
3014
|
+
${(0,aa.repeat)((e=this.ftSearchInput.suggestResults)!==null&&e!==void 0?e:[],n=>n.value,(n,s)=>this.renderSuggestion(i.length+s,n,r))}
|
|
3015
3015
|
</div>
|
|
3016
|
-
`}renderRecentQuery(e,r,i){return this.renderOption(e,r,"history",
|
|
3016
|
+
`}renderRecentQuery(e,r,i){return this.renderOption(e,r,"history",Ue.material,!0,i)}renderSuggestion(e,r,i){let n=r.type==="DOCUMENT"?Ue.file_format:Ue.fluid_topics,s;switch(r.type){case"MAP":s=r.editorialType==="BOOK"?me.BOOK:me.ARTICLE;break;case"DOCUMENT":s=bs(r.mimeType,r.filenameExtension);break;case"TOPIC":s=me.TOPICS;break;case"HTML_PACKAGE":s=me.BOX_CODE;break;case"HTML_PACKAGE_PAGE":s=me.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):Yr.nothing;return Yr.html`
|
|
3017
3017
|
<div part="suggestion-container"
|
|
3018
3018
|
class="ft-search-input-suggestion--container">
|
|
3019
3019
|
<a href="${u}"
|
|
@@ -3027,10 +3027,10 @@
|
|
|
3027
3027
|
>
|
|
3028
3028
|
<ft-ripple ?activated=${a&&!l}></ft-ripple>
|
|
3029
3029
|
<ft-icon variant="${n}" value="${i}" part="suggestion-icon"></ft-icon>
|
|
3030
|
-
<ft-typography variant="${
|
|
3030
|
+
<ft-typography variant="${se.body1}">${r}</ft-typography>
|
|
3031
3031
|
</a>
|
|
3032
|
-
${s?
|
|
3033
|
-
<ft-button icon="${
|
|
3032
|
+
${s?Yr.html`
|
|
3033
|
+
<ft-button icon="${me.CLOSE}"
|
|
3034
3034
|
round
|
|
3035
3035
|
part="remove-suggestion"
|
|
3036
3036
|
class="ft-search-input-suggestion--remove"
|
|
@@ -3041,10 +3041,10 @@
|
|
|
3041
3041
|
?activated=${a&&l}
|
|
3042
3042
|
@click=${()=>this.onRemoveRecentQuery(r)}>
|
|
3043
3043
|
</ft-button>
|
|
3044
|
-
`:
|
|
3044
|
+
`:Yr.nothing}
|
|
3045
3045
|
</div>
|
|
3046
|
-
`}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()}};
|
|
3047
|
-
<div class="${(0,
|
|
3046
|
+
`}onRemoveRecentQuery(e){var r;(r=this.ftSearchInput.stateManager)===null||r===void 0||r.removeRecentQuery(e)}onSelectOption(e){this.ftSearchInput.onSuggestionSelected(e)}get activeElementId(){let{selectedSuggestOptionIndex:e,selectedSuggestOptionRemove:r}=this.ftSearchInput;if(e!==void 0)return(r?"remove-suggestion-":"suggestion-")+e}get activeElement(){var e;let r=this.activeElementId;if(r!==void 0)return(e=this.ftSearchInput.shadowRoot.getElementById(r))!==null&&e!==void 0?e:void 0}recentQueriesCount(){return this.ftSearchInput.recentQuerySuggestions.length}suggestionsCount(){var e,r;return(r=(e=this.ftSearchInput.suggestResults)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:0}optionsCount(){return this.recentQueriesCount()+this.suggestionsCount()}clearSelection(){this.ftSearchInput.selectedSuggestOptionIndex=void 0,this.ftSearchInput.selectedSuggestOptionRemove=!1}selectNext(){this.ftSearchInput.selectedSuggestOptionIndex===void 0?this.ftSearchInput.selectedSuggestOptionIndex=0:(this.ftSearchInput.selectedSuggestOptionIndex++,this.ftSearchInput.selectedSuggestOptionIndex>=this.optionsCount()&&this.clearSelection())}selectPrevious(){this.ftSearchInput.selectedSuggestOptionIndex===void 0?this.ftSearchInput.selectedSuggestOptionIndex=this.optionsCount()-1:(this.ftSearchInput.selectedSuggestOptionIndex--,this.ftSearchInput.selectedSuggestOptionIndex<0&&this.clearSelection())}selectLeft(){this.ftSearchInput.selectedSuggestOptionIndex!==void 0&&(this.ftSearchInput.selectedSuggestOptionRemove?this.ftSearchInput.selectedSuggestOptionRemove=!1:this.clearSelection())}isRemovable(e){return e<this.recentQueriesCount()}selectRight(){let e=this.ftSearchInput.selectedSuggestOptionIndex;e!==void 0&&(!this.ftSearchInput.selectedSuggestOptionRemove&&this.isRemovable(e)?this.ftSearchInput.selectedSuggestOptionRemove=!0:this.clearSelection())}closeBox(){this.ftSearchInput.displaySuggestListbox=!1,this.clearSelection()}};vr.elementDefinitions={"ft-ripple":k,"ft-typography":H,"ft-icon":J,"ft-button":S};vr.styles=[zp.wordWrap,Up];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},If=5;function Df(t){let e=t.liveQuery.trim().toLowerCase();return t.recentQueries.filter(r=>r.toLowerCase().includes(e)).slice(0,If)}var ne=class extends hi(Es){constructor(){super(),this.liveQuery="",this.recentQuerySuggestions=[],this.forceCloseSuggestion=!1,this.displaySuggestListbox=!1,this.selectedSuggestOptionRemove=!1,this.useCustomSearchPath=!1,this.triggerSearchOnClear=!1,this.focusOnDisplay=!1,this.suggestions=new vr(this),this.showSuggestionsOnFocus=!0,this.onPointerDown=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||this.suggestions.closeBox()},this.addI18nContext(Zt)}render(){var e,r,i,n,s;let o=this.suggestions.optionsCount()>0,a={"ft-search-input":!0,"ft-search-input--with-suggestions":o,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},l={...this.request,query:this.liveQuery},u=this.useCustomSearchPath?this.launchSearchPath:void 0,p=Yt.get().serializeToCurrentPageIfPossible(l,u),d=!this.forceCloseSuggestion&&this.displaySuggestListbox&&o,h=(i=(e=this.placeholder)===null||e===void 0?void 0:e.message)!==null&&i!==void 0?i:Zt.messages.placeholder();return Ci.html`
|
|
3047
|
+
<div class="${(0,Vp.classMap)(a)}" @focusout=${()=>this.forceCloseSuggestion=!1} role="search">
|
|
3048
3048
|
<div class="ft-search-input--input-container" part="input-container" tabindex="-1">
|
|
3049
3049
|
<div class="ft-search-input--input-outline" part="input-outline">
|
|
3050
3050
|
<input class="ft-search-input--input ft-typography--body2"
|
|
@@ -3056,8 +3056,8 @@
|
|
|
3056
3056
|
aria-label="${(n=(r=this.ariaLabelI18n)===null||r===void 0?void 0:r.message)!==null&&n!==void 0?n:h}"
|
|
3057
3057
|
aria-autocomplete="list"
|
|
3058
3058
|
aria-controls="${this.suggestions.listboxId}"
|
|
3059
|
-
aria-expanded="${
|
|
3060
|
-
aria-activedescendant="${(s=this.suggestions.activeElementId)!==null&&s!==void 0?s:
|
|
3059
|
+
aria-expanded="${d}"
|
|
3060
|
+
aria-activedescendant="${(s=this.suggestions.activeElementId)!==null&&s!==void 0?s:Ci.nothing}"
|
|
3061
3061
|
@input=${this.onInput}
|
|
3062
3062
|
@click=${this.onClick}
|
|
3063
3063
|
@focus=${this.onFocus}
|
|
@@ -3065,12 +3065,12 @@
|
|
|
3065
3065
|
@keyup=${this.onSearchBarKeyUp}>
|
|
3066
3066
|
</div>
|
|
3067
3067
|
<div class="sr-only" aria-live="polite" aria-atomic="true">
|
|
3068
|
-
${
|
|
3068
|
+
${d?Zt.messages.ariaLiveSuggestions(this.suggestions.recentQueriesCount(),this.suggestions.suggestionsCount()):""}
|
|
3069
3069
|
</div>
|
|
3070
|
-
${
|
|
3070
|
+
${d?this.suggestions.render():Ci.nothing}
|
|
3071
3071
|
</div>
|
|
3072
3072
|
<div class="ft-search-input--actions" part="actions">
|
|
3073
|
-
${this.liveQuery?
|
|
3073
|
+
${this.liveQuery?Ci.html`
|
|
3074
3074
|
<ft-button id="clear-button"
|
|
3075
3075
|
class="ft-search-input--clear-query"
|
|
3076
3076
|
part="clear-query"
|
|
@@ -3086,12 +3086,12 @@
|
|
|
3086
3086
|
icon="search"
|
|
3087
3087
|
round dense
|
|
3088
3088
|
label="${Zt.messages.searchButton()}"
|
|
3089
|
-
href="${this.useCustomSearchPath?
|
|
3089
|
+
href="${this.useCustomSearchPath?p:""}"
|
|
3090
3090
|
@click=${()=>this.launchSearch(this.liveQuery)}
|
|
3091
3091
|
></ft-button>
|
|
3092
3092
|
</div>
|
|
3093
3093
|
</div>
|
|
3094
|
-
`}onSearchBarKeyDown(e){switch(this.forceCloseSuggestion=!1,["Escape","Tab","Shift"].includes(e.key)||(this.displaySuggestListbox=!0),e.key){case"Tab":this.suggestions.closeBox();break;case"Escape":this.displaySuggestListbox&&this.suggestions.optionsCount()>0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.closeBox());break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestions.selectNext();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestions.selectPrevious();break;case"ArrowLeft":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectLeft());break;case"ArrowRight":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectRight());break;case"Enter":{let r=this.suggestions.activeElement;if(r){r.click();break}this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break}case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){e.key==="Backspace"&&e.stopPropagation()}onInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}onClearInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(""),this.triggerSearchOnClear&&this.launchSearch(""),this.input.focus()}launchSearch(e){var r,i;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(r=this.stateManager)===null||r===void 0||r.setQuery(e),(i=this.stateManager)===null||i===void 0||i.addRecentQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.suggestions.closeBox()}onClick(){this.onFocus()}onFocus(){this.showSuggestionsOnFocus&&(this.displaySuggestListbox=!0),this.forceCloseSuggestion=!1}connectedCallback(){super.connectedCallback(),this.focusOnDisplay&&this.updateComplete.then(()=>{this.input&&
|
|
3094
|
+
`}onSearchBarKeyDown(e){switch(this.forceCloseSuggestion=!1,["Escape","Tab","Shift"].includes(e.key)||(this.displaySuggestListbox=!0),e.key){case"Tab":this.suggestions.closeBox();break;case"Escape":this.displaySuggestListbox&&this.suggestions.optionsCount()>0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.closeBox());break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestions.selectNext();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestions.selectPrevious();break;case"ArrowLeft":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectLeft());break;case"ArrowRight":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectRight());break;case"Enter":{let r=this.suggestions.activeElement;if(r){r.click();break}this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break}case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){e.key==="Backspace"&&e.stopPropagation()}onInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}onClearInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(""),this.triggerSearchOnClear&&this.launchSearch(""),this.input.focus()}launchSearch(e){var r,i;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(r=this.stateManager)===null||r===void 0||r.setQuery(e),(i=this.stateManager)===null||i===void 0||i.addRecentQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.suggestions.closeBox()}onClick(){this.onFocus()}onFocus(){this.showSuggestionsOnFocus&&(this.displaySuggestListbox=!0),this.forceCloseSuggestion=!1}connectedCallback(){super.connectedCallback(),this.focusOnDisplay&&this.updateComplete.then(()=>{this.input&&Ze.FocusHelper.allowAutoFocus(this.input)&&(this.showSuggestionsOnFocus=!1,this.input.focus(),this.showSuggestionsOnFocus=!0)})}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("displaySuggestListbox")&&(this.displaySuggestListbox?document.addEventListener("pointerdown",this.onPointerDown):document.removeEventListener("pointerdown",this.onPointerDown))}};ne.elementDefinitions={"ft-button":S,...vr.elementDefinitions};ne.styles=[er,Ze.noTextInputDefaultClearButton,Ju,...vr.styles,Ze.screenReaderStyles];we([(0,Ze.redux)()],ne.prototype,"request",void 0);we([(0,Ze.redux)()],ne.prototype,"liveQuery",void 0);we([(0,Ze.redux)()],ne.prototype,"suggestResults",void 0);we([(0,Ze.redux)({selector:Df})],ne.prototype,"recentQuerySuggestions",void 0);we([(0,lt.state)()],ne.prototype,"forceCloseSuggestion",void 0);we([(0,lt.state)()],ne.prototype,"displaySuggestListbox",void 0);we([(0,lt.state)()],ne.prototype,"selectedSuggestOptionIndex",void 0);we([(0,lt.state)()],ne.prototype,"selectedSuggestOptionRemove",void 0);we([(0,lt.property)()],ne.prototype,"launchSearchPath",void 0);we([en()],ne.prototype,"placeholder",void 0);we([en()],ne.prototype,"ariaLabelI18n",void 0);we([(0,lt.property)({type:Boolean})],ne.prototype,"useCustomSearchPath",void 0);we([(0,lt.property)({type:Boolean})],ne.prototype,"triggerSearchOnClear",void 0);we([(0,lt.property)({type:Boolean})],ne.prototype,"focusOnDisplay",void 0);we([(0,lt.query)(".ft-search-input--input")],ne.prototype,"input",void 0);we([(0,lt.query)('[part="launch-search-in-input"]')],ne.prototype,"launchSearchButton",void 0);we([(0,Ze.ignoreComposingEvents)()],ne.prototype,"onSearchBarKeyDown",null);we([(0,Ze.ignoreComposingEvents)()],ne.prototype,"onSearchBarKeyUp",null);var Hp={"ft-search-input":ne};(0,jp.customElements)(Hp);})();
|
|
3095
3095
|
/*! Bundled license information:
|
|
3096
3096
|
|
|
3097
3097
|
.store/lit-html-npm-3.3.3-0f054b825a/package/lit-html.js:
|