@fluid-topics/ft-search-type 1.3.54 → 1.3.55
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.
|
@@ -45,7 +45,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
45
45
|
input::-webkit-search-results-decoration {
|
|
46
46
|
display: none;
|
|
47
47
|
}
|
|
48
|
-
`;var oc={};var Va={};Q(Va,{ParametrizedLabelResolver:()=>No});var No=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var n,i;e=this.resolvePluralKey(e,r);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((n,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,r){for(let n of r)if(typeof n=="number"){let i=`${String(e)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let n=i=>r?.includes("date")?e.toLocaleDateString(i):r?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var hs={};Q(hs,{FtCommandQueue:()=>Io,FtLitElementRedux:()=>Tt,FtReduxStore:()=>Lt,FtStateManager:()=>$o,ReduxWatcher:()=>Qn,clearAllStores:()=>qf,isFtReduxStore:()=>Mr,redux:()=>Le,reduxEventListener:()=>uf,reduxReactive:()=>pf,watch:()=>zr,withRedux:()=>nc});var pf=()=>(t,e)=>{var r;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(r=n.reduxReactiveProperties)===null||r===void 0||r.add(e)},Le=t=>{let e=t??{};return(r,n)=>{var i;let a={hasChanged:Me,attribute:!1,...e};b(a)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:l=>l[n],store:e.store})}},uf=t=>(e,r)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(r,t)};var Io=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==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))}};function Mr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Po=Symbol("internalReduxEventsUnsubscribers"),Bt=Symbol("internalStoresUnsubscribers"),dr=Symbol("internalStores"),nc=fe(Symbol("withRedux"),function(t){var e,r,n;class i extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[dr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[dr].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[dr].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[dr].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[dr].delete(l)}setupStores(){this.unsubscribeFromStores(),this[dr].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let u=this.getStore(s.store);u&&(s.store?this[Bt].has(s.store):this[Bt].size>0)&&(this[l]=s.selector(u.getState(),this))}})}subscribeToStore(s,l){var d;this[Bt].set(s,l.subscribe(()=>this.updateFromStores())),this[Po].set(s,[]),Mr(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((u,h)=>{if(typeof this[h]=="function"&&(!u.store||l.name===u.store)){let f=m=>this[h](m);l.addEventListener(u.eventName,f),this[Po].get(s).push(()=>l.removeEventListener(u.eventName,f))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Bt].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Bt].has(s)&&this[Bt].get(s)(),this[Bt].delete(s),(l=this[Po].get(s))===null||l===void 0||l.forEach(d=>d()),this[Po].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Bt,r=dr,n=Po,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),Tt=class extends nc(H){};function Ve(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var i,a;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 _t(t){return!!t&&!!t[se]}function Je(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===vf}(t)||Array.isArray(t)||!!t[pc]||!!(!((e=t.constructor)===null||e===void 0)&&e[pc])||Ja(t)||es(t))}function pr(t,e,r){r===void 0&&(r=!1),Br(t)===0?(r?Object.keys:Fr)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function Br(t){var e=t[se];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Ja(t)?2:es(t)?3:0}function $r(t,e){return Br(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function ff(t,e){return Br(t)===2?t.get(e):t[e]}function uc(t,e,r){var n=Br(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function fc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Ja(t){return bf&&t instanceof Map}function es(t){return xf&&t instanceof Set}function Ut(t){return t.o||t.t}function ts(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=yc(t);delete e[se];for(var r=Fr(e),n=0;n<r.length;n++){var i=r[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function rs(t,e){return e===void 0&&(e=!1),os(t)||_t(t)||!Je(t)||(Br(t)>1&&(t.set=t.add=t.clear=t.delete=hf),Object.freeze(t),e&&pr(t,function(r,n){return rs(n,!0)},!0)),t}function hf(){Ve(2)}function os(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function ut(t){var e=Xa[t];return e||Ve(18,t),e}function mf(t,e){Xa[t]||(Xa[t]=e)}function qa(){return Do}function ja(t,e){e&&(ut("Patches"),t.u=[],t.s=[],t.v=e)}function Gn(t){Ya(t),t.p.forEach(yf),t.p=null}function Ya(t){t===Do&&(Do=t.l)}function ic(t){return Do={p:[],l:Do,h:t,m:!0,_:0}}function yf(t){var e=t[se];e.i===0||e.i===1?e.j():e.g=!0}function Ga(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||ut("ES5").S(e,t,n),n?(r[se].P&&(Gn(e),Ve(4)),Je(t)&&(t=Kn(e,t),e.l||Zn(e,t)),e.u&&ut("Patches").M(r[se].t,t,e.u,e.s)):t=Kn(e,r,[]),Gn(e),e.u&&e.v(e.u,e.s),t!==mc?t:void 0}function Kn(t,e,r){if(os(e))return e;var n=e[se];if(!n)return pr(e,function(l,d){return ac(t,n,e,l,d,r)},!0),e;if(n.A!==t)return e;if(!n.P)return Zn(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=ts(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),pr(a,function(l,d){return ac(t,n,i,l,d,r,s)}),Zn(t,i,!1),r&&t.u&&ut("Patches").N(n,r,t.u,t.s)}return n.o}function ac(t,e,r,n,i,a,s){if(_t(i)){var l=Kn(t,i,a&&e&&e.i!==3&&!$r(e.R,n)?a.concat(n):void 0);if(uc(r,n,l),!_t(l))return;t.m=!1}else s&&r.add(i);if(Je(i)&&!os(i)){if(!t.h.D&&t._<1)return;Kn(t,i),e&&e.A.l||Zn(t,i)}}function Zn(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&rs(e,r)}function Ka(t,e){var r=t[se];return(r?Ut(r):t)[e]}function sc(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function Ht(t){t.P||(t.P=!0,t.l&&Ht(t.l))}function Za(t){t.o||(t.o=ts(t.t))}function Qa(t,e,r){var n=Ja(e)?ut("MapSet").F(e,r):es(e)?ut("MapSet").T(e,r):t.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:qa(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=l,u=Mo;s&&(d=[l],u=ko);var h=Proxy.revocable(d,u),f=h.revoke,m=h.proxy;return l.k=m,l.j=f,m}(e,r):ut("ES5").J(e,r);return(r?r.A:qa()).p.push(n),n}function gf(t){return _t(t)||Ve(22,t),function e(r){if(!Je(r))return r;var n,i=r[se],a=Br(r);if(i){if(!i.P&&(i.i<4||!ut("ES5").K(i)))return i.t;i.I=!0,n=lc(r,a),i.I=!1}else n=lc(r,a);return pr(n,function(s,l){i&&ff(i.t,s)===l||uc(n,s,e(l))}),a===3?new Set(n):n}(t)}function lc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ts(t)}function hc(){function t(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var u=this[se];return Mo.get(u,s)},set:function(u){var h=this[se];Mo.set(h,s,u)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][se];if(!d.P)switch(d.i){case 5:n(d)&&Ht(d);break;case 4:r(d)&&Ht(d)}}}function r(s){for(var l=s.t,d=s.k,u=Fr(d),h=u.length-1;h>=0;h--){var f=u[h];if(f!==se){var m=l[f];if(m===void 0&&!$r(l,f))return!0;var v=d[f],x=v&&v[se];if(x?x.t!==m:!fc(v,m))return!0}}var A=!!l[se];return u.length!==Fr(l).length+(A?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function i(s){s.g&&Ve(3,JSON.stringify(Ut(s)))}var a={};mf("ES5",{J:function(s,l){var d=Array.isArray(s),u=function(f,m){if(f){for(var v=Array(m.length),x=0;x<m.length;x++)Object.defineProperty(v,""+x,t(x,!0));return v}var A=yc(m);delete A[se];for(var T=Fr(A),_=0;_<T.length;_++){var I=T[_];A[I]=t(I,f||!!A[I].enumerable)}return Object.create(Object.getPrototypeOf(m),A)}(d,s),h={i:d?5:4,A:l?l.A:qa(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,se,{value:h,writable:!0}),u},S:function(s,l,d){d?_t(l)&&l[se].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var f=h[se];if(f){var m=f.t,v=f.k,x=f.R,A=f.i;if(A===4)pr(v,function(S){S!==se&&(m[S]!==void 0||$r(m,S)?x[S]||u(v[S]):(x[S]=!0,Ht(f)))}),pr(m,function(S){v[S]!==void 0||$r(v,S)||(x[S]=!1,Ht(f))});else if(A===5){if(n(f)&&(Ht(f),x.length=!0),v.length<m.length)for(var T=v.length;T<m.length;T++)x[T]=!1;else for(var _=m.length;_<v.length;_++)x[_]=!0;for(var I=Math.min(v.length,m.length),E=0;E<I;E++)v.hasOwnProperty(E)||(x[E]=!0),x[E]===void 0&&u(v[E])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var cc,Do,ns=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",bf=typeof Map<"u",xf=typeof Set<"u",dc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",mc=ns?Symbol.for("immer-nothing"):((cc={})["immer-nothing"]=!0,cc),pc=ns?Symbol.for("immer-draftable"):"__$immer_draftable",se=ns?Symbol.for("immer-state"):"__$immer_state";var vf=""+Object.prototype.constructor,Fr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,yc=Object.getOwnPropertyDescriptors||function(t){var e={};return Fr(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Xa={},Mo={get:function(t,e){if(e===se)return t;var r=Ut(t);if(!$r(r,e))return function(i,a,s){var l,d=sc(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(i.k):void 0}(t,r,e);var n=r[e];return t.I||!Je(n)?n:n===Ka(t.t,e)?(Za(t),t.o[e]=Qa(t.A.h,n,t)):n},has:function(t,e){return e in Ut(t)},ownKeys:function(t){return Reflect.ownKeys(Ut(t))},set:function(t,e,r){var n=sc(Ut(t),e);if(n?.set)return n.set.call(t.k,r),!0;if(!t.P){var i=Ka(Ut(t),e),a=i?.[se];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(fc(r,i)&&(r!==void 0||$r(t.t,e)))return!0;Za(t),Ht(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 Ka(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Za(t),Ht(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Ut(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){Ve(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ve(12)}},ko={};pr(Mo,function(t,e){ko[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),ko.deleteProperty=function(t,e){return ko.set.call(this,t,e,void 0)},ko.set=function(t,e,r){return Mo.set.call(this,t[0],e,r,t[0])};var Sf=function(){function t(r){var n=this;this.O=dc,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var d=n;return function(A){var T=this;A===void 0&&(A=l);for(var _=arguments.length,I=Array(_>1?_-1:0),E=1;E<_;E++)I[E-1]=arguments[E];return d.produce(A,function(S){var w;return(w=a).call.apply(w,[T,S].concat(I))})}}var u;if(typeof a!="function"&&Ve(6),s!==void 0&&typeof s!="function"&&Ve(7),Je(i)){var h=ic(n),f=Qa(n,i,void 0),m=!0;try{u=a(f),m=!1}finally{m?Gn(h):Ya(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(A){return ja(h,s),Ga(A,h)},function(A){throw Gn(h),A}):(ja(h,s),Ga(u,h))}if(!i||typeof i!="object"){if((u=a(i))===void 0&&(u=i),u===mc&&(u=void 0),n.D&&rs(u,!0),s){var v=[],x=[];ut("Patches").M(i,u,v,x),s(v,x)}return u}Ve(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(u){for(var h=arguments.length,f=Array(h>1?h-1:0),m=1;m<h;m++)f[m-1]=arguments[m];return n.produceWithPatches(u,function(v){return i.apply(void 0,[v].concat(f))})};var s,l,d=n.produce(i,a,function(u,h){s=u,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(u){return[u,s,l]}):[d,s,l]},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){Je(r)||Ve(8),_t(r)&&(r=gf(r));var n=ic(this),i=Qa(this,r,void 0);return i[se].C=!0,Ya(n),i},e.finishDraft=function(r,n){var i=r&&r[se],a=i.A;return ja(a,n),Ga(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!dc&&Ve(20),this.O=r},e.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var s=ut("Patches").$;return _t(r)?s(r,n):this.produce(r,function(l){return s(l,n)})},t}(),Fe=new Sf,Of=Fe.produce,nv=Fe.produceWithPatches.bind(Fe),iv=Fe.setAutoFreeze.bind(Fe),av=Fe.setUseProxies.bind(Fe),sv=Fe.applyPatches.bind(Fe),lv=Fe.createDraft.bind(Fe),cv=Fe.finishDraft.bind(Fe),qn=Of;function ur(t){"@babel/helpers - typeof";return ur=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},ur(t)}function gc(t,e){if(ur(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(ur(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function bc(t){var e=gc(t,"string");return ur(e)=="symbol"?e:e+""}function xc(t,e,r){return(e=bc(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function is(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?vc(Object(r),!0).forEach(function(n){xc(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function we(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Sc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),as=function(){return Math.random().toString(36).substring(7).split("").join(".")},Yn={INIT:"@@redux/INIT"+as(),REPLACE:"@@redux/REPLACE"+as(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+as()}};function Cf(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 ss(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(we(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(we(1));return r(ss)(t,e)}if(typeof t!="function")throw new Error(we(2));var i=t,a=e,s=[],l=s,d=!1;function u(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(we(3));return a}function f(A){if(typeof A!="function")throw new Error(we(4));if(d)throw new Error(we(5));var T=!0;return u(),l.push(A),function(){if(T){if(d)throw new Error(we(6));T=!1,u();var I=l.indexOf(A);l.splice(I,1),s=null}}}function m(A){if(!Cf(A))throw new Error(we(7));if(typeof A.type>"u")throw new Error(we(8));if(d)throw new Error(we(9));try{d=!0,a=i(a,A)}finally{d=!1}for(var T=s=l,_=0;_<T.length;_++){var I=T[_];I()}return A}function v(A){if(typeof A!="function")throw new Error(we(10));i=A,m({type:Yn.REPLACE})}function x(){var A,T=f;return A={subscribe:function(I){if(typeof I!="object"||I===null)throw new Error(we(11));function E(){I.next&&I.next(h())}E();var S=T(E);return{unsubscribe:S}}},A[Sc]=function(){return this},A}return m({type:Yn.INIT}),n={dispatch:m,subscribe:f,getState:h,replaceReducer:v},n[Sc]=x,n}function Ef(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:Yn.INIT});if(typeof n>"u")throw new Error(we(12));if(typeof r(void 0,{type:Yn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(we(13))})}function Oc(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(r[i]=t[i])}var a=Object.keys(r),s,l;try{Ef(r)}catch(d){l=d}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var f;for(var m=!1,v={},x=0;x<a.length;x++){var A=a[x],T=r[A],_=u[A],I=T(_,h);if(typeof I>"u"){var E=h&&h.type;throw new Error(we(14))}v[A]=I,m=m||I!==_}return m=m||a.length!==Object.keys(u).length,m?v:u}}function Ur(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Cc(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(we(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=Ur.apply(void 0,l)(i.dispatch),is(is({},i),{},{dispatch:a})}}}function Ec(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,t):s(l)}}};return e}var wc=Ec();wc.withExtraArgument=Ec;var ls=wc;var Lc=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},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 n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),wf=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(h){return d([u,h])}}function d(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){r.label=u[1];break}if(u[0]===6&&r.label<a[1]){r.label=a[1],a=u;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(u);break}a[2]&&r.ops.pop(),r.trys.pop();continue}u=e.call(t,r)}catch(h){u=[6,h],i=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Hr=function(t,e){for(var r=0,n=e.length,i=t.length;r<n;r++,i++)t[i]=e[r];return t},Af=Object.defineProperty,Rf=Object.defineProperties,Tf=Object.getOwnPropertyDescriptors,Ac=Object.getOwnPropertySymbols,_f=Object.prototype.hasOwnProperty,Lf=Object.prototype.propertyIsEnumerable,Rc=function(t,e,r){return e in t?Af(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},zt=function(t,e){for(var r in e||(e={}))_f.call(e,r)&&Rc(t,r,e[r]);if(Ac)for(var n=0,i=Ac(e);n<i.length;n++){var r=i[n];Lf.call(e,r)&&Rc(t,r,e[r])}return t},cs=function(t,e){return Rf(t,Tf(e))},Nf=function(t,e,r){return new Promise(function(n,i){var a=function(d){try{l(r.next(d))}catch(u){i(u)}},s=function(d){try{l(r.throw(d))}catch(u){i(u)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(a,s)};l((r=r.apply(t,e)).next())})};var If=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ur:Ur.apply(null,arguments)},Rv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Pf(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}var kf=function(t){Lc(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Hr([void 0],r[0].concat(this)))):new(e.bind.apply(e,Hr([void 0],r.concat(this))))},e}(Array),Df=function(t){Lc(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Hr([void 0],r[0].concat(this)))):new(e.bind.apply(e,Hr([void 0],r.concat(this))))},e}(Array);function us(t){return Je(t)?qn(t,function(){}):t}function Mf(t){return typeof t=="boolean"}function $f(){return function(e){return Ff(e)}}function Ff(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,l=new kf;if(r&&(Mf(r)?l.push(ls):l.push(ls.withExtraArgument(r.extraArgument))),0){if(i)var d;if(s)var u}return l}var ds=!0;function Nc(t){var e=$f(),r=t||{},n=r.reducer,i=n===void 0?void 0:n,a=r.middleware,s=a===void 0?e():a,l=r.devTools,d=l===void 0?!0:l,u=r.preloadedState,h=u===void 0?void 0:u,f=r.enhancers,m=f===void 0?void 0:f,v;if(typeof i=="function")v=i;else if(Pf(i))v=Oc(i);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 x=s;if(typeof x=="function"&&(x=x(e),!ds&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ds&&x.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var A=Cc.apply(void 0,x),T=Ur;d&&(T=If(zt({trace:!ds},typeof d=="object"&&d)));var _=new Df(A),I=_;Array.isArray(m)?I=Hr([A],m):typeof m=="function"&&(I=m(_));var E=T.apply(void 0,I);return ss(v,h,E)}function Wt(t,e){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return zt(zt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(n){return n.type===t},r}function Ic(t){var e={},r=[],n,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,i},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,r,n]}function Bf(t){return typeof t=="function"}function Uf(t,e,r,n){r===void 0&&(r=[]);var i=typeof e=="function"?Ic(e):[e,r,n],a=i[0],s=i[1],l=i[2],d;if(Bf(t))d=function(){return us(t())};else{var u=us(t);d=function(){return u}}function h(f,m){f===void 0&&(f=d());var v=Hr([a[m.type]],s.filter(function(x){var A=x.matcher;return A(m)}).map(function(x){var A=x.reducer;return A}));return v.filter(function(x){return!!x}).length===0&&(v=[l]),v.reduce(function(x,A){if(A)if(_t(x)){var T=x,_=A(T,m);return _===void 0?x:_}else{if(Je(x))return qn(x,function(I){return A(I,m)});var _=A(x,m);if(_===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return _}return x},f)}return h.getInitialState=d,h}function Hf(t,e){return t+"/"+e}function Pc(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:us(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(h){var f=n[h],m=Hf(e,h),v,x;"reducer"in f?(v=f.reducer,x=f.prepare):v=f,a[h]=v,s[m]=v,l[h]=x?Wt(m,x):Wt(m)});function d(){var h=typeof t.extraReducers=="function"?Ic(t.extraReducers):[t.extraReducers],f=h[0],m=f===void 0?{}:f,v=h[1],x=v===void 0?[]:v,A=h[2],T=A===void 0?void 0:A,_=zt(zt({},m),s);return Uf(r,function(I){for(var E in _)I.addCase(E,_[E]);for(var S=0,w=x;S<w.length;S++){var F=w[S];I.addMatcher(F.matcher,F.reducer)}T&&I.addDefaultCase(T)})}var u;return{name:e,reducer:function(h,f){return u||(u=d()),u(h,f)},actions:l,caseReducers:a,getInitialState:function(){return u||(u=d()),u.getInitialState()}}}var zf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Wf=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=zf[Math.random()*64|0];return e},Vf=["name","message","stack","code"],ps=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Tc=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),jf=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,n=Vf;r<n.length;r++){var i=n[r];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},Nv=function(){function t(e,r,n){var i=Wt(e+"/fulfilled",function(h,f,m,v){return{payload:h,meta:cs(zt({},v||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),a=Wt(e+"/pending",function(h,f,m){return{payload:void 0,meta:cs(zt({},m||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=Wt(e+"/rejected",function(h,f,m,v,x){return{payload:v,error:(n&&n.serializeError||jf)(h||"Rejected"),meta:cs(zt({},x||{}),{arg:m,requestId:f,rejectedWithValue:!!v,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function u(h){return function(f,m,v){var x=n?.idGenerator?n.idGenerator(h):Wf(),A=new d,T,_=!1;function I(S){T=S,A.abort()}var E=function(){return Nf(this,null,function(){var S,w,F,z,Y,V,B;return wf(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),z=(S=n?.condition)==null?void 0:S.call(n,h,{getState:m,extra:v}),Kf(z)?[4,z]:[3,2];case 1:z=y.sent(),y.label=2;case 2:if(z===!1||A.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return _=!0,Y=new Promise(function(O,D){return A.signal.addEventListener("abort",function(){return D({name:"AbortError",message:T||"Aborted"})})}),f(a(x,h,(w=n?.getPendingMeta)==null?void 0:w.call(n,{requestId:x,arg:h},{getState:m,extra:v}))),[4,Promise.race([Y,Promise.resolve(r(h,{dispatch:f,getState:m,extra:v,requestId:x,signal:A.signal,abort:I,rejectWithValue:function(O,D){return new ps(O,D)},fulfillWithValue:function(O,D){return new Tc(O,D)}})).then(function(O){if(O instanceof ps)throw O;return O instanceof Tc?i(O.payload,x,h,O.meta):i(O,x,h)})])];case 3:return F=y.sent(),[3,5];case 4:return V=y.sent(),F=V instanceof ps?s(null,x,h,V.payload,V.meta):s(V,x,h),[3,5];case 5:return B=n&&!n.dispatchConditionRejection&&s.match(F)&&F.meta.condition,B||f(F),[2,F]}})})}();return Object.assign(E,{abort:I,requestId:x,arg:h,unwrap:function(){return E.then(Gf)}})}}return Object.assign(u,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function Gf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Kf(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var kc="listener",Dc="completed",Mc="cancelled",Iv="task-"+Mc,Pv="task-"+Dc,kv=kc+"-"+Mc,Dv=kc+"-"+Dc;var fs="listenerMiddleware";var Mv=Wt(fs+"/add"),$v=Wt(fs+"/removeAll"),Fv=Wt(fs+"/remove");var _c,Bv=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(_c||(_c=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Zf=function(t){return function(e){setTimeout(e,t)}},Uv=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Zf(10);hc();window.ftReduxStores||(window.ftReduxStores={});var Lt=class t extends Ot{static get(e){var r;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(Mr(a))return a;if(i==null)return;let s=Pc({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),l=Nc({reducer:(d,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...u.overwrites}:s.reducer(d,u)});return window.ftReduxStores[i.name]=new t(s,l,i.eventBus)}constructor(e,r,n){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Io;let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,u=a[d];return u?(...h)=>{let f=u(...h.map(i));return this.reduxStore.dispatch(f),f}:h=>{this.setState({[d]:i(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}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()}};function qf(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Mr(e)&&e.clear()}var Qn=class{constructor(e,r,n){this.store=e,this.valueSelector=r,this.callback=n}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),r=this.valueSelector(e);Me(this.lastValue,r)&&(this.callback(r,e),this.lastValue=r)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function zr(t,e,r){return new Qn(t,e,r).watch()}var $o=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var r;return(r=this.requestConsumers.get(e))!==null&&r!==void 0?r:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,r){for(let n of r)this.getOrCreateRequestConsumers(n).add(e)}unregisterComponent(e,r){for(let n of r)this.getOrCreateRequestConsumers(n).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var gs={};Q(gs,{scrollHelper:()=>Yf});var ms,Xn=new Map,ys=class{lock(e,r){if(r){let n=Xn.get(r);if(n==null||n===e)return Xn.set(r,e),r}}release(e,r){r&&Xn.get(r)===e&&Xn.delete(r)}findFirstScrollableParent(e){var r;let n,i;for(let a of ta(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&i==null&&(i=s)}return(r=n??i)!==null&&r!==void 0?r:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,r){var n,i;let a=0;for(;r&&r.offsetParent!==e.offsetParent;)a+=(n=r.offsetTop)!==null&&n!==void 0?n:0,r=r.offsetParent;return a+((i=r?.offsetTop)!==null&&i!==void 0?i:0)-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,e),a=i-n.clientHeight+e.clientHeight,s=i,l=nr(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;n.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(ms=window.FluidTopicsScrollHelper)!==null&&ms!==void 0?ms:new ys;var Yf=window.FluidTopicsScrollHelper;var bs={};Q(bs,{SearchPlaceConverter:()=>Gr,SearchPlaceQueryParams:()=>J,isSearchPlaceQueryParams:()=>fd,serializeRequest:()=>eh});var Xf=Lp(Fc(),1);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 Uc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Uc||(Uc={}));var Hc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Hc||(Hc={}));var jt;(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"})(jt||(jt={}));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 Wc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Wc||(Wc={}));var fr;(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__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",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__DISPLAY="TOPIC__DISPLAY",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"})(fr||(fr={}));var Vc;(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"})(Vc||(Vc={}));var jc;(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"})(jc||(jc={}));var Gc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Gc||(Gc={}));var Kc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Kc||(Kc={}));var Zc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Zc||(Zc={}));var qc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(qc||(qc={}));var Yc;(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"})(Yc||(Yc={}));var et;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(et||(et={}));var Qc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Qc||(Qc={}));var Xc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Xc||(Xc={}));var hr;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(hr||(hr={}));var od=t=>Object.keys(hr).includes(t);var Jc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Jc||(Jc={}));var ed;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(ed||(ed={}));var td;(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"})(td||(td={}));var Vr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Vr||(Vr={}));var nd=t=>Object.keys(Vr).includes(t);var ft;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(ft||(ft={}));var jr;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(jr||(jr={}));var rd;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(rd||(rd={}));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.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_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.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 je;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(je||(je={}));var id;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(id||(id={}));var ad;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(ad||(ad={}));var sd;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(sd||(sd={}));var ld;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(ld||(ld={}));var cd;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(cd||(cd={}));var Qf={[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.GENERATIVE_AI_EXPORT_USER]:[he.GENERATIVE_AI_USER]};function dd(t,e){return t===e||(Qf[t]??[]).some(r=>dd(r,e))}function pd(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(n=>dd(n,e))}function Jf(t){return`"${t}"`}function ud(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function eh(t,e){return new Gr(t).serialize(e)}var J;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page",t.KEYWORD_MATCH="keyword-match"})(J||(J={}));var th=new Set(Object.values(J));function fd(t){return th.has(t)}var Gr=class{constructor(e,r=20,n=!1,i="en-US"){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=n,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let n=r==null||r.trim().length===0,i=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return i.search=this.toURLSearchParams(e),i.toString()}toURLSearchParams(e,r=!1){var n,i,a,s,l,d,u,h,f,m,v;let x=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&x.append(J.LOCALE,e.contentLocale):x.append(J.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&x.append(J.QUERY,e.query);let A=(a=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(S=>S.valueFilter&&!S.valueFilter.negative))!==null&&a!==void 0?a:[];if(A.length>0){let S=A.map(w=>{var F,z;let Y=((z=(F=w.valueFilter)===null||F===void 0?void 0:F.values)!==null&&z!==void 0?z:[]).map(V=>this.escapeFilters(V)).map(V=>Jf(ud(V))).join("_");return`${w.key}~${Y}`}).join("*");x.append(J.VALUE_FILTERS,S)}let T=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(S=>S.dateFilter))!==null&&l!==void 0?l:[];if(T.length>0){let S=T.map(w=>{var F;return`${w.key}~${(F=w.dateFilter)===null||F===void 0?void 0:F.type.toLowerCase()}`}).join("*");x.append(J.DATE_FILTERS,S)}let _=(u=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(S=>S.rangeFilter))!==null&&u!==void 0?u:[];if(_.length>0){let S=_.map(w=>{var F,z;return`${w.key}~${(F=w.rangeFilter)===null||F===void 0?void 0:F.from}_${(z=w.rangeFilter)===null||z===void 0?void 0:z.to}`}).join("*");x.append(J.RANGE_FILTERS,S)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&x.append(J.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&x.append(J.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&x.append(J.SORT,e.sortId),!((h=e.paging)===null||h===void 0)&&h.perPage&&((m=(f=e.paging)===null||f===void 0?void 0:f.perPage)!==null&&m!==void 0?m:this.defaultPerPage)!=this.defaultPerPage&&x.append(J.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&x.append(J.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let I=(v=e.otherQueryParams)!==null&&v!==void 0?v:{};for(let S in I)x.append(S,I[S]);let E=new Array;return x.forEach((S,w)=>{E.push(this.encodeQueryString(w)+"="+this.encodeQueryString(S))}),encodeURI(E.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var r;let n=e.split("?"),i=this.fromURLSearchParams(n.slice(1).join("?")),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:i.scope}}fromURLSearchParams(e){var r,n,i,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(_){console.warn("Could not decode search request query params, fallback on raw value",_)}let d=new URLSearchParams(e),u=d.get(J.LOCALE)==="all"?void 0:d.get(J.LOCALE),h=((r=d.get(J.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),f=(n=d.get(J.SORT))===null||n===void 0?void 0:n.toLowerCase(),m=(i=d.get(J.SCOPE))!==null&&i!==void 0?i:"default",v=+((a=d.get(J.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),x=d.get(J.KEYWORD_MATCH),A=x?x.toUpperCase()===et.MANDATORY?et.MANDATORY:et.OPTIONAL:void 0,T={};for(let _ of d.keys())fd(_)||(T[_]=d.get(_));return{contentLocale:u??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(J.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[m])!==null&&l!==void 0?l:"DEFAULT",virtualField:od(h)?h:"EVERYWHERE",sortId:f,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:nr(1,isNaN(v)?this.defaultPerPage:v,1e3)},keywordMatch:A,otherQueryParams:T}}parseCompatFilters(e){var r,n,i,a,s,l;let d=[];return e.has(J.FILTERS)&&(d=this.parseValueFilters((r=e.get(J.FILTERS))!==null&&r!==void 0?r:"")),(n=e.has(J.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((i=e.get(J.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(J.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(J.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(J.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(r=>r.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],valueFilter:{values:r[1].split("_").map(ud).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:Vr[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(e){for(let[r,n,i]of this.filtersEscapeMapping)e=e.replaceAll(r,n);return e}superEscapeFilters(e){for(let[r,n,i]of this.filtersEscapeMapping)e=e.replaceAll(n,i);return e}unescapeFilterValue(e){for(let[r,n,i]of this.filtersEscapeMapping)e=e.replace(i,r);return e}parseLegacyPeriodFilter(e){if(nd(e))return[{key:"ft:lastEdition",dateFilter:{type:Vr[e]}}];if(e.startsWith("CUSTOM_")){let[r,n,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}};var Ss={};Q(Ss,{toFtFormComponent:()=>vs});var xs=Symbol("elementInternals"),vs=fe(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[xs].form}constructor(...n){super(n),this[xs]=this.attachInternals()}setFormValue(n){this[xs].setFormValue(n)}}return e});var Os={};Q(Os,{DateFormatter:()=>mr});var mr=class{static format(e,r,n,i){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(n,i)):this.getIntlDateTime(e,r,n,i)}static getMomentDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,n,i){let a=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(a);if(!i)return s;let l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(a);return`${s} ${l}`}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var Es={};Q(Es,{ALL_KEYS_VALUE:()=>Cs,SameWindowStorageEvent:()=>Kr});var Cs="__all__",Kr=class extends CustomEvent{constructor(e,r,n){super("same-window-storage",{detail:{key:e,oldValue:r,newValue:n}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==Cs}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,r){let n=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new Kr(r[0],n,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,r){let n=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new Kr(r[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new Kr(Cs))}});var As={};Q(As,{FocusMainContentEvent:()=>ws});var ws=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var hd={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function rh(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function oh(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",rh);document.addEventListener("click",oh);var md=N`
|
|
48
|
+
`;var oc={};var Va={};Q(Va,{ParametrizedLabelResolver:()=>No});var No=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var n,i;e=this.resolvePluralKey(e,r);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((n,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,r){for(let n of r)if(typeof n=="number"){let i=`${String(e)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let n=i=>r?.includes("date")?e.toLocaleDateString(i):r?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var hs={};Q(hs,{FtCommandQueue:()=>Io,FtLitElementRedux:()=>Tt,FtReduxStore:()=>Lt,FtStateManager:()=>$o,ReduxWatcher:()=>Qn,clearAllStores:()=>qf,isFtReduxStore:()=>Mr,redux:()=>Le,reduxEventListener:()=>uf,reduxReactive:()=>pf,watch:()=>zr,withRedux:()=>nc});var pf=()=>(t,e)=>{var r;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(r=n.reduxReactiveProperties)===null||r===void 0||r.add(e)},Le=t=>{let e=t??{};return(r,n)=>{var i;let a={hasChanged:Me,attribute:!1,...e};b(a)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:l=>l[n],store:e.store})}},uf=t=>(e,r)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(r,t)};var Io=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==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))}};function Mr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Po=Symbol("internalReduxEventsUnsubscribers"),Bt=Symbol("internalStoresUnsubscribers"),dr=Symbol("internalStores"),nc=fe(Symbol("withRedux"),function(t){var e,r,n;class i extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[dr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[dr].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[dr].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[dr].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[dr].delete(l)}setupStores(){this.unsubscribeFromStores(),this[dr].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let u=this.getStore(s.store);u&&(s.store?this[Bt].has(s.store):this[Bt].size>0)&&(this[l]=s.selector(u.getState(),this))}})}subscribeToStore(s,l){var d;this[Bt].set(s,l.subscribe(()=>this.updateFromStores())),this[Po].set(s,[]),Mr(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((u,h)=>{if(typeof this[h]=="function"&&(!u.store||l.name===u.store)){let f=m=>this[h](m);l.addEventListener(u.eventName,f),this[Po].get(s).push(()=>l.removeEventListener(u.eventName,f))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Bt].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Bt].has(s)&&this[Bt].get(s)(),this[Bt].delete(s),(l=this[Po].get(s))===null||l===void 0||l.forEach(d=>d()),this[Po].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Bt,r=dr,n=Po,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),Tt=class extends nc(H){};function Ve(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var i,a;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 _t(t){return!!t&&!!t[se]}function Je(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===vf}(t)||Array.isArray(t)||!!t[pc]||!!(!((e=t.constructor)===null||e===void 0)&&e[pc])||Ja(t)||es(t))}function pr(t,e,r){r===void 0&&(r=!1),Br(t)===0?(r?Object.keys:Fr)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function Br(t){var e=t[se];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Ja(t)?2:es(t)?3:0}function $r(t,e){return Br(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function ff(t,e){return Br(t)===2?t.get(e):t[e]}function uc(t,e,r){var n=Br(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function fc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Ja(t){return bf&&t instanceof Map}function es(t){return xf&&t instanceof Set}function Ut(t){return t.o||t.t}function ts(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=yc(t);delete e[se];for(var r=Fr(e),n=0;n<r.length;n++){var i=r[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function rs(t,e){return e===void 0&&(e=!1),os(t)||_t(t)||!Je(t)||(Br(t)>1&&(t.set=t.add=t.clear=t.delete=hf),Object.freeze(t),e&&pr(t,function(r,n){return rs(n,!0)},!0)),t}function hf(){Ve(2)}function os(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function ut(t){var e=Xa[t];return e||Ve(18,t),e}function mf(t,e){Xa[t]||(Xa[t]=e)}function qa(){return Do}function ja(t,e){e&&(ut("Patches"),t.u=[],t.s=[],t.v=e)}function Gn(t){Ya(t),t.p.forEach(yf),t.p=null}function Ya(t){t===Do&&(Do=t.l)}function ic(t){return Do={p:[],l:Do,h:t,m:!0,_:0}}function yf(t){var e=t[se];e.i===0||e.i===1?e.j():e.g=!0}function Ga(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||ut("ES5").S(e,t,n),n?(r[se].P&&(Gn(e),Ve(4)),Je(t)&&(t=Kn(e,t),e.l||Zn(e,t)),e.u&&ut("Patches").M(r[se].t,t,e.u,e.s)):t=Kn(e,r,[]),Gn(e),e.u&&e.v(e.u,e.s),t!==mc?t:void 0}function Kn(t,e,r){if(os(e))return e;var n=e[se];if(!n)return pr(e,function(l,d){return ac(t,n,e,l,d,r)},!0),e;if(n.A!==t)return e;if(!n.P)return Zn(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=ts(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),pr(a,function(l,d){return ac(t,n,i,l,d,r,s)}),Zn(t,i,!1),r&&t.u&&ut("Patches").N(n,r,t.u,t.s)}return n.o}function ac(t,e,r,n,i,a,s){if(_t(i)){var l=Kn(t,i,a&&e&&e.i!==3&&!$r(e.R,n)?a.concat(n):void 0);if(uc(r,n,l),!_t(l))return;t.m=!1}else s&&r.add(i);if(Je(i)&&!os(i)){if(!t.h.D&&t._<1)return;Kn(t,i),e&&e.A.l||Zn(t,i)}}function Zn(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&rs(e,r)}function Ka(t,e){var r=t[se];return(r?Ut(r):t)[e]}function sc(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function Ht(t){t.P||(t.P=!0,t.l&&Ht(t.l))}function Za(t){t.o||(t.o=ts(t.t))}function Qa(t,e,r){var n=Ja(e)?ut("MapSet").F(e,r):es(e)?ut("MapSet").T(e,r):t.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:qa(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=l,u=Mo;s&&(d=[l],u=ko);var h=Proxy.revocable(d,u),f=h.revoke,m=h.proxy;return l.k=m,l.j=f,m}(e,r):ut("ES5").J(e,r);return(r?r.A:qa()).p.push(n),n}function gf(t){return _t(t)||Ve(22,t),function e(r){if(!Je(r))return r;var n,i=r[se],a=Br(r);if(i){if(!i.P&&(i.i<4||!ut("ES5").K(i)))return i.t;i.I=!0,n=lc(r,a),i.I=!1}else n=lc(r,a);return pr(n,function(s,l){i&&ff(i.t,s)===l||uc(n,s,e(l))}),a===3?new Set(n):n}(t)}function lc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ts(t)}function hc(){function t(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var u=this[se];return Mo.get(u,s)},set:function(u){var h=this[se];Mo.set(h,s,u)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][se];if(!d.P)switch(d.i){case 5:n(d)&&Ht(d);break;case 4:r(d)&&Ht(d)}}}function r(s){for(var l=s.t,d=s.k,u=Fr(d),h=u.length-1;h>=0;h--){var f=u[h];if(f!==se){var m=l[f];if(m===void 0&&!$r(l,f))return!0;var v=d[f],x=v&&v[se];if(x?x.t!==m:!fc(v,m))return!0}}var A=!!l[se];return u.length!==Fr(l).length+(A?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function i(s){s.g&&Ve(3,JSON.stringify(Ut(s)))}var a={};mf("ES5",{J:function(s,l){var d=Array.isArray(s),u=function(f,m){if(f){for(var v=Array(m.length),x=0;x<m.length;x++)Object.defineProperty(v,""+x,t(x,!0));return v}var A=yc(m);delete A[se];for(var T=Fr(A),_=0;_<T.length;_++){var I=T[_];A[I]=t(I,f||!!A[I].enumerable)}return Object.create(Object.getPrototypeOf(m),A)}(d,s),h={i:d?5:4,A:l?l.A:qa(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,se,{value:h,writable:!0}),u},S:function(s,l,d){d?_t(l)&&l[se].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var f=h[se];if(f){var m=f.t,v=f.k,x=f.R,A=f.i;if(A===4)pr(v,function(S){S!==se&&(m[S]!==void 0||$r(m,S)?x[S]||u(v[S]):(x[S]=!0,Ht(f)))}),pr(m,function(S){v[S]!==void 0||$r(v,S)||(x[S]=!1,Ht(f))});else if(A===5){if(n(f)&&(Ht(f),x.length=!0),v.length<m.length)for(var T=v.length;T<m.length;T++)x[T]=!1;else for(var _=m.length;_<v.length;_++)x[_]=!0;for(var I=Math.min(v.length,m.length),E=0;E<I;E++)v.hasOwnProperty(E)||(x[E]=!0),x[E]===void 0&&u(v[E])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var cc,Do,ns=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",bf=typeof Map<"u",xf=typeof Set<"u",dc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",mc=ns?Symbol.for("immer-nothing"):((cc={})["immer-nothing"]=!0,cc),pc=ns?Symbol.for("immer-draftable"):"__$immer_draftable",se=ns?Symbol.for("immer-state"):"__$immer_state";var vf=""+Object.prototype.constructor,Fr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,yc=Object.getOwnPropertyDescriptors||function(t){var e={};return Fr(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Xa={},Mo={get:function(t,e){if(e===se)return t;var r=Ut(t);if(!$r(r,e))return function(i,a,s){var l,d=sc(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(i.k):void 0}(t,r,e);var n=r[e];return t.I||!Je(n)?n:n===Ka(t.t,e)?(Za(t),t.o[e]=Qa(t.A.h,n,t)):n},has:function(t,e){return e in Ut(t)},ownKeys:function(t){return Reflect.ownKeys(Ut(t))},set:function(t,e,r){var n=sc(Ut(t),e);if(n?.set)return n.set.call(t.k,r),!0;if(!t.P){var i=Ka(Ut(t),e),a=i?.[se];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(fc(r,i)&&(r!==void 0||$r(t.t,e)))return!0;Za(t),Ht(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 Ka(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Za(t),Ht(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Ut(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){Ve(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ve(12)}},ko={};pr(Mo,function(t,e){ko[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),ko.deleteProperty=function(t,e){return ko.set.call(this,t,e,void 0)},ko.set=function(t,e,r){return Mo.set.call(this,t[0],e,r,t[0])};var Sf=function(){function t(r){var n=this;this.O=dc,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var d=n;return function(A){var T=this;A===void 0&&(A=l);for(var _=arguments.length,I=Array(_>1?_-1:0),E=1;E<_;E++)I[E-1]=arguments[E];return d.produce(A,function(S){var w;return(w=a).call.apply(w,[T,S].concat(I))})}}var u;if(typeof a!="function"&&Ve(6),s!==void 0&&typeof s!="function"&&Ve(7),Je(i)){var h=ic(n),f=Qa(n,i,void 0),m=!0;try{u=a(f),m=!1}finally{m?Gn(h):Ya(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(A){return ja(h,s),Ga(A,h)},function(A){throw Gn(h),A}):(ja(h,s),Ga(u,h))}if(!i||typeof i!="object"){if((u=a(i))===void 0&&(u=i),u===mc&&(u=void 0),n.D&&rs(u,!0),s){var v=[],x=[];ut("Patches").M(i,u,v,x),s(v,x)}return u}Ve(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(u){for(var h=arguments.length,f=Array(h>1?h-1:0),m=1;m<h;m++)f[m-1]=arguments[m];return n.produceWithPatches(u,function(v){return i.apply(void 0,[v].concat(f))})};var s,l,d=n.produce(i,a,function(u,h){s=u,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(u){return[u,s,l]}):[d,s,l]},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){Je(r)||Ve(8),_t(r)&&(r=gf(r));var n=ic(this),i=Qa(this,r,void 0);return i[se].C=!0,Ya(n),i},e.finishDraft=function(r,n){var i=r&&r[se],a=i.A;return ja(a,n),Ga(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!dc&&Ve(20),this.O=r},e.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var s=ut("Patches").$;return _t(r)?s(r,n):this.produce(r,function(l){return s(l,n)})},t}(),Fe=new Sf,Of=Fe.produce,nv=Fe.produceWithPatches.bind(Fe),iv=Fe.setAutoFreeze.bind(Fe),av=Fe.setUseProxies.bind(Fe),sv=Fe.applyPatches.bind(Fe),lv=Fe.createDraft.bind(Fe),cv=Fe.finishDraft.bind(Fe),qn=Of;function ur(t){"@babel/helpers - typeof";return ur=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},ur(t)}function gc(t,e){if(ur(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(ur(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function bc(t){var e=gc(t,"string");return ur(e)=="symbol"?e:e+""}function xc(t,e,r){return(e=bc(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function is(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?vc(Object(r),!0).forEach(function(n){xc(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function we(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Sc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),as=function(){return Math.random().toString(36).substring(7).split("").join(".")},Yn={INIT:"@@redux/INIT"+as(),REPLACE:"@@redux/REPLACE"+as(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+as()}};function Cf(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 ss(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(we(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(we(1));return r(ss)(t,e)}if(typeof t!="function")throw new Error(we(2));var i=t,a=e,s=[],l=s,d=!1;function u(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(we(3));return a}function f(A){if(typeof A!="function")throw new Error(we(4));if(d)throw new Error(we(5));var T=!0;return u(),l.push(A),function(){if(T){if(d)throw new Error(we(6));T=!1,u();var I=l.indexOf(A);l.splice(I,1),s=null}}}function m(A){if(!Cf(A))throw new Error(we(7));if(typeof A.type>"u")throw new Error(we(8));if(d)throw new Error(we(9));try{d=!0,a=i(a,A)}finally{d=!1}for(var T=s=l,_=0;_<T.length;_++){var I=T[_];I()}return A}function v(A){if(typeof A!="function")throw new Error(we(10));i=A,m({type:Yn.REPLACE})}function x(){var A,T=f;return A={subscribe:function(I){if(typeof I!="object"||I===null)throw new Error(we(11));function E(){I.next&&I.next(h())}E();var S=T(E);return{unsubscribe:S}}},A[Sc]=function(){return this},A}return m({type:Yn.INIT}),n={dispatch:m,subscribe:f,getState:h,replaceReducer:v},n[Sc]=x,n}function Ef(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:Yn.INIT});if(typeof n>"u")throw new Error(we(12));if(typeof r(void 0,{type:Yn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(we(13))})}function Oc(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(r[i]=t[i])}var a=Object.keys(r),s,l;try{Ef(r)}catch(d){l=d}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var f;for(var m=!1,v={},x=0;x<a.length;x++){var A=a[x],T=r[A],_=u[A],I=T(_,h);if(typeof I>"u"){var E=h&&h.type;throw new Error(we(14))}v[A]=I,m=m||I!==_}return m=m||a.length!==Object.keys(u).length,m?v:u}}function Ur(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Cc(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(we(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=Ur.apply(void 0,l)(i.dispatch),is(is({},i),{},{dispatch:a})}}}function Ec(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,t):s(l)}}};return e}var wc=Ec();wc.withExtraArgument=Ec;var ls=wc;var Lc=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},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 n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),wf=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(h){return d([u,h])}}function d(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){r.label=u[1];break}if(u[0]===6&&r.label<a[1]){r.label=a[1],a=u;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(u);break}a[2]&&r.ops.pop(),r.trys.pop();continue}u=e.call(t,r)}catch(h){u=[6,h],i=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Hr=function(t,e){for(var r=0,n=e.length,i=t.length;r<n;r++,i++)t[i]=e[r];return t},Af=Object.defineProperty,Rf=Object.defineProperties,Tf=Object.getOwnPropertyDescriptors,Ac=Object.getOwnPropertySymbols,_f=Object.prototype.hasOwnProperty,Lf=Object.prototype.propertyIsEnumerable,Rc=function(t,e,r){return e in t?Af(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},zt=function(t,e){for(var r in e||(e={}))_f.call(e,r)&&Rc(t,r,e[r]);if(Ac)for(var n=0,i=Ac(e);n<i.length;n++){var r=i[n];Lf.call(e,r)&&Rc(t,r,e[r])}return t},cs=function(t,e){return Rf(t,Tf(e))},Nf=function(t,e,r){return new Promise(function(n,i){var a=function(d){try{l(r.next(d))}catch(u){i(u)}},s=function(d){try{l(r.throw(d))}catch(u){i(u)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(a,s)};l((r=r.apply(t,e)).next())})};var If=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ur:Ur.apply(null,arguments)},Rv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Pf(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}var kf=function(t){Lc(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Hr([void 0],r[0].concat(this)))):new(e.bind.apply(e,Hr([void 0],r.concat(this))))},e}(Array),Df=function(t){Lc(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Hr([void 0],r[0].concat(this)))):new(e.bind.apply(e,Hr([void 0],r.concat(this))))},e}(Array);function us(t){return Je(t)?qn(t,function(){}):t}function Mf(t){return typeof t=="boolean"}function $f(){return function(e){return Ff(e)}}function Ff(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,l=new kf;if(r&&(Mf(r)?l.push(ls):l.push(ls.withExtraArgument(r.extraArgument))),0){if(i)var d;if(s)var u}return l}var ds=!0;function Nc(t){var e=$f(),r=t||{},n=r.reducer,i=n===void 0?void 0:n,a=r.middleware,s=a===void 0?e():a,l=r.devTools,d=l===void 0?!0:l,u=r.preloadedState,h=u===void 0?void 0:u,f=r.enhancers,m=f===void 0?void 0:f,v;if(typeof i=="function")v=i;else if(Pf(i))v=Oc(i);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 x=s;if(typeof x=="function"&&(x=x(e),!ds&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ds&&x.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var A=Cc.apply(void 0,x),T=Ur;d&&(T=If(zt({trace:!ds},typeof d=="object"&&d)));var _=new Df(A),I=_;Array.isArray(m)?I=Hr([A],m):typeof m=="function"&&(I=m(_));var E=T.apply(void 0,I);return ss(v,h,E)}function Wt(t,e){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return zt(zt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(n){return n.type===t},r}function Ic(t){var e={},r=[],n,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,i},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,r,n]}function Bf(t){return typeof t=="function"}function Uf(t,e,r,n){r===void 0&&(r=[]);var i=typeof e=="function"?Ic(e):[e,r,n],a=i[0],s=i[1],l=i[2],d;if(Bf(t))d=function(){return us(t())};else{var u=us(t);d=function(){return u}}function h(f,m){f===void 0&&(f=d());var v=Hr([a[m.type]],s.filter(function(x){var A=x.matcher;return A(m)}).map(function(x){var A=x.reducer;return A}));return v.filter(function(x){return!!x}).length===0&&(v=[l]),v.reduce(function(x,A){if(A)if(_t(x)){var T=x,_=A(T,m);return _===void 0?x:_}else{if(Je(x))return qn(x,function(I){return A(I,m)});var _=A(x,m);if(_===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return _}return x},f)}return h.getInitialState=d,h}function Hf(t,e){return t+"/"+e}function Pc(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:us(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(h){var f=n[h],m=Hf(e,h),v,x;"reducer"in f?(v=f.reducer,x=f.prepare):v=f,a[h]=v,s[m]=v,l[h]=x?Wt(m,x):Wt(m)});function d(){var h=typeof t.extraReducers=="function"?Ic(t.extraReducers):[t.extraReducers],f=h[0],m=f===void 0?{}:f,v=h[1],x=v===void 0?[]:v,A=h[2],T=A===void 0?void 0:A,_=zt(zt({},m),s);return Uf(r,function(I){for(var E in _)I.addCase(E,_[E]);for(var S=0,w=x;S<w.length;S++){var F=w[S];I.addMatcher(F.matcher,F.reducer)}T&&I.addDefaultCase(T)})}var u;return{name:e,reducer:function(h,f){return u||(u=d()),u(h,f)},actions:l,caseReducers:a,getInitialState:function(){return u||(u=d()),u.getInitialState()}}}var zf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Wf=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=zf[Math.random()*64|0];return e},Vf=["name","message","stack","code"],ps=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Tc=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),jf=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,n=Vf;r<n.length;r++){var i=n[r];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},Nv=function(){function t(e,r,n){var i=Wt(e+"/fulfilled",function(h,f,m,v){return{payload:h,meta:cs(zt({},v||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),a=Wt(e+"/pending",function(h,f,m){return{payload:void 0,meta:cs(zt({},m||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=Wt(e+"/rejected",function(h,f,m,v,x){return{payload:v,error:(n&&n.serializeError||jf)(h||"Rejected"),meta:cs(zt({},x||{}),{arg:m,requestId:f,rejectedWithValue:!!v,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function u(h){return function(f,m,v){var x=n?.idGenerator?n.idGenerator(h):Wf(),A=new d,T,_=!1;function I(S){T=S,A.abort()}var E=function(){return Nf(this,null,function(){var S,w,F,z,Y,V,B;return wf(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),z=(S=n?.condition)==null?void 0:S.call(n,h,{getState:m,extra:v}),Kf(z)?[4,z]:[3,2];case 1:z=y.sent(),y.label=2;case 2:if(z===!1||A.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return _=!0,Y=new Promise(function(O,D){return A.signal.addEventListener("abort",function(){return D({name:"AbortError",message:T||"Aborted"})})}),f(a(x,h,(w=n?.getPendingMeta)==null?void 0:w.call(n,{requestId:x,arg:h},{getState:m,extra:v}))),[4,Promise.race([Y,Promise.resolve(r(h,{dispatch:f,getState:m,extra:v,requestId:x,signal:A.signal,abort:I,rejectWithValue:function(O,D){return new ps(O,D)},fulfillWithValue:function(O,D){return new Tc(O,D)}})).then(function(O){if(O instanceof ps)throw O;return O instanceof Tc?i(O.payload,x,h,O.meta):i(O,x,h)})])];case 3:return F=y.sent(),[3,5];case 4:return V=y.sent(),F=V instanceof ps?s(null,x,h,V.payload,V.meta):s(V,x,h),[3,5];case 5:return B=n&&!n.dispatchConditionRejection&&s.match(F)&&F.meta.condition,B||f(F),[2,F]}})})}();return Object.assign(E,{abort:I,requestId:x,arg:h,unwrap:function(){return E.then(Gf)}})}}return Object.assign(u,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function Gf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Kf(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var kc="listener",Dc="completed",Mc="cancelled",Iv="task-"+Mc,Pv="task-"+Dc,kv=kc+"-"+Mc,Dv=kc+"-"+Dc;var fs="listenerMiddleware";var Mv=Wt(fs+"/add"),$v=Wt(fs+"/removeAll"),Fv=Wt(fs+"/remove");var _c,Bv=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(_c||(_c=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Zf=function(t){return function(e){setTimeout(e,t)}},Uv=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Zf(10);hc();window.ftReduxStores||(window.ftReduxStores={});var Lt=class t extends Ot{static get(e){var r;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(Mr(a))return a;if(i==null)return;let s=Pc({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),l=Nc({reducer:(d,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...u.overwrites}:s.reducer(d,u)});return window.ftReduxStores[i.name]=new t(s,l,i.eventBus)}constructor(e,r,n){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Io;let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,u=a[d];return u?(...h)=>{let f=u(...h.map(i));return this.reduxStore.dispatch(f),f}:h=>{this.setState({[d]:i(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}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()}};function qf(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Mr(e)&&e.clear()}var Qn=class{constructor(e,r,n){this.store=e,this.valueSelector=r,this.callback=n}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),r=this.valueSelector(e);Me(this.lastValue,r)&&(this.callback(r,e),this.lastValue=r)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function zr(t,e,r){return new Qn(t,e,r).watch()}var $o=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var r;return(r=this.requestConsumers.get(e))!==null&&r!==void 0?r:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,r){for(let n of r)this.getOrCreateRequestConsumers(n).add(e)}unregisterComponent(e,r){for(let n of r)this.getOrCreateRequestConsumers(n).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var gs={};Q(gs,{scrollHelper:()=>Yf});var ms,Xn=new Map,ys=class{lock(e,r){if(r){let n=Xn.get(r);if(n==null||n===e)return Xn.set(r,e),r}}release(e,r){r&&Xn.get(r)===e&&Xn.delete(r)}findFirstScrollableParent(e){var r;let n,i;for(let a of ta(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&i==null&&(i=s)}return(r=n??i)!==null&&r!==void 0?r:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,r){var n,i;let a=0;for(;r&&r.offsetParent!==e.offsetParent;)a+=(n=r.offsetTop)!==null&&n!==void 0?n:0,r=r.offsetParent;return a+((i=r?.offsetTop)!==null&&i!==void 0?i:0)-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,e),a=i-n.clientHeight+e.clientHeight,s=i,l=nr(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;n.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(ms=window.FluidTopicsScrollHelper)!==null&&ms!==void 0?ms:new ys;var Yf=window.FluidTopicsScrollHelper;var bs={};Q(bs,{SearchPlaceConverter:()=>Gr,SearchPlaceQueryParams:()=>J,isSearchPlaceQueryParams:()=>hd,serializeRequest:()=>eh});var Xf=Lp(Fc(),1);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 Uc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Uc||(Uc={}));var Hc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Hc||(Hc={}));var jt;(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"})(jt||(jt={}));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 Wc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Wc||(Wc={}));var fr;(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__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",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__DISPLAY="TOPIC__DISPLAY",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"})(fr||(fr={}));var Vc;(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"})(Vc||(Vc={}));var jc;(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"})(jc||(jc={}));var Gc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Gc||(Gc={}));var Kc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Kc||(Kc={}));var Zc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Zc||(Zc={}));var qc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(qc||(qc={}));var Yc;(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"})(Yc||(Yc={}));var et;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(et||(et={}));var Qc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Qc||(Qc={}));var Xc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Xc||(Xc={}));var hr;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(hr||(hr={}));var nd=t=>Object.keys(hr).includes(t);var Jc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Jc||(Jc={}));var ed;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(ed||(ed={}));var td;(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"})(td||(td={}));var Vr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Vr||(Vr={}));var id=t=>Object.keys(Vr).includes(t);var ft;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(ft||(ft={}));var jr;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(jr||(jr={}));var rd;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(rd||(rd={}));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.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_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.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 je;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(je||(je={}));var od;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(od||(od={}));var ad;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(ad||(ad={}));var sd;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(sd||(sd={}));var ld;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(ld||(ld={}));var cd;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(cd||(cd={}));var dd;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(dd||(dd={}));var Qf={[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.GENERATIVE_AI_EXPORT_USER]:[he.GENERATIVE_AI_USER]};function pd(t,e){return t===e||(Qf[t]??[]).some(r=>pd(r,e))}function ud(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(n=>pd(n,e))}function Jf(t){return`"${t}"`}function fd(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function eh(t,e){return new Gr(t).serialize(e)}var J;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page",t.KEYWORD_MATCH="keyword-match"})(J||(J={}));var th=new Set(Object.values(J));function hd(t){return th.has(t)}var Gr=class{constructor(e,r=20,n=!1,i="en-US"){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=n,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let n=r==null||r.trim().length===0,i=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return i.search=this.toURLSearchParams(e),i.toString()}toURLSearchParams(e,r=!1){var n,i,a,s,l,d,u,h,f,m,v;let x=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&x.append(J.LOCALE,e.contentLocale):x.append(J.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&x.append(J.QUERY,e.query);let A=(a=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(S=>S.valueFilter&&!S.valueFilter.negative))!==null&&a!==void 0?a:[];if(A.length>0){let S=A.map(w=>{var F,z;let Y=((z=(F=w.valueFilter)===null||F===void 0?void 0:F.values)!==null&&z!==void 0?z:[]).map(V=>this.escapeFilters(V)).map(V=>Jf(fd(V))).join("_");return`${w.key}~${Y}`}).join("*");x.append(J.VALUE_FILTERS,S)}let T=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(S=>S.dateFilter))!==null&&l!==void 0?l:[];if(T.length>0){let S=T.map(w=>{var F;return`${w.key}~${(F=w.dateFilter)===null||F===void 0?void 0:F.type.toLowerCase()}`}).join("*");x.append(J.DATE_FILTERS,S)}let _=(u=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(S=>S.rangeFilter))!==null&&u!==void 0?u:[];if(_.length>0){let S=_.map(w=>{var F,z;return`${w.key}~${(F=w.rangeFilter)===null||F===void 0?void 0:F.from}_${(z=w.rangeFilter)===null||z===void 0?void 0:z.to}`}).join("*");x.append(J.RANGE_FILTERS,S)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&x.append(J.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&x.append(J.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&x.append(J.SORT,e.sortId),!((h=e.paging)===null||h===void 0)&&h.perPage&&((m=(f=e.paging)===null||f===void 0?void 0:f.perPage)!==null&&m!==void 0?m:this.defaultPerPage)!=this.defaultPerPage&&x.append(J.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&x.append(J.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let I=(v=e.otherQueryParams)!==null&&v!==void 0?v:{};for(let S in I)x.append(S,I[S]);let E=new Array;return x.forEach((S,w)=>{E.push(this.encodeQueryString(w)+"="+this.encodeQueryString(S))}),encodeURI(E.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var r;let n=e.split("?"),i=this.fromURLSearchParams(n.slice(1).join("?")),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:i.scope}}fromURLSearchParams(e){var r,n,i,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(_){console.warn("Could not decode search request query params, fallback on raw value",_)}let d=new URLSearchParams(e),u=d.get(J.LOCALE)==="all"?void 0:d.get(J.LOCALE),h=((r=d.get(J.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),f=(n=d.get(J.SORT))===null||n===void 0?void 0:n.toLowerCase(),m=(i=d.get(J.SCOPE))!==null&&i!==void 0?i:"default",v=+((a=d.get(J.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),x=d.get(J.KEYWORD_MATCH),A=x?x.toUpperCase()===et.MANDATORY?et.MANDATORY:et.OPTIONAL:void 0,T={};for(let _ of d.keys())hd(_)||(T[_]=d.get(_));return{contentLocale:u??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(J.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[m])!==null&&l!==void 0?l:"DEFAULT",virtualField:nd(h)?h:"EVERYWHERE",sortId:f,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:nr(1,isNaN(v)?this.defaultPerPage:v,1e3)},keywordMatch:A,otherQueryParams:T}}parseCompatFilters(e){var r,n,i,a,s,l;let d=[];return e.has(J.FILTERS)&&(d=this.parseValueFilters((r=e.get(J.FILTERS))!==null&&r!==void 0?r:"")),(n=e.has(J.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((i=e.get(J.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(J.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(J.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(J.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(r=>r.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],valueFilter:{values:r[1].split("_").map(fd).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:Vr[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(e){for(let[r,n,i]of this.filtersEscapeMapping)e=e.replaceAll(r,n);return e}superEscapeFilters(e){for(let[r,n,i]of this.filtersEscapeMapping)e=e.replaceAll(n,i);return e}unescapeFilterValue(e){for(let[r,n,i]of this.filtersEscapeMapping)e=e.replace(i,r);return e}parseLegacyPeriodFilter(e){if(id(e))return[{key:"ft:lastEdition",dateFilter:{type:Vr[e]}}];if(e.startsWith("CUSTOM_")){let[r,n,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}};var Ss={};Q(Ss,{toFtFormComponent:()=>vs});var xs=Symbol("elementInternals"),vs=fe(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[xs].form}constructor(...n){super(n),this[xs]=this.attachInternals()}setFormValue(n){this[xs].setFormValue(n)}}return e});var Os={};Q(Os,{DateFormatter:()=>mr});var mr=class{static format(e,r,n,i){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(n,i)):this.getIntlDateTime(e,r,n,i)}static getMomentDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,n,i){let a=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(a);if(!i)return s;let l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(a);return`${s} ${l}`}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var Es={};Q(Es,{ALL_KEYS_VALUE:()=>Cs,SameWindowStorageEvent:()=>Kr});var Cs="__all__",Kr=class extends CustomEvent{constructor(e,r,n){super("same-window-storage",{detail:{key:e,oldValue:r,newValue:n}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==Cs}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,r){let n=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new Kr(r[0],n,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,r){let n=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new Kr(r[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new Kr(Cs))}});var As={};Q(As,{FocusMainContentEvent:()=>ws});var ws=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var md={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function rh(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function oh(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",rh);document.addEventListener("click",oh);var yd=N`
|
|
49
49
|
.sr-only {
|
|
50
50
|
position:absolute;
|
|
51
51
|
left:-10000px;
|
|
@@ -69,7 +69,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
69
69
|
width:auto;
|
|
70
70
|
height:auto;
|
|
71
71
|
}
|
|
72
|
-
`;var nh={checkVisibility:!0},
|
|
72
|
+
`;var nh={checkVisibility:!0},gd=fe(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(n,i){let{checkVisibility:a}={...nh,...i};setTimeout(()=>{(!a||this.checkVisibility())&&(n=typeof n=="string"?n:n?.message,n&&this.dispatchEvent(new Oo({type:"aria",message:n})))},20)}}return e});function bd(t,e,r){return t?e(t):r?.(t)}var Se=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},yr;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})(yr||(yr={}));var gr;(function(t){t.default="default",t.warning="warning",t.error="error"})(gr||(gr={}));var Rs=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}},D0=fe(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=yr.input,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=gr.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===yr.blur||this.validateOn===yr.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){(this.status!==gr.default&&this.validateOn===yr.blurWithStatusResolutionOnInput||this.validateOn===yr.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=this.processRules([...this.errorRules,...this.additionalErrorRules]),this.warningMessages=this.processRules([...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new Rs(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return M`
|
|
73
73
|
<ul aria-live="polite" id="${this.messagesForScreenReaderElementId}"
|
|
74
74
|
style="position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden;list-style:none;">
|
|
75
75
|
${Ar(this.errorMessages,n=>M`
|
|
@@ -78,12 +78,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
78
78
|
${Ar(this.warningMessages,n=>M`
|
|
79
79
|
<li>${n}</li>
|
|
80
80
|
`)}
|
|
81
|
-
${
|
|
81
|
+
${bd(!this.errorMessages.length&&!this.warningMessages.length&&this.helperText,()=>M`
|
|
82
82
|
<li>${this.helperText}</li>
|
|
83
83
|
`)}
|
|
84
84
|
</ul>
|
|
85
|
-
`}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?gr.error:this.warningMessages.length?gr.warning:gr.default}processRules(n){return n.map(i=>i(this.value)).filter(i=>i!==!0).map(i=>i)}}return Se([b()],e.prototype,"warningRules",void 0),Se([b()],e.prototype,"errorRules",void 0),Se([b()],e.prototype,"validateOn",void 0),Se([b({type:Boolean})],e.prototype,"validateAtRender",void 0),Se([b()],e.prototype,"label",void 0),Se([b({type:Boolean})],e.prototype,"hideLabel",void 0),Se([b()],e.prototype,"name",void 0),Se([b({type:Boolean})],e.prototype,"disabled",void 0),Se([b()],e.prototype,"helperText",void 0),Se([b()],e.prototype,"forceStatus",void 0),Se([b({reflect:!0})],e.prototype,"value",void 0),Se([U()],e.prototype,"errorMessages",void 0),Se([U()],e.prototype,"warningMessages",void 0),Se([U()],e.prototype,"status",void 0),Se([U()],e.prototype,"focused",void 0),Se([U()],e.prototype,"additionalWarningRules",void 0),Se([U()],e.prototype,"additionalErrorRules",void 0),e});var Fo=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(e,!1),Fo(n,e);return!0},ti=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},
|
|
86
|
-
`;var
|
|
85
|
+
`}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?gr.error:this.warningMessages.length?gr.warning:gr.default}processRules(n){return n.map(i=>i(this.value)).filter(i=>i!==!0).map(i=>i)}}return Se([b()],e.prototype,"warningRules",void 0),Se([b()],e.prototype,"errorRules",void 0),Se([b()],e.prototype,"validateOn",void 0),Se([b({type:Boolean})],e.prototype,"validateAtRender",void 0),Se([b()],e.prototype,"label",void 0),Se([b({type:Boolean})],e.prototype,"hideLabel",void 0),Se([b()],e.prototype,"name",void 0),Se([b({type:Boolean})],e.prototype,"disabled",void 0),Se([b()],e.prototype,"helperText",void 0),Se([b()],e.prototype,"forceStatus",void 0),Se([b({reflect:!0})],e.prototype,"value",void 0),Se([U()],e.prototype,"errorMessages",void 0),Se([U()],e.prototype,"warningMessages",void 0),Se([U()],e.prototype,"status",void 0),Se([U()],e.prototype,"focused",void 0),Se([U()],e.prototype,"additionalWarningRules",void 0),Se([U()],e.prototype,"additionalErrorRules",void 0),e});var Fo=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(e,!1),Fo(n,e);return!0},ti=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},xd=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(r===void 0)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),sh(e)}};function ih(t){this._$AN!==void 0?(ti(this),this._$AM=t,xd(this)):this._$AM=t}function ah(t,e=!1,r=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(n))for(let a=r;a<n.length;a++)Fo(n[a],!1),ti(n[a]);else n!=null&&(Fo(n,!1),ti(n));else Fo(this,t)}var sh=t=>{t.type==at.CHILD&&(t._$AP??=ah,t._$AQ??=ih)},ri=class extends ze{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,n){super._$AT(e,r,n),xd(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(Fo(this,e),ti(this))}setValue(e){if(bl(this._$Ct))this._$Ct._$AI(e,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=e,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var vd;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(vd||(vd={}));var lh={sm:640,md:768,lg:1024,xl:1280},Ts=class extends ri{constructor(e){super(e),this.size=0,this.onResize=()=>{let r=window.innerWidth;this.size!==r&&(this.size=r,this.lastArgs&&this.setValue(this.render(...this.lastArgs)))},this.size=window.innerWidth,window.addEventListener("resize",this.onResize)}disconnected(){window.removeEventListener("resize",this.onResize)}reconnected(){window.addEventListener("resize",this.onResize)}update(e,[r,n,i]){return this.lastArgs=[r,n,i],this.render(r,n,i)}render(e,r,n){let i=this.resolveThreshold(e),a=n??(()=>j);return this.size>i?r():a()}resolveThreshold(e){return typeof e=="number"?e:lh[e]}},q0=Ye(Ts);var _s,Ls,Ns,Is,Bo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Ns=(Ls=(_s=window.safari)===null||_s===void 0?void 0:_s.pushNotification)===null||Ls===void 0?void 0:Ls.toString())!==null&&Ns!==void 0?Ns:"")==="[object SafariRemoteNotification]",ch="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Is=window.ftGlobals)!==null&&Is!==void 0?Is:{lit:Wi,litDecorators:Ki,litRepeat:Zi,litClassMap:qi,litStyleMap:Yi,litUnsafeHTML:Xi,wcUtils:{...aa,...Ji,...da,...Os,...pa,...ua,...ya,...ia,...Ia,...As,...md,...gs,...ma,...Fa,...Ss,...Ma,...tc,...ra,...Ha,...ga,...Wa,...yd,...oc,...Va,...hs,...Es,...Pa,...Da,...bs,...sa,isSafari:Bo,isTouchScreen:ch,setVariable:C}};var FS={},Sd=N`
|
|
86
|
+
`;var Cd=Symbol.for(""),dh=t=>{if(t?.r===Cd)return t?._$litStatic$},Zr=t=>({_$litStatic$:t,r:Cd});var Od=new Map,Ps=t=>(e,...r)=>{let n=r.length,i,a,s=[],l=[],d,u=0,h=!1;for(;u<n;){for(d=e[u];u<n&&(a=r[u],(i=dh(a))!==void 0);)d+=i+e[++u],h=!0;u!==n&&l.push(a),s.push(d),u++}if(u===n&&s.push(e[n]),h){let f=s.join("$$lit$$");(e=Od.get(f))===void 0&&(s.raw=s,Od.set(f,e=s)),r=l}return t(e,...r)},qr=Ps(M),HS=Ps(Fi),zS=Ps(Bi);var Ne;(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",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(Ne||(Ne={}));function Ed(t,e){let r=Dt[t];return N`
|
|
87
87
|
${e?Ze(e):N`.ft-typography--${Ze(t)}`} {
|
|
88
88
|
font-family: ${r.fontFamily};
|
|
89
89
|
font-size: ${r.fontSize};
|
|
@@ -93,7 +93,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
93
93
|
text-decoration: ${r.textDecoration};
|
|
94
94
|
text-transform: ${r.textCase};
|
|
95
95
|
}
|
|
96
|
-
`}var
|
|
96
|
+
`}var wd=o.extend("--ft-typography-font-family","",k.titleFont),Nt=o.extend("--ft-typography-font-family","",k.contentFont),$={fontFamily:Nt,fontSize:o.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Yr={fontFamily:o.extend("--ft-typography-title-font-family","",wd),fontSize:o.extend("--ft-typography-title-font-size","",$.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",$.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",$.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",$.textTransform,"inherit")},Qr={fontFamily:o.extend("--ft-typography-title-dense-font-family","",wd),fontSize:o.extend("--ft-typography-title-dense-font-size","",$.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",$.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",$.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",$.textTransform,"inherit")},Xr={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",Nt),fontSize:o.extend("--ft-typography-subtitle1-font-size","",$.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",$.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",$.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",$.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",$.textTransform,"inherit")},Jr={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",Nt),fontSize:o.extend("--ft-typography-subtitle2-font-size","",$.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",$.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",$.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",$.textTransform,"inherit")},eo={fontFamily:o.extend("--ft-typography-body1-font-family","",Nt),fontSize:o.extend("--ft-typography-body1-font-size","",$.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",$.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",$.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",$.textTransform,"inherit")},Be={fontFamily:o.extend("--ft-typography-body2-font-family","",Nt),fontSize:o.extend("--ft-typography-body2-font-size","",$.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",$.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",$.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",$.textTransform,"inherit")},to={fontFamily:o.extend("--ft-typography-caption-font-family","",Nt),fontSize:o.extend("--ft-typography-caption-font-size","",$.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",$.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",$.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",$.textTransform,"inherit")},ro={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",Nt),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",$.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",$.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",$.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",$.textTransform,"inherit")},oo={fontFamily:o.extend("--ft-typography-overline-font-family","",Nt),fontSize:o.extend("--ft-typography-overline-font-size","",$.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",$.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",$.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",$.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",$.textTransform,"uppercase")},ht={fontFamily:o.extend("--ft-typography-button-font-family","",Nt),fontSize:o.extend("--ft-typography-button-font-size","",$.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",$.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",$.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",$.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",$.textTransform,"uppercase")},Ad=N`
|
|
97
97
|
.ft-typography--title {
|
|
98
98
|
font-family: ${Yr.fontFamily};
|
|
99
99
|
font-size: ${Yr.fontSize};
|
|
@@ -102,7 +102,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
102
102
|
line-height: ${Yr.lineHeight};
|
|
103
103
|
text-transform: ${Yr.textTransform};
|
|
104
104
|
}
|
|
105
|
-
`,
|
|
105
|
+
`,Rd=N`
|
|
106
106
|
.ft-typography--title-dense {
|
|
107
107
|
font-family: ${Qr.fontFamily};
|
|
108
108
|
font-size: ${Qr.fontSize};
|
|
@@ -111,7 +111,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
111
111
|
line-height: ${Qr.lineHeight};
|
|
112
112
|
text-transform: ${Qr.textTransform};
|
|
113
113
|
}
|
|
114
|
-
`,
|
|
114
|
+
`,Td=N`
|
|
115
115
|
.ft-typography--subtitle1 {
|
|
116
116
|
font-family: ${Xr.fontFamily};
|
|
117
117
|
font-size: ${Xr.fontSize};
|
|
@@ -120,7 +120,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
120
120
|
line-height: ${Xr.lineHeight};
|
|
121
121
|
text-transform: ${Xr.textTransform};
|
|
122
122
|
}
|
|
123
|
-
`,
|
|
123
|
+
`,_d=N`
|
|
124
124
|
.ft-typography--subtitle2 {
|
|
125
125
|
font-family: ${Jr.fontFamily};
|
|
126
126
|
font-size: ${Jr.fontSize};
|
|
@@ -130,7 +130,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
130
130
|
text-transform: ${Jr.textTransform};
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
`,
|
|
133
|
+
`,Ld=N`
|
|
134
134
|
.ft-typography--body1 {
|
|
135
135
|
font-family: ${eo.fontFamily};
|
|
136
136
|
font-size: ${eo.fontSize};
|
|
@@ -139,7 +139,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
139
139
|
line-height: ${eo.lineHeight};
|
|
140
140
|
text-transform: ${eo.textTransform};
|
|
141
141
|
}
|
|
142
|
-
`,
|
|
142
|
+
`,Nd=N`
|
|
143
143
|
.ft-typography--body2 {
|
|
144
144
|
font-family: ${Be.fontFamily};
|
|
145
145
|
font-size: ${Be.fontSize};
|
|
@@ -157,7 +157,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
157
157
|
line-height: ${to.lineHeight};
|
|
158
158
|
text-transform: ${to.textTransform};
|
|
159
159
|
}
|
|
160
|
-
`,
|
|
160
|
+
`,Id=N`
|
|
161
161
|
.ft-typography--breadcrumb {
|
|
162
162
|
font-family: ${ro.fontFamily};
|
|
163
163
|
font-size: ${ro.fontSize};
|
|
@@ -166,7 +166,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
166
166
|
line-height: ${ro.lineHeight};
|
|
167
167
|
text-transform: ${ro.textTransform};
|
|
168
168
|
}
|
|
169
|
-
`,
|
|
169
|
+
`,Pd=N`
|
|
170
170
|
.ft-typography--overline {
|
|
171
171
|
font-family: ${oo.fontFamily};
|
|
172
172
|
font-size: ${oo.fontSize};
|
|
@@ -175,7 +175,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
175
175
|
line-height: ${oo.lineHeight};
|
|
176
176
|
text-transform: ${oo.textTransform};
|
|
177
177
|
}
|
|
178
|
-
`,
|
|
178
|
+
`,kd=N`
|
|
179
179
|
.ft-typography--button {
|
|
180
180
|
font-family: ${ht.fontFamily};
|
|
181
181
|
font-size: ${ht.fontSize};
|
|
@@ -184,11 +184,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
184
184
|
line-height: ${ht.lineHeight};
|
|
185
185
|
text-transform: ${ht.textTransform};
|
|
186
186
|
}
|
|
187
|
-
`,
|
|
187
|
+
`,Dd=N`
|
|
188
188
|
.ft-typography {
|
|
189
189
|
vertical-align: inherit;
|
|
190
190
|
}
|
|
191
|
-
`,
|
|
191
|
+
`,Md=[Object.keys(Dt).map(t=>Ed(t))];var $d=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},ue=class extends H{constructor(){super(...arguments),this.variant=Ne.body1}render(){return this.element?qr`
|
|
192
192
|
<${Zr(this.element)}
|
|
193
193
|
part="text"
|
|
194
194
|
class="ft-typography ft-typography--${this.variant}">
|
|
@@ -196,7 +196,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
196
196
|
</${Zr(this.element)}>
|
|
197
197
|
`:qr`
|
|
198
198
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
199
|
-
`}};ue.styles=[
|
|
199
|
+
`}};ue.styles=[Ad,Rd,Td,_d,Ld,Nd,oi,Id,Pd,kd,Dd,...Md];$d([b()],ue.prototype,"element",void 0);$d([b()],ue.prototype,"variant",void 0);var mt;(function(t){t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(mt||(mt={}));function ph(t,e){let r=Dt[t];return N`
|
|
200
200
|
${e?Ze(e):N`.ftds-typography--${Ze(t)}`} {
|
|
201
201
|
font-family: ${r.fontFamily};
|
|
202
202
|
font-size: ${r.fontSize};
|
|
@@ -206,7 +206,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
206
206
|
text-decoration: ${r.textDecoration};
|
|
207
207
|
text-transform: ${r.textCase};
|
|
208
208
|
}
|
|
209
|
-
`}var
|
|
209
|
+
`}var Fd=[Object.keys(Dt).map(t=>ph(t))];var Bd=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},It=class extends H{constructor(){super(...arguments),this.variant=mt.body2medium}render(){return this.element?qr`
|
|
210
210
|
<${Zr(this.element)}
|
|
211
211
|
part="text"
|
|
212
212
|
class="ftds-typography ftds-typography--${this.variant}">
|
|
@@ -214,7 +214,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
214
214
|
</${Zr(this.element)}>
|
|
215
215
|
`:qr`
|
|
216
216
|
<slot part="text" class="ftds-typography ftds-typography--${this.variant}"></slot>
|
|
217
|
-
`}};It.styles=[
|
|
217
|
+
`}};It.styles=[...Fd];Bd([b()],It.prototype,"element",void 0);Bd([b()],It.prototype,"variant",void 0);G("ft-typography")(ue);G("ftds-typography")(It);var Ud=o.extend("--ft-ripple-color","",k.colorContent),R={color:Ud,backgroundColor:o.extend("--ft-ripple-background-color","",Ud),opacityContentOnSurfacePressed:o.external(k.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(k.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(k.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(k.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},Hd=o.extend("--ft-ripple-color","",k.colorPrimary),zd={color:Hd,backgroundColor:o.extend("--ft-ripple-background-color","",Hd)},Wd=o.extend("--ft-ripple-color","",k.colorSecondary),Vd={color:Wd,backgroundColor:o.extend("--ft-ripple-background-color","",Wd)},jd=N`
|
|
218
218
|
:host {
|
|
219
219
|
display: contents;
|
|
220
220
|
}
|
|
@@ -269,19 +269,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
272
|
-
background-color: ${
|
|
272
|
+
background-color: ${Vd.backgroundColor};
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
276
|
-
background-color: ${
|
|
276
|
+
background-color: ${Vd.color};
|
|
277
277
|
}
|
|
278
278
|
|
|
279
279
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
280
|
-
background-color: ${
|
|
280
|
+
background-color: ${zd.backgroundColor};
|
|
281
281
|
}
|
|
282
282
|
|
|
283
283
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
284
|
-
background-color: ${
|
|
284
|
+
background-color: ${zd.color};
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
.ft-ripple .ft-ripple--background {
|
|
@@ -326,7 +326,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
326
326
|
opacity: ${R.opacityContentOnSurfacePressed};
|
|
327
327
|
transform: translate(-50%, -50%) scale(1);
|
|
328
328
|
}
|
|
329
|
-
`;var le={color:o.extend("--ft-loader-color","",k.colorPrimary),size:o.create("--ft-loader-size","","SIZE","80px")},
|
|
329
|
+
`;var le={color:o.extend("--ft-loader-color","",k.colorPrimary),size:o.create("--ft-loader-size","","SIZE","80px")},Gd=N`
|
|
330
330
|
:host {
|
|
331
331
|
line-height: 0;
|
|
332
332
|
}
|
|
@@ -395,7 +395,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
395
395
|
transform: translate(calc(0.35 * ${le.size}), 0);
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
|
-
`;var Ie={size:o.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:o.extend("--ft-icon-fluid-topics-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:o.extend("--ft-icon-file-format-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:o.extend("--ft-icon-material-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:o.create("--ft-icon-vertical-align","","UNKNOWN","unset")},
|
|
398
|
+
`;var Ie={size:o.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:o.extend("--ft-icon-fluid-topics-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:o.extend("--ft-icon-file-format-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:o.extend("--ft-icon-material-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:o.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Kd=[N`
|
|
399
399
|
:host, i.ft-icon {
|
|
400
400
|
display: inline-flex;
|
|
401
401
|
align-items: center;
|
|
@@ -443,7 +443,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
443
443
|
.ft-icon--material {
|
|
444
444
|
font-family: ${Ie.materialFontFamily}, "Material Icons", sans-serif;
|
|
445
445
|
}
|
|
446
|
-
`,cr];var
|
|
446
|
+
`,cr];var Zd=o.extend("--ft-button-color","",k.colorPrimary),oe={backgroundColor:o.extend("--ft-button-background-color","",k.colorSurface),borderRadius:o.extend("--ft-button-border-radius","",k.borderRadiusL),color:Zd,fontSize:o.extend("--ft-button-font-size","",ht.fontSize),iconSize:o.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.extend("--ft-button-ripple-color","",Zd),verticalPadding:o.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:o.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:o.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:o.external(k.colorOpacityDisabled,"Design system")},qd=o.extend("--ft-button-primary-color","",o.extend("--ft-button-color","",k.colorOnPrimary)),ks={backgroundColor:o.extend("--ft-button-primary-background-color","",o.extend("--ft-button-background-color","",k.colorPrimary)),color:qd,rippleColor:o.extend("--ft-button-primary-ripple-color","",qd)},yt={borderRadius:o.extend("--ft-button-dense-border-radius","",o.extend("--ft-button-border-radius","",k.borderRadiusM)),verticalPadding:o.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:o.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:o.create("--ft-button-dense-icon-padding","","SIZE","4px")},Yd=[N`
|
|
447
447
|
:host {
|
|
448
448
|
display: inline-block;
|
|
449
449
|
max-width: 100%;
|
|
@@ -591,7 +591,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
591
591
|
<div class="ft-ripple--background"></div>
|
|
592
592
|
<div class="ft-ripple--effect"></div>
|
|
593
593
|
</div>
|
|
594
|
-
`}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,n;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.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 n=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;n&&this.setupFor((r=this.target)!==null&&r!==void 0?r:n)}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=(...l)=>d=>{l.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(d)},n=r("mouseup","contextmenu"),i=r("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&r("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",n,s),e.addEventListener("touchstart",i,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,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",n,s),e.removeEventListener("touchstart",i,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,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,n=e,i,a;return r.x!=null?{x:i,y:a}=r:n.touches!=null&&(i=n.touches[0].clientX,a=n.touches[0].clientY),{x:i,y:a}}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()}};ee.elementDefinitions={};ee.styles=
|
|
594
|
+
`}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,n;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.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 n=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;n&&this.setupFor((r=this.target)!==null&&r!==void 0?r:n)}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=(...l)=>d=>{l.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(d)},n=r("mouseup","contextmenu"),i=r("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&r("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",n,s),e.addEventListener("touchstart",i,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,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",n,s),e.removeEventListener("touchstart",i,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,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,n=e,i,a;return r.x!=null?{x:i,y:a}=r:n.touches!=null&&(i=n.touches[0].clientX,a=n.touches[0].clientY),{x:i,y:a}}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()}};ee.elementDefinitions={};ee.styles=jd;De([b({type:Boolean})],ee.prototype,"primary",void 0);De([b({type:Boolean})],ee.prototype,"secondary",void 0);De([b({type:Boolean})],ee.prototype,"unbounded",void 0);De([b({type:Boolean})],ee.prototype,"activated",void 0);De([b({type:Boolean})],ee.prototype,"selected",void 0);De([b({type:Boolean})],ee.prototype,"disabled",void 0);De([U()],ee.prototype,"hovered",void 0);De([U()],ee.prototype,"focused",void 0);De([U()],ee.prototype,"pressed",void 0);De([U()],ee.prototype,"rippling",void 0);De([U()],ee.prototype,"originX",void 0);De([U()],ee.prototype,"originY",void 0);De([W(".ft-ripple")],ee.prototype,"ripple",void 0);De([W(".ft-ripple--effect")],ee.prototype,"rippleEffect",void 0);G("ft-ripple")(ee);var no={distance:o.create("--ft-tooltip-distance","","SIZE","4px"),color:o.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:o.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:o.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:o.extend("--ft-tooltip-border-radius","",k.borderRadiusS),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},Qd=N`
|
|
595
595
|
.ft-tooltip--container {
|
|
596
596
|
display: block;
|
|
597
597
|
}
|
|
@@ -620,10 +620,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
620
620
|
position: relative;
|
|
621
621
|
word-break: break-word;
|
|
622
622
|
}
|
|
623
|
-
`;var
|
|
624
|
-
`;var uh="ft-app-info",br=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};br.eventName="authentication-change";var fh={session:(t,e)=>{_e(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>P.dispatchEvent(new br(e.payload)),0))}},P=Lt.get({name:uh,reducers:fh,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var xr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=P.getState(),i=e??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(e){return new Promise(r=>{let n=t.get(e);if(n)r(n);else{let i=P.subscribe(()=>{n=t.get(e),n&&(i(),r(n))})}})}};var ni=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:xr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):xr.await()}};var Ae=class extends ni{constructor(e=!0,r){var n;super(r),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new lt,this.cache=e?i.commonCache:new lt}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var ii=class extends Ae{async listMyBookmarks(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Ds=class{addCommand(e,r=!1){P.commands.add(e,r)}consumeCommand(e){return P.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Ds;var Xd,io=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},hh=Symbol("clearAfterUnitTest"),ai=class extends fn(Ae){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Xd]=()=>{this.defaultMessages={},this.cache=new lt,this.listeners={}},this.currentUiLocale=P.getState().uiLocale,P.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=P.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 n;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...r};_e(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,n;return this.fetchContext(e),(n=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,r){let n=e.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(e,r,...n){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new No((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(r,...n)}async fetchContext(e){let r=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(i){!(i instanceof st)&&r&&console.error(i)}return n}subscribe(e,r){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(r),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new io({loadedContexts:e})),this.dispatchEvent(new io({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new io({loadedContexts:[e]})),this.dispatchEvent(new io({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>pn(0).then(()=>n()).catch(()=>null)))}};Xd=hh;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends ai{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends ai{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var ao=window.FluidTopicsI18nService,si=window.FluidTopicsCustomI18nService;var Ms=class{highlightHtml(e,r,n){Ua(e,r,n)}};window.FluidTopicsHighlightHtmlService=new Ms;var li=class extends Ae{async listMySearches(){let{session:e}=P.getState();return pd(e,he.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var $s=class{isDate(e){var r,n,i,a;return(a=(i=((n=(r=P.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,r){var n,i,a;return mr.format(e,(n=r?.locale)!==null&&n!==void 0?n:P.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new $s;var Uo=class{static get(e,r){var n,i;let a=P.getState(),{lang:s,region:l}=(i=(n=a.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new Gr(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,r??`${s}-${l}`)}};var ci=class extends Ae{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}sortEventArrays(e){let r=Object.entries(e).map(([n,i])=>Array.isArray(i)?[n,i.map(a=>typeof a=="object"&&a!=null&&!Array.isArray(a)?this.sortEventArrays(a):a).sort((a,s)=>typeof a=="object"&&a!==null&&"key"in a?a.key.localeCompare(s.key):typeof a=="string"&&typeof s=="string"?a.localeCompare(s):String(a).localeCompare(String(s)))]:typeof i=="object"&&i!==null?[n,this.sortEventArrays(i)]:[n,i]);return Object.fromEntries(r)}sendEvents(e,r){let n="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>n).catch(i=>(console.info(r),console.debug(i),n)),1e3)}};var Fs=class{urlToSearchRequest(e){return Uo.get().parse(e)}searchRequestToUrl(e){return Uo.get().serialize(e)}};window.FluidTopicsUrlService=new Fs;var vr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};vr.eventName="change";var Bs=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))}},Jd=new Bs;var di=class t extends Ot{static build(){return new t(window.history,Jd,()=>window.location,!1)}constructor(e,r,n,i){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(e,r=!1){let n=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),_e(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=>(n,i,[a,s,l])=>{let d=r(),u={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(i,[u,s,l]),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 n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(vr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(vr.eventName,e)}currentItem(){return So(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 So(this.states[this.previousDifferentMajorPosition()])}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 So(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 n=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!n)return e;let i=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,n);)this.hasState(a)&&(i=a),a++;return i}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 n;if(!this.hasState(e))return!1;let i=r??this.currentState.majorStateId,a=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return a==null||a!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=di.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var ep=P;function tp(t,e){var r;return ep.getState().authenticationRequired&&!(!((r=ep.getState().session)===null||r===void 0)&&r.sessionAuthenticated)?Promise.resolve(e):t()}var me=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},ie=class extends H{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.apiProvider=()=>xr.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new lt,this.cleanSessionDebouncer=new ne,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return M`
|
|
623
|
+
`;var Xd=N`
|
|
624
|
+
`;var uh="ft-app-info",br=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};br.eventName="authentication-change";var fh={session:(t,e)=>{_e(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>P.dispatchEvent(new br(e.payload)),0))}},P=Lt.get({name:uh,reducers:fh,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var xr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=P.getState(),i=e??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(e){return new Promise(r=>{let n=t.get(e);if(n)r(n);else{let i=P.subscribe(()=>{n=t.get(e),n&&(i(),r(n))})}})}};var ni=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:xr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):xr.await()}};var Ae=class extends ni{constructor(e=!0,r){var n;super(r),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new lt,this.cache=e?i.commonCache:new lt}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var ii=class extends Ae{async listMyBookmarks(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Ds=class{addCommand(e,r=!1){P.commands.add(e,r)}consumeCommand(e){return P.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Ds;var Jd,io=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},hh=Symbol("clearAfterUnitTest"),ai=class extends fn(Ae){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Jd]=()=>{this.defaultMessages={},this.cache=new lt,this.listeners={}},this.currentUiLocale=P.getState().uiLocale,P.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=P.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 n;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...r};_e(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,n;return this.fetchContext(e),(n=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,r){let n=e.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(e,r,...n){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new No((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(r,...n)}async fetchContext(e){let r=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(i){!(i instanceof st)&&r&&console.error(i)}return n}subscribe(e,r){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(r),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new io({loadedContexts:e})),this.dispatchEvent(new io({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new io({loadedContexts:[e]})),this.dispatchEvent(new io({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>pn(0).then(()=>n()).catch(()=>null)))}};Jd=hh;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends ai{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends ai{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var ao=window.FluidTopicsI18nService,si=window.FluidTopicsCustomI18nService;var Ms=class{highlightHtml(e,r,n){Ua(e,r,n)}};window.FluidTopicsHighlightHtmlService=new Ms;var li=class extends Ae{async listMySearches(){let{session:e}=P.getState();return ud(e,he.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var $s=class{isDate(e){var r,n,i,a;return(a=(i=((n=(r=P.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,r){var n,i,a;return mr.format(e,(n=r?.locale)!==null&&n!==void 0?n:P.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new $s;var Uo=class{static get(e,r){var n,i;let a=P.getState(),{lang:s,region:l}=(i=(n=a.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new Gr(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,r??`${s}-${l}`)}};var ci=class extends Ae{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}sortEventArrays(e){let r=Object.entries(e).map(([n,i])=>Array.isArray(i)?[n,i.map(a=>typeof a=="object"&&a!=null&&!Array.isArray(a)?this.sortEventArrays(a):a).sort((a,s)=>typeof a=="object"&&a!==null&&"key"in a?a.key.localeCompare(s.key):typeof a=="string"&&typeof s=="string"?a.localeCompare(s):String(a).localeCompare(String(s)))]:typeof i=="object"&&i!==null?[n,this.sortEventArrays(i)]:[n,i]);return Object.fromEntries(r)}sendEvents(e,r){let n="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>n).catch(i=>(console.info(r),console.debug(i),n)),1e3)}};var Fs=class{urlToSearchRequest(e){return Uo.get().parse(e)}searchRequestToUrl(e){return Uo.get().serialize(e)}};window.FluidTopicsUrlService=new Fs;var vr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};vr.eventName="change";var Bs=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))}},ep=new Bs;var di=class t extends Ot{static build(){return new t(window.history,ep,()=>window.location,!1)}constructor(e,r,n,i){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(e,r=!1){let n=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),_e(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=>(n,i,[a,s,l])=>{let d=r(),u={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(i,[u,s,l]),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 n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(vr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(vr.eventName,e)}currentItem(){return So(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 So(this.states[this.previousDifferentMajorPosition()])}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 So(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 n=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!n)return e;let i=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,n);)this.hasState(a)&&(i=a),a++;return i}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 n;if(!this.hasState(e))return!1;let i=r??this.currentState.majorStateId,a=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return a==null||a!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=di.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});function tp(t,e){let{authenticationRequired:r,session:n}=P.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(e):t()}var me=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},ie=class extends H{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.apiProvider=()=>xr.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new lt,this.cleanSessionDebouncer=new ne,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return M`
|
|
625
625
|
<slot></slot>
|
|
626
|
-
`}connectedCallback(){super.connectedCallback(),P.addEventListener(br.eventName,this.reloadConfiguration)}disconnectedCallback(){P.addEventListener(br.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var r,n,i,a,s,l,d;super.update(e),e.has("baseUrl")&&(P.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&P.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&P.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&P.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&P.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&P.actions.noCustom(this.noCustom),e.has("editorMode")&&P.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&P.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&P.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>ao.addContext(u)),e.has("openExternalDocumentInNewTab")&&P.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&P.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&P.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(P.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),P.actions.availableUiLocales((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),P.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&P.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&P.actions.availableContentLocales((d=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&d!==void 0?d:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>tp(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};ie.elementDefinitions={};ie.styles=Qd;me([b()],ie.prototype,"baseUrl",void 0);me([b()],ie.prototype,"apiIntegrationIdentifier",void 0);me([b()],ie.prototype,"apiIntegrationAppVersion",void 0);me([b()],ie.prototype,"uiLocale",void 0);me([pe(null)],ie.prototype,"availableUiLocales",void 0);me([pe(null)],ie.prototype,"metadataConfiguration",void 0);me([b({type:Boolean})],ie.prototype,"editorMode",void 0);me([b({type:Boolean})],ie.prototype,"noCustom",void 0);me([b({type:Boolean})],ie.prototype,"openExternalDocumentInNewTab",void 0);me([b({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ie.prototype,"noCustomComponent",void 0);me([b({type:Boolean})],ie.prototype,"withManualResources",void 0);me([b({type:Boolean})],ie.prototype,"navigatorOnline",void 0);me([b({type:Boolean})],ie.prototype,"forcedOffline",void 0);me([b({type:Object})],ie.prototype,"apiProvider",void 0);me([b({type:Boolean})],ie.prototype,"authenticationRequired",void 0);me([pe([])],ie.prototype,"messageContexts",void 0);me([pe(void 0)],ie.prototype,"session",void 0);me([U()],ie.prototype,"localesConfiguration",void 0);me([U()],ie.prototype,"availableContentLocales",void 0);var pi=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Ow=fe(Symbol("withDateFormat"),function(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(P)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,a;return((a=(i=this.metadataDescriptors.find(l=>l.key===n))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?l=>mr.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return pi([b({type:Boolean})],e.prototype,"useLongDateFormat",void 0),pi([b({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),pi([Le({store:P.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),pi([Le({store:P.name})],e.prototype,"uiLocale",void 0),e});var ui=class extends Ae{constructor(){super(...arguments),this.CACHE_DURATION=3*60*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=P.getState().session;return!!e?.sessionAuthenticated}};var fi=class extends Ae{constructor(){super(...arguments),this.CACHE_DURATION=3*60*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=P.getState().session;return!!e?.sessionAuthenticated}};var mh="ft-user-assets",yh={setAssetCount:(t,e)=>{let{userAssetType:r,count:n}=e.payload.assetCount;t.assetCounts.allAsset[r]=n},clearAssetCount:t=>{Object.values(je).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:n,asset:i}=e.payload;Hs(t,r,[...Us(t,r),i]),rp(t,r,1,n),op(t,i)},editAsset:(t,e)=>{let{assetType:r,asset:n}=e.payload;Hs(t,r,Us(t,r).map(i=>i.id===n.id?n:i)),op(t,n)},removeAsset:(t,e)=>{let{assetType:r,mapId:n,assetId:i}=e.payload;Hs(t,r,Us(t,r).filter(a=>a.id!==i)),rp(t,r,-1,n)}},np={[je.SEARCHES]:"savedSearches",[je.BOOKMARKS]:"bookmarks",[je.BOOKS]:void 0,[je.COLLECTIONS]:void 0},Us=(t,e)=>{var r;let n=np[e];return n?(r=t[n])!==null&&r!==void 0?r:[]:[]},Hs=(t,e,r)=>{let n=np[e];n&&(t[n]=r)},rp=(t,e,r,n)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+r),e===je.BOOKMARKS&&n)){let a=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,a+r)}},op=(t,e)=>{let r=t.assetLabels.map(i=>i.title),n=e.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));t.assetLabels.push(...n)},Ue=Lt.get({name:mh,reducers:yh,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(je).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),zs=class{constructor(e=new ui,r=new fi){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=P.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ii,this.savedSearchesService=new li,P.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=P.getState();_e((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(),Ue.actions.clearAssetCount(),Ue.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ue.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ue.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Ue.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Ue.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Ue.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Ue.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Ue.getState().assetCounts.bookmarkByMap).length!==0;e===je.BOOKMARKS&&r&&Ue.actions.clearBookmarkCountByMap(),Ue.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;Ue.actions.bookmarks(r)}}},Ws=new zs;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Ws);G("ft-app-context")(ie);var Vs=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[n,i]=e.split(".");return{context:n,key:i,custom:!0,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},so=new Vs;var gh=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},zo=Symbol("i18nAttributes"),ip=Symbol("i18nListAttributes"),ap=Symbol("i18nProperties"),hi=Symbol("i18nContexts"),Ho=Symbol("i18nUnsubs"),lo=fe(Symbol("withI18n"),function(t){var e,r;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?si:ao}i18n(a){let{context:s,key:l,message:d}=a,{custom:u,args:h,argsProvider:f}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let m=h??(f?f(this):[]);return this.getI18nService(u).resolveMessage(s,l,...m)}return d}async awaitI18n(a){let{context:s,custom:l}=a;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(a)}customI18n(a,s){if(so.isI18nKey(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var u;return((u=d?.context)===null||u===void 0?void 0:u.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,u=(h,f,m)=>m?.context&&m.key&&a(h,f,m)?{...m,message:this.i18n({context:m.context,key:m.key,custom:m.custom,...h})}:m;(s=this[zo])===null||s===void 0||s.forEach((h,f)=>d[f]=u(h,f,d[f])),(l=this[ip])===null||l===void 0||l.forEach((h,f)=>{var m;return d[f]=(m=d[f])===null||m===void 0?void 0:m.map(v=>u(h,f,v))})}updateI18nProperties(a){var s;(s=this[ap])===null||s===void 0||s.forEach((l,d)=>{a(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let d=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[hi].set(d,{isCustomContext:l}),this[Ho].has(d)||this[Ho].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[hi].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[hi].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Ho].forEach(a=>a()),this[Ho].clear()}}return e=hi,r=Ho,gh([b({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),mi=class extends lo(H){},yi=class extends lo(Tt){};var js=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(n=>typeof n=="string"?so.fromAttribute(n):n):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},bh=new js;var sp=(t,e)=>(r,n)=>{var i;r.constructor.createProperty(n,{type:Object,hasChanged:Me,converter:so,...e}),r[zo]=(i=r[zo])!==null&&i!==void 0?i:new Map,r[zo].set(n,t??{})};var lp=N`
|
|
626
|
+
`}connectedCallback(){super.connectedCallback(),P.addEventListener(br.eventName,this.reloadConfiguration)}disconnectedCallback(){P.addEventListener(br.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var r,n,i,a,s,l,d;super.update(e),e.has("baseUrl")&&(P.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&P.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&P.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&P.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&P.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&P.actions.noCustom(this.noCustom),e.has("editorMode")&&P.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&P.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&P.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>ao.addContext(u)),e.has("openExternalDocumentInNewTab")&&P.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&P.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&P.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(P.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),P.actions.availableUiLocales((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),P.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&P.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&P.actions.availableContentLocales((d=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&d!==void 0?d:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>tp(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};ie.elementDefinitions={};ie.styles=Xd;me([b()],ie.prototype,"baseUrl",void 0);me([b()],ie.prototype,"apiIntegrationIdentifier",void 0);me([b()],ie.prototype,"apiIntegrationAppVersion",void 0);me([b()],ie.prototype,"uiLocale",void 0);me([pe(null)],ie.prototype,"availableUiLocales",void 0);me([pe(null)],ie.prototype,"metadataConfiguration",void 0);me([b({type:Boolean})],ie.prototype,"editorMode",void 0);me([b({type:Boolean})],ie.prototype,"noCustom",void 0);me([b({type:Boolean})],ie.prototype,"openExternalDocumentInNewTab",void 0);me([b({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ie.prototype,"noCustomComponent",void 0);me([b({type:Boolean})],ie.prototype,"withManualResources",void 0);me([b({type:Boolean})],ie.prototype,"navigatorOnline",void 0);me([b({type:Boolean})],ie.prototype,"forcedOffline",void 0);me([b({type:Object})],ie.prototype,"apiProvider",void 0);me([b({type:Boolean})],ie.prototype,"authenticationRequired",void 0);me([pe([])],ie.prototype,"messageContexts",void 0);me([pe(void 0)],ie.prototype,"session",void 0);me([U()],ie.prototype,"localesConfiguration",void 0);me([U()],ie.prototype,"availableContentLocales",void 0);var pi=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Ow=fe(Symbol("withDateFormat"),function(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(P)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,a;return((a=(i=this.metadataDescriptors.find(l=>l.key===n))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?l=>mr.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return pi([b({type:Boolean})],e.prototype,"useLongDateFormat",void 0),pi([b({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),pi([Le({store:P.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),pi([Le({store:P.name})],e.prototype,"uiLocale",void 0),e});var ui=class extends Ae{constructor(){super(...arguments),this.CACHE_DURATION=3*60*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=P.getState().session;return!!e?.sessionAuthenticated}};var fi=class extends Ae{constructor(){super(...arguments),this.CACHE_DURATION=3*60*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=P.getState().session;return!!e?.sessionAuthenticated}};var mh="ft-user-assets",yh={setAssetCount:(t,e)=>{let{userAssetType:r,count:n}=e.payload.assetCount;t.assetCounts.allAsset[r]=n},clearAssetCount:t=>{Object.values(je).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:n,asset:i}=e.payload;Hs(t,r,[...Us(t,r),i]),rp(t,r,1,n),op(t,i)},editAsset:(t,e)=>{let{assetType:r,asset:n}=e.payload;Hs(t,r,Us(t,r).map(i=>i.id===n.id?n:i)),op(t,n)},removeAsset:(t,e)=>{let{assetType:r,mapId:n,assetId:i}=e.payload;Hs(t,r,Us(t,r).filter(a=>a.id!==i)),rp(t,r,-1,n)}},np={[je.SEARCHES]:"savedSearches",[je.BOOKMARKS]:"bookmarks",[je.BOOKS]:void 0,[je.COLLECTIONS]:void 0},Us=(t,e)=>{var r;let n=np[e];return n?(r=t[n])!==null&&r!==void 0?r:[]:[]},Hs=(t,e,r)=>{let n=np[e];n&&(t[n]=r)},rp=(t,e,r,n)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+r),e===je.BOOKMARKS&&n)){let a=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,a+r)}},op=(t,e)=>{let r=t.assetLabels.map(i=>i.title),n=e.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));t.assetLabels.push(...n)},Ue=Lt.get({name:mh,reducers:yh,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(je).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),zs=class{constructor(e=new ui,r=new fi){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=P.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ii,this.savedSearchesService=new li,P.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=P.getState();_e((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(),Ue.actions.clearAssetCount(),Ue.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ue.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ue.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Ue.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Ue.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Ue.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Ue.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Ue.getState().assetCounts.bookmarkByMap).length!==0;e===je.BOOKMARKS&&r&&Ue.actions.clearBookmarkCountByMap(),Ue.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;Ue.actions.bookmarks(r)}}},Ws=new zs;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Ws);G("ft-app-context")(ie);var Vs=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[n,i]=e.split(".");return{context:n,key:i,custom:!0,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},so=new Vs;var gh=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},zo=Symbol("i18nAttributes"),ip=Symbol("i18nListAttributes"),ap=Symbol("i18nProperties"),hi=Symbol("i18nContexts"),Ho=Symbol("i18nUnsubs"),lo=fe(Symbol("withI18n"),function(t){var e,r;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?si:ao}i18n(a){let{context:s,key:l,message:d}=a,{custom:u,args:h,argsProvider:f}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let m=h??(f?f(this):[]);return this.getI18nService(u).resolveMessage(s,l,...m)}return d}async awaitI18n(a){let{context:s,custom:l}=a;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(a)}customI18n(a,s){if(so.isI18nKey(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var u;return((u=d?.context)===null||u===void 0?void 0:u.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,u=(h,f,m)=>m?.context&&m.key&&a(h,f,m)?{...m,message:this.i18n({context:m.context,key:m.key,custom:m.custom,...h})}:m;(s=this[zo])===null||s===void 0||s.forEach((h,f)=>d[f]=u(h,f,d[f])),(l=this[ip])===null||l===void 0||l.forEach((h,f)=>{var m;return d[f]=(m=d[f])===null||m===void 0?void 0:m.map(v=>u(h,f,v))})}updateI18nProperties(a){var s;(s=this[ap])===null||s===void 0||s.forEach((l,d)=>{a(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let d=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[hi].set(d,{isCustomContext:l}),this[Ho].has(d)||this[Ho].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[hi].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[hi].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Ho].forEach(a=>a()),this[Ho].clear()}}return e=hi,r=Ho,gh([b({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),mi=class extends lo(H){},yi=class extends lo(Tt){};var js=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(n=>typeof n=="string"?so.fromAttribute(n):n):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},bh=new js;var sp=(t,e)=>(r,n)=>{var i;r.constructor.createProperty(n,{type:Object,hasChanged:Me,converter:so,...e}),r[zo]=(i=r[zo])!==null&&i!==void 0?i:new Map,r[zo].set(n,t??{})};var lp=N`
|
|
627
627
|
`;var Wo=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},tt=class extends yi{constructor(){super(),this.editorMode=!1,this.addStore(P)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":j:M`
|
|
628
628
|
<span class="ft-i18n">
|
|
629
629
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
@@ -643,19 +643,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
643
643
|
</div>
|
|
644
644
|
</div>
|
|
645
645
|
</div>
|
|
646
|
-
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseenter",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("mouseenter",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){e.has("visible")&&this.visible&&this.resetTooltipContent(),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 n=this.manual;this.manual=!0;let i=this.text;this.text={message:e},await this.show(r),this.text=i,this.manual=n}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&&(this.tooltip.style.left="",this.tooltip.style.top="",Na(this.slottedElement,this.tooltip,this.position).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${k.transitionDuration}, left ${k.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||ea(e,this.ignoreMatchingElements,this.eventsTarget)}};ye.elementDefinitions={"ft-typography":ue};ye.styles=Yd;rt([sp()],ye.prototype,"text",void 0);rt([b({type:Boolean})],ye.prototype,"manual",void 0);rt([b({type:Boolean})],ye.prototype,"inline",void 0);rt([ct()],ye.prototype,"delay",void 0);rt([b()],ye.prototype,"position",void 0);rt([pe([])],ye.prototype,"ignoreMatchingElements",void 0);rt([Gi()],ye.prototype,"slotNodes",void 0);rt([W(".ft-tooltip--container")],ye.prototype,"container",void 0);rt([W(".ft-tooltip")],ye.prototype,"tooltip",void 0);rt([W(".ft-tooltip--content")],ye.prototype,"tooltipContent",void 0);rt([U()],ye.prototype,"visible",void 0);G("ft-tooltip")(ye);var bi;(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.EYE="",t.SHARE="󨃱",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.CLOUD_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID="",t.FILE_CODE="",t.BOX_CODE=""})(bi||(bi={}));var L;(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=""})(L||(L={}));var ZA=new Map([...["abw"].map(t=>[t,L.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,L.AUDIO]),...["avi"].map(t=>[t,L.AVI]),...["chm","xhs"].map(t=>[t,L.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,L.CODE]),...["csv"].map(t=>[t,L.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,L.DITA]),...["epub"].map(t=>[t,L.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,L.EXCEL]),...["flac"].map(t=>[t,L.FLAC]),...["gif"].map(t=>[t,L.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,L.GZIP]),...["html","htm","xhtml"].map(t=>[t,L.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,L.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,L.JPEG]),...["json"].map(t=>[t,L.JSON]),...["m4a","m4p"].map(t=>[t,L.M4A]),...["mov","qt"].map(t=>[t,L.MOV]),...["mp3"].map(t=>[t,L.MP3]),...["mp4","m4v"].map(t=>[t,L.MP4]),...["ogg","oga"].map(t=>[t,L.OGG]),...["pdf","ps"].map(t=>[t,L.PDF]),...["png"].map(t=>[t,L.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,L.POWERPOINT]),...["rar"].map(t=>[t,L.RAR]),...["stp"].map(t=>[t,L.STP]),...["txt","rtf","md","mdown"].map(t=>[t,L.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,L.VIDEO]),...["wav"].map(t=>[t,L.WAV]),...["wma"].map(t=>[t,L.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,L.WORD]),...["xml","xsl","rdf"].map(t=>[t,L.XML]),...["yaml","yml","x-yaml"].map(t=>[t,L.YAML]),...["zip"].map(t=>[t,L.ZIP])]);var qA={[L.ABW]:"#91ABC6",[L.AUDIO]:"#1795E3",[L.AVI]:"#E63324",[L.CHM]:"#71C3EB",[L.CODE]:"#71C3EB",[L.CSV]:"#1F7345",[L.DITA]:"#71C3EB",[L.EPUB]:"#85B926",[L.EXCEL]:"#1F7345",[L.FLAC]:"#1795E3",[L.GIF]:"#59B031",[L.GZIP]:"#F8AB36",[L.HTML]:"#71C3EB",[L.IMAGE]:"#59B031",[L.JPEG]:"#59B031",[L.JSON]:"#71C3EB",[L.M4A]:"#1795E3",[L.MOV]:"#E63324",[L.MP3]:"#1795E3",[L.MP4]:"#E63324",[L.OGG]:"#1795E3",[L.PDF]:"#E44948",[L.PNG]:"#59B031",[L.POWERPOINT]:"#B54A2B",[L.RAR]:"#F8AB36",[L.STP]:"#3764B1",[L.TEXT]:"#3162AB",[L.UNKNOWN]:"#999999",[L.VIDEO]:"#E63324",[L.WAV]:"#1795E3",[L.WMA]:"#1795E3",[L.WORD]:"#3162AB",[L.XML]:"#71C3EB",[L.YAML]:"#71C3EB",[L.ZIP]:"#F8AB36"};var gt;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(gt||(gt={}));var Vo=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Pe=class extends H{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=j}render(){let e=this.variant&&Object.values(gt).includes(this.variant)?this.variant:gt.fluid_topics,r=e!==gt.material||!!this.value;return M`
|
|
646
|
+
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseenter",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("mouseenter",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){e.has("visible")&&this.visible&&this.resetTooltipContent(),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 n=this.manual;this.manual=!0;let i=this.text;this.text={message:e},await this.show(r),this.text=i,this.manual=n}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&&(this.tooltip.style.left="",this.tooltip.style.top="",Na(this.slottedElement,this.tooltip,this.position).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${k.transitionDuration}, left ${k.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||ea(e,this.ignoreMatchingElements,this.eventsTarget)}};ye.elementDefinitions={"ft-typography":ue};ye.styles=Qd;rt([sp()],ye.prototype,"text",void 0);rt([b({type:Boolean})],ye.prototype,"manual",void 0);rt([b({type:Boolean})],ye.prototype,"inline",void 0);rt([ct()],ye.prototype,"delay",void 0);rt([b()],ye.prototype,"position",void 0);rt([pe([])],ye.prototype,"ignoreMatchingElements",void 0);rt([Gi()],ye.prototype,"slotNodes",void 0);rt([W(".ft-tooltip--container")],ye.prototype,"container",void 0);rt([W(".ft-tooltip")],ye.prototype,"tooltip",void 0);rt([W(".ft-tooltip--content")],ye.prototype,"tooltipContent",void 0);rt([U()],ye.prototype,"visible",void 0);G("ft-tooltip")(ye);var bi;(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.EYE="",t.SHARE="󨃱",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.CLOUD_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID="",t.FILE_CODE="",t.BOX_CODE=""})(bi||(bi={}));var L;(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=""})(L||(L={}));var ZA=new Map([...["abw"].map(t=>[t,L.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,L.AUDIO]),...["avi"].map(t=>[t,L.AVI]),...["chm","xhs"].map(t=>[t,L.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,L.CODE]),...["csv"].map(t=>[t,L.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,L.DITA]),...["epub"].map(t=>[t,L.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,L.EXCEL]),...["flac"].map(t=>[t,L.FLAC]),...["gif"].map(t=>[t,L.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,L.GZIP]),...["html","htm","xhtml"].map(t=>[t,L.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,L.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,L.JPEG]),...["json"].map(t=>[t,L.JSON]),...["m4a","m4p"].map(t=>[t,L.M4A]),...["mov","qt"].map(t=>[t,L.MOV]),...["mp3"].map(t=>[t,L.MP3]),...["mp4","m4v"].map(t=>[t,L.MP4]),...["ogg","oga"].map(t=>[t,L.OGG]),...["pdf","ps"].map(t=>[t,L.PDF]),...["png"].map(t=>[t,L.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,L.POWERPOINT]),...["rar"].map(t=>[t,L.RAR]),...["stp"].map(t=>[t,L.STP]),...["txt","rtf","md","mdown"].map(t=>[t,L.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,L.VIDEO]),...["wav"].map(t=>[t,L.WAV]),...["wma"].map(t=>[t,L.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,L.WORD]),...["xml","xsl","rdf"].map(t=>[t,L.XML]),...["yaml","yml","x-yaml"].map(t=>[t,L.YAML]),...["zip"].map(t=>[t,L.ZIP])]);var qA={[L.ABW]:"#91ABC6",[L.AUDIO]:"#1795E3",[L.AVI]:"#E63324",[L.CHM]:"#71C3EB",[L.CODE]:"#71C3EB",[L.CSV]:"#1F7345",[L.DITA]:"#71C3EB",[L.EPUB]:"#85B926",[L.EXCEL]:"#1F7345",[L.FLAC]:"#1795E3",[L.GIF]:"#59B031",[L.GZIP]:"#F8AB36",[L.HTML]:"#71C3EB",[L.IMAGE]:"#59B031",[L.JPEG]:"#59B031",[L.JSON]:"#71C3EB",[L.M4A]:"#1795E3",[L.MOV]:"#E63324",[L.MP3]:"#1795E3",[L.MP4]:"#E63324",[L.OGG]:"#1795E3",[L.PDF]:"#E44948",[L.PNG]:"#59B031",[L.POWERPOINT]:"#B54A2B",[L.RAR]:"#F8AB36",[L.STP]:"#3764B1",[L.TEXT]:"#3162AB",[L.UNKNOWN]:"#999999",[L.VIDEO]:"#E63324",[L.WAV]:"#1795E3",[L.WMA]:"#1795E3",[L.WORD]:"#3162AB",[L.XML]:"#71C3EB",[L.YAML]:"#71C3EB",[L.ZIP]:"#F8AB36"};var gt;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(gt||(gt={}));var Vo=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Pe=class extends H{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=j}render(){let e=this.variant&&Object.values(gt).includes(this.variant)?this.variant:gt.fluid_topics,r=e!==gt.material||!!this.value;return M`
|
|
647
647
|
<i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
|
|
648
648
|
${Qi(this.resolvedIcon)}
|
|
649
649
|
<slot ?hidden=${r}></slot>
|
|
650
650
|
</i>
|
|
651
|
-
`}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.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 n=this.value||this.getTextContent();switch(this.variant){case gt.file_format:this.resolvedIcon=(e=L[n.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:n;break;case gt.material:this.resolvedIcon=this.value||j;break;default:this.resolvedIcon=(r=bi[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};Pe.elementDefinitions={};Pe.styles=
|
|
651
|
+
`}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.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 n=this.value||this.getTextContent();switch(this.variant){case gt.file_format:this.resolvedIcon=(e=L[n.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:n;break;case gt.material:this.resolvedIcon=this.value||j;break;default:this.resolvedIcon=(r=bi[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};Pe.elementDefinitions={};Pe.styles=Kd;Vo([b()],Pe.prototype,"variant",void 0);Vo([b()],Pe.prototype,"value",void 0);Vo([b({reflect:!0,attribute:"aria-hidden"})],Pe.prototype,"ariaHidden",void 0);Vo([U()],Pe.prototype,"resolvedIcon",void 0);Vo([W("slot")],Pe.prototype,"slottedContent",void 0);G("ft-icon")(Pe);var Sr=class extends H{render(){return M`
|
|
652
652
|
<div class="ft-loader">
|
|
653
653
|
<div></div>
|
|
654
654
|
<div></div>
|
|
655
655
|
<div></div>
|
|
656
656
|
<div></div>
|
|
657
657
|
</div>
|
|
658
|
-
`}};Sr.styles=
|
|
658
|
+
`}};Sr.styles=Gd;G("ft-loader")(Sr);var Gs=t=>t??j;var ge=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},te=class extends vs(H){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,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.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,n;let i=M`
|
|
659
659
|
<ft-ripple part="ripple"
|
|
660
660
|
?disabled=${this.isDisabled()}
|
|
661
661
|
?activated=${this.activated}
|
|
@@ -697,7 +697,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
697
697
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
698
698
|
`:M`
|
|
699
699
|
<slot part="icon" name="icon"></slot>
|
|
700
|
-
`}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 n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.getTextContent()}getTextContent(){return un(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};te.elementDefinitions={"ft-ripple":ee,"ft-tooltip":ye,"ft-icon":Pe,"ft-loader":Sr};ge([b()],te.prototype,"href",void 0);ge([b()],te.prototype,"target",void 0);ge([b()],te.prototype,"type",void 0);ge([b({type:Boolean})],te.prototype,"disabled",void 0);ge([b()],te.prototype,"label",void 0);ge([b()],te.prototype,"icon",void 0);ge([b()],te.prototype,"iconVariant",void 0);ge([b({type:Boolean})],te.prototype,"trailingIcon",void 0);ge([b({type:Boolean})],te.prototype,"loading",void 0);ge([b({attribute:"aria-label"})],te.prototype,"ariaLabel",void 0);ge([b()],te.prototype,"ariaHasPopup",void 0);ge([b({attribute:"aria-pressed"})],te.prototype,"ariaPressed",void 0);ge([b()],te.prototype,"tooltipPosition",void 0);ge([b({type:Boolean})],te.prototype,"hideTooltip",void 0);ge([b({type:Boolean})],te.prototype,"forceTooltip",void 0);ge([b({type:Boolean})],te.prototype,"activated",void 0);ge([W(".ft-button")],te.prototype,"button",void 0);ge([W(".ft-button--label slot")],te.prototype,"slottedContent",void 0);ge([W("[part=tooltip]")],te.prototype,"tooltip",void 0);var xi=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Re=class extends te{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}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}}get typographyVariant(){return Ne.button}};Re.elementDefinitions={...te.elementDefinitions,"ft-or-ftds-typography":ue};Re.styles=[Rt,
|
|
700
|
+
`}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 n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.getTextContent()}getTextContent(){return un(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};te.elementDefinitions={"ft-ripple":ee,"ft-tooltip":ye,"ft-icon":Pe,"ft-loader":Sr};ge([b()],te.prototype,"href",void 0);ge([b()],te.prototype,"target",void 0);ge([b()],te.prototype,"type",void 0);ge([b({type:Boolean})],te.prototype,"disabled",void 0);ge([b()],te.prototype,"label",void 0);ge([b()],te.prototype,"icon",void 0);ge([b()],te.prototype,"iconVariant",void 0);ge([b({type:Boolean})],te.prototype,"trailingIcon",void 0);ge([b({type:Boolean})],te.prototype,"loading",void 0);ge([b({attribute:"aria-label"})],te.prototype,"ariaLabel",void 0);ge([b()],te.prototype,"ariaHasPopup",void 0);ge([b({attribute:"aria-pressed"})],te.prototype,"ariaPressed",void 0);ge([b()],te.prototype,"tooltipPosition",void 0);ge([b({type:Boolean})],te.prototype,"hideTooltip",void 0);ge([b({type:Boolean})],te.prototype,"forceTooltip",void 0);ge([b({type:Boolean})],te.prototype,"activated",void 0);ge([W(".ft-button")],te.prototype,"button",void 0);ge([W(".ft-button--label slot")],te.prototype,"slottedContent",void 0);ge([W("[part=tooltip]")],te.prototype,"tooltip",void 0);var xi=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Re=class extends te{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}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}}get typographyVariant(){return Ne.button}};Re.elementDefinitions={...te.elementDefinitions,"ft-or-ftds-typography":ue};Re.styles=[Rt,Yd];xi([b({type:Boolean})],Re.prototype,"primary",void 0);xi([b({type:Boolean})],Re.prototype,"outlined",void 0);xi([b({type:Boolean})],Re.prototype,"dense",void 0);xi([b({type:Boolean})],Re.prototype,"round",void 0);var xh={...g,iconOnlyScale:o.create("--ft-button-icon-only-scale","","NUMBER","1")},cp=[N`
|
|
701
701
|
:host {
|
|
702
702
|
display: inline-block;
|
|
703
703
|
max-width: 100%;
|
|
@@ -1603,7 +1603,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
1603
1603
|
margin: 10px 0;
|
|
1604
1604
|
color: ${Zo.colorOnSurfaceMedium};
|
|
1605
1605
|
}
|
|
1606
|
-
`;var Ce=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},de=class extends lo(
|
|
1606
|
+
`;var Ce=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},de=class extends lo(gd(H)){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 ne(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 M`
|
|
1607
1607
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
1608
1608
|
${this.parent==null?null:M`
|
|
1609
1609
|
<div tabindex="0"
|
|
@@ -2034,7 +2034,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
2034
2034
|
multivalued
|
|
2035
2035
|
@change=${()=>this.onSelectionChange()}
|
|
2036
2036
|
></ft-filter>
|
|
2037
|
-
`}onSelectionChange(){var e;(e=this.filter)===null||e===void 0||e.options.forEach(r=>this.options[r.value].onChange(!!r.selected))}};nt.elementDefinitions={"ft-filter":q};nt.styles=
|
|
2037
|
+
`}onSelectionChange(){var e;(e=this.filter)===null||e===void 0||e.options.forEach(r=>this.options[r.value].onChange(!!r.selected))}};nt.elementDefinitions={"ft-filter":q};nt.styles=Sd;Qo([Le({selector:qs})],nt.prototype,"searchInDocumentTitlesOnly",void 0);Qo([b({type:Boolean})],nt.prototype,"hideSearchInDocumentTitlesOnly",void 0);Qo([Le({selector:Ys})],nt.prototype,"matchAllKeywords",void 0);Qo([b({type:Boolean})],nt.prototype,"displayMatchAllKeywords",void 0);Qo([W("ft-filter")],nt.prototype,"filter",void 0);G("ft-search-type")(nt);})();
|
|
2038
2038
|
/*! Bundled license information:
|
|
2039
2039
|
|
|
2040
2040
|
@webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js:
|