@fluid-topics/ft-search-bar 2.2.25 → 2.2.27
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-bar.light.js +429 -414
- package/build/ft-search-bar.min.js +356 -341
- package/package.json +18 -18
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var bp=Object.create;var
|
|
1
|
+
"use strict";(()=>{var bp=Object.create;var Is=Object.defineProperty;var vp=Object.getOwnPropertyDescriptor;var xp=Object.getOwnPropertyNames;var Sp=Object.getPrototypeOf,Ep=Object.prototype.hasOwnProperty;var Fr=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var Ap=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of xp(e))!Ep.call(t,o)&&o!==r&&Is(t,o,{get:()=>e[o],enumerable:!(i=vp(e,o))||i.enumerable});return t};var c=(t,e,r)=>(r=t!=null?bp(Sp(t)):{},Ap(e||!t||!t.__esModule?Is(r,"default",{value:t,enumerable:!0}):r,t));var m=Fr((uh,Ms)=>{Ms.exports=ftGlobals.wcUtils});var E=Fr((ph,Ns)=>{Ns.exports=ftGlobals.lit});var j=Fr((fh,Fs)=>{Fs.exports=ftGlobals.litDecorators});var or=Fr((hh,Bs)=>{Bs.exports=ftGlobals.litRepeat});var nt=Fr((am,Va)=>{Va.exports=ftGlobals.litClassMap});var Pd=Fr((Ox,Dd)=>{Dd.exports=ftGlobals.litUnsafeHTML});var mp=c(m());var V=c(E()),F=c(j()),Xi=c(or()),Y=c(m());var Vs=c(E()),sr=c(j()),Zi=c(m());var rt;(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(rt||(rt={}));var Us=c(E());var zs=Us.css`
|
|
2
2
|
.ft-size-watcher--pixel {
|
|
3
3
|
width: 0;
|
|
4
4
|
height: 0;
|
|
@@ -17,14 +17,24 @@
|
|
|
17
17
|
.ft-size-watcher--local .ft-size-watcher--watcher {
|
|
18
18
|
width: 100%;
|
|
19
19
|
}
|
|
20
|
-
`;var di=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},
|
|
20
|
+
`;var di=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},ho=class extends CustomEvent{constructor(e,r){super("change",{detail:{size:e,category:r}})}},We=class extends Zi.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=rt.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new Zi.Debouncer}render(){return Vs.html`
|
|
21
21
|
<div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
|
|
22
22
|
<div class="ft-size-watcher--watcher"></div>
|
|
23
23
|
</div>
|
|
24
|
-
`}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=rt.S:this.size<976?this.category=rt.M:this.size<1024?this.category=rt.L:this.size<1440?this.category=rt.XL:this.category=rt.XXL,this.dispatchEvent(new
|
|
25
|
-
\f\r]`,ui=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
26
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ks=/'/g,Gs=/"/g,Qs=/^(?:script|style|textarea|title)$/i,So=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Js=So(1),ea=So(2),ta=So(3),fi=Symbol.for("lit-noChange"),ue=Symbol.for("lit-nothing"),Xs=new WeakMap,cr=dr.createTreeWalker(dr,129);function ra(t,e){if(!xo(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return js!==void 0?js.createHTML(e):e}var _p=(t,e)=>{let r=t.length-1,i=[],o,n=e===2?"<svg>":e===3?"<math>":"",s=ui;for(let a=0;a<r;a++){let l=t[a],d,u,p=-1,f=0;for(;f<l.length&&(s.lastIndex=f,u=s.exec(l),u!==null);)f=s.lastIndex,s===ui?u[1]==="!--"?s=Ws:u[1]!==void 0?s=qs:u[2]!==void 0?(Qs.test(u[2])&&(o=RegExp("</"+u[2],"g")),s=lr):u[3]!==void 0&&(s=lr):s===lr?u[0]===">"?(s=o??ui,p=-1):u[1]===void 0?p=-2:(p=s.lastIndex-u[2].length,d=u[1],s=u[3]===void 0?lr:u[3]==='"'?Gs:Ks):s===Gs||s===Ks?s=lr:s===Ws||s===qs?s=ui:(s=lr,o=void 0);let b=s===lr&&t[a+1].startsWith("/>")?" ":"";n+=s===ui?l+Cp:p>=0?(i.push(d),l.slice(0,p)+Ys+l.slice(p)+Ht+b):l+Ht+(p===-2?a:b)}return[ra(t,n+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},hi=class t{constructor({strings:e,_$litType$:r},i){let o;this.parts=[];let n=0,s=0,a=e.length-1,l=this.parts,[d,u]=_p(e,r);if(this.el=t.createElement(d,i),cr.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(o=cr.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(let p of o.getAttributeNames())if(p.endsWith(Ys)){let f=u[s++],b=o.getAttribute(p).split(Ht),x=/([.?@])?(.*)/.exec(f);l.push({type:1,index:n,name:x[2],strings:b,ctor:x[1]==="."?mo:x[1]==="?"?go:x[1]==="@"?yo:Ur}),o.removeAttribute(p)}else p.startsWith(Ht)&&(l.push({type:6,index:n}),o.removeAttribute(p));if(Qs.test(o.tagName)){let p=o.textContent.split(Ht),f=p.length-1;if(f>0){o.textContent=Zi?Zi.emptyScript:"";for(let b=0;b<f;b++)o.append(p[b],Qi()),cr.nextNode(),l.push({type:2,index:++n});o.append(p[f],Qi())}}}else if(o.nodeType===8)if(o.data===Zs)l.push({type:2,index:n});else{let p=-1;for(;(p=o.data.indexOf(Ht,p+1))!==-1;)l.push({type:7,index:n}),p+=Ht.length-1}n++}}static createElement(e,r){let i=dr.createElement("template");return i.innerHTML=e,i}};function Br(t,e,r=t,i){if(e===fi)return e;let o=i!==void 0?r._$Co?.[i]:r._$Cl,n=pi(e)?void 0:e._$litDirective$;return o?.constructor!==n&&(o?._$AO?.(!1),n===void 0?o=void 0:(o=new n(t),o._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=o:r._$Cl=o),o!==void 0&&(e=Br(t,o._$AS(t,e.values),o,i)),e}var ho=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,o=(e?.creationScope??dr).importNode(r,!0);cr.currentNode=o;let n=cr.nextNode(),s=0,a=0,l=i[0];for(;l!==void 0;){if(s===l.index){let d;l.type===2?d=new Ji(n,n.nextSibling,this,e):l.type===1?d=new l.ctor(n,l.name,l.strings,this,e):l.type===6&&(d=new bo(n,this,e)),this._$AV.push(d),l=i[++a]}s!==l?.index&&(n=cr.nextNode(),s++)}return cr.currentNode=dr,o}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},Ji=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,o){this.type=2,this._$AH=ue,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Br(this,e,r),pi(e)?e===ue||e==null||e===""?(this._$AH!==ue&&this._$AR(),this._$AH=ue):e!==this._$AH&&e!==fi&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):wp(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!==ue&&pi(this._$AH)?this._$AA.nextSibling.data=e:this.T(dr.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,o=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=hi.createElement(ra(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(r);else{let n=new ho(o,this),s=n.u(this.options);n.p(r),this.T(s),this._$AH=n}}_$AC(e){let r=Xs.get(e.strings);return r===void 0&&Xs.set(e.strings,r=new hi(e)),r}k(e){xo(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,o=0;for(let n of e)o===r.length?r.push(i=new t(this.O(Qi()),this.O(Qi()),this,this.options)):i=r[o],i._$AI(n),o++;o<r.length&&(this._$AR(i&&i._$AB.nextSibling,o),r.length=o)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=Hs(e).nextSibling;Hs(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Ur=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,o,n){this.type=1,this._$AH=ue,this._$AN=void 0,this.element=e,this.name=r,this._$AM=o,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ue}_$AI(e,r=this,i,o){let n=this.strings,s=!1;if(n===void 0)e=Br(this,e,r,0),s=!pi(e)||e!==this._$AH&&e!==fi,s&&(this._$AH=e);else{let a=e,l,d;for(e=n[0],l=0;l<n.length-1;l++)d=Br(this,a[i+l],r,l),d===fi&&(d=this._$AH[l]),s||=!pi(d)||d!==this._$AH[l],d===ue?e=ue:e!==ue&&(e+=(d??"")+n[l+1]),this._$AH[l]=d}s&&!o&&this.j(e)}j(e){e===ue?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},mo=class extends Ur{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ue?void 0:e}},go=class extends Ur{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ue)}},yo=class extends Ur{constructor(e,r,i,o,n){super(e,r,i,o,n),this.type=5}_$AI(e,r=this){if((e=Br(this,e,r,0)??ue)===fi)return;let i=this._$AH,o=e===ue&&i!==ue||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,n=e!==ue&&(i===ue||o);o&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},bo=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){Br(this,e)}};var Op=vo.litHtmlPolyfillSupport;Op?.(hi,Ji),(vo.litHtmlVersions??=[]).push("3.3.3");var na=Symbol.for(""),Rp=t=>{if(t?.r===na)return t?._$litStatic$},Eo=t=>({_$litStatic$:t,r:na});var ia=new Map,Ao=t=>(e,...r)=>{let i=r.length,o,n,s=[],a=[],l,d=0,u=!1;for(;d<i;){for(l=e[d];d<i&&(n=r[d],(o=Rp(n))!==void 0);)l+=o+e[++d],u=!0;d!==i&&a.push(n),s.push(l),d++}if(d===i&&s.push(e[i]),u){let p=s.join("$$lit$$");(e=ia.get(p))===void 0&&(s.raw=s,ia.set(p,e=s)),r=a}return t(e,...r)},Co=Ao(Js),kh=Ao(ea),Lh=Ao(ta);var wo=c(j()),ga=c(m());var pe;(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"})(pe||(pe={}));var it=c(E()),h=c(m()),oa=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),Mt=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),y={fontFamily:Mt,fontSize:h.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:h.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:h.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:h.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:h.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:h.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},ur={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-font-family","",oa),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-font-size","",y.fontSize,"20px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",y.letterSpacing,"0.15px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-line-height","",y.lineHeight,"1.2"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",y.textDecoration,"inherit")},pr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",oa),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",y.letterSpacing,"0.105px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",y.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",y.textDecoration,"inherit")},fr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Mt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",y.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",y.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",y.letterSpacing,"0.144px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",y.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",y.textDecoration,"inherit")},hr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Mt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",y.letterSpacing,"0.098px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",y.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",y.textDecoration,"inherit")},Ct={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Mt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",y.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",y.letterSpacing,"0.496px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",y.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",y.textDecoration,"inherit")},fe={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Mt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",y.letterSpacing,"0.252px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",y.lineHeight,"1.4"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",y.textDecoration,"inherit")},Be={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Mt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",y.fontSize,"12px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",y.letterSpacing,"0.396px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",y.lineHeight,"1.33"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",y.textDecoration,"inherit")},mr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Mt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",y.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",y.letterSpacing,"0.33px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",y.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",y.textDecoration,"inherit")},gr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Mt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",y.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",y.letterSpacing,"1.5px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",y.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",y.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",y.textDecoration,"inherit")},pt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Mt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-button-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",y.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",y.letterSpacing,"1.246px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-button-line-height","",y.lineHeight,"1.15"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",y.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",y.textDecoration,"inherit")},sa=it.css`
|
|
24
|
+
`}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=rt.S:this.size<976?this.category=rt.M:this.size<1024?this.category=rt.L:this.size<1440?this.category=rt.XL:this.category=rt.XXL,this.dispatchEvent(new ho(this.size,this.category)))},this.debounceTimeout)}};We.elementDefinitions={};We.styles=zs;di([(0,sr.property)({type:Number})],We.prototype,"debounceTimeout",void 0);di([(0,sr.property)({type:Boolean})],We.prototype,"local",void 0);di([(0,sr.property)({type:Number,reflect:!0})],We.prototype,"size",void 0);di([(0,sr.property)({type:String,reflect:!0})],We.prototype,"category",void 0);di([(0,sr.query)(".ft-size-watcher--watcher")],We.prototype,"watcher",void 0);var js=c(m());var Hs={"ft-size-watcher":We};(0,js.customElements)(Hs);var So=globalThis,Ws=t=>t,Qi=So.trustedTypes,Ks=Qi?Qi.createPolicy("lit-html",{createHTML:t=>t}):void 0,Qs="$lit$",Ht=`lit$${Math.random().toFixed(9).slice(2)}$`,Js="?"+Ht,Cp=`<${Js}>`,cr=document,Ji=()=>cr.createComment(""),pi=t=>t===null||typeof t!="object"&&typeof t!="function",Eo=Array.isArray,wp=t=>Eo(t)||typeof t?.[Symbol.iterator]=="function",mo=`[
|
|
25
|
+
\f\r]`,ui=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,qs=/-->/g,Gs=/>/g,ar=RegExp(`>|${mo}(?:([^\\s"'>=/]+)(${mo}*=${mo}*(?:[^
|
|
26
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Xs=/'/g,Ys=/"/g,ea=/^(?:script|style|textarea|title)$/i,Ao=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),ta=Ao(1),ra=Ao(2),ia=Ao(3),fi=Symbol.for("lit-noChange"),ce=Symbol.for("lit-nothing"),Zs=new WeakMap,lr=cr.createTreeWalker(cr,129);function na(t,e){if(!Eo(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ks!==void 0?Ks.createHTML(e):e}var _p=(t,e)=>{let r=t.length-1,i=[],o,n=e===2?"<svg>":e===3?"<math>":"",s=ui;for(let a=0;a<r;a++){let l=t[a],d,u,p=-1,f=0;for(;f<l.length&&(s.lastIndex=f,u=s.exec(l),u!==null);)f=s.lastIndex,s===ui?u[1]==="!--"?s=qs:u[1]!==void 0?s=Gs:u[2]!==void 0?(ea.test(u[2])&&(o=RegExp("</"+u[2],"g")),s=ar):u[3]!==void 0&&(s=ar):s===ar?u[0]===">"?(s=o??ui,p=-1):u[1]===void 0?p=-2:(p=s.lastIndex-u[2].length,d=u[1],s=u[3]===void 0?ar:u[3]==='"'?Ys:Xs):s===Ys||s===Xs?s=ar:s===qs||s===Gs?s=ui:(s=ar,o=void 0);let b=s===ar&&t[a+1].startsWith("/>")?" ":"";n+=s===ui?l+Cp:p>=0?(i.push(d),l.slice(0,p)+Qs+l.slice(p)+Ht+b):l+Ht+(p===-2?a:b)}return[na(t,n+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},hi=class t{constructor({strings:e,_$litType$:r},i){let o;this.parts=[];let n=0,s=0,a=e.length-1,l=this.parts,[d,u]=_p(e,r);if(this.el=t.createElement(d,i),lr.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(o=lr.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(let p of o.getAttributeNames())if(p.endsWith(Qs)){let f=u[s++],b=o.getAttribute(p).split(Ht),x=/([.?@])?(.*)/.exec(f);l.push({type:1,index:n,name:x[2],strings:b,ctor:x[1]==="."?yo:x[1]==="?"?bo:x[1]==="@"?vo:Ur}),o.removeAttribute(p)}else p.startsWith(Ht)&&(l.push({type:6,index:n}),o.removeAttribute(p));if(ea.test(o.tagName)){let p=o.textContent.split(Ht),f=p.length-1;if(f>0){o.textContent=Qi?Qi.emptyScript:"";for(let b=0;b<f;b++)o.append(p[b],Ji()),lr.nextNode(),l.push({type:2,index:++n});o.append(p[f],Ji())}}}else if(o.nodeType===8)if(o.data===Js)l.push({type:2,index:n});else{let p=-1;for(;(p=o.data.indexOf(Ht,p+1))!==-1;)l.push({type:7,index:n}),p+=Ht.length-1}n++}}static createElement(e,r){let i=cr.createElement("template");return i.innerHTML=e,i}};function Br(t,e,r=t,i){if(e===fi)return e;let o=i!==void 0?r._$Co?.[i]:r._$Cl,n=pi(e)?void 0:e._$litDirective$;return o?.constructor!==n&&(o?._$AO?.(!1),n===void 0?o=void 0:(o=new n(t),o._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=o:r._$Cl=o),o!==void 0&&(e=Br(t,o._$AS(t,e.values),o,i)),e}var go=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,o=(e?.creationScope??cr).importNode(r,!0);lr.currentNode=o;let n=lr.nextNode(),s=0,a=0,l=i[0];for(;l!==void 0;){if(s===l.index){let d;l.type===2?d=new en(n,n.nextSibling,this,e):l.type===1?d=new l.ctor(n,l.name,l.strings,this,e):l.type===6&&(d=new xo(n,this,e)),this._$AV.push(d),l=i[++a]}s!==l?.index&&(n=lr.nextNode(),s++)}return lr.currentNode=cr,o}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},en=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,o){this.type=2,this._$AH=ce,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Br(this,e,r),pi(e)?e===ce||e==null||e===""?(this._$AH!==ce&&this._$AR(),this._$AH=ce):e!==this._$AH&&e!==fi&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):wp(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==ce&&pi(this._$AH)?this._$AA.nextSibling.data=e:this.T(cr.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,o=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=hi.createElement(na(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(r);else{let n=new go(o,this),s=n.u(this.options);n.p(r),this.T(s),this._$AH=n}}_$AC(e){let r=Zs.get(e.strings);return r===void 0&&Zs.set(e.strings,r=new hi(e)),r}k(e){Eo(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,o=0;for(let n of e)o===r.length?r.push(i=new t(this.O(Ji()),this.O(Ji()),this,this.options)):i=r[o],i._$AI(n),o++;o<r.length&&(this._$AR(i&&i._$AB.nextSibling,o),r.length=o)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=Ws(e).nextSibling;Ws(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Ur=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,o,n){this.type=1,this._$AH=ce,this._$AN=void 0,this.element=e,this.name=r,this._$AM=o,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ce}_$AI(e,r=this,i,o){let n=this.strings,s=!1;if(n===void 0)e=Br(this,e,r,0),s=!pi(e)||e!==this._$AH&&e!==fi,s&&(this._$AH=e);else{let a=e,l,d;for(e=n[0],l=0;l<n.length-1;l++)d=Br(this,a[i+l],r,l),d===fi&&(d=this._$AH[l]),s||=!pi(d)||d!==this._$AH[l],d===ce?e=ce:e!==ce&&(e+=(d??"")+n[l+1]),this._$AH[l]=d}s&&!o&&this.j(e)}j(e){e===ce?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},yo=class extends Ur{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ce?void 0:e}},bo=class extends Ur{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ce)}},vo=class extends Ur{constructor(e,r,i,o,n){super(e,r,i,o,n),this.type=5}_$AI(e,r=this){if((e=Br(this,e,r,0)??ce)===fi)return;let i=this._$AH,o=e===ce&&i!==ce||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,n=e!==ce&&(i===ce||o);o&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},xo=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){Br(this,e)}};var Op=So.litHtmlPolyfillSupport;Op?.(hi,en),(So.litHtmlVersions??=[]).push("3.3.3");var sa=Symbol.for(""),Rp=t=>{if(t?.r===sa)return t?._$litStatic$},Co=t=>({_$litStatic$:t,r:sa});var oa=new Map,wo=t=>(e,...r)=>{let i=r.length,o,n,s=[],a=[],l,d=0,u=!1;for(;d<i;){for(l=e[d];d<i&&(n=r[d],(o=Rp(n))!==void 0);)l+=o+e[++d],u=!0;d!==i&&a.push(n),s.push(l),d++}if(d===i&&s.push(e[i]),u){let p=s.join("$$lit$$");(e=oa.get(p))===void 0&&(s.raw=s,oa.set(p,e=s)),r=a}return t(e,...r)},_o=wo(ta),kh=wo(ra),Lh=wo(ia);var Oo=c(j()),ba=c(m());var de;(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"})(de||(de={}));var it=c(E()),h=c(m()),aa=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),Nt=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),y={fontFamily:Nt,fontSize:h.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:h.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:h.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:h.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:h.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:h.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},dr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-font-family","",aa),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-font-size","",y.fontSize,"20px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",y.letterSpacing,"0.15px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-line-height","",y.lineHeight,"1.2"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",y.textDecoration,"inherit")},ur={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",aa),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",y.letterSpacing,"0.105px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",y.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",y.textDecoration,"inherit")},pr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Nt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",y.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",y.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",y.letterSpacing,"0.144px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",y.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",y.textDecoration,"inherit")},fr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Nt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",y.letterSpacing,"0.098px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",y.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",y.textDecoration,"inherit")},wt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Nt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",y.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",y.letterSpacing,"0.496px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",y.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",y.textDecoration,"inherit")},ue={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Nt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",y.letterSpacing,"0.252px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",y.lineHeight,"1.4"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",y.textDecoration,"inherit")},Be={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Nt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",y.fontSize,"12px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",y.letterSpacing,"0.396px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",y.lineHeight,"1.33"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",y.textDecoration,"inherit")},hr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Nt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",y.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",y.letterSpacing,"0.33px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",y.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",y.textDecoration,"inherit")},mr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Nt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",y.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",y.letterSpacing,"1.5px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",y.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",y.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",y.textDecoration,"inherit")},pt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Nt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-button-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",y.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",y.letterSpacing,"1.246px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-button-line-height","",y.lineHeight,"1.15"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",y.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",y.textDecoration,"inherit")},la=it.css`
|
|
27
27
|
.ft-typography--title {
|
|
28
|
+
font-family: ${dr.fontFamily};
|
|
29
|
+
font-size: ${dr.fontSize};
|
|
30
|
+
font-weight: ${dr.fontWeight};
|
|
31
|
+
letter-spacing: ${dr.letterSpacing};
|
|
32
|
+
line-height: ${dr.lineHeight};
|
|
33
|
+
text-transform: ${dr.textTransform};
|
|
34
|
+
text-decoration: ${dr.textDecoration};
|
|
35
|
+
}
|
|
36
|
+
`,ca=it.css`
|
|
37
|
+
.ft-typography--title-dense {
|
|
28
38
|
font-family: ${ur.fontFamily};
|
|
29
39
|
font-size: ${ur.fontSize};
|
|
30
40
|
font-weight: ${ur.fontWeight};
|
|
@@ -33,8 +43,8 @@
|
|
|
33
43
|
text-transform: ${ur.textTransform};
|
|
34
44
|
text-decoration: ${ur.textDecoration};
|
|
35
45
|
}
|
|
36
|
-
`,
|
|
37
|
-
.ft-typography--
|
|
46
|
+
`,da=it.css`
|
|
47
|
+
.ft-typography--subtitle1 {
|
|
38
48
|
font-family: ${pr.fontFamily};
|
|
39
49
|
font-size: ${pr.fontSize};
|
|
40
50
|
font-weight: ${pr.fontWeight};
|
|
@@ -43,8 +53,8 @@
|
|
|
43
53
|
text-transform: ${pr.textTransform};
|
|
44
54
|
text-decoration: ${pr.textDecoration};
|
|
45
55
|
}
|
|
46
|
-
`,
|
|
47
|
-
.ft-typography--
|
|
56
|
+
`,ua=it.css`
|
|
57
|
+
.ft-typography--subtitle2 {
|
|
48
58
|
font-family: ${fr.fontFamily};
|
|
49
59
|
font-size: ${fr.fontSize};
|
|
50
60
|
font-weight: ${fr.fontWeight};
|
|
@@ -53,36 +63,26 @@
|
|
|
53
63
|
text-transform: ${fr.textTransform};
|
|
54
64
|
text-decoration: ${fr.textDecoration};
|
|
55
65
|
}
|
|
56
|
-
`,ca=it.css`
|
|
57
|
-
.ft-typography--subtitle2 {
|
|
58
|
-
font-family: ${hr.fontFamily};
|
|
59
|
-
font-size: ${hr.fontSize};
|
|
60
|
-
font-weight: ${hr.fontWeight};
|
|
61
|
-
letter-spacing: ${hr.letterSpacing};
|
|
62
|
-
line-height: ${hr.lineHeight};
|
|
63
|
-
text-transform: ${hr.textTransform};
|
|
64
|
-
text-decoration: ${hr.textDecoration};
|
|
65
|
-
}
|
|
66
66
|
|
|
67
|
-
`,
|
|
67
|
+
`,pa=it.css`
|
|
68
68
|
.ft-typography--body1 {
|
|
69
|
-
font-family: ${
|
|
70
|
-
font-size: ${
|
|
71
|
-
font-weight: ${
|
|
72
|
-
letter-spacing: ${
|
|
73
|
-
line-height: ${
|
|
74
|
-
text-transform: ${
|
|
75
|
-
text-decoration: ${
|
|
69
|
+
font-family: ${wt.fontFamily};
|
|
70
|
+
font-size: ${wt.fontSize};
|
|
71
|
+
font-weight: ${wt.fontWeight};
|
|
72
|
+
letter-spacing: ${wt.letterSpacing};
|
|
73
|
+
line-height: ${wt.lineHeight};
|
|
74
|
+
text-transform: ${wt.textTransform};
|
|
75
|
+
text-decoration: ${wt.textDecoration};
|
|
76
76
|
}
|
|
77
77
|
`,zr=it.css`
|
|
78
78
|
.ft-typography--body2 {
|
|
79
|
-
font-family: ${
|
|
80
|
-
font-size: ${
|
|
81
|
-
font-weight: ${
|
|
82
|
-
letter-spacing: ${
|
|
83
|
-
line-height: ${
|
|
84
|
-
text-transform: ${
|
|
85
|
-
text-decoration: ${
|
|
79
|
+
font-family: ${ue.fontFamily};
|
|
80
|
+
font-size: ${ue.fontSize};
|
|
81
|
+
font-weight: ${ue.fontWeight};
|
|
82
|
+
letter-spacing: ${ue.letterSpacing};
|
|
83
|
+
line-height: ${ue.lineHeight};
|
|
84
|
+
text-transform: ${ue.textTransform};
|
|
85
|
+
text-decoration: ${ue.textDecoration};
|
|
86
86
|
}
|
|
87
87
|
`,jt=it.css`
|
|
88
88
|
.ft-typography--caption {
|
|
@@ -94,8 +94,18 @@
|
|
|
94
94
|
text-transform: ${Be.textTransform};
|
|
95
95
|
text-decoration: ${Be.textDecoration};
|
|
96
96
|
}
|
|
97
|
-
`,
|
|
97
|
+
`,fa=it.css`
|
|
98
98
|
.ft-typography--breadcrumb {
|
|
99
|
+
font-family: ${hr.fontFamily};
|
|
100
|
+
font-size: ${hr.fontSize};
|
|
101
|
+
font-weight: ${hr.fontWeight};
|
|
102
|
+
letter-spacing: ${hr.letterSpacing};
|
|
103
|
+
line-height: ${hr.lineHeight};
|
|
104
|
+
text-transform: ${hr.textTransform};
|
|
105
|
+
text-decoration: ${hr.textDecoration};
|
|
106
|
+
}
|
|
107
|
+
`,ha=it.css`
|
|
108
|
+
.ft-typography--overline {
|
|
99
109
|
font-family: ${mr.fontFamily};
|
|
100
110
|
font-size: ${mr.fontSize};
|
|
101
111
|
font-weight: ${mr.fontWeight};
|
|
@@ -104,17 +114,7 @@
|
|
|
104
114
|
text-transform: ${mr.textTransform};
|
|
105
115
|
text-decoration: ${mr.textDecoration};
|
|
106
116
|
}
|
|
107
|
-
`,
|
|
108
|
-
.ft-typography--overline {
|
|
109
|
-
font-family: ${gr.fontFamily};
|
|
110
|
-
font-size: ${gr.fontSize};
|
|
111
|
-
font-weight: ${gr.fontWeight};
|
|
112
|
-
letter-spacing: ${gr.letterSpacing};
|
|
113
|
-
line-height: ${gr.lineHeight};
|
|
114
|
-
text-transform: ${gr.textTransform};
|
|
115
|
-
text-decoration: ${gr.textDecoration};
|
|
116
|
-
}
|
|
117
|
-
`,fa=it.css`
|
|
117
|
+
`,ma=it.css`
|
|
118
118
|
.ft-typography--button {
|
|
119
119
|
font-family: ${pt.fontFamily};
|
|
120
120
|
font-size: ${pt.fontSize};
|
|
@@ -124,19 +124,19 @@
|
|
|
124
124
|
text-transform: ${pt.textTransform};
|
|
125
125
|
text-decoration: ${pt.textDecoration};
|
|
126
126
|
}
|
|
127
|
-
`,
|
|
127
|
+
`,ga=it.css`
|
|
128
128
|
.ft-typography {
|
|
129
129
|
vertical-align: inherit;
|
|
130
130
|
}
|
|
131
|
-
`;var
|
|
132
|
-
<${
|
|
131
|
+
`;var ya=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},G=class extends ba.FtLitElement{constructor(){super(...arguments),this.variant=de.body1}render(){return this.element?_o`
|
|
132
|
+
<${Co(this.element)}
|
|
133
133
|
part="text"
|
|
134
134
|
class="ft-typography ft-typography--${this.variant}">
|
|
135
135
|
<slot></slot>
|
|
136
|
-
</${
|
|
137
|
-
`:
|
|
136
|
+
</${Co(this.element)}>
|
|
137
|
+
`:_o`
|
|
138
138
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
139
|
-
`}};
|
|
139
|
+
`}};G.styles=[la,ca,da,ua,pa,zr,jt,fa,ha,ma,ga];ya([(0,Oo.property)()],G.prototype,"element",void 0);ya([(0,Oo.property)()],G.prototype,"variant",void 0);var xa=c(m());var va={"ft-typography":G};(0,xa.customElements)(va);var Ro=c(m());function tn(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Sa(t){return tn(t).split("|").pop()}function Ea(t){return tn(t).split("|").join(" > ")}function Aa(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>Aa(r,t.selected)),value:t.value}}function Ca(t){return(0,Ro.flatDeep)(t.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]}).filter(e=>e.selected).map(e=>e.label)}function To(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>Aa(e,!1))}}function wa(t){return(0,Ro.flatDeep)(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var Ua=c(E()),X=c(m());var rn=c(E()),T=c(m());var La=c(E()),pe=c(m()),_a=pe.FtCssVariableFactory.extend("--ft-ripple-color","",pe.designSystemVariables.colorContent),W={color:_a,backgroundColor:pe.FtCssVariableFactory.extend("--ft-ripple-background-color","",_a),opacityContentOnSurfacePressed:pe.FtCssVariableFactory.external(pe.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:pe.FtCssVariableFactory.external(pe.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:pe.FtCssVariableFactory.external(pe.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:pe.FtCssVariableFactory.external(pe.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:pe.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Oa=pe.FtCssVariableFactory.extend("--ft-ripple-color","",pe.designSystemVariables.colorPrimary),Ra={color:Oa,backgroundColor:pe.FtCssVariableFactory.extend("--ft-ripple-background-color","",Oa)},Ta=pe.FtCssVariableFactory.extend("--ft-ripple-color","",pe.designSystemVariables.colorSecondary),ka={color:Ta,backgroundColor:pe.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ta)},$a=La.css`
|
|
140
140
|
:host {
|
|
141
141
|
display: contents;
|
|
142
142
|
}
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
|
|
150
150
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
151
151
|
overflow: hidden;
|
|
152
|
-
border-radius: ${
|
|
152
|
+
border-radius: ${W.borderRadius};
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
.ft-ripple .ft-ripple--background,
|
|
@@ -183,27 +183,27 @@
|
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
.ft-ripple .ft-ripple--background {
|
|
186
|
-
background-color: ${
|
|
186
|
+
background-color: ${W.backgroundColor};
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
.ft-ripple .ft-ripple--effect {
|
|
190
|
-
background-color: ${
|
|
190
|
+
background-color: ${W.color};
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
194
|
-
background-color: ${
|
|
194
|
+
background-color: ${ka.backgroundColor};
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
198
|
-
background-color: ${
|
|
198
|
+
background-color: ${ka.color};
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
202
|
-
background-color: ${
|
|
202
|
+
background-color: ${Ra.backgroundColor};
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
206
|
-
background-color: ${
|
|
206
|
+
background-color: ${Ra.color};
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
.ft-ripple .ft-ripple--background {
|
|
@@ -233,22 +233,22 @@
|
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
236
|
-
opacity: ${
|
|
236
|
+
opacity: ${W.opacityContentOnSurfaceHover};
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
240
|
-
opacity: ${
|
|
240
|
+
opacity: ${W.opacityContentOnSurfaceSelected};
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
244
|
-
opacity: ${
|
|
244
|
+
opacity: ${W.opacityContentOnSurfaceFocused};
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
248
|
-
opacity: ${
|
|
248
|
+
opacity: ${W.opacityContentOnSurfacePressed};
|
|
249
249
|
transform: translate(-50%, -50%) scale(1);
|
|
250
250
|
}
|
|
251
|
-
`;var
|
|
251
|
+
`;var Da=c(E()),mi=c(m()),gr={color:mi.FtCssVariableFactory.extend("--ft-loader-color","",mi.designSystemVariables.colorPrimary),size:mi.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Pa=Da.css`
|
|
252
252
|
:host {
|
|
253
253
|
line-height: 0;
|
|
254
254
|
}
|
|
@@ -257,8 +257,8 @@
|
|
|
257
257
|
display: inline-block;
|
|
258
258
|
position: relative;
|
|
259
259
|
|
|
260
|
-
width: ${
|
|
261
|
-
height: ${
|
|
260
|
+
width: ${gr.size};
|
|
261
|
+
height: ${gr.size};
|
|
262
262
|
}
|
|
263
263
|
|
|
264
264
|
.ft-loader div {
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
width: 25%;
|
|
268
268
|
height: 25%;
|
|
269
269
|
border-radius: 50%;
|
|
270
|
-
background: ${
|
|
270
|
+
background: ${gr.color};
|
|
271
271
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
272
272
|
}
|
|
273
273
|
|
|
@@ -314,10 +314,10 @@
|
|
|
314
314
|
transform: translate(0, 0);
|
|
315
315
|
}
|
|
316
316
|
100% {
|
|
317
|
-
transform: translate(calc(0.35 * ${
|
|
317
|
+
transform: translate(calc(0.35 * ${gr.size}), 0);
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
|
-
`;var
|
|
320
|
+
`;var Ia=c(E()),ft=c(m()),De={size:ft.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:ft.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",ft.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:ft.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",ft.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:ft.FtCssVariableFactory.extend("--ft-icon-material-font-family","",ft.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:ft.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Ma=[Ia.css`
|
|
321
321
|
:host, i.ft-icon {
|
|
322
322
|
display: inline-flex;
|
|
323
323
|
align-items: center;
|
|
@@ -326,14 +326,14 @@
|
|
|
326
326
|
}
|
|
327
327
|
|
|
328
328
|
:host {
|
|
329
|
-
width: ${
|
|
330
|
-
height: ${
|
|
329
|
+
width: ${De.size};
|
|
330
|
+
height: ${De.size};
|
|
331
331
|
}
|
|
332
332
|
|
|
333
333
|
i.ft-icon {
|
|
334
334
|
width: 100%;
|
|
335
335
|
height: 100%;
|
|
336
|
-
font-size: ${
|
|
336
|
+
font-size: ${De.size};
|
|
337
337
|
line-height: 1;
|
|
338
338
|
font-weight: normal;
|
|
339
339
|
text-transform: none;
|
|
@@ -344,28 +344,28 @@
|
|
|
344
344
|
text-rendering: auto;
|
|
345
345
|
-webkit-font-smoothing: antialiased;
|
|
346
346
|
-moz-osx-font-smoothing: grayscale;
|
|
347
|
-
vertical-align: ${
|
|
347
|
+
vertical-align: ${De.verticalAlign};
|
|
348
348
|
}
|
|
349
349
|
|
|
350
350
|
i.ft-icon.ft-icon--fluid-topics {
|
|
351
|
-
font-family: ${
|
|
351
|
+
font-family: ${De.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
352
352
|
|
|
353
353
|
/* Ugly fix because font is broken */
|
|
354
|
-
font-size: calc(0.75 * ${
|
|
355
|
-
line-height: ${
|
|
354
|
+
font-size: calc(0.75 * ${De.size});
|
|
355
|
+
line-height: ${De.size};
|
|
356
356
|
position: relative;
|
|
357
357
|
top: -4%;
|
|
358
358
|
justify-content: center;
|
|
359
359
|
}
|
|
360
360
|
|
|
361
361
|
.ft-icon--file-format {
|
|
362
|
-
font-family: ${
|
|
362
|
+
font-family: ${De.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
363
363
|
}
|
|
364
364
|
|
|
365
365
|
.ft-icon--material {
|
|
366
|
-
font-family: ${
|
|
366
|
+
font-family: ${De.materialFontFamily}, "Material Icons", sans-serif;
|
|
367
367
|
}
|
|
368
|
-
`,ft.noTextSelect];var
|
|
368
|
+
`,ft.noTextSelect];var Na=T.FtCssVariableFactory.extend("--ft-button-color","",T.designSystemVariables.colorPrimary),I={backgroundColor:T.FtCssVariableFactory.extend("--ft-button-background-color","",T.designSystemVariables.colorSurface),borderRadius:T.FtCssVariableFactory.extend("--ft-button-border-radius","",T.designSystemVariables.borderRadiusL),color:Na,fontSize:T.FtCssVariableFactory.extend("--ft-button-font-size","",pt.fontSize),iconSize:T.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:T.FtCssVariableFactory.extend("--ft-button-ripple-color","",Na),verticalPadding:T.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:T.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:T.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:T.FtCssVariableFactory.external(T.designSystemVariables.colorOpacityDisabled,"Design system")},Fa=T.FtCssVariableFactory.extend("--ft-button-primary-color","",T.FtCssVariableFactory.extend("--ft-button-color","",T.designSystemVariables.colorOnPrimary)),ko={backgroundColor:T.FtCssVariableFactory.extend("--ft-button-primary-background-color","",T.FtCssVariableFactory.extend("--ft-button-background-color","",T.designSystemVariables.colorPrimary)),color:Fa,rippleColor:T.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Fa)},ht={borderRadius:T.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",T.FtCssVariableFactory.extend("--ft-button-border-radius","",T.designSystemVariables.borderRadiusM)),verticalPadding:T.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:T.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:T.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Ba=rn.css`
|
|
369
369
|
:host {
|
|
370
370
|
display: inline-block;
|
|
371
371
|
max-width: 100%;
|
|
@@ -374,33 +374,9 @@
|
|
|
374
374
|
|
|
375
375
|
.ft-button {
|
|
376
376
|
box-shadow: 0px 0px 0px transparent;
|
|
377
|
-
border: 0px solid transparent;
|
|
378
377
|
text-shadow: 0px 0px 0px transparent;
|
|
379
|
-
font-size: ${
|
|
378
|
+
font-size: ${I.fontSize};
|
|
380
379
|
text-decoration: none;
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
.ft-button:hover {
|
|
384
|
-
box-shadow: 0px 0px 0px transparent;
|
|
385
|
-
border: 0px solid transparent;
|
|
386
|
-
text-shadow: 0px 0px 0px transparent;
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
.ft-button:active {
|
|
390
|
-
outline: none;
|
|
391
|
-
border: none;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
.ft-button:focus {
|
|
395
|
-
outline: none;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
.ft-button:focus-visible {
|
|
399
|
-
outline: 2px solid ${k.designSystemVariables.colorPrimary};
|
|
400
|
-
outline-offset: 2px;
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
.ft-button {
|
|
404
380
|
position: relative;
|
|
405
381
|
display: flex;
|
|
406
382
|
justify-content: center;
|
|
@@ -410,99 +386,128 @@
|
|
|
410
386
|
border: none;
|
|
411
387
|
pointer-events: auto;
|
|
412
388
|
|
|
413
|
-
--button-internal-line-height: max(calc(${
|
|
414
|
-
--button-internal-color: ${
|
|
415
|
-
${(0,
|
|
416
|
-
${(0,
|
|
417
|
-
${(0,
|
|
389
|
+
--button-internal-line-height: max(calc(${I.fontSize} + 2px), ${I.iconSize});
|
|
390
|
+
--button-internal-color: ${I.color};
|
|
391
|
+
${(0,T.setVariable)(De.size,I.iconSize)};
|
|
392
|
+
${(0,T.setVariable)(W.color,I.rippleColor)};
|
|
393
|
+
${(0,T.setVariable)(W.borderRadius,I.borderRadius)};
|
|
418
394
|
|
|
419
|
-
border-radius: ${
|
|
420
|
-
padding: ${
|
|
421
|
-
background-color: ${
|
|
395
|
+
border-radius: ${I.borderRadius};
|
|
396
|
+
padding: ${I.verticalPadding} ${I.horizontalPadding};
|
|
397
|
+
background-color: ${I.backgroundColor};
|
|
422
398
|
color: var(--button-internal-color);
|
|
423
|
-
}
|
|
424
399
|
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
400
|
+
.ft-button--label {
|
|
401
|
+
position: relative;
|
|
402
|
+
overflow: hidden;
|
|
403
|
+
white-space: nowrap;
|
|
404
|
+
text-overflow: ellipsis;
|
|
405
|
+
display: block;
|
|
406
|
+
margin: 0 ${I.iconPadding};
|
|
407
|
+
${(0,T.setVariable)(pt.fontSize,"1em")};
|
|
408
|
+
${(0,T.setVariable)(pt.lineHeight,"var(--button-internal-line-height)")};
|
|
409
|
+
}
|
|
429
410
|
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
}
|
|
411
|
+
[part="icon"] {
|
|
412
|
+
flex-shrink: 0;
|
|
413
|
+
position: relative;
|
|
414
|
+
}
|
|
435
415
|
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
416
|
+
&:hover {
|
|
417
|
+
box-shadow: 0px 0px 0px transparent;
|
|
418
|
+
border: 0px solid transparent;
|
|
419
|
+
text-shadow: 0px 0px 0px transparent;
|
|
439
420
|
|
|
440
|
-
.ft-button:not([disabled]):hover {
|
|
441
|
-
cursor: pointer;
|
|
442
|
-
}
|
|
443
421
|
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
422
|
+
&:not([disabled]) {
|
|
423
|
+
cursor: pointer;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
447
426
|
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
427
|
+
&:active {
|
|
428
|
+
outline: none;
|
|
429
|
+
border: none;
|
|
430
|
+
}
|
|
451
431
|
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
}
|
|
432
|
+
&:focus {
|
|
433
|
+
outline: none;
|
|
434
|
+
}
|
|
456
435
|
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
}
|
|
436
|
+
&:focus-visible {
|
|
437
|
+
outline: 2px solid ${T.designSystemVariables.colorPrimary};
|
|
438
|
+
outline-offset: 2px;
|
|
439
|
+
}
|
|
462
440
|
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
text-overflow: ellipsis;
|
|
468
|
-
display: block;
|
|
469
|
-
margin: 0 ${N.iconPadding};
|
|
470
|
-
${(0,k.setVariable)(pt.fontSize,"1em")};
|
|
471
|
-
${(0,k.setVariable)(pt.lineHeight,"var(--button-internal-line-height)")};
|
|
472
|
-
}
|
|
441
|
+
&[disabled] {
|
|
442
|
+
filter: grayscale(1);
|
|
443
|
+
opacity: ${I.opacityDisabled};
|
|
444
|
+
}
|
|
473
445
|
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
446
|
+
&.ft-button--primary {
|
|
447
|
+
background-color: ${ko.backgroundColor};
|
|
448
|
+
--button-internal-color: ${ko.color};
|
|
449
|
+
${(0,T.setVariable)(W.color,ko.rippleColor)};
|
|
450
|
+
}
|
|
477
451
|
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
452
|
+
&.ft-button--outlined {
|
|
453
|
+
border: 1px solid var(--button-internal-color);
|
|
454
|
+
padding: calc(${I.verticalPadding} - 1px) calc(${I.horizontalPadding} - 1px);
|
|
455
|
+
}
|
|
481
456
|
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
457
|
+
&.ft-button--dense {
|
|
458
|
+
padding: ${ht.verticalPadding} ${ht.horizontalPadding};
|
|
459
|
+
border-radius: ${ht.borderRadius};
|
|
460
|
+
${(0,T.setVariable)(W.borderRadius,ht.borderRadius)};
|
|
486
461
|
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
462
|
+
.ft-button--label {
|
|
463
|
+
margin: 0 ${ht.iconPadding};
|
|
464
|
+
}
|
|
465
|
+
}
|
|
491
466
|
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
467
|
+
&.ft-button--dense.ft-button--outlined {
|
|
468
|
+
padding: calc(${ht.verticalPadding} - 1px) calc(${ht.horizontalPadding} - 1px);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
&.ft-button--round {
|
|
472
|
+
border-radius: calc(var(--button-internal-line-height) / 2 + ${I.verticalPadding});
|
|
473
|
+
${(0,T.setVariable)(W.borderRadius,rn.css`calc(var(--button-internal-line-height) / 2 + ${I.verticalPadding})`)};
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
&.ft-button--round.ft-button--dense {
|
|
477
|
+
border-radius: calc(var(--button-internal-line-height) / 2 + ${ht.verticalPadding});
|
|
478
|
+
${(0,T.setVariable)(W.borderRadius,rn.css`calc(var(--button-internal-line-height) / 2 + ${ht.verticalPadding})`)};
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
&.ft-button--no-text {
|
|
482
|
+
.ft-button--label {
|
|
483
|
+
margin: 0;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
padding: ${I.verticalPadding};
|
|
487
|
+
|
|
488
|
+
&.ft-button--dense {
|
|
489
|
+
padding: ${ht.verticalPadding};
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
&.ft-button--outlined {
|
|
493
|
+
padding: calc(${I.verticalPadding} - 1px);
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
&.ft-button--outlined.ft-button--dense {
|
|
497
|
+
padding: calc(${ht.verticalPadding} - 1px);
|
|
498
|
+
}
|
|
499
|
+
}
|
|
496
500
|
|
|
497
|
-
|
|
498
|
-
|
|
501
|
+
&:not(.ft-button--trailing-icon) [part="label"] {
|
|
502
|
+
order: 2;
|
|
503
|
+
}
|
|
499
504
|
}
|
|
500
505
|
|
|
501
506
|
ft-loader {
|
|
502
|
-
${(0,
|
|
503
|
-
${(0,
|
|
507
|
+
${(0,T.setVariable)(gr.size,I.iconSize)};
|
|
508
|
+
${(0,T.setVariable)(gr.color,"var(--button-internal-color)")};
|
|
504
509
|
}
|
|
505
|
-
`;var gi={buttonMoreColor:
|
|
510
|
+
`;var gi={buttonMoreColor:X.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",X.designSystemVariables.colorOnSurface),borderRadiusM:X.FtCssVariableFactory.external(X.designSystemVariables.borderRadiusM,"Design system"),colorOutline:X.FtCssVariableFactory.external(X.designSystemVariables.colorOutline,"Design system"),colorOnSurface:X.FtCssVariableFactory.external(X.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:X.FtCssVariableFactory.external(X.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:X.FtCssVariableFactory.external(X.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:X.FtCssVariableFactory.external(X.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:X.FtCssVariableFactory.external(X.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:X.FtCssVariableFactory.external(ue.fontFamily,"Body2 typography"),fontSize:X.FtCssVariableFactory.external(ue.fontSize,"Body2 typography"),fontWeight:X.FtCssVariableFactory.external(ue.fontWeight,"Body2 typography"),letterSpacing:X.FtCssVariableFactory.external(ue.letterSpacing,"Body2 typography"),lineHeight:X.FtCssVariableFactory.external(ue.lineHeight,"Body2 typography"),textTransform:X.FtCssVariableFactory.external(ue.textTransform,"Body2 typography")},za=Ua.css`
|
|
506
511
|
.ft-filter-level--container {
|
|
507
512
|
display: flex;
|
|
508
513
|
flex-direction: column;
|
|
@@ -553,11 +558,11 @@
|
|
|
553
558
|
}
|
|
554
559
|
|
|
555
560
|
ft-button {
|
|
556
|
-
${(0,
|
|
561
|
+
${(0,X.setVariable)(I.color,gi.colorOnSurface)};
|
|
557
562
|
}
|
|
558
563
|
|
|
559
564
|
ft-button.ft-filter-level--display-more {
|
|
560
|
-
${(0,
|
|
565
|
+
${(0,X.setVariable)(I.color,gi.buttonMoreColor)};
|
|
561
566
|
}
|
|
562
567
|
|
|
563
568
|
ft-radio, ft-checkbox {
|
|
@@ -573,18 +578,18 @@
|
|
|
573
578
|
margin: 10px 0;
|
|
574
579
|
color: ${gi.colorOnSurfaceMedium};
|
|
575
580
|
}
|
|
576
|
-
`;var
|
|
581
|
+
`;var $r=c(E()),Z=c(j()),le=c(m());var Qe=c(E()),ye=c(j()),cu=c(or()),He=c(m());var kt=c(m());var Ha=c(E()),Ee=c(j()),ja=c(nt()),yi=c(m());var Ue=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},M=class extends yi.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 yi.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 yi.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:o,y:n}=this.getCoordinates(e),s=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(o!=null?o-s.x:s.width/2),this.originY=Math.round(n!=null?n-s.y:s.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 Ha.html`
|
|
577
582
|
<style>
|
|
578
583
|
.ft-ripple .ft-ripple--effect {
|
|
579
584
|
left: ${this.originX}px;
|
|
580
585
|
top: ${this.originY}px;
|
|
581
586
|
}
|
|
582
587
|
</style>
|
|
583
|
-
<div class="${(0,
|
|
588
|
+
<div class="${(0,ja.classMap)(e)}">
|
|
584
589
|
<div class="ft-ripple--background"></div>
|
|
585
590
|
<div class="ft-ripple--effect"></div>
|
|
586
591
|
</div>
|
|
587
|
-
`}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(d=>window.addEventListener(d,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),o=r("touchend","touchcancel"),n=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",o,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",n,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",o,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",n,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,o,n;return r.x!=null?{x:o,y:n}=r:i.touches!=null&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}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()}};
|
|
592
|
+
`}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(d=>window.addEventListener(d,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),o=r("touchend","touchcancel"),n=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",o,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",n,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",o,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",n,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,o,n;return r.x!=null?{x:o,y:n}=r:i.touches!=null&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}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()}};M.elementDefinitions={};M.styles=$a;Ue([(0,Ee.property)({type:Boolean})],M.prototype,"primary",void 0);Ue([(0,Ee.property)({type:Boolean})],M.prototype,"secondary",void 0);Ue([(0,Ee.property)({type:Boolean})],M.prototype,"unbounded",void 0);Ue([(0,Ee.property)({type:Boolean})],M.prototype,"activated",void 0);Ue([(0,Ee.property)({type:Boolean})],M.prototype,"selected",void 0);Ue([(0,Ee.property)({type:Boolean})],M.prototype,"disabled",void 0);Ue([(0,Ee.state)()],M.prototype,"hovered",void 0);Ue([(0,Ee.state)()],M.prototype,"focused",void 0);Ue([(0,Ee.state)()],M.prototype,"pressed",void 0);Ue([(0,Ee.state)()],M.prototype,"rippling",void 0);Ue([(0,Ee.state)()],M.prototype,"originX",void 0);Ue([(0,Ee.state)()],M.prototype,"originY",void 0);Ue([(0,Ee.query)(".ft-ripple")],M.prototype,"ripple",void 0);Ue([(0,Ee.query)(".ft-ripple--effect")],M.prototype,"rippleEffect",void 0);var Ka=c(m());var Wa={"ft-ripple":M};(0,Ka.customElements)(Wa);var kd=c(E()),ct=c(j()),lt=c(m());var qa=c(E()),Wt=c(m()),bi={distance:Wt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Wt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Wt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:Wt.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",Wt.designSystemVariables.borderRadiusS),maxWidth:Wt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Ga=qa.css`
|
|
588
593
|
.ft-tooltip--container {
|
|
589
594
|
display: block;
|
|
590
595
|
}
|
|
@@ -615,15 +620,15 @@
|
|
|
615
620
|
position: relative;
|
|
616
621
|
word-break: break-word;
|
|
617
622
|
}
|
|
618
|
-
`;var Xa=["top","right","bottom","left"],Ga=["start","end"],ko=Xa.reduce((t,e)=>t.concat(e,e+"-"+Ga[0],e+"-"+Ga[1]),[]),vi=Math.min,qt=Math.max,xi=Math.round;var _t=t=>({x:t,y:t}),Tp={left:"right",right:"left",bottom:"top",top:"bottom"};function Ya(t,e,r){return qt(t,vi(e,r))}function tn(t,e){return typeof t=="function"?t(e):t}function Si(t){return t.split("-")[0]}function Kt(t){return t.split("-")[1]}function Lo(t){return t==="x"?"y":"x"}function $o(t){return t==="y"?"height":"width"}function rn(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Do(t){return Lo(rn(t))}function Za(t,e,r){r===void 0&&(r=!1);let i=Kt(t),o=Do(t),n=$o(o),s=o==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[n]>e.floating[n]&&(s=To(s)),[s,To(s)]}function Qa(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function To(t){let e=Si(t);return Tp[e]+t.slice(e.length)}function kp(t){var e,r,i,o;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(o=t.left)!=null?o:0}}function Ja(t){return typeof t!="number"?kp(t):{top:t,right:t,bottom:t,left:t}}function br(t){let{x:e,y:r,width:i,height:o}=t;return{width:i,height:o,top:r,left:e,right:e+i,bottom:r+o,x:e,y:r}}function el(t,e,r){let{reference:i,floating:o}=t,n=rn(e),s=Do(e),a=$o(s),l=Si(e),d=n==="y",u=i.x+i.width/2-o.width/2,p=i.y+i.height/2-o.height/2,f=i[a]/2-o[a]/2,b;switch(l){case"top":b={x:u,y:i.y-o.height};break;case"bottom":b={x:u,y:i.y+i.height};break;case"right":b={x:i.x+i.width,y:p};break;case"left":b={x:i.x-o.width,y:p};break;default:b={x:i.x,y:i.y}}let x=Kt(e);return x&&(b[s]+=f*(x==="end"?1:-1)*(r&&d?-1:1)),b}async function tl(t,e){var r;e===void 0&&(e={});let{x:i,y:o,platform:n,rects:s,elements:a,strategy:l}=t,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:f=!1,padding:b=0}=tn(e,t),x=Ja(b),v=a[f?p==="floating"?"reference":"floating":p],T=br(await n.getClippingRect({element:(r=await(n.isElement==null?void 0:n.isElement(v)))==null||r?v:v.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(a.floating)),boundary:d,rootBoundary:u,strategy:l})),H=p==="floating"?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,S=await(n.getOffsetParent==null?void 0:n.getOffsetParent(a.floating)),D=await(n.isElement==null?void 0:n.isElement(S))&&await(n.getScale==null?void 0:n.getScale(S))||{x:1,y:1},B=br(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:H,offsetParent:S,strategy:l}):H);return{top:(T.top-B.top+x.top)/D.y,bottom:(B.bottom-T.bottom+x.bottom)/D.y,left:(T.left-B.left+x.left)/D.x,right:(B.right-T.right+x.right)/D.x}}var Lp=50,rl=async(t,e,r)=>{let{placement:i="bottom",strategy:o="absolute",middleware:n=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:tl},l=await(s.isRTL==null?void 0:s.isRTL(e)),d=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:u,y:p}=el(d,i,l),f=i,b=0,x={};for(let O=0;O<n.length;O++){let v=n[O];if(!v)continue;let{name:T,fn:H}=v,{x:S,y:D,data:B,reset:ae}=await H({x:u,y:p,initialPlacement:i,placement:f,strategy:o,middlewareData:x,rects:d,platform:a,elements:{reference:t,floating:e}});u=S??u,p=D??p,x[T]={...x[T],...B},ae&&b<Lp&&(b++,typeof ae=="object"&&(ae.placement&&(f=ae.placement),ae.rects&&(d=ae.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:o}):ae.rects),{x:u,y:p}=el(d,f,l)),O=-1)}return{x:u,y:p,placement:f,strategy:o,middlewareData:x}};function $p(t,e,r){return(t?[...r.filter(o=>Kt(o)===t),...r.filter(o=>Kt(o)!==t)]:r.filter(o=>Si(o)===o)).filter(o=>t?Kt(o)===t||(e?Qa(o)!==o:!1):!0)}var il=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,o;let{rects:n,middlewareData:s,placement:a,platform:l,elements:d}=e,{crossAxis:u=!1,alignment:p,allowedPlacements:f=ko,autoAlignment:b=!0,...x}=tn(t,e),O=p!==void 0||f===ko?$p(p||null,b,f):f,v=((r=s.autoPlacement)==null?void 0:r.index)||0,T=O[v];if(T==null)return{};if(a!==T)return{reset:{placement:O[0]}};let H=await l.detectOverflow(e,x),S=Za(T,n,await(l.isRTL==null?void 0:l.isRTL(d.floating))),D=[H[Si(T)],H[S[0]],H[S[1]]],B=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:T,overflows:D}],ae=O[v+1];if(ae)return{data:{index:v+1,overflows:B},reset:{placement:ae}};let Q=B.map(tt=>{let or=Kt(tt.placement);return[tt.placement,or&&u?tt.overflows.slice(0,2).reduce((gp,yp)=>gp+yp,0):tt.overflows[0],tt.overflows]}).sort((tt,or)=>tt[1]-or[1]),ci=((o=Q.filter(tt=>tt[2].slice(0,Kt(tt[0])?2:3).every(or=>or<=0))[0])==null?void 0:o[0])||Q[0][0];return ci!==a?{data:{index:v+1,overflows:B},reset:{placement:ci}}:{}}}};var nl=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:o,platform:n}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:H=>{let{x:S,y:D}=H;return{x:S,y:D}}},...d}=tn(t,e),u={x:r,y:i},p=await n.detectOverflow(e,d),f=rn(o),b=Lo(f),x=u[b],O=u[f],v=(H,S)=>Ya(S+p[H==="y"?"top":"left"],S,S-p[H==="y"?"bottom":"right"]);s&&(x=v(b,x)),a&&(O=v(f,O));let T=l.fn({...e,[b]:x,[f]:O});return{...T,data:{x:T.x-r,y:T.y-i,enabled:{[b]:s,[f]:a}}}}}};function on(){return typeof window<"u"}function xr(t){return sl(t)?(t.nodeName||"").toLowerCase():"#document"}function ze(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Nt(t){var e;return(e=(sl(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function sl(t){return on()?t instanceof Node||t instanceof ze(t).Node:!1}function ht(t){return on()?t instanceof Element||t instanceof ze(t).Element:!1}function Ft(t){return on()?t instanceof HTMLElement||t instanceof ze(t).HTMLElement:!1}function ol(t){return!on()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ze(t).ShadowRoot}function Ei(t){let{overflow:e,overflowX:r,overflowY:i,display:o}=mt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&o!=="inline"&&o!=="contents"}function al(t){return/^(table|td|th)$/.test(xr(t))}function Ai(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Dp=/transform|translate|scale|rotate|perspective|filter/,Pp=/paint|layout|strict|content/,vr=t=>!!t&&t!=="none",Po;function Vr(t){let e=ht(t)?mt(t):t;return vr(e.transform)||vr(e.translate)||vr(e.scale)||vr(e.rotate)||vr(e.perspective)||!sn()&&(vr(e.backdropFilter)||vr(e.filter))||Dp.test(e.willChange||"")||Pp.test(e.contain||"")}function ll(t){let e=Gt(t);for(;Ft(e)&&!Hr(e);){if(Vr(e))return e;if(Ai(e))return null;e=Gt(e)}return null}function sn(){return Po==null&&(Po=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Po}function Hr(t){return/^(html|body|#document)$/.test(xr(t))}function mt(t){return ze(t).getComputedStyle(t)}function Ci(t){return ht(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Gt(t){if(xr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||ol(t)&&t.host||Nt(t);return ol(e)?e.host:e}function cl(t){let e=Gt(t);return Hr(e)?(t.ownerDocument||t).body:Ft(e)&&Ei(e)?e:cl(e)}function nn(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let o=cl(t),n=o===((i=t.ownerDocument)==null?void 0:i.body),s=ze(o);if(n){let a=an(s);return e.concat(s,s.visualViewport||[],Ei(o)?o:[],a&&r?nn(a):[])}else return e.concat(o,nn(o,[],r))}function an(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function pl(t){let e=mt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,o=Ft(t),n=o?t.offsetWidth:r,s=o?t.offsetHeight:i,a=xi(r)!==n||xi(i)!==s;return a&&(r=n,i=s),{width:r,height:i,$:a}}function fl(t){return ht(t)?t:t.contextElement}function jr(t){let e=fl(t);if(!Ft(e))return _t(1);let r=e.getBoundingClientRect(),{width:i,height:o,$:n}=pl(e),s=(n?xi(r.width):r.width)/i,a=(n?xi(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var Ip=_t(0);function hl(t){let e=ze(t);return!sn()||!e.visualViewport?Ip:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Mp(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===ze(t)}function wi(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let o=t.getBoundingClientRect(),n=fl(t),s=_t(1);e&&(i?ht(i)&&(s=jr(i)):s=jr(t));let a=Mp(n,r,i)?hl(n):_t(0),l=(o.left+a.x)/s.x,d=(o.top+a.y)/s.y,u=o.width/s.x,p=o.height/s.y;if(n&&i){let f=ze(n),b=ht(i)?ze(i):i,x=f,O=an(x);for(;O&&b!==x;){let v=jr(O),T=O.getBoundingClientRect(),H=mt(O),S=T.left+(O.clientLeft+parseFloat(H.paddingLeft))*v.x,D=T.top+(O.clientTop+parseFloat(H.paddingTop))*v.y;l*=v.x,d*=v.y,u*=v.x,p*=v.y,l+=S,d+=D,x=ze(O),O=an(x)}}return br({width:u,height:p,x:l,y:d})}function ln(t,e){let r=Ci(t).scrollLeft;return e?e.left+r:wi(Nt(t)).left+r}function ml(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-ln(t,r),o=r.top+e.scrollTop;return{x:i,y:o}}function Np(t){let{elements:e,rect:r,offsetParent:i,strategy:o}=t,n=o==="fixed",s=Nt(i),a=e?Ai(e.floating):!1;if(i===s||a&&n)return r;let l={scrollLeft:0,scrollTop:0},d=_t(1),u=_t(0),p=Ft(i);if((p||!n)&&((xr(i)!=="body"||Ei(s))&&(l=Ci(i)),p)){let b=wi(i);d=jr(i),u.x=b.x+i.clientLeft,u.y=b.y+i.clientTop}let f=s&&!p&&!n?ml(s,l):_t(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-l.scrollLeft*d.x+u.x+f.x,y:r.y*d.y-l.scrollTop*d.y+u.y+f.y}}function Fp(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Bp(t){let e=Ci(t),r=t.ownerDocument.body,i=qt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=qt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),n=-e.scrollLeft+ln(t),s=-e.scrollTop;return mt(r).direction==="rtl"&&(n+=qt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:n,y:s}}var Up=25;function zp(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",o=ze(t),n=Nt(t),s=o.visualViewport,a=n.clientWidth,l=n.clientHeight,d=0,u=0;if(s){let f=!sn()||e==="fixed";i?f||(d=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,f&&(d=s.offsetLeft,u=s.offsetTop))}if(ln(n)<=0){let f=n.ownerDocument,b=f.body,x=getComputedStyle(b),O=f.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,v=Math.abs(n.clientWidth-b.clientWidth-O),T=getComputedStyle(n).scrollbarGutter==="stable both-edges"?v/2:v;T<=Up&&(a-=T)}return{width:a,height:l,x:d,y:u}}function Vp(t,e){let r=wi(t,!0,e==="fixed"),i=r.top+t.clientTop,o=r.left+t.clientLeft,n=jr(t),s=t.clientWidth*n.x,a=t.clientHeight*n.y,l=o*n.x,d=i*n.y;return{width:s,height:a,x:l,y:d}}function dl(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=zp(t,r,e);else if(e==="document")i=Bp(Nt(t));else if(ht(e))i=Vp(e,r);else{let o=hl(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return br(i)}function Hp(t,e){let r=e.get(t);if(r)return r;let i=nn(t,[],!1).filter(a=>ht(a)&&xr(a)!=="body"),o=null,n=mt(t).position==="fixed",s=n?Gt(t):t;for(;ht(s)&&!Hr(s);){let a=mt(s),l=Vr(s),d=o?o.position:n?"fixed":"";!l&&(d==="fixed"||d==="absolute"&&a.position==="static")?i=i.filter(p=>p!==s):o=a,s=Gt(s)}return e.set(t,i),i}function jp(t){let{element:e,boundary:r,rootBoundary:i,strategy:o}=t,s=[...r==="clippingAncestors"?Ai(e)?[]:Hp(e,this._c):[].concat(r),i],a=dl(e,s[0],o),l=a.top,d=a.right,u=a.bottom,p=a.left;for(let f=1;f<s.length;f++){let b=dl(e,s[f],o);l=qt(b.top,l),d=vi(b.right,d),u=vi(b.bottom,u),p=qt(b.left,p)}return{width:d-p,height:u-l,x:p,y:l}}function Wp(t){let{width:e,height:r}=pl(t);return{width:e,height:r}}function qp(t,e,r){let i=Ft(e),o=Nt(e),n=r==="fixed",s=wi(t,!0,n,e),a={scrollLeft:0,scrollTop:0},l=_t(0);if((i||!n)&&((xr(e)!=="body"||Ei(o))&&(a=Ci(e)),i)){let f=wi(e,!0,n,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}!i&&o&&(l.x=ln(o));let d=o&&!i&&!n?ml(o,a):_t(0),u=s.left+a.scrollLeft-l.x-d.x,p=s.top+a.scrollTop-l.y-d.y;return{x:u,y:p,width:s.width,height:s.height}}function Io(t){return mt(t).position==="static"}function ul(t,e){if(!Ft(t)||mt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Nt(t)===r&&(r=r.ownerDocument.body),r}function gl(t,e){let r=ze(t);if(Ai(t))return r;if(!Ft(t)){let o=Gt(t);for(;o&&!Hr(o);){if(ht(o)&&!Io(o))return o;o=Gt(o)}return r}let i=ul(t,e);for(;i&&al(i)&&Io(i);)i=ul(i,e);return i&&Hr(i)&&Io(i)&&!Vr(i)?r:i||ll(t)||r}var Kp=async function(t){let e=this.getOffsetParent||gl,r=this.getDimensions,i=await r(t.floating);return{reference:qp(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Gp(t){return mt(t).direction==="rtl"}var cn={convertOffsetParentRelativeRectToViewportRelativeRect:Np,getDocumentElement:Nt,getClippingRect:jp,getOffsetParent:gl,getElementRects:Kp,getClientRects:Fp,getDimensions:Wp,getScale:jr,isElement:ht,isRTL:Gp};var yl=il,bl=nl;var vl=(t,e,r)=>{let i=new Map,o=r??{},n={...cn,...o.platform,_c:i};return rl(t,e,{...o,platform:n})};function xl(t){return Xp(t)}function Mo(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Xp(t){for(let e=t;e;e=Mo(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Mo(t);e;e=Mo(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Vr(r)||e.tagName==="BODY"))return e}return null}async function Sl(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},vl(t,e,{strategy:i.strategy,platform:{...cn,getOffsetParent:o=>cn.getOffsetParent(o,xl)},middleware:[bl({crossAxis:!0}),yl({allowedPlacements:[i.placement]})]})}var Jr=c(m());var ns=c(j());var El=c(j(),1);var No=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},Yp=t=>({fromAttribute:e=>{if(e==null)return _i(t);try{return JSON.parse(e)}catch{return _i(t)}},toAttribute:e=>JSON.stringify(e)});function Al(t,e){return(0,El.property)({type:Object,converter:Yp(t),hasChanged:Oi,...e??{}})}function Zp(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(!Wr(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(!Wr(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let o=s=>Object.keys(s).filter(a=>s[a]!=null),n=o(t);if(r=n.length,r!==o(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=r;i--!==0;){let s=n[i];if(!Wr(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Wr(t,e){try{return Zp(t,e)}catch{return!1}}function Oi(t,e){return!Wr(t,e)}function _i(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function dn(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let o=e(i);return o[t]=!0,o}}var Cl=c(j(),1);var Fo=t=>{let e=t??{};return(r,i)=>{var o;let n={hasChanged:Oi,attribute:!1,...e};(0,Cl.property)(n)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(o=e.selector)!==null&&o!==void 0?o:(a=>a[i]),store:e.store})}};var un=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 Sr=c(j(),1);var pn=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let o=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),n=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of i)try{await s()}catch(a){o(a);return}n(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var hn=c(E(),1);var fn=class extends hn.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return(0,hn.adoptStyles)(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){No(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 wl(t,e,...r){var i;let o=t.querySelector(e);for(let n of r)o=(i=o?.shadowRoot)===null||i===void 0?void 0:i.querySelector(n);return o}var Kr=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Tl,_l=Symbol("constructorPrototype"),Ol=Symbol("constructorName"),kl=Symbol("exportpartsDebouncer"),Rl=Symbol("dynamicDependenciesLoaded"),qr=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};qr.eventName="exportparts-updated";var Ot=class extends fn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Tl]=new pn(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[kl].run(()=>{var o,n;!((o=this.exportpartsPrefix)===null||o===void 0)&&o.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((n=this.exportpartsPrefixes)===null||n===void 0?void 0:n.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Ol]=this.constructor.name,this[_l]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ol]&&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[Rl]||(r[Rl]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(qr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(qr.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 qr)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:o}=this.elementToFocus;if(i!=null){let n=[...o??[],i];r=wl(this.shadowRoot,...n)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,o;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(n=>n.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((o=this.customStylesheet)!==null&&o!==void 0?o:"")}catch(n){console.error(n,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let n=document.createElement("style");n.classList.add("ft-lit-element--custom-stylesheet"),n.innerHTML=this.customStylesheet,this.shadowRoot.append(n)}}setExportpartsAttribute(e){var r,i,o,n,s,a;let l=f=>f!=null&&f.trim().length>0,d=e.filter(l).map(f=>f.trim());if(d.length===0){this.exportparts=void 0;return}let u=new Set;for(let f of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let b=(s=(i=f.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&s!==void 0?s:[],x=(a=(o=f.getAttribute("exportparts"))===null||o===void 0?void 0:o.split(",").map(v=>v.split(":")[1]))!==null&&a!==void 0?a:[],O=[...b,...x].filter(l).map(v=>v.trim());for(let v of O)u.add(v)}if(u.size===0){this.exportparts=void 0;return}let p=[...u.values()].flatMap(f=>d.map(b=>`${f}:${b}--${f}`));this.exportparts=[...this.part,...p].join(", ")}};Tl=kl;Kr([(0,Sr.property)()],Ot.prototype,"exportpartsPrefix",void 0);Kr([Al([])],Ot.prototype,"exportpartsPrefixes",void 0);Kr([(0,Sr.property)({reflect:!0})],Ot.prototype,"exportparts",void 0);Kr([(0,Sr.property)()],Ot.prototype,"customStylesheet",void 0);Kr([(0,Sr.property)()],Ot.prototype,"elementToFocus",void 0);Kr([(0,Sr.state)()],Ot.prototype,"useAdoptedStyleSheets",void 0);function mn(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ri=Symbol("internalReduxEventsUnsubscribers"),Xt=Symbol("internalStoresUnsubscribers"),Er=Symbol("internalStores"),Qp=dn(Symbol("withRedux"),function(t){var e,r,i;class o extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Er].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Er].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Er].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Er].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[Er].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Er].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 d=this.getStore(s.store);d&&(s.store?this[Xt].has(s.store):this[Xt].size>0)&&(this[a]=s.selector(d.getState(),this))}})}subscribeToStore(s,a){var l;this[Xt].set(s,a.subscribe(()=>this.updateFromStores())),this[Ri].set(s,[]),mn(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((d,u)=>{if(typeof this[u]=="function"&&(!d.store||a.name===d.store)){let p=f=>this[u](f);a.addEventListener(d.eventName,p),this[Ri].get(s).push(()=>a.removeEventListener(d.eventName,p))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Xt].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[Xt].has(s)&&this[Xt].get(s)(),this[Xt].delete(s),(a=this[Ri].get(s))===null||a===void 0||a.forEach(l=>l()),this[Ri].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Xt,r=Er,i=Ri,o.reduxProperties=new Map,o.reduxReactiveProperties=new Set,o.reduxEventListeners=new Map,o}),Ll=class extends Qp(Ot){};function Ee(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 Jp=typeof Symbol=="function"&&Symbol.observable||"@@observable",$l=Jp,Bo=()=>Math.random().toString(36).substring(7).split("").join("."),ef={INIT:`@@redux/INIT${Bo()}`,REPLACE:`@@redux/REPLACE${Bo()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Bo()}`},gn=ef;function yn(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 Uo(t,e,r){if(typeof t!="function")throw new Error(Ee(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Ee(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ee(1));return r(Uo)(t,e)}let i=t,o=e,n=new Map,s=n,a=0,l=!1;function d(){s===n&&(s=new Map,n.forEach((v,T)=>{s.set(T,v)}))}function u(){if(l)throw new Error(Ee(3));return o}function p(v){if(typeof v!="function")throw new Error(Ee(4));if(l)throw new Error(Ee(5));let T=!0;d();let H=a++;return s.set(H,v),function(){if(T){if(l)throw new Error(Ee(6));T=!1,d(),s.delete(H),n=null}}}function f(v){if(!yn(v))throw new Error(Ee(7));if(typeof v.type>"u")throw new Error(Ee(8));if(typeof v.type!="string")throw new Error(Ee(17));if(l)throw new Error(Ee(9));try{l=!0,o=i(o,v)}finally{l=!1}return(n=s).forEach(H=>{H()}),v}function b(v){if(typeof v!="function")throw new Error(Ee(10));i=v,f({type:gn.REPLACE})}function x(){let v=p;return{subscribe(T){if(typeof T!="object"||T===null)throw new Error(Ee(11));function H(){let D=T;D.next&&D.next(u())}return H(),{unsubscribe:v(H)}},[$l](){return this}}}return f({type:gn.INIT}),{dispatch:f,subscribe:p,getState:u,replaceReducer:b,[$l]:x}}function tf(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:gn.INIT})>"u")throw new Error(Ee(12));if(typeof r(void 0,{type:gn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ee(13))})}function Dl(t){let e=Object.keys(t),r={};for(let s=0;s<e.length;s++){let a=e[s];typeof t[a]=="function"&&(r[a]=t[a])}let i=Object.keys(r),o,n;try{tf(r)}catch(s){n=s}return function(a={},l){if(n)throw n;let d=!1,u={};for(let p=0;p<i.length;p++){let f=i[p],b=r[f],x=a[f],O=b(x,l);if(typeof O>"u"){let v=l&&l.type;throw new Error(Ee(14))}u[f]=O,d=d||O!==x}return d=d||i.length!==Object.keys(a).length,d?u:a}}function Ti(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function Pl(...t){return e=>(r,i)=>{let o=e(r,i),n=()=>{throw new Error(Ee(15))},s={getState:o.getState,dispatch:(l,...d)=>n(l,...d)},a=t.map(l=>l(s));return n=Ti(...a)(o.dispatch),{...o,dispatch:n}}}function Il(t){return yn(t)&&"type"in t&&typeof t.type=="string"}var jl=Symbol.for("immer-nothing"),Ml=Symbol.for("immer-draftable"),ke=Symbol.for("immer-state");function gt(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var qe=Object,Xr=qe.getPrototypeOf,Sn="constructor",On="prototype",jo="configurable",En="enumerable",vn="writable",ki="value",Rt=t=>!!t&&!!t[ke];function Ke(t){return t?Wl(t)||Tn(t)||!!t[Ml]||!!t[Sn]?.[Ml]||kn(t)||Ln(t):!1}var rf=qe[On][Sn].toString(),Nl=new WeakMap;function Wl(t){if(!t||!Qo(t))return!1;let e=Xr(t);if(e===null||e===qe[On])return!0;let r=qe.hasOwnProperty.call(e,Sn)&&e[Sn];if(r===Object)return!0;if(!Gr(r))return!1;let i=Nl.get(r);return i===void 0&&(i=Function.toString.call(r),Nl.set(r,i)),i===rf}function Rn(t,e,r=!0){Di(t)===0?(r?Reflect.ownKeys(t):qe.keys(t)).forEach(o=>{e(o,t[o],t)}):t.forEach((i,o)=>e(o,i,t))}function Di(t){let e=t[ke];return e?e.type_:Tn(t)?1:kn(t)?2:Ln(t)?3:0}var zo=(t,e,r=Di(t))=>r===2?t.has(e):qe[On].hasOwnProperty.call(t,e),Wo=(t,e,r=Di(t))=>r===2?t.get(e):t[e],An=(t,e,r,i=Di(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function nf(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Tn=Array.isArray,kn=t=>t instanceof Map,Ln=t=>t instanceof Set,Qo=t=>typeof t=="object",Gr=t=>typeof t=="function",Vo=t=>typeof t=="boolean";function of(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var Bt=t=>t.copy_||t.base_;var Jo=t=>t.modified_?t.copy_:t.base_;function qo(t,e){if(kn(t))return new Map(t);if(Ln(t))return new Set(t);if(Tn(t))return Array[On].slice.call(t);let r=Wl(t);if(e===!0||e==="class_only"&&!r){let i=qe.getOwnPropertyDescriptors(t);delete i[ke];let o=Reflect.ownKeys(i);for(let n=0;n<o.length;n++){let s=o[n],a=i[s];a[vn]===!1&&(a[vn]=!0,a[jo]=!0),(a.get||a.set)&&(i[s]={[jo]:!0,[vn]:!0,[En]:a[En],[ki]:t[s]})}return qe.create(Xr(t),i)}else{let i=Xr(t);if(i!==null&&r)return{...t};let o=qe.create(i);return qe.assign(o,t)}}function es(t,e=!1){return $n(t)||Rt(t)||!Ke(t)||(Di(t)>1&&qe.defineProperties(t,{set:bn,add:bn,clear:bn,delete:bn}),qe.freeze(t),e&&Rn(t,(r,i)=>{es(i,!0)},!1)),t}function sf(){gt(2)}var bn={[ki]:sf};function $n(t){return t===null||!Qo(t)?!0:qe.isFrozen(t)}var Cn="MapSet",Ko="Patches",Fl="ArrayMethods",ql={};function Ar(t){let e=ql[t];return e||gt(0,t),e}var Bl=t=>!!ql[t];var Li,Kl=()=>Li,af=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Bl(Cn)?Ar(Cn):void 0,arrayMethodsPlugin_:Bl(Fl)?Ar(Fl):void 0});function Ul(t,e){e&&(t.patchPlugin_=Ar(Ko),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Go(t){Xo(t),t.drafts_.forEach(lf),t.drafts_=null}function Xo(t){t===Li&&(Li=t.parent_)}var zl=t=>Li=af(Li,t);function lf(t){let e=t[ke];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Vl(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[ke].modified_&&(Go(e),gt(4)),Ke(t)&&(t=Hl(e,t));let{patchPlugin_:o}=e;o&&o.generateReplacementPatches_(r[ke].base_,t,e)}else t=Hl(e,r);return cf(e,t,!0),Go(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==jl?t:void 0}function Hl(t,e){if($n(e))return e;let r=e[ke];if(!r)return wn(e,t.handledSet_,t);if(!Dn(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);Yl(r,t)}return r.copy_}function cf(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&es(e,r)}function Gl(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Dn=(t,e)=>t.scope_===e,df=[];function Xl(t,e,r,i){let o=Bt(t),n=t.type_;if(i!==void 0&&Wo(o,i,n)===e){An(o,i,r,n);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;Rn(o,(l,d)=>{if(Rt(d)){let u=a.get(d)||[];u.push(l),a.set(d,u)}})}let s=t.draftLocations_.get(e)??df;for(let a of s)An(o,a,r,n)}function uf(t,e,r){t.callbacks_.push(function(o){let n=e;if(!n||!Dn(n,o))return;o.mapSetPlugin_?.fixSetContents(n);let s=Jo(n);Xl(t,n.draft_??n,s,r),Yl(n,o)})}function Yl(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let o=i.getPath(t);o&&i.generatePatches_(t,o,e)}Gl(t)}}function pf(t,e,r){let{scope_:i}=t;if(Rt(r)){let o=r[ke];Dn(o,i)&&o.callbacks_.push(function(){xn(t);let s=Jo(o);Xl(t,r,s,e)})}else Ke(r)&&t.callbacks_.push(function(){let n=Bt(t);t.type_===3?n.has(r)&&wn(r,i.handledSet_,i):Wo(n,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&wn(Wo(t.copy_,e,t.type_),i.handledSet_,i)})}function wn(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Rt(t)||e.has(t)||!Ke(t)||$n(t)||(e.add(t),Rn(t,(i,o)=>{if(Rt(o)){let n=o[ke];if(Dn(n,r)){let s=Jo(n);An(t,i,s,t.type_),Gl(n)}}else Ke(o)&&wn(o,e,r)})),t}function ff(t,e){let r=Tn(t),i={type_:r?1:0,scope_:e?e.scope_:Kl(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},o=i,n=_n;r&&(o=[i],n=$i);let{revoke:s,proxy:a}=Proxy.revocable(o,n);return i.draft_=a,i.revoke_=s,[a,i]}var _n={get(t,e){if(e===ke)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let o=Bt(t);if(!zo(o,e,t.type_))return mf(t,o,e);let n=o[e];if(t.finalized_||!Ke(n)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&of(e))return n;if(n===Ho(t.base_,e)||hf(t,e,n)){xn(t);let s=t.type_===1?+e:e,a=Zo(t.scope_,n,t,s);return t.copy_[s]=a}return n},has(t,e){return e in Bt(t)},ownKeys(t){return Reflect.ownKeys(Bt(t))},set(t,e,r){let i=Zl(Bt(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let o=Ho(Bt(t),e),n=o?.[ke];if(n&&n.base_===r)return t.copy_[e]=r,t.assigned_.set(e,!1),!0;if(nf(r,o)&&(r!==void 0||zo(t.base_,e,t.type_)))return!0;xn(t),Yo(t)}return t.copy_[e]===r&&(r!==void 0||zo(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),pf(t,e,r)),!0},deleteProperty(t,e){return xn(t),Ho(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),Yo(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=Bt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[vn]:!0,[jo]:t.type_!==1||e!=="length",[En]:i[En],[ki]:r[e]}},defineProperty(){gt(11)},getPrototypeOf(t){return Xr(t.base_)},setPrototypeOf(){gt(12)}},$i={};for(let t in _n){let e=_n[t];$i[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}$i.deleteProperty=function(t,e){return $i.set.call(this,t,e,void 0)};$i.set=function(t,e,r){return _n.set.call(this,t[0],e,r,t[0])};function Ho(t,e){let r=t[ke];return(r?Bt(r):t)[e]}function hf(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!Ke(r)||r[ke]?!1:t.baseRefs_.has(r)}function mf(t,e,r){let i=Zl(e,r);return i?ki in i?i[ki]:i.get?.call(t.draft_):void 0}function Zl(t,e){if(!(e in t))return;let r=Xr(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Xr(r)}}function Yo(t){t.modified_||(t.modified_=!0,t.parent_&&Yo(t.parent_))}function xn(t){t.copy_||(t.assigned_=new Map,t.copy_=qo(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var gf=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(Gr(e)&&!Gr(r)){let n=r;r=e;let s=this;return function(l=n,...d){return s.produce(l,u=>r.call(this,u,...d))}}Gr(r)||gt(6),i!==void 0&&!Gr(i)&>(7);let o;if(Ke(e)){let n=zl(this),s=Zo(n,e,void 0),a=!0;try{o=r(s),a=!1}finally{a?Go(n):Xo(n)}return Ul(n,i),Vl(o,n)}else if(!e||!Qo(e)){if(o=r(e),o===void 0&&(o=e),o===jl&&(o=void 0),this.autoFreeze_&&es(o,!0),i){let n=[],s=[];Ar(Ko).generateReplacementPatches_(e,o,{patches_:n,inversePatches_:s}),i(n,s)}return o}else gt(1,e)},this.produceWithPatches=(e,r)=>{if(Gr(e))return(s,...a)=>this.produceWithPatches(s,l=>e(l,...a));let i,o;return[this.produce(e,r,(s,a)=>{i=s,o=a}),i,o]},Vo(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Vo(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Vo(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Ke(t)||gt(8),Rt(t)&&(t=Ql(t));let e=zl(this),r=Zo(e,t,void 0);return r[ke].isManual_=!0,Xo(e),r}finishDraft(t,e){let r=t&&t[ke];(!r||!r.isManual_)&>(9);let{scope_:i}=r;return Ul(i,e),Vl(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let o=e[r];if(o.path.length===0&&o.op==="replace"){t=o.value;break}}r>-1&&(e=e.slice(r+1));let i=Ar(Ko).applyPatches_;return Rt(t)?i(t,e):this.produce(t,o=>i(o,e))}};function Zo(t,e,r,i){let[o,n]=kn(e)?Ar(Cn).proxyMap_(e,r):Ln(e)?Ar(Cn).proxySet_(e,r):ff(e,r);return(r?.scope_??Kl()).drafts_.push(o),n.callbacks_=r?.callbacks_??[],n.key_=i,r&&i!==void 0?uf(r,n,i):n.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(n);let{patchPlugin_:d}=l;n.modified_&&d&&d.generatePatches_(n,[],l)}),o}function Ql(t){return Rt(t)||gt(10,t),Jl(t)}function Jl(t){if(!Ke(t)||$n(t))return t;let e=t[ke],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=qo(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=qo(t,!0);return Rn(r,(o,n)=>{An(r,o,Jl(n))},i),e&&(e.finalized_=!1),r}var yf=globalThis.Iterator,hg=typeof yf?.from=="function";var bf=new gf,ts=bf.produce;function ec(t){return({dispatch:r,getState:i})=>o=>n=>typeof n=="function"?n(r,i,t):o(n)}var tc=ec(),rc=ec;var vf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ti:Ti.apply(null,arguments)},Sg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},xf=t=>t&&typeof t.match=="function";function Yt(t,e){function r(...i){if(e){let o=e(...i);if(!o)throw new Error(Ut(0));return{type:t,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>Il(i)&&i.type===t,r}var ac=class Pi extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Pi.prototype)}static get[Symbol.species](){return Pi}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Pi(...e[0].concat(this)):new Pi(...e.concat(this))}};function ic(t){return Ke(t)?ts(t,()=>{}):t}function Pn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Sf(t){return typeof t=="boolean"}var Ef=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:o=!0,actionCreatorCheck:n=!0}=e??{},s=new ac;return r&&(Sf(r)?s.push(tc):s.push(rc(r.extraArgument))),s},Af="RTK_autoBatch";var nc=t=>e=>{setTimeout(e,t)},Cf=(t,e)=>r=>{let i=!1,o=()=>{i||(i=!0,cancelAnimationFrame(n),clearTimeout(s),r())},n=t(o),s=setTimeout(o,e)},wf=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),o=!0,n=!1,s=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Cf(window.requestAnimationFrame,100):nc(10):t.type==="callback"?t.queueNotification:nc(t.timeout),d=()=>{s=!1,n&&(n=!1,a.forEach(u=>u()))};return Object.assign({},i,{subscribe(u){let p=()=>o&&u(),f=i.subscribe(p);return a.add(u),()=>{f(),a.delete(u)}},dispatch(u){try{return o=!u?.meta?.[Af],n=!o,n&&(s||(s=!0,l(d))),i.dispatch(u)}finally{o=!0}}})},_f=t=>function(r){let{autoBatch:i=!0}=r??{},o=new ac(t);return i&&o.push(wf(typeof i=="object"?i:void 0)),o};function lc(t){let e=Ef(),{reducer:r=void 0,middleware:i,devTools:o=!0,duplicateMiddlewareCheck:n=!0,preloadedState:s=void 0,enhancers:a=void 0}=t||{},l;if(typeof r=="function")l=r;else if(yn(r))l=Dl(r);else throw new Error(Ut(1));let d;typeof i=="function"?d=i(e):d=e();let u=Ti;o&&(u=vf({trace:!1,...typeof o=="object"&&o}));let p=Pl(...d),f=_f(p),b=typeof a=="function"?a(f):f(),x=u(...b);return Uo(l,s,x)}function cc(t){let e={},r=[],i,o={addCase(n,s){let a=typeof n=="string"?n:n.type;if(!a)throw new Error(Ut(28));if(a in e)throw new Error(Ut(29));return e[a]=s,o},addAsyncThunk(n,s){return s.pending&&(e[n.pending.type]=s.pending),s.rejected&&(e[n.rejected.type]=s.rejected),s.fulfilled&&(e[n.fulfilled.type]=s.fulfilled),s.settled&&r.push({matcher:n.settled,reducer:s.settled}),o},addMatcher(n,s){return r.push({matcher:n,reducer:s}),o},addDefaultCase(n){return i=n,o}};return t(o),[e,r,i]}function Of(t){return typeof t=="function"}function Rf(t,e){let[r,i,o]=cc(e),n;if(Of(t))n=()=>ic(t());else{let a=ic(t);n=()=>a}function s(a=n(),l){let d=[r[l.type],...i.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return d.filter(u=>!!u).length===0&&(d=[o]),d.reduce((u,p)=>{if(p)if(Rt(u)){let b=p(u,l);return b===void 0?u:b}else{if(Ke(u))return ts(u,f=>p(f,l));{let f=p(u,l);if(f===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return f}}return u},a)}return s.getInitialState=n,s}var Tf=(t,e)=>xf(t)?t.match(e):t(e);function kf(...t){return e=>t.some(r=>Tf(r,e))}var Lf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",$f=(t=21)=>{let e="",r=t;for(;r--;)e+=Lf[Math.random()*64|0];return e},Df=["name","message","stack","code"],rs=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},oc=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},Pf=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of Df)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},sc="External signal was aborted",If=(()=>{function t(e,r,i){let o=Yt(e+"/fulfilled",(l,d,u,p)=>({payload:l,meta:{...p||{},arg:u,requestId:d,requestStatus:"fulfilled"}})),n=Yt(e+"/pending",(l,d,u)=>({payload:void 0,meta:{...u||{},arg:d,requestId:l,requestStatus:"pending"}})),s=Yt(e+"/rejected",(l,d,u,p,f)=>({payload:p,error:(i&&i.serializeError||Pf)(l||"Rejected"),meta:{...f||{},arg:u,requestId:d,rejectedWithValue:!!p,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:d}={}){return(u,p,f)=>{let b=i?.idGenerator?i.idGenerator(l):$f(),x=new AbortController,O,v;function T(S){v=S,x.abort()}d&&(d.aborted?T(sc):d.addEventListener("abort",()=>T(sc),{once:!0}));let H=(async function(){let S;try{let B=i?.condition?.(l,{getState:p,extra:f});if(Nf(B)&&(B=await B),B===!1||x.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let ae=new Promise((Q,le)=>{O=()=>{le({name:"AbortError",message:v||"Aborted"})},x.signal.addEventListener("abort",O,{once:!0})});u(n(b,l,i?.getPendingMeta?.({requestId:b,arg:l},{getState:p,extra:f}))),S=await Promise.race([ae,Promise.resolve(r(l,{dispatch:u,getState:p,extra:f,requestId:b,signal:x.signal,abort:T,rejectWithValue:((Q,le)=>new rs(Q,le)),fulfillWithValue:((Q,le)=>new oc(Q,le))})).then(Q=>{if(Q instanceof rs)throw Q;return Q instanceof oc?o(Q.payload,b,l,Q.meta):o(Q,b,l)})])}catch(B){S=B instanceof rs?s(null,b,l,B.payload,B.meta):s(B,b,l)}finally{O&&x.signal.removeEventListener("abort",O)}return i&&!i.dispatchConditionRejection&&s.match(S)&&S.meta.condition||u(S),S})();return Object.assign(H,{abort:T,requestId:b,arg:l,unwrap(){return H.then(Mf)}})}}return Object.assign(a,{pending:n,rejected:s,fulfilled:o,settled:kf(s,o),typePrefix:e})}return t.withTypes=()=>t,t})();function Mf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Nf(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var dc=Symbol.for("rtk-slice-createasyncthunk"),Ag={[dc]:If};function Ff(t,e){return`${t}/${e}`}function Bf({creators:t}={}){let e=t?.asyncThunk?.[dc];return function(i){let{name:o,reducerPath:n=o}=i;if(!o)throw new Error(Ut(11));typeof process<"u";let s=(typeof i.reducers=="function"?i.reducers(zf()):i.reducers)||{},a=Object.keys(s),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(S,D){let B=typeof S=="string"?S:S.type;if(!B)throw new Error(Ut(12));if(B in l.sliceCaseReducersByType)throw new Error(Ut(13));return l.sliceCaseReducersByType[B]=D,d},addMatcher(S,D){return l.sliceMatchers.push({matcher:S,reducer:D}),d},exposeAction(S,D){return l.actionCreators[S]=D,d},exposeCaseReducer(S,D){return l.sliceCaseReducersByName[S]=D,d}};a.forEach(S=>{let D=s[S],B={reducerName:S,type:Ff(o,S),createNotation:typeof i.reducers=="function"};Hf(D)?Wf(B,D,d,e):Vf(B,D,d)});function u(){let[S={},D=[],B=void 0]=typeof i.extraReducers=="function"?cc(i.extraReducers):[i.extraReducers],ae={...S,...l.sliceCaseReducersByType};return Rf(i.initialState,Q=>{for(let le in ae)Q.addCase(le,ae[le]);for(let le of l.sliceMatchers)Q.addMatcher(le.matcher,le.reducer);for(let le of D)Q.addMatcher(le.matcher,le.reducer);B&&Q.addDefaultCase(B)})}let p=S=>S,f=new Map,b=new WeakMap,x;function O(S,D){return x||(x=u()),x(S,D)}function v(){return x||(x=u()),x.getInitialState()}function T(S,D=!1){function B(Q){let le=Q[S];return typeof le>"u"&&D&&(le=Pn(b,B,v)),le}function ae(Q=p){let le=Pn(f,D,()=>new WeakMap);return Pn(le,Q,()=>{let ci={};for(let[tt,or]of Object.entries(i.selectors??{}))ci[tt]=Uf(or,Q,()=>Pn(b,Q,v),D);return ci})}return{reducerPath:S,getSelectors:ae,get selectors(){return ae(B)},selectSlice:B}}let H={name:o,reducer:O,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:v,...T(n),injectInto(S,{reducerPath:D,...B}={}){let ae=D??n;return S.inject({reducerPath:ae,reducer:O},B),{...H,...T(ae,!0)}}};return H}}function Uf(t,e,r,i){function o(n,...s){let a=e(n);return typeof a>"u"&&i&&(a=r()),t(a,...s)}return o.unwrapped=t,o}var uc=Bf();function zf(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function Vf({type:t,reducerName:e,createNotation:r},i,o){let n,s;if("reducer"in i){if(r&&!jf(i))throw new Error(Ut(17));n=i.reducer,s=i.prepare}else n=i;o.addCase(t,n).exposeCaseReducer(e,n).exposeAction(e,s?Yt(t,s):Yt(t))}function Hf(t){return t._reducerDefinitionType==="asyncThunk"}function jf(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Wf({type:t,reducerName:e},r,i,o){if(!o)throw new Error(Ut(18));let{payloadCreator:n,fulfilled:s,pending:a,rejected:l,settled:d,options:u}=r,p=o(t,n,u);i.exposeAction(e,p),s&&i.addCase(p.fulfilled,s),a&&i.addCase(p.pending,a),l&&i.addCase(p.rejected,l),d&&i.addMatcher(p.settled,d),i.exposeCaseReducer(e,{fulfilled:s||In,pending:a||In,rejected:l||In,settled:d||In})}function In(){}var pc="listener",fc="completed",hc="cancelled",Cg=`task-${hc}`,wg=`task-${fc}`,_g=`${pc}-${hc}`,Og=`${pc}-${fc}`;var{assign:mc}=Object;var is="listenerMiddleware";var qf=mc(Yt(`${is}/add`),{withTypes:()=>qf}),Rg=Yt(`${is}/removeAll`),Kf=mc(Yt(`${is}/remove`),{withTypes:()=>Kf});function Ut(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 Gf=dn(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,o){this.eventBus.addEventListener(r,i,o)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,o){this.eventBus.removeEventListener(r,i,o)}}}),Mn=class extends Gf(Object){};window.ftReduxStores||(window.ftReduxStores={});var gc=class t extends Mn{static get(e){var r;let i=typeof e=="string"?e:e.name,o=typeof e=="string"?void 0:e,n=window.ftReduxStores[i];if(mn(n))return n;if(o==null)return;let s=uc({...o,reducers:(r=o.reducers)!==null&&r!==void 0?r:{}}),a=lc({reducer:(l,d)=>{if(d.type==="CLEAR_FT_REDUX_STORE"){let u=_i(s.getInitialState());for(let p of d.keeping)u[p]=(l??u)[p];return u}else if(typeof d.type=="string"&&d.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...d.overwrites};return s.reducer(l,d)}});return window.ftReduxStores[o.name]=new t(s,a,o.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new un,this.injectInto=(n,s)=>this.reduxSlice.injectInto(n,s),this.selectSlice=n=>this.reduxSlice.selectSlice(n);let o=n=>n!=null?JSON.parse(JSON.stringify(n)):n;this.actions=new Proxy(this.reduxSlice.actions,{get:(n,s,a)=>{let l=s,d=n[l];return d?(...u)=>{let p=d(...u.map(o));return this.reduxStore.dispatch(p),p}:u=>{let p=l,f=this.getState()[p];Wr(f,u)||this.setState({[p]:o(u)})}}}),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 Nn=class{static format(e,r,i,o,n){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,o,!!n)):this.getIntlDateTime(e,r,i,o,!!n)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,o,n){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 n?l:o?`${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 Fn=c(m()),Xf="ft-app-info",Cr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Cr.eventName="authentication-change";var Ii=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Ii.eventName="ui-locale-changed";var Yf={session:(t,e)=>{(0,Fn.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>w.dispatchEvent(new Cr(e.payload)),0))}},w=Fn.FtReduxStore.get({name:Xf,reducers:Yf,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var yc=c(m()),Bn=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},ny=(0,yc.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(w)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var o,n;return((n=(o=this.metadataDescriptors.find(a=>a.key===i))===null||o===void 0?void 0:o.date)!==null&&n!==void 0?n:!1)?a=>Nn.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Bn([(0,ns.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Bn([(0,ns.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Bn([Fo({store:w.name,selector:r=>{var i,o;return(o=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&o!==void 0?o:[]}})],e.prototype,"metadataDescriptors",void 0),Bn([Fo({store:w.name})],e.prototype,"uiLocale",void 0),e});var bc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(bc||(bc={}));var vc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(vc||(vc={}));var xc;(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"})(xc||(xc={}));var Sc;(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"})(Sc||(Sc={}));var Ec;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ec||(Ec={}));var Ac;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Ac||(Ac={}));var Cc;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Cc||(Cc={}));var wc;(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"})(wc||(wc={}));var _c;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(_c||(_c={}));var Oc;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Oc||(Oc={}));var Rc;(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"})(Rc||(Rc={}));var Tc;(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"})(Tc||(Tc={}));var kc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(kc||(kc={}));var Lc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Lc||(Lc={}));var $c;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})($c||($c={}));var Dc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Dc||(Dc={}));var Pc;(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"})(Pc||(Pc={}));var Ic;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Ic||(Ic={}));var Mc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Mc||(Mc={}));var Nc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Nc||(Nc={}));var Fc;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Fc||(Fc={}));var Bc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Bc||(Bc={}));var Uc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Uc||(Uc={}));var zc;(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"})(zc||(zc={}));var Vc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Vc||(Vc={}));var Hc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Hc||(Hc={}));var jc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(jc||(jc={}));var Wc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Wc||(Wc={}));var me;(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"})(me||(me={}));var ot;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(ot||(ot={}));var qc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(qc||(qc={}));var Kc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Kc||(Kc={}));var Gc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Gc||(Gc={}));var Xc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Xc||(Xc={}));var Yc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Yc||(Yc={}));var Zc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Zc||(Zc={}));var Qc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Qc||(Qc={}));var Jc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Jc||(Jc={}));var ed;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(ed||(ed={}));var td;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(td||(td={}));var rd;(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"})(rd||(rd={}));var id;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(id||(id={}));var Zf={[me.PERSONAL_BOOK_SHARE_USER]:[me.PERSONAL_BOOK_USER],[me.HTML_EXPORT_USER]:[me.PERSONAL_BOOK_USER],[me.PDF_EXPORT_USER]:[me.PERSONAL_BOOK_USER],[me.KHUB_ADMIN]:[me.CONTENT_PUBLISHER],[me.ADMIN]:[me.KHUB_ADMIN,me.USERS_ADMIN,me.PORTAL_ADMIN,me.BEHAVIOR_DATA_USER],[me.GENERATIVE_AI_EXPORT_USER]:[me.GENERATIVE_AI_USER]};function nd(t,e){return t===e||(Zf[t]??[]).some(r=>nd(r,e))}function os(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=>nd(i,e))}function od(t,...e){return t==null?!1:e.some(r=>os(t,r))}var jn=c(m());var ss=c(m());var wr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=w.getState(),o=e??i;if(r&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,o,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let o=w.subscribe(()=>{i=t.get(e),i&&(o(),r(i))})}})}};var Yr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:wr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):wr.await()}};var Ge=class extends Yr{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(n,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let o=this.constructor;o.commonCache=(i=o.commonCache)!==null&&i!==void 0?i:new ss.CacheRegistry,this.cache=e?o.commonCache:new ss.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 Un=class extends Ge{async listMySearches(){let{session:e}=w.getState();return os(e,me.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var zn=class extends Ge{async listMyBookmarks(){let e=w.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Vn=class extends Ge{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=w.getState().session;return!!e?.sessionAuthenticated}};var Hn=class extends Ge{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=w.getState().session;return!!e?.sessionAuthenticated}};var Qf="ft-user-assets",Jf={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(ot).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:o}=e.payload;ls(t,r,[...as(t,r),o]),sd(t,r,1,i),ad(t,o)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;ls(t,r,as(t,r).map(o=>o.id===i.id?i:o)),ad(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:o}=e.payload;ls(t,r,as(t,r).filter(n=>n.id!==o)),sd(t,r,-1,i)}},ld={[ot.SEARCHES]:"savedSearches",[ot.BOOKMARKS]:"bookmarks",[ot.BOOKS]:void 0,[ot.COLLECTIONS]:void 0},as=(t,e)=>{var r;let i=ld[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},ls=(t,e,r)=>{let i=ld[e];i&&(t[i]=r)},sd=(t,e,r,i)=>{let o=t.assetCounts.allAsset[e];if(o!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,o+r),e===ot.BOOKMARKS&&i)){let n=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,n+r)}},ad=(t,e)=>{let r=t.assetLabels.map(o=>o.title),i=e.labels.filter(o=>!r.includes(o)).map(o=>({title:o}));t.assetLabels.push(...i)},De=jn.FtReduxStore.get({name:Qf,reducers:Jf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ot).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),cs=class{constructor(e=new Vn,r=new Hn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new zn,this.savedSearchesService=new Un,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=w.getState();(0,jn.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(),De.actions.clearAssetCount(),De.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),De.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),De.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();De.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();De.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&De.getState().assetCounts.allAsset[e]!==r.count&&De.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&De.getState().assetCounts.bookmarkByMap[e]!==r.count&&De.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(De.getState().assetCounts.bookmarkByMap).length!==0;e===ot.BOOKMARKS&&r&&De.actions.clearBookmarkCountByMap(),De.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;De.actions.bookmarks(r)}}},eh=new cs;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=eh);var ds=class{addCommand(e,r=!1){w.commands.add(e,r)}consumeCommand(e){return w.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ds;var st=c(m());var cd,Zr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},th=Symbol("clearAfterUnitTest"),Wn=class extends(0,st.withEventBus)(Ge){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[cd]=()=>{this.defaultMessages={},this.cache=new st.CacheRegistry,this.listeners={}},this.currentUiLocale=w.getState().uiLocale,w.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=w.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let o={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,st.deepEqual)(this.defaultMessages[e],o)||(this.defaultMessages[e]=o,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var o;let n=e.toLowerCase(),s=this.resolveContext(n);return new st.ParametrizedLabelResolver((o=this.defaultMessages[n])!==null&&o!==void 0?o:{},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(o){!(o instanceof st.CanceledPromiseError)&&r&&console.error(o)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var o;return(o=this.listeners[e])===null||o===void 0?void 0:o.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Zr({loadedContexts:e})),this.dispatchEvent(new Zr({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new Zr({loadedContexts:[e]})),this.dispatchEvent(new Zr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,st.delay)(0).then(()=>i()).catch(()=>null)))}};cd=th;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Wn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Wn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Mi=window.FluidTopicsI18nService,us=window.FluidTopicsCustomI18nService;var dd=c(m()),ps=class{highlightHtml(e,r,i){(0,dd.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new ps;var ud=c(m());var fs=class{isDate(e){var r,i,o,n;return(n=(i=((o=(r=w.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&o!==void 0?o:[]).find(a=>a.key===e))===null||i===void 0?void 0:i.date)!==null&&n!==void 0?n:!1}format(e,r){var i,o,n,s;if(e==null)return"";try{return ud.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:w.getState().uiLocale,(o=r?.longFormat)!==null&&o!==void 0?o:!1,(n=r?.withTime)!==null&&n!==void 0?n:!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 fs;var pd=c(m());var Ni=class{static get(e,r){var i,o,n,s;let a=w.getState(),{lang:l,region:d}=(s=(o=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||o===void 0?void 0:o.defaultContentLocale)!==null&&s!==void 0?s:{lang:"en",region:"US"};return new pd.SearchPlaceConverter(a.baseUrl,e??20,(n=a.localesConfiguration)===null||n===void 0?void 0:n.allLanguagesAllowed,r??`${l}-${d}`)}};var hs=class{urlToSearchRequest(e){return Ni.get().parse(e)}searchRequestToUrl(e){return Ni.get().serialize(e)}};window.FluidTopicsUrlService=new hs;var zt=c(m());var _r=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};_r.eventName="before-location-change";var Or=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Or.eventName="change";var ms=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))}},fd=new ms;var qn=class t extends zt.WithEventBus{static build(){return new t(window.history,fd,()=>window.location,!1)}constructor(e,r,i,o){var n,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(n=e.state)===null||n===void 0?void 0:n.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(o)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,zt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Or(this.currentItem())),0)}installProxies(){let e=r=>(i,o,[n,s,a])=>{let l=new _r(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(l);let d=r(),u={...d===this.currentIndex?this.currentState:void 0,...n,index:d,href:l.detail.nextLocation.href};i.apply(o,[u,s,u.href]),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)}addBeforeLocationChangeListener(e){this.addEventListener(_r.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(_r.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Or.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Or.eventName,e)}currentItem(){return(0,zt.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,zt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,zt.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,zt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let o=e,n=e+1;for(;this.states.length>n&&!this.isDifferentMajorState(n,i);)this.hasState(n)&&(o=n),n++;return o}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let o=r??this.currentState.majorStateId,n=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return n==null||n!=o}};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),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)});var hd=c(E());var md=hd.css`
|
|
619
|
-
`;var bd=c(E()),
|
|
623
|
+
`;var Ya=["top","right","bottom","left"],Xa=["start","end"],$o=Ya.reduce((t,e)=>t.concat(e,e+"-"+Xa[0],e+"-"+Xa[1]),[]),vi=Math.min,Kt=Math.max,xi=Math.round;var _t=t=>({x:t,y:t}),Tp={left:"right",right:"left",bottom:"top",top:"bottom"};function Za(t,e,r){return Kt(t,vi(e,r))}function nn(t,e){return typeof t=="function"?t(e):t}function Si(t){return t.split("-")[0]}function qt(t){return t.split("-")[1]}function Do(t){return t==="x"?"y":"x"}function Po(t){return t==="y"?"height":"width"}function on(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Io(t){return Do(on(t))}function Qa(t,e,r){r===void 0&&(r=!1);let i=qt(t),o=Io(t),n=Po(o),s=o==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[n]>e.floating[n]&&(s=Lo(s)),[s,Lo(s)]}function Ja(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Lo(t){let e=Si(t);return Tp[e]+t.slice(e.length)}function kp(t){var e,r,i,o;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(o=t.left)!=null?o:0}}function el(t){return typeof t!="number"?kp(t):{top:t,right:t,bottom:t,left:t}}function yr(t){let{x:e,y:r,width:i,height:o}=t;return{width:i,height:o,top:r,left:e,right:e+i,bottom:r+o,x:e,y:r}}function tl(t,e,r){let{reference:i,floating:o}=t,n=on(e),s=Io(e),a=Po(s),l=Si(e),d=n==="y",u=i.x+i.width/2-o.width/2,p=i.y+i.height/2-o.height/2,f=i[a]/2-o[a]/2,b;switch(l){case"top":b={x:u,y:i.y-o.height};break;case"bottom":b={x:u,y:i.y+i.height};break;case"right":b={x:i.x+i.width,y:p};break;case"left":b={x:i.x-o.width,y:p};break;default:b={x:i.x,y:i.y}}let x=qt(e);return x&&(b[s]+=f*(x==="end"?1:-1)*(r&&d?-1:1)),b}async function rl(t,e){var r;e===void 0&&(e={});let{x:i,y:o,platform:n,rects:s,elements:a,strategy:l}=t,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:f=!1,padding:b=0}=nn(e,t),x=el(b),v=a[f?p==="floating"?"reference":"floating":p],L=yr(await n.getClippingRect({element:(r=await(n.isElement==null?void 0:n.isElement(v)))==null||r?v:v.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(a.floating)),boundary:d,rootBoundary:u,strategy:l})),H=p==="floating"?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,S=await(n.getOffsetParent==null?void 0:n.getOffsetParent(a.floating)),A=await(n.isElement==null?void 0:n.isElement(S))&&await(n.getScale==null?void 0:n.getScale(S))||{x:1,y:1},K=yr(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:H,offsetParent:S,strategy:l}):H);return{top:(L.top-K.top+x.top)/A.y,bottom:(K.bottom-L.bottom+x.bottom)/A.y,left:(L.left-K.left+x.left)/A.x,right:(K.right-L.right+x.right)/A.x}}var Lp=50,il=async(t,e,r)=>{let{placement:i="bottom",strategy:o="absolute",middleware:n=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:rl},l=await(s.isRTL==null?void 0:s.isRTL(e)),d=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:u,y:p}=tl(d,i,l),f=i,b=0,x={};for(let R=0;R<n.length;R++){let v=n[R];if(!v)continue;let{name:L,fn:H}=v,{x:S,y:A,data:K,reset:z}=await H({x:u,y:p,initialPlacement:i,placement:f,strategy:o,middlewareData:x,rects:d,platform:a,elements:{reference:t,floating:e}});u=S??u,p=A??p,x[L]={...x[L],...K},z&&b<Lp&&(b++,typeof z=="object"&&(z.placement&&(f=z.placement),z.rects&&(d=z.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:o}):z.rects),{x:u,y:p}=tl(d,f,l)),R=-1)}return{x:u,y:p,placement:f,strategy:o,middlewareData:x}};function $p(t,e,r){return(t?[...r.filter(o=>qt(o)===t),...r.filter(o=>qt(o)!==t)]:r.filter(o=>Si(o)===o)).filter(o=>t?qt(o)===t||(e?Ja(o)!==o:!1):!0)}var nl=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,o;let{rects:n,middlewareData:s,placement:a,platform:l,elements:d}=e,{crossAxis:u=!1,alignment:p,allowedPlacements:f=$o,autoAlignment:b=!0,...x}=nn(t,e),R=p!==void 0||f===$o?$p(p||null,b,f):f,v=((r=s.autoPlacement)==null?void 0:r.index)||0,L=R[v];if(L==null)return{};if(a!==L)return{reset:{placement:R[0]}};let H=await l.detectOverflow(e,x),S=Qa(L,n,await(l.isRTL==null?void 0:l.isRTL(d.floating))),A=[H[Si(L)],H[S[0]],H[S[1]]],K=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:L,overflows:A}],z=R[v+1];if(z)return{data:{index:v+1,overflows:K},reset:{placement:z}};let ge=K.map(tt=>{let ci=qt(tt.placement);return[tt.placement,ci&&u?tt.overflows.slice(0,2).reduce((gp,yp)=>gp+yp,0):tt.overflows[0],tt.overflows]}).sort((tt,ci)=>tt[1]-ci[1]),Yi=((o=ge.filter(tt=>tt[2].slice(0,qt(tt[0])?2:3).every(ci=>ci<=0))[0])==null?void 0:o[0])||ge[0][0];return Yi!==a?{data:{index:v+1,overflows:K},reset:{placement:Yi}}:{}}}};var ol=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:o,platform:n}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:H=>{let{x:S,y:A}=H;return{x:S,y:A}}},...d}=nn(t,e),u={x:r,y:i},p=await n.detectOverflow(e,d),f=on(o),b=Do(f),x=u[b],R=u[f],v=(H,S)=>Za(S+p[H==="y"?"top":"left"],S,S-p[H==="y"?"bottom":"right"]);s&&(x=v(b,x)),a&&(R=v(f,R));let L=l.fn({...e,[b]:x,[f]:R});return{...L,data:{x:L.x-r,y:L.y-i,enabled:{[b]:s,[f]:a}}}}}};function an(){return typeof window<"u"}function vr(t){return al(t)?(t.nodeName||"").toLowerCase():"#document"}function ze(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ft(t){var e;return(e=(al(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function al(t){return an()?t instanceof Node||t instanceof ze(t).Node:!1}function mt(t){return an()?t instanceof Element||t instanceof ze(t).Element:!1}function Bt(t){return an()?t instanceof HTMLElement||t instanceof ze(t).HTMLElement:!1}function sl(t){return!an()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ze(t).ShadowRoot}function Ei(t){let{overflow:e,overflowX:r,overflowY:i,display:o}=gt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&o!=="inline"&&o!=="contents"}function ll(t){return/^(table|td|th)$/.test(vr(t))}function Ai(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Dp=/transform|translate|scale|rotate|perspective|filter/,Pp=/paint|layout|strict|content/,br=t=>!!t&&t!=="none",Mo;function Vr(t){let e=mt(t)?gt(t):t;return br(e.transform)||br(e.translate)||br(e.scale)||br(e.rotate)||br(e.perspective)||!ln()&&(br(e.backdropFilter)||br(e.filter))||Dp.test(e.willChange||"")||Pp.test(e.contain||"")}function cl(t){let e=Gt(t);for(;Bt(e)&&!Hr(e);){if(Vr(e))return e;if(Ai(e))return null;e=Gt(e)}return null}function ln(){return Mo==null&&(Mo=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Mo}function Hr(t){return/^(html|body|#document)$/.test(vr(t))}function gt(t){return ze(t).getComputedStyle(t)}function Ci(t){return mt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Gt(t){if(vr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||sl(t)&&t.host||Ft(t);return sl(e)?e.host:e}function dl(t){let e=Gt(t);return Hr(e)?(t.ownerDocument||t).body:Bt(e)&&Ei(e)?e:dl(e)}function sn(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let o=dl(t),n=o===((i=t.ownerDocument)==null?void 0:i.body),s=ze(o);if(n){let a=cn(s);return e.concat(s,s.visualViewport||[],Ei(o)?o:[],a&&r?sn(a):[])}else return e.concat(o,sn(o,[],r))}function cn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function fl(t){let e=gt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,o=Bt(t),n=o?t.offsetWidth:r,s=o?t.offsetHeight:i,a=xi(r)!==n||xi(i)!==s;return a&&(r=n,i=s),{width:r,height:i,$:a}}function hl(t){return mt(t)?t:t.contextElement}function jr(t){let e=hl(t);if(!Bt(e))return _t(1);let r=e.getBoundingClientRect(),{width:i,height:o,$:n}=fl(e),s=(n?xi(r.width):r.width)/i,a=(n?xi(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var Ip=_t(0);function ml(t){let e=ze(t);return!ln()||!e.visualViewport?Ip:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Mp(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===ze(t)}function wi(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let o=t.getBoundingClientRect(),n=hl(t),s=_t(1);e&&(i?mt(i)&&(s=jr(i)):s=jr(t));let a=Mp(n,r,i)?ml(n):_t(0),l=(o.left+a.x)/s.x,d=(o.top+a.y)/s.y,u=o.width/s.x,p=o.height/s.y;if(n&&i){let f=ze(n),b=mt(i)?ze(i):i,x=f,R=cn(x);for(;R&&b!==x;){let v=jr(R),L=R.getBoundingClientRect(),H=gt(R),S=L.left+(R.clientLeft+parseFloat(H.paddingLeft))*v.x,A=L.top+(R.clientTop+parseFloat(H.paddingTop))*v.y;l*=v.x,d*=v.y,u*=v.x,p*=v.y,l+=S,d+=A,x=ze(R),R=cn(x)}}return yr({width:u,height:p,x:l,y:d})}function dn(t,e){let r=Ci(t).scrollLeft;return e?e.left+r:wi(Ft(t)).left+r}function gl(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-dn(t,r),o=r.top+e.scrollTop;return{x:i,y:o}}function Np(t){let{elements:e,rect:r,offsetParent:i,strategy:o}=t,n=o==="fixed",s=Ft(i),a=e?Ai(e.floating):!1;if(i===s||a&&n)return r;let l={scrollLeft:0,scrollTop:0},d=_t(1),u=_t(0),p=Bt(i);if((p||!n)&&((vr(i)!=="body"||Ei(s))&&(l=Ci(i)),p)){let b=wi(i);d=jr(i),u.x=b.x+i.clientLeft,u.y=b.y+i.clientTop}let f=s&&!p&&!n?gl(s,l):_t(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-l.scrollLeft*d.x+u.x+f.x,y:r.y*d.y-l.scrollTop*d.y+u.y+f.y}}function Fp(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Bp(t){let e=Ci(t),r=t.ownerDocument.body,i=Kt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Kt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),n=-e.scrollLeft+dn(t),s=-e.scrollTop;return gt(r).direction==="rtl"&&(n+=Kt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:n,y:s}}var Up=25;function zp(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",o=ze(t),n=Ft(t),s=o.visualViewport,a=n.clientWidth,l=n.clientHeight,d=0,u=0;if(s){let f=!ln()||e==="fixed";i?f||(d=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,f&&(d=s.offsetLeft,u=s.offsetTop))}if(dn(n)<=0){let f=n.ownerDocument,b=f.body,x=getComputedStyle(b),R=f.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,v=Math.abs(n.clientWidth-b.clientWidth-R),L=getComputedStyle(n).scrollbarGutter==="stable both-edges"?v/2:v;L<=Up&&(a-=L)}return{width:a,height:l,x:d,y:u}}function Vp(t,e){let r=wi(t,!0,e==="fixed"),i=r.top+t.clientTop,o=r.left+t.clientLeft,n=jr(t),s=t.clientWidth*n.x,a=t.clientHeight*n.y,l=o*n.x,d=i*n.y;return{width:s,height:a,x:l,y:d}}function ul(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=zp(t,r,e);else if(e==="document")i=Bp(Ft(t));else if(mt(e))i=Vp(e,r);else{let o=ml(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return yr(i)}function Hp(t,e){let r=e.get(t);if(r)return r;let i=sn(t,[],!1).filter(a=>mt(a)&&vr(a)!=="body"),o=null,n=gt(t).position==="fixed",s=n?Gt(t):t;for(;mt(s)&&!Hr(s);){let a=gt(s),l=Vr(s),d=o?o.position:n?"fixed":"";!l&&(d==="fixed"||d==="absolute"&&a.position==="static")?i=i.filter(p=>p!==s):o=a,s=Gt(s)}return e.set(t,i),i}function jp(t){let{element:e,boundary:r,rootBoundary:i,strategy:o}=t,s=[...r==="clippingAncestors"?Ai(e)?[]:Hp(e,this._c):[].concat(r),i],a=ul(e,s[0],o),l=a.top,d=a.right,u=a.bottom,p=a.left;for(let f=1;f<s.length;f++){let b=ul(e,s[f],o);l=Kt(b.top,l),d=vi(b.right,d),u=vi(b.bottom,u),p=Kt(b.left,p)}return{width:d-p,height:u-l,x:p,y:l}}function Wp(t){let{width:e,height:r}=fl(t);return{width:e,height:r}}function Kp(t,e,r){let i=Bt(e),o=Ft(e),n=r==="fixed",s=wi(t,!0,n,e),a={scrollLeft:0,scrollTop:0},l=_t(0);if((i||!n)&&((vr(e)!=="body"||Ei(o))&&(a=Ci(e)),i)){let f=wi(e,!0,n,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}!i&&o&&(l.x=dn(o));let d=o&&!i&&!n?gl(o,a):_t(0),u=s.left+a.scrollLeft-l.x-d.x,p=s.top+a.scrollTop-l.y-d.y;return{x:u,y:p,width:s.width,height:s.height}}function No(t){return gt(t).position==="static"}function pl(t,e){if(!Bt(t)||gt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Ft(t)===r&&(r=r.ownerDocument.body),r}function yl(t,e){let r=ze(t);if(Ai(t))return r;if(!Bt(t)){let o=Gt(t);for(;o&&!Hr(o);){if(mt(o)&&!No(o))return o;o=Gt(o)}return r}let i=pl(t,e);for(;i&&ll(i)&&No(i);)i=pl(i,e);return i&&Hr(i)&&No(i)&&!Vr(i)?r:i||cl(t)||r}var qp=async function(t){let e=this.getOffsetParent||yl,r=this.getDimensions,i=await r(t.floating);return{reference:Kp(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Gp(t){return gt(t).direction==="rtl"}var un={convertOffsetParentRelativeRectToViewportRelativeRect:Np,getDocumentElement:Ft,getClippingRect:jp,getOffsetParent:yl,getElementRects:qp,getClientRects:Fp,getDimensions:Wp,getScale:jr,isElement:mt,isRTL:Gp};var bl=nl,vl=ol;var xl=(t,e,r)=>{let i=new Map,o=r??{},n={...un,...o.platform,_c:i};return il(t,e,{...o,platform:n})};function Sl(t){return Xp(t)}function Fo(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Xp(t){for(let e=t;e;e=Fo(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Fo(t);e;e=Fo(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Vr(r)||e.tagName==="BODY"))return e}return null}async function El(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},xl(t,e,{strategy:i.strategy,platform:{...un,getOffsetParent:o=>un.getOffsetParent(o,Sl)},middleware:[vl({crossAxis:!0}),bl({allowedPlacements:[i.placement]})]})}var Jr=c(m());var ss=c(j());var Al=c(j(),1);var Bo=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},Yp=t=>({fromAttribute:e=>{if(e==null)return _i(t);try{return JSON.parse(e)}catch{return _i(t)}},toAttribute:e=>JSON.stringify(e)});function Cl(t,e){return(0,Al.property)({type:Object,converter:Yp(t),hasChanged:Oi,...e??{}})}function Zp(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(!Wr(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(!Wr(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let o=s=>Object.keys(s).filter(a=>s[a]!=null),n=o(t);if(r=n.length,r!==o(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=r;i--!==0;){let s=n[i];if(!Wr(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Wr(t,e){try{return Zp(t,e)}catch{return!1}}function Oi(t,e){return!Wr(t,e)}function _i(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function pn(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let o=e(i);return o[t]=!0,o}}var wl=c(j(),1);var Uo=t=>{let e=t??{};return(r,i)=>{var o;let n={hasChanged:Oi,attribute:!1,...e};(0,wl.property)(n)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(o=e.selector)!==null&&o!==void 0?o:(a=>a[i]),store:e.store})}};var fn=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 xr=c(j(),1);var hn=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let o=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),n=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of i)try{await s()}catch(a){o(a);return}n(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var gn=c(E(),1);var mn=class extends gn.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return(0,gn.adoptStyles)(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){Bo(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};function _l(t,e,...r){var i;let o=t.querySelector(e);for(let n of r)o=(i=o?.shadowRoot)===null||i===void 0?void 0:i.querySelector(n);return o}var qr=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},kl,Ol=Symbol("constructorPrototype"),Rl=Symbol("constructorName"),Ll=Symbol("exportpartsDebouncer"),Tl=Symbol("dynamicDependenciesLoaded"),Kr=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Kr.eventName="exportparts-updated";var Ot=class extends mn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[kl]=new hn(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 o,n;!((o=this.exportpartsPrefix)===null||o===void 0)&&o.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((n=this.exportpartsPrefixes)===null||n===void 0?void 0:n.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Rl]=this.constructor.name,this[Ol]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Rl]&&Object.setPrototypeOf(this,this[Ol])}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(Kr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Kr.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 Kr)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:o}=this.elementToFocus;if(i!=null){let n=[...o??[],i];r=_l(this.shadowRoot,...n)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,o;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(n=>n.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((o=this.customStylesheet)!==null&&o!==void 0?o:"")}catch(n){console.error(n,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let n=document.createElement("style");n.classList.add("ft-lit-element--custom-stylesheet"),n.innerHTML=this.customStylesheet,this.shadowRoot.append(n)}}setExportpartsAttribute(e){var r,i,o,n,s,a;let l=f=>f!=null&&f.trim().length>0,d=e.filter(l).map(f=>f.trim());if(d.length===0){this.exportparts=void 0;return}let u=new Set;for(let f of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let b=(s=(i=f.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&s!==void 0?s:[],x=(a=(o=f.getAttribute("exportparts"))===null||o===void 0?void 0:o.split(",").map(v=>v.split(":")[1]))!==null&&a!==void 0?a:[],R=[...b,...x].filter(l).map(v=>v.trim());for(let v of R)u.add(v)}if(u.size===0){this.exportparts=void 0;return}let p=[...u.values()].flatMap(f=>d.map(b=>`${f}:${b}--${f}`));this.exportparts=[...this.part,...p].join(", ")}};kl=Ll;qr([(0,xr.property)()],Ot.prototype,"exportpartsPrefix",void 0);qr([Cl([])],Ot.prototype,"exportpartsPrefixes",void 0);qr([(0,xr.property)({reflect:!0})],Ot.prototype,"exportparts",void 0);qr([(0,xr.property)()],Ot.prototype,"customStylesheet",void 0);qr([(0,xr.property)()],Ot.prototype,"elementToFocus",void 0);qr([(0,xr.state)()],Ot.prototype,"useAdoptedStyleSheets",void 0);function yn(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ri=Symbol("internalReduxEventsUnsubscribers"),Xt=Symbol("internalStoresUnsubscribers"),Sr=Symbol("internalStores"),Qp=pn(Symbol("withRedux"),function(t){var e,r,i;class o extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Sr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Sr].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Sr].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Sr].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[Sr].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Sr].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 d=this.getStore(s.store);d&&(s.store?this[Xt].has(s.store):this[Xt].size>0)&&(this[a]=s.selector(d.getState(),this))}})}subscribeToStore(s,a){var l,d;this[Xt].set(s,a.subscribe(()=>this.updateFromStores())),this[Ri].set(s,[]),yn(a)&&(!((l=a.deprecatedKeys)===null||l===void 0)&&l.length&&this.reduxConstructor.reduxProperties.forEach((u,p)=>{this.getStore(u.store)===a&&a.deprecatedKeys.includes(p)&&console.warn("Element",this,"is subscribed to deprecated key",p,"in store",a.name)}),a.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((u,p)=>{if(typeof this[p]=="function"&&(!u.store||a.name===u.store)){let f=b=>this[p](b);a.addEventListener(u.eventName,f),this[Ri].get(s).push(()=>a.removeEventListener(u.eventName,f))}}))),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Xt].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[Xt].has(s)&&this[Xt].get(s)(),this[Xt].delete(s),(a=this[Ri].get(s))===null||a===void 0||a.forEach(l=>l()),this[Ri].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Xt,r=Sr,i=Ri,o.reduxProperties=new Map,o.reduxReactiveProperties=new Set,o.reduxEventListeners=new Map,o}),$l=class extends Qp(Ot){};function Ae(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 Jp=typeof Symbol=="function"&&Symbol.observable||"@@observable",Dl=Jp,zo=()=>Math.random().toString(36).substring(7).split("").join("."),ef={INIT:`@@redux/INIT${zo()}`,REPLACE:`@@redux/REPLACE${zo()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${zo()}`},bn=ef;function vn(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 Vo(t,e,r){if(typeof t!="function")throw new Error(Ae(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Ae(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ae(1));return r(Vo)(t,e)}let i=t,o=e,n=new Map,s=n,a=0,l=!1;function d(){s===n&&(s=new Map,n.forEach((v,L)=>{s.set(L,v)}))}function u(){if(l)throw new Error(Ae(3));return o}function p(v){if(typeof v!="function")throw new Error(Ae(4));if(l)throw new Error(Ae(5));let L=!0;d();let H=a++;return s.set(H,v),function(){if(L){if(l)throw new Error(Ae(6));L=!1,d(),s.delete(H),n=null}}}function f(v){if(!vn(v))throw new Error(Ae(7));if(typeof v.type>"u")throw new Error(Ae(8));if(typeof v.type!="string")throw new Error(Ae(17));if(l)throw new Error(Ae(9));try{l=!0,o=i(o,v)}finally{l=!1}return(n=s).forEach(H=>{H()}),v}function b(v){if(typeof v!="function")throw new Error(Ae(10));i=v,f({type:bn.REPLACE})}function x(){let v=p;return{subscribe(L){if(typeof L!="object"||L===null)throw new Error(Ae(11));function H(){let A=L;A.next&&A.next(u())}return H(),{unsubscribe:v(H)}},[Dl](){return this}}}return f({type:bn.INIT}),{dispatch:f,subscribe:p,getState:u,replaceReducer:b,[Dl]:x}}function tf(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:bn.INIT})>"u")throw new Error(Ae(12));if(typeof r(void 0,{type:bn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ae(13))})}function Ho(t){let e=Object.keys(t),r={};for(let s=0;s<e.length;s++){let a=e[s];typeof t[a]=="function"&&(r[a]=t[a])}let i=Object.keys(r),o,n;try{tf(r)}catch(s){n=s}return function(a={},l){if(n)throw n;let d=!1,u={};for(let p=0;p<i.length;p++){let f=i[p],b=r[f],x=a[f],R=b(x,l);if(typeof R>"u"){let v=l&&l.type;throw new Error(Ae(14))}u[f]=R,d=d||R!==x}return d=d||i.length!==Object.keys(a).length,d?u:a}}function Ti(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function Pl(...t){return e=>(r,i)=>{let o=e(r,i),n=()=>{throw new Error(Ae(15))},s={getState:o.getState,dispatch:(l,...d)=>n(l,...d)},a=t.map(l=>l(s));return n=Ti(...a)(o.dispatch),{...o,dispatch:n}}}function Il(t){return vn(t)&&"type"in t&&typeof t.type=="string"}var jl=Symbol.for("immer-nothing"),Ml=Symbol.for("immer-draftable"),ke=Symbol.for("immer-state");function yt(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Ke=Object,Xr=Ke.getPrototypeOf,An="constructor",Tn="prototype",qo="configurable",Cn="enumerable",Sn="writable",ki="value",Rt=t=>!!t&&!!t[ke];function qe(t){return t?Wl(t)||Ln(t)||!!t[Ml]||!!t[An]?.[Ml]||$n(t)||Dn(t):!1}var rf=Ke[Tn][An].toString(),Nl=new WeakMap;function Wl(t){if(!t||!ts(t))return!1;let e=Xr(t);if(e===null||e===Ke[Tn])return!0;let r=Ke.hasOwnProperty.call(e,An)&&e[An];if(r===Object)return!0;if(!Gr(r))return!1;let i=Nl.get(r);return i===void 0&&(i=Function.toString.call(r),Nl.set(r,i)),i===rf}function kn(t,e,r=!0){Di(t)===0?(r?Reflect.ownKeys(t):Ke.keys(t)).forEach(o=>{e(o,t[o],t)}):t.forEach((i,o)=>e(o,i,t))}function Di(t){let e=t[ke];return e?e.type_:Ln(t)?1:$n(t)?2:Dn(t)?3:0}var jo=(t,e,r=Di(t))=>r===2?t.has(e):Ke[Tn].hasOwnProperty.call(t,e),Go=(t,e,r=Di(t))=>r===2?t.get(e):t[e],wn=(t,e,r,i=Di(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function nf(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Ln=Array.isArray,$n=t=>t instanceof Map,Dn=t=>t instanceof Set,ts=t=>typeof t=="object",Gr=t=>typeof t=="function",Wo=t=>typeof t=="boolean";function of(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var Ut=t=>t.copy_||t.base_;var rs=t=>t.modified_?t.copy_:t.base_;function Xo(t,e){if($n(t))return new Map(t);if(Dn(t))return new Set(t);if(Ln(t))return Array[Tn].slice.call(t);let r=Wl(t);if(e===!0||e==="class_only"&&!r){let i=Ke.getOwnPropertyDescriptors(t);delete i[ke];let o=Reflect.ownKeys(i);for(let n=0;n<o.length;n++){let s=o[n],a=i[s];a[Sn]===!1&&(a[Sn]=!0,a[qo]=!0),(a.get||a.set)&&(i[s]={[qo]:!0,[Sn]:!0,[Cn]:a[Cn],[ki]:t[s]})}return Ke.create(Xr(t),i)}else{let i=Xr(t);if(i!==null&&r)return{...t};let o=Ke.create(i);return Ke.assign(o,t)}}function Pn(t,e=!1){return In(t)||Rt(t)||!qe(t)||(Di(t)>1&&Ke.defineProperties(t,{set:xn,add:xn,clear:xn,delete:xn}),Ke.freeze(t),e&&kn(t,(r,i)=>{Pn(i,!0)},!1)),t}function sf(){yt(2)}var xn={[ki]:sf};function In(t){return t===null||!ts(t)?!0:Ke.isFrozen(t)}var _n="MapSet",Yo="Patches",Fl="ArrayMethods",Kl={};function Er(t){let e=Kl[t];return e||yt(0,t),e}var Bl=t=>!!Kl[t];var Li,ql=()=>Li,af=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Bl(_n)?Er(_n):void 0,arrayMethodsPlugin_:Bl(Fl)?Er(Fl):void 0});function Ul(t,e){e&&(t.patchPlugin_=Er(Yo),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Zo(t){Qo(t),t.drafts_.forEach(lf),t.drafts_=null}function Qo(t){t===Li&&(Li=t.parent_)}var zl=t=>Li=af(Li,t);function lf(t){let e=t[ke];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Vl(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[ke].modified_&&(Zo(e),yt(4)),qe(t)&&(t=Hl(e,t));let{patchPlugin_:o}=e;o&&o.generateReplacementPatches_(r[ke].base_,t,e)}else t=Hl(e,r);return cf(e,t,!0),Zo(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==jl?t:void 0}function Hl(t,e){if(In(e))return e;let r=e[ke];if(!r)return On(e,t.handledSet_,t);if(!Mn(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);Yl(r,t)}return r.copy_}function cf(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Pn(e,r)}function Gl(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Mn=(t,e)=>t.scope_===e,df=[];function Xl(t,e,r,i){let o=Ut(t),n=t.type_;if(i!==void 0&&Go(o,i,n)===e){wn(o,i,r,n);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;kn(o,(l,d)=>{if(Rt(d)){let u=a.get(d)||[];u.push(l),a.set(d,u)}})}let s=t.draftLocations_.get(e)??df;for(let a of s)wn(o,a,r,n)}function uf(t,e,r){t.callbacks_.push(function(o){let n=e;if(!n||!Mn(n,o))return;o.mapSetPlugin_?.fixSetContents(n);let s=rs(n);Xl(t,n.draft_??n,s,r),Yl(n,o)})}function Yl(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let o=i.getPath(t);o&&i.generatePatches_(t,o,e)}Gl(t)}}function pf(t,e,r){let{scope_:i}=t;if(Rt(r)){let o=r[ke];Mn(o,i)&&o.callbacks_.push(function(){En(t);let s=rs(o);Xl(t,r,s,e)})}else qe(r)&&t.callbacks_.push(function(){let n=Ut(t);t.type_===3?n.has(r)&&On(r,i.handledSet_,i):Go(n,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&On(Go(t.copy_,e,t.type_),i.handledSet_,i)})}function On(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Rt(t)||e.has(t)||!qe(t)||In(t)||(e.add(t),kn(t,(i,o)=>{if(Rt(o)){let n=o[ke];if(Mn(n,r)){let s=rs(n);wn(t,i,s,t.type_),Gl(n)}}else qe(o)&&On(o,e,r)})),t}function ff(t,e){let r=Ln(t),i={type_:r?1:0,scope_:e?e.scope_:ql(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},o=i,n=Rn;r&&(o=[i],n=$i);let{revoke:s,proxy:a}=Proxy.revocable(o,n);return i.draft_=a,i.revoke_=s,[a,i]}var Rn={get(t,e){if(e===ke)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let o=Ut(t);if(!jo(o,e,t.type_))return mf(t,o,e);let n=o[e];if(t.finalized_||!qe(n)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&of(e))return n;if(n===Ko(t.base_,e)||hf(t,e,n)){En(t);let s=t.type_===1?+e:e,a=es(t.scope_,n,t,s);return t.copy_[s]=a}return n},has(t,e){return e in Ut(t)},ownKeys(t){return Reflect.ownKeys(Ut(t))},set(t,e,r){let i=Zl(Ut(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let o=Ko(Ut(t),e),n=o?.[ke];if(n&&n.base_===r)return t.copy_[e]=r,t.assigned_.delete(e),!0;if(nf(r,o)&&(r!==void 0||jo(t.base_,e,t.type_)))return!0;En(t),Jo(t)}return t.copy_[e]===r&&(r!==void 0||jo(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),pf(t,e,r)),!0},deleteProperty(t,e){return En(t),Ko(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),Jo(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=Ut(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[Sn]:!0,[qo]:t.type_!==1||e!=="length",[Cn]:i[Cn],[ki]:r[e]}},defineProperty(){yt(11)},getPrototypeOf(t){return Xr(t.base_)},setPrototypeOf(){yt(12)}},$i={};for(let t in Rn){let e=Rn[t];$i[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}$i.deleteProperty=function(t,e){return $i.set.call(this,t,e,void 0)};$i.set=function(t,e,r){return Rn.set.call(this,t[0],e,r,t[0])};function Ko(t,e){let r=t[ke];return(r?Ut(r):t)[e]}function hf(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!qe(r)||r[ke]?!1:t.baseRefs_.has(r)}function mf(t,e,r){let i=Zl(e,r);return i?ki in i?i[ki]:i.get?.call(t.draft_):void 0}function Zl(t,e){if(!(e in t))return;let r=Xr(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Xr(r)}}function Jo(t){t.modified_||(t.modified_=!0,t.parent_&&Jo(t.parent_))}function En(t){t.copy_||(t.assigned_=new Map,t.copy_=Xo(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var gf=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(Gr(e)&&!Gr(r)){let n=r;r=e;let s=this;return function(l=n,...d){return s.produce(l,u=>r.call(this,u,...d))}}Gr(r)||yt(6),i!==void 0&&!Gr(i)&&yt(7);let o;if(qe(e)){let n=zl(this),s=es(n,e,void 0),a=!0;try{o=r(s),a=!1}finally{a?Zo(n):Qo(n)}return Ul(n,i),Vl(o,n)}else if(!e||!ts(e)){if(o=r(e),o===void 0&&(o=e),o===jl&&(o=void 0),this.autoFreeze_&&Pn(o,!0),i){let n=[],s=[];Er(Yo).generateReplacementPatches_(e,o,{patches_:n,inversePatches_:s}),i(n,s)}return o}else yt(1,e)},this.produceWithPatches=(e,r)=>{if(Gr(e))return(s,...a)=>this.produceWithPatches(s,l=>e(l,...a));let i,o;return[this.produce(e,r,(s,a)=>{i=s,o=a}),i,o]},Wo(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Wo(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Wo(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){qe(t)||yt(8),Rt(t)&&(t=Ql(t));let e=zl(this),r=es(e,t,void 0);return r[ke].isManual_=!0,Qo(e),r}finishDraft(t,e){let r=t&&t[ke];(!r||!r.isManual_)&&yt(9);let{scope_:i}=r;return Ul(i,e),Vl(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let o=e[r];if(o.path.length===0&&o.op==="replace"){t=o.value;break}}r>-1&&(e=e.slice(r+1));let i=Er(Yo).applyPatches_;return Rt(t)?i(t,e):this.produce(t,o=>i(o,e))}};function es(t,e,r,i){let[o,n]=$n(e)?Er(_n).proxyMap_(e,r):Dn(e)?Er(_n).proxySet_(e,r):ff(e,r);return(r?.scope_??ql()).drafts_.push(o),n.callbacks_=r?.callbacks_??[],n.key_=i,r&&i!==void 0?uf(r,n,i):n.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(n);let{patchPlugin_:d}=l;n.modified_&&d&&d.generatePatches_(n,[],l)}),o}function Ql(t){return Rt(t)||yt(10,t),Jl(t)}function Jl(t){if(!qe(t)||In(t))return t;let e=t[ke],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=Xo(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=Xo(t,!0);return kn(r,(o,n)=>{wn(r,o,Jl(n))},i),e&&(e.finalized_=!1),r}var yf=globalThis.Iterator,hg=typeof yf?.from=="function";var bf=new gf,is=bf.produce;function ec(t){return({dispatch:r,getState:i})=>o=>n=>typeof n=="function"?n(r,i,t):o(n)}var tc=ec(),rc=ec;var vf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ti:Ti.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var xf=t=>t&&typeof t.match=="function";function Yt(t,e){function r(...i){if(e){let o=e(...i);if(!o)throw new Error(Tt(0));return{type:t,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>Il(i)&&i.type===t,r}var ac=class Pi extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Pi.prototype)}static get[Symbol.species](){return Pi}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Pi(...e[0].concat(this)):new Pi(...e.concat(this))}};function ic(t){return qe(t)?is(t,()=>{}):t}function Nn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Sf(t){return typeof t=="boolean"}var Ef=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:o=!0,actionCreatorCheck:n=!0}=e??{},s=new ac;return r&&(Sf(r)?s.push(tc):s.push(rc(r.extraArgument))),s},Af="RTK_autoBatch";var nc=t=>e=>{setTimeout(e,t)},Cf=(t,e)=>r=>{let i=!1,o,n,s=()=>{i||(i=!0,cancelAnimationFrame(o),clearTimeout(n),r())};o=t(s),n=setTimeout(s,e)},wf=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),o=!0,n=!1,s=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Cf(window.requestAnimationFrame,100):nc(10):t.type==="callback"?t.queueNotification:nc(t.timeout),d=()=>{s=!1,n&&(n=!1,a.forEach(u=>u()))};return Object.assign({},i,{subscribe(u){let p=()=>o&&u(),f=i.subscribe(p);return a.add(u),()=>{f(),a.delete(u)}},dispatch(u){try{return o=!u?.meta?.[Af],n=!o,n&&(s||(s=!0,l(d))),i.dispatch(u)}finally{o=!0}}})},_f=t=>function(r){let{autoBatch:i=!0}=r??{},o=new ac(t);return i&&o.push(wf(typeof i=="object"?i:void 0)),o};function lc(t){let e=Ef(),{reducer:r=void 0,middleware:i,devTools:o=!0,duplicateMiddlewareCheck:n=!0,preloadedState:s=void 0,enhancers:a=void 0}=t||{},l;if(typeof r=="function")l=r;else if(vn(r))l=Ho(r);else throw new Error(Tt(1));let d;typeof i=="function"?d=i(e):d=e();let u=Ti;o&&(u=vf({trace:!1,...typeof o=="object"&&o}));let p=Pl(...d),f=_f(p),b=typeof a=="function"?a(f):f(),x=u(...b);return Vo(l,s,x)}function cc(t){let e={},r=[],i,o={addCase(n,s){let a=typeof n=="string"?n:n.type;if(!a)throw new Error(Tt(28));if(a in e)throw new Error(Tt(29));return e[a]=s,o},addAsyncThunk(n,s){return s.pending&&(e[n.pending.type]=s.pending),s.rejected&&(e[n.rejected.type]=s.rejected),s.fulfilled&&(e[n.fulfilled.type]=s.fulfilled),s.settled&&r.push({matcher:n.settled,reducer:s.settled}),o},addMatcher(n,s){return r.push({matcher:n,reducer:s}),o},addDefaultCase(n){return i=n,o}};return t(o),[e,r,i]}function Of(t){return typeof t=="function"}function Rf(t,e){let[r,i,o]=cc(e),n;if(Of(t))n=()=>ic(t());else{let a=ic(t);n=()=>a}function s(a=n(),l){let d=[r[l.type],...i.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return d.filter(u=>!!u).length===0&&(d=[o]),d.reduce((u,p)=>{if(p)if(Rt(u)){let f=p(u,l);return f===void 0?u:f}else{if(qe(u))return is(u,f=>p(f,l));{let f=p(u,l);if(f===void 0){if(u===null)return u;throw new Error(Tt(9))}return f}}return u},a)}return s.getInitialState=n,s}var Tf=(t,e)=>xf(t)?t.match(e):t(e);function kf(...t){return e=>t.some(r=>Tf(r,e))}var Lf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",$f=(t=21)=>{let e="",r=t;for(;r--;)e+=Lf[Math.random()*64|0];return e},Df=["name","message","stack","code"],ns=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},oc=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},Pf=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of Df)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},sc="External signal was aborted",If=(()=>{function t(e,r,i){let o=Yt(e+"/fulfilled",(l,d,u,p)=>({payload:l,meta:{...p||{},arg:u,requestId:d,requestStatus:"fulfilled"}})),n=Yt(e+"/pending",(l,d,u)=>({payload:void 0,meta:{...u||{},arg:d,requestId:l,requestStatus:"pending"}})),s=Yt(e+"/rejected",(l,d,u,p,f)=>({payload:p,error:(i&&i.serializeError||Pf)(l||"Rejected"),meta:{...f||{},arg:u,requestId:d,rejectedWithValue:p!==void 0,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:d}={}){return(u,p,f)=>{let b=i?.idGenerator?i.idGenerator(l):$f(),x=new AbortController,R,v;function L(S){v=S,x.abort()}d&&(d.aborted?L(sc):d.addEventListener("abort",()=>L(sc),{once:!0}));let H=(async function(){let S;try{let A=i?.condition?.(l,{getState:p,extra:f});if(Nf(A)&&(A=await A),A===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(x.signal.aborted)throw{name:"AbortError",message:v||"Aborted"};let K=new Promise((z,ge)=>{R=()=>{ge({name:"AbortError",message:v||"Aborted"})},x.signal.addEventListener("abort",R,{once:!0})});u(n(b,l,i?.getPendingMeta?.({requestId:b,arg:l},{getState:p,extra:f}))),S=await Promise.race([K,Promise.resolve(r(l,{dispatch:u,getState:p,extra:f,requestId:b,signal:x.signal,abort:L,rejectWithValue:((z,ge)=>new ns(z,ge)),fulfillWithValue:((z,ge)=>new oc(z,ge))})).then(z=>{if(z instanceof ns)throw z;return z instanceof oc?o(z.payload,b,l,z.meta):o(z,b,l)})])}catch(A){S=A instanceof ns?s(null,b,l,A.payload,A.meta):s(A,b,l)}finally{R&&x.signal.removeEventListener("abort",R)}return i&&!i.dispatchConditionRejection&&s.match(S)&&S.meta.condition||u(S),S})();return Object.assign(H,{abort:L,requestId:b,arg:l,unwrap(){return H.then(Mf)}})}}return Object.assign(a,{pending:n,rejected:s,fulfilled:o,settled:kf(s,o),typePrefix:e})}return t.withTypes=()=>t,t})();function Mf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Nf(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var dc=Symbol.for("rtk-slice-createasyncthunk"),Eg={[dc]:If};function Ff(t,e){return`${t}/${e}`}function Bf({creators:t}={}){let e=t?.asyncThunk?.[dc];return function(i){let{name:o,reducerPath:n=o}=i;if(!o)throw new Error(Tt(11));typeof process<"u";let s=(typeof i.reducers=="function"?i.reducers(zf()):i.reducers)||{},a=Object.keys(s),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(S,A){let K=typeof S=="string"?S:S.type;if(!K)throw new Error(Tt(12));if(K in l.sliceCaseReducersByType)throw new Error(Tt(13));return l.sliceCaseReducersByType[K]=A,d},addMatcher(S,A){return l.sliceMatchers.push({matcher:S,reducer:A}),d},exposeAction(S,A){return l.actionCreators[S]=A,d},exposeCaseReducer(S,A){return l.sliceCaseReducersByName[S]=A,d}};a.forEach(S=>{let A=s[S],K={reducerName:S,type:Ff(o,S),createNotation:typeof i.reducers=="function"};Hf(A)?Wf(K,A,d,e):Vf(K,A,d)});function u(){let[S={},A=[],K=void 0]=typeof i.extraReducers=="function"?cc(i.extraReducers):[i.extraReducers],z={...S,...l.sliceCaseReducersByType};return Rf(i.initialState,ge=>{for(let Te in z)ge.addCase(Te,z[Te]);for(let Te of l.sliceMatchers)ge.addMatcher(Te.matcher,Te.reducer);for(let Te of A)ge.addMatcher(Te.matcher,Te.reducer);K&&ge.addDefaultCase(K)})}let p=S=>S,f=new Map,b=new WeakMap,x;function R(S,A){return x||(x=u()),x(S,A)}function v(){return x||(x=u()),x.getInitialState()}function L(S,A=!1){function K(ge){let Te=ge[S];return typeof Te>"u"&&A&&(Te=Nn(b,K,v)),Te}function z(ge=p){return Nn(Nn(f,A,()=>new WeakMap),ge,()=>{let Te={};for(let[Yi,tt]of Object.entries(i.selectors??{}))Te[Yi]=Uf(tt,ge,()=>Nn(b,ge,v),A);return Te})}return{reducerPath:S,getSelectors:z,get selectors(){return z(K)},selectSlice:K}}let H={name:o,reducer:R,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:v,...L(n),injectInto(S,{reducerPath:A,...K}={}){let z=A??n;return S.inject({reducerPath:z,reducer:R},K),{...H,...L(z,!0)}}};return H}}function Uf(t,e,r,i){function o(n,...s){let a=e(n);return typeof a>"u"&&i&&(a=r()),t(a,...s)}return o.unwrapped=t,o}var uc=Bf();function zf(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function Vf({type:t,reducerName:e,createNotation:r},i,o){let n,s;if("reducer"in i){if(r&&!jf(i))throw new Error(Tt(17));n=i.reducer,s=i.prepare}else n=i;o.addCase(t,n).exposeCaseReducer(e,n).exposeAction(e,s?Yt(t,s):Yt(t))}function Hf(t){return t._reducerDefinitionType==="asyncThunk"}function jf(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Wf({type:t,reducerName:e},r,i,o){if(!o)throw new Error(Tt(18));let{payloadCreator:n,fulfilled:s,pending:a,rejected:l,settled:d,options:u}=r,p=o(t,n,u);i.exposeAction(e,p),s&&i.addCase(p.fulfilled,s),a&&i.addCase(p.pending,a),l&&i.addCase(p.rejected,l),d&&i.addMatcher(p.settled,d),i.exposeCaseReducer(e,{fulfilled:s||Fn,pending:a||Fn,rejected:l||Fn,settled:d||Fn})}function Fn(){}var pc="listener",fc="completed",hc="cancelled",Ag=`task-${hc}`,Cg=`task-${fc}`,wg=`${pc}-${hc}`,_g=`${pc}-${fc}`;var{assign:mc}=Object;var os="listenerMiddleware";var Kf=mc(Yt(`${os}/add`),{withTypes:()=>Kf}),Og=Yt(`${os}/removeAll`),qf=mc(Yt(`${os}/remove`),{withTypes:()=>qf});function Tt(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 Gf=pn(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,o){this.eventBus.addEventListener(r,i,o)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,o){this.eventBus.removeEventListener(r,i,o)}}}),Bn=class extends Gf(Object){};window.ftReduxStores||(window.ftReduxStores={});var gc=class t extends Bn{static get(e){var r;let i=typeof e=="string"?e:e.name,o=typeof e=="string"?void 0:e,n=window.ftReduxStores[i];if(yn(n))return n;if(o==null)return;let s=uc({...o,reducers:(r=o.reducers)!==null&&r!==void 0?r:{}}),a=lc({reducer:(l,d)=>{if(d.type==="CLEAR_FT_REDUX_STORE"){let u=_i(s.getInitialState());for(let p of d.keeping)u[p]=(l??u)[p];return u}else if(typeof d.type=="string"&&d.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...d.overwrites};return s.reducer(l,d)}});return window.ftReduxStores[o.name]=new t(s,a,o.eventBus,o.deprecatedKeys)}constructor(e,r,i,o){super(),this.reduxSlice=e,this.reduxStore=r,this.deprecatedKeys=o,this.isFtReduxStore=!0,this.commands=new fn,this.injectInto=(s,a)=>this.reduxSlice.injectInto(s,a),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,a,l)=>{let d=a,u=s[d];return u?(...p)=>{let f=u(...p.map(n));return this.reduxStore.dispatch(f),f}:p=>{let f=d,b=this.getState()[f];Wr(b,p)||this.setState({[f]: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()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var Un=class{static format(e,r,i,o,n){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,o,!!n)):this.getIntlDateTime(e,r,i,o,!!n)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,o,n){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 n?l:o?`${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 zn=c(m()),Xf="ft-app-info",Ar=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Ar.eventName="authentication-change";var Ii=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Ii.eventName="ui-locale-changed";var Yf={session:(t,e)=>{(0,zn.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>_.dispatchEvent(new Ar(e.payload)),0))}},_=zn.FtReduxStore.get({name:Xf,reducers:Yf,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var yc=c(m()),Vn=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},iy=(0,yc.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(_)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var o,n;return((n=(o=this.metadataDescriptors.find(a=>a.key===i))===null||o===void 0?void 0:o.date)!==null&&n!==void 0?n:!1)?a=>Un.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Vn([(0,ss.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Vn([(0,ss.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Vn([Uo({store:_.name,selector:r=>{var i,o;return(o=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&o!==void 0?o:[]}})],e.prototype,"metadataDescriptors",void 0),Vn([Uo({store:_.name})],e.prototype,"uiLocale",void 0),e});var bc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(bc||(bc={}));var vc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(vc||(vc={}));var xc;(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"})(xc||(xc={}));var Sc;(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"})(Sc||(Sc={}));var Ec;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ec||(Ec={}));var Ac;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Ac||(Ac={}));var Cc;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Cc||(Cc={}));var wc;(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"})(wc||(wc={}));var _c;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(_c||(_c={}));var Oc;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Oc||(Oc={}));var Rc;(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"})(Rc||(Rc={}));var Tc;(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"})(Tc||(Tc={}));var kc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(kc||(kc={}));var Lc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Lc||(Lc={}));var $c;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})($c||($c={}));var Dc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Dc||(Dc={}));var Pc;(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"})(Pc||(Pc={}));var Ic;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Ic||(Ic={}));var Mc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Mc||(Mc={}));var Nc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Nc||(Nc={}));var Fc;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Fc||(Fc={}));var Bc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Bc||(Bc={}));var Uc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Uc||(Uc={}));var zc;(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"})(zc||(zc={}));var Vc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Vc||(Vc={}));var Hc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Hc||(Hc={}));var jc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(jc||(jc={}));var Wc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Wc||(Wc={}));var fe;(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"})(fe||(fe={}));var ot;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(ot||(ot={}));var Kc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Kc||(Kc={}));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 Gc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Gc||(Gc={}));var Xc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Xc||(Xc={}));var Yc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Yc||(Yc={}));var Zc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Zc||(Zc={}));var Qc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Qc||(Qc={}));var Jc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Jc||(Jc={}));var ed;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(ed||(ed={}));var td;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(td||(td={}));var rd;(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"})(rd||(rd={}));var id;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(id||(id={}));var Zf={[fe.PERSONAL_BOOK_SHARE_USER]:[fe.PERSONAL_BOOK_USER],[fe.HTML_EXPORT_USER]:[fe.PERSONAL_BOOK_USER],[fe.PDF_EXPORT_USER]:[fe.PERSONAL_BOOK_USER],[fe.KHUB_ADMIN]:[fe.CONTENT_PUBLISHER],[fe.ADMIN]:[fe.KHUB_ADMIN,fe.USERS_ADMIN,fe.PORTAL_ADMIN,fe.BEHAVIOR_DATA_USER],[fe.GENERATIVE_AI_EXPORT_USER]:[fe.GENERATIVE_AI_USER]};function nd(t,e){return t===e||(Zf[t]??[]).some(r=>nd(r,e))}function as(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=>nd(i,e))}function od(t,...e){return t==null?!1:e.some(r=>as(t,r))}var qn=c(m());var ls=c(m());var Cr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=_.getState(),o=e??i;if(r&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,o,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let o=_.subscribe(()=>{i=t.get(e),i&&(o(),r(i))})}})}};var Yr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Cr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Cr.await()}};var Ge=class extends Yr{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(n,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let o=this.constructor;o.commonCache=(i=o.commonCache)!==null&&i!==void 0?i:new ls.CacheRegistry,this.cache=e?o.commonCache:new ls.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 Hn=class extends Ge{async listMySearches(){let{session:e}=_.getState();return as(e,fe.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var jn=class extends Ge{async listMyBookmarks(){let e=_.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Wn=class extends Ge{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=_.getState().session;return!!e?.sessionAuthenticated}};var Kn=class extends Ge{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=_.getState().session;return!!e?.sessionAuthenticated}};var Qf="ft-user-assets",Jf={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(ot).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:o}=e.payload;ds(t,r,[...cs(t,r),o]),sd(t,r,1,i),ad(t,o)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;ds(t,r,cs(t,r).map(o=>o.id===i.id?i:o)),ad(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:o}=e.payload;ds(t,r,cs(t,r).filter(n=>n.id!==o)),sd(t,r,-1,i)}},ld={[ot.SEARCHES]:"savedSearches",[ot.BOOKMARKS]:"bookmarks",[ot.BOOKS]:void 0,[ot.COLLECTIONS]:void 0},cs=(t,e)=>{var r;let i=ld[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},ds=(t,e,r)=>{let i=ld[e];i&&(t[i]=r)},sd=(t,e,r,i)=>{let o=t.assetCounts.allAsset[e];if(o!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,o+r),e===ot.BOOKMARKS&&i)){let n=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,n+r)}},ad=(t,e)=>{let r=t.assetLabels.map(o=>o.title),i=e.labels.filter(o=>!r.includes(o)).map(o=>({title:o}));t.assetLabels.push(...i)},Pe=qn.FtReduxStore.get({name:Qf,reducers:Jf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ot).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),us=class{constructor(e=new Wn,r=new Kn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new jn,this.savedSearchesService=new Hn,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=_.getState();(0,qn.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(),Pe.actions.clearAssetCount(),Pe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Pe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Pe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Pe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Pe.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Pe.getState().assetCounts.allAsset[e]!==r.count&&Pe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Pe.getState().assetCounts.bookmarkByMap[e]!==r.count&&Pe.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Pe.getState().assetCounts.bookmarkByMap).length!==0;e===ot.BOOKMARKS&&r&&Pe.actions.clearBookmarkCountByMap(),Pe.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;Pe.actions.bookmarks(r)}}},eh=new us;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=eh);var ps=class{addCommand(e,r=!1){_.commands.add(e,r)}consumeCommand(e){return _.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ps;var st=c(m());var cd,Zr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},th=Symbol("clearAfterUnitTest"),Gn=class extends(0,st.withEventBus)(Ge){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[cd]=()=>{this.defaultMessages={},this.cache=new st.CacheRegistry,this.listeners={}},this.currentUiLocale=_.getState().uiLocale,_.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=_.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let o={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,st.deepEqual)(this.defaultMessages[e],o)||(this.defaultMessages[e]=o,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var o;let n=e.toLowerCase(),s=this.resolveContext(n);return new st.ParametrizedLabelResolver((o=this.defaultMessages[n])!==null&&o!==void 0?o:{},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(o){!(o instanceof st.CanceledPromiseError)&&r&&console.error(o)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var o;return(o=this.listeners[e])===null||o===void 0?void 0:o.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Zr({loadedContexts:e})),this.dispatchEvent(new Zr({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new Zr({loadedContexts:[e]})),this.dispatchEvent(new Zr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,st.delay)(0).then(()=>i()).catch(()=>null)))}};cd=th;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Gn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Gn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Mi=window.FluidTopicsI18nService,fs=window.FluidTopicsCustomI18nService;var dd=c(m()),hs=class{highlightHtml(e,r,i){(0,dd.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new hs;var ud=c(m());var ms=class{isDate(e){var r,i,o,n;return(n=(i=((o=(r=_.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&o!==void 0?o:[]).find(a=>a.key===e))===null||i===void 0?void 0:i.date)!==null&&n!==void 0?n:!1}format(e,r){var i,o,n,s;if(e==null)return"";try{return ud.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:_.getState().uiLocale,(o=r?.longFormat)!==null&&o!==void 0?o:!1,(n=r?.withTime)!==null&&n!==void 0?n:!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 ms;var pd=c(m());var Ni=class{static get(e,r,{baseUrl:i,localesConfiguration:o,availableContentLocales:n}=_.getState()){var s;if(!r||n.length>0&&!n.some(a=>a.lang===r)){let a=o?.defaultLocales.defaultContentLocale;r=a?`${a.lang}-${a.region}`:(s=n[0])===null||s===void 0?void 0:s.lang}return new pd.SearchPlaceConverter(i,e??20,o?.allLanguagesAllowed,r,n)}};var gs=class{urlToSearchRequest(e){return Ni.get().parse(e)}searchRequestToUrl(e){return Ni.get().serialize(e)}};window.FluidTopicsUrlService=new gs;var zt=c(m());var wr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};wr.eventName="before-location-change";var _r=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};_r.eventName="change";var ys=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))}},fd=new ys;var Xn=class t extends zt.WithEventBus{static build(){return new t(window.history,fd,()=>window.location,!1)}constructor(e,r,i,o){var n,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(n=e.state)===null||n===void 0?void 0:n.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(o)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,zt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new _r(this.currentItem())),0)}installProxies(){let e=r=>(i,o,[n,s,a])=>{let l=new wr(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(l);let d=r(),u={...d===this.currentIndex?this.currentState:void 0,...n,index:d,href:l.detail.nextLocation.href};i.apply(o,[u,s,u.href]),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)}addBeforeLocationChangeListener(e){this.addEventListener(wr.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(wr.eventName,e)}addHistoryChangeListener(e){this.addEventListener(_r.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(_r.eventName,e)}currentItem(){return(0,zt.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,zt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,zt.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,zt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let o=e,n=e+1;for(;this.states.length>n&&!this.isDifferentMajorState(n,i);)this.hasState(n)&&(o=n),n++;return o}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let o=r??this.currentState.majorStateId,n=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return n==null||n!=o}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Xn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)});var hd=c(E());var md=hd.css`
|
|
624
|
+
`;var bd=c(E()),Ie=c(j()),Tr=c(m());var Or=c(m());function gd(t,e){let{authenticationRequired:r,session:i}=_.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var Yn=class extends Yr{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var bs=class t extends Or.FtStateManager{static build(e){return new t(_,e)}constructor(e,r){super(),this.store=e,this.cache=new Or.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new Yn,this.cleanSessionDebouncer=new Or.Debouncer,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new Or.Debouncer(500),this.apiProvider=r??(()=>Cr.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(Ar.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(Ar.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let r=await this.cache.get("availableContentLocales",()=>gd(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}setStickyFilters(e){this.store.actions.stickyFilters(e)}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Ii(i)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setNoCustomCode(e){this.store.actions.noCustomCode(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}userHasAnyRole(...e){return od(_.getState().session,...e)}},yd=bs.build();var Rr=class extends Event{constructor(e,r,i,o){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=o??!1}};var Fi=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:i}=r;for(let{elementRef:o,callbackRef:n}of i){let s=o.deref(),a=n.deref();s===void 0||a===void 0||s.dispatchEvent(new Rr(e.context,s,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,o=this.pendingContextRequests.get(e.context);o===void 0&&this.pendingContextRequests.set(e.context,o={callbacks:new WeakMap,requests:[]});let n=o.callbacks.get(r);n===void 0&&o.callbacks.set(r,n=new WeakSet),n.has(i)||(n.add(i),o.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var be=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},ie=class extends Tr.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=yd,this.contextRoot=new Fi}render(){return bd.html`
|
|
620
625
|
<slot></slot>
|
|
621
|
-
`}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>Mi.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())}};ie.elementDefinitions={};ie.styles=md;
|
|
622
|
-
`;var
|
|
626
|
+
`}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>Mi.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())}};ie.elementDefinitions={};ie.styles=md;be([(0,Ie.property)()],ie.prototype,"baseUrl",void 0);be([(0,Ie.property)()],ie.prototype,"tenantId",void 0);be([(0,Ie.property)()],ie.prototype,"apiIntegrationIdentifier",void 0);be([(0,Ie.property)()],ie.prototype,"apiIntegrationAppVersion",void 0);be([(0,Ie.property)()],ie.prototype,"uiLocale",void 0);be([(0,Tr.jsonProperty)(null)],ie.prototype,"availableUiLocales",void 0);be([(0,Tr.jsonProperty)(null)],ie.prototype,"metadataConfiguration",void 0);be([(0,Ie.property)({type:Boolean})],ie.prototype,"editorMode",void 0);be([(0,Ie.property)({type:Boolean})],ie.prototype,"noCustom",void 0);be([(0,Ie.property)({type:Boolean})],ie.prototype,"openExternalDocumentInNewTab",void 0);be([(0,Ie.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ie.prototype,"noCustomComponent",void 0);be([(0,Ie.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ie.prototype,"noCustomCode",void 0);be([(0,Ie.property)({type:Boolean})],ie.prototype,"withManualResources",void 0);be([(0,Ie.property)({type:Boolean})],ie.prototype,"navigatorOnline",void 0);be([(0,Ie.property)({type:Boolean})],ie.prototype,"forcedOffline",void 0);be([(0,Ie.property)({type:Boolean})],ie.prototype,"authenticationRequired",void 0);be([(0,Tr.jsonProperty)([])],ie.prototype,"messageContexts",void 0);be([(0,Tr.jsonProperty)(void 0)],ie.prototype,"session",void 0);var xd=c(m());var vd={"ft-app-context":ie};(0,xd.customElements)(vd);var Sd=c(j());var vs=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-]+$/)}},Qr=new vs;var nh=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Ui=Symbol("i18nAttributes"),Ed=Symbol("i18nListAttributes"),Ad=Symbol("i18nProperties"),Zn=Symbol("i18nContexts"),Bi=Symbol("i18nUnsubs"),eo=(0,Jr.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(n){return n??this.useCustomMessageContexts?fs:Mi}i18n(n){let{context:s,key:a,message:l}=n,{custom:d,args:u,argsProvider:p}=n;if(s&&a){this.hasI18nContext(s)||this.addI18nContext(s,void 0,d);let f=u??(p?p(this):[]);return this.getI18nService(d).resolveMessage(s,a,...f)}return l}async awaitI18n(n){let{context:s,custom:a}=n;return s&&await this.getI18nService(a).prepareContext(s),this.i18n(n)}customI18n(n,s){if(Qr.isI18nKey(n)){let[a,l]=n.split(".");return this.i18n({custom:!0,context:a,key:l,...s})||n}return n}firstUpdated(n){super.firstUpdated(n),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(n){super.update(n),this.updateI18nAttributes((s,a,l)=>n.has(a)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(n){this.updateI18nAttributes((s,a,l)=>{var d;return((d=l?.context)===null||d===void 0?void 0:d.toLowerCase())===n}),this.updateI18nProperties(s=>s.context.toLowerCase()===n),this.requestUpdate()}updateI18nAttributes(n){var s,a;let l=this,d=(u,p,f)=>f?.context&&f.key&&n(u,p,f)?{...f,message:this.i18n({context:f.context,key:f.key,custom:f.custom,...u})}:f;(s=this[Ui])===null||s===void 0||s.forEach((u,p)=>l[p]=d(u,p,l[p])),(a=this[Ed])===null||a===void 0||a.forEach((u,p)=>{var f;return l[p]=(f=l[p])===null||f===void 0?void 0:f.map(b=>d(u,p,b))})}updateI18nProperties(n){var s;(s=this[Ad])===null||s===void 0||s.forEach((a,l)=>{n(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(n,s,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(n,s,a)}addI18nContext(n,s,a){let l=(typeof n=="string"?n:n.name).toLowerCase();a=typeof n=="string"?a:n.custom,this[Zn].set(l,{isCustomContext:a}),this[Bi].has(l)||this[Bi].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,s)}hasI18nContext(n){return this[Zn].has(n.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Zn].forEach((n,s)=>this.addI18nContext(s,void 0,n.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Bi].forEach(n=>n()),this[Bi].clear()}}return e=Zn,r=Bi,nh([(0,Sd.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),Qn=class extends eo(Jr.FtLitElement){},Jn=class extends eo(Jr.FtLitElementRedux){};var Cd=c(m());var xs=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?Qr.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},oh=new xs;var wd=(t,e)=>(r,i)=>{var o;r.constructor.createProperty(i,{type:Object,hasChanged:Cd.hasChanged,converter:Qr,...e}),r[Ui]=(o=r[Ui])!==null&&o!==void 0?o:new Map,r[Ui].set(i,t??{})};var _d=c(E());var Od=_d.css`
|
|
627
|
+
`;var to=c(E()),ti=c(j()),ro=c(m());var ei=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},at=class extends Jn{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(_)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:to.nothing:to.html`
|
|
623
628
|
<span class="ft-i18n">
|
|
624
629
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
625
630
|
</span>
|
|
626
|
-
`}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:""})}};at.elementDefinitions={};at.styles=Od;ei([(0,
|
|
631
|
+
`}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:""})}};at.elementDefinitions={};at.styles=Od;ei([(0,ro.redux)()],at.prototype,"editorMode",void 0);ei([(0,ti.property)()],at.prototype,"context",void 0);ei([(0,ti.property)()],at.prototype,"key",void 0);ei([(0,ro.jsonProperty)([])],at.prototype,"args",void 0);ei([(0,ti.property)()],at.prototype,"defaultMessage",void 0);ei([(0,ti.state)()],at.prototype,"editorMessage",void 0);var Td=c(m());var Rd={"ft-i18n":at};(0,Td.customElements)(Rd);var bt=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},ae=class extends Qn{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 lt.Debouncer,this.revealDebouncer=new lt.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 kd.html`
|
|
627
632
|
<div part="container"
|
|
628
633
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
|
|
629
634
|
<slot part="slot"></slot>
|
|
@@ -632,33 +637,33 @@
|
|
|
632
637
|
popover="manual">
|
|
633
638
|
<div part="tooltip-content" class="ft-tooltip--content">
|
|
634
639
|
<slot name="text"></slot>
|
|
635
|
-
<ft-typography variant="${
|
|
640
|
+
<ft-typography variant="${de.caption}" ?hidden=${!(!((e=this.text)===null||e===void 0)&&e.message)}>
|
|
636
641
|
${(r=this.text)===null||r===void 0?void 0:r.message}
|
|
637
642
|
</ft-typography>
|
|
638
643
|
</div>
|
|
639
644
|
</div>
|
|
640
645
|
</div>
|
|
641
|
-
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,i;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let o=this.text;this.text={message:e},await this.show(r),this.text=o,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&Sl(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 ${lt.designSystemVariables.transitionDuration}, left ${lt.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,lt.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};ce.elementDefinitions={"ft-typography":q};ce.styles=Ka;yt([wd()],ce.prototype,"text",void 0);yt([(0,ct.property)({type:Boolean})],ce.prototype,"manual",void 0);yt([(0,ct.property)({type:Boolean})],ce.prototype,"inline",void 0);yt([(0,lt.numberProperty)()],ce.prototype,"delay",void 0);yt([(0,ct.property)()],ce.prototype,"position",void 0);yt([(0,lt.jsonProperty)([])],ce.prototype,"ignoreMatchingElements",void 0);yt([(0,ct.queryAssignedNodes)()],ce.prototype,"slotNodes",void 0);yt([(0,ct.query)(".ft-tooltip--container")],ce.prototype,"container",void 0);yt([(0,ct.query)(".ft-tooltip")],ce.prototype,"tooltip",void 0);yt([(0,ct.query)(".ft-tooltip--content")],ce.prototype,"tooltipContent",void 0);yt([(0,ct.state)()],ce.prototype,"visible",void 0);var $d=c(m());var Ld={"ft-tooltip":ce};(0,$d.customElements)(Ld);var bt;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(bt||(bt={}));var zi=c(E()),Zt=c(j()),Md=c(m()),Nd=c(Pd());var Xe;(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="󨃱"})(Xe||(Xe={}));var g;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(g||(g={}));var vs=new Map([...["abw"].map(t=>[t,g.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,g.AUDIO]),...["avi"].map(t=>[t,g.AVI]),...["chm","xhs"].map(t=>[t,g.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,g.CODE]),...["csv"].map(t=>[t,g.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,g.DITA]),...["epub"].map(t=>[t,g.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,g.EXCEL]),...["flac"].map(t=>[t,g.FLAC]),...["gif"].map(t=>[t,g.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,g.GZIP]),...["html","htm","xhtml"].map(t=>[t,g.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,g.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,g.JPEG]),...["json"].map(t=>[t,g.JSON]),...["m4a","m4p"].map(t=>[t,g.M4A]),...["mov","qt"].map(t=>[t,g.MOV]),...["mp3"].map(t=>[t,g.MP3]),...["mp4","m4v"].map(t=>[t,g.MP4]),...["ogg","oga"].map(t=>[t,g.OGG]),...["pdf","ps"].map(t=>[t,g.PDF]),...["png"].map(t=>[t,g.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,g.POWERPOINT]),...["rar"].map(t=>[t,g.RAR]),...["stp"].map(t=>[t,g.STP]),...["txt","rtf","md","mdown"].map(t=>[t,g.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,g.VIDEO]),...["wav"].map(t=>[t,g.WAV]),...["wma"].map(t=>[t,g.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,g.WORD]),...["xml","xsl","rdf"].map(t=>[t,g.XML]),...["yaml","yml","x-yaml"].map(t=>[t,g.YAML]),...["zip"].map(t=>[t,g.ZIP])]),sh=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 Id(t,e){var r,i,o,n;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,a]=(((r=sh.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(n=(o=(i=vs.get(a))!==null&&i!==void 0?i:vs.get(e))!==null&&o!==void 0?o:vs.get(s))!==null&&n!==void 0?n:g.UNKNOWN}var Tx={[g.ABW]:"#91ABC6",[g.AUDIO]:"#1795E3",[g.AVI]:"#E63324",[g.CHM]:"#71C3EB",[g.CODE]:"#71C3EB",[g.CSV]:"#1F7345",[g.DITA]:"#71C3EB",[g.EPUB]:"#85B926",[g.EXCEL]:"#1F7345",[g.FLAC]:"#1795E3",[g.GIF]:"#59B031",[g.GZIP]:"#F8AB36",[g.HTML]:"#71C3EB",[g.IMAGE]:"#59B031",[g.JPEG]:"#59B031",[g.JSON]:"#71C3EB",[g.M4A]:"#1795E3",[g.MOV]:"#E63324",[g.MP3]:"#1795E3",[g.MP4]:"#E63324",[g.OGG]:"#1795E3",[g.PDF]:"#E44948",[g.PNG]:"#59B031",[g.POWERPOINT]:"#B54A2B",[g.RAR]:"#F8AB36",[g.STP]:"#3764B1",[g.TEXT]:"#3162AB",[g.UNKNOWN]:"#999999",[g.VIDEO]:"#E63324",[g.WAV]:"#1795E3",[g.WMA]:"#1795E3",[g.WORD]:"#3162AB",[g.XML]:"#71C3EB",[g.YAML]:"#71C3EB",[g.ZIP]:"#F8AB36"};var Vi=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},ne=class extends Md.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=zi.nothing}render(){let e=this.variant&&Object.values(bt).includes(this.variant)?this.variant:bt.fluid_topics,r=e!==bt.material||!!this.value;return zi.html`
|
|
646
|
+
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,i;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let o=this.text;this.text={message:e},await this.show(r),this.text=o,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&El(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 ${lt.designSystemVariables.transitionDuration}, left ${lt.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,lt.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};ae.elementDefinitions={"ft-typography":G};ae.styles=Ga;bt([wd()],ae.prototype,"text",void 0);bt([(0,ct.property)({type:Boolean})],ae.prototype,"manual",void 0);bt([(0,ct.property)({type:Boolean})],ae.prototype,"inline",void 0);bt([(0,lt.numberProperty)()],ae.prototype,"delay",void 0);bt([(0,ct.property)()],ae.prototype,"position",void 0);bt([(0,lt.jsonProperty)([])],ae.prototype,"ignoreMatchingElements",void 0);bt([(0,ct.queryAssignedNodes)()],ae.prototype,"slotNodes",void 0);bt([(0,ct.query)(".ft-tooltip--container")],ae.prototype,"container",void 0);bt([(0,ct.query)(".ft-tooltip")],ae.prototype,"tooltip",void 0);bt([(0,ct.query)(".ft-tooltip--content")],ae.prototype,"tooltipContent",void 0);bt([(0,ct.state)()],ae.prototype,"visible",void 0);var $d=c(m());var Ld={"ft-tooltip":ae};(0,$d.customElements)(Ld);var vt;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(vt||(vt={}));var zi=c(E()),Zt=c(j()),Md=c(m()),Nd=c(Pd());var Xe;(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="󨃱"})(Xe||(Xe={}));var g;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(g||(g={}));var Ss=new Map([...["abw"].map(t=>[t,g.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,g.AUDIO]),...["avi"].map(t=>[t,g.AVI]),...["chm","xhs"].map(t=>[t,g.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,g.CODE]),...["csv"].map(t=>[t,g.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,g.DITA]),...["epub"].map(t=>[t,g.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,g.EXCEL]),...["flac"].map(t=>[t,g.FLAC]),...["gif"].map(t=>[t,g.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,g.GZIP]),...["html","htm","xhtml"].map(t=>[t,g.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,g.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,g.JPEG]),...["json"].map(t=>[t,g.JSON]),...["m4a","m4p"].map(t=>[t,g.M4A]),...["mov","qt"].map(t=>[t,g.MOV]),...["mp3"].map(t=>[t,g.MP3]),...["mp4","m4v"].map(t=>[t,g.MP4]),...["ogg","oga"].map(t=>[t,g.OGG]),...["pdf","ps"].map(t=>[t,g.PDF]),...["png"].map(t=>[t,g.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,g.POWERPOINT]),...["rar"].map(t=>[t,g.RAR]),...["stp"].map(t=>[t,g.STP]),...["txt","rtf","md","mdown"].map(t=>[t,g.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,g.VIDEO]),...["wav"].map(t=>[t,g.WAV]),...["wma"].map(t=>[t,g.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,g.WORD]),...["xml","xsl","rdf"].map(t=>[t,g.XML]),...["yaml","yml","x-yaml"].map(t=>[t,g.YAML]),...["zip"].map(t=>[t,g.ZIP])]),sh=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 Id(t,e){var r,i,o,n;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,a]=(((r=sh.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(n=(o=(i=Ss.get(a))!==null&&i!==void 0?i:Ss.get(e))!==null&&o!==void 0?o:Ss.get(s))!==null&&n!==void 0?n:g.UNKNOWN}var Rx={[g.ABW]:"#91ABC6",[g.AUDIO]:"#1795E3",[g.AVI]:"#E63324",[g.CHM]:"#71C3EB",[g.CODE]:"#71C3EB",[g.CSV]:"#1F7345",[g.DITA]:"#71C3EB",[g.EPUB]:"#85B926",[g.EXCEL]:"#1F7345",[g.FLAC]:"#1795E3",[g.GIF]:"#59B031",[g.GZIP]:"#F8AB36",[g.HTML]:"#71C3EB",[g.IMAGE]:"#59B031",[g.JPEG]:"#59B031",[g.JSON]:"#71C3EB",[g.M4A]:"#1795E3",[g.MOV]:"#E63324",[g.MP3]:"#1795E3",[g.MP4]:"#E63324",[g.OGG]:"#1795E3",[g.PDF]:"#E44948",[g.PNG]:"#59B031",[g.POWERPOINT]:"#B54A2B",[g.RAR]:"#F8AB36",[g.STP]:"#3764B1",[g.TEXT]:"#3162AB",[g.UNKNOWN]:"#999999",[g.VIDEO]:"#E63324",[g.WAV]:"#1795E3",[g.WMA]:"#1795E3",[g.WORD]:"#3162AB",[g.XML]:"#71C3EB",[g.YAML]:"#71C3EB",[g.ZIP]:"#F8AB36"};var Vi=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},oe=class extends Md.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=zi.nothing}render(){let e=this.variant&&Object.values(vt).includes(this.variant)?this.variant:vt.fluid_topics,r=e!==vt.material||!!this.value;return zi.html`
|
|
642
647
|
<i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
|
|
643
648
|
${(0,Nd.unsafeHTML)(this.resolvedIcon)}
|
|
644
649
|
<slot ?hidden=${r}></slot>
|
|
645
650
|
</i>
|
|
646
|
-
`}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
|
|
651
|
+
`}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 vt.file_format:this.resolvedIcon=(e=g[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case vt.material:this.resolvedIcon=this.value||zi.nothing;break;default:this.resolvedIcon=(r=Xe[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};oe.elementDefinitions={};oe.styles=Ma;Vi([(0,Zt.property)()],oe.prototype,"variant",void 0);Vi([(0,Zt.property)()],oe.prototype,"value",void 0);Vi([(0,Zt.property)({reflect:!0,attribute:"aria-hidden"})],oe.prototype,"ariaHidden",void 0);Vi([(0,Zt.state)()],oe.prototype,"resolvedIcon",void 0);Vi([(0,Zt.query)("slot")],oe.prototype,"slottedContent",void 0);var Bd=c(m());var Fd={"ft-icon":oe};(0,Bd.customElements)(Fd);var Ud=c(E()),zd=c(m());var kr=class extends zd.FtLitElement{render(){return Ud.html`
|
|
647
652
|
<div class="ft-loader">
|
|
648
653
|
<div></div>
|
|
649
654
|
<div></div>
|
|
650
655
|
<div></div>
|
|
651
656
|
<div></div>
|
|
652
657
|
</div>
|
|
653
|
-
`}};
|
|
658
|
+
`}};kr.styles=Pa;var Hd=c(m());var Vd={"ft-loader":kr};(0,Hd.customElements)(Vd);var Jt=c(E()),io=c(nt()),q=c(j());var Qt=t=>t??ce;var J=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},O=class t extends(0,kt.toFtFormComponent)(kt.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--no-text":!this.hasTextContent,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let o={"ft-button--label":!0,"ft-safari-ellipsis-fix":kt.isSafari},n=Jt.html`
|
|
654
659
|
<ft-ripple part="ripple"
|
|
655
660
|
?disabled=${this.isDisabled()}
|
|
656
661
|
?activated=${this.activated}
|
|
657
662
|
></ft-ripple>
|
|
658
663
|
<ft-typography part="label"
|
|
659
|
-
variant="${
|
|
664
|
+
variant="${de.button}"
|
|
660
665
|
element="span"
|
|
661
|
-
class="${(0,
|
|
666
|
+
class="${(0,io.classMap)(o)}">
|
|
662
667
|
<slot></slot>
|
|
663
668
|
</ft-typography>
|
|
664
669
|
${this.resolveIcon()}
|
|
@@ -666,14 +671,14 @@
|
|
|
666
671
|
<a href="${s}"
|
|
667
672
|
target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
|
|
668
673
|
part="button"
|
|
669
|
-
class="${(0,
|
|
674
|
+
class="${(0,io.classMap)(this.buttonClasses)}"
|
|
670
675
|
aria-label="${Qt((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
|
|
671
676
|
?disabled=${this.isDisabled()}>
|
|
672
677
|
${n}
|
|
673
678
|
</a>
|
|
674
679
|
`:Jt.html`
|
|
675
680
|
<button part="button"
|
|
676
|
-
class="${(0,
|
|
681
|
+
class="${(0,io.classMap)(this.buttonClasses)}"
|
|
677
682
|
aria-label="${Qt((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
|
|
678
683
|
aria-haspopup="${Qt(this.ariaHasPopup)}"
|
|
679
684
|
aria-pressed="${Qt(this.ariaPressed)}"
|
|
@@ -691,7 +696,7 @@
|
|
|
691
696
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
692
697
|
`:Jt.html`
|
|
693
698
|
<slot part="icon" name="icon"></slot>
|
|
694
|
-
`}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)}};
|
|
699
|
+
`}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)}};O.elementDefinitions={"ft-ripple":M,"ft-tooltip":ae,"ft-icon":oe,"ft-loader":kr,"ft-typography":G};O.styles=[kt.safariEllipsisFix,Ba,kt.noTextSelect];O.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r instanceof ShadowRoot&&r.host?r.host.hasTextContent=e.boundingClientRect.width>0:O.labelsObserver.unobserve(e.target)}});J([(0,q.property)({type:Boolean})],O.prototype,"primary",void 0);J([(0,q.property)({type:Boolean})],O.prototype,"outlined",void 0);J([(0,q.property)({type:Boolean})],O.prototype,"dense",void 0);J([(0,q.property)({type:Boolean})],O.prototype,"round",void 0);J([(0,q.property)({type:Boolean})],O.prototype,"disabled",void 0);J([(0,q.property)()],O.prototype,"icon",void 0);J([(0,q.property)()],O.prototype,"iconVariant",void 0);J([(0,q.property)({type:Boolean})],O.prototype,"trailingIcon",void 0);J([(0,q.property)()],O.prototype,"label",void 0);J([(0,q.property)()],O.prototype,"type",void 0);J([(0,q.property)()],O.prototype,"href",void 0);J([(0,q.property)()],O.prototype,"target",void 0);J([(0,q.property)({type:Boolean})],O.prototype,"loading",void 0);J([(0,q.property)({attribute:"aria-label"})],O.prototype,"ariaLabel",void 0);J([(0,q.property)()],O.prototype,"ariaHasPopup",void 0);J([(0,q.property)({attribute:"aria-pressed"})],O.prototype,"ariaPressed",void 0);J([(0,q.property)()],O.prototype,"tooltipPosition",void 0);J([(0,q.property)({type:Boolean})],O.prototype,"hideTooltip",void 0);J([(0,q.property)({type:Boolean})],O.prototype,"forceTooltip",void 0);J([(0,q.property)({type:Boolean})],O.prototype,"activated",void 0);J([(0,q.query)(".ft-button")],O.prototype,"button",void 0);J([(0,q.query)(".ft-button--label")],O.prototype,"labelContainer",void 0);J([(0,q.state)()],O.prototype,"hasTextContent",void 0);J([(0,q.query)(".ft-button--label slot")],O.prototype,"slottedContent",void 0);J([(0,q.query)("[part=tooltip]")],O.prototype,"tooltip",void 0);var Wd=c(m());var jd={"ft-button":O};(0,Wd.customElements)(jd);var no=c(E()),xt=c(j()),Gd=c(m()),Xd=c(nt());var ve=c(m()),Kd=c(E());var Ye={textColor:ve.FtCssVariableFactory.extend("--ft-checkbox-text-color","",ve.designSystemVariables.colorOnSurfaceHigh),fontSize:ve.FtCssVariableFactory.extend("--ft-checkbox-font-size","",y.fontSize),activeColor:ve.FtCssVariableFactory.extend("--ft-checkbox-active-color","",ve.designSystemVariables.colorPrimary),checkColor:ve.FtCssVariableFactory.extend("--ft-checkbox-check-color","",ve.designSystemVariables.colorOnPrimary),borderColor:ve.FtCssVariableFactory.extend("--ft-checkbox-border-color","",ve.designSystemVariables.colorOnSurfaceMedium),disabledColor:ve.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",ve.designSystemVariables.colorOnSurfaceDisabled),errorColor:ve.FtCssVariableFactory.extend("--ft-checkbox-error-color","",ve.designSystemVariables.colorError)},qd=Kd.css`
|
|
695
700
|
* {
|
|
696
701
|
box-sizing: border-box;
|
|
697
702
|
}
|
|
@@ -772,7 +777,7 @@
|
|
|
772
777
|
|
|
773
778
|
.ft-checkbox.ft-checkbox--error {
|
|
774
779
|
color: ${Ye.errorColor};
|
|
775
|
-
${(0,
|
|
780
|
+
${(0,ve.setVariable)(W.color,Ye.errorColor)};
|
|
776
781
|
|
|
777
782
|
.ft-checkbox--box {
|
|
778
783
|
border-color: ${Ye.errorColor};
|
|
@@ -784,7 +789,16 @@
|
|
|
784
789
|
}
|
|
785
790
|
}
|
|
786
791
|
}
|
|
787
|
-
|
|
792
|
+
|
|
793
|
+
.ft-checkbox:has(:focus-visible) {
|
|
794
|
+
outline: 2px solid ${ve.designSystemVariables.colorPrimary};
|
|
795
|
+
outline-offset: -2px;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
.ft-checkbox ft-typography {
|
|
799
|
+
padding-right: 2px;
|
|
800
|
+
}
|
|
801
|
+
`;var Vt=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Es=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Ce=class extends Gd.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 no.html`
|
|
788
802
|
<div class="ft-checkbox--box-container" part="checkbox-box-container">
|
|
789
803
|
<ft-ripple part="checkbox-ripple"
|
|
790
804
|
?disabled=${this.disabled}
|
|
@@ -806,19 +820,19 @@
|
|
|
806
820
|
@change=${this.onChange}
|
|
807
821
|
>
|
|
808
822
|
</div>
|
|
809
|
-
`}render(){return
|
|
823
|
+
`}render(){return no.html`
|
|
810
824
|
<label class="${(0,Xd.classMap)(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
|
|
811
825
|
${this.renderBoxContainer()}
|
|
812
|
-
<ft-typography variant="${
|
|
826
|
+
<ft-typography variant="${de.body2}" part="checkbox-body">
|
|
813
827
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
814
828
|
</ft-typography>
|
|
815
829
|
</label>
|
|
816
|
-
`}renderBoxIcon(){return
|
|
830
|
+
`}renderBoxIcon(){return no.html`
|
|
817
831
|
<svg class="ft-checkbox--checkmark" viewBox="0 0 24 24" part="checkbox-check" aria-hidden="true">
|
|
818
832
|
<path class="ft-checkbox--checkmark-path" fill="none"
|
|
819
833
|
d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
|
|
820
834
|
</svg>
|
|
821
|
-
`}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
|
|
835
|
+
`}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 Es(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)}};Ce.elementDefinitions={"ft-ripple":M,"ft-typography":G};Ce.styles=qd;Vt([(0,xt.property)()],Ce.prototype,"name",void 0);Vt([(0,xt.property)()],Ce.prototype,"value",void 0);Vt([(0,xt.property)({type:Boolean,reflect:!0})],Ce.prototype,"checked",void 0);Vt([(0,xt.property)({type:Boolean})],Ce.prototype,"indeterminate",void 0);Vt([(0,xt.property)({type:Boolean})],Ce.prototype,"disabled",void 0);Vt([(0,xt.property)({type:Boolean})],Ce.prototype,"error",void 0);Vt([(0,xt.query)(".ft-checkbox")],Ce.prototype,"container",void 0);Vt([(0,xt.query)("ft-ripple")],Ce.prototype,"ripple",void 0);Vt([(0,xt.query)("input")],Ce.prototype,"input",void 0);var Zd=c(m());var Yd={"ft-checkbox":Ce};(0,Zd.customElements)(Yd);var eu=c(E()),Lt=c(j()),tu=c(m()),ru=c(nt());var Qd=c(E()),Ve=c(m());var er={textColor:Ve.FtCssVariableFactory.extend("--ft-radio-text-color","",Ve.designSystemVariables.colorOnSurfaceHigh),fontSize:Ve.FtCssVariableFactory.extend("--ft-radio-font-size","",y.fontSize),colorPrimary:Ve.FtCssVariableFactory.external(Ve.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:Ve.FtCssVariableFactory.external(Ve.designSystemVariables.colorOnPrimary,"Design system"),borderColor:Ve.FtCssVariableFactory.extend("--ft-radio-border-color","",Ve.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:Ve.FtCssVariableFactory.external(Ve.designSystemVariables.colorOnSurfaceDisabled,"Design system")},Jd=Qd.css`
|
|
822
836
|
* {
|
|
823
837
|
box-sizing: border-box;
|
|
824
838
|
}
|
|
@@ -907,7 +921,7 @@
|
|
|
907
921
|
.ft-radio ft-typography {
|
|
908
922
|
padding-right: 2px;
|
|
909
923
|
}
|
|
910
|
-
`;var tr=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},
|
|
924
|
+
`;var tr=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},oo=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},xe=class extends tu.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 eu.html`
|
|
911
925
|
<div class="${(0,ru.classMap)(this.radioClasses)}"
|
|
912
926
|
@click=${this.onClick}>
|
|
913
927
|
<div class="ft-radio--box-container">
|
|
@@ -928,12 +942,12 @@
|
|
|
928
942
|
>
|
|
929
943
|
</div>
|
|
930
944
|
<label for="radio-button" inert>
|
|
931
|
-
<ft-typography variant="${
|
|
945
|
+
<ft-typography variant="${de.body2}">
|
|
932
946
|
<slot></slot>
|
|
933
947
|
</ft-typography>
|
|
934
948
|
</label>
|
|
935
949
|
</div>
|
|
936
|
-
`}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
|
|
950
|
+
`}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 oo(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 oo(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())}};xe.elementDefinitions={"ft-ripple":M,"ft-typography":G};xe.styles=Jd;tr([(0,Lt.property)()],xe.prototype,"name",void 0);tr([(0,Lt.property)()],xe.prototype,"value",void 0);tr([(0,Lt.property)({type:Boolean,reflect:!0})],xe.prototype,"checked",void 0);tr([(0,Lt.property)({attribute:"aria-checked",reflect:!0})],xe.prototype,"ariaChecked",void 0);tr([(0,Lt.property)({type:Boolean})],xe.prototype,"disabled",void 0);tr([(0,Lt.query)(".ft-radio")],xe.prototype,"container",void 0);tr([(0,Lt.query)("ft-ripple")],xe.prototype,"ripple",void 0);tr([(0,Lt.query)("input")],xe.prototype,"input",void 0);var ou=c(m()),rr=c(j()),su=c(E());var iu=c(E());var nu=iu.css`
|
|
937
951
|
:host {
|
|
938
952
|
display: block;
|
|
939
953
|
}
|
|
@@ -946,7 +960,7 @@
|
|
|
946
960
|
@change=${this.onChange}
|
|
947
961
|
@keydown=${this.onKeyDown}
|
|
948
962
|
></slot>
|
|
949
|
-
`}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()}};Ze.elementDefinitions={};Ze.styles=nu;Hi([(0,rr.property)()],Ze.prototype,"name",void 0);Hi([(0,rr.property)({reflect:!0,attribute:"role"})],Ze.prototype,"role",void 0);Hi([(0,rr.property)({reflect:!0,attribute:"aria-labelledby"})],Ze.prototype,"ariaLabelledBy",void 0);Hi([(0,rr.queryAssignedElements)()],Ze.prototype,"assignedElements",void 0);Hi([(0,rr.state)()],Ze.prototype,"currentSelectedIndex",void 0);var lu=c(m());var au={"ft-radio":xe,"ft-radio-group":Ze};(0,lu.customElements)(au);var we=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},
|
|
963
|
+
`}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()}};Ze.elementDefinitions={};Ze.styles=nu;Hi([(0,rr.property)()],Ze.prototype,"name",void 0);Hi([(0,rr.property)({reflect:!0,attribute:"role"})],Ze.prototype,"role",void 0);Hi([(0,rr.property)({reflect:!0,attribute:"aria-labelledby"})],Ze.prototype,"ariaLabelledBy",void 0);Hi([(0,rr.queryAssignedElements)()],Ze.prototype,"assignedElements",void 0);Hi([(0,rr.state)()],Ze.prototype,"currentSelectedIndex",void 0);var lu=c(m());var au={"ft-radio":xe,"ft-radio-group":Ze};(0,lu.customElements)(au);var we=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},As={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},se=class extends(0,He.withAnalytics)(eo((0,He.withAriaNotification)(He.FtLitElement)),As){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 He.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 Qe.html`
|
|
950
964
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
951
965
|
${this.parent==null?null:Qe.html`
|
|
952
966
|
<div tabindex="0"
|
|
@@ -959,11 +973,11 @@
|
|
|
959
973
|
@click=${this.goBackOnClick}>
|
|
960
974
|
<ft-ripple></ft-ripple>
|
|
961
975
|
<ft-icon>thin_arrow_left</ft-icon>
|
|
962
|
-
<ft-typography variant="${
|
|
976
|
+
<ft-typography variant="${de.body2}">${this.parent.label}</ft-typography>
|
|
963
977
|
</div>
|
|
964
978
|
`}
|
|
965
979
|
${this.filteredOptions.length===0&&this.noValuesLabel?Qe.html`
|
|
966
|
-
<ft-typography class="ft-filter-level--no-values" element="span" variant="${
|
|
980
|
+
<ft-typography class="ft-filter-level--no-values" element="span" variant="${de.body2}">
|
|
967
981
|
${this.noValuesLabel}
|
|
968
982
|
</ft-typography>
|
|
969
983
|
`:Qe.nothing}
|
|
@@ -1014,7 +1028,7 @@
|
|
|
1014
1028
|
@change=${r=>this.optionsChanged(r,e)}>
|
|
1015
1029
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1016
1030
|
</ft-radio>
|
|
1017
|
-
`}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)})}};
|
|
1031
|
+
`}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)})}};se.elementDefinitions={"ft-button":O,"ft-ripple":M,"ft-typography":G,"ft-checkbox":Ce,"ft-icon":oe,"ft-radio":xe};se.styles=za;we([(0,ye.property)({type:String})],se.prototype,"filterId",void 0);we([(0,ye.property)({type:Object})],se.prototype,"parent",void 0);we([(0,ye.property)({type:Array,hasChanged:He.hasChanged})],se.prototype,"options",void 0);we([(0,ye.property)({type:Boolean})],se.prototype,"multivalued",void 0);we([(0,ye.property)({type:Boolean})],se.prototype,"disabled",void 0);we([(0,ye.property)({type:Boolean})],se.prototype,"hideSelectedOptions",void 0);we([(0,ye.property)({type:Boolean})],se.prototype,"displayCount",void 0);we([(0,ye.property)({type:Boolean})],se.prototype,"preventNavigation",void 0);we([(0,ye.property)({type:String})],se.prototype,"filter",void 0);we([(0,ye.property)({type:String})],se.prototype,"moreValuesButtonLabel",void 0);we([(0,ye.property)({type:String})],se.prototype,"noValuesLabel",void 0);we([(0,ye.property)()],se.prototype,"filteredOptionsNumberAriaNotification",void 0);we([(0,He.numberProperty)()],se.prototype,"displayedValuesLimit",void 0);we([(0,ye.query)(".ft-filter-level--container")],se.prototype,"container",void 0);we([(0,ye.state)()],se.prototype,"radios",void 0);we([(0,ye.state)()],se.prototype,"displayedPages",void 0);we([(0,ye.state)()],se.prototype,"filteredOptions",void 0);var pu=c(E()),Je=c(j()),Lr=c(m());var fu=c(nt());var du=c(E()),St=c(m());var Me={buttonsColor:St.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",St.designSystemVariables.colorPrimary),buttonsZIndex:St.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:St.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:St.FtCssVariableFactory.external(St.designSystemVariables.colorSurface,"Design system")},uu=du.css`
|
|
1018
1032
|
.ft-snap-scroll {
|
|
1019
1033
|
box-sizing: border-box;
|
|
1020
1034
|
position: relative;
|
|
@@ -1049,7 +1063,7 @@
|
|
|
1049
1063
|
flex-wrap: nowrap;
|
|
1050
1064
|
align-items: flex-start;
|
|
1051
1065
|
justify-content: flex-start;
|
|
1052
|
-
gap: ${
|
|
1066
|
+
gap: ${Me.gap};
|
|
1053
1067
|
}
|
|
1054
1068
|
|
|
1055
1069
|
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
|
|
@@ -1092,11 +1106,11 @@
|
|
|
1092
1106
|
.ft-snap-scroll--next {
|
|
1093
1107
|
position: absolute;
|
|
1094
1108
|
display: flex;
|
|
1095
|
-
z-index: ${
|
|
1109
|
+
z-index: ${Me.buttonsZIndex};
|
|
1096
1110
|
opacity: 1;
|
|
1097
1111
|
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
1098
|
-
${(0,
|
|
1099
|
-
${(0,
|
|
1112
|
+
${(0,St.setVariable)(I.backgroundColor,"transparent")};
|
|
1113
|
+
${(0,St.setVariable)(I.color,Me.buttonsColor)};
|
|
1100
1114
|
}
|
|
1101
1115
|
|
|
1102
1116
|
.ft-snap-scroll--previous[hidden],
|
|
@@ -1109,37 +1123,37 @@
|
|
|
1109
1123
|
top: 0;
|
|
1110
1124
|
left: -1px;
|
|
1111
1125
|
bottom: 0;
|
|
1112
|
-
background: linear-gradient(to right, ${
|
|
1126
|
+
background: linear-gradient(to right, ${Me.colorSurface} 50%, var(--snap-scroll-transparent-color));
|
|
1113
1127
|
}
|
|
1114
1128
|
|
|
1115
1129
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous {
|
|
1116
1130
|
top: -1px;
|
|
1117
1131
|
left: 0;
|
|
1118
1132
|
right: 0;
|
|
1119
|
-
background: linear-gradient(to bottom, ${
|
|
1133
|
+
background: linear-gradient(to bottom, ${Me.colorSurface} 50%, var(--snap-scroll-transparent-color));
|
|
1120
1134
|
}
|
|
1121
1135
|
|
|
1122
1136
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next {
|
|
1123
1137
|
top: 0;
|
|
1124
1138
|
right: -1px;
|
|
1125
1139
|
bottom: 0;
|
|
1126
|
-
background: linear-gradient(to left, ${
|
|
1140
|
+
background: linear-gradient(to left, ${Me.colorSurface} 50%, var(--snap-scroll-transparent-color));
|
|
1127
1141
|
}
|
|
1128
1142
|
|
|
1129
1143
|
.ft-snap-scroll--vertical .ft-snap-scroll--next {
|
|
1130
1144
|
left: 0;
|
|
1131
1145
|
right: 0;
|
|
1132
1146
|
bottom: -1px;
|
|
1133
|
-
background: linear-gradient(to top, ${
|
|
1147
|
+
background: linear-gradient(to top, ${Me.colorSurface} 50%, var(--snap-scroll-transparent-color));
|
|
1134
1148
|
}
|
|
1135
1149
|
|
|
1136
1150
|
.ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
|
|
1137
1151
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
|
|
1138
1152
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
|
|
1139
1153
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1140
|
-
background-color: ${
|
|
1154
|
+
background-color: ${Me.colorSurface};
|
|
1141
1155
|
}
|
|
1142
|
-
`;var
|
|
1156
|
+
`;var $t=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Cs=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},he=class extends Lr.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 Lr.Debouncer(200),this.updateScrollDebouncer=new Lr.Debouncer(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let r=this.elements[e];if(r){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,o=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<o||r[this.offsetAttribute]+r[this.sizeAttribute]>i)&&this.scrollToElement(r)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let e=(0,fu.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":Lr.isSafari}),r=this.controls&&this.withScroll;return pu.html`
|
|
1143
1157
|
<div part="container" class="${e}">
|
|
1144
1158
|
<ft-button
|
|
1145
1159
|
class="ft-snap-scroll--previous"
|
|
@@ -1163,7 +1177,7 @@
|
|
|
1163
1177
|
@click=${this.next}
|
|
1164
1178
|
></ft-button>
|
|
1165
1179
|
</div>
|
|
1166
|
-
`}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
|
|
1180
|
+
`}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 Cs(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)}};he.elementDefinitions={"ft-button":O};he.styles=uu;$t([(0,Je.property)({type:Boolean})],he.prototype,"horizontal",void 0);$t([(0,Je.property)({type:Boolean})],he.prototype,"hideScrollbar",void 0);$t([(0,Je.property)({type:Boolean})],he.prototype,"controls",void 0);$t([(0,Je.property)({type:Boolean})],he.prototype,"limitSize",void 0);$t([(0,Je.state)()],he.prototype,"elements",void 0);$t([(0,Je.state)()],he.prototype,"currentElement",void 0);$t([(0,Je.state)()],he.prototype,"withScroll",void 0);$t([(0,Je.state)()],he.prototype,"startReached",void 0);$t([(0,Je.state)()],he.prototype,"endReached",void 0);$t([(0,Je.query)(".ft-snap-scroll--content")],he.prototype,"contentSlot",void 0);var mu=c(m());var hu={"ft-snap-scroll":he};(0,mu.customElements)(hu);var gu=c(E()),ee=c(m());var je={colorOutline:ee.FtCssVariableFactory.external(ee.designSystemVariables.colorOutline,"Design system"),colorOnSurface:ee.FtCssVariableFactory.external(ee.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:ee.FtCssVariableFactory.external(ee.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:ee.FtCssVariableFactory.external(ee.designSystemVariables.colorPrimary,"Design system"),colorSurface:ee.FtCssVariableFactory.external(ee.designSystemVariables.colorSurface,"Design system"),transitionDuration:ee.FtCssVariableFactory.external(ee.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:ee.FtCssVariableFactory.external(ee.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:ee.FtCssVariableFactory.extend("--ft-filter-label-color","",ee.designSystemVariables.colorOnSurface),labelFontSize:ee.FtCssVariableFactory.extend("--ft-filter-label-font-size","",y.fontSize,"16px")},yu=[jt,ee.noTextInputDefaultClearButton,gu.css`
|
|
1167
1181
|
:host {
|
|
1168
1182
|
display: flex;
|
|
1169
1183
|
max-height: 100%;
|
|
@@ -1191,7 +1205,7 @@
|
|
|
1191
1205
|
.ft-filter--header ft-button {
|
|
1192
1206
|
flex-shrink: 0;
|
|
1193
1207
|
margin-left: auto;
|
|
1194
|
-
${(0,ee.setVariable)(
|
|
1208
|
+
${(0,ee.setVariable)(I.iconSize,"18px")};
|
|
1195
1209
|
}
|
|
1196
1210
|
|
|
1197
1211
|
.filter-label {
|
|
@@ -1280,19 +1294,19 @@
|
|
|
1280
1294
|
slot:not([name]) {
|
|
1281
1295
|
display: none;
|
|
1282
1296
|
}
|
|
1283
|
-
`];var te=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},
|
|
1297
|
+
`];var te=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},ws=class extends CustomEvent{constructor(e){super("change",{detail:e})}},U=class extends(0,le.withAnalytics)(le.FtLitElement,As){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 le.Debouncer(300),this.changeDebouncer=new le.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,le.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,le.flatDeep)(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(o=>o.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return $r.html`
|
|
1284
1298
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1285
1299
|
part="container">
|
|
1286
|
-
${!this.label&&!e?null
|
|
1300
|
+
${!this.label&&!e?null:$r.html`
|
|
1287
1301
|
|
|
1288
1302
|
<div class="ft-filter--header" part="header">
|
|
1289
1303
|
<div class="filter-label" id="id-group-${this.id}">
|
|
1290
|
-
<ft-typography class="ft-filter--label" variant="${
|
|
1304
|
+
<ft-typography class="ft-filter--label" variant="${de.overline}" part="label">
|
|
1291
1305
|
${this.label}
|
|
1292
1306
|
</ft-typography>
|
|
1293
1307
|
<slot name="label"></slot>
|
|
1294
1308
|
</div>
|
|
1295
|
-
${e&&!this.hideClearButton
|
|
1309
|
+
${e&&!this.hideClearButton?$r.html`
|
|
1296
1310
|
<ft-button icon="close"
|
|
1297
1311
|
aria-label="${this.clearButtonLabel+" "+this.label}"
|
|
1298
1312
|
dense
|
|
@@ -1320,8 +1334,8 @@
|
|
|
1320
1334
|
@slotchange=${this.updateOptionsFromSlot}
|
|
1321
1335
|
@option-change=${this.optionsChanged}></slot>
|
|
1322
1336
|
</div>
|
|
1323
|
-
`}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(i=>i.value));this.displayedLevels=this.displayedLevels.filter(i=>r.has(i)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var r,i,o,n,s,a;super.contentAvailableCallback(e),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),e.has("options")&&(this.updateScroll(),(r=this.levelsContainer)===null||r===void 0||r.scrollToIndex(this.displayedLevels.length)),e.has("slideIn")&&this.slideIn&&((i=this.levelsContainer)===null||i===void 0||i.next(),setTimeout(()=>{this.slideIn=void 0},300)),e.has("slideOut")&&this.slideOut&&((o=this.levelsContainer)===null||o===void 0||o.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(a=(s=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||s===void 0?void 0:s.hasHiddenValues)!==null&&a!==void 0?a:!1}renderLevels(){let e=this.flatOptions,r=e.filter(n=>n.selected),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,o=i<0?"ft-filter--level-center":"ft-filter--level-left";return
|
|
1324
|
-
${this.raiseSelectedOptions&&r.length>0
|
|
1337
|
+
`}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(i=>i.value));this.displayedLevels=this.displayedLevels.filter(i=>r.has(i)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var r,i,o,n,s,a;super.contentAvailableCallback(e),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),e.has("options")&&(this.updateScroll(),(r=this.levelsContainer)===null||r===void 0||r.scrollToIndex(this.displayedLevels.length)),e.has("slideIn")&&this.slideIn&&((i=this.levelsContainer)===null||i===void 0||i.next(),setTimeout(()=>{this.slideIn=void 0},300)),e.has("slideOut")&&this.slideOut&&((o=this.levelsContainer)===null||o===void 0||o.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(a=(s=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||s===void 0?void 0:s.hasHiddenValues)!==null&&a!==void 0?a:!1}renderLevels(){let e=this.flatOptions,r=e.filter(n=>n.selected),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,o=i<0?"ft-filter--level-center":"ft-filter--level-left";return $r.html`
|
|
1338
|
+
${this.raiseSelectedOptions&&r.length>0?$r.html`
|
|
1325
1339
|
<ft-filter-level
|
|
1326
1340
|
filterId="${this.id}"
|
|
1327
1341
|
?multivalued=${this.multivalued}
|
|
@@ -1342,7 +1356,7 @@
|
|
|
1342
1356
|
${this.renderLevel(o,this.options)}
|
|
1343
1357
|
${this.displayedLevels.map(n=>e.find(s=>s.value===n)).map((n,s)=>{var a;let l=n?.value===this.slideIn||n?.value===this.slideOut?"ft-filter--level-right":s===i?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(l,(a=n?.subOptions)!==null&&a!==void 0?a:[],n)})}
|
|
1344
1358
|
</ft-snap-scroll>
|
|
1345
|
-
`}renderLevel(e,r,i){return
|
|
1359
|
+
`}renderLevel(e,r,i){return $r.html`
|
|
1346
1360
|
<ft-filter-level
|
|
1347
1361
|
class="${e}"
|
|
1348
1362
|
filterId="${this.id}"
|
|
@@ -1364,21 +1378,21 @@
|
|
|
1364
1378
|
noValuesLabel="${this.noValuesLabel}"
|
|
1365
1379
|
.filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
|
|
1366
1380
|
></ft-filter-level>
|
|
1367
|
-
`}goBack(e){this.slideOut=e.detail.value,(0,
|
|
1381
|
+
`}goBack(e){this.slideOut=e.detail.value,(0,le.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,le.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,le.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(n=>n.value===e.detail.value);i.selected=!i.selected;let o=n=>{var s;n!==i&&(n.selected=!1),(s=n.subOptions)===null||s===void 0||s.forEach(o)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(o):this.options.forEach(o),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,le.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new ws(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)}};U.elementDefinitions={"ft-button":O,"ft-filter-level":se,"ft-snap-scroll":he,"ft-typography":G};U.styles=yu;te([(0,Z.property)({type:String})],U.prototype,"id",void 0);te([(0,Z.property)({type:String})],U.prototype,"label",void 0);te([(0,Z.property)({type:String})],U.prototype,"filterPlaceHolder",void 0);te([(0,Z.property)({type:String})],U.prototype,"clearButtonLabel",void 0);te([(0,Z.property)({type:String})],U.prototype,"moreValuesButtonLabel",void 0);te([(0,Z.property)({type:String})],U.prototype,"noValuesLabel",void 0);te([(0,le.jsonProperty)([])],U.prototype,"options",void 0);te([(0,Z.property)({type:Boolean})],U.prototype,"multivalued",void 0);te([(0,Z.property)({type:Boolean})],U.prototype,"disabled",void 0);te([(0,Z.property)({type:Boolean})],U.prototype,"raiseSelectedOptions",void 0);te([(0,Z.property)({type:Boolean})],U.prototype,"displayCount",void 0);te([(0,le.numberProperty)()],U.prototype,"displayedValuesLimit",void 0);te([(0,le.jsonProperty)(void 0)],U.prototype,"filteredOptionsNumberAriaNotification",void 0);te([(0,Z.property)({type:Boolean})],U.prototype,"hideClearButton",void 0);te([(0,Z.query)(".ft-filter--slot")],U.prototype,"slotElement",void 0);te([(0,Z.query)(".ft-filter--container")],U.prototype,"container",void 0);te([(0,Z.query)(".ft-filter--values")],U.prototype,"valuesContainer",void 0);te([(0,Z.query)(".ft-filter--levels")],U.prototype,"levelsContainer",void 0);te([(0,Z.state)()],U.prototype,"lastLevelHasHiddenvalues",void 0);te([(0,Z.query)(".ft-filter--filter input")],U.prototype,"filterInput",void 0);te([(0,Z.queryAll)(".ft-filter--levels ft-filter-level")],U.prototype,"levels",void 0);te([(0,Z.state)()],U.prototype,"withScroll",void 0);te([(0,Z.state)()],U.prototype,"filter",void 0);te([(0,Z.state)()],U.prototype,"slideIn",void 0);te([(0,Z.state)()],U.prototype,"slideOut",void 0);var so=c(m()),Dr=c(j()),bu=c(E()),ri=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},et=class extends so.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return bu.html`
|
|
1368
1382
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1369
|
-
`}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}))}};et.elementDefinitions={};ri([(0,
|
|
1383
|
+
`}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}))}};et.elementDefinitions={};ri([(0,Dr.property)({type:String})],et.prototype,"label",void 0);ri([(0,Dr.property)({type:Object,converter:t=>t})],et.prototype,"value",void 0);ri([(0,Dr.property)({type:Boolean,reflect:!0})],et.prototype,"selected",void 0);ri([(0,Dr.property)({type:Object})],et.prototype,"subOptions",void 0);ri([(0,so.jsonProperty)({})],et.prototype,"renderOption",void 0);ri([(0,Dr.query)(".ft-filter-option--slot")],et.prototype,"slotElement",void 0);var xu=c(m());var vu={"ft-filter":U,"ft-filter-option":et};(0,xu.customElements)(vu);var Cu=c(E()),ao=c(j()),wu=c(m());var Su=c(E());var Eu=Su.css`
|
|
1370
1384
|
.ft-accordion {
|
|
1371
1385
|
box-sizing: border-box;
|
|
1372
1386
|
}
|
|
1373
|
-
`;var Au=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n}
|
|
1387
|
+
`;var Au=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Dt=class extends wu.FtLitElement{constructor(){super(...arguments),this.multi=!1}render(){return Cu.html`
|
|
1374
1388
|
<div class="ft-accordion">
|
|
1375
1389
|
<slot @activated=${this.onChange}></slot>
|
|
1376
1390
|
</div>
|
|
1377
|
-
`}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}}
|
|
1391
|
+
`}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};Dt.elementDefinitions={};Dt.styles=Eu;Au([(0,ao.property)({type:Boolean})],Dt.prototype,"multi",void 0);Au([(0,ao.query)("slot")],Dt.prototype,"content",void 0);var ji=c(E()),Wi=c(j()),Ru=c(m());var _u=c(E()),Ir=c(m()),Pr={horizontalSpacing:Ir.FtCssVariableFactory.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:Ir.FtCssVariableFactory.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:Ir.FtCssVariableFactory.external(Ir.designSystemVariables.colorOutline,"Design system"),backgroundColor:Ir.FtCssVariableFactory.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},Ou=_u.css`
|
|
1378
1392
|
.ft-accordion-item {
|
|
1379
1393
|
display: flex;
|
|
1380
1394
|
flex-direction: column;
|
|
1381
|
-
background-color: ${
|
|
1395
|
+
background-color: ${Pr.backgroundColor};
|
|
1382
1396
|
}
|
|
1383
1397
|
|
|
1384
1398
|
.ft-accordion-item--toggle {
|
|
@@ -1388,8 +1402,8 @@
|
|
|
1388
1402
|
display: flex;
|
|
1389
1403
|
align-items: center;
|
|
1390
1404
|
cursor: pointer;
|
|
1391
|
-
padding: ${
|
|
1392
|
-
gap: calc(${
|
|
1405
|
+
padding: ${Pr.verticalSpacing} ${Pr.horizontalSpacing};
|
|
1406
|
+
gap: calc(${Pr.horizontalSpacing} / 2);
|
|
1393
1407
|
outline: none;
|
|
1394
1408
|
}
|
|
1395
1409
|
|
|
@@ -1414,13 +1428,13 @@
|
|
|
1414
1428
|
.ft-accordion-item--active .ft-accordion-item--content {
|
|
1415
1429
|
height: initial;
|
|
1416
1430
|
overflow: visible;
|
|
1417
|
-
padding: ${
|
|
1431
|
+
padding: ${Pr.verticalSpacing} ${Pr.horizontalSpacing};
|
|
1418
1432
|
}
|
|
1419
1433
|
|
|
1420
1434
|
.ft-accordion-item--separator {
|
|
1421
|
-
border-bottom: 1px solid ${
|
|
1435
|
+
border-bottom: 1px solid ${Pr.colorOutline};
|
|
1422
1436
|
}
|
|
1423
|
-
`;var
|
|
1437
|
+
`;var lo=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},dt=class extends Ru.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return ji.html`
|
|
1424
1438
|
<div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
|
|
1425
1439
|
<div class="ft-accordion-item--toggle"
|
|
1426
1440
|
part="toggle"
|
|
@@ -1450,7 +1464,7 @@
|
|
|
1450
1464
|
</div>
|
|
1451
1465
|
<div class="ft-accordion-item--separator" part="separator"></div>
|
|
1452
1466
|
</div>
|
|
1453
|
-
`}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)}};dt.elementDefinitions={"ft-ripple":
|
|
1467
|
+
`}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)}};dt.elementDefinitions={"ft-ripple":M,"ft-typography":G,"ft-icon":oe};dt.styles=Ou;lo([(0,Wi.property)()],dt.prototype,"icon",void 0);lo([(0,Wi.property)()],dt.prototype,"iconVariant",void 0);lo([(0,Wi.property)()],dt.prototype,"label",void 0);lo([(0,Wi.property)({type:Boolean,reflect:!0})],dt.prototype,"active",void 0);var ku=c(m());var Tu={"ft-accordion":Dt,"ft-accordion-item":dt};(0,ku.customElements)(Tu);var Mr=c(E()),Se=c(j()),Iu=c(nt()),ii=c(m());var Ki=c(E()),P=c(m());var Lu=P.FtCssVariableFactory.extend("--ft-chip-color","",P.designSystemVariables.colorOnSurface),_e={backgroundColor:P.FtCssVariableFactory.extend("--ft-chip-background-color","",P.designSystemVariables.colorSurface),color:Lu,fontSize:P.FtCssVariableFactory.extend("--ft-chip-font-size","",ue.fontSize),fontWeight:P.FtCssVariableFactory.extend("--ft-chip-font-weight","",ue.fontWeight),iconSize:P.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:P.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:P.FtCssVariableFactory.extend("--ft-chip-ripple-color","",Lu),horizontalPadding:P.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:P.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:P.FtCssVariableFactory.extend("--ft-chip-border-color","",P.designSystemVariables.colorOutline),opacityDisabled:P.FtCssVariableFactory.external(P.designSystemVariables.colorOpacityDisabled,"Design system")},$u=P.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",P.FtCssVariableFactory.extend("--ft-chip-color","",P.designSystemVariables.colorOnPrimary)),_s={backgroundColor:P.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",P.FtCssVariableFactory.extend("--ft-chip-background-color","",P.designSystemVariables.colorPrimary)),color:$u,rippleColor:P.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",$u)},Du={horizontalPadding:P.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:P.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Pu=[P.noTextSelect,Ki.css`
|
|
1454
1468
|
:host {
|
|
1455
1469
|
display: inline-block;
|
|
1456
1470
|
max-width: 100%;
|
|
@@ -1469,7 +1483,7 @@
|
|
|
1469
1483
|
--chip-internal-font-size: ${_e.fontSize};
|
|
1470
1484
|
--chip-internal-font-weight: ${_e.fontWeight};
|
|
1471
1485
|
--chip-internal-line-height: max(20px, calc(var(--chip-internal-font-size) + 2px));
|
|
1472
|
-
${(0,P.setVariable)(
|
|
1486
|
+
${(0,P.setVariable)(De.size,_e.iconSize)};
|
|
1473
1487
|
--chip-internal-vertical-padding: ${_e.verticalPadding};
|
|
1474
1488
|
--chip-internal-horizontal-padding: ${_e.horizontalPadding};
|
|
1475
1489
|
--chip-internal-icon-padding: 3px;
|
|
@@ -1477,8 +1491,8 @@
|
|
|
1477
1491
|
|
|
1478
1492
|
border: 1px solid ${_e.borderColor};
|
|
1479
1493
|
color: ${_e.color};
|
|
1480
|
-
${(0,P.setVariable)(
|
|
1481
|
-
border-radius: var(${(0,
|
|
1494
|
+
${(0,P.setVariable)(W.color,_e.rippleColor)};
|
|
1495
|
+
border-radius: var(${(0,Ki.unsafeCSS)(_e.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
|
|
1482
1496
|
padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
|
|
1483
1497
|
background-color: ${_e.backgroundColor};
|
|
1484
1498
|
line-height: var(--chip-internal-content-height);
|
|
@@ -1496,7 +1510,7 @@
|
|
|
1496
1510
|
}
|
|
1497
1511
|
|
|
1498
1512
|
.ft-chip--no-content {
|
|
1499
|
-
--chip-internal-horizontal-padding: ${_e.horizontalPadding.get(
|
|
1513
|
+
--chip-internal-horizontal-padding: ${_e.horizontalPadding.get(Ki.css`var(--chip-internal-vertical-padding)`)};
|
|
1500
1514
|
}
|
|
1501
1515
|
|
|
1502
1516
|
.ft-chip--disabled {
|
|
@@ -1509,9 +1523,9 @@
|
|
|
1509
1523
|
.ft-chip--highlighted {
|
|
1510
1524
|
border: none;
|
|
1511
1525
|
padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
|
|
1512
|
-
background-color: ${
|
|
1513
|
-
${(0,P.setVariable)(
|
|
1514
|
-
color: ${
|
|
1526
|
+
background-color: ${_s.backgroundColor};
|
|
1527
|
+
${(0,P.setVariable)(W.color,_s.rippleColor)};
|
|
1528
|
+
color: ${_s.color};
|
|
1515
1529
|
}
|
|
1516
1530
|
|
|
1517
1531
|
.ft-chip--clickable {
|
|
@@ -1542,9 +1556,9 @@
|
|
|
1542
1556
|
}
|
|
1543
1557
|
|
|
1544
1558
|
.ft-chip--icon-button {
|
|
1545
|
-
${(0,P.setVariable)(
|
|
1546
|
-
${(0,P.setVariable)(
|
|
1547
|
-
${(0,P.setVariable)(
|
|
1559
|
+
${(0,P.setVariable)(I.iconSize,_e.iconSize)};
|
|
1560
|
+
${(0,P.setVariable)(I.horizontalPadding,"var(--chip-internal-icon-padding)")};
|
|
1561
|
+
${(0,P.setVariable)(I.verticalPadding,"var(--chip-internal-icon-padding)")};
|
|
1548
1562
|
margin: calc((-1) * var(--chip-internal-icon-padding));
|
|
1549
1563
|
}
|
|
1550
1564
|
|
|
@@ -1552,9 +1566,9 @@
|
|
|
1552
1566
|
vertical-align: bottom;
|
|
1553
1567
|
display: block;
|
|
1554
1568
|
margin: 0 var(--chip-internal-horizontal-padding);
|
|
1555
|
-
${(0,P.setVariable)(
|
|
1556
|
-
${(0,P.setVariable)(
|
|
1557
|
-
${(0,P.setVariable)(
|
|
1569
|
+
${(0,P.setVariable)(ue.fontSize,"var(--chip-internal-font-size)")};
|
|
1570
|
+
${(0,P.setVariable)(ue.fontWeight,"var(--chip-internal-font-weight)")};
|
|
1571
|
+
${(0,P.setVariable)(ue.lineHeight,"var(--chip-internal-content-height)")};
|
|
1558
1572
|
}
|
|
1559
1573
|
|
|
1560
1574
|
.ft-chip--safari-fix .ft-chip--label {
|
|
@@ -1590,19 +1604,20 @@
|
|
|
1590
1604
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
1591
1605
|
order: -1;
|
|
1592
1606
|
}
|
|
1593
|
-
`];var
|
|
1607
|
+
`];var Le=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},co=class extends CustomEvent{constructor(){super("icon-click")}},ne=class extends ii.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.accessibleLabelOnIcon=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let r={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":ii.isSafari};return Mr.html`
|
|
1594
1608
|
<div class="${(0,Iu.classMap)(r)}"
|
|
1595
|
-
aria-label="${this.getLabel()}"
|
|
1609
|
+
aria-label="${this.labelOnIconOnly?Mr.nothing:this.getLabel()}"
|
|
1596
1610
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
1597
1611
|
@keyup=${this.onKeyUp}
|
|
1598
1612
|
part="chip">
|
|
1599
1613
|
<ft-ripple ?disabled=${!this.interactionsOnChip}></ft-ripple>
|
|
1600
|
-
<ft-typography variant="${(e=this.typographyVariant)!==null&&e!==void 0?e:"body2"}" element="span" class="ft-chip--label" part="label"
|
|
1614
|
+
<ft-typography variant="${(e=this.typographyVariant)!==null&&e!==void 0?e:"body2"}" element="span" class="ft-chip--label" part="label"
|
|
1615
|
+
aria-hidden="${this.labelOnIconOnly?"true":Mr.nothing}">
|
|
1601
1616
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
1602
1617
|
</ft-typography>
|
|
1603
1618
|
${this.internalIcon?this.renderIcon():null}
|
|
1604
1619
|
</div>
|
|
1605
|
-
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?
|
|
1620
|
+
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}get labelOnIconOnly(){return this.accessibleLabelOnIcon&&this.interactionsOnIcon}renderIcon(){return this.interactionsOnIcon?Mr.html`
|
|
1606
1621
|
<ft-button round
|
|
1607
1622
|
class="ft-chip--icon-button"
|
|
1608
1623
|
@click=${this.onIconClick}
|
|
@@ -1613,30 +1628,30 @@
|
|
|
1613
1628
|
part="icon-button"
|
|
1614
1629
|
?hideTooltip=${this.hideIconTooltip}
|
|
1615
1630
|
></ft-button>
|
|
1616
|
-
`:
|
|
1631
|
+
`:Mr.html`
|
|
1617
1632
|
<div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
|
|
1618
1633
|
<ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
|
|
1619
1634
|
</div>
|
|
1620
|
-
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new
|
|
1635
|
+
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new co))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new co))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,ii.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};ne.elementDefinitions={"ft-ripple":M,"ft-typography":G,"ft-icon":oe,"ft-button":O};ne.styles=Pu;Le([(0,Se.property)({type:Boolean})],ne.prototype,"highlighted",void 0);Le([(0,Se.property)({type:Boolean})],ne.prototype,"removable",void 0);Le([(0,Se.property)({type:Boolean})],ne.prototype,"disabled",void 0);Le([(0,Se.property)({type:Boolean})],ne.prototype,"clickable",void 0);Le([(0,Se.property)({type:Boolean})],ne.prototype,"iconClickable",void 0);Le([(0,Se.property)({type:Boolean})],ne.prototype,"dense",void 0);Le([(0,Se.property)({type:Boolean})],ne.prototype,"multiLine",void 0);Le([(0,Se.property)()],ne.prototype,"label",void 0);Le([(0,Se.property)()],ne.prototype,"iconLabel",void 0);Le([(0,Se.property)({type:Boolean})],ne.prototype,"hideIconTooltip",void 0);Le([(0,Se.property)({type:Boolean})],ne.prototype,"accessibleLabelOnIcon",void 0);Le([(0,Se.property)()],ne.prototype,"icon",void 0);Le([(0,Se.property)()],ne.prototype,"iconVariant",void 0);Le([(0,Se.property)({type:Boolean})],ne.prototype,"trailingIcon",void 0);Le([(0,Se.property)()],ne.prototype,"typographyVariant",void 0);Le([(0,Se.query)("ft-typography slot")],ne.prototype,"slottedContent",void 0);var Nu=c(m());var Mu={"ft-chip":ne};(0,Nu.customElements)(Mu);var oi=c(E()),me=c(j()),Yu=c(nt()),Zu=c(or());function qi(t,e,r){return t?e(t):r?.(t)}var ut=c(m());var uo=c(j());var Fu=c(E()),re=c(m());var B={fontSize:re.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:re.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:re.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:re.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:re.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:re.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:re.FtCssVariableFactory.extend("--ft-input-label-border-color","",re.designSystemVariables.colorOutline),textColor:re.FtCssVariableFactory.extend("--ft-input-label-text-color","",re.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:re.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",re.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:re.FtCssVariableFactory.extend("--ft-input-label-background-color","",re.designSystemVariables.colorSurface),borderRadius:re.FtCssVariableFactory.extend("--ft-input-label-border-radius","",re.designSystemVariables.borderRadiusS),colorError:re.FtCssVariableFactory.external(re.designSystemVariables.colorError,"Design system")},Bu=Fu.css`
|
|
1621
1636
|
.ft-input-label {
|
|
1622
1637
|
position: absolute;
|
|
1623
1638
|
inset: 0;
|
|
1624
1639
|
display: flex;
|
|
1625
|
-
background-color: ${
|
|
1626
|
-
border-radius: ${
|
|
1627
|
-
border-color: ${
|
|
1640
|
+
background-color: ${B.backgroundColor};
|
|
1641
|
+
border-radius: ${B.borderRadius} ${B.borderRadius} 0 0;
|
|
1642
|
+
border-color: ${B.borderColor};
|
|
1628
1643
|
border-bottom-width: 1px;
|
|
1629
1644
|
border-bottom-style: solid;
|
|
1630
1645
|
}
|
|
1631
1646
|
|
|
1632
1647
|
.ft-input-label--outlined {
|
|
1633
|
-
border-radius: ${
|
|
1648
|
+
border-radius: ${B.borderRadius};
|
|
1634
1649
|
border-width: 1px;
|
|
1635
1650
|
border-style: solid;
|
|
1636
1651
|
}
|
|
1637
1652
|
|
|
1638
1653
|
.ft-input-label.ft-input-label--in-error {
|
|
1639
|
-
border-color: ${
|
|
1654
|
+
border-color: ${B.colorError}
|
|
1640
1655
|
}
|
|
1641
1656
|
|
|
1642
1657
|
.ft-input-label:before,
|
|
@@ -1646,7 +1661,7 @@
|
|
|
1646
1661
|
}
|
|
1647
1662
|
|
|
1648
1663
|
.ft-input-label:before {
|
|
1649
|
-
width: calc(${
|
|
1664
|
+
width: calc(${B.horizontalSpacing} - 4px);
|
|
1650
1665
|
flex-shrink: 0;
|
|
1651
1666
|
}
|
|
1652
1667
|
|
|
@@ -1659,20 +1674,20 @@
|
|
|
1659
1674
|
display: flex;
|
|
1660
1675
|
flex-shrink: 1;
|
|
1661
1676
|
position: relative;
|
|
1662
|
-
color: ${
|
|
1677
|
+
color: ${B.textColor};
|
|
1663
1678
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
1664
|
-
max-width: calc(${
|
|
1679
|
+
max-width: calc(${B.labelMaxWidth} - 2 * (${B.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
1665
1680
|
text-overflow: ellipsis;
|
|
1666
|
-
${(0,re.setVariable)(Be.fontSize,
|
|
1667
|
-
${(0,re.setVariable)(Be.lineHeight,
|
|
1681
|
+
${(0,re.setVariable)(Be.fontSize,B.fontSize)};
|
|
1682
|
+
${(0,re.setVariable)(Be.lineHeight,B.fontSize)};
|
|
1668
1683
|
}
|
|
1669
1684
|
|
|
1670
1685
|
.ft-input-label--in-error .ft-input-label--text {
|
|
1671
|
-
color: ${
|
|
1686
|
+
color: ${B.colorError}
|
|
1672
1687
|
}
|
|
1673
1688
|
|
|
1674
1689
|
.ft-input-label--disabled .ft-input-label--text {
|
|
1675
|
-
color: ${
|
|
1690
|
+
color: ${B.disabledTextColor};
|
|
1676
1691
|
}
|
|
1677
1692
|
|
|
1678
1693
|
.ft-input-label--hidden-text {
|
|
@@ -1689,38 +1704,38 @@
|
|
|
1689
1704
|
overflow: hidden;
|
|
1690
1705
|
white-space: nowrap;
|
|
1691
1706
|
text-overflow: ellipsis;
|
|
1692
|
-
padding: ${
|
|
1693
|
-
margin: calc(${
|
|
1707
|
+
padding: ${B.verticalSpacing} 4px;
|
|
1708
|
+
margin: calc(${B.verticalSpacing} * -1) 0;
|
|
1694
1709
|
max-width: 100%;
|
|
1695
1710
|
box-sizing: border-box;
|
|
1696
1711
|
}
|
|
1697
1712
|
|
|
1698
1713
|
.ft-input-label--raised .ft-input-label--text {
|
|
1699
|
-
${(0,re.setVariable)(Be.fontSize,
|
|
1700
|
-
${(0,re.setVariable)(Be.lineHeight,
|
|
1714
|
+
${(0,re.setVariable)(Be.fontSize,B.raisedFontSize)};
|
|
1715
|
+
${(0,re.setVariable)(Be.lineHeight,B.raisedFontSize)};
|
|
1701
1716
|
}
|
|
1702
1717
|
|
|
1703
1718
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
1704
|
-
top: ${
|
|
1719
|
+
top: ${B.verticalSpacing};
|
|
1705
1720
|
}
|
|
1706
1721
|
|
|
1707
1722
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
1708
1723
|
padding: 2px 4px;
|
|
1709
|
-
z-index: ${
|
|
1710
|
-
background-color: ${
|
|
1711
|
-
border-radius: ${
|
|
1724
|
+
z-index: ${B.raisedZIndex};
|
|
1725
|
+
background-color: ${B.backgroundColor};
|
|
1726
|
+
border-radius: ${B.borderRadius};
|
|
1712
1727
|
top: calc((${Be.lineHeight} / -2) + 2px);
|
|
1713
1728
|
}
|
|
1714
|
-
`;var
|
|
1729
|
+
`;var Os=c(E()),Rs=c(j());var zu=c(nt()),Vu=c(m()),Uu=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Nr=class extends Vu.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return Os.html`
|
|
1715
1730
|
<div class="${(0,zu.classMap)(this.inputLabelClasses)}">
|
|
1716
|
-
${
|
|
1731
|
+
${qi(this.text,()=>Os.html`
|
|
1717
1732
|
<div class="ft-input-label--text ft-typography--caption">
|
|
1718
1733
|
<label class="ft-input-label--floating-text">${this.text}</label>
|
|
1719
1734
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
1720
1735
|
</div>
|
|
1721
1736
|
`)}
|
|
1722
1737
|
</div>
|
|
1723
|
-
`}};Nr.elementDefinitions={};Uu([(0,
|
|
1738
|
+
`}};Nr.elementDefinitions={};Uu([(0,Rs.property)({type:String})],Nr.prototype,"text",void 0);Uu([(0,Rs.property)({type:Boolean})],Nr.prototype,"raised",void 0);var Ts=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Et=class extends Nr{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}}};Et.elementDefinitions={};Et.styles=[jt,Bu];Ts([(0,uo.property)({type:Boolean})],Et.prototype,"outlined",void 0);Ts([(0,uo.property)({type:Boolean})],Et.prototype,"error",void 0);Ts([(0,uo.property)({type:Boolean})],Et.prototype,"disabled",void 0);var ju=c(m());var Hu={"ft-input-label":Et};(0,ju.customElements)(Hu);var Wu=c(E()),D=c(m());var $={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")},Ku=Wu.css`
|
|
1724
1739
|
*:focus {
|
|
1725
1740
|
outline: none;
|
|
1726
1741
|
}
|
|
@@ -1735,7 +1750,7 @@
|
|
|
1735
1750
|
.ft-select--main-panel {
|
|
1736
1751
|
position: relative;
|
|
1737
1752
|
display: flex;
|
|
1738
|
-
height: calc(4 * ${
|
|
1753
|
+
height: calc(4 * ${$.verticalSpacing} + ${$.labelSize} + ${$.selectedOptionSize});
|
|
1739
1754
|
}
|
|
1740
1755
|
|
|
1741
1756
|
.ft-select--input-panel {
|
|
@@ -1744,17 +1759,17 @@
|
|
|
1744
1759
|
display: flex;
|
|
1745
1760
|
align-items: center;
|
|
1746
1761
|
overflow: hidden;
|
|
1747
|
-
padding-left: ${
|
|
1748
|
-
padding-right: ${
|
|
1762
|
+
padding-left: ${$.horizontalSpacing};
|
|
1763
|
+
padding-right: ${$.horizontalSpacing};
|
|
1749
1764
|
gap: 8px;
|
|
1750
|
-
color: ${
|
|
1751
|
-
${(0
|
|
1765
|
+
color: ${$.selectedOptionColor};
|
|
1766
|
+
${(0,D.setVariable)(W.color,$.selectedOptionColor)};
|
|
1752
1767
|
}
|
|
1753
1768
|
|
|
1754
1769
|
.ft-select--input-panel,
|
|
1755
1770
|
.ft-select--options {
|
|
1756
|
-
${(0
|
|
1757
|
-
${(0
|
|
1771
|
+
${(0,D.setVariable)(W.opacityContentOnSurfaceHover,"0.08")};
|
|
1772
|
+
${(0,D.setVariable)(W.opacityContentOnSurfacePressed,"0.04")};
|
|
1758
1773
|
}
|
|
1759
1774
|
|
|
1760
1775
|
.ft-select--input-panel > *:not(ft-ripple) {
|
|
@@ -1763,7 +1778,7 @@
|
|
|
1763
1778
|
|
|
1764
1779
|
.ft-select--disabled .ft-select--input-panel,
|
|
1765
1780
|
.ft-select--disabled .ft-select--options {
|
|
1766
|
-
color: ${
|
|
1781
|
+
color: ${$.colorOnSurfaceDisabled};
|
|
1767
1782
|
}
|
|
1768
1783
|
|
|
1769
1784
|
.ft-select:not(.ft-select--disabled) .ft-select--input-panel,
|
|
@@ -1772,21 +1787,21 @@
|
|
|
1772
1787
|
}
|
|
1773
1788
|
|
|
1774
1789
|
ft-input-label {
|
|
1775
|
-
${(0
|
|
1776
|
-
${(0
|
|
1777
|
-
${(0
|
|
1778
|
-
${(0
|
|
1779
|
-
${(0
|
|
1780
|
-
${(0
|
|
1790
|
+
${(0,D.setVariable)(B.fontSize,$.selectedOptionSize)};
|
|
1791
|
+
${(0,D.setVariable)(B.raisedFontSize,$.labelSize)};
|
|
1792
|
+
${(0,D.setVariable)(B.verticalSpacing,$.verticalSpacing)};
|
|
1793
|
+
${(0,D.setVariable)(B.horizontalSpacing,$.horizontalSpacing)};
|
|
1794
|
+
${(0,D.setVariable)(B.backgroundColor,$.backgroundColor)};
|
|
1795
|
+
${(0,D.setVariable)(B.labelMaxWidth,`calc(100% - ${De.size} - 8px)`)};
|
|
1781
1796
|
}
|
|
1782
1797
|
|
|
1783
1798
|
.ft-select:not(.ft-select--disabled):focus-within ft-icon {
|
|
1784
|
-
color: ${
|
|
1799
|
+
color: ${$.colorPrimary};
|
|
1785
1800
|
}
|
|
1786
1801
|
|
|
1787
1802
|
.ft-select:not(.ft-select--disabled):focus-within ft-input-label {
|
|
1788
|
-
${(0
|
|
1789
|
-
${(0
|
|
1803
|
+
${(0,D.setVariable)(B.borderColor,$.colorPrimary)};
|
|
1804
|
+
${(0,D.setVariable)(B.textColor,$.colorPrimary)};
|
|
1790
1805
|
}
|
|
1791
1806
|
|
|
1792
1807
|
.ft-select--selected-option {
|
|
@@ -1796,12 +1811,12 @@
|
|
|
1796
1811
|
overflow: hidden;
|
|
1797
1812
|
white-space: nowrap;
|
|
1798
1813
|
text-overflow: ellipsis;
|
|
1799
|
-
${(0
|
|
1800
|
-
${(0
|
|
1814
|
+
${(0,D.setVariable)(wt.fontSize,$.selectedOptionSize)};
|
|
1815
|
+
${(0,D.setVariable)(wt.lineHeight,$.selectedOptionSize)};
|
|
1801
1816
|
}
|
|
1802
1817
|
|
|
1803
1818
|
.ft-select--in-error .ft-select--selected-option {
|
|
1804
|
-
color: ${
|
|
1819
|
+
color: ${$.colorError};
|
|
1805
1820
|
}
|
|
1806
1821
|
|
|
1807
1822
|
ft-icon {
|
|
@@ -1811,26 +1826,26 @@
|
|
|
1811
1826
|
|
|
1812
1827
|
|
|
1813
1828
|
.ft-select--filled .ft-select--input-panel {
|
|
1814
|
-
border-radius: ${
|
|
1829
|
+
border-radius: ${$.borderRadiusS} ${$.borderRadiusS} 0 0;
|
|
1815
1830
|
}
|
|
1816
1831
|
|
|
1817
1832
|
.ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
|
|
1818
1833
|
align-self: stretch;
|
|
1819
|
-
padding-top: calc(${
|
|
1834
|
+
padding-top: calc(${$.labelSize} + 2 * ${$.verticalSpacing});
|
|
1820
1835
|
}
|
|
1821
1836
|
|
|
1822
1837
|
.ft-select--outlined .ft-select--input-panel {
|
|
1823
|
-
border-radius: ${
|
|
1838
|
+
border-radius: ${$.borderRadiusS};
|
|
1824
1839
|
}
|
|
1825
1840
|
|
|
1826
1841
|
.ft-select--options {
|
|
1827
1842
|
display: none;
|
|
1828
1843
|
position: absolute;
|
|
1829
1844
|
top: 100%;
|
|
1830
|
-
color: ${
|
|
1831
|
-
background: ${
|
|
1832
|
-
z-index: ${
|
|
1833
|
-
box-shadow: ${
|
|
1845
|
+
color: ${$.optionsColor};
|
|
1846
|
+
background: ${$.backgroundColor};
|
|
1847
|
+
z-index: ${$.optionsZIndex};
|
|
1848
|
+
box-shadow: ${$.elevation02};
|
|
1834
1849
|
width: max-content;
|
|
1835
1850
|
}
|
|
1836
1851
|
|
|
@@ -1840,26 +1855,26 @@
|
|
|
1840
1855
|
|
|
1841
1856
|
.ft-select--options-displayed .ft-select--options {
|
|
1842
1857
|
display: block;
|
|
1843
|
-
max-height: ${
|
|
1858
|
+
max-height: ${$.optionsHeight};
|
|
1844
1859
|
overflow-y: auto;
|
|
1845
1860
|
}
|
|
1846
1861
|
|
|
1847
1862
|
.ft-select--helper-text {
|
|
1848
|
-
padding: 0 ${
|
|
1849
|
-
color: ${
|
|
1863
|
+
padding: 0 ${$.horizontalSpacing};
|
|
1864
|
+
color: ${$.helperColor};
|
|
1850
1865
|
}
|
|
1851
1866
|
|
|
1852
1867
|
.ft-select--in-error .ft-select--helper-text {
|
|
1853
|
-
color: ${
|
|
1868
|
+
color: ${$.colorError};
|
|
1854
1869
|
}
|
|
1855
1870
|
|
|
1856
1871
|
.ft-select:not(.ft-select--has-option-selected) .ft-select--selected-option {
|
|
1857
1872
|
opacity: 0;
|
|
1858
1873
|
}
|
|
1859
|
-
`;var
|
|
1874
|
+
`;var po=c(m());var ni=c(E()),Xu=c(nt()),ir=c(j());var ks=c(m());var qu=c(E()),Gu=qu.css`
|
|
1860
1875
|
.ft-select--option {
|
|
1861
|
-
${(0,
|
|
1862
|
-
${(0,
|
|
1876
|
+
${(0,ks.setVariable)(W.opacityContentOnSurfaceHover,"0.08")};
|
|
1877
|
+
${(0,ks.setVariable)(W.opacityContentOnSurfacePressed,"0.04")};
|
|
1863
1878
|
}
|
|
1864
1879
|
|
|
1865
1880
|
.ft-select--option > *:not(ft-ripple) {
|
|
@@ -1868,14 +1883,14 @@
|
|
|
1868
1883
|
|
|
1869
1884
|
.ft-select--option {
|
|
1870
1885
|
position: relative;
|
|
1871
|
-
padding: 4px ${
|
|
1886
|
+
padding: 4px ${$.horizontalSpacing};
|
|
1872
1887
|
min-height: 32px;
|
|
1873
1888
|
display: flex;
|
|
1874
1889
|
align-items: center;
|
|
1875
1890
|
}
|
|
1876
1891
|
|
|
1877
1892
|
.ft-select--option:hover {
|
|
1878
|
-
border-left: 2px ${
|
|
1893
|
+
border-left: 2px ${$.colorPrimary} solid;
|
|
1879
1894
|
}
|
|
1880
1895
|
|
|
1881
1896
|
.ft-select--option span {
|
|
@@ -1883,7 +1898,7 @@
|
|
|
1883
1898
|
overflow: hidden;
|
|
1884
1899
|
}
|
|
1885
1900
|
|
|
1886
|
-
`;var Gi=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n}
|
|
1901
|
+
`;var Gi=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},$e=class extends po.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 ni.html`
|
|
1887
1902
|
<div class="${(0,Xu.classMap)(i)}"
|
|
1888
1903
|
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,"")}"
|
|
1889
1904
|
tabindex="0"
|
|
@@ -1895,7 +1910,7 @@
|
|
|
1895
1910
|
</slot>
|
|
1896
1911
|
${this.isSlotEmpty?ni.html`<span>${this.label}</span>`:ni.html``}
|
|
1897
1912
|
</div>
|
|
1898
|
-
`}onSlotChange(){this.isSlotEmpty=(0,
|
|
1913
|
+
`}onSlotChange(){this.isSlotEmpty=(0,po.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}))}};$e.elementDefinitions={"ft-ripple":M};$e.shadowRootOptions={...ni.LitElement.shadowRootOptions,delegatesFocus:!0};$e.styles=[Gu,zr];Gi([(0,ir.property)({type:String})],$e.prototype,"label",void 0);Gi([(0,ir.property)({type:Object,converter:t=>t})],$e.prototype,"value",void 0);Gi([(0,ir.property)({type:Boolean,reflect:!0})],$e.prototype,"selected",void 0);Gi([(0,ir.query)("slot")],$e.prototype,"slotElement",void 0);Gi([(0,ir.state)()],$e.prototype,"isSlotEmpty",void 0);var Oe=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n};var Q=class t extends ut.FtLitElement{constructor(){super(...arguments),this.label="",this.ariaLabel=null,this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.currentSearch="",this.lastSearchInputDate=new Date("01/01/1970"),this.isSlotEmpty=!0,this.hideOptions=e=>this.optionsDisplayed=this.optionsDisplayed&&e.composedPath().includes(this.container)}get firstOption(){return this.optionsList[0]}get optionsList(){let e=[...this.querySelectorAll("ft-select-option")];return e.length>0?e:[...this.shadowRoot.querySelectorAll("ft-select-option")]}get focusedOption(){return this.optionsList.find(e=>e.matches(":focus-within"))}get selectedOptionElement(){return this.optionsList.find(e=>e.selected)}get lastOption(){return(0,ut.last)(this.optionsList)}render(){var e,r,i,o,n;let s=this.hasOptionsMenuOpen,a=this.disabled||!this.hasOptions,l=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((o=(r=this.selectedOption)===null||r===void 0?void 0:r.label)!==null&&o!==void 0?o:"").length>0,d={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":a,"ft-select--options-displayed":s,"ft-select--has-option-selected":l,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return oi.html`
|
|
1899
1914
|
<div class="${(0,Yu.classMap)(d)}" part="container">
|
|
1900
1915
|
<div class="ft-select--main-panel" part="main-panel">
|
|
1901
1916
|
<ft-input-label text="${this.label}"
|
|
@@ -1912,14 +1927,14 @@
|
|
|
1912
1927
|
@click=${()=>{this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=this.optionsDisplayed}}
|
|
1913
1928
|
@keydown=${this.onMainPanelKeyDown}
|
|
1914
1929
|
aria-label="${Qt(this.ariaLabel)}"
|
|
1915
|
-
aria-labelledby="${
|
|
1930
|
+
aria-labelledby="${qi(!this.ariaLabel,()=>"label")}"
|
|
1916
1931
|
aria-haspopup="listbox"
|
|
1917
1932
|
aria-expanded="${s}"
|
|
1918
1933
|
aria-activedescendant="${Qt(this.getOptionId(this.selectedOption))}"
|
|
1919
1934
|
role="combobox">
|
|
1920
1935
|
<ft-ripple ?disabled=${a} ?activated=${!this.outlined}></ft-ripple>
|
|
1921
1936
|
<slot name="input-value">
|
|
1922
|
-
<ft-typography variant="${
|
|
1937
|
+
<ft-typography variant="${de.body1}"
|
|
1923
1938
|
aria-hidden="${l?"false":"true"}"
|
|
1924
1939
|
class="ft-select--selected-option">
|
|
1925
1940
|
${(n=(i=this.selectedOption)===null||i===void 0?void 0:i.label)!==null&&n!==void 0?n:this.label}
|
|
@@ -1936,12 +1951,12 @@
|
|
|
1936
1951
|
@option-change=${this.updateOptionsFromSlot}
|
|
1937
1952
|
>
|
|
1938
1953
|
</slot>
|
|
1939
|
-
${
|
|
1954
|
+
${qi(this.isSlotEmpty,()=>(0,Zu.repeat)(this.options,u=>u.value,u=>this.renderOption(u)))}
|
|
1940
1955
|
</div>
|
|
1941
1956
|
</div>
|
|
1942
1957
|
<slot name="helper" part="helper">
|
|
1943
1958
|
${this.helper?oi.html`
|
|
1944
|
-
<ft-typography class="ft-select--helper-text" variant="${
|
|
1959
|
+
<ft-typography class="ft-select--helper-text" variant="${de.caption}">${this.helper}
|
|
1945
1960
|
</ft-typography>`:oi.nothing}
|
|
1946
1961
|
</slot>
|
|
1947
1962
|
</div>
|
|
@@ -1951,34 +1966,34 @@
|
|
|
1951
1966
|
label="${e.label}"
|
|
1952
1967
|
.value=${e.value}
|
|
1953
1968
|
></ft-select-option>
|
|
1954
|
-
`}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((r=(i=this.selectedOptionElement)!==null&&i!==void 0?i:this.firstOption)===null||r===void 0||r.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&(this.optionsDisplayed?document.addEventListener("click",this.hideOptions):document.removeEventListener("click",this.hideOptions)),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let o=["bottom","top"];(0,ut.computeOffsetAutoPosition)(this.mainPanel,this.optionsMenu,"bottom",o,"fixed"
|
|
1969
|
+
`}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((r=(i=this.selectedOptionElement)!==null&&i!==void 0?i:this.firstOption)===null||r===void 0||r.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&(this.optionsDisplayed?document.addEventListener("click",this.hideOptions):document.removeEventListener("click",this.hideOptions)),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let o=["bottom","top"];(0,ut.computeOffsetAutoPosition)(this.mainPanel,this.optionsMenu,"bottom",o,"fixed",$.optionsHeight,0).then(({x:n,y:s})=>{this.optionsMenu.style.left=`${n}px`,this.optionsMenu.style.top=`${s}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var r;e.stopPropagation(),this.isSlotEmpty=(0,ut.isSlotEmptyOrWithoutContent)(this.optionsSlot);let i=(r=this.optionsSlot)===null||r===void 0?void 0:r.assignedElements().map(o=>o);i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(e){switch(e.key===" "&&(e.preventDefault(),e.stopPropagation()),e.key){case" ":case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var r,i;let o,n=this.focusedOption?this.optionsList.indexOf(this.focusedOption):0;switch(e.key){case" ":case"Enter":e.preventDefault(),e.stopPropagation(),this.onSelectOption(e),this.optionsDisplayed=!1,(r=this.mainPanel)===null||r===void 0||r.focus();break;case"Escape":this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),o=this.optionsList[(n-1+this.optionsList.length)%this.optionsList.length];break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),o=this.optionsList[(n+1)%this.optionsList.length];break;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(o=this.handleAlphanumericPress(e.key));break}o?.focus()}isKeyAlphanumeric(e){let r=e.charCodeAt(0);return r>47&&r<58||r>64&&r<91||r>96&&r<123}handleAlphanumericPress(e){let r=new Date;r.getTime()-this.lastSearchInputDate.getTime()>t.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let i=this.options.find(o=>{var n;return((n=o.label)===null||n===void 0?void 0:n.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});return this.lastSearchInputDate=r,i&&this.optionsList.find(o=>o.value===i.value)}getOptionId(e){if(!e)return;let r=this.options.findIndex(i=>(0,ut.deepEqual)(i.value,e.value));if(r!==-1)return`option-${r}`}onSelectOption(e){e.stopPropagation(),this.setValue(e.target.value)}setValue(e,r=!0){let i=this.options.find(o=>(0,ut.deepEqual)(o.value,e));i&&this.selectOption(i,r)}selectOption(e,r=!0){var i,o;if(!(0,ut.deepEqual)((i=this.selectedOption)===null||i===void 0?void 0:i.value,e?.value)){this.selectedOption=e;for(let n of this.options)n.selected=n===e;r&&this.dispatchEvent(new CustomEvent("change",{detail:(o=this.selectedOption)===null||o===void 0?void 0:o.value}))}this.optionsDisplayed=!1}};Q.elementDefinitions={"ft-input-label":Et,"ft-typography":G,"ft-ripple":M,"ft-icon":oe,"ft-select-option":$e};Q.searchTimeoutMilliseconds=2e3;Q.styles=[jt,Ku];Oe([(0,me.property)({type:String})],Q.prototype,"label",void 0);Oe([(0,me.property)({type:String})],Q.prototype,"ariaLabel",void 0);Oe([(0,me.property)({type:String})],Q.prototype,"helper",void 0);Oe([(0,me.property)({type:Boolean})],Q.prototype,"outlined",void 0);Oe([(0,me.property)({type:Boolean})],Q.prototype,"disabled",void 0);Oe([(0,me.property)({type:Boolean})],Q.prototype,"error",void 0);Oe([(0,me.property)({type:Boolean})],Q.prototype,"fixedMenuPosition",void 0);Oe([(0,me.property)({type:Array})],Q.prototype,"options",void 0);Oe([(0,me.state)()],Q.prototype,"selectedOption",void 0);Oe([(0,me.state)()],Q.prototype,"optionsDisplayed",void 0);Oe([(0,me.state)()],Q.prototype,"focusOptions",void 0);Oe([(0,me.state)()],Q.prototype,"currentSearch",void 0);Oe([(0,me.state)()],Q.prototype,"lastSearchInputDate",void 0);Oe([(0,me.query)(".ft-select")],Q.prototype,"container",void 0);Oe([(0,me.query)(".ft-select--options")],Q.prototype,"optionsMenu",void 0);Oe([(0,me.query)(".ft-select--input-panel")],Q.prototype,"mainPanel",void 0);Oe([(0,me.query)("slot:not([name])")],Q.prototype,"optionsSlot",void 0);var Ju=c(m());var Qu={"ft-select":Q,"ft-select-option":$e};(0,Ju.customElements)(Qu);var k=c(m()),Ls=c(E());var ep=c(E()),At=c(m()),Re={display:At.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:At.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:At.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:At.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:At.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:At.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:At.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:At.FtCssVariableFactory.external(At.designSystemVariables.borderRadiusM,"Design system")},tp=ep.css`
|
|
1955
1970
|
:host {
|
|
1956
|
-
width: ${
|
|
1957
|
-
height: ${
|
|
1958
|
-
display: ${
|
|
1971
|
+
width: ${Re.width};
|
|
1972
|
+
height: ${Re.height};
|
|
1973
|
+
display: ${Re.display};
|
|
1959
1974
|
overflow: hidden;
|
|
1960
|
-
border-radius: ${
|
|
1975
|
+
border-radius: ${Re.borderRadiusM};
|
|
1961
1976
|
background: linear-gradient(
|
|
1962
1977
|
90deg,
|
|
1963
1978
|
transparent,
|
|
1964
|
-
${
|
|
1965
|
-
${
|
|
1966
|
-
transparent ${
|
|
1967
|
-
), ${
|
|
1979
|
+
${Re.glareColor} calc(0.45 * ${Re.glareWidth}),
|
|
1980
|
+
${Re.glareColor} calc(0.55 * ${Re.glareWidth}),
|
|
1981
|
+
transparent ${Re.glareWidth}
|
|
1982
|
+
), ${Re.backgroundColor};
|
|
1968
1983
|
background-repeat: repeat-y;
|
|
1969
1984
|
background-size: 100vw 100vh;
|
|
1970
1985
|
background-attachment: fixed;
|
|
1971
|
-
background-position: calc(${
|
|
1972
|
-
animation: shine ${
|
|
1986
|
+
background-position: calc(${Re.glareWidth} * -1) 0;
|
|
1987
|
+
animation: shine ${Re.animationDuration} infinite;
|
|
1973
1988
|
animation-timing-function: linear;
|
|
1974
1989
|
}
|
|
1975
1990
|
|
|
1976
1991
|
@keyframes shine {
|
|
1977
1992
|
to {
|
|
1978
|
-
background-position: calc(100vw + ${
|
|
1993
|
+
background-position: calc(100vw + ${Re.glareWidth}) 0, calc(${Re.glareWidth} * -1) 0;
|
|
1979
1994
|
}
|
|
1980
1995
|
}
|
|
1981
|
-
`;var
|
|
1996
|
+
`;var C={height:k.FtCssVariableFactory.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:k.FtCssVariableFactory.extend("--ft-search-bar-border-radius","",k.designSystemVariables.borderRadiusS),mobileOpenPosition:k.FtCssVariableFactory.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:k.FtCssVariableFactory.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:k.FtCssVariableFactory.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:k.FtCssVariableFactory.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:k.FtCssVariableFactory.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:k.FtCssVariableFactory.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:k.FtCssVariableFactory.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:k.FtCssVariableFactory.external(k.designSystemVariables.colorSurface,"Design system"),colorOnSurface:k.FtCssVariableFactory.external(k.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:k.FtCssVariableFactory.external(k.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:k.FtCssVariableFactory.external(k.designSystemVariables.colorOutline,"Design system"),colorPrimary:k.FtCssVariableFactory.external(k.designSystemVariables.colorPrimary,"Design system"),elevation02:k.FtCssVariableFactory.external(k.designSystemVariables.elevation02,"Design system"),buttonColor:k.FtCssVariableFactory.external(I.color,"Button"),buttonRippleColor:k.FtCssVariableFactory.external(I.rippleColor,"Button"),activeItemBorderColor:k.FtCssVariableFactory.extend("--ft-search-bar-active-border-color","",k.designSystemVariables.colorPrimary)},rp=Ls.css`
|
|
1982
1997
|
* {
|
|
1983
1998
|
box-sizing: border-box;
|
|
1984
1999
|
}
|
|
@@ -1987,7 +2002,7 @@
|
|
|
1987
2002
|
display: flex;
|
|
1988
2003
|
flex-direction: column;
|
|
1989
2004
|
gap: 8px;
|
|
1990
|
-
color: ${
|
|
2005
|
+
color: ${C.colorOnSurface};
|
|
1991
2006
|
outline: none;
|
|
1992
2007
|
}
|
|
1993
2008
|
|
|
@@ -1996,21 +2011,21 @@
|
|
|
1996
2011
|
}
|
|
1997
2012
|
|
|
1998
2013
|
.ft-search-bar--mobile-menu-open {
|
|
1999
|
-
position: ${
|
|
2000
|
-
top: ${
|
|
2001
|
-
bottom: ${
|
|
2002
|
-
left: ${
|
|
2003
|
-
right: ${
|
|
2004
|
-
z-index: ${
|
|
2014
|
+
position: ${C.mobileOpenPosition};
|
|
2015
|
+
top: ${C.mobileOpenTop};
|
|
2016
|
+
bottom: ${C.mobileOpenBottom};
|
|
2017
|
+
left: ${C.mobileOpenLeft};
|
|
2018
|
+
right: ${C.mobileOpenRight};
|
|
2019
|
+
z-index: ${C.floatingZIndex};
|
|
2005
2020
|
padding: 16px;
|
|
2006
2021
|
}
|
|
2007
2022
|
|
|
2008
2023
|
.ft-search-bar--mobile-menu-open:not(.ft-search-bar--forced-open) {
|
|
2009
|
-
background: ${
|
|
2024
|
+
background: ${C.colorSurface};
|
|
2010
2025
|
}
|
|
2011
2026
|
|
|
2012
2027
|
.ft-search-bar--mobile-menu-open.ft-search-bar--forced-open {
|
|
2013
|
-
position: ${
|
|
2028
|
+
position: ${C.mobileOpenPosition.get("static")};
|
|
2014
2029
|
}
|
|
2015
2030
|
|
|
2016
2031
|
.ft-search-bar {
|
|
@@ -2018,20 +2033,20 @@
|
|
|
2018
2033
|
display: flex;
|
|
2019
2034
|
flex-direction: row;
|
|
2020
2035
|
align-items: center;
|
|
2021
|
-
height: ${
|
|
2036
|
+
height: ${C.height};
|
|
2022
2037
|
|
|
2023
|
-
background: ${
|
|
2024
|
-
border: 1px solid ${
|
|
2025
|
-
border-radius: ${
|
|
2038
|
+
background: ${C.colorSurface};
|
|
2039
|
+
border: 1px solid ${C.colorOutline};
|
|
2040
|
+
border-radius: ${C.borderRadius};
|
|
2026
2041
|
}
|
|
2027
2042
|
|
|
2028
2043
|
.ft-search-bar--skeleton {
|
|
2029
|
-
${(0,
|
|
2030
|
-
${(0,
|
|
2044
|
+
${(0,k.setVariable)(Re.height,C.height)};
|
|
2045
|
+
${(0,k.setVariable)(Re.borderRadiusM,C.borderRadius)};
|
|
2031
2046
|
}
|
|
2032
2047
|
|
|
2033
2048
|
.ft-search-bar--floating-panel-open .ft-search-bar {
|
|
2034
|
-
border-radius: ${
|
|
2049
|
+
border-radius: ${C.borderRadius} ${C.borderRadius} 0 0;
|
|
2035
2050
|
}
|
|
2036
2051
|
|
|
2037
2052
|
.ft-search-bar--input-container {
|
|
@@ -2049,7 +2064,7 @@
|
|
|
2049
2064
|
align-self: stretch;
|
|
2050
2065
|
display: grid;
|
|
2051
2066
|
padding: 0 8px;
|
|
2052
|
-
border-radius: ${
|
|
2067
|
+
border-radius: ${C.borderRadius};
|
|
2053
2068
|
}
|
|
2054
2069
|
|
|
2055
2070
|
.ft-search-bar--dense .ft-search-bar--input-outline {
|
|
@@ -2058,7 +2073,7 @@
|
|
|
2058
2073
|
}
|
|
2059
2074
|
|
|
2060
2075
|
.ft-search-bar--input-container:focus-within .ft-search-bar--input-outline {
|
|
2061
|
-
outline: 2px solid ${
|
|
2076
|
+
outline: 2px solid ${C.colorPrimary};
|
|
2062
2077
|
}
|
|
2063
2078
|
|
|
2064
2079
|
.ft-search-bar--input {
|
|
@@ -2066,12 +2081,12 @@
|
|
|
2066
2081
|
flex-grow: 1;
|
|
2067
2082
|
border: none;
|
|
2068
2083
|
background-color: transparent;
|
|
2069
|
-
color: ${
|
|
2084
|
+
color: ${C.colorOnSurface};
|
|
2070
2085
|
outline: none;
|
|
2071
2086
|
}
|
|
2072
2087
|
|
|
2073
2088
|
.ft-search-bar--input::placeholder {
|
|
2074
|
-
color: ${
|
|
2089
|
+
color: ${C.colorOnSurfaceMedium};
|
|
2075
2090
|
}
|
|
2076
2091
|
|
|
2077
2092
|
.ft-search-bar--actions {
|
|
@@ -2085,12 +2100,12 @@
|
|
|
2085
2100
|
.ft-search-bar > ft-button,
|
|
2086
2101
|
.ft-search-bar--actions ft-button {
|
|
2087
2102
|
flex-shrink: 0;
|
|
2088
|
-
${(0,
|
|
2103
|
+
${(0,k.setVariable)(I.backgroundColor,"transparent")};
|
|
2089
2104
|
}
|
|
2090
2105
|
|
|
2091
2106
|
.ft-search-bar--left-action {
|
|
2092
|
-
${(0,
|
|
2093
|
-
border-right: 1px solid ${
|
|
2107
|
+
${(0,k.setVariable)(I.borderRadius,`calc(${C.borderRadius} - 1px) 0 0 calc(${C.borderRadius} - 1px)`)};
|
|
2108
|
+
border-right: 1px solid ${C.colorOutline};
|
|
2094
2109
|
height: 100%;
|
|
2095
2110
|
}
|
|
2096
2111
|
|
|
@@ -2099,7 +2114,7 @@
|
|
|
2099
2114
|
}
|
|
2100
2115
|
|
|
2101
2116
|
.ft-search-bar--floating-panel-open .ft-search-bar--left-action {
|
|
2102
|
-
${(0,
|
|
2117
|
+
${(0,k.setVariable)(I.borderRadius,`calc(${C.borderRadius} - 1px) 0 0 0`)};
|
|
2103
2118
|
}
|
|
2104
2119
|
|
|
2105
2120
|
.ft-search-bar .ft-search-bar--launch-search,
|
|
@@ -2109,13 +2124,13 @@
|
|
|
2109
2124
|
|
|
2110
2125
|
.ft-search-bar--separator {
|
|
2111
2126
|
height: 20px;
|
|
2112
|
-
border-right: 1px solid ${
|
|
2127
|
+
border-right: 1px solid ${C.colorOutline};
|
|
2113
2128
|
}
|
|
2114
2129
|
|
|
2115
2130
|
.ft-search-bar--left-action.ft-search-bar--content-locale {
|
|
2116
|
-
${(0,
|
|
2117
|
-
${(0,
|
|
2118
|
-
${(0,
|
|
2131
|
+
${(0,k.setVariable)(B.borderColor,"transparent")};
|
|
2132
|
+
${(0,k.setVariable)(B.borderRadius,`calc(${C.borderRadius} - 1px)`)};
|
|
2133
|
+
${(0,k.setVariable)($.selectedOptionColor,C.buttonColor)};
|
|
2119
2134
|
}
|
|
2120
2135
|
|
|
2121
2136
|
.ft-search-bar--left-action.ft-search-bar--content-locale,
|
|
@@ -2132,7 +2147,7 @@
|
|
|
2132
2147
|
}
|
|
2133
2148
|
|
|
2134
2149
|
.ft-search-bar--left-action.ft-search-bar--content-locale::part(selected-value) {
|
|
2135
|
-
border-radius: calc(${
|
|
2150
|
+
border-radius: calc(${C.borderRadius} - 1px) 0 0 calc(${C.borderRadius} - 1px);
|
|
2136
2151
|
}
|
|
2137
2152
|
|
|
2138
2153
|
[part="content-locale-selector"] {
|
|
@@ -2159,7 +2174,7 @@
|
|
|
2159
2174
|
flex-shrink: 0;
|
|
2160
2175
|
padding: 0 10px;
|
|
2161
2176
|
margin-bottom: 8px;
|
|
2162
|
-
${(0,
|
|
2177
|
+
${(0,k.setVariable)(y.fontSize,"14px")};
|
|
2163
2178
|
}
|
|
2164
2179
|
|
|
2165
2180
|
[part="content-locale-selector-label"] {
|
|
@@ -2167,18 +2182,18 @@
|
|
|
2167
2182
|
flex-shrink: 1;
|
|
2168
2183
|
flex-grow: 1;
|
|
2169
2184
|
word-break: break-word;
|
|
2170
|
-
${(0,
|
|
2171
|
-
${(0,
|
|
2185
|
+
${(0,k.setVariable)(y.lineHeight,"22px")};
|
|
2186
|
+
${(0,k.setVariable)(y.fontWeight,"bold")};
|
|
2172
2187
|
}
|
|
2173
2188
|
|
|
2174
|
-
`,ip=
|
|
2189
|
+
`,ip=Ls.css`
|
|
2175
2190
|
.ft-search-bar--presets {
|
|
2176
2191
|
min-width: 200px;
|
|
2177
2192
|
}
|
|
2178
2193
|
|
|
2179
2194
|
.ft-search-bar--desktop-menu .ft-search-bar--presets {
|
|
2180
2195
|
margin-right: auto;
|
|
2181
|
-
${(0,
|
|
2196
|
+
${(0,k.setVariable)($.optionsZIndex,"2")};
|
|
2182
2197
|
}
|
|
2183
2198
|
|
|
2184
2199
|
.ft-search-bar--desktop-menu {
|
|
@@ -2231,8 +2246,8 @@
|
|
|
2231
2246
|
|
|
2232
2247
|
.ft-search-bar--desktop-menu .ft-search-bar--filters-container {
|
|
2233
2248
|
display: block;
|
|
2234
|
-
height: ${
|
|
2235
|
-
${(0,
|
|
2249
|
+
height: ${C.desktopFiltersHeight};
|
|
2250
|
+
${(0,k.setVariable)(Me.gap,"16px")};
|
|
2236
2251
|
}
|
|
2237
2252
|
|
|
2238
2253
|
.ft-search-bar--desktop-menu ft-filter {
|
|
@@ -2247,15 +2262,15 @@
|
|
|
2247
2262
|
}
|
|
2248
2263
|
|
|
2249
2264
|
.ft-search-bar--desktop-menu [data-filters-count="2"] ft-filter {
|
|
2250
|
-
max-width: calc(50% - ${
|
|
2265
|
+
max-width: calc(50% - ${Me.gap} / 2);
|
|
2251
2266
|
}
|
|
2252
2267
|
|
|
2253
2268
|
.ft-search-bar--desktop-menu [data-filters-count="3"] ft-filter {
|
|
2254
|
-
max-width: max(250px, calc(33% - 2 * ${
|
|
2269
|
+
max-width: max(250px, calc(33% - 2 * ${Me.gap} / 3));
|
|
2255
2270
|
}
|
|
2256
2271
|
|
|
2257
2272
|
.ft-search-bar--desktop-menu [data-filters-count="4"] ft-filter {
|
|
2258
|
-
max-width: max(250px, calc(25% - 3 * ${
|
|
2273
|
+
max-width: max(250px, calc(25% - 3 * ${Me.gap} / 4));
|
|
2259
2274
|
}
|
|
2260
2275
|
|
|
2261
2276
|
.ft-search-bar--hierarchical-filter {
|
|
@@ -2312,7 +2327,7 @@
|
|
|
2312
2327
|
.ft-search-bar--filter-label-values {
|
|
2313
2328
|
flex-grow: 0;
|
|
2314
2329
|
flex-shrink: 1;
|
|
2315
|
-
color: ${
|
|
2330
|
+
color: ${C.colorOnSurfaceMedium};
|
|
2316
2331
|
}
|
|
2317
2332
|
|
|
2318
2333
|
ft-accordion-item::part(toggle) {
|
|
@@ -2333,15 +2348,15 @@
|
|
|
2333
2348
|
margin: 0;
|
|
2334
2349
|
}
|
|
2335
2350
|
`;var np=c(E()),op=c(m());var nr=class extends op.FtLitElement{render(){return np.html`
|
|
2336
|
-
`}};nr.elementDefinitions={};nr.styles=tp;var ap=c(m());var sp={"ft-skeleton":nr};(0,ap.customElements)(sp);var
|
|
2351
|
+
`}};nr.elementDefinitions={};nr.styles=tp;var ap=c(m());var sp={"ft-skeleton":nr};(0,ap.customElements)(sp);var Pt=c(E()),$s=c(or());var si=c(m());var It=class{constructor(e,r=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new si.Debouncer(r)}render(){let e=this.recentSearchesMatchingQuery;return Pt.html`
|
|
2337
2352
|
<div class="ft-search-bar--suggestions ft-word-wrap ${this.shouldDisplaySuggestions?"ft-search-bar--suggestions-not-empty":""}"
|
|
2338
2353
|
id="${this.listboxId}"
|
|
2339
2354
|
role="listbox"
|
|
2340
2355
|
aria-label="${this.searchBar.labelResolver.resolve("suggestionsAriaLabel")}"
|
|
2341
2356
|
part="suggestions-container">
|
|
2342
|
-
${(0
|
|
2357
|
+
${(0,$s.repeat)(e.slice(0,5),r=>r,(r,i)=>Pt.html`
|
|
2343
2358
|
<div part="suggestion-container"
|
|
2344
|
-
class="${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)?"ft-search-bar--suggestions-selected":
|
|
2359
|
+
class="${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)?"ft-search-bar--suggestions-selected":Pt.nothing}">
|
|
2345
2360
|
<a href="${this.getRequestWithQuery(r)}"
|
|
2346
2361
|
part="suggestions"
|
|
2347
2362
|
class="ft-search-bar--suggestion ft-search-bar--recent-search"
|
|
@@ -2368,9 +2383,9 @@
|
|
|
2368
2383
|
</ft-button>
|
|
2369
2384
|
</div>
|
|
2370
2385
|
`)}
|
|
2371
|
-
${(0
|
|
2386
|
+
${(0,$s.repeat)(this.searchBar.suggestions,r=>r.value,(r,i)=>Pt.html`
|
|
2372
2387
|
<div part="suggestion-container"
|
|
2373
|
-
class="${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)?"ft-search-bar--suggestions-selected":
|
|
2388
|
+
class="${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)?"ft-search-bar--suggestions-selected":Pt.nothing}">
|
|
2374
2389
|
<a href="${this.getRequestWithQuery(r.value)}"
|
|
2375
2390
|
part="suggestions"
|
|
2376
2391
|
class="ft-search-bar--suggestion"
|
|
@@ -2386,9 +2401,9 @@
|
|
|
2386
2401
|
</div>
|
|
2387
2402
|
`)}
|
|
2388
2403
|
</div>
|
|
2389
|
-
`}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"?
|
|
2404
|
+
`}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"?vt.file_format:vt.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?Xe.BOOK:Xe.ARTICLE;break;case"DOCUMENT":i=Id(e.mimeType,e.filenameExtension);break;case"TOPIC":i=Xe.TOPICS;break;case"HTML_PACKAGE":i=Xe.BOX_CODE;break;case"HTML_PACKAGE_PAGE":i=Xe.FILE_CODE;break}return Pt.html`
|
|
2390
2405
|
<ft-icon .variant=${r} .value=${i} part="suggestion-icon"></ft-icon>
|
|
2391
|
-
`}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()))}};
|
|
2406
|
+
`}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()))}};It.styles=[si.wordWrap,Pt.css`
|
|
2392
2407
|
.ft-search-bar--mobile .ft-search-bar--suggestions {
|
|
2393
2408
|
flex-grow: 1;
|
|
2394
2409
|
flex-shrink: 1;
|
|
@@ -2397,7 +2412,7 @@
|
|
|
2397
2412
|
}
|
|
2398
2413
|
|
|
2399
2414
|
.ft-search-bar--mobile-menu-open .ft-search-bar--suggestions {
|
|
2400
|
-
border-top: 1px solid ${
|
|
2415
|
+
border-top: 1px solid ${C.colorOutline};
|
|
2401
2416
|
}
|
|
2402
2417
|
|
|
2403
2418
|
.ft-search-bar--mobile-menu-open .ft-search-bar--suggestions {
|
|
@@ -2407,15 +2422,15 @@
|
|
|
2407
2422
|
.ft-search-bar--floating-panel,
|
|
2408
2423
|
.ft-search-bar--desktop .ft-search-bar--suggestions {
|
|
2409
2424
|
position: absolute;
|
|
2410
|
-
z-index: ${
|
|
2425
|
+
z-index: ${C.floatingZIndex};
|
|
2411
2426
|
top: 100%;
|
|
2412
2427
|
left: -1px;
|
|
2413
2428
|
right: -1px;
|
|
2414
2429
|
display: none;
|
|
2415
|
-
background: ${
|
|
2416
|
-
border: 1px solid ${
|
|
2417
|
-
border-radius: 0 0 ${
|
|
2418
|
-
box-shadow: ${
|
|
2430
|
+
background: ${C.colorSurface};
|
|
2431
|
+
border: 1px solid ${C.colorOutline};
|
|
2432
|
+
border-radius: 0 0 ${C.borderRadius} ${C.borderRadius};
|
|
2433
|
+
box-shadow: ${C.elevation02};
|
|
2419
2434
|
outline: none;
|
|
2420
2435
|
}
|
|
2421
2436
|
|
|
@@ -2434,10 +2449,10 @@
|
|
|
2434
2449
|
|
|
2435
2450
|
[part~="suggestion-container"].ft-search-bar--suggestions-selected {
|
|
2436
2451
|
outline: none;
|
|
2437
|
-
box-shadow: inset 3px 0 0 ${
|
|
2452
|
+
box-shadow: inset 3px 0 0 ${C.activeItemBorderColor};
|
|
2438
2453
|
}
|
|
2439
2454
|
[part~="suggestion-container"]:hover {
|
|
2440
|
-
box-shadow: inset 3px 0 0 ${
|
|
2455
|
+
box-shadow: inset 3px 0 0 ${C.activeItemBorderColor};
|
|
2441
2456
|
}
|
|
2442
2457
|
|
|
2443
2458
|
[part~="remove-suggestion"] {
|
|
@@ -2453,7 +2468,7 @@
|
|
|
2453
2468
|
gap: 8px;
|
|
2454
2469
|
cursor: pointer;
|
|
2455
2470
|
flex-grow: 1;
|
|
2456
|
-
color: ${
|
|
2471
|
+
color: ${C.colorOnSurface};
|
|
2457
2472
|
min-height: 52px;
|
|
2458
2473
|
}
|
|
2459
2474
|
|
|
@@ -2466,7 +2481,7 @@
|
|
|
2466
2481
|
}
|
|
2467
2482
|
|
|
2468
2483
|
.ft-search-bar--recent-search + .ft-search-bar--suggestion:not(.ft-search-bar--recent-search) {
|
|
2469
|
-
border-top: 1px solid ${
|
|
2484
|
+
border-top: 1px solid ${C.colorOutline};
|
|
2470
2485
|
}
|
|
2471
2486
|
|
|
2472
2487
|
.ft-search-bar--suggestion ft-typography {
|
|
@@ -2476,9 +2491,9 @@
|
|
|
2476
2491
|
}
|
|
2477
2492
|
|
|
2478
2493
|
ft-ripple {
|
|
2479
|
-
${(0,si.setVariable)(
|
|
2494
|
+
${(0,si.setVariable)(W.opacityContentOnSurfaceHover,W.opacityContentOnSurfaceSelected)}
|
|
2480
2495
|
}
|
|
2481
|
-
`];var Ne=c(E()),
|
|
2496
|
+
`];var Ne=c(E()),Ds=c(or());var fo=c(m());var Mt=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return Ne.html``;let e=this.searchBar.isMobile(),r=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),i=Ne.html`
|
|
2482
2497
|
${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?Ne.html`
|
|
2483
2498
|
<ft-chip part="selected-filters selected-filter-ft-locale"
|
|
2484
2499
|
?dense=${this.searchBar.dense&&!e}
|
|
@@ -2489,7 +2504,7 @@
|
|
|
2489
2504
|
${this.getLocaleLabel(this.searchBar.contentLocale)}
|
|
2490
2505
|
</ft-chip>
|
|
2491
2506
|
`:null}
|
|
2492
|
-
${(0,
|
|
2507
|
+
${(0,Ds.repeat)(this.searchBar.facets,o=>o.key,o=>{let n=wa(o);return(0,Ds.repeat)(n,s=>{let a=o.label+": "+Ea(s),l=o.key.replace(":","-"),d=Ne.html`
|
|
2493
2508
|
<ft-chip
|
|
2494
2509
|
part="selected-filters selected-filter-${l}"
|
|
2495
2510
|
?dense=${this.searchBar.dense&&!e}
|
|
@@ -2502,7 +2517,7 @@
|
|
|
2502
2517
|
@icon-click=${()=>this.searchBar.setFilter(o.key,n.filter(u=>u!==s))}
|
|
2503
2518
|
data-key="${o.key}"
|
|
2504
2519
|
data-value="${s}">
|
|
2505
|
-
${
|
|
2520
|
+
${Sa(s)}
|
|
2506
2521
|
</ft-chip>
|
|
2507
2522
|
`;return r?d:Ne.html`
|
|
2508
2523
|
<ft-tooltip inline text="${a}">
|
|
@@ -2528,7 +2543,7 @@
|
|
|
2528
2543
|
<div class="ft-search-bar--selected-filters" part="selected-filters-container">
|
|
2529
2544
|
${i}
|
|
2530
2545
|
</div>
|
|
2531
|
-
`}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var r;return(r=this.searchBar.availableContentLocales.filter(i=>{var o;return((o=i.lang)!==null&&o!==void 0?o:"").toLowerCase()===(e??"").toLowerCase()}).map(i=>i.label).pop())!==null&&r!==void 0?r:e}};
|
|
2546
|
+
`}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var r;return(r=this.searchBar.availableContentLocales.filter(i=>{var o;return((o=i.lang)!==null&&o!==void 0?o:"").toLowerCase()===(e??"").toLowerCase()}).map(i=>i.label).pop())!==null&&r!==void 0?r:e}};Mt.styles=Ne.css`
|
|
2532
2547
|
.ft-search-bar--selected-filters:not(ft-snap-scroll) {
|
|
2533
2548
|
flex-shrink: 0;
|
|
2534
2549
|
display: flex;
|
|
@@ -2539,7 +2554,7 @@
|
|
|
2539
2554
|
|
|
2540
2555
|
ft-snap-scroll.ft-search-bar--selected-filters {
|
|
2541
2556
|
overflow: hidden;
|
|
2542
|
-
${(0,
|
|
2557
|
+
${(0,fo.setVariable)(Me.gap,"4px")};
|
|
2543
2558
|
}
|
|
2544
2559
|
|
|
2545
2560
|
ft-snap-scroll.ft-search-bar--selected-filters::part(content) {
|
|
@@ -2547,8 +2562,8 @@
|
|
|
2547
2562
|
}
|
|
2548
2563
|
|
|
2549
2564
|
.ft-search-bar--desktop ft-snap-scroll.ft-search-bar--selected-filters {
|
|
2550
|
-
${(0,
|
|
2551
|
-
${(0,
|
|
2565
|
+
${(0,fo.setVariable)(_e.iconSize,"17px")};
|
|
2566
|
+
${(0,fo.setVariable)(_e.fontSize,"12px")};
|
|
2552
2567
|
}
|
|
2553
2568
|
|
|
2554
2569
|
.ft-search-bar--selected-filters * {
|
|
@@ -2558,7 +2573,7 @@
|
|
|
2558
2573
|
.ft-search-bar--selected-filters ft-chip {
|
|
2559
2574
|
flex-grow: 0;
|
|
2560
2575
|
}
|
|
2561
|
-
`;var
|
|
2576
|
+
`;var Ct=c(E());var lp=c(nt()),cp=c(m()),ah=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},ai=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new Mt(e),this.suggestManager=i??new It(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 Ct.html`
|
|
2562
2577
|
<div class="${(0,lp.classMap)(r)}" part="container" tabindex="-1">
|
|
2563
2578
|
<div class="ft-search-bar" role="search">
|
|
2564
2579
|
<div class="ft-search-bar--input-container" part="input-container">
|
|
@@ -2568,7 +2583,7 @@
|
|
|
2568
2583
|
aria-autocomplete="list"
|
|
2569
2584
|
aria-controls="${this.suggestManager.listboxId}"
|
|
2570
2585
|
aria-expanded="${this.searchBar.displaySuggestListbox}"
|
|
2571
|
-
aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:
|
|
2586
|
+
aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:Ct.nothing}"
|
|
2572
2587
|
part="input"
|
|
2573
2588
|
type="search"
|
|
2574
2589
|
placeholder="${this.searchBar.labelResolver.resolve("inputPlaceHolder")}"
|
|
@@ -2582,7 +2597,7 @@
|
|
|
2582
2597
|
</div>
|
|
2583
2598
|
${this.searchBar.displayFacets?this.searchBar.renderFacetsActions():this.selectedFacetsManager.render()}
|
|
2584
2599
|
${this.searchBar.displayFacets?this.searchBar.renderMobileFacets():this.suggestManager.render()}
|
|
2585
|
-
${this.searchBar.isMobileMenuOpen()||this.searchBar.displayFacets?
|
|
2600
|
+
${this.searchBar.isMobileMenuOpen()||this.searchBar.displayFacets?Ct.html`
|
|
2586
2601
|
<ft-button class="ft-search-bar--launch-search"
|
|
2587
2602
|
href="${this.searchBar.searchRequestSerializer(this.searchBar.request)}"
|
|
2588
2603
|
part="launch-search-in-panel"
|
|
@@ -2590,11 +2605,11 @@
|
|
|
2590
2605
|
@click=${()=>this.searchBar.onLaunchSearch()}>
|
|
2591
2606
|
${this.searchBar.labelResolver.resolve("searchButton")}
|
|
2592
2607
|
</ft-button>
|
|
2593
|
-
`:
|
|
2608
|
+
`:Ct.nothing}
|
|
2594
2609
|
</div>
|
|
2595
|
-
`}renderMobileSearchBarButtons(){let e=this.searchBar.query||this.searchBar.isMobileMenuOpen()&&!this.searchBar.forceMobileMenuOpen;return
|
|
2610
|
+
`}renderMobileSearchBarButtons(){let e=this.searchBar.query||this.searchBar.isMobileMenuOpen()&&!this.searchBar.forceMobileMenuOpen;return Ct.html`
|
|
2596
2611
|
<div class="ft-search-bar--actions" part="search-bar-actions">
|
|
2597
|
-
${e?
|
|
2612
|
+
${e?Ct.html`
|
|
2598
2613
|
<ft-button class="ft-search-bar--clear-query"
|
|
2599
2614
|
part="clear-query"
|
|
2600
2615
|
icon="close"
|
|
@@ -2604,7 +2619,7 @@
|
|
|
2604
2619
|
@click=${async()=>{this.searchBar.setQuery(""),this.searchBar.mobileMenuOpen=!1,this.searchBar.displayFacets=!1}}
|
|
2605
2620
|
></ft-button>
|
|
2606
2621
|
<div class="ft-search-bar--separator"></div>
|
|
2607
|
-
`:
|
|
2622
|
+
`:Ct.nothing}
|
|
2608
2623
|
<ft-button class="ft-search-bar--launch-search"
|
|
2609
2624
|
href="${this.searchBar.isMobileMenuOpen()?this.searchBar.searchRequestSerializer(this.searchBar.request):""}"
|
|
2610
2625
|
part="launch-search-in-bar"
|
|
@@ -2615,9 +2630,9 @@
|
|
|
2615
2630
|
@click=${()=>{var r;return this.searchBar.isMobileMenuOpen()?this.searchBar.onLaunchSearch():(r=this.searchBar.input)===null||r===void 0?void 0:r.focus()}}
|
|
2616
2631
|
></ft-button>
|
|
2617
2632
|
</div>
|
|
2618
|
-
`}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}};ai.styles=
|
|
2633
|
+
`}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}};ai.styles=Ct.css`
|
|
2619
2634
|
|
|
2620
|
-
`;ah([(0,cp.ignoreComposingEvents)()],ai.prototype,"onSearchBarKeyDown",null);var Fe=c(E()),dp=c(
|
|
2635
|
+
`;ah([(0,cp.ignoreComposingEvents)()],ai.prototype,"onSearchBarKeyDown",null);var Fe=c(E()),dp=c(or());var up=c(nt()),pp=c(m()),lh=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},li=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new Mt(e),this.suggestManager=i??new It(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 Fe.html`
|
|
2621
2636
|
<div class="${(0,up.classMap)(r)}" part="container" tabindex="-1">
|
|
2622
2637
|
<div class="ft-search-bar" part="search-bar" role="search">
|
|
2623
2638
|
${this.renderSearchBarLeftAction()}
|
|
@@ -2696,7 +2711,7 @@
|
|
|
2696
2711
|
</div>
|
|
2697
2712
|
`}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)}};li.styles=Fe.css`
|
|
2698
2713
|
|
|
2699
|
-
`;lh([(0,pp.ignoreComposingEvents)()],li.prototype,"onSearchBarKeyDown",null);var
|
|
2714
|
+
`;lh([(0,pp.ignoreComposingEvents)()],li.prototype,"onSearchBarKeyDown",null);var N=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n};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 fp={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"},Ps=class extends CustomEvent{constructor(e){super("change",{detail:e})}},ch=()=>{},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(fp,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new Y.SearchPlaceConverter(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=rt.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 It(this),this.selectedFacetsManager=new Mt(this),this.desktopSearchBarManager=new li(this),this.mobileSearchBarManager=new ai(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(o=>o===this||o===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.compareUnknownFilters=(e,r)=>e.valueFilter&&r.valueFilter?this.compareValueFilters(e.valueFilter,r.valueFilter):e.dateFilter&&r.dateFilter?this.compareDateFilters(e.dateFilter,r.dateFilter):e.rangeFilter&&r.rangeFilter?this.compareRangeFilters(e.rangeFilter,r.rangeFilter):!1,this.compareValueFilters=(e,r)=>e.negative==r.negative&&e.values.length===r.values.length&&e.values.every(i=>r.values.includes(i)),this.compareDateFilters=(e,r)=>e.type===r.type,this.compareRangeFilters=(e,r)=>e.from===r.from&&e.to===r.to,this.compareFilters=(e,r)=>e.key===r.key&&this.compareUnknownFilters(e,r),this.compareRequests=(e,r)=>(e.contentLocale==null||r.contentLocale==null||e.contentLocale===r.contentLocale)&&e.metadataFilters.length===r.metadataFilters.length&&e.metadataFilters.every(i=>r.metadataFilters.some(o=>this.compareFilters(i,o)))}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,metadataFilters:this.metadataFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){let e=this.metadataFilters.filter(r=>{var i,o;return((o=(i=r.valueFilter)===null||i===void 0?void 0:i.values.length)!==null&&o!==void 0?o:0)>0&&!this.displayedFilters.includes(r.key)}).map(r=>({id:r.key}));return[...this.displayedFilters.map(r=>({id:r})),...e]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,metadataFilters:this.metadataFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===rt.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 V.html`
|
|
2700
2715
|
<ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
|
|
2701
2716
|
<div class="sr-only" aria-live="polite" aria-atomic="true">
|
|
2702
2717
|
${this.renderLiveText()}
|
|
@@ -2724,7 +2739,7 @@
|
|
|
2724
2739
|
</div>
|
|
2725
2740
|
</ft-accordion-item>
|
|
2726
2741
|
`:null}
|
|
2727
|
-
${(0,Xi.repeat)(this.facets,r=>r.key,r=>{let i=
|
|
2742
|
+
${(0,Xi.repeat)(this.facets,r=>r.key,r=>{let i=To(r),o=r.key.replace(":","-"),n=Ca(i);return r.rootNodes.length>0?V.html`
|
|
2728
2743
|
<ft-accordion-item data-facet-key="${r.key}">
|
|
2729
2744
|
<div class="ft-search-bar--filter-label" slot="toggle">
|
|
2730
2745
|
<ft-typography variant="button">${r.label}</ft-typography>
|
|
@@ -2817,7 +2832,7 @@
|
|
|
2817
2832
|
${this.getContentLocaleRadioGroup()}
|
|
2818
2833
|
</div>
|
|
2819
2834
|
`:V.nothing}
|
|
2820
|
-
${(0,Xi.repeat)(this.facets,e=>e.key,e=>{let r=
|
|
2835
|
+
${(0,Xi.repeat)(this.facets,e=>e.key,e=>{let r=To(e),i=r.options.some(n=>{var s,a;return((a=(s=n.subOptions)===null||s===void 0?void 0:s.length)!==null&&a!==void 0?a:0)>0}),o=e.key.replace(":","-");return V.html`
|
|
2821
2836
|
<ft-filter
|
|
2822
2837
|
class="${i?"ft-search-bar--hierarchical-filter":""}"
|
|
2823
2838
|
part="filters filter filter-${o}"
|
|
@@ -2836,14 +2851,14 @@
|
|
|
2836
2851
|
></ft-filter>
|
|
2837
2852
|
`})}
|
|
2838
2853
|
</ft-snap-scroll>
|
|
2839
|
-
`:V.nothing}firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",r=>{r.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var r,i,o,n,s;if(e.has("labels")&&(this.labelResolver=new
|
|
2854
|
+
`:V.nothing}firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",r=>{r.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var r,i,o,n,s;if(e.has("labels")&&(this.labelResolver=new Y.ParametrizedLabelResolver(fp,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(d=>d.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")&&((o=this.presets)!==null&&o!==void 0?o:[]).forEach(a=>a.metadataFilters.forEach(l=>{l.valueFilter&&(l.valueFilter.values=l.valueFilter.values.map(d=>tn(d)))})),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=(i=((s=this.presets)!==null&&s!==void 0?s:[]).find(a=>this.compareRequests(a,this.request)))===null||i===void 0?void 0:i.name),["baseUrl","apiIntegrationIdentifier"].some(a=>e.has(a))&&(this.api=void 0,this.initApi()),e.has("api")&&this.api&&this.initSearchData(),["uiLocale","contentLocale","metadataFilters","displayedFilters"].some(a=>e.has(a))&&this.updateFacets(),["query","uiLocale","contentLocale","metadataFilters","displayedFilters","api"].some(a=>e.has(a))&&this.suggestManager.update(),["query","uiLocale","contentLocale","metadataFilters"].some(a=>e.has(a))&&this.dispatchStateChangeEvent()}dispatchStateChangeEvent(){this.stateChangeEventDebouncer.run(()=>this.dispatchEvent(new Ps(this.request)))}updateFacets(){this.facetsRequest.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run(async()=>{await this.retrieveFacetsFromSearch(),this.facetsLoaded=!0,this.facetsInitialized=!0},this.facetsInitialized?500:10)):(this.facets=[],this.facetsLoaded=!0,this.facetsInitialized=!0)}contentAvailableCallback(e){var r,i,o;if(super.contentAvailableCallback(e),e.has("displayFacets")&&this.displayFacets&&((r=this.floatingContainer)===null||r===void 0||r.focus()),this.scrollToFacet!=null&&this.facetsLoaded){(i=this.scrollingFiltersContainer)===null||i===void 0||i.scrollIndexIntoView(this.facets.findIndex(s=>s.key===this.scrollToFacet));let n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);n&&(n.active=!0),this.scrollToFacet=void 0}}initApi(){this.api==null&&(this.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier,!0):void 0,setTimeout(()=>this.initApi(),10))}async retrieveFacetsFromSearch(){var e;if(this.facetsRequest.length==0){this.facets=[];return}let r=new Map;await((e=this.api)===null||e===void 0?void 0:e.search({...this.request,query:""}).then(i=>i.facets.forEach(o=>{this.knownFacetLabels.set(o.key,o.label),r.set(o.key,o)})).catch(ch)),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(),_.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),_.removeEventListener("authentication-change",this.initSearchData)}updateSize(e){this.sizeCategory=e.detail.category}setFilter(e,r){let i=this.metadataFilters.filter(o=>!o.valueFilter||o.key!==e);this.facets.forEach(o=>{o.key===e&&(0,Y.flatDeep)(o.rootNodes,n=>n.childNodes).forEach(n=>n.selected=r.includes(n.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?V.nothing:V.html`
|
|
2840
2855
|
<div class="ft-search-bar--floating-panel"
|
|
2841
2856
|
id="ft-search-bar-floating-panel"
|
|
2842
2857
|
@keyup=${this.onFloatingContainerKeyUp}
|
|
2843
2858
|
part="floating-panel"
|
|
2844
2859
|
tabindex="-1">
|
|
2845
2860
|
${this.renderDesktopMenu()}
|
|
2846
|
-
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};
|
|
2861
|
+
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};w.elementDefinitions={"ft-accordion":Dt,"ft-accordion-item":dt,"ft-button":O,"ft-chip":ne,"ft-filter":U,"ft-filter-option":et,"ft-icon":oe,"ft-ripple":M,"ft-select":Q,"ft-select-option":$e,"ft-size-watcher":We,"ft-skeleton":nr,"ft-snap-scroll":he,"ft-tooltip":ae,"ft-typography":G,"ft-radio-group":Ze,"ft-radio":xe};w.styles=[zr,Y.noTextInputDefaultClearButton,rp,ip,Mt.styles,It.styles,Y.screenReaderStyles];N([(0,F.property)({type:Boolean})],w.prototype,"dense",void 0);N([(0,F.property)()],w.prototype,"mode",void 0);N([(0,F.property)({type:Boolean})],w.prototype,"forceMobileMenuOpen",void 0);N([(0,F.property)({type:Boolean})],w.prototype,"forceMenuOpen",void 0);N([(0,F.property)()],w.prototype,"baseUrl",void 0);N([(0,F.property)()],w.prototype,"apiIntegrationIdentifier",void 0);N([(0,F.property)()],w.prototype,"contentLocale",void 0);N([(0,F.state)()],w.prototype,"availableContentLocales",void 0);N([(0,F.state)()],w.prototype,"availableContentLocalesInitialized",void 0);N([(0,F.property)()],w.prototype,"uiLocale",void 0);N([(0,Y.jsonProperty)({})],w.prototype,"labels",void 0);N([(0,Y.jsonProperty)([])],w.prototype,"displayedFilters",void 0);N([(0,Y.jsonProperty)([])],w.prototype,"presets",void 0);N([(0,F.property)({type:String,reflect:!0})],w.prototype,"selectedPreset",void 0);N([(0,Y.jsonProperty)([])],w.prototype,"priors",void 0);N([(0,F.property)()],w.prototype,"searchRequestSerializer",void 0);N([(0,F.property)({type:Boolean})],w.prototype,"focusOnDisplay",void 0);N([(0,F.state)()],w.prototype,"metadataFilters",void 0);N([(0,F.state)()],w.prototype,"sizeCategory",void 0);N([(0,F.state)()],w.prototype,"displayFacets",void 0);N([(0,F.state)()],w.prototype,"mobileMenuOpen",void 0);N([(0,F.state)()],w.prototype,"facets",void 0);N([(0,F.state)()],w.prototype,"facetsInitialized",void 0);N([(0,F.query)(".ft-search-bar--container")],w.prototype,"container",void 0);N([(0,F.query)(".ft-search-bar--filters-opener")],w.prototype,"filtersOpener",void 0);N([(0,F.query)(".ft-search-bar--floating-panel")],w.prototype,"floatingContainer",void 0);N([(0,F.query)("ft-snap-scroll.ft-search-bar--filters-container")],w.prototype,"scrollingFiltersContainer",void 0);N([(0,F.query)(".ft-search-bar--input")],w.prototype,"input",void 0);N([(0,F.query)(".ft-search-bar--launch-search")],w.prototype,"launchSearchButton",void 0);N([(0,F.state)()],w.prototype,"query",void 0);N([(0,F.state)()],w.prototype,"suggestions",void 0);N([(0,F.state)()],w.prototype,"recentSearches",void 0);N([(0,F.state)()],w.prototype,"scrollToFacet",void 0);N([(0,F.state)()],w.prototype,"api",void 0);N([(0,F.state)()],w.prototype,"displaySuggestListbox",void 0);N([(0,F.state)()],w.prototype,"selectedSuggestOptionId",void 0);N([(0,F.state)()],w.prototype,"selectedSuggestRemoveRecent",void 0);N([(0,F.state)()],w.prototype,"facetsLoaded",void 0);var hp={"ft-search-bar":w};(0,mp.customElements)(hp);})();
|
|
2847
2862
|
/*! Bundled license information:
|
|
2848
2863
|
|
|
2849
2864
|
.store/lit-html-npm-3.3.3-0f054b825a/package/lit-html.js:
|