@fluid-topics/ft-search-bar 2.1.24 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-search-bar.light.js +503 -503
- package/build/ft-search-bar.min.js +482 -482
- package/package.json +16 -16
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
1
|
+
"use strict";(()=>{var yp=Object.create;var Ls=Object.defineProperty;var bp=Object.getOwnPropertyDescriptor;var vp=Object.getOwnPropertyNames;var xp=Object.getPrototypeOf,Sp=Object.prototype.hasOwnProperty;var kr=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var Ep=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of vp(e))!Sp.call(t,o)&&o!==r&&Ls(t,o,{get:()=>e[o],enumerable:!(i=bp(e,o))||i.enumerable});return t};var c=(t,e,r)=>(r=t!=null?yp(xp(t)):{},Ep(e||!t||!t.__esModule?Ls(r,"default",{value:t,enumerable:!0}):r,t));var h=kr((ch,$s)=>{$s.exports=ftGlobals.wcUtils});var E=kr((uh,Ps)=>{Ps.exports=ftGlobals.lit});var j=kr((dh,Ds)=>{Ds.exports=ftGlobals.litDecorators});var sr=kr((ph,Ms)=>{Ms.exports=ftGlobals.litRepeat});var nt=kr((om,Fa)=>{Fa.exports=ftGlobals.litClassMap});var Pu=kr((_x,$u)=>{$u.exports=ftGlobals.litUnsafeHTML});var hp=c(h());var V=c(E()),F=c(j()),Ki=c(sr()),Y=c(h());var Bs=c(E()),ar=c(j()),Gi=c(h());var rt;(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(rt||(rt={}));var Is=c(E());var Ns=Is.css`
|
|
2
2
|
.ft-size-watcher--pixel {
|
|
3
3
|
width: 0;
|
|
4
4
|
height: 0;
|
|
@@ -17,68 +17,68 @@
|
|
|
17
17
|
.ft-size-watcher--local .ft-size-watcher--watcher {
|
|
18
18
|
width: 100%;
|
|
19
19
|
}
|
|
20
|
-
`;var
|
|
20
|
+
`;var ai=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},uo=class extends CustomEvent{constructor(e,r){super("change",{detail:{size:e,category:r}})}},je=class extends Gi.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 Gi.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=
|
|
25
|
-
\f\r]`,
|
|
26
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Fs=/'/g,Us=/"/g,Vs=/^(?:script|style|textarea|title)$/i,co=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Ws=co(1),qs=co(2),Ks=co(3),vi=Symbol.for("lit-noChange"),ce=Symbol.for("lit-nothing"),zs=new WeakMap,fr=hr.createTreeWalker(hr,129);function Gs(t,e){if(!lo(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ms!==void 0?Ms.createHTML(e):e}var pd=(t,e)=>{let r=t.length-1,i=[],n,o=e===2?"<svg>":e===3?"<math>":"",s=mi;for(let a=0;a<r;a++){let l=t[a],c,p,d=-1,f=0;for(;f<l.length&&(s.lastIndex=f,p=s.exec(l),p!==null);)f=s.lastIndex,s===mi?p[1]==="!--"?s=Ns:p[1]!==void 0?s=Bs:p[2]!==void 0?(Vs.test(p[2])&&(n=RegExp("</"+p[2],"g")),s=dr):p[3]!==void 0&&(s=dr):s===dr?p[0]===">"?(s=n??mi,d=-1):p[1]===void 0?d=-2:(d=s.lastIndex-p[2].length,c=p[1],s=p[3]===void 0?dr:p[3]==='"'?Us:Fs):s===Us||s===Fs?s=dr:s===Ns||s===Bs?s=mi:(s=dr,n=void 0);let h=s===dr&&t[a+1].startsWith("/>")?" ":"";o+=s===mi?l+cd:d>=0?(i.push(c),l.slice(0,d)+Hs+l.slice(d)+Vt+h):l+Vt+(d===-2?a:h)}return[Gs(t,o+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},yi=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let o=0,s=0,a=e.length-1,l=this.parts,[c,p]=pd(e,r);if(this.el=t.createElement(c,i),fr.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=fr.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let d of n.getAttributeNames())if(d.endsWith(Hs)){let f=p[s++],h=n.getAttribute(d).split(Vt),m=/([.?@])?(.*)/.exec(f);l.push({type:1,index:o,name:m[2],strings:h,ctor:m[1]==="."?io:m[1]==="?"?no:m[1]==="@"?oo:Nr}),n.removeAttribute(d)}else d.startsWith(Vt)&&(l.push({type:6,index:o}),n.removeAttribute(d));if(Vs.test(n.tagName)){let d=n.textContent.split(Vt),f=d.length-1;if(f>0){n.textContent=Qi?Qi.emptyScript:"";for(let h=0;h<f;h++)n.append(d[h],en()),fr.nextNode(),l.push({type:2,index:++o});n.append(d[f],en())}}}else if(n.nodeType===8)if(n.data===js)l.push({type:2,index:o});else{let d=-1;for(;(d=n.data.indexOf(Vt,d+1))!==-1;)l.push({type:7,index:o}),d+=Vt.length-1}o++}}static createElement(e,r){let i=hr.createElement("template");return i.innerHTML=e,i}};function Mr(t,e,r=t,i){if(e===vi)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,o=gi(e)?void 0:e._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),o===void 0?n=void 0:(n=new o(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=Mr(t,n._$AS(t,e.values),n,i)),e}var ro=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??hr).importNode(r,!0);fr.currentNode=n;let o=fr.nextNode(),s=0,a=0,l=i[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new tn(o,o.nextSibling,this,e):l.type===1?c=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(c=new so(o,this,e)),this._$AV.push(c),l=i[++a]}s!==l?.index&&(o=fr.nextNode(),s++)}return fr.currentNode=hr,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},tn=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=ce,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Mr(this,e,r),gi(e)?e===ce||e==null||e===""?(this._$AH!==ce&&this._$AR(),this._$AH=ce):e!==this._$AH&&e!==vi&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):ud(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==ce&&gi(this._$AH)?this._$AA.nextSibling.data=e:this.T(hr.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=yi.createElement(Gs(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let o=new ro(n,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(e){let r=zs.get(e.strings);return r===void 0&&zs.set(e.strings,r=new yi(e)),r}k(e){lo(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let o of e)n===r.length?r.push(i=new t(this.O(en()),this.O(en()),this,this.options)):i=r[n],i._$AI(o),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=Is(e).nextSibling;Is(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Nr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,o){this.type=1,this._$AH=ce,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ce}_$AI(e,r=this,i,n){let o=this.strings,s=!1;if(o===void 0)e=Mr(this,e,r,0),s=!gi(e)||e!==this._$AH&&e!==vi,s&&(this._$AH=e);else{let a=e,l,c;for(e=o[0],l=0;l<o.length-1;l++)c=Mr(this,a[i+l],r,l),c===vi&&(c=this._$AH[l]),s||=!gi(c)||c!==this._$AH[l],c===ce?e=ce:e!==ce&&(e+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!n&&this.j(e)}j(e){e===ce?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},io=class extends Nr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ce?void 0:e}},no=class extends Nr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ce)}},oo=class extends Nr{constructor(e,r,i,n,o){super(e,r,i,n,o),this.type=5}_$AI(e,r=this){if((e=Mr(this,e,r,0)??ce)===vi)return;let i=this._$AH,n=e===ce&&i!==ce||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,o=e!==ce&&(i===ce||n);n&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},so=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){Mr(this,e)}};var dd=ao.litHtmlPolyfillSupport;dd?.(yi,tn),(ao.litHtmlVersions??=[]).push("3.3.3");var Ys=Symbol.for(""),fd=t=>{if(t?.r===Ys)return t?._$litStatic$},uo=t=>({_$litStatic$:t,r:Ys});var Xs=new Map,po=t=>(e,...r)=>{let i=r.length,n,o,s=[],a=[],l,c=0,p=!1;for(;c<i;){for(l=e[c];c<i&&(o=r[c],(n=fd(o))!==void 0);)l+=n+e[++c],p=!0;c!==i&&a.push(o),s.push(l),c++}if(c===i&&s.push(e[i]),p){let d=s.join("$$lit$$");(e=Xs.get(d))===void 0&&(s.raw=s,Xs.set(d,e=s)),r=a}return t(e,...r)},fo=po(Ws),ih=po(qs),nh=po(Ks);var ho=u(j()),la=u(v());var ue;(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"})(ue||(ue={}));var rt=u(A()),b=u(v()),Zs=b.FtCssVariableFactory.extend("--ft-typography-font-family","",b.designSystemVariables.titleFont),Mt=b.FtCssVariableFactory.extend("--ft-typography-font-family","",b.designSystemVariables.contentFont),x={fontFamily:Mt,fontSize:b.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:b.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:b.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:b.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:b.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Br={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Zs),fontSize:b.FtCssVariableFactory.extend("--ft-typography-title-font-size","",x.fontSize,"20px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",x.letterSpacing,"0.15px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-title-line-height","",x.lineHeight,"1.2"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",x.textTransform,"inherit")},Fr={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Zs),fontSize:b.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",x.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",x.letterSpacing,"0.105px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",x.lineHeight,"1.7"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",x.textTransform,"inherit")},Ur={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Mt),fontSize:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",x.fontSize,"16px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",x.fontWeight,"600"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",x.letterSpacing,"0.144px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",x.lineHeight,"1.5"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",x.textTransform,"inherit")},zr={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Mt),fontSize:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",x.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",x.letterSpacing,"0.098px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",x.lineHeight,"1.7"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",x.textTransform,"inherit")},It={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Mt),fontSize:b.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",x.fontSize,"16px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",x.letterSpacing,"0.496px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",x.lineHeight,"1.5"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",x.textTransform,"inherit")},ge={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Mt),fontSize:b.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",x.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",x.letterSpacing,"0.252px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",x.lineHeight,"1.4"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",x.textTransform,"inherit")},We={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Mt),fontSize:b.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",x.fontSize,"12px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",x.letterSpacing,"0.396px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",x.lineHeight,"1.33"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",x.textTransform,"inherit")},Hr={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Mt),fontSize:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",x.fontSize,"10px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",x.letterSpacing,"0.33px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",x.lineHeight,"1.6"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",x.textTransform,"inherit")},jr={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Mt),fontSize:b.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",x.fontSize,"10px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",x.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",x.letterSpacing,"1.5px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",x.lineHeight,"1.6"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",x.textTransform,"uppercase")},At={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Mt),fontSize:b.FtCssVariableFactory.extend("--ft-typography-button-font-size","",x.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",x.fontWeight,"600"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",x.letterSpacing,"1.246px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-button-line-height","",x.lineHeight,"1.15"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",x.textTransform,"uppercase")},Js=rt.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 uo(this.size,this.category)))},this.debounceTimeout)}};je.elementDefinitions={};je.styles=Ns;ai([(0,ar.property)({type:Number})],je.prototype,"debounceTimeout",void 0);ai([(0,ar.property)({type:Boolean})],je.prototype,"local",void 0);ai([(0,ar.property)({type:Number,reflect:!0})],je.prototype,"size",void 0);ai([(0,ar.property)({type:String,reflect:!0})],je.prototype,"category",void 0);ai([(0,ar.query)(".ft-size-watcher--watcher")],je.prototype,"watcher",void 0);var Us=c(h());var Fs={"ft-size-watcher":je};(0,Us.customElements)(Fs);var bo=globalThis,zs=t=>t,Yi=bo.trustedTypes,Vs=Yi?Yi.createPolicy("lit-html",{createHTML:t=>t}):void 0,Gs="$lit$",Ht=`lit$${Math.random().toFixed(9).slice(2)}$`,Ys="?"+Ht,Ap=`<${Ys}>`,ur=document,Xi=()=>ur.createComment(""),ci=t=>t===null||typeof t!="object"&&typeof t!="function",vo=Array.isArray,Cp=t=>vo(t)||typeof t?.[Symbol.iterator]=="function",po=`[
|
|
25
|
+
\f\r]`,li=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Hs=/-->/g,js=/>/g,lr=RegExp(`>|${po}(?:([^\\s"'>=/]+)(${po}*=${po}*(?:[^
|
|
26
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ws=/'/g,qs=/"/g,Xs=/^(?:script|style|textarea|title)$/i,xo=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Zs=xo(1),Qs=xo(2),Js=xo(3),ui=Symbol.for("lit-noChange"),de=Symbol.for("lit-nothing"),Ks=new WeakMap,cr=ur.createTreeWalker(ur,129);function ea(t,e){if(!vo(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Vs!==void 0?Vs.createHTML(e):e}var wp=(t,e)=>{let r=t.length-1,i=[],o,n=e===2?"<svg>":e===3?"<math>":"",s=li;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===li?d[1]==="!--"?s=Hs:d[1]!==void 0?s=js:d[2]!==void 0?(Xs.test(d[2])&&(o=RegExp("</"+d[2],"g")),s=lr):d[3]!==void 0&&(s=lr):s===lr?d[0]===">"?(s=o??li,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:Ws):s===qs||s===Ws?s=lr:s===Hs||s===js?s=li:(s=lr,o=void 0);let y=s===lr&&t[a+1].startsWith("/>")?" ":"";n+=s===li?l+Ap:p>=0?(i.push(u),l.slice(0,p)+Gs+l.slice(p)+Ht+y):l+Ht+(p===-2?a:y)}return[ea(t,n+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},di=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]=wp(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(Gs)){let f=d[s++],y=o.getAttribute(p).split(Ht),x=/([.?@])?(.*)/.exec(f);l.push({type:1,index:n,name:x[2],strings:y,ctor:x[1]==="."?ho:x[1]==="?"?mo:x[1]==="@"?go:$r}),o.removeAttribute(p)}else p.startsWith(Ht)&&(l.push({type:6,index:n}),o.removeAttribute(p));if(Xs.test(o.tagName)){let p=o.textContent.split(Ht),f=p.length-1;if(f>0){o.textContent=Yi?Yi.emptyScript:"";for(let y=0;y<f;y++)o.append(p[y],Xi()),cr.nextNode(),l.push({type:2,index:++n});o.append(p[f],Xi())}}}else if(o.nodeType===8)if(o.data===Ys)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 Lr(t,e,r=t,i){if(e===ui)return e;let o=i!==void 0?r._$Co?.[i]:r._$Cl,n=ci(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=Lr(t,o._$AS(t,e.values),o,i)),e}var fo=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 Zi(n,n.nextSibling,this,e):l.type===1?u=new l.ctor(n,l.name,l.strings,this,e):l.type===6&&(u=new yo(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++}},Zi=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=Lr(this,e,r),ci(e)?e===de||e==null||e===""?(this._$AH!==de&&this._$AR(),this._$AH=de):e!==this._$AH&&e!==ui&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Cp(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&&ci(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=di.createElement(ea(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(r);else{let n=new fo(o,this),s=n.u(this.options);n.p(r),this.T(s),this._$AH=n}}_$AC(e){let r=Ks.get(e.strings);return r===void 0&&Ks.set(e.strings,r=new di(e)),r}k(e){vo(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(Xi()),this.O(Xi()),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=zs(e).nextSibling;zs(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},$r=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=Lr(this,e,r,0),s=!ci(e)||e!==this._$AH&&e!==ui,s&&(this._$AH=e);else{let a=e,l,u;for(e=n[0],l=0;l<n.length-1;l++)u=Lr(this,a[i+l],r,l),u===ui&&(u=this._$AH[l]),s||=!ci(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??"")}},ho=class extends $r{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===de?void 0:e}},mo=class extends $r{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==de)}},go=class extends $r{constructor(e,r,i,o,n){super(e,r,i,o,n),this.type=5}_$AI(e,r=this){if((e=Lr(this,e,r,0)??de)===ui)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)}},yo=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){Lr(this,e)}};var _p=bo.litHtmlPolyfillSupport;_p?.(di,Zi),(bo.litHtmlVersions??=[]).push("3.3.3");var ra=Symbol.for(""),Op=t=>{if(t?.r===ra)return t?._$litStatic$},So=t=>({_$litStatic$:t,r:ra});var ta=new Map,Eo=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=Op(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=ta.get(p))===void 0&&(s.raw=s,ta.set(p,e=s)),r=a}return t(e,...r)},Ao=Eo(Zs),Rh=Eo(Qs),Th=Eo(Js);var Co=c(j()),ha=c(h());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()),g=c(h()),ia=g.FtCssVariableFactory.extend("--ft-typography-font-family","",g.designSystemVariables.titleFont),It=g.FtCssVariableFactory.extend("--ft-typography-font-family","",g.designSystemVariables.contentFont),b={fontFamily:It,fontSize:g.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:g.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:g.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:g.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:g.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Pr={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-title-font-family","",ia),fontSize:g.FtCssVariableFactory.extend("--ft-typography-title-font-size","",b.fontSize,"20px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",b.letterSpacing,"0.15px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-title-line-height","",b.lineHeight,"1.2"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",b.textTransform,"inherit")},Dr={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",ia),fontSize:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",b.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",b.letterSpacing,"0.105px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",b.lineHeight,"1.7"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",b.textTransform,"inherit")},Mr={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",It),fontSize:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",b.fontSize,"16px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",b.fontWeight,"600"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",b.letterSpacing,"0.144px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",b.lineHeight,"1.5"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",b.textTransform,"inherit")},Ir={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",It),fontSize:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",b.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",b.letterSpacing,"0.098px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",b.lineHeight,"1.7"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",b.textTransform,"inherit")},Mt={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",It),fontSize:g.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",b.fontSize,"16px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",b.letterSpacing,"0.496px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",b.lineHeight,"1.5"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",b.textTransform,"inherit")},ye={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",It),fontSize:g.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",b.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",b.letterSpacing,"0.252px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",b.lineHeight,"1.4"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",b.textTransform,"inherit")},We={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",It),fontSize:g.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",b.fontSize,"12px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",b.letterSpacing,"0.396px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",b.lineHeight,"1.33"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",b.textTransform,"inherit")},Nr={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",It),fontSize:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",b.fontSize,"10px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",b.letterSpacing,"0.33px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",b.lineHeight,"1.6"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",b.textTransform,"inherit")},Br={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",It),fontSize:g.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",b.fontSize,"10px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",b.fontWeight,"normal"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",b.letterSpacing,"1.5px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",b.lineHeight,"1.6"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",b.textTransform,"uppercase")},At={fontFamily:g.FtCssVariableFactory.extend("--ft-typography-button-font-family","",It),fontSize:g.FtCssVariableFactory.extend("--ft-typography-button-font-size","",b.fontSize,"14px"),fontWeight:g.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",b.fontWeight,"600"),letterSpacing:g.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",b.letterSpacing,"1.246px"),lineHeight:g.FtCssVariableFactory.extend("--ft-typography-button-line-height","",b.lineHeight,"1.15"),textTransform:g.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",b.textTransform,"uppercase")},na=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
|
-
}
|
|
35
|
-
`,
|
|
28
|
+
font-family: ${Pr.fontFamily};
|
|
29
|
+
font-size: ${Pr.fontSize};
|
|
30
|
+
font-weight: ${Pr.fontWeight};
|
|
31
|
+
letter-spacing: ${Pr.letterSpacing};
|
|
32
|
+
line-height: ${Pr.lineHeight};
|
|
33
|
+
text-transform: ${Pr.textTransform};
|
|
34
|
+
}
|
|
35
|
+
`,oa=it.css`
|
|
36
36
|
.ft-typography--title-dense {
|
|
37
|
-
font-family: ${
|
|
38
|
-
font-size: ${
|
|
39
|
-
font-weight: ${
|
|
40
|
-
letter-spacing: ${
|
|
41
|
-
line-height: ${
|
|
42
|
-
text-transform: ${
|
|
43
|
-
}
|
|
44
|
-
`,
|
|
37
|
+
font-family: ${Dr.fontFamily};
|
|
38
|
+
font-size: ${Dr.fontSize};
|
|
39
|
+
font-weight: ${Dr.fontWeight};
|
|
40
|
+
letter-spacing: ${Dr.letterSpacing};
|
|
41
|
+
line-height: ${Dr.lineHeight};
|
|
42
|
+
text-transform: ${Dr.textTransform};
|
|
43
|
+
}
|
|
44
|
+
`,sa=it.css`
|
|
45
45
|
.ft-typography--subtitle1 {
|
|
46
|
-
font-family: ${
|
|
47
|
-
font-size: ${
|
|
48
|
-
font-weight: ${
|
|
49
|
-
letter-spacing: ${
|
|
50
|
-
line-height: ${
|
|
51
|
-
text-transform: ${
|
|
52
|
-
}
|
|
53
|
-
`,
|
|
46
|
+
font-family: ${Mr.fontFamily};
|
|
47
|
+
font-size: ${Mr.fontSize};
|
|
48
|
+
font-weight: ${Mr.fontWeight};
|
|
49
|
+
letter-spacing: ${Mr.letterSpacing};
|
|
50
|
+
line-height: ${Mr.lineHeight};
|
|
51
|
+
text-transform: ${Mr.textTransform};
|
|
52
|
+
}
|
|
53
|
+
`,aa=it.css`
|
|
54
54
|
.ft-typography--subtitle2 {
|
|
55
|
-
font-family: ${
|
|
56
|
-
font-size: ${
|
|
57
|
-
font-weight: ${
|
|
58
|
-
letter-spacing: ${
|
|
59
|
-
line-height: ${
|
|
60
|
-
text-transform: ${
|
|
55
|
+
font-family: ${Ir.fontFamily};
|
|
56
|
+
font-size: ${Ir.fontSize};
|
|
57
|
+
font-weight: ${Ir.fontWeight};
|
|
58
|
+
letter-spacing: ${Ir.letterSpacing};
|
|
59
|
+
line-height: ${Ir.lineHeight};
|
|
60
|
+
text-transform: ${Ir.textTransform};
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
`,
|
|
63
|
+
`,la=it.css`
|
|
64
64
|
.ft-typography--body1 {
|
|
65
|
-
font-family: ${
|
|
66
|
-
font-size: ${
|
|
67
|
-
font-weight: ${
|
|
68
|
-
letter-spacing: ${
|
|
69
|
-
line-height: ${
|
|
70
|
-
text-transform: ${
|
|
71
|
-
}
|
|
72
|
-
`,
|
|
65
|
+
font-family: ${Mt.fontFamily};
|
|
66
|
+
font-size: ${Mt.fontSize};
|
|
67
|
+
font-weight: ${Mt.fontWeight};
|
|
68
|
+
letter-spacing: ${Mt.letterSpacing};
|
|
69
|
+
line-height: ${Mt.lineHeight};
|
|
70
|
+
text-transform: ${Mt.textTransform};
|
|
71
|
+
}
|
|
72
|
+
`,Fr=it.css`
|
|
73
73
|
.ft-typography--body2 {
|
|
74
|
-
font-family: ${
|
|
75
|
-
font-size: ${
|
|
76
|
-
font-weight: ${
|
|
77
|
-
letter-spacing: ${
|
|
78
|
-
line-height: ${
|
|
79
|
-
text-transform: ${
|
|
80
|
-
}
|
|
81
|
-
`,
|
|
74
|
+
font-family: ${ye.fontFamily};
|
|
75
|
+
font-size: ${ye.fontSize};
|
|
76
|
+
font-weight: ${ye.fontWeight};
|
|
77
|
+
letter-spacing: ${ye.letterSpacing};
|
|
78
|
+
line-height: ${ye.lineHeight};
|
|
79
|
+
text-transform: ${ye.textTransform};
|
|
80
|
+
}
|
|
81
|
+
`,jt=it.css`
|
|
82
82
|
.ft-typography--caption {
|
|
83
83
|
font-family: ${We.fontFamily};
|
|
84
84
|
font-size: ${We.fontSize};
|
|
@@ -87,25 +87,25 @@
|
|
|
87
87
|
line-height: ${We.lineHeight};
|
|
88
88
|
text-transform: ${We.textTransform};
|
|
89
89
|
}
|
|
90
|
-
`,
|
|
90
|
+
`,ca=it.css`
|
|
91
91
|
.ft-typography--breadcrumb {
|
|
92
|
-
font-family: ${
|
|
93
|
-
font-size: ${
|
|
94
|
-
font-weight: ${
|
|
95
|
-
letter-spacing: ${
|
|
96
|
-
line-height: ${
|
|
97
|
-
text-transform: ${
|
|
98
|
-
}
|
|
99
|
-
`,
|
|
92
|
+
font-family: ${Nr.fontFamily};
|
|
93
|
+
font-size: ${Nr.fontSize};
|
|
94
|
+
font-weight: ${Nr.fontWeight};
|
|
95
|
+
letter-spacing: ${Nr.letterSpacing};
|
|
96
|
+
line-height: ${Nr.lineHeight};
|
|
97
|
+
text-transform: ${Nr.textTransform};
|
|
98
|
+
}
|
|
99
|
+
`,ua=it.css`
|
|
100
100
|
.ft-typography--overline {
|
|
101
|
-
font-family: ${
|
|
102
|
-
font-size: ${
|
|
103
|
-
font-weight: ${
|
|
104
|
-
letter-spacing: ${
|
|
105
|
-
line-height: ${
|
|
106
|
-
text-transform: ${
|
|
107
|
-
}
|
|
108
|
-
`,
|
|
101
|
+
font-family: ${Br.fontFamily};
|
|
102
|
+
font-size: ${Br.fontSize};
|
|
103
|
+
font-weight: ${Br.fontWeight};
|
|
104
|
+
letter-spacing: ${Br.letterSpacing};
|
|
105
|
+
line-height: ${Br.lineHeight};
|
|
106
|
+
text-transform: ${Br.textTransform};
|
|
107
|
+
}
|
|
108
|
+
`,da=it.css`
|
|
109
109
|
.ft-typography--button {
|
|
110
110
|
font-family: ${At.fontFamily};
|
|
111
111
|
font-size: ${At.fontSize};
|
|
@@ -114,19 +114,19 @@
|
|
|
114
114
|
line-height: ${At.lineHeight};
|
|
115
115
|
text-transform: ${At.textTransform};
|
|
116
116
|
}
|
|
117
|
-
`,
|
|
117
|
+
`,pa=it.css`
|
|
118
118
|
.ft-typography {
|
|
119
119
|
vertical-align: inherit;
|
|
120
120
|
}
|
|
121
|
-
`;var
|
|
122
|
-
<${
|
|
121
|
+
`;var fa=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},q=class extends ha.FtLitElement{constructor(){super(...arguments),this.variant=pe.body1}render(){return this.element?Ao`
|
|
122
|
+
<${So(this.element)}
|
|
123
123
|
part="text"
|
|
124
124
|
class="ft-typography ft-typography--${this.variant}">
|
|
125
125
|
<slot></slot>
|
|
126
|
-
</${
|
|
127
|
-
`:
|
|
126
|
+
</${So(this.element)}>
|
|
127
|
+
`:Ao`
|
|
128
128
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
129
|
-
`}};
|
|
129
|
+
`}};q.styles=[na,oa,sa,aa,la,Fr,jt,ca,ua,da,pa];fa([(0,Co.property)()],q.prototype,"element",void 0);fa([(0,Co.property)()],q.prototype,"variant",void 0);var ga=c(h());var ma={"ft-typography":q};(0,ga.customElements)(ma);var wo=c(h());function Qi(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function ya(t){return Qi(t).split("|").pop()}function ba(t){return Qi(t).split("|").join(" > ")}function va(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>va(r,t.selected)),value:t.value}}function xa(t){return(0,wo.flatDeep)(t.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]}).filter(e=>e.selected).map(e=>e.label)}function _o(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>va(e,!1))}}function Sa(t){return(0,wo.flatDeep)(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var Na=c(E()),G=c(h());var Ma=c(E()),k=c(h());var Oa=c(E()),fe=c(h()),Ea=fe.FtCssVariableFactory.extend("--ft-ripple-color","",fe.designSystemVariables.colorContent),K={color:Ea,backgroundColor:fe.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ea),opacityContentOnSurfacePressed:fe.FtCssVariableFactory.external(fe.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:fe.FtCssVariableFactory.external(fe.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:fe.FtCssVariableFactory.external(fe.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:fe.FtCssVariableFactory.external(fe.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:fe.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Aa=fe.FtCssVariableFactory.extend("--ft-ripple-color","",fe.designSystemVariables.colorPrimary),Ca={color:Aa,backgroundColor:fe.FtCssVariableFactory.extend("--ft-ripple-background-color","",Aa)},wa=fe.FtCssVariableFactory.extend("--ft-ripple-color","",fe.designSystemVariables.colorSecondary),_a={color:wa,backgroundColor:fe.FtCssVariableFactory.extend("--ft-ripple-background-color","",wa)},Ra=Oa.css`
|
|
130
130
|
:host {
|
|
131
131
|
display: contents;
|
|
132
132
|
}
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
|
|
140
140
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
141
141
|
overflow: hidden;
|
|
142
|
-
border-radius: ${
|
|
142
|
+
border-radius: ${K.borderRadius};
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
.ft-ripple .ft-ripple--background,
|
|
@@ -173,27 +173,27 @@
|
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
.ft-ripple .ft-ripple--background {
|
|
176
|
-
background-color: ${
|
|
176
|
+
background-color: ${K.backgroundColor};
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
.ft-ripple .ft-ripple--effect {
|
|
180
|
-
background-color: ${
|
|
180
|
+
background-color: ${K.color};
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
184
|
-
background-color: ${
|
|
184
|
+
background-color: ${_a.backgroundColor};
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
188
|
-
background-color: ${
|
|
188
|
+
background-color: ${_a.color};
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
192
|
-
background-color: ${
|
|
192
|
+
background-color: ${Ca.backgroundColor};
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
196
|
-
background-color: ${
|
|
196
|
+
background-color: ${Ca.color};
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
.ft-ripple .ft-ripple--background {
|
|
@@ -223,22 +223,22 @@
|
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
226
|
-
opacity: ${
|
|
226
|
+
opacity: ${K.opacityContentOnSurfaceHover};
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
230
|
-
opacity: ${
|
|
230
|
+
opacity: ${K.opacityContentOnSurfaceSelected};
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
234
|
-
opacity: ${
|
|
234
|
+
opacity: ${K.opacityContentOnSurfaceFocused};
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
238
|
-
opacity: ${
|
|
238
|
+
opacity: ${K.opacityContentOnSurfacePressed};
|
|
239
239
|
transform: translate(-50%, -50%) scale(1);
|
|
240
240
|
}
|
|
241
|
-
`;var
|
|
241
|
+
`;var Ta=c(E()),pi=c(h()),dr={color:pi.FtCssVariableFactory.extend("--ft-loader-color","",pi.designSystemVariables.colorPrimary),size:pi.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},ka=Ta.css`
|
|
242
242
|
:host {
|
|
243
243
|
line-height: 0;
|
|
244
244
|
}
|
|
@@ -247,8 +247,8 @@
|
|
|
247
247
|
display: inline-block;
|
|
248
248
|
position: relative;
|
|
249
249
|
|
|
250
|
-
width: ${
|
|
251
|
-
height: ${
|
|
250
|
+
width: ${dr.size};
|
|
251
|
+
height: ${dr.size};
|
|
252
252
|
}
|
|
253
253
|
|
|
254
254
|
.ft-loader div {
|
|
@@ -257,7 +257,7 @@
|
|
|
257
257
|
width: 25%;
|
|
258
258
|
height: 25%;
|
|
259
259
|
border-radius: 50%;
|
|
260
|
-
background: ${
|
|
260
|
+
background: ${dr.color};
|
|
261
261
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
262
262
|
}
|
|
263
263
|
|
|
@@ -304,10 +304,10 @@
|
|
|
304
304
|
transform: translate(0, 0);
|
|
305
305
|
}
|
|
306
306
|
100% {
|
|
307
|
-
transform: translate(calc(0.35 * ${
|
|
307
|
+
transform: translate(calc(0.35 * ${dr.size}), 0);
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
|
-
`;var
|
|
310
|
+
`;var La=c(E()),dt=c(h()),$e={size:dt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:dt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",dt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:dt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",dt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:dt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",dt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:dt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},$a=[La.css`
|
|
311
311
|
:host, i.ft-icon {
|
|
312
312
|
display: inline-flex;
|
|
313
313
|
align-items: center;
|
|
@@ -316,14 +316,14 @@
|
|
|
316
316
|
}
|
|
317
317
|
|
|
318
318
|
:host {
|
|
319
|
-
width: ${
|
|
320
|
-
height: ${
|
|
319
|
+
width: ${$e.size};
|
|
320
|
+
height: ${$e.size};
|
|
321
321
|
}
|
|
322
322
|
|
|
323
323
|
i.ft-icon {
|
|
324
324
|
width: 100%;
|
|
325
325
|
height: 100%;
|
|
326
|
-
font-size: ${
|
|
326
|
+
font-size: ${$e.size};
|
|
327
327
|
line-height: 1;
|
|
328
328
|
font-weight: normal;
|
|
329
329
|
text-transform: none;
|
|
@@ -334,28 +334,28 @@
|
|
|
334
334
|
text-rendering: auto;
|
|
335
335
|
-webkit-font-smoothing: antialiased;
|
|
336
336
|
-moz-osx-font-smoothing: grayscale;
|
|
337
|
-
vertical-align: ${
|
|
337
|
+
vertical-align: ${$e.verticalAlign};
|
|
338
338
|
}
|
|
339
339
|
|
|
340
340
|
i.ft-icon.ft-icon--fluid-topics {
|
|
341
|
-
font-family: ${
|
|
341
|
+
font-family: ${$e.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
342
342
|
|
|
343
343
|
/* Ugly fix because font is broken */
|
|
344
|
-
font-size: calc(0.75 * ${
|
|
345
|
-
line-height: ${
|
|
344
|
+
font-size: calc(0.75 * ${$e.size});
|
|
345
|
+
line-height: ${$e.size};
|
|
346
346
|
position: relative;
|
|
347
347
|
top: -4%;
|
|
348
348
|
justify-content: center;
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
.ft-icon--file-format {
|
|
352
|
-
font-family: ${
|
|
352
|
+
font-family: ${$e.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
353
353
|
}
|
|
354
354
|
|
|
355
355
|
.ft-icon--material {
|
|
356
|
-
font-family: ${
|
|
356
|
+
font-family: ${$e.materialFontFamily}, "Material Icons", sans-serif;
|
|
357
357
|
}
|
|
358
|
-
`,
|
|
358
|
+
`,dt.noTextSelect];var Pa=k.FtCssVariableFactory.extend("--ft-button-color","",k.designSystemVariables.colorPrimary),B={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","",At.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")},Da=k.FtCssVariableFactory.extend("--ft-button-primary-color","",k.FtCssVariableFactory.extend("--ft-button-color","",k.designSystemVariables.colorOnPrimary)),Oo={backgroundColor:k.FtCssVariableFactory.extend("--ft-button-primary-background-color","",k.FtCssVariableFactory.extend("--ft-button-background-color","",k.designSystemVariables.colorPrimary)),color:Da,rippleColor:k.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Da)},Ct={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")},Ia=Ma.css`
|
|
359
359
|
:host {
|
|
360
360
|
display: inline-block;
|
|
361
361
|
max-width: 100%;
|
|
@@ -366,7 +366,7 @@
|
|
|
366
366
|
box-shadow: 0px 0px 0px transparent;
|
|
367
367
|
border: 0px solid transparent;
|
|
368
368
|
text-shadow: 0px 0px 0px transparent;
|
|
369
|
-
font-size: ${
|
|
369
|
+
font-size: ${B.fontSize};
|
|
370
370
|
text-decoration: none;
|
|
371
371
|
}
|
|
372
372
|
|
|
@@ -400,31 +400,31 @@
|
|
|
400
400
|
border: none;
|
|
401
401
|
pointer-events: auto;
|
|
402
402
|
|
|
403
|
-
--button-internal-line-height: max(calc(${
|
|
404
|
-
--button-internal-color: ${
|
|
405
|
-
${(0,k.setVariable)(
|
|
406
|
-
${(0,k.setVariable)(
|
|
407
|
-
${(0,k.setVariable)(
|
|
403
|
+
--button-internal-line-height: max(calc(${B.fontSize} + 2px), ${B.iconSize});
|
|
404
|
+
--button-internal-color: ${B.color};
|
|
405
|
+
${(0,k.setVariable)($e.size,B.iconSize)};
|
|
406
|
+
${(0,k.setVariable)(K.color,B.rippleColor)};
|
|
407
|
+
${(0,k.setVariable)(K.borderRadius,B.borderRadius)};
|
|
408
408
|
|
|
409
|
-
border-radius: ${
|
|
410
|
-
padding: ${
|
|
411
|
-
background-color: ${
|
|
409
|
+
border-radius: ${B.borderRadius};
|
|
410
|
+
padding: ${B.verticalPadding} ${B.horizontalPadding};
|
|
411
|
+
background-color: ${B.backgroundColor};
|
|
412
412
|
color: var(--button-internal-color);
|
|
413
413
|
}
|
|
414
414
|
|
|
415
415
|
.ft-button.ft-button--outlined {
|
|
416
416
|
border: 1px solid var(--button-internal-color);
|
|
417
|
-
padding: calc(${
|
|
417
|
+
padding: calc(${B.verticalPadding} - 1px) calc(${B.horizontalPadding} - 1px);
|
|
418
418
|
}
|
|
419
419
|
|
|
420
420
|
.ft-button.ft-button--dense {
|
|
421
|
-
padding: ${
|
|
422
|
-
border-radius: ${
|
|
423
|
-
${(0,k.setVariable)(
|
|
421
|
+
padding: ${Ct.verticalPadding} ${Ct.horizontalPadding};
|
|
422
|
+
border-radius: ${Ct.borderRadius};
|
|
423
|
+
${(0,k.setVariable)(K.borderRadius,Ct.borderRadius)};
|
|
424
424
|
}
|
|
425
425
|
|
|
426
426
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
427
|
-
padding: calc(${
|
|
427
|
+
padding: calc(${Ct.verticalPadding} - 1px) calc(${Ct.horizontalPadding} - 1px);
|
|
428
428
|
}
|
|
429
429
|
|
|
430
430
|
.ft-button:not([disabled]):hover {
|
|
@@ -432,22 +432,22 @@
|
|
|
432
432
|
}
|
|
433
433
|
|
|
434
434
|
.ft-button--round {
|
|
435
|
-
border-radius: calc(var(--button-internal-line-height) / 2 + ${
|
|
435
|
+
border-radius: calc(var(--button-internal-line-height) / 2 + ${B.verticalPadding});
|
|
436
436
|
}
|
|
437
437
|
|
|
438
438
|
.ft-button--round.ft-button--dense {
|
|
439
|
-
border-radius: calc(var(--button-internal-line-height) / 2 + ${
|
|
439
|
+
border-radius: calc(var(--button-internal-line-height) / 2 + ${Ct.verticalPadding});
|
|
440
440
|
}
|
|
441
441
|
|
|
442
442
|
.ft-button[disabled] {
|
|
443
443
|
filter: grayscale(1);
|
|
444
|
-
opacity: ${
|
|
444
|
+
opacity: ${B.opacityDisabled};
|
|
445
445
|
}
|
|
446
446
|
|
|
447
447
|
.ft-button.ft-button--primary {
|
|
448
|
-
background-color: ${
|
|
449
|
-
--button-internal-color: ${
|
|
450
|
-
${(0,k.setVariable)(
|
|
448
|
+
background-color: ${Oo.backgroundColor};
|
|
449
|
+
--button-internal-color: ${Oo.color};
|
|
450
|
+
${(0,k.setVariable)(K.color,Oo.rippleColor)};
|
|
451
451
|
}
|
|
452
452
|
|
|
453
453
|
.ft-button--label {
|
|
@@ -456,13 +456,13 @@
|
|
|
456
456
|
white-space: nowrap;
|
|
457
457
|
text-overflow: ellipsis;
|
|
458
458
|
display: block;
|
|
459
|
-
margin: 0 ${
|
|
459
|
+
margin: 0 ${B.iconPadding};
|
|
460
460
|
${(0,k.setVariable)(At.fontSize,"1em")};
|
|
461
461
|
${(0,k.setVariable)(At.lineHeight,"var(--button-internal-line-height)")};
|
|
462
462
|
}
|
|
463
463
|
|
|
464
464
|
.ft-button--dense .ft-button--label {
|
|
465
|
-
margin: 0 ${
|
|
465
|
+
margin: 0 ${Ct.iconPadding};
|
|
466
466
|
}
|
|
467
467
|
|
|
468
468
|
.ft-button--label.ft-button--label-no-text {
|
|
@@ -475,13 +475,13 @@
|
|
|
475
475
|
}
|
|
476
476
|
|
|
477
477
|
.ft-button--label[hidden] + [part="icon"] {
|
|
478
|
-
margin: 0 calc(${
|
|
479
|
-
padding: 0 ${
|
|
478
|
+
margin: 0 calc(${B.horizontalPadding} * -1);
|
|
479
|
+
padding: 0 ${B.verticalPadding};
|
|
480
480
|
}
|
|
481
481
|
|
|
482
482
|
.ft-button--dense .ft-button--label[hidden] + [part="icon"] {
|
|
483
|
-
margin: 0 calc(${
|
|
484
|
-
padding: 0 ${
|
|
483
|
+
margin: 0 calc(${Ct.horizontalPadding} * -1);
|
|
484
|
+
padding: 0 ${Ct.verticalPadding};
|
|
485
485
|
}
|
|
486
486
|
|
|
487
487
|
.ft-button:not(.ft-button--trailing-icon) [part="label"] {
|
|
@@ -489,10 +489,10 @@
|
|
|
489
489
|
}
|
|
490
490
|
|
|
491
491
|
ft-loader {
|
|
492
|
-
${(0,k.setVariable)(
|
|
493
|
-
${(0,k.setVariable)(
|
|
492
|
+
${(0,k.setVariable)(dr.size,B.iconSize)};
|
|
493
|
+
${(0,k.setVariable)(dr.color,"var(--button-internal-color)")};
|
|
494
494
|
}
|
|
495
|
-
`;var
|
|
495
|
+
`;var fi={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(ye.fontFamily,"Body2 typography"),fontSize:G.FtCssVariableFactory.external(ye.fontSize,"Body2 typography"),fontWeight:G.FtCssVariableFactory.external(ye.fontWeight,"Body2 typography"),letterSpacing:G.FtCssVariableFactory.external(ye.letterSpacing,"Body2 typography"),lineHeight:G.FtCssVariableFactory.external(ye.lineHeight,"Body2 typography"),textTransform:G.FtCssVariableFactory.external(ye.textTransform,"Body2 typography")},Ba=Na.css`
|
|
496
496
|
.ft-filter-level--container {
|
|
497
497
|
display: flex;
|
|
498
498
|
flex-direction: column;
|
|
@@ -507,14 +507,14 @@
|
|
|
507
507
|
flex-shrink: 0;
|
|
508
508
|
text-decoration: none;
|
|
509
509
|
position: relative;
|
|
510
|
-
border-radius: ${
|
|
510
|
+
border-radius: ${fi.borderRadiusM};
|
|
511
511
|
overflow: hidden;
|
|
512
512
|
display: flex;
|
|
513
513
|
align-items: center;
|
|
514
514
|
padding: 4px 4px;
|
|
515
515
|
gap: 4px;
|
|
516
516
|
cursor: pointer;
|
|
517
|
-
color: ${
|
|
517
|
+
color: ${fi.colorOnSurface};
|
|
518
518
|
}
|
|
519
519
|
|
|
520
520
|
.ft-filter-level--go-back:focus {
|
|
@@ -543,11 +543,11 @@
|
|
|
543
543
|
}
|
|
544
544
|
|
|
545
545
|
ft-button {
|
|
546
|
-
${(0,
|
|
546
|
+
${(0,G.setVariable)(B.color,fi.colorOnSurface)};
|
|
547
547
|
}
|
|
548
548
|
|
|
549
549
|
ft-button.ft-filter-level--display-more {
|
|
550
|
-
${(0,
|
|
550
|
+
${(0,G.setVariable)(B.color,fi.buttonMoreColor)};
|
|
551
551
|
}
|
|
552
552
|
|
|
553
553
|
ft-radio, ft-checkbox {
|
|
@@ -561,20 +561,20 @@
|
|
|
561
561
|
|
|
562
562
|
.ft-filter-level--no-values {
|
|
563
563
|
margin: 10px 0;
|
|
564
|
-
color: ${
|
|
564
|
+
color: ${fi.colorOnSurfaceMedium};
|
|
565
565
|
}
|
|
566
|
-
`;var
|
|
566
|
+
`;var wr=c(E()),X=c(j()),ue=c(h());var Qe=c(E()),be=c(j()),ld=c(sr()),Ve=c(h());var Rt=c(h());var Ua=c(E()),xe=c(j()),za=c(nt()),hi=c(h());var Be=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},M=class extends hi.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 hi.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 hi.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 Ua.html`
|
|
567
567
|
<style>
|
|
568
568
|
.ft-ripple .ft-ripple--effect {
|
|
569
569
|
left: ${this.originX}px;
|
|
570
570
|
top: ${this.originY}px;
|
|
571
571
|
}
|
|
572
572
|
</style>
|
|
573
|
-
<div class="${(0,
|
|
573
|
+
<div class="${(0,za.classMap)(e)}">
|
|
574
574
|
<div class="ft-ripple--background"></div>
|
|
575
575
|
<div class="ft-ripple--effect"></div>
|
|
576
576
|
</div>
|
|
577
|
-
`}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(
|
|
577
|
+
`}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=Ra;Be([(0,xe.property)({type:Boolean})],M.prototype,"primary",void 0);Be([(0,xe.property)({type:Boolean})],M.prototype,"secondary",void 0);Be([(0,xe.property)({type:Boolean})],M.prototype,"unbounded",void 0);Be([(0,xe.property)({type:Boolean})],M.prototype,"activated",void 0);Be([(0,xe.property)({type:Boolean})],M.prototype,"selected",void 0);Be([(0,xe.property)({type:Boolean})],M.prototype,"disabled",void 0);Be([(0,xe.state)()],M.prototype,"hovered",void 0);Be([(0,xe.state)()],M.prototype,"focused",void 0);Be([(0,xe.state)()],M.prototype,"pressed",void 0);Be([(0,xe.state)()],M.prototype,"rippling",void 0);Be([(0,xe.state)()],M.prototype,"originX",void 0);Be([(0,xe.state)()],M.prototype,"originY",void 0);Be([(0,xe.query)(".ft-ripple")],M.prototype,"ripple",void 0);Be([(0,xe.query)(".ft-ripple--effect")],M.prototype,"rippleEffect",void 0);var Ha=c(h());var Va={"ft-ripple":M};(0,Ha.customElements)(Va);var Tu=c(E()),lt=c(j()),at=c(h());var ja=c(E()),Wt=c(h()),mi={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")},Wa=ja.css`
|
|
578
578
|
.ft-tooltip--container {
|
|
579
579
|
display: block;
|
|
580
580
|
}
|
|
@@ -592,28 +592,28 @@
|
|
|
592
592
|
box-sizing: border-box;
|
|
593
593
|
overflow: hidden;
|
|
594
594
|
width: max-content;
|
|
595
|
-
max-width: ${
|
|
595
|
+
max-width: ${mi.maxWidth};
|
|
596
596
|
text-align: center;
|
|
597
|
-
padding: ${
|
|
597
|
+
padding: ${mi.distance};
|
|
598
598
|
}
|
|
599
599
|
|
|
600
600
|
.ft-tooltip--content {
|
|
601
601
|
padding: 4px 8px;
|
|
602
|
-
border-radius: ${
|
|
603
|
-
background-color: ${
|
|
604
|
-
color: ${
|
|
602
|
+
border-radius: ${mi.borderRadiusS};
|
|
603
|
+
background-color: ${mi.backgroundColor};
|
|
604
|
+
color: ${mi.color};
|
|
605
605
|
position: relative;
|
|
606
606
|
word-break: break-word;
|
|
607
607
|
}
|
|
608
|
-
`;var za=["top","right","bottom","left"],Ua=["start","end"],bo=za.reduce((t,e)=>t.concat(e,e+"-"+Ua[0],e+"-"+Ua[1]),[]),Ai=Math.min,Kt=Math.max,Oi=Math.round;var Ct=t=>({x:t,y:t}),hd={left:"right",right:"left",bottom:"top",top:"bottom"};function Ha(t,e,r){return Kt(t,Ai(e,r))}function nn(t,e){return typeof t=="function"?t(e):t}function Ci(t){return t.split("-")[0]}function Gt(t){return t.split("-")[1]}function xo(t){return t==="x"?"y":"x"}function So(t){return t==="y"?"height":"width"}function on(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Eo(t){return xo(on(t))}function ja(t,e,r){r===void 0&&(r=!1);let i=Gt(t),n=Eo(t),o=So(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=yo(s)),[s,yo(s)]}function Va(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function yo(t){let e=Ci(t);return hd[e]+t.slice(e.length)}function md(t){var e,r,i,n;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(n=t.left)!=null?n:0}}function Wa(t){return typeof t!="number"?md(t):{top:t,right:t,bottom:t,left:t}}function gr(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function qa(t,e,r){let{reference:i,floating:n}=t,o=on(e),s=Eo(e),a=So(s),l=Ci(e),c=o==="y",p=i.x+i.width/2-n.width/2,d=i.y+i.height/2-n.height/2,f=i[a]/2-n[a]/2,h;switch(l){case"top":h={x:p,y:i.y-n.height};break;case"bottom":h={x:p,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:d};break;case"left":h={x:i.x-n.width,y:d};break;default:h={x:i.x,y:i.y}}let m=Gt(e);return m&&(h[s]+=f*(m==="end"?1:-1)*(r&&c?-1:1)),h}async function Ka(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=nn(e,t),m=Wa(h),S=a[f?d==="floating"?"reference":"floating":d],E=gr(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(S)))==null||r?S:S.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:p,strategy:l})),O=d==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,L=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),D=await(o.isElement==null?void 0:o.isElement(L))&&await(o.getScale==null?void 0:o.getScale(L))||{x:1,y:1},me=gr(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:O,offsetParent:L,strategy:l}):O);return{top:(E.top-me.top+m.top)/D.y,bottom:(me.bottom-E.bottom+m.bottom)/D.y,left:(E.left-me.left+m.left)/D.x,right:(me.right-E.right+m.right)/D.x}}var gd=50,Ga=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:o=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:Ka},l=await(s.isRTL==null?void 0:s.isRTL(e)),c=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:p,y:d}=qa(c,i,l),f=i,h=0,m={};for(let g=0;g<o.length;g++){let S=o[g];if(!S)continue;let{name:E,fn:O}=S,{x:L,y:D,data:me,reset:le}=await O({x:p,y:d,initialPlacement:i,placement:f,strategy:n,middlewareData:m,rects:c,platform:a,elements:{reference:t,floating:e}});p=L??p,d=D??d,m[E]={...m[E],...me},le&&h<gd&&(h++,typeof le=="object"&&(le.placement&&(f=le.placement),le.rects&&(c=le.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):le.rects),{x:p,y:d}=qa(c,f,l)),g=-1)}return{x:p,y:d,placement:f,strategy:n,middlewareData:m}};function vd(t,e,r){return(t?[...r.filter(n=>Gt(n)===t),...r.filter(n=>Gt(n)!==t)]:r.filter(n=>Ci(n)===n)).filter(n=>t?Gt(n)===t||(e?Va(n)!==n:!1):!0)}var Xa=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:o,middlewareData:s,placement:a,platform:l,elements:c}=e,{crossAxis:p=!1,alignment:d,allowedPlacements:f=bo,autoAlignment:h=!0,...m}=nn(t,e),g=d!==void 0||f===bo?vd(d||null,h,f):f,S=((r=s.autoPlacement)==null?void 0:r.index)||0,E=g[S];if(E==null)return{};if(a!==E)return{reset:{placement:g[0]}};let O=await l.detectOverflow(e,m),L=ja(E,o,await(l.isRTL==null?void 0:l.isRTL(c.floating))),D=[O[Ci(E)],O[L[0]],O[L[1]]],me=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:E,overflows:D}],le=g[S+1];if(le)return{data:{index:S+1,overflows:me},reset:{placement:le}};let Ht=me.map(He=>{let et=Gt(He.placement);return[He.placement,et&&p?He.overflows.slice(0,2).reduce((je,cr)=>je+cr,0):He.overflows[0],He.overflows]}).sort((He,et)=>He[1]-et[1]),jt=((n=Ht.filter(He=>He[2].slice(0,Gt(He[0])?2:3).every(et=>et<=0))[0])==null?void 0:n[0])||Ht[0][0];return jt!==a?{data:{index:S+1,overflows:me},reset:{placement:jt}}:{}}}};var Ya=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n,platform:o}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:O=>{let{x:L,y:D}=O;return{x:L,y:D}}},...c}=nn(t,e),p={x:r,y:i},d=await o.detectOverflow(e,c),f=on(n),h=xo(f),m=p[h],g=p[f],S=(O,L)=>Ha(L+d[O==="y"?"top":"left"],L,L-d[O==="y"?"bottom":"right"]);s&&(m=S(h,m)),a&&(g=S(f,g));let E=l.fn({...e,[h]:m,[f]:g});return{...E,data:{x:E.x-r,y:E.y-i,enabled:{[h]:s,[f]:a}}}}}};function an(){return typeof window<"u"}function yr(t){return Ja(t)?(t.nodeName||"").toLowerCase():"#document"}function Ne(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Nt(t){var e;return(e=(Ja(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ja(t){return an()?t instanceof Node||t instanceof Ne(t).Node:!1}function dt(t){return an()?t instanceof Element||t instanceof Ne(t).Element:!1}function Bt(t){return an()?t instanceof HTMLElement||t instanceof Ne(t).HTMLElement:!1}function Za(t){return!an()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ne(t).ShadowRoot}function wi(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=ft(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function Qa(t){return/^(table|td|th)$/.test(yr(t))}function Ri(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var yd=/transform|translate|scale|rotate|perspective|filter/,bd=/paint|layout|strict|content/,vr=t=>!!t&&t!=="none",Ao;function Wr(t){let e=dt(t)?ft(t):t;return vr(e.transform)||vr(e.translate)||vr(e.scale)||vr(e.rotate)||vr(e.perspective)||!ln()&&(vr(e.backdropFilter)||vr(e.filter))||yd.test(e.willChange||"")||bd.test(e.contain||"")}function el(t){let e=Xt(t);for(;Bt(e)&&!qr(e);){if(Wr(e))return e;if(Ri(e))return null;e=Xt(e)}return null}function ln(){return Ao==null&&(Ao=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ao}function qr(t){return/^(html|body|#document)$/.test(yr(t))}function ft(t){return Ne(t).getComputedStyle(t)}function Ti(t){return dt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Xt(t){if(yr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Za(t)&&t.host||Nt(t);return Za(e)?e.host:e}function tl(t){let e=Xt(t);return qr(e)?(t.ownerDocument||t).body:Bt(e)&&wi(e)?e:tl(e)}function sn(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=tl(t),o=n===((i=t.ownerDocument)==null?void 0:i.body),s=Ne(n);if(o){let a=cn(s);return e.concat(s,s.visualViewport||[],wi(n)?n:[],a&&r?sn(a):[])}else return e.concat(n,sn(n,[],r))}function cn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function nl(t){let e=ft(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=Bt(t),o=n?t.offsetWidth:r,s=n?t.offsetHeight:i,a=Oi(r)!==o||Oi(i)!==s;return a&&(r=o,i=s),{width:r,height:i,$:a}}function ol(t){return dt(t)?t:t.contextElement}function Kr(t){let e=ol(t);if(!Bt(e))return Ct(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:o}=nl(e),s=(o?Oi(r.width):r.width)/i,a=(o?Oi(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var xd=Ct(0);function sl(t){let e=Ne(t);return!ln()||!e.visualViewport?xd:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Sd(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Ne(t)}function _i(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),o=ol(t),s=Ct(1);e&&(i?dt(i)&&(s=Kr(i)):s=Kr(t));let a=Sd(o,r,i)?sl(o):Ct(0),l=(n.left+a.x)/s.x,c=(n.top+a.y)/s.y,p=n.width/s.x,d=n.height/s.y;if(o&&i){let f=Ne(o),h=dt(i)?Ne(i):i,m=f,g=cn(m);for(;g&&h!==m;){let S=Kr(g),E=g.getBoundingClientRect(),O=ft(g),L=E.left+(g.clientLeft+parseFloat(O.paddingLeft))*S.x,D=E.top+(g.clientTop+parseFloat(O.paddingTop))*S.y;l*=S.x,c*=S.y,p*=S.x,d*=S.y,l+=L,c+=D,m=Ne(g),g=cn(m)}}return gr({width:p,height:d,x:l,y:c})}function un(t,e){let r=Ti(t).scrollLeft;return e?e.left+r:_i(Nt(t)).left+r}function al(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-un(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function Ed(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,o=n==="fixed",s=Nt(i),a=e?Ri(e.floating):!1;if(i===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=Ct(1),p=Ct(0),d=Bt(i);if((d||!o)&&((yr(i)!=="body"||wi(s))&&(l=Ti(i)),d)){let h=_i(i);c=Kr(i),p.x=h.x+i.clientLeft,p.y=h.y+i.clientTop}let f=s&&!d&&!o?al(s,l):Ct(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+p.x+f.x,y:r.y*c.y-l.scrollTop*c.y+p.y+f.y}}function Ad(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Od(t){let e=Ti(t),r=t.ownerDocument.body,i=Kt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=Kt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-e.scrollLeft+un(t),s=-e.scrollTop;return ft(r).direction==="rtl"&&(o+=Kt(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:o,y:s}}var Cd=25;function wd(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=Ne(t),o=Nt(t),s=n.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,p=0;if(s){let f=!ln()||e==="fixed";i?f||(c=-s.offsetLeft,p=-s.offsetTop):(a=s.width,l=s.height,f&&(c=s.offsetLeft,p=s.offsetTop))}if(un(o)<=0){let f=o.ownerDocument,h=f.body,m=getComputedStyle(h),g=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,S=Math.abs(o.clientWidth-h.clientWidth-g),E=getComputedStyle(o).scrollbarGutter==="stable both-edges"?S/2:S;E<=Cd&&(a-=E)}return{width:a,height:l,x:c,y:p}}function Rd(t,e){let r=_i(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,o=Kr(t),s=t.clientWidth*o.x,a=t.clientHeight*o.y,l=n*o.x,c=i*o.y;return{width:s,height:a,x:l,y:c}}function rl(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=wd(t,r,e);else if(e==="document")i=Od(Nt(t));else if(dt(e))i=Rd(e,r);else{let n=sl(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return gr(i)}function Td(t,e){let r=e.get(t);if(r)return r;let i=sn(t,[],!1).filter(a=>dt(a)&&yr(a)!=="body"),n=null,o=ft(t).position==="fixed",s=o?Xt(t):t;for(;dt(s)&&!qr(s);){let a=ft(s),l=Wr(s),c=n?n.position:o?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(d=>d!==s):n=a,s=Xt(s)}return e.set(t,i),i}function _d(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?Ri(e)?[]:Td(e,this._c):[].concat(r),i],a=rl(e,s[0],n),l=a.top,c=a.right,p=a.bottom,d=a.left;for(let f=1;f<s.length;f++){let h=rl(e,s[f],n);l=Kt(h.top,l),c=Ai(h.right,c),p=Ai(h.bottom,p),d=Kt(h.left,d)}return{width:c-d,height:p-l,x:d,y:l}}function Ld(t){let{width:e,height:r}=nl(t);return{width:e,height:r}}function kd(t,e,r){let i=Bt(e),n=Nt(e),o=r==="fixed",s=_i(t,!0,o,e),a={scrollLeft:0,scrollTop:0},l=Ct(0);if((i||!o)&&((yr(e)!=="body"||wi(n))&&(a=Ti(e)),i)){let f=_i(e,!0,o,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}!i&&n&&(l.x=un(n));let c=n&&!i&&!o?al(n,a):Ct(0),p=s.left+a.scrollLeft-l.x-c.x,d=s.top+a.scrollTop-l.y-c.y;return{x:p,y:d,width:s.width,height:s.height}}function Oo(t){return ft(t).position==="static"}function il(t,e){if(!Bt(t)||ft(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Nt(t)===r&&(r=r.ownerDocument.body),r}function ll(t,e){let r=Ne(t);if(Ri(t))return r;if(!Bt(t)){let n=Xt(t);for(;n&&!qr(n);){if(dt(n)&&!Oo(n))return n;n=Xt(n)}return r}let i=il(t,e);for(;i&&Qa(i)&&Oo(i);)i=il(i,e);return i&&qr(i)&&Oo(i)&&!Wr(i)?r:i||el(t)||r}var Pd=async function(t){let e=this.getOffsetParent||ll,r=this.getDimensions,i=await r(t.floating);return{reference:kd(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function $d(t){return ft(t).direction==="rtl"}var pn={convertOffsetParentRelativeRectToViewportRelativeRect:Ed,getDocumentElement:Nt,getClippingRect:_d,getOffsetParent:ll,getElementRects:Pd,getClientRects:Ad,getDimensions:Ld,getScale:Kr,isElement:dt,isRTL:$d};var cl=Xa,ul=Ya;var pl=(t,e,r)=>{let i=new Map,n=r??{},o={...pn,...n.platform,_c:i};return Ga(t,e,{...n,platform:o})};function dl(t){return Dd(t)}function Co(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Dd(t){for(let e=t;e;e=Co(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Co(t);e;e=Co(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Wr(r)||e.tagName==="BODY"))return e}return null}async function fl(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},pl(t,e,{strategy:i.strategy,platform:{...pn,getOffsetParent:n=>pn.getOffsetParent(n,dl)},middleware:[ul({crossAxis:!0}),cl({allowedPlacements:[i.placement]})]})}var si=u(v());var Zo=u(j());var hl=u(j(),1);var wo=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function ml(t,e){return(0,hl.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Li(t);try{return JSON.parse(r)}catch{return Li(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:ki,...e??{}})}function Id(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(!Gr(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(!Gr(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=s=>Object.keys(s).filter(a=>s[a]!=null),o=n(t);if(r=o.length,r!==n(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[i]))return!1;for(i=r;i--!==0;){let s=o[i];if(!Gr(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Gr(t,e){try{return Id(t,e)}catch{return!1}}function ki(t,e){return!Gr(t,e)}function Li(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 n=e(i);return n[t]=!0,n}}var gl=u(j(),1);var Ro=t=>{let e=t??{};return(r,i)=>{var n;let o={hasChanged:ki,attribute:!1,...e};(0,gl.property)(o)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:(a=>a[i]),store:e.store})}};var fn=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var br=u(j(),1);var hn=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),o=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of i)try{await s()}catch(a){n(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var yl=u(A(),1);var mn=globalThis,Md=mn.ShadowRoot&&(mn.ShadyCSS===void 0||mn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var vl=(t,e)=>{if(Md)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=mn.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}};var gn=class extends yl.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 vl(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){wo(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 bl(t,e,...r){var i;let n=t.querySelector(e);for(let o of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(o);return n}var Yr=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Al,xl=Symbol("constructorPrototype"),Sl=Symbol("constructorName"),Ol=Symbol("exportpartsDebouncer"),El=Symbol("dynamicDependenciesLoaded"),Xr=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Xr.eventName="exportparts-updated";var wt=class extends gn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Al]=new hn(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Ol].run(()=>{var n,o;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Sl]=this.constructor.name,this[xl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Sl]&&Object.setPrototypeOf(this,this[xl])}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[El]||(r[El]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Xr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Xr.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 Xr)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let o=[...n??[],i];r=bl(this.shadowRoot,...o)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(o=>o.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(e){var r,i,n,o,s,a;let l=f=>f!=null&&f.trim().length>0,c=e.filter(l).map(f=>f.trim());if(c.length===0){this.exportparts=void 0;return}let p=new Set;for(let f of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let h=(o=(n=f.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&o!==void 0?o:[],m=(a=(s=f.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(S=>S.split(":")[1]))!==null&&a!==void 0?a:[],g=[...h,...m].filter(l).map(S=>S.trim());for(let S of g)p.add(S)}if(p.size===0){this.exportparts=void 0;return}let d=[...p.values()].flatMap(f=>c.map(h=>`${f}:${h}--${f}`));this.exportparts=[...this.part,...d].join(", ")}};Al=Ol;Yr([(0,br.property)()],wt.prototype,"exportpartsPrefix",void 0);Yr([ml([])],wt.prototype,"exportpartsPrefixes",void 0);Yr([(0,br.property)({reflect:!0})],wt.prototype,"exportparts",void 0);Yr([(0,br.property)()],wt.prototype,"customStylesheet",void 0);Yr([(0,br.property)()],wt.prototype,"elementToFocus",void 0);Yr([(0,br.state)()],wt.prototype,"useAdoptedStyleSheets",void 0);function vn(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Pi=Symbol("internalReduxEventsUnsubscribers"),Yt=Symbol("internalStoresUnsubscribers"),xr=Symbol("internalStores"),Nd=dn(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[xr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[xr].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[xr].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[xr].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[xr].delete(a)}setupStores(){this.unsubscribeFromStores(),this[xr].forEach((s,a)=>this.subscribeToStore(a,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(s.store);c&&(s.store?this[Yt].has(s.store):this[Yt].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l;this[Yt].set(s,a.subscribe(()=>this.updateFromStores())),this[Pi].set(s,[]),vn(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((c,p)=>{if(typeof this[p]=="function"&&(!c.store||a.name===c.store)){let d=f=>this[p](f);a.addEventListener(c.eventName,d),this[Pi].get(s).push(()=>a.removeEventListener(c.eventName,d))}})),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[Pi].get(s))===null||a===void 0||a.forEach(l=>l()),this[Pi].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Yt,r=xr,i=Pi,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Cl=class extends Nd(wt){};function nt(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];if(0)var n,o;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map((function(s){return"'"+s+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ft(t){return!!t&&!!t[te]}function ht(t){var e;return!!t&&((function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===Wd})(t)||Array.isArray(t)||!!t[Pl]||!!(!((e=t.constructor)===null||e===void 0)&&e[Pl])||Mo(t)||No(t))}function Sr(t,e,r){r===void 0&&(r=!1),Qr(t)===0?(r?Object.keys:Jr)(t).forEach((function(i){r&&typeof i=="symbol"||e(i,t[i],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function Qr(t){var e=t[te];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Mo(t)?2:No(t)?3:0}function Zr(t,e){return Qr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Bd(t,e){return Qr(t)===2?t.get(e):t[e]}function $l(t,e,r){var i=Qr(t);i===2?t.set(e,r):i===3?t.add(r):t[e]=r}function Dl(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Mo(t){return jd&&t instanceof Map}function No(t){return Vd&&t instanceof Set}function Zt(t){return t.o||t.t}function Bo(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Nl(t);delete e[te];for(var r=Jr(e),i=0;i<r.length;i++){var n=r[i],o=e[n];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[n]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function Fo(t,e){return e===void 0&&(e=!1),Uo(t)||Ft(t)||!ht(t)||(Qr(t)>1&&(t.set=t.add=t.clear=t.delete=Fd),Object.freeze(t),e&&Sr(t,(function(r,i){return Fo(i,!0)}),!0)),t}function Fd(){nt(2)}function Uo(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Rt(t){var e=Io[t];return e||nt(18,t),e}function Ud(t,e){Io[t]||(Io[t]=e)}function Po(){return Di}function To(t,e){e&&(Rt("Patches"),t.u=[],t.s=[],t.v=e)}function yn(t){$o(t),t.p.forEach(zd),t.p=null}function $o(t){t===Di&&(Di=t.l)}function wl(t){return Di={p:[],l:Di,h:t,m:!0,_:0}}function zd(t){var e=t[te];e.i===0||e.i===1?e.j():e.g=!0}function _o(t,e){e._=e.p.length;var r=e.p[0],i=t!==void 0&&t!==r;return e.h.O||Rt("ES5").S(e,t,i),i?(r[te].P&&(yn(e),nt(4)),ht(t)&&(t=bn(e,t),e.l||xn(e,t)),e.u&&Rt("Patches").M(r[te].t,t,e.u,e.s)):t=bn(e,r,[]),yn(e),e.u&&e.v(e.u,e.s),t!==Ml?t:void 0}function bn(t,e,r){if(Uo(e))return e;var i=e[te];if(!i)return Sr(e,(function(a,l){return Rl(t,i,e,a,l,r)}),!0),e;if(i.A!==t)return e;if(!i.P)return xn(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=Bo(i.k):i.o,o=n,s=!1;i.i===3&&(o=new Set(n),n.clear(),s=!0),Sr(o,(function(a,l){return Rl(t,i,n,a,l,r,s)})),xn(t,n,!1),r&&t.u&&Rt("Patches").N(i,r,t.u,t.s)}return i.o}function Rl(t,e,r,i,n,o,s){if(Ft(n)){var a=bn(t,n,o&&e&&e.i!==3&&!Zr(e.R,i)?o.concat(i):void 0);if($l(r,i,a),!Ft(a))return;t.m=!1}else s&&r.add(n);if(ht(n)&&!Uo(n)){if(!t.h.D&&t._<1)return;bn(t,n),e&&e.A.l||xn(t,n)}}function xn(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Fo(e,r)}function Lo(t,e){var r=t[te];return(r?Zt(r):t)[e]}function Tl(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Object.getPrototypeOf(r)}}function Jt(t){t.P||(t.P=!0,t.l&&Jt(t.l))}function ko(t){t.o||(t.o=Bo(t.t))}function Do(t,e,r){var i=Mo(e)?Rt("MapSet").F(e,r):No(e)?Rt("MapSet").T(e,r):t.O?(function(n,o){var s=Array.isArray(n),a={i:s?1:0,A:o?o.A:Po(),P:!1,I:!1,R:{},l:o,t:n,k:null,o:null,j:null,C:!1},l=a,c=Ii;s&&(l=[a],c=$i);var p=Proxy.revocable(l,c),d=p.revoke,f=p.proxy;return a.k=f,a.j=d,f})(e,r):Rt("ES5").J(e,r);return(r?r.A:Po()).p.push(i),i}function Hd(t){return Ft(t)||nt(22,t),(function e(r){if(!ht(r))return r;var i,n=r[te],o=Qr(r);if(n){if(!n.P&&(n.i<4||!Rt("ES5").K(n)))return n.t;n.I=!0,i=_l(r,o),n.I=!1}else i=_l(r,o);return Sr(i,(function(s,a){n&&Bd(n.t,s)===a||$l(i,s,e(a))})),o===3?new Set(i):i})(t)}function _l(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Bo(t)}function Il(){function t(s,a){var l=o[s];return l?l.enumerable=a:o[s]=l={configurable:!0,enumerable:a,get:function(){var c=this[te];return Ii.get(c,s)},set:function(c){var p=this[te];Ii.set(p,s,c)}},l}function e(s){for(var a=s.length-1;a>=0;a--){var l=s[a][te];if(!l.P)switch(l.i){case 5:i(l)&&Jt(l);break;case 4:r(l)&&Jt(l)}}}function r(s){for(var a=s.t,l=s.k,c=Jr(l),p=c.length-1;p>=0;p--){var d=c[p];if(d!==te){var f=a[d];if(f===void 0&&!Zr(a,d))return!0;var h=l[d],m=h&&h[te];if(m?m.t!==f:!Dl(h,f))return!0}}var g=!!a[te];return c.length!==Jr(a).length+(g?0:1)}function i(s){var a=s.k;if(a.length!==s.t.length)return!0;var l=Object.getOwnPropertyDescriptor(a,a.length-1);if(l&&!l.get)return!0;for(var c=0;c<a.length;c++)if(!a.hasOwnProperty(c))return!0;return!1}function n(s){s.g&&nt(3,JSON.stringify(Zt(s)))}var o={};Ud("ES5",{J:function(s,a){var l=Array.isArray(s),c=(function(d,f){if(d){for(var h=Array(f.length),m=0;m<f.length;m++)Object.defineProperty(h,""+m,t(m,!0));return h}var g=Nl(f);delete g[te];for(var S=Jr(g),E=0;E<S.length;E++){var O=S[E];g[O]=t(O,d||!!g[O].enumerable)}return Object.create(Object.getPrototypeOf(f),g)})(l,s),p={i:l?5:4,A:a?a.A:Po(),P:!1,I:!1,R:{},l:a,t:s,k:c,o:null,g:!1,C:!1};return Object.defineProperty(c,te,{value:p,writable:!0}),c},S:function(s,a,l){l?Ft(a)&&a[te].A===s&&e(s.p):(s.u&&(function c(p){if(p&&typeof p=="object"){var d=p[te];if(d){var f=d.t,h=d.k,m=d.R,g=d.i;if(g===4)Sr(h,(function(D){D!==te&&(f[D]!==void 0||Zr(f,D)?m[D]||c(h[D]):(m[D]=!0,Jt(d)))})),Sr(f,(function(D){h[D]!==void 0||Zr(h,D)||(m[D]=!1,Jt(d))}));else if(g===5){if(i(d)&&(Jt(d),m.length=!0),h.length<f.length)for(var S=h.length;S<f.length;S++)m[S]=!1;else for(var E=f.length;E<h.length;E++)m[E]=!0;for(var O=Math.min(h.length,f.length),L=0;L<O;L++)h.hasOwnProperty(L)||(m[L]=!0),m[L]===void 0&&c(h[L])}}}})(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var Ll,Di,zo=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",jd=typeof Map<"u",Vd=typeof Set<"u",kl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ml=zo?Symbol.for("immer-nothing"):((Ll={})["immer-nothing"]=!0,Ll),Pl=zo?Symbol.for("immer-draftable"):"__$immer_draftable",te=zo?Symbol.for("immer-state"):"__$immer_state";var Wd=""+Object.prototype.constructor,Jr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Nl=Object.getOwnPropertyDescriptors||function(t){var e={};return Jr(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},Io={},Ii={get:function(t,e){if(e===te)return t;var r=Zt(t);if(!Zr(r,e))return(function(n,o,s){var a,l=Tl(o,s);return l?"value"in l?l.value:(a=l.get)===null||a===void 0?void 0:a.call(n.k):void 0})(t,r,e);var i=r[e];return t.I||!ht(i)?i:i===Lo(t.t,e)?(ko(t),t.o[e]=Do(t.A.h,i,t)):i},has:function(t,e){return e in Zt(t)},ownKeys:function(t){return Reflect.ownKeys(Zt(t))},set:function(t,e,r){var i=Tl(Zt(t),e);if(i?.set)return i.set.call(t.k,r),!0;if(!t.P){var n=Lo(Zt(t),e),o=n?.[te];if(o&&o.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Dl(r,n)&&(r!==void 0||Zr(t.t,e)))return!0;ko(t),Jt(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return Lo(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ko(t),Jt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Zt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:r[e]}},defineProperty:function(){nt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){nt(12)}},$i={};Sr(Ii,(function(t,e){$i[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),$i.deleteProperty=function(t,e){return $i.set.call(this,t,e,void 0)},$i.set=function(t,e,r){return Ii.set.call(this,t[0],e,r,t[0])};var qd=(function(){function t(r){var i=this;this.O=kl,this.D=!0,this.produce=function(n,o,s){if(typeof n=="function"&&typeof o!="function"){var a=o;o=n;var l=i;return function(g){var S=this;g===void 0&&(g=a);for(var E=arguments.length,O=Array(E>1?E-1:0),L=1;L<E;L++)O[L-1]=arguments[L];return l.produce(g,(function(D){var me;return(me=o).call.apply(me,[S,D].concat(O))}))}}var c;if(typeof o!="function"&&nt(6),s!==void 0&&typeof s!="function"&&nt(7),ht(n)){var p=wl(i),d=Do(i,n,void 0),f=!0;try{c=o(d),f=!1}finally{f?yn(p):$o(p)}return typeof Promise<"u"&&c instanceof Promise?c.then((function(g){return To(p,s),_o(g,p)}),(function(g){throw yn(p),g})):(To(p,s),_o(c,p))}if(!n||typeof n!="object"){if((c=o(n))===void 0&&(c=n),c===Ml&&(c=void 0),i.D&&Fo(c,!0),s){var h=[],m=[];Rt("Patches").M(n,c,h,m),s(h,m)}return c}nt(21,n)},this.produceWithPatches=function(n,o){if(typeof n=="function")return function(c){for(var p=arguments.length,d=Array(p>1?p-1:0),f=1;f<p;f++)d[f-1]=arguments[f];return i.produceWithPatches(c,(function(h){return n.apply(void 0,[h].concat(d))}))};var s,a,l=i.produce(n,o,(function(c,p){s=c,a=p}));return typeof Promise<"u"&&l instanceof Promise?l.then((function(c){return[c,s,a]})):[l,s,a]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){ht(r)||nt(8),Ft(r)&&(r=Hd(r));var i=wl(this),n=Do(this,r,void 0);return n[te].C=!0,$o(i),n},e.finishDraft=function(r,i){var n=r&&r[te],o=n.A;return To(o,i),_o(void 0,o)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!kl&&nt(20),this.O=r},e.applyPatches=function(r,i){var n;for(n=i.length-1;n>=0;n--){var o=i[n];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}n>-1&&(i=i.slice(n+1));var s=Rt("Patches").$;return Ft(r)?s(r,i):this.produce(r,(function(a){return s(a,i)}))},t})(),qe=new qd,Kd=qe.produce,Hm=qe.produceWithPatches.bind(qe),jm=qe.setAutoFreeze.bind(qe),Vm=qe.setUseProxies.bind(qe),Wm=qe.applyPatches.bind(qe),qm=qe.createDraft.bind(qe),Km=qe.finishDraft.bind(qe),Sn=Kd;function Er(t){"@babel/helpers - typeof";return Er=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Er(t)}function Bl(t,e){if(Er(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(Er(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Fl(t){var e=Bl(t,"string");return Er(e)=="symbol"?e:e+""}function Ul(t,e,r){return(e=Fl(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function zl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function Ho(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?zl(Object(r),!0).forEach(function(i){Ul(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zl(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function Te(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 Hl=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),jo=function(){return Math.random().toString(36).substring(7).split("").join(".")},En={INIT:"@@redux/INIT"+jo(),REPLACE:"@@redux/REPLACE"+jo(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+jo()}};function Gd(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Vo(t,e,r){var i;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Te(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Te(1));return r(Vo)(t,e)}if(typeof t!="function")throw new Error(Te(2));var n=t,o=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function p(){if(l)throw new Error(Te(3));return o}function d(g){if(typeof g!="function")throw new Error(Te(4));if(l)throw new Error(Te(5));var S=!0;return c(),a.push(g),function(){if(S){if(l)throw new Error(Te(6));S=!1,c();var O=a.indexOf(g);a.splice(O,1),s=null}}}function f(g){if(!Gd(g))throw new Error(Te(7));if(typeof g.type>"u")throw new Error(Te(8));if(l)throw new Error(Te(9));try{l=!0,o=n(o,g)}finally{l=!1}for(var S=s=a,E=0;E<S.length;E++){var O=S[E];O()}return g}function h(g){if(typeof g!="function")throw new Error(Te(10));n=g,f({type:En.REPLACE})}function m(){var g,S=d;return g={subscribe:function(O){if(typeof O!="object"||O===null)throw new Error(Te(11));function L(){O.next&&O.next(p())}L();var D=S(L);return{unsubscribe:D}}},g[Hl]=function(){return this},g}return f({type:En.INIT}),i={dispatch:f,subscribe:d,getState:p,replaceReducer:h},i[Hl]=m,i}function Xd(t){Object.keys(t).forEach(function(e){var r=t[e],i=r(void 0,{type:En.INIT});if(typeof i>"u")throw new Error(Te(12));if(typeof r(void 0,{type:En.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Te(13))})}function jl(t){for(var e=Object.keys(t),r={},i=0;i<e.length;i++){var n=e[i];typeof t[n]=="function"&&(r[n]=t[n])}var o=Object.keys(r),s,a;try{Xd(r)}catch(l){a=l}return function(c,p){if(c===void 0&&(c={}),a)throw a;if(0)var d;for(var f=!1,h={},m=0;m<o.length;m++){var g=o[m],S=r[g],E=c[g],O=S(E,p);if(typeof O>"u"){var L=p&&p.type;throw new Error(Te(14))}h[g]=O,f=f||O!==E}return f=f||o.length!==Object.keys(c).length,f?h:c}}function ei(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function Vl(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(i){return function(){var n=i.apply(void 0,arguments),o=function(){throw new Error(Te(15))},s={getState:n.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=e.map(function(l){return l(s)});return o=ei.apply(void 0,a)(n.dispatch),Ho(Ho({},n),{},{dispatch:o})}}}function Wl(t){var e=function(i){var n=i.dispatch,o=i.getState;return function(s){return function(a){return typeof a=="function"?a(n,o,t):s(a)}}};return e}var ql=Wl();ql.withExtraArgument=Wl;var Wo=ql;var Zl=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[o]=n[o])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}})(),Yd=function(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,n,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(p){return l([c,p])}}function l(c){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(o=c[0]&2?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,n=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(p){c=[6,p],n=0}finally{i=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},ti=function(t,e){for(var r=0,i=e.length,n=t.length;r<i;r++,n++)t[n]=e[r];return t},Zd=Object.defineProperty,Jd=Object.defineProperties,Qd=Object.getOwnPropertyDescriptors,Kl=Object.getOwnPropertySymbols,ef=Object.prototype.hasOwnProperty,tf=Object.prototype.propertyIsEnumerable,Gl=function(t,e,r){return e in t?Zd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},Qt=function(t,e){for(var r in e||(e={}))ef.call(e,r)&&Gl(t,r,e[r]);if(Kl)for(var i=0,n=Kl(e);i<n.length;i++){var r=n[i];tf.call(e,r)&&Gl(t,r,e[r])}return t},qo=function(t,e){return Jd(t,Qd(e))},rf=function(t,e,r){return new Promise(function(i,n){var o=function(l){try{a(r.next(l))}catch(c){n(c)}},s=function(l){try{a(r.throw(l))}catch(c){n(c)}},a=function(l){return l.done?i(l.value):Promise.resolve(l.value).then(o,s)};a((r=r.apply(t,e)).next())})};var nf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ei:ei.apply(null,arguments)},pg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function of(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}function er(t,e){function r(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var o=e.apply(void 0,i);if(!o)throw new Error("prepareAction did not return an object");return Qt(Qt({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:t,payload:i[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(i){return i.type===t},r}var sf=(function(t){Zl(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,ti([void 0],r[0].concat(this)))):new(e.bind.apply(e,ti([void 0],r.concat(this))))},e})(Array),af=(function(t){Zl(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,ti([void 0],r[0].concat(this)))):new(e.bind.apply(e,ti([void 0],r.concat(this))))},e})(Array);function Xo(t){return ht(t)?Sn(t,function(){}):t}function lf(t){return typeof t=="boolean"}function cf(){return function(e){return uf(e)}}function uf(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,i=t.immutableCheck,n=i===void 0?!0:i,o=t.serializableCheck,s=o===void 0?!0:o,a=t.actionCreatorCheck,l=a===void 0?!0:a,c=new sf;if(r&&(lf(r)?c.push(Wo):c.push(Wo.withExtraArgument(r.extraArgument))),0){if(n)var p;if(s)var d;if(l)var f}return c}var Ko=!0;function Jl(t){var e=cf(),r=t||{},i=r.reducer,n=i===void 0?void 0:i,o=r.middleware,s=o===void 0?e():o,a=r.devTools,l=a===void 0?!0:a,c=r.preloadedState,p=c===void 0?void 0:c,d=r.enhancers,f=d===void 0?void 0:d,h;if(typeof n=="function")h=n;else if(of(n))h=jl(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var m=s;if(typeof m=="function"&&(m=m(e),!Ko&&!Array.isArray(m)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ko&&m.some(function(D){return typeof D!="function"}))throw new Error("each middleware provided to configureStore must be a function");var g=Vl.apply(void 0,m),S=ei;l&&(S=nf(Qt({trace:!Ko},typeof l=="object"&&l)));var E=new af(g),O=E;Array.isArray(f)?O=ti([g],f):typeof f=="function"&&(O=f(E));var L=S.apply(void 0,O);return Vo(h,p,L)}function Ql(t){var e={},r=[],i,n={addCase:function(o,s){var a=typeof o=="string"?o:o.type;if(!a)throw new Error("`builder.addCase` cannot be called with an empty action type");if(a in e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[a]=s,n},addMatcher:function(o,s){return r.push({matcher:o,reducer:s}),n},addDefaultCase:function(o){return i=o,n}};return t(n),[e,r,i]}function pf(t){return typeof t=="function"}function df(t,e,r,i){r===void 0&&(r=[]);var n=typeof e=="function"?Ql(e):[e,r,i],o=n[0],s=n[1],a=n[2],l;if(pf(t))l=function(){return Xo(t())};else{var c=Xo(t);l=function(){return c}}function p(d,f){d===void 0&&(d=l());var h=ti([o[f.type]],s.filter(function(m){var g=m.matcher;return g(f)}).map(function(m){var g=m.reducer;return g}));return h.filter(function(m){return!!m}).length===0&&(h=[a]),h.reduce(function(m,g){if(g)if(Ft(m)){var S=m,E=g(S,f);return E===void 0?m:E}else{if(ht(m))return Sn(m,function(O){return g(O,f)});var E=g(m,f);if(E===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return E}return m},d)}return p.getInitialState=l,p}function ff(t,e){return t+"/"+e}function ec(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Xo(t.initialState),i=t.reducers||{},n=Object.keys(i),o={},s={},a={};n.forEach(function(p){var d=i[p],f=ff(e,p),h,m;"reducer"in d?(h=d.reducer,m=d.prepare):h=d,o[p]=h,s[f]=h,a[p]=m?er(f,m):er(f)});function l(){var p=typeof t.extraReducers=="function"?Ql(t.extraReducers):[t.extraReducers],d=p[0],f=d===void 0?{}:d,h=p[1],m=h===void 0?[]:h,g=p[2],S=g===void 0?void 0:g,E=Qt(Qt({},f),s);return df(r,function(O){for(var L in E)O.addCase(L,E[L]);for(var D=0,me=m;D<me.length;D++){var le=me[D];O.addMatcher(le.matcher,le.reducer)}S&&O.addDefaultCase(S)})}var c;return{name:e,reducer:function(p,d){return c||(c=l()),c(p,d)},actions:a,caseReducers:o,getInitialState:function(){return c||(c=l()),c.getInitialState()}}}var hf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",mf=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=hf[Math.random()*64|0];return e},gf=["name","message","stack","code"],Go=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),Xl=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),vf=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,i=gf;r<i.length;r++){var n=i[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},mg=(function(){function t(e,r,i){var n=er(e+"/fulfilled",function(p,d,f,h){return{payload:p,meta:qo(Qt({},h||{}),{arg:f,requestId:d,requestStatus:"fulfilled"})}}),o=er(e+"/pending",function(p,d,f){return{payload:void 0,meta:qo(Qt({},f||{}),{arg:d,requestId:p,requestStatus:"pending"})}}),s=er(e+"/rejected",function(p,d,f,h,m){return{payload:h,error:(i&&i.serializeError||vf)(p||"Rejected"),meta:qo(Qt({},m||{}),{arg:f,requestId:d,rejectedWithValue:!!h,requestStatus:"rejected",aborted:p?.name==="AbortError",condition:p?.name==="ConditionError"})}}),a=!1,l=typeof AbortController<"u"?AbortController:(function(){function p(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return p.prototype.abort=function(){},p})();function c(p){return function(d,f,h){var m=i?.idGenerator?i.idGenerator(p):mf(),g=new l,S,E=!1;function O(D){S=D,g.abort()}var L=(function(){return rf(this,null,function(){var D,me,le,Ht,Qn,jt,He;return Yd(this,function(et){switch(et.label){case 0:return et.trys.push([0,4,,5]),Ht=(D=i?.condition)==null?void 0:D.call(i,p,{getState:f,extra:h}),bf(Ht)?[4,Ht]:[3,2];case 1:Ht=et.sent(),et.label=2;case 2:if(Ht===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,Qn=new Promise(function(je,cr){return g.signal.addEventListener("abort",function(){return cr({name:"AbortError",message:S||"Aborted"})})}),d(o(m,p,(me=i?.getPendingMeta)==null?void 0:me.call(i,{requestId:m,arg:p},{getState:f,extra:h}))),[4,Promise.race([Qn,Promise.resolve(r(p,{dispatch:d,getState:f,extra:h,requestId:m,signal:g.signal,abort:O,rejectWithValue:function(je,cr){return new Go(je,cr)},fulfillWithValue:function(je,cr){return new Xl(je,cr)}})).then(function(je){if(je instanceof Go)throw je;return je instanceof Xl?n(je.payload,m,p,je.meta):n(je,m,p)})])];case 3:return le=et.sent(),[3,5];case 4:return jt=et.sent(),le=jt instanceof Go?s(null,m,p,jt.payload,jt.meta):s(jt,m,p),[3,5];case 5:return He=i&&!i.dispatchConditionRejection&&s.match(le)&&le.meta.condition,He||d(le),[2,le]}})})})();return Object.assign(L,{abort:O,requestId:m,arg:p,unwrap:function(){return L.then(yf)}})}}return Object.assign(c,{pending:o,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t})();function yf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function bf(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var tc="listener",rc="completed",ic="cancelled",gg="task-"+ic,vg="task-"+rc,yg=tc+"-"+ic,bg=tc+"-"+rc;var Yo="listenerMiddleware";var xg=er(Yo+"/add"),Sg=er(Yo+"/removeAll"),Eg=er(Yo+"/remove");var Yl,Ag=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Yl||(Yl=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},xf=function(t){return function(e){setTimeout(e,t)}},Og=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:xf(10);Il();var Sf=dn(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),An=class extends Sf(Object){};window.ftReduxStores||(window.ftReduxStores={});var nc=class t extends An{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,o=window.ftReduxStores[i];if(vn(o))return o;if(n==null)return;let s=ec({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),a=Jl({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let p=Li(s.getInitialState());for(let d of c.keeping)p[d]=(l??p)[d];return p}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return s.reducer(l,c)}});return window.ftReduxStores[n.name]=new t(s,a,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new fn;let n=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,s,a)=>{let l=s,c=o[l];return c?(...p)=>{let d=c(...p.map(n));return this.reduxStore.dispatch(d),d}:p=>{let d=l,f=this.getState()[d];Gr(f,p)||this.setState({[d]:n(p)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var On=class{static format(e,r,i,n,o){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n,!!o)):this.getIntlDateTime(e,r,i,n,!!o)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n,o){let s=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return o?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var Cn=u(v()),Ef="ft-app-info",ri=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ri.eventName="authentication-change";var Mi=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Mi.eventName="ui-locale-changed";var Af={session:(t,e)=>{(0,Cn.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>T.dispatchEvent(new ri(e.payload)),0))}},T=Cn.FtReduxStore.get({name:Ef,reducers:Af,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var oc=u(v()),wn=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},Jg=(0,oc.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(T)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,o;return((o=(n=this.metadataDescriptors.find(a=>a.key===i))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1)?a=>On.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return wn([(0,Zo.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),wn([(0,Zo.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),wn([Ro({store:T.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),wn([Ro({store:T.name})],e.prototype,"uiLocale",void 0),e});var sc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(sc||(sc={}));var ac;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(ac||(ac={}));var lc;(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"})(lc||(lc={}));var cc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(cc||(cc={}));var uc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(uc||(uc={}));var pc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(pc||(pc={}));var dc;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(dc||(dc={}));var fc;(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"})(fc||(fc={}));var hc;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(hc||(hc={}));var mc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(mc||(mc={}));var gc;(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"})(gc||(gc={}));var vc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(vc||(vc={}));var yc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(yc||(yc={}));var bc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(bc||(bc={}));var xc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(xc||(xc={}));var Sc;(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"})(Sc||(Sc={}));var Ec;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Ec||(Ec={}));var Ac;(function(t){t.ASC="ASC",t.DESC="DESC"})(Ac||(Ac={}));var Oc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Oc||(Oc={}));var Cc;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Cc||(Cc={}));var wc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(wc||(wc={}));var Rc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Rc||(Rc={}));var Tc;(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"})(Tc||(Tc={}));var _c;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(_c||(_c={}));var Lc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Lc||(Lc={}));var kc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(kc||(kc={}));var Pc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Pc||(Pc={}));var de;(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"})(de||(de={}));var ot;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(ot||(ot={}));var $c;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})($c||($c={}));var Dc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Dc||(Dc={}));var Ic;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Ic||(Ic={}));var Mc;(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"})(Mc||(Mc={}));var Nc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Nc||(Nc={}));var Bc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Bc||(Bc={}));var Fc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Fc||(Fc={}));var Uc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Uc||(Uc={}));var zc;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(zc||(zc={}));var Hc;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Hc||(Hc={}));var jc;(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"})(jc||(jc={}));var Vc;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Vc||(Vc={}));var Of={[de.PERSONAL_BOOK_SHARE_USER]:[de.PERSONAL_BOOK_USER],[de.HTML_EXPORT_USER]:[de.PERSONAL_BOOK_USER],[de.PDF_EXPORT_USER]:[de.PERSONAL_BOOK_USER],[de.KHUB_ADMIN]:[de.CONTENT_PUBLISHER],[de.ADMIN]:[de.KHUB_ADMIN,de.USERS_ADMIN,de.PORTAL_ADMIN,de.BEHAVIOR_DATA_USER],[de.GENERATIVE_AI_EXPORT_USER]:[de.GENERATIVE_AI_USER]};function Wc(t,e){return t===e||(Of[t]??[]).some(r=>Wc(r,e))}function qc(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=>Wc(i,e))}var kn=u(v());var Jo=u(v());var Ar=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=T.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=T.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var ii=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ar.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ar.await()}};var Ke=class extends ii{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(o,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Jo.CacheRegistry,this.cache=e?n.commonCache:new Jo.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 Rn=class extends Ke{async listMySearches(){let{session:e}=T.getState();return qc(e,de.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Tn=class extends Ke{async listMyBookmarks(){let e=T.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var _n=class extends Ke{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=T.getState().session;return!!e?.sessionAuthenticated}};var Ln=class extends Ke{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=T.getState().session;return!!e?.sessionAuthenticated}};var Cf="ft-user-assets",wf={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:n}=e.payload;es(t,r,[...Qo(t,r),n]),Kc(t,r,1,i),Gc(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;es(t,r,Qo(t,r).map(n=>n.id===i.id?i:n)),Gc(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;es(t,r,Qo(t,r).filter(o=>o.id!==n)),Kc(t,r,-1,i)}},Xc={[ot.SEARCHES]:"savedSearches",[ot.BOOKMARKS]:"bookmarks",[ot.BOOKS]:void 0,[ot.COLLECTIONS]:void 0},Qo=(t,e)=>{var r;let i=Xc[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},es=(t,e,r)=>{let i=Xc[e];i&&(t[i]=r)},Kc=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===ot.BOOKMARKS&&i)){let o=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,o+r)}},Gc=(t,e)=>{let r=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},ke=kn.FtReduxStore.get({name:Cf,reducers:wf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ot).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),ts=class{constructor(e=new _n,r=new Ln){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=T.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Tn,this.savedSearchesService=new Rn,T.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=T.getState();(0,kn.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(),ke.actions.clearAssetCount(),ke.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ke.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ke.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ke.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();ke.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&ke.getState().assetCounts.allAsset[e]!==r.count&&ke.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&ke.getState().assetCounts.bookmarkByMap[e]!==r.count&&ke.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(ke.getState().assetCounts.bookmarkByMap).length!==0;e===ot.BOOKMARKS&&r&&ke.actions.clearBookmarkCountByMap(),ke.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;ke.actions.bookmarks(r)}}},Rf=new ts;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Rf);var rs=class{addCommand(e,r=!1){T.commands.add(e,r)}consumeCommand(e){return T.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new rs;var st=u(v());var Yc,ni=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Tf=Symbol("clearAfterUnitTest"),Pn=class extends(0,st.withEventBus)(Ke){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Yc]=()=>{this.defaultMessages={},this.cache=new st.CacheRegistry,this.listeners={}},this.currentUiLocale=T.getState().uiLocale,T.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=T.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,st.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let o=e.toLowerCase(),s=this.resolveContext(o);return new st.ParametrizedLabelResolver((n=this.defaultMessages[o])!==null&&n!==void 0?n:{},s).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof st.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new ni({loadedContexts:e})),this.dispatchEvent(new ni({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new ni({loadedContexts:[e]})),this.dispatchEvent(new ni({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,st.delay)(0).then(()=>i()).catch(()=>null)))}};Yc=Tf;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Pn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Pn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Ni=window.FluidTopicsI18nService,is=window.FluidTopicsCustomI18nService;var Zc=u(v()),ns=class{highlightHtml(e,r,i){(0,Zc.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new ns;var Jc=u(v());var os=class{isDate(e){var r,i,n,o;return(o=(n=((i=(r=T.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===e))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1}format(e,r){var i,n,o,s;if(e==null)return"";try{return Jc.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:T.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(o=r?.withTime)!==null&&o!==void 0?o:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new os;var Qc=u(v());var Bi=class{static get(e,r){var i,n,o,s;let a=T.getState(),{lang:l,region:c}=(o=(n=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&o!==void 0?o:{lang:"en",region:"US"};return new Qc.SearchPlaceConverter(a.baseUrl,e??20,(s=a.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${l}-${c}`)}};var ss=class{urlToSearchRequest(e){return Bi.get().parse(e)}searchRequestToUrl(e){return Bi.get().serialize(e)}};window.FluidTopicsUrlService=new ss;var Ut=u(v());var Or=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Or.eventName="change";var as=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))}},eu=new as;var $n=class t extends Ut.WithEventBus{static build(){return new t(window.history,eu,()=>window.location,!1)}constructor(e,r,i,n){var o,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(o=e.state)===null||o===void 0?void 0:o.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Ut.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Or(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[o,s,a])=>{let l=r(),c={...l===this.currentIndex?this.currentState:void 0,...o,index:l,href:typeof a=="string"?a:(a??this.windowLocation()).href};i.apply(n,[c,s,a]),this.setCurrentState(c,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(Or.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Or.eventName,e)}currentItem(){return(0,Ut.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,Ut.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Ut.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,Ut.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,o=e+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,i);)this.hasState(o)&&(n=o),o++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,o=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return o==null||o!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=$n.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var tu=u(A());var ru=tu.css`
|
|
609
|
-
`;var
|
|
608
|
+
`;var Ka=["top","right","bottom","left"],qa=["start","end"],To=Ka.reduce((t,e)=>t.concat(e,e+"-"+qa[0],e+"-"+qa[1]),[]),gi=Math.min,qt=Math.max,yi=Math.round;var wt=t=>({x:t,y:t}),Rp={left:"right",right:"left",bottom:"top",top:"bottom"};function Ga(t,e,r){return qt(t,gi(e,r))}function Ji(t,e){return typeof t=="function"?t(e):t}function bi(t){return t.split("-")[0]}function Kt(t){return t.split("-")[1]}function ko(t){return t==="x"?"y":"x"}function Lo(t){return t==="y"?"height":"width"}function en(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function $o(t){return ko(en(t))}function Ya(t,e,r){r===void 0&&(r=!1);let i=Kt(t),o=$o(t),n=Lo(o),s=o==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[n]>e.floating[n]&&(s=Ro(s)),[s,Ro(s)]}function Xa(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Ro(t){let e=bi(t);return Rp[e]+t.slice(e.length)}function Tp(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 Za(t){return typeof t!="number"?Tp(t):{top:t,right:t,bottom:t,left:t}}function pr(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 Qa(t,e,r){let{reference:i,floating:o}=t,n=en(e),s=$o(e),a=Lo(s),l=bi(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,y;switch(l){case"top":y={x:d,y:i.y-o.height};break;case"bottom":y={x:d,y:i.y+i.height};break;case"right":y={x:i.x+i.width,y:p};break;case"left":y={x:i.x-o.width,y:p};break;default:y={x:i.x,y:i.y}}let x=Kt(e);return x&&(y[s]+=f*(x==="end"?1:-1)*(r&&u?-1:1)),y}async function Ja(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:y=0}=Ji(e,t),x=Za(y),v=a[f?p==="floating"?"reference":"floating":p],T=pr(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)),P=await(n.isElement==null?void 0:n.isElement(S))&&await(n.getScale==null?void 0:n.getScale(S))||{x:1,y:1},U=pr(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:H,offsetParent:S,strategy:l}):H);return{top:(T.top-U.top+x.top)/P.y,bottom:(U.bottom-T.bottom+x.bottom)/P.y,left:(T.left-U.left+x.left)/P.x,right:(U.right-T.right+x.right)/P.x}}var kp=50,el=async(t,e,r)=>{let{placement:i="bottom",strategy:o="absolute",middleware:n=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:Ja},l=await(s.isRTL==null?void 0:s.isRTL(e)),u=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:d,y:p}=Qa(u,i,l),f=i,y=0,x={};for(let _=0;_<n.length;_++){let v=n[_];if(!v)continue;let{name:T,fn:H}=v,{x:S,y:P,data:U,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=P??p,x[T]={...x[T],...U},ae&&y<kp&&(y++,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}=Qa(u,f,l)),_=-1)}return{x:d,y:p,placement:f,strategy:o,middlewareData:x}};function Lp(t,e,r){return(t?[...r.filter(o=>Kt(o)===t),...r.filter(o=>Kt(o)!==t)]:r.filter(o=>bi(o)===o)).filter(o=>t?Kt(o)===t||(e?Xa(o)!==o:!1):!0)}var tl=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=To,autoAlignment:y=!0,...x}=Ji(t,e),_=p!==void 0||f===To?Lp(p||null,y,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=Ya(T,n,await(l.isRTL==null?void 0:l.isRTL(u.floating))),P=[H[bi(T)],H[S[0]],H[S[1]]],U=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:T,overflows:P}],ae=_[v+1];if(ae)return{data:{index:v+1,overflows:U},reset:{placement:ae}};let Q=U.map(tt=>{let or=Kt(tt.placement);return[tt.placement,or&&d?tt.overflows.slice(0,2).reduce((mp,gp)=>mp+gp,0):tt.overflows[0],tt.overflows]}).sort((tt,or)=>tt[1]-or[1]),si=((o=Q.filter(tt=>tt[2].slice(0,Kt(tt[0])?2:3).every(or=>or<=0))[0])==null?void 0:o[0])||Q[0][0];return si!==a?{data:{index:v+1,overflows:U},reset:{placement:si}}:{}}}};var rl=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:P}=H;return{x:S,y:P}}},...u}=Ji(t,e),d={x:r,y:i},p=await n.detectOverflow(e,u),f=en(o),y=ko(f),x=d[y],_=d[f],v=(H,S)=>Ga(S+p[H==="y"?"top":"left"],S,S-p[H==="y"?"bottom":"right"]);s&&(x=v(y,x)),a&&(_=v(f,_));let T=l.fn({...e,[y]:x,[f]:_});return{...T,data:{x:T.x-r,y:T.y-i,enabled:{[y]:s,[f]:a}}}}}};function rn(){return typeof window<"u"}function hr(t){return nl(t)?(t.nodeName||"").toLowerCase():"#document"}function Fe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Nt(t){var e;return(e=(nl(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function nl(t){return rn()?t instanceof Node||t instanceof Fe(t).Node:!1}function pt(t){return rn()?t instanceof Element||t instanceof Fe(t).Element:!1}function Bt(t){return rn()?t instanceof HTMLElement||t instanceof Fe(t).HTMLElement:!1}function il(t){return!rn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Fe(t).ShadowRoot}function vi(t){let{overflow:e,overflowX:r,overflowY:i,display:o}=ft(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&o!=="inline"&&o!=="contents"}function ol(t){return/^(table|td|th)$/.test(hr(t))}function xi(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var $p=/transform|translate|scale|rotate|perspective|filter/,Pp=/paint|layout|strict|content/,fr=t=>!!t&&t!=="none",Po;function Ur(t){let e=pt(t)?ft(t):t;return fr(e.transform)||fr(e.translate)||fr(e.scale)||fr(e.rotate)||fr(e.perspective)||!nn()&&(fr(e.backdropFilter)||fr(e.filter))||$p.test(e.willChange||"")||Pp.test(e.contain||"")}function sl(t){let e=Gt(t);for(;Bt(e)&&!zr(e);){if(Ur(e))return e;if(xi(e))return null;e=Gt(e)}return null}function nn(){return Po==null&&(Po=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Po}function zr(t){return/^(html|body|#document)$/.test(hr(t))}function ft(t){return Fe(t).getComputedStyle(t)}function Si(t){return pt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Gt(t){if(hr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||il(t)&&t.host||Nt(t);return il(e)?e.host:e}function al(t){let e=Gt(t);return zr(e)?(t.ownerDocument||t).body:Bt(e)&&vi(e)?e:al(e)}function tn(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let o=al(t),n=o===((i=t.ownerDocument)==null?void 0:i.body),s=Fe(o);if(n){let a=on(s);return e.concat(s,s.visualViewport||[],vi(o)?o:[],a&&r?tn(a):[])}else return e.concat(o,tn(o,[],r))}function on(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function ul(t){let e=ft(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,o=Bt(t),n=o?t.offsetWidth:r,s=o?t.offsetHeight:i,a=yi(r)!==n||yi(i)!==s;return a&&(r=n,i=s),{width:r,height:i,$:a}}function dl(t){return pt(t)?t:t.contextElement}function Vr(t){let e=dl(t);if(!Bt(e))return wt(1);let r=e.getBoundingClientRect(),{width:i,height:o,$:n}=ul(e),s=(n?yi(r.width):r.width)/i,a=(n?yi(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var Dp=wt(0);function pl(t){let e=Fe(t);return!nn()||!e.visualViewport?Dp:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Mp(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Fe(t)}function Ei(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let o=t.getBoundingClientRect(),n=dl(t),s=wt(1);e&&(i?pt(i)&&(s=Vr(i)):s=Vr(t));let a=Mp(n,r,i)?pl(n):wt(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=Fe(n),y=pt(i)?Fe(i):i,x=f,_=on(x);for(;_&&y!==x;){let v=Vr(_),T=_.getBoundingClientRect(),H=ft(_),S=T.left+(_.clientLeft+parseFloat(H.paddingLeft))*v.x,P=T.top+(_.clientTop+parseFloat(H.paddingTop))*v.y;l*=v.x,u*=v.y,d*=v.x,p*=v.y,l+=S,u+=P,x=Fe(_),_=on(x)}}return pr({width:d,height:p,x:l,y:u})}function sn(t,e){let r=Si(t).scrollLeft;return e?e.left+r:Ei(Nt(t)).left+r}function fl(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-sn(t,r),o=r.top+e.scrollTop;return{x:i,y:o}}function Ip(t){let{elements:e,rect:r,offsetParent:i,strategy:o}=t,n=o==="fixed",s=Nt(i),a=e?xi(e.floating):!1;if(i===s||a&&n)return r;let l={scrollLeft:0,scrollTop:0},u=wt(1),d=wt(0),p=Bt(i);if((p||!n)&&((hr(i)!=="body"||vi(s))&&(l=Si(i)),p)){let y=Ei(i);u=Vr(i),d.x=y.x+i.clientLeft,d.y=y.y+i.clientTop}let f=s&&!p&&!n?fl(s,l):wt(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 Np(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Bp(t){let e=Si(t),r=t.ownerDocument.body,i=qt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=qt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),n=-e.scrollLeft+sn(t),s=-e.scrollTop;return ft(r).direction==="rtl"&&(n+=qt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:n,y:s}}var Fp=25;function Up(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",o=Fe(t),n=Nt(t),s=o.visualViewport,a=n.clientWidth,l=n.clientHeight,u=0,d=0;if(s){let f=!nn()||e==="fixed";i?f||(u=-s.offsetLeft,d=-s.offsetTop):(a=s.width,l=s.height,f&&(u=s.offsetLeft,d=s.offsetTop))}if(sn(n)<=0){let f=n.ownerDocument,y=f.body,x=getComputedStyle(y),_=f.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,v=Math.abs(n.clientWidth-y.clientWidth-_),T=getComputedStyle(n).scrollbarGutter==="stable both-edges"?v/2:v;T<=Fp&&(a-=T)}return{width:a,height:l,x:u,y:d}}function zp(t,e){let r=Ei(t,!0,e==="fixed"),i=r.top+t.clientTop,o=r.left+t.clientLeft,n=Vr(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 ll(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=Up(t,r,e);else if(e==="document")i=Bp(Nt(t));else if(pt(e))i=zp(e,r);else{let o=pl(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return pr(i)}function Vp(t,e){let r=e.get(t);if(r)return r;let i=tn(t,[],!1).filter(a=>pt(a)&&hr(a)!=="body"),o=null,n=ft(t).position==="fixed",s=n?Gt(t):t;for(;pt(s)&&!zr(s);){let a=ft(s),l=Ur(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 Hp(t){let{element:e,boundary:r,rootBoundary:i,strategy:o}=t,s=[...r==="clippingAncestors"?xi(e)?[]:Vp(e,this._c):[].concat(r),i],a=ll(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 y=ll(e,s[f],o);l=qt(y.top,l),u=gi(y.right,u),d=gi(y.bottom,d),p=qt(y.left,p)}return{width:u-p,height:d-l,x:p,y:l}}function jp(t){let{width:e,height:r}=ul(t);return{width:e,height:r}}function Wp(t,e,r){let i=Bt(e),o=Nt(e),n=r==="fixed",s=Ei(t,!0,n,e),a={scrollLeft:0,scrollTop:0},l=wt(0);if((i||!n)&&((hr(e)!=="body"||vi(o))&&(a=Si(e)),i)){let f=Ei(e,!0,n,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}!i&&o&&(l.x=sn(o));let u=o&&!i&&!n?fl(o,a):wt(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 Do(t){return ft(t).position==="static"}function cl(t,e){if(!Bt(t)||ft(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Nt(t)===r&&(r=r.ownerDocument.body),r}function hl(t,e){let r=Fe(t);if(xi(t))return r;if(!Bt(t)){let o=Gt(t);for(;o&&!zr(o);){if(pt(o)&&!Do(o))return o;o=Gt(o)}return r}let i=cl(t,e);for(;i&&ol(i)&&Do(i);)i=cl(i,e);return i&&zr(i)&&Do(i)&&!Ur(i)?r:i||sl(t)||r}var qp=async function(t){let e=this.getOffsetParent||hl,r=this.getDimensions,i=await r(t.floating);return{reference:Wp(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Kp(t){return ft(t).direction==="rtl"}var an={convertOffsetParentRelativeRectToViewportRelativeRect:Ip,getDocumentElement:Nt,getClippingRect:Hp,getOffsetParent:hl,getElementRects:qp,getClientRects:Np,getDimensions:jp,getScale:Vr,isElement:pt,isRTL:Kp};var ml=tl,gl=rl;var yl=(t,e,r)=>{let i=new Map,o=r??{},n={...an,...o.platform,_c:i};return el(t,e,{...o,platform:n})};function bl(t){return Gp(t)}function Mo(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Gp(t){for(let e=t;e;e=Mo(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Mo(t);e;e=Mo(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Ur(r)||e.tagName==="BODY"))return e}return null}async function vl(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},yl(t,e,{strategy:i.strategy,platform:{...an,getOffsetParent:o=>an.getOffsetParent(o,bl)},middleware:[gl({crossAxis:!0}),ml({allowedPlacements:[i.placement]})]})}var Qr=c(h());var is=c(j());var xl=c(j(),1);var Io=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function Sl(t,e){return(0,xl.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Ai(t);try{return JSON.parse(r)}catch{return Ai(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Ci,...e??{}})}function Yp(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(!Hr(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(!Hr(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(!Hr(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Hr(t,e){try{return Yp(t,e)}catch{return!1}}function Ci(t,e){return!Hr(t,e)}function Ai(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function ln(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 El=c(j(),1);var No=t=>{let e=t??{};return(r,i)=>{var o;let n={hasChanged:Ci,attribute:!1,...e};(0,El.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 cn=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var mr=c(j(),1);var un=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 Cl=c(E(),1);var dn=globalThis,Xp=dn.ShadowRoot&&(dn.ShadyCSS===void 0||dn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Al=(t,e)=>{if(Xp)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),o=dn.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=r.cssText,t.appendChild(i)}};var pn=class extends Cl.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return Al(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){Io(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};function wl(t,e,...r){var i;let o=t.querySelector(e);for(let n of r)o=(i=o?.shadowRoot)===null||i===void 0?void 0:i.querySelector(n);return o}var Wr=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Tl,_l=Symbol("constructorPrototype"),Ol=Symbol("constructorName"),kl=Symbol("exportpartsDebouncer"),Rl=Symbol("dynamicDependenciesLoaded"),jr=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};jr.eventName="exportparts-updated";var _t=class extends pn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Tl]=new un(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[kl].run(()=>{var o,n;!((o=this.exportpartsPrefix)===null||o===void 0)&&o.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((n=this.exportpartsPrefixes)===null||n===void 0?void 0:n.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Ol]=this.constructor.name,this[_l]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ol]&&Object.setPrototypeOf(this,this[_l])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[Rl]||(r[Rl]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(jr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(jr.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 jr)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:o}=this.elementToFocus;if(i!=null){let n=[...o??[],i];r=wl(this.shadowRoot,...n)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,o;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(n=>n.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((o=this.customStylesheet)!==null&&o!==void 0?o:"")}catch(n){console.error(n,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let n=document.createElement("style");n.classList.add("ft-lit-element--custom-stylesheet"),n.innerHTML=this.customStylesheet,this.shadowRoot.append(n)}}setExportpartsAttribute(e){var r,i,o,n,s,a;let l=f=>f!=null&&f.trim().length>0,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 y=(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:[],_=[...y,...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(y=>`${f}:${y}--${f}`));this.exportparts=[...this.part,...p].join(", ")}};Tl=kl;Wr([(0,mr.property)()],_t.prototype,"exportpartsPrefix",void 0);Wr([Sl([])],_t.prototype,"exportpartsPrefixes",void 0);Wr([(0,mr.property)({reflect:!0})],_t.prototype,"exportparts",void 0);Wr([(0,mr.property)()],_t.prototype,"customStylesheet",void 0);Wr([(0,mr.property)()],_t.prototype,"elementToFocus",void 0);Wr([(0,mr.state)()],_t.prototype,"useAdoptedStyleSheets",void 0);function fn(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var wi=Symbol("internalReduxEventsUnsubscribers"),Yt=Symbol("internalStoresUnsubscribers"),gr=Symbol("internalStores"),Zp=ln(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[gr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[gr].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[gr].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[gr].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[gr].delete(a)}setupStores(){this.unsubscribeFromStores(),this[gr].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[wi].set(s,[]),fn(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[wi].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[wi].get(s))===null||a===void 0||a.forEach(l=>l()),this[wi].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Yt,r=gr,i=wi,o.reduxProperties=new Map,o.reduxReactiveProperties=new Set,o.reduxEventListeners=new Map,o}),Ll=class extends Zp(_t){};function Se(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 Qp=typeof Symbol=="function"&&Symbol.observable||"@@observable",$l=Qp,Bo=()=>Math.random().toString(36).substring(7).split("").join("."),Jp={INIT:`@@redux/INIT${Bo()}`,REPLACE:`@@redux/REPLACE${Bo()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Bo()}`},hn=Jp;function mn(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 Fo(t,e,r){if(typeof t!="function")throw new Error(Se(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Se(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Se(1));return r(Fo)(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(Se(3));return o}function p(v){if(typeof v!="function")throw new Error(Se(4));if(l)throw new Error(Se(5));let T=!0;u();let H=a++;return s.set(H,v),function(){if(T){if(l)throw new Error(Se(6));T=!1,u(),s.delete(H),n=null}}}function f(v){if(!mn(v))throw new Error(Se(7));if(typeof v.type>"u")throw new Error(Se(8));if(typeof v.type!="string")throw new Error(Se(17));if(l)throw new Error(Se(9));try{l=!0,o=i(o,v)}finally{l=!1}return(n=s).forEach(H=>{H()}),v}function y(v){if(typeof v!="function")throw new Error(Se(10));i=v,f({type:hn.REPLACE})}function x(){let v=p;return{subscribe(T){if(typeof T!="object"||T===null)throw new Error(Se(11));function H(){let P=T;P.next&&P.next(d())}return H(),{unsubscribe:v(H)}},[$l](){return this}}}return f({type:hn.INIT}),{dispatch:f,subscribe:p,getState:d,replaceReducer:y,[$l]:x}}function ef(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:hn.INIT})>"u")throw new Error(Se(12));if(typeof r(void 0,{type:hn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Se(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{ef(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],y=r[f],x=a[f],_=y(x,l);if(typeof _>"u"){let v=l&&l.type;throw new Error(Se(14))}d[f]=_,u=u||_!==x}return u=u||i.length!==Object.keys(a).length,u?d:a}}function _i(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function Dl(...t){return e=>(r,i)=>{let o=e(r,i),n=()=>{throw new Error(Se(15))},s={getState:o.getState,dispatch:(l,...u)=>n(l,...u)},a=t.map(l=>l(s));return n=_i(...a)(o.dispatch),{...o,dispatch:n}}}function Ml(t){return mn(t)&&"type"in t&&typeof t.type=="string"}var jl=Symbol.for("immer-nothing"),Il=Symbol.for("immer-draftable"),ke=Symbol.for("immer-state");function ht(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var qe=Object,Kr=qe.getPrototypeOf,vn="constructor",wn="prototype",Ho="configurable",xn="enumerable",yn="writable",Oi="value",Ot=t=>!!t&&!!t[ke];function Ke(t){return t?Wl(t)||On(t)||!!t[Il]||!!t[vn]?.[Il]||Rn(t)||Tn(t):!1}var tf=qe[wn][vn].toString(),Nl=new WeakMap;function Wl(t){if(!t||!Zo(t))return!1;let e=Kr(t);if(e===null||e===qe[wn])return!0;let r=qe.hasOwnProperty.call(e,vn)&&e[vn];if(r===Object)return!0;if(!qr(r))return!1;let i=Nl.get(r);return i===void 0&&(i=Function.toString.call(r),Nl.set(r,i)),i===tf}function _n(t,e,r=!0){ki(t)===0?(r?Reflect.ownKeys(t):qe.keys(t)).forEach(o=>{e(o,t[o],t)}):t.forEach((i,o)=>e(o,i,t))}function ki(t){let e=t[ke];return e?e.type_:On(t)?1:Rn(t)?2:Tn(t)?3:0}var Uo=(t,e,r=ki(t))=>r===2?t.has(e):qe[wn].hasOwnProperty.call(t,e),jo=(t,e,r=ki(t))=>r===2?t.get(e):t[e],Sn=(t,e,r,i=ki(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function rf(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var On=Array.isArray,Rn=t=>t instanceof Map,Tn=t=>t instanceof Set,Zo=t=>typeof t=="object",qr=t=>typeof t=="function",zo=t=>typeof t=="boolean";function nf(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var Ft=t=>t.copy_||t.base_;var Qo=t=>t.modified_?t.copy_:t.base_;function Wo(t,e){if(Rn(t))return new Map(t);if(Tn(t))return new Set(t);if(On(t))return Array[wn].slice.call(t);let r=Wl(t);if(e===!0||e==="class_only"&&!r){let i=qe.getOwnPropertyDescriptors(t);delete i[ke];let o=Reflect.ownKeys(i);for(let n=0;n<o.length;n++){let s=o[n],a=i[s];a[yn]===!1&&(a[yn]=!0,a[Ho]=!0),(a.get||a.set)&&(i[s]={[Ho]:!0,[yn]:!0,[xn]:a[xn],[Oi]:t[s]})}return qe.create(Kr(t),i)}else{let i=Kr(t);if(i!==null&&r)return{...t};let o=qe.create(i);return qe.assign(o,t)}}function Jo(t,e=!1){return kn(t)||Ot(t)||!Ke(t)||(ki(t)>1&&qe.defineProperties(t,{set:gn,add:gn,clear:gn,delete:gn}),qe.freeze(t),e&&_n(t,(r,i)=>{Jo(i,!0)},!1)),t}function of(){ht(2)}var gn={[Oi]:of};function kn(t){return t===null||!Zo(t)?!0:qe.isFrozen(t)}var En="MapSet",qo="Patches",Bl="ArrayMethods",ql={};function yr(t){let e=ql[t];return e||ht(0,t),e}var Fl=t=>!!ql[t];var Ri,Kl=()=>Ri,sf=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Fl(En)?yr(En):void 0,arrayMethodsPlugin_:Fl(Bl)?yr(Bl):void 0});function Ul(t,e){e&&(t.patchPlugin_=yr(qo),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Ko(t){Go(t),t.drafts_.forEach(af),t.drafts_=null}function Go(t){t===Ri&&(Ri=t.parent_)}var zl=t=>Ri=sf(Ri,t);function af(t){let e=t[ke];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Vl(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[ke].modified_&&(Ko(e),ht(4)),Ke(t)&&(t=Hl(e,t));let{patchPlugin_:o}=e;o&&o.generateReplacementPatches_(r[ke].base_,t,e)}else t=Hl(e,r);return lf(e,t,!0),Ko(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==jl?t:void 0}function Hl(t,e){if(kn(e))return e;let r=e[ke];if(!r)return An(e,t.handledSet_,t);if(!Ln(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);Xl(r,t)}return r.copy_}function lf(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Jo(e,r)}function Gl(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Ln=(t,e)=>t.scope_===e,cf=[];function Yl(t,e,r,i){let o=Ft(t),n=t.type_;if(i!==void 0&&jo(o,i,n)===e){Sn(o,i,r,n);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;_n(o,(l,u)=>{if(Ot(u)){let d=a.get(u)||[];d.push(l),a.set(u,d)}})}let s=t.draftLocations_.get(e)??cf;for(let a of s)Sn(o,a,r,n)}function uf(t,e,r){t.callbacks_.push(function(o){let n=e;if(!n||!Ln(n,o))return;o.mapSetPlugin_?.fixSetContents(n);let s=Qo(n);Yl(t,n.draft_??n,s,r),Xl(n,o)})}function Xl(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let o=i.getPath(t);o&&i.generatePatches_(t,o,e)}Gl(t)}}function df(t,e,r){let{scope_:i}=t;if(Ot(r)){let o=r[ke];Ln(o,i)&&o.callbacks_.push(function(){bn(t);let s=Qo(o);Yl(t,r,s,e)})}else Ke(r)&&t.callbacks_.push(function(){let n=Ft(t);t.type_===3?n.has(r)&&An(r,i.handledSet_,i):jo(n,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&An(jo(t.copy_,e,t.type_),i.handledSet_,i)})}function An(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Ot(t)||e.has(t)||!Ke(t)||kn(t)||(e.add(t),_n(t,(i,o)=>{if(Ot(o)){let n=o[ke];if(Ln(n,r)){let s=Qo(n);Sn(t,i,s,t.type_),Gl(n)}}else Ke(o)&&An(o,e,r)})),t}function pf(t,e){let r=On(t),i={type_:r?1:0,scope_:e?e.scope_:Kl(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},o=i,n=Cn;r&&(o=[i],n=Ti);let{revoke:s,proxy:a}=Proxy.revocable(o,n);return i.draft_=a,i.revoke_=s,[a,i]}var Cn={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=Ft(t);if(!Uo(o,e,t.type_))return hf(t,o,e);let n=o[e];if(t.finalized_||!Ke(n)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&nf(e))return n;if(n===Vo(t.base_,e)||ff(t,e,n)){bn(t);let s=t.type_===1?+e:e,a=Xo(t.scope_,n,t,s);return t.copy_[s]=a}return n},has(t,e){return e in Ft(t)},ownKeys(t){return Reflect.ownKeys(Ft(t))},set(t,e,r){let i=Zl(Ft(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let o=Vo(Ft(t),e),n=o?.[ke];if(n&&n.base_===r)return t.copy_[e]=r,t.assigned_.set(e,!1),!0;if(rf(r,o)&&(r!==void 0||Uo(t.base_,e,t.type_)))return!0;bn(t),Yo(t)}return t.copy_[e]===r&&(r!==void 0||Uo(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),df(t,e,r)),!0},deleteProperty(t,e){return bn(t),Vo(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),Yo(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=Ft(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[yn]:!0,[Ho]:t.type_!==1||e!=="length",[xn]:i[xn],[Oi]:r[e]}},defineProperty(){ht(11)},getPrototypeOf(t){return Kr(t.base_)},setPrototypeOf(){ht(12)}},Ti={};for(let t in Cn){let e=Cn[t];Ti[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}Ti.deleteProperty=function(t,e){return Ti.set.call(this,t,e,void 0)};Ti.set=function(t,e,r){return Cn.set.call(this,t[0],e,r,t[0])};function Vo(t,e){let r=t[ke];return(r?Ft(r):t)[e]}function ff(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!Ke(r)||r[ke]?!1:t.baseRefs_.has(r)}function hf(t,e,r){let i=Zl(e,r);return i?Oi in i?i[Oi]:i.get?.call(t.draft_):void 0}function Zl(t,e){if(!(e in t))return;let r=Kr(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Kr(r)}}function Yo(t){t.modified_||(t.modified_=!0,t.parent_&&Yo(t.parent_))}function bn(t){t.copy_||(t.assigned_=new Map,t.copy_=Wo(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var mf=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(qr(e)&&!qr(r)){let n=r;r=e;let s=this;return function(l=n,...u){return s.produce(l,d=>r.call(this,d,...u))}}qr(r)||ht(6),i!==void 0&&!qr(i)&&ht(7);let o;if(Ke(e)){let n=zl(this),s=Xo(n,e,void 0),a=!0;try{o=r(s),a=!1}finally{a?Ko(n):Go(n)}return Ul(n,i),Vl(o,n)}else if(!e||!Zo(e)){if(o=r(e),o===void 0&&(o=e),o===jl&&(o=void 0),this.autoFreeze_&&Jo(o,!0),i){let n=[],s=[];yr(qo).generateReplacementPatches_(e,o,{patches_:n,inversePatches_:s}),i(n,s)}return o}else ht(1,e)},this.produceWithPatches=(e,r)=>{if(qr(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]},zo(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),zo(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),zo(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Ke(t)||ht(8),Ot(t)&&(t=Ql(t));let e=zl(this),r=Xo(e,t,void 0);return r[ke].isManual_=!0,Go(e),r}finishDraft(t,e){let r=t&&t[ke];(!r||!r.isManual_)&&ht(9);let{scope_:i}=r;return Ul(i,e),Vl(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let o=e[r];if(o.path.length===0&&o.op==="replace"){t=o.value;break}}r>-1&&(e=e.slice(r+1));let i=yr(qo).applyPatches_;return Ot(t)?i(t,e):this.produce(t,o=>i(o,e))}};function Xo(t,e,r,i){let[o,n]=Rn(e)?yr(En).proxyMap_(e,r):Tn(e)?yr(En).proxySet_(e,r):pf(e,r);return(r?.scope_??Kl()).drafts_.push(o),n.callbacks_=r?.callbacks_??[],n.key_=i,r&&i!==void 0?uf(r,n,i):n.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(n);let{patchPlugin_:u}=l;n.modified_&&u&&u.generatePatches_(n,[],l)}),o}function Ql(t){return Ot(t)||ht(10,t),Jl(t)}function Jl(t){if(!Ke(t)||kn(t))return t;let e=t[ke],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=Wo(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=Wo(t,!0);return _n(r,(o,n)=>{Sn(r,o,Jl(n))},i),e&&(e.finalized_=!1),r}var gf=new mf,es=gf.produce;function ec(t){return({dispatch:r,getState:i})=>o=>n=>typeof n=="function"?n(r,i,t):o(n)}var tc=ec(),rc=ec;var yf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?_i:_i.apply(null,arguments)},xg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},bf=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=>Ml(i)&&i.type===t,r}var ac=class Li extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Li.prototype)}static get[Symbol.species](){return Li}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Li(...e[0].concat(this)):new Li(...e.concat(this))}};function ic(t){return Ke(t)?es(t,()=>{}):t}function $n(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function vf(t){return typeof t=="boolean"}var xf=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:o=!0,actionCreatorCheck:n=!0}=e??{},s=new ac;return r&&(vf(r)?s.push(tc):s.push(rc(r.extraArgument))),s},Sf="RTK_autoBatch";var nc=t=>e=>{setTimeout(e,t)},Ef=(t,e)=>r=>{let i=!1,o=()=>{i||(i=!0,cancelAnimationFrame(n),clearTimeout(s),r())},n=t(o),s=setTimeout(o,e)},Af=(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?Ef(window.requestAnimationFrame,100):nc(10):t.type==="callback"?t.queueNotification:nc(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?.[Sf],n=!o,n&&(s||(s=!0,l(u))),i.dispatch(d)}finally{o=!0}}})},Cf=t=>function(r){let{autoBatch:i=!0}=r??{},o=new ac(t);return i&&o.push(Af(typeof i=="object"?i:void 0)),o};function lc(t){let e=xf(),{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(mn(r))l=Pl(r);else throw new Error(Ut(1));let u;typeof i=="function"?u=i(e):u=e();let d=_i;o&&(d=yf({trace:!1,...typeof o=="object"&&o}));let p=Dl(...u),f=Cf(p),y=typeof a=="function"?a(f):f(),x=d(...y);return Fo(l,s,x)}function cc(t){let e={},r=[],i,o={addCase(n,s){let a=typeof n=="string"?n:n.type;if(!a)throw new Error(Ut(28));if(a in e)throw new Error(Ut(29));return e[a]=s,o},addAsyncThunk(n,s){return s.pending&&(e[n.pending.type]=s.pending),s.rejected&&(e[n.rejected.type]=s.rejected),s.fulfilled&&(e[n.fulfilled.type]=s.fulfilled),s.settled&&r.push({matcher:n.settled,reducer:s.settled}),o},addMatcher(n,s){return r.push({matcher:n,reducer:s}),o},addDefaultCase(n){return i=n,o}};return t(o),[e,r,i]}function wf(t){return typeof t=="function"}function _f(t,e){let[r,i,o]=cc(e),n;if(wf(t))n=()=>ic(t());else{let a=ic(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(Ot(d)){let y=p(d,l);return y===void 0?d:y}else{if(Ke(d))return es(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 Of=(t,e)=>bf(t)?t.match(e):t(e);function Rf(...t){return e=>t.some(r=>Of(r,e))}var Tf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",kf=(t=21)=>{let e="",r=t;for(;r--;)e+=Tf[Math.random()*64|0];return e},Lf=["name","message","stack","code"],ts=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},oc=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},$f=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of Lf)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},sc="External signal was aborted",Pf=(()=>{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||$f)(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 y=i?.idGenerator?i.idGenerator(l):kf(),x=new AbortController,_,v;function T(S){v=S,x.abort()}u&&(u.aborted?T(sc):u.addEventListener("abort",()=>T(sc),{once:!0}));let H=(async function(){let S;try{let U=i?.condition?.(l,{getState:p,extra:f});if(Mf(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})});d(n(y,l,i?.getPendingMeta?.({requestId:y,arg:l},{getState:p,extra:f}))),S=await Promise.race([ae,Promise.resolve(r(l,{dispatch:d,getState:p,extra:f,requestId:y,signal:x.signal,abort:T,rejectWithValue:((Q,le)=>new ts(Q,le)),fulfillWithValue:((Q,le)=>new oc(Q,le))})).then(Q=>{if(Q instanceof ts)throw Q;return Q instanceof oc?o(Q.payload,y,l,Q.meta):o(Q,y,l)})])}catch(U){S=U instanceof ts?s(null,y,l,U.payload,U.meta):s(U,y,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:y,arg:l,unwrap(){return H.then(Df)}})}}return Object.assign(a,{pending:n,rejected:s,fulfilled:o,settled:Rf(s,o),typePrefix:e})}return t.withTypes=()=>t,t})();function Df(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Mf(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var uc=Symbol.for("rtk-slice-createasyncthunk"),Eg={[uc]:Pf};function If(t,e){return`${t}/${e}`}function Nf({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(Ff()):i.reducers)||{},a=Object.keys(s),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(S,P){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]=P,u},addMatcher(S,P){return l.sliceMatchers.push({matcher:S,reducer:P}),u},exposeAction(S,P){return l.actionCreators[S]=P,u},exposeCaseReducer(S,P){return l.sliceCaseReducersByName[S]=P,u}};a.forEach(S=>{let P=s[S],U={reducerName:S,type:If(o,S),createNotation:typeof i.reducers=="function"};zf(P)?Hf(U,P,u,e):Uf(U,P,u)});function d(){let[S={},P=[],U=void 0]=typeof i.extraReducers=="function"?cc(i.extraReducers):[i.extraReducers],ae={...S,...l.sliceCaseReducersByType};return _f(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 P)Q.addMatcher(le.matcher,le.reducer);U&&Q.addDefaultCase(U)})}let p=S=>S,f=new Map,y=new WeakMap,x;function _(S,P){return x||(x=d()),x(S,P)}function v(){return x||(x=d()),x.getInitialState()}function T(S,P=!1){function U(Q){let le=Q[S];return typeof le>"u"&&P&&(le=$n(y,U,v)),le}function ae(Q=p){let le=$n(f,P,()=>new WeakMap);return $n(le,Q,()=>{let si={};for(let[tt,or]of Object.entries(i.selectors??{}))si[tt]=Bf(or,Q,()=>$n(y,Q,v),P);return si})}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:P,...U}={}){let ae=P??n;return S.inject({reducerPath:ae,reducer:_},U),{...H,...T(ae,!0)}}};return H}}function Bf(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 dc=Nf();function Ff(){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 Uf({type:t,reducerName:e,createNotation:r},i,o){let n,s;if("reducer"in i){if(r&&!Vf(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 zf(t){return t._reducerDefinitionType==="asyncThunk"}function Vf(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Hf({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||Pn,pending:a||Pn,rejected:l||Pn,settled:u||Pn})}function Pn(){}var pc="listener",fc="completed",hc="cancelled",Ag=`task-${hc}`,Cg=`task-${fc}`,wg=`${pc}-${hc}`,_g=`${pc}-${fc}`;var{assign:mc}=Object;var rs="listenerMiddleware";var jf=mc(Xt(`${rs}/add`),{withTypes:()=>jf}),Og=Xt(`${rs}/removeAll`),Wf=mc(Xt(`${rs}/remove`),{withTypes:()=>Wf});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 qf=ln(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)}}}),Dn=class extends qf(Object){};window.ftReduxStores||(window.ftReduxStores={});var gc=class t extends Dn{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(fn(n))return n;if(o==null)return;let s=dc({...o,reducers:(r=o.reducers)!==null&&r!==void 0?r:{}}),a=lc({reducer:(l,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let d=Ai(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 cn,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];Hr(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 Mn=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 In=c(h()),Kf="ft-app-info",Gr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Gr.eventName="authentication-change";var $i=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};$i.eventName="ui-locale-changed";var Gf={session:(t,e)=>{(0,In.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>O.dispatchEvent(new Gr(e.payload)),0))}},O=In.FtReduxStore.get({name:Kf,reducers:Gf,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var yc=c(h()),Nn=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},iy=(0,yc.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(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=>Mn.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Nn([(0,is.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Nn([(0,is.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Nn([No({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),Nn([No({store:O.name})],e.prototype,"uiLocale",void 0),e});var bc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(bc||(bc={}));var vc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(vc||(vc={}));var xc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(xc||(xc={}));var Sc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Sc||(Sc={}));var Ec;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ec||(Ec={}));var Ac;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Ac||(Ac={}));var Cc;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Cc||(Cc={}));var wc;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(wc||(wc={}));var _c;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(_c||(_c={}));var Oc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(Oc||(Oc={}));var Rc;(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"})(Rc||(Rc={}));var Tc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Tc||(Tc={}));var kc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(kc||(kc={}));var Lc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Lc||(Lc={}));var $c;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})($c||($c={}));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 Dc;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Dc||(Dc={}));var Mc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Mc||(Mc={}));var Ic;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Ic||(Ic={}));var Nc;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Nc||(Nc={}));var Bc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Bc||(Bc={}));var Fc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Fc||(Fc={}));var Uc;(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"})(Uc||(Uc={}));var zc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(zc||(zc={}));var Vc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Vc||(Vc={}));var Hc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Hc||(Hc={}));var jc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(jc||(jc={}));var he;(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"})(he||(he={}));var ot;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(ot||(ot={}));var Wc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Wc||(Wc={}));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 Kc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Kc||(Kc={}));var Gc;(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"})(Gc||(Gc={}));var Yc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Yc||(Yc={}));var Xc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Xc||(Xc={}));var Zc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Zc||(Zc={}));var Qc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Qc||(Qc={}));var Jc;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Jc||(Jc={}));var eu;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(eu||(eu={}));var tu;(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"})(tu||(tu={}));var ru;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(ru||(ru={}));var Yf={[he.PERSONAL_BOOK_SHARE_USER]:[he.PERSONAL_BOOK_USER],[he.HTML_EXPORT_USER]:[he.PERSONAL_BOOK_USER],[he.PDF_EXPORT_USER]:[he.PERSONAL_BOOK_USER],[he.KHUB_ADMIN]:[he.CONTENT_PUBLISHER],[he.ADMIN]:[he.KHUB_ADMIN,he.USERS_ADMIN,he.PORTAL_ADMIN,he.BEHAVIOR_DATA_USER],[he.GENERATIVE_AI_EXPORT_USER]:[he.GENERATIVE_AI_USER]};function iu(t,e){return t===e||(Yf[t]??[]).some(r=>iu(r,e))}function nu(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=>iu(i,e))}var Vn=c(h());var ns=c(h());var br=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 Yr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:br.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):br.await()}};var Ge=class extends Yr{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(n,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let o=this.constructor;o.commonCache=(i=o.commonCache)!==null&&i!==void 0?i:new ns.CacheRegistry,this.cache=e?o.commonCache:new ns.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 Bn=class extends Ge{async listMySearches(){let{session:e}=O.getState();return nu(e,he.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Fn=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 Un=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 zn=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 Xf="ft-user-assets",Zf={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;ss(t,r,[...os(t,r),o]),ou(t,r,1,i),su(t,o)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;ss(t,r,os(t,r).map(o=>o.id===i.id?i:o)),su(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:o}=e.payload;ss(t,r,os(t,r).filter(n=>n.id!==o)),ou(t,r,-1,i)}},au={[ot.SEARCHES]:"savedSearches",[ot.BOOKMARKS]:"bookmarks",[ot.BOOKS]:void 0,[ot.COLLECTIONS]:void 0},os=(t,e)=>{var r;let i=au[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},ss=(t,e,r)=>{let i=au[e];i&&(t[i]=r)},ou=(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)}},su=(t,e)=>{let r=t.assetLabels.map(o=>o.title),i=e.labels.filter(o=>!r.includes(o)).map(o=>({title:o}));t.assetLabels.push(...i)},Pe=Vn.FtReduxStore.get({name:Xf,reducers:Zf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ot).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),as=class{constructor(e=new Un,r=new zn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=O.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Fn,this.savedSearchesService=new Bn,O.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=O.getState();(0,Vn.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Pe.actions.clearAssetCount(),Pe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Pe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Pe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Pe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Pe.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Pe.getState().assetCounts.allAsset[e]!==r.count&&Pe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Pe.getState().assetCounts.bookmarkByMap[e]!==r.count&&Pe.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Pe.getState().assetCounts.bookmarkByMap).length!==0;e===ot.BOOKMARKS&&r&&Pe.actions.clearBookmarkCountByMap(),Pe.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Pe.actions.bookmarks(r)}}},Qf=new as;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Qf);var ls=class{addCommand(e,r=!1){O.commands.add(e,r)}consumeCommand(e){return O.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ls;var st=c(h());var lu,Xr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Jf=Symbol("clearAfterUnitTest"),Hn=class extends(0,st.withEventBus)(Ge){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[lu]=()=>{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 Xr({loadedContexts:e})),this.dispatchEvent(new Xr({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new Xr({loadedContexts:[e]})),this.dispatchEvent(new Xr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,st.delay)(0).then(()=>i()).catch(()=>null)))}};lu=Jf;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Hn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Hn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Pi=window.FluidTopicsI18nService,cs=window.FluidTopicsCustomI18nService;var cu=c(h()),us=class{highlightHtml(e,r,i){(0,cu.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new us;var uu=c(h());var ds=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 uu.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 ds;var du=c(h());var Di=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 du.SearchPlaceConverter(a.baseUrl,e??20,(s=a.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${l}-${u}`)}};var ps=class{urlToSearchRequest(e){return Di.get().parse(e)}searchRequestToUrl(e){return Di.get().serialize(e)}};window.FluidTopicsUrlService=new ps;var zt=c(h());var vr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};vr.eventName="change";var fs=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))}},pu=new fs;var jn=class t extends zt.WithEventBus{static build(){return new t(window.history,pu,()=>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,window.location.href]),setTimeout(()=>this.dispatchEvent(new vr(this.currentItem())),0)}installProxies(){let e=r=>(i,o,[n,s,a])=>{let l=r(),u={...l===this.currentIndex?this.currentState:void 0,...n,index:l,href:typeof a=="string"?a:(a??this.windowLocation()).href};i.apply(o,[u,s,a]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(vr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(vr.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=jn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var fu=c(E());var hu=fu.css`
|
|
609
|
+
`;var yu=c(E()),Ue=c(j()),Er=c(h());var xr=c(h());function mu(t,e){let{authenticationRequired:r,session:i}=O.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var Wn=class extends Yr{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var hs=class t extends xr.FtStateManager{static build(e){return new t(O,e)}constructor(e,r){super(),this.store=e,this.cache=new xr.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new Wn,this.cleanSessionDebouncer=new xr.Debouncer,this.reloadDebouncer=new xr.Debouncer(500),this.apiProvider=r??(()=>br.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(Gr.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",()=>mu(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}reloadConfiguration(){var e;(e=this.cache)===null||e===void 0||e.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new $i(i)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}},gu=hs.build();var Sr=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 Mi=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 Sr(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 Ee=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 Er.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=gu,this.contextRoot=new Mi}render(){return yu.html`
|
|
610
610
|
<slot></slot>
|
|
611
|
-
`}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>
|
|
612
|
-
`;var
|
|
611
|
+
`}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>Pi.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=hu;Ee([(0,Ue.property)()],ie.prototype,"baseUrl",void 0);Ee([(0,Ue.property)()],ie.prototype,"tenantId",void 0);Ee([(0,Ue.property)()],ie.prototype,"apiIntegrationIdentifier",void 0);Ee([(0,Ue.property)()],ie.prototype,"apiIntegrationAppVersion",void 0);Ee([(0,Ue.property)()],ie.prototype,"uiLocale",void 0);Ee([(0,Er.jsonProperty)(null)],ie.prototype,"availableUiLocales",void 0);Ee([(0,Er.jsonProperty)(null)],ie.prototype,"metadataConfiguration",void 0);Ee([(0,Ue.property)({type:Boolean})],ie.prototype,"editorMode",void 0);Ee([(0,Ue.property)({type:Boolean})],ie.prototype,"noCustom",void 0);Ee([(0,Ue.property)({type:Boolean})],ie.prototype,"openExternalDocumentInNewTab",void 0);Ee([(0,Ue.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ie.prototype,"noCustomComponent",void 0);Ee([(0,Ue.property)({type:Boolean})],ie.prototype,"withManualResources",void 0);Ee([(0,Ue.property)({type:Boolean})],ie.prototype,"navigatorOnline",void 0);Ee([(0,Ue.property)({type:Boolean})],ie.prototype,"forcedOffline",void 0);Ee([(0,Ue.property)({type:Boolean})],ie.prototype,"authenticationRequired",void 0);Ee([(0,Er.jsonProperty)([])],ie.prototype,"messageContexts",void 0);Ee([(0,Er.jsonProperty)(void 0)],ie.prototype,"session",void 0);var vu=c(h());var bu={"ft-app-context":ie};(0,vu.customElements)(bu);var xu=c(j());var ms=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-]+$/)}},Zr=new ms;var rh=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},Ni=Symbol("i18nAttributes"),Su=Symbol("i18nListAttributes"),Eu=Symbol("i18nProperties"),qn=Symbol("i18nContexts"),Ii=Symbol("i18nUnsubs"),Yn=(0,Qr.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?cs:Pi}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(Zr.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[Ni])===null||s===void 0||s.forEach((d,p)=>l[p]=u(d,p,l[p])),(a=this[Su])===null||a===void 0||a.forEach((d,p)=>{var f;return l[p]=(f=l[p])===null||f===void 0?void 0:f.map(y=>u(d,p,y))})}updateI18nProperties(n){var s;(s=this[Eu])===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[qn].set(l,{isCustomContext:a}),this[Ii].has(l)||this[Ii].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,s)}hasI18nContext(n){return this[qn].has(n.toLowerCase())}connectedCallback(){super.connectedCallback(),this[qn].forEach((n,s)=>this.addI18nContext(s,void 0,n.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Ii].forEach(n=>n()),this[Ii].clear()}}return e=qn,r=Ii,rh([(0,xu.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),Kn=class extends Yn(Qr.FtLitElement){},Gn=class extends Yn(Qr.FtLitElementRedux){};var Au=c(h());var gs=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?Zr.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},ih=new gs;var Cu=(t,e)=>(r,i)=>{var o;r.constructor.createProperty(i,{type:Object,hasChanged:Au.hasChanged,converter:Zr,...e}),r[Ni]=(o=r[Ni])!==null&&o!==void 0?o:new Map,r[Ni].set(i,t??{})};var wu=c(E());var _u=wu.css`
|
|
612
|
+
`;var Xn=c(E()),Zn=c(j()),Qn=c(h());var Bi=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},mt=class extends Gn{constructor(){super(),this.editorMode=!1,this.addStore(O)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Xn.nothing:Xn.html`
|
|
613
613
|
<span class="ft-i18n">
|
|
614
614
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
615
615
|
</span>
|
|
616
|
-
`}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:""})}};mt.elementDefinitions={};mt.styles=
|
|
616
|
+
`}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:""})}};mt.elementDefinitions={};mt.styles=_u;Bi([(0,Qn.redux)()],mt.prototype,"editorMode",void 0);Bi([(0,Zn.property)()],mt.prototype,"context",void 0);Bi([(0,Zn.property)()],mt.prototype,"key",void 0);Bi([(0,Qn.jsonProperty)([])],mt.prototype,"args",void 0);Bi([(0,Zn.property)()],mt.prototype,"defaultMessage",void 0);var Ru=c(h());var Ou={"ft-i18n":mt};(0,Ru.customElements)(Ou);var gt=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 Kn{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 at.Debouncer,this.revealDebouncer=new at.Debouncer,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)?this.matchesIgnored(e)&&this.hide():this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,r;return Tu.html`
|
|
617
617
|
<div part="container"
|
|
618
618
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
|
|
619
619
|
<slot part="slot"></slot>
|
|
@@ -622,66 +622,66 @@
|
|
|
622
622
|
popover="manual">
|
|
623
623
|
<div part="tooltip-content" class="ft-tooltip--content">
|
|
624
624
|
<slot name="text"></slot>
|
|
625
|
-
<ft-typography variant="${
|
|
625
|
+
<ft-typography variant="${pe.caption}" ?hidden=${!(!((e=this.text)===null||e===void 0)&&e.message)}>
|
|
626
626
|
${(r=this.text)===null||r===void 0?void 0:r.message}
|
|
627
627
|
</ft-typography>
|
|
628
628
|
</div>
|
|
629
629
|
</div>
|
|
630
630
|
</div>
|
|
631
|
-
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,i;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&fl(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 ${at.designSystemVariables.transitionDuration}, left ${at.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,at.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};se.elementDefinitions={"ft-typography":W};se.styles=Fa;gt([du()],se.prototype,"text",void 0);gt([(0,lt.property)({type:Boolean})],se.prototype,"manual",void 0);gt([(0,lt.property)({type:Boolean})],se.prototype,"inline",void 0);gt([(0,at.numberProperty)()],se.prototype,"delay",void 0);gt([(0,lt.property)()],se.prototype,"position",void 0);gt([(0,at.jsonProperty)([])],se.prototype,"ignoreMatchingElements",void 0);gt([(0,lt.queryAssignedNodes)()],se.prototype,"slotNodes",void 0);gt([(0,lt.query)(".ft-tooltip--container")],se.prototype,"container",void 0);gt([(0,lt.query)(".ft-tooltip")],se.prototype,"tooltip",void 0);gt([(0,lt.query)(".ft-tooltip--content")],se.prototype,"tooltipContent",void 0);gt([(0,lt.state)()],se.prototype,"visible",void 0);var bu=u(v());var yu={"ft-tooltip":se};(0,bu.customElements)(yu);var vt;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(vt||(vt={}));var ji=u(A()),tr=u(j()),Au=u(v()),Ou=u(Su());var Ge;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK="",t.BOOKMARK_SLASH="",t.CIRCLE_PAUSE="",t.CIRCLE_PLAY="",t.CIRCLE_STOP_PLAIN="",t.CIRCLE_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID="",t.FILE_CODE="",t.BOX_CODE="",t.TOPICS_SOLID="",t.PHOTO_FILM="",t.HYPHEN_SOLID="",t.CROSSHAIRS="",t.PERSON_CHALKBOARD="",t.CIRCLE_ARROW_DOWN_SLASH="",t.BOOK_OPEN_COVER="",t.LIGHTBULB="",t.MESSAGE_BOT_AGENTIC_SOLID="",t.CHART_LINE_USER="",t.SERVER_CIRCLE_ARROW_DOWN="",t.EYE="",t.SHARE="󨃱"})(Ge||(Ge={}));var y;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(y||(y={}));var ps=new Map([...["abw"].map(t=>[t,y.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,y.AUDIO]),...["avi"].map(t=>[t,y.AVI]),...["chm","xhs"].map(t=>[t,y.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,y.CODE]),...["csv"].map(t=>[t,y.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,y.DITA]),...["epub"].map(t=>[t,y.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,y.EXCEL]),...["flac"].map(t=>[t,y.FLAC]),...["gif"].map(t=>[t,y.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,y.GZIP]),...["html","htm","xhtml"].map(t=>[t,y.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,y.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,y.JPEG]),...["json"].map(t=>[t,y.JSON]),...["m4a","m4p"].map(t=>[t,y.M4A]),...["mov","qt"].map(t=>[t,y.MOV]),...["mp3"].map(t=>[t,y.MP3]),...["mp4","m4v"].map(t=>[t,y.MP4]),...["ogg","oga"].map(t=>[t,y.OGG]),...["pdf","ps"].map(t=>[t,y.PDF]),...["png"].map(t=>[t,y.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,y.POWERPOINT]),...["rar"].map(t=>[t,y.RAR]),...["stp"].map(t=>[t,y.STP]),...["txt","rtf","md","mdown"].map(t=>[t,y.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,y.VIDEO]),...["wav"].map(t=>[t,y.WAV]),...["wma"].map(t=>[t,y.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,y.WORD]),...["xml","xsl","rdf"].map(t=>[t,y.XML]),...["yaml","yml","x-yaml"].map(t=>[t,y.YAML]),...["zip"].map(t=>[t,y.ZIP])]),$f=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 Eu(t,e){var r,i,n,o;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,a]=(((r=$f.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(o=(n=(i=ps.get(a))!==null&&i!==void 0?i:ps.get(e))!==null&&n!==void 0?n:ps.get(s))!==null&&o!==void 0?o:y.UNKNOWN}var Ex={[y.ABW]:"#91ABC6",[y.AUDIO]:"#1795E3",[y.AVI]:"#E63324",[y.CHM]:"#71C3EB",[y.CODE]:"#71C3EB",[y.CSV]:"#1F7345",[y.DITA]:"#71C3EB",[y.EPUB]:"#85B926",[y.EXCEL]:"#1F7345",[y.FLAC]:"#1795E3",[y.GIF]:"#59B031",[y.GZIP]:"#F8AB36",[y.HTML]:"#71C3EB",[y.IMAGE]:"#59B031",[y.JPEG]:"#59B031",[y.JSON]:"#71C3EB",[y.M4A]:"#1795E3",[y.MOV]:"#E63324",[y.MP3]:"#1795E3",[y.MP4]:"#E63324",[y.OGG]:"#1795E3",[y.PDF]:"#E44948",[y.PNG]:"#59B031",[y.POWERPOINT]:"#B54A2B",[y.RAR]:"#F8AB36",[y.STP]:"#3764B1",[y.TEXT]:"#3162AB",[y.UNKNOWN]:"#999999",[y.VIDEO]:"#E63324",[y.WAV]:"#1795E3",[y.WMA]:"#1795E3",[y.WORD]:"#3162AB",[y.XML]:"#71C3EB",[y.YAML]:"#71C3EB",[y.ZIP]:"#F8AB36"};var Vi=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o},ie=class extends Au.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=ji.nothing}render(){let e=this.variant&&Object.values(vt).includes(this.variant)?this.variant:vt.fluid_topics,r=e!==vt.material||!!this.value;return ji.html`
|
|
631
|
+
`}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&&vl(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 ${at.designSystemVariables.transitionDuration}, left ${at.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,at.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};ce.elementDefinitions={"ft-typography":q};ce.styles=Wa;gt([Cu()],ce.prototype,"text",void 0);gt([(0,lt.property)({type:Boolean})],ce.prototype,"manual",void 0);gt([(0,lt.property)({type:Boolean})],ce.prototype,"inline",void 0);gt([(0,at.numberProperty)()],ce.prototype,"delay",void 0);gt([(0,lt.property)()],ce.prototype,"position",void 0);gt([(0,at.jsonProperty)([])],ce.prototype,"ignoreMatchingElements",void 0);gt([(0,lt.queryAssignedNodes)()],ce.prototype,"slotNodes",void 0);gt([(0,lt.query)(".ft-tooltip--container")],ce.prototype,"container",void 0);gt([(0,lt.query)(".ft-tooltip")],ce.prototype,"tooltip",void 0);gt([(0,lt.query)(".ft-tooltip--content")],ce.prototype,"tooltipContent",void 0);gt([(0,lt.state)()],ce.prototype,"visible",void 0);var Lu=c(h());var ku={"ft-tooltip":ce};(0,Lu.customElements)(ku);var yt;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(yt||(yt={}));var Fi=c(E()),Zt=c(j()),Mu=c(h()),Iu=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 m;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(m||(m={}));var ys=new Map([...["abw"].map(t=>[t,m.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,m.AUDIO]),...["avi"].map(t=>[t,m.AVI]),...["chm","xhs"].map(t=>[t,m.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,m.CODE]),...["csv"].map(t=>[t,m.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,m.DITA]),...["epub"].map(t=>[t,m.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,m.EXCEL]),...["flac"].map(t=>[t,m.FLAC]),...["gif"].map(t=>[t,m.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,m.GZIP]),...["html","htm","xhtml"].map(t=>[t,m.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,m.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,m.JPEG]),...["json"].map(t=>[t,m.JSON]),...["m4a","m4p"].map(t=>[t,m.M4A]),...["mov","qt"].map(t=>[t,m.MOV]),...["mp3"].map(t=>[t,m.MP3]),...["mp4","m4v"].map(t=>[t,m.MP4]),...["ogg","oga"].map(t=>[t,m.OGG]),...["pdf","ps"].map(t=>[t,m.PDF]),...["png"].map(t=>[t,m.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,m.POWERPOINT]),...["rar"].map(t=>[t,m.RAR]),...["stp"].map(t=>[t,m.STP]),...["txt","rtf","md","mdown"].map(t=>[t,m.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,m.VIDEO]),...["wav"].map(t=>[t,m.WAV]),...["wma"].map(t=>[t,m.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,m.WORD]),...["xml","xsl","rdf"].map(t=>[t,m.XML]),...["yaml","yml","x-yaml"].map(t=>[t,m.YAML]),...["zip"].map(t=>[t,m.ZIP])]),nh=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 Du(t,e){var r,i,o,n;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,a]=(((r=nh.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(n=(o=(i=ys.get(a))!==null&&i!==void 0?i:ys.get(e))!==null&&o!==void 0?o:ys.get(s))!==null&&n!==void 0?n:m.UNKNOWN}var Ox={[m.ABW]:"#91ABC6",[m.AUDIO]:"#1795E3",[m.AVI]:"#E63324",[m.CHM]:"#71C3EB",[m.CODE]:"#71C3EB",[m.CSV]:"#1F7345",[m.DITA]:"#71C3EB",[m.EPUB]:"#85B926",[m.EXCEL]:"#1F7345",[m.FLAC]:"#1795E3",[m.GIF]:"#59B031",[m.GZIP]:"#F8AB36",[m.HTML]:"#71C3EB",[m.IMAGE]:"#59B031",[m.JPEG]:"#59B031",[m.JSON]:"#71C3EB",[m.M4A]:"#1795E3",[m.MOV]:"#E63324",[m.MP3]:"#1795E3",[m.MP4]:"#E63324",[m.OGG]:"#1795E3",[m.PDF]:"#E44948",[m.PNG]:"#59B031",[m.POWERPOINT]:"#B54A2B",[m.RAR]:"#F8AB36",[m.STP]:"#3764B1",[m.TEXT]:"#3162AB",[m.UNKNOWN]:"#999999",[m.VIDEO]:"#E63324",[m.WAV]:"#1795E3",[m.WMA]:"#1795E3",[m.WORD]:"#3162AB",[m.XML]:"#71C3EB",[m.YAML]:"#71C3EB",[m.ZIP]:"#F8AB36"};var 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},ne=class extends Mu.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Fi.nothing}render(){let e=this.variant&&Object.values(yt).includes(this.variant)?this.variant:yt.fluid_topics,r=e!==yt.material||!!this.value;return Fi.html`
|
|
632
632
|
<i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
|
|
633
|
-
${(0,
|
|
633
|
+
${(0,Iu.unsafeHTML)(this.resolvedIcon)}
|
|
634
634
|
<slot ?hidden=${r}></slot>
|
|
635
635
|
</i>
|
|
636
|
-
`}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
|
|
636
|
+
`}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 yt.file_format:this.resolvedIcon=(e=m[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case yt.material:this.resolvedIcon=this.value||Fi.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=$a;Ui([(0,Zt.property)()],ne.prototype,"variant",void 0);Ui([(0,Zt.property)()],ne.prototype,"value",void 0);Ui([(0,Zt.property)({reflect:!0,attribute:"aria-hidden"})],ne.prototype,"ariaHidden",void 0);Ui([(0,Zt.state)()],ne.prototype,"resolvedIcon",void 0);Ui([(0,Zt.query)("slot")],ne.prototype,"slottedContent",void 0);var Bu=c(h());var Nu={"ft-icon":ne};(0,Bu.customElements)(Nu);var Fu=c(E()),Uu=c(h());var Ar=class extends Uu.FtLitElement{render(){return Fu.html`
|
|
637
637
|
<div class="ft-loader">
|
|
638
638
|
<div></div>
|
|
639
639
|
<div></div>
|
|
640
640
|
<div></div>
|
|
641
641
|
<div></div>
|
|
642
642
|
</div>
|
|
643
|
-
`}};
|
|
643
|
+
`}};Ar.styles=ka;var Vu=c(h());var zu={"ft-loader":Ar};(0,Vu.customElements)(zu);var Jt=c(E()),Jn=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,Rt.toFtFormComponent)(Rt.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":Rt.isSafari,"ft-button--label-no-text":!this.hasTextContent},n=Jt.html`
|
|
644
644
|
<ft-ripple part="ripple"
|
|
645
645
|
?disabled=${this.isDisabled()}
|
|
646
646
|
?activated=${this.activated}
|
|
647
647
|
></ft-ripple>
|
|
648
648
|
<ft-typography part="label"
|
|
649
|
-
variant="${
|
|
649
|
+
variant="${pe.button}"
|
|
650
650
|
element="span"
|
|
651
|
-
class="${(0,
|
|
651
|
+
class="${(0,Jn.classMap)(o)}">
|
|
652
652
|
<slot></slot>
|
|
653
653
|
</ft-typography>
|
|
654
654
|
${this.resolveIcon()}
|
|
655
|
-
`,s=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(s?
|
|
655
|
+
`,s=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(s?Jt.html`
|
|
656
656
|
<a href="${s}"
|
|
657
657
|
target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
|
|
658
658
|
part="button"
|
|
659
|
-
class="${(0,
|
|
660
|
-
aria-label="${
|
|
659
|
+
class="${(0,Jn.classMap)(this.buttonClasses)}"
|
|
660
|
+
aria-label="${Qt((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
|
|
661
661
|
?disabled=${this.isDisabled()}>
|
|
662
|
-
${
|
|
662
|
+
${n}
|
|
663
663
|
</a>
|
|
664
|
-
`:
|
|
664
|
+
`:Jt.html`
|
|
665
665
|
<button part="button"
|
|
666
|
-
class="${(0,
|
|
667
|
-
aria-label="${
|
|
668
|
-
aria-haspopup="${
|
|
669
|
-
aria-pressed="${
|
|
666
|
+
class="${(0,Jn.classMap)(this.buttonClasses)}"
|
|
667
|
+
aria-label="${Qt((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
|
|
668
|
+
aria-haspopup="${Qt(this.ariaHasPopup)}"
|
|
669
|
+
aria-pressed="${Qt(this.ariaPressed)}"
|
|
670
670
|
?disabled=${this.isDisabled()}>
|
|
671
|
-
${
|
|
671
|
+
${n}
|
|
672
672
|
</button>
|
|
673
|
-
`)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?
|
|
673
|
+
`)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?Jt.html`
|
|
674
674
|
<ft-tooltip part="tooltip"
|
|
675
675
|
text="${this.label}"
|
|
676
676
|
position="${this.tooltipPosition}">
|
|
677
677
|
${e}
|
|
678
678
|
</ft-tooltip>
|
|
679
|
-
`:e}resolveIcon(){return this.loading?
|
|
680
|
-
<ft-loader part="loader icon"></ft-loader> `:this.icon?
|
|
679
|
+
`:e}resolveIcon(){return this.loading?Jt.html`
|
|
680
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?Jt.html`
|
|
681
681
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
682
|
-
`:
|
|
682
|
+
`:Jt.html`
|
|
683
683
|
<slot part="icon" name="icon"></slot>
|
|
684
|
-
`}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)}};
|
|
684
|
+
`}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":Ar,"ft-typography":q};w.styles=[Rt.safariEllipsisFix,Ia,Rt.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 ju=c(h());var Hu={"ft-button":w};(0,ju.customElements)(Hu);var eo=c(E()),bt=c(j()),Ku=c(h()),Gu=c(nt());var Ae=c(h()),Wu=c(E());var Xe={textColor:Ae.FtCssVariableFactory.extend("--ft-checkbox-text-color","",Ae.designSystemVariables.colorOnSurfaceHigh),fontSize:Ae.FtCssVariableFactory.extend("--ft-checkbox-font-size","",b.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=Wu.css`
|
|
685
685
|
* {
|
|
686
686
|
box-sizing: border-box;
|
|
687
687
|
}
|
|
@@ -762,7 +762,7 @@
|
|
|
762
762
|
|
|
763
763
|
.ft-checkbox.ft-checkbox--error {
|
|
764
764
|
color: ${Xe.errorColor};
|
|
765
|
-
${(0,
|
|
765
|
+
${(0,Ae.setVariable)(K.color,Xe.errorColor)};
|
|
766
766
|
|
|
767
767
|
.ft-checkbox--box {
|
|
768
768
|
border-color: ${Xe.errorColor};
|
|
@@ -774,7 +774,7 @@
|
|
|
774
774
|
}
|
|
775
775
|
}
|
|
776
776
|
}
|
|
777
|
-
`;var
|
|
777
|
+
`;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},bs=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Ce=class extends Ku.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 eo.html`
|
|
778
778
|
<div class="ft-checkbox--box-container" part="checkbox-box-container">
|
|
779
779
|
<ft-ripple part="checkbox-ripple"
|
|
780
780
|
?disabled=${this.disabled}
|
|
@@ -796,27 +796,27 @@
|
|
|
796
796
|
@change=${this.onChange}
|
|
797
797
|
>
|
|
798
798
|
</div>
|
|
799
|
-
`}render(){return
|
|
800
|
-
<label class="${(0,
|
|
799
|
+
`}render(){return eo.html`
|
|
800
|
+
<label class="${(0,Gu.classMap)(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
|
|
801
801
|
${this.renderBoxContainer()}
|
|
802
|
-
<ft-typography variant="${
|
|
802
|
+
<ft-typography variant="${pe.body2}" part="checkbox-body">
|
|
803
803
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
804
804
|
</ft-typography>
|
|
805
805
|
</label>
|
|
806
|
-
`}renderBoxIcon(){return
|
|
806
|
+
`}renderBoxIcon(){return eo.html`
|
|
807
807
|
<svg class="ft-checkbox--checkmark" viewBox="0 0 24 24" part="checkbox-check" aria-hidden="true">
|
|
808
808
|
<path class="ft-checkbox--checkmark-path" fill="none"
|
|
809
809
|
d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
|
|
810
810
|
</svg>
|
|
811
|
-
`}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
|
|
811
|
+
`}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 bs(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":q};Ce.styles=qu;Vt([(0,bt.property)()],Ce.prototype,"name",void 0);Vt([(0,bt.property)()],Ce.prototype,"value",void 0);Vt([(0,bt.property)({type:Boolean,reflect:!0})],Ce.prototype,"checked",void 0);Vt([(0,bt.property)({type:Boolean})],Ce.prototype,"indeterminate",void 0);Vt([(0,bt.property)({type:Boolean})],Ce.prototype,"disabled",void 0);Vt([(0,bt.property)({type:Boolean})],Ce.prototype,"error",void 0);Vt([(0,bt.query)(".ft-checkbox")],Ce.prototype,"container",void 0);Vt([(0,bt.query)("ft-ripple")],Ce.prototype,"ripple",void 0);Vt([(0,bt.query)("input")],Ce.prototype,"input",void 0);var Xu=c(h());var Yu={"ft-checkbox":Ce};(0,Xu.customElements)(Yu);var Ju=c(E()),Tt=c(j()),ed=c(h()),td=c(nt());var Zu=c(E()),ze=c(h());var er={textColor:ze.FtCssVariableFactory.extend("--ft-radio-text-color","",ze.designSystemVariables.colorOnSurfaceHigh),fontSize:ze.FtCssVariableFactory.extend("--ft-radio-font-size","",b.fontSize),colorPrimary:ze.FtCssVariableFactory.external(ze.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:ze.FtCssVariableFactory.external(ze.designSystemVariables.colorOnPrimary,"Design system"),borderColor:ze.FtCssVariableFactory.extend("--ft-radio-border-color","",ze.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:ze.FtCssVariableFactory.external(ze.designSystemVariables.colorOnSurfaceDisabled,"Design system")},Qu=Zu.css`
|
|
812
812
|
* {
|
|
813
813
|
box-sizing: border-box;
|
|
814
814
|
}
|
|
815
815
|
|
|
816
816
|
.ft-radio {
|
|
817
817
|
box-sizing: border-box;
|
|
818
|
-
color: ${
|
|
819
|
-
font-size: ${
|
|
818
|
+
color: ${er.textColor};
|
|
819
|
+
font-size: ${er.fontSize};
|
|
820
820
|
|
|
821
821
|
display: inline-flex;
|
|
822
822
|
align-items: center;
|
|
@@ -824,7 +824,7 @@
|
|
|
824
824
|
}
|
|
825
825
|
|
|
826
826
|
.ft-radio--disabled {
|
|
827
|
-
color: ${
|
|
827
|
+
color: ${er.colorOnSurfaceDisabled};
|
|
828
828
|
}
|
|
829
829
|
|
|
830
830
|
input {
|
|
@@ -847,7 +847,7 @@
|
|
|
847
847
|
}
|
|
848
848
|
|
|
849
849
|
.ft-radio--box {
|
|
850
|
-
border: 2px solid ${
|
|
850
|
+
border: 2px solid ${er.borderColor};
|
|
851
851
|
border-radius: 50%;
|
|
852
852
|
|
|
853
853
|
display: flex;
|
|
@@ -860,7 +860,7 @@
|
|
|
860
860
|
|
|
861
861
|
.ft-radio--box:after {
|
|
862
862
|
content: " ";
|
|
863
|
-
background-color: ${
|
|
863
|
+
background-color: ${er.colorPrimary};
|
|
864
864
|
|
|
865
865
|
border-radius: 50%;
|
|
866
866
|
|
|
@@ -872,7 +872,7 @@
|
|
|
872
872
|
}
|
|
873
873
|
|
|
874
874
|
.ft-radio--checked .ft-radio--box {
|
|
875
|
-
border-color: ${
|
|
875
|
+
border-color: ${er.colorPrimary};
|
|
876
876
|
}
|
|
877
877
|
|
|
878
878
|
|
|
@@ -881,24 +881,24 @@
|
|
|
881
881
|
}
|
|
882
882
|
|
|
883
883
|
.ft-radio--disabled .ft-radio--box {
|
|
884
|
-
border-color: ${
|
|
884
|
+
border-color: ${er.colorOnSurfaceDisabled};
|
|
885
885
|
background-color: transparent;
|
|
886
886
|
}
|
|
887
887
|
|
|
888
888
|
.ft-radio--disabled .ft-radio--box:after {
|
|
889
|
-
background-color: ${
|
|
889
|
+
background-color: ${er.colorOnSurfaceDisabled};
|
|
890
890
|
}
|
|
891
891
|
|
|
892
892
|
.ft-radio:has(:focus-visible) {
|
|
893
|
-
outline: 2px solid ${
|
|
893
|
+
outline: 2px solid ${ze.designSystemVariables.colorPrimary};
|
|
894
894
|
outline-offset: -2px;
|
|
895
895
|
}
|
|
896
896
|
|
|
897
897
|
.ft-radio ft-typography {
|
|
898
898
|
padding-right: 2px;
|
|
899
899
|
}
|
|
900
|
-
`;var
|
|
901
|
-
<div class="${(0,
|
|
900
|
+
`;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},to=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},ve=class extends ed.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 Ju.html`
|
|
901
|
+
<div class="${(0,td.classMap)(this.radioClasses)}"
|
|
902
902
|
@click=${this.onClick}>
|
|
903
903
|
<div class="ft-radio--box-container">
|
|
904
904
|
<ft-ripple
|
|
@@ -918,12 +918,12 @@
|
|
|
918
918
|
>
|
|
919
919
|
</div>
|
|
920
920
|
<label for="radio-button" inert>
|
|
921
|
-
<ft-typography variant="${
|
|
921
|
+
<ft-typography variant="${pe.body2}">
|
|
922
922
|
<slot></slot>
|
|
923
923
|
</ft-typography>
|
|
924
924
|
</label>
|
|
925
925
|
</div>
|
|
926
|
-
`}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
|
|
926
|
+
`}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 to(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 to(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())}};ve.elementDefinitions={"ft-ripple":M,"ft-typography":q};ve.styles=Qu;tr([(0,Tt.property)()],ve.prototype,"name",void 0);tr([(0,Tt.property)()],ve.prototype,"value",void 0);tr([(0,Tt.property)({type:Boolean,reflect:!0})],ve.prototype,"checked",void 0);tr([(0,Tt.property)({attribute:"aria-checked",reflect:!0})],ve.prototype,"ariaChecked",void 0);tr([(0,Tt.property)({type:Boolean})],ve.prototype,"disabled",void 0);tr([(0,Tt.query)(".ft-radio")],ve.prototype,"container",void 0);tr([(0,Tt.query)("ft-ripple")],ve.prototype,"ripple",void 0);tr([(0,Tt.query)("input")],ve.prototype,"input",void 0);var nd=c(h()),rr=c(j()),od=c(E());var rd=c(E());var id=rd.css`
|
|
927
927
|
:host {
|
|
928
928
|
display: block;
|
|
929
929
|
}
|
|
@@ -931,14 +931,14 @@
|
|
|
931
931
|
:host(:focus-visible) {
|
|
932
932
|
outline: none;
|
|
933
933
|
}
|
|
934
|
-
`;var
|
|
934
|
+
`;var zi=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 nd.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 od.html`
|
|
935
935
|
<slot @slotchange=${this.onSlotChange}
|
|
936
936
|
@change=${this.onChange}
|
|
937
937
|
@keydown=${this.onKeyDown}
|
|
938
938
|
></slot>
|
|
939
|
-
`}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()}};
|
|
939
|
+
`}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=id;zi([(0,rr.property)()],Ze.prototype,"name",void 0);zi([(0,rr.property)({reflect:!0,attribute:"role"})],Ze.prototype,"role",void 0);zi([(0,rr.property)({reflect:!0,attribute:"aria-labelledby"})],Ze.prototype,"ariaLabelledBy",void 0);zi([(0,rr.queryAssignedElements)()],Ze.prototype,"assignedElements",void 0);zi([(0,rr.state)()],Ze.prototype,"currentSelectedIndex",void 0);var ad=c(h());var sd={"ft-radio":ve,"ft-radio-group":Ze};(0,ad.customElements)(sd);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},vs={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},oe=class extends(0,Ve.withAnalytics)(Yn((0,Ve.withAriaNotification)(Ve.FtLitElement)),vs){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 Ve.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`
|
|
940
940
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
941
|
-
${this.parent==null?null:
|
|
941
|
+
${this.parent==null?null:Qe.html`
|
|
942
942
|
<div tabindex="0"
|
|
943
943
|
part="controls go-back"
|
|
944
944
|
class="ft-filter-level--go-back"
|
|
@@ -949,18 +949,18 @@
|
|
|
949
949
|
@click=${this.goBackOnClick}>
|
|
950
950
|
<ft-ripple></ft-ripple>
|
|
951
951
|
<ft-icon>thin_arrow_left</ft-icon>
|
|
952
|
-
<ft-typography variant="${
|
|
952
|
+
<ft-typography variant="${pe.body2}">${this.parent.label}</ft-typography>
|
|
953
953
|
</div>
|
|
954
954
|
`}
|
|
955
|
-
${this.filteredOptions.length===0&&this.noValuesLabel?
|
|
956
|
-
<ft-typography class="ft-filter-level--no-values" element="span" variant="${
|
|
955
|
+
${this.filteredOptions.length===0&&this.noValuesLabel?Qe.html`
|
|
956
|
+
<ft-typography class="ft-filter-level--no-values" element="span" variant="${pe.body2}">
|
|
957
957
|
${this.noValuesLabel}
|
|
958
958
|
</ft-typography>
|
|
959
|
-
`:
|
|
960
|
-
${(0,
|
|
959
|
+
`:Qe.nothing}
|
|
960
|
+
${(0,ld.repeat)(e,r=>r.value,r=>{var i;return Qe.html`
|
|
961
961
|
<div class="ft-filter-level--option" part="options" tabindex="-1">
|
|
962
962
|
${this.multivalued?this.buildMultiValuedOption(r):this.buildMonoValuedOption(r)}
|
|
963
|
-
${this.preventNavigation||r.selected||((i=r.subOptions)!==null&&i!==void 0?i:[]).length===0?
|
|
963
|
+
${this.preventNavigation||r.selected||((i=r.subOptions)!==null&&i!==void 0?i:[]).length===0?Qe.nothing:Qe.html`
|
|
964
964
|
<ft-button icon="thin_arrow_right"
|
|
965
965
|
part="controls navigate-hierarchy"
|
|
966
966
|
aria-label="Expand node"
|
|
@@ -971,7 +971,7 @@
|
|
|
971
971
|
`}
|
|
972
972
|
</div>
|
|
973
973
|
`})}
|
|
974
|
-
${e.length<this.filteredOptions.length?
|
|
974
|
+
${e.length<this.filteredOptions.length?Qe.html`
|
|
975
975
|
<ft-button
|
|
976
976
|
class="ft-filter-level--display-more"
|
|
977
977
|
icon="thin_arrow"
|
|
@@ -980,20 +980,20 @@
|
|
|
980
980
|
@click=${()=>{this.emitAnalyticsAction("more-filters-button-pressed",{}),this.displayMore()}}>
|
|
981
981
|
${this.moreValuesButtonLabel}
|
|
982
982
|
</ft-button>
|
|
983
|
-
`:
|
|
983
|
+
`:Qe.nothing}
|
|
984
984
|
</div>
|
|
985
|
-
`}goBackOnKeyPress(e){(e.key==="Enter"||e.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){var e;let r=(e=this.limit)!==null&&e!==void 0?e:0,i=this.parent!=null;this.displayedPages++,this.elementToFocus={selector:`.ft-filter-level--option:nth-child(${r+(i?2:1)}) [part~="option"]`}}buildMultiValuedOption(e){var r;return
|
|
985
|
+
`}goBackOnKeyPress(e){(e.key==="Enter"||e.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){var e;let r=(e=this.limit)!==null&&e!==void 0?e:0,i=this.parent!=null;this.displayedPages++,this.elementToFocus={selector:`.ft-filter-level--option:nth-child(${r+(i?2:1)}) [part~="option"]`}}buildMultiValuedOption(e){var r;return Qe.html`
|
|
986
986
|
<ft-checkbox name="${this.filterId}"
|
|
987
987
|
part="multivalued-option option"
|
|
988
988
|
.exportpartsPrefixes=${["multivalued-option","option"]}
|
|
989
989
|
data-value="${e.value}"
|
|
990
990
|
.checked=${e.selected}
|
|
991
991
|
.disabled=${this.disabled}
|
|
992
|
-
.indeterminate=${(0,
|
|
992
|
+
.indeterminate=${(0,Ve.flatDeep)((r=e.subOptions)!==null&&r!==void 0?r:[],i=>{var o;return(o=i.subOptions)!==null&&o!==void 0?o:[]}).some(i=>i.selected)}
|
|
993
993
|
@change=${i=>this.optionsChanged(i,e)}>
|
|
994
994
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
995
995
|
</ft-checkbox>
|
|
996
|
-
`}buildMonoValuedOption(e){return
|
|
996
|
+
`}buildMonoValuedOption(e){return Qe.html`
|
|
997
997
|
<ft-radio name="${this.filterId+Math.round(Math.random()*1e6)}"
|
|
998
998
|
part="monovalued-option option"
|
|
999
999
|
data-value="${e.value}"
|
|
@@ -1004,7 +1004,7 @@
|
|
|
1004
1004
|
@change=${r=>this.optionsChanged(r,e)}>
|
|
1005
1005
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1006
1006
|
</ft-radio>
|
|
1007
|
-
`}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)})}};
|
|
1007
|
+
`}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":q,"ft-checkbox":Ce,"ft-icon":ne,"ft-radio":ve};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:Ve.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,Ve.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 dd=c(E()),Je=c(j()),Cr=c(h());var pd=c(nt());var cd=c(E()),vt=c(h());var De={buttonsColor:vt.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",vt.designSystemVariables.colorPrimary),buttonsZIndex:vt.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:vt.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:vt.FtCssVariableFactory.external(vt.designSystemVariables.colorSurface,"Design system")},ud=cd.css`
|
|
1008
1008
|
.ft-snap-scroll {
|
|
1009
1009
|
box-sizing: border-box;
|
|
1010
1010
|
position: relative;
|
|
@@ -1039,7 +1039,7 @@
|
|
|
1039
1039
|
flex-wrap: nowrap;
|
|
1040
1040
|
align-items: flex-start;
|
|
1041
1041
|
justify-content: flex-start;
|
|
1042
|
-
gap: ${
|
|
1042
|
+
gap: ${De.gap};
|
|
1043
1043
|
}
|
|
1044
1044
|
|
|
1045
1045
|
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
|
|
@@ -1082,11 +1082,11 @@
|
|
|
1082
1082
|
.ft-snap-scroll--next {
|
|
1083
1083
|
position: absolute;
|
|
1084
1084
|
display: flex;
|
|
1085
|
-
z-index: ${
|
|
1085
|
+
z-index: ${De.buttonsZIndex};
|
|
1086
1086
|
opacity: 1;
|
|
1087
1087
|
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
1088
|
-
${(0,
|
|
1089
|
-
${(0,
|
|
1088
|
+
${(0,vt.setVariable)(B.backgroundColor,"transparent")};
|
|
1089
|
+
${(0,vt.setVariable)(B.color,De.buttonsColor)};
|
|
1090
1090
|
}
|
|
1091
1091
|
|
|
1092
1092
|
.ft-snap-scroll--previous[hidden],
|
|
@@ -1099,37 +1099,37 @@
|
|
|
1099
1099
|
top: 0;
|
|
1100
1100
|
left: -1px;
|
|
1101
1101
|
bottom: 0;
|
|
1102
|
-
background: linear-gradient(to right, ${
|
|
1102
|
+
background: linear-gradient(to right, ${De.colorSurface} 50%, var(--snap-scroll-transparent-color));
|
|
1103
1103
|
}
|
|
1104
1104
|
|
|
1105
1105
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous {
|
|
1106
1106
|
top: -1px;
|
|
1107
1107
|
left: 0;
|
|
1108
1108
|
right: 0;
|
|
1109
|
-
background: linear-gradient(to bottom, ${
|
|
1109
|
+
background: linear-gradient(to bottom, ${De.colorSurface} 50%, var(--snap-scroll-transparent-color));
|
|
1110
1110
|
}
|
|
1111
1111
|
|
|
1112
1112
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next {
|
|
1113
1113
|
top: 0;
|
|
1114
1114
|
right: -1px;
|
|
1115
1115
|
bottom: 0;
|
|
1116
|
-
background: linear-gradient(to left, ${
|
|
1116
|
+
background: linear-gradient(to left, ${De.colorSurface} 50%, var(--snap-scroll-transparent-color));
|
|
1117
1117
|
}
|
|
1118
1118
|
|
|
1119
1119
|
.ft-snap-scroll--vertical .ft-snap-scroll--next {
|
|
1120
1120
|
left: 0;
|
|
1121
1121
|
right: 0;
|
|
1122
1122
|
bottom: -1px;
|
|
1123
|
-
background: linear-gradient(to top, ${
|
|
1123
|
+
background: linear-gradient(to top, ${De.colorSurface} 50%, var(--snap-scroll-transparent-color));
|
|
1124
1124
|
}
|
|
1125
1125
|
|
|
1126
1126
|
.ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
|
|
1127
1127
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
|
|
1128
1128
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
|
|
1129
1129
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1130
|
-
background-color: ${
|
|
1130
|
+
background-color: ${De.colorSurface};
|
|
1131
1131
|
}
|
|
1132
|
-
`;var
|
|
1132
|
+
`;var kt=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=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},me=class extends Cr.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 Cr.Debouncer(200),this.updateScrollDebouncer=new Cr.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,pd.classMap)({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":Cr.isSafari}),r=this.controls&&this.withScroll;return dd.html`
|
|
1133
1133
|
<div part="container" class="${e}">
|
|
1134
1134
|
<ft-button
|
|
1135
1135
|
class="ft-snap-scroll--previous"
|
|
@@ -1153,7 +1153,7 @@
|
|
|
1153
1153
|
@click=${this.next}
|
|
1154
1154
|
></ft-button>
|
|
1155
1155
|
</div>
|
|
1156
|
-
`}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
|
|
1156
|
+
`}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 xs(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)}};me.elementDefinitions={"ft-button":w};me.styles=ud;kt([(0,Je.property)({type:Boolean})],me.prototype,"horizontal",void 0);kt([(0,Je.property)({type:Boolean})],me.prototype,"hideScrollbar",void 0);kt([(0,Je.property)({type:Boolean})],me.prototype,"controls",void 0);kt([(0,Je.property)({type:Boolean})],me.prototype,"limitSize",void 0);kt([(0,Je.state)()],me.prototype,"elements",void 0);kt([(0,Je.state)()],me.prototype,"currentElement",void 0);kt([(0,Je.state)()],me.prototype,"withScroll",void 0);kt([(0,Je.state)()],me.prototype,"startReached",void 0);kt([(0,Je.state)()],me.prototype,"endReached",void 0);kt([(0,Je.query)(".ft-snap-scroll--content")],me.prototype,"contentSlot",void 0);var hd=c(h());var fd={"ft-snap-scroll":me};(0,hd.customElements)(fd);var md=c(E()),ee=c(h());var He={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","",b.fontSize,"16px")},gd=[jt,ee.noTextInputDefaultClearButton,md.css`
|
|
1157
1157
|
:host {
|
|
1158
1158
|
display: flex;
|
|
1159
1159
|
max-height: 100%;
|
|
@@ -1181,7 +1181,7 @@
|
|
|
1181
1181
|
.ft-filter--header ft-button {
|
|
1182
1182
|
flex-shrink: 0;
|
|
1183
1183
|
margin-left: auto;
|
|
1184
|
-
${(0,
|
|
1184
|
+
${(0,ee.setVariable)(B.iconSize,"18px")};
|
|
1185
1185
|
}
|
|
1186
1186
|
|
|
1187
1187
|
.filter-label {
|
|
@@ -1193,10 +1193,10 @@
|
|
|
1193
1193
|
flex-shrink: 1;
|
|
1194
1194
|
flex-grow: 1;
|
|
1195
1195
|
word-break: break-word;
|
|
1196
|
-
color: ${
|
|
1197
|
-
font-size: ${
|
|
1198
|
-
${(0,
|
|
1199
|
-
${(0,
|
|
1196
|
+
color: ${He.labelColor};
|
|
1197
|
+
font-size: ${He.labelFontSize};
|
|
1198
|
+
${(0,ee.setVariable)(b.lineHeight,"22px")};
|
|
1199
|
+
${(0,ee.setVariable)(b.fontWeight,"bold")};
|
|
1200
1200
|
}
|
|
1201
1201
|
|
|
1202
1202
|
.ft-filter--filter {
|
|
@@ -1207,8 +1207,8 @@
|
|
|
1207
1207
|
padding: 0 10px;
|
|
1208
1208
|
overflow: hidden;
|
|
1209
1209
|
height: 32px;
|
|
1210
|
-
transition: height ${
|
|
1211
|
-
margin ${
|
|
1210
|
+
transition: height ${He.transitionDuration} ${He.transitionTimingFunction},
|
|
1211
|
+
margin ${He.transitionDuration} ${He.transitionTimingFunction};
|
|
1212
1212
|
transition-delay: 500ms;
|
|
1213
1213
|
}
|
|
1214
1214
|
|
|
@@ -1221,15 +1221,15 @@
|
|
|
1221
1221
|
display: block;
|
|
1222
1222
|
width: 100%;
|
|
1223
1223
|
border-radius: 4px;
|
|
1224
|
-
border: 1px solid ${
|
|
1224
|
+
border: 1px solid ${He.colorOutline};
|
|
1225
1225
|
padding: 4px;
|
|
1226
|
-
background-color: ${
|
|
1227
|
-
color: ${
|
|
1228
|
-
outline-color: ${
|
|
1226
|
+
background-color: ${He.colorSurface};
|
|
1227
|
+
color: ${He.colorOnSurface};
|
|
1228
|
+
outline-color: ${He.colorPrimary};
|
|
1229
1229
|
}
|
|
1230
1230
|
|
|
1231
1231
|
input::placeholder {
|
|
1232
|
-
color: ${
|
|
1232
|
+
color: ${He.colorOnSurfaceMedium};
|
|
1233
1233
|
}
|
|
1234
1234
|
|
|
1235
1235
|
input:placeholder-shown {
|
|
@@ -1245,7 +1245,7 @@
|
|
|
1245
1245
|
}
|
|
1246
1246
|
|
|
1247
1247
|
.ft-filter--separator {
|
|
1248
|
-
border-top: 1px solid ${
|
|
1248
|
+
border-top: 1px solid ${He.colorOutline};
|
|
1249
1249
|
margin: 4px 10px;
|
|
1250
1250
|
}
|
|
1251
1251
|
|
|
@@ -1270,19 +1270,19 @@
|
|
|
1270
1270
|
slot:not([name]) {
|
|
1271
1271
|
display: none;
|
|
1272
1272
|
}
|
|
1273
|
-
`];var
|
|
1273
|
+
`];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},Ss=class extends CustomEvent{constructor(e){super("change",{detail:e})}},z=class extends(0,ue.withAnalytics)(ue.FtLitElement,vs){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 wr.html`
|
|
1274
1274
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1275
1275
|
part="container">
|
|
1276
|
-
${!this.label&&!e?null:
|
|
1276
|
+
${!this.label&&!e?null:wr.html`
|
|
1277
1277
|
|
|
1278
1278
|
<div class="ft-filter--header" part="header">
|
|
1279
1279
|
<div class="filter-label" id="id-group-${this.id}">
|
|
1280
|
-
<ft-typography class="ft-filter--label" variant="${
|
|
1280
|
+
<ft-typography class="ft-filter--label" variant="${pe.overline}" part="label">
|
|
1281
1281
|
${this.label}
|
|
1282
1282
|
</ft-typography>
|
|
1283
1283
|
<slot name="label"></slot>
|
|
1284
1284
|
</div>
|
|
1285
|
-
${e&&!this.hideClearButton?
|
|
1285
|
+
${e&&!this.hideClearButton?wr.html`
|
|
1286
1286
|
<ft-button icon="close"
|
|
1287
1287
|
aria-label="${this.clearButtonLabel+" "+this.label}"
|
|
1288
1288
|
dense
|
|
@@ -1310,8 +1310,8 @@
|
|
|
1310
1310
|
@slotchange=${this.updateOptionsFromSlot}
|
|
1311
1311
|
@option-change=${this.optionsChanged}></slot>
|
|
1312
1312
|
</div>
|
|
1313
|
-
`}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(i=>i.value));this.displayedLevels=this.displayedLevels.filter(i=>r.has(i)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var r,i,n,
|
|
1314
|
-
${this.raiseSelectedOptions&&r.length>0?
|
|
1313
|
+
`}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(i=>i.value));this.displayedLevels=this.displayedLevels.filter(i=>r.has(i)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var r,i,o,n,s,a;super.contentAvailableCallback(e),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),e.has("options")&&(this.updateScroll(),(r=this.levelsContainer)===null||r===void 0||r.scrollToIndex(this.displayedLevels.length)),e.has("slideIn")&&this.slideIn&&((i=this.levelsContainer)===null||i===void 0||i.next(),setTimeout(()=>{this.slideIn=void 0},300)),e.has("slideOut")&&this.slideOut&&((o=this.levelsContainer)===null||o===void 0||o.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(a=(s=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||s===void 0?void 0:s.hasHiddenValues)!==null&&a!==void 0?a:!1}renderLevels(){let e=this.flatOptions,r=e.filter(n=>n.selected),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,o=i<0?"ft-filter--level-center":"ft-filter--level-left";return wr.html`
|
|
1314
|
+
${this.raiseSelectedOptions&&r.length>0?wr.html`
|
|
1315
1315
|
<ft-filter-level
|
|
1316
1316
|
filterId="${this.id}"
|
|
1317
1317
|
?multivalued=${this.multivalued}
|
|
@@ -1328,11 +1328,11 @@
|
|
|
1328
1328
|
`:null}
|
|
1329
1329
|
<ft-snap-scroll horizontal hideScrollbar
|
|
1330
1330
|
class="ft-filter--levels"
|
|
1331
|
-
@current-element-change=${
|
|
1332
|
-
${this.renderLevel(
|
|
1333
|
-
${this.displayedLevels.map(
|
|
1331
|
+
@current-element-change=${n=>this.levelsScrollDebouncer.run(()=>{for(;n.detail.index<this.displayedLevels.length;)this.displayedLevels.pop();this.requestUpdate()})}>
|
|
1332
|
+
${this.renderLevel(o,this.options)}
|
|
1333
|
+
${this.displayedLevels.map(n=>e.find(s=>s.value===n)).map((n,s)=>{var a;let l=n?.value===this.slideIn||n?.value===this.slideOut?"ft-filter--level-right":s===i?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(l,(a=n?.subOptions)!==null&&a!==void 0?a:[],n)})}
|
|
1334
1334
|
</ft-snap-scroll>
|
|
1335
|
-
`}renderLevel(e,r,i){return
|
|
1335
|
+
`}renderLevel(e,r,i){return wr.html`
|
|
1336
1336
|
<ft-filter-level
|
|
1337
1337
|
class="${e}"
|
|
1338
1338
|
filterId="${this.id}"
|
|
@@ -1354,21 +1354,21 @@
|
|
|
1354
1354
|
noValuesLabel="${this.noValuesLabel}"
|
|
1355
1355
|
.filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
|
|
1356
1356
|
></ft-filter-level>
|
|
1357
|
-
`}goBack(e){this.slideOut=e.detail.value,(0,
|
|
1357
|
+
`}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 Ss(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":me,"ft-typography":q};z.styles=gd;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 ro=c(h()),_r=c(j()),yd=c(E()),Jr=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 ro.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return yd.html`
|
|
1358
1358
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1359
|
-
`}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}))}};
|
|
1359
|
+
`}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={};Jr([(0,_r.property)({type:String})],et.prototype,"label",void 0);Jr([(0,_r.property)({type:Object,converter:t=>t})],et.prototype,"value",void 0);Jr([(0,_r.property)({type:Boolean,reflect:!0})],et.prototype,"selected",void 0);Jr([(0,_r.property)({type:Object})],et.prototype,"subOptions",void 0);Jr([(0,ro.jsonProperty)({})],et.prototype,"renderOption",void 0);Jr([(0,_r.query)(".ft-filter-option--slot")],et.prototype,"slotElement",void 0);var vd=c(h());var bd={"ft-filter":z,"ft-filter-option":et};(0,vd.customElements)(bd);var Ad=c(E()),io=c(j()),Cd=c(h());var xd=c(E());var Sd=xd.css`
|
|
1360
1360
|
.ft-accordion {
|
|
1361
1361
|
box-sizing: border-box;
|
|
1362
1362
|
}
|
|
1363
|
-
`;var
|
|
1363
|
+
`;var Ed=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},Lt=class extends Cd.FtLitElement{constructor(){super(...arguments),this.multi=!1}render(){return Ad.html`
|
|
1364
1364
|
<div class="ft-accordion">
|
|
1365
1365
|
<slot @activated=${this.onChange}></slot>
|
|
1366
1366
|
</div>
|
|
1367
|
-
`}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};
|
|
1367
|
+
`}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};Lt.elementDefinitions={};Lt.styles=Sd;Ed([(0,io.property)({type:Boolean})],Lt.prototype,"multi",void 0);Ed([(0,io.query)("slot")],Lt.prototype,"content",void 0);var Vi=c(E()),Hi=c(j()),Od=c(h());var wd=c(E()),Rr=c(h()),Or={horizontalSpacing:Rr.FtCssVariableFactory.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:Rr.FtCssVariableFactory.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:Rr.FtCssVariableFactory.external(Rr.designSystemVariables.colorOutline,"Design system"),backgroundColor:Rr.FtCssVariableFactory.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},_d=wd.css`
|
|
1368
1368
|
.ft-accordion-item {
|
|
1369
1369
|
display: flex;
|
|
1370
1370
|
flex-direction: column;
|
|
1371
|
-
background-color: ${
|
|
1371
|
+
background-color: ${Or.backgroundColor};
|
|
1372
1372
|
}
|
|
1373
1373
|
|
|
1374
1374
|
.ft-accordion-item--toggle {
|
|
@@ -1378,8 +1378,8 @@
|
|
|
1378
1378
|
display: flex;
|
|
1379
1379
|
align-items: center;
|
|
1380
1380
|
cursor: pointer;
|
|
1381
|
-
padding: ${
|
|
1382
|
-
gap: calc(${
|
|
1381
|
+
padding: ${Or.verticalSpacing} ${Or.horizontalSpacing};
|
|
1382
|
+
gap: calc(${Or.horizontalSpacing} / 2);
|
|
1383
1383
|
outline: none;
|
|
1384
1384
|
}
|
|
1385
1385
|
|
|
@@ -1404,13 +1404,13 @@
|
|
|
1404
1404
|
.ft-accordion-item--active .ft-accordion-item--content {
|
|
1405
1405
|
height: initial;
|
|
1406
1406
|
overflow: visible;
|
|
1407
|
-
padding: ${
|
|
1407
|
+
padding: ${Or.verticalSpacing} ${Or.horizontalSpacing};
|
|
1408
1408
|
}
|
|
1409
1409
|
|
|
1410
1410
|
.ft-accordion-item--separator {
|
|
1411
|
-
border-bottom: 1px solid ${
|
|
1411
|
+
border-bottom: 1px solid ${Or.colorOutline};
|
|
1412
1412
|
}
|
|
1413
|
-
`;var
|
|
1413
|
+
`;var no=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},ct=class extends Od.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return Vi.html`
|
|
1414
1414
|
<div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
|
|
1415
1415
|
<div class="ft-accordion-item--toggle"
|
|
1416
1416
|
part="toggle"
|
|
@@ -1421,13 +1421,13 @@
|
|
|
1421
1421
|
aria-controls="ft-accordion-item-content"
|
|
1422
1422
|
aria-expanded="${this.active}">
|
|
1423
1423
|
<ft-ripple part="toggle-ripple"></ft-ripple>
|
|
1424
|
-
${this.icon?
|
|
1424
|
+
${this.icon?Vi.html`
|
|
1425
1425
|
<ft-icon .variant=${this.iconVariant} value="${this.icon}"></ft-icon>
|
|
1426
1426
|
`:null}
|
|
1427
|
-
${this.label?
|
|
1427
|
+
${this.label?Vi.html`
|
|
1428
1428
|
<ft-typography class="ft-accordion-item--label" variant="body1" part="label">${this.label}
|
|
1429
1429
|
</ft-typography>
|
|
1430
|
-
`:
|
|
1430
|
+
`:Vi.html`
|
|
1431
1431
|
<slot class="ft-accordion-item--label" name="toggle" part="label"></slot>
|
|
1432
1432
|
`}
|
|
1433
1433
|
<ft-icon variant="material">${this.active?"expand_less":"expand_more"}</ft-icon>
|
|
@@ -1440,7 +1440,7 @@
|
|
|
1440
1440
|
</div>
|
|
1441
1441
|
<div class="ft-accordion-item--separator" part="separator"></div>
|
|
1442
1442
|
</div>
|
|
1443
|
-
`}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)}};ct.elementDefinitions={"ft-ripple":M,"ft-typography":
|
|
1443
|
+
`}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)}};ct.elementDefinitions={"ft-ripple":M,"ft-typography":q,"ft-icon":ne};ct.styles=_d;no([(0,Hi.property)()],ct.prototype,"icon",void 0);no([(0,Hi.property)()],ct.prototype,"iconVariant",void 0);no([(0,Hi.property)()],ct.prototype,"label",void 0);no([(0,Hi.property)({type:Boolean,reflect:!0})],ct.prototype,"active",void 0);var Td=c(h());var Rd={"ft-accordion":Lt,"ft-accordion-item":ct};(0,Td.customElements)(Rd);var oo=c(E()),Oe=c(j()),Dd=c(nt()),ei=c(h());var ji=c(E()),D=c(h());var kd=D.FtCssVariableFactory.extend("--ft-chip-color","",D.designSystemVariables.colorOnSurface),_e={backgroundColor:D.FtCssVariableFactory.extend("--ft-chip-background-color","",D.designSystemVariables.colorSurface),color:kd,fontSize:D.FtCssVariableFactory.extend("--ft-chip-font-size","",ye.fontSize),fontWeight:D.FtCssVariableFactory.extend("--ft-chip-font-weight","",ye.fontWeight),iconSize:D.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:D.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:D.FtCssVariableFactory.extend("--ft-chip-ripple-color","",kd),horizontalPadding:D.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:D.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:D.FtCssVariableFactory.extend("--ft-chip-border-color","",D.designSystemVariables.colorOutline),opacityDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOpacityDisabled,"Design system")},Ld=D.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",D.FtCssVariableFactory.extend("--ft-chip-color","",D.designSystemVariables.colorOnPrimary)),Es={backgroundColor:D.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",D.FtCssVariableFactory.extend("--ft-chip-background-color","",D.designSystemVariables.colorPrimary)),color:Ld,rippleColor:D.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",Ld)},$d={horizontalPadding:D.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:D.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Pd=[D.noTextSelect,ji.css`
|
|
1444
1444
|
:host {
|
|
1445
1445
|
display: inline-block;
|
|
1446
1446
|
max-width: 100%;
|
|
@@ -1456,21 +1456,21 @@
|
|
|
1456
1456
|
box-sizing: border-box;
|
|
1457
1457
|
pointer-events: auto;
|
|
1458
1458
|
|
|
1459
|
-
--chip-internal-font-size: ${
|
|
1460
|
-
--chip-internal-font-weight: ${
|
|
1459
|
+
--chip-internal-font-size: ${_e.fontSize};
|
|
1460
|
+
--chip-internal-font-weight: ${_e.fontWeight};
|
|
1461
1461
|
--chip-internal-line-height: max(20px, calc(var(--chip-internal-font-size) + 2px));
|
|
1462
|
-
${(0,
|
|
1463
|
-
--chip-internal-vertical-padding: ${
|
|
1464
|
-
--chip-internal-horizontal-padding: ${
|
|
1462
|
+
${(0,D.setVariable)($e.size,_e.iconSize)};
|
|
1463
|
+
--chip-internal-vertical-padding: ${_e.verticalPadding};
|
|
1464
|
+
--chip-internal-horizontal-padding: ${_e.horizontalPadding};
|
|
1465
1465
|
--chip-internal-icon-padding: 3px;
|
|
1466
|
-
--chip-internal-content-height: max(var(--chip-internal-line-height), ${
|
|
1466
|
+
--chip-internal-content-height: max(var(--chip-internal-line-height), ${_e.iconSize});
|
|
1467
1467
|
|
|
1468
|
-
border: 1px solid ${
|
|
1469
|
-
color: ${
|
|
1470
|
-
${(0,
|
|
1471
|
-
border-radius: var(${(0,
|
|
1468
|
+
border: 1px solid ${_e.borderColor};
|
|
1469
|
+
color: ${_e.color};
|
|
1470
|
+
${(0,D.setVariable)(K.color,_e.rippleColor)};
|
|
1471
|
+
border-radius: var(${(0,ji.unsafeCSS)(_e.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
|
|
1472
1472
|
padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
|
|
1473
|
-
background-color: ${
|
|
1473
|
+
background-color: ${_e.backgroundColor};
|
|
1474
1474
|
line-height: var(--chip-internal-content-height);
|
|
1475
1475
|
}
|
|
1476
1476
|
|
|
@@ -1480,28 +1480,28 @@
|
|
|
1480
1480
|
|
|
1481
1481
|
.ft-chip--dense {
|
|
1482
1482
|
--chip-internal-icon-padding: 3px;
|
|
1483
|
-
--chip-internal-vertical-padding: ${
|
|
1484
|
-
--chip-internal-horizontal-padding: ${
|
|
1483
|
+
--chip-internal-vertical-padding: ${$d.verticalPadding};
|
|
1484
|
+
--chip-internal-horizontal-padding: ${$d.horizontalPadding};
|
|
1485
1485
|
--chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
|
|
1486
1486
|
}
|
|
1487
1487
|
|
|
1488
1488
|
.ft-chip--no-content {
|
|
1489
|
-
--chip-internal-horizontal-padding: ${
|
|
1489
|
+
--chip-internal-horizontal-padding: ${_e.horizontalPadding.get(ji.css`var(--chip-internal-vertical-padding)`)};
|
|
1490
1490
|
}
|
|
1491
1491
|
|
|
1492
1492
|
.ft-chip--disabled {
|
|
1493
1493
|
cursor: default;
|
|
1494
1494
|
pointer-events: none;
|
|
1495
1495
|
filter: grayscale(1);
|
|
1496
|
-
opacity: ${
|
|
1496
|
+
opacity: ${_e.opacityDisabled};
|
|
1497
1497
|
}
|
|
1498
1498
|
|
|
1499
1499
|
.ft-chip--highlighted {
|
|
1500
1500
|
border: none;
|
|
1501
1501
|
padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
|
|
1502
|
-
background-color: ${
|
|
1503
|
-
${(0,
|
|
1504
|
-
color: ${
|
|
1502
|
+
background-color: ${Es.backgroundColor};
|
|
1503
|
+
${(0,D.setVariable)(K.color,Es.rippleColor)};
|
|
1504
|
+
color: ${Es.color};
|
|
1505
1505
|
}
|
|
1506
1506
|
|
|
1507
1507
|
.ft-chip--clickable {
|
|
@@ -1510,7 +1510,7 @@
|
|
|
1510
1510
|
}
|
|
1511
1511
|
|
|
1512
1512
|
.ft-chip:focus {
|
|
1513
|
-
outline: 2px solid ${
|
|
1513
|
+
outline: 2px solid ${D.designSystemVariables.colorPrimary};
|
|
1514
1514
|
outline-offset: 2px;
|
|
1515
1515
|
}
|
|
1516
1516
|
|
|
@@ -1532,9 +1532,9 @@
|
|
|
1532
1532
|
}
|
|
1533
1533
|
|
|
1534
1534
|
.ft-chip--icon-button {
|
|
1535
|
-
${(0,
|
|
1536
|
-
${(0,
|
|
1537
|
-
${(0,
|
|
1535
|
+
${(0,D.setVariable)(B.iconSize,_e.iconSize)};
|
|
1536
|
+
${(0,D.setVariable)(B.horizontalPadding,"var(--chip-internal-icon-padding)")};
|
|
1537
|
+
${(0,D.setVariable)(B.verticalPadding,"var(--chip-internal-icon-padding)")};
|
|
1538
1538
|
margin: calc((-1) * var(--chip-internal-icon-padding));
|
|
1539
1539
|
}
|
|
1540
1540
|
|
|
@@ -1542,9 +1542,9 @@
|
|
|
1542
1542
|
vertical-align: bottom;
|
|
1543
1543
|
display: block;
|
|
1544
1544
|
margin: 0 var(--chip-internal-horizontal-padding);
|
|
1545
|
-
${(0,
|
|
1546
|
-
${(0,
|
|
1547
|
-
${(0,
|
|
1545
|
+
${(0,D.setVariable)(ye.fontSize,"var(--chip-internal-font-size)")};
|
|
1546
|
+
${(0,D.setVariable)(ye.fontWeight,"var(--chip-internal-font-weight)")};
|
|
1547
|
+
${(0,D.setVariable)(ye.lineHeight,"var(--chip-internal-content-height)")};
|
|
1548
1548
|
}
|
|
1549
1549
|
|
|
1550
1550
|
.ft-chip--safari-fix .ft-chip--label {
|
|
@@ -1580,8 +1580,8 @@
|
|
|
1580
1580
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
1581
1581
|
order: -1;
|
|
1582
1582
|
}
|
|
1583
|
-
`];var
|
|
1584
|
-
<div class="${(0,
|
|
1583
|
+
`];var Me=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},so=class extends CustomEvent{constructor(){super("icon-click")}},se=class extends ei.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":ei.isSafari};return oo.html`
|
|
1584
|
+
<div class="${(0,Dd.classMap)(r)}"
|
|
1585
1585
|
aria-label="${this.getLabel()}"
|
|
1586
1586
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
1587
1587
|
@keyup=${this.onKeyUp}
|
|
@@ -1592,7 +1592,7 @@
|
|
|
1592
1592
|
</ft-typography>
|
|
1593
1593
|
${this.internalIcon?this.renderIcon():null}
|
|
1594
1594
|
</div>
|
|
1595
|
-
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?
|
|
1595
|
+
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?oo.html`
|
|
1596
1596
|
<ft-button round
|
|
1597
1597
|
class="ft-chip--icon-button"
|
|
1598
1598
|
@click=${this.onIconClick}
|
|
@@ -1603,29 +1603,29 @@
|
|
|
1603
1603
|
part="icon-button"
|
|
1604
1604
|
?hideTooltip=${this.hideIconTooltip}
|
|
1605
1605
|
></ft-button>
|
|
1606
|
-
`:
|
|
1606
|
+
`:oo.html`
|
|
1607
1607
|
<div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
|
|
1608
1608
|
<ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
|
|
1609
1609
|
</div>
|
|
1610
|
-
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new
|
|
1610
|
+
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new so))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new so))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,ei.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":q,"ft-icon":ne,"ft-button":w};se.styles=Pd;Me([(0,Oe.property)({type:Boolean})],se.prototype,"highlighted",void 0);Me([(0,Oe.property)({type:Boolean})],se.prototype,"removable",void 0);Me([(0,Oe.property)({type:Boolean})],se.prototype,"disabled",void 0);Me([(0,Oe.property)({type:Boolean})],se.prototype,"clickable",void 0);Me([(0,Oe.property)({type:Boolean})],se.prototype,"iconClickable",void 0);Me([(0,Oe.property)({type:Boolean})],se.prototype,"dense",void 0);Me([(0,Oe.property)({type:Boolean})],se.prototype,"multiLine",void 0);Me([(0,Oe.property)()],se.prototype,"label",void 0);Me([(0,Oe.property)()],se.prototype,"iconLabel",void 0);Me([(0,Oe.property)({type:Boolean})],se.prototype,"hideIconTooltip",void 0);Me([(0,Oe.property)()],se.prototype,"icon",void 0);Me([(0,Oe.property)()],se.prototype,"iconVariant",void 0);Me([(0,Oe.property)({type:Boolean})],se.prototype,"trailingIcon",void 0);Me([(0,Oe.property)()],se.prototype,"typographyVariant",void 0);Me([(0,Oe.query)("ft-typography slot")],se.prototype,"slottedContent",void 0);var Id=c(h());var Md={"ft-chip":se};(0,Id.customElements)(Md);var ri=c(E()),ge=c(j()),Yd=c(nt()),Xd=c(sr());function Wi(t,e,r){return t?e(t):r?.(t)}var ut=c(h());var ao=c(j());var Nd=c(E()),re=c(h());var I={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=Nd.css`
|
|
1611
1611
|
.ft-input-label {
|
|
1612
1612
|
position: absolute;
|
|
1613
1613
|
inset: 0;
|
|
1614
1614
|
display: flex;
|
|
1615
|
-
background-color: ${
|
|
1616
|
-
border-radius: ${
|
|
1615
|
+
background-color: ${I.backgroundColor};
|
|
1616
|
+
border-radius: ${I.borderRadius} ${I.borderRadius} 0 0;
|
|
1617
1617
|
}
|
|
1618
1618
|
|
|
1619
1619
|
.ft-input-label--outlined {
|
|
1620
|
-
border-radius: ${
|
|
1620
|
+
border-radius: ${I.borderRadius};
|
|
1621
1621
|
}
|
|
1622
1622
|
|
|
1623
1623
|
.ft-input-label {
|
|
1624
|
-
border-color: ${
|
|
1624
|
+
border-color: ${I.borderColor};
|
|
1625
1625
|
}
|
|
1626
1626
|
|
|
1627
1627
|
.ft-input-label.ft-input-label--in-error {
|
|
1628
|
-
border-color: ${
|
|
1628
|
+
border-color: ${I.colorError}
|
|
1629
1629
|
}
|
|
1630
1630
|
|
|
1631
1631
|
.ft-input-label:before,
|
|
@@ -1638,7 +1638,7 @@
|
|
|
1638
1638
|
}
|
|
1639
1639
|
|
|
1640
1640
|
.ft-input-label:before {
|
|
1641
|
-
width: calc(${
|
|
1641
|
+
width: calc(${I.horizontalSpacing} - 4px);
|
|
1642
1642
|
flex-shrink: 0;
|
|
1643
1643
|
}
|
|
1644
1644
|
|
|
@@ -1654,20 +1654,20 @@
|
|
|
1654
1654
|
border-bottom-width: 1px;
|
|
1655
1655
|
border-bottom-style: solid;
|
|
1656
1656
|
border-color: inherit;
|
|
1657
|
-
color: ${
|
|
1657
|
+
color: ${I.textColor};
|
|
1658
1658
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
1659
|
-
max-width: calc(${
|
|
1659
|
+
max-width: calc(${I.labelMaxWidth} - 2 * (${I.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
1660
1660
|
text-overflow: ellipsis;
|
|
1661
|
-
${(0,
|
|
1662
|
-
${(0,
|
|
1661
|
+
${(0,re.setVariable)(We.fontSize,I.fontSize)};
|
|
1662
|
+
${(0,re.setVariable)(We.lineHeight,I.fontSize)};
|
|
1663
1663
|
}
|
|
1664
1664
|
|
|
1665
1665
|
.ft-input-label--in-error .ft-input-label--text {
|
|
1666
|
-
color: ${
|
|
1666
|
+
color: ${I.colorError}
|
|
1667
1667
|
}
|
|
1668
1668
|
|
|
1669
1669
|
.ft-input-label--disabled .ft-input-label--text {
|
|
1670
|
-
color: ${
|
|
1670
|
+
color: ${I.disabledTextColor};
|
|
1671
1671
|
}
|
|
1672
1672
|
|
|
1673
1673
|
.ft-input-label--hidden-text {
|
|
@@ -1684,19 +1684,19 @@
|
|
|
1684
1684
|
overflow: hidden;
|
|
1685
1685
|
white-space: nowrap;
|
|
1686
1686
|
text-overflow: ellipsis;
|
|
1687
|
-
padding: ${
|
|
1688
|
-
margin: calc(${
|
|
1687
|
+
padding: ${I.verticalSpacing} 4px;
|
|
1688
|
+
margin: calc(${I.verticalSpacing} * -1) 0;
|
|
1689
1689
|
max-width: 100%;
|
|
1690
1690
|
box-sizing: border-box;
|
|
1691
1691
|
}
|
|
1692
1692
|
|
|
1693
1693
|
.ft-input-label--raised .ft-input-label--text {
|
|
1694
|
-
${(0,
|
|
1695
|
-
${(0,
|
|
1694
|
+
${(0,re.setVariable)(We.fontSize,I.raisedFontSize)};
|
|
1695
|
+
${(0,re.setVariable)(We.lineHeight,I.raisedFontSize)};
|
|
1696
1696
|
}
|
|
1697
1697
|
|
|
1698
1698
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
1699
|
-
top: ${
|
|
1699
|
+
top: ${I.verticalSpacing};
|
|
1700
1700
|
}
|
|
1701
1701
|
|
|
1702
1702
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -1709,36 +1709,36 @@
|
|
|
1709
1709
|
.ft-input-label--outlined:before {
|
|
1710
1710
|
border-left-width: 1px;
|
|
1711
1711
|
border-left-style: solid;
|
|
1712
|
-
border-radius: ${
|
|
1712
|
+
border-radius: ${I.borderRadius} 0 0 ${I.borderRadius};
|
|
1713
1713
|
}
|
|
1714
1714
|
|
|
1715
1715
|
.ft-input-label--outlined:after {
|
|
1716
1716
|
border-right-width: 1px;
|
|
1717
1717
|
border-right-style: solid;
|
|
1718
|
-
border-radius: 0 ${
|
|
1718
|
+
border-radius: 0 ${I.borderRadius} ${I.borderRadius} 0;
|
|
1719
1719
|
}
|
|
1720
1720
|
|
|
1721
1721
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
1722
1722
|
padding: 2px 4px;
|
|
1723
|
-
z-index: ${
|
|
1724
|
-
background-color: ${
|
|
1725
|
-
border-radius: ${
|
|
1723
|
+
z-index: ${I.raisedZIndex};
|
|
1724
|
+
background-color: ${I.backgroundColor};
|
|
1725
|
+
border-radius: ${I.borderRadius};
|
|
1726
1726
|
top: calc((${We.lineHeight} / -2) + 2px);
|
|
1727
1727
|
}
|
|
1728
1728
|
|
|
1729
1729
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
1730
1730
|
border-top: none;
|
|
1731
1731
|
}
|
|
1732
|
-
`;var
|
|
1733
|
-
<div class="${(0,
|
|
1734
|
-
${
|
|
1732
|
+
`;var As=c(E()),Cs=c(j());var Ud=c(nt()),zd=c(h()),Fd=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},Tr=class extends zd.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return As.html`
|
|
1733
|
+
<div class="${(0,Ud.classMap)(this.inputLabelClasses)}">
|
|
1734
|
+
${Wi(this.text,()=>As.html`
|
|
1735
1735
|
<div class="ft-input-label--text ft-typography--caption">
|
|
1736
1736
|
<label class="ft-input-label--floating-text">${this.text}</label>
|
|
1737
1737
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
1738
1738
|
</div>
|
|
1739
1739
|
`)}
|
|
1740
1740
|
</div>
|
|
1741
|
-
`}};
|
|
1741
|
+
`}};Tr.elementDefinitions={};Fd([(0,Cs.property)({type:String})],Tr.prototype,"text",void 0);Fd([(0,Cs.property)({type:Boolean})],Tr.prototype,"raised",void 0);var ws=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},xt=class extends Tr{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}}};xt.elementDefinitions={};xt.styles=[jt,Bd];ws([(0,ao.property)({type:Boolean})],xt.prototype,"outlined",void 0);ws([(0,ao.property)({type:Boolean})],xt.prototype,"error",void 0);ws([(0,ao.property)({type:Boolean})],xt.prototype,"disabled",void 0);var Hd=c(h());var Vd={"ft-input-label":xt};(0,Hd.customElements)(Vd);var jd=c(E()),$=c(h());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")},Wd=jd.css`
|
|
1742
1742
|
*:focus {
|
|
1743
1743
|
outline: none;
|
|
1744
1744
|
}
|
|
@@ -1753,7 +1753,7 @@
|
|
|
1753
1753
|
.ft-select--main-panel {
|
|
1754
1754
|
position: relative;
|
|
1755
1755
|
display: flex;
|
|
1756
|
-
height: calc(4 * ${
|
|
1756
|
+
height: calc(4 * ${L.verticalSpacing} + ${L.labelSize} + ${L.selectedOptionSize});
|
|
1757
1757
|
}
|
|
1758
1758
|
|
|
1759
1759
|
.ft-select--input-panel {
|
|
@@ -1762,17 +1762,17 @@
|
|
|
1762
1762
|
display: flex;
|
|
1763
1763
|
align-items: center;
|
|
1764
1764
|
overflow: hidden;
|
|
1765
|
-
padding-left: ${
|
|
1766
|
-
padding-right: ${
|
|
1765
|
+
padding-left: ${L.horizontalSpacing};
|
|
1766
|
+
padding-right: ${L.horizontalSpacing};
|
|
1767
1767
|
gap: 8px;
|
|
1768
|
-
color: ${
|
|
1769
|
-
${(0,$.setVariable)(
|
|
1768
|
+
color: ${L.selectedOptionColor};
|
|
1769
|
+
${(0,$.setVariable)(K.color,L.selectedOptionColor)};
|
|
1770
1770
|
}
|
|
1771
1771
|
|
|
1772
1772
|
.ft-select--input-panel,
|
|
1773
1773
|
.ft-select--options {
|
|
1774
|
-
${(0,$.setVariable)(
|
|
1775
|
-
${(0,$.setVariable)(
|
|
1774
|
+
${(0,$.setVariable)(K.opacityContentOnSurfaceHover,"0.08")};
|
|
1775
|
+
${(0,$.setVariable)(K.opacityContentOnSurfacePressed,"0.04")};
|
|
1776
1776
|
}
|
|
1777
1777
|
|
|
1778
1778
|
.ft-select--input-panel > *:not(ft-ripple) {
|
|
@@ -1781,7 +1781,7 @@
|
|
|
1781
1781
|
|
|
1782
1782
|
.ft-select--disabled .ft-select--input-panel,
|
|
1783
1783
|
.ft-select--disabled .ft-select--options {
|
|
1784
|
-
color: ${
|
|
1784
|
+
color: ${L.colorOnSurfaceDisabled};
|
|
1785
1785
|
}
|
|
1786
1786
|
|
|
1787
1787
|
.ft-select:not(.ft-select--disabled) .ft-select--input-panel,
|
|
@@ -1790,21 +1790,21 @@
|
|
|
1790
1790
|
}
|
|
1791
1791
|
|
|
1792
1792
|
ft-input-label {
|
|
1793
|
-
${(0,$.setVariable)(
|
|
1794
|
-
${(0,$.setVariable)(
|
|
1795
|
-
${(0,$.setVariable)(
|
|
1796
|
-
${(0,$.setVariable)(
|
|
1797
|
-
${(0,$.setVariable)(
|
|
1798
|
-
${(0,$.setVariable)(
|
|
1793
|
+
${(0,$.setVariable)(I.fontSize,L.selectedOptionSize)};
|
|
1794
|
+
${(0,$.setVariable)(I.raisedFontSize,L.labelSize)};
|
|
1795
|
+
${(0,$.setVariable)(I.verticalSpacing,L.verticalSpacing)};
|
|
1796
|
+
${(0,$.setVariable)(I.horizontalSpacing,L.horizontalSpacing)};
|
|
1797
|
+
${(0,$.setVariable)(I.backgroundColor,L.backgroundColor)};
|
|
1798
|
+
${(0,$.setVariable)(I.labelMaxWidth,`calc(100% - ${$e.size} - 8px)`)};
|
|
1799
1799
|
}
|
|
1800
1800
|
|
|
1801
1801
|
.ft-select:not(.ft-select--disabled):focus-within ft-icon {
|
|
1802
|
-
color: ${
|
|
1802
|
+
color: ${L.colorPrimary};
|
|
1803
1803
|
}
|
|
1804
1804
|
|
|
1805
1805
|
.ft-select:not(.ft-select--disabled):focus-within ft-input-label {
|
|
1806
|
-
${(0,$.setVariable)(
|
|
1807
|
-
${(0,$.setVariable)(
|
|
1806
|
+
${(0,$.setVariable)(I.borderColor,L.colorPrimary)};
|
|
1807
|
+
${(0,$.setVariable)(I.textColor,L.colorPrimary)};
|
|
1808
1808
|
}
|
|
1809
1809
|
|
|
1810
1810
|
.ft-select--selected-option {
|
|
@@ -1814,12 +1814,12 @@
|
|
|
1814
1814
|
overflow: hidden;
|
|
1815
1815
|
white-space: nowrap;
|
|
1816
1816
|
text-overflow: ellipsis;
|
|
1817
|
-
${(0,$.setVariable)(
|
|
1818
|
-
${(0,$.setVariable)(
|
|
1817
|
+
${(0,$.setVariable)(Mt.fontSize,L.selectedOptionSize)};
|
|
1818
|
+
${(0,$.setVariable)(Mt.lineHeight,L.selectedOptionSize)};
|
|
1819
1819
|
}
|
|
1820
1820
|
|
|
1821
1821
|
.ft-select--in-error .ft-select--selected-option {
|
|
1822
|
-
color: ${
|
|
1822
|
+
color: ${L.colorError};
|
|
1823
1823
|
}
|
|
1824
1824
|
|
|
1825
1825
|
ft-icon {
|
|
@@ -1829,26 +1829,26 @@
|
|
|
1829
1829
|
|
|
1830
1830
|
|
|
1831
1831
|
.ft-select--filled .ft-select--input-panel {
|
|
1832
|
-
border-radius: ${
|
|
1832
|
+
border-radius: ${L.borderRadiusS} ${L.borderRadiusS} 0 0;
|
|
1833
1833
|
}
|
|
1834
1834
|
|
|
1835
1835
|
.ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
|
|
1836
1836
|
align-self: stretch;
|
|
1837
|
-
padding-top: calc(${
|
|
1837
|
+
padding-top: calc(${L.labelSize} + 2 * ${L.verticalSpacing});
|
|
1838
1838
|
}
|
|
1839
1839
|
|
|
1840
1840
|
.ft-select--outlined .ft-select--input-panel {
|
|
1841
|
-
border-radius: ${
|
|
1841
|
+
border-radius: ${L.borderRadiusS};
|
|
1842
1842
|
}
|
|
1843
1843
|
|
|
1844
1844
|
.ft-select--options {
|
|
1845
1845
|
display: none;
|
|
1846
1846
|
position: absolute;
|
|
1847
1847
|
top: 100%;
|
|
1848
|
-
color: ${
|
|
1849
|
-
background: ${
|
|
1850
|
-
z-index: ${
|
|
1851
|
-
box-shadow: ${
|
|
1848
|
+
color: ${L.optionsColor};
|
|
1849
|
+
background: ${L.backgroundColor};
|
|
1850
|
+
z-index: ${L.optionsZIndex};
|
|
1851
|
+
box-shadow: ${L.elevation02};
|
|
1852
1852
|
width: max-content;
|
|
1853
1853
|
}
|
|
1854
1854
|
|
|
@@ -1858,26 +1858,26 @@
|
|
|
1858
1858
|
|
|
1859
1859
|
.ft-select--options-displayed .ft-select--options {
|
|
1860
1860
|
display: block;
|
|
1861
|
-
max-height: ${
|
|
1861
|
+
max-height: ${L.optionsHeight};
|
|
1862
1862
|
overflow-y: auto;
|
|
1863
1863
|
}
|
|
1864
1864
|
|
|
1865
1865
|
.ft-select--helper-text {
|
|
1866
|
-
padding: 0 ${
|
|
1867
|
-
color: ${
|
|
1866
|
+
padding: 0 ${L.horizontalSpacing};
|
|
1867
|
+
color: ${L.helperColor};
|
|
1868
1868
|
}
|
|
1869
1869
|
|
|
1870
1870
|
.ft-select--in-error .ft-select--helper-text {
|
|
1871
|
-
color: ${
|
|
1871
|
+
color: ${L.colorError};
|
|
1872
1872
|
}
|
|
1873
1873
|
|
|
1874
1874
|
.ft-select:not(.ft-select--has-option-selected) .ft-select--selected-option {
|
|
1875
1875
|
opacity: 0;
|
|
1876
1876
|
}
|
|
1877
|
-
`;var
|
|
1877
|
+
`;var lo=c(h());var ti=c(E()),Gd=c(nt()),ir=c(j());var _s=c(h());var qd=c(E()),Kd=qd.css`
|
|
1878
1878
|
.ft-select--option {
|
|
1879
|
-
${(0,
|
|
1880
|
-
${(0,
|
|
1879
|
+
${(0,_s.setVariable)(K.opacityContentOnSurfaceHover,"0.08")};
|
|
1880
|
+
${(0,_s.setVariable)(K.opacityContentOnSurfacePressed,"0.04")};
|
|
1881
1881
|
}
|
|
1882
1882
|
|
|
1883
1883
|
.ft-select--option > *:not(ft-ripple) {
|
|
@@ -1886,14 +1886,14 @@
|
|
|
1886
1886
|
|
|
1887
1887
|
.ft-select--option {
|
|
1888
1888
|
position: relative;
|
|
1889
|
-
padding: 4px ${
|
|
1889
|
+
padding: 4px ${L.horizontalSpacing};
|
|
1890
1890
|
min-height: 32px;
|
|
1891
1891
|
display: flex;
|
|
1892
1892
|
align-items: center;
|
|
1893
1893
|
}
|
|
1894
1894
|
|
|
1895
1895
|
.ft-select--option:hover {
|
|
1896
|
-
border-left: 2px ${
|
|
1896
|
+
border-left: 2px ${L.colorPrimary} solid;
|
|
1897
1897
|
}
|
|
1898
1898
|
|
|
1899
1899
|
.ft-select--option span {
|
|
@@ -1901,8 +1901,8 @@
|
|
|
1901
1901
|
overflow: hidden;
|
|
1902
1902
|
}
|
|
1903
1903
|
|
|
1904
|
-
`;var
|
|
1905
|
-
<div class="${(0,
|
|
1904
|
+
`;var qi=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 lo.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 ti.html`
|
|
1905
|
+
<div class="${(0,Gd.classMap)(i)}"
|
|
1906
1906
|
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,"")}"
|
|
1907
1907
|
tabindex="0"
|
|
1908
1908
|
aria-label="${this.label}"
|
|
@@ -1911,10 +1911,10 @@
|
|
|
1911
1911
|
<ft-ripple ?primary=${this.selected} ?activated=${this.selected}></ft-ripple>
|
|
1912
1912
|
<slot @slotchange=${this.onSlotChange}>
|
|
1913
1913
|
</slot>
|
|
1914
|
-
${this.isSlotEmpty?
|
|
1914
|
+
${this.isSlotEmpty?ti.html`<span>${this.label}</span>`:ti.html``}
|
|
1915
1915
|
</div>
|
|
1916
|
-
`}onSlotChange(){this.isSlotEmpty=(0,
|
|
1917
|
-
<div class="${(0,
|
|
1916
|
+
`}onSlotChange(){this.isSlotEmpty=(0,lo.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={...ti.LitElement.shadowRootOptions,delegatesFocus:!0};Le.styles=[Kd,Fr];qi([(0,ir.property)({type:String})],Le.prototype,"label",void 0);qi([(0,ir.property)({type:Object,converter:t=>t})],Le.prototype,"value",void 0);qi([(0,ir.property)({type:Boolean,reflect:!0})],Le.prototype,"selected",void 0);qi([(0,ir.query)("slot")],Le.prototype,"slotElement",void 0);qi([(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 ut.FtLitElement{constructor(){super(...arguments),this.label="",this.ariaLabel=null,this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.currentSearch="",this.lastSearchInputDate=new Date("01/01/1970"),this.isSlotEmpty=!0,this.hideOptions=e=>this.optionsDisplayed=this.optionsDisplayed&&e.composedPath().includes(this.container)}get firstOption(){return this.optionsList[0]}get optionsList(){let e=[...this.querySelectorAll("ft-select-option")];return e.length>0?e:[...this.shadowRoot.querySelectorAll("ft-select-option")]}get focusedOption(){return this.optionsList.find(e=>e.matches(":focus-within"))}get selectedOptionElement(){return this.optionsList.find(e=>e.selected)}get lastOption(){return(0,ut.last)(this.optionsList)}render(){var e,r,i,o,n;let s=this.hasOptionsMenuOpen,a=this.disabled||!this.hasOptions,l=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((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 ri.html`
|
|
1917
|
+
<div class="${(0,Yd.classMap)(u)}" part="container">
|
|
1918
1918
|
<div class="ft-select--main-panel" part="main-panel">
|
|
1919
1919
|
<ft-input-label text="${this.label}"
|
|
1920
1920
|
part="label"
|
|
@@ -1929,21 +1929,21 @@
|
|
|
1929
1929
|
tabindex="${a?"-1":"0"}"
|
|
1930
1930
|
@click=${()=>{this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=this.optionsDisplayed}}
|
|
1931
1931
|
@keydown=${this.onMainPanelKeyDown}
|
|
1932
|
-
aria-label="${
|
|
1933
|
-
aria-labelledby="${
|
|
1932
|
+
aria-label="${Qt(this.ariaLabel)}"
|
|
1933
|
+
aria-labelledby="${Wi(!this.ariaLabel,()=>"label")}"
|
|
1934
1934
|
aria-haspopup="listbox"
|
|
1935
1935
|
aria-expanded="${s}"
|
|
1936
|
-
aria-activedescendant="${
|
|
1936
|
+
aria-activedescendant="${Qt(this.getOptionId(this.selectedOption))}"
|
|
1937
1937
|
role="combobox">
|
|
1938
1938
|
<ft-ripple ?disabled=${a} ?activated=${!this.outlined}></ft-ripple>
|
|
1939
1939
|
<slot name="input-value">
|
|
1940
|
-
<ft-typography variant="${
|
|
1940
|
+
<ft-typography variant="${pe.body1}"
|
|
1941
1941
|
aria-hidden="${l?"false":"true"}"
|
|
1942
1942
|
class="ft-select--selected-option">
|
|
1943
|
-
${(
|
|
1943
|
+
${(n=(o=this.selectedOption)===null||o===void 0?void 0:o.label)!==null&&n!==void 0?n:this.label}
|
|
1944
1944
|
</ft-typography>
|
|
1945
1945
|
</slot>
|
|
1946
|
-
<ft-icon aria-hidden="true" .value=${s?
|
|
1946
|
+
<ft-icon aria-hidden="true" .value=${s?Ye.THIN_ARROW_UP:Ye.THIN_ARROW}></ft-icon>
|
|
1947
1947
|
</div>
|
|
1948
1948
|
<div class="ft-select--options"
|
|
1949
1949
|
part="options"
|
|
@@ -1954,49 +1954,49 @@
|
|
|
1954
1954
|
@option-change=${this.updateOptionsFromSlot}
|
|
1955
1955
|
>
|
|
1956
1956
|
</slot>
|
|
1957
|
-
${
|
|
1957
|
+
${Wi(this.isSlotEmpty,()=>(0,Xd.repeat)(this.options,d=>d.value,d=>this.renderOption(d)))}
|
|
1958
1958
|
</div>
|
|
1959
1959
|
</div>
|
|
1960
1960
|
<slot name="helper" part="helper">
|
|
1961
|
-
${this.helper?
|
|
1962
|
-
<ft-typography class="ft-select--helper-text" variant="${
|
|
1963
|
-
</ft-typography>`:
|
|
1961
|
+
${this.helper?ri.html`
|
|
1962
|
+
<ft-typography class="ft-select--helper-text" variant="${pe.caption}">${this.helper}
|
|
1963
|
+
</ft-typography>`:ri.nothing}
|
|
1964
1964
|
</slot>
|
|
1965
1965
|
</div>
|
|
1966
|
-
`}renderOption(e){let r=this.selectedOption===e;return
|
|
1966
|
+
`}renderOption(e){let r=this.selectedOption===e;return ri.html`
|
|
1967
1967
|
<ft-select-option
|
|
1968
1968
|
?selected=${r}
|
|
1969
1969
|
label="${e.label}"
|
|
1970
1970
|
.value=${e.value}
|
|
1971
1971
|
></ft-select-option>
|
|
1972
|
-
`}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
|
|
1972
|
+
`}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,ut.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,ut.isSlotEmptyOrWithoutContent)(this.optionsSlot);let i=(r=this.optionsSlot)===null||r===void 0?void 0:r.assignedElements().map(o=>o);i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(e){switch(e.key===" "&&(e.preventDefault(),e.stopPropagation()),e.key){case" ":case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var r,i;let o,n=this.focusedOption?this.optionsList.indexOf(this.focusedOption):0;switch(e.key){case" ":case"Enter":e.preventDefault(),e.stopPropagation(),this.onSelectOption(e),this.optionsDisplayed=!1,(r=this.mainPanel)===null||r===void 0||r.focus();break;case"Escape":this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),o=this.optionsList[(n-1+this.optionsList.length)%this.optionsList.length];break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),o=this.optionsList[(n+1)%this.optionsList.length];break;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(o=this.handleAlphanumericPress(e.key));break}o?.focus()}isKeyAlphanumeric(e){let r=e.charCodeAt(0);return r>47&&r<58||r>64&&r<91||r>96&&r<123}handleAlphanumericPress(e){let r=new Date;r.getTime()-this.lastSearchInputDate.getTime()>t.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let i=this.options.find(o=>{var n;return((n=o.label)===null||n===void 0?void 0:n.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});return this.lastSearchInputDate=r,i&&this.optionsList.find(o=>o.value===i.value)}getOptionId(e){if(!e)return;let r=this.options.findIndex(i=>(0,ut.deepEqual)(i.value,e.value));if(r!==-1)return`option-${r}`}onSelectOption(e){e.stopPropagation(),this.setValue(e.target.value)}setValue(e,r=!0){let i=this.options.find(o=>(0,ut.deepEqual)(o.value,e));i&&this.selectOption(i,r)}selectOption(e,r=!0){var i,o;if(!(0,ut.deepEqual)((i=this.selectedOption)===null||i===void 0?void 0:i.value,e?.value)){this.selectedOption=e;for(let n of this.options)n.selected=n===e;r&&this.dispatchEvent(new CustomEvent("change",{detail:(o=this.selectedOption)===null||o===void 0?void 0:o.value}))}this.optionsDisplayed=!1}};Z.elementDefinitions={"ft-input-label":xt,"ft-typography":q,"ft-ripple":M,"ft-icon":ne,"ft-select-option":Le};Z.searchTimeoutMilliseconds=2e3;Z.styles=[jt,Wd];Re([(0,ge.property)({type:String})],Z.prototype,"label",void 0);Re([(0,ge.property)({type:String})],Z.prototype,"ariaLabel",void 0);Re([(0,ge.property)({type:String})],Z.prototype,"helper",void 0);Re([(0,ge.property)({type:Boolean})],Z.prototype,"outlined",void 0);Re([(0,ge.property)({type:Boolean})],Z.prototype,"disabled",void 0);Re([(0,ge.property)({type:Boolean})],Z.prototype,"error",void 0);Re([(0,ge.property)({type:Boolean})],Z.prototype,"fixedMenuPosition",void 0);Re([(0,ge.property)({type:Array})],Z.prototype,"options",void 0);Re([(0,ge.state)()],Z.prototype,"selectedOption",void 0);Re([(0,ge.state)()],Z.prototype,"optionsDisplayed",void 0);Re([(0,ge.state)()],Z.prototype,"focusOptions",void 0);Re([(0,ge.state)()],Z.prototype,"currentSearch",void 0);Re([(0,ge.state)()],Z.prototype,"lastSearchInputDate",void 0);Re([(0,ge.query)(".ft-select")],Z.prototype,"container",void 0);Re([(0,ge.query)(".ft-select--options")],Z.prototype,"optionsMenu",void 0);Re([(0,ge.query)(".ft-select--input-panel")],Z.prototype,"mainPanel",void 0);Re([(0,ge.query)("slot:not([name])")],Z.prototype,"optionsSlot",void 0);var Qd=c(h());var Zd={"ft-select":Z,"ft-select-option":Le};(0,Qd.customElements)(Zd);var R=c(h()),Os=c(E());var Jd=c(E()),St=c(h()),Te={display:St.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:St.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:St.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:St.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:St.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:St.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:St.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:St.FtCssVariableFactory.external(St.designSystemVariables.borderRadiusM,"Design system")},ep=Jd.css`
|
|
1973
1973
|
:host {
|
|
1974
|
-
width: ${
|
|
1975
|
-
height: ${
|
|
1976
|
-
display: ${
|
|
1974
|
+
width: ${Te.width};
|
|
1975
|
+
height: ${Te.height};
|
|
1976
|
+
display: ${Te.display};
|
|
1977
1977
|
overflow: hidden;
|
|
1978
|
-
border-radius: ${
|
|
1978
|
+
border-radius: ${Te.borderRadiusM};
|
|
1979
1979
|
background: linear-gradient(
|
|
1980
1980
|
90deg,
|
|
1981
1981
|
transparent,
|
|
1982
|
-
${
|
|
1983
|
-
${
|
|
1984
|
-
transparent ${
|
|
1985
|
-
), ${
|
|
1982
|
+
${Te.glareColor} calc(0.45 * ${Te.glareWidth}),
|
|
1983
|
+
${Te.glareColor} calc(0.55 * ${Te.glareWidth}),
|
|
1984
|
+
transparent ${Te.glareWidth}
|
|
1985
|
+
), ${Te.backgroundColor};
|
|
1986
1986
|
background-repeat: repeat-y;
|
|
1987
1987
|
background-size: 100vw 100vh;
|
|
1988
1988
|
background-attachment: fixed;
|
|
1989
|
-
background-position: calc(${
|
|
1990
|
-
animation: shine ${
|
|
1989
|
+
background-position: calc(${Te.glareWidth} * -1) 0;
|
|
1990
|
+
animation: shine ${Te.animationDuration} infinite;
|
|
1991
1991
|
animation-timing-function: linear;
|
|
1992
1992
|
}
|
|
1993
1993
|
|
|
1994
1994
|
@keyframes shine {
|
|
1995
1995
|
to {
|
|
1996
|
-
background-position: calc(100vw + ${
|
|
1996
|
+
background-position: calc(100vw + ${Te.glareWidth}) 0, calc(${Te.glareWidth} * -1) 0;
|
|
1997
1997
|
}
|
|
1998
1998
|
}
|
|
1999
|
-
`;var
|
|
1999
|
+
`;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(B.color,"Button"),buttonRippleColor:R.FtCssVariableFactory.external(B.rippleColor,"Button"),activeItemBorderColor:R.FtCssVariableFactory.extend("--ft-search-bar-active-border-color","",R.designSystemVariables.colorPrimary)},tp=Os.css`
|
|
2000
2000
|
* {
|
|
2001
2001
|
box-sizing: border-box;
|
|
2002
2002
|
}
|
|
@@ -2005,7 +2005,7 @@
|
|
|
2005
2005
|
display: flex;
|
|
2006
2006
|
flex-direction: column;
|
|
2007
2007
|
gap: 8px;
|
|
2008
|
-
color: ${
|
|
2008
|
+
color: ${A.colorOnSurface};
|
|
2009
2009
|
outline: none;
|
|
2010
2010
|
}
|
|
2011
2011
|
|
|
@@ -2014,21 +2014,21 @@
|
|
|
2014
2014
|
}
|
|
2015
2015
|
|
|
2016
2016
|
.ft-search-bar--mobile-menu-open {
|
|
2017
|
-
position: ${
|
|
2018
|
-
top: ${
|
|
2019
|
-
bottom: ${
|
|
2020
|
-
left: ${
|
|
2021
|
-
right: ${
|
|
2022
|
-
z-index: ${
|
|
2017
|
+
position: ${A.mobileOpenPosition};
|
|
2018
|
+
top: ${A.mobileOpenTop};
|
|
2019
|
+
bottom: ${A.mobileOpenBottom};
|
|
2020
|
+
left: ${A.mobileOpenLeft};
|
|
2021
|
+
right: ${A.mobileOpenRight};
|
|
2022
|
+
z-index: ${A.floatingZIndex};
|
|
2023
2023
|
padding: 16px;
|
|
2024
2024
|
}
|
|
2025
2025
|
|
|
2026
2026
|
.ft-search-bar--mobile-menu-open:not(.ft-search-bar--forced-open) {
|
|
2027
|
-
background: ${
|
|
2027
|
+
background: ${A.colorSurface};
|
|
2028
2028
|
}
|
|
2029
2029
|
|
|
2030
2030
|
.ft-search-bar--mobile-menu-open.ft-search-bar--forced-open {
|
|
2031
|
-
position: ${
|
|
2031
|
+
position: ${A.mobileOpenPosition.get("static")};
|
|
2032
2032
|
}
|
|
2033
2033
|
|
|
2034
2034
|
.ft-search-bar {
|
|
@@ -2036,20 +2036,20 @@
|
|
|
2036
2036
|
display: flex;
|
|
2037
2037
|
flex-direction: row;
|
|
2038
2038
|
align-items: center;
|
|
2039
|
-
height: ${
|
|
2039
|
+
height: ${A.height};
|
|
2040
2040
|
|
|
2041
|
-
background: ${
|
|
2042
|
-
border: 1px solid ${
|
|
2043
|
-
border-radius: ${
|
|
2041
|
+
background: ${A.colorSurface};
|
|
2042
|
+
border: 1px solid ${A.colorOutline};
|
|
2043
|
+
border-radius: ${A.borderRadius};
|
|
2044
2044
|
}
|
|
2045
2045
|
|
|
2046
2046
|
.ft-search-bar--skeleton {
|
|
2047
|
-
${(0,
|
|
2048
|
-
${(0,
|
|
2047
|
+
${(0,R.setVariable)(Te.height,A.height)};
|
|
2048
|
+
${(0,R.setVariable)(Te.borderRadiusM,A.borderRadius)};
|
|
2049
2049
|
}
|
|
2050
2050
|
|
|
2051
2051
|
.ft-search-bar--floating-panel-open .ft-search-bar {
|
|
2052
|
-
border-radius: ${
|
|
2052
|
+
border-radius: ${A.borderRadius} ${A.borderRadius} 0 0;
|
|
2053
2053
|
}
|
|
2054
2054
|
|
|
2055
2055
|
.ft-search-bar--input-container {
|
|
@@ -2067,7 +2067,7 @@
|
|
|
2067
2067
|
align-self: stretch;
|
|
2068
2068
|
display: grid;
|
|
2069
2069
|
padding: 0 8px;
|
|
2070
|
-
border-radius: ${
|
|
2070
|
+
border-radius: ${A.borderRadius};
|
|
2071
2071
|
}
|
|
2072
2072
|
|
|
2073
2073
|
.ft-search-bar--dense .ft-search-bar--input-outline {
|
|
@@ -2076,7 +2076,7 @@
|
|
|
2076
2076
|
}
|
|
2077
2077
|
|
|
2078
2078
|
.ft-search-bar--input-container:focus-within .ft-search-bar--input-outline {
|
|
2079
|
-
outline: 2px solid ${
|
|
2079
|
+
outline: 2px solid ${A.colorPrimary};
|
|
2080
2080
|
}
|
|
2081
2081
|
|
|
2082
2082
|
.ft-search-bar--input {
|
|
@@ -2084,12 +2084,12 @@
|
|
|
2084
2084
|
flex-grow: 1;
|
|
2085
2085
|
border: none;
|
|
2086
2086
|
background-color: transparent;
|
|
2087
|
-
color: ${
|
|
2087
|
+
color: ${A.colorOnSurface};
|
|
2088
2088
|
outline: none;
|
|
2089
2089
|
}
|
|
2090
2090
|
|
|
2091
2091
|
.ft-search-bar--input::placeholder {
|
|
2092
|
-
color: ${
|
|
2092
|
+
color: ${A.colorOnSurfaceMedium};
|
|
2093
2093
|
}
|
|
2094
2094
|
|
|
2095
2095
|
.ft-search-bar--actions {
|
|
@@ -2103,12 +2103,12 @@
|
|
|
2103
2103
|
.ft-search-bar > ft-button,
|
|
2104
2104
|
.ft-search-bar--actions ft-button {
|
|
2105
2105
|
flex-shrink: 0;
|
|
2106
|
-
${(0,
|
|
2106
|
+
${(0,R.setVariable)(B.backgroundColor,"transparent")};
|
|
2107
2107
|
}
|
|
2108
2108
|
|
|
2109
2109
|
.ft-search-bar--left-action {
|
|
2110
|
-
${(0,
|
|
2111
|
-
border-right: 1px solid ${
|
|
2110
|
+
${(0,R.setVariable)(B.borderRadius,`calc(${A.borderRadius} - 1px) 0 0 calc(${A.borderRadius} - 1px)`)};
|
|
2111
|
+
border-right: 1px solid ${A.colorOutline};
|
|
2112
2112
|
height: 100%;
|
|
2113
2113
|
}
|
|
2114
2114
|
|
|
@@ -2117,7 +2117,7 @@
|
|
|
2117
2117
|
}
|
|
2118
2118
|
|
|
2119
2119
|
.ft-search-bar--floating-panel-open .ft-search-bar--left-action {
|
|
2120
|
-
${(0,
|
|
2120
|
+
${(0,R.setVariable)(B.borderRadius,`calc(${A.borderRadius} - 1px) 0 0 0`)};
|
|
2121
2121
|
}
|
|
2122
2122
|
|
|
2123
2123
|
.ft-search-bar .ft-search-bar--launch-search,
|
|
@@ -2127,13 +2127,13 @@
|
|
|
2127
2127
|
|
|
2128
2128
|
.ft-search-bar--separator {
|
|
2129
2129
|
height: 20px;
|
|
2130
|
-
border-right: 1px solid ${
|
|
2130
|
+
border-right: 1px solid ${A.colorOutline};
|
|
2131
2131
|
}
|
|
2132
2132
|
|
|
2133
2133
|
.ft-search-bar--left-action.ft-search-bar--content-locale {
|
|
2134
|
-
${(0,
|
|
2135
|
-
${(0,
|
|
2136
|
-
${(0,
|
|
2134
|
+
${(0,R.setVariable)(I.borderColor,"transparent")};
|
|
2135
|
+
${(0,R.setVariable)(I.borderRadius,`calc(${A.borderRadius} - 1px)`)};
|
|
2136
|
+
${(0,R.setVariable)(L.selectedOptionColor,A.buttonColor)};
|
|
2137
2137
|
}
|
|
2138
2138
|
|
|
2139
2139
|
.ft-search-bar--left-action.ft-search-bar--content-locale,
|
|
@@ -2150,7 +2150,7 @@
|
|
|
2150
2150
|
}
|
|
2151
2151
|
|
|
2152
2152
|
.ft-search-bar--left-action.ft-search-bar--content-locale::part(selected-value) {
|
|
2153
|
-
border-radius: calc(${
|
|
2153
|
+
border-radius: calc(${A.borderRadius} - 1px) 0 0 calc(${A.borderRadius} - 1px);
|
|
2154
2154
|
}
|
|
2155
2155
|
|
|
2156
2156
|
[part="content-locale-selector"] {
|
|
@@ -2159,7 +2159,7 @@
|
|
|
2159
2159
|
flex-direction: column;
|
|
2160
2160
|
max-height: 100%;
|
|
2161
2161
|
max-width: 100%;
|
|
2162
|
-
color: ${
|
|
2162
|
+
color: ${He.colorOnSurface};
|
|
2163
2163
|
}
|
|
2164
2164
|
|
|
2165
2165
|
[part="content-locale-selector"] > ft-radio-group {
|
|
@@ -2177,7 +2177,7 @@
|
|
|
2177
2177
|
flex-shrink: 0;
|
|
2178
2178
|
padding: 0 10px;
|
|
2179
2179
|
margin-bottom: 8px;
|
|
2180
|
-
${(0,
|
|
2180
|
+
${(0,R.setVariable)(b.fontSize,"14px")};
|
|
2181
2181
|
}
|
|
2182
2182
|
|
|
2183
2183
|
[part="content-locale-selector-label"] {
|
|
@@ -2185,18 +2185,18 @@
|
|
|
2185
2185
|
flex-shrink: 1;
|
|
2186
2186
|
flex-grow: 1;
|
|
2187
2187
|
word-break: break-word;
|
|
2188
|
-
${(0,
|
|
2189
|
-
${(0,
|
|
2188
|
+
${(0,R.setVariable)(b.lineHeight,"22px")};
|
|
2189
|
+
${(0,R.setVariable)(b.fontWeight,"bold")};
|
|
2190
2190
|
}
|
|
2191
2191
|
|
|
2192
|
-
`,
|
|
2192
|
+
`,rp=Os.css`
|
|
2193
2193
|
.ft-search-bar--presets {
|
|
2194
2194
|
min-width: 200px;
|
|
2195
2195
|
}
|
|
2196
2196
|
|
|
2197
2197
|
.ft-search-bar--desktop-menu .ft-search-bar--presets {
|
|
2198
2198
|
margin-right: auto;
|
|
2199
|
-
${(0,
|
|
2199
|
+
${(0,R.setVariable)(L.optionsZIndex,"2")};
|
|
2200
2200
|
}
|
|
2201
2201
|
|
|
2202
2202
|
.ft-search-bar--desktop-menu {
|
|
@@ -2249,8 +2249,8 @@
|
|
|
2249
2249
|
|
|
2250
2250
|
.ft-search-bar--desktop-menu .ft-search-bar--filters-container {
|
|
2251
2251
|
display: block;
|
|
2252
|
-
height: ${
|
|
2253
|
-
${(0,
|
|
2252
|
+
height: ${A.desktopFiltersHeight};
|
|
2253
|
+
${(0,R.setVariable)(De.gap,"16px")};
|
|
2254
2254
|
}
|
|
2255
2255
|
|
|
2256
2256
|
.ft-search-bar--desktop-menu ft-filter {
|
|
@@ -2265,15 +2265,15 @@
|
|
|
2265
2265
|
}
|
|
2266
2266
|
|
|
2267
2267
|
.ft-search-bar--desktop-menu [data-filters-count="2"] ft-filter {
|
|
2268
|
-
max-width: calc(50% - ${
|
|
2268
|
+
max-width: calc(50% - ${De.gap} / 2);
|
|
2269
2269
|
}
|
|
2270
2270
|
|
|
2271
2271
|
.ft-search-bar--desktop-menu [data-filters-count="3"] ft-filter {
|
|
2272
|
-
max-width: max(250px, calc(33% - 2 * ${
|
|
2272
|
+
max-width: max(250px, calc(33% - 2 * ${De.gap} / 3));
|
|
2273
2273
|
}
|
|
2274
2274
|
|
|
2275
2275
|
.ft-search-bar--desktop-menu [data-filters-count="4"] ft-filter {
|
|
2276
|
-
max-width: max(250px, calc(25% - 3 * ${
|
|
2276
|
+
max-width: max(250px, calc(25% - 3 * ${De.gap} / 4));
|
|
2277
2277
|
}
|
|
2278
2278
|
|
|
2279
2279
|
.ft-search-bar--hierarchical-filter {
|
|
@@ -2330,7 +2330,7 @@
|
|
|
2330
2330
|
.ft-search-bar--filter-label-values {
|
|
2331
2331
|
flex-grow: 0;
|
|
2332
2332
|
flex-shrink: 1;
|
|
2333
|
-
color: ${
|
|
2333
|
+
color: ${A.colorOnSurfaceMedium};
|
|
2334
2334
|
}
|
|
2335
2335
|
|
|
2336
2336
|
ft-accordion-item::part(toggle) {
|
|
@@ -2350,16 +2350,16 @@
|
|
|
2350
2350
|
.ft-search-bar--desktop-menu .ft-search-bar--launch-search {
|
|
2351
2351
|
margin: 0;
|
|
2352
2352
|
}
|
|
2353
|
-
`;var
|
|
2354
|
-
`}};
|
|
2353
|
+
`;var ip=c(E()),np=c(h());var nr=class extends np.FtLitElement{render(){return ip.html`
|
|
2354
|
+
`}};nr.elementDefinitions={};nr.styles=ep;var sp=c(h());var op={"ft-skeleton":nr};(0,sp.customElements)(op);var $t=c(E()),Rs=c(sr());var ii=c(h());var Pt=class{constructor(e,r=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new ii.Debouncer(r)}render(){let e=this.recentSearchesMatchingQuery;return $t.html`
|
|
2355
2355
|
<div class="ft-search-bar--suggestions ft-word-wrap ${this.shouldDisplaySuggestions?"ft-search-bar--suggestions-not-empty":""}"
|
|
2356
2356
|
id="${this.listboxId}"
|
|
2357
2357
|
role="listbox"
|
|
2358
2358
|
aria-label="${this.searchBar.labelResolver.resolve("suggestionsAriaLabel")}"
|
|
2359
2359
|
part="suggestions-container">
|
|
2360
|
-
${(0,
|
|
2360
|
+
${(0,Rs.repeat)(e.slice(0,5),r=>r,(r,i)=>$t.html`
|
|
2361
2361
|
<div part="suggestion-container"
|
|
2362
|
-
class="${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)?"ft-search-bar--suggestions-selected"
|
|
2362
|
+
class="${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)?"ft-search-bar--suggestions-selected":$t.nothing}">
|
|
2363
2363
|
<a href="${this.getRequestWithQuery(r)}"
|
|
2364
2364
|
part="suggestions"
|
|
2365
2365
|
class="ft-search-bar--suggestion ft-search-bar--recent-search"
|
|
@@ -2368,7 +2368,7 @@
|
|
|
2368
2368
|
aria-selected="${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)}"
|
|
2369
2369
|
tabindex="-1"
|
|
2370
2370
|
aria-label="${r}"
|
|
2371
|
-
@click=${
|
|
2371
|
+
@click=${o=>this.onSuggestClick(o,r)}>
|
|
2372
2372
|
<ft-ripple ?activated=${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)&&!this.searchBar.selectedSuggestRemoveRecent}></ft-ripple>
|
|
2373
2373
|
<ft-icon variant="material" value="history" part="suggestion-icon"></ft-icon>
|
|
2374
2374
|
<ft-typography variant="body1">${r}</ft-typography>
|
|
@@ -2382,13 +2382,13 @@
|
|
|
2382
2382
|
tooltipPosition="left"
|
|
2383
2383
|
tabindex="-1"
|
|
2384
2384
|
?activated=${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)&&this.searchBar.selectedSuggestRemoveRecent}
|
|
2385
|
-
@click=${
|
|
2385
|
+
@click=${o=>this.removeRecentSearch(o,r)}>
|
|
2386
2386
|
</ft-button>
|
|
2387
2387
|
</div>
|
|
2388
2388
|
`)}
|
|
2389
|
-
${(0,
|
|
2389
|
+
${(0,Rs.repeat)(this.searchBar.suggestions,r=>r.value,(r,i)=>$t.html`
|
|
2390
2390
|
<div part="suggestion-container"
|
|
2391
|
-
class="${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)?"ft-search-bar--suggestions-selected"
|
|
2391
|
+
class="${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)?"ft-search-bar--suggestions-selected":$t.nothing}">
|
|
2392
2392
|
<a href="${this.getRequestWithQuery(r.value)}"
|
|
2393
2393
|
part="suggestions"
|
|
2394
2394
|
class="ft-search-bar--suggestion"
|
|
@@ -2396,7 +2396,7 @@
|
|
|
2396
2396
|
aria-selected="${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)}"
|
|
2397
2397
|
role="option"
|
|
2398
2398
|
tabindex="-1"
|
|
2399
|
-
@click=${
|
|
2399
|
+
@click=${o=>this.onSuggestClick(o,r.value)}>
|
|
2400
2400
|
<ft-ripple ?activated=${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)}></ft-ripple>
|
|
2401
2401
|
${this.getIcon(r)}
|
|
2402
2402
|
<ft-typography variant="body1">${r.value}</ft-typography>
|
|
@@ -2404,9 +2404,9 @@
|
|
|
2404
2404
|
</div>
|
|
2405
2405
|
`)}
|
|
2406
2406
|
</div>
|
|
2407
|
-
`}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"?
|
|
2407
|
+
`}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"?yt.file_format:yt.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?Ye.BOOK:Ye.ARTICLE;break;case"DOCUMENT":i=Du(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 $t.html`
|
|
2408
2408
|
<ft-icon .variant=${r} .value=${i} part="suggestion-icon"></ft-icon>
|
|
2409
|
-
`}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()))}}
|
|
2409
|
+
`}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=[ii.wordWrap,$t.css`
|
|
2410
2410
|
.ft-search-bar--mobile .ft-search-bar--suggestions {
|
|
2411
2411
|
flex-grow: 1;
|
|
2412
2412
|
flex-shrink: 1;
|
|
@@ -2415,7 +2415,7 @@
|
|
|
2415
2415
|
}
|
|
2416
2416
|
|
|
2417
2417
|
.ft-search-bar--mobile-menu-open .ft-search-bar--suggestions {
|
|
2418
|
-
border-top: 1px solid ${
|
|
2418
|
+
border-top: 1px solid ${A.colorOutline};
|
|
2419
2419
|
}
|
|
2420
2420
|
|
|
2421
2421
|
.ft-search-bar--mobile-menu-open .ft-search-bar--suggestions {
|
|
@@ -2425,15 +2425,15 @@
|
|
|
2425
2425
|
.ft-search-bar--floating-panel,
|
|
2426
2426
|
.ft-search-bar--desktop .ft-search-bar--suggestions {
|
|
2427
2427
|
position: absolute;
|
|
2428
|
-
z-index: ${
|
|
2428
|
+
z-index: ${A.floatingZIndex};
|
|
2429
2429
|
top: 100%;
|
|
2430
2430
|
left: -1px;
|
|
2431
2431
|
right: -1px;
|
|
2432
2432
|
display: none;
|
|
2433
|
-
background: ${
|
|
2434
|
-
border: 1px solid ${
|
|
2435
|
-
border-radius: 0 0 ${
|
|
2436
|
-
box-shadow: ${
|
|
2433
|
+
background: ${A.colorSurface};
|
|
2434
|
+
border: 1px solid ${A.colorOutline};
|
|
2435
|
+
border-radius: 0 0 ${A.borderRadius} ${A.borderRadius};
|
|
2436
|
+
box-shadow: ${A.elevation02};
|
|
2437
2437
|
outline: none;
|
|
2438
2438
|
}
|
|
2439
2439
|
|
|
@@ -2452,10 +2452,10 @@
|
|
|
2452
2452
|
|
|
2453
2453
|
[part~="suggestion-container"].ft-search-bar--suggestions-selected {
|
|
2454
2454
|
outline: none;
|
|
2455
|
-
box-shadow: inset 3px 0 0 ${
|
|
2455
|
+
box-shadow: inset 3px 0 0 ${A.activeItemBorderColor};
|
|
2456
2456
|
}
|
|
2457
2457
|
[part~="suggestion-container"]:hover {
|
|
2458
|
-
box-shadow: inset 3px 0 0 ${
|
|
2458
|
+
box-shadow: inset 3px 0 0 ${A.activeItemBorderColor};
|
|
2459
2459
|
}
|
|
2460
2460
|
|
|
2461
2461
|
[part~="remove-suggestion"] {
|
|
@@ -2471,7 +2471,7 @@
|
|
|
2471
2471
|
gap: 8px;
|
|
2472
2472
|
cursor: pointer;
|
|
2473
2473
|
flex-grow: 1;
|
|
2474
|
-
color: ${
|
|
2474
|
+
color: ${A.colorOnSurface};
|
|
2475
2475
|
min-height: 52px;
|
|
2476
2476
|
}
|
|
2477
2477
|
|
|
@@ -2484,7 +2484,7 @@
|
|
|
2484
2484
|
}
|
|
2485
2485
|
|
|
2486
2486
|
.ft-search-bar--recent-search + .ft-search-bar--suggestion:not(.ft-search-bar--recent-search) {
|
|
2487
|
-
border-top: 1px solid ${
|
|
2487
|
+
border-top: 1px solid ${A.colorOutline};
|
|
2488
2488
|
}
|
|
2489
2489
|
|
|
2490
2490
|
.ft-search-bar--suggestion ft-typography {
|
|
@@ -2494,10 +2494,10 @@
|
|
|
2494
2494
|
}
|
|
2495
2495
|
|
|
2496
2496
|
ft-ripple {
|
|
2497
|
-
${(0,
|
|
2497
|
+
${(0,ii.setVariable)(K.opacityContentOnSurfaceHover,K.opacityContentOnSurfaceSelected)}
|
|
2498
2498
|
}
|
|
2499
|
-
`];var
|
|
2500
|
-
${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?
|
|
2499
|
+
`];var Ie=c(E()),Ts=c(sr());var co=c(h());var Dt=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return Ie.html``;let e=this.searchBar.isMobile(),r=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),i=Ie.html`
|
|
2500
|
+
${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?Ie.html`
|
|
2501
2501
|
<ft-chip part="selected-filters selected-filter-ft-locale"
|
|
2502
2502
|
?dense=${this.searchBar.dense&&!e}
|
|
2503
2503
|
?clickable=${e}
|
|
@@ -2507,46 +2507,46 @@
|
|
|
2507
2507
|
${this.getLocaleLabel(this.searchBar.contentLocale)}
|
|
2508
2508
|
</ft-chip>
|
|
2509
2509
|
`:null}
|
|
2510
|
-
${(0,
|
|
2510
|
+
${(0,Ts.repeat)(this.searchBar.facets,o=>o.key,o=>{let n=Sa(o);return(0,Ts.repeat)(n,s=>{let a=o.label+": "+ba(s),l=o.key.replace(":","-"),u=Ie.html`
|
|
2511
2511
|
<ft-chip
|
|
2512
2512
|
part="selected-filters selected-filter-${l}"
|
|
2513
2513
|
?dense=${this.searchBar.dense&&!e}
|
|
2514
2514
|
?clickable=${e}
|
|
2515
2515
|
?removable=${!e}
|
|
2516
|
-
icon="${e?
|
|
2516
|
+
icon="${e?Ie.nothing:"close"}"
|
|
2517
2517
|
label="${a}"
|
|
2518
|
-
title="${r?a:
|
|
2519
|
-
@click=${()=>this.openMobileFilters(
|
|
2520
|
-
@icon-click=${()=>this.searchBar.setFilter(
|
|
2521
|
-
data-key="${
|
|
2518
|
+
title="${r?a:Ie.nothing}"
|
|
2519
|
+
@click=${()=>this.openMobileFilters(o.key)}
|
|
2520
|
+
@icon-click=${()=>this.searchBar.setFilter(o.key,n.filter(d=>d!==s))}
|
|
2521
|
+
data-key="${o.key}"
|
|
2522
2522
|
data-value="${s}">
|
|
2523
|
-
${
|
|
2523
|
+
${ya(s)}
|
|
2524
2524
|
</ft-chip>
|
|
2525
|
-
`;return r?
|
|
2525
|
+
`;return r?u:Ie.html`
|
|
2526
2526
|
<ft-tooltip inline text="${a}">
|
|
2527
|
-
${
|
|
2527
|
+
${u}
|
|
2528
2528
|
</ft-tooltip>
|
|
2529
2529
|
`})})}
|
|
2530
|
-
${e?
|
|
2530
|
+
${e?Ie.html`
|
|
2531
2531
|
<ft-chip part="selected-filters mobile-filters-opener"
|
|
2532
2532
|
icon="plus"
|
|
2533
2533
|
clickable
|
|
2534
2534
|
@click=${()=>{this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0}}>
|
|
2535
2535
|
${this.searchBar.labelResolver.resolve("filtersButton")}
|
|
2536
2536
|
</ft-chip>
|
|
2537
|
-
`:
|
|
2538
|
-
`;return r?
|
|
2537
|
+
`:Ie.nothing}
|
|
2538
|
+
`;return r?Ie.html`
|
|
2539
2539
|
<ft-snap-scroll horizontal controls hideScrollbar limitSize
|
|
2540
2540
|
class="ft-search-bar--selected-filters"
|
|
2541
2541
|
part="selected-filters-container"
|
|
2542
2542
|
exportpartsPrefix="selected-filters-container">
|
|
2543
2543
|
${i}
|
|
2544
2544
|
</ft-snap-scroll>
|
|
2545
|
-
`:
|
|
2545
|
+
`:Ie.html`
|
|
2546
2546
|
<div class="ft-search-bar--selected-filters" part="selected-filters-container">
|
|
2547
2547
|
${i}
|
|
2548
2548
|
</div>
|
|
2549
|
-
`}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var r;return(r=this.searchBar.availableContentLocales.filter(i=>{var
|
|
2549
|
+
`}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var r;return(r=this.searchBar.availableContentLocales.filter(i=>{var o;return((o=i.lang)!==null&&o!==void 0?o:"").toLowerCase()===(e??"").toLowerCase()}).map(i=>i.label).pop())!==null&&r!==void 0?r:e}};Dt.styles=Ie.css`
|
|
2550
2550
|
.ft-search-bar--selected-filters:not(ft-snap-scroll) {
|
|
2551
2551
|
flex-shrink: 0;
|
|
2552
2552
|
display: flex;
|
|
@@ -2557,7 +2557,7 @@
|
|
|
2557
2557
|
|
|
2558
2558
|
ft-snap-scroll.ft-search-bar--selected-filters {
|
|
2559
2559
|
overflow: hidden;
|
|
2560
|
-
${(0,
|
|
2560
|
+
${(0,co.setVariable)(De.gap,"4px")};
|
|
2561
2561
|
}
|
|
2562
2562
|
|
|
2563
2563
|
ft-snap-scroll.ft-search-bar--selected-filters::part(content) {
|
|
@@ -2565,8 +2565,8 @@
|
|
|
2565
2565
|
}
|
|
2566
2566
|
|
|
2567
2567
|
.ft-search-bar--desktop ft-snap-scroll.ft-search-bar--selected-filters {
|
|
2568
|
-
${(0,
|
|
2569
|
-
${(0,
|
|
2568
|
+
${(0,co.setVariable)(_e.iconSize,"17px")};
|
|
2569
|
+
${(0,co.setVariable)(_e.fontSize,"12px")};
|
|
2570
2570
|
}
|
|
2571
2571
|
|
|
2572
2572
|
.ft-search-bar--selected-filters * {
|
|
@@ -2576,8 +2576,8 @@
|
|
|
2576
2576
|
.ft-search-bar--selected-filters ft-chip {
|
|
2577
2577
|
flex-grow: 0;
|
|
2578
2578
|
}
|
|
2579
|
-
`;var Et=
|
|
2580
|
-
<div class="${(0,
|
|
2579
|
+
`;var Et=c(E());var ap=c(nt()),lp=c(h()),oh=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},ni=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new Dt(e),this.suggestManager=i??new Pt(e)}render(){var e;let r={"ft-search-bar--container":!0,"ft-search-bar--mobile":!0,"ft-search-bar--mobile-menu-open":this.searchBar.isMobileMenuOpen(),"ft-search-bar--forced-open":this.searchBar.forceMobileMenuOpen};return Et.html`
|
|
2580
|
+
<div class="${(0,ap.classMap)(r)}" part="container" tabindex="-1">
|
|
2581
2581
|
<div class="ft-search-bar" role="search">
|
|
2582
2582
|
<div class="ft-search-bar--input-container" part="input-container">
|
|
2583
2583
|
<div class="ft-search-bar--input-outline" part="input-outline">
|
|
@@ -2633,21 +2633,21 @@
|
|
|
2633
2633
|
@click=${()=>{var r;return this.searchBar.isMobileMenuOpen()?this.searchBar.onLaunchSearch():(r=this.searchBar.input)===null||r===void 0?void 0:r.focus()}}
|
|
2634
2634
|
></ft-button>
|
|
2635
2635
|
</div>
|
|
2636
|
-
`}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}};
|
|
2636
|
+
`}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}};ni.styles=Et.css`
|
|
2637
2637
|
|
|
2638
|
-
`;
|
|
2639
|
-
<div class="${(0,
|
|
2638
|
+
`;oh([(0,lp.ignoreComposingEvents)()],ni.prototype,"onSearchBarKeyDown",null);var Ne=c(E()),cp=c(sr());var up=c(nt()),dp=c(h()),sh=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},oi=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new Dt(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 Ne.html`
|
|
2639
|
+
<div class="${(0,up.classMap)(r)}" part="container" tabindex="-1">
|
|
2640
2640
|
<div class="ft-search-bar" part="search-bar" role="search">
|
|
2641
2641
|
${this.renderSearchBarLeftAction()}
|
|
2642
2642
|
<div class="ft-search-bar--input-container" part="input-container" tabindex="-1">
|
|
2643
2643
|
<div class="ft-search-bar--input-outline" part="input-outline">
|
|
2644
|
-
${this.searchBar.dense?this.selectedFacetsManager.render():
|
|
2644
|
+
${this.searchBar.dense?this.selectedFacetsManager.render():Ne.nothing}
|
|
2645
2645
|
<input class="ft-search-bar--input ft-typography--body2"
|
|
2646
2646
|
role="combobox"
|
|
2647
2647
|
aria-autocomplete="list"
|
|
2648
2648
|
aria-controls="${this.suggestManager.listboxId}"
|
|
2649
2649
|
aria-expanded="${this.searchBar.displaySuggestListbox}"
|
|
2650
|
-
aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:
|
|
2650
|
+
aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:Ne.nothing}"
|
|
2651
2651
|
part="input"
|
|
2652
2652
|
type="search"
|
|
2653
2653
|
placeholder="${this.searchBar.labelResolver.resolve("inputPlaceHolder")}"
|
|
@@ -2662,9 +2662,9 @@
|
|
|
2662
2662
|
${this.renderDesktopSearchBarButtons()}
|
|
2663
2663
|
${this.searchBar.renderDesktopFloatingMenu()}
|
|
2664
2664
|
</div>
|
|
2665
|
-
${this.searchBar.dense?
|
|
2665
|
+
${this.searchBar.dense?Ne.nothing:this.searchBar.forceMenuOpen?this.searchBar.renderDesktopMenu():this.selectedFacetsManager.render()}
|
|
2666
2666
|
</div>
|
|
2667
|
-
`}renderSearchBarLeftAction(){return this.searchBar.hasFacets()?this.searchBar.forceMenuOpen?
|
|
2667
|
+
`}renderSearchBarLeftAction(){return this.searchBar.hasFacets()?this.searchBar.forceMenuOpen?Ne.nothing:Ne.html`
|
|
2668
2668
|
<ft-button class="ft-search-bar--filters-opener ft-search-bar--left-action"
|
|
2669
2669
|
part="filters-opener"
|
|
2670
2670
|
trailingIcon
|
|
@@ -2676,24 +2676,24 @@
|
|
|
2676
2676
|
>
|
|
2677
2677
|
${this.searchBar.labelResolver.resolve("filtersButton")}
|
|
2678
2678
|
</ft-button>
|
|
2679
|
-
`:this.searchBar.hasLocaleSelector()?
|
|
2679
|
+
`:this.searchBar.hasLocaleSelector()?Ne.html`
|
|
2680
2680
|
<ft-select outlined
|
|
2681
2681
|
class="ft-search-bar--content-locale ft-search-bar--left-action"
|
|
2682
2682
|
part="content-locale select-ft-locale"
|
|
2683
2683
|
ariaLabel="${this.searchBar.labelResolver.resolve("selectLocale")}"
|
|
2684
2684
|
.exportpartsPrefixes=${["content-locale","select-ft-locale"]}
|
|
2685
2685
|
@change=${e=>this.searchBar.contentLocale=e.detail==null?void 0:e.detail}>
|
|
2686
|
-
${(0,
|
|
2686
|
+
${(0,cp.repeat)(this.searchBar.availableContentLocales,e=>e.lang,e=>Ne.html`
|
|
2687
2687
|
<ft-select-option .value=${e.lang}
|
|
2688
2688
|
label="${e.label}"
|
|
2689
2689
|
?selected=${e.lang==this.searchBar.contentLocale}>
|
|
2690
2690
|
</ft-select-option>
|
|
2691
2691
|
`)}
|
|
2692
2692
|
</ft-select>
|
|
2693
|
-
`:
|
|
2693
|
+
`:Ne.nothing}renderDesktopSearchBarButtons(){return Ne.html`
|
|
2694
2694
|
<div class="ft-search-bar--actions"
|
|
2695
2695
|
part="search-bar-actions">
|
|
2696
|
-
${this.searchBar.query?
|
|
2696
|
+
${this.searchBar.query?Ne.html`
|
|
2697
2697
|
<ft-button class="ft-search-bar--clear-query"
|
|
2698
2698
|
part="clear-query"
|
|
2699
2699
|
icon="close"
|
|
@@ -2712,49 +2712,49 @@
|
|
|
2712
2712
|
@click=${()=>this.searchBar.onLaunchSearch()}
|
|
2713
2713
|
></ft-button>
|
|
2714
2714
|
</div>
|
|
2715
|
-
`}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)}};
|
|
2715
|
+
`}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)}};oi.styles=Ne.css`
|
|
2716
2716
|
|
|
2717
|
-
`;
|
|
2717
|
+
`;sh([(0,dp.ignoreComposingEvents)()],oi.prototype,"onSearchBarKeyDown",null);var N=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n};window.fluidtopics==null&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");var pp={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"},ks=class extends CustomEvent{constructor(e){super("change",{detail:e})}},ah=()=>{},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(pp,{}),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 Dt(this),this.desktopSearchBarManager=new oi(this),this.mobileSearchBarManager=new ni(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`
|
|
2718
2718
|
<ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
|
|
2719
2719
|
<div class="sr-only" aria-live="polite" aria-atomic="true">
|
|
2720
2720
|
${this.renderLiveText()}
|
|
2721
2721
|
</div>
|
|
2722
2722
|
${this.renderSearchBar()}
|
|
2723
|
-
`}renderLiveText(){return this.suggestManager.shouldDisplaySuggestions?this.labelResolver.resolve("ariaLiveSuggestions",this.suggestManager.recentSearchesMatchingQuery.length,this.suggestions.length):""}renderSearchBar(){return this.facetsInitialized&&this.availableContentLocalesInitialized?this.isMobile()?this.mobileSearchBarManager.render():this.desktopSearchBarManager.render():
|
|
2723
|
+
`}renderLiveText(){return this.suggestManager.shouldDisplaySuggestions?this.labelResolver.resolve("ariaLiveSuggestions",this.suggestManager.recentSearchesMatchingQuery.length,this.suggestions.length):""}renderSearchBar(){return this.facetsInitialized&&this.availableContentLocalesInitialized?this.isMobile()?this.mobileSearchBarManager.render():this.desktopSearchBarManager.render():V.html`
|
|
2724
2724
|
<ft-skeleton class="ft-search-bar--container ft-search-bar--skeleton"
|
|
2725
2725
|
part="loader"
|
|
2726
2726
|
tabindex="-1"></ft-skeleton>
|
|
2727
|
-
`}renderMobileFacets(){let e=this.availableContentLocales.filter(r=>r.lang===this.contentLocale).pop();return
|
|
2727
|
+
`}renderMobileFacets(){let e=this.availableContentLocales.filter(r=>r.lang===this.contentLocale).pop();return V.html`
|
|
2728
2728
|
<ft-accordion class="ft-search-bar--filters-container">
|
|
2729
|
-
${this.hasLocaleSelector()?
|
|
2729
|
+
${this.hasLocaleSelector()?V.html`
|
|
2730
2730
|
<ft-accordion-item data-facet-key="ft:locale">
|
|
2731
2731
|
<div class="ft-search-bar--filter-label" slot="toggle">
|
|
2732
2732
|
<ft-typography variant="button">${this.labelResolver.resolve("contentLocaleSelector")}
|
|
2733
2733
|
</ft-typography>
|
|
2734
|
-
${e?.label?
|
|
2734
|
+
${e?.label?V.html`
|
|
2735
2735
|
<ft-typography class="ft-search-bar--filter-label-values" variant="body2">
|
|
2736
2736
|
${e?.label}
|
|
2737
2737
|
</ft-typography>
|
|
2738
|
-
`:
|
|
2738
|
+
`:V.nothing}
|
|
2739
2739
|
</div>
|
|
2740
2740
|
<div part="content-locale-selector">
|
|
2741
2741
|
${this.getContentLocaleRadioGroup()}
|
|
2742
2742
|
</div>
|
|
2743
2743
|
</ft-accordion-item>
|
|
2744
2744
|
`:null}
|
|
2745
|
-
${(0,
|
|
2745
|
+
${(0,Ki.repeat)(this.facets,r=>r.key,r=>{let i=_o(r),o=r.key.replace(":","-"),n=xa(i);return r.rootNodes.length>0?V.html`
|
|
2746
2746
|
<ft-accordion-item data-facet-key="${r.key}">
|
|
2747
2747
|
<div class="ft-search-bar--filter-label" slot="toggle">
|
|
2748
2748
|
<ft-typography variant="button">${r.label}</ft-typography>
|
|
2749
|
-
${
|
|
2749
|
+
${n.length>0?V.html`
|
|
2750
2750
|
<ft-typography class="ft-search-bar--filter-label-values" variant="body2">
|
|
2751
|
-
${
|
|
2751
|
+
${n.join(", ")}
|
|
2752
2752
|
</ft-typography>
|
|
2753
|
-
`:
|
|
2753
|
+
`:V.nothing}
|
|
2754
2754
|
</div>
|
|
2755
2755
|
<ft-filter
|
|
2756
|
-
part="filters filter filter-${
|
|
2757
|
-
.exportpartsPrefixes=${["filter","filter-"+
|
|
2756
|
+
part="filters filter filter-${o}"
|
|
2757
|
+
.exportpartsPrefixes=${["filter","filter-"+o]}
|
|
2758
2758
|
id="${i.id}"
|
|
2759
2759
|
filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",i.label)}"
|
|
2760
2760
|
clearButtonLabel="${this.labelResolver.resolve("clearFilterButton")}"
|
|
@@ -2767,24 +2767,24 @@
|
|
|
2767
2767
|
@change=${s=>this.setFilter(i.id,s.detail)}
|
|
2768
2768
|
></ft-filter>
|
|
2769
2769
|
</ft-accordion-item>
|
|
2770
|
-
`:
|
|
2770
|
+
`:V.nothing})}
|
|
2771
2771
|
</ft-accordion>
|
|
2772
|
-
`}getContentLocaleRadioGroup(){var e;return
|
|
2772
|
+
`}getContentLocaleRadioGroup(){var e;return V.html`
|
|
2773
2773
|
<ft-radio-group aria-labelledby="content_locale_radio_group_label"
|
|
2774
2774
|
@change=${r=>{this.contentLocale=r.detail==="all"?void 0:r.detail,this.clearFilters()}}>
|
|
2775
|
-
${(0,
|
|
2775
|
+
${(0,Ki.repeat)((e=this.availableContentLocales)!==null&&e!==void 0?e:[],r=>r.lang,r=>{var i;return V.html`
|
|
2776
2776
|
<ft-radio value="${(i=r.lang)!==null&&i!==void 0?i:"all"}"
|
|
2777
2777
|
?checked=${r.lang==this.contentLocale}>
|
|
2778
2778
|
${r.label}
|
|
2779
2779
|
</ft-radio>
|
|
2780
2780
|
`})}
|
|
2781
2781
|
</ft-radio-group>
|
|
2782
|
-
`}renderDesktopMenu(){return this.hasFacets()?
|
|
2782
|
+
`}renderDesktopMenu(){return this.hasFacets()?V.html`
|
|
2783
2783
|
<div class="ft-search-bar--desktop-menu">
|
|
2784
2784
|
${this.renderFacetsActions()}
|
|
2785
2785
|
${this.renderDesktopFacets()}
|
|
2786
2786
|
<div class="ft-search-bar--facets-actions">
|
|
2787
|
-
${this.forceMenuOpen?this.renderDesktopClearFilters():
|
|
2787
|
+
${this.forceMenuOpen?this.renderDesktopClearFilters():V.nothing}
|
|
2788
2788
|
<ft-button class="ft-search-bar--launch-search"
|
|
2789
2789
|
href="${this.searchRequestSerializer(this.request)}"
|
|
2790
2790
|
part="launch-search-in-panel"
|
|
@@ -2794,38 +2794,38 @@
|
|
|
2794
2794
|
</ft-button>
|
|
2795
2795
|
</div>
|
|
2796
2796
|
</div>
|
|
2797
|
-
`:
|
|
2797
|
+
`:V.nothing}renderFacetsActions(){var e;return V.html`
|
|
2798
2798
|
<div class="ft-search-bar--facets-actions">
|
|
2799
|
-
${this.hasPresets?
|
|
2799
|
+
${this.hasPresets?V.html`
|
|
2800
2800
|
<ft-select
|
|
2801
2801
|
class="ft-search-bar--presets"
|
|
2802
2802
|
part="presets"
|
|
2803
2803
|
label="${this.labelResolver.resolve("presetsSelector")}"
|
|
2804
2804
|
outlined
|
|
2805
2805
|
@change=${r=>this.selectedPreset=r.detail}>
|
|
2806
|
-
${(0,
|
|
2806
|
+
${(0,Ki.repeat)((e=this.presets)!==null&&e!==void 0?e:[],r=>r.name,r=>V.html`
|
|
2807
2807
|
<ft-select-option value="${r.name}"
|
|
2808
2808
|
label="${r.name}"
|
|
2809
2809
|
?selected=${r.name===this.selectedPreset}>
|
|
2810
2810
|
</ft-select-option>
|
|
2811
2811
|
`)}
|
|
2812
2812
|
</ft-select>
|
|
2813
|
-
`:
|
|
2813
|
+
`:V.nothing}
|
|
2814
2814
|
<slot name="facets-actions"></slot>
|
|
2815
|
-
${this.forceMenuOpen&&!this.isMobile()?
|
|
2815
|
+
${this.forceMenuOpen&&!this.isMobile()?V.nothing:this.renderDesktopClearFilters()}
|
|
2816
2816
|
</div>
|
|
2817
|
-
`}renderDesktopClearFilters(){return this.metadataFilters.length>0?
|
|
2817
|
+
`}renderDesktopClearFilters(){return this.metadataFilters.length>0?V.html`
|
|
2818
2818
|
<ft-button part="facets-actions"
|
|
2819
2819
|
@click=${this.clearFilters}>
|
|
2820
2820
|
${this.labelResolver.resolve("clearFilters")}
|
|
2821
2821
|
</ft-button>
|
|
2822
|
-
`:
|
|
2822
|
+
`:V.nothing}renderDesktopFacets(){return this.hasFacets()?V.html`
|
|
2823
2823
|
<ft-snap-scroll horizontal limitSize controls
|
|
2824
2824
|
class="ft-search-bar--filters-container"
|
|
2825
2825
|
part="filters-container"
|
|
2826
2826
|
exportpartsPrefix="filters-container"
|
|
2827
2827
|
data-filters-count="${this.facets.length+(this.hasLocaleSelector()?1:0)}">
|
|
2828
|
-
${this.hasLocaleSelector()?
|
|
2828
|
+
${this.hasLocaleSelector()?V.html`
|
|
2829
2829
|
<div part="content-locale-selector">
|
|
2830
2830
|
<div part="content-locale-selector-header">
|
|
2831
2831
|
<ft-typography variant="overline" id="content_locale_radio_group_label" part="content-locale-selector-label">
|
|
@@ -2834,12 +2834,12 @@
|
|
|
2834
2834
|
</div>
|
|
2835
2835
|
${this.getContentLocaleRadioGroup()}
|
|
2836
2836
|
</div>
|
|
2837
|
-
`:
|
|
2838
|
-
${(0,
|
|
2837
|
+
`:V.nothing}
|
|
2838
|
+
${(0,Ki.repeat)(this.facets,e=>e.key,e=>{let r=_o(e),i=r.options.some(n=>{var s,a;return((a=(s=n.subOptions)===null||s===void 0?void 0:s.length)!==null&&a!==void 0?a:0)>0}),o=e.key.replace(":","-");return V.html`
|
|
2839
2839
|
<ft-filter
|
|
2840
2840
|
class="${i?"ft-search-bar--hierarchical-filter":""}"
|
|
2841
|
-
part="filters filter filter-${
|
|
2842
|
-
.exportpartsPrefixes=${["filter","filter-"+
|
|
2841
|
+
part="filters filter filter-${o}"
|
|
2842
|
+
.exportpartsPrefixes=${["filter","filter-"+o]}
|
|
2843
2843
|
id="${r.id}"
|
|
2844
2844
|
label="${r.label}"
|
|
2845
2845
|
filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",r.label)}"
|
|
@@ -2850,18 +2850,18 @@
|
|
|
2850
2850
|
raiseSelectedOptions
|
|
2851
2851
|
.options=${r.options}
|
|
2852
2852
|
.displayedValuesLimit=${10}
|
|
2853
|
-
@change=${
|
|
2853
|
+
@change=${n=>this.setFilter(r.id,n.detail)}
|
|
2854
2854
|
></ft-filter>
|
|
2855
2855
|
`})}
|
|
2856
2856
|
</ft-snap-scroll>
|
|
2857
|
-
`:
|
|
2857
|
+
`: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(pp,this.labels)),e.has("sizeCategory")&&(this.mobileMenuOpen=!1,this.displayFacets=this.displayFacets&&!this.isMobile()),super.update(e),(e.has("availableContentLocales")||e.has("contentLocale"))&&this.availableContentLocales.length>0){let a=l=>this.availableContentLocales.some(u=>u.lang==l);a(this.contentLocale)||(this.contentLocale=e.has("contentLocale")&&a(e.get("contentLocale"))?e.get("contentLocale"):(r=this.availableContentLocales[0])===null||r===void 0?void 0:r.lang)}if(e.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.initRecentSearches()),e.has("presets")&&((i=this.presets)!==null&&i!==void 0?i:[]).forEach(a=>a.metadataFilters.forEach(l=>{l.valueFilter&&(l.valueFilter.values=l.valueFilter.values.map(u=>Qi(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 ks(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(ah)),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`
|
|
2858
2858
|
<div class="ft-search-bar--floating-panel"
|
|
2859
2859
|
id="ft-search-bar-floating-panel"
|
|
2860
2860
|
@keyup=${this.onFloatingContainerKeyUp}
|
|
2861
2861
|
part="floating-panel"
|
|
2862
2862
|
tabindex="-1">
|
|
2863
2863
|
${this.renderDesktopMenu()}
|
|
2864
|
-
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};
|
|
2864
|
+
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};C.elementDefinitions={"ft-accordion":Lt,"ft-accordion-item":ct,"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":je,"ft-skeleton":nr,"ft-snap-scroll":me,"ft-tooltip":ce,"ft-typography":q,"ft-radio-group":Ze,"ft-radio":ve};C.styles=[Fr,Y.noTextInputDefaultClearButton,tp,rp,Dt.styles,Pt.styles,Y.screenReaderStyles];N([(0,F.property)({type:Boolean})],C.prototype,"dense",void 0);N([(0,F.property)()],C.prototype,"mode",void 0);N([(0,F.property)({type:Boolean})],C.prototype,"forceMobileMenuOpen",void 0);N([(0,F.property)({type:Boolean})],C.prototype,"forceMenuOpen",void 0);N([(0,F.property)()],C.prototype,"baseUrl",void 0);N([(0,F.property)()],C.prototype,"apiIntegrationIdentifier",void 0);N([(0,F.property)()],C.prototype,"contentLocale",void 0);N([(0,F.state)()],C.prototype,"availableContentLocales",void 0);N([(0,F.state)()],C.prototype,"availableContentLocalesInitialized",void 0);N([(0,F.property)()],C.prototype,"uiLocale",void 0);N([(0,Y.jsonProperty)({})],C.prototype,"labels",void 0);N([(0,Y.jsonProperty)([])],C.prototype,"displayedFilters",void 0);N([(0,Y.jsonProperty)([])],C.prototype,"presets",void 0);N([(0,F.property)({type:String,reflect:!0})],C.prototype,"selectedPreset",void 0);N([(0,Y.jsonProperty)([])],C.prototype,"priors",void 0);N([(0,F.property)()],C.prototype,"searchRequestSerializer",void 0);N([(0,F.property)({type:Boolean})],C.prototype,"focusOnDisplay",void 0);N([(0,F.state)()],C.prototype,"metadataFilters",void 0);N([(0,F.state)()],C.prototype,"sizeCategory",void 0);N([(0,F.state)()],C.prototype,"displayFacets",void 0);N([(0,F.state)()],C.prototype,"mobileMenuOpen",void 0);N([(0,F.state)()],C.prototype,"facets",void 0);N([(0,F.state)()],C.prototype,"facetsInitialized",void 0);N([(0,F.query)(".ft-search-bar--container")],C.prototype,"container",void 0);N([(0,F.query)(".ft-search-bar--filters-opener")],C.prototype,"filtersOpener",void 0);N([(0,F.query)(".ft-search-bar--floating-panel")],C.prototype,"floatingContainer",void 0);N([(0,F.query)("ft-snap-scroll.ft-search-bar--filters-container")],C.prototype,"scrollingFiltersContainer",void 0);N([(0,F.query)(".ft-search-bar--input")],C.prototype,"input",void 0);N([(0,F.query)(".ft-search-bar--launch-search")],C.prototype,"launchSearchButton",void 0);N([(0,F.state)()],C.prototype,"query",void 0);N([(0,F.state)()],C.prototype,"suggestions",void 0);N([(0,F.state)()],C.prototype,"recentSearches",void 0);N([(0,F.state)()],C.prototype,"scrollToFacet",void 0);N([(0,F.state)()],C.prototype,"api",void 0);N([(0,F.state)()],C.prototype,"displaySuggestListbox",void 0);N([(0,F.state)()],C.prototype,"selectedSuggestOptionId",void 0);N([(0,F.state)()],C.prototype,"selectedSuggestRemoveRecent",void 0);N([(0,F.state)()],C.prototype,"facetsLoaded",void 0);var fp={"ft-search-bar":C};(0,hp.customElements)(fp);})();
|
|
2865
2865
|
/*! Bundled license information:
|
|
2866
2866
|
|
|
2867
2867
|
lit-html/lit-html.js:
|