@fluid-topics/ft-file-drop 1.3.54 → 1.3.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-file-drop.light.js +16 -16
- package/build/ft-file-drop.min.js +34 -34
- package/package.json +4 -4
|
@@ -45,7 +45,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
45
45
|
input::-webkit-search-results-decoration {
|
|
46
46
|
display: none;
|
|
47
47
|
}
|
|
48
|
-
`;var dl={};var Qi={};K(Qi,{ParametrizedLabelResolver:()=>oo});var oo=class t{constructor(e,o){this.defaultLabels=e,this.labels=o}resolve(e,...o){var n,i;e=this.resolvePluralKey(e,o);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...o)}static replaceParameters(e,...o){return o.forEach((n,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,o){for(let n of o)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,o){return e instanceof Date?t.formatDate(e,o):e??""}static formatDate(e,o){let n=i=>o?.includes("date")?e.toLocaleDateString(i):o?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var Ea={};K(Ea,{FtCommandQueue:()=>no,FtLitElementRedux:()=>ao,FtReduxStore:()=>zt,FtStateManager:()=>Oa,ReduxWatcher:()=>vn,clearAllStores:()=>of,isFtReduxStore:()=>dr,redux:()=>cr,reduxEventListener:()=>vu,reduxReactive:()=>xu,watch:()=>nf,withRedux:()=>pl});var xu=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},cr=t=>{let e=t??{};return(o,n)=>{var i;let a={hasChanged:st,attribute:!1,...e};S(a)(o,n);let s=o.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})}},vu=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var no=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};function dr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var io=Symbol("internalReduxEventsUnsubscribers"),St=Symbol("internalStoresUnsubscribers"),Ut=Symbol("internalStores"),pl=he(Symbol("withRedux"),function(t){var e,o,n;class i extends t{constructor(){super(...arguments),this[e]=new Map,this[o]=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[Ut].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ut].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Ut].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[Ut].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Ut].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Ut].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[St].has(s.store):this[St].size>0)&&(this[l]=s.selector(u.getState(),this))}})}subscribeToStore(s,l){var d;this[St].set(s,l.subscribe(()=>this.updateFromStores())),this[io].set(s,[]),dr(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=y=>this[h](y);l.addEventListener(u.eventName,f),this[io].get(s).push(()=>l.removeEventListener(u.eventName,f))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[St].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[St].has(s)&&this[St].get(s)(),this[St].delete(s),(l=this[io].get(s))===null||l===void 0||l.forEach(d=>d()),this[io].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=St,o=Ut,n=io,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),ao=class extends pl(j){};function ke(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ht(t){return!!t&&!!t[te]}function je(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Tu}(t)||Array.isArray(t)||!!t[bl]||!!(!((e=t.constructor)===null||e===void 0)&&e[bl])||la(t)||ca(t))}function Ft(t,e,o){o===void 0&&(o=!1),fr(t)===0?(o?Object.keys:ur)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function fr(t){var e=t[te];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:la(t)?2:ca(t)?3:0}function pr(t,e){return fr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Su(t,e){return fr(t)===2?t.get(e):t[e]}function xl(t,e,o){var n=fr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function vl(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function la(t){return wu&&t instanceof Map}function ca(t){return Ru&&t instanceof Set}function Ct(t){return t.o||t.t}function da(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Ol(t);delete e[te];for(var o=ur(e),n=0;n<o.length;n++){var i=o[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 pa(t,e){return e===void 0&&(e=!1),ua(t)||ht(t)||!je(t)||(fr(t)>1&&(t.set=t.add=t.clear=t.delete=Cu),Object.freeze(t),e&&Ft(t,function(o,n){return pa(n,!0)},!0)),t}function Cu(){ke(2)}function ua(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function rt(t){var e=sa[t];return e||ke(18,t),e}function Ou(t,e){sa[t]||(sa[t]=e)}function na(){return lo}function ea(t,e){e&&(rt("Patches"),t.u=[],t.s=[],t.v=e)}function yn(t){ia(t),t.p.forEach(Eu),t.p=null}function ia(t){t===lo&&(lo=t.l)}function ul(t){return lo={p:[],l:lo,h:t,m:!0,_:0}}function Eu(t){var e=t[te];e.i===0||e.i===1?e.j():e.g=!0}function ta(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||rt("ES5").S(e,t,n),n?(o[te].P&&(yn(e),ke(4)),je(t)&&(t=mn(e,t),e.l||gn(e,t)),e.u&&rt("Patches").M(o[te].t,t,e.u,e.s)):t=mn(e,o,[]),yn(e),e.u&&e.v(e.u,e.s),t!==Cl?t:void 0}function mn(t,e,o){if(ua(e))return e;var n=e[te];if(!n)return Ft(e,function(l,d){return fl(t,n,e,l,d,o)},!0),e;if(n.A!==t)return e;if(!n.P)return gn(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=da(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),Ft(a,function(l,d){return fl(t,n,i,l,d,o,s)}),gn(t,i,!1),o&&t.u&&rt("Patches").N(n,o,t.u,t.s)}return n.o}function fl(t,e,o,n,i,a,s){if(ht(i)){var l=mn(t,i,a&&e&&e.i!==3&&!pr(e.R,n)?a.concat(n):void 0);if(xl(o,n,l),!ht(l))return;t.m=!1}else s&&o.add(i);if(je(i)&&!ua(i)){if(!t.h.D&&t._<1)return;mn(t,i),e&&e.A.l||gn(t,i)}}function gn(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&pa(e,o)}function ra(t,e){var o=t[te];return(o?Ct(o):t)[e]}function hl(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function Ot(t){t.P||(t.P=!0,t.l&&Ot(t.l))}function oa(t){t.o||(t.o=da(t.t))}function aa(t,e,o){var n=la(e)?rt("MapSet").F(e,o):ca(e)?rt("MapSet").T(e,o):t.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:na(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=l,u=co;s&&(d=[l],u=so);var h=Proxy.revocable(d,u),f=h.revoke,y=h.proxy;return l.k=y,l.j=f,y}(e,o):rt("ES5").J(e,o);return(o?o.A:na()).p.push(n),n}function Au(t){return ht(t)||ke(22,t),function e(o){if(!je(o))return o;var n,i=o[te],a=fr(o);if(i){if(!i.P&&(i.i<4||!rt("ES5").K(i)))return i.t;i.I=!0,n=yl(o,a),i.I=!1}else n=yl(o,a);return Ft(n,function(s,l){i&&Su(i.t,s)===l||xl(n,s,e(l))}),a===3?new Set(n):n}(t)}function yl(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return da(t)}function Sl(){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[te];return co.get(u,s)},set:function(u){var h=this[te];co.set(h,s,u)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][te];if(!d.P)switch(d.i){case 5:n(d)&&Ot(d);break;case 4:o(d)&&Ot(d)}}}function o(s){for(var l=s.t,d=s.k,u=ur(d),h=u.length-1;h>=0;h--){var f=u[h];if(f!==te){var y=l[f];if(y===void 0&&!pr(l,f))return!0;var x=d[f],b=x&&x[te];if(b?b.t!==y:!vl(x,y))return!0}}var w=!!l[te];return u.length!==ur(l).length+(w?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&&ke(3,JSON.stringify(Ct(s)))}var a={};Ou("ES5",{J:function(s,l){var d=Array.isArray(s),u=function(f,y){if(f){for(var x=Array(y.length),b=0;b<y.length;b++)Object.defineProperty(x,""+b,t(b,!0));return x}var w=Ol(y);delete w[te];for(var R=ur(w),L=0;L<R.length;L++){var N=R[L];w[N]=t(N,f||!!w[N].enumerable)}return Object.create(Object.getPrototypeOf(y),w)}(d,s),h={i:d?5:4,A:l?l.A:na(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,te,{value:h,writable:!0}),u},S:function(s,l,d){d?ht(l)&&l[te].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var f=h[te];if(f){var y=f.t,x=f.k,b=f.R,w=f.i;if(w===4)Ft(x,function(v){v!==te&&(y[v]!==void 0||pr(y,v)?b[v]||u(x[v]):(b[v]=!0,Ot(f)))}),Ft(y,function(v){x[v]!==void 0||pr(x,v)||(b[v]=!1,Ot(f))});else if(w===5){if(n(f)&&(Ot(f),b.length=!0),x.length<y.length)for(var R=x.length;R<y.length;R++)b[R]=!1;else for(var L=y.length;L<x.length;L++)b[L]=!0;for(var N=Math.min(x.length,y.length),E=0;E<N;E++)x.hasOwnProperty(E)||(b[E]=!0),b[E]===void 0&&u(x[E])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var ml,lo,fa=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",wu=typeof Map<"u",Ru=typeof Set<"u",gl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Cl=fa?Symbol.for("immer-nothing"):((ml={})["immer-nothing"]=!0,ml),bl=fa?Symbol.for("immer-draftable"):"__$immer_draftable",te=fa?Symbol.for("immer-state"):"__$immer_state";var Tu=""+Object.prototype.constructor,ur=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Ol=Object.getOwnPropertyDescriptors||function(t){var e={};return ur(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},sa={},co={get:function(t,e){if(e===te)return t;var o=Ct(t);if(!pr(o,e))return function(i,a,s){var l,d=hl(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,o,e);var n=o[e];return t.I||!je(n)?n:n===ra(t.t,e)?(oa(t),t.o[e]=aa(t.A.h,n,t)):n},has:function(t,e){return e in Ct(t)},ownKeys:function(t){return Reflect.ownKeys(Ct(t))},set:function(t,e,o){var n=hl(Ct(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var i=ra(Ct(t),e),a=i?.[te];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(vl(o,i)&&(o!==void 0||pr(t.t,e)))return!0;oa(t),Ot(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return ra(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,oa(t),Ot(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Ct(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){ke(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ke(12)}},so={};Ft(co,function(t,e){so[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),so.deleteProperty=function(t,e){return so.set.call(this,t,e,void 0)},so.set=function(t,e,o){return co.set.call(this,t[0],e,o,t[0])};var Lu=function(){function t(o){var n=this;this.O=gl,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(w){var R=this;w===void 0&&(w=l);for(var L=arguments.length,N=Array(L>1?L-1:0),E=1;E<L;E++)N[E-1]=arguments[E];return d.produce(w,function(v){var A;return(A=a).call.apply(A,[R,v].concat(N))})}}var u;if(typeof a!="function"&&ke(6),s!==void 0&&typeof s!="function"&&ke(7),je(i)){var h=ul(n),f=aa(n,i,void 0),y=!0;try{u=a(f),y=!1}finally{y?yn(h):ia(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(w){return ea(h,s),ta(w,h)},function(w){throw yn(h),w}):(ea(h,s),ta(u,h))}if(!i||typeof i!="object"){if((u=a(i))===void 0&&(u=i),u===Cl&&(u=void 0),n.D&&pa(u,!0),s){var x=[],b=[];rt("Patches").M(i,u,x,b),s(x,b)}return u}ke(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),y=1;y<h;y++)f[y-1]=arguments[y];return n.produceWithPatches(u,function(x){return i.apply(void 0,[x].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 o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){je(o)||ke(8),ht(o)&&(o=Au(o));var n=ul(this),i=aa(this,o,void 0);return i[te].C=!0,ia(n),i},e.finishDraft=function(o,n){var i=o&&o[te],a=i.A;return ea(a,n),ta(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!gl&&ke(20),this.O=o},e.applyPatches=function(o,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}i>-1&&(n=n.slice(i+1));var s=rt("Patches").$;return ht(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),Re=new Lu,_u=Re.produce,px=Re.produceWithPatches.bind(Re),ux=Re.setAutoFreeze.bind(Re),fx=Re.setUseProxies.bind(Re),hx=Re.applyPatches.bind(Re),yx=Re.createDraft.bind(Re),mx=Re.finishDraft.bind(Re),bn=_u;function Ht(t){"@babel/helpers - typeof";return Ht=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},Ht(t)}function El(t,e){if(Ht(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Ht(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Al(t){var e=El(t,"string");return Ht(e)=="symbol"?e:e+""}function wl(t,e,o){return(e=Al(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Rl(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),o.push.apply(o,n)}return o}function ha(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Rl(Object(o),!0).forEach(function(n){wl(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Rl(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function be(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 Tl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ya=function(){return Math.random().toString(36).substring(7).split("").join(".")},xn={INIT:"@@redux/INIT"+ya(),REPLACE:"@@redux/REPLACE"+ya(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ya()}};function Nu(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 ma(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(be(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(be(1));return o(ma)(t,e)}if(typeof t!="function")throw new Error(be(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(be(3));return a}function f(w){if(typeof w!="function")throw new Error(be(4));if(d)throw new Error(be(5));var R=!0;return u(),l.push(w),function(){if(R){if(d)throw new Error(be(6));R=!1,u();var N=l.indexOf(w);l.splice(N,1),s=null}}}function y(w){if(!Nu(w))throw new Error(be(7));if(typeof w.type>"u")throw new Error(be(8));if(d)throw new Error(be(9));try{d=!0,a=i(a,w)}finally{d=!1}for(var R=s=l,L=0;L<R.length;L++){var N=R[L];N()}return w}function x(w){if(typeof w!="function")throw new Error(be(10));i=w,y({type:xn.REPLACE})}function b(){var w,R=f;return w={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(be(11));function E(){N.next&&N.next(h())}E();var v=R(E);return{unsubscribe:v}}},w[Tl]=function(){return this},w}return y({type:xn.INIT}),n={dispatch:y,subscribe:f,getState:h,replaceReducer:x},n[Tl]=b,n}function Iu(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:xn.INIT});if(typeof n>"u")throw new Error(be(12));if(typeof o(void 0,{type:xn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(be(13))})}function Ll(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(o[i]=t[i])}var a=Object.keys(o),s,l;try{Iu(o)}catch(d){l=d}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var f;for(var y=!1,x={},b=0;b<a.length;b++){var w=a[b],R=o[w],L=u[w],N=R(L,h);if(typeof N>"u"){var E=h&&h.type;throw new Error(be(14))}x[w]=N,y=y||N!==L}return y=y||a.length!==Object.keys(u).length,y?x:u}}function hr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];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 _l(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(be(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=hr.apply(void 0,l)(i.dispatch),ha(ha({},i),{},{dispatch:a})}}}function Nl(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 Il=Nl();Il.withExtraArgument=Nl;var ga=Il;var $l=function(){var t=function(e,o){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,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Pu=function(t,e){var o={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(;o;)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 o.label++,{value:u[1],done:!1};case 5:o.label++,i=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(u[0]===6&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}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}}},yr=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},ku=Object.defineProperty,Du=Object.defineProperties,Mu=Object.getOwnPropertyDescriptors,Pl=Object.getOwnPropertySymbols,$u=Object.prototype.hasOwnProperty,Bu=Object.prototype.propertyIsEnumerable,kl=function(t,e,o){return e in t?ku(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Et=function(t,e){for(var o in e||(e={}))$u.call(e,o)&&kl(t,o,e[o]);if(Pl)for(var n=0,i=Pl(e);n<i.length;n++){var o=i[n];Bu.call(e,o)&&kl(t,o,e[o])}return t},ba=function(t,e){return Du(t,Mu(e))},Uu=function(t,e,o){return new Promise(function(n,i){var a=function(d){try{l(o.next(d))}catch(u){i(u)}},s=function(d){try{l(o.throw(d))}catch(u){i(u)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(a,s)};l((o=o.apply(t,e)).next())})};var Fu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?hr:hr.apply(null,arguments)},kx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Hu(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var zu=function(t){$l(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||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 o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,yr([void 0],o[0].concat(this)))):new(e.bind.apply(e,yr([void 0],o.concat(this))))},e}(Array),Wu=function(t){$l(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||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 o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,yr([void 0],o[0].concat(this)))):new(e.bind.apply(e,yr([void 0],o.concat(this))))},e}(Array);function Sa(t){return je(t)?bn(t,function(){}):t}function Gu(t){return typeof t=="boolean"}function ju(){return function(e){return Vu(e)}}function Vu(t){t===void 0&&(t={});var e=t.thunk,o=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 zu;if(o&&(Gu(o)?l.push(ga):l.push(ga.withExtraArgument(o.extraArgument))),0){if(i)var d;if(s)var u}return l}var xa=!0;function Bl(t){var e=ju(),o=t||{},n=o.reducer,i=n===void 0?void 0:n,a=o.middleware,s=a===void 0?e():a,l=o.devTools,d=l===void 0?!0:l,u=o.preloadedState,h=u===void 0?void 0:u,f=o.enhancers,y=f===void 0?void 0:f,x;if(typeof i=="function")x=i;else if(Hu(i))x=Ll(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 b=s;if(typeof b=="function"&&(b=b(e),!xa&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!xa&&b.some(function(v){return typeof v!="function"}))throw new Error("each middleware provided to configureStore must be a function");var w=_l.apply(void 0,b),R=hr;d&&(R=Fu(Et({trace:!xa},typeof d=="object"&&d)));var L=new Wu(w),N=L;Array.isArray(y)?N=yr([w],y):typeof y=="function"&&(N=y(L));var E=R.apply(void 0,N);return ma(x,h,E)}function At(t,e){function o(){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 Et(Et({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function Ul(t){var e={},o=[],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 o.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,o,n]}function Ku(t){return typeof t=="function"}function Zu(t,e,o,n){o===void 0&&(o=[]);var i=typeof e=="function"?Ul(e):[e,o,n],a=i[0],s=i[1],l=i[2],d;if(Ku(t))d=function(){return Sa(t())};else{var u=Sa(t);d=function(){return u}}function h(f,y){f===void 0&&(f=d());var x=yr([a[y.type]],s.filter(function(b){var w=b.matcher;return w(y)}).map(function(b){var w=b.reducer;return w}));return x.filter(function(b){return!!b}).length===0&&(x=[l]),x.reduce(function(b,w){if(w)if(ht(b)){var R=b,L=w(R,y);return L===void 0?b:L}else{if(je(b))return bn(b,function(N){return w(N,y)});var L=w(b,y);if(L===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return L}return b},f)}return h.getInitialState=d,h}function qu(t,e){return t+"/"+e}function Fl(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:Sa(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(h){var f=n[h],y=qu(e,h),x,b;"reducer"in f?(x=f.reducer,b=f.prepare):x=f,a[h]=x,s[y]=x,l[h]=b?At(y,b):At(y)});function d(){var h=typeof t.extraReducers=="function"?Ul(t.extraReducers):[t.extraReducers],f=h[0],y=f===void 0?{}:f,x=h[1],b=x===void 0?[]:x,w=h[2],R=w===void 0?void 0:w,L=Et(Et({},y),s);return Zu(o,function(N){for(var E in L)N.addCase(E,L[E]);for(var v=0,A=b;v<A.length;v++){var D=A[v];N.addMatcher(D.matcher,D.reducer)}R&&N.addDefaultCase(R)})}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 Yu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Xu=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Yu[Math.random()*64|0];return e},Ju=["name","message","stack","code"],va=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Dl=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Qu=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Ju;o<n.length;o++){var i=n[o];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},Bx=function(){function t(e,o,n){var i=At(e+"/fulfilled",function(h,f,y,x){return{payload:h,meta:ba(Et({},x||{}),{arg:y,requestId:f,requestStatus:"fulfilled"})}}),a=At(e+"/pending",function(h,f,y){return{payload:void 0,meta:ba(Et({},y||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=At(e+"/rejected",function(h,f,y,x,b){return{payload:x,error:(n&&n.serializeError||Qu)(h||"Rejected"),meta:ba(Et({},b||{}),{arg:y,requestId:f,rejectedWithValue:!!x,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,y,x){var b=n?.idGenerator?n.idGenerator(h):Xu(),w=new d,R,L=!1;function N(v){R=v,w.abort()}var E=function(){return Uu(this,null,function(){var v,A,D,F,V,z,M;return Pu(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),F=(v=n?.condition)==null?void 0:v.call(n,h,{getState:y,extra:x}),tf(F)?[4,F]:[3,2];case 1:F=m.sent(),m.label=2;case 2:if(F===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return L=!0,V=new Promise(function(C,P){return w.signal.addEventListener("abort",function(){return P({name:"AbortError",message:R||"Aborted"})})}),f(a(b,h,(A=n?.getPendingMeta)==null?void 0:A.call(n,{requestId:b,arg:h},{getState:y,extra:x}))),[4,Promise.race([V,Promise.resolve(o(h,{dispatch:f,getState:y,extra:x,requestId:b,signal:w.signal,abort:N,rejectWithValue:function(C,P){return new va(C,P)},fulfillWithValue:function(C,P){return new Dl(C,P)}})).then(function(C){if(C instanceof va)throw C;return C instanceof Dl?i(C.payload,b,h,C.meta):i(C,b,h)})])];case 3:return D=m.sent(),[3,5];case 4:return z=m.sent(),D=z instanceof va?s(null,b,h,z.payload,z.meta):s(z,b,h),[3,5];case 5:return M=n&&!n.dispatchConditionRejection&&s.match(D)&&D.meta.condition,M||f(D),[2,D]}})})}();return Object.assign(E,{abort:N,requestId:b,arg:h,unwrap:function(){return E.then(ef)}})}}return Object.assign(u,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function ef(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function tf(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Hl="listener",zl="completed",Wl="cancelled",Ux="task-"+Wl,Fx="task-"+zl,Hx=Hl+"-"+Wl,zx=Hl+"-"+zl;var Ca="listenerMiddleware";var Wx=At(Ca+"/add"),Gx=At(Ca+"/removeAll"),jx=At(Ca+"/remove");var Ml,Vx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Ml||(Ml=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},rf=function(t){return function(e){setTimeout(e,t)}},Kx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:rf(10);Sl();window.ftReduxStores||(window.ftReduxStores={});var zt=class t extends lt{static get(e){var o;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(dr(a))return a;if(i==null)return;let s=Fl({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),l=Bl({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,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new no;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 of(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))dr(e)&&e.clear()}var vn=class{constructor(e,o,n){this.store=e,this.valueSelector=o,this.callback=n}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),o=this.valueSelector(e);st(this.lastValue,o)&&(this.callback(o,e),this.lastValue=o)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function nf(t,e,o){return new vn(t,e,o).watch()}var Oa=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var o;return(o=this.requestConsumers.get(e))!==null&&o!==void 0?o:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).add(e)}unregisterComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var Ra={};K(Ra,{scrollHelper:()=>af});var Aa,Sn=new Map,wa=class{lock(e,o){if(o){let n=Sn.get(o);if(n==null||n===e)return Sn.set(o,e),o}}release(e,o){o&&Sn.get(o)===e&&Sn.delete(o)}findFirstScrollableParent(e){var o;let n,i;for(let a of pi(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(o=n??i)!==null&&o!==void 0?o:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,o){var n,i;let a=0;for(;o&&o.offsetParent!==e.offsetParent;)a+=(n=o.offsetTop)!==null&&n!==void 0?n:0,o=o.offsetParent;return a+((i=o?.offsetTop)!==null&&i!==void 0?i:0)-e.offsetTop}computeTopOffsetRatio(e,o){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(e,o){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=jr(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(o?.position,l)*(a-s)+s;n.scrollTo({behavior:o?.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=(Aa=window.FluidTopicsScrollHelper)!==null&&Aa!==void 0?Aa:new wa;var af=window.FluidTopicsScrollHelper;var La={};K(La,{SearchPlaceConverter:()=>xr,SearchPlaceQueryParams:()=>q,isSearchPlaceQueryParams:()=>Ec,serializeRequest:()=>df});var lf=Dd(jl(),1);var Vl;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Vl||(Vl={}));var Kl;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Kl||(Kl={}));var Zl;(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"})(Zl||(Zl={}));var ql;(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"})(ql||(ql={}));var Yl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Yl||(Yl={}));var Xl;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Xl||(Xl={}));var Jl;(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"})(Jl||(Jl={}));var Ql;(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"})(Ql||(Ql={}));var ec;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW"})(ec||(ec={}));var tc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(tc||(tc={}));var rc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(rc||(rc={}));var oc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(oc||(oc={}));var nc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(nc||(nc={}));var ic;(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"})(ic||(ic={}));var gr;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(gr||(gr={}));var ac;(function(t){t.ASC="ASC",t.DESC="DESC"})(ac||(ac={}));var sc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(sc||(sc={}));var Ta;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Ta||(Ta={}));var hc=t=>Object.keys(Ta).includes(t);var lc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(lc||(lc={}));var cc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(cc||(cc={}));var dc;(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"})(dc||(dc={}));var br;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(br||(br={}));var yc=t=>Object.keys(br).includes(t);var pc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(pc||(pc={}));var uc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(uc||(uc={}));var fc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(fc||(fc={}));var le;(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"})(le||(le={}));var De;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(De||(De={}));var mc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(mc||(mc={}));var gc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(gc||(gc={}));var bc;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(bc||(bc={}));var xc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(xc||(xc={}));var vc;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(vc||(vc={}));var sf={[le.PERSONAL_BOOK_SHARE_USER]:[le.PERSONAL_BOOK_USER],[le.HTML_EXPORT_USER]:[le.PERSONAL_BOOK_USER],[le.PDF_EXPORT_USER]:[le.PERSONAL_BOOK_USER],[le.KHUB_ADMIN]:[le.CONTENT_PUBLISHER],[le.ADMIN]:[le.KHUB_ADMIN,le.USERS_ADMIN,le.PORTAL_ADMIN],[le.GENERATIVE_AI_EXPORT_USER]:[le.GENERATIVE_AI_USER]};function Sc(t,e){return t===e||(sf[t]??[]).some(o=>Sc(o,e))}function Cc(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=>Sc(n,e))}function cf(t){return`"${t}"`}function Oc(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function df(t,e){return new xr(t).serialize(e)}var q;(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"})(q||(q={}));var pf=new Set(Object.values(q));function Ec(t){return pf.has(t)}var xr=class{constructor(e,o=20,n=!1,i="en-US"){this.baseUrl=e,this.defaultPerPage=o,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,o){return this.serializeToCurrentPageIfPossible(e,o??"/search")}serializeToCurrentPageIfPossible(e,o){let n=o==null||o.trim().length===0,i=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return i.search=this.toURLSearchParams(e),i.toString()}toURLSearchParams(e,o=!1){var n,i,a,s,l,d,u,h,f,y,x;let b=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&b.append(q.LOCALE,e.contentLocale):b.append(q.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&b.append(q.QUERY,e.query);let w=(a=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(v=>v.valueFilter&&!v.valueFilter.negative))!==null&&a!==void 0?a:[];if(w.length>0){let v=w.map(A=>{var D,F;let V=((F=(D=A.valueFilter)===null||D===void 0?void 0:D.values)!==null&&F!==void 0?F:[]).map(z=>this.escapeFilters(z)).map(z=>cf(Oc(z))).join("_");return`${A.key}~${V}`}).join("*");b.append(q.VALUE_FILTERS,v)}let R=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(v=>v.dateFilter))!==null&&l!==void 0?l:[];if(R.length>0){let v=R.map(A=>{var D;return`${A.key}~${(D=A.dateFilter)===null||D===void 0?void 0:D.type.toLowerCase()}`}).join("*");b.append(q.DATE_FILTERS,v)}let L=(u=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(v=>v.rangeFilter))!==null&&u!==void 0?u:[];if(L.length>0){let v=L.map(A=>{var D,F;return`${A.key}~${(D=A.rangeFilter)===null||D===void 0?void 0:D.from}_${(F=A.rangeFilter)===null||F===void 0?void 0:F.to}`}).join("*");b.append(q.RANGE_FILTERS,v)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&b.append(q.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&b.append(q.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&b.append(q.SORT,e.sortId),!((h=e.paging)===null||h===void 0)&&h.perPage&&((y=(f=e.paging)===null||f===void 0?void 0:f.perPage)!==null&&y!==void 0?y:this.defaultPerPage)!=this.defaultPerPage&&b.append(q.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&b.append(q.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let N=(x=e.otherQueryParams)!==null&&x!==void 0?x:{};for(let v in N)b.append(v,N[v]);let E=new Array;return b.forEach((v,A)=>{E.push(this.encodeQueryString(A)+"="+this.encodeQueryString(v))}),encodeURI(E.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var o;let n=e.split("?"),i=this.fromURLSearchParams(n.slice(1).join("?")),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(o=this.scopeMapping[a])!==null&&o!==void 0?o:i.scope}}fromURLSearchParams(e){var o,n,i,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(L){console.warn("Could not decode search request query params, fallback on raw value",L)}let d=new URLSearchParams(e),u=d.get(q.LOCALE)==="all"?void 0:d.get(q.LOCALE),h=((o=d.get(q.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),f=(n=d.get(q.SORT))===null||n===void 0?void 0:n.toLowerCase(),y=(i=d.get(q.SCOPE))!==null&&i!==void 0?i:"default",x=+((a=d.get(q.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),b=d.get(q.KEYWORD_MATCH),w=b?b.toUpperCase()===gr.MANDATORY?gr.MANDATORY:gr.OPTIONAL:void 0,R={};for(let L of d.keys())Ec(L)||(R[L]=d.get(L));return{contentLocale:u??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(q.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[y])!==null&&l!==void 0?l:"DEFAULT",virtualField:hc(h)?h:"EVERYWHERE",sortId:f,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:jr(1,isNaN(x)?this.defaultPerPage:x,1e3)},keywordMatch:w,otherQueryParams:R}}parseCompatFilters(e){var o,n,i,a,s,l;let d=[];return e.has(q.FILTERS)&&(d=this.parseValueFilters((o=e.get(q.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(q.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((i=e.get(q.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(q.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(q.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(q.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(o=>o.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(Oc).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:br[o[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}superEscapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(n,i);return e}unescapeFilterValue(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replace(i,o);return e}parseLegacyPeriodFilter(e){if(yc(e))return[{key:"ft:lastEdition",dateFilter:{type:br[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}};var Ia={};K(Ia,{toFtFormComponent:()=>Na});var _a=Symbol("elementInternals"),Na=he(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[_a].form}constructor(...n){super(n),this[_a]=this.attachInternals()}setFormValue(n){this[_a].setFormValue(n)}}return e});var Pa={};K(Pa,{DateFormatter:()=>Wt});var Wt=class{static format(e,o,n,i){return window.moment?window.moment(e).locale(o).format(this.getMomentDateFormat(n,i)):this.getIntlDateTime(e,o,n,i)}static getMomentDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(e,o,n,i){let a=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(a);if(!i)return s;let l=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(a);return`${s} ${l}`}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${e(Math.abs(o)/60)}:${e(Math.abs(o)%60)}`}};var Da={};K(Da,{ALL_KEYS_VALUE:()=>ka,SameWindowStorageEvent:()=>vr});var ka="__all__",vr=class extends CustomEvent{constructor(e,o,n){super("same-window-storage",{detail:{key:e,oldValue:o,newValue:n}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==ka}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new vr(o[0],n,o[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new vr(o[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,o){Reflect.apply(t,e,o),window.dispatchEvent(new vr(ka))}});var $a={};K($a,{FocusMainContentEvent:()=>Ma});var Ma=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Ac={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function uf(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function ff(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",uf);document.addEventListener("click",ff);var wc=I`
|
|
48
|
+
`;var dl={};var Qi={};K(Qi,{ParametrizedLabelResolver:()=>oo});var oo=class t{constructor(e,o){this.defaultLabels=e,this.labels=o}resolve(e,...o){var n,i;e=this.resolvePluralKey(e,o);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...o)}static replaceParameters(e,...o){return o.forEach((n,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,o){for(let n of o)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,o){return e instanceof Date?t.formatDate(e,o):e??""}static formatDate(e,o){let n=i=>o?.includes("date")?e.toLocaleDateString(i):o?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var Ea={};K(Ea,{FtCommandQueue:()=>no,FtLitElementRedux:()=>ao,FtReduxStore:()=>zt,FtStateManager:()=>Oa,ReduxWatcher:()=>vn,clearAllStores:()=>of,isFtReduxStore:()=>dr,redux:()=>cr,reduxEventListener:()=>vu,reduxReactive:()=>xu,watch:()=>nf,withRedux:()=>pl});var xu=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},cr=t=>{let e=t??{};return(o,n)=>{var i;let a={hasChanged:st,attribute:!1,...e};S(a)(o,n);let s=o.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})}},vu=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var no=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};function dr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var io=Symbol("internalReduxEventsUnsubscribers"),St=Symbol("internalStoresUnsubscribers"),Ut=Symbol("internalStores"),pl=he(Symbol("withRedux"),function(t){var e,o,n;class i extends t{constructor(){super(...arguments),this[e]=new Map,this[o]=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[Ut].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ut].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Ut].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[Ut].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[Ut].delete(l)}setupStores(){this.unsubscribeFromStores(),this[Ut].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[St].has(s.store):this[St].size>0)&&(this[l]=s.selector(u.getState(),this))}})}subscribeToStore(s,l){var d;this[St].set(s,l.subscribe(()=>this.updateFromStores())),this[io].set(s,[]),dr(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=y=>this[h](y);l.addEventListener(u.eventName,f),this[io].get(s).push(()=>l.removeEventListener(u.eventName,f))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[St].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[St].has(s)&&this[St].get(s)(),this[St].delete(s),(l=this[io].get(s))===null||l===void 0||l.forEach(d=>d()),this[io].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=St,o=Ut,n=io,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),ao=class extends pl(j){};function ke(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ht(t){return!!t&&!!t[te]}function je(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Tu}(t)||Array.isArray(t)||!!t[bl]||!!(!((e=t.constructor)===null||e===void 0)&&e[bl])||la(t)||ca(t))}function Ft(t,e,o){o===void 0&&(o=!1),fr(t)===0?(o?Object.keys:ur)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function fr(t){var e=t[te];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:la(t)?2:ca(t)?3:0}function pr(t,e){return fr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Su(t,e){return fr(t)===2?t.get(e):t[e]}function xl(t,e,o){var n=fr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function vl(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function la(t){return wu&&t instanceof Map}function ca(t){return Ru&&t instanceof Set}function Ct(t){return t.o||t.t}function da(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Ol(t);delete e[te];for(var o=ur(e),n=0;n<o.length;n++){var i=o[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 pa(t,e){return e===void 0&&(e=!1),ua(t)||ht(t)||!je(t)||(fr(t)>1&&(t.set=t.add=t.clear=t.delete=Cu),Object.freeze(t),e&&Ft(t,function(o,n){return pa(n,!0)},!0)),t}function Cu(){ke(2)}function ua(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function rt(t){var e=sa[t];return e||ke(18,t),e}function Ou(t,e){sa[t]||(sa[t]=e)}function na(){return lo}function ea(t,e){e&&(rt("Patches"),t.u=[],t.s=[],t.v=e)}function yn(t){ia(t),t.p.forEach(Eu),t.p=null}function ia(t){t===lo&&(lo=t.l)}function ul(t){return lo={p:[],l:lo,h:t,m:!0,_:0}}function Eu(t){var e=t[te];e.i===0||e.i===1?e.j():e.g=!0}function ta(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||rt("ES5").S(e,t,n),n?(o[te].P&&(yn(e),ke(4)),je(t)&&(t=mn(e,t),e.l||gn(e,t)),e.u&&rt("Patches").M(o[te].t,t,e.u,e.s)):t=mn(e,o,[]),yn(e),e.u&&e.v(e.u,e.s),t!==Cl?t:void 0}function mn(t,e,o){if(ua(e))return e;var n=e[te];if(!n)return Ft(e,function(l,d){return fl(t,n,e,l,d,o)},!0),e;if(n.A!==t)return e;if(!n.P)return gn(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=da(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),Ft(a,function(l,d){return fl(t,n,i,l,d,o,s)}),gn(t,i,!1),o&&t.u&&rt("Patches").N(n,o,t.u,t.s)}return n.o}function fl(t,e,o,n,i,a,s){if(ht(i)){var l=mn(t,i,a&&e&&e.i!==3&&!pr(e.R,n)?a.concat(n):void 0);if(xl(o,n,l),!ht(l))return;t.m=!1}else s&&o.add(i);if(je(i)&&!ua(i)){if(!t.h.D&&t._<1)return;mn(t,i),e&&e.A.l||gn(t,i)}}function gn(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&pa(e,o)}function ra(t,e){var o=t[te];return(o?Ct(o):t)[e]}function hl(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function Ot(t){t.P||(t.P=!0,t.l&&Ot(t.l))}function oa(t){t.o||(t.o=da(t.t))}function aa(t,e,o){var n=la(e)?rt("MapSet").F(e,o):ca(e)?rt("MapSet").T(e,o):t.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:na(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=l,u=co;s&&(d=[l],u=so);var h=Proxy.revocable(d,u),f=h.revoke,y=h.proxy;return l.k=y,l.j=f,y}(e,o):rt("ES5").J(e,o);return(o?o.A:na()).p.push(n),n}function Au(t){return ht(t)||ke(22,t),function e(o){if(!je(o))return o;var n,i=o[te],a=fr(o);if(i){if(!i.P&&(i.i<4||!rt("ES5").K(i)))return i.t;i.I=!0,n=yl(o,a),i.I=!1}else n=yl(o,a);return Ft(n,function(s,l){i&&Su(i.t,s)===l||xl(n,s,e(l))}),a===3?new Set(n):n}(t)}function yl(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return da(t)}function Sl(){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[te];return co.get(u,s)},set:function(u){var h=this[te];co.set(h,s,u)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][te];if(!d.P)switch(d.i){case 5:n(d)&&Ot(d);break;case 4:o(d)&&Ot(d)}}}function o(s){for(var l=s.t,d=s.k,u=ur(d),h=u.length-1;h>=0;h--){var f=u[h];if(f!==te){var y=l[f];if(y===void 0&&!pr(l,f))return!0;var x=d[f],b=x&&x[te];if(b?b.t!==y:!vl(x,y))return!0}}var w=!!l[te];return u.length!==ur(l).length+(w?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&&ke(3,JSON.stringify(Ct(s)))}var a={};Ou("ES5",{J:function(s,l){var d=Array.isArray(s),u=function(f,y){if(f){for(var x=Array(y.length),b=0;b<y.length;b++)Object.defineProperty(x,""+b,t(b,!0));return x}var w=Ol(y);delete w[te];for(var R=ur(w),L=0;L<R.length;L++){var N=R[L];w[N]=t(N,f||!!w[N].enumerable)}return Object.create(Object.getPrototypeOf(y),w)}(d,s),h={i:d?5:4,A:l?l.A:na(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,te,{value:h,writable:!0}),u},S:function(s,l,d){d?ht(l)&&l[te].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var f=h[te];if(f){var y=f.t,x=f.k,b=f.R,w=f.i;if(w===4)Ft(x,function(v){v!==te&&(y[v]!==void 0||pr(y,v)?b[v]||u(x[v]):(b[v]=!0,Ot(f)))}),Ft(y,function(v){x[v]!==void 0||pr(x,v)||(b[v]=!1,Ot(f))});else if(w===5){if(n(f)&&(Ot(f),b.length=!0),x.length<y.length)for(var R=x.length;R<y.length;R++)b[R]=!1;else for(var L=y.length;L<x.length;L++)b[L]=!0;for(var N=Math.min(x.length,y.length),E=0;E<N;E++)x.hasOwnProperty(E)||(b[E]=!0),b[E]===void 0&&u(x[E])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var ml,lo,fa=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",wu=typeof Map<"u",Ru=typeof Set<"u",gl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Cl=fa?Symbol.for("immer-nothing"):((ml={})["immer-nothing"]=!0,ml),bl=fa?Symbol.for("immer-draftable"):"__$immer_draftable",te=fa?Symbol.for("immer-state"):"__$immer_state";var Tu=""+Object.prototype.constructor,ur=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Ol=Object.getOwnPropertyDescriptors||function(t){var e={};return ur(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},sa={},co={get:function(t,e){if(e===te)return t;var o=Ct(t);if(!pr(o,e))return function(i,a,s){var l,d=hl(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,o,e);var n=o[e];return t.I||!je(n)?n:n===ra(t.t,e)?(oa(t),t.o[e]=aa(t.A.h,n,t)):n},has:function(t,e){return e in Ct(t)},ownKeys:function(t){return Reflect.ownKeys(Ct(t))},set:function(t,e,o){var n=hl(Ct(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var i=ra(Ct(t),e),a=i?.[te];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(vl(o,i)&&(o!==void 0||pr(t.t,e)))return!0;oa(t),Ot(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return ra(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,oa(t),Ot(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Ct(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){ke(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ke(12)}},so={};Ft(co,function(t,e){so[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),so.deleteProperty=function(t,e){return so.set.call(this,t,e,void 0)},so.set=function(t,e,o){return co.set.call(this,t[0],e,o,t[0])};var Lu=function(){function t(o){var n=this;this.O=gl,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(w){var R=this;w===void 0&&(w=l);for(var L=arguments.length,N=Array(L>1?L-1:0),E=1;E<L;E++)N[E-1]=arguments[E];return d.produce(w,function(v){var A;return(A=a).call.apply(A,[R,v].concat(N))})}}var u;if(typeof a!="function"&&ke(6),s!==void 0&&typeof s!="function"&&ke(7),je(i)){var h=ul(n),f=aa(n,i,void 0),y=!0;try{u=a(f),y=!1}finally{y?yn(h):ia(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(w){return ea(h,s),ta(w,h)},function(w){throw yn(h),w}):(ea(h,s),ta(u,h))}if(!i||typeof i!="object"){if((u=a(i))===void 0&&(u=i),u===Cl&&(u=void 0),n.D&&pa(u,!0),s){var x=[],b=[];rt("Patches").M(i,u,x,b),s(x,b)}return u}ke(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),y=1;y<h;y++)f[y-1]=arguments[y];return n.produceWithPatches(u,function(x){return i.apply(void 0,[x].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 o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){je(o)||ke(8),ht(o)&&(o=Au(o));var n=ul(this),i=aa(this,o,void 0);return i[te].C=!0,ia(n),i},e.finishDraft=function(o,n){var i=o&&o[te],a=i.A;return ea(a,n),ta(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!gl&&ke(20),this.O=o},e.applyPatches=function(o,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}i>-1&&(n=n.slice(i+1));var s=rt("Patches").$;return ht(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),Re=new Lu,_u=Re.produce,px=Re.produceWithPatches.bind(Re),ux=Re.setAutoFreeze.bind(Re),fx=Re.setUseProxies.bind(Re),hx=Re.applyPatches.bind(Re),yx=Re.createDraft.bind(Re),mx=Re.finishDraft.bind(Re),bn=_u;function Ht(t){"@babel/helpers - typeof";return Ht=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},Ht(t)}function El(t,e){if(Ht(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Ht(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Al(t){var e=El(t,"string");return Ht(e)=="symbol"?e:e+""}function wl(t,e,o){return(e=Al(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Rl(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),o.push.apply(o,n)}return o}function ha(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Rl(Object(o),!0).forEach(function(n){wl(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Rl(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function be(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 Tl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ya=function(){return Math.random().toString(36).substring(7).split("").join(".")},xn={INIT:"@@redux/INIT"+ya(),REPLACE:"@@redux/REPLACE"+ya(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ya()}};function Nu(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 ma(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(be(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(be(1));return o(ma)(t,e)}if(typeof t!="function")throw new Error(be(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(be(3));return a}function f(w){if(typeof w!="function")throw new Error(be(4));if(d)throw new Error(be(5));var R=!0;return u(),l.push(w),function(){if(R){if(d)throw new Error(be(6));R=!1,u();var N=l.indexOf(w);l.splice(N,1),s=null}}}function y(w){if(!Nu(w))throw new Error(be(7));if(typeof w.type>"u")throw new Error(be(8));if(d)throw new Error(be(9));try{d=!0,a=i(a,w)}finally{d=!1}for(var R=s=l,L=0;L<R.length;L++){var N=R[L];N()}return w}function x(w){if(typeof w!="function")throw new Error(be(10));i=w,y({type:xn.REPLACE})}function b(){var w,R=f;return w={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(be(11));function E(){N.next&&N.next(h())}E();var v=R(E);return{unsubscribe:v}}},w[Tl]=function(){return this},w}return y({type:xn.INIT}),n={dispatch:y,subscribe:f,getState:h,replaceReducer:x},n[Tl]=b,n}function Iu(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:xn.INIT});if(typeof n>"u")throw new Error(be(12));if(typeof o(void 0,{type:xn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(be(13))})}function Ll(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(o[i]=t[i])}var a=Object.keys(o),s,l;try{Iu(o)}catch(d){l=d}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var f;for(var y=!1,x={},b=0;b<a.length;b++){var w=a[b],R=o[w],L=u[w],N=R(L,h);if(typeof N>"u"){var E=h&&h.type;throw new Error(be(14))}x[w]=N,y=y||N!==L}return y=y||a.length!==Object.keys(u).length,y?x:u}}function hr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];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 _l(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(be(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=hr.apply(void 0,l)(i.dispatch),ha(ha({},i),{},{dispatch:a})}}}function Nl(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 Il=Nl();Il.withExtraArgument=Nl;var ga=Il;var $l=function(){var t=function(e,o){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,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Pu=function(t,e){var o={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(;o;)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 o.label++,{value:u[1],done:!1};case 5:o.label++,i=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(u[0]===6&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}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}}},yr=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},ku=Object.defineProperty,Du=Object.defineProperties,Mu=Object.getOwnPropertyDescriptors,Pl=Object.getOwnPropertySymbols,$u=Object.prototype.hasOwnProperty,Bu=Object.prototype.propertyIsEnumerable,kl=function(t,e,o){return e in t?ku(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Et=function(t,e){for(var o in e||(e={}))$u.call(e,o)&&kl(t,o,e[o]);if(Pl)for(var n=0,i=Pl(e);n<i.length;n++){var o=i[n];Bu.call(e,o)&&kl(t,o,e[o])}return t},ba=function(t,e){return Du(t,Mu(e))},Uu=function(t,e,o){return new Promise(function(n,i){var a=function(d){try{l(o.next(d))}catch(u){i(u)}},s=function(d){try{l(o.throw(d))}catch(u){i(u)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(a,s)};l((o=o.apply(t,e)).next())})};var Fu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?hr:hr.apply(null,arguments)},kx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Hu(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var zu=function(t){$l(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||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 o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,yr([void 0],o[0].concat(this)))):new(e.bind.apply(e,yr([void 0],o.concat(this))))},e}(Array),Wu=function(t){$l(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||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 o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,yr([void 0],o[0].concat(this)))):new(e.bind.apply(e,yr([void 0],o.concat(this))))},e}(Array);function Sa(t){return je(t)?bn(t,function(){}):t}function Gu(t){return typeof t=="boolean"}function ju(){return function(e){return Vu(e)}}function Vu(t){t===void 0&&(t={});var e=t.thunk,o=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 zu;if(o&&(Gu(o)?l.push(ga):l.push(ga.withExtraArgument(o.extraArgument))),0){if(i)var d;if(s)var u}return l}var xa=!0;function Bl(t){var e=ju(),o=t||{},n=o.reducer,i=n===void 0?void 0:n,a=o.middleware,s=a===void 0?e():a,l=o.devTools,d=l===void 0?!0:l,u=o.preloadedState,h=u===void 0?void 0:u,f=o.enhancers,y=f===void 0?void 0:f,x;if(typeof i=="function")x=i;else if(Hu(i))x=Ll(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 b=s;if(typeof b=="function"&&(b=b(e),!xa&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!xa&&b.some(function(v){return typeof v!="function"}))throw new Error("each middleware provided to configureStore must be a function");var w=_l.apply(void 0,b),R=hr;d&&(R=Fu(Et({trace:!xa},typeof d=="object"&&d)));var L=new Wu(w),N=L;Array.isArray(y)?N=yr([w],y):typeof y=="function"&&(N=y(L));var E=R.apply(void 0,N);return ma(x,h,E)}function At(t,e){function o(){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 Et(Et({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function Ul(t){var e={},o=[],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 o.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,o,n]}function Ku(t){return typeof t=="function"}function Zu(t,e,o,n){o===void 0&&(o=[]);var i=typeof e=="function"?Ul(e):[e,o,n],a=i[0],s=i[1],l=i[2],d;if(Ku(t))d=function(){return Sa(t())};else{var u=Sa(t);d=function(){return u}}function h(f,y){f===void 0&&(f=d());var x=yr([a[y.type]],s.filter(function(b){var w=b.matcher;return w(y)}).map(function(b){var w=b.reducer;return w}));return x.filter(function(b){return!!b}).length===0&&(x=[l]),x.reduce(function(b,w){if(w)if(ht(b)){var R=b,L=w(R,y);return L===void 0?b:L}else{if(je(b))return bn(b,function(N){return w(N,y)});var L=w(b,y);if(L===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return L}return b},f)}return h.getInitialState=d,h}function qu(t,e){return t+"/"+e}function Fl(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:Sa(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(h){var f=n[h],y=qu(e,h),x,b;"reducer"in f?(x=f.reducer,b=f.prepare):x=f,a[h]=x,s[y]=x,l[h]=b?At(y,b):At(y)});function d(){var h=typeof t.extraReducers=="function"?Ul(t.extraReducers):[t.extraReducers],f=h[0],y=f===void 0?{}:f,x=h[1],b=x===void 0?[]:x,w=h[2],R=w===void 0?void 0:w,L=Et(Et({},y),s);return Zu(o,function(N){for(var E in L)N.addCase(E,L[E]);for(var v=0,A=b;v<A.length;v++){var D=A[v];N.addMatcher(D.matcher,D.reducer)}R&&N.addDefaultCase(R)})}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 Yu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Xu=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Yu[Math.random()*64|0];return e},Ju=["name","message","stack","code"],va=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Dl=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Qu=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Ju;o<n.length;o++){var i=n[o];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},Bx=function(){function t(e,o,n){var i=At(e+"/fulfilled",function(h,f,y,x){return{payload:h,meta:ba(Et({},x||{}),{arg:y,requestId:f,requestStatus:"fulfilled"})}}),a=At(e+"/pending",function(h,f,y){return{payload:void 0,meta:ba(Et({},y||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=At(e+"/rejected",function(h,f,y,x,b){return{payload:x,error:(n&&n.serializeError||Qu)(h||"Rejected"),meta:ba(Et({},b||{}),{arg:y,requestId:f,rejectedWithValue:!!x,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,y,x){var b=n?.idGenerator?n.idGenerator(h):Xu(),w=new d,R,L=!1;function N(v){R=v,w.abort()}var E=function(){return Uu(this,null,function(){var v,A,D,F,V,z,M;return Pu(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),F=(v=n?.condition)==null?void 0:v.call(n,h,{getState:y,extra:x}),tf(F)?[4,F]:[3,2];case 1:F=m.sent(),m.label=2;case 2:if(F===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return L=!0,V=new Promise(function(C,P){return w.signal.addEventListener("abort",function(){return P({name:"AbortError",message:R||"Aborted"})})}),f(a(b,h,(A=n?.getPendingMeta)==null?void 0:A.call(n,{requestId:b,arg:h},{getState:y,extra:x}))),[4,Promise.race([V,Promise.resolve(o(h,{dispatch:f,getState:y,extra:x,requestId:b,signal:w.signal,abort:N,rejectWithValue:function(C,P){return new va(C,P)},fulfillWithValue:function(C,P){return new Dl(C,P)}})).then(function(C){if(C instanceof va)throw C;return C instanceof Dl?i(C.payload,b,h,C.meta):i(C,b,h)})])];case 3:return D=m.sent(),[3,5];case 4:return z=m.sent(),D=z instanceof va?s(null,b,h,z.payload,z.meta):s(z,b,h),[3,5];case 5:return M=n&&!n.dispatchConditionRejection&&s.match(D)&&D.meta.condition,M||f(D),[2,D]}})})}();return Object.assign(E,{abort:N,requestId:b,arg:h,unwrap:function(){return E.then(ef)}})}}return Object.assign(u,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function ef(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function tf(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Hl="listener",zl="completed",Wl="cancelled",Ux="task-"+Wl,Fx="task-"+zl,Hx=Hl+"-"+Wl,zx=Hl+"-"+zl;var Ca="listenerMiddleware";var Wx=At(Ca+"/add"),Gx=At(Ca+"/removeAll"),jx=At(Ca+"/remove");var Ml,Vx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Ml||(Ml=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},rf=function(t){return function(e){setTimeout(e,t)}},Kx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:rf(10);Sl();window.ftReduxStores||(window.ftReduxStores={});var zt=class t extends lt{static get(e){var o;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(dr(a))return a;if(i==null)return;let s=Fl({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),l=Bl({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,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new no;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 of(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))dr(e)&&e.clear()}var vn=class{constructor(e,o,n){this.store=e,this.valueSelector=o,this.callback=n}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),o=this.valueSelector(e);st(this.lastValue,o)&&(this.callback(o,e),this.lastValue=o)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function nf(t,e,o){return new vn(t,e,o).watch()}var Oa=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var o;return(o=this.requestConsumers.get(e))!==null&&o!==void 0?o:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).add(e)}unregisterComponent(e,o){for(let n of o)this.getOrCreateRequestConsumers(n).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var Ra={};K(Ra,{scrollHelper:()=>af});var Aa,Sn=new Map,wa=class{lock(e,o){if(o){let n=Sn.get(o);if(n==null||n===e)return Sn.set(o,e),o}}release(e,o){o&&Sn.get(o)===e&&Sn.delete(o)}findFirstScrollableParent(e){var o;let n,i;for(let a of pi(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(o=n??i)!==null&&o!==void 0?o:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,o){var n,i;let a=0;for(;o&&o.offsetParent!==e.offsetParent;)a+=(n=o.offsetTop)!==null&&n!==void 0?n:0,o=o.offsetParent;return a+((i=o?.offsetTop)!==null&&i!==void 0?i:0)-e.offsetTop}computeTopOffsetRatio(e,o){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(e,o){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=jr(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(o?.position,l)*(a-s)+s;n.scrollTo({behavior:o?.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=(Aa=window.FluidTopicsScrollHelper)!==null&&Aa!==void 0?Aa:new wa;var af=window.FluidTopicsScrollHelper;var La={};K(La,{SearchPlaceConverter:()=>xr,SearchPlaceQueryParams:()=>q,isSearchPlaceQueryParams:()=>Ac,serializeRequest:()=>df});var lf=Dd(jl(),1);var Vl;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Vl||(Vl={}));var Kl;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Kl||(Kl={}));var Zl;(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"})(Zl||(Zl={}));var ql;(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"})(ql||(ql={}));var Yl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Yl||(Yl={}));var Xl;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Xl||(Xl={}));var Jl;(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"})(Jl||(Jl={}));var Ql;(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"})(Ql||(Ql={}));var ec;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW"})(ec||(ec={}));var tc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(tc||(tc={}));var rc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(rc||(rc={}));var oc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(oc||(oc={}));var nc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(nc||(nc={}));var ic;(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"})(ic||(ic={}));var gr;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(gr||(gr={}));var ac;(function(t){t.ASC="ASC",t.DESC="DESC"})(ac||(ac={}));var sc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(sc||(sc={}));var Ta;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Ta||(Ta={}));var yc=t=>Object.keys(Ta).includes(t);var lc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(lc||(lc={}));var cc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(cc||(cc={}));var dc;(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"})(dc||(dc={}));var br;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(br||(br={}));var mc=t=>Object.keys(br).includes(t);var pc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(pc||(pc={}));var uc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(uc||(uc={}));var fc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(fc||(fc={}));var le;(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"})(le||(le={}));var De;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(De||(De={}));var hc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(hc||(hc={}));var gc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(gc||(gc={}));var bc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(bc||(bc={}));var xc;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(xc||(xc={}));var vc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(vc||(vc={}));var Sc;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Sc||(Sc={}));var sf={[le.PERSONAL_BOOK_SHARE_USER]:[le.PERSONAL_BOOK_USER],[le.HTML_EXPORT_USER]:[le.PERSONAL_BOOK_USER],[le.PDF_EXPORT_USER]:[le.PERSONAL_BOOK_USER],[le.KHUB_ADMIN]:[le.CONTENT_PUBLISHER],[le.ADMIN]:[le.KHUB_ADMIN,le.USERS_ADMIN,le.PORTAL_ADMIN],[le.GENERATIVE_AI_EXPORT_USER]:[le.GENERATIVE_AI_USER]};function Cc(t,e){return t===e||(sf[t]??[]).some(o=>Cc(o,e))}function Oc(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=>Cc(n,e))}function cf(t){return`"${t}"`}function Ec(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function df(t,e){return new xr(t).serialize(e)}var q;(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"})(q||(q={}));var pf=new Set(Object.values(q));function Ac(t){return pf.has(t)}var xr=class{constructor(e,o=20,n=!1,i="en-US"){this.baseUrl=e,this.defaultPerPage=o,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,o){return this.serializeToCurrentPageIfPossible(e,o??"/search")}serializeToCurrentPageIfPossible(e,o){let n=o==null||o.trim().length===0,i=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return i.search=this.toURLSearchParams(e),i.toString()}toURLSearchParams(e,o=!1){var n,i,a,s,l,d,u,h,f,y,x;let b=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&b.append(q.LOCALE,e.contentLocale):b.append(q.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&b.append(q.QUERY,e.query);let w=(a=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(v=>v.valueFilter&&!v.valueFilter.negative))!==null&&a!==void 0?a:[];if(w.length>0){let v=w.map(A=>{var D,F;let V=((F=(D=A.valueFilter)===null||D===void 0?void 0:D.values)!==null&&F!==void 0?F:[]).map(z=>this.escapeFilters(z)).map(z=>cf(Ec(z))).join("_");return`${A.key}~${V}`}).join("*");b.append(q.VALUE_FILTERS,v)}let R=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(v=>v.dateFilter))!==null&&l!==void 0?l:[];if(R.length>0){let v=R.map(A=>{var D;return`${A.key}~${(D=A.dateFilter)===null||D===void 0?void 0:D.type.toLowerCase()}`}).join("*");b.append(q.DATE_FILTERS,v)}let L=(u=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(v=>v.rangeFilter))!==null&&u!==void 0?u:[];if(L.length>0){let v=L.map(A=>{var D,F;return`${A.key}~${(D=A.rangeFilter)===null||D===void 0?void 0:D.from}_${(F=A.rangeFilter)===null||F===void 0?void 0:F.to}`}).join("*");b.append(q.RANGE_FILTERS,v)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&b.append(q.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&b.append(q.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&b.append(q.SORT,e.sortId),!((h=e.paging)===null||h===void 0)&&h.perPage&&((y=(f=e.paging)===null||f===void 0?void 0:f.perPage)!==null&&y!==void 0?y:this.defaultPerPage)!=this.defaultPerPage&&b.append(q.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&b.append(q.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let N=(x=e.otherQueryParams)!==null&&x!==void 0?x:{};for(let v in N)b.append(v,N[v]);let E=new Array;return b.forEach((v,A)=>{E.push(this.encodeQueryString(A)+"="+this.encodeQueryString(v))}),encodeURI(E.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var o;let n=e.split("?"),i=this.fromURLSearchParams(n.slice(1).join("?")),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(o=this.scopeMapping[a])!==null&&o!==void 0?o:i.scope}}fromURLSearchParams(e){var o,n,i,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(L){console.warn("Could not decode search request query params, fallback on raw value",L)}let d=new URLSearchParams(e),u=d.get(q.LOCALE)==="all"?void 0:d.get(q.LOCALE),h=((o=d.get(q.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),f=(n=d.get(q.SORT))===null||n===void 0?void 0:n.toLowerCase(),y=(i=d.get(q.SCOPE))!==null&&i!==void 0?i:"default",x=+((a=d.get(q.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),b=d.get(q.KEYWORD_MATCH),w=b?b.toUpperCase()===gr.MANDATORY?gr.MANDATORY:gr.OPTIONAL:void 0,R={};for(let L of d.keys())Ac(L)||(R[L]=d.get(L));return{contentLocale:u??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(q.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[y])!==null&&l!==void 0?l:"DEFAULT",virtualField:yc(h)?h:"EVERYWHERE",sortId:f,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:jr(1,isNaN(x)?this.defaultPerPage:x,1e3)},keywordMatch:w,otherQueryParams:R}}parseCompatFilters(e){var o,n,i,a,s,l;let d=[];return e.has(q.FILTERS)&&(d=this.parseValueFilters((o=e.get(q.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(q.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((i=e.get(q.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(q.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(q.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(q.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(o=>o.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(Ec).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:br[o[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}superEscapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(n,i);return e}unescapeFilterValue(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replace(i,o);return e}parseLegacyPeriodFilter(e){if(mc(e))return[{key:"ft:lastEdition",dateFilter:{type:br[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}};var Ia={};K(Ia,{toFtFormComponent:()=>Na});var _a=Symbol("elementInternals"),Na=he(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[_a].form}constructor(...n){super(n),this[_a]=this.attachInternals()}setFormValue(n){this[_a].setFormValue(n)}}return e});var Pa={};K(Pa,{DateFormatter:()=>Wt});var Wt=class{static format(e,o,n,i){return window.moment?window.moment(e).locale(o).format(this.getMomentDateFormat(n,i)):this.getIntlDateTime(e,o,n,i)}static getMomentDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(e,o,n,i){let a=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(a);if(!i)return s;let l=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(a);return`${s} ${l}`}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${e(Math.abs(o)/60)}:${e(Math.abs(o)%60)}`}};var Da={};K(Da,{ALL_KEYS_VALUE:()=>ka,SameWindowStorageEvent:()=>vr});var ka="__all__",vr=class extends CustomEvent{constructor(e,o,n){super("same-window-storage",{detail:{key:e,oldValue:o,newValue:n}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==ka}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new vr(o[0],n,o[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,o){let n=e.getItem(o[0]);Reflect.apply(t,e,o),window.dispatchEvent(new vr(o[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,o){Reflect.apply(t,e,o),window.dispatchEvent(new vr(ka))}});var $a={};K($a,{FocusMainContentEvent:()=>Ma});var Ma=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var wc={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function uf(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function ff(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",uf);document.addEventListener("click",ff);var Rc=I`
|
|
49
49
|
.sr-only {
|
|
50
50
|
position:absolute;
|
|
51
51
|
left:-10000px;
|
|
@@ -69,7 +69,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
69
69
|
width:auto;
|
|
70
70
|
height:auto;
|
|
71
71
|
}
|
|
72
|
-
`;var hf={checkVisibility:!0},Pv=he(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(n,i){let{checkVisibility:a}={...hf,...i};setTimeout(()=>{(!a||this.checkVisibility())&&(n=typeof n=="string"?n:n?.message,n&&this.dispatchEvent(new Kr({type:"aria",message:n})))},20)}}return e});function
|
|
72
|
+
`;var hf={checkVisibility:!0},Pv=he(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(n,i){let{checkVisibility:a}={...hf,...i};setTimeout(()=>{(!a||this.checkVisibility())&&(n=typeof n=="string"?n:n?.message,n&&this.dispatchEvent(new Kr({type:"aria",message:n})))},20)}}return e});function Tc(t,e,o){return t?e(t):o?.(t)}var ye=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Gt;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})(Gt||(Gt={}));var jt;(function(t){t.default="default",t.warning="warning",t.error="error"})(jt||(jt={}));var Ba=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}},Wv=he(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=Gt.input,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=jt.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===Gt.blur||this.validateOn===Gt.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){(this.status!==jt.default&&this.validateOn===Gt.blurWithStatusResolutionOnInput||this.validateOn===Gt.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 Ba(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return H`
|
|
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
|
${_o(this.errorMessages,n=>H`
|
|
@@ -78,11 +78,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
78
78
|
${_o(this.warningMessages,n=>H`
|
|
79
79
|
<li>${n}</li>
|
|
80
80
|
`)}
|
|
81
|
-
${
|
|
81
|
+
${Tc(!this.errorMessages.length&&!this.warningMessages.length&&this.helperText,()=>H`
|
|
82
82
|
<li>${this.helperText}</li>
|
|
83
83
|
`)}
|
|
84
84
|
</ul>
|
|
85
|
-
`}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?jt.error:this.warningMessages.length?jt.warning:jt.default}processRules(n){return n.map(i=>i(this.value)).filter(i=>i!==!0).map(i=>i)}}return ye([S()],e.prototype,"warningRules",void 0),ye([S()],e.prototype,"errorRules",void 0),ye([S()],e.prototype,"validateOn",void 0),ye([S({type:Boolean})],e.prototype,"validateAtRender",void 0),ye([S()],e.prototype,"label",void 0),ye([S({type:Boolean})],e.prototype,"hideLabel",void 0),ye([S()],e.prototype,"name",void 0),ye([S({type:Boolean})],e.prototype,"disabled",void 0),ye([S()],e.prototype,"helperText",void 0),ye([S()],e.prototype,"forceStatus",void 0),ye([S({reflect:!0})],e.prototype,"value",void 0),ye([X()],e.prototype,"errorMessages",void 0),ye([X()],e.prototype,"warningMessages",void 0),ye([X()],e.prototype,"status",void 0),ye([X()],e.prototype,"focused",void 0),ye([X()],e.prototype,"additionalWarningRules",void 0),ye([X()],e.prototype,"additionalErrorRules",void 0),e});var po=(t,e)=>{let o=t._$AN;if(o===void 0)return!1;for(let n of o)n._$AO?.(e,!1),po(n,e);return!0},En=t=>{let e,o;do{if((e=t._$AM)===void 0)break;o=e._$AN,o.delete(t),t=e}while(o?.size===0)},
|
|
85
|
+
`}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?jt.error:this.warningMessages.length?jt.warning:jt.default}processRules(n){return n.map(i=>i(this.value)).filter(i=>i!==!0).map(i=>i)}}return ye([S()],e.prototype,"warningRules",void 0),ye([S()],e.prototype,"errorRules",void 0),ye([S()],e.prototype,"validateOn",void 0),ye([S({type:Boolean})],e.prototype,"validateAtRender",void 0),ye([S()],e.prototype,"label",void 0),ye([S({type:Boolean})],e.prototype,"hideLabel",void 0),ye([S()],e.prototype,"name",void 0),ye([S({type:Boolean})],e.prototype,"disabled",void 0),ye([S()],e.prototype,"helperText",void 0),ye([S()],e.prototype,"forceStatus",void 0),ye([S({reflect:!0})],e.prototype,"value",void 0),ye([X()],e.prototype,"errorMessages",void 0),ye([X()],e.prototype,"warningMessages",void 0),ye([X()],e.prototype,"status",void 0),ye([X()],e.prototype,"focused",void 0),ye([X()],e.prototype,"additionalWarningRules",void 0),ye([X()],e.prototype,"additionalErrorRules",void 0),e});var po=(t,e)=>{let o=t._$AN;if(o===void 0)return!1;for(let n of o)n._$AO?.(e,!1),po(n,e);return!0},En=t=>{let e,o;do{if((e=t._$AM)===void 0)break;o=e._$AN,o.delete(t),t=e}while(o?.size===0)},Lc=t=>{for(let e;e=t._$AM;t=e){let o=e._$AN;if(o===void 0)e._$AN=o=new Set;else if(o.has(t))break;o.add(t),gf(e)}};function yf(t){this._$AN!==void 0?(En(this),this._$AM=t,Lc(this)):this._$AM=t}function mf(t,e=!1,o=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(n))for(let a=o;a<n.length;a++)po(n[a],!1),En(n[a]);else n!=null&&(po(n,!1),En(n));else po(this,t)}var gf=t=>{t.type==Je.CHILD&&(t._$AP??=mf,t._$AQ??=yf)},An=class extends Ne{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,o,n){super._$AT(e,o,n),Lc(this),this.isConnected=e._$AU}_$AO(e,o=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),o&&(po(this,e),En(this))}setValue(e){if(Es(this._$Ct))this._$Ct._$AI(e,this);else{let o=[...this._$Ct._$AH];o[this._$Ci]=e,this._$Ct._$AI(o,this,0)}}disconnected(){}reconnected(){}};var _c;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(_c||(_c={}));var bf={sm:640,md:768,lg:1024,xl:1280},Ua=class extends An{constructor(e){super(e),this.size=0,this.onResize=()=>{let o=window.innerWidth;this.size!==o&&(this.size=o,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,[o,n,i]){return this.lastArgs=[o,n,i],this.render(o,n,i)}render(e,o,n){let i=this.resolveThreshold(e),a=n??(()=>G);return this.size>i?o():a()}resolveThreshold(e){return typeof e=="number"?e:bf[e]}},o0=We(Ua);var Fa,Ha,za,Wa,uo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((za=(Ha=(Fa=window.safari)===null||Fa===void 0?void 0:Fa.pushNotification)===null||Ha===void 0?void 0:Ha.toString())!==null&&za!==void 0?za:"")==="[object SafariRemoteNotification]",xf="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Wa=window.ftGlobals)!==null&&Wa!==void 0?Wa:{lit:ei,litDecorators:ri,litRepeat:oi,litClassMap:ni,litStyleMap:ii,litUnsafeHTML:si,wcUtils:{...mi,...ci,...Si,...Pa,...Ci,...Oi,...Ri,...yi,...Wi,...$a,...wc,...Ra,...wi,...Zi,...Ia,...Ki,...ll,...ui,...Xi,...Ti,...Ji,...Rc,...dl,...Qi,...Ea,...Da,...Gi,...Vi,...La,...bi,isSafari:uo,isTouchScreen:xf,setVariable:O}};function Nc(t,e,o){if(t.length==0)return!0;let n=t.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"|"),i=new RegExp(n),a=e.includes(".")?"."+e.split(".").pop():void 0;return a&&i.test(a)?!0:i.test(o)}var Ic=r.extend("--ft-ripple-color","",U.colorContent),T={color:Ic,backgroundColor:r.extend("--ft-ripple-background-color","",Ic),opacityContentOnSurfacePressed:r.external(U.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:r.external(U.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:r.external(U.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:r.external(U.opacityContentOnSurfaceSelected,"Design system"),borderRadius:r.create("--ft-ripple-border-radius","","SIZE","0px")},Pc=r.extend("--ft-ripple-color","",U.colorPrimary),kc={color:Pc,backgroundColor:r.extend("--ft-ripple-background-color","",Pc)},Dc=r.extend("--ft-ripple-color","",U.colorSecondary),Mc={color:Dc,backgroundColor:r.extend("--ft-ripple-background-color","",Dc)},$c=I`
|
|
86
86
|
:host {
|
|
87
87
|
display: contents;
|
|
88
88
|
}
|
|
@@ -137,19 +137,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
140
|
-
background-color: ${
|
|
140
|
+
background-color: ${Mc.backgroundColor};
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
144
|
-
background-color: ${
|
|
144
|
+
background-color: ${Mc.color};
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
148
|
-
background-color: ${
|
|
148
|
+
background-color: ${kc.backgroundColor};
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
152
|
-
background-color: ${
|
|
152
|
+
background-color: ${kc.color};
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
.ft-ripple .ft-ripple--background {
|
|
@@ -205,7 +205,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
205
205
|
<div class="ft-ripple--background"></div>
|
|
206
206
|
<div class="ft-ripple--effect"></div>
|
|
207
207
|
</div>
|
|
208
|
-
`}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 o,n;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.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,o;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o: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 o=(...l)=>d=>{l.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(d)},n=o("mouseup","contextmenu"),i=o("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&o("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 o=e,n=e,i,a;return o.x!=null?{x:i,y:a}=o: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 o of e.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};re.elementDefinitions={};re.styles
|
|
208
|
+
`}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 o,n;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.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,o;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o: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 o=(...l)=>d=>{l.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(d)},n=o("mouseup","contextmenu"),i=o("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&o("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 o=e,n=e,i,a;return o.x!=null?{x:i,y:a}=o: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 o of e.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};re.elementDefinitions={};re.styles=$c;Se([S({type:Boolean})],re.prototype,"primary",void 0);Se([S({type:Boolean})],re.prototype,"secondary",void 0);Se([S({type:Boolean})],re.prototype,"unbounded",void 0);Se([S({type:Boolean})],re.prototype,"activated",void 0);Se([S({type:Boolean})],re.prototype,"selected",void 0);Se([S({type:Boolean})],re.prototype,"disabled",void 0);Se([X()],re.prototype,"hovered",void 0);Se([X()],re.prototype,"focused",void 0);Se([X()],re.prototype,"pressed",void 0);Se([X()],re.prototype,"rippling",void 0);Se([X()],re.prototype,"originX",void 0);Se([X()],re.prototype,"originY",void 0);Se([ue(".ft-ripple")],re.prototype,"ripple",void 0);Se([ue(".ft-ripple--effect")],re.prototype,"rippleEffect",void 0);ee("ft-ripple")(re);var Uc=Symbol.for(""),vf=t=>{if(t?.r===Uc)return t?._$litStatic$},Sr=t=>({_$litStatic$:t,r:Uc});var Bc=new Map,Ga=t=>(e,...o)=>{let n=o.length,i,a,s=[],l=[],d,u=0,h=!1;for(;u<n;){for(d=e[u];u<n&&(a=o[u],(i=vf(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=Bc.get(f))===void 0&&(s.raw=s,Bc.set(f,e=s)),o=l}return t(e,...o)},Cr=Ga(H),lS=Ga(qn),cS=Ga(Yn);var Rt;(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"})(Rt||(Rt={}));function Fc(t,e){let o=bt[t];return I`
|
|
209
209
|
${e?Oe(e):I`.ft-typography--${Oe(t)}`} {
|
|
210
210
|
font-family: ${o.fontFamily};
|
|
211
211
|
font-size: ${o.fontSize};
|
|
@@ -215,7 +215,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
215
215
|
text-decoration: ${o.textDecoration};
|
|
216
216
|
text-transform: ${o.textCase};
|
|
217
217
|
}
|
|
218
|
-
`}var
|
|
218
|
+
`}var Hc=r.extend("--ft-typography-font-family","",U.titleFont),yt=r.extend("--ft-typography-font-family","",U.contentFont),$={fontFamily:yt,fontSize:r.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:r.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:r.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:r.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:r.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Or={fontFamily:r.extend("--ft-typography-title-font-family","",Hc),fontSize:r.extend("--ft-typography-title-font-size","",$.fontSize,"20px"),fontWeight:r.extend("--ft-typography-title-font-weight","",$.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-title-letter-spacing","",$.letterSpacing,"0.15px"),lineHeight:r.extend("--ft-typography-title-line-height","",$.lineHeight,"1.2"),textTransform:r.extend("--ft-typography-title-text-transform","",$.textTransform,"inherit")},Er={fontFamily:r.extend("--ft-typography-title-dense-font-family","",Hc),fontSize:r.extend("--ft-typography-title-dense-font-size","",$.fontSize,"14px"),fontWeight:r.extend("--ft-typography-title-dense-font-weight","",$.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-title-dense-letter-spacing","",$.letterSpacing,"0.105px"),lineHeight:r.extend("--ft-typography-title-dense-line-height","",$.lineHeight,"1.7"),textTransform:r.extend("--ft-typography-title-dense-text-transform","",$.textTransform,"inherit")},Ar={fontFamily:r.extend("--ft-typography-subtitle1-font-family","",yt),fontSize:r.extend("--ft-typography-subtitle1-font-size","",$.fontSize,"16px"),fontWeight:r.extend("--ft-typography-subtitle1-font-weight","",$.fontWeight,"600"),letterSpacing:r.extend("--ft-typography-subtitle1-letter-spacing","",$.letterSpacing,"0.144px"),lineHeight:r.extend("--ft-typography-subtitle1-line-height","",$.lineHeight,"1.5"),textTransform:r.extend("--ft-typography-subtitle1-text-transform","",$.textTransform,"inherit")},wr={fontFamily:r.extend("--ft-typography-subtitle2-font-family","",yt),fontSize:r.extend("--ft-typography-subtitle2-font-size","",$.fontSize,"14px"),fontWeight:r.extend("--ft-typography-subtitle2-font-weight","",$.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-subtitle2-letter-spacing","",$.letterSpacing,"0.098px"),lineHeight:r.extend("--ft-typography-subtitle2-line-height","",$.lineHeight,"1.7"),textTransform:r.extend("--ft-typography-subtitle2-text-transform","",$.textTransform,"inherit")},Rr={fontFamily:r.extend("--ft-typography-body1-font-family","",yt),fontSize:r.extend("--ft-typography-body1-font-size","",$.fontSize,"16px"),fontWeight:r.extend("--ft-typography-body1-font-weight","",$.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-body1-letter-spacing","",$.letterSpacing,"0.496px"),lineHeight:r.extend("--ft-typography-body1-line-height","",$.lineHeight,"1.5"),textTransform:r.extend("--ft-typography-body1-text-transform","",$.textTransform,"inherit")},Me={fontFamily:r.extend("--ft-typography-body2-font-family","",yt),fontSize:r.extend("--ft-typography-body2-font-size","",$.fontSize,"14px"),fontWeight:r.extend("--ft-typography-body2-font-weight","",$.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-body2-letter-spacing","",$.letterSpacing,"0.252px"),lineHeight:r.extend("--ft-typography-body2-line-height","",$.lineHeight,"1.4"),textTransform:r.extend("--ft-typography-body2-text-transform","",$.textTransform,"inherit")},Tr={fontFamily:r.extend("--ft-typography-caption-font-family","",yt),fontSize:r.extend("--ft-typography-caption-font-size","",$.fontSize,"12px"),fontWeight:r.extend("--ft-typography-caption-font-weight","",$.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-caption-letter-spacing","",$.letterSpacing,"0.396px"),lineHeight:r.extend("--ft-typography-caption-line-height","",$.lineHeight,"1.33"),textTransform:r.extend("--ft-typography-caption-text-transform","",$.textTransform,"inherit")},Lr={fontFamily:r.extend("--ft-typography-breadcrumb-font-family","",yt),fontSize:r.extend("--ft-typography-breadcrumb-font-size","",$.fontSize,"10px"),fontWeight:r.extend("--ft-typography-breadcrumb-font-weight","",$.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-breadcrumb-letter-spacing","",$.letterSpacing,"0.33px"),lineHeight:r.extend("--ft-typography-breadcrumb-line-height","",$.lineHeight,"1.6"),textTransform:r.extend("--ft-typography-breadcrumb-text-transform","",$.textTransform,"inherit")},_r={fontFamily:r.extend("--ft-typography-overline-font-family","",yt),fontSize:r.extend("--ft-typography-overline-font-size","",$.fontSize,"10px"),fontWeight:r.extend("--ft-typography-overline-font-weight","",$.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-overline-letter-spacing","",$.letterSpacing,"1.5px"),lineHeight:r.extend("--ft-typography-overline-line-height","",$.lineHeight,"1.6"),textTransform:r.extend("--ft-typography-overline-text-transform","",$.textTransform,"uppercase")},ot={fontFamily:r.extend("--ft-typography-button-font-family","",yt),fontSize:r.extend("--ft-typography-button-font-size","",$.fontSize,"14px"),fontWeight:r.extend("--ft-typography-button-font-weight","",$.fontWeight,"600"),letterSpacing:r.extend("--ft-typography-button-letter-spacing","",$.letterSpacing,"1.246px"),lineHeight:r.extend("--ft-typography-button-line-height","",$.lineHeight,"1.15"),textTransform:r.extend("--ft-typography-button-text-transform","",$.textTransform,"uppercase")},zc=I`
|
|
219
219
|
.ft-typography--title {
|
|
220
220
|
font-family: ${Or.fontFamily};
|
|
221
221
|
font-size: ${Or.fontSize};
|
|
@@ -224,7 +224,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
224
224
|
line-height: ${Or.lineHeight};
|
|
225
225
|
text-transform: ${Or.textTransform};
|
|
226
226
|
}
|
|
227
|
-
`,
|
|
227
|
+
`,Wc=I`
|
|
228
228
|
.ft-typography--title-dense {
|
|
229
229
|
font-family: ${Er.fontFamily};
|
|
230
230
|
font-size: ${Er.fontSize};
|
|
@@ -233,7 +233,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
233
233
|
line-height: ${Er.lineHeight};
|
|
234
234
|
text-transform: ${Er.textTransform};
|
|
235
235
|
}
|
|
236
|
-
`,
|
|
236
|
+
`,Gc=I`
|
|
237
237
|
.ft-typography--subtitle1 {
|
|
238
238
|
font-family: ${Ar.fontFamily};
|
|
239
239
|
font-size: ${Ar.fontSize};
|
|
@@ -242,7 +242,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
242
242
|
line-height: ${Ar.lineHeight};
|
|
243
243
|
text-transform: ${Ar.textTransform};
|
|
244
244
|
}
|
|
245
|
-
`,
|
|
245
|
+
`,jc=I`
|
|
246
246
|
.ft-typography--subtitle2 {
|
|
247
247
|
font-family: ${wr.fontFamily};
|
|
248
248
|
font-size: ${wr.fontSize};
|
|
@@ -252,7 +252,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
252
252
|
text-transform: ${wr.textTransform};
|
|
253
253
|
}
|
|
254
254
|
|
|
255
|
-
`,
|
|
255
|
+
`,Vc=I`
|
|
256
256
|
.ft-typography--body1 {
|
|
257
257
|
font-family: ${Rr.fontFamily};
|
|
258
258
|
font-size: ${Rr.fontSize};
|
|
@@ -261,7 +261,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
261
261
|
line-height: ${Rr.lineHeight};
|
|
262
262
|
text-transform: ${Rr.textTransform};
|
|
263
263
|
}
|
|
264
|
-
`,
|
|
264
|
+
`,Kc=I`
|
|
265
265
|
.ft-typography--body2 {
|
|
266
266
|
font-family: ${Me.fontFamily};
|
|
267
267
|
font-size: ${Me.fontSize};
|
|
@@ -270,7 +270,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
270
270
|
line-height: ${Me.lineHeight};
|
|
271
271
|
text-transform: ${Me.textTransform};
|
|
272
272
|
}
|
|
273
|
-
`,
|
|
273
|
+
`,Zc=I`
|
|
274
274
|
.ft-typography--caption {
|
|
275
275
|
font-family: ${Tr.fontFamily};
|
|
276
276
|
font-size: ${Tr.fontSize};
|
|
@@ -279,7 +279,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
279
279
|
line-height: ${Tr.lineHeight};
|
|
280
280
|
text-transform: ${Tr.textTransform};
|
|
281
281
|
}
|
|
282
|
-
`,
|
|
282
|
+
`,qc=I`
|
|
283
283
|
.ft-typography--breadcrumb {
|
|
284
284
|
font-family: ${Lr.fontFamily};
|
|
285
285
|
font-size: ${Lr.fontSize};
|
|
@@ -288,7 +288,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
288
288
|
line-height: ${Lr.lineHeight};
|
|
289
289
|
text-transform: ${Lr.textTransform};
|
|
290
290
|
}
|
|
291
|
-
`,
|
|
291
|
+
`,Yc=I`
|
|
292
292
|
.ft-typography--overline {
|
|
293
293
|
font-family: ${_r.fontFamily};
|
|
294
294
|
font-size: ${_r.fontSize};
|
|
@@ -297,7 +297,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
297
297
|
line-height: ${_r.lineHeight};
|
|
298
298
|
text-transform: ${_r.textTransform};
|
|
299
299
|
}
|
|
300
|
-
`,
|
|
300
|
+
`,Xc=I`
|
|
301
301
|
.ft-typography--button {
|
|
302
302
|
font-family: ${ot.fontFamily};
|
|
303
303
|
font-size: ${ot.fontSize};
|
|
@@ -306,11 +306,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
306
306
|
line-height: ${ot.lineHeight};
|
|
307
307
|
text-transform: ${ot.textTransform};
|
|
308
308
|
}
|
|
309
|
-
`,
|
|
309
|
+
`,Jc=I`
|
|
310
310
|
.ft-typography {
|
|
311
311
|
vertical-align: inherit;
|
|
312
312
|
}
|
|
313
|
-
`,
|
|
313
|
+
`,Qc=[Object.keys(bt).map(t=>Fc(t))];var ed=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Te=class extends j{constructor(){super(...arguments),this.variant=Rt.body1}render(){return this.element?Cr`
|
|
314
314
|
<${Sr(this.element)}
|
|
315
315
|
part="text"
|
|
316
316
|
class="ft-typography ft-typography--${this.variant}">
|
|
@@ -318,7 +318,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
318
318
|
</${Sr(this.element)}>
|
|
319
319
|
`:Cr`
|
|
320
320
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
321
|
-
`}};Te.styles=[
|
|
321
|
+
`}};Te.styles=[zc,Wc,Gc,jc,Vc,Kc,Zc,qc,Yc,Xc,Jc,...Qc];ed([S()],Te.prototype,"element",void 0);ed([S()],Te.prototype,"variant",void 0);var Ve;(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"})(Ve||(Ve={}));function Sf(t,e){let o=bt[t];return I`
|
|
322
322
|
${e?Oe(e):I`.ftds-typography--${Oe(t)}`} {
|
|
323
323
|
font-family: ${o.fontFamily};
|
|
324
324
|
font-size: ${o.fontSize};
|
|
@@ -328,7 +328,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
328
328
|
text-decoration: ${o.textDecoration};
|
|
329
329
|
text-transform: ${o.textCase};
|
|
330
330
|
}
|
|
331
|
-
`}var
|
|
331
|
+
`}var td=[Object.keys(bt).map(t=>Sf(t))];var rd=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Ke=class extends j{constructor(){super(...arguments),this.variant=Ve.body2medium}render(){return this.element?Cr`
|
|
332
332
|
<${Sr(this.element)}
|
|
333
333
|
part="text"
|
|
334
334
|
class="ftds-typography ftds-typography--${this.variant}">
|
|
@@ -336,7 +336,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
336
336
|
</${Sr(this.element)}>
|
|
337
337
|
`:Cr`
|
|
338
338
|
<slot part="text" class="ftds-typography ftds-typography--${this.variant}"></slot>
|
|
339
|
-
`}};Ke.styles=[...
|
|
339
|
+
`}};Ke.styles=[...td];rd([S()],Ke.prototype,"element",void 0);rd([S()],Ke.prototype,"variant",void 0);ee("ft-typography")(Te);ee("ftds-typography")(Ke);var Nr;(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=""})(Nr||(Nr={}));var _;(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=""})(_||(_={}));var GC=new Map([...["abw"].map(t=>[t,_.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,_.AUDIO]),...["avi"].map(t=>[t,_.AVI]),...["chm","xhs"].map(t=>[t,_.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,_.CODE]),...["csv"].map(t=>[t,_.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,_.DITA]),...["epub"].map(t=>[t,_.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,_.EXCEL]),...["flac"].map(t=>[t,_.FLAC]),...["gif"].map(t=>[t,_.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,_.GZIP]),...["html","htm","xhtml"].map(t=>[t,_.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,_.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,_.JPEG]),...["json"].map(t=>[t,_.JSON]),...["m4a","m4p"].map(t=>[t,_.M4A]),...["mov","qt"].map(t=>[t,_.MOV]),...["mp3"].map(t=>[t,_.MP3]),...["mp4","m4v"].map(t=>[t,_.MP4]),...["ogg","oga"].map(t=>[t,_.OGG]),...["pdf","ps"].map(t=>[t,_.PDF]),...["png"].map(t=>[t,_.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,_.POWERPOINT]),...["rar"].map(t=>[t,_.RAR]),...["stp"].map(t=>[t,_.STP]),...["txt","rtf","md","mdown"].map(t=>[t,_.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,_.VIDEO]),...["wav"].map(t=>[t,_.WAV]),...["wma"].map(t=>[t,_.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,_.WORD]),...["xml","xsl","rdf"].map(t=>[t,_.XML]),...["yaml","yml","x-yaml"].map(t=>[t,_.YAML]),...["zip"].map(t=>[t,_.ZIP])]);var jC={[_.ABW]:"#91ABC6",[_.AUDIO]:"#1795E3",[_.AVI]:"#E63324",[_.CHM]:"#71C3EB",[_.CODE]:"#71C3EB",[_.CSV]:"#1F7345",[_.DITA]:"#71C3EB",[_.EPUB]:"#85B926",[_.EXCEL]:"#1F7345",[_.FLAC]:"#1795E3",[_.GIF]:"#59B031",[_.GZIP]:"#F8AB36",[_.HTML]:"#71C3EB",[_.IMAGE]:"#59B031",[_.JPEG]:"#59B031",[_.JSON]:"#71C3EB",[_.M4A]:"#1795E3",[_.MOV]:"#E63324",[_.MP3]:"#1795E3",[_.MP4]:"#E63324",[_.OGG]:"#1795E3",[_.PDF]:"#E44948",[_.PNG]:"#59B031",[_.POWERPOINT]:"#B54A2B",[_.RAR]:"#F8AB36",[_.STP]:"#3764B1",[_.TEXT]:"#3162AB",[_.UNKNOWN]:"#999999",[_.VIDEO]:"#E63324",[_.WAV]:"#1795E3",[_.WMA]:"#1795E3",[_.WORD]:"#3162AB",[_.XML]:"#71C3EB",[_.YAML]:"#71C3EB",[_.ZIP]:"#F8AB36"};var ae={size:r.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:r.extend("--ft-icon-fluid-topics-font-family","",r.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:r.extend("--ft-icon-file-format-font-family","",r.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:r.extend("--ft-icon-material-font-family","",r.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:r.create("--ft-icon-vertical-align","","UNKNOWN","unset")},od=[I`
|
|
340
340
|
:host, i.ft-icon {
|
|
341
341
|
display: inline-flex;
|
|
342
342
|
align-items: center;
|
|
@@ -389,7 +389,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
389
389
|
${ai(this.resolvedIcon)}
|
|
390
390
|
<slot ?hidden=${o}></slot>
|
|
391
391
|
</i>
|
|
392
|
-
`}getTextContent(){var e,o;return(o=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&o!==void 0?o:""}update(e){super.update(e),["value","variant"].some(o=>e.has(o))&&this.resolveIcon()}resolveIcon(){var e,o;let n=this.value||this.getTextContent();switch(this.variant){case $e.file_format:this.resolvedIcon=(e=_[n.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:n;break;case $e.material:this.resolvedIcon=this.value||G;break;default:this.resolvedIcon=(o=Nr[n.replace("-","_").toUpperCase()])!==null&&o!==void 0?o:n;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};me.elementDefinitions={};me.styles=
|
|
392
|
+
`}getTextContent(){var e,o;return(o=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&o!==void 0?o:""}update(e){super.update(e),["value","variant"].some(o=>e.has(o))&&this.resolveIcon()}resolveIcon(){var e,o;let n=this.value||this.getTextContent();switch(this.variant){case $e.file_format:this.resolvedIcon=(e=_[n.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:n;break;case $e.material:this.resolvedIcon=this.value||G;break;default:this.resolvedIcon=(o=Nr[n.replace("-","_").toUpperCase()])!==null&&o!==void 0?o:n;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};me.elementDefinitions={};me.styles=od;fo([S()],me.prototype,"variant",void 0);fo([S()],me.prototype,"value",void 0);fo([S({reflect:!0,attribute:"aria-hidden"})],me.prototype,"ariaHidden",void 0);fo([X()],me.prototype,"resolvedIcon",void 0);fo([ue("slot")],me.prototype,"slottedContent",void 0);ee("ft-icon")(me);var oe={color:r.extend("--ft-loader-color","",U.colorPrimary),size:r.create("--ft-loader-size","","SIZE","80px")},nd=I`
|
|
393
393
|
:host {
|
|
394
394
|
line-height: 0;
|
|
395
395
|
}
|
|
@@ -458,7 +458,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
458
458
|
transform: translate(calc(0.35 * ${oe.size}), 0);
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
`;var
|
|
461
|
+
`;var id=r.extend("--ft-button-color","",U.colorPrimary),ne={backgroundColor:r.extend("--ft-button-background-color","",U.colorSurface),borderRadius:r.extend("--ft-button-border-radius","",U.borderRadiusL),color:id,fontSize:r.extend("--ft-button-font-size","",ot.fontSize),iconSize:r.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:r.extend("--ft-button-ripple-color","",id),verticalPadding:r.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:r.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:r.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:r.external(U.colorOpacityDisabled,"Design system")},ad=r.extend("--ft-button-primary-color","",r.extend("--ft-button-color","",U.colorOnPrimary)),ja={backgroundColor:r.extend("--ft-button-primary-background-color","",r.extend("--ft-button-background-color","",U.colorPrimary)),color:ad,rippleColor:r.extend("--ft-button-primary-ripple-color","",ad)},nt={borderRadius:r.extend("--ft-button-dense-border-radius","",r.extend("--ft-button-border-radius","",U.borderRadiusM)),verticalPadding:r.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:r.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:r.create("--ft-button-dense-icon-padding","","SIZE","4px")},sd=[I`
|
|
462
462
|
:host {
|
|
463
463
|
display: inline-block;
|
|
464
464
|
max-width: 100%;
|
|
@@ -595,7 +595,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
595
595
|
${O(oe.size,ne.iconSize)};
|
|
596
596
|
${O(oe.color,"var(--button-internal-color)")};
|
|
597
597
|
}
|
|
598
|
-
`,ft];var Ir={distance:r.create("--ft-tooltip-distance","","SIZE","4px"),color:r.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:r.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:r.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:r.extend("--ft-tooltip-border-radius","",U.borderRadiusS),maxWidth:r.create("--ft-tooltip-max-width","","SIZE","150px")},
|
|
598
|
+
`,ft];var Ir={distance:r.create("--ft-tooltip-distance","","SIZE","4px"),color:r.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:r.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:r.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:r.extend("--ft-tooltip-border-radius","",U.borderRadiusS),maxWidth:r.create("--ft-tooltip-max-width","","SIZE","150px")},ld=I`
|
|
599
599
|
.ft-tooltip--container {
|
|
600
600
|
display: block;
|
|
601
601
|
}
|
|
@@ -624,10 +624,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
624
624
|
position: relative;
|
|
625
625
|
word-break: break-word;
|
|
626
626
|
}
|
|
627
|
-
`;var
|
|
628
|
-
`;var Cf="ft-app-info",Vt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Vt.eventName="authentication-change";var Of={session:(t,e)=>{Ee(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>k.dispatchEvent(new Vt(e.payload)),0))}},k=zt.get({name:Cf,reducers:Of,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 Kt=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=k.getState(),i=e??n;if(o&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,i,!0)}static await(e){return new Promise(o=>{let n=t.get(e);if(n)o(n);else{let i=k.subscribe(()=>{n=t.get(e),n&&(i(),o(n))})}})}};var wn=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Kt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Kt.await()}};var Le=class extends wn{constructor(e=!0,o){var n;super(o),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 Qe,this.cache=e?i.commonCache:new Qe}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var Rn=class extends Le{async listMyBookmarks(){let e=k.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Va=class{addCommand(e,o=!1){k.commands.add(e,o)}consumeCommand(e){return k.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Va;var cd,Pr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Ef=Symbol("clearAfterUnitTest"),Tn=class extends Po(Le){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[cd]=()=>{this.defaultMessages={},this.cache=new Qe,this.listeners={}},this.currentUiLocale=k.getState().uiLocale,k.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=k.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var n;if(e=e.toLowerCase(),o&&Object.keys(o).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};Ee(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var o,n;return this.fetchContext(e),(n=(o=this.cache.getNow(e))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,o){let n=e.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(e,o,...n){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new oo((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(o,...n)}async fetchContext(e){let o=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),o&&await this.notify(e)}catch(i){!(i instanceof kt)&&o&&console.error(i)}return n}subscribe(e,o){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(o),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(o)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Pr({loadedContexts:e})),this.dispatchEvent(new Pr({loadedContexts:e})),await Promise.all(e.map(o=>this.notify(o,!1)))}async notify(e,o=!0){o&&(document.body.dispatchEvent(new Pr({loadedContexts:[e]})),this.dispatchEvent(new Pr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>Io(0).then(()=>n()).catch(()=>null)))}};cd=Ef;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Tn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Tn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var ho=window.FluidTopicsI18nService,Ka=window.FluidTopicsCustomI18nService;var Za=class{highlightHtml(e,o,n){Yi(e,o,n)}};window.FluidTopicsHighlightHtmlService=new Za;var Ln=class extends Le{async listMySearches(){let{session:e}=k.getState();return Cc(e,le.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var qa=class{isDate(e){var o,n,i,a;return(a=(i=((n=(o=k.getState().metadataConfiguration)===null||o===void 0?void 0:o.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,o){var n,i,a;return Wt.format(e,(n=o?.locale)!==null&&n!==void 0?n:k.getState().uiLocale,(i=o?.longFormat)!==null&&i!==void 0?i:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new qa;var yo=class{static get(e,o){var n,i;let a=k.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 xr(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,o??`${s}-${l}`)}};var Ya=class{urlToSearchRequest(e){return yo.get().parse(e)}searchRequestToUrl(e){return yo.get().serialize(e)}};window.FluidTopicsUrlService=new Ya;var Zt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Zt.eventName="change";var Xa=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let o=sessionStorage.getItem(this.itemName(e));return o?JSON.parse(o):void 0}set(e,o){sessionStorage.setItem(this.itemName(e),JSON.stringify(o))}},dd=new Xa;var _n=class t extends lt{static build(){return new t(window.history,dd,()=>window.location,!1)}constructor(e,o,n,i){var a,s;super(),this.history=e,this.historyStorage=o,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,o=!1){let n=o&&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),Ee(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Zt(this.currentItem())),0)}installProxies(){let e=o=>(n,i,[a,s,l])=>{let d=o(),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 o=this.history.length-1;o>=0;o--)e?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(e){var o;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(o=e?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(Zt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Zt.eventName,e)}currentItem(){return Vr(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 Vr(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 Vr(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 o;let n=(o=this.states[e])===null||o===void 0?void 0:o.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,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&o!==void 0?o:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,o){var n;if(!this.hasState(e))return!1;let i=o??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=_n.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 pd=k;function ud(t,e){var o;return pd.getState().authenticationRequired&&!(!((o=pd.getState().session)===null||o===void 0)&&o.sessionAuthenticated)?Promise.resolve(e):t()}var ce=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Q=class extends j{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=()=>Kt.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Qe,this.cleanSessionDebouncer=new Ae,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return H`
|
|
627
|
+
`;var cd=I`
|
|
628
|
+
`;var Cf="ft-app-info",Vt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Vt.eventName="authentication-change";var Of={session:(t,e)=>{Ee(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>k.dispatchEvent(new Vt(e.payload)),0))}},k=zt.get({name:Cf,reducers:Of,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 Kt=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=k.getState(),i=e??n;if(o&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,i,!0)}static await(e){return new Promise(o=>{let n=t.get(e);if(n)o(n);else{let i=k.subscribe(()=>{n=t.get(e),n&&(i(),o(n))})}})}};var wn=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Kt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Kt.await()}};var Le=class extends wn{constructor(e=!0,o){var n;super(o),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 Qe,this.cache=e?i.commonCache:new Qe}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var Rn=class extends Le{async listMyBookmarks(){let e=k.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Va=class{addCommand(e,o=!1){k.commands.add(e,o)}consumeCommand(e){return k.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Va;var dd,Pr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Ef=Symbol("clearAfterUnitTest"),Tn=class extends Po(Le){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[dd]=()=>{this.defaultMessages={},this.cache=new Qe,this.listeners={}},this.currentUiLocale=k.getState().uiLocale,k.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=k.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var n;if(e=e.toLowerCase(),o&&Object.keys(o).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};Ee(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var o,n;return this.fetchContext(e),(n=(o=this.cache.getNow(e))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,o){let n=e.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(e,o,...n){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new oo((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(o,...n)}async fetchContext(e){let o=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),o&&await this.notify(e)}catch(i){!(i instanceof kt)&&o&&console.error(i)}return n}subscribe(e,o){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(o),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(o)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Pr({loadedContexts:e})),this.dispatchEvent(new Pr({loadedContexts:e})),await Promise.all(e.map(o=>this.notify(o,!1)))}async notify(e,o=!0){o&&(document.body.dispatchEvent(new Pr({loadedContexts:[e]})),this.dispatchEvent(new Pr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>Io(0).then(()=>n()).catch(()=>null)))}};dd=Ef;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Tn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Tn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var ho=window.FluidTopicsI18nService,Ka=window.FluidTopicsCustomI18nService;var Za=class{highlightHtml(e,o,n){Yi(e,o,n)}};window.FluidTopicsHighlightHtmlService=new Za;var Ln=class extends Le{async listMySearches(){let{session:e}=k.getState();return Oc(e,le.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var qa=class{isDate(e){var o,n,i,a;return(a=(i=((n=(o=k.getState().metadataConfiguration)===null||o===void 0?void 0:o.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,o){var n,i,a;return Wt.format(e,(n=o?.locale)!==null&&n!==void 0?n:k.getState().uiLocale,(i=o?.longFormat)!==null&&i!==void 0?i:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new qa;var yo=class{static get(e,o){var n,i;let a=k.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 xr(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,o??`${s}-${l}`)}};var Ya=class{urlToSearchRequest(e){return yo.get().parse(e)}searchRequestToUrl(e){return yo.get().serialize(e)}};window.FluidTopicsUrlService=new Ya;var Zt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Zt.eventName="change";var Xa=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let o=sessionStorage.getItem(this.itemName(e));return o?JSON.parse(o):void 0}set(e,o){sessionStorage.setItem(this.itemName(e),JSON.stringify(o))}},pd=new Xa;var _n=class t extends lt{static build(){return new t(window.history,pd,()=>window.location,!1)}constructor(e,o,n,i){var a,s;super(),this.history=e,this.historyStorage=o,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,o=!1){let n=o&&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),Ee(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Zt(this.currentItem())),0)}installProxies(){let e=o=>(n,i,[a,s,l])=>{let d=o(),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 o=this.history.length-1;o>=0;o--)e?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(e){var o;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(o=e?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(Zt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Zt.eventName,e)}currentItem(){return Vr(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 Vr(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 Vr(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 o;let n=(o=this.states[e])===null||o===void 0?void 0:o.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,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&o!==void 0?o:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,o){var n;if(!this.hasState(e))return!1;let i=o??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=_n.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 ud(t,e){let{authenticationRequired:o,session:n}=k.getState();return o&&!n?.sessionAuthenticated?Promise.resolve(e):t()}var ce=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Q=class extends j{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=()=>Kt.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Qe,this.cleanSessionDebouncer=new Ae,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return H`
|
|
629
629
|
<slot></slot>
|
|
630
|
-
`}connectedCallback(){super.connectedCallback(),k.addEventListener(Vt.eventName,this.reloadConfiguration)}disconnectedCallback(){k.addEventListener(Vt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var o,n,i,a,s,l,d;super.update(e),e.has("baseUrl")&&(k.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&k.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&k.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&k.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&k.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&k.actions.noCustom(this.noCustom),e.has("editorMode")&&k.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&k.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&k.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>ho.addContext(u)),e.has("openExternalDocumentInNewTab")&&k.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&k.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&k.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(k.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),k.actions.availableUiLocales((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),k.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&k.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&k.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",()=>ud(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};Q.elementDefinitions={};Q.styles=ld;ce([S()],Q.prototype,"baseUrl",void 0);ce([S()],Q.prototype,"apiIntegrationIdentifier",void 0);ce([S()],Q.prototype,"apiIntegrationAppVersion",void 0);ce([S()],Q.prototype,"uiLocale",void 0);ce([Pe(null)],Q.prototype,"availableUiLocales",void 0);ce([Pe(null)],Q.prototype,"metadataConfiguration",void 0);ce([S({type:Boolean})],Q.prototype,"editorMode",void 0);ce([S({type:Boolean})],Q.prototype,"noCustom",void 0);ce([S({type:Boolean})],Q.prototype,"openExternalDocumentInNewTab",void 0);ce([S({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],Q.prototype,"noCustomComponent",void 0);ce([S({type:Boolean})],Q.prototype,"withManualResources",void 0);ce([S({type:Boolean})],Q.prototype,"navigatorOnline",void 0);ce([S({type:Boolean})],Q.prototype,"forcedOffline",void 0);ce([S({type:Object})],Q.prototype,"apiProvider",void 0);ce([S({type:Boolean})],Q.prototype,"authenticationRequired",void 0);ce([Pe([])],Q.prototype,"messageContexts",void 0);ce([Pe(void 0)],Q.prototype,"session",void 0);ce([X()],Q.prototype,"localesConfiguration",void 0);ce([X()],Q.prototype,"availableContentLocales",void 0);var Nn=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},KE=he(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(k)}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=>Wt.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Nn([S({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Nn([S({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Nn([cr({store:k.name,selector:o=>{var n,i;return(i=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),Nn([cr({store:k.name})],e.prototype,"uiLocale",void 0),e});var In=class extends Le{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=k.getState().session;return!!e?.sessionAuthenticated}};var Pn=class extends Le{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=k.getState().session;return!!e?.sessionAuthenticated}};var Af="ft-user-assets",wf={setAssetCount:(t,e)=>{let{userAssetType:o,count:n}=e.payload.assetCount;t.assetCounts.allAsset[o]=n},clearAssetCount:t=>{Object.values(De).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let o=e.payload.mapId;t.assetCounts.bookmarkByMap[o]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:o,mapId:n,asset:i}=e.payload;Qa(t,o,[...Ja(t,o),i]),fd(t,o,1,n),hd(t,i)},editAsset:(t,e)=>{let{assetType:o,asset:n}=e.payload;Qa(t,o,Ja(t,o).map(i=>i.id===n.id?n:i)),hd(t,n)},removeAsset:(t,e)=>{let{assetType:o,mapId:n,assetId:i}=e.payload;Qa(t,o,Ja(t,o).filter(a=>a.id!==i)),fd(t,o,-1,n)}},yd={[De.SEARCHES]:"savedSearches",[De.BOOKMARKS]:"bookmarks",[De.BOOKS]:void 0,[De.COLLECTIONS]:void 0},Ja=(t,e)=>{var o;let n=yd[e];return n?(o=t[n])!==null&&o!==void 0?o:[]:[]},Qa=(t,e,o)=>{let n=yd[e];n&&(t[n]=o)},fd=(t,e,o,n)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+o),e===De.BOOKMARKS&&n)){let a=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,a+o)}},hd=(t,e)=>{let o=t.assetLabels.map(i=>i.title),n=e.labels.filter(i=>!o.includes(i)).map(i=>({title:i}));t.assetLabels.push(...n)},_e=zt.get({name:Af,reducers:wf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(De).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),es=class{constructor(e=new In,o=new Pn){this.assetCountsService=e,this.assetLabelsService=o,this.currentSession=k.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Rn,this.savedSearchesService=new Ln,k.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=k.getState();Ee((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),_e.actions.clearAssetCount(),_e.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),_e.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),_e.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();_e.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();_e.actions.assetLabels(e)}async loadAssetCount(e){let o=await this.assetCountsService.getUserAssetCount(e);o&&_e.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(e){let o=await this.assetCountsService.getUserBookmarkCountByMap(e);o&&_e.actions.setBookmarkCountByMap({count:o.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let o=Object.keys(_e.getState().assetCounts.bookmarkByMap).length!==0;e===De.BOOKMARKS&&o&&_e.actions.clearBookmarkCountByMap(),_e.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 o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;_e.actions.bookmarks(o)}}},Rf=new es;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Rf);ee("ft-app-context")(Q);var ts=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-]+$/)}},kr=new ts;var Tf=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},go=Symbol("i18nAttributes"),md=Symbol("i18nListAttributes"),gd=Symbol("i18nProperties"),kn=Symbol("i18nContexts"),mo=Symbol("i18nUnsubs"),bd=he(Symbol("withI18n"),function(t){var e,o;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[o]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?Ka:ho}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 y=h??(f?f(this):[]);return this.getI18nService(u).resolveMessage(s,l,...y)}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(kr.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,y)=>y?.context&&y.key&&a(h,f,y)?{...y,message:this.i18n({context:y.context,key:y.key,custom:y.custom,...h})}:y;(s=this[go])===null||s===void 0||s.forEach((h,f)=>d[f]=u(h,f,d[f])),(l=this[md])===null||l===void 0||l.forEach((h,f)=>{var y;return d[f]=(y=d[f])===null||y===void 0?void 0:y.map(x=>u(h,f,x))})}updateI18nProperties(a){var s;(s=this[gd])===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[kn].set(d,{isCustomContext:l}),this[mo].has(d)||this[mo].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[kn].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[kn].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[mo].forEach(a=>a()),this[mo].clear()}}return e=kn,o=mo,Tf([S({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Dn=class extends bd(j){},Mn=class extends bd(ao){};var rs=class{fromAttribute(e){if(!e)return[];try{let o=JSON.parse(e);return Array.isArray(o)?o.map(n=>typeof n=="string"?kr.fromAttribute(n):n):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Lf=new rs;var xd=(t,e)=>(o,n)=>{var i;o.constructor.createProperty(n,{type:Object,hasChanged:st,converter:kr,...e}),o[go]=(i=o[go])!==null&&i!==void 0?i:new Map,o[go].set(n,t??{})};var vd=I`
|
|
630
|
+
`}connectedCallback(){super.connectedCallback(),k.addEventListener(Vt.eventName,this.reloadConfiguration)}disconnectedCallback(){k.addEventListener(Vt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var o,n,i,a,s,l,d;super.update(e),e.has("baseUrl")&&(k.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&k.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&k.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&k.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&k.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&k.actions.noCustom(this.noCustom),e.has("editorMode")&&k.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&k.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&k.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>ho.addContext(u)),e.has("openExternalDocumentInNewTab")&&k.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&k.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&k.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(k.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),k.actions.availableUiLocales((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),k.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&k.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&k.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",()=>ud(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};Q.elementDefinitions={};Q.styles=cd;ce([S()],Q.prototype,"baseUrl",void 0);ce([S()],Q.prototype,"apiIntegrationIdentifier",void 0);ce([S()],Q.prototype,"apiIntegrationAppVersion",void 0);ce([S()],Q.prototype,"uiLocale",void 0);ce([Pe(null)],Q.prototype,"availableUiLocales",void 0);ce([Pe(null)],Q.prototype,"metadataConfiguration",void 0);ce([S({type:Boolean})],Q.prototype,"editorMode",void 0);ce([S({type:Boolean})],Q.prototype,"noCustom",void 0);ce([S({type:Boolean})],Q.prototype,"openExternalDocumentInNewTab",void 0);ce([S({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],Q.prototype,"noCustomComponent",void 0);ce([S({type:Boolean})],Q.prototype,"withManualResources",void 0);ce([S({type:Boolean})],Q.prototype,"navigatorOnline",void 0);ce([S({type:Boolean})],Q.prototype,"forcedOffline",void 0);ce([S({type:Object})],Q.prototype,"apiProvider",void 0);ce([S({type:Boolean})],Q.prototype,"authenticationRequired",void 0);ce([Pe([])],Q.prototype,"messageContexts",void 0);ce([Pe(void 0)],Q.prototype,"session",void 0);ce([X()],Q.prototype,"localesConfiguration",void 0);ce([X()],Q.prototype,"availableContentLocales",void 0);var Nn=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},KE=he(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(k)}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=>Wt.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Nn([S({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Nn([S({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Nn([cr({store:k.name,selector:o=>{var n,i;return(i=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),Nn([cr({store:k.name})],e.prototype,"uiLocale",void 0),e});var In=class extends Le{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=k.getState().session;return!!e?.sessionAuthenticated}};var Pn=class extends Le{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=k.getState().session;return!!e?.sessionAuthenticated}};var Af="ft-user-assets",wf={setAssetCount:(t,e)=>{let{userAssetType:o,count:n}=e.payload.assetCount;t.assetCounts.allAsset[o]=n},clearAssetCount:t=>{Object.values(De).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let o=e.payload.mapId;t.assetCounts.bookmarkByMap[o]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:o,mapId:n,asset:i}=e.payload;Qa(t,o,[...Ja(t,o),i]),fd(t,o,1,n),hd(t,i)},editAsset:(t,e)=>{let{assetType:o,asset:n}=e.payload;Qa(t,o,Ja(t,o).map(i=>i.id===n.id?n:i)),hd(t,n)},removeAsset:(t,e)=>{let{assetType:o,mapId:n,assetId:i}=e.payload;Qa(t,o,Ja(t,o).filter(a=>a.id!==i)),fd(t,o,-1,n)}},yd={[De.SEARCHES]:"savedSearches",[De.BOOKMARKS]:"bookmarks",[De.BOOKS]:void 0,[De.COLLECTIONS]:void 0},Ja=(t,e)=>{var o;let n=yd[e];return n?(o=t[n])!==null&&o!==void 0?o:[]:[]},Qa=(t,e,o)=>{let n=yd[e];n&&(t[n]=o)},fd=(t,e,o,n)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+o),e===De.BOOKMARKS&&n)){let a=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,a+o)}},hd=(t,e)=>{let o=t.assetLabels.map(i=>i.title),n=e.labels.filter(i=>!o.includes(i)).map(i=>({title:i}));t.assetLabels.push(...n)},_e=zt.get({name:Af,reducers:wf,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(De).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),es=class{constructor(e=new In,o=new Pn){this.assetCountsService=e,this.assetLabelsService=o,this.currentSession=k.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Rn,this.savedSearchesService=new Ln,k.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=k.getState();Ee((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),_e.actions.clearAssetCount(),_e.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),_e.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),_e.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();_e.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();_e.actions.assetLabels(e)}async loadAssetCount(e){let o=await this.assetCountsService.getUserAssetCount(e);o&&_e.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(e){let o=await this.assetCountsService.getUserBookmarkCountByMap(e);o&&_e.actions.setBookmarkCountByMap({count:o.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let o=Object.keys(_e.getState().assetCounts.bookmarkByMap).length!==0;e===De.BOOKMARKS&&o&&_e.actions.clearBookmarkCountByMap(),_e.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 o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;_e.actions.bookmarks(o)}}},Rf=new es;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Rf);ee("ft-app-context")(Q);var ts=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-]+$/)}},kr=new ts;var Tf=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},go=Symbol("i18nAttributes"),md=Symbol("i18nListAttributes"),gd=Symbol("i18nProperties"),kn=Symbol("i18nContexts"),mo=Symbol("i18nUnsubs"),bd=he(Symbol("withI18n"),function(t){var e,o;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[o]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?Ka:ho}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 y=h??(f?f(this):[]);return this.getI18nService(u).resolveMessage(s,l,...y)}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(kr.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,y)=>y?.context&&y.key&&a(h,f,y)?{...y,message:this.i18n({context:y.context,key:y.key,custom:y.custom,...h})}:y;(s=this[go])===null||s===void 0||s.forEach((h,f)=>d[f]=u(h,f,d[f])),(l=this[md])===null||l===void 0||l.forEach((h,f)=>{var y;return d[f]=(y=d[f])===null||y===void 0?void 0:y.map(x=>u(h,f,x))})}updateI18nProperties(a){var s;(s=this[gd])===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[kn].set(d,{isCustomContext:l}),this[mo].has(d)||this[mo].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[kn].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[kn].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[mo].forEach(a=>a()),this[mo].clear()}}return e=kn,o=mo,Tf([S({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Dn=class extends bd(j){},Mn=class extends bd(ao){};var rs=class{fromAttribute(e){if(!e)return[];try{let o=JSON.parse(e);return Array.isArray(o)?o.map(n=>typeof n=="string"?kr.fromAttribute(n):n):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Lf=new rs;var xd=(t,e)=>(o,n)=>{var i;o.constructor.createProperty(n,{type:Object,hasChanged:st,converter:kr,...e}),o[go]=(i=o[go])!==null&&i!==void 0?i:new Map,o[go].set(n,t??{})};var vd=I`
|
|
631
631
|
`;var bo=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Ze=class extends Mn{constructor(){super(),this.editorMode=!1,this.addStore(k)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":G:H`
|
|
632
632
|
<span class="ft-i18n">
|
|
633
633
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
@@ -647,14 +647,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
647
647
|
</div>
|
|
648
648
|
</div>
|
|
649
649
|
</div>
|
|
650
|
-
`}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(o=>e.has(o))&&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,o){let n=this.manual;this.manual=!0;let i=this.text;this.text={message:e},await this.show(o),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(o=>o.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="",zi(this.slottedElement,this.tooltip,this.position).then(({x:e,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${U.transitionDuration}, left ${U.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||di(e,this.ignoreMatchingElements,this.eventsTarget)}};de.elementDefinitions={"ft-typography":Te};de.styles=
|
|
650
|
+
`}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(o=>e.has(o))&&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,o){let n=this.manual;this.manual=!0;let i=this.text;this.text={message:e},await this.show(o),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(o=>o.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="",zi(this.slottedElement,this.tooltip,this.position).then(({x:e,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${U.transitionDuration}, left ${U.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||di(e,this.ignoreMatchingElements,this.eventsTarget)}};de.elementDefinitions={"ft-typography":Te};de.styles=ld;qe([xd()],de.prototype,"text",void 0);qe([S({type:Boolean})],de.prototype,"manual",void 0);qe([S({type:Boolean})],de.prototype,"inline",void 0);qe([ko()],de.prototype,"delay",void 0);qe([S()],de.prototype,"position",void 0);qe([Pe([])],de.prototype,"ignoreMatchingElements",void 0);qe([ti()],de.prototype,"slotNodes",void 0);qe([ue(".ft-tooltip--container")],de.prototype,"container",void 0);qe([ue(".ft-tooltip")],de.prototype,"tooltip",void 0);qe([ue(".ft-tooltip--content")],de.prototype,"tooltipContent",void 0);qe([X()],de.prototype,"visible",void 0);ee("ft-tooltip")(de);var qt=class extends j{render(){return H`
|
|
651
651
|
<div class="ft-loader">
|
|
652
652
|
<div></div>
|
|
653
653
|
<div></div>
|
|
654
654
|
<div></div>
|
|
655
655
|
<div></div>
|
|
656
656
|
</div>
|
|
657
|
-
`}};qt.styles=
|
|
657
|
+
`}};qt.styles=nd;ee("ft-loader")(qt);var os=t=>t??G;var pe=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Y=class extends Na(j){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 o;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var e,o,n;let i=H`
|
|
658
658
|
<ft-ripple part="ripple"
|
|
659
659
|
?disabled=${this.isDisabled()}
|
|
660
660
|
?activated=${this.activated}
|
|
@@ -696,7 +696,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
696
696
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
697
697
|
`:H`
|
|
698
698
|
<slot part="icon" name="icon"></slot>
|
|
699
|
-
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,o){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(e,o)}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 tr(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};Y.elementDefinitions={"ft-ripple":re,"ft-tooltip":de,"ft-icon":me,"ft-loader":qt};pe([S()],Y.prototype,"href",void 0);pe([S()],Y.prototype,"target",void 0);pe([S()],Y.prototype,"type",void 0);pe([S({type:Boolean})],Y.prototype,"disabled",void 0);pe([S()],Y.prototype,"label",void 0);pe([S()],Y.prototype,"icon",void 0);pe([S()],Y.prototype,"iconVariant",void 0);pe([S({type:Boolean})],Y.prototype,"trailingIcon",void 0);pe([S({type:Boolean})],Y.prototype,"loading",void 0);pe([S({attribute:"aria-label"})],Y.prototype,"ariaLabel",void 0);pe([S()],Y.prototype,"ariaHasPopup",void 0);pe([S({attribute:"aria-pressed"})],Y.prototype,"ariaPressed",void 0);pe([S()],Y.prototype,"tooltipPosition",void 0);pe([S({type:Boolean})],Y.prototype,"hideTooltip",void 0);pe([S({type:Boolean})],Y.prototype,"forceTooltip",void 0);pe([S({type:Boolean})],Y.prototype,"activated",void 0);pe([ue(".ft-button")],Y.prototype,"button",void 0);pe([ue(".ft-button--label slot")],Y.prototype,"slottedContent",void 0);pe([ue("[part=tooltip]")],Y.prototype,"tooltip",void 0);var $n=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Be=class extends Y{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 Rt.button}};Be.elementDefinitions={...Y.elementDefinitions,"ft-or-ftds-typography":Te};Be.styles=[ro,
|
|
699
|
+
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,o){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(e,o)}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 tr(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};Y.elementDefinitions={"ft-ripple":re,"ft-tooltip":de,"ft-icon":me,"ft-loader":qt};pe([S()],Y.prototype,"href",void 0);pe([S()],Y.prototype,"target",void 0);pe([S()],Y.prototype,"type",void 0);pe([S({type:Boolean})],Y.prototype,"disabled",void 0);pe([S()],Y.prototype,"label",void 0);pe([S()],Y.prototype,"icon",void 0);pe([S()],Y.prototype,"iconVariant",void 0);pe([S({type:Boolean})],Y.prototype,"trailingIcon",void 0);pe([S({type:Boolean})],Y.prototype,"loading",void 0);pe([S({attribute:"aria-label"})],Y.prototype,"ariaLabel",void 0);pe([S()],Y.prototype,"ariaHasPopup",void 0);pe([S({attribute:"aria-pressed"})],Y.prototype,"ariaPressed",void 0);pe([S()],Y.prototype,"tooltipPosition",void 0);pe([S({type:Boolean})],Y.prototype,"hideTooltip",void 0);pe([S({type:Boolean})],Y.prototype,"forceTooltip",void 0);pe([S({type:Boolean})],Y.prototype,"activated",void 0);pe([ue(".ft-button")],Y.prototype,"button",void 0);pe([ue(".ft-button--label slot")],Y.prototype,"slottedContent",void 0);pe([ue("[part=tooltip]")],Y.prototype,"tooltip",void 0);var $n=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,o,a):s(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},Be=class extends Y{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 Rt.button}};Be.elementDefinitions={...Y.elementDefinitions,"ft-or-ftds-typography":Te};Be.styles=[ro,sd];$n([S({type:Boolean})],Be.prototype,"primary",void 0);$n([S({type:Boolean})],Be.prototype,"outlined",void 0);$n([S({type:Boolean})],Be.prototype,"dense",void 0);$n([S({type:Boolean})],Be.prototype,"round",void 0);var ns={...g,iconOnlyScale:r.create("--ft-button-icon-only-scale","","NUMBER","1")},Sd=[I`
|
|
700
700
|
:host {
|
|
701
701
|
display: inline-block;
|
|
702
702
|
max-width: 100%;
|
|
@@ -1622,7 +1622,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
1622
1622
|
</div>
|
|
1623
1623
|
<slot></slot>
|
|
1624
1624
|
</div>
|
|
1625
|
-
`}onDragEnter(e){this.dragging=!0,e.preventDefault()}onDragOver(e){e.preventDefault()}onDragLeave(e){this.dragging=!1,e.preventDefault()}async onDrop(e){if(e.preventDefault(),e.dataTransfer&&e.dataTransfer.files){let o=e.dataTransfer.files[0];
|
|
1625
|
+
`}onDragEnter(e){this.dragging=!0,e.preventDefault()}onDragOver(e){e.preventDefault()}onDragLeave(e){this.dragging=!1,e.preventDefault()}async onDrop(e){if(e.preventDefault(),e.dataTransfer&&e.dataTransfer.files){let o=e.dataTransfer.files[0];Nc(this.accept,o.name,o.type)?(this.dragging=!1,this.dispatchEvent(new ss(o))):(this.fileError=!0,setTimeout(()=>{this.dragging=!1,this.fileError=!1},2e3))}}};He.elementDefinitions={"ft-chip":ie};He.styles=Rd;Mr([S()],He.prototype,"dropHint",void 0);Mr([S()],He.prototype,"accept",void 0);Mr([S()],He.prototype,"fileTypeError",void 0);Mr([S({type:Boolean})],He.prototype,"visible",void 0);Mr([X()],He.prototype,"dragging",void 0);Mr([X()],He.prototype,"fileError",void 0);ee("ft-file-drop")(He);})();
|
|
1626
1626
|
/*! Bundled license information:
|
|
1627
1627
|
|
|
1628
1628
|
@webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js:
|