@fluid-topics/ft-search-bar 2.2.10 → 2.2.12
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 +132 -160
- package/build/ft-search-bar.min.js +72 -100
- package/package.json +15 -15
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var bp=Object.create;var $s=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&&$s(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?$s(r,"default",{value:t,enumerable:!0}):r,t));var m=Fr((
|
|
1
|
+
"use strict";(()=>{var bp=Object.create;var $s=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&&$s(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?$s(r,"default",{value:t,enumerable:!0}):r,t));var m=Fr((dh,Ds)=>{Ds.exports=ftGlobals.wcUtils});var E=Fr((ph,Ps)=>{Ps.exports=ftGlobals.lit});var j=Fr((fh,Ms)=>{Ms.exports=ftGlobals.litDecorators});var sr=Fr((hh,Is)=>{Is.exports=ftGlobals.litRepeat});var nt=Fr((am,Ua)=>{Ua.exports=ftGlobals.litClassMap});var Pu=Fr((Tx,Du)=>{Du.exports=ftGlobals.litUnsafeHTML});var mp=c(m());var V=c(E()),F=c(j()),Yi=c(sr()),Y=c(m());var Bs=c(E()),ar=c(j()),Xi=c(m());var rt;(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(rt||(rt={}));var Ns=c(E());var Fs=Ns.css`
|
|
2
2
|
.ft-size-watcher--pixel {
|
|
3
3
|
width: 0;
|
|
4
4
|
height: 0;
|
|
@@ -17,21 +17,21 @@
|
|
|
17
17
|
.ft-size-watcher--local .ft-size-watcher--watcher {
|
|
18
18
|
width: 100%;
|
|
19
19
|
}
|
|
20
|
-
`;var
|
|
20
|
+
`;var ui=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},po=class extends CustomEvent{constructor(e,r){super("change",{detail:{size:e,category:r}})}},We=class extends Xi.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 Xi.Debouncer}render(){return Bs.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 po(this.size,this.category)))},this.debounceTimeout)}};We.elementDefinitions={};We.styles=Fs;
|
|
25
|
-
\f\r]`,
|
|
26
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ks=/'/g,qs=/"/g,Zs=/^(?:script|style|textarea|title)$/i,So=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Qs=So(1),Js=So(2),ea=So(3),fi=Symbol.for("lit-noChange"),ue=Symbol.for("lit-nothing"),Gs=new WeakMap,cr=dr.createTreeWalker(dr,129);function ta(t,e){if(!xo(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Hs!==void 0?Hs.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=js:u[1]!==void 0?s=Ws:u[2]!==void 0?(Zs.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]==='"'?qs:Ks):s===qs||s===Ks?s=lr:s===js||s===Ws?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[ta(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(Zs.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===Xs)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(ta(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=Gs.get(e.strings);return r===void 0&&Gs.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=Vs(e).nextSibling;Vs(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 ia=Symbol.for(""),Rp=t=>{if(t?.r===ia)return t?._$litStatic$},Eo=t=>({_$litStatic$:t,r:ia});var ra=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=ra.get(p))===void 0&&(s.raw=s,ra.set(p,e=s)),r=a}return t(e,...r)},Co=Ao(Qs),kh=Ao(Js),Lh=Ao(ea);var wo=c(j()),ma=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()),na=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),It=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),y={fontFamily:It,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","",na),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","",na),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","",It),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","",It),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","",It),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","",It),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","",It),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","",It),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","",It),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","",It),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")},oa=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 po(this.size,this.category)))},this.debounceTimeout)}};We.elementDefinitions={};We.styles=Fs;ui([(0,ar.property)({type:Number})],We.prototype,"debounceTimeout",void 0);ui([(0,ar.property)({type:Boolean})],We.prototype,"local",void 0);ui([(0,ar.property)({type:Number,reflect:!0})],We.prototype,"size",void 0);ui([(0,ar.property)({type:String,reflect:!0})],We.prototype,"category",void 0);ui([(0,ar.query)(".ft-size-watcher--watcher")],We.prototype,"watcher",void 0);var zs=c(m());var Us={"ft-size-watcher":We};(0,zs.customElements)(Us);var vo=globalThis,Vs=t=>t,Zi=vo.trustedTypes,Hs=Zi?Zi.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ys="$lit$",Ht=`lit$${Math.random().toFixed(9).slice(2)}$`,Xs="?"+Ht,Cp=`<${Xs}>`,ur=document,Qi=()=>ur.createComment(""),pi=t=>t===null||typeof t!="object"&&typeof t!="function",xo=Array.isArray,wp=t=>xo(t)||typeof t?.[Symbol.iterator]=="function",fo=`[
|
|
25
|
+
\f\r]`,di=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,js=/-->/g,Ws=/>/g,lr=RegExp(`>|${fo}(?:([^\\s"'>=/]+)(${fo}*=${fo}*(?:[^
|
|
26
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ks=/'/g,qs=/"/g,Zs=/^(?:script|style|textarea|title)$/i,So=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Qs=So(1),Js=So(2),ea=So(3),fi=Symbol.for("lit-noChange"),de=Symbol.for("lit-nothing"),Gs=new WeakMap,cr=ur.createTreeWalker(ur,129);function ta(t,e){if(!xo(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Hs!==void 0?Hs.createHTML(e):e}var _p=(t,e)=>{let r=t.length-1,i=[],o,n=e===2?"<svg>":e===3?"<math>":"",s=di;for(let a=0;a<r;a++){let l=t[a],u,d,p=-1,f=0;for(;f<l.length&&(s.lastIndex=f,d=s.exec(l),d!==null);)f=s.lastIndex,s===di?d[1]==="!--"?s=js:d[1]!==void 0?s=Ws:d[2]!==void 0?(Zs.test(d[2])&&(o=RegExp("</"+d[2],"g")),s=lr):d[3]!==void 0&&(s=lr):s===lr?d[0]===">"?(s=o??di,p=-1):d[1]===void 0?p=-2:(p=s.lastIndex-d[2].length,u=d[1],s=d[3]===void 0?lr:d[3]==='"'?qs:Ks):s===qs||s===Ks?s=lr:s===js||s===Ws?s=di:(s=lr,o=void 0);let b=s===lr&&t[a+1].startsWith("/>")?" ":"";n+=s===di?l+Cp:p>=0?(i.push(u),l.slice(0,p)+Ys+l.slice(p)+Ht+b):l+Ht+(p===-2?a:b)}return[ta(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,[u,d]=_p(e,r);if(this.el=t.createElement(u,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=d[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(Zs.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===Xs)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=ur.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??ur).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 u;l.type===2?u=new Ji(n,n.nextSibling,this,e):l.type===1?u=new l.ctor(n,l.name,l.strings,this,e):l.type===6&&(u=new bo(n,this,e)),this._$AV.push(u),l=i[++a]}s!==l?.index&&(n=cr.nextNode(),s++)}return cr.currentNode=ur,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=de,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===de||e==null||e===""?(this._$AH!==de&&this._$AR(),this._$AH=de):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!==de&&pi(this._$AH)?this._$AA.nextSibling.data=e:this.T(ur.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(ta(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=Gs.get(e.strings);return r===void 0&&Gs.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=Vs(e).nextSibling;Vs(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=de,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=de}_$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,u;for(e=n[0],l=0;l<n.length-1;l++)u=Br(this,a[i+l],r,l),u===fi&&(u=this._$AH[l]),s||=!pi(u)||u!==this._$AH[l],u===de?e=de:e!==de&&(e+=(u??"")+n[l+1]),this._$AH[l]=u}s&&!o&&this.j(e)}j(e){e===de?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===de?void 0:e}},go=class extends Ur{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==de)}},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)??de)===fi)return;let i=this._$AH,o=e===de&&i!==de||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,n=e!==de&&(i===de||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 ia=Symbol.for(""),Rp=t=>{if(t?.r===ia)return t?._$litStatic$},Eo=t=>({_$litStatic$:t,r:ia});var ra=new Map,Ao=t=>(e,...r)=>{let i=r.length,o,n,s=[],a=[],l,u=0,d=!1;for(;u<i;){for(l=e[u];u<i&&(n=r[u],(o=Rp(n))!==void 0);)l+=o+e[++u],d=!0;u!==i&&a.push(n),s.push(l),u++}if(u===i&&s.push(e[i]),d){let p=s.join("$$lit$$");(e=ra.get(p))===void 0&&(s.raw=s,ra.set(p,e=s)),r=a}return t(e,...r)},Co=Ao(Qs),kh=Ao(Js),Lh=Ao(ea);var wo=c(j()),ma=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()),na=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),It=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),y={fontFamily:It,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","",na),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","",na),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","",It),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","",It),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","",It),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","",It),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","",It),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","",It),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","",It),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","",It),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")},oa=it.css`
|
|
27
27
|
.ft-typography--title {
|
|
28
|
-
font-family: ${
|
|
29
|
-
font-size: ${
|
|
30
|
-
font-weight: ${
|
|
31
|
-
letter-spacing: ${
|
|
32
|
-
line-height: ${
|
|
33
|
-
text-transform: ${
|
|
34
|
-
text-decoration: ${
|
|
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
35
|
}
|
|
36
36
|
`,sa=it.css`
|
|
37
37
|
.ft-typography--title-dense {
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
text-transform: ${Be.textTransform};
|
|
95
95
|
text-decoration: ${Be.textDecoration};
|
|
96
96
|
}
|
|
97
|
-
`,
|
|
97
|
+
`,ua=it.css`
|
|
98
98
|
.ft-typography--breadcrumb {
|
|
99
99
|
font-family: ${mr.fontFamily};
|
|
100
100
|
font-size: ${mr.fontSize};
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
text-transform: ${mr.textTransform};
|
|
105
105
|
text-decoration: ${mr.textDecoration};
|
|
106
106
|
}
|
|
107
|
-
`,
|
|
107
|
+
`,da=it.css`
|
|
108
108
|
.ft-typography--overline {
|
|
109
109
|
font-family: ${gr.fontFamily};
|
|
110
110
|
font-size: ${gr.fontSize};
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
</${Eo(this.element)}>
|
|
137
137
|
`:Co`
|
|
138
138
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
139
|
-
`}};K.styles=[oa,sa,aa,la,ca,zr,jt,da,
|
|
139
|
+
`}};K.styles=[oa,sa,aa,la,ca,zr,jt,ua,da,pa,fa];ha([(0,wo.property)()],K.prototype,"element",void 0);ha([(0,wo.property)()],K.prototype,"variant",void 0);var ya=c(m());var ga={"ft-typography":K};(0,ya.customElements)(ga);var _o=c(m());function en(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function ba(t){return en(t).split("|").pop()}function va(t){return en(t).split("|").join(" > ")}function xa(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>xa(r,t.selected)),value:t.value}}function Sa(t){return(0,_o.flatDeep)(t.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]}).filter(e=>e.selected).map(e=>e.label)}function Oo(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>xa(e,!1))}}function Ea(t){return(0,_o.flatDeep)(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var Fa=c(E()),G=c(m());var Ia=c(E()),k=c(m());var Ra=c(E()),he=c(m()),Aa=he.FtCssVariableFactory.extend("--ft-ripple-color","",he.designSystemVariables.colorContent),q={color:Aa,backgroundColor:he.FtCssVariableFactory.extend("--ft-ripple-background-color","",Aa),opacityContentOnSurfacePressed:he.FtCssVariableFactory.external(he.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:he.FtCssVariableFactory.external(he.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:he.FtCssVariableFactory.external(he.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:he.FtCssVariableFactory.external(he.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:he.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Ca=he.FtCssVariableFactory.extend("--ft-ripple-color","",he.designSystemVariables.colorPrimary),wa={color:Ca,backgroundColor:he.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ca)},_a=he.FtCssVariableFactory.extend("--ft-ripple-color","",he.designSystemVariables.colorSecondary),Oa={color:_a,backgroundColor:he.FtCssVariableFactory.extend("--ft-ripple-background-color","",_a)},Ta=Ra.css`
|
|
140
140
|
:host {
|
|
141
141
|
display: contents;
|
|
142
142
|
}
|
|
@@ -365,7 +365,7 @@
|
|
|
365
365
|
.ft-icon--material {
|
|
366
366
|
font-family: ${$e.materialFontFamily}, "Material Icons", sans-serif;
|
|
367
367
|
}
|
|
368
|
-
`,ft.noTextSelect];var Pa=k.FtCssVariableFactory.extend("--ft-button-color","",k.designSystemVariables.colorPrimary),
|
|
368
|
+
`,ft.noTextSelect];var Pa=k.FtCssVariableFactory.extend("--ft-button-color","",k.designSystemVariables.colorPrimary),N={backgroundColor:k.FtCssVariableFactory.extend("--ft-button-background-color","",k.designSystemVariables.colorSurface),borderRadius:k.FtCssVariableFactory.extend("--ft-button-border-radius","",k.designSystemVariables.borderRadiusL),color:Pa,fontSize:k.FtCssVariableFactory.extend("--ft-button-font-size","",pt.fontSize),iconSize:k.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:k.FtCssVariableFactory.extend("--ft-button-ripple-color","",Pa),verticalPadding:k.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:k.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:k.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:k.FtCssVariableFactory.external(k.designSystemVariables.colorOpacityDisabled,"Design system")},Ma=k.FtCssVariableFactory.extend("--ft-button-primary-color","",k.FtCssVariableFactory.extend("--ft-button-color","",k.designSystemVariables.colorOnPrimary)),Ro={backgroundColor:k.FtCssVariableFactory.extend("--ft-button-primary-background-color","",k.FtCssVariableFactory.extend("--ft-button-background-color","",k.designSystemVariables.colorPrimary)),color:Ma,rippleColor:k.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Ma)},wt={borderRadius:k.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",k.FtCssVariableFactory.extend("--ft-button-border-radius","",k.designSystemVariables.borderRadiusM)),verticalPadding:k.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:k.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:k.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Na=Ia.css`
|
|
369
369
|
:host {
|
|
370
370
|
display: inline-block;
|
|
371
371
|
max-width: 100%;
|
|
@@ -376,7 +376,7 @@
|
|
|
376
376
|
box-shadow: 0px 0px 0px transparent;
|
|
377
377
|
border: 0px solid transparent;
|
|
378
378
|
text-shadow: 0px 0px 0px transparent;
|
|
379
|
-
font-size: ${
|
|
379
|
+
font-size: ${N.fontSize};
|
|
380
380
|
text-decoration: none;
|
|
381
381
|
}
|
|
382
382
|
|
|
@@ -410,21 +410,21 @@
|
|
|
410
410
|
border: none;
|
|
411
411
|
pointer-events: auto;
|
|
412
412
|
|
|
413
|
-
--button-internal-line-height: max(calc(${
|
|
414
|
-
--button-internal-color: ${
|
|
415
|
-
${(0,k.setVariable)($e.size,
|
|
416
|
-
${(0,k.setVariable)(q.color,
|
|
417
|
-
${(0,k.setVariable)(q.borderRadius,
|
|
413
|
+
--button-internal-line-height: max(calc(${N.fontSize} + 2px), ${N.iconSize});
|
|
414
|
+
--button-internal-color: ${N.color};
|
|
415
|
+
${(0,k.setVariable)($e.size,N.iconSize)};
|
|
416
|
+
${(0,k.setVariable)(q.color,N.rippleColor)};
|
|
417
|
+
${(0,k.setVariable)(q.borderRadius,N.borderRadius)};
|
|
418
418
|
|
|
419
|
-
border-radius: ${
|
|
420
|
-
padding: ${
|
|
421
|
-
background-color: ${
|
|
419
|
+
border-radius: ${N.borderRadius};
|
|
420
|
+
padding: ${N.verticalPadding} ${N.horizontalPadding};
|
|
421
|
+
background-color: ${N.backgroundColor};
|
|
422
422
|
color: var(--button-internal-color);
|
|
423
423
|
}
|
|
424
424
|
|
|
425
425
|
.ft-button.ft-button--outlined {
|
|
426
426
|
border: 1px solid var(--button-internal-color);
|
|
427
|
-
padding: calc(${
|
|
427
|
+
padding: calc(${N.verticalPadding} - 1px) calc(${N.horizontalPadding} - 1px);
|
|
428
428
|
}
|
|
429
429
|
|
|
430
430
|
.ft-button.ft-button--dense {
|
|
@@ -442,7 +442,7 @@
|
|
|
442
442
|
}
|
|
443
443
|
|
|
444
444
|
.ft-button--round {
|
|
445
|
-
border-radius: calc(var(--button-internal-line-height) / 2 + ${
|
|
445
|
+
border-radius: calc(var(--button-internal-line-height) / 2 + ${N.verticalPadding});
|
|
446
446
|
}
|
|
447
447
|
|
|
448
448
|
.ft-button--round.ft-button--dense {
|
|
@@ -451,7 +451,7 @@
|
|
|
451
451
|
|
|
452
452
|
.ft-button[disabled] {
|
|
453
453
|
filter: grayscale(1);
|
|
454
|
-
opacity: ${
|
|
454
|
+
opacity: ${N.opacityDisabled};
|
|
455
455
|
}
|
|
456
456
|
|
|
457
457
|
.ft-button.ft-button--primary {
|
|
@@ -466,7 +466,7 @@
|
|
|
466
466
|
white-space: nowrap;
|
|
467
467
|
text-overflow: ellipsis;
|
|
468
468
|
display: block;
|
|
469
|
-
margin: 0 ${
|
|
469
|
+
margin: 0 ${N.iconPadding};
|
|
470
470
|
${(0,k.setVariable)(pt.fontSize,"1em")};
|
|
471
471
|
${(0,k.setVariable)(pt.lineHeight,"var(--button-internal-line-height)")};
|
|
472
472
|
}
|
|
@@ -485,8 +485,8 @@
|
|
|
485
485
|
}
|
|
486
486
|
|
|
487
487
|
.ft-button--label[hidden] + [part="icon"] {
|
|
488
|
-
margin: 0 calc(${
|
|
489
|
-
padding: 0 ${
|
|
488
|
+
margin: 0 calc(${N.horizontalPadding} * -1);
|
|
489
|
+
padding: 0 ${N.verticalPadding};
|
|
490
490
|
}
|
|
491
491
|
|
|
492
492
|
.ft-button--dense .ft-button--label[hidden] + [part="icon"] {
|
|
@@ -499,7 +499,7 @@
|
|
|
499
499
|
}
|
|
500
500
|
|
|
501
501
|
ft-loader {
|
|
502
|
-
${(0,k.setVariable)(yr.size,
|
|
502
|
+
${(0,k.setVariable)(yr.size,N.iconSize)};
|
|
503
503
|
${(0,k.setVariable)(yr.color,"var(--button-internal-color)")};
|
|
504
504
|
}
|
|
505
505
|
`;var gi={buttonMoreColor:G.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",G.designSystemVariables.colorOnSurface),borderRadiusM:G.FtCssVariableFactory.external(G.designSystemVariables.borderRadiusM,"Design system"),colorOutline:G.FtCssVariableFactory.external(G.designSystemVariables.colorOutline,"Design system"),colorOnSurface:G.FtCssVariableFactory.external(G.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:G.FtCssVariableFactory.external(G.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:G.FtCssVariableFactory.external(G.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:G.FtCssVariableFactory.external(G.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:G.FtCssVariableFactory.external(G.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:G.FtCssVariableFactory.external(fe.fontFamily,"Body2 typography"),fontSize:G.FtCssVariableFactory.external(fe.fontSize,"Body2 typography"),fontWeight:G.FtCssVariableFactory.external(fe.fontWeight,"Body2 typography"),letterSpacing:G.FtCssVariableFactory.external(fe.letterSpacing,"Body2 typography"),lineHeight:G.FtCssVariableFactory.external(fe.lineHeight,"Body2 typography"),textTransform:G.FtCssVariableFactory.external(fe.textTransform,"Body2 typography")},Ba=Fa.css`
|
|
@@ -553,11 +553,11 @@
|
|
|
553
553
|
}
|
|
554
554
|
|
|
555
555
|
ft-button {
|
|
556
|
-
${(0,G.setVariable)(
|
|
556
|
+
${(0,G.setVariable)(N.color,gi.colorOnSurface)};
|
|
557
557
|
}
|
|
558
558
|
|
|
559
559
|
ft-button.ft-filter-level--display-more {
|
|
560
|
-
${(0,G.setVariable)(
|
|
560
|
+
${(0,G.setVariable)(N.color,gi.buttonMoreColor)};
|
|
561
561
|
}
|
|
562
562
|
|
|
563
563
|
ft-radio, ft-checkbox {
|
|
@@ -573,7 +573,7 @@
|
|
|
573
573
|
margin: 10px 0;
|
|
574
574
|
color: ${gi.colorOnSurfaceMedium};
|
|
575
575
|
}
|
|
576
|
-
`;var Dr=c(E()),X=c(j()),
|
|
576
|
+
`;var Dr=c(E()),X=c(j()),ue=c(m());var Qe=c(E()),be=c(j()),cd=c(sr()),He=c(m());var Tt=c(m());var za=c(E()),Se=c(j()),Va=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 za.html`
|
|
577
577
|
<style>
|
|
578
578
|
.ft-ripple .ft-ripple--effect {
|
|
579
579
|
left: ${this.originX}px;
|
|
@@ -584,7 +584,7 @@
|
|
|
584
584
|
<div class="ft-ripple--background"></div>
|
|
585
585
|
<div class="ft-ripple--effect"></div>
|
|
586
586
|
</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(
|
|
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(u=>window.addEventListener(u,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=Ta;Ue([(0,Se.property)({type:Boolean})],M.prototype,"primary",void 0);Ue([(0,Se.property)({type:Boolean})],M.prototype,"secondary",void 0);Ue([(0,Se.property)({type:Boolean})],M.prototype,"unbounded",void 0);Ue([(0,Se.property)({type:Boolean})],M.prototype,"activated",void 0);Ue([(0,Se.property)({type:Boolean})],M.prototype,"selected",void 0);Ue([(0,Se.property)({type:Boolean})],M.prototype,"disabled",void 0);Ue([(0,Se.state)()],M.prototype,"hovered",void 0);Ue([(0,Se.state)()],M.prototype,"focused",void 0);Ue([(0,Se.state)()],M.prototype,"pressed",void 0);Ue([(0,Se.state)()],M.prototype,"rippling",void 0);Ue([(0,Se.state)()],M.prototype,"originX",void 0);Ue([(0,Se.state)()],M.prototype,"originY",void 0);Ue([(0,Se.query)(".ft-ripple")],M.prototype,"ripple",void 0);Ue([(0,Se.query)(".ft-ripple--effect")],M.prototype,"rippleEffect",void 0);var ja=c(m());var Ha={"ft-ripple":M};(0,ja.customElements)(Ha);var ku=c(E()),ct=c(j()),lt=c(m());var Wa=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")},Ka=Wa.css`
|
|
588
588
|
.ft-tooltip--container {
|
|
589
589
|
display: block;
|
|
590
590
|
}
|
|
@@ -615,15 +615,15 @@
|
|
|
615
615
|
position: relative;
|
|
616
616
|
word-break: break-word;
|
|
617
617
|
}
|
|
618
|
-
`;var Ga=["top","right","bottom","left"],qa=["start","end"],ko=Ga.reduce((t,e)=>t.concat(e,e+"-"+qa[0],e+"-"+qa[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 Ya(t,e,r){return Kt(t,vi(e,r))}function tn(t,e){return typeof t=="function"?t(e):t}function Si(t){return t.split("-")[0]}function qt(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 Xa(t,e,r){r===void 0&&(r=!1);let i=qt(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 Za(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 Qa(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 Ja(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=qt(e);return x&&(b[s]+=f*(x==="end"?1:-1)*(r&&d?-1:1)),b}async function el(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=Qa(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},U=br(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:H,offsetParent:S,strategy:l}):H);return{top:(T.top-U.top+x.top)/D.y,bottom:(U.bottom-T.bottom+x.bottom)/D.y,left:(T.left-U.left+x.left)/D.x,right:(U.right-T.right+x.right)/D.x}}var Lp=50,tl=async(t,e,r)=>{let{placement:i="bottom",strategy:o="absolute",middleware:n=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:el},l=await(s.isRTL==null?void 0:s.isRTL(e)),d=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:u,y:p}=Ja(d,i,l),f=i,b=0,x={};for(let _=0;_<n.length;_++){let v=n[_];if(!v)continue;let{name:T,fn:H}=v,{x:S,y:D,data:U,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],...U},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}=Ja(d,f,l)),_=-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?Za(o)!==o:!1):!0)}var rl=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),_=p!==void 0||f===ko?$p(p||null,b,f):f,v=((r=s.autoPlacement)==null?void 0:r.index)||0,T=_[v];if(T==null)return{};if(a!==T)return{reset:{placement:_[0]}};let H=await l.detectOverflow(e,x),S=Xa(T,n,await(l.isRTL==null?void 0:l.isRTL(d.floating))),D=[H[Si(T)],H[S[0]],H[S[1]]],U=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:T,overflows:D}],ae=_[v+1];if(ae)return{data:{index:v+1,overflows:U},reset:{placement:ae}};let Q=U.map(tt=>{let or=qt(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,qt(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:U},reset:{placement:ci}}:{}}}};var il=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],_=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&&(_=v(f,_));let T=l.fn({...e,[b]:x,[f]:_});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 ol(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=(ol(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ol(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 nl(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 sl(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 al(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||nl(t)&&t.host||Nt(t);return nl(e)?e.host:e}function ll(t){let e=Gt(t);return Hr(e)?(t.ownerDocument||t).body:Ft(e)&&Ei(e)?e:ll(e)}function nn(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let o=ll(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 ul(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 pl(t){return ht(t)?t:t.contextElement}function jr(t){let e=pl(t);if(!Ft(e))return _t(1);let r=e.getBoundingClientRect(),{width:i,height:o,$:n}=ul(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 Mp=_t(0);function fl(t){let e=ze(t);return!sn()||!e.visualViewport?Mp:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ip(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=pl(t),s=_t(1);e&&(i?ht(i)&&(s=jr(i)):s=jr(t));let a=Ip(n,r,i)?fl(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,_=an(x);for(;_&&b!==x;){let v=jr(_),T=_.getBoundingClientRect(),H=mt(_),S=T.left+(_.clientLeft+parseFloat(H.paddingLeft))*v.x,D=T.top+(_.clientTop+parseFloat(H.paddingTop))*v.y;l*=v.x,d*=v.y,u*=v.x,p*=v.y,l+=S,d+=D,x=ze(_),_=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 hl(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?hl(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+ln(t),s=-e.scrollTop;return mt(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=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),_=f.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,v=Math.abs(n.clientWidth-b.clientWidth-_),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 cl(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=fl(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=cl(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=cl(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}=ul(t);return{width:e,height:r}}function Kp(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?hl(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 Mo(t){return mt(t).position==="static"}function dl(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 ml(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)&&!Mo(o))return o;o=Gt(o)}return r}let i=dl(t,e);for(;i&&sl(i)&&Mo(i);)i=dl(i,e);return i&&Hr(i)&&Mo(i)&&!Vr(i)?r:i||al(t)||r}var qp=async function(t){let e=this.getOffsetParent||ml,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 mt(t).direction==="rtl"}var cn={convertOffsetParentRelativeRectToViewportRelativeRect:Np,getDocumentElement:Nt,getClippingRect:jp,getOffsetParent:ml,getElementRects:qp,getClientRects:Fp,getDimensions:Wp,getScale:jr,isElement:ht,isRTL:Gp};var gl=rl,yl=il;var bl=(t,e,r)=>{let i=new Map,o=r??{},n={...cn,...o.platform,_c:i};return tl(t,e,{...o,platform:n})};function vl(t){return Yp(t)}function Io(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Yp(t){for(let e=t;e;e=Io(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Io(t);e;e=Io(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 xl(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},bl(t,e,{strategy:i.strategy,platform:{...cn,getOffsetParent:o=>cn.getOffsetParent(o,vl)},middleware:[yl({crossAxis:!0}),gl({allowedPlacements:[i.placement]})]})}var Jr=c(m());var ns=c(j());var Sl=c(j(),1);var No=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function El(t,e){return(0,Sl.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return _i(t);try{return JSON.parse(r)}catch{return _i(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Oi,...e??{}})}function Xp(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 Xp(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 Al=c(j(),1);var Fo=t=>{let e=t??{};return(r,i)=>{var o;let n={hasChanged:Oi,attribute:!1,...e};(0,Al.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 wl=c(E(),1);var fn=globalThis,Zp=fn.ShadowRoot&&(fn.ShadyCSS===void 0||fn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Cl=(t,e)=>{if(Zp)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),o=fn.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=r.cssText,t.appendChild(i)}};var hn=class extends wl.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 Cl(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 _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 hn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[kl]=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[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(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let b=(n=(o=f.getAttribute("part"))===null||o===void 0?void 0:o.split(" "))!==null&&n!==void 0?n:[],x=(a=(s=f.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(v=>v.split(":")[1]))!==null&&a!==void 0?a:[],_=[...b,...x].filter(l).map(v=>v.trim());for(let v of _)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,Sr.property)()],Ot.prototype,"exportpartsPrefix",void 0);qr([El([])],Ot.prototype,"exportpartsPrefixes",void 0);qr([(0,Sr.property)({reflect:!0})],Ot.prototype,"exportparts",void 0);qr([(0,Sr.property)()],Ot.prototype,"customStylesheet",void 0);qr([(0,Sr.property)()],Ot.prototype,"elementToFocus",void 0);qr([(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"),Yt=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[Yt].has(s.store):this[Yt].size>0)&&(this[a]=s.selector(d.getState(),this))}})}subscribeToStore(s,a){var l;this[Yt].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[Yt].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[Yt].has(s)&&this[Yt].get(s)(),this[Yt].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=Yt,r=Er,i=Ri,o.reduxProperties=new Map,o.reduxReactiveProperties=new Set,o.reduxEventListeners=new Map,o}),$l=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",Dl=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)}},[Dl](){return this}}}return f({type:gn.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: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 Pl(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],_=b(x,l);if(typeof _>"u"){let v=l&&l.type;throw new Error(Ee(14))}u[f]=_,d=d||_!==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 Ml(...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 Wl=Symbol.for("immer-nothing"),Nl=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 Ke=Object,Yr=Ke.getPrototypeOf,Sn="constructor",On="prototype",jo="configurable",En="enumerable",vn="writable",ki="value",Rt=t=>!!t&&!!t[ke];function qe(t){return t?Kl(t)||Tn(t)||!!t[Nl]||!!t[Sn]?.[Nl]||kn(t)||Ln(t):!1}var rf=Ke[On][Sn].toString(),Fl=new WeakMap;function Kl(t){if(!t||!Qo(t))return!1;let e=Yr(t);if(e===null||e===Ke[On])return!0;let r=Ke.hasOwnProperty.call(e,Sn)&&e[Sn];if(r===Object)return!0;if(!Gr(r))return!1;let i=Fl.get(r);return i===void 0&&(i=Function.toString.call(r),Fl.set(r,i)),i===rf}function Rn(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_:Tn(t)?1:kn(t)?2:Ln(t)?3:0}var zo=(t,e,r=Di(t))=>r===2?t.has(e):Ke[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 Ko(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=Kl(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[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 Ke.create(Yr(t),i)}else{let i=Yr(t);if(i!==null&&r)return{...t};let o=Ke.create(i);return Ke.assign(o,t)}}function es(t,e=!1){return $n(t)||Rt(t)||!qe(t)||(Di(t)>1&&Ke.defineProperties(t,{set:bn,add:bn,clear:bn,delete:bn}),Ke.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:Ke.isFrozen(t)}var Cn="MapSet",qo="Patches",Bl="ArrayMethods",ql={};function Ar(t){let e=ql[t];return e||gt(0,t),e}var Ul=t=>!!ql[t];var Li,Gl=()=>Li,af=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Ul(Cn)?Ar(Cn):void 0,arrayMethodsPlugin_:Ul(Bl)?Ar(Bl):void 0});function zl(t,e){e&&(t.patchPlugin_=Ar(qo),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Go(t){Yo(t),t.drafts_.forEach(lf),t.drafts_=null}function Yo(t){t===Li&&(Li=t.parent_)}var Vl=t=>Li=af(Li,t);function lf(t){let e=t[ke];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Hl(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)),qe(t)&&(t=jl(e,t));let{patchPlugin_:o}=e;o&&o.generateReplacementPatches_(r[ke].base_,t,e)}else t=jl(e,r);return cf(e,t,!0),Go(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Wl?t:void 0}function jl(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);Zl(r,t)}return r.copy_}function cf(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&es(e,r)}function Yl(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),Zl(n,o)})}function Zl(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)}Yl(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 qe(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)||!qe(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_),Yl(n)}}else qe(o)&&wn(o,e,r)})),t}function ff(t,e){let r=Tn(t),i={type_:r?1:0,scope_:e?e.scope_:Gl(),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_||!qe(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=Ql(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),Xo(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),Xo(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 Yr(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)||!qe(r)||r[ke]?!1:t.baseRefs_.has(r)}function mf(t,e,r){let i=Ql(e,r);return i?ki in i?i[ki]:i.get?.call(t.draft_):void 0}function Ql(t,e){if(!(e in t))return;let r=Yr(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Yr(r)}}function Xo(t){t.modified_||(t.modified_=!0,t.parent_&&Xo(t.parent_))}function xn(t){t.copy_||(t.assigned_=new Map,t.copy_=Ko(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(qe(e)){let n=Vl(this),s=Zo(n,e,void 0),a=!0;try{o=r(s),a=!1}finally{a?Go(n):Yo(n)}return zl(n,i),Hl(o,n)}else if(!e||!Qo(e)){if(o=r(e),o===void 0&&(o=e),o===Wl&&(o=void 0),this.autoFreeze_&&es(o,!0),i){let n=[],s=[];Ar(qo).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){qe(t)||gt(8),Rt(t)&&(t=Jl(t));let e=Vl(this),r=Zo(e,t,void 0);return r[ke].isManual_=!0,Yo(e),r}finishDraft(t,e){let r=t&&t[ke];(!r||!r.isManual_)&>(9);let{scope_:i}=r;return zl(i,e),Hl(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(qo).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_??Gl()).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 Jl(t){return Rt(t)||gt(10,t),ec(t)}function ec(t){if(!qe(t)||$n(t))return t;let e=t[ke],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=Ko(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=Ko(t,!0);return Rn(r,(o,n)=>{An(r,o,ec(n))},i),e&&(e.finalized_=!1),r}var yf=globalThis.Iterator,gg=typeof yf?.from=="function";var bf=new gf,ts=bf.produce;function tc(t){return({dispatch:r,getState:i})=>o=>n=>typeof n=="function"?n(r,i,t):o(n)}var rc=tc(),ic=tc;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)},Ag=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 Xt(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 lc=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 nc(t){return qe(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 lc;return r&&(Sf(r)?s.push(rc):s.push(ic(r.extraArgument))),s},Af="RTK_autoBatch";var oc=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):oc(10):t.type==="callback"?t.queueNotification:oc(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 lc(t);return i&&o.push(wf(typeof i=="object"?i:void 0)),o};function cc(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=Pl(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=Ml(...d),f=_f(p),b=typeof a=="function"?a(f):f(),x=u(...b);return Uo(l,s,x)}function dc(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]=dc(e),n;if(Of(t))n=()=>nc(t());else{let a=nc(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(qe(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},sc=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)}},ac="External signal was aborted",Mf=(()=>{function t(e,r,i){let o=Xt(e+"/fulfilled",(l,d,u,p)=>({payload:l,meta:{...p||{},arg:u,requestId:d,requestStatus:"fulfilled"}})),n=Xt(e+"/pending",(l,d,u)=>({payload:void 0,meta:{...u||{},arg:d,requestId:l,requestStatus:"pending"}})),s=Xt(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,_,v;function T(S){v=S,x.abort()}d&&(d.aborted?T(ac):d.addEventListener("abort",()=>T(ac),{once:!0}));let H=(async function(){let S;try{let U=i?.condition?.(l,{getState:p,extra:f});if(Nf(U)&&(U=await U),U===!1||x.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let ae=new Promise((Q,le)=>{_=()=>{le({name:"AbortError",message:v||"Aborted"})},x.signal.addEventListener("abort",_,{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 sc(Q,le))})).then(Q=>{if(Q instanceof rs)throw Q;return Q instanceof sc?o(Q.payload,b,l,Q.meta):o(Q,b,l)})])}catch(U){S=U instanceof rs?s(null,b,l,U.payload,U.meta):s(U,b,l)}finally{_&&x.signal.removeEventListener("abort",_)}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(If)}})}}return Object.assign(a,{pending:n,rejected:s,fulfilled:o,settled:kf(s,o),typePrefix:e})}return t.withTypes=()=>t,t})();function If(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 uc=Symbol.for("rtk-slice-createasyncthunk"),wg={[uc]:Mf};function Ff(t,e){return`${t}/${e}`}function Bf({creators:t}={}){let e=t?.asyncThunk?.[uc];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 U=typeof S=="string"?S:S.type;if(!U)throw new Error(Ut(12));if(U in l.sliceCaseReducersByType)throw new Error(Ut(13));return l.sliceCaseReducersByType[U]=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],U={reducerName:S,type:Ff(o,S),createNotation:typeof i.reducers=="function"};Hf(D)?Wf(U,D,d,e):Vf(U,D,d)});function u(){let[S={},D=[],U=void 0]=typeof i.extraReducers=="function"?dc(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);U&&Q.addDefaultCase(U)})}let p=S=>S,f=new Map,b=new WeakMap,x;function _(S,D){return x||(x=u()),x(S,D)}function v(){return x||(x=u()),x.getInitialState()}function T(S,D=!1){function U(Q){let le=Q[S];return typeof le>"u"&&D&&(le=Pn(b,U,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(U)},selectSlice:U}}let H={name:o,reducer:_,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:v,...T(n),injectInto(S,{reducerPath:D,...U}={}){let ae=D??n;return S.inject({reducerPath:ae,reducer:_},U),{...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 pc=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?Xt(t,s):Xt(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||Mn,pending:a||Mn,rejected:l||Mn,settled:d||Mn})}function Mn(){}var fc="listener",hc="completed",mc="cancelled",_g=`task-${mc}`,Og=`task-${hc}`,Rg=`${fc}-${mc}`,Tg=`${fc}-${hc}`;var{assign:gc}=Object;var is="listenerMiddleware";var Kf=gc(Xt(`${is}/add`),{withTypes:()=>Kf}),kg=Xt(`${is}/removeAll`),qf=gc(Xt(`${is}/remove`),{withTypes:()=>qf});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)}}}),In=class extends Gf(Object){};window.ftReduxStores||(window.ftReduxStores={});var yc=class t extends In{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=pc({...o,reducers:(r=o.reducers)!==null&&r!==void 0?r:{}}),a=cc({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()),Yf="ft-app-info",Cr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Cr.eventName="authentication-change";var Mi=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Mi.eventName="ui-locale-changed";var Xf={session:(t,e)=>{(0,Fn.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>O.dispatchEvent(new Cr(e.payload)),0))}},O=Fn.FtReduxStore.get({name:Yf,reducers:Xf,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 bc=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},sy=(0,bc.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(O)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var 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:O.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:O.name})],e.prototype,"uiLocale",void 0),e});var vc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(vc||(vc={}));var xc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(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.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"})(Ec||(Ec={}));var Ac;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ac||(Ac={}));var Cc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Cc||(Cc={}));var wc;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(wc||(wc={}));var _c;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(_c||(_c={}));var Oc;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(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 Mc;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Mc||(Mc={}));var Ic;(function(t){t.ASC="ASC",t.DESC="DESC"})(Ic||(Ic={}));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 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 Yc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Yc||(Yc={}));var Xc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Xc||(Xc={}));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 od(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))}var jn=c(m());var os=c(m());var wr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=O.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=O.subscribe(()=>{i=t.get(e),i&&(o(),r(i))})}})}};var Xr=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 Xr{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 os.CacheRegistry,this.cache=e?o.commonCache:new os.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}=O.getState();return od(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=O.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=O.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=O.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;as(t,r,[...ss(t,r),o]),sd(t,r,1,i),ad(t,o)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;as(t,r,ss(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;as(t,r,ss(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},ss=(t,e)=>{var r;let i=ld[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},as=(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:[]}}),ls=class{constructor(e=new Vn,r=new Hn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=O.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new zn,this.savedSearchesService=new Un,O.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=O.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 ls;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=eh);var cs=class{addCommand(e,r=!1){O.commands.add(e,r)}consumeCommand(e){return O.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new cs;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=O.getState().uiLocale,O.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=O.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let 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 Ii=window.FluidTopicsI18nService,ds=window.FluidTopicsCustomI18nService;var dd=c(m()),us=class{highlightHtml(e,r,i){(0,dd.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new us;var ud=c(m());var ps=class{isDate(e){var r,i,o,n;return(n=(o=((i=(r=O.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===e))===null||o===void 0?void 0:o.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:O.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 ps;var pd=c(m());var Ni=class{static get(e,r){var i,o,n,s;let a=O.getState(),{lang:l,region:d}=(n=(o=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||o===void 0?void 0:o.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new pd.SearchPlaceConverter(a.baseUrl,e??20,(s=a.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${l}-${d}`)}};var fs=class{urlToSearchRequest(e){return Ni.get().parse(e)}searchRequestToUrl(e){return Ni.get().serialize(e)}};window.FluidTopicsUrlService=new fs;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 hs=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 hs;var Kn=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=Kn.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
|
|
618
|
+
`;var Ga=["top","right","bottom","left"],qa=["start","end"],ko=Ga.reduce((t,e)=>t.concat(e,e+"-"+qa[0],e+"-"+qa[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 Ya(t,e,r){return Kt(t,vi(e,r))}function tn(t,e){return typeof t=="function"?t(e):t}function Si(t){return t.split("-")[0]}function qt(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 Xa(t,e,r){r===void 0&&(r=!1);let i=qt(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 Za(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 Qa(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 Ja(t,e,r){let{reference:i,floating:o}=t,n=rn(e),s=Do(e),a=$o(s),l=Si(e),u=n==="y",d=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:d,y:i.y-o.height};break;case"bottom":b={x:d,y:i.y+i.height};break;case"right":b={x:i.x+i.width,y:p};break;case"left":b={x:i.x-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&&u?-1:1)),b}async function el(t,e){var r;e===void 0&&(e={});let{x:i,y:o,platform:n,rects:s,elements:a,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:f=!1,padding:b=0}=tn(e,t),x=Qa(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:u,rootBoundary:d,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,tl=async(t,e,r)=>{let{placement:i="bottom",strategy:o="absolute",middleware:n=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:el},l=await(s.isRTL==null?void 0:s.isRTL(e)),u=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:d,y:p}=Ja(u,i,l),f=i,b=0,x={};for(let _=0;_<n.length;_++){let v=n[_];if(!v)continue;let{name:T,fn:H}=v,{x:S,y:D,data:B,reset:ae}=await H({x:d,y:p,initialPlacement:i,placement:f,strategy:o,middlewareData:x,rects:u,platform:a,elements:{reference:t,floating:e}});d=S??d,p=D??p,x[T]={...x[T],...B},ae&&b<Lp&&(b++,typeof ae=="object"&&(ae.placement&&(f=ae.placement),ae.rects&&(u=ae.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:o}):ae.rects),{x:d,y:p}=Ja(u,f,l)),_=-1)}return{x:d,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?Za(o)!==o:!1):!0)}var rl=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:u}=e,{crossAxis:d=!1,alignment:p,allowedPlacements:f=ko,autoAlignment:b=!0,...x}=tn(t,e),_=p!==void 0||f===ko?$p(p||null,b,f):f,v=((r=s.autoPlacement)==null?void 0:r.index)||0,T=_[v];if(T==null)return{};if(a!==T)return{reset:{placement:_[0]}};let H=await l.detectOverflow(e,x),S=Xa(T,n,await(l.isRTL==null?void 0:l.isRTL(u.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=_[v+1];if(ae)return{data:{index:v+1,overflows:B},reset:{placement:ae}};let Q=B.map(tt=>{let or=qt(tt.placement);return[tt.placement,or&&d?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,qt(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 il=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}}},...u}=tn(t,e),d={x:r,y:i},p=await n.detectOverflow(e,u),f=rn(o),b=Lo(f),x=d[b],_=d[f],v=(H,S)=>Ya(S+p[H==="y"?"top":"left"],S,S-p[H==="y"?"bottom":"right"]);s&&(x=v(b,x)),a&&(_=v(f,_));let T=l.fn({...e,[b]:x,[f]:_});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 ol(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=(ol(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ol(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 nl(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 sl(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 al(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||nl(t)&&t.host||Nt(t);return nl(e)?e.host:e}function ll(t){let e=Gt(t);return Hr(e)?(t.ownerDocument||t).body:Ft(e)&&Ei(e)?e:ll(e)}function nn(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let o=ll(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 dl(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 pl(t){return ht(t)?t:t.contextElement}function jr(t){let e=pl(t);if(!Ft(e))return _t(1);let r=e.getBoundingClientRect(),{width:i,height:o,$:n}=dl(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 Mp=_t(0);function fl(t){let e=ze(t);return!sn()||!e.visualViewport?Mp:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ip(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=pl(t),s=_t(1);e&&(i?ht(i)&&(s=jr(i)):s=jr(t));let a=Ip(n,r,i)?fl(n):_t(0),l=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,d=o.width/s.x,p=o.height/s.y;if(n&&i){let f=ze(n),b=ht(i)?ze(i):i,x=f,_=an(x);for(;_&&b!==x;){let v=jr(_),T=_.getBoundingClientRect(),H=mt(_),S=T.left+(_.clientLeft+parseFloat(H.paddingLeft))*v.x,D=T.top+(_.clientTop+parseFloat(H.paddingTop))*v.y;l*=v.x,u*=v.y,d*=v.x,p*=v.y,l+=S,u+=D,x=ze(_),_=an(x)}}return br({width:d,height:p,x:l,y:u})}function ln(t,e){let r=Ci(t).scrollLeft;return e?e.left+r:wi(Nt(t)).left+r}function hl(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},u=_t(1),d=_t(0),p=Ft(i);if((p||!n)&&((xr(i)!=="body"||Ei(s))&&(l=Ci(i)),p)){let b=wi(i);u=jr(i),d.x=b.x+i.clientLeft,d.y=b.y+i.clientTop}let f=s&&!p&&!n?hl(s,l):_t(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+d.x+f.x,y:r.y*u.y-l.scrollTop*u.y+d.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+ln(t),s=-e.scrollTop;return mt(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=Nt(t),s=o.visualViewport,a=n.clientWidth,l=n.clientHeight,u=0,d=0;if(s){let f=!sn()||e==="fixed";i?f||(u=-s.offsetLeft,d=-s.offsetTop):(a=s.width,l=s.height,f&&(u=s.offsetLeft,d=s.offsetTop))}if(ln(n)<=0){let f=n.ownerDocument,b=f.body,x=getComputedStyle(b),_=f.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,v=Math.abs(n.clientWidth-b.clientWidth-_),T=getComputedStyle(n).scrollbarGutter==="stable both-edges"?v/2:v;T<=Up&&(a-=T)}return{width:a,height:l,x:u,y:d}}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,u=i*n.y;return{width:s,height:a,x:l,y:u}}function cl(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=fl(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),u=o?o.position:n?"fixed":"";!l&&(u==="fixed"||u==="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=cl(e,s[0],o),l=a.top,u=a.right,d=a.bottom,p=a.left;for(let f=1;f<s.length;f++){let b=cl(e,s[f],o);l=Kt(b.top,l),u=vi(b.right,u),d=vi(b.bottom,d),p=Kt(b.left,p)}return{width:u-p,height:d-l,x:p,y:l}}function Wp(t){let{width:e,height:r}=dl(t);return{width:e,height:r}}function Kp(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 u=o&&!i&&!n?hl(o,a):_t(0),d=s.left+a.scrollLeft-l.x-u.x,p=s.top+a.scrollTop-l.y-u.y;return{x:d,y:p,width:s.width,height:s.height}}function Mo(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 ml(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)&&!Mo(o))return o;o=Gt(o)}return r}let i=ul(t,e);for(;i&&sl(i)&&Mo(i);)i=ul(i,e);return i&&Hr(i)&&Mo(i)&&!Vr(i)?r:i||al(t)||r}var qp=async function(t){let e=this.getOffsetParent||ml,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 mt(t).direction==="rtl"}var cn={convertOffsetParentRelativeRectToViewportRelativeRect:Np,getDocumentElement:Nt,getClippingRect:jp,getOffsetParent:ml,getElementRects:qp,getClientRects:Fp,getDimensions:Wp,getScale:jr,isElement:ht,isRTL:Gp};var gl=rl,yl=il;var bl=(t,e,r)=>{let i=new Map,o=r??{},n={...cn,...o.platform,_c:i};return tl(t,e,{...o,platform:n})};function vl(t){return Yp(t)}function Io(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Yp(t){for(let e=t;e;e=Io(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Io(t);e;e=Io(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 xl(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},bl(t,e,{strategy:i.strategy,platform:{...cn,getOffsetParent:o=>cn.getOffsetParent(o,vl)},middleware:[yl({crossAxis:!0}),gl({allowedPlacements:[i.placement]})]})}var Jr=c(m());var ns=c(j());var Sl=c(j(),1);var No=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function El(t,e){return(0,Sl.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return _i(t);try{return JSON.parse(r)}catch{return _i(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Oi,...e??{}})}function Xp(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 Xp(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 un(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 Al=c(j(),1);var Fo=t=>{let e=t??{};return(r,i)=>{var o;let n={hasChanged:Oi,attribute:!1,...e};(0,Al.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 dn=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 wl=c(E(),1);var fn=globalThis,Zp=fn.ShadowRoot&&(fn.ShadyCSS===void 0||fn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Cl=(t,e)=>{if(Zp)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),o=fn.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=r.cssText,t.appendChild(i)}};var hn=class extends wl.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 Cl(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 _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 hn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[kl]=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[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,u=e.filter(l).map(f=>f.trim());if(u.length===0){this.exportparts=void 0;return}let d=new Set;for(let f of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let b=(n=(o=f.getAttribute("part"))===null||o===void 0?void 0:o.split(" "))!==null&&n!==void 0?n:[],x=(a=(s=f.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(v=>v.split(":")[1]))!==null&&a!==void 0?a:[],_=[...b,...x].filter(l).map(v=>v.trim());for(let v of _)d.add(v)}if(d.size===0){this.exportparts=void 0;return}let p=[...d.values()].flatMap(f=>u.map(b=>`${f}:${b}--${f}`));this.exportparts=[...this.part,...p].join(", ")}};kl=Ll;qr([(0,Sr.property)()],Ot.prototype,"exportpartsPrefix",void 0);qr([El([])],Ot.prototype,"exportpartsPrefixes",void 0);qr([(0,Sr.property)({reflect:!0})],Ot.prototype,"exportparts",void 0);qr([(0,Sr.property)()],Ot.prototype,"customStylesheet",void 0);qr([(0,Sr.property)()],Ot.prototype,"elementToFocus",void 0);qr([(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"),Yt=Symbol("internalStoresUnsubscribers"),Er=Symbol("internalStores"),Qp=un(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 u=this.getStore(s.store);u&&(s.store?this[Yt].has(s.store):this[Yt].size>0)&&(this[a]=s.selector(u.getState(),this))}})}subscribeToStore(s,a){var l;this[Yt].set(s,a.subscribe(()=>this.updateFromStores())),this[Ri].set(s,[]),mn(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((u,d)=>{if(typeof this[d]=="function"&&(!u.store||a.name===u.store)){let p=f=>this[d](f);a.addEventListener(u.eventName,p),this[Ri].get(s).push(()=>a.removeEventListener(u.eventName,p))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Yt].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[Yt].has(s)&&this[Yt].get(s)(),this[Yt].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=Yt,r=Er,i=Ri,o.reduxProperties=new Map,o.reduxReactiveProperties=new Set,o.reduxEventListeners=new Map,o}),$l=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",Dl=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 u(){s===n&&(s=new Map,n.forEach((v,T)=>{s.set(T,v)}))}function d(){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;u();let H=a++;return s.set(H,v),function(){if(T){if(l)throw new Error(Ee(6));T=!1,u(),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(d())}return H(),{unsubscribe:v(H)}},[Dl](){return this}}}return f({type:gn.INIT}),{dispatch:f,subscribe:p,getState:d,replaceReducer:b,[Dl]: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 Pl(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 u=!1,d={};for(let p=0;p<i.length;p++){let f=i[p],b=r[f],x=a[f],_=b(x,l);if(typeof _>"u"){let v=l&&l.type;throw new Error(Ee(14))}d[f]=_,u=u||_!==x}return u=u||i.length!==Object.keys(a).length,u?d:a}}function Ti(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function Ml(...t){return e=>(r,i)=>{let o=e(r,i),n=()=>{throw new Error(Ee(15))},s={getState:o.getState,dispatch:(l,...u)=>n(l,...u)},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 Wl=Symbol.for("immer-nothing"),Nl=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 Ke=Object,Yr=Ke.getPrototypeOf,Sn="constructor",On="prototype",jo="configurable",En="enumerable",vn="writable",ki="value",Rt=t=>!!t&&!!t[ke];function qe(t){return t?Kl(t)||Tn(t)||!!t[Nl]||!!t[Sn]?.[Nl]||kn(t)||Ln(t):!1}var rf=Ke[On][Sn].toString(),Fl=new WeakMap;function Kl(t){if(!t||!Qo(t))return!1;let e=Yr(t);if(e===null||e===Ke[On])return!0;let r=Ke.hasOwnProperty.call(e,Sn)&&e[Sn];if(r===Object)return!0;if(!Gr(r))return!1;let i=Fl.get(r);return i===void 0&&(i=Function.toString.call(r),Fl.set(r,i)),i===rf}function Rn(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_:Tn(t)?1:kn(t)?2:Ln(t)?3:0}var zo=(t,e,r=Di(t))=>r===2?t.has(e):Ke[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 Ko(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=Kl(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[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 Ke.create(Yr(t),i)}else{let i=Yr(t);if(i!==null&&r)return{...t};let o=Ke.create(i);return Ke.assign(o,t)}}function es(t,e=!1){return $n(t)||Rt(t)||!qe(t)||(Di(t)>1&&Ke.defineProperties(t,{set:bn,add:bn,clear:bn,delete:bn}),Ke.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:Ke.isFrozen(t)}var Cn="MapSet",qo="Patches",Bl="ArrayMethods",ql={};function Ar(t){let e=ql[t];return e||gt(0,t),e}var Ul=t=>!!ql[t];var Li,Gl=()=>Li,af=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Ul(Cn)?Ar(Cn):void 0,arrayMethodsPlugin_:Ul(Bl)?Ar(Bl):void 0});function zl(t,e){e&&(t.patchPlugin_=Ar(qo),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Go(t){Yo(t),t.drafts_.forEach(lf),t.drafts_=null}function Yo(t){t===Li&&(Li=t.parent_)}var Vl=t=>Li=af(Li,t);function lf(t){let e=t[ke];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Hl(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)),qe(t)&&(t=jl(e,t));let{patchPlugin_:o}=e;o&&o.generateReplacementPatches_(r[ke].base_,t,e)}else t=jl(e,r);return cf(e,t,!0),Go(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Wl?t:void 0}function jl(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);Zl(r,t)}return r.copy_}function cf(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&es(e,r)}function Yl(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Dn=(t,e)=>t.scope_===e,uf=[];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,u)=>{if(Rt(u)){let d=a.get(u)||[];d.push(l),a.set(u,d)}})}let s=t.draftLocations_.get(e)??uf;for(let a of s)An(o,a,r,n)}function df(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),Zl(n,o)})}function Zl(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)}Yl(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 qe(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)||!qe(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_),Yl(n)}}else qe(o)&&wn(o,e,r)})),t}function ff(t,e){let r=Tn(t),i={type_:r?1:0,scope_:e?e.scope_:Gl(),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_||!qe(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=Ql(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),Xo(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),Xo(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 Yr(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)||!qe(r)||r[ke]?!1:t.baseRefs_.has(r)}function mf(t,e,r){let i=Ql(e,r);return i?ki in i?i[ki]:i.get?.call(t.draft_):void 0}function Ql(t,e){if(!(e in t))return;let r=Yr(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Yr(r)}}function Xo(t){t.modified_||(t.modified_=!0,t.parent_&&Xo(t.parent_))}function xn(t){t.copy_||(t.assigned_=new Map,t.copy_=Ko(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,...u){return s.produce(l,d=>r.call(this,d,...u))}}Gr(r)||gt(6),i!==void 0&&!Gr(i)&>(7);let o;if(qe(e)){let n=Vl(this),s=Zo(n,e,void 0),a=!0;try{o=r(s),a=!1}finally{a?Go(n):Yo(n)}return zl(n,i),Hl(o,n)}else if(!e||!Qo(e)){if(o=r(e),o===void 0&&(o=e),o===Wl&&(o=void 0),this.autoFreeze_&&es(o,!0),i){let n=[],s=[];Ar(qo).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){qe(t)||gt(8),Rt(t)&&(t=Jl(t));let e=Vl(this),r=Zo(e,t,void 0);return r[ke].isManual_=!0,Yo(e),r}finishDraft(t,e){let r=t&&t[ke];(!r||!r.isManual_)&>(9);let{scope_:i}=r;return zl(i,e),Hl(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(qo).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_??Gl()).drafts_.push(o),n.callbacks_=r?.callbacks_??[],n.key_=i,r&&i!==void 0?df(r,n,i):n.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(n);let{patchPlugin_:u}=l;n.modified_&&u&&u.generatePatches_(n,[],l)}),o}function Jl(t){return Rt(t)||gt(10,t),ec(t)}function ec(t){if(!qe(t)||$n(t))return t;let e=t[ke],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=Ko(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=Ko(t,!0);return Rn(r,(o,n)=>{An(r,o,ec(n))},i),e&&(e.finalized_=!1),r}var yf=globalThis.Iterator,gg=typeof yf?.from=="function";var bf=new gf,ts=bf.produce;function tc(t){return({dispatch:r,getState:i})=>o=>n=>typeof n=="function"?n(r,i,t):o(n)}var rc=tc(),ic=tc;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)},Ag=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 Xt(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 lc=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 nc(t){return qe(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 lc;return r&&(Sf(r)?s.push(rc):s.push(ic(r.extraArgument))),s},Af="RTK_autoBatch";var oc=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):oc(10):t.type==="callback"?t.queueNotification:oc(t.timeout),u=()=>{s=!1,n&&(n=!1,a.forEach(d=>d()))};return Object.assign({},i,{subscribe(d){let p=()=>o&&d(),f=i.subscribe(p);return a.add(d),()=>{f(),a.delete(d)}},dispatch(d){try{return o=!d?.meta?.[Af],n=!o,n&&(s||(s=!0,l(u))),i.dispatch(d)}finally{o=!0}}})},_f=t=>function(r){let{autoBatch:i=!0}=r??{},o=new lc(t);return i&&o.push(wf(typeof i=="object"?i:void 0)),o};function cc(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=Pl(r);else throw new Error(Ut(1));let u;typeof i=="function"?u=i(e):u=e();let d=Ti;o&&(d=vf({trace:!1,...typeof o=="object"&&o}));let p=Ml(...u),f=_f(p),b=typeof a=="function"?a(f):f(),x=d(...b);return Uo(l,s,x)}function uc(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]=uc(e),n;if(Of(t))n=()=>nc(t());else{let a=nc(t);n=()=>a}function s(a=n(),l){let u=[r[l.type],...i.filter(({matcher:d})=>d(l)).map(({reducer:d})=>d)];return u.filter(d=>!!d).length===0&&(u=[o]),u.reduce((d,p)=>{if(p)if(Rt(d)){let b=p(d,l);return b===void 0?d:b}else{if(qe(d))return ts(d,f=>p(f,l));{let f=p(d,l);if(f===void 0){if(d===null)return d;throw Error("A case reducer on a non-draftable value must not return undefined")}return f}}return d},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},sc=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)}},ac="External signal was aborted",Mf=(()=>{function t(e,r,i){let o=Xt(e+"/fulfilled",(l,u,d,p)=>({payload:l,meta:{...p||{},arg:d,requestId:u,requestStatus:"fulfilled"}})),n=Xt(e+"/pending",(l,u,d)=>({payload:void 0,meta:{...d||{},arg:u,requestId:l,requestStatus:"pending"}})),s=Xt(e+"/rejected",(l,u,d,p,f)=>({payload:p,error:(i&&i.serializeError||Pf)(l||"Rejected"),meta:{...f||{},arg:d,requestId:u,rejectedWithValue:!!p,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:u}={}){return(d,p,f)=>{let b=i?.idGenerator?i.idGenerator(l):$f(),x=new AbortController,_,v;function T(S){v=S,x.abort()}u&&(u.aborted?T(ac):u.addEventListener("abort",()=>T(ac),{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)=>{_=()=>{le({name:"AbortError",message:v||"Aborted"})},x.signal.addEventListener("abort",_,{once:!0})});d(n(b,l,i?.getPendingMeta?.({requestId:b,arg:l},{getState:p,extra:f}))),S=await Promise.race([ae,Promise.resolve(r(l,{dispatch:d,getState:p,extra:f,requestId:b,signal:x.signal,abort:T,rejectWithValue:((Q,le)=>new rs(Q,le)),fulfillWithValue:((Q,le)=>new sc(Q,le))})).then(Q=>{if(Q instanceof rs)throw Q;return Q instanceof sc?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{_&&x.signal.removeEventListener("abort",_)}return i&&!i.dispatchConditionRejection&&s.match(S)&&S.meta.condition||d(S),S})();return Object.assign(H,{abort:T,requestId:b,arg:l,unwrap(){return H.then(If)}})}}return Object.assign(a,{pending:n,rejected:s,fulfilled:o,settled:kf(s,o),typePrefix:e})}return t.withTypes=()=>t,t})();function If(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"),wg={[dc]:Mf};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:[]},u={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,u},addMatcher(S,D){return l.sliceMatchers.push({matcher:S,reducer:D}),u},exposeAction(S,D){return l.actionCreators[S]=D,u},exposeCaseReducer(S,D){return l.sliceCaseReducersByName[S]=D,u}};a.forEach(S=>{let D=s[S],B={reducerName:S,type:Ff(o,S),createNotation:typeof i.reducers=="function"};Hf(D)?Wf(B,D,u,e):Vf(B,D,u)});function d(){let[S={},D=[],B=void 0]=typeof i.extraReducers=="function"?uc(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 _(S,D){return x||(x=d()),x(S,D)}function v(){return x||(x=d()),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:_,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:_},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 pc=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?Xt(t,s):Xt(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:u,options:d}=r,p=o(t,n,d);i.exposeAction(e,p),s&&i.addCase(p.fulfilled,s),a&&i.addCase(p.pending,a),l&&i.addCase(p.rejected,l),u&&i.addMatcher(p.settled,u),i.exposeCaseReducer(e,{fulfilled:s||Mn,pending:a||Mn,rejected:l||Mn,settled:u||Mn})}function Mn(){}var fc="listener",hc="completed",mc="cancelled",_g=`task-${mc}`,Og=`task-${hc}`,Rg=`${fc}-${mc}`,Tg=`${fc}-${hc}`;var{assign:gc}=Object;var is="listenerMiddleware";var Kf=gc(Xt(`${is}/add`),{withTypes:()=>Kf}),kg=Xt(`${is}/removeAll`),qf=gc(Xt(`${is}/remove`),{withTypes:()=>qf});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=un(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)}}}),In=class extends Gf(Object){};window.ftReduxStores||(window.ftReduxStores={});var yc=class t extends In{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=pc({...o,reducers:(r=o.reducers)!==null&&r!==void 0?r:{}}),a=cc({reducer:(l,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let d=_i(s.getInitialState());for(let p of u.keeping)d[p]=(l??d)[p];return d}else if(typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...u.overwrites};return s.reducer(l,u)}});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 dn,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,u=n[l];return u?(...d)=>{let p=u(...d.map(o));return this.reduxStore.dispatch(p),p}:d=>{let p=l,f=this.getState()[p];Wr(f,d)||this.setState({[p]:o(d)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var 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()),Yf="ft-app-info",Cr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Cr.eventName="authentication-change";var Mi=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Mi.eventName="ui-locale-changed";var Xf={session:(t,e)=>{(0,Fn.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>O.dispatchEvent(new Cr(e.payload)),0))}},O=Fn.FtReduxStore.get({name:Yf,reducers:Xf,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 bc=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},sy=(0,bc.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(O)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var 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:O.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:O.name})],e.prototype,"uiLocale",void 0),e});var vc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(vc||(vc={}));var xc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(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.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"})(Ec||(Ec={}));var Ac;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ac||(Ac={}));var Cc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Cc||(Cc={}));var wc;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(wc||(wc={}));var _c;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(_c||(_c={}));var Oc;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(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 Mc;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Mc||(Mc={}));var Ic;(function(t){t.ASC="ASC",t.DESC="DESC"})(Ic||(Ic={}));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 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 Yc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Yc||(Yc={}));var Xc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Xc||(Xc={}));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 eu;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(eu||(eu={}));var tu;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(tu||(tu={}));var ru;(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"})(ru||(ru={}));var iu;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(iu||(iu={}));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 nu(t,e){return t===e||(Zf[t]??[]).some(r=>nu(r,e))}function ou(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=>nu(i,e))}var jn=c(m());var os=c(m());var wr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=O.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=O.subscribe(()=>{i=t.get(e),i&&(o(),r(i))})}})}};var Xr=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 Xr{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 os.CacheRegistry,this.cache=e?o.commonCache:new os.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}=O.getState();return ou(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=O.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=O.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=O.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;as(t,r,[...ss(t,r),o]),su(t,r,1,i),au(t,o)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;as(t,r,ss(t,r).map(o=>o.id===i.id?i:o)),au(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:o}=e.payload;as(t,r,ss(t,r).filter(n=>n.id!==o)),su(t,r,-1,i)}},lu={[ot.SEARCHES]:"savedSearches",[ot.BOOKMARKS]:"bookmarks",[ot.BOOKS]:void 0,[ot.COLLECTIONS]:void 0},ss=(t,e)=>{var r;let i=lu[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},as=(t,e,r)=>{let i=lu[e];i&&(t[i]=r)},su=(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)}},au=(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:[]}}),ls=class{constructor(e=new Vn,r=new Hn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=O.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new zn,this.savedSearchesService=new Un,O.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=O.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 ls;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=eh);var cs=class{addCommand(e,r=!1){O.commands.add(e,r)}consumeCommand(e){return O.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new cs;var st=c(m());var cu,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[cu]=()=>{this.defaultMessages={},this.cache=new st.CacheRegistry,this.listeners={}},this.currentUiLocale=O.getState().uiLocale,O.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=O.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let 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)))}};cu=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 Ii=window.FluidTopicsI18nService,us=window.FluidTopicsCustomI18nService;var uu=c(m()),ds=class{highlightHtml(e,r,i){(0,uu.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new ds;var du=c(m());var ps=class{isDate(e){var r,i,o,n;return(n=(o=((i=(r=O.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===e))===null||o===void 0?void 0:o.date)!==null&&n!==void 0?n:!1}format(e,r){var i,o,n,s;if(e==null)return"";try{return du.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:O.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 ps;var pu=c(m());var Ni=class{static get(e,r){var i,o,n,s;let a=O.getState(),{lang:l,region:u}=(n=(o=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||o===void 0?void 0:o.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new pu.SearchPlaceConverter(a.baseUrl,e??20,(s=a.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${l}-${u}`)}};var fs=class{urlToSearchRequest(e){return Ni.get().parse(e)}searchRequestToUrl(e){return Ni.get().serialize(e)}};window.FluidTopicsUrlService=new fs;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 hs=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},fu=new hs;var Kn=class t extends zt.WithEventBus{static build(){return new t(window.history,fu,()=>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 u=r(),d={...u===this.currentIndex?this.currentState:void 0,...n,index:u,href:l.detail.nextLocation.href};i.apply(o,[d,s,d.href]),this.setCurrentState(d,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addBeforeLocationChangeListener(e){this.addEventListener(_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=Kn.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 hu=c(E());var mu=hu.css`
|
|
619
|
+
`;var bu=c(E()),Pe=c(j()),kr=c(m());var Rr=c(m());function gu(t,e){let{authenticationRequired:r,session:i}=O.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var qn=class extends Xr{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var ms=class t extends Rr.FtStateManager{static build(e){return new t(O,e)}constructor(e,r){super(),this.store=e,this.cache=new Rr.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new qn,this.cleanSessionDebouncer=new Rr.Debouncer,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new Rr.Debouncer(500),this.apiProvider=r??(()=>wr.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(Cr.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(Cr.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let r=await this.cache.get("availableContentLocales",()=>gu(()=>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 Mi(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)}},yu=ms.build();var Tr=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 Tr(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 ve=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 kr.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=yu,this.contextRoot=new Fi}render(){return bu.html`
|
|
620
620
|
<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=>Ii.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=
|
|
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=>Ii.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=mu;ve([(0,Pe.property)()],ie.prototype,"baseUrl",void 0);ve([(0,Pe.property)()],ie.prototype,"tenantId",void 0);ve([(0,Pe.property)()],ie.prototype,"apiIntegrationIdentifier",void 0);ve([(0,Pe.property)()],ie.prototype,"apiIntegrationAppVersion",void 0);ve([(0,Pe.property)()],ie.prototype,"uiLocale",void 0);ve([(0,kr.jsonProperty)(null)],ie.prototype,"availableUiLocales",void 0);ve([(0,kr.jsonProperty)(null)],ie.prototype,"metadataConfiguration",void 0);ve([(0,Pe.property)({type:Boolean})],ie.prototype,"editorMode",void 0);ve([(0,Pe.property)({type:Boolean})],ie.prototype,"noCustom",void 0);ve([(0,Pe.property)({type:Boolean})],ie.prototype,"openExternalDocumentInNewTab",void 0);ve([(0,Pe.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ie.prototype,"noCustomComponent",void 0);ve([(0,Pe.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ie.prototype,"noCustomCode",void 0);ve([(0,Pe.property)({type:Boolean})],ie.prototype,"withManualResources",void 0);ve([(0,Pe.property)({type:Boolean})],ie.prototype,"navigatorOnline",void 0);ve([(0,Pe.property)({type:Boolean})],ie.prototype,"forcedOffline",void 0);ve([(0,Pe.property)({type:Boolean})],ie.prototype,"authenticationRequired",void 0);ve([(0,kr.jsonProperty)([])],ie.prototype,"messageContexts",void 0);ve([(0,kr.jsonProperty)(void 0)],ie.prototype,"session",void 0);var xu=c(m());var vu={"ft-app-context":ie};(0,xu.customElements)(vu);var Su=c(j());var gs=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 gs;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"),Eu=Symbol("i18nListAttributes"),Au=Symbol("i18nProperties"),Gn=Symbol("i18nContexts"),Bi=Symbol("i18nUnsubs"),Zn=(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?us:Ii}i18n(n){let{context:s,key:a,message:l}=n,{custom:u,args:d,argsProvider:p}=n;if(s&&a){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let f=d??(p?p(this):[]);return this.getI18nService(u).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 u;return((u=l?.context)===null||u===void 0?void 0:u.toLowerCase())===n}),this.updateI18nProperties(s=>s.context.toLowerCase()===n),this.requestUpdate()}updateI18nAttributes(n){var s,a;let l=this,u=(d,p,f)=>f?.context&&f.key&&n(d,p,f)?{...f,message:this.i18n({context:f.context,key:f.key,custom:f.custom,...d})}:f;(s=this[Ui])===null||s===void 0||s.forEach((d,p)=>l[p]=u(d,p,l[p])),(a=this[Eu])===null||a===void 0||a.forEach((d,p)=>{var f;return l[p]=(f=l[p])===null||f===void 0?void 0:f.map(b=>u(d,p,b))})}updateI18nProperties(n){var s;(s=this[Au])===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[Gn].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[Gn].has(n.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Gn].forEach((n,s)=>this.addI18nContext(s,void 0,n.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Bi].forEach(n=>n()),this[Bi].clear()}}return e=Gn,r=Bi,nh([(0,Su.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),Yn=class extends Zn(Jr.FtLitElement){},Xn=class extends Zn(Jr.FtLitElementRedux){};var Cu=c(m());var ys=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 ys;var wu=(t,e)=>(r,i)=>{var o;r.constructor.createProperty(i,{type:Object,hasChanged:Cu.hasChanged,converter:Qr,...e}),r[Ui]=(o=r[Ui])!==null&&o!==void 0?o:new Map,r[Ui].set(i,t??{})};var _u=c(E());var Ou=_u.css`
|
|
622
622
|
`;var Qn=c(E()),ti=c(j()),Jn=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 Xn{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(O)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:Qn.nothing:Qn.html`
|
|
623
623
|
<span class="ft-i18n">
|
|
624
624
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
625
625
|
</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=
|
|
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=Ou;ei([(0,Jn.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,Jn.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 Tu=c(m());var Ru={"ft-i18n":at};(0,Tu.customElements)(Ru);var yt=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},ce=class extends Yn{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 ku.html`
|
|
627
627
|
<div part="container"
|
|
628
628
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
|
|
629
629
|
<slot part="slot"></slot>
|
|
@@ -638,19 +638,19 @@
|
|
|
638
638
|
</div>
|
|
639
639
|
</div>
|
|
640
640
|
</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&&xl(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":K};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()),Id=c(m()),Nd=c(Pd());var Ye;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK="",t.BOOKMARK_SLASH="",t.CIRCLE_PAUSE="",t.CIRCLE_PLAY="",t.CIRCLE_STOP_PLAIN="",t.CIRCLE_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID="",t.FILE_CODE="",t.BOX_CODE="",t.TOPICS_SOLID="",t.PHOTO_FILM="",t.HYPHEN_SOLID="",t.CROSSHAIRS="",t.PERSON_CHALKBOARD="",t.CIRCLE_ARROW_DOWN_SLASH="",t.BOOK_OPEN_COVER="",t.LIGHTBULB="",t.MESSAGE_BOT_AGENTIC_SOLID="",t.CHART_LINE_USER="",t.SERVER_CIRCLE_ARROW_DOWN="",t.EYE="",t.SHARE="󨃱"})(Ye||(Ye={}));var 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 bs=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 Md(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=bs.get(a))!==null&&i!==void 0?i:bs.get(e))!==null&&o!==void 0?o:bs.get(s))!==null&&n!==void 0?n:g.UNKNOWN}var kx={[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 Id.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`
|
|
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&&xl(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":K};ce.styles=Ka;yt([wu()],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 $u=c(m());var Lu={"ft-tooltip":ce};(0,$u.customElements)(Lu);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()),Iu=c(m()),Nu=c(Pu());var Ye;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK="",t.BOOKMARK_SLASH="",t.CIRCLE_PAUSE="",t.CIRCLE_PLAY="",t.CIRCLE_STOP_PLAIN="",t.CIRCLE_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID="",t.FILE_CODE="",t.BOX_CODE="",t.TOPICS_SOLID="",t.PHOTO_FILM="",t.HYPHEN_SOLID="",t.CROSSHAIRS="",t.PERSON_CHALKBOARD="",t.CIRCLE_ARROW_DOWN_SLASH="",t.BOOK_OPEN_COVER="",t.LIGHTBULB="",t.MESSAGE_BOT_AGENTIC_SOLID="",t.CHART_LINE_USER="",t.SERVER_CIRCLE_ARROW_DOWN="",t.EYE="",t.SHARE="󨃱"})(Ye||(Ye={}));var 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 bs=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 Mu(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=bs.get(a))!==null&&i!==void 0?i:bs.get(e))!==null&&o!==void 0?o:bs.get(s))!==null&&n!==void 0?n:g.UNKNOWN}var kx={[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 Iu.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`
|
|
642
642
|
<i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
|
|
643
|
-
${(0,
|
|
643
|
+
${(0,Nu.unsafeHTML)(this.resolvedIcon)}
|
|
644
644
|
<slot ?hidden=${r}></slot>
|
|
645
645
|
</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 bt.file_format:this.resolvedIcon=(e=g[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case bt.material:this.resolvedIcon=this.value||zi.nothing;break;default:this.resolvedIcon=(r=Ye[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};ne.elementDefinitions={};ne.styles=Da;Vi([(0,Zt.property)()],ne.prototype,"variant",void 0);Vi([(0,Zt.property)()],ne.prototype,"value",void 0);Vi([(0,Zt.property)({reflect:!0,attribute:"aria-hidden"})],ne.prototype,"ariaHidden",void 0);Vi([(0,Zt.state)()],ne.prototype,"resolvedIcon",void 0);Vi([(0,Zt.query)("slot")],ne.prototype,"slottedContent",void 0);var
|
|
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 bt.file_format:this.resolvedIcon=(e=g[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case bt.material:this.resolvedIcon=this.value||zi.nothing;break;default:this.resolvedIcon=(r=Ye[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};ne.elementDefinitions={};ne.styles=Da;Vi([(0,Zt.property)()],ne.prototype,"variant",void 0);Vi([(0,Zt.property)()],ne.prototype,"value",void 0);Vi([(0,Zt.property)({reflect:!0,attribute:"aria-hidden"})],ne.prototype,"ariaHidden",void 0);Vi([(0,Zt.state)()],ne.prototype,"resolvedIcon",void 0);Vi([(0,Zt.query)("slot")],ne.prototype,"slottedContent",void 0);var Bu=c(m());var Fu={"ft-icon":ne};(0,Bu.customElements)(Fu);var Uu=c(E()),zu=c(m());var Lr=class extends zu.FtLitElement{render(){return Uu.html`
|
|
647
647
|
<div class="ft-loader">
|
|
648
648
|
<div></div>
|
|
649
649
|
<div></div>
|
|
650
650
|
<div></div>
|
|
651
651
|
<div></div>
|
|
652
652
|
</div>
|
|
653
|
-
`}};Lr.styles=La;var
|
|
653
|
+
`}};Lr.styles=La;var Hu=c(m());var Vu={"ft-loader":Lr};(0,Hu.customElements)(Vu);var Jt=c(E()),eo=c(nt()),W=c(j());var Qt=t=>t??de;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},w=class t extends(0,Tt.toFtFormComponent)(Tt.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let o={"ft-button--label":!0,"ft-safari-ellipsis-fix":Tt.isSafari,"ft-button--label-no-text":!this.hasTextContent},n=Jt.html`
|
|
654
654
|
<ft-ripple part="ripple"
|
|
655
655
|
?disabled=${this.isDisabled()}
|
|
656
656
|
?activated=${this.activated}
|
|
@@ -691,7 +691,7 @@
|
|
|
691
691
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
692
692
|
`:Jt.html`
|
|
693
693
|
<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)}};w.elementDefinitions={"ft-ripple":M,"ft-tooltip":ce,"ft-icon":ne,"ft-loader":Lr,"ft-typography":K};w.styles=[Tt.safariEllipsisFix,Na,Tt.noTextSelect];w.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r.host?r.host.hasTextContent=e.boundingClientRect.width>0:w.labelsObserver.unobserve(e.target)}});J([(0,W.property)({type:Boolean})],w.prototype,"primary",void 0);J([(0,W.property)({type:Boolean})],w.prototype,"outlined",void 0);J([(0,W.property)({type:Boolean})],w.prototype,"dense",void 0);J([(0,W.property)({type:Boolean})],w.prototype,"round",void 0);J([(0,W.property)({type:Boolean})],w.prototype,"disabled",void 0);J([(0,W.property)()],w.prototype,"icon",void 0);J([(0,W.property)()],w.prototype,"iconVariant",void 0);J([(0,W.property)({type:Boolean})],w.prototype,"trailingIcon",void 0);J([(0,W.property)()],w.prototype,"label",void 0);J([(0,W.property)()],w.prototype,"type",void 0);J([(0,W.property)()],w.prototype,"href",void 0);J([(0,W.property)()],w.prototype,"target",void 0);J([(0,W.property)({type:Boolean})],w.prototype,"loading",void 0);J([(0,W.property)({attribute:"aria-label"})],w.prototype,"ariaLabel",void 0);J([(0,W.property)()],w.prototype,"ariaHasPopup",void 0);J([(0,W.property)({attribute:"aria-pressed"})],w.prototype,"ariaPressed",void 0);J([(0,W.property)()],w.prototype,"tooltipPosition",void 0);J([(0,W.property)({type:Boolean})],w.prototype,"hideTooltip",void 0);J([(0,W.property)({type:Boolean})],w.prototype,"forceTooltip",void 0);J([(0,W.property)({type:Boolean})],w.prototype,"activated",void 0);J([(0,W.query)(".ft-button")],w.prototype,"button",void 0);J([(0,W.query)(".ft-button--label")],w.prototype,"labelContainer",void 0);J([(0,W.state)()],w.prototype,"hasTextContent",void 0);J([(0,W.query)(".ft-button--label slot")],w.prototype,"slottedContent",void 0);J([(0,W.query)("[part=tooltip]")],w.prototype,"tooltip",void 0);var
|
|
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)}};w.elementDefinitions={"ft-ripple":M,"ft-tooltip":ce,"ft-icon":ne,"ft-loader":Lr,"ft-typography":K};w.styles=[Tt.safariEllipsisFix,Na,Tt.noTextSelect];w.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r.host?r.host.hasTextContent=e.boundingClientRect.width>0:w.labelsObserver.unobserve(e.target)}});J([(0,W.property)({type:Boolean})],w.prototype,"primary",void 0);J([(0,W.property)({type:Boolean})],w.prototype,"outlined",void 0);J([(0,W.property)({type:Boolean})],w.prototype,"dense",void 0);J([(0,W.property)({type:Boolean})],w.prototype,"round",void 0);J([(0,W.property)({type:Boolean})],w.prototype,"disabled",void 0);J([(0,W.property)()],w.prototype,"icon",void 0);J([(0,W.property)()],w.prototype,"iconVariant",void 0);J([(0,W.property)({type:Boolean})],w.prototype,"trailingIcon",void 0);J([(0,W.property)()],w.prototype,"label",void 0);J([(0,W.property)()],w.prototype,"type",void 0);J([(0,W.property)()],w.prototype,"href",void 0);J([(0,W.property)()],w.prototype,"target",void 0);J([(0,W.property)({type:Boolean})],w.prototype,"loading",void 0);J([(0,W.property)({attribute:"aria-label"})],w.prototype,"ariaLabel",void 0);J([(0,W.property)()],w.prototype,"ariaHasPopup",void 0);J([(0,W.property)({attribute:"aria-pressed"})],w.prototype,"ariaPressed",void 0);J([(0,W.property)()],w.prototype,"tooltipPosition",void 0);J([(0,W.property)({type:Boolean})],w.prototype,"hideTooltip",void 0);J([(0,W.property)({type:Boolean})],w.prototype,"forceTooltip",void 0);J([(0,W.property)({type:Boolean})],w.prototype,"activated",void 0);J([(0,W.query)(".ft-button")],w.prototype,"button",void 0);J([(0,W.query)(".ft-button--label")],w.prototype,"labelContainer",void 0);J([(0,W.state)()],w.prototype,"hasTextContent",void 0);J([(0,W.query)(".ft-button--label slot")],w.prototype,"slottedContent",void 0);J([(0,W.query)("[part=tooltip]")],w.prototype,"tooltip",void 0);var Wu=c(m());var ju={"ft-button":w};(0,Wu.customElements)(ju);var to=c(E()),vt=c(j()),Gu=c(m()),Yu=c(nt());var Ae=c(m()),Ku=c(E());var Xe={textColor:Ae.FtCssVariableFactory.extend("--ft-checkbox-text-color","",Ae.designSystemVariables.colorOnSurfaceHigh),fontSize:Ae.FtCssVariableFactory.extend("--ft-checkbox-font-size","",y.fontSize),activeColor:Ae.FtCssVariableFactory.extend("--ft-checkbox-active-color","",Ae.designSystemVariables.colorPrimary),checkColor:Ae.FtCssVariableFactory.extend("--ft-checkbox-check-color","",Ae.designSystemVariables.colorOnPrimary),borderColor:Ae.FtCssVariableFactory.extend("--ft-checkbox-border-color","",Ae.designSystemVariables.colorOnSurfaceMedium),disabledColor:Ae.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",Ae.designSystemVariables.colorOnSurfaceDisabled),errorColor:Ae.FtCssVariableFactory.extend("--ft-checkbox-error-color","",Ae.designSystemVariables.colorError)},qu=Ku.css`
|
|
695
695
|
* {
|
|
696
696
|
box-sizing: border-box;
|
|
697
697
|
}
|
|
@@ -784,7 +784,7 @@
|
|
|
784
784
|
}
|
|
785
785
|
}
|
|
786
786
|
}
|
|
787
|
-
`;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},vs=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Ce=class extends
|
|
787
|
+
`;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},vs=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Ce=class extends Gu.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 to.html`
|
|
788
788
|
<div class="ft-checkbox--box-container" part="checkbox-box-container">
|
|
789
789
|
<ft-ripple part="checkbox-ripple"
|
|
790
790
|
?disabled=${this.disabled}
|
|
@@ -807,7 +807,7 @@
|
|
|
807
807
|
>
|
|
808
808
|
</div>
|
|
809
809
|
`}render(){return to.html`
|
|
810
|
-
<label class="${(0,
|
|
810
|
+
<label class="${(0,Yu.classMap)(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
|
|
811
811
|
${this.renderBoxContainer()}
|
|
812
812
|
<ft-typography variant="${pe.body2}" part="checkbox-body">
|
|
813
813
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
@@ -818,7 +818,7 @@
|
|
|
818
818
|
<path class="ft-checkbox--checkmark-path" fill="none"
|
|
819
819
|
d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
|
|
820
820
|
</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 vs(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":K};Ce.styles=
|
|
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 vs(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":K};Ce.styles=qu;Vt([(0,vt.property)()],Ce.prototype,"name",void 0);Vt([(0,vt.property)()],Ce.prototype,"value",void 0);Vt([(0,vt.property)({type:Boolean,reflect:!0})],Ce.prototype,"checked",void 0);Vt([(0,vt.property)({type:Boolean})],Ce.prototype,"indeterminate",void 0);Vt([(0,vt.property)({type:Boolean})],Ce.prototype,"disabled",void 0);Vt([(0,vt.property)({type:Boolean})],Ce.prototype,"error",void 0);Vt([(0,vt.query)(".ft-checkbox")],Ce.prototype,"container",void 0);Vt([(0,vt.query)("ft-ripple")],Ce.prototype,"ripple",void 0);Vt([(0,vt.query)("input")],Ce.prototype,"input",void 0);var Zu=c(m());var Xu={"ft-checkbox":Ce};(0,Zu.customElements)(Xu);var ed=c(E()),kt=c(j()),td=c(m()),rd=c(nt());var Qu=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")},Ju=Qu.css`
|
|
822
822
|
* {
|
|
823
823
|
box-sizing: border-box;
|
|
824
824
|
}
|
|
@@ -907,8 +907,8 @@
|
|
|
907
907
|
.ft-radio ft-typography {
|
|
908
908
|
padding-right: 2px;
|
|
909
909
|
}
|
|
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},ro=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},xe=class extends
|
|
911
|
-
<div class="${(0,
|
|
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},ro=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},xe=class extends td.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.ariaChecked="false",this.disabled=!1}get radioClasses(){return{"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled}}render(){return ed.html`
|
|
911
|
+
<div class="${(0,rd.classMap)(this.radioClasses)}"
|
|
912
912
|
@click=${this.onClick}>
|
|
913
913
|
<div class="ft-radio--box-container">
|
|
914
914
|
<ft-ripple
|
|
@@ -933,7 +933,7 @@
|
|
|
933
933
|
</ft-typography>
|
|
934
934
|
</label>
|
|
935
935
|
</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 ro(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 ro(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":K};xe.styles=
|
|
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 ro(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 ro(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":K};xe.styles=Ju;tr([(0,kt.property)()],xe.prototype,"name",void 0);tr([(0,kt.property)()],xe.prototype,"value",void 0);tr([(0,kt.property)({type:Boolean,reflect:!0})],xe.prototype,"checked",void 0);tr([(0,kt.property)({attribute:"aria-checked",reflect:!0})],xe.prototype,"ariaChecked",void 0);tr([(0,kt.property)({type:Boolean})],xe.prototype,"disabled",void 0);tr([(0,kt.query)(".ft-radio")],xe.prototype,"container",void 0);tr([(0,kt.query)("ft-ripple")],xe.prototype,"ripple",void 0);tr([(0,kt.query)("input")],xe.prototype,"input",void 0);var od=c(m()),rr=c(j()),sd=c(E());var id=c(E());var nd=id.css`
|
|
937
937
|
:host {
|
|
938
938
|
display: block;
|
|
939
939
|
}
|
|
@@ -941,12 +941,12 @@
|
|
|
941
941
|
:host(:focus-visible) {
|
|
942
942
|
outline: none;
|
|
943
943
|
}
|
|
944
|
-
`;var Hi=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},Ze=class extends
|
|
944
|
+
`;var Hi=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},Ze=class extends od.FtLitElement{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)}}get radioButtons(){var e,r;return(r=(e=this.assignedElements)===null||e===void 0?void 0:e.flatMap(i=>i.matches("ft-radio,ftds-radio")?[i]:[...i.querySelectorAll("ft-radio,ftds-radio")]))!==null&&r!==void 0?r:[]}render(){return sd.html`
|
|
945
945
|
<slot @slotchange=${this.onSlotChange}
|
|
946
946
|
@change=${this.onChange}
|
|
947
947
|
@keydown=${this.onKeyDown}
|
|
948
948
|
></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=
|
|
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=nd;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 ld=c(m());var ad={"ft-radio":xe,"ft-radio-group":Ze};(0,ld.customElements)(ad);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},xs={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},oe=class extends(0,He.withAnalytics)(Zn((0,He.withAriaNotification)(He.FtLitElement)),xs){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
950
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
951
951
|
${this.parent==null?null:Qe.html`
|
|
952
952
|
<div tabindex="0"
|
|
@@ -967,7 +967,7 @@
|
|
|
967
967
|
${this.noValuesLabel}
|
|
968
968
|
</ft-typography>
|
|
969
969
|
`:Qe.nothing}
|
|
970
|
-
${(0,
|
|
970
|
+
${(0,cd.repeat)(e,r=>r.value,r=>{var i;return Qe.html`
|
|
971
971
|
<div class="ft-filter-level--option" part="options" tabindex="-1">
|
|
972
972
|
${this.multivalued?this.buildMultiValuedOption(r):this.buildMonoValuedOption(r)}
|
|
973
973
|
${this.preventNavigation||r.selected||((i=r.subOptions)!==null&&i!==void 0?i:[]).length===0?Qe.nothing:Qe.html`
|
|
@@ -1014,7 +1014,7 @@
|
|
|
1014
1014
|
@change=${r=>this.optionsChanged(r,e)}>
|
|
1015
1015
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1016
1016
|
</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)})}};oe.elementDefinitions={"ft-button":w,"ft-ripple":M,"ft-typography":K,"ft-checkbox":Ce,"ft-icon":ne,"ft-radio":xe};oe.styles=Ba;we([(0,be.property)({type:String})],oe.prototype,"filterId",void 0);we([(0,be.property)({type:Object})],oe.prototype,"parent",void 0);we([(0,be.property)({type:Array,hasChanged:He.hasChanged})],oe.prototype,"options",void 0);we([(0,be.property)({type:Boolean})],oe.prototype,"multivalued",void 0);we([(0,be.property)({type:Boolean})],oe.prototype,"disabled",void 0);we([(0,be.property)({type:Boolean})],oe.prototype,"hideSelectedOptions",void 0);we([(0,be.property)({type:Boolean})],oe.prototype,"displayCount",void 0);we([(0,be.property)({type:Boolean})],oe.prototype,"preventNavigation",void 0);we([(0,be.property)({type:String})],oe.prototype,"filter",void 0);we([(0,be.property)({type:String})],oe.prototype,"moreValuesButtonLabel",void 0);we([(0,be.property)({type:String})],oe.prototype,"noValuesLabel",void 0);we([(0,be.property)()],oe.prototype,"filteredOptionsNumberAriaNotification",void 0);we([(0,He.numberProperty)()],oe.prototype,"displayedValuesLimit",void 0);we([(0,be.query)(".ft-filter-level--container")],oe.prototype,"container",void 0);we([(0,be.state)()],oe.prototype,"radios",void 0);we([(0,be.state)()],oe.prototype,"displayedPages",void 0);we([(0,be.state)()],oe.prototype,"filteredOptions",void 0);var
|
|
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)})}};oe.elementDefinitions={"ft-button":w,"ft-ripple":M,"ft-typography":K,"ft-checkbox":Ce,"ft-icon":ne,"ft-radio":xe};oe.styles=Ba;we([(0,be.property)({type:String})],oe.prototype,"filterId",void 0);we([(0,be.property)({type:Object})],oe.prototype,"parent",void 0);we([(0,be.property)({type:Array,hasChanged:He.hasChanged})],oe.prototype,"options",void 0);we([(0,be.property)({type:Boolean})],oe.prototype,"multivalued",void 0);we([(0,be.property)({type:Boolean})],oe.prototype,"disabled",void 0);we([(0,be.property)({type:Boolean})],oe.prototype,"hideSelectedOptions",void 0);we([(0,be.property)({type:Boolean})],oe.prototype,"displayCount",void 0);we([(0,be.property)({type:Boolean})],oe.prototype,"preventNavigation",void 0);we([(0,be.property)({type:String})],oe.prototype,"filter",void 0);we([(0,be.property)({type:String})],oe.prototype,"moreValuesButtonLabel",void 0);we([(0,be.property)({type:String})],oe.prototype,"noValuesLabel",void 0);we([(0,be.property)()],oe.prototype,"filteredOptionsNumberAriaNotification",void 0);we([(0,He.numberProperty)()],oe.prototype,"displayedValuesLimit",void 0);we([(0,be.query)(".ft-filter-level--container")],oe.prototype,"container",void 0);we([(0,be.state)()],oe.prototype,"radios",void 0);we([(0,be.state)()],oe.prototype,"displayedPages",void 0);we([(0,be.state)()],oe.prototype,"filteredOptions",void 0);var pd=c(E()),Je=c(j()),$r=c(m());var fd=c(nt());var ud=c(E()),xt=c(m());var Me={buttonsColor:xt.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",xt.designSystemVariables.colorPrimary),buttonsZIndex:xt.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:xt.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:xt.FtCssVariableFactory.external(xt.designSystemVariables.colorSurface,"Design system")},dd=ud.css`
|
|
1018
1018
|
.ft-snap-scroll {
|
|
1019
1019
|
box-sizing: border-box;
|
|
1020
1020
|
position: relative;
|
|
@@ -1095,8 +1095,8 @@
|
|
|
1095
1095
|
z-index: ${Me.buttonsZIndex};
|
|
1096
1096
|
opacity: 1;
|
|
1097
1097
|
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
1098
|
-
${(0,xt.setVariable)(
|
|
1099
|
-
${(0,xt.setVariable)(
|
|
1098
|
+
${(0,xt.setVariable)(N.backgroundColor,"transparent")};
|
|
1099
|
+
${(0,xt.setVariable)(N.color,Me.buttonsColor)};
|
|
1100
1100
|
}
|
|
1101
1101
|
|
|
1102
1102
|
.ft-snap-scroll--previous[hidden],
|
|
@@ -1139,7 +1139,7 @@
|
|
|
1139
1139
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1140
1140
|
background-color: ${Me.colorSurface};
|
|
1141
1141
|
}
|
|
1142
|
-
`;var Lt=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},Ss=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},ge=class extends $r.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 $r.Debouncer(200),this.updateScrollDebouncer=new $r.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,
|
|
1142
|
+
`;var Lt=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},Ss=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},ge=class extends $r.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 $r.Debouncer(200),this.updateScrollDebouncer=new $r.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,fd.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":$r.isSafari}),r=this.controls&&this.withScroll;return pd.html`
|
|
1143
1143
|
<div part="container" class="${e}">
|
|
1144
1144
|
<ft-button
|
|
1145
1145
|
class="ft-snap-scroll--previous"
|
|
@@ -1163,7 +1163,7 @@
|
|
|
1163
1163
|
@click=${this.next}
|
|
1164
1164
|
></ft-button>
|
|
1165
1165
|
</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 Ss(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let r=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var r,i;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,r;this.elements=(r=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(i=>i))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let r=0;r<this.elements.length;r++)(e<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[e]))&&(e=r);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let r=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-r)}};ge.elementDefinitions={"ft-button":w};ge.styles=
|
|
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 Ss(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let r=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var r,i;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,r;this.elements=(r=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(i=>i))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let r=0;r<this.elements.length;r++)(e<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[e]))&&(e=r);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let r=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-r)}};ge.elementDefinitions={"ft-button":w};ge.styles=dd;Lt([(0,Je.property)({type:Boolean})],ge.prototype,"horizontal",void 0);Lt([(0,Je.property)({type:Boolean})],ge.prototype,"hideScrollbar",void 0);Lt([(0,Je.property)({type:Boolean})],ge.prototype,"controls",void 0);Lt([(0,Je.property)({type:Boolean})],ge.prototype,"limitSize",void 0);Lt([(0,Je.state)()],ge.prototype,"elements",void 0);Lt([(0,Je.state)()],ge.prototype,"currentElement",void 0);Lt([(0,Je.state)()],ge.prototype,"withScroll",void 0);Lt([(0,Je.state)()],ge.prototype,"startReached",void 0);Lt([(0,Je.state)()],ge.prototype,"endReached",void 0);Lt([(0,Je.query)(".ft-snap-scroll--content")],ge.prototype,"contentSlot",void 0);var md=c(m());var hd={"ft-snap-scroll":ge};(0,md.customElements)(hd);var gd=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")},yd=[jt,ee.noTextInputDefaultClearButton,gd.css`
|
|
1167
1167
|
:host {
|
|
1168
1168
|
display: flex;
|
|
1169
1169
|
max-height: 100%;
|
|
@@ -1191,7 +1191,7 @@
|
|
|
1191
1191
|
.ft-filter--header ft-button {
|
|
1192
1192
|
flex-shrink: 0;
|
|
1193
1193
|
margin-left: auto;
|
|
1194
|
-
${(0,ee.setVariable)(
|
|
1194
|
+
${(0,ee.setVariable)(N.iconSize,"18px")};
|
|
1195
1195
|
}
|
|
1196
1196
|
|
|
1197
1197
|
.filter-label {
|
|
@@ -1280,7 +1280,7 @@
|
|
|
1280
1280
|
slot:not([name]) {
|
|
1281
1281
|
display: none;
|
|
1282
1282
|
}
|
|
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},Es=class extends CustomEvent{constructor(e){super("change",{detail:e})}},z=class extends(0,
|
|
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},Es=class extends CustomEvent{constructor(e){super("change",{detail:e})}},z=class extends(0,ue.withAnalytics)(ue.FtLitElement,xs){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 ue.Debouncer(300),this.changeDebouncer=new ue.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,ue.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,ue.flatDeep)(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(o=>o.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return Dr.html`
|
|
1284
1284
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1285
1285
|
part="container">
|
|
1286
1286
|
${!this.label&&!e?null:Dr.html`
|
|
@@ -1364,17 +1364,17 @@
|
|
|
1364
1364
|
noValuesLabel="${this.noValuesLabel}"
|
|
1365
1365
|
.filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
|
|
1366
1366
|
></ft-filter-level>
|
|
1367
|
-
`}goBack(e){this.slideOut=e.detail.value,(0,
|
|
1367
|
+
`}goBack(e){this.slideOut=e.detail.value,(0,ue.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,(0,ue.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){(0,ue.waitUntil)(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let i=this.flatOptions.find(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,ue.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new Es(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};z.elementDefinitions={"ft-button":w,"ft-filter-level":oe,"ft-snap-scroll":ge,"ft-typography":K};z.styles=yd;te([(0,X.property)({type:String})],z.prototype,"id",void 0);te([(0,X.property)({type:String})],z.prototype,"label",void 0);te([(0,X.property)({type:String})],z.prototype,"filterPlaceHolder",void 0);te([(0,X.property)({type:String})],z.prototype,"clearButtonLabel",void 0);te([(0,X.property)({type:String})],z.prototype,"moreValuesButtonLabel",void 0);te([(0,X.property)({type:String})],z.prototype,"noValuesLabel",void 0);te([(0,ue.jsonProperty)([])],z.prototype,"options",void 0);te([(0,X.property)({type:Boolean})],z.prototype,"multivalued",void 0);te([(0,X.property)({type:Boolean})],z.prototype,"disabled",void 0);te([(0,X.property)({type:Boolean})],z.prototype,"raiseSelectedOptions",void 0);te([(0,X.property)({type:Boolean})],z.prototype,"displayCount",void 0);te([(0,ue.numberProperty)()],z.prototype,"displayedValuesLimit",void 0);te([(0,ue.jsonProperty)(void 0)],z.prototype,"filteredOptionsNumberAriaNotification",void 0);te([(0,X.property)({type:Boolean})],z.prototype,"hideClearButton",void 0);te([(0,X.query)(".ft-filter--slot")],z.prototype,"slotElement",void 0);te([(0,X.query)(".ft-filter--container")],z.prototype,"container",void 0);te([(0,X.query)(".ft-filter--values")],z.prototype,"valuesContainer",void 0);te([(0,X.query)(".ft-filter--levels")],z.prototype,"levelsContainer",void 0);te([(0,X.state)()],z.prototype,"lastLevelHasHiddenvalues",void 0);te([(0,X.query)(".ft-filter--filter input")],z.prototype,"filterInput",void 0);te([(0,X.queryAll)(".ft-filter--levels ft-filter-level")],z.prototype,"levels",void 0);te([(0,X.state)()],z.prototype,"withScroll",void 0);te([(0,X.state)()],z.prototype,"filter",void 0);te([(0,X.state)()],z.prototype,"slideIn",void 0);te([(0,X.state)()],z.prototype,"slideOut",void 0);var io=c(m()),Pr=c(j()),bd=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 io.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return bd.html`
|
|
1368
1368
|
<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,Pr.property)({type:String})],et.prototype,"label",void 0);ri([(0,Pr.property)({type:Object,converter:t=>t})],et.prototype,"value",void 0);ri([(0,Pr.property)({type:Boolean,reflect:!0})],et.prototype,"selected",void 0);ri([(0,Pr.property)({type:Object})],et.prototype,"subOptions",void 0);ri([(0,io.jsonProperty)({})],et.prototype,"renderOption",void 0);ri([(0,Pr.query)(".ft-filter-option--slot")],et.prototype,"slotElement",void 0);var
|
|
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,Pr.property)({type:String})],et.prototype,"label",void 0);ri([(0,Pr.property)({type:Object,converter:t=>t})],et.prototype,"value",void 0);ri([(0,Pr.property)({type:Boolean,reflect:!0})],et.prototype,"selected",void 0);ri([(0,Pr.property)({type:Object})],et.prototype,"subOptions",void 0);ri([(0,io.jsonProperty)({})],et.prototype,"renderOption",void 0);ri([(0,Pr.query)(".ft-filter-option--slot")],et.prototype,"slotElement",void 0);var xd=c(m());var vd={"ft-filter":z,"ft-filter-option":et};(0,xd.customElements)(vd);var Cd=c(E()),no=c(j()),wd=c(m());var Sd=c(E());var Ed=Sd.css`
|
|
1370
1370
|
.ft-accordion {
|
|
1371
1371
|
box-sizing: border-box;
|
|
1372
1372
|
}
|
|
1373
|
-
`;var
|
|
1373
|
+
`;var Ad=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},$t=class extends wd.FtLitElement{constructor(){super(...arguments),this.multi=!1}render(){return Cd.html`
|
|
1374
1374
|
<div class="ft-accordion">
|
|
1375
1375
|
<slot @activated=${this.onChange}></slot>
|
|
1376
1376
|
</div>
|
|
1377
|
-
`}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};$t.elementDefinitions={};$t.styles=
|
|
1377
|
+
`}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};$t.elementDefinitions={};$t.styles=Ed;Ad([(0,no.property)({type:Boolean})],$t.prototype,"multi",void 0);Ad([(0,no.query)("slot")],$t.prototype,"content",void 0);var ji=c(E()),Wi=c(j()),Rd=c(m());var _d=c(E()),Ir=c(m()),Mr={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")},Od=_d.css`
|
|
1378
1378
|
.ft-accordion-item {
|
|
1379
1379
|
display: flex;
|
|
1380
1380
|
flex-direction: column;
|
|
@@ -1420,7 +1420,7 @@
|
|
|
1420
1420
|
.ft-accordion-item--separator {
|
|
1421
1421
|
border-bottom: 1px solid ${Mr.colorOutline};
|
|
1422
1422
|
}
|
|
1423
|
-
`;var oo=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},
|
|
1423
|
+
`;var oo=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},ut=class extends Rd.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return ji.html`
|
|
1424
1424
|
<div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
|
|
1425
1425
|
<div class="ft-accordion-item--toggle"
|
|
1426
1426
|
part="toggle"
|
|
@@ -1450,7 +1450,7 @@
|
|
|
1450
1450
|
</div>
|
|
1451
1451
|
<div class="ft-accordion-item--separator" part="separator"></div>
|
|
1452
1452
|
</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)}};
|
|
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)}};ut.elementDefinitions={"ft-ripple":M,"ft-typography":K,"ft-icon":ne};ut.styles=Od;oo([(0,Wi.property)()],ut.prototype,"icon",void 0);oo([(0,Wi.property)()],ut.prototype,"iconVariant",void 0);oo([(0,Wi.property)()],ut.prototype,"label",void 0);oo([(0,Wi.property)({type:Boolean,reflect:!0})],ut.prototype,"active",void 0);var kd=c(m());var Td={"ft-accordion":$t,"ft-accordion-item":ut};(0,kd.customElements)(Td);var so=c(E()),Oe=c(j()),Md=c(nt()),ii=c(m());var Ki=c(E()),P=c(m());var Ld=P.FtCssVariableFactory.extend("--ft-chip-color","",P.designSystemVariables.colorOnSurface),_e={backgroundColor:P.FtCssVariableFactory.extend("--ft-chip-background-color","",P.designSystemVariables.colorSurface),color:Ld,fontSize:P.FtCssVariableFactory.extend("--ft-chip-font-size","",fe.fontSize),fontWeight:P.FtCssVariableFactory.extend("--ft-chip-font-weight","",fe.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","",Ld),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")},$d=P.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",P.FtCssVariableFactory.extend("--ft-chip-color","",P.designSystemVariables.colorOnPrimary)),As={backgroundColor:P.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",P.FtCssVariableFactory.extend("--ft-chip-background-color","",P.designSystemVariables.colorPrimary)),color:$d,rippleColor:P.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",$d)},Dd={horizontalPadding:P.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:P.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Pd=[P.noTextSelect,Ki.css`
|
|
1454
1454
|
:host {
|
|
1455
1455
|
display: inline-block;
|
|
1456
1456
|
max-width: 100%;
|
|
@@ -1490,8 +1490,8 @@
|
|
|
1490
1490
|
|
|
1491
1491
|
.ft-chip--dense {
|
|
1492
1492
|
--chip-internal-icon-padding: 3px;
|
|
1493
|
-
--chip-internal-vertical-padding: ${
|
|
1494
|
-
--chip-internal-horizontal-padding: ${
|
|
1493
|
+
--chip-internal-vertical-padding: ${Dd.verticalPadding};
|
|
1494
|
+
--chip-internal-horizontal-padding: ${Dd.horizontalPadding};
|
|
1495
1495
|
--chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
|
|
1496
1496
|
}
|
|
1497
1497
|
|
|
@@ -1542,9 +1542,9 @@
|
|
|
1542
1542
|
}
|
|
1543
1543
|
|
|
1544
1544
|
.ft-chip--icon-button {
|
|
1545
|
-
${(0,P.setVariable)(
|
|
1546
|
-
${(0,P.setVariable)(
|
|
1547
|
-
${(0,P.setVariable)(
|
|
1545
|
+
${(0,P.setVariable)(N.iconSize,_e.iconSize)};
|
|
1546
|
+
${(0,P.setVariable)(N.horizontalPadding,"var(--chip-internal-icon-padding)")};
|
|
1547
|
+
${(0,P.setVariable)(N.verticalPadding,"var(--chip-internal-icon-padding)")};
|
|
1548
1548
|
margin: calc((-1) * var(--chip-internal-icon-padding));
|
|
1549
1549
|
}
|
|
1550
1550
|
|
|
@@ -1591,7 +1591,7 @@
|
|
|
1591
1591
|
order: -1;
|
|
1592
1592
|
}
|
|
1593
1593
|
`];var Ie=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},ao=class extends CustomEvent{constructor(){super("icon-click")}},se=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.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 so.html`
|
|
1594
|
-
<div class="${(0,
|
|
1594
|
+
<div class="${(0,Md.classMap)(r)}"
|
|
1595
1595
|
aria-label="${this.getLabel()}"
|
|
1596
1596
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
1597
1597
|
@keyup=${this.onKeyUp}
|
|
@@ -1617,38 +1617,36 @@
|
|
|
1617
1617
|
<div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
|
|
1618
1618
|
<ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
|
|
1619
1619
|
</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 ao))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new ao))}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)}};se.elementDefinitions={"ft-ripple":M,"ft-typography":K,"ft-icon":ne,"ft-button":w};se.styles=
|
|
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 ao))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new ao))}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)}};se.elementDefinitions={"ft-ripple":M,"ft-typography":K,"ft-icon":ne,"ft-button":w};se.styles=Pd;Ie([(0,Oe.property)({type:Boolean})],se.prototype,"highlighted",void 0);Ie([(0,Oe.property)({type:Boolean})],se.prototype,"removable",void 0);Ie([(0,Oe.property)({type:Boolean})],se.prototype,"disabled",void 0);Ie([(0,Oe.property)({type:Boolean})],se.prototype,"clickable",void 0);Ie([(0,Oe.property)({type:Boolean})],se.prototype,"iconClickable",void 0);Ie([(0,Oe.property)({type:Boolean})],se.prototype,"dense",void 0);Ie([(0,Oe.property)({type:Boolean})],se.prototype,"multiLine",void 0);Ie([(0,Oe.property)()],se.prototype,"label",void 0);Ie([(0,Oe.property)()],se.prototype,"iconLabel",void 0);Ie([(0,Oe.property)({type:Boolean})],se.prototype,"hideIconTooltip",void 0);Ie([(0,Oe.property)()],se.prototype,"icon",void 0);Ie([(0,Oe.property)()],se.prototype,"iconVariant",void 0);Ie([(0,Oe.property)({type:Boolean})],se.prototype,"trailingIcon",void 0);Ie([(0,Oe.property)()],se.prototype,"typographyVariant",void 0);Ie([(0,Oe.query)("ft-typography slot")],se.prototype,"slottedContent",void 0);var Nd=c(m());var Id={"ft-chip":se};(0,Nd.customElements)(Id);var oi=c(E()),ye=c(j()),Xd=c(nt()),Zd=c(sr());function qi(t,e,r){return t?e(t):r?.(t)}var dt=c(m());var lo=c(j());var Fd=c(E()),re=c(m());var U={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")},Bd=Fd.css`
|
|
1621
1621
|
.ft-input-label {
|
|
1622
1622
|
position: absolute;
|
|
1623
1623
|
inset: 0;
|
|
1624
1624
|
display: flex;
|
|
1625
|
-
background-color: ${
|
|
1626
|
-
border-radius: ${
|
|
1625
|
+
background-color: ${U.backgroundColor};
|
|
1626
|
+
border-radius: ${U.borderRadius} ${U.borderRadius} 0 0;
|
|
1627
|
+
border-color: ${U.borderColor};
|
|
1628
|
+
border-bottom-width: 1px;
|
|
1629
|
+
border-bottom-style: solid;
|
|
1627
1630
|
}
|
|
1628
1631
|
|
|
1629
1632
|
.ft-input-label--outlined {
|
|
1630
|
-
border-radius: ${
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
.ft-input-label {
|
|
1634
|
-
border-color: ${I.borderColor};
|
|
1633
|
+
border-radius: ${U.borderRadius};
|
|
1634
|
+
border-width: 1px;
|
|
1635
|
+
border-style: solid;
|
|
1635
1636
|
}
|
|
1636
1637
|
|
|
1637
1638
|
.ft-input-label.ft-input-label--in-error {
|
|
1638
|
-
border-color: ${
|
|
1639
|
+
border-color: ${U.colorError}
|
|
1639
1640
|
}
|
|
1640
1641
|
|
|
1641
1642
|
.ft-input-label:before,
|
|
1642
1643
|
.ft-input-label:after {
|
|
1643
1644
|
content: "";
|
|
1644
1645
|
display: flex;
|
|
1645
|
-
border-bottom-width: 1px;
|
|
1646
|
-
border-bottom-style: solid;
|
|
1647
|
-
border-color: inherit;
|
|
1648
1646
|
}
|
|
1649
1647
|
|
|
1650
1648
|
.ft-input-label:before {
|
|
1651
|
-
width: calc(${
|
|
1649
|
+
width: calc(${U.horizontalSpacing} - 4px);
|
|
1652
1650
|
flex-shrink: 0;
|
|
1653
1651
|
}
|
|
1654
1652
|
|
|
@@ -1661,23 +1659,20 @@
|
|
|
1661
1659
|
display: flex;
|
|
1662
1660
|
flex-shrink: 1;
|
|
1663
1661
|
position: relative;
|
|
1664
|
-
|
|
1665
|
-
border-bottom-style: solid;
|
|
1666
|
-
border-color: inherit;
|
|
1667
|
-
color: ${I.textColor};
|
|
1662
|
+
color: ${U.textColor};
|
|
1668
1663
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
1669
|
-
max-width: calc(${
|
|
1664
|
+
max-width: calc(${U.labelMaxWidth} - 2 * (${U.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
1670
1665
|
text-overflow: ellipsis;
|
|
1671
|
-
${(0,re.setVariable)(Be.fontSize,
|
|
1672
|
-
${(0,re.setVariable)(Be.lineHeight,
|
|
1666
|
+
${(0,re.setVariable)(Be.fontSize,U.fontSize)};
|
|
1667
|
+
${(0,re.setVariable)(Be.lineHeight,U.fontSize)};
|
|
1673
1668
|
}
|
|
1674
1669
|
|
|
1675
1670
|
.ft-input-label--in-error .ft-input-label--text {
|
|
1676
|
-
color: ${
|
|
1671
|
+
color: ${U.colorError}
|
|
1677
1672
|
}
|
|
1678
1673
|
|
|
1679
1674
|
.ft-input-label--disabled .ft-input-label--text {
|
|
1680
|
-
color: ${
|
|
1675
|
+
color: ${U.disabledTextColor};
|
|
1681
1676
|
}
|
|
1682
1677
|
|
|
1683
1678
|
.ft-input-label--hidden-text {
|
|
@@ -1694,53 +1689,30 @@
|
|
|
1694
1689
|
overflow: hidden;
|
|
1695
1690
|
white-space: nowrap;
|
|
1696
1691
|
text-overflow: ellipsis;
|
|
1697
|
-
padding: ${
|
|
1698
|
-
margin: calc(${
|
|
1692
|
+
padding: ${U.verticalSpacing} 4px;
|
|
1693
|
+
margin: calc(${U.verticalSpacing} * -1) 0;
|
|
1699
1694
|
max-width: 100%;
|
|
1700
1695
|
box-sizing: border-box;
|
|
1701
1696
|
}
|
|
1702
1697
|
|
|
1703
1698
|
.ft-input-label--raised .ft-input-label--text {
|
|
1704
|
-
${(0,re.setVariable)(Be.fontSize,
|
|
1705
|
-
${(0,re.setVariable)(Be.lineHeight,
|
|
1699
|
+
${(0,re.setVariable)(Be.fontSize,U.raisedFontSize)};
|
|
1700
|
+
${(0,re.setVariable)(Be.lineHeight,U.raisedFontSize)};
|
|
1706
1701
|
}
|
|
1707
1702
|
|
|
1708
1703
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
1709
|
-
top: ${
|
|
1710
|
-
}
|
|
1711
|
-
|
|
1712
|
-
.ft-input-label--outlined .ft-input-label--text,
|
|
1713
|
-
.ft-input-label--outlined:before,
|
|
1714
|
-
.ft-input-label--outlined:after {
|
|
1715
|
-
border-top-width: 1px;
|
|
1716
|
-
border-top-style: solid;
|
|
1717
|
-
}
|
|
1718
|
-
|
|
1719
|
-
.ft-input-label--outlined:before {
|
|
1720
|
-
border-left-width: 1px;
|
|
1721
|
-
border-left-style: solid;
|
|
1722
|
-
border-radius: ${I.borderRadius} 0 0 ${I.borderRadius};
|
|
1723
|
-
}
|
|
1724
|
-
|
|
1725
|
-
.ft-input-label--outlined:after {
|
|
1726
|
-
border-right-width: 1px;
|
|
1727
|
-
border-right-style: solid;
|
|
1728
|
-
border-radius: 0 ${I.borderRadius} ${I.borderRadius} 0;
|
|
1704
|
+
top: ${U.verticalSpacing};
|
|
1729
1705
|
}
|
|
1730
1706
|
|
|
1731
1707
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
1732
1708
|
padding: 2px 4px;
|
|
1733
|
-
z-index: ${
|
|
1734
|
-
background-color: ${
|
|
1735
|
-
border-radius: ${
|
|
1709
|
+
z-index: ${U.raisedZIndex};
|
|
1710
|
+
background-color: ${U.backgroundColor};
|
|
1711
|
+
border-radius: ${U.borderRadius};
|
|
1736
1712
|
top: calc((${Be.lineHeight} / -2) + 2px);
|
|
1737
1713
|
}
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
border-top: none;
|
|
1741
|
-
}
|
|
1742
|
-
`;var Cs=c(E()),ws=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 Cs.html`
|
|
1743
|
-
<div class="${(0,zu.classMap)(this.inputLabelClasses)}">
|
|
1714
|
+
`;var Cs=c(E()),ws=c(j());var zd=c(nt()),Vd=c(m()),Ud=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 Vd.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return Cs.html`
|
|
1715
|
+
<div class="${(0,zd.classMap)(this.inputLabelClasses)}">
|
|
1744
1716
|
${qi(this.text,()=>Cs.html`
|
|
1745
1717
|
<div class="ft-input-label--text ft-typography--caption">
|
|
1746
1718
|
<label class="ft-input-label--floating-text">${this.text}</label>
|
|
@@ -1748,7 +1720,7 @@
|
|
|
1748
1720
|
</div>
|
|
1749
1721
|
`)}
|
|
1750
1722
|
</div>
|
|
1751
|
-
`}};Nr.elementDefinitions={};
|
|
1723
|
+
`}};Nr.elementDefinitions={};Ud([(0,ws.property)({type:String})],Nr.prototype,"text",void 0);Ud([(0,ws.property)({type:Boolean})],Nr.prototype,"raised",void 0);var _s=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},St=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}}};St.elementDefinitions={};St.styles=[jt,Bd];_s([(0,lo.property)({type:Boolean})],St.prototype,"outlined",void 0);_s([(0,lo.property)({type:Boolean})],St.prototype,"error",void 0);_s([(0,lo.property)({type:Boolean})],St.prototype,"disabled",void 0);var jd=c(m());var Hd={"ft-input-label":St};(0,jd.customElements)(Hd);var Wd=c(E()),$=c(m());var L={labelSize:$.FtCssVariableFactory.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:$.FtCssVariableFactory.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:$.FtCssVariableFactory.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:$.FtCssVariableFactory.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:$.FtCssVariableFactory.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:$.FtCssVariableFactory.extend("--ft-select-selected-option-color","",$.designSystemVariables.colorOnSurface),helperColor:$.FtCssVariableFactory.extend("--ft-select-helper-color","",$.designSystemVariables.colorOnSurfaceMedium),optionsColor:$.FtCssVariableFactory.extend("--ft-select-options-color","",$.designSystemVariables.colorOnSurface),optionsZIndex:$.FtCssVariableFactory.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:$.FtCssVariableFactory.extend("--ft-select-background-color","",$.designSystemVariables.colorSurface),colorOnSurfaceDisabled:$.FtCssVariableFactory.external($.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:$.FtCssVariableFactory.external($.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:$.FtCssVariableFactory.external($.designSystemVariables.borderRadiusS,"Design system"),elevation02:$.FtCssVariableFactory.external($.designSystemVariables.elevation02,"Design system"),colorError:$.FtCssVariableFactory.external($.designSystemVariables.colorError,"Design system")},Kd=Wd.css`
|
|
1752
1724
|
*:focus {
|
|
1753
1725
|
outline: none;
|
|
1754
1726
|
}
|
|
@@ -1800,12 +1772,12 @@
|
|
|
1800
1772
|
}
|
|
1801
1773
|
|
|
1802
1774
|
ft-input-label {
|
|
1803
|
-
${(0,$.setVariable)(
|
|
1804
|
-
${(0,$.setVariable)(
|
|
1805
|
-
${(0,$.setVariable)(
|
|
1806
|
-
${(0,$.setVariable)(
|
|
1807
|
-
${(0,$.setVariable)(
|
|
1808
|
-
${(0,$.setVariable)(
|
|
1775
|
+
${(0,$.setVariable)(U.fontSize,L.selectedOptionSize)};
|
|
1776
|
+
${(0,$.setVariable)(U.raisedFontSize,L.labelSize)};
|
|
1777
|
+
${(0,$.setVariable)(U.verticalSpacing,L.verticalSpacing)};
|
|
1778
|
+
${(0,$.setVariable)(U.horizontalSpacing,L.horizontalSpacing)};
|
|
1779
|
+
${(0,$.setVariable)(U.backgroundColor,L.backgroundColor)};
|
|
1780
|
+
${(0,$.setVariable)(U.labelMaxWidth,`calc(100% - ${$e.size} - 8px)`)};
|
|
1809
1781
|
}
|
|
1810
1782
|
|
|
1811
1783
|
.ft-select:not(.ft-select--disabled):focus-within ft-icon {
|
|
@@ -1813,8 +1785,8 @@
|
|
|
1813
1785
|
}
|
|
1814
1786
|
|
|
1815
1787
|
.ft-select:not(.ft-select--disabled):focus-within ft-input-label {
|
|
1816
|
-
${(0,$.setVariable)(
|
|
1817
|
-
${(0,$.setVariable)(
|
|
1788
|
+
${(0,$.setVariable)(U.borderColor,L.colorPrimary)};
|
|
1789
|
+
${(0,$.setVariable)(U.textColor,L.colorPrimary)};
|
|
1818
1790
|
}
|
|
1819
1791
|
|
|
1820
1792
|
.ft-select--selected-option {
|
|
@@ -1884,7 +1856,7 @@
|
|
|
1884
1856
|
.ft-select:not(.ft-select--has-option-selected) .ft-select--selected-option {
|
|
1885
1857
|
opacity: 0;
|
|
1886
1858
|
}
|
|
1887
|
-
`;var co=c(m());var ni=c(E()),
|
|
1859
|
+
`;var co=c(m());var ni=c(E()),Yd=c(nt()),ir=c(j());var Os=c(m());var qd=c(E()),Gd=qd.css`
|
|
1888
1860
|
.ft-select--option {
|
|
1889
1861
|
${(0,Os.setVariable)(q.opacityContentOnSurfaceHover,"0.08")};
|
|
1890
1862
|
${(0,Os.setVariable)(q.opacityContentOnSurfacePressed,"0.04")};
|
|
@@ -1912,7 +1884,7 @@
|
|
|
1912
1884
|
}
|
|
1913
1885
|
|
|
1914
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},Le=class extends co.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`
|
|
1915
|
-
<div class="${(0,
|
|
1887
|
+
<div class="${(0,Yd.classMap)(i)}"
|
|
1916
1888
|
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,"")}"
|
|
1917
1889
|
tabindex="0"
|
|
1918
1890
|
aria-label="${this.label}"
|
|
@@ -1923,8 +1895,8 @@
|
|
|
1923
1895
|
</slot>
|
|
1924
1896
|
${this.isSlotEmpty?ni.html`<span>${this.label}</span>`:ni.html``}
|
|
1925
1897
|
</div>
|
|
1926
|
-
`}onSlotChange(){this.isSlotEmpty=(0,co.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}))}};Le.elementDefinitions={"ft-ripple":M};Le.shadowRootOptions={...ni.LitElement.shadowRootOptions,delegatesFocus:!0};Le.styles=[
|
|
1927
|
-
<div class="${(0,
|
|
1898
|
+
`}onSlotChange(){this.isSlotEmpty=(0,co.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}))}};Le.elementDefinitions={"ft-ripple":M};Le.shadowRootOptions={...ni.LitElement.shadowRootOptions,delegatesFocus:!0};Le.styles=[Gd,zr];Gi([(0,ir.property)({type:String})],Le.prototype,"label",void 0);Gi([(0,ir.property)({type:Object,converter:t=>t})],Le.prototype,"value",void 0);Gi([(0,ir.property)({type:Boolean,reflect:!0})],Le.prototype,"selected",void 0);Gi([(0,ir.query)("slot")],Le.prototype,"slotElement",void 0);Gi([(0,ir.state)()],Le.prototype,"isSlotEmpty",void 0);var Re=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 Z=class t extends dt.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,dt.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||((i=(r=this.selectedOption)===null||r===void 0?void 0:r.label)!==null&&i!==void 0?i:"").length>0,u={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":a,"ft-select--options-displayed":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
|
+
<div class="${(0,Xd.classMap)(u)}" part="container">
|
|
1928
1900
|
<div class="ft-select--main-panel" part="main-panel">
|
|
1929
1901
|
<ft-input-label text="${this.label}"
|
|
1930
1902
|
part="label"
|
|
@@ -1964,7 +1936,7 @@
|
|
|
1964
1936
|
@option-change=${this.updateOptionsFromSlot}
|
|
1965
1937
|
>
|
|
1966
1938
|
</slot>
|
|
1967
|
-
${qi(this.isSlotEmpty,()=>(0,
|
|
1939
|
+
${qi(this.isSlotEmpty,()=>(0,Zd.repeat)(this.options,d=>d.value,d=>this.renderOption(d)))}
|
|
1968
1940
|
</div>
|
|
1969
1941
|
</div>
|
|
1970
1942
|
<slot name="helper" part="helper">
|
|
@@ -1979,7 +1951,7 @@
|
|
|
1979
1951
|
label="${e.label}"
|
|
1980
1952
|
.value=${e.value}
|
|
1981
1953
|
></ft-select-option>
|
|
1982
|
-
`}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((i=(r=this.selectedOptionElement)!==null&&r!==void 0?r:this.firstOption)===null||i===void 0||i.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&(this.optionsDisplayed?document.addEventListener("click",this.hideOptions):document.removeEventListener("click",this.hideOptions)),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let o=["bottom","top"];(0,
|
|
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&&((i=(r=this.selectedOptionElement)!==null&&r!==void 0?r:this.firstOption)===null||i===void 0||i.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&(this.optionsDisplayed?document.addEventListener("click",this.hideOptions):document.removeEventListener("click",this.hideOptions)),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let o=["bottom","top"];(0,dt.computeOffsetAutoPosition)(this.mainPanel,this.optionsMenu,"bottom",o,"fixed",L.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,dt.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,dt.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,dt.deepEqual)(o.value,e));i&&this.selectOption(i,r)}selectOption(e,r=!0){var i,o;if(!(0,dt.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}};Z.elementDefinitions={"ft-input-label":St,"ft-typography":K,"ft-ripple":M,"ft-icon":ne,"ft-select-option":Le};Z.searchTimeoutMilliseconds=2e3;Z.styles=[jt,Kd];Re([(0,ye.property)({type:String})],Z.prototype,"label",void 0);Re([(0,ye.property)({type:String})],Z.prototype,"ariaLabel",void 0);Re([(0,ye.property)({type:String})],Z.prototype,"helper",void 0);Re([(0,ye.property)({type:Boolean})],Z.prototype,"outlined",void 0);Re([(0,ye.property)({type:Boolean})],Z.prototype,"disabled",void 0);Re([(0,ye.property)({type:Boolean})],Z.prototype,"error",void 0);Re([(0,ye.property)({type:Boolean})],Z.prototype,"fixedMenuPosition",void 0);Re([(0,ye.property)({type:Array})],Z.prototype,"options",void 0);Re([(0,ye.state)()],Z.prototype,"selectedOption",void 0);Re([(0,ye.state)()],Z.prototype,"optionsDisplayed",void 0);Re([(0,ye.state)()],Z.prototype,"focusOptions",void 0);Re([(0,ye.state)()],Z.prototype,"currentSearch",void 0);Re([(0,ye.state)()],Z.prototype,"lastSearchInputDate",void 0);Re([(0,ye.query)(".ft-select")],Z.prototype,"container",void 0);Re([(0,ye.query)(".ft-select--options")],Z.prototype,"optionsMenu",void 0);Re([(0,ye.query)(".ft-select--input-panel")],Z.prototype,"mainPanel",void 0);Re([(0,ye.query)("slot:not([name])")],Z.prototype,"optionsSlot",void 0);var Jd=c(m());var Qd={"ft-select":Z,"ft-select-option":Le};(0,Jd.customElements)(Qd);var R=c(m()),Rs=c(E());var ep=c(E()),Et=c(m()),Te={display:Et.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:Et.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:Et.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:Et.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:Et.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:Et.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:Et.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:Et.FtCssVariableFactory.external(Et.designSystemVariables.borderRadiusM,"Design system")},tp=ep.css`
|
|
1983
1955
|
:host {
|
|
1984
1956
|
width: ${Te.width};
|
|
1985
1957
|
height: ${Te.height};
|
|
@@ -2006,7 +1978,7 @@
|
|
|
2006
1978
|
background-position: calc(100vw + ${Te.glareWidth}) 0, calc(${Te.glareWidth} * -1) 0;
|
|
2007
1979
|
}
|
|
2008
1980
|
}
|
|
2009
|
-
`;var A={height:R.FtCssVariableFactory.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:R.FtCssVariableFactory.extend("--ft-search-bar-border-radius","",R.designSystemVariables.borderRadiusS),mobileOpenPosition:R.FtCssVariableFactory.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:R.FtCssVariableFactory.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:R.FtCssVariableFactory.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:R.FtCssVariableFactory.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:R.FtCssVariableFactory.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:R.FtCssVariableFactory.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:R.FtCssVariableFactory.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:R.FtCssVariableFactory.external(R.designSystemVariables.colorSurface,"Design system"),colorOnSurface:R.FtCssVariableFactory.external(R.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:R.FtCssVariableFactory.external(R.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:R.FtCssVariableFactory.external(R.designSystemVariables.colorOutline,"Design system"),colorPrimary:R.FtCssVariableFactory.external(R.designSystemVariables.colorPrimary,"Design system"),elevation02:R.FtCssVariableFactory.external(R.designSystemVariables.elevation02,"Design system"),buttonColor:R.FtCssVariableFactory.external(
|
|
1981
|
+
`;var A={height:R.FtCssVariableFactory.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:R.FtCssVariableFactory.extend("--ft-search-bar-border-radius","",R.designSystemVariables.borderRadiusS),mobileOpenPosition:R.FtCssVariableFactory.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:R.FtCssVariableFactory.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:R.FtCssVariableFactory.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:R.FtCssVariableFactory.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:R.FtCssVariableFactory.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:R.FtCssVariableFactory.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:R.FtCssVariableFactory.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:R.FtCssVariableFactory.external(R.designSystemVariables.colorSurface,"Design system"),colorOnSurface:R.FtCssVariableFactory.external(R.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:R.FtCssVariableFactory.external(R.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:R.FtCssVariableFactory.external(R.designSystemVariables.colorOutline,"Design system"),colorPrimary:R.FtCssVariableFactory.external(R.designSystemVariables.colorPrimary,"Design system"),elevation02:R.FtCssVariableFactory.external(R.designSystemVariables.elevation02,"Design system"),buttonColor:R.FtCssVariableFactory.external(N.color,"Button"),buttonRippleColor:R.FtCssVariableFactory.external(N.rippleColor,"Button"),activeItemBorderColor:R.FtCssVariableFactory.extend("--ft-search-bar-active-border-color","",R.designSystemVariables.colorPrimary)},rp=Rs.css`
|
|
2010
1982
|
* {
|
|
2011
1983
|
box-sizing: border-box;
|
|
2012
1984
|
}
|
|
@@ -2113,11 +2085,11 @@
|
|
|
2113
2085
|
.ft-search-bar > ft-button,
|
|
2114
2086
|
.ft-search-bar--actions ft-button {
|
|
2115
2087
|
flex-shrink: 0;
|
|
2116
|
-
${(0,R.setVariable)(
|
|
2088
|
+
${(0,R.setVariable)(N.backgroundColor,"transparent")};
|
|
2117
2089
|
}
|
|
2118
2090
|
|
|
2119
2091
|
.ft-search-bar--left-action {
|
|
2120
|
-
${(0,R.setVariable)(
|
|
2092
|
+
${(0,R.setVariable)(N.borderRadius,`calc(${A.borderRadius} - 1px) 0 0 calc(${A.borderRadius} - 1px)`)};
|
|
2121
2093
|
border-right: 1px solid ${A.colorOutline};
|
|
2122
2094
|
height: 100%;
|
|
2123
2095
|
}
|
|
@@ -2127,7 +2099,7 @@
|
|
|
2127
2099
|
}
|
|
2128
2100
|
|
|
2129
2101
|
.ft-search-bar--floating-panel-open .ft-search-bar--left-action {
|
|
2130
|
-
${(0,R.setVariable)(
|
|
2102
|
+
${(0,R.setVariable)(N.borderRadius,`calc(${A.borderRadius} - 1px) 0 0 0`)};
|
|
2131
2103
|
}
|
|
2132
2104
|
|
|
2133
2105
|
.ft-search-bar .ft-search-bar--launch-search,
|
|
@@ -2141,8 +2113,8 @@
|
|
|
2141
2113
|
}
|
|
2142
2114
|
|
|
2143
2115
|
.ft-search-bar--left-action.ft-search-bar--content-locale {
|
|
2144
|
-
${(0,R.setVariable)(
|
|
2145
|
-
${(0,R.setVariable)(
|
|
2116
|
+
${(0,R.setVariable)(U.borderColor,"transparent")};
|
|
2117
|
+
${(0,R.setVariable)(U.borderRadius,`calc(${A.borderRadius} - 1px)`)};
|
|
2146
2118
|
${(0,R.setVariable)(L.selectedOptionColor,A.buttonColor)};
|
|
2147
2119
|
}
|
|
2148
2120
|
|
|
@@ -2414,7 +2386,7 @@
|
|
|
2414
2386
|
</div>
|
|
2415
2387
|
`)}
|
|
2416
2388
|
</div>
|
|
2417
|
-
`}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"?bt.file_format:bt.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?Ye.BOOK:Ye.ARTICLE;break;case"DOCUMENT":i=
|
|
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"?bt.file_format:bt.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?Ye.BOOK:Ye.ARTICLE;break;case"DOCUMENT":i=Mu(e.mimeType,e.filenameExtension);break;case"TOPIC":i=Ye.TOPICS;break;case"HTML_PACKAGE":i=Ye.BOX_CODE;break;case"HTML_PACKAGE_PAGE":i=Ye.FILE_CODE;break}return Dt.html`
|
|
2418
2390
|
<ft-icon .variant=${r} .value=${i} part="suggestion-icon"></ft-icon>
|
|
2419
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()))}};Pt.styles=[si.wordWrap,Dt.css`
|
|
2420
2392
|
.ft-search-bar--mobile .ft-search-bar--suggestions {
|
|
@@ -2517,7 +2489,7 @@
|
|
|
2517
2489
|
${this.getLocaleLabel(this.searchBar.contentLocale)}
|
|
2518
2490
|
</ft-chip>
|
|
2519
2491
|
`:null}
|
|
2520
|
-
${(0,ks.repeat)(this.searchBar.facets,o=>o.key,o=>{let n=Ea(o);return(0,ks.repeat)(n,s=>{let a=o.label+": "+va(s),l=o.key.replace(":","-"),
|
|
2492
|
+
${(0,ks.repeat)(this.searchBar.facets,o=>o.key,o=>{let n=Ea(o);return(0,ks.repeat)(n,s=>{let a=o.label+": "+va(s),l=o.key.replace(":","-"),u=Ne.html`
|
|
2521
2493
|
<ft-chip
|
|
2522
2494
|
part="selected-filters selected-filter-${l}"
|
|
2523
2495
|
?dense=${this.searchBar.dense&&!e}
|
|
@@ -2527,14 +2499,14 @@
|
|
|
2527
2499
|
label="${a}"
|
|
2528
2500
|
title="${r?a:Ne.nothing}"
|
|
2529
2501
|
@click=${()=>this.openMobileFilters(o.key)}
|
|
2530
|
-
@icon-click=${()=>this.searchBar.setFilter(o.key,n.filter(
|
|
2502
|
+
@icon-click=${()=>this.searchBar.setFilter(o.key,n.filter(d=>d!==s))}
|
|
2531
2503
|
data-key="${o.key}"
|
|
2532
2504
|
data-value="${s}">
|
|
2533
2505
|
${ba(s)}
|
|
2534
2506
|
</ft-chip>
|
|
2535
|
-
`;return r?
|
|
2507
|
+
`;return r?u:Ne.html`
|
|
2536
2508
|
<ft-tooltip inline text="${a}">
|
|
2537
|
-
${
|
|
2509
|
+
${u}
|
|
2538
2510
|
</ft-tooltip>
|
|
2539
2511
|
`})})}
|
|
2540
2512
|
${e?Ne.html`
|
|
@@ -2645,8 +2617,8 @@
|
|
|
2645
2617
|
</div>
|
|
2646
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=At.css`
|
|
2647
2619
|
|
|
2648
|
-
`;ah([(0,cp.ignoreComposingEvents)()],ai.prototype,"onSearchBarKeyDown",null);var Fe=c(E()),
|
|
2649
|
-
<div class="${(0,
|
|
2620
|
+
`;ah([(0,cp.ignoreComposingEvents)()],ai.prototype,"onSearchBarKeyDown",null);var Fe=c(E()),up=c(sr());var dp=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 Pt(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
|
+
<div class="${(0,dp.classMap)(r)}" part="container" tabindex="-1">
|
|
2650
2622
|
<div class="ft-search-bar" part="search-bar" role="search">
|
|
2651
2623
|
${this.renderSearchBarLeftAction()}
|
|
2652
2624
|
<div class="ft-search-bar--input-container" part="input-container" tabindex="-1">
|
|
@@ -2693,7 +2665,7 @@
|
|
|
2693
2665
|
ariaLabel="${this.searchBar.labelResolver.resolve("selectLocale")}"
|
|
2694
2666
|
.exportpartsPrefixes=${["content-locale","select-ft-locale"]}
|
|
2695
2667
|
@change=${e=>this.searchBar.contentLocale=e.detail==null?void 0:e.detail}>
|
|
2696
|
-
${(0,
|
|
2668
|
+
${(0,up.repeat)(this.searchBar.availableContentLocales,e=>e.lang,e=>Fe.html`
|
|
2697
2669
|
<ft-select-option .value=${e.lang}
|
|
2698
2670
|
label="${e.label}"
|
|
2699
2671
|
?selected=${e.lang==this.searchBar.contentLocale}>
|
|
@@ -2724,7 +2696,7 @@
|
|
|
2724
2696
|
</div>
|
|
2725
2697
|
`}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`
|
|
2726
2698
|
|
|
2727
|
-
`;lh([(0,pp.ignoreComposingEvents)()],li.prototype,"onSearchBarKeyDown",null);var
|
|
2699
|
+
`;lh([(0,pp.ignoreComposingEvents)()],li.prototype,"onSearchBarKeyDown",null);var I=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"},Ls=class extends CustomEvent{constructor(e){super("change",{detail:e})}},ch=()=>{},C=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 Pt(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`
|
|
2728
2700
|
<ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
|
|
2729
2701
|
<div class="sr-only" aria-live="polite" aria-atomic="true">
|
|
2730
2702
|
${this.renderLiveText()}
|
|
@@ -2864,14 +2836,14 @@
|
|
|
2864
2836
|
></ft-filter>
|
|
2865
2837
|
`})}
|
|
2866
2838
|
</ft-snap-scroll>
|
|
2867
|
-
`: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(
|
|
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 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(u=>u.lang==l);a(this.contentLocale)||(this.contentLocale=e.has("contentLocale")&&a(e.get("contentLocale"))?e.get("contentLocale"):(r=this.availableContentLocales[0])===null||r===void 0?void 0:r.lang)}if(e.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.initRecentSearches()),e.has("presets")&&((i=this.presets)!==null&&i!==void 0?i:[]).forEach(a=>a.metadataFilters.forEach(l=>{l.valueFilter&&(l.valueFilter.values=l.valueFilter.values.map(u=>en(u)))})),e.has("presets")||e.has("selectedPreset")){let a=((o=this.presets)!==null&&o!==void 0?o:[]).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=(s=((n=this.presets)!==null&&n!==void 0?n:[]).find(a=>this.compareRequests(a,this.request)))===null||s===void 0?void 0:s.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 Ls(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(),O.addEventListener("authentication-change",this.initSearchData),this.initSearchData()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox),document.removeEventListener("focusin",this.closeFloatingContainer),document.removeEventListener("click",this.closeFloatingContainer),O.removeEventListener("authentication-change",this.initSearchData)}updateSize(e){this.sizeCategory=e.detail.category}setFilter(e,r){let i=this.metadataFilters.filter(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`
|
|
2868
2840
|
<div class="ft-search-bar--floating-panel"
|
|
2869
2841
|
id="ft-search-bar-floating-panel"
|
|
2870
2842
|
@keyup=${this.onFloatingContainerKeyUp}
|
|
2871
2843
|
part="floating-panel"
|
|
2872
2844
|
tabindex="-1">
|
|
2873
2845
|
${this.renderDesktopMenu()}
|
|
2874
|
-
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};C.elementDefinitions={"ft-accordion":$t,"ft-accordion-item":
|
|
2846
|
+
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};C.elementDefinitions={"ft-accordion":$t,"ft-accordion-item":ut,"ft-button":w,"ft-chip":se,"ft-filter":z,"ft-filter-option":et,"ft-icon":ne,"ft-ripple":M,"ft-select":Z,"ft-select-option":Le,"ft-size-watcher":We,"ft-skeleton":nr,"ft-snap-scroll":ge,"ft-tooltip":ce,"ft-typography":K,"ft-radio-group":Ze,"ft-radio":xe};C.styles=[zr,Y.noTextInputDefaultClearButton,rp,ip,Mt.styles,Pt.styles,Y.screenReaderStyles];I([(0,F.property)({type:Boolean})],C.prototype,"dense",void 0);I([(0,F.property)()],C.prototype,"mode",void 0);I([(0,F.property)({type:Boolean})],C.prototype,"forceMobileMenuOpen",void 0);I([(0,F.property)({type:Boolean})],C.prototype,"forceMenuOpen",void 0);I([(0,F.property)()],C.prototype,"baseUrl",void 0);I([(0,F.property)()],C.prototype,"apiIntegrationIdentifier",void 0);I([(0,F.property)()],C.prototype,"contentLocale",void 0);I([(0,F.state)()],C.prototype,"availableContentLocales",void 0);I([(0,F.state)()],C.prototype,"availableContentLocalesInitialized",void 0);I([(0,F.property)()],C.prototype,"uiLocale",void 0);I([(0,Y.jsonProperty)({})],C.prototype,"labels",void 0);I([(0,Y.jsonProperty)([])],C.prototype,"displayedFilters",void 0);I([(0,Y.jsonProperty)([])],C.prototype,"presets",void 0);I([(0,F.property)({type:String,reflect:!0})],C.prototype,"selectedPreset",void 0);I([(0,Y.jsonProperty)([])],C.prototype,"priors",void 0);I([(0,F.property)()],C.prototype,"searchRequestSerializer",void 0);I([(0,F.property)({type:Boolean})],C.prototype,"focusOnDisplay",void 0);I([(0,F.state)()],C.prototype,"metadataFilters",void 0);I([(0,F.state)()],C.prototype,"sizeCategory",void 0);I([(0,F.state)()],C.prototype,"displayFacets",void 0);I([(0,F.state)()],C.prototype,"mobileMenuOpen",void 0);I([(0,F.state)()],C.prototype,"facets",void 0);I([(0,F.state)()],C.prototype,"facetsInitialized",void 0);I([(0,F.query)(".ft-search-bar--container")],C.prototype,"container",void 0);I([(0,F.query)(".ft-search-bar--filters-opener")],C.prototype,"filtersOpener",void 0);I([(0,F.query)(".ft-search-bar--floating-panel")],C.prototype,"floatingContainer",void 0);I([(0,F.query)("ft-snap-scroll.ft-search-bar--filters-container")],C.prototype,"scrollingFiltersContainer",void 0);I([(0,F.query)(".ft-search-bar--input")],C.prototype,"input",void 0);I([(0,F.query)(".ft-search-bar--launch-search")],C.prototype,"launchSearchButton",void 0);I([(0,F.state)()],C.prototype,"query",void 0);I([(0,F.state)()],C.prototype,"suggestions",void 0);I([(0,F.state)()],C.prototype,"recentSearches",void 0);I([(0,F.state)()],C.prototype,"scrollToFacet",void 0);I([(0,F.state)()],C.prototype,"api",void 0);I([(0,F.state)()],C.prototype,"displaySuggestListbox",void 0);I([(0,F.state)()],C.prototype,"selectedSuggestOptionId",void 0);I([(0,F.state)()],C.prototype,"selectedSuggestRemoveRecent",void 0);I([(0,F.state)()],C.prototype,"facetsLoaded",void 0);var hp={"ft-search-bar":C};(0,mp.customElements)(hp);})();
|
|
2875
2847
|
/*! Bundled license information:
|
|
2876
2848
|
|
|
2877
2849
|
lit-html/lit-html.js:
|