@fluid-topics/ft-search-input 2.1.24 → 2.2.1
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 +538 -538
- package/build/ft-search-input.min.js +463 -463
- package/package.json +11 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
1
|
+
"use strict";(()=>{var Gp=Object.create;var sa=Object.defineProperty;var Qp=Object.getOwnPropertyDescriptor;var Yp=Object.getOwnPropertyNames;var Xp=Object.getPrototypeOf,Zp=Object.prototype.hasOwnProperty;var Hr=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var Jp=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Yp(e))!Zp.call(t,n)&&n!==r&&sa(t,n,{get:()=>e[n],enumerable:!(i=Qp(e,n))||i.enumerable});return t};var c=(t,e,r)=>(r=t!=null?Gp(Xp(t)):{},Jp(e||!t||!t.__esModule?sa(r,"default",{value:t,enumerable:!0}):r,t));var f=Hr((qf,na)=>{na.exports=ftGlobals.wcUtils});var v=Hr((Kf,oa)=>{oa.exports=ftGlobals.lit});var V=Hr((Wf,aa)=>{aa.exports=ftGlobals.litDecorators});var Ze=Hr((Gf,la)=>{la.exports=ftGlobals.litClassMap});var Iu=Hr((Fx,Du)=>{Du.exports=ftGlobals.litUnsafeHTML});var cr=Hr((sE,rd)=>{rd.exports=ftGlobals.litRepeat});var qp=c(f());var xi=c(v()),Ne=c(f());var Zu=c(v()),G=c(f());var Dt=c(f());var ga=c(v()),Ae=c(V()),ya=c(Ze()),Ei=c(f());var fa=c(v()),me=c(f()),ca=me.FtCssVariableFactory.extend("--ft-ripple-color","",me.designSystemVariables.colorContent),q={color:ca,backgroundColor:me.FtCssVariableFactory.extend("--ft-ripple-background-color","",ca),opacityContentOnSurfacePressed:me.FtCssVariableFactory.external(me.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:me.FtCssVariableFactory.external(me.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:me.FtCssVariableFactory.external(me.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:me.FtCssVariableFactory.external(me.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:me.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},ua=me.FtCssVariableFactory.extend("--ft-ripple-color","",me.designSystemVariables.colorPrimary),da={color:ua,backgroundColor:me.FtCssVariableFactory.extend("--ft-ripple-background-color","",ua)},pa=me.FtCssVariableFactory.extend("--ft-ripple-color","",me.designSystemVariables.colorSecondary),ha={color:pa,backgroundColor:me.FtCssVariableFactory.extend("--ft-ripple-background-color","",pa)},ma=fa.css`
|
|
2
2
|
:host {
|
|
3
3
|
display: contents;
|
|
4
4
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
13
13
|
overflow: hidden;
|
|
14
|
-
border-radius: ${
|
|
14
|
+
border-radius: ${q.borderRadius};
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.ft-ripple .ft-ripple--background,
|
|
@@ -45,27 +45,27 @@
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.ft-ripple .ft-ripple--background {
|
|
48
|
-
background-color: ${
|
|
48
|
+
background-color: ${q.backgroundColor};
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.ft-ripple .ft-ripple--effect {
|
|
52
|
-
background-color: ${
|
|
52
|
+
background-color: ${q.color};
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
56
|
-
background-color: ${
|
|
56
|
+
background-color: ${ha.backgroundColor};
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
60
|
-
background-color: ${
|
|
60
|
+
background-color: ${ha.color};
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
64
|
-
background-color: ${
|
|
64
|
+
background-color: ${da.backgroundColor};
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
68
|
-
background-color: ${
|
|
68
|
+
background-color: ${da.color};
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
.ft-ripple .ft-ripple--background {
|
|
@@ -95,90 +95,90 @@
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
98
|
-
opacity: ${
|
|
98
|
+
opacity: ${q.opacityContentOnSurfaceHover};
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
102
|
-
opacity: ${
|
|
102
|
+
opacity: ${q.opacityContentOnSurfaceSelected};
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
106
|
-
opacity: ${
|
|
106
|
+
opacity: ${q.opacityContentOnSurfaceFocused};
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
110
|
-
opacity: ${
|
|
110
|
+
opacity: ${q.opacityContentOnSurfacePressed};
|
|
111
111
|
transform: translate(-50%, -50%) scale(1);
|
|
112
112
|
}
|
|
113
|
-
`;var
|
|
113
|
+
`;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},L=class extends Ei.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 Ei.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 Ei.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 ga.html`
|
|
114
114
|
<style>
|
|
115
115
|
.ft-ripple .ft-ripple--effect {
|
|
116
116
|
left: ${this.originX}px;
|
|
117
117
|
top: ${this.originY}px;
|
|
118
118
|
}
|
|
119
119
|
</style>
|
|
120
|
-
<div class="${(0,
|
|
120
|
+
<div class="${(0,ya.classMap)(e)}">
|
|
121
121
|
<div class="ft-ripple--background"></div>
|
|
122
122
|
<div class="ft-ripple--effect"></div>
|
|
123
123
|
</div>
|
|
124
|
-
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(
|
|
125
|
-
\f\r]`,
|
|
126
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ya=/'/g,ba=/"/g,Aa=/^(?:script|style|textarea|title)$/i,Ro=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Ca=Ro(1),Oa=Ro(2),wa=Ro(3),Pi=Symbol.for("lit-noChange"),he=Symbol.for("lit-nothing"),xa=new WeakMap,Er=Ar.createTreeWalker(Ar,129);function Ra(t,e){if(!wo(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return ma!==void 0?ma.createHTML(e):e}var zd=(t,e)=>{let r=t.length-1,i=[],n,o=e===2?"<svg>":e===3?"<math>":"",s=Li;for(let a=0;a<r;a++){let l=t[a],c,p,d=-1,f=0;for(;f<l.length&&(s.lastIndex=f,p=s.exec(l),p!==null);)f=s.lastIndex,s===Li?p[1]==="!--"?s=ga:p[1]!==void 0?s=va:p[2]!==void 0?(Aa.test(p[2])&&(n=RegExp("</"+p[2],"g")),s=Sr):p[3]!==void 0&&(s=Sr):s===Sr?p[0]===">"?(s=n??Li,d=-1):p[1]===void 0?d=-2:(d=s.lastIndex-p[2].length,c=p[1],s=p[3]===void 0?Sr:p[3]==='"'?ba:ya):s===ba||s===ya?s=Sr:s===ga||s===va?s=Li:(s=Sr,n=void 0);let h=s===Sr&&t[a+1].startsWith("/>")?" ":"";o+=s===Li?l+Ud:d>=0?(i.push(c),l.slice(0,d)+Sa+l.slice(d)+Zt+h):l+Zt+(d===-2?a:h)}return[Ra(t,o+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},$i=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let o=0,s=0,a=e.length-1,l=this.parts,[c,p]=zd(e,r);if(this.el=t.createElement(c,i),Er.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=Er.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let d of n.getAttributeNames())if(d.endsWith(Sa)){let f=p[s++],h=n.getAttribute(d).split(Zt),m=/([.?@])?(.*)/.exec(f);l.push({type:1,index:o,name:m[2],strings:h,ctor:m[1]==="."?So:m[1]==="?"?Eo:m[1]==="@"?Ao:Yr}),n.removeAttribute(d)}else d.startsWith(Zt)&&(l.push({type:6,index:o}),n.removeAttribute(d));if(Aa.test(n.tagName)){let d=n.textContent.split(Zt),f=d.length-1;if(f>0){n.textContent=dn?dn.emptyScript:"";for(let h=0;h<f;h++)n.append(d[h],fn()),Er.nextNode(),l.push({type:2,index:++o});n.append(d[f],fn())}}}else if(n.nodeType===8)if(n.data===Ea)l.push({type:2,index:o});else{let d=-1;for(;(d=n.data.indexOf(Zt,d+1))!==-1;)l.push({type:7,index:o}),d+=Zt.length-1}o++}}static createElement(e,r){let i=Ar.createElement("template");return i.innerHTML=e,i}};function Qr(t,e,r=t,i){if(e===Pi)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,o=ki(e)?void 0:e._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),o===void 0?n=void 0:(n=new o(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=Qr(t,n._$AS(t,e.values),n,i)),e}var xo=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 o=Er.nextNode(),s=0,a=0,l=i[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new hn(o,o.nextSibling,this,e):l.type===1?c=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(c=new Co(o,this,e)),this._$AV.push(c),l=i[++a]}s!==l?.index&&(o=Er.nextNode(),s++)}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++}},hn=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=Qr(this,e,r),ki(e)?e===he||e==null||e===""?(this._$AH!==he&&this._$AR(),this._$AH=he):e!==this._$AH&&e!==Pi&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Hd(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&&ki(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=$i.createElement(Ra(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let o=new xo(n,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(e){let r=xa.get(e.strings);return r===void 0&&xa.set(e.strings,r=new $i(e)),r}k(e){wo(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let o of e)n===r.length?r.push(i=new t(this.O(fn()),this.O(fn()),this,this.options)):i=r[n],i._$AI(o),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=ha(e).nextSibling;ha(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Yr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,o){this.type=1,this._$AH=he,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=o,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 o=this.strings,s=!1;if(o===void 0)e=Qr(this,e,r,0),s=!ki(e)||e!==this._$AH&&e!==Pi,s&&(this._$AH=e);else{let a=e,l,c;for(e=o[0],l=0;l<o.length-1;l++)c=Qr(this,a[i+l],r,l),c===Pi&&(c=this._$AH[l]),s||=!ki(c)||c!==this._$AH[l],c===he?e=he:e!==he&&(e+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!n&&this.j(e)}j(e){e===he?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},So=class extends Yr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===he?void 0:e}},Eo=class extends Yr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==he)}},Ao=class extends Yr{constructor(e,r,i,n,o){super(e,r,i,n,o),this.type=5}_$AI(e,r=this){if((e=Qr(this,e,r,0)??he)===Pi)return;let i=this._$AH,n=e===he&&i!==he||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,o=e!==he&&(i===he||n);n&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Co=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){Qr(this,e)}};var jd=Oo.litHtmlPolyfillSupport;jd?.($i,hn),(Oo.litHtmlVersions??=[]).push("3.3.3");var _a=Symbol.for(""),Vd=t=>{if(t?.r===_a)return t?._$litStatic$},To=t=>({_$litStatic$:t,r:_a});var Ta=new Map,_o=t=>(e,...r)=>{let i=r.length,n,o,s=[],a=[],l,c=0,p=!1;for(;c<i;){for(l=e[c];c<i&&(o=r[c],(n=Vd(o))!==void 0);)l+=n+e[++c],p=!0;c!==i&&a.push(o),s.push(l),c++}if(c===i&&s.push(e[i]),p){let d=s.join("$$lit$$");(e=Ta.get(d))===void 0&&(s.raw=s,Ta.set(d,e=s)),r=a}return t(e,...r)},Lo=_o(Ca),Nh=_o(Oa),Fh=_o(wa);var ko=u(z()),Ha=u(g());var le;(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"})(le||(le={}));var ct=u(A()),b=u(g()),La=b.FtCssVariableFactory.extend("--ft-typography-font-family","",b.designSystemVariables.titleFont),zt=b.FtCssVariableFactory.extend("--ft-typography-font-family","",b.designSystemVariables.contentFont),x={fontFamily:zt,fontSize:b.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:b.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:b.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:b.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:b.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Xr={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-title-font-family","",La),fontSize:b.FtCssVariableFactory.extend("--ft-typography-title-font-size","",x.fontSize,"20px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",x.letterSpacing,"0.15px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-title-line-height","",x.lineHeight,"1.2"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",x.textTransform,"inherit")},Zr={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",La),fontSize:b.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",x.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",x.letterSpacing,"0.105px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",x.lineHeight,"1.7"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",x.textTransform,"inherit")},Jr={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",zt),fontSize:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",x.fontSize,"16px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",x.fontWeight,"600"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",x.letterSpacing,"0.144px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",x.lineHeight,"1.5"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",x.textTransform,"inherit")},ei={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",zt),fontSize:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",x.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",x.letterSpacing,"0.098px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",x.lineHeight,"1.7"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",x.textTransform,"inherit")},Ht={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",zt),fontSize:b.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",x.fontSize,"16px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",x.letterSpacing,"0.496px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",x.lineHeight,"1.5"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",x.textTransform,"inherit")},be={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",zt),fontSize:b.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",x.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",x.letterSpacing,"0.252px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",x.lineHeight,"1.4"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",x.textTransform,"inherit")},Je={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",zt),fontSize:b.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",x.fontSize,"12px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",x.letterSpacing,"0.396px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",x.lineHeight,"1.33"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",x.textTransform,"inherit")},ti={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",zt),fontSize:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",x.fontSize,"10px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",x.letterSpacing,"0.33px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",x.lineHeight,"1.6"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",x.textTransform,"inherit")},ri={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",zt),fontSize:b.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",x.fontSize,"10px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",x.letterSpacing,"1.5px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",x.lineHeight,"1.6"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",x.textTransform,"uppercase")},_t={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-button-font-family","",zt),fontSize:b.FtCssVariableFactory.extend("--ft-typography-button-font-size","",x.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",x.fontWeight,"600"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",x.letterSpacing,"1.246px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-button-line-height","",x.lineHeight,"1.15"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",x.textTransform,"uppercase")},ka=ct.css`
|
|
124
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),s=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},o={passive:!0};e.addEventListener("mouseover",this.startHover,o),e.addEventListener("mousemove",this.moveRipple,o),e.addEventListener("mouseleave",this.endHover,o),e.addEventListener("mousedown",i,o),e.addEventListener("touchstart",n,o),e.addEventListener("touchmove",this.moveRipple,o),e.addEventListener("keydown",s,o),e.addEventListener("focus",this.startFocus,o),e.addEventListener("blur",this.endFocus,o),e.addEventListener("focusin",this.startFocus,o),e.addEventListener("focusout",this.endFocus,o),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,o),e.removeEventListener("mousemove",this.moveRipple,o),e.removeEventListener("mouseleave",this.endHover,o),e.removeEventListener("mousedown",i,o),e.removeEventListener("touchstart",n,o),e.removeEventListener("touchmove",this.moveRipple,o),e.removeEventListener("keydown",s,o),e.removeEventListener("focus",this.startFocus,o),e.removeEventListener("blur",this.endFocus,o),e.removeEventListener("focusin",this.startFocus,o),e.removeEventListener("focusout",this.endFocus,o),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,s;return r.x!=null?{x:n,y:s}=r:i.touches!=null&&(n=i.touches[0].clientX,s=i.touches[0].clientY),{x:n,y:s}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};L.elementDefinitions={};L.styles=ma;qe([(0,Ae.property)({type:Boolean})],L.prototype,"primary",void 0);qe([(0,Ae.property)({type:Boolean})],L.prototype,"secondary",void 0);qe([(0,Ae.property)({type:Boolean})],L.prototype,"unbounded",void 0);qe([(0,Ae.property)({type:Boolean})],L.prototype,"activated",void 0);qe([(0,Ae.property)({type:Boolean})],L.prototype,"selected",void 0);qe([(0,Ae.property)({type:Boolean})],L.prototype,"disabled",void 0);qe([(0,Ae.state)()],L.prototype,"hovered",void 0);qe([(0,Ae.state)()],L.prototype,"focused",void 0);qe([(0,Ae.state)()],L.prototype,"pressed",void 0);qe([(0,Ae.state)()],L.prototype,"rippling",void 0);qe([(0,Ae.state)()],L.prototype,"originX",void 0);qe([(0,Ae.state)()],L.prototype,"originY",void 0);qe([(0,Ae.query)(".ft-ripple")],L.prototype,"ripple",void 0);qe([(0,Ae.query)(".ft-ripple--effect")],L.prototype,"rippleEffect",void 0);var va=c(f());var ba={"ft-ripple":L};(0,va.customElements)(ba);var Tu=c(v()),ft=c(V()),ht=c(f());var Dn=globalThis,xa=t=>t,as=Dn.trustedTypes,Sa=as?as.createPolicy("lit-html",{createHTML:t=>t}):void 0,_a="$lit$",Xt=`lit$${Math.random().toFixed(9).slice(2)}$`,Ra="?"+Xt,eh=`<${Ra}>`,vr=document,ls=()=>vr.createComment(""),Ai=t=>t===null||typeof t!="object"&&typeof t!="function",In=Array.isArray,th=t=>In(t)||typeof t?.[Symbol.iterator]=="function",Rn=`[
|
|
125
|
+
\f\r]`,Ci=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ea=/-->/g,Ca=/>/g,yr=RegExp(`>|${Rn}(?:([^\\s"'>=/]+)(${Rn}*=${Rn}*(?:[^
|
|
126
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Aa=/'/g,wa=/"/g,Ta=/^(?:script|style|textarea|title)$/i,Mn=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),ka=Mn(1),La=Mn(2),$a=Mn(3),wi=Symbol.for("lit-noChange"),ge=Symbol.for("lit-nothing"),Oa=new WeakMap,br=vr.createTreeWalker(vr,129);function Pa(t,e){if(!In(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Sa!==void 0?Sa.createHTML(e):e}var rh=(t,e)=>{let r=t.length-1,i=[],n,s=e===2?"<svg>":e===3?"<math>":"",o=Ci;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===Ci?d[1]==="!--"?o=Ea:d[1]!==void 0?o=Ca:d[2]!==void 0?(Ta.test(d[2])&&(n=RegExp("</"+d[2],"g")),o=yr):d[3]!==void 0&&(o=yr):o===yr?d[0]===">"?(o=n??Ci,p=-1):d[1]===void 0?p=-2:(p=o.lastIndex-d[2].length,u=d[1],o=d[3]===void 0?yr:d[3]==='"'?wa:Aa):o===wa||o===Aa?o=yr:o===Ea||o===Ca?o=Ci:(o=yr,n=void 0);let y=o===yr&&t[a+1].startsWith("/>")?" ":"";s+=o===Ci?l+eh:p>=0?(i.push(u),l.slice(0,p)+_a+l.slice(p)+Xt+y):l+Xt+(p===-2?a:y)}return[Pa(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Oi=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]=rh(e,r);if(this.el=t.createElement(u,i),br.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(n=br.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++],y=n.getAttribute(p).split(Xt),S=/([.?@])?(.*)/.exec(h);l.push({type:1,index:s,name:S[2],strings:y,ctor:S[1]==="."?kn:S[1]==="?"?Ln:S[1]==="@"?$n:qr}),n.removeAttribute(p)}else p.startsWith(Xt)&&(l.push({type:6,index:s}),n.removeAttribute(p));if(Ta.test(n.tagName)){let p=n.textContent.split(Xt),h=p.length-1;if(h>0){n.textContent=as?as.emptyScript:"";for(let y=0;y<h;y++)n.append(p[y],ls()),br.nextNode(),l.push({type:2,index:++s});n.append(p[h],ls())}}}else if(n.nodeType===8)if(n.data===Ra)l.push({type:2,index:s});else{let p=-1;for(;(p=n.data.indexOf(Xt,p+1))!==-1;)l.push({type:7,index:s}),p+=Xt.length-1}s++}}static createElement(e,r){let i=vr.createElement("template");return i.innerHTML=e,i}};function jr(t,e,r=t,i){if(e===wi)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,s=Ai(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 Tn=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??vr).importNode(r,!0);br.currentNode=n;let s=br.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let u;l.type===2?u=new cs(s,s.nextSibling,this,e):l.type===1?u=new l.ctor(s,l.name,l.strings,this,e):l.type===6&&(u=new Pn(s,this,e)),this._$AV.push(u),l=i[++a]}o!==l?.index&&(s=br.nextNode(),o++)}return br.currentNode=vr,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++}},cs=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=ge,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=jr(this,e,r),Ai(e)?e===ge||e==null||e===""?(this._$AH!==ge&&this._$AR(),this._$AH=ge):e!==this._$AH&&e!==wi&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):th(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==ge&&Ai(this._$AH)?this._$AA.nextSibling.data=e:this.T(vr.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=Oi.createElement(Pa(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let s=new Tn(n,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(e){let r=Oa.get(e.strings);return r===void 0&&Oa.set(e.strings,r=new Oi(e)),r}k(e){In(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(ls()),this.O(ls()),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=xa(e).nextSibling;xa(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},qr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,s){this.type=1,this._$AH=ge,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ge}_$AI(e,r=this,i,n){let s=this.strings,o=!1;if(s===void 0)e=jr(this,e,r,0),o=!Ai(e)||e!==this._$AH&&e!==wi,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===wi&&(u=this._$AH[l]),o||=!Ai(u)||u!==this._$AH[l],u===ge?e=ge:e!==ge&&(e+=(u??"")+s[l+1]),this._$AH[l]=u}o&&!n&&this.j(e)}j(e){e===ge?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},kn=class extends qr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ge?void 0:e}},Ln=class extends qr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ge)}},$n=class extends qr{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)??ge)===wi)return;let i=this._$AH,n=e===ge&&i!==ge||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,s=e!==ge&&(i===ge||n);n&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Pn=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){jr(this,e)}};var ih=Dn.litHtmlPolyfillSupport;ih?.(Oi,cs),(Dn.litHtmlVersions??=[]).push("3.3.3");var Ia=Symbol.for(""),sh=t=>{if(t?.r===Ia)return t?._$litStatic$},Nn=t=>({_$litStatic$:t,r:Ia});var Da=new Map,Fn=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=sh(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=Da.get(p))===void 0&&(o.raw=o,Da.set(p,e=o)),r=a}return t(e,...r)},Bn=Fn(ka),lm=Fn(La),cm=Fn($a);var Un=c(V()),Wa=c(f());var ce;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(ce||(ce={}));var ut=c(v()),g=c(f()),Ma=g.FtCssVariableFactory.extend("--ft-typography-font-family","",g.designSystemVariables.titleFont),Vt=g.FtCssVariableFactory.extend("--ft-typography-font-family","",g.designSystemVariables.contentFont),b={fontFamily:Vt,fontSize:g.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:g.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:g.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:g.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:g.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Kr={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Ma),fontSize:g.FtCssVariableFactory.extend("--ft-typography-title-font-size","",b.fontSize,"20px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",b.letterSpacing,"0.15px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-title-line-height","",b.lineHeight,"1.2"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",b.textTransform,"inherit")},Wr={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Ma),fontSize:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",b.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",b.letterSpacing,"0.105px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",b.lineHeight,"1.7"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",b.textTransform,"inherit")},Gr={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Vt),fontSize:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",b.fontSize,"16px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",b.fontWeight,"600"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",b.letterSpacing,"0.144px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",b.lineHeight,"1.5"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",b.textTransform,"inherit")},Qr={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Vt),fontSize:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",b.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",b.letterSpacing,"0.098px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",b.lineHeight,"1.7"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",b.textTransform,"inherit")},zt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Vt),fontSize:g.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",b.fontSize,"16px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",b.letterSpacing,"0.496px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",b.lineHeight,"1.5"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",b.textTransform,"inherit")},xe={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Vt),fontSize:g.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",b.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",b.letterSpacing,"0.252px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",b.lineHeight,"1.4"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",b.textTransform,"inherit")},Je={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Vt),fontSize:g.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",b.fontSize,"12px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",b.letterSpacing,"0.396px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",b.lineHeight,"1.33"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",b.textTransform,"inherit")},Yr={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Vt),fontSize:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",b.fontSize,"10px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",b.letterSpacing,"0.33px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",b.lineHeight,"1.6"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",b.textTransform,"inherit")},Xr={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Vt),fontSize:g.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",b.fontSize,"10px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",b.letterSpacing,"1.5px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",b.lineHeight,"1.6"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",b.textTransform,"uppercase")},Tt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Vt),fontSize:g.FtCssVariableFactory.extend("--ft-typography-button-font-size","",b.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",b.fontWeight,"600"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",b.letterSpacing,"1.246px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-button-line-height","",b.lineHeight,"1.15"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",b.textTransform,"uppercase")},Na=ut.css`
|
|
127
127
|
.ft-typography--title {
|
|
128
|
-
font-family: ${
|
|
129
|
-
font-size: ${
|
|
130
|
-
font-weight: ${
|
|
131
|
-
letter-spacing: ${
|
|
132
|
-
line-height: ${
|
|
133
|
-
text-transform: ${
|
|
134
|
-
}
|
|
135
|
-
`,
|
|
128
|
+
font-family: ${Kr.fontFamily};
|
|
129
|
+
font-size: ${Kr.fontSize};
|
|
130
|
+
font-weight: ${Kr.fontWeight};
|
|
131
|
+
letter-spacing: ${Kr.letterSpacing};
|
|
132
|
+
line-height: ${Kr.lineHeight};
|
|
133
|
+
text-transform: ${Kr.textTransform};
|
|
134
|
+
}
|
|
135
|
+
`,Fa=ut.css`
|
|
136
136
|
.ft-typography--title-dense {
|
|
137
|
-
font-family: ${
|
|
138
|
-
font-size: ${
|
|
139
|
-
font-weight: ${
|
|
140
|
-
letter-spacing: ${
|
|
141
|
-
line-height: ${
|
|
142
|
-
text-transform: ${
|
|
143
|
-
}
|
|
144
|
-
|
|
137
|
+
font-family: ${Wr.fontFamily};
|
|
138
|
+
font-size: ${Wr.fontSize};
|
|
139
|
+
font-weight: ${Wr.fontWeight};
|
|
140
|
+
letter-spacing: ${Wr.letterSpacing};
|
|
141
|
+
line-height: ${Wr.lineHeight};
|
|
142
|
+
text-transform: ${Wr.textTransform};
|
|
143
|
+
}
|
|
144
|
+
`,Ba=ut.css`
|
|
145
145
|
.ft-typography--subtitle1 {
|
|
146
|
-
font-family: ${
|
|
147
|
-
font-size: ${
|
|
148
|
-
font-weight: ${
|
|
149
|
-
letter-spacing: ${
|
|
150
|
-
line-height: ${
|
|
151
|
-
text-transform: ${
|
|
152
|
-
}
|
|
153
|
-
`,
|
|
146
|
+
font-family: ${Gr.fontFamily};
|
|
147
|
+
font-size: ${Gr.fontSize};
|
|
148
|
+
font-weight: ${Gr.fontWeight};
|
|
149
|
+
letter-spacing: ${Gr.letterSpacing};
|
|
150
|
+
line-height: ${Gr.lineHeight};
|
|
151
|
+
text-transform: ${Gr.textTransform};
|
|
152
|
+
}
|
|
153
|
+
`,Ua=ut.css`
|
|
154
154
|
.ft-typography--subtitle2 {
|
|
155
|
-
font-family: ${
|
|
156
|
-
font-size: ${
|
|
157
|
-
font-weight: ${
|
|
158
|
-
letter-spacing: ${
|
|
159
|
-
line-height: ${
|
|
160
|
-
text-transform: ${
|
|
155
|
+
font-family: ${Qr.fontFamily};
|
|
156
|
+
font-size: ${Qr.fontSize};
|
|
157
|
+
font-weight: ${Qr.fontWeight};
|
|
158
|
+
letter-spacing: ${Qr.letterSpacing};
|
|
159
|
+
line-height: ${Qr.lineHeight};
|
|
160
|
+
text-transform: ${Qr.textTransform};
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
`,
|
|
163
|
+
`,za=ut.css`
|
|
164
164
|
.ft-typography--body1 {
|
|
165
|
-
font-family: ${
|
|
166
|
-
font-size: ${
|
|
167
|
-
font-weight: ${
|
|
168
|
-
letter-spacing: ${
|
|
169
|
-
line-height: ${
|
|
170
|
-
text-transform: ${
|
|
171
|
-
}
|
|
172
|
-
`,
|
|
165
|
+
font-family: ${zt.fontFamily};
|
|
166
|
+
font-size: ${zt.fontSize};
|
|
167
|
+
font-weight: ${zt.fontWeight};
|
|
168
|
+
letter-spacing: ${zt.letterSpacing};
|
|
169
|
+
line-height: ${zt.lineHeight};
|
|
170
|
+
text-transform: ${zt.textTransform};
|
|
171
|
+
}
|
|
172
|
+
`,Zt=ut.css`
|
|
173
173
|
.ft-typography--body2 {
|
|
174
|
-
font-family: ${
|
|
175
|
-
font-size: ${
|
|
176
|
-
font-weight: ${
|
|
177
|
-
letter-spacing: ${
|
|
178
|
-
line-height: ${
|
|
179
|
-
text-transform: ${
|
|
180
|
-
}
|
|
181
|
-
`,
|
|
174
|
+
font-family: ${xe.fontFamily};
|
|
175
|
+
font-size: ${xe.fontSize};
|
|
176
|
+
font-weight: ${xe.fontWeight};
|
|
177
|
+
letter-spacing: ${xe.letterSpacing};
|
|
178
|
+
line-height: ${xe.lineHeight};
|
|
179
|
+
text-transform: ${xe.textTransform};
|
|
180
|
+
}
|
|
181
|
+
`,Jt=ut.css`
|
|
182
182
|
.ft-typography--caption {
|
|
183
183
|
font-family: ${Je.fontFamily};
|
|
184
184
|
font-size: ${Je.fontSize};
|
|
@@ -187,46 +187,46 @@
|
|
|
187
187
|
line-height: ${Je.lineHeight};
|
|
188
188
|
text-transform: ${Je.textTransform};
|
|
189
189
|
}
|
|
190
|
-
`,
|
|
190
|
+
`,Va=ut.css`
|
|
191
191
|
.ft-typography--breadcrumb {
|
|
192
|
-
font-family: ${
|
|
193
|
-
font-size: ${
|
|
194
|
-
font-weight: ${
|
|
195
|
-
letter-spacing: ${
|
|
196
|
-
line-height: ${
|
|
197
|
-
text-transform: ${
|
|
198
|
-
}
|
|
199
|
-
`,
|
|
192
|
+
font-family: ${Yr.fontFamily};
|
|
193
|
+
font-size: ${Yr.fontSize};
|
|
194
|
+
font-weight: ${Yr.fontWeight};
|
|
195
|
+
letter-spacing: ${Yr.letterSpacing};
|
|
196
|
+
line-height: ${Yr.lineHeight};
|
|
197
|
+
text-transform: ${Yr.textTransform};
|
|
198
|
+
}
|
|
199
|
+
`,Ha=ut.css`
|
|
200
200
|
.ft-typography--overline {
|
|
201
|
-
font-family: ${
|
|
202
|
-
font-size: ${
|
|
203
|
-
font-weight: ${
|
|
204
|
-
letter-spacing: ${
|
|
205
|
-
line-height: ${
|
|
206
|
-
text-transform: ${
|
|
207
|
-
}
|
|
208
|
-
`,
|
|
201
|
+
font-family: ${Xr.fontFamily};
|
|
202
|
+
font-size: ${Xr.fontSize};
|
|
203
|
+
font-weight: ${Xr.fontWeight};
|
|
204
|
+
letter-spacing: ${Xr.letterSpacing};
|
|
205
|
+
line-height: ${Xr.lineHeight};
|
|
206
|
+
text-transform: ${Xr.textTransform};
|
|
207
|
+
}
|
|
208
|
+
`,ja=ut.css`
|
|
209
209
|
.ft-typography--button {
|
|
210
|
-
font-family: ${
|
|
211
|
-
font-size: ${
|
|
212
|
-
font-weight: ${
|
|
213
|
-
letter-spacing: ${
|
|
214
|
-
line-height: ${
|
|
215
|
-
text-transform: ${
|
|
216
|
-
}
|
|
217
|
-
`,
|
|
210
|
+
font-family: ${Tt.fontFamily};
|
|
211
|
+
font-size: ${Tt.fontSize};
|
|
212
|
+
font-weight: ${Tt.fontWeight};
|
|
213
|
+
letter-spacing: ${Tt.letterSpacing};
|
|
214
|
+
line-height: ${Tt.lineHeight};
|
|
215
|
+
text-transform: ${Tt.textTransform};
|
|
216
|
+
}
|
|
217
|
+
`,qa=ut.css`
|
|
218
218
|
.ft-typography {
|
|
219
219
|
vertical-align: inherit;
|
|
220
220
|
}
|
|
221
|
-
`;var
|
|
222
|
-
<${
|
|
221
|
+
`;var Ka=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},K=class extends Wa.FtLitElement{constructor(){super(...arguments),this.variant=ce.body1}render(){return this.element?Bn`
|
|
222
|
+
<${Nn(this.element)}
|
|
223
223
|
part="text"
|
|
224
224
|
class="ft-typography ft-typography--${this.variant}">
|
|
225
225
|
<slot></slot>
|
|
226
|
-
</${
|
|
227
|
-
`:
|
|
226
|
+
</${Nn(this.element)}>
|
|
227
|
+
`:Bn`
|
|
228
228
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
229
|
-
`}};
|
|
229
|
+
`}};K.styles=[Na,Fa,Ba,Ua,za,Zt,Jt,Va,Ha,ja,qa];Ka([(0,Un.property)()],K.prototype,"element",void 0);Ka([(0,Un.property)()],K.prototype,"variant",void 0);var Qa=c(f());var Ga={"ft-typography":K};(0,Qa.customElements)(Ga);var Ya=c(v()),er=c(f()),_i={distance:er.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:er.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:er.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:er.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",er.designSystemVariables.borderRadiusS),maxWidth:er.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Xa=Ya.css`
|
|
230
230
|
.ft-tooltip--container {
|
|
231
231
|
display: block;
|
|
232
232
|
}
|
|
@@ -244,28 +244,28 @@
|
|
|
244
244
|
box-sizing: border-box;
|
|
245
245
|
overflow: hidden;
|
|
246
246
|
width: max-content;
|
|
247
|
-
max-width: ${
|
|
247
|
+
max-width: ${_i.maxWidth};
|
|
248
248
|
text-align: center;
|
|
249
|
-
padding: ${
|
|
249
|
+
padding: ${_i.distance};
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
.ft-tooltip--content {
|
|
253
253
|
padding: 4px 8px;
|
|
254
|
-
border-radius: ${
|
|
255
|
-
background-color: ${
|
|
256
|
-
color: ${
|
|
254
|
+
border-radius: ${_i.borderRadiusS};
|
|
255
|
+
background-color: ${_i.backgroundColor};
|
|
256
|
+
color: ${_i.color};
|
|
257
257
|
position: relative;
|
|
258
258
|
word-break: break-word;
|
|
259
259
|
}
|
|
260
|
-
`;var Wa=["top","right","bottom","left"],Ka=["start","end"],$o=Wa.reduce((t,e)=>t.concat(e,e+"-"+Ka[0],e+"-"+Ka[1]),[]),Di=Math.min,rr=Math.max,Mi=Math.round;var Lt=t=>({x:t,y:t}),qd={left:"right",right:"left",bottom:"top",top:"bottom"};function Ga(t,e,r){return rr(t,Di(e,r))}function mn(t,e){return typeof t=="function"?t(e):t}function Ni(t){return t.split("-")[0]}function ir(t){return t.split("-")[1]}function Io(t){return t==="x"?"y":"x"}function Do(t){return t==="y"?"height":"width"}function gn(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Mo(t){return Io(gn(t))}function Qa(t,e,r){r===void 0&&(r=!1);let i=ir(t),n=Mo(t),o=Do(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=Po(s)),[s,Po(s)]}function Ya(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Po(t){let e=Ni(t);return qd[e]+t.slice(e.length)}function Kd(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 Xa(t){return typeof t!="number"?Kd(t):{top:t,right:t,bottom:t,left:t}}function Cr(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 Za(t,e,r){let{reference:i,floating:n}=t,o=gn(e),s=Mo(e),a=Do(s),l=Ni(e),c=o==="y",p=i.x+i.width/2-n.width/2,d=i.y+i.height/2-n.height/2,f=i[a]/2-n[a]/2,h;switch(l){case"top":h={x:p,y:i.y-n.height};break;case"bottom":h={x:p,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:d};break;case"left":h={x:i.x-n.width,y:d};break;default:h={x:i.x,y:i.y}}let m=ir(e);return m&&(h[s]+=f*(m==="end"?1:-1)*(r&&c?-1:1)),h}async function Ja(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=mn(e,t),m=Xa(h),S=a[f?d==="floating"?"reference":"floating":d],E=Cr(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(S)))==null||r?S:S.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:p,strategy:l})),C=d==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,L=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),M=await(o.isElement==null?void 0:o.isElement(L))&&await(o.getScale==null?void 0:o.getScale(L))||{x:1,y:1},ye=Cr(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:C,offsetParent:L,strategy:l}):C);return{top:(E.top-ye.top+m.top)/M.y,bottom:(ye.bottom-E.bottom+m.bottom)/M.y,left:(E.left-ye.left+m.left)/M.x,right:(ye.right-E.right+m.right)/M.x}}var Wd=50,el=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:o=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:Ja},l=await(s.isRTL==null?void 0:s.isRTL(e)),c=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:p,y:d}=Za(c,i,l),f=i,h=0,m={};for(let v=0;v<o.length;v++){let S=o[v];if(!S)continue;let{name:E,fn:C}=S,{x:L,y:M,data:ye,reset:de}=await C({x:p,y:d,initialPlacement:i,placement:f,strategy:n,middlewareData:m,rects:c,platform:a,elements:{reference:t,floating:e}});p=L??p,d=M??d,m[E]={...m[E],...ye},de&&h<Wd&&(h++,typeof de=="object"&&(de.placement&&(f=de.placement),de.rects&&(c=de.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):de.rects),{x:p,y:d}=Za(c,f,l)),v=-1)}return{x:p,y:d,placement:f,strategy:n,middlewareData:m}};function Gd(t,e,r){return(t?[...r.filter(n=>ir(n)===t),...r.filter(n=>ir(n)!==t)]:r.filter(n=>Ni(n)===n)).filter(n=>t?ir(n)===t||(e?Ya(n)!==n:!1):!0)}var tl=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:o,middlewareData:s,placement:a,platform:l,elements:c}=e,{crossAxis:p=!1,alignment:d,allowedPlacements:f=$o,autoAlignment:h=!0,...m}=mn(t,e),v=d!==void 0||f===$o?Gd(d||null,h,f):f,S=((r=s.autoPlacement)==null?void 0:r.index)||0,E=v[S];if(E==null)return{};if(a!==E)return{reset:{placement:v[0]}};let C=await l.detectOverflow(e,m),L=Qa(E,o,await(l.isRTL==null?void 0:l.isRTL(c.floating))),M=[C[Ni(E)],C[L[0]],C[L[1]]],ye=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:E,overflows:M}],de=v[S+1];if(de)return{data:{index:S+1,overflows:ye},reset:{placement:de}};let Yt=ye.map(Ye=>{let lt=ir(Ye.placement);return[Ye.placement,lt&&p?Ye.overflows.slice(0,2).reduce((Xe,xr)=>Xe+xr,0):Ye.overflows[0],Ye.overflows]}).sort((Ye,lt)=>Ye[1]-lt[1]),Xt=((n=Yt.filter(Ye=>Ye[2].slice(0,ir(Ye[0])?2:3).every(lt=>lt<=0))[0])==null?void 0:n[0])||Yt[0][0];return Xt!==a?{data:{index:S+1,overflows:ye},reset:{placement:Xt}}:{}}}};var rl=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n,platform:o}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:C=>{let{x:L,y:M}=C;return{x:L,y:M}}},...c}=mn(t,e),p={x:r,y:i},d=await o.detectOverflow(e,c),f=gn(n),h=Io(f),m=p[h],v=p[f],S=(C,L)=>Ga(L+d[C==="y"?"top":"left"],L,L-d[C==="y"?"bottom":"right"]);s&&(m=S(h,m)),a&&(v=S(f,v));let E=l.fn({...e,[h]:m,[f]:v});return{...E,data:{x:E.x-r,y:E.y-i,enabled:{[h]:s,[f]:a}}}}}};function yn(){return typeof window<"u"}function wr(t){return nl(t)?(t.nodeName||"").toLowerCase():"#document"}function Ve(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function jt(t){var e;return(e=(nl(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function nl(t){return yn()?t instanceof Node||t instanceof Ve(t).Node:!1}function yt(t){return yn()?t instanceof Element||t instanceof Ve(t).Element:!1}function Vt(t){return yn()?t instanceof HTMLElement||t instanceof Ve(t).HTMLElement:!1}function il(t){return!yn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ve(t).ShadowRoot}function Fi(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=bt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function ol(t){return/^(table|td|th)$/.test(wr(t))}function Bi(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Qd=/transform|translate|scale|rotate|perspective|filter/,Yd=/paint|layout|strict|content/,Or=t=>!!t&&t!=="none",No;function ii(t){let e=yt(t)?bt(t):t;return Or(e.transform)||Or(e.translate)||Or(e.scale)||Or(e.rotate)||Or(e.perspective)||!bn()&&(Or(e.backdropFilter)||Or(e.filter))||Qd.test(e.willChange||"")||Yd.test(e.contain||"")}function sl(t){let e=nr(t);for(;Vt(e)&&!ni(e);){if(ii(e))return e;if(Bi(e))return null;e=nr(e)}return null}function bn(){return No==null&&(No=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),No}function ni(t){return/^(html|body|#document)$/.test(wr(t))}function bt(t){return Ve(t).getComputedStyle(t)}function Ui(t){return yt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function nr(t){if(wr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||il(t)&&t.host||jt(t);return il(e)?e.host:e}function al(t){let e=nr(t);return ni(e)?(t.ownerDocument||t).body:Vt(e)&&Fi(e)?e:al(e)}function vn(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=al(t),o=n===((i=t.ownerDocument)==null?void 0:i.body),s=Ve(n);if(o){let a=xn(s);return e.concat(s,s.visualViewport||[],Fi(n)?n:[],a&&r?vn(a):[])}else return e.concat(n,vn(n,[],r))}function xn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function ul(t){let e=bt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=Vt(t),o=n?t.offsetWidth:r,s=n?t.offsetHeight:i,a=Mi(r)!==o||Mi(i)!==s;return a&&(r=o,i=s),{width:r,height:i,$:a}}function pl(t){return yt(t)?t:t.contextElement}function oi(t){let e=pl(t);if(!Vt(e))return Lt(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:o}=ul(e),s=(o?Mi(r.width):r.width)/i,a=(o?Mi(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var Xd=Lt(0);function dl(t){let e=Ve(t);return!bn()||!e.visualViewport?Xd:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Zd(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Ve(t)}function Hi(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),o=pl(t),s=Lt(1);e&&(i?yt(i)&&(s=oi(i)):s=oi(t));let a=Zd(o,r,i)?dl(o):Lt(0),l=(n.left+a.x)/s.x,c=(n.top+a.y)/s.y,p=n.width/s.x,d=n.height/s.y;if(o&&i){let f=Ve(o),h=yt(i)?Ve(i):i,m=f,v=xn(m);for(;v&&h!==m;){let S=oi(v),E=v.getBoundingClientRect(),C=bt(v),L=E.left+(v.clientLeft+parseFloat(C.paddingLeft))*S.x,M=E.top+(v.clientTop+parseFloat(C.paddingTop))*S.y;l*=S.x,c*=S.y,p*=S.x,d*=S.y,l+=L,c+=M,m=Ve(v),v=xn(m)}}return Cr({width:p,height:d,x:l,y:c})}function Sn(t,e){let r=Ui(t).scrollLeft;return e?e.left+r:Hi(jt(t)).left+r}function fl(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Sn(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function Jd(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,o=n==="fixed",s=jt(i),a=e?Bi(e.floating):!1;if(i===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=Lt(1),p=Lt(0),d=Vt(i);if((d||!o)&&((wr(i)!=="body"||Fi(s))&&(l=Ui(i)),d)){let h=Hi(i);c=oi(i),p.x=h.x+i.clientLeft,p.y=h.y+i.clientTop}let f=s&&!d&&!o?fl(s,l):Lt(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+p.x+f.x,y:r.y*c.y-l.scrollTop*c.y+p.y+f.y}}function ef(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function tf(t){let e=Ui(t),r=t.ownerDocument.body,i=rr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=rr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-e.scrollLeft+Sn(t),s=-e.scrollTop;return bt(r).direction==="rtl"&&(o+=rr(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:o,y:s}}var rf=25;function nf(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=Ve(t),o=jt(t),s=n.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,p=0;if(s){let f=!bn()||e==="fixed";i?f||(c=-s.offsetLeft,p=-s.offsetTop):(a=s.width,l=s.height,f&&(c=s.offsetLeft,p=s.offsetTop))}if(Sn(o)<=0){let f=o.ownerDocument,h=f.body,m=getComputedStyle(h),v=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,S=Math.abs(o.clientWidth-h.clientWidth-v),E=getComputedStyle(o).scrollbarGutter==="stable both-edges"?S/2:S;E<=rf&&(a-=E)}return{width:a,height:l,x:c,y:p}}function of(t,e){let r=Hi(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,o=oi(t),s=t.clientWidth*o.x,a=t.clientHeight*o.y,l=n*o.x,c=i*o.y;return{width:s,height:a,x:l,y:c}}function ll(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=nf(t,r,e);else if(e==="document")i=tf(jt(t));else if(yt(e))i=of(e,r);else{let n=dl(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return Cr(i)}function sf(t,e){let r=e.get(t);if(r)return r;let i=vn(t,[],!1).filter(a=>yt(a)&&wr(a)!=="body"),n=null,o=bt(t).position==="fixed",s=o?nr(t):t;for(;yt(s)&&!ni(s);){let a=bt(s),l=ii(s),c=n?n.position:o?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(d=>d!==s):n=a,s=nr(s)}return e.set(t,i),i}function af(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?Bi(e)?[]:sf(e,this._c):[].concat(r),i],a=ll(e,s[0],n),l=a.top,c=a.right,p=a.bottom,d=a.left;for(let f=1;f<s.length;f++){let h=ll(e,s[f],n);l=rr(h.top,l),c=Di(h.right,c),p=Di(h.bottom,p),d=rr(h.left,d)}return{width:c-d,height:p-l,x:d,y:l}}function lf(t){let{width:e,height:r}=ul(t);return{width:e,height:r}}function cf(t,e,r){let i=Vt(e),n=jt(e),o=r==="fixed",s=Hi(t,!0,o,e),a={scrollLeft:0,scrollTop:0},l=Lt(0);if((i||!o)&&((wr(e)!=="body"||Fi(n))&&(a=Ui(e)),i)){let f=Hi(e,!0,o,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}!i&&n&&(l.x=Sn(n));let c=n&&!i&&!o?fl(n,a):Lt(0),p=s.left+a.scrollLeft-l.x-c.x,d=s.top+a.scrollTop-l.y-c.y;return{x:p,y:d,width:s.width,height:s.height}}function Fo(t){return bt(t).position==="static"}function cl(t,e){if(!Vt(t)||bt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return jt(t)===r&&(r=r.ownerDocument.body),r}function hl(t,e){let r=Ve(t);if(Bi(t))return r;if(!Vt(t)){let n=nr(t);for(;n&&!ni(n);){if(yt(n)&&!Fo(n))return n;n=nr(n)}return r}let i=cl(t,e);for(;i&&ol(i)&&Fo(i);)i=cl(i,e);return i&&ni(i)&&Fo(i)&&!ii(i)?r:i||sl(t)||r}var uf=async function(t){let e=this.getOffsetParent||hl,r=this.getDimensions,i=await r(t.floating);return{reference:cf(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function pf(t){return bt(t).direction==="rtl"}var En={convertOffsetParentRelativeRectToViewportRelativeRect:Jd,getDocumentElement:jt,getClippingRect:af,getOffsetParent:hl,getElementRects:uf,getClientRects:ef,getDimensions:lf,getScale:oi,isElement:yt,isRTL:pf};var ml=tl,gl=rl;var vl=(t,e,r)=>{let i=new Map,n=r??{},o={...En,...n.platform,_c:i};return el(t,e,{...n,platform:o})};function yl(t){return df(t)}function Bo(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function df(t){for(let e=t;e;e=Bo(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Bo(t);e;e=Bo(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||ii(r)||e.tagName==="BODY"))return e}return null}async function bl(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},vl(t,e,{strategy:i.strategy,platform:{...En,getOffsetParent:n=>En.getOffsetParent(n,yl)},middleware:[gl({crossAxis:!0}),ml({allowedPlacements:[i.placement]})]})}var yi=u(g());var ps=u(z());var xl=u(z(),1);var Uo=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function Sl(t,e){return(0,xl.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return zi(t);try{return JSON.parse(r)}catch{return zi(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:ji,...e??{}})}function ff(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(!si(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(!si(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=s=>Object.keys(s).filter(a=>s[a]!=null),o=n(t);if(r=o.length,r!==n(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[i]))return!1;for(i=r;i--!==0;){let s=o[i];if(!si(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function si(t,e){try{return ff(t,e)}catch{return!1}}function ji(t,e){return!si(t,e)}function zi(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function An(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 El=u(z(),1);var Ho=t=>{let e=t??{};return(r,i)=>{var n;let o={hasChanged:ji,attribute:!1,...e};(0,El.property)(o)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:(a=>a[i]),store:e.store})}};var Cn=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 Rr=u(z(),1);var On=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),o=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of i)try{await s()}catch(a){n(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Cl=u(A(),1);var wn=globalThis,hf=wn.ShadowRoot&&(wn.ShadyCSS===void 0||wn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Al=(t,e)=>{if(hf)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=wn.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}};var Rn=class extends Cl.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 Al(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){Uo(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 Ol(t,e,...r){var i;let n=t.querySelector(e);for(let o of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(o);return n}var li=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},_l,wl=Symbol("constructorPrototype"),Rl=Symbol("constructorName"),Ll=Symbol("exportpartsDebouncer"),Tl=Symbol("dynamicDependenciesLoaded"),ai=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};ai.eventName="exportparts-updated";var kt=class extends Rn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[_l]=new On(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[Ll].run(()=>{var n,o;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Rl]=this.constructor.name,this[wl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Rl]&&Object.setPrototypeOf(this,this[wl])}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[Tl]||(r[Tl]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(ai.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(ai.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 ai)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let o=[...n??[],i];r=Ol(this.shadowRoot,...o)}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(o=>o.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(e){var r,i,n,o,s,a;let l=f=>f!=null&&f.trim().length>0,c=e.filter(l).map(f=>f.trim());if(c.length===0){this.exportparts=void 0;return}let p=new Set;for(let f of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let h=(o=(n=f.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&o!==void 0?o:[],m=(a=(s=f.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(S=>S.split(":")[1]))!==null&&a!==void 0?a:[],v=[...h,...m].filter(l).map(S=>S.trim());for(let S of v)p.add(S)}if(p.size===0){this.exportparts=void 0;return}let d=[...p.values()].flatMap(f=>c.map(h=>`${f}:${h}--${f}`));this.exportparts=[...this.part,...d].join(", ")}};_l=Ll;li([(0,Rr.property)()],kt.prototype,"exportpartsPrefix",void 0);li([Sl([])],kt.prototype,"exportpartsPrefixes",void 0);li([(0,Rr.property)({reflect:!0})],kt.prototype,"exportparts",void 0);li([(0,Rr.property)()],kt.prototype,"customStylesheet",void 0);li([(0,Rr.property)()],kt.prototype,"elementToFocus",void 0);li([(0,Rr.state)()],kt.prototype,"useAdoptedStyleSheets",void 0);function Tn(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Vi=Symbol("internalReduxEventsUnsubscribers"),or=Symbol("internalStoresUnsubscribers"),Tr=Symbol("internalStores"),mf=An(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(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Tr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Tr].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Tr].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Tr].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[Tr].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Tr].forEach((s,a)=>this.subscribeToStore(a,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(s.store);c&&(s.store?this[or].has(s.store):this[or].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l;this[or].set(s,a.subscribe(()=>this.updateFromStores())),this[Vi].set(s,[]),Tn(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((c,p)=>{if(typeof this[p]=="function"&&(!c.store||a.name===c.store)){let d=f=>this[p](f);a.addEventListener(c.eventName,d),this[Vi].get(s).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[or].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[or].has(s)&&this[or].get(s)(),this[or].delete(s),(a=this[Vi].get(s))===null||a===void 0||a.forEach(l=>l()),this[Vi].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=or,r=Tr,i=Vi,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),kl=class extends mf(kt){};function ut(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];if(0)var n,o;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map((function(s){return"'"+s+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function qt(t){return!!t&&!!t[ie]}function xt(t){var e;return!!t&&((function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===Af})(t)||Array.isArray(t)||!!t[Fl]||!!(!((e=t.constructor)===null||e===void 0)&&e[Fl])||Yo(t)||Xo(t))}function _r(t,e,r){r===void 0&&(r=!1),pi(t)===0?(r?Object.keys:ui)(t).forEach((function(i){r&&typeof i=="symbol"||e(i,t[i],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function pi(t){var e=t[ie];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Yo(t)?2:Xo(t)?3:0}function ci(t,e){return pi(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function gf(t,e){return pi(t)===2?t.get(e):t[e]}function Bl(t,e,r){var i=pi(t);i===2?t.set(e,r):i===3?t.add(r):t[e]=r}function Ul(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Yo(t){return Sf&&t instanceof Map}function Xo(t){return Ef&&t instanceof Set}function sr(t){return t.o||t.t}function Zo(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=jl(t);delete e[ie];for(var r=ui(e),i=0;i<r.length;i++){var n=r[i],o=e[n];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[n]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function Jo(t,e){return e===void 0&&(e=!1),es(t)||qt(t)||!xt(t)||(pi(t)>1&&(t.set=t.add=t.clear=t.delete=vf),Object.freeze(t),e&&_r(t,(function(r,i){return Jo(i,!0)}),!0)),t}function vf(){ut(2)}function es(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Pt(t){var e=Qo[t];return e||ut(18,t),e}function yf(t,e){Qo[t]||(Qo[t]=e)}function Ko(){return Ki}function zo(t,e){e&&(Pt("Patches"),t.u=[],t.s=[],t.v=e)}function _n(t){Wo(t),t.p.forEach(bf),t.p=null}function Wo(t){t===Ki&&(Ki=t.l)}function Pl(t){return Ki={p:[],l:Ki,h:t,m:!0,_:0}}function bf(t){var e=t[ie];e.i===0||e.i===1?e.j():e.g=!0}function jo(t,e){e._=e.p.length;var r=e.p[0],i=t!==void 0&&t!==r;return e.h.O||Pt("ES5").S(e,t,i),i?(r[ie].P&&(_n(e),ut(4)),xt(t)&&(t=Ln(e,t),e.l||kn(e,t)),e.u&&Pt("Patches").M(r[ie].t,t,e.u,e.s)):t=Ln(e,r,[]),_n(e),e.u&&e.v(e.u,e.s),t!==zl?t:void 0}function Ln(t,e,r){if(es(e))return e;var i=e[ie];if(!i)return _r(e,(function(a,l){return $l(t,i,e,a,l,r)}),!0),e;if(i.A!==t)return e;if(!i.P)return kn(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=Zo(i.k):i.o,o=n,s=!1;i.i===3&&(o=new Set(n),n.clear(),s=!0),_r(o,(function(a,l){return $l(t,i,n,a,l,r,s)})),kn(t,n,!1),r&&t.u&&Pt("Patches").N(i,r,t.u,t.s)}return i.o}function $l(t,e,r,i,n,o,s){if(qt(n)){var a=Ln(t,n,o&&e&&e.i!==3&&!ci(e.R,i)?o.concat(i):void 0);if(Bl(r,i,a),!qt(a))return;t.m=!1}else s&&r.add(n);if(xt(n)&&!es(n)){if(!t.h.D&&t._<1)return;Ln(t,n),e&&e.A.l||kn(t,n)}}function kn(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Jo(e,r)}function Vo(t,e){var r=t[ie];return(r?sr(r):t)[e]}function Il(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Object.getPrototypeOf(r)}}function ar(t){t.P||(t.P=!0,t.l&&ar(t.l))}function qo(t){t.o||(t.o=Zo(t.t))}function Go(t,e,r){var i=Yo(e)?Pt("MapSet").F(e,r):Xo(e)?Pt("MapSet").T(e,r):t.O?(function(n,o){var s=Array.isArray(n),a={i:s?1:0,A:o?o.A:Ko(),P:!1,I:!1,R:{},l:o,t:n,k:null,o:null,j:null,C:!1},l=a,c=Wi;s&&(l=[a],c=qi);var p=Proxy.revocable(l,c),d=p.revoke,f=p.proxy;return a.k=f,a.j=d,f})(e,r):Pt("ES5").J(e,r);return(r?r.A:Ko()).p.push(i),i}function xf(t){return qt(t)||ut(22,t),(function e(r){if(!xt(r))return r;var i,n=r[ie],o=pi(r);if(n){if(!n.P&&(n.i<4||!Pt("ES5").K(n)))return n.t;n.I=!0,i=Dl(r,o),n.I=!1}else i=Dl(r,o);return _r(i,(function(s,a){n&&gf(n.t,s)===a||Bl(i,s,e(a))})),o===3?new Set(i):i})(t)}function Dl(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Zo(t)}function Hl(){function t(s,a){var l=o[s];return l?l.enumerable=a:o[s]=l={configurable:!0,enumerable:a,get:function(){var c=this[ie];return Wi.get(c,s)},set:function(c){var p=this[ie];Wi.set(p,s,c)}},l}function e(s){for(var a=s.length-1;a>=0;a--){var l=s[a][ie];if(!l.P)switch(l.i){case 5:i(l)&&ar(l);break;case 4:r(l)&&ar(l)}}}function r(s){for(var a=s.t,l=s.k,c=ui(l),p=c.length-1;p>=0;p--){var d=c[p];if(d!==ie){var f=a[d];if(f===void 0&&!ci(a,d))return!0;var h=l[d],m=h&&h[ie];if(m?m.t!==f:!Ul(h,f))return!0}}var v=!!a[ie];return c.length!==ui(a).length+(v?0:1)}function i(s){var a=s.k;if(a.length!==s.t.length)return!0;var l=Object.getOwnPropertyDescriptor(a,a.length-1);if(l&&!l.get)return!0;for(var c=0;c<a.length;c++)if(!a.hasOwnProperty(c))return!0;return!1}function n(s){s.g&&ut(3,JSON.stringify(sr(s)))}var o={};yf("ES5",{J:function(s,a){var l=Array.isArray(s),c=(function(d,f){if(d){for(var h=Array(f.length),m=0;m<f.length;m++)Object.defineProperty(h,""+m,t(m,!0));return h}var v=jl(f);delete v[ie];for(var S=ui(v),E=0;E<S.length;E++){var C=S[E];v[C]=t(C,d||!!v[C].enumerable)}return Object.create(Object.getPrototypeOf(f),v)})(l,s),p={i:l?5:4,A:a?a.A:Ko(),P:!1,I:!1,R:{},l:a,t:s,k:c,o:null,g:!1,C:!1};return Object.defineProperty(c,ie,{value:p,writable:!0}),c},S:function(s,a,l){l?qt(a)&&a[ie].A===s&&e(s.p):(s.u&&(function c(p){if(p&&typeof p=="object"){var d=p[ie];if(d){var f=d.t,h=d.k,m=d.R,v=d.i;if(v===4)_r(h,(function(M){M!==ie&&(f[M]!==void 0||ci(f,M)?m[M]||c(h[M]):(m[M]=!0,ar(d)))})),_r(f,(function(M){h[M]!==void 0||ci(h,M)||(m[M]=!1,ar(d))}));else if(v===5){if(i(d)&&(ar(d),m.length=!0),h.length<f.length)for(var S=h.length;S<f.length;S++)m[S]=!1;else for(var E=f.length;E<h.length;E++)m[E]=!0;for(var C=Math.min(h.length,f.length),L=0;L<C;L++)h.hasOwnProperty(L)||(m[L]=!0),m[L]===void 0&&c(h[L])}}}})(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var Ml,Ki,ts=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Sf=typeof Map<"u",Ef=typeof Set<"u",Nl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",zl=ts?Symbol.for("immer-nothing"):((Ml={})["immer-nothing"]=!0,Ml),Fl=ts?Symbol.for("immer-draftable"):"__$immer_draftable",ie=ts?Symbol.for("immer-state"):"__$immer_state";var Af=""+Object.prototype.constructor,ui=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,jl=Object.getOwnPropertyDescriptors||function(t){var e={};return ui(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},Qo={},Wi={get:function(t,e){if(e===ie)return t;var r=sr(t);if(!ci(r,e))return(function(n,o,s){var a,l=Il(o,s);return l?"value"in l?l.value:(a=l.get)===null||a===void 0?void 0:a.call(n.k):void 0})(t,r,e);var i=r[e];return t.I||!xt(i)?i:i===Vo(t.t,e)?(qo(t),t.o[e]=Go(t.A.h,i,t)):i},has:function(t,e){return e in sr(t)},ownKeys:function(t){return Reflect.ownKeys(sr(t))},set:function(t,e,r){var i=Il(sr(t),e);if(i?.set)return i.set.call(t.k,r),!0;if(!t.P){var n=Vo(sr(t),e),o=n?.[ie];if(o&&o.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Ul(r,n)&&(r!==void 0||ci(t.t,e)))return!0;qo(t),ar(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return Vo(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,qo(t),ar(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=sr(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:r[e]}},defineProperty:function(){ut(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ut(12)}},qi={};_r(Wi,(function(t,e){qi[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),qi.deleteProperty=function(t,e){return qi.set.call(this,t,e,void 0)},qi.set=function(t,e,r){return Wi.set.call(this,t[0],e,r,t[0])};var Cf=(function(){function t(r){var i=this;this.O=Nl,this.D=!0,this.produce=function(n,o,s){if(typeof n=="function"&&typeof o!="function"){var a=o;o=n;var l=i;return function(v){var S=this;v===void 0&&(v=a);for(var E=arguments.length,C=Array(E>1?E-1:0),L=1;L<E;L++)C[L-1]=arguments[L];return l.produce(v,(function(M){var ye;return(ye=o).call.apply(ye,[S,M].concat(C))}))}}var c;if(typeof o!="function"&&ut(6),s!==void 0&&typeof s!="function"&&ut(7),xt(n)){var p=Pl(i),d=Go(i,n,void 0),f=!0;try{c=o(d),f=!1}finally{f?_n(p):Wo(p)}return typeof Promise<"u"&&c instanceof Promise?c.then((function(v){return zo(p,s),jo(v,p)}),(function(v){throw _n(p),v})):(zo(p,s),jo(c,p))}if(!n||typeof n!="object"){if((c=o(n))===void 0&&(c=n),c===zl&&(c=void 0),i.D&&Jo(c,!0),s){var h=[],m=[];Pt("Patches").M(n,c,h,m),s(h,m)}return c}ut(21,n)},this.produceWithPatches=function(n,o){if(typeof n=="function")return function(c){for(var p=arguments.length,d=Array(p>1?p-1:0),f=1;f<p;f++)d[f-1]=arguments[f];return i.produceWithPatches(c,(function(h){return n.apply(void 0,[h].concat(d))}))};var s,a,l=i.produce(n,o,(function(c,p){s=c,a=p}));return typeof Promise<"u"&&l instanceof Promise?l.then((function(c){return[c,s,a]})):[l,s,a]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){xt(r)||ut(8),qt(r)&&(r=xf(r));var i=Pl(this),n=Go(this,r,void 0);return n[ie].C=!0,Wo(i),n},e.finishDraft=function(r,i){var n=r&&r[ie],o=n.A;return zo(o,i),jo(void 0,o)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Nl&&ut(20),this.O=r},e.applyPatches=function(r,i){var n;for(n=i.length-1;n>=0;n--){var o=i[n];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}n>-1&&(i=i.slice(n+1));var s=Pt("Patches").$;return qt(r)?s(r,i):this.produce(r,(function(a){return s(a,i)}))},t})(),et=new Cf,Of=et.produce,Jm=et.produceWithPatches.bind(et),eg=et.setAutoFreeze.bind(et),tg=et.setUseProxies.bind(et),rg=et.applyPatches.bind(et),ig=et.createDraft.bind(et),ng=et.finishDraft.bind(et),Pn=Of;function Lr(t){"@babel/helpers - typeof";return Lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lr(t)}function Vl(t,e){if(Lr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(Lr(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ql(t){var e=Vl(t,"string");return Lr(e)=="symbol"?e:e+""}function Kl(t,e,r){return(e=ql(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Wl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function rs(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Wl(Object(r),!0).forEach(function(i){Kl(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Wl(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}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 Gl=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),is=function(){return Math.random().toString(36).substring(7).split("").join(".")},$n={INIT:"@@redux/INIT"+is(),REPLACE:"@@redux/REPLACE"+is(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+is()}};function wf(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function ns(t,e,r){var i;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(ns)(t,e)}if(typeof t!="function")throw new Error($e(2));var n=t,o=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function p(){if(l)throw new Error($e(3));return o}function d(v){if(typeof v!="function")throw new Error($e(4));if(l)throw new Error($e(5));var S=!0;return c(),a.push(v),function(){if(S){if(l)throw new Error($e(6));S=!1,c();var C=a.indexOf(v);a.splice(C,1),s=null}}}function f(v){if(!wf(v))throw new Error($e(7));if(typeof v.type>"u")throw new Error($e(8));if(l)throw new Error($e(9));try{l=!0,o=n(o,v)}finally{l=!1}for(var S=s=a,E=0;E<S.length;E++){var C=S[E];C()}return v}function h(v){if(typeof v!="function")throw new Error($e(10));n=v,f({type:$n.REPLACE})}function m(){var v,S=d;return v={subscribe:function(C){if(typeof C!="object"||C===null)throw new Error($e(11));function L(){C.next&&C.next(p())}L();var M=S(L);return{unsubscribe:M}}},v[Gl]=function(){return this},v}return f({type:$n.INIT}),i={dispatch:f,subscribe:d,getState:p,replaceReducer:h},i[Gl]=m,i}function Rf(t){Object.keys(t).forEach(function(e){var r=t[e],i=r(void 0,{type:$n.INIT});if(typeof i>"u")throw new Error($e(12));if(typeof r(void 0,{type:$n.PROBE_UNKNOWN_ACTION()})>"u")throw new Error($e(13))})}function Ql(t){for(var e=Object.keys(t),r={},i=0;i<e.length;i++){var n=e[i];typeof t[n]=="function"&&(r[n]=t[n])}var o=Object.keys(r),s,a;try{Rf(r)}catch(l){a=l}return function(c,p){if(c===void 0&&(c={}),a)throw a;if(0)var d;for(var f=!1,h={},m=0;m<o.length;m++){var v=o[m],S=r[v],E=c[v],C=S(E,p);if(typeof C>"u"){var L=p&&p.type;throw new Error($e(14))}h[v]=C,f=f||C!==E}return f=f||o.length!==Object.keys(c).length,f?h:c}}function di(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function Yl(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(i){return function(){var n=i.apply(void 0,arguments),o=function(){throw new Error($e(15))},s={getState:n.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=e.map(function(l){return l(s)});return o=di.apply(void 0,a)(n.dispatch),rs(rs({},n),{},{dispatch:o})}}}function Xl(t){var e=function(i){var n=i.dispatch,o=i.getState;return function(s){return function(a){return typeof a=="function"?a(n,o,t):s(a)}}};return e}var Zl=Xl();Zl.withExtraArgument=Xl;var os=Zl;var ic=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[o]=n[o])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}})(),Tf=function(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,n,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(p){return l([c,p])}}function l(c){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(o=c[0]&2?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,n=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(p){c=[6,p],n=0}finally{i=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},fi=function(t,e){for(var r=0,i=e.length,n=t.length;r<i;r++,n++)t[n]=e[r];return t},_f=Object.defineProperty,Lf=Object.defineProperties,kf=Object.getOwnPropertyDescriptors,Jl=Object.getOwnPropertySymbols,Pf=Object.prototype.hasOwnProperty,$f=Object.prototype.propertyIsEnumerable,ec=function(t,e,r){return e in t?_f(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},lr=function(t,e){for(var r in e||(e={}))Pf.call(e,r)&&ec(t,r,e[r]);if(Jl)for(var i=0,n=Jl(e);i<n.length;i++){var r=n[i];$f.call(e,r)&&ec(t,r,e[r])}return t},ss=function(t,e){return Lf(t,kf(e))},If=function(t,e,r){return new Promise(function(i,n){var o=function(l){try{a(r.next(l))}catch(c){n(c)}},s=function(l){try{a(r.throw(l))}catch(c){n(c)}},a=function(l){return l.done?i(l.value):Promise.resolve(l.value).then(o,s)};a((r=r.apply(t,e)).next())})};var Df=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?di:di.apply(null,arguments)},Eg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Mf(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}function cr(t,e){function r(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var o=e.apply(void 0,i);if(!o)throw new Error("prepareAction did not return an object");return lr(lr({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:t,payload:i[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(i){return i.type===t},r}var Nf=(function(t){ic(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,fi([void 0],r[0].concat(this)))):new(e.bind.apply(e,fi([void 0],r.concat(this))))},e})(Array),Ff=(function(t){ic(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,fi([void 0],r[0].concat(this)))):new(e.bind.apply(e,fi([void 0],r.concat(this))))},e})(Array);function cs(t){return xt(t)?Pn(t,function(){}):t}function Bf(t){return typeof t=="boolean"}function Uf(){return function(e){return Hf(e)}}function Hf(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,i=t.immutableCheck,n=i===void 0?!0:i,o=t.serializableCheck,s=o===void 0?!0:o,a=t.actionCreatorCheck,l=a===void 0?!0:a,c=new Nf;if(r&&(Bf(r)?c.push(os):c.push(os.withExtraArgument(r.extraArgument))),0){if(n)var p;if(s)var d;if(l)var f}return c}var as=!0;function nc(t){var e=Uf(),r=t||{},i=r.reducer,n=i===void 0?void 0:i,o=r.middleware,s=o===void 0?e():o,a=r.devTools,l=a===void 0?!0:a,c=r.preloadedState,p=c===void 0?void 0:c,d=r.enhancers,f=d===void 0?void 0:d,h;if(typeof n=="function")h=n;else if(Mf(n))h=Ql(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var m=s;if(typeof m=="function"&&(m=m(e),!as&&!Array.isArray(m)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!as&&m.some(function(M){return typeof M!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=Yl.apply(void 0,m),S=di;l&&(S=Df(lr({trace:!as},typeof l=="object"&&l)));var E=new Ff(v),C=E;Array.isArray(f)?C=fi([v],f):typeof f=="function"&&(C=f(E));var L=S.apply(void 0,C);return ns(h,p,L)}function oc(t){var e={},r=[],i,n={addCase:function(o,s){var a=typeof o=="string"?o:o.type;if(!a)throw new Error("`builder.addCase` cannot be called with an empty action type");if(a in e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[a]=s,n},addMatcher:function(o,s){return r.push({matcher:o,reducer:s}),n},addDefaultCase:function(o){return i=o,n}};return t(n),[e,r,i]}function zf(t){return typeof t=="function"}function jf(t,e,r,i){r===void 0&&(r=[]);var n=typeof e=="function"?oc(e):[e,r,i],o=n[0],s=n[1],a=n[2],l;if(zf(t))l=function(){return cs(t())};else{var c=cs(t);l=function(){return c}}function p(d,f){d===void 0&&(d=l());var h=fi([o[f.type]],s.filter(function(m){var v=m.matcher;return v(f)}).map(function(m){var v=m.reducer;return v}));return h.filter(function(m){return!!m}).length===0&&(h=[a]),h.reduce(function(m,v){if(v)if(qt(m)){var S=m,E=v(S,f);return E===void 0?m:E}else{if(xt(m))return Pn(m,function(C){return v(C,f)});var E=v(m,f);if(E===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return E}return m},d)}return p.getInitialState=l,p}function Vf(t,e){return t+"/"+e}function sc(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:cs(t.initialState),i=t.reducers||{},n=Object.keys(i),o={},s={},a={};n.forEach(function(p){var d=i[p],f=Vf(e,p),h,m;"reducer"in d?(h=d.reducer,m=d.prepare):h=d,o[p]=h,s[f]=h,a[p]=m?cr(f,m):cr(f)});function l(){var p=typeof t.extraReducers=="function"?oc(t.extraReducers):[t.extraReducers],d=p[0],f=d===void 0?{}:d,h=p[1],m=h===void 0?[]:h,v=p[2],S=v===void 0?void 0:v,E=lr(lr({},f),s);return jf(r,function(C){for(var L in E)C.addCase(L,E[L]);for(var M=0,ye=m;M<ye.length;M++){var de=ye[M];C.addMatcher(de.matcher,de.reducer)}S&&C.addDefaultCase(S)})}var c;return{name:e,reducer:function(p,d){return c||(c=l()),c(p,d)},actions:a,caseReducers:o,getInitialState:function(){return c||(c=l()),c.getInitialState()}}}var qf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Kf=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=qf[Math.random()*64|0];return e},Wf=["name","message","stack","code"],ls=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),tc=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),Gf=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,i=Wf;r<i.length;r++){var n=i[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},wg=(function(){function t(e,r,i){var n=cr(e+"/fulfilled",function(p,d,f,h){return{payload:p,meta:ss(lr({},h||{}),{arg:f,requestId:d,requestStatus:"fulfilled"})}}),o=cr(e+"/pending",function(p,d,f){return{payload:void 0,meta:ss(lr({},f||{}),{arg:d,requestId:p,requestStatus:"pending"})}}),s=cr(e+"/rejected",function(p,d,f,h,m){return{payload:h,error:(i&&i.serializeError||Gf)(p||"Rejected"),meta:ss(lr({},m||{}),{arg:f,requestId:d,rejectedWithValue:!!h,requestStatus:"rejected",aborted:p?.name==="AbortError",condition:p?.name==="ConditionError"})}}),a=!1,l=typeof AbortController<"u"?AbortController:(function(){function p(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return p.prototype.abort=function(){},p})();function c(p){return function(d,f,h){var m=i?.idGenerator?i.idGenerator(p):Kf(),v=new l,S,E=!1;function C(M){S=M,v.abort()}var L=(function(){return If(this,null,function(){var M,ye,de,Yt,yo,Xt,Ye;return Tf(this,function(lt){switch(lt.label){case 0:return lt.trys.push([0,4,,5]),Yt=(M=i?.condition)==null?void 0:M.call(i,p,{getState:f,extra:h}),Yf(Yt)?[4,Yt]:[3,2];case 1:Yt=lt.sent(),lt.label=2;case 2:if(Yt===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,yo=new Promise(function(Xe,xr){return v.signal.addEventListener("abort",function(){return xr({name:"AbortError",message:S||"Aborted"})})}),d(o(m,p,(ye=i?.getPendingMeta)==null?void 0:ye.call(i,{requestId:m,arg:p},{getState:f,extra:h}))),[4,Promise.race([yo,Promise.resolve(r(p,{dispatch:d,getState:f,extra:h,requestId:m,signal:v.signal,abort:C,rejectWithValue:function(Xe,xr){return new ls(Xe,xr)},fulfillWithValue:function(Xe,xr){return new tc(Xe,xr)}})).then(function(Xe){if(Xe instanceof ls)throw Xe;return Xe instanceof tc?n(Xe.payload,m,p,Xe.meta):n(Xe,m,p)})])];case 3:return de=lt.sent(),[3,5];case 4:return Xt=lt.sent(),de=Xt instanceof ls?s(null,m,p,Xt.payload,Xt.meta):s(Xt,m,p),[3,5];case 5:return Ye=i&&!i.dispatchConditionRejection&&s.match(de)&&de.meta.condition,Ye||d(de),[2,de]}})})})();return Object.assign(L,{abort:C,requestId:m,arg:p,unwrap:function(){return L.then(Qf)}})}}return Object.assign(c,{pending:o,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t})();function Qf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Yf(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var ac="listener",lc="completed",cc="cancelled",Rg="task-"+cc,Tg="task-"+lc,_g=ac+"-"+cc,Lg=ac+"-"+lc;var us="listenerMiddleware";var kg=cr(us+"/add"),Pg=cr(us+"/removeAll"),$g=cr(us+"/remove");var rc,Ig=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(rc||(rc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Xf=function(t){return function(e){setTimeout(e,t)}},Dg=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Xf(10);Hl();var Zf=An(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)}}}),In=class extends Zf(Object){};window.ftReduxStores||(window.ftReduxStores={});var uc=class t extends In{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,o=window.ftReduxStores[i];if(Tn(o))return o;if(n==null)return;let s=sc({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),a=nc({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let p=zi(s.getInitialState());for(let d of c.keeping)p[d]=(l??p)[d];return p}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return s.reducer(l,c)}});return window.ftReduxStores[n.name]=new t(s,a,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Cn;let n=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,s,a)=>{let l=s,c=o[l];return c?(...p)=>{let d=c(...p.map(n));return this.reduxStore.dispatch(d),d}:p=>{let d=l,f=this.getState()[d];si(f,p)||this.setState({[d]:n(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()}};var Dn=class{static format(e,r,i,n,o){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n,!!o)):this.getIntlDateTime(e,r,i,n,!!o)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n,o){let s=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return o?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 Mn=u(g()),Jf="ft-app-info",kr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};kr.eventName="authentication-change";var Gi=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Gi.eventName="ui-locale-changed";var eh={session:(t,e)=>{(0,Mn.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>T.dispatchEvent(new kr(e.payload)),0))}},T=Mn.FtReduxStore.get({name:Jf,reducers:eh,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,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var pc=u(g()),Nn=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},cv=(0,pc.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(T)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,o;return((o=(n=this.metadataDescriptors.find(a=>a.key===i))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1)?a=>Dn.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Nn([(0,ps.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Nn([(0,ps.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Nn([Ho({store:T.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),Nn([Ho({store:T.name})],e.prototype,"uiLocale",void 0),e});var dc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(dc||(dc={}));var fc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(fc||(fc={}));var hc;(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"})(hc||(hc={}));var mc;(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"})(mc||(mc={}));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 vc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(vc||(vc={}));var yc;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(yc||(yc={}));var bc;(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"})(bc||(bc={}));var xc;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(xc||(xc={}));var Sc;(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"})(Sc||(Sc={}));var Ec;(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"})(Ec||(Ec={}));var Ac;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Ac||(Ac={}));var Cc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Cc||(Cc={}));var Oc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Oc||(Oc={}));var wc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(wc||(wc={}));var Rc;(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"})(Rc||(Rc={}));var ds;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(ds||(ds={}));var Tc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Tc||(Tc={}));var _c;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(_c||(_c={}));var fs;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(fs||(fs={}));var Lc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Lc||(Lc={}));var kc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(kc||(kc={}));var Pc;(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"})(Pc||(Pc={}));var $c;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})($c||($c={}));var Ic;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Ic||(Ic={}));var hs;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(hs||(hs={}));var Dc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Dc||(Dc={}));var ce;(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"})(ce||(ce={}));var pt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(pt||(pt={}));var Mc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Mc||(Mc={}));var Nc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Nc||(Nc={}));var Fc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Fc||(Fc={}));var Bc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Bc||(Bc={}));var Uc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Uc||(Uc={}));var Hc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Hc||(Hc={}));var zc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(zc||(zc={}));var jc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(jc||(jc={}));var Vc;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Vc||(Vc={}));var qc;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(qc||(qc={}));var Kc;(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"})(Kc||(Kc={}));var Wc;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Wc||(Wc={}));var th={[ce.PERSONAL_BOOK_SHARE_USER]:[ce.PERSONAL_BOOK_USER],[ce.HTML_EXPORT_USER]:[ce.PERSONAL_BOOK_USER],[ce.PDF_EXPORT_USER]:[ce.PERSONAL_BOOK_USER],[ce.KHUB_ADMIN]:[ce.CONTENT_PUBLISHER],[ce.ADMIN]:[ce.KHUB_ADMIN,ce.USERS_ADMIN,ce.PORTAL_ADMIN,ce.BEHAVIOR_DATA_USER],[ce.GENERATIVE_AI_EXPORT_USER]:[ce.GENERATIVE_AI_USER]};function Gc(t,e){return t===e||(th[t]??[]).some(r=>Gc(r,e))}function ms(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=>Gc(i,e))}var zn=u(g());var gs=u(g());var Pr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=T.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=T.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var hi=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Pr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Pr.await()}};var qe=class extends hi{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(o,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new gs.CacheRegistry,this.cache=e?n.commonCache:new gs.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 Fn=class extends qe{async listMySearches(){let{session:e}=T.getState();return ms(e,ce.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Bn=class extends qe{async listMyBookmarks(){let e=T.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Un=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=T.getState().session;return!!e?.sessionAuthenticated}};var Hn=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=T.getState().session;return!!e?.sessionAuthenticated}};var rh="ft-user-assets",ih={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(pt).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;ys(t,r,[...vs(t,r),n]),Qc(t,r,1,i),Yc(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;ys(t,r,vs(t,r).map(n=>n.id===i.id?i:n)),Yc(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;ys(t,r,vs(t,r).filter(o=>o.id!==n)),Qc(t,r,-1,i)}},Xc={[pt.SEARCHES]:"savedSearches",[pt.BOOKMARKS]:"bookmarks",[pt.BOOKS]:void 0,[pt.COLLECTIONS]:void 0},vs=(t,e)=>{var r;let i=Xc[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},ys=(t,e,r)=>{let i=Xc[e];i&&(t[i]=r)},Qc=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===pt.BOOKMARKS&&i)){let o=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,o+r)}},Yc=(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)},Me=zn.FtReduxStore.get({name:rh,reducers:ih,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(pt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),bs=class{constructor(e=new Un,r=new Hn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=T.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Bn,this.savedSearchesService=new Fn,T.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=T.getState();(0,zn.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(),Me.actions.clearAssetCount(),Me.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Me.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Me.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Me.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Me.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Me.getState().assetCounts.allAsset[e]!==r.count&&Me.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Me.getState().assetCounts.bookmarkByMap[e]!==r.count&&Me.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Me.getState().assetCounts.bookmarkByMap).length!==0;e===pt.BOOKMARKS&&r&&Me.actions.clearBookmarkCountByMap(),Me.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;Me.actions.bookmarks(r)}}},nh=new bs;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=nh);var xs=class{addCommand(e,r=!1){T.commands.add(e,r)}consumeCommand(e){return T.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new xs;var dt=u(g());var Zc,mi=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},oh=Symbol("clearAfterUnitTest"),jn=class extends(0,dt.withEventBus)(qe){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Zc]=()=>{this.defaultMessages={},this.cache=new dt.CacheRegistry,this.listeners={}},this.currentUiLocale=T.getState().uiLocale,T.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=T.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,dt.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 o=e.toLowerCase(),s=this.resolveContext(o);return new dt.ParametrizedLabelResolver((n=this.defaultMessages[o])!==null&&n!==void 0?n:{},s).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof dt.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 mi({loadedContexts:e})),this.dispatchEvent(new mi({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new mi({loadedContexts:[e]})),this.dispatchEvent(new mi({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,dt.delay)(0).then(()=>i()).catch(()=>null)))}};Zc=oh;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends jn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends jn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var gi=window.FluidTopicsI18nService,Vn=window.FluidTopicsCustomI18nService;var Jc=u(g()),Ss=class{highlightHtml(e,r,i){(0,Jc.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Ss;var eu=u(g());var Es=class{isDate(e){var r,i,n,o;return(o=(n=((i=(r=T.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===e))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1}format(e,r){var i,n,o,s;if(e==null)return"";try{return eu.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:T.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(o=r?.withTime)!==null&&o!==void 0?o:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new Es;var tu=u(g());var Kt=class{static get(e,r){var i,n,o,s;let a=T.getState(),{lang:l,region:c}=(o=(n=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&o!==void 0?o:{lang:"en",region:"US"};return new tu.SearchPlaceConverter(a.baseUrl,e??20,(s=a.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${l}-${c}`)}};var As=class{urlToSearchRequest(e){return Kt.get().parse(e)}searchRequestToUrl(e){return Kt.get().serialize(e)}};window.FluidTopicsUrlService=new As;var Wt=u(g());var $r=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};$r.eventName="change";var Cs=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))}},ru=new Cs;var qn=class t extends Wt.WithEventBus{static build(){return new t(window.history,ru,()=>window.location,!1)}constructor(e,r,i,n){var o,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(o=e.state)===null||o===void 0?void 0:o.index)!==null&&s!==void 0?s: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,Wt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new $r(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[o,s,a])=>{let l=r(),c={...l===this.currentIndex?this.currentState:void 0,...o,index:l,href:typeof a=="string"?a:(a??this.windowLocation()).href};i.apply(n,[c,s,a]),this.setCurrentState(c,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener($r.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener($r.eventName,e)}currentItem(){return(0,Wt.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,Wt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Wt.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,Wt.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,o=e+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,i);)this.hasState(o)&&(n=o),o++;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,o=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return o==null||o!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=qn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var iu=u(A());var nu=iu.css`
|
|
261
|
-
`;var
|
|
260
|
+
`;var Ja=["top","right","bottom","left"],Za=["start","end"],Vn=Ja.reduce((t,e)=>t.concat(e,e+"-"+Za[0],e+"-"+Za[1]),[]),Ri=Math.min,tr=Math.max,Ti=Math.round;var kt=t=>({x:t,y:t}),nh={left:"right",right:"left",bottom:"top",top:"bottom"};function el(t,e,r){return tr(t,Ri(e,r))}function us(t,e){return typeof t=="function"?t(e):t}function ki(t){return t.split("-")[0]}function rr(t){return t.split("-")[1]}function Hn(t){return t==="x"?"y":"x"}function jn(t){return t==="y"?"height":"width"}function ds(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function qn(t){return Hn(ds(t))}function tl(t,e,r){r===void 0&&(r=!1);let i=rr(t),n=qn(t),s=jn(n),o=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=zn(o)),[o,zn(o)]}function rl(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function zn(t){let e=ki(t);return nh[e]+t.slice(e.length)}function oh(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 il(t){return typeof t!="number"?oh(t):{top:t,right:t,bottom:t,left:t}}function xr(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 sl(t,e,r){let{reference:i,floating:n}=t,s=ds(e),o=qn(e),a=jn(o),l=ki(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,y;switch(l){case"top":y={x:d,y:i.y-n.height};break;case"bottom":y={x:d,y:i.y+i.height};break;case"right":y={x:i.x+i.width,y:p};break;case"left":y={x:i.x-n.width,y:p};break;default:y={x:i.x,y:i.y}}let S=rr(e);return S&&(y[o]+=h*(S==="end"?1:-1)*(r&&u?-1:1)),y}async function nl(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:y=0}=us(e,t),S=il(y),x=a[h?p==="floating"?"reference":"floating":p],T=xr(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(x)))==null||r?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),j=p==="floating"?{x:i,y:n,width:o.floating.width,height:o.floating.height}:o.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),I=await(s.isElement==null?void 0:s.isElement(E))&&await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1},U=xr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:j,offsetParent:E,strategy:l}):j);return{top:(T.top-U.top+S.top)/I.y,bottom:(U.bottom-T.bottom+S.bottom)/I.y,left:(T.left-U.left+S.left)/I.x,right:(U.right-T.right+S.right)/I.x}}var ah=50,ol=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:s=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:nl},l=await(o.isRTL==null?void 0:o.isRTL(e)),u=await o.getElementRects({reference:t,floating:e,strategy:n}),{x:d,y:p}=sl(u,i,l),h=i,y=0,S={};for(let _=0;_<s.length;_++){let x=s[_];if(!x)continue;let{name:T,fn:j}=x,{x:E,y:I,data:U,reset:ue}=await j({x:d,y:p,initialPlacement:i,placement:h,strategy:n,middlewareData:S,rects:u,platform:a,elements:{reference:t,floating:e}});d=E??d,p=I??p,S[T]={...S[T],...U},ue&&y<ah&&(y++,typeof ue=="object"&&(ue.placement&&(h=ue.placement),ue.rects&&(u=ue.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:n}):ue.rects),{x:d,y:p}=sl(u,h,l)),_=-1)}return{x:d,y:p,placement:h,strategy:n,middlewareData:S}};function lh(t,e,r){return(t?[...r.filter(n=>rr(n)===t),...r.filter(n=>rr(n)!==t)]:r.filter(n=>ki(n)===n)).filter(n=>t?rr(n)===t||(e?rl(n)!==n:!1):!0)}var al=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=Vn,autoAlignment:y=!0,...S}=us(t,e),_=p!==void 0||h===Vn?lh(p||null,y,h):h,x=((r=o.autoPlacement)==null?void 0:r.index)||0,T=_[x];if(T==null)return{};if(a!==T)return{reset:{placement:_[0]}};let j=await l.detectOverflow(e,S),E=tl(T,s,await(l.isRTL==null?void 0:l.isRTL(u.floating))),I=[j[ki(T)],j[E[0]],j[E[1]]],U=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:T,overflows:I}],ue=_[x+1];if(ue)return{data:{index:x+1,overflows:U},reset:{placement:ue}};let J=U.map(ct=>{let gr=rr(ct.placement);return[ct.placement,gr&&d?ct.overflows.slice(0,2).reduce((Kp,Wp)=>Kp+Wp,0):ct.overflows[0],ct.overflows]}).sort((ct,gr)=>ct[1]-gr[1]),Si=((n=J.filter(ct=>ct[2].slice(0,rr(ct[0])?2:3).every(gr=>gr<=0))[0])==null?void 0:n[0])||J[0][0];return Si!==a?{data:{index:x+1,overflows:U},reset:{placement:Si}}:{}}}};var ll=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n,platform:s}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:j=>{let{x:E,y:I}=j;return{x:E,y:I}}},...u}=us(t,e),d={x:r,y:i},p=await s.detectOverflow(e,u),h=ds(n),y=Hn(h),S=d[y],_=d[h],x=(j,E)=>el(E+p[j==="y"?"top":"left"],E,E-p[j==="y"?"bottom":"right"]);o&&(S=x(y,S)),a&&(_=x(h,_));let T=l.fn({...e,[y]:S,[h]:_});return{...T,data:{x:T.x-r,y:T.y-i,enabled:{[y]:o,[h]:a}}}}}};function hs(){return typeof window<"u"}function Er(t){return ul(t)?(t.nodeName||"").toLowerCase():"#document"}function Ke(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ht(t){var e;return(e=(ul(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ul(t){return hs()?t instanceof Node||t instanceof Ke(t).Node:!1}function bt(t){return hs()?t instanceof Element||t instanceof Ke(t).Element:!1}function jt(t){return hs()?t instanceof HTMLElement||t instanceof Ke(t).HTMLElement:!1}function cl(t){return!hs()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ke(t).ShadowRoot}function Li(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=vt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function dl(t){return/^(table|td|th)$/.test(Er(t))}function $i(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var ch=/transform|translate|scale|rotate|perspective|filter/,uh=/paint|layout|strict|content/,Sr=t=>!!t&&t!=="none",Kn;function Zr(t){let e=bt(t)?vt(t):t;return Sr(e.transform)||Sr(e.translate)||Sr(e.scale)||Sr(e.rotate)||Sr(e.perspective)||!fs()&&(Sr(e.backdropFilter)||Sr(e.filter))||ch.test(e.willChange||"")||uh.test(e.contain||"")}function pl(t){let e=ir(t);for(;jt(e)&&!Jr(e);){if(Zr(e))return e;if($i(e))return null;e=ir(e)}return null}function fs(){return Kn==null&&(Kn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Kn}function Jr(t){return/^(html|body|#document)$/.test(Er(t))}function vt(t){return Ke(t).getComputedStyle(t)}function Pi(t){return bt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ir(t){if(Er(t)==="html")return t;let e=t.assignedSlot||t.parentNode||cl(t)&&t.host||Ht(t);return cl(e)?e.host:e}function hl(t){let e=ir(t);return Jr(e)?(t.ownerDocument||t).body:jt(e)&&Li(e)?e:hl(e)}function ps(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=hl(t),s=n===((i=t.ownerDocument)==null?void 0:i.body),o=Ke(n);if(s){let a=ms(o);return e.concat(o,o.visualViewport||[],Li(n)?n:[],a&&r?ps(a):[])}else return e.concat(n,ps(n,[],r))}function ms(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function gl(t){let e=vt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=jt(t),s=n?t.offsetWidth:r,o=n?t.offsetHeight:i,a=Ti(r)!==s||Ti(i)!==o;return a&&(r=s,i=o),{width:r,height:i,$:a}}function yl(t){return bt(t)?t:t.contextElement}function ei(t){let e=yl(t);if(!jt(e))return kt(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:s}=gl(e),o=(s?Ti(r.width):r.width)/i,a=(s?Ti(r.height):r.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var dh=kt(0);function bl(t){let e=Ke(t);return!fs()||!e.visualViewport?dh:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ph(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Ke(t)}function Di(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),s=yl(t),o=kt(1);e&&(i?bt(i)&&(o=ei(i)):o=ei(t));let a=ph(s,r,i)?bl(s):kt(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=Ke(s),y=bt(i)?Ke(i):i,S=h,_=ms(S);for(;_&&y!==S;){let x=ei(_),T=_.getBoundingClientRect(),j=vt(_),E=T.left+(_.clientLeft+parseFloat(j.paddingLeft))*x.x,I=T.top+(_.clientTop+parseFloat(j.paddingTop))*x.y;l*=x.x,u*=x.y,d*=x.x,p*=x.y,l+=E,u+=I,S=Ke(_),_=ms(S)}}return xr({width:d,height:p,x:l,y:u})}function gs(t,e){let r=Pi(t).scrollLeft;return e?e.left+r:Di(Ht(t)).left+r}function vl(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-gs(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function hh(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,s=n==="fixed",o=Ht(i),a=e?$i(e.floating):!1;if(i===o||a&&s)return r;let l={scrollLeft:0,scrollTop:0},u=kt(1),d=kt(0),p=jt(i);if((p||!s)&&((Er(i)!=="body"||Li(o))&&(l=Pi(i)),p)){let y=Di(i);u=ei(i),d.x=y.x+i.clientLeft,d.y=y.y+i.clientTop}let h=o&&!p&&!s?vl(o,l):kt(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 fh(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function mh(t){let e=Pi(t),r=t.ownerDocument.body,i=tr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=tr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+gs(t),o=-e.scrollTop;return vt(r).direction==="rtl"&&(s+=tr(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:s,y:o}}var gh=25;function yh(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=Ke(t),s=Ht(t),o=n.visualViewport,a=s.clientWidth,l=s.clientHeight,u=0,d=0;if(o){let h=!fs()||e==="fixed";i?h||(u=-o.offsetLeft,d=-o.offsetTop):(a=o.width,l=o.height,h&&(u=o.offsetLeft,d=o.offsetTop))}if(gs(s)<=0){let h=s.ownerDocument,y=h.body,S=getComputedStyle(y),_=h.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,x=Math.abs(s.clientWidth-y.clientWidth-_),T=getComputedStyle(s).scrollbarGutter==="stable both-edges"?x/2:x;T<=gh&&(a-=T)}return{width:a,height:l,x:u,y:d}}function bh(t,e){let r=Di(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,s=ei(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 fl(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=yh(t,r,e);else if(e==="document")i=mh(Ht(t));else if(bt(e))i=bh(e,r);else{let n=bl(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return xr(i)}function vh(t,e){let r=e.get(t);if(r)return r;let i=ps(t,[],!1).filter(a=>bt(a)&&Er(a)!=="body"),n=null,s=vt(t).position==="fixed",o=s?ir(t):t;for(;bt(o)&&!Jr(o);){let a=vt(o),l=Zr(o),u=n?n.position:s?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&a.position==="static")?i=i.filter(p=>p!==o):n=a,o=ir(o)}return e.set(t,i),i}function xh(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,o=[...r==="clippingAncestors"?$i(e)?[]:vh(e,this._c):[].concat(r),i],a=fl(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 y=fl(e,o[h],n);l=tr(y.top,l),u=Ri(y.right,u),d=Ri(y.bottom,d),p=tr(y.left,p)}return{width:u-p,height:d-l,x:p,y:l}}function Sh(t){let{width:e,height:r}=gl(t);return{width:e,height:r}}function Eh(t,e,r){let i=jt(e),n=Ht(e),s=r==="fixed",o=Di(t,!0,s,e),a={scrollLeft:0,scrollTop:0},l=kt(0);if((i||!s)&&((Er(e)!=="body"||Li(n))&&(a=Pi(e)),i)){let h=Di(e,!0,s,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}!i&&n&&(l.x=gs(n));let u=n&&!i&&!s?vl(n,a):kt(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 Wn(t){return vt(t).position==="static"}function ml(t,e){if(!jt(t)||vt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Ht(t)===r&&(r=r.ownerDocument.body),r}function xl(t,e){let r=Ke(t);if($i(t))return r;if(!jt(t)){let n=ir(t);for(;n&&!Jr(n);){if(bt(n)&&!Wn(n))return n;n=ir(n)}return r}let i=ml(t,e);for(;i&&dl(i)&&Wn(i);)i=ml(i,e);return i&&Jr(i)&&Wn(i)&&!Zr(i)?r:i||pl(t)||r}var Ch=async function(t){let e=this.getOffsetParent||xl,r=this.getDimensions,i=await r(t.floating);return{reference:Eh(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Ah(t){return vt(t).direction==="rtl"}var ys={convertOffsetParentRelativeRectToViewportRelativeRect:hh,getDocumentElement:Ht,getClippingRect:xh,getOffsetParent:xl,getElementRects:Ch,getClientRects:fh,getDimensions:Sh,getScale:ei,isElement:bt,isRTL:Ah};var Sl=al,El=ll;var Cl=(t,e,r)=>{let i=new Map,n=r??{},s={...ys,...n.platform,_c:i};return ol(t,e,{...n,platform:s})};function Al(t){return wh(t)}function Gn(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function wh(t){for(let e=t;e;e=Gn(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Gn(t);e;e=Gn(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Zr(r)||e.tagName==="BODY"))return e}return null}async function wl(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},Cl(t,e,{strategy:i.strategy,platform:{...ys,getOffsetParent:n=>ys.getOffsetParent(n,Al)},middleware:[El({crossAxis:!0}),Sl({allowedPlacements:[i.placement]})]})}var ui=c(f());var yo=c(V());var Ol=c(V(),1);var Qn=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function _l(t,e){return(0,Ol.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Ii(t);try{return JSON.parse(r)}catch{return Ii(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Mi,...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(!ti(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(!ti(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(!ti(t[o],e[o]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function ti(t,e){try{return Oh(t,e)}catch{return!1}}function Mi(t,e){return!ti(t,e)}function Ii(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function bs(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 Rl=c(V(),1);var Yn=t=>{let e=t??{};return(r,i)=>{var n;let s={hasChanged:Mi,attribute:!1,...e};(0,Rl.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 vs=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 Cr=c(V(),1);var xs=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let 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 kl=c(v(),1);var Ss=globalThis,_h=Ss.ShadowRoot&&(Ss.ShadyCSS===void 0||Ss.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Tl=(t,e)=>{if(_h)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=Ss.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}};var Es=class extends kl.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 Tl(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){Qn(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 Ll(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 ii=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},Il,$l=Symbol("constructorPrototype"),Pl=Symbol("constructorName"),Ml=Symbol("exportpartsDebouncer"),Dl=Symbol("dynamicDependenciesLoaded"),ri=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};ri.eventName="exportparts-updated";var Lt=class extends Es{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Il]=new xs(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Ml].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[$l]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Pl]&&Object.setPrototypeOf(this,this[$l])}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[Dl]||(r[Dl]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(ri.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(ri.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 ri)})}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=Ll(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(e){var r,i,n,s,o,a;let l=h=>h!=null&&h.trim().length>0,u=e.filter(l).map(h=>h.trim());if(u.length===0){this.exportparts=void 0;return}let d=new Set;for(let h of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let y=(s=(n=h.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&s!==void 0?s:[],S=(a=(o=h.getAttribute("exportparts"))===null||o===void 0?void 0:o.split(",").map(x=>x.split(":")[1]))!==null&&a!==void 0?a:[],_=[...y,...S].filter(l).map(x=>x.trim());for(let x of _)d.add(x)}if(d.size===0){this.exportparts=void 0;return}let p=[...d.values()].flatMap(h=>u.map(y=>`${h}:${y}--${h}`));this.exportparts=[...this.part,...p].join(", ")}};Il=Ml;ii([(0,Cr.property)()],Lt.prototype,"exportpartsPrefix",void 0);ii([_l([])],Lt.prototype,"exportpartsPrefixes",void 0);ii([(0,Cr.property)({reflect:!0})],Lt.prototype,"exportparts",void 0);ii([(0,Cr.property)()],Lt.prototype,"customStylesheet",void 0);ii([(0,Cr.property)()],Lt.prototype,"elementToFocus",void 0);ii([(0,Cr.state)()],Lt.prototype,"useAdoptedStyleSheets",void 0);function Cs(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ni=Symbol("internalReduxEventsUnsubscribers"),sr=Symbol("internalStoresUnsubscribers"),Ar=Symbol("internalStores"),Rh=bs(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[Ar].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ar].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[Ar].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Ar].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[Ar].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Ar].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let u=this.getStore(o.store);u&&(o.store?this[sr].has(o.store):this[sr].size>0)&&(this[a]=o.selector(u.getState(),this))}})}subscribeToStore(o,a){var l;this[sr].set(o,a.subscribe(()=>this.updateFromStores())),this[Ni].set(o,[]),Cs(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((u,d)=>{if(typeof this[d]=="function"&&(!u.store||a.name===u.store)){let p=h=>this[d](h);a.addEventListener(u.eventName,p),this[Ni].get(o).push(()=>a.removeEventListener(u.eventName,p))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[sr].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[sr].has(o)&&this[sr].get(o)(),this[sr].delete(o),(a=this[Ni].get(o))===null||a===void 0||a.forEach(l=>l()),this[Ni].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=sr,r=Ar,i=Ni,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Nl=class extends Rh(Lt){};function we(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 Th=typeof Symbol=="function"&&Symbol.observable||"@@observable",Fl=Th,Xn=()=>Math.random().toString(36).substring(7).split("").join("."),kh={INIT:`@@redux/INIT${Xn()}`,REPLACE:`@@redux/REPLACE${Xn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Xn()}`},As=kh;function ws(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 Zn(t,e,r){if(typeof t!="function")throw new Error(we(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(we(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(we(1));return r(Zn)(t,e)}let i=t,n=e,s=new Map,o=s,a=0,l=!1;function u(){o===s&&(o=new Map,s.forEach((x,T)=>{o.set(T,x)}))}function d(){if(l)throw new Error(we(3));return n}function p(x){if(typeof x!="function")throw new Error(we(4));if(l)throw new Error(we(5));let T=!0;u();let j=a++;return o.set(j,x),function(){if(T){if(l)throw new Error(we(6));T=!1,u(),o.delete(j),s=null}}}function h(x){if(!ws(x))throw new Error(we(7));if(typeof x.type>"u")throw new Error(we(8));if(typeof x.type!="string")throw new Error(we(17));if(l)throw new Error(we(9));try{l=!0,n=i(n,x)}finally{l=!1}return(s=o).forEach(j=>{j()}),x}function y(x){if(typeof x!="function")throw new Error(we(10));i=x,h({type:As.REPLACE})}function S(){let x=p;return{subscribe(T){if(typeof T!="object"||T===null)throw new Error(we(11));function j(){let I=T;I.next&&I.next(d())}return j(),{unsubscribe:x(j)}},[Fl](){return this}}}return h({type:As.INIT}),{dispatch:h,subscribe:p,getState:d,replaceReducer:y,[Fl]:S}}function Lh(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:As.INIT})>"u")throw new Error(we(12));if(typeof r(void 0,{type:As.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(we(13))})}function Bl(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{Lh(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],y=r[h],S=a[h],_=y(S,l);if(typeof _>"u"){let x=l&&l.type;throw new Error(we(14))}d[h]=_,u=u||_!==S}return u=u||i.length!==Object.keys(a).length,u?d:a}}function Fi(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function Ul(...t){return e=>(r,i)=>{let n=e(r,i),s=()=>{throw new Error(we(15))},o={getState:n.getState,dispatch:(l,...u)=>s(l,...u)},a=t.map(l=>l(o));return s=Fi(...a)(n.dispatch),{...n,dispatch:s}}}function zl(t){return ws(t)&&"type"in t&&typeof t.type=="string"}var Yl=Symbol.for("immer-nothing"),Vl=Symbol.for("immer-draftable"),Ie=Symbol.for("immer-state");function xt(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var et=Object,ni=et.getPrototypeOf,Ts="constructor",Is="prototype",ro="configurable",ks="enumerable",_s="writable",Bi="value",$t=t=>!!t&&!!t[Ie];function tt(t){return t?Xl(t)||Ns(t)||!!t[Vl]||!!t[Ts]?.[Vl]||Fs(t)||Bs(t):!1}var $h=et[Is][Ts].toString(),Hl=new WeakMap;function Xl(t){if(!t||!uo(t))return!1;let e=ni(t);if(e===null||e===et[Is])return!0;let r=et.hasOwnProperty.call(e,Ts)&&e[Ts];if(r===Object)return!0;if(!si(r))return!1;let i=Hl.get(r);return i===void 0&&(i=Function.toString.call(r),Hl.set(r,i)),i===$h}function Ms(t,e,r=!0){Vi(t)===0?(r?Reflect.ownKeys(t):et.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((i,n)=>e(n,i,t))}function Vi(t){let e=t[Ie];return e?e.type_:Ns(t)?1:Fs(t)?2:Bs(t)?3:0}var Jn=(t,e,r=Vi(t))=>r===2?t.has(e):et[Is].hasOwnProperty.call(t,e),io=(t,e,r=Vi(t))=>r===2?t.get(e):t[e],Ls=(t,e,r,i=Vi(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function Ph(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Ns=Array.isArray,Fs=t=>t instanceof Map,Bs=t=>t instanceof Set,uo=t=>typeof t=="object",si=t=>typeof t=="function",eo=t=>typeof t=="boolean";function Dh(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var qt=t=>t.copy_||t.base_;var po=t=>t.modified_?t.copy_:t.base_;function so(t,e){if(Fs(t))return new Map(t);if(Bs(t))return new Set(t);if(Ns(t))return Array[Is].slice.call(t);let r=Xl(t);if(e===!0||e==="class_only"&&!r){let i=et.getOwnPropertyDescriptors(t);delete i[Ie];let n=Reflect.ownKeys(i);for(let s=0;s<n.length;s++){let o=n[s],a=i[o];a[_s]===!1&&(a[_s]=!0,a[ro]=!0),(a.get||a.set)&&(i[o]={[ro]:!0,[_s]:!0,[ks]:a[ks],[Bi]:t[o]})}return et.create(ni(t),i)}else{let i=ni(t);if(i!==null&&r)return{...t};let n=et.create(i);return et.assign(n,t)}}function ho(t,e=!1){return Us(t)||$t(t)||!tt(t)||(Vi(t)>1&&et.defineProperties(t,{set:Os,add:Os,clear:Os,delete:Os}),et.freeze(t),e&&Ms(t,(r,i)=>{ho(i,!0)},!1)),t}function Ih(){xt(2)}var Os={[Bi]:Ih};function Us(t){return t===null||!uo(t)?!0:et.isFrozen(t)}var $s="MapSet",no="Patches",jl="ArrayMethods",Zl={};function wr(t){let e=Zl[t];return e||xt(0,t),e}var ql=t=>!!Zl[t];var Ui,Jl=()=>Ui,Mh=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ql($s)?wr($s):void 0,arrayMethodsPlugin_:ql(jl)?wr(jl):void 0});function Kl(t,e){e&&(t.patchPlugin_=wr(no),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function oo(t){ao(t),t.drafts_.forEach(Nh),t.drafts_=null}function ao(t){t===Ui&&(Ui=t.parent_)}var Wl=t=>Ui=Mh(Ui,t);function Nh(t){let e=t[Ie];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Gl(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[Ie].modified_&&(oo(e),xt(4)),tt(t)&&(t=Ql(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(r[Ie].base_,t,e)}else t=Ql(e,r);return Fh(e,t,!0),oo(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Yl?t:void 0}function Ql(t,e){if(Us(e))return e;let r=e[Ie];if(!r)return Ps(e,t.handledSet_,t);if(!zs(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);rc(r,t)}return r.copy_}function Fh(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&ho(e,r)}function ec(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var zs=(t,e)=>t.scope_===e,Bh=[];function tc(t,e,r,i){let n=qt(t),s=t.type_;if(i!==void 0&&io(n,i,s)===e){Ls(n,i,r,s);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;Ms(n,(l,u)=>{if($t(u)){let d=a.get(u)||[];d.push(l),a.set(u,d)}})}let o=t.draftLocations_.get(e)??Bh;for(let a of o)Ls(n,a,r,s)}function Uh(t,e,r){t.callbacks_.push(function(n){let s=e;if(!s||!zs(s,n))return;n.mapSetPlugin_?.fixSetContents(s);let o=po(s);tc(t,s.draft_??s,o,r),rc(s,n)})}function rc(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)}ec(t)}}function zh(t,e,r){let{scope_:i}=t;if($t(r)){let n=r[Ie];zs(n,i)&&n.callbacks_.push(function(){Rs(t);let o=po(n);tc(t,r,o,e)})}else tt(r)&&t.callbacks_.push(function(){let s=qt(t);t.type_===3?s.has(r)&&Ps(r,i.handledSet_,i):io(s,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Ps(io(t.copy_,e,t.type_),i.handledSet_,i)})}function Ps(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||$t(t)||e.has(t)||!tt(t)||Us(t)||(e.add(t),Ms(t,(i,n)=>{if($t(n)){let s=n[Ie];if(zs(s,r)){let o=po(s);Ls(t,i,o,t.type_),ec(s)}}else tt(n)&&Ps(n,e,r)})),t}function Vh(t,e){let r=Ns(t),i={type_:r?1:0,scope_:e?e.scope_:Jl(),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=Ds;r&&(n=[i],s=zi);let{revoke:o,proxy:a}=Proxy.revocable(n,s);return i.draft_=a,i.revoke_=o,[a,i]}var Ds={get(t,e){if(e===Ie)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let n=qt(t);if(!Jn(n,e,t.type_))return jh(t,n,e);let s=n[e];if(t.finalized_||!tt(s)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&Dh(e))return s;if(s===to(t.base_,e)||Hh(t,e,s)){Rs(t);let o=t.type_===1?+e:e,a=co(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=ic(qt(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let n=to(qt(t),e),s=n?.[Ie];if(s&&s.base_===r)return t.copy_[e]=r,t.assigned_.set(e,!1),!0;if(Ph(r,n)&&(r!==void 0||Jn(t.base_,e,t.type_)))return!0;Rs(t),lo(t)}return t.copy_[e]===r&&(r!==void 0||Jn(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),zh(t,e,r)),!0},deleteProperty(t,e){return Rs(t),to(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),lo(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&&{[_s]:!0,[ro]:t.type_!==1||e!=="length",[ks]:i[ks],[Bi]:r[e]}},defineProperty(){xt(11)},getPrototypeOf(t){return ni(t.base_)},setPrototypeOf(){xt(12)}},zi={};for(let t in Ds){let e=Ds[t];zi[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}zi.deleteProperty=function(t,e){return zi.set.call(this,t,e,void 0)};zi.set=function(t,e,r){return Ds.set.call(this,t[0],e,r,t[0])};function to(t,e){let r=t[Ie];return(r?qt(r):t)[e]}function Hh(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!tt(r)||r[Ie]?!1:t.baseRefs_.has(r)}function jh(t,e,r){let i=ic(e,r);return i?Bi in i?i[Bi]:i.get?.call(t.draft_):void 0}function ic(t,e){if(!(e in t))return;let r=ni(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=ni(r)}}function lo(t){t.modified_||(t.modified_=!0,t.parent_&&lo(t.parent_))}function Rs(t){t.copy_||(t.assigned_=new Map,t.copy_=so(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var qh=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(si(e)&&!si(r)){let s=r;r=e;let o=this;return function(l=s,...u){return o.produce(l,d=>r.call(this,d,...u))}}si(r)||xt(6),i!==void 0&&!si(i)&&xt(7);let n;if(tt(e)){let s=Wl(this),o=co(s,e,void 0),a=!0;try{n=r(o),a=!1}finally{a?oo(s):ao(s)}return Kl(s,i),Gl(n,s)}else if(!e||!uo(e)){if(n=r(e),n===void 0&&(n=e),n===Yl&&(n=void 0),this.autoFreeze_&&ho(n,!0),i){let s=[],o=[];wr(no).generateReplacementPatches_(e,n,{patches_:s,inversePatches_:o}),i(s,o)}return n}else xt(1,e)},this.produceWithPatches=(e,r)=>{if(si(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]},eo(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),eo(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),eo(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){tt(t)||xt(8),$t(t)&&(t=sc(t));let e=Wl(this),r=co(e,t,void 0);return r[Ie].isManual_=!0,ao(e),r}finishDraft(t,e){let r=t&&t[Ie];(!r||!r.isManual_)&&xt(9);let{scope_:i}=r;return Kl(i,e),Gl(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=wr(no).applyPatches_;return $t(t)?i(t,e):this.produce(t,n=>i(n,e))}};function co(t,e,r,i){let[n,s]=Fs(e)?wr($s).proxyMap_(e,r):Bs(e)?wr($s).proxySet_(e,r):Vh(e,r);return(r?.scope_??Jl()).drafts_.push(n),s.callbacks_=r?.callbacks_??[],s.key_=i,r&&i!==void 0?Uh(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 $t(t)||xt(10,t),nc(t)}function nc(t){if(!tt(t)||Us(t))return t;let e=t[Ie],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=so(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=so(t,!0);return Ms(r,(n,s)=>{Ls(r,n,nc(s))},i),e&&(e.finalized_=!1),r}var Kh=new qh,fo=Kh.produce;function oc(t){return({dispatch:r,getState:i})=>n=>s=>typeof s=="function"?s(r,i,t):n(s)}var ac=oc(),lc=oc;var Wh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Fi:Fi.apply(null,arguments)},Lg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},Gh=t=>t&&typeof t.match=="function";function nr(t,e){function r(...i){if(e){let n=e(...i);if(!n)throw new Error(Kt(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=>zl(i)&&i.type===t,r}var hc=class Hi extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Hi.prototype)}static get[Symbol.species](){return Hi}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Hi(...e[0].concat(this)):new Hi(...e.concat(this))}};function cc(t){return tt(t)?fo(t,()=>{}):t}function Vs(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Qh(t){return typeof t=="boolean"}var Yh=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:s=!0}=e??{},o=new hc;return r&&(Qh(r)?o.push(ac):o.push(lc(r.extraArgument))),o},Xh="RTK_autoBatch";var uc=t=>e=>{setTimeout(e,t)},Zh=(t,e)=>r=>{let i=!1,n=()=>{i||(i=!0,cancelAnimationFrame(s),clearTimeout(o),r())},s=t(n),o=setTimeout(n,e)},Jh=(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?Zh(window.requestAnimationFrame,100):uc(10):t.type==="callback"?t.queueNotification:uc(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?.[Xh],s=!n,s&&(o||(o=!0,l(u))),i.dispatch(d)}finally{n=!0}}})},ef=t=>function(r){let{autoBatch:i=!0}=r??{},n=new hc(t);return i&&n.push(Jh(typeof i=="object"?i:void 0)),n};function fc(t){let e=Yh(),{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(ws(r))l=Bl(r);else throw new Error(Kt(1));let u;typeof i=="function"?u=i(e):u=e();let d=Fi;n&&(d=Wh({trace:!1,...typeof n=="object"&&n}));let p=Ul(...u),h=ef(p),y=typeof a=="function"?a(h):h(),S=d(...y);return Zn(l,o,S)}function mc(t){let e={},r=[],i,n={addCase(s,o){let a=typeof s=="string"?s:s.type;if(!a)throw new Error(Kt(28));if(a in e)throw new Error(Kt(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 tf(t){return typeof t=="function"}function rf(t,e){let[r,i,n]=mc(e),s;if(tf(t))s=()=>cc(t());else{let a=cc(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($t(d)){let y=p(d,l);return y===void 0?d:y}else{if(tt(d))return fo(d,h=>p(h,l));{let h=p(d,l);if(h===void 0){if(d===null)return d;throw Error("A case reducer on a non-draftable value must not return undefined")}return h}}return d},a)}return o.getInitialState=s,o}var sf=(t,e)=>Gh(t)?t.match(e):t(e);function nf(...t){return e=>t.some(r=>sf(r,e))}var of="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",af=(t=21)=>{let e="",r=t;for(;r--;)e+=of[Math.random()*64|0];return e},lf=["name","message","stack","code"],mo=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},dc=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},cf=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of lf)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},pc="External signal was aborted",uf=(()=>{function t(e,r,i){let n=nr(e+"/fulfilled",(l,u,d,p)=>({payload:l,meta:{...p||{},arg:d,requestId:u,requestStatus:"fulfilled"}})),s=nr(e+"/pending",(l,u,d)=>({payload:void 0,meta:{...d||{},arg:u,requestId:l,requestStatus:"pending"}})),o=nr(e+"/rejected",(l,u,d,p,h)=>({payload:p,error:(i&&i.serializeError||cf)(l||"Rejected"),meta:{...h||{},arg:d,requestId:u,rejectedWithValue:!!p,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:u}={}){return(d,p,h)=>{let y=i?.idGenerator?i.idGenerator(l):af(),S=new AbortController,_,x;function T(E){x=E,S.abort()}u&&(u.aborted?T(pc):u.addEventListener("abort",()=>T(pc),{once:!0}));let j=(async function(){let E;try{let U=i?.condition?.(l,{getState:p,extra:h});if(pf(U)&&(U=await U),U===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let ue=new Promise((J,de)=>{_=()=>{de({name:"AbortError",message:x||"Aborted"})},S.signal.addEventListener("abort",_,{once:!0})});d(s(y,l,i?.getPendingMeta?.({requestId:y,arg:l},{getState:p,extra:h}))),E=await Promise.race([ue,Promise.resolve(r(l,{dispatch:d,getState:p,extra:h,requestId:y,signal:S.signal,abort:T,rejectWithValue:((J,de)=>new mo(J,de)),fulfillWithValue:((J,de)=>new dc(J,de))})).then(J=>{if(J instanceof mo)throw J;return J instanceof dc?n(J.payload,y,l,J.meta):n(J,y,l)})])}catch(U){E=U instanceof mo?o(null,y,l,U.payload,U.meta):o(U,y,l)}finally{_&&S.signal.removeEventListener("abort",_)}return i&&!i.dispatchConditionRejection&&o.match(E)&&E.meta.condition||d(E),E})();return Object.assign(j,{abort:T,requestId:y,arg:l,unwrap(){return j.then(df)}})}}return Object.assign(a,{pending:s,rejected:o,fulfilled:n,settled:nf(o,n),typePrefix:e})}return t.withTypes=()=>t,t})();function df(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function pf(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var gc=Symbol.for("rtk-slice-createasyncthunk"),Pg={[gc]:uf};function hf(t,e){return`${t}/${e}`}function ff({creators:t}={}){let e=t?.asyncThunk?.[gc];return function(i){let{name:n,reducerPath:s=n}=i;if(!n)throw new Error(Kt(11));typeof process<"u";let o=(typeof i.reducers=="function"?i.reducers(gf()):i.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(E,I){let U=typeof E=="string"?E:E.type;if(!U)throw new Error(Kt(12));if(U in l.sliceCaseReducersByType)throw new Error(Kt(13));return l.sliceCaseReducersByType[U]=I,u},addMatcher(E,I){return l.sliceMatchers.push({matcher:E,reducer:I}),u},exposeAction(E,I){return l.actionCreators[E]=I,u},exposeCaseReducer(E,I){return l.sliceCaseReducersByName[E]=I,u}};a.forEach(E=>{let I=o[E],U={reducerName:E,type:hf(n,E),createNotation:typeof i.reducers=="function"};bf(I)?xf(U,I,u,e):yf(U,I,u)});function d(){let[E={},I=[],U=void 0]=typeof i.extraReducers=="function"?mc(i.extraReducers):[i.extraReducers],ue={...E,...l.sliceCaseReducersByType};return rf(i.initialState,J=>{for(let de in ue)J.addCase(de,ue[de]);for(let de of l.sliceMatchers)J.addMatcher(de.matcher,de.reducer);for(let de of I)J.addMatcher(de.matcher,de.reducer);U&&J.addDefaultCase(U)})}let p=E=>E,h=new Map,y=new WeakMap,S;function _(E,I){return S||(S=d()),S(E,I)}function x(){return S||(S=d()),S.getInitialState()}function T(E,I=!1){function U(J){let de=J[E];return typeof de>"u"&&I&&(de=Vs(y,U,x)),de}function ue(J=p){let de=Vs(h,I,()=>new WeakMap);return Vs(de,J,()=>{let Si={};for(let[ct,gr]of Object.entries(i.selectors??{}))Si[ct]=mf(gr,J,()=>Vs(y,J,x),I);return Si})}return{reducerPath:E,getSelectors:ue,get selectors(){return ue(U)},selectSlice:U}}let j={name:n,reducer:_,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:x,...T(s),injectInto(E,{reducerPath:I,...U}={}){let ue=I??s;return E.inject({reducerPath:ue,reducer:_},U),{...j,...T(ue,!0)}}};return j}}function mf(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 yc=ff();function gf(){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 yf({type:t,reducerName:e,createNotation:r},i,n){let s,o;if("reducer"in i){if(r&&!vf(i))throw new Error(Kt(17));s=i.reducer,o=i.prepare}else s=i;n.addCase(t,s).exposeCaseReducer(e,s).exposeAction(e,o?nr(t,o):nr(t))}function bf(t){return t._reducerDefinitionType==="asyncThunk"}function vf(t){return t._reducerDefinitionType==="reducerWithPrepare"}function xf({type:t,reducerName:e},r,i,n){if(!n)throw new Error(Kt(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||Hs,pending:a||Hs,rejected:l||Hs,settled:u||Hs})}function Hs(){}var bc="listener",vc="completed",xc="cancelled",Dg=`task-${xc}`,Ig=`task-${vc}`,Mg=`${bc}-${xc}`,Ng=`${bc}-${vc}`;var{assign:Sc}=Object;var go="listenerMiddleware";var Sf=Sc(nr(`${go}/add`),{withTypes:()=>Sf}),Fg=nr(`${go}/removeAll`),Ef=Sc(nr(`${go}/remove`),{withTypes:()=>Ef});function Kt(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 Cf=bs(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)}}}),js=class extends Cf(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ec=class t extends js{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(Cs(s))return s;if(n==null)return;let o=yc({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),a=fc({reducer:(l,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let d=Ii(o.getInitialState());for(let p of u.keeping)d[p]=(l??d)[p];return d}else if(typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...u.overwrites};return o.reducer(l,u)}});return window.ftReduxStores[n.name]=new t(o,a,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new vs,this.injectInto=(s,o)=>this.reduxSlice.injectInto(s,o),this.selectSlice=s=>this.reduxSlice.selectSlice(s);let n=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,o,a)=>{let l=o,u=s[l];return u?(...d)=>{let p=u(...d.map(n));return this.reduxStore.dispatch(p),p}:d=>{let p=l,h=this.getState()[p];ti(h,d)||this.setState({[p]:n(d)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var qs=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 Ks=c(f()),Af="ft-app-info",Or=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Or.eventName="authentication-change";var ji=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ji.eventName="ui-locale-changed";var wf={session:(t,e)=>{(0,Ks.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>O.dispatchEvent(new Or(e.payload)),0))}},O=Ks.FtReduxStore.get({name:Af,reducers:wf,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,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var Cc=c(f()),Ws=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},fy=(0,Cc.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=>qs.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ws([(0,yo.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Ws([(0,yo.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Ws([Yn({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),Ws([Yn({store:O.name})],e.prototype,"uiLocale",void 0),e});var Ac;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Ac||(Ac={}));var wc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(wc||(wc={}));var Oc;(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"})(Oc||(Oc={}));var _c;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(_c||(_c={}));var Rc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Rc||(Rc={}));var Tc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Tc||(Tc={}));var kc;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(kc||(kc={}));var Lc;(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"})(Lc||(Lc={}));var $c;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})($c||($c={}));var Pc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(Pc||(Pc={}));var Dc;(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"})(Dc||(Dc={}));var Ic;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Ic||(Ic={}));var Mc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Mc||(Mc={}));var Nc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Nc||(Nc={}));var Fc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Fc||(Fc={}));var Bc;(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"})(Bc||(Bc={}));var bo;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(bo||(bo={}));var Uc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Uc||(Uc={}));var zc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(zc||(zc={}));var vo;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(vo||(vo={}));var Vc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Vc||(Vc={}));var Hc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Hc||(Hc={}));var jc;(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"})(jc||(jc={}));var qc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(qc||(qc={}));var Kc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Kc||(Kc={}));var xo;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(xo||(xo={}));var Wc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Wc||(Wc={}));var pe;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(pe||(pe={}));var dt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(dt||(dt={}));var Gc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Gc||(Gc={}));var Qc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Qc||(Qc={}));var Yc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Yc||(Yc={}));var Xc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Xc||(Xc={}));var Zc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Zc||(Zc={}));var Jc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Jc||(Jc={}));var eu;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(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 su;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(su||(su={}));var nu;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(nu||(nu={}));var Of={[pe.PERSONAL_BOOK_SHARE_USER]:[pe.PERSONAL_BOOK_USER],[pe.HTML_EXPORT_USER]:[pe.PERSONAL_BOOK_USER],[pe.PDF_EXPORT_USER]:[pe.PERSONAL_BOOK_USER],[pe.KHUB_ADMIN]:[pe.CONTENT_PUBLISHER],[pe.ADMIN]:[pe.KHUB_ADMIN,pe.USERS_ADMIN,pe.PORTAL_ADMIN,pe.BEHAVIOR_DATA_USER],[pe.GENERATIVE_AI_EXPORT_USER]:[pe.GENERATIVE_AI_USER]};function ou(t,e){return t===e||(Of[t]??[]).some(r=>ou(r,e))}function So(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))}var Zs=c(f());var Eo=c(f());var _r=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 oi=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:_r.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):_r.await()}};var We=class extends oi{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 Eo.CacheRegistry,this.cache=e?n.commonCache:new Eo.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 Gs=class extends We{async listMySearches(){let{session:e}=O.getState();return So(e,pe.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Qs=class extends We{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 Ys=class extends We{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 Xs=class extends We{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 _f="ft-user-assets",Rf={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;Ao(t,r,[...Co(t,r),n]),au(t,r,1,i),lu(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Ao(t,r,Co(t,r).map(n=>n.id===i.id?i:n)),lu(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;Ao(t,r,Co(t,r).filter(s=>s.id!==n)),au(t,r,-1,i)}},cu={[dt.SEARCHES]:"savedSearches",[dt.BOOKMARKS]:"bookmarks",[dt.BOOKS]:void 0,[dt.COLLECTIONS]:void 0},Co=(t,e)=>{var r;let i=cu[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Ao=(t,e,r)=>{let i=cu[e];i&&(t[i]=r)},au=(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)}},lu=(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=Zs.FtReduxStore.get({name:_f,reducers:Rf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(dt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),wo=class{constructor(e=new Ys,r=new Xs){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=O.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Qs,this.savedSearchesService=new Gs,O.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=O.getState();(0,Zs.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)}}},Tf=new wo;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Tf);var Oo=class{addCommand(e,r=!1){O.commands.add(e,r)}consumeCommand(e){return O.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Oo;var pt=c(f());var uu,ai=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},kf=Symbol("clearAfterUnitTest"),Js=class extends(0,pt.withEventBus)(We){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[uu]=()=>{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 ai({loadedContexts:e})),this.dispatchEvent(new ai({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new ai({loadedContexts:[e]})),this.dispatchEvent(new ai({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,pt.delay)(0).then(()=>i()).catch(()=>null)))}};uu=kf;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Js{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Js{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var li=window.FluidTopicsI18nService,en=window.FluidTopicsCustomI18nService;var du=c(f()),_o=class{highlightHtml(e,r,i){(0,du.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new _o;var pu=c(f());var Ro=class{isDate(e){var r,i,n,s;return(s=(n=((i=(r=O.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===e))===null||n===void 0?void 0:n.date)!==null&&s!==void 0?s:!1}format(e,r){var i,n,s,o;if(e==null)return"";try{return pu.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 Ro;var hu=c(f());var Wt=class{static get(e,r){var i,n,s,o;let a=O.getState(),{lang:l,region:u}=(s=(n=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&s!==void 0?s:{lang:"en",region:"US"};return new hu.SearchPlaceConverter(a.baseUrl,e??20,(o=a.localesConfiguration)===null||o===void 0?void 0:o.allLanguagesAllowed,r??`${l}-${u}`)}};var To=class{urlToSearchRequest(e){return Wt.get().parse(e)}searchRequestToUrl(e){return Wt.get().serialize(e)}};window.FluidTopicsUrlService=new To;var Gt=c(f());var Rr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Rr.eventName="change";var ko=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))}},fu=new ko;var tn=class t extends Gt.WithEventBus{static build(){return new t(window.history,fu,()=>window.location,!1)}constructor(e,r,i,n){var s,o;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(o=(s=e.state)===null||s===void 0?void 0:s.index)!==null&&o!==void 0?o:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Gt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Rr(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[s,o,a])=>{let l=r(),u={...l===this.currentIndex?this.currentState:void 0,...s,index:l,href:typeof a=="string"?a:(a??this.windowLocation()).href};i.apply(n,[u,o,a]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(Rr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Rr.eventName,e)}currentItem(){return(0,Gt.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Gt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Gt.deepCopy)(r.find(i=>e(i)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,Gt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,s=e+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,i);)this.hasState(s)&&(n=s),s++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,s=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return s==null||s!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=tn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var mu=c(v());var gu=mu.css`
|
|
261
|
+
`;var bu=c(v()),Ge=c(V()),Lr=c(f());var Tr=c(f());function yu(t,e){let{authenticationRequired:r,session:i}=O.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var rn=class extends oi{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Lo=class t extends Tr.FtStateManager{static build(e){return new t(O,e)}constructor(e,r){super(),this.store=e,this.cache=new Tr.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new rn,this.cleanSessionDebouncer=new Tr.Debouncer,this.reloadDebouncer=new Tr.Debouncer(500),this.apiProvider=r??(()=>_r.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(Or.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let r=await this.cache.get("availableContentLocales",()=>yu(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}reloadConfiguration(){var e;(e=this.cache)===null||e===void 0||e.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}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 ji(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)}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)}},$o=Lo.build();var kr=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 qi=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 kr(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 Oe=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},ne=class extends Lr.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=$o,this.contextRoot=new qi}render(){return bu.html`
|
|
262
262
|
<slot></slot>
|
|
263
|
-
`}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("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("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>
|
|
264
|
-
`;var
|
|
263
|
+
`}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("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("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>li.addContext(i)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};ne.elementDefinitions={};ne.styles=gu;Oe([(0,Ge.property)()],ne.prototype,"baseUrl",void 0);Oe([(0,Ge.property)()],ne.prototype,"tenantId",void 0);Oe([(0,Ge.property)()],ne.prototype,"apiIntegrationIdentifier",void 0);Oe([(0,Ge.property)()],ne.prototype,"apiIntegrationAppVersion",void 0);Oe([(0,Ge.property)()],ne.prototype,"uiLocale",void 0);Oe([(0,Lr.jsonProperty)(null)],ne.prototype,"availableUiLocales",void 0);Oe([(0,Lr.jsonProperty)(null)],ne.prototype,"metadataConfiguration",void 0);Oe([(0,Ge.property)({type:Boolean})],ne.prototype,"editorMode",void 0);Oe([(0,Ge.property)({type:Boolean})],ne.prototype,"noCustom",void 0);Oe([(0,Ge.property)({type:Boolean})],ne.prototype,"openExternalDocumentInNewTab",void 0);Oe([(0,Ge.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ne.prototype,"noCustomComponent",void 0);Oe([(0,Ge.property)({type:Boolean})],ne.prototype,"withManualResources",void 0);Oe([(0,Ge.property)({type:Boolean})],ne.prototype,"navigatorOnline",void 0);Oe([(0,Ge.property)({type:Boolean})],ne.prototype,"forcedOffline",void 0);Oe([(0,Ge.property)({type:Boolean})],ne.prototype,"authenticationRequired",void 0);Oe([(0,Lr.jsonProperty)([])],ne.prototype,"messageContexts",void 0);Oe([(0,Lr.jsonProperty)(void 0)],ne.prototype,"session",void 0);var xu=c(f());var vu={"ft-app-context":ne};(0,xu.customElements)(vu);var Su=c(V());var Po=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,i]=e.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},ci=new Po;var Pf=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},Wi=Symbol("i18nAttributes"),Eu=Symbol("i18nListAttributes"),Cu=Symbol("i18nProperties"),sn=Symbol("i18nContexts"),Ki=Symbol("i18nUnsubs"),di=(0,ui.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?en:li}i18n(s){let{context:o,key:a,message:l}=s,{custom:u,args:d,argsProvider:p}=s;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,u);let h=d??(p?p(this):[]);return this.getI18nService(u).resolveMessage(o,a,...h)}return l}async awaitI18n(s){let{context:o,custom:a}=s;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(s)}customI18n(s,o){if(ci.isI18nKey(s)){let[a,l]=s.split(".");return this.i18n({custom:!0,context:a,key:l,...o})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((o,a,l)=>s.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((o,a,l)=>{var u;return((u=l?.context)===null||u===void 0?void 0:u.toLowerCase())===s}),this.updateI18nProperties(o=>o.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var o,a;let l=this,u=(d,p,h)=>h?.context&&h.key&&s(d,p,h)?{...h,message:this.i18n({context:h.context,key:h.key,custom:h.custom,...d})}:h;(o=this[Wi])===null||o===void 0||o.forEach((d,p)=>l[p]=u(d,p,l[p])),(a=this[Eu])===null||a===void 0||a.forEach((d,p)=>{var h;return l[p]=(h=l[p])===null||h===void 0?void 0:h.map(y=>u(d,p,y))})}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[sn].set(l,{isCustomContext:a}),this[Ki].has(l)||this[Ki].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,o)}hasI18nContext(s){return this[sn].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[sn].forEach((s,o)=>this.addI18nContext(o,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Ki].forEach(s=>s()),this[Ki].clear()}}return e=sn,r=Ki,Pf([(0,Su.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),nn=class extends di(ui.FtLitElement){},on=class extends di(ui.FtLitElementRedux){};var Au=c(f());var Do=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?ci.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Df=new Do;var an=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:Au.hasChanged,converter:ci,...e}),r[Wi]=(n=r[Wi])!==null&&n!==void 0?n:new Map,r[Wi].set(i,t??{})};var ln=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?en:li}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 wu=c(v());var Ou=wu.css`
|
|
264
|
+
`;var cn=c(v()),un=c(V()),dn=c(f());var Gi=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},St=class extends on{constructor(){super(),this.editorMode=!1,this.addStore(O)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":cn.nothing:cn.html`
|
|
265
265
|
<span class="ft-i18n">
|
|
266
266
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
267
267
|
</span>
|
|
268
|
-
`}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};St.elementDefinitions={};St.styles=
|
|
268
|
+
`}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};St.elementDefinitions={};St.styles=Ou;Gi([(0,dn.redux)()],St.prototype,"editorMode",void 0);Gi([(0,un.property)()],St.prototype,"context",void 0);Gi([(0,un.property)()],St.prototype,"key",void 0);Gi([(0,dn.jsonProperty)([])],St.prototype,"args",void 0);Gi([(0,un.property)()],St.prototype,"defaultMessage",void 0);var Ru=c(f());var _u={"ft-i18n":St};(0,Ru.customElements)(_u);var Et=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},he=class extends nn{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 ht.Debouncer,this.revealDebouncer=new ht.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 Tu.html`
|
|
269
269
|
<div part="container"
|
|
270
270
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
|
|
271
271
|
<slot part="slot"></slot>
|
|
@@ -274,13 +274,13 @@
|
|
|
274
274
|
popover="manual">
|
|
275
275
|
<div part="tooltip-content" class="ft-tooltip--content">
|
|
276
276
|
<slot name="text"></slot>
|
|
277
|
-
<ft-typography variant="${
|
|
277
|
+
<ft-typography variant="${ce.caption}" ?hidden=${!(!((e=this.text)===null||e===void 0)&&e.message)}>
|
|
278
278
|
${(r=this.text)===null||r===void 0?void 0:r.message}
|
|
279
279
|
</ft-typography>
|
|
280
280
|
</div>
|
|
281
281
|
</div>
|
|
282
282
|
</div>
|
|
283
|
-
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,i;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let 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&&
|
|
283
|
+
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,i;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let 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&&wl(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 ${ht.designSystemVariables.transitionDuration}, left ${ht.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,ht.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};he.elementDefinitions={"ft-typography":K};he.styles=Xa;Et([an()],he.prototype,"text",void 0);Et([(0,ft.property)({type:Boolean})],he.prototype,"manual",void 0);Et([(0,ft.property)({type:Boolean})],he.prototype,"inline",void 0);Et([(0,ht.numberProperty)()],he.prototype,"delay",void 0);Et([(0,ft.property)()],he.prototype,"position",void 0);Et([(0,ht.jsonProperty)([])],he.prototype,"ignoreMatchingElements",void 0);Et([(0,ft.queryAssignedNodes)()],he.prototype,"slotNodes",void 0);Et([(0,ft.query)(".ft-tooltip--container")],he.prototype,"container",void 0);Et([(0,ft.query)(".ft-tooltip")],he.prototype,"tooltip",void 0);Et([(0,ft.query)(".ft-tooltip--content")],he.prototype,"tooltipContent",void 0);Et([(0,ft.state)()],he.prototype,"visible",void 0);var Lu=c(f());var ku={"ft-tooltip":he};(0,Lu.customElements)(ku);var $u=c(v()),Ct=c(f()),Be={size:Ct.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ct.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Ct.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ct.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Ct.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ct.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Ct.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ct.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Pu=[$u.css`
|
|
284
284
|
:host, i.ft-icon {
|
|
285
285
|
display: inline-flex;
|
|
286
286
|
align-items: center;
|
|
@@ -289,14 +289,14 @@
|
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
:host {
|
|
292
|
-
width: ${
|
|
293
|
-
height: ${
|
|
292
|
+
width: ${Be.size};
|
|
293
|
+
height: ${Be.size};
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
i.ft-icon {
|
|
297
297
|
width: 100%;
|
|
298
298
|
height: 100%;
|
|
299
|
-
font-size: ${
|
|
299
|
+
font-size: ${Be.size};
|
|
300
300
|
line-height: 1;
|
|
301
301
|
font-weight: normal;
|
|
302
302
|
text-transform: none;
|
|
@@ -307,33 +307,33 @@
|
|
|
307
307
|
text-rendering: auto;
|
|
308
308
|
-webkit-font-smoothing: antialiased;
|
|
309
309
|
-moz-osx-font-smoothing: grayscale;
|
|
310
|
-
vertical-align: ${
|
|
310
|
+
vertical-align: ${Be.verticalAlign};
|
|
311
311
|
}
|
|
312
312
|
|
|
313
313
|
i.ft-icon.ft-icon--fluid-topics {
|
|
314
|
-
font-family: ${
|
|
314
|
+
font-family: ${Be.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
315
315
|
|
|
316
316
|
/* Ugly fix because font is broken */
|
|
317
|
-
font-size: calc(0.75 * ${
|
|
318
|
-
line-height: ${
|
|
317
|
+
font-size: calc(0.75 * ${Be.size});
|
|
318
|
+
line-height: ${Be.size};
|
|
319
319
|
position: relative;
|
|
320
320
|
top: -4%;
|
|
321
321
|
justify-content: center;
|
|
322
322
|
}
|
|
323
323
|
|
|
324
324
|
.ft-icon--file-format {
|
|
325
|
-
font-family: ${
|
|
325
|
+
font-family: ${Be.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
326
326
|
}
|
|
327
327
|
|
|
328
328
|
.ft-icon--material {
|
|
329
|
-
font-family: ${
|
|
329
|
+
font-family: ${Be.materialFontFamily}, "Material Icons", sans-serif;
|
|
330
330
|
}
|
|
331
|
-
`,At.noTextSelect];var Fe;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Fe||(Fe={}));var Ji=u(A()),ur=u(z()),Cu=u(g()),Ou=u(Au());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 y;(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=""})(y||(y={}));var _s=new Map([...["abw"].map(t=>[t,y.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,y.AUDIO]),...["avi"].map(t=>[t,y.AVI]),...["chm","xhs"].map(t=>[t,y.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,y.CODE]),...["csv"].map(t=>[t,y.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,y.DITA]),...["epub"].map(t=>[t,y.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,y.EXCEL]),...["flac"].map(t=>[t,y.FLAC]),...["gif"].map(t=>[t,y.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,y.GZIP]),...["html","htm","xhtml"].map(t=>[t,y.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,y.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,y.JPEG]),...["json"].map(t=>[t,y.JSON]),...["m4a","m4p"].map(t=>[t,y.M4A]),...["mov","qt"].map(t=>[t,y.MOV]),...["mp3"].map(t=>[t,y.MP3]),...["mp4","m4v"].map(t=>[t,y.MP4]),...["ogg","oga"].map(t=>[t,y.OGG]),...["pdf","ps"].map(t=>[t,y.PDF]),...["png"].map(t=>[t,y.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,y.POWERPOINT]),...["rar"].map(t=>[t,y.RAR]),...["stp"].map(t=>[t,y.STP]),...["txt","rtf","md","mdown"].map(t=>[t,y.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,y.VIDEO]),...["wav"].map(t=>[t,y.WAV]),...["wma"].map(t=>[t,y.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,y.WORD]),...["xml","xsl","rdf"].map(t=>[t,y.XML]),...["yaml","yml","x-yaml"].map(t=>[t,y.YAML]),...["zip"].map(t=>[t,y.ZIP])]),uh=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 to(t,e){var r,i,n,o;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,a]=(((r=uh.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(o=(n=(i=_s.get(a))!==null&&i!==void 0?i:_s.get(e))!==null&&n!==void 0?n:_s.get(s))!==null&&o!==void 0?o:y.UNKNOWN}var Ix={[y.ABW]:"#91ABC6",[y.AUDIO]:"#1795E3",[y.AVI]:"#E63324",[y.CHM]:"#71C3EB",[y.CODE]:"#71C3EB",[y.CSV]:"#1F7345",[y.DITA]:"#71C3EB",[y.EPUB]:"#85B926",[y.EXCEL]:"#1F7345",[y.FLAC]:"#1795E3",[y.GIF]:"#59B031",[y.GZIP]:"#F8AB36",[y.HTML]:"#71C3EB",[y.IMAGE]:"#59B031",[y.JPEG]:"#59B031",[y.JSON]:"#71C3EB",[y.M4A]:"#1795E3",[y.MOV]:"#E63324",[y.MP3]:"#1795E3",[y.MP4]:"#E63324",[y.OGG]:"#1795E3",[y.PDF]:"#E44948",[y.PNG]:"#59B031",[y.POWERPOINT]:"#B54A2B",[y.RAR]:"#F8AB36",[y.STP]:"#3764B1",[y.TEXT]:"#3162AB",[y.UNKNOWN]:"#999999",[y.VIDEO]:"#E63324",[y.WAV]:"#1795E3",[y.WMA]:"#1795E3",[y.WORD]:"#3162AB",[y.XML]:"#71C3EB",[y.YAML]:"#71C3EB",[y.ZIP]:"#F8AB36"};var en=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Z=class extends Cu.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Ji.nothing}render(){let e=this.variant&&Object.values(Fe).includes(this.variant)?this.variant:Fe.fluid_topics,r=e!==Fe.material||!!this.value;return Ji.html`
|
|
331
|
+
`,Ct.noTextSelect];var Ue;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ue||(Ue={}));var Qi=c(v()),or=c(V()),Mu=c(f()),Nu=c(Iu());var ye;(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="󨃱"})(ye||(ye={}));var m;(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=""})(m||(m={}));var Io=new Map([...["abw"].map(t=>[t,m.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,m.AUDIO]),...["avi"].map(t=>[t,m.AVI]),...["chm","xhs"].map(t=>[t,m.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,m.CODE]),...["csv"].map(t=>[t,m.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,m.DITA]),...["epub"].map(t=>[t,m.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,m.EXCEL]),...["flac"].map(t=>[t,m.FLAC]),...["gif"].map(t=>[t,m.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,m.GZIP]),...["html","htm","xhtml"].map(t=>[t,m.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,m.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,m.JPEG]),...["json"].map(t=>[t,m.JSON]),...["m4a","m4p"].map(t=>[t,m.M4A]),...["mov","qt"].map(t=>[t,m.MOV]),...["mp3"].map(t=>[t,m.MP3]),...["mp4","m4v"].map(t=>[t,m.MP4]),...["ogg","oga"].map(t=>[t,m.OGG]),...["pdf","ps"].map(t=>[t,m.PDF]),...["png"].map(t=>[t,m.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,m.POWERPOINT]),...["rar"].map(t=>[t,m.RAR]),...["stp"].map(t=>[t,m.STP]),...["txt","rtf","md","mdown"].map(t=>[t,m.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,m.VIDEO]),...["wav"].map(t=>[t,m.WAV]),...["wma"].map(t=>[t,m.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,m.WORD]),...["xml","xsl","rdf"].map(t=>[t,m.XML]),...["yaml","yml","x-yaml"].map(t=>[t,m.YAML]),...["zip"].map(t=>[t,m.ZIP])]),If=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 pn(t,e){var r,i,n,s;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[o,a]=(((r=If.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(s=(n=(i=Io.get(a))!==null&&i!==void 0?i:Io.get(e))!==null&&n!==void 0?n:Io.get(o))!==null&&s!==void 0?s:m.UNKNOWN}var Bx={[m.ABW]:"#91ABC6",[m.AUDIO]:"#1795E3",[m.AVI]:"#E63324",[m.CHM]:"#71C3EB",[m.CODE]:"#71C3EB",[m.CSV]:"#1F7345",[m.DITA]:"#71C3EB",[m.EPUB]:"#85B926",[m.EXCEL]:"#1F7345",[m.FLAC]:"#1795E3",[m.GIF]:"#59B031",[m.GZIP]:"#F8AB36",[m.HTML]:"#71C3EB",[m.IMAGE]:"#59B031",[m.JPEG]:"#59B031",[m.JSON]:"#71C3EB",[m.M4A]:"#1795E3",[m.MOV]:"#E63324",[m.MP3]:"#1795E3",[m.MP4]:"#E63324",[m.OGG]:"#1795E3",[m.PDF]:"#E44948",[m.PNG]:"#59B031",[m.POWERPOINT]:"#B54A2B",[m.RAR]:"#F8AB36",[m.STP]:"#3764B1",[m.TEXT]:"#3162AB",[m.UNKNOWN]:"#999999",[m.VIDEO]:"#E63324",[m.WAV]:"#1795E3",[m.WMA]:"#1795E3",[m.WORD]:"#3162AB",[m.XML]:"#71C3EB",[m.YAML]:"#71C3EB",[m.ZIP]:"#F8AB36"};var 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},ee=class extends Mu.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Qi.nothing}render(){let e=this.variant&&Object.values(Ue).includes(this.variant)?this.variant:Ue.fluid_topics,r=e!==Ue.material||!!this.value;return Qi.html`
|
|
332
332
|
<i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
|
|
333
|
-
${(0,
|
|
333
|
+
${(0,Nu.unsafeHTML)(this.resolvedIcon)}
|
|
334
334
|
<slot ?hidden=${r}></slot>
|
|
335
335
|
</i>
|
|
336
|
-
`}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.getTextContent();switch(this.variant){case
|
|
336
|
+
`}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.getTextContent();switch(this.variant){case Ue.file_format:this.resolvedIcon=(e=m[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Ue.material:this.resolvedIcon=this.value||Qi.nothing;break;default:this.resolvedIcon=(r=ye[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};ee.elementDefinitions={};ee.styles=Pu;Yi([(0,or.property)()],ee.prototype,"variant",void 0);Yi([(0,or.property)()],ee.prototype,"value",void 0);Yi([(0,or.property)({reflect:!0,attribute:"aria-hidden"})],ee.prototype,"ariaHidden",void 0);Yi([(0,or.state)()],ee.prototype,"resolvedIcon",void 0);Yi([(0,or.query)("slot")],ee.prototype,"slottedContent",void 0);var Bu=c(f());var Fu={"ft-icon":ee};(0,Bu.customElements)(Fu);var Uu=c(v()),Xi=c(f()),$r={color:Xi.FtCssVariableFactory.extend("--ft-loader-color","",Xi.designSystemVariables.colorPrimary),size:Xi.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},zu=Uu.css`
|
|
337
337
|
:host {
|
|
338
338
|
line-height: 0;
|
|
339
339
|
}
|
|
@@ -342,8 +342,8 @@
|
|
|
342
342
|
display: inline-block;
|
|
343
343
|
position: relative;
|
|
344
344
|
|
|
345
|
-
width: ${
|
|
346
|
-
height: ${
|
|
345
|
+
width: ${$r.size};
|
|
346
|
+
height: ${$r.size};
|
|
347
347
|
}
|
|
348
348
|
|
|
349
349
|
.ft-loader div {
|
|
@@ -352,7 +352,7 @@
|
|
|
352
352
|
width: 25%;
|
|
353
353
|
height: 25%;
|
|
354
354
|
border-radius: 50%;
|
|
355
|
-
background: ${
|
|
355
|
+
background: ${$r.color};
|
|
356
356
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
357
357
|
}
|
|
358
358
|
|
|
@@ -399,17 +399,17 @@
|
|
|
399
399
|
transform: translate(0, 0);
|
|
400
400
|
}
|
|
401
401
|
100% {
|
|
402
|
-
transform: translate(calc(0.35 * ${
|
|
402
|
+
transform: translate(calc(0.35 * ${$r.size}), 0);
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
|
-
`;var
|
|
405
|
+
`;var Vu=c(v()),Hu=c(f());var Pr=class extends Hu.FtLitElement{render(){return Vu.html`
|
|
406
406
|
<div class="ft-loader">
|
|
407
407
|
<div></div>
|
|
408
408
|
<div></div>
|
|
409
409
|
<div></div>
|
|
410
410
|
<div></div>
|
|
411
411
|
</div>
|
|
412
|
-
`}};
|
|
412
|
+
`}};Pr.styles=zu;var qu=c(f());var ju={"ft-loader":Pr};(0,qu.customElements)(ju);var lr=c(v()),hn=c(Ze()),W=c(V());var ar=t=>t??ge;var Gu=c(v()),$=c(f());var Ku=$.FtCssVariableFactory.extend("--ft-button-color","",$.designSystemVariables.colorPrimary),k={backgroundColor:$.FtCssVariableFactory.extend("--ft-button-background-color","",$.designSystemVariables.colorSurface),borderRadius:$.FtCssVariableFactory.extend("--ft-button-border-radius","",$.designSystemVariables.borderRadiusL),color:Ku,fontSize:$.FtCssVariableFactory.extend("--ft-button-font-size","",Tt.fontSize),iconSize:$.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:$.FtCssVariableFactory.extend("--ft-button-ripple-color","",Ku),verticalPadding:$.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:$.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:$.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:$.FtCssVariableFactory.external($.designSystemVariables.colorOpacityDisabled,"Design system")},Wu=$.FtCssVariableFactory.extend("--ft-button-primary-color","",$.FtCssVariableFactory.extend("--ft-button-color","",$.designSystemVariables.colorOnPrimary)),Mo={backgroundColor:$.FtCssVariableFactory.extend("--ft-button-primary-background-color","",$.FtCssVariableFactory.extend("--ft-button-background-color","",$.designSystemVariables.colorPrimary)),color:Wu,rippleColor:$.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Wu)},Pt={borderRadius:$.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",$.FtCssVariableFactory.extend("--ft-button-border-radius","",$.designSystemVariables.borderRadiusM)),verticalPadding:$.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:$.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:$.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Qu=Gu.css`
|
|
413
413
|
:host {
|
|
414
414
|
display: inline-block;
|
|
415
415
|
max-width: 100%;
|
|
@@ -456,9 +456,9 @@
|
|
|
456
456
|
|
|
457
457
|
--button-internal-line-height: max(calc(${k.fontSize} + 2px), ${k.iconSize});
|
|
458
458
|
--button-internal-color: ${k.color};
|
|
459
|
-
${(0,$.setVariable)(
|
|
460
|
-
${(0,$.setVariable)(
|
|
461
|
-
${(0,$.setVariable)(
|
|
459
|
+
${(0,$.setVariable)(Be.size,k.iconSize)};
|
|
460
|
+
${(0,$.setVariable)(q.color,k.rippleColor)};
|
|
461
|
+
${(0,$.setVariable)(q.borderRadius,k.borderRadius)};
|
|
462
462
|
|
|
463
463
|
border-radius: ${k.borderRadius};
|
|
464
464
|
padding: ${k.verticalPadding} ${k.horizontalPadding};
|
|
@@ -472,13 +472,13 @@
|
|
|
472
472
|
}
|
|
473
473
|
|
|
474
474
|
.ft-button.ft-button--dense {
|
|
475
|
-
padding: ${
|
|
476
|
-
border-radius: ${
|
|
477
|
-
${(0,$.setVariable)(
|
|
475
|
+
padding: ${Pt.verticalPadding} ${Pt.horizontalPadding};
|
|
476
|
+
border-radius: ${Pt.borderRadius};
|
|
477
|
+
${(0,$.setVariable)(q.borderRadius,Pt.borderRadius)};
|
|
478
478
|
}
|
|
479
479
|
|
|
480
480
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
481
|
-
padding: calc(${
|
|
481
|
+
padding: calc(${Pt.verticalPadding} - 1px) calc(${Pt.horizontalPadding} - 1px);
|
|
482
482
|
}
|
|
483
483
|
|
|
484
484
|
.ft-button:not([disabled]):hover {
|
|
@@ -490,7 +490,7 @@
|
|
|
490
490
|
}
|
|
491
491
|
|
|
492
492
|
.ft-button--round.ft-button--dense {
|
|
493
|
-
border-radius: calc(var(--button-internal-line-height) / 2 + ${
|
|
493
|
+
border-radius: calc(var(--button-internal-line-height) / 2 + ${Pt.verticalPadding});
|
|
494
494
|
}
|
|
495
495
|
|
|
496
496
|
.ft-button[disabled] {
|
|
@@ -499,9 +499,9 @@
|
|
|
499
499
|
}
|
|
500
500
|
|
|
501
501
|
.ft-button.ft-button--primary {
|
|
502
|
-
background-color: ${
|
|
503
|
-
--button-internal-color: ${
|
|
504
|
-
${(0,$.setVariable)(
|
|
502
|
+
background-color: ${Mo.backgroundColor};
|
|
503
|
+
--button-internal-color: ${Mo.color};
|
|
504
|
+
${(0,$.setVariable)(q.color,Mo.rippleColor)};
|
|
505
505
|
}
|
|
506
506
|
|
|
507
507
|
.ft-button--label {
|
|
@@ -511,12 +511,12 @@
|
|
|
511
511
|
text-overflow: ellipsis;
|
|
512
512
|
display: block;
|
|
513
513
|
margin: 0 ${k.iconPadding};
|
|
514
|
-
${(0,$.setVariable)(
|
|
515
|
-
${(0,$.setVariable)(
|
|
514
|
+
${(0,$.setVariable)(Tt.fontSize,"1em")};
|
|
515
|
+
${(0,$.setVariable)(Tt.lineHeight,"var(--button-internal-line-height)")};
|
|
516
516
|
}
|
|
517
517
|
|
|
518
518
|
.ft-button--dense .ft-button--label {
|
|
519
|
-
margin: 0 ${
|
|
519
|
+
margin: 0 ${Pt.iconPadding};
|
|
520
520
|
}
|
|
521
521
|
|
|
522
522
|
.ft-button--label.ft-button--label-no-text {
|
|
@@ -534,8 +534,8 @@
|
|
|
534
534
|
}
|
|
535
535
|
|
|
536
536
|
.ft-button--dense .ft-button--label[hidden] + [part="icon"] {
|
|
537
|
-
margin: 0 calc(${
|
|
538
|
-
padding: 0 ${
|
|
537
|
+
margin: 0 calc(${Pt.horizontalPadding} * -1);
|
|
538
|
+
padding: 0 ${Pt.verticalPadding};
|
|
539
539
|
}
|
|
540
540
|
|
|
541
541
|
.ft-button:not(.ft-button--trailing-icon) [part="label"] {
|
|
@@ -543,55 +543,55 @@
|
|
|
543
543
|
}
|
|
544
544
|
|
|
545
545
|
ft-loader {
|
|
546
|
-
${(0,$.setVariable)(
|
|
547
|
-
${(0,$.setVariable)(
|
|
546
|
+
${(0,$.setVariable)($r.size,k.iconSize)};
|
|
547
|
+
${(0,$.setVariable)($r.color,"var(--button-internal-color)")};
|
|
548
548
|
}
|
|
549
|
-
`;var
|
|
549
|
+
`;var te=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},C=class t extends(0,Dt.toFtFormComponent)(Dt.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let n={"ft-button--label":!0,"ft-safari-ellipsis-fix":Dt.isSafari,"ft-button--label-no-text":!this.hasTextContent},s=lr.html`
|
|
550
550
|
<ft-ripple part="ripple"
|
|
551
551
|
?disabled=${this.isDisabled()}
|
|
552
552
|
?activated=${this.activated}
|
|
553
553
|
></ft-ripple>
|
|
554
554
|
<ft-typography part="label"
|
|
555
|
-
variant="${
|
|
555
|
+
variant="${ce.button}"
|
|
556
556
|
element="span"
|
|
557
|
-
class="${(0,
|
|
557
|
+
class="${(0,hn.classMap)(n)}">
|
|
558
558
|
<slot></slot>
|
|
559
559
|
</ft-typography>
|
|
560
560
|
${this.resolveIcon()}
|
|
561
|
-
`,
|
|
562
|
-
<a href="${
|
|
561
|
+
`,o=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(o?lr.html`
|
|
562
|
+
<a href="${o}"
|
|
563
563
|
target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
|
|
564
564
|
part="button"
|
|
565
|
-
class="${(0,
|
|
566
|
-
aria-label="${
|
|
565
|
+
class="${(0,hn.classMap)(this.buttonClasses)}"
|
|
566
|
+
aria-label="${ar((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
|
|
567
567
|
?disabled=${this.isDisabled()}>
|
|
568
|
-
${
|
|
568
|
+
${s}
|
|
569
569
|
</a>
|
|
570
|
-
`:
|
|
570
|
+
`:lr.html`
|
|
571
571
|
<button part="button"
|
|
572
|
-
class="${(0,
|
|
573
|
-
aria-label="${
|
|
574
|
-
aria-haspopup="${
|
|
575
|
-
aria-pressed="${
|
|
572
|
+
class="${(0,hn.classMap)(this.buttonClasses)}"
|
|
573
|
+
aria-label="${ar((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
|
|
574
|
+
aria-haspopup="${ar(this.ariaHasPopup)}"
|
|
575
|
+
aria-pressed="${ar(this.ariaPressed)}"
|
|
576
576
|
?disabled=${this.isDisabled()}>
|
|
577
|
-
${
|
|
577
|
+
${s}
|
|
578
578
|
</button>
|
|
579
|
-
`)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?
|
|
579
|
+
`)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?lr.html`
|
|
580
580
|
<ft-tooltip part="tooltip"
|
|
581
581
|
text="${this.label}"
|
|
582
582
|
position="${this.tooltipPosition}">
|
|
583
583
|
${e}
|
|
584
584
|
</ft-tooltip>
|
|
585
|
-
`:e}resolveIcon(){return this.loading?
|
|
586
|
-
<ft-loader part="loader icon"></ft-loader> `:this.icon?
|
|
585
|
+
`:e}resolveIcon(){return this.loading?lr.html`
|
|
586
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?lr.html`
|
|
587
587
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
588
|
-
`:
|
|
588
|
+
`:lr.html`
|
|
589
589
|
<slot part="icon" name="icon"></slot>
|
|
590
|
-
`}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)}};
|
|
590
|
+
`}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)}};C.elementDefinitions={"ft-ripple":L,"ft-tooltip":he,"ft-icon":ee,"ft-loader":Pr,"ft-typography":K};C.styles=[Dt.safariEllipsisFix,Qu,Dt.noTextSelect];C.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r.host?r.host.hasTextContent=e.boundingClientRect.width>0:C.labelsObserver.unobserve(e.target)}});te([(0,W.property)({type:Boolean})],C.prototype,"primary",void 0);te([(0,W.property)({type:Boolean})],C.prototype,"outlined",void 0);te([(0,W.property)({type:Boolean})],C.prototype,"dense",void 0);te([(0,W.property)({type:Boolean})],C.prototype,"round",void 0);te([(0,W.property)({type:Boolean})],C.prototype,"disabled",void 0);te([(0,W.property)()],C.prototype,"icon",void 0);te([(0,W.property)()],C.prototype,"iconVariant",void 0);te([(0,W.property)({type:Boolean})],C.prototype,"trailingIcon",void 0);te([(0,W.property)()],C.prototype,"label",void 0);te([(0,W.property)()],C.prototype,"type",void 0);te([(0,W.property)()],C.prototype,"href",void 0);te([(0,W.property)()],C.prototype,"target",void 0);te([(0,W.property)({type:Boolean})],C.prototype,"loading",void 0);te([(0,W.property)({attribute:"aria-label"})],C.prototype,"ariaLabel",void 0);te([(0,W.property)()],C.prototype,"ariaHasPopup",void 0);te([(0,W.property)({attribute:"aria-pressed"})],C.prototype,"ariaPressed",void 0);te([(0,W.property)()],C.prototype,"tooltipPosition",void 0);te([(0,W.property)({type:Boolean})],C.prototype,"hideTooltip",void 0);te([(0,W.property)({type:Boolean})],C.prototype,"forceTooltip",void 0);te([(0,W.property)({type:Boolean})],C.prototype,"activated",void 0);te([(0,W.query)(".ft-button")],C.prototype,"button",void 0);te([(0,W.query)(".ft-button--label")],C.prototype,"labelContainer",void 0);te([(0,W.state)()],C.prototype,"hasTextContent",void 0);te([(0,W.query)(".ft-button--label slot")],C.prototype,"slottedContent",void 0);te([(0,W.query)("[part=tooltip]")],C.prototype,"tooltip",void 0);var Xu=c(f());var Yu={"ft-button":C};(0,Xu.customElements)(Yu);var Se={height:G.FtCssVariableFactory.create("--ft-search-input-height","","SIZE","38px"),borderRadius:G.FtCssVariableFactory.extend("--ft-search-input-border-radius","",G.designSystemVariables.borderRadiusS),desktopFiltersHeight:G.FtCssVariableFactory.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:G.FtCssVariableFactory.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:G.FtCssVariableFactory.extend("--ft-search-input-background-color","",G.designSystemVariables.colorSurface),colorOnSurface:G.FtCssVariableFactory.extend("--ft-search-input-color","",G.designSystemVariables.colorOnSurface),colorOnSurfaceMedium:G.FtCssVariableFactory.extend("--ft-search-input-placeholder-color","",G.designSystemVariables.colorOnSurfaceMedium),colorOutline:G.FtCssVariableFactory.extend("--ft-search-input-outline-color","",G.designSystemVariables.colorOutline),elevation02:G.FtCssVariableFactory.extend("--ft-search-input-elevation","",G.designSystemVariables.elevation02),focusOutlineColor:G.FtCssVariableFactory.extend("--ft-search-input-focused-outline-color","",G.designSystemVariables.colorPrimary),buttonColor:G.FtCssVariableFactory.extend("--ft-search-input-button-color","",G.designSystemVariables.colorPrimary),buttonRippleColor:G.FtCssVariableFactory.extend("--ft-search-input-button-ripple-color","",G.designSystemVariables.colorPrimary)},Ju=Zu.css`
|
|
591
591
|
* {
|
|
592
592
|
box-sizing: border-box;
|
|
593
|
-
${(0,
|
|
594
|
-
${(0,
|
|
593
|
+
${(0,G.setVariable)(k.color,Se.buttonColor)};
|
|
594
|
+
${(0,G.setVariable)(k.rippleColor,Se.buttonRippleColor)};
|
|
595
595
|
}
|
|
596
596
|
|
|
597
597
|
.ft-search-input {
|
|
@@ -599,11 +599,11 @@
|
|
|
599
599
|
display: flex;
|
|
600
600
|
flex-direction: row;
|
|
601
601
|
align-items: center;
|
|
602
|
-
height: ${
|
|
602
|
+
height: ${Se.height};
|
|
603
603
|
|
|
604
|
-
background: ${
|
|
605
|
-
border: 1px solid ${
|
|
606
|
-
border-radius: ${
|
|
604
|
+
background: ${Se.colorSurface};
|
|
605
|
+
border: 1px solid ${Se.colorOutline};
|
|
606
|
+
border-radius: ${Se.borderRadius};
|
|
607
607
|
}
|
|
608
608
|
|
|
609
609
|
.ft-search-input--input-container {
|
|
@@ -618,11 +618,11 @@
|
|
|
618
618
|
width: 100%;
|
|
619
619
|
display: grid;
|
|
620
620
|
padding: 0 8px;
|
|
621
|
-
border-radius: ${
|
|
621
|
+
border-radius: ${Se.borderRadius};
|
|
622
622
|
}
|
|
623
623
|
|
|
624
624
|
.ft-search-input--input-container:focus-within .ft-search-input--input-outline {
|
|
625
|
-
outline: 2px solid ${
|
|
625
|
+
outline: 2px solid ${Se.focusOutlineColor};
|
|
626
626
|
}
|
|
627
627
|
|
|
628
628
|
.ft-search-input--input {
|
|
@@ -630,12 +630,12 @@
|
|
|
630
630
|
width: 100%;
|
|
631
631
|
border: none;
|
|
632
632
|
background-color: transparent;
|
|
633
|
-
color: ${
|
|
633
|
+
color: ${Se.colorOnSurface};
|
|
634
634
|
outline: none;
|
|
635
635
|
}
|
|
636
636
|
|
|
637
637
|
.ft-search-input--input::placeholder {
|
|
638
|
-
color: ${
|
|
638
|
+
color: ${Se.colorOnSurfaceMedium};
|
|
639
639
|
}
|
|
640
640
|
|
|
641
641
|
.ft-search-input--actions {
|
|
@@ -649,7 +649,7 @@
|
|
|
649
649
|
.ft-search-input > ft-button,
|
|
650
650
|
.ft-search-input--actions ft-button {
|
|
651
651
|
flex-shrink: 0;
|
|
652
|
-
${(0,
|
|
652
|
+
${(0,G.setVariable)(k.backgroundColor,"transparent")};
|
|
653
653
|
}
|
|
654
654
|
|
|
655
655
|
.ft-search-input .ft-search-input--launch-search,
|
|
@@ -659,9 +659,9 @@
|
|
|
659
659
|
|
|
660
660
|
.ft-search-input--separator {
|
|
661
661
|
height: 20px;
|
|
662
|
-
border-right: 1px solid ${
|
|
662
|
+
border-right: 1px solid ${Se.colorOutline};
|
|
663
663
|
}
|
|
664
|
-
`;var
|
|
664
|
+
`;var pi=c(f()),Bo=c(V());var No;(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(No||(No={}));var Dr=c(f());var Mf=c(f());var fn=class t extends Event{constructor(){super(t.eventName)}};fn.eventName="search-context-clear-all-filters";var ed=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},Uo=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},td=Symbol("registerInterval"),Fo=Symbol("registerAttempts"),Nf=40,Ff=(0,pi.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(i){var n,s,o;super.willUpdate(i),i.has("neededSearchRequests")&&((n=this.stateManager)===null||n===void 0||n.unregisterComponent(this,(s=i.get("neededSearchRequests"))!==null&&s!==void 0?s:[]),(o=this.stateManager)===null||o===void 0||o.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Fo]=0,this.tryToRegisterToContext(),this[td]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Fo]>Nf?window.clearInterval(this[td]):(this[Fo]++,this.dispatchEvent(new Uo))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return ed([(0,Bo.state)()],e.prototype,"stateManager",void 0),ed([(0,Bo.state)({hasChanged:pi.hasChanged})],e.prototype,"neededSearchRequests",void 0),e}),mn=class extends Ff(pi.FtLitElementRedux){};var Qt=ln.build("designedSearchInput");var lt=c(V()),Hp=c(Ze());var Vp=c(f()),Vr=c(v());var Bp=c(v());var Up=c(f());var H=c(v()),B=c(V()),os=c(cr()),Y=c(f());var nd=c(v()),Ir=c(V()),gn=c(f());var mt;(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(mt||(mt={}));var id=c(v());var sd=id.css`
|
|
665
665
|
.ft-size-watcher--pixel {
|
|
666
666
|
width: 0;
|
|
667
667
|
height: 0;
|
|
@@ -680,11 +680,11 @@
|
|
|
680
680
|
.ft-size-watcher--local .ft-size-watcher--watcher {
|
|
681
681
|
width: 100%;
|
|
682
682
|
}
|
|
683
|
-
`;var
|
|
683
|
+
`;var Zi=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},zo=class extends CustomEvent{constructor(e,r){super("change",{detail:{size:e,category:r}})}},rt=class extends gn.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=mt.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new gn.Debouncer}render(){return nd.html`
|
|
684
684
|
<div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
|
|
685
685
|
<div class="ft-size-watcher--watcher"></div>
|
|
686
686
|
</div>
|
|
687
|
-
`}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=mt.S:this.size<976?this.category=mt.M:this.size<1024?this.category=mt.L:this.size<1440?this.category=mt.XL:this.category=mt.XXL,this.dispatchEvent(new
|
|
687
|
+
`}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=mt.S:this.size<976?this.category=mt.M:this.size<1024?this.category=mt.L:this.size<1440?this.category=mt.XL:this.category=mt.XXL,this.dispatchEvent(new zo(this.size,this.category)))},this.debounceTimeout)}};rt.elementDefinitions={};rt.styles=sd;Zi([(0,Ir.property)({type:Number})],rt.prototype,"debounceTimeout",void 0);Zi([(0,Ir.property)({type:Boolean})],rt.prototype,"local",void 0);Zi([(0,Ir.property)({type:Number,reflect:!0})],rt.prototype,"size",void 0);Zi([(0,Ir.property)({type:String,reflect:!0})],rt.prototype,"category",void 0);Zi([(0,Ir.query)(".ft-size-watcher--watcher")],rt.prototype,"watcher",void 0);var ad=c(f());var od={"ft-size-watcher":rt};(0,ad.customElements)(od);var Vo=c(f());function yn(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function ld(t){return yn(t).split("|").pop()}function cd(t){return yn(t).split("|").join(" > ")}function ud(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>ud(r,t.selected)),value:t.value}}function dd(t){return(0,Vo.flatDeep)(t.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]}).filter(e=>e.selected).map(e=>e.label)}function Ho(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>ud(e,!1))}}function pd(t){return(0,Vo.flatDeep)(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var hd=c(v()),Q=c(f());var Ji={buttonMoreColor:Q.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",Q.designSystemVariables.colorOnSurface),borderRadiusM:Q.FtCssVariableFactory.external(Q.designSystemVariables.borderRadiusM,"Design system"),colorOutline:Q.FtCssVariableFactory.external(Q.designSystemVariables.colorOutline,"Design system"),colorOnSurface:Q.FtCssVariableFactory.external(Q.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:Q.FtCssVariableFactory.external(Q.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:Q.FtCssVariableFactory.external(Q.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:Q.FtCssVariableFactory.external(Q.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:Q.FtCssVariableFactory.external(Q.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:Q.FtCssVariableFactory.external(xe.fontFamily,"Body2 typography"),fontSize:Q.FtCssVariableFactory.external(xe.fontSize,"Body2 typography"),fontWeight:Q.FtCssVariableFactory.external(xe.fontWeight,"Body2 typography"),letterSpacing:Q.FtCssVariableFactory.external(xe.letterSpacing,"Body2 typography"),lineHeight:Q.FtCssVariableFactory.external(xe.lineHeight,"Body2 typography"),textTransform:Q.FtCssVariableFactory.external(xe.textTransform,"Body2 typography")},fd=hd.css`
|
|
688
688
|
.ft-filter-level--container {
|
|
689
689
|
display: flex;
|
|
690
690
|
flex-direction: column;
|
|
@@ -699,14 +699,14 @@
|
|
|
699
699
|
flex-shrink: 0;
|
|
700
700
|
text-decoration: none;
|
|
701
701
|
position: relative;
|
|
702
|
-
border-radius: ${
|
|
702
|
+
border-radius: ${Ji.borderRadiusM};
|
|
703
703
|
overflow: hidden;
|
|
704
704
|
display: flex;
|
|
705
705
|
align-items: center;
|
|
706
706
|
padding: 4px 4px;
|
|
707
707
|
gap: 4px;
|
|
708
708
|
cursor: pointer;
|
|
709
|
-
color: ${
|
|
709
|
+
color: ${Ji.colorOnSurface};
|
|
710
710
|
}
|
|
711
711
|
|
|
712
712
|
.ft-filter-level--go-back:focus {
|
|
@@ -735,11 +735,11 @@
|
|
|
735
735
|
}
|
|
736
736
|
|
|
737
737
|
ft-button {
|
|
738
|
-
${(0,
|
|
738
|
+
${(0,Q.setVariable)(k.color,Ji.colorOnSurface)};
|
|
739
739
|
}
|
|
740
740
|
|
|
741
741
|
ft-button.ft-filter-level--display-more {
|
|
742
|
-
${(0,
|
|
742
|
+
${(0,Q.setVariable)(k.color,Ji.buttonMoreColor)};
|
|
743
743
|
}
|
|
744
744
|
|
|
745
745
|
ft-radio, ft-checkbox {
|
|
@@ -753,17 +753,17 @@
|
|
|
753
753
|
|
|
754
754
|
.ft-filter-level--no-values {
|
|
755
755
|
margin: 10px 0;
|
|
756
|
-
color: ${
|
|
756
|
+
color: ${Ji.colorOnSurfaceMedium};
|
|
757
757
|
}
|
|
758
|
-
`;var
|
|
758
|
+
`;var Nr=c(v()),X=c(V()),fe=c(f());var nt=c(v()),Ee=c(V()),$d=c(cr()),Ye=c(f());var bn=c(v()),At=c(V()),yd=c(f()),bd=c(Ze());var _e=c(f()),md=c(v());var it={textColor:_e.FtCssVariableFactory.extend("--ft-checkbox-text-color","",_e.designSystemVariables.colorOnSurfaceHigh),fontSize:_e.FtCssVariableFactory.extend("--ft-checkbox-font-size","",b.fontSize),activeColor:_e.FtCssVariableFactory.extend("--ft-checkbox-active-color","",_e.designSystemVariables.colorPrimary),checkColor:_e.FtCssVariableFactory.extend("--ft-checkbox-check-color","",_e.designSystemVariables.colorOnPrimary),borderColor:_e.FtCssVariableFactory.extend("--ft-checkbox-border-color","",_e.designSystemVariables.colorOnSurfaceMedium),disabledColor:_e.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",_e.designSystemVariables.colorOnSurfaceDisabled),errorColor:_e.FtCssVariableFactory.extend("--ft-checkbox-error-color","",_e.designSystemVariables.colorError)},gd=md.css`
|
|
759
759
|
* {
|
|
760
760
|
box-sizing: border-box;
|
|
761
761
|
}
|
|
762
762
|
|
|
763
763
|
.ft-checkbox {
|
|
764
764
|
box-sizing: border-box;
|
|
765
|
-
color: ${
|
|
766
|
-
font-size: ${
|
|
765
|
+
color: ${it.textColor};
|
|
766
|
+
font-size: ${it.fontSize};
|
|
767
767
|
|
|
768
768
|
display: inline-flex;
|
|
769
769
|
align-items: center;
|
|
@@ -771,7 +771,7 @@
|
|
|
771
771
|
}
|
|
772
772
|
|
|
773
773
|
.ft-checkbox--disabled {
|
|
774
|
-
color: ${
|
|
774
|
+
color: ${it.disabledColor};
|
|
775
775
|
}
|
|
776
776
|
|
|
777
777
|
input {
|
|
@@ -795,26 +795,26 @@
|
|
|
795
795
|
|
|
796
796
|
.ft-checkbox--box {
|
|
797
797
|
display: flex;
|
|
798
|
-
border: 2px solid ${
|
|
798
|
+
border: 2px solid ${it.borderColor};
|
|
799
799
|
border-radius: 2px;
|
|
800
800
|
|
|
801
801
|
width: 18px;
|
|
802
802
|
height: 18px;
|
|
803
803
|
|
|
804
|
-
color: ${
|
|
804
|
+
color: ${it.checkColor};
|
|
805
805
|
}
|
|
806
806
|
|
|
807
807
|
|
|
808
808
|
.ft-checkbox--checked .ft-checkbox--box,
|
|
809
809
|
.ft-checkbox--indeterminate .ft-checkbox--box {
|
|
810
|
-
border-color: ${
|
|
811
|
-
background-color: ${
|
|
810
|
+
border-color: ${it.activeColor};
|
|
811
|
+
background-color: ${it.activeColor};
|
|
812
812
|
}
|
|
813
813
|
|
|
814
814
|
.ft-checkbox--disabled .ft-checkbox--box {
|
|
815
|
-
border-color: ${
|
|
815
|
+
border-color: ${it.disabledColor};
|
|
816
816
|
background-color: transparent;
|
|
817
|
-
color: ${
|
|
817
|
+
color: ${it.disabledColor};
|
|
818
818
|
}
|
|
819
819
|
|
|
820
820
|
.ft-checkbox--checkmark {
|
|
@@ -835,20 +835,20 @@
|
|
|
835
835
|
}
|
|
836
836
|
|
|
837
837
|
.ft-checkbox.ft-checkbox--error {
|
|
838
|
-
color: ${
|
|
839
|
-
${(0,
|
|
838
|
+
color: ${it.errorColor};
|
|
839
|
+
${(0,_e.setVariable)(q.color,it.errorColor)};
|
|
840
840
|
|
|
841
841
|
.ft-checkbox--box {
|
|
842
|
-
border-color: ${
|
|
842
|
+
border-color: ${it.errorColor};
|
|
843
843
|
}
|
|
844
844
|
|
|
845
845
|
&.ft-checkbox--checked, &.ft-checkbox--indeterminate {
|
|
846
846
|
.ft-checkbox--box {
|
|
847
|
-
background-color: ${
|
|
847
|
+
background-color: ${it.errorColor};
|
|
848
848
|
}
|
|
849
849
|
}
|
|
850
850
|
}
|
|
851
|
-
`;var
|
|
851
|
+
`;var Yt=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},jo=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Re=class extends yd.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1}get checkboxClasses(){return{"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.indeterminate?!1:this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled}}renderBoxContainer(){return bn.html`
|
|
852
852
|
<div class="ft-checkbox--box-container" part="checkbox-box-container">
|
|
853
853
|
<ft-ripple part="checkbox-ripple"
|
|
854
854
|
?disabled=${this.disabled}
|
|
@@ -870,27 +870,27 @@
|
|
|
870
870
|
@change=${this.onChange}
|
|
871
871
|
>
|
|
872
872
|
</div>
|
|
873
|
-
`}render(){return
|
|
874
|
-
<label class="${(0,
|
|
873
|
+
`}render(){return bn.html`
|
|
874
|
+
<label class="${(0,bd.classMap)(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
|
|
875
875
|
${this.renderBoxContainer()}
|
|
876
|
-
<ft-typography variant="${
|
|
876
|
+
<ft-typography variant="${ce.body2}" part="checkbox-body">
|
|
877
877
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
878
878
|
</ft-typography>
|
|
879
879
|
</label>
|
|
880
|
-
`}renderBoxIcon(){return
|
|
880
|
+
`}renderBoxIcon(){return bn.html`
|
|
881
881
|
<svg class="ft-checkbox--checkmark" viewBox="0 0 24 24" part="checkbox-check" aria-hidden="true">
|
|
882
882
|
<path class="ft-checkbox--checkmark-path" fill="none"
|
|
883
883
|
d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
|
|
884
884
|
</svg>
|
|
885
|
-
`}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
|
|
885
|
+
`}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 jo(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)}};Re.elementDefinitions={"ft-ripple":L,"ft-typography":K};Re.styles=gd;Yt([(0,At.property)()],Re.prototype,"name",void 0);Yt([(0,At.property)()],Re.prototype,"value",void 0);Yt([(0,At.property)({type:Boolean,reflect:!0})],Re.prototype,"checked",void 0);Yt([(0,At.property)({type:Boolean})],Re.prototype,"indeterminate",void 0);Yt([(0,At.property)({type:Boolean})],Re.prototype,"disabled",void 0);Yt([(0,At.property)({type:Boolean})],Re.prototype,"error",void 0);Yt([(0,At.query)(".ft-checkbox")],Re.prototype,"container",void 0);Yt([(0,At.query)("ft-ripple")],Re.prototype,"ripple",void 0);Yt([(0,At.query)("input")],Re.prototype,"input",void 0);var xd=c(f());var vd={"ft-checkbox":Re};(0,xd.customElements)(vd);var Cd=c(v()),It=c(V()),Ad=c(f()),wd=c(Ze());var Sd=c(v()),Qe=c(f());var ur={textColor:Qe.FtCssVariableFactory.extend("--ft-radio-text-color","",Qe.designSystemVariables.colorOnSurfaceHigh),fontSize:Qe.FtCssVariableFactory.extend("--ft-radio-font-size","",b.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")},Ed=Sd.css`
|
|
886
886
|
* {
|
|
887
887
|
box-sizing: border-box;
|
|
888
888
|
}
|
|
889
889
|
|
|
890
890
|
.ft-radio {
|
|
891
891
|
box-sizing: border-box;
|
|
892
|
-
color: ${
|
|
893
|
-
font-size: ${
|
|
892
|
+
color: ${ur.textColor};
|
|
893
|
+
font-size: ${ur.fontSize};
|
|
894
894
|
|
|
895
895
|
display: inline-flex;
|
|
896
896
|
align-items: center;
|
|
@@ -898,7 +898,7 @@
|
|
|
898
898
|
}
|
|
899
899
|
|
|
900
900
|
.ft-radio--disabled {
|
|
901
|
-
color: ${
|
|
901
|
+
color: ${ur.colorOnSurfaceDisabled};
|
|
902
902
|
}
|
|
903
903
|
|
|
904
904
|
input {
|
|
@@ -921,7 +921,7 @@
|
|
|
921
921
|
}
|
|
922
922
|
|
|
923
923
|
.ft-radio--box {
|
|
924
|
-
border: 2px solid ${
|
|
924
|
+
border: 2px solid ${ur.borderColor};
|
|
925
925
|
border-radius: 50%;
|
|
926
926
|
|
|
927
927
|
display: flex;
|
|
@@ -934,7 +934,7 @@
|
|
|
934
934
|
|
|
935
935
|
.ft-radio--box:after {
|
|
936
936
|
content: " ";
|
|
937
|
-
background-color: ${
|
|
937
|
+
background-color: ${ur.colorPrimary};
|
|
938
938
|
|
|
939
939
|
border-radius: 50%;
|
|
940
940
|
|
|
@@ -946,7 +946,7 @@
|
|
|
946
946
|
}
|
|
947
947
|
|
|
948
948
|
.ft-radio--checked .ft-radio--box {
|
|
949
|
-
border-color: ${
|
|
949
|
+
border-color: ${ur.colorPrimary};
|
|
950
950
|
}
|
|
951
951
|
|
|
952
952
|
|
|
@@ -955,24 +955,24 @@
|
|
|
955
955
|
}
|
|
956
956
|
|
|
957
957
|
.ft-radio--disabled .ft-radio--box {
|
|
958
|
-
border-color: ${
|
|
958
|
+
border-color: ${ur.colorOnSurfaceDisabled};
|
|
959
959
|
background-color: transparent;
|
|
960
960
|
}
|
|
961
961
|
|
|
962
962
|
.ft-radio--disabled .ft-radio--box:after {
|
|
963
|
-
background-color: ${
|
|
963
|
+
background-color: ${ur.colorOnSurfaceDisabled};
|
|
964
964
|
}
|
|
965
965
|
|
|
966
966
|
.ft-radio:has(:focus-visible) {
|
|
967
|
-
outline: 2px solid ${
|
|
967
|
+
outline: 2px solid ${Qe.designSystemVariables.colorPrimary};
|
|
968
968
|
outline-offset: -2px;
|
|
969
969
|
}
|
|
970
970
|
|
|
971
971
|
.ft-radio ft-typography {
|
|
972
972
|
padding-right: 2px;
|
|
973
973
|
}
|
|
974
|
-
`;var
|
|
975
|
-
<div class="${(0,
|
|
974
|
+
`;var dr=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},vn=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},Ce=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 Cd.html`
|
|
975
|
+
<div class="${(0,wd.classMap)(this.radioClasses)}"
|
|
976
976
|
@click=${this.onClick}>
|
|
977
977
|
<div class="ft-radio--box-container">
|
|
978
978
|
<ft-ripple
|
|
@@ -992,12 +992,12 @@
|
|
|
992
992
|
>
|
|
993
993
|
</div>
|
|
994
994
|
<label for="radio-button" inert>
|
|
995
|
-
<ft-typography variant="${
|
|
995
|
+
<ft-typography variant="${ce.body2}">
|
|
996
996
|
<slot></slot>
|
|
997
997
|
</ft-typography>
|
|
998
998
|
</label>
|
|
999
999
|
</div>
|
|
1000
|
-
`}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
|
|
1000
|
+
`}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 vn(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 vn(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())}};Ce.elementDefinitions={"ft-ripple":L,"ft-typography":K};Ce.styles=Ed;dr([(0,It.property)()],Ce.prototype,"name",void 0);dr([(0,It.property)()],Ce.prototype,"value",void 0);dr([(0,It.property)({type:Boolean,reflect:!0})],Ce.prototype,"checked",void 0);dr([(0,It.property)({attribute:"aria-checked",reflect:!0})],Ce.prototype,"ariaChecked",void 0);dr([(0,It.property)({type:Boolean})],Ce.prototype,"disabled",void 0);dr([(0,It.query)(".ft-radio")],Ce.prototype,"container",void 0);dr([(0,It.query)("ft-ripple")],Ce.prototype,"ripple",void 0);dr([(0,It.query)("input")],Ce.prototype,"input",void 0);var Rd=c(f()),pr=c(V()),Td=c(v());var Od=c(v());var _d=Od.css`
|
|
1001
1001
|
:host {
|
|
1002
1002
|
display: block;
|
|
1003
1003
|
}
|
|
@@ -1005,12 +1005,12 @@
|
|
|
1005
1005
|
:host(:focus-visible) {
|
|
1006
1006
|
outline: none;
|
|
1007
1007
|
}
|
|
1008
|
-
`;var
|
|
1008
|
+
`;var es=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},st=class extends Rd.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 Td.html`
|
|
1009
1009
|
<slot @slotchange=${this.onSlotChange}
|
|
1010
1010
|
@change=${this.onChange}
|
|
1011
1011
|
@keydown=${this.onKeyDown}
|
|
1012
1012
|
></slot>
|
|
1013
|
-
`}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()}};
|
|
1013
|
+
`}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=_d;es([(0,pr.property)()],st.prototype,"name",void 0);es([(0,pr.property)({reflect:!0,attribute:"role"})],st.prototype,"role",void 0);es([(0,pr.property)({reflect:!0,attribute:"aria-labelledby"})],st.prototype,"ariaLabelledBy",void 0);es([(0,pr.queryAssignedElements)()],st.prototype,"assignedElements",void 0);es([(0,pr.state)()],st.prototype,"currentSelectedIndex",void 0);var Ld=c(f());var kd={"ft-radio":Ce,"ft-radio-group":st};(0,Ld.customElements)(kd);var Te=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},qo={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},oe=class extends(0,Ye.withAnalytics)(di((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.moreValuesButtonLabel="More",this.displayedValuesLimit=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.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,r;return(r=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(e){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${e}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(e){super.willUpdate(e),(e.has("options")||e.has("hideSelectedOptions")||e.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(r=>!r.selected)),this.filter&&(e=e.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=e}render(){let e=this.filteredOptions.slice(0,this.limit);return nt.html`
|
|
1014
1014
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
1015
1015
|
${this.parent==null?null:nt.html`
|
|
1016
1016
|
<div tabindex="0"
|
|
@@ -1023,15 +1023,15 @@
|
|
|
1023
1023
|
@click=${this.goBackOnClick}>
|
|
1024
1024
|
<ft-ripple></ft-ripple>
|
|
1025
1025
|
<ft-icon>thin_arrow_left</ft-icon>
|
|
1026
|
-
<ft-typography variant="${
|
|
1026
|
+
<ft-typography variant="${ce.body2}">${this.parent.label}</ft-typography>
|
|
1027
1027
|
</div>
|
|
1028
1028
|
`}
|
|
1029
1029
|
${this.filteredOptions.length===0&&this.noValuesLabel?nt.html`
|
|
1030
|
-
<ft-typography class="ft-filter-level--no-values" element="span" variant="${
|
|
1030
|
+
<ft-typography class="ft-filter-level--no-values" element="span" variant="${ce.body2}">
|
|
1031
1031
|
${this.noValuesLabel}
|
|
1032
1032
|
</ft-typography>
|
|
1033
1033
|
`:nt.nothing}
|
|
1034
|
-
${(0
|
|
1034
|
+
${(0,$d.repeat)(e,r=>r.value,r=>{var i;return nt.html`
|
|
1035
1035
|
<div class="ft-filter-level--option" part="options" tabindex="-1">
|
|
1036
1036
|
${this.multivalued?this.buildMultiValuedOption(r):this.buildMonoValuedOption(r)}
|
|
1037
1037
|
${this.preventNavigation||r.selected||((i=r.subOptions)!==null&&i!==void 0?i:[]).length===0?nt.nothing:nt.html`
|
|
@@ -1063,7 +1063,7 @@
|
|
|
1063
1063
|
data-value="${e.value}"
|
|
1064
1064
|
.checked=${e.selected}
|
|
1065
1065
|
.disabled=${this.disabled}
|
|
1066
|
-
.indeterminate=${(0,
|
|
1066
|
+
.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)}
|
|
1067
1067
|
@change=${i=>this.optionsChanged(i,e)}>
|
|
1068
1068
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1069
1069
|
</ft-checkbox>
|
|
@@ -1078,7 +1078,7 @@
|
|
|
1078
1078
|
@change=${r=>this.optionsChanged(r,e)}>
|
|
1079
1079
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1080
1080
|
</ft-radio>
|
|
1081
|
-
`}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)})}};oe.elementDefinitions={"ft-button":
|
|
1081
|
+
`}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)})}};oe.elementDefinitions={"ft-button":C,"ft-ripple":L,"ft-typography":K,"ft-checkbox":Re,"ft-icon":ee,"ft-radio":Ce};oe.styles=fd;Te([(0,Ee.property)({type:String})],oe.prototype,"filterId",void 0);Te([(0,Ee.property)({type:Object})],oe.prototype,"parent",void 0);Te([(0,Ee.property)({type:Array,hasChanged:Ye.hasChanged})],oe.prototype,"options",void 0);Te([(0,Ee.property)({type:Boolean})],oe.prototype,"multivalued",void 0);Te([(0,Ee.property)({type:Boolean})],oe.prototype,"disabled",void 0);Te([(0,Ee.property)({type:Boolean})],oe.prototype,"hideSelectedOptions",void 0);Te([(0,Ee.property)({type:Boolean})],oe.prototype,"displayCount",void 0);Te([(0,Ee.property)({type:Boolean})],oe.prototype,"preventNavigation",void 0);Te([(0,Ee.property)({type:String})],oe.prototype,"filter",void 0);Te([(0,Ee.property)({type:String})],oe.prototype,"moreValuesButtonLabel",void 0);Te([(0,Ee.property)({type:String})],oe.prototype,"noValuesLabel",void 0);Te([(0,Ee.property)()],oe.prototype,"filteredOptionsNumberAriaNotification",void 0);Te([(0,Ye.numberProperty)()],oe.prototype,"displayedValuesLimit",void 0);Te([(0,Ee.query)(".ft-filter-level--container")],oe.prototype,"container",void 0);Te([(0,Ee.state)()],oe.prototype,"radios",void 0);Te([(0,Ee.state)()],oe.prototype,"displayedPages",void 0);Te([(0,Ee.state)()],oe.prototype,"filteredOptions",void 0);var Id=c(v()),ot=c(V()),Mr=c(f());var Md=c(Ze());var Pd=c(v()),wt=c(f());var ze={buttonsColor:wt.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",wt.designSystemVariables.colorPrimary),buttonsZIndex:wt.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:wt.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:wt.FtCssVariableFactory.external(wt.designSystemVariables.colorSurface,"Design system")},Dd=Pd.css`
|
|
1082
1082
|
.ft-snap-scroll {
|
|
1083
1083
|
box-sizing: border-box;
|
|
1084
1084
|
position: relative;
|
|
@@ -1113,7 +1113,7 @@
|
|
|
1113
1113
|
flex-wrap: nowrap;
|
|
1114
1114
|
align-items: flex-start;
|
|
1115
1115
|
justify-content: flex-start;
|
|
1116
|
-
gap: ${
|
|
1116
|
+
gap: ${ze.gap};
|
|
1117
1117
|
}
|
|
1118
1118
|
|
|
1119
1119
|
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
|
|
@@ -1156,11 +1156,11 @@
|
|
|
1156
1156
|
.ft-snap-scroll--next {
|
|
1157
1157
|
position: absolute;
|
|
1158
1158
|
display: flex;
|
|
1159
|
-
z-index: ${
|
|
1159
|
+
z-index: ${ze.buttonsZIndex};
|
|
1160
1160
|
opacity: 1;
|
|
1161
1161
|
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
1162
|
-
${(0,
|
|
1163
|
-
${(0,
|
|
1162
|
+
${(0,wt.setVariable)(k.backgroundColor,"transparent")};
|
|
1163
|
+
${(0,wt.setVariable)(k.color,ze.buttonsColor)};
|
|
1164
1164
|
}
|
|
1165
1165
|
|
|
1166
1166
|
.ft-snap-scroll--previous[hidden],
|
|
@@ -1173,37 +1173,37 @@
|
|
|
1173
1173
|
top: 0;
|
|
1174
1174
|
left: -1px;
|
|
1175
1175
|
bottom: 0;
|
|
1176
|
-
background: linear-gradient(to right, ${
|
|
1176
|
+
background: linear-gradient(to right, ${ze.colorSurface} 50%, var(--snap-scroll-transparent-color));
|
|
1177
1177
|
}
|
|
1178
1178
|
|
|
1179
1179
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous {
|
|
1180
1180
|
top: -1px;
|
|
1181
1181
|
left: 0;
|
|
1182
1182
|
right: 0;
|
|
1183
|
-
background: linear-gradient(to bottom, ${
|
|
1183
|
+
background: linear-gradient(to bottom, ${ze.colorSurface} 50%, var(--snap-scroll-transparent-color));
|
|
1184
1184
|
}
|
|
1185
1185
|
|
|
1186
1186
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next {
|
|
1187
1187
|
top: 0;
|
|
1188
1188
|
right: -1px;
|
|
1189
1189
|
bottom: 0;
|
|
1190
|
-
background: linear-gradient(to left, ${
|
|
1190
|
+
background: linear-gradient(to left, ${ze.colorSurface} 50%, var(--snap-scroll-transparent-color));
|
|
1191
1191
|
}
|
|
1192
1192
|
|
|
1193
1193
|
.ft-snap-scroll--vertical .ft-snap-scroll--next {
|
|
1194
1194
|
left: 0;
|
|
1195
1195
|
right: 0;
|
|
1196
1196
|
bottom: -1px;
|
|
1197
|
-
background: linear-gradient(to top, ${
|
|
1197
|
+
background: linear-gradient(to top, ${ze.colorSurface} 50%, var(--snap-scroll-transparent-color));
|
|
1198
1198
|
}
|
|
1199
1199
|
|
|
1200
1200
|
.ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
|
|
1201
1201
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
|
|
1202
1202
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
|
|
1203
1203
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1204
|
-
background-color: ${
|
|
1204
|
+
background-color: ${ze.colorSurface};
|
|
1205
1205
|
}
|
|
1206
|
-
`;var Mt=function(t,e,r,i){var n=arguments.length,
|
|
1206
|
+
`;var Mt=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Ko=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},be=class extends Mr.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 Mr.Debouncer(200),this.updateScrollDebouncer=new Mr.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,Md.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":Mr.isSafari}),r=this.controls&&this.withScroll;return Id.html`
|
|
1207
1207
|
<div part="container" class="${e}">
|
|
1208
1208
|
<ft-button
|
|
1209
1209
|
class="ft-snap-scroll--previous"
|
|
@@ -1227,7 +1227,7 @@
|
|
|
1227
1227
|
@click=${this.next}
|
|
1228
1228
|
></ft-button>
|
|
1229
1229
|
</div>
|
|
1230
|
-
`}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
|
|
1230
|
+
`}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 Ko(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)}};be.elementDefinitions={"ft-button":C};be.styles=Dd;Mt([(0,ot.property)({type:Boolean})],be.prototype,"horizontal",void 0);Mt([(0,ot.property)({type:Boolean})],be.prototype,"hideScrollbar",void 0);Mt([(0,ot.property)({type:Boolean})],be.prototype,"controls",void 0);Mt([(0,ot.property)({type:Boolean})],be.prototype,"limitSize",void 0);Mt([(0,ot.state)()],be.prototype,"elements",void 0);Mt([(0,ot.state)()],be.prototype,"currentElement",void 0);Mt([(0,ot.state)()],be.prototype,"withScroll",void 0);Mt([(0,ot.state)()],be.prototype,"startReached",void 0);Mt([(0,ot.state)()],be.prototype,"endReached",void 0);Mt([(0,ot.query)(".ft-snap-scroll--content")],be.prototype,"contentSlot",void 0);var Fd=c(f());var Nd={"ft-snap-scroll":be};(0,Fd.customElements)(Nd);var Bd=c(v()),re=c(f());var Xe={colorOutline:re.FtCssVariableFactory.external(re.designSystemVariables.colorOutline,"Design system"),colorOnSurface:re.FtCssVariableFactory.external(re.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:re.FtCssVariableFactory.external(re.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:re.FtCssVariableFactory.external(re.designSystemVariables.colorPrimary,"Design system"),colorSurface:re.FtCssVariableFactory.external(re.designSystemVariables.colorSurface,"Design system"),transitionDuration:re.FtCssVariableFactory.external(re.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:re.FtCssVariableFactory.external(re.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:re.FtCssVariableFactory.extend("--ft-filter-label-color","",re.designSystemVariables.colorOnSurface),labelFontSize:re.FtCssVariableFactory.extend("--ft-filter-label-font-size","",b.fontSize,"16px")},Ud=[Jt,re.noTextInputDefaultClearButton,Bd.css`
|
|
1231
1231
|
:host {
|
|
1232
1232
|
display: flex;
|
|
1233
1233
|
max-height: 100%;
|
|
@@ -1255,7 +1255,7 @@
|
|
|
1255
1255
|
.ft-filter--header ft-button {
|
|
1256
1256
|
flex-shrink: 0;
|
|
1257
1257
|
margin-left: auto;
|
|
1258
|
-
${(0,
|
|
1258
|
+
${(0,re.setVariable)(k.iconSize,"18px")};
|
|
1259
1259
|
}
|
|
1260
1260
|
|
|
1261
1261
|
.filter-label {
|
|
@@ -1267,10 +1267,10 @@
|
|
|
1267
1267
|
flex-shrink: 1;
|
|
1268
1268
|
flex-grow: 1;
|
|
1269
1269
|
word-break: break-word;
|
|
1270
|
-
color: ${
|
|
1271
|
-
font-size: ${
|
|
1272
|
-
${(0,
|
|
1273
|
-
${(0,
|
|
1270
|
+
color: ${Xe.labelColor};
|
|
1271
|
+
font-size: ${Xe.labelFontSize};
|
|
1272
|
+
${(0,re.setVariable)(b.lineHeight,"22px")};
|
|
1273
|
+
${(0,re.setVariable)(b.fontWeight,"bold")};
|
|
1274
1274
|
}
|
|
1275
1275
|
|
|
1276
1276
|
.ft-filter--filter {
|
|
@@ -1281,8 +1281,8 @@
|
|
|
1281
1281
|
padding: 0 10px;
|
|
1282
1282
|
overflow: hidden;
|
|
1283
1283
|
height: 32px;
|
|
1284
|
-
transition: height ${
|
|
1285
|
-
margin ${
|
|
1284
|
+
transition: height ${Xe.transitionDuration} ${Xe.transitionTimingFunction},
|
|
1285
|
+
margin ${Xe.transitionDuration} ${Xe.transitionTimingFunction};
|
|
1286
1286
|
transition-delay: 500ms;
|
|
1287
1287
|
}
|
|
1288
1288
|
|
|
@@ -1295,15 +1295,15 @@
|
|
|
1295
1295
|
display: block;
|
|
1296
1296
|
width: 100%;
|
|
1297
1297
|
border-radius: 4px;
|
|
1298
|
-
border: 1px solid ${
|
|
1298
|
+
border: 1px solid ${Xe.colorOutline};
|
|
1299
1299
|
padding: 4px;
|
|
1300
|
-
background-color: ${
|
|
1301
|
-
color: ${
|
|
1302
|
-
outline-color: ${
|
|
1300
|
+
background-color: ${Xe.colorSurface};
|
|
1301
|
+
color: ${Xe.colorOnSurface};
|
|
1302
|
+
outline-color: ${Xe.colorPrimary};
|
|
1303
1303
|
}
|
|
1304
1304
|
|
|
1305
1305
|
input::placeholder {
|
|
1306
|
-
color: ${
|
|
1306
|
+
color: ${Xe.colorOnSurfaceMedium};
|
|
1307
1307
|
}
|
|
1308
1308
|
|
|
1309
1309
|
input:placeholder-shown {
|
|
@@ -1319,7 +1319,7 @@
|
|
|
1319
1319
|
}
|
|
1320
1320
|
|
|
1321
1321
|
.ft-filter--separator {
|
|
1322
|
-
border-top: 1px solid ${
|
|
1322
|
+
border-top: 1px solid ${Xe.colorOutline};
|
|
1323
1323
|
margin: 4px 10px;
|
|
1324
1324
|
}
|
|
1325
1325
|
|
|
@@ -1344,19 +1344,19 @@
|
|
|
1344
1344
|
slot:not([name]) {
|
|
1345
1345
|
display: none;
|
|
1346
1346
|
}
|
|
1347
|
-
`];var
|
|
1347
|
+
`];var ie=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Wo=class extends CustomEvent{constructor(e){super("change",{detail:e})}},z=class extends(0,fe.withAnalytics)(fe.FtLitElement,qo){constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new fe.Debouncer(300),this.changeDebouncer=new fe.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,fe.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,fe.flatDeep)(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(n=>n.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return Nr.html`
|
|
1348
1348
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1349
1349
|
part="container">
|
|
1350
|
-
${!this.label&&!e?null:
|
|
1350
|
+
${!this.label&&!e?null:Nr.html`
|
|
1351
1351
|
|
|
1352
1352
|
<div class="ft-filter--header" part="header">
|
|
1353
1353
|
<div class="filter-label" id="id-group-${this.id}">
|
|
1354
|
-
<ft-typography class="ft-filter--label" variant="${
|
|
1354
|
+
<ft-typography class="ft-filter--label" variant="${ce.overline}" part="label">
|
|
1355
1355
|
${this.label}
|
|
1356
1356
|
</ft-typography>
|
|
1357
1357
|
<slot name="label"></slot>
|
|
1358
1358
|
</div>
|
|
1359
|
-
${e&&!this.hideClearButton?
|
|
1359
|
+
${e&&!this.hideClearButton?Nr.html`
|
|
1360
1360
|
<ft-button icon="close"
|
|
1361
1361
|
aria-label="${this.clearButtonLabel+" "+this.label}"
|
|
1362
1362
|
dense
|
|
@@ -1384,8 +1384,8 @@
|
|
|
1384
1384
|
@slotchange=${this.updateOptionsFromSlot}
|
|
1385
1385
|
@option-change=${this.optionsChanged}></slot>
|
|
1386
1386
|
</div>
|
|
1387
|
-
`}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,o,
|
|
1388
|
-
${this.raiseSelectedOptions&&r.length>0?
|
|
1387
|
+
`}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 Nr.html`
|
|
1388
|
+
${this.raiseSelectedOptions&&r.length>0?Nr.html`
|
|
1389
1389
|
<ft-filter-level
|
|
1390
1390
|
filterId="${this.id}"
|
|
1391
1391
|
?multivalued=${this.multivalued}
|
|
@@ -1402,11 +1402,11 @@
|
|
|
1402
1402
|
`:null}
|
|
1403
1403
|
<ft-snap-scroll horizontal hideScrollbar
|
|
1404
1404
|
class="ft-filter--levels"
|
|
1405
|
-
@current-element-change=${
|
|
1405
|
+
@current-element-change=${s=>this.levelsScrollDebouncer.run(()=>{for(;s.detail.index<this.displayedLevels.length;)this.displayedLevels.pop();this.requestUpdate()})}>
|
|
1406
1406
|
${this.renderLevel(n,this.options)}
|
|
1407
|
-
${this.displayedLevels.map(
|
|
1407
|
+
${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)})}
|
|
1408
1408
|
</ft-snap-scroll>
|
|
1409
|
-
`}renderLevel(e,r,i){return
|
|
1409
|
+
`}renderLevel(e,r,i){return Nr.html`
|
|
1410
1410
|
<ft-filter-level
|
|
1411
1411
|
class="${e}"
|
|
1412
1412
|
filterId="${this.id}"
|
|
@@ -1428,21 +1428,21 @@
|
|
|
1428
1428
|
noValuesLabel="${this.noValuesLabel}"
|
|
1429
1429
|
.filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
|
|
1430
1430
|
></ft-filter-level>
|
|
1431
|
-
`}goBack(e){this.slideOut=e.detail.value,(0,
|
|
1431
|
+
`}goBack(e){this.slideOut=e.detail.value,(0,fe.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,(0,fe.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){(0,fe.waitUntil)(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let i=this.flatOptions.find(s=>s.value===e.detail.value);i.selected=!i.selected;let n=s=>{var o;s!==i&&(s.selected=!1),(o=s.subOptions)===null||o===void 0||o.forEach(n)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,fe.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new Wo(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};z.elementDefinitions={"ft-button":C,"ft-filter-level":oe,"ft-snap-scroll":be,"ft-typography":K};z.styles=Ud;ie([(0,X.property)({type:String})],z.prototype,"id",void 0);ie([(0,X.property)({type:String})],z.prototype,"label",void 0);ie([(0,X.property)({type:String})],z.prototype,"filterPlaceHolder",void 0);ie([(0,X.property)({type:String})],z.prototype,"clearButtonLabel",void 0);ie([(0,X.property)({type:String})],z.prototype,"moreValuesButtonLabel",void 0);ie([(0,X.property)({type:String})],z.prototype,"noValuesLabel",void 0);ie([(0,fe.jsonProperty)([])],z.prototype,"options",void 0);ie([(0,X.property)({type:Boolean})],z.prototype,"multivalued",void 0);ie([(0,X.property)({type:Boolean})],z.prototype,"disabled",void 0);ie([(0,X.property)({type:Boolean})],z.prototype,"raiseSelectedOptions",void 0);ie([(0,X.property)({type:Boolean})],z.prototype,"displayCount",void 0);ie([(0,fe.numberProperty)()],z.prototype,"displayedValuesLimit",void 0);ie([(0,fe.jsonProperty)(void 0)],z.prototype,"filteredOptionsNumberAriaNotification",void 0);ie([(0,X.property)({type:Boolean})],z.prototype,"hideClearButton",void 0);ie([(0,X.query)(".ft-filter--slot")],z.prototype,"slotElement",void 0);ie([(0,X.query)(".ft-filter--container")],z.prototype,"container",void 0);ie([(0,X.query)(".ft-filter--values")],z.prototype,"valuesContainer",void 0);ie([(0,X.query)(".ft-filter--levels")],z.prototype,"levelsContainer",void 0);ie([(0,X.state)()],z.prototype,"lastLevelHasHiddenvalues",void 0);ie([(0,X.query)(".ft-filter--filter input")],z.prototype,"filterInput",void 0);ie([(0,X.queryAll)(".ft-filter--levels ft-filter-level")],z.prototype,"levels",void 0);ie([(0,X.state)()],z.prototype,"withScroll",void 0);ie([(0,X.state)()],z.prototype,"filter",void 0);ie([(0,X.state)()],z.prototype,"slideIn",void 0);ie([(0,X.state)()],z.prototype,"slideOut",void 0);var xn=c(f()),Fr=c(V()),zd=c(v()),hi=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},at=class extends xn.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return zd.html`
|
|
1432
1432
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1433
|
-
`}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}))}};
|
|
1433
|
+
`}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={};hi([(0,Fr.property)({type:String})],at.prototype,"label",void 0);hi([(0,Fr.property)({type:Object,converter:t=>t})],at.prototype,"value",void 0);hi([(0,Fr.property)({type:Boolean,reflect:!0})],at.prototype,"selected",void 0);hi([(0,Fr.property)({type:Object})],at.prototype,"subOptions",void 0);hi([(0,xn.jsonProperty)({})],at.prototype,"renderOption",void 0);hi([(0,Fr.query)(".ft-filter-option--slot")],at.prototype,"slotElement",void 0);var Hd=c(f());var Vd={"ft-filter":z,"ft-filter-option":at};(0,Hd.customElements)(Vd);var Wd=c(v()),Sn=c(V()),Gd=c(f());var jd=c(v());var qd=jd.css`
|
|
1434
1434
|
.ft-accordion {
|
|
1435
1435
|
box-sizing: border-box;
|
|
1436
1436
|
}
|
|
1437
|
-
`;var
|
|
1437
|
+
`;var Kd=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Nt=class extends Gd.FtLitElement{constructor(){super(...arguments),this.multi=!1}render(){return Wd.html`
|
|
1438
1438
|
<div class="ft-accordion">
|
|
1439
1439
|
<slot @activated=${this.onChange}></slot>
|
|
1440
1440
|
</div>
|
|
1441
|
-
`}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};Nt.elementDefinitions={};Nt.styles
|
|
1441
|
+
`}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};Nt.elementDefinitions={};Nt.styles=qd;Kd([(0,Sn.property)({type:Boolean})],Nt.prototype,"multi",void 0);Kd([(0,Sn.query)("slot")],Nt.prototype,"content",void 0);var ts=c(v()),rs=c(V()),Xd=c(f());var Qd=c(v()),Ur=c(f()),Br={horizontalSpacing:Ur.FtCssVariableFactory.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:Ur.FtCssVariableFactory.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:Ur.FtCssVariableFactory.external(Ur.designSystemVariables.colorOutline,"Design system"),backgroundColor:Ur.FtCssVariableFactory.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},Yd=Qd.css`
|
|
1442
1442
|
.ft-accordion-item {
|
|
1443
1443
|
display: flex;
|
|
1444
1444
|
flex-direction: column;
|
|
1445
|
-
background-color: ${
|
|
1445
|
+
background-color: ${Br.backgroundColor};
|
|
1446
1446
|
}
|
|
1447
1447
|
|
|
1448
1448
|
.ft-accordion-item--toggle {
|
|
@@ -1452,8 +1452,8 @@
|
|
|
1452
1452
|
display: flex;
|
|
1453
1453
|
align-items: center;
|
|
1454
1454
|
cursor: pointer;
|
|
1455
|
-
padding: ${
|
|
1456
|
-
gap: calc(${
|
|
1455
|
+
padding: ${Br.verticalSpacing} ${Br.horizontalSpacing};
|
|
1456
|
+
gap: calc(${Br.horizontalSpacing} / 2);
|
|
1457
1457
|
outline: none;
|
|
1458
1458
|
}
|
|
1459
1459
|
|
|
@@ -1478,13 +1478,13 @@
|
|
|
1478
1478
|
.ft-accordion-item--active .ft-accordion-item--content {
|
|
1479
1479
|
height: initial;
|
|
1480
1480
|
overflow: visible;
|
|
1481
|
-
padding: ${
|
|
1481
|
+
padding: ${Br.verticalSpacing} ${Br.horizontalSpacing};
|
|
1482
1482
|
}
|
|
1483
1483
|
|
|
1484
1484
|
.ft-accordion-item--separator {
|
|
1485
|
-
border-bottom: 1px solid ${
|
|
1485
|
+
border-bottom: 1px solid ${Br.colorOutline};
|
|
1486
1486
|
}
|
|
1487
|
-
`;var
|
|
1487
|
+
`;var En=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},gt=class extends Xd.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return ts.html`
|
|
1488
1488
|
<div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
|
|
1489
1489
|
<div class="ft-accordion-item--toggle"
|
|
1490
1490
|
part="toggle"
|
|
@@ -1495,13 +1495,13 @@
|
|
|
1495
1495
|
aria-controls="ft-accordion-item-content"
|
|
1496
1496
|
aria-expanded="${this.active}">
|
|
1497
1497
|
<ft-ripple part="toggle-ripple"></ft-ripple>
|
|
1498
|
-
${this.icon?
|
|
1498
|
+
${this.icon?ts.html`
|
|
1499
1499
|
<ft-icon .variant=${this.iconVariant} value="${this.icon}"></ft-icon>
|
|
1500
1500
|
`:null}
|
|
1501
|
-
${this.label?
|
|
1501
|
+
${this.label?ts.html`
|
|
1502
1502
|
<ft-typography class="ft-accordion-item--label" variant="body1" part="label">${this.label}
|
|
1503
1503
|
</ft-typography>
|
|
1504
|
-
`:
|
|
1504
|
+
`:ts.html`
|
|
1505
1505
|
<slot class="ft-accordion-item--label" name="toggle" part="label"></slot>
|
|
1506
1506
|
`}
|
|
1507
1507
|
<ft-icon variant="material">${this.active?"expand_less":"expand_more"}</ft-icon>
|
|
@@ -1514,7 +1514,7 @@
|
|
|
1514
1514
|
</div>
|
|
1515
1515
|
<div class="ft-accordion-item--separator" part="separator"></div>
|
|
1516
1516
|
</div>
|
|
1517
|
-
`}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)}};gt.elementDefinitions={"ft-ripple":
|
|
1517
|
+
`}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)}};gt.elementDefinitions={"ft-ripple":L,"ft-typography":K,"ft-icon":ee};gt.styles=Yd;En([(0,rs.property)()],gt.prototype,"icon",void 0);En([(0,rs.property)()],gt.prototype,"iconVariant",void 0);En([(0,rs.property)()],gt.prototype,"label",void 0);En([(0,rs.property)({type:Boolean,reflect:!0})],gt.prototype,"active",void 0);var Jd=c(f());var Zd={"ft-accordion":Nt,"ft-accordion-item":gt};(0,Jd.customElements)(Zd);var Cn=c(v()),Le=c(V()),sp=c(Ze()),fi=c(f());var is=c(v()),M=c(f());var ep=M.FtCssVariableFactory.extend("--ft-chip-color","",M.designSystemVariables.colorOnSurface),ke={backgroundColor:M.FtCssVariableFactory.extend("--ft-chip-background-color","",M.designSystemVariables.colorSurface),color:ep,fontSize:M.FtCssVariableFactory.extend("--ft-chip-font-size","",xe.fontSize),fontWeight:M.FtCssVariableFactory.extend("--ft-chip-font-weight","",xe.fontWeight),iconSize:M.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:M.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:M.FtCssVariableFactory.extend("--ft-chip-ripple-color","",ep),horizontalPadding:M.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:M.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:M.FtCssVariableFactory.extend("--ft-chip-border-color","",M.designSystemVariables.colorOutline),opacityDisabled:M.FtCssVariableFactory.external(M.designSystemVariables.colorOpacityDisabled,"Design system")},tp=M.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",M.FtCssVariableFactory.extend("--ft-chip-color","",M.designSystemVariables.colorOnPrimary)),Go={backgroundColor:M.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",M.FtCssVariableFactory.extend("--ft-chip-background-color","",M.designSystemVariables.colorPrimary)),color:tp,rippleColor:M.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",tp)},rp={horizontalPadding:M.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:M.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},ip=[M.noTextSelect,is.css`
|
|
1518
1518
|
:host {
|
|
1519
1519
|
display: inline-block;
|
|
1520
1520
|
max-width: 100%;
|
|
@@ -1530,21 +1530,21 @@
|
|
|
1530
1530
|
box-sizing: border-box;
|
|
1531
1531
|
pointer-events: auto;
|
|
1532
1532
|
|
|
1533
|
-
--chip-internal-font-size: ${
|
|
1534
|
-
--chip-internal-font-weight: ${
|
|
1533
|
+
--chip-internal-font-size: ${ke.fontSize};
|
|
1534
|
+
--chip-internal-font-weight: ${ke.fontWeight};
|
|
1535
1535
|
--chip-internal-line-height: max(20px, calc(var(--chip-internal-font-size) + 2px));
|
|
1536
|
-
${(0,
|
|
1537
|
-
--chip-internal-vertical-padding: ${
|
|
1538
|
-
--chip-internal-horizontal-padding: ${
|
|
1536
|
+
${(0,M.setVariable)(Be.size,ke.iconSize)};
|
|
1537
|
+
--chip-internal-vertical-padding: ${ke.verticalPadding};
|
|
1538
|
+
--chip-internal-horizontal-padding: ${ke.horizontalPadding};
|
|
1539
1539
|
--chip-internal-icon-padding: 3px;
|
|
1540
|
-
--chip-internal-content-height: max(var(--chip-internal-line-height), ${
|
|
1540
|
+
--chip-internal-content-height: max(var(--chip-internal-line-height), ${ke.iconSize});
|
|
1541
1541
|
|
|
1542
|
-
border: 1px solid ${
|
|
1543
|
-
color: ${
|
|
1544
|
-
${(0,
|
|
1545
|
-
border-radius: var(${(0,
|
|
1542
|
+
border: 1px solid ${ke.borderColor};
|
|
1543
|
+
color: ${ke.color};
|
|
1544
|
+
${(0,M.setVariable)(q.color,ke.rippleColor)};
|
|
1545
|
+
border-radius: var(${(0,is.unsafeCSS)(ke.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
|
|
1546
1546
|
padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
|
|
1547
|
-
background-color: ${
|
|
1547
|
+
background-color: ${ke.backgroundColor};
|
|
1548
1548
|
line-height: var(--chip-internal-content-height);
|
|
1549
1549
|
}
|
|
1550
1550
|
|
|
@@ -1554,28 +1554,28 @@
|
|
|
1554
1554
|
|
|
1555
1555
|
.ft-chip--dense {
|
|
1556
1556
|
--chip-internal-icon-padding: 3px;
|
|
1557
|
-
--chip-internal-vertical-padding: ${
|
|
1558
|
-
--chip-internal-horizontal-padding: ${
|
|
1557
|
+
--chip-internal-vertical-padding: ${rp.verticalPadding};
|
|
1558
|
+
--chip-internal-horizontal-padding: ${rp.horizontalPadding};
|
|
1559
1559
|
--chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
|
|
1560
1560
|
}
|
|
1561
1561
|
|
|
1562
1562
|
.ft-chip--no-content {
|
|
1563
|
-
--chip-internal-horizontal-padding: ${
|
|
1563
|
+
--chip-internal-horizontal-padding: ${ke.horizontalPadding.get(is.css`var(--chip-internal-vertical-padding)`)};
|
|
1564
1564
|
}
|
|
1565
1565
|
|
|
1566
1566
|
.ft-chip--disabled {
|
|
1567
1567
|
cursor: default;
|
|
1568
1568
|
pointer-events: none;
|
|
1569
1569
|
filter: grayscale(1);
|
|
1570
|
-
opacity: ${
|
|
1570
|
+
opacity: ${ke.opacityDisabled};
|
|
1571
1571
|
}
|
|
1572
1572
|
|
|
1573
1573
|
.ft-chip--highlighted {
|
|
1574
1574
|
border: none;
|
|
1575
1575
|
padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
|
|
1576
|
-
background-color: ${
|
|
1577
|
-
${(0,
|
|
1578
|
-
color: ${
|
|
1576
|
+
background-color: ${Go.backgroundColor};
|
|
1577
|
+
${(0,M.setVariable)(q.color,Go.rippleColor)};
|
|
1578
|
+
color: ${Go.color};
|
|
1579
1579
|
}
|
|
1580
1580
|
|
|
1581
1581
|
.ft-chip--clickable {
|
|
@@ -1584,7 +1584,7 @@
|
|
|
1584
1584
|
}
|
|
1585
1585
|
|
|
1586
1586
|
.ft-chip:focus {
|
|
1587
|
-
outline: 2px solid ${
|
|
1587
|
+
outline: 2px solid ${M.designSystemVariables.colorPrimary};
|
|
1588
1588
|
outline-offset: 2px;
|
|
1589
1589
|
}
|
|
1590
1590
|
|
|
@@ -1606,9 +1606,9 @@
|
|
|
1606
1606
|
}
|
|
1607
1607
|
|
|
1608
1608
|
.ft-chip--icon-button {
|
|
1609
|
-
${(0,
|
|
1610
|
-
${(0,
|
|
1611
|
-
${(0,
|
|
1609
|
+
${(0,M.setVariable)(k.iconSize,ke.iconSize)};
|
|
1610
|
+
${(0,M.setVariable)(k.horizontalPadding,"var(--chip-internal-icon-padding)")};
|
|
1611
|
+
${(0,M.setVariable)(k.verticalPadding,"var(--chip-internal-icon-padding)")};
|
|
1612
1612
|
margin: calc((-1) * var(--chip-internal-icon-padding));
|
|
1613
1613
|
}
|
|
1614
1614
|
|
|
@@ -1616,9 +1616,9 @@
|
|
|
1616
1616
|
vertical-align: bottom;
|
|
1617
1617
|
display: block;
|
|
1618
1618
|
margin: 0 var(--chip-internal-horizontal-padding);
|
|
1619
|
-
${(0,
|
|
1620
|
-
${(0,
|
|
1621
|
-
${(0,
|
|
1619
|
+
${(0,M.setVariable)(xe.fontSize,"var(--chip-internal-font-size)")};
|
|
1620
|
+
${(0,M.setVariable)(xe.fontWeight,"var(--chip-internal-font-weight)")};
|
|
1621
|
+
${(0,M.setVariable)(xe.lineHeight,"var(--chip-internal-content-height)")};
|
|
1622
1622
|
}
|
|
1623
1623
|
|
|
1624
1624
|
.ft-chip--safari-fix .ft-chip--label {
|
|
@@ -1654,8 +1654,8 @@
|
|
|
1654
1654
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
1655
1655
|
order: -1;
|
|
1656
1656
|
}
|
|
1657
|
-
`];var
|
|
1658
|
-
<div class="${(0,
|
|
1657
|
+
`];var Ve=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},An=class extends CustomEvent{constructor(){super("icon-click")}},ae=class extends fi.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let r={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":fi.isSafari};return Cn.html`
|
|
1658
|
+
<div class="${(0,sp.classMap)(r)}"
|
|
1659
1659
|
aria-label="${this.getLabel()}"
|
|
1660
1660
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
1661
1661
|
@keyup=${this.onKeyUp}
|
|
@@ -1666,7 +1666,7 @@
|
|
|
1666
1666
|
</ft-typography>
|
|
1667
1667
|
${this.internalIcon?this.renderIcon():null}
|
|
1668
1668
|
</div>
|
|
1669
|
-
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?
|
|
1669
|
+
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?Cn.html`
|
|
1670
1670
|
<ft-button round
|
|
1671
1671
|
class="ft-chip--icon-button"
|
|
1672
1672
|
@click=${this.onIconClick}
|
|
@@ -1677,29 +1677,29 @@
|
|
|
1677
1677
|
part="icon-button"
|
|
1678
1678
|
?hideTooltip=${this.hideIconTooltip}
|
|
1679
1679
|
></ft-button>
|
|
1680
|
-
`:
|
|
1680
|
+
`:Cn.html`
|
|
1681
1681
|
<div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
|
|
1682
1682
|
<ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
|
|
1683
1683
|
</div>
|
|
1684
|
-
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new
|
|
1684
|
+
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new An))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new An))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,fi.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};ae.elementDefinitions={"ft-ripple":L,"ft-typography":K,"ft-icon":ee,"ft-button":C};ae.styles=ip;Ve([(0,Le.property)({type:Boolean})],ae.prototype,"highlighted",void 0);Ve([(0,Le.property)({type:Boolean})],ae.prototype,"removable",void 0);Ve([(0,Le.property)({type:Boolean})],ae.prototype,"disabled",void 0);Ve([(0,Le.property)({type:Boolean})],ae.prototype,"clickable",void 0);Ve([(0,Le.property)({type:Boolean})],ae.prototype,"iconClickable",void 0);Ve([(0,Le.property)({type:Boolean})],ae.prototype,"dense",void 0);Ve([(0,Le.property)({type:Boolean})],ae.prototype,"multiLine",void 0);Ve([(0,Le.property)()],ae.prototype,"label",void 0);Ve([(0,Le.property)()],ae.prototype,"iconLabel",void 0);Ve([(0,Le.property)({type:Boolean})],ae.prototype,"hideIconTooltip",void 0);Ve([(0,Le.property)()],ae.prototype,"icon",void 0);Ve([(0,Le.property)()],ae.prototype,"iconVariant",void 0);Ve([(0,Le.property)({type:Boolean})],ae.prototype,"trailingIcon",void 0);Ve([(0,Le.property)()],ae.prototype,"typographyVariant",void 0);Ve([(0,Le.query)("ft-typography slot")],ae.prototype,"slottedContent",void 0);var op=c(f());var np={"ft-chip":ae};(0,op.customElements)(np);var gi=c(v()),ve=c(V()),vp=c(Ze()),xp=c(cr());function ss(t,e,r){return t?e(t):r?.(t)}var yt=c(f());var wn=c(V());var ap=c(v()),se=c(f());var N={fontSize:se.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:se.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:se.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:se.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:se.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:se.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:se.FtCssVariableFactory.extend("--ft-input-label-border-color","",se.designSystemVariables.colorOutline),textColor:se.FtCssVariableFactory.extend("--ft-input-label-text-color","",se.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:se.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",se.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:se.FtCssVariableFactory.extend("--ft-input-label-background-color","",se.designSystemVariables.colorSurface),borderRadius:se.FtCssVariableFactory.extend("--ft-input-label-border-radius","",se.designSystemVariables.borderRadiusS),colorError:se.FtCssVariableFactory.external(se.designSystemVariables.colorError,"Design system")},lp=ap.css`
|
|
1685
1685
|
.ft-input-label {
|
|
1686
1686
|
position: absolute;
|
|
1687
1687
|
inset: 0;
|
|
1688
1688
|
display: flex;
|
|
1689
|
-
background-color: ${
|
|
1690
|
-
border-radius: ${
|
|
1689
|
+
background-color: ${N.backgroundColor};
|
|
1690
|
+
border-radius: ${N.borderRadius} ${N.borderRadius} 0 0;
|
|
1691
1691
|
}
|
|
1692
1692
|
|
|
1693
1693
|
.ft-input-label--outlined {
|
|
1694
|
-
border-radius: ${
|
|
1694
|
+
border-radius: ${N.borderRadius};
|
|
1695
1695
|
}
|
|
1696
1696
|
|
|
1697
1697
|
.ft-input-label {
|
|
1698
|
-
border-color: ${
|
|
1698
|
+
border-color: ${N.borderColor};
|
|
1699
1699
|
}
|
|
1700
1700
|
|
|
1701
1701
|
.ft-input-label.ft-input-label--in-error {
|
|
1702
|
-
border-color: ${
|
|
1702
|
+
border-color: ${N.colorError}
|
|
1703
1703
|
}
|
|
1704
1704
|
|
|
1705
1705
|
.ft-input-label:before,
|
|
@@ -1712,7 +1712,7 @@
|
|
|
1712
1712
|
}
|
|
1713
1713
|
|
|
1714
1714
|
.ft-input-label:before {
|
|
1715
|
-
width: calc(${
|
|
1715
|
+
width: calc(${N.horizontalSpacing} - 4px);
|
|
1716
1716
|
flex-shrink: 0;
|
|
1717
1717
|
}
|
|
1718
1718
|
|
|
@@ -1728,20 +1728,20 @@
|
|
|
1728
1728
|
border-bottom-width: 1px;
|
|
1729
1729
|
border-bottom-style: solid;
|
|
1730
1730
|
border-color: inherit;
|
|
1731
|
-
color: ${
|
|
1731
|
+
color: ${N.textColor};
|
|
1732
1732
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
1733
|
-
max-width: calc(${
|
|
1733
|
+
max-width: calc(${N.labelMaxWidth} - 2 * (${N.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
1734
1734
|
text-overflow: ellipsis;
|
|
1735
|
-
${(0,
|
|
1736
|
-
${(0,
|
|
1735
|
+
${(0,se.setVariable)(Je.fontSize,N.fontSize)};
|
|
1736
|
+
${(0,se.setVariable)(Je.lineHeight,N.fontSize)};
|
|
1737
1737
|
}
|
|
1738
1738
|
|
|
1739
1739
|
.ft-input-label--in-error .ft-input-label--text {
|
|
1740
|
-
color: ${
|
|
1740
|
+
color: ${N.colorError}
|
|
1741
1741
|
}
|
|
1742
1742
|
|
|
1743
1743
|
.ft-input-label--disabled .ft-input-label--text {
|
|
1744
|
-
color: ${
|
|
1744
|
+
color: ${N.disabledTextColor};
|
|
1745
1745
|
}
|
|
1746
1746
|
|
|
1747
1747
|
.ft-input-label--hidden-text {
|
|
@@ -1758,19 +1758,19 @@
|
|
|
1758
1758
|
overflow: hidden;
|
|
1759
1759
|
white-space: nowrap;
|
|
1760
1760
|
text-overflow: ellipsis;
|
|
1761
|
-
padding: ${
|
|
1762
|
-
margin: calc(${
|
|
1761
|
+
padding: ${N.verticalSpacing} 4px;
|
|
1762
|
+
margin: calc(${N.verticalSpacing} * -1) 0;
|
|
1763
1763
|
max-width: 100%;
|
|
1764
1764
|
box-sizing: border-box;
|
|
1765
1765
|
}
|
|
1766
1766
|
|
|
1767
1767
|
.ft-input-label--raised .ft-input-label--text {
|
|
1768
|
-
${(0,
|
|
1769
|
-
${(0,
|
|
1768
|
+
${(0,se.setVariable)(Je.fontSize,N.raisedFontSize)};
|
|
1769
|
+
${(0,se.setVariable)(Je.lineHeight,N.raisedFontSize)};
|
|
1770
1770
|
}
|
|
1771
1771
|
|
|
1772
1772
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
1773
|
-
top: ${
|
|
1773
|
+
top: ${N.verticalSpacing};
|
|
1774
1774
|
}
|
|
1775
1775
|
|
|
1776
1776
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -1783,36 +1783,36 @@
|
|
|
1783
1783
|
.ft-input-label--outlined:before {
|
|
1784
1784
|
border-left-width: 1px;
|
|
1785
1785
|
border-left-style: solid;
|
|
1786
|
-
border-radius: ${
|
|
1786
|
+
border-radius: ${N.borderRadius} 0 0 ${N.borderRadius};
|
|
1787
1787
|
}
|
|
1788
1788
|
|
|
1789
1789
|
.ft-input-label--outlined:after {
|
|
1790
1790
|
border-right-width: 1px;
|
|
1791
1791
|
border-right-style: solid;
|
|
1792
|
-
border-radius: 0 ${
|
|
1792
|
+
border-radius: 0 ${N.borderRadius} ${N.borderRadius} 0;
|
|
1793
1793
|
}
|
|
1794
1794
|
|
|
1795
1795
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
1796
1796
|
padding: 2px 4px;
|
|
1797
|
-
z-index: ${
|
|
1798
|
-
background-color: ${
|
|
1799
|
-
border-radius: ${
|
|
1797
|
+
z-index: ${N.raisedZIndex};
|
|
1798
|
+
background-color: ${N.backgroundColor};
|
|
1799
|
+
border-radius: ${N.borderRadius};
|
|
1800
1800
|
top: calc((${Je.lineHeight} / -2) + 2px);
|
|
1801
1801
|
}
|
|
1802
1802
|
|
|
1803
1803
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
1804
1804
|
border-top: none;
|
|
1805
1805
|
}
|
|
1806
|
-
`;var
|
|
1807
|
-
<div class="${(0,
|
|
1808
|
-
${
|
|
1806
|
+
`;var Qo=c(v()),Yo=c(V());var up=c(Ze()),dp=c(f()),cp=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},zr=class extends dp.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return Qo.html`
|
|
1807
|
+
<div class="${(0,up.classMap)(this.inputLabelClasses)}">
|
|
1808
|
+
${ss(this.text,()=>Qo.html`
|
|
1809
1809
|
<div class="ft-input-label--text ft-typography--caption">
|
|
1810
1810
|
<label class="ft-input-label--floating-text">${this.text}</label>
|
|
1811
1811
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
1812
1812
|
</div>
|
|
1813
1813
|
`)}
|
|
1814
1814
|
</div>
|
|
1815
|
-
`}};
|
|
1815
|
+
`}};zr.elementDefinitions={};cp([(0,Yo.property)({type:String})],zr.prototype,"text",void 0);cp([(0,Yo.property)({type:Boolean})],zr.prototype,"raised",void 0);var Xo=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},Ot=class extends zr{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}}};Ot.elementDefinitions={};Ot.styles=[Jt,lp];Xo([(0,wn.property)({type:Boolean})],Ot.prototype,"outlined",void 0);Xo([(0,wn.property)({type:Boolean})],Ot.prototype,"error",void 0);Xo([(0,wn.property)({type:Boolean})],Ot.prototype,"disabled",void 0);var hp=c(f());var pp={"ft-input-label":Ot};(0,hp.customElements)(pp);var fp=c(v()),D=c(f());var P={labelSize:D.FtCssVariableFactory.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:D.FtCssVariableFactory.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:D.FtCssVariableFactory.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:D.FtCssVariableFactory.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:D.FtCssVariableFactory.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:D.FtCssVariableFactory.extend("--ft-select-selected-option-color","",D.designSystemVariables.colorOnSurface),helperColor:D.FtCssVariableFactory.extend("--ft-select-helper-color","",D.designSystemVariables.colorOnSurfaceMedium),optionsColor:D.FtCssVariableFactory.extend("--ft-select-options-color","",D.designSystemVariables.colorOnSurface),optionsZIndex:D.FtCssVariableFactory.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:D.FtCssVariableFactory.extend("--ft-select-background-color","",D.designSystemVariables.colorSurface),colorOnSurfaceDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:D.FtCssVariableFactory.external(D.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:D.FtCssVariableFactory.external(D.designSystemVariables.borderRadiusS,"Design system"),elevation02:D.FtCssVariableFactory.external(D.designSystemVariables.elevation02,"Design system"),colorError:D.FtCssVariableFactory.external(D.designSystemVariables.colorError,"Design system")},mp=fp.css`
|
|
1816
1816
|
*:focus {
|
|
1817
1817
|
outline: none;
|
|
1818
1818
|
}
|
|
@@ -1827,7 +1827,7 @@
|
|
|
1827
1827
|
.ft-select--main-panel {
|
|
1828
1828
|
position: relative;
|
|
1829
1829
|
display: flex;
|
|
1830
|
-
height: calc(4 * ${
|
|
1830
|
+
height: calc(4 * ${P.verticalSpacing} + ${P.labelSize} + ${P.selectedOptionSize});
|
|
1831
1831
|
}
|
|
1832
1832
|
|
|
1833
1833
|
.ft-select--input-panel {
|
|
@@ -1836,17 +1836,17 @@
|
|
|
1836
1836
|
display: flex;
|
|
1837
1837
|
align-items: center;
|
|
1838
1838
|
overflow: hidden;
|
|
1839
|
-
padding-left: ${
|
|
1840
|
-
padding-right: ${
|
|
1839
|
+
padding-left: ${P.horizontalSpacing};
|
|
1840
|
+
padding-right: ${P.horizontalSpacing};
|
|
1841
1841
|
gap: 8px;
|
|
1842
|
-
color: ${
|
|
1843
|
-
${(0,D.setVariable)(
|
|
1842
|
+
color: ${P.selectedOptionColor};
|
|
1843
|
+
${(0,D.setVariable)(q.color,P.selectedOptionColor)};
|
|
1844
1844
|
}
|
|
1845
1845
|
|
|
1846
1846
|
.ft-select--input-panel,
|
|
1847
1847
|
.ft-select--options {
|
|
1848
|
-
${(0,D.setVariable)(
|
|
1849
|
-
${(0,D.setVariable)(
|
|
1848
|
+
${(0,D.setVariable)(q.opacityContentOnSurfaceHover,"0.08")};
|
|
1849
|
+
${(0,D.setVariable)(q.opacityContentOnSurfacePressed,"0.04")};
|
|
1850
1850
|
}
|
|
1851
1851
|
|
|
1852
1852
|
.ft-select--input-panel > *:not(ft-ripple) {
|
|
@@ -1855,7 +1855,7 @@
|
|
|
1855
1855
|
|
|
1856
1856
|
.ft-select--disabled .ft-select--input-panel,
|
|
1857
1857
|
.ft-select--disabled .ft-select--options {
|
|
1858
|
-
color: ${
|
|
1858
|
+
color: ${P.colorOnSurfaceDisabled};
|
|
1859
1859
|
}
|
|
1860
1860
|
|
|
1861
1861
|
.ft-select:not(.ft-select--disabled) .ft-select--input-panel,
|
|
@@ -1864,21 +1864,21 @@
|
|
|
1864
1864
|
}
|
|
1865
1865
|
|
|
1866
1866
|
ft-input-label {
|
|
1867
|
-
${(0,D.setVariable)(
|
|
1868
|
-
${(0,D.setVariable)(
|
|
1869
|
-
${(0,D.setVariable)(
|
|
1870
|
-
${(0,D.setVariable)(
|
|
1871
|
-
${(0,D.setVariable)(
|
|
1872
|
-
${(0,D.setVariable)(
|
|
1867
|
+
${(0,D.setVariable)(N.fontSize,P.selectedOptionSize)};
|
|
1868
|
+
${(0,D.setVariable)(N.raisedFontSize,P.labelSize)};
|
|
1869
|
+
${(0,D.setVariable)(N.verticalSpacing,P.verticalSpacing)};
|
|
1870
|
+
${(0,D.setVariable)(N.horizontalSpacing,P.horizontalSpacing)};
|
|
1871
|
+
${(0,D.setVariable)(N.backgroundColor,P.backgroundColor)};
|
|
1872
|
+
${(0,D.setVariable)(N.labelMaxWidth,`calc(100% - ${Be.size} - 8px)`)};
|
|
1873
1873
|
}
|
|
1874
1874
|
|
|
1875
1875
|
.ft-select:not(.ft-select--disabled):focus-within ft-icon {
|
|
1876
|
-
color: ${
|
|
1876
|
+
color: ${P.colorPrimary};
|
|
1877
1877
|
}
|
|
1878
1878
|
|
|
1879
1879
|
.ft-select:not(.ft-select--disabled):focus-within ft-input-label {
|
|
1880
|
-
${(0,D.setVariable)(
|
|
1881
|
-
${(0,D.setVariable)(
|
|
1880
|
+
${(0,D.setVariable)(N.borderColor,P.colorPrimary)};
|
|
1881
|
+
${(0,D.setVariable)(N.textColor,P.colorPrimary)};
|
|
1882
1882
|
}
|
|
1883
1883
|
|
|
1884
1884
|
.ft-select--selected-option {
|
|
@@ -1888,12 +1888,12 @@
|
|
|
1888
1888
|
overflow: hidden;
|
|
1889
1889
|
white-space: nowrap;
|
|
1890
1890
|
text-overflow: ellipsis;
|
|
1891
|
-
${(0,D.setVariable)(
|
|
1892
|
-
${(0,D.setVariable)(
|
|
1891
|
+
${(0,D.setVariable)(zt.fontSize,P.selectedOptionSize)};
|
|
1892
|
+
${(0,D.setVariable)(zt.lineHeight,P.selectedOptionSize)};
|
|
1893
1893
|
}
|
|
1894
1894
|
|
|
1895
1895
|
.ft-select--in-error .ft-select--selected-option {
|
|
1896
|
-
color: ${
|
|
1896
|
+
color: ${P.colorError};
|
|
1897
1897
|
}
|
|
1898
1898
|
|
|
1899
1899
|
ft-icon {
|
|
@@ -1903,26 +1903,26 @@
|
|
|
1903
1903
|
|
|
1904
1904
|
|
|
1905
1905
|
.ft-select--filled .ft-select--input-panel {
|
|
1906
|
-
border-radius: ${
|
|
1906
|
+
border-radius: ${P.borderRadiusS} ${P.borderRadiusS} 0 0;
|
|
1907
1907
|
}
|
|
1908
1908
|
|
|
1909
1909
|
.ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
|
|
1910
1910
|
align-self: stretch;
|
|
1911
|
-
padding-top: calc(${
|
|
1911
|
+
padding-top: calc(${P.labelSize} + 2 * ${P.verticalSpacing});
|
|
1912
1912
|
}
|
|
1913
1913
|
|
|
1914
1914
|
.ft-select--outlined .ft-select--input-panel {
|
|
1915
|
-
border-radius: ${
|
|
1915
|
+
border-radius: ${P.borderRadiusS};
|
|
1916
1916
|
}
|
|
1917
1917
|
|
|
1918
1918
|
.ft-select--options {
|
|
1919
1919
|
display: none;
|
|
1920
1920
|
position: absolute;
|
|
1921
1921
|
top: 100%;
|
|
1922
|
-
color: ${
|
|
1923
|
-
background: ${
|
|
1924
|
-
z-index: ${
|
|
1925
|
-
box-shadow: ${
|
|
1922
|
+
color: ${P.optionsColor};
|
|
1923
|
+
background: ${P.backgroundColor};
|
|
1924
|
+
z-index: ${P.optionsZIndex};
|
|
1925
|
+
box-shadow: ${P.elevation02};
|
|
1926
1926
|
width: max-content;
|
|
1927
1927
|
}
|
|
1928
1928
|
|
|
@@ -1932,26 +1932,26 @@
|
|
|
1932
1932
|
|
|
1933
1933
|
.ft-select--options-displayed .ft-select--options {
|
|
1934
1934
|
display: block;
|
|
1935
|
-
max-height: ${
|
|
1935
|
+
max-height: ${P.optionsHeight};
|
|
1936
1936
|
overflow-y: auto;
|
|
1937
1937
|
}
|
|
1938
1938
|
|
|
1939
1939
|
.ft-select--helper-text {
|
|
1940
|
-
padding: 0 ${
|
|
1941
|
-
color: ${
|
|
1940
|
+
padding: 0 ${P.horizontalSpacing};
|
|
1941
|
+
color: ${P.helperColor};
|
|
1942
1942
|
}
|
|
1943
1943
|
|
|
1944
1944
|
.ft-select--in-error .ft-select--helper-text {
|
|
1945
|
-
color: ${
|
|
1945
|
+
color: ${P.colorError};
|
|
1946
1946
|
}
|
|
1947
1947
|
|
|
1948
1948
|
.ft-select:not(.ft-select--has-option-selected) .ft-select--selected-option {
|
|
1949
1949
|
opacity: 0;
|
|
1950
1950
|
}
|
|
1951
|
-
`;var
|
|
1951
|
+
`;var On=c(f());var mi=c(v()),bp=c(Ze()),hr=c(V());var Zo=c(f());var gp=c(v()),yp=gp.css`
|
|
1952
1952
|
.ft-select--option {
|
|
1953
|
-
${(0,
|
|
1954
|
-
${(0,
|
|
1953
|
+
${(0,Zo.setVariable)(q.opacityContentOnSurfaceHover,"0.08")};
|
|
1954
|
+
${(0,Zo.setVariable)(q.opacityContentOnSurfacePressed,"0.04")};
|
|
1955
1955
|
}
|
|
1956
1956
|
|
|
1957
1957
|
.ft-select--option > *:not(ft-ripple) {
|
|
@@ -1960,14 +1960,14 @@
|
|
|
1960
1960
|
|
|
1961
1961
|
.ft-select--option {
|
|
1962
1962
|
position: relative;
|
|
1963
|
-
padding: 4px ${
|
|
1963
|
+
padding: 4px ${P.horizontalSpacing};
|
|
1964
1964
|
min-height: 32px;
|
|
1965
1965
|
display: flex;
|
|
1966
1966
|
align-items: center;
|
|
1967
1967
|
}
|
|
1968
1968
|
|
|
1969
1969
|
.ft-select--option:hover {
|
|
1970
|
-
border-left: 2px ${
|
|
1970
|
+
border-left: 2px ${P.colorPrimary} solid;
|
|
1971
1971
|
}
|
|
1972
1972
|
|
|
1973
1973
|
.ft-select--option span {
|
|
@@ -1975,8 +1975,8 @@
|
|
|
1975
1975
|
overflow: hidden;
|
|
1976
1976
|
}
|
|
1977
1977
|
|
|
1978
|
-
`;var
|
|
1979
|
-
<div class="${(0,
|
|
1978
|
+
`;var ns=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 On.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 mi.html`
|
|
1979
|
+
<div class="${(0,bp.classMap)(i)}"
|
|
1980
1980
|
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,"")}"
|
|
1981
1981
|
tabindex="0"
|
|
1982
1982
|
aria-label="${this.label}"
|
|
@@ -1985,17 +1985,17 @@
|
|
|
1985
1985
|
<ft-ripple ?primary=${this.selected} ?activated=${this.selected}></ft-ripple>
|
|
1986
1986
|
<slot @slotchange=${this.onSlotChange}>
|
|
1987
1987
|
</slot>
|
|
1988
|
-
${this.isSlotEmpty?
|
|
1988
|
+
${this.isSlotEmpty?mi.html`<span>${this.label}</span>`:mi.html``}
|
|
1989
1989
|
</div>
|
|
1990
|
-
`}onSlotChange(){this.isSlotEmpty=(0,
|
|
1991
|
-
<div class="${(0,
|
|
1990
|
+
`}onSlotChange(){this.isSlotEmpty=(0,On.isSlotEmptyOrWithoutContent)(this.slotElement)}onClick(){this.dispatchEvent(new Event("select-option",{bubbles:!0,composed:!0}))}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Me.elementDefinitions={"ft-ripple":L};Me.shadowRootOptions={...mi.LitElement.shadowRootOptions,delegatesFocus:!0};Me.styles=[yp,Zt];ns([(0,hr.property)({type:String})],Me.prototype,"label",void 0);ns([(0,hr.property)({type:Object,converter:t=>t})],Me.prototype,"value",void 0);ns([(0,hr.property)({type:Boolean,reflect:!0})],Me.prototype,"selected",void 0);ns([(0,hr.query)("slot")],Me.prototype,"slotElement",void 0);ns([(0,hr.state)()],Me.prototype,"isSlotEmpty",void 0);var $e=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s};var Z=class t extends yt.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,yt.last)(this.optionsList)}render(){var e,r,i,n,s;let o=this.hasOptionsMenuOpen,a=this.disabled||!this.hasOptions,l=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((i=(r=this.selectedOption)===null||r===void 0?void 0:r.label)!==null&&i!==void 0?i:"").length>0,u={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":a,"ft-select--options-displayed":o,"ft-select--has-option-selected":l,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return gi.html`
|
|
1991
|
+
<div class="${(0,vp.classMap)(u)}" part="container">
|
|
1992
1992
|
<div class="ft-select--main-panel" part="main-panel">
|
|
1993
1993
|
<ft-input-label text="${this.label}"
|
|
1994
1994
|
part="label"
|
|
1995
1995
|
id="label"
|
|
1996
1996
|
?disabled=${a}
|
|
1997
1997
|
?outlined=${this.outlined}
|
|
1998
|
-
?raised=${l||
|
|
1998
|
+
?raised=${l||o}
|
|
1999
1999
|
?error=${this.error}
|
|
2000
2000
|
></ft-input-label>
|
|
2001
2001
|
<div class="ft-select--input-panel"
|
|
@@ -2003,21 +2003,21 @@
|
|
|
2003
2003
|
tabindex="${a?"-1":"0"}"
|
|
2004
2004
|
@click=${()=>{this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=this.optionsDisplayed}}
|
|
2005
2005
|
@keydown=${this.onMainPanelKeyDown}
|
|
2006
|
-
aria-label="${
|
|
2007
|
-
aria-labelledby="${
|
|
2006
|
+
aria-label="${ar(this.ariaLabel)}"
|
|
2007
|
+
aria-labelledby="${ss(!this.ariaLabel,()=>"label")}"
|
|
2008
2008
|
aria-haspopup="listbox"
|
|
2009
|
-
aria-expanded="${
|
|
2010
|
-
aria-activedescendant="${
|
|
2009
|
+
aria-expanded="${o}"
|
|
2010
|
+
aria-activedescendant="${ar(this.getOptionId(this.selectedOption))}"
|
|
2011
2011
|
role="combobox">
|
|
2012
2012
|
<ft-ripple ?disabled=${a} ?activated=${!this.outlined}></ft-ripple>
|
|
2013
2013
|
<slot name="input-value">
|
|
2014
|
-
<ft-typography variant="${
|
|
2014
|
+
<ft-typography variant="${ce.body1}"
|
|
2015
2015
|
aria-hidden="${l?"false":"true"}"
|
|
2016
2016
|
class="ft-select--selected-option">
|
|
2017
|
-
${(
|
|
2017
|
+
${(s=(n=this.selectedOption)===null||n===void 0?void 0:n.label)!==null&&s!==void 0?s:this.label}
|
|
2018
2018
|
</ft-typography>
|
|
2019
2019
|
</slot>
|
|
2020
|
-
<ft-icon aria-hidden="true" .value=${
|
|
2020
|
+
<ft-icon aria-hidden="true" .value=${o?ye.THIN_ARROW_UP:ye.THIN_ARROW}></ft-icon>
|
|
2021
2021
|
</div>
|
|
2022
2022
|
<div class="ft-select--options"
|
|
2023
2023
|
part="options"
|
|
@@ -2028,49 +2028,49 @@
|
|
|
2028
2028
|
@option-change=${this.updateOptionsFromSlot}
|
|
2029
2029
|
>
|
|
2030
2030
|
</slot>
|
|
2031
|
-
${
|
|
2031
|
+
${ss(this.isSlotEmpty,()=>(0,xp.repeat)(this.options,d=>d.value,d=>this.renderOption(d)))}
|
|
2032
2032
|
</div>
|
|
2033
2033
|
</div>
|
|
2034
2034
|
<slot name="helper" part="helper">
|
|
2035
|
-
${this.helper?
|
|
2036
|
-
<ft-typography class="ft-select--helper-text" variant="${
|
|
2037
|
-
</ft-typography>`:
|
|
2035
|
+
${this.helper?gi.html`
|
|
2036
|
+
<ft-typography class="ft-select--helper-text" variant="${ce.caption}">${this.helper}
|
|
2037
|
+
</ft-typography>`:gi.nothing}
|
|
2038
2038
|
</slot>
|
|
2039
2039
|
</div>
|
|
2040
|
-
`}renderOption(e){let r=this.selectedOption===e;return
|
|
2040
|
+
`}renderOption(e){let r=this.selectedOption===e;return gi.html`
|
|
2041
2041
|
<ft-select-option
|
|
2042
2042
|
?selected=${r}
|
|
2043
2043
|
label="${e.label}"
|
|
2044
2044
|
.value=${e.value}
|
|
2045
2045
|
></ft-select-option>
|
|
2046
|
-
`}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((i=(r=this.selectedOptionElement)!==null&&r!==void 0?r:this.firstOption)===null||i===void 0||i.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&(this.optionsDisplayed?document.addEventListener("click",this.hideOptions):document.removeEventListener("click",this.hideOptions)),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let n=["bottom","top"];(0,
|
|
2046
|
+
`}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((i=(r=this.selectedOptionElement)!==null&&r!==void 0?r:this.firstOption)===null||i===void 0||i.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&(this.optionsDisplayed?document.addEventListener("click",this.hideOptions):document.removeEventListener("click",this.hideOptions)),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let n=["bottom","top"];(0,yt.computeOffsetAutoPosition)(this.mainPanel,this.optionsMenu,"bottom",n,"fixed",P.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,yt.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,yt.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,yt.deepEqual)(n.value,e));i&&this.selectOption(i,r)}selectOption(e,r=!0){var i,n;if(!(0,yt.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":Ot,"ft-typography":K,"ft-ripple":L,"ft-icon":ee,"ft-select-option":Me};Z.searchTimeoutMilliseconds=2e3;Z.styles=[Jt,mp];$e([(0,ve.property)({type:String})],Z.prototype,"label",void 0);$e([(0,ve.property)({type:String})],Z.prototype,"ariaLabel",void 0);$e([(0,ve.property)({type:String})],Z.prototype,"helper",void 0);$e([(0,ve.property)({type:Boolean})],Z.prototype,"outlined",void 0);$e([(0,ve.property)({type:Boolean})],Z.prototype,"disabled",void 0);$e([(0,ve.property)({type:Boolean})],Z.prototype,"error",void 0);$e([(0,ve.property)({type:Boolean})],Z.prototype,"fixedMenuPosition",void 0);$e([(0,ve.property)({type:Array})],Z.prototype,"options",void 0);$e([(0,ve.state)()],Z.prototype,"selectedOption",void 0);$e([(0,ve.state)()],Z.prototype,"optionsDisplayed",void 0);$e([(0,ve.state)()],Z.prototype,"focusOptions",void 0);$e([(0,ve.state)()],Z.prototype,"currentSearch",void 0);$e([(0,ve.state)()],Z.prototype,"lastSearchInputDate",void 0);$e([(0,ve.query)(".ft-select")],Z.prototype,"container",void 0);$e([(0,ve.query)(".ft-select--options")],Z.prototype,"optionsMenu",void 0);$e([(0,ve.query)(".ft-select--input-panel")],Z.prototype,"mainPanel",void 0);$e([(0,ve.query)("slot:not([name])")],Z.prototype,"optionsSlot",void 0);var Ep=c(f());var Sp={"ft-select":Z,"ft-select-option":Me};(0,Ep.customElements)(Sp);var R=c(f()),Jo=c(v());var Cp=c(v()),_t=c(f()),Pe={display:_t.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:_t.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:_t.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:_t.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:_t.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:_t.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:_t.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:_t.FtCssVariableFactory.external(_t.designSystemVariables.borderRadiusM,"Design system")},Ap=Cp.css`
|
|
2047
2047
|
:host {
|
|
2048
|
-
width: ${
|
|
2049
|
-
height: ${
|
|
2050
|
-
display: ${
|
|
2048
|
+
width: ${Pe.width};
|
|
2049
|
+
height: ${Pe.height};
|
|
2050
|
+
display: ${Pe.display};
|
|
2051
2051
|
overflow: hidden;
|
|
2052
|
-
border-radius: ${
|
|
2052
|
+
border-radius: ${Pe.borderRadiusM};
|
|
2053
2053
|
background: linear-gradient(
|
|
2054
2054
|
90deg,
|
|
2055
2055
|
transparent,
|
|
2056
|
-
${
|
|
2057
|
-
${
|
|
2058
|
-
transparent ${
|
|
2059
|
-
), ${
|
|
2056
|
+
${Pe.glareColor} calc(0.45 * ${Pe.glareWidth}),
|
|
2057
|
+
${Pe.glareColor} calc(0.55 * ${Pe.glareWidth}),
|
|
2058
|
+
transparent ${Pe.glareWidth}
|
|
2059
|
+
), ${Pe.backgroundColor};
|
|
2060
2060
|
background-repeat: repeat-y;
|
|
2061
2061
|
background-size: 100vw 100vh;
|
|
2062
2062
|
background-attachment: fixed;
|
|
2063
|
-
background-position: calc(${
|
|
2064
|
-
animation: shine ${
|
|
2063
|
+
background-position: calc(${Pe.glareWidth} * -1) 0;
|
|
2064
|
+
animation: shine ${Pe.animationDuration} infinite;
|
|
2065
2065
|
animation-timing-function: linear;
|
|
2066
2066
|
}
|
|
2067
2067
|
|
|
2068
2068
|
@keyframes shine {
|
|
2069
2069
|
to {
|
|
2070
|
-
background-position: calc(100vw + ${
|
|
2070
|
+
background-position: calc(100vw + ${Pe.glareWidth}) 0, calc(${Pe.glareWidth} * -1) 0;
|
|
2071
2071
|
}
|
|
2072
2072
|
}
|
|
2073
|
-
`;var
|
|
2073
|
+
`;var A={height:R.FtCssVariableFactory.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:R.FtCssVariableFactory.extend("--ft-search-bar-border-radius","",R.designSystemVariables.borderRadiusS),mobileOpenPosition:R.FtCssVariableFactory.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:R.FtCssVariableFactory.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:R.FtCssVariableFactory.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:R.FtCssVariableFactory.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:R.FtCssVariableFactory.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:R.FtCssVariableFactory.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:R.FtCssVariableFactory.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:R.FtCssVariableFactory.external(R.designSystemVariables.colorSurface,"Design system"),colorOnSurface:R.FtCssVariableFactory.external(R.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:R.FtCssVariableFactory.external(R.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:R.FtCssVariableFactory.external(R.designSystemVariables.colorOutline,"Design system"),colorPrimary:R.FtCssVariableFactory.external(R.designSystemVariables.colorPrimary,"Design system"),elevation02:R.FtCssVariableFactory.external(R.designSystemVariables.elevation02,"Design system"),buttonColor:R.FtCssVariableFactory.external(k.color,"Button"),buttonRippleColor:R.FtCssVariableFactory.external(k.rippleColor,"Button"),activeItemBorderColor:R.FtCssVariableFactory.extend("--ft-search-bar-active-border-color","",R.designSystemVariables.colorPrimary)},wp=Jo.css`
|
|
2074
2074
|
* {
|
|
2075
2075
|
box-sizing: border-box;
|
|
2076
2076
|
}
|
|
@@ -2079,7 +2079,7 @@
|
|
|
2079
2079
|
display: flex;
|
|
2080
2080
|
flex-direction: column;
|
|
2081
2081
|
gap: 8px;
|
|
2082
|
-
color: ${
|
|
2082
|
+
color: ${A.colorOnSurface};
|
|
2083
2083
|
outline: none;
|
|
2084
2084
|
}
|
|
2085
2085
|
|
|
@@ -2088,21 +2088,21 @@
|
|
|
2088
2088
|
}
|
|
2089
2089
|
|
|
2090
2090
|
.ft-search-bar--mobile-menu-open {
|
|
2091
|
-
position: ${
|
|
2092
|
-
top: ${
|
|
2093
|
-
bottom: ${
|
|
2094
|
-
left: ${
|
|
2095
|
-
right: ${
|
|
2096
|
-
z-index: ${
|
|
2091
|
+
position: ${A.mobileOpenPosition};
|
|
2092
|
+
top: ${A.mobileOpenTop};
|
|
2093
|
+
bottom: ${A.mobileOpenBottom};
|
|
2094
|
+
left: ${A.mobileOpenLeft};
|
|
2095
|
+
right: ${A.mobileOpenRight};
|
|
2096
|
+
z-index: ${A.floatingZIndex};
|
|
2097
2097
|
padding: 16px;
|
|
2098
2098
|
}
|
|
2099
2099
|
|
|
2100
2100
|
.ft-search-bar--mobile-menu-open:not(.ft-search-bar--forced-open) {
|
|
2101
|
-
background: ${
|
|
2101
|
+
background: ${A.colorSurface};
|
|
2102
2102
|
}
|
|
2103
2103
|
|
|
2104
2104
|
.ft-search-bar--mobile-menu-open.ft-search-bar--forced-open {
|
|
2105
|
-
position: ${
|
|
2105
|
+
position: ${A.mobileOpenPosition.get("static")};
|
|
2106
2106
|
}
|
|
2107
2107
|
|
|
2108
2108
|
.ft-search-bar {
|
|
@@ -2110,20 +2110,20 @@
|
|
|
2110
2110
|
display: flex;
|
|
2111
2111
|
flex-direction: row;
|
|
2112
2112
|
align-items: center;
|
|
2113
|
-
height: ${
|
|
2113
|
+
height: ${A.height};
|
|
2114
2114
|
|
|
2115
|
-
background: ${
|
|
2116
|
-
border: 1px solid ${
|
|
2117
|
-
border-radius: ${
|
|
2115
|
+
background: ${A.colorSurface};
|
|
2116
|
+
border: 1px solid ${A.colorOutline};
|
|
2117
|
+
border-radius: ${A.borderRadius};
|
|
2118
2118
|
}
|
|
2119
2119
|
|
|
2120
2120
|
.ft-search-bar--skeleton {
|
|
2121
|
-
${(0,
|
|
2122
|
-
${(0,
|
|
2121
|
+
${(0,R.setVariable)(Pe.height,A.height)};
|
|
2122
|
+
${(0,R.setVariable)(Pe.borderRadiusM,A.borderRadius)};
|
|
2123
2123
|
}
|
|
2124
2124
|
|
|
2125
2125
|
.ft-search-bar--floating-panel-open .ft-search-bar {
|
|
2126
|
-
border-radius: ${
|
|
2126
|
+
border-radius: ${A.borderRadius} ${A.borderRadius} 0 0;
|
|
2127
2127
|
}
|
|
2128
2128
|
|
|
2129
2129
|
.ft-search-bar--input-container {
|
|
@@ -2141,7 +2141,7 @@
|
|
|
2141
2141
|
align-self: stretch;
|
|
2142
2142
|
display: grid;
|
|
2143
2143
|
padding: 0 8px;
|
|
2144
|
-
border-radius: ${
|
|
2144
|
+
border-radius: ${A.borderRadius};
|
|
2145
2145
|
}
|
|
2146
2146
|
|
|
2147
2147
|
.ft-search-bar--dense .ft-search-bar--input-outline {
|
|
@@ -2150,7 +2150,7 @@
|
|
|
2150
2150
|
}
|
|
2151
2151
|
|
|
2152
2152
|
.ft-search-bar--input-container:focus-within .ft-search-bar--input-outline {
|
|
2153
|
-
outline: 2px solid ${
|
|
2153
|
+
outline: 2px solid ${A.colorPrimary};
|
|
2154
2154
|
}
|
|
2155
2155
|
|
|
2156
2156
|
.ft-search-bar--input {
|
|
@@ -2158,12 +2158,12 @@
|
|
|
2158
2158
|
flex-grow: 1;
|
|
2159
2159
|
border: none;
|
|
2160
2160
|
background-color: transparent;
|
|
2161
|
-
color: ${
|
|
2161
|
+
color: ${A.colorOnSurface};
|
|
2162
2162
|
outline: none;
|
|
2163
2163
|
}
|
|
2164
2164
|
|
|
2165
2165
|
.ft-search-bar--input::placeholder {
|
|
2166
|
-
color: ${
|
|
2166
|
+
color: ${A.colorOnSurfaceMedium};
|
|
2167
2167
|
}
|
|
2168
2168
|
|
|
2169
2169
|
.ft-search-bar--actions {
|
|
@@ -2177,12 +2177,12 @@
|
|
|
2177
2177
|
.ft-search-bar > ft-button,
|
|
2178
2178
|
.ft-search-bar--actions ft-button {
|
|
2179
2179
|
flex-shrink: 0;
|
|
2180
|
-
${(0,
|
|
2180
|
+
${(0,R.setVariable)(k.backgroundColor,"transparent")};
|
|
2181
2181
|
}
|
|
2182
2182
|
|
|
2183
2183
|
.ft-search-bar--left-action {
|
|
2184
|
-
${(0,
|
|
2185
|
-
border-right: 1px solid ${
|
|
2184
|
+
${(0,R.setVariable)(k.borderRadius,`calc(${A.borderRadius} - 1px) 0 0 calc(${A.borderRadius} - 1px)`)};
|
|
2185
|
+
border-right: 1px solid ${A.colorOutline};
|
|
2186
2186
|
height: 100%;
|
|
2187
2187
|
}
|
|
2188
2188
|
|
|
@@ -2191,7 +2191,7 @@
|
|
|
2191
2191
|
}
|
|
2192
2192
|
|
|
2193
2193
|
.ft-search-bar--floating-panel-open .ft-search-bar--left-action {
|
|
2194
|
-
${(0,
|
|
2194
|
+
${(0,R.setVariable)(k.borderRadius,`calc(${A.borderRadius} - 1px) 0 0 0`)};
|
|
2195
2195
|
}
|
|
2196
2196
|
|
|
2197
2197
|
.ft-search-bar .ft-search-bar--launch-search,
|
|
@@ -2201,13 +2201,13 @@
|
|
|
2201
2201
|
|
|
2202
2202
|
.ft-search-bar--separator {
|
|
2203
2203
|
height: 20px;
|
|
2204
|
-
border-right: 1px solid ${
|
|
2204
|
+
border-right: 1px solid ${A.colorOutline};
|
|
2205
2205
|
}
|
|
2206
2206
|
|
|
2207
2207
|
.ft-search-bar--left-action.ft-search-bar--content-locale {
|
|
2208
|
-
${(0,
|
|
2209
|
-
${(0,
|
|
2210
|
-
${(0,
|
|
2208
|
+
${(0,R.setVariable)(N.borderColor,"transparent")};
|
|
2209
|
+
${(0,R.setVariable)(N.borderRadius,`calc(${A.borderRadius} - 1px)`)};
|
|
2210
|
+
${(0,R.setVariable)(P.selectedOptionColor,A.buttonColor)};
|
|
2211
2211
|
}
|
|
2212
2212
|
|
|
2213
2213
|
.ft-search-bar--left-action.ft-search-bar--content-locale,
|
|
@@ -2224,7 +2224,7 @@
|
|
|
2224
2224
|
}
|
|
2225
2225
|
|
|
2226
2226
|
.ft-search-bar--left-action.ft-search-bar--content-locale::part(selected-value) {
|
|
2227
|
-
border-radius: calc(${
|
|
2227
|
+
border-radius: calc(${A.borderRadius} - 1px) 0 0 calc(${A.borderRadius} - 1px);
|
|
2228
2228
|
}
|
|
2229
2229
|
|
|
2230
2230
|
[part="content-locale-selector"] {
|
|
@@ -2233,7 +2233,7 @@
|
|
|
2233
2233
|
flex-direction: column;
|
|
2234
2234
|
max-height: 100%;
|
|
2235
2235
|
max-width: 100%;
|
|
2236
|
-
color: ${
|
|
2236
|
+
color: ${Xe.colorOnSurface};
|
|
2237
2237
|
}
|
|
2238
2238
|
|
|
2239
2239
|
[part="content-locale-selector"] > ft-radio-group {
|
|
@@ -2251,7 +2251,7 @@
|
|
|
2251
2251
|
flex-shrink: 0;
|
|
2252
2252
|
padding: 0 10px;
|
|
2253
2253
|
margin-bottom: 8px;
|
|
2254
|
-
${(0,
|
|
2254
|
+
${(0,R.setVariable)(b.fontSize,"14px")};
|
|
2255
2255
|
}
|
|
2256
2256
|
|
|
2257
2257
|
[part="content-locale-selector-label"] {
|
|
@@ -2259,18 +2259,18 @@
|
|
|
2259
2259
|
flex-shrink: 1;
|
|
2260
2260
|
flex-grow: 1;
|
|
2261
2261
|
word-break: break-word;
|
|
2262
|
-
${(0,
|
|
2263
|
-
${(0,
|
|
2262
|
+
${(0,R.setVariable)(b.lineHeight,"22px")};
|
|
2263
|
+
${(0,R.setVariable)(b.fontWeight,"bold")};
|
|
2264
2264
|
}
|
|
2265
2265
|
|
|
2266
|
-
`,
|
|
2266
|
+
`,Op=Jo.css`
|
|
2267
2267
|
.ft-search-bar--presets {
|
|
2268
2268
|
min-width: 200px;
|
|
2269
2269
|
}
|
|
2270
2270
|
|
|
2271
2271
|
.ft-search-bar--desktop-menu .ft-search-bar--presets {
|
|
2272
2272
|
margin-right: auto;
|
|
2273
|
-
${(0,
|
|
2273
|
+
${(0,R.setVariable)(P.optionsZIndex,"2")};
|
|
2274
2274
|
}
|
|
2275
2275
|
|
|
2276
2276
|
.ft-search-bar--desktop-menu {
|
|
@@ -2323,8 +2323,8 @@
|
|
|
2323
2323
|
|
|
2324
2324
|
.ft-search-bar--desktop-menu .ft-search-bar--filters-container {
|
|
2325
2325
|
display: block;
|
|
2326
|
-
height: ${
|
|
2327
|
-
${(0,
|
|
2326
|
+
height: ${A.desktopFiltersHeight};
|
|
2327
|
+
${(0,R.setVariable)(ze.gap,"16px")};
|
|
2328
2328
|
}
|
|
2329
2329
|
|
|
2330
2330
|
.ft-search-bar--desktop-menu ft-filter {
|
|
@@ -2339,15 +2339,15 @@
|
|
|
2339
2339
|
}
|
|
2340
2340
|
|
|
2341
2341
|
.ft-search-bar--desktop-menu [data-filters-count="2"] ft-filter {
|
|
2342
|
-
max-width: calc(50% - ${
|
|
2342
|
+
max-width: calc(50% - ${ze.gap} / 2);
|
|
2343
2343
|
}
|
|
2344
2344
|
|
|
2345
2345
|
.ft-search-bar--desktop-menu [data-filters-count="3"] ft-filter {
|
|
2346
|
-
max-width: max(250px, calc(33% - 2 * ${
|
|
2346
|
+
max-width: max(250px, calc(33% - 2 * ${ze.gap} / 3));
|
|
2347
2347
|
}
|
|
2348
2348
|
|
|
2349
2349
|
.ft-search-bar--desktop-menu [data-filters-count="4"] ft-filter {
|
|
2350
|
-
max-width: max(250px, calc(25% - 3 * ${
|
|
2350
|
+
max-width: max(250px, calc(25% - 3 * ${ze.gap} / 4));
|
|
2351
2351
|
}
|
|
2352
2352
|
|
|
2353
2353
|
.ft-search-bar--hierarchical-filter {
|
|
@@ -2404,7 +2404,7 @@
|
|
|
2404
2404
|
.ft-search-bar--filter-label-values {
|
|
2405
2405
|
flex-grow: 0;
|
|
2406
2406
|
flex-shrink: 1;
|
|
2407
|
-
color: ${
|
|
2407
|
+
color: ${A.colorOnSurfaceMedium};
|
|
2408
2408
|
}
|
|
2409
2409
|
|
|
2410
2410
|
ft-accordion-item::part(toggle) {
|
|
@@ -2424,14 +2424,14 @@
|
|
|
2424
2424
|
.ft-search-bar--desktop-menu .ft-search-bar--launch-search {
|
|
2425
2425
|
margin: 0;
|
|
2426
2426
|
}
|
|
2427
|
-
`;var
|
|
2428
|
-
`}};
|
|
2427
|
+
`;var _p=c(v()),Rp=c(f());var fr=class extends Rp.FtLitElement{render(){return _p.html`
|
|
2428
|
+
`}};fr.elementDefinitions={};fr.styles=Ap;var kp=c(f());var Tp={"ft-skeleton":fr};(0,kp.customElements)(Tp);var Ft=c(v()),ea=c(cr());var yi=c(f());var Bt=class{constructor(e,r=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new yi.Debouncer(r)}render(){let e=this.recentSearchesMatchingQuery;return Ft.html`
|
|
2429
2429
|
<div class="ft-search-bar--suggestions ft-word-wrap ${this.shouldDisplaySuggestions?"ft-search-bar--suggestions-not-empty":""}"
|
|
2430
2430
|
id="${this.listboxId}"
|
|
2431
2431
|
role="listbox"
|
|
2432
2432
|
aria-label="${this.searchBar.labelResolver.resolve("suggestionsAriaLabel")}"
|
|
2433
2433
|
part="suggestions-container">
|
|
2434
|
-
${(0,
|
|
2434
|
+
${(0,ea.repeat)(e.slice(0,5),r=>r,(r,i)=>Ft.html`
|
|
2435
2435
|
<div part="suggestion-container"
|
|
2436
2436
|
class="${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)?"ft-search-bar--suggestions-selected":Ft.nothing}">
|
|
2437
2437
|
<a href="${this.getRequestWithQuery(r)}"
|
|
@@ -2460,7 +2460,7 @@
|
|
|
2460
2460
|
</ft-button>
|
|
2461
2461
|
</div>
|
|
2462
2462
|
`)}
|
|
2463
|
-
${(0,
|
|
2463
|
+
${(0,ea.repeat)(this.searchBar.suggestions,r=>r.value,(r,i)=>Ft.html`
|
|
2464
2464
|
<div part="suggestion-container"
|
|
2465
2465
|
class="${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)?"ft-search-bar--suggestions-selected":Ft.nothing}">
|
|
2466
2466
|
<a href="${this.getRequestWithQuery(r.value)}"
|
|
@@ -2478,9 +2478,9 @@
|
|
|
2478
2478
|
</div>
|
|
2479
2479
|
`)}
|
|
2480
2480
|
</div>
|
|
2481
|
-
`}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"?
|
|
2481
|
+
`}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"?ye.BOOK:ye.ARTICLE;break;case"DOCUMENT":i=pn(e.mimeType,e.filenameExtension);break;case"TOPIC":i=ye.TOPICS;break;case"HTML_PACKAGE":i=ye.BOX_CODE;break;case"HTML_PACKAGE_PAGE":i=ye.FILE_CODE;break}return Ft.html`
|
|
2482
2482
|
<ft-icon .variant=${r} .value=${i} part="suggestion-icon"></ft-icon>
|
|
2483
|
-
`}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()))}};Bt.styles=[
|
|
2483
|
+
`}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()))}};Bt.styles=[yi.wordWrap,Ft.css`
|
|
2484
2484
|
.ft-search-bar--mobile .ft-search-bar--suggestions {
|
|
2485
2485
|
flex-grow: 1;
|
|
2486
2486
|
flex-shrink: 1;
|
|
@@ -2489,7 +2489,7 @@
|
|
|
2489
2489
|
}
|
|
2490
2490
|
|
|
2491
2491
|
.ft-search-bar--mobile-menu-open .ft-search-bar--suggestions {
|
|
2492
|
-
border-top: 1px solid ${
|
|
2492
|
+
border-top: 1px solid ${A.colorOutline};
|
|
2493
2493
|
}
|
|
2494
2494
|
|
|
2495
2495
|
.ft-search-bar--mobile-menu-open .ft-search-bar--suggestions {
|
|
@@ -2499,15 +2499,15 @@
|
|
|
2499
2499
|
.ft-search-bar--floating-panel,
|
|
2500
2500
|
.ft-search-bar--desktop .ft-search-bar--suggestions {
|
|
2501
2501
|
position: absolute;
|
|
2502
|
-
z-index: ${
|
|
2502
|
+
z-index: ${A.floatingZIndex};
|
|
2503
2503
|
top: 100%;
|
|
2504
2504
|
left: -1px;
|
|
2505
2505
|
right: -1px;
|
|
2506
2506
|
display: none;
|
|
2507
|
-
background: ${
|
|
2508
|
-
border: 1px solid ${
|
|
2509
|
-
border-radius: 0 0 ${
|
|
2510
|
-
box-shadow: ${
|
|
2507
|
+
background: ${A.colorSurface};
|
|
2508
|
+
border: 1px solid ${A.colorOutline};
|
|
2509
|
+
border-radius: 0 0 ${A.borderRadius} ${A.borderRadius};
|
|
2510
|
+
box-shadow: ${A.elevation02};
|
|
2511
2511
|
outline: none;
|
|
2512
2512
|
}
|
|
2513
2513
|
|
|
@@ -2526,10 +2526,10 @@
|
|
|
2526
2526
|
|
|
2527
2527
|
[part~="suggestion-container"].ft-search-bar--suggestions-selected {
|
|
2528
2528
|
outline: none;
|
|
2529
|
-
box-shadow: inset 3px 0 0 ${
|
|
2529
|
+
box-shadow: inset 3px 0 0 ${A.activeItemBorderColor};
|
|
2530
2530
|
}
|
|
2531
2531
|
[part~="suggestion-container"]:hover {
|
|
2532
|
-
box-shadow: inset 3px 0 0 ${
|
|
2532
|
+
box-shadow: inset 3px 0 0 ${A.activeItemBorderColor};
|
|
2533
2533
|
}
|
|
2534
2534
|
|
|
2535
2535
|
[part~="remove-suggestion"] {
|
|
@@ -2545,7 +2545,7 @@
|
|
|
2545
2545
|
gap: 8px;
|
|
2546
2546
|
cursor: pointer;
|
|
2547
2547
|
flex-grow: 1;
|
|
2548
|
-
color: ${
|
|
2548
|
+
color: ${A.colorOnSurface};
|
|
2549
2549
|
min-height: 52px;
|
|
2550
2550
|
}
|
|
2551
2551
|
|
|
@@ -2558,7 +2558,7 @@
|
|
|
2558
2558
|
}
|
|
2559
2559
|
|
|
2560
2560
|
.ft-search-bar--recent-search + .ft-search-bar--suggestion:not(.ft-search-bar--recent-search) {
|
|
2561
|
-
border-top: 1px solid ${
|
|
2561
|
+
border-top: 1px solid ${A.colorOutline};
|
|
2562
2562
|
}
|
|
2563
2563
|
|
|
2564
2564
|
.ft-search-bar--suggestion ft-typography {
|
|
@@ -2568,9 +2568,9 @@
|
|
|
2568
2568
|
}
|
|
2569
2569
|
|
|
2570
2570
|
ft-ripple {
|
|
2571
|
-
${(0,
|
|
2571
|
+
${(0,yi.setVariable)(q.opacityContentOnSurfaceHover,q.opacityContentOnSurfaceSelected)}
|
|
2572
2572
|
}
|
|
2573
|
-
`];var He=
|
|
2573
|
+
`];var He=c(v()),ta=c(cr());var _n=c(f());var Ut=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`
|
|
2574
2574
|
${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?He.html`
|
|
2575
2575
|
<ft-chip part="selected-filters selected-filter-ft-locale"
|
|
2576
2576
|
?dense=${this.searchBar.dense&&!e}
|
|
@@ -2581,7 +2581,7 @@
|
|
|
2581
2581
|
${this.getLocaleLabel(this.searchBar.contentLocale)}
|
|
2582
2582
|
</ft-chip>
|
|
2583
2583
|
`:null}
|
|
2584
|
-
${(0,
|
|
2584
|
+
${(0,ta.repeat)(this.searchBar.facets,n=>n.key,n=>{let s=pd(n);return(0,ta.repeat)(s,o=>{let a=n.label+": "+cd(o),l=n.key.replace(":","-"),u=He.html`
|
|
2585
2585
|
<ft-chip
|
|
2586
2586
|
part="selected-filters selected-filter-${l}"
|
|
2587
2587
|
?dense=${this.searchBar.dense&&!e}
|
|
@@ -2591,14 +2591,14 @@
|
|
|
2591
2591
|
label="${a}"
|
|
2592
2592
|
title="${r?a:He.nothing}"
|
|
2593
2593
|
@click=${()=>this.openMobileFilters(n.key)}
|
|
2594
|
-
@icon-click=${()=>this.searchBar.setFilter(n.key,
|
|
2594
|
+
@icon-click=${()=>this.searchBar.setFilter(n.key,s.filter(d=>d!==o))}
|
|
2595
2595
|
data-key="${n.key}"
|
|
2596
|
-
data-value="${
|
|
2597
|
-
${
|
|
2596
|
+
data-value="${o}">
|
|
2597
|
+
${ld(o)}
|
|
2598
2598
|
</ft-chip>
|
|
2599
|
-
`;return r?
|
|
2599
|
+
`;return r?u:He.html`
|
|
2600
2600
|
<ft-tooltip inline text="${a}">
|
|
2601
|
-
${
|
|
2601
|
+
${u}
|
|
2602
2602
|
</ft-tooltip>
|
|
2603
2603
|
`})})}
|
|
2604
2604
|
${e?He.html`
|
|
@@ -2631,7 +2631,7 @@
|
|
|
2631
2631
|
|
|
2632
2632
|
ft-snap-scroll.ft-search-bar--selected-filters {
|
|
2633
2633
|
overflow: hidden;
|
|
2634
|
-
${(0,
|
|
2634
|
+
${(0,_n.setVariable)(ze.gap,"4px")};
|
|
2635
2635
|
}
|
|
2636
2636
|
|
|
2637
2637
|
ft-snap-scroll.ft-search-bar--selected-filters::part(content) {
|
|
@@ -2639,8 +2639,8 @@
|
|
|
2639
2639
|
}
|
|
2640
2640
|
|
|
2641
2641
|
.ft-search-bar--desktop ft-snap-scroll.ft-search-bar--selected-filters {
|
|
2642
|
-
${(0,
|
|
2643
|
-
${(0,
|
|
2642
|
+
${(0,_n.setVariable)(ke.iconSize,"17px")};
|
|
2643
|
+
${(0,_n.setVariable)(ke.fontSize,"12px")};
|
|
2644
2644
|
}
|
|
2645
2645
|
|
|
2646
2646
|
.ft-search-bar--selected-filters * {
|
|
@@ -2650,8 +2650,8 @@
|
|
|
2650
2650
|
.ft-search-bar--selected-filters ft-chip {
|
|
2651
2651
|
flex-grow: 0;
|
|
2652
2652
|
}
|
|
2653
|
-
`;var
|
|
2654
|
-
<div class="${(0,
|
|
2653
|
+
`;var Rt=c(v());var Lp=c(Ze()),$p=c(f()),Bf=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},bi=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new Ut(e),this.suggestManager=i??new Bt(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 Rt.html`
|
|
2654
|
+
<div class="${(0,Lp.classMap)(r)}" part="container" tabindex="-1">
|
|
2655
2655
|
<div class="ft-search-bar" role="search">
|
|
2656
2656
|
<div class="ft-search-bar--input-container" part="input-container">
|
|
2657
2657
|
<div class="ft-search-bar--input-outline" part="input-outline">
|
|
@@ -2660,7 +2660,7 @@
|
|
|
2660
2660
|
aria-autocomplete="list"
|
|
2661
2661
|
aria-controls="${this.suggestManager.listboxId}"
|
|
2662
2662
|
aria-expanded="${this.searchBar.displaySuggestListbox}"
|
|
2663
|
-
aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:
|
|
2663
|
+
aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:Rt.nothing}"
|
|
2664
2664
|
part="input"
|
|
2665
2665
|
type="search"
|
|
2666
2666
|
placeholder="${this.searchBar.labelResolver.resolve("inputPlaceHolder")}"
|
|
@@ -2674,7 +2674,7 @@
|
|
|
2674
2674
|
</div>
|
|
2675
2675
|
${this.searchBar.displayFacets?this.searchBar.renderFacetsActions():this.selectedFacetsManager.render()}
|
|
2676
2676
|
${this.searchBar.displayFacets?this.searchBar.renderMobileFacets():this.suggestManager.render()}
|
|
2677
|
-
${this.searchBar.isMobileMenuOpen()||this.searchBar.displayFacets?
|
|
2677
|
+
${this.searchBar.isMobileMenuOpen()||this.searchBar.displayFacets?Rt.html`
|
|
2678
2678
|
<ft-button class="ft-search-bar--launch-search"
|
|
2679
2679
|
href="${this.searchBar.searchRequestSerializer(this.searchBar.request)}"
|
|
2680
2680
|
part="launch-search-in-panel"
|
|
@@ -2682,11 +2682,11 @@
|
|
|
2682
2682
|
@click=${()=>this.searchBar.onLaunchSearch()}>
|
|
2683
2683
|
${this.searchBar.labelResolver.resolve("searchButton")}
|
|
2684
2684
|
</ft-button>
|
|
2685
|
-
`:
|
|
2685
|
+
`:Rt.nothing}
|
|
2686
2686
|
</div>
|
|
2687
|
-
`}renderMobileSearchBarButtons(){let e=this.searchBar.query||this.searchBar.isMobileMenuOpen()&&!this.searchBar.forceMobileMenuOpen;return
|
|
2687
|
+
`}renderMobileSearchBarButtons(){let e=this.searchBar.query||this.searchBar.isMobileMenuOpen()&&!this.searchBar.forceMobileMenuOpen;return Rt.html`
|
|
2688
2688
|
<div class="ft-search-bar--actions" part="search-bar-actions">
|
|
2689
|
-
${e?
|
|
2689
|
+
${e?Rt.html`
|
|
2690
2690
|
<ft-button class="ft-search-bar--clear-query"
|
|
2691
2691
|
part="clear-query"
|
|
2692
2692
|
icon="close"
|
|
@@ -2696,7 +2696,7 @@
|
|
|
2696
2696
|
@click=${async()=>{this.searchBar.setQuery(""),this.searchBar.mobileMenuOpen=!1,this.searchBar.displayFacets=!1}}
|
|
2697
2697
|
></ft-button>
|
|
2698
2698
|
<div class="ft-search-bar--separator"></div>
|
|
2699
|
-
`:
|
|
2699
|
+
`:Rt.nothing}
|
|
2700
2700
|
<ft-button class="ft-search-bar--launch-search"
|
|
2701
2701
|
href="${this.searchBar.isMobileMenuOpen()?this.searchBar.searchRequestSerializer(this.searchBar.request):""}"
|
|
2702
2702
|
part="launch-search-in-bar"
|
|
@@ -2707,21 +2707,21 @@
|
|
|
2707
2707
|
@click=${()=>{var r;return this.searchBar.isMobileMenuOpen()?this.searchBar.onLaunchSearch():(r=this.searchBar.input)===null||r===void 0?void 0:r.focus()}}
|
|
2708
2708
|
></ft-button>
|
|
2709
2709
|
</div>
|
|
2710
|
-
`}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}};
|
|
2710
|
+
`}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}};bi.styles=Rt.css`
|
|
2711
2711
|
|
|
2712
|
-
`;
|
|
2713
|
-
<div class="${(0,
|
|
2712
|
+
`;Bf([(0,$p.ignoreComposingEvents)()],bi.prototype,"onSearchBarKeyDown",null);var je=c(v()),Pp=c(cr());var Dp=c(Ze()),Ip=c(f()),Uf=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},vi=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new Ut(e),this.suggestManager=i??new Bt(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`
|
|
2713
|
+
<div class="${(0,Dp.classMap)(r)}" part="container" tabindex="-1">
|
|
2714
2714
|
<div class="ft-search-bar" part="search-bar" role="search">
|
|
2715
2715
|
${this.renderSearchBarLeftAction()}
|
|
2716
2716
|
<div class="ft-search-bar--input-container" part="input-container" tabindex="-1">
|
|
2717
2717
|
<div class="ft-search-bar--input-outline" part="input-outline">
|
|
2718
|
-
${this.searchBar.dense?this.selectedFacetsManager.render():
|
|
2718
|
+
${this.searchBar.dense?this.selectedFacetsManager.render():je.nothing}
|
|
2719
2719
|
<input class="ft-search-bar--input ft-typography--body2"
|
|
2720
2720
|
role="combobox"
|
|
2721
2721
|
aria-autocomplete="list"
|
|
2722
2722
|
aria-controls="${this.suggestManager.listboxId}"
|
|
2723
2723
|
aria-expanded="${this.searchBar.displaySuggestListbox}"
|
|
2724
|
-
aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:
|
|
2724
|
+
aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:je.nothing}"
|
|
2725
2725
|
part="input"
|
|
2726
2726
|
type="search"
|
|
2727
2727
|
placeholder="${this.searchBar.labelResolver.resolve("inputPlaceHolder")}"
|
|
@@ -2736,9 +2736,9 @@
|
|
|
2736
2736
|
${this.renderDesktopSearchBarButtons()}
|
|
2737
2737
|
${this.searchBar.renderDesktopFloatingMenu()}
|
|
2738
2738
|
</div>
|
|
2739
|
-
${this.searchBar.dense?
|
|
2739
|
+
${this.searchBar.dense?je.nothing:this.searchBar.forceMenuOpen?this.searchBar.renderDesktopMenu():this.selectedFacetsManager.render()}
|
|
2740
2740
|
</div>
|
|
2741
|
-
`}renderSearchBarLeftAction(){return this.searchBar.hasFacets()?this.searchBar.forceMenuOpen?
|
|
2741
|
+
`}renderSearchBarLeftAction(){return this.searchBar.hasFacets()?this.searchBar.forceMenuOpen?je.nothing:je.html`
|
|
2742
2742
|
<ft-button class="ft-search-bar--filters-opener ft-search-bar--left-action"
|
|
2743
2743
|
part="filters-opener"
|
|
2744
2744
|
trailingIcon
|
|
@@ -2750,24 +2750,24 @@
|
|
|
2750
2750
|
>
|
|
2751
2751
|
${this.searchBar.labelResolver.resolve("filtersButton")}
|
|
2752
2752
|
</ft-button>
|
|
2753
|
-
`:this.searchBar.hasLocaleSelector()?
|
|
2753
|
+
`:this.searchBar.hasLocaleSelector()?je.html`
|
|
2754
2754
|
<ft-select outlined
|
|
2755
2755
|
class="ft-search-bar--content-locale ft-search-bar--left-action"
|
|
2756
2756
|
part="content-locale select-ft-locale"
|
|
2757
2757
|
ariaLabel="${this.searchBar.labelResolver.resolve("selectLocale")}"
|
|
2758
2758
|
.exportpartsPrefixes=${["content-locale","select-ft-locale"]}
|
|
2759
2759
|
@change=${e=>this.searchBar.contentLocale=e.detail==null?void 0:e.detail}>
|
|
2760
|
-
${(0,
|
|
2760
|
+
${(0,Pp.repeat)(this.searchBar.availableContentLocales,e=>e.lang,e=>je.html`
|
|
2761
2761
|
<ft-select-option .value=${e.lang}
|
|
2762
2762
|
label="${e.label}"
|
|
2763
2763
|
?selected=${e.lang==this.searchBar.contentLocale}>
|
|
2764
2764
|
</ft-select-option>
|
|
2765
2765
|
`)}
|
|
2766
2766
|
</ft-select>
|
|
2767
|
-
`:
|
|
2767
|
+
`:je.nothing}renderDesktopSearchBarButtons(){return je.html`
|
|
2768
2768
|
<div class="ft-search-bar--actions"
|
|
2769
2769
|
part="search-bar-actions">
|
|
2770
|
-
${this.searchBar.query?
|
|
2770
|
+
${this.searchBar.query?je.html`
|
|
2771
2771
|
<ft-button class="ft-search-bar--clear-query"
|
|
2772
2772
|
part="clear-query"
|
|
2773
2773
|
icon="close"
|
|
@@ -2786,45 +2786,45 @@
|
|
|
2786
2786
|
@click=${()=>this.searchBar.onLaunchSearch()}
|
|
2787
2787
|
></ft-button>
|
|
2788
2788
|
</div>
|
|
2789
|
-
`}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)}};
|
|
2789
|
+
`}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)}};vi.styles=je.css`
|
|
2790
2790
|
|
|
2791
|
-
`;
|
|
2791
|
+
`;Uf([(0,Ip.ignoreComposingEvents)()],vi.prototype,"onSearchBarKeyDown",null);var F=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s};window.fluidtopics==null&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");var Mp={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},ra=class extends CustomEvent{constructor(e){super("change",{detail:e})}},zf=()=>{},w=class extends Y.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.forceMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new Y.ParametrizedLabelResolver(Mp,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new Y.SearchPlaceConverter(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=mt.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 Bt(this),this.selectedFacetsManager=new Ut(this),this.desktopSearchBarManager=new vi(this),this.mobileSearchBarManager=new bi(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new Y.Debouncer(10),this.updateLocalesDebouncer=new Y.Debouncer(10),this.initSearchData=()=>{this.availableContentLocalesInitialized=!1,this.facetsLoaded=!1,this.facetsInitialized=!1,this.updateLocalesDebouncer.run(()=>{var e;(e=this.api)===null||e===void 0||e.getAvailableSearchLocales().then(r=>r.contentLocales).catch(()=>[]).then(r=>{this.availableContentLocales=r,this.availableContentLocalesInitialized=!0})}),this.updateFacets()},this.facetsLoaded=!1,this.updateFacetsDebouncer=new Y.Debouncer(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(r=>r===this.floatingContainer))},this.closeSuggestListbox=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.compareUnknownFilters=(e,r)=>e.valueFilter&&r.valueFilter?this.compareValueFilters(e.valueFilter,r.valueFilter):e.dateFilter&&r.dateFilter?this.compareDateFilters(e.dateFilter,r.dateFilter):e.rangeFilter&&r.rangeFilter?this.compareRangeFilters(e.rangeFilter,r.rangeFilter):!1,this.compareValueFilters=(e,r)=>e.negative==r.negative&&e.values.length===r.values.length&&e.values.every(i=>r.values.includes(i)),this.compareDateFilters=(e,r)=>e.type===r.type,this.compareRangeFilters=(e,r)=>e.from===r.from&&e.to===r.to,this.compareFilters=(e,r)=>e.key===r.key&&this.compareUnknownFilters(e,r),this.compareRequests=(e,r)=>(e.contentLocale==null||r.contentLocale==null||e.contentLocale===r.contentLocale)&&e.metadataFilters.length===r.metadataFilters.length&&e.metadataFilters.every(i=>r.metadataFilters.some(n=>this.compareFilters(i,n)))}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,metadataFilters:this.metadataFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){let e=this.metadataFilters.filter(r=>{var i,n;return((n=(i=r.valueFilter)===null||i===void 0?void 0:i.values.length)!==null&&n!==void 0?n:0)>0&&!this.displayedFilters.includes(r.key)}).map(r=>({id:r.key}));return[...this.displayedFilters.map(r=>({id:r})),...e]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,metadataFilters:this.metadataFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===mt.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var e;(e=this.container)===null||e===void 0||e.focus()}async focusInput(e=!1){this.reactToFocus=e,await(0,Y.waitFor)(()=>this.input,50),this.input.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return H.html`
|
|
2792
2792
|
<ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
|
|
2793
2793
|
<div class="sr-only" aria-live="polite" aria-atomic="true">
|
|
2794
2794
|
${this.renderLiveText()}
|
|
2795
2795
|
</div>
|
|
2796
2796
|
${this.renderSearchBar()}
|
|
2797
|
-
`}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():
|
|
2797
|
+
`}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():H.html`
|
|
2798
2798
|
<ft-skeleton class="ft-search-bar--container ft-search-bar--skeleton"
|
|
2799
2799
|
part="loader"
|
|
2800
2800
|
tabindex="-1"></ft-skeleton>
|
|
2801
|
-
`}renderMobileFacets(){let e=this.availableContentLocales.filter(r=>r.lang===this.contentLocale).pop();return
|
|
2801
|
+
`}renderMobileFacets(){let e=this.availableContentLocales.filter(r=>r.lang===this.contentLocale).pop();return H.html`
|
|
2802
2802
|
<ft-accordion class="ft-search-bar--filters-container">
|
|
2803
|
-
${this.hasLocaleSelector()?
|
|
2803
|
+
${this.hasLocaleSelector()?H.html`
|
|
2804
2804
|
<ft-accordion-item data-facet-key="ft:locale">
|
|
2805
2805
|
<div class="ft-search-bar--filter-label" slot="toggle">
|
|
2806
2806
|
<ft-typography variant="button">${this.labelResolver.resolve("contentLocaleSelector")}
|
|
2807
2807
|
</ft-typography>
|
|
2808
|
-
${e?.label?
|
|
2808
|
+
${e?.label?H.html`
|
|
2809
2809
|
<ft-typography class="ft-search-bar--filter-label-values" variant="body2">
|
|
2810
2810
|
${e?.label}
|
|
2811
2811
|
</ft-typography>
|
|
2812
|
-
`:
|
|
2812
|
+
`:H.nothing}
|
|
2813
2813
|
</div>
|
|
2814
2814
|
<div part="content-locale-selector">
|
|
2815
2815
|
${this.getContentLocaleRadioGroup()}
|
|
2816
2816
|
</div>
|
|
2817
2817
|
</ft-accordion-item>
|
|
2818
2818
|
`:null}
|
|
2819
|
-
${(0,
|
|
2819
|
+
${(0,os.repeat)(this.facets,r=>r.key,r=>{let i=Ho(r),n=r.key.replace(":","-"),s=dd(i);return r.rootNodes.length>0?H.html`
|
|
2820
2820
|
<ft-accordion-item data-facet-key="${r.key}">
|
|
2821
2821
|
<div class="ft-search-bar--filter-label" slot="toggle">
|
|
2822
2822
|
<ft-typography variant="button">${r.label}</ft-typography>
|
|
2823
|
-
${
|
|
2823
|
+
${s.length>0?H.html`
|
|
2824
2824
|
<ft-typography class="ft-search-bar--filter-label-values" variant="body2">
|
|
2825
|
-
${
|
|
2825
|
+
${s.join(", ")}
|
|
2826
2826
|
</ft-typography>
|
|
2827
|
-
`:
|
|
2827
|
+
`:H.nothing}
|
|
2828
2828
|
</div>
|
|
2829
2829
|
<ft-filter
|
|
2830
2830
|
part="filters filter filter-${n}"
|
|
@@ -2838,27 +2838,27 @@
|
|
|
2838
2838
|
raiseSelectedOptions
|
|
2839
2839
|
.options=${i.options}
|
|
2840
2840
|
.displayedValuesLimit=${10}
|
|
2841
|
-
@change=${
|
|
2841
|
+
@change=${o=>this.setFilter(i.id,o.detail)}
|
|
2842
2842
|
></ft-filter>
|
|
2843
2843
|
</ft-accordion-item>
|
|
2844
|
-
`:
|
|
2844
|
+
`:H.nothing})}
|
|
2845
2845
|
</ft-accordion>
|
|
2846
|
-
`}getContentLocaleRadioGroup(){var e;return
|
|
2846
|
+
`}getContentLocaleRadioGroup(){var e;return H.html`
|
|
2847
2847
|
<ft-radio-group aria-labelledby="content_locale_radio_group_label"
|
|
2848
2848
|
@change=${r=>{this.contentLocale=r.detail==="all"?void 0:r.detail,this.clearFilters()}}>
|
|
2849
|
-
${(0,
|
|
2849
|
+
${(0,os.repeat)((e=this.availableContentLocales)!==null&&e!==void 0?e:[],r=>r.lang,r=>{var i;return H.html`
|
|
2850
2850
|
<ft-radio value="${(i=r.lang)!==null&&i!==void 0?i:"all"}"
|
|
2851
2851
|
?checked=${r.lang==this.contentLocale}>
|
|
2852
2852
|
${r.label}
|
|
2853
2853
|
</ft-radio>
|
|
2854
2854
|
`})}
|
|
2855
2855
|
</ft-radio-group>
|
|
2856
|
-
`}renderDesktopMenu(){return this.hasFacets()?
|
|
2856
|
+
`}renderDesktopMenu(){return this.hasFacets()?H.html`
|
|
2857
2857
|
<div class="ft-search-bar--desktop-menu">
|
|
2858
2858
|
${this.renderFacetsActions()}
|
|
2859
2859
|
${this.renderDesktopFacets()}
|
|
2860
2860
|
<div class="ft-search-bar--facets-actions">
|
|
2861
|
-
${this.forceMenuOpen?this.renderDesktopClearFilters():
|
|
2861
|
+
${this.forceMenuOpen?this.renderDesktopClearFilters():H.nothing}
|
|
2862
2862
|
<ft-button class="ft-search-bar--launch-search"
|
|
2863
2863
|
href="${this.searchRequestSerializer(this.request)}"
|
|
2864
2864
|
part="launch-search-in-panel"
|
|
@@ -2868,38 +2868,38 @@
|
|
|
2868
2868
|
</ft-button>
|
|
2869
2869
|
</div>
|
|
2870
2870
|
</div>
|
|
2871
|
-
`:
|
|
2871
|
+
`:H.nothing}renderFacetsActions(){var e;return H.html`
|
|
2872
2872
|
<div class="ft-search-bar--facets-actions">
|
|
2873
|
-
${this.hasPresets?
|
|
2873
|
+
${this.hasPresets?H.html`
|
|
2874
2874
|
<ft-select
|
|
2875
2875
|
class="ft-search-bar--presets"
|
|
2876
2876
|
part="presets"
|
|
2877
2877
|
label="${this.labelResolver.resolve("presetsSelector")}"
|
|
2878
2878
|
outlined
|
|
2879
2879
|
@change=${r=>this.selectedPreset=r.detail}>
|
|
2880
|
-
${(0,
|
|
2880
|
+
${(0,os.repeat)((e=this.presets)!==null&&e!==void 0?e:[],r=>r.name,r=>H.html`
|
|
2881
2881
|
<ft-select-option value="${r.name}"
|
|
2882
2882
|
label="${r.name}"
|
|
2883
2883
|
?selected=${r.name===this.selectedPreset}>
|
|
2884
2884
|
</ft-select-option>
|
|
2885
2885
|
`)}
|
|
2886
2886
|
</ft-select>
|
|
2887
|
-
`:
|
|
2887
|
+
`:H.nothing}
|
|
2888
2888
|
<slot name="facets-actions"></slot>
|
|
2889
|
-
${this.forceMenuOpen&&!this.isMobile()?
|
|
2889
|
+
${this.forceMenuOpen&&!this.isMobile()?H.nothing:this.renderDesktopClearFilters()}
|
|
2890
2890
|
</div>
|
|
2891
|
-
`}renderDesktopClearFilters(){return this.metadataFilters.length>0?
|
|
2891
|
+
`}renderDesktopClearFilters(){return this.metadataFilters.length>0?H.html`
|
|
2892
2892
|
<ft-button part="facets-actions"
|
|
2893
2893
|
@click=${this.clearFilters}>
|
|
2894
2894
|
${this.labelResolver.resolve("clearFilters")}
|
|
2895
2895
|
</ft-button>
|
|
2896
|
-
`:
|
|
2896
|
+
`:H.nothing}renderDesktopFacets(){return this.hasFacets()?H.html`
|
|
2897
2897
|
<ft-snap-scroll horizontal limitSize controls
|
|
2898
2898
|
class="ft-search-bar--filters-container"
|
|
2899
2899
|
part="filters-container"
|
|
2900
2900
|
exportpartsPrefix="filters-container"
|
|
2901
2901
|
data-filters-count="${this.facets.length+(this.hasLocaleSelector()?1:0)}">
|
|
2902
|
-
${this.hasLocaleSelector()?
|
|
2902
|
+
${this.hasLocaleSelector()?H.html`
|
|
2903
2903
|
<div part="content-locale-selector">
|
|
2904
2904
|
<div part="content-locale-selector-header">
|
|
2905
2905
|
<ft-typography variant="overline" id="content_locale_radio_group_label" part="content-locale-selector-label">
|
|
@@ -2908,8 +2908,8 @@
|
|
|
2908
2908
|
</div>
|
|
2909
2909
|
${this.getContentLocaleRadioGroup()}
|
|
2910
2910
|
</div>
|
|
2911
|
-
`:
|
|
2912
|
-
${(0,
|
|
2911
|
+
`:H.nothing}
|
|
2912
|
+
${(0,os.repeat)(this.facets,e=>e.key,e=>{let r=Ho(e),i=r.options.some(s=>{var o,a;return((a=(o=s.subOptions)===null||o===void 0?void 0:o.length)!==null&&a!==void 0?a:0)>0}),n=e.key.replace(":","-");return H.html`
|
|
2913
2913
|
<ft-filter
|
|
2914
2914
|
class="${i?"ft-search-bar--hierarchical-filter":""}"
|
|
2915
2915
|
part="filters filter filter-${n}"
|
|
@@ -2924,32 +2924,32 @@
|
|
|
2924
2924
|
raiseSelectedOptions
|
|
2925
2925
|
.options=${r.options}
|
|
2926
2926
|
.displayedValuesLimit=${10}
|
|
2927
|
-
@change=${
|
|
2927
|
+
@change=${s=>this.setFilter(r.id,s.detail)}
|
|
2928
2928
|
></ft-filter>
|
|
2929
2929
|
`})}
|
|
2930
2930
|
</ft-snap-scroll>
|
|
2931
|
-
`:
|
|
2931
|
+
`:H.nothing}firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",r=>{r.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var r,i,n,s,o;if(e.has("labels")&&(this.labelResolver=new Y.ParametrizedLabelResolver(Mp,this.labels)),e.has("sizeCategory")&&(this.mobileMenuOpen=!1,this.displayFacets=this.displayFacets&&!this.isMobile()),super.update(e),(e.has("availableContentLocales")||e.has("contentLocale"))&&this.availableContentLocales.length>0){let a=l=>this.availableContentLocales.some(u=>u.lang==l);a(this.contentLocale)||(this.contentLocale=e.has("contentLocale")&&a(e.get("contentLocale"))?e.get("contentLocale"):(r=this.availableContentLocales[0])===null||r===void 0?void 0:r.lang)}if(e.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.initRecentSearches()),e.has("presets")&&((i=this.presets)!==null&&i!==void 0?i:[]).forEach(a=>a.metadataFilters.forEach(l=>{l.valueFilter&&(l.valueFilter.values=l.valueFilter.values.map(u=>yn(u)))})),e.has("presets")||e.has("selectedPreset")){let a=((n=this.presets)!==null&&n!==void 0?n:[]).find(l=>l.name===this.selectedPreset);a&&!this.compareRequests(this.request,a)&&this.setFiltersFromPreset(a)}e.has("contentLocale")&&this.contentLocale!=null&&(this.knownFacetLabels=new Map),["contentLocale","metadataFilters"].some(a=>e.has(a))&&(this.selectedPreset=(o=((s=this.presets)!==null&&s!==void 0?s:[]).find(a=>this.compareRequests(a,this.request)))===null||o===void 0?void 0:o.name),["baseUrl","apiIntegrationIdentifier"].some(a=>e.has(a))&&(this.api=void 0,this.initApi()),e.has("api")&&this.api&&this.initSearchData(),["uiLocale","contentLocale","metadataFilters","displayedFilters"].some(a=>e.has(a))&&this.updateFacets(),["query","uiLocale","contentLocale","metadataFilters","displayedFilters","api"].some(a=>e.has(a))&&this.suggestManager.update(),["query","uiLocale","contentLocale","metadataFilters"].some(a=>e.has(a))&&this.dispatchStateChangeEvent()}dispatchStateChangeEvent(){this.stateChangeEventDebouncer.run(()=>this.dispatchEvent(new ra(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(zf)),this.facets=[];for(let i of this.facetsRequest)r.has(i.id)?this.facets.push(r.get(i.id)):this.knownFacetLabels.has(i.id)&&this.facets.push({key:i.id,label:this.knownFacetLabels.get(i.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1})}onFloatingContainerKeyUp(e){var r;e.key==="Escape"&&(this.displayFacets=!1,(r=this.filtersOpener)===null||r===void 0||r.focus())}setQuery(e){this.input&&(this.input.value=e),this.query=e}onLaunchSearch(){if(this.query){let e=this.recentSearches.filter(r=>r.toLowerCase()!==this.query.toLowerCase()).filter((r,i)=>i<20);this.recentSearches=[this.query,...e],this.saveRecentSearches()}this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}initRecentSearches(){var e;this.recentSearches=JSON.parse((e=window.localStorage.getItem(this.recentSearchesStorageKey))!==null&&e!==void 0?e:"[]")}saveRecentSearches(){let e=JSON.stringify(this.recentSearches);window.localStorage.setItem(this.recentSearchesStorageKey,e),window.dispatchEvent(new StorageEvent("storage",{key:this.recentSearchesStorageKey,newValue:e,storageArea:window.localStorage,url:window.location.href}))}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer),this.focusOnDisplay&&!Y.isTouchScreen&&this.focusInput(),O.addEventListener("authentication-change",this.initSearchData),this.initSearchData()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox),document.removeEventListener("focusin",this.closeFloatingContainer),document.removeEventListener("click",this.closeFloatingContainer),O.removeEventListener("authentication-change",this.initSearchData)}updateSize(e){this.sizeCategory=e.detail.category}setFilter(e,r){let i=this.metadataFilters.filter(n=>!n.valueFilter||n.key!==e);this.facets.forEach(n=>{n.key===e&&(0,Y.flatDeep)(n.rootNodes,s=>s.childNodes).forEach(s=>s.selected=r.includes(s.value))}),r.length&&i.push({key:e,valueFilter:{negative:!1,values:r}}),this.metadataFilters=i,this.scrollToFacet=e}setFiltersFromPreset(e){e!=null&&(e.contentLocale!=null&&(this.contentLocale=e.contentLocale),this.metadataFilters=e.metadataFilters)}clearFilters(){this.facets.forEach(r=>(0,Y.flatDeep)(r.rootNodes,i=>i.childNodes).forEach(i=>i.selected=!1)),this.metadataFilters=[];let e=this.facets[0];this.scrollToFacet=e?.key}querySelector(e){return this.shadowRoot.querySelector(e)}querySelectorAll(e){return this.shadowRoot.querySelectorAll(e)}renderDesktopFloatingMenu(){return this.forceMenuOpen?H.nothing:H.html`
|
|
2932
2932
|
<div class="ft-search-bar--floating-panel"
|
|
2933
2933
|
id="ft-search-bar-floating-panel"
|
|
2934
2934
|
@keyup=${this.onFloatingContainerKeyUp}
|
|
2935
2935
|
part="floating-panel"
|
|
2936
2936
|
tabindex="-1">
|
|
2937
2937
|
${this.renderDesktopMenu()}
|
|
2938
|
-
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};
|
|
2938
|
+
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};w.elementDefinitions={"ft-accordion":Nt,"ft-accordion-item":gt,"ft-button":C,"ft-chip":ae,"ft-filter":z,"ft-filter-option":at,"ft-icon":ee,"ft-ripple":L,"ft-select":Z,"ft-select-option":Me,"ft-size-watcher":rt,"ft-skeleton":fr,"ft-snap-scroll":be,"ft-tooltip":he,"ft-typography":K,"ft-radio-group":st,"ft-radio":Ce};w.styles=[Zt,Y.noTextInputDefaultClearButton,wp,Op,Ut.styles,Bt.styles,Y.screenReaderStyles];F([(0,B.property)({type:Boolean})],w.prototype,"dense",void 0);F([(0,B.property)()],w.prototype,"mode",void 0);F([(0,B.property)({type:Boolean})],w.prototype,"forceMobileMenuOpen",void 0);F([(0,B.property)({type:Boolean})],w.prototype,"forceMenuOpen",void 0);F([(0,B.property)()],w.prototype,"baseUrl",void 0);F([(0,B.property)()],w.prototype,"apiIntegrationIdentifier",void 0);F([(0,B.property)()],w.prototype,"contentLocale",void 0);F([(0,B.state)()],w.prototype,"availableContentLocales",void 0);F([(0,B.state)()],w.prototype,"availableContentLocalesInitialized",void 0);F([(0,B.property)()],w.prototype,"uiLocale",void 0);F([(0,Y.jsonProperty)({})],w.prototype,"labels",void 0);F([(0,Y.jsonProperty)([])],w.prototype,"displayedFilters",void 0);F([(0,Y.jsonProperty)([])],w.prototype,"presets",void 0);F([(0,B.property)({type:String,reflect:!0})],w.prototype,"selectedPreset",void 0);F([(0,Y.jsonProperty)([])],w.prototype,"priors",void 0);F([(0,B.property)()],w.prototype,"searchRequestSerializer",void 0);F([(0,B.property)({type:Boolean})],w.prototype,"focusOnDisplay",void 0);F([(0,B.state)()],w.prototype,"metadataFilters",void 0);F([(0,B.state)()],w.prototype,"sizeCategory",void 0);F([(0,B.state)()],w.prototype,"displayFacets",void 0);F([(0,B.state)()],w.prototype,"mobileMenuOpen",void 0);F([(0,B.state)()],w.prototype,"facets",void 0);F([(0,B.state)()],w.prototype,"facetsInitialized",void 0);F([(0,B.query)(".ft-search-bar--container")],w.prototype,"container",void 0);F([(0,B.query)(".ft-search-bar--filters-opener")],w.prototype,"filtersOpener",void 0);F([(0,B.query)(".ft-search-bar--floating-panel")],w.prototype,"floatingContainer",void 0);F([(0,B.query)("ft-snap-scroll.ft-search-bar--filters-container")],w.prototype,"scrollingFiltersContainer",void 0);F([(0,B.query)(".ft-search-bar--input")],w.prototype,"input",void 0);F([(0,B.query)(".ft-search-bar--launch-search")],w.prototype,"launchSearchButton",void 0);F([(0,B.state)()],w.prototype,"query",void 0);F([(0,B.state)()],w.prototype,"suggestions",void 0);F([(0,B.state)()],w.prototype,"recentSearches",void 0);F([(0,B.state)()],w.prototype,"scrollToFacet",void 0);F([(0,B.state)()],w.prototype,"api",void 0);F([(0,B.state)()],w.prototype,"displaySuggestListbox",void 0);F([(0,B.state)()],w.prototype,"selectedSuggestOptionId",void 0);F([(0,B.state)()],w.prototype,"selectedSuggestRemoveRecent",void 0);F([(0,B.state)()],w.prototype,"facetsLoaded",void 0);var Fp=c(f());var Np={"ft-search-bar":w};(0,Fp.customElements)(Np);var zp=Bp.css`
|
|
2939
2939
|
* {
|
|
2940
2940
|
box-sizing: border-box;
|
|
2941
2941
|
}
|
|
2942
2942
|
|
|
2943
2943
|
.ft-search-input-suggestion {
|
|
2944
2944
|
position: absolute;
|
|
2945
|
-
z-index: ${
|
|
2945
|
+
z-index: ${Se.floatingZIndex};
|
|
2946
2946
|
top: calc(100% + 2px);
|
|
2947
2947
|
left: -1px;
|
|
2948
2948
|
right: -1px;
|
|
2949
|
-
background: ${
|
|
2950
|
-
border: 1px solid ${
|
|
2951
|
-
border-radius: 0 0 ${
|
|
2952
|
-
box-shadow: ${
|
|
2949
|
+
background: ${Se.colorSurface};
|
|
2950
|
+
border: 1px solid ${Se.colorOutline};
|
|
2951
|
+
border-radius: 0 0 ${Se.borderRadius} ${Se.borderRadius};
|
|
2952
|
+
box-shadow: ${Se.elevation02};
|
|
2953
2953
|
}
|
|
2954
2954
|
|
|
2955
2955
|
.ft-search-input-suggestion--container {
|
|
@@ -2960,7 +2960,7 @@
|
|
|
2960
2960
|
.ft-search-input-suggestion--container:has([aria-selected="true"]),
|
|
2961
2961
|
.ft-search-input-suggestion--container:hover {
|
|
2962
2962
|
outline: none;
|
|
2963
|
-
box-shadow: inset 3px 0 0 ${
|
|
2963
|
+
box-shadow: inset 3px 0 0 ${A.activeItemBorderColor};
|
|
2964
2964
|
}
|
|
2965
2965
|
|
|
2966
2966
|
.ft-search-input-suggestion--suggestion {
|
|
@@ -2971,7 +2971,7 @@
|
|
|
2971
2971
|
padding: 8px;
|
|
2972
2972
|
gap: 8px;
|
|
2973
2973
|
cursor: pointer;
|
|
2974
|
-
color: ${
|
|
2974
|
+
color: ${Se.colorOnSurface};
|
|
2975
2975
|
min-height: 44px;
|
|
2976
2976
|
flex-grow: 1;
|
|
2977
2977
|
}
|
|
@@ -2987,21 +2987,21 @@
|
|
|
2987
2987
|
}
|
|
2988
2988
|
|
|
2989
2989
|
ft-ripple {
|
|
2990
|
-
${(0,
|
|
2990
|
+
${(0,Up.setVariable)(q.opacityContentOnSurfaceHover,q.opacityContentOnSurfaceSelected)}
|
|
2991
2991
|
}
|
|
2992
|
-
`;var
|
|
2992
|
+
`;var ia=c(cr());var mr=class{constructor(e){this.ftSearchInput=e,this.listboxId="ft-search-input-suggestion"}render(){var e;let r=Wt.get(),{recentQuerySuggestions:i}=this.ftSearchInput;return Vr.html`
|
|
2993
2993
|
<div class="ft-search-input-suggestion ft-word-wrap"
|
|
2994
2994
|
id="${this.listboxId}"
|
|
2995
2995
|
role="listbox"
|
|
2996
|
-
aria-label="${
|
|
2996
|
+
aria-label="${Qt.messages.suggestionsLabel()}"
|
|
2997
2997
|
part="container">
|
|
2998
|
-
${(0,
|
|
2999
|
-
${(0,
|
|
2998
|
+
${(0,ia.repeat)(i,n=>n,(n,s)=>this.renderRecentQuery(s,n,r))}
|
|
2999
|
+
${(0,ia.repeat)((e=this.ftSearchInput.suggestResults)!==null&&e!==void 0?e:[],n=>n.value,(n,s)=>this.renderSuggestion(i.length+s,n,r))}
|
|
3000
3000
|
</div>
|
|
3001
|
-
`}renderRecentQuery(e,r,i){return this.renderOption(e,r,"history",
|
|
3001
|
+
`}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"?ye.BOOK:ye.ARTICLE;break;case"DOCUMENT":s=pn(r.mimeType,r.filenameExtension);break;case"TOPIC":s=ye.TOPICS;break;case"HTML_PACKAGE":s=ye.BOX_CODE;break;case"HTML_PACKAGE_PAGE":s=ye.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):Vr.nothing;return Vr.html`
|
|
3002
3002
|
<div part="suggestion-container"
|
|
3003
3003
|
class="ft-search-input-suggestion--container">
|
|
3004
|
-
<a href="${
|
|
3004
|
+
<a href="${u}"
|
|
3005
3005
|
part="suggestion"
|
|
3006
3006
|
class="ft-search-input-suggestion--suggestion"
|
|
3007
3007
|
role="option"
|
|
@@ -3012,36 +3012,36 @@
|
|
|
3012
3012
|
>
|
|
3013
3013
|
<ft-ripple ?activated=${a&&!l}></ft-ripple>
|
|
3014
3014
|
<ft-icon variant="${n}" value="${i}" part="suggestion-icon"></ft-icon>
|
|
3015
|
-
<ft-typography variant="${
|
|
3015
|
+
<ft-typography variant="${ce.body1}">${r}</ft-typography>
|
|
3016
3016
|
</a>
|
|
3017
|
-
${
|
|
3018
|
-
<ft-button icon="${
|
|
3017
|
+
${s?Vr.html`
|
|
3018
|
+
<ft-button icon="${ye.CLOSE}"
|
|
3019
3019
|
round
|
|
3020
3020
|
part="remove-suggestion"
|
|
3021
3021
|
class="ft-search-input-suggestion--remove"
|
|
3022
3022
|
id="remove-suggestion-${e}"
|
|
3023
|
-
label="${
|
|
3023
|
+
label="${Qt.messages.removeRecentQuery(r)}"
|
|
3024
3024
|
tooltipPosition="left"
|
|
3025
3025
|
tabindex="-1"
|
|
3026
3026
|
?activated=${a&&l}
|
|
3027
3027
|
@click=${()=>this.onRemoveRecentQuery(r)}>
|
|
3028
3028
|
</ft-button>
|
|
3029
|
-
`:
|
|
3029
|
+
`:Vr.nothing}
|
|
3030
3030
|
</div>
|
|
3031
|
-
`}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()}};
|
|
3032
|
-
<div class="${(0,
|
|
3031
|
+
`}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()}};mr.elementDefinitions={"ft-ripple":L,"ft-typography":K,"ft-icon":ee,"ft-button":C};mr.styles=[Vp.wordWrap,zp];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},Vf=5;function Hf(t){let e=t.liveQuery.trim().toLowerCase();return t.recentQueries.filter(r=>r.toLowerCase().includes(e)).slice(0,Vf)}var le=class extends di(mn){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 mr(this),this.showSuggestionsOnFocus=!0,this.onPointerDown=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||this.suggestions.closeBox()},this.addI18nContext(Qt)}render(){var e;let r=this.suggestions.optionsCount()>0,i={"ft-search-input":!0,"ft-search-input--with-suggestions":r,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},n={...this.request,query:this.liveQuery},s=this.useCustomSearchPath?this.launchSearchPath:void 0,o=Wt.get().serializeToCurrentPageIfPossible(n,s),a=!this.forceCloseSuggestion&&this.displaySuggestListbox&&r;return xi.html`
|
|
3032
|
+
<div class="${(0,Hp.classMap)(i)}" @focusout=${()=>this.forceCloseSuggestion=!1} role="search">
|
|
3033
3033
|
<div class="ft-search-input--input-container" part="input-container" tabindex="-1">
|
|
3034
3034
|
<div class="ft-search-input--input-outline" part="input-outline">
|
|
3035
3035
|
<input class="ft-search-input--input ft-typography--body2"
|
|
3036
3036
|
part="input"
|
|
3037
3037
|
type="search"
|
|
3038
|
-
placeholder="${this.placeholder?this.placeholder.message:
|
|
3038
|
+
placeholder="${this.placeholder?this.placeholder.message:Qt.messages.placeholder()}"
|
|
3039
3039
|
.value=${this.liveQuery}
|
|
3040
3040
|
role="combobox"
|
|
3041
3041
|
aria-autocomplete="list"
|
|
3042
3042
|
aria-controls="${this.suggestions.listboxId}"
|
|
3043
3043
|
aria-expanded="${this.displaySuggestListbox}"
|
|
3044
|
-
aria-activedescendant="${(e=this.suggestions.activeElementId)!==null&&e!==void 0?e:
|
|
3044
|
+
aria-activedescendant="${(e=this.suggestions.activeElementId)!==null&&e!==void 0?e:xi.nothing}"
|
|
3045
3045
|
@input=${this.onInput}
|
|
3046
3046
|
@click=${this.onClick}
|
|
3047
3047
|
@focus=${this.onFocus}
|
|
@@ -3049,18 +3049,18 @@
|
|
|
3049
3049
|
@keyup=${this.onSearchBarKeyUp}>
|
|
3050
3050
|
</div>
|
|
3051
3051
|
<div class="sr-only" aria-live="polite" aria-atomic="true">
|
|
3052
|
-
${a?
|
|
3052
|
+
${a?Qt.messages.ariaLiveSuggestions(this.suggestions.recentQueriesCount(),this.suggestions.suggestionsCount()):""}
|
|
3053
3053
|
</div>
|
|
3054
|
-
${a?this.suggestions.render():
|
|
3054
|
+
${a?this.suggestions.render():xi.nothing}
|
|
3055
3055
|
</div>
|
|
3056
3056
|
<div class="ft-search-input--actions" part="actions">
|
|
3057
|
-
${this.liveQuery?
|
|
3057
|
+
${this.liveQuery?xi.html`
|
|
3058
3058
|
<ft-button id="clear-button"
|
|
3059
3059
|
class="ft-search-input--clear-query"
|
|
3060
3060
|
part="clear-query"
|
|
3061
3061
|
icon="close"
|
|
3062
3062
|
round dense
|
|
3063
|
-
label="${
|
|
3063
|
+
label="${Qt.messages.clearButton()}"
|
|
3064
3064
|
@click=${()=>this.onClearInput()}
|
|
3065
3065
|
></ft-button>
|
|
3066
3066
|
<div class="ft-search-input--separator"></div>
|
|
@@ -3069,13 +3069,13 @@
|
|
|
3069
3069
|
part="launch-search-in-input"
|
|
3070
3070
|
icon="search"
|
|
3071
3071
|
round dense
|
|
3072
|
-
label="${
|
|
3073
|
-
href="${this.useCustomSearchPath?
|
|
3072
|
+
label="${Qt.messages.searchButton()}"
|
|
3073
|
+
href="${this.useCustomSearchPath?o:""}"
|
|
3074
3074
|
@click=${()=>this.launchSearch(this.liveQuery)}
|
|
3075
3075
|
></ft-button>
|
|
3076
3076
|
</div>
|
|
3077
3077
|
</div>
|
|
3078
|
-
`}onSearchBarKeyDown(e){switch(this.forceCloseSuggestion=!1,["Escape","Tab","Shift"].includes(e.key)||(this.displaySuggestListbox=!0),e.key){case"Tab":this.suggestions.closeBox();break;case"Escape":this.displaySuggestListbox&&this.suggestions.optionsCount()>0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.closeBox());break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestions.selectNext();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestions.selectPrevious();break;case"ArrowLeft":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectLeft());break;case"ArrowRight":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectRight());break;case"Enter":{let r=this.suggestions.activeElement;if(r){r.click();break}this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break}case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){e.key==="Backspace"&&e.stopPropagation()}onInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}onClearInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(""),this.triggerSearchOnClear&&this.launchSearch(""),this.input.focus()}launchSearch(e){var r,i;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(r=this.stateManager)===null||r===void 0||r.setQuery(e),(i=this.stateManager)===null||i===void 0||i.addRecentQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.suggestions.closeBox()}onClick(){this.onFocus()}onFocus(){this.showSuggestionsOnFocus&&(this.displaySuggestListbox=!0),this.forceCloseSuggestion=!1}async focusInput(e=!0){this.showSuggestionsOnFocus=e,await(0,
|
|
3078
|
+
`}onSearchBarKeyDown(e){switch(this.forceCloseSuggestion=!1,["Escape","Tab","Shift"].includes(e.key)||(this.displaySuggestListbox=!0),e.key){case"Tab":this.suggestions.closeBox();break;case"Escape":this.displaySuggestListbox&&this.suggestions.optionsCount()>0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.closeBox());break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestions.selectNext();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestions.selectPrevious();break;case"ArrowLeft":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectLeft());break;case"ArrowRight":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectRight());break;case"Enter":{let r=this.suggestions.activeElement;if(r){r.click();break}this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break}case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){e.key==="Backspace"&&e.stopPropagation()}onInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}onClearInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(""),this.triggerSearchOnClear&&this.launchSearch(""),this.input.focus()}launchSearch(e){var r,i;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(r=this.stateManager)===null||r===void 0||r.setQuery(e),(i=this.stateManager)===null||i===void 0||i.addRecentQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.suggestions.closeBox()}onClick(){this.onFocus()}onFocus(){this.showSuggestionsOnFocus&&(this.displaySuggestListbox=!0),this.forceCloseSuggestion=!1}async focusInput(e=!0){this.showSuggestionsOnFocus=e,await(0,Ne.waitFor)(()=>this.input,50),this.input.focus(),this.showSuggestionsOnFocus=!0}async connectedCallback(){super.connectedCallback(),this.focusOnDisplay&&!Ne.isTouchScreen&&this.focusInput(!1)}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("displaySuggestListbox")&&(this.displaySuggestListbox?document.addEventListener("pointerdown",this.onPointerDown):document.removeEventListener("pointerdown",this.onPointerDown))}};le.elementDefinitions={"ft-button":C,...mr.elementDefinitions};le.styles=[Zt,Ne.noTextInputDefaultClearButton,Ju,...mr.styles,Ne.screenReaderStyles];De([(0,Ne.redux)()],le.prototype,"request",void 0);De([(0,Ne.redux)()],le.prototype,"liveQuery",void 0);De([(0,Ne.redux)()],le.prototype,"suggestResults",void 0);De([(0,Ne.redux)({selector:Hf})],le.prototype,"recentQuerySuggestions",void 0);De([(0,lt.state)()],le.prototype,"forceCloseSuggestion",void 0);De([(0,lt.state)()],le.prototype,"displaySuggestListbox",void 0);De([(0,lt.state)()],le.prototype,"selectedSuggestOptionIndex",void 0);De([(0,lt.state)()],le.prototype,"selectedSuggestOptionRemove",void 0);De([(0,lt.property)()],le.prototype,"launchSearchPath",void 0);De([an()],le.prototype,"placeholder",void 0);De([(0,lt.property)({type:Boolean})],le.prototype,"useCustomSearchPath",void 0);De([(0,lt.property)({type:Boolean})],le.prototype,"triggerSearchOnClear",void 0);De([(0,lt.property)({type:Boolean})],le.prototype,"focusOnDisplay",void 0);De([(0,lt.query)(".ft-search-input--input")],le.prototype,"input",void 0);De([(0,lt.query)('[part="launch-search-in-input"]')],le.prototype,"launchSearchButton",void 0);De([(0,Ne.ignoreComposingEvents)()],le.prototype,"onSearchBarKeyDown",null);De([(0,Ne.ignoreComposingEvents)()],le.prototype,"onSearchBarKeyUp",null);var jp={"ft-search-input":le};(0,qp.customElements)(jp);})();
|
|
3079
3079
|
/*! Bundled license information:
|
|
3080
3080
|
|
|
3081
3081
|
lit-html/lit-html.js:
|